@marimo-team/islands 0.23.12-dev9 → 0.23.12
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/{chat-ui-BEOvjkmJ.js → chat-ui-CsPewo4h.js} +2 -2
- package/dist/{code-visibility-w2yZTVwB.js → code-visibility-BFhOAQbo.js} +714 -707
- package/dist/{html-to-image-Di0mtt6O.js → html-to-image-DXwLcQ6l.js} +22 -15
- package/dist/main.js +1160 -1027
- package/dist/{process-output-BLd4KuwX.js → process-output-C6_e1pT_.js} +1 -1
- package/dist/{reveal-component-CuqTvwmg.js → reveal-component-ghVwQgXR.js} +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/data-table.tsx +26 -17
- package/src/components/data-table/utils.ts +1 -4
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +48 -2
- package/src/components/editor/ai/completion-utils.ts +54 -36
- package/src/components/editor/app-container.tsx +3 -1
- package/src/components/editor/output/ImageOutput.tsx +12 -3
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +2 -2
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +67 -0
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +47 -0
- package/src/core/codemirror/go-to-definition/commands.ts +47 -30
- package/src/core/codemirror/go-to-definition/utils.ts +0 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +54 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +44 -35
- package/src/core/islands/__tests__/bridge.test.ts +25 -0
- package/src/core/islands/__tests__/parse.test.ts +585 -1
- package/src/core/islands/__tests__/test-utils.tsx +10 -1
- package/src/core/islands/bridge.ts +6 -1
- package/src/core/islands/constants.ts +2 -0
- package/src/core/islands/parse.ts +290 -13
- package/src/plugins/impl/DataTablePlugin.tsx +20 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +141 -1
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +54 -4
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +104 -1
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +19 -0
- package/src/plugins/impl/anywidget/model.ts +15 -0
- package/src/utils/__tests__/records.test.ts +27 -0
- package/src/utils/records.ts +12 -0
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 reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-
|
|
25
|
+
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-DXwLcQ6l.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-Bv-XlYiv.js";
|
|
29
|
-
import { $ as contextAwarePanelOpen, $t as
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as EmotionCacheProvider, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as dateToLocalISOTime, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as isRecord, G as CommandEmpty, Gt as ChartErrorState, H as Combobox, Ht as TabsContent, I as ContextMenuTrigger, It as isNullishFilter, J as CommandList, Jt as LazyVegaEmbed, K as CommandInput, Kt as ChartInfoState, L as useInternalStateWithSync, Lt as Maps, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as hasFunctionProperty, Q as PANEL_TYPES, Qt as HtmlOutput, R as useSelectList, Rt as dateToLocalISODate, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as TabsList, V as DateRangePicker, Vt as Tabs, W as Command, Wt as TabsTrigger, X as smartMatch, Xt as RenderTextWithLinks, Y as CommandSeparator, Yt as useOverflowDetection, Z as ContextAwarePanelItem, Zt as Kbd, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as EyeOff, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as Download, d as RadioGroupItem, dn as ChevronsRight, dt as Table, en as $fae977aafc393c5c$export$588937bcd60ade55, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronsLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, hn as ArrowDownWideNarrow, ht as TableHeader, in as Funnel, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as Code, lt as Fill, m as OutputRenderer, mn as ChevronLeft, mt as TableHead, n as marimoVersionAtom, nn as TextWrap, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, p as OutputArea, pn as ChevronsDownUp, pt as TableCell, q as CommandItem, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as GripHorizontal, rt as SlotNames, sn as Ellipsis, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$6b862160d295c8e, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsUpDown, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-BFhOAQbo.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-AHlswLw-.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-CbEz_aj_.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-D-l5s8nn.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-C6_e1pT_.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-DE6tzZf-.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -97,7 +97,7 @@ let __tla = Promise.all([
|
|
|
97
97
|
}
|
|
98
98
|
})()
|
|
99
99
|
]).then(async () => {
|
|
100
|
-
var _e2, _WidgetDefRegistry_instances, t_fn, _a, _e3, _t2, _n2, _b, _e4, _c, _e5, _t3, _ModelManager_instances, n_fn, _d, _e6, _e7, _t4, _n3, _r, _i, _f, _e_instances, a_fn, o_fn, s_fn,
|
|
100
|
+
var _e2, _WidgetDefRegistry_instances, t_fn, _a, _e3, _t2, _n2, _b, _e4, _c, _e5, _t3, _ModelManager_instances, n_fn, _d, _e6, _e7, _t4, _n3, _r, _i, _f, _e_instances, a_fn, o_fn, s_fn, c_fn, _l, _e8, _t5, _n4, _r2, _i2, _a2, _o2, _s, _MatplotlibRenderer_instances, c_fn2, l_fn, u_fn, _d2, _f2, _p, _m, _h, _g, __, _v, _y, _b2, _x, _S, _C, _w, _g2, _h2;
|
|
101
101
|
var defaultIconDimensions = Object.freeze({
|
|
102
102
|
left: 0,
|
|
103
103
|
top: 0,
|
|
@@ -3700,7 +3700,8 @@ let __tla = Promise.all([
|
|
|
3700
3700
|
__privateAdd(this, _i, {});
|
|
3701
3701
|
__publicField(this, _e6, {
|
|
3702
3702
|
updateAndEmitDiffs: (e) => __privateMethod(this, _e_instances, o_fn).call(this, e),
|
|
3703
|
-
|
|
3703
|
+
reemitState: () => __privateMethod(this, _e_instances, s_fn).call(this),
|
|
3704
|
+
emitCustomMessage: (e, r) => __privateMethod(this, _e_instances, c_fn).call(this, e, r)
|
|
3704
3705
|
});
|
|
3705
3706
|
__publicField(this, "widget_manager", {
|
|
3706
3707
|
async get_model(r) {
|
|
@@ -3709,7 +3710,7 @@ let __tla = Promise.all([
|
|
|
3709
3710
|
return c;
|
|
3710
3711
|
}
|
|
3711
3712
|
});
|
|
3712
|
-
__privateAdd(this,
|
|
3713
|
+
__privateAdd(this, _l, debounce_default(() => {
|
|
3713
3714
|
let e = __privateGet(this, _i)[__privateGet(this, _e7)];
|
|
3714
3715
|
if (e) for (let r of e) try {
|
|
3715
3716
|
r();
|
|
@@ -3744,7 +3745,7 @@ let __tla = Promise.all([
|
|
|
3744
3745
|
__privateSet(this, _n3, {
|
|
3745
3746
|
...__privateGet(this, _n3),
|
|
3746
3747
|
[e]: r
|
|
3747
|
-
}), __privateGet(this, _t4).set(e, r), __privateMethod(this, _e_instances, a_fn).call(this, `change:${e}`, r), __privateGet(this,
|
|
3748
|
+
}), __privateGet(this, _t4).set(e, r), __privateMethod(this, _e_instances, a_fn).call(this, `change:${e}`, r), __privateGet(this, _l).call(this);
|
|
3748
3749
|
}
|
|
3749
3750
|
save_changes() {
|
|
3750
3751
|
if (__privateGet(this, _t4).size === 0) return;
|
|
@@ -3767,14 +3768,17 @@ let __tla = Promise.all([
|
|
|
3767
3768
|
let c = r;
|
|
3768
3769
|
__privateGet(this, _n3)[c] !== e[c] && this.set(c, e[c]);
|
|
3769
3770
|
});
|
|
3770
|
-
}, s_fn = function(
|
|
3771
|
+
}, s_fn = function() {
|
|
3772
|
+
for (let [e, r] of Object.entries(__privateGet(this, _n3))) __privateMethod(this, _e_instances, a_fn).call(this, `change:${e}`, r);
|
|
3773
|
+
__privateGet(this, _l).call(this);
|
|
3774
|
+
}, c_fn = function(e, r = []) {
|
|
3771
3775
|
let c = __privateGet(this, _i)["msg:custom"];
|
|
3772
3776
|
if (c) for (let l of c) try {
|
|
3773
3777
|
l(e.content, r);
|
|
3774
3778
|
} catch (e2) {
|
|
3775
3779
|
Logger.error("Error emitting event", e2);
|
|
3776
3780
|
}
|
|
3777
|
-
},
|
|
3781
|
+
}, _l = new WeakMap(), __publicField(_f, "_modelManager", MODEL_MANAGER), _f);
|
|
3778
3782
|
async function handleWidgetMessage(e, r) {
|
|
3779
3783
|
let c = r.model_id, l = r.message, u = ("buffers" in l ? l.buffers : []).map(base64ToDataView);
|
|
3780
3784
|
switch (l.method) {
|
|
@@ -6993,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6993
6997
|
}), B = C({
|
|
6994
6998
|
height: 0,
|
|
6995
6999
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), $U = C({
|
|
6997
7001
|
column: 0,
|
|
6998
7002
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
7003
|
+
}), Z = U(), eW = U(), tW = C(false), nW = C(0), rW = C(true), iW = C(false), aW = C(false);
|
|
7004
|
+
Y(x(b, $(nW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(rW, false);
|
|
7006
|
+
}), Y(x(ut(b, rW, B, z, nW, iW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(iW, true), Ue(1, () => {
|
|
7004
7008
|
D(H, e2);
|
|
7005
7009
|
}), Et(x(h), () => {
|
|
7006
7010
|
D(r, [
|
|
7007
7011
|
0,
|
|
7008
7012
|
0
|
|
7009
|
-
]), D(
|
|
7013
|
+
]), D(rW, true);
|
|
7010
7014
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7015
|
+
}), F(x(eW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(eW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D($U, e2.gap), e2.scrollTop > 0 && (D(tW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(tW, false);
|
|
7014
7018
|
}), D(m, {
|
|
7015
7019
|
top: e2.scrollTop
|
|
7016
7020
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V($U, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7022
|
gap: c2,
|
|
7019
7023
|
item: r2,
|
|
7020
7024
|
scrollTop: l2,
|
|
7021
7025
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7026
|
+
}))), Z), F(x(ut(V(I), l, V($U, Or), V(B, xe), V(z, xe), V(q), V(L), V(tW), V(rW), V(nW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7029
|
if (y2 === 0) {
|
|
@@ -7038,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7038
7042
|
offsetTop: j2,
|
|
7039
7043
|
top: j2
|
|
7040
7044
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, $U), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7047
|
return [
|
|
7044
7048
|
d2,
|
|
7045
7049
|
u2
|
|
7046
7050
|
];
|
|
7047
7051
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7052
|
+
let oW = C(false);
|
|
7053
|
+
F(x(h, $(oW), k(([e2, r2]) => r2 || e2 !== 0)), oW);
|
|
7054
|
+
let sW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(oW), P(([[e2, r2], c2]) => {
|
|
7051
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), cW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), lW = bt(x(V(R), $(tW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7059
|
startIndex: e2[0].index
|
|
7056
7060
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7061
|
+
F(lW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, $U), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7063
7067
|
top: g2
|
|
7064
7068
|
};
|
|
7065
7069
|
})), m);
|
|
7066
|
-
let
|
|
7070
|
+
let uW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7071
|
return F(x(j, k((e2) => ({
|
|
7068
7072
|
height: e2.visibleHeight,
|
|
7069
7073
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7076,13 @@ let __tla = Promise.all([
|
|
|
7072
7076
|
data: q,
|
|
7073
7077
|
deviation: G,
|
|
7074
7078
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7079
|
+
gap: $U,
|
|
7076
7080
|
headerHeight: d,
|
|
7077
7081
|
increaseViewportBy: e,
|
|
7078
7082
|
initialItemCount: L,
|
|
7079
7083
|
itemDimensions: B,
|
|
7080
7084
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: eW,
|
|
7082
7086
|
scrollBy: f,
|
|
7083
7087
|
scrollContainerState: p,
|
|
7084
7088
|
scrollHeight: W,
|
|
@@ -7094,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7094
7098
|
windowViewportRect: j,
|
|
7095
7099
|
...y,
|
|
7096
7100
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: aW,
|
|
7102
|
+
initialTopMostItemIndex: nW,
|
|
7103
|
+
totalListHeight: uW,
|
|
7100
7104
|
...v,
|
|
7101
|
-
endReached:
|
|
7105
|
+
endReached: sW,
|
|
7102
7106
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7107
|
+
rangeChanged: lW,
|
|
7108
|
+
startReached: cW,
|
|
7105
7109
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7110
|
+
stateRestoreInProgress: tW,
|
|
7107
7111
|
...M
|
|
7108
7112
|
};
|
|
7109
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7381,7 +7385,7 @@ let __tla = Promise.all([
|
|
|
7381
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7388
|
+
let $U = q, Z;
|
|
7385
7389
|
if (r[13] !== G.bulkActions) {
|
|
7386
7390
|
if (Z = G.bulkActions.map(_temp$26), Z.length > 0) {
|
|
7387
7391
|
let e2;
|
|
@@ -7391,12 +7395,12 @@ let __tla = Promise.all([
|
|
|
7391
7395
|
}
|
|
7392
7396
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7397
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7398
|
+
let eW;
|
|
7399
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (eW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7400
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = eW) : eW = r[18];
|
|
7402
|
+
let tW = eW, nW;
|
|
7403
|
+
r[19] !== Z || r[20] !== G || r[21] !== tW || r[22] !== w || r[23] !== B || r[24] !== H ? (nW = () => {
|
|
7400
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7405
|
"data-slot": "select-list",
|
|
7402
7406
|
style: {
|
|
@@ -7409,7 +7413,7 @@ let __tla = Promise.all([
|
|
|
7409
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7414
|
children: [
|
|
7411
7415
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7416
|
+
tW(e3),
|
|
7413
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7418
|
option: r2,
|
|
7415
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7420
7424
|
}
|
|
7421
7425
|
});
|
|
7422
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7427
|
+
let c2 = tW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7428
|
option: e3,
|
|
7425
7429
|
checked: G.isChecked(e3.value),
|
|
7426
7430
|
renderOption: w
|
|
@@ -7438,9 +7442,9 @@ let __tla = Promise.all([
|
|
|
7438
7442
|
e2
|
|
7439
7443
|
]
|
|
7440
7444
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = Z, r[20] = G, r[21] = tW, r[22] = w, r[23] = B, r[24] = H, r[25] = nW) : nW = r[25];
|
|
7446
|
+
let rW = nW, iW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (iW = (e2) => {
|
|
7444
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7449
|
e2
|
|
7446
7450
|
];
|
|
@@ -7451,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7451
7455
|
items: r2.map(G.labelOf),
|
|
7452
7456
|
max: 3
|
|
7453
7457
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = iW) : iW = r[28];
|
|
7459
|
+
let aW = iW, oW = e["data-testid"], sW;
|
|
7460
|
+
r[29] === G ? sW = r[30] : (sW = (e2) => G.labelOf(e2), r[29] = G, r[30] = sW);
|
|
7461
|
+
let cW = M ? aW : void 0, lW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (lW = cn({
|
|
7459
7463
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
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] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = lW) : lW = r[33];
|
|
7465
|
+
let uW = G.searchQuery, dW = G.setSearchQuery, fW = G.open, pW = G.setOpen, mW;
|
|
7466
|
+
r[34] === z ? mW = r[35] : (mW = renderSlot(z), r[34] = z, r[35] = mW);
|
|
7467
|
+
let hW;
|
|
7468
|
+
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] !== oW || r[44] !== sW || r[45] !== cW || r[46] !== lW || r[47] !== mW ? (hW = {
|
|
7465
7469
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7470
|
+
"data-testid": oW,
|
|
7471
|
+
displayValue: sW,
|
|
7472
|
+
renderValue: cW,
|
|
7469
7473
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7474
|
+
className: lW,
|
|
7471
7475
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7476
|
+
search: uW,
|
|
7477
|
+
onSearchChange: dW,
|
|
7478
|
+
open: fW,
|
|
7479
|
+
onOpenChange: pW,
|
|
7480
|
+
emptyState: mW,
|
|
7477
7481
|
disabled: L,
|
|
7478
7482
|
id: S
|
|
7479
|
-
}, 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] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7483
|
+
}, 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] = oW, r[44] = sW, r[45] = cW, r[46] = lW, r[47] = mW, r[48] = hW) : hW = r[48];
|
|
7484
|
+
let gW = hW, _W;
|
|
7485
|
+
return r[49] !== gW || r[50] !== $U || r[51] !== d || r[52] !== rW || r[53] !== l ? (_W = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...gW,
|
|
7483
7487
|
multiple: true,
|
|
7484
7488
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7489
|
+
onValueChange: $U,
|
|
7490
|
+
children: rW()
|
|
7487
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7492
|
+
...gW,
|
|
7489
7493
|
multiple: false,
|
|
7490
7494
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: $U,
|
|
7496
|
+
children: rW()
|
|
7497
|
+
}), r[49] = gW, r[50] = $U, r[51] = d, r[52] = rW, r[53] = l, r[54] = _W) : _W = r[54], _W;
|
|
7494
7498
|
}
|
|
7495
7499
|
function _temp$26(e) {
|
|
7496
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8053,7 +8057,7 @@ let __tla = Promise.all([
|
|
|
8053
8057
|
...e
|
|
8054
8058
|
}));
|
|
8055
8059
|
var AnyWidgetSlot = (e) => {
|
|
8056
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8060
|
+
let r = (0, import_compiler_runtime$82.c)(15), { jsUrl: c, jsHash: l, modelId: u } = e.data, d = e.host, f;
|
|
8057
8061
|
r[0] !== l || r[1] !== c ? (f = {
|
|
8058
8062
|
jsUrl: c,
|
|
8059
8063
|
jsHash: l
|
|
@@ -8067,24 +8071,24 @@ let __tla = Promise.all([
|
|
|
8067
8071
|
}
|
|
8068
8072
|
if (!p) return null;
|
|
8069
8073
|
if (!isAnyWidgetModule(p)) {
|
|
8070
|
-
let e2
|
|
8071
|
-
r[5]
|
|
8072
|
-
let
|
|
8073
|
-
return r[
|
|
8074
|
-
error:
|
|
8075
|
-
}), r[
|
|
8074
|
+
let e2;
|
|
8075
|
+
r[5] !== p || r[6] !== c ? (e2 = getInvalidAnyWidgetModuleError(p, c), r[5] = p, r[6] = c, r[7] = e2) : e2 = r[7];
|
|
8076
|
+
let l2;
|
|
8077
|
+
return r[8] === e2 ? l2 = r[9] : (l2 = (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8078
|
+
error: e2
|
|
8079
|
+
}), r[8] = e2, r[9] = l2), l2;
|
|
8076
8080
|
}
|
|
8077
8081
|
let h = `${l}:${u}`, g;
|
|
8078
|
-
return r[
|
|
8082
|
+
return r[10] !== d || r[11] !== p.default || r[12] !== u || r[13] !== h ? (g = (0, import_jsx_runtime.jsx)(LoadedSlot, {
|
|
8079
8083
|
widget: p.default,
|
|
8080
8084
|
modelId: u,
|
|
8081
8085
|
host: d
|
|
8082
|
-
}, h), r[
|
|
8086
|
+
}, h), r[10] = d, r[11] = p.default, r[12] = u, r[13] = h, r[14] = g) : g = r[14], g;
|
|
8083
8087
|
};
|
|
8084
8088
|
async function runAnyWidgetModule(e, r, c, l, u) {
|
|
8085
8089
|
l.innerHTML = "";
|
|
8086
8090
|
try {
|
|
8087
|
-
await (await BINDING_MANAGER.getOrCreate(c).bind(e, r))(l, u);
|
|
8091
|
+
await (await BINDING_MANAGER.getOrCreate(c).bind(e, r))(l, u), getMarimoInternal(r).reemitState();
|
|
8088
8092
|
} catch (e2) {
|
|
8089
8093
|
Logger.error("Error rendering anywidget", e2), l.classList.add("text-error"), l.innerHTML = `Error rendering anywidget: ${prettyError(e2)}`;
|
|
8090
8094
|
}
|
|
@@ -8093,6 +8097,20 @@ let __tla = Promise.all([
|
|
|
8093
8097
|
var _a3, _b3;
|
|
8094
8098
|
return e.default ? typeof e.default == "function" || typeof ((_a3 = e.default) == null ? void 0 : _a3.render) == "function" || typeof ((_b3 = e.default) == null ? void 0 : _b3.initialize) == "function" : false;
|
|
8095
8099
|
}
|
|
8100
|
+
function getInvalidAnyWidgetModuleError(e, r) {
|
|
8101
|
+
let c = "https://anywidget.dev/en/afm/", l = isRecord(e) && hasFunctionProperty(e, "render"), u = isRecord(e) && hasFunctionProperty(e, "initialize");
|
|
8102
|
+
if (l || u) {
|
|
8103
|
+
let e2 = [
|
|
8104
|
+
l ? "`render`" : null,
|
|
8105
|
+
u ? "`initialize`" : null
|
|
8106
|
+
].filter(Boolean).join(" and "), d = [
|
|
8107
|
+
l ? "render" : null,
|
|
8108
|
+
u ? "initialize" : null
|
|
8109
|
+
].filter((e3) => e3 !== null), f = `export default { ${d.join(", ")} }`, p = d.length === 1 ? `export function ${d[0]}` : "named export function ...";
|
|
8110
|
+
return Error(`Anywidget module at ${r} uses named exports (${e2}). Per the AFM spec, use a default export instead: \`${f}\` (not \`${p}\`). See ${c}`);
|
|
8111
|
+
}
|
|
8112
|
+
return !isRecord(e) || e.default === void 0 ? Error(`Anywidget module at ${r} is missing a default export. Per the AFM spec, use \`export default { render }\` or \`export default async () => ({ render })\`. See ${c}`) : Error(`Anywidget module at ${r} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${c}`);
|
|
8113
|
+
}
|
|
8096
8114
|
var LoadedSlot = (e) => {
|
|
8097
8115
|
let r = (0, import_compiler_runtime$82.c)(9), { widget: c, modelId: l, host: u } = e, f = (0, import_react.useRef)(null), p, m;
|
|
8098
8116
|
r[0] === l ? (p = r[1], m = r[2]) : (p = MODEL_MANAGER.getSync(l), p || Logger.error("Model not found for modelId", l), m = p == null ? void 0 : p.get("_css"), r[0] = l, r[1] = p, r[2] = m), useMountCss(m, u);
|
|
@@ -8558,7 +8576,7 @@ let __tla = Promise.all([
|
|
|
8558
8576
|
};
|
|
8559
8577
|
}
|
|
8560
8578
|
};
|
|
8561
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8579
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CsPewo4h.js").then((e) => ({
|
|
8562
8580
|
default: e.Chatbot
|
|
8563
8581
|
}))), messageSchema = array(object({
|
|
8564
8582
|
id: string(),
|
|
@@ -9673,7 +9691,7 @@ let __tla = Promise.all([
|
|
|
9673
9691
|
let m2 = get(l, e2);
|
|
9674
9692
|
if (m2) {
|
|
9675
9693
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9676
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9694
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : $U(e2, l2), f.mount && w();
|
|
9677
9695
|
}
|
|
9678
9696
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9679
9697
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9746,14 +9764,14 @@ let __tla = Promise.all([
|
|
|
9746
9764
|
}, H = () => {
|
|
9747
9765
|
for (let e2 of p.unMount) {
|
|
9748
9766
|
let r2 = get(l, e2);
|
|
9749
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9767
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && lW(e2);
|
|
9750
9768
|
}
|
|
9751
9769
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9752
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9770
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(iW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9753
9771
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9754
9772
|
[e2]: r2
|
|
9755
9773
|
} : r2
|
|
9756
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9774
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), $U = (e2, r2, c2 = {}) => {
|
|
9757
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9758
9776
|
if (u2) {
|
|
9759
9777
|
let c3 = u2._f;
|
|
@@ -9766,13 +9784,13 @@ let __tla = Promise.all([
|
|
|
9766
9784
|
}
|
|
9767
9785
|
})));
|
|
9768
9786
|
}
|
|
9769
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9787
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && rW(e2);
|
|
9770
9788
|
}, Z = (e2, r2, c2) => {
|
|
9771
9789
|
for (let u2 in r2) {
|
|
9772
9790
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9773
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9791
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : $U(f2, d2, c2);
|
|
9774
9792
|
}
|
|
9775
|
-
},
|
|
9793
|
+
}, eW = (e2, r2, m2 = {}) => {
|
|
9776
9794
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9777
9795
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9778
9796
|
name: e2,
|
|
@@ -9783,7 +9801,7 @@ let __tla = Promise.all([
|
|
|
9783
9801
|
name: e2,
|
|
9784
9802
|
dirtyFields: getDirtyFields(u, d),
|
|
9785
9803
|
isDirty: W(e2, y2)
|
|
9786
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9804
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : $U(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9787
9805
|
...c
|
|
9788
9806
|
}), _.values.next({
|
|
9789
9807
|
name: f.mount ? e2 : void 0,
|
|
@@ -9791,7 +9809,7 @@ let __tla = Promise.all([
|
|
|
9791
9809
|
...d
|
|
9792
9810
|
}
|
|
9793
9811
|
});
|
|
9794
|
-
},
|
|
9812
|
+
}, tW = async (e2) => {
|
|
9795
9813
|
f.mount = true;
|
|
9796
9814
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9797
9815
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9825,11 +9843,11 @@ let __tla = Promise.all([
|
|
|
9825
9843
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9826
9844
|
h2
|
|
9827
9845
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9828
|
-
S2 && (E2._f.deps &&
|
|
9846
|
+
S2 && (E2._f.deps && rW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9829
9847
|
}
|
|
9830
|
-
},
|
|
9848
|
+
}, nW = (e2, r2) => {
|
|
9831
9849
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9832
|
-
},
|
|
9850
|
+
}, rW = async (e2, u2 = {}) => {
|
|
9833
9851
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9834
9852
|
if (r.resolver) {
|
|
9835
9853
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9848,23 +9866,23 @@ let __tla = Promise.all([
|
|
|
9848
9866
|
isValid: d2
|
|
9849
9867
|
} : {},
|
|
9850
9868
|
errors: c.errors
|
|
9851
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9852
|
-
},
|
|
9869
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, nW, e2 ? m2 : p.mount), f2;
|
|
9870
|
+
}, iW = (e2) => {
|
|
9853
9871
|
let r2 = {
|
|
9854
9872
|
...f.mount ? d : u
|
|
9855
9873
|
};
|
|
9856
9874
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9857
|
-
},
|
|
9875
|
+
}, aW = (e2, r2) => ({
|
|
9858
9876
|
invalid: !!get((r2 || c).errors, e2),
|
|
9859
9877
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9860
9878
|
error: get((r2 || c).errors, e2),
|
|
9861
9879
|
isValidating: !!get(c.validatingFields, e2),
|
|
9862
9880
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9863
|
-
}),
|
|
9881
|
+
}), oW = (e2) => {
|
|
9864
9882
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9865
9883
|
errors: e2 ? c.errors : {}
|
|
9866
9884
|
});
|
|
9867
|
-
},
|
|
9885
|
+
}, sW = (e2, r2, u2) => {
|
|
9868
9886
|
let d2 = (get(l, e2, {
|
|
9869
9887
|
_f: {}
|
|
9870
9888
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9877,9 +9895,9 @@ let __tla = Promise.all([
|
|
|
9877
9895
|
errors: c.errors,
|
|
9878
9896
|
isValid: false
|
|
9879
9897
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9880
|
-
},
|
|
9898
|
+
}, cW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9881
9899
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9882
|
-
}) : G(e2, r2, true),
|
|
9900
|
+
}) : G(e2, r2, true), lW = (e2, f2 = {}) => {
|
|
9883
9901
|
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);
|
|
9884
9902
|
_.values.next({
|
|
9885
9903
|
values: {
|
|
@@ -9891,9 +9909,9 @@ let __tla = Promise.all([
|
|
|
9891
9909
|
isDirty: W()
|
|
9892
9910
|
} : {}
|
|
9893
9911
|
}), !f2.keepIsValid && w();
|
|
9894
|
-
},
|
|
9912
|
+
}, uW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9895
9913
|
(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));
|
|
9896
|
-
},
|
|
9914
|
+
}, dW = (e2, c2 = {}) => {
|
|
9897
9915
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9898
9916
|
return set(l, e2, {
|
|
9899
9917
|
...d2 || {},
|
|
@@ -9907,7 +9925,7 @@ let __tla = Promise.all([
|
|
|
9907
9925
|
mount: true,
|
|
9908
9926
|
...c2
|
|
9909
9927
|
}
|
|
9910
|
-
}), p.mount.add(e2), d2 ?
|
|
9928
|
+
}), p.mount.add(e2), d2 ? uW({
|
|
9911
9929
|
field: d2,
|
|
9912
9930
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9913
9931
|
name: e2
|
|
@@ -9924,11 +9942,11 @@ let __tla = Promise.all([
|
|
|
9924
9942
|
pattern: getRuleValue(c2.pattern)
|
|
9925
9943
|
} : {},
|
|
9926
9944
|
name: e2,
|
|
9927
|
-
onChange:
|
|
9928
|
-
onBlur:
|
|
9945
|
+
onChange: tW,
|
|
9946
|
+
onBlur: tW,
|
|
9929
9947
|
ref: (m3) => {
|
|
9930
9948
|
if (m3) {
|
|
9931
|
-
|
|
9949
|
+
dW(e2, c2), d2 = get(l, e2);
|
|
9932
9950
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9933
9951
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9934
9952
|
set(l, e2, {
|
|
@@ -9954,7 +9972,7 @@ let __tla = Promise.all([
|
|
|
9954
9972
|
} 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);
|
|
9955
9973
|
}
|
|
9956
9974
|
};
|
|
9957
|
-
},
|
|
9975
|
+
}, fW = () => r.shouldFocusError && iterateFieldsByAction(l, nW, p.mount), pW = (e2) => {
|
|
9958
9976
|
isBoolean(e2) && (_.state.next({
|
|
9959
9977
|
disabled: e2
|
|
9960
9978
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9963,7 +9981,7 @@ let __tla = Promise.all([
|
|
|
9963
9981
|
r3.disabled = u2._f.disabled || e2;
|
|
9964
9982
|
}));
|
|
9965
9983
|
}, 0, false));
|
|
9966
|
-
},
|
|
9984
|
+
}, mW = (e2, u2) => async (f2) => {
|
|
9967
9985
|
let m2;
|
|
9968
9986
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9969
9987
|
let h2 = cloneObject(d);
|
|
@@ -9985,7 +10003,7 @@ let __tla = Promise.all([
|
|
|
9985
10003
|
}
|
|
9986
10004
|
} else u2 && await u2({
|
|
9987
10005
|
...c.errors
|
|
9988
|
-
}, f2),
|
|
10006
|
+
}, f2), fW(), setTimeout(fW);
|
|
9989
10007
|
if (_.state.next({
|
|
9990
10008
|
isSubmitted: true,
|
|
9991
10009
|
isSubmitting: false,
|
|
@@ -9993,11 +10011,11 @@ let __tla = Promise.all([
|
|
|
9993
10011
|
submitCount: c.submitCount + 1,
|
|
9994
10012
|
errors: c.errors
|
|
9995
10013
|
}), m2) throw m2;
|
|
9996
|
-
},
|
|
9997
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10014
|
+
}, hW = (e2, r2 = {}) => {
|
|
10015
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? eW(e2, cloneObject(get(u, e2))) : (eW(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({
|
|
9998
10016
|
...c
|
|
9999
10017
|
}));
|
|
10000
|
-
},
|
|
10018
|
+
}, gW = (e2, m2 = {}) => {
|
|
10001
10019
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10002
10020
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10003
10021
|
if (m2.keepDirtyValues) {
|
|
@@ -10005,7 +10023,7 @@ let __tla = Promise.all([
|
|
|
10005
10023
|
...p.mount,
|
|
10006
10024
|
...Object.keys(getDirtyFields(u, d))
|
|
10007
10025
|
]);
|
|
10008
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10026
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : eW(r2, get(b2, r2));
|
|
10009
10027
|
} else {
|
|
10010
10028
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10011
10029
|
let r2 = get(l, e3);
|
|
@@ -10050,25 +10068,25 @@ let __tla = Promise.all([
|
|
|
10050
10068
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10051
10069
|
isSubmitting: false
|
|
10052
10070
|
});
|
|
10053
|
-
},
|
|
10071
|
+
}, _W = (e2, r2) => gW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10054
10072
|
return {
|
|
10055
10073
|
control: {
|
|
10056
|
-
register:
|
|
10057
|
-
unregister:
|
|
10058
|
-
getFieldState:
|
|
10059
|
-
handleSubmit:
|
|
10060
|
-
setError:
|
|
10074
|
+
register: dW,
|
|
10075
|
+
unregister: lW,
|
|
10076
|
+
getFieldState: aW,
|
|
10077
|
+
handleSubmit: mW,
|
|
10078
|
+
setError: sW,
|
|
10061
10079
|
_executeSchema: R,
|
|
10062
10080
|
_getWatch: G,
|
|
10063
10081
|
_getDirty: W,
|
|
10064
10082
|
_updateValid: w,
|
|
10065
10083
|
_removeUnmounted: H,
|
|
10066
10084
|
_updateFieldArray: E,
|
|
10067
|
-
_updateDisabledField:
|
|
10085
|
+
_updateDisabledField: uW,
|
|
10068
10086
|
_getFieldArray: q,
|
|
10069
|
-
_reset:
|
|
10087
|
+
_reset: gW,
|
|
10070
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10071
|
-
|
|
10089
|
+
_W(e2, r.resetOptions), _.state.next({
|
|
10072
10090
|
isLoading: false
|
|
10073
10091
|
});
|
|
10074
10092
|
}),
|
|
@@ -10078,7 +10096,7 @@ let __tla = Promise.all([
|
|
|
10078
10096
|
...e2
|
|
10079
10097
|
};
|
|
10080
10098
|
},
|
|
10081
|
-
_disableForm:
|
|
10099
|
+
_disableForm: pW,
|
|
10082
10100
|
_subjects: _,
|
|
10083
10101
|
_proxyFormState: g,
|
|
10084
10102
|
_setErrors: j,
|
|
@@ -10119,17 +10137,17 @@ let __tla = Promise.all([
|
|
|
10119
10137
|
};
|
|
10120
10138
|
}
|
|
10121
10139
|
},
|
|
10122
|
-
trigger:
|
|
10123
|
-
register:
|
|
10124
|
-
handleSubmit:
|
|
10125
|
-
watch:
|
|
10126
|
-
setValue:
|
|
10127
|
-
getValues:
|
|
10128
|
-
reset:
|
|
10129
|
-
resetField:
|
|
10130
|
-
clearErrors:
|
|
10131
|
-
unregister:
|
|
10132
|
-
setError:
|
|
10140
|
+
trigger: rW,
|
|
10141
|
+
register: dW,
|
|
10142
|
+
handleSubmit: mW,
|
|
10143
|
+
watch: cW,
|
|
10144
|
+
setValue: eW,
|
|
10145
|
+
getValues: iW,
|
|
10146
|
+
reset: _W,
|
|
10147
|
+
resetField: hW,
|
|
10148
|
+
clearErrors: oW,
|
|
10149
|
+
unregister: lW,
|
|
10150
|
+
setError: sW,
|
|
10133
10151
|
setFocus: (e2, r2 = {}) => {
|
|
10134
10152
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10135
10153
|
if (u2) {
|
|
@@ -10137,7 +10155,7 @@ let __tla = Promise.all([
|
|
|
10137
10155
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10138
10156
|
}
|
|
10139
10157
|
},
|
|
10140
|
-
getFieldState:
|
|
10158
|
+
getFieldState: aW
|
|
10141
10159
|
};
|
|
10142
10160
|
}
|
|
10143
10161
|
function useForm(e = {}) {
|
|
@@ -10645,7 +10663,7 @@ ${indent(e)}
|
|
|
10645
10663
|
return r.length === 0 ? [] : r.map(([e2, r2]) => new FunctionArg(e2, r2));
|
|
10646
10664
|
}
|
|
10647
10665
|
function generateAltairChart(e, r) {
|
|
10648
|
-
var _a3, _b3,
|
|
10666
|
+
var _a3, _b3, _c2;
|
|
10649
10667
|
let c = new FunctionCall("alt.Chart", [
|
|
10650
10668
|
new Variable(r)
|
|
10651
10669
|
], true);
|
|
@@ -10669,7 +10687,7 @@ ${indent(e)}
|
|
|
10669
10687
|
}
|
|
10670
10688
|
if (e.resolve) {
|
|
10671
10689
|
let r2 = e.resolve, l2 = {};
|
|
10672
|
-
((_b3 = r2.axis) == null ? void 0 : _b3.x) && (l2.x = new Literal(r2.axis.x)), ((
|
|
10690
|
+
((_b3 = r2.axis) == null ? void 0 : _b3.x) && (l2.x = new Literal(r2.axis.x)), ((_c2 = r2.axis) == null ? void 0 : _c2.y) && (l2.y = new Literal(r2.axis.y)), c = c.chain("resolve_scale", l2);
|
|
10673
10691
|
}
|
|
10674
10692
|
let l = {};
|
|
10675
10693
|
for (let r2 of [
|
|
@@ -11650,14 +11668,14 @@ ${c}
|
|
|
11650
11668
|
defaultValue: f
|
|
11651
11669
|
}), r[1] = c, r[2] = l, r[3] = f, r[4] = p) : p = r[4], p;
|
|
11652
11670
|
}, BinFields = (e) => {
|
|
11653
|
-
var _a3, _b3,
|
|
11671
|
+
var _a3, _b3, _c2, _d3;
|
|
11654
11672
|
let r = (0, import_compiler_runtime$68.c)(10), { fieldName: c } = e, l = useFormContext(), u;
|
|
11655
11673
|
r[0] === l.control ? u = r[1] : (u = {
|
|
11656
11674
|
control: l.control
|
|
11657
11675
|
}, r[0] = l.control, r[1] = u);
|
|
11658
11676
|
let d = useWatch(u);
|
|
11659
11677
|
if (!((_b3 = (_a3 = d[c]) == null ? void 0 : _a3.bin) == null ? void 0 : _b3.binned)) return null;
|
|
11660
|
-
let f = !Number.isNaN((_d3 = (
|
|
11678
|
+
let f = !Number.isNaN((_d3 = (_c2 = d[c]) == null ? void 0 : _c2.bin) == null ? void 0 : _d3.step), p = `${c}.bin.step`, m;
|
|
11661
11679
|
r[2] === p ? m = r[3] : (m = (0, import_jsx_runtime.jsx)(NumberField$1, {
|
|
11662
11680
|
fieldName: p,
|
|
11663
11681
|
label: "Bin step",
|
|
@@ -11872,7 +11890,7 @@ ${c}
|
|
|
11872
11890
|
}), r[7] = c, r[8] = f, r[9] = p) : p = r[9], p;
|
|
11873
11891
|
};
|
|
11874
11892
|
const XAxis = () => {
|
|
11875
|
-
var _a3, _b3,
|
|
11893
|
+
var _a3, _b3, _c2, _d3, _e9, _f3, _g3;
|
|
11876
11894
|
let e = (0, import_compiler_runtime$67.c)(22), r = useFormContext(), c;
|
|
11877
11895
|
e[0] === r.control ? c = e[1] : (c = {
|
|
11878
11896
|
control: r.control
|
|
@@ -11902,7 +11920,7 @@ ${c}
|
|
|
11902
11920
|
label: "Time Resolution"
|
|
11903
11921
|
}), e[11] = d, e[12] = v);
|
|
11904
11922
|
let y;
|
|
11905
|
-
e[13] !== m || e[14] !== ((
|
|
11923
|
+
e[13] !== m || e[14] !== ((_c2 = (_b3 = l.general) == null ? void 0 : _b3.xColumn) == null ? void 0 : _c2.sort) || e[15] !== d ? (y = isNonCountField(d) && m && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
11906
11924
|
children: [
|
|
11907
11925
|
(0, import_jsx_runtime.jsx)(SortField, {
|
|
11908
11926
|
fieldName: "general.xColumn.sort",
|
|
@@ -11925,14 +11943,14 @@ ${c}
|
|
|
11925
11943
|
]
|
|
11926
11944
|
}), e[17] = g, e[18] = _, e[19] = v, e[20] = y, e[21] = b) : b = e[21], b;
|
|
11927
11945
|
}, YAxis = () => {
|
|
11928
|
-
var _a3, _b3,
|
|
11946
|
+
var _a3, _b3, _c2;
|
|
11929
11947
|
let e = (0, import_compiler_runtime$67.c)(29), r = useFormContext(), c;
|
|
11930
11948
|
e[0] === r.control ? c = e[1] : (c = {
|
|
11931
11949
|
control: r.control
|
|
11932
11950
|
}, e[0] = r.control, e[1] = c);
|
|
11933
11951
|
let l = useWatch(c), u = useChartFormContext(), d = (_a3 = l.general) == null ? void 0 : _a3.yColumn, f = d == null ? void 0 : d.field, p;
|
|
11934
11952
|
e[2] === f ? p = e[3] : (p = isFieldSet(f), e[2] = f, e[3] = p);
|
|
11935
|
-
let m = p, h = (
|
|
11953
|
+
let m = p, h = (_c2 = (_b3 = l.general) == null ? void 0 : _b3.xColumn) == null ? void 0 : _c2.field, g;
|
|
11936
11954
|
e[4] === h ? g = e[5] : (g = isFieldSet(h), e[4] = h, e[5] = g);
|
|
11937
11955
|
let _ = g, v;
|
|
11938
11956
|
e[6] === d ? v = e[7] : (v = getColumnDataTypes(d), e[6] = d, e[7] = v);
|
|
@@ -12364,14 +12382,14 @@ ${c}
|
|
|
12364
12382
|
}
|
|
12365
12383
|
var import_compiler_runtime$65 = require_compiler_runtime();
|
|
12366
12384
|
const HeatmapForm = () => {
|
|
12367
|
-
var _a3, _b3,
|
|
12385
|
+
var _a3, _b3, _c2, _d3;
|
|
12368
12386
|
let e = (0, import_compiler_runtime$65.c)(17), r = useFormContext(), c;
|
|
12369
12387
|
e[0] === r.control ? c = e[1] : (c = {
|
|
12370
12388
|
control: r.control
|
|
12371
12389
|
}, e[0] = r.control, e[1] = c);
|
|
12372
12390
|
let l = useWatch(c), u = (_b3 = (_a3 = l.general) == null ? void 0 : _a3.xColumn) == null ? void 0 : _b3.field, d;
|
|
12373
12391
|
e[2] === u ? d = e[3] : (d = isFieldSet(u), e[2] = u, e[3] = d);
|
|
12374
|
-
let f = d, p = (_d3 = (
|
|
12392
|
+
let f = d, p = (_d3 = (_c2 = l.general) == null ? void 0 : _c2.yColumn) == null ? void 0 : _d3.field, m;
|
|
12375
12393
|
e[4] === p ? m = e[5] : (m = isFieldSet(p), e[4] = p, e[5] = m);
|
|
12376
12394
|
let h = m, g;
|
|
12377
12395
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)(XAxis, {}), e[6] = g) : g = e[6];
|
|
@@ -12410,12 +12428,12 @@ ${c}
|
|
|
12410
12428
|
};
|
|
12411
12429
|
var import_compiler_runtime$64 = require_compiler_runtime();
|
|
12412
12430
|
const PieForm = () => {
|
|
12413
|
-
var _a3, _b3,
|
|
12431
|
+
var _a3, _b3, _c2;
|
|
12414
12432
|
let e = (0, import_compiler_runtime$64.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), l;
|
|
12415
12433
|
e[0] === r.control ? l = e[1] : (l = {
|
|
12416
12434
|
control: r.control
|
|
12417
12435
|
}, e[0] = r.control, e[1] = l);
|
|
12418
|
-
let u = useWatch(l), d = (_a3 = u.general) == null ? void 0 : _a3.colorByColumn, f = (
|
|
12436
|
+
let u = useWatch(l), d = (_a3 = u.general) == null ? void 0 : _a3.colorByColumn, f = (_c2 = (_b3 = u.general) == null ? void 0 : _b3.yColumn) == null ? void 0 : _c2.selectedDataType;
|
|
12419
12437
|
(f === "" || !f) && (f = "string");
|
|
12420
12438
|
let p;
|
|
12421
12439
|
e[2] === d ? p = e[3] : (p = (d == null ? void 0 : d.type) ? convertDataTypeToSelectable(d.type) : "string", e[2] = d, e[3] = p);
|
|
@@ -14388,21 +14406,21 @@ ${c}
|
|
|
14388
14406
|
_.pageSize,
|
|
14389
14407
|
_.pageIndex
|
|
14390
14408
|
], 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];
|
|
14391
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14392
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14393
|
-
let
|
|
14394
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
14409
|
+
let { data: W, error: G, isPending: q, isFetching: $U } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), eW;
|
|
14410
|
+
r[48] !== Z || r[49] !== e ? (eW = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = eW) : eW = r[50];
|
|
14411
|
+
let tW = e.showDownload, nW = e.get_size_bytes, rW = e.lazy, iW = e.totalRows, aW = useDeepCompareMemoize(w), oW = useDeepCompareMemoize(m), sW;
|
|
14412
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== aW || r[58] !== oW ? (sW = [
|
|
14395
14413
|
Z,
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14414
|
+
tW,
|
|
14415
|
+
nW,
|
|
14416
|
+
rW,
|
|
14417
|
+
iW,
|
|
14400
14418
|
y,
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] =
|
|
14404
|
-
let { data:
|
|
14405
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14419
|
+
aW,
|
|
14420
|
+
oW
|
|
14421
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = aW, r[58] = oW, r[59] = sW) : sW = r[59];
|
|
14422
|
+
let { data: cW, isPending: lW } = useAsyncData(eW, sW), uW = cW ?? null, dW = !!Z && e.showDownload && lW, fW;
|
|
14423
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (fW = async (e2) => ({
|
|
14406
14424
|
rows: await loadTableData((await u({
|
|
14407
14425
|
page_number: e2,
|
|
14408
14426
|
page_size: 1,
|
|
@@ -14411,38 +14429,41 @@ ${c}
|
|
|
14411
14429
|
filters: filtersToFilterGroup(w),
|
|
14412
14430
|
max_columns: null
|
|
14413
14431
|
})).data)
|
|
14414
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14415
|
-
let
|
|
14416
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14432
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = fW) : fW = r[64];
|
|
14433
|
+
let pW = fW, mW;
|
|
14434
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = () => {
|
|
14417
14435
|
v(_temp4$4);
|
|
14418
|
-
}, r[65] =
|
|
14419
|
-
let
|
|
14420
|
-
r[66] ===
|
|
14421
|
-
|
|
14422
|
-
], r[66] =
|
|
14423
|
-
let
|
|
14424
|
-
r[68] === e ?
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14436
|
+
}, r[65] = mW) : mW = r[65];
|
|
14437
|
+
let hW = W == null ? void 0 : W.totalRows, gW;
|
|
14438
|
+
r[66] === hW ? gW = r[67] : (gW = [
|
|
14439
|
+
hW
|
|
14440
|
+
], r[66] = hW, r[67] = gW), (0, import_react.useEffect)(mW, gW);
|
|
14441
|
+
let _W;
|
|
14442
|
+
r[68] === e ? _W = r[69] : (_W = async () => {
|
|
14443
|
+
let r2 = isStaticNotebook();
|
|
14444
|
+
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
|
+
data: null,
|
|
14446
|
+
stats: {},
|
|
14447
|
+
bin_values: {},
|
|
14448
|
+
value_counts: {},
|
|
14449
|
+
show_charts: false
|
|
14450
|
+
} : e.get_column_summaries({});
|
|
14451
|
+
}, r[68] = e, r[69] = _W);
|
|
14452
|
+
let vW;
|
|
14453
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (vW = [
|
|
14433
14454
|
e.get_column_summaries,
|
|
14434
14455
|
e.showColumnSummaries,
|
|
14435
14456
|
w,
|
|
14436
14457
|
y,
|
|
14437
14458
|
e.totalRows,
|
|
14438
14459
|
e.data
|
|
14439
|
-
], 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] =
|
|
14440
|
-
let { data:
|
|
14441
|
-
if (r[77] ===
|
|
14442
|
-
|
|
14443
|
-
},
|
|
14444
|
-
|
|
14445
|
-
], r[77] =
|
|
14460
|
+
], 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] = vW) : vW = r[76];
|
|
14461
|
+
let { data: yW, error: bW } = useAsyncData(_W, vW), xW, SW;
|
|
14462
|
+
if (r[77] === bW ? (xW = r[78], SW = r[79]) : (xW = () => {
|
|
14463
|
+
bW && Logger.error(bW);
|
|
14464
|
+
}, SW = [
|
|
14465
|
+
bW
|
|
14466
|
+
], r[77] = bW, r[78] = xW, r[79] = SW), (0, import_react.useEffect)(xW, SW), q) {
|
|
14446
14467
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14447
14468
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14448
14469
|
milliseconds: 200,
|
|
@@ -14451,7 +14472,7 @@ ${c}
|
|
|
14451
14472
|
})
|
|
14452
14473
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14453
14474
|
}
|
|
14454
|
-
let
|
|
14475
|
+
let CW = null;
|
|
14455
14476
|
if (G) {
|
|
14456
14477
|
Logger.error(G);
|
|
14457
14478
|
let e2;
|
|
@@ -14467,61 +14488,61 @@ ${c}
|
|
|
14467
14488
|
children: G.message || "An unknown error occurred"
|
|
14468
14489
|
})
|
|
14469
14490
|
]
|
|
14470
|
-
}), r[82] = G, r[83] = e2),
|
|
14491
|
+
}), r[82] = G, r[83] = e2), CW = e2;
|
|
14471
14492
|
}
|
|
14472
|
-
let
|
|
14473
|
-
r[84] === O ?
|
|
14493
|
+
let wW;
|
|
14494
|
+
r[84] === O ? wW = r[85] : (wW = () => {
|
|
14474
14495
|
j(!O);
|
|
14475
|
-
}, r[84] = O, r[85] =
|
|
14476
|
-
let
|
|
14477
|
-
r[86] !== l || r[87] !==
|
|
14496
|
+
}, r[84] = O, r[85] = wW);
|
|
14497
|
+
let TW = wW, EW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, DW = W == null ? void 0 : W.rawRows, OW = $U && !q, kW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, AW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, jW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, MW;
|
|
14498
|
+
r[86] !== l || r[87] !== yW || r[88] !== O || r[89] !== w || r[90] !== pW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== uW || r[95] !== dW || r[96] !== m || r[97] !== EW || r[98] !== DW || r[99] !== OW || r[100] !== kW || r[101] !== AW || r[102] !== jW || r[103] !== TW ? (MW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14478
14499
|
...e,
|
|
14479
|
-
data:
|
|
14480
|
-
rawData:
|
|
14481
|
-
columnSummaries:
|
|
14500
|
+
data: EW,
|
|
14501
|
+
rawData: DW,
|
|
14502
|
+
columnSummaries: yW,
|
|
14482
14503
|
sorting: m,
|
|
14483
14504
|
setSorting: h,
|
|
14484
14505
|
searchQuery: y,
|
|
14485
14506
|
setSearchQuery: b,
|
|
14486
14507
|
filters: w,
|
|
14487
14508
|
setFilters: T,
|
|
14488
|
-
reloading:
|
|
14489
|
-
totalRows:
|
|
14490
|
-
sizeBytes:
|
|
14491
|
-
sizeBytesIsLoading:
|
|
14509
|
+
reloading: OW,
|
|
14510
|
+
totalRows: kW,
|
|
14511
|
+
sizeBytes: uW,
|
|
14512
|
+
sizeBytesIsLoading: dW,
|
|
14492
14513
|
paginationState: _,
|
|
14493
14514
|
setPaginationState: v,
|
|
14494
|
-
cellStyles:
|
|
14495
|
-
cellHoverTexts:
|
|
14496
|
-
toggleDisplayHeader:
|
|
14515
|
+
cellStyles: AW,
|
|
14516
|
+
cellHoverTexts: jW,
|
|
14517
|
+
toggleDisplayHeader: TW,
|
|
14497
14518
|
isChartBuilderOpen: O,
|
|
14498
|
-
getRow:
|
|
14519
|
+
getRow: pW,
|
|
14499
14520
|
cellId: l,
|
|
14500
14521
|
maxHeight: e.maxHeight
|
|
14501
|
-
}), r[86] = l, r[87] =
|
|
14502
|
-
let
|
|
14503
|
-
r[105] !== l || r[106] !==
|
|
14522
|
+
}), r[86] = l, r[87] = yW, r[88] = O, r[89] = w, r[90] = pW, r[91] = _, r[92] = e, r[93] = y, r[94] = uW, r[95] = dW, r[96] = m, r[97] = EW, r[98] = DW, r[99] = OW, r[100] = kW, r[101] = AW, r[102] = jW, r[103] = TW, r[104] = MW) : MW = r[104];
|
|
14523
|
+
let NW = MW, PW;
|
|
14524
|
+
r[105] !== l || r[106] !== NW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (PW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14504
14525
|
displayHeader: O,
|
|
14505
14526
|
onCloseChartBuilder: () => j(false),
|
|
14506
14527
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14507
14528
|
columns: e.totalColumns,
|
|
14508
14529
|
totalRows: e.totalRows,
|
|
14509
|
-
dataTable:
|
|
14530
|
+
dataTable: NW,
|
|
14510
14531
|
getDataUrl: e.get_data_url,
|
|
14511
14532
|
fieldTypes: e.fieldTypes,
|
|
14512
14533
|
cellId: l
|
|
14513
|
-
}) :
|
|
14514
|
-
let
|
|
14515
|
-
return r[115] !==
|
|
14534
|
+
}) : NW, r[105] = l, r[106] = NW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = PW) : PW = r[114];
|
|
14535
|
+
let FW;
|
|
14536
|
+
return r[115] !== CW || r[116] !== PW ? (FW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14516
14537
|
children: [
|
|
14517
|
-
|
|
14518
|
-
|
|
14538
|
+
CW,
|
|
14539
|
+
PW
|
|
14519
14540
|
]
|
|
14520
|
-
}), r[115] =
|
|
14541
|
+
}), r[115] = CW, r[116] = PW, r[117] = FW) : FW = r[117], FW;
|
|
14521
14542
|
});
|
|
14522
14543
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14523
|
-
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:
|
|
14524
|
-
let
|
|
14544
|
+
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: $U, setFilters: Z, reloading: eW, freezeColumnsLeft: tW, freezeColumnsRight: nW, hiddenColumns: rW, textJustifyColumns: iW, wrappedColumns: aW, columnWidths: oW, headerTooltip: sW, totalColumns: cW, get_row_ids: lW, cellStyles: uW, hoverTemplate: dW, cellHoverTexts: fW, toggleDisplayHeader: pW, isChartBuilderOpen: mW, calculate_top_k_rows: hW, preview_column: gW, getRow: _W, cellId: vW, maxHeight: yW }) => {
|
|
14545
|
+
let bW = (0, import_react.useId)(), { locale: xW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [SW, CW] = (0, import_react.useState)(0), { isPanelOpen: wW, isAnyPanelOpen: TW, togglePanel: EW, panelType: DW, setPanelType: OW } = usePanelOwnership(bW, vW), kW = isStaticNotebook(), AW = (0, import_react.useMemo)(() => {
|
|
14525
14546
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14526
14547
|
let e2 = toFieldTypes(O);
|
|
14527
14548
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14530,13 +14551,13 @@ ${c}
|
|
|
14530
14551
|
}, [
|
|
14531
14552
|
O,
|
|
14532
14553
|
L
|
|
14533
|
-
]),
|
|
14554
|
+
]), jW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), MW = (0, import_react.useMemo)(() => f === "all" ? jW : jW.slice(0, f), [
|
|
14534
14555
|
f,
|
|
14535
|
-
|
|
14536
|
-
]),
|
|
14556
|
+
jW
|
|
14557
|
+
]), NW = (0, import_react.useMemo)(() => {
|
|
14537
14558
|
let e2 = {};
|
|
14538
14559
|
if (r && r.length > 0) {
|
|
14539
|
-
for (let [c2, l2] of
|
|
14560
|
+
for (let [c2, l2] of MW) if (l2[0] === "number") {
|
|
14540
14561
|
let l3 = 0;
|
|
14541
14562
|
for (let e3 of r) {
|
|
14542
14563
|
let r2 = e3[c2];
|
|
@@ -14551,95 +14572,95 @@ ${c}
|
|
|
14551
14572
|
return e2;
|
|
14552
14573
|
}, [
|
|
14553
14574
|
r,
|
|
14554
|
-
|
|
14555
|
-
]),
|
|
14556
|
-
O || (w = false);
|
|
14557
|
-
let
|
|
14558
|
-
rowHeaders:
|
|
14575
|
+
MW
|
|
14576
|
+
]), PW = useDeepCompareMemoize(T), FW = useDeepCompareMemoize(iW), IW = useDeepCompareMemoize(aW), LW = useDeepCompareMemoize(oW), RW = useDeepCompareMemoize(AW), zW = useDeepCompareMemoize(NW), BW = MW.length;
|
|
14577
|
+
O || (w = false), kW && (m = null);
|
|
14578
|
+
let VW = (0, import_react.useMemo)(() => generateColumns({
|
|
14579
|
+
rowHeaders: PW,
|
|
14559
14580
|
selection: m,
|
|
14560
|
-
chartSpecModel:
|
|
14561
|
-
fieldTypes:
|
|
14562
|
-
textJustifyColumns:
|
|
14563
|
-
wrappedColumns:
|
|
14564
|
-
columnWidths:
|
|
14565
|
-
headerTooltip:
|
|
14581
|
+
chartSpecModel: RW,
|
|
14582
|
+
fieldTypes: MW,
|
|
14583
|
+
textJustifyColumns: FW,
|
|
14584
|
+
wrappedColumns: IW,
|
|
14585
|
+
columnWidths: LW,
|
|
14586
|
+
headerTooltip: sW,
|
|
14566
14587
|
showDataTypes: w,
|
|
14567
|
-
calculateTopKRows:
|
|
14568
|
-
fractionDigitsByColumn:
|
|
14588
|
+
calculateTopKRows: hW,
|
|
14589
|
+
fractionDigitsByColumn: zW
|
|
14569
14590
|
}), [
|
|
14570
14591
|
m,
|
|
14571
14592
|
w,
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
]),
|
|
14593
|
+
RW,
|
|
14594
|
+
PW,
|
|
14595
|
+
MW,
|
|
14596
|
+
FW,
|
|
14597
|
+
IW,
|
|
14598
|
+
LW,
|
|
14599
|
+
sW,
|
|
14600
|
+
hW,
|
|
14601
|
+
zW
|
|
14602
|
+
]), HW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14582
14603
|
e2,
|
|
14583
14604
|
true
|
|
14584
14605
|
])), [
|
|
14585
14606
|
h
|
|
14586
|
-
]),
|
|
14607
|
+
]), UW = useEvent_default((e2) => {
|
|
14587
14608
|
if (m === "single") {
|
|
14588
14609
|
let r2 = Functions.asUpdater(e2)({});
|
|
14589
14610
|
z(Object.keys(r2).slice(0, 1));
|
|
14590
14611
|
}
|
|
14591
14612
|
if (m === "multi") {
|
|
14592
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14613
|
+
let r2 = Functions.asUpdater(e2)(HW);
|
|
14593
14614
|
z(Object.keys(r2));
|
|
14594
14615
|
}
|
|
14595
|
-
}),
|
|
14596
|
-
if (
|
|
14616
|
+
}), WW = useEvent_default((e2) => {
|
|
14617
|
+
if (CW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14597
14618
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14598
14619
|
r2 !== null && M((e3) => ({
|
|
14599
14620
|
...e3,
|
|
14600
14621
|
pageIndex: r2
|
|
14601
14622
|
}));
|
|
14602
|
-
}),
|
|
14603
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14604
|
-
}),
|
|
14605
|
-
if (!(!
|
|
14623
|
+
}), GW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), KW = useEvent_default((e2) => {
|
|
14624
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(GW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(GW));
|
|
14625
|
+
}), qW = m === "multi" || m === "single", JW = y && !!gW, YW = isInVscodeExtension(), XW = isIslands(), ZW = (0, import_react.useMemo)(() => {
|
|
14626
|
+
if (!(!TW || !(b || JW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14606
14627
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14607
|
-
rowIdx:
|
|
14608
|
-
setRowIdx:
|
|
14628
|
+
rowIdx: SW,
|
|
14629
|
+
setRowIdx: WW,
|
|
14609
14630
|
totalRows: l,
|
|
14610
|
-
fieldTypes:
|
|
14611
|
-
getRow:
|
|
14612
|
-
isSelectable:
|
|
14613
|
-
isRowSelected: !!
|
|
14614
|
-
handleRowSelectionChange:
|
|
14615
|
-
previewColumn:
|
|
14616
|
-
totalColumns:
|
|
14617
|
-
tableId:
|
|
14631
|
+
fieldTypes: jW,
|
|
14632
|
+
getRow: _W,
|
|
14633
|
+
isSelectable: qW,
|
|
14634
|
+
isRowSelected: !!HW[SW],
|
|
14635
|
+
handleRowSelectionChange: UW,
|
|
14636
|
+
previewColumn: gW,
|
|
14637
|
+
totalColumns: cW,
|
|
14638
|
+
tableId: bW,
|
|
14618
14639
|
table: e2,
|
|
14619
|
-
showRowExplorer: b && !
|
|
14620
|
-
showColumnExplorer:
|
|
14621
|
-
activeTab:
|
|
14622
|
-
onTabChange:
|
|
14640
|
+
showRowExplorer: b && !YW,
|
|
14641
|
+
showColumnExplorer: JW && !YW,
|
|
14642
|
+
activeTab: DW,
|
|
14643
|
+
onTabChange: OW
|
|
14623
14644
|
})
|
|
14624
14645
|
});
|
|
14625
14646
|
}, [
|
|
14626
|
-
|
|
14647
|
+
TW,
|
|
14627
14648
|
b,
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14649
|
+
JW,
|
|
14650
|
+
SW,
|
|
14651
|
+
WW,
|
|
14631
14652
|
l,
|
|
14632
|
-
yW,
|
|
14633
|
-
sW,
|
|
14634
|
-
FW,
|
|
14635
|
-
AW,
|
|
14636
14653
|
jW,
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14654
|
+
_W,
|
|
14655
|
+
qW,
|
|
14656
|
+
HW,
|
|
14657
|
+
UW,
|
|
14641
14658
|
gW,
|
|
14642
|
-
|
|
14659
|
+
cW,
|
|
14660
|
+
bW,
|
|
14661
|
+
YW,
|
|
14662
|
+
DW,
|
|
14663
|
+
OW
|
|
14643
14664
|
]);
|
|
14644
14665
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14645
14666
|
children: [
|
|
@@ -14651,22 +14672,41 @@ ${c}
|
|
|
14651
14672
|
" rows."
|
|
14652
14673
|
]
|
|
14653
14674
|
}),
|
|
14654
|
-
|
|
14675
|
+
BW < cW && BW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14655
14676
|
className: "mb-1 rounded",
|
|
14656
14677
|
children: [
|
|
14657
14678
|
"Result clipped. Showing ",
|
|
14658
|
-
|
|
14679
|
+
BW,
|
|
14659
14680
|
" of ",
|
|
14660
|
-
|
|
14681
|
+
cW,
|
|
14661
14682
|
" columns."
|
|
14662
14683
|
]
|
|
14663
14684
|
}),
|
|
14685
|
+
kW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
|
+
className: "mb-1 rounded",
|
|
14687
|
+
children: [
|
|
14688
|
+
"Showing the first ",
|
|
14689
|
+
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
+
children: prettyNumber(r.length, xW)
|
|
14691
|
+
}),
|
|
14692
|
+
" ",
|
|
14693
|
+
"of ",
|
|
14694
|
+
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
+
children: prettyNumber(l, xW)
|
|
14696
|
+
}),
|
|
14697
|
+
" rows. Increase the table's ",
|
|
14698
|
+
(0, import_jsx_runtime.jsx)("code", {
|
|
14699
|
+
children: "page_size"
|
|
14700
|
+
}),
|
|
14701
|
+
" to embed more in the static export."
|
|
14702
|
+
]
|
|
14703
|
+
}),
|
|
14664
14704
|
(L == null ? void 0 : L.is_disabled) && (0, import_jsx_runtime.jsx)(Banner, {
|
|
14665
14705
|
className: "mb-1 rounded",
|
|
14666
14706
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14667
14707
|
}),
|
|
14668
14708
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14669
|
-
value:
|
|
14709
|
+
value: AW,
|
|
14670
14710
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14671
14711
|
label: e,
|
|
14672
14712
|
align: "top",
|
|
@@ -14674,14 +14714,14 @@ ${c}
|
|
|
14674
14714
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14675
14715
|
data: r,
|
|
14676
14716
|
rawData: c,
|
|
14677
|
-
columns:
|
|
14717
|
+
columns: VW,
|
|
14678
14718
|
className: R,
|
|
14679
|
-
maxHeight:
|
|
14719
|
+
maxHeight: yW,
|
|
14680
14720
|
sorting: B,
|
|
14681
14721
|
totalRows: l,
|
|
14682
14722
|
sizeBytes: u,
|
|
14683
14723
|
sizeBytesIsLoading: d,
|
|
14684
|
-
totalColumns:
|
|
14724
|
+
totalColumns: cW,
|
|
14685
14725
|
manualSorting: true,
|
|
14686
14726
|
setSorting: H,
|
|
14687
14727
|
pagination: p,
|
|
@@ -14689,37 +14729,37 @@ ${c}
|
|
|
14689
14729
|
selection: m,
|
|
14690
14730
|
paginationState: j,
|
|
14691
14731
|
setPaginationState: M,
|
|
14692
|
-
rowSelection:
|
|
14693
|
-
cellSelection:
|
|
14694
|
-
cellStyling:
|
|
14695
|
-
hoverTemplate:
|
|
14696
|
-
cellHoverTexts:
|
|
14732
|
+
rowSelection: HW,
|
|
14733
|
+
cellSelection: GW,
|
|
14734
|
+
cellStyling: uW,
|
|
14735
|
+
hoverTemplate: dW,
|
|
14736
|
+
cellHoverTexts: fW,
|
|
14697
14737
|
downloadAs: _ ? I : void 0,
|
|
14698
14738
|
showSearch: W,
|
|
14699
14739
|
searchQuery: G,
|
|
14700
14740
|
onSearchQueryChange: q,
|
|
14701
14741
|
showFilters: g,
|
|
14702
|
-
filters:
|
|
14742
|
+
filters: $U,
|
|
14703
14743
|
onFiltersChange: Z,
|
|
14704
|
-
calculateTopKRows:
|
|
14705
|
-
reloading:
|
|
14706
|
-
onRowSelectionChange:
|
|
14707
|
-
freezeColumnsLeft:
|
|
14708
|
-
freezeColumnsRight:
|
|
14709
|
-
hiddenColumns:
|
|
14710
|
-
onCellSelectionChange:
|
|
14711
|
-
getRowIds:
|
|
14712
|
-
toggleDisplayHeader:
|
|
14713
|
-
showChartBuilder: S && !
|
|
14714
|
-
isChartBuilderOpen:
|
|
14744
|
+
calculateTopKRows: hW,
|
|
14745
|
+
reloading: eW,
|
|
14746
|
+
onRowSelectionChange: UW,
|
|
14747
|
+
freezeColumnsLeft: tW,
|
|
14748
|
+
freezeColumnsRight: nW,
|
|
14749
|
+
hiddenColumns: rW,
|
|
14750
|
+
onCellSelectionChange: KW,
|
|
14751
|
+
getRowIds: lW,
|
|
14752
|
+
toggleDisplayHeader: pW,
|
|
14753
|
+
showChartBuilder: S && !XW,
|
|
14754
|
+
isChartBuilderOpen: mW,
|
|
14715
14755
|
showPageSizeSelector: v,
|
|
14716
|
-
showTableExplorer: (b ||
|
|
14717
|
-
togglePanel:
|
|
14718
|
-
isPanelOpen:
|
|
14719
|
-
isAnyPanelOpen:
|
|
14720
|
-
viewedRowIdx:
|
|
14721
|
-
onViewedRowChange: (e2) =>
|
|
14722
|
-
renderTableExplorerPanel:
|
|
14756
|
+
showTableExplorer: (b || JW) && !YW && !XW,
|
|
14757
|
+
togglePanel: EW,
|
|
14758
|
+
isPanelOpen: wW,
|
|
14759
|
+
isAnyPanelOpen: TW,
|
|
14760
|
+
viewedRowIdx: SW,
|
|
14761
|
+
onViewedRowChange: (e2) => CW(e2),
|
|
14762
|
+
renderTableExplorerPanel: ZW
|
|
14723
14763
|
})
|
|
14724
14764
|
})
|
|
14725
14765
|
})
|
|
@@ -16771,29 +16811,29 @@ ${c}
|
|
|
16771
16811
|
], r[2] = S, r[3] = w);
|
|
16772
16812
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16773
16813
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16774
|
-
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,
|
|
16775
|
-
r[6] === d ?
|
|
16814
|
+
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, $U] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), eW;
|
|
16815
|
+
r[6] === d ? eW = r[7] : (eW = (e2) => {
|
|
16776
16816
|
var _a3;
|
|
16777
16817
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16778
|
-
}, r[6] = d, r[7] =
|
|
16779
|
-
let
|
|
16780
|
-
r[8] === q ?
|
|
16781
|
-
|
|
16782
|
-
}, r[8] = q, r[9] =
|
|
16783
|
-
let
|
|
16784
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16785
|
-
let e2 =
|
|
16818
|
+
}, r[6] = d, r[7] = eW);
|
|
16819
|
+
let tW = eW, nW = (0, import_react.useRef)(q), rW;
|
|
16820
|
+
r[8] === q ? rW = r[9] : (rW = () => {
|
|
16821
|
+
nW.current = q;
|
|
16822
|
+
}, r[8] = q, r[9] = rW), (0, import_react.useEffect)(rW);
|
|
16823
|
+
let iW;
|
|
16824
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (iW = () => {
|
|
16825
|
+
let e2 = nW.current;
|
|
16786
16826
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16787
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16788
|
-
let
|
|
16789
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16827
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = iW) : iW = r[12];
|
|
16828
|
+
let aW = f == null ? void 0 : f.transforms.length, oW;
|
|
16829
|
+
r[13] !== T || r[14] !== p || r[15] !== aW ? (oW = [
|
|
16790
16830
|
T,
|
|
16791
|
-
|
|
16792
|
-
|
|
16831
|
+
aW,
|
|
16832
|
+
nW,
|
|
16793
16833
|
p
|
|
16794
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16795
|
-
let
|
|
16796
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16834
|
+
], r[13] = T, r[14] = p, r[15] = aW, r[16] = oW) : oW = r[16], (0, import_react.useEffect)(iW, oW);
|
|
16835
|
+
let sW;
|
|
16836
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16797
16837
|
value: "transform",
|
|
16798
16838
|
className: "text-xs py-1",
|
|
16799
16839
|
children: [
|
|
@@ -16802,9 +16842,9 @@ ${c}
|
|
|
16802
16842
|
}),
|
|
16803
16843
|
"Transform"
|
|
16804
16844
|
]
|
|
16805
|
-
}), r[17] =
|
|
16806
|
-
let
|
|
16807
|
-
r[18] === H ?
|
|
16845
|
+
}), r[17] = sW) : sW = r[17];
|
|
16846
|
+
let cW;
|
|
16847
|
+
r[18] === H ? cW = r[19] : (cW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16808
16848
|
value: "python-code",
|
|
16809
16849
|
className: "text-xs py-1",
|
|
16810
16850
|
children: [
|
|
@@ -16813,9 +16853,9 @@ ${c}
|
|
|
16813
16853
|
}),
|
|
16814
16854
|
"Python Code"
|
|
16815
16855
|
]
|
|
16816
|
-
}), r[18] = H, r[19] =
|
|
16817
|
-
let
|
|
16818
|
-
r[20] === W ?
|
|
16856
|
+
}), r[18] = H, r[19] = cW);
|
|
16857
|
+
let lW;
|
|
16858
|
+
r[20] === W ? lW = r[21] : (lW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16819
16859
|
value: "sql-code",
|
|
16820
16860
|
className: "text-xs py-1",
|
|
16821
16861
|
children: [
|
|
@@ -16824,54 +16864,54 @@ ${c}
|
|
|
16824
16864
|
}),
|
|
16825
16865
|
"SQL Code"
|
|
16826
16866
|
]
|
|
16827
|
-
}), r[20] = W, r[21] =
|
|
16828
|
-
let
|
|
16829
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16867
|
+
}), r[20] = W, r[21] = lW);
|
|
16868
|
+
let uW;
|
|
16869
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = (0, import_jsx_runtime.jsx)("div", {
|
|
16830
16870
|
className: "grow"
|
|
16831
|
-
}), r[22] =
|
|
16832
|
-
let
|
|
16833
|
-
r[23] !==
|
|
16871
|
+
}), r[22] = uW) : uW = r[22];
|
|
16872
|
+
let dW;
|
|
16873
|
+
r[23] !== cW || r[24] !== lW ? (dW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16834
16874
|
className: "h-8",
|
|
16835
16875
|
children: [
|
|
16836
|
-
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16876
|
+
sW,
|
|
16877
|
+
cW,
|
|
16878
|
+
lW,
|
|
16879
|
+
uW
|
|
16840
16880
|
]
|
|
16841
|
-
}), r[23] =
|
|
16842
|
-
let
|
|
16843
|
-
r[26] === j ?
|
|
16881
|
+
}), r[23] = cW, r[24] = lW, r[25] = dW) : dW = r[25];
|
|
16882
|
+
let fW;
|
|
16883
|
+
r[26] === j ? fW = r[27] : (fW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16844
16884
|
size: "small"
|
|
16845
|
-
}), r[26] = j, r[27] =
|
|
16846
|
-
let
|
|
16847
|
-
r[28] !==
|
|
16885
|
+
}), r[26] = j, r[27] = fW);
|
|
16886
|
+
let mW;
|
|
16887
|
+
r[28] !== dW || r[29] !== fW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16848
16888
|
className: "flex items-center gap-2",
|
|
16849
16889
|
children: [
|
|
16850
|
-
|
|
16851
|
-
|
|
16890
|
+
dW,
|
|
16891
|
+
fW
|
|
16852
16892
|
]
|
|
16853
|
-
}), r[28] =
|
|
16854
|
-
let
|
|
16855
|
-
r[31] !== p || r[32] !== f ? (
|
|
16856
|
-
dequal(e2, f) || (p(e2),
|
|
16857
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16858
|
-
let
|
|
16859
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16893
|
+
}), r[28] = dW, r[29] = fW, r[30] = mW) : mW = r[30];
|
|
16894
|
+
let hW;
|
|
16895
|
+
r[31] !== p || r[32] !== f ? (hW = (e2) => {
|
|
16896
|
+
dequal(e2, f) || (p(e2), $U(e2));
|
|
16897
|
+
}, r[31] = p, r[32] = f, r[33] = hW) : hW = r[33];
|
|
16898
|
+
let gW;
|
|
16899
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== hW ? (gW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16860
16900
|
value: "transform",
|
|
16861
16901
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16862
16902
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16863
16903
|
ref: Z,
|
|
16864
16904
|
initialValue: q,
|
|
16865
16905
|
columns: c,
|
|
16866
|
-
onChange:
|
|
16867
|
-
onInvalidChange:
|
|
16906
|
+
onChange: hW,
|
|
16907
|
+
onInvalidChange: $U,
|
|
16868
16908
|
getColumnValues: h,
|
|
16869
16909
|
columnTypesPerStep: B,
|
|
16870
16910
|
lazy: d
|
|
16871
16911
|
})
|
|
16872
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16873
|
-
let
|
|
16874
|
-
r[41] === H ?
|
|
16912
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = hW, r[40] = gW) : gW = r[40];
|
|
16913
|
+
let _W;
|
|
16914
|
+
r[41] === H ? _W = r[42] : (_W = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16875
16915
|
value: "python-code",
|
|
16876
16916
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16877
16917
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16880,9 +16920,9 @@ ${c}
|
|
|
16880
16920
|
code: H,
|
|
16881
16921
|
language: "python"
|
|
16882
16922
|
})
|
|
16883
|
-
}), r[41] = H, r[42] =
|
|
16884
|
-
let
|
|
16885
|
-
r[43] === W ?
|
|
16923
|
+
}), r[41] = H, r[42] = _W);
|
|
16924
|
+
let vW;
|
|
16925
|
+
r[43] === W ? vW = r[44] : (vW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16886
16926
|
value: "sql-code",
|
|
16887
16927
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16888
16928
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16891,35 +16931,35 @@ ${c}
|
|
|
16891
16931
|
code: W,
|
|
16892
16932
|
language: "sql"
|
|
16893
16933
|
})
|
|
16894
|
-
}), r[43] = W, r[44] =
|
|
16895
|
-
let
|
|
16896
|
-
r[45] !==
|
|
16934
|
+
}), r[43] = W, r[44] = vW);
|
|
16935
|
+
let yW;
|
|
16936
|
+
r[45] !== tW || r[46] !== mW || r[47] !== gW || r[48] !== _W || r[49] !== vW ? (yW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16897
16937
|
defaultValue: "transform",
|
|
16898
|
-
onValueChange:
|
|
16938
|
+
onValueChange: tW,
|
|
16899
16939
|
children: [
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16940
|
+
mW,
|
|
16941
|
+
gW,
|
|
16942
|
+
_W,
|
|
16943
|
+
vW
|
|
16904
16944
|
]
|
|
16905
|
-
}), r[45] =
|
|
16906
|
-
let
|
|
16907
|
-
r[51] === O ?
|
|
16945
|
+
}), r[45] = tW, r[46] = mW, r[47] = gW, r[48] = _W, r[49] = vW, r[50] = yW) : yW = r[50];
|
|
16946
|
+
let bW;
|
|
16947
|
+
r[51] === O ? bW = r[52] : (bW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16908
16948
|
error: O
|
|
16909
|
-
}), r[51] = O, r[52] =
|
|
16910
|
-
let
|
|
16911
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16949
|
+
}), r[51] = O, r[52] = bW);
|
|
16950
|
+
let xW = I || "", SW = L ?? 0, CW = G ?? 0, wW = R || Arrays.EMPTY, TW = L && L > 5 || false, EW;
|
|
16951
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== xW || r[61] !== SW || r[62] !== CW || r[63] !== wW || r[64] !== TW ? (EW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16912
16952
|
label: null,
|
|
16913
16953
|
className: "rounded-b border-x border-b",
|
|
16914
|
-
data:
|
|
16954
|
+
data: xW,
|
|
16915
16955
|
hasStableRowId: false,
|
|
16916
|
-
totalRows:
|
|
16917
|
-
totalColumns:
|
|
16956
|
+
totalRows: SW,
|
|
16957
|
+
totalColumns: CW,
|
|
16918
16958
|
maxColumns: "all",
|
|
16919
16959
|
pageSize: l,
|
|
16920
16960
|
pagination: true,
|
|
16921
16961
|
fieldTypes: z,
|
|
16922
|
-
rowHeaders:
|
|
16962
|
+
rowHeaders: wW,
|
|
16923
16963
|
showDownload: u,
|
|
16924
16964
|
download_as: _,
|
|
16925
16965
|
get_size_bytes: v,
|
|
@@ -16929,7 +16969,7 @@ ${c}
|
|
|
16929
16969
|
showColumnSummaries: false,
|
|
16930
16970
|
showDataTypes: true,
|
|
16931
16971
|
get_column_summaries: getColumnSummaries,
|
|
16932
|
-
showPageSizeSelector:
|
|
16972
|
+
showPageSizeSelector: TW,
|
|
16933
16973
|
showColumnExplorer: false,
|
|
16934
16974
|
showRowExplorer: true,
|
|
16935
16975
|
showChartBuilder: false,
|
|
@@ -16938,15 +16978,15 @@ ${c}
|
|
|
16938
16978
|
selection: null,
|
|
16939
16979
|
lazy: false,
|
|
16940
16980
|
host: y
|
|
16941
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16942
|
-
let
|
|
16943
|
-
return r[66] !==
|
|
16981
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = xW, r[61] = SW, r[62] = CW, r[63] = wW, r[64] = TW, r[65] = EW) : EW = r[65];
|
|
16982
|
+
let DW;
|
|
16983
|
+
return r[66] !== yW || r[67] !== bW || r[68] !== EW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16944
16984
|
children: [
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16985
|
+
yW,
|
|
16986
|
+
bW,
|
|
16987
|
+
EW
|
|
16948
16988
|
]
|
|
16949
|
-
}), r[66] =
|
|
16989
|
+
}), r[66] = yW, r[67] = bW, r[68] = EW, r[69] = DW) : DW = r[69], DW;
|
|
16950
16990
|
});
|
|
16951
16991
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16952
16992
|
function getColumnSummaries() {
|
|
@@ -17137,23 +17177,23 @@ ${c}
|
|
|
17137
17177
|
}, [
|
|
17138
17178
|
H
|
|
17139
17179
|
]);
|
|
17140
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
17180
|
+
let q = (R == null ? void 0 : R.files) ?? [], $U = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", tW = l === "file" || l === "all", nW = q.filter((e2) => Z && e2.is_directory || tW && !e2.is_directory), rW = nW.length > 0 && nW.every((e2) => $U.has(e2.path));
|
|
17141
17181
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17142
17182
|
kind: "danger",
|
|
17143
17183
|
children: z.message
|
|
17144
17184
|
});
|
|
17145
|
-
let
|
|
17185
|
+
let iW = PathBuilder.guessDeliminator(c).deliminator, aW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17146
17186
|
children: e2.path
|
|
17147
17187
|
}, e2.id));
|
|
17148
|
-
function
|
|
17188
|
+
function oW(e2) {
|
|
17149
17189
|
var _a4;
|
|
17150
17190
|
if (v) return;
|
|
17151
17191
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17152
|
-
if (g ===
|
|
17192
|
+
if (g === iW) {
|
|
17153
17193
|
y(false);
|
|
17154
17194
|
return;
|
|
17155
17195
|
}
|
|
17156
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17196
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = iW);
|
|
17157
17197
|
}
|
|
17158
17198
|
let r2 = e2.length < c.length;
|
|
17159
17199
|
if (f && r2) {
|
|
@@ -17166,7 +17206,7 @@ ${c}
|
|
|
17166
17206
|
}
|
|
17167
17207
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17168
17208
|
}
|
|
17169
|
-
function
|
|
17209
|
+
function sW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17170
17210
|
return {
|
|
17171
17211
|
id: e2,
|
|
17172
17212
|
name: r2,
|
|
@@ -17174,27 +17214,27 @@ ${c}
|
|
|
17174
17214
|
is_directory: c2
|
|
17175
17215
|
};
|
|
17176
17216
|
}
|
|
17177
|
-
function
|
|
17178
|
-
let f2 =
|
|
17217
|
+
function cW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17218
|
+
let f2 = sW({
|
|
17179
17219
|
path: c2,
|
|
17180
17220
|
name: l2,
|
|
17181
17221
|
isDirectory: d2
|
|
17182
17222
|
});
|
|
17183
|
-
|
|
17223
|
+
$U.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17184
17224
|
...e,
|
|
17185
17225
|
f2
|
|
17186
17226
|
] : [
|
|
17187
17227
|
f2
|
|
17188
17228
|
]);
|
|
17189
17229
|
}
|
|
17190
|
-
function
|
|
17230
|
+
function lW() {
|
|
17191
17231
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17192
17232
|
}
|
|
17193
|
-
function
|
|
17233
|
+
function uW() {
|
|
17194
17234
|
let c2 = [];
|
|
17195
17235
|
for (let e2 of q) {
|
|
17196
|
-
if (!Z && e2.is_directory ||
|
|
17197
|
-
let r2 =
|
|
17236
|
+
if (!Z && e2.is_directory || $U.has(e2.path)) continue;
|
|
17237
|
+
let r2 = sW({
|
|
17198
17238
|
path: e2.path,
|
|
17199
17239
|
name: e2.name,
|
|
17200
17240
|
isDirectory: e2.is_directory
|
|
@@ -17206,20 +17246,20 @@ ${c}
|
|
|
17206
17246
|
...c2
|
|
17207
17247
|
]);
|
|
17208
17248
|
}
|
|
17209
|
-
let
|
|
17249
|
+
let dW = [
|
|
17210
17250
|
{
|
|
17211
17251
|
key: "parent",
|
|
17212
17252
|
name: PARENT_DIRECTORY,
|
|
17213
17253
|
Icon: CornerLeftUp,
|
|
17214
17254
|
isSelected: false,
|
|
17215
17255
|
canSelect: false,
|
|
17216
|
-
onPrimary: () =>
|
|
17256
|
+
onPrimary: () => oW(PARENT_DIRECTORY),
|
|
17217
17257
|
onToggleSelect: null
|
|
17218
17258
|
},
|
|
17219
17259
|
...q.map((e2) => {
|
|
17220
17260
|
let r2 = e2.path;
|
|
17221
17261
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17222
|
-
let c2 = Z && e2.is_directory ||
|
|
17262
|
+
let c2 = Z && e2.is_directory || tW && !e2.is_directory, l2 = $U.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => cW({
|
|
17223
17263
|
path: r2,
|
|
17224
17264
|
name: e2.name,
|
|
17225
17265
|
isDirectory: e2.is_directory
|
|
@@ -17230,46 +17270,46 @@ ${c}
|
|
|
17230
17270
|
Icon: FILE_ICON[u2],
|
|
17231
17271
|
isSelected: l2,
|
|
17232
17272
|
canSelect: c2,
|
|
17233
|
-
onPrimary: e2.is_directory ? () =>
|
|
17273
|
+
onPrimary: e2.is_directory ? () => oW(r2) : c2 ? d2 : () => {
|
|
17234
17274
|
},
|
|
17235
17275
|
onToggleSelect: c2 ? d2 : null
|
|
17236
17276
|
};
|
|
17237
17277
|
})
|
|
17238
17278
|
];
|
|
17239
|
-
function
|
|
17279
|
+
function fW(e2) {
|
|
17240
17280
|
var _a4;
|
|
17241
17281
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17242
17282
|
}
|
|
17243
|
-
function
|
|
17283
|
+
function pW(e2, r2) {
|
|
17244
17284
|
var _a4, _b3;
|
|
17245
|
-
let c2 =
|
|
17285
|
+
let c2 = dW.length - 1;
|
|
17246
17286
|
switch (e2.key) {
|
|
17247
17287
|
case "ArrowDown":
|
|
17248
|
-
e2.preventDefault(),
|
|
17288
|
+
e2.preventDefault(), fW(Math.min(r2 + 1, c2));
|
|
17249
17289
|
break;
|
|
17250
17290
|
case "ArrowUp":
|
|
17251
|
-
e2.preventDefault(),
|
|
17291
|
+
e2.preventDefault(), fW(Math.max(r2 - 1, 0));
|
|
17252
17292
|
break;
|
|
17253
17293
|
case "Home":
|
|
17254
|
-
e2.preventDefault(),
|
|
17294
|
+
e2.preventDefault(), fW(0);
|
|
17255
17295
|
break;
|
|
17256
17296
|
case "End":
|
|
17257
|
-
e2.preventDefault(),
|
|
17297
|
+
e2.preventDefault(), fW(c2);
|
|
17258
17298
|
break;
|
|
17259
17299
|
case "Enter":
|
|
17260
|
-
e2.preventDefault(),
|
|
17300
|
+
e2.preventDefault(), dW[r2].onPrimary();
|
|
17261
17301
|
break;
|
|
17262
17302
|
case " ":
|
|
17263
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17303
|
+
e2.preventDefault(), (_b3 = (_a4 = dW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17264
17304
|
break;
|
|
17265
17305
|
}
|
|
17266
17306
|
}
|
|
17267
|
-
let { parentDirectories:
|
|
17307
|
+
let { parentDirectories: mW } = getProtocolAndParentDirectories({
|
|
17268
17308
|
path: g,
|
|
17269
|
-
delimiter:
|
|
17309
|
+
delimiter: iW,
|
|
17270
17310
|
initialPath: c,
|
|
17271
17311
|
restrictNavigation: f
|
|
17272
|
-
}),
|
|
17312
|
+
}), hW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17273
17313
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17274
17314
|
children: [
|
|
17275
17315
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17279,7 +17319,7 @@ ${c}
|
|
|
17279
17319
|
(() => {
|
|
17280
17320
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17281
17321
|
children: renderHTML({
|
|
17282
|
-
html: d ?? `Select ${
|
|
17322
|
+
html: d ?? `Select ${hW.join(" and ", 2)}...`
|
|
17283
17323
|
})
|
|
17284
17324
|
});
|
|
17285
17325
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17293,8 +17333,8 @@ ${c}
|
|
|
17293
17333
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17294
17334
|
size: "xs",
|
|
17295
17335
|
variant: "link",
|
|
17296
|
-
onClick:
|
|
17297
|
-
children:
|
|
17336
|
+
onClick: rW ? lW : uW,
|
|
17337
|
+
children: rW ? "Deselect all" : "Select all"
|
|
17298
17338
|
})
|
|
17299
17339
|
})
|
|
17300
17340
|
]
|
|
@@ -17304,8 +17344,8 @@ ${c}
|
|
|
17304
17344
|
className: "mt-2 w-full",
|
|
17305
17345
|
placeholder: g,
|
|
17306
17346
|
value: g,
|
|
17307
|
-
onChange: (e2) =>
|
|
17308
|
-
children:
|
|
17347
|
+
onChange: (e2) => oW(e2.target.value),
|
|
17348
|
+
children: mW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17309
17349
|
value: e2,
|
|
17310
17350
|
children: e2
|
|
17311
17351
|
}, e2))
|
|
@@ -17341,14 +17381,14 @@ ${c}
|
|
|
17341
17381
|
"aria-label": "File browser",
|
|
17342
17382
|
"aria-multiselectable": u,
|
|
17343
17383
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17344
|
-
children:
|
|
17384
|
+
children: dW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17345
17385
|
role: "row",
|
|
17346
17386
|
ref: (e3) => {
|
|
17347
17387
|
O.current[r2] = e3;
|
|
17348
17388
|
},
|
|
17349
17389
|
tabIndex: r2 === T ? 0 : -1,
|
|
17350
17390
|
onFocus: () => E(r2),
|
|
17351
|
-
onKeyDown: (e3) =>
|
|
17391
|
+
onKeyDown: (e3) => pW(e3, r2),
|
|
17352
17392
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17353
17393
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17354
17394
|
}),
|
|
@@ -17391,7 +17431,7 @@ ${c}
|
|
|
17391
17431
|
children: [
|
|
17392
17432
|
e.length,
|
|
17393
17433
|
" ",
|
|
17394
|
-
|
|
17434
|
+
hW.join(" or ", e.length),
|
|
17395
17435
|
" ",
|
|
17396
17436
|
"selected"
|
|
17397
17437
|
]
|
|
@@ -17411,7 +17451,7 @@ ${c}
|
|
|
17411
17451
|
marginBlock: 0
|
|
17412
17452
|
},
|
|
17413
17453
|
className: "m-0 text-xs text-muted-foreground",
|
|
17414
|
-
children:
|
|
17454
|
+
children: aW
|
|
17415
17455
|
})
|
|
17416
17456
|
})
|
|
17417
17457
|
]
|
|
@@ -22793,55 +22833,55 @@ ${c}
|
|
|
22793
22833
|
return typeof S == "function" ? S : noop$2;
|
|
22794
22834
|
}, [
|
|
22795
22835
|
S
|
|
22796
|
-
]), q = (0, import_react.useRef)(null),
|
|
22797
|
-
!
|
|
22798
|
-
|
|
22836
|
+
]), q = (0, import_react.useRef)(null), $U = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), eW = Z[0], tW = Z[1], nW = eW.isFocused, rW = eW.isFileDialogActive, iW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), aW = function() {
|
|
22837
|
+
!iW.current && rW && setTimeout(function() {
|
|
22838
|
+
$U.current && ($U.current.files.length || (tW({
|
|
22799
22839
|
type: "closeDialog"
|
|
22800
22840
|
}), G()));
|
|
22801
22841
|
}, 300);
|
|
22802
22842
|
};
|
|
22803
22843
|
(0, import_react.useEffect)(function() {
|
|
22804
|
-
return window.addEventListener("focus",
|
|
22805
|
-
window.removeEventListener("focus",
|
|
22844
|
+
return window.addEventListener("focus", aW, false), function() {
|
|
22845
|
+
window.removeEventListener("focus", aW, false);
|
|
22806
22846
|
};
|
|
22807
22847
|
}, [
|
|
22808
|
-
|
|
22809
|
-
|
|
22848
|
+
$U,
|
|
22849
|
+
rW,
|
|
22810
22850
|
G,
|
|
22811
|
-
|
|
22851
|
+
iW
|
|
22812
22852
|
]);
|
|
22813
|
-
var
|
|
22814
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22853
|
+
var oW = (0, import_react.useRef)([]), sW = (0, import_react.useRef)([]), cW = function(e2) {
|
|
22854
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), oW.current = []);
|
|
22815
22855
|
};
|
|
22816
22856
|
(0, import_react.useEffect)(function() {
|
|
22817
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22818
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22857
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", cW, false)), function() {
|
|
22858
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", cW));
|
|
22819
22859
|
};
|
|
22820
22860
|
}, [
|
|
22821
22861
|
q,
|
|
22822
22862
|
O
|
|
22823
22863
|
]), (0, import_react.useEffect)(function() {
|
|
22824
22864
|
var e2 = function(e3) {
|
|
22825
|
-
|
|
22865
|
+
sW.current = [].concat(_toConsumableArray(sW.current), [
|
|
22826
22866
|
e3.target
|
|
22827
|
-
]), isEvtWithFiles(e3) &&
|
|
22867
|
+
]), isEvtWithFiles(e3) && tW({
|
|
22828
22868
|
isDragGlobal: true,
|
|
22829
22869
|
type: "setDragGlobal"
|
|
22830
22870
|
});
|
|
22831
22871
|
}, r2 = function(e3) {
|
|
22832
|
-
|
|
22872
|
+
sW.current = sW.current.filter(function(r3) {
|
|
22833
22873
|
return r3 !== e3.target && r3 !== null;
|
|
22834
|
-
}), !(
|
|
22874
|
+
}), !(sW.current.length > 0) && tW({
|
|
22835
22875
|
isDragGlobal: false,
|
|
22836
22876
|
type: "setDragGlobal"
|
|
22837
22877
|
});
|
|
22838
22878
|
}, c2 = function() {
|
|
22839
|
-
|
|
22879
|
+
sW.current = [], tW({
|
|
22840
22880
|
isDragGlobal: false,
|
|
22841
22881
|
type: "setDragGlobal"
|
|
22842
22882
|
});
|
|
22843
22883
|
}, l2 = function() {
|
|
22844
|
-
|
|
22884
|
+
sW.current = [], tW({
|
|
22845
22885
|
isDragGlobal: false,
|
|
22846
22886
|
type: "setDragGlobal"
|
|
22847
22887
|
});
|
|
@@ -22859,12 +22899,12 @@ ${c}
|
|
|
22859
22899
|
E,
|
|
22860
22900
|
l
|
|
22861
22901
|
]);
|
|
22862
|
-
var
|
|
22902
|
+
var lW = (0, import_react.useCallback)(function(e2) {
|
|
22863
22903
|
R ? R(e2) : console.error(e2);
|
|
22864
22904
|
}, [
|
|
22865
22905
|
R
|
|
22866
|
-
]),
|
|
22867
|
-
e2.preventDefault(), e2.persist(),
|
|
22906
|
+
]), uW = (0, import_react.useCallback)(function(e2) {
|
|
22907
|
+
e2.preventDefault(), e2.persist(), CW(e2), oW.current = [].concat(_toConsumableArray(oW.current), [
|
|
22868
22908
|
e2.target
|
|
22869
22909
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22870
22910
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22877,7 +22917,7 @@ ${c}
|
|
|
22877
22917
|
maxFiles: m,
|
|
22878
22918
|
validator: z
|
|
22879
22919
|
});
|
|
22880
|
-
|
|
22920
|
+
tW({
|
|
22881
22921
|
isDragAccept: l2,
|
|
22882
22922
|
isDragReject: c2 > 0 && !l2,
|
|
22883
22923
|
isDragActive: true,
|
|
@@ -22885,12 +22925,12 @@ ${c}
|
|
|
22885
22925
|
}), h && h(e2);
|
|
22886
22926
|
}
|
|
22887
22927
|
}).catch(function(e3) {
|
|
22888
|
-
return
|
|
22928
|
+
return lW(e3);
|
|
22889
22929
|
});
|
|
22890
22930
|
}, [
|
|
22891
22931
|
u,
|
|
22892
22932
|
h,
|
|
22893
|
-
|
|
22933
|
+
lW,
|
|
22894
22934
|
L,
|
|
22895
22935
|
B,
|
|
22896
22936
|
f,
|
|
@@ -22898,8 +22938,8 @@ ${c}
|
|
|
22898
22938
|
p,
|
|
22899
22939
|
m,
|
|
22900
22940
|
z
|
|
22901
|
-
]),
|
|
22902
|
-
e2.preventDefault(), e2.persist(),
|
|
22941
|
+
]), dW = (0, import_react.useCallback)(function(e2) {
|
|
22942
|
+
e2.preventDefault(), e2.persist(), CW(e2);
|
|
22903
22943
|
var r2 = isEvtWithFiles(e2);
|
|
22904
22944
|
if (r2 && e2.dataTransfer) try {
|
|
22905
22945
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22909,12 +22949,12 @@ ${c}
|
|
|
22909
22949
|
}, [
|
|
22910
22950
|
_,
|
|
22911
22951
|
L
|
|
22912
|
-
]),
|
|
22913
|
-
e2.preventDefault(), e2.persist(),
|
|
22914
|
-
var r2 =
|
|
22952
|
+
]), fW = (0, import_react.useCallback)(function(e2) {
|
|
22953
|
+
e2.preventDefault(), e2.persist(), CW(e2);
|
|
22954
|
+
var r2 = oW.current.filter(function(e3) {
|
|
22915
22955
|
return q.current && q.current.contains(e3);
|
|
22916
22956
|
}), c2 = r2.indexOf(e2.target);
|
|
22917
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22957
|
+
c2 !== -1 && r2.splice(c2, 1), oW.current = r2, !(r2.length > 0) && (tW({
|
|
22918
22958
|
type: "setDraggedFiles",
|
|
22919
22959
|
isDragActive: false,
|
|
22920
22960
|
isDragAccept: false,
|
|
@@ -22924,7 +22964,7 @@ ${c}
|
|
|
22924
22964
|
q,
|
|
22925
22965
|
g,
|
|
22926
22966
|
L
|
|
22927
|
-
]),
|
|
22967
|
+
]), pW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22928
22968
|
var c2 = [], l2 = [];
|
|
22929
22969
|
e2.forEach(function(e3) {
|
|
22930
22970
|
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;
|
|
@@ -22948,14 +22988,14 @@ ${c}
|
|
|
22948
22988
|
TOO_MANY_FILES_REJECTION
|
|
22949
22989
|
]
|
|
22950
22990
|
});
|
|
22951
|
-
}), c2.splice(0)),
|
|
22991
|
+
}), c2.splice(0)), tW({
|
|
22952
22992
|
acceptedFiles: c2,
|
|
22953
22993
|
fileRejections: l2,
|
|
22954
22994
|
isDragReject: l2.length > 0,
|
|
22955
22995
|
type: "setFiles"
|
|
22956
22996
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22957
22997
|
}, [
|
|
22958
|
-
|
|
22998
|
+
tW,
|
|
22959
22999
|
p,
|
|
22960
23000
|
B,
|
|
22961
23001
|
f,
|
|
@@ -22965,22 +23005,22 @@ ${c}
|
|
|
22965
23005
|
y,
|
|
22966
23006
|
b,
|
|
22967
23007
|
z
|
|
22968
|
-
]),
|
|
22969
|
-
e2.preventDefault(), e2.persist(),
|
|
22970
|
-
isPropagationStopped(e2) && !L ||
|
|
23008
|
+
]), mW = (0, import_react.useCallback)(function(e2) {
|
|
23009
|
+
e2.preventDefault(), e2.persist(), CW(e2), oW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23010
|
+
isPropagationStopped(e2) && !L || pW(r2, e2);
|
|
22971
23011
|
}).catch(function(e3) {
|
|
22972
|
-
return
|
|
22973
|
-
}),
|
|
23012
|
+
return lW(e3);
|
|
23013
|
+
}), tW({
|
|
22974
23014
|
type: "reset"
|
|
22975
23015
|
});
|
|
22976
23016
|
}, [
|
|
22977
23017
|
u,
|
|
22978
|
-
|
|
22979
|
-
|
|
23018
|
+
pW,
|
|
23019
|
+
lW,
|
|
22980
23020
|
L
|
|
22981
|
-
]),
|
|
22982
|
-
if (
|
|
22983
|
-
|
|
23021
|
+
]), hW = (0, import_react.useCallback)(function() {
|
|
23022
|
+
if (iW.current) {
|
|
23023
|
+
tW({
|
|
22984
23024
|
type: "openDialog"
|
|
22985
23025
|
}), W();
|
|
22986
23026
|
var e2 = {
|
|
@@ -22990,66 +23030,66 @@ ${c}
|
|
|
22990
23030
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
22991
23031
|
return u(e3);
|
|
22992
23032
|
}).then(function(e3) {
|
|
22993
|
-
|
|
23033
|
+
pW(e3, null), tW({
|
|
22994
23034
|
type: "closeDialog"
|
|
22995
23035
|
});
|
|
22996
23036
|
}).catch(function(e3) {
|
|
22997
|
-
isAbort(e3) ? (G(e3),
|
|
23037
|
+
isAbort(e3) ? (G(e3), tW({
|
|
22998
23038
|
type: "closeDialog"
|
|
22999
|
-
})) : isSecurityError(e3) ? (
|
|
23039
|
+
})) : isSecurityError(e3) ? (iW.current = false, $U.current ? ($U.current.value = null, $U.current.click()) : lW(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."))) : lW(e3);
|
|
23000
23040
|
});
|
|
23001
23041
|
return;
|
|
23002
23042
|
}
|
|
23003
|
-
|
|
23043
|
+
$U.current && (tW({
|
|
23004
23044
|
type: "openDialog"
|
|
23005
|
-
}), W(),
|
|
23045
|
+
}), W(), $U.current.value = null, $U.current.click());
|
|
23006
23046
|
}, [
|
|
23007
|
-
|
|
23047
|
+
tW,
|
|
23008
23048
|
W,
|
|
23009
23049
|
G,
|
|
23010
23050
|
T,
|
|
23011
|
-
|
|
23012
|
-
|
|
23051
|
+
pW,
|
|
23052
|
+
lW,
|
|
23013
23053
|
H,
|
|
23014
23054
|
p
|
|
23015
|
-
]),
|
|
23016
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23055
|
+
]), gW = (0, import_react.useCallback)(function(e2) {
|
|
23056
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), hW());
|
|
23017
23057
|
}, [
|
|
23018
23058
|
q,
|
|
23019
|
-
|
|
23020
|
-
]),
|
|
23021
|
-
|
|
23059
|
+
hW
|
|
23060
|
+
]), _W = (0, import_react.useCallback)(function() {
|
|
23061
|
+
tW({
|
|
23022
23062
|
type: "focus"
|
|
23023
23063
|
});
|
|
23024
|
-
}, []),
|
|
23025
|
-
|
|
23064
|
+
}, []), vW = (0, import_react.useCallback)(function() {
|
|
23065
|
+
tW({
|
|
23026
23066
|
type: "blur"
|
|
23027
23067
|
});
|
|
23028
|
-
}, []),
|
|
23029
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23068
|
+
}, []), yW = (0, import_react.useCallback)(function() {
|
|
23069
|
+
j || (isIeOrEdge() ? setTimeout(hW, 0) : hW());
|
|
23030
23070
|
}, [
|
|
23031
23071
|
j,
|
|
23032
|
-
|
|
23033
|
-
]),
|
|
23072
|
+
hW
|
|
23073
|
+
]), bW = function(e2) {
|
|
23034
23074
|
return l ? null : e2;
|
|
23035
|
-
},
|
|
23036
|
-
return M ? null :
|
|
23037
|
-
},
|
|
23038
|
-
return I ? null :
|
|
23039
|
-
},
|
|
23075
|
+
}, xW = function(e2) {
|
|
23076
|
+
return M ? null : bW(e2);
|
|
23077
|
+
}, SW = function(e2) {
|
|
23078
|
+
return I ? null : bW(e2);
|
|
23079
|
+
}, CW = function(e2) {
|
|
23040
23080
|
L && e2.stopPropagation();
|
|
23041
|
-
},
|
|
23081
|
+
}, wW = (0, import_react.useMemo)(function() {
|
|
23042
23082
|
return function() {
|
|
23043
23083
|
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);
|
|
23044
23084
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23045
|
-
onKeyDown:
|
|
23046
|
-
onFocus:
|
|
23047
|
-
onBlur:
|
|
23048
|
-
onClick:
|
|
23049
|
-
onDragEnter:
|
|
23050
|
-
onDragOver:
|
|
23051
|
-
onDragLeave:
|
|
23052
|
-
onDrop:
|
|
23085
|
+
onKeyDown: xW(composeEventHandlers(d2, gW)),
|
|
23086
|
+
onFocus: xW(composeEventHandlers(f2, _W)),
|
|
23087
|
+
onBlur: xW(composeEventHandlers(p2, vW)),
|
|
23088
|
+
onClick: bW(composeEventHandlers(m2, yW)),
|
|
23089
|
+
onDragEnter: SW(composeEventHandlers(h2, uW)),
|
|
23090
|
+
onDragOver: SW(composeEventHandlers(g2, dW)),
|
|
23091
|
+
onDragLeave: SW(composeEventHandlers(_2, fW)),
|
|
23092
|
+
onDrop: SW(composeEventHandlers(v2, mW)),
|
|
23053
23093
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23054
23094
|
}, c2, q), !l && !M ? {
|
|
23055
23095
|
tabIndex: 0
|
|
@@ -23057,20 +23097,20 @@ ${c}
|
|
|
23057
23097
|
};
|
|
23058
23098
|
}, [
|
|
23059
23099
|
q,
|
|
23060
|
-
|
|
23061
|
-
|
|
23062
|
-
|
|
23063
|
-
|
|
23064
|
-
|
|
23065
|
-
|
|
23066
|
-
|
|
23067
|
-
|
|
23100
|
+
gW,
|
|
23101
|
+
_W,
|
|
23102
|
+
vW,
|
|
23103
|
+
yW,
|
|
23104
|
+
uW,
|
|
23105
|
+
dW,
|
|
23106
|
+
fW,
|
|
23107
|
+
mW,
|
|
23068
23108
|
M,
|
|
23069
23109
|
I,
|
|
23070
23110
|
l
|
|
23071
|
-
]),
|
|
23111
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23072
23112
|
e2.stopPropagation();
|
|
23073
|
-
}, []),
|
|
23113
|
+
}, []), EW = (0, import_react.useMemo)(function() {
|
|
23074
23114
|
return function() {
|
|
23075
23115
|
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);
|
|
23076
23116
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23089,25 +23129,25 @@ ${c}
|
|
|
23089
23129
|
width: "1px",
|
|
23090
23130
|
whiteSpace: "nowrap"
|
|
23091
23131
|
},
|
|
23092
|
-
onChange:
|
|
23093
|
-
onClick:
|
|
23132
|
+
onChange: bW(composeEventHandlers(l2, mW)),
|
|
23133
|
+
onClick: bW(composeEventHandlers(u2, TW)),
|
|
23094
23134
|
tabIndex: -1
|
|
23095
|
-
}, c2,
|
|
23135
|
+
}, c2, $U)), d2);
|
|
23096
23136
|
};
|
|
23097
23137
|
}, [
|
|
23098
|
-
|
|
23138
|
+
$U,
|
|
23099
23139
|
c,
|
|
23100
23140
|
p,
|
|
23101
|
-
|
|
23141
|
+
mW,
|
|
23102
23142
|
l
|
|
23103
23143
|
]);
|
|
23104
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23105
|
-
isFocused:
|
|
23106
|
-
getRootProps:
|
|
23107
|
-
getInputProps:
|
|
23144
|
+
return _objectSpread$7(_objectSpread$7({}, eW), {}, {
|
|
23145
|
+
isFocused: nW && !l,
|
|
23146
|
+
getRootProps: wW,
|
|
23147
|
+
getInputProps: EW,
|
|
23108
23148
|
rootRef: q,
|
|
23109
|
-
inputRef:
|
|
23110
|
-
open:
|
|
23149
|
+
inputRef: $U,
|
|
23150
|
+
open: bW(hW)
|
|
23111
23151
|
});
|
|
23112
23152
|
}
|
|
23113
23153
|
function reducer$2(e, r) {
|
|
@@ -23339,47 +23379,47 @@ ${c}
|
|
|
23339
23379
|
html: I
|
|
23340
23380
|
})
|
|
23341
23381
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23342
|
-
let q = w && "text-primary",
|
|
23343
|
-
r[48] !== q || r[49] !==
|
|
23344
|
-
let
|
|
23345
|
-
r[51] === Z ?
|
|
23382
|
+
let q = w && "text-primary", $U = T && "text-destructive", Z;
|
|
23383
|
+
r[48] !== q || r[49] !== $U ? (Z = cn(q, $U), r[48] = q, r[49] = $U, r[50] = Z) : Z = r[50];
|
|
23384
|
+
let eW;
|
|
23385
|
+
r[51] === Z ? eW = r[52] : (eW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23346
23386
|
strokeWidth: 1.4,
|
|
23347
23387
|
className: Z
|
|
23348
|
-
}), r[51] = Z, r[52] =
|
|
23349
|
-
let
|
|
23350
|
-
r[53] !==
|
|
23351
|
-
let
|
|
23352
|
-
r[56] ===
|
|
23388
|
+
}), r[51] = Z, r[52] = eW);
|
|
23389
|
+
let tW = w && "text-primary", nW = T && "text-destructive", rW;
|
|
23390
|
+
r[53] !== tW || r[54] !== nW ? (rW = cn(tW, nW), r[53] = tW, r[54] = nW, r[55] = rW) : rW = r[55];
|
|
23391
|
+
let iW;
|
|
23392
|
+
r[56] === rW ? iW = r[57] : (iW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23353
23393
|
strokeWidth: 1.4,
|
|
23354
|
-
className:
|
|
23355
|
-
}), r[56] =
|
|
23356
|
-
let
|
|
23357
|
-
r[58] !==
|
|
23394
|
+
className: rW
|
|
23395
|
+
}), r[56] = rW, r[57] = iW);
|
|
23396
|
+
let aW;
|
|
23397
|
+
r[58] !== eW || r[59] !== iW ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23358
23398
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23359
23399
|
children: [
|
|
23360
|
-
|
|
23361
|
-
|
|
23400
|
+
eW,
|
|
23401
|
+
iW
|
|
23362
23402
|
]
|
|
23363
|
-
}), r[58] =
|
|
23364
|
-
let
|
|
23365
|
-
r[61] !== G || r[62] !==
|
|
23403
|
+
}), r[58] = eW, r[59] = iW, r[60] = aW) : aW = r[60];
|
|
23404
|
+
let oW;
|
|
23405
|
+
r[61] !== G || r[62] !== aW ? (oW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23366
23406
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23367
23407
|
children: [
|
|
23368
23408
|
G,
|
|
23369
|
-
|
|
23409
|
+
aW
|
|
23370
23410
|
]
|
|
23371
|
-
}), r[61] = G, r[62] =
|
|
23372
|
-
let
|
|
23373
|
-
r[64] !== W || r[65] !==
|
|
23411
|
+
}), r[61] = G, r[62] = aW, r[63] = oW) : oW = r[63];
|
|
23412
|
+
let sW;
|
|
23413
|
+
r[64] !== W || r[65] !== oW || r[66] !== z || r[67] !== B ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23374
23414
|
className: z,
|
|
23375
23415
|
...B,
|
|
23376
23416
|
children: [
|
|
23377
23417
|
W,
|
|
23378
|
-
|
|
23418
|
+
oW
|
|
23379
23419
|
]
|
|
23380
|
-
}), r[64] = W, r[65] =
|
|
23381
|
-
let
|
|
23382
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23420
|
+
}), r[64] = W, r[65] = oW, r[66] = z, r[67] = B, r[68] = sW) : sW = r[68];
|
|
23421
|
+
let cW;
|
|
23422
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (cW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23383
23423
|
className: "flex flex-row gap-1",
|
|
23384
23424
|
children: [
|
|
23385
23425
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23415,17 +23455,17 @@ ${c}
|
|
|
23415
23455
|
})
|
|
23416
23456
|
})
|
|
23417
23457
|
]
|
|
23418
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23419
|
-
let
|
|
23420
|
-
return r[75] !==
|
|
23458
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = cW) : cW = r[74];
|
|
23459
|
+
let lW;
|
|
23460
|
+
return r[75] !== sW || r[76] !== cW ? (lW = (0, import_jsx_runtime.jsx)("section", {
|
|
23421
23461
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23422
23462
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23423
23463
|
children: [
|
|
23424
|
-
|
|
23425
|
-
|
|
23464
|
+
sW,
|
|
23465
|
+
cW
|
|
23426
23466
|
]
|
|
23427
23467
|
})
|
|
23428
|
-
}), r[75] =
|
|
23468
|
+
}), r[75] = sW, r[76] = cW, r[77] = lW) : lW = r[77], lW;
|
|
23429
23469
|
};
|
|
23430
23470
|
function _temp$11(e) {
|
|
23431
23471
|
Logger.error(e), toast({
|
|
@@ -23521,75 +23561,75 @@ ${c}
|
|
|
23521
23561
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23522
23562
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23523
23563
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23524
|
-
let
|
|
23525
|
-
r[13] === f ?
|
|
23564
|
+
let $U;
|
|
23565
|
+
r[13] === f ? $U = r[14] : ($U = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23526
23566
|
className: "text-center",
|
|
23527
23567
|
children: renderHTML({
|
|
23528
23568
|
html: f
|
|
23529
23569
|
})
|
|
23530
|
-
}), r[13] = f, r[14] =
|
|
23570
|
+
}), r[13] = f, r[14] = $U);
|
|
23531
23571
|
let Z;
|
|
23532
23572
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23533
23573
|
kind: "danger",
|
|
23534
23574
|
className: "rounded",
|
|
23535
23575
|
children: L ?? "Invalid input"
|
|
23536
23576
|
}), r[15] = L, r[16] = Z);
|
|
23537
|
-
let
|
|
23538
|
-
r[17] === c ?
|
|
23577
|
+
let eW;
|
|
23578
|
+
r[17] === c ? eW = r[18] : (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
23539
23579
|
children: c
|
|
23540
|
-
}), r[17] = c, r[18] =
|
|
23541
|
-
let
|
|
23542
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23580
|
+
}), r[17] = c, r[18] = eW);
|
|
23581
|
+
let tW;
|
|
23582
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (tW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23543
23583
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23544
23584
|
variant: "text",
|
|
23545
23585
|
onClick: (e2) => {
|
|
23546
23586
|
e2.preventDefault(), B();
|
|
23547
23587
|
},
|
|
23548
23588
|
children: S
|
|
23549
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23550
|
-
let
|
|
23551
|
-
r[23] === h ?
|
|
23589
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = tW) : tW = r[22];
|
|
23590
|
+
let nW = v || h, rW;
|
|
23591
|
+
r[23] === h ? rW = r[24] : (rW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23552
23592
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23553
|
-
}), r[23] = h, r[24] =
|
|
23554
|
-
let
|
|
23555
|
-
r[25] !== g || r[26] !==
|
|
23593
|
+
}), r[23] = h, r[24] = rW);
|
|
23594
|
+
let iW;
|
|
23595
|
+
r[25] !== g || r[26] !== nW || r[27] !== rW || r[28] !== I ? (iW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23556
23596
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23557
23597
|
variant: I,
|
|
23558
|
-
disabled:
|
|
23598
|
+
disabled: nW,
|
|
23559
23599
|
type: "submit",
|
|
23560
23600
|
children: [
|
|
23561
|
-
|
|
23601
|
+
rW,
|
|
23562
23602
|
g
|
|
23563
23603
|
]
|
|
23564
|
-
}), r[25] = g, r[26] =
|
|
23565
|
-
let
|
|
23566
|
-
r[30] !== _ || r[31] !==
|
|
23567
|
-
let
|
|
23568
|
-
r[33] !==
|
|
23604
|
+
}), r[25] = g, r[26] = nW, r[27] = rW, r[28] = I, r[29] = iW) : iW = r[29];
|
|
23605
|
+
let aW;
|
|
23606
|
+
r[30] !== _ || r[31] !== iW ? (aW = withTooltip(iW, _), r[30] = _, r[31] = iW, r[32] = aW) : aW = r[32];
|
|
23607
|
+
let oW;
|
|
23608
|
+
r[33] !== aW || r[34] !== tW ? (oW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23569
23609
|
className: "flex justify-end gap-2 font-code",
|
|
23570
23610
|
children: [
|
|
23571
|
-
|
|
23572
|
-
|
|
23611
|
+
tW,
|
|
23612
|
+
aW
|
|
23573
23613
|
]
|
|
23574
|
-
}), r[33] =
|
|
23575
|
-
let
|
|
23576
|
-
r[36] !==
|
|
23614
|
+
}), r[33] = aW, r[34] = tW, r[35] = oW) : oW = r[35];
|
|
23615
|
+
let sW;
|
|
23616
|
+
r[36] !== oW || r[37] !== G || r[38] !== q || r[39] !== $U || r[40] !== Z || r[41] !== eW ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23577
23617
|
className: G,
|
|
23578
23618
|
onKeyDown: q,
|
|
23579
23619
|
children: [
|
|
23580
|
-
|
|
23620
|
+
$U,
|
|
23581
23621
|
Z,
|
|
23582
|
-
|
|
23583
|
-
|
|
23622
|
+
eW,
|
|
23623
|
+
oW
|
|
23584
23624
|
]
|
|
23585
|
-
}), r[36] =
|
|
23586
|
-
let
|
|
23587
|
-
return r[43] !==
|
|
23625
|
+
}), r[36] = oW, r[37] = G, r[38] = q, r[39] = $U, r[40] = Z, r[41] = eW, r[42] = sW) : sW = r[42];
|
|
23626
|
+
let cW;
|
|
23627
|
+
return r[43] !== sW || r[44] !== H ? (cW = (0, import_jsx_runtime.jsx)("form", {
|
|
23588
23628
|
className: "contents",
|
|
23589
23629
|
ref: j,
|
|
23590
23630
|
onSubmit: H,
|
|
23591
|
-
children:
|
|
23592
|
-
}), r[43] =
|
|
23631
|
+
children: sW
|
|
23632
|
+
}), r[43] = sW, r[44] = H, r[45] = cW) : cW = r[45], cW;
|
|
23593
23633
|
};
|
|
23594
23634
|
var Form = (e) => {
|
|
23595
23635
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -24397,7 +24437,7 @@ ${c}
|
|
|
24397
24437
|
});
|
|
24398
24438
|
__privateSet(this, _t5, e), __privateSet(this, _n4, r.state), e.tabIndex = -1, e.role = "application", e.className = "relative inline-block select-none outline-hidden";
|
|
24399
24439
|
let c = document.createElement("canvas");
|
|
24400
|
-
c.className = "block cursor-crosshair", __privateMethod(this, _MatplotlibRenderer_instances,
|
|
24440
|
+
c.className = "block cursor-crosshair", __privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this, c), c.style.touchAction = "none", e.append(c), __privateSet(this, _e8, c), c.addEventListener("pointerdown", __privateGet(this, _x), {
|
|
24401
24441
|
signal: r.signal
|
|
24402
24442
|
}), c.addEventListener("pointermove", __privateGet(this, _S), {
|
|
24403
24443
|
signal: r.signal
|
|
@@ -24413,7 +24453,7 @@ ${c}
|
|
|
24413
24453
|
let r = __privateGet(this, _n4);
|
|
24414
24454
|
__privateSet(this, _n4, e);
|
|
24415
24455
|
let c = false;
|
|
24416
|
-
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances,
|
|
24456
|
+
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), c = true), e.chartBase64 !== __privateGet(this, _s)) {
|
|
24417
24457
|
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64);
|
|
24418
24458
|
return;
|
|
24419
24459
|
}
|
|
@@ -24424,12 +24464,12 @@ ${c}
|
|
|
24424
24464
|
}
|
|
24425
24465
|
(c || e.selectionColor !== r.selectionColor || e.selectionOpacity !== r.selectionOpacity || e.strokeWidth !== r.strokeWidth) && __privateGet(this, _d2).call(this);
|
|
24426
24466
|
}
|
|
24427
|
-
}, _e8 = new WeakMap(), _t5 = new WeakMap(), _n4 = new WeakMap(), _r2 = new WeakMap(), _i2 = new WeakMap(), _a2 = new WeakMap(), _o2 = new WeakMap(), _s = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(),
|
|
24467
|
+
}, _e8 = new WeakMap(), _t5 = new WeakMap(), _n4 = new WeakMap(), _r2 = new WeakMap(), _i2 = new WeakMap(), _a2 = new WeakMap(), _o2 = new WeakMap(), _s = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(), c_fn2 = function(e = __privateGet(this, _e8)) {
|
|
24428
24468
|
let r = globalThis.devicePixelRatio ?? 1, { width: c, height: l } = __privateGet(this, _n4);
|
|
24429
24469
|
e.width = c * r, e.height = l * r, e.style.width = `${c}px`, e.style.maxWidth = "100%", e.style.height = "auto", e.style.aspectRatio = `${c} / ${l}`;
|
|
24430
24470
|
}, l_fn = function(e) {
|
|
24431
24471
|
e.aborted || matchMedia(`(resolution: ${globalThis.devicePixelRatio ?? 1}dppx)`).addEventListener("change", () => {
|
|
24432
|
-
__privateMethod(this, _MatplotlibRenderer_instances,
|
|
24472
|
+
__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), __privateGet(this, _d2).call(this), __privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this, e);
|
|
24433
24473
|
}, {
|
|
24434
24474
|
once: true,
|
|
24435
24475
|
signal: e
|
|
@@ -25362,8 +25402,8 @@ ${c}
|
|
|
25362
25402
|
points: extractSunburstPoints(e2.points)
|
|
25363
25403
|
}));
|
|
25364
25404
|
}, r[29] = u, r[30] = G);
|
|
25365
|
-
let q = useEvent_default(G),
|
|
25366
|
-
r[31] === u ?
|
|
25405
|
+
let q = useEvent_default(G), $U;
|
|
25406
|
+
r[31] === u ? $U = r[32] : ($U = (e2) => {
|
|
25367
25407
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25368
25408
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25369
25409
|
u((e3) => ({
|
|
@@ -25374,9 +25414,9 @@ ${c}
|
|
|
25374
25414
|
points: r2,
|
|
25375
25415
|
indices: c2
|
|
25376
25416
|
}));
|
|
25377
|
-
}, r[31] = u, r[32] =
|
|
25378
|
-
let Z = useEvent_default(
|
|
25379
|
-
r[33] === u ?
|
|
25417
|
+
}, r[31] = u, r[32] = $U);
|
|
25418
|
+
let Z = useEvent_default($U), eW;
|
|
25419
|
+
r[33] === u ? eW = r[34] : (eW = (e2) => {
|
|
25380
25420
|
e2 && u((r2) => ({
|
|
25381
25421
|
...r2,
|
|
25382
25422
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25385,9 +25425,9 @@ ${c}
|
|
|
25385
25425
|
range: e2.range,
|
|
25386
25426
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25387
25427
|
}));
|
|
25388
|
-
}, r[33] = u, r[34] =
|
|
25389
|
-
let
|
|
25390
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25428
|
+
}, r[33] = u, r[34] = eW);
|
|
25429
|
+
let tW = useEvent_default(eW), nW = m.frames ?? void 0, rW = useEvent_default(_temp3$3), iW;
|
|
25430
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== tW || r[43] !== nW || r[44] !== rW || r[45] !== R ? (iW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25391
25431
|
...m,
|
|
25392
25432
|
layout: h,
|
|
25393
25433
|
onRelayout: R,
|
|
@@ -25396,12 +25436,12 @@ ${c}
|
|
|
25396
25436
|
onSunburstClick: q,
|
|
25397
25437
|
config: L,
|
|
25398
25438
|
onClick: Z,
|
|
25399
|
-
onSelected:
|
|
25439
|
+
onSelected: tW,
|
|
25400
25440
|
className: "w-full",
|
|
25401
25441
|
useResizeHandler: true,
|
|
25402
|
-
frames:
|
|
25403
|
-
onError:
|
|
25404
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25442
|
+
frames: nW,
|
|
25443
|
+
onError: rW
|
|
25444
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = tW, r[43] = nW, r[44] = rW, r[45] = R, r[46] = iW) : iW = r[46], iW;
|
|
25405
25445
|
});
|
|
25406
25446
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25407
25447
|
function _temp$8(e) {
|
|
@@ -25533,8 +25573,8 @@ ${c}
|
|
|
25533
25573
|
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];
|
|
25534
25574
|
let q;
|
|
25535
25575
|
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];
|
|
25536
|
-
let
|
|
25537
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25576
|
+
let $U;
|
|
25577
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? ($U = (0, import_jsx_runtime.jsx)(Track, {
|
|
25538
25578
|
ref: E,
|
|
25539
25579
|
"data-testid": "track",
|
|
25540
25580
|
className: G,
|
|
@@ -25545,7 +25585,7 @@ ${c}
|
|
|
25545
25585
|
onPointerMove: z,
|
|
25546
25586
|
onPointerUp: H
|
|
25547
25587
|
})
|
|
25548
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25588
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = $U) : $U = c[22];
|
|
25549
25589
|
let Z;
|
|
25550
25590
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25551
25591
|
asChild: true,
|
|
@@ -25558,29 +25598,29 @@ ${c}
|
|
|
25558
25598
|
onMouseLeave: m.setFalse
|
|
25559
25599
|
})
|
|
25560
25600
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25561
|
-
let
|
|
25562
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25601
|
+
let eW;
|
|
25602
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (eW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25563
25603
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25564
25604
|
locale: h
|
|
25565
25605
|
})
|
|
25566
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25567
|
-
let
|
|
25568
|
-
c[30] ===
|
|
25569
|
-
children:
|
|
25570
|
-
}), c[30] =
|
|
25571
|
-
let
|
|
25572
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25606
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = eW) : eW = c[29];
|
|
25607
|
+
let tW;
|
|
25608
|
+
c[30] === eW ? tW = c[31] : (tW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25609
|
+
children: eW
|
|
25610
|
+
}), c[30] = eW, c[31] = tW);
|
|
25611
|
+
let nW;
|
|
25612
|
+
c[32] !== f || c[33] !== Z || c[34] !== tW ? (nW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25573
25613
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25574
25614
|
delayDuration: 0,
|
|
25575
25615
|
open: f,
|
|
25576
25616
|
children: [
|
|
25577
25617
|
Z,
|
|
25578
|
-
|
|
25618
|
+
tW
|
|
25579
25619
|
]
|
|
25580
25620
|
})
|
|
25581
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25582
|
-
let
|
|
25583
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25621
|
+
}), c[32] = f, c[33] = Z, c[34] = tW, c[35] = nW) : nW = c[35];
|
|
25622
|
+
let rW;
|
|
25623
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (rW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25584
25624
|
asChild: true,
|
|
25585
25625
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25586
25626
|
"data-testid": "thumb",
|
|
@@ -25590,39 +25630,39 @@ ${c}
|
|
|
25590
25630
|
onMouseEnter: m.setTrue,
|
|
25591
25631
|
onMouseLeave: m.setFalse
|
|
25592
25632
|
})
|
|
25593
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25594
|
-
let
|
|
25595
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25633
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = rW) : rW = c[38];
|
|
25634
|
+
let iW;
|
|
25635
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (iW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25596
25636
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25597
25637
|
locale: h
|
|
25598
25638
|
})
|
|
25599
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25600
|
-
let
|
|
25601
|
-
c[43] ===
|
|
25602
|
-
children:
|
|
25603
|
-
}), c[43] =
|
|
25604
|
-
let
|
|
25605
|
-
c[45] !== f || c[46] !==
|
|
25639
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = iW) : iW = c[42];
|
|
25640
|
+
let aW;
|
|
25641
|
+
c[43] === iW ? aW = c[44] : (aW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25642
|
+
children: iW
|
|
25643
|
+
}), c[43] = iW, c[44] = aW);
|
|
25644
|
+
let oW;
|
|
25645
|
+
c[45] !== f || c[46] !== rW || c[47] !== aW ? (oW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25606
25646
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25607
25647
|
delayDuration: 0,
|
|
25608
25648
|
open: f,
|
|
25609
25649
|
children: [
|
|
25610
|
-
|
|
25611
|
-
|
|
25650
|
+
rW,
|
|
25651
|
+
aW
|
|
25612
25652
|
]
|
|
25613
25653
|
})
|
|
25614
|
-
}), c[45] = f, c[46] =
|
|
25615
|
-
let
|
|
25616
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25654
|
+
}), c[45] = f, c[46] = rW, c[47] = aW, c[48] = oW) : oW = c[48];
|
|
25655
|
+
let sW;
|
|
25656
|
+
return c[49] !== M || c[50] !== u || c[51] !== $U || c[52] !== nW || c[53] !== oW || c[54] !== W ? (sW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25617
25657
|
ref: M,
|
|
25618
25658
|
className: W,
|
|
25619
25659
|
...u,
|
|
25620
25660
|
children: [
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25661
|
+
$U,
|
|
25662
|
+
nW,
|
|
25663
|
+
oW
|
|
25624
25664
|
]
|
|
25625
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25665
|
+
}), c[49] = M, c[50] = u, c[51] = $U, c[52] = nW, c[53] = oW, c[54] = W, c[55] = sW) : sW = c[55], sW;
|
|
25626
25666
|
});
|
|
25627
25667
|
RangeSlider.displayName = Root.displayName;
|
|
25628
25668
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25673,14 +25713,14 @@ ${c}
|
|
|
25673
25713
|
}, q = (e2) => {
|
|
25674
25714
|
h && l(e2);
|
|
25675
25715
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25676
|
-
let
|
|
25677
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25716
|
+
let $U, Z;
|
|
25717
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? ($U = () => {
|
|
25678
25718
|
h && !dequal(T, u) && l(T);
|
|
25679
25719
|
}, Z = () => {
|
|
25680
25720
|
h && !dequal(T, u) && l(T);
|
|
25681
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25682
|
-
let
|
|
25683
|
-
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] !==
|
|
25721
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = $U, r[19] = Z) : ($U = r[18], Z = r[19]);
|
|
25722
|
+
let eW;
|
|
25723
|
+
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] !== $U || r[31] !== Z || r[32] !== b ? (eW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25684
25724
|
id: S,
|
|
25685
25725
|
className: W,
|
|
25686
25726
|
value: T,
|
|
@@ -25691,36 +25731,36 @@ ${c}
|
|
|
25691
25731
|
disabled: y,
|
|
25692
25732
|
onValueChange: G,
|
|
25693
25733
|
onValueCommit: q,
|
|
25694
|
-
onPointerUp:
|
|
25734
|
+
onPointerUp: $U,
|
|
25695
25735
|
onMouseUp: Z,
|
|
25696
25736
|
valueMap: b
|
|
25697
|
-
}), 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] =
|
|
25698
|
-
let
|
|
25699
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25737
|
+
}), 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] = $U, r[31] = Z, r[32] = b, r[33] = eW) : eW = r[33];
|
|
25738
|
+
let tW;
|
|
25739
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (tW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25700
25740
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25701
25741
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25702
25742
|
locale: w
|
|
25703
25743
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25704
25744
|
locale: w
|
|
25705
25745
|
})}`
|
|
25706
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25707
|
-
let
|
|
25708
|
-
r[39] !==
|
|
25746
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = tW) : tW = r[38];
|
|
25747
|
+
let nW;
|
|
25748
|
+
r[39] !== eW || r[40] !== tW || r[41] !== B ? (nW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25709
25749
|
className: B,
|
|
25710
25750
|
children: [
|
|
25711
|
-
|
|
25712
|
-
|
|
25751
|
+
eW,
|
|
25752
|
+
tW
|
|
25713
25753
|
]
|
|
25714
|
-
}), r[39] =
|
|
25715
|
-
let
|
|
25716
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25754
|
+
}), r[39] = eW, r[40] = tW, r[41] = B, r[42] = nW) : nW = r[42];
|
|
25755
|
+
let rW;
|
|
25756
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== nW || r[47] !== M || r[48] !== L ? (rW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25717
25757
|
label: c,
|
|
25718
25758
|
id: S,
|
|
25719
25759
|
align: M,
|
|
25720
25760
|
className: L,
|
|
25721
25761
|
fullWidth: v,
|
|
25722
|
-
children:
|
|
25723
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25762
|
+
children: nW
|
|
25763
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = nW, r[47] = M, r[48] = L, r[49] = rW) : rW = r[49], rW;
|
|
25724
25764
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25725
25765
|
r.exports = u;
|
|
25726
25766
|
var c = {
|
|
@@ -29011,7 +29051,7 @@ ${c}
|
|
|
29011
29051
|
areRegExpsEqual: H,
|
|
29012
29052
|
areSetsEqual: W,
|
|
29013
29053
|
createIsNestedEqual: r2
|
|
29014
|
-
}),
|
|
29054
|
+
}), $U = Object.freeze({
|
|
29015
29055
|
areArraysEqual: O,
|
|
29016
29056
|
areDatesEqual: j,
|
|
29017
29057
|
areMapsEqual: I,
|
|
@@ -29020,39 +29060,39 @@ ${c}
|
|
|
29020
29060
|
areSetsEqual: G,
|
|
29021
29061
|
createIsNestedEqual: r2
|
|
29022
29062
|
}), Z = T(q);
|
|
29023
|
-
function
|
|
29063
|
+
function eW(e3, r3) {
|
|
29024
29064
|
return Z(e3, r3, void 0);
|
|
29025
29065
|
}
|
|
29026
|
-
var
|
|
29066
|
+
var tW = T(l(q, {
|
|
29027
29067
|
createIsNestedEqual: function() {
|
|
29028
29068
|
return f;
|
|
29029
29069
|
}
|
|
29030
29070
|
}));
|
|
29031
|
-
function
|
|
29032
|
-
return
|
|
29071
|
+
function nW(e3, r3) {
|
|
29072
|
+
return tW(e3, r3, void 0);
|
|
29033
29073
|
}
|
|
29034
|
-
var
|
|
29035
|
-
function
|
|
29036
|
-
return
|
|
29074
|
+
var rW = T($U);
|
|
29075
|
+
function iW(e3, r3) {
|
|
29076
|
+
return rW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29037
29077
|
}
|
|
29038
|
-
var
|
|
29078
|
+
var aW = T(l($U, {
|
|
29039
29079
|
createIsNestedEqual: function() {
|
|
29040
29080
|
return f;
|
|
29041
29081
|
}
|
|
29042
29082
|
}));
|
|
29043
|
-
function
|
|
29044
|
-
return
|
|
29083
|
+
function oW(e3, r3) {
|
|
29084
|
+
return aW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29045
29085
|
}
|
|
29046
|
-
function
|
|
29086
|
+
function sW(e3) {
|
|
29047
29087
|
return T(l(q, e3(q)));
|
|
29048
29088
|
}
|
|
29049
|
-
function
|
|
29050
|
-
var r3 = T(l(
|
|
29089
|
+
function cW(e3) {
|
|
29090
|
+
var r3 = T(l($U, e3($U)));
|
|
29051
29091
|
return (function(e4, c2, l2) {
|
|
29052
29092
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29053
29093
|
});
|
|
29054
29094
|
}
|
|
29055
|
-
e2.circularDeepEqual =
|
|
29095
|
+
e2.circularDeepEqual = iW, e2.circularShallowEqual = oW, e2.createCustomCircularEqual = cW, e2.createCustomEqual = sW, e2.deepEqual = eW, e2.sameValueZeroEqual = f, e2.shallowEqual = nW, Object.defineProperty(e2, "__esModule", {
|
|
29056
29096
|
value: true
|
|
29057
29097
|
});
|
|
29058
29098
|
}));
|
|
@@ -29078,7 +29118,7 @@ ${c}
|
|
|
29078
29118
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29079
29119
|
Object.defineProperty(e, "__esModule", {
|
|
29080
29120
|
value: true
|
|
29081
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29121
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = mW, 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 = oW, e.setTopLeft = cW, e.setTransform = sW, e.sortLayoutItems = lW, e.sortLayoutItemsByColRow = dW, e.sortLayoutItemsByRowCol = uW, e.synchronizeLayoutWithChildren = fW, e.validateLayout = pW, e.withLayoutItem = v;
|
|
29082
29122
|
var r = require_fast_equals(), c = l(require_react());
|
|
29083
29123
|
function l(e2) {
|
|
29084
29124
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29183,7 +29223,7 @@ ${c}
|
|
|
29183
29223
|
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);
|
|
29184
29224
|
}
|
|
29185
29225
|
function T(e2, r2, c2, l2) {
|
|
29186
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29226
|
+
let u2 = B(e2), d2 = h(u2), f2 = lW(e2, r2), p2 = Array(e2.length);
|
|
29187
29227
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29188
29228
|
let h3 = y(f2[m2]);
|
|
29189
29229
|
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;
|
|
@@ -29241,7 +29281,7 @@ ${c}
|
|
|
29241
29281
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29242
29282
|
let h2 = r2.x, _2 = r2.y;
|
|
29243
29283
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29244
|
-
let v2 =
|
|
29284
|
+
let v2 = lW(e2, f2);
|
|
29245
29285
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29246
29286
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29247
29287
|
if (b2 && m2) return g(e2);
|
|
@@ -29275,15 +29315,15 @@ ${c}
|
|
|
29275
29315
|
function G(e2) {
|
|
29276
29316
|
return e2 * 100 + "%";
|
|
29277
29317
|
}
|
|
29278
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29318
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, $U = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), eW = (e2) => Math.max(0, e2), tW = (e2, r2, c2) => {
|
|
29279
29319
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29280
29320
|
return {
|
|
29281
29321
|
left: l2,
|
|
29282
29322
|
width: d2,
|
|
29283
|
-
height:
|
|
29284
|
-
top:
|
|
29323
|
+
height: $U(f2, e2.height, u2),
|
|
29324
|
+
top: eW(f2)
|
|
29285
29325
|
};
|
|
29286
|
-
},
|
|
29326
|
+
}, nW = (e2, r2, c2) => {
|
|
29287
29327
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29288
29328
|
return {
|
|
29289
29329
|
top: l2,
|
|
@@ -29291,45 +29331,45 @@ ${c}
|
|
|
29291
29331
|
width: q(e2.left, e2.width, f2, c2),
|
|
29292
29332
|
left: Z(u2)
|
|
29293
29333
|
};
|
|
29294
|
-
},
|
|
29334
|
+
}, rW = (e2, r2, c2) => {
|
|
29295
29335
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29296
29336
|
return {
|
|
29297
29337
|
height: u2,
|
|
29298
29338
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29299
|
-
top:
|
|
29339
|
+
top: eW(l2),
|
|
29300
29340
|
left: Z(f2)
|
|
29301
29341
|
};
|
|
29302
|
-
},
|
|
29342
|
+
}, iW = (e2, r2, c2) => {
|
|
29303
29343
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29304
29344
|
return {
|
|
29305
29345
|
width: f2,
|
|
29306
29346
|
left: u2,
|
|
29307
|
-
height:
|
|
29308
|
-
top:
|
|
29347
|
+
height: $U(l2, e2.height, d2),
|
|
29348
|
+
top: eW(l2)
|
|
29309
29349
|
};
|
|
29310
|
-
},
|
|
29311
|
-
n:
|
|
29350
|
+
}, aW = {
|
|
29351
|
+
n: tW,
|
|
29312
29352
|
ne: function() {
|
|
29313
|
-
return
|
|
29353
|
+
return tW(arguments.length <= 0 ? void 0 : arguments[0], nW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29314
29354
|
},
|
|
29315
|
-
e:
|
|
29355
|
+
e: nW,
|
|
29316
29356
|
se: function() {
|
|
29317
|
-
return
|
|
29357
|
+
return iW(arguments.length <= 0 ? void 0 : arguments[0], nW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29318
29358
|
},
|
|
29319
|
-
s:
|
|
29359
|
+
s: iW,
|
|
29320
29360
|
sw: function() {
|
|
29321
|
-
return
|
|
29361
|
+
return iW(arguments.length <= 0 ? void 0 : arguments[0], rW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29322
29362
|
},
|
|
29323
|
-
w:
|
|
29363
|
+
w: rW,
|
|
29324
29364
|
nw: function() {
|
|
29325
|
-
return
|
|
29365
|
+
return tW(arguments.length <= 0 ? void 0 : arguments[0], rW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29326
29366
|
}
|
|
29327
29367
|
};
|
|
29328
|
-
function
|
|
29329
|
-
let u2 =
|
|
29368
|
+
function oW(e2, r2, c2, l2) {
|
|
29369
|
+
let u2 = aW[e2];
|
|
29330
29370
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29331
29371
|
}
|
|
29332
|
-
function
|
|
29372
|
+
function sW(e2) {
|
|
29333
29373
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29334
29374
|
return {
|
|
29335
29375
|
transform: d2,
|
|
@@ -29342,7 +29382,7 @@ ${c}
|
|
|
29342
29382
|
position: "absolute"
|
|
29343
29383
|
};
|
|
29344
29384
|
}
|
|
29345
|
-
function
|
|
29385
|
+
function cW(e2) {
|
|
29346
29386
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29347
29387
|
return {
|
|
29348
29388
|
top: `${r2}px`,
|
|
@@ -29352,20 +29392,20 @@ ${c}
|
|
|
29352
29392
|
position: "absolute"
|
|
29353
29393
|
};
|
|
29354
29394
|
}
|
|
29355
|
-
function
|
|
29356
|
-
return r2 === "horizontal" ?
|
|
29395
|
+
function lW(e2, r2) {
|
|
29396
|
+
return r2 === "horizontal" ? dW(e2) : r2 === "vertical" ? uW(e2) : e2;
|
|
29357
29397
|
}
|
|
29358
|
-
function
|
|
29398
|
+
function uW(e2) {
|
|
29359
29399
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29360
29400
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29361
29401
|
});
|
|
29362
29402
|
}
|
|
29363
|
-
function
|
|
29403
|
+
function dW(e2) {
|
|
29364
29404
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29365
29405
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29366
29406
|
});
|
|
29367
29407
|
}
|
|
29368
|
-
function
|
|
29408
|
+
function fW(e2, r2, l2, u2, f2) {
|
|
29369
29409
|
e2 || (e2 = []);
|
|
29370
29410
|
let p2 = [];
|
|
29371
29411
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29386,7 +29426,7 @@ ${c}
|
|
|
29386
29426
|
});
|
|
29387
29427
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29388
29428
|
}
|
|
29389
|
-
function
|
|
29429
|
+
function pW(e2) {
|
|
29390
29430
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29391
29431
|
"x",
|
|
29392
29432
|
"y",
|
|
@@ -29403,7 +29443,7 @@ ${c}
|
|
|
29403
29443
|
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})`);
|
|
29404
29444
|
}
|
|
29405
29445
|
}
|
|
29406
|
-
function
|
|
29446
|
+
function mW(e2) {
|
|
29407
29447
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29408
29448
|
return r2 === false ? null : c2;
|
|
29409
29449
|
}
|
|
@@ -29860,8 +29900,8 @@ ${c}
|
|
|
29860
29900
|
}
|
|
29861
29901
|
}
|
|
29862
29902
|
findDOMNode() {
|
|
29863
|
-
var _a3, _b3,
|
|
29864
|
-
return ((_a3 = this.props) == null ? void 0 : _a3.nodeRef) ? (
|
|
29903
|
+
var _a3, _b3, _c2;
|
|
29904
|
+
return ((_a3 = this.props) == null ? void 0 : _a3.nodeRef) ? (_c2 = (_b3 = this.props) == null ? void 0 : _b3.nodeRef) == null ? void 0 : _c2.current : l.default.findDOMNode(this);
|
|
29865
29905
|
}
|
|
29866
29906
|
render() {
|
|
29867
29907
|
return r.cloneElement(r.Children.only(this.props.children), {
|
|
@@ -32208,7 +32248,7 @@ ${c}
|
|
|
32208
32248
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32209
32249
|
let E = useIsDragging(), O, j;
|
|
32210
32250
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32211
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32251
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, $U, Z, eW, tW, nW, rW, iW, aW, oW, sW, cW, lW, uW, dW, fW, pW, mW;
|
|
32212
32252
|
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) {
|
|
32213
32253
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32214
32254
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32227,23 +32267,23 @@ ${c}
|
|
|
32227
32267
|
});
|
|
32228
32268
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32229
32269
|
let y2 = v2;
|
|
32230
|
-
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,
|
|
32270
|
+
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, dW = "lg", r[58] === c.cells ? fW = r[59] : (fW = {
|
|
32231
32271
|
lg: c.cells
|
|
32232
|
-
}, r[58] = c.cells, r[59] =
|
|
32272
|
+
}, r[58] = c.cells, r[59] = fW), pW = L, mW = S, R = false;
|
|
32233
32273
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32234
32274
|
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 ? [
|
|
32235
32275
|
20,
|
|
32236
32276
|
20
|
|
32237
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32277
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, $U = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32238
32278
|
f || l({
|
|
32239
32279
|
...c,
|
|
32240
32280
|
cells: e3
|
|
32241
32281
|
});
|
|
32242
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32282
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? eW = r[71] : (eW = g ? {
|
|
32243
32283
|
i: g.i,
|
|
32244
32284
|
w: g.w || 2,
|
|
32245
32285
|
h: g.h || 2
|
|
32246
|
-
} : void 0, r[70] = g, r[71] =
|
|
32286
|
+
} : void 0, r[70] = g, r[71] = eW), r[72] !== O || r[73] !== c || r[74] !== l ? (tW = (e3, r2, u2) => {
|
|
32247
32287
|
O.onDragStop(), r2 && l({
|
|
32248
32288
|
...c,
|
|
32249
32289
|
cells: [
|
|
@@ -32251,15 +32291,15 @@ ${c}
|
|
|
32251
32291
|
r2
|
|
32252
32292
|
]
|
|
32253
32293
|
});
|
|
32254
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32294
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = tW) : tW = r[75], r[76] === O ? (nW = r[77], rW = r[78], iW = r[79]) : (nW = (e3, r2, c2, l2, u2) => {
|
|
32255
32295
|
O.onDragStart(u2);
|
|
32256
|
-
},
|
|
32296
|
+
}, rW = (e3, r2, c2, l2, u2) => {
|
|
32257
32297
|
O.onDragMove(u2);
|
|
32258
|
-
},
|
|
32298
|
+
}, iW = () => {
|
|
32259
32299
|
O.onDragStop();
|
|
32260
|
-
}, r[76] = O, r[77] =
|
|
32300
|
+
}, r[76] = O, r[77] = nW, r[78] = rW, r[79] = iW), aW = _temp3$2, oW = M, sW = M, cW = M, lW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32261
32301
|
let E2;
|
|
32262
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32302
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), uW = u.filter(E2).map((r2) => {
|
|
32263
32303
|
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, {
|
|
32264
32304
|
code: r2.code,
|
|
32265
32305
|
mode: d,
|
|
@@ -32288,14 +32328,14 @@ ${c}
|
|
|
32288
32328
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32289
32329
|
children: m3
|
|
32290
32330
|
}, r2.id);
|
|
32291
|
-
}), 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] =
|
|
32292
|
-
} 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],
|
|
32293
|
-
let
|
|
32294
|
-
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] !==
|
|
32295
|
-
breakpoint:
|
|
32296
|
-
layouts:
|
|
32297
|
-
style:
|
|
32298
|
-
cols:
|
|
32331
|
+
}), 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] = $U, r[31] = Z, r[32] = eW, r[33] = tW, r[34] = nW, r[35] = rW, r[36] = iW, r[37] = aW, r[38] = oW, r[39] = sW, r[40] = cW, r[41] = lW, r[42] = uW, r[43] = dW, r[44] = fW, r[45] = pW, r[46] = mW;
|
|
32332
|
+
} 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], $U = r[30], Z = r[31], eW = r[32], tW = r[33], nW = r[34], rW = r[35], iW = r[36], aW = r[37], oW = r[38], sW = r[39], cW = r[40], lW = r[41], uW = r[42], dW = r[43], fW = r[44], pW = r[45], mW = r[46];
|
|
32333
|
+
let hW;
|
|
32334
|
+
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] !== $U || r[91] !== Z || r[92] !== eW || r[93] !== tW || r[94] !== nW || r[95] !== rW || r[96] !== iW || r[97] !== aW || r[98] !== oW || r[99] !== sW || r[100] !== cW || r[101] !== lW || r[102] !== uW || r[103] !== dW || r[104] !== fW || r[105] !== pW || r[106] !== mW ? (hW = (0, import_jsx_runtime.jsx)(I, {
|
|
32335
|
+
breakpoint: dW,
|
|
32336
|
+
layouts: fW,
|
|
32337
|
+
style: pW,
|
|
32338
|
+
cols: mW,
|
|
32299
32339
|
allowOverlap: R,
|
|
32300
32340
|
className: z,
|
|
32301
32341
|
containerPadding: B,
|
|
@@ -32303,23 +32343,23 @@ ${c}
|
|
|
32303
32343
|
isBounded: W,
|
|
32304
32344
|
compactType: G,
|
|
32305
32345
|
preventCollision: q,
|
|
32306
|
-
rowHeight:
|
|
32346
|
+
rowHeight: $U,
|
|
32307
32347
|
onLayoutChange: Z,
|
|
32308
|
-
droppingItem:
|
|
32309
|
-
onDrop:
|
|
32310
|
-
onDragStart:
|
|
32311
|
-
onDrag:
|
|
32312
|
-
onDragStop:
|
|
32313
|
-
onResizeStop:
|
|
32314
|
-
isDraggable:
|
|
32315
|
-
isDroppable:
|
|
32316
|
-
isResizable:
|
|
32317
|
-
draggableHandle:
|
|
32318
|
-
children:
|
|
32319
|
-
}), 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] =
|
|
32320
|
-
let
|
|
32321
|
-
if (r[108] !== u || r[109] !==
|
|
32322
|
-
|
|
32348
|
+
droppingItem: eW,
|
|
32349
|
+
onDrop: tW,
|
|
32350
|
+
onDragStart: nW,
|
|
32351
|
+
onDrag: rW,
|
|
32352
|
+
onDragStop: iW,
|
|
32353
|
+
onResizeStop: aW,
|
|
32354
|
+
isDraggable: oW,
|
|
32355
|
+
isDroppable: sW,
|
|
32356
|
+
isResizable: cW,
|
|
32357
|
+
draggableHandle: lW,
|
|
32358
|
+
children: uW
|
|
32359
|
+
}), 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] = $U, r[91] = Z, r[92] = eW, r[93] = tW, r[94] = nW, r[95] = rW, r[96] = iW, r[97] = aW, r[98] = oW, r[99] = sW, r[100] = cW, r[101] = lW, r[102] = uW, r[103] = dW, r[104] = fW, r[105] = pW, r[106] = mW, r[107] = hW) : hW = r[107];
|
|
32360
|
+
let gW = hW, _W, vW, yW, bW, xW, SW, CW;
|
|
32361
|
+
if (r[108] !== u || r[109] !== gW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32362
|
+
CW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32323
32363
|
bb0: {
|
|
32324
32364
|
let e2;
|
|
32325
32365
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32327,14 +32367,14 @@ ${c}
|
|
|
32327
32367
|
if (f) {
|
|
32328
32368
|
if (c.bordered) {
|
|
32329
32369
|
let e4;
|
|
32330
|
-
r[127] !==
|
|
32370
|
+
r[127] !== gW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32331
32371
|
className: "flex flex-1 flex-col items-center",
|
|
32332
32372
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32333
32373
|
style: L,
|
|
32334
32374
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32335
|
-
children:
|
|
32375
|
+
children: gW
|
|
32336
32376
|
})
|
|
32337
|
-
}), r[127] =
|
|
32377
|
+
}), r[127] = gW, r[128] = L, r[129] = e4) : e4 = r[129], gW = e4;
|
|
32338
32378
|
}
|
|
32339
32379
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32340
32380
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32345,9 +32385,9 @@ ${c}
|
|
|
32345
32385
|
status: e4.status,
|
|
32346
32386
|
isScrollable: false,
|
|
32347
32387
|
hidden: false
|
|
32348
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32388
|
+
}, e4.id), r[130] = d, r[131] = l2), CW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32349
32389
|
children: [
|
|
32350
|
-
|
|
32390
|
+
gW,
|
|
32351
32391
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32352
32392
|
className: "hidden",
|
|
32353
32393
|
children: e3.map(l2)
|
|
@@ -32358,31 +32398,31 @@ ${c}
|
|
|
32358
32398
|
}
|
|
32359
32399
|
if (c.bordered) {
|
|
32360
32400
|
let e3;
|
|
32361
|
-
r[132] ===
|
|
32401
|
+
r[132] === gW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32362
32402
|
className: "h-full overflow-auto",
|
|
32363
|
-
children:
|
|
32364
|
-
}), r[132] =
|
|
32403
|
+
children: gW
|
|
32404
|
+
}), r[132] = gW, r[133] = e3);
|
|
32365
32405
|
let c2;
|
|
32366
32406
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32367
32407
|
style: L,
|
|
32368
32408
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32369
32409
|
children: e3
|
|
32370
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32410
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], gW = c2;
|
|
32371
32411
|
}
|
|
32372
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32412
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (SW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32373
32413
|
layout: c,
|
|
32374
32414
|
setLayout: l,
|
|
32375
32415
|
isLocked: v,
|
|
32376
32416
|
setIsLocked: y
|
|
32377
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32417
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = SW) : SW = r[140];
|
|
32378
32418
|
let g2;
|
|
32379
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32419
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = bW, r[142] = g2) : (bW = r[141], g2 = r[142]), r[143] === gW ? xW = r[144] : (xW = (0, import_jsx_runtime.jsx)("div", {
|
|
32380
32420
|
className: g2,
|
|
32381
|
-
children:
|
|
32382
|
-
}), r[143] =
|
|
32421
|
+
children: gW
|
|
32422
|
+
}), r[143] = gW, r[144] = xW), _W = "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") ? (vW = (0, import_jsx_runtime.jsx)("div", {
|
|
32383
32423
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32384
32424
|
children: "Outputs"
|
|
32385
|
-
}), r[145] =
|
|
32425
|
+
}), r[145] = vW) : vW = r[145];
|
|
32386
32426
|
let b2;
|
|
32387
32427
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32388
32428
|
draggable: true,
|
|
@@ -32407,34 +32447,34 @@ ${c}
|
|
|
32407
32447
|
status: e3.status,
|
|
32408
32448
|
hidden: false
|
|
32409
32449
|
})
|
|
32410
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32411
|
-
}
|
|
32412
|
-
r[108] = u, r[109] =
|
|
32413
|
-
} else
|
|
32414
|
-
if (
|
|
32415
|
-
let
|
|
32416
|
-
r[150] !==
|
|
32417
|
-
className:
|
|
32450
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], yW = m2.map(b2);
|
|
32451
|
+
}
|
|
32452
|
+
r[108] = u, r[109] = gW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = _W, r[118] = vW, r[119] = yW, r[120] = bW, r[121] = xW, r[122] = SW, r[123] = CW, r[124] = gW;
|
|
32453
|
+
} else _W = r[117], vW = r[118], yW = r[119], bW = r[120], xW = r[121], SW = r[122], CW = r[123], gW = r[124];
|
|
32454
|
+
if (CW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return CW;
|
|
32455
|
+
let wW;
|
|
32456
|
+
r[150] !== _W || r[151] !== vW || r[152] !== yW ? (wW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32457
|
+
className: _W,
|
|
32418
32458
|
children: [
|
|
32419
|
-
|
|
32420
|
-
|
|
32459
|
+
vW,
|
|
32460
|
+
yW
|
|
32421
32461
|
]
|
|
32422
|
-
}), r[150] =
|
|
32423
|
-
let
|
|
32424
|
-
r[154] !==
|
|
32425
|
-
className:
|
|
32462
|
+
}), r[150] = _W, r[151] = vW, r[152] = yW, r[153] = wW) : wW = r[153];
|
|
32463
|
+
let TW;
|
|
32464
|
+
r[154] !== bW || r[155] !== xW || r[156] !== wW ? (TW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32465
|
+
className: bW,
|
|
32426
32466
|
children: [
|
|
32427
|
-
|
|
32428
|
-
|
|
32467
|
+
xW,
|
|
32468
|
+
wW
|
|
32429
32469
|
]
|
|
32430
|
-
}), r[154] =
|
|
32431
|
-
let
|
|
32432
|
-
return r[158] !==
|
|
32470
|
+
}), r[154] = bW, r[155] = xW, r[156] = wW, r[157] = TW) : TW = r[157];
|
|
32471
|
+
let EW;
|
|
32472
|
+
return r[158] !== SW || r[159] !== TW ? (EW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32433
32473
|
children: [
|
|
32434
|
-
|
|
32435
|
-
|
|
32474
|
+
SW,
|
|
32475
|
+
TW
|
|
32436
32476
|
]
|
|
32437
|
-
}), r[158] =
|
|
32477
|
+
}), r[158] = SW, r[159] = TW, r[160] = EW) : EW = r[160], EW;
|
|
32438
32478
|
};
|
|
32439
32479
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32440
32480
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32735,25 +32775,25 @@ ${c}
|
|
|
32735
32775
|
G
|
|
32736
32776
|
]
|
|
32737
32777
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32738
|
-
let
|
|
32739
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32778
|
+
let $U;
|
|
32779
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($U = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32740
32780
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32741
|
-
}), r[35] =
|
|
32781
|
+
}), r[35] = $U) : $U = r[35];
|
|
32742
32782
|
let Z;
|
|
32743
32783
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32744
32784
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32745
32785
|
onClick: () => l()
|
|
32746
32786
|
}), r[36] = l, r[37] = Z);
|
|
32747
|
-
let
|
|
32748
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32787
|
+
let eW;
|
|
32788
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32749
32789
|
className: w,
|
|
32750
32790
|
children: [
|
|
32751
32791
|
I,
|
|
32752
32792
|
q,
|
|
32753
|
-
|
|
32793
|
+
$U,
|
|
32754
32794
|
Z
|
|
32755
32795
|
]
|
|
32756
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32796
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = eW) : eW = r[42], eW;
|
|
32757
32797
|
};
|
|
32758
32798
|
function isSidebarCell(e) {
|
|
32759
32799
|
var _a3;
|
|
@@ -34757,31 +34797,31 @@ ${c}
|
|
|
34757
34797
|
}, [
|
|
34758
34798
|
T,
|
|
34759
34799
|
M
|
|
34760
|
-
]), 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),
|
|
34800
|
+
]), 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), $U = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34761
34801
|
j
|
|
34762
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34802
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: eW, measureDroppableContainers: tW, measuringScheduled: nW } = useDroppableMeasuring($U, {
|
|
34763
34803
|
dragging: w,
|
|
34764
34804
|
dependencies: [
|
|
34765
34805
|
O.x,
|
|
34766
34806
|
O.y
|
|
34767
34807
|
],
|
|
34768
34808
|
config: Z.droppable
|
|
34769
|
-
}),
|
|
34809
|
+
}), rW = useCachedNode(E, T), iW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34770
34810
|
H
|
|
34771
|
-
]),
|
|
34811
|
+
]), aW = IW(), oW = useInitialRect(rW, Z.draggable.measure);
|
|
34772
34812
|
useLayoutShiftScrollCompensation({
|
|
34773
34813
|
activeNode: T == null ? null : E.get(T),
|
|
34774
|
-
config:
|
|
34775
|
-
initialRect:
|
|
34814
|
+
config: aW.layoutShiftCompensation,
|
|
34815
|
+
initialRect: oW,
|
|
34776
34816
|
measure: Z.draggable.measure
|
|
34777
34817
|
});
|
|
34778
|
-
let
|
|
34818
|
+
let sW = useRect(rW, Z.draggable.measure, oW), cW = useRect(rW ? rW.parentElement : null), lW = (0, import_react.useRef)({
|
|
34779
34819
|
activatorEvent: null,
|
|
34780
34820
|
active: null,
|
|
34781
|
-
activeNode:
|
|
34821
|
+
activeNode: rW,
|
|
34782
34822
|
collisionRect: null,
|
|
34783
34823
|
collisions: null,
|
|
34784
|
-
droppableRects:
|
|
34824
|
+
droppableRects: eW,
|
|
34785
34825
|
draggableNodes: E,
|
|
34786
34826
|
draggingNode: null,
|
|
34787
34827
|
draggingNodeRect: null,
|
|
@@ -34789,45 +34829,45 @@ ${c}
|
|
|
34789
34829
|
over: null,
|
|
34790
34830
|
scrollableAncestors: [],
|
|
34791
34831
|
scrollAdjustedTranslate: null
|
|
34792
|
-
}),
|
|
34832
|
+
}), uW = j.getNodeFor((_a3 = lW.current.over) == null ? void 0 : _a3.id), dW = useDragOverlayMeasuring({
|
|
34793
34833
|
measure: Z.dragOverlay.measure
|
|
34794
|
-
}),
|
|
34834
|
+
}), fW = dW.nodeRef.current ?? rW, pW = w ? dW.rect ?? sW : null, mW = !!(dW.nodeRef.current && dW.rect), hW = useRectDelta(mW ? null : sW), gW = useWindowRect(fW ? getWindow(fW) : null), _W = useScrollableAncestors(w ? uW ?? rW : null), vW = useRects(_W), yW = applyModifiers(m, {
|
|
34795
34835
|
transform: {
|
|
34796
|
-
x: O.x -
|
|
34797
|
-
y: O.y -
|
|
34836
|
+
x: O.x - hW.x,
|
|
34837
|
+
y: O.y - hW.y,
|
|
34798
34838
|
scaleX: 1,
|
|
34799
34839
|
scaleY: 1
|
|
34800
34840
|
},
|
|
34801
34841
|
activatorEvent: H,
|
|
34802
34842
|
active: L,
|
|
34803
|
-
activeNodeRect:
|
|
34804
|
-
containerNodeRect:
|
|
34805
|
-
draggingNodeRect:
|
|
34806
|
-
over:
|
|
34807
|
-
overlayNodeRect:
|
|
34808
|
-
scrollableAncestors:
|
|
34809
|
-
scrollableAncestorRects:
|
|
34810
|
-
windowRect:
|
|
34811
|
-
}),
|
|
34812
|
-
|
|
34813
|
-
]),
|
|
34843
|
+
activeNodeRect: sW,
|
|
34844
|
+
containerNodeRect: cW,
|
|
34845
|
+
draggingNodeRect: pW,
|
|
34846
|
+
over: lW.current.over,
|
|
34847
|
+
overlayNodeRect: dW.rect,
|
|
34848
|
+
scrollableAncestors: _W,
|
|
34849
|
+
scrollableAncestorRects: vW,
|
|
34850
|
+
windowRect: gW
|
|
34851
|
+
}), bW = iW ? add(iW, O) : null, xW = useScrollOffsets(_W), SW = useScrollOffsetsDelta(xW), CW = useScrollOffsetsDelta(xW, [
|
|
34852
|
+
sW
|
|
34853
|
+
]), wW = add(yW, SW), TW = pW ? getAdjustedRect(pW, yW) : null, EW = L && TW ? f({
|
|
34814
34854
|
active: L,
|
|
34815
|
-
collisionRect:
|
|
34816
|
-
droppableRects:
|
|
34817
|
-
droppableContainers:
|
|
34818
|
-
pointerCoordinates:
|
|
34819
|
-
}) : null,
|
|
34855
|
+
collisionRect: TW,
|
|
34856
|
+
droppableRects: eW,
|
|
34857
|
+
droppableContainers: $U,
|
|
34858
|
+
pointerCoordinates: bW
|
|
34859
|
+
}) : null, DW = getFirstCollision(EW, "id"), [OW, kW] = (0, import_react.useState)(null), AW = adjustScale(mW ? yW : add(yW, CW), (OW == null ? void 0 : OW.rect) ?? null, sW), jW = (0, import_react.useRef)(null), MW = (0, import_react.useCallback)((e2, r2) => {
|
|
34820
34860
|
let { sensor: c2, options: l2 } = r2;
|
|
34821
34861
|
if (R.current == null) return;
|
|
34822
34862
|
let u2 = E.get(R.current);
|
|
34823
34863
|
if (!u2) return;
|
|
34824
34864
|
let d2 = e2.nativeEvent;
|
|
34825
|
-
|
|
34865
|
+
jW.current = new c2({
|
|
34826
34866
|
active: R.current,
|
|
34827
34867
|
activeNode: u2,
|
|
34828
34868
|
event: d2,
|
|
34829
34869
|
options: l2,
|
|
34830
|
-
context:
|
|
34870
|
+
context: lW,
|
|
34831
34871
|
onAbort(e3) {
|
|
34832
34872
|
if (!E.get(e3)) return;
|
|
34833
34873
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34872,7 +34912,7 @@ ${c}
|
|
|
34872
34912
|
}), v({
|
|
34873
34913
|
type: "onDragStart",
|
|
34874
34914
|
event: u3
|
|
34875
|
-
}), B(
|
|
34915
|
+
}), B(jW.current), W(d2);
|
|
34876
34916
|
});
|
|
34877
34917
|
},
|
|
34878
34918
|
onMove(e3) {
|
|
@@ -34886,7 +34926,7 @@ ${c}
|
|
|
34886
34926
|
});
|
|
34887
34927
|
function f2(e3) {
|
|
34888
34928
|
return async function() {
|
|
34889
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34929
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = lW.current, f3 = null;
|
|
34890
34930
|
if (r3 && u3) {
|
|
34891
34931
|
let { cancelDrop: p2 } = G.current;
|
|
34892
34932
|
f3 = {
|
|
@@ -34900,7 +34940,7 @@ ${c}
|
|
|
34900
34940
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34901
34941
|
_({
|
|
34902
34942
|
type: e3
|
|
34903
|
-
}), S(Status.Uninitialized),
|
|
34943
|
+
}), S(Status.Uninitialized), kW(null), B(null), W(null), jW.current = null;
|
|
34904
34944
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34905
34945
|
if (f3) {
|
|
34906
34946
|
let e4 = G.current[r4];
|
|
@@ -34914,7 +34954,7 @@ ${c}
|
|
|
34914
34954
|
}
|
|
34915
34955
|
}, [
|
|
34916
34956
|
E
|
|
34917
|
-
]),
|
|
34957
|
+
]), NW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34918
34958
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34919
34959
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34920
34960
|
let f2 = {
|
|
@@ -34922,26 +34962,26 @@ ${c}
|
|
|
34922
34962
|
};
|
|
34923
34963
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34924
34964
|
capturedBy: r2.sensor
|
|
34925
|
-
}, R.current = l2,
|
|
34965
|
+
}, R.current = l2, MW(c2, r2));
|
|
34926
34966
|
}, [
|
|
34927
34967
|
E,
|
|
34928
|
-
|
|
34968
|
+
MW
|
|
34929
34969
|
]));
|
|
34930
34970
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34931
|
-
|
|
34971
|
+
sW && b === Status.Initializing && S(Status.Initialized);
|
|
34932
34972
|
}, [
|
|
34933
|
-
|
|
34973
|
+
sW,
|
|
34934
34974
|
b
|
|
34935
34975
|
]), (0, import_react.useEffect)(() => {
|
|
34936
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34976
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = lW.current;
|
|
34937
34977
|
if (!r2 || !c2) return;
|
|
34938
34978
|
let d2 = {
|
|
34939
34979
|
active: r2,
|
|
34940
34980
|
activatorEvent: c2,
|
|
34941
34981
|
collisions: l2,
|
|
34942
34982
|
delta: {
|
|
34943
|
-
x:
|
|
34944
|
-
y:
|
|
34983
|
+
x: wW.x,
|
|
34984
|
+
y: wW.y
|
|
34945
34985
|
},
|
|
34946
34986
|
over: u2
|
|
34947
34987
|
};
|
|
@@ -34952,12 +34992,12 @@ ${c}
|
|
|
34952
34992
|
});
|
|
34953
34993
|
});
|
|
34954
34994
|
}, [
|
|
34955
|
-
|
|
34956
|
-
|
|
34995
|
+
wW.x,
|
|
34996
|
+
wW.y
|
|
34957
34997
|
]), (0, import_react.useEffect)(() => {
|
|
34958
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34998
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = lW.current;
|
|
34959
34999
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34960
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35000
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(DW), p2 = f2 && f2.rect.current ? {
|
|
34961
35001
|
id: f2.id,
|
|
34962
35002
|
rect: f2.rect.current,
|
|
34963
35003
|
data: f2.data,
|
|
@@ -34973,127 +35013,127 @@ ${c}
|
|
|
34973
35013
|
over: p2
|
|
34974
35014
|
};
|
|
34975
35015
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34976
|
-
|
|
35016
|
+
kW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34977
35017
|
type: "onDragOver",
|
|
34978
35018
|
event: m2
|
|
34979
35019
|
});
|
|
34980
35020
|
});
|
|
34981
35021
|
}, [
|
|
34982
|
-
|
|
35022
|
+
DW
|
|
34983
35023
|
]), useIsomorphicLayoutEffect(() => {
|
|
34984
|
-
|
|
35024
|
+
lW.current = {
|
|
34985
35025
|
activatorEvent: H,
|
|
34986
35026
|
active: L,
|
|
34987
|
-
activeNode:
|
|
34988
|
-
collisionRect:
|
|
34989
|
-
collisions:
|
|
34990
|
-
droppableRects:
|
|
35027
|
+
activeNode: rW,
|
|
35028
|
+
collisionRect: TW,
|
|
35029
|
+
collisions: EW,
|
|
35030
|
+
droppableRects: eW,
|
|
34991
35031
|
draggableNodes: E,
|
|
34992
|
-
draggingNode:
|
|
34993
|
-
draggingNodeRect:
|
|
35032
|
+
draggingNode: fW,
|
|
35033
|
+
draggingNodeRect: pW,
|
|
34994
35034
|
droppableContainers: j,
|
|
34995
|
-
over:
|
|
34996
|
-
scrollableAncestors:
|
|
34997
|
-
scrollAdjustedTranslate:
|
|
35035
|
+
over: OW,
|
|
35036
|
+
scrollableAncestors: _W,
|
|
35037
|
+
scrollAdjustedTranslate: wW
|
|
34998
35038
|
}, I.current = {
|
|
34999
|
-
initial:
|
|
35000
|
-
translated:
|
|
35039
|
+
initial: pW,
|
|
35040
|
+
translated: TW
|
|
35001
35041
|
};
|
|
35002
35042
|
}, [
|
|
35003
35043
|
L,
|
|
35004
|
-
qU,
|
|
35005
|
-
gW,
|
|
35006
|
-
hW,
|
|
35007
|
-
E,
|
|
35008
|
-
nW,
|
|
35009
35044
|
rW,
|
|
35010
|
-
|
|
35045
|
+
EW,
|
|
35046
|
+
TW,
|
|
35047
|
+
E,
|
|
35048
|
+
fW,
|
|
35049
|
+
pW,
|
|
35050
|
+
eW,
|
|
35011
35051
|
j,
|
|
35012
|
-
|
|
35013
|
-
|
|
35014
|
-
|
|
35052
|
+
OW,
|
|
35053
|
+
_W,
|
|
35054
|
+
wW
|
|
35015
35055
|
]), useAutoScroller({
|
|
35016
|
-
...
|
|
35056
|
+
...aW,
|
|
35017
35057
|
delta: O,
|
|
35018
|
-
draggingRect:
|
|
35019
|
-
pointerCoordinates:
|
|
35020
|
-
scrollableAncestors:
|
|
35021
|
-
scrollableAncestorRects:
|
|
35058
|
+
draggingRect: TW,
|
|
35059
|
+
pointerCoordinates: bW,
|
|
35060
|
+
scrollableAncestors: _W,
|
|
35061
|
+
scrollableAncestorRects: vW
|
|
35022
35062
|
});
|
|
35023
|
-
let
|
|
35063
|
+
let PW = (0, import_react.useMemo)(() => ({
|
|
35024
35064
|
active: L,
|
|
35025
|
-
activeNode:
|
|
35026
|
-
activeNodeRect:
|
|
35065
|
+
activeNode: rW,
|
|
35066
|
+
activeNodeRect: sW,
|
|
35027
35067
|
activatorEvent: H,
|
|
35028
|
-
collisions:
|
|
35029
|
-
containerNodeRect:
|
|
35030
|
-
dragOverlay:
|
|
35068
|
+
collisions: EW,
|
|
35069
|
+
containerNodeRect: cW,
|
|
35070
|
+
dragOverlay: dW,
|
|
35031
35071
|
draggableNodes: E,
|
|
35032
35072
|
droppableContainers: j,
|
|
35033
|
-
droppableRects:
|
|
35034
|
-
over:
|
|
35035
|
-
measureDroppableContainers:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollableAncestorRects:
|
|
35073
|
+
droppableRects: eW,
|
|
35074
|
+
over: OW,
|
|
35075
|
+
measureDroppableContainers: tW,
|
|
35076
|
+
scrollableAncestors: _W,
|
|
35077
|
+
scrollableAncestorRects: vW,
|
|
35038
35078
|
measuringConfiguration: Z,
|
|
35039
|
-
measuringScheduled:
|
|
35040
|
-
windowRect:
|
|
35079
|
+
measuringScheduled: nW,
|
|
35080
|
+
windowRect: gW
|
|
35041
35081
|
}), [
|
|
35042
35082
|
L,
|
|
35043
|
-
|
|
35044
|
-
|
|
35083
|
+
rW,
|
|
35084
|
+
sW,
|
|
35045
35085
|
H,
|
|
35046
|
-
|
|
35047
|
-
|
|
35048
|
-
|
|
35086
|
+
EW,
|
|
35087
|
+
cW,
|
|
35088
|
+
dW,
|
|
35049
35089
|
E,
|
|
35050
35090
|
j,
|
|
35051
|
-
|
|
35091
|
+
eW,
|
|
35092
|
+
OW,
|
|
35093
|
+
tW,
|
|
35094
|
+
_W,
|
|
35052
35095
|
vW,
|
|
35053
|
-
GU,
|
|
35054
|
-
sW,
|
|
35055
|
-
cW,
|
|
35056
35096
|
Z,
|
|
35057
|
-
|
|
35058
|
-
|
|
35059
|
-
]),
|
|
35097
|
+
nW,
|
|
35098
|
+
gW
|
|
35099
|
+
]), FW = (0, import_react.useMemo)(() => ({
|
|
35060
35100
|
activatorEvent: H,
|
|
35061
|
-
activators:
|
|
35101
|
+
activators: NW,
|
|
35062
35102
|
active: L,
|
|
35063
|
-
activeNodeRect:
|
|
35103
|
+
activeNodeRect: sW,
|
|
35064
35104
|
ariaDescribedById: {
|
|
35065
35105
|
draggable: q
|
|
35066
35106
|
},
|
|
35067
35107
|
dispatch: _,
|
|
35068
35108
|
draggableNodes: E,
|
|
35069
|
-
over:
|
|
35070
|
-
measureDroppableContainers:
|
|
35109
|
+
over: OW,
|
|
35110
|
+
measureDroppableContainers: tW
|
|
35071
35111
|
}), [
|
|
35072
35112
|
H,
|
|
35073
|
-
|
|
35113
|
+
NW,
|
|
35074
35114
|
L,
|
|
35075
|
-
|
|
35115
|
+
sW,
|
|
35076
35116
|
_,
|
|
35077
35117
|
q,
|
|
35078
35118
|
E,
|
|
35079
|
-
|
|
35080
|
-
|
|
35119
|
+
OW,
|
|
35120
|
+
tW
|
|
35081
35121
|
]);
|
|
35082
35122
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35083
35123
|
value: y
|
|
35084
35124
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35085
|
-
value:
|
|
35125
|
+
value: FW
|
|
35086
35126
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35087
|
-
value:
|
|
35127
|
+
value: PW
|
|
35088
35128
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35089
|
-
value:
|
|
35129
|
+
value: AW
|
|
35090
35130
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35091
35131
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35092
35132
|
})), import_react.createElement(Accessibility, {
|
|
35093
35133
|
...c,
|
|
35094
35134
|
hiddenTextDescribedById: q
|
|
35095
35135
|
}));
|
|
35096
|
-
function
|
|
35136
|
+
function IW() {
|
|
35097
35137
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35098
35138
|
return typeof l == "object" ? {
|
|
35099
35139
|
...l,
|
|
@@ -35621,7 +35661,7 @@ ${c}
|
|
|
35621
35661
|
updateMeasurementsFor: I,
|
|
35622
35662
|
...m
|
|
35623
35663
|
}
|
|
35624
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35664
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: $U, listeners: Z, isDragging: eW, over: tW, setActivatorNodeRef: nW, transform: rW } = useDraggable({
|
|
35625
35665
|
id: f,
|
|
35626
35666
|
data: M,
|
|
35627
35667
|
attributes: {
|
|
@@ -35629,60 +35669,60 @@ ${c}
|
|
|
35629
35669
|
...c
|
|
35630
35670
|
},
|
|
35631
35671
|
disabled: O.draggable
|
|
35632
|
-
}),
|
|
35672
|
+
}), iW = useCombinedRefs(B, $U), aW = !!H, oW = aW && !b && isValidIndex(v) && isValidIndex(w), sW = !T && eW, cW = oW ? (sW && oW ? rW : null) ?? (p ?? E)({
|
|
35633
35673
|
rects: S,
|
|
35634
35674
|
activeNodeRect: G,
|
|
35635
35675
|
activeIndex: v,
|
|
35636
35676
|
overIndex: w,
|
|
35637
35677
|
index: j
|
|
35638
|
-
}) : null,
|
|
35678
|
+
}) : null, lW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35639
35679
|
id: f,
|
|
35640
35680
|
items: g,
|
|
35641
35681
|
activeIndex: v,
|
|
35642
35682
|
overIndex: w
|
|
35643
|
-
}) : j,
|
|
35644
|
-
activeId:
|
|
35683
|
+
}) : j, uW = H == null ? void 0 : H.id, dW = (0, import_react.useRef)({
|
|
35684
|
+
activeId: uW,
|
|
35645
35685
|
items: g,
|
|
35646
|
-
newIndex:
|
|
35686
|
+
newIndex: lW,
|
|
35647
35687
|
containerId: _
|
|
35648
|
-
}),
|
|
35688
|
+
}), fW = g !== dW.current.items, pW = r({
|
|
35649
35689
|
active: H,
|
|
35650
35690
|
containerId: _,
|
|
35651
|
-
isDragging:
|
|
35652
|
-
isSorting:
|
|
35691
|
+
isDragging: eW,
|
|
35692
|
+
isSorting: aW,
|
|
35653
35693
|
id: f,
|
|
35654
35694
|
index: j,
|
|
35655
35695
|
items: g,
|
|
35656
|
-
newIndex:
|
|
35657
|
-
previousItems:
|
|
35658
|
-
previousContainerId:
|
|
35696
|
+
newIndex: dW.current.newIndex,
|
|
35697
|
+
previousItems: dW.current.items,
|
|
35698
|
+
previousContainerId: dW.current.containerId,
|
|
35659
35699
|
transition: h,
|
|
35660
|
-
wasDragging:
|
|
35661
|
-
}),
|
|
35662
|
-
disabled: !
|
|
35700
|
+
wasDragging: dW.current.activeId != null
|
|
35701
|
+
}), mW = useDerivedTransform({
|
|
35702
|
+
disabled: !pW,
|
|
35663
35703
|
index: j,
|
|
35664
35704
|
node: R,
|
|
35665
35705
|
rect: L
|
|
35666
35706
|
});
|
|
35667
35707
|
return (0, import_react.useEffect)(() => {
|
|
35668
|
-
|
|
35708
|
+
aW && dW.current.newIndex !== lW && (dW.current.newIndex = lW), _ !== dW.current.containerId && (dW.current.containerId = _), g !== dW.current.items && (dW.current.items = g);
|
|
35669
35709
|
}, [
|
|
35670
|
-
|
|
35671
|
-
|
|
35710
|
+
aW,
|
|
35711
|
+
lW,
|
|
35672
35712
|
_,
|
|
35673
35713
|
g
|
|
35674
35714
|
]), (0, import_react.useEffect)(() => {
|
|
35675
|
-
if (
|
|
35676
|
-
if (
|
|
35677
|
-
|
|
35715
|
+
if (uW === dW.current.activeId) return;
|
|
35716
|
+
if (uW != null && dW.current.activeId == null) {
|
|
35717
|
+
dW.current.activeId = uW;
|
|
35678
35718
|
return;
|
|
35679
35719
|
}
|
|
35680
35720
|
let e2 = setTimeout(() => {
|
|
35681
|
-
|
|
35721
|
+
dW.current.activeId = uW;
|
|
35682
35722
|
}, 50);
|
|
35683
35723
|
return () => clearTimeout(e2);
|
|
35684
35724
|
}, [
|
|
35685
|
-
|
|
35725
|
+
uW
|
|
35686
35726
|
]), {
|
|
35687
35727
|
active: H,
|
|
35688
35728
|
activeIndex: v,
|
|
@@ -35690,25 +35730,25 @@ ${c}
|
|
|
35690
35730
|
data: M,
|
|
35691
35731
|
rect: L,
|
|
35692
35732
|
index: j,
|
|
35693
|
-
newIndex:
|
|
35733
|
+
newIndex: lW,
|
|
35694
35734
|
items: g,
|
|
35695
35735
|
isOver: z,
|
|
35696
|
-
isSorting:
|
|
35697
|
-
isDragging:
|
|
35736
|
+
isSorting: aW,
|
|
35737
|
+
isDragging: eW,
|
|
35698
35738
|
listeners: Z,
|
|
35699
35739
|
node: R,
|
|
35700
35740
|
overIndex: w,
|
|
35701
|
-
over:
|
|
35702
|
-
setNodeRef:
|
|
35703
|
-
setActivatorNodeRef:
|
|
35741
|
+
over: tW,
|
|
35742
|
+
setNodeRef: iW,
|
|
35743
|
+
setActivatorNodeRef: nW,
|
|
35704
35744
|
setDroppableNodeRef: B,
|
|
35705
|
-
setDraggableNodeRef:
|
|
35706
|
-
transform:
|
|
35707
|
-
transition:
|
|
35745
|
+
setDraggableNodeRef: $U,
|
|
35746
|
+
transform: mW ?? cW,
|
|
35747
|
+
transition: hW()
|
|
35708
35748
|
};
|
|
35709
|
-
function
|
|
35710
|
-
if (
|
|
35711
|
-
if (!(
|
|
35749
|
+
function hW() {
|
|
35750
|
+
if (mW || fW && dW.current.newIndex === j) return disabledTransition;
|
|
35751
|
+
if (!(sW && !isKeyboardEvent(W) || !h) && (aW || pW)) return CSS$1.Transition.toString({
|
|
35712
35752
|
...h,
|
|
35713
35753
|
property: transitionProperty
|
|
35714
35754
|
});
|
|
@@ -36008,15 +36048,15 @@ ${c}
|
|
|
36008
36048
|
G
|
|
36009
36049
|
]
|
|
36010
36050
|
}), 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];
|
|
36011
|
-
let
|
|
36012
|
-
if (!v && !g) return
|
|
36051
|
+
let $U = q;
|
|
36052
|
+
if (!v && !g) return $U;
|
|
36013
36053
|
let Z;
|
|
36014
|
-
r[46] ===
|
|
36054
|
+
r[46] === $U ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36015
36055
|
asChild: true,
|
|
36016
|
-
children:
|
|
36017
|
-
}), r[46] =
|
|
36018
|
-
let
|
|
36019
|
-
r[48] === v ?
|
|
36056
|
+
children: $U
|
|
36057
|
+
}), r[46] = $U, r[47] = Z);
|
|
36058
|
+
let eW;
|
|
36059
|
+
r[48] === v ? eW = r[49] : (eW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36020
36060
|
onSelect: v,
|
|
36021
36061
|
children: [
|
|
36022
36062
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36024,11 +36064,11 @@ ${c}
|
|
|
36024
36064
|
}),
|
|
36025
36065
|
"Add cell"
|
|
36026
36066
|
]
|
|
36027
|
-
}), r[48] = v, r[49] =
|
|
36028
|
-
let
|
|
36029
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36030
|
-
let
|
|
36031
|
-
r[51] === g ?
|
|
36067
|
+
}), r[48] = v, r[49] = eW);
|
|
36068
|
+
let tW;
|
|
36069
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = tW) : tW = r[50];
|
|
36070
|
+
let rW;
|
|
36071
|
+
r[51] === g ? rW = r[52] : (rW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36032
36072
|
variant: "danger",
|
|
36033
36073
|
onSelect: g,
|
|
36034
36074
|
children: [
|
|
@@ -36037,22 +36077,22 @@ ${c}
|
|
|
36037
36077
|
}),
|
|
36038
36078
|
"Delete cell"
|
|
36039
36079
|
]
|
|
36040
|
-
}), r[51] = g, r[52] =
|
|
36041
|
-
let
|
|
36042
|
-
r[53] !==
|
|
36080
|
+
}), r[51] = g, r[52] = rW);
|
|
36081
|
+
let iW;
|
|
36082
|
+
r[53] !== eW || r[54] !== rW ? (iW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36043
36083
|
children: [
|
|
36044
|
-
|
|
36045
|
-
|
|
36046
|
-
|
|
36084
|
+
eW,
|
|
36085
|
+
tW,
|
|
36086
|
+
rW
|
|
36047
36087
|
]
|
|
36048
|
-
}), r[53] =
|
|
36049
|
-
let
|
|
36050
|
-
return r[56] !== Z || r[57] !==
|
|
36088
|
+
}), r[53] = eW, r[54] = rW, r[55] = iW) : iW = r[55];
|
|
36089
|
+
let aW;
|
|
36090
|
+
return r[56] !== Z || r[57] !== iW ? (aW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36051
36091
|
children: [
|
|
36052
36092
|
Z,
|
|
36053
|
-
|
|
36093
|
+
iW
|
|
36054
36094
|
]
|
|
36055
|
-
}), r[56] = Z, r[57] =
|
|
36095
|
+
}), r[56] = Z, r[57] = iW, r[58] = aW) : aW = r[58], aW;
|
|
36056
36096
|
}, InsertCellLine = (e) => {
|
|
36057
36097
|
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;
|
|
36058
36098
|
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);
|
|
@@ -36106,10 +36146,10 @@ ${c}
|
|
|
36106
36146
|
...B,
|
|
36107
36147
|
...h
|
|
36108
36148
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36109
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36110
|
-
r[25] !== l || r[26] !==
|
|
36111
|
-
let
|
|
36112
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36149
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", $U = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", eW;
|
|
36150
|
+
r[25] !== l || r[26] !== $U || r[27] !== Z || r[28] !== q ? (eW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, $U, Z, l), r[25] = l, r[26] = $U, r[27] = Z, r[28] = q, r[29] = eW) : eW = r[29];
|
|
36151
|
+
let tW;
|
|
36152
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (tW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36113
36153
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36114
36154
|
style: {
|
|
36115
36155
|
transform: `scale(${I})`,
|
|
@@ -36124,14 +36164,14 @@ ${c}
|
|
|
36124
36164
|
status: c.status,
|
|
36125
36165
|
output: c.output
|
|
36126
36166
|
})
|
|
36127
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36128
|
-
let
|
|
36129
|
-
r[37] === z ?
|
|
36167
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = tW) : tW = r[36];
|
|
36168
|
+
let nW;
|
|
36169
|
+
r[37] === z ? nW = r[38] : (nW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36130
36170
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36131
36171
|
"aria-hidden": true
|
|
36132
|
-
}), r[37] = z, r[38] =
|
|
36133
|
-
let
|
|
36134
|
-
r[39] !== z || r[40] !== R ? (
|
|
36172
|
+
}), r[37] = z, r[38] = nW);
|
|
36173
|
+
let rW;
|
|
36174
|
+
r[39] !== z || r[40] !== R ? (rW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36135
36175
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36136
36176
|
className: "text-xs opacity-80",
|
|
36137
36177
|
children: R.description
|
|
@@ -36143,19 +36183,19 @@ ${c}
|
|
|
36143
36183
|
className: "h-3.5 w-3.5"
|
|
36144
36184
|
})
|
|
36145
36185
|
})
|
|
36146
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36147
|
-
let
|
|
36148
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36186
|
+
}), r[39] = z, r[40] = R, r[41] = rW) : rW = r[41];
|
|
36187
|
+
let iW;
|
|
36188
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== eW || r[46] !== tW || r[47] !== nW || r[48] !== rW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36149
36189
|
ref: f,
|
|
36150
|
-
className:
|
|
36190
|
+
className: eW,
|
|
36151
36191
|
style: W,
|
|
36152
36192
|
...d,
|
|
36153
36193
|
children: [
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
|
|
36194
|
+
tW,
|
|
36195
|
+
nW,
|
|
36196
|
+
rW
|
|
36157
36197
|
]
|
|
36158
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36198
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = eW, r[46] = tW, r[47] = nW, r[48] = rW, r[49] = iW) : iW = r[49], iW;
|
|
36159
36199
|
}, MiniCodePreview = (e) => {
|
|
36160
36200
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36161
36201
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36195,7 +36235,7 @@ ${c}
|
|
|
36195
36235
|
function _temp2$2(e) {
|
|
36196
36236
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36197
36237
|
}
|
|
36198
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36238
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-ghVwQgXR.js"));
|
|
36199
36239
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36200
36240
|
var _a3;
|
|
36201
36241
|
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), [
|
|
@@ -36573,7 +36613,7 @@ ${c}
|
|
|
36573
36613
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36574
36614
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36575
36615
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36576
|
-
let H, W, G, q,
|
|
36616
|
+
let H, W, G, q, $U, Z, eW, tW, nW, rW;
|
|
36577
36617
|
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) {
|
|
36578
36618
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36579
36619
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36619,11 +36659,11 @@ ${c}
|
|
|
36619
36659
|
})
|
|
36620
36660
|
})
|
|
36621
36661
|
]
|
|
36622
|
-
}), 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",
|
|
36623
|
-
let
|
|
36624
|
-
r[40] !== M || r[41] !==
|
|
36662
|
+
}), 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", $U = c, Z = R, eW = 0;
|
|
36663
|
+
let iW2 = y && "marimo-output-stale", aW2 = L ? "p-5" : "p-3";
|
|
36664
|
+
r[40] !== M || r[41] !== iW2 || r[42] !== aW2 ? (tW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", iW2, aW2, M), r[40] = M, r[41] = iW2, r[42] = aW2, r[43] = tW) : tW = r[43], r[44] === d ? nW = r[45] : (nW = d ? {
|
|
36625
36665
|
maxHeight: "none"
|
|
36626
|
-
} : void 0, r[44] = d, r[45] =
|
|
36666
|
+
} : void 0, r[44] = d, r[45] = nW), rW = e2.map((e3, r2) => {
|
|
36627
36667
|
if (e3.channel === "pdb") return null;
|
|
36628
36668
|
if (e3.channel === "stdin") {
|
|
36629
36669
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36652,36 +36692,36 @@ ${c}
|
|
|
36652
36692
|
wrapText: l
|
|
36653
36693
|
})
|
|
36654
36694
|
}, r2);
|
|
36655
|
-
}), 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] =
|
|
36656
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36657
|
-
let
|
|
36658
|
-
r[46] !== T || r[47] !== S ? (
|
|
36695
|
+
}), 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] = $U, r[25] = Z, r[26] = eW, r[27] = tW, r[28] = nW, r[29] = rW;
|
|
36696
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], $U = r[24], Z = r[25], eW = r[26], tW = r[27], nW = r[28], rW = r[29];
|
|
36697
|
+
let iW;
|
|
36698
|
+
r[46] !== T || r[47] !== S ? (iW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36659
36699
|
value: S,
|
|
36660
36700
|
cellId: T,
|
|
36661
36701
|
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"
|
|
36662
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36663
|
-
let
|
|
36664
|
-
r[49] !==
|
|
36702
|
+
}), r[46] = T, r[47] = S, r[48] = iW) : iW = r[48];
|
|
36703
|
+
let aW;
|
|
36704
|
+
r[49] !== iW || r[50] !== G || r[51] !== q || r[52] !== $U || r[53] !== Z || r[54] !== eW || r[55] !== tW || r[56] !== nW || r[57] !== rW ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36665
36705
|
title: G,
|
|
36666
36706
|
"data-testid": q,
|
|
36667
|
-
ref:
|
|
36707
|
+
ref: $U,
|
|
36668
36708
|
...Z,
|
|
36669
|
-
tabIndex:
|
|
36670
|
-
className:
|
|
36671
|
-
style:
|
|
36709
|
+
tabIndex: eW,
|
|
36710
|
+
className: tW,
|
|
36711
|
+
style: nW,
|
|
36672
36712
|
children: [
|
|
36673
|
-
|
|
36674
|
-
|
|
36713
|
+
rW,
|
|
36714
|
+
iW
|
|
36675
36715
|
]
|
|
36676
|
-
}), r[49] =
|
|
36677
|
-
let
|
|
36678
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36716
|
+
}), r[49] = iW, r[50] = G, r[51] = q, r[52] = $U, r[53] = Z, r[54] = eW, r[55] = tW, r[56] = nW, r[57] = rW, r[58] = aW) : aW = r[58];
|
|
36717
|
+
let oW;
|
|
36718
|
+
return r[59] !== H || r[60] !== W || r[61] !== aW ? (oW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36679
36719
|
className: H,
|
|
36680
36720
|
children: [
|
|
36681
36721
|
W,
|
|
36682
|
-
|
|
36722
|
+
aW
|
|
36683
36723
|
]
|
|
36684
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36724
|
+
}), r[59] = H, r[60] = W, r[61] = aW, r[62] = oW) : oW = r[62], oW;
|
|
36685
36725
|
}, StdInput = (e) => {
|
|
36686
36726
|
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;
|
|
36687
36727
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -36854,7 +36894,7 @@ ${c}
|
|
|
36854
36894
|
const VerticalLayoutWrapper = (e) => {
|
|
36855
36895
|
let r = (0, import_compiler_runtime$4.c)(15), { invisible: c, appConfig: l, className: u, children: d, innerClassName: f } = e, m;
|
|
36856
36896
|
r[0] === u ? m = r[1] : (m = cn("px-1 sm:px-16 md:px-20 xl:px-24 print:px-0 print:pb-0", "pb-24 sm:pb-12", u), r[0] = u, r[1] = m);
|
|
36857
|
-
let h = l.width === "compact" && "max-w-(--content-width) min-w-[400px]", g = l.width === "medium" && "max-w-(--content-width-medium) min-w-[400px]", _ = l.width === "columns" && "w-fit", v = l.width === "full" && "max-w-full", y = c && "invisible", b;
|
|
36897
|
+
let h = l.width === "compact" && "max-w-(--content-width) sm:min-w-[400px]", g = l.width === "medium" && "max-w-(--content-width-medium) sm:min-w-[400px]", _ = l.width === "columns" && "w-fit", v = l.width === "full" && "max-w-full", y = c && "invisible", b;
|
|
36858
36898
|
r[2] !== f || r[3] !== h || r[4] !== g || r[5] !== _ || r[6] !== v || r[7] !== y ? (b = cn("m-auto", "pb-24 sm:pb-12", h, g, _, v, y, f), r[2] = f, r[3] = h, r[4] = g, r[5] = _, r[6] = v, r[7] = y, r[8] = b) : b = r[8];
|
|
36859
36899
|
let S;
|
|
36860
36900
|
r[9] !== d || r[10] !== b ? (S = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -37145,23 +37185,23 @@ ${c}
|
|
|
37145
37185
|
if ((h || _ || m || W) && !G) return null;
|
|
37146
37186
|
let q;
|
|
37147
37187
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37148
|
-
let
|
|
37149
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37150
|
-
allowExpand:
|
|
37188
|
+
let $U = w === "edit", Z;
|
|
37189
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== $U ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37190
|
+
allowExpand: $U,
|
|
37151
37191
|
output: c,
|
|
37152
37192
|
className: CSSClasses.outputArea,
|
|
37153
37193
|
cellId: d,
|
|
37154
37194
|
stale: I,
|
|
37155
37195
|
loading: R
|
|
37156
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37157
|
-
let
|
|
37158
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37196
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = $U, r[51] = Z) : Z = r[51];
|
|
37197
|
+
let eW;
|
|
37198
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
37159
37199
|
tabIndex: -1,
|
|
37160
37200
|
ref: j,
|
|
37161
37201
|
className: H,
|
|
37162
37202
|
...q,
|
|
37163
37203
|
children: Z
|
|
37164
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37204
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = eW) : eW = r[55], eW;
|
|
37165
37205
|
});
|
|
37166
37206
|
VerticalCell.displayName = "VerticalCell";
|
|
37167
37207
|
const VerticalLayoutPlugin = {
|
|
@@ -37390,8 +37430,10 @@ ${c}
|
|
|
37390
37430
|
}
|
|
37391
37431
|
};
|
|
37392
37432
|
function parseMarimoIslandApps(e = document) {
|
|
37393
|
-
let r =
|
|
37394
|
-
|
|
37433
|
+
let r = [
|
|
37434
|
+
...e.querySelectorAll(ISLAND_TAG_NAMES.ISLAND)
|
|
37435
|
+
], c = parseMarimoIslandPayloads(e);
|
|
37436
|
+
return r.length === 0 ? (Logger.warn("No embedded marimo apps found."), []) : c.length > 0 ? parsePayloadBackedApps(r, c) : parseIslandElementsIntoApps(r);
|
|
37395
37437
|
}
|
|
37396
37438
|
function parseIslandElementsIntoApps(e) {
|
|
37397
37439
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -37407,11 +37449,12 @@ ${c}
|
|
|
37407
37449
|
Logger.warn(`Embedded marimo app ${e2} missing cell output or code.`);
|
|
37408
37450
|
continue;
|
|
37409
37451
|
}
|
|
37410
|
-
|
|
37452
|
+
let u = r.get(e2);
|
|
37453
|
+
u || (u = {
|
|
37411
37454
|
id: e2,
|
|
37412
37455
|
cells: []
|
|
37413
|
-
});
|
|
37414
|
-
let
|
|
37456
|
+
}, r.set(e2, u));
|
|
37457
|
+
let f = u.cells.length;
|
|
37415
37458
|
u.cells.push({
|
|
37416
37459
|
output: l.output,
|
|
37417
37460
|
code: l.code,
|
|
@@ -37422,6 +37465,68 @@ ${c}
|
|
|
37422
37465
|
...r.values()
|
|
37423
37466
|
];
|
|
37424
37467
|
}
|
|
37468
|
+
function parsePayloadBackedApps(e, r) {
|
|
37469
|
+
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = [];
|
|
37470
|
+
for (let c2 of r) {
|
|
37471
|
+
let r2 = false;
|
|
37472
|
+
for (let d2 of c2.cells) {
|
|
37473
|
+
let f2 = findMatchingIsland({
|
|
37474
|
+
embeds: e,
|
|
37475
|
+
appId: c2.appId,
|
|
37476
|
+
cell: d2,
|
|
37477
|
+
consumedEmbeds: u
|
|
37478
|
+
});
|
|
37479
|
+
f2 && (u.add(f2), l.set(d2, f2), materializeIslandPayload(f2, d2), r2 = true);
|
|
37480
|
+
}
|
|
37481
|
+
r2 && d.push(c2);
|
|
37482
|
+
}
|
|
37483
|
+
let f = new Set(d.map((e2) => e2.appId)), p = new Set(d.filter((e2) => e2.cells.some((e3) => e3.reactive)).map((e2) => e2.appId));
|
|
37484
|
+
for (let e2 of d) for (let r2 of e2.cells) {
|
|
37485
|
+
let u2 = l.get(r2);
|
|
37486
|
+
if (!p.has(e2.appId)) continue;
|
|
37487
|
+
let d2 = c.get(e2.appId);
|
|
37488
|
+
d2 || (d2 = {
|
|
37489
|
+
id: e2.appId,
|
|
37490
|
+
payloadBacked: true,
|
|
37491
|
+
cells: []
|
|
37492
|
+
}, c.set(e2.appId, d2));
|
|
37493
|
+
let f2 = d2.cells.length, m2 = {
|
|
37494
|
+
cellId: r2.cellId,
|
|
37495
|
+
output: r2.outputHtml,
|
|
37496
|
+
code: r2.reactive ? r2.code : "",
|
|
37497
|
+
idx: f2
|
|
37498
|
+
};
|
|
37499
|
+
r2.reactive || (m2.disabled = true), d2.cells.push(m2), r2.reactive && (u2 == null ? void 0 : u2.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, f2.toString()));
|
|
37500
|
+
}
|
|
37501
|
+
for (let r2 of e) {
|
|
37502
|
+
let e2 = r2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
37503
|
+
e2 && f.has(e2) && !u.has(r2) && (r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX), r2.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, "false"));
|
|
37504
|
+
}
|
|
37505
|
+
let m = e.filter((e2) => {
|
|
37506
|
+
let r2 = e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
37507
|
+
return !r2 || !f.has(r2);
|
|
37508
|
+
});
|
|
37509
|
+
return [
|
|
37510
|
+
...c.values(),
|
|
37511
|
+
...parseIslandElementsIntoApps(m)
|
|
37512
|
+
];
|
|
37513
|
+
}
|
|
37514
|
+
function findMatchingIsland({ embeds: e, appId: r, cell: c, consumedEmbeds: l }) {
|
|
37515
|
+
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);
|
|
37516
|
+
}
|
|
37517
|
+
function materializeIslandPayload(e, r) {
|
|
37518
|
+
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);
|
|
37519
|
+
let c = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_OUTPUT);
|
|
37520
|
+
c.innerHTML = r.displayOutput ? r.outputHtml : "";
|
|
37521
|
+
let l = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_CODE);
|
|
37522
|
+
l.hidden = true, l.textContent = encodeURIComponent(r.code);
|
|
37523
|
+
let u = e.querySelector(ISLAND_TAG_NAMES.CODE_EDITOR);
|
|
37524
|
+
u && u.setAttribute("data-initial-value", JSON.stringify(r.code));
|
|
37525
|
+
}
|
|
37526
|
+
function ensureIslandChild(e, r) {
|
|
37527
|
+
let c = e.querySelector(r);
|
|
37528
|
+
return c || (c = e.ownerDocument.createElement(r), e.appendChild(c)), c;
|
|
37529
|
+
}
|
|
37425
37530
|
function parseIslandElement(e) {
|
|
37426
37531
|
let r = e.querySelector(ISLAND_TAG_NAMES.CELL_OUTPUT), c = extractIslandCodeFromEmbed(e);
|
|
37427
37532
|
return !r || !c ? null : {
|
|
@@ -37434,10 +37539,10 @@ ${c}
|
|
|
37434
37539
|
"import marimo",
|
|
37435
37540
|
"app = marimo.App()",
|
|
37436
37541
|
e.cells.map((e2) => {
|
|
37437
|
-
let r = e2.code.split("\n").map((e3) => ` ${e3}`).join("\n");
|
|
37438
|
-
return
|
|
37439
|
-
${
|
|
37440
|
-
${
|
|
37542
|
+
let r = e2.disabled ? "" : e2.code, c = r ? r.split("\n").map((e3) => ` ${e3}`).join("\n") : " pass", l = c.includes("await ") ? "async def" : "def";
|
|
37543
|
+
return `${e2.disabled ? "@app.cell(disabled=True)" : "@app.cell"}
|
|
37544
|
+
${l} __():
|
|
37545
|
+
${c}
|
|
37441
37546
|
return`;
|
|
37442
37547
|
}).join("\n")
|
|
37443
37548
|
].join("\n");
|
|
@@ -37460,6 +37565,34 @@ ${r}
|
|
|
37460
37565
|
let c = e.querySelector(ISLAND_TAG_NAMES.CODE_EDITOR);
|
|
37461
37566
|
return c ? parseIslandEditor(c.getAttribute("data-initial-value")) : "";
|
|
37462
37567
|
}
|
|
37568
|
+
function parseMarimoIslandPayloads(e) {
|
|
37569
|
+
let r = e.querySelectorAll('script[type="application/vnd.marimo.islands+json"]'), c = [];
|
|
37570
|
+
for (let e2 of r) {
|
|
37571
|
+
if (isNestedIslandPayloadScript(e2)) continue;
|
|
37572
|
+
let r2 = parseMarimoIslandPayload(e2.textContent);
|
|
37573
|
+
r2 && c.push(r2);
|
|
37574
|
+
}
|
|
37575
|
+
return c;
|
|
37576
|
+
}
|
|
37577
|
+
function isNestedIslandPayloadScript(e) {
|
|
37578
|
+
return !!(e.closest(ISLAND_TAG_NAMES.ISLAND) || e.closest(ISLAND_TAG_NAMES.CELL_OUTPUT));
|
|
37579
|
+
}
|
|
37580
|
+
function parseMarimoIslandPayload(e) {
|
|
37581
|
+
if (!e) return null;
|
|
37582
|
+
try {
|
|
37583
|
+
let r = JSON.parse(e);
|
|
37584
|
+
if (isMarimoIslandPayload(r)) return r;
|
|
37585
|
+
} catch {
|
|
37586
|
+
return null;
|
|
37587
|
+
}
|
|
37588
|
+
return null;
|
|
37589
|
+
}
|
|
37590
|
+
function isMarimoIslandPayload(e) {
|
|
37591
|
+
return isRecord(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(isMarimoIslandPayloadCell) : false;
|
|
37592
|
+
}
|
|
37593
|
+
function isMarimoIslandPayloadCell(e) {
|
|
37594
|
+
return isRecord(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : false;
|
|
37595
|
+
}
|
|
37463
37596
|
var import_compiler_runtime$2 = require_compiler_runtime(), IconButton = (e) => {
|
|
37464
37597
|
let r = (0, import_compiler_runtime$2.c)(6), { tooltip: c, icon: l, action: u } = e, d;
|
|
37465
37598
|
r[0] !== u || r[1] !== l ? (d = (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -38205,10 +38338,10 @@ ${r}
|
|
|
38205
38338
|
});
|
|
38206
38339
|
}
|
|
38207
38340
|
startSessionsForAllApps() {
|
|
38208
|
-
var _a3;
|
|
38341
|
+
var _a3, _b3;
|
|
38209
38342
|
let e = parseMarimoIslandApps(this.root);
|
|
38210
38343
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
38211
|
-
let r = (
|
|
38344
|
+
let r = (_b3 = e.length === 1 && !((_a3 = e[0]) == null ? void 0 : _a3.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
38212
38345
|
for (let c of e) {
|
|
38213
38346
|
let e2 = r || createMarimoFile(c);
|
|
38214
38347
|
Logger.debug(`App ${c.id} marimo file:
|