@marimo-team/islands 0.23.15-dev65 → 0.23.15-dev66
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-DVKeWdlc.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";
|
|
@@ -37,7 +37,7 @@ import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DQl7jVYK.js";
|
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DXlxsrTF.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
40
|
-
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-D0yOqoGe.js";
|
|
40
|
+
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, Z as withFullScreenAsRoot, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-D0yOqoGe.js";
|
|
41
41
|
import { i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-DR7o3CbX.js";
|
|
42
42
|
import { t as Label } from "./label-DIk0QoFe.js";
|
|
43
43
|
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-B-qh7UPB.js";
|
|
@@ -4416,102 +4416,116 @@ let __tla = Promise.all([
|
|
|
4416
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
4417
|
}
|
|
4418
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)(
|
|
4420
|
-
r[0] ===
|
|
4419
|
+
let r = (0, import_compiler_runtime$87.c)(23), { item: c, preserveQueryParams: l, target: u } = e, d = import_react.useRef(null), [f, p] = import_react.useState(false), m;
|
|
4420
|
+
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (e2) => p(e2 !== ""), r[0] = m) : m = r[0];
|
|
4421
|
+
let h;
|
|
4422
|
+
r[1] === c.label ? h = r[2] : (h = renderHTML({
|
|
4421
4423
|
html: c.label
|
|
4422
|
-
}), r[
|
|
4423
|
-
let
|
|
4424
|
-
r[
|
|
4424
|
+
}), r[1] = c.label, r[2] = h);
|
|
4425
|
+
let g;
|
|
4426
|
+
r[3] === h ? g = r[4] : (g = (0, import_jsx_runtime.jsx)(NavigationMenuTrigger, {
|
|
4425
4427
|
ref: d,
|
|
4426
|
-
children:
|
|
4427
|
-
}), r[
|
|
4428
|
-
let
|
|
4429
|
-
if (r[
|
|
4428
|
+
children: h
|
|
4429
|
+
}), r[3] = h, r[4] = g);
|
|
4430
|
+
let _;
|
|
4431
|
+
if (r[5] !== c.items || r[6] !== l || r[7] !== u) {
|
|
4430
4432
|
let e2;
|
|
4431
|
-
r[
|
|
4433
|
+
r[9] !== l || r[10] !== u ? (e2 = (e3) => (0, import_jsx_runtime.jsx)(ListItem, {
|
|
4432
4434
|
label: e3.label,
|
|
4433
4435
|
href: l(e3.href),
|
|
4434
4436
|
target: u(e3.href),
|
|
4435
4437
|
children: e3.description && renderHTML({
|
|
4436
4438
|
html: e3.description
|
|
4437
4439
|
})
|
|
4438
|
-
}, e3.label), r[
|
|
4439
|
-
} else
|
|
4440
|
-
let
|
|
4441
|
-
r[
|
|
4440
|
+
}, e3.label), r[9] = l, r[10] = u, r[11] = e2) : e2 = r[11], _ = c.items.map(e2), r[5] = c.items, r[6] = l, r[7] = u, r[8] = _;
|
|
4441
|
+
} else _ = r[8];
|
|
4442
|
+
let v;
|
|
4443
|
+
r[12] === _ ? v = r[13] : (v = (0, import_jsx_runtime.jsx)(NavigationMenuContent, {
|
|
4442
4444
|
className: "w-auto",
|
|
4443
4445
|
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
4444
4446
|
className: "grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",
|
|
4445
|
-
children:
|
|
4447
|
+
children: _
|
|
4446
4448
|
})
|
|
4447
|
-
}), r[
|
|
4448
|
-
let
|
|
4449
|
-
r[
|
|
4449
|
+
}), r[12] = _, r[13] = v);
|
|
4450
|
+
let y;
|
|
4451
|
+
r[14] !== g || r[15] !== v ? (y = (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
4450
4452
|
children: (0, import_jsx_runtime.jsxs)(NavigationMenuItem, {
|
|
4451
4453
|
children: [
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
+
g,
|
|
4455
|
+
v
|
|
4454
4456
|
]
|
|
4455
4457
|
})
|
|
4456
|
-
}), r[
|
|
4457
|
-
let
|
|
4458
|
-
r[
|
|
4458
|
+
}), r[14] = g, r[15] = v, r[16] = y) : y = r[16];
|
|
4459
|
+
let b;
|
|
4460
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (0, import_jsx_runtime.jsx)(NavigationMenuViewport, {}), r[17] = b) : b = r[17];
|
|
4461
|
+
let S;
|
|
4462
|
+
r[18] === f ? S = r[19] : (S = (0, import_jsx_runtime.jsx)(NavigationMenuViewportPortal, {
|
|
4459
4463
|
anchorRef: d,
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
+
open: f,
|
|
4465
|
+
children: b
|
|
4466
|
+
}), r[18] = f, r[19] = S);
|
|
4467
|
+
let w;
|
|
4468
|
+
return r[20] !== y || r[21] !== S ? (w = (0, import_jsx_runtime.jsxs)(Root2, {
|
|
4464
4469
|
className: "relative z-10 max-w-max flex-1 items-center justify-center",
|
|
4465
4470
|
orientation: "horizontal",
|
|
4471
|
+
onValueChange: m,
|
|
4466
4472
|
children: [
|
|
4467
|
-
|
|
4468
|
-
|
|
4473
|
+
y,
|
|
4474
|
+
S
|
|
4469
4475
|
]
|
|
4470
|
-
}), r[
|
|
4471
|
-
}, NavigationMenuViewportPortal = (e) => {
|
|
4472
|
-
let r = (0, import_compiler_runtime$87.c)(
|
|
4473
|
-
r[0] === c ?
|
|
4476
|
+
}), r[20] = y, r[21] = S, r[22] = w) : w = r[22], w;
|
|
4477
|
+
}, NavigationMenuPortal = withFullScreenAsRoot(({ container: e, children: r }) => (0, import_react_dom$2.createPortal)(r, e ?? document.body)), VIEWPORT_MARGIN = 8, NavigationMenuViewportPortal = (e) => {
|
|
4478
|
+
let r = (0, import_compiler_runtime$87.c)(18), { anchorRef: c, open: l, children: u } = e, [d, f] = import_react.useState(null), p = import_react.useRef(null), m;
|
|
4479
|
+
r[0] === c ? m = r[1] : (m = () => {
|
|
4480
|
+
var _a5, _b3;
|
|
4474
4481
|
if (!c.current) return;
|
|
4475
|
-
let e2 = c.current.getBoundingClientRect();
|
|
4476
|
-
|
|
4477
|
-
left: e2.left,
|
|
4482
|
+
let e2 = c.current.getBoundingClientRect(), r2 = ((_b3 = (_a5 = p.current) == null ? void 0 : _a5.firstElementChild) == null ? void 0 : _b3.scrollWidth) ?? 0, l2 = window.innerWidth - r2 - VIEWPORT_MARGIN;
|
|
4483
|
+
f({
|
|
4484
|
+
left: Math.max(VIEWPORT_MARGIN, Math.min(e2.left, l2)),
|
|
4478
4485
|
top: e2.bottom
|
|
4479
4486
|
});
|
|
4480
|
-
}, r[0] = c, r[1] =
|
|
4481
|
-
let
|
|
4482
|
-
r[2]
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4487
|
+
}, r[0] = c, r[1] = m);
|
|
4488
|
+
let h = m, g, _;
|
|
4489
|
+
r[2] !== l || r[3] !== h ? (g = () => {
|
|
4490
|
+
if (h(), l) {
|
|
4491
|
+
let e2 = requestAnimationFrame(h);
|
|
4492
|
+
return () => cancelAnimationFrame(e2);
|
|
4493
|
+
}
|
|
4494
|
+
}, _ = [
|
|
4495
|
+
l,
|
|
4496
|
+
h
|
|
4497
|
+
], r[2] = l, r[3] = h, r[4] = g, r[5] = _) : (g = r[4], _ = r[5]), import_react.useLayoutEffect(g, _);
|
|
4498
|
+
let v;
|
|
4499
|
+
r[6] !== c || r[7] !== h ? (v = {
|
|
4489
4500
|
ref: c,
|
|
4490
|
-
onResize:
|
|
4491
|
-
}, r[
|
|
4492
|
-
let
|
|
4493
|
-
if (r[
|
|
4494
|
-
if (!(typeof window > "u")) return window.addEventListener("resize",
|
|
4501
|
+
onResize: h
|
|
4502
|
+
}, r[6] = c, r[7] = h, r[8] = v) : v = r[8], useResizeObserver$2(v);
|
|
4503
|
+
let y, b;
|
|
4504
|
+
if (r[9] === h ? (y = r[10], b = r[11]) : (y = () => {
|
|
4505
|
+
if (!(typeof window > "u")) return window.addEventListener("resize", h), document.addEventListener("scroll", h, {
|
|
4495
4506
|
capture: true
|
|
4496
4507
|
}), () => {
|
|
4497
|
-
window.removeEventListener("resize",
|
|
4508
|
+
window.removeEventListener("resize", h), document.removeEventListener("scroll", h, {
|
|
4498
4509
|
capture: true
|
|
4499
4510
|
});
|
|
4500
4511
|
};
|
|
4501
|
-
},
|
|
4502
|
-
|
|
4503
|
-
], r[
|
|
4504
|
-
let
|
|
4505
|
-
r[
|
|
4506
|
-
left:
|
|
4507
|
-
top:
|
|
4508
|
-
}, r[
|
|
4509
|
-
let
|
|
4510
|
-
return r[
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4512
|
+
}, b = [
|
|
4513
|
+
h
|
|
4514
|
+
], r[9] = h, r[10] = y, r[11] = b), import_react.useEffect(y, b), !d || typeof document > "u") return null;
|
|
4515
|
+
let S;
|
|
4516
|
+
r[12] !== d.left || r[13] !== d.top ? (S = {
|
|
4517
|
+
left: d.left,
|
|
4518
|
+
top: d.top
|
|
4519
|
+
}, r[12] = d.left, r[13] = d.top, r[14] = S) : S = r[14];
|
|
4520
|
+
let w;
|
|
4521
|
+
return r[15] !== u || r[16] !== S ? (w = (0, import_jsx_runtime.jsx)(NavigationMenuPortal, {
|
|
4522
|
+
children: (0, import_jsx_runtime.jsx)("div", {
|
|
4523
|
+
ref: p,
|
|
4524
|
+
className: "fixed z-50",
|
|
4525
|
+
style: S,
|
|
4526
|
+
children: u
|
|
4527
|
+
})
|
|
4528
|
+
}), r[15] = u, r[16] = S, r[17] = w) : w = r[17], w;
|
|
4515
4529
|
}, NavigationMenuPlugin = class {
|
|
4516
4530
|
constructor() {
|
|
4517
4531
|
__publicField(this, "tagName", "marimo-nav-menu");
|
|
@@ -4620,14 +4634,17 @@ let __tla = Promise.all([
|
|
|
4620
4634
|
}), c[11] = l, c[12] = _);
|
|
4621
4635
|
let v;
|
|
4622
4636
|
return c[13] !== f || c[14] !== r || c[15] !== p || c[16] !== g || c[17] !== _ ? (v = (0, import_jsx_runtime.jsx)("li", {
|
|
4623
|
-
children: (0, import_jsx_runtime.
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4637
|
+
children: (0, import_jsx_runtime.jsx)(NavigationMenuLink, {
|
|
4638
|
+
asChild: true,
|
|
4639
|
+
children: (0, import_jsx_runtime.jsxs)("a", {
|
|
4640
|
+
ref: r,
|
|
4641
|
+
className: p,
|
|
4642
|
+
...f,
|
|
4643
|
+
children: [
|
|
4644
|
+
g,
|
|
4645
|
+
_
|
|
4646
|
+
]
|
|
4647
|
+
})
|
|
4631
4648
|
})
|
|
4632
4649
|
}), c[13] = f, c[14] = r, c[15] = p, c[16] = g, c[17] = _, c[18] = v) : v = c[18], v;
|
|
4633
4650
|
});
|
|
@@ -7508,21 +7525,21 @@ let __tla = Promise.all([
|
|
|
7508
7525
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
7509
7526
|
column: 0,
|
|
7510
7527
|
row: 0
|
|
7511
|
-
}),
|
|
7512
|
-
Y(x(b, $(
|
|
7513
|
-
D(
|
|
7514
|
-
}), Y(x(ut(b,
|
|
7515
|
-
D(
|
|
7528
|
+
}), QW = U(), $W = U(), eG = C(false), tG = C(0), nG = C(true), rG = C(false), iG = C(false);
|
|
7529
|
+
Y(x(b, $(tG), P(([e2, r2]) => !!r2)), () => {
|
|
7530
|
+
D(nG, false);
|
|
7531
|
+
}), Y(x(ut(b, nG, B, z, tG, rG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7532
|
+
D(rG, true), Ue(1, () => {
|
|
7516
7533
|
D(H, e2);
|
|
7517
7534
|
}), Et(x(h), () => {
|
|
7518
7535
|
D(r, [
|
|
7519
7536
|
0,
|
|
7520
7537
|
0
|
|
7521
|
-
]), D(
|
|
7538
|
+
]), D(nG, true);
|
|
7522
7539
|
});
|
|
7523
|
-
}), F(x(
|
|
7524
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(
|
|
7525
|
-
D(
|
|
7540
|
+
}), F(x($W, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $($W), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7541
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(eG, true), Et(x(h, Kt(1)), (e3) => {
|
|
7542
|
+
D(eG, false);
|
|
7526
7543
|
}), D(m, {
|
|
7527
7544
|
top: e2.scrollTop
|
|
7528
7545
|
})));
|
|
@@ -7531,7 +7548,7 @@ let __tla = Promise.all([
|
|
|
7531
7548
|
item: r2,
|
|
7532
7549
|
scrollTop: l2,
|
|
7533
7550
|
viewport: e2
|
|
7534
|
-
}))),
|
|
7551
|
+
}))), QW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(eG), V(nG), V(tG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7535
7552
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7536
7553
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7537
7554
|
if (y2 === 0) {
|
|
@@ -7557,16 +7574,16 @@ let __tla = Promise.all([
|
|
|
7557
7574
|
u2
|
|
7558
7575
|
];
|
|
7559
7576
|
}), J(ce)), r);
|
|
7560
|
-
let
|
|
7561
|
-
F(x(h, $(
|
|
7562
|
-
let
|
|
7577
|
+
let aG = C(false);
|
|
7578
|
+
F(x(h, $(aG), k(([e2, r2]) => r2 || e2 !== 0)), aG);
|
|
7579
|
+
let oG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(aG), P(([[e2, r2], c2]) => {
|
|
7563
7580
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7564
7581
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7565
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7582
|
+
}), k(([[, e2]]) => e2 - 1), J())), sG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), cG = bt(x(V(R), $(eG), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7566
7583
|
endIndex: e2[e2.length - 1].index,
|
|
7567
7584
|
startIndex: e2[0].index
|
|
7568
7585
|
})), J(An), Gt(0)));
|
|
7569
|
-
F(
|
|
7586
|
+
F(cG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
7570
7587
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7571
7588
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7572
7589
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7575,7 +7592,7 @@ let __tla = Promise.all([
|
|
|
7575
7592
|
top: g2
|
|
7576
7593
|
};
|
|
7577
7594
|
})), m);
|
|
7578
|
-
let
|
|
7595
|
+
let lG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7579
7596
|
return F(x(j, k((e2) => ({
|
|
7580
7597
|
height: e2.visibleHeight,
|
|
7581
7598
|
width: e2.visibleWidth
|
|
@@ -7590,7 +7607,7 @@ let __tla = Promise.all([
|
|
|
7590
7607
|
initialItemCount: L,
|
|
7591
7608
|
itemDimensions: B,
|
|
7592
7609
|
overscan: c,
|
|
7593
|
-
restoreStateFrom:
|
|
7610
|
+
restoreStateFrom: $W,
|
|
7594
7611
|
scrollBy: f,
|
|
7595
7612
|
scrollContainerState: p,
|
|
7596
7613
|
scrollHeight: W,
|
|
@@ -7606,16 +7623,16 @@ let __tla = Promise.all([
|
|
|
7606
7623
|
windowViewportRect: j,
|
|
7607
7624
|
...y,
|
|
7608
7625
|
gridState: R,
|
|
7609
|
-
horizontalDirection:
|
|
7610
|
-
initialTopMostItemIndex:
|
|
7611
|
-
totalListHeight:
|
|
7626
|
+
horizontalDirection: iG,
|
|
7627
|
+
initialTopMostItemIndex: tG,
|
|
7628
|
+
totalListHeight: lG,
|
|
7612
7629
|
...v,
|
|
7613
|
-
endReached:
|
|
7630
|
+
endReached: oG,
|
|
7614
7631
|
propsReady: S,
|
|
7615
|
-
rangeChanged:
|
|
7616
|
-
startReached:
|
|
7617
|
-
stateChanged:
|
|
7618
|
-
stateRestoreInProgress:
|
|
7632
|
+
rangeChanged: cG,
|
|
7633
|
+
startReached: sG,
|
|
7634
|
+
stateChanged: QW,
|
|
7635
|
+
stateRestoreInProgress: eG,
|
|
7619
7636
|
...M
|
|
7620
7637
|
};
|
|
7621
7638
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7893,22 +7910,22 @@ let __tla = Promise.all([
|
|
|
7893
7910
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7894
7911
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7895
7912
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7896
|
-
let Z = q,
|
|
7913
|
+
let Z = q, QW;
|
|
7897
7914
|
if (r[13] !== G.bulkActions) {
|
|
7898
|
-
if (
|
|
7915
|
+
if (QW = G.bulkActions.map(_temp$27), QW.length > 0) {
|
|
7899
7916
|
let e2;
|
|
7900
7917
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7901
7918
|
"data-slot": "select-separator"
|
|
7902
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7919
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], QW.push(e2);
|
|
7903
7920
|
}
|
|
7904
|
-
r[13] = G.bulkActions, r[14] =
|
|
7905
|
-
} else
|
|
7906
|
-
let
|
|
7907
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7921
|
+
r[13] = G.bulkActions, r[14] = QW;
|
|
7922
|
+
} else QW = r[14];
|
|
7923
|
+
let $W;
|
|
7924
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? ($W = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7908
7925
|
"data-slot": "select-separator"
|
|
7909
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7910
|
-
let
|
|
7911
|
-
r[19] !==
|
|
7926
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = $W) : $W = r[18];
|
|
7927
|
+
let eG = $W, tG;
|
|
7928
|
+
r[19] !== QW || r[20] !== G || r[21] !== eG || r[22] !== w || r[23] !== B || r[24] !== H ? (tG = () => {
|
|
7912
7929
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7913
7930
|
"data-slot": "select-list",
|
|
7914
7931
|
style: {
|
|
@@ -7920,8 +7937,8 @@ let __tla = Promise.all([
|
|
|
7920
7937
|
let r2 = G.visibleOptions[e3];
|
|
7921
7938
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7922
7939
|
children: [
|
|
7923
|
-
e3 === 0 &&
|
|
7924
|
-
|
|
7940
|
+
e3 === 0 && QW,
|
|
7941
|
+
eG(e3),
|
|
7925
7942
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7926
7943
|
option: r2,
|
|
7927
7944
|
checked: G.isChecked(r2.value),
|
|
@@ -7932,7 +7949,7 @@ let __tla = Promise.all([
|
|
|
7932
7949
|
}
|
|
7933
7950
|
});
|
|
7934
7951
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7935
|
-
let c2 =
|
|
7952
|
+
let c2 = eG(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7936
7953
|
option: e3,
|
|
7937
7954
|
checked: G.isChecked(e3.value),
|
|
7938
7955
|
renderOption: w
|
|
@@ -7946,13 +7963,13 @@ let __tla = Promise.all([
|
|
|
7946
7963
|
});
|
|
7947
7964
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7948
7965
|
children: [
|
|
7949
|
-
|
|
7966
|
+
QW,
|
|
7950
7967
|
e2
|
|
7951
7968
|
]
|
|
7952
7969
|
});
|
|
7953
|
-
}, r[19] =
|
|
7954
|
-
let
|
|
7955
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7970
|
+
}, r[19] = QW, r[20] = G, r[21] = eG, r[22] = w, r[23] = B, r[24] = H, r[25] = tG) : tG = r[25];
|
|
7971
|
+
let nG = tG, rG;
|
|
7972
|
+
r[26] !== G.labelOf || r[27] !== I ? (rG = (e2) => {
|
|
7956
7973
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7957
7974
|
e2
|
|
7958
7975
|
];
|
|
@@ -7963,46 +7980,46 @@ let __tla = Promise.all([
|
|
|
7963
7980
|
items: r2.map(G.labelOf),
|
|
7964
7981
|
max: 3
|
|
7965
7982
|
});
|
|
7966
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7967
|
-
let
|
|
7968
|
-
r[29] === G ?
|
|
7969
|
-
let
|
|
7970
|
-
r[31] !== b || r[32] !== R ? (
|
|
7983
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = rG) : rG = r[28];
|
|
7984
|
+
let iG = rG, aG = e["data-testid"], oG;
|
|
7985
|
+
r[29] === G ? oG = r[30] : (oG = (e2) => G.labelOf(e2), r[29] = G, r[30] = oG);
|
|
7986
|
+
let sG = M ? iG : void 0, cG;
|
|
7987
|
+
r[31] !== b || r[32] !== R ? (cG = cn({
|
|
7971
7988
|
"w-full": R
|
|
7972
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7973
|
-
let
|
|
7974
|
-
r[34] === z ?
|
|
7975
|
-
let
|
|
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] !==
|
|
7989
|
+
}, b), r[31] = b, r[32] = R, r[33] = cG) : cG = r[33];
|
|
7990
|
+
let lG = G.searchQuery, uG = G.setSearchQuery, dG = G.open, fG = G.setOpen, pG;
|
|
7991
|
+
r[34] === z ? pG = r[35] : (pG = renderSlot(z), r[34] = z, r[35] = pG);
|
|
7992
|
+
let mG;
|
|
7993
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== aG || r[44] !== oG || r[45] !== sG || r[46] !== cG || r[47] !== pG ? (mG = {
|
|
7977
7994
|
"data-slot": "select-root",
|
|
7978
|
-
"data-testid":
|
|
7979
|
-
displayValue:
|
|
7980
|
-
renderValue:
|
|
7995
|
+
"data-testid": aG,
|
|
7996
|
+
displayValue: oG,
|
|
7997
|
+
renderValue: sG,
|
|
7981
7998
|
placeholder: I,
|
|
7982
|
-
className:
|
|
7999
|
+
className: cG,
|
|
7983
8000
|
shouldFilter: false,
|
|
7984
|
-
search:
|
|
7985
|
-
onSearchChange:
|
|
7986
|
-
open:
|
|
7987
|
-
onOpenChange:
|
|
7988
|
-
emptyState:
|
|
8001
|
+
search: lG,
|
|
8002
|
+
onSearchChange: uG,
|
|
8003
|
+
open: dG,
|
|
8004
|
+
onOpenChange: fG,
|
|
8005
|
+
emptyState: pG,
|
|
7989
8006
|
disabled: L,
|
|
7990
8007
|
id: S
|
|
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] =
|
|
7992
|
-
let
|
|
7993
|
-
return r[49] !==
|
|
7994
|
-
...
|
|
8008
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = aG, r[44] = oG, r[45] = sG, r[46] = cG, r[47] = pG, r[48] = mG) : mG = r[48];
|
|
8009
|
+
let hG = mG, gG;
|
|
8010
|
+
return r[49] !== hG || r[50] !== Z || r[51] !== d || r[52] !== nG || r[53] !== l ? (gG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8011
|
+
...hG,
|
|
7995
8012
|
multiple: true,
|
|
7996
8013
|
value: l,
|
|
7997
8014
|
onValueChange: Z,
|
|
7998
|
-
children:
|
|
8015
|
+
children: nG()
|
|
7999
8016
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8000
|
-
...
|
|
8017
|
+
...hG,
|
|
8001
8018
|
multiple: false,
|
|
8002
8019
|
value: l,
|
|
8003
8020
|
onValueChange: Z,
|
|
8004
|
-
children:
|
|
8005
|
-
}), r[49] =
|
|
8021
|
+
children: nG()
|
|
8022
|
+
}), r[49] = hG, r[50] = Z, r[51] = d, r[52] = nG, r[53] = l, r[54] = gG) : gG = r[54], gG;
|
|
8006
8023
|
}
|
|
8007
8024
|
function _temp$27(e) {
|
|
8008
8025
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -10190,10 +10207,10 @@ let __tla = Promise.all([
|
|
|
10190
10207
|
}, H = () => {
|
|
10191
10208
|
for (let e2 of p.unMount) {
|
|
10192
10209
|
let r2 = get(l, e2);
|
|
10193
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10210
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && cG(e2);
|
|
10194
10211
|
}
|
|
10195
10212
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10196
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10213
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(rG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10197
10214
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10198
10215
|
[e2]: r2
|
|
10199
10216
|
} : r2
|
|
@@ -10210,13 +10227,13 @@ let __tla = Promise.all([
|
|
|
10210
10227
|
}
|
|
10211
10228
|
})));
|
|
10212
10229
|
}
|
|
10213
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10214
|
-
},
|
|
10230
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && nG(e2);
|
|
10231
|
+
}, QW = (e2, r2, c2) => {
|
|
10215
10232
|
for (let u2 in r2) {
|
|
10216
10233
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10217
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10234
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? QW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10218
10235
|
}
|
|
10219
|
-
},
|
|
10236
|
+
}, $W = (e2, r2, m2 = {}) => {
|
|
10220
10237
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10221
10238
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10222
10239
|
name: e2,
|
|
@@ -10227,7 +10244,7 @@ let __tla = Promise.all([
|
|
|
10227
10244
|
name: e2,
|
|
10228
10245
|
dirtyFields: getDirtyFields(u, d),
|
|
10229
10246
|
isDirty: W(e2, y2)
|
|
10230
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10247
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? QW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10231
10248
|
...c
|
|
10232
10249
|
}), _.values.next({
|
|
10233
10250
|
name: f.mount ? e2 : void 0,
|
|
@@ -10235,7 +10252,7 @@ let __tla = Promise.all([
|
|
|
10235
10252
|
...d
|
|
10236
10253
|
}
|
|
10237
10254
|
});
|
|
10238
|
-
},
|
|
10255
|
+
}, eG = async (e2) => {
|
|
10239
10256
|
f.mount = true;
|
|
10240
10257
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10241
10258
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10269,11 +10286,11 @@ let __tla = Promise.all([
|
|
|
10269
10286
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10270
10287
|
h2
|
|
10271
10288
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10272
|
-
S2 && (E2._f.deps &&
|
|
10289
|
+
S2 && (E2._f.deps && nG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10273
10290
|
}
|
|
10274
|
-
},
|
|
10291
|
+
}, tG = (e2, r2) => {
|
|
10275
10292
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10276
|
-
},
|
|
10293
|
+
}, nG = async (e2, u2 = {}) => {
|
|
10277
10294
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10278
10295
|
if (r.resolver) {
|
|
10279
10296
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10292,23 +10309,23 @@ let __tla = Promise.all([
|
|
|
10292
10309
|
isValid: d2
|
|
10293
10310
|
} : {},
|
|
10294
10311
|
errors: c.errors
|
|
10295
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10296
|
-
},
|
|
10312
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, tG, e2 ? m2 : p.mount), f2;
|
|
10313
|
+
}, rG = (e2) => {
|
|
10297
10314
|
let r2 = {
|
|
10298
10315
|
...f.mount ? d : u
|
|
10299
10316
|
};
|
|
10300
10317
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10301
|
-
},
|
|
10318
|
+
}, iG = (e2, r2) => ({
|
|
10302
10319
|
invalid: !!get((r2 || c).errors, e2),
|
|
10303
10320
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10304
10321
|
error: get((r2 || c).errors, e2),
|
|
10305
10322
|
isValidating: !!get(c.validatingFields, e2),
|
|
10306
10323
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10307
|
-
}),
|
|
10324
|
+
}), aG = (e2) => {
|
|
10308
10325
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10309
10326
|
errors: e2 ? c.errors : {}
|
|
10310
10327
|
});
|
|
10311
|
-
},
|
|
10328
|
+
}, oG = (e2, r2, u2) => {
|
|
10312
10329
|
let d2 = (get(l, e2, {
|
|
10313
10330
|
_f: {}
|
|
10314
10331
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10321,9 +10338,9 @@ let __tla = Promise.all([
|
|
|
10321
10338
|
errors: c.errors,
|
|
10322
10339
|
isValid: false
|
|
10323
10340
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10324
|
-
},
|
|
10341
|
+
}, sG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10325
10342
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10326
|
-
}) : G(e2, r2, true),
|
|
10343
|
+
}) : G(e2, r2, true), cG = (e2, f2 = {}) => {
|
|
10327
10344
|
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);
|
|
10328
10345
|
_.values.next({
|
|
10329
10346
|
values: {
|
|
@@ -10335,9 +10352,9 @@ let __tla = Promise.all([
|
|
|
10335
10352
|
isDirty: W()
|
|
10336
10353
|
} : {}
|
|
10337
10354
|
}), !f2.keepIsValid && w();
|
|
10338
|
-
},
|
|
10355
|
+
}, lG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10339
10356
|
(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));
|
|
10340
|
-
},
|
|
10357
|
+
}, uG = (e2, c2 = {}) => {
|
|
10341
10358
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10342
10359
|
return set(l, e2, {
|
|
10343
10360
|
...d2 || {},
|
|
@@ -10351,7 +10368,7 @@ let __tla = Promise.all([
|
|
|
10351
10368
|
mount: true,
|
|
10352
10369
|
...c2
|
|
10353
10370
|
}
|
|
10354
|
-
}), p.mount.add(e2), d2 ?
|
|
10371
|
+
}), p.mount.add(e2), d2 ? lG({
|
|
10355
10372
|
field: d2,
|
|
10356
10373
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10357
10374
|
name: e2
|
|
@@ -10368,11 +10385,11 @@ let __tla = Promise.all([
|
|
|
10368
10385
|
pattern: getRuleValue(c2.pattern)
|
|
10369
10386
|
} : {},
|
|
10370
10387
|
name: e2,
|
|
10371
|
-
onChange:
|
|
10372
|
-
onBlur:
|
|
10388
|
+
onChange: eG,
|
|
10389
|
+
onBlur: eG,
|
|
10373
10390
|
ref: (m3) => {
|
|
10374
10391
|
if (m3) {
|
|
10375
|
-
|
|
10392
|
+
uG(e2, c2), d2 = get(l, e2);
|
|
10376
10393
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10377
10394
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10378
10395
|
set(l, e2, {
|
|
@@ -10398,7 +10415,7 @@ let __tla = Promise.all([
|
|
|
10398
10415
|
} 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);
|
|
10399
10416
|
}
|
|
10400
10417
|
};
|
|
10401
|
-
},
|
|
10418
|
+
}, dG = () => r.shouldFocusError && iterateFieldsByAction(l, tG, p.mount), fG = (e2) => {
|
|
10402
10419
|
isBoolean(e2) && (_.state.next({
|
|
10403
10420
|
disabled: e2
|
|
10404
10421
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10407,7 +10424,7 @@ let __tla = Promise.all([
|
|
|
10407
10424
|
r3.disabled = u2._f.disabled || e2;
|
|
10408
10425
|
}));
|
|
10409
10426
|
}, 0, false));
|
|
10410
|
-
},
|
|
10427
|
+
}, pG = (e2, u2) => async (f2) => {
|
|
10411
10428
|
let m2;
|
|
10412
10429
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10413
10430
|
let h2 = cloneObject(d);
|
|
@@ -10429,7 +10446,7 @@ let __tla = Promise.all([
|
|
|
10429
10446
|
}
|
|
10430
10447
|
} else u2 && await u2({
|
|
10431
10448
|
...c.errors
|
|
10432
|
-
}, f2),
|
|
10449
|
+
}, f2), dG(), setTimeout(dG);
|
|
10433
10450
|
if (_.state.next({
|
|
10434
10451
|
isSubmitted: true,
|
|
10435
10452
|
isSubmitting: false,
|
|
@@ -10437,11 +10454,11 @@ let __tla = Promise.all([
|
|
|
10437
10454
|
submitCount: c.submitCount + 1,
|
|
10438
10455
|
errors: c.errors
|
|
10439
10456
|
}), m2) throw m2;
|
|
10440
|
-
},
|
|
10441
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10457
|
+
}, mG = (e2, r2 = {}) => {
|
|
10458
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? $W(e2, cloneObject(get(u, e2))) : ($W(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10442
10459
|
...c
|
|
10443
10460
|
}));
|
|
10444
|
-
},
|
|
10461
|
+
}, hG = (e2, m2 = {}) => {
|
|
10445
10462
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10446
10463
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10447
10464
|
if (m2.keepDirtyValues) {
|
|
@@ -10449,7 +10466,7 @@ let __tla = Promise.all([
|
|
|
10449
10466
|
...p.mount,
|
|
10450
10467
|
...Object.keys(getDirtyFields(u, d))
|
|
10451
10468
|
]);
|
|
10452
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10469
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : $W(r2, get(b2, r2));
|
|
10453
10470
|
} else {
|
|
10454
10471
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10455
10472
|
let r2 = get(l, e3);
|
|
@@ -10494,25 +10511,25 @@ let __tla = Promise.all([
|
|
|
10494
10511
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10495
10512
|
isSubmitting: false
|
|
10496
10513
|
});
|
|
10497
|
-
},
|
|
10514
|
+
}, gG = (e2, r2) => hG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10498
10515
|
return {
|
|
10499
10516
|
control: {
|
|
10500
|
-
register:
|
|
10501
|
-
unregister:
|
|
10502
|
-
getFieldState:
|
|
10503
|
-
handleSubmit:
|
|
10504
|
-
setError:
|
|
10517
|
+
register: uG,
|
|
10518
|
+
unregister: cG,
|
|
10519
|
+
getFieldState: iG,
|
|
10520
|
+
handleSubmit: pG,
|
|
10521
|
+
setError: oG,
|
|
10505
10522
|
_executeSchema: R,
|
|
10506
10523
|
_getWatch: G,
|
|
10507
10524
|
_getDirty: W,
|
|
10508
10525
|
_updateValid: w,
|
|
10509
10526
|
_removeUnmounted: H,
|
|
10510
10527
|
_updateFieldArray: E,
|
|
10511
|
-
_updateDisabledField:
|
|
10528
|
+
_updateDisabledField: lG,
|
|
10512
10529
|
_getFieldArray: q,
|
|
10513
|
-
_reset:
|
|
10530
|
+
_reset: hG,
|
|
10514
10531
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10515
|
-
|
|
10532
|
+
gG(e2, r.resetOptions), _.state.next({
|
|
10516
10533
|
isLoading: false
|
|
10517
10534
|
});
|
|
10518
10535
|
}),
|
|
@@ -10522,7 +10539,7 @@ let __tla = Promise.all([
|
|
|
10522
10539
|
...e2
|
|
10523
10540
|
};
|
|
10524
10541
|
},
|
|
10525
|
-
_disableForm:
|
|
10542
|
+
_disableForm: fG,
|
|
10526
10543
|
_subjects: _,
|
|
10527
10544
|
_proxyFormState: g,
|
|
10528
10545
|
_setErrors: j,
|
|
@@ -10563,17 +10580,17 @@ let __tla = Promise.all([
|
|
|
10563
10580
|
};
|
|
10564
10581
|
}
|
|
10565
10582
|
},
|
|
10566
|
-
trigger:
|
|
10567
|
-
register:
|
|
10568
|
-
handleSubmit:
|
|
10569
|
-
watch:
|
|
10570
|
-
setValue:
|
|
10571
|
-
getValues:
|
|
10572
|
-
reset:
|
|
10573
|
-
resetField:
|
|
10574
|
-
clearErrors:
|
|
10575
|
-
unregister:
|
|
10576
|
-
setError:
|
|
10583
|
+
trigger: nG,
|
|
10584
|
+
register: uG,
|
|
10585
|
+
handleSubmit: pG,
|
|
10586
|
+
watch: sG,
|
|
10587
|
+
setValue: $W,
|
|
10588
|
+
getValues: rG,
|
|
10589
|
+
reset: gG,
|
|
10590
|
+
resetField: mG,
|
|
10591
|
+
clearErrors: aG,
|
|
10592
|
+
unregister: cG,
|
|
10593
|
+
setError: oG,
|
|
10577
10594
|
setFocus: (e2, r2 = {}) => {
|
|
10578
10595
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10579
10596
|
if (u2) {
|
|
@@ -10581,7 +10598,7 @@ let __tla = Promise.all([
|
|
|
10581
10598
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10582
10599
|
}
|
|
10583
10600
|
},
|
|
10584
|
-
getFieldState:
|
|
10601
|
+
getFieldState: iG
|
|
10585
10602
|
};
|
|
10586
10603
|
}
|
|
10587
10604
|
function useForm(e = {}) {
|
|
@@ -16306,21 +16323,21 @@ ${c}
|
|
|
16306
16323
|
_.pageSize,
|
|
16307
16324
|
_.pageIndex
|
|
16308
16325
|
], 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];
|
|
16309
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16310
|
-
r[48] !==
|
|
16311
|
-
let
|
|
16312
|
-
r[51] !==
|
|
16313
|
-
YW,
|
|
16314
|
-
ZW,
|
|
16326
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), QW = useAtomValue(downloadSizeLimitAtom), $W;
|
|
16327
|
+
r[48] !== QW || r[49] !== e ? ($W = async () => !QW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = QW, r[49] = e, r[50] = $W) : $W = r[50];
|
|
16328
|
+
let eG = e.showDownload, tG = e.get_size_bytes, nG = e.lazy, rG = e.totalRows, iG = useDeepCompareMemoize(w), aG = useDeepCompareMemoize(p), oG;
|
|
16329
|
+
r[51] !== QW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== iG || r[58] !== aG ? (oG = [
|
|
16315
16330
|
QW,
|
|
16316
|
-
$W,
|
|
16317
16331
|
eG,
|
|
16318
|
-
y,
|
|
16319
16332
|
tG,
|
|
16320
|
-
nG
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16333
|
+
nG,
|
|
16334
|
+
rG,
|
|
16335
|
+
y,
|
|
16336
|
+
iG,
|
|
16337
|
+
aG
|
|
16338
|
+
], r[51] = QW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = iG, r[58] = aG, r[59] = oG) : oG = r[59];
|
|
16339
|
+
let { data: sG, isPending: cG } = useAsyncData($W, oG), lG = sG ?? null, uG = !!QW && e.showDownload && cG, dG;
|
|
16340
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (dG = async (e2) => ({
|
|
16324
16341
|
rows: await loadTableData((await u({
|
|
16325
16342
|
page_number: e2,
|
|
16326
16343
|
page_size: 1,
|
|
@@ -16329,17 +16346,17 @@ ${c}
|
|
|
16329
16346
|
filters: filtersToFilterGroup(w),
|
|
16330
16347
|
max_columns: null
|
|
16331
16348
|
})).data)
|
|
16332
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16333
|
-
let
|
|
16334
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16349
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = dG) : dG = r[64];
|
|
16350
|
+
let fG = dG, pG;
|
|
16351
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pG = () => {
|
|
16335
16352
|
v(_temp4$4);
|
|
16336
|
-
}, r[65] =
|
|
16337
|
-
let
|
|
16338
|
-
r[66] ===
|
|
16339
|
-
|
|
16340
|
-
], r[66] =
|
|
16341
|
-
let
|
|
16342
|
-
r[68] === e ?
|
|
16353
|
+
}, r[65] = pG) : pG = r[65];
|
|
16354
|
+
let mG = W == null ? void 0 : W.totalRows, hG;
|
|
16355
|
+
r[66] === mG ? hG = r[67] : (hG = [
|
|
16356
|
+
mG
|
|
16357
|
+
], r[66] = mG, r[67] = hG), (0, import_react.useEffect)(pG, hG);
|
|
16358
|
+
let gG;
|
|
16359
|
+
r[68] === e ? gG = r[69] : (gG = async () => {
|
|
16343
16360
|
let r2 = isStaticNotebook();
|
|
16344
16361
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16345
16362
|
data: null,
|
|
@@ -16348,22 +16365,22 @@ ${c}
|
|
|
16348
16365
|
value_counts: {},
|
|
16349
16366
|
show_charts: false
|
|
16350
16367
|
} : e.get_column_summaries({});
|
|
16351
|
-
}, r[68] = e, r[69] =
|
|
16352
|
-
let
|
|
16353
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16368
|
+
}, r[68] = e, r[69] = gG);
|
|
16369
|
+
let _G;
|
|
16370
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (_G = [
|
|
16354
16371
|
e.get_column_summaries,
|
|
16355
16372
|
e.showColumnSummaries,
|
|
16356
16373
|
w,
|
|
16357
16374
|
y,
|
|
16358
16375
|
e.totalRows,
|
|
16359
16376
|
e.data
|
|
16360
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
16361
|
-
let { data:
|
|
16362
|
-
if (r[77] ===
|
|
16363
|
-
|
|
16364
|
-
},
|
|
16365
|
-
|
|
16366
|
-
], r[77] =
|
|
16377
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = _G) : _G = r[76];
|
|
16378
|
+
let { data: vG, error: yG } = useAsyncData(gG, _G), bG, xG;
|
|
16379
|
+
if (r[77] === yG ? (bG = r[78], xG = r[79]) : (bG = () => {
|
|
16380
|
+
yG && Logger.error(yG);
|
|
16381
|
+
}, xG = [
|
|
16382
|
+
yG
|
|
16383
|
+
], r[77] = yG, r[78] = bG, r[79] = xG), (0, import_react.useEffect)(bG, xG), q) {
|
|
16367
16384
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16368
16385
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16369
16386
|
milliseconds: 200,
|
|
@@ -16372,7 +16389,7 @@ ${c}
|
|
|
16372
16389
|
})
|
|
16373
16390
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16374
16391
|
}
|
|
16375
|
-
let
|
|
16392
|
+
let SG = null;
|
|
16376
16393
|
if (G) {
|
|
16377
16394
|
Logger.error(G);
|
|
16378
16395
|
let e2;
|
|
@@ -16388,62 +16405,62 @@ ${c}
|
|
|
16388
16405
|
children: G.message || "An unknown error occurred"
|
|
16389
16406
|
})
|
|
16390
16407
|
]
|
|
16391
|
-
}), r[82] = G, r[83] = e2),
|
|
16408
|
+
}), r[82] = G, r[83] = e2), SG = e2;
|
|
16392
16409
|
}
|
|
16393
|
-
let
|
|
16394
|
-
r[84] === O ?
|
|
16410
|
+
let CG;
|
|
16411
|
+
r[84] === O ? CG = r[85] : (CG = () => {
|
|
16395
16412
|
j(!O);
|
|
16396
|
-
}, r[84] = O, r[85] =
|
|
16397
|
-
let
|
|
16398
|
-
r[86] !== l || r[87] !==
|
|
16413
|
+
}, r[84] = O, r[85] = CG);
|
|
16414
|
+
let wG = CG, TG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, EG = W == null ? void 0 : W.rawRows, DG = Z && !q, OG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, kG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, AG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, jG;
|
|
16415
|
+
r[86] !== l || r[87] !== vG || r[88] !== O || r[89] !== w || r[90] !== fG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== lG || r[95] !== uG || r[96] !== p || r[97] !== TG || r[98] !== EG || r[99] !== DG || r[100] !== OG || r[101] !== kG || r[102] !== AG || r[103] !== wG ? (jG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16399
16416
|
...e,
|
|
16400
|
-
data:
|
|
16401
|
-
rawData:
|
|
16402
|
-
columnSummaries:
|
|
16417
|
+
data: TG,
|
|
16418
|
+
rawData: EG,
|
|
16419
|
+
columnSummaries: vG,
|
|
16403
16420
|
sorting: p,
|
|
16404
16421
|
setSorting: h,
|
|
16405
16422
|
searchQuery: y,
|
|
16406
16423
|
setSearchQuery: b,
|
|
16407
16424
|
filters: w,
|
|
16408
16425
|
setFilters: T,
|
|
16409
|
-
reloading:
|
|
16410
|
-
totalRows:
|
|
16411
|
-
sizeBytes:
|
|
16412
|
-
sizeBytesIsLoading:
|
|
16426
|
+
reloading: DG,
|
|
16427
|
+
totalRows: OG,
|
|
16428
|
+
sizeBytes: lG,
|
|
16429
|
+
sizeBytesIsLoading: uG,
|
|
16413
16430
|
paginationState: _,
|
|
16414
16431
|
setPaginationState: v,
|
|
16415
|
-
cellStyles:
|
|
16416
|
-
cellHoverTexts:
|
|
16417
|
-
toggleDisplayHeader:
|
|
16432
|
+
cellStyles: kG,
|
|
16433
|
+
cellHoverTexts: AG,
|
|
16434
|
+
toggleDisplayHeader: wG,
|
|
16418
16435
|
isChartBuilderOpen: O,
|
|
16419
|
-
getRow:
|
|
16436
|
+
getRow: fG,
|
|
16420
16437
|
cellId: l,
|
|
16421
16438
|
maxHeight: e.maxHeight
|
|
16422
|
-
}), r[86] = l, r[87] =
|
|
16423
|
-
let
|
|
16424
|
-
r[105] !== l || r[106] !==
|
|
16439
|
+
}), r[86] = l, r[87] = vG, r[88] = O, r[89] = w, r[90] = fG, r[91] = _, r[92] = e, r[93] = y, r[94] = lG, r[95] = uG, r[96] = p, r[97] = TG, r[98] = EG, r[99] = DG, r[100] = OG, r[101] = kG, r[102] = AG, r[103] = wG, r[104] = jG) : jG = r[104];
|
|
16440
|
+
let MG = jG, NG;
|
|
16441
|
+
r[105] !== l || r[106] !== MG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (NG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16425
16442
|
displayHeader: O,
|
|
16426
16443
|
onCloseChartBuilder: () => j(false),
|
|
16427
16444
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16428
16445
|
columns: e.totalColumns,
|
|
16429
16446
|
totalRows: e.totalRows,
|
|
16430
|
-
dataTable:
|
|
16447
|
+
dataTable: MG,
|
|
16431
16448
|
getDataUrl: e.get_data_url,
|
|
16432
16449
|
fieldTypes: e.fieldTypes,
|
|
16433
16450
|
rowHeaders: e.rowHeaders,
|
|
16434
16451
|
cellId: l
|
|
16435
|
-
}) :
|
|
16436
|
-
let
|
|
16437
|
-
return r[116] !==
|
|
16452
|
+
}) : MG, r[105] = l, r[106] = MG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = NG) : NG = r[115];
|
|
16453
|
+
let PG;
|
|
16454
|
+
return r[116] !== SG || r[117] !== NG ? (PG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16438
16455
|
children: [
|
|
16439
|
-
|
|
16440
|
-
|
|
16456
|
+
SG,
|
|
16457
|
+
NG
|
|
16441
16458
|
]
|
|
16442
|
-
}), r[116] =
|
|
16459
|
+
}), r[116] = SG, r[117] = NG, r[118] = PG) : PG = r[118], PG;
|
|
16443
16460
|
});
|
|
16444
16461
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16445
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters:
|
|
16446
|
-
let
|
|
16462
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: QW, reloading: $W, freezeColumnsLeft: eG, freezeColumnsRight: tG, hiddenColumns: nG, textJustifyColumns: rG, wrappedColumns: iG, columnWidths: aG, headerTooltip: oG, totalColumns: sG, get_row_ids: cG, cellStyles: lG, hoverTemplate: uG, cellHoverTexts: dG, toggleDisplayHeader: fG, isChartBuilderOpen: pG, calculate_top_k_rows: mG, preview_column: hG, getRow: gG, cellId: _G, maxHeight: vG }) => {
|
|
16463
|
+
let yG = (0, import_react.useId)(), { locale: bG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [xG, SG] = (0, import_react.useState)(0), { isPanelOpen: CG, isAnyPanelOpen: wG, togglePanel: TG, panelType: EG, setPanelType: DG } = usePanelOwnership(yG, _G), OG = isStaticNotebook(), kG = (0, import_react.useMemo)(() => {
|
|
16447
16464
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16448
16465
|
let e2 = toFieldTypes(O);
|
|
16449
16466
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16452,13 +16469,13 @@ ${c}
|
|
|
16452
16469
|
}, [
|
|
16453
16470
|
O,
|
|
16454
16471
|
L
|
|
16455
|
-
]),
|
|
16472
|
+
]), AG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), jG = (0, import_react.useMemo)(() => p === "all" ? AG : AG.slice(0, p), [
|
|
16456
16473
|
p,
|
|
16457
|
-
|
|
16458
|
-
]),
|
|
16474
|
+
AG
|
|
16475
|
+
]), MG = (0, import_react.useMemo)(() => {
|
|
16459
16476
|
let e2 = {};
|
|
16460
16477
|
if (r && r.length > 0) {
|
|
16461
|
-
for (let [c2, l2] of
|
|
16478
|
+
for (let [c2, l2] of jG) if (l2[0] === "number") {
|
|
16462
16479
|
let l3 = 0;
|
|
16463
16480
|
for (let e3 of r) {
|
|
16464
16481
|
let r2 = e3[c2];
|
|
@@ -16473,95 +16490,95 @@ ${c}
|
|
|
16473
16490
|
return e2;
|
|
16474
16491
|
}, [
|
|
16475
16492
|
r,
|
|
16476
|
-
|
|
16477
|
-
]),
|
|
16478
|
-
O || (T = false),
|
|
16479
|
-
let
|
|
16480
|
-
rowHeaders:
|
|
16493
|
+
jG
|
|
16494
|
+
]), NG = useDeepCompareMemoize(E), PG = useDeepCompareMemoize(rG), FG = useDeepCompareMemoize(iG), IG = useDeepCompareMemoize(aG), LG = useDeepCompareMemoize(kG), RG = useDeepCompareMemoize(MG), zG = jG.length;
|
|
16495
|
+
O || (T = false), OG && (h = null);
|
|
16496
|
+
let BG = (0, import_react.useMemo)(() => generateColumns({
|
|
16497
|
+
rowHeaders: NG,
|
|
16481
16498
|
selection: h,
|
|
16482
|
-
chartSpecModel:
|
|
16483
|
-
fieldTypes:
|
|
16484
|
-
textJustifyColumns:
|
|
16485
|
-
wrappedColumns:
|
|
16486
|
-
columnWidths:
|
|
16487
|
-
headerTooltip:
|
|
16499
|
+
chartSpecModel: LG,
|
|
16500
|
+
fieldTypes: jG,
|
|
16501
|
+
textJustifyColumns: PG,
|
|
16502
|
+
wrappedColumns: FG,
|
|
16503
|
+
columnWidths: IG,
|
|
16504
|
+
headerTooltip: oG,
|
|
16488
16505
|
showDataTypes: T,
|
|
16489
|
-
calculateTopKRows:
|
|
16490
|
-
fractionDigitsByColumn:
|
|
16506
|
+
calculateTopKRows: mG,
|
|
16507
|
+
fractionDigitsByColumn: RG
|
|
16491
16508
|
}), [
|
|
16492
16509
|
h,
|
|
16493
16510
|
T,
|
|
16494
|
-
|
|
16495
|
-
AG,
|
|
16496
|
-
OG,
|
|
16497
|
-
jG,
|
|
16498
|
-
MG,
|
|
16511
|
+
LG,
|
|
16499
16512
|
NG,
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
FG
|
|
16503
|
-
|
|
16513
|
+
jG,
|
|
16514
|
+
PG,
|
|
16515
|
+
FG,
|
|
16516
|
+
IG,
|
|
16517
|
+
oG,
|
|
16518
|
+
mG,
|
|
16519
|
+
RG
|
|
16520
|
+
]), VG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16504
16521
|
e2,
|
|
16505
16522
|
true
|
|
16506
16523
|
])), [
|
|
16507
16524
|
g
|
|
16508
|
-
]),
|
|
16525
|
+
]), HG = useEvent_default((e2) => {
|
|
16509
16526
|
if (h === "single") {
|
|
16510
16527
|
let r2 = Functions.asUpdater(e2)({});
|
|
16511
16528
|
z(Object.keys(r2).slice(0, 1));
|
|
16512
16529
|
}
|
|
16513
16530
|
if (h === "multi") {
|
|
16514
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16531
|
+
let r2 = Functions.asUpdater(e2)(VG);
|
|
16515
16532
|
z(Object.keys(r2));
|
|
16516
16533
|
}
|
|
16517
|
-
}),
|
|
16518
|
-
if (
|
|
16534
|
+
}), UG = useEvent_default((e2) => {
|
|
16535
|
+
if (SG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16519
16536
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16520
16537
|
r2 !== null && M((e3) => ({
|
|
16521
16538
|
...e3,
|
|
16522
16539
|
pageIndex: r2
|
|
16523
16540
|
}));
|
|
16524
|
-
}),
|
|
16525
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16526
|
-
}),
|
|
16527
|
-
if (!(!
|
|
16541
|
+
}), WG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), GG = useEvent_default((e2) => {
|
|
16542
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(WG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(WG));
|
|
16543
|
+
}), KG = h === "multi" || h === "single", qG = b && !!hG, JG = isInVscodeExtension(), YG = isIslands(), XG = (0, import_react.useMemo)(() => {
|
|
16544
|
+
if (!(!wG || !(S || qG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16528
16545
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16529
|
-
rowIdx:
|
|
16530
|
-
setRowIdx:
|
|
16546
|
+
rowIdx: xG,
|
|
16547
|
+
setRowIdx: UG,
|
|
16531
16548
|
totalRows: l,
|
|
16532
|
-
fieldTypes:
|
|
16533
|
-
getRow:
|
|
16534
|
-
isSelectable:
|
|
16535
|
-
isRowSelected: !!
|
|
16536
|
-
handleRowSelectionChange:
|
|
16537
|
-
previewColumn:
|
|
16538
|
-
totalColumns:
|
|
16539
|
-
tableId:
|
|
16549
|
+
fieldTypes: AG,
|
|
16550
|
+
getRow: gG,
|
|
16551
|
+
isSelectable: KG,
|
|
16552
|
+
isRowSelected: !!VG[xG],
|
|
16553
|
+
handleRowSelectionChange: HG,
|
|
16554
|
+
previewColumn: hG,
|
|
16555
|
+
totalColumns: sG,
|
|
16556
|
+
tableId: yG,
|
|
16540
16557
|
table: e2,
|
|
16541
|
-
showRowExplorer: S && !
|
|
16542
|
-
showColumnExplorer:
|
|
16543
|
-
activeTab:
|
|
16544
|
-
onTabChange:
|
|
16558
|
+
showRowExplorer: S && !JG,
|
|
16559
|
+
showColumnExplorer: qG && !JG,
|
|
16560
|
+
activeTab: EG,
|
|
16561
|
+
onTabChange: DG
|
|
16545
16562
|
})
|
|
16546
16563
|
});
|
|
16547
16564
|
}, [
|
|
16548
|
-
|
|
16565
|
+
wG,
|
|
16549
16566
|
S,
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
BG,
|
|
16553
|
-
l,
|
|
16554
|
-
DG,
|
|
16555
|
-
pG,
|
|
16567
|
+
qG,
|
|
16568
|
+
xG,
|
|
16556
16569
|
UG,
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
fG,
|
|
16560
|
-
iG,
|
|
16570
|
+
l,
|
|
16571
|
+
AG,
|
|
16561
16572
|
gG,
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16573
|
+
KG,
|
|
16574
|
+
VG,
|
|
16575
|
+
HG,
|
|
16576
|
+
hG,
|
|
16577
|
+
sG,
|
|
16578
|
+
yG,
|
|
16579
|
+
JG,
|
|
16580
|
+
EG,
|
|
16581
|
+
DG
|
|
16565
16582
|
]);
|
|
16566
16583
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16567
16584
|
children: [
|
|
@@ -16573,27 +16590,27 @@ ${c}
|
|
|
16573
16590
|
" rows."
|
|
16574
16591
|
]
|
|
16575
16592
|
}),
|
|
16576
|
-
|
|
16593
|
+
zG < sG && zG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16577
16594
|
className: "mb-1 rounded",
|
|
16578
16595
|
children: [
|
|
16579
16596
|
"Result clipped. Showing ",
|
|
16580
|
-
|
|
16597
|
+
zG,
|
|
16581
16598
|
" of ",
|
|
16582
|
-
|
|
16599
|
+
sG,
|
|
16583
16600
|
" columns."
|
|
16584
16601
|
]
|
|
16585
16602
|
}),
|
|
16586
|
-
|
|
16603
|
+
OG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16587
16604
|
className: "mb-1 rounded",
|
|
16588
16605
|
children: [
|
|
16589
16606
|
"Showing the first ",
|
|
16590
16607
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16591
|
-
children: prettyNumber(r.length,
|
|
16608
|
+
children: prettyNumber(r.length, bG)
|
|
16592
16609
|
}),
|
|
16593
16610
|
" ",
|
|
16594
16611
|
"of ",
|
|
16595
16612
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16596
|
-
children: prettyNumber(l,
|
|
16613
|
+
children: prettyNumber(l, bG)
|
|
16597
16614
|
}),
|
|
16598
16615
|
" rows. Increase the table's ",
|
|
16599
16616
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16607,7 +16624,7 @@ ${c}
|
|
|
16607
16624
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16608
16625
|
}),
|
|
16609
16626
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16610
|
-
value:
|
|
16627
|
+
value: kG,
|
|
16611
16628
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16612
16629
|
label: e,
|
|
16613
16630
|
align: "top",
|
|
@@ -16615,14 +16632,14 @@ ${c}
|
|
|
16615
16632
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16616
16633
|
data: r,
|
|
16617
16634
|
rawData: c,
|
|
16618
|
-
columns:
|
|
16635
|
+
columns: BG,
|
|
16619
16636
|
className: R,
|
|
16620
|
-
maxHeight:
|
|
16637
|
+
maxHeight: vG,
|
|
16621
16638
|
sorting: B,
|
|
16622
16639
|
totalRows: l,
|
|
16623
16640
|
sizeBytes: u,
|
|
16624
16641
|
sizeBytesIsLoading: f,
|
|
16625
|
-
totalColumns:
|
|
16642
|
+
totalColumns: sG,
|
|
16626
16643
|
manualSorting: true,
|
|
16627
16644
|
setSorting: H,
|
|
16628
16645
|
pagination: m,
|
|
@@ -16630,37 +16647,37 @@ ${c}
|
|
|
16630
16647
|
selection: h,
|
|
16631
16648
|
paginationState: j,
|
|
16632
16649
|
setPaginationState: M,
|
|
16633
|
-
rowSelection:
|
|
16634
|
-
cellSelection:
|
|
16635
|
-
cellStyling:
|
|
16636
|
-
hoverTemplate:
|
|
16637
|
-
cellHoverTexts:
|
|
16650
|
+
rowSelection: VG,
|
|
16651
|
+
cellSelection: WG,
|
|
16652
|
+
cellStyling: lG,
|
|
16653
|
+
hoverTemplate: uG,
|
|
16654
|
+
cellHoverTexts: dG,
|
|
16638
16655
|
downloadAs: v ? I : void 0,
|
|
16639
16656
|
showSearch: W,
|
|
16640
16657
|
searchQuery: G,
|
|
16641
16658
|
onSearchQueryChange: q,
|
|
16642
16659
|
showFilters: _,
|
|
16643
16660
|
filters: Z,
|
|
16644
|
-
onFiltersChange:
|
|
16645
|
-
calculateTopKRows:
|
|
16646
|
-
reloading:
|
|
16647
|
-
onRowSelectionChange:
|
|
16648
|
-
freezeColumnsLeft:
|
|
16649
|
-
freezeColumnsRight:
|
|
16650
|
-
hiddenColumns:
|
|
16651
|
-
onCellSelectionChange:
|
|
16652
|
-
getRowIds:
|
|
16653
|
-
toggleDisplayHeader:
|
|
16654
|
-
showChartBuilder: w && !
|
|
16655
|
-
isChartBuilderOpen:
|
|
16661
|
+
onFiltersChange: QW,
|
|
16662
|
+
calculateTopKRows: mG,
|
|
16663
|
+
reloading: $W,
|
|
16664
|
+
onRowSelectionChange: HG,
|
|
16665
|
+
freezeColumnsLeft: eG,
|
|
16666
|
+
freezeColumnsRight: tG,
|
|
16667
|
+
hiddenColumns: nG,
|
|
16668
|
+
onCellSelectionChange: GG,
|
|
16669
|
+
getRowIds: cG,
|
|
16670
|
+
toggleDisplayHeader: fG,
|
|
16671
|
+
showChartBuilder: w && !YG,
|
|
16672
|
+
isChartBuilderOpen: pG,
|
|
16656
16673
|
showPageSizeSelector: y,
|
|
16657
|
-
showTableExplorer: (S ||
|
|
16658
|
-
togglePanel:
|
|
16659
|
-
isPanelOpen:
|
|
16660
|
-
isAnyPanelOpen:
|
|
16661
|
-
viewedRowIdx:
|
|
16662
|
-
onViewedRowChange: (e2) =>
|
|
16663
|
-
renderTableExplorerPanel:
|
|
16674
|
+
showTableExplorer: (S || qG) && !JG && !YG,
|
|
16675
|
+
togglePanel: TG,
|
|
16676
|
+
isPanelOpen: CG,
|
|
16677
|
+
isAnyPanelOpen: wG,
|
|
16678
|
+
viewedRowIdx: xG,
|
|
16679
|
+
onViewedRowChange: (e2) => SG(e2),
|
|
16680
|
+
renderTableExplorerPanel: XG
|
|
16664
16681
|
})
|
|
16665
16682
|
})
|
|
16666
16683
|
})
|
|
@@ -18712,29 +18729,29 @@ ${c}
|
|
|
18712
18729
|
], r[2] = w, r[3] = T);
|
|
18713
18730
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18714
18731
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18715
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY),
|
|
18716
|
-
r[6] === f ?
|
|
18732
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY), QW = (0, import_react.useRef)(null), $W;
|
|
18733
|
+
r[6] === f ? $W = r[7] : ($W = (e2) => {
|
|
18717
18734
|
var _a5;
|
|
18718
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18719
|
-
}, r[6] = f, r[7] =
|
|
18720
|
-
let
|
|
18721
|
-
r[8] === q ?
|
|
18722
|
-
|
|
18723
|
-
}, r[8] = q, r[9] =
|
|
18724
|
-
let
|
|
18725
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18726
|
-
let e2 =
|
|
18735
|
+
f && e2 !== "transform" && ((_a5 = QW.current) == null ? void 0 : _a5.submit());
|
|
18736
|
+
}, r[6] = f, r[7] = $W);
|
|
18737
|
+
let eG = $W, tG = (0, import_react.useRef)(q), nG;
|
|
18738
|
+
r[8] === q ? nG = r[9] : (nG = () => {
|
|
18739
|
+
tG.current = q;
|
|
18740
|
+
}, r[8] = q, r[9] = nG), (0, import_react.useEffect)(nG);
|
|
18741
|
+
let rG;
|
|
18742
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (rG = () => {
|
|
18743
|
+
let e2 = tG.current;
|
|
18727
18744
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18728
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18729
|
-
let
|
|
18730
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18745
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = rG) : rG = r[12];
|
|
18746
|
+
let iG = p == null ? void 0 : p.transforms.length, aG;
|
|
18747
|
+
r[13] !== E || r[14] !== m || r[15] !== iG ? (aG = [
|
|
18731
18748
|
E,
|
|
18749
|
+
iG,
|
|
18732
18750
|
tG,
|
|
18733
|
-
QW,
|
|
18734
18751
|
m
|
|
18735
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18736
|
-
let
|
|
18737
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18752
|
+
], r[13] = E, r[14] = m, r[15] = iG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(rG, aG);
|
|
18753
|
+
let oG;
|
|
18754
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18738
18755
|
value: "transform",
|
|
18739
18756
|
className: "text-xs py-1",
|
|
18740
18757
|
children: [
|
|
@@ -18743,9 +18760,9 @@ ${c}
|
|
|
18743
18760
|
}),
|
|
18744
18761
|
"Transform"
|
|
18745
18762
|
]
|
|
18746
|
-
}), r[17] =
|
|
18747
|
-
let
|
|
18748
|
-
r[18] === H ?
|
|
18763
|
+
}), r[17] = oG) : oG = r[17];
|
|
18764
|
+
let sG;
|
|
18765
|
+
r[18] === H ? sG = r[19] : (sG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18749
18766
|
value: "python-code",
|
|
18750
18767
|
className: "text-xs py-1",
|
|
18751
18768
|
children: [
|
|
@@ -18754,9 +18771,9 @@ ${c}
|
|
|
18754
18771
|
}),
|
|
18755
18772
|
"Python Code"
|
|
18756
18773
|
]
|
|
18757
|
-
}), r[18] = H, r[19] =
|
|
18758
|
-
let
|
|
18759
|
-
r[20] === W ?
|
|
18774
|
+
}), r[18] = H, r[19] = sG);
|
|
18775
|
+
let cG;
|
|
18776
|
+
r[20] === W ? cG = r[21] : (cG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18760
18777
|
value: "sql-code",
|
|
18761
18778
|
className: "text-xs py-1",
|
|
18762
18779
|
children: [
|
|
@@ -18765,54 +18782,54 @@ ${c}
|
|
|
18765
18782
|
}),
|
|
18766
18783
|
"SQL Code"
|
|
18767
18784
|
]
|
|
18768
|
-
}), r[20] = W, r[21] =
|
|
18769
|
-
let
|
|
18770
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18785
|
+
}), r[20] = W, r[21] = cG);
|
|
18786
|
+
let lG;
|
|
18787
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
18771
18788
|
className: "grow"
|
|
18772
|
-
}), r[22] =
|
|
18773
|
-
let
|
|
18774
|
-
r[23] !==
|
|
18789
|
+
}), r[22] = lG) : lG = r[22];
|
|
18790
|
+
let uG;
|
|
18791
|
+
r[23] !== sG || r[24] !== cG ? (uG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18775
18792
|
className: "h-8",
|
|
18776
18793
|
children: [
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
|
|
18794
|
+
oG,
|
|
18795
|
+
sG,
|
|
18796
|
+
cG,
|
|
18797
|
+
lG
|
|
18781
18798
|
]
|
|
18782
|
-
}), r[23] =
|
|
18783
|
-
let
|
|
18784
|
-
r[26] === j ?
|
|
18799
|
+
}), r[23] = sG, r[24] = cG, r[25] = uG) : uG = r[25];
|
|
18800
|
+
let dG;
|
|
18801
|
+
r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18785
18802
|
size: "small"
|
|
18786
|
-
}), r[26] = j, r[27] =
|
|
18787
|
-
let
|
|
18788
|
-
r[28] !==
|
|
18803
|
+
}), r[26] = j, r[27] = dG);
|
|
18804
|
+
let fG;
|
|
18805
|
+
r[28] !== uG || r[29] !== dG ? (fG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18789
18806
|
className: "flex items-center gap-2",
|
|
18790
18807
|
children: [
|
|
18791
|
-
|
|
18792
|
-
|
|
18808
|
+
uG,
|
|
18809
|
+
dG
|
|
18793
18810
|
]
|
|
18794
|
-
}), r[28] =
|
|
18795
|
-
let
|
|
18796
|
-
r[31] !== m || r[32] !== p ? (
|
|
18811
|
+
}), r[28] = uG, r[29] = dG, r[30] = fG) : fG = r[30];
|
|
18812
|
+
let pG;
|
|
18813
|
+
r[31] !== m || r[32] !== p ? (pG = (e2) => {
|
|
18797
18814
|
dequal(e2, p) || (m(e2), Z(e2));
|
|
18798
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18799
|
-
let
|
|
18800
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18815
|
+
}, r[31] = m, r[32] = p, r[33] = pG) : pG = r[33];
|
|
18816
|
+
let mG;
|
|
18817
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== pG ? (mG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18801
18818
|
value: "transform",
|
|
18802
18819
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18803
18820
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18804
|
-
ref:
|
|
18821
|
+
ref: QW,
|
|
18805
18822
|
initialValue: q,
|
|
18806
18823
|
columns: c,
|
|
18807
|
-
onChange:
|
|
18824
|
+
onChange: pG,
|
|
18808
18825
|
onInvalidChange: Z,
|
|
18809
18826
|
getColumnValues: g,
|
|
18810
18827
|
columnTypesPerStep: B,
|
|
18811
18828
|
lazy: f
|
|
18812
18829
|
})
|
|
18813
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18814
|
-
let
|
|
18815
|
-
r[41] === H ?
|
|
18830
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = pG, r[40] = mG) : mG = r[40];
|
|
18831
|
+
let hG;
|
|
18832
|
+
r[41] === H ? hG = r[42] : (hG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18816
18833
|
value: "python-code",
|
|
18817
18834
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18818
18835
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18821,9 +18838,9 @@ ${c}
|
|
|
18821
18838
|
code: H,
|
|
18822
18839
|
language: "python"
|
|
18823
18840
|
})
|
|
18824
|
-
}), r[41] = H, r[42] =
|
|
18825
|
-
let
|
|
18826
|
-
r[43] === W ?
|
|
18841
|
+
}), r[41] = H, r[42] = hG);
|
|
18842
|
+
let gG;
|
|
18843
|
+
r[43] === W ? gG = r[44] : (gG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18827
18844
|
value: "sql-code",
|
|
18828
18845
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18829
18846
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18832,35 +18849,35 @@ ${c}
|
|
|
18832
18849
|
code: W,
|
|
18833
18850
|
language: "sql"
|
|
18834
18851
|
})
|
|
18835
|
-
}), r[43] = W, r[44] =
|
|
18836
|
-
let
|
|
18837
|
-
r[45] !==
|
|
18852
|
+
}), r[43] = W, r[44] = gG);
|
|
18853
|
+
let _G;
|
|
18854
|
+
r[45] !== eG || r[46] !== fG || r[47] !== mG || r[48] !== hG || r[49] !== gG ? (_G = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18838
18855
|
defaultValue: "transform",
|
|
18839
|
-
onValueChange:
|
|
18856
|
+
onValueChange: eG,
|
|
18840
18857
|
children: [
|
|
18841
|
-
lG,
|
|
18842
|
-
dG,
|
|
18843
18858
|
fG,
|
|
18844
|
-
|
|
18859
|
+
mG,
|
|
18860
|
+
hG,
|
|
18861
|
+
gG
|
|
18845
18862
|
]
|
|
18846
|
-
}), r[45] =
|
|
18847
|
-
let
|
|
18848
|
-
r[51] === O ?
|
|
18863
|
+
}), r[45] = eG, r[46] = fG, r[47] = mG, r[48] = hG, r[49] = gG, r[50] = _G) : _G = r[50];
|
|
18864
|
+
let vG;
|
|
18865
|
+
r[51] === O ? vG = r[52] : (vG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18849
18866
|
error: O
|
|
18850
|
-
}), r[51] = O, r[52] =
|
|
18851
|
-
let
|
|
18852
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18867
|
+
}), r[51] = O, r[52] = vG);
|
|
18868
|
+
let yG = I || "", bG = L ?? 0, xG = G ?? 0, SG = R || Arrays.EMPTY, CG = L && L > 5 || false, wG;
|
|
18869
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== yG || r[61] !== bG || r[62] !== xG || r[63] !== SG || r[64] !== CG ? (wG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18853
18870
|
label: null,
|
|
18854
18871
|
className: "rounded-b border-x border-b",
|
|
18855
|
-
data:
|
|
18872
|
+
data: yG,
|
|
18856
18873
|
hasStableRowId: false,
|
|
18857
|
-
totalRows:
|
|
18858
|
-
totalColumns:
|
|
18874
|
+
totalRows: bG,
|
|
18875
|
+
totalColumns: xG,
|
|
18859
18876
|
maxColumns: "all",
|
|
18860
18877
|
pageSize: l,
|
|
18861
18878
|
pagination: true,
|
|
18862
18879
|
fieldTypes: z,
|
|
18863
|
-
rowHeaders:
|
|
18880
|
+
rowHeaders: SG,
|
|
18864
18881
|
showDownload: u,
|
|
18865
18882
|
download_as: v,
|
|
18866
18883
|
get_size_bytes: y,
|
|
@@ -18870,7 +18887,7 @@ ${c}
|
|
|
18870
18887
|
showColumnSummaries: false,
|
|
18871
18888
|
showDataTypes: true,
|
|
18872
18889
|
get_column_summaries: getColumnSummaries,
|
|
18873
|
-
showPageSizeSelector:
|
|
18890
|
+
showPageSizeSelector: CG,
|
|
18874
18891
|
showColumnExplorer: false,
|
|
18875
18892
|
showRowExplorer: true,
|
|
18876
18893
|
showChartBuilder: false,
|
|
@@ -18879,15 +18896,15 @@ ${c}
|
|
|
18879
18896
|
selection: null,
|
|
18880
18897
|
lazy: false,
|
|
18881
18898
|
host: b
|
|
18882
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18883
|
-
let
|
|
18884
|
-
return r[66] !==
|
|
18899
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = yG, r[61] = bG, r[62] = xG, r[63] = SG, r[64] = CG, r[65] = wG) : wG = r[65];
|
|
18900
|
+
let TG;
|
|
18901
|
+
return r[66] !== _G || r[67] !== vG || r[68] !== wG ? (TG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18885
18902
|
children: [
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18903
|
+
_G,
|
|
18904
|
+
vG,
|
|
18905
|
+
wG
|
|
18889
18906
|
]
|
|
18890
|
-
}), r[66] =
|
|
18907
|
+
}), r[66] = _G, r[67] = vG, r[68] = wG, r[69] = TG) : TG = r[69], TG;
|
|
18891
18908
|
});
|
|
18892
18909
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18893
18910
|
function getColumnSummaries() {
|
|
@@ -19078,23 +19095,23 @@ ${c}
|
|
|
19078
19095
|
}, [
|
|
19079
19096
|
H
|
|
19080
19097
|
]);
|
|
19081
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19098
|
+
let Z = (R == null ? void 0 : R.files) ?? [], QW = new Set(e.map((e2) => e2.path)), $W = l === "directory" || l === "all", eG = l === "file" || l === "all", tG = Z.filter((e2) => $W && e2.is_directory || eG && !e2.is_directory), nG = tG.length > 0 && tG.every((e2) => QW.has(e2.path));
|
|
19082
19099
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19083
19100
|
kind: "danger",
|
|
19084
19101
|
children: z.message
|
|
19085
19102
|
});
|
|
19086
|
-
let
|
|
19103
|
+
let rG = PathBuilder.guessDeliminator(c).deliminator, iG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19087
19104
|
children: e2.path
|
|
19088
19105
|
}, e2.id));
|
|
19089
|
-
function
|
|
19106
|
+
function oG(e2) {
|
|
19090
19107
|
var _a6;
|
|
19091
19108
|
if (v) return;
|
|
19092
19109
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19093
|
-
if (g ===
|
|
19110
|
+
if (g === rG) {
|
|
19094
19111
|
y(false);
|
|
19095
19112
|
return;
|
|
19096
19113
|
}
|
|
19097
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19114
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = rG);
|
|
19098
19115
|
}
|
|
19099
19116
|
let r2 = e2.length < c.length;
|
|
19100
19117
|
if (f && r2) {
|
|
@@ -19107,7 +19124,7 @@ ${c}
|
|
|
19107
19124
|
}
|
|
19108
19125
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19109
19126
|
}
|
|
19110
|
-
function
|
|
19127
|
+
function sG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19111
19128
|
return {
|
|
19112
19129
|
id: e2,
|
|
19113
19130
|
name: r2,
|
|
@@ -19115,27 +19132,27 @@ ${c}
|
|
|
19115
19132
|
is_directory: c2
|
|
19116
19133
|
};
|
|
19117
19134
|
}
|
|
19118
|
-
function
|
|
19119
|
-
let f2 =
|
|
19135
|
+
function cG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19136
|
+
let f2 = sG({
|
|
19120
19137
|
path: c2,
|
|
19121
19138
|
name: l2,
|
|
19122
19139
|
isDirectory: d2
|
|
19123
19140
|
});
|
|
19124
|
-
|
|
19141
|
+
QW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19125
19142
|
...e,
|
|
19126
19143
|
f2
|
|
19127
19144
|
] : [
|
|
19128
19145
|
f2
|
|
19129
19146
|
]);
|
|
19130
19147
|
}
|
|
19131
|
-
function
|
|
19148
|
+
function lG() {
|
|
19132
19149
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19133
19150
|
}
|
|
19134
|
-
function
|
|
19151
|
+
function uG() {
|
|
19135
19152
|
let c2 = [];
|
|
19136
19153
|
for (let e2 of Z) {
|
|
19137
|
-
if (
|
|
19138
|
-
let r2 =
|
|
19154
|
+
if (!$W && e2.is_directory || QW.has(e2.path)) continue;
|
|
19155
|
+
let r2 = sG({
|
|
19139
19156
|
path: e2.path,
|
|
19140
19157
|
name: e2.name,
|
|
19141
19158
|
isDirectory: e2.is_directory
|
|
@@ -19147,20 +19164,20 @@ ${c}
|
|
|
19147
19164
|
...c2
|
|
19148
19165
|
]);
|
|
19149
19166
|
}
|
|
19150
|
-
let
|
|
19167
|
+
let dG = [
|
|
19151
19168
|
{
|
|
19152
19169
|
key: "parent",
|
|
19153
19170
|
name: PARENT_DIRECTORY,
|
|
19154
19171
|
Icon: CornerLeftUp,
|
|
19155
19172
|
isSelected: false,
|
|
19156
19173
|
canSelect: false,
|
|
19157
|
-
onPrimary: () =>
|
|
19174
|
+
onPrimary: () => oG(PARENT_DIRECTORY),
|
|
19158
19175
|
onToggleSelect: null
|
|
19159
19176
|
},
|
|
19160
19177
|
...Z.map((e2) => {
|
|
19161
19178
|
let r2 = e2.path;
|
|
19162
19179
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19163
|
-
let c2 =
|
|
19180
|
+
let c2 = $W && e2.is_directory || eG && !e2.is_directory, l2 = QW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => cG({
|
|
19164
19181
|
path: r2,
|
|
19165
19182
|
name: e2.name,
|
|
19166
19183
|
isDirectory: e2.is_directory
|
|
@@ -19171,46 +19188,46 @@ ${c}
|
|
|
19171
19188
|
Icon: FILE_ICON[u2],
|
|
19172
19189
|
isSelected: l2,
|
|
19173
19190
|
canSelect: c2,
|
|
19174
|
-
onPrimary: e2.is_directory ? () =>
|
|
19191
|
+
onPrimary: e2.is_directory ? () => oG(r2) : c2 ? d2 : () => {
|
|
19175
19192
|
},
|
|
19176
19193
|
onToggleSelect: c2 ? d2 : null
|
|
19177
19194
|
};
|
|
19178
19195
|
})
|
|
19179
19196
|
];
|
|
19180
|
-
function
|
|
19197
|
+
function fG(e2) {
|
|
19181
19198
|
var _a6;
|
|
19182
19199
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19183
19200
|
}
|
|
19184
|
-
function
|
|
19201
|
+
function pG(e2, r2) {
|
|
19185
19202
|
var _a6, _b3;
|
|
19186
|
-
let c2 =
|
|
19203
|
+
let c2 = dG.length - 1;
|
|
19187
19204
|
switch (e2.key) {
|
|
19188
19205
|
case "ArrowDown":
|
|
19189
|
-
e2.preventDefault(),
|
|
19206
|
+
e2.preventDefault(), fG(Math.min(r2 + 1, c2));
|
|
19190
19207
|
break;
|
|
19191
19208
|
case "ArrowUp":
|
|
19192
|
-
e2.preventDefault(),
|
|
19209
|
+
e2.preventDefault(), fG(Math.max(r2 - 1, 0));
|
|
19193
19210
|
break;
|
|
19194
19211
|
case "Home":
|
|
19195
|
-
e2.preventDefault(),
|
|
19212
|
+
e2.preventDefault(), fG(0);
|
|
19196
19213
|
break;
|
|
19197
19214
|
case "End":
|
|
19198
|
-
e2.preventDefault(),
|
|
19215
|
+
e2.preventDefault(), fG(c2);
|
|
19199
19216
|
break;
|
|
19200
19217
|
case "Enter":
|
|
19201
|
-
e2.preventDefault(),
|
|
19218
|
+
e2.preventDefault(), dG[r2].onPrimary();
|
|
19202
19219
|
break;
|
|
19203
19220
|
case " ":
|
|
19204
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19221
|
+
e2.preventDefault(), (_b3 = (_a6 = dG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19205
19222
|
break;
|
|
19206
19223
|
}
|
|
19207
19224
|
}
|
|
19208
|
-
let { parentDirectories:
|
|
19225
|
+
let { parentDirectories: mG } = getProtocolAndParentDirectories({
|
|
19209
19226
|
path: g,
|
|
19210
|
-
delimiter:
|
|
19227
|
+
delimiter: rG,
|
|
19211
19228
|
initialPath: c,
|
|
19212
19229
|
restrictNavigation: f
|
|
19213
|
-
}),
|
|
19230
|
+
}), hG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19214
19231
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19215
19232
|
children: [
|
|
19216
19233
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19220,7 +19237,7 @@ ${c}
|
|
|
19220
19237
|
(() => {
|
|
19221
19238
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19222
19239
|
children: renderHTML({
|
|
19223
|
-
html: d ?? `Select ${
|
|
19240
|
+
html: d ?? `Select ${hG.join(" and ", 2)}...`
|
|
19224
19241
|
})
|
|
19225
19242
|
});
|
|
19226
19243
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19234,8 +19251,8 @@ ${c}
|
|
|
19234
19251
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19235
19252
|
size: "xs",
|
|
19236
19253
|
variant: "link",
|
|
19237
|
-
onClick:
|
|
19238
|
-
children:
|
|
19254
|
+
onClick: nG ? lG : uG,
|
|
19255
|
+
children: nG ? "Deselect all" : "Select all"
|
|
19239
19256
|
})
|
|
19240
19257
|
})
|
|
19241
19258
|
]
|
|
@@ -19245,8 +19262,8 @@ ${c}
|
|
|
19245
19262
|
className: "mt-2 w-full",
|
|
19246
19263
|
placeholder: g,
|
|
19247
19264
|
value: g,
|
|
19248
|
-
onChange: (e2) =>
|
|
19249
|
-
children:
|
|
19265
|
+
onChange: (e2) => oG(e2.target.value),
|
|
19266
|
+
children: mG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19250
19267
|
value: e2,
|
|
19251
19268
|
children: e2
|
|
19252
19269
|
}, e2))
|
|
@@ -19282,14 +19299,14 @@ ${c}
|
|
|
19282
19299
|
"aria-label": "File browser",
|
|
19283
19300
|
"aria-multiselectable": u,
|
|
19284
19301
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19285
|
-
children:
|
|
19302
|
+
children: dG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19286
19303
|
role: "row",
|
|
19287
19304
|
ref: (e3) => {
|
|
19288
19305
|
O.current[r2] = e3;
|
|
19289
19306
|
},
|
|
19290
19307
|
tabIndex: r2 === w ? 0 : -1,
|
|
19291
19308
|
onFocus: () => E(r2),
|
|
19292
|
-
onKeyDown: (e3) =>
|
|
19309
|
+
onKeyDown: (e3) => pG(e3, r2),
|
|
19293
19310
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19294
19311
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19295
19312
|
}),
|
|
@@ -19332,7 +19349,7 @@ ${c}
|
|
|
19332
19349
|
children: [
|
|
19333
19350
|
e.length,
|
|
19334
19351
|
" ",
|
|
19335
|
-
|
|
19352
|
+
hG.join(" or ", e.length),
|
|
19336
19353
|
" ",
|
|
19337
19354
|
"selected"
|
|
19338
19355
|
]
|
|
@@ -19352,7 +19369,7 @@ ${c}
|
|
|
19352
19369
|
marginBlock: 0
|
|
19353
19370
|
},
|
|
19354
19371
|
className: "m-0 text-xs text-muted-foreground",
|
|
19355
|
-
children:
|
|
19372
|
+
children: iG
|
|
19356
19373
|
})
|
|
19357
19374
|
})
|
|
19358
19375
|
]
|
|
@@ -24734,55 +24751,55 @@ ${c}
|
|
|
24734
24751
|
return typeof S == "function" ? S : noop$2;
|
|
24735
24752
|
}, [
|
|
24736
24753
|
S
|
|
24737
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24738
|
-
!
|
|
24739
|
-
Z.current && (Z.current.files.length || (
|
|
24754
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), QW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), $W = QW[0], eG = QW[1], tG = $W.isFocused, nG = $W.isFileDialogActive, rG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), iG = function() {
|
|
24755
|
+
!rG.current && nG && setTimeout(function() {
|
|
24756
|
+
Z.current && (Z.current.files.length || (eG({
|
|
24740
24757
|
type: "closeDialog"
|
|
24741
24758
|
}), G()));
|
|
24742
24759
|
}, 300);
|
|
24743
24760
|
};
|
|
24744
24761
|
(0, import_react.useEffect)(function() {
|
|
24745
|
-
return window.addEventListener("focus",
|
|
24746
|
-
window.removeEventListener("focus",
|
|
24762
|
+
return window.addEventListener("focus", iG, false), function() {
|
|
24763
|
+
window.removeEventListener("focus", iG, false);
|
|
24747
24764
|
};
|
|
24748
24765
|
}, [
|
|
24749
24766
|
Z,
|
|
24750
|
-
|
|
24767
|
+
nG,
|
|
24751
24768
|
G,
|
|
24752
|
-
|
|
24769
|
+
rG
|
|
24753
24770
|
]);
|
|
24754
|
-
var
|
|
24755
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24771
|
+
var aG = (0, import_react.useRef)([]), oG = (0, import_react.useRef)([]), sG = function(e2) {
|
|
24772
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), aG.current = []);
|
|
24756
24773
|
};
|
|
24757
24774
|
(0, import_react.useEffect)(function() {
|
|
24758
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24759
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24775
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", sG, false)), function() {
|
|
24776
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", sG));
|
|
24760
24777
|
};
|
|
24761
24778
|
}, [
|
|
24762
24779
|
q,
|
|
24763
24780
|
O
|
|
24764
24781
|
]), (0, import_react.useEffect)(function() {
|
|
24765
24782
|
var e2 = function(e3) {
|
|
24766
|
-
|
|
24783
|
+
oG.current = [].concat(_toConsumableArray(oG.current), [
|
|
24767
24784
|
e3.target
|
|
24768
|
-
]), isEvtWithFiles(e3) &&
|
|
24785
|
+
]), isEvtWithFiles(e3) && eG({
|
|
24769
24786
|
isDragGlobal: true,
|
|
24770
24787
|
type: "setDragGlobal"
|
|
24771
24788
|
});
|
|
24772
24789
|
}, r2 = function(e3) {
|
|
24773
|
-
|
|
24790
|
+
oG.current = oG.current.filter(function(r3) {
|
|
24774
24791
|
return r3 !== e3.target && r3 !== null;
|
|
24775
|
-
}), !(
|
|
24792
|
+
}), !(oG.current.length > 0) && eG({
|
|
24776
24793
|
isDragGlobal: false,
|
|
24777
24794
|
type: "setDragGlobal"
|
|
24778
24795
|
});
|
|
24779
24796
|
}, c2 = function() {
|
|
24780
|
-
|
|
24797
|
+
oG.current = [], eG({
|
|
24781
24798
|
isDragGlobal: false,
|
|
24782
24799
|
type: "setDragGlobal"
|
|
24783
24800
|
});
|
|
24784
24801
|
}, l2 = function() {
|
|
24785
|
-
|
|
24802
|
+
oG.current = [], eG({
|
|
24786
24803
|
isDragGlobal: false,
|
|
24787
24804
|
type: "setDragGlobal"
|
|
24788
24805
|
});
|
|
@@ -24800,12 +24817,12 @@ ${c}
|
|
|
24800
24817
|
E,
|
|
24801
24818
|
l
|
|
24802
24819
|
]);
|
|
24803
|
-
var
|
|
24820
|
+
var cG = (0, import_react.useCallback)(function(e2) {
|
|
24804
24821
|
R ? R(e2) : console.error(e2);
|
|
24805
24822
|
}, [
|
|
24806
24823
|
R
|
|
24807
|
-
]),
|
|
24808
|
-
e2.preventDefault(), e2.persist(),
|
|
24824
|
+
]), lG = (0, import_react.useCallback)(function(e2) {
|
|
24825
|
+
e2.preventDefault(), e2.persist(), SG(e2), aG.current = [].concat(_toConsumableArray(aG.current), [
|
|
24809
24826
|
e2.target
|
|
24810
24827
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24811
24828
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24818,7 +24835,7 @@ ${c}
|
|
|
24818
24835
|
maxFiles: m,
|
|
24819
24836
|
validator: z
|
|
24820
24837
|
});
|
|
24821
|
-
|
|
24838
|
+
eG({
|
|
24822
24839
|
isDragAccept: l2,
|
|
24823
24840
|
isDragReject: c2 > 0 && !l2,
|
|
24824
24841
|
isDragActive: true,
|
|
@@ -24826,12 +24843,12 @@ ${c}
|
|
|
24826
24843
|
}), h && h(e2);
|
|
24827
24844
|
}
|
|
24828
24845
|
}).catch(function(e3) {
|
|
24829
|
-
return
|
|
24846
|
+
return cG(e3);
|
|
24830
24847
|
});
|
|
24831
24848
|
}, [
|
|
24832
24849
|
u,
|
|
24833
24850
|
h,
|
|
24834
|
-
|
|
24851
|
+
cG,
|
|
24835
24852
|
L,
|
|
24836
24853
|
B,
|
|
24837
24854
|
f,
|
|
@@ -24839,8 +24856,8 @@ ${c}
|
|
|
24839
24856
|
p,
|
|
24840
24857
|
m,
|
|
24841
24858
|
z
|
|
24842
|
-
]),
|
|
24843
|
-
e2.preventDefault(), e2.persist(),
|
|
24859
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24860
|
+
e2.preventDefault(), e2.persist(), SG(e2);
|
|
24844
24861
|
var r2 = isEvtWithFiles(e2);
|
|
24845
24862
|
if (r2 && e2.dataTransfer) try {
|
|
24846
24863
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24850,12 +24867,12 @@ ${c}
|
|
|
24850
24867
|
}, [
|
|
24851
24868
|
_,
|
|
24852
24869
|
L
|
|
24853
|
-
]),
|
|
24854
|
-
e2.preventDefault(), e2.persist(),
|
|
24855
|
-
var r2 =
|
|
24870
|
+
]), dG = (0, import_react.useCallback)(function(e2) {
|
|
24871
|
+
e2.preventDefault(), e2.persist(), SG(e2);
|
|
24872
|
+
var r2 = aG.current.filter(function(e3) {
|
|
24856
24873
|
return q.current && q.current.contains(e3);
|
|
24857
24874
|
}), c2 = r2.indexOf(e2.target);
|
|
24858
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24875
|
+
c2 !== -1 && r2.splice(c2, 1), aG.current = r2, !(r2.length > 0) && (eG({
|
|
24859
24876
|
type: "setDraggedFiles",
|
|
24860
24877
|
isDragActive: false,
|
|
24861
24878
|
isDragAccept: false,
|
|
@@ -24865,7 +24882,7 @@ ${c}
|
|
|
24865
24882
|
q,
|
|
24866
24883
|
g,
|
|
24867
24884
|
L
|
|
24868
|
-
]),
|
|
24885
|
+
]), fG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24869
24886
|
var c2 = [], l2 = [];
|
|
24870
24887
|
e2.forEach(function(e3) {
|
|
24871
24888
|
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;
|
|
@@ -24889,14 +24906,14 @@ ${c}
|
|
|
24889
24906
|
TOO_MANY_FILES_REJECTION
|
|
24890
24907
|
]
|
|
24891
24908
|
});
|
|
24892
|
-
}), c2.splice(0)),
|
|
24909
|
+
}), c2.splice(0)), eG({
|
|
24893
24910
|
acceptedFiles: c2,
|
|
24894
24911
|
fileRejections: l2,
|
|
24895
24912
|
isDragReject: l2.length > 0,
|
|
24896
24913
|
type: "setFiles"
|
|
24897
24914
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24898
24915
|
}, [
|
|
24899
|
-
|
|
24916
|
+
eG,
|
|
24900
24917
|
p,
|
|
24901
24918
|
B,
|
|
24902
24919
|
f,
|
|
@@ -24906,22 +24923,22 @@ ${c}
|
|
|
24906
24923
|
y,
|
|
24907
24924
|
b,
|
|
24908
24925
|
z
|
|
24909
|
-
]),
|
|
24910
|
-
e2.preventDefault(), e2.persist(),
|
|
24911
|
-
isPropagationStopped(e2) && !L ||
|
|
24926
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24927
|
+
e2.preventDefault(), e2.persist(), SG(e2), aG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24928
|
+
isPropagationStopped(e2) && !L || fG(r2, e2);
|
|
24912
24929
|
}).catch(function(e3) {
|
|
24913
|
-
return
|
|
24914
|
-
}),
|
|
24930
|
+
return cG(e3);
|
|
24931
|
+
}), eG({
|
|
24915
24932
|
type: "reset"
|
|
24916
24933
|
});
|
|
24917
24934
|
}, [
|
|
24918
24935
|
u,
|
|
24919
|
-
|
|
24920
|
-
|
|
24936
|
+
fG,
|
|
24937
|
+
cG,
|
|
24921
24938
|
L
|
|
24922
|
-
]),
|
|
24923
|
-
if (
|
|
24924
|
-
|
|
24939
|
+
]), mG = (0, import_react.useCallback)(function() {
|
|
24940
|
+
if (rG.current) {
|
|
24941
|
+
eG({
|
|
24925
24942
|
type: "openDialog"
|
|
24926
24943
|
}), W();
|
|
24927
24944
|
var e2 = {
|
|
@@ -24931,66 +24948,66 @@ ${c}
|
|
|
24931
24948
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24932
24949
|
return u(e3);
|
|
24933
24950
|
}).then(function(e3) {
|
|
24934
|
-
|
|
24951
|
+
fG(e3, null), eG({
|
|
24935
24952
|
type: "closeDialog"
|
|
24936
24953
|
});
|
|
24937
24954
|
}).catch(function(e3) {
|
|
24938
|
-
isAbort(e3) ? (G(e3),
|
|
24955
|
+
isAbort(e3) ? (G(e3), eG({
|
|
24939
24956
|
type: "closeDialog"
|
|
24940
|
-
})) : isSecurityError(e3) ? (
|
|
24957
|
+
})) : isSecurityError(e3) ? (rG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : cG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : cG(e3);
|
|
24941
24958
|
});
|
|
24942
24959
|
return;
|
|
24943
24960
|
}
|
|
24944
|
-
Z.current && (
|
|
24961
|
+
Z.current && (eG({
|
|
24945
24962
|
type: "openDialog"
|
|
24946
24963
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24947
24964
|
}, [
|
|
24948
|
-
|
|
24965
|
+
eG,
|
|
24949
24966
|
W,
|
|
24950
24967
|
G,
|
|
24951
24968
|
T,
|
|
24952
|
-
|
|
24953
|
-
|
|
24969
|
+
fG,
|
|
24970
|
+
cG,
|
|
24954
24971
|
H,
|
|
24955
24972
|
p
|
|
24956
|
-
]),
|
|
24957
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24973
|
+
]), hG = (0, import_react.useCallback)(function(e2) {
|
|
24974
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), mG());
|
|
24958
24975
|
}, [
|
|
24959
24976
|
q,
|
|
24960
|
-
|
|
24961
|
-
]),
|
|
24962
|
-
|
|
24977
|
+
mG
|
|
24978
|
+
]), gG = (0, import_react.useCallback)(function() {
|
|
24979
|
+
eG({
|
|
24963
24980
|
type: "focus"
|
|
24964
24981
|
});
|
|
24965
|
-
}, []),
|
|
24966
|
-
|
|
24982
|
+
}, []), _G = (0, import_react.useCallback)(function() {
|
|
24983
|
+
eG({
|
|
24967
24984
|
type: "blur"
|
|
24968
24985
|
});
|
|
24969
|
-
}, []),
|
|
24970
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24986
|
+
}, []), vG = (0, import_react.useCallback)(function() {
|
|
24987
|
+
j || (isIeOrEdge() ? setTimeout(mG, 0) : mG());
|
|
24971
24988
|
}, [
|
|
24972
24989
|
j,
|
|
24973
|
-
|
|
24974
|
-
]),
|
|
24990
|
+
mG
|
|
24991
|
+
]), yG = function(e2) {
|
|
24975
24992
|
return l ? null : e2;
|
|
24976
|
-
},
|
|
24977
|
-
return M ? null :
|
|
24978
|
-
},
|
|
24979
|
-
return I ? null :
|
|
24980
|
-
},
|
|
24993
|
+
}, bG = function(e2) {
|
|
24994
|
+
return M ? null : yG(e2);
|
|
24995
|
+
}, xG = function(e2) {
|
|
24996
|
+
return I ? null : yG(e2);
|
|
24997
|
+
}, SG = function(e2) {
|
|
24981
24998
|
L && e2.stopPropagation();
|
|
24982
|
-
},
|
|
24999
|
+
}, CG = (0, import_react.useMemo)(function() {
|
|
24983
25000
|
return function() {
|
|
24984
25001
|
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);
|
|
24985
25002
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24986
|
-
onKeyDown:
|
|
24987
|
-
onFocus:
|
|
24988
|
-
onBlur:
|
|
24989
|
-
onClick:
|
|
24990
|
-
onDragEnter:
|
|
24991
|
-
onDragOver:
|
|
24992
|
-
onDragLeave:
|
|
24993
|
-
onDrop:
|
|
25003
|
+
onKeyDown: bG(composeEventHandlers(d2, hG)),
|
|
25004
|
+
onFocus: bG(composeEventHandlers(f2, gG)),
|
|
25005
|
+
onBlur: bG(composeEventHandlers(p2, _G)),
|
|
25006
|
+
onClick: yG(composeEventHandlers(m2, vG)),
|
|
25007
|
+
onDragEnter: xG(composeEventHandlers(h2, lG)),
|
|
25008
|
+
onDragOver: xG(composeEventHandlers(g2, uG)),
|
|
25009
|
+
onDragLeave: xG(composeEventHandlers(_2, dG)),
|
|
25010
|
+
onDrop: xG(composeEventHandlers(v2, pG)),
|
|
24994
25011
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24995
25012
|
}, c2, q), !l && !M ? {
|
|
24996
25013
|
tabIndex: 0
|
|
@@ -24998,20 +25015,20 @@ ${c}
|
|
|
24998
25015
|
};
|
|
24999
25016
|
}, [
|
|
25000
25017
|
q,
|
|
25001
|
-
fG,
|
|
25002
|
-
pG,
|
|
25003
|
-
mG,
|
|
25004
25018
|
hG,
|
|
25005
|
-
|
|
25006
|
-
|
|
25007
|
-
|
|
25019
|
+
gG,
|
|
25020
|
+
_G,
|
|
25021
|
+
vG,
|
|
25022
|
+
lG,
|
|
25008
25023
|
uG,
|
|
25024
|
+
dG,
|
|
25025
|
+
pG,
|
|
25009
25026
|
M,
|
|
25010
25027
|
I,
|
|
25011
25028
|
l
|
|
25012
|
-
]),
|
|
25029
|
+
]), wG = (0, import_react.useCallback)(function(e2) {
|
|
25013
25030
|
e2.stopPropagation();
|
|
25014
|
-
}, []),
|
|
25031
|
+
}, []), TG = (0, import_react.useMemo)(function() {
|
|
25015
25032
|
return function() {
|
|
25016
25033
|
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);
|
|
25017
25034
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25030,8 +25047,8 @@ ${c}
|
|
|
25030
25047
|
width: "1px",
|
|
25031
25048
|
whiteSpace: "nowrap"
|
|
25032
25049
|
},
|
|
25033
|
-
onChange:
|
|
25034
|
-
onClick:
|
|
25050
|
+
onChange: yG(composeEventHandlers(l2, pG)),
|
|
25051
|
+
onClick: yG(composeEventHandlers(u2, wG)),
|
|
25035
25052
|
tabIndex: -1
|
|
25036
25053
|
}, c2, Z)), d2);
|
|
25037
25054
|
};
|
|
@@ -25039,16 +25056,16 @@ ${c}
|
|
|
25039
25056
|
Z,
|
|
25040
25057
|
c,
|
|
25041
25058
|
p,
|
|
25042
|
-
|
|
25059
|
+
pG,
|
|
25043
25060
|
l
|
|
25044
25061
|
]);
|
|
25045
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25046
|
-
isFocused:
|
|
25047
|
-
getRootProps:
|
|
25048
|
-
getInputProps:
|
|
25062
|
+
return _objectSpread$7(_objectSpread$7({}, $W), {}, {
|
|
25063
|
+
isFocused: tG && !l,
|
|
25064
|
+
getRootProps: CG,
|
|
25065
|
+
getInputProps: TG,
|
|
25049
25066
|
rootRef: q,
|
|
25050
25067
|
inputRef: Z,
|
|
25051
|
-
open:
|
|
25068
|
+
open: yG(mG)
|
|
25052
25069
|
});
|
|
25053
25070
|
}
|
|
25054
25071
|
function reducer$2(e, r) {
|
|
@@ -25280,47 +25297,47 @@ ${c}
|
|
|
25280
25297
|
html: I
|
|
25281
25298
|
})
|
|
25282
25299
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25283
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25284
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25285
|
-
let
|
|
25286
|
-
r[51] ===
|
|
25300
|
+
let q = w && "text-primary", Z = T && "text-destructive", QW;
|
|
25301
|
+
r[48] !== q || r[49] !== Z ? (QW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = QW) : QW = r[50];
|
|
25302
|
+
let $W;
|
|
25303
|
+
r[51] === QW ? $W = r[52] : ($W = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25287
25304
|
strokeWidth: 1.4,
|
|
25288
|
-
className:
|
|
25289
|
-
}), r[51] =
|
|
25290
|
-
let
|
|
25291
|
-
r[53] !==
|
|
25292
|
-
let
|
|
25293
|
-
r[56] ===
|
|
25305
|
+
className: QW
|
|
25306
|
+
}), r[51] = QW, r[52] = $W);
|
|
25307
|
+
let eG = w && "text-primary", tG = T && "text-destructive", nG;
|
|
25308
|
+
r[53] !== eG || r[54] !== tG ? (nG = cn(eG, tG), r[53] = eG, r[54] = tG, r[55] = nG) : nG = r[55];
|
|
25309
|
+
let rG;
|
|
25310
|
+
r[56] === nG ? rG = r[57] : (rG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25294
25311
|
strokeWidth: 1.4,
|
|
25295
|
-
className:
|
|
25296
|
-
}), r[56] =
|
|
25297
|
-
let
|
|
25298
|
-
r[58] !==
|
|
25312
|
+
className: nG
|
|
25313
|
+
}), r[56] = nG, r[57] = rG);
|
|
25314
|
+
let iG;
|
|
25315
|
+
r[58] !== $W || r[59] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25299
25316
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25300
25317
|
children: [
|
|
25301
|
-
|
|
25302
|
-
|
|
25318
|
+
$W,
|
|
25319
|
+
rG
|
|
25303
25320
|
]
|
|
25304
|
-
}), r[58] =
|
|
25305
|
-
let
|
|
25306
|
-
r[61] !== G || r[62] !==
|
|
25321
|
+
}), r[58] = $W, r[59] = rG, r[60] = iG) : iG = r[60];
|
|
25322
|
+
let oG;
|
|
25323
|
+
r[61] !== G || r[62] !== iG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25307
25324
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25308
25325
|
children: [
|
|
25309
25326
|
G,
|
|
25310
|
-
|
|
25327
|
+
iG
|
|
25311
25328
|
]
|
|
25312
|
-
}), r[61] = G, r[62] =
|
|
25313
|
-
let
|
|
25314
|
-
r[64] !== W || r[65] !==
|
|
25329
|
+
}), r[61] = G, r[62] = iG, r[63] = oG) : oG = r[63];
|
|
25330
|
+
let sG;
|
|
25331
|
+
r[64] !== W || r[65] !== oG || r[66] !== z || r[67] !== B ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25315
25332
|
className: z,
|
|
25316
25333
|
...B,
|
|
25317
25334
|
children: [
|
|
25318
25335
|
W,
|
|
25319
|
-
|
|
25336
|
+
oG
|
|
25320
25337
|
]
|
|
25321
|
-
}), r[64] = W, r[65] =
|
|
25322
|
-
let
|
|
25323
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25338
|
+
}), r[64] = W, r[65] = oG, r[66] = z, r[67] = B, r[68] = sG) : sG = r[68];
|
|
25339
|
+
let cG;
|
|
25340
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (cG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25324
25341
|
className: "flex flex-row gap-1",
|
|
25325
25342
|
children: [
|
|
25326
25343
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25356,17 +25373,17 @@ ${c}
|
|
|
25356
25373
|
})
|
|
25357
25374
|
})
|
|
25358
25375
|
]
|
|
25359
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25360
|
-
let
|
|
25361
|
-
return r[75] !==
|
|
25376
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = cG) : cG = r[74];
|
|
25377
|
+
let lG;
|
|
25378
|
+
return r[75] !== sG || r[76] !== cG ? (lG = (0, import_jsx_runtime.jsx)("section", {
|
|
25362
25379
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25363
25380
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25364
25381
|
children: [
|
|
25365
|
-
|
|
25366
|
-
|
|
25382
|
+
sG,
|
|
25383
|
+
cG
|
|
25367
25384
|
]
|
|
25368
25385
|
})
|
|
25369
|
-
}), r[75] =
|
|
25386
|
+
}), r[75] = sG, r[76] = cG, r[77] = lG) : lG = r[77], lG;
|
|
25370
25387
|
};
|
|
25371
25388
|
function _temp$11(e) {
|
|
25372
25389
|
Logger.error(e), toast({
|
|
@@ -25469,68 +25486,68 @@ ${c}
|
|
|
25469
25486
|
html: f
|
|
25470
25487
|
})
|
|
25471
25488
|
}), r[13] = f, r[14] = Z);
|
|
25472
|
-
let
|
|
25473
|
-
r[15] === L ?
|
|
25489
|
+
let QW;
|
|
25490
|
+
r[15] === L ? QW = r[16] : (QW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25474
25491
|
kind: "danger",
|
|
25475
25492
|
className: "rounded",
|
|
25476
25493
|
children: L ?? "Invalid input"
|
|
25477
|
-
}), r[15] = L, r[16] =
|
|
25478
|
-
let
|
|
25479
|
-
r[17] === c ?
|
|
25494
|
+
}), r[15] = L, r[16] = QW);
|
|
25495
|
+
let $W;
|
|
25496
|
+
r[17] === c ? $W = r[18] : ($W = (0, import_jsx_runtime.jsx)("div", {
|
|
25480
25497
|
children: c
|
|
25481
|
-
}), r[17] = c, r[18] =
|
|
25482
|
-
let
|
|
25483
|
-
r[19] !== S || r[20] !== w || r[21] !== b ? (
|
|
25498
|
+
}), r[17] = c, r[18] = $W);
|
|
25499
|
+
let eG;
|
|
25500
|
+
r[19] !== S || r[20] !== w || r[21] !== b ? (eG = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25484
25501
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25485
25502
|
variant: "text",
|
|
25486
25503
|
onClick: (e2) => {
|
|
25487
25504
|
e2.preventDefault(), B();
|
|
25488
25505
|
},
|
|
25489
25506
|
children: S
|
|
25490
|
-
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] =
|
|
25491
|
-
let
|
|
25492
|
-
r[23] === m ?
|
|
25507
|
+
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] = eG) : eG = r[22];
|
|
25508
|
+
let tG = v || m, nG;
|
|
25509
|
+
r[23] === m ? nG = r[24] : (nG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25493
25510
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25494
|
-
}), r[23] = m, r[24] =
|
|
25495
|
-
let
|
|
25496
|
-
r[25] !== g || r[26] !==
|
|
25511
|
+
}), r[23] = m, r[24] = nG);
|
|
25512
|
+
let rG;
|
|
25513
|
+
r[25] !== g || r[26] !== tG || r[27] !== nG || r[28] !== I ? (rG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25497
25514
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25498
25515
|
variant: I,
|
|
25499
|
-
disabled:
|
|
25516
|
+
disabled: tG,
|
|
25500
25517
|
type: "submit",
|
|
25501
25518
|
children: [
|
|
25502
|
-
|
|
25519
|
+
nG,
|
|
25503
25520
|
g
|
|
25504
25521
|
]
|
|
25505
|
-
}), r[25] = g, r[26] =
|
|
25506
|
-
let
|
|
25507
|
-
r[30] !== _ || r[31] !==
|
|
25508
|
-
let
|
|
25509
|
-
r[33] !==
|
|
25522
|
+
}), r[25] = g, r[26] = tG, r[27] = nG, r[28] = I, r[29] = rG) : rG = r[29];
|
|
25523
|
+
let iG;
|
|
25524
|
+
r[30] !== _ || r[31] !== rG ? (iG = withTooltip(rG, _), r[30] = _, r[31] = rG, r[32] = iG) : iG = r[32];
|
|
25525
|
+
let oG;
|
|
25526
|
+
r[33] !== iG || r[34] !== eG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25510
25527
|
className: "flex justify-end gap-2 font-code",
|
|
25511
25528
|
children: [
|
|
25512
|
-
|
|
25513
|
-
|
|
25529
|
+
eG,
|
|
25530
|
+
iG
|
|
25514
25531
|
]
|
|
25515
|
-
}), r[33] =
|
|
25516
|
-
let
|
|
25517
|
-
r[36] !==
|
|
25532
|
+
}), r[33] = iG, r[34] = eG, r[35] = oG) : oG = r[35];
|
|
25533
|
+
let sG;
|
|
25534
|
+
r[36] !== oG || r[37] !== G || r[38] !== q || r[39] !== Z || r[40] !== QW || r[41] !== $W ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25518
25535
|
className: G,
|
|
25519
25536
|
onKeyDown: q,
|
|
25520
25537
|
children: [
|
|
25521
25538
|
Z,
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25539
|
+
QW,
|
|
25540
|
+
$W,
|
|
25541
|
+
oG
|
|
25525
25542
|
]
|
|
25526
|
-
}), r[36] =
|
|
25527
|
-
let
|
|
25528
|
-
return r[43] !==
|
|
25543
|
+
}), r[36] = oG, r[37] = G, r[38] = q, r[39] = Z, r[40] = QW, r[41] = $W, r[42] = sG) : sG = r[42];
|
|
25544
|
+
let cG;
|
|
25545
|
+
return r[43] !== sG || r[44] !== H ? (cG = (0, import_jsx_runtime.jsx)("form", {
|
|
25529
25546
|
className: "contents",
|
|
25530
25547
|
ref: j,
|
|
25531
25548
|
onSubmit: H,
|
|
25532
|
-
children:
|
|
25533
|
-
}), r[43] =
|
|
25549
|
+
children: sG
|
|
25550
|
+
}), r[43] = sG, r[44] = H, r[45] = cG) : cG = r[45], cG;
|
|
25534
25551
|
};
|
|
25535
25552
|
var Form = (e) => {
|
|
25536
25553
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27316,8 +27333,8 @@ ${c}
|
|
|
27316
27333
|
indices: c2
|
|
27317
27334
|
}));
|
|
27318
27335
|
}, r[31] = u, r[32] = Z);
|
|
27319
|
-
let
|
|
27320
|
-
r[33] === u ?
|
|
27336
|
+
let QW = useEvent_default(Z), $W;
|
|
27337
|
+
r[33] === u ? $W = r[34] : ($W = (e2) => {
|
|
27321
27338
|
e2 && u((r2) => ({
|
|
27322
27339
|
...r2,
|
|
27323
27340
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27326,9 +27343,9 @@ ${c}
|
|
|
27326
27343
|
range: e2.range,
|
|
27327
27344
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27328
27345
|
}));
|
|
27329
|
-
}, r[33] = u, r[34] =
|
|
27330
|
-
let
|
|
27331
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27346
|
+
}, r[33] = u, r[34] = $W);
|
|
27347
|
+
let eG = useEvent_default($W), tG = m.frames ?? void 0, nG = useEvent_default(_temp3$3), rG;
|
|
27348
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== QW || r[42] !== eG || r[43] !== tG || r[44] !== nG || r[45] !== R ? (rG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27332
27349
|
...m,
|
|
27333
27350
|
layout: h,
|
|
27334
27351
|
onRelayout: R,
|
|
@@ -27336,13 +27353,13 @@ ${c}
|
|
|
27336
27353
|
onTreemapClick: W,
|
|
27337
27354
|
onSunburstClick: q,
|
|
27338
27355
|
config: L,
|
|
27339
|
-
onClick:
|
|
27340
|
-
onSelected:
|
|
27356
|
+
onClick: QW,
|
|
27357
|
+
onSelected: eG,
|
|
27341
27358
|
className: "w-full",
|
|
27342
27359
|
useResizeHandler: true,
|
|
27343
|
-
frames:
|
|
27344
|
-
onError:
|
|
27345
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27360
|
+
frames: tG,
|
|
27361
|
+
onError: nG
|
|
27362
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = QW, r[42] = eG, r[43] = tG, r[44] = nG, r[45] = R, r[46] = rG) : rG = r[46], rG;
|
|
27346
27363
|
});
|
|
27347
27364
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27348
27365
|
function _temp$8(e) {
|
|
@@ -27487,8 +27504,8 @@ ${c}
|
|
|
27487
27504
|
onPointerUp: H
|
|
27488
27505
|
})
|
|
27489
27506
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27490
|
-
let
|
|
27491
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27507
|
+
let QW;
|
|
27508
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (QW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27492
27509
|
asChild: true,
|
|
27493
27510
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27494
27511
|
"data-testid": "thumb",
|
|
@@ -27498,30 +27515,30 @@ ${c}
|
|
|
27498
27515
|
onMouseEnter: p.setTrue,
|
|
27499
27516
|
onMouseLeave: p.setFalse
|
|
27500
27517
|
})
|
|
27501
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27502
|
-
let
|
|
27503
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27518
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = QW) : QW = c[25];
|
|
27519
|
+
let $W;
|
|
27520
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? ($W = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27504
27521
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27505
27522
|
locale: m
|
|
27506
27523
|
})
|
|
27507
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27508
|
-
let
|
|
27509
|
-
c[30] ===
|
|
27510
|
-
children:
|
|
27511
|
-
}), c[30] =
|
|
27512
|
-
let
|
|
27513
|
-
c[32] !== f || c[33] !==
|
|
27524
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = $W) : $W = c[29];
|
|
27525
|
+
let eG;
|
|
27526
|
+
c[30] === $W ? eG = c[31] : (eG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27527
|
+
children: $W
|
|
27528
|
+
}), c[30] = $W, c[31] = eG);
|
|
27529
|
+
let tG;
|
|
27530
|
+
c[32] !== f || c[33] !== QW || c[34] !== eG ? (tG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27514
27531
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27515
27532
|
delayDuration: 0,
|
|
27516
27533
|
open: f,
|
|
27517
27534
|
children: [
|
|
27518
|
-
|
|
27519
|
-
|
|
27535
|
+
QW,
|
|
27536
|
+
eG
|
|
27520
27537
|
]
|
|
27521
27538
|
})
|
|
27522
|
-
}), c[32] = f, c[33] =
|
|
27523
|
-
let
|
|
27524
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27539
|
+
}), c[32] = f, c[33] = QW, c[34] = eG, c[35] = tG) : tG = c[35];
|
|
27540
|
+
let nG;
|
|
27541
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (nG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27525
27542
|
asChild: true,
|
|
27526
27543
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27527
27544
|
"data-testid": "thumb",
|
|
@@ -27531,39 +27548,39 @@ ${c}
|
|
|
27531
27548
|
onMouseEnter: p.setTrue,
|
|
27532
27549
|
onMouseLeave: p.setFalse
|
|
27533
27550
|
})
|
|
27534
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27535
|
-
let
|
|
27536
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27551
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = nG) : nG = c[38];
|
|
27552
|
+
let rG;
|
|
27553
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (rG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27537
27554
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27538
27555
|
locale: m
|
|
27539
27556
|
})
|
|
27540
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27541
|
-
let
|
|
27542
|
-
c[43] ===
|
|
27543
|
-
children:
|
|
27544
|
-
}), c[43] =
|
|
27545
|
-
let
|
|
27546
|
-
c[45] !== f || c[46] !==
|
|
27557
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = rG) : rG = c[42];
|
|
27558
|
+
let iG;
|
|
27559
|
+
c[43] === rG ? iG = c[44] : (iG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27560
|
+
children: rG
|
|
27561
|
+
}), c[43] = rG, c[44] = iG);
|
|
27562
|
+
let aG;
|
|
27563
|
+
c[45] !== f || c[46] !== nG || c[47] !== iG ? (aG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27547
27564
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27548
27565
|
delayDuration: 0,
|
|
27549
27566
|
open: f,
|
|
27550
27567
|
children: [
|
|
27551
|
-
|
|
27552
|
-
|
|
27568
|
+
nG,
|
|
27569
|
+
iG
|
|
27553
27570
|
]
|
|
27554
27571
|
})
|
|
27555
|
-
}), c[45] = f, c[46] =
|
|
27556
|
-
let
|
|
27557
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27572
|
+
}), c[45] = f, c[46] = nG, c[47] = iG, c[48] = aG) : aG = c[48];
|
|
27573
|
+
let oG;
|
|
27574
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== tG || c[53] !== aG || c[54] !== W ? (oG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27558
27575
|
ref: M,
|
|
27559
27576
|
className: W,
|
|
27560
27577
|
...u,
|
|
27561
27578
|
children: [
|
|
27562
27579
|
Z,
|
|
27563
|
-
|
|
27564
|
-
|
|
27580
|
+
tG,
|
|
27581
|
+
aG
|
|
27565
27582
|
]
|
|
27566
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27583
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = tG, c[53] = aG, c[54] = W, c[55] = oG) : oG = c[55], oG;
|
|
27567
27584
|
});
|
|
27568
27585
|
RangeSlider.displayName = Root.displayName;
|
|
27569
27586
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27614,14 +27631,14 @@ ${c}
|
|
|
27614
27631
|
}, q = (e2) => {
|
|
27615
27632
|
m && l(e2);
|
|
27616
27633
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27617
|
-
let Z,
|
|
27634
|
+
let Z, QW;
|
|
27618
27635
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27619
27636
|
m && !dequal(T, u) && l(T);
|
|
27620
|
-
},
|
|
27637
|
+
}, QW = () => {
|
|
27621
27638
|
m && !dequal(T, u) && l(T);
|
|
27622
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27623
|
-
let
|
|
27624
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
27639
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = QW) : (Z = r[18], QW = r[19]);
|
|
27640
|
+
let $W;
|
|
27641
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== QW || r[32] !== b ? ($W = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27625
27642
|
id: S,
|
|
27626
27643
|
className: W,
|
|
27627
27644
|
value: T,
|
|
@@ -27633,35 +27650,35 @@ ${c}
|
|
|
27633
27650
|
onValueChange: G,
|
|
27634
27651
|
onValueCommit: q,
|
|
27635
27652
|
onPointerUp: Z,
|
|
27636
|
-
onMouseUp:
|
|
27653
|
+
onMouseUp: QW,
|
|
27637
27654
|
valueMap: b
|
|
27638
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
27639
|
-
let
|
|
27640
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27655
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = QW, r[32] = b, r[33] = $W) : $W = r[33];
|
|
27656
|
+
let eG;
|
|
27657
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (eG = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27641
27658
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27642
27659
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27643
27660
|
locale: w
|
|
27644
27661
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27645
27662
|
locale: w
|
|
27646
27663
|
})}`
|
|
27647
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27648
|
-
let
|
|
27649
|
-
r[39] !==
|
|
27664
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = eG) : eG = r[38];
|
|
27665
|
+
let tG;
|
|
27666
|
+
r[39] !== $W || r[40] !== eG || r[41] !== B ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27650
27667
|
className: B,
|
|
27651
27668
|
children: [
|
|
27652
|
-
|
|
27653
|
-
|
|
27669
|
+
$W,
|
|
27670
|
+
eG
|
|
27654
27671
|
]
|
|
27655
|
-
}), r[39] =
|
|
27656
|
-
let
|
|
27657
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27672
|
+
}), r[39] = $W, r[40] = eG, r[41] = B, r[42] = tG) : tG = r[42];
|
|
27673
|
+
let nG;
|
|
27674
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== tG || r[47] !== M || r[48] !== L ? (nG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27658
27675
|
label: c,
|
|
27659
27676
|
id: S,
|
|
27660
27677
|
align: M,
|
|
27661
27678
|
className: L,
|
|
27662
27679
|
fullWidth: v,
|
|
27663
|
-
children:
|
|
27664
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27680
|
+
children: tG
|
|
27681
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = tG, r[47] = M, r[48] = L, r[49] = nG) : nG = r[49], nG;
|
|
27665
27682
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27666
27683
|
r.exports = u;
|
|
27667
27684
|
var c = {
|
|
@@ -30960,40 +30977,40 @@ ${c}
|
|
|
30960
30977
|
areRegExpsEqual: H,
|
|
30961
30978
|
areSetsEqual: G,
|
|
30962
30979
|
createIsNestedEqual: r2
|
|
30963
|
-
}),
|
|
30964
|
-
function
|
|
30965
|
-
return
|
|
30980
|
+
}), QW = T(q);
|
|
30981
|
+
function $W(e3, r3) {
|
|
30982
|
+
return QW(e3, r3, void 0);
|
|
30966
30983
|
}
|
|
30967
|
-
var
|
|
30984
|
+
var eG = T(l(q, {
|
|
30968
30985
|
createIsNestedEqual: function() {
|
|
30969
30986
|
return f;
|
|
30970
30987
|
}
|
|
30971
30988
|
}));
|
|
30972
|
-
function
|
|
30973
|
-
return
|
|
30989
|
+
function tG(e3, r3) {
|
|
30990
|
+
return eG(e3, r3, void 0);
|
|
30974
30991
|
}
|
|
30975
|
-
var
|
|
30976
|
-
function
|
|
30977
|
-
return
|
|
30992
|
+
var nG = T(Z);
|
|
30993
|
+
function rG(e3, r3) {
|
|
30994
|
+
return nG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30978
30995
|
}
|
|
30979
|
-
var
|
|
30996
|
+
var iG = T(l(Z, {
|
|
30980
30997
|
createIsNestedEqual: function() {
|
|
30981
30998
|
return f;
|
|
30982
30999
|
}
|
|
30983
31000
|
}));
|
|
30984
|
-
function
|
|
30985
|
-
return
|
|
31001
|
+
function aG(e3, r3) {
|
|
31002
|
+
return iG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30986
31003
|
}
|
|
30987
|
-
function
|
|
31004
|
+
function oG(e3) {
|
|
30988
31005
|
return T(l(q, e3(q)));
|
|
30989
31006
|
}
|
|
30990
|
-
function
|
|
31007
|
+
function sG(e3) {
|
|
30991
31008
|
var r3 = T(l(Z, e3(Z)));
|
|
30992
31009
|
return (function(e4, c2, l2) {
|
|
30993
31010
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30994
31011
|
});
|
|
30995
31012
|
}
|
|
30996
|
-
e2.circularDeepEqual =
|
|
31013
|
+
e2.circularDeepEqual = rG, e2.circularShallowEqual = aG, e2.createCustomCircularEqual = sG, e2.createCustomEqual = oG, e2.deepEqual = $W, e2.sameValueZeroEqual = f, e2.shallowEqual = tG, Object.defineProperty(e2, "__esModule", {
|
|
30997
31014
|
value: true
|
|
30998
31015
|
});
|
|
30999
31016
|
}));
|
|
@@ -31019,7 +31036,7 @@ ${c}
|
|
|
31019
31036
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31020
31037
|
Object.defineProperty(e, "__esModule", {
|
|
31021
31038
|
value: true
|
|
31022
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31039
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = pG, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = aG, e.setTopLeft = sG, e.setTransform = oG, e.sortLayoutItems = cG, e.sortLayoutItemsByColRow = uG, e.sortLayoutItemsByRowCol = lG, e.synchronizeLayoutWithChildren = dG, e.validateLayout = fG, e.withLayoutItem = v;
|
|
31023
31040
|
var r = require_fast_equals(), c = l(require_react());
|
|
31024
31041
|
function l(e2) {
|
|
31025
31042
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31124,7 +31141,7 @@ ${c}
|
|
|
31124
31141
|
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);
|
|
31125
31142
|
}
|
|
31126
31143
|
function T(e2, r2, c2, l2) {
|
|
31127
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31144
|
+
let u2 = B(e2), d2 = h(u2), f2 = cG(e2, r2), p2 = Array(e2.length);
|
|
31128
31145
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31129
31146
|
let h3 = y(f2[m2]);
|
|
31130
31147
|
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;
|
|
@@ -31182,7 +31199,7 @@ ${c}
|
|
|
31182
31199
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31183
31200
|
let h2 = r2.x, _2 = r2.y;
|
|
31184
31201
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31185
|
-
let v2 =
|
|
31202
|
+
let v2 = cG(e2, f2);
|
|
31186
31203
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31187
31204
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31188
31205
|
if (b2 && m2) return g(e2);
|
|
@@ -31216,61 +31233,61 @@ ${c}
|
|
|
31216
31233
|
function G(e2) {
|
|
31217
31234
|
return e2 * 100 + "%";
|
|
31218
31235
|
}
|
|
31219
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31236
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, QW = (e2) => Math.max(0, e2), $W = (e2) => Math.max(0, e2), eG = (e2, r2, c2) => {
|
|
31220
31237
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31221
31238
|
return {
|
|
31222
31239
|
left: l2,
|
|
31223
31240
|
width: d2,
|
|
31224
31241
|
height: Z(f2, e2.height, u2),
|
|
31225
|
-
top:
|
|
31242
|
+
top: $W(f2)
|
|
31226
31243
|
};
|
|
31227
|
-
},
|
|
31244
|
+
}, tG = (e2, r2, c2) => {
|
|
31228
31245
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31229
31246
|
return {
|
|
31230
31247
|
top: l2,
|
|
31231
31248
|
height: d2,
|
|
31232
31249
|
width: q(e2.left, e2.width, f2, c2),
|
|
31233
|
-
left:
|
|
31250
|
+
left: QW(u2)
|
|
31234
31251
|
};
|
|
31235
|
-
},
|
|
31252
|
+
}, nG = (e2, r2, c2) => {
|
|
31236
31253
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31237
31254
|
return {
|
|
31238
31255
|
height: u2,
|
|
31239
31256
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31240
|
-
top:
|
|
31241
|
-
left:
|
|
31257
|
+
top: $W(l2),
|
|
31258
|
+
left: QW(f2)
|
|
31242
31259
|
};
|
|
31243
|
-
},
|
|
31260
|
+
}, rG = (e2, r2, c2) => {
|
|
31244
31261
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31245
31262
|
return {
|
|
31246
31263
|
width: f2,
|
|
31247
31264
|
left: u2,
|
|
31248
31265
|
height: Z(l2, e2.height, d2),
|
|
31249
|
-
top:
|
|
31266
|
+
top: $W(l2)
|
|
31250
31267
|
};
|
|
31251
|
-
},
|
|
31252
|
-
n:
|
|
31268
|
+
}, iG = {
|
|
31269
|
+
n: eG,
|
|
31253
31270
|
ne: function() {
|
|
31254
|
-
return
|
|
31271
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31255
31272
|
},
|
|
31256
|
-
e:
|
|
31273
|
+
e: tG,
|
|
31257
31274
|
se: function() {
|
|
31258
|
-
return
|
|
31275
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31259
31276
|
},
|
|
31260
|
-
s:
|
|
31277
|
+
s: rG,
|
|
31261
31278
|
sw: function() {
|
|
31262
|
-
return
|
|
31279
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31263
31280
|
},
|
|
31264
|
-
w:
|
|
31281
|
+
w: nG,
|
|
31265
31282
|
nw: function() {
|
|
31266
|
-
return
|
|
31283
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31267
31284
|
}
|
|
31268
31285
|
};
|
|
31269
|
-
function
|
|
31270
|
-
let u2 =
|
|
31286
|
+
function aG(e2, r2, c2, l2) {
|
|
31287
|
+
let u2 = iG[e2];
|
|
31271
31288
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31272
31289
|
}
|
|
31273
|
-
function
|
|
31290
|
+
function oG(e2) {
|
|
31274
31291
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31275
31292
|
return {
|
|
31276
31293
|
transform: d2,
|
|
@@ -31283,7 +31300,7 @@ ${c}
|
|
|
31283
31300
|
position: "absolute"
|
|
31284
31301
|
};
|
|
31285
31302
|
}
|
|
31286
|
-
function
|
|
31303
|
+
function sG(e2) {
|
|
31287
31304
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31288
31305
|
return {
|
|
31289
31306
|
top: `${r2}px`,
|
|
@@ -31293,20 +31310,20 @@ ${c}
|
|
|
31293
31310
|
position: "absolute"
|
|
31294
31311
|
};
|
|
31295
31312
|
}
|
|
31296
|
-
function
|
|
31297
|
-
return r2 === "horizontal" ?
|
|
31313
|
+
function cG(e2, r2) {
|
|
31314
|
+
return r2 === "horizontal" ? uG(e2) : r2 === "vertical" ? lG(e2) : e2;
|
|
31298
31315
|
}
|
|
31299
|
-
function
|
|
31316
|
+
function lG(e2) {
|
|
31300
31317
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31301
31318
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31302
31319
|
});
|
|
31303
31320
|
}
|
|
31304
|
-
function
|
|
31321
|
+
function uG(e2) {
|
|
31305
31322
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31306
31323
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31307
31324
|
});
|
|
31308
31325
|
}
|
|
31309
|
-
function
|
|
31326
|
+
function dG(e2, r2, l2, u2, f2) {
|
|
31310
31327
|
e2 || (e2 = []);
|
|
31311
31328
|
let p2 = [];
|
|
31312
31329
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31327,7 +31344,7 @@ ${c}
|
|
|
31327
31344
|
});
|
|
31328
31345
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31329
31346
|
}
|
|
31330
|
-
function
|
|
31347
|
+
function fG(e2) {
|
|
31331
31348
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31332
31349
|
"x",
|
|
31333
31350
|
"y",
|
|
@@ -31344,7 +31361,7 @@ ${c}
|
|
|
31344
31361
|
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})`);
|
|
31345
31362
|
}
|
|
31346
31363
|
}
|
|
31347
|
-
function
|
|
31364
|
+
function pG(e2) {
|
|
31348
31365
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31349
31366
|
return r2 === false ? null : c2;
|
|
31350
31367
|
}
|
|
@@ -34149,7 +34166,7 @@ ${c}
|
|
|
34149
34166
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34150
34167
|
let E = useIsDragging(), O, j;
|
|
34151
34168
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34152
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z,
|
|
34169
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG, pG;
|
|
34153
34170
|
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) {
|
|
34154
34171
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34155
34172
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34168,23 +34185,23 @@ ${c}
|
|
|
34168
34185
|
});
|
|
34169
34186
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34170
34187
|
let y2 = v2;
|
|
34171
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
34188
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, uG = "lg", r[58] === c.cells ? dG = r[59] : (dG = {
|
|
34172
34189
|
lg: c.cells
|
|
34173
|
-
}, r[58] = c.cells, r[59] =
|
|
34190
|
+
}, r[58] = c.cells, r[59] = dG), fG = L, pG = S, R = false;
|
|
34174
34191
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34175
34192
|
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 ? [
|
|
34176
34193
|
20,
|
|
34177
34194
|
20
|
|
34178
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34195
|
+
] : 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) => {
|
|
34179
34196
|
f || l({
|
|
34180
34197
|
...c,
|
|
34181
34198
|
cells: e3
|
|
34182
34199
|
});
|
|
34183
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34200
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = QW) : QW = r[69], r[70] === g ? $W = r[71] : ($W = g ? {
|
|
34184
34201
|
i: g.i,
|
|
34185
34202
|
w: g.w || 2,
|
|
34186
34203
|
h: g.h || 2
|
|
34187
|
-
} : void 0, r[70] = g, r[71] =
|
|
34204
|
+
} : void 0, r[70] = g, r[71] = $W), r[72] !== O || r[73] !== c || r[74] !== l ? (eG = (e3, r2, u2) => {
|
|
34188
34205
|
O.onDragStop(), r2 && l({
|
|
34189
34206
|
...c,
|
|
34190
34207
|
cells: [
|
|
@@ -34192,15 +34209,15 @@ ${c}
|
|
|
34192
34209
|
r2
|
|
34193
34210
|
]
|
|
34194
34211
|
});
|
|
34195
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34212
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = eG) : eG = r[75], r[76] === O ? (tG = r[77], nG = r[78], rG = r[79]) : (tG = (e3, r2, c2, l2, u2) => {
|
|
34196
34213
|
O.onDragStart(u2);
|
|
34197
|
-
},
|
|
34214
|
+
}, nG = (e3, r2, c2, l2, u2) => {
|
|
34198
34215
|
O.onDragMove(u2);
|
|
34199
|
-
},
|
|
34216
|
+
}, rG = () => {
|
|
34200
34217
|
O.onDragStop();
|
|
34201
|
-
}, r[76] = O, r[77] =
|
|
34218
|
+
}, r[76] = O, r[77] = tG, r[78] = nG, r[79] = rG), iG = _temp3$2, aG = M, oG = M, sG = M, cG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34202
34219
|
let E2;
|
|
34203
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34220
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), lG = u.filter(E2).map((r2) => {
|
|
34204
34221
|
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, {
|
|
34205
34222
|
code: r2.code,
|
|
34206
34223
|
mode: d,
|
|
@@ -34230,14 +34247,14 @@ ${c}
|
|
|
34230
34247
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34231
34248
|
children: m2
|
|
34232
34249
|
}, r2.id);
|
|
34233
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
34234
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30],
|
|
34235
|
-
let
|
|
34236
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !==
|
|
34237
|
-
breakpoint:
|
|
34238
|
-
layouts:
|
|
34239
|
-
style:
|
|
34240
|
-
cols:
|
|
34250
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = QW, r[32] = $W, r[33] = eG, r[34] = tG, r[35] = nG, r[36] = rG, r[37] = iG, r[38] = aG, r[39] = oG, r[40] = sG, r[41] = cG, r[42] = lG, r[43] = uG, r[44] = dG, r[45] = fG, r[46] = pG;
|
|
34251
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30], QW = r[31], $W = r[32], eG = r[33], tG = r[34], nG = r[35], rG = r[36], iG = r[37], aG = r[38], oG = r[39], sG = r[40], cG = r[41], lG = r[42], uG = r[43], dG = r[44], fG = r[45], pG = r[46];
|
|
34252
|
+
let mG;
|
|
34253
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !== QW || r[92] !== $W || r[93] !== eG || r[94] !== tG || r[95] !== nG || r[96] !== rG || r[97] !== iG || r[98] !== aG || r[99] !== oG || r[100] !== sG || r[101] !== cG || r[102] !== lG || r[103] !== uG || r[104] !== dG || r[105] !== fG || r[106] !== pG ? (mG = (0, import_jsx_runtime.jsx)(I, {
|
|
34254
|
+
breakpoint: uG,
|
|
34255
|
+
layouts: dG,
|
|
34256
|
+
style: fG,
|
|
34257
|
+
cols: pG,
|
|
34241
34258
|
allowOverlap: R,
|
|
34242
34259
|
className: z,
|
|
34243
34260
|
containerPadding: B,
|
|
@@ -34246,22 +34263,22 @@ ${c}
|
|
|
34246
34263
|
compactType: G,
|
|
34247
34264
|
preventCollision: q,
|
|
34248
34265
|
rowHeight: Z,
|
|
34249
|
-
onLayoutChange:
|
|
34250
|
-
droppingItem:
|
|
34251
|
-
onDrop:
|
|
34252
|
-
onDragStart:
|
|
34253
|
-
onDrag:
|
|
34254
|
-
onDragStop:
|
|
34255
|
-
onResizeStop:
|
|
34256
|
-
isDraggable:
|
|
34257
|
-
isDroppable:
|
|
34258
|
-
isResizable:
|
|
34259
|
-
draggableHandle:
|
|
34260
|
-
children:
|
|
34261
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] =
|
|
34262
|
-
let
|
|
34263
|
-
if (r[108] !== u || r[109] !==
|
|
34264
|
-
|
|
34266
|
+
onLayoutChange: QW,
|
|
34267
|
+
droppingItem: $W,
|
|
34268
|
+
onDrop: eG,
|
|
34269
|
+
onDragStart: tG,
|
|
34270
|
+
onDrag: nG,
|
|
34271
|
+
onDragStop: rG,
|
|
34272
|
+
onResizeStop: iG,
|
|
34273
|
+
isDraggable: aG,
|
|
34274
|
+
isDroppable: oG,
|
|
34275
|
+
isResizable: sG,
|
|
34276
|
+
draggableHandle: cG,
|
|
34277
|
+
children: lG
|
|
34278
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] = QW, r[92] = $W, r[93] = eG, r[94] = tG, r[95] = nG, r[96] = rG, r[97] = iG, r[98] = aG, r[99] = oG, r[100] = sG, r[101] = cG, r[102] = lG, r[103] = uG, r[104] = dG, r[105] = fG, r[106] = pG, r[107] = mG) : mG = r[107];
|
|
34279
|
+
let hG = mG, gG, _G, vG, yG, bG, xG, SG;
|
|
34280
|
+
if (r[108] !== u || r[109] !== hG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34281
|
+
SG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34265
34282
|
bb0: {
|
|
34266
34283
|
let e2;
|
|
34267
34284
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34269,14 +34286,14 @@ ${c}
|
|
|
34269
34286
|
if (f) {
|
|
34270
34287
|
if (c.bordered) {
|
|
34271
34288
|
let e4;
|
|
34272
|
-
r[127] !==
|
|
34289
|
+
r[127] !== hG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34273
34290
|
className: "flex flex-1 flex-col items-center",
|
|
34274
34291
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34275
34292
|
style: L,
|
|
34276
34293
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34277
|
-
children:
|
|
34294
|
+
children: hG
|
|
34278
34295
|
})
|
|
34279
|
-
}), r[127] =
|
|
34296
|
+
}), r[127] = hG, r[128] = L, r[129] = e4) : e4 = r[129], hG = e4;
|
|
34280
34297
|
}
|
|
34281
34298
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34282
34299
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34288,9 +34305,9 @@ ${c}
|
|
|
34288
34305
|
stale: outputIsStale(e4, false),
|
|
34289
34306
|
isScrollable: false,
|
|
34290
34307
|
hidden: false
|
|
34291
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34308
|
+
}, e4.id), r[130] = d, r[131] = l2), SG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34292
34309
|
children: [
|
|
34293
|
-
|
|
34310
|
+
hG,
|
|
34294
34311
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34295
34312
|
className: "hidden",
|
|
34296
34313
|
children: e3.map(l2)
|
|
@@ -34301,31 +34318,31 @@ ${c}
|
|
|
34301
34318
|
}
|
|
34302
34319
|
if (c.bordered) {
|
|
34303
34320
|
let e3;
|
|
34304
|
-
r[132] ===
|
|
34321
|
+
r[132] === hG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34305
34322
|
className: "h-full overflow-auto",
|
|
34306
|
-
children:
|
|
34307
|
-
}), r[132] =
|
|
34323
|
+
children: hG
|
|
34324
|
+
}), r[132] = hG, r[133] = e3);
|
|
34308
34325
|
let c2;
|
|
34309
34326
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34310
34327
|
style: L,
|
|
34311
34328
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34312
34329
|
children: e3
|
|
34313
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34330
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], hG = c2;
|
|
34314
34331
|
}
|
|
34315
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34332
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (xG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34316
34333
|
layout: c,
|
|
34317
34334
|
setLayout: l,
|
|
34318
34335
|
isLocked: v,
|
|
34319
34336
|
setIsLocked: y
|
|
34320
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34337
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = xG) : xG = r[140];
|
|
34321
34338
|
let g2;
|
|
34322
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34339
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = yG, r[142] = g2) : (yG = r[141], g2 = r[142]), r[143] === hG ? bG = r[144] : (bG = (0, import_jsx_runtime.jsx)("div", {
|
|
34323
34340
|
className: g2,
|
|
34324
|
-
children:
|
|
34325
|
-
}), r[143] =
|
|
34341
|
+
children: hG
|
|
34342
|
+
}), r[143] = hG, r[144] = bG), gG = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_G = (0, import_jsx_runtime.jsx)("div", {
|
|
34326
34343
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34327
34344
|
children: "Outputs"
|
|
34328
|
-
}), r[145] =
|
|
34345
|
+
}), r[145] = _G) : _G = r[145];
|
|
34329
34346
|
let b2;
|
|
34330
34347
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34331
34348
|
draggable: true,
|
|
@@ -34351,34 +34368,34 @@ ${c}
|
|
|
34351
34368
|
stale: outputIsStale(e3, false),
|
|
34352
34369
|
hidden: false
|
|
34353
34370
|
})
|
|
34354
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34355
|
-
}
|
|
34356
|
-
r[108] = u, r[109] =
|
|
34357
|
-
} else
|
|
34358
|
-
if (
|
|
34359
|
-
let
|
|
34360
|
-
r[150] !==
|
|
34361
|
-
className: pG,
|
|
34362
|
-
children: [
|
|
34363
|
-
mG,
|
|
34364
|
-
hG
|
|
34365
|
-
]
|
|
34366
|
-
}), r[150] = pG, r[151] = mG, r[152] = hG, r[153] = bG) : bG = r[153];
|
|
34367
|
-
let xG;
|
|
34368
|
-
r[154] !== gG || r[155] !== _G || r[156] !== bG ? (xG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34371
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], vG = p2.map(b2);
|
|
34372
|
+
}
|
|
34373
|
+
r[108] = u, r[109] = hG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = gG, r[118] = _G, r[119] = vG, r[120] = yG, r[121] = bG, r[122] = xG, r[123] = SG, r[124] = hG;
|
|
34374
|
+
} else gG = r[117], _G = r[118], vG = r[119], yG = r[120], bG = r[121], xG = r[122], SG = r[123], hG = r[124];
|
|
34375
|
+
if (SG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return SG;
|
|
34376
|
+
let CG;
|
|
34377
|
+
r[150] !== gG || r[151] !== _G || r[152] !== vG ? (CG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34369
34378
|
className: gG,
|
|
34370
34379
|
children: [
|
|
34371
34380
|
_G,
|
|
34372
|
-
|
|
34381
|
+
vG
|
|
34373
34382
|
]
|
|
34374
|
-
}), r[
|
|
34375
|
-
let
|
|
34376
|
-
|
|
34383
|
+
}), r[150] = gG, r[151] = _G, r[152] = vG, r[153] = CG) : CG = r[153];
|
|
34384
|
+
let wG;
|
|
34385
|
+
r[154] !== yG || r[155] !== bG || r[156] !== CG ? (wG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34386
|
+
className: yG,
|
|
34377
34387
|
children: [
|
|
34378
|
-
|
|
34379
|
-
|
|
34388
|
+
bG,
|
|
34389
|
+
CG
|
|
34380
34390
|
]
|
|
34381
|
-
}), r[
|
|
34391
|
+
}), r[154] = yG, r[155] = bG, r[156] = CG, r[157] = wG) : wG = r[157];
|
|
34392
|
+
let TG;
|
|
34393
|
+
return r[158] !== xG || r[159] !== wG ? (TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34394
|
+
children: [
|
|
34395
|
+
xG,
|
|
34396
|
+
wG
|
|
34397
|
+
]
|
|
34398
|
+
}), r[158] = xG, r[159] = wG, r[160] = TG) : TG = r[160], TG;
|
|
34382
34399
|
};
|
|
34383
34400
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34384
34401
|
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;
|
|
@@ -34688,8 +34705,8 @@ ${c}
|
|
|
34688
34705
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34689
34706
|
onClick: () => l()
|
|
34690
34707
|
}), r[36] = l, r[37] = Z);
|
|
34691
|
-
let
|
|
34692
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34708
|
+
let QW;
|
|
34709
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (QW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34693
34710
|
className: S,
|
|
34694
34711
|
children: [
|
|
34695
34712
|
M,
|
|
@@ -34697,7 +34714,7 @@ ${c}
|
|
|
34697
34714
|
q,
|
|
34698
34715
|
Z
|
|
34699
34716
|
]
|
|
34700
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34717
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = QW) : QW = r[42], QW;
|
|
34701
34718
|
};
|
|
34702
34719
|
function isSidebarCell(e) {
|
|
34703
34720
|
var _a5;
|
|
@@ -36703,29 +36720,29 @@ ${c}
|
|
|
36703
36720
|
M
|
|
36704
36721
|
]), 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(), [
|
|
36705
36722
|
j
|
|
36706
|
-
]),
|
|
36723
|
+
]), QW = useMeasuringConfiguration(p), { droppableRects: $W, measureDroppableContainers: eG, measuringScheduled: tG } = useDroppableMeasuring(Z, {
|
|
36707
36724
|
dragging: w,
|
|
36708
36725
|
dependencies: [
|
|
36709
36726
|
O.x,
|
|
36710
36727
|
O.y
|
|
36711
36728
|
],
|
|
36712
|
-
config:
|
|
36713
|
-
}),
|
|
36729
|
+
config: QW.droppable
|
|
36730
|
+
}), nG = useCachedNode(E, T), rG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36714
36731
|
H
|
|
36715
|
-
]),
|
|
36732
|
+
]), iG = FG(), aG = useInitialRect(nG, QW.draggable.measure);
|
|
36716
36733
|
useLayoutShiftScrollCompensation({
|
|
36717
36734
|
activeNode: T == null ? null : E.get(T),
|
|
36718
|
-
config:
|
|
36719
|
-
initialRect:
|
|
36720
|
-
measure:
|
|
36735
|
+
config: iG.layoutShiftCompensation,
|
|
36736
|
+
initialRect: aG,
|
|
36737
|
+
measure: QW.draggable.measure
|
|
36721
36738
|
});
|
|
36722
|
-
let
|
|
36739
|
+
let oG = useRect(nG, QW.draggable.measure, aG), sG = useRect(nG ? nG.parentElement : null), cG = (0, import_react.useRef)({
|
|
36723
36740
|
activatorEvent: null,
|
|
36724
36741
|
active: null,
|
|
36725
|
-
activeNode:
|
|
36742
|
+
activeNode: nG,
|
|
36726
36743
|
collisionRect: null,
|
|
36727
36744
|
collisions: null,
|
|
36728
|
-
droppableRects:
|
|
36745
|
+
droppableRects: $W,
|
|
36729
36746
|
draggableNodes: E,
|
|
36730
36747
|
draggingNode: null,
|
|
36731
36748
|
draggingNodeRect: null,
|
|
@@ -36733,45 +36750,45 @@ ${c}
|
|
|
36733
36750
|
over: null,
|
|
36734
36751
|
scrollableAncestors: [],
|
|
36735
36752
|
scrollAdjustedTranslate: null
|
|
36736
|
-
}),
|
|
36737
|
-
measure:
|
|
36738
|
-
}),
|
|
36753
|
+
}), lG = j.getNodeFor((_a5 = cG.current.over) == null ? void 0 : _a5.id), uG = useDragOverlayMeasuring({
|
|
36754
|
+
measure: QW.dragOverlay.measure
|
|
36755
|
+
}), dG = uG.nodeRef.current ?? nG, fG = w ? uG.rect ?? oG : null, pG = !!(uG.nodeRef.current && uG.rect), mG = useRectDelta(pG ? null : oG), hG = useWindowRect(dG ? getWindow(dG) : null), gG = useScrollableAncestors(w ? lG ?? nG : null), _G = useRects(gG), vG = applyModifiers(m, {
|
|
36739
36756
|
transform: {
|
|
36740
|
-
x: O.x -
|
|
36741
|
-
y: O.y -
|
|
36757
|
+
x: O.x - mG.x,
|
|
36758
|
+
y: O.y - mG.y,
|
|
36742
36759
|
scaleX: 1,
|
|
36743
36760
|
scaleY: 1
|
|
36744
36761
|
},
|
|
36745
36762
|
activatorEvent: H,
|
|
36746
36763
|
active: L,
|
|
36747
|
-
activeNodeRect:
|
|
36748
|
-
containerNodeRect:
|
|
36749
|
-
draggingNodeRect:
|
|
36750
|
-
over:
|
|
36751
|
-
overlayNodeRect:
|
|
36752
|
-
scrollableAncestors:
|
|
36753
|
-
scrollableAncestorRects:
|
|
36754
|
-
windowRect:
|
|
36755
|
-
}),
|
|
36756
|
-
|
|
36757
|
-
]),
|
|
36764
|
+
activeNodeRect: oG,
|
|
36765
|
+
containerNodeRect: sG,
|
|
36766
|
+
draggingNodeRect: fG,
|
|
36767
|
+
over: cG.current.over,
|
|
36768
|
+
overlayNodeRect: uG.rect,
|
|
36769
|
+
scrollableAncestors: gG,
|
|
36770
|
+
scrollableAncestorRects: _G,
|
|
36771
|
+
windowRect: hG
|
|
36772
|
+
}), yG = rG ? add(rG, O) : null, bG = useScrollOffsets(gG), xG = useScrollOffsetsDelta(bG), SG = useScrollOffsetsDelta(bG, [
|
|
36773
|
+
oG
|
|
36774
|
+
]), CG = add(vG, xG), wG = fG ? getAdjustedRect(fG, vG) : null, TG = L && wG ? f({
|
|
36758
36775
|
active: L,
|
|
36759
|
-
collisionRect:
|
|
36760
|
-
droppableRects:
|
|
36776
|
+
collisionRect: wG,
|
|
36777
|
+
droppableRects: $W,
|
|
36761
36778
|
droppableContainers: Z,
|
|
36762
|
-
pointerCoordinates:
|
|
36763
|
-
}) : null,
|
|
36779
|
+
pointerCoordinates: yG
|
|
36780
|
+
}) : null, EG = getFirstCollision(TG, "id"), [DG, OG] = (0, import_react.useState)(null), kG = adjustScale(pG ? vG : add(vG, SG), (DG == null ? void 0 : DG.rect) ?? null, oG), AG = (0, import_react.useRef)(null), jG = (0, import_react.useCallback)((e2, r2) => {
|
|
36764
36781
|
let { sensor: c2, options: l2 } = r2;
|
|
36765
36782
|
if (R.current == null) return;
|
|
36766
36783
|
let u2 = E.get(R.current);
|
|
36767
36784
|
if (!u2) return;
|
|
36768
36785
|
let d2 = e2.nativeEvent;
|
|
36769
|
-
|
|
36786
|
+
AG.current = new c2({
|
|
36770
36787
|
active: R.current,
|
|
36771
36788
|
activeNode: u2,
|
|
36772
36789
|
event: d2,
|
|
36773
36790
|
options: l2,
|
|
36774
|
-
context:
|
|
36791
|
+
context: cG,
|
|
36775
36792
|
onAbort(e3) {
|
|
36776
36793
|
if (!E.get(e3)) return;
|
|
36777
36794
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36816,7 +36833,7 @@ ${c}
|
|
|
36816
36833
|
}), v({
|
|
36817
36834
|
type: "onDragStart",
|
|
36818
36835
|
event: u3
|
|
36819
|
-
}), B(
|
|
36836
|
+
}), B(AG.current), W(d2);
|
|
36820
36837
|
});
|
|
36821
36838
|
},
|
|
36822
36839
|
onMove(e3) {
|
|
@@ -36830,7 +36847,7 @@ ${c}
|
|
|
36830
36847
|
});
|
|
36831
36848
|
function f2(e3) {
|
|
36832
36849
|
return async function() {
|
|
36833
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36850
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = cG.current, f3 = null;
|
|
36834
36851
|
if (r3 && u3) {
|
|
36835
36852
|
let { cancelDrop: p2 } = G.current;
|
|
36836
36853
|
f3 = {
|
|
@@ -36844,7 +36861,7 @@ ${c}
|
|
|
36844
36861
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36845
36862
|
_({
|
|
36846
36863
|
type: e3
|
|
36847
|
-
}), S(Status.Uninitialized),
|
|
36864
|
+
}), S(Status.Uninitialized), OG(null), B(null), W(null), AG.current = null;
|
|
36848
36865
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36849
36866
|
if (f3) {
|
|
36850
36867
|
let e4 = G.current[r4];
|
|
@@ -36858,7 +36875,7 @@ ${c}
|
|
|
36858
36875
|
}
|
|
36859
36876
|
}, [
|
|
36860
36877
|
E
|
|
36861
|
-
]),
|
|
36878
|
+
]), MG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36862
36879
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36863
36880
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36864
36881
|
let f2 = {
|
|
@@ -36866,26 +36883,26 @@ ${c}
|
|
|
36866
36883
|
};
|
|
36867
36884
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36868
36885
|
capturedBy: r2.sensor
|
|
36869
|
-
}, R.current = l2,
|
|
36886
|
+
}, R.current = l2, jG(c2, r2));
|
|
36870
36887
|
}, [
|
|
36871
36888
|
E,
|
|
36872
|
-
|
|
36889
|
+
jG
|
|
36873
36890
|
]));
|
|
36874
36891
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36875
|
-
|
|
36892
|
+
oG && b === Status.Initializing && S(Status.Initialized);
|
|
36876
36893
|
}, [
|
|
36877
|
-
|
|
36894
|
+
oG,
|
|
36878
36895
|
b
|
|
36879
36896
|
]), (0, import_react.useEffect)(() => {
|
|
36880
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36897
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = cG.current;
|
|
36881
36898
|
if (!r2 || !c2) return;
|
|
36882
36899
|
let d2 = {
|
|
36883
36900
|
active: r2,
|
|
36884
36901
|
activatorEvent: c2,
|
|
36885
36902
|
collisions: l2,
|
|
36886
36903
|
delta: {
|
|
36887
|
-
x:
|
|
36888
|
-
y:
|
|
36904
|
+
x: CG.x,
|
|
36905
|
+
y: CG.y
|
|
36889
36906
|
},
|
|
36890
36907
|
over: u2
|
|
36891
36908
|
};
|
|
@@ -36896,12 +36913,12 @@ ${c}
|
|
|
36896
36913
|
});
|
|
36897
36914
|
});
|
|
36898
36915
|
}, [
|
|
36899
|
-
|
|
36900
|
-
|
|
36916
|
+
CG.x,
|
|
36917
|
+
CG.y
|
|
36901
36918
|
]), (0, import_react.useEffect)(() => {
|
|
36902
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36919
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = cG.current;
|
|
36903
36920
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36904
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36921
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(EG), p2 = f2 && f2.rect.current ? {
|
|
36905
36922
|
id: f2.id,
|
|
36906
36923
|
rect: f2.rect.current,
|
|
36907
36924
|
data: f2.data,
|
|
@@ -36917,127 +36934,127 @@ ${c}
|
|
|
36917
36934
|
over: p2
|
|
36918
36935
|
};
|
|
36919
36936
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36920
|
-
|
|
36937
|
+
OG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36921
36938
|
type: "onDragOver",
|
|
36922
36939
|
event: m2
|
|
36923
36940
|
});
|
|
36924
36941
|
});
|
|
36925
36942
|
}, [
|
|
36926
|
-
|
|
36943
|
+
EG
|
|
36927
36944
|
]), useIsomorphicLayoutEffect(() => {
|
|
36928
|
-
|
|
36945
|
+
cG.current = {
|
|
36929
36946
|
activatorEvent: H,
|
|
36930
36947
|
active: L,
|
|
36931
|
-
activeNode:
|
|
36932
|
-
collisionRect:
|
|
36933
|
-
collisions:
|
|
36934
|
-
droppableRects:
|
|
36948
|
+
activeNode: nG,
|
|
36949
|
+
collisionRect: wG,
|
|
36950
|
+
collisions: TG,
|
|
36951
|
+
droppableRects: $W,
|
|
36935
36952
|
draggableNodes: E,
|
|
36936
|
-
draggingNode:
|
|
36937
|
-
draggingNodeRect:
|
|
36953
|
+
draggingNode: dG,
|
|
36954
|
+
draggingNodeRect: fG,
|
|
36938
36955
|
droppableContainers: j,
|
|
36939
|
-
over:
|
|
36940
|
-
scrollableAncestors:
|
|
36941
|
-
scrollAdjustedTranslate:
|
|
36956
|
+
over: DG,
|
|
36957
|
+
scrollableAncestors: gG,
|
|
36958
|
+
scrollAdjustedTranslate: CG
|
|
36942
36959
|
}, I.current = {
|
|
36943
|
-
initial:
|
|
36944
|
-
translated:
|
|
36960
|
+
initial: fG,
|
|
36961
|
+
translated: wG
|
|
36945
36962
|
};
|
|
36946
36963
|
}, [
|
|
36947
36964
|
L,
|
|
36948
|
-
|
|
36949
|
-
|
|
36950
|
-
|
|
36965
|
+
nG,
|
|
36966
|
+
TG,
|
|
36967
|
+
wG,
|
|
36951
36968
|
E,
|
|
36952
|
-
|
|
36953
|
-
|
|
36954
|
-
|
|
36969
|
+
dG,
|
|
36970
|
+
fG,
|
|
36971
|
+
$W,
|
|
36955
36972
|
j,
|
|
36956
|
-
|
|
36957
|
-
|
|
36958
|
-
|
|
36973
|
+
DG,
|
|
36974
|
+
gG,
|
|
36975
|
+
CG
|
|
36959
36976
|
]), useAutoScroller({
|
|
36960
|
-
...
|
|
36977
|
+
...iG,
|
|
36961
36978
|
delta: O,
|
|
36962
|
-
draggingRect:
|
|
36963
|
-
pointerCoordinates:
|
|
36964
|
-
scrollableAncestors:
|
|
36965
|
-
scrollableAncestorRects:
|
|
36979
|
+
draggingRect: wG,
|
|
36980
|
+
pointerCoordinates: yG,
|
|
36981
|
+
scrollableAncestors: gG,
|
|
36982
|
+
scrollableAncestorRects: _G
|
|
36966
36983
|
});
|
|
36967
|
-
let
|
|
36984
|
+
let NG = (0, import_react.useMemo)(() => ({
|
|
36968
36985
|
active: L,
|
|
36969
|
-
activeNode:
|
|
36970
|
-
activeNodeRect:
|
|
36986
|
+
activeNode: nG,
|
|
36987
|
+
activeNodeRect: oG,
|
|
36971
36988
|
activatorEvent: H,
|
|
36972
|
-
collisions:
|
|
36973
|
-
containerNodeRect:
|
|
36974
|
-
dragOverlay:
|
|
36989
|
+
collisions: TG,
|
|
36990
|
+
containerNodeRect: sG,
|
|
36991
|
+
dragOverlay: uG,
|
|
36975
36992
|
draggableNodes: E,
|
|
36976
36993
|
droppableContainers: j,
|
|
36977
|
-
droppableRects:
|
|
36978
|
-
over:
|
|
36979
|
-
measureDroppableContainers:
|
|
36980
|
-
scrollableAncestors:
|
|
36981
|
-
scrollableAncestorRects:
|
|
36982
|
-
measuringConfiguration:
|
|
36983
|
-
measuringScheduled:
|
|
36984
|
-
windowRect:
|
|
36994
|
+
droppableRects: $W,
|
|
36995
|
+
over: DG,
|
|
36996
|
+
measureDroppableContainers: eG,
|
|
36997
|
+
scrollableAncestors: gG,
|
|
36998
|
+
scrollableAncestorRects: _G,
|
|
36999
|
+
measuringConfiguration: QW,
|
|
37000
|
+
measuringScheduled: tG,
|
|
37001
|
+
windowRect: hG
|
|
36985
37002
|
}), [
|
|
36986
37003
|
L,
|
|
36987
|
-
|
|
36988
|
-
|
|
37004
|
+
nG,
|
|
37005
|
+
oG,
|
|
36989
37006
|
H,
|
|
36990
|
-
|
|
36991
|
-
iG,
|
|
37007
|
+
TG,
|
|
36992
37008
|
sG,
|
|
37009
|
+
uG,
|
|
36993
37010
|
E,
|
|
36994
37011
|
j,
|
|
36995
|
-
|
|
36996
|
-
|
|
36997
|
-
|
|
36998
|
-
|
|
36999
|
-
|
|
37000
|
-
YW,
|
|
37012
|
+
$W,
|
|
37013
|
+
DG,
|
|
37014
|
+
eG,
|
|
37015
|
+
gG,
|
|
37016
|
+
_G,
|
|
37001
37017
|
QW,
|
|
37002
|
-
|
|
37003
|
-
|
|
37018
|
+
tG,
|
|
37019
|
+
hG
|
|
37020
|
+
]), PG = (0, import_react.useMemo)(() => ({
|
|
37004
37021
|
activatorEvent: H,
|
|
37005
|
-
activators:
|
|
37022
|
+
activators: MG,
|
|
37006
37023
|
active: L,
|
|
37007
|
-
activeNodeRect:
|
|
37024
|
+
activeNodeRect: oG,
|
|
37008
37025
|
ariaDescribedById: {
|
|
37009
37026
|
draggable: q
|
|
37010
37027
|
},
|
|
37011
37028
|
dispatch: _,
|
|
37012
37029
|
draggableNodes: E,
|
|
37013
|
-
over:
|
|
37014
|
-
measureDroppableContainers:
|
|
37030
|
+
over: DG,
|
|
37031
|
+
measureDroppableContainers: eG
|
|
37015
37032
|
}), [
|
|
37016
37033
|
H,
|
|
37017
|
-
|
|
37034
|
+
MG,
|
|
37018
37035
|
L,
|
|
37019
|
-
|
|
37036
|
+
oG,
|
|
37020
37037
|
_,
|
|
37021
37038
|
q,
|
|
37022
37039
|
E,
|
|
37023
|
-
|
|
37024
|
-
|
|
37040
|
+
DG,
|
|
37041
|
+
eG
|
|
37025
37042
|
]);
|
|
37026
37043
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37027
37044
|
value: y
|
|
37028
37045
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37029
|
-
value:
|
|
37046
|
+
value: PG
|
|
37030
37047
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37031
|
-
value:
|
|
37048
|
+
value: NG
|
|
37032
37049
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37033
|
-
value:
|
|
37050
|
+
value: kG
|
|
37034
37051
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37035
37052
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37036
37053
|
})), import_react.createElement(Accessibility, {
|
|
37037
37054
|
...c,
|
|
37038
37055
|
hiddenTextDescribedById: q
|
|
37039
37056
|
}));
|
|
37040
|
-
function
|
|
37057
|
+
function FG() {
|
|
37041
37058
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37042
37059
|
return typeof l == "object" ? {
|
|
37043
37060
|
...l,
|
|
@@ -37565,7 +37582,7 @@ ${c}
|
|
|
37565
37582
|
updateMeasurementsFor: I,
|
|
37566
37583
|
...m
|
|
37567
37584
|
}
|
|
37568
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37585
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: QW, isDragging: $W, over: eG, setActivatorNodeRef: tG, transform: nG } = useDraggable({
|
|
37569
37586
|
id: f,
|
|
37570
37587
|
data: M,
|
|
37571
37588
|
attributes: {
|
|
@@ -37573,60 +37590,60 @@ ${c}
|
|
|
37573
37590
|
...c
|
|
37574
37591
|
},
|
|
37575
37592
|
disabled: O.draggable
|
|
37576
|
-
}),
|
|
37593
|
+
}), rG = useCombinedRefs(B, Z), iG = !!H, aG = iG && !b && isValidIndex(v) && isValidIndex(w), oG = !T && $W, sG = aG ? (oG && aG ? nG : null) ?? (p ?? E)({
|
|
37577
37594
|
rects: S,
|
|
37578
37595
|
activeNodeRect: G,
|
|
37579
37596
|
activeIndex: v,
|
|
37580
37597
|
overIndex: w,
|
|
37581
37598
|
index: j
|
|
37582
|
-
}) : null,
|
|
37599
|
+
}) : null, cG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37583
37600
|
id: f,
|
|
37584
37601
|
items: g,
|
|
37585
37602
|
activeIndex: v,
|
|
37586
37603
|
overIndex: w
|
|
37587
|
-
}) : j,
|
|
37588
|
-
activeId:
|
|
37604
|
+
}) : j, lG = H == null ? void 0 : H.id, uG = (0, import_react.useRef)({
|
|
37605
|
+
activeId: lG,
|
|
37589
37606
|
items: g,
|
|
37590
|
-
newIndex:
|
|
37607
|
+
newIndex: cG,
|
|
37591
37608
|
containerId: _
|
|
37592
|
-
}),
|
|
37609
|
+
}), dG = g !== uG.current.items, fG = r({
|
|
37593
37610
|
active: H,
|
|
37594
37611
|
containerId: _,
|
|
37595
|
-
isDragging:
|
|
37596
|
-
isSorting:
|
|
37612
|
+
isDragging: $W,
|
|
37613
|
+
isSorting: iG,
|
|
37597
37614
|
id: f,
|
|
37598
37615
|
index: j,
|
|
37599
37616
|
items: g,
|
|
37600
|
-
newIndex:
|
|
37601
|
-
previousItems:
|
|
37602
|
-
previousContainerId:
|
|
37617
|
+
newIndex: uG.current.newIndex,
|
|
37618
|
+
previousItems: uG.current.items,
|
|
37619
|
+
previousContainerId: uG.current.containerId,
|
|
37603
37620
|
transition: h,
|
|
37604
|
-
wasDragging:
|
|
37605
|
-
}),
|
|
37606
|
-
disabled: !
|
|
37621
|
+
wasDragging: uG.current.activeId != null
|
|
37622
|
+
}), pG = useDerivedTransform({
|
|
37623
|
+
disabled: !fG,
|
|
37607
37624
|
index: j,
|
|
37608
37625
|
node: R,
|
|
37609
37626
|
rect: L
|
|
37610
37627
|
});
|
|
37611
37628
|
return (0, import_react.useEffect)(() => {
|
|
37612
|
-
|
|
37629
|
+
iG && uG.current.newIndex !== cG && (uG.current.newIndex = cG), _ !== uG.current.containerId && (uG.current.containerId = _), g !== uG.current.items && (uG.current.items = g);
|
|
37613
37630
|
}, [
|
|
37614
|
-
|
|
37615
|
-
|
|
37631
|
+
iG,
|
|
37632
|
+
cG,
|
|
37616
37633
|
_,
|
|
37617
37634
|
g
|
|
37618
37635
|
]), (0, import_react.useEffect)(() => {
|
|
37619
|
-
if (
|
|
37620
|
-
if (
|
|
37621
|
-
|
|
37636
|
+
if (lG === uG.current.activeId) return;
|
|
37637
|
+
if (lG != null && uG.current.activeId == null) {
|
|
37638
|
+
uG.current.activeId = lG;
|
|
37622
37639
|
return;
|
|
37623
37640
|
}
|
|
37624
37641
|
let e2 = setTimeout(() => {
|
|
37625
|
-
|
|
37642
|
+
uG.current.activeId = lG;
|
|
37626
37643
|
}, 50);
|
|
37627
37644
|
return () => clearTimeout(e2);
|
|
37628
37645
|
}, [
|
|
37629
|
-
|
|
37646
|
+
lG
|
|
37630
37647
|
]), {
|
|
37631
37648
|
active: H,
|
|
37632
37649
|
activeIndex: v,
|
|
@@ -37634,25 +37651,25 @@ ${c}
|
|
|
37634
37651
|
data: M,
|
|
37635
37652
|
rect: L,
|
|
37636
37653
|
index: j,
|
|
37637
|
-
newIndex:
|
|
37654
|
+
newIndex: cG,
|
|
37638
37655
|
items: g,
|
|
37639
37656
|
isOver: z,
|
|
37640
|
-
isSorting:
|
|
37641
|
-
isDragging:
|
|
37642
|
-
listeners:
|
|
37657
|
+
isSorting: iG,
|
|
37658
|
+
isDragging: $W,
|
|
37659
|
+
listeners: QW,
|
|
37643
37660
|
node: R,
|
|
37644
37661
|
overIndex: w,
|
|
37645
|
-
over:
|
|
37646
|
-
setNodeRef:
|
|
37647
|
-
setActivatorNodeRef:
|
|
37662
|
+
over: eG,
|
|
37663
|
+
setNodeRef: rG,
|
|
37664
|
+
setActivatorNodeRef: tG,
|
|
37648
37665
|
setDroppableNodeRef: B,
|
|
37649
37666
|
setDraggableNodeRef: Z,
|
|
37650
|
-
transform:
|
|
37651
|
-
transition:
|
|
37667
|
+
transform: pG ?? sG,
|
|
37668
|
+
transition: mG()
|
|
37652
37669
|
};
|
|
37653
|
-
function
|
|
37654
|
-
if (
|
|
37655
|
-
if (!(
|
|
37670
|
+
function mG() {
|
|
37671
|
+
if (pG || dG && uG.current.newIndex === j) return disabledTransition;
|
|
37672
|
+
if (!(oG && !isKeyboardEvent(W) || !h) && (iG || fG)) return CSS$1.Transition.toString({
|
|
37656
37673
|
...h,
|
|
37657
37674
|
property: transitionProperty
|
|
37658
37675
|
});
|
|
@@ -37954,13 +37971,13 @@ ${c}
|
|
|
37954
37971
|
}), 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];
|
|
37955
37972
|
let Z = q;
|
|
37956
37973
|
if (!v && !g) return Z;
|
|
37957
|
-
let
|
|
37958
|
-
r[46] === Z ?
|
|
37974
|
+
let QW;
|
|
37975
|
+
r[46] === Z ? QW = r[47] : (QW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37959
37976
|
asChild: true,
|
|
37960
37977
|
children: Z
|
|
37961
|
-
}), r[46] = Z, r[47] =
|
|
37962
|
-
let
|
|
37963
|
-
r[48] === v ?
|
|
37978
|
+
}), r[46] = Z, r[47] = QW);
|
|
37979
|
+
let $W;
|
|
37980
|
+
r[48] === v ? $W = r[49] : ($W = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37964
37981
|
onSelect: v,
|
|
37965
37982
|
children: [
|
|
37966
37983
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37968,11 +37985,11 @@ ${c}
|
|
|
37968
37985
|
}),
|
|
37969
37986
|
"Add cell"
|
|
37970
37987
|
]
|
|
37971
|
-
}), r[48] = v, r[49] =
|
|
37972
|
-
let
|
|
37973
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37974
|
-
let
|
|
37975
|
-
r[51] === g ?
|
|
37988
|
+
}), r[48] = v, r[49] = $W);
|
|
37989
|
+
let eG;
|
|
37990
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eG = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = eG) : eG = r[50];
|
|
37991
|
+
let tG;
|
|
37992
|
+
r[51] === g ? tG = r[52] : (tG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37976
37993
|
variant: "danger",
|
|
37977
37994
|
onSelect: g,
|
|
37978
37995
|
children: [
|
|
@@ -37981,22 +37998,22 @@ ${c}
|
|
|
37981
37998
|
}),
|
|
37982
37999
|
"Delete cell"
|
|
37983
38000
|
]
|
|
37984
|
-
}), r[51] = g, r[52] =
|
|
37985
|
-
let
|
|
37986
|
-
r[53] !==
|
|
38001
|
+
}), r[51] = g, r[52] = tG);
|
|
38002
|
+
let nG;
|
|
38003
|
+
r[53] !== $W || r[54] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37987
38004
|
children: [
|
|
37988
|
-
|
|
37989
|
-
|
|
37990
|
-
|
|
38005
|
+
$W,
|
|
38006
|
+
eG,
|
|
38007
|
+
tG
|
|
37991
38008
|
]
|
|
37992
|
-
}), r[53] =
|
|
37993
|
-
let
|
|
37994
|
-
return r[56] !==
|
|
38009
|
+
}), r[53] = $W, r[54] = tG, r[55] = nG) : nG = r[55];
|
|
38010
|
+
let rG;
|
|
38011
|
+
return r[56] !== QW || r[57] !== nG ? (rG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37995
38012
|
children: [
|
|
37996
|
-
|
|
37997
|
-
|
|
38013
|
+
QW,
|
|
38014
|
+
nG
|
|
37998
38015
|
]
|
|
37999
|
-
}), r[56] =
|
|
38016
|
+
}), r[56] = QW, r[57] = nG, r[58] = rG) : rG = r[58], rG;
|
|
38000
38017
|
}, InsertCellLine = (e) => {
|
|
38001
38018
|
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;
|
|
38002
38019
|
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);
|
|
@@ -38050,10 +38067,10 @@ ${c}
|
|
|
38050
38067
|
...B,
|
|
38051
38068
|
...m
|
|
38052
38069
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38053
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35",
|
|
38054
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
38055
|
-
let
|
|
38056
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38070
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", QW = T && "opacity-95 shadow-lg", $W;
|
|
38071
|
+
r[25] !== l || r[26] !== Z || r[27] !== QW || r[28] !== q ? ($W = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, QW, l), r[25] = l, r[26] = Z, r[27] = QW, r[28] = q, r[29] = $W) : $W = r[29];
|
|
38072
|
+
let eG;
|
|
38073
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (eG = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38057
38074
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38058
38075
|
style: {
|
|
38059
38076
|
transform: `scale(${I})`,
|
|
@@ -38069,14 +38086,14 @@ ${c}
|
|
|
38069
38086
|
output: c.output,
|
|
38070
38087
|
stale: outputIsStale(c, false)
|
|
38071
38088
|
})
|
|
38072
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38073
|
-
let
|
|
38074
|
-
r[37] === z ?
|
|
38089
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = eG) : eG = r[36];
|
|
38090
|
+
let tG;
|
|
38091
|
+
r[37] === z ? tG = r[38] : (tG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38075
38092
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38076
38093
|
"aria-hidden": true
|
|
38077
|
-
}), r[37] = z, r[38] =
|
|
38078
|
-
let
|
|
38079
|
-
r[39] !== z || r[40] !== R ? (
|
|
38094
|
+
}), r[37] = z, r[38] = tG);
|
|
38095
|
+
let nG;
|
|
38096
|
+
r[39] !== z || r[40] !== R ? (nG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38080
38097
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38081
38098
|
className: "text-xs opacity-80",
|
|
38082
38099
|
children: R.description
|
|
@@ -38088,19 +38105,19 @@ ${c}
|
|
|
38088
38105
|
className: "h-3.5 w-3.5"
|
|
38089
38106
|
})
|
|
38090
38107
|
})
|
|
38091
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38092
|
-
let
|
|
38093
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38108
|
+
}), r[39] = z, r[40] = R, r[41] = nG) : nG = r[41];
|
|
38109
|
+
let rG;
|
|
38110
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== $W || r[46] !== eG || r[47] !== tG || r[48] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38094
38111
|
ref: f,
|
|
38095
|
-
className:
|
|
38112
|
+
className: $W,
|
|
38096
38113
|
style: W,
|
|
38097
38114
|
...d,
|
|
38098
38115
|
children: [
|
|
38099
|
-
|
|
38100
|
-
|
|
38101
|
-
|
|
38116
|
+
eG,
|
|
38117
|
+
tG,
|
|
38118
|
+
nG
|
|
38102
38119
|
]
|
|
38103
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38120
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = $W, r[46] = eG, r[47] = tG, r[48] = nG, r[49] = rG) : rG = r[49], rG;
|
|
38104
38121
|
}, MiniCodePreview = (e) => {
|
|
38105
38122
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38106
38123
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38140,7 +38157,7 @@ ${c}
|
|
|
38140
38157
|
function _temp2$2(e) {
|
|
38141
38158
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38142
38159
|
}
|
|
38143
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38160
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DSh8B_vT.js"));
|
|
38144
38161
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38145
38162
|
var _a5;
|
|
38146
38163
|
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), [
|
|
@@ -38525,7 +38542,7 @@ ${c}
|
|
|
38525
38542
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38526
38543
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38527
38544
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38528
|
-
let H, W, G, q, Z,
|
|
38545
|
+
let H, W, G, q, Z, QW, $W, eG, tG, nG;
|
|
38529
38546
|
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) {
|
|
38530
38547
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38531
38548
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38571,11 +38588,11 @@ ${c}
|
|
|
38571
38588
|
})
|
|
38572
38589
|
})
|
|
38573
38590
|
]
|
|
38574
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c,
|
|
38575
|
-
let
|
|
38576
|
-
r[40] !== M || r[41] !==
|
|
38591
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c, QW = R, $W = 0;
|
|
38592
|
+
let rG2 = y && "marimo-output-stale", iG2 = L ? "p-5" : "p-3";
|
|
38593
|
+
r[40] !== M || r[41] !== rG2 || r[42] !== iG2 ? (eG = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", rG2, iG2, M), r[40] = M, r[41] = rG2, r[42] = iG2, r[43] = eG) : eG = r[43], r[44] === d ? tG = r[45] : (tG = d ? {
|
|
38577
38594
|
maxHeight: "none"
|
|
38578
|
-
} : void 0, r[44] = d, r[45] =
|
|
38595
|
+
} : void 0, r[44] = d, r[45] = tG), nG = e2.map((e3, r2) => {
|
|
38579
38596
|
if (e3.channel === "pdb") return null;
|
|
38580
38597
|
if (e3.channel === "stdin") {
|
|
38581
38598
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38604,36 +38621,36 @@ ${c}
|
|
|
38604
38621
|
wrapText: l
|
|
38605
38622
|
})
|
|
38606
38623
|
}, r2);
|
|
38607
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] =
|
|
38608
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38609
|
-
let
|
|
38610
|
-
r[46] !== w || r[47] !== S ? (
|
|
38624
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = QW, r[26] = $W, r[27] = eG, r[28] = tG, r[29] = nG;
|
|
38625
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], QW = r[25], $W = r[26], eG = r[27], tG = r[28], nG = r[29];
|
|
38626
|
+
let rG;
|
|
38627
|
+
r[46] !== w || r[47] !== S ? (rG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38611
38628
|
value: S,
|
|
38612
38629
|
cellId: w,
|
|
38613
38630
|
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"
|
|
38614
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38615
|
-
let
|
|
38616
|
-
r[49] !==
|
|
38631
|
+
}), r[46] = w, r[47] = S, r[48] = rG) : rG = r[48];
|
|
38632
|
+
let iG;
|
|
38633
|
+
r[49] !== rG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== QW || r[54] !== $W || r[55] !== eG || r[56] !== tG || r[57] !== nG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38617
38634
|
title: G,
|
|
38618
38635
|
"data-testid": q,
|
|
38619
38636
|
ref: Z,
|
|
38620
|
-
...
|
|
38621
|
-
tabIndex:
|
|
38622
|
-
className:
|
|
38623
|
-
style:
|
|
38637
|
+
...QW,
|
|
38638
|
+
tabIndex: $W,
|
|
38639
|
+
className: eG,
|
|
38640
|
+
style: tG,
|
|
38624
38641
|
children: [
|
|
38625
|
-
|
|
38626
|
-
|
|
38642
|
+
nG,
|
|
38643
|
+
rG
|
|
38627
38644
|
]
|
|
38628
|
-
}), r[49] =
|
|
38629
|
-
let
|
|
38630
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38645
|
+
}), r[49] = rG, r[50] = G, r[51] = q, r[52] = Z, r[53] = QW, r[54] = $W, r[55] = eG, r[56] = tG, r[57] = nG, r[58] = iG) : iG = r[58];
|
|
38646
|
+
let aG;
|
|
38647
|
+
return r[59] !== H || r[60] !== W || r[61] !== iG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38631
38648
|
className: H,
|
|
38632
38649
|
children: [
|
|
38633
38650
|
W,
|
|
38634
|
-
|
|
38651
|
+
iG
|
|
38635
38652
|
]
|
|
38636
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38653
|
+
}), r[59] = H, r[60] = W, r[61] = iG, r[62] = aG) : aG = r[62], aG;
|
|
38637
38654
|
}, StdInput = (e) => {
|
|
38638
38655
|
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;
|
|
38639
38656
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|