@marimo-team/islands 0.23.15-dev64 → 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/assets/__vite-browser-external-DltVXDv7.js +1 -0
- package/dist/assets/{worker-B3XPCb6y.js → worker-CDEKsBgX.js} +2 -2
- package/dist/{code-visibility-YsJOxF8J.js → code-visibility-DVKeWdlc.js} +1 -1
- package/dist/main.js +1134 -1101
- package/dist/{reveal-component-BxgX1LrU.js → reveal-component-DSh8B_vT.js} +1 -1
- package/package.json +1 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +61 -0
- package/src/core/islands/__tests__/bridge.test.ts +33 -2
- package/src/core/islands/bootstrap.ts +20 -2
- package/src/core/islands/bridge.ts +30 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +34 -0
- package/src/core/islands/components/output-wrapper.tsx +4 -1
- package/src/core/islands/state.ts +9 -0
- package/src/core/islands/worker/worker.tsx +15 -7
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +26 -1
- package/src/plugins/layout/NavigationMenuPlugin.tsx +63 -28
- package/dist/assets/__vite-browser-external-CjNAy01L.js +0 -1
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as notebookOutline, $t as requestClientAtom, A as ChevronDownIcon, Bt
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-B96tMAst.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnaxwDqy.js";
|
|
29
|
-
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-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;
|
|
@@ -8480,6 +8497,10 @@ let __tla = Promise.all([
|
|
|
8480
8497
|
}
|
|
8481
8498
|
});
|
|
8482
8499
|
}
|
|
8500
|
+
const islandsInitializedAtom = atom(false), islandsPendingInitialRunsAtom = atom(/* @__PURE__ */ new Set()), islandsHydratedAtom = atom((e) => {
|
|
8501
|
+
var _a5;
|
|
8502
|
+
return ((_a5 = e(islandsPendingInitialRunsAtom)) == null ? void 0 : _a5.size) === 0;
|
|
8503
|
+
}), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
8483
8504
|
function createPlugin(e, r = {}) {
|
|
8484
8505
|
return {
|
|
8485
8506
|
withData(c) {
|
|
@@ -8518,8 +8539,9 @@ let __tla = Promise.all([
|
|
|
8518
8539
|
...e
|
|
8519
8540
|
}));
|
|
8520
8541
|
var AnyWidgetSlot = (e) => {
|
|
8521
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8522
|
-
r[0]
|
|
8542
|
+
let r = (0, import_compiler_runtime$82.c)(9), { modelId: c } = e.data, l = (0, import_react.useRef)(null), [u, d] = (0, import_react.useState)(), f = useAtomValue(islandsHydratedAtom), p, m;
|
|
8543
|
+
r[0] !== f || r[1] !== c ? (p = () => {
|
|
8544
|
+
if (!f) return;
|
|
8523
8545
|
let e2 = l.current;
|
|
8524
8546
|
if (!e2) return;
|
|
8525
8547
|
let r2 = new AbortController();
|
|
@@ -8530,24 +8552,25 @@ let __tla = Promise.all([
|
|
|
8530
8552
|
}).catch((e3) => {
|
|
8531
8553
|
r2.signal.aborted || d(e3 instanceof Error ? e3 : Error(String(e3)));
|
|
8532
8554
|
}), () => r2.abort();
|
|
8533
|
-
},
|
|
8555
|
+
}, m = [
|
|
8556
|
+
f,
|
|
8534
8557
|
c
|
|
8535
|
-
], r[0] =
|
|
8536
|
-
let m;
|
|
8537
|
-
r[3] === u ? m = r[4] : (m = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8538
|
-
error: u
|
|
8539
|
-
}) : null, r[3] = u, r[4] = m);
|
|
8558
|
+
], r[0] = f, r[1] = c, r[2] = p, r[3] = m) : (p = r[2], m = r[3]), (0, import_react.useEffect)(p, m);
|
|
8540
8559
|
let h;
|
|
8541
|
-
r[
|
|
8542
|
-
|
|
8543
|
-
}), r[
|
|
8560
|
+
r[4] === u ? h = r[5] : (h = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8561
|
+
error: u
|
|
8562
|
+
}) : null, r[4] = u, r[5] = h);
|
|
8544
8563
|
let g;
|
|
8545
|
-
|
|
8564
|
+
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)("div", {
|
|
8565
|
+
ref: l
|
|
8566
|
+
}), r[6] = g) : g = r[6];
|
|
8567
|
+
let _;
|
|
8568
|
+
return r[7] === h ? _ = r[8] : (_ = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
8546
8569
|
children: [
|
|
8547
|
-
|
|
8548
|
-
|
|
8570
|
+
h,
|
|
8571
|
+
g
|
|
8549
8572
|
]
|
|
8550
|
-
}), r[
|
|
8573
|
+
}), r[7] = h, r[8] = _), _;
|
|
8551
8574
|
}, import_compiler_runtime$81 = require_compiler_runtime();
|
|
8552
8575
|
const KeyboardHotkeys = (e) => {
|
|
8553
8576
|
let r = (0, import_compiler_runtime$81.c)(10), { shortcut: c, className: l } = e;
|
|
@@ -10184,10 +10207,10 @@ let __tla = Promise.all([
|
|
|
10184
10207
|
}, H = () => {
|
|
10185
10208
|
for (let e2 of p.unMount) {
|
|
10186
10209
|
let r2 = get(l, e2);
|
|
10187
|
-
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);
|
|
10188
10211
|
}
|
|
10189
10212
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10190
|
-
}, 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, {
|
|
10191
10214
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10192
10215
|
[e2]: r2
|
|
10193
10216
|
} : r2
|
|
@@ -10204,13 +10227,13 @@ let __tla = Promise.all([
|
|
|
10204
10227
|
}
|
|
10205
10228
|
})));
|
|
10206
10229
|
}
|
|
10207
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10208
|
-
},
|
|
10230
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && nG(e2);
|
|
10231
|
+
}, QW = (e2, r2, c2) => {
|
|
10209
10232
|
for (let u2 in r2) {
|
|
10210
10233
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10211
|
-
(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);
|
|
10212
10235
|
}
|
|
10213
|
-
},
|
|
10236
|
+
}, $W = (e2, r2, m2 = {}) => {
|
|
10214
10237
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10215
10238
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10216
10239
|
name: e2,
|
|
@@ -10221,7 +10244,7 @@ let __tla = Promise.all([
|
|
|
10221
10244
|
name: e2,
|
|
10222
10245
|
dirtyFields: getDirtyFields(u, d),
|
|
10223
10246
|
isDirty: W(e2, y2)
|
|
10224
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10247
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? QW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10225
10248
|
...c
|
|
10226
10249
|
}), _.values.next({
|
|
10227
10250
|
name: f.mount ? e2 : void 0,
|
|
@@ -10229,7 +10252,7 @@ let __tla = Promise.all([
|
|
|
10229
10252
|
...d
|
|
10230
10253
|
}
|
|
10231
10254
|
});
|
|
10232
|
-
},
|
|
10255
|
+
}, eG = async (e2) => {
|
|
10233
10256
|
f.mount = true;
|
|
10234
10257
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10235
10258
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10263,11 +10286,11 @@ let __tla = Promise.all([
|
|
|
10263
10286
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10264
10287
|
h2
|
|
10265
10288
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10266
|
-
S2 && (E2._f.deps &&
|
|
10289
|
+
S2 && (E2._f.deps && nG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10267
10290
|
}
|
|
10268
|
-
},
|
|
10291
|
+
}, tG = (e2, r2) => {
|
|
10269
10292
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10270
|
-
},
|
|
10293
|
+
}, nG = async (e2, u2 = {}) => {
|
|
10271
10294
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10272
10295
|
if (r.resolver) {
|
|
10273
10296
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10286,23 +10309,23 @@ let __tla = Promise.all([
|
|
|
10286
10309
|
isValid: d2
|
|
10287
10310
|
} : {},
|
|
10288
10311
|
errors: c.errors
|
|
10289
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10290
|
-
},
|
|
10312
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, tG, e2 ? m2 : p.mount), f2;
|
|
10313
|
+
}, rG = (e2) => {
|
|
10291
10314
|
let r2 = {
|
|
10292
10315
|
...f.mount ? d : u
|
|
10293
10316
|
};
|
|
10294
10317
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10295
|
-
},
|
|
10318
|
+
}, iG = (e2, r2) => ({
|
|
10296
10319
|
invalid: !!get((r2 || c).errors, e2),
|
|
10297
10320
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10298
10321
|
error: get((r2 || c).errors, e2),
|
|
10299
10322
|
isValidating: !!get(c.validatingFields, e2),
|
|
10300
10323
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10301
|
-
}),
|
|
10324
|
+
}), aG = (e2) => {
|
|
10302
10325
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10303
10326
|
errors: e2 ? c.errors : {}
|
|
10304
10327
|
});
|
|
10305
|
-
},
|
|
10328
|
+
}, oG = (e2, r2, u2) => {
|
|
10306
10329
|
let d2 = (get(l, e2, {
|
|
10307
10330
|
_f: {}
|
|
10308
10331
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10315,9 +10338,9 @@ let __tla = Promise.all([
|
|
|
10315
10338
|
errors: c.errors,
|
|
10316
10339
|
isValid: false
|
|
10317
10340
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10318
|
-
},
|
|
10341
|
+
}, sG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10319
10342
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10320
|
-
}) : G(e2, r2, true),
|
|
10343
|
+
}) : G(e2, r2, true), cG = (e2, f2 = {}) => {
|
|
10321
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);
|
|
10322
10345
|
_.values.next({
|
|
10323
10346
|
values: {
|
|
@@ -10329,9 +10352,9 @@ let __tla = Promise.all([
|
|
|
10329
10352
|
isDirty: W()
|
|
10330
10353
|
} : {}
|
|
10331
10354
|
}), !f2.keepIsValid && w();
|
|
10332
|
-
},
|
|
10355
|
+
}, lG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10333
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));
|
|
10334
|
-
},
|
|
10357
|
+
}, uG = (e2, c2 = {}) => {
|
|
10335
10358
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10336
10359
|
return set(l, e2, {
|
|
10337
10360
|
...d2 || {},
|
|
@@ -10345,7 +10368,7 @@ let __tla = Promise.all([
|
|
|
10345
10368
|
mount: true,
|
|
10346
10369
|
...c2
|
|
10347
10370
|
}
|
|
10348
|
-
}), p.mount.add(e2), d2 ?
|
|
10371
|
+
}), p.mount.add(e2), d2 ? lG({
|
|
10349
10372
|
field: d2,
|
|
10350
10373
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10351
10374
|
name: e2
|
|
@@ -10362,11 +10385,11 @@ let __tla = Promise.all([
|
|
|
10362
10385
|
pattern: getRuleValue(c2.pattern)
|
|
10363
10386
|
} : {},
|
|
10364
10387
|
name: e2,
|
|
10365
|
-
onChange:
|
|
10366
|
-
onBlur:
|
|
10388
|
+
onChange: eG,
|
|
10389
|
+
onBlur: eG,
|
|
10367
10390
|
ref: (m3) => {
|
|
10368
10391
|
if (m3) {
|
|
10369
|
-
|
|
10392
|
+
uG(e2, c2), d2 = get(l, e2);
|
|
10370
10393
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10371
10394
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10372
10395
|
set(l, e2, {
|
|
@@ -10392,7 +10415,7 @@ let __tla = Promise.all([
|
|
|
10392
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);
|
|
10393
10416
|
}
|
|
10394
10417
|
};
|
|
10395
|
-
},
|
|
10418
|
+
}, dG = () => r.shouldFocusError && iterateFieldsByAction(l, tG, p.mount), fG = (e2) => {
|
|
10396
10419
|
isBoolean(e2) && (_.state.next({
|
|
10397
10420
|
disabled: e2
|
|
10398
10421
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10401,7 +10424,7 @@ let __tla = Promise.all([
|
|
|
10401
10424
|
r3.disabled = u2._f.disabled || e2;
|
|
10402
10425
|
}));
|
|
10403
10426
|
}, 0, false));
|
|
10404
|
-
},
|
|
10427
|
+
}, pG = (e2, u2) => async (f2) => {
|
|
10405
10428
|
let m2;
|
|
10406
10429
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10407
10430
|
let h2 = cloneObject(d);
|
|
@@ -10423,7 +10446,7 @@ let __tla = Promise.all([
|
|
|
10423
10446
|
}
|
|
10424
10447
|
} else u2 && await u2({
|
|
10425
10448
|
...c.errors
|
|
10426
|
-
}, f2),
|
|
10449
|
+
}, f2), dG(), setTimeout(dG);
|
|
10427
10450
|
if (_.state.next({
|
|
10428
10451
|
isSubmitted: true,
|
|
10429
10452
|
isSubmitting: false,
|
|
@@ -10431,11 +10454,11 @@ let __tla = Promise.all([
|
|
|
10431
10454
|
submitCount: c.submitCount + 1,
|
|
10432
10455
|
errors: c.errors
|
|
10433
10456
|
}), m2) throw m2;
|
|
10434
|
-
},
|
|
10435
|
-
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({
|
|
10436
10459
|
...c
|
|
10437
10460
|
}));
|
|
10438
|
-
},
|
|
10461
|
+
}, hG = (e2, m2 = {}) => {
|
|
10439
10462
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10440
10463
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10441
10464
|
if (m2.keepDirtyValues) {
|
|
@@ -10443,7 +10466,7 @@ let __tla = Promise.all([
|
|
|
10443
10466
|
...p.mount,
|
|
10444
10467
|
...Object.keys(getDirtyFields(u, d))
|
|
10445
10468
|
]);
|
|
10446
|
-
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));
|
|
10447
10470
|
} else {
|
|
10448
10471
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10449
10472
|
let r2 = get(l, e3);
|
|
@@ -10488,25 +10511,25 @@ let __tla = Promise.all([
|
|
|
10488
10511
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10489
10512
|
isSubmitting: false
|
|
10490
10513
|
});
|
|
10491
|
-
},
|
|
10514
|
+
}, gG = (e2, r2) => hG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10492
10515
|
return {
|
|
10493
10516
|
control: {
|
|
10494
|
-
register:
|
|
10495
|
-
unregister:
|
|
10496
|
-
getFieldState:
|
|
10497
|
-
handleSubmit:
|
|
10498
|
-
setError:
|
|
10517
|
+
register: uG,
|
|
10518
|
+
unregister: cG,
|
|
10519
|
+
getFieldState: iG,
|
|
10520
|
+
handleSubmit: pG,
|
|
10521
|
+
setError: oG,
|
|
10499
10522
|
_executeSchema: R,
|
|
10500
10523
|
_getWatch: G,
|
|
10501
10524
|
_getDirty: W,
|
|
10502
10525
|
_updateValid: w,
|
|
10503
10526
|
_removeUnmounted: H,
|
|
10504
10527
|
_updateFieldArray: E,
|
|
10505
|
-
_updateDisabledField:
|
|
10528
|
+
_updateDisabledField: lG,
|
|
10506
10529
|
_getFieldArray: q,
|
|
10507
|
-
_reset:
|
|
10530
|
+
_reset: hG,
|
|
10508
10531
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10509
|
-
|
|
10532
|
+
gG(e2, r.resetOptions), _.state.next({
|
|
10510
10533
|
isLoading: false
|
|
10511
10534
|
});
|
|
10512
10535
|
}),
|
|
@@ -10516,7 +10539,7 @@ let __tla = Promise.all([
|
|
|
10516
10539
|
...e2
|
|
10517
10540
|
};
|
|
10518
10541
|
},
|
|
10519
|
-
_disableForm:
|
|
10542
|
+
_disableForm: fG,
|
|
10520
10543
|
_subjects: _,
|
|
10521
10544
|
_proxyFormState: g,
|
|
10522
10545
|
_setErrors: j,
|
|
@@ -10557,17 +10580,17 @@ let __tla = Promise.all([
|
|
|
10557
10580
|
};
|
|
10558
10581
|
}
|
|
10559
10582
|
},
|
|
10560
|
-
trigger:
|
|
10561
|
-
register:
|
|
10562
|
-
handleSubmit:
|
|
10563
|
-
watch:
|
|
10564
|
-
setValue:
|
|
10565
|
-
getValues:
|
|
10566
|
-
reset:
|
|
10567
|
-
resetField:
|
|
10568
|
-
clearErrors:
|
|
10569
|
-
unregister:
|
|
10570
|
-
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,
|
|
10571
10594
|
setFocus: (e2, r2 = {}) => {
|
|
10572
10595
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10573
10596
|
if (u2) {
|
|
@@ -10575,7 +10598,7 @@ let __tla = Promise.all([
|
|
|
10575
10598
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10576
10599
|
}
|
|
10577
10600
|
},
|
|
10578
|
-
getFieldState:
|
|
10601
|
+
getFieldState: iG
|
|
10579
10602
|
};
|
|
10580
10603
|
}
|
|
10581
10604
|
function useForm(e = {}) {
|
|
@@ -16300,21 +16323,21 @@ ${c}
|
|
|
16300
16323
|
_.pageSize,
|
|
16301
16324
|
_.pageIndex
|
|
16302
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];
|
|
16303
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16304
|
-
r[48] !==
|
|
16305
|
-
let
|
|
16306
|
-
r[51] !==
|
|
16307
|
-
qW,
|
|
16308
|
-
YW,
|
|
16309
|
-
XW,
|
|
16310
|
-
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 = [
|
|
16311
16330
|
QW,
|
|
16331
|
+
eG,
|
|
16332
|
+
tG,
|
|
16333
|
+
nG,
|
|
16334
|
+
rG,
|
|
16312
16335
|
y,
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
], r[51] =
|
|
16316
|
-
let { data:
|
|
16317
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (
|
|
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) => ({
|
|
16318
16341
|
rows: await loadTableData((await u({
|
|
16319
16342
|
page_number: e2,
|
|
16320
16343
|
page_size: 1,
|
|
@@ -16323,17 +16346,17 @@ ${c}
|
|
|
16323
16346
|
filters: filtersToFilterGroup(w),
|
|
16324
16347
|
max_columns: null
|
|
16325
16348
|
})).data)
|
|
16326
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16327
|
-
let
|
|
16328
|
-
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 = () => {
|
|
16329
16352
|
v(_temp4$4);
|
|
16330
|
-
}, r[65] =
|
|
16331
|
-
let
|
|
16332
|
-
r[66] ===
|
|
16333
|
-
|
|
16334
|
-
], r[66] =
|
|
16335
|
-
let
|
|
16336
|
-
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 () => {
|
|
16337
16360
|
let r2 = isStaticNotebook();
|
|
16338
16361
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16339
16362
|
data: null,
|
|
@@ -16342,22 +16365,22 @@ ${c}
|
|
|
16342
16365
|
value_counts: {},
|
|
16343
16366
|
show_charts: false
|
|
16344
16367
|
} : e.get_column_summaries({});
|
|
16345
|
-
}, r[68] = e, r[69] =
|
|
16346
|
-
let
|
|
16347
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
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 = [
|
|
16348
16371
|
e.get_column_summaries,
|
|
16349
16372
|
e.showColumnSummaries,
|
|
16350
16373
|
w,
|
|
16351
16374
|
y,
|
|
16352
16375
|
e.totalRows,
|
|
16353
16376
|
e.data
|
|
16354
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
16355
|
-
let { data:
|
|
16356
|
-
if (r[77] ===
|
|
16357
|
-
|
|
16358
|
-
},
|
|
16359
|
-
|
|
16360
|
-
], 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) {
|
|
16361
16384
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16362
16385
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16363
16386
|
milliseconds: 200,
|
|
@@ -16366,7 +16389,7 @@ ${c}
|
|
|
16366
16389
|
})
|
|
16367
16390
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16368
16391
|
}
|
|
16369
|
-
let
|
|
16392
|
+
let SG = null;
|
|
16370
16393
|
if (G) {
|
|
16371
16394
|
Logger.error(G);
|
|
16372
16395
|
let e2;
|
|
@@ -16382,62 +16405,62 @@ ${c}
|
|
|
16382
16405
|
children: G.message || "An unknown error occurred"
|
|
16383
16406
|
})
|
|
16384
16407
|
]
|
|
16385
|
-
}), r[82] = G, r[83] = e2),
|
|
16408
|
+
}), r[82] = G, r[83] = e2), SG = e2;
|
|
16386
16409
|
}
|
|
16387
|
-
let
|
|
16388
|
-
r[84] === O ?
|
|
16410
|
+
let CG;
|
|
16411
|
+
r[84] === O ? CG = r[85] : (CG = () => {
|
|
16389
16412
|
j(!O);
|
|
16390
|
-
}, r[84] = O, r[85] =
|
|
16391
|
-
let
|
|
16392
|
-
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, {
|
|
16393
16416
|
...e,
|
|
16394
|
-
data:
|
|
16395
|
-
rawData:
|
|
16396
|
-
columnSummaries:
|
|
16417
|
+
data: TG,
|
|
16418
|
+
rawData: EG,
|
|
16419
|
+
columnSummaries: vG,
|
|
16397
16420
|
sorting: p,
|
|
16398
16421
|
setSorting: h,
|
|
16399
16422
|
searchQuery: y,
|
|
16400
16423
|
setSearchQuery: b,
|
|
16401
16424
|
filters: w,
|
|
16402
16425
|
setFilters: T,
|
|
16403
|
-
reloading:
|
|
16404
|
-
totalRows:
|
|
16405
|
-
sizeBytes:
|
|
16406
|
-
sizeBytesIsLoading:
|
|
16426
|
+
reloading: DG,
|
|
16427
|
+
totalRows: OG,
|
|
16428
|
+
sizeBytes: lG,
|
|
16429
|
+
sizeBytesIsLoading: uG,
|
|
16407
16430
|
paginationState: _,
|
|
16408
16431
|
setPaginationState: v,
|
|
16409
|
-
cellStyles:
|
|
16410
|
-
cellHoverTexts:
|
|
16411
|
-
toggleDisplayHeader:
|
|
16432
|
+
cellStyles: kG,
|
|
16433
|
+
cellHoverTexts: AG,
|
|
16434
|
+
toggleDisplayHeader: wG,
|
|
16412
16435
|
isChartBuilderOpen: O,
|
|
16413
|
-
getRow:
|
|
16436
|
+
getRow: fG,
|
|
16414
16437
|
cellId: l,
|
|
16415
16438
|
maxHeight: e.maxHeight
|
|
16416
|
-
}), r[86] = l, r[87] =
|
|
16417
|
-
let
|
|
16418
|
-
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, {
|
|
16419
16442
|
displayHeader: O,
|
|
16420
16443
|
onCloseChartBuilder: () => j(false),
|
|
16421
16444
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16422
16445
|
columns: e.totalColumns,
|
|
16423
16446
|
totalRows: e.totalRows,
|
|
16424
|
-
dataTable:
|
|
16447
|
+
dataTable: MG,
|
|
16425
16448
|
getDataUrl: e.get_data_url,
|
|
16426
16449
|
fieldTypes: e.fieldTypes,
|
|
16427
16450
|
rowHeaders: e.rowHeaders,
|
|
16428
16451
|
cellId: l
|
|
16429
|
-
}) :
|
|
16430
|
-
let
|
|
16431
|
-
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, {
|
|
16432
16455
|
children: [
|
|
16433
|
-
|
|
16434
|
-
|
|
16456
|
+
SG,
|
|
16457
|
+
NG
|
|
16435
16458
|
]
|
|
16436
|
-
}), r[116] =
|
|
16459
|
+
}), r[116] = SG, r[117] = NG, r[118] = PG) : PG = r[118], PG;
|
|
16437
16460
|
});
|
|
16438
16461
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16439
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters:
|
|
16440
|
-
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)(() => {
|
|
16441
16464
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16442
16465
|
let e2 = toFieldTypes(O);
|
|
16443
16466
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16446,13 +16469,13 @@ ${c}
|
|
|
16446
16469
|
}, [
|
|
16447
16470
|
O,
|
|
16448
16471
|
L
|
|
16449
|
-
]),
|
|
16472
|
+
]), AG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), jG = (0, import_react.useMemo)(() => p === "all" ? AG : AG.slice(0, p), [
|
|
16450
16473
|
p,
|
|
16451
|
-
|
|
16452
|
-
]),
|
|
16474
|
+
AG
|
|
16475
|
+
]), MG = (0, import_react.useMemo)(() => {
|
|
16453
16476
|
let e2 = {};
|
|
16454
16477
|
if (r && r.length > 0) {
|
|
16455
|
-
for (let [c2, l2] of
|
|
16478
|
+
for (let [c2, l2] of jG) if (l2[0] === "number") {
|
|
16456
16479
|
let l3 = 0;
|
|
16457
16480
|
for (let e3 of r) {
|
|
16458
16481
|
let r2 = e3[c2];
|
|
@@ -16467,95 +16490,95 @@ ${c}
|
|
|
16467
16490
|
return e2;
|
|
16468
16491
|
}, [
|
|
16469
16492
|
r,
|
|
16470
|
-
|
|
16471
|
-
]),
|
|
16472
|
-
O || (T = false),
|
|
16473
|
-
let
|
|
16474
|
-
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,
|
|
16475
16498
|
selection: h,
|
|
16476
|
-
chartSpecModel:
|
|
16477
|
-
fieldTypes:
|
|
16478
|
-
textJustifyColumns:
|
|
16479
|
-
wrappedColumns:
|
|
16480
|
-
columnWidths:
|
|
16481
|
-
headerTooltip:
|
|
16499
|
+
chartSpecModel: LG,
|
|
16500
|
+
fieldTypes: jG,
|
|
16501
|
+
textJustifyColumns: PG,
|
|
16502
|
+
wrappedColumns: FG,
|
|
16503
|
+
columnWidths: IG,
|
|
16504
|
+
headerTooltip: oG,
|
|
16482
16505
|
showDataTypes: T,
|
|
16483
|
-
calculateTopKRows:
|
|
16484
|
-
fractionDigitsByColumn:
|
|
16506
|
+
calculateTopKRows: mG,
|
|
16507
|
+
fractionDigitsByColumn: RG
|
|
16485
16508
|
}), [
|
|
16486
16509
|
h,
|
|
16487
16510
|
T,
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
EG,
|
|
16491
|
-
kG,
|
|
16492
|
-
AG,
|
|
16511
|
+
LG,
|
|
16512
|
+
NG,
|
|
16493
16513
|
jG,
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16514
|
+
PG,
|
|
16515
|
+
FG,
|
|
16516
|
+
IG,
|
|
16517
|
+
oG,
|
|
16518
|
+
mG,
|
|
16519
|
+
RG
|
|
16520
|
+
]), VG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16498
16521
|
e2,
|
|
16499
16522
|
true
|
|
16500
16523
|
])), [
|
|
16501
16524
|
g
|
|
16502
|
-
]),
|
|
16525
|
+
]), HG = useEvent_default((e2) => {
|
|
16503
16526
|
if (h === "single") {
|
|
16504
16527
|
let r2 = Functions.asUpdater(e2)({});
|
|
16505
16528
|
z(Object.keys(r2).slice(0, 1));
|
|
16506
16529
|
}
|
|
16507
16530
|
if (h === "multi") {
|
|
16508
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16531
|
+
let r2 = Functions.asUpdater(e2)(VG);
|
|
16509
16532
|
z(Object.keys(r2));
|
|
16510
16533
|
}
|
|
16511
|
-
}),
|
|
16512
|
-
if (
|
|
16534
|
+
}), UG = useEvent_default((e2) => {
|
|
16535
|
+
if (SG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16513
16536
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16514
16537
|
r2 !== null && M((e3) => ({
|
|
16515
16538
|
...e3,
|
|
16516
16539
|
pageIndex: r2
|
|
16517
16540
|
}));
|
|
16518
|
-
}),
|
|
16519
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16520
|
-
}),
|
|
16521
|
-
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, {
|
|
16522
16545
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16523
|
-
rowIdx:
|
|
16524
|
-
setRowIdx:
|
|
16546
|
+
rowIdx: xG,
|
|
16547
|
+
setRowIdx: UG,
|
|
16525
16548
|
totalRows: l,
|
|
16526
|
-
fieldTypes:
|
|
16527
|
-
getRow:
|
|
16528
|
-
isSelectable:
|
|
16529
|
-
isRowSelected: !!
|
|
16530
|
-
handleRowSelectionChange:
|
|
16531
|
-
previewColumn:
|
|
16532
|
-
totalColumns:
|
|
16533
|
-
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,
|
|
16534
16557
|
table: e2,
|
|
16535
|
-
showRowExplorer: S && !
|
|
16536
|
-
showColumnExplorer:
|
|
16537
|
-
activeTab:
|
|
16538
|
-
onTabChange:
|
|
16558
|
+
showRowExplorer: S && !JG,
|
|
16559
|
+
showColumnExplorer: qG && !JG,
|
|
16560
|
+
activeTab: EG,
|
|
16561
|
+
onTabChange: DG
|
|
16539
16562
|
})
|
|
16540
16563
|
});
|
|
16541
16564
|
}, [
|
|
16542
|
-
|
|
16565
|
+
wG,
|
|
16543
16566
|
S,
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16567
|
+
qG,
|
|
16568
|
+
xG,
|
|
16569
|
+
UG,
|
|
16547
16570
|
l,
|
|
16548
|
-
|
|
16549
|
-
|
|
16571
|
+
AG,
|
|
16572
|
+
gG,
|
|
16573
|
+
KG,
|
|
16550
16574
|
VG,
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
SG
|
|
16575
|
+
HG,
|
|
16576
|
+
hG,
|
|
16577
|
+
sG,
|
|
16578
|
+
yG,
|
|
16579
|
+
JG,
|
|
16580
|
+
EG,
|
|
16581
|
+
DG
|
|
16559
16582
|
]);
|
|
16560
16583
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16561
16584
|
children: [
|
|
@@ -16567,27 +16590,27 @@ ${c}
|
|
|
16567
16590
|
" rows."
|
|
16568
16591
|
]
|
|
16569
16592
|
}),
|
|
16570
|
-
|
|
16593
|
+
zG < sG && zG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16571
16594
|
className: "mb-1 rounded",
|
|
16572
16595
|
children: [
|
|
16573
16596
|
"Result clipped. Showing ",
|
|
16574
|
-
|
|
16597
|
+
zG,
|
|
16575
16598
|
" of ",
|
|
16576
|
-
|
|
16599
|
+
sG,
|
|
16577
16600
|
" columns."
|
|
16578
16601
|
]
|
|
16579
16602
|
}),
|
|
16580
|
-
|
|
16603
|
+
OG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16581
16604
|
className: "mb-1 rounded",
|
|
16582
16605
|
children: [
|
|
16583
16606
|
"Showing the first ",
|
|
16584
16607
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16585
|
-
children: prettyNumber(r.length,
|
|
16608
|
+
children: prettyNumber(r.length, bG)
|
|
16586
16609
|
}),
|
|
16587
16610
|
" ",
|
|
16588
16611
|
"of ",
|
|
16589
16612
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16590
|
-
children: prettyNumber(l,
|
|
16613
|
+
children: prettyNumber(l, bG)
|
|
16591
16614
|
}),
|
|
16592
16615
|
" rows. Increase the table's ",
|
|
16593
16616
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16601,7 +16624,7 @@ ${c}
|
|
|
16601
16624
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16602
16625
|
}),
|
|
16603
16626
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16604
|
-
value:
|
|
16627
|
+
value: kG,
|
|
16605
16628
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16606
16629
|
label: e,
|
|
16607
16630
|
align: "top",
|
|
@@ -16609,14 +16632,14 @@ ${c}
|
|
|
16609
16632
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16610
16633
|
data: r,
|
|
16611
16634
|
rawData: c,
|
|
16612
|
-
columns:
|
|
16635
|
+
columns: BG,
|
|
16613
16636
|
className: R,
|
|
16614
|
-
maxHeight:
|
|
16637
|
+
maxHeight: vG,
|
|
16615
16638
|
sorting: B,
|
|
16616
16639
|
totalRows: l,
|
|
16617
16640
|
sizeBytes: u,
|
|
16618
16641
|
sizeBytesIsLoading: f,
|
|
16619
|
-
totalColumns:
|
|
16642
|
+
totalColumns: sG,
|
|
16620
16643
|
manualSorting: true,
|
|
16621
16644
|
setSorting: H,
|
|
16622
16645
|
pagination: m,
|
|
@@ -16624,37 +16647,37 @@ ${c}
|
|
|
16624
16647
|
selection: h,
|
|
16625
16648
|
paginationState: j,
|
|
16626
16649
|
setPaginationState: M,
|
|
16627
|
-
rowSelection:
|
|
16628
|
-
cellSelection:
|
|
16629
|
-
cellStyling:
|
|
16630
|
-
hoverTemplate:
|
|
16631
|
-
cellHoverTexts:
|
|
16650
|
+
rowSelection: VG,
|
|
16651
|
+
cellSelection: WG,
|
|
16652
|
+
cellStyling: lG,
|
|
16653
|
+
hoverTemplate: uG,
|
|
16654
|
+
cellHoverTexts: dG,
|
|
16632
16655
|
downloadAs: v ? I : void 0,
|
|
16633
16656
|
showSearch: W,
|
|
16634
16657
|
searchQuery: G,
|
|
16635
16658
|
onSearchQueryChange: q,
|
|
16636
16659
|
showFilters: _,
|
|
16637
16660
|
filters: Z,
|
|
16638
|
-
onFiltersChange:
|
|
16639
|
-
calculateTopKRows:
|
|
16640
|
-
reloading:
|
|
16641
|
-
onRowSelectionChange:
|
|
16642
|
-
freezeColumnsLeft:
|
|
16643
|
-
freezeColumnsRight:
|
|
16644
|
-
hiddenColumns:
|
|
16645
|
-
onCellSelectionChange:
|
|
16646
|
-
getRowIds:
|
|
16647
|
-
toggleDisplayHeader:
|
|
16648
|
-
showChartBuilder: w && !
|
|
16649
|
-
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,
|
|
16650
16673
|
showPageSizeSelector: y,
|
|
16651
|
-
showTableExplorer: (S ||
|
|
16652
|
-
togglePanel:
|
|
16653
|
-
isPanelOpen:
|
|
16654
|
-
isAnyPanelOpen:
|
|
16655
|
-
viewedRowIdx:
|
|
16656
|
-
onViewedRowChange: (e2) =>
|
|
16657
|
-
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
|
|
16658
16681
|
})
|
|
16659
16682
|
})
|
|
16660
16683
|
})
|
|
@@ -18706,29 +18729,29 @@ ${c}
|
|
|
18706
18729
|
], r[2] = w, r[3] = T);
|
|
18707
18730
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18708
18731
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18709
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY),
|
|
18710
|
-
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) => {
|
|
18711
18734
|
var _a5;
|
|
18712
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18713
|
-
}, r[6] = f, r[7] =
|
|
18714
|
-
let
|
|
18715
|
-
r[8] === q ?
|
|
18716
|
-
|
|
18717
|
-
}, r[8] = q, r[9] =
|
|
18718
|
-
let
|
|
18719
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18720
|
-
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;
|
|
18721
18744
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18722
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18723
|
-
let
|
|
18724
|
-
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 = [
|
|
18725
18748
|
E,
|
|
18726
|
-
|
|
18727
|
-
|
|
18749
|
+
iG,
|
|
18750
|
+
tG,
|
|
18728
18751
|
m
|
|
18729
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18730
|
-
let
|
|
18731
|
-
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, {
|
|
18732
18755
|
value: "transform",
|
|
18733
18756
|
className: "text-xs py-1",
|
|
18734
18757
|
children: [
|
|
@@ -18737,9 +18760,9 @@ ${c}
|
|
|
18737
18760
|
}),
|
|
18738
18761
|
"Transform"
|
|
18739
18762
|
]
|
|
18740
|
-
}), r[17] =
|
|
18741
|
-
let
|
|
18742
|
-
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, {
|
|
18743
18766
|
value: "python-code",
|
|
18744
18767
|
className: "text-xs py-1",
|
|
18745
18768
|
children: [
|
|
@@ -18748,9 +18771,9 @@ ${c}
|
|
|
18748
18771
|
}),
|
|
18749
18772
|
"Python Code"
|
|
18750
18773
|
]
|
|
18751
|
-
}), r[18] = H, r[19] =
|
|
18752
|
-
let
|
|
18753
|
-
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, {
|
|
18754
18777
|
value: "sql-code",
|
|
18755
18778
|
className: "text-xs py-1",
|
|
18756
18779
|
children: [
|
|
@@ -18759,54 +18782,54 @@ ${c}
|
|
|
18759
18782
|
}),
|
|
18760
18783
|
"SQL Code"
|
|
18761
18784
|
]
|
|
18762
|
-
}), r[20] = W, r[21] =
|
|
18763
|
-
let
|
|
18764
|
-
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", {
|
|
18765
18788
|
className: "grow"
|
|
18766
|
-
}), r[22] =
|
|
18767
|
-
let
|
|
18768
|
-
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, {
|
|
18769
18792
|
className: "h-8",
|
|
18770
18793
|
children: [
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18794
|
+
oG,
|
|
18795
|
+
sG,
|
|
18796
|
+
cG,
|
|
18797
|
+
lG
|
|
18775
18798
|
]
|
|
18776
|
-
}), r[23] =
|
|
18777
|
-
let
|
|
18778
|
-
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, {
|
|
18779
18802
|
size: "small"
|
|
18780
|
-
}), r[26] = j, r[27] =
|
|
18781
|
-
let
|
|
18782
|
-
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", {
|
|
18783
18806
|
className: "flex items-center gap-2",
|
|
18784
18807
|
children: [
|
|
18785
|
-
|
|
18786
|
-
|
|
18808
|
+
uG,
|
|
18809
|
+
dG
|
|
18787
18810
|
]
|
|
18788
|
-
}), r[28] =
|
|
18789
|
-
let
|
|
18790
|
-
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) => {
|
|
18791
18814
|
dequal(e2, p) || (m(e2), Z(e2));
|
|
18792
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18793
|
-
let
|
|
18794
|
-
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, {
|
|
18795
18818
|
value: "transform",
|
|
18796
18819
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18797
18820
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18798
|
-
ref:
|
|
18821
|
+
ref: QW,
|
|
18799
18822
|
initialValue: q,
|
|
18800
18823
|
columns: c,
|
|
18801
|
-
onChange:
|
|
18824
|
+
onChange: pG,
|
|
18802
18825
|
onInvalidChange: Z,
|
|
18803
18826
|
getColumnValues: g,
|
|
18804
18827
|
columnTypesPerStep: B,
|
|
18805
18828
|
lazy: f
|
|
18806
18829
|
})
|
|
18807
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18808
|
-
let
|
|
18809
|
-
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, {
|
|
18810
18833
|
value: "python-code",
|
|
18811
18834
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18812
18835
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18815,9 +18838,9 @@ ${c}
|
|
|
18815
18838
|
code: H,
|
|
18816
18839
|
language: "python"
|
|
18817
18840
|
})
|
|
18818
|
-
}), r[41] = H, r[42] =
|
|
18819
|
-
let
|
|
18820
|
-
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, {
|
|
18821
18844
|
value: "sql-code",
|
|
18822
18845
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18823
18846
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18826,35 +18849,35 @@ ${c}
|
|
|
18826
18849
|
code: W,
|
|
18827
18850
|
language: "sql"
|
|
18828
18851
|
})
|
|
18829
|
-
}), r[43] = W, r[44] =
|
|
18830
|
-
let
|
|
18831
|
-
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, {
|
|
18832
18855
|
defaultValue: "transform",
|
|
18833
|
-
onValueChange:
|
|
18856
|
+
onValueChange: eG,
|
|
18834
18857
|
children: [
|
|
18835
|
-
|
|
18836
|
-
|
|
18837
|
-
|
|
18838
|
-
|
|
18858
|
+
fG,
|
|
18859
|
+
mG,
|
|
18860
|
+
hG,
|
|
18861
|
+
gG
|
|
18839
18862
|
]
|
|
18840
|
-
}), r[45] =
|
|
18841
|
-
let
|
|
18842
|
-
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, {
|
|
18843
18866
|
error: O
|
|
18844
|
-
}), r[51] = O, r[52] =
|
|
18845
|
-
let
|
|
18846
|
-
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, {
|
|
18847
18870
|
label: null,
|
|
18848
18871
|
className: "rounded-b border-x border-b",
|
|
18849
|
-
data:
|
|
18872
|
+
data: yG,
|
|
18850
18873
|
hasStableRowId: false,
|
|
18851
|
-
totalRows:
|
|
18852
|
-
totalColumns:
|
|
18874
|
+
totalRows: bG,
|
|
18875
|
+
totalColumns: xG,
|
|
18853
18876
|
maxColumns: "all",
|
|
18854
18877
|
pageSize: l,
|
|
18855
18878
|
pagination: true,
|
|
18856
18879
|
fieldTypes: z,
|
|
18857
|
-
rowHeaders:
|
|
18880
|
+
rowHeaders: SG,
|
|
18858
18881
|
showDownload: u,
|
|
18859
18882
|
download_as: v,
|
|
18860
18883
|
get_size_bytes: y,
|
|
@@ -18864,7 +18887,7 @@ ${c}
|
|
|
18864
18887
|
showColumnSummaries: false,
|
|
18865
18888
|
showDataTypes: true,
|
|
18866
18889
|
get_column_summaries: getColumnSummaries,
|
|
18867
|
-
showPageSizeSelector:
|
|
18890
|
+
showPageSizeSelector: CG,
|
|
18868
18891
|
showColumnExplorer: false,
|
|
18869
18892
|
showRowExplorer: true,
|
|
18870
18893
|
showChartBuilder: false,
|
|
@@ -18873,15 +18896,15 @@ ${c}
|
|
|
18873
18896
|
selection: null,
|
|
18874
18897
|
lazy: false,
|
|
18875
18898
|
host: b
|
|
18876
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18877
|
-
let
|
|
18878
|
-
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", {
|
|
18879
18902
|
children: [
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18903
|
+
_G,
|
|
18904
|
+
vG,
|
|
18905
|
+
wG
|
|
18883
18906
|
]
|
|
18884
|
-
}), r[66] =
|
|
18907
|
+
}), r[66] = _G, r[67] = vG, r[68] = wG, r[69] = TG) : TG = r[69], TG;
|
|
18885
18908
|
});
|
|
18886
18909
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18887
18910
|
function getColumnSummaries() {
|
|
@@ -19072,23 +19095,23 @@ ${c}
|
|
|
19072
19095
|
}, [
|
|
19073
19096
|
H
|
|
19074
19097
|
]);
|
|
19075
|
-
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));
|
|
19076
19099
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19077
19100
|
kind: "danger",
|
|
19078
19101
|
children: z.message
|
|
19079
19102
|
});
|
|
19080
|
-
let
|
|
19103
|
+
let rG = PathBuilder.guessDeliminator(c).deliminator, iG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19081
19104
|
children: e2.path
|
|
19082
19105
|
}, e2.id));
|
|
19083
|
-
function
|
|
19106
|
+
function oG(e2) {
|
|
19084
19107
|
var _a6;
|
|
19085
19108
|
if (v) return;
|
|
19086
19109
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19087
|
-
if (g ===
|
|
19110
|
+
if (g === rG) {
|
|
19088
19111
|
y(false);
|
|
19089
19112
|
return;
|
|
19090
19113
|
}
|
|
19091
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19114
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = rG);
|
|
19092
19115
|
}
|
|
19093
19116
|
let r2 = e2.length < c.length;
|
|
19094
19117
|
if (f && r2) {
|
|
@@ -19101,7 +19124,7 @@ ${c}
|
|
|
19101
19124
|
}
|
|
19102
19125
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19103
19126
|
}
|
|
19104
|
-
function
|
|
19127
|
+
function sG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19105
19128
|
return {
|
|
19106
19129
|
id: e2,
|
|
19107
19130
|
name: r2,
|
|
@@ -19109,27 +19132,27 @@ ${c}
|
|
|
19109
19132
|
is_directory: c2
|
|
19110
19133
|
};
|
|
19111
19134
|
}
|
|
19112
|
-
function
|
|
19113
|
-
let f2 =
|
|
19135
|
+
function cG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19136
|
+
let f2 = sG({
|
|
19114
19137
|
path: c2,
|
|
19115
19138
|
name: l2,
|
|
19116
19139
|
isDirectory: d2
|
|
19117
19140
|
});
|
|
19118
|
-
|
|
19141
|
+
QW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19119
19142
|
...e,
|
|
19120
19143
|
f2
|
|
19121
19144
|
] : [
|
|
19122
19145
|
f2
|
|
19123
19146
|
]);
|
|
19124
19147
|
}
|
|
19125
|
-
function
|
|
19148
|
+
function lG() {
|
|
19126
19149
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19127
19150
|
}
|
|
19128
|
-
function
|
|
19151
|
+
function uG() {
|
|
19129
19152
|
let c2 = [];
|
|
19130
19153
|
for (let e2 of Z) {
|
|
19131
|
-
if (
|
|
19132
|
-
let r2 =
|
|
19154
|
+
if (!$W && e2.is_directory || QW.has(e2.path)) continue;
|
|
19155
|
+
let r2 = sG({
|
|
19133
19156
|
path: e2.path,
|
|
19134
19157
|
name: e2.name,
|
|
19135
19158
|
isDirectory: e2.is_directory
|
|
@@ -19141,20 +19164,20 @@ ${c}
|
|
|
19141
19164
|
...c2
|
|
19142
19165
|
]);
|
|
19143
19166
|
}
|
|
19144
|
-
let
|
|
19167
|
+
let dG = [
|
|
19145
19168
|
{
|
|
19146
19169
|
key: "parent",
|
|
19147
19170
|
name: PARENT_DIRECTORY,
|
|
19148
19171
|
Icon: CornerLeftUp,
|
|
19149
19172
|
isSelected: false,
|
|
19150
19173
|
canSelect: false,
|
|
19151
|
-
onPrimary: () =>
|
|
19174
|
+
onPrimary: () => oG(PARENT_DIRECTORY),
|
|
19152
19175
|
onToggleSelect: null
|
|
19153
19176
|
},
|
|
19154
19177
|
...Z.map((e2) => {
|
|
19155
19178
|
let r2 = e2.path;
|
|
19156
19179
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19157
|
-
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({
|
|
19158
19181
|
path: r2,
|
|
19159
19182
|
name: e2.name,
|
|
19160
19183
|
isDirectory: e2.is_directory
|
|
@@ -19165,46 +19188,46 @@ ${c}
|
|
|
19165
19188
|
Icon: FILE_ICON[u2],
|
|
19166
19189
|
isSelected: l2,
|
|
19167
19190
|
canSelect: c2,
|
|
19168
|
-
onPrimary: e2.is_directory ? () =>
|
|
19191
|
+
onPrimary: e2.is_directory ? () => oG(r2) : c2 ? d2 : () => {
|
|
19169
19192
|
},
|
|
19170
19193
|
onToggleSelect: c2 ? d2 : null
|
|
19171
19194
|
};
|
|
19172
19195
|
})
|
|
19173
19196
|
];
|
|
19174
|
-
function
|
|
19197
|
+
function fG(e2) {
|
|
19175
19198
|
var _a6;
|
|
19176
19199
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19177
19200
|
}
|
|
19178
|
-
function
|
|
19201
|
+
function pG(e2, r2) {
|
|
19179
19202
|
var _a6, _b3;
|
|
19180
|
-
let c2 =
|
|
19203
|
+
let c2 = dG.length - 1;
|
|
19181
19204
|
switch (e2.key) {
|
|
19182
19205
|
case "ArrowDown":
|
|
19183
|
-
e2.preventDefault(),
|
|
19206
|
+
e2.preventDefault(), fG(Math.min(r2 + 1, c2));
|
|
19184
19207
|
break;
|
|
19185
19208
|
case "ArrowUp":
|
|
19186
|
-
e2.preventDefault(),
|
|
19209
|
+
e2.preventDefault(), fG(Math.max(r2 - 1, 0));
|
|
19187
19210
|
break;
|
|
19188
19211
|
case "Home":
|
|
19189
|
-
e2.preventDefault(),
|
|
19212
|
+
e2.preventDefault(), fG(0);
|
|
19190
19213
|
break;
|
|
19191
19214
|
case "End":
|
|
19192
|
-
e2.preventDefault(),
|
|
19215
|
+
e2.preventDefault(), fG(c2);
|
|
19193
19216
|
break;
|
|
19194
19217
|
case "Enter":
|
|
19195
|
-
e2.preventDefault(),
|
|
19218
|
+
e2.preventDefault(), dG[r2].onPrimary();
|
|
19196
19219
|
break;
|
|
19197
19220
|
case " ":
|
|
19198
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19221
|
+
e2.preventDefault(), (_b3 = (_a6 = dG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19199
19222
|
break;
|
|
19200
19223
|
}
|
|
19201
19224
|
}
|
|
19202
|
-
let { parentDirectories:
|
|
19225
|
+
let { parentDirectories: mG } = getProtocolAndParentDirectories({
|
|
19203
19226
|
path: g,
|
|
19204
|
-
delimiter:
|
|
19227
|
+
delimiter: rG,
|
|
19205
19228
|
initialPath: c,
|
|
19206
19229
|
restrictNavigation: f
|
|
19207
|
-
}),
|
|
19230
|
+
}), hG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19208
19231
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19209
19232
|
children: [
|
|
19210
19233
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19214,7 +19237,7 @@ ${c}
|
|
|
19214
19237
|
(() => {
|
|
19215
19238
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19216
19239
|
children: renderHTML({
|
|
19217
|
-
html: d ?? `Select ${
|
|
19240
|
+
html: d ?? `Select ${hG.join(" and ", 2)}...`
|
|
19218
19241
|
})
|
|
19219
19242
|
});
|
|
19220
19243
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19228,8 +19251,8 @@ ${c}
|
|
|
19228
19251
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19229
19252
|
size: "xs",
|
|
19230
19253
|
variant: "link",
|
|
19231
|
-
onClick:
|
|
19232
|
-
children:
|
|
19254
|
+
onClick: nG ? lG : uG,
|
|
19255
|
+
children: nG ? "Deselect all" : "Select all"
|
|
19233
19256
|
})
|
|
19234
19257
|
})
|
|
19235
19258
|
]
|
|
@@ -19239,8 +19262,8 @@ ${c}
|
|
|
19239
19262
|
className: "mt-2 w-full",
|
|
19240
19263
|
placeholder: g,
|
|
19241
19264
|
value: g,
|
|
19242
|
-
onChange: (e2) =>
|
|
19243
|
-
children:
|
|
19265
|
+
onChange: (e2) => oG(e2.target.value),
|
|
19266
|
+
children: mG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19244
19267
|
value: e2,
|
|
19245
19268
|
children: e2
|
|
19246
19269
|
}, e2))
|
|
@@ -19276,14 +19299,14 @@ ${c}
|
|
|
19276
19299
|
"aria-label": "File browser",
|
|
19277
19300
|
"aria-multiselectable": u,
|
|
19278
19301
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19279
|
-
children:
|
|
19302
|
+
children: dG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19280
19303
|
role: "row",
|
|
19281
19304
|
ref: (e3) => {
|
|
19282
19305
|
O.current[r2] = e3;
|
|
19283
19306
|
},
|
|
19284
19307
|
tabIndex: r2 === w ? 0 : -1,
|
|
19285
19308
|
onFocus: () => E(r2),
|
|
19286
|
-
onKeyDown: (e3) =>
|
|
19309
|
+
onKeyDown: (e3) => pG(e3, r2),
|
|
19287
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", {
|
|
19288
19311
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19289
19312
|
}),
|
|
@@ -19326,7 +19349,7 @@ ${c}
|
|
|
19326
19349
|
children: [
|
|
19327
19350
|
e.length,
|
|
19328
19351
|
" ",
|
|
19329
|
-
|
|
19352
|
+
hG.join(" or ", e.length),
|
|
19330
19353
|
" ",
|
|
19331
19354
|
"selected"
|
|
19332
19355
|
]
|
|
@@ -19346,7 +19369,7 @@ ${c}
|
|
|
19346
19369
|
marginBlock: 0
|
|
19347
19370
|
},
|
|
19348
19371
|
className: "m-0 text-xs text-muted-foreground",
|
|
19349
|
-
children:
|
|
19372
|
+
children: iG
|
|
19350
19373
|
})
|
|
19351
19374
|
})
|
|
19352
19375
|
]
|
|
@@ -24728,55 +24751,55 @@ ${c}
|
|
|
24728
24751
|
return typeof S == "function" ? S : noop$2;
|
|
24729
24752
|
}, [
|
|
24730
24753
|
S
|
|
24731
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24732
|
-
!
|
|
24733
|
-
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({
|
|
24734
24757
|
type: "closeDialog"
|
|
24735
24758
|
}), G()));
|
|
24736
24759
|
}, 300);
|
|
24737
24760
|
};
|
|
24738
24761
|
(0, import_react.useEffect)(function() {
|
|
24739
|
-
return window.addEventListener("focus",
|
|
24740
|
-
window.removeEventListener("focus",
|
|
24762
|
+
return window.addEventListener("focus", iG, false), function() {
|
|
24763
|
+
window.removeEventListener("focus", iG, false);
|
|
24741
24764
|
};
|
|
24742
24765
|
}, [
|
|
24743
24766
|
Z,
|
|
24744
|
-
|
|
24767
|
+
nG,
|
|
24745
24768
|
G,
|
|
24746
|
-
|
|
24769
|
+
rG
|
|
24747
24770
|
]);
|
|
24748
|
-
var
|
|
24749
|
-
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 = []);
|
|
24750
24773
|
};
|
|
24751
24774
|
(0, import_react.useEffect)(function() {
|
|
24752
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24753
|
-
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));
|
|
24754
24777
|
};
|
|
24755
24778
|
}, [
|
|
24756
24779
|
q,
|
|
24757
24780
|
O
|
|
24758
24781
|
]), (0, import_react.useEffect)(function() {
|
|
24759
24782
|
var e2 = function(e3) {
|
|
24760
|
-
|
|
24783
|
+
oG.current = [].concat(_toConsumableArray(oG.current), [
|
|
24761
24784
|
e3.target
|
|
24762
|
-
]), isEvtWithFiles(e3) &&
|
|
24785
|
+
]), isEvtWithFiles(e3) && eG({
|
|
24763
24786
|
isDragGlobal: true,
|
|
24764
24787
|
type: "setDragGlobal"
|
|
24765
24788
|
});
|
|
24766
24789
|
}, r2 = function(e3) {
|
|
24767
|
-
|
|
24790
|
+
oG.current = oG.current.filter(function(r3) {
|
|
24768
24791
|
return r3 !== e3.target && r3 !== null;
|
|
24769
|
-
}), !(
|
|
24792
|
+
}), !(oG.current.length > 0) && eG({
|
|
24770
24793
|
isDragGlobal: false,
|
|
24771
24794
|
type: "setDragGlobal"
|
|
24772
24795
|
});
|
|
24773
24796
|
}, c2 = function() {
|
|
24774
|
-
|
|
24797
|
+
oG.current = [], eG({
|
|
24775
24798
|
isDragGlobal: false,
|
|
24776
24799
|
type: "setDragGlobal"
|
|
24777
24800
|
});
|
|
24778
24801
|
}, l2 = function() {
|
|
24779
|
-
|
|
24802
|
+
oG.current = [], eG({
|
|
24780
24803
|
isDragGlobal: false,
|
|
24781
24804
|
type: "setDragGlobal"
|
|
24782
24805
|
});
|
|
@@ -24794,12 +24817,12 @@ ${c}
|
|
|
24794
24817
|
E,
|
|
24795
24818
|
l
|
|
24796
24819
|
]);
|
|
24797
|
-
var
|
|
24820
|
+
var cG = (0, import_react.useCallback)(function(e2) {
|
|
24798
24821
|
R ? R(e2) : console.error(e2);
|
|
24799
24822
|
}, [
|
|
24800
24823
|
R
|
|
24801
|
-
]),
|
|
24802
|
-
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), [
|
|
24803
24826
|
e2.target
|
|
24804
24827
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24805
24828
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24812,7 +24835,7 @@ ${c}
|
|
|
24812
24835
|
maxFiles: m,
|
|
24813
24836
|
validator: z
|
|
24814
24837
|
});
|
|
24815
|
-
|
|
24838
|
+
eG({
|
|
24816
24839
|
isDragAccept: l2,
|
|
24817
24840
|
isDragReject: c2 > 0 && !l2,
|
|
24818
24841
|
isDragActive: true,
|
|
@@ -24820,12 +24843,12 @@ ${c}
|
|
|
24820
24843
|
}), h && h(e2);
|
|
24821
24844
|
}
|
|
24822
24845
|
}).catch(function(e3) {
|
|
24823
|
-
return
|
|
24846
|
+
return cG(e3);
|
|
24824
24847
|
});
|
|
24825
24848
|
}, [
|
|
24826
24849
|
u,
|
|
24827
24850
|
h,
|
|
24828
|
-
|
|
24851
|
+
cG,
|
|
24829
24852
|
L,
|
|
24830
24853
|
B,
|
|
24831
24854
|
f,
|
|
@@ -24833,8 +24856,8 @@ ${c}
|
|
|
24833
24856
|
p,
|
|
24834
24857
|
m,
|
|
24835
24858
|
z
|
|
24836
|
-
]),
|
|
24837
|
-
e2.preventDefault(), e2.persist(),
|
|
24859
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24860
|
+
e2.preventDefault(), e2.persist(), SG(e2);
|
|
24838
24861
|
var r2 = isEvtWithFiles(e2);
|
|
24839
24862
|
if (r2 && e2.dataTransfer) try {
|
|
24840
24863
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24844,12 +24867,12 @@ ${c}
|
|
|
24844
24867
|
}, [
|
|
24845
24868
|
_,
|
|
24846
24869
|
L
|
|
24847
|
-
]),
|
|
24848
|
-
e2.preventDefault(), e2.persist(),
|
|
24849
|
-
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) {
|
|
24850
24873
|
return q.current && q.current.contains(e3);
|
|
24851
24874
|
}), c2 = r2.indexOf(e2.target);
|
|
24852
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24875
|
+
c2 !== -1 && r2.splice(c2, 1), aG.current = r2, !(r2.length > 0) && (eG({
|
|
24853
24876
|
type: "setDraggedFiles",
|
|
24854
24877
|
isDragActive: false,
|
|
24855
24878
|
isDragAccept: false,
|
|
@@ -24859,7 +24882,7 @@ ${c}
|
|
|
24859
24882
|
q,
|
|
24860
24883
|
g,
|
|
24861
24884
|
L
|
|
24862
|
-
]),
|
|
24885
|
+
]), fG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24863
24886
|
var c2 = [], l2 = [];
|
|
24864
24887
|
e2.forEach(function(e3) {
|
|
24865
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;
|
|
@@ -24883,14 +24906,14 @@ ${c}
|
|
|
24883
24906
|
TOO_MANY_FILES_REJECTION
|
|
24884
24907
|
]
|
|
24885
24908
|
});
|
|
24886
|
-
}), c2.splice(0)),
|
|
24909
|
+
}), c2.splice(0)), eG({
|
|
24887
24910
|
acceptedFiles: c2,
|
|
24888
24911
|
fileRejections: l2,
|
|
24889
24912
|
isDragReject: l2.length > 0,
|
|
24890
24913
|
type: "setFiles"
|
|
24891
24914
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24892
24915
|
}, [
|
|
24893
|
-
|
|
24916
|
+
eG,
|
|
24894
24917
|
p,
|
|
24895
24918
|
B,
|
|
24896
24919
|
f,
|
|
@@ -24900,22 +24923,22 @@ ${c}
|
|
|
24900
24923
|
y,
|
|
24901
24924
|
b,
|
|
24902
24925
|
z
|
|
24903
|
-
]),
|
|
24904
|
-
e2.preventDefault(), e2.persist(),
|
|
24905
|
-
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);
|
|
24906
24929
|
}).catch(function(e3) {
|
|
24907
|
-
return
|
|
24908
|
-
}),
|
|
24930
|
+
return cG(e3);
|
|
24931
|
+
}), eG({
|
|
24909
24932
|
type: "reset"
|
|
24910
24933
|
});
|
|
24911
24934
|
}, [
|
|
24912
24935
|
u,
|
|
24913
|
-
|
|
24914
|
-
|
|
24936
|
+
fG,
|
|
24937
|
+
cG,
|
|
24915
24938
|
L
|
|
24916
|
-
]),
|
|
24917
|
-
if (
|
|
24918
|
-
|
|
24939
|
+
]), mG = (0, import_react.useCallback)(function() {
|
|
24940
|
+
if (rG.current) {
|
|
24941
|
+
eG({
|
|
24919
24942
|
type: "openDialog"
|
|
24920
24943
|
}), W();
|
|
24921
24944
|
var e2 = {
|
|
@@ -24925,66 +24948,66 @@ ${c}
|
|
|
24925
24948
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24926
24949
|
return u(e3);
|
|
24927
24950
|
}).then(function(e3) {
|
|
24928
|
-
|
|
24951
|
+
fG(e3, null), eG({
|
|
24929
24952
|
type: "closeDialog"
|
|
24930
24953
|
});
|
|
24931
24954
|
}).catch(function(e3) {
|
|
24932
|
-
isAbort(e3) ? (G(e3),
|
|
24955
|
+
isAbort(e3) ? (G(e3), eG({
|
|
24933
24956
|
type: "closeDialog"
|
|
24934
|
-
})) : 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);
|
|
24935
24958
|
});
|
|
24936
24959
|
return;
|
|
24937
24960
|
}
|
|
24938
|
-
Z.current && (
|
|
24961
|
+
Z.current && (eG({
|
|
24939
24962
|
type: "openDialog"
|
|
24940
24963
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24941
24964
|
}, [
|
|
24942
|
-
|
|
24965
|
+
eG,
|
|
24943
24966
|
W,
|
|
24944
24967
|
G,
|
|
24945
24968
|
T,
|
|
24946
|
-
|
|
24947
|
-
|
|
24969
|
+
fG,
|
|
24970
|
+
cG,
|
|
24948
24971
|
H,
|
|
24949
24972
|
p
|
|
24950
|
-
]),
|
|
24951
|
-
!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());
|
|
24952
24975
|
}, [
|
|
24953
24976
|
q,
|
|
24954
|
-
|
|
24955
|
-
]),
|
|
24956
|
-
|
|
24977
|
+
mG
|
|
24978
|
+
]), gG = (0, import_react.useCallback)(function() {
|
|
24979
|
+
eG({
|
|
24957
24980
|
type: "focus"
|
|
24958
24981
|
});
|
|
24959
|
-
}, []),
|
|
24960
|
-
|
|
24982
|
+
}, []), _G = (0, import_react.useCallback)(function() {
|
|
24983
|
+
eG({
|
|
24961
24984
|
type: "blur"
|
|
24962
24985
|
});
|
|
24963
|
-
}, []),
|
|
24964
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24986
|
+
}, []), vG = (0, import_react.useCallback)(function() {
|
|
24987
|
+
j || (isIeOrEdge() ? setTimeout(mG, 0) : mG());
|
|
24965
24988
|
}, [
|
|
24966
24989
|
j,
|
|
24967
|
-
|
|
24968
|
-
]),
|
|
24990
|
+
mG
|
|
24991
|
+
]), yG = function(e2) {
|
|
24969
24992
|
return l ? null : e2;
|
|
24970
|
-
},
|
|
24971
|
-
return M ? null :
|
|
24972
|
-
},
|
|
24973
|
-
return I ? null :
|
|
24974
|
-
},
|
|
24993
|
+
}, bG = function(e2) {
|
|
24994
|
+
return M ? null : yG(e2);
|
|
24995
|
+
}, xG = function(e2) {
|
|
24996
|
+
return I ? null : yG(e2);
|
|
24997
|
+
}, SG = function(e2) {
|
|
24975
24998
|
L && e2.stopPropagation();
|
|
24976
|
-
},
|
|
24999
|
+
}, CG = (0, import_react.useMemo)(function() {
|
|
24977
25000
|
return function() {
|
|
24978
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);
|
|
24979
25002
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24980
|
-
onKeyDown:
|
|
24981
|
-
onFocus:
|
|
24982
|
-
onBlur:
|
|
24983
|
-
onClick:
|
|
24984
|
-
onDragEnter:
|
|
24985
|
-
onDragOver:
|
|
24986
|
-
onDragLeave:
|
|
24987
|
-
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)),
|
|
24988
25011
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24989
25012
|
}, c2, q), !l && !M ? {
|
|
24990
25013
|
tabIndex: 0
|
|
@@ -24992,20 +25015,20 @@ ${c}
|
|
|
24992
25015
|
};
|
|
24993
25016
|
}, [
|
|
24994
25017
|
q,
|
|
25018
|
+
hG,
|
|
25019
|
+
gG,
|
|
25020
|
+
_G,
|
|
25021
|
+
vG,
|
|
25022
|
+
lG,
|
|
24995
25023
|
uG,
|
|
24996
25024
|
dG,
|
|
24997
|
-
fG,
|
|
24998
25025
|
pG,
|
|
24999
|
-
iG,
|
|
25000
|
-
aG,
|
|
25001
|
-
oG,
|
|
25002
|
-
cG,
|
|
25003
25026
|
M,
|
|
25004
25027
|
I,
|
|
25005
25028
|
l
|
|
25006
|
-
]),
|
|
25029
|
+
]), wG = (0, import_react.useCallback)(function(e2) {
|
|
25007
25030
|
e2.stopPropagation();
|
|
25008
|
-
}, []),
|
|
25031
|
+
}, []), TG = (0, import_react.useMemo)(function() {
|
|
25009
25032
|
return function() {
|
|
25010
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);
|
|
25011
25034
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25024,8 +25047,8 @@ ${c}
|
|
|
25024
25047
|
width: "1px",
|
|
25025
25048
|
whiteSpace: "nowrap"
|
|
25026
25049
|
},
|
|
25027
|
-
onChange:
|
|
25028
|
-
onClick:
|
|
25050
|
+
onChange: yG(composeEventHandlers(l2, pG)),
|
|
25051
|
+
onClick: yG(composeEventHandlers(u2, wG)),
|
|
25029
25052
|
tabIndex: -1
|
|
25030
25053
|
}, c2, Z)), d2);
|
|
25031
25054
|
};
|
|
@@ -25033,16 +25056,16 @@ ${c}
|
|
|
25033
25056
|
Z,
|
|
25034
25057
|
c,
|
|
25035
25058
|
p,
|
|
25036
|
-
|
|
25059
|
+
pG,
|
|
25037
25060
|
l
|
|
25038
25061
|
]);
|
|
25039
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25040
|
-
isFocused:
|
|
25041
|
-
getRootProps:
|
|
25042
|
-
getInputProps:
|
|
25062
|
+
return _objectSpread$7(_objectSpread$7({}, $W), {}, {
|
|
25063
|
+
isFocused: tG && !l,
|
|
25064
|
+
getRootProps: CG,
|
|
25065
|
+
getInputProps: TG,
|
|
25043
25066
|
rootRef: q,
|
|
25044
25067
|
inputRef: Z,
|
|
25045
|
-
open: mG
|
|
25068
|
+
open: yG(mG)
|
|
25046
25069
|
});
|
|
25047
25070
|
}
|
|
25048
25071
|
function reducer$2(e, r) {
|
|
@@ -25274,47 +25297,47 @@ ${c}
|
|
|
25274
25297
|
html: I
|
|
25275
25298
|
})
|
|
25276
25299
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25277
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25278
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25279
|
-
let
|
|
25280
|
-
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, {
|
|
25281
25304
|
strokeWidth: 1.4,
|
|
25282
|
-
className:
|
|
25283
|
-
}), r[51] =
|
|
25284
|
-
let
|
|
25285
|
-
r[53] !==
|
|
25286
|
-
let
|
|
25287
|
-
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, {
|
|
25288
25311
|
strokeWidth: 1.4,
|
|
25289
|
-
className:
|
|
25290
|
-
}), r[56] =
|
|
25291
|
-
let
|
|
25292
|
-
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", {
|
|
25293
25316
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25294
25317
|
children: [
|
|
25295
|
-
|
|
25296
|
-
|
|
25318
|
+
$W,
|
|
25319
|
+
rG
|
|
25297
25320
|
]
|
|
25298
|
-
}), r[58] =
|
|
25299
|
-
let
|
|
25300
|
-
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", {
|
|
25301
25324
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25302
25325
|
children: [
|
|
25303
25326
|
G,
|
|
25304
|
-
|
|
25327
|
+
iG
|
|
25305
25328
|
]
|
|
25306
|
-
}), r[61] = G, r[62] =
|
|
25307
|
-
let
|
|
25308
|
-
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", {
|
|
25309
25332
|
className: z,
|
|
25310
25333
|
...B,
|
|
25311
25334
|
children: [
|
|
25312
25335
|
W,
|
|
25313
|
-
|
|
25336
|
+
oG
|
|
25314
25337
|
]
|
|
25315
|
-
}), r[64] = W, r[65] =
|
|
25316
|
-
let
|
|
25317
|
-
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", {
|
|
25318
25341
|
className: "flex flex-row gap-1",
|
|
25319
25342
|
children: [
|
|
25320
25343
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25350,17 +25373,17 @@ ${c}
|
|
|
25350
25373
|
})
|
|
25351
25374
|
})
|
|
25352
25375
|
]
|
|
25353
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25354
|
-
let
|
|
25355
|
-
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", {
|
|
25356
25379
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25357
25380
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25358
25381
|
children: [
|
|
25359
|
-
|
|
25360
|
-
|
|
25382
|
+
sG,
|
|
25383
|
+
cG
|
|
25361
25384
|
]
|
|
25362
25385
|
})
|
|
25363
|
-
}), r[75] =
|
|
25386
|
+
}), r[75] = sG, r[76] = cG, r[77] = lG) : lG = r[77], lG;
|
|
25364
25387
|
};
|
|
25365
25388
|
function _temp$11(e) {
|
|
25366
25389
|
Logger.error(e), toast({
|
|
@@ -25463,68 +25486,68 @@ ${c}
|
|
|
25463
25486
|
html: f
|
|
25464
25487
|
})
|
|
25465
25488
|
}), r[13] = f, r[14] = Z);
|
|
25466
|
-
let
|
|
25467
|
-
r[15] === L ?
|
|
25489
|
+
let QW;
|
|
25490
|
+
r[15] === L ? QW = r[16] : (QW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25468
25491
|
kind: "danger",
|
|
25469
25492
|
className: "rounded",
|
|
25470
25493
|
children: L ?? "Invalid input"
|
|
25471
|
-
}), r[15] = L, r[16] =
|
|
25472
|
-
let
|
|
25473
|
-
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", {
|
|
25474
25497
|
children: c
|
|
25475
|
-
}), r[17] = c, r[18] =
|
|
25476
|
-
let
|
|
25477
|
-
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, {
|
|
25478
25501
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25479
25502
|
variant: "text",
|
|
25480
25503
|
onClick: (e2) => {
|
|
25481
25504
|
e2.preventDefault(), B();
|
|
25482
25505
|
},
|
|
25483
25506
|
children: S
|
|
25484
|
-
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] =
|
|
25485
|
-
let
|
|
25486
|
-
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, {
|
|
25487
25510
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25488
|
-
}), r[23] = m, r[24] =
|
|
25489
|
-
let
|
|
25490
|
-
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, {
|
|
25491
25514
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25492
25515
|
variant: I,
|
|
25493
|
-
disabled:
|
|
25516
|
+
disabled: tG,
|
|
25494
25517
|
type: "submit",
|
|
25495
25518
|
children: [
|
|
25496
|
-
|
|
25519
|
+
nG,
|
|
25497
25520
|
g
|
|
25498
25521
|
]
|
|
25499
|
-
}), r[25] = g, r[26] =
|
|
25500
|
-
let
|
|
25501
|
-
r[30] !== _ || r[31] !==
|
|
25502
|
-
let
|
|
25503
|
-
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", {
|
|
25504
25527
|
className: "flex justify-end gap-2 font-code",
|
|
25505
25528
|
children: [
|
|
25506
|
-
|
|
25507
|
-
|
|
25529
|
+
eG,
|
|
25530
|
+
iG
|
|
25508
25531
|
]
|
|
25509
|
-
}), r[33] =
|
|
25510
|
-
let
|
|
25511
|
-
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", {
|
|
25512
25535
|
className: G,
|
|
25513
25536
|
onKeyDown: q,
|
|
25514
25537
|
children: [
|
|
25515
25538
|
Z,
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25539
|
+
QW,
|
|
25540
|
+
$W,
|
|
25541
|
+
oG
|
|
25519
25542
|
]
|
|
25520
|
-
}), r[36] =
|
|
25521
|
-
let
|
|
25522
|
-
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", {
|
|
25523
25546
|
className: "contents",
|
|
25524
25547
|
ref: j,
|
|
25525
25548
|
onSubmit: H,
|
|
25526
|
-
children:
|
|
25527
|
-
}), r[43] =
|
|
25549
|
+
children: sG
|
|
25550
|
+
}), r[43] = sG, r[44] = H, r[45] = cG) : cG = r[45], cG;
|
|
25528
25551
|
};
|
|
25529
25552
|
var Form = (e) => {
|
|
25530
25553
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27310,8 +27333,8 @@ ${c}
|
|
|
27310
27333
|
indices: c2
|
|
27311
27334
|
}));
|
|
27312
27335
|
}, r[31] = u, r[32] = Z);
|
|
27313
|
-
let
|
|
27314
|
-
r[33] === u ?
|
|
27336
|
+
let QW = useEvent_default(Z), $W;
|
|
27337
|
+
r[33] === u ? $W = r[34] : ($W = (e2) => {
|
|
27315
27338
|
e2 && u((r2) => ({
|
|
27316
27339
|
...r2,
|
|
27317
27340
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27320,9 +27343,9 @@ ${c}
|
|
|
27320
27343
|
range: e2.range,
|
|
27321
27344
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27322
27345
|
}));
|
|
27323
|
-
}, r[33] = u, r[34] =
|
|
27324
|
-
let
|
|
27325
|
-
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, {
|
|
27326
27349
|
...m,
|
|
27327
27350
|
layout: h,
|
|
27328
27351
|
onRelayout: R,
|
|
@@ -27330,13 +27353,13 @@ ${c}
|
|
|
27330
27353
|
onTreemapClick: W,
|
|
27331
27354
|
onSunburstClick: q,
|
|
27332
27355
|
config: L,
|
|
27333
|
-
onClick:
|
|
27334
|
-
onSelected:
|
|
27356
|
+
onClick: QW,
|
|
27357
|
+
onSelected: eG,
|
|
27335
27358
|
className: "w-full",
|
|
27336
27359
|
useResizeHandler: true,
|
|
27337
|
-
frames:
|
|
27338
|
-
onError:
|
|
27339
|
-
}), 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;
|
|
27340
27363
|
});
|
|
27341
27364
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27342
27365
|
function _temp$8(e) {
|
|
@@ -27481,8 +27504,8 @@ ${c}
|
|
|
27481
27504
|
onPointerUp: H
|
|
27482
27505
|
})
|
|
27483
27506
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27484
|
-
let
|
|
27485
|
-
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, {
|
|
27486
27509
|
asChild: true,
|
|
27487
27510
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27488
27511
|
"data-testid": "thumb",
|
|
@@ -27492,30 +27515,30 @@ ${c}
|
|
|
27492
27515
|
onMouseEnter: p.setTrue,
|
|
27493
27516
|
onMouseLeave: p.setFalse
|
|
27494
27517
|
})
|
|
27495
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27496
|
-
let
|
|
27497
|
-
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, {
|
|
27498
27521
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27499
27522
|
locale: m
|
|
27500
27523
|
})
|
|
27501
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27502
|
-
let
|
|
27503
|
-
c[30] ===
|
|
27504
|
-
children:
|
|
27505
|
-
}), c[30] =
|
|
27506
|
-
let
|
|
27507
|
-
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, {
|
|
27508
27531
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27509
27532
|
delayDuration: 0,
|
|
27510
27533
|
open: f,
|
|
27511
27534
|
children: [
|
|
27512
|
-
|
|
27513
|
-
|
|
27535
|
+
QW,
|
|
27536
|
+
eG
|
|
27514
27537
|
]
|
|
27515
27538
|
})
|
|
27516
|
-
}), c[32] = f, c[33] =
|
|
27517
|
-
let
|
|
27518
|
-
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, {
|
|
27519
27542
|
asChild: true,
|
|
27520
27543
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27521
27544
|
"data-testid": "thumb",
|
|
@@ -27525,39 +27548,39 @@ ${c}
|
|
|
27525
27548
|
onMouseEnter: p.setTrue,
|
|
27526
27549
|
onMouseLeave: p.setFalse
|
|
27527
27550
|
})
|
|
27528
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27529
|
-
let
|
|
27530
|
-
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, {
|
|
27531
27554
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27532
27555
|
locale: m
|
|
27533
27556
|
})
|
|
27534
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27535
|
-
let
|
|
27536
|
-
c[43] ===
|
|
27537
|
-
children:
|
|
27538
|
-
}), c[43] =
|
|
27539
|
-
let
|
|
27540
|
-
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, {
|
|
27541
27564
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27542
27565
|
delayDuration: 0,
|
|
27543
27566
|
open: f,
|
|
27544
27567
|
children: [
|
|
27545
|
-
|
|
27546
|
-
|
|
27568
|
+
nG,
|
|
27569
|
+
iG
|
|
27547
27570
|
]
|
|
27548
27571
|
})
|
|
27549
|
-
}), c[45] = f, c[46] =
|
|
27550
|
-
let
|
|
27551
|
-
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, {
|
|
27552
27575
|
ref: M,
|
|
27553
27576
|
className: W,
|
|
27554
27577
|
...u,
|
|
27555
27578
|
children: [
|
|
27556
27579
|
Z,
|
|
27557
|
-
|
|
27558
|
-
|
|
27580
|
+
tG,
|
|
27581
|
+
aG
|
|
27559
27582
|
]
|
|
27560
|
-
}), 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;
|
|
27561
27584
|
});
|
|
27562
27585
|
RangeSlider.displayName = Root.displayName;
|
|
27563
27586
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27608,14 +27631,14 @@ ${c}
|
|
|
27608
27631
|
}, q = (e2) => {
|
|
27609
27632
|
m && l(e2);
|
|
27610
27633
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27611
|
-
let Z,
|
|
27634
|
+
let Z, QW;
|
|
27612
27635
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27613
27636
|
m && !dequal(T, u) && l(T);
|
|
27614
|
-
},
|
|
27637
|
+
}, QW = () => {
|
|
27615
27638
|
m && !dequal(T, u) && l(T);
|
|
27616
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27617
|
-
let
|
|
27618
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
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, {
|
|
27619
27642
|
id: S,
|
|
27620
27643
|
className: W,
|
|
27621
27644
|
value: T,
|
|
@@ -27627,35 +27650,35 @@ ${c}
|
|
|
27627
27650
|
onValueChange: G,
|
|
27628
27651
|
onValueCommit: q,
|
|
27629
27652
|
onPointerUp: Z,
|
|
27630
|
-
onMouseUp:
|
|
27653
|
+
onMouseUp: QW,
|
|
27631
27654
|
valueMap: b
|
|
27632
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
27633
|
-
let
|
|
27634
|
-
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", {
|
|
27635
27658
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27636
27659
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27637
27660
|
locale: w
|
|
27638
27661
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27639
27662
|
locale: w
|
|
27640
27663
|
})}`
|
|
27641
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27642
|
-
let
|
|
27643
|
-
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", {
|
|
27644
27667
|
className: B,
|
|
27645
27668
|
children: [
|
|
27646
|
-
|
|
27647
|
-
|
|
27669
|
+
$W,
|
|
27670
|
+
eG
|
|
27648
27671
|
]
|
|
27649
|
-
}), r[39] =
|
|
27650
|
-
let
|
|
27651
|
-
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, {
|
|
27652
27675
|
label: c,
|
|
27653
27676
|
id: S,
|
|
27654
27677
|
align: M,
|
|
27655
27678
|
className: L,
|
|
27656
27679
|
fullWidth: v,
|
|
27657
|
-
children:
|
|
27658
|
-
}), 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;
|
|
27659
27682
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27660
27683
|
r.exports = u;
|
|
27661
27684
|
var c = {
|
|
@@ -30954,40 +30977,40 @@ ${c}
|
|
|
30954
30977
|
areRegExpsEqual: H,
|
|
30955
30978
|
areSetsEqual: G,
|
|
30956
30979
|
createIsNestedEqual: r2
|
|
30957
|
-
}),
|
|
30958
|
-
function
|
|
30959
|
-
return
|
|
30980
|
+
}), QW = T(q);
|
|
30981
|
+
function $W(e3, r3) {
|
|
30982
|
+
return QW(e3, r3, void 0);
|
|
30960
30983
|
}
|
|
30961
|
-
var
|
|
30984
|
+
var eG = T(l(q, {
|
|
30962
30985
|
createIsNestedEqual: function() {
|
|
30963
30986
|
return f;
|
|
30964
30987
|
}
|
|
30965
30988
|
}));
|
|
30966
|
-
function
|
|
30967
|
-
return
|
|
30989
|
+
function tG(e3, r3) {
|
|
30990
|
+
return eG(e3, r3, void 0);
|
|
30968
30991
|
}
|
|
30969
|
-
var
|
|
30970
|
-
function
|
|
30971
|
-
return
|
|
30992
|
+
var nG = T(Z);
|
|
30993
|
+
function rG(e3, r3) {
|
|
30994
|
+
return nG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30972
30995
|
}
|
|
30973
|
-
var
|
|
30996
|
+
var iG = T(l(Z, {
|
|
30974
30997
|
createIsNestedEqual: function() {
|
|
30975
30998
|
return f;
|
|
30976
30999
|
}
|
|
30977
31000
|
}));
|
|
30978
|
-
function
|
|
30979
|
-
return
|
|
31001
|
+
function aG(e3, r3) {
|
|
31002
|
+
return iG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30980
31003
|
}
|
|
30981
|
-
function
|
|
31004
|
+
function oG(e3) {
|
|
30982
31005
|
return T(l(q, e3(q)));
|
|
30983
31006
|
}
|
|
30984
|
-
function
|
|
31007
|
+
function sG(e3) {
|
|
30985
31008
|
var r3 = T(l(Z, e3(Z)));
|
|
30986
31009
|
return (function(e4, c2, l2) {
|
|
30987
31010
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30988
31011
|
});
|
|
30989
31012
|
}
|
|
30990
|
-
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", {
|
|
30991
31014
|
value: true
|
|
30992
31015
|
});
|
|
30993
31016
|
}));
|
|
@@ -31013,7 +31036,7 @@ ${c}
|
|
|
31013
31036
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31014
31037
|
Object.defineProperty(e, "__esModule", {
|
|
31015
31038
|
value: true
|
|
31016
|
-
}), 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;
|
|
31017
31040
|
var r = require_fast_equals(), c = l(require_react());
|
|
31018
31041
|
function l(e2) {
|
|
31019
31042
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31118,7 +31141,7 @@ ${c}
|
|
|
31118
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);
|
|
31119
31142
|
}
|
|
31120
31143
|
function T(e2, r2, c2, l2) {
|
|
31121
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31144
|
+
let u2 = B(e2), d2 = h(u2), f2 = cG(e2, r2), p2 = Array(e2.length);
|
|
31122
31145
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31123
31146
|
let h3 = y(f2[m2]);
|
|
31124
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;
|
|
@@ -31176,7 +31199,7 @@ ${c}
|
|
|
31176
31199
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31177
31200
|
let h2 = r2.x, _2 = r2.y;
|
|
31178
31201
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31179
|
-
let v2 =
|
|
31202
|
+
let v2 = cG(e2, f2);
|
|
31180
31203
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31181
31204
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31182
31205
|
if (b2 && m2) return g(e2);
|
|
@@ -31210,61 +31233,61 @@ ${c}
|
|
|
31210
31233
|
function G(e2) {
|
|
31211
31234
|
return e2 * 100 + "%";
|
|
31212
31235
|
}
|
|
31213
|
-
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) => {
|
|
31214
31237
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31215
31238
|
return {
|
|
31216
31239
|
left: l2,
|
|
31217
31240
|
width: d2,
|
|
31218
31241
|
height: Z(f2, e2.height, u2),
|
|
31219
|
-
top:
|
|
31242
|
+
top: $W(f2)
|
|
31220
31243
|
};
|
|
31221
|
-
},
|
|
31244
|
+
}, tG = (e2, r2, c2) => {
|
|
31222
31245
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31223
31246
|
return {
|
|
31224
31247
|
top: l2,
|
|
31225
31248
|
height: d2,
|
|
31226
31249
|
width: q(e2.left, e2.width, f2, c2),
|
|
31227
|
-
left:
|
|
31250
|
+
left: QW(u2)
|
|
31228
31251
|
};
|
|
31229
|
-
},
|
|
31252
|
+
}, nG = (e2, r2, c2) => {
|
|
31230
31253
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31231
31254
|
return {
|
|
31232
31255
|
height: u2,
|
|
31233
31256
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31234
|
-
top:
|
|
31235
|
-
left:
|
|
31257
|
+
top: $W(l2),
|
|
31258
|
+
left: QW(f2)
|
|
31236
31259
|
};
|
|
31237
|
-
},
|
|
31260
|
+
}, rG = (e2, r2, c2) => {
|
|
31238
31261
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31239
31262
|
return {
|
|
31240
31263
|
width: f2,
|
|
31241
31264
|
left: u2,
|
|
31242
31265
|
height: Z(l2, e2.height, d2),
|
|
31243
|
-
top:
|
|
31266
|
+
top: $W(l2)
|
|
31244
31267
|
};
|
|
31245
|
-
},
|
|
31246
|
-
n:
|
|
31268
|
+
}, iG = {
|
|
31269
|
+
n: eG,
|
|
31247
31270
|
ne: function() {
|
|
31248
|
-
return
|
|
31271
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31249
31272
|
},
|
|
31250
|
-
e:
|
|
31273
|
+
e: tG,
|
|
31251
31274
|
se: function() {
|
|
31252
|
-
return
|
|
31275
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31253
31276
|
},
|
|
31254
|
-
s:
|
|
31277
|
+
s: rG,
|
|
31255
31278
|
sw: function() {
|
|
31256
|
-
return
|
|
31279
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31257
31280
|
},
|
|
31258
|
-
w:
|
|
31281
|
+
w: nG,
|
|
31259
31282
|
nw: function() {
|
|
31260
|
-
return
|
|
31283
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31261
31284
|
}
|
|
31262
31285
|
};
|
|
31263
|
-
function
|
|
31264
|
-
let u2 =
|
|
31286
|
+
function aG(e2, r2, c2, l2) {
|
|
31287
|
+
let u2 = iG[e2];
|
|
31265
31288
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31266
31289
|
}
|
|
31267
|
-
function
|
|
31290
|
+
function oG(e2) {
|
|
31268
31291
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31269
31292
|
return {
|
|
31270
31293
|
transform: d2,
|
|
@@ -31277,7 +31300,7 @@ ${c}
|
|
|
31277
31300
|
position: "absolute"
|
|
31278
31301
|
};
|
|
31279
31302
|
}
|
|
31280
|
-
function
|
|
31303
|
+
function sG(e2) {
|
|
31281
31304
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31282
31305
|
return {
|
|
31283
31306
|
top: `${r2}px`,
|
|
@@ -31287,20 +31310,20 @@ ${c}
|
|
|
31287
31310
|
position: "absolute"
|
|
31288
31311
|
};
|
|
31289
31312
|
}
|
|
31290
|
-
function
|
|
31291
|
-
return r2 === "horizontal" ?
|
|
31313
|
+
function cG(e2, r2) {
|
|
31314
|
+
return r2 === "horizontal" ? uG(e2) : r2 === "vertical" ? lG(e2) : e2;
|
|
31292
31315
|
}
|
|
31293
|
-
function
|
|
31316
|
+
function lG(e2) {
|
|
31294
31317
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31295
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;
|
|
31296
31319
|
});
|
|
31297
31320
|
}
|
|
31298
|
-
function
|
|
31321
|
+
function uG(e2) {
|
|
31299
31322
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31300
31323
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31301
31324
|
});
|
|
31302
31325
|
}
|
|
31303
|
-
function
|
|
31326
|
+
function dG(e2, r2, l2, u2, f2) {
|
|
31304
31327
|
e2 || (e2 = []);
|
|
31305
31328
|
let p2 = [];
|
|
31306
31329
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31321,7 +31344,7 @@ ${c}
|
|
|
31321
31344
|
});
|
|
31322
31345
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31323
31346
|
}
|
|
31324
|
-
function
|
|
31347
|
+
function fG(e2) {
|
|
31325
31348
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31326
31349
|
"x",
|
|
31327
31350
|
"y",
|
|
@@ -31338,7 +31361,7 @@ ${c}
|
|
|
31338
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})`);
|
|
31339
31362
|
}
|
|
31340
31363
|
}
|
|
31341
|
-
function
|
|
31364
|
+
function pG(e2) {
|
|
31342
31365
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31343
31366
|
return r2 === false ? null : c2;
|
|
31344
31367
|
}
|
|
@@ -34143,7 +34166,7 @@ ${c}
|
|
|
34143
34166
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34144
34167
|
let E = useIsDragging(), O, j;
|
|
34145
34168
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34146
|
-
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;
|
|
34147
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) {
|
|
34148
34171
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34149
34172
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34162,23 +34185,23 @@ ${c}
|
|
|
34162
34185
|
});
|
|
34163
34186
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34164
34187
|
let y2 = v2;
|
|
34165
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
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 = {
|
|
34166
34189
|
lg: c.cells
|
|
34167
|
-
}, r[58] = c.cells, r[59] =
|
|
34190
|
+
}, r[58] = c.cells, r[59] = dG), fG = L, pG = S, R = false;
|
|
34168
34191
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34169
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 ? [
|
|
34170
34193
|
20,
|
|
34171
34194
|
20
|
|
34172
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
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) => {
|
|
34173
34196
|
f || l({
|
|
34174
34197
|
...c,
|
|
34175
34198
|
cells: e3
|
|
34176
34199
|
});
|
|
34177
|
-
}, 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 ? {
|
|
34178
34201
|
i: g.i,
|
|
34179
34202
|
w: g.w || 2,
|
|
34180
34203
|
h: g.h || 2
|
|
34181
|
-
} : 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) => {
|
|
34182
34205
|
O.onDragStop(), r2 && l({
|
|
34183
34206
|
...c,
|
|
34184
34207
|
cells: [
|
|
@@ -34186,15 +34209,15 @@ ${c}
|
|
|
34186
34209
|
r2
|
|
34187
34210
|
]
|
|
34188
34211
|
});
|
|
34189
|
-
}, 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) => {
|
|
34190
34213
|
O.onDragStart(u2);
|
|
34191
|
-
},
|
|
34214
|
+
}, nG = (e3, r2, c2, l2, u2) => {
|
|
34192
34215
|
O.onDragMove(u2);
|
|
34193
|
-
},
|
|
34216
|
+
}, rG = () => {
|
|
34194
34217
|
O.onDragStop();
|
|
34195
|
-
}, 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";
|
|
34196
34219
|
let E2;
|
|
34197
|
-
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) => {
|
|
34198
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, {
|
|
34199
34222
|
code: r2.code,
|
|
34200
34223
|
mode: d,
|
|
@@ -34224,14 +34247,14 @@ ${c}
|
|
|
34224
34247
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34225
34248
|
children: m2
|
|
34226
34249
|
}, r2.id);
|
|
34227
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
34228
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30],
|
|
34229
|
-
let
|
|
34230
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !==
|
|
34231
|
-
breakpoint:
|
|
34232
|
-
layouts:
|
|
34233
|
-
style:
|
|
34234
|
-
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,
|
|
34235
34258
|
allowOverlap: R,
|
|
34236
34259
|
className: z,
|
|
34237
34260
|
containerPadding: B,
|
|
@@ -34240,22 +34263,22 @@ ${c}
|
|
|
34240
34263
|
compactType: G,
|
|
34241
34264
|
preventCollision: q,
|
|
34242
34265
|
rowHeight: Z,
|
|
34243
|
-
onLayoutChange:
|
|
34244
|
-
droppingItem:
|
|
34245
|
-
onDrop:
|
|
34246
|
-
onDragStart:
|
|
34247
|
-
onDrag:
|
|
34248
|
-
onDragStop:
|
|
34249
|
-
onResizeStop:
|
|
34250
|
-
isDraggable:
|
|
34251
|
-
isDroppable:
|
|
34252
|
-
isResizable:
|
|
34253
|
-
draggableHandle:
|
|
34254
|
-
children:
|
|
34255
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] =
|
|
34256
|
-
let
|
|
34257
|
-
if (r[108] !== u || r[109] !==
|
|
34258
|
-
|
|
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");
|
|
34259
34282
|
bb0: {
|
|
34260
34283
|
let e2;
|
|
34261
34284
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34263,14 +34286,14 @@ ${c}
|
|
|
34263
34286
|
if (f) {
|
|
34264
34287
|
if (c.bordered) {
|
|
34265
34288
|
let e4;
|
|
34266
|
-
r[127] !==
|
|
34289
|
+
r[127] !== hG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34267
34290
|
className: "flex flex-1 flex-col items-center",
|
|
34268
34291
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34269
34292
|
style: L,
|
|
34270
34293
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34271
|
-
children:
|
|
34294
|
+
children: hG
|
|
34272
34295
|
})
|
|
34273
|
-
}), r[127] =
|
|
34296
|
+
}), r[127] = hG, r[128] = L, r[129] = e4) : e4 = r[129], hG = e4;
|
|
34274
34297
|
}
|
|
34275
34298
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34276
34299
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34282,9 +34305,9 @@ ${c}
|
|
|
34282
34305
|
stale: outputIsStale(e4, false),
|
|
34283
34306
|
isScrollable: false,
|
|
34284
34307
|
hidden: false
|
|
34285
|
-
}, 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, {
|
|
34286
34309
|
children: [
|
|
34287
|
-
|
|
34310
|
+
hG,
|
|
34288
34311
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34289
34312
|
className: "hidden",
|
|
34290
34313
|
children: e3.map(l2)
|
|
@@ -34295,31 +34318,31 @@ ${c}
|
|
|
34295
34318
|
}
|
|
34296
34319
|
if (c.bordered) {
|
|
34297
34320
|
let e3;
|
|
34298
|
-
r[132] ===
|
|
34321
|
+
r[132] === hG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34299
34322
|
className: "h-full overflow-auto",
|
|
34300
|
-
children:
|
|
34301
|
-
}), r[132] =
|
|
34323
|
+
children: hG
|
|
34324
|
+
}), r[132] = hG, r[133] = e3);
|
|
34302
34325
|
let c2;
|
|
34303
34326
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34304
34327
|
style: L,
|
|
34305
34328
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34306
34329
|
children: e3
|
|
34307
|
-
}), 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;
|
|
34308
34331
|
}
|
|
34309
|
-
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, {
|
|
34310
34333
|
layout: c,
|
|
34311
34334
|
setLayout: l,
|
|
34312
34335
|
isLocked: v,
|
|
34313
34336
|
setIsLocked: y
|
|
34314
|
-
}), 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];
|
|
34315
34338
|
let g2;
|
|
34316
|
-
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", {
|
|
34317
34340
|
className: g2,
|
|
34318
|
-
children:
|
|
34319
|
-
}), 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", {
|
|
34320
34343
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34321
34344
|
children: "Outputs"
|
|
34322
|
-
}), r[145] =
|
|
34345
|
+
}), r[145] = _G) : _G = r[145];
|
|
34323
34346
|
let b2;
|
|
34324
34347
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34325
34348
|
draggable: true,
|
|
@@ -34345,34 +34368,34 @@ ${c}
|
|
|
34345
34368
|
stale: outputIsStale(e3, false),
|
|
34346
34369
|
hidden: false
|
|
34347
34370
|
})
|
|
34348
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34349
|
-
}
|
|
34350
|
-
r[108] = u, r[109] =
|
|
34351
|
-
} else
|
|
34352
|
-
if (
|
|
34353
|
-
let
|
|
34354
|
-
r[150] !==
|
|
34355
|
-
className:
|
|
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", {
|
|
34378
|
+
className: gG,
|
|
34356
34379
|
children: [
|
|
34357
|
-
|
|
34358
|
-
|
|
34380
|
+
_G,
|
|
34381
|
+
vG
|
|
34359
34382
|
]
|
|
34360
|
-
}), r[150] =
|
|
34361
|
-
let
|
|
34362
|
-
r[154] !==
|
|
34363
|
-
className:
|
|
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,
|
|
34364
34387
|
children: [
|
|
34365
|
-
|
|
34366
|
-
|
|
34388
|
+
bG,
|
|
34389
|
+
CG
|
|
34367
34390
|
]
|
|
34368
|
-
}), r[154] =
|
|
34369
|
-
let
|
|
34370
|
-
return r[158] !==
|
|
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, {
|
|
34371
34394
|
children: [
|
|
34372
|
-
|
|
34373
|
-
|
|
34395
|
+
xG,
|
|
34396
|
+
wG
|
|
34374
34397
|
]
|
|
34375
|
-
}), r[158] =
|
|
34398
|
+
}), r[158] = xG, r[159] = wG, r[160] = TG) : TG = r[160], TG;
|
|
34376
34399
|
};
|
|
34377
34400
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34378
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;
|
|
@@ -34682,8 +34705,8 @@ ${c}
|
|
|
34682
34705
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34683
34706
|
onClick: () => l()
|
|
34684
34707
|
}), r[36] = l, r[37] = Z);
|
|
34685
|
-
let
|
|
34686
|
-
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", {
|
|
34687
34710
|
className: S,
|
|
34688
34711
|
children: [
|
|
34689
34712
|
M,
|
|
@@ -34691,7 +34714,7 @@ ${c}
|
|
|
34691
34714
|
q,
|
|
34692
34715
|
Z
|
|
34693
34716
|
]
|
|
34694
|
-
}), 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;
|
|
34695
34718
|
};
|
|
34696
34719
|
function isSidebarCell(e) {
|
|
34697
34720
|
var _a5;
|
|
@@ -36697,29 +36720,29 @@ ${c}
|
|
|
36697
36720
|
M
|
|
36698
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(), [
|
|
36699
36722
|
j
|
|
36700
|
-
]),
|
|
36723
|
+
]), QW = useMeasuringConfiguration(p), { droppableRects: $W, measureDroppableContainers: eG, measuringScheduled: tG } = useDroppableMeasuring(Z, {
|
|
36701
36724
|
dragging: w,
|
|
36702
36725
|
dependencies: [
|
|
36703
36726
|
O.x,
|
|
36704
36727
|
O.y
|
|
36705
36728
|
],
|
|
36706
|
-
config:
|
|
36707
|
-
}),
|
|
36729
|
+
config: QW.droppable
|
|
36730
|
+
}), nG = useCachedNode(E, T), rG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36708
36731
|
H
|
|
36709
|
-
]),
|
|
36732
|
+
]), iG = FG(), aG = useInitialRect(nG, QW.draggable.measure);
|
|
36710
36733
|
useLayoutShiftScrollCompensation({
|
|
36711
36734
|
activeNode: T == null ? null : E.get(T),
|
|
36712
|
-
config:
|
|
36713
|
-
initialRect:
|
|
36714
|
-
measure:
|
|
36735
|
+
config: iG.layoutShiftCompensation,
|
|
36736
|
+
initialRect: aG,
|
|
36737
|
+
measure: QW.draggable.measure
|
|
36715
36738
|
});
|
|
36716
|
-
let
|
|
36739
|
+
let oG = useRect(nG, QW.draggable.measure, aG), sG = useRect(nG ? nG.parentElement : null), cG = (0, import_react.useRef)({
|
|
36717
36740
|
activatorEvent: null,
|
|
36718
36741
|
active: null,
|
|
36719
|
-
activeNode:
|
|
36742
|
+
activeNode: nG,
|
|
36720
36743
|
collisionRect: null,
|
|
36721
36744
|
collisions: null,
|
|
36722
|
-
droppableRects:
|
|
36745
|
+
droppableRects: $W,
|
|
36723
36746
|
draggableNodes: E,
|
|
36724
36747
|
draggingNode: null,
|
|
36725
36748
|
draggingNodeRect: null,
|
|
@@ -36727,45 +36750,45 @@ ${c}
|
|
|
36727
36750
|
over: null,
|
|
36728
36751
|
scrollableAncestors: [],
|
|
36729
36752
|
scrollAdjustedTranslate: null
|
|
36730
|
-
}),
|
|
36731
|
-
measure:
|
|
36732
|
-
}),
|
|
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, {
|
|
36733
36756
|
transform: {
|
|
36734
|
-
x: O.x -
|
|
36735
|
-
y: O.y -
|
|
36757
|
+
x: O.x - mG.x,
|
|
36758
|
+
y: O.y - mG.y,
|
|
36736
36759
|
scaleX: 1,
|
|
36737
36760
|
scaleY: 1
|
|
36738
36761
|
},
|
|
36739
36762
|
activatorEvent: H,
|
|
36740
36763
|
active: L,
|
|
36741
|
-
activeNodeRect:
|
|
36742
|
-
containerNodeRect:
|
|
36743
|
-
draggingNodeRect:
|
|
36744
|
-
over:
|
|
36745
|
-
overlayNodeRect:
|
|
36746
|
-
scrollableAncestors:
|
|
36747
|
-
scrollableAncestorRects:
|
|
36748
|
-
windowRect:
|
|
36749
|
-
}),
|
|
36750
|
-
|
|
36751
|
-
]),
|
|
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({
|
|
36752
36775
|
active: L,
|
|
36753
|
-
collisionRect:
|
|
36754
|
-
droppableRects:
|
|
36776
|
+
collisionRect: wG,
|
|
36777
|
+
droppableRects: $W,
|
|
36755
36778
|
droppableContainers: Z,
|
|
36756
|
-
pointerCoordinates:
|
|
36757
|
-
}) : 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) => {
|
|
36758
36781
|
let { sensor: c2, options: l2 } = r2;
|
|
36759
36782
|
if (R.current == null) return;
|
|
36760
36783
|
let u2 = E.get(R.current);
|
|
36761
36784
|
if (!u2) return;
|
|
36762
36785
|
let d2 = e2.nativeEvent;
|
|
36763
|
-
|
|
36786
|
+
AG.current = new c2({
|
|
36764
36787
|
active: R.current,
|
|
36765
36788
|
activeNode: u2,
|
|
36766
36789
|
event: d2,
|
|
36767
36790
|
options: l2,
|
|
36768
|
-
context:
|
|
36791
|
+
context: cG,
|
|
36769
36792
|
onAbort(e3) {
|
|
36770
36793
|
if (!E.get(e3)) return;
|
|
36771
36794
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36810,7 +36833,7 @@ ${c}
|
|
|
36810
36833
|
}), v({
|
|
36811
36834
|
type: "onDragStart",
|
|
36812
36835
|
event: u3
|
|
36813
|
-
}), B(
|
|
36836
|
+
}), B(AG.current), W(d2);
|
|
36814
36837
|
});
|
|
36815
36838
|
},
|
|
36816
36839
|
onMove(e3) {
|
|
@@ -36824,7 +36847,7 @@ ${c}
|
|
|
36824
36847
|
});
|
|
36825
36848
|
function f2(e3) {
|
|
36826
36849
|
return async function() {
|
|
36827
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36850
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = cG.current, f3 = null;
|
|
36828
36851
|
if (r3 && u3) {
|
|
36829
36852
|
let { cancelDrop: p2 } = G.current;
|
|
36830
36853
|
f3 = {
|
|
@@ -36838,7 +36861,7 @@ ${c}
|
|
|
36838
36861
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36839
36862
|
_({
|
|
36840
36863
|
type: e3
|
|
36841
|
-
}), S(Status.Uninitialized),
|
|
36864
|
+
}), S(Status.Uninitialized), OG(null), B(null), W(null), AG.current = null;
|
|
36842
36865
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36843
36866
|
if (f3) {
|
|
36844
36867
|
let e4 = G.current[r4];
|
|
@@ -36852,7 +36875,7 @@ ${c}
|
|
|
36852
36875
|
}
|
|
36853
36876
|
}, [
|
|
36854
36877
|
E
|
|
36855
|
-
]),
|
|
36878
|
+
]), MG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36856
36879
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36857
36880
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36858
36881
|
let f2 = {
|
|
@@ -36860,26 +36883,26 @@ ${c}
|
|
|
36860
36883
|
};
|
|
36861
36884
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36862
36885
|
capturedBy: r2.sensor
|
|
36863
|
-
}, R.current = l2,
|
|
36886
|
+
}, R.current = l2, jG(c2, r2));
|
|
36864
36887
|
}, [
|
|
36865
36888
|
E,
|
|
36866
|
-
|
|
36889
|
+
jG
|
|
36867
36890
|
]));
|
|
36868
36891
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36869
|
-
|
|
36892
|
+
oG && b === Status.Initializing && S(Status.Initialized);
|
|
36870
36893
|
}, [
|
|
36871
|
-
|
|
36894
|
+
oG,
|
|
36872
36895
|
b
|
|
36873
36896
|
]), (0, import_react.useEffect)(() => {
|
|
36874
|
-
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;
|
|
36875
36898
|
if (!r2 || !c2) return;
|
|
36876
36899
|
let d2 = {
|
|
36877
36900
|
active: r2,
|
|
36878
36901
|
activatorEvent: c2,
|
|
36879
36902
|
collisions: l2,
|
|
36880
36903
|
delta: {
|
|
36881
|
-
x:
|
|
36882
|
-
y:
|
|
36904
|
+
x: CG.x,
|
|
36905
|
+
y: CG.y
|
|
36883
36906
|
},
|
|
36884
36907
|
over: u2
|
|
36885
36908
|
};
|
|
@@ -36890,12 +36913,12 @@ ${c}
|
|
|
36890
36913
|
});
|
|
36891
36914
|
});
|
|
36892
36915
|
}, [
|
|
36893
|
-
|
|
36894
|
-
|
|
36916
|
+
CG.x,
|
|
36917
|
+
CG.y
|
|
36895
36918
|
]), (0, import_react.useEffect)(() => {
|
|
36896
|
-
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;
|
|
36897
36920
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36898
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36921
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(EG), p2 = f2 && f2.rect.current ? {
|
|
36899
36922
|
id: f2.id,
|
|
36900
36923
|
rect: f2.rect.current,
|
|
36901
36924
|
data: f2.data,
|
|
@@ -36911,127 +36934,127 @@ ${c}
|
|
|
36911
36934
|
over: p2
|
|
36912
36935
|
};
|
|
36913
36936
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36914
|
-
|
|
36937
|
+
OG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36915
36938
|
type: "onDragOver",
|
|
36916
36939
|
event: m2
|
|
36917
36940
|
});
|
|
36918
36941
|
});
|
|
36919
36942
|
}, [
|
|
36920
|
-
|
|
36943
|
+
EG
|
|
36921
36944
|
]), useIsomorphicLayoutEffect(() => {
|
|
36922
|
-
|
|
36945
|
+
cG.current = {
|
|
36923
36946
|
activatorEvent: H,
|
|
36924
36947
|
active: L,
|
|
36925
|
-
activeNode:
|
|
36926
|
-
collisionRect:
|
|
36927
|
-
collisions:
|
|
36928
|
-
droppableRects:
|
|
36948
|
+
activeNode: nG,
|
|
36949
|
+
collisionRect: wG,
|
|
36950
|
+
collisions: TG,
|
|
36951
|
+
droppableRects: $W,
|
|
36929
36952
|
draggableNodes: E,
|
|
36930
|
-
draggingNode:
|
|
36931
|
-
draggingNodeRect:
|
|
36953
|
+
draggingNode: dG,
|
|
36954
|
+
draggingNodeRect: fG,
|
|
36932
36955
|
droppableContainers: j,
|
|
36933
|
-
over:
|
|
36934
|
-
scrollableAncestors:
|
|
36935
|
-
scrollAdjustedTranslate:
|
|
36956
|
+
over: DG,
|
|
36957
|
+
scrollableAncestors: gG,
|
|
36958
|
+
scrollAdjustedTranslate: CG
|
|
36936
36959
|
}, I.current = {
|
|
36937
|
-
initial:
|
|
36938
|
-
translated:
|
|
36960
|
+
initial: fG,
|
|
36961
|
+
translated: wG
|
|
36939
36962
|
};
|
|
36940
36963
|
}, [
|
|
36941
36964
|
L,
|
|
36942
|
-
|
|
36943
|
-
|
|
36944
|
-
|
|
36965
|
+
nG,
|
|
36966
|
+
TG,
|
|
36967
|
+
wG,
|
|
36945
36968
|
E,
|
|
36946
|
-
oG,
|
|
36947
|
-
sG,
|
|
36948
|
-
JW,
|
|
36949
|
-
j,
|
|
36950
|
-
SG,
|
|
36951
36969
|
dG,
|
|
36952
|
-
|
|
36970
|
+
fG,
|
|
36971
|
+
$W,
|
|
36972
|
+
j,
|
|
36973
|
+
DG,
|
|
36974
|
+
gG,
|
|
36975
|
+
CG
|
|
36953
36976
|
]), useAutoScroller({
|
|
36954
|
-
|
|
36977
|
+
...iG,
|
|
36955
36978
|
delta: O,
|
|
36956
|
-
draggingRect:
|
|
36957
|
-
pointerCoordinates:
|
|
36958
|
-
scrollableAncestors:
|
|
36959
|
-
scrollableAncestorRects:
|
|
36979
|
+
draggingRect: wG,
|
|
36980
|
+
pointerCoordinates: yG,
|
|
36981
|
+
scrollableAncestors: gG,
|
|
36982
|
+
scrollableAncestorRects: _G
|
|
36960
36983
|
});
|
|
36961
|
-
let
|
|
36984
|
+
let NG = (0, import_react.useMemo)(() => ({
|
|
36962
36985
|
active: L,
|
|
36963
|
-
activeNode:
|
|
36964
|
-
activeNodeRect:
|
|
36986
|
+
activeNode: nG,
|
|
36987
|
+
activeNodeRect: oG,
|
|
36965
36988
|
activatorEvent: H,
|
|
36966
|
-
collisions:
|
|
36967
|
-
containerNodeRect:
|
|
36968
|
-
dragOverlay:
|
|
36989
|
+
collisions: TG,
|
|
36990
|
+
containerNodeRect: sG,
|
|
36991
|
+
dragOverlay: uG,
|
|
36969
36992
|
draggableNodes: E,
|
|
36970
36993
|
droppableContainers: j,
|
|
36971
|
-
droppableRects:
|
|
36972
|
-
over:
|
|
36973
|
-
measureDroppableContainers:
|
|
36974
|
-
scrollableAncestors:
|
|
36975
|
-
scrollableAncestorRects:
|
|
36976
|
-
measuringConfiguration:
|
|
36977
|
-
measuringScheduled:
|
|
36978
|
-
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
|
|
36979
37002
|
}), [
|
|
36980
37003
|
L,
|
|
36981
|
-
ZW,
|
|
36982
|
-
tG,
|
|
36983
|
-
H,
|
|
36984
|
-
bG,
|
|
36985
37004
|
nG,
|
|
36986
|
-
|
|
37005
|
+
oG,
|
|
37006
|
+
H,
|
|
37007
|
+
TG,
|
|
37008
|
+
sG,
|
|
37009
|
+
uG,
|
|
36987
37010
|
E,
|
|
36988
37011
|
j,
|
|
36989
|
-
|
|
36990
|
-
|
|
36991
|
-
|
|
36992
|
-
|
|
36993
|
-
|
|
36994
|
-
|
|
36995
|
-
|
|
36996
|
-
|
|
36997
|
-
]),
|
|
37012
|
+
$W,
|
|
37013
|
+
DG,
|
|
37014
|
+
eG,
|
|
37015
|
+
gG,
|
|
37016
|
+
_G,
|
|
37017
|
+
QW,
|
|
37018
|
+
tG,
|
|
37019
|
+
hG
|
|
37020
|
+
]), PG = (0, import_react.useMemo)(() => ({
|
|
36998
37021
|
activatorEvent: H,
|
|
36999
|
-
activators:
|
|
37022
|
+
activators: MG,
|
|
37000
37023
|
active: L,
|
|
37001
|
-
activeNodeRect:
|
|
37024
|
+
activeNodeRect: oG,
|
|
37002
37025
|
ariaDescribedById: {
|
|
37003
37026
|
draggable: q
|
|
37004
37027
|
},
|
|
37005
37028
|
dispatch: _,
|
|
37006
37029
|
draggableNodes: E,
|
|
37007
|
-
over:
|
|
37008
|
-
measureDroppableContainers:
|
|
37030
|
+
over: DG,
|
|
37031
|
+
measureDroppableContainers: eG
|
|
37009
37032
|
}), [
|
|
37010
37033
|
H,
|
|
37011
|
-
|
|
37034
|
+
MG,
|
|
37012
37035
|
L,
|
|
37013
|
-
|
|
37036
|
+
oG,
|
|
37014
37037
|
_,
|
|
37015
37038
|
q,
|
|
37016
37039
|
E,
|
|
37017
|
-
|
|
37018
|
-
|
|
37040
|
+
DG,
|
|
37041
|
+
eG
|
|
37019
37042
|
]);
|
|
37020
37043
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37021
37044
|
value: y
|
|
37022
37045
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37023
|
-
value:
|
|
37046
|
+
value: PG
|
|
37024
37047
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37025
|
-
value:
|
|
37048
|
+
value: NG
|
|
37026
37049
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37027
|
-
value:
|
|
37050
|
+
value: kG
|
|
37028
37051
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37029
37052
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37030
37053
|
})), import_react.createElement(Accessibility, {
|
|
37031
37054
|
...c,
|
|
37032
37055
|
hiddenTextDescribedById: q
|
|
37033
37056
|
}));
|
|
37034
|
-
function
|
|
37057
|
+
function FG() {
|
|
37035
37058
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37036
37059
|
return typeof l == "object" ? {
|
|
37037
37060
|
...l,
|
|
@@ -37559,7 +37582,7 @@ ${c}
|
|
|
37559
37582
|
updateMeasurementsFor: I,
|
|
37560
37583
|
...m
|
|
37561
37584
|
}
|
|
37562
|
-
}), { 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({
|
|
37563
37586
|
id: f,
|
|
37564
37587
|
data: M,
|
|
37565
37588
|
attributes: {
|
|
@@ -37567,60 +37590,60 @@ ${c}
|
|
|
37567
37590
|
...c
|
|
37568
37591
|
},
|
|
37569
37592
|
disabled: O.draggable
|
|
37570
|
-
}),
|
|
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)({
|
|
37571
37594
|
rects: S,
|
|
37572
37595
|
activeNodeRect: G,
|
|
37573
37596
|
activeIndex: v,
|
|
37574
37597
|
overIndex: w,
|
|
37575
37598
|
index: j
|
|
37576
|
-
}) : null,
|
|
37599
|
+
}) : null, cG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37577
37600
|
id: f,
|
|
37578
37601
|
items: g,
|
|
37579
37602
|
activeIndex: v,
|
|
37580
37603
|
overIndex: w
|
|
37581
|
-
}) : j,
|
|
37582
|
-
activeId:
|
|
37604
|
+
}) : j, lG = H == null ? void 0 : H.id, uG = (0, import_react.useRef)({
|
|
37605
|
+
activeId: lG,
|
|
37583
37606
|
items: g,
|
|
37584
|
-
newIndex:
|
|
37607
|
+
newIndex: cG,
|
|
37585
37608
|
containerId: _
|
|
37586
|
-
}),
|
|
37609
|
+
}), dG = g !== uG.current.items, fG = r({
|
|
37587
37610
|
active: H,
|
|
37588
37611
|
containerId: _,
|
|
37589
|
-
isDragging:
|
|
37590
|
-
isSorting:
|
|
37612
|
+
isDragging: $W,
|
|
37613
|
+
isSorting: iG,
|
|
37591
37614
|
id: f,
|
|
37592
37615
|
index: j,
|
|
37593
37616
|
items: g,
|
|
37594
|
-
newIndex:
|
|
37595
|
-
previousItems:
|
|
37596
|
-
previousContainerId:
|
|
37617
|
+
newIndex: uG.current.newIndex,
|
|
37618
|
+
previousItems: uG.current.items,
|
|
37619
|
+
previousContainerId: uG.current.containerId,
|
|
37597
37620
|
transition: h,
|
|
37598
|
-
wasDragging:
|
|
37599
|
-
}),
|
|
37600
|
-
disabled: !
|
|
37621
|
+
wasDragging: uG.current.activeId != null
|
|
37622
|
+
}), pG = useDerivedTransform({
|
|
37623
|
+
disabled: !fG,
|
|
37601
37624
|
index: j,
|
|
37602
37625
|
node: R,
|
|
37603
37626
|
rect: L
|
|
37604
37627
|
});
|
|
37605
37628
|
return (0, import_react.useEffect)(() => {
|
|
37606
|
-
|
|
37629
|
+
iG && uG.current.newIndex !== cG && (uG.current.newIndex = cG), _ !== uG.current.containerId && (uG.current.containerId = _), g !== uG.current.items && (uG.current.items = g);
|
|
37607
37630
|
}, [
|
|
37608
|
-
|
|
37609
|
-
|
|
37631
|
+
iG,
|
|
37632
|
+
cG,
|
|
37610
37633
|
_,
|
|
37611
37634
|
g
|
|
37612
37635
|
]), (0, import_react.useEffect)(() => {
|
|
37613
|
-
if (
|
|
37614
|
-
if (
|
|
37615
|
-
|
|
37636
|
+
if (lG === uG.current.activeId) return;
|
|
37637
|
+
if (lG != null && uG.current.activeId == null) {
|
|
37638
|
+
uG.current.activeId = lG;
|
|
37616
37639
|
return;
|
|
37617
37640
|
}
|
|
37618
37641
|
let e2 = setTimeout(() => {
|
|
37619
|
-
|
|
37642
|
+
uG.current.activeId = lG;
|
|
37620
37643
|
}, 50);
|
|
37621
37644
|
return () => clearTimeout(e2);
|
|
37622
37645
|
}, [
|
|
37623
|
-
|
|
37646
|
+
lG
|
|
37624
37647
|
]), {
|
|
37625
37648
|
active: H,
|
|
37626
37649
|
activeIndex: v,
|
|
@@ -37628,25 +37651,25 @@ ${c}
|
|
|
37628
37651
|
data: M,
|
|
37629
37652
|
rect: L,
|
|
37630
37653
|
index: j,
|
|
37631
|
-
newIndex:
|
|
37654
|
+
newIndex: cG,
|
|
37632
37655
|
items: g,
|
|
37633
37656
|
isOver: z,
|
|
37634
|
-
isSorting:
|
|
37635
|
-
isDragging:
|
|
37636
|
-
listeners:
|
|
37657
|
+
isSorting: iG,
|
|
37658
|
+
isDragging: $W,
|
|
37659
|
+
listeners: QW,
|
|
37637
37660
|
node: R,
|
|
37638
37661
|
overIndex: w,
|
|
37639
|
-
over:
|
|
37640
|
-
setNodeRef:
|
|
37641
|
-
setActivatorNodeRef:
|
|
37662
|
+
over: eG,
|
|
37663
|
+
setNodeRef: rG,
|
|
37664
|
+
setActivatorNodeRef: tG,
|
|
37642
37665
|
setDroppableNodeRef: B,
|
|
37643
37666
|
setDraggableNodeRef: Z,
|
|
37644
|
-
transform:
|
|
37645
|
-
transition:
|
|
37667
|
+
transform: pG ?? sG,
|
|
37668
|
+
transition: mG()
|
|
37646
37669
|
};
|
|
37647
|
-
function
|
|
37648
|
-
if (
|
|
37649
|
-
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({
|
|
37650
37673
|
...h,
|
|
37651
37674
|
property: transitionProperty
|
|
37652
37675
|
});
|
|
@@ -37948,13 +37971,13 @@ ${c}
|
|
|
37948
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];
|
|
37949
37972
|
let Z = q;
|
|
37950
37973
|
if (!v && !g) return Z;
|
|
37951
|
-
let
|
|
37952
|
-
r[46] === Z ?
|
|
37974
|
+
let QW;
|
|
37975
|
+
r[46] === Z ? QW = r[47] : (QW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37953
37976
|
asChild: true,
|
|
37954
37977
|
children: Z
|
|
37955
|
-
}), r[46] = Z, r[47] =
|
|
37956
|
-
let
|
|
37957
|
-
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, {
|
|
37958
37981
|
onSelect: v,
|
|
37959
37982
|
children: [
|
|
37960
37983
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37962,11 +37985,11 @@ ${c}
|
|
|
37962
37985
|
}),
|
|
37963
37986
|
"Add cell"
|
|
37964
37987
|
]
|
|
37965
|
-
}), r[48] = v, r[49] =
|
|
37966
|
-
let
|
|
37967
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37968
|
-
let
|
|
37969
|
-
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, {
|
|
37970
37993
|
variant: "danger",
|
|
37971
37994
|
onSelect: g,
|
|
37972
37995
|
children: [
|
|
@@ -37975,22 +37998,22 @@ ${c}
|
|
|
37975
37998
|
}),
|
|
37976
37999
|
"Delete cell"
|
|
37977
38000
|
]
|
|
37978
|
-
}), r[51] = g, r[52] =
|
|
37979
|
-
let
|
|
37980
|
-
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, {
|
|
37981
38004
|
children: [
|
|
37982
|
-
|
|
37983
|
-
|
|
37984
|
-
|
|
38005
|
+
$W,
|
|
38006
|
+
eG,
|
|
38007
|
+
tG
|
|
37985
38008
|
]
|
|
37986
|
-
}), r[53] =
|
|
37987
|
-
let
|
|
37988
|
-
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, {
|
|
37989
38012
|
children: [
|
|
37990
|
-
|
|
37991
|
-
|
|
38013
|
+
QW,
|
|
38014
|
+
nG
|
|
37992
38015
|
]
|
|
37993
|
-
}), r[56] =
|
|
38016
|
+
}), r[56] = QW, r[57] = nG, r[58] = rG) : rG = r[58], rG;
|
|
37994
38017
|
}, InsertCellLine = (e) => {
|
|
37995
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;
|
|
37996
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);
|
|
@@ -38044,10 +38067,10 @@ ${c}
|
|
|
38044
38067
|
...B,
|
|
38045
38068
|
...m
|
|
38046
38069
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38047
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35",
|
|
38048
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
38049
|
-
let
|
|
38050
|
-
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", {
|
|
38051
38074
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38052
38075
|
style: {
|
|
38053
38076
|
transform: `scale(${I})`,
|
|
@@ -38063,14 +38086,14 @@ ${c}
|
|
|
38063
38086
|
output: c.output,
|
|
38064
38087
|
stale: outputIsStale(c, false)
|
|
38065
38088
|
})
|
|
38066
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38067
|
-
let
|
|
38068
|
-
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", {
|
|
38069
38092
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38070
38093
|
"aria-hidden": true
|
|
38071
|
-
}), r[37] = z, r[38] =
|
|
38072
|
-
let
|
|
38073
|
-
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, {
|
|
38074
38097
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38075
38098
|
className: "text-xs opacity-80",
|
|
38076
38099
|
children: R.description
|
|
@@ -38082,19 +38105,19 @@ ${c}
|
|
|
38082
38105
|
className: "h-3.5 w-3.5"
|
|
38083
38106
|
})
|
|
38084
38107
|
})
|
|
38085
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38086
|
-
let
|
|
38087
|
-
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", {
|
|
38088
38111
|
ref: f,
|
|
38089
|
-
className:
|
|
38112
|
+
className: $W,
|
|
38090
38113
|
style: W,
|
|
38091
38114
|
...d,
|
|
38092
38115
|
children: [
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38116
|
+
eG,
|
|
38117
|
+
tG,
|
|
38118
|
+
nG
|
|
38096
38119
|
]
|
|
38097
|
-
}), 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;
|
|
38098
38121
|
}, MiniCodePreview = (e) => {
|
|
38099
38122
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38100
38123
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38134,7 +38157,7 @@ ${c}
|
|
|
38134
38157
|
function _temp2$2(e) {
|
|
38135
38158
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38136
38159
|
}
|
|
38137
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38160
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DSh8B_vT.js"));
|
|
38138
38161
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38139
38162
|
var _a5;
|
|
38140
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), [
|
|
@@ -38519,7 +38542,7 @@ ${c}
|
|
|
38519
38542
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38520
38543
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38521
38544
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38522
|
-
let H, W, G, q, Z,
|
|
38545
|
+
let H, W, G, q, Z, QW, $W, eG, tG, nG;
|
|
38523
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) {
|
|
38524
38547
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38525
38548
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38565,11 +38588,11 @@ ${c}
|
|
|
38565
38588
|
})
|
|
38566
38589
|
})
|
|
38567
38590
|
]
|
|
38568
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c,
|
|
38569
|
-
let
|
|
38570
|
-
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 ? {
|
|
38571
38594
|
maxHeight: "none"
|
|
38572
|
-
} : void 0, r[44] = d, r[45] =
|
|
38595
|
+
} : void 0, r[44] = d, r[45] = tG), nG = e2.map((e3, r2) => {
|
|
38573
38596
|
if (e3.channel === "pdb") return null;
|
|
38574
38597
|
if (e3.channel === "stdin") {
|
|
38575
38598
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38598,36 +38621,36 @@ ${c}
|
|
|
38598
38621
|
wrapText: l
|
|
38599
38622
|
})
|
|
38600
38623
|
}, r2);
|
|
38601
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] =
|
|
38602
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38603
|
-
let
|
|
38604
|
-
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, {
|
|
38605
38628
|
value: S,
|
|
38606
38629
|
cellId: w,
|
|
38607
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"
|
|
38608
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38609
|
-
let
|
|
38610
|
-
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", {
|
|
38611
38634
|
title: G,
|
|
38612
38635
|
"data-testid": q,
|
|
38613
38636
|
ref: Z,
|
|
38614
|
-
...
|
|
38615
|
-
tabIndex:
|
|
38616
|
-
className:
|
|
38617
|
-
style:
|
|
38637
|
+
...QW,
|
|
38638
|
+
tabIndex: $W,
|
|
38639
|
+
className: eG,
|
|
38640
|
+
style: tG,
|
|
38618
38641
|
children: [
|
|
38619
|
-
|
|
38620
|
-
|
|
38642
|
+
nG,
|
|
38643
|
+
rG
|
|
38621
38644
|
]
|
|
38622
|
-
}), r[49] =
|
|
38623
|
-
let
|
|
38624
|
-
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", {
|
|
38625
38648
|
className: H,
|
|
38626
38649
|
children: [
|
|
38627
38650
|
W,
|
|
38628
|
-
|
|
38651
|
+
iG
|
|
38629
38652
|
]
|
|
38630
|
-
}), 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;
|
|
38631
38654
|
}, StdInput = (e) => {
|
|
38632
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;
|
|
38633
38656
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -39640,8 +39663,8 @@ ${c}
|
|
|
39640
39663
|
r[0] === c ? m = r[1] : (m = (e2) => e2.cellRuntime[c], r[0] = c, r[1] = m);
|
|
39641
39664
|
let h = m, g;
|
|
39642
39665
|
r[2] === h ? g = r[3] : (g = selectAtom(notebookAtom, h), r[2] = h, r[3] = g);
|
|
39643
|
-
let _ = useAtomValue(g);
|
|
39644
|
-
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !(_ == null ? void 0 : _.output)) {
|
|
39666
|
+
let _ = useAtomValue(g), v = useAtomValue(islandsHydratedAtom);
|
|
39667
|
+
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !v || !(_ == null ? void 0 : _.output)) {
|
|
39645
39668
|
let e2;
|
|
39646
39669
|
return r[4] === d ? e2 = r[5] : (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
39647
39670
|
ref: p,
|
|
@@ -39655,30 +39678,30 @@ ${c}
|
|
|
39655
39678
|
ref: p
|
|
39656
39679
|
}), r[6] = e2) : e2 = r[6], e2;
|
|
39657
39680
|
}
|
|
39658
|
-
let v;
|
|
39659
|
-
r[7] === _.output ? v = r[8] : (v = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39660
|
-
message: _.output
|
|
39661
|
-
}), r[7] = _.output, r[8] = v);
|
|
39662
39681
|
let y;
|
|
39663
|
-
r[
|
|
39664
|
-
|
|
39665
|
-
}), r[
|
|
39682
|
+
r[7] === _.output ? y = r[8] : (y = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39683
|
+
message: _.output
|
|
39684
|
+
}), r[7] = _.output, r[8] = y);
|
|
39666
39685
|
let b;
|
|
39667
|
-
r[
|
|
39686
|
+
r[9] === _ ? b = r[10] : (b = (0, import_jsx_runtime.jsx)(RunningIndicator, {
|
|
39687
|
+
state: _
|
|
39688
|
+
}), r[9] = _, r[10] = b);
|
|
39689
|
+
let S;
|
|
39690
|
+
r[11] !== c || r[12] !== l || r[13] !== f ? (S = (0, import_jsx_runtime.jsx)(IslandControls, {
|
|
39668
39691
|
cellId: c,
|
|
39669
39692
|
codeCallback: l,
|
|
39670
39693
|
visible: f
|
|
39671
|
-
}), r[11] = c, r[12] = l, r[13] = f, r[14] =
|
|
39672
|
-
let
|
|
39673
|
-
return r[15] !==
|
|
39694
|
+
}), r[11] = c, r[12] = l, r[13] = f, r[14] = S) : S = r[14];
|
|
39695
|
+
let w;
|
|
39696
|
+
return r[15] !== y || r[16] !== b || r[17] !== S ? (w = (0, import_jsx_runtime.jsxs)("div", {
|
|
39674
39697
|
ref: p,
|
|
39675
39698
|
className: "relative min-h-6",
|
|
39676
39699
|
children: [
|
|
39677
|
-
v,
|
|
39678
39700
|
y,
|
|
39679
|
-
b
|
|
39701
|
+
b,
|
|
39702
|
+
S
|
|
39680
39703
|
]
|
|
39681
|
-
}), r[15] =
|
|
39704
|
+
}), r[15] = y, r[16] = b, r[17] = S, r[18] = w) : w = r[18], w;
|
|
39682
39705
|
};
|
|
39683
39706
|
function useSyncStatusToIsland(e, r) {
|
|
39684
39707
|
let c = (0, import_compiler_runtime.c)(4), l, u;
|
|
@@ -39832,9 +39855,7 @@ ${c}
|
|
|
39832
39855
|
let e = this.root;
|
|
39833
39856
|
this.root = void 0, e && queueMicrotask(() => e.unmount());
|
|
39834
39857
|
}
|
|
39835
|
-
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2);
|
|
39836
|
-
const islandsInitializedAtom = atom(false), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
39837
|
-
var didToast = false, toastElement;
|
|
39858
|
+
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2), didToast = false, toastElement;
|
|
39838
39859
|
function toastIslandsLoading() {
|
|
39839
39860
|
didToast || (didToast = true, toastElement = document.createElement("div"), toastElement.classList.add("marimo-islands-loading-toast"), toastElement.textContent = "\u26A1 reactivity initializing...", toastElement.style.position = "fixed", toastElement.style.top = "0.5rem", toastElement.style.left = "50%", toastElement.style.transform = "translateX(-50%)", toastElement.style.zIndex = "1000", toastElement.style.backgroundColor = "#0f172a", toastElement.style.color = "#f8fafc", toastElement.style.padding = "0.25rem 0.5rem", toastElement.style.borderRadius = "0.5rem", toastElement.style.fontSize = "0.875rem", document.body.append(toastElement));
|
|
39840
39861
|
}
|
|
@@ -39843,7 +39864,7 @@ ${c}
|
|
|
39843
39864
|
}
|
|
39844
39865
|
async function initializeIslands(e) {
|
|
39845
39866
|
let r = e.store || store, c = e.root || document, l = e.bridge;
|
|
39846
|
-
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), e.autoInitializePlugins !== false && initializePlugins();
|
|
39867
|
+
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), r.set(islandsPendingInitialRunsAtom, null), e.autoInitializePlugins !== false && initializePlugins();
|
|
39847
39868
|
let u = Array.from(c.querySelectorAll(ISLAND_TAG_NAMES.ISLAND));
|
|
39848
39869
|
if (u.length === 0) {
|
|
39849
39870
|
Logger.log("No islands found, skipping initialization");
|
|
@@ -39863,19 +39884,19 @@ ${c}
|
|
|
39863
39884
|
dismissIslandsLoadingToast();
|
|
39864
39885
|
for (let e3 of l2) e3.style.removeProperty("opacity");
|
|
39865
39886
|
}
|
|
39866
|
-
}), l.consumeMessages((e2) => {
|
|
39867
|
-
handleMessage(e2, d);
|
|
39887
|
+
}), l.consumeMessages(({ message: e2, sessionGeneration: c2 }) => {
|
|
39888
|
+
handleMessage(e2, d, r, c2);
|
|
39868
39889
|
}), document.addEventListener(MarimoValueInputEvent.TYPE, () => {
|
|
39869
39890
|
r.set(userTriedToInteractWithIslandsAtom, true);
|
|
39870
39891
|
}, {
|
|
39871
39892
|
once: true
|
|
39872
39893
|
}), RuntimeState.INSTANCE.start(l.sendComponentValues);
|
|
39873
39894
|
}
|
|
39874
|
-
function handleMessage(e, r) {
|
|
39895
|
+
function handleMessage(e, r, c, l) {
|
|
39875
39896
|
var _a5;
|
|
39876
39897
|
try {
|
|
39877
|
-
let
|
|
39878
|
-
switch (Logger.debug("Islands received message:",
|
|
39898
|
+
let u = jsonParseWithSpecialChar(e);
|
|
39899
|
+
switch (Logger.debug("Islands received message:", u.op), u.op) {
|
|
39879
39900
|
case "banner":
|
|
39880
39901
|
case "missing-package-alert":
|
|
39881
39902
|
case "installing-package-alert":
|
|
@@ -39897,7 +39918,6 @@ ${c}
|
|
|
39897
39918
|
case "storage-download-ready":
|
|
39898
39919
|
case "secret-keys-result":
|
|
39899
39920
|
case "startup-logs":
|
|
39900
|
-
case "completed-run":
|
|
39901
39921
|
case "interrupted":
|
|
39902
39922
|
case "reconnected":
|
|
39903
39923
|
case "cache-cleared":
|
|
@@ -39905,8 +39925,15 @@ ${c}
|
|
|
39905
39925
|
case "kernel-startup-error":
|
|
39906
39926
|
case "notebook-document-transaction":
|
|
39907
39927
|
return;
|
|
39928
|
+
case "completed-run":
|
|
39929
|
+
c.set(islandsPendingInitialRunsAtom, (e2) => {
|
|
39930
|
+
if (!(e2 == null ? void 0 : e2.has(l))) return e2;
|
|
39931
|
+
let r2 = new Set(e2);
|
|
39932
|
+
return r2.delete(l), r2;
|
|
39933
|
+
});
|
|
39934
|
+
return;
|
|
39908
39935
|
case "kernel-ready":
|
|
39909
|
-
handleKernelReady(
|
|
39936
|
+
handleKernelReady(u.data, {
|
|
39910
39937
|
autoInstantiate: true,
|
|
39911
39938
|
setCells: r.setCells,
|
|
39912
39939
|
setLayoutData: Functions.NOOP,
|
|
@@ -39917,45 +39944,45 @@ ${c}
|
|
|
39917
39944
|
}), ((_a5 = window.customElements) == null ? void 0 : _a5.get(ISLAND_TAG_NAMES.ISLAND)) || defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39918
39945
|
return;
|
|
39919
39946
|
case "send-ui-element-message":
|
|
39920
|
-
UI_ELEMENT_REGISTRY.broadcastMessage(
|
|
39947
|
+
UI_ELEMENT_REGISTRY.broadcastMessage(u.data.ui_element, u.data.message, safeExtractSetUIElementMessageBuffers(u.data));
|
|
39921
39948
|
return;
|
|
39922
39949
|
case "remove-ui-elements":
|
|
39923
|
-
handleRemoveUIElements(
|
|
39950
|
+
handleRemoveUIElements(u.data);
|
|
39924
39951
|
return;
|
|
39925
39952
|
case "function-call-result":
|
|
39926
|
-
FUNCTIONS_REGISTRY.resolve(
|
|
39953
|
+
FUNCTIONS_REGISTRY.resolve(u.data.function_call_id, u.data);
|
|
39927
39954
|
return;
|
|
39928
39955
|
case "cell-op":
|
|
39929
|
-
handleCellNotificationeration(
|
|
39956
|
+
handleCellNotificationeration(u.data, r.handleCellMessage);
|
|
39930
39957
|
return;
|
|
39931
39958
|
case "alert":
|
|
39932
39959
|
toast({
|
|
39933
|
-
title:
|
|
39960
|
+
title: u.data.title,
|
|
39934
39961
|
description: renderHTML({
|
|
39935
|
-
html:
|
|
39962
|
+
html: u.data.description
|
|
39936
39963
|
}),
|
|
39937
|
-
variant:
|
|
39964
|
+
variant: u.data.variant
|
|
39938
39965
|
});
|
|
39939
39966
|
return;
|
|
39940
39967
|
case "query-params-append":
|
|
39941
|
-
queryParamHandlers.append(
|
|
39968
|
+
queryParamHandlers.append(u.data);
|
|
39942
39969
|
return;
|
|
39943
39970
|
case "query-params-set":
|
|
39944
|
-
queryParamHandlers.set(
|
|
39971
|
+
queryParamHandlers.set(u.data);
|
|
39945
39972
|
return;
|
|
39946
39973
|
case "query-params-delete":
|
|
39947
|
-
queryParamHandlers.delete(
|
|
39974
|
+
queryParamHandlers.delete(u.data);
|
|
39948
39975
|
return;
|
|
39949
39976
|
case "query-params-clear":
|
|
39950
39977
|
queryParamHandlers.clear();
|
|
39951
39978
|
return;
|
|
39952
39979
|
case "model-lifecycle":
|
|
39953
|
-
handleWidgetMessage(WIDGET_REGISTRY,
|
|
39980
|
+
handleWidgetMessage(WIDGET_REGISTRY, u.data);
|
|
39954
39981
|
return;
|
|
39955
39982
|
case "consumer-capabilities":
|
|
39956
39983
|
return;
|
|
39957
39984
|
default:
|
|
39958
|
-
logNever(
|
|
39985
|
+
logNever(u);
|
|
39959
39986
|
return;
|
|
39960
39987
|
}
|
|
39961
39988
|
} catch (e2) {
|
|
@@ -40187,7 +40214,7 @@ ${c}
|
|
|
40187
40214
|
});
|
|
40188
40215
|
}
|
|
40189
40216
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
40190
|
-
var worker_default = "/assets/worker-
|
|
40217
|
+
var worker_default = "/assets/worker-CDEKsBgX.js", DefaultWorkerFactory = class {
|
|
40191
40218
|
constructor(e = {}) {
|
|
40192
40219
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
40193
40220
|
}
|
|
@@ -40316,7 +40343,7 @@ ${c}
|
|
|
40316
40343
|
this.store.set(islandsInitializedAtom, true), this.initialized.resolve();
|
|
40317
40344
|
}), this.rpc.addMessageListener("initializedError", ({ error: e }) => {
|
|
40318
40345
|
Logger.error("Islands initialization error:", e), this.store.set(islandsInitializedAtom, e), this.initialized.reject(Error(e));
|
|
40319
|
-
}), this.rpc.addMessageListener("kernelMessage", (
|
|
40346
|
+
}), this.rpc.addMessageListener("kernelMessage", (e) => {
|
|
40320
40347
|
var _a5;
|
|
40321
40348
|
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40322
40349
|
});
|
|
@@ -40328,28 +40355,34 @@ ${c}
|
|
|
40328
40355
|
}
|
|
40329
40356
|
async startApps() {
|
|
40330
40357
|
var _a5, _b3, _c4, _d4;
|
|
40331
|
-
let e = parseMarimoIslandApps(this.root
|
|
40358
|
+
let e = parseMarimoIslandApps(this.root, {
|
|
40359
|
+
materialize: false
|
|
40360
|
+
}), r = e.length === 1;
|
|
40332
40361
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40333
|
-
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
40334
|
-
|
|
40335
|
-
|
|
40336
|
-
|
|
40337
|
-
|
|
40362
|
+
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode, l = r ? e[0] : void 0, u = l ? c || createMarimoFile(l) : void 0;
|
|
40363
|
+
if (l && ((_c4 = this.session) == null ? void 0 : _c4.appId) === l.id && this.session.code === u) {
|
|
40364
|
+
parseMarimoIslandApps(this.root);
|
|
40365
|
+
return;
|
|
40366
|
+
}
|
|
40367
|
+
e.length > 0 && this.store.set(islandsPendingInitialRunsAtom, new Set(e.map((e2, r2) => this.nextSessionGeneration + r2 + 1))), parseMarimoIslandApps(this.root);
|
|
40368
|
+
for (let c2 of e) {
|
|
40369
|
+
let e2 = u || createMarimoFile(c2);
|
|
40370
|
+
Logger.debug(`App ${c2.id} marimo file:
|
|
40338
40371
|
`, e2);
|
|
40339
|
-
let
|
|
40372
|
+
let l2 = {
|
|
40340
40373
|
code: e2,
|
|
40341
|
-
appId:
|
|
40374
|
+
appId: c2.id,
|
|
40342
40375
|
sessionGeneration: ++this.nextSessionGeneration
|
|
40343
40376
|
}, d = this.session, f = r && d !== void 0;
|
|
40344
40377
|
f && this.store.set(notebookAtom, initialNotebookState()), (r || !d) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40345
|
-
...
|
|
40378
|
+
...l2,
|
|
40346
40379
|
code: r ? e2 : void 0
|
|
40347
40380
|
});
|
|
40348
|
-
let p = f ? this.rpc.proxy.request.replaceSession(
|
|
40381
|
+
let p = f ? this.rpc.proxy.request.replaceSession(l2) : this.startSession(l2);
|
|
40349
40382
|
try {
|
|
40350
40383
|
await p, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40351
40384
|
} catch (e3) {
|
|
40352
|
-
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) ===
|
|
40385
|
+
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === l2.sessionGeneration && (this.session = d), Logger.error(`Failed to start session for app ${c2.id}:`, e3), r) throw e3;
|
|
40353
40386
|
}
|
|
40354
40387
|
}
|
|
40355
40388
|
}
|
|
@@ -40359,7 +40392,7 @@ ${c}
|
|
|
40359
40392
|
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40360
40393
|
appId: r.appId,
|
|
40361
40394
|
sessionGeneration: r.sessionGeneration
|
|
40362
|
-
}), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40395
|
+
}), this.store.set(islandsPendingInitialRunsAtom, null), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40363
40396
|
});
|
|
40364
40397
|
}
|
|
40365
40398
|
enqueueAppTransition(e) {
|