@marimo-team/islands 0.23.15-dev31 → 0.23.15-dev32
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-CjNAy01L.js +1 -0
- package/dist/assets/worker-B3XPCb6y.js +98 -0
- package/dist/{chat-ui-CbyDW7Rb.js → chat-ui-C0wkSwxB.js} +33 -33
- package/dist/{code-visibility-M6TuquZp.js → code-visibility-CEHWVGz1.js} +162 -162
- package/dist/{html-to-image-CtsZpKdg.js → html-to-image-D8Q5SLSJ.js} +119 -118
- package/dist/main.js +1178 -1075
- package/dist/{process-output-DApSJpc6.js → process-output-C_A12w9J.js} +1 -1
- package/dist/{reveal-component-CV1WyDIM.js → reveal-component-kLDhMoa2.js} +2 -2
- package/package.json +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +341 -46
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +8 -3
- package/src/core/islands/bridge.ts +116 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +214 -0
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +35 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +145 -57
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
25
|
-
import { $ as
|
|
25
|
+
import { $ as notebookOutline, $t as requestClientAtom, A as ChevronDownIcon, Bt as repl, C as Accordion, Cn as RANDOM_ID_ATTR, Ct as normalizeName, D as BorderAllIcon, Dn as atomWithStorage, E as AccordionTrigger, En as atomWithReducer, Et as MarkdownLanguageAdapter, G as hasRunAnyCellAtom, Gn as Eye, Gt as DATA_TYPE_ICON, H as renderHTML, Hn as Layers, Ht as MarkdownParser, I as base64ToDataView, In as Trash2, Jn as Columns2, K as cellIdsAtom, Ln as Table2, Lt as jotaiJsonStorage, Mn as Item$1, Nn as Root2$1, Nt as DeferredRequestRegistry, On as selectAtom, Ot as PathBuilder, Pn as Trigger2, Pt as generateUUID, Q as notebookAtom, Qt as getRequestClient, R as dataViewToBase64, Rn as PaintRoller, Sn as OBJECT_ID_ATTR, St as isInternalCellName, T as AccordionItem, Tt as customPythonLanguageSupport, U as getMarimoExportContext, Un as Info, V as safeExtractSetUIElementMessageBuffers, Vn as LoaderCircle, Vt as SQLParser, W as hasTrustedExportContext, Wn as FileText, Wt as PluralWords, X as hasOnlyOneCellAtom, Xn as CircleAlert, Y as getCellNames, Z as initialNotebookState, Zn as Braces, Zt as convertStatsName, a as useCellFocusActions, at as createCell, bn as UIElementId, dn as NotebookScopedLocalStorage, dt as kioskModeAtom, en as useRequestClient, et as numColumnsAtom, f as isOutputEmpty, gn as parseInitialValue, gt as headingToIdentifier, hn as parseDataset, ht as outputIsStale, i as LazyAnyLanguageCodeMirror, jn as Content2, kt as Paths, lt as getInitialAppMode, mn as parseAttrValue, mt as outputIsLoading, n as Spinner, nn as publishedCellClasses, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pt as viewStateAtom, q as createActions, qn as Database, qt as require_client, rn as shouldHidePublishedCell, rt as useCellIds, s as maybeAddAltairImport, tn as isUninstantiated, tt as reducer, ut as initialModeAtom, vn as HTMLCellId, w as AccordionContent, wn as jsonParseWithSpecialChar, wt as Checkbox, xn as findCellId, xt as getValidName, __tla as __tla_0 } from "./html-to-image-D8Q5SLSJ.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.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-DSs9v0xx.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-CEHWVGz1.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-C6wHjkhW.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.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-Dq_j3Rxw.js";
|
|
33
33
|
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-BGPrFH3g.js";
|
|
34
34
|
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-CKpRx4TS.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-C_A12w9J.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-B_CAG7_e.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -76,7 +76,7 @@ import "./dist-DyyjKEYf.js";
|
|
|
76
76
|
import "./dist-DZo4nSS0.js";
|
|
77
77
|
import "./dist-BzEzfugY.js";
|
|
78
78
|
import { t as langs } from "./esm-ga2Bf3O2.js";
|
|
79
|
-
let initialize;
|
|
79
|
+
let canReplaceApp, initialize, stopApp;
|
|
80
80
|
let __tla = Promise.all([
|
|
81
81
|
(() => {
|
|
82
82
|
try {
|
|
@@ -1392,7 +1392,7 @@ let __tla = Promise.all([
|
|
|
1392
1392
|
CELL_OUTPUT: "marimo-cell-output",
|
|
1393
1393
|
CELL_CODE: "marimo-cell-code",
|
|
1394
1394
|
CODE_EDITOR: "marimo-code-editor"
|
|
1395
|
-
}, ISLAND_DATA_ATTRIBUTES = {
|
|
1395
|
+
}, ISLAND_SOURCE_CHANGED_EVENT = "marimo-island-source-changed", ISLAND_DATA_ATTRIBUTES = {
|
|
1396
1396
|
APP_ID: "data-app-id",
|
|
1397
1397
|
CELL_IDX: "data-cell-idx",
|
|
1398
1398
|
CELL_ID: "data-cell-id",
|
|
@@ -7395,33 +7395,33 @@ let __tla = Promise.all([
|
|
|
7395
7395
|
}), B = C({
|
|
7396
7396
|
height: 0,
|
|
7397
7397
|
width: 0
|
|
7398
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7398
|
+
}), H = U(), W = U(), G = C(0), q = C(null), VW = C({
|
|
7399
7399
|
column: 0,
|
|
7400
7400
|
row: 0
|
|
7401
|
-
}),
|
|
7402
|
-
Y(x(b, $(
|
|
7403
|
-
D(
|
|
7404
|
-
}), Y(x(ut(b,
|
|
7405
|
-
D(
|
|
7401
|
+
}), HW = U(), Z = U(), UW = C(false), WW = C(0), GW = C(true), KW = C(false), qW = C(false);
|
|
7402
|
+
Y(x(b, $(WW), P(([e2, r2]) => !!r2)), () => {
|
|
7403
|
+
D(GW, false);
|
|
7404
|
+
}), Y(x(ut(b, GW, B, z, WW, KW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7405
|
+
D(KW, true), Ue(1, () => {
|
|
7406
7406
|
D(H, e2);
|
|
7407
7407
|
}), Et(x(h), () => {
|
|
7408
7408
|
D(r, [
|
|
7409
7409
|
0,
|
|
7410
7410
|
0
|
|
7411
|
-
]), D(
|
|
7411
|
+
]), D(GW, true);
|
|
7412
7412
|
});
|
|
7413
7413
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7414
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7415
|
-
D(
|
|
7414
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(VW, e2.gap), e2.scrollTop > 0 && (D(UW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7415
|
+
D(UW, false);
|
|
7416
7416
|
}), D(m, {
|
|
7417
7417
|
top: e2.scrollTop
|
|
7418
7418
|
})));
|
|
7419
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7419
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(VW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7420
7420
|
gap: c2,
|
|
7421
7421
|
item: r2,
|
|
7422
7422
|
scrollTop: l2,
|
|
7423
7423
|
viewport: e2
|
|
7424
|
-
}))),
|
|
7424
|
+
}))), HW), F(x(ut(V(I), l, V(VW, Or), V(B, xe), V(z, xe), V(q), V(L), V(UW), V(GW), V(WW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7425
7425
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7426
7426
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7427
7427
|
if (y2 === 0) {
|
|
@@ -7440,23 +7440,23 @@ let __tla = Promise.all([
|
|
|
7440
7440
|
offsetTop: j2,
|
|
7441
7441
|
top: j2
|
|
7442
7442
|
};
|
|
7443
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7443
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, VW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7444
7444
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7445
7445
|
return [
|
|
7446
7446
|
d2,
|
|
7447
7447
|
u2
|
|
7448
7448
|
];
|
|
7449
7449
|
}), J(ce)), r);
|
|
7450
|
-
let
|
|
7451
|
-
F(x(h, $(
|
|
7452
|
-
let
|
|
7450
|
+
let JW = C(false);
|
|
7451
|
+
F(x(h, $(JW), k(([e2, r2]) => r2 || e2 !== 0)), JW);
|
|
7452
|
+
let YW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(JW), P(([[e2, r2], c2]) => {
|
|
7453
7453
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7454
7454
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7455
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7455
|
+
}), k(([[, e2]]) => e2 - 1), J())), XW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), ZW = bt(x(V(R), $(UW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7456
7456
|
endIndex: e2[e2.length - 1].index,
|
|
7457
7457
|
startIndex: e2[0].index
|
|
7458
7458
|
})), J(An), Gt(0)));
|
|
7459
|
-
F(
|
|
7459
|
+
F(ZW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, VW), k(([e2, r2, c2, l2, u2]) => {
|
|
7460
7460
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7461
7461
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7462
7462
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7465,7 +7465,7 @@ let __tla = Promise.all([
|
|
|
7465
7465
|
top: g2
|
|
7466
7466
|
};
|
|
7467
7467
|
})), m);
|
|
7468
|
-
let
|
|
7468
|
+
let QW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7469
7469
|
return F(x(j, k((e2) => ({
|
|
7470
7470
|
height: e2.visibleHeight,
|
|
7471
7471
|
width: e2.visibleWidth
|
|
@@ -7474,7 +7474,7 @@ let __tla = Promise.all([
|
|
|
7474
7474
|
data: q,
|
|
7475
7475
|
deviation: G,
|
|
7476
7476
|
footerHeight: u,
|
|
7477
|
-
gap:
|
|
7477
|
+
gap: VW,
|
|
7478
7478
|
headerHeight: d,
|
|
7479
7479
|
increaseViewportBy: e,
|
|
7480
7480
|
initialItemCount: L,
|
|
@@ -7496,16 +7496,16 @@ let __tla = Promise.all([
|
|
|
7496
7496
|
windowViewportRect: j,
|
|
7497
7497
|
...y,
|
|
7498
7498
|
gridState: R,
|
|
7499
|
-
horizontalDirection:
|
|
7500
|
-
initialTopMostItemIndex:
|
|
7501
|
-
totalListHeight:
|
|
7499
|
+
horizontalDirection: qW,
|
|
7500
|
+
initialTopMostItemIndex: WW,
|
|
7501
|
+
totalListHeight: QW,
|
|
7502
7502
|
...v,
|
|
7503
|
-
endReached:
|
|
7503
|
+
endReached: YW,
|
|
7504
7504
|
propsReady: S,
|
|
7505
|
-
rangeChanged:
|
|
7506
|
-
startReached:
|
|
7507
|
-
stateChanged:
|
|
7508
|
-
stateRestoreInProgress:
|
|
7505
|
+
rangeChanged: ZW,
|
|
7506
|
+
startReached: XW,
|
|
7507
|
+
stateChanged: HW,
|
|
7508
|
+
stateRestoreInProgress: UW,
|
|
7509
7509
|
...M
|
|
7510
7510
|
};
|
|
7511
7511
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7783,22 +7783,22 @@ let __tla = Promise.all([
|
|
|
7783
7783
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7784
7784
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7785
7785
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7786
|
-
let
|
|
7786
|
+
let VW = q, HW;
|
|
7787
7787
|
if (r[13] !== G.bulkActions) {
|
|
7788
|
-
if (
|
|
7788
|
+
if (HW = G.bulkActions.map(_temp$27), HW.length > 0) {
|
|
7789
7789
|
let e2;
|
|
7790
7790
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7791
7791
|
"data-slot": "select-separator"
|
|
7792
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7792
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], HW.push(e2);
|
|
7793
7793
|
}
|
|
7794
|
-
r[13] = G.bulkActions, r[14] =
|
|
7795
|
-
} else
|
|
7794
|
+
r[13] = G.bulkActions, r[14] = HW;
|
|
7795
|
+
} else HW = r[14];
|
|
7796
7796
|
let Z;
|
|
7797
7797
|
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7798
7798
|
"data-slot": "select-separator"
|
|
7799
7799
|
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7800
|
-
let
|
|
7801
|
-
r[19] !==
|
|
7800
|
+
let UW = Z, WW;
|
|
7801
|
+
r[19] !== HW || r[20] !== G || r[21] !== UW || r[22] !== w || r[23] !== B || r[24] !== H ? (WW = () => {
|
|
7802
7802
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7803
7803
|
"data-slot": "select-list",
|
|
7804
7804
|
style: {
|
|
@@ -7810,8 +7810,8 @@ let __tla = Promise.all([
|
|
|
7810
7810
|
let r2 = G.visibleOptions[e3];
|
|
7811
7811
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7812
7812
|
children: [
|
|
7813
|
-
e3 === 0 &&
|
|
7814
|
-
|
|
7813
|
+
e3 === 0 && HW,
|
|
7814
|
+
UW(e3),
|
|
7815
7815
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7816
7816
|
option: r2,
|
|
7817
7817
|
checked: G.isChecked(r2.value),
|
|
@@ -7822,7 +7822,7 @@ let __tla = Promise.all([
|
|
|
7822
7822
|
}
|
|
7823
7823
|
});
|
|
7824
7824
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7825
|
-
let c2 =
|
|
7825
|
+
let c2 = UW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7826
7826
|
option: e3,
|
|
7827
7827
|
checked: G.isChecked(e3.value),
|
|
7828
7828
|
renderOption: w
|
|
@@ -7836,13 +7836,13 @@ let __tla = Promise.all([
|
|
|
7836
7836
|
});
|
|
7837
7837
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7838
7838
|
children: [
|
|
7839
|
-
|
|
7839
|
+
HW,
|
|
7840
7840
|
e2
|
|
7841
7841
|
]
|
|
7842
7842
|
});
|
|
7843
|
-
}, r[19] =
|
|
7844
|
-
let
|
|
7845
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7843
|
+
}, r[19] = HW, r[20] = G, r[21] = UW, r[22] = w, r[23] = B, r[24] = H, r[25] = WW) : WW = r[25];
|
|
7844
|
+
let GW = WW, KW;
|
|
7845
|
+
r[26] !== G.labelOf || r[27] !== I ? (KW = (e2) => {
|
|
7846
7846
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7847
7847
|
e2
|
|
7848
7848
|
];
|
|
@@ -7853,46 +7853,46 @@ let __tla = Promise.all([
|
|
|
7853
7853
|
items: r2.map(G.labelOf),
|
|
7854
7854
|
max: 3
|
|
7855
7855
|
});
|
|
7856
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7857
|
-
let
|
|
7858
|
-
r[29] === G ?
|
|
7859
|
-
let
|
|
7860
|
-
r[31] !== b || r[32] !== R ? (
|
|
7856
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = KW) : KW = r[28];
|
|
7857
|
+
let qW = KW, JW = e["data-testid"], YW;
|
|
7858
|
+
r[29] === G ? YW = r[30] : (YW = (e2) => G.labelOf(e2), r[29] = G, r[30] = YW);
|
|
7859
|
+
let XW = M ? qW : void 0, ZW;
|
|
7860
|
+
r[31] !== b || r[32] !== R ? (ZW = cn({
|
|
7861
7861
|
"w-full": R
|
|
7862
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7863
|
-
let
|
|
7864
|
-
r[34] === z ?
|
|
7865
|
-
let
|
|
7866
|
-
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] !==
|
|
7862
|
+
}, b), r[31] = b, r[32] = R, r[33] = ZW) : ZW = r[33];
|
|
7863
|
+
let QW = G.searchQuery, $W = G.setSearchQuery, eG = G.open, tG = G.setOpen, nG;
|
|
7864
|
+
r[34] === z ? nG = r[35] : (nG = renderSlot(z), r[34] = z, r[35] = nG);
|
|
7865
|
+
let rG;
|
|
7866
|
+
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] !== JW || r[44] !== YW || r[45] !== XW || r[46] !== ZW || r[47] !== nG ? (rG = {
|
|
7867
7867
|
"data-slot": "select-root",
|
|
7868
|
-
"data-testid":
|
|
7869
|
-
displayValue:
|
|
7870
|
-
renderValue:
|
|
7868
|
+
"data-testid": JW,
|
|
7869
|
+
displayValue: YW,
|
|
7870
|
+
renderValue: XW,
|
|
7871
7871
|
placeholder: I,
|
|
7872
|
-
className:
|
|
7872
|
+
className: ZW,
|
|
7873
7873
|
shouldFilter: false,
|
|
7874
|
-
search:
|
|
7875
|
-
onSearchChange:
|
|
7876
|
-
open:
|
|
7877
|
-
onOpenChange:
|
|
7878
|
-
emptyState:
|
|
7874
|
+
search: QW,
|
|
7875
|
+
onSearchChange: $W,
|
|
7876
|
+
open: eG,
|
|
7877
|
+
onOpenChange: tG,
|
|
7878
|
+
emptyState: nG,
|
|
7879
7879
|
disabled: L,
|
|
7880
7880
|
id: S
|
|
7881
|
-
}, 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] =
|
|
7882
|
-
let
|
|
7883
|
-
return r[49] !==
|
|
7884
|
-
...
|
|
7881
|
+
}, 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] = JW, r[44] = YW, r[45] = XW, r[46] = ZW, r[47] = nG, r[48] = rG) : rG = r[48];
|
|
7882
|
+
let iG = rG, aG;
|
|
7883
|
+
return r[49] !== iG || r[50] !== VW || r[51] !== d || r[52] !== GW || r[53] !== l ? (aG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7884
|
+
...iG,
|
|
7885
7885
|
multiple: true,
|
|
7886
7886
|
value: l,
|
|
7887
|
-
onValueChange:
|
|
7888
|
-
children:
|
|
7887
|
+
onValueChange: VW,
|
|
7888
|
+
children: GW()
|
|
7889
7889
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7890
|
-
...
|
|
7890
|
+
...iG,
|
|
7891
7891
|
multiple: false,
|
|
7892
7892
|
value: l,
|
|
7893
|
-
onValueChange:
|
|
7894
|
-
children:
|
|
7895
|
-
}), r[49] =
|
|
7893
|
+
onValueChange: VW,
|
|
7894
|
+
children: GW()
|
|
7895
|
+
}), r[49] = iG, r[50] = VW, r[51] = d, r[52] = GW, r[53] = l, r[54] = aG) : aG = r[54], aG;
|
|
7896
7896
|
}
|
|
7897
7897
|
function _temp$27(e) {
|
|
7898
7898
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8886,7 +8886,7 @@ let __tla = Promise.all([
|
|
|
8886
8886
|
};
|
|
8887
8887
|
}
|
|
8888
8888
|
};
|
|
8889
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8889
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-C0wkSwxB.js").then((e) => ({
|
|
8890
8890
|
default: e.Chatbot
|
|
8891
8891
|
}))), messageSchema = array(object({
|
|
8892
8892
|
id: string(),
|
|
@@ -10001,7 +10001,7 @@ let __tla = Promise.all([
|
|
|
10001
10001
|
let m2 = get(l, e2);
|
|
10002
10002
|
if (m2) {
|
|
10003
10003
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10004
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10004
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : VW(e2, l2), f.mount && w();
|
|
10005
10005
|
}
|
|
10006
10006
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10007
10007
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10074,14 +10074,14 @@ let __tla = Promise.all([
|
|
|
10074
10074
|
}, H = () => {
|
|
10075
10075
|
for (let e2 of p.unMount) {
|
|
10076
10076
|
let r2 = get(l, e2);
|
|
10077
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10077
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && ZW(e2);
|
|
10078
10078
|
}
|
|
10079
10079
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10080
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10080
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(KW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10081
10081
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10082
10082
|
[e2]: r2
|
|
10083
10083
|
} : r2
|
|
10084
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10084
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), VW = (e2, r2, c2 = {}) => {
|
|
10085
10085
|
let u2 = get(l, e2), f2 = r2;
|
|
10086
10086
|
if (u2) {
|
|
10087
10087
|
let c3 = u2._f;
|
|
@@ -10094,11 +10094,11 @@ let __tla = Promise.all([
|
|
|
10094
10094
|
}
|
|
10095
10095
|
})));
|
|
10096
10096
|
}
|
|
10097
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10098
|
-
},
|
|
10097
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && GW(e2);
|
|
10098
|
+
}, HW = (e2, r2, c2) => {
|
|
10099
10099
|
for (let u2 in r2) {
|
|
10100
10100
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10101
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10101
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? HW(f2, d2, c2) : VW(f2, d2, c2);
|
|
10102
10102
|
}
|
|
10103
10103
|
}, Z = (e2, r2, m2 = {}) => {
|
|
10104
10104
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -10111,7 +10111,7 @@ let __tla = Promise.all([
|
|
|
10111
10111
|
name: e2,
|
|
10112
10112
|
dirtyFields: getDirtyFields(u, d),
|
|
10113
10113
|
isDirty: W(e2, y2)
|
|
10114
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10114
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? HW(e2, y2, m2) : VW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10115
10115
|
...c
|
|
10116
10116
|
}), _.values.next({
|
|
10117
10117
|
name: f.mount ? e2 : void 0,
|
|
@@ -10119,7 +10119,7 @@ let __tla = Promise.all([
|
|
|
10119
10119
|
...d
|
|
10120
10120
|
}
|
|
10121
10121
|
});
|
|
10122
|
-
},
|
|
10122
|
+
}, UW = async (e2) => {
|
|
10123
10123
|
f.mount = true;
|
|
10124
10124
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10125
10125
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10153,11 +10153,11 @@ let __tla = Promise.all([
|
|
|
10153
10153
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10154
10154
|
h2
|
|
10155
10155
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10156
|
-
S2 && (E2._f.deps &&
|
|
10156
|
+
S2 && (E2._f.deps && GW(E2._f.deps), L(h2, f2, u3, G2));
|
|
10157
10157
|
}
|
|
10158
|
-
},
|
|
10158
|
+
}, WW = (e2, r2) => {
|
|
10159
10159
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10160
|
-
},
|
|
10160
|
+
}, GW = async (e2, u2 = {}) => {
|
|
10161
10161
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10162
10162
|
if (r.resolver) {
|
|
10163
10163
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10176,23 +10176,23 @@ let __tla = Promise.all([
|
|
|
10176
10176
|
isValid: d2
|
|
10177
10177
|
} : {},
|
|
10178
10178
|
errors: c.errors
|
|
10179
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10180
|
-
},
|
|
10179
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, WW, e2 ? m2 : p.mount), f2;
|
|
10180
|
+
}, KW = (e2) => {
|
|
10181
10181
|
let r2 = {
|
|
10182
10182
|
...f.mount ? d : u
|
|
10183
10183
|
};
|
|
10184
10184
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10185
|
-
},
|
|
10185
|
+
}, qW = (e2, r2) => ({
|
|
10186
10186
|
invalid: !!get((r2 || c).errors, e2),
|
|
10187
10187
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10188
10188
|
error: get((r2 || c).errors, e2),
|
|
10189
10189
|
isValidating: !!get(c.validatingFields, e2),
|
|
10190
10190
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10191
|
-
}),
|
|
10191
|
+
}), JW = (e2) => {
|
|
10192
10192
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10193
10193
|
errors: e2 ? c.errors : {}
|
|
10194
10194
|
});
|
|
10195
|
-
},
|
|
10195
|
+
}, YW = (e2, r2, u2) => {
|
|
10196
10196
|
let d2 = (get(l, e2, {
|
|
10197
10197
|
_f: {}
|
|
10198
10198
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10205,9 +10205,9 @@ let __tla = Promise.all([
|
|
|
10205
10205
|
errors: c.errors,
|
|
10206
10206
|
isValid: false
|
|
10207
10207
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10208
|
-
},
|
|
10208
|
+
}, XW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10209
10209
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10210
|
-
}) : G(e2, r2, true),
|
|
10210
|
+
}) : G(e2, r2, true), ZW = (e2, f2 = {}) => {
|
|
10211
10211
|
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);
|
|
10212
10212
|
_.values.next({
|
|
10213
10213
|
values: {
|
|
@@ -10219,9 +10219,9 @@ let __tla = Promise.all([
|
|
|
10219
10219
|
isDirty: W()
|
|
10220
10220
|
} : {}
|
|
10221
10221
|
}), !f2.keepIsValid && w();
|
|
10222
|
-
},
|
|
10222
|
+
}, QW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10223
10223
|
(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));
|
|
10224
|
-
},
|
|
10224
|
+
}, $W = (e2, c2 = {}) => {
|
|
10225
10225
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10226
10226
|
return set(l, e2, {
|
|
10227
10227
|
...d2 || {},
|
|
@@ -10235,7 +10235,7 @@ let __tla = Promise.all([
|
|
|
10235
10235
|
mount: true,
|
|
10236
10236
|
...c2
|
|
10237
10237
|
}
|
|
10238
|
-
}), p.mount.add(e2), d2 ?
|
|
10238
|
+
}), p.mount.add(e2), d2 ? QW({
|
|
10239
10239
|
field: d2,
|
|
10240
10240
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10241
10241
|
name: e2
|
|
@@ -10252,11 +10252,11 @@ let __tla = Promise.all([
|
|
|
10252
10252
|
pattern: getRuleValue(c2.pattern)
|
|
10253
10253
|
} : {},
|
|
10254
10254
|
name: e2,
|
|
10255
|
-
onChange:
|
|
10256
|
-
onBlur:
|
|
10255
|
+
onChange: UW,
|
|
10256
|
+
onBlur: UW,
|
|
10257
10257
|
ref: (m3) => {
|
|
10258
10258
|
if (m3) {
|
|
10259
|
-
|
|
10259
|
+
$W(e2, c2), d2 = get(l, e2);
|
|
10260
10260
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10261
10261
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10262
10262
|
set(l, e2, {
|
|
@@ -10282,7 +10282,7 @@ let __tla = Promise.all([
|
|
|
10282
10282
|
} 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);
|
|
10283
10283
|
}
|
|
10284
10284
|
};
|
|
10285
|
-
},
|
|
10285
|
+
}, eG = () => r.shouldFocusError && iterateFieldsByAction(l, WW, p.mount), tG = (e2) => {
|
|
10286
10286
|
isBoolean(e2) && (_.state.next({
|
|
10287
10287
|
disabled: e2
|
|
10288
10288
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10291,7 +10291,7 @@ let __tla = Promise.all([
|
|
|
10291
10291
|
r3.disabled = u2._f.disabled || e2;
|
|
10292
10292
|
}));
|
|
10293
10293
|
}, 0, false));
|
|
10294
|
-
},
|
|
10294
|
+
}, nG = (e2, u2) => async (f2) => {
|
|
10295
10295
|
let m2;
|
|
10296
10296
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10297
10297
|
let h2 = cloneObject(d);
|
|
@@ -10313,7 +10313,7 @@ let __tla = Promise.all([
|
|
|
10313
10313
|
}
|
|
10314
10314
|
} else u2 && await u2({
|
|
10315
10315
|
...c.errors
|
|
10316
|
-
}, f2),
|
|
10316
|
+
}, f2), eG(), setTimeout(eG);
|
|
10317
10317
|
if (_.state.next({
|
|
10318
10318
|
isSubmitted: true,
|
|
10319
10319
|
isSubmitting: false,
|
|
@@ -10321,11 +10321,11 @@ let __tla = Promise.all([
|
|
|
10321
10321
|
submitCount: c.submitCount + 1,
|
|
10322
10322
|
errors: c.errors
|
|
10323
10323
|
}), m2) throw m2;
|
|
10324
|
-
},
|
|
10324
|
+
}, rG = (e2, r2 = {}) => {
|
|
10325
10325
|
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(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({
|
|
10326
10326
|
...c
|
|
10327
10327
|
}));
|
|
10328
|
-
},
|
|
10328
|
+
}, iG = (e2, m2 = {}) => {
|
|
10329
10329
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10330
10330
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10331
10331
|
if (m2.keepDirtyValues) {
|
|
@@ -10378,25 +10378,25 @@ let __tla = Promise.all([
|
|
|
10378
10378
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10379
10379
|
isSubmitting: false
|
|
10380
10380
|
});
|
|
10381
|
-
},
|
|
10381
|
+
}, aG = (e2, r2) => iG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10382
10382
|
return {
|
|
10383
10383
|
control: {
|
|
10384
|
-
register:
|
|
10385
|
-
unregister:
|
|
10386
|
-
getFieldState:
|
|
10387
|
-
handleSubmit:
|
|
10388
|
-
setError:
|
|
10384
|
+
register: $W,
|
|
10385
|
+
unregister: ZW,
|
|
10386
|
+
getFieldState: qW,
|
|
10387
|
+
handleSubmit: nG,
|
|
10388
|
+
setError: YW,
|
|
10389
10389
|
_executeSchema: R,
|
|
10390
10390
|
_getWatch: G,
|
|
10391
10391
|
_getDirty: W,
|
|
10392
10392
|
_updateValid: w,
|
|
10393
10393
|
_removeUnmounted: H,
|
|
10394
10394
|
_updateFieldArray: E,
|
|
10395
|
-
_updateDisabledField:
|
|
10395
|
+
_updateDisabledField: QW,
|
|
10396
10396
|
_getFieldArray: q,
|
|
10397
|
-
_reset:
|
|
10397
|
+
_reset: iG,
|
|
10398
10398
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10399
|
-
|
|
10399
|
+
aG(e2, r.resetOptions), _.state.next({
|
|
10400
10400
|
isLoading: false
|
|
10401
10401
|
});
|
|
10402
10402
|
}),
|
|
@@ -10406,7 +10406,7 @@ let __tla = Promise.all([
|
|
|
10406
10406
|
...e2
|
|
10407
10407
|
};
|
|
10408
10408
|
},
|
|
10409
|
-
_disableForm:
|
|
10409
|
+
_disableForm: tG,
|
|
10410
10410
|
_subjects: _,
|
|
10411
10411
|
_proxyFormState: g,
|
|
10412
10412
|
_setErrors: j,
|
|
@@ -10447,17 +10447,17 @@ let __tla = Promise.all([
|
|
|
10447
10447
|
};
|
|
10448
10448
|
}
|
|
10449
10449
|
},
|
|
10450
|
-
trigger:
|
|
10451
|
-
register:
|
|
10452
|
-
handleSubmit:
|
|
10453
|
-
watch:
|
|
10450
|
+
trigger: GW,
|
|
10451
|
+
register: $W,
|
|
10452
|
+
handleSubmit: nG,
|
|
10453
|
+
watch: XW,
|
|
10454
10454
|
setValue: Z,
|
|
10455
|
-
getValues:
|
|
10456
|
-
reset:
|
|
10457
|
-
resetField:
|
|
10458
|
-
clearErrors:
|
|
10459
|
-
unregister:
|
|
10460
|
-
setError:
|
|
10455
|
+
getValues: KW,
|
|
10456
|
+
reset: aG,
|
|
10457
|
+
resetField: rG,
|
|
10458
|
+
clearErrors: JW,
|
|
10459
|
+
unregister: ZW,
|
|
10460
|
+
setError: YW,
|
|
10461
10461
|
setFocus: (e2, r2 = {}) => {
|
|
10462
10462
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10463
10463
|
if (u2) {
|
|
@@ -10465,7 +10465,7 @@ let __tla = Promise.all([
|
|
|
10465
10465
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10466
10466
|
}
|
|
10467
10467
|
},
|
|
10468
|
-
getFieldState:
|
|
10468
|
+
getFieldState: qW
|
|
10469
10469
|
};
|
|
10470
10470
|
}
|
|
10471
10471
|
function useForm(e = {}) {
|
|
@@ -16190,21 +16190,21 @@ ${c}
|
|
|
16190
16190
|
_.pageSize,
|
|
16191
16191
|
_.pageIndex
|
|
16192
16192
|
], 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] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
16193
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16194
|
-
r[48] !==
|
|
16195
|
-
let
|
|
16196
|
-
r[51] !==
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16193
|
+
let { data: W, error: G, isPending: q, isFetching: VW } = useAsyncData(z, H), HW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
16194
|
+
r[48] !== HW || r[49] !== e ? (Z = async () => !HW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = HW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
16195
|
+
let UW = e.showDownload, WW = e.get_size_bytes, GW = e.lazy, KW = e.totalRows, qW = useDeepCompareMemoize(w), JW = useDeepCompareMemoize(m), YW;
|
|
16196
|
+
r[51] !== HW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== qW || r[58] !== JW ? (YW = [
|
|
16197
|
+
HW,
|
|
16198
|
+
UW,
|
|
16199
|
+
WW,
|
|
16200
|
+
GW,
|
|
16201
|
+
KW,
|
|
16202
16202
|
y,
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
], r[51] =
|
|
16206
|
-
let { data:
|
|
16207
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
16203
|
+
qW,
|
|
16204
|
+
JW
|
|
16205
|
+
], r[51] = HW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = qW, r[58] = JW, r[59] = YW) : YW = r[59];
|
|
16206
|
+
let { data: XW, isPending: ZW } = useAsyncData(Z, YW), QW = XW ?? null, $W = !!HW && e.showDownload && ZW, eG;
|
|
16207
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (eG = async (e2) => ({
|
|
16208
16208
|
rows: await loadTableData((await u({
|
|
16209
16209
|
page_number: e2,
|
|
16210
16210
|
page_size: 1,
|
|
@@ -16213,17 +16213,17 @@ ${c}
|
|
|
16213
16213
|
filters: filtersToFilterGroup(w),
|
|
16214
16214
|
max_columns: null
|
|
16215
16215
|
})).data)
|
|
16216
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
16217
|
-
let
|
|
16218
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16216
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = eG) : eG = r[64];
|
|
16217
|
+
let tG = eG, nG;
|
|
16218
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nG = () => {
|
|
16219
16219
|
v(_temp4$4);
|
|
16220
|
-
}, r[65] =
|
|
16221
|
-
let
|
|
16222
|
-
r[66] ===
|
|
16223
|
-
|
|
16224
|
-
], r[66] =
|
|
16225
|
-
let
|
|
16226
|
-
r[68] === e ?
|
|
16220
|
+
}, r[65] = nG) : nG = r[65];
|
|
16221
|
+
let rG = W == null ? void 0 : W.totalRows, iG;
|
|
16222
|
+
r[66] === rG ? iG = r[67] : (iG = [
|
|
16223
|
+
rG
|
|
16224
|
+
], r[66] = rG, r[67] = iG), (0, import_react.useEffect)(nG, iG);
|
|
16225
|
+
let aG;
|
|
16226
|
+
r[68] === e ? aG = r[69] : (aG = async () => {
|
|
16227
16227
|
let r2 = isStaticNotebook();
|
|
16228
16228
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16229
16229
|
data: null,
|
|
@@ -16232,22 +16232,22 @@ ${c}
|
|
|
16232
16232
|
value_counts: {},
|
|
16233
16233
|
show_charts: false
|
|
16234
16234
|
} : e.get_column_summaries({});
|
|
16235
|
-
}, r[68] = e, r[69] =
|
|
16236
|
-
let
|
|
16237
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16235
|
+
}, r[68] = e, r[69] = aG);
|
|
16236
|
+
let oG;
|
|
16237
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (oG = [
|
|
16238
16238
|
e.get_column_summaries,
|
|
16239
16239
|
e.showColumnSummaries,
|
|
16240
16240
|
w,
|
|
16241
16241
|
y,
|
|
16242
16242
|
e.totalRows,
|
|
16243
16243
|
e.data
|
|
16244
|
-
], 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] =
|
|
16245
|
-
let { data:
|
|
16246
|
-
if (r[77] ===
|
|
16247
|
-
|
|
16248
|
-
},
|
|
16249
|
-
|
|
16250
|
-
], r[77] =
|
|
16244
|
+
], 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] = oG) : oG = r[76];
|
|
16245
|
+
let { data: sG, error: cG } = useAsyncData(aG, oG), lG, uG;
|
|
16246
|
+
if (r[77] === cG ? (lG = r[78], uG = r[79]) : (lG = () => {
|
|
16247
|
+
cG && Logger.error(cG);
|
|
16248
|
+
}, uG = [
|
|
16249
|
+
cG
|
|
16250
|
+
], r[77] = cG, r[78] = lG, r[79] = uG), (0, import_react.useEffect)(lG, uG), q) {
|
|
16251
16251
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16252
16252
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16253
16253
|
milliseconds: 200,
|
|
@@ -16256,7 +16256,7 @@ ${c}
|
|
|
16256
16256
|
})
|
|
16257
16257
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16258
16258
|
}
|
|
16259
|
-
let
|
|
16259
|
+
let dG = null;
|
|
16260
16260
|
if (G) {
|
|
16261
16261
|
Logger.error(G);
|
|
16262
16262
|
let e2;
|
|
@@ -16272,62 +16272,62 @@ ${c}
|
|
|
16272
16272
|
children: G.message || "An unknown error occurred"
|
|
16273
16273
|
})
|
|
16274
16274
|
]
|
|
16275
|
-
}), r[82] = G, r[83] = e2),
|
|
16275
|
+
}), r[82] = G, r[83] = e2), dG = e2;
|
|
16276
16276
|
}
|
|
16277
|
-
let
|
|
16278
|
-
r[84] === O ?
|
|
16277
|
+
let fG;
|
|
16278
|
+
r[84] === O ? fG = r[85] : (fG = () => {
|
|
16279
16279
|
j(!O);
|
|
16280
|
-
}, r[84] = O, r[85] =
|
|
16281
|
-
let
|
|
16282
|
-
r[86] !== l || r[87] !==
|
|
16280
|
+
}, r[84] = O, r[85] = fG);
|
|
16281
|
+
let pG = fG, mG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, hG = W == null ? void 0 : W.rawRows, gG = VW && !q, _G = (W == null ? void 0 : W.totalRows) ?? e.totalRows, vG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, yG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, bG;
|
|
16282
|
+
r[86] !== l || r[87] !== sG || r[88] !== O || r[89] !== w || r[90] !== tG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== QW || r[95] !== $W || r[96] !== m || r[97] !== mG || r[98] !== hG || r[99] !== gG || r[100] !== _G || r[101] !== vG || r[102] !== yG || r[103] !== pG ? (bG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16283
16283
|
...e,
|
|
16284
|
-
data:
|
|
16285
|
-
rawData:
|
|
16286
|
-
columnSummaries:
|
|
16284
|
+
data: mG,
|
|
16285
|
+
rawData: hG,
|
|
16286
|
+
columnSummaries: sG,
|
|
16287
16287
|
sorting: m,
|
|
16288
16288
|
setSorting: h,
|
|
16289
16289
|
searchQuery: y,
|
|
16290
16290
|
setSearchQuery: b,
|
|
16291
16291
|
filters: w,
|
|
16292
16292
|
setFilters: T,
|
|
16293
|
-
reloading:
|
|
16294
|
-
totalRows:
|
|
16295
|
-
sizeBytes:
|
|
16296
|
-
sizeBytesIsLoading:
|
|
16293
|
+
reloading: gG,
|
|
16294
|
+
totalRows: _G,
|
|
16295
|
+
sizeBytes: QW,
|
|
16296
|
+
sizeBytesIsLoading: $W,
|
|
16297
16297
|
paginationState: _,
|
|
16298
16298
|
setPaginationState: v,
|
|
16299
|
-
cellStyles:
|
|
16300
|
-
cellHoverTexts:
|
|
16301
|
-
toggleDisplayHeader:
|
|
16299
|
+
cellStyles: vG,
|
|
16300
|
+
cellHoverTexts: yG,
|
|
16301
|
+
toggleDisplayHeader: pG,
|
|
16302
16302
|
isChartBuilderOpen: O,
|
|
16303
|
-
getRow:
|
|
16303
|
+
getRow: tG,
|
|
16304
16304
|
cellId: l,
|
|
16305
16305
|
maxHeight: e.maxHeight
|
|
16306
|
-
}), r[86] = l, r[87] =
|
|
16307
|
-
let
|
|
16308
|
-
r[105] !== l || r[106] !==
|
|
16306
|
+
}), r[86] = l, r[87] = sG, r[88] = O, r[89] = w, r[90] = tG, r[91] = _, r[92] = e, r[93] = y, r[94] = QW, r[95] = $W, r[96] = m, r[97] = mG, r[98] = hG, r[99] = gG, r[100] = _G, r[101] = vG, r[102] = yG, r[103] = pG, r[104] = bG) : bG = r[104];
|
|
16307
|
+
let xG = bG, SG;
|
|
16308
|
+
r[105] !== l || r[106] !== xG || 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 ? (SG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16309
16309
|
displayHeader: O,
|
|
16310
16310
|
onCloseChartBuilder: () => j(false),
|
|
16311
16311
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16312
16312
|
columns: e.totalColumns,
|
|
16313
16313
|
totalRows: e.totalRows,
|
|
16314
|
-
dataTable:
|
|
16314
|
+
dataTable: xG,
|
|
16315
16315
|
getDataUrl: e.get_data_url,
|
|
16316
16316
|
fieldTypes: e.fieldTypes,
|
|
16317
16317
|
rowHeaders: e.rowHeaders,
|
|
16318
16318
|
cellId: l
|
|
16319
|
-
}) :
|
|
16320
|
-
let
|
|
16321
|
-
return r[116] !==
|
|
16319
|
+
}) : xG, r[105] = l, r[106] = xG, 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] = SG) : SG = r[115];
|
|
16320
|
+
let CG;
|
|
16321
|
+
return r[116] !== dG || r[117] !== SG ? (CG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16322
16322
|
children: [
|
|
16323
|
-
|
|
16324
|
-
|
|
16323
|
+
dG,
|
|
16324
|
+
SG
|
|
16325
16325
|
]
|
|
16326
|
-
}), r[116] =
|
|
16326
|
+
}), r[116] = dG, r[117] = SG, r[118] = CG) : CG = r[118], CG;
|
|
16327
16327
|
});
|
|
16328
16328
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16329
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, 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:
|
|
16330
|
-
let
|
|
16329
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, 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: VW, setFilters: HW, reloading: Z, freezeColumnsLeft: UW, freezeColumnsRight: WW, hiddenColumns: GW, textJustifyColumns: KW, wrappedColumns: qW, columnWidths: JW, headerTooltip: YW, totalColumns: XW, get_row_ids: ZW, cellStyles: QW, hoverTemplate: $W, cellHoverTexts: eG, toggleDisplayHeader: tG, isChartBuilderOpen: nG, calculate_top_k_rows: rG, preview_column: iG, getRow: aG, cellId: oG, maxHeight: sG }) => {
|
|
16330
|
+
let cG = (0, import_react.useId)(), { locale: lG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [uG, dG] = (0, import_react.useState)(0), { isPanelOpen: fG, isAnyPanelOpen: pG, togglePanel: mG, panelType: hG, setPanelType: gG } = usePanelOwnership(cG, oG), _G = isStaticNotebook(), vG = (0, import_react.useMemo)(() => {
|
|
16331
16331
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16332
16332
|
let e2 = toFieldTypes(O);
|
|
16333
16333
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16336,13 +16336,13 @@ ${c}
|
|
|
16336
16336
|
}, [
|
|
16337
16337
|
O,
|
|
16338
16338
|
L
|
|
16339
|
-
]),
|
|
16339
|
+
]), yG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), bG = (0, import_react.useMemo)(() => f === "all" ? yG : yG.slice(0, f), [
|
|
16340
16340
|
f,
|
|
16341
|
-
|
|
16342
|
-
]),
|
|
16341
|
+
yG
|
|
16342
|
+
]), xG = (0, import_react.useMemo)(() => {
|
|
16343
16343
|
let e2 = {};
|
|
16344
16344
|
if (r && r.length > 0) {
|
|
16345
|
-
for (let [c2, l2] of
|
|
16345
|
+
for (let [c2, l2] of bG) if (l2[0] === "number") {
|
|
16346
16346
|
let l3 = 0;
|
|
16347
16347
|
for (let e3 of r) {
|
|
16348
16348
|
let r2 = e3[c2];
|
|
@@ -16357,95 +16357,95 @@ ${c}
|
|
|
16357
16357
|
return e2;
|
|
16358
16358
|
}, [
|
|
16359
16359
|
r,
|
|
16360
|
-
|
|
16361
|
-
]),
|
|
16362
|
-
O || (w = false),
|
|
16363
|
-
let
|
|
16364
|
-
rowHeaders:
|
|
16360
|
+
bG
|
|
16361
|
+
]), SG = useDeepCompareMemoize(T), CG = useDeepCompareMemoize(KW), wG = useDeepCompareMemoize(qW), TG = useDeepCompareMemoize(JW), EG = useDeepCompareMemoize(vG), DG = useDeepCompareMemoize(xG), OG = bG.length;
|
|
16362
|
+
O || (w = false), _G && (m = null);
|
|
16363
|
+
let kG = (0, import_react.useMemo)(() => generateColumns({
|
|
16364
|
+
rowHeaders: SG,
|
|
16365
16365
|
selection: m,
|
|
16366
|
-
chartSpecModel:
|
|
16367
|
-
fieldTypes:
|
|
16368
|
-
textJustifyColumns:
|
|
16369
|
-
wrappedColumns:
|
|
16370
|
-
columnWidths:
|
|
16371
|
-
headerTooltip:
|
|
16366
|
+
chartSpecModel: EG,
|
|
16367
|
+
fieldTypes: bG,
|
|
16368
|
+
textJustifyColumns: CG,
|
|
16369
|
+
wrappedColumns: wG,
|
|
16370
|
+
columnWidths: TG,
|
|
16371
|
+
headerTooltip: YW,
|
|
16372
16372
|
showDataTypes: w,
|
|
16373
|
-
calculateTopKRows:
|
|
16374
|
-
fractionDigitsByColumn:
|
|
16373
|
+
calculateTopKRows: rG,
|
|
16374
|
+
fractionDigitsByColumn: DG
|
|
16375
16375
|
}), [
|
|
16376
16376
|
m,
|
|
16377
16377
|
w,
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
]),
|
|
16378
|
+
EG,
|
|
16379
|
+
SG,
|
|
16380
|
+
bG,
|
|
16381
|
+
CG,
|
|
16382
|
+
wG,
|
|
16383
|
+
TG,
|
|
16384
|
+
YW,
|
|
16385
|
+
rG,
|
|
16386
|
+
DG
|
|
16387
|
+
]), AG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
16388
16388
|
e2,
|
|
16389
16389
|
true
|
|
16390
16390
|
])), [
|
|
16391
16391
|
h
|
|
16392
|
-
]),
|
|
16392
|
+
]), jG = useEvent_default((e2) => {
|
|
16393
16393
|
if (m === "single") {
|
|
16394
16394
|
let r2 = Functions.asUpdater(e2)({});
|
|
16395
16395
|
z(Object.keys(r2).slice(0, 1));
|
|
16396
16396
|
}
|
|
16397
16397
|
if (m === "multi") {
|
|
16398
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16398
|
+
let r2 = Functions.asUpdater(e2)(AG);
|
|
16399
16399
|
z(Object.keys(r2));
|
|
16400
16400
|
}
|
|
16401
|
-
}),
|
|
16402
|
-
if (
|
|
16401
|
+
}), MG = useEvent_default((e2) => {
|
|
16402
|
+
if (dG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16403
16403
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16404
16404
|
r2 !== null && M((e3) => ({
|
|
16405
16405
|
...e3,
|
|
16406
16406
|
pageIndex: r2
|
|
16407
16407
|
}));
|
|
16408
|
-
}),
|
|
16409
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16410
|
-
}),
|
|
16411
|
-
if (!(!
|
|
16408
|
+
}), NG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), PG = useEvent_default((e2) => {
|
|
16409
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(NG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(NG));
|
|
16410
|
+
}), FG = m === "multi" || m === "single", IG = y && !!iG, LG = isInVscodeExtension(), RG = isIslands(), zG = (0, import_react.useMemo)(() => {
|
|
16411
|
+
if (!(!pG || !(b || IG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16412
16412
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16413
|
-
rowIdx:
|
|
16414
|
-
setRowIdx:
|
|
16413
|
+
rowIdx: uG,
|
|
16414
|
+
setRowIdx: MG,
|
|
16415
16415
|
totalRows: l,
|
|
16416
|
-
fieldTypes:
|
|
16417
|
-
getRow:
|
|
16418
|
-
isSelectable:
|
|
16419
|
-
isRowSelected: !!
|
|
16420
|
-
handleRowSelectionChange:
|
|
16421
|
-
previewColumn:
|
|
16422
|
-
totalColumns:
|
|
16423
|
-
tableId:
|
|
16416
|
+
fieldTypes: yG,
|
|
16417
|
+
getRow: aG,
|
|
16418
|
+
isSelectable: FG,
|
|
16419
|
+
isRowSelected: !!AG[uG],
|
|
16420
|
+
handleRowSelectionChange: jG,
|
|
16421
|
+
previewColumn: iG,
|
|
16422
|
+
totalColumns: XW,
|
|
16423
|
+
tableId: cG,
|
|
16424
16424
|
table: e2,
|
|
16425
|
-
showRowExplorer: b && !
|
|
16426
|
-
showColumnExplorer:
|
|
16427
|
-
activeTab:
|
|
16428
|
-
onTabChange:
|
|
16425
|
+
showRowExplorer: b && !LG,
|
|
16426
|
+
showColumnExplorer: IG && !LG,
|
|
16427
|
+
activeTab: hG,
|
|
16428
|
+
onTabChange: gG
|
|
16429
16429
|
})
|
|
16430
16430
|
});
|
|
16431
16431
|
}, [
|
|
16432
|
-
|
|
16432
|
+
pG,
|
|
16433
16433
|
b,
|
|
16434
|
-
|
|
16435
|
-
|
|
16436
|
-
|
|
16434
|
+
IG,
|
|
16435
|
+
uG,
|
|
16436
|
+
MG,
|
|
16437
16437
|
l,
|
|
16438
|
-
|
|
16439
|
-
YW,
|
|
16440
|
-
TG,
|
|
16441
|
-
bG,
|
|
16442
|
-
xG,
|
|
16443
|
-
JW,
|
|
16444
|
-
BW,
|
|
16445
|
-
QW,
|
|
16446
|
-
DG,
|
|
16438
|
+
yG,
|
|
16447
16439
|
aG,
|
|
16448
|
-
|
|
16440
|
+
FG,
|
|
16441
|
+
AG,
|
|
16442
|
+
jG,
|
|
16443
|
+
iG,
|
|
16444
|
+
XW,
|
|
16445
|
+
cG,
|
|
16446
|
+
LG,
|
|
16447
|
+
hG,
|
|
16448
|
+
gG
|
|
16449
16449
|
]);
|
|
16450
16450
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16451
16451
|
children: [
|
|
@@ -16457,27 +16457,27 @@ ${c}
|
|
|
16457
16457
|
" rows."
|
|
16458
16458
|
]
|
|
16459
16459
|
}),
|
|
16460
|
-
|
|
16460
|
+
OG < XW && OG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16461
16461
|
className: "mb-1 rounded",
|
|
16462
16462
|
children: [
|
|
16463
16463
|
"Result clipped. Showing ",
|
|
16464
|
-
|
|
16464
|
+
OG,
|
|
16465
16465
|
" of ",
|
|
16466
|
-
|
|
16466
|
+
XW,
|
|
16467
16467
|
" columns."
|
|
16468
16468
|
]
|
|
16469
16469
|
}),
|
|
16470
|
-
|
|
16470
|
+
_G && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16471
16471
|
className: "mb-1 rounded",
|
|
16472
16472
|
children: [
|
|
16473
16473
|
"Showing the first ",
|
|
16474
16474
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16475
|
-
children: prettyNumber(r.length,
|
|
16475
|
+
children: prettyNumber(r.length, lG)
|
|
16476
16476
|
}),
|
|
16477
16477
|
" ",
|
|
16478
16478
|
"of ",
|
|
16479
16479
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16480
|
-
children: prettyNumber(l,
|
|
16480
|
+
children: prettyNumber(l, lG)
|
|
16481
16481
|
}),
|
|
16482
16482
|
" rows. Increase the table's ",
|
|
16483
16483
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16491,7 +16491,7 @@ ${c}
|
|
|
16491
16491
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16492
16492
|
}),
|
|
16493
16493
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16494
|
-
value:
|
|
16494
|
+
value: vG,
|
|
16495
16495
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16496
16496
|
label: e,
|
|
16497
16497
|
align: "top",
|
|
@@ -16499,14 +16499,14 @@ ${c}
|
|
|
16499
16499
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16500
16500
|
data: r,
|
|
16501
16501
|
rawData: c,
|
|
16502
|
-
columns:
|
|
16502
|
+
columns: kG,
|
|
16503
16503
|
className: R,
|
|
16504
|
-
maxHeight:
|
|
16504
|
+
maxHeight: sG,
|
|
16505
16505
|
sorting: B,
|
|
16506
16506
|
totalRows: l,
|
|
16507
16507
|
sizeBytes: u,
|
|
16508
16508
|
sizeBytesIsLoading: d,
|
|
16509
|
-
totalColumns:
|
|
16509
|
+
totalColumns: XW,
|
|
16510
16510
|
manualSorting: true,
|
|
16511
16511
|
setSorting: H,
|
|
16512
16512
|
pagination: p,
|
|
@@ -16514,37 +16514,37 @@ ${c}
|
|
|
16514
16514
|
selection: m,
|
|
16515
16515
|
paginationState: j,
|
|
16516
16516
|
setPaginationState: M,
|
|
16517
|
-
rowSelection:
|
|
16518
|
-
cellSelection:
|
|
16519
|
-
cellStyling:
|
|
16520
|
-
hoverTemplate:
|
|
16521
|
-
cellHoverTexts:
|
|
16517
|
+
rowSelection: AG,
|
|
16518
|
+
cellSelection: NG,
|
|
16519
|
+
cellStyling: QW,
|
|
16520
|
+
hoverTemplate: $W,
|
|
16521
|
+
cellHoverTexts: eG,
|
|
16522
16522
|
downloadAs: _ ? I : void 0,
|
|
16523
16523
|
showSearch: W,
|
|
16524
16524
|
searchQuery: G,
|
|
16525
16525
|
onSearchQueryChange: q,
|
|
16526
16526
|
showFilters: g,
|
|
16527
|
-
filters:
|
|
16528
|
-
onFiltersChange:
|
|
16529
|
-
calculateTopKRows:
|
|
16527
|
+
filters: VW,
|
|
16528
|
+
onFiltersChange: HW,
|
|
16529
|
+
calculateTopKRows: rG,
|
|
16530
16530
|
reloading: Z,
|
|
16531
|
-
onRowSelectionChange:
|
|
16532
|
-
freezeColumnsLeft:
|
|
16533
|
-
freezeColumnsRight:
|
|
16534
|
-
hiddenColumns:
|
|
16535
|
-
onCellSelectionChange:
|
|
16536
|
-
getRowIds:
|
|
16537
|
-
toggleDisplayHeader:
|
|
16538
|
-
showChartBuilder: S && !
|
|
16539
|
-
isChartBuilderOpen:
|
|
16531
|
+
onRowSelectionChange: jG,
|
|
16532
|
+
freezeColumnsLeft: UW,
|
|
16533
|
+
freezeColumnsRight: WW,
|
|
16534
|
+
hiddenColumns: GW,
|
|
16535
|
+
onCellSelectionChange: PG,
|
|
16536
|
+
getRowIds: ZW,
|
|
16537
|
+
toggleDisplayHeader: tG,
|
|
16538
|
+
showChartBuilder: S && !RG,
|
|
16539
|
+
isChartBuilderOpen: nG,
|
|
16540
16540
|
showPageSizeSelector: v,
|
|
16541
|
-
showTableExplorer: (b ||
|
|
16542
|
-
togglePanel:
|
|
16543
|
-
isPanelOpen:
|
|
16544
|
-
isAnyPanelOpen:
|
|
16545
|
-
viewedRowIdx:
|
|
16546
|
-
onViewedRowChange: (e2) =>
|
|
16547
|
-
renderTableExplorerPanel:
|
|
16541
|
+
showTableExplorer: (b || IG) && !LG && !RG,
|
|
16542
|
+
togglePanel: mG,
|
|
16543
|
+
isPanelOpen: fG,
|
|
16544
|
+
isAnyPanelOpen: pG,
|
|
16545
|
+
viewedRowIdx: uG,
|
|
16546
|
+
onViewedRowChange: (e2) => dG(e2),
|
|
16547
|
+
renderTableExplorerPanel: zG
|
|
16548
16548
|
})
|
|
16549
16549
|
})
|
|
16550
16550
|
})
|
|
@@ -18596,29 +18596,29 @@ ${c}
|
|
|
18596
18596
|
], r[2] = S, r[3] = w);
|
|
18597
18597
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18598
18598
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18599
|
-
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,
|
|
18599
|
+
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, VW] = (0, import_react.useState)(f || EMPTY), HW = (0, import_react.useRef)(null), Z;
|
|
18600
18600
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
18601
18601
|
var _a5;
|
|
18602
|
-
d && e2 !== "transform" && ((_a5 =
|
|
18602
|
+
d && e2 !== "transform" && ((_a5 = HW.current) == null ? void 0 : _a5.submit());
|
|
18603
18603
|
}, r[6] = d, r[7] = Z);
|
|
18604
|
-
let
|
|
18605
|
-
r[8] === q ?
|
|
18606
|
-
|
|
18607
|
-
}, r[8] = q, r[9] =
|
|
18608
|
-
let
|
|
18609
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
18610
|
-
let e2 =
|
|
18604
|
+
let UW = Z, WW = (0, import_react.useRef)(q), GW;
|
|
18605
|
+
r[8] === q ? GW = r[9] : (GW = () => {
|
|
18606
|
+
WW.current = q;
|
|
18607
|
+
}, r[8] = q, r[9] = GW), (0, import_react.useEffect)(GW);
|
|
18608
|
+
let KW;
|
|
18609
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (KW = () => {
|
|
18610
|
+
let e2 = WW.current;
|
|
18611
18611
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
18612
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
18613
|
-
let
|
|
18614
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
18612
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = KW) : KW = r[12];
|
|
18613
|
+
let qW = f == null ? void 0 : f.transforms.length, JW;
|
|
18614
|
+
r[13] !== T || r[14] !== p || r[15] !== qW ? (JW = [
|
|
18615
18615
|
T,
|
|
18616
|
-
|
|
18617
|
-
|
|
18616
|
+
qW,
|
|
18617
|
+
WW,
|
|
18618
18618
|
p
|
|
18619
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
18620
|
-
let
|
|
18621
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18619
|
+
], r[13] = T, r[14] = p, r[15] = qW, r[16] = JW) : JW = r[16], (0, import_react.useEffect)(KW, JW);
|
|
18620
|
+
let YW;
|
|
18621
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (YW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18622
18622
|
value: "transform",
|
|
18623
18623
|
className: "text-xs py-1",
|
|
18624
18624
|
children: [
|
|
@@ -18627,9 +18627,9 @@ ${c}
|
|
|
18627
18627
|
}),
|
|
18628
18628
|
"Transform"
|
|
18629
18629
|
]
|
|
18630
|
-
}), r[17] =
|
|
18631
|
-
let
|
|
18632
|
-
r[18] === H ?
|
|
18630
|
+
}), r[17] = YW) : YW = r[17];
|
|
18631
|
+
let XW;
|
|
18632
|
+
r[18] === H ? XW = r[19] : (XW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18633
18633
|
value: "python-code",
|
|
18634
18634
|
className: "text-xs py-1",
|
|
18635
18635
|
children: [
|
|
@@ -18638,9 +18638,9 @@ ${c}
|
|
|
18638
18638
|
}),
|
|
18639
18639
|
"Python Code"
|
|
18640
18640
|
]
|
|
18641
|
-
}), r[18] = H, r[19] =
|
|
18642
|
-
let
|
|
18643
|
-
r[20] === W ?
|
|
18641
|
+
}), r[18] = H, r[19] = XW);
|
|
18642
|
+
let ZW;
|
|
18643
|
+
r[20] === W ? ZW = r[21] : (ZW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18644
18644
|
value: "sql-code",
|
|
18645
18645
|
className: "text-xs py-1",
|
|
18646
18646
|
children: [
|
|
@@ -18649,54 +18649,54 @@ ${c}
|
|
|
18649
18649
|
}),
|
|
18650
18650
|
"SQL Code"
|
|
18651
18651
|
]
|
|
18652
|
-
}), r[20] = W, r[21] =
|
|
18653
|
-
let
|
|
18654
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18652
|
+
}), r[20] = W, r[21] = ZW);
|
|
18653
|
+
let QW;
|
|
18654
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (QW = (0, import_jsx_runtime.jsx)("div", {
|
|
18655
18655
|
className: "grow"
|
|
18656
|
-
}), r[22] =
|
|
18657
|
-
let
|
|
18658
|
-
r[23] !==
|
|
18656
|
+
}), r[22] = QW) : QW = r[22];
|
|
18657
|
+
let $W;
|
|
18658
|
+
r[23] !== XW || r[24] !== ZW ? ($W = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18659
18659
|
className: "h-8",
|
|
18660
18660
|
children: [
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18661
|
+
YW,
|
|
18662
|
+
XW,
|
|
18663
|
+
ZW,
|
|
18664
|
+
QW
|
|
18665
18665
|
]
|
|
18666
|
-
}), r[23] =
|
|
18667
|
-
let
|
|
18668
|
-
r[26] === j ?
|
|
18666
|
+
}), r[23] = XW, r[24] = ZW, r[25] = $W) : $W = r[25];
|
|
18667
|
+
let eG;
|
|
18668
|
+
r[26] === j ? eG = r[27] : (eG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18669
18669
|
size: "small"
|
|
18670
|
-
}), r[26] = j, r[27] =
|
|
18671
|
-
let
|
|
18672
|
-
r[28] !==
|
|
18670
|
+
}), r[26] = j, r[27] = eG);
|
|
18671
|
+
let tG;
|
|
18672
|
+
r[28] !== $W || r[29] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18673
18673
|
className: "flex items-center gap-2",
|
|
18674
18674
|
children: [
|
|
18675
|
-
|
|
18676
|
-
|
|
18675
|
+
$W,
|
|
18676
|
+
eG
|
|
18677
18677
|
]
|
|
18678
|
-
}), r[28] =
|
|
18679
|
-
let
|
|
18680
|
-
r[31] !== p || r[32] !== f ? (
|
|
18681
|
-
dequal(e2, f) || (p(e2),
|
|
18682
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
18683
|
-
let
|
|
18684
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
18678
|
+
}), r[28] = $W, r[29] = eG, r[30] = tG) : tG = r[30];
|
|
18679
|
+
let nG;
|
|
18680
|
+
r[31] !== p || r[32] !== f ? (nG = (e2) => {
|
|
18681
|
+
dequal(e2, f) || (p(e2), VW(e2));
|
|
18682
|
+
}, r[31] = p, r[32] = f, r[33] = nG) : nG = r[33];
|
|
18683
|
+
let rG;
|
|
18684
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== nG ? (rG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18685
18685
|
value: "transform",
|
|
18686
18686
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18687
18687
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18688
|
-
ref:
|
|
18688
|
+
ref: HW,
|
|
18689
18689
|
initialValue: q,
|
|
18690
18690
|
columns: c,
|
|
18691
|
-
onChange:
|
|
18692
|
-
onInvalidChange:
|
|
18691
|
+
onChange: nG,
|
|
18692
|
+
onInvalidChange: VW,
|
|
18693
18693
|
getColumnValues: h,
|
|
18694
18694
|
columnTypesPerStep: B,
|
|
18695
18695
|
lazy: d
|
|
18696
18696
|
})
|
|
18697
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18698
|
-
let
|
|
18699
|
-
r[41] === H ?
|
|
18697
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = nG, r[40] = rG) : rG = r[40];
|
|
18698
|
+
let iG;
|
|
18699
|
+
r[41] === H ? iG = r[42] : (iG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18700
18700
|
value: "python-code",
|
|
18701
18701
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18702
18702
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18705,9 +18705,9 @@ ${c}
|
|
|
18705
18705
|
code: H,
|
|
18706
18706
|
language: "python"
|
|
18707
18707
|
})
|
|
18708
|
-
}), r[41] = H, r[42] =
|
|
18709
|
-
let
|
|
18710
|
-
r[43] === W ?
|
|
18708
|
+
}), r[41] = H, r[42] = iG);
|
|
18709
|
+
let aG;
|
|
18710
|
+
r[43] === W ? aG = r[44] : (aG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18711
18711
|
value: "sql-code",
|
|
18712
18712
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18713
18713
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18716,35 +18716,35 @@ ${c}
|
|
|
18716
18716
|
code: W,
|
|
18717
18717
|
language: "sql"
|
|
18718
18718
|
})
|
|
18719
|
-
}), r[43] = W, r[44] =
|
|
18720
|
-
let
|
|
18721
|
-
r[45] !==
|
|
18719
|
+
}), r[43] = W, r[44] = aG);
|
|
18720
|
+
let oG;
|
|
18721
|
+
r[45] !== UW || r[46] !== tG || r[47] !== rG || r[48] !== iG || r[49] !== aG ? (oG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18722
18722
|
defaultValue: "transform",
|
|
18723
|
-
onValueChange:
|
|
18723
|
+
onValueChange: UW,
|
|
18724
18724
|
children: [
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
|
|
18725
|
+
tG,
|
|
18726
|
+
rG,
|
|
18727
|
+
iG,
|
|
18728
|
+
aG
|
|
18729
18729
|
]
|
|
18730
|
-
}), r[45] =
|
|
18731
|
-
let
|
|
18732
|
-
r[51] === O ?
|
|
18730
|
+
}), r[45] = UW, r[46] = tG, r[47] = rG, r[48] = iG, r[49] = aG, r[50] = oG) : oG = r[50];
|
|
18731
|
+
let sG;
|
|
18732
|
+
r[51] === O ? sG = r[52] : (sG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18733
18733
|
error: O
|
|
18734
|
-
}), r[51] = O, r[52] =
|
|
18735
|
-
let
|
|
18736
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18734
|
+
}), r[51] = O, r[52] = sG);
|
|
18735
|
+
let cG = I || "", lG = L ?? 0, uG = G ?? 0, dG = R || Arrays.EMPTY, fG = L && L > 5 || false, pG;
|
|
18736
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== cG || r[61] !== lG || r[62] !== uG || r[63] !== dG || r[64] !== fG ? (pG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18737
18737
|
label: null,
|
|
18738
18738
|
className: "rounded-b border-x border-b",
|
|
18739
|
-
data:
|
|
18739
|
+
data: cG,
|
|
18740
18740
|
hasStableRowId: false,
|
|
18741
|
-
totalRows:
|
|
18742
|
-
totalColumns:
|
|
18741
|
+
totalRows: lG,
|
|
18742
|
+
totalColumns: uG,
|
|
18743
18743
|
maxColumns: "all",
|
|
18744
18744
|
pageSize: l,
|
|
18745
18745
|
pagination: true,
|
|
18746
18746
|
fieldTypes: z,
|
|
18747
|
-
rowHeaders:
|
|
18747
|
+
rowHeaders: dG,
|
|
18748
18748
|
showDownload: u,
|
|
18749
18749
|
download_as: _,
|
|
18750
18750
|
get_size_bytes: v,
|
|
@@ -18754,7 +18754,7 @@ ${c}
|
|
|
18754
18754
|
showColumnSummaries: false,
|
|
18755
18755
|
showDataTypes: true,
|
|
18756
18756
|
get_column_summaries: getColumnSummaries,
|
|
18757
|
-
showPageSizeSelector:
|
|
18757
|
+
showPageSizeSelector: fG,
|
|
18758
18758
|
showColumnExplorer: false,
|
|
18759
18759
|
showRowExplorer: true,
|
|
18760
18760
|
showChartBuilder: false,
|
|
@@ -18763,15 +18763,15 @@ ${c}
|
|
|
18763
18763
|
selection: null,
|
|
18764
18764
|
lazy: false,
|
|
18765
18765
|
host: y
|
|
18766
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18767
|
-
let
|
|
18768
|
-
return r[66] !==
|
|
18766
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = cG, r[61] = lG, r[62] = uG, r[63] = dG, r[64] = fG, r[65] = pG) : pG = r[65];
|
|
18767
|
+
let mG;
|
|
18768
|
+
return r[66] !== oG || r[67] !== sG || r[68] !== pG ? (mG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18769
18769
|
children: [
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18770
|
+
oG,
|
|
18771
|
+
sG,
|
|
18772
|
+
pG
|
|
18773
18773
|
]
|
|
18774
|
-
}), r[66] =
|
|
18774
|
+
}), r[66] = oG, r[67] = sG, r[68] = pG, r[69] = mG) : mG = r[69], mG;
|
|
18775
18775
|
});
|
|
18776
18776
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18777
18777
|
function getColumnSummaries() {
|
|
@@ -18962,23 +18962,23 @@ ${c}
|
|
|
18962
18962
|
}, [
|
|
18963
18963
|
H
|
|
18964
18964
|
]);
|
|
18965
|
-
let
|
|
18965
|
+
let VW = (R == null ? void 0 : R.files) ?? [], HW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", UW = l === "file" || l === "all", WW = VW.filter((e2) => Z && e2.is_directory || UW && !e2.is_directory), GW = WW.length > 0 && WW.every((e2) => HW.has(e2.path));
|
|
18966
18966
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18967
18967
|
kind: "danger",
|
|
18968
18968
|
children: z.message
|
|
18969
18969
|
});
|
|
18970
|
-
let
|
|
18970
|
+
let KW = PathBuilder.guessDeliminator(c).deliminator, qW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18971
18971
|
children: e2.path
|
|
18972
18972
|
}, e2.id));
|
|
18973
|
-
function
|
|
18973
|
+
function JW(e2) {
|
|
18974
18974
|
var _a6;
|
|
18975
18975
|
if (v) return;
|
|
18976
18976
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18977
|
-
if (g ===
|
|
18977
|
+
if (g === KW) {
|
|
18978
18978
|
y(false);
|
|
18979
18979
|
return;
|
|
18980
18980
|
}
|
|
18981
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18981
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = KW);
|
|
18982
18982
|
}
|
|
18983
18983
|
let r2 = e2.length < c.length;
|
|
18984
18984
|
if (f && r2) {
|
|
@@ -18991,7 +18991,7 @@ ${c}
|
|
|
18991
18991
|
}
|
|
18992
18992
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
18993
18993
|
}
|
|
18994
|
-
function
|
|
18994
|
+
function XW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
18995
18995
|
return {
|
|
18996
18996
|
id: e2,
|
|
18997
18997
|
name: r2,
|
|
@@ -18999,27 +18999,27 @@ ${c}
|
|
|
18999
18999
|
is_directory: c2
|
|
19000
19000
|
};
|
|
19001
19001
|
}
|
|
19002
|
-
function
|
|
19003
|
-
let f2 =
|
|
19002
|
+
function ZW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19003
|
+
let f2 = XW({
|
|
19004
19004
|
path: c2,
|
|
19005
19005
|
name: l2,
|
|
19006
19006
|
isDirectory: d2
|
|
19007
19007
|
});
|
|
19008
|
-
|
|
19008
|
+
HW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19009
19009
|
...e,
|
|
19010
19010
|
f2
|
|
19011
19011
|
] : [
|
|
19012
19012
|
f2
|
|
19013
19013
|
]);
|
|
19014
19014
|
}
|
|
19015
|
-
function
|
|
19015
|
+
function QW() {
|
|
19016
19016
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19017
19017
|
}
|
|
19018
|
-
function
|
|
19018
|
+
function $W() {
|
|
19019
19019
|
let c2 = [];
|
|
19020
|
-
for (let e2 of
|
|
19021
|
-
if (!
|
|
19022
|
-
let r2 =
|
|
19020
|
+
for (let e2 of VW) {
|
|
19021
|
+
if (!Z && e2.is_directory || HW.has(e2.path)) continue;
|
|
19022
|
+
let r2 = XW({
|
|
19023
19023
|
path: e2.path,
|
|
19024
19024
|
name: e2.name,
|
|
19025
19025
|
isDirectory: e2.is_directory
|
|
@@ -19031,20 +19031,20 @@ ${c}
|
|
|
19031
19031
|
...c2
|
|
19032
19032
|
]);
|
|
19033
19033
|
}
|
|
19034
|
-
let
|
|
19034
|
+
let eG = [
|
|
19035
19035
|
{
|
|
19036
19036
|
key: "parent",
|
|
19037
19037
|
name: PARENT_DIRECTORY,
|
|
19038
19038
|
Icon: CornerLeftUp,
|
|
19039
19039
|
isSelected: false,
|
|
19040
19040
|
canSelect: false,
|
|
19041
|
-
onPrimary: () =>
|
|
19041
|
+
onPrimary: () => JW(PARENT_DIRECTORY),
|
|
19042
19042
|
onToggleSelect: null
|
|
19043
19043
|
},
|
|
19044
|
-
...
|
|
19044
|
+
...VW.map((e2) => {
|
|
19045
19045
|
let r2 = e2.path;
|
|
19046
19046
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19047
|
-
let c2 =
|
|
19047
|
+
let c2 = Z && e2.is_directory || UW && !e2.is_directory, l2 = HW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => ZW({
|
|
19048
19048
|
path: r2,
|
|
19049
19049
|
name: e2.name,
|
|
19050
19050
|
isDirectory: e2.is_directory
|
|
@@ -19055,46 +19055,46 @@ ${c}
|
|
|
19055
19055
|
Icon: FILE_ICON[u2],
|
|
19056
19056
|
isSelected: l2,
|
|
19057
19057
|
canSelect: c2,
|
|
19058
|
-
onPrimary: e2.is_directory ? () =>
|
|
19058
|
+
onPrimary: e2.is_directory ? () => JW(r2) : c2 ? d2 : () => {
|
|
19059
19059
|
},
|
|
19060
19060
|
onToggleSelect: c2 ? d2 : null
|
|
19061
19061
|
};
|
|
19062
19062
|
})
|
|
19063
19063
|
];
|
|
19064
|
-
function
|
|
19064
|
+
function tG(e2) {
|
|
19065
19065
|
var _a6;
|
|
19066
19066
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19067
19067
|
}
|
|
19068
|
-
function
|
|
19068
|
+
function nG(e2, r2) {
|
|
19069
19069
|
var _a6, _b3;
|
|
19070
|
-
let c2 =
|
|
19070
|
+
let c2 = eG.length - 1;
|
|
19071
19071
|
switch (e2.key) {
|
|
19072
19072
|
case "ArrowDown":
|
|
19073
|
-
e2.preventDefault(),
|
|
19073
|
+
e2.preventDefault(), tG(Math.min(r2 + 1, c2));
|
|
19074
19074
|
break;
|
|
19075
19075
|
case "ArrowUp":
|
|
19076
|
-
e2.preventDefault(),
|
|
19076
|
+
e2.preventDefault(), tG(Math.max(r2 - 1, 0));
|
|
19077
19077
|
break;
|
|
19078
19078
|
case "Home":
|
|
19079
|
-
e2.preventDefault(),
|
|
19079
|
+
e2.preventDefault(), tG(0);
|
|
19080
19080
|
break;
|
|
19081
19081
|
case "End":
|
|
19082
|
-
e2.preventDefault(),
|
|
19082
|
+
e2.preventDefault(), tG(c2);
|
|
19083
19083
|
break;
|
|
19084
19084
|
case "Enter":
|
|
19085
|
-
e2.preventDefault(),
|
|
19085
|
+
e2.preventDefault(), eG[r2].onPrimary();
|
|
19086
19086
|
break;
|
|
19087
19087
|
case " ":
|
|
19088
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19088
|
+
e2.preventDefault(), (_b3 = (_a6 = eG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19089
19089
|
break;
|
|
19090
19090
|
}
|
|
19091
19091
|
}
|
|
19092
|
-
let { parentDirectories:
|
|
19092
|
+
let { parentDirectories: rG } = getProtocolAndParentDirectories({
|
|
19093
19093
|
path: g,
|
|
19094
|
-
delimiter:
|
|
19094
|
+
delimiter: KW,
|
|
19095
19095
|
initialPath: c,
|
|
19096
19096
|
restrictNavigation: f
|
|
19097
|
-
}),
|
|
19097
|
+
}), iG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19098
19098
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19099
19099
|
children: [
|
|
19100
19100
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19104,7 +19104,7 @@ ${c}
|
|
|
19104
19104
|
(() => {
|
|
19105
19105
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19106
19106
|
children: renderHTML({
|
|
19107
|
-
html: d ?? `Select ${
|
|
19107
|
+
html: d ?? `Select ${iG.join(" and ", 2)}...`
|
|
19108
19108
|
})
|
|
19109
19109
|
});
|
|
19110
19110
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19118,8 +19118,8 @@ ${c}
|
|
|
19118
19118
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19119
19119
|
size: "xs",
|
|
19120
19120
|
variant: "link",
|
|
19121
|
-
onClick:
|
|
19122
|
-
children:
|
|
19121
|
+
onClick: GW ? QW : $W,
|
|
19122
|
+
children: GW ? "Deselect all" : "Select all"
|
|
19123
19123
|
})
|
|
19124
19124
|
})
|
|
19125
19125
|
]
|
|
@@ -19129,15 +19129,15 @@ ${c}
|
|
|
19129
19129
|
className: "mt-2 w-full",
|
|
19130
19130
|
placeholder: g,
|
|
19131
19131
|
value: g,
|
|
19132
|
-
onChange: (e2) =>
|
|
19133
|
-
children:
|
|
19132
|
+
onChange: (e2) => JW(e2.target.value),
|
|
19133
|
+
children: rG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19134
19134
|
value: e2,
|
|
19135
19135
|
children: e2
|
|
19136
19136
|
}, e2))
|
|
19137
19137
|
}),
|
|
19138
19138
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19139
19139
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19140
|
-
children: R.is_truncated ? `Showing ${
|
|
19140
|
+
children: R.is_truncated ? `Showing ${VW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19141
19141
|
}),
|
|
19142
19142
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19143
19143
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19166,14 +19166,14 @@ ${c}
|
|
|
19166
19166
|
"aria-label": "File browser",
|
|
19167
19167
|
"aria-multiselectable": u,
|
|
19168
19168
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19169
|
-
children:
|
|
19169
|
+
children: eG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19170
19170
|
role: "row",
|
|
19171
19171
|
ref: (e3) => {
|
|
19172
19172
|
O.current[r2] = e3;
|
|
19173
19173
|
},
|
|
19174
19174
|
tabIndex: r2 === T ? 0 : -1,
|
|
19175
19175
|
onFocus: () => E(r2),
|
|
19176
|
-
onKeyDown: (e3) =>
|
|
19176
|
+
onKeyDown: (e3) => nG(e3, r2),
|
|
19177
19177
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19178
19178
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19179
19179
|
}),
|
|
@@ -19216,7 +19216,7 @@ ${c}
|
|
|
19216
19216
|
children: [
|
|
19217
19217
|
e.length,
|
|
19218
19218
|
" ",
|
|
19219
|
-
|
|
19219
|
+
iG.join(" or ", e.length),
|
|
19220
19220
|
" ",
|
|
19221
19221
|
"selected"
|
|
19222
19222
|
]
|
|
@@ -19236,7 +19236,7 @@ ${c}
|
|
|
19236
19236
|
marginBlock: 0
|
|
19237
19237
|
},
|
|
19238
19238
|
className: "m-0 text-xs text-muted-foreground",
|
|
19239
|
-
children:
|
|
19239
|
+
children: qW
|
|
19240
19240
|
})
|
|
19241
19241
|
})
|
|
19242
19242
|
]
|
|
@@ -24618,55 +24618,55 @@ ${c}
|
|
|
24618
24618
|
return typeof S == "function" ? S : noop$2;
|
|
24619
24619
|
}, [
|
|
24620
24620
|
S
|
|
24621
|
-
]), q = (0, import_react.useRef)(null),
|
|
24622
|
-
!
|
|
24623
|
-
|
|
24621
|
+
]), q = (0, import_react.useRef)(null), VW = (0, import_react.useRef)(null), HW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = HW[0], UW = HW[1], WW = Z.isFocused, GW = Z.isFileDialogActive, KW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), qW = function() {
|
|
24622
|
+
!KW.current && GW && setTimeout(function() {
|
|
24623
|
+
VW.current && (VW.current.files.length || (UW({
|
|
24624
24624
|
type: "closeDialog"
|
|
24625
24625
|
}), G()));
|
|
24626
24626
|
}, 300);
|
|
24627
24627
|
};
|
|
24628
24628
|
(0, import_react.useEffect)(function() {
|
|
24629
|
-
return window.addEventListener("focus",
|
|
24630
|
-
window.removeEventListener("focus",
|
|
24629
|
+
return window.addEventListener("focus", qW, false), function() {
|
|
24630
|
+
window.removeEventListener("focus", qW, false);
|
|
24631
24631
|
};
|
|
24632
24632
|
}, [
|
|
24633
|
-
|
|
24634
|
-
|
|
24633
|
+
VW,
|
|
24634
|
+
GW,
|
|
24635
24635
|
G,
|
|
24636
|
-
|
|
24636
|
+
KW
|
|
24637
24637
|
]);
|
|
24638
|
-
var
|
|
24639
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24638
|
+
var JW = (0, import_react.useRef)([]), YW = (0, import_react.useRef)([]), XW = function(e2) {
|
|
24639
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), JW.current = []);
|
|
24640
24640
|
};
|
|
24641
24641
|
(0, import_react.useEffect)(function() {
|
|
24642
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24643
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24642
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", XW, false)), function() {
|
|
24643
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", XW));
|
|
24644
24644
|
};
|
|
24645
24645
|
}, [
|
|
24646
24646
|
q,
|
|
24647
24647
|
O
|
|
24648
24648
|
]), (0, import_react.useEffect)(function() {
|
|
24649
24649
|
var e2 = function(e3) {
|
|
24650
|
-
|
|
24650
|
+
YW.current = [].concat(_toConsumableArray(YW.current), [
|
|
24651
24651
|
e3.target
|
|
24652
|
-
]), isEvtWithFiles(e3) &&
|
|
24652
|
+
]), isEvtWithFiles(e3) && UW({
|
|
24653
24653
|
isDragGlobal: true,
|
|
24654
24654
|
type: "setDragGlobal"
|
|
24655
24655
|
});
|
|
24656
24656
|
}, r2 = function(e3) {
|
|
24657
|
-
|
|
24657
|
+
YW.current = YW.current.filter(function(r3) {
|
|
24658
24658
|
return r3 !== e3.target && r3 !== null;
|
|
24659
|
-
}), !(
|
|
24659
|
+
}), !(YW.current.length > 0) && UW({
|
|
24660
24660
|
isDragGlobal: false,
|
|
24661
24661
|
type: "setDragGlobal"
|
|
24662
24662
|
});
|
|
24663
24663
|
}, c2 = function() {
|
|
24664
|
-
|
|
24664
|
+
YW.current = [], UW({
|
|
24665
24665
|
isDragGlobal: false,
|
|
24666
24666
|
type: "setDragGlobal"
|
|
24667
24667
|
});
|
|
24668
24668
|
}, l2 = function() {
|
|
24669
|
-
|
|
24669
|
+
YW.current = [], UW({
|
|
24670
24670
|
isDragGlobal: false,
|
|
24671
24671
|
type: "setDragGlobal"
|
|
24672
24672
|
});
|
|
@@ -24684,12 +24684,12 @@ ${c}
|
|
|
24684
24684
|
E,
|
|
24685
24685
|
l
|
|
24686
24686
|
]);
|
|
24687
|
-
var
|
|
24687
|
+
var ZW = (0, import_react.useCallback)(function(e2) {
|
|
24688
24688
|
R ? R(e2) : console.error(e2);
|
|
24689
24689
|
}, [
|
|
24690
24690
|
R
|
|
24691
|
-
]),
|
|
24692
|
-
e2.preventDefault(), e2.persist(),
|
|
24691
|
+
]), QW = (0, import_react.useCallback)(function(e2) {
|
|
24692
|
+
e2.preventDefault(), e2.persist(), dG(e2), JW.current = [].concat(_toConsumableArray(JW.current), [
|
|
24693
24693
|
e2.target
|
|
24694
24694
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24695
24695
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24702,7 +24702,7 @@ ${c}
|
|
|
24702
24702
|
maxFiles: m,
|
|
24703
24703
|
validator: z
|
|
24704
24704
|
});
|
|
24705
|
-
|
|
24705
|
+
UW({
|
|
24706
24706
|
isDragAccept: l2,
|
|
24707
24707
|
isDragReject: c2 > 0 && !l2,
|
|
24708
24708
|
isDragActive: true,
|
|
@@ -24710,12 +24710,12 @@ ${c}
|
|
|
24710
24710
|
}), h && h(e2);
|
|
24711
24711
|
}
|
|
24712
24712
|
}).catch(function(e3) {
|
|
24713
|
-
return
|
|
24713
|
+
return ZW(e3);
|
|
24714
24714
|
});
|
|
24715
24715
|
}, [
|
|
24716
24716
|
u,
|
|
24717
24717
|
h,
|
|
24718
|
-
|
|
24718
|
+
ZW,
|
|
24719
24719
|
L,
|
|
24720
24720
|
B,
|
|
24721
24721
|
f,
|
|
@@ -24723,8 +24723,8 @@ ${c}
|
|
|
24723
24723
|
p,
|
|
24724
24724
|
m,
|
|
24725
24725
|
z
|
|
24726
|
-
]),
|
|
24727
|
-
e2.preventDefault(), e2.persist(),
|
|
24726
|
+
]), $W = (0, import_react.useCallback)(function(e2) {
|
|
24727
|
+
e2.preventDefault(), e2.persist(), dG(e2);
|
|
24728
24728
|
var r2 = isEvtWithFiles(e2);
|
|
24729
24729
|
if (r2 && e2.dataTransfer) try {
|
|
24730
24730
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24734,12 +24734,12 @@ ${c}
|
|
|
24734
24734
|
}, [
|
|
24735
24735
|
_,
|
|
24736
24736
|
L
|
|
24737
|
-
]),
|
|
24738
|
-
e2.preventDefault(), e2.persist(),
|
|
24739
|
-
var r2 =
|
|
24737
|
+
]), eG = (0, import_react.useCallback)(function(e2) {
|
|
24738
|
+
e2.preventDefault(), e2.persist(), dG(e2);
|
|
24739
|
+
var r2 = JW.current.filter(function(e3) {
|
|
24740
24740
|
return q.current && q.current.contains(e3);
|
|
24741
24741
|
}), c2 = r2.indexOf(e2.target);
|
|
24742
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24742
|
+
c2 !== -1 && r2.splice(c2, 1), JW.current = r2, !(r2.length > 0) && (UW({
|
|
24743
24743
|
type: "setDraggedFiles",
|
|
24744
24744
|
isDragActive: false,
|
|
24745
24745
|
isDragAccept: false,
|
|
@@ -24749,7 +24749,7 @@ ${c}
|
|
|
24749
24749
|
q,
|
|
24750
24750
|
g,
|
|
24751
24751
|
L
|
|
24752
|
-
]),
|
|
24752
|
+
]), tG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24753
24753
|
var c2 = [], l2 = [];
|
|
24754
24754
|
e2.forEach(function(e3) {
|
|
24755
24755
|
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;
|
|
@@ -24773,14 +24773,14 @@ ${c}
|
|
|
24773
24773
|
TOO_MANY_FILES_REJECTION
|
|
24774
24774
|
]
|
|
24775
24775
|
});
|
|
24776
|
-
}), c2.splice(0)),
|
|
24776
|
+
}), c2.splice(0)), UW({
|
|
24777
24777
|
acceptedFiles: c2,
|
|
24778
24778
|
fileRejections: l2,
|
|
24779
24779
|
isDragReject: l2.length > 0,
|
|
24780
24780
|
type: "setFiles"
|
|
24781
24781
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24782
24782
|
}, [
|
|
24783
|
-
|
|
24783
|
+
UW,
|
|
24784
24784
|
p,
|
|
24785
24785
|
B,
|
|
24786
24786
|
f,
|
|
@@ -24790,22 +24790,22 @@ ${c}
|
|
|
24790
24790
|
y,
|
|
24791
24791
|
b,
|
|
24792
24792
|
z
|
|
24793
|
-
]),
|
|
24794
|
-
e2.preventDefault(), e2.persist(),
|
|
24795
|
-
isPropagationStopped(e2) && !L ||
|
|
24793
|
+
]), nG = (0, import_react.useCallback)(function(e2) {
|
|
24794
|
+
e2.preventDefault(), e2.persist(), dG(e2), JW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24795
|
+
isPropagationStopped(e2) && !L || tG(r2, e2);
|
|
24796
24796
|
}).catch(function(e3) {
|
|
24797
|
-
return
|
|
24798
|
-
}),
|
|
24797
|
+
return ZW(e3);
|
|
24798
|
+
}), UW({
|
|
24799
24799
|
type: "reset"
|
|
24800
24800
|
});
|
|
24801
24801
|
}, [
|
|
24802
24802
|
u,
|
|
24803
|
-
|
|
24804
|
-
|
|
24803
|
+
tG,
|
|
24804
|
+
ZW,
|
|
24805
24805
|
L
|
|
24806
|
-
]),
|
|
24807
|
-
if (
|
|
24808
|
-
|
|
24806
|
+
]), rG = (0, import_react.useCallback)(function() {
|
|
24807
|
+
if (KW.current) {
|
|
24808
|
+
UW({
|
|
24809
24809
|
type: "openDialog"
|
|
24810
24810
|
}), W();
|
|
24811
24811
|
var e2 = {
|
|
@@ -24815,66 +24815,66 @@ ${c}
|
|
|
24815
24815
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24816
24816
|
return u(e3);
|
|
24817
24817
|
}).then(function(e3) {
|
|
24818
|
-
|
|
24818
|
+
tG(e3, null), UW({
|
|
24819
24819
|
type: "closeDialog"
|
|
24820
24820
|
});
|
|
24821
24821
|
}).catch(function(e3) {
|
|
24822
|
-
isAbort(e3) ? (G(e3),
|
|
24822
|
+
isAbort(e3) ? (G(e3), UW({
|
|
24823
24823
|
type: "closeDialog"
|
|
24824
|
-
})) : isSecurityError(e3) ? (
|
|
24824
|
+
})) : isSecurityError(e3) ? (KW.current = false, VW.current ? (VW.current.value = null, VW.current.click()) : ZW(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."))) : ZW(e3);
|
|
24825
24825
|
});
|
|
24826
24826
|
return;
|
|
24827
24827
|
}
|
|
24828
|
-
|
|
24828
|
+
VW.current && (UW({
|
|
24829
24829
|
type: "openDialog"
|
|
24830
|
-
}), W(),
|
|
24830
|
+
}), W(), VW.current.value = null, VW.current.click());
|
|
24831
24831
|
}, [
|
|
24832
|
-
|
|
24832
|
+
UW,
|
|
24833
24833
|
W,
|
|
24834
24834
|
G,
|
|
24835
24835
|
T,
|
|
24836
|
-
|
|
24837
|
-
|
|
24836
|
+
tG,
|
|
24837
|
+
ZW,
|
|
24838
24838
|
H,
|
|
24839
24839
|
p
|
|
24840
|
-
]),
|
|
24841
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24840
|
+
]), iG = (0, import_react.useCallback)(function(e2) {
|
|
24841
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), rG());
|
|
24842
24842
|
}, [
|
|
24843
24843
|
q,
|
|
24844
|
-
|
|
24845
|
-
]),
|
|
24846
|
-
|
|
24844
|
+
rG
|
|
24845
|
+
]), aG = (0, import_react.useCallback)(function() {
|
|
24846
|
+
UW({
|
|
24847
24847
|
type: "focus"
|
|
24848
24848
|
});
|
|
24849
|
-
}, []),
|
|
24850
|
-
|
|
24849
|
+
}, []), oG = (0, import_react.useCallback)(function() {
|
|
24850
|
+
UW({
|
|
24851
24851
|
type: "blur"
|
|
24852
24852
|
});
|
|
24853
|
-
}, []),
|
|
24854
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24853
|
+
}, []), sG = (0, import_react.useCallback)(function() {
|
|
24854
|
+
j || (isIeOrEdge() ? setTimeout(rG, 0) : rG());
|
|
24855
24855
|
}, [
|
|
24856
24856
|
j,
|
|
24857
|
-
|
|
24858
|
-
]),
|
|
24857
|
+
rG
|
|
24858
|
+
]), cG = function(e2) {
|
|
24859
24859
|
return l ? null : e2;
|
|
24860
|
-
},
|
|
24861
|
-
return M ? null :
|
|
24862
|
-
},
|
|
24863
|
-
return I ? null :
|
|
24864
|
-
},
|
|
24860
|
+
}, lG = function(e2) {
|
|
24861
|
+
return M ? null : cG(e2);
|
|
24862
|
+
}, uG = function(e2) {
|
|
24863
|
+
return I ? null : cG(e2);
|
|
24864
|
+
}, dG = function(e2) {
|
|
24865
24865
|
L && e2.stopPropagation();
|
|
24866
|
-
},
|
|
24866
|
+
}, fG = (0, import_react.useMemo)(function() {
|
|
24867
24867
|
return function() {
|
|
24868
24868
|
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);
|
|
24869
24869
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24870
|
-
onKeyDown:
|
|
24871
|
-
onFocus:
|
|
24872
|
-
onBlur:
|
|
24873
|
-
onClick:
|
|
24874
|
-
onDragEnter:
|
|
24875
|
-
onDragOver:
|
|
24876
|
-
onDragLeave:
|
|
24877
|
-
onDrop:
|
|
24870
|
+
onKeyDown: lG(composeEventHandlers(d2, iG)),
|
|
24871
|
+
onFocus: lG(composeEventHandlers(f2, aG)),
|
|
24872
|
+
onBlur: lG(composeEventHandlers(p2, oG)),
|
|
24873
|
+
onClick: cG(composeEventHandlers(m2, sG)),
|
|
24874
|
+
onDragEnter: uG(composeEventHandlers(h2, QW)),
|
|
24875
|
+
onDragOver: uG(composeEventHandlers(g2, $W)),
|
|
24876
|
+
onDragLeave: uG(composeEventHandlers(_2, eG)),
|
|
24877
|
+
onDrop: uG(composeEventHandlers(v2, nG)),
|
|
24878
24878
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24879
24879
|
}, c2, q), !l && !M ? {
|
|
24880
24880
|
tabIndex: 0
|
|
@@ -24882,20 +24882,20 @@ ${c}
|
|
|
24882
24882
|
};
|
|
24883
24883
|
}, [
|
|
24884
24884
|
q,
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
|
|
24885
|
+
iG,
|
|
24886
|
+
aG,
|
|
24887
|
+
oG,
|
|
24888
|
+
sG,
|
|
24889
|
+
QW,
|
|
24890
|
+
$W,
|
|
24891
|
+
eG,
|
|
24892
|
+
nG,
|
|
24893
24893
|
M,
|
|
24894
24894
|
I,
|
|
24895
24895
|
l
|
|
24896
|
-
]),
|
|
24896
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24897
24897
|
e2.stopPropagation();
|
|
24898
|
-
}, []),
|
|
24898
|
+
}, []), mG = (0, import_react.useMemo)(function() {
|
|
24899
24899
|
return function() {
|
|
24900
24900
|
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);
|
|
24901
24901
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24914,25 +24914,25 @@ ${c}
|
|
|
24914
24914
|
width: "1px",
|
|
24915
24915
|
whiteSpace: "nowrap"
|
|
24916
24916
|
},
|
|
24917
|
-
onChange:
|
|
24918
|
-
onClick:
|
|
24917
|
+
onChange: cG(composeEventHandlers(l2, nG)),
|
|
24918
|
+
onClick: cG(composeEventHandlers(u2, pG)),
|
|
24919
24919
|
tabIndex: -1
|
|
24920
|
-
}, c2,
|
|
24920
|
+
}, c2, VW)), d2);
|
|
24921
24921
|
};
|
|
24922
24922
|
}, [
|
|
24923
|
-
|
|
24923
|
+
VW,
|
|
24924
24924
|
c,
|
|
24925
24925
|
p,
|
|
24926
|
-
|
|
24926
|
+
nG,
|
|
24927
24927
|
l
|
|
24928
24928
|
]);
|
|
24929
24929
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
24930
|
-
isFocused:
|
|
24931
|
-
getRootProps:
|
|
24932
|
-
getInputProps:
|
|
24930
|
+
isFocused: WW && !l,
|
|
24931
|
+
getRootProps: fG,
|
|
24932
|
+
getInputProps: mG,
|
|
24933
24933
|
rootRef: q,
|
|
24934
|
-
inputRef:
|
|
24935
|
-
open:
|
|
24934
|
+
inputRef: VW,
|
|
24935
|
+
open: cG(rG)
|
|
24936
24936
|
});
|
|
24937
24937
|
}
|
|
24938
24938
|
function reducer$2(e, r) {
|
|
@@ -25164,47 +25164,47 @@ ${c}
|
|
|
25164
25164
|
html: I
|
|
25165
25165
|
})
|
|
25166
25166
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25167
|
-
let q = w && "text-primary",
|
|
25168
|
-
r[48] !== q || r[49] !==
|
|
25167
|
+
let q = w && "text-primary", VW = T && "text-destructive", HW;
|
|
25168
|
+
r[48] !== q || r[49] !== VW ? (HW = cn(q, VW), r[48] = q, r[49] = VW, r[50] = HW) : HW = r[50];
|
|
25169
25169
|
let Z;
|
|
25170
|
-
r[51] ===
|
|
25170
|
+
r[51] === HW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25171
25171
|
strokeWidth: 1.4,
|
|
25172
|
-
className:
|
|
25173
|
-
}), r[51] =
|
|
25174
|
-
let
|
|
25175
|
-
r[53] !==
|
|
25176
|
-
let
|
|
25177
|
-
r[56] ===
|
|
25172
|
+
className: HW
|
|
25173
|
+
}), r[51] = HW, r[52] = Z);
|
|
25174
|
+
let UW = w && "text-primary", WW = T && "text-destructive", GW;
|
|
25175
|
+
r[53] !== UW || r[54] !== WW ? (GW = cn(UW, WW), r[53] = UW, r[54] = WW, r[55] = GW) : GW = r[55];
|
|
25176
|
+
let KW;
|
|
25177
|
+
r[56] === GW ? KW = r[57] : (KW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25178
25178
|
strokeWidth: 1.4,
|
|
25179
|
-
className:
|
|
25180
|
-
}), r[56] =
|
|
25181
|
-
let
|
|
25182
|
-
r[58] !== Z || r[59] !==
|
|
25179
|
+
className: GW
|
|
25180
|
+
}), r[56] = GW, r[57] = KW);
|
|
25181
|
+
let qW;
|
|
25182
|
+
r[58] !== Z || r[59] !== KW ? (qW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25183
25183
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25184
25184
|
children: [
|
|
25185
25185
|
Z,
|
|
25186
|
-
|
|
25186
|
+
KW
|
|
25187
25187
|
]
|
|
25188
|
-
}), r[58] = Z, r[59] =
|
|
25189
|
-
let
|
|
25190
|
-
r[61] !== G || r[62] !==
|
|
25188
|
+
}), r[58] = Z, r[59] = KW, r[60] = qW) : qW = r[60];
|
|
25189
|
+
let JW;
|
|
25190
|
+
r[61] !== G || r[62] !== qW ? (JW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25191
25191
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25192
25192
|
children: [
|
|
25193
25193
|
G,
|
|
25194
|
-
|
|
25194
|
+
qW
|
|
25195
25195
|
]
|
|
25196
|
-
}), r[61] = G, r[62] =
|
|
25197
|
-
let
|
|
25198
|
-
r[64] !== W || r[65] !==
|
|
25196
|
+
}), r[61] = G, r[62] = qW, r[63] = JW) : JW = r[63];
|
|
25197
|
+
let XW;
|
|
25198
|
+
r[64] !== W || r[65] !== JW || r[66] !== z || r[67] !== B ? (XW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25199
25199
|
className: z,
|
|
25200
25200
|
...B,
|
|
25201
25201
|
children: [
|
|
25202
25202
|
W,
|
|
25203
|
-
|
|
25203
|
+
JW
|
|
25204
25204
|
]
|
|
25205
|
-
}), r[64] = W, r[65] =
|
|
25206
|
-
let
|
|
25207
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
25205
|
+
}), r[64] = W, r[65] = JW, r[66] = z, r[67] = B, r[68] = XW) : XW = r[68];
|
|
25206
|
+
let ZW;
|
|
25207
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (ZW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25208
25208
|
className: "flex flex-row gap-1",
|
|
25209
25209
|
children: [
|
|
25210
25210
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25240,17 +25240,17 @@ ${c}
|
|
|
25240
25240
|
})
|
|
25241
25241
|
})
|
|
25242
25242
|
]
|
|
25243
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
25244
|
-
let
|
|
25245
|
-
return r[75] !==
|
|
25243
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = ZW) : ZW = r[74];
|
|
25244
|
+
let QW;
|
|
25245
|
+
return r[75] !== XW || r[76] !== ZW ? (QW = (0, import_jsx_runtime.jsx)("section", {
|
|
25246
25246
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25247
25247
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25248
25248
|
children: [
|
|
25249
|
-
|
|
25250
|
-
|
|
25249
|
+
XW,
|
|
25250
|
+
ZW
|
|
25251
25251
|
]
|
|
25252
25252
|
})
|
|
25253
|
-
}), r[75] =
|
|
25253
|
+
}), r[75] = XW, r[76] = ZW, r[77] = QW) : QW = r[77], QW;
|
|
25254
25254
|
};
|
|
25255
25255
|
function _temp$11(e) {
|
|
25256
25256
|
Logger.error(e), toast({
|
|
@@ -25346,75 +25346,75 @@ ${c}
|
|
|
25346
25346
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
25347
25347
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
25348
25348
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
25349
|
-
let
|
|
25350
|
-
r[13] === f ?
|
|
25349
|
+
let VW;
|
|
25350
|
+
r[13] === f ? VW = r[14] : (VW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25351
25351
|
className: "text-center",
|
|
25352
25352
|
children: renderHTML({
|
|
25353
25353
|
html: f
|
|
25354
25354
|
})
|
|
25355
|
-
}), r[13] = f, r[14] =
|
|
25356
|
-
let
|
|
25357
|
-
r[15] === L ?
|
|
25355
|
+
}), r[13] = f, r[14] = VW);
|
|
25356
|
+
let HW;
|
|
25357
|
+
r[15] === L ? HW = r[16] : (HW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25358
25358
|
kind: "danger",
|
|
25359
25359
|
className: "rounded",
|
|
25360
25360
|
children: L ?? "Invalid input"
|
|
25361
|
-
}), r[15] = L, r[16] =
|
|
25361
|
+
}), r[15] = L, r[16] = HW);
|
|
25362
25362
|
let Z;
|
|
25363
25363
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
25364
25364
|
children: c
|
|
25365
25365
|
}), r[17] = c, r[18] = Z);
|
|
25366
|
-
let
|
|
25367
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
25366
|
+
let UW;
|
|
25367
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (UW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25368
25368
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25369
25369
|
variant: "text",
|
|
25370
25370
|
onClick: (e2) => {
|
|
25371
25371
|
e2.preventDefault(), B();
|
|
25372
25372
|
},
|
|
25373
25373
|
children: S
|
|
25374
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
25375
|
-
let
|
|
25376
|
-
r[23] === h ?
|
|
25374
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = UW) : UW = r[22];
|
|
25375
|
+
let WW = v || h, GW;
|
|
25376
|
+
r[23] === h ? GW = r[24] : (GW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25377
25377
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25378
|
-
}), r[23] = h, r[24] =
|
|
25379
|
-
let
|
|
25380
|
-
r[25] !== g || r[26] !==
|
|
25378
|
+
}), r[23] = h, r[24] = GW);
|
|
25379
|
+
let KW;
|
|
25380
|
+
r[25] !== g || r[26] !== WW || r[27] !== GW || r[28] !== I ? (KW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25381
25381
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25382
25382
|
variant: I,
|
|
25383
|
-
disabled:
|
|
25383
|
+
disabled: WW,
|
|
25384
25384
|
type: "submit",
|
|
25385
25385
|
children: [
|
|
25386
|
-
|
|
25386
|
+
GW,
|
|
25387
25387
|
g
|
|
25388
25388
|
]
|
|
25389
|
-
}), r[25] = g, r[26] =
|
|
25390
|
-
let
|
|
25391
|
-
r[30] !== _ || r[31] !==
|
|
25392
|
-
let
|
|
25393
|
-
r[33] !==
|
|
25389
|
+
}), r[25] = g, r[26] = WW, r[27] = GW, r[28] = I, r[29] = KW) : KW = r[29];
|
|
25390
|
+
let qW;
|
|
25391
|
+
r[30] !== _ || r[31] !== KW ? (qW = withTooltip(KW, _), r[30] = _, r[31] = KW, r[32] = qW) : qW = r[32];
|
|
25392
|
+
let JW;
|
|
25393
|
+
r[33] !== qW || r[34] !== UW ? (JW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25394
25394
|
className: "flex justify-end gap-2 font-code",
|
|
25395
25395
|
children: [
|
|
25396
|
-
|
|
25397
|
-
|
|
25396
|
+
UW,
|
|
25397
|
+
qW
|
|
25398
25398
|
]
|
|
25399
|
-
}), r[33] =
|
|
25400
|
-
let
|
|
25401
|
-
r[36] !==
|
|
25399
|
+
}), r[33] = qW, r[34] = UW, r[35] = JW) : JW = r[35];
|
|
25400
|
+
let XW;
|
|
25401
|
+
r[36] !== JW || r[37] !== G || r[38] !== q || r[39] !== VW || r[40] !== HW || r[41] !== Z ? (XW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25402
25402
|
className: G,
|
|
25403
25403
|
onKeyDown: q,
|
|
25404
25404
|
children: [
|
|
25405
|
-
|
|
25406
|
-
|
|
25405
|
+
VW,
|
|
25406
|
+
HW,
|
|
25407
25407
|
Z,
|
|
25408
|
-
|
|
25408
|
+
JW
|
|
25409
25409
|
]
|
|
25410
|
-
}), r[36] =
|
|
25411
|
-
let
|
|
25412
|
-
return r[43] !==
|
|
25410
|
+
}), r[36] = JW, r[37] = G, r[38] = q, r[39] = VW, r[40] = HW, r[41] = Z, r[42] = XW) : XW = r[42];
|
|
25411
|
+
let ZW;
|
|
25412
|
+
return r[43] !== XW || r[44] !== H ? (ZW = (0, import_jsx_runtime.jsx)("form", {
|
|
25413
25413
|
className: "contents",
|
|
25414
25414
|
ref: j,
|
|
25415
25415
|
onSubmit: H,
|
|
25416
|
-
children:
|
|
25417
|
-
}), r[43] =
|
|
25416
|
+
children: XW
|
|
25417
|
+
}), r[43] = XW, r[44] = H, r[45] = ZW) : ZW = r[45], ZW;
|
|
25418
25418
|
};
|
|
25419
25419
|
var Form = (e) => {
|
|
25420
25420
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27187,8 +27187,8 @@ ${c}
|
|
|
27187
27187
|
points: extractSunburstPoints(e2.points)
|
|
27188
27188
|
}));
|
|
27189
27189
|
}, r[29] = u, r[30] = G);
|
|
27190
|
-
let q = useEvent_default(G),
|
|
27191
|
-
r[31] === u ?
|
|
27190
|
+
let q = useEvent_default(G), VW;
|
|
27191
|
+
r[31] === u ? VW = r[32] : (VW = (e2) => {
|
|
27192
27192
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27193
27193
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27194
27194
|
u((e3) => ({
|
|
@@ -27199,8 +27199,8 @@ ${c}
|
|
|
27199
27199
|
points: r2,
|
|
27200
27200
|
indices: c2
|
|
27201
27201
|
}));
|
|
27202
|
-
}, r[31] = u, r[32] =
|
|
27203
|
-
let
|
|
27202
|
+
}, r[31] = u, r[32] = VW);
|
|
27203
|
+
let HW = useEvent_default(VW), Z;
|
|
27204
27204
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
27205
27205
|
e2 && u((r2) => ({
|
|
27206
27206
|
...r2,
|
|
@@ -27211,8 +27211,8 @@ ${c}
|
|
|
27211
27211
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27212
27212
|
}));
|
|
27213
27213
|
}, r[33] = u, r[34] = Z);
|
|
27214
|
-
let
|
|
27215
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27214
|
+
let UW = useEvent_default(Z), WW = m.frames ?? void 0, GW = useEvent_default(_temp3$3), KW;
|
|
27215
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== HW || r[42] !== UW || r[43] !== WW || r[44] !== GW || r[45] !== R ? (KW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27216
27216
|
...m,
|
|
27217
27217
|
layout: h,
|
|
27218
27218
|
onRelayout: R,
|
|
@@ -27220,13 +27220,13 @@ ${c}
|
|
|
27220
27220
|
onTreemapClick: W,
|
|
27221
27221
|
onSunburstClick: q,
|
|
27222
27222
|
config: L,
|
|
27223
|
-
onClick:
|
|
27224
|
-
onSelected:
|
|
27223
|
+
onClick: HW,
|
|
27224
|
+
onSelected: UW,
|
|
27225
27225
|
className: "w-full",
|
|
27226
27226
|
useResizeHandler: true,
|
|
27227
|
-
frames:
|
|
27228
|
-
onError:
|
|
27229
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27227
|
+
frames: WW,
|
|
27228
|
+
onError: GW
|
|
27229
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = HW, r[42] = UW, r[43] = WW, r[44] = GW, r[45] = R, r[46] = KW) : KW = r[46], KW;
|
|
27230
27230
|
});
|
|
27231
27231
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27232
27232
|
function _temp$8(e) {
|
|
@@ -27358,8 +27358,8 @@ ${c}
|
|
|
27358
27358
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
27359
27359
|
let q;
|
|
27360
27360
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
27361
|
-
let
|
|
27362
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27361
|
+
let VW;
|
|
27362
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (VW = (0, import_jsx_runtime.jsx)(Track, {
|
|
27363
27363
|
ref: E,
|
|
27364
27364
|
"data-testid": "track",
|
|
27365
27365
|
className: G,
|
|
@@ -27370,9 +27370,9 @@ ${c}
|
|
|
27370
27370
|
onPointerMove: z,
|
|
27371
27371
|
onPointerUp: H
|
|
27372
27372
|
})
|
|
27373
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27374
|
-
let
|
|
27375
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
27373
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = VW) : VW = c[22];
|
|
27374
|
+
let HW;
|
|
27375
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (HW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27376
27376
|
asChild: true,
|
|
27377
27377
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27378
27378
|
"data-testid": "thumb",
|
|
@@ -27382,30 +27382,30 @@ ${c}
|
|
|
27382
27382
|
onMouseEnter: m.setTrue,
|
|
27383
27383
|
onMouseLeave: m.setFalse
|
|
27384
27384
|
})
|
|
27385
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27385
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = HW) : HW = c[25];
|
|
27386
27386
|
let Z;
|
|
27387
27387
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27388
27388
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27389
27389
|
locale: h
|
|
27390
27390
|
})
|
|
27391
27391
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
27392
|
-
let
|
|
27393
|
-
c[30] === Z ?
|
|
27392
|
+
let UW;
|
|
27393
|
+
c[30] === Z ? UW = c[31] : (UW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27394
27394
|
children: Z
|
|
27395
|
-
}), c[30] = Z, c[31] =
|
|
27396
|
-
let
|
|
27397
|
-
c[32] !== f || c[33] !==
|
|
27395
|
+
}), c[30] = Z, c[31] = UW);
|
|
27396
|
+
let WW;
|
|
27397
|
+
c[32] !== f || c[33] !== HW || c[34] !== UW ? (WW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27398
27398
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27399
27399
|
delayDuration: 0,
|
|
27400
27400
|
open: f,
|
|
27401
27401
|
children: [
|
|
27402
|
-
|
|
27403
|
-
|
|
27402
|
+
HW,
|
|
27403
|
+
UW
|
|
27404
27404
|
]
|
|
27405
27405
|
})
|
|
27406
|
-
}), c[32] = f, c[33] =
|
|
27407
|
-
let
|
|
27408
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
27406
|
+
}), c[32] = f, c[33] = HW, c[34] = UW, c[35] = WW) : WW = c[35];
|
|
27407
|
+
let GW;
|
|
27408
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (GW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27409
27409
|
asChild: true,
|
|
27410
27410
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27411
27411
|
"data-testid": "thumb",
|
|
@@ -27415,39 +27415,39 @@ ${c}
|
|
|
27415
27415
|
onMouseEnter: m.setTrue,
|
|
27416
27416
|
onMouseLeave: m.setFalse
|
|
27417
27417
|
})
|
|
27418
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
27419
|
-
let
|
|
27420
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
27418
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = GW) : GW = c[38];
|
|
27419
|
+
let KW;
|
|
27420
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (KW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27421
27421
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27422
27422
|
locale: h
|
|
27423
27423
|
})
|
|
27424
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
27425
|
-
let
|
|
27426
|
-
c[43] ===
|
|
27427
|
-
children:
|
|
27428
|
-
}), c[43] =
|
|
27429
|
-
let
|
|
27430
|
-
c[45] !== f || c[46] !==
|
|
27424
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = KW) : KW = c[42];
|
|
27425
|
+
let qW;
|
|
27426
|
+
c[43] === KW ? qW = c[44] : (qW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27427
|
+
children: KW
|
|
27428
|
+
}), c[43] = KW, c[44] = qW);
|
|
27429
|
+
let JW;
|
|
27430
|
+
c[45] !== f || c[46] !== GW || c[47] !== qW ? (JW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27431
27431
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27432
27432
|
delayDuration: 0,
|
|
27433
27433
|
open: f,
|
|
27434
27434
|
children: [
|
|
27435
|
-
|
|
27436
|
-
|
|
27435
|
+
GW,
|
|
27436
|
+
qW
|
|
27437
27437
|
]
|
|
27438
27438
|
})
|
|
27439
|
-
}), c[45] = f, c[46] =
|
|
27440
|
-
let
|
|
27441
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27439
|
+
}), c[45] = f, c[46] = GW, c[47] = qW, c[48] = JW) : JW = c[48];
|
|
27440
|
+
let YW;
|
|
27441
|
+
return c[49] !== M || c[50] !== u || c[51] !== VW || c[52] !== WW || c[53] !== JW || c[54] !== W ? (YW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27442
27442
|
ref: M,
|
|
27443
27443
|
className: W,
|
|
27444
27444
|
...u,
|
|
27445
27445
|
children: [
|
|
27446
|
-
|
|
27447
|
-
|
|
27448
|
-
|
|
27446
|
+
VW,
|
|
27447
|
+
WW,
|
|
27448
|
+
JW
|
|
27449
27449
|
]
|
|
27450
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27450
|
+
}), c[49] = M, c[50] = u, c[51] = VW, c[52] = WW, c[53] = JW, c[54] = W, c[55] = YW) : YW = c[55], YW;
|
|
27451
27451
|
});
|
|
27452
27452
|
RangeSlider.displayName = Root.displayName;
|
|
27453
27453
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27498,14 +27498,14 @@ ${c}
|
|
|
27498
27498
|
}, q = (e2) => {
|
|
27499
27499
|
h && l(e2);
|
|
27500
27500
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27501
|
-
let
|
|
27502
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27501
|
+
let VW, HW;
|
|
27502
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (VW = () => {
|
|
27503
27503
|
h && !dequal(T, u) && l(T);
|
|
27504
|
-
},
|
|
27504
|
+
}, HW = () => {
|
|
27505
27505
|
h && !dequal(T, u) && l(T);
|
|
27506
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27506
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = VW, r[19] = HW) : (VW = r[18], HW = r[19]);
|
|
27507
27507
|
let Z;
|
|
27508
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27508
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== VW || r[31] !== HW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27509
27509
|
id: S,
|
|
27510
27510
|
className: W,
|
|
27511
27511
|
value: T,
|
|
@@ -27516,36 +27516,36 @@ ${c}
|
|
|
27516
27516
|
disabled: y,
|
|
27517
27517
|
onValueChange: G,
|
|
27518
27518
|
onValueCommit: q,
|
|
27519
|
-
onPointerUp:
|
|
27520
|
-
onMouseUp:
|
|
27519
|
+
onPointerUp: VW,
|
|
27520
|
+
onMouseUp: HW,
|
|
27521
27521
|
valueMap: b
|
|
27522
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27523
|
-
let
|
|
27524
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27522
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = VW, r[31] = HW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
27523
|
+
let UW;
|
|
27524
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (UW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27525
27525
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27526
27526
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27527
27527
|
locale: w
|
|
27528
27528
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27529
27529
|
locale: w
|
|
27530
27530
|
})}`
|
|
27531
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27532
|
-
let
|
|
27533
|
-
r[39] !== Z || r[40] !==
|
|
27531
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = UW) : UW = r[38];
|
|
27532
|
+
let WW;
|
|
27533
|
+
r[39] !== Z || r[40] !== UW || r[41] !== B ? (WW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27534
27534
|
className: B,
|
|
27535
27535
|
children: [
|
|
27536
27536
|
Z,
|
|
27537
|
-
|
|
27537
|
+
UW
|
|
27538
27538
|
]
|
|
27539
|
-
}), r[39] = Z, r[40] =
|
|
27540
|
-
let
|
|
27541
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27539
|
+
}), r[39] = Z, r[40] = UW, r[41] = B, r[42] = WW) : WW = r[42];
|
|
27540
|
+
let GW;
|
|
27541
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== WW || r[47] !== M || r[48] !== L ? (GW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27542
27542
|
label: c,
|
|
27543
27543
|
id: S,
|
|
27544
27544
|
align: M,
|
|
27545
27545
|
className: L,
|
|
27546
27546
|
fullWidth: v,
|
|
27547
|
-
children:
|
|
27548
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27547
|
+
children: WW
|
|
27548
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = WW, r[47] = M, r[48] = L, r[49] = GW) : GW = r[49], GW;
|
|
27549
27549
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27550
27550
|
r.exports = u;
|
|
27551
27551
|
var c = {
|
|
@@ -30836,7 +30836,7 @@ ${c}
|
|
|
30836
30836
|
areRegExpsEqual: H,
|
|
30837
30837
|
areSetsEqual: W,
|
|
30838
30838
|
createIsNestedEqual: r2
|
|
30839
|
-
}),
|
|
30839
|
+
}), VW = Object.freeze({
|
|
30840
30840
|
areArraysEqual: O,
|
|
30841
30841
|
areDatesEqual: j,
|
|
30842
30842
|
areMapsEqual: I,
|
|
@@ -30844,40 +30844,40 @@ ${c}
|
|
|
30844
30844
|
areRegExpsEqual: H,
|
|
30845
30845
|
areSetsEqual: G,
|
|
30846
30846
|
createIsNestedEqual: r2
|
|
30847
|
-
}),
|
|
30847
|
+
}), HW = T(q);
|
|
30848
30848
|
function Z(e3, r3) {
|
|
30849
|
-
return
|
|
30849
|
+
return HW(e3, r3, void 0);
|
|
30850
30850
|
}
|
|
30851
|
-
var
|
|
30851
|
+
var UW = T(l(q, {
|
|
30852
30852
|
createIsNestedEqual: function() {
|
|
30853
30853
|
return f;
|
|
30854
30854
|
}
|
|
30855
30855
|
}));
|
|
30856
|
-
function
|
|
30857
|
-
return
|
|
30856
|
+
function WW(e3, r3) {
|
|
30857
|
+
return UW(e3, r3, void 0);
|
|
30858
30858
|
}
|
|
30859
|
-
var
|
|
30860
|
-
function
|
|
30861
|
-
return
|
|
30859
|
+
var GW = T(VW);
|
|
30860
|
+
function KW(e3, r3) {
|
|
30861
|
+
return GW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30862
30862
|
}
|
|
30863
|
-
var
|
|
30863
|
+
var qW = T(l(VW, {
|
|
30864
30864
|
createIsNestedEqual: function() {
|
|
30865
30865
|
return f;
|
|
30866
30866
|
}
|
|
30867
30867
|
}));
|
|
30868
|
-
function
|
|
30869
|
-
return
|
|
30868
|
+
function JW(e3, r3) {
|
|
30869
|
+
return qW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30870
30870
|
}
|
|
30871
|
-
function
|
|
30871
|
+
function YW(e3) {
|
|
30872
30872
|
return T(l(q, e3(q)));
|
|
30873
30873
|
}
|
|
30874
|
-
function
|
|
30875
|
-
var r3 = T(l(
|
|
30874
|
+
function XW(e3) {
|
|
30875
|
+
var r3 = T(l(VW, e3(VW)));
|
|
30876
30876
|
return (function(e4, c2, l2) {
|
|
30877
30877
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30878
30878
|
});
|
|
30879
30879
|
}
|
|
30880
|
-
e2.circularDeepEqual =
|
|
30880
|
+
e2.circularDeepEqual = KW, e2.circularShallowEqual = JW, e2.createCustomCircularEqual = XW, e2.createCustomEqual = YW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = WW, Object.defineProperty(e2, "__esModule", {
|
|
30881
30881
|
value: true
|
|
30882
30882
|
});
|
|
30883
30883
|
}));
|
|
@@ -30903,7 +30903,7 @@ ${c}
|
|
|
30903
30903
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30904
30904
|
Object.defineProperty(e, "__esModule", {
|
|
30905
30905
|
value: true
|
|
30906
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
30906
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = nG, 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 = JW, e.setTopLeft = XW, e.setTransform = YW, e.sortLayoutItems = ZW, e.sortLayoutItemsByColRow = $W, e.sortLayoutItemsByRowCol = QW, e.synchronizeLayoutWithChildren = eG, e.validateLayout = tG, e.withLayoutItem = v;
|
|
30907
30907
|
var r = require_fast_equals(), c = l(require_react());
|
|
30908
30908
|
function l(e2) {
|
|
30909
30909
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31008,7 +31008,7 @@ ${c}
|
|
|
31008
31008
|
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);
|
|
31009
31009
|
}
|
|
31010
31010
|
function T(e2, r2, c2, l2) {
|
|
31011
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31011
|
+
let u2 = B(e2), d2 = h(u2), f2 = ZW(e2, r2), p2 = Array(e2.length);
|
|
31012
31012
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31013
31013
|
let h3 = y(f2[m2]);
|
|
31014
31014
|
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;
|
|
@@ -31066,7 +31066,7 @@ ${c}
|
|
|
31066
31066
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31067
31067
|
let h2 = r2.x, _2 = r2.y;
|
|
31068
31068
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31069
|
-
let v2 =
|
|
31069
|
+
let v2 = ZW(e2, f2);
|
|
31070
31070
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31071
31071
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31072
31072
|
if (b2 && m2) return g(e2);
|
|
@@ -31100,61 +31100,61 @@ ${c}
|
|
|
31100
31100
|
function G(e2) {
|
|
31101
31101
|
return e2 * 100 + "%";
|
|
31102
31102
|
}
|
|
31103
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31103
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, VW = (e2, r2, c2) => e2 < 0 ? r2 : c2, HW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), UW = (e2, r2, c2) => {
|
|
31104
31104
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31105
31105
|
return {
|
|
31106
31106
|
left: l2,
|
|
31107
31107
|
width: d2,
|
|
31108
|
-
height:
|
|
31108
|
+
height: VW(f2, e2.height, u2),
|
|
31109
31109
|
top: Z(f2)
|
|
31110
31110
|
};
|
|
31111
|
-
},
|
|
31111
|
+
}, WW = (e2, r2, c2) => {
|
|
31112
31112
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31113
31113
|
return {
|
|
31114
31114
|
top: l2,
|
|
31115
31115
|
height: d2,
|
|
31116
31116
|
width: q(e2.left, e2.width, f2, c2),
|
|
31117
|
-
left:
|
|
31117
|
+
left: HW(u2)
|
|
31118
31118
|
};
|
|
31119
|
-
},
|
|
31119
|
+
}, GW = (e2, r2, c2) => {
|
|
31120
31120
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31121
31121
|
return {
|
|
31122
31122
|
height: u2,
|
|
31123
31123
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31124
31124
|
top: Z(l2),
|
|
31125
|
-
left:
|
|
31125
|
+
left: HW(f2)
|
|
31126
31126
|
};
|
|
31127
|
-
},
|
|
31127
|
+
}, KW = (e2, r2, c2) => {
|
|
31128
31128
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31129
31129
|
return {
|
|
31130
31130
|
width: f2,
|
|
31131
31131
|
left: u2,
|
|
31132
|
-
height:
|
|
31132
|
+
height: VW(l2, e2.height, d2),
|
|
31133
31133
|
top: Z(l2)
|
|
31134
31134
|
};
|
|
31135
|
-
},
|
|
31136
|
-
n:
|
|
31135
|
+
}, qW = {
|
|
31136
|
+
n: UW,
|
|
31137
31137
|
ne: function() {
|
|
31138
|
-
return
|
|
31138
|
+
return UW(arguments.length <= 0 ? void 0 : arguments[0], WW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31139
31139
|
},
|
|
31140
|
-
e:
|
|
31140
|
+
e: WW,
|
|
31141
31141
|
se: function() {
|
|
31142
|
-
return
|
|
31142
|
+
return KW(arguments.length <= 0 ? void 0 : arguments[0], WW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31143
31143
|
},
|
|
31144
|
-
s:
|
|
31144
|
+
s: KW,
|
|
31145
31145
|
sw: function() {
|
|
31146
|
-
return
|
|
31146
|
+
return KW(arguments.length <= 0 ? void 0 : arguments[0], GW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31147
31147
|
},
|
|
31148
|
-
w:
|
|
31148
|
+
w: GW,
|
|
31149
31149
|
nw: function() {
|
|
31150
|
-
return
|
|
31150
|
+
return UW(arguments.length <= 0 ? void 0 : arguments[0], GW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31151
31151
|
}
|
|
31152
31152
|
};
|
|
31153
|
-
function
|
|
31154
|
-
let u2 =
|
|
31153
|
+
function JW(e2, r2, c2, l2) {
|
|
31154
|
+
let u2 = qW[e2];
|
|
31155
31155
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31156
31156
|
}
|
|
31157
|
-
function
|
|
31157
|
+
function YW(e2) {
|
|
31158
31158
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31159
31159
|
return {
|
|
31160
31160
|
transform: d2,
|
|
@@ -31167,7 +31167,7 @@ ${c}
|
|
|
31167
31167
|
position: "absolute"
|
|
31168
31168
|
};
|
|
31169
31169
|
}
|
|
31170
|
-
function
|
|
31170
|
+
function XW(e2) {
|
|
31171
31171
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31172
31172
|
return {
|
|
31173
31173
|
top: `${r2}px`,
|
|
@@ -31177,20 +31177,20 @@ ${c}
|
|
|
31177
31177
|
position: "absolute"
|
|
31178
31178
|
};
|
|
31179
31179
|
}
|
|
31180
|
-
function
|
|
31181
|
-
return r2 === "horizontal" ?
|
|
31180
|
+
function ZW(e2, r2) {
|
|
31181
|
+
return r2 === "horizontal" ? $W(e2) : r2 === "vertical" ? QW(e2) : e2;
|
|
31182
31182
|
}
|
|
31183
|
-
function
|
|
31183
|
+
function QW(e2) {
|
|
31184
31184
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31185
31185
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31186
31186
|
});
|
|
31187
31187
|
}
|
|
31188
|
-
function
|
|
31188
|
+
function $W(e2) {
|
|
31189
31189
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31190
31190
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31191
31191
|
});
|
|
31192
31192
|
}
|
|
31193
|
-
function
|
|
31193
|
+
function eG(e2, r2, l2, u2, f2) {
|
|
31194
31194
|
e2 || (e2 = []);
|
|
31195
31195
|
let p2 = [];
|
|
31196
31196
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31211,7 +31211,7 @@ ${c}
|
|
|
31211
31211
|
});
|
|
31212
31212
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31213
31213
|
}
|
|
31214
|
-
function
|
|
31214
|
+
function tG(e2) {
|
|
31215
31215
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31216
31216
|
"x",
|
|
31217
31217
|
"y",
|
|
@@ -31228,7 +31228,7 @@ ${c}
|
|
|
31228
31228
|
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})`);
|
|
31229
31229
|
}
|
|
31230
31230
|
}
|
|
31231
|
-
function
|
|
31231
|
+
function nG(e2) {
|
|
31232
31232
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31233
31233
|
return r2 === false ? null : c2;
|
|
31234
31234
|
}
|
|
@@ -34033,7 +34033,7 @@ ${c}
|
|
|
34033
34033
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34034
34034
|
let E = useIsDragging(), O, j;
|
|
34035
34035
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34036
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34036
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, VW, HW, Z, UW, WW, GW, KW, qW, JW, YW, XW, ZW, QW, $W, eG, tG, nG;
|
|
34037
34037
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34038
34038
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
34039
34039
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -34052,23 +34052,23 @@ ${c}
|
|
|
34052
34052
|
});
|
|
34053
34053
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34054
34054
|
let y2 = v2;
|
|
34055
|
-
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,
|
|
34055
|
+
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, $W = "lg", r[58] === c.cells ? eG = r[59] : (eG = {
|
|
34056
34056
|
lg: c.cells
|
|
34057
|
-
}, r[58] = c.cells, r[59] =
|
|
34057
|
+
}, r[58] = c.cells, r[59] = eG), tG = L, nG = S, R = false;
|
|
34058
34058
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34059
34059
|
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 ? [
|
|
34060
34060
|
20,
|
|
34061
34061
|
20
|
|
34062
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34062
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, VW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (HW = (e3) => {
|
|
34063
34063
|
f || l({
|
|
34064
34064
|
...c,
|
|
34065
34065
|
cells: e3
|
|
34066
34066
|
});
|
|
34067
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34067
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = HW) : HW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
34068
34068
|
i: g.i,
|
|
34069
34069
|
w: g.w || 2,
|
|
34070
34070
|
h: g.h || 2
|
|
34071
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
34071
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (UW = (e3, r2, u2) => {
|
|
34072
34072
|
O.onDragStop(), r2 && l({
|
|
34073
34073
|
...c,
|
|
34074
34074
|
cells: [
|
|
@@ -34076,15 +34076,15 @@ ${c}
|
|
|
34076
34076
|
r2
|
|
34077
34077
|
]
|
|
34078
34078
|
});
|
|
34079
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34079
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = UW) : UW = r[75], r[76] === O ? (WW = r[77], GW = r[78], KW = r[79]) : (WW = (e3, r2, c2, l2, u2) => {
|
|
34080
34080
|
O.onDragStart(u2);
|
|
34081
|
-
},
|
|
34081
|
+
}, GW = (e3, r2, c2, l2, u2) => {
|
|
34082
34082
|
O.onDragMove(u2);
|
|
34083
|
-
},
|
|
34083
|
+
}, KW = () => {
|
|
34084
34084
|
O.onDragStop();
|
|
34085
|
-
}, r[76] = O, r[77] =
|
|
34085
|
+
}, r[76] = O, r[77] = WW, r[78] = GW, r[79] = KW), qW = _temp3$2, JW = M, YW = M, XW = M, ZW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34086
34086
|
let E2;
|
|
34087
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
34087
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), QW = u.filter(E2).map((r2) => {
|
|
34088
34088
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34089
34089
|
code: r2.code,
|
|
34090
34090
|
mode: d,
|
|
@@ -34114,14 +34114,14 @@ ${c}
|
|
|
34114
34114
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34115
34115
|
children: m3
|
|
34116
34116
|
}, r2.id);
|
|
34117
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, 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] =
|
|
34118
|
-
} 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],
|
|
34119
|
-
let
|
|
34120
|
-
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] !==
|
|
34121
|
-
breakpoint:
|
|
34122
|
-
layouts:
|
|
34123
|
-
style:
|
|
34124
|
-
cols:
|
|
34117
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, 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] = VW, r[31] = HW, r[32] = Z, r[33] = UW, r[34] = WW, r[35] = GW, r[36] = KW, r[37] = qW, r[38] = JW, r[39] = YW, r[40] = XW, r[41] = ZW, r[42] = QW, r[43] = $W, r[44] = eG, r[45] = tG, r[46] = nG;
|
|
34118
|
+
} 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], VW = r[30], HW = r[31], Z = r[32], UW = r[33], WW = r[34], GW = r[35], KW = r[36], qW = r[37], JW = r[38], YW = r[39], XW = r[40], ZW = r[41], QW = r[42], $W = r[43], eG = r[44], tG = r[45], nG = r[46];
|
|
34119
|
+
let rG;
|
|
34120
|
+
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] !== VW || r[91] !== HW || r[92] !== Z || r[93] !== UW || r[94] !== WW || r[95] !== GW || r[96] !== KW || r[97] !== qW || r[98] !== JW || r[99] !== YW || r[100] !== XW || r[101] !== ZW || r[102] !== QW || r[103] !== $W || r[104] !== eG || r[105] !== tG || r[106] !== nG ? (rG = (0, import_jsx_runtime.jsx)(I, {
|
|
34121
|
+
breakpoint: $W,
|
|
34122
|
+
layouts: eG,
|
|
34123
|
+
style: tG,
|
|
34124
|
+
cols: nG,
|
|
34125
34125
|
allowOverlap: R,
|
|
34126
34126
|
className: z,
|
|
34127
34127
|
containerPadding: B,
|
|
@@ -34129,23 +34129,23 @@ ${c}
|
|
|
34129
34129
|
isBounded: W,
|
|
34130
34130
|
compactType: G,
|
|
34131
34131
|
preventCollision: q,
|
|
34132
|
-
rowHeight:
|
|
34133
|
-
onLayoutChange:
|
|
34132
|
+
rowHeight: VW,
|
|
34133
|
+
onLayoutChange: HW,
|
|
34134
34134
|
droppingItem: Z,
|
|
34135
|
-
onDrop:
|
|
34136
|
-
onDragStart:
|
|
34137
|
-
onDrag:
|
|
34138
|
-
onDragStop:
|
|
34139
|
-
onResizeStop:
|
|
34140
|
-
isDraggable:
|
|
34141
|
-
isDroppable:
|
|
34142
|
-
isResizable:
|
|
34143
|
-
draggableHandle:
|
|
34144
|
-
children:
|
|
34145
|
-
}), 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] =
|
|
34146
|
-
let
|
|
34147
|
-
if (r[108] !== u || r[109] !==
|
|
34148
|
-
|
|
34135
|
+
onDrop: UW,
|
|
34136
|
+
onDragStart: WW,
|
|
34137
|
+
onDrag: GW,
|
|
34138
|
+
onDragStop: KW,
|
|
34139
|
+
onResizeStop: qW,
|
|
34140
|
+
isDraggable: JW,
|
|
34141
|
+
isDroppable: YW,
|
|
34142
|
+
isResizable: XW,
|
|
34143
|
+
draggableHandle: ZW,
|
|
34144
|
+
children: QW
|
|
34145
|
+
}), 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] = VW, r[91] = HW, r[92] = Z, r[93] = UW, r[94] = WW, r[95] = GW, r[96] = KW, r[97] = qW, r[98] = JW, r[99] = YW, r[100] = XW, r[101] = ZW, r[102] = QW, r[103] = $W, r[104] = eG, r[105] = tG, r[106] = nG, r[107] = rG) : rG = r[107];
|
|
34146
|
+
let iG = rG, aG, oG, sG, cG, lG, uG, dG;
|
|
34147
|
+
if (r[108] !== u || r[109] !== iG || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34148
|
+
dG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34149
34149
|
bb0: {
|
|
34150
34150
|
let e2;
|
|
34151
34151
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -34153,14 +34153,14 @@ ${c}
|
|
|
34153
34153
|
if (f) {
|
|
34154
34154
|
if (c.bordered) {
|
|
34155
34155
|
let e4;
|
|
34156
|
-
r[127] !==
|
|
34156
|
+
r[127] !== iG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34157
34157
|
className: "flex flex-1 flex-col items-center",
|
|
34158
34158
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34159
34159
|
style: L,
|
|
34160
34160
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34161
|
-
children:
|
|
34161
|
+
children: iG
|
|
34162
34162
|
})
|
|
34163
|
-
}), r[127] =
|
|
34163
|
+
}), r[127] = iG, r[128] = L, r[129] = e4) : e4 = r[129], iG = e4;
|
|
34164
34164
|
}
|
|
34165
34165
|
let e3 = m2.filter(_temp4$2), l2;
|
|
34166
34166
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34172,9 +34172,9 @@ ${c}
|
|
|
34172
34172
|
stale: outputIsStale(e4, false),
|
|
34173
34173
|
isScrollable: false,
|
|
34174
34174
|
hidden: false
|
|
34175
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34175
|
+
}, e4.id), r[130] = d, r[131] = l2), dG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34176
34176
|
children: [
|
|
34177
|
-
|
|
34177
|
+
iG,
|
|
34178
34178
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34179
34179
|
className: "hidden",
|
|
34180
34180
|
children: e3.map(l2)
|
|
@@ -34185,31 +34185,31 @@ ${c}
|
|
|
34185
34185
|
}
|
|
34186
34186
|
if (c.bordered) {
|
|
34187
34187
|
let e3;
|
|
34188
|
-
r[132] ===
|
|
34188
|
+
r[132] === iG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34189
34189
|
className: "h-full overflow-auto",
|
|
34190
|
-
children:
|
|
34191
|
-
}), r[132] =
|
|
34190
|
+
children: iG
|
|
34191
|
+
}), r[132] = iG, r[133] = e3);
|
|
34192
34192
|
let c2;
|
|
34193
34193
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34194
34194
|
style: L,
|
|
34195
34195
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34196
34196
|
children: e3
|
|
34197
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34197
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], iG = c2;
|
|
34198
34198
|
}
|
|
34199
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34199
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (uG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34200
34200
|
layout: c,
|
|
34201
34201
|
setLayout: l,
|
|
34202
34202
|
isLocked: v,
|
|
34203
34203
|
setIsLocked: y
|
|
34204
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34204
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = uG) : uG = r[140];
|
|
34205
34205
|
let g2;
|
|
34206
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34206
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = cG, r[142] = g2) : (cG = r[141], g2 = r[142]), r[143] === iG ? lG = r[144] : (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
34207
34207
|
className: g2,
|
|
34208
|
-
children:
|
|
34209
|
-
}), r[143] =
|
|
34208
|
+
children: iG
|
|
34209
|
+
}), r[143] = iG, r[144] = lG), aG = "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") ? (oG = (0, import_jsx_runtime.jsx)("div", {
|
|
34210
34210
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34211
34211
|
children: "Outputs"
|
|
34212
|
-
}), r[145] =
|
|
34212
|
+
}), r[145] = oG) : oG = r[145];
|
|
34213
34213
|
let b2;
|
|
34214
34214
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34215
34215
|
draggable: true,
|
|
@@ -34235,34 +34235,34 @@ ${c}
|
|
|
34235
34235
|
stale: outputIsStale(e3, false),
|
|
34236
34236
|
hidden: false
|
|
34237
34237
|
})
|
|
34238
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34239
|
-
}
|
|
34240
|
-
r[108] = u, r[109] =
|
|
34241
|
-
} else
|
|
34242
|
-
if (
|
|
34243
|
-
let
|
|
34244
|
-
r[150] !==
|
|
34245
|
-
className:
|
|
34238
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], sG = m2.map(b2);
|
|
34239
|
+
}
|
|
34240
|
+
r[108] = u, r[109] = iG, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = aG, r[118] = oG, r[119] = sG, r[120] = cG, r[121] = lG, r[122] = uG, r[123] = dG, r[124] = iG;
|
|
34241
|
+
} else aG = r[117], oG = r[118], sG = r[119], cG = r[120], lG = r[121], uG = r[122], dG = r[123], iG = r[124];
|
|
34242
|
+
if (dG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return dG;
|
|
34243
|
+
let fG;
|
|
34244
|
+
r[150] !== aG || r[151] !== oG || r[152] !== sG ? (fG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34245
|
+
className: aG,
|
|
34246
34246
|
children: [
|
|
34247
|
-
|
|
34248
|
-
|
|
34247
|
+
oG,
|
|
34248
|
+
sG
|
|
34249
34249
|
]
|
|
34250
|
-
}), r[150] =
|
|
34251
|
-
let
|
|
34252
|
-
r[154] !==
|
|
34253
|
-
className:
|
|
34250
|
+
}), r[150] = aG, r[151] = oG, r[152] = sG, r[153] = fG) : fG = r[153];
|
|
34251
|
+
let pG;
|
|
34252
|
+
r[154] !== cG || r[155] !== lG || r[156] !== fG ? (pG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34253
|
+
className: cG,
|
|
34254
34254
|
children: [
|
|
34255
|
-
|
|
34256
|
-
|
|
34255
|
+
lG,
|
|
34256
|
+
fG
|
|
34257
34257
|
]
|
|
34258
|
-
}), r[154] =
|
|
34259
|
-
let
|
|
34260
|
-
return r[158] !==
|
|
34258
|
+
}), r[154] = cG, r[155] = lG, r[156] = fG, r[157] = pG) : pG = r[157];
|
|
34259
|
+
let mG;
|
|
34260
|
+
return r[158] !== uG || r[159] !== pG ? (mG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34261
34261
|
children: [
|
|
34262
|
-
|
|
34263
|
-
|
|
34262
|
+
uG,
|
|
34263
|
+
pG
|
|
34264
34264
|
]
|
|
34265
|
-
}), r[158] =
|
|
34265
|
+
}), r[158] = uG, r[159] = pG, r[160] = mG) : mG = r[160], mG;
|
|
34266
34266
|
};
|
|
34267
34267
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34268
34268
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _, stale: v } = e, y;
|
|
@@ -34563,25 +34563,25 @@ ${c}
|
|
|
34563
34563
|
G
|
|
34564
34564
|
]
|
|
34565
34565
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
34566
|
-
let
|
|
34567
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34566
|
+
let VW;
|
|
34567
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34568
34568
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34569
|
-
}), r[35] =
|
|
34570
|
-
let
|
|
34571
|
-
r[36] === l ?
|
|
34569
|
+
}), r[35] = VW) : VW = r[35];
|
|
34570
|
+
let HW;
|
|
34571
|
+
r[36] === l ? HW = r[37] : (HW = (0, import_jsx_runtime.jsx)(X, {
|
|
34572
34572
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34573
34573
|
onClick: () => l()
|
|
34574
|
-
}), r[36] = l, r[37] =
|
|
34574
|
+
}), r[36] = l, r[37] = HW);
|
|
34575
34575
|
let Z;
|
|
34576
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34576
|
+
return r[38] !== I || r[39] !== q || r[40] !== HW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34577
34577
|
className: w,
|
|
34578
34578
|
children: [
|
|
34579
34579
|
I,
|
|
34580
34580
|
q,
|
|
34581
|
-
|
|
34582
|
-
|
|
34581
|
+
VW,
|
|
34582
|
+
HW
|
|
34583
34583
|
]
|
|
34584
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34584
|
+
}), r[38] = I, r[39] = q, r[40] = HW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
34585
34585
|
};
|
|
34586
34586
|
function isSidebarCell(e) {
|
|
34587
34587
|
var _a5;
|
|
@@ -36585,28 +36585,28 @@ ${c}
|
|
|
36585
36585
|
}, [
|
|
36586
36586
|
T,
|
|
36587
36587
|
M
|
|
36588
|
-
]), 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),
|
|
36588
|
+
]), 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), VW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36589
36589
|
j
|
|
36590
|
-
]),
|
|
36590
|
+
]), HW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: UW, measuringScheduled: WW } = useDroppableMeasuring(VW, {
|
|
36591
36591
|
dragging: w,
|
|
36592
36592
|
dependencies: [
|
|
36593
36593
|
O.x,
|
|
36594
36594
|
O.y
|
|
36595
36595
|
],
|
|
36596
|
-
config:
|
|
36597
|
-
}),
|
|
36596
|
+
config: HW.droppable
|
|
36597
|
+
}), GW = useCachedNode(E, T), KW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36598
36598
|
H
|
|
36599
|
-
]),
|
|
36599
|
+
]), qW = wG(), JW = useInitialRect(GW, HW.draggable.measure);
|
|
36600
36600
|
useLayoutShiftScrollCompensation({
|
|
36601
36601
|
activeNode: T == null ? null : E.get(T),
|
|
36602
|
-
config:
|
|
36603
|
-
initialRect:
|
|
36604
|
-
measure:
|
|
36602
|
+
config: qW.layoutShiftCompensation,
|
|
36603
|
+
initialRect: JW,
|
|
36604
|
+
measure: HW.draggable.measure
|
|
36605
36605
|
});
|
|
36606
|
-
let
|
|
36606
|
+
let YW = useRect(GW, HW.draggable.measure, JW), XW = useRect(GW ? GW.parentElement : null), ZW = (0, import_react.useRef)({
|
|
36607
36607
|
activatorEvent: null,
|
|
36608
36608
|
active: null,
|
|
36609
|
-
activeNode:
|
|
36609
|
+
activeNode: GW,
|
|
36610
36610
|
collisionRect: null,
|
|
36611
36611
|
collisions: null,
|
|
36612
36612
|
droppableRects: Z,
|
|
@@ -36617,45 +36617,45 @@ ${c}
|
|
|
36617
36617
|
over: null,
|
|
36618
36618
|
scrollableAncestors: [],
|
|
36619
36619
|
scrollAdjustedTranslate: null
|
|
36620
|
-
}),
|
|
36621
|
-
measure:
|
|
36622
|
-
}),
|
|
36620
|
+
}), QW = j.getNodeFor((_a5 = ZW.current.over) == null ? void 0 : _a5.id), $W = useDragOverlayMeasuring({
|
|
36621
|
+
measure: HW.dragOverlay.measure
|
|
36622
|
+
}), eG = $W.nodeRef.current ?? GW, tG = w ? $W.rect ?? YW : null, nG = !!($W.nodeRef.current && $W.rect), rG = useRectDelta(nG ? null : YW), iG = useWindowRect(eG ? getWindow(eG) : null), aG = useScrollableAncestors(w ? QW ?? GW : null), oG = useRects(aG), sG = applyModifiers(m, {
|
|
36623
36623
|
transform: {
|
|
36624
|
-
x: O.x -
|
|
36625
|
-
y: O.y -
|
|
36624
|
+
x: O.x - rG.x,
|
|
36625
|
+
y: O.y - rG.y,
|
|
36626
36626
|
scaleX: 1,
|
|
36627
36627
|
scaleY: 1
|
|
36628
36628
|
},
|
|
36629
36629
|
activatorEvent: H,
|
|
36630
36630
|
active: L,
|
|
36631
|
-
activeNodeRect:
|
|
36632
|
-
containerNodeRect:
|
|
36633
|
-
draggingNodeRect:
|
|
36634
|
-
over:
|
|
36635
|
-
overlayNodeRect:
|
|
36636
|
-
scrollableAncestors:
|
|
36637
|
-
scrollableAncestorRects:
|
|
36638
|
-
windowRect:
|
|
36639
|
-
}),
|
|
36640
|
-
|
|
36641
|
-
]),
|
|
36631
|
+
activeNodeRect: YW,
|
|
36632
|
+
containerNodeRect: XW,
|
|
36633
|
+
draggingNodeRect: tG,
|
|
36634
|
+
over: ZW.current.over,
|
|
36635
|
+
overlayNodeRect: $W.rect,
|
|
36636
|
+
scrollableAncestors: aG,
|
|
36637
|
+
scrollableAncestorRects: oG,
|
|
36638
|
+
windowRect: iG
|
|
36639
|
+
}), cG = KW ? add(KW, O) : null, lG = useScrollOffsets(aG), uG = useScrollOffsetsDelta(lG), dG = useScrollOffsetsDelta(lG, [
|
|
36640
|
+
YW
|
|
36641
|
+
]), fG = add(sG, uG), pG = tG ? getAdjustedRect(tG, sG) : null, mG = L && pG ? f({
|
|
36642
36642
|
active: L,
|
|
36643
|
-
collisionRect:
|
|
36643
|
+
collisionRect: pG,
|
|
36644
36644
|
droppableRects: Z,
|
|
36645
|
-
droppableContainers:
|
|
36646
|
-
pointerCoordinates:
|
|
36647
|
-
}) : null,
|
|
36645
|
+
droppableContainers: VW,
|
|
36646
|
+
pointerCoordinates: cG
|
|
36647
|
+
}) : null, hG = getFirstCollision(mG, "id"), [gG, _G] = (0, import_react.useState)(null), vG = adjustScale(nG ? sG : add(sG, dG), (gG == null ? void 0 : gG.rect) ?? null, YW), yG = (0, import_react.useRef)(null), bG = (0, import_react.useCallback)((e2, r2) => {
|
|
36648
36648
|
let { sensor: c2, options: l2 } = r2;
|
|
36649
36649
|
if (R.current == null) return;
|
|
36650
36650
|
let u2 = E.get(R.current);
|
|
36651
36651
|
if (!u2) return;
|
|
36652
36652
|
let d2 = e2.nativeEvent;
|
|
36653
|
-
|
|
36653
|
+
yG.current = new c2({
|
|
36654
36654
|
active: R.current,
|
|
36655
36655
|
activeNode: u2,
|
|
36656
36656
|
event: d2,
|
|
36657
36657
|
options: l2,
|
|
36658
|
-
context:
|
|
36658
|
+
context: ZW,
|
|
36659
36659
|
onAbort(e3) {
|
|
36660
36660
|
if (!E.get(e3)) return;
|
|
36661
36661
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36700,7 +36700,7 @@ ${c}
|
|
|
36700
36700
|
}), v({
|
|
36701
36701
|
type: "onDragStart",
|
|
36702
36702
|
event: u3
|
|
36703
|
-
}), B(
|
|
36703
|
+
}), B(yG.current), W(d2);
|
|
36704
36704
|
});
|
|
36705
36705
|
},
|
|
36706
36706
|
onMove(e3) {
|
|
@@ -36714,7 +36714,7 @@ ${c}
|
|
|
36714
36714
|
});
|
|
36715
36715
|
function f2(e3) {
|
|
36716
36716
|
return async function() {
|
|
36717
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36717
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = ZW.current, f3 = null;
|
|
36718
36718
|
if (r3 && u3) {
|
|
36719
36719
|
let { cancelDrop: p2 } = G.current;
|
|
36720
36720
|
f3 = {
|
|
@@ -36728,7 +36728,7 @@ ${c}
|
|
|
36728
36728
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36729
36729
|
_({
|
|
36730
36730
|
type: e3
|
|
36731
|
-
}), S(Status.Uninitialized),
|
|
36731
|
+
}), S(Status.Uninitialized), _G(null), B(null), W(null), yG.current = null;
|
|
36732
36732
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36733
36733
|
if (f3) {
|
|
36734
36734
|
let e4 = G.current[r4];
|
|
@@ -36742,7 +36742,7 @@ ${c}
|
|
|
36742
36742
|
}
|
|
36743
36743
|
}, [
|
|
36744
36744
|
E
|
|
36745
|
-
]),
|
|
36745
|
+
]), xG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36746
36746
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36747
36747
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36748
36748
|
let f2 = {
|
|
@@ -36750,26 +36750,26 @@ ${c}
|
|
|
36750
36750
|
};
|
|
36751
36751
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36752
36752
|
capturedBy: r2.sensor
|
|
36753
|
-
}, R.current = l2,
|
|
36753
|
+
}, R.current = l2, bG(c2, r2));
|
|
36754
36754
|
}, [
|
|
36755
36755
|
E,
|
|
36756
|
-
|
|
36756
|
+
bG
|
|
36757
36757
|
]));
|
|
36758
36758
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36759
|
-
|
|
36759
|
+
YW && b === Status.Initializing && S(Status.Initialized);
|
|
36760
36760
|
}, [
|
|
36761
|
-
|
|
36761
|
+
YW,
|
|
36762
36762
|
b
|
|
36763
36763
|
]), (0, import_react.useEffect)(() => {
|
|
36764
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36764
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = ZW.current;
|
|
36765
36765
|
if (!r2 || !c2) return;
|
|
36766
36766
|
let d2 = {
|
|
36767
36767
|
active: r2,
|
|
36768
36768
|
activatorEvent: c2,
|
|
36769
36769
|
collisions: l2,
|
|
36770
36770
|
delta: {
|
|
36771
|
-
x:
|
|
36772
|
-
y:
|
|
36771
|
+
x: fG.x,
|
|
36772
|
+
y: fG.y
|
|
36773
36773
|
},
|
|
36774
36774
|
over: u2
|
|
36775
36775
|
};
|
|
@@ -36780,12 +36780,12 @@ ${c}
|
|
|
36780
36780
|
});
|
|
36781
36781
|
});
|
|
36782
36782
|
}, [
|
|
36783
|
-
|
|
36784
|
-
|
|
36783
|
+
fG.x,
|
|
36784
|
+
fG.y
|
|
36785
36785
|
]), (0, import_react.useEffect)(() => {
|
|
36786
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36786
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = ZW.current;
|
|
36787
36787
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36788
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36788
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(hG), p2 = f2 && f2.rect.current ? {
|
|
36789
36789
|
id: f2.id,
|
|
36790
36790
|
rect: f2.rect.current,
|
|
36791
36791
|
data: f2.data,
|
|
@@ -36801,127 +36801,127 @@ ${c}
|
|
|
36801
36801
|
over: p2
|
|
36802
36802
|
};
|
|
36803
36803
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36804
|
-
|
|
36804
|
+
_G(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36805
36805
|
type: "onDragOver",
|
|
36806
36806
|
event: m2
|
|
36807
36807
|
});
|
|
36808
36808
|
});
|
|
36809
36809
|
}, [
|
|
36810
|
-
|
|
36810
|
+
hG
|
|
36811
36811
|
]), useIsomorphicLayoutEffect(() => {
|
|
36812
|
-
|
|
36812
|
+
ZW.current = {
|
|
36813
36813
|
activatorEvent: H,
|
|
36814
36814
|
active: L,
|
|
36815
|
-
activeNode:
|
|
36816
|
-
collisionRect:
|
|
36817
|
-
collisions:
|
|
36815
|
+
activeNode: GW,
|
|
36816
|
+
collisionRect: pG,
|
|
36817
|
+
collisions: mG,
|
|
36818
36818
|
droppableRects: Z,
|
|
36819
36819
|
draggableNodes: E,
|
|
36820
|
-
draggingNode:
|
|
36821
|
-
draggingNodeRect:
|
|
36820
|
+
draggingNode: eG,
|
|
36821
|
+
draggingNodeRect: tG,
|
|
36822
36822
|
droppableContainers: j,
|
|
36823
|
-
over:
|
|
36824
|
-
scrollableAncestors:
|
|
36825
|
-
scrollAdjustedTranslate:
|
|
36823
|
+
over: gG,
|
|
36824
|
+
scrollableAncestors: aG,
|
|
36825
|
+
scrollAdjustedTranslate: fG
|
|
36826
36826
|
}, I.current = {
|
|
36827
|
-
initial:
|
|
36828
|
-
translated:
|
|
36827
|
+
initial: tG,
|
|
36828
|
+
translated: pG
|
|
36829
36829
|
};
|
|
36830
36830
|
}, [
|
|
36831
36831
|
L,
|
|
36832
|
-
FW,
|
|
36833
|
-
iG,
|
|
36834
|
-
rG,
|
|
36835
|
-
E,
|
|
36836
|
-
WW,
|
|
36837
36832
|
GW,
|
|
36833
|
+
mG,
|
|
36834
|
+
pG,
|
|
36835
|
+
E,
|
|
36836
|
+
eG,
|
|
36837
|
+
tG,
|
|
36838
36838
|
Z,
|
|
36839
36839
|
j,
|
|
36840
|
-
|
|
36841
|
-
|
|
36842
|
-
|
|
36840
|
+
gG,
|
|
36841
|
+
aG,
|
|
36842
|
+
fG
|
|
36843
36843
|
]), useAutoScroller({
|
|
36844
|
-
...
|
|
36844
|
+
...qW,
|
|
36845
36845
|
delta: O,
|
|
36846
|
-
draggingRect:
|
|
36847
|
-
pointerCoordinates:
|
|
36848
|
-
scrollableAncestors:
|
|
36849
|
-
scrollableAncestorRects:
|
|
36846
|
+
draggingRect: pG,
|
|
36847
|
+
pointerCoordinates: cG,
|
|
36848
|
+
scrollableAncestors: aG,
|
|
36849
|
+
scrollableAncestorRects: oG
|
|
36850
36850
|
});
|
|
36851
|
-
let
|
|
36851
|
+
let SG = (0, import_react.useMemo)(() => ({
|
|
36852
36852
|
active: L,
|
|
36853
|
-
activeNode:
|
|
36854
|
-
activeNodeRect:
|
|
36853
|
+
activeNode: GW,
|
|
36854
|
+
activeNodeRect: YW,
|
|
36855
36855
|
activatorEvent: H,
|
|
36856
|
-
collisions:
|
|
36857
|
-
containerNodeRect:
|
|
36858
|
-
dragOverlay:
|
|
36856
|
+
collisions: mG,
|
|
36857
|
+
containerNodeRect: XW,
|
|
36858
|
+
dragOverlay: $W,
|
|
36859
36859
|
draggableNodes: E,
|
|
36860
36860
|
droppableContainers: j,
|
|
36861
36861
|
droppableRects: Z,
|
|
36862
|
-
over:
|
|
36863
|
-
measureDroppableContainers:
|
|
36864
|
-
scrollableAncestors:
|
|
36865
|
-
scrollableAncestorRects:
|
|
36866
|
-
measuringConfiguration:
|
|
36867
|
-
measuringScheduled:
|
|
36868
|
-
windowRect:
|
|
36862
|
+
over: gG,
|
|
36863
|
+
measureDroppableContainers: UW,
|
|
36864
|
+
scrollableAncestors: aG,
|
|
36865
|
+
scrollableAncestorRects: oG,
|
|
36866
|
+
measuringConfiguration: HW,
|
|
36867
|
+
measuringScheduled: WW,
|
|
36868
|
+
windowRect: iG
|
|
36869
36869
|
}), [
|
|
36870
36870
|
L,
|
|
36871
|
-
|
|
36872
|
-
|
|
36871
|
+
GW,
|
|
36872
|
+
YW,
|
|
36873
36873
|
H,
|
|
36874
|
-
|
|
36875
|
-
|
|
36876
|
-
|
|
36874
|
+
mG,
|
|
36875
|
+
XW,
|
|
36876
|
+
$W,
|
|
36877
36877
|
E,
|
|
36878
36878
|
j,
|
|
36879
36879
|
Z,
|
|
36880
|
+
gG,
|
|
36881
|
+
UW,
|
|
36882
|
+
aG,
|
|
36880
36883
|
oG,
|
|
36881
|
-
|
|
36882
|
-
|
|
36883
|
-
|
|
36884
|
-
|
|
36885
|
-
PW,
|
|
36886
|
-
JW
|
|
36887
|
-
]), pG = (0, import_react.useMemo)(() => ({
|
|
36884
|
+
HW,
|
|
36885
|
+
WW,
|
|
36886
|
+
iG
|
|
36887
|
+
]), CG = (0, import_react.useMemo)(() => ({
|
|
36888
36888
|
activatorEvent: H,
|
|
36889
|
-
activators:
|
|
36889
|
+
activators: xG,
|
|
36890
36890
|
active: L,
|
|
36891
|
-
activeNodeRect:
|
|
36891
|
+
activeNodeRect: YW,
|
|
36892
36892
|
ariaDescribedById: {
|
|
36893
36893
|
draggable: q
|
|
36894
36894
|
},
|
|
36895
36895
|
dispatch: _,
|
|
36896
36896
|
draggableNodes: E,
|
|
36897
|
-
over:
|
|
36898
|
-
measureDroppableContainers:
|
|
36897
|
+
over: gG,
|
|
36898
|
+
measureDroppableContainers: UW
|
|
36899
36899
|
}), [
|
|
36900
36900
|
H,
|
|
36901
|
-
|
|
36901
|
+
xG,
|
|
36902
36902
|
L,
|
|
36903
|
-
|
|
36903
|
+
YW,
|
|
36904
36904
|
_,
|
|
36905
36905
|
q,
|
|
36906
36906
|
E,
|
|
36907
|
-
|
|
36908
|
-
|
|
36907
|
+
gG,
|
|
36908
|
+
UW
|
|
36909
36909
|
]);
|
|
36910
36910
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36911
36911
|
value: y
|
|
36912
36912
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36913
|
-
value:
|
|
36913
|
+
value: CG
|
|
36914
36914
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36915
|
-
value:
|
|
36915
|
+
value: SG
|
|
36916
36916
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36917
|
-
value:
|
|
36917
|
+
value: vG
|
|
36918
36918
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36919
36919
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36920
36920
|
})), import_react.createElement(Accessibility, {
|
|
36921
36921
|
...c,
|
|
36922
36922
|
hiddenTextDescribedById: q
|
|
36923
36923
|
}));
|
|
36924
|
-
function
|
|
36924
|
+
function wG() {
|
|
36925
36925
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36926
36926
|
return typeof l == "object" ? {
|
|
36927
36927
|
...l,
|
|
@@ -37449,7 +37449,7 @@ ${c}
|
|
|
37449
37449
|
updateMeasurementsFor: I,
|
|
37450
37450
|
...m
|
|
37451
37451
|
}
|
|
37452
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37452
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: VW, listeners: HW, isDragging: Z, over: UW, setActivatorNodeRef: WW, transform: GW } = useDraggable({
|
|
37453
37453
|
id: f,
|
|
37454
37454
|
data: M,
|
|
37455
37455
|
attributes: {
|
|
@@ -37457,60 +37457,60 @@ ${c}
|
|
|
37457
37457
|
...c
|
|
37458
37458
|
},
|
|
37459
37459
|
disabled: O.draggable
|
|
37460
|
-
}),
|
|
37460
|
+
}), KW = useCombinedRefs(B, VW), qW = !!H, JW = qW && !b && isValidIndex(v) && isValidIndex(w), YW = !T && Z, XW = JW ? (YW && JW ? GW : null) ?? (p ?? E)({
|
|
37461
37461
|
rects: S,
|
|
37462
37462
|
activeNodeRect: G,
|
|
37463
37463
|
activeIndex: v,
|
|
37464
37464
|
overIndex: w,
|
|
37465
37465
|
index: j
|
|
37466
|
-
}) : null,
|
|
37466
|
+
}) : null, ZW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37467
37467
|
id: f,
|
|
37468
37468
|
items: g,
|
|
37469
37469
|
activeIndex: v,
|
|
37470
37470
|
overIndex: w
|
|
37471
|
-
}) : j,
|
|
37472
|
-
activeId:
|
|
37471
|
+
}) : j, QW = H == null ? void 0 : H.id, $W = (0, import_react.useRef)({
|
|
37472
|
+
activeId: QW,
|
|
37473
37473
|
items: g,
|
|
37474
|
-
newIndex:
|
|
37474
|
+
newIndex: ZW,
|
|
37475
37475
|
containerId: _
|
|
37476
|
-
}),
|
|
37476
|
+
}), eG = g !== $W.current.items, tG = r({
|
|
37477
37477
|
active: H,
|
|
37478
37478
|
containerId: _,
|
|
37479
37479
|
isDragging: Z,
|
|
37480
|
-
isSorting:
|
|
37480
|
+
isSorting: qW,
|
|
37481
37481
|
id: f,
|
|
37482
37482
|
index: j,
|
|
37483
37483
|
items: g,
|
|
37484
|
-
newIndex:
|
|
37485
|
-
previousItems:
|
|
37486
|
-
previousContainerId:
|
|
37484
|
+
newIndex: $W.current.newIndex,
|
|
37485
|
+
previousItems: $W.current.items,
|
|
37486
|
+
previousContainerId: $W.current.containerId,
|
|
37487
37487
|
transition: h,
|
|
37488
|
-
wasDragging:
|
|
37489
|
-
}),
|
|
37490
|
-
disabled: !
|
|
37488
|
+
wasDragging: $W.current.activeId != null
|
|
37489
|
+
}), nG = useDerivedTransform({
|
|
37490
|
+
disabled: !tG,
|
|
37491
37491
|
index: j,
|
|
37492
37492
|
node: R,
|
|
37493
37493
|
rect: L
|
|
37494
37494
|
});
|
|
37495
37495
|
return (0, import_react.useEffect)(() => {
|
|
37496
|
-
|
|
37496
|
+
qW && $W.current.newIndex !== ZW && ($W.current.newIndex = ZW), _ !== $W.current.containerId && ($W.current.containerId = _), g !== $W.current.items && ($W.current.items = g);
|
|
37497
37497
|
}, [
|
|
37498
|
-
|
|
37499
|
-
|
|
37498
|
+
qW,
|
|
37499
|
+
ZW,
|
|
37500
37500
|
_,
|
|
37501
37501
|
g
|
|
37502
37502
|
]), (0, import_react.useEffect)(() => {
|
|
37503
|
-
if (
|
|
37504
|
-
if (
|
|
37505
|
-
|
|
37503
|
+
if (QW === $W.current.activeId) return;
|
|
37504
|
+
if (QW != null && $W.current.activeId == null) {
|
|
37505
|
+
$W.current.activeId = QW;
|
|
37506
37506
|
return;
|
|
37507
37507
|
}
|
|
37508
37508
|
let e2 = setTimeout(() => {
|
|
37509
|
-
|
|
37509
|
+
$W.current.activeId = QW;
|
|
37510
37510
|
}, 50);
|
|
37511
37511
|
return () => clearTimeout(e2);
|
|
37512
37512
|
}, [
|
|
37513
|
-
|
|
37513
|
+
QW
|
|
37514
37514
|
]), {
|
|
37515
37515
|
active: H,
|
|
37516
37516
|
activeIndex: v,
|
|
@@ -37518,25 +37518,25 @@ ${c}
|
|
|
37518
37518
|
data: M,
|
|
37519
37519
|
rect: L,
|
|
37520
37520
|
index: j,
|
|
37521
|
-
newIndex:
|
|
37521
|
+
newIndex: ZW,
|
|
37522
37522
|
items: g,
|
|
37523
37523
|
isOver: z,
|
|
37524
|
-
isSorting:
|
|
37524
|
+
isSorting: qW,
|
|
37525
37525
|
isDragging: Z,
|
|
37526
|
-
listeners:
|
|
37526
|
+
listeners: HW,
|
|
37527
37527
|
node: R,
|
|
37528
37528
|
overIndex: w,
|
|
37529
|
-
over:
|
|
37530
|
-
setNodeRef:
|
|
37531
|
-
setActivatorNodeRef:
|
|
37529
|
+
over: UW,
|
|
37530
|
+
setNodeRef: KW,
|
|
37531
|
+
setActivatorNodeRef: WW,
|
|
37532
37532
|
setDroppableNodeRef: B,
|
|
37533
|
-
setDraggableNodeRef:
|
|
37534
|
-
transform:
|
|
37535
|
-
transition:
|
|
37533
|
+
setDraggableNodeRef: VW,
|
|
37534
|
+
transform: nG ?? XW,
|
|
37535
|
+
transition: rG()
|
|
37536
37536
|
};
|
|
37537
|
-
function
|
|
37538
|
-
if (
|
|
37539
|
-
if (!(
|
|
37537
|
+
function rG() {
|
|
37538
|
+
if (nG || eG && $W.current.newIndex === j) return disabledTransition;
|
|
37539
|
+
if (!(YW && !isKeyboardEvent(W) || !h) && (qW || tG)) return CSS$1.Transition.toString({
|
|
37540
37540
|
...h,
|
|
37541
37541
|
property: transitionProperty
|
|
37542
37542
|
});
|
|
@@ -37836,13 +37836,13 @@ ${c}
|
|
|
37836
37836
|
G
|
|
37837
37837
|
]
|
|
37838
37838
|
}), r[35] = c.id, r[36] = h, 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];
|
|
37839
|
-
let
|
|
37840
|
-
if (!v && !g) return
|
|
37841
|
-
let
|
|
37842
|
-
r[46] ===
|
|
37839
|
+
let VW = q;
|
|
37840
|
+
if (!v && !g) return VW;
|
|
37841
|
+
let HW;
|
|
37842
|
+
r[46] === VW ? HW = r[47] : (HW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37843
37843
|
asChild: true,
|
|
37844
|
-
children:
|
|
37845
|
-
}), r[46] =
|
|
37844
|
+
children: VW
|
|
37845
|
+
}), r[46] = VW, r[47] = HW);
|
|
37846
37846
|
let Z;
|
|
37847
37847
|
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37848
37848
|
onSelect: v,
|
|
@@ -37853,10 +37853,10 @@ ${c}
|
|
|
37853
37853
|
"Add cell"
|
|
37854
37854
|
]
|
|
37855
37855
|
}), r[48] = v, r[49] = Z);
|
|
37856
|
-
let
|
|
37857
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37858
|
-
let
|
|
37859
|
-
r[51] === g ?
|
|
37856
|
+
let UW;
|
|
37857
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = UW) : UW = r[50];
|
|
37858
|
+
let WW;
|
|
37859
|
+
r[51] === g ? WW = r[52] : (WW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37860
37860
|
variant: "danger",
|
|
37861
37861
|
onSelect: g,
|
|
37862
37862
|
children: [
|
|
@@ -37865,22 +37865,22 @@ ${c}
|
|
|
37865
37865
|
}),
|
|
37866
37866
|
"Delete cell"
|
|
37867
37867
|
]
|
|
37868
|
-
}), r[51] = g, r[52] =
|
|
37869
|
-
let
|
|
37870
|
-
r[53] !== Z || r[54] !==
|
|
37868
|
+
}), r[51] = g, r[52] = WW);
|
|
37869
|
+
let GW;
|
|
37870
|
+
r[53] !== Z || r[54] !== WW ? (GW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37871
37871
|
children: [
|
|
37872
37872
|
Z,
|
|
37873
|
-
|
|
37874
|
-
|
|
37873
|
+
UW,
|
|
37874
|
+
WW
|
|
37875
37875
|
]
|
|
37876
|
-
}), r[53] = Z, r[54] =
|
|
37877
|
-
let
|
|
37878
|
-
return r[56] !==
|
|
37876
|
+
}), r[53] = Z, r[54] = WW, r[55] = GW) : GW = r[55];
|
|
37877
|
+
let KW;
|
|
37878
|
+
return r[56] !== HW || r[57] !== GW ? (KW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37879
37879
|
children: [
|
|
37880
|
-
|
|
37881
|
-
|
|
37880
|
+
HW,
|
|
37881
|
+
GW
|
|
37882
37882
|
]
|
|
37883
|
-
}), r[56] =
|
|
37883
|
+
}), r[56] = HW, r[57] = GW, r[58] = KW) : KW = r[58], KW;
|
|
37884
37884
|
}, InsertCellLine = (e) => {
|
|
37885
37885
|
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;
|
|
37886
37886
|
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);
|
|
@@ -37934,10 +37934,10 @@ ${c}
|
|
|
37934
37934
|
...B,
|
|
37935
37935
|
...h
|
|
37936
37936
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37937
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
37938
|
-
r[25] !== l || r[26] !==
|
|
37939
|
-
let
|
|
37940
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
37937
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", VW = w && !T && "opacity-35", HW = T && "opacity-95 shadow-lg", Z;
|
|
37938
|
+
r[25] !== l || r[26] !== VW || r[27] !== HW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, VW, HW, l), r[25] = l, r[26] = VW, r[27] = HW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
37939
|
+
let UW;
|
|
37940
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (UW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37941
37941
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37942
37942
|
style: {
|
|
37943
37943
|
transform: `scale(${I})`,
|
|
@@ -37953,14 +37953,14 @@ ${c}
|
|
|
37953
37953
|
output: c.output,
|
|
37954
37954
|
stale: outputIsStale(c, false)
|
|
37955
37955
|
})
|
|
37956
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
37957
|
-
let
|
|
37958
|
-
r[37] === z ?
|
|
37956
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = UW) : UW = r[36];
|
|
37957
|
+
let WW;
|
|
37958
|
+
r[37] === z ? WW = r[38] : (WW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37959
37959
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37960
37960
|
"aria-hidden": true
|
|
37961
|
-
}), r[37] = z, r[38] =
|
|
37962
|
-
let
|
|
37963
|
-
r[39] !== z || r[40] !== R ? (
|
|
37961
|
+
}), r[37] = z, r[38] = WW);
|
|
37962
|
+
let GW;
|
|
37963
|
+
r[39] !== z || r[40] !== R ? (GW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37964
37964
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37965
37965
|
className: "text-xs opacity-80",
|
|
37966
37966
|
children: R.description
|
|
@@ -37972,19 +37972,19 @@ ${c}
|
|
|
37972
37972
|
className: "h-3.5 w-3.5"
|
|
37973
37973
|
})
|
|
37974
37974
|
})
|
|
37975
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37976
|
-
let
|
|
37977
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
37975
|
+
}), r[39] = z, r[40] = R, r[41] = GW) : GW = r[41];
|
|
37976
|
+
let KW;
|
|
37977
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== UW || r[47] !== WW || r[48] !== GW ? (KW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37978
37978
|
ref: f,
|
|
37979
37979
|
className: Z,
|
|
37980
37980
|
style: W,
|
|
37981
37981
|
...d,
|
|
37982
37982
|
children: [
|
|
37983
|
-
|
|
37984
|
-
|
|
37985
|
-
|
|
37983
|
+
UW,
|
|
37984
|
+
WW,
|
|
37985
|
+
GW
|
|
37986
37986
|
]
|
|
37987
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
37987
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = UW, r[47] = WW, r[48] = GW, r[49] = KW) : KW = r[49], KW;
|
|
37988
37988
|
}, MiniCodePreview = (e) => {
|
|
37989
37989
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37990
37990
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38024,7 +38024,7 @@ ${c}
|
|
|
38024
38024
|
function _temp2$2(e) {
|
|
38025
38025
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38026
38026
|
}
|
|
38027
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38027
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-kLDhMoa2.js"));
|
|
38028
38028
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38029
38029
|
var _a5;
|
|
38030
38030
|
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), [
|
|
@@ -38409,7 +38409,7 @@ ${c}
|
|
|
38409
38409
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38410
38410
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38411
38411
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38412
|
-
let H, W, G, q,
|
|
38412
|
+
let H, W, G, q, VW, HW, Z, UW, WW, GW;
|
|
38413
38413
|
if (r[3] !== T || 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] !== m || r[19] !== l) {
|
|
38414
38414
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38415
38415
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38455,11 +38455,11 @@ ${c}
|
|
|
38455
38455
|
})
|
|
38456
38456
|
})
|
|
38457
38457
|
]
|
|
38458
|
-
}), 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",
|
|
38459
|
-
let
|
|
38460
|
-
r[40] !== M || r[41] !==
|
|
38458
|
+
}), 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", VW = c, HW = R, Z = 0;
|
|
38459
|
+
let KW2 = y && "marimo-output-stale", qW2 = L ? "p-5" : "p-3";
|
|
38460
|
+
r[40] !== M || r[41] !== KW2 || r[42] !== qW2 ? (UW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", KW2, qW2, M), r[40] = M, r[41] = KW2, r[42] = qW2, r[43] = UW) : UW = r[43], r[44] === d ? WW = r[45] : (WW = d ? {
|
|
38461
38461
|
maxHeight: "none"
|
|
38462
|
-
} : void 0, r[44] = d, r[45] =
|
|
38462
|
+
} : void 0, r[44] = d, r[45] = WW), GW = e2.map((e3, r2) => {
|
|
38463
38463
|
if (e3.channel === "pdb") return null;
|
|
38464
38464
|
if (e3.channel === "stdin") {
|
|
38465
38465
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38488,36 +38488,36 @@ ${c}
|
|
|
38488
38488
|
wrapText: l
|
|
38489
38489
|
})
|
|
38490
38490
|
}, r2);
|
|
38491
|
-
}), r[3] = T, 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] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
38492
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38493
|
-
let
|
|
38494
|
-
r[46] !== T || r[47] !== S ? (
|
|
38491
|
+
}), r[3] = T, 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] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = VW, r[25] = HW, r[26] = Z, r[27] = UW, r[28] = WW, r[29] = GW;
|
|
38492
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], VW = r[24], HW = r[25], Z = r[26], UW = r[27], WW = r[28], GW = r[29];
|
|
38493
|
+
let KW;
|
|
38494
|
+
r[46] !== T || r[47] !== S ? (KW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38495
38495
|
value: S,
|
|
38496
38496
|
cellId: T,
|
|
38497
38497
|
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"
|
|
38498
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
38499
|
-
let
|
|
38500
|
-
r[49] !==
|
|
38498
|
+
}), r[46] = T, r[47] = S, r[48] = KW) : KW = r[48];
|
|
38499
|
+
let qW;
|
|
38500
|
+
r[49] !== KW || r[50] !== G || r[51] !== q || r[52] !== VW || r[53] !== HW || r[54] !== Z || r[55] !== UW || r[56] !== WW || r[57] !== GW ? (qW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38501
38501
|
title: G,
|
|
38502
38502
|
"data-testid": q,
|
|
38503
|
-
ref:
|
|
38504
|
-
...
|
|
38503
|
+
ref: VW,
|
|
38504
|
+
...HW,
|
|
38505
38505
|
tabIndex: Z,
|
|
38506
|
-
className:
|
|
38507
|
-
style:
|
|
38506
|
+
className: UW,
|
|
38507
|
+
style: WW,
|
|
38508
38508
|
children: [
|
|
38509
|
-
|
|
38510
|
-
|
|
38509
|
+
GW,
|
|
38510
|
+
KW
|
|
38511
38511
|
]
|
|
38512
|
-
}), r[49] =
|
|
38513
|
-
let
|
|
38514
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38512
|
+
}), r[49] = KW, r[50] = G, r[51] = q, r[52] = VW, r[53] = HW, r[54] = Z, r[55] = UW, r[56] = WW, r[57] = GW, r[58] = qW) : qW = r[58];
|
|
38513
|
+
let JW;
|
|
38514
|
+
return r[59] !== H || r[60] !== W || r[61] !== qW ? (JW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38515
38515
|
className: H,
|
|
38516
38516
|
children: [
|
|
38517
38517
|
W,
|
|
38518
|
-
|
|
38518
|
+
qW
|
|
38519
38519
|
]
|
|
38520
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38520
|
+
}), r[59] = H, r[60] = W, r[61] = qW, r[62] = JW) : JW = r[62], JW;
|
|
38521
38521
|
}, StdInput = (e) => {
|
|
38522
38522
|
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;
|
|
38523
38523
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -39017,14 +39017,14 @@ ${c}
|
|
|
39017
39017
|
stale: I,
|
|
39018
39018
|
loading: R
|
|
39019
39019
|
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
|
|
39020
|
-
let
|
|
39021
|
-
return r[53] !== H || r[54] !== W || r[55] !== q ? (
|
|
39020
|
+
let VW;
|
|
39021
|
+
return r[53] !== H || r[54] !== W || r[55] !== q ? (VW = (0, import_jsx_runtime.jsx)("div", {
|
|
39022
39022
|
tabIndex: -1,
|
|
39023
39023
|
ref: j,
|
|
39024
39024
|
className: H,
|
|
39025
39025
|
...W,
|
|
39026
39026
|
children: q
|
|
39027
|
-
}), r[53] = H, r[54] = W, r[55] = q, r[56] =
|
|
39027
|
+
}), r[53] = H, r[54] = W, r[55] = q, r[56] = VW) : VW = r[56], VW;
|
|
39028
39028
|
});
|
|
39029
39029
|
VerticalCell.displayName = "VerticalCell";
|
|
39030
39030
|
const VerticalLayoutPlugin = {
|
|
@@ -39248,94 +39248,101 @@ ${c}
|
|
|
39248
39248
|
}
|
|
39249
39249
|
document.removeEventListener(MarimoValueReadyEvent.TYPE, this.handleReadyEvent), this.hasStarted = false;
|
|
39250
39250
|
}
|
|
39251
|
-
};
|
|
39252
|
-
function parseMarimoIslandApps(e = document) {
|
|
39253
|
-
let
|
|
39251
|
+
}, retainedPayloadCellIds = /* @__PURE__ */ new WeakMap();
|
|
39252
|
+
function parseMarimoIslandApps(e = document, r = {}) {
|
|
39253
|
+
let c = [
|
|
39254
39254
|
...e.querySelectorAll(ISLAND_TAG_NAMES.ISLAND)
|
|
39255
|
-
],
|
|
39256
|
-
|
|
39257
|
-
|
|
39258
|
-
|
|
39259
|
-
|
|
39260
|
-
|
|
39261
|
-
|
|
39255
|
+
], l = parseMarimoIslandPayloads(e);
|
|
39256
|
+
if (c.length === 0) return Logger.warn("No embedded marimo apps found."), [];
|
|
39257
|
+
let u = r.materialize ?? true;
|
|
39258
|
+
return l.length > 0 ? parsePayloadBackedApps({
|
|
39259
|
+
embeds: c,
|
|
39260
|
+
materialize: u,
|
|
39261
|
+
payloads: l
|
|
39262
|
+
}) : parseIslandElementsIntoApps(c, u);
|
|
39263
|
+
}
|
|
39264
|
+
function parseIslandElementsIntoApps(e, r = true) {
|
|
39265
|
+
let c = /* @__PURE__ */ new Map();
|
|
39266
|
+
for (let l of e) {
|
|
39267
|
+
let e2 = l.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39262
39268
|
if (!e2) {
|
|
39263
39269
|
Logger.warn("Embedded marimo cell missing data-app-id attribute.");
|
|
39264
39270
|
continue;
|
|
39265
39271
|
}
|
|
39266
|
-
if (
|
|
39267
|
-
let
|
|
39268
|
-
if (!
|
|
39272
|
+
if (l.getAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE) !== "true") continue;
|
|
39273
|
+
let u = parseIslandElement(l);
|
|
39274
|
+
if (!u) {
|
|
39269
39275
|
Logger.warn(`Embedded marimo app ${e2} missing cell output or code.`);
|
|
39270
39276
|
continue;
|
|
39271
39277
|
}
|
|
39272
|
-
let
|
|
39273
|
-
|
|
39278
|
+
let f = c.get(e2);
|
|
39279
|
+
f || (f = {
|
|
39274
39280
|
id: e2,
|
|
39275
39281
|
cells: []
|
|
39276
|
-
},
|
|
39277
|
-
let
|
|
39278
|
-
|
|
39279
|
-
output:
|
|
39280
|
-
code:
|
|
39281
|
-
idx:
|
|
39282
|
-
}),
|
|
39282
|
+
}, c.set(e2, f));
|
|
39283
|
+
let p = f.cells.length;
|
|
39284
|
+
f.cells.push({
|
|
39285
|
+
output: u.output,
|
|
39286
|
+
code: u.code,
|
|
39287
|
+
idx: p
|
|
39288
|
+
}), r && (l.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, p.toString()), l.dispatchEvent(new Event(ISLAND_SOURCE_CHANGED_EVENT)));
|
|
39283
39289
|
}
|
|
39284
39290
|
return [
|
|
39285
|
-
...
|
|
39291
|
+
...c.values()
|
|
39286
39292
|
];
|
|
39287
39293
|
}
|
|
39288
|
-
function parsePayloadBackedApps(e, r) {
|
|
39289
|
-
let
|
|
39290
|
-
for (let
|
|
39291
|
-
let
|
|
39292
|
-
for (let
|
|
39293
|
-
let
|
|
39294
|
+
function parsePayloadBackedApps({ embeds: e, materialize: r, payloads: c }) {
|
|
39295
|
+
let l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = [];
|
|
39296
|
+
for (let l2 of c) {
|
|
39297
|
+
let c2 = false;
|
|
39298
|
+
for (let f2 of l2.cells) {
|
|
39299
|
+
let p2 = findMatchingIsland({
|
|
39294
39300
|
embeds: e,
|
|
39295
|
-
appId:
|
|
39296
|
-
cell:
|
|
39297
|
-
consumedEmbeds:
|
|
39301
|
+
appId: l2.appId,
|
|
39302
|
+
cell: f2,
|
|
39303
|
+
consumedEmbeds: d
|
|
39298
39304
|
});
|
|
39299
|
-
|
|
39305
|
+
p2 && (d.add(p2), u.set(f2, p2), r && materializeIslandPayload(p2, f2), c2 = true);
|
|
39300
39306
|
}
|
|
39301
|
-
|
|
39307
|
+
c2 && f.push(l2);
|
|
39302
39308
|
}
|
|
39303
|
-
let
|
|
39304
|
-
for (let e2 of
|
|
39305
|
-
let
|
|
39306
|
-
if (!
|
|
39307
|
-
let
|
|
39308
|
-
|
|
39309
|
+
let p = new Set(f.map((e2) => e2.appId)), m = new Set(f.filter((e2) => e2.cells.some((e3) => e3.reactive)).map((e2) => e2.appId));
|
|
39310
|
+
for (let e2 of f) for (let c2 of e2.cells) {
|
|
39311
|
+
let d2 = u.get(c2);
|
|
39312
|
+
if (!m.has(e2.appId)) continue;
|
|
39313
|
+
let f2 = l.get(e2.appId);
|
|
39314
|
+
f2 || (f2 = {
|
|
39309
39315
|
id: e2.appId,
|
|
39310
39316
|
payloadBacked: true,
|
|
39311
39317
|
cells: []
|
|
39312
|
-
},
|
|
39313
|
-
let
|
|
39314
|
-
cellId:
|
|
39315
|
-
output:
|
|
39316
|
-
code:
|
|
39317
|
-
idx:
|
|
39318
|
+
}, l.set(e2.appId, f2));
|
|
39319
|
+
let p2 = f2.cells.length, h2 = {
|
|
39320
|
+
cellId: c2.cellId,
|
|
39321
|
+
output: c2.outputHtml,
|
|
39322
|
+
code: c2.reactive ? c2.code : "",
|
|
39323
|
+
idx: p2
|
|
39318
39324
|
};
|
|
39319
|
-
|
|
39325
|
+
c2.reactive || (h2.disabled = true), f2.cells.push(h2), r && c2.reactive && (d2 == null ? void 0 : d2.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, p2.toString()));
|
|
39320
39326
|
}
|
|
39321
|
-
for (let r2 of e) {
|
|
39327
|
+
if (r) for (let r2 of e) {
|
|
39322
39328
|
let e2 = r2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39323
|
-
e2 &&
|
|
39329
|
+
e2 && p.has(e2) && !d.has(r2) && (r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX), r2.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, "false"), d.add(r2));
|
|
39324
39330
|
}
|
|
39325
|
-
let
|
|
39331
|
+
let h = e.filter((e2) => {
|
|
39326
39332
|
let r2 = e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39327
|
-
return !r2 || !
|
|
39333
|
+
return !r2 || !p.has(r2);
|
|
39328
39334
|
});
|
|
39335
|
+
if (r) for (let e2 of d) e2.dispatchEvent(new Event(ISLAND_SOURCE_CHANGED_EVENT));
|
|
39329
39336
|
return [
|
|
39330
|
-
...
|
|
39331
|
-
...parseIslandElementsIntoApps(
|
|
39337
|
+
...l.values(),
|
|
39338
|
+
...parseIslandElementsIntoApps(h, r)
|
|
39332
39339
|
];
|
|
39333
39340
|
}
|
|
39334
39341
|
function findMatchingIsland({ embeds: e, appId: r, cell: c, consumedEmbeds: l }) {
|
|
39335
|
-
return e.find((e2) => l.has(e2) ? false : e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID) === r && e2.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID) === c.cellId);
|
|
39342
|
+
return e.find((e2) => l.has(e2) ? false : e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID) === r && (e2.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID) ?? retainedPayloadCellIds.get(e2)) === c.cellId);
|
|
39336
39343
|
}
|
|
39337
39344
|
function materializeIslandPayload(e, r) {
|
|
39338
|
-
e.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, JSON.stringify(r.reactive)), e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r.reactive || e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
39345
|
+
retainedPayloadCellIds.set(e, r.cellId), e.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, JSON.stringify(r.reactive)), e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r.reactive || e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
39339
39346
|
let c = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_OUTPUT);
|
|
39340
39347
|
c.innerHTML = r.displayOutput ? r.outputHtml : "";
|
|
39341
39348
|
let l = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_CODE);
|
|
@@ -39347,12 +39354,18 @@ ${c}
|
|
|
39347
39354
|
let c = e.querySelector(r);
|
|
39348
39355
|
return c || (c = e.ownerDocument.createElement(r), e.appendChild(c)), c;
|
|
39349
39356
|
}
|
|
39357
|
+
var retainedIslandSources = /* @__PURE__ */ new WeakMap();
|
|
39358
|
+
function retainIslandSource(e, r) {
|
|
39359
|
+
r.code ? retainedIslandSources.set(e, r) : retainedIslandSources.delete(e);
|
|
39360
|
+
}
|
|
39350
39361
|
function parseIslandElement(e) {
|
|
39351
39362
|
let r = e.querySelector(ISLAND_TAG_NAMES.CELL_OUTPUT), c = extractIslandCodeFromEmbed(e);
|
|
39352
|
-
|
|
39363
|
+
if (r && c) return {
|
|
39353
39364
|
output: r.innerHTML,
|
|
39354
39365
|
code: c
|
|
39355
39366
|
};
|
|
39367
|
+
let l = retainedIslandSources.get(e);
|
|
39368
|
+
return (l == null ? void 0 : l.code) ? l : null;
|
|
39356
39369
|
}
|
|
39357
39370
|
function createMarimoFile(e) {
|
|
39358
39371
|
return [
|
|
@@ -39589,7 +39602,13 @@ ${c}
|
|
|
39589
39602
|
}), r[0] = c, r[1] = l), l;
|
|
39590
39603
|
}, import_client = __toESM(require_client(), 1), MarimoIslandElement = (_h2 = class extends HTMLElement {
|
|
39591
39604
|
constructor() {
|
|
39592
|
-
super()
|
|
39605
|
+
super();
|
|
39606
|
+
__publicField(this, "connectionGeneration", 0);
|
|
39607
|
+
__publicField(this, "handleSourceChanged", () => {
|
|
39608
|
+
var _a5, _b3;
|
|
39609
|
+
this.querySelector(_h2.outputTagName) && (this.renderConfig = this.extractRenderConfig(), (_a5 = this.querySelector(_h2.outputTagName)) == null ? void 0 : _a5.remove(), (_b3 = this.querySelector(_h2.codeTagName)) == null ? void 0 : _b3.remove()), this.runtimeCellId = this.isReactive && this.runtimeAppId === this.appId ? this.cellId : void 0, this.runtimeAppId = this.appId, this.syncCellIdsSubscription(), this.renderIsland();
|
|
39610
|
+
});
|
|
39611
|
+
this.classList.add(_h2.styleNamespace);
|
|
39593
39612
|
}
|
|
39594
39613
|
get appId() {
|
|
39595
39614
|
let e = this.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
@@ -39599,6 +39618,7 @@ ${c}
|
|
|
39599
39618
|
return this.getAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE) === "true";
|
|
39600
39619
|
}
|
|
39601
39620
|
get cellId() {
|
|
39621
|
+
if (!this.isReactive) return;
|
|
39602
39622
|
let e = this.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID);
|
|
39603
39623
|
if (e) return e;
|
|
39604
39624
|
let r = this.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
@@ -39608,35 +39628,51 @@ ${c}
|
|
|
39608
39628
|
return extractIslandCodeFromEmbed(this);
|
|
39609
39629
|
}
|
|
39610
39630
|
getCellIdFromIndex(e) {
|
|
39611
|
-
let { cellIds: r } = store.get(notebookAtom)
|
|
39612
|
-
return
|
|
39631
|
+
let { cellIds: r } = store.get(notebookAtom);
|
|
39632
|
+
return r.inOrderIds.at(e);
|
|
39613
39633
|
}
|
|
39614
39634
|
connectedCallback() {
|
|
39615
|
-
let
|
|
39616
|
-
queueMicrotask(() => {
|
|
39617
|
-
this.isConnected
|
|
39635
|
+
let r = ++this.connectionGeneration;
|
|
39636
|
+
this.addEventListener(ISLAND_SOURCE_CHANGED_EVENT, this.handleSourceChanged), this.querySelector(_h2.outputTagName) && (this.renderConfig = this.extractRenderConfig()), invariant(this.renderConfig, "Missing island render source"), this.runtimeAppId = this.appId, this.runtimeCellId = this.hasAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX) ? this.cellId : void 0, this.syncCellIdsSubscription(), queueMicrotask(() => {
|
|
39637
|
+
!this.isConnected || r !== this.connectionGeneration || (this.root = import_client.createRoot(this), this.renderIsland());
|
|
39618
39638
|
});
|
|
39619
39639
|
}
|
|
39640
|
+
syncCellIdsSubscription() {
|
|
39641
|
+
var _a5;
|
|
39642
|
+
if (this.isReactive) {
|
|
39643
|
+
this.unsubscribeCellIds ?? (this.unsubscribeCellIds = store.sub(cellIdsAtom, () => {
|
|
39644
|
+
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
39645
|
+
}));
|
|
39646
|
+
return;
|
|
39647
|
+
}
|
|
39648
|
+
(_a5 = this.unsubscribeCellIds) == null ? void 0 : _a5.call(this), this.unsubscribeCellIds = void 0;
|
|
39649
|
+
}
|
|
39620
39650
|
extractRenderConfig() {
|
|
39621
39651
|
var _a5, _b3;
|
|
39622
|
-
let r = this.querySelectorOrThrow(_h2.outputTagName).innerHTML, c = this.getOptionalEditor(), l = this.code
|
|
39652
|
+
let r = this.querySelectorOrThrow(_h2.outputTagName).innerHTML, c = this.getOptionalEditor(), l = this.code;
|
|
39653
|
+
retainIslandSource(this, {
|
|
39654
|
+
code: l,
|
|
39655
|
+
output: r
|
|
39656
|
+
});
|
|
39657
|
+
let u = (_b3 = (_a5 = this.querySelector(_h2.editorTagName)) == null ? void 0 : _a5.parentElement) == null ? void 0 : _b3.getAttribute(OBJECT_ID_ATTR);
|
|
39623
39658
|
return {
|
|
39624
39659
|
html: r,
|
|
39625
|
-
codeCallback: c &&
|
|
39626
|
-
let e = UI_ELEMENT_REGISTRY.lookupValue(
|
|
39660
|
+
codeCallback: c && u ? () => {
|
|
39661
|
+
let e = UI_ELEMENT_REGISTRY.lookupValue(u);
|
|
39627
39662
|
return e === void 0 ? l : String(e);
|
|
39628
39663
|
} : () => l,
|
|
39629
|
-
editor: c
|
|
39630
|
-
cellId: u
|
|
39664
|
+
editor: c
|
|
39631
39665
|
};
|
|
39632
39666
|
}
|
|
39633
|
-
renderIsland(
|
|
39667
|
+
renderIsland() {
|
|
39634
39668
|
var _a5, _b3;
|
|
39635
|
-
let
|
|
39669
|
+
let e = this.renderConfig;
|
|
39670
|
+
if (!e) return;
|
|
39671
|
+
let { html: r, codeCallback: c, editor: l } = e, u = this.runtimeCellId, d = !!l, f = r.trim(), p = f === "<span></span>" || f === "" ? null : renderHTML({
|
|
39636
39672
|
html: f
|
|
39637
39673
|
});
|
|
39638
39674
|
if (!u) {
|
|
39639
|
-
(_a5 = this.root) == null ? void 0 : _a5.render((0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
39675
|
+
this.removeAttribute("data-status"), (_a5 = this.root) == null ? void 0 : _a5.render((0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
39640
39676
|
children: (0, import_jsx_runtime.jsx)(Provider, {
|
|
39641
39677
|
store,
|
|
39642
39678
|
children: (0, import_jsx_runtime.jsx)(LocaleProvider, {
|
|
@@ -39681,6 +39717,8 @@ ${c}
|
|
|
39681
39717
|
return invariant(r, `Missing ${e} element`), r;
|
|
39682
39718
|
}
|
|
39683
39719
|
disconnectedCallback() {
|
|
39720
|
+
var _a5;
|
|
39721
|
+
this.removeEventListener(ISLAND_SOURCE_CHANGED_EVENT, this.handleSourceChanged), (_a5 = this.unsubscribeCellIds) == null ? void 0 : _a5.call(this), this.unsubscribeCellIds = void 0;
|
|
39684
39722
|
let e = this.root;
|
|
39685
39723
|
this.root = void 0, e && queueMicrotask(() => e.unmount());
|
|
39686
39724
|
}
|
|
@@ -39707,12 +39745,13 @@ ${c}
|
|
|
39707
39745
|
r.set(notebookAtom, (r2) => reducer(r2, e2));
|
|
39708
39746
|
});
|
|
39709
39747
|
r.sub(shouldShowIslandsWarningIndicatorAtom, () => {
|
|
39710
|
-
|
|
39748
|
+
let e2 = r.get(shouldShowIslandsWarningIndicatorAtom), l2 = c.querySelectorAll(ISLAND_TAG_NAMES.ISLAND);
|
|
39749
|
+
if (e2) {
|
|
39711
39750
|
toastIslandsLoading();
|
|
39712
|
-
for (let
|
|
39751
|
+
for (let e3 of l2) e3.style.setProperty("opacity", "0.5");
|
|
39713
39752
|
} else {
|
|
39714
39753
|
dismissIslandsLoadingToast();
|
|
39715
|
-
for (let
|
|
39754
|
+
for (let e3 of l2) e3.style.removeProperty("opacity");
|
|
39716
39755
|
}
|
|
39717
39756
|
}), l.consumeMessages((e2) => {
|
|
39718
39757
|
handleMessage(e2, f);
|
|
@@ -39723,6 +39762,7 @@ ${c}
|
|
|
39723
39762
|
}), RuntimeState.INSTANCE.start(l.sendComponentValues);
|
|
39724
39763
|
}
|
|
39725
39764
|
function handleMessage(e, r) {
|
|
39765
|
+
var _a5;
|
|
39726
39766
|
try {
|
|
39727
39767
|
let c = jsonParseWithSpecialChar(e);
|
|
39728
39768
|
switch (Logger.debug("Islands received message:", c.op), c.op) {
|
|
@@ -39764,7 +39804,7 @@ ${c}
|
|
|
39764
39804
|
setCapabilities: Functions.NOOP,
|
|
39765
39805
|
setKernelState: Functions.NOOP,
|
|
39766
39806
|
onError: Logger.error
|
|
39767
|
-
}), defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39807
|
+
}), ((_a5 = window.customElements) == null ? void 0 : _a5.get(ISLAND_TAG_NAMES.ISLAND)) || defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39768
39808
|
return;
|
|
39769
39809
|
case "send-ui-element-message":
|
|
39770
39810
|
UI_ELEMENT_REGISTRY.broadcastMessage(c.data.ui_element, c.data.message, safeExtractSetUIElementMessageBuffers(c.data));
|
|
@@ -40037,7 +40077,7 @@ ${c}
|
|
|
40037
40077
|
});
|
|
40038
40078
|
}
|
|
40039
40079
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
40040
|
-
var worker_default = "/assets/worker-
|
|
40080
|
+
var worker_default = "/assets/worker-B3XPCb6y.js", DefaultWorkerFactory = class {
|
|
40041
40081
|
constructor(e = {}) {
|
|
40042
40082
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
40043
40083
|
}
|
|
@@ -40061,6 +40101,10 @@ ${c}
|
|
|
40061
40101
|
}
|
|
40062
40102
|
var IslandsPyodideBridge = class {
|
|
40063
40103
|
constructor(e = {}) {
|
|
40104
|
+
__publicField(this, "sessionReady", new Deferred());
|
|
40105
|
+
__publicField(this, "nextSessionGeneration", 0);
|
|
40106
|
+
__publicField(this, "appTransition", Promise.resolve());
|
|
40107
|
+
__publicField(this, "workerReady", new Deferred());
|
|
40064
40108
|
__publicField(this, "initialized", new Deferred());
|
|
40065
40109
|
__publicField(this, "sendComponentValues", async (e) => (await this.putControlRequest({
|
|
40066
40110
|
type: "update-ui-element",
|
|
@@ -40076,10 +40120,17 @@ ${c}
|
|
|
40076
40120
|
type: "model",
|
|
40077
40121
|
...e
|
|
40078
40122
|
}), null));
|
|
40079
|
-
__publicField(this, "sendRun", async (e) =>
|
|
40080
|
-
|
|
40081
|
-
|
|
40082
|
-
|
|
40123
|
+
__publicField(this, "sendRun", async (e) => {
|
|
40124
|
+
let r = await this.getActiveSession();
|
|
40125
|
+
return await this.rpc.proxy.request.loadPackages({
|
|
40126
|
+
appId: r.appId,
|
|
40127
|
+
code: e.codes.join("\n"),
|
|
40128
|
+
sessionGeneration: r.sessionGeneration
|
|
40129
|
+
}), await this.putControlRequest({
|
|
40130
|
+
type: "execute-cells",
|
|
40131
|
+
...e
|
|
40132
|
+
}, r), null;
|
|
40133
|
+
});
|
|
40083
40134
|
__publicField(this, "getUsageStats", throwNotImplemented);
|
|
40084
40135
|
__publicField(this, "sendRename", throwNotImplemented);
|
|
40085
40136
|
__publicField(this, "sendSave", throwNotImplemented);
|
|
@@ -40140,7 +40191,7 @@ ${c}
|
|
|
40140
40191
|
__publicField(this, "getCacheInfo", throwNotImplemented);
|
|
40141
40192
|
__publicField(this, "listStorageEntries", throwNotImplemented);
|
|
40142
40193
|
__publicField(this, "downloadStorage", throwNotImplemented);
|
|
40143
|
-
this.store = e.store || store, this.root = e.root || document
|
|
40194
|
+
this.store = e.store || store, this.root = e.root || document;
|
|
40144
40195
|
try {
|
|
40145
40196
|
this.rpc = getWorkerRPC((e.workerFactory || new DefaultWorkerFactory()).create()), this.setupMessageListeners();
|
|
40146
40197
|
} catch (e2) {
|
|
@@ -40149,7 +40200,7 @@ ${c}
|
|
|
40149
40200
|
}
|
|
40150
40201
|
setupMessageListeners() {
|
|
40151
40202
|
this.rpc.addMessageListener("ready", () => {
|
|
40152
|
-
this.
|
|
40203
|
+
this.workerReady.resolve();
|
|
40153
40204
|
}), this.rpc.addMessageListener("initialized", () => {
|
|
40154
40205
|
this.store.set(islandsInitializedAtom, true), this.initialized.resolve();
|
|
40155
40206
|
}), this.rpc.addMessageListener("initializedError", ({ error: e }) => {
|
|
@@ -40159,44 +40210,94 @@ ${c}
|
|
|
40159
40210
|
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40160
40211
|
});
|
|
40161
40212
|
}
|
|
40162
|
-
|
|
40163
|
-
|
|
40164
|
-
|
|
40213
|
+
async initializeApps() {
|
|
40214
|
+
await this.enqueueAppTransition(async () => {
|
|
40215
|
+
await this.workerReady.promise, await this.startApps();
|
|
40216
|
+
});
|
|
40217
|
+
}
|
|
40218
|
+
async startApps() {
|
|
40219
|
+
var _a5, _b3, _c4, _d4;
|
|
40220
|
+
let e = parseMarimoIslandApps(this.root), r = e.length === 1;
|
|
40165
40221
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40166
|
-
let
|
|
40167
|
-
for (let
|
|
40168
|
-
let e2 =
|
|
40169
|
-
|
|
40170
|
-
|
|
40222
|
+
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
40223
|
+
for (let l of e) {
|
|
40224
|
+
let e2 = c || createMarimoFile(l);
|
|
40225
|
+
if (r && ((_c4 = this.session) == null ? void 0 : _c4.appId) === l.id && this.session.code === e2) return;
|
|
40226
|
+
Logger.debug(`App ${l.id} marimo file:
|
|
40227
|
+
`, e2);
|
|
40228
|
+
let u = {
|
|
40171
40229
|
code: e2,
|
|
40172
|
-
appId:
|
|
40173
|
-
|
|
40174
|
-
|
|
40230
|
+
appId: l.id,
|
|
40231
|
+
sessionGeneration: ++this.nextSessionGeneration
|
|
40232
|
+
}, f = this.session, p = r && f !== void 0;
|
|
40233
|
+
p && this.store.set(notebookAtom, initialNotebookState()), (r || !f) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40234
|
+
...u,
|
|
40235
|
+
code: r ? e2 : void 0
|
|
40175
40236
|
});
|
|
40237
|
+
let m = p ? this.rpc.proxy.request.replaceSession(u) : this.startSession(u);
|
|
40238
|
+
try {
|
|
40239
|
+
await m, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40240
|
+
} catch (e3) {
|
|
40241
|
+
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === u.sessionGeneration && (this.session = f), Logger.error(`Failed to start session for app ${l.id}:`, e3), r) throw e3;
|
|
40242
|
+
}
|
|
40176
40243
|
}
|
|
40177
40244
|
}
|
|
40245
|
+
async stopSession(e) {
|
|
40246
|
+
await this.enqueueAppTransition(async () => {
|
|
40247
|
+
let r = this.session;
|
|
40248
|
+
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40249
|
+
appId: r.appId,
|
|
40250
|
+
sessionGeneration: r.sessionGeneration
|
|
40251
|
+
}), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40252
|
+
});
|
|
40253
|
+
}
|
|
40254
|
+
enqueueAppTransition(e) {
|
|
40255
|
+
let r = this.appTransition.then(e);
|
|
40256
|
+
return this.appTransition = r.catch(() => void 0), r;
|
|
40257
|
+
}
|
|
40178
40258
|
async startSession(e) {
|
|
40179
40259
|
await this.rpc.proxy.request.startSession(e);
|
|
40180
40260
|
}
|
|
40181
40261
|
consumeMessages(e) {
|
|
40182
40262
|
this.messageConsumer = e, this.rpc.proxy.send.consumerReady({});
|
|
40183
40263
|
}
|
|
40184
|
-
async putControlRequest(e) {
|
|
40185
|
-
await this.rpc.proxy.request.bridge({
|
|
40264
|
+
async putControlRequest(e, r) {
|
|
40265
|
+
r ?? (r = await this.getActiveSession()), await this.rpc.proxy.request.bridge({
|
|
40266
|
+
appId: r.appId,
|
|
40186
40267
|
functionName: "put_control_request",
|
|
40187
|
-
payload: e
|
|
40268
|
+
payload: e,
|
|
40269
|
+
sessionGeneration: r.sessionGeneration
|
|
40188
40270
|
});
|
|
40189
40271
|
}
|
|
40272
|
+
async getActiveSession() {
|
|
40273
|
+
let e = this.appTransition, r = this.session, c = this.sessionReady;
|
|
40274
|
+
return await e, r ?? c.promise;
|
|
40275
|
+
}
|
|
40190
40276
|
destroy() {
|
|
40191
40277
|
}
|
|
40192
40278
|
}, globalBridgeInstance = null;
|
|
40193
40279
|
function getGlobalBridge() {
|
|
40194
40280
|
return globalBridgeInstance || (globalBridgeInstance = new IslandsPyodideBridge()), globalBridgeInstance;
|
|
40195
40281
|
}
|
|
40282
|
+
var bridge = getGlobalBridge(), bootstrapPromise;
|
|
40283
|
+
canReplaceApp = function() {
|
|
40284
|
+
return document.querySelector(ISLAND_TAG_NAMES.ISLAND) ? parseMarimoIslandApps(document, {
|
|
40285
|
+
materialize: false
|
|
40286
|
+
}).length === 1 : false;
|
|
40287
|
+
};
|
|
40196
40288
|
initialize = async function() {
|
|
40197
|
-
|
|
40198
|
-
|
|
40199
|
-
|
|
40289
|
+
let e = document.querySelectorAll(ISLAND_TAG_NAMES.ISLAND);
|
|
40290
|
+
if (e.length !== 0) {
|
|
40291
|
+
for (let r of e) r.classList.add(ISLAND_CSS_CLASSES.NAMESPACE);
|
|
40292
|
+
bootstrapPromise ?? (bootstrapPromise = initializeIslands({
|
|
40293
|
+
bridge
|
|
40294
|
+
}).catch((e2) => {
|
|
40295
|
+
throw bootstrapPromise = void 0, e2;
|
|
40296
|
+
})), await bootstrapPromise, await bridge.initializeApps();
|
|
40297
|
+
}
|
|
40298
|
+
};
|
|
40299
|
+
stopApp = async function(e) {
|
|
40300
|
+
await bridge.stopSession(e);
|
|
40200
40301
|
};
|
|
40201
40302
|
initialize().catch((e) => {
|
|
40202
40303
|
Logger.error("Failed to initialize islands:", e);
|
|
@@ -40204,5 +40305,7 @@ ${c}
|
|
|
40204
40305
|
});
|
|
40205
40306
|
export {
|
|
40206
40307
|
__tla,
|
|
40207
|
-
|
|
40308
|
+
canReplaceApp,
|
|
40309
|
+
initialize,
|
|
40310
|
+
stopApp
|
|
40208
40311
|
};
|