@marimo-team/islands 0.23.14-dev43 → 0.23.14-dev45
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-CO8WuXGb.js → chat-ui-DXPRhRO2.js} +3132 -3132
- package/dist/{code-visibility-BCkKHNom.js → code-visibility-D-7iipEs.js} +717 -708
- package/dist/{html-to-image-DLSOS-bE.js → html-to-image-DOqQBSQc.js} +2236 -2208
- package/dist/main.js +252 -248
- package/dist/{process-output-B9ysqk1y.js → process-output-kGk2Jc2x.js} +1 -1
- package/dist/{reveal-component-CD1M60a6.js → reveal-component-BrJ-d3iB.js} +2 -2
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +1 -0
- package/src/components/app-config/user-config-form.tsx +26 -0
- package/src/components/debugger/debugger-code.tsx +7 -2
- package/src/components/editor/notebook-cell.tsx +7 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +18 -1
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/cell.ts +5 -3
- package/src/core/codemirror/cells/debugger-decorations.ts +188 -0
- package/src/core/codemirror/cells/debugger-state.ts +92 -0
- package/src/core/codemirror/cells/extensions.ts +22 -0
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +2 -0
- package/src/core/wasm/bridge.ts +4 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
- package/src/plugins/core/RenderHTML.tsx +35 -1
- package/src/plugins/core/__test__/RenderHTML.test.ts +44 -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, $t as
|
|
25
|
+
import { $ as reducer, $t as getRequestClient, A as ChevronDownIcon, An as Trigger2, At as Paths, Bn as FileText, C as Accordion, Cn as atomWithStorage, Ct as isInternalCellName, D as BorderAllIcon, Dn as Content2, Dt as MarkdownLanguageAdapter, E as AccordionTrigger, Et as customPythonLanguageSupport, Ft as generateUUID, G as hasRunAnyCellAtom, Gt as PluralWords, H as renderHTML, Ht as SQLParser, I as base64ToDataView, J as getCellNames, Jt as require_client, K as createActions, Kn as CircleAlert, Kt as DATA_TYPE_ICON, Ln as LoaderCircle, Mn as Trash2, Nn as Table2, On as Item$1, Pn as PaintRoller, Pt as DeferredRequestRegistry, Q as numColumnsAtom, Qt as convertStatsName, R as dataViewToBase64, Rn as Layers, Rt as jotaiJsonStorage, Sn as atomWithReducer, St as getValidName, T as AccordionItem, Tt as Checkbox, U as getMarimoExportContext, Un as Database, Ut as MarkdownParser, V as safeExtractSetUIElementMessageBuffers, Vn as Eye, Vt as repl, W as hasTrustedExportContext, Wn as Columns2, X as notebookAtom, Y as hasOnlyOneCellAtom, Z as notebookOutline, _n as findCellId, _t as headingToIdentifier, a as useCellFocusActions, bn as jsonParseWithSpecialChar, ct as initialModeAtom, dn as parseDataset, en as requestClientAtom, et as useCellActions, f as isOutputEmpty, fn as parseInitialValue, ft as outputIsLoading, gn as UIElementId, i as LazyAnyLanguageCodeMirror, kn as Root2$1, kt as PathBuilder, lt as kioskModeAtom, mn as HTMLCellId, mt as isErrorMime, n as Spinner, nn as isUninstantiated, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pt as outputIsStale, qn as Braces, rt as createCell, s as maybeAddAltairImport, sn as NotebookScopedLocalStorage, st as getInitialAppMode, tn as useRequestClient, tt as useCellIds, un as parseAttrValue, vn as OBJECT_ID_ATTR, w as AccordionContent, wn as selectAtom, wt as normalizeName, yn as RANDOM_ID_ATTR, zn as Info, __tla as __tla_0 } from "./html-to-image-DOqQBSQc.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-CnTgI25l.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-D-7iipEs.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.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-BSdZp5Ng.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-D1Z7ZXWh.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-kGk2Jc2x.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";
|
|
@@ -7000,7 +7000,7 @@ let __tla = Promise.all([
|
|
|
7000
7000
|
}), H = U(), W = U(), G = C(0), q = C(null), bW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7003
|
+
}), Z = U(), xW = U(), SW = C(false), CW = C(0), wW = C(true), TW = C(false), EW = C(false);
|
|
7004
7004
|
Y(x(b, $(CW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
7005
|
D(wW, false);
|
|
7006
7006
|
}), Y(x(ut(b, wW, B, z, CW, TW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
@@ -7012,7 +7012,7 @@ let __tla = Promise.all([
|
|
|
7012
7012
|
0
|
|
7013
7013
|
]), D(wW, true);
|
|
7014
7014
|
});
|
|
7015
|
-
}), F(x(
|
|
7015
|
+
}), F(x(xW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(xW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
7016
|
e2 && (D(z, e2.viewport), D(B, e2.item), D(bW, e2.gap), e2.scrollTop > 0 && (D(SW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
7017
|
D(SW, false);
|
|
7018
7018
|
}), D(m, {
|
|
@@ -7023,7 +7023,7 @@ let __tla = Promise.all([
|
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), Z), F(x(ut(V(I), l, V(bW, Or), V(B, xe), V(z, xe), V(q), V(L), V(SW), V(wW), V(CW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7082,7 +7082,7 @@ let __tla = Promise.all([
|
|
|
7082
7082
|
initialItemCount: L,
|
|
7083
7083
|
itemDimensions: B,
|
|
7084
7084
|
overscan: c,
|
|
7085
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: xW,
|
|
7086
7086
|
scrollBy: f,
|
|
7087
7087
|
scrollContainerState: p,
|
|
7088
7088
|
scrollHeight: W,
|
|
@@ -7106,7 +7106,7 @@ let __tla = Promise.all([
|
|
|
7106
7106
|
propsReady: S,
|
|
7107
7107
|
rangeChanged: AW,
|
|
7108
7108
|
startReached: kW,
|
|
7109
|
-
stateChanged:
|
|
7109
|
+
stateChanged: Z,
|
|
7110
7110
|
stateRestoreInProgress: SW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let bW = q,
|
|
7388
|
+
let bW = q, Z;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], Z.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7398
|
-
let
|
|
7399
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = Z;
|
|
7397
|
+
} else Z = r[14];
|
|
7398
|
+
let xW;
|
|
7399
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (xW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7402
|
-
let SW =
|
|
7403
|
-
r[19] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = xW) : xW = r[18];
|
|
7402
|
+
let SW = xW, CW;
|
|
7403
|
+
r[19] !== Z || r[20] !== G || r[21] !== SW || r[22] !== w || r[23] !== B || r[24] !== H ? (CW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,7 +7412,7 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7415
|
+
e3 === 0 && Z,
|
|
7416
7416
|
SW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
@@ -7438,11 +7438,11 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
Z,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7445
|
+
}, r[19] = Z, r[20] = G, r[21] = SW, r[22] = w, r[23] = B, r[24] = H, r[25] = CW) : CW = r[25];
|
|
7446
7446
|
let wW = CW, TW;
|
|
7447
7447
|
r[26] !== G.labelOf || r[27] !== I ? (TW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
@@ -8594,7 +8594,7 @@ let __tla = Promise.all([
|
|
|
8594
8594
|
};
|
|
8595
8595
|
}
|
|
8596
8596
|
};
|
|
8597
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8597
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-DXPRhRO2.js").then((e) => ({
|
|
8598
8598
|
default: e.Chatbot
|
|
8599
8599
|
}))), messageSchema = array(object({
|
|
8600
8600
|
id: string(),
|
|
@@ -9803,12 +9803,12 @@ let __tla = Promise.all([
|
|
|
9803
9803
|
})));
|
|
9804
9804
|
}
|
|
9805
9805
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && wW(e2);
|
|
9806
|
-
},
|
|
9806
|
+
}, Z = (e2, r2, c2) => {
|
|
9807
9807
|
for (let u2 in r2) {
|
|
9808
9808
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9809
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9809
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : bW(f2, d2, c2);
|
|
9810
9810
|
}
|
|
9811
|
-
},
|
|
9811
|
+
}, xW = (e2, r2, m2 = {}) => {
|
|
9812
9812
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9813
9813
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9814
9814
|
name: e2,
|
|
@@ -9819,7 +9819,7 @@ let __tla = Promise.all([
|
|
|
9819
9819
|
name: e2,
|
|
9820
9820
|
dirtyFields: getDirtyFields(u, d),
|
|
9821
9821
|
isDirty: W(e2, y2)
|
|
9822
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9822
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : bW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9823
9823
|
...c
|
|
9824
9824
|
}), _.values.next({
|
|
9825
9825
|
name: f.mount ? e2 : void 0,
|
|
@@ -10030,7 +10030,7 @@ let __tla = Promise.all([
|
|
|
10030
10030
|
errors: c.errors
|
|
10031
10031
|
}), m2) throw m2;
|
|
10032
10032
|
}, IW = (e2, r2 = {}) => {
|
|
10033
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10033
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? xW(e2, cloneObject(get(u, e2))) : (xW(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({
|
|
10034
10034
|
...c
|
|
10035
10035
|
}));
|
|
10036
10036
|
}, LW = (e2, m2 = {}) => {
|
|
@@ -10041,7 +10041,7 @@ let __tla = Promise.all([
|
|
|
10041
10041
|
...p.mount,
|
|
10042
10042
|
...Object.keys(getDirtyFields(u, d))
|
|
10043
10043
|
]);
|
|
10044
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10044
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : xW(r2, get(b2, r2));
|
|
10045
10045
|
} else {
|
|
10046
10046
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10047
10047
|
let r2 = get(l, e3);
|
|
@@ -10159,7 +10159,7 @@ let __tla = Promise.all([
|
|
|
10159
10159
|
register: MW,
|
|
10160
10160
|
handleSubmit: FW,
|
|
10161
10161
|
watch: kW,
|
|
10162
|
-
setValue:
|
|
10162
|
+
setValue: xW,
|
|
10163
10163
|
getValues: TW,
|
|
10164
10164
|
reset: RW,
|
|
10165
10165
|
resetField: IW,
|
|
@@ -15898,11 +15898,11 @@ ${c}
|
|
|
15898
15898
|
_.pageSize,
|
|
15899
15899
|
_.pageIndex
|
|
15900
15900
|
], 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];
|
|
15901
|
-
let { data: W, error: G, isPending: q, isFetching: bW } = useAsyncData(z, H),
|
|
15902
|
-
r[48] !==
|
|
15901
|
+
let { data: W, error: G, isPending: q, isFetching: bW } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), xW;
|
|
15902
|
+
r[48] !== Z || r[49] !== e ? (xW = 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] = xW) : xW = r[50];
|
|
15903
15903
|
let SW = e.showDownload, CW = e.get_size_bytes, wW = e.lazy, TW = e.totalRows, EW = useDeepCompareMemoize(w), DW = useDeepCompareMemoize(m), OW;
|
|
15904
|
-
r[51] !==
|
|
15905
|
-
|
|
15904
|
+
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] !== EW || r[58] !== DW ? (OW = [
|
|
15905
|
+
Z,
|
|
15906
15906
|
SW,
|
|
15907
15907
|
CW,
|
|
15908
15908
|
wW,
|
|
@@ -15910,8 +15910,8 @@ ${c}
|
|
|
15910
15910
|
y,
|
|
15911
15911
|
EW,
|
|
15912
15912
|
DW
|
|
15913
|
-
], r[51] =
|
|
15914
|
-
let { data: kW, isPending: AW } = useAsyncData(
|
|
15913
|
+
], 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] = EW, r[58] = DW, r[59] = OW) : OW = r[59];
|
|
15914
|
+
let { data: kW, isPending: AW } = useAsyncData(xW, OW), jW = kW ?? null, MW = !!Z && e.showDownload && AW, NW;
|
|
15915
15915
|
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (NW = async (e2) => ({
|
|
15916
15916
|
rows: await loadTableData((await u({
|
|
15917
15917
|
page_number: e2,
|
|
@@ -16034,7 +16034,7 @@ ${c}
|
|
|
16034
16034
|
}), r[116] = WW, r[117] = tG, r[118] = nG) : nG = r[118], nG;
|
|
16035
16035
|
});
|
|
16036
16036
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16037
|
-
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: bW, setFilters:
|
|
16037
|
+
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: bW, setFilters: Z, reloading: xW, freezeColumnsLeft: SW, freezeColumnsRight: CW, hiddenColumns: wW, textJustifyColumns: TW, wrappedColumns: EW, columnWidths: DW, headerTooltip: OW, totalColumns: kW, get_row_ids: AW, cellStyles: jW, hoverTemplate: MW, cellHoverTexts: NW, toggleDisplayHeader: PW, isChartBuilderOpen: FW, calculate_top_k_rows: IW, preview_column: LW, getRow: RW, cellId: zW, maxHeight: BW }) => {
|
|
16038
16038
|
let VW = (0, import_react.useId)(), { locale: HW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [UW, WW] = (0, import_react.useState)(0), { isPanelOpen: GW, isAnyPanelOpen: KW, togglePanel: qW, panelType: JW, setPanelType: YW } = usePanelOwnership(VW, zW), XW = isStaticNotebook(), ZW = (0, import_react.useMemo)(() => {
|
|
16039
16039
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16040
16040
|
let e2 = toFieldTypes(O);
|
|
@@ -16233,9 +16233,9 @@ ${c}
|
|
|
16233
16233
|
onSearchQueryChange: q,
|
|
16234
16234
|
showFilters: g,
|
|
16235
16235
|
filters: bW,
|
|
16236
|
-
onFiltersChange:
|
|
16236
|
+
onFiltersChange: Z,
|
|
16237
16237
|
calculateTopKRows: IW,
|
|
16238
|
-
reloading:
|
|
16238
|
+
reloading: xW,
|
|
16239
16239
|
onRowSelectionChange: uG,
|
|
16240
16240
|
freezeColumnsLeft: SW,
|
|
16241
16241
|
freezeColumnsRight: CW,
|
|
@@ -18304,12 +18304,12 @@ ${c}
|
|
|
18304
18304
|
], r[2] = S, r[3] = w);
|
|
18305
18305
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18306
18306
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18307
|
-
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, bW] = (0, import_react.useState)(f || EMPTY),
|
|
18308
|
-
r[6] === d ?
|
|
18307
|
+
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, bW] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), xW;
|
|
18308
|
+
r[6] === d ? xW = r[7] : (xW = (e2) => {
|
|
18309
18309
|
var _a3;
|
|
18310
|
-
d && e2 !== "transform" && ((_a3 =
|
|
18311
|
-
}, r[6] = d, r[7] =
|
|
18312
|
-
let SW =
|
|
18310
|
+
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
18311
|
+
}, r[6] = d, r[7] = xW);
|
|
18312
|
+
let SW = xW, CW = (0, import_react.useRef)(q), wW;
|
|
18313
18313
|
r[8] === q ? wW = r[9] : (wW = () => {
|
|
18314
18314
|
CW.current = q;
|
|
18315
18315
|
}, r[8] = q, r[9] = wW), (0, import_react.useEffect)(wW);
|
|
@@ -18358,53 +18358,53 @@ ${c}
|
|
|
18358
18358
|
"SQL Code"
|
|
18359
18359
|
]
|
|
18360
18360
|
}), r[20] = W, r[21] = AW);
|
|
18361
|
-
let
|
|
18362
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18361
|
+
let jW;
|
|
18362
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)("div", {
|
|
18363
18363
|
className: "grow"
|
|
18364
|
-
}), r[22] =
|
|
18365
|
-
let
|
|
18366
|
-
r[23] !== kW || r[24] !== AW ? (
|
|
18364
|
+
}), r[22] = jW) : jW = r[22];
|
|
18365
|
+
let MW;
|
|
18366
|
+
r[23] !== kW || r[24] !== AW ? (MW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18367
18367
|
className: "h-8",
|
|
18368
18368
|
children: [
|
|
18369
18369
|
OW,
|
|
18370
18370
|
kW,
|
|
18371
18371
|
AW,
|
|
18372
|
-
|
|
18372
|
+
jW
|
|
18373
18373
|
]
|
|
18374
|
-
}), r[23] = kW, r[24] = AW, r[25] =
|
|
18375
|
-
let
|
|
18376
|
-
r[26] === j ?
|
|
18374
|
+
}), r[23] = kW, r[24] = AW, r[25] = MW) : MW = r[25];
|
|
18375
|
+
let NW;
|
|
18376
|
+
r[26] === j ? NW = r[27] : (NW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18377
18377
|
size: "small"
|
|
18378
|
-
}), r[26] = j, r[27] =
|
|
18379
|
-
let
|
|
18380
|
-
r[28] !==
|
|
18378
|
+
}), r[26] = j, r[27] = NW);
|
|
18379
|
+
let PW;
|
|
18380
|
+
r[28] !== MW || r[29] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18381
18381
|
className: "flex items-center gap-2",
|
|
18382
18382
|
children: [
|
|
18383
|
-
|
|
18384
|
-
|
|
18383
|
+
MW,
|
|
18384
|
+
NW
|
|
18385
18385
|
]
|
|
18386
|
-
}), r[28] =
|
|
18387
|
-
let
|
|
18388
|
-
r[31] !== p || r[32] !== f ? (
|
|
18386
|
+
}), r[28] = MW, r[29] = NW, r[30] = PW) : PW = r[30];
|
|
18387
|
+
let FW;
|
|
18388
|
+
r[31] !== p || r[32] !== f ? (FW = (e2) => {
|
|
18389
18389
|
dequal(e2, f) || (p(e2), bW(e2));
|
|
18390
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
18391
|
-
let
|
|
18392
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
18390
|
+
}, r[31] = p, r[32] = f, r[33] = FW) : FW = r[33];
|
|
18391
|
+
let IW;
|
|
18392
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== FW ? (IW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18393
18393
|
value: "transform",
|
|
18394
18394
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18395
18395
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18396
|
-
ref:
|
|
18396
|
+
ref: Z,
|
|
18397
18397
|
initialValue: q,
|
|
18398
18398
|
columns: c,
|
|
18399
|
-
onChange:
|
|
18399
|
+
onChange: FW,
|
|
18400
18400
|
onInvalidChange: bW,
|
|
18401
18401
|
getColumnValues: h,
|
|
18402
18402
|
columnTypesPerStep: B,
|
|
18403
18403
|
lazy: d
|
|
18404
18404
|
})
|
|
18405
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18406
|
-
let
|
|
18407
|
-
r[41] === H ?
|
|
18405
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = FW, r[40] = IW) : IW = r[40];
|
|
18406
|
+
let LW;
|
|
18407
|
+
r[41] === H ? LW = r[42] : (LW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18408
18408
|
value: "python-code",
|
|
18409
18409
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18410
18410
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18413,9 +18413,9 @@ ${c}
|
|
|
18413
18413
|
code: H,
|
|
18414
18414
|
language: "python"
|
|
18415
18415
|
})
|
|
18416
|
-
}), r[41] = H, r[42] =
|
|
18417
|
-
let
|
|
18418
|
-
r[43] === W ?
|
|
18416
|
+
}), r[41] = H, r[42] = LW);
|
|
18417
|
+
let RW;
|
|
18418
|
+
r[43] === W ? RW = r[44] : (RW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18419
18419
|
value: "sql-code",
|
|
18420
18420
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18421
18421
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18424,35 +18424,35 @@ ${c}
|
|
|
18424
18424
|
code: W,
|
|
18425
18425
|
language: "sql"
|
|
18426
18426
|
})
|
|
18427
|
-
}), r[43] = W, r[44] =
|
|
18428
|
-
let
|
|
18429
|
-
r[45] !== SW || r[46] !==
|
|
18427
|
+
}), r[43] = W, r[44] = RW);
|
|
18428
|
+
let zW;
|
|
18429
|
+
r[45] !== SW || r[46] !== PW || r[47] !== IW || r[48] !== LW || r[49] !== RW ? (zW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18430
18430
|
defaultValue: "transform",
|
|
18431
18431
|
onValueChange: SW,
|
|
18432
18432
|
children: [
|
|
18433
|
-
|
|
18433
|
+
PW,
|
|
18434
|
+
IW,
|
|
18434
18435
|
LW,
|
|
18435
|
-
RW
|
|
18436
|
-
zW
|
|
18436
|
+
RW
|
|
18437
18437
|
]
|
|
18438
|
-
}), r[45] = SW, r[46] =
|
|
18439
|
-
let
|
|
18440
|
-
r[51] === O ?
|
|
18438
|
+
}), r[45] = SW, r[46] = PW, r[47] = IW, r[48] = LW, r[49] = RW, r[50] = zW) : zW = r[50];
|
|
18439
|
+
let BW;
|
|
18440
|
+
r[51] === O ? BW = r[52] : (BW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18441
18441
|
error: O
|
|
18442
|
-
}), r[51] = O, r[52] =
|
|
18443
|
-
let
|
|
18444
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18442
|
+
}), r[51] = O, r[52] = BW);
|
|
18443
|
+
let VW = I || "", HW = L ?? 0, UW = G ?? 0, WW = R || Arrays.EMPTY, GW = L && L > 5 || false, KW;
|
|
18444
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== VW || r[61] !== HW || r[62] !== UW || r[63] !== WW || r[64] !== GW ? (KW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18445
18445
|
label: null,
|
|
18446
18446
|
className: "rounded-b border-x border-b",
|
|
18447
|
-
data:
|
|
18447
|
+
data: VW,
|
|
18448
18448
|
hasStableRowId: false,
|
|
18449
|
-
totalRows:
|
|
18450
|
-
totalColumns:
|
|
18449
|
+
totalRows: HW,
|
|
18450
|
+
totalColumns: UW,
|
|
18451
18451
|
maxColumns: "all",
|
|
18452
18452
|
pageSize: l,
|
|
18453
18453
|
pagination: true,
|
|
18454
18454
|
fieldTypes: z,
|
|
18455
|
-
rowHeaders:
|
|
18455
|
+
rowHeaders: WW,
|
|
18456
18456
|
showDownload: u,
|
|
18457
18457
|
download_as: _,
|
|
18458
18458
|
get_size_bytes: v,
|
|
@@ -18462,7 +18462,7 @@ ${c}
|
|
|
18462
18462
|
showColumnSummaries: false,
|
|
18463
18463
|
showDataTypes: true,
|
|
18464
18464
|
get_column_summaries: getColumnSummaries,
|
|
18465
|
-
showPageSizeSelector:
|
|
18465
|
+
showPageSizeSelector: GW,
|
|
18466
18466
|
showColumnExplorer: false,
|
|
18467
18467
|
showRowExplorer: true,
|
|
18468
18468
|
showChartBuilder: false,
|
|
@@ -18471,15 +18471,15 @@ ${c}
|
|
|
18471
18471
|
selection: null,
|
|
18472
18472
|
lazy: false,
|
|
18473
18473
|
host: y
|
|
18474
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18475
|
-
let
|
|
18476
|
-
return r[66] !==
|
|
18474
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = VW, r[61] = HW, r[62] = UW, r[63] = WW, r[64] = GW, r[65] = KW) : KW = r[65];
|
|
18475
|
+
let qW;
|
|
18476
|
+
return r[66] !== zW || r[67] !== BW || r[68] !== KW ? (qW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18477
18477
|
children: [
|
|
18478
|
+
zW,
|
|
18478
18479
|
BW,
|
|
18479
|
-
|
|
18480
|
-
qW
|
|
18480
|
+
KW
|
|
18481
18481
|
]
|
|
18482
|
-
}), r[66] =
|
|
18482
|
+
}), r[66] = zW, r[67] = BW, r[68] = KW, r[69] = qW) : qW = r[69], qW;
|
|
18483
18483
|
});
|
|
18484
18484
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18485
18485
|
function getColumnSummaries() {
|
|
@@ -18663,14 +18663,14 @@ ${c}
|
|
|
18663
18663
|
}, [
|
|
18664
18664
|
B
|
|
18665
18665
|
]);
|
|
18666
|
-
let H = `${g}::${I}`, [
|
|
18667
|
-
|
|
18666
|
+
let H = `${g}::${I}`, [W, q] = (0, import_react.useState)(H);
|
|
18667
|
+
W !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
18668
18668
|
var _a4;
|
|
18669
18669
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
18670
18670
|
}, [
|
|
18671
18671
|
H
|
|
18672
18672
|
]);
|
|
18673
|
-
let bW = (R == null ? void 0 : R.files) ?? [],
|
|
18673
|
+
let bW = (R == null ? void 0 : R.files) ?? [], Z = new Set(e.map((e2) => e2.path)), xW = l === "directory" || l === "all", SW = l === "file" || l === "all", CW = bW.filter((e2) => xW && e2.is_directory || SW && !e2.is_directory), wW = CW.length > 0 && CW.every((e2) => Z.has(e2.path));
|
|
18674
18674
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18675
18675
|
kind: "danger",
|
|
18676
18676
|
children: z.message
|
|
@@ -18707,26 +18707,26 @@ ${c}
|
|
|
18707
18707
|
is_directory: c2
|
|
18708
18708
|
};
|
|
18709
18709
|
}
|
|
18710
|
-
function
|
|
18710
|
+
function jW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
18711
18711
|
let f2 = OW({
|
|
18712
18712
|
path: c2,
|
|
18713
18713
|
name: l2,
|
|
18714
18714
|
isDirectory: d2
|
|
18715
18715
|
});
|
|
18716
|
-
|
|
18716
|
+
Z.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
18717
18717
|
...e,
|
|
18718
18718
|
f2
|
|
18719
18719
|
] : [
|
|
18720
18720
|
f2
|
|
18721
18721
|
]);
|
|
18722
18722
|
}
|
|
18723
|
-
function
|
|
18723
|
+
function MW() {
|
|
18724
18724
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
18725
18725
|
}
|
|
18726
|
-
function
|
|
18726
|
+
function NW() {
|
|
18727
18727
|
let c2 = [];
|
|
18728
18728
|
for (let e2 of bW) {
|
|
18729
|
-
if (!
|
|
18729
|
+
if (!xW && e2.is_directory || Z.has(e2.path)) continue;
|
|
18730
18730
|
let r2 = OW({
|
|
18731
18731
|
path: e2.path,
|
|
18732
18732
|
name: e2.name,
|
|
@@ -18739,7 +18739,7 @@ ${c}
|
|
|
18739
18739
|
...c2
|
|
18740
18740
|
]);
|
|
18741
18741
|
}
|
|
18742
|
-
let
|
|
18742
|
+
let PW = [
|
|
18743
18743
|
{
|
|
18744
18744
|
key: "parent",
|
|
18745
18745
|
name: PARENT_DIRECTORY,
|
|
@@ -18752,7 +18752,7 @@ ${c}
|
|
|
18752
18752
|
...bW.map((e2) => {
|
|
18753
18753
|
let r2 = e2.path;
|
|
18754
18754
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
18755
|
-
let c2 =
|
|
18755
|
+
let c2 = xW && e2.is_directory || SW && !e2.is_directory, l2 = Z.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => jW({
|
|
18756
18756
|
path: r2,
|
|
18757
18757
|
name: e2.name,
|
|
18758
18758
|
isDirectory: e2.is_directory
|
|
@@ -18769,40 +18769,40 @@ ${c}
|
|
|
18769
18769
|
};
|
|
18770
18770
|
})
|
|
18771
18771
|
];
|
|
18772
|
-
function
|
|
18772
|
+
function FW(e2) {
|
|
18773
18773
|
var _a4;
|
|
18774
18774
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
18775
18775
|
}
|
|
18776
|
-
function
|
|
18776
|
+
function IW(e2, r2) {
|
|
18777
18777
|
var _a4, _b3;
|
|
18778
|
-
let c2 =
|
|
18778
|
+
let c2 = PW.length - 1;
|
|
18779
18779
|
switch (e2.key) {
|
|
18780
18780
|
case "ArrowDown":
|
|
18781
|
-
e2.preventDefault(),
|
|
18781
|
+
e2.preventDefault(), FW(Math.min(r2 + 1, c2));
|
|
18782
18782
|
break;
|
|
18783
18783
|
case "ArrowUp":
|
|
18784
|
-
e2.preventDefault(),
|
|
18784
|
+
e2.preventDefault(), FW(Math.max(r2 - 1, 0));
|
|
18785
18785
|
break;
|
|
18786
18786
|
case "Home":
|
|
18787
|
-
e2.preventDefault(),
|
|
18787
|
+
e2.preventDefault(), FW(0);
|
|
18788
18788
|
break;
|
|
18789
18789
|
case "End":
|
|
18790
|
-
e2.preventDefault(),
|
|
18790
|
+
e2.preventDefault(), FW(c2);
|
|
18791
18791
|
break;
|
|
18792
18792
|
case "Enter":
|
|
18793
|
-
e2.preventDefault(),
|
|
18793
|
+
e2.preventDefault(), PW[r2].onPrimary();
|
|
18794
18794
|
break;
|
|
18795
18795
|
case " ":
|
|
18796
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
18796
|
+
e2.preventDefault(), (_b3 = (_a4 = PW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
18797
18797
|
break;
|
|
18798
18798
|
}
|
|
18799
18799
|
}
|
|
18800
|
-
let { parentDirectories:
|
|
18800
|
+
let { parentDirectories: LW } = getProtocolAndParentDirectories({
|
|
18801
18801
|
path: g,
|
|
18802
18802
|
delimiter: TW,
|
|
18803
18803
|
initialPath: c,
|
|
18804
18804
|
restrictNavigation: f
|
|
18805
|
-
}),
|
|
18805
|
+
}), RW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
18806
18806
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
18807
18807
|
children: [
|
|
18808
18808
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -18812,7 +18812,7 @@ ${c}
|
|
|
18812
18812
|
(() => {
|
|
18813
18813
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
18814
18814
|
children: renderHTML({
|
|
18815
|
-
html: d ?? `Select ${
|
|
18815
|
+
html: d ?? `Select ${RW.join(" and ", 2)}...`
|
|
18816
18816
|
})
|
|
18817
18817
|
});
|
|
18818
18818
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -18826,7 +18826,7 @@ ${c}
|
|
|
18826
18826
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
18827
18827
|
size: "xs",
|
|
18828
18828
|
variant: "link",
|
|
18829
|
-
onClick: wW ?
|
|
18829
|
+
onClick: wW ? MW : NW,
|
|
18830
18830
|
children: wW ? "Deselect all" : "Select all"
|
|
18831
18831
|
})
|
|
18832
18832
|
})
|
|
@@ -18838,7 +18838,7 @@ ${c}
|
|
|
18838
18838
|
placeholder: g,
|
|
18839
18839
|
value: g,
|
|
18840
18840
|
onChange: (e2) => DW(e2.target.value),
|
|
18841
|
-
children:
|
|
18841
|
+
children: LW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
18842
18842
|
value: e2,
|
|
18843
18843
|
children: e2
|
|
18844
18844
|
}, e2))
|
|
@@ -18874,14 +18874,14 @@ ${c}
|
|
|
18874
18874
|
"aria-label": "File browser",
|
|
18875
18875
|
"aria-multiselectable": u,
|
|
18876
18876
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
18877
|
-
children:
|
|
18877
|
+
children: PW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
18878
18878
|
role: "row",
|
|
18879
18879
|
ref: (e3) => {
|
|
18880
18880
|
O.current[r2] = e3;
|
|
18881
18881
|
},
|
|
18882
18882
|
tabIndex: r2 === T ? 0 : -1,
|
|
18883
18883
|
onFocus: () => E(r2),
|
|
18884
|
-
onKeyDown: (e3) =>
|
|
18884
|
+
onKeyDown: (e3) => IW(e3, r2),
|
|
18885
18885
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
18886
18886
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
18887
18887
|
}),
|
|
@@ -18924,7 +18924,7 @@ ${c}
|
|
|
18924
18924
|
children: [
|
|
18925
18925
|
e.length,
|
|
18926
18926
|
" ",
|
|
18927
|
-
|
|
18927
|
+
RW.join(" or ", e.length),
|
|
18928
18928
|
" ",
|
|
18929
18929
|
"selected"
|
|
18930
18930
|
]
|
|
@@ -24326,7 +24326,7 @@ ${c}
|
|
|
24326
24326
|
return typeof S == "function" ? S : noop$2;
|
|
24327
24327
|
}, [
|
|
24328
24328
|
S
|
|
24329
|
-
]), q = (0, import_react.useRef)(null), bW = (0, import_react.useRef)(null),
|
|
24329
|
+
]), q = (0, import_react.useRef)(null), bW = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), xW = Z[0], SW = Z[1], CW = xW.isFocused, wW = xW.isFileDialogActive, TW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), EW = function() {
|
|
24330
24330
|
!TW.current && wW && setTimeout(function() {
|
|
24331
24331
|
bW.current && (bW.current.files.length || (SW({
|
|
24332
24332
|
type: "closeDialog"
|
|
@@ -24634,7 +24634,7 @@ ${c}
|
|
|
24634
24634
|
FW,
|
|
24635
24635
|
l
|
|
24636
24636
|
]);
|
|
24637
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24637
|
+
return _objectSpread$7(_objectSpread$7({}, xW), {}, {
|
|
24638
24638
|
isFocused: CW && !l,
|
|
24639
24639
|
getRootProps: GW,
|
|
24640
24640
|
getInputProps: qW,
|
|
@@ -24872,13 +24872,13 @@ ${c}
|
|
|
24872
24872
|
html: I
|
|
24873
24873
|
})
|
|
24874
24874
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
24875
|
-
let q = w && "text-primary", bW = T && "text-destructive",
|
|
24876
|
-
r[48] !== q || r[49] !== bW ? (
|
|
24877
|
-
let
|
|
24878
|
-
r[51] ===
|
|
24875
|
+
let q = w && "text-primary", bW = T && "text-destructive", Z;
|
|
24876
|
+
r[48] !== q || r[49] !== bW ? (Z = cn(q, bW), r[48] = q, r[49] = bW, r[50] = Z) : Z = r[50];
|
|
24877
|
+
let xW;
|
|
24878
|
+
r[51] === Z ? xW = r[52] : (xW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
24879
24879
|
strokeWidth: 1.4,
|
|
24880
|
-
className:
|
|
24881
|
-
}), r[51] =
|
|
24880
|
+
className: Z
|
|
24881
|
+
}), r[51] = Z, r[52] = xW);
|
|
24882
24882
|
let SW = w && "text-primary", CW = T && "text-destructive", wW;
|
|
24883
24883
|
r[53] !== SW || r[54] !== CW ? (wW = cn(SW, CW), r[53] = SW, r[54] = CW, r[55] = wW) : wW = r[55];
|
|
24884
24884
|
let TW;
|
|
@@ -24887,13 +24887,13 @@ ${c}
|
|
|
24887
24887
|
className: wW
|
|
24888
24888
|
}), r[56] = wW, r[57] = TW);
|
|
24889
24889
|
let EW;
|
|
24890
|
-
r[58] !==
|
|
24890
|
+
r[58] !== xW || r[59] !== TW ? (EW = (0, import_jsx_runtime.jsxs)("div", {
|
|
24891
24891
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
24892
24892
|
children: [
|
|
24893
|
-
|
|
24893
|
+
xW,
|
|
24894
24894
|
TW
|
|
24895
24895
|
]
|
|
24896
|
-
}), r[58] =
|
|
24896
|
+
}), r[58] = xW, r[59] = TW, r[60] = EW) : EW = r[60];
|
|
24897
24897
|
let DW;
|
|
24898
24898
|
r[61] !== G || r[62] !== EW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
24899
24899
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
@@ -25061,16 +25061,16 @@ ${c}
|
|
|
25061
25061
|
html: f
|
|
25062
25062
|
})
|
|
25063
25063
|
}), r[13] = f, r[14] = bW);
|
|
25064
|
-
let
|
|
25065
|
-
r[15] === L ?
|
|
25064
|
+
let Z;
|
|
25065
|
+
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25066
25066
|
kind: "danger",
|
|
25067
25067
|
className: "rounded",
|
|
25068
25068
|
children: L ?? "Invalid input"
|
|
25069
|
-
}), r[15] = L, r[16] =
|
|
25070
|
-
let
|
|
25071
|
-
r[17] === c ?
|
|
25069
|
+
}), r[15] = L, r[16] = Z);
|
|
25070
|
+
let xW;
|
|
25071
|
+
r[17] === c ? xW = r[18] : (xW = (0, import_jsx_runtime.jsx)("div", {
|
|
25072
25072
|
children: c
|
|
25073
|
-
}), r[17] = c, r[18] =
|
|
25073
|
+
}), r[17] = c, r[18] = xW);
|
|
25074
25074
|
let SW;
|
|
25075
25075
|
r[19] !== S || r[20] !== T || r[21] !== b ? (SW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25076
25076
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
@@ -25106,16 +25106,16 @@ ${c}
|
|
|
25106
25106
|
]
|
|
25107
25107
|
}), r[33] = EW, r[34] = SW, r[35] = DW) : DW = r[35];
|
|
25108
25108
|
let OW;
|
|
25109
|
-
r[36] !== DW || r[37] !== G || r[38] !== q || r[39] !== bW || r[40] !==
|
|
25109
|
+
r[36] !== DW || r[37] !== G || r[38] !== q || r[39] !== bW || r[40] !== Z || r[41] !== xW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25110
25110
|
className: G,
|
|
25111
25111
|
onKeyDown: q,
|
|
25112
25112
|
children: [
|
|
25113
25113
|
bW,
|
|
25114
|
-
xW,
|
|
25115
25114
|
Z,
|
|
25115
|
+
xW,
|
|
25116
25116
|
DW
|
|
25117
25117
|
]
|
|
25118
|
-
}), r[36] = DW, r[37] = G, r[38] = q, r[39] = bW, r[40] =
|
|
25118
|
+
}), r[36] = DW, r[37] = G, r[38] = q, r[39] = bW, r[40] = Z, r[41] = xW, r[42] = OW) : OW = r[42];
|
|
25119
25119
|
let kW;
|
|
25120
25120
|
return r[43] !== OW || r[44] !== H ? (kW = (0, import_jsx_runtime.jsx)("form", {
|
|
25121
25121
|
className: "contents",
|
|
@@ -26908,8 +26908,8 @@ ${c}
|
|
|
26908
26908
|
indices: c2
|
|
26909
26909
|
}));
|
|
26910
26910
|
}, r[31] = u, r[32] = bW);
|
|
26911
|
-
let
|
|
26912
|
-
r[33] === u ?
|
|
26911
|
+
let Z = useEvent_default(bW), xW;
|
|
26912
|
+
r[33] === u ? xW = r[34] : (xW = (e2) => {
|
|
26913
26913
|
e2 && u((r2) => ({
|
|
26914
26914
|
...r2,
|
|
26915
26915
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -26918,9 +26918,9 @@ ${c}
|
|
|
26918
26918
|
range: e2.range,
|
|
26919
26919
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
26920
26920
|
}));
|
|
26921
|
-
}, r[33] = u, r[34] =
|
|
26922
|
-
let SW = useEvent_default(
|
|
26923
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
26921
|
+
}, r[33] = u, r[34] = xW);
|
|
26922
|
+
let SW = useEvent_default(xW), CW = m.frames ?? void 0, wW = useEvent_default(_temp3$3), TW;
|
|
26923
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== SW || r[43] !== CW || r[44] !== wW || r[45] !== R ? (TW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
26924
26924
|
...m,
|
|
26925
26925
|
layout: h,
|
|
26926
26926
|
onRelayout: R,
|
|
@@ -26928,13 +26928,13 @@ ${c}
|
|
|
26928
26928
|
onTreemapClick: W,
|
|
26929
26929
|
onSunburstClick: q,
|
|
26930
26930
|
config: L,
|
|
26931
|
-
onClick:
|
|
26931
|
+
onClick: Z,
|
|
26932
26932
|
onSelected: SW,
|
|
26933
26933
|
className: "w-full",
|
|
26934
26934
|
useResizeHandler: true,
|
|
26935
26935
|
frames: CW,
|
|
26936
26936
|
onError: wW
|
|
26937
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
26937
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = SW, r[43] = CW, r[44] = wW, r[45] = R, r[46] = TW) : TW = r[46], TW;
|
|
26938
26938
|
});
|
|
26939
26939
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
26940
26940
|
function _temp$8(e) {
|
|
@@ -27079,8 +27079,8 @@ ${c}
|
|
|
27079
27079
|
onPointerUp: H
|
|
27080
27080
|
})
|
|
27081
27081
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = bW) : bW = c[22];
|
|
27082
|
-
let
|
|
27083
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
27082
|
+
let Z;
|
|
27083
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27084
27084
|
asChild: true,
|
|
27085
27085
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27086
27086
|
"data-testid": "thumb",
|
|
@@ -27090,28 +27090,28 @@ ${c}
|
|
|
27090
27090
|
onMouseEnter: m.setTrue,
|
|
27091
27091
|
onMouseLeave: m.setFalse
|
|
27092
27092
|
})
|
|
27093
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27094
|
-
let
|
|
27095
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
27093
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
27094
|
+
let xW;
|
|
27095
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (xW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27096
27096
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27097
27097
|
locale: h
|
|
27098
27098
|
})
|
|
27099
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
27099
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = xW) : xW = c[29];
|
|
27100
27100
|
let SW;
|
|
27101
|
-
c[30] ===
|
|
27102
|
-
children:
|
|
27103
|
-
}), c[30] =
|
|
27101
|
+
c[30] === xW ? SW = c[31] : (SW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27102
|
+
children: xW
|
|
27103
|
+
}), c[30] = xW, c[31] = SW);
|
|
27104
27104
|
let CW;
|
|
27105
|
-
c[32] !== f || c[33] !==
|
|
27105
|
+
c[32] !== f || c[33] !== Z || c[34] !== SW ? (CW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27106
27106
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27107
27107
|
delayDuration: 0,
|
|
27108
27108
|
open: f,
|
|
27109
27109
|
children: [
|
|
27110
|
-
|
|
27110
|
+
Z,
|
|
27111
27111
|
SW
|
|
27112
27112
|
]
|
|
27113
27113
|
})
|
|
27114
|
-
}), c[32] = f, c[33] =
|
|
27114
|
+
}), c[32] = f, c[33] = Z, c[34] = SW, c[35] = CW) : CW = c[35];
|
|
27115
27115
|
let wW;
|
|
27116
27116
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (wW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27117
27117
|
asChild: true,
|
|
@@ -27206,14 +27206,14 @@ ${c}
|
|
|
27206
27206
|
}, q = (e2) => {
|
|
27207
27207
|
h && l(e2);
|
|
27208
27208
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27209
|
-
let bW,
|
|
27209
|
+
let bW, Z;
|
|
27210
27210
|
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (bW = () => {
|
|
27211
27211
|
h && !dequal(T, u) && l(T);
|
|
27212
|
-
},
|
|
27212
|
+
}, Z = () => {
|
|
27213
27213
|
h && !dequal(T, u) && l(T);
|
|
27214
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = bW, r[19] =
|
|
27215
|
-
let
|
|
27216
|
-
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] !== bW || r[31] !==
|
|
27214
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = bW, r[19] = Z) : (bW = r[18], Z = r[19]);
|
|
27215
|
+
let xW;
|
|
27216
|
+
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] !== bW || r[31] !== Z || r[32] !== b ? (xW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27217
27217
|
id: S,
|
|
27218
27218
|
className: W,
|
|
27219
27219
|
value: T,
|
|
@@ -27225,9 +27225,9 @@ ${c}
|
|
|
27225
27225
|
onValueChange: G,
|
|
27226
27226
|
onValueCommit: q,
|
|
27227
27227
|
onPointerUp: bW,
|
|
27228
|
-
onMouseUp:
|
|
27228
|
+
onMouseUp: Z,
|
|
27229
27229
|
valueMap: b
|
|
27230
|
-
}), 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] = bW, r[31] =
|
|
27230
|
+
}), 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] = bW, r[31] = Z, r[32] = b, r[33] = xW) : xW = r[33];
|
|
27231
27231
|
let SW;
|
|
27232
27232
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (SW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27233
27233
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -27238,13 +27238,13 @@ ${c}
|
|
|
27238
27238
|
})}`
|
|
27239
27239
|
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = SW) : SW = r[38];
|
|
27240
27240
|
let CW;
|
|
27241
|
-
r[39] !==
|
|
27241
|
+
r[39] !== xW || r[40] !== SW || r[41] !== B ? (CW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27242
27242
|
className: B,
|
|
27243
27243
|
children: [
|
|
27244
|
-
|
|
27244
|
+
xW,
|
|
27245
27245
|
SW
|
|
27246
27246
|
]
|
|
27247
|
-
}), r[39] =
|
|
27247
|
+
}), r[39] = xW, r[40] = SW, r[41] = B, r[42] = CW) : CW = r[42];
|
|
27248
27248
|
let wW;
|
|
27249
27249
|
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== CW || r[47] !== M || r[48] !== L ? (wW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27250
27250
|
label: c,
|
|
@@ -30552,9 +30552,9 @@ ${c}
|
|
|
30552
30552
|
areRegExpsEqual: H,
|
|
30553
30553
|
areSetsEqual: G,
|
|
30554
30554
|
createIsNestedEqual: r2
|
|
30555
|
-
}),
|
|
30556
|
-
function
|
|
30557
|
-
return
|
|
30555
|
+
}), Z = T(q);
|
|
30556
|
+
function xW(e3, r3) {
|
|
30557
|
+
return Z(e3, r3, void 0);
|
|
30558
30558
|
}
|
|
30559
30559
|
var SW = T(l(q, {
|
|
30560
30560
|
createIsNestedEqual: function() {
|
|
@@ -30585,7 +30585,7 @@ ${c}
|
|
|
30585
30585
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30586
30586
|
});
|
|
30587
30587
|
}
|
|
30588
|
-
e2.circularDeepEqual = TW, e2.circularShallowEqual = DW, e2.createCustomCircularEqual = kW, e2.createCustomEqual = OW, e2.deepEqual =
|
|
30588
|
+
e2.circularDeepEqual = TW, e2.circularShallowEqual = DW, e2.createCustomCircularEqual = kW, e2.createCustomEqual = OW, e2.deepEqual = xW, e2.sameValueZeroEqual = f, e2.shallowEqual = CW, Object.defineProperty(e2, "__esModule", {
|
|
30589
30589
|
value: true
|
|
30590
30590
|
});
|
|
30591
30591
|
}));
|
|
@@ -30808,13 +30808,13 @@ ${c}
|
|
|
30808
30808
|
function G(e2) {
|
|
30809
30809
|
return e2 * 100 + "%";
|
|
30810
30810
|
}
|
|
30811
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, bW = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
30811
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, bW = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), xW = (e2) => Math.max(0, e2), SW = (e2, r2, c2) => {
|
|
30812
30812
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
30813
30813
|
return {
|
|
30814
30814
|
left: l2,
|
|
30815
30815
|
width: d2,
|
|
30816
30816
|
height: bW(f2, e2.height, u2),
|
|
30817
|
-
top:
|
|
30817
|
+
top: xW(f2)
|
|
30818
30818
|
};
|
|
30819
30819
|
}, CW = (e2, r2, c2) => {
|
|
30820
30820
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -30822,15 +30822,15 @@ ${c}
|
|
|
30822
30822
|
top: l2,
|
|
30823
30823
|
height: d2,
|
|
30824
30824
|
width: q(e2.left, e2.width, f2, c2),
|
|
30825
|
-
left:
|
|
30825
|
+
left: Z(u2)
|
|
30826
30826
|
};
|
|
30827
30827
|
}, wW = (e2, r2, c2) => {
|
|
30828
30828
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
30829
30829
|
return {
|
|
30830
30830
|
height: u2,
|
|
30831
30831
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
30832
|
-
top:
|
|
30833
|
-
left:
|
|
30832
|
+
top: xW(l2),
|
|
30833
|
+
left: Z(f2)
|
|
30834
30834
|
};
|
|
30835
30835
|
}, TW = (e2, r2, c2) => {
|
|
30836
30836
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -30838,7 +30838,7 @@ ${c}
|
|
|
30838
30838
|
width: f2,
|
|
30839
30839
|
left: u2,
|
|
30840
30840
|
height: bW(l2, e2.height, d2),
|
|
30841
|
-
top:
|
|
30841
|
+
top: xW(l2)
|
|
30842
30842
|
};
|
|
30843
30843
|
}, EW = {
|
|
30844
30844
|
n: SW,
|
|
@@ -33741,7 +33741,7 @@ ${c}
|
|
|
33741
33741
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
33742
33742
|
let E = useIsDragging(), O, j;
|
|
33743
33743
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
33744
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, bW,
|
|
33744
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, bW, Z, xW, SW, CW, wW, TW, EW, DW, OW, kW, AW, jW, MW, NW, PW, FW;
|
|
33745
33745
|
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) {
|
|
33746
33746
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
33747
33747
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -33767,16 +33767,16 @@ ${c}
|
|
|
33767
33767
|
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 ? [
|
|
33768
33768
|
20,
|
|
33769
33769
|
20
|
|
33770
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, bW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
33770
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, bW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
33771
33771
|
f || l({
|
|
33772
33772
|
...c,
|
|
33773
33773
|
cells: e3
|
|
33774
33774
|
});
|
|
33775
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
33775
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? xW = r[71] : (xW = g ? {
|
|
33776
33776
|
i: g.i,
|
|
33777
33777
|
w: g.w || 2,
|
|
33778
33778
|
h: g.h || 2
|
|
33779
|
-
} : void 0, r[70] = g, r[71] =
|
|
33779
|
+
} : void 0, r[70] = g, r[71] = xW), r[72] !== O || r[73] !== c || r[74] !== l ? (SW = (e3, r2, u2) => {
|
|
33780
33780
|
O.onDragStop(), r2 && l({
|
|
33781
33781
|
...c,
|
|
33782
33782
|
cells: [
|
|
@@ -33822,10 +33822,10 @@ ${c}
|
|
|
33822
33822
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
33823
33823
|
children: m3
|
|
33824
33824
|
}, r2.id);
|
|
33825
|
-
}), 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] = bW, r[31] =
|
|
33826
|
-
} 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], bW = r[30],
|
|
33825
|
+
}), 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] = bW, r[31] = Z, r[32] = xW, r[33] = SW, r[34] = CW, r[35] = wW, r[36] = TW, r[37] = EW, r[38] = DW, r[39] = OW, r[40] = kW, r[41] = AW, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = PW, r[46] = FW;
|
|
33826
|
+
} 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], bW = r[30], Z = r[31], xW = r[32], SW = r[33], CW = r[34], wW = r[35], TW = r[36], EW = r[37], DW = r[38], OW = r[39], kW = r[40], AW = r[41], jW = r[42], MW = r[43], NW = r[44], PW = r[45], FW = r[46];
|
|
33827
33827
|
let IW;
|
|
33828
|
-
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] !== bW || r[91] !==
|
|
33828
|
+
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] !== bW || r[91] !== Z || r[92] !== xW || r[93] !== SW || r[94] !== CW || r[95] !== wW || r[96] !== TW || r[97] !== EW || r[98] !== DW || r[99] !== OW || r[100] !== kW || r[101] !== AW || r[102] !== jW || r[103] !== MW || r[104] !== NW || r[105] !== PW || r[106] !== FW ? (IW = (0, import_jsx_runtime.jsx)(I, {
|
|
33829
33829
|
breakpoint: MW,
|
|
33830
33830
|
layouts: NW,
|
|
33831
33831
|
style: PW,
|
|
@@ -33838,8 +33838,8 @@ ${c}
|
|
|
33838
33838
|
compactType: G,
|
|
33839
33839
|
preventCollision: q,
|
|
33840
33840
|
rowHeight: bW,
|
|
33841
|
-
onLayoutChange:
|
|
33842
|
-
droppingItem:
|
|
33841
|
+
onLayoutChange: Z,
|
|
33842
|
+
droppingItem: xW,
|
|
33843
33843
|
onDrop: SW,
|
|
33844
33844
|
onDragStart: CW,
|
|
33845
33845
|
onDrag: wW,
|
|
@@ -33850,7 +33850,7 @@ ${c}
|
|
|
33850
33850
|
isResizable: kW,
|
|
33851
33851
|
draggableHandle: AW,
|
|
33852
33852
|
children: jW
|
|
33853
|
-
}), 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] = bW, r[91] =
|
|
33853
|
+
}), 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] = bW, r[91] = Z, r[92] = xW, r[93] = SW, r[94] = CW, r[95] = wW, r[96] = TW, r[97] = EW, r[98] = DW, r[99] = OW, r[100] = kW, r[101] = AW, r[102] = jW, r[103] = MW, r[104] = NW, r[105] = PW, r[106] = FW, r[107] = IW) : IW = r[107];
|
|
33854
33854
|
let LW = IW, RW, zW, BW, VW, HW, UW, WW;
|
|
33855
33855
|
if (r[108] !== u || r[109] !== LW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
33856
33856
|
WW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -34275,21 +34275,21 @@ ${c}
|
|
|
34275
34275
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34276
34276
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34277
34277
|
}), r[35] = bW) : bW = r[35];
|
|
34278
|
-
let
|
|
34279
|
-
r[36] === l ?
|
|
34278
|
+
let Z;
|
|
34279
|
+
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
34280
34280
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34281
34281
|
onClick: () => l()
|
|
34282
|
-
}), r[36] = l, r[37] =
|
|
34283
|
-
let
|
|
34284
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34282
|
+
}), r[36] = l, r[37] = Z);
|
|
34283
|
+
let xW;
|
|
34284
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34285
34285
|
className: w,
|
|
34286
34286
|
children: [
|
|
34287
34287
|
I,
|
|
34288
34288
|
q,
|
|
34289
34289
|
bW,
|
|
34290
|
-
|
|
34290
|
+
Z
|
|
34291
34291
|
]
|
|
34292
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34292
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = xW) : xW = r[42], xW;
|
|
34293
34293
|
};
|
|
34294
34294
|
function isSidebarCell(e) {
|
|
34295
34295
|
var _a3;
|
|
@@ -36295,29 +36295,29 @@ ${c}
|
|
|
36295
36295
|
M
|
|
36296
36296
|
]), 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), bW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36297
36297
|
j
|
|
36298
|
-
]),
|
|
36298
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: xW, measureDroppableContainers: SW, measuringScheduled: CW } = useDroppableMeasuring(bW, {
|
|
36299
36299
|
dragging: w,
|
|
36300
36300
|
dependencies: [
|
|
36301
36301
|
O.x,
|
|
36302
36302
|
O.y
|
|
36303
36303
|
],
|
|
36304
|
-
config:
|
|
36304
|
+
config: Z.droppable
|
|
36305
36305
|
}), wW = useCachedNode(E, T), TW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36306
36306
|
H
|
|
36307
|
-
]), EW = rG(), DW = useInitialRect(wW,
|
|
36307
|
+
]), EW = rG(), DW = useInitialRect(wW, Z.draggable.measure);
|
|
36308
36308
|
useLayoutShiftScrollCompensation({
|
|
36309
36309
|
activeNode: T == null ? null : E.get(T),
|
|
36310
36310
|
config: EW.layoutShiftCompensation,
|
|
36311
36311
|
initialRect: DW,
|
|
36312
|
-
measure:
|
|
36312
|
+
measure: Z.draggable.measure
|
|
36313
36313
|
});
|
|
36314
|
-
let OW = useRect(wW,
|
|
36314
|
+
let OW = useRect(wW, Z.draggable.measure, DW), kW = useRect(wW ? wW.parentElement : null), AW = (0, import_react.useRef)({
|
|
36315
36315
|
activatorEvent: null,
|
|
36316
36316
|
active: null,
|
|
36317
36317
|
activeNode: wW,
|
|
36318
36318
|
collisionRect: null,
|
|
36319
36319
|
collisions: null,
|
|
36320
|
-
droppableRects:
|
|
36320
|
+
droppableRects: xW,
|
|
36321
36321
|
draggableNodes: E,
|
|
36322
36322
|
draggingNode: null,
|
|
36323
36323
|
draggingNodeRect: null,
|
|
@@ -36326,7 +36326,7 @@ ${c}
|
|
|
36326
36326
|
scrollableAncestors: [],
|
|
36327
36327
|
scrollAdjustedTranslate: null
|
|
36328
36328
|
}), jW = j.getNodeFor((_a3 = AW.current.over) == null ? void 0 : _a3.id), MW = useDragOverlayMeasuring({
|
|
36329
|
-
measure:
|
|
36329
|
+
measure: Z.dragOverlay.measure
|
|
36330
36330
|
}), NW = MW.nodeRef.current ?? wW, PW = w ? MW.rect ?? OW : null, FW = !!(MW.nodeRef.current && MW.rect), IW = useRectDelta(FW ? null : OW), LW = useWindowRect(NW ? getWindow(NW) : null), RW = useScrollableAncestors(w ? jW ?? wW : null), zW = useRects(RW), BW = applyModifiers(m, {
|
|
36331
36331
|
transform: {
|
|
36332
36332
|
x: O.x - IW.x,
|
|
@@ -36349,7 +36349,7 @@ ${c}
|
|
|
36349
36349
|
]), GW = add(BW, UW), KW = PW ? getAdjustedRect(PW, BW) : null, qW = L && KW ? f({
|
|
36350
36350
|
active: L,
|
|
36351
36351
|
collisionRect: KW,
|
|
36352
|
-
droppableRects:
|
|
36352
|
+
droppableRects: xW,
|
|
36353
36353
|
droppableContainers: bW,
|
|
36354
36354
|
pointerCoordinates: VW
|
|
36355
36355
|
}) : null, JW = getFirstCollision(qW, "id"), [YW, XW] = (0, import_react.useState)(null), ZW = adjustScale(FW ? BW : add(BW, WW), (YW == null ? void 0 : YW.rect) ?? null, OW), QW = (0, import_react.useRef)(null), $W = (0, import_react.useCallback)((e2, r2) => {
|
|
@@ -36523,7 +36523,7 @@ ${c}
|
|
|
36523
36523
|
activeNode: wW,
|
|
36524
36524
|
collisionRect: KW,
|
|
36525
36525
|
collisions: qW,
|
|
36526
|
-
droppableRects:
|
|
36526
|
+
droppableRects: xW,
|
|
36527
36527
|
draggableNodes: E,
|
|
36528
36528
|
draggingNode: NW,
|
|
36529
36529
|
draggingNodeRect: PW,
|
|
@@ -36543,7 +36543,7 @@ ${c}
|
|
|
36543
36543
|
E,
|
|
36544
36544
|
NW,
|
|
36545
36545
|
PW,
|
|
36546
|
-
|
|
36546
|
+
xW,
|
|
36547
36547
|
j,
|
|
36548
36548
|
YW,
|
|
36549
36549
|
RW,
|
|
@@ -36566,12 +36566,12 @@ ${c}
|
|
|
36566
36566
|
dragOverlay: MW,
|
|
36567
36567
|
draggableNodes: E,
|
|
36568
36568
|
droppableContainers: j,
|
|
36569
|
-
droppableRects:
|
|
36569
|
+
droppableRects: xW,
|
|
36570
36570
|
over: YW,
|
|
36571
36571
|
measureDroppableContainers: SW,
|
|
36572
36572
|
scrollableAncestors: RW,
|
|
36573
36573
|
scrollableAncestorRects: zW,
|
|
36574
|
-
measuringConfiguration:
|
|
36574
|
+
measuringConfiguration: Z,
|
|
36575
36575
|
measuringScheduled: CW,
|
|
36576
36576
|
windowRect: LW
|
|
36577
36577
|
}), [
|
|
@@ -36584,12 +36584,12 @@ ${c}
|
|
|
36584
36584
|
MW,
|
|
36585
36585
|
E,
|
|
36586
36586
|
j,
|
|
36587
|
-
|
|
36587
|
+
xW,
|
|
36588
36588
|
YW,
|
|
36589
36589
|
SW,
|
|
36590
36590
|
RW,
|
|
36591
36591
|
zW,
|
|
36592
|
-
|
|
36592
|
+
Z,
|
|
36593
36593
|
CW,
|
|
36594
36594
|
LW
|
|
36595
36595
|
]), nG = (0, import_react.useMemo)(() => ({
|
|
@@ -37157,7 +37157,7 @@ ${c}
|
|
|
37157
37157
|
updateMeasurementsFor: I,
|
|
37158
37158
|
...m
|
|
37159
37159
|
}
|
|
37160
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: bW, listeners:
|
|
37160
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: bW, listeners: Z, isDragging: xW, over: SW, setActivatorNodeRef: CW, transform: wW } = useDraggable({
|
|
37161
37161
|
id: f,
|
|
37162
37162
|
data: M,
|
|
37163
37163
|
attributes: {
|
|
@@ -37165,7 +37165,7 @@ ${c}
|
|
|
37165
37165
|
...c
|
|
37166
37166
|
},
|
|
37167
37167
|
disabled: O.draggable
|
|
37168
|
-
}), TW = useCombinedRefs(B, bW), EW = !!H, DW = EW && !b && isValidIndex(v) && isValidIndex(w), OW = !T &&
|
|
37168
|
+
}), TW = useCombinedRefs(B, bW), EW = !!H, DW = EW && !b && isValidIndex(v) && isValidIndex(w), OW = !T && xW, kW = DW ? (OW && DW ? wW : null) ?? (p ?? E)({
|
|
37169
37169
|
rects: S,
|
|
37170
37170
|
activeNodeRect: G,
|
|
37171
37171
|
activeIndex: v,
|
|
@@ -37184,7 +37184,7 @@ ${c}
|
|
|
37184
37184
|
}), NW = g !== MW.current.items, PW = r({
|
|
37185
37185
|
active: H,
|
|
37186
37186
|
containerId: _,
|
|
37187
|
-
isDragging:
|
|
37187
|
+
isDragging: xW,
|
|
37188
37188
|
isSorting: EW,
|
|
37189
37189
|
id: f,
|
|
37190
37190
|
index: j,
|
|
@@ -37230,8 +37230,8 @@ ${c}
|
|
|
37230
37230
|
items: g,
|
|
37231
37231
|
isOver: z,
|
|
37232
37232
|
isSorting: EW,
|
|
37233
|
-
isDragging:
|
|
37234
|
-
listeners:
|
|
37233
|
+
isDragging: xW,
|
|
37234
|
+
listeners: Z,
|
|
37235
37235
|
node: R,
|
|
37236
37236
|
overIndex: w,
|
|
37237
37237
|
over: SW,
|
|
@@ -37546,13 +37546,13 @@ ${c}
|
|
|
37546
37546
|
}), 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];
|
|
37547
37547
|
let bW = q;
|
|
37548
37548
|
if (!v && !g) return bW;
|
|
37549
|
-
let
|
|
37550
|
-
r[46] === bW ?
|
|
37549
|
+
let Z;
|
|
37550
|
+
r[46] === bW ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37551
37551
|
asChild: true,
|
|
37552
37552
|
children: bW
|
|
37553
|
-
}), r[46] = bW, r[47] =
|
|
37554
|
-
let
|
|
37555
|
-
r[48] === v ?
|
|
37553
|
+
}), r[46] = bW, r[47] = Z);
|
|
37554
|
+
let xW;
|
|
37555
|
+
r[48] === v ? xW = r[49] : (xW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37556
37556
|
onSelect: v,
|
|
37557
37557
|
children: [
|
|
37558
37558
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37560,7 +37560,7 @@ ${c}
|
|
|
37560
37560
|
}),
|
|
37561
37561
|
"Add cell"
|
|
37562
37562
|
]
|
|
37563
|
-
}), r[48] = v, r[49] =
|
|
37563
|
+
}), r[48] = v, r[49] = xW);
|
|
37564
37564
|
let SW;
|
|
37565
37565
|
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = SW) : SW = r[50];
|
|
37566
37566
|
let CW;
|
|
@@ -37575,20 +37575,20 @@ ${c}
|
|
|
37575
37575
|
]
|
|
37576
37576
|
}), r[51] = g, r[52] = CW);
|
|
37577
37577
|
let wW;
|
|
37578
|
-
r[53] !==
|
|
37578
|
+
r[53] !== xW || r[54] !== CW ? (wW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37579
37579
|
children: [
|
|
37580
|
-
|
|
37580
|
+
xW,
|
|
37581
37581
|
SW,
|
|
37582
37582
|
CW
|
|
37583
37583
|
]
|
|
37584
|
-
}), r[53] =
|
|
37584
|
+
}), r[53] = xW, r[54] = CW, r[55] = wW) : wW = r[55];
|
|
37585
37585
|
let TW;
|
|
37586
|
-
return r[56] !==
|
|
37586
|
+
return r[56] !== Z || r[57] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37587
37587
|
children: [
|
|
37588
|
-
|
|
37588
|
+
Z,
|
|
37589
37589
|
wW
|
|
37590
37590
|
]
|
|
37591
|
-
}), r[56] =
|
|
37591
|
+
}), r[56] = Z, r[57] = wW, r[58] = TW) : TW = r[58], TW;
|
|
37592
37592
|
}, InsertCellLine = (e) => {
|
|
37593
37593
|
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;
|
|
37594
37594
|
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);
|
|
@@ -37642,8 +37642,8 @@ ${c}
|
|
|
37642
37642
|
...B,
|
|
37643
37643
|
...h
|
|
37644
37644
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37645
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", bW = w && !T && "opacity-35",
|
|
37646
|
-
r[25] !== l || r[26] !== bW || r[27] !==
|
|
37645
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", bW = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", xW;
|
|
37646
|
+
r[25] !== l || r[26] !== bW || r[27] !== Z || r[28] !== q ? (xW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, bW, Z, l), r[25] = l, r[26] = bW, r[27] = Z, r[28] = q, r[29] = xW) : xW = r[29];
|
|
37647
37647
|
let SW;
|
|
37648
37648
|
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (SW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37649
37649
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
@@ -37682,9 +37682,9 @@ ${c}
|
|
|
37682
37682
|
})
|
|
37683
37683
|
}), r[39] = z, r[40] = R, r[41] = wW) : wW = r[41];
|
|
37684
37684
|
let TW;
|
|
37685
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
37685
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== xW || r[46] !== SW || r[47] !== CW || r[48] !== wW ? (TW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37686
37686
|
ref: f,
|
|
37687
|
-
className:
|
|
37687
|
+
className: xW,
|
|
37688
37688
|
style: W,
|
|
37689
37689
|
...d,
|
|
37690
37690
|
children: [
|
|
@@ -37692,7 +37692,7 @@ ${c}
|
|
|
37692
37692
|
CW,
|
|
37693
37693
|
wW
|
|
37694
37694
|
]
|
|
37695
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
37695
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = xW, r[46] = SW, r[47] = CW, r[48] = wW, r[49] = TW) : TW = r[49], TW;
|
|
37696
37696
|
}, MiniCodePreview = (e) => {
|
|
37697
37697
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37698
37698
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -37732,7 +37732,7 @@ ${c}
|
|
|
37732
37732
|
function _temp2$2(e) {
|
|
37733
37733
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
37734
37734
|
}
|
|
37735
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
37735
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BrJ-d3iB.js"));
|
|
37736
37736
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
37737
37737
|
var _a3;
|
|
37738
37738
|
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), [
|
|
@@ -37894,7 +37894,7 @@ ${c}
|
|
|
37894
37894
|
});
|
|
37895
37895
|
DebuggerOutput.displayName = "DebuggerOutput";
|
|
37896
37896
|
const DebuggerControls = (e) => {
|
|
37897
|
-
let r = (0, import_compiler_runtime$9.c)(
|
|
37897
|
+
let r = (0, import_compiler_runtime$9.c)(31), { onSubmit: c, onClear: l } = e, u;
|
|
37898
37898
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = cn("m-0 w-9 h-8 bg-(--slate-2) text-(--slate-11) hover:text-(--blue-11) rounded-none hover:bg-(--sky-3) hover:border-(--blue-8)", "first:rounded-l-lg first:border-l border-t border-b hover:border", "last:rounded-r-lg last:border-r"), r[0] = u) : u = r[0];
|
|
37899
37899
|
let d = u, f;
|
|
37900
37900
|
r[1] === c ? f = r[2] : (f = () => c("n"), r[1] = c, r[2] = f);
|
|
@@ -37973,22 +37973,24 @@ ${c}
|
|
|
37973
37973
|
})
|
|
37974
37974
|
}), r[20] = E, r[21] = j);
|
|
37975
37975
|
let M;
|
|
37976
|
-
r[22]
|
|
37977
|
-
content: "
|
|
37976
|
+
r[22] !== l || r[23] !== c ? (M = l && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37977
|
+
content: "Quit and clear",
|
|
37978
37978
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
37979
37979
|
variant: "text",
|
|
37980
37980
|
size: "icon",
|
|
37981
37981
|
"data-testid": "debugger-clear-button",
|
|
37982
37982
|
className: cn(d, "text-(--red-11) hover:text-(--red-11) hover:bg-(--red-2) hover:border-(--red-8)"),
|
|
37983
|
-
onClick:
|
|
37983
|
+
onClick: () => {
|
|
37984
|
+
c("q"), l();
|
|
37985
|
+
},
|
|
37984
37986
|
children: (0, import_jsx_runtime.jsx)(Trash, {
|
|
37985
37987
|
fontSize: 36,
|
|
37986
37988
|
className: "w-5 h-5"
|
|
37987
37989
|
})
|
|
37988
37990
|
})
|
|
37989
|
-
}), r[22] = l, r[23] = M);
|
|
37991
|
+
}), r[22] = l, r[23] = c, r[24] = M) : M = r[24];
|
|
37990
37992
|
let I;
|
|
37991
|
-
return r[
|
|
37993
|
+
return r[25] !== T || r[26] !== j || r[27] !== M || r[28] !== h || r[29] !== y ? (I = (0, import_jsx_runtime.jsxs)("div", {
|
|
37992
37994
|
className: "flex",
|
|
37993
37995
|
children: [
|
|
37994
37996
|
h,
|
|
@@ -37997,7 +37999,7 @@ ${c}
|
|
|
37997
37999
|
j,
|
|
37998
38000
|
M
|
|
37999
38001
|
]
|
|
38000
|
-
}), r[
|
|
38002
|
+
}), r[25] = T, r[26] = j, r[27] = M, r[28] = h, r[29] = y, r[30] = I) : I = r[30], I;
|
|
38001
38003
|
};
|
|
38002
38004
|
function useSelectAllContent(e = true) {
|
|
38003
38005
|
return {
|
|
@@ -38702,23 +38704,23 @@ ${c}
|
|
|
38702
38704
|
if ((h || _ || m || W) && !G) return null;
|
|
38703
38705
|
let q;
|
|
38704
38706
|
r[44] !== d || r[45] !== T ? (q = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = q) : q = r[46];
|
|
38705
|
-
let bW = w === "edit",
|
|
38706
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== bW ? (
|
|
38707
|
+
let bW = w === "edit", Z;
|
|
38708
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== bW ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
38707
38709
|
allowExpand: bW,
|
|
38708
38710
|
output: c,
|
|
38709
38711
|
className: CSSClasses.outputArea,
|
|
38710
38712
|
cellId: d,
|
|
38711
38713
|
stale: I,
|
|
38712
38714
|
loading: R
|
|
38713
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = bW, r[52] =
|
|
38714
|
-
let
|
|
38715
|
-
return r[53] !== H || r[54] !== q || r[55] !==
|
|
38715
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = bW, r[52] = Z) : Z = r[52];
|
|
38716
|
+
let xW;
|
|
38717
|
+
return r[53] !== H || r[54] !== q || r[55] !== Z ? (xW = (0, import_jsx_runtime.jsx)("div", {
|
|
38716
38718
|
tabIndex: -1,
|
|
38717
38719
|
ref: j,
|
|
38718
38720
|
className: H,
|
|
38719
38721
|
...q,
|
|
38720
|
-
children:
|
|
38721
|
-
}), r[53] = H, r[54] = q, r[55] =
|
|
38722
|
+
children: Z
|
|
38723
|
+
}), r[53] = H, r[54] = q, r[55] = Z, r[56] = xW) : xW = r[56], xW;
|
|
38722
38724
|
});
|
|
38723
38725
|
VerticalCell.displayName = "VerticalCell";
|
|
38724
38726
|
const VerticalLayoutPlugin = {
|
|
@@ -39429,6 +39431,7 @@ ${c}
|
|
|
39429
39431
|
case "completion-result":
|
|
39430
39432
|
case "reload":
|
|
39431
39433
|
case "focus-cell":
|
|
39434
|
+
case "active-line":
|
|
39432
39435
|
case "variables":
|
|
39433
39436
|
case "variable-values":
|
|
39434
39437
|
case "data-column-preview":
|
|
@@ -39805,6 +39808,7 @@ ${c}
|
|
|
39805
39808
|
__publicField(this, "sendListFiles", throwNotImplemented);
|
|
39806
39809
|
__publicField(this, "sendSearchFiles", throwNotImplemented);
|
|
39807
39810
|
__publicField(this, "sendPdb", throwNotImplemented);
|
|
39811
|
+
__publicField(this, "sendSetBreakpoints", throwNotImplemented);
|
|
39808
39812
|
__publicField(this, "sendCreateFileOrFolder", throwNotImplemented);
|
|
39809
39813
|
__publicField(this, "sendDeleteFileOrFolder", throwNotImplemented);
|
|
39810
39814
|
__publicField(this, "sendCopyFileOrFolder", throwNotImplemented);
|