@marimo-team/islands 0.23.15-dev62 → 0.23.15-dev64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as 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-YsJOxF8J.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
|
+
}), qW = U(), JW = U(), YW = C(false), XW = C(0), ZW = C(true), QW = C(false), $W = C(false);
|
|
7512
|
+
Y(x(b, $(XW), P(([e2, r2]) => !!r2)), () => {
|
|
7513
|
+
D(ZW, false);
|
|
7514
|
+
}), Y(x(ut(b, ZW, B, z, XW, QW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7515
|
+
D(QW, 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(ZW, 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(JW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(JW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7524
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(YW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7525
|
+
D(YW, 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
|
+
}))), qW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(YW), V(ZW), V(XW)), 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 eG = C(false);
|
|
7561
|
+
F(x(h, $(eG), k(([e2, r2]) => r2 || e2 !== 0)), eG);
|
|
7562
|
+
let tG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(eG), 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())), nG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), rG = bt(x(V(R), $(YW), 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(rG, 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 iG = 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: JW,
|
|
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: $W,
|
|
7610
|
+
initialTopMostItemIndex: XW,
|
|
7611
|
+
totalListHeight: iG,
|
|
7506
7612
|
...v,
|
|
7507
|
-
endReached:
|
|
7613
|
+
endReached: tG,
|
|
7508
7614
|
propsReady: S,
|
|
7509
|
-
rangeChanged:
|
|
7510
|
-
startReached:
|
|
7511
|
-
stateChanged:
|
|
7512
|
-
stateRestoreInProgress:
|
|
7615
|
+
rangeChanged: rG,
|
|
7616
|
+
startReached: nG,
|
|
7617
|
+
stateChanged: qW,
|
|
7618
|
+
stateRestoreInProgress: YW,
|
|
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, qW;
|
|
7791
7897
|
if (r[13] !== G.bulkActions) {
|
|
7792
|
-
if (
|
|
7898
|
+
if (qW = G.bulkActions.map(_temp$27), qW.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], qW.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] = qW;
|
|
7905
|
+
} else qW = r[14];
|
|
7906
|
+
let JW;
|
|
7907
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (JW = (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] = JW) : JW = r[18];
|
|
7910
|
+
let YW = JW, XW;
|
|
7911
|
+
r[19] !== qW || r[20] !== G || r[21] !== YW || r[22] !== w || r[23] !== B || r[24] !== H ? (XW = () => {
|
|
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 && qW,
|
|
7924
|
+
YW(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 = YW(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
|
+
qW,
|
|
7844
7950
|
e2
|
|
7845
7951
|
]
|
|
7846
7952
|
});
|
|
7847
|
-
}, r[19] =
|
|
7848
|
-
let
|
|
7849
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7953
|
+
}, r[19] = qW, r[20] = G, r[21] = YW, r[22] = w, r[23] = B, r[24] = H, r[25] = XW) : XW = r[25];
|
|
7954
|
+
let ZW = XW, QW;
|
|
7955
|
+
r[26] !== G.labelOf || r[27] !== I ? (QW = (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] = QW) : QW = r[28];
|
|
7967
|
+
let $W = QW, eG = e["data-testid"], tG;
|
|
7968
|
+
r[29] === G ? tG = r[30] : (tG = (e2) => G.labelOf(e2), r[29] = G, r[30] = tG);
|
|
7969
|
+
let nG = M ? $W : void 0, rG;
|
|
7970
|
+
r[31] !== b || r[32] !== R ? (rG = 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] = rG) : rG = r[33];
|
|
7973
|
+
let iG = G.searchQuery, aG = G.setSearchQuery, oG = G.open, sG = G.setOpen, cG;
|
|
7974
|
+
r[34] === z ? cG = r[35] : (cG = renderSlot(z), r[34] = z, r[35] = cG);
|
|
7975
|
+
let lG;
|
|
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] !== eG || r[44] !== tG || r[45] !== nG || r[46] !== rG || r[47] !== cG ? (lG = {
|
|
7871
7977
|
"data-slot": "select-root",
|
|
7872
|
-
"data-testid":
|
|
7873
|
-
displayValue:
|
|
7874
|
-
renderValue:
|
|
7978
|
+
"data-testid": eG,
|
|
7979
|
+
displayValue: tG,
|
|
7980
|
+
renderValue: nG,
|
|
7875
7981
|
placeholder: I,
|
|
7876
|
-
className:
|
|
7982
|
+
className: rG,
|
|
7877
7983
|
shouldFilter: false,
|
|
7878
|
-
search:
|
|
7879
|
-
onSearchChange:
|
|
7880
|
-
open:
|
|
7881
|
-
onOpenChange:
|
|
7882
|
-
emptyState:
|
|
7984
|
+
search: iG,
|
|
7985
|
+
onSearchChange: aG,
|
|
7986
|
+
open: oG,
|
|
7987
|
+
onOpenChange: sG,
|
|
7988
|
+
emptyState: cG,
|
|
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] = eG, r[44] = tG, r[45] = nG, r[46] = rG, r[47] = cG, r[48] = lG) : lG = r[48];
|
|
7992
|
+
let uG = lG, dG;
|
|
7993
|
+
return r[49] !== uG || r[50] !== Z || r[51] !== d || r[52] !== ZW || r[53] !== l ? (dG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7994
|
+
...uG,
|
|
7889
7995
|
multiple: true,
|
|
7890
7996
|
value: l,
|
|
7891
7997
|
onValueChange: Z,
|
|
7892
|
-
children:
|
|
7998
|
+
children: ZW()
|
|
7893
7999
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7894
|
-
...
|
|
8000
|
+
...uG,
|
|
7895
8001
|
multiple: false,
|
|
7896
8002
|
value: l,
|
|
7897
8003
|
onValueChange: Z,
|
|
7898
|
-
children:
|
|
7899
|
-
}), r[49] =
|
|
8004
|
+
children: ZW()
|
|
8005
|
+
}), r[49] = uG, r[50] = Z, r[51] = d, r[52] = ZW, r[53] = l, r[54] = dG) : dG = r[54], dG;
|
|
7900
8006
|
}
|
|
7901
8007
|
function _temp$27(e) {
|
|
7902
8008
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -10078,10 +10184,10 @@ let __tla = Promise.all([
|
|
|
10078
10184
|
}, H = () => {
|
|
10079
10185
|
for (let e2 of p.unMount) {
|
|
10080
10186
|
let r2 = get(l, e2);
|
|
10081
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10187
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && rG(e2);
|
|
10082
10188
|
}
|
|
10083
10189
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10084
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10190
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(QW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10085
10191
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10086
10192
|
[e2]: r2
|
|
10087
10193
|
} : r2
|
|
@@ -10098,13 +10204,13 @@ let __tla = Promise.all([
|
|
|
10098
10204
|
}
|
|
10099
10205
|
})));
|
|
10100
10206
|
}
|
|
10101
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10102
|
-
},
|
|
10207
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && ZW(e2);
|
|
10208
|
+
}, qW = (e2, r2, c2) => {
|
|
10103
10209
|
for (let u2 in r2) {
|
|
10104
10210
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10105
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10211
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? qW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10106
10212
|
}
|
|
10107
|
-
},
|
|
10213
|
+
}, JW = (e2, r2, m2 = {}) => {
|
|
10108
10214
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10109
10215
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10110
10216
|
name: e2,
|
|
@@ -10115,7 +10221,7 @@ let __tla = Promise.all([
|
|
|
10115
10221
|
name: e2,
|
|
10116
10222
|
dirtyFields: getDirtyFields(u, d),
|
|
10117
10223
|
isDirty: W(e2, y2)
|
|
10118
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10224
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? qW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10119
10225
|
...c
|
|
10120
10226
|
}), _.values.next({
|
|
10121
10227
|
name: f.mount ? e2 : void 0,
|
|
@@ -10123,7 +10229,7 @@ let __tla = Promise.all([
|
|
|
10123
10229
|
...d
|
|
10124
10230
|
}
|
|
10125
10231
|
});
|
|
10126
|
-
},
|
|
10232
|
+
}, YW = async (e2) => {
|
|
10127
10233
|
f.mount = true;
|
|
10128
10234
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10129
10235
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10157,11 +10263,11 @@ let __tla = Promise.all([
|
|
|
10157
10263
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10158
10264
|
h2
|
|
10159
10265
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10160
|
-
S2 && (E2._f.deps &&
|
|
10266
|
+
S2 && (E2._f.deps && ZW(E2._f.deps), L(h2, f2, u3, G2));
|
|
10161
10267
|
}
|
|
10162
|
-
},
|
|
10268
|
+
}, XW = (e2, r2) => {
|
|
10163
10269
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10164
|
-
},
|
|
10270
|
+
}, ZW = async (e2, u2 = {}) => {
|
|
10165
10271
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10166
10272
|
if (r.resolver) {
|
|
10167
10273
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10180,23 +10286,23 @@ let __tla = Promise.all([
|
|
|
10180
10286
|
isValid: d2
|
|
10181
10287
|
} : {},
|
|
10182
10288
|
errors: c.errors
|
|
10183
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10184
|
-
},
|
|
10289
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, XW, e2 ? m2 : p.mount), f2;
|
|
10290
|
+
}, QW = (e2) => {
|
|
10185
10291
|
let r2 = {
|
|
10186
10292
|
...f.mount ? d : u
|
|
10187
10293
|
};
|
|
10188
10294
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10189
|
-
},
|
|
10295
|
+
}, $W = (e2, r2) => ({
|
|
10190
10296
|
invalid: !!get((r2 || c).errors, e2),
|
|
10191
10297
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10192
10298
|
error: get((r2 || c).errors, e2),
|
|
10193
10299
|
isValidating: !!get(c.validatingFields, e2),
|
|
10194
10300
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10195
|
-
}),
|
|
10301
|
+
}), eG = (e2) => {
|
|
10196
10302
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10197
10303
|
errors: e2 ? c.errors : {}
|
|
10198
10304
|
});
|
|
10199
|
-
},
|
|
10305
|
+
}, tG = (e2, r2, u2) => {
|
|
10200
10306
|
let d2 = (get(l, e2, {
|
|
10201
10307
|
_f: {}
|
|
10202
10308
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10209,9 +10315,9 @@ let __tla = Promise.all([
|
|
|
10209
10315
|
errors: c.errors,
|
|
10210
10316
|
isValid: false
|
|
10211
10317
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10212
|
-
},
|
|
10318
|
+
}, nG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10213
10319
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10214
|
-
}) : G(e2, r2, true),
|
|
10320
|
+
}) : G(e2, r2, true), rG = (e2, f2 = {}) => {
|
|
10215
10321
|
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
10322
|
_.values.next({
|
|
10217
10323
|
values: {
|
|
@@ -10223,9 +10329,9 @@ let __tla = Promise.all([
|
|
|
10223
10329
|
isDirty: W()
|
|
10224
10330
|
} : {}
|
|
10225
10331
|
}), !f2.keepIsValid && w();
|
|
10226
|
-
},
|
|
10332
|
+
}, iG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10227
10333
|
(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
|
-
},
|
|
10334
|
+
}, aG = (e2, c2 = {}) => {
|
|
10229
10335
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10230
10336
|
return set(l, e2, {
|
|
10231
10337
|
...d2 || {},
|
|
@@ -10239,7 +10345,7 @@ let __tla = Promise.all([
|
|
|
10239
10345
|
mount: true,
|
|
10240
10346
|
...c2
|
|
10241
10347
|
}
|
|
10242
|
-
}), p.mount.add(e2), d2 ?
|
|
10348
|
+
}), p.mount.add(e2), d2 ? iG({
|
|
10243
10349
|
field: d2,
|
|
10244
10350
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10245
10351
|
name: e2
|
|
@@ -10256,11 +10362,11 @@ let __tla = Promise.all([
|
|
|
10256
10362
|
pattern: getRuleValue(c2.pattern)
|
|
10257
10363
|
} : {},
|
|
10258
10364
|
name: e2,
|
|
10259
|
-
onChange:
|
|
10260
|
-
onBlur:
|
|
10365
|
+
onChange: YW,
|
|
10366
|
+
onBlur: YW,
|
|
10261
10367
|
ref: (m3) => {
|
|
10262
10368
|
if (m3) {
|
|
10263
|
-
|
|
10369
|
+
aG(e2, c2), d2 = get(l, e2);
|
|
10264
10370
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10265
10371
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10266
10372
|
set(l, e2, {
|
|
@@ -10286,7 +10392,7 @@ let __tla = Promise.all([
|
|
|
10286
10392
|
} 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
10393
|
}
|
|
10288
10394
|
};
|
|
10289
|
-
},
|
|
10395
|
+
}, oG = () => r.shouldFocusError && iterateFieldsByAction(l, XW, p.mount), sG = (e2) => {
|
|
10290
10396
|
isBoolean(e2) && (_.state.next({
|
|
10291
10397
|
disabled: e2
|
|
10292
10398
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10295,7 +10401,7 @@ let __tla = Promise.all([
|
|
|
10295
10401
|
r3.disabled = u2._f.disabled || e2;
|
|
10296
10402
|
}));
|
|
10297
10403
|
}, 0, false));
|
|
10298
|
-
},
|
|
10404
|
+
}, cG = (e2, u2) => async (f2) => {
|
|
10299
10405
|
let m2;
|
|
10300
10406
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10301
10407
|
let h2 = cloneObject(d);
|
|
@@ -10317,7 +10423,7 @@ let __tla = Promise.all([
|
|
|
10317
10423
|
}
|
|
10318
10424
|
} else u2 && await u2({
|
|
10319
10425
|
...c.errors
|
|
10320
|
-
}, f2),
|
|
10426
|
+
}, f2), oG(), setTimeout(oG);
|
|
10321
10427
|
if (_.state.next({
|
|
10322
10428
|
isSubmitted: true,
|
|
10323
10429
|
isSubmitting: false,
|
|
@@ -10325,11 +10431,11 @@ let __tla = Promise.all([
|
|
|
10325
10431
|
submitCount: c.submitCount + 1,
|
|
10326
10432
|
errors: c.errors
|
|
10327
10433
|
}), m2) throw m2;
|
|
10328
|
-
},
|
|
10329
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10434
|
+
}, lG = (e2, r2 = {}) => {
|
|
10435
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? JW(e2, cloneObject(get(u, e2))) : (JW(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
10436
|
...c
|
|
10331
10437
|
}));
|
|
10332
|
-
},
|
|
10438
|
+
}, uG = (e2, m2 = {}) => {
|
|
10333
10439
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10334
10440
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10335
10441
|
if (m2.keepDirtyValues) {
|
|
@@ -10337,7 +10443,7 @@ let __tla = Promise.all([
|
|
|
10337
10443
|
...p.mount,
|
|
10338
10444
|
...Object.keys(getDirtyFields(u, d))
|
|
10339
10445
|
]);
|
|
10340
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10446
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : JW(r2, get(b2, r2));
|
|
10341
10447
|
} else {
|
|
10342
10448
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10343
10449
|
let r2 = get(l, e3);
|
|
@@ -10382,25 +10488,25 @@ let __tla = Promise.all([
|
|
|
10382
10488
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10383
10489
|
isSubmitting: false
|
|
10384
10490
|
});
|
|
10385
|
-
},
|
|
10491
|
+
}, dG = (e2, r2) => uG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10386
10492
|
return {
|
|
10387
10493
|
control: {
|
|
10388
|
-
register:
|
|
10389
|
-
unregister:
|
|
10390
|
-
getFieldState:
|
|
10391
|
-
handleSubmit:
|
|
10392
|
-
setError:
|
|
10494
|
+
register: aG,
|
|
10495
|
+
unregister: rG,
|
|
10496
|
+
getFieldState: $W,
|
|
10497
|
+
handleSubmit: cG,
|
|
10498
|
+
setError: tG,
|
|
10393
10499
|
_executeSchema: R,
|
|
10394
10500
|
_getWatch: G,
|
|
10395
10501
|
_getDirty: W,
|
|
10396
10502
|
_updateValid: w,
|
|
10397
10503
|
_removeUnmounted: H,
|
|
10398
10504
|
_updateFieldArray: E,
|
|
10399
|
-
_updateDisabledField:
|
|
10505
|
+
_updateDisabledField: iG,
|
|
10400
10506
|
_getFieldArray: q,
|
|
10401
|
-
_reset:
|
|
10507
|
+
_reset: uG,
|
|
10402
10508
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10403
|
-
|
|
10509
|
+
dG(e2, r.resetOptions), _.state.next({
|
|
10404
10510
|
isLoading: false
|
|
10405
10511
|
});
|
|
10406
10512
|
}),
|
|
@@ -10410,7 +10516,7 @@ let __tla = Promise.all([
|
|
|
10410
10516
|
...e2
|
|
10411
10517
|
};
|
|
10412
10518
|
},
|
|
10413
|
-
_disableForm:
|
|
10519
|
+
_disableForm: sG,
|
|
10414
10520
|
_subjects: _,
|
|
10415
10521
|
_proxyFormState: g,
|
|
10416
10522
|
_setErrors: j,
|
|
@@ -10451,17 +10557,17 @@ let __tla = Promise.all([
|
|
|
10451
10557
|
};
|
|
10452
10558
|
}
|
|
10453
10559
|
},
|
|
10454
|
-
trigger:
|
|
10455
|
-
register:
|
|
10456
|
-
handleSubmit:
|
|
10457
|
-
watch:
|
|
10458
|
-
setValue:
|
|
10459
|
-
getValues:
|
|
10460
|
-
reset:
|
|
10461
|
-
resetField:
|
|
10462
|
-
clearErrors:
|
|
10463
|
-
unregister:
|
|
10464
|
-
setError:
|
|
10560
|
+
trigger: ZW,
|
|
10561
|
+
register: aG,
|
|
10562
|
+
handleSubmit: cG,
|
|
10563
|
+
watch: nG,
|
|
10564
|
+
setValue: JW,
|
|
10565
|
+
getValues: QW,
|
|
10566
|
+
reset: dG,
|
|
10567
|
+
resetField: lG,
|
|
10568
|
+
clearErrors: eG,
|
|
10569
|
+
unregister: rG,
|
|
10570
|
+
setError: tG,
|
|
10465
10571
|
setFocus: (e2, r2 = {}) => {
|
|
10466
10572
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10467
10573
|
if (u2) {
|
|
@@ -10469,7 +10575,7 @@ let __tla = Promise.all([
|
|
|
10469
10575
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10470
10576
|
}
|
|
10471
10577
|
},
|
|
10472
|
-
getFieldState:
|
|
10578
|
+
getFieldState: $W
|
|
10473
10579
|
};
|
|
10474
10580
|
}
|
|
10475
10581
|
function useForm(e = {}) {
|
|
@@ -16194,21 +16300,21 @@ ${c}
|
|
|
16194
16300
|
_.pageSize,
|
|
16195
16301
|
_.pageIndex
|
|
16196
16302
|
], 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
|
-
VW,
|
|
16202
|
-
UW,
|
|
16203
|
-
WW,
|
|
16204
|
-
GW,
|
|
16205
|
-
KW,
|
|
16206
|
-
y,
|
|
16303
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), qW = useAtomValue(downloadSizeLimitAtom), JW;
|
|
16304
|
+
r[48] !== qW || r[49] !== e ? (JW = async () => !qW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = qW, r[49] = e, r[50] = JW) : JW = r[50];
|
|
16305
|
+
let YW = e.showDownload, XW = e.get_size_bytes, ZW = e.lazy, QW = e.totalRows, $W = useDeepCompareMemoize(w), eG = useDeepCompareMemoize(p), tG;
|
|
16306
|
+
r[51] !== qW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== $W || r[58] !== eG ? (tG = [
|
|
16207
16307
|
qW,
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16308
|
+
YW,
|
|
16309
|
+
XW,
|
|
16310
|
+
ZW,
|
|
16311
|
+
QW,
|
|
16312
|
+
y,
|
|
16313
|
+
$W,
|
|
16314
|
+
eG
|
|
16315
|
+
], r[51] = qW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = $W, r[58] = eG, r[59] = tG) : tG = r[59];
|
|
16316
|
+
let { data: nG, isPending: rG } = useAsyncData(JW, tG), iG = nG ?? null, aG = !!qW && e.showDownload && rG, oG;
|
|
16317
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (oG = async (e2) => ({
|
|
16212
16318
|
rows: await loadTableData((await u({
|
|
16213
16319
|
page_number: e2,
|
|
16214
16320
|
page_size: 1,
|
|
@@ -16217,17 +16323,17 @@ ${c}
|
|
|
16217
16323
|
filters: filtersToFilterGroup(w),
|
|
16218
16324
|
max_columns: null
|
|
16219
16325
|
})).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") ? (
|
|
16326
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = oG) : oG = r[64];
|
|
16327
|
+
let sG = oG, cG;
|
|
16328
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cG = () => {
|
|
16223
16329
|
v(_temp4$4);
|
|
16224
|
-
}, r[65] =
|
|
16225
|
-
let
|
|
16226
|
-
r[66] ===
|
|
16227
|
-
|
|
16228
|
-
], r[66] =
|
|
16229
|
-
let
|
|
16230
|
-
r[68] === e ?
|
|
16330
|
+
}, r[65] = cG) : cG = r[65];
|
|
16331
|
+
let lG = W == null ? void 0 : W.totalRows, uG;
|
|
16332
|
+
r[66] === lG ? uG = r[67] : (uG = [
|
|
16333
|
+
lG
|
|
16334
|
+
], r[66] = lG, r[67] = uG), (0, import_react.useEffect)(cG, uG);
|
|
16335
|
+
let dG;
|
|
16336
|
+
r[68] === e ? dG = r[69] : (dG = async () => {
|
|
16231
16337
|
let r2 = isStaticNotebook();
|
|
16232
16338
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16233
16339
|
data: null,
|
|
@@ -16236,22 +16342,22 @@ ${c}
|
|
|
16236
16342
|
value_counts: {},
|
|
16237
16343
|
show_charts: false
|
|
16238
16344
|
} : 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 ? (
|
|
16345
|
+
}, r[68] = e, r[69] = dG);
|
|
16346
|
+
let fG;
|
|
16347
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (fG = [
|
|
16242
16348
|
e.get_column_summaries,
|
|
16243
16349
|
e.showColumnSummaries,
|
|
16244
16350
|
w,
|
|
16245
16351
|
y,
|
|
16246
16352
|
e.totalRows,
|
|
16247
16353
|
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] =
|
|
16354
|
+
], 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] = fG) : fG = r[76];
|
|
16355
|
+
let { data: pG, error: mG } = useAsyncData(dG, fG), hG, gG;
|
|
16356
|
+
if (r[77] === mG ? (hG = r[78], gG = r[79]) : (hG = () => {
|
|
16357
|
+
mG && Logger.error(mG);
|
|
16358
|
+
}, gG = [
|
|
16359
|
+
mG
|
|
16360
|
+
], r[77] = mG, r[78] = hG, r[79] = gG), (0, import_react.useEffect)(hG, gG), q) {
|
|
16255
16361
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16256
16362
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16257
16363
|
milliseconds: 200,
|
|
@@ -16260,7 +16366,7 @@ ${c}
|
|
|
16260
16366
|
})
|
|
16261
16367
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16262
16368
|
}
|
|
16263
|
-
let
|
|
16369
|
+
let _G = null;
|
|
16264
16370
|
if (G) {
|
|
16265
16371
|
Logger.error(G);
|
|
16266
16372
|
let e2;
|
|
@@ -16276,62 +16382,62 @@ ${c}
|
|
|
16276
16382
|
children: G.message || "An unknown error occurred"
|
|
16277
16383
|
})
|
|
16278
16384
|
]
|
|
16279
|
-
}), r[82] = G, r[83] = e2),
|
|
16385
|
+
}), r[82] = G, r[83] = e2), _G = e2;
|
|
16280
16386
|
}
|
|
16281
|
-
let
|
|
16282
|
-
r[84] === O ?
|
|
16387
|
+
let vG;
|
|
16388
|
+
r[84] === O ? vG = r[85] : (vG = () => {
|
|
16283
16389
|
j(!O);
|
|
16284
|
-
}, r[84] = O, r[85] =
|
|
16285
|
-
let
|
|
16286
|
-
r[86] !== l || r[87] !==
|
|
16390
|
+
}, r[84] = O, r[85] = vG);
|
|
16391
|
+
let yG = vG, bG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, xG = W == null ? void 0 : W.rawRows, SG = Z && !q, CG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, wG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, TG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, EG;
|
|
16392
|
+
r[86] !== l || r[87] !== pG || r[88] !== O || r[89] !== w || r[90] !== sG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== iG || r[95] !== aG || r[96] !== p || r[97] !== bG || r[98] !== xG || r[99] !== SG || r[100] !== CG || r[101] !== wG || r[102] !== TG || r[103] !== yG ? (EG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16287
16393
|
...e,
|
|
16288
|
-
data:
|
|
16289
|
-
rawData:
|
|
16290
|
-
columnSummaries:
|
|
16394
|
+
data: bG,
|
|
16395
|
+
rawData: xG,
|
|
16396
|
+
columnSummaries: pG,
|
|
16291
16397
|
sorting: p,
|
|
16292
16398
|
setSorting: h,
|
|
16293
16399
|
searchQuery: y,
|
|
16294
16400
|
setSearchQuery: b,
|
|
16295
16401
|
filters: w,
|
|
16296
16402
|
setFilters: T,
|
|
16297
|
-
reloading:
|
|
16298
|
-
totalRows:
|
|
16299
|
-
sizeBytes:
|
|
16300
|
-
sizeBytesIsLoading:
|
|
16403
|
+
reloading: SG,
|
|
16404
|
+
totalRows: CG,
|
|
16405
|
+
sizeBytes: iG,
|
|
16406
|
+
sizeBytesIsLoading: aG,
|
|
16301
16407
|
paginationState: _,
|
|
16302
16408
|
setPaginationState: v,
|
|
16303
|
-
cellStyles:
|
|
16304
|
-
cellHoverTexts:
|
|
16305
|
-
toggleDisplayHeader:
|
|
16409
|
+
cellStyles: wG,
|
|
16410
|
+
cellHoverTexts: TG,
|
|
16411
|
+
toggleDisplayHeader: yG,
|
|
16306
16412
|
isChartBuilderOpen: O,
|
|
16307
|
-
getRow:
|
|
16413
|
+
getRow: sG,
|
|
16308
16414
|
cellId: l,
|
|
16309
16415
|
maxHeight: e.maxHeight
|
|
16310
|
-
}), r[86] = l, r[87] =
|
|
16311
|
-
let
|
|
16312
|
-
r[105] !== l || r[106] !==
|
|
16416
|
+
}), r[86] = l, r[87] = pG, r[88] = O, r[89] = w, r[90] = sG, r[91] = _, r[92] = e, r[93] = y, r[94] = iG, r[95] = aG, r[96] = p, r[97] = bG, r[98] = xG, r[99] = SG, r[100] = CG, r[101] = wG, r[102] = TG, r[103] = yG, r[104] = EG) : EG = r[104];
|
|
16417
|
+
let DG = EG, OG;
|
|
16418
|
+
r[105] !== l || r[106] !== DG || 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 ? (OG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16313
16419
|
displayHeader: O,
|
|
16314
16420
|
onCloseChartBuilder: () => j(false),
|
|
16315
16421
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16316
16422
|
columns: e.totalColumns,
|
|
16317
16423
|
totalRows: e.totalRows,
|
|
16318
|
-
dataTable:
|
|
16424
|
+
dataTable: DG,
|
|
16319
16425
|
getDataUrl: e.get_data_url,
|
|
16320
16426
|
fieldTypes: e.fieldTypes,
|
|
16321
16427
|
rowHeaders: e.rowHeaders,
|
|
16322
16428
|
cellId: l
|
|
16323
|
-
}) :
|
|
16324
|
-
let
|
|
16325
|
-
return r[116] !==
|
|
16429
|
+
}) : DG, r[105] = l, r[106] = DG, 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] = OG) : OG = r[115];
|
|
16430
|
+
let kG;
|
|
16431
|
+
return r[116] !== _G || r[117] !== OG ? (kG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16326
16432
|
children: [
|
|
16327
|
-
|
|
16328
|
-
|
|
16433
|
+
_G,
|
|
16434
|
+
OG
|
|
16329
16435
|
]
|
|
16330
|
-
}), r[116] =
|
|
16436
|
+
}), r[116] = _G, r[117] = OG, r[118] = kG) : kG = r[118], kG;
|
|
16331
16437
|
});
|
|
16332
16438
|
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
|
|
16439
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: qW, reloading: JW, freezeColumnsLeft: YW, freezeColumnsRight: XW, hiddenColumns: ZW, textJustifyColumns: QW, wrappedColumns: $W, columnWidths: eG, headerTooltip: tG, totalColumns: nG, get_row_ids: rG, cellStyles: iG, hoverTemplate: aG, cellHoverTexts: oG, toggleDisplayHeader: sG, isChartBuilderOpen: cG, calculate_top_k_rows: lG, preview_column: uG, getRow: dG, cellId: fG, maxHeight: pG }) => {
|
|
16440
|
+
let mG = (0, import_react.useId)(), { locale: hG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [gG, _G] = (0, import_react.useState)(0), { isPanelOpen: vG, isAnyPanelOpen: yG, togglePanel: bG, panelType: xG, setPanelType: SG } = usePanelOwnership(mG, fG), CG = isStaticNotebook(), wG = (0, import_react.useMemo)(() => {
|
|
16335
16441
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16336
16442
|
let e2 = toFieldTypes(O);
|
|
16337
16443
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16340,13 +16446,13 @@ ${c}
|
|
|
16340
16446
|
}, [
|
|
16341
16447
|
O,
|
|
16342
16448
|
L
|
|
16343
|
-
]),
|
|
16449
|
+
]), TG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), EG = (0, import_react.useMemo)(() => p === "all" ? TG : TG.slice(0, p), [
|
|
16344
16450
|
p,
|
|
16345
|
-
|
|
16346
|
-
]),
|
|
16451
|
+
TG
|
|
16452
|
+
]), DG = (0, import_react.useMemo)(() => {
|
|
16347
16453
|
let e2 = {};
|
|
16348
16454
|
if (r && r.length > 0) {
|
|
16349
|
-
for (let [c2, l2] of
|
|
16455
|
+
for (let [c2, l2] of EG) if (l2[0] === "number") {
|
|
16350
16456
|
let l3 = 0;
|
|
16351
16457
|
for (let e3 of r) {
|
|
16352
16458
|
let r2 = e3[c2];
|
|
@@ -16361,95 +16467,95 @@ ${c}
|
|
|
16361
16467
|
return e2;
|
|
16362
16468
|
}, [
|
|
16363
16469
|
r,
|
|
16364
|
-
|
|
16365
|
-
]),
|
|
16366
|
-
O || (T = false),
|
|
16367
|
-
let
|
|
16368
|
-
rowHeaders:
|
|
16470
|
+
EG
|
|
16471
|
+
]), OG = useDeepCompareMemoize(E), kG = useDeepCompareMemoize(QW), AG = useDeepCompareMemoize($W), jG = useDeepCompareMemoize(eG), MG = useDeepCompareMemoize(wG), NG = useDeepCompareMemoize(DG), PG = EG.length;
|
|
16472
|
+
O || (T = false), CG && (h = null);
|
|
16473
|
+
let FG = (0, import_react.useMemo)(() => generateColumns({
|
|
16474
|
+
rowHeaders: OG,
|
|
16369
16475
|
selection: h,
|
|
16370
|
-
chartSpecModel:
|
|
16371
|
-
fieldTypes:
|
|
16372
|
-
textJustifyColumns:
|
|
16373
|
-
wrappedColumns:
|
|
16374
|
-
columnWidths:
|
|
16375
|
-
headerTooltip:
|
|
16476
|
+
chartSpecModel: MG,
|
|
16477
|
+
fieldTypes: EG,
|
|
16478
|
+
textJustifyColumns: kG,
|
|
16479
|
+
wrappedColumns: AG,
|
|
16480
|
+
columnWidths: jG,
|
|
16481
|
+
headerTooltip: tG,
|
|
16376
16482
|
showDataTypes: T,
|
|
16377
|
-
calculateTopKRows:
|
|
16378
|
-
fractionDigitsByColumn:
|
|
16483
|
+
calculateTopKRows: lG,
|
|
16484
|
+
fractionDigitsByColumn: NG
|
|
16379
16485
|
}), [
|
|
16380
16486
|
h,
|
|
16381
16487
|
T,
|
|
16488
|
+
MG,
|
|
16489
|
+
OG,
|
|
16382
16490
|
EG,
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
DG
|
|
16391
|
-
]), AG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16491
|
+
kG,
|
|
16492
|
+
AG,
|
|
16493
|
+
jG,
|
|
16494
|
+
tG,
|
|
16495
|
+
lG,
|
|
16496
|
+
NG
|
|
16497
|
+
]), IG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16392
16498
|
e2,
|
|
16393
16499
|
true
|
|
16394
16500
|
])), [
|
|
16395
16501
|
g
|
|
16396
|
-
]),
|
|
16502
|
+
]), LG = useEvent_default((e2) => {
|
|
16397
16503
|
if (h === "single") {
|
|
16398
16504
|
let r2 = Functions.asUpdater(e2)({});
|
|
16399
16505
|
z(Object.keys(r2).slice(0, 1));
|
|
16400
16506
|
}
|
|
16401
16507
|
if (h === "multi") {
|
|
16402
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16508
|
+
let r2 = Functions.asUpdater(e2)(IG);
|
|
16403
16509
|
z(Object.keys(r2));
|
|
16404
16510
|
}
|
|
16405
|
-
}),
|
|
16406
|
-
if (
|
|
16511
|
+
}), RG = useEvent_default((e2) => {
|
|
16512
|
+
if (_G(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16407
16513
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16408
16514
|
r2 !== null && M((e3) => ({
|
|
16409
16515
|
...e3,
|
|
16410
16516
|
pageIndex: r2
|
|
16411
16517
|
}));
|
|
16412
|
-
}),
|
|
16413
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16414
|
-
}),
|
|
16415
|
-
if (!(!
|
|
16518
|
+
}), zG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), BG = useEvent_default((e2) => {
|
|
16519
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(zG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(zG));
|
|
16520
|
+
}), VG = h === "multi" || h === "single", HG = b && !!uG, UG = isInVscodeExtension(), WG = isIslands(), GG = (0, import_react.useMemo)(() => {
|
|
16521
|
+
if (!(!yG || !(S || HG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16416
16522
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16417
|
-
rowIdx:
|
|
16418
|
-
setRowIdx:
|
|
16523
|
+
rowIdx: gG,
|
|
16524
|
+
setRowIdx: RG,
|
|
16419
16525
|
totalRows: l,
|
|
16420
|
-
fieldTypes:
|
|
16421
|
-
getRow:
|
|
16422
|
-
isSelectable:
|
|
16423
|
-
isRowSelected: !!
|
|
16424
|
-
handleRowSelectionChange:
|
|
16425
|
-
previewColumn:
|
|
16426
|
-
totalColumns:
|
|
16427
|
-
tableId:
|
|
16526
|
+
fieldTypes: TG,
|
|
16527
|
+
getRow: dG,
|
|
16528
|
+
isSelectable: VG,
|
|
16529
|
+
isRowSelected: !!IG[gG],
|
|
16530
|
+
handleRowSelectionChange: LG,
|
|
16531
|
+
previewColumn: uG,
|
|
16532
|
+
totalColumns: nG,
|
|
16533
|
+
tableId: mG,
|
|
16428
16534
|
table: e2,
|
|
16429
|
-
showRowExplorer: S && !
|
|
16430
|
-
showColumnExplorer:
|
|
16431
|
-
activeTab:
|
|
16432
|
-
onTabChange:
|
|
16535
|
+
showRowExplorer: S && !UG,
|
|
16536
|
+
showColumnExplorer: HG && !UG,
|
|
16537
|
+
activeTab: xG,
|
|
16538
|
+
onTabChange: SG
|
|
16433
16539
|
})
|
|
16434
16540
|
});
|
|
16435
16541
|
}, [
|
|
16436
|
-
|
|
16542
|
+
yG,
|
|
16437
16543
|
S,
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16544
|
+
HG,
|
|
16545
|
+
gG,
|
|
16546
|
+
RG,
|
|
16441
16547
|
l,
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
jG,
|
|
16447
|
-
iG,
|
|
16448
|
-
XW,
|
|
16449
|
-
cG,
|
|
16548
|
+
TG,
|
|
16549
|
+
dG,
|
|
16550
|
+
VG,
|
|
16551
|
+
IG,
|
|
16450
16552
|
LG,
|
|
16451
|
-
|
|
16452
|
-
|
|
16553
|
+
uG,
|
|
16554
|
+
nG,
|
|
16555
|
+
mG,
|
|
16556
|
+
UG,
|
|
16557
|
+
xG,
|
|
16558
|
+
SG
|
|
16453
16559
|
]);
|
|
16454
16560
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16455
16561
|
children: [
|
|
@@ -16461,27 +16567,27 @@ ${c}
|
|
|
16461
16567
|
" rows."
|
|
16462
16568
|
]
|
|
16463
16569
|
}),
|
|
16464
|
-
|
|
16570
|
+
PG < nG && PG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16465
16571
|
className: "mb-1 rounded",
|
|
16466
16572
|
children: [
|
|
16467
16573
|
"Result clipped. Showing ",
|
|
16468
|
-
|
|
16574
|
+
PG,
|
|
16469
16575
|
" of ",
|
|
16470
|
-
|
|
16576
|
+
nG,
|
|
16471
16577
|
" columns."
|
|
16472
16578
|
]
|
|
16473
16579
|
}),
|
|
16474
|
-
|
|
16580
|
+
CG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16475
16581
|
className: "mb-1 rounded",
|
|
16476
16582
|
children: [
|
|
16477
16583
|
"Showing the first ",
|
|
16478
16584
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16479
|
-
children: prettyNumber(r.length,
|
|
16585
|
+
children: prettyNumber(r.length, hG)
|
|
16480
16586
|
}),
|
|
16481
16587
|
" ",
|
|
16482
16588
|
"of ",
|
|
16483
16589
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16484
|
-
children: prettyNumber(l,
|
|
16590
|
+
children: prettyNumber(l, hG)
|
|
16485
16591
|
}),
|
|
16486
16592
|
" rows. Increase the table's ",
|
|
16487
16593
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16495,7 +16601,7 @@ ${c}
|
|
|
16495
16601
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16496
16602
|
}),
|
|
16497
16603
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16498
|
-
value:
|
|
16604
|
+
value: wG,
|
|
16499
16605
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16500
16606
|
label: e,
|
|
16501
16607
|
align: "top",
|
|
@@ -16503,14 +16609,14 @@ ${c}
|
|
|
16503
16609
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16504
16610
|
data: r,
|
|
16505
16611
|
rawData: c,
|
|
16506
|
-
columns:
|
|
16612
|
+
columns: FG,
|
|
16507
16613
|
className: R,
|
|
16508
|
-
maxHeight:
|
|
16614
|
+
maxHeight: pG,
|
|
16509
16615
|
sorting: B,
|
|
16510
16616
|
totalRows: l,
|
|
16511
16617
|
sizeBytes: u,
|
|
16512
16618
|
sizeBytesIsLoading: f,
|
|
16513
|
-
totalColumns:
|
|
16619
|
+
totalColumns: nG,
|
|
16514
16620
|
manualSorting: true,
|
|
16515
16621
|
setSorting: H,
|
|
16516
16622
|
pagination: m,
|
|
@@ -16518,37 +16624,37 @@ ${c}
|
|
|
16518
16624
|
selection: h,
|
|
16519
16625
|
paginationState: j,
|
|
16520
16626
|
setPaginationState: M,
|
|
16521
|
-
rowSelection:
|
|
16522
|
-
cellSelection:
|
|
16523
|
-
cellStyling:
|
|
16524
|
-
hoverTemplate:
|
|
16525
|
-
cellHoverTexts:
|
|
16627
|
+
rowSelection: IG,
|
|
16628
|
+
cellSelection: zG,
|
|
16629
|
+
cellStyling: iG,
|
|
16630
|
+
hoverTemplate: aG,
|
|
16631
|
+
cellHoverTexts: oG,
|
|
16526
16632
|
downloadAs: v ? I : void 0,
|
|
16527
16633
|
showSearch: W,
|
|
16528
16634
|
searchQuery: G,
|
|
16529
16635
|
onSearchQueryChange: q,
|
|
16530
16636
|
showFilters: _,
|
|
16531
16637
|
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:
|
|
16638
|
+
onFiltersChange: qW,
|
|
16639
|
+
calculateTopKRows: lG,
|
|
16640
|
+
reloading: JW,
|
|
16641
|
+
onRowSelectionChange: LG,
|
|
16642
|
+
freezeColumnsLeft: YW,
|
|
16643
|
+
freezeColumnsRight: XW,
|
|
16644
|
+
hiddenColumns: ZW,
|
|
16645
|
+
onCellSelectionChange: BG,
|
|
16646
|
+
getRowIds: rG,
|
|
16647
|
+
toggleDisplayHeader: sG,
|
|
16648
|
+
showChartBuilder: w && !WG,
|
|
16649
|
+
isChartBuilderOpen: cG,
|
|
16544
16650
|
showPageSizeSelector: y,
|
|
16545
|
-
showTableExplorer: (S ||
|
|
16546
|
-
togglePanel:
|
|
16547
|
-
isPanelOpen:
|
|
16548
|
-
isAnyPanelOpen:
|
|
16549
|
-
viewedRowIdx:
|
|
16550
|
-
onViewedRowChange: (e2) =>
|
|
16551
|
-
renderTableExplorerPanel:
|
|
16651
|
+
showTableExplorer: (S || HG) && !UG && !WG,
|
|
16652
|
+
togglePanel: bG,
|
|
16653
|
+
isPanelOpen: vG,
|
|
16654
|
+
isAnyPanelOpen: yG,
|
|
16655
|
+
viewedRowIdx: gG,
|
|
16656
|
+
onViewedRowChange: (e2) => _G(e2),
|
|
16657
|
+
renderTableExplorerPanel: GG
|
|
16552
16658
|
})
|
|
16553
16659
|
})
|
|
16554
16660
|
})
|
|
@@ -18600,29 +18706,29 @@ ${c}
|
|
|
18600
18706
|
], r[2] = w, r[3] = T);
|
|
18601
18707
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18602
18708
|
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 ?
|
|
18709
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY), qW = (0, import_react.useRef)(null), JW;
|
|
18710
|
+
r[6] === f ? JW = r[7] : (JW = (e2) => {
|
|
18605
18711
|
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 =
|
|
18712
|
+
f && e2 !== "transform" && ((_a5 = qW.current) == null ? void 0 : _a5.submit());
|
|
18713
|
+
}, r[6] = f, r[7] = JW);
|
|
18714
|
+
let YW = JW, XW = (0, import_react.useRef)(q), ZW;
|
|
18715
|
+
r[8] === q ? ZW = r[9] : (ZW = () => {
|
|
18716
|
+
XW.current = q;
|
|
18717
|
+
}, r[8] = q, r[9] = ZW), (0, import_react.useEffect)(ZW);
|
|
18718
|
+
let QW;
|
|
18719
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (QW = () => {
|
|
18720
|
+
let e2 = XW.current;
|
|
18615
18721
|
(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] !==
|
|
18722
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = QW) : QW = r[12];
|
|
18723
|
+
let $W = p == null ? void 0 : p.transforms.length, eG;
|
|
18724
|
+
r[13] !== E || r[14] !== m || r[15] !== $W ? (eG = [
|
|
18619
18725
|
E,
|
|
18620
|
-
|
|
18621
|
-
|
|
18726
|
+
$W,
|
|
18727
|
+
XW,
|
|
18622
18728
|
m
|
|
18623
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18624
|
-
let
|
|
18625
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18729
|
+
], r[13] = E, r[14] = m, r[15] = $W, r[16] = eG) : eG = r[16], (0, import_react.useEffect)(QW, eG);
|
|
18730
|
+
let tG;
|
|
18731
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18626
18732
|
value: "transform",
|
|
18627
18733
|
className: "text-xs py-1",
|
|
18628
18734
|
children: [
|
|
@@ -18631,9 +18737,9 @@ ${c}
|
|
|
18631
18737
|
}),
|
|
18632
18738
|
"Transform"
|
|
18633
18739
|
]
|
|
18634
|
-
}), r[17] =
|
|
18635
|
-
let
|
|
18636
|
-
r[18] === H ?
|
|
18740
|
+
}), r[17] = tG) : tG = r[17];
|
|
18741
|
+
let nG;
|
|
18742
|
+
r[18] === H ? nG = r[19] : (nG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18637
18743
|
value: "python-code",
|
|
18638
18744
|
className: "text-xs py-1",
|
|
18639
18745
|
children: [
|
|
@@ -18642,9 +18748,9 @@ ${c}
|
|
|
18642
18748
|
}),
|
|
18643
18749
|
"Python Code"
|
|
18644
18750
|
]
|
|
18645
|
-
}), r[18] = H, r[19] =
|
|
18646
|
-
let
|
|
18647
|
-
r[20] === W ?
|
|
18751
|
+
}), r[18] = H, r[19] = nG);
|
|
18752
|
+
let rG;
|
|
18753
|
+
r[20] === W ? rG = r[21] : (rG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18648
18754
|
value: "sql-code",
|
|
18649
18755
|
className: "text-xs py-1",
|
|
18650
18756
|
children: [
|
|
@@ -18653,54 +18759,54 @@ ${c}
|
|
|
18653
18759
|
}),
|
|
18654
18760
|
"SQL Code"
|
|
18655
18761
|
]
|
|
18656
|
-
}), r[20] = W, r[21] =
|
|
18657
|
-
let
|
|
18658
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18762
|
+
}), r[20] = W, r[21] = rG);
|
|
18763
|
+
let iG;
|
|
18764
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iG = (0, import_jsx_runtime.jsx)("div", {
|
|
18659
18765
|
className: "grow"
|
|
18660
|
-
}), r[22] =
|
|
18661
|
-
let
|
|
18662
|
-
r[23] !==
|
|
18766
|
+
}), r[22] = iG) : iG = r[22];
|
|
18767
|
+
let aG;
|
|
18768
|
+
r[23] !== nG || r[24] !== rG ? (aG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18663
18769
|
className: "h-8",
|
|
18664
18770
|
children: [
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18771
|
+
tG,
|
|
18772
|
+
nG,
|
|
18773
|
+
rG,
|
|
18774
|
+
iG
|
|
18669
18775
|
]
|
|
18670
|
-
}), r[23] =
|
|
18671
|
-
let
|
|
18672
|
-
r[26] === j ?
|
|
18776
|
+
}), r[23] = nG, r[24] = rG, r[25] = aG) : aG = r[25];
|
|
18777
|
+
let oG;
|
|
18778
|
+
r[26] === j ? oG = r[27] : (oG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18673
18779
|
size: "small"
|
|
18674
|
-
}), r[26] = j, r[27] =
|
|
18675
|
-
let
|
|
18676
|
-
r[28] !==
|
|
18780
|
+
}), r[26] = j, r[27] = oG);
|
|
18781
|
+
let sG;
|
|
18782
|
+
r[28] !== aG || r[29] !== oG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18677
18783
|
className: "flex items-center gap-2",
|
|
18678
18784
|
children: [
|
|
18679
|
-
|
|
18680
|
-
|
|
18785
|
+
aG,
|
|
18786
|
+
oG
|
|
18681
18787
|
]
|
|
18682
|
-
}), r[28] =
|
|
18683
|
-
let
|
|
18684
|
-
r[31] !== m || r[32] !== p ? (
|
|
18788
|
+
}), r[28] = aG, r[29] = oG, r[30] = sG) : sG = r[30];
|
|
18789
|
+
let cG;
|
|
18790
|
+
r[31] !== m || r[32] !== p ? (cG = (e2) => {
|
|
18685
18791
|
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] !==
|
|
18792
|
+
}, r[31] = m, r[32] = p, r[33] = cG) : cG = r[33];
|
|
18793
|
+
let lG;
|
|
18794
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== cG ? (lG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18689
18795
|
value: "transform",
|
|
18690
18796
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18691
18797
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18692
|
-
ref:
|
|
18798
|
+
ref: qW,
|
|
18693
18799
|
initialValue: q,
|
|
18694
18800
|
columns: c,
|
|
18695
|
-
onChange:
|
|
18801
|
+
onChange: cG,
|
|
18696
18802
|
onInvalidChange: Z,
|
|
18697
18803
|
getColumnValues: g,
|
|
18698
18804
|
columnTypesPerStep: B,
|
|
18699
18805
|
lazy: f
|
|
18700
18806
|
})
|
|
18701
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18702
|
-
let
|
|
18703
|
-
r[41] === H ?
|
|
18807
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = cG, r[40] = lG) : lG = r[40];
|
|
18808
|
+
let uG;
|
|
18809
|
+
r[41] === H ? uG = r[42] : (uG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18704
18810
|
value: "python-code",
|
|
18705
18811
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18706
18812
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18709,9 +18815,9 @@ ${c}
|
|
|
18709
18815
|
code: H,
|
|
18710
18816
|
language: "python"
|
|
18711
18817
|
})
|
|
18712
|
-
}), r[41] = H, r[42] =
|
|
18713
|
-
let
|
|
18714
|
-
r[43] === W ?
|
|
18818
|
+
}), r[41] = H, r[42] = uG);
|
|
18819
|
+
let dG;
|
|
18820
|
+
r[43] === W ? dG = r[44] : (dG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18715
18821
|
value: "sql-code",
|
|
18716
18822
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18717
18823
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18720,35 +18826,35 @@ ${c}
|
|
|
18720
18826
|
code: W,
|
|
18721
18827
|
language: "sql"
|
|
18722
18828
|
})
|
|
18723
|
-
}), r[43] = W, r[44] =
|
|
18724
|
-
let
|
|
18725
|
-
r[45] !==
|
|
18829
|
+
}), r[43] = W, r[44] = dG);
|
|
18830
|
+
let fG;
|
|
18831
|
+
r[45] !== YW || r[46] !== sG || r[47] !== lG || r[48] !== uG || r[49] !== dG ? (fG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18726
18832
|
defaultValue: "transform",
|
|
18727
|
-
onValueChange:
|
|
18833
|
+
onValueChange: YW,
|
|
18728
18834
|
children: [
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18835
|
+
sG,
|
|
18836
|
+
lG,
|
|
18837
|
+
uG,
|
|
18838
|
+
dG
|
|
18733
18839
|
]
|
|
18734
|
-
}), r[45] =
|
|
18735
|
-
let
|
|
18736
|
-
r[51] === O ?
|
|
18840
|
+
}), r[45] = YW, r[46] = sG, r[47] = lG, r[48] = uG, r[49] = dG, r[50] = fG) : fG = r[50];
|
|
18841
|
+
let pG;
|
|
18842
|
+
r[51] === O ? pG = r[52] : (pG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18737
18843
|
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] !==
|
|
18844
|
+
}), r[51] = O, r[52] = pG);
|
|
18845
|
+
let mG = I || "", hG = L ?? 0, gG = G ?? 0, _G = R || Arrays.EMPTY, vG = L && L > 5 || false, yG;
|
|
18846
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== mG || r[61] !== hG || r[62] !== gG || r[63] !== _G || r[64] !== vG ? (yG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18741
18847
|
label: null,
|
|
18742
18848
|
className: "rounded-b border-x border-b",
|
|
18743
|
-
data:
|
|
18849
|
+
data: mG,
|
|
18744
18850
|
hasStableRowId: false,
|
|
18745
|
-
totalRows:
|
|
18746
|
-
totalColumns:
|
|
18851
|
+
totalRows: hG,
|
|
18852
|
+
totalColumns: gG,
|
|
18747
18853
|
maxColumns: "all",
|
|
18748
18854
|
pageSize: l,
|
|
18749
18855
|
pagination: true,
|
|
18750
18856
|
fieldTypes: z,
|
|
18751
|
-
rowHeaders:
|
|
18857
|
+
rowHeaders: _G,
|
|
18752
18858
|
showDownload: u,
|
|
18753
18859
|
download_as: v,
|
|
18754
18860
|
get_size_bytes: y,
|
|
@@ -18758,7 +18864,7 @@ ${c}
|
|
|
18758
18864
|
showColumnSummaries: false,
|
|
18759
18865
|
showDataTypes: true,
|
|
18760
18866
|
get_column_summaries: getColumnSummaries,
|
|
18761
|
-
showPageSizeSelector:
|
|
18867
|
+
showPageSizeSelector: vG,
|
|
18762
18868
|
showColumnExplorer: false,
|
|
18763
18869
|
showRowExplorer: true,
|
|
18764
18870
|
showChartBuilder: false,
|
|
@@ -18767,15 +18873,15 @@ ${c}
|
|
|
18767
18873
|
selection: null,
|
|
18768
18874
|
lazy: false,
|
|
18769
18875
|
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] !==
|
|
18876
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = mG, r[61] = hG, r[62] = gG, r[63] = _G, r[64] = vG, r[65] = yG) : yG = r[65];
|
|
18877
|
+
let bG;
|
|
18878
|
+
return r[66] !== fG || r[67] !== pG || r[68] !== yG ? (bG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18773
18879
|
children: [
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18880
|
+
fG,
|
|
18881
|
+
pG,
|
|
18882
|
+
yG
|
|
18777
18883
|
]
|
|
18778
|
-
}), r[66] =
|
|
18884
|
+
}), r[66] = fG, r[67] = pG, r[68] = yG, r[69] = bG) : bG = r[69], bG;
|
|
18779
18885
|
});
|
|
18780
18886
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18781
18887
|
function getColumnSummaries() {
|
|
@@ -18966,23 +19072,23 @@ ${c}
|
|
|
18966
19072
|
}, [
|
|
18967
19073
|
H
|
|
18968
19074
|
]);
|
|
18969
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19075
|
+
let Z = (R == null ? void 0 : R.files) ?? [], qW = new Set(e.map((e2) => e2.path)), JW = l === "directory" || l === "all", YW = l === "file" || l === "all", XW = Z.filter((e2) => JW && e2.is_directory || YW && !e2.is_directory), ZW = XW.length > 0 && XW.every((e2) => qW.has(e2.path));
|
|
18970
19076
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18971
19077
|
kind: "danger",
|
|
18972
19078
|
children: z.message
|
|
18973
19079
|
});
|
|
18974
|
-
let
|
|
19080
|
+
let QW = PathBuilder.guessDeliminator(c).deliminator, $W = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18975
19081
|
children: e2.path
|
|
18976
19082
|
}, e2.id));
|
|
18977
|
-
function
|
|
19083
|
+
function tG(e2) {
|
|
18978
19084
|
var _a6;
|
|
18979
19085
|
if (v) return;
|
|
18980
19086
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18981
|
-
if (g ===
|
|
19087
|
+
if (g === QW) {
|
|
18982
19088
|
y(false);
|
|
18983
19089
|
return;
|
|
18984
19090
|
}
|
|
18985
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19091
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = QW);
|
|
18986
19092
|
}
|
|
18987
19093
|
let r2 = e2.length < c.length;
|
|
18988
19094
|
if (f && r2) {
|
|
@@ -18995,7 +19101,7 @@ ${c}
|
|
|
18995
19101
|
}
|
|
18996
19102
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
18997
19103
|
}
|
|
18998
|
-
function
|
|
19104
|
+
function nG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
18999
19105
|
return {
|
|
19000
19106
|
id: e2,
|
|
19001
19107
|
name: r2,
|
|
@@ -19003,27 +19109,27 @@ ${c}
|
|
|
19003
19109
|
is_directory: c2
|
|
19004
19110
|
};
|
|
19005
19111
|
}
|
|
19006
|
-
function
|
|
19007
|
-
let f2 =
|
|
19112
|
+
function rG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19113
|
+
let f2 = nG({
|
|
19008
19114
|
path: c2,
|
|
19009
19115
|
name: l2,
|
|
19010
19116
|
isDirectory: d2
|
|
19011
19117
|
});
|
|
19012
|
-
|
|
19118
|
+
qW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19013
19119
|
...e,
|
|
19014
19120
|
f2
|
|
19015
19121
|
] : [
|
|
19016
19122
|
f2
|
|
19017
19123
|
]);
|
|
19018
19124
|
}
|
|
19019
|
-
function
|
|
19125
|
+
function iG() {
|
|
19020
19126
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19021
19127
|
}
|
|
19022
|
-
function
|
|
19128
|
+
function aG() {
|
|
19023
19129
|
let c2 = [];
|
|
19024
19130
|
for (let e2 of Z) {
|
|
19025
|
-
if (!
|
|
19026
|
-
let r2 =
|
|
19131
|
+
if (!JW && e2.is_directory || qW.has(e2.path)) continue;
|
|
19132
|
+
let r2 = nG({
|
|
19027
19133
|
path: e2.path,
|
|
19028
19134
|
name: e2.name,
|
|
19029
19135
|
isDirectory: e2.is_directory
|
|
@@ -19035,20 +19141,20 @@ ${c}
|
|
|
19035
19141
|
...c2
|
|
19036
19142
|
]);
|
|
19037
19143
|
}
|
|
19038
|
-
let
|
|
19144
|
+
let oG = [
|
|
19039
19145
|
{
|
|
19040
19146
|
key: "parent",
|
|
19041
19147
|
name: PARENT_DIRECTORY,
|
|
19042
19148
|
Icon: CornerLeftUp,
|
|
19043
19149
|
isSelected: false,
|
|
19044
19150
|
canSelect: false,
|
|
19045
|
-
onPrimary: () =>
|
|
19151
|
+
onPrimary: () => tG(PARENT_DIRECTORY),
|
|
19046
19152
|
onToggleSelect: null
|
|
19047
19153
|
},
|
|
19048
19154
|
...Z.map((e2) => {
|
|
19049
19155
|
let r2 = e2.path;
|
|
19050
19156
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19051
|
-
let c2 =
|
|
19157
|
+
let c2 = JW && e2.is_directory || YW && !e2.is_directory, l2 = qW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => rG({
|
|
19052
19158
|
path: r2,
|
|
19053
19159
|
name: e2.name,
|
|
19054
19160
|
isDirectory: e2.is_directory
|
|
@@ -19059,46 +19165,46 @@ ${c}
|
|
|
19059
19165
|
Icon: FILE_ICON[u2],
|
|
19060
19166
|
isSelected: l2,
|
|
19061
19167
|
canSelect: c2,
|
|
19062
|
-
onPrimary: e2.is_directory ? () =>
|
|
19168
|
+
onPrimary: e2.is_directory ? () => tG(r2) : c2 ? d2 : () => {
|
|
19063
19169
|
},
|
|
19064
19170
|
onToggleSelect: c2 ? d2 : null
|
|
19065
19171
|
};
|
|
19066
19172
|
})
|
|
19067
19173
|
];
|
|
19068
|
-
function
|
|
19174
|
+
function sG(e2) {
|
|
19069
19175
|
var _a6;
|
|
19070
19176
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19071
19177
|
}
|
|
19072
|
-
function
|
|
19178
|
+
function cG(e2, r2) {
|
|
19073
19179
|
var _a6, _b3;
|
|
19074
|
-
let c2 =
|
|
19180
|
+
let c2 = oG.length - 1;
|
|
19075
19181
|
switch (e2.key) {
|
|
19076
19182
|
case "ArrowDown":
|
|
19077
|
-
e2.preventDefault(),
|
|
19183
|
+
e2.preventDefault(), sG(Math.min(r2 + 1, c2));
|
|
19078
19184
|
break;
|
|
19079
19185
|
case "ArrowUp":
|
|
19080
|
-
e2.preventDefault(),
|
|
19186
|
+
e2.preventDefault(), sG(Math.max(r2 - 1, 0));
|
|
19081
19187
|
break;
|
|
19082
19188
|
case "Home":
|
|
19083
|
-
e2.preventDefault(),
|
|
19189
|
+
e2.preventDefault(), sG(0);
|
|
19084
19190
|
break;
|
|
19085
19191
|
case "End":
|
|
19086
|
-
e2.preventDefault(),
|
|
19192
|
+
e2.preventDefault(), sG(c2);
|
|
19087
19193
|
break;
|
|
19088
19194
|
case "Enter":
|
|
19089
|
-
e2.preventDefault(),
|
|
19195
|
+
e2.preventDefault(), oG[r2].onPrimary();
|
|
19090
19196
|
break;
|
|
19091
19197
|
case " ":
|
|
19092
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19198
|
+
e2.preventDefault(), (_b3 = (_a6 = oG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19093
19199
|
break;
|
|
19094
19200
|
}
|
|
19095
19201
|
}
|
|
19096
|
-
let { parentDirectories:
|
|
19202
|
+
let { parentDirectories: lG } = getProtocolAndParentDirectories({
|
|
19097
19203
|
path: g,
|
|
19098
|
-
delimiter:
|
|
19204
|
+
delimiter: QW,
|
|
19099
19205
|
initialPath: c,
|
|
19100
19206
|
restrictNavigation: f
|
|
19101
|
-
}),
|
|
19207
|
+
}), uG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19102
19208
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19103
19209
|
children: [
|
|
19104
19210
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19108,7 +19214,7 @@ ${c}
|
|
|
19108
19214
|
(() => {
|
|
19109
19215
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19110
19216
|
children: renderHTML({
|
|
19111
|
-
html: d ?? `Select ${
|
|
19217
|
+
html: d ?? `Select ${uG.join(" and ", 2)}...`
|
|
19112
19218
|
})
|
|
19113
19219
|
});
|
|
19114
19220
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19122,8 +19228,8 @@ ${c}
|
|
|
19122
19228
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19123
19229
|
size: "xs",
|
|
19124
19230
|
variant: "link",
|
|
19125
|
-
onClick:
|
|
19126
|
-
children:
|
|
19231
|
+
onClick: ZW ? iG : aG,
|
|
19232
|
+
children: ZW ? "Deselect all" : "Select all"
|
|
19127
19233
|
})
|
|
19128
19234
|
})
|
|
19129
19235
|
]
|
|
@@ -19133,8 +19239,8 @@ ${c}
|
|
|
19133
19239
|
className: "mt-2 w-full",
|
|
19134
19240
|
placeholder: g,
|
|
19135
19241
|
value: g,
|
|
19136
|
-
onChange: (e2) =>
|
|
19137
|
-
children:
|
|
19242
|
+
onChange: (e2) => tG(e2.target.value),
|
|
19243
|
+
children: lG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19138
19244
|
value: e2,
|
|
19139
19245
|
children: e2
|
|
19140
19246
|
}, e2))
|
|
@@ -19170,14 +19276,14 @@ ${c}
|
|
|
19170
19276
|
"aria-label": "File browser",
|
|
19171
19277
|
"aria-multiselectable": u,
|
|
19172
19278
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19173
|
-
children:
|
|
19279
|
+
children: oG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19174
19280
|
role: "row",
|
|
19175
19281
|
ref: (e3) => {
|
|
19176
19282
|
O.current[r2] = e3;
|
|
19177
19283
|
},
|
|
19178
19284
|
tabIndex: r2 === w ? 0 : -1,
|
|
19179
19285
|
onFocus: () => E(r2),
|
|
19180
|
-
onKeyDown: (e3) =>
|
|
19286
|
+
onKeyDown: (e3) => cG(e3, r2),
|
|
19181
19287
|
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
19288
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19183
19289
|
}),
|
|
@@ -19220,7 +19326,7 @@ ${c}
|
|
|
19220
19326
|
children: [
|
|
19221
19327
|
e.length,
|
|
19222
19328
|
" ",
|
|
19223
|
-
|
|
19329
|
+
uG.join(" or ", e.length),
|
|
19224
19330
|
" ",
|
|
19225
19331
|
"selected"
|
|
19226
19332
|
]
|
|
@@ -19240,7 +19346,7 @@ ${c}
|
|
|
19240
19346
|
marginBlock: 0
|
|
19241
19347
|
},
|
|
19242
19348
|
className: "m-0 text-xs text-muted-foreground",
|
|
19243
|
-
children:
|
|
19349
|
+
children: $W
|
|
19244
19350
|
})
|
|
19245
19351
|
})
|
|
19246
19352
|
]
|
|
@@ -24622,55 +24728,55 @@ ${c}
|
|
|
24622
24728
|
return typeof S == "function" ? S : noop$2;
|
|
24623
24729
|
}, [
|
|
24624
24730
|
S
|
|
24625
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24626
|
-
!
|
|
24627
|
-
Z.current && (Z.current.files.length || (
|
|
24731
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), qW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), JW = qW[0], YW = qW[1], XW = JW.isFocused, ZW = JW.isFileDialogActive, QW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), $W = function() {
|
|
24732
|
+
!QW.current && ZW && setTimeout(function() {
|
|
24733
|
+
Z.current && (Z.current.files.length || (YW({
|
|
24628
24734
|
type: "closeDialog"
|
|
24629
24735
|
}), G()));
|
|
24630
24736
|
}, 300);
|
|
24631
24737
|
};
|
|
24632
24738
|
(0, import_react.useEffect)(function() {
|
|
24633
|
-
return window.addEventListener("focus",
|
|
24634
|
-
window.removeEventListener("focus",
|
|
24739
|
+
return window.addEventListener("focus", $W, false), function() {
|
|
24740
|
+
window.removeEventListener("focus", $W, false);
|
|
24635
24741
|
};
|
|
24636
24742
|
}, [
|
|
24637
24743
|
Z,
|
|
24638
|
-
|
|
24744
|
+
ZW,
|
|
24639
24745
|
G,
|
|
24640
|
-
|
|
24746
|
+
QW
|
|
24641
24747
|
]);
|
|
24642
|
-
var
|
|
24643
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24748
|
+
var eG = (0, import_react.useRef)([]), tG = (0, import_react.useRef)([]), nG = function(e2) {
|
|
24749
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), eG.current = []);
|
|
24644
24750
|
};
|
|
24645
24751
|
(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",
|
|
24752
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", nG, false)), function() {
|
|
24753
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", nG));
|
|
24648
24754
|
};
|
|
24649
24755
|
}, [
|
|
24650
24756
|
q,
|
|
24651
24757
|
O
|
|
24652
24758
|
]), (0, import_react.useEffect)(function() {
|
|
24653
24759
|
var e2 = function(e3) {
|
|
24654
|
-
|
|
24760
|
+
tG.current = [].concat(_toConsumableArray(tG.current), [
|
|
24655
24761
|
e3.target
|
|
24656
|
-
]), isEvtWithFiles(e3) &&
|
|
24762
|
+
]), isEvtWithFiles(e3) && YW({
|
|
24657
24763
|
isDragGlobal: true,
|
|
24658
24764
|
type: "setDragGlobal"
|
|
24659
24765
|
});
|
|
24660
24766
|
}, r2 = function(e3) {
|
|
24661
|
-
|
|
24767
|
+
tG.current = tG.current.filter(function(r3) {
|
|
24662
24768
|
return r3 !== e3.target && r3 !== null;
|
|
24663
|
-
}), !(
|
|
24769
|
+
}), !(tG.current.length > 0) && YW({
|
|
24664
24770
|
isDragGlobal: false,
|
|
24665
24771
|
type: "setDragGlobal"
|
|
24666
24772
|
});
|
|
24667
24773
|
}, c2 = function() {
|
|
24668
|
-
|
|
24774
|
+
tG.current = [], YW({
|
|
24669
24775
|
isDragGlobal: false,
|
|
24670
24776
|
type: "setDragGlobal"
|
|
24671
24777
|
});
|
|
24672
24778
|
}, l2 = function() {
|
|
24673
|
-
|
|
24779
|
+
tG.current = [], YW({
|
|
24674
24780
|
isDragGlobal: false,
|
|
24675
24781
|
type: "setDragGlobal"
|
|
24676
24782
|
});
|
|
@@ -24688,12 +24794,12 @@ ${c}
|
|
|
24688
24794
|
E,
|
|
24689
24795
|
l
|
|
24690
24796
|
]);
|
|
24691
|
-
var
|
|
24797
|
+
var rG = (0, import_react.useCallback)(function(e2) {
|
|
24692
24798
|
R ? R(e2) : console.error(e2);
|
|
24693
24799
|
}, [
|
|
24694
24800
|
R
|
|
24695
|
-
]),
|
|
24696
|
-
e2.preventDefault(), e2.persist(),
|
|
24801
|
+
]), iG = (0, import_react.useCallback)(function(e2) {
|
|
24802
|
+
e2.preventDefault(), e2.persist(), _G(e2), eG.current = [].concat(_toConsumableArray(eG.current), [
|
|
24697
24803
|
e2.target
|
|
24698
24804
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24699
24805
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24706,7 +24812,7 @@ ${c}
|
|
|
24706
24812
|
maxFiles: m,
|
|
24707
24813
|
validator: z
|
|
24708
24814
|
});
|
|
24709
|
-
|
|
24815
|
+
YW({
|
|
24710
24816
|
isDragAccept: l2,
|
|
24711
24817
|
isDragReject: c2 > 0 && !l2,
|
|
24712
24818
|
isDragActive: true,
|
|
@@ -24714,12 +24820,12 @@ ${c}
|
|
|
24714
24820
|
}), h && h(e2);
|
|
24715
24821
|
}
|
|
24716
24822
|
}).catch(function(e3) {
|
|
24717
|
-
return
|
|
24823
|
+
return rG(e3);
|
|
24718
24824
|
});
|
|
24719
24825
|
}, [
|
|
24720
24826
|
u,
|
|
24721
24827
|
h,
|
|
24722
|
-
|
|
24828
|
+
rG,
|
|
24723
24829
|
L,
|
|
24724
24830
|
B,
|
|
24725
24831
|
f,
|
|
@@ -24727,8 +24833,8 @@ ${c}
|
|
|
24727
24833
|
p,
|
|
24728
24834
|
m,
|
|
24729
24835
|
z
|
|
24730
|
-
]),
|
|
24731
|
-
e2.preventDefault(), e2.persist(),
|
|
24836
|
+
]), aG = (0, import_react.useCallback)(function(e2) {
|
|
24837
|
+
e2.preventDefault(), e2.persist(), _G(e2);
|
|
24732
24838
|
var r2 = isEvtWithFiles(e2);
|
|
24733
24839
|
if (r2 && e2.dataTransfer) try {
|
|
24734
24840
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24738,12 +24844,12 @@ ${c}
|
|
|
24738
24844
|
}, [
|
|
24739
24845
|
_,
|
|
24740
24846
|
L
|
|
24741
|
-
]),
|
|
24742
|
-
e2.preventDefault(), e2.persist(),
|
|
24743
|
-
var r2 =
|
|
24847
|
+
]), oG = (0, import_react.useCallback)(function(e2) {
|
|
24848
|
+
e2.preventDefault(), e2.persist(), _G(e2);
|
|
24849
|
+
var r2 = eG.current.filter(function(e3) {
|
|
24744
24850
|
return q.current && q.current.contains(e3);
|
|
24745
24851
|
}), c2 = r2.indexOf(e2.target);
|
|
24746
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24852
|
+
c2 !== -1 && r2.splice(c2, 1), eG.current = r2, !(r2.length > 0) && (YW({
|
|
24747
24853
|
type: "setDraggedFiles",
|
|
24748
24854
|
isDragActive: false,
|
|
24749
24855
|
isDragAccept: false,
|
|
@@ -24753,7 +24859,7 @@ ${c}
|
|
|
24753
24859
|
q,
|
|
24754
24860
|
g,
|
|
24755
24861
|
L
|
|
24756
|
-
]),
|
|
24862
|
+
]), sG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24757
24863
|
var c2 = [], l2 = [];
|
|
24758
24864
|
e2.forEach(function(e3) {
|
|
24759
24865
|
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 +24883,14 @@ ${c}
|
|
|
24777
24883
|
TOO_MANY_FILES_REJECTION
|
|
24778
24884
|
]
|
|
24779
24885
|
});
|
|
24780
|
-
}), c2.splice(0)),
|
|
24886
|
+
}), c2.splice(0)), YW({
|
|
24781
24887
|
acceptedFiles: c2,
|
|
24782
24888
|
fileRejections: l2,
|
|
24783
24889
|
isDragReject: l2.length > 0,
|
|
24784
24890
|
type: "setFiles"
|
|
24785
24891
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24786
24892
|
}, [
|
|
24787
|
-
|
|
24893
|
+
YW,
|
|
24788
24894
|
p,
|
|
24789
24895
|
B,
|
|
24790
24896
|
f,
|
|
@@ -24794,22 +24900,22 @@ ${c}
|
|
|
24794
24900
|
y,
|
|
24795
24901
|
b,
|
|
24796
24902
|
z
|
|
24797
|
-
]),
|
|
24798
|
-
e2.preventDefault(), e2.persist(),
|
|
24799
|
-
isPropagationStopped(e2) && !L ||
|
|
24903
|
+
]), cG = (0, import_react.useCallback)(function(e2) {
|
|
24904
|
+
e2.preventDefault(), e2.persist(), _G(e2), eG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24905
|
+
isPropagationStopped(e2) && !L || sG(r2, e2);
|
|
24800
24906
|
}).catch(function(e3) {
|
|
24801
|
-
return
|
|
24802
|
-
}),
|
|
24907
|
+
return rG(e3);
|
|
24908
|
+
}), YW({
|
|
24803
24909
|
type: "reset"
|
|
24804
24910
|
});
|
|
24805
24911
|
}, [
|
|
24806
24912
|
u,
|
|
24807
|
-
|
|
24808
|
-
|
|
24913
|
+
sG,
|
|
24914
|
+
rG,
|
|
24809
24915
|
L
|
|
24810
|
-
]),
|
|
24811
|
-
if (
|
|
24812
|
-
|
|
24916
|
+
]), lG = (0, import_react.useCallback)(function() {
|
|
24917
|
+
if (QW.current) {
|
|
24918
|
+
YW({
|
|
24813
24919
|
type: "openDialog"
|
|
24814
24920
|
}), W();
|
|
24815
24921
|
var e2 = {
|
|
@@ -24819,66 +24925,66 @@ ${c}
|
|
|
24819
24925
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24820
24926
|
return u(e3);
|
|
24821
24927
|
}).then(function(e3) {
|
|
24822
|
-
|
|
24928
|
+
sG(e3, null), YW({
|
|
24823
24929
|
type: "closeDialog"
|
|
24824
24930
|
});
|
|
24825
24931
|
}).catch(function(e3) {
|
|
24826
|
-
isAbort(e3) ? (G(e3),
|
|
24932
|
+
isAbort(e3) ? (G(e3), YW({
|
|
24827
24933
|
type: "closeDialog"
|
|
24828
|
-
})) : isSecurityError(e3) ? (
|
|
24934
|
+
})) : isSecurityError(e3) ? (QW.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : rG(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."))) : rG(e3);
|
|
24829
24935
|
});
|
|
24830
24936
|
return;
|
|
24831
24937
|
}
|
|
24832
|
-
Z.current && (
|
|
24938
|
+
Z.current && (YW({
|
|
24833
24939
|
type: "openDialog"
|
|
24834
24940
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24835
24941
|
}, [
|
|
24836
|
-
|
|
24942
|
+
YW,
|
|
24837
24943
|
W,
|
|
24838
24944
|
G,
|
|
24839
24945
|
T,
|
|
24840
|
-
|
|
24841
|
-
|
|
24946
|
+
sG,
|
|
24947
|
+
rG,
|
|
24842
24948
|
H,
|
|
24843
24949
|
p
|
|
24844
|
-
]),
|
|
24845
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24950
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24951
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), lG());
|
|
24846
24952
|
}, [
|
|
24847
24953
|
q,
|
|
24848
|
-
|
|
24849
|
-
]),
|
|
24850
|
-
|
|
24954
|
+
lG
|
|
24955
|
+
]), dG = (0, import_react.useCallback)(function() {
|
|
24956
|
+
YW({
|
|
24851
24957
|
type: "focus"
|
|
24852
24958
|
});
|
|
24853
|
-
}, []),
|
|
24854
|
-
|
|
24959
|
+
}, []), fG = (0, import_react.useCallback)(function() {
|
|
24960
|
+
YW({
|
|
24855
24961
|
type: "blur"
|
|
24856
24962
|
});
|
|
24857
|
-
}, []),
|
|
24858
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24963
|
+
}, []), pG = (0, import_react.useCallback)(function() {
|
|
24964
|
+
j || (isIeOrEdge() ? setTimeout(lG, 0) : lG());
|
|
24859
24965
|
}, [
|
|
24860
24966
|
j,
|
|
24861
|
-
|
|
24862
|
-
]),
|
|
24967
|
+
lG
|
|
24968
|
+
]), mG = function(e2) {
|
|
24863
24969
|
return l ? null : e2;
|
|
24864
|
-
},
|
|
24865
|
-
return M ? null :
|
|
24866
|
-
},
|
|
24867
|
-
return I ? null :
|
|
24868
|
-
},
|
|
24970
|
+
}, hG = function(e2) {
|
|
24971
|
+
return M ? null : mG(e2);
|
|
24972
|
+
}, gG = function(e2) {
|
|
24973
|
+
return I ? null : mG(e2);
|
|
24974
|
+
}, _G = function(e2) {
|
|
24869
24975
|
L && e2.stopPropagation();
|
|
24870
|
-
},
|
|
24976
|
+
}, vG = (0, import_react.useMemo)(function() {
|
|
24871
24977
|
return function() {
|
|
24872
24978
|
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
24979
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24874
|
-
onKeyDown:
|
|
24875
|
-
onFocus:
|
|
24876
|
-
onBlur:
|
|
24877
|
-
onClick:
|
|
24878
|
-
onDragEnter:
|
|
24879
|
-
onDragOver:
|
|
24880
|
-
onDragLeave:
|
|
24881
|
-
onDrop:
|
|
24980
|
+
onKeyDown: hG(composeEventHandlers(d2, uG)),
|
|
24981
|
+
onFocus: hG(composeEventHandlers(f2, dG)),
|
|
24982
|
+
onBlur: hG(composeEventHandlers(p2, fG)),
|
|
24983
|
+
onClick: mG(composeEventHandlers(m2, pG)),
|
|
24984
|
+
onDragEnter: gG(composeEventHandlers(h2, iG)),
|
|
24985
|
+
onDragOver: gG(composeEventHandlers(g2, aG)),
|
|
24986
|
+
onDragLeave: gG(composeEventHandlers(_2, oG)),
|
|
24987
|
+
onDrop: gG(composeEventHandlers(v2, cG)),
|
|
24882
24988
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24883
24989
|
}, c2, q), !l && !M ? {
|
|
24884
24990
|
tabIndex: 0
|
|
@@ -24886,20 +24992,20 @@ ${c}
|
|
|
24886
24992
|
};
|
|
24887
24993
|
}, [
|
|
24888
24994
|
q,
|
|
24995
|
+
uG,
|
|
24996
|
+
dG,
|
|
24997
|
+
fG,
|
|
24998
|
+
pG,
|
|
24889
24999
|
iG,
|
|
24890
25000
|
aG,
|
|
24891
25001
|
oG,
|
|
24892
|
-
|
|
24893
|
-
QW,
|
|
24894
|
-
$W,
|
|
24895
|
-
eG,
|
|
24896
|
-
nG,
|
|
25002
|
+
cG,
|
|
24897
25003
|
M,
|
|
24898
25004
|
I,
|
|
24899
25005
|
l
|
|
24900
|
-
]),
|
|
25006
|
+
]), yG = (0, import_react.useCallback)(function(e2) {
|
|
24901
25007
|
e2.stopPropagation();
|
|
24902
|
-
}, []),
|
|
25008
|
+
}, []), bG = (0, import_react.useMemo)(function() {
|
|
24903
25009
|
return function() {
|
|
24904
25010
|
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
25011
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24918,8 +25024,8 @@ ${c}
|
|
|
24918
25024
|
width: "1px",
|
|
24919
25025
|
whiteSpace: "nowrap"
|
|
24920
25026
|
},
|
|
24921
|
-
onChange:
|
|
24922
|
-
onClick:
|
|
25027
|
+
onChange: mG(composeEventHandlers(l2, cG)),
|
|
25028
|
+
onClick: mG(composeEventHandlers(u2, yG)),
|
|
24923
25029
|
tabIndex: -1
|
|
24924
25030
|
}, c2, Z)), d2);
|
|
24925
25031
|
};
|
|
@@ -24927,16 +25033,16 @@ ${c}
|
|
|
24927
25033
|
Z,
|
|
24928
25034
|
c,
|
|
24929
25035
|
p,
|
|
24930
|
-
|
|
25036
|
+
cG,
|
|
24931
25037
|
l
|
|
24932
25038
|
]);
|
|
24933
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24934
|
-
isFocused:
|
|
24935
|
-
getRootProps:
|
|
24936
|
-
getInputProps:
|
|
25039
|
+
return _objectSpread$7(_objectSpread$7({}, JW), {}, {
|
|
25040
|
+
isFocused: XW && !l,
|
|
25041
|
+
getRootProps: vG,
|
|
25042
|
+
getInputProps: bG,
|
|
24937
25043
|
rootRef: q,
|
|
24938
25044
|
inputRef: Z,
|
|
24939
|
-
open:
|
|
25045
|
+
open: mG(lG)
|
|
24940
25046
|
});
|
|
24941
25047
|
}
|
|
24942
25048
|
function reducer$2(e, r) {
|
|
@@ -25168,47 +25274,47 @@ ${c}
|
|
|
25168
25274
|
html: I
|
|
25169
25275
|
})
|
|
25170
25276
|
}), 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] ===
|
|
25277
|
+
let q = w && "text-primary", Z = T && "text-destructive", qW;
|
|
25278
|
+
r[48] !== q || r[49] !== Z ? (qW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = qW) : qW = r[50];
|
|
25279
|
+
let JW;
|
|
25280
|
+
r[51] === qW ? JW = r[52] : (JW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25175
25281
|
strokeWidth: 1.4,
|
|
25176
|
-
className:
|
|
25177
|
-
}), r[51] =
|
|
25178
|
-
let
|
|
25179
|
-
r[53] !==
|
|
25180
|
-
let
|
|
25181
|
-
r[56] ===
|
|
25282
|
+
className: qW
|
|
25283
|
+
}), r[51] = qW, r[52] = JW);
|
|
25284
|
+
let YW = w && "text-primary", XW = T && "text-destructive", ZW;
|
|
25285
|
+
r[53] !== YW || r[54] !== XW ? (ZW = cn(YW, XW), r[53] = YW, r[54] = XW, r[55] = ZW) : ZW = r[55];
|
|
25286
|
+
let QW;
|
|
25287
|
+
r[56] === ZW ? QW = r[57] : (QW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25182
25288
|
strokeWidth: 1.4,
|
|
25183
|
-
className:
|
|
25184
|
-
}), r[56] =
|
|
25185
|
-
let
|
|
25186
|
-
r[58] !==
|
|
25289
|
+
className: ZW
|
|
25290
|
+
}), r[56] = ZW, r[57] = QW);
|
|
25291
|
+
let $W;
|
|
25292
|
+
r[58] !== JW || r[59] !== QW ? ($W = (0, import_jsx_runtime.jsxs)("div", {
|
|
25187
25293
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25188
25294
|
children: [
|
|
25189
|
-
|
|
25190
|
-
|
|
25295
|
+
JW,
|
|
25296
|
+
QW
|
|
25191
25297
|
]
|
|
25192
|
-
}), r[58] =
|
|
25193
|
-
let
|
|
25194
|
-
r[61] !== G || r[62] !==
|
|
25298
|
+
}), r[58] = JW, r[59] = QW, r[60] = $W) : $W = r[60];
|
|
25299
|
+
let tG;
|
|
25300
|
+
r[61] !== G || r[62] !== $W ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25195
25301
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25196
25302
|
children: [
|
|
25197
25303
|
G,
|
|
25198
|
-
|
|
25304
|
+
$W
|
|
25199
25305
|
]
|
|
25200
|
-
}), r[61] = G, r[62] =
|
|
25201
|
-
let
|
|
25202
|
-
r[64] !== W || r[65] !==
|
|
25306
|
+
}), r[61] = G, r[62] = $W, r[63] = tG) : tG = r[63];
|
|
25307
|
+
let nG;
|
|
25308
|
+
r[64] !== W || r[65] !== tG || r[66] !== z || r[67] !== B ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25203
25309
|
className: z,
|
|
25204
25310
|
...B,
|
|
25205
25311
|
children: [
|
|
25206
25312
|
W,
|
|
25207
|
-
|
|
25313
|
+
tG
|
|
25208
25314
|
]
|
|
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 ? (
|
|
25315
|
+
}), r[64] = W, r[65] = tG, r[66] = z, r[67] = B, r[68] = nG) : nG = r[68];
|
|
25316
|
+
let rG;
|
|
25317
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (rG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25212
25318
|
className: "flex flex-row gap-1",
|
|
25213
25319
|
children: [
|
|
25214
25320
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25244,17 +25350,17 @@ ${c}
|
|
|
25244
25350
|
})
|
|
25245
25351
|
})
|
|
25246
25352
|
]
|
|
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] !==
|
|
25353
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = rG) : rG = r[74];
|
|
25354
|
+
let iG;
|
|
25355
|
+
return r[75] !== nG || r[76] !== rG ? (iG = (0, import_jsx_runtime.jsx)("section", {
|
|
25250
25356
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25251
25357
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25252
25358
|
children: [
|
|
25253
|
-
|
|
25254
|
-
|
|
25359
|
+
nG,
|
|
25360
|
+
rG
|
|
25255
25361
|
]
|
|
25256
25362
|
})
|
|
25257
|
-
}), r[75] =
|
|
25363
|
+
}), r[75] = nG, r[76] = rG, r[77] = iG) : iG = r[77], iG;
|
|
25258
25364
|
};
|
|
25259
25365
|
function _temp$11(e) {
|
|
25260
25366
|
Logger.error(e), toast({
|
|
@@ -25357,68 +25463,68 @@ ${c}
|
|
|
25357
25463
|
html: f
|
|
25358
25464
|
})
|
|
25359
25465
|
}), r[13] = f, r[14] = Z);
|
|
25360
|
-
let
|
|
25361
|
-
r[15] === L ?
|
|
25466
|
+
let qW;
|
|
25467
|
+
r[15] === L ? qW = r[16] : (qW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25362
25468
|
kind: "danger",
|
|
25363
25469
|
className: "rounded",
|
|
25364
25470
|
children: L ?? "Invalid input"
|
|
25365
|
-
}), r[15] = L, r[16] =
|
|
25366
|
-
let
|
|
25367
|
-
r[17] === c ?
|
|
25471
|
+
}), r[15] = L, r[16] = qW);
|
|
25472
|
+
let JW;
|
|
25473
|
+
r[17] === c ? JW = r[18] : (JW = (0, import_jsx_runtime.jsx)("div", {
|
|
25368
25474
|
children: c
|
|
25369
|
-
}), r[17] = c, r[18] =
|
|
25370
|
-
let
|
|
25371
|
-
r[19] !== S || r[20] !== w || r[21] !== b ? (
|
|
25475
|
+
}), r[17] = c, r[18] = JW);
|
|
25476
|
+
let YW;
|
|
25477
|
+
r[19] !== S || r[20] !== w || r[21] !== b ? (YW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25372
25478
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25373
25479
|
variant: "text",
|
|
25374
25480
|
onClick: (e2) => {
|
|
25375
25481
|
e2.preventDefault(), B();
|
|
25376
25482
|
},
|
|
25377
25483
|
children: S
|
|
25378
|
-
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] =
|
|
25379
|
-
let
|
|
25380
|
-
r[23] === m ?
|
|
25484
|
+
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] = YW) : YW = r[22];
|
|
25485
|
+
let XW = v || m, ZW;
|
|
25486
|
+
r[23] === m ? ZW = r[24] : (ZW = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25381
25487
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25382
|
-
}), r[23] = m, r[24] =
|
|
25383
|
-
let
|
|
25384
|
-
r[25] !== g || r[26] !==
|
|
25488
|
+
}), r[23] = m, r[24] = ZW);
|
|
25489
|
+
let QW;
|
|
25490
|
+
r[25] !== g || r[26] !== XW || r[27] !== ZW || r[28] !== I ? (QW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25385
25491
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25386
25492
|
variant: I,
|
|
25387
|
-
disabled:
|
|
25493
|
+
disabled: XW,
|
|
25388
25494
|
type: "submit",
|
|
25389
25495
|
children: [
|
|
25390
|
-
|
|
25496
|
+
ZW,
|
|
25391
25497
|
g
|
|
25392
25498
|
]
|
|
25393
|
-
}), r[25] = g, r[26] =
|
|
25394
|
-
let
|
|
25395
|
-
r[30] !== _ || r[31] !==
|
|
25396
|
-
let
|
|
25397
|
-
r[33] !==
|
|
25499
|
+
}), r[25] = g, r[26] = XW, r[27] = ZW, r[28] = I, r[29] = QW) : QW = r[29];
|
|
25500
|
+
let $W;
|
|
25501
|
+
r[30] !== _ || r[31] !== QW ? ($W = withTooltip(QW, _), r[30] = _, r[31] = QW, r[32] = $W) : $W = r[32];
|
|
25502
|
+
let tG;
|
|
25503
|
+
r[33] !== $W || r[34] !== YW ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25398
25504
|
className: "flex justify-end gap-2 font-code",
|
|
25399
25505
|
children: [
|
|
25400
|
-
|
|
25401
|
-
|
|
25506
|
+
YW,
|
|
25507
|
+
$W
|
|
25402
25508
|
]
|
|
25403
|
-
}), r[33] =
|
|
25404
|
-
let
|
|
25405
|
-
r[36] !==
|
|
25509
|
+
}), r[33] = $W, r[34] = YW, r[35] = tG) : tG = r[35];
|
|
25510
|
+
let nG;
|
|
25511
|
+
r[36] !== tG || r[37] !== G || r[38] !== q || r[39] !== Z || r[40] !== qW || r[41] !== JW ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25406
25512
|
className: G,
|
|
25407
25513
|
onKeyDown: q,
|
|
25408
25514
|
children: [
|
|
25409
25515
|
Z,
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25516
|
+
qW,
|
|
25517
|
+
JW,
|
|
25518
|
+
tG
|
|
25413
25519
|
]
|
|
25414
|
-
}), r[36] =
|
|
25415
|
-
let
|
|
25416
|
-
return r[43] !==
|
|
25520
|
+
}), r[36] = tG, r[37] = G, r[38] = q, r[39] = Z, r[40] = qW, r[41] = JW, r[42] = nG) : nG = r[42];
|
|
25521
|
+
let rG;
|
|
25522
|
+
return r[43] !== nG || r[44] !== H ? (rG = (0, import_jsx_runtime.jsx)("form", {
|
|
25417
25523
|
className: "contents",
|
|
25418
25524
|
ref: j,
|
|
25419
25525
|
onSubmit: H,
|
|
25420
|
-
children:
|
|
25421
|
-
}), r[43] =
|
|
25526
|
+
children: nG
|
|
25527
|
+
}), r[43] = nG, r[44] = H, r[45] = rG) : rG = r[45], rG;
|
|
25422
25528
|
};
|
|
25423
25529
|
var Form = (e) => {
|
|
25424
25530
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27204,8 +27310,8 @@ ${c}
|
|
|
27204
27310
|
indices: c2
|
|
27205
27311
|
}));
|
|
27206
27312
|
}, r[31] = u, r[32] = Z);
|
|
27207
|
-
let
|
|
27208
|
-
r[33] === u ?
|
|
27313
|
+
let qW = useEvent_default(Z), JW;
|
|
27314
|
+
r[33] === u ? JW = r[34] : (JW = (e2) => {
|
|
27209
27315
|
e2 && u((r2) => ({
|
|
27210
27316
|
...r2,
|
|
27211
27317
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27214,9 +27320,9 @@ ${c}
|
|
|
27214
27320
|
range: e2.range,
|
|
27215
27321
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27216
27322
|
}));
|
|
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] !==
|
|
27323
|
+
}, r[33] = u, r[34] = JW);
|
|
27324
|
+
let YW = useEvent_default(JW), XW = m.frames ?? void 0, ZW = useEvent_default(_temp3$3), QW;
|
|
27325
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== qW || r[42] !== YW || r[43] !== XW || r[44] !== ZW || r[45] !== R ? (QW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27220
27326
|
...m,
|
|
27221
27327
|
layout: h,
|
|
27222
27328
|
onRelayout: R,
|
|
@@ -27224,13 +27330,13 @@ ${c}
|
|
|
27224
27330
|
onTreemapClick: W,
|
|
27225
27331
|
onSunburstClick: q,
|
|
27226
27332
|
config: L,
|
|
27227
|
-
onClick:
|
|
27228
|
-
onSelected:
|
|
27333
|
+
onClick: qW,
|
|
27334
|
+
onSelected: YW,
|
|
27229
27335
|
className: "w-full",
|
|
27230
27336
|
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] =
|
|
27337
|
+
frames: XW,
|
|
27338
|
+
onError: ZW
|
|
27339
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = qW, r[42] = YW, r[43] = XW, r[44] = ZW, r[45] = R, r[46] = QW) : QW = r[46], QW;
|
|
27234
27340
|
});
|
|
27235
27341
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27236
27342
|
function _temp$8(e) {
|
|
@@ -27375,8 +27481,8 @@ ${c}
|
|
|
27375
27481
|
onPointerUp: H
|
|
27376
27482
|
})
|
|
27377
27483
|
}), 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 ? (
|
|
27484
|
+
let qW;
|
|
27485
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (qW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27380
27486
|
asChild: true,
|
|
27381
27487
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27382
27488
|
"data-testid": "thumb",
|
|
@@ -27386,30 +27492,30 @@ ${c}
|
|
|
27386
27492
|
onMouseEnter: p.setTrue,
|
|
27387
27493
|
onMouseLeave: p.setFalse
|
|
27388
27494
|
})
|
|
27389
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27390
|
-
let
|
|
27391
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27495
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = qW) : qW = c[25];
|
|
27496
|
+
let JW;
|
|
27497
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (JW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27392
27498
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27393
27499
|
locale: m
|
|
27394
27500
|
})
|
|
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] !==
|
|
27501
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = JW) : JW = c[29];
|
|
27502
|
+
let YW;
|
|
27503
|
+
c[30] === JW ? YW = c[31] : (YW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27504
|
+
children: JW
|
|
27505
|
+
}), c[30] = JW, c[31] = YW);
|
|
27506
|
+
let XW;
|
|
27507
|
+
c[32] !== f || c[33] !== qW || c[34] !== YW ? (XW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27402
27508
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27403
27509
|
delayDuration: 0,
|
|
27404
27510
|
open: f,
|
|
27405
27511
|
children: [
|
|
27406
|
-
|
|
27407
|
-
|
|
27512
|
+
qW,
|
|
27513
|
+
YW
|
|
27408
27514
|
]
|
|
27409
27515
|
})
|
|
27410
|
-
}), c[32] = f, c[33] =
|
|
27411
|
-
let
|
|
27412
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27516
|
+
}), c[32] = f, c[33] = qW, c[34] = YW, c[35] = XW) : XW = c[35];
|
|
27517
|
+
let ZW;
|
|
27518
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (ZW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27413
27519
|
asChild: true,
|
|
27414
27520
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27415
27521
|
"data-testid": "thumb",
|
|
@@ -27419,39 +27525,39 @@ ${c}
|
|
|
27419
27525
|
onMouseEnter: p.setTrue,
|
|
27420
27526
|
onMouseLeave: p.setFalse
|
|
27421
27527
|
})
|
|
27422
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27423
|
-
let
|
|
27424
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27528
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = ZW) : ZW = c[38];
|
|
27529
|
+
let QW;
|
|
27530
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (QW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27425
27531
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27426
27532
|
locale: m
|
|
27427
27533
|
})
|
|
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] !==
|
|
27534
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = QW) : QW = c[42];
|
|
27535
|
+
let $W;
|
|
27536
|
+
c[43] === QW ? $W = c[44] : ($W = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27537
|
+
children: QW
|
|
27538
|
+
}), c[43] = QW, c[44] = $W);
|
|
27539
|
+
let eG;
|
|
27540
|
+
c[45] !== f || c[46] !== ZW || c[47] !== $W ? (eG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27435
27541
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27436
27542
|
delayDuration: 0,
|
|
27437
27543
|
open: f,
|
|
27438
27544
|
children: [
|
|
27439
|
-
|
|
27440
|
-
|
|
27545
|
+
ZW,
|
|
27546
|
+
$W
|
|
27441
27547
|
]
|
|
27442
27548
|
})
|
|
27443
|
-
}), c[45] = f, c[46] =
|
|
27444
|
-
let
|
|
27445
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27549
|
+
}), c[45] = f, c[46] = ZW, c[47] = $W, c[48] = eG) : eG = c[48];
|
|
27550
|
+
let tG;
|
|
27551
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== XW || c[53] !== eG || c[54] !== W ? (tG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27446
27552
|
ref: M,
|
|
27447
27553
|
className: W,
|
|
27448
27554
|
...u,
|
|
27449
27555
|
children: [
|
|
27450
27556
|
Z,
|
|
27451
|
-
|
|
27452
|
-
|
|
27557
|
+
XW,
|
|
27558
|
+
eG
|
|
27453
27559
|
]
|
|
27454
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27560
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = XW, c[53] = eG, c[54] = W, c[55] = tG) : tG = c[55], tG;
|
|
27455
27561
|
});
|
|
27456
27562
|
RangeSlider.displayName = Root.displayName;
|
|
27457
27563
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27502,14 +27608,14 @@ ${c}
|
|
|
27502
27608
|
}, q = (e2) => {
|
|
27503
27609
|
m && l(e2);
|
|
27504
27610
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27505
|
-
let Z,
|
|
27611
|
+
let Z, qW;
|
|
27506
27612
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27507
27613
|
m && !dequal(T, u) && l(T);
|
|
27508
|
-
},
|
|
27614
|
+
}, qW = () => {
|
|
27509
27615
|
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] !==
|
|
27616
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = qW) : (Z = r[18], qW = r[19]);
|
|
27617
|
+
let JW;
|
|
27618
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== qW || r[32] !== b ? (JW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27513
27619
|
id: S,
|
|
27514
27620
|
className: W,
|
|
27515
27621
|
value: T,
|
|
@@ -27521,35 +27627,35 @@ ${c}
|
|
|
27521
27627
|
onValueChange: G,
|
|
27522
27628
|
onValueCommit: q,
|
|
27523
27629
|
onPointerUp: Z,
|
|
27524
|
-
onMouseUp:
|
|
27630
|
+
onMouseUp: qW,
|
|
27525
27631
|
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 ? (
|
|
27632
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = qW, r[32] = b, r[33] = JW) : JW = r[33];
|
|
27633
|
+
let YW;
|
|
27634
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (YW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27529
27635
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27530
27636
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27531
27637
|
locale: w
|
|
27532
27638
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27533
27639
|
locale: w
|
|
27534
27640
|
})}`
|
|
27535
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27536
|
-
let
|
|
27537
|
-
r[39] !==
|
|
27641
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = YW) : YW = r[38];
|
|
27642
|
+
let XW;
|
|
27643
|
+
r[39] !== JW || r[40] !== YW || r[41] !== B ? (XW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27538
27644
|
className: B,
|
|
27539
27645
|
children: [
|
|
27540
|
-
|
|
27541
|
-
|
|
27646
|
+
JW,
|
|
27647
|
+
YW
|
|
27542
27648
|
]
|
|
27543
|
-
}), r[39] =
|
|
27544
|
-
let
|
|
27545
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27649
|
+
}), r[39] = JW, r[40] = YW, r[41] = B, r[42] = XW) : XW = r[42];
|
|
27650
|
+
let ZW;
|
|
27651
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== XW || r[47] !== M || r[48] !== L ? (ZW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27546
27652
|
label: c,
|
|
27547
27653
|
id: S,
|
|
27548
27654
|
align: M,
|
|
27549
27655
|
className: L,
|
|
27550
27656
|
fullWidth: v,
|
|
27551
|
-
children:
|
|
27552
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27657
|
+
children: XW
|
|
27658
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = XW, r[47] = M, r[48] = L, r[49] = ZW) : ZW = r[49], ZW;
|
|
27553
27659
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27554
27660
|
r.exports = u;
|
|
27555
27661
|
var c = {
|
|
@@ -30848,40 +30954,40 @@ ${c}
|
|
|
30848
30954
|
areRegExpsEqual: H,
|
|
30849
30955
|
areSetsEqual: G,
|
|
30850
30956
|
createIsNestedEqual: r2
|
|
30851
|
-
}),
|
|
30852
|
-
function
|
|
30853
|
-
return
|
|
30957
|
+
}), qW = T(q);
|
|
30958
|
+
function JW(e3, r3) {
|
|
30959
|
+
return qW(e3, r3, void 0);
|
|
30854
30960
|
}
|
|
30855
|
-
var
|
|
30961
|
+
var YW = T(l(q, {
|
|
30856
30962
|
createIsNestedEqual: function() {
|
|
30857
30963
|
return f;
|
|
30858
30964
|
}
|
|
30859
30965
|
}));
|
|
30860
|
-
function
|
|
30861
|
-
return
|
|
30966
|
+
function XW(e3, r3) {
|
|
30967
|
+
return YW(e3, r3, void 0);
|
|
30862
30968
|
}
|
|
30863
|
-
var
|
|
30864
|
-
function
|
|
30865
|
-
return
|
|
30969
|
+
var ZW = T(Z);
|
|
30970
|
+
function QW(e3, r3) {
|
|
30971
|
+
return ZW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30866
30972
|
}
|
|
30867
|
-
var
|
|
30973
|
+
var $W = T(l(Z, {
|
|
30868
30974
|
createIsNestedEqual: function() {
|
|
30869
30975
|
return f;
|
|
30870
30976
|
}
|
|
30871
30977
|
}));
|
|
30872
|
-
function
|
|
30873
|
-
return
|
|
30978
|
+
function eG(e3, r3) {
|
|
30979
|
+
return $W(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30874
30980
|
}
|
|
30875
|
-
function
|
|
30981
|
+
function tG(e3) {
|
|
30876
30982
|
return T(l(q, e3(q)));
|
|
30877
30983
|
}
|
|
30878
|
-
function
|
|
30984
|
+
function nG(e3) {
|
|
30879
30985
|
var r3 = T(l(Z, e3(Z)));
|
|
30880
30986
|
return (function(e4, c2, l2) {
|
|
30881
30987
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30882
30988
|
});
|
|
30883
30989
|
}
|
|
30884
|
-
e2.circularDeepEqual =
|
|
30990
|
+
e2.circularDeepEqual = QW, e2.circularShallowEqual = eG, e2.createCustomCircularEqual = nG, e2.createCustomEqual = tG, e2.deepEqual = JW, e2.sameValueZeroEqual = f, e2.shallowEqual = XW, Object.defineProperty(e2, "__esModule", {
|
|
30885
30991
|
value: true
|
|
30886
30992
|
});
|
|
30887
30993
|
}));
|
|
@@ -30907,7 +31013,7 @@ ${c}
|
|
|
30907
31013
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30908
31014
|
Object.defineProperty(e, "__esModule", {
|
|
30909
31015
|
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 =
|
|
31016
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = cG, 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 = eG, e.setTopLeft = nG, e.setTransform = tG, e.sortLayoutItems = rG, e.sortLayoutItemsByColRow = aG, e.sortLayoutItemsByRowCol = iG, e.synchronizeLayoutWithChildren = oG, e.validateLayout = sG, e.withLayoutItem = v;
|
|
30911
31017
|
var r = require_fast_equals(), c = l(require_react());
|
|
30912
31018
|
function l(e2) {
|
|
30913
31019
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31012,7 +31118,7 @@ ${c}
|
|
|
31012
31118
|
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
31119
|
}
|
|
31014
31120
|
function T(e2, r2, c2, l2) {
|
|
31015
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31121
|
+
let u2 = B(e2), d2 = h(u2), f2 = rG(e2, r2), p2 = Array(e2.length);
|
|
31016
31122
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31017
31123
|
let h3 = y(f2[m2]);
|
|
31018
31124
|
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 +31176,7 @@ ${c}
|
|
|
31070
31176
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31071
31177
|
let h2 = r2.x, _2 = r2.y;
|
|
31072
31178
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31073
|
-
let v2 =
|
|
31179
|
+
let v2 = rG(e2, f2);
|
|
31074
31180
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31075
31181
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31076
31182
|
if (b2 && m2) return g(e2);
|
|
@@ -31104,61 +31210,61 @@ ${c}
|
|
|
31104
31210
|
function G(e2) {
|
|
31105
31211
|
return e2 * 100 + "%";
|
|
31106
31212
|
}
|
|
31107
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31213
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, qW = (e2) => Math.max(0, e2), JW = (e2) => Math.max(0, e2), YW = (e2, r2, c2) => {
|
|
31108
31214
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31109
31215
|
return {
|
|
31110
31216
|
left: l2,
|
|
31111
31217
|
width: d2,
|
|
31112
31218
|
height: Z(f2, e2.height, u2),
|
|
31113
|
-
top:
|
|
31219
|
+
top: JW(f2)
|
|
31114
31220
|
};
|
|
31115
|
-
},
|
|
31221
|
+
}, XW = (e2, r2, c2) => {
|
|
31116
31222
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31117
31223
|
return {
|
|
31118
31224
|
top: l2,
|
|
31119
31225
|
height: d2,
|
|
31120
31226
|
width: q(e2.left, e2.width, f2, c2),
|
|
31121
|
-
left:
|
|
31227
|
+
left: qW(u2)
|
|
31122
31228
|
};
|
|
31123
|
-
},
|
|
31229
|
+
}, ZW = (e2, r2, c2) => {
|
|
31124
31230
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31125
31231
|
return {
|
|
31126
31232
|
height: u2,
|
|
31127
31233
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31128
|
-
top:
|
|
31129
|
-
left:
|
|
31234
|
+
top: JW(l2),
|
|
31235
|
+
left: qW(f2)
|
|
31130
31236
|
};
|
|
31131
|
-
},
|
|
31237
|
+
}, QW = (e2, r2, c2) => {
|
|
31132
31238
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31133
31239
|
return {
|
|
31134
31240
|
width: f2,
|
|
31135
31241
|
left: u2,
|
|
31136
31242
|
height: Z(l2, e2.height, d2),
|
|
31137
|
-
top:
|
|
31243
|
+
top: JW(l2)
|
|
31138
31244
|
};
|
|
31139
|
-
},
|
|
31140
|
-
n:
|
|
31245
|
+
}, $W = {
|
|
31246
|
+
n: YW,
|
|
31141
31247
|
ne: function() {
|
|
31142
|
-
return
|
|
31248
|
+
return YW(arguments.length <= 0 ? void 0 : arguments[0], XW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31143
31249
|
},
|
|
31144
|
-
e:
|
|
31250
|
+
e: XW,
|
|
31145
31251
|
se: function() {
|
|
31146
|
-
return
|
|
31252
|
+
return QW(arguments.length <= 0 ? void 0 : arguments[0], XW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31147
31253
|
},
|
|
31148
|
-
s:
|
|
31254
|
+
s: QW,
|
|
31149
31255
|
sw: function() {
|
|
31150
|
-
return
|
|
31256
|
+
return QW(arguments.length <= 0 ? void 0 : arguments[0], ZW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31151
31257
|
},
|
|
31152
|
-
w:
|
|
31258
|
+
w: ZW,
|
|
31153
31259
|
nw: function() {
|
|
31154
|
-
return
|
|
31260
|
+
return YW(arguments.length <= 0 ? void 0 : arguments[0], ZW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31155
31261
|
}
|
|
31156
31262
|
};
|
|
31157
|
-
function
|
|
31158
|
-
let u2 =
|
|
31263
|
+
function eG(e2, r2, c2, l2) {
|
|
31264
|
+
let u2 = $W[e2];
|
|
31159
31265
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31160
31266
|
}
|
|
31161
|
-
function
|
|
31267
|
+
function tG(e2) {
|
|
31162
31268
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31163
31269
|
return {
|
|
31164
31270
|
transform: d2,
|
|
@@ -31171,7 +31277,7 @@ ${c}
|
|
|
31171
31277
|
position: "absolute"
|
|
31172
31278
|
};
|
|
31173
31279
|
}
|
|
31174
|
-
function
|
|
31280
|
+
function nG(e2) {
|
|
31175
31281
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31176
31282
|
return {
|
|
31177
31283
|
top: `${r2}px`,
|
|
@@ -31181,20 +31287,20 @@ ${c}
|
|
|
31181
31287
|
position: "absolute"
|
|
31182
31288
|
};
|
|
31183
31289
|
}
|
|
31184
|
-
function
|
|
31185
|
-
return r2 === "horizontal" ?
|
|
31290
|
+
function rG(e2, r2) {
|
|
31291
|
+
return r2 === "horizontal" ? aG(e2) : r2 === "vertical" ? iG(e2) : e2;
|
|
31186
31292
|
}
|
|
31187
|
-
function
|
|
31293
|
+
function iG(e2) {
|
|
31188
31294
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31189
31295
|
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
31296
|
});
|
|
31191
31297
|
}
|
|
31192
|
-
function
|
|
31298
|
+
function aG(e2) {
|
|
31193
31299
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31194
31300
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31195
31301
|
});
|
|
31196
31302
|
}
|
|
31197
|
-
function
|
|
31303
|
+
function oG(e2, r2, l2, u2, f2) {
|
|
31198
31304
|
e2 || (e2 = []);
|
|
31199
31305
|
let p2 = [];
|
|
31200
31306
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31215,7 +31321,7 @@ ${c}
|
|
|
31215
31321
|
});
|
|
31216
31322
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31217
31323
|
}
|
|
31218
|
-
function
|
|
31324
|
+
function sG(e2) {
|
|
31219
31325
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31220
31326
|
"x",
|
|
31221
31327
|
"y",
|
|
@@ -31232,7 +31338,7 @@ ${c}
|
|
|
31232
31338
|
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
31339
|
}
|
|
31234
31340
|
}
|
|
31235
|
-
function
|
|
31341
|
+
function cG(e2) {
|
|
31236
31342
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31237
31343
|
return r2 === false ? null : c2;
|
|
31238
31344
|
}
|
|
@@ -34037,7 +34143,7 @@ ${c}
|
|
|
34037
34143
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34038
34144
|
let E = useIsDragging(), O, j;
|
|
34039
34145
|
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,
|
|
34146
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, qW, JW, YW, XW, ZW, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG;
|
|
34041
34147
|
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
34148
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34043
34149
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34056,23 +34162,23 @@ ${c}
|
|
|
34056
34162
|
});
|
|
34057
34163
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34058
34164
|
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,
|
|
34165
|
+
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, aG = "lg", r[58] === c.cells ? oG = r[59] : (oG = {
|
|
34060
34166
|
lg: c.cells
|
|
34061
|
-
}, r[58] = c.cells, r[59] =
|
|
34167
|
+
}, r[58] = c.cells, r[59] = oG), sG = L, cG = S, R = false;
|
|
34062
34168
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34063
34169
|
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
34170
|
20,
|
|
34065
34171
|
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 ? (
|
|
34172
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (qW = (e3) => {
|
|
34067
34173
|
f || l({
|
|
34068
34174
|
...c,
|
|
34069
34175
|
cells: e3
|
|
34070
34176
|
});
|
|
34071
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34177
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = qW) : qW = r[69], r[70] === g ? JW = r[71] : (JW = g ? {
|
|
34072
34178
|
i: g.i,
|
|
34073
34179
|
w: g.w || 2,
|
|
34074
34180
|
h: g.h || 2
|
|
34075
|
-
} : void 0, r[70] = g, r[71] =
|
|
34181
|
+
} : void 0, r[70] = g, r[71] = JW), r[72] !== O || r[73] !== c || r[74] !== l ? (YW = (e3, r2, u2) => {
|
|
34076
34182
|
O.onDragStop(), r2 && l({
|
|
34077
34183
|
...c,
|
|
34078
34184
|
cells: [
|
|
@@ -34080,15 +34186,15 @@ ${c}
|
|
|
34080
34186
|
r2
|
|
34081
34187
|
]
|
|
34082
34188
|
});
|
|
34083
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34189
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = YW) : YW = r[75], r[76] === O ? (XW = r[77], ZW = r[78], QW = r[79]) : (XW = (e3, r2, c2, l2, u2) => {
|
|
34084
34190
|
O.onDragStart(u2);
|
|
34085
|
-
},
|
|
34191
|
+
}, ZW = (e3, r2, c2, l2, u2) => {
|
|
34086
34192
|
O.onDragMove(u2);
|
|
34087
|
-
},
|
|
34193
|
+
}, QW = () => {
|
|
34088
34194
|
O.onDragStop();
|
|
34089
|
-
}, r[76] = O, r[77] =
|
|
34195
|
+
}, r[76] = O, r[77] = XW, r[78] = ZW, r[79] = QW), $W = _temp3$2, eG = M, tG = M, nG = M, rG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34090
34196
|
let E2;
|
|
34091
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34197
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), iG = u.filter(E2).map((r2) => {
|
|
34092
34198
|
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
34199
|
code: r2.code,
|
|
34094
34200
|
mode: d,
|
|
@@ -34118,14 +34224,14 @@ ${c}
|
|
|
34118
34224
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34119
34225
|
children: m2
|
|
34120
34226
|
}, 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:
|
|
34227
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = qW, r[32] = JW, r[33] = YW, r[34] = XW, r[35] = ZW, r[36] = QW, r[37] = $W, r[38] = eG, r[39] = tG, r[40] = nG, r[41] = rG, r[42] = iG, r[43] = aG, r[44] = oG, r[45] = sG, r[46] = cG;
|
|
34228
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30], qW = r[31], JW = r[32], YW = r[33], XW = r[34], ZW = r[35], QW = r[36], $W = r[37], eG = r[38], tG = r[39], nG = r[40], rG = r[41], iG = r[42], aG = r[43], oG = r[44], sG = r[45], cG = r[46];
|
|
34229
|
+
let lG;
|
|
34230
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !== qW || r[92] !== JW || r[93] !== YW || r[94] !== XW || r[95] !== ZW || r[96] !== QW || r[97] !== $W || r[98] !== eG || r[99] !== tG || r[100] !== nG || r[101] !== rG || r[102] !== iG || r[103] !== aG || r[104] !== oG || r[105] !== sG || r[106] !== cG ? (lG = (0, import_jsx_runtime.jsx)(I, {
|
|
34231
|
+
breakpoint: aG,
|
|
34232
|
+
layouts: oG,
|
|
34233
|
+
style: sG,
|
|
34234
|
+
cols: cG,
|
|
34129
34235
|
allowOverlap: R,
|
|
34130
34236
|
className: z,
|
|
34131
34237
|
containerPadding: B,
|
|
@@ -34134,22 +34240,22 @@ ${c}
|
|
|
34134
34240
|
compactType: G,
|
|
34135
34241
|
preventCollision: q,
|
|
34136
34242
|
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
|
-
|
|
34243
|
+
onLayoutChange: qW,
|
|
34244
|
+
droppingItem: JW,
|
|
34245
|
+
onDrop: YW,
|
|
34246
|
+
onDragStart: XW,
|
|
34247
|
+
onDrag: ZW,
|
|
34248
|
+
onDragStop: QW,
|
|
34249
|
+
onResizeStop: $W,
|
|
34250
|
+
isDraggable: eG,
|
|
34251
|
+
isDroppable: tG,
|
|
34252
|
+
isResizable: nG,
|
|
34253
|
+
draggableHandle: rG,
|
|
34254
|
+
children: iG
|
|
34255
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] = qW, r[92] = JW, r[93] = YW, r[94] = XW, r[95] = ZW, r[96] = QW, r[97] = $W, r[98] = eG, r[99] = tG, r[100] = nG, r[101] = rG, r[102] = iG, r[103] = aG, r[104] = oG, r[105] = sG, r[106] = cG, r[107] = lG) : lG = r[107];
|
|
34256
|
+
let uG = lG, dG, fG, pG, mG, hG, gG, _G;
|
|
34257
|
+
if (r[108] !== u || r[109] !== uG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34258
|
+
_G = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34153
34259
|
bb0: {
|
|
34154
34260
|
let e2;
|
|
34155
34261
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34157,14 +34263,14 @@ ${c}
|
|
|
34157
34263
|
if (f) {
|
|
34158
34264
|
if (c.bordered) {
|
|
34159
34265
|
let e4;
|
|
34160
|
-
r[127] !==
|
|
34266
|
+
r[127] !== uG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34161
34267
|
className: "flex flex-1 flex-col items-center",
|
|
34162
34268
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34163
34269
|
style: L,
|
|
34164
34270
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34165
|
-
children:
|
|
34271
|
+
children: uG
|
|
34166
34272
|
})
|
|
34167
|
-
}), r[127] =
|
|
34273
|
+
}), r[127] = uG, r[128] = L, r[129] = e4) : e4 = r[129], uG = e4;
|
|
34168
34274
|
}
|
|
34169
34275
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34170
34276
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34176,9 +34282,9 @@ ${c}
|
|
|
34176
34282
|
stale: outputIsStale(e4, false),
|
|
34177
34283
|
isScrollable: false,
|
|
34178
34284
|
hidden: false
|
|
34179
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34285
|
+
}, e4.id), r[130] = d, r[131] = l2), _G = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34180
34286
|
children: [
|
|
34181
|
-
|
|
34287
|
+
uG,
|
|
34182
34288
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34183
34289
|
className: "hidden",
|
|
34184
34290
|
children: e3.map(l2)
|
|
@@ -34189,31 +34295,31 @@ ${c}
|
|
|
34189
34295
|
}
|
|
34190
34296
|
if (c.bordered) {
|
|
34191
34297
|
let e3;
|
|
34192
|
-
r[132] ===
|
|
34298
|
+
r[132] === uG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34193
34299
|
className: "h-full overflow-auto",
|
|
34194
|
-
children:
|
|
34195
|
-
}), r[132] =
|
|
34300
|
+
children: uG
|
|
34301
|
+
}), r[132] = uG, r[133] = e3);
|
|
34196
34302
|
let c2;
|
|
34197
34303
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34198
34304
|
style: L,
|
|
34199
34305
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34200
34306
|
children: e3
|
|
34201
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34307
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], uG = c2;
|
|
34202
34308
|
}
|
|
34203
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34309
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (gG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34204
34310
|
layout: c,
|
|
34205
34311
|
setLayout: l,
|
|
34206
34312
|
isLocked: v,
|
|
34207
34313
|
setIsLocked: y
|
|
34208
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34314
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = gG) : gG = r[140];
|
|
34209
34315
|
let g2;
|
|
34210
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34316
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = mG, r[142] = g2) : (mG = r[141], g2 = r[142]), r[143] === uG ? hG = r[144] : (hG = (0, import_jsx_runtime.jsx)("div", {
|
|
34211
34317
|
className: g2,
|
|
34212
|
-
children:
|
|
34213
|
-
}), r[143] =
|
|
34318
|
+
children: uG
|
|
34319
|
+
}), r[143] = uG, r[144] = hG), dG = "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") ? (fG = (0, import_jsx_runtime.jsx)("div", {
|
|
34214
34320
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34215
34321
|
children: "Outputs"
|
|
34216
|
-
}), r[145] =
|
|
34322
|
+
}), r[145] = fG) : fG = r[145];
|
|
34217
34323
|
let b2;
|
|
34218
34324
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34219
34325
|
draggable: true,
|
|
@@ -34239,34 +34345,34 @@ ${c}
|
|
|
34239
34345
|
stale: outputIsStale(e3, false),
|
|
34240
34346
|
hidden: false
|
|
34241
34347
|
})
|
|
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:
|
|
34348
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], pG = p2.map(b2);
|
|
34349
|
+
}
|
|
34350
|
+
r[108] = u, r[109] = uG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = dG, r[118] = fG, r[119] = pG, r[120] = mG, r[121] = hG, r[122] = gG, r[123] = _G, r[124] = uG;
|
|
34351
|
+
} else dG = r[117], fG = r[118], pG = r[119], mG = r[120], hG = r[121], gG = r[122], _G = r[123], uG = r[124];
|
|
34352
|
+
if (_G !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return _G;
|
|
34353
|
+
let vG;
|
|
34354
|
+
r[150] !== dG || r[151] !== fG || r[152] !== pG ? (vG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34355
|
+
className: dG,
|
|
34250
34356
|
children: [
|
|
34251
|
-
|
|
34252
|
-
|
|
34357
|
+
fG,
|
|
34358
|
+
pG
|
|
34253
34359
|
]
|
|
34254
|
-
}), r[150] =
|
|
34255
|
-
let
|
|
34256
|
-
r[154] !==
|
|
34257
|
-
className:
|
|
34360
|
+
}), r[150] = dG, r[151] = fG, r[152] = pG, r[153] = vG) : vG = r[153];
|
|
34361
|
+
let yG;
|
|
34362
|
+
r[154] !== mG || r[155] !== hG || r[156] !== vG ? (yG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34363
|
+
className: mG,
|
|
34258
34364
|
children: [
|
|
34259
|
-
|
|
34260
|
-
|
|
34365
|
+
hG,
|
|
34366
|
+
vG
|
|
34261
34367
|
]
|
|
34262
|
-
}), r[154] =
|
|
34263
|
-
let
|
|
34264
|
-
return r[158] !==
|
|
34368
|
+
}), r[154] = mG, r[155] = hG, r[156] = vG, r[157] = yG) : yG = r[157];
|
|
34369
|
+
let bG;
|
|
34370
|
+
return r[158] !== gG || r[159] !== yG ? (bG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34265
34371
|
children: [
|
|
34266
|
-
|
|
34267
|
-
|
|
34372
|
+
gG,
|
|
34373
|
+
yG
|
|
34268
34374
|
]
|
|
34269
|
-
}), r[158] =
|
|
34375
|
+
}), r[158] = gG, r[159] = yG, r[160] = bG) : bG = r[160], bG;
|
|
34270
34376
|
};
|
|
34271
34377
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34272
34378
|
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 +34682,8 @@ ${c}
|
|
|
34576
34682
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34577
34683
|
onClick: () => l()
|
|
34578
34684
|
}), r[36] = l, r[37] = Z);
|
|
34579
|
-
let
|
|
34580
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34685
|
+
let qW;
|
|
34686
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (qW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34581
34687
|
className: S,
|
|
34582
34688
|
children: [
|
|
34583
34689
|
M,
|
|
@@ -34585,7 +34691,7 @@ ${c}
|
|
|
34585
34691
|
q,
|
|
34586
34692
|
Z
|
|
34587
34693
|
]
|
|
34588
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34694
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = qW) : qW = r[42], qW;
|
|
34589
34695
|
};
|
|
34590
34696
|
function isSidebarCell(e) {
|
|
34591
34697
|
var _a5;
|
|
@@ -36591,29 +36697,29 @@ ${c}
|
|
|
36591
36697
|
M
|
|
36592
36698
|
]), 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
36699
|
j
|
|
36594
|
-
]),
|
|
36700
|
+
]), qW = useMeasuringConfiguration(p), { droppableRects: JW, measureDroppableContainers: YW, measuringScheduled: XW } = useDroppableMeasuring(Z, {
|
|
36595
36701
|
dragging: w,
|
|
36596
36702
|
dependencies: [
|
|
36597
36703
|
O.x,
|
|
36598
36704
|
O.y
|
|
36599
36705
|
],
|
|
36600
|
-
config:
|
|
36601
|
-
}),
|
|
36706
|
+
config: qW.droppable
|
|
36707
|
+
}), ZW = useCachedNode(E, T), QW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36602
36708
|
H
|
|
36603
|
-
]),
|
|
36709
|
+
]), $W = AG(), eG = useInitialRect(ZW, qW.draggable.measure);
|
|
36604
36710
|
useLayoutShiftScrollCompensation({
|
|
36605
36711
|
activeNode: T == null ? null : E.get(T),
|
|
36606
|
-
config:
|
|
36607
|
-
initialRect:
|
|
36608
|
-
measure:
|
|
36712
|
+
config: $W.layoutShiftCompensation,
|
|
36713
|
+
initialRect: eG,
|
|
36714
|
+
measure: qW.draggable.measure
|
|
36609
36715
|
});
|
|
36610
|
-
let
|
|
36716
|
+
let tG = useRect(ZW, qW.draggable.measure, eG), nG = useRect(ZW ? ZW.parentElement : null), rG = (0, import_react.useRef)({
|
|
36611
36717
|
activatorEvent: null,
|
|
36612
36718
|
active: null,
|
|
36613
|
-
activeNode:
|
|
36719
|
+
activeNode: ZW,
|
|
36614
36720
|
collisionRect: null,
|
|
36615
36721
|
collisions: null,
|
|
36616
|
-
droppableRects:
|
|
36722
|
+
droppableRects: JW,
|
|
36617
36723
|
draggableNodes: E,
|
|
36618
36724
|
draggingNode: null,
|
|
36619
36725
|
draggingNodeRect: null,
|
|
@@ -36621,45 +36727,45 @@ ${c}
|
|
|
36621
36727
|
over: null,
|
|
36622
36728
|
scrollableAncestors: [],
|
|
36623
36729
|
scrollAdjustedTranslate: null
|
|
36624
|
-
}),
|
|
36625
|
-
measure:
|
|
36626
|
-
}),
|
|
36730
|
+
}), iG = j.getNodeFor((_a5 = rG.current.over) == null ? void 0 : _a5.id), aG = useDragOverlayMeasuring({
|
|
36731
|
+
measure: qW.dragOverlay.measure
|
|
36732
|
+
}), oG = aG.nodeRef.current ?? ZW, sG = w ? aG.rect ?? tG : null, cG = !!(aG.nodeRef.current && aG.rect), lG = useRectDelta(cG ? null : tG), uG = useWindowRect(oG ? getWindow(oG) : null), dG = useScrollableAncestors(w ? iG ?? ZW : null), fG = useRects(dG), pG = applyModifiers(m, {
|
|
36627
36733
|
transform: {
|
|
36628
|
-
x: O.x -
|
|
36629
|
-
y: O.y -
|
|
36734
|
+
x: O.x - lG.x,
|
|
36735
|
+
y: O.y - lG.y,
|
|
36630
36736
|
scaleX: 1,
|
|
36631
36737
|
scaleY: 1
|
|
36632
36738
|
},
|
|
36633
36739
|
activatorEvent: H,
|
|
36634
36740
|
active: L,
|
|
36635
|
-
activeNodeRect:
|
|
36636
|
-
containerNodeRect:
|
|
36637
|
-
draggingNodeRect:
|
|
36638
|
-
over:
|
|
36639
|
-
overlayNodeRect:
|
|
36640
|
-
scrollableAncestors:
|
|
36641
|
-
scrollableAncestorRects:
|
|
36642
|
-
windowRect:
|
|
36643
|
-
}),
|
|
36644
|
-
|
|
36645
|
-
]),
|
|
36741
|
+
activeNodeRect: tG,
|
|
36742
|
+
containerNodeRect: nG,
|
|
36743
|
+
draggingNodeRect: sG,
|
|
36744
|
+
over: rG.current.over,
|
|
36745
|
+
overlayNodeRect: aG.rect,
|
|
36746
|
+
scrollableAncestors: dG,
|
|
36747
|
+
scrollableAncestorRects: fG,
|
|
36748
|
+
windowRect: uG
|
|
36749
|
+
}), mG = QW ? add(QW, O) : null, hG = useScrollOffsets(dG), gG = useScrollOffsetsDelta(hG), _G = useScrollOffsetsDelta(hG, [
|
|
36750
|
+
tG
|
|
36751
|
+
]), vG = add(pG, gG), yG = sG ? getAdjustedRect(sG, pG) : null, bG = L && yG ? f({
|
|
36646
36752
|
active: L,
|
|
36647
|
-
collisionRect:
|
|
36648
|
-
droppableRects:
|
|
36753
|
+
collisionRect: yG,
|
|
36754
|
+
droppableRects: JW,
|
|
36649
36755
|
droppableContainers: Z,
|
|
36650
|
-
pointerCoordinates:
|
|
36651
|
-
}) : null,
|
|
36756
|
+
pointerCoordinates: mG
|
|
36757
|
+
}) : null, xG = getFirstCollision(bG, "id"), [SG, CG] = (0, import_react.useState)(null), wG = adjustScale(cG ? pG : add(pG, _G), (SG == null ? void 0 : SG.rect) ?? null, tG), TG = (0, import_react.useRef)(null), EG = (0, import_react.useCallback)((e2, r2) => {
|
|
36652
36758
|
let { sensor: c2, options: l2 } = r2;
|
|
36653
36759
|
if (R.current == null) return;
|
|
36654
36760
|
let u2 = E.get(R.current);
|
|
36655
36761
|
if (!u2) return;
|
|
36656
36762
|
let d2 = e2.nativeEvent;
|
|
36657
|
-
|
|
36763
|
+
TG.current = new c2({
|
|
36658
36764
|
active: R.current,
|
|
36659
36765
|
activeNode: u2,
|
|
36660
36766
|
event: d2,
|
|
36661
36767
|
options: l2,
|
|
36662
|
-
context:
|
|
36768
|
+
context: rG,
|
|
36663
36769
|
onAbort(e3) {
|
|
36664
36770
|
if (!E.get(e3)) return;
|
|
36665
36771
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36704,7 +36810,7 @@ ${c}
|
|
|
36704
36810
|
}), v({
|
|
36705
36811
|
type: "onDragStart",
|
|
36706
36812
|
event: u3
|
|
36707
|
-
}), B(
|
|
36813
|
+
}), B(TG.current), W(d2);
|
|
36708
36814
|
});
|
|
36709
36815
|
},
|
|
36710
36816
|
onMove(e3) {
|
|
@@ -36718,7 +36824,7 @@ ${c}
|
|
|
36718
36824
|
});
|
|
36719
36825
|
function f2(e3) {
|
|
36720
36826
|
return async function() {
|
|
36721
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36827
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = rG.current, f3 = null;
|
|
36722
36828
|
if (r3 && u3) {
|
|
36723
36829
|
let { cancelDrop: p2 } = G.current;
|
|
36724
36830
|
f3 = {
|
|
@@ -36732,7 +36838,7 @@ ${c}
|
|
|
36732
36838
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36733
36839
|
_({
|
|
36734
36840
|
type: e3
|
|
36735
|
-
}), S(Status.Uninitialized),
|
|
36841
|
+
}), S(Status.Uninitialized), CG(null), B(null), W(null), TG.current = null;
|
|
36736
36842
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36737
36843
|
if (f3) {
|
|
36738
36844
|
let e4 = G.current[r4];
|
|
@@ -36746,7 +36852,7 @@ ${c}
|
|
|
36746
36852
|
}
|
|
36747
36853
|
}, [
|
|
36748
36854
|
E
|
|
36749
|
-
]),
|
|
36855
|
+
]), DG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36750
36856
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36751
36857
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36752
36858
|
let f2 = {
|
|
@@ -36754,26 +36860,26 @@ ${c}
|
|
|
36754
36860
|
};
|
|
36755
36861
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36756
36862
|
capturedBy: r2.sensor
|
|
36757
|
-
}, R.current = l2,
|
|
36863
|
+
}, R.current = l2, EG(c2, r2));
|
|
36758
36864
|
}, [
|
|
36759
36865
|
E,
|
|
36760
|
-
|
|
36866
|
+
EG
|
|
36761
36867
|
]));
|
|
36762
36868
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36763
|
-
|
|
36869
|
+
tG && b === Status.Initializing && S(Status.Initialized);
|
|
36764
36870
|
}, [
|
|
36765
|
-
|
|
36871
|
+
tG,
|
|
36766
36872
|
b
|
|
36767
36873
|
]), (0, import_react.useEffect)(() => {
|
|
36768
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36874
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = rG.current;
|
|
36769
36875
|
if (!r2 || !c2) return;
|
|
36770
36876
|
let d2 = {
|
|
36771
36877
|
active: r2,
|
|
36772
36878
|
activatorEvent: c2,
|
|
36773
36879
|
collisions: l2,
|
|
36774
36880
|
delta: {
|
|
36775
|
-
x:
|
|
36776
|
-
y:
|
|
36881
|
+
x: vG.x,
|
|
36882
|
+
y: vG.y
|
|
36777
36883
|
},
|
|
36778
36884
|
over: u2
|
|
36779
36885
|
};
|
|
@@ -36784,12 +36890,12 @@ ${c}
|
|
|
36784
36890
|
});
|
|
36785
36891
|
});
|
|
36786
36892
|
}, [
|
|
36787
|
-
|
|
36788
|
-
|
|
36893
|
+
vG.x,
|
|
36894
|
+
vG.y
|
|
36789
36895
|
]), (0, import_react.useEffect)(() => {
|
|
36790
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36896
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = rG.current;
|
|
36791
36897
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36792
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36898
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(xG), p2 = f2 && f2.rect.current ? {
|
|
36793
36899
|
id: f2.id,
|
|
36794
36900
|
rect: f2.rect.current,
|
|
36795
36901
|
data: f2.data,
|
|
@@ -36805,127 +36911,127 @@ ${c}
|
|
|
36805
36911
|
over: p2
|
|
36806
36912
|
};
|
|
36807
36913
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36808
|
-
|
|
36914
|
+
CG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36809
36915
|
type: "onDragOver",
|
|
36810
36916
|
event: m2
|
|
36811
36917
|
});
|
|
36812
36918
|
});
|
|
36813
36919
|
}, [
|
|
36814
|
-
|
|
36920
|
+
xG
|
|
36815
36921
|
]), useIsomorphicLayoutEffect(() => {
|
|
36816
|
-
|
|
36922
|
+
rG.current = {
|
|
36817
36923
|
activatorEvent: H,
|
|
36818
36924
|
active: L,
|
|
36819
|
-
activeNode:
|
|
36820
|
-
collisionRect:
|
|
36821
|
-
collisions:
|
|
36822
|
-
droppableRects:
|
|
36925
|
+
activeNode: ZW,
|
|
36926
|
+
collisionRect: yG,
|
|
36927
|
+
collisions: bG,
|
|
36928
|
+
droppableRects: JW,
|
|
36823
36929
|
draggableNodes: E,
|
|
36824
|
-
draggingNode:
|
|
36825
|
-
draggingNodeRect:
|
|
36930
|
+
draggingNode: oG,
|
|
36931
|
+
draggingNodeRect: sG,
|
|
36826
36932
|
droppableContainers: j,
|
|
36827
|
-
over:
|
|
36828
|
-
scrollableAncestors:
|
|
36829
|
-
scrollAdjustedTranslate:
|
|
36933
|
+
over: SG,
|
|
36934
|
+
scrollableAncestors: dG,
|
|
36935
|
+
scrollAdjustedTranslate: vG
|
|
36830
36936
|
}, I.current = {
|
|
36831
|
-
initial:
|
|
36832
|
-
translated:
|
|
36937
|
+
initial: sG,
|
|
36938
|
+
translated: yG
|
|
36833
36939
|
};
|
|
36834
36940
|
}, [
|
|
36835
36941
|
L,
|
|
36836
|
-
|
|
36837
|
-
|
|
36838
|
-
|
|
36942
|
+
ZW,
|
|
36943
|
+
bG,
|
|
36944
|
+
yG,
|
|
36839
36945
|
E,
|
|
36840
|
-
|
|
36841
|
-
|
|
36842
|
-
|
|
36946
|
+
oG,
|
|
36947
|
+
sG,
|
|
36948
|
+
JW,
|
|
36843
36949
|
j,
|
|
36844
|
-
|
|
36845
|
-
|
|
36846
|
-
|
|
36950
|
+
SG,
|
|
36951
|
+
dG,
|
|
36952
|
+
vG
|
|
36847
36953
|
]), useAutoScroller({
|
|
36848
|
-
|
|
36954
|
+
...$W,
|
|
36849
36955
|
delta: O,
|
|
36850
|
-
draggingRect:
|
|
36851
|
-
pointerCoordinates:
|
|
36852
|
-
scrollableAncestors:
|
|
36853
|
-
scrollableAncestorRects:
|
|
36956
|
+
draggingRect: yG,
|
|
36957
|
+
pointerCoordinates: mG,
|
|
36958
|
+
scrollableAncestors: dG,
|
|
36959
|
+
scrollableAncestorRects: fG
|
|
36854
36960
|
});
|
|
36855
|
-
let
|
|
36961
|
+
let OG = (0, import_react.useMemo)(() => ({
|
|
36856
36962
|
active: L,
|
|
36857
|
-
activeNode:
|
|
36858
|
-
activeNodeRect:
|
|
36963
|
+
activeNode: ZW,
|
|
36964
|
+
activeNodeRect: tG,
|
|
36859
36965
|
activatorEvent: H,
|
|
36860
|
-
collisions:
|
|
36861
|
-
containerNodeRect:
|
|
36862
|
-
dragOverlay:
|
|
36966
|
+
collisions: bG,
|
|
36967
|
+
containerNodeRect: nG,
|
|
36968
|
+
dragOverlay: aG,
|
|
36863
36969
|
draggableNodes: E,
|
|
36864
36970
|
droppableContainers: j,
|
|
36865
|
-
droppableRects:
|
|
36866
|
-
over:
|
|
36867
|
-
measureDroppableContainers:
|
|
36868
|
-
scrollableAncestors:
|
|
36869
|
-
scrollableAncestorRects:
|
|
36870
|
-
measuringConfiguration:
|
|
36871
|
-
measuringScheduled:
|
|
36872
|
-
windowRect:
|
|
36971
|
+
droppableRects: JW,
|
|
36972
|
+
over: SG,
|
|
36973
|
+
measureDroppableContainers: YW,
|
|
36974
|
+
scrollableAncestors: dG,
|
|
36975
|
+
scrollableAncestorRects: fG,
|
|
36976
|
+
measuringConfiguration: qW,
|
|
36977
|
+
measuringScheduled: XW,
|
|
36978
|
+
windowRect: uG
|
|
36873
36979
|
}), [
|
|
36874
36980
|
L,
|
|
36875
|
-
|
|
36876
|
-
|
|
36981
|
+
ZW,
|
|
36982
|
+
tG,
|
|
36877
36983
|
H,
|
|
36878
|
-
|
|
36879
|
-
|
|
36880
|
-
|
|
36984
|
+
bG,
|
|
36985
|
+
nG,
|
|
36986
|
+
aG,
|
|
36881
36987
|
E,
|
|
36882
36988
|
j,
|
|
36883
|
-
|
|
36884
|
-
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36888
|
-
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
|
-
]),
|
|
36989
|
+
JW,
|
|
36990
|
+
SG,
|
|
36991
|
+
YW,
|
|
36992
|
+
dG,
|
|
36993
|
+
fG,
|
|
36994
|
+
qW,
|
|
36995
|
+
XW,
|
|
36996
|
+
uG
|
|
36997
|
+
]), kG = (0, import_react.useMemo)(() => ({
|
|
36892
36998
|
activatorEvent: H,
|
|
36893
|
-
activators:
|
|
36999
|
+
activators: DG,
|
|
36894
37000
|
active: L,
|
|
36895
|
-
activeNodeRect:
|
|
37001
|
+
activeNodeRect: tG,
|
|
36896
37002
|
ariaDescribedById: {
|
|
36897
37003
|
draggable: q
|
|
36898
37004
|
},
|
|
36899
37005
|
dispatch: _,
|
|
36900
37006
|
draggableNodes: E,
|
|
36901
|
-
over:
|
|
36902
|
-
measureDroppableContainers:
|
|
37007
|
+
over: SG,
|
|
37008
|
+
measureDroppableContainers: YW
|
|
36903
37009
|
}), [
|
|
36904
37010
|
H,
|
|
36905
|
-
|
|
37011
|
+
DG,
|
|
36906
37012
|
L,
|
|
36907
|
-
|
|
37013
|
+
tG,
|
|
36908
37014
|
_,
|
|
36909
37015
|
q,
|
|
36910
37016
|
E,
|
|
36911
|
-
|
|
36912
|
-
|
|
37017
|
+
SG,
|
|
37018
|
+
YW
|
|
36913
37019
|
]);
|
|
36914
37020
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36915
37021
|
value: y
|
|
36916
37022
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36917
|
-
value:
|
|
37023
|
+
value: kG
|
|
36918
37024
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36919
|
-
value:
|
|
37025
|
+
value: OG
|
|
36920
37026
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36921
|
-
value:
|
|
37027
|
+
value: wG
|
|
36922
37028
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36923
37029
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36924
37030
|
})), import_react.createElement(Accessibility, {
|
|
36925
37031
|
...c,
|
|
36926
37032
|
hiddenTextDescribedById: q
|
|
36927
37033
|
}));
|
|
36928
|
-
function
|
|
37034
|
+
function AG() {
|
|
36929
37035
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36930
37036
|
return typeof l == "object" ? {
|
|
36931
37037
|
...l,
|
|
@@ -37453,7 +37559,7 @@ ${c}
|
|
|
37453
37559
|
updateMeasurementsFor: I,
|
|
37454
37560
|
...m
|
|
37455
37561
|
}
|
|
37456
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37562
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: qW, isDragging: JW, over: YW, setActivatorNodeRef: XW, transform: ZW } = useDraggable({
|
|
37457
37563
|
id: f,
|
|
37458
37564
|
data: M,
|
|
37459
37565
|
attributes: {
|
|
@@ -37461,60 +37567,60 @@ ${c}
|
|
|
37461
37567
|
...c
|
|
37462
37568
|
},
|
|
37463
37569
|
disabled: O.draggable
|
|
37464
|
-
}),
|
|
37570
|
+
}), QW = useCombinedRefs(B, Z), $W = !!H, eG = $W && !b && isValidIndex(v) && isValidIndex(w), tG = !T && JW, nG = eG ? (tG && eG ? ZW : null) ?? (p ?? E)({
|
|
37465
37571
|
rects: S,
|
|
37466
37572
|
activeNodeRect: G,
|
|
37467
37573
|
activeIndex: v,
|
|
37468
37574
|
overIndex: w,
|
|
37469
37575
|
index: j
|
|
37470
|
-
}) : null,
|
|
37576
|
+
}) : null, rG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37471
37577
|
id: f,
|
|
37472
37578
|
items: g,
|
|
37473
37579
|
activeIndex: v,
|
|
37474
37580
|
overIndex: w
|
|
37475
|
-
}) : j,
|
|
37476
|
-
activeId:
|
|
37581
|
+
}) : j, iG = H == null ? void 0 : H.id, aG = (0, import_react.useRef)({
|
|
37582
|
+
activeId: iG,
|
|
37477
37583
|
items: g,
|
|
37478
|
-
newIndex:
|
|
37584
|
+
newIndex: rG,
|
|
37479
37585
|
containerId: _
|
|
37480
|
-
}),
|
|
37586
|
+
}), oG = g !== aG.current.items, sG = r({
|
|
37481
37587
|
active: H,
|
|
37482
37588
|
containerId: _,
|
|
37483
|
-
isDragging:
|
|
37484
|
-
isSorting:
|
|
37589
|
+
isDragging: JW,
|
|
37590
|
+
isSorting: $W,
|
|
37485
37591
|
id: f,
|
|
37486
37592
|
index: j,
|
|
37487
37593
|
items: g,
|
|
37488
|
-
newIndex:
|
|
37489
|
-
previousItems:
|
|
37490
|
-
previousContainerId:
|
|
37594
|
+
newIndex: aG.current.newIndex,
|
|
37595
|
+
previousItems: aG.current.items,
|
|
37596
|
+
previousContainerId: aG.current.containerId,
|
|
37491
37597
|
transition: h,
|
|
37492
|
-
wasDragging:
|
|
37493
|
-
}),
|
|
37494
|
-
disabled: !
|
|
37598
|
+
wasDragging: aG.current.activeId != null
|
|
37599
|
+
}), cG = useDerivedTransform({
|
|
37600
|
+
disabled: !sG,
|
|
37495
37601
|
index: j,
|
|
37496
37602
|
node: R,
|
|
37497
37603
|
rect: L
|
|
37498
37604
|
});
|
|
37499
37605
|
return (0, import_react.useEffect)(() => {
|
|
37500
|
-
|
|
37606
|
+
$W && aG.current.newIndex !== rG && (aG.current.newIndex = rG), _ !== aG.current.containerId && (aG.current.containerId = _), g !== aG.current.items && (aG.current.items = g);
|
|
37501
37607
|
}, [
|
|
37502
|
-
|
|
37503
|
-
|
|
37608
|
+
$W,
|
|
37609
|
+
rG,
|
|
37504
37610
|
_,
|
|
37505
37611
|
g
|
|
37506
37612
|
]), (0, import_react.useEffect)(() => {
|
|
37507
|
-
if (
|
|
37508
|
-
if (
|
|
37509
|
-
|
|
37613
|
+
if (iG === aG.current.activeId) return;
|
|
37614
|
+
if (iG != null && aG.current.activeId == null) {
|
|
37615
|
+
aG.current.activeId = iG;
|
|
37510
37616
|
return;
|
|
37511
37617
|
}
|
|
37512
37618
|
let e2 = setTimeout(() => {
|
|
37513
|
-
|
|
37619
|
+
aG.current.activeId = iG;
|
|
37514
37620
|
}, 50);
|
|
37515
37621
|
return () => clearTimeout(e2);
|
|
37516
37622
|
}, [
|
|
37517
|
-
|
|
37623
|
+
iG
|
|
37518
37624
|
]), {
|
|
37519
37625
|
active: H,
|
|
37520
37626
|
activeIndex: v,
|
|
@@ -37522,25 +37628,25 @@ ${c}
|
|
|
37522
37628
|
data: M,
|
|
37523
37629
|
rect: L,
|
|
37524
37630
|
index: j,
|
|
37525
|
-
newIndex:
|
|
37631
|
+
newIndex: rG,
|
|
37526
37632
|
items: g,
|
|
37527
37633
|
isOver: z,
|
|
37528
|
-
isSorting:
|
|
37529
|
-
isDragging:
|
|
37530
|
-
listeners:
|
|
37634
|
+
isSorting: $W,
|
|
37635
|
+
isDragging: JW,
|
|
37636
|
+
listeners: qW,
|
|
37531
37637
|
node: R,
|
|
37532
37638
|
overIndex: w,
|
|
37533
|
-
over:
|
|
37534
|
-
setNodeRef:
|
|
37535
|
-
setActivatorNodeRef:
|
|
37639
|
+
over: YW,
|
|
37640
|
+
setNodeRef: QW,
|
|
37641
|
+
setActivatorNodeRef: XW,
|
|
37536
37642
|
setDroppableNodeRef: B,
|
|
37537
37643
|
setDraggableNodeRef: Z,
|
|
37538
|
-
transform:
|
|
37539
|
-
transition:
|
|
37644
|
+
transform: cG ?? nG,
|
|
37645
|
+
transition: lG()
|
|
37540
37646
|
};
|
|
37541
|
-
function
|
|
37542
|
-
if (
|
|
37543
|
-
if (!(
|
|
37647
|
+
function lG() {
|
|
37648
|
+
if (cG || oG && aG.current.newIndex === j) return disabledTransition;
|
|
37649
|
+
if (!(tG && !isKeyboardEvent(W) || !h) && ($W || sG)) return CSS$1.Transition.toString({
|
|
37544
37650
|
...h,
|
|
37545
37651
|
property: transitionProperty
|
|
37546
37652
|
});
|
|
@@ -37842,13 +37948,13 @@ ${c}
|
|
|
37842
37948
|
}), 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
37949
|
let Z = q;
|
|
37844
37950
|
if (!v && !g) return Z;
|
|
37845
|
-
let
|
|
37846
|
-
r[46] === Z ?
|
|
37951
|
+
let qW;
|
|
37952
|
+
r[46] === Z ? qW = r[47] : (qW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37847
37953
|
asChild: true,
|
|
37848
37954
|
children: Z
|
|
37849
|
-
}), r[46] = Z, r[47] =
|
|
37850
|
-
let
|
|
37851
|
-
r[48] === v ?
|
|
37955
|
+
}), r[46] = Z, r[47] = qW);
|
|
37956
|
+
let JW;
|
|
37957
|
+
r[48] === v ? JW = r[49] : (JW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37852
37958
|
onSelect: v,
|
|
37853
37959
|
children: [
|
|
37854
37960
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37856,11 +37962,11 @@ ${c}
|
|
|
37856
37962
|
}),
|
|
37857
37963
|
"Add cell"
|
|
37858
37964
|
]
|
|
37859
|
-
}), r[48] = v, r[49] =
|
|
37860
|
-
let
|
|
37861
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37862
|
-
let
|
|
37863
|
-
r[51] === g ?
|
|
37965
|
+
}), r[48] = v, r[49] = JW);
|
|
37966
|
+
let YW;
|
|
37967
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (YW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = YW) : YW = r[50];
|
|
37968
|
+
let XW;
|
|
37969
|
+
r[51] === g ? XW = r[52] : (XW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37864
37970
|
variant: "danger",
|
|
37865
37971
|
onSelect: g,
|
|
37866
37972
|
children: [
|
|
@@ -37869,22 +37975,22 @@ ${c}
|
|
|
37869
37975
|
}),
|
|
37870
37976
|
"Delete cell"
|
|
37871
37977
|
]
|
|
37872
|
-
}), r[51] = g, r[52] =
|
|
37873
|
-
let
|
|
37874
|
-
r[53] !==
|
|
37978
|
+
}), r[51] = g, r[52] = XW);
|
|
37979
|
+
let ZW;
|
|
37980
|
+
r[53] !== JW || r[54] !== XW ? (ZW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37875
37981
|
children: [
|
|
37876
|
-
|
|
37877
|
-
|
|
37878
|
-
|
|
37982
|
+
JW,
|
|
37983
|
+
YW,
|
|
37984
|
+
XW
|
|
37879
37985
|
]
|
|
37880
|
-
}), r[53] =
|
|
37881
|
-
let
|
|
37882
|
-
return r[56] !==
|
|
37986
|
+
}), r[53] = JW, r[54] = XW, r[55] = ZW) : ZW = r[55];
|
|
37987
|
+
let QW;
|
|
37988
|
+
return r[56] !== qW || r[57] !== ZW ? (QW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37883
37989
|
children: [
|
|
37884
|
-
|
|
37885
|
-
|
|
37990
|
+
qW,
|
|
37991
|
+
ZW
|
|
37886
37992
|
]
|
|
37887
|
-
}), r[56] =
|
|
37993
|
+
}), r[56] = qW, r[57] = ZW, r[58] = QW) : QW = r[58], QW;
|
|
37888
37994
|
}, InsertCellLine = (e) => {
|
|
37889
37995
|
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
37996
|
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 +38044,10 @@ ${c}
|
|
|
37938
38044
|
...B,
|
|
37939
38045
|
...m
|
|
37940
38046
|
}, 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 ? (
|
|
38047
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", qW = T && "opacity-95 shadow-lg", JW;
|
|
38048
|
+
r[25] !== l || r[26] !== Z || r[27] !== qW || r[28] !== q ? (JW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, qW, l), r[25] = l, r[26] = Z, r[27] = qW, r[28] = q, r[29] = JW) : JW = r[29];
|
|
38049
|
+
let YW;
|
|
38050
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (YW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37945
38051
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37946
38052
|
style: {
|
|
37947
38053
|
transform: `scale(${I})`,
|
|
@@ -37957,14 +38063,14 @@ ${c}
|
|
|
37957
38063
|
output: c.output,
|
|
37958
38064
|
stale: outputIsStale(c, false)
|
|
37959
38065
|
})
|
|
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 ?
|
|
38066
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = YW) : YW = r[36];
|
|
38067
|
+
let XW;
|
|
38068
|
+
r[37] === z ? XW = r[38] : (XW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37963
38069
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37964
38070
|
"aria-hidden": true
|
|
37965
|
-
}), r[37] = z, r[38] =
|
|
37966
|
-
let
|
|
37967
|
-
r[39] !== z || r[40] !== R ? (
|
|
38071
|
+
}), r[37] = z, r[38] = XW);
|
|
38072
|
+
let ZW;
|
|
38073
|
+
r[39] !== z || r[40] !== R ? (ZW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37968
38074
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37969
38075
|
className: "text-xs opacity-80",
|
|
37970
38076
|
children: R.description
|
|
@@ -37976,19 +38082,19 @@ ${c}
|
|
|
37976
38082
|
className: "h-3.5 w-3.5"
|
|
37977
38083
|
})
|
|
37978
38084
|
})
|
|
37979
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37980
|
-
let
|
|
37981
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38085
|
+
}), r[39] = z, r[40] = R, r[41] = ZW) : ZW = r[41];
|
|
38086
|
+
let QW;
|
|
38087
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== JW || r[46] !== YW || r[47] !== XW || r[48] !== ZW ? (QW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37982
38088
|
ref: f,
|
|
37983
|
-
className:
|
|
38089
|
+
className: JW,
|
|
37984
38090
|
style: W,
|
|
37985
38091
|
...d,
|
|
37986
38092
|
children: [
|
|
37987
|
-
|
|
37988
|
-
|
|
37989
|
-
|
|
38093
|
+
YW,
|
|
38094
|
+
XW,
|
|
38095
|
+
ZW
|
|
37990
38096
|
]
|
|
37991
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38097
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = JW, r[46] = YW, r[47] = XW, r[48] = ZW, r[49] = QW) : QW = r[49], QW;
|
|
37992
38098
|
}, MiniCodePreview = (e) => {
|
|
37993
38099
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37994
38100
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38028,7 +38134,7 @@ ${c}
|
|
|
38028
38134
|
function _temp2$2(e) {
|
|
38029
38135
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38030
38136
|
}
|
|
38031
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38137
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BxgX1LrU.js"));
|
|
38032
38138
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38033
38139
|
var _a5;
|
|
38034
38140
|
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 +38519,7 @@ ${c}
|
|
|
38413
38519
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38414
38520
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38415
38521
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38416
|
-
let H, W, G, q, Z,
|
|
38522
|
+
let H, W, G, q, Z, qW, JW, YW, XW, ZW;
|
|
38417
38523
|
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
38524
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38419
38525
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38459,11 +38565,11 @@ ${c}
|
|
|
38459
38565
|
})
|
|
38460
38566
|
})
|
|
38461
38567
|
]
|
|
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] !==
|
|
38568
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c, qW = R, JW = 0;
|
|
38569
|
+
let QW2 = y && "marimo-output-stale", $W2 = L ? "p-5" : "p-3";
|
|
38570
|
+
r[40] !== M || r[41] !== QW2 || r[42] !== $W2 ? (YW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", QW2, $W2, M), r[40] = M, r[41] = QW2, r[42] = $W2, r[43] = YW) : YW = r[43], r[44] === d ? XW = r[45] : (XW = d ? {
|
|
38465
38571
|
maxHeight: "none"
|
|
38466
|
-
} : void 0, r[44] = d, r[45] =
|
|
38572
|
+
} : void 0, r[44] = d, r[45] = XW), ZW = e2.map((e3, r2) => {
|
|
38467
38573
|
if (e3.channel === "pdb") return null;
|
|
38468
38574
|
if (e3.channel === "stdin") {
|
|
38469
38575
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38492,36 +38598,36 @@ ${c}
|
|
|
38492
38598
|
wrapText: l
|
|
38493
38599
|
})
|
|
38494
38600
|
}, 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 ? (
|
|
38601
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = qW, r[26] = JW, r[27] = YW, r[28] = XW, r[29] = ZW;
|
|
38602
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], qW = r[25], JW = r[26], YW = r[27], XW = r[28], ZW = r[29];
|
|
38603
|
+
let QW;
|
|
38604
|
+
r[46] !== w || r[47] !== S ? (QW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38499
38605
|
value: S,
|
|
38500
38606
|
cellId: w,
|
|
38501
38607
|
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] !==
|
|
38608
|
+
}), r[46] = w, r[47] = S, r[48] = QW) : QW = r[48];
|
|
38609
|
+
let $W;
|
|
38610
|
+
r[49] !== QW || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== qW || r[54] !== JW || r[55] !== YW || r[56] !== XW || r[57] !== ZW ? ($W = (0, import_jsx_runtime.jsxs)("div", {
|
|
38505
38611
|
title: G,
|
|
38506
38612
|
"data-testid": q,
|
|
38507
38613
|
ref: Z,
|
|
38508
|
-
...
|
|
38509
|
-
tabIndex:
|
|
38510
|
-
className:
|
|
38511
|
-
style:
|
|
38614
|
+
...qW,
|
|
38615
|
+
tabIndex: JW,
|
|
38616
|
+
className: YW,
|
|
38617
|
+
style: XW,
|
|
38512
38618
|
children: [
|
|
38513
|
-
|
|
38514
|
-
|
|
38619
|
+
ZW,
|
|
38620
|
+
QW
|
|
38515
38621
|
]
|
|
38516
|
-
}), r[49] =
|
|
38517
|
-
let
|
|
38518
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38622
|
+
}), r[49] = QW, r[50] = G, r[51] = q, r[52] = Z, r[53] = qW, r[54] = JW, r[55] = YW, r[56] = XW, r[57] = ZW, r[58] = $W) : $W = r[58];
|
|
38623
|
+
let eG;
|
|
38624
|
+
return r[59] !== H || r[60] !== W || r[61] !== $W ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38519
38625
|
className: H,
|
|
38520
38626
|
children: [
|
|
38521
38627
|
W,
|
|
38522
|
-
|
|
38628
|
+
$W
|
|
38523
38629
|
]
|
|
38524
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38630
|
+
}), r[59] = H, r[60] = W, r[61] = $W, r[62] = eG) : eG = r[62], eG;
|
|
38525
38631
|
}, StdInput = (e) => {
|
|
38526
38632
|
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
38633
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|