@marimo-team/islands 0.23.15-dev63 → 0.23.15-dev65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/__vite-browser-external-DltVXDv7.js +1 -0
- package/dist/assets/{worker-B3XPCb6y.js → worker-CDEKsBgX.js} +2 -2
- package/dist/{code-visibility-yIEEWI5w.js → code-visibility-CSV-51WI.js} +1 -1
- package/dist/main.js +1194 -1072
- package/dist/{reveal-component-CCyp8KHw.js → reveal-component-qjUSFCwF.js} +1 -1
- package/package.json +1 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +61 -0
- package/src/core/islands/__tests__/bridge.test.ts +33 -2
- package/src/core/islands/bootstrap.ts +20 -2
- package/src/core/islands/bridge.ts +30 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +34 -0
- package/src/core/islands/components/output-wrapper.tsx +4 -1
- package/src/core/islands/state.ts +9 -0
- package/src/core/islands/worker/worker.tsx +15 -7
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +26 -1
- package/src/plugins/layout/NavigationMenuPlugin.tsx +140 -44
- package/dist/assets/__vite-browser-external-CjNAy01L.js +0 -1
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as notebookOutline, $t as requestClientAtom, A as ChevronDownIcon, Bt
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-B96tMAst.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnaxwDqy.js";
|
|
29
|
-
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-CSV-51WI.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DqPxHgAN.js";
|
|
31
31
|
import { t as Check } from "./check-Cs-KV5XY.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-BYAhZnQi.js";
|
|
@@ -2425,7 +2425,7 @@ let __tla = Promise.all([
|
|
|
2425
2425
|
key: "ih7n3h"
|
|
2426
2426
|
}
|
|
2427
2427
|
]
|
|
2428
|
-
]), import_react = __toESM(require_react(), 1), import_react_dom$
|
|
2428
|
+
]), import_react = __toESM(require_react(), 1), import_react_dom$3 = __toESM(require_react_dom(), 1), import_jsx_runtime = __toESM(require_jsx_runtime(), 1), NAVIGATION_MENU_NAME = "NavigationMenu", [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME), [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME), [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(NAVIGATION_MENU_NAME, [
|
|
2429
2429
|
createCollectionScope$1,
|
|
2430
2430
|
createFocusGroupCollectionScope
|
|
2431
2431
|
]), [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), NavigationMenu$1 = import_react.forwardRef((e, r) => {
|
|
@@ -2688,7 +2688,7 @@ let __tla = Promise.all([
|
|
|
2688
2688
|
NavigationMenuLink$1.displayName = LINK_NAME;
|
|
2689
2689
|
var INDICATOR_NAME = "NavigationMenuIndicator", NavigationMenuIndicator$1 = import_react.forwardRef((e, r) => {
|
|
2690
2690
|
let { forceMount: c, ...l } = e, u = useNavigationMenuContext(INDICATOR_NAME, e.__scopeNavigationMenu), d = !!u.value;
|
|
2691
|
-
return u.indicatorTrack ? import_react_dom$
|
|
2691
|
+
return u.indicatorTrack ? import_react_dom$3.createPortal((0, import_jsx_runtime.jsx)(Presence, {
|
|
2692
2692
|
present: c || d,
|
|
2693
2693
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuIndicatorImpl, {
|
|
2694
2694
|
...l,
|
|
@@ -2713,7 +2713,7 @@ let __tla = Promise.all([
|
|
|
2713
2713
|
offset: g ? f.offsetLeft : f.offsetTop
|
|
2714
2714
|
});
|
|
2715
2715
|
};
|
|
2716
|
-
return useResizeObserver$
|
|
2716
|
+
return useResizeObserver$3(f, v), useResizeObserver$3(u.indicatorTrack, v), m ? (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
2717
2717
|
"aria-hidden": true,
|
|
2718
2718
|
"data-state": _ ? "visible" : "hidden",
|
|
2719
2719
|
"data-orientation": u.orientation,
|
|
@@ -2874,7 +2874,7 @@ let __tla = Promise.all([
|
|
|
2874
2874
|
NavigationMenuViewport$1.displayName = VIEWPORT_NAME;
|
|
2875
2875
|
var NavigationMenuViewportImpl = import_react.forwardRef((e, r) => {
|
|
2876
2876
|
let { __scopeNavigationMenu: c, children: l, ...u } = e, d = useNavigationMenuContext(VIEWPORT_NAME, c), f = useComposedRefs(r, d.onViewportChange), m = useViewportContentContext(CONTENT_NAME, e.__scopeNavigationMenu), [h, g] = import_react.useState(null), [_, v] = import_react.useState(null), y = h ? (h == null ? void 0 : h.width) + "px" : void 0, b = h ? (h == null ? void 0 : h.height) + "px" : void 0, w = !!d.value, T = w ? d.value : d.previousValue;
|
|
2877
|
-
return useResizeObserver$
|
|
2877
|
+
return useResizeObserver$3(_, () => {
|
|
2878
2878
|
_ && g({
|
|
2879
2879
|
width: _.offsetWidth,
|
|
2880
2880
|
height: _.offsetHeight
|
|
@@ -2975,7 +2975,7 @@ let __tla = Promise.all([
|
|
|
2975
2975
|
});
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
|
-
function useResizeObserver$
|
|
2978
|
+
function useResizeObserver$3(e, r) {
|
|
2979
2979
|
let c = useCallbackRef(r);
|
|
2980
2980
|
useLayoutEffect2(() => {
|
|
2981
2981
|
let r2 = 0;
|
|
@@ -4381,7 +4381,138 @@ let __tla = Promise.all([
|
|
|
4381
4381
|
}), c[6] = u, c[7] = r, c[8] = d, c[9] = p) : p = c[9], p;
|
|
4382
4382
|
});
|
|
4383
4383
|
NavigationMenuIndicator.displayName = Indicator.displayName;
|
|
4384
|
-
var
|
|
4384
|
+
var initialSize = {
|
|
4385
|
+
width: void 0,
|
|
4386
|
+
height: void 0
|
|
4387
|
+
};
|
|
4388
|
+
function useResizeObserver$2(e) {
|
|
4389
|
+
let { ref: r, box: c = "content-box", skip: l } = e, u = (0, import_react.useRef)({
|
|
4390
|
+
...initialSize
|
|
4391
|
+
}), d = (0, import_react.useRef)(void 0);
|
|
4392
|
+
d.current = e.onResize, (0, import_react.useEffect)(() => {
|
|
4393
|
+
if (!r.current || l || typeof window > "u" || !("ResizeObserver" in window)) return;
|
|
4394
|
+
let e2 = new ResizeObserver(([e3]) => {
|
|
4395
|
+
let r2 = c === "border-box" ? "borderBoxSize" : c === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", l2 = extractSize$1(e3, r2, "inlineSize"), f = extractSize$1(e3, r2, "blockSize");
|
|
4396
|
+
if (u.current.width !== l2 || u.current.height !== f) {
|
|
4397
|
+
let e4 = {
|
|
4398
|
+
width: l2,
|
|
4399
|
+
height: f
|
|
4400
|
+
};
|
|
4401
|
+
u.current.width = l2, u.current.height = f, d.current && d.current(e4);
|
|
4402
|
+
}
|
|
4403
|
+
});
|
|
4404
|
+
return e2.observe(r.current, {
|
|
4405
|
+
box: c
|
|
4406
|
+
}), () => {
|
|
4407
|
+
e2.disconnect();
|
|
4408
|
+
};
|
|
4409
|
+
}, [
|
|
4410
|
+
c,
|
|
4411
|
+
r,
|
|
4412
|
+
l
|
|
4413
|
+
]);
|
|
4414
|
+
}
|
|
4415
|
+
function extractSize$1(e, r, c) {
|
|
4416
|
+
return e[r] ? Array.isArray(e[r]) ? e[r][0][c] : e[r][c] : r === "contentBoxSize" ? e.contentRect[c === "inlineSize" ? "width" : "height"] : void 0;
|
|
4417
|
+
}
|
|
4418
|
+
var import_compiler_runtime$87 = require_compiler_runtime(), import_react_dom$2 = require_react_dom(), HorizontalMenuGroup = (e) => {
|
|
4419
|
+
let r = (0, import_compiler_runtime$87.c)(19), { item: c, preserveQueryParams: l, target: u } = e, d = import_react.useRef(null), f;
|
|
4420
|
+
r[0] === c.label ? f = r[1] : (f = renderHTML({
|
|
4421
|
+
html: c.label
|
|
4422
|
+
}), r[0] = c.label, r[1] = f);
|
|
4423
|
+
let p;
|
|
4424
|
+
r[2] === f ? p = r[3] : (p = (0, import_jsx_runtime.jsx)(NavigationMenuTrigger, {
|
|
4425
|
+
ref: d,
|
|
4426
|
+
children: f
|
|
4427
|
+
}), r[2] = f, r[3] = p);
|
|
4428
|
+
let m;
|
|
4429
|
+
if (r[4] !== c.items || r[5] !== l || r[6] !== u) {
|
|
4430
|
+
let e2;
|
|
4431
|
+
r[8] !== l || r[9] !== u ? (e2 = (e3) => (0, import_jsx_runtime.jsx)(ListItem, {
|
|
4432
|
+
label: e3.label,
|
|
4433
|
+
href: l(e3.href),
|
|
4434
|
+
target: u(e3.href),
|
|
4435
|
+
children: e3.description && renderHTML({
|
|
4436
|
+
html: e3.description
|
|
4437
|
+
})
|
|
4438
|
+
}, e3.label), r[8] = l, r[9] = u, r[10] = e2) : e2 = r[10], m = c.items.map(e2), r[4] = c.items, r[5] = l, r[6] = u, r[7] = m;
|
|
4439
|
+
} else m = r[7];
|
|
4440
|
+
let h;
|
|
4441
|
+
r[11] === m ? h = r[12] : (h = (0, import_jsx_runtime.jsx)(NavigationMenuContent, {
|
|
4442
|
+
className: "w-auto",
|
|
4443
|
+
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
4444
|
+
className: "grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",
|
|
4445
|
+
children: m
|
|
4446
|
+
})
|
|
4447
|
+
}), r[11] = m, r[12] = h);
|
|
4448
|
+
let g;
|
|
4449
|
+
r[13] !== p || r[14] !== h ? (g = (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
4450
|
+
children: (0, import_jsx_runtime.jsxs)(NavigationMenuItem, {
|
|
4451
|
+
children: [
|
|
4452
|
+
p,
|
|
4453
|
+
h
|
|
4454
|
+
]
|
|
4455
|
+
})
|
|
4456
|
+
}), r[13] = p, r[14] = h, r[15] = g) : g = r[15];
|
|
4457
|
+
let _;
|
|
4458
|
+
r[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(NavigationMenuViewportPortal, {
|
|
4459
|
+
anchorRef: d,
|
|
4460
|
+
children: (0, import_jsx_runtime.jsx)(NavigationMenuViewport, {})
|
|
4461
|
+
}), r[16] = _) : _ = r[16];
|
|
4462
|
+
let v;
|
|
4463
|
+
return r[17] === g ? v = r[18] : (v = (0, import_jsx_runtime.jsxs)(Root2, {
|
|
4464
|
+
className: "relative z-10 max-w-max flex-1 items-center justify-center",
|
|
4465
|
+
orientation: "horizontal",
|
|
4466
|
+
children: [
|
|
4467
|
+
g,
|
|
4468
|
+
_
|
|
4469
|
+
]
|
|
4470
|
+
}), r[17] = g, r[18] = v), v;
|
|
4471
|
+
}, NavigationMenuViewportPortal = (e) => {
|
|
4472
|
+
let r = (0, import_compiler_runtime$87.c)(17), { anchorRef: c, children: l } = e, [u, d] = import_react.useState(null), f;
|
|
4473
|
+
r[0] === c ? f = r[1] : (f = () => {
|
|
4474
|
+
if (!c.current) return;
|
|
4475
|
+
let e2 = c.current.getBoundingClientRect();
|
|
4476
|
+
d({
|
|
4477
|
+
left: e2.left,
|
|
4478
|
+
top: e2.bottom
|
|
4479
|
+
});
|
|
4480
|
+
}, r[0] = c, r[1] = f);
|
|
4481
|
+
let p = f, m, h;
|
|
4482
|
+
r[2] === p ? (m = r[3], h = r[4]) : (m = () => {
|
|
4483
|
+
p();
|
|
4484
|
+
}, h = [
|
|
4485
|
+
p
|
|
4486
|
+
], r[2] = p, r[3] = m, r[4] = h), import_react.useLayoutEffect(m, h);
|
|
4487
|
+
let g;
|
|
4488
|
+
r[5] !== c || r[6] !== p ? (g = {
|
|
4489
|
+
ref: c,
|
|
4490
|
+
onResize: p
|
|
4491
|
+
}, r[5] = c, r[6] = p, r[7] = g) : g = r[7], useResizeObserver$2(g);
|
|
4492
|
+
let _, v;
|
|
4493
|
+
if (r[8] === p ? (_ = r[9], v = r[10]) : (_ = () => {
|
|
4494
|
+
if (!(typeof window > "u")) return window.addEventListener("resize", p), document.addEventListener("scroll", p, {
|
|
4495
|
+
capture: true
|
|
4496
|
+
}), () => {
|
|
4497
|
+
window.removeEventListener("resize", p), document.removeEventListener("scroll", p, {
|
|
4498
|
+
capture: true
|
|
4499
|
+
});
|
|
4500
|
+
};
|
|
4501
|
+
}, v = [
|
|
4502
|
+
p
|
|
4503
|
+
], r[8] = p, r[9] = _, r[10] = v), import_react.useEffect(_, v), !u || typeof document > "u") return null;
|
|
4504
|
+
let y;
|
|
4505
|
+
r[11] !== u.left || r[12] !== u.top ? (y = {
|
|
4506
|
+
left: u.left,
|
|
4507
|
+
top: u.top
|
|
4508
|
+
}, r[11] = u.left, r[12] = u.top, r[13] = y) : y = r[13];
|
|
4509
|
+
let b;
|
|
4510
|
+
return r[14] !== l || r[15] !== y ? (b = (0, import_react_dom$2.createPortal)((0, import_jsx_runtime.jsx)("div", {
|
|
4511
|
+
className: "fixed z-50",
|
|
4512
|
+
style: y,
|
|
4513
|
+
children: l
|
|
4514
|
+
}), document.body), r[14] = l, r[15] = y, r[16] = b) : b = r[16], b;
|
|
4515
|
+
}, NavigationMenuPlugin = class {
|
|
4385
4516
|
constructor() {
|
|
4386
4517
|
__publicField(this, "tagName", "marimo-nav-menu");
|
|
4387
4518
|
__publicField(this, "menuItemValidator", object({
|
|
@@ -4411,32 +4542,10 @@ let __tla = Promise.all([
|
|
|
4411
4542
|
}
|
|
4412
4543
|
}, NavMenuComponent = (e) => {
|
|
4413
4544
|
let r = (0, import_compiler_runtime$87.c)(13), { items: c, orientation: l } = e, u = _temp$28, d = _temp2$16, f = _temp3$12, p;
|
|
4414
|
-
r[0] === l ? p = r[1] : (p = (e2) => "items" in e2 ? l === "horizontal" ? (0, import_jsx_runtime.jsx)(
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
children: [
|
|
4419
|
-
(0, import_jsx_runtime.jsx)(NavigationMenuTrigger, {
|
|
4420
|
-
children: renderHTML({
|
|
4421
|
-
html: e2.label
|
|
4422
|
-
})
|
|
4423
|
-
}),
|
|
4424
|
-
(0, import_jsx_runtime.jsx)(NavigationMenuContent, {
|
|
4425
|
-
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
4426
|
-
className: "grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",
|
|
4427
|
-
children: e2.items.map((e3) => (0, import_jsx_runtime.jsx)(ListItem, {
|
|
4428
|
-
label: e3.label,
|
|
4429
|
-
href: f(e3.href),
|
|
4430
|
-
target: d(e3.href),
|
|
4431
|
-
children: e3.description && renderHTML({
|
|
4432
|
-
html: e3.description
|
|
4433
|
-
})
|
|
4434
|
-
}, e3.label))
|
|
4435
|
-
})
|
|
4436
|
-
})
|
|
4437
|
-
]
|
|
4438
|
-
})
|
|
4439
|
-
})
|
|
4545
|
+
r[0] === l ? p = r[1] : (p = (e2) => "items" in e2 ? l === "horizontal" ? (0, import_jsx_runtime.jsx)(HorizontalMenuGroup, {
|
|
4546
|
+
item: e2,
|
|
4547
|
+
preserveQueryParams: f,
|
|
4548
|
+
target: d
|
|
4440
4549
|
}, e2.label) : (0, import_jsx_runtime.jsxs)(NavigationMenuItem, {
|
|
4441
4550
|
children: [
|
|
4442
4551
|
(0, import_jsx_runtime.jsx)("div", {
|
|
@@ -4511,17 +4620,14 @@ let __tla = Promise.all([
|
|
|
4511
4620
|
}), c[11] = l, c[12] = _);
|
|
4512
4621
|
let v;
|
|
4513
4622
|
return c[13] !== f || c[14] !== r || c[15] !== p || c[16] !== g || c[17] !== _ ? (v = (0, import_jsx_runtime.jsx)("li", {
|
|
4514
|
-
children: (0, import_jsx_runtime.
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
_
|
|
4523
|
-
]
|
|
4524
|
-
})
|
|
4623
|
+
children: (0, import_jsx_runtime.jsxs)("a", {
|
|
4624
|
+
ref: r,
|
|
4625
|
+
className: p,
|
|
4626
|
+
...f,
|
|
4627
|
+
children: [
|
|
4628
|
+
g,
|
|
4629
|
+
_
|
|
4630
|
+
]
|
|
4525
4631
|
})
|
|
4526
4632
|
}), c[13] = f, c[14] = r, c[15] = p, c[16] = g, c[17] = _, c[18] = v) : v = c[18], v;
|
|
4527
4633
|
});
|
|
@@ -7402,21 +7508,21 @@ let __tla = Promise.all([
|
|
|
7402
7508
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
7403
7509
|
column: 0,
|
|
7404
7510
|
row: 0
|
|
7405
|
-
}),
|
|
7406
|
-
Y(x(b, $(
|
|
7407
|
-
D(
|
|
7408
|
-
}), Y(x(ut(b,
|
|
7409
|
-
D(
|
|
7511
|
+
}), YW = U(), XW = U(), ZW = C(false), QW = C(0), $W = C(true), eG = C(false), tG = C(false);
|
|
7512
|
+
Y(x(b, $(QW), P(([e2, r2]) => !!r2)), () => {
|
|
7513
|
+
D($W, false);
|
|
7514
|
+
}), Y(x(ut(b, $W, B, z, QW, eG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7515
|
+
D(eG, true), Ue(1, () => {
|
|
7410
7516
|
D(H, e2);
|
|
7411
7517
|
}), Et(x(h), () => {
|
|
7412
7518
|
D(r, [
|
|
7413
7519
|
0,
|
|
7414
7520
|
0
|
|
7415
|
-
]), D(
|
|
7521
|
+
]), D($W, true);
|
|
7416
7522
|
});
|
|
7417
|
-
}), F(x(
|
|
7418
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(
|
|
7419
|
-
D(
|
|
7523
|
+
}), F(x(XW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(XW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7524
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(ZW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7525
|
+
D(ZW, false);
|
|
7420
7526
|
}), D(m, {
|
|
7421
7527
|
top: e2.scrollTop
|
|
7422
7528
|
})));
|
|
@@ -7425,7 +7531,7 @@ let __tla = Promise.all([
|
|
|
7425
7531
|
item: r2,
|
|
7426
7532
|
scrollTop: l2,
|
|
7427
7533
|
viewport: e2
|
|
7428
|
-
}))),
|
|
7534
|
+
}))), YW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(ZW), V($W), V(QW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7429
7535
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7430
7536
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7431
7537
|
if (y2 === 0) {
|
|
@@ -7451,16 +7557,16 @@ let __tla = Promise.all([
|
|
|
7451
7557
|
u2
|
|
7452
7558
|
];
|
|
7453
7559
|
}), J(ce)), r);
|
|
7454
|
-
let
|
|
7455
|
-
F(x(h, $(
|
|
7456
|
-
let
|
|
7560
|
+
let nG = C(false);
|
|
7561
|
+
F(x(h, $(nG), k(([e2, r2]) => r2 || e2 !== 0)), nG);
|
|
7562
|
+
let rG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(nG), P(([[e2, r2], c2]) => {
|
|
7457
7563
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7458
7564
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7459
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7565
|
+
}), k(([[, e2]]) => e2 - 1), J())), iG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), aG = bt(x(V(R), $(ZW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7460
7566
|
endIndex: e2[e2.length - 1].index,
|
|
7461
7567
|
startIndex: e2[0].index
|
|
7462
7568
|
})), J(An), Gt(0)));
|
|
7463
|
-
F(
|
|
7569
|
+
F(aG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
7464
7570
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7465
7571
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7466
7572
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7469,7 +7575,7 @@ let __tla = Promise.all([
|
|
|
7469
7575
|
top: g2
|
|
7470
7576
|
};
|
|
7471
7577
|
})), m);
|
|
7472
|
-
let
|
|
7578
|
+
let oG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7473
7579
|
return F(x(j, k((e2) => ({
|
|
7474
7580
|
height: e2.visibleHeight,
|
|
7475
7581
|
width: e2.visibleWidth
|
|
@@ -7484,7 +7590,7 @@ let __tla = Promise.all([
|
|
|
7484
7590
|
initialItemCount: L,
|
|
7485
7591
|
itemDimensions: B,
|
|
7486
7592
|
overscan: c,
|
|
7487
|
-
restoreStateFrom:
|
|
7593
|
+
restoreStateFrom: XW,
|
|
7488
7594
|
scrollBy: f,
|
|
7489
7595
|
scrollContainerState: p,
|
|
7490
7596
|
scrollHeight: W,
|
|
@@ -7500,16 +7606,16 @@ let __tla = Promise.all([
|
|
|
7500
7606
|
windowViewportRect: j,
|
|
7501
7607
|
...y,
|
|
7502
7608
|
gridState: R,
|
|
7503
|
-
horizontalDirection:
|
|
7504
|
-
initialTopMostItemIndex:
|
|
7505
|
-
totalListHeight:
|
|
7609
|
+
horizontalDirection: tG,
|
|
7610
|
+
initialTopMostItemIndex: QW,
|
|
7611
|
+
totalListHeight: oG,
|
|
7506
7612
|
...v,
|
|
7507
|
-
endReached:
|
|
7613
|
+
endReached: rG,
|
|
7508
7614
|
propsReady: S,
|
|
7509
|
-
rangeChanged:
|
|
7510
|
-
startReached:
|
|
7511
|
-
stateChanged:
|
|
7512
|
-
stateRestoreInProgress:
|
|
7615
|
+
rangeChanged: aG,
|
|
7616
|
+
startReached: iG,
|
|
7617
|
+
stateChanged: YW,
|
|
7618
|
+
stateRestoreInProgress: ZW,
|
|
7513
7619
|
...M
|
|
7514
7620
|
};
|
|
7515
7621
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7787,22 +7893,22 @@ let __tla = Promise.all([
|
|
|
7787
7893
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7788
7894
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7789
7895
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7790
|
-
let Z = q,
|
|
7896
|
+
let Z = q, YW;
|
|
7791
7897
|
if (r[13] !== G.bulkActions) {
|
|
7792
|
-
if (
|
|
7898
|
+
if (YW = G.bulkActions.map(_temp$27), YW.length > 0) {
|
|
7793
7899
|
let e2;
|
|
7794
7900
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7795
7901
|
"data-slot": "select-separator"
|
|
7796
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7902
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], YW.push(e2);
|
|
7797
7903
|
}
|
|
7798
|
-
r[13] = G.bulkActions, r[14] =
|
|
7799
|
-
} else
|
|
7800
|
-
let
|
|
7801
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7904
|
+
r[13] = G.bulkActions, r[14] = YW;
|
|
7905
|
+
} else YW = r[14];
|
|
7906
|
+
let XW;
|
|
7907
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (XW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7802
7908
|
"data-slot": "select-separator"
|
|
7803
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7804
|
-
let
|
|
7805
|
-
r[19] !==
|
|
7909
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = XW) : XW = r[18];
|
|
7910
|
+
let ZW = XW, QW;
|
|
7911
|
+
r[19] !== YW || r[20] !== G || r[21] !== ZW || r[22] !== w || r[23] !== B || r[24] !== H ? (QW = () => {
|
|
7806
7912
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7807
7913
|
"data-slot": "select-list",
|
|
7808
7914
|
style: {
|
|
@@ -7814,8 +7920,8 @@ let __tla = Promise.all([
|
|
|
7814
7920
|
let r2 = G.visibleOptions[e3];
|
|
7815
7921
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7816
7922
|
children: [
|
|
7817
|
-
e3 === 0 &&
|
|
7818
|
-
|
|
7923
|
+
e3 === 0 && YW,
|
|
7924
|
+
ZW(e3),
|
|
7819
7925
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7820
7926
|
option: r2,
|
|
7821
7927
|
checked: G.isChecked(r2.value),
|
|
@@ -7826,7 +7932,7 @@ let __tla = Promise.all([
|
|
|
7826
7932
|
}
|
|
7827
7933
|
});
|
|
7828
7934
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7829
|
-
let c2 =
|
|
7935
|
+
let c2 = ZW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7830
7936
|
option: e3,
|
|
7831
7937
|
checked: G.isChecked(e3.value),
|
|
7832
7938
|
renderOption: w
|
|
@@ -7840,13 +7946,13 @@ let __tla = Promise.all([
|
|
|
7840
7946
|
});
|
|
7841
7947
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7842
7948
|
children: [
|
|
7843
|
-
|
|
7949
|
+
YW,
|
|
7844
7950
|
e2
|
|
7845
7951
|
]
|
|
7846
7952
|
});
|
|
7847
|
-
}, r[19] =
|
|
7848
|
-
let
|
|
7849
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7953
|
+
}, r[19] = YW, r[20] = G, r[21] = ZW, r[22] = w, r[23] = B, r[24] = H, r[25] = QW) : QW = r[25];
|
|
7954
|
+
let $W = QW, eG;
|
|
7955
|
+
r[26] !== G.labelOf || r[27] !== I ? (eG = (e2) => {
|
|
7850
7956
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7851
7957
|
e2
|
|
7852
7958
|
];
|
|
@@ -7857,46 +7963,46 @@ let __tla = Promise.all([
|
|
|
7857
7963
|
items: r2.map(G.labelOf),
|
|
7858
7964
|
max: 3
|
|
7859
7965
|
});
|
|
7860
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7861
|
-
let
|
|
7862
|
-
r[29] === G ?
|
|
7863
|
-
let
|
|
7864
|
-
r[31] !== b || r[32] !== R ? (
|
|
7966
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = eG) : eG = r[28];
|
|
7967
|
+
let tG = eG, nG = e["data-testid"], rG;
|
|
7968
|
+
r[29] === G ? rG = r[30] : (rG = (e2) => G.labelOf(e2), r[29] = G, r[30] = rG);
|
|
7969
|
+
let iG = M ? tG : void 0, aG;
|
|
7970
|
+
r[31] !== b || r[32] !== R ? (aG = cn({
|
|
7865
7971
|
"w-full": R
|
|
7866
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7867
|
-
let
|
|
7868
|
-
r[34] === z ?
|
|
7869
|
-
let
|
|
7870
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7972
|
+
}, b), r[31] = b, r[32] = R, r[33] = aG) : aG = r[33];
|
|
7973
|
+
let oG = G.searchQuery, sG = G.setSearchQuery, cG = G.open, lG = G.setOpen, uG;
|
|
7974
|
+
r[34] === z ? uG = r[35] : (uG = renderSlot(z), r[34] = z, r[35] = uG);
|
|
7975
|
+
let dG;
|
|
7976
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== nG || r[44] !== rG || r[45] !== iG || r[46] !== aG || r[47] !== uG ? (dG = {
|
|
7871
7977
|
"data-slot": "select-root",
|
|
7872
|
-
"data-testid":
|
|
7873
|
-
displayValue:
|
|
7874
|
-
renderValue:
|
|
7978
|
+
"data-testid": nG,
|
|
7979
|
+
displayValue: rG,
|
|
7980
|
+
renderValue: iG,
|
|
7875
7981
|
placeholder: I,
|
|
7876
|
-
className:
|
|
7982
|
+
className: aG,
|
|
7877
7983
|
shouldFilter: false,
|
|
7878
|
-
search:
|
|
7879
|
-
onSearchChange:
|
|
7880
|
-
open:
|
|
7881
|
-
onOpenChange:
|
|
7882
|
-
emptyState:
|
|
7984
|
+
search: oG,
|
|
7985
|
+
onSearchChange: sG,
|
|
7986
|
+
open: cG,
|
|
7987
|
+
onOpenChange: lG,
|
|
7988
|
+
emptyState: uG,
|
|
7883
7989
|
disabled: L,
|
|
7884
7990
|
id: S
|
|
7885
|
-
}, 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] =
|
|
7886
|
-
let
|
|
7887
|
-
return r[49] !==
|
|
7888
|
-
...
|
|
7991
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = nG, r[44] = rG, r[45] = iG, r[46] = aG, r[47] = uG, r[48] = dG) : dG = r[48];
|
|
7992
|
+
let fG = dG, pG;
|
|
7993
|
+
return r[49] !== fG || r[50] !== Z || r[51] !== d || r[52] !== $W || r[53] !== l ? (pG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7994
|
+
...fG,
|
|
7889
7995
|
multiple: true,
|
|
7890
7996
|
value: l,
|
|
7891
7997
|
onValueChange: Z,
|
|
7892
|
-
children:
|
|
7998
|
+
children: $W()
|
|
7893
7999
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7894
|
-
...
|
|
8000
|
+
...fG,
|
|
7895
8001
|
multiple: false,
|
|
7896
8002
|
value: l,
|
|
7897
8003
|
onValueChange: Z,
|
|
7898
|
-
children:
|
|
7899
|
-
}), r[49] =
|
|
8004
|
+
children: $W()
|
|
8005
|
+
}), r[49] = fG, r[50] = Z, r[51] = d, r[52] = $W, r[53] = l, r[54] = pG) : pG = r[54], pG;
|
|
7900
8006
|
}
|
|
7901
8007
|
function _temp$27(e) {
|
|
7902
8008
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8374,6 +8480,10 @@ let __tla = Promise.all([
|
|
|
8374
8480
|
}
|
|
8375
8481
|
});
|
|
8376
8482
|
}
|
|
8483
|
+
const islandsInitializedAtom = atom(false), islandsPendingInitialRunsAtom = atom(/* @__PURE__ */ new Set()), islandsHydratedAtom = atom((e) => {
|
|
8484
|
+
var _a5;
|
|
8485
|
+
return ((_a5 = e(islandsPendingInitialRunsAtom)) == null ? void 0 : _a5.size) === 0;
|
|
8486
|
+
}), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
8377
8487
|
function createPlugin(e, r = {}) {
|
|
8378
8488
|
return {
|
|
8379
8489
|
withData(c) {
|
|
@@ -8412,8 +8522,9 @@ let __tla = Promise.all([
|
|
|
8412
8522
|
...e
|
|
8413
8523
|
}));
|
|
8414
8524
|
var AnyWidgetSlot = (e) => {
|
|
8415
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8416
|
-
r[0]
|
|
8525
|
+
let r = (0, import_compiler_runtime$82.c)(9), { modelId: c } = e.data, l = (0, import_react.useRef)(null), [u, d] = (0, import_react.useState)(), f = useAtomValue(islandsHydratedAtom), p, m;
|
|
8526
|
+
r[0] !== f || r[1] !== c ? (p = () => {
|
|
8527
|
+
if (!f) return;
|
|
8417
8528
|
let e2 = l.current;
|
|
8418
8529
|
if (!e2) return;
|
|
8419
8530
|
let r2 = new AbortController();
|
|
@@ -8424,24 +8535,25 @@ let __tla = Promise.all([
|
|
|
8424
8535
|
}).catch((e3) => {
|
|
8425
8536
|
r2.signal.aborted || d(e3 instanceof Error ? e3 : Error(String(e3)));
|
|
8426
8537
|
}), () => r2.abort();
|
|
8427
|
-
},
|
|
8538
|
+
}, m = [
|
|
8539
|
+
f,
|
|
8428
8540
|
c
|
|
8429
|
-
], r[0] =
|
|
8430
|
-
let m;
|
|
8431
|
-
r[3] === u ? m = r[4] : (m = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8432
|
-
error: u
|
|
8433
|
-
}) : null, r[3] = u, r[4] = m);
|
|
8541
|
+
], r[0] = f, r[1] = c, r[2] = p, r[3] = m) : (p = r[2], m = r[3]), (0, import_react.useEffect)(p, m);
|
|
8434
8542
|
let h;
|
|
8435
|
-
r[
|
|
8436
|
-
|
|
8437
|
-
}), r[
|
|
8543
|
+
r[4] === u ? h = r[5] : (h = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8544
|
+
error: u
|
|
8545
|
+
}) : null, r[4] = u, r[5] = h);
|
|
8438
8546
|
let g;
|
|
8439
|
-
|
|
8547
|
+
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)("div", {
|
|
8548
|
+
ref: l
|
|
8549
|
+
}), r[6] = g) : g = r[6];
|
|
8550
|
+
let _;
|
|
8551
|
+
return r[7] === h ? _ = r[8] : (_ = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
8440
8552
|
children: [
|
|
8441
|
-
|
|
8442
|
-
|
|
8553
|
+
h,
|
|
8554
|
+
g
|
|
8443
8555
|
]
|
|
8444
|
-
}), r[
|
|
8556
|
+
}), r[7] = h, r[8] = _), _;
|
|
8445
8557
|
}, import_compiler_runtime$81 = require_compiler_runtime();
|
|
8446
8558
|
const KeyboardHotkeys = (e) => {
|
|
8447
8559
|
let r = (0, import_compiler_runtime$81.c)(10), { shortcut: c, className: l } = e;
|
|
@@ -10078,10 +10190,10 @@ let __tla = Promise.all([
|
|
|
10078
10190
|
}, H = () => {
|
|
10079
10191
|
for (let e2 of p.unMount) {
|
|
10080
10192
|
let r2 = get(l, e2);
|
|
10081
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10193
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && aG(e2);
|
|
10082
10194
|
}
|
|
10083
10195
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10084
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10196
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(eG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10085
10197
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10086
10198
|
[e2]: r2
|
|
10087
10199
|
} : r2
|
|
@@ -10098,13 +10210,13 @@ let __tla = Promise.all([
|
|
|
10098
10210
|
}
|
|
10099
10211
|
})));
|
|
10100
10212
|
}
|
|
10101
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10102
|
-
},
|
|
10213
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && $W(e2);
|
|
10214
|
+
}, YW = (e2, r2, c2) => {
|
|
10103
10215
|
for (let u2 in r2) {
|
|
10104
10216
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10105
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10217
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? YW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10106
10218
|
}
|
|
10107
|
-
},
|
|
10219
|
+
}, XW = (e2, r2, m2 = {}) => {
|
|
10108
10220
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10109
10221
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10110
10222
|
name: e2,
|
|
@@ -10115,7 +10227,7 @@ let __tla = Promise.all([
|
|
|
10115
10227
|
name: e2,
|
|
10116
10228
|
dirtyFields: getDirtyFields(u, d),
|
|
10117
10229
|
isDirty: W(e2, y2)
|
|
10118
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10230
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? YW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10119
10231
|
...c
|
|
10120
10232
|
}), _.values.next({
|
|
10121
10233
|
name: f.mount ? e2 : void 0,
|
|
@@ -10123,7 +10235,7 @@ let __tla = Promise.all([
|
|
|
10123
10235
|
...d
|
|
10124
10236
|
}
|
|
10125
10237
|
});
|
|
10126
|
-
},
|
|
10238
|
+
}, ZW = async (e2) => {
|
|
10127
10239
|
f.mount = true;
|
|
10128
10240
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10129
10241
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10157,11 +10269,11 @@ let __tla = Promise.all([
|
|
|
10157
10269
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10158
10270
|
h2
|
|
10159
10271
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10160
|
-
S2 && (E2._f.deps &&
|
|
10272
|
+
S2 && (E2._f.deps && $W(E2._f.deps), L(h2, f2, u3, G2));
|
|
10161
10273
|
}
|
|
10162
|
-
},
|
|
10274
|
+
}, QW = (e2, r2) => {
|
|
10163
10275
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10164
|
-
},
|
|
10276
|
+
}, $W = async (e2, u2 = {}) => {
|
|
10165
10277
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10166
10278
|
if (r.resolver) {
|
|
10167
10279
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10180,23 +10292,23 @@ let __tla = Promise.all([
|
|
|
10180
10292
|
isValid: d2
|
|
10181
10293
|
} : {},
|
|
10182
10294
|
errors: c.errors
|
|
10183
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10184
|
-
},
|
|
10295
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, QW, e2 ? m2 : p.mount), f2;
|
|
10296
|
+
}, eG = (e2) => {
|
|
10185
10297
|
let r2 = {
|
|
10186
10298
|
...f.mount ? d : u
|
|
10187
10299
|
};
|
|
10188
10300
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10189
|
-
},
|
|
10301
|
+
}, tG = (e2, r2) => ({
|
|
10190
10302
|
invalid: !!get((r2 || c).errors, e2),
|
|
10191
10303
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10192
10304
|
error: get((r2 || c).errors, e2),
|
|
10193
10305
|
isValidating: !!get(c.validatingFields, e2),
|
|
10194
10306
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10195
|
-
}),
|
|
10307
|
+
}), nG = (e2) => {
|
|
10196
10308
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10197
10309
|
errors: e2 ? c.errors : {}
|
|
10198
10310
|
});
|
|
10199
|
-
},
|
|
10311
|
+
}, rG = (e2, r2, u2) => {
|
|
10200
10312
|
let d2 = (get(l, e2, {
|
|
10201
10313
|
_f: {}
|
|
10202
10314
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10209,9 +10321,9 @@ let __tla = Promise.all([
|
|
|
10209
10321
|
errors: c.errors,
|
|
10210
10322
|
isValid: false
|
|
10211
10323
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10212
|
-
},
|
|
10324
|
+
}, iG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10213
10325
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10214
|
-
}) : G(e2, r2, true),
|
|
10326
|
+
}) : G(e2, r2, true), aG = (e2, f2 = {}) => {
|
|
10215
10327
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
10216
10328
|
_.values.next({
|
|
10217
10329
|
values: {
|
|
@@ -10223,9 +10335,9 @@ let __tla = Promise.all([
|
|
|
10223
10335
|
isDirty: W()
|
|
10224
10336
|
} : {}
|
|
10225
10337
|
}), !f2.keepIsValid && w();
|
|
10226
|
-
},
|
|
10338
|
+
}, oG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10227
10339
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
10228
|
-
},
|
|
10340
|
+
}, sG = (e2, c2 = {}) => {
|
|
10229
10341
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10230
10342
|
return set(l, e2, {
|
|
10231
10343
|
...d2 || {},
|
|
@@ -10239,7 +10351,7 @@ let __tla = Promise.all([
|
|
|
10239
10351
|
mount: true,
|
|
10240
10352
|
...c2
|
|
10241
10353
|
}
|
|
10242
|
-
}), p.mount.add(e2), d2 ?
|
|
10354
|
+
}), p.mount.add(e2), d2 ? oG({
|
|
10243
10355
|
field: d2,
|
|
10244
10356
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10245
10357
|
name: e2
|
|
@@ -10256,11 +10368,11 @@ let __tla = Promise.all([
|
|
|
10256
10368
|
pattern: getRuleValue(c2.pattern)
|
|
10257
10369
|
} : {},
|
|
10258
10370
|
name: e2,
|
|
10259
|
-
onChange:
|
|
10260
|
-
onBlur:
|
|
10371
|
+
onChange: ZW,
|
|
10372
|
+
onBlur: ZW,
|
|
10261
10373
|
ref: (m3) => {
|
|
10262
10374
|
if (m3) {
|
|
10263
|
-
|
|
10375
|
+
sG(e2, c2), d2 = get(l, e2);
|
|
10264
10376
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10265
10377
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10266
10378
|
set(l, e2, {
|
|
@@ -10286,7 +10398,7 @@ let __tla = Promise.all([
|
|
|
10286
10398
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
10287
10399
|
}
|
|
10288
10400
|
};
|
|
10289
|
-
},
|
|
10401
|
+
}, cG = () => r.shouldFocusError && iterateFieldsByAction(l, QW, p.mount), lG = (e2) => {
|
|
10290
10402
|
isBoolean(e2) && (_.state.next({
|
|
10291
10403
|
disabled: e2
|
|
10292
10404
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10295,7 +10407,7 @@ let __tla = Promise.all([
|
|
|
10295
10407
|
r3.disabled = u2._f.disabled || e2;
|
|
10296
10408
|
}));
|
|
10297
10409
|
}, 0, false));
|
|
10298
|
-
},
|
|
10410
|
+
}, uG = (e2, u2) => async (f2) => {
|
|
10299
10411
|
let m2;
|
|
10300
10412
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10301
10413
|
let h2 = cloneObject(d);
|
|
@@ -10317,7 +10429,7 @@ let __tla = Promise.all([
|
|
|
10317
10429
|
}
|
|
10318
10430
|
} else u2 && await u2({
|
|
10319
10431
|
...c.errors
|
|
10320
|
-
}, f2),
|
|
10432
|
+
}, f2), cG(), setTimeout(cG);
|
|
10321
10433
|
if (_.state.next({
|
|
10322
10434
|
isSubmitted: true,
|
|
10323
10435
|
isSubmitting: false,
|
|
@@ -10325,11 +10437,11 @@ let __tla = Promise.all([
|
|
|
10325
10437
|
submitCount: c.submitCount + 1,
|
|
10326
10438
|
errors: c.errors
|
|
10327
10439
|
}), m2) throw m2;
|
|
10328
|
-
},
|
|
10329
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10440
|
+
}, dG = (e2, r2 = {}) => {
|
|
10441
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? XW(e2, cloneObject(get(u, e2))) : (XW(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10330
10442
|
...c
|
|
10331
10443
|
}));
|
|
10332
|
-
},
|
|
10444
|
+
}, fG = (e2, m2 = {}) => {
|
|
10333
10445
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10334
10446
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10335
10447
|
if (m2.keepDirtyValues) {
|
|
@@ -10337,7 +10449,7 @@ let __tla = Promise.all([
|
|
|
10337
10449
|
...p.mount,
|
|
10338
10450
|
...Object.keys(getDirtyFields(u, d))
|
|
10339
10451
|
]);
|
|
10340
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10452
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : XW(r2, get(b2, r2));
|
|
10341
10453
|
} else {
|
|
10342
10454
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10343
10455
|
let r2 = get(l, e3);
|
|
@@ -10382,25 +10494,25 @@ let __tla = Promise.all([
|
|
|
10382
10494
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10383
10495
|
isSubmitting: false
|
|
10384
10496
|
});
|
|
10385
|
-
},
|
|
10497
|
+
}, pG = (e2, r2) => fG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10386
10498
|
return {
|
|
10387
10499
|
control: {
|
|
10388
|
-
register:
|
|
10389
|
-
unregister:
|
|
10390
|
-
getFieldState:
|
|
10391
|
-
handleSubmit:
|
|
10392
|
-
setError:
|
|
10500
|
+
register: sG,
|
|
10501
|
+
unregister: aG,
|
|
10502
|
+
getFieldState: tG,
|
|
10503
|
+
handleSubmit: uG,
|
|
10504
|
+
setError: rG,
|
|
10393
10505
|
_executeSchema: R,
|
|
10394
10506
|
_getWatch: G,
|
|
10395
10507
|
_getDirty: W,
|
|
10396
10508
|
_updateValid: w,
|
|
10397
10509
|
_removeUnmounted: H,
|
|
10398
10510
|
_updateFieldArray: E,
|
|
10399
|
-
_updateDisabledField:
|
|
10511
|
+
_updateDisabledField: oG,
|
|
10400
10512
|
_getFieldArray: q,
|
|
10401
|
-
_reset:
|
|
10513
|
+
_reset: fG,
|
|
10402
10514
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10403
|
-
|
|
10515
|
+
pG(e2, r.resetOptions), _.state.next({
|
|
10404
10516
|
isLoading: false
|
|
10405
10517
|
});
|
|
10406
10518
|
}),
|
|
@@ -10410,7 +10522,7 @@ let __tla = Promise.all([
|
|
|
10410
10522
|
...e2
|
|
10411
10523
|
};
|
|
10412
10524
|
},
|
|
10413
|
-
_disableForm:
|
|
10525
|
+
_disableForm: lG,
|
|
10414
10526
|
_subjects: _,
|
|
10415
10527
|
_proxyFormState: g,
|
|
10416
10528
|
_setErrors: j,
|
|
@@ -10451,17 +10563,17 @@ let __tla = Promise.all([
|
|
|
10451
10563
|
};
|
|
10452
10564
|
}
|
|
10453
10565
|
},
|
|
10454
|
-
trigger:
|
|
10455
|
-
register:
|
|
10456
|
-
handleSubmit:
|
|
10457
|
-
watch:
|
|
10458
|
-
setValue:
|
|
10459
|
-
getValues:
|
|
10460
|
-
reset:
|
|
10461
|
-
resetField:
|
|
10462
|
-
clearErrors:
|
|
10463
|
-
unregister:
|
|
10464
|
-
setError:
|
|
10566
|
+
trigger: $W,
|
|
10567
|
+
register: sG,
|
|
10568
|
+
handleSubmit: uG,
|
|
10569
|
+
watch: iG,
|
|
10570
|
+
setValue: XW,
|
|
10571
|
+
getValues: eG,
|
|
10572
|
+
reset: pG,
|
|
10573
|
+
resetField: dG,
|
|
10574
|
+
clearErrors: nG,
|
|
10575
|
+
unregister: aG,
|
|
10576
|
+
setError: rG,
|
|
10465
10577
|
setFocus: (e2, r2 = {}) => {
|
|
10466
10578
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10467
10579
|
if (u2) {
|
|
@@ -10469,7 +10581,7 @@ let __tla = Promise.all([
|
|
|
10469
10581
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10470
10582
|
}
|
|
10471
10583
|
},
|
|
10472
|
-
getFieldState:
|
|
10584
|
+
getFieldState: tG
|
|
10473
10585
|
};
|
|
10474
10586
|
}
|
|
10475
10587
|
function useForm(e = {}) {
|
|
@@ -16194,21 +16306,21 @@ ${c}
|
|
|
16194
16306
|
_.pageSize,
|
|
16195
16307
|
_.pageIndex
|
|
16196
16308
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16197
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16198
|
-
r[48] !==
|
|
16199
|
-
let
|
|
16200
|
-
r[51] !==
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16309
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), YW = useAtomValue(downloadSizeLimitAtom), XW;
|
|
16310
|
+
r[48] !== YW || r[49] !== e ? (XW = async () => !YW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = YW, r[49] = e, r[50] = XW) : XW = r[50];
|
|
16311
|
+
let ZW = e.showDownload, QW = e.get_size_bytes, $W = e.lazy, eG = e.totalRows, tG = useDeepCompareMemoize(w), nG = useDeepCompareMemoize(p), rG;
|
|
16312
|
+
r[51] !== YW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== tG || r[58] !== nG ? (rG = [
|
|
16313
|
+
YW,
|
|
16314
|
+
ZW,
|
|
16315
|
+
QW,
|
|
16316
|
+
$W,
|
|
16317
|
+
eG,
|
|
16206
16318
|
y,
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
], r[51] =
|
|
16210
|
-
let { data:
|
|
16211
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (
|
|
16319
|
+
tG,
|
|
16320
|
+
nG
|
|
16321
|
+
], r[51] = YW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = tG, r[58] = nG, r[59] = rG) : rG = r[59];
|
|
16322
|
+
let { data: iG, isPending: aG } = useAsyncData(XW, rG), oG = iG ?? null, sG = !!YW && e.showDownload && aG, cG;
|
|
16323
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (cG = async (e2) => ({
|
|
16212
16324
|
rows: await loadTableData((await u({
|
|
16213
16325
|
page_number: e2,
|
|
16214
16326
|
page_size: 1,
|
|
@@ -16217,17 +16329,17 @@ ${c}
|
|
|
16217
16329
|
filters: filtersToFilterGroup(w),
|
|
16218
16330
|
max_columns: null
|
|
16219
16331
|
})).data)
|
|
16220
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16221
|
-
let
|
|
16222
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16332
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = cG) : cG = r[64];
|
|
16333
|
+
let lG = cG, uG;
|
|
16334
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = () => {
|
|
16223
16335
|
v(_temp4$4);
|
|
16224
|
-
}, r[65] =
|
|
16225
|
-
let
|
|
16226
|
-
r[66] ===
|
|
16227
|
-
|
|
16228
|
-
], r[66] =
|
|
16229
|
-
let
|
|
16230
|
-
r[68] === e ?
|
|
16336
|
+
}, r[65] = uG) : uG = r[65];
|
|
16337
|
+
let dG = W == null ? void 0 : W.totalRows, fG;
|
|
16338
|
+
r[66] === dG ? fG = r[67] : (fG = [
|
|
16339
|
+
dG
|
|
16340
|
+
], r[66] = dG, r[67] = fG), (0, import_react.useEffect)(uG, fG);
|
|
16341
|
+
let pG;
|
|
16342
|
+
r[68] === e ? pG = r[69] : (pG = async () => {
|
|
16231
16343
|
let r2 = isStaticNotebook();
|
|
16232
16344
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16233
16345
|
data: null,
|
|
@@ -16236,22 +16348,22 @@ ${c}
|
|
|
16236
16348
|
value_counts: {},
|
|
16237
16349
|
show_charts: false
|
|
16238
16350
|
} : e.get_column_summaries({});
|
|
16239
|
-
}, r[68] = e, r[69] =
|
|
16240
|
-
let
|
|
16241
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16351
|
+
}, r[68] = e, r[69] = pG);
|
|
16352
|
+
let mG;
|
|
16353
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (mG = [
|
|
16242
16354
|
e.get_column_summaries,
|
|
16243
16355
|
e.showColumnSummaries,
|
|
16244
16356
|
w,
|
|
16245
16357
|
y,
|
|
16246
16358
|
e.totalRows,
|
|
16247
16359
|
e.data
|
|
16248
|
-
], 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] =
|
|
16249
|
-
let { data:
|
|
16250
|
-
if (r[77] ===
|
|
16251
|
-
|
|
16252
|
-
},
|
|
16253
|
-
|
|
16254
|
-
], r[77] =
|
|
16360
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = mG) : mG = r[76];
|
|
16361
|
+
let { data: hG, error: gG } = useAsyncData(pG, mG), _G, vG;
|
|
16362
|
+
if (r[77] === gG ? (_G = r[78], vG = r[79]) : (_G = () => {
|
|
16363
|
+
gG && Logger.error(gG);
|
|
16364
|
+
}, vG = [
|
|
16365
|
+
gG
|
|
16366
|
+
], r[77] = gG, r[78] = _G, r[79] = vG), (0, import_react.useEffect)(_G, vG), q) {
|
|
16255
16367
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16256
16368
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16257
16369
|
milliseconds: 200,
|
|
@@ -16260,7 +16372,7 @@ ${c}
|
|
|
16260
16372
|
})
|
|
16261
16373
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16262
16374
|
}
|
|
16263
|
-
let
|
|
16375
|
+
let yG = null;
|
|
16264
16376
|
if (G) {
|
|
16265
16377
|
Logger.error(G);
|
|
16266
16378
|
let e2;
|
|
@@ -16276,62 +16388,62 @@ ${c}
|
|
|
16276
16388
|
children: G.message || "An unknown error occurred"
|
|
16277
16389
|
})
|
|
16278
16390
|
]
|
|
16279
|
-
}), r[82] = G, r[83] = e2),
|
|
16391
|
+
}), r[82] = G, r[83] = e2), yG = e2;
|
|
16280
16392
|
}
|
|
16281
|
-
let
|
|
16282
|
-
r[84] === O ?
|
|
16393
|
+
let bG;
|
|
16394
|
+
r[84] === O ? bG = r[85] : (bG = () => {
|
|
16283
16395
|
j(!O);
|
|
16284
|
-
}, r[84] = O, r[85] =
|
|
16285
|
-
let
|
|
16286
|
-
r[86] !== l || r[87] !==
|
|
16396
|
+
}, r[84] = O, r[85] = bG);
|
|
16397
|
+
let xG = bG, SG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, CG = W == null ? void 0 : W.rawRows, wG = Z && !q, TG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, EG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, DG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, OG;
|
|
16398
|
+
r[86] !== l || r[87] !== hG || r[88] !== O || r[89] !== w || r[90] !== lG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== oG || r[95] !== sG || r[96] !== p || r[97] !== SG || r[98] !== CG || r[99] !== wG || r[100] !== TG || r[101] !== EG || r[102] !== DG || r[103] !== xG ? (OG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16287
16399
|
...e,
|
|
16288
|
-
data:
|
|
16289
|
-
rawData:
|
|
16290
|
-
columnSummaries:
|
|
16400
|
+
data: SG,
|
|
16401
|
+
rawData: CG,
|
|
16402
|
+
columnSummaries: hG,
|
|
16291
16403
|
sorting: p,
|
|
16292
16404
|
setSorting: h,
|
|
16293
16405
|
searchQuery: y,
|
|
16294
16406
|
setSearchQuery: b,
|
|
16295
16407
|
filters: w,
|
|
16296
16408
|
setFilters: T,
|
|
16297
|
-
reloading:
|
|
16298
|
-
totalRows:
|
|
16299
|
-
sizeBytes:
|
|
16300
|
-
sizeBytesIsLoading:
|
|
16409
|
+
reloading: wG,
|
|
16410
|
+
totalRows: TG,
|
|
16411
|
+
sizeBytes: oG,
|
|
16412
|
+
sizeBytesIsLoading: sG,
|
|
16301
16413
|
paginationState: _,
|
|
16302
16414
|
setPaginationState: v,
|
|
16303
|
-
cellStyles:
|
|
16304
|
-
cellHoverTexts:
|
|
16305
|
-
toggleDisplayHeader:
|
|
16415
|
+
cellStyles: EG,
|
|
16416
|
+
cellHoverTexts: DG,
|
|
16417
|
+
toggleDisplayHeader: xG,
|
|
16306
16418
|
isChartBuilderOpen: O,
|
|
16307
|
-
getRow:
|
|
16419
|
+
getRow: lG,
|
|
16308
16420
|
cellId: l,
|
|
16309
16421
|
maxHeight: e.maxHeight
|
|
16310
|
-
}), r[86] = l, r[87] =
|
|
16311
|
-
let
|
|
16312
|
-
r[105] !== l || r[106] !==
|
|
16422
|
+
}), r[86] = l, r[87] = hG, r[88] = O, r[89] = w, r[90] = lG, r[91] = _, r[92] = e, r[93] = y, r[94] = oG, r[95] = sG, r[96] = p, r[97] = SG, r[98] = CG, r[99] = wG, r[100] = TG, r[101] = EG, r[102] = DG, r[103] = xG, r[104] = OG) : OG = r[104];
|
|
16423
|
+
let kG = OG, AG;
|
|
16424
|
+
r[105] !== l || r[106] !== kG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (AG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16313
16425
|
displayHeader: O,
|
|
16314
16426
|
onCloseChartBuilder: () => j(false),
|
|
16315
16427
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16316
16428
|
columns: e.totalColumns,
|
|
16317
16429
|
totalRows: e.totalRows,
|
|
16318
|
-
dataTable:
|
|
16430
|
+
dataTable: kG,
|
|
16319
16431
|
getDataUrl: e.get_data_url,
|
|
16320
16432
|
fieldTypes: e.fieldTypes,
|
|
16321
16433
|
rowHeaders: e.rowHeaders,
|
|
16322
16434
|
cellId: l
|
|
16323
|
-
}) :
|
|
16324
|
-
let
|
|
16325
|
-
return r[116] !==
|
|
16435
|
+
}) : kG, r[105] = l, r[106] = kG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = AG) : AG = r[115];
|
|
16436
|
+
let jG;
|
|
16437
|
+
return r[116] !== yG || r[117] !== AG ? (jG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16326
16438
|
children: [
|
|
16327
|
-
|
|
16328
|
-
|
|
16439
|
+
yG,
|
|
16440
|
+
AG
|
|
16329
16441
|
]
|
|
16330
|
-
}), r[116] =
|
|
16442
|
+
}), r[116] = yG, r[117] = AG, r[118] = jG) : jG = r[118], jG;
|
|
16331
16443
|
});
|
|
16332
16444
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16333
|
-
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:
|
|
16334
|
-
let
|
|
16445
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: YW, reloading: XW, freezeColumnsLeft: ZW, freezeColumnsRight: QW, hiddenColumns: $W, textJustifyColumns: eG, wrappedColumns: tG, columnWidths: nG, headerTooltip: rG, totalColumns: iG, get_row_ids: aG, cellStyles: oG, hoverTemplate: sG, cellHoverTexts: cG, toggleDisplayHeader: lG, isChartBuilderOpen: uG, calculate_top_k_rows: dG, preview_column: fG, getRow: pG, cellId: mG, maxHeight: hG }) => {
|
|
16446
|
+
let gG = (0, import_react.useId)(), { locale: _G } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [vG, yG] = (0, import_react.useState)(0), { isPanelOpen: bG, isAnyPanelOpen: xG, togglePanel: SG, panelType: CG, setPanelType: wG } = usePanelOwnership(gG, mG), TG = isStaticNotebook(), EG = (0, import_react.useMemo)(() => {
|
|
16335
16447
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16336
16448
|
let e2 = toFieldTypes(O);
|
|
16337
16449
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16340,13 +16452,13 @@ ${c}
|
|
|
16340
16452
|
}, [
|
|
16341
16453
|
O,
|
|
16342
16454
|
L
|
|
16343
|
-
]),
|
|
16455
|
+
]), DG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), OG = (0, import_react.useMemo)(() => p === "all" ? DG : DG.slice(0, p), [
|
|
16344
16456
|
p,
|
|
16345
|
-
|
|
16346
|
-
]),
|
|
16457
|
+
DG
|
|
16458
|
+
]), kG = (0, import_react.useMemo)(() => {
|
|
16347
16459
|
let e2 = {};
|
|
16348
16460
|
if (r && r.length > 0) {
|
|
16349
|
-
for (let [c2, l2] of
|
|
16461
|
+
for (let [c2, l2] of OG) if (l2[0] === "number") {
|
|
16350
16462
|
let l3 = 0;
|
|
16351
16463
|
for (let e3 of r) {
|
|
16352
16464
|
let r2 = e3[c2];
|
|
@@ -16361,95 +16473,95 @@ ${c}
|
|
|
16361
16473
|
return e2;
|
|
16362
16474
|
}, [
|
|
16363
16475
|
r,
|
|
16364
|
-
|
|
16365
|
-
]),
|
|
16366
|
-
O || (T = false),
|
|
16367
|
-
let
|
|
16368
|
-
rowHeaders:
|
|
16476
|
+
OG
|
|
16477
|
+
]), AG = useDeepCompareMemoize(E), jG = useDeepCompareMemoize(eG), MG = useDeepCompareMemoize(tG), NG = useDeepCompareMemoize(nG), PG = useDeepCompareMemoize(EG), FG = useDeepCompareMemoize(kG), IG = OG.length;
|
|
16478
|
+
O || (T = false), TG && (h = null);
|
|
16479
|
+
let LG = (0, import_react.useMemo)(() => generateColumns({
|
|
16480
|
+
rowHeaders: AG,
|
|
16369
16481
|
selection: h,
|
|
16370
|
-
chartSpecModel:
|
|
16371
|
-
fieldTypes:
|
|
16372
|
-
textJustifyColumns:
|
|
16373
|
-
wrappedColumns:
|
|
16374
|
-
columnWidths:
|
|
16375
|
-
headerTooltip:
|
|
16482
|
+
chartSpecModel: PG,
|
|
16483
|
+
fieldTypes: OG,
|
|
16484
|
+
textJustifyColumns: jG,
|
|
16485
|
+
wrappedColumns: MG,
|
|
16486
|
+
columnWidths: NG,
|
|
16487
|
+
headerTooltip: rG,
|
|
16376
16488
|
showDataTypes: T,
|
|
16377
|
-
calculateTopKRows:
|
|
16378
|
-
fractionDigitsByColumn:
|
|
16489
|
+
calculateTopKRows: dG,
|
|
16490
|
+
fractionDigitsByColumn: FG
|
|
16379
16491
|
}), [
|
|
16380
16492
|
h,
|
|
16381
16493
|
T,
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
YW,
|
|
16494
|
+
PG,
|
|
16495
|
+
AG,
|
|
16496
|
+
OG,
|
|
16497
|
+
jG,
|
|
16498
|
+
MG,
|
|
16499
|
+
NG,
|
|
16389
16500
|
rG,
|
|
16390
|
-
|
|
16391
|
-
|
|
16501
|
+
dG,
|
|
16502
|
+
FG
|
|
16503
|
+
]), RG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16392
16504
|
e2,
|
|
16393
16505
|
true
|
|
16394
16506
|
])), [
|
|
16395
16507
|
g
|
|
16396
|
-
]),
|
|
16508
|
+
]), zG = useEvent_default((e2) => {
|
|
16397
16509
|
if (h === "single") {
|
|
16398
16510
|
let r2 = Functions.asUpdater(e2)({});
|
|
16399
16511
|
z(Object.keys(r2).slice(0, 1));
|
|
16400
16512
|
}
|
|
16401
16513
|
if (h === "multi") {
|
|
16402
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16514
|
+
let r2 = Functions.asUpdater(e2)(RG);
|
|
16403
16515
|
z(Object.keys(r2));
|
|
16404
16516
|
}
|
|
16405
|
-
}),
|
|
16406
|
-
if (
|
|
16517
|
+
}), BG = useEvent_default((e2) => {
|
|
16518
|
+
if (yG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16407
16519
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16408
16520
|
r2 !== null && M((e3) => ({
|
|
16409
16521
|
...e3,
|
|
16410
16522
|
pageIndex: r2
|
|
16411
16523
|
}));
|
|
16412
|
-
}),
|
|
16413
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16414
|
-
}),
|
|
16415
|
-
if (!(!
|
|
16524
|
+
}), VG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), HG = useEvent_default((e2) => {
|
|
16525
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(VG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(VG));
|
|
16526
|
+
}), UG = h === "multi" || h === "single", WG = b && !!fG, GG = isInVscodeExtension(), KG = isIslands(), qG = (0, import_react.useMemo)(() => {
|
|
16527
|
+
if (!(!xG || !(S || WG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16416
16528
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16417
|
-
rowIdx:
|
|
16418
|
-
setRowIdx:
|
|
16529
|
+
rowIdx: vG,
|
|
16530
|
+
setRowIdx: BG,
|
|
16419
16531
|
totalRows: l,
|
|
16420
|
-
fieldTypes:
|
|
16421
|
-
getRow:
|
|
16422
|
-
isSelectable:
|
|
16423
|
-
isRowSelected: !!
|
|
16424
|
-
handleRowSelectionChange:
|
|
16425
|
-
previewColumn:
|
|
16426
|
-
totalColumns:
|
|
16427
|
-
tableId:
|
|
16532
|
+
fieldTypes: DG,
|
|
16533
|
+
getRow: pG,
|
|
16534
|
+
isSelectable: UG,
|
|
16535
|
+
isRowSelected: !!RG[vG],
|
|
16536
|
+
handleRowSelectionChange: zG,
|
|
16537
|
+
previewColumn: fG,
|
|
16538
|
+
totalColumns: iG,
|
|
16539
|
+
tableId: gG,
|
|
16428
16540
|
table: e2,
|
|
16429
|
-
showRowExplorer: S && !
|
|
16430
|
-
showColumnExplorer:
|
|
16431
|
-
activeTab:
|
|
16432
|
-
onTabChange:
|
|
16541
|
+
showRowExplorer: S && !GG,
|
|
16542
|
+
showColumnExplorer: WG && !GG,
|
|
16543
|
+
activeTab: CG,
|
|
16544
|
+
onTabChange: wG
|
|
16433
16545
|
})
|
|
16434
16546
|
});
|
|
16435
16547
|
}, [
|
|
16436
|
-
|
|
16548
|
+
xG,
|
|
16437
16549
|
S,
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16550
|
+
WG,
|
|
16551
|
+
vG,
|
|
16552
|
+
BG,
|
|
16441
16553
|
l,
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
|
|
16554
|
+
DG,
|
|
16555
|
+
pG,
|
|
16556
|
+
UG,
|
|
16557
|
+
RG,
|
|
16558
|
+
zG,
|
|
16559
|
+
fG,
|
|
16447
16560
|
iG,
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
gG
|
|
16561
|
+
gG,
|
|
16562
|
+
GG,
|
|
16563
|
+
CG,
|
|
16564
|
+
wG
|
|
16453
16565
|
]);
|
|
16454
16566
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16455
16567
|
children: [
|
|
@@ -16461,27 +16573,27 @@ ${c}
|
|
|
16461
16573
|
" rows."
|
|
16462
16574
|
]
|
|
16463
16575
|
}),
|
|
16464
|
-
|
|
16576
|
+
IG < iG && IG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16465
16577
|
className: "mb-1 rounded",
|
|
16466
16578
|
children: [
|
|
16467
16579
|
"Result clipped. Showing ",
|
|
16468
|
-
|
|
16580
|
+
IG,
|
|
16469
16581
|
" of ",
|
|
16470
|
-
|
|
16582
|
+
iG,
|
|
16471
16583
|
" columns."
|
|
16472
16584
|
]
|
|
16473
16585
|
}),
|
|
16474
|
-
|
|
16586
|
+
TG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16475
16587
|
className: "mb-1 rounded",
|
|
16476
16588
|
children: [
|
|
16477
16589
|
"Showing the first ",
|
|
16478
16590
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16479
|
-
children: prettyNumber(r.length,
|
|
16591
|
+
children: prettyNumber(r.length, _G)
|
|
16480
16592
|
}),
|
|
16481
16593
|
" ",
|
|
16482
16594
|
"of ",
|
|
16483
16595
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16484
|
-
children: prettyNumber(l,
|
|
16596
|
+
children: prettyNumber(l, _G)
|
|
16485
16597
|
}),
|
|
16486
16598
|
" rows. Increase the table's ",
|
|
16487
16599
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16495,7 +16607,7 @@ ${c}
|
|
|
16495
16607
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16496
16608
|
}),
|
|
16497
16609
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16498
|
-
value:
|
|
16610
|
+
value: EG,
|
|
16499
16611
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16500
16612
|
label: e,
|
|
16501
16613
|
align: "top",
|
|
@@ -16503,14 +16615,14 @@ ${c}
|
|
|
16503
16615
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16504
16616
|
data: r,
|
|
16505
16617
|
rawData: c,
|
|
16506
|
-
columns:
|
|
16618
|
+
columns: LG,
|
|
16507
16619
|
className: R,
|
|
16508
|
-
maxHeight:
|
|
16620
|
+
maxHeight: hG,
|
|
16509
16621
|
sorting: B,
|
|
16510
16622
|
totalRows: l,
|
|
16511
16623
|
sizeBytes: u,
|
|
16512
16624
|
sizeBytesIsLoading: f,
|
|
16513
|
-
totalColumns:
|
|
16625
|
+
totalColumns: iG,
|
|
16514
16626
|
manualSorting: true,
|
|
16515
16627
|
setSorting: H,
|
|
16516
16628
|
pagination: m,
|
|
@@ -16518,37 +16630,37 @@ ${c}
|
|
|
16518
16630
|
selection: h,
|
|
16519
16631
|
paginationState: j,
|
|
16520
16632
|
setPaginationState: M,
|
|
16521
|
-
rowSelection:
|
|
16522
|
-
cellSelection:
|
|
16523
|
-
cellStyling:
|
|
16524
|
-
hoverTemplate:
|
|
16525
|
-
cellHoverTexts:
|
|
16633
|
+
rowSelection: RG,
|
|
16634
|
+
cellSelection: VG,
|
|
16635
|
+
cellStyling: oG,
|
|
16636
|
+
hoverTemplate: sG,
|
|
16637
|
+
cellHoverTexts: cG,
|
|
16526
16638
|
downloadAs: v ? I : void 0,
|
|
16527
16639
|
showSearch: W,
|
|
16528
16640
|
searchQuery: G,
|
|
16529
16641
|
onSearchQueryChange: q,
|
|
16530
16642
|
showFilters: _,
|
|
16531
16643
|
filters: Z,
|
|
16532
|
-
onFiltersChange:
|
|
16533
|
-
calculateTopKRows:
|
|
16534
|
-
reloading:
|
|
16535
|
-
onRowSelectionChange:
|
|
16536
|
-
freezeColumnsLeft:
|
|
16537
|
-
freezeColumnsRight:
|
|
16538
|
-
hiddenColumns:
|
|
16539
|
-
onCellSelectionChange:
|
|
16540
|
-
getRowIds:
|
|
16541
|
-
toggleDisplayHeader:
|
|
16542
|
-
showChartBuilder: w && !
|
|
16543
|
-
isChartBuilderOpen:
|
|
16644
|
+
onFiltersChange: YW,
|
|
16645
|
+
calculateTopKRows: dG,
|
|
16646
|
+
reloading: XW,
|
|
16647
|
+
onRowSelectionChange: zG,
|
|
16648
|
+
freezeColumnsLeft: ZW,
|
|
16649
|
+
freezeColumnsRight: QW,
|
|
16650
|
+
hiddenColumns: $W,
|
|
16651
|
+
onCellSelectionChange: HG,
|
|
16652
|
+
getRowIds: aG,
|
|
16653
|
+
toggleDisplayHeader: lG,
|
|
16654
|
+
showChartBuilder: w && !KG,
|
|
16655
|
+
isChartBuilderOpen: uG,
|
|
16544
16656
|
showPageSizeSelector: y,
|
|
16545
|
-
showTableExplorer: (S ||
|
|
16546
|
-
togglePanel:
|
|
16547
|
-
isPanelOpen:
|
|
16548
|
-
isAnyPanelOpen:
|
|
16549
|
-
viewedRowIdx:
|
|
16550
|
-
onViewedRowChange: (e2) =>
|
|
16551
|
-
renderTableExplorerPanel:
|
|
16657
|
+
showTableExplorer: (S || WG) && !GG && !KG,
|
|
16658
|
+
togglePanel: SG,
|
|
16659
|
+
isPanelOpen: bG,
|
|
16660
|
+
isAnyPanelOpen: xG,
|
|
16661
|
+
viewedRowIdx: vG,
|
|
16662
|
+
onViewedRowChange: (e2) => yG(e2),
|
|
16663
|
+
renderTableExplorerPanel: qG
|
|
16552
16664
|
})
|
|
16553
16665
|
})
|
|
16554
16666
|
})
|
|
@@ -18600,29 +18712,29 @@ ${c}
|
|
|
18600
18712
|
], r[2] = w, r[3] = T);
|
|
18601
18713
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18602
18714
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18603
|
-
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),
|
|
18604
|
-
r[6] === f ?
|
|
18715
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY), YW = (0, import_react.useRef)(null), XW;
|
|
18716
|
+
r[6] === f ? XW = r[7] : (XW = (e2) => {
|
|
18605
18717
|
var _a5;
|
|
18606
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18607
|
-
}, r[6] = f, r[7] =
|
|
18608
|
-
let
|
|
18609
|
-
r[8] === q ?
|
|
18610
|
-
|
|
18611
|
-
}, r[8] = q, r[9] =
|
|
18612
|
-
let
|
|
18613
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18614
|
-
let e2 =
|
|
18718
|
+
f && e2 !== "transform" && ((_a5 = YW.current) == null ? void 0 : _a5.submit());
|
|
18719
|
+
}, r[6] = f, r[7] = XW);
|
|
18720
|
+
let ZW = XW, QW = (0, import_react.useRef)(q), $W;
|
|
18721
|
+
r[8] === q ? $W = r[9] : ($W = () => {
|
|
18722
|
+
QW.current = q;
|
|
18723
|
+
}, r[8] = q, r[9] = $W), (0, import_react.useEffect)($W);
|
|
18724
|
+
let eG;
|
|
18725
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (eG = () => {
|
|
18726
|
+
let e2 = QW.current;
|
|
18615
18727
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18616
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18617
|
-
let
|
|
18618
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18728
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = eG) : eG = r[12];
|
|
18729
|
+
let tG = p == null ? void 0 : p.transforms.length, nG;
|
|
18730
|
+
r[13] !== E || r[14] !== m || r[15] !== tG ? (nG = [
|
|
18619
18731
|
E,
|
|
18620
|
-
|
|
18621
|
-
|
|
18732
|
+
tG,
|
|
18733
|
+
QW,
|
|
18622
18734
|
m
|
|
18623
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18624
|
-
let
|
|
18625
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18735
|
+
], r[13] = E, r[14] = m, r[15] = tG, r[16] = nG) : nG = r[16], (0, import_react.useEffect)(eG, nG);
|
|
18736
|
+
let rG;
|
|
18737
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18626
18738
|
value: "transform",
|
|
18627
18739
|
className: "text-xs py-1",
|
|
18628
18740
|
children: [
|
|
@@ -18631,9 +18743,9 @@ ${c}
|
|
|
18631
18743
|
}),
|
|
18632
18744
|
"Transform"
|
|
18633
18745
|
]
|
|
18634
|
-
}), r[17] =
|
|
18635
|
-
let
|
|
18636
|
-
r[18] === H ?
|
|
18746
|
+
}), r[17] = rG) : rG = r[17];
|
|
18747
|
+
let iG;
|
|
18748
|
+
r[18] === H ? iG = r[19] : (iG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18637
18749
|
value: "python-code",
|
|
18638
18750
|
className: "text-xs py-1",
|
|
18639
18751
|
children: [
|
|
@@ -18642,9 +18754,9 @@ ${c}
|
|
|
18642
18754
|
}),
|
|
18643
18755
|
"Python Code"
|
|
18644
18756
|
]
|
|
18645
|
-
}), r[18] = H, r[19] =
|
|
18646
|
-
let
|
|
18647
|
-
r[20] === W ?
|
|
18757
|
+
}), r[18] = H, r[19] = iG);
|
|
18758
|
+
let aG;
|
|
18759
|
+
r[20] === W ? aG = r[21] : (aG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18648
18760
|
value: "sql-code",
|
|
18649
18761
|
className: "text-xs py-1",
|
|
18650
18762
|
children: [
|
|
@@ -18653,54 +18765,54 @@ ${c}
|
|
|
18653
18765
|
}),
|
|
18654
18766
|
"SQL Code"
|
|
18655
18767
|
]
|
|
18656
|
-
}), r[20] = W, r[21] =
|
|
18657
|
-
let
|
|
18658
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18768
|
+
}), r[20] = W, r[21] = aG);
|
|
18769
|
+
let oG;
|
|
18770
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsx)("div", {
|
|
18659
18771
|
className: "grow"
|
|
18660
|
-
}), r[22] =
|
|
18661
|
-
let
|
|
18662
|
-
r[23] !==
|
|
18772
|
+
}), r[22] = oG) : oG = r[22];
|
|
18773
|
+
let sG;
|
|
18774
|
+
r[23] !== iG || r[24] !== aG ? (sG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18663
18775
|
className: "h-8",
|
|
18664
18776
|
children: [
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18777
|
+
rG,
|
|
18778
|
+
iG,
|
|
18779
|
+
aG,
|
|
18780
|
+
oG
|
|
18669
18781
|
]
|
|
18670
|
-
}), r[23] =
|
|
18671
|
-
let
|
|
18672
|
-
r[26] === j ?
|
|
18782
|
+
}), r[23] = iG, r[24] = aG, r[25] = sG) : sG = r[25];
|
|
18783
|
+
let cG;
|
|
18784
|
+
r[26] === j ? cG = r[27] : (cG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18673
18785
|
size: "small"
|
|
18674
|
-
}), r[26] = j, r[27] =
|
|
18675
|
-
let
|
|
18676
|
-
r[28] !==
|
|
18786
|
+
}), r[26] = j, r[27] = cG);
|
|
18787
|
+
let lG;
|
|
18788
|
+
r[28] !== sG || r[29] !== cG ? (lG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18677
18789
|
className: "flex items-center gap-2",
|
|
18678
18790
|
children: [
|
|
18679
|
-
|
|
18680
|
-
|
|
18791
|
+
sG,
|
|
18792
|
+
cG
|
|
18681
18793
|
]
|
|
18682
|
-
}), r[28] =
|
|
18683
|
-
let
|
|
18684
|
-
r[31] !== m || r[32] !== p ? (
|
|
18794
|
+
}), r[28] = sG, r[29] = cG, r[30] = lG) : lG = r[30];
|
|
18795
|
+
let uG;
|
|
18796
|
+
r[31] !== m || r[32] !== p ? (uG = (e2) => {
|
|
18685
18797
|
dequal(e2, p) || (m(e2), Z(e2));
|
|
18686
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18687
|
-
let
|
|
18688
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18798
|
+
}, r[31] = m, r[32] = p, r[33] = uG) : uG = r[33];
|
|
18799
|
+
let dG;
|
|
18800
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== uG ? (dG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18689
18801
|
value: "transform",
|
|
18690
18802
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18691
18803
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18692
|
-
ref:
|
|
18804
|
+
ref: YW,
|
|
18693
18805
|
initialValue: q,
|
|
18694
18806
|
columns: c,
|
|
18695
|
-
onChange:
|
|
18807
|
+
onChange: uG,
|
|
18696
18808
|
onInvalidChange: Z,
|
|
18697
18809
|
getColumnValues: g,
|
|
18698
18810
|
columnTypesPerStep: B,
|
|
18699
18811
|
lazy: f
|
|
18700
18812
|
})
|
|
18701
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18702
|
-
let
|
|
18703
|
-
r[41] === H ?
|
|
18813
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = uG, r[40] = dG) : dG = r[40];
|
|
18814
|
+
let fG;
|
|
18815
|
+
r[41] === H ? fG = r[42] : (fG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18704
18816
|
value: "python-code",
|
|
18705
18817
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18706
18818
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18709,9 +18821,9 @@ ${c}
|
|
|
18709
18821
|
code: H,
|
|
18710
18822
|
language: "python"
|
|
18711
18823
|
})
|
|
18712
|
-
}), r[41] = H, r[42] =
|
|
18713
|
-
let
|
|
18714
|
-
r[43] === W ?
|
|
18824
|
+
}), r[41] = H, r[42] = fG);
|
|
18825
|
+
let pG;
|
|
18826
|
+
r[43] === W ? pG = r[44] : (pG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18715
18827
|
value: "sql-code",
|
|
18716
18828
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18717
18829
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18720,35 +18832,35 @@ ${c}
|
|
|
18720
18832
|
code: W,
|
|
18721
18833
|
language: "sql"
|
|
18722
18834
|
})
|
|
18723
|
-
}), r[43] = W, r[44] =
|
|
18724
|
-
let
|
|
18725
|
-
r[45] !==
|
|
18835
|
+
}), r[43] = W, r[44] = pG);
|
|
18836
|
+
let mG;
|
|
18837
|
+
r[45] !== ZW || r[46] !== lG || r[47] !== dG || r[48] !== fG || r[49] !== pG ? (mG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18726
18838
|
defaultValue: "transform",
|
|
18727
|
-
onValueChange:
|
|
18839
|
+
onValueChange: ZW,
|
|
18728
18840
|
children: [
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18841
|
+
lG,
|
|
18842
|
+
dG,
|
|
18843
|
+
fG,
|
|
18844
|
+
pG
|
|
18733
18845
|
]
|
|
18734
|
-
}), r[45] =
|
|
18735
|
-
let
|
|
18736
|
-
r[51] === O ?
|
|
18846
|
+
}), r[45] = ZW, r[46] = lG, r[47] = dG, r[48] = fG, r[49] = pG, r[50] = mG) : mG = r[50];
|
|
18847
|
+
let hG;
|
|
18848
|
+
r[51] === O ? hG = r[52] : (hG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18737
18849
|
error: O
|
|
18738
|
-
}), r[51] = O, r[52] =
|
|
18739
|
-
let
|
|
18740
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18850
|
+
}), r[51] = O, r[52] = hG);
|
|
18851
|
+
let gG = I || "", _G = L ?? 0, vG = G ?? 0, yG = R || Arrays.EMPTY, bG = L && L > 5 || false, xG;
|
|
18852
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== gG || r[61] !== _G || r[62] !== vG || r[63] !== yG || r[64] !== bG ? (xG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18741
18853
|
label: null,
|
|
18742
18854
|
className: "rounded-b border-x border-b",
|
|
18743
|
-
data:
|
|
18855
|
+
data: gG,
|
|
18744
18856
|
hasStableRowId: false,
|
|
18745
|
-
totalRows:
|
|
18746
|
-
totalColumns:
|
|
18857
|
+
totalRows: _G,
|
|
18858
|
+
totalColumns: vG,
|
|
18747
18859
|
maxColumns: "all",
|
|
18748
18860
|
pageSize: l,
|
|
18749
18861
|
pagination: true,
|
|
18750
18862
|
fieldTypes: z,
|
|
18751
|
-
rowHeaders:
|
|
18863
|
+
rowHeaders: yG,
|
|
18752
18864
|
showDownload: u,
|
|
18753
18865
|
download_as: v,
|
|
18754
18866
|
get_size_bytes: y,
|
|
@@ -18758,7 +18870,7 @@ ${c}
|
|
|
18758
18870
|
showColumnSummaries: false,
|
|
18759
18871
|
showDataTypes: true,
|
|
18760
18872
|
get_column_summaries: getColumnSummaries,
|
|
18761
|
-
showPageSizeSelector:
|
|
18873
|
+
showPageSizeSelector: bG,
|
|
18762
18874
|
showColumnExplorer: false,
|
|
18763
18875
|
showRowExplorer: true,
|
|
18764
18876
|
showChartBuilder: false,
|
|
@@ -18767,15 +18879,15 @@ ${c}
|
|
|
18767
18879
|
selection: null,
|
|
18768
18880
|
lazy: false,
|
|
18769
18881
|
host: b
|
|
18770
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18771
|
-
let
|
|
18772
|
-
return r[66] !==
|
|
18882
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = gG, r[61] = _G, r[62] = vG, r[63] = yG, r[64] = bG, r[65] = xG) : xG = r[65];
|
|
18883
|
+
let SG;
|
|
18884
|
+
return r[66] !== mG || r[67] !== hG || r[68] !== xG ? (SG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18773
18885
|
children: [
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18886
|
+
mG,
|
|
18887
|
+
hG,
|
|
18888
|
+
xG
|
|
18777
18889
|
]
|
|
18778
|
-
}), r[66] =
|
|
18890
|
+
}), r[66] = mG, r[67] = hG, r[68] = xG, r[69] = SG) : SG = r[69], SG;
|
|
18779
18891
|
});
|
|
18780
18892
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18781
18893
|
function getColumnSummaries() {
|
|
@@ -18966,23 +19078,23 @@ ${c}
|
|
|
18966
19078
|
}, [
|
|
18967
19079
|
H
|
|
18968
19080
|
]);
|
|
18969
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19081
|
+
let Z = (R == null ? void 0 : R.files) ?? [], YW = new Set(e.map((e2) => e2.path)), XW = l === "directory" || l === "all", ZW = l === "file" || l === "all", QW = Z.filter((e2) => XW && e2.is_directory || ZW && !e2.is_directory), $W = QW.length > 0 && QW.every((e2) => YW.has(e2.path));
|
|
18970
19082
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18971
19083
|
kind: "danger",
|
|
18972
19084
|
children: z.message
|
|
18973
19085
|
});
|
|
18974
|
-
let
|
|
19086
|
+
let eG = PathBuilder.guessDeliminator(c).deliminator, tG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18975
19087
|
children: e2.path
|
|
18976
19088
|
}, e2.id));
|
|
18977
|
-
function
|
|
19089
|
+
function rG(e2) {
|
|
18978
19090
|
var _a6;
|
|
18979
19091
|
if (v) return;
|
|
18980
19092
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18981
|
-
if (g ===
|
|
19093
|
+
if (g === eG) {
|
|
18982
19094
|
y(false);
|
|
18983
19095
|
return;
|
|
18984
19096
|
}
|
|
18985
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19097
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = eG);
|
|
18986
19098
|
}
|
|
18987
19099
|
let r2 = e2.length < c.length;
|
|
18988
19100
|
if (f && r2) {
|
|
@@ -18995,7 +19107,7 @@ ${c}
|
|
|
18995
19107
|
}
|
|
18996
19108
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
18997
19109
|
}
|
|
18998
|
-
function
|
|
19110
|
+
function iG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
18999
19111
|
return {
|
|
19000
19112
|
id: e2,
|
|
19001
19113
|
name: r2,
|
|
@@ -19003,27 +19115,27 @@ ${c}
|
|
|
19003
19115
|
is_directory: c2
|
|
19004
19116
|
};
|
|
19005
19117
|
}
|
|
19006
|
-
function
|
|
19007
|
-
let f2 =
|
|
19118
|
+
function aG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19119
|
+
let f2 = iG({
|
|
19008
19120
|
path: c2,
|
|
19009
19121
|
name: l2,
|
|
19010
19122
|
isDirectory: d2
|
|
19011
19123
|
});
|
|
19012
|
-
|
|
19124
|
+
YW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19013
19125
|
...e,
|
|
19014
19126
|
f2
|
|
19015
19127
|
] : [
|
|
19016
19128
|
f2
|
|
19017
19129
|
]);
|
|
19018
19130
|
}
|
|
19019
|
-
function
|
|
19131
|
+
function oG() {
|
|
19020
19132
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19021
19133
|
}
|
|
19022
|
-
function
|
|
19134
|
+
function sG() {
|
|
19023
19135
|
let c2 = [];
|
|
19024
19136
|
for (let e2 of Z) {
|
|
19025
|
-
if (!
|
|
19026
|
-
let r2 =
|
|
19137
|
+
if (!XW && e2.is_directory || YW.has(e2.path)) continue;
|
|
19138
|
+
let r2 = iG({
|
|
19027
19139
|
path: e2.path,
|
|
19028
19140
|
name: e2.name,
|
|
19029
19141
|
isDirectory: e2.is_directory
|
|
@@ -19035,20 +19147,20 @@ ${c}
|
|
|
19035
19147
|
...c2
|
|
19036
19148
|
]);
|
|
19037
19149
|
}
|
|
19038
|
-
let
|
|
19150
|
+
let cG = [
|
|
19039
19151
|
{
|
|
19040
19152
|
key: "parent",
|
|
19041
19153
|
name: PARENT_DIRECTORY,
|
|
19042
19154
|
Icon: CornerLeftUp,
|
|
19043
19155
|
isSelected: false,
|
|
19044
19156
|
canSelect: false,
|
|
19045
|
-
onPrimary: () =>
|
|
19157
|
+
onPrimary: () => rG(PARENT_DIRECTORY),
|
|
19046
19158
|
onToggleSelect: null
|
|
19047
19159
|
},
|
|
19048
19160
|
...Z.map((e2) => {
|
|
19049
19161
|
let r2 = e2.path;
|
|
19050
19162
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19051
|
-
let c2 =
|
|
19163
|
+
let c2 = XW && e2.is_directory || ZW && !e2.is_directory, l2 = YW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => aG({
|
|
19052
19164
|
path: r2,
|
|
19053
19165
|
name: e2.name,
|
|
19054
19166
|
isDirectory: e2.is_directory
|
|
@@ -19059,46 +19171,46 @@ ${c}
|
|
|
19059
19171
|
Icon: FILE_ICON[u2],
|
|
19060
19172
|
isSelected: l2,
|
|
19061
19173
|
canSelect: c2,
|
|
19062
|
-
onPrimary: e2.is_directory ? () =>
|
|
19174
|
+
onPrimary: e2.is_directory ? () => rG(r2) : c2 ? d2 : () => {
|
|
19063
19175
|
},
|
|
19064
19176
|
onToggleSelect: c2 ? d2 : null
|
|
19065
19177
|
};
|
|
19066
19178
|
})
|
|
19067
19179
|
];
|
|
19068
|
-
function
|
|
19180
|
+
function lG(e2) {
|
|
19069
19181
|
var _a6;
|
|
19070
19182
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19071
19183
|
}
|
|
19072
|
-
function
|
|
19184
|
+
function uG(e2, r2) {
|
|
19073
19185
|
var _a6, _b3;
|
|
19074
|
-
let c2 =
|
|
19186
|
+
let c2 = cG.length - 1;
|
|
19075
19187
|
switch (e2.key) {
|
|
19076
19188
|
case "ArrowDown":
|
|
19077
|
-
e2.preventDefault(),
|
|
19189
|
+
e2.preventDefault(), lG(Math.min(r2 + 1, c2));
|
|
19078
19190
|
break;
|
|
19079
19191
|
case "ArrowUp":
|
|
19080
|
-
e2.preventDefault(),
|
|
19192
|
+
e2.preventDefault(), lG(Math.max(r2 - 1, 0));
|
|
19081
19193
|
break;
|
|
19082
19194
|
case "Home":
|
|
19083
|
-
e2.preventDefault(),
|
|
19195
|
+
e2.preventDefault(), lG(0);
|
|
19084
19196
|
break;
|
|
19085
19197
|
case "End":
|
|
19086
|
-
e2.preventDefault(),
|
|
19198
|
+
e2.preventDefault(), lG(c2);
|
|
19087
19199
|
break;
|
|
19088
19200
|
case "Enter":
|
|
19089
|
-
e2.preventDefault(),
|
|
19201
|
+
e2.preventDefault(), cG[r2].onPrimary();
|
|
19090
19202
|
break;
|
|
19091
19203
|
case " ":
|
|
19092
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19204
|
+
e2.preventDefault(), (_b3 = (_a6 = cG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19093
19205
|
break;
|
|
19094
19206
|
}
|
|
19095
19207
|
}
|
|
19096
|
-
let { parentDirectories:
|
|
19208
|
+
let { parentDirectories: dG } = getProtocolAndParentDirectories({
|
|
19097
19209
|
path: g,
|
|
19098
|
-
delimiter:
|
|
19210
|
+
delimiter: eG,
|
|
19099
19211
|
initialPath: c,
|
|
19100
19212
|
restrictNavigation: f
|
|
19101
|
-
}),
|
|
19213
|
+
}), fG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19102
19214
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19103
19215
|
children: [
|
|
19104
19216
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19108,7 +19220,7 @@ ${c}
|
|
|
19108
19220
|
(() => {
|
|
19109
19221
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19110
19222
|
children: renderHTML({
|
|
19111
|
-
html: d ?? `Select ${
|
|
19223
|
+
html: d ?? `Select ${fG.join(" and ", 2)}...`
|
|
19112
19224
|
})
|
|
19113
19225
|
});
|
|
19114
19226
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19122,8 +19234,8 @@ ${c}
|
|
|
19122
19234
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19123
19235
|
size: "xs",
|
|
19124
19236
|
variant: "link",
|
|
19125
|
-
onClick:
|
|
19126
|
-
children:
|
|
19237
|
+
onClick: $W ? oG : sG,
|
|
19238
|
+
children: $W ? "Deselect all" : "Select all"
|
|
19127
19239
|
})
|
|
19128
19240
|
})
|
|
19129
19241
|
]
|
|
@@ -19133,8 +19245,8 @@ ${c}
|
|
|
19133
19245
|
className: "mt-2 w-full",
|
|
19134
19246
|
placeholder: g,
|
|
19135
19247
|
value: g,
|
|
19136
|
-
onChange: (e2) =>
|
|
19137
|
-
children:
|
|
19248
|
+
onChange: (e2) => rG(e2.target.value),
|
|
19249
|
+
children: dG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19138
19250
|
value: e2,
|
|
19139
19251
|
children: e2
|
|
19140
19252
|
}, e2))
|
|
@@ -19170,14 +19282,14 @@ ${c}
|
|
|
19170
19282
|
"aria-label": "File browser",
|
|
19171
19283
|
"aria-multiselectable": u,
|
|
19172
19284
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19173
|
-
children:
|
|
19285
|
+
children: cG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19174
19286
|
role: "row",
|
|
19175
19287
|
ref: (e3) => {
|
|
19176
19288
|
O.current[r2] = e3;
|
|
19177
19289
|
},
|
|
19178
19290
|
tabIndex: r2 === w ? 0 : -1,
|
|
19179
19291
|
onFocus: () => E(r2),
|
|
19180
|
-
onKeyDown: (e3) =>
|
|
19292
|
+
onKeyDown: (e3) => uG(e3, r2),
|
|
19181
19293
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19182
19294
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19183
19295
|
}),
|
|
@@ -19220,7 +19332,7 @@ ${c}
|
|
|
19220
19332
|
children: [
|
|
19221
19333
|
e.length,
|
|
19222
19334
|
" ",
|
|
19223
|
-
|
|
19335
|
+
fG.join(" or ", e.length),
|
|
19224
19336
|
" ",
|
|
19225
19337
|
"selected"
|
|
19226
19338
|
]
|
|
@@ -19240,7 +19352,7 @@ ${c}
|
|
|
19240
19352
|
marginBlock: 0
|
|
19241
19353
|
},
|
|
19242
19354
|
className: "m-0 text-xs text-muted-foreground",
|
|
19243
|
-
children:
|
|
19355
|
+
children: tG
|
|
19244
19356
|
})
|
|
19245
19357
|
})
|
|
19246
19358
|
]
|
|
@@ -24622,55 +24734,55 @@ ${c}
|
|
|
24622
24734
|
return typeof S == "function" ? S : noop$2;
|
|
24623
24735
|
}, [
|
|
24624
24736
|
S
|
|
24625
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24626
|
-
!
|
|
24627
|
-
Z.current && (Z.current.files.length || (
|
|
24737
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), YW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), XW = YW[0], ZW = YW[1], QW = XW.isFocused, $W = XW.isFileDialogActive, eG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), tG = function() {
|
|
24738
|
+
!eG.current && $W && setTimeout(function() {
|
|
24739
|
+
Z.current && (Z.current.files.length || (ZW({
|
|
24628
24740
|
type: "closeDialog"
|
|
24629
24741
|
}), G()));
|
|
24630
24742
|
}, 300);
|
|
24631
24743
|
};
|
|
24632
24744
|
(0, import_react.useEffect)(function() {
|
|
24633
|
-
return window.addEventListener("focus",
|
|
24634
|
-
window.removeEventListener("focus",
|
|
24745
|
+
return window.addEventListener("focus", tG, false), function() {
|
|
24746
|
+
window.removeEventListener("focus", tG, false);
|
|
24635
24747
|
};
|
|
24636
24748
|
}, [
|
|
24637
24749
|
Z,
|
|
24638
|
-
|
|
24750
|
+
$W,
|
|
24639
24751
|
G,
|
|
24640
|
-
|
|
24752
|
+
eG
|
|
24641
24753
|
]);
|
|
24642
|
-
var
|
|
24643
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24754
|
+
var nG = (0, import_react.useRef)([]), rG = (0, import_react.useRef)([]), iG = function(e2) {
|
|
24755
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), nG.current = []);
|
|
24644
24756
|
};
|
|
24645
24757
|
(0, import_react.useEffect)(function() {
|
|
24646
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24647
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24758
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", iG, false)), function() {
|
|
24759
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", iG));
|
|
24648
24760
|
};
|
|
24649
24761
|
}, [
|
|
24650
24762
|
q,
|
|
24651
24763
|
O
|
|
24652
24764
|
]), (0, import_react.useEffect)(function() {
|
|
24653
24765
|
var e2 = function(e3) {
|
|
24654
|
-
|
|
24766
|
+
rG.current = [].concat(_toConsumableArray(rG.current), [
|
|
24655
24767
|
e3.target
|
|
24656
|
-
]), isEvtWithFiles(e3) &&
|
|
24768
|
+
]), isEvtWithFiles(e3) && ZW({
|
|
24657
24769
|
isDragGlobal: true,
|
|
24658
24770
|
type: "setDragGlobal"
|
|
24659
24771
|
});
|
|
24660
24772
|
}, r2 = function(e3) {
|
|
24661
|
-
|
|
24773
|
+
rG.current = rG.current.filter(function(r3) {
|
|
24662
24774
|
return r3 !== e3.target && r3 !== null;
|
|
24663
|
-
}), !(
|
|
24775
|
+
}), !(rG.current.length > 0) && ZW({
|
|
24664
24776
|
isDragGlobal: false,
|
|
24665
24777
|
type: "setDragGlobal"
|
|
24666
24778
|
});
|
|
24667
24779
|
}, c2 = function() {
|
|
24668
|
-
|
|
24780
|
+
rG.current = [], ZW({
|
|
24669
24781
|
isDragGlobal: false,
|
|
24670
24782
|
type: "setDragGlobal"
|
|
24671
24783
|
});
|
|
24672
24784
|
}, l2 = function() {
|
|
24673
|
-
|
|
24785
|
+
rG.current = [], ZW({
|
|
24674
24786
|
isDragGlobal: false,
|
|
24675
24787
|
type: "setDragGlobal"
|
|
24676
24788
|
});
|
|
@@ -24688,12 +24800,12 @@ ${c}
|
|
|
24688
24800
|
E,
|
|
24689
24801
|
l
|
|
24690
24802
|
]);
|
|
24691
|
-
var
|
|
24803
|
+
var aG = (0, import_react.useCallback)(function(e2) {
|
|
24692
24804
|
R ? R(e2) : console.error(e2);
|
|
24693
24805
|
}, [
|
|
24694
24806
|
R
|
|
24695
|
-
]),
|
|
24696
|
-
e2.preventDefault(), e2.persist(),
|
|
24807
|
+
]), oG = (0, import_react.useCallback)(function(e2) {
|
|
24808
|
+
e2.preventDefault(), e2.persist(), yG(e2), nG.current = [].concat(_toConsumableArray(nG.current), [
|
|
24697
24809
|
e2.target
|
|
24698
24810
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24699
24811
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24706,7 +24818,7 @@ ${c}
|
|
|
24706
24818
|
maxFiles: m,
|
|
24707
24819
|
validator: z
|
|
24708
24820
|
});
|
|
24709
|
-
|
|
24821
|
+
ZW({
|
|
24710
24822
|
isDragAccept: l2,
|
|
24711
24823
|
isDragReject: c2 > 0 && !l2,
|
|
24712
24824
|
isDragActive: true,
|
|
@@ -24714,12 +24826,12 @@ ${c}
|
|
|
24714
24826
|
}), h && h(e2);
|
|
24715
24827
|
}
|
|
24716
24828
|
}).catch(function(e3) {
|
|
24717
|
-
return
|
|
24829
|
+
return aG(e3);
|
|
24718
24830
|
});
|
|
24719
24831
|
}, [
|
|
24720
24832
|
u,
|
|
24721
24833
|
h,
|
|
24722
|
-
|
|
24834
|
+
aG,
|
|
24723
24835
|
L,
|
|
24724
24836
|
B,
|
|
24725
24837
|
f,
|
|
@@ -24727,8 +24839,8 @@ ${c}
|
|
|
24727
24839
|
p,
|
|
24728
24840
|
m,
|
|
24729
24841
|
z
|
|
24730
|
-
]),
|
|
24731
|
-
e2.preventDefault(), e2.persist(),
|
|
24842
|
+
]), sG = (0, import_react.useCallback)(function(e2) {
|
|
24843
|
+
e2.preventDefault(), e2.persist(), yG(e2);
|
|
24732
24844
|
var r2 = isEvtWithFiles(e2);
|
|
24733
24845
|
if (r2 && e2.dataTransfer) try {
|
|
24734
24846
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24738,12 +24850,12 @@ ${c}
|
|
|
24738
24850
|
}, [
|
|
24739
24851
|
_,
|
|
24740
24852
|
L
|
|
24741
|
-
]),
|
|
24742
|
-
e2.preventDefault(), e2.persist(),
|
|
24743
|
-
var r2 =
|
|
24853
|
+
]), cG = (0, import_react.useCallback)(function(e2) {
|
|
24854
|
+
e2.preventDefault(), e2.persist(), yG(e2);
|
|
24855
|
+
var r2 = nG.current.filter(function(e3) {
|
|
24744
24856
|
return q.current && q.current.contains(e3);
|
|
24745
24857
|
}), c2 = r2.indexOf(e2.target);
|
|
24746
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24858
|
+
c2 !== -1 && r2.splice(c2, 1), nG.current = r2, !(r2.length > 0) && (ZW({
|
|
24747
24859
|
type: "setDraggedFiles",
|
|
24748
24860
|
isDragActive: false,
|
|
24749
24861
|
isDragAccept: false,
|
|
@@ -24753,7 +24865,7 @@ ${c}
|
|
|
24753
24865
|
q,
|
|
24754
24866
|
g,
|
|
24755
24867
|
L
|
|
24756
|
-
]),
|
|
24868
|
+
]), lG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24757
24869
|
var c2 = [], l2 = [];
|
|
24758
24870
|
e2.forEach(function(e3) {
|
|
24759
24871
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -24777,14 +24889,14 @@ ${c}
|
|
|
24777
24889
|
TOO_MANY_FILES_REJECTION
|
|
24778
24890
|
]
|
|
24779
24891
|
});
|
|
24780
|
-
}), c2.splice(0)),
|
|
24892
|
+
}), c2.splice(0)), ZW({
|
|
24781
24893
|
acceptedFiles: c2,
|
|
24782
24894
|
fileRejections: l2,
|
|
24783
24895
|
isDragReject: l2.length > 0,
|
|
24784
24896
|
type: "setFiles"
|
|
24785
24897
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24786
24898
|
}, [
|
|
24787
|
-
|
|
24899
|
+
ZW,
|
|
24788
24900
|
p,
|
|
24789
24901
|
B,
|
|
24790
24902
|
f,
|
|
@@ -24794,22 +24906,22 @@ ${c}
|
|
|
24794
24906
|
y,
|
|
24795
24907
|
b,
|
|
24796
24908
|
z
|
|
24797
|
-
]),
|
|
24798
|
-
e2.preventDefault(), e2.persist(),
|
|
24799
|
-
isPropagationStopped(e2) && !L ||
|
|
24909
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24910
|
+
e2.preventDefault(), e2.persist(), yG(e2), nG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24911
|
+
isPropagationStopped(e2) && !L || lG(r2, e2);
|
|
24800
24912
|
}).catch(function(e3) {
|
|
24801
|
-
return
|
|
24802
|
-
}),
|
|
24913
|
+
return aG(e3);
|
|
24914
|
+
}), ZW({
|
|
24803
24915
|
type: "reset"
|
|
24804
24916
|
});
|
|
24805
24917
|
}, [
|
|
24806
24918
|
u,
|
|
24807
|
-
|
|
24808
|
-
|
|
24919
|
+
lG,
|
|
24920
|
+
aG,
|
|
24809
24921
|
L
|
|
24810
|
-
]),
|
|
24811
|
-
if (
|
|
24812
|
-
|
|
24922
|
+
]), dG = (0, import_react.useCallback)(function() {
|
|
24923
|
+
if (eG.current) {
|
|
24924
|
+
ZW({
|
|
24813
24925
|
type: "openDialog"
|
|
24814
24926
|
}), W();
|
|
24815
24927
|
var e2 = {
|
|
@@ -24819,66 +24931,66 @@ ${c}
|
|
|
24819
24931
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24820
24932
|
return u(e3);
|
|
24821
24933
|
}).then(function(e3) {
|
|
24822
|
-
|
|
24934
|
+
lG(e3, null), ZW({
|
|
24823
24935
|
type: "closeDialog"
|
|
24824
24936
|
});
|
|
24825
24937
|
}).catch(function(e3) {
|
|
24826
|
-
isAbort(e3) ? (G(e3),
|
|
24938
|
+
isAbort(e3) ? (G(e3), ZW({
|
|
24827
24939
|
type: "closeDialog"
|
|
24828
|
-
})) : isSecurityError(e3) ? (
|
|
24940
|
+
})) : isSecurityError(e3) ? (eG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : aG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : aG(e3);
|
|
24829
24941
|
});
|
|
24830
24942
|
return;
|
|
24831
24943
|
}
|
|
24832
|
-
Z.current && (
|
|
24944
|
+
Z.current && (ZW({
|
|
24833
24945
|
type: "openDialog"
|
|
24834
24946
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24835
24947
|
}, [
|
|
24836
|
-
|
|
24948
|
+
ZW,
|
|
24837
24949
|
W,
|
|
24838
24950
|
G,
|
|
24839
24951
|
T,
|
|
24840
|
-
|
|
24841
|
-
|
|
24952
|
+
lG,
|
|
24953
|
+
aG,
|
|
24842
24954
|
H,
|
|
24843
24955
|
p
|
|
24844
|
-
]),
|
|
24845
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24956
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24957
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), dG());
|
|
24846
24958
|
}, [
|
|
24847
24959
|
q,
|
|
24848
|
-
|
|
24849
|
-
]),
|
|
24850
|
-
|
|
24960
|
+
dG
|
|
24961
|
+
]), pG = (0, import_react.useCallback)(function() {
|
|
24962
|
+
ZW({
|
|
24851
24963
|
type: "focus"
|
|
24852
24964
|
});
|
|
24853
|
-
}, []),
|
|
24854
|
-
|
|
24965
|
+
}, []), mG = (0, import_react.useCallback)(function() {
|
|
24966
|
+
ZW({
|
|
24855
24967
|
type: "blur"
|
|
24856
24968
|
});
|
|
24857
|
-
}, []),
|
|
24858
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24969
|
+
}, []), hG = (0, import_react.useCallback)(function() {
|
|
24970
|
+
j || (isIeOrEdge() ? setTimeout(dG, 0) : dG());
|
|
24859
24971
|
}, [
|
|
24860
24972
|
j,
|
|
24861
|
-
|
|
24862
|
-
]),
|
|
24973
|
+
dG
|
|
24974
|
+
]), gG = function(e2) {
|
|
24863
24975
|
return l ? null : e2;
|
|
24864
|
-
},
|
|
24865
|
-
return M ? null :
|
|
24866
|
-
},
|
|
24867
|
-
return I ? null :
|
|
24868
|
-
},
|
|
24976
|
+
}, _G = function(e2) {
|
|
24977
|
+
return M ? null : gG(e2);
|
|
24978
|
+
}, vG = function(e2) {
|
|
24979
|
+
return I ? null : gG(e2);
|
|
24980
|
+
}, yG = function(e2) {
|
|
24869
24981
|
L && e2.stopPropagation();
|
|
24870
|
-
},
|
|
24982
|
+
}, bG = (0, import_react.useMemo)(function() {
|
|
24871
24983
|
return function() {
|
|
24872
24984
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
24873
24985
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24874
|
-
onKeyDown:
|
|
24875
|
-
onFocus:
|
|
24876
|
-
onBlur:
|
|
24877
|
-
onClick:
|
|
24878
|
-
onDragEnter:
|
|
24879
|
-
onDragOver:
|
|
24880
|
-
onDragLeave:
|
|
24881
|
-
onDrop:
|
|
24986
|
+
onKeyDown: _G(composeEventHandlers(d2, fG)),
|
|
24987
|
+
onFocus: _G(composeEventHandlers(f2, pG)),
|
|
24988
|
+
onBlur: _G(composeEventHandlers(p2, mG)),
|
|
24989
|
+
onClick: gG(composeEventHandlers(m2, hG)),
|
|
24990
|
+
onDragEnter: vG(composeEventHandlers(h2, oG)),
|
|
24991
|
+
onDragOver: vG(composeEventHandlers(g2, sG)),
|
|
24992
|
+
onDragLeave: vG(composeEventHandlers(_2, cG)),
|
|
24993
|
+
onDrop: vG(composeEventHandlers(v2, uG)),
|
|
24882
24994
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24883
24995
|
}, c2, q), !l && !M ? {
|
|
24884
24996
|
tabIndex: 0
|
|
@@ -24886,20 +24998,20 @@ ${c}
|
|
|
24886
24998
|
};
|
|
24887
24999
|
}, [
|
|
24888
25000
|
q,
|
|
24889
|
-
|
|
24890
|
-
|
|
25001
|
+
fG,
|
|
25002
|
+
pG,
|
|
25003
|
+
mG,
|
|
25004
|
+
hG,
|
|
24891
25005
|
oG,
|
|
24892
25006
|
sG,
|
|
24893
|
-
|
|
24894
|
-
|
|
24895
|
-
eG,
|
|
24896
|
-
nG,
|
|
25007
|
+
cG,
|
|
25008
|
+
uG,
|
|
24897
25009
|
M,
|
|
24898
25010
|
I,
|
|
24899
25011
|
l
|
|
24900
|
-
]),
|
|
25012
|
+
]), xG = (0, import_react.useCallback)(function(e2) {
|
|
24901
25013
|
e2.stopPropagation();
|
|
24902
|
-
}, []),
|
|
25014
|
+
}, []), SG = (0, import_react.useMemo)(function() {
|
|
24903
25015
|
return function() {
|
|
24904
25016
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
24905
25017
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24918,8 +25030,8 @@ ${c}
|
|
|
24918
25030
|
width: "1px",
|
|
24919
25031
|
whiteSpace: "nowrap"
|
|
24920
25032
|
},
|
|
24921
|
-
onChange:
|
|
24922
|
-
onClick:
|
|
25033
|
+
onChange: gG(composeEventHandlers(l2, uG)),
|
|
25034
|
+
onClick: gG(composeEventHandlers(u2, xG)),
|
|
24923
25035
|
tabIndex: -1
|
|
24924
25036
|
}, c2, Z)), d2);
|
|
24925
25037
|
};
|
|
@@ -24927,16 +25039,16 @@ ${c}
|
|
|
24927
25039
|
Z,
|
|
24928
25040
|
c,
|
|
24929
25041
|
p,
|
|
24930
|
-
|
|
25042
|
+
uG,
|
|
24931
25043
|
l
|
|
24932
25044
|
]);
|
|
24933
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24934
|
-
isFocused:
|
|
24935
|
-
getRootProps:
|
|
24936
|
-
getInputProps:
|
|
25045
|
+
return _objectSpread$7(_objectSpread$7({}, XW), {}, {
|
|
25046
|
+
isFocused: QW && !l,
|
|
25047
|
+
getRootProps: bG,
|
|
25048
|
+
getInputProps: SG,
|
|
24937
25049
|
rootRef: q,
|
|
24938
25050
|
inputRef: Z,
|
|
24939
|
-
open:
|
|
25051
|
+
open: gG(dG)
|
|
24940
25052
|
});
|
|
24941
25053
|
}
|
|
24942
25054
|
function reducer$2(e, r) {
|
|
@@ -25168,47 +25280,47 @@ ${c}
|
|
|
25168
25280
|
html: I
|
|
25169
25281
|
})
|
|
25170
25282
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25171
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25172
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25173
|
-
let
|
|
25174
|
-
r[51] ===
|
|
25283
|
+
let q = w && "text-primary", Z = T && "text-destructive", YW;
|
|
25284
|
+
r[48] !== q || r[49] !== Z ? (YW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = YW) : YW = r[50];
|
|
25285
|
+
let XW;
|
|
25286
|
+
r[51] === YW ? XW = r[52] : (XW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25175
25287
|
strokeWidth: 1.4,
|
|
25176
|
-
className:
|
|
25177
|
-
}), r[51] =
|
|
25178
|
-
let
|
|
25179
|
-
r[53] !==
|
|
25180
|
-
let
|
|
25181
|
-
r[56] ===
|
|
25288
|
+
className: YW
|
|
25289
|
+
}), r[51] = YW, r[52] = XW);
|
|
25290
|
+
let ZW = w && "text-primary", QW = T && "text-destructive", $W;
|
|
25291
|
+
r[53] !== ZW || r[54] !== QW ? ($W = cn(ZW, QW), r[53] = ZW, r[54] = QW, r[55] = $W) : $W = r[55];
|
|
25292
|
+
let eG;
|
|
25293
|
+
r[56] === $W ? eG = r[57] : (eG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25182
25294
|
strokeWidth: 1.4,
|
|
25183
|
-
className:
|
|
25184
|
-
}), r[56] =
|
|
25185
|
-
let
|
|
25186
|
-
r[58] !==
|
|
25295
|
+
className: $W
|
|
25296
|
+
}), r[56] = $W, r[57] = eG);
|
|
25297
|
+
let tG;
|
|
25298
|
+
r[58] !== XW || r[59] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25187
25299
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25188
25300
|
children: [
|
|
25189
|
-
|
|
25190
|
-
|
|
25301
|
+
XW,
|
|
25302
|
+
eG
|
|
25191
25303
|
]
|
|
25192
|
-
}), r[58] =
|
|
25193
|
-
let
|
|
25194
|
-
r[61] !== G || r[62] !==
|
|
25304
|
+
}), r[58] = XW, r[59] = eG, r[60] = tG) : tG = r[60];
|
|
25305
|
+
let rG;
|
|
25306
|
+
r[61] !== G || r[62] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25195
25307
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25196
25308
|
children: [
|
|
25197
25309
|
G,
|
|
25198
|
-
|
|
25310
|
+
tG
|
|
25199
25311
|
]
|
|
25200
|
-
}), r[61] = G, r[62] =
|
|
25201
|
-
let
|
|
25202
|
-
r[64] !== W || r[65] !==
|
|
25312
|
+
}), r[61] = G, r[62] = tG, r[63] = rG) : rG = r[63];
|
|
25313
|
+
let iG;
|
|
25314
|
+
r[64] !== W || r[65] !== rG || r[66] !== z || r[67] !== B ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25203
25315
|
className: z,
|
|
25204
25316
|
...B,
|
|
25205
25317
|
children: [
|
|
25206
25318
|
W,
|
|
25207
|
-
|
|
25319
|
+
rG
|
|
25208
25320
|
]
|
|
25209
|
-
}), r[64] = W, r[65] =
|
|
25210
|
-
let
|
|
25211
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25321
|
+
}), r[64] = W, r[65] = rG, r[66] = z, r[67] = B, r[68] = iG) : iG = r[68];
|
|
25322
|
+
let aG;
|
|
25323
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (aG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25212
25324
|
className: "flex flex-row gap-1",
|
|
25213
25325
|
children: [
|
|
25214
25326
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25244,17 +25356,17 @@ ${c}
|
|
|
25244
25356
|
})
|
|
25245
25357
|
})
|
|
25246
25358
|
]
|
|
25247
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25248
|
-
let
|
|
25249
|
-
return r[75] !==
|
|
25359
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = aG) : aG = r[74];
|
|
25360
|
+
let oG;
|
|
25361
|
+
return r[75] !== iG || r[76] !== aG ? (oG = (0, import_jsx_runtime.jsx)("section", {
|
|
25250
25362
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25251
25363
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25252
25364
|
children: [
|
|
25253
|
-
|
|
25254
|
-
|
|
25365
|
+
iG,
|
|
25366
|
+
aG
|
|
25255
25367
|
]
|
|
25256
25368
|
})
|
|
25257
|
-
}), r[75] =
|
|
25369
|
+
}), r[75] = iG, r[76] = aG, r[77] = oG) : oG = r[77], oG;
|
|
25258
25370
|
};
|
|
25259
25371
|
function _temp$11(e) {
|
|
25260
25372
|
Logger.error(e), toast({
|
|
@@ -25357,68 +25469,68 @@ ${c}
|
|
|
25357
25469
|
html: f
|
|
25358
25470
|
})
|
|
25359
25471
|
}), r[13] = f, r[14] = Z);
|
|
25360
|
-
let
|
|
25361
|
-
r[15] === L ?
|
|
25472
|
+
let YW;
|
|
25473
|
+
r[15] === L ? YW = r[16] : (YW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25362
25474
|
kind: "danger",
|
|
25363
25475
|
className: "rounded",
|
|
25364
25476
|
children: L ?? "Invalid input"
|
|
25365
|
-
}), r[15] = L, r[16] =
|
|
25366
|
-
let
|
|
25367
|
-
r[17] === c ?
|
|
25477
|
+
}), r[15] = L, r[16] = YW);
|
|
25478
|
+
let XW;
|
|
25479
|
+
r[17] === c ? XW = r[18] : (XW = (0, import_jsx_runtime.jsx)("div", {
|
|
25368
25480
|
children: c
|
|
25369
|
-
}), r[17] = c, r[18] =
|
|
25370
|
-
let
|
|
25371
|
-
r[19] !== S || r[20] !== w || r[21] !== b ? (
|
|
25481
|
+
}), r[17] = c, r[18] = XW);
|
|
25482
|
+
let ZW;
|
|
25483
|
+
r[19] !== S || r[20] !== w || r[21] !== b ? (ZW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25372
25484
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25373
25485
|
variant: "text",
|
|
25374
25486
|
onClick: (e2) => {
|
|
25375
25487
|
e2.preventDefault(), B();
|
|
25376
25488
|
},
|
|
25377
25489
|
children: S
|
|
25378
|
-
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] =
|
|
25379
|
-
let
|
|
25380
|
-
r[23] === m ?
|
|
25490
|
+
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] = ZW) : ZW = r[22];
|
|
25491
|
+
let QW = v || m, $W;
|
|
25492
|
+
r[23] === m ? $W = r[24] : ($W = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25381
25493
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25382
|
-
}), r[23] = m, r[24] =
|
|
25383
|
-
let
|
|
25384
|
-
r[25] !== g || r[26] !==
|
|
25494
|
+
}), r[23] = m, r[24] = $W);
|
|
25495
|
+
let eG;
|
|
25496
|
+
r[25] !== g || r[26] !== QW || r[27] !== $W || r[28] !== I ? (eG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25385
25497
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25386
25498
|
variant: I,
|
|
25387
|
-
disabled:
|
|
25499
|
+
disabled: QW,
|
|
25388
25500
|
type: "submit",
|
|
25389
25501
|
children: [
|
|
25390
|
-
|
|
25502
|
+
$W,
|
|
25391
25503
|
g
|
|
25392
25504
|
]
|
|
25393
|
-
}), r[25] = g, r[26] =
|
|
25394
|
-
let
|
|
25395
|
-
r[30] !== _ || r[31] !==
|
|
25396
|
-
let
|
|
25397
|
-
r[33] !==
|
|
25505
|
+
}), r[25] = g, r[26] = QW, r[27] = $W, r[28] = I, r[29] = eG) : eG = r[29];
|
|
25506
|
+
let tG;
|
|
25507
|
+
r[30] !== _ || r[31] !== eG ? (tG = withTooltip(eG, _), r[30] = _, r[31] = eG, r[32] = tG) : tG = r[32];
|
|
25508
|
+
let rG;
|
|
25509
|
+
r[33] !== tG || r[34] !== ZW ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25398
25510
|
className: "flex justify-end gap-2 font-code",
|
|
25399
25511
|
children: [
|
|
25400
|
-
|
|
25401
|
-
|
|
25512
|
+
ZW,
|
|
25513
|
+
tG
|
|
25402
25514
|
]
|
|
25403
|
-
}), r[33] =
|
|
25404
|
-
let
|
|
25405
|
-
r[36] !==
|
|
25515
|
+
}), r[33] = tG, r[34] = ZW, r[35] = rG) : rG = r[35];
|
|
25516
|
+
let iG;
|
|
25517
|
+
r[36] !== rG || r[37] !== G || r[38] !== q || r[39] !== Z || r[40] !== YW || r[41] !== XW ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25406
25518
|
className: G,
|
|
25407
25519
|
onKeyDown: q,
|
|
25408
25520
|
children: [
|
|
25409
25521
|
Z,
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25522
|
+
YW,
|
|
25523
|
+
XW,
|
|
25524
|
+
rG
|
|
25413
25525
|
]
|
|
25414
|
-
}), r[36] =
|
|
25415
|
-
let
|
|
25416
|
-
return r[43] !==
|
|
25526
|
+
}), r[36] = rG, r[37] = G, r[38] = q, r[39] = Z, r[40] = YW, r[41] = XW, r[42] = iG) : iG = r[42];
|
|
25527
|
+
let aG;
|
|
25528
|
+
return r[43] !== iG || r[44] !== H ? (aG = (0, import_jsx_runtime.jsx)("form", {
|
|
25417
25529
|
className: "contents",
|
|
25418
25530
|
ref: j,
|
|
25419
25531
|
onSubmit: H,
|
|
25420
|
-
children:
|
|
25421
|
-
}), r[43] =
|
|
25532
|
+
children: iG
|
|
25533
|
+
}), r[43] = iG, r[44] = H, r[45] = aG) : aG = r[45], aG;
|
|
25422
25534
|
};
|
|
25423
25535
|
var Form = (e) => {
|
|
25424
25536
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27204,8 +27316,8 @@ ${c}
|
|
|
27204
27316
|
indices: c2
|
|
27205
27317
|
}));
|
|
27206
27318
|
}, r[31] = u, r[32] = Z);
|
|
27207
|
-
let
|
|
27208
|
-
r[33] === u ?
|
|
27319
|
+
let YW = useEvent_default(Z), XW;
|
|
27320
|
+
r[33] === u ? XW = r[34] : (XW = (e2) => {
|
|
27209
27321
|
e2 && u((r2) => ({
|
|
27210
27322
|
...r2,
|
|
27211
27323
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27214,9 +27326,9 @@ ${c}
|
|
|
27214
27326
|
range: e2.range,
|
|
27215
27327
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27216
27328
|
}));
|
|
27217
|
-
}, r[33] = u, r[34] =
|
|
27218
|
-
let
|
|
27219
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27329
|
+
}, r[33] = u, r[34] = XW);
|
|
27330
|
+
let ZW = useEvent_default(XW), QW = m.frames ?? void 0, $W = useEvent_default(_temp3$3), eG;
|
|
27331
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== YW || r[42] !== ZW || r[43] !== QW || r[44] !== $W || r[45] !== R ? (eG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27220
27332
|
...m,
|
|
27221
27333
|
layout: h,
|
|
27222
27334
|
onRelayout: R,
|
|
@@ -27224,13 +27336,13 @@ ${c}
|
|
|
27224
27336
|
onTreemapClick: W,
|
|
27225
27337
|
onSunburstClick: q,
|
|
27226
27338
|
config: L,
|
|
27227
|
-
onClick:
|
|
27228
|
-
onSelected:
|
|
27339
|
+
onClick: YW,
|
|
27340
|
+
onSelected: ZW,
|
|
27229
27341
|
className: "w-full",
|
|
27230
27342
|
useResizeHandler: true,
|
|
27231
|
-
frames:
|
|
27232
|
-
onError:
|
|
27233
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27343
|
+
frames: QW,
|
|
27344
|
+
onError: $W
|
|
27345
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = YW, r[42] = ZW, r[43] = QW, r[44] = $W, r[45] = R, r[46] = eG) : eG = r[46], eG;
|
|
27234
27346
|
});
|
|
27235
27347
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27236
27348
|
function _temp$8(e) {
|
|
@@ -27375,8 +27487,8 @@ ${c}
|
|
|
27375
27487
|
onPointerUp: H
|
|
27376
27488
|
})
|
|
27377
27489
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27378
|
-
let
|
|
27379
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27490
|
+
let YW;
|
|
27491
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (YW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27380
27492
|
asChild: true,
|
|
27381
27493
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27382
27494
|
"data-testid": "thumb",
|
|
@@ -27386,30 +27498,30 @@ ${c}
|
|
|
27386
27498
|
onMouseEnter: p.setTrue,
|
|
27387
27499
|
onMouseLeave: p.setFalse
|
|
27388
27500
|
})
|
|
27389
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27390
|
-
let
|
|
27391
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27501
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = YW) : YW = c[25];
|
|
27502
|
+
let XW;
|
|
27503
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (XW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27392
27504
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27393
27505
|
locale: m
|
|
27394
27506
|
})
|
|
27395
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27396
|
-
let
|
|
27397
|
-
c[30] ===
|
|
27398
|
-
children:
|
|
27399
|
-
}), c[30] =
|
|
27400
|
-
let
|
|
27401
|
-
c[32] !== f || c[33] !==
|
|
27507
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = XW) : XW = c[29];
|
|
27508
|
+
let ZW;
|
|
27509
|
+
c[30] === XW ? ZW = c[31] : (ZW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27510
|
+
children: XW
|
|
27511
|
+
}), c[30] = XW, c[31] = ZW);
|
|
27512
|
+
let QW;
|
|
27513
|
+
c[32] !== f || c[33] !== YW || c[34] !== ZW ? (QW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27402
27514
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27403
27515
|
delayDuration: 0,
|
|
27404
27516
|
open: f,
|
|
27405
27517
|
children: [
|
|
27406
|
-
|
|
27407
|
-
|
|
27518
|
+
YW,
|
|
27519
|
+
ZW
|
|
27408
27520
|
]
|
|
27409
27521
|
})
|
|
27410
|
-
}), c[32] = f, c[33] =
|
|
27411
|
-
let
|
|
27412
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27522
|
+
}), c[32] = f, c[33] = YW, c[34] = ZW, c[35] = QW) : QW = c[35];
|
|
27523
|
+
let $W;
|
|
27524
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? ($W = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27413
27525
|
asChild: true,
|
|
27414
27526
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27415
27527
|
"data-testid": "thumb",
|
|
@@ -27419,39 +27531,39 @@ ${c}
|
|
|
27419
27531
|
onMouseEnter: p.setTrue,
|
|
27420
27532
|
onMouseLeave: p.setFalse
|
|
27421
27533
|
})
|
|
27422
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27423
|
-
let
|
|
27424
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27534
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = $W) : $W = c[38];
|
|
27535
|
+
let eG;
|
|
27536
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (eG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27425
27537
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27426
27538
|
locale: m
|
|
27427
27539
|
})
|
|
27428
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27429
|
-
let
|
|
27430
|
-
c[43] ===
|
|
27431
|
-
children:
|
|
27432
|
-
}), c[43] =
|
|
27433
|
-
let
|
|
27434
|
-
c[45] !== f || c[46] !==
|
|
27540
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = eG) : eG = c[42];
|
|
27541
|
+
let tG;
|
|
27542
|
+
c[43] === eG ? tG = c[44] : (tG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27543
|
+
children: eG
|
|
27544
|
+
}), c[43] = eG, c[44] = tG);
|
|
27545
|
+
let nG;
|
|
27546
|
+
c[45] !== f || c[46] !== $W || c[47] !== tG ? (nG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27435
27547
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27436
27548
|
delayDuration: 0,
|
|
27437
27549
|
open: f,
|
|
27438
27550
|
children: [
|
|
27439
|
-
|
|
27440
|
-
|
|
27551
|
+
$W,
|
|
27552
|
+
tG
|
|
27441
27553
|
]
|
|
27442
27554
|
})
|
|
27443
|
-
}), c[45] = f, c[46] =
|
|
27444
|
-
let
|
|
27445
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27555
|
+
}), c[45] = f, c[46] = $W, c[47] = tG, c[48] = nG) : nG = c[48];
|
|
27556
|
+
let rG;
|
|
27557
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== QW || c[53] !== nG || c[54] !== W ? (rG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27446
27558
|
ref: M,
|
|
27447
27559
|
className: W,
|
|
27448
27560
|
...u,
|
|
27449
27561
|
children: [
|
|
27450
27562
|
Z,
|
|
27451
|
-
|
|
27452
|
-
|
|
27563
|
+
QW,
|
|
27564
|
+
nG
|
|
27453
27565
|
]
|
|
27454
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27566
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = QW, c[53] = nG, c[54] = W, c[55] = rG) : rG = c[55], rG;
|
|
27455
27567
|
});
|
|
27456
27568
|
RangeSlider.displayName = Root.displayName;
|
|
27457
27569
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27502,14 +27614,14 @@ ${c}
|
|
|
27502
27614
|
}, q = (e2) => {
|
|
27503
27615
|
m && l(e2);
|
|
27504
27616
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27505
|
-
let Z,
|
|
27617
|
+
let Z, YW;
|
|
27506
27618
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27507
27619
|
m && !dequal(T, u) && l(T);
|
|
27508
|
-
},
|
|
27620
|
+
}, YW = () => {
|
|
27509
27621
|
m && !dequal(T, u) && l(T);
|
|
27510
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27511
|
-
let
|
|
27512
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
27622
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = YW) : (Z = r[18], YW = r[19]);
|
|
27623
|
+
let XW;
|
|
27624
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== YW || r[32] !== b ? (XW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27513
27625
|
id: S,
|
|
27514
27626
|
className: W,
|
|
27515
27627
|
value: T,
|
|
@@ -27521,35 +27633,35 @@ ${c}
|
|
|
27521
27633
|
onValueChange: G,
|
|
27522
27634
|
onValueCommit: q,
|
|
27523
27635
|
onPointerUp: Z,
|
|
27524
|
-
onMouseUp:
|
|
27636
|
+
onMouseUp: YW,
|
|
27525
27637
|
valueMap: b
|
|
27526
|
-
}), 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] =
|
|
27527
|
-
let
|
|
27528
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27638
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = YW, r[32] = b, r[33] = XW) : XW = r[33];
|
|
27639
|
+
let ZW;
|
|
27640
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (ZW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27529
27641
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27530
27642
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27531
27643
|
locale: w
|
|
27532
27644
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27533
27645
|
locale: w
|
|
27534
27646
|
})}`
|
|
27535
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27536
|
-
let
|
|
27537
|
-
r[39] !==
|
|
27647
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = ZW) : ZW = r[38];
|
|
27648
|
+
let QW;
|
|
27649
|
+
r[39] !== XW || r[40] !== ZW || r[41] !== B ? (QW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27538
27650
|
className: B,
|
|
27539
27651
|
children: [
|
|
27540
|
-
|
|
27541
|
-
|
|
27652
|
+
XW,
|
|
27653
|
+
ZW
|
|
27542
27654
|
]
|
|
27543
|
-
}), r[39] =
|
|
27544
|
-
let
|
|
27545
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27655
|
+
}), r[39] = XW, r[40] = ZW, r[41] = B, r[42] = QW) : QW = r[42];
|
|
27656
|
+
let $W;
|
|
27657
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== QW || r[47] !== M || r[48] !== L ? ($W = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27546
27658
|
label: c,
|
|
27547
27659
|
id: S,
|
|
27548
27660
|
align: M,
|
|
27549
27661
|
className: L,
|
|
27550
27662
|
fullWidth: v,
|
|
27551
|
-
children:
|
|
27552
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27663
|
+
children: QW
|
|
27664
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = QW, r[47] = M, r[48] = L, r[49] = $W) : $W = r[49], $W;
|
|
27553
27665
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27554
27666
|
r.exports = u;
|
|
27555
27667
|
var c = {
|
|
@@ -30848,40 +30960,40 @@ ${c}
|
|
|
30848
30960
|
areRegExpsEqual: H,
|
|
30849
30961
|
areSetsEqual: G,
|
|
30850
30962
|
createIsNestedEqual: r2
|
|
30851
|
-
}),
|
|
30852
|
-
function
|
|
30853
|
-
return
|
|
30963
|
+
}), YW = T(q);
|
|
30964
|
+
function XW(e3, r3) {
|
|
30965
|
+
return YW(e3, r3, void 0);
|
|
30854
30966
|
}
|
|
30855
|
-
var
|
|
30967
|
+
var ZW = T(l(q, {
|
|
30856
30968
|
createIsNestedEqual: function() {
|
|
30857
30969
|
return f;
|
|
30858
30970
|
}
|
|
30859
30971
|
}));
|
|
30860
|
-
function
|
|
30861
|
-
return
|
|
30972
|
+
function QW(e3, r3) {
|
|
30973
|
+
return ZW(e3, r3, void 0);
|
|
30862
30974
|
}
|
|
30863
|
-
var
|
|
30864
|
-
function
|
|
30865
|
-
return
|
|
30975
|
+
var $W = T(Z);
|
|
30976
|
+
function eG(e3, r3) {
|
|
30977
|
+
return $W(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30866
30978
|
}
|
|
30867
|
-
var
|
|
30979
|
+
var tG = T(l(Z, {
|
|
30868
30980
|
createIsNestedEqual: function() {
|
|
30869
30981
|
return f;
|
|
30870
30982
|
}
|
|
30871
30983
|
}));
|
|
30872
|
-
function
|
|
30873
|
-
return
|
|
30984
|
+
function nG(e3, r3) {
|
|
30985
|
+
return tG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30874
30986
|
}
|
|
30875
|
-
function
|
|
30987
|
+
function rG(e3) {
|
|
30876
30988
|
return T(l(q, e3(q)));
|
|
30877
30989
|
}
|
|
30878
|
-
function
|
|
30990
|
+
function iG(e3) {
|
|
30879
30991
|
var r3 = T(l(Z, e3(Z)));
|
|
30880
30992
|
return (function(e4, c2, l2) {
|
|
30881
30993
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30882
30994
|
});
|
|
30883
30995
|
}
|
|
30884
|
-
e2.circularDeepEqual =
|
|
30996
|
+
e2.circularDeepEqual = eG, e2.circularShallowEqual = nG, e2.createCustomCircularEqual = iG, e2.createCustomEqual = rG, e2.deepEqual = XW, e2.sameValueZeroEqual = f, e2.shallowEqual = QW, Object.defineProperty(e2, "__esModule", {
|
|
30885
30997
|
value: true
|
|
30886
30998
|
});
|
|
30887
30999
|
}));
|
|
@@ -30907,7 +31019,7 @@ ${c}
|
|
|
30907
31019
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30908
31020
|
Object.defineProperty(e, "__esModule", {
|
|
30909
31021
|
value: true
|
|
30910
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31022
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = uG, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = nG, e.setTopLeft = iG, e.setTransform = rG, e.sortLayoutItems = aG, e.sortLayoutItemsByColRow = sG, e.sortLayoutItemsByRowCol = oG, e.synchronizeLayoutWithChildren = cG, e.validateLayout = lG, e.withLayoutItem = v;
|
|
30911
31023
|
var r = require_fast_equals(), c = l(require_react());
|
|
30912
31024
|
function l(e2) {
|
|
30913
31025
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31012,7 +31124,7 @@ ${c}
|
|
|
31012
31124
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
31013
31125
|
}
|
|
31014
31126
|
function T(e2, r2, c2, l2) {
|
|
31015
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31127
|
+
let u2 = B(e2), d2 = h(u2), f2 = aG(e2, r2), p2 = Array(e2.length);
|
|
31016
31128
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31017
31129
|
let h3 = y(f2[m2]);
|
|
31018
31130
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -31070,7 +31182,7 @@ ${c}
|
|
|
31070
31182
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31071
31183
|
let h2 = r2.x, _2 = r2.y;
|
|
31072
31184
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31073
|
-
let v2 =
|
|
31185
|
+
let v2 = aG(e2, f2);
|
|
31074
31186
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31075
31187
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31076
31188
|
if (b2 && m2) return g(e2);
|
|
@@ -31104,61 +31216,61 @@ ${c}
|
|
|
31104
31216
|
function G(e2) {
|
|
31105
31217
|
return e2 * 100 + "%";
|
|
31106
31218
|
}
|
|
31107
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31219
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, YW = (e2) => Math.max(0, e2), XW = (e2) => Math.max(0, e2), ZW = (e2, r2, c2) => {
|
|
31108
31220
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31109
31221
|
return {
|
|
31110
31222
|
left: l2,
|
|
31111
31223
|
width: d2,
|
|
31112
31224
|
height: Z(f2, e2.height, u2),
|
|
31113
|
-
top:
|
|
31225
|
+
top: XW(f2)
|
|
31114
31226
|
};
|
|
31115
|
-
},
|
|
31227
|
+
}, QW = (e2, r2, c2) => {
|
|
31116
31228
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31117
31229
|
return {
|
|
31118
31230
|
top: l2,
|
|
31119
31231
|
height: d2,
|
|
31120
31232
|
width: q(e2.left, e2.width, f2, c2),
|
|
31121
|
-
left:
|
|
31233
|
+
left: YW(u2)
|
|
31122
31234
|
};
|
|
31123
|
-
},
|
|
31235
|
+
}, $W = (e2, r2, c2) => {
|
|
31124
31236
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31125
31237
|
return {
|
|
31126
31238
|
height: u2,
|
|
31127
31239
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31128
|
-
top:
|
|
31129
|
-
left:
|
|
31240
|
+
top: XW(l2),
|
|
31241
|
+
left: YW(f2)
|
|
31130
31242
|
};
|
|
31131
|
-
},
|
|
31243
|
+
}, eG = (e2, r2, c2) => {
|
|
31132
31244
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31133
31245
|
return {
|
|
31134
31246
|
width: f2,
|
|
31135
31247
|
left: u2,
|
|
31136
31248
|
height: Z(l2, e2.height, d2),
|
|
31137
|
-
top:
|
|
31249
|
+
top: XW(l2)
|
|
31138
31250
|
};
|
|
31139
|
-
},
|
|
31140
|
-
n:
|
|
31251
|
+
}, tG = {
|
|
31252
|
+
n: ZW,
|
|
31141
31253
|
ne: function() {
|
|
31142
|
-
return
|
|
31254
|
+
return ZW(arguments.length <= 0 ? void 0 : arguments[0], QW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31143
31255
|
},
|
|
31144
|
-
e:
|
|
31256
|
+
e: QW,
|
|
31145
31257
|
se: function() {
|
|
31146
|
-
return
|
|
31258
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], QW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31147
31259
|
},
|
|
31148
|
-
s:
|
|
31260
|
+
s: eG,
|
|
31149
31261
|
sw: function() {
|
|
31150
|
-
return
|
|
31262
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], $W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31151
31263
|
},
|
|
31152
|
-
w:
|
|
31264
|
+
w: $W,
|
|
31153
31265
|
nw: function() {
|
|
31154
|
-
return
|
|
31266
|
+
return ZW(arguments.length <= 0 ? void 0 : arguments[0], $W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31155
31267
|
}
|
|
31156
31268
|
};
|
|
31157
|
-
function
|
|
31158
|
-
let u2 =
|
|
31269
|
+
function nG(e2, r2, c2, l2) {
|
|
31270
|
+
let u2 = tG[e2];
|
|
31159
31271
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31160
31272
|
}
|
|
31161
|
-
function
|
|
31273
|
+
function rG(e2) {
|
|
31162
31274
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31163
31275
|
return {
|
|
31164
31276
|
transform: d2,
|
|
@@ -31171,7 +31283,7 @@ ${c}
|
|
|
31171
31283
|
position: "absolute"
|
|
31172
31284
|
};
|
|
31173
31285
|
}
|
|
31174
|
-
function
|
|
31286
|
+
function iG(e2) {
|
|
31175
31287
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31176
31288
|
return {
|
|
31177
31289
|
top: `${r2}px`,
|
|
@@ -31181,20 +31293,20 @@ ${c}
|
|
|
31181
31293
|
position: "absolute"
|
|
31182
31294
|
};
|
|
31183
31295
|
}
|
|
31184
|
-
function
|
|
31185
|
-
return r2 === "horizontal" ?
|
|
31296
|
+
function aG(e2, r2) {
|
|
31297
|
+
return r2 === "horizontal" ? sG(e2) : r2 === "vertical" ? oG(e2) : e2;
|
|
31186
31298
|
}
|
|
31187
|
-
function
|
|
31299
|
+
function oG(e2) {
|
|
31188
31300
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31189
31301
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31190
31302
|
});
|
|
31191
31303
|
}
|
|
31192
|
-
function
|
|
31304
|
+
function sG(e2) {
|
|
31193
31305
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31194
31306
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31195
31307
|
});
|
|
31196
31308
|
}
|
|
31197
|
-
function
|
|
31309
|
+
function cG(e2, r2, l2, u2, f2) {
|
|
31198
31310
|
e2 || (e2 = []);
|
|
31199
31311
|
let p2 = [];
|
|
31200
31312
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31215,7 +31327,7 @@ ${c}
|
|
|
31215
31327
|
});
|
|
31216
31328
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31217
31329
|
}
|
|
31218
|
-
function
|
|
31330
|
+
function lG(e2) {
|
|
31219
31331
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31220
31332
|
"x",
|
|
31221
31333
|
"y",
|
|
@@ -31232,7 +31344,7 @@ ${c}
|
|
|
31232
31344
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
31233
31345
|
}
|
|
31234
31346
|
}
|
|
31235
|
-
function
|
|
31347
|
+
function uG(e2) {
|
|
31236
31348
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31237
31349
|
return r2 === false ? null : c2;
|
|
31238
31350
|
}
|
|
@@ -34037,7 +34149,7 @@ ${c}
|
|
|
34037
34149
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34038
34150
|
let E = useIsDragging(), O, j;
|
|
34039
34151
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34040
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z,
|
|
34152
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, YW, XW, ZW, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG;
|
|
34041
34153
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34042
34154
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34043
34155
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34056,23 +34168,23 @@ ${c}
|
|
|
34056
34168
|
});
|
|
34057
34169
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34058
34170
|
let y2 = v2;
|
|
34059
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
34171
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, sG = "lg", r[58] === c.cells ? cG = r[59] : (cG = {
|
|
34060
34172
|
lg: c.cells
|
|
34061
|
-
}, r[58] = c.cells, r[59] =
|
|
34173
|
+
}, r[58] = c.cells, r[59] = cG), lG = L, uG = S, R = false;
|
|
34062
34174
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34063
34175
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
34064
34176
|
20,
|
|
34065
34177
|
20
|
|
34066
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34178
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (YW = (e3) => {
|
|
34067
34179
|
f || l({
|
|
34068
34180
|
...c,
|
|
34069
34181
|
cells: e3
|
|
34070
34182
|
});
|
|
34071
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34183
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = YW) : YW = r[69], r[70] === g ? XW = r[71] : (XW = g ? {
|
|
34072
34184
|
i: g.i,
|
|
34073
34185
|
w: g.w || 2,
|
|
34074
34186
|
h: g.h || 2
|
|
34075
|
-
} : void 0, r[70] = g, r[71] =
|
|
34187
|
+
} : void 0, r[70] = g, r[71] = XW), r[72] !== O || r[73] !== c || r[74] !== l ? (ZW = (e3, r2, u2) => {
|
|
34076
34188
|
O.onDragStop(), r2 && l({
|
|
34077
34189
|
...c,
|
|
34078
34190
|
cells: [
|
|
@@ -34080,15 +34192,15 @@ ${c}
|
|
|
34080
34192
|
r2
|
|
34081
34193
|
]
|
|
34082
34194
|
});
|
|
34083
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34195
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = ZW) : ZW = r[75], r[76] === O ? (QW = r[77], $W = r[78], eG = r[79]) : (QW = (e3, r2, c2, l2, u2) => {
|
|
34084
34196
|
O.onDragStart(u2);
|
|
34085
|
-
},
|
|
34197
|
+
}, $W = (e3, r2, c2, l2, u2) => {
|
|
34086
34198
|
O.onDragMove(u2);
|
|
34087
|
-
},
|
|
34199
|
+
}, eG = () => {
|
|
34088
34200
|
O.onDragStop();
|
|
34089
|
-
}, r[76] = O, r[77] =
|
|
34201
|
+
}, r[76] = O, r[77] = QW, r[78] = $W, r[79] = eG), tG = _temp3$2, nG = M, rG = M, iG = M, aG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34090
34202
|
let E2;
|
|
34091
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34203
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), oG = u.filter(E2).map((r2) => {
|
|
34092
34204
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34093
34205
|
code: r2.code,
|
|
34094
34206
|
mode: d,
|
|
@@ -34118,14 +34230,14 @@ ${c}
|
|
|
34118
34230
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34119
34231
|
children: m2
|
|
34120
34232
|
}, r2.id);
|
|
34121
|
-
}), 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] =
|
|
34122
|
-
} 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],
|
|
34123
|
-
let
|
|
34124
|
-
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] !==
|
|
34125
|
-
breakpoint:
|
|
34126
|
-
layouts:
|
|
34127
|
-
style:
|
|
34128
|
-
cols:
|
|
34233
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = YW, r[32] = XW, r[33] = ZW, r[34] = QW, r[35] = $W, r[36] = eG, r[37] = tG, r[38] = nG, r[39] = rG, r[40] = iG, r[41] = aG, r[42] = oG, r[43] = sG, r[44] = cG, r[45] = lG, r[46] = uG;
|
|
34234
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30], YW = r[31], XW = r[32], ZW = r[33], QW = r[34], $W = r[35], eG = r[36], tG = r[37], nG = r[38], rG = r[39], iG = r[40], aG = r[41], oG = r[42], sG = r[43], cG = r[44], lG = r[45], uG = r[46];
|
|
34235
|
+
let dG;
|
|
34236
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !== YW || r[92] !== XW || r[93] !== ZW || r[94] !== QW || r[95] !== $W || r[96] !== eG || r[97] !== tG || r[98] !== nG || r[99] !== rG || r[100] !== iG || r[101] !== aG || r[102] !== oG || r[103] !== sG || r[104] !== cG || r[105] !== lG || r[106] !== uG ? (dG = (0, import_jsx_runtime.jsx)(I, {
|
|
34237
|
+
breakpoint: sG,
|
|
34238
|
+
layouts: cG,
|
|
34239
|
+
style: lG,
|
|
34240
|
+
cols: uG,
|
|
34129
34241
|
allowOverlap: R,
|
|
34130
34242
|
className: z,
|
|
34131
34243
|
containerPadding: B,
|
|
@@ -34134,22 +34246,22 @@ ${c}
|
|
|
34134
34246
|
compactType: G,
|
|
34135
34247
|
preventCollision: q,
|
|
34136
34248
|
rowHeight: Z,
|
|
34137
|
-
onLayoutChange:
|
|
34138
|
-
droppingItem:
|
|
34139
|
-
onDrop:
|
|
34140
|
-
onDragStart:
|
|
34141
|
-
onDrag:
|
|
34142
|
-
onDragStop:
|
|
34143
|
-
onResizeStop:
|
|
34144
|
-
isDraggable:
|
|
34145
|
-
isDroppable:
|
|
34146
|
-
isResizable:
|
|
34147
|
-
draggableHandle:
|
|
34148
|
-
children:
|
|
34149
|
-
}), 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] =
|
|
34150
|
-
let
|
|
34151
|
-
if (r[108] !== u || r[109] !==
|
|
34152
|
-
|
|
34249
|
+
onLayoutChange: YW,
|
|
34250
|
+
droppingItem: XW,
|
|
34251
|
+
onDrop: ZW,
|
|
34252
|
+
onDragStart: QW,
|
|
34253
|
+
onDrag: $W,
|
|
34254
|
+
onDragStop: eG,
|
|
34255
|
+
onResizeStop: tG,
|
|
34256
|
+
isDraggable: nG,
|
|
34257
|
+
isDroppable: rG,
|
|
34258
|
+
isResizable: iG,
|
|
34259
|
+
draggableHandle: aG,
|
|
34260
|
+
children: oG
|
|
34261
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] = YW, r[92] = XW, r[93] = ZW, r[94] = QW, r[95] = $W, r[96] = eG, r[97] = tG, r[98] = nG, r[99] = rG, r[100] = iG, r[101] = aG, r[102] = oG, r[103] = sG, r[104] = cG, r[105] = lG, r[106] = uG, r[107] = dG) : dG = r[107];
|
|
34262
|
+
let fG = dG, pG, mG, hG, gG, _G, vG, yG;
|
|
34263
|
+
if (r[108] !== u || r[109] !== fG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34264
|
+
yG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34153
34265
|
bb0: {
|
|
34154
34266
|
let e2;
|
|
34155
34267
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34157,14 +34269,14 @@ ${c}
|
|
|
34157
34269
|
if (f) {
|
|
34158
34270
|
if (c.bordered) {
|
|
34159
34271
|
let e4;
|
|
34160
|
-
r[127] !==
|
|
34272
|
+
r[127] !== fG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34161
34273
|
className: "flex flex-1 flex-col items-center",
|
|
34162
34274
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34163
34275
|
style: L,
|
|
34164
34276
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34165
|
-
children:
|
|
34277
|
+
children: fG
|
|
34166
34278
|
})
|
|
34167
|
-
}), r[127] =
|
|
34279
|
+
}), r[127] = fG, r[128] = L, r[129] = e4) : e4 = r[129], fG = e4;
|
|
34168
34280
|
}
|
|
34169
34281
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34170
34282
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34176,9 +34288,9 @@ ${c}
|
|
|
34176
34288
|
stale: outputIsStale(e4, false),
|
|
34177
34289
|
isScrollable: false,
|
|
34178
34290
|
hidden: false
|
|
34179
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34291
|
+
}, e4.id), r[130] = d, r[131] = l2), yG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34180
34292
|
children: [
|
|
34181
|
-
|
|
34293
|
+
fG,
|
|
34182
34294
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34183
34295
|
className: "hidden",
|
|
34184
34296
|
children: e3.map(l2)
|
|
@@ -34189,31 +34301,31 @@ ${c}
|
|
|
34189
34301
|
}
|
|
34190
34302
|
if (c.bordered) {
|
|
34191
34303
|
let e3;
|
|
34192
|
-
r[132] ===
|
|
34304
|
+
r[132] === fG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34193
34305
|
className: "h-full overflow-auto",
|
|
34194
|
-
children:
|
|
34195
|
-
}), r[132] =
|
|
34306
|
+
children: fG
|
|
34307
|
+
}), r[132] = fG, r[133] = e3);
|
|
34196
34308
|
let c2;
|
|
34197
34309
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34198
34310
|
style: L,
|
|
34199
34311
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34200
34312
|
children: e3
|
|
34201
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34313
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], fG = c2;
|
|
34202
34314
|
}
|
|
34203
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34315
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (vG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34204
34316
|
layout: c,
|
|
34205
34317
|
setLayout: l,
|
|
34206
34318
|
isLocked: v,
|
|
34207
34319
|
setIsLocked: y
|
|
34208
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34320
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = vG) : vG = r[140];
|
|
34209
34321
|
let g2;
|
|
34210
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34322
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = gG, r[142] = g2) : (gG = r[141], g2 = r[142]), r[143] === fG ? _G = r[144] : (_G = (0, import_jsx_runtime.jsx)("div", {
|
|
34211
34323
|
className: g2,
|
|
34212
|
-
children:
|
|
34213
|
-
}), r[143] =
|
|
34324
|
+
children: fG
|
|
34325
|
+
}), r[143] = fG, r[144] = _G), pG = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mG = (0, import_jsx_runtime.jsx)("div", {
|
|
34214
34326
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34215
34327
|
children: "Outputs"
|
|
34216
|
-
}), r[145] =
|
|
34328
|
+
}), r[145] = mG) : mG = r[145];
|
|
34217
34329
|
let b2;
|
|
34218
34330
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34219
34331
|
draggable: true,
|
|
@@ -34239,34 +34351,34 @@ ${c}
|
|
|
34239
34351
|
stale: outputIsStale(e3, false),
|
|
34240
34352
|
hidden: false
|
|
34241
34353
|
})
|
|
34242
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34243
|
-
}
|
|
34244
|
-
r[108] = u, r[109] =
|
|
34245
|
-
} else
|
|
34246
|
-
if (
|
|
34247
|
-
let
|
|
34248
|
-
r[150] !==
|
|
34249
|
-
className:
|
|
34354
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], hG = p2.map(b2);
|
|
34355
|
+
}
|
|
34356
|
+
r[108] = u, r[109] = fG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = pG, r[118] = mG, r[119] = hG, r[120] = gG, r[121] = _G, r[122] = vG, r[123] = yG, r[124] = fG;
|
|
34357
|
+
} else pG = r[117], mG = r[118], hG = r[119], gG = r[120], _G = r[121], vG = r[122], yG = r[123], fG = r[124];
|
|
34358
|
+
if (yG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return yG;
|
|
34359
|
+
let bG;
|
|
34360
|
+
r[150] !== pG || r[151] !== mG || r[152] !== hG ? (bG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34361
|
+
className: pG,
|
|
34250
34362
|
children: [
|
|
34251
|
-
|
|
34252
|
-
|
|
34363
|
+
mG,
|
|
34364
|
+
hG
|
|
34253
34365
|
]
|
|
34254
|
-
}), r[150] =
|
|
34255
|
-
let
|
|
34256
|
-
r[154] !==
|
|
34257
|
-
className:
|
|
34366
|
+
}), r[150] = pG, r[151] = mG, r[152] = hG, r[153] = bG) : bG = r[153];
|
|
34367
|
+
let xG;
|
|
34368
|
+
r[154] !== gG || r[155] !== _G || r[156] !== bG ? (xG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34369
|
+
className: gG,
|
|
34258
34370
|
children: [
|
|
34259
|
-
|
|
34260
|
-
|
|
34371
|
+
_G,
|
|
34372
|
+
bG
|
|
34261
34373
|
]
|
|
34262
|
-
}), r[154] =
|
|
34263
|
-
let
|
|
34264
|
-
return r[158] !==
|
|
34374
|
+
}), r[154] = gG, r[155] = _G, r[156] = bG, r[157] = xG) : xG = r[157];
|
|
34375
|
+
let SG;
|
|
34376
|
+
return r[158] !== vG || r[159] !== xG ? (SG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34265
34377
|
children: [
|
|
34266
|
-
|
|
34267
|
-
|
|
34378
|
+
vG,
|
|
34379
|
+
xG
|
|
34268
34380
|
]
|
|
34269
|
-
}), r[158] =
|
|
34381
|
+
}), r[158] = vG, r[159] = xG, r[160] = SG) : SG = r[160], SG;
|
|
34270
34382
|
};
|
|
34271
34383
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34272
34384
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34576,8 +34688,8 @@ ${c}
|
|
|
34576
34688
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34577
34689
|
onClick: () => l()
|
|
34578
34690
|
}), r[36] = l, r[37] = Z);
|
|
34579
|
-
let
|
|
34580
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34691
|
+
let YW;
|
|
34692
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (YW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34581
34693
|
className: S,
|
|
34582
34694
|
children: [
|
|
34583
34695
|
M,
|
|
@@ -34585,7 +34697,7 @@ ${c}
|
|
|
34585
34697
|
q,
|
|
34586
34698
|
Z
|
|
34587
34699
|
]
|
|
34588
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34700
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = YW) : YW = r[42], YW;
|
|
34589
34701
|
};
|
|
34590
34702
|
function isSidebarCell(e) {
|
|
34591
34703
|
var _a5;
|
|
@@ -36591,29 +36703,29 @@ ${c}
|
|
|
36591
36703
|
M
|
|
36592
36704
|
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36593
36705
|
j
|
|
36594
|
-
]),
|
|
36706
|
+
]), YW = useMeasuringConfiguration(p), { droppableRects: XW, measureDroppableContainers: ZW, measuringScheduled: QW } = useDroppableMeasuring(Z, {
|
|
36595
36707
|
dragging: w,
|
|
36596
36708
|
dependencies: [
|
|
36597
36709
|
O.x,
|
|
36598
36710
|
O.y
|
|
36599
36711
|
],
|
|
36600
|
-
config:
|
|
36601
|
-
}),
|
|
36712
|
+
config: YW.droppable
|
|
36713
|
+
}), $W = useCachedNode(E, T), eG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36602
36714
|
H
|
|
36603
|
-
]),
|
|
36715
|
+
]), tG = MG(), nG = useInitialRect($W, YW.draggable.measure);
|
|
36604
36716
|
useLayoutShiftScrollCompensation({
|
|
36605
36717
|
activeNode: T == null ? null : E.get(T),
|
|
36606
|
-
config:
|
|
36607
|
-
initialRect:
|
|
36608
|
-
measure:
|
|
36718
|
+
config: tG.layoutShiftCompensation,
|
|
36719
|
+
initialRect: nG,
|
|
36720
|
+
measure: YW.draggable.measure
|
|
36609
36721
|
});
|
|
36610
|
-
let
|
|
36722
|
+
let rG = useRect($W, YW.draggable.measure, nG), iG = useRect($W ? $W.parentElement : null), aG = (0, import_react.useRef)({
|
|
36611
36723
|
activatorEvent: null,
|
|
36612
36724
|
active: null,
|
|
36613
|
-
activeNode:
|
|
36725
|
+
activeNode: $W,
|
|
36614
36726
|
collisionRect: null,
|
|
36615
36727
|
collisions: null,
|
|
36616
|
-
droppableRects:
|
|
36728
|
+
droppableRects: XW,
|
|
36617
36729
|
draggableNodes: E,
|
|
36618
36730
|
draggingNode: null,
|
|
36619
36731
|
draggingNodeRect: null,
|
|
@@ -36621,45 +36733,45 @@ ${c}
|
|
|
36621
36733
|
over: null,
|
|
36622
36734
|
scrollableAncestors: [],
|
|
36623
36735
|
scrollAdjustedTranslate: null
|
|
36624
|
-
}),
|
|
36625
|
-
measure:
|
|
36626
|
-
}),
|
|
36736
|
+
}), oG = j.getNodeFor((_a5 = aG.current.over) == null ? void 0 : _a5.id), sG = useDragOverlayMeasuring({
|
|
36737
|
+
measure: YW.dragOverlay.measure
|
|
36738
|
+
}), cG = sG.nodeRef.current ?? $W, lG = w ? sG.rect ?? rG : null, uG = !!(sG.nodeRef.current && sG.rect), dG = useRectDelta(uG ? null : rG), fG = useWindowRect(cG ? getWindow(cG) : null), pG = useScrollableAncestors(w ? oG ?? $W : null), mG = useRects(pG), hG = applyModifiers(m, {
|
|
36627
36739
|
transform: {
|
|
36628
|
-
x: O.x -
|
|
36629
|
-
y: O.y -
|
|
36740
|
+
x: O.x - dG.x,
|
|
36741
|
+
y: O.y - dG.y,
|
|
36630
36742
|
scaleX: 1,
|
|
36631
36743
|
scaleY: 1
|
|
36632
36744
|
},
|
|
36633
36745
|
activatorEvent: H,
|
|
36634
36746
|
active: L,
|
|
36635
|
-
activeNodeRect:
|
|
36636
|
-
containerNodeRect:
|
|
36637
|
-
draggingNodeRect:
|
|
36638
|
-
over:
|
|
36639
|
-
overlayNodeRect:
|
|
36640
|
-
scrollableAncestors:
|
|
36641
|
-
scrollableAncestorRects:
|
|
36642
|
-
windowRect:
|
|
36643
|
-
}),
|
|
36644
|
-
|
|
36645
|
-
]),
|
|
36747
|
+
activeNodeRect: rG,
|
|
36748
|
+
containerNodeRect: iG,
|
|
36749
|
+
draggingNodeRect: lG,
|
|
36750
|
+
over: aG.current.over,
|
|
36751
|
+
overlayNodeRect: sG.rect,
|
|
36752
|
+
scrollableAncestors: pG,
|
|
36753
|
+
scrollableAncestorRects: mG,
|
|
36754
|
+
windowRect: fG
|
|
36755
|
+
}), gG = eG ? add(eG, O) : null, _G = useScrollOffsets(pG), vG = useScrollOffsetsDelta(_G), yG = useScrollOffsetsDelta(_G, [
|
|
36756
|
+
rG
|
|
36757
|
+
]), bG = add(hG, vG), xG = lG ? getAdjustedRect(lG, hG) : null, SG = L && xG ? f({
|
|
36646
36758
|
active: L,
|
|
36647
|
-
collisionRect:
|
|
36648
|
-
droppableRects:
|
|
36759
|
+
collisionRect: xG,
|
|
36760
|
+
droppableRects: XW,
|
|
36649
36761
|
droppableContainers: Z,
|
|
36650
|
-
pointerCoordinates:
|
|
36651
|
-
}) : null,
|
|
36762
|
+
pointerCoordinates: gG
|
|
36763
|
+
}) : null, CG = getFirstCollision(SG, "id"), [wG, TG] = (0, import_react.useState)(null), EG = adjustScale(uG ? hG : add(hG, yG), (wG == null ? void 0 : wG.rect) ?? null, rG), DG = (0, import_react.useRef)(null), OG = (0, import_react.useCallback)((e2, r2) => {
|
|
36652
36764
|
let { sensor: c2, options: l2 } = r2;
|
|
36653
36765
|
if (R.current == null) return;
|
|
36654
36766
|
let u2 = E.get(R.current);
|
|
36655
36767
|
if (!u2) return;
|
|
36656
36768
|
let d2 = e2.nativeEvent;
|
|
36657
|
-
|
|
36769
|
+
DG.current = new c2({
|
|
36658
36770
|
active: R.current,
|
|
36659
36771
|
activeNode: u2,
|
|
36660
36772
|
event: d2,
|
|
36661
36773
|
options: l2,
|
|
36662
|
-
context:
|
|
36774
|
+
context: aG,
|
|
36663
36775
|
onAbort(e3) {
|
|
36664
36776
|
if (!E.get(e3)) return;
|
|
36665
36777
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36704,7 +36816,7 @@ ${c}
|
|
|
36704
36816
|
}), v({
|
|
36705
36817
|
type: "onDragStart",
|
|
36706
36818
|
event: u3
|
|
36707
|
-
}), B(
|
|
36819
|
+
}), B(DG.current), W(d2);
|
|
36708
36820
|
});
|
|
36709
36821
|
},
|
|
36710
36822
|
onMove(e3) {
|
|
@@ -36718,7 +36830,7 @@ ${c}
|
|
|
36718
36830
|
});
|
|
36719
36831
|
function f2(e3) {
|
|
36720
36832
|
return async function() {
|
|
36721
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36833
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = aG.current, f3 = null;
|
|
36722
36834
|
if (r3 && u3) {
|
|
36723
36835
|
let { cancelDrop: p2 } = G.current;
|
|
36724
36836
|
f3 = {
|
|
@@ -36732,7 +36844,7 @@ ${c}
|
|
|
36732
36844
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36733
36845
|
_({
|
|
36734
36846
|
type: e3
|
|
36735
|
-
}), S(Status.Uninitialized),
|
|
36847
|
+
}), S(Status.Uninitialized), TG(null), B(null), W(null), DG.current = null;
|
|
36736
36848
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36737
36849
|
if (f3) {
|
|
36738
36850
|
let e4 = G.current[r4];
|
|
@@ -36746,7 +36858,7 @@ ${c}
|
|
|
36746
36858
|
}
|
|
36747
36859
|
}, [
|
|
36748
36860
|
E
|
|
36749
|
-
]),
|
|
36861
|
+
]), kG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36750
36862
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36751
36863
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36752
36864
|
let f2 = {
|
|
@@ -36754,26 +36866,26 @@ ${c}
|
|
|
36754
36866
|
};
|
|
36755
36867
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36756
36868
|
capturedBy: r2.sensor
|
|
36757
|
-
}, R.current = l2,
|
|
36869
|
+
}, R.current = l2, OG(c2, r2));
|
|
36758
36870
|
}, [
|
|
36759
36871
|
E,
|
|
36760
|
-
|
|
36872
|
+
OG
|
|
36761
36873
|
]));
|
|
36762
36874
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36763
|
-
|
|
36875
|
+
rG && b === Status.Initializing && S(Status.Initialized);
|
|
36764
36876
|
}, [
|
|
36765
|
-
|
|
36877
|
+
rG,
|
|
36766
36878
|
b
|
|
36767
36879
|
]), (0, import_react.useEffect)(() => {
|
|
36768
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36880
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = aG.current;
|
|
36769
36881
|
if (!r2 || !c2) return;
|
|
36770
36882
|
let d2 = {
|
|
36771
36883
|
active: r2,
|
|
36772
36884
|
activatorEvent: c2,
|
|
36773
36885
|
collisions: l2,
|
|
36774
36886
|
delta: {
|
|
36775
|
-
x:
|
|
36776
|
-
y:
|
|
36887
|
+
x: bG.x,
|
|
36888
|
+
y: bG.y
|
|
36777
36889
|
},
|
|
36778
36890
|
over: u2
|
|
36779
36891
|
};
|
|
@@ -36784,12 +36896,12 @@ ${c}
|
|
|
36784
36896
|
});
|
|
36785
36897
|
});
|
|
36786
36898
|
}, [
|
|
36787
|
-
|
|
36788
|
-
|
|
36899
|
+
bG.x,
|
|
36900
|
+
bG.y
|
|
36789
36901
|
]), (0, import_react.useEffect)(() => {
|
|
36790
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36902
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = aG.current;
|
|
36791
36903
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36792
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36904
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(CG), p2 = f2 && f2.rect.current ? {
|
|
36793
36905
|
id: f2.id,
|
|
36794
36906
|
rect: f2.rect.current,
|
|
36795
36907
|
data: f2.data,
|
|
@@ -36805,127 +36917,127 @@ ${c}
|
|
|
36805
36917
|
over: p2
|
|
36806
36918
|
};
|
|
36807
36919
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36808
|
-
|
|
36920
|
+
TG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36809
36921
|
type: "onDragOver",
|
|
36810
36922
|
event: m2
|
|
36811
36923
|
});
|
|
36812
36924
|
});
|
|
36813
36925
|
}, [
|
|
36814
|
-
|
|
36926
|
+
CG
|
|
36815
36927
|
]), useIsomorphicLayoutEffect(() => {
|
|
36816
|
-
|
|
36928
|
+
aG.current = {
|
|
36817
36929
|
activatorEvent: H,
|
|
36818
36930
|
active: L,
|
|
36819
|
-
activeNode:
|
|
36820
|
-
collisionRect:
|
|
36821
|
-
collisions:
|
|
36822
|
-
droppableRects:
|
|
36931
|
+
activeNode: $W,
|
|
36932
|
+
collisionRect: xG,
|
|
36933
|
+
collisions: SG,
|
|
36934
|
+
droppableRects: XW,
|
|
36823
36935
|
draggableNodes: E,
|
|
36824
|
-
draggingNode:
|
|
36825
|
-
draggingNodeRect:
|
|
36936
|
+
draggingNode: cG,
|
|
36937
|
+
draggingNodeRect: lG,
|
|
36826
36938
|
droppableContainers: j,
|
|
36827
|
-
over:
|
|
36828
|
-
scrollableAncestors:
|
|
36829
|
-
scrollAdjustedTranslate:
|
|
36939
|
+
over: wG,
|
|
36940
|
+
scrollableAncestors: pG,
|
|
36941
|
+
scrollAdjustedTranslate: bG
|
|
36830
36942
|
}, I.current = {
|
|
36831
|
-
initial:
|
|
36832
|
-
translated:
|
|
36943
|
+
initial: lG,
|
|
36944
|
+
translated: xG
|
|
36833
36945
|
};
|
|
36834
36946
|
}, [
|
|
36835
36947
|
L,
|
|
36836
|
-
|
|
36837
|
-
|
|
36838
|
-
|
|
36948
|
+
$W,
|
|
36949
|
+
SG,
|
|
36950
|
+
xG,
|
|
36839
36951
|
E,
|
|
36840
|
-
|
|
36841
|
-
|
|
36842
|
-
|
|
36952
|
+
cG,
|
|
36953
|
+
lG,
|
|
36954
|
+
XW,
|
|
36843
36955
|
j,
|
|
36844
|
-
|
|
36845
|
-
|
|
36846
|
-
|
|
36956
|
+
wG,
|
|
36957
|
+
pG,
|
|
36958
|
+
bG
|
|
36847
36959
|
]), useAutoScroller({
|
|
36848
|
-
...
|
|
36960
|
+
...tG,
|
|
36849
36961
|
delta: O,
|
|
36850
|
-
draggingRect:
|
|
36851
|
-
pointerCoordinates:
|
|
36852
|
-
scrollableAncestors:
|
|
36853
|
-
scrollableAncestorRects:
|
|
36962
|
+
draggingRect: xG,
|
|
36963
|
+
pointerCoordinates: gG,
|
|
36964
|
+
scrollableAncestors: pG,
|
|
36965
|
+
scrollableAncestorRects: mG
|
|
36854
36966
|
});
|
|
36855
|
-
let
|
|
36967
|
+
let AG = (0, import_react.useMemo)(() => ({
|
|
36856
36968
|
active: L,
|
|
36857
|
-
activeNode:
|
|
36858
|
-
activeNodeRect:
|
|
36969
|
+
activeNode: $W,
|
|
36970
|
+
activeNodeRect: rG,
|
|
36859
36971
|
activatorEvent: H,
|
|
36860
|
-
collisions:
|
|
36861
|
-
containerNodeRect:
|
|
36862
|
-
dragOverlay:
|
|
36972
|
+
collisions: SG,
|
|
36973
|
+
containerNodeRect: iG,
|
|
36974
|
+
dragOverlay: sG,
|
|
36863
36975
|
draggableNodes: E,
|
|
36864
36976
|
droppableContainers: j,
|
|
36865
|
-
droppableRects:
|
|
36866
|
-
over:
|
|
36867
|
-
measureDroppableContainers:
|
|
36868
|
-
scrollableAncestors:
|
|
36869
|
-
scrollableAncestorRects:
|
|
36870
|
-
measuringConfiguration:
|
|
36871
|
-
measuringScheduled:
|
|
36872
|
-
windowRect:
|
|
36977
|
+
droppableRects: XW,
|
|
36978
|
+
over: wG,
|
|
36979
|
+
measureDroppableContainers: ZW,
|
|
36980
|
+
scrollableAncestors: pG,
|
|
36981
|
+
scrollableAncestorRects: mG,
|
|
36982
|
+
measuringConfiguration: YW,
|
|
36983
|
+
measuringScheduled: QW,
|
|
36984
|
+
windowRect: fG
|
|
36873
36985
|
}), [
|
|
36874
36986
|
L,
|
|
36875
|
-
GW,
|
|
36876
|
-
YW,
|
|
36877
|
-
H,
|
|
36878
|
-
mG,
|
|
36879
|
-
XW,
|
|
36880
36987
|
$W,
|
|
36988
|
+
rG,
|
|
36989
|
+
H,
|
|
36990
|
+
SG,
|
|
36991
|
+
iG,
|
|
36992
|
+
sG,
|
|
36881
36993
|
E,
|
|
36882
36994
|
j,
|
|
36883
|
-
|
|
36884
|
-
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36888
|
-
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
|
-
]),
|
|
36995
|
+
XW,
|
|
36996
|
+
wG,
|
|
36997
|
+
ZW,
|
|
36998
|
+
pG,
|
|
36999
|
+
mG,
|
|
37000
|
+
YW,
|
|
37001
|
+
QW,
|
|
37002
|
+
fG
|
|
37003
|
+
]), jG = (0, import_react.useMemo)(() => ({
|
|
36892
37004
|
activatorEvent: H,
|
|
36893
|
-
activators:
|
|
37005
|
+
activators: kG,
|
|
36894
37006
|
active: L,
|
|
36895
|
-
activeNodeRect:
|
|
37007
|
+
activeNodeRect: rG,
|
|
36896
37008
|
ariaDescribedById: {
|
|
36897
37009
|
draggable: q
|
|
36898
37010
|
},
|
|
36899
37011
|
dispatch: _,
|
|
36900
37012
|
draggableNodes: E,
|
|
36901
|
-
over:
|
|
36902
|
-
measureDroppableContainers:
|
|
37013
|
+
over: wG,
|
|
37014
|
+
measureDroppableContainers: ZW
|
|
36903
37015
|
}), [
|
|
36904
37016
|
H,
|
|
36905
|
-
|
|
37017
|
+
kG,
|
|
36906
37018
|
L,
|
|
36907
|
-
|
|
37019
|
+
rG,
|
|
36908
37020
|
_,
|
|
36909
37021
|
q,
|
|
36910
37022
|
E,
|
|
36911
|
-
|
|
36912
|
-
|
|
37023
|
+
wG,
|
|
37024
|
+
ZW
|
|
36913
37025
|
]);
|
|
36914
37026
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36915
37027
|
value: y
|
|
36916
37028
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36917
|
-
value:
|
|
37029
|
+
value: jG
|
|
36918
37030
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36919
|
-
value:
|
|
37031
|
+
value: AG
|
|
36920
37032
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36921
|
-
value:
|
|
37033
|
+
value: EG
|
|
36922
37034
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36923
37035
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36924
37036
|
})), import_react.createElement(Accessibility, {
|
|
36925
37037
|
...c,
|
|
36926
37038
|
hiddenTextDescribedById: q
|
|
36927
37039
|
}));
|
|
36928
|
-
function
|
|
37040
|
+
function MG() {
|
|
36929
37041
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36930
37042
|
return typeof l == "object" ? {
|
|
36931
37043
|
...l,
|
|
@@ -37453,7 +37565,7 @@ ${c}
|
|
|
37453
37565
|
updateMeasurementsFor: I,
|
|
37454
37566
|
...m
|
|
37455
37567
|
}
|
|
37456
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37568
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: YW, isDragging: XW, over: ZW, setActivatorNodeRef: QW, transform: $W } = useDraggable({
|
|
37457
37569
|
id: f,
|
|
37458
37570
|
data: M,
|
|
37459
37571
|
attributes: {
|
|
@@ -37461,60 +37573,60 @@ ${c}
|
|
|
37461
37573
|
...c
|
|
37462
37574
|
},
|
|
37463
37575
|
disabled: O.draggable
|
|
37464
|
-
}),
|
|
37576
|
+
}), eG = useCombinedRefs(B, Z), tG = !!H, nG = tG && !b && isValidIndex(v) && isValidIndex(w), rG = !T && XW, iG = nG ? (rG && nG ? $W : null) ?? (p ?? E)({
|
|
37465
37577
|
rects: S,
|
|
37466
37578
|
activeNodeRect: G,
|
|
37467
37579
|
activeIndex: v,
|
|
37468
37580
|
overIndex: w,
|
|
37469
37581
|
index: j
|
|
37470
|
-
}) : null,
|
|
37582
|
+
}) : null, aG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37471
37583
|
id: f,
|
|
37472
37584
|
items: g,
|
|
37473
37585
|
activeIndex: v,
|
|
37474
37586
|
overIndex: w
|
|
37475
|
-
}) : j,
|
|
37476
|
-
activeId:
|
|
37587
|
+
}) : j, oG = H == null ? void 0 : H.id, sG = (0, import_react.useRef)({
|
|
37588
|
+
activeId: oG,
|
|
37477
37589
|
items: g,
|
|
37478
|
-
newIndex:
|
|
37590
|
+
newIndex: aG,
|
|
37479
37591
|
containerId: _
|
|
37480
|
-
}),
|
|
37592
|
+
}), cG = g !== sG.current.items, lG = r({
|
|
37481
37593
|
active: H,
|
|
37482
37594
|
containerId: _,
|
|
37483
|
-
isDragging:
|
|
37484
|
-
isSorting:
|
|
37595
|
+
isDragging: XW,
|
|
37596
|
+
isSorting: tG,
|
|
37485
37597
|
id: f,
|
|
37486
37598
|
index: j,
|
|
37487
37599
|
items: g,
|
|
37488
|
-
newIndex:
|
|
37489
|
-
previousItems:
|
|
37490
|
-
previousContainerId:
|
|
37600
|
+
newIndex: sG.current.newIndex,
|
|
37601
|
+
previousItems: sG.current.items,
|
|
37602
|
+
previousContainerId: sG.current.containerId,
|
|
37491
37603
|
transition: h,
|
|
37492
|
-
wasDragging:
|
|
37493
|
-
}),
|
|
37494
|
-
disabled: !
|
|
37604
|
+
wasDragging: sG.current.activeId != null
|
|
37605
|
+
}), uG = useDerivedTransform({
|
|
37606
|
+
disabled: !lG,
|
|
37495
37607
|
index: j,
|
|
37496
37608
|
node: R,
|
|
37497
37609
|
rect: L
|
|
37498
37610
|
});
|
|
37499
37611
|
return (0, import_react.useEffect)(() => {
|
|
37500
|
-
|
|
37612
|
+
tG && sG.current.newIndex !== aG && (sG.current.newIndex = aG), _ !== sG.current.containerId && (sG.current.containerId = _), g !== sG.current.items && (sG.current.items = g);
|
|
37501
37613
|
}, [
|
|
37502
|
-
|
|
37503
|
-
|
|
37614
|
+
tG,
|
|
37615
|
+
aG,
|
|
37504
37616
|
_,
|
|
37505
37617
|
g
|
|
37506
37618
|
]), (0, import_react.useEffect)(() => {
|
|
37507
|
-
if (
|
|
37508
|
-
if (
|
|
37509
|
-
|
|
37619
|
+
if (oG === sG.current.activeId) return;
|
|
37620
|
+
if (oG != null && sG.current.activeId == null) {
|
|
37621
|
+
sG.current.activeId = oG;
|
|
37510
37622
|
return;
|
|
37511
37623
|
}
|
|
37512
37624
|
let e2 = setTimeout(() => {
|
|
37513
|
-
|
|
37625
|
+
sG.current.activeId = oG;
|
|
37514
37626
|
}, 50);
|
|
37515
37627
|
return () => clearTimeout(e2);
|
|
37516
37628
|
}, [
|
|
37517
|
-
|
|
37629
|
+
oG
|
|
37518
37630
|
]), {
|
|
37519
37631
|
active: H,
|
|
37520
37632
|
activeIndex: v,
|
|
@@ -37522,25 +37634,25 @@ ${c}
|
|
|
37522
37634
|
data: M,
|
|
37523
37635
|
rect: L,
|
|
37524
37636
|
index: j,
|
|
37525
|
-
newIndex:
|
|
37637
|
+
newIndex: aG,
|
|
37526
37638
|
items: g,
|
|
37527
37639
|
isOver: z,
|
|
37528
|
-
isSorting:
|
|
37529
|
-
isDragging:
|
|
37530
|
-
listeners:
|
|
37640
|
+
isSorting: tG,
|
|
37641
|
+
isDragging: XW,
|
|
37642
|
+
listeners: YW,
|
|
37531
37643
|
node: R,
|
|
37532
37644
|
overIndex: w,
|
|
37533
|
-
over:
|
|
37534
|
-
setNodeRef:
|
|
37535
|
-
setActivatorNodeRef:
|
|
37645
|
+
over: ZW,
|
|
37646
|
+
setNodeRef: eG,
|
|
37647
|
+
setActivatorNodeRef: QW,
|
|
37536
37648
|
setDroppableNodeRef: B,
|
|
37537
37649
|
setDraggableNodeRef: Z,
|
|
37538
|
-
transform:
|
|
37539
|
-
transition:
|
|
37650
|
+
transform: uG ?? iG,
|
|
37651
|
+
transition: dG()
|
|
37540
37652
|
};
|
|
37541
|
-
function
|
|
37542
|
-
if (
|
|
37543
|
-
if (!(
|
|
37653
|
+
function dG() {
|
|
37654
|
+
if (uG || cG && sG.current.newIndex === j) return disabledTransition;
|
|
37655
|
+
if (!(rG && !isKeyboardEvent(W) || !h) && (tG || lG)) return CSS$1.Transition.toString({
|
|
37544
37656
|
...h,
|
|
37545
37657
|
property: transitionProperty
|
|
37546
37658
|
});
|
|
@@ -37842,13 +37954,13 @@ ${c}
|
|
|
37842
37954
|
}), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37843
37955
|
let Z = q;
|
|
37844
37956
|
if (!v && !g) return Z;
|
|
37845
|
-
let
|
|
37846
|
-
r[46] === Z ?
|
|
37957
|
+
let YW;
|
|
37958
|
+
r[46] === Z ? YW = r[47] : (YW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37847
37959
|
asChild: true,
|
|
37848
37960
|
children: Z
|
|
37849
|
-
}), r[46] = Z, r[47] =
|
|
37850
|
-
let
|
|
37851
|
-
r[48] === v ?
|
|
37961
|
+
}), r[46] = Z, r[47] = YW);
|
|
37962
|
+
let XW;
|
|
37963
|
+
r[48] === v ? XW = r[49] : (XW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37852
37964
|
onSelect: v,
|
|
37853
37965
|
children: [
|
|
37854
37966
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37856,11 +37968,11 @@ ${c}
|
|
|
37856
37968
|
}),
|
|
37857
37969
|
"Add cell"
|
|
37858
37970
|
]
|
|
37859
|
-
}), r[48] = v, r[49] =
|
|
37860
|
-
let
|
|
37861
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37862
|
-
let
|
|
37863
|
-
r[51] === g ?
|
|
37971
|
+
}), r[48] = v, r[49] = XW);
|
|
37972
|
+
let ZW;
|
|
37973
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = ZW) : ZW = r[50];
|
|
37974
|
+
let QW;
|
|
37975
|
+
r[51] === g ? QW = r[52] : (QW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37864
37976
|
variant: "danger",
|
|
37865
37977
|
onSelect: g,
|
|
37866
37978
|
children: [
|
|
@@ -37869,22 +37981,22 @@ ${c}
|
|
|
37869
37981
|
}),
|
|
37870
37982
|
"Delete cell"
|
|
37871
37983
|
]
|
|
37872
|
-
}), r[51] = g, r[52] =
|
|
37873
|
-
let
|
|
37874
|
-
r[53] !==
|
|
37984
|
+
}), r[51] = g, r[52] = QW);
|
|
37985
|
+
let $W;
|
|
37986
|
+
r[53] !== XW || r[54] !== QW ? ($W = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37875
37987
|
children: [
|
|
37876
|
-
|
|
37877
|
-
|
|
37878
|
-
|
|
37988
|
+
XW,
|
|
37989
|
+
ZW,
|
|
37990
|
+
QW
|
|
37879
37991
|
]
|
|
37880
|
-
}), r[53] =
|
|
37881
|
-
let
|
|
37882
|
-
return r[56] !==
|
|
37992
|
+
}), r[53] = XW, r[54] = QW, r[55] = $W) : $W = r[55];
|
|
37993
|
+
let eG;
|
|
37994
|
+
return r[56] !== YW || r[57] !== $W ? (eG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37883
37995
|
children: [
|
|
37884
|
-
|
|
37885
|
-
|
|
37996
|
+
YW,
|
|
37997
|
+
$W
|
|
37886
37998
|
]
|
|
37887
|
-
}), r[56] =
|
|
37999
|
+
}), r[56] = YW, r[57] = $W, r[58] = eG) : eG = r[58], eG;
|
|
37888
38000
|
}, InsertCellLine = (e) => {
|
|
37889
38001
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
37890
38002
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -37938,10 +38050,10 @@ ${c}
|
|
|
37938
38050
|
...B,
|
|
37939
38051
|
...m
|
|
37940
38052
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37941
|
-
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",
|
|
37942
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
37943
|
-
let
|
|
37944
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38053
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", YW = T && "opacity-95 shadow-lg", XW;
|
|
38054
|
+
r[25] !== l || r[26] !== Z || r[27] !== YW || r[28] !== q ? (XW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, YW, l), r[25] = l, r[26] = Z, r[27] = YW, r[28] = q, r[29] = XW) : XW = r[29];
|
|
38055
|
+
let ZW;
|
|
38056
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (ZW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37945
38057
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37946
38058
|
style: {
|
|
37947
38059
|
transform: `scale(${I})`,
|
|
@@ -37957,14 +38069,14 @@ ${c}
|
|
|
37957
38069
|
output: c.output,
|
|
37958
38070
|
stale: outputIsStale(c, false)
|
|
37959
38071
|
})
|
|
37960
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
37961
|
-
let
|
|
37962
|
-
r[37] === z ?
|
|
38072
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = ZW) : ZW = r[36];
|
|
38073
|
+
let QW;
|
|
38074
|
+
r[37] === z ? QW = r[38] : (QW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37963
38075
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37964
38076
|
"aria-hidden": true
|
|
37965
|
-
}), r[37] = z, r[38] =
|
|
37966
|
-
let
|
|
37967
|
-
r[39] !== z || r[40] !== R ? (
|
|
38077
|
+
}), r[37] = z, r[38] = QW);
|
|
38078
|
+
let $W;
|
|
38079
|
+
r[39] !== z || r[40] !== R ? ($W = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37968
38080
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37969
38081
|
className: "text-xs opacity-80",
|
|
37970
38082
|
children: R.description
|
|
@@ -37976,19 +38088,19 @@ ${c}
|
|
|
37976
38088
|
className: "h-3.5 w-3.5"
|
|
37977
38089
|
})
|
|
37978
38090
|
})
|
|
37979
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37980
|
-
let
|
|
37981
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38091
|
+
}), r[39] = z, r[40] = R, r[41] = $W) : $W = r[41];
|
|
38092
|
+
let eG;
|
|
38093
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== XW || r[46] !== ZW || r[47] !== QW || r[48] !== $W ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
37982
38094
|
ref: f,
|
|
37983
|
-
className:
|
|
38095
|
+
className: XW,
|
|
37984
38096
|
style: W,
|
|
37985
38097
|
...d,
|
|
37986
38098
|
children: [
|
|
37987
|
-
|
|
37988
|
-
|
|
37989
|
-
|
|
38099
|
+
ZW,
|
|
38100
|
+
QW,
|
|
38101
|
+
$W
|
|
37990
38102
|
]
|
|
37991
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38103
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = XW, r[46] = ZW, r[47] = QW, r[48] = $W, r[49] = eG) : eG = r[49], eG;
|
|
37992
38104
|
}, MiniCodePreview = (e) => {
|
|
37993
38105
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37994
38106
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38028,7 +38140,7 @@ ${c}
|
|
|
38028
38140
|
function _temp2$2(e) {
|
|
38029
38141
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38030
38142
|
}
|
|
38031
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38143
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-qjUSFCwF.js"));
|
|
38032
38144
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38033
38145
|
var _a5;
|
|
38034
38146
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -38413,7 +38525,7 @@ ${c}
|
|
|
38413
38525
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38414
38526
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38415
38527
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38416
|
-
let H, W, G, q, Z,
|
|
38528
|
+
let H, W, G, q, Z, YW, XW, ZW, QW, $W;
|
|
38417
38529
|
if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
|
|
38418
38530
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38419
38531
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38459,11 +38571,11 @@ ${c}
|
|
|
38459
38571
|
})
|
|
38460
38572
|
})
|
|
38461
38573
|
]
|
|
38462
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c,
|
|
38463
|
-
let
|
|
38464
|
-
r[40] !== M || r[41] !==
|
|
38574
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c, YW = R, XW = 0;
|
|
38575
|
+
let eG2 = y && "marimo-output-stale", tG2 = L ? "p-5" : "p-3";
|
|
38576
|
+
r[40] !== M || r[41] !== eG2 || r[42] !== tG2 ? (ZW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", eG2, tG2, M), r[40] = M, r[41] = eG2, r[42] = tG2, r[43] = ZW) : ZW = r[43], r[44] === d ? QW = r[45] : (QW = d ? {
|
|
38465
38577
|
maxHeight: "none"
|
|
38466
|
-
} : void 0, r[44] = d, r[45] =
|
|
38578
|
+
} : void 0, r[44] = d, r[45] = QW), $W = e2.map((e3, r2) => {
|
|
38467
38579
|
if (e3.channel === "pdb") return null;
|
|
38468
38580
|
if (e3.channel === "stdin") {
|
|
38469
38581
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38492,36 +38604,36 @@ ${c}
|
|
|
38492
38604
|
wrapText: l
|
|
38493
38605
|
})
|
|
38494
38606
|
}, r2);
|
|
38495
|
-
}), 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] =
|
|
38496
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38497
|
-
let
|
|
38498
|
-
r[46] !== w || r[47] !== S ? (
|
|
38607
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = YW, r[26] = XW, r[27] = ZW, r[28] = QW, r[29] = $W;
|
|
38608
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], YW = r[25], XW = r[26], ZW = r[27], QW = r[28], $W = r[29];
|
|
38609
|
+
let eG;
|
|
38610
|
+
r[46] !== w || r[47] !== S ? (eG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38499
38611
|
value: S,
|
|
38500
38612
|
cellId: w,
|
|
38501
38613
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
38502
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38503
|
-
let
|
|
38504
|
-
r[49] !==
|
|
38614
|
+
}), r[46] = w, r[47] = S, r[48] = eG) : eG = r[48];
|
|
38615
|
+
let tG;
|
|
38616
|
+
r[49] !== eG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== YW || r[54] !== XW || r[55] !== ZW || r[56] !== QW || r[57] !== $W ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38505
38617
|
title: G,
|
|
38506
38618
|
"data-testid": q,
|
|
38507
38619
|
ref: Z,
|
|
38508
|
-
...
|
|
38509
|
-
tabIndex:
|
|
38510
|
-
className:
|
|
38511
|
-
style:
|
|
38620
|
+
...YW,
|
|
38621
|
+
tabIndex: XW,
|
|
38622
|
+
className: ZW,
|
|
38623
|
+
style: QW,
|
|
38512
38624
|
children: [
|
|
38513
|
-
|
|
38514
|
-
|
|
38625
|
+
$W,
|
|
38626
|
+
eG
|
|
38515
38627
|
]
|
|
38516
|
-
}), r[49] =
|
|
38517
|
-
let
|
|
38518
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38628
|
+
}), r[49] = eG, r[50] = G, r[51] = q, r[52] = Z, r[53] = YW, r[54] = XW, r[55] = ZW, r[56] = QW, r[57] = $W, r[58] = tG) : tG = r[58];
|
|
38629
|
+
let nG;
|
|
38630
|
+
return r[59] !== H || r[60] !== W || r[61] !== tG ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38519
38631
|
className: H,
|
|
38520
38632
|
children: [
|
|
38521
38633
|
W,
|
|
38522
|
-
|
|
38634
|
+
tG
|
|
38523
38635
|
]
|
|
38524
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38636
|
+
}), r[59] = H, r[60] = W, r[61] = tG, r[62] = nG) : nG = r[62], nG;
|
|
38525
38637
|
}, StdInput = (e) => {
|
|
38526
38638
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
38527
38639
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -39534,8 +39646,8 @@ ${c}
|
|
|
39534
39646
|
r[0] === c ? m = r[1] : (m = (e2) => e2.cellRuntime[c], r[0] = c, r[1] = m);
|
|
39535
39647
|
let h = m, g;
|
|
39536
39648
|
r[2] === h ? g = r[3] : (g = selectAtom(notebookAtom, h), r[2] = h, r[3] = g);
|
|
39537
|
-
let _ = useAtomValue(g);
|
|
39538
|
-
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !(_ == null ? void 0 : _.output)) {
|
|
39649
|
+
let _ = useAtomValue(g), v = useAtomValue(islandsHydratedAtom);
|
|
39650
|
+
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !v || !(_ == null ? void 0 : _.output)) {
|
|
39539
39651
|
let e2;
|
|
39540
39652
|
return r[4] === d ? e2 = r[5] : (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
39541
39653
|
ref: p,
|
|
@@ -39549,30 +39661,30 @@ ${c}
|
|
|
39549
39661
|
ref: p
|
|
39550
39662
|
}), r[6] = e2) : e2 = r[6], e2;
|
|
39551
39663
|
}
|
|
39552
|
-
let v;
|
|
39553
|
-
r[7] === _.output ? v = r[8] : (v = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39554
|
-
message: _.output
|
|
39555
|
-
}), r[7] = _.output, r[8] = v);
|
|
39556
39664
|
let y;
|
|
39557
|
-
r[
|
|
39558
|
-
|
|
39559
|
-
}), r[
|
|
39665
|
+
r[7] === _.output ? y = r[8] : (y = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39666
|
+
message: _.output
|
|
39667
|
+
}), r[7] = _.output, r[8] = y);
|
|
39560
39668
|
let b;
|
|
39561
|
-
r[
|
|
39669
|
+
r[9] === _ ? b = r[10] : (b = (0, import_jsx_runtime.jsx)(RunningIndicator, {
|
|
39670
|
+
state: _
|
|
39671
|
+
}), r[9] = _, r[10] = b);
|
|
39672
|
+
let S;
|
|
39673
|
+
r[11] !== c || r[12] !== l || r[13] !== f ? (S = (0, import_jsx_runtime.jsx)(IslandControls, {
|
|
39562
39674
|
cellId: c,
|
|
39563
39675
|
codeCallback: l,
|
|
39564
39676
|
visible: f
|
|
39565
|
-
}), r[11] = c, r[12] = l, r[13] = f, r[14] =
|
|
39566
|
-
let
|
|
39567
|
-
return r[15] !==
|
|
39677
|
+
}), r[11] = c, r[12] = l, r[13] = f, r[14] = S) : S = r[14];
|
|
39678
|
+
let w;
|
|
39679
|
+
return r[15] !== y || r[16] !== b || r[17] !== S ? (w = (0, import_jsx_runtime.jsxs)("div", {
|
|
39568
39680
|
ref: p,
|
|
39569
39681
|
className: "relative min-h-6",
|
|
39570
39682
|
children: [
|
|
39571
|
-
v,
|
|
39572
39683
|
y,
|
|
39573
|
-
b
|
|
39684
|
+
b,
|
|
39685
|
+
S
|
|
39574
39686
|
]
|
|
39575
|
-
}), r[15] =
|
|
39687
|
+
}), r[15] = y, r[16] = b, r[17] = S, r[18] = w) : w = r[18], w;
|
|
39576
39688
|
};
|
|
39577
39689
|
function useSyncStatusToIsland(e, r) {
|
|
39578
39690
|
let c = (0, import_compiler_runtime.c)(4), l, u;
|
|
@@ -39726,9 +39838,7 @@ ${c}
|
|
|
39726
39838
|
let e = this.root;
|
|
39727
39839
|
this.root = void 0, e && queueMicrotask(() => e.unmount());
|
|
39728
39840
|
}
|
|
39729
|
-
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2);
|
|
39730
|
-
const islandsInitializedAtom = atom(false), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
39731
|
-
var didToast = false, toastElement;
|
|
39841
|
+
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2), didToast = false, toastElement;
|
|
39732
39842
|
function toastIslandsLoading() {
|
|
39733
39843
|
didToast || (didToast = true, toastElement = document.createElement("div"), toastElement.classList.add("marimo-islands-loading-toast"), toastElement.textContent = "\u26A1 reactivity initializing...", toastElement.style.position = "fixed", toastElement.style.top = "0.5rem", toastElement.style.left = "50%", toastElement.style.transform = "translateX(-50%)", toastElement.style.zIndex = "1000", toastElement.style.backgroundColor = "#0f172a", toastElement.style.color = "#f8fafc", toastElement.style.padding = "0.25rem 0.5rem", toastElement.style.borderRadius = "0.5rem", toastElement.style.fontSize = "0.875rem", document.body.append(toastElement));
|
|
39734
39844
|
}
|
|
@@ -39737,7 +39847,7 @@ ${c}
|
|
|
39737
39847
|
}
|
|
39738
39848
|
async function initializeIslands(e) {
|
|
39739
39849
|
let r = e.store || store, c = e.root || document, l = e.bridge;
|
|
39740
|
-
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), e.autoInitializePlugins !== false && initializePlugins();
|
|
39850
|
+
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), r.set(islandsPendingInitialRunsAtom, null), e.autoInitializePlugins !== false && initializePlugins();
|
|
39741
39851
|
let u = Array.from(c.querySelectorAll(ISLAND_TAG_NAMES.ISLAND));
|
|
39742
39852
|
if (u.length === 0) {
|
|
39743
39853
|
Logger.log("No islands found, skipping initialization");
|
|
@@ -39757,19 +39867,19 @@ ${c}
|
|
|
39757
39867
|
dismissIslandsLoadingToast();
|
|
39758
39868
|
for (let e3 of l2) e3.style.removeProperty("opacity");
|
|
39759
39869
|
}
|
|
39760
|
-
}), l.consumeMessages((e2) => {
|
|
39761
|
-
handleMessage(e2, d);
|
|
39870
|
+
}), l.consumeMessages(({ message: e2, sessionGeneration: c2 }) => {
|
|
39871
|
+
handleMessage(e2, d, r, c2);
|
|
39762
39872
|
}), document.addEventListener(MarimoValueInputEvent.TYPE, () => {
|
|
39763
39873
|
r.set(userTriedToInteractWithIslandsAtom, true);
|
|
39764
39874
|
}, {
|
|
39765
39875
|
once: true
|
|
39766
39876
|
}), RuntimeState.INSTANCE.start(l.sendComponentValues);
|
|
39767
39877
|
}
|
|
39768
|
-
function handleMessage(e, r) {
|
|
39878
|
+
function handleMessage(e, r, c, l) {
|
|
39769
39879
|
var _a5;
|
|
39770
39880
|
try {
|
|
39771
|
-
let
|
|
39772
|
-
switch (Logger.debug("Islands received message:",
|
|
39881
|
+
let u = jsonParseWithSpecialChar(e);
|
|
39882
|
+
switch (Logger.debug("Islands received message:", u.op), u.op) {
|
|
39773
39883
|
case "banner":
|
|
39774
39884
|
case "missing-package-alert":
|
|
39775
39885
|
case "installing-package-alert":
|
|
@@ -39791,7 +39901,6 @@ ${c}
|
|
|
39791
39901
|
case "storage-download-ready":
|
|
39792
39902
|
case "secret-keys-result":
|
|
39793
39903
|
case "startup-logs":
|
|
39794
|
-
case "completed-run":
|
|
39795
39904
|
case "interrupted":
|
|
39796
39905
|
case "reconnected":
|
|
39797
39906
|
case "cache-cleared":
|
|
@@ -39799,8 +39908,15 @@ ${c}
|
|
|
39799
39908
|
case "kernel-startup-error":
|
|
39800
39909
|
case "notebook-document-transaction":
|
|
39801
39910
|
return;
|
|
39911
|
+
case "completed-run":
|
|
39912
|
+
c.set(islandsPendingInitialRunsAtom, (e2) => {
|
|
39913
|
+
if (!(e2 == null ? void 0 : e2.has(l))) return e2;
|
|
39914
|
+
let r2 = new Set(e2);
|
|
39915
|
+
return r2.delete(l), r2;
|
|
39916
|
+
});
|
|
39917
|
+
return;
|
|
39802
39918
|
case "kernel-ready":
|
|
39803
|
-
handleKernelReady(
|
|
39919
|
+
handleKernelReady(u.data, {
|
|
39804
39920
|
autoInstantiate: true,
|
|
39805
39921
|
setCells: r.setCells,
|
|
39806
39922
|
setLayoutData: Functions.NOOP,
|
|
@@ -39811,45 +39927,45 @@ ${c}
|
|
|
39811
39927
|
}), ((_a5 = window.customElements) == null ? void 0 : _a5.get(ISLAND_TAG_NAMES.ISLAND)) || defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39812
39928
|
return;
|
|
39813
39929
|
case "send-ui-element-message":
|
|
39814
|
-
UI_ELEMENT_REGISTRY.broadcastMessage(
|
|
39930
|
+
UI_ELEMENT_REGISTRY.broadcastMessage(u.data.ui_element, u.data.message, safeExtractSetUIElementMessageBuffers(u.data));
|
|
39815
39931
|
return;
|
|
39816
39932
|
case "remove-ui-elements":
|
|
39817
|
-
handleRemoveUIElements(
|
|
39933
|
+
handleRemoveUIElements(u.data);
|
|
39818
39934
|
return;
|
|
39819
39935
|
case "function-call-result":
|
|
39820
|
-
FUNCTIONS_REGISTRY.resolve(
|
|
39936
|
+
FUNCTIONS_REGISTRY.resolve(u.data.function_call_id, u.data);
|
|
39821
39937
|
return;
|
|
39822
39938
|
case "cell-op":
|
|
39823
|
-
handleCellNotificationeration(
|
|
39939
|
+
handleCellNotificationeration(u.data, r.handleCellMessage);
|
|
39824
39940
|
return;
|
|
39825
39941
|
case "alert":
|
|
39826
39942
|
toast({
|
|
39827
|
-
title:
|
|
39943
|
+
title: u.data.title,
|
|
39828
39944
|
description: renderHTML({
|
|
39829
|
-
html:
|
|
39945
|
+
html: u.data.description
|
|
39830
39946
|
}),
|
|
39831
|
-
variant:
|
|
39947
|
+
variant: u.data.variant
|
|
39832
39948
|
});
|
|
39833
39949
|
return;
|
|
39834
39950
|
case "query-params-append":
|
|
39835
|
-
queryParamHandlers.append(
|
|
39951
|
+
queryParamHandlers.append(u.data);
|
|
39836
39952
|
return;
|
|
39837
39953
|
case "query-params-set":
|
|
39838
|
-
queryParamHandlers.set(
|
|
39954
|
+
queryParamHandlers.set(u.data);
|
|
39839
39955
|
return;
|
|
39840
39956
|
case "query-params-delete":
|
|
39841
|
-
queryParamHandlers.delete(
|
|
39957
|
+
queryParamHandlers.delete(u.data);
|
|
39842
39958
|
return;
|
|
39843
39959
|
case "query-params-clear":
|
|
39844
39960
|
queryParamHandlers.clear();
|
|
39845
39961
|
return;
|
|
39846
39962
|
case "model-lifecycle":
|
|
39847
|
-
handleWidgetMessage(WIDGET_REGISTRY,
|
|
39963
|
+
handleWidgetMessage(WIDGET_REGISTRY, u.data);
|
|
39848
39964
|
return;
|
|
39849
39965
|
case "consumer-capabilities":
|
|
39850
39966
|
return;
|
|
39851
39967
|
default:
|
|
39852
|
-
logNever(
|
|
39968
|
+
logNever(u);
|
|
39853
39969
|
return;
|
|
39854
39970
|
}
|
|
39855
39971
|
} catch (e2) {
|
|
@@ -40081,7 +40197,7 @@ ${c}
|
|
|
40081
40197
|
});
|
|
40082
40198
|
}
|
|
40083
40199
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
40084
|
-
var worker_default = "/assets/worker-
|
|
40200
|
+
var worker_default = "/assets/worker-CDEKsBgX.js", DefaultWorkerFactory = class {
|
|
40085
40201
|
constructor(e = {}) {
|
|
40086
40202
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
40087
40203
|
}
|
|
@@ -40210,7 +40326,7 @@ ${c}
|
|
|
40210
40326
|
this.store.set(islandsInitializedAtom, true), this.initialized.resolve();
|
|
40211
40327
|
}), this.rpc.addMessageListener("initializedError", ({ error: e }) => {
|
|
40212
40328
|
Logger.error("Islands initialization error:", e), this.store.set(islandsInitializedAtom, e), this.initialized.reject(Error(e));
|
|
40213
|
-
}), this.rpc.addMessageListener("kernelMessage", (
|
|
40329
|
+
}), this.rpc.addMessageListener("kernelMessage", (e) => {
|
|
40214
40330
|
var _a5;
|
|
40215
40331
|
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40216
40332
|
});
|
|
@@ -40222,28 +40338,34 @@ ${c}
|
|
|
40222
40338
|
}
|
|
40223
40339
|
async startApps() {
|
|
40224
40340
|
var _a5, _b3, _c4, _d4;
|
|
40225
|
-
let e = parseMarimoIslandApps(this.root
|
|
40341
|
+
let e = parseMarimoIslandApps(this.root, {
|
|
40342
|
+
materialize: false
|
|
40343
|
+
}), r = e.length === 1;
|
|
40226
40344
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40227
|
-
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
40228
|
-
|
|
40229
|
-
|
|
40230
|
-
|
|
40231
|
-
|
|
40345
|
+
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode, l = r ? e[0] : void 0, u = l ? c || createMarimoFile(l) : void 0;
|
|
40346
|
+
if (l && ((_c4 = this.session) == null ? void 0 : _c4.appId) === l.id && this.session.code === u) {
|
|
40347
|
+
parseMarimoIslandApps(this.root);
|
|
40348
|
+
return;
|
|
40349
|
+
}
|
|
40350
|
+
e.length > 0 && this.store.set(islandsPendingInitialRunsAtom, new Set(e.map((e2, r2) => this.nextSessionGeneration + r2 + 1))), parseMarimoIslandApps(this.root);
|
|
40351
|
+
for (let c2 of e) {
|
|
40352
|
+
let e2 = u || createMarimoFile(c2);
|
|
40353
|
+
Logger.debug(`App ${c2.id} marimo file:
|
|
40232
40354
|
`, e2);
|
|
40233
|
-
let
|
|
40355
|
+
let l2 = {
|
|
40234
40356
|
code: e2,
|
|
40235
|
-
appId:
|
|
40357
|
+
appId: c2.id,
|
|
40236
40358
|
sessionGeneration: ++this.nextSessionGeneration
|
|
40237
40359
|
}, d = this.session, f = r && d !== void 0;
|
|
40238
40360
|
f && this.store.set(notebookAtom, initialNotebookState()), (r || !d) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40239
|
-
...
|
|
40361
|
+
...l2,
|
|
40240
40362
|
code: r ? e2 : void 0
|
|
40241
40363
|
});
|
|
40242
|
-
let p = f ? this.rpc.proxy.request.replaceSession(
|
|
40364
|
+
let p = f ? this.rpc.proxy.request.replaceSession(l2) : this.startSession(l2);
|
|
40243
40365
|
try {
|
|
40244
40366
|
await p, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40245
40367
|
} catch (e3) {
|
|
40246
|
-
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) ===
|
|
40368
|
+
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === l2.sessionGeneration && (this.session = d), Logger.error(`Failed to start session for app ${c2.id}:`, e3), r) throw e3;
|
|
40247
40369
|
}
|
|
40248
40370
|
}
|
|
40249
40371
|
}
|
|
@@ -40253,7 +40375,7 @@ ${c}
|
|
|
40253
40375
|
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40254
40376
|
appId: r.appId,
|
|
40255
40377
|
sessionGeneration: r.sessionGeneration
|
|
40256
|
-
}), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40378
|
+
}), this.store.set(islandsPendingInitialRunsAtom, null), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40257
40379
|
});
|
|
40258
40380
|
}
|
|
40259
40381
|
enqueueAppTransition(e) {
|