@marimo-team/islands 0.23.5-dev4 → 0.23.5-dev6
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/{slide-form-CYU9AOO4.js → code-visibility-C0bQaEHr.js} +835 -777
- package/dist/main.js +1039 -1073
- package/dist/{reveal-component-DK-5_Ei4.js → reveal-component-B2cdMcuv.js} +575 -527
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/editor/notebook-cell.tsx +33 -23
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +3 -5
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -17
- package/src/components/slides/reveal-component.tsx +159 -47
- package/src/components/slides/reveal-slides.css +8 -0
- package/src/components/slides/slide-cell-view.tsx +182 -0
- package/src/components/slides/slide-form.tsx +2 -0
- package/src/core/cells/utils.ts +45 -0
- package/src/core/islands/stubs/slide-cell-view.tsx +30 -0
- package/src/core/meta/__tests__/code-visibility.test.tsx +141 -0
- package/src/core/meta/code-visibility.ts +48 -0
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, Bn as Braces, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-CzFE0Irw.js";
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, Bn as Braces, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-CzFE0Irw.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
11
11
|
import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
@@ -21,6 +21,7 @@ import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET,
|
|
|
21
21
|
import { a as Content$1, c as Root$2, i as prettyError, n as ErrorBanner, o as Overlay, s as Portal$1, t as Banner } from "./error-banner-DnBPzEWg.js";
|
|
22
22
|
import { t as Tooltip } from "./tooltip-B0mtKTXm.js";
|
|
23
23
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-CzJgxo2J.js";
|
|
24
|
+
import { r as KnownQueryParams } from "./constants-D0gkYoE2.js";
|
|
24
25
|
import { C as dequal, S as getBuildingBlocks, _ as useSetAtom, d as useJotaiEffect, g as useAtomValue, h as useAtom, m as Provider, n as useTheme, r as aiEnabledAtom, v as useStore, w as useEvent_default, x as buildStore, y as atom } from "./useTheme-CX9pPLUH.js";
|
|
25
26
|
import { Z as EditorView } from "./dist-CCADb07R.js";
|
|
26
27
|
import { t as invariant } from "./invariant-UcGKQEhF.js";
|
|
@@ -34,7 +35,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
|
|
|
34
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
|
|
35
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
|
|
36
37
|
import { t as useAsyncData } from "./useAsyncData-CKYzhCis.js";
|
|
37
|
-
let
|
|
38
|
+
let getPageIndexForRow, contextAwarePanelType, GripHorizontal, TableHead, ChevronsDownUp, useInternalStateWithSync, RenderTextWithLinks, PANEL_TYPES, getStaticVirtualFiles, ContextAwarePanelItem, EmotionCacheProvider, Fill, Download, inferFieldTypes, TableRow, ArrowDownWideNarrow, Provider$1, Code, ColumnChartSpecModel, renderCellValue, Table, ChevronsUpDown, SlotNames, EyeOff, slotsController, Expand, contextAwarePanelOpen, isStaticNotebook, Toggle, Ellipsis, filtersToFilterGroup, TableBody, ChevronsRight, prettifyRowCount, useOverflowDetection, ComboboxItem, HtmlOutput, NAMELESS_COLUMN_PREFIX, TableHeader, ChevronLeft, generateColumns, useIntersectionObserver, DelayMount, usePrevious, downloadBlob, TabsTrigger, DEFAULT_SLIDE_TYPE, toFieldTypes, Filenames, ChartLoadingState, Slide, CommandEmpty, JsonOutput, CommandList, loadTableAndRawData, OutputArea, CommandSeparator, ADD_PRINTING_CLASS, TabsList, InstallPackageButton, TabsContent, DEFAULT_DECK_TRANSITION, TOO_MANY_ROWS, isCellAwareAtom, Funnel, contextAwarePanelOwner, TextWrap, RadioGroup, CommandInput, DataTable, Tabs, marimoVersionAtom, INDEX_COLUMN_NAME, SLIDE_TYPE_OPTIONS_BY_VALUE, getMimeValues, OutputRenderer, Maps, ColumnChartContext, showCodeInRunModeAtom, SELECT_COLUMN_ID, SlideSidebar, Command, useNotebookCodeAvailable, loadTableData, RadioGroupItem, CommandItem, downloadByURL, ChartErrorState, Combobox, Kbd, prettifyRowColumnCount, LazyVegaEmbed, downloadHTMLAsImage, ChartInfoState, TableCell, ChevronsLeft;
|
|
38
39
|
let __tla = Promise.all([
|
|
39
40
|
(() => {
|
|
40
41
|
try {
|
|
@@ -335,6 +336,22 @@ let __tla = Promise.all([
|
|
|
335
336
|
}
|
|
336
337
|
]
|
|
337
338
|
]);
|
|
339
|
+
Code = createLucideIcon("code", [
|
|
340
|
+
[
|
|
341
|
+
"path",
|
|
342
|
+
{
|
|
343
|
+
d: "m16 18 6-6-6-6",
|
|
344
|
+
key: "eg8j8"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
"path",
|
|
349
|
+
{
|
|
350
|
+
d: "m8 6-6 6 6 6",
|
|
351
|
+
key: "ppft3o"
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
]);
|
|
338
355
|
Cookie = createLucideIcon("cookie", [
|
|
339
356
|
[
|
|
340
357
|
"path",
|
|
@@ -5549,9 +5566,9 @@ let __tla = Promise.all([
|
|
|
5549
5566
|
t,
|
|
5550
5567
|
i.name
|
|
5551
5568
|
]), null;
|
|
5552
|
-
}), import_compiler_runtime$
|
|
5569
|
+
}), import_compiler_runtime$49 = require_compiler_runtime();
|
|
5553
5570
|
EmotionCacheProvider = (e) => {
|
|
5554
|
-
let t = (0, import_compiler_runtime$
|
|
5571
|
+
let t = (0, import_compiler_runtime$49.c)(6), { container: n, children: i } = e, a;
|
|
5555
5572
|
bb0: {
|
|
5556
5573
|
if (!n) {
|
|
5557
5574
|
let e3;
|
|
@@ -7464,33 +7481,33 @@ try {
|
|
|
7464
7481
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7465
7482
|
function y(e2) {
|
|
7466
7483
|
var _a2, _b, _c, _d;
|
|
7467
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
7484
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), ZM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7468
7485
|
h2
|
|
7469
|
-
]),
|
|
7470
|
-
|
|
7471
|
-
]),
|
|
7472
|
-
supportedColorSchemes:
|
|
7473
|
-
defaultLightColorScheme:
|
|
7474
|
-
defaultDarkColorScheme:
|
|
7486
|
+
]), QM = $[t], $M = QM || $, { colorSchemes: eN = _, components: tN = v, cssVarPrefix: nN } = $M, rN = Object.keys(eN).filter((e3) => !!eN[e3]).join(","), iN = import_react.useMemo(() => rN.split(","), [
|
|
7487
|
+
rN
|
|
7488
|
+
]), aN = typeof s == "string" ? s : s.light, oN = typeof s == "string" ? s : s.dark, { mode: sN, setMode: cN, systemMode: lN, lightColorScheme: uN, darkColorScheme: dN, colorScheme: fN, setColorScheme: pN } = useCurrentColorScheme({
|
|
7489
|
+
supportedColorSchemes: iN,
|
|
7490
|
+
defaultLightColorScheme: aN,
|
|
7491
|
+
defaultDarkColorScheme: oN,
|
|
7475
7492
|
modeStorageKey: y2,
|
|
7476
7493
|
colorSchemeStorageKey: S2,
|
|
7477
|
-
defaultMode:
|
|
7494
|
+
defaultMode: eN[aN] && eN[oN] ? U : ((_b = (_a2 = eN[$M.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $M.palette) == null ? void 0 : _c.mode),
|
|
7478
7495
|
storageManager: E,
|
|
7479
7496
|
storageWindow: O,
|
|
7480
7497
|
noSsr: K
|
|
7481
|
-
}),
|
|
7482
|
-
|
|
7483
|
-
let
|
|
7498
|
+
}), mN = sN, hN = fN;
|
|
7499
|
+
ZM && (mN = Q.mode, hN = Q.colorScheme);
|
|
7500
|
+
let gN = import_react.useMemo(() => {
|
|
7484
7501
|
var _a3;
|
|
7485
|
-
let e3 =
|
|
7486
|
-
|
|
7487
|
-
components:
|
|
7488
|
-
colorSchemes:
|
|
7489
|
-
cssVarPrefix:
|
|
7502
|
+
let e3 = hN || $M.defaultColorScheme, t2 = ((_a3 = $M.generateThemeVars) == null ? void 0 : _a3.call($M)) || $M.vars, n2 = {
|
|
7503
|
+
...$M,
|
|
7504
|
+
components: tN,
|
|
7505
|
+
colorSchemes: eN,
|
|
7506
|
+
cssVarPrefix: nN,
|
|
7490
7507
|
vars: t2
|
|
7491
7508
|
};
|
|
7492
7509
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7493
|
-
let t3 =
|
|
7510
|
+
let t3 = eN[e3];
|
|
7494
7511
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7495
7512
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7496
7513
|
...n2[e4],
|
|
@@ -7500,31 +7517,31 @@ try {
|
|
|
7500
7517
|
}
|
|
7501
7518
|
return c ? c(n2) : n2;
|
|
7502
7519
|
}, [
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
]),
|
|
7520
|
+
$M,
|
|
7521
|
+
hN,
|
|
7522
|
+
tN,
|
|
7523
|
+
eN,
|
|
7524
|
+
nN
|
|
7525
|
+
]), _N = $M.colorSchemeSelector;
|
|
7509
7526
|
useEnhancedEffect_default(() => {
|
|
7510
|
-
if (
|
|
7511
|
-
let e3 =
|
|
7512
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
7527
|
+
if (hN && M && _N && _N !== "media") {
|
|
7528
|
+
let e3 = _N, t2 = _N;
|
|
7529
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...iN.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", hN));
|
|
7513
7530
|
else {
|
|
7514
|
-
let e4 = t2.replace("%s",
|
|
7531
|
+
let e4 = t2.replace("%s", hN).match(/\[([^\]]+)\]/);
|
|
7515
7532
|
if (e4) {
|
|
7516
7533
|
let [t3, n2] = e4[1].split("=");
|
|
7517
|
-
n2 ||
|
|
7518
|
-
M.removeAttribute(t3.replace(
|
|
7534
|
+
n2 || iN.forEach((e5) => {
|
|
7535
|
+
M.removeAttribute(t3.replace(hN, e5));
|
|
7519
7536
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7520
|
-
} else M.setAttribute(t2,
|
|
7537
|
+
} else M.setAttribute(t2, hN);
|
|
7521
7538
|
}
|
|
7522
7539
|
}
|
|
7523
7540
|
}, [
|
|
7524
|
-
|
|
7525
|
-
|
|
7541
|
+
hN,
|
|
7542
|
+
_N,
|
|
7526
7543
|
M,
|
|
7527
|
-
|
|
7544
|
+
iN
|
|
7528
7545
|
]), import_react.useEffect(() => {
|
|
7529
7546
|
let e3;
|
|
7530
7547
|
if (w2 && q.current && A) {
|
|
@@ -7537,48 +7554,48 @@ try {
|
|
|
7537
7554
|
clearTimeout(e3);
|
|
7538
7555
|
};
|
|
7539
7556
|
}, [
|
|
7540
|
-
|
|
7557
|
+
hN,
|
|
7541
7558
|
w2,
|
|
7542
7559
|
A
|
|
7543
7560
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7544
7561
|
q.current = false;
|
|
7545
7562
|
}), []);
|
|
7546
|
-
let
|
|
7547
|
-
allColorSchemes:
|
|
7548
|
-
colorScheme:
|
|
7549
|
-
darkColorScheme:
|
|
7550
|
-
lightColorScheme:
|
|
7551
|
-
mode:
|
|
7552
|
-
setColorScheme:
|
|
7553
|
-
setMode:
|
|
7554
|
-
systemMode:
|
|
7563
|
+
let vN = import_react.useMemo(() => ({
|
|
7564
|
+
allColorSchemes: iN,
|
|
7565
|
+
colorScheme: hN,
|
|
7566
|
+
darkColorScheme: dN,
|
|
7567
|
+
lightColorScheme: uN,
|
|
7568
|
+
mode: mN,
|
|
7569
|
+
setColorScheme: pN,
|
|
7570
|
+
setMode: cN,
|
|
7571
|
+
systemMode: lN
|
|
7555
7572
|
}), [
|
|
7556
|
-
JM,
|
|
7557
|
-
aN,
|
|
7558
|
-
tN,
|
|
7559
|
-
eN,
|
|
7560
7573
|
iN,
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7574
|
+
hN,
|
|
7575
|
+
dN,
|
|
7576
|
+
uN,
|
|
7577
|
+
mN,
|
|
7578
|
+
pN,
|
|
7579
|
+
cN,
|
|
7580
|
+
lN,
|
|
7581
|
+
gN.colorSchemeSelector
|
|
7582
|
+
]), yN = true;
|
|
7583
|
+
(z || $M.cssVariables === false || ZM && (J == null ? void 0 : J.cssVarPrefix) === nN) && (yN = false);
|
|
7584
|
+
let bN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7568
7585
|
children: [
|
|
7569
7586
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7570
|
-
themeId:
|
|
7571
|
-
theme:
|
|
7587
|
+
themeId: QM ? t : void 0,
|
|
7588
|
+
theme: gN,
|
|
7572
7589
|
children: d2
|
|
7573
7590
|
}),
|
|
7574
|
-
|
|
7575
|
-
styles: ((_d =
|
|
7591
|
+
yN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7592
|
+
styles: ((_d = gN.generateStyleSheets) == null ? void 0 : _d.call(gN)) || []
|
|
7576
7593
|
})
|
|
7577
7594
|
]
|
|
7578
7595
|
});
|
|
7579
|
-
return
|
|
7580
|
-
value:
|
|
7581
|
-
children:
|
|
7596
|
+
return ZM ? bN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7597
|
+
value: vN,
|
|
7598
|
+
children: bN
|
|
7582
7599
|
});
|
|
7583
7600
|
}
|
|
7584
7601
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9078,10 +9095,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9078
9095
|
let n = useDefaultProps({
|
|
9079
9096
|
props: e,
|
|
9080
9097
|
name: "MuiInputBase"
|
|
9081
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
9082
|
-
}, []),
|
|
9098
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: ZM, onFocus: $, onKeyDown: QM, onKeyUp: $M, placeholder: eN, readOnly: tN, renderSuffix: nN, rows: rN, size: iN, slotProps: aN = {}, slots: oN = {}, startAdornment: sN, type: cN = "text", value: lN, ...uN } = n, dN = A.value == null ? lN : A.value, { current: fN } = import_react.useRef(dN != null), pN = import_react.useRef(), mN = import_react.useCallback((e2) => {
|
|
9099
|
+
}, []), hN = useForkRef_default(pN, M, A.ref, mN), [gN, _N] = import_react.useState(false), vN = useFormControl(), yN = formControlState({
|
|
9083
9100
|
props: n,
|
|
9084
|
-
muiFormControl:
|
|
9101
|
+
muiFormControl: vN,
|
|
9085
9102
|
states: [
|
|
9086
9103
|
"color",
|
|
9087
9104
|
"disabled",
|
|
@@ -9092,145 +9109,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9092
9109
|
"filled"
|
|
9093
9110
|
]
|
|
9094
9111
|
});
|
|
9095
|
-
|
|
9096
|
-
!
|
|
9112
|
+
yN.focused = vN ? vN.focused : gN, import_react.useEffect(() => {
|
|
9113
|
+
!vN && _ && gN && (_N(false), J && J());
|
|
9097
9114
|
}, [
|
|
9098
|
-
|
|
9115
|
+
vN,
|
|
9099
9116
|
_,
|
|
9100
|
-
|
|
9117
|
+
gN,
|
|
9101
9118
|
J
|
|
9102
9119
|
]);
|
|
9103
|
-
let
|
|
9104
|
-
isFilled(e2) ?
|
|
9120
|
+
let bN = vN && vN.onFilled, xN = vN && vN.onEmpty, SN = import_react.useCallback((e2) => {
|
|
9121
|
+
isFilled(e2) ? bN && bN() : xN && xN();
|
|
9105
9122
|
}, [
|
|
9106
|
-
|
|
9107
|
-
|
|
9123
|
+
bN,
|
|
9124
|
+
xN
|
|
9108
9125
|
]);
|
|
9109
9126
|
useEnhancedEffect_default$1(() => {
|
|
9110
|
-
|
|
9111
|
-
value:
|
|
9127
|
+
fN && SN({
|
|
9128
|
+
value: dN
|
|
9112
9129
|
});
|
|
9113
9130
|
}, [
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9131
|
+
dN,
|
|
9132
|
+
SN,
|
|
9133
|
+
fN
|
|
9117
9134
|
]);
|
|
9118
|
-
let
|
|
9119
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9120
|
-
},
|
|
9121
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9122
|
-
},
|
|
9123
|
-
if (!
|
|
9124
|
-
let t3 = e2.target ||
|
|
9135
|
+
let CN = (e2) => {
|
|
9136
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), vN && vN.onFocus ? vN.onFocus(e2) : _N(true);
|
|
9137
|
+
}, wN = (e2) => {
|
|
9138
|
+
J && J(e2), A.onBlur && A.onBlur(e2), vN && vN.onBlur ? vN.onBlur(e2) : _N(false);
|
|
9139
|
+
}, TN = (e2, ...t2) => {
|
|
9140
|
+
if (!fN) {
|
|
9141
|
+
let t3 = e2.target || pN.current;
|
|
9125
9142
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9126
|
-
|
|
9143
|
+
SN({
|
|
9127
9144
|
value: t3.value
|
|
9128
9145
|
});
|
|
9129
9146
|
}
|
|
9130
9147
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9131
9148
|
};
|
|
9132
9149
|
import_react.useEffect(() => {
|
|
9133
|
-
|
|
9150
|
+
SN(pN.current);
|
|
9134
9151
|
}, []);
|
|
9135
|
-
let
|
|
9136
|
-
|
|
9137
|
-
},
|
|
9138
|
-
K &&
|
|
9152
|
+
let EN = (e2) => {
|
|
9153
|
+
pN.current && e2.currentTarget === e2.target && pN.current.focus(), ZM && ZM(e2);
|
|
9154
|
+
}, DN = O, ON = A;
|
|
9155
|
+
K && DN === "input" && (ON = rN ? {
|
|
9139
9156
|
type: void 0,
|
|
9140
|
-
minRows:
|
|
9141
|
-
maxRows:
|
|
9142
|
-
...
|
|
9157
|
+
minRows: rN,
|
|
9158
|
+
maxRows: rN,
|
|
9159
|
+
...ON
|
|
9143
9160
|
} : {
|
|
9144
9161
|
type: void 0,
|
|
9145
9162
|
maxRows: z,
|
|
9146
9163
|
minRows: U,
|
|
9147
|
-
...
|
|
9148
|
-
},
|
|
9149
|
-
let
|
|
9150
|
-
|
|
9164
|
+
...ON
|
|
9165
|
+
}, DN = TextareaAutosize_default);
|
|
9166
|
+
let kN = (e2) => {
|
|
9167
|
+
SN(e2.animationName === "mui-auto-fill-cancel" ? pN.current : {
|
|
9151
9168
|
value: "x"
|
|
9152
9169
|
});
|
|
9153
9170
|
};
|
|
9154
9171
|
import_react.useEffect(() => {
|
|
9155
|
-
|
|
9172
|
+
vN && vN.setAdornedStart(!!sN);
|
|
9156
9173
|
}, [
|
|
9157
|
-
|
|
9158
|
-
|
|
9174
|
+
vN,
|
|
9175
|
+
sN
|
|
9159
9176
|
]);
|
|
9160
|
-
let
|
|
9177
|
+
let AN = {
|
|
9161
9178
|
...n,
|
|
9162
|
-
color:
|
|
9163
|
-
disabled:
|
|
9179
|
+
color: yN.color || "primary",
|
|
9180
|
+
disabled: yN.disabled,
|
|
9164
9181
|
endAdornment: y,
|
|
9165
|
-
error:
|
|
9166
|
-
focused:
|
|
9167
|
-
formControl:
|
|
9182
|
+
error: yN.error,
|
|
9183
|
+
focused: yN.focused,
|
|
9184
|
+
formControl: vN,
|
|
9168
9185
|
fullWidth: w,
|
|
9169
|
-
hiddenLabel:
|
|
9186
|
+
hiddenLabel: yN.hiddenLabel,
|
|
9170
9187
|
multiline: K,
|
|
9171
|
-
size:
|
|
9172
|
-
startAdornment:
|
|
9173
|
-
type:
|
|
9174
|
-
},
|
|
9175
|
-
return
|
|
9176
|
-
...
|
|
9177
|
-
...
|
|
9188
|
+
size: yN.size,
|
|
9189
|
+
startAdornment: sN,
|
|
9190
|
+
type: cN
|
|
9191
|
+
}, jN = useUtilityClasses(AN), MN = oN.root || d.Root || InputBaseRoot, NN = aN.root || f.root || {}, PN = oN.input || d.Input || InputBaseInput;
|
|
9192
|
+
return ON = {
|
|
9193
|
+
...ON,
|
|
9194
|
+
...aN.input ?? f.input
|
|
9178
9195
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9179
9196
|
children: [
|
|
9180
9197
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9181
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9182
|
-
...
|
|
9198
|
+
(0, import_jsx_runtime.jsxs)(MN, {
|
|
9199
|
+
...NN,
|
|
9183
9200
|
ref: t,
|
|
9184
|
-
onClick:
|
|
9185
|
-
...
|
|
9186
|
-
...!isHostComponent_default(
|
|
9201
|
+
onClick: EN,
|
|
9202
|
+
...uN,
|
|
9203
|
+
...!isHostComponent_default(MN) && {
|
|
9187
9204
|
ownerState: {
|
|
9188
|
-
...
|
|
9189
|
-
...
|
|
9205
|
+
...AN,
|
|
9206
|
+
...NN.ownerState
|
|
9190
9207
|
}
|
|
9191
9208
|
},
|
|
9192
|
-
className: clsx_default(
|
|
9209
|
+
className: clsx_default(jN.root, NN.className, s, tN && "MuiInputBase-readOnly"),
|
|
9193
9210
|
children: [
|
|
9194
|
-
|
|
9211
|
+
sN,
|
|
9195
9212
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9196
9213
|
value: null,
|
|
9197
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9198
|
-
"aria-invalid":
|
|
9214
|
+
children: (0, import_jsx_runtime.jsx)(PN, {
|
|
9215
|
+
"aria-invalid": yN.error,
|
|
9199
9216
|
"aria-describedby": i,
|
|
9200
9217
|
autoComplete: a,
|
|
9201
9218
|
autoFocus: o,
|
|
9202
9219
|
defaultValue: h,
|
|
9203
|
-
disabled:
|
|
9220
|
+
disabled: yN.disabled,
|
|
9204
9221
|
id: E,
|
|
9205
|
-
onAnimationStart:
|
|
9222
|
+
onAnimationStart: kN,
|
|
9206
9223
|
name: q,
|
|
9207
|
-
placeholder:
|
|
9208
|
-
readOnly:
|
|
9209
|
-
required:
|
|
9210
|
-
rows:
|
|
9211
|
-
value:
|
|
9212
|
-
onKeyDown:
|
|
9213
|
-
onKeyUp:
|
|
9214
|
-
type:
|
|
9215
|
-
...
|
|
9216
|
-
...!isHostComponent_default(
|
|
9217
|
-
as:
|
|
9224
|
+
placeholder: eN,
|
|
9225
|
+
readOnly: tN,
|
|
9226
|
+
required: yN.required,
|
|
9227
|
+
rows: rN,
|
|
9228
|
+
value: dN,
|
|
9229
|
+
onKeyDown: QM,
|
|
9230
|
+
onKeyUp: $M,
|
|
9231
|
+
type: cN,
|
|
9232
|
+
...ON,
|
|
9233
|
+
...!isHostComponent_default(PN) && {
|
|
9234
|
+
as: DN,
|
|
9218
9235
|
ownerState: {
|
|
9219
|
-
...
|
|
9220
|
-
...
|
|
9236
|
+
...AN,
|
|
9237
|
+
...ON.ownerState
|
|
9221
9238
|
}
|
|
9222
9239
|
},
|
|
9223
|
-
ref:
|
|
9224
|
-
className: clsx_default(
|
|
9225
|
-
onBlur:
|
|
9226
|
-
onChange:
|
|
9227
|
-
onFocus:
|
|
9240
|
+
ref: hN,
|
|
9241
|
+
className: clsx_default(jN.input, ON.className, tN && "MuiInputBase-readOnly"),
|
|
9242
|
+
onBlur: wN,
|
|
9243
|
+
onChange: TN,
|
|
9244
|
+
onFocus: CN
|
|
9228
9245
|
})
|
|
9229
9246
|
}),
|
|
9230
9247
|
y,
|
|
9231
|
-
|
|
9232
|
-
...
|
|
9233
|
-
startAdornment:
|
|
9248
|
+
nN ? nN({
|
|
9249
|
+
...yN,
|
|
9250
|
+
startAdornment: sN
|
|
9234
9251
|
}) : null
|
|
9235
9252
|
]
|
|
9236
9253
|
})
|
|
@@ -10306,30 +10323,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10306
10323
|
M,
|
|
10307
10324
|
i,
|
|
10308
10325
|
a
|
|
10309
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10310
|
-
|
|
10326
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), ZM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), QM = useJsonViewerStore((e2) => e2.colorspace.base0C), $M = useJsonViewerStore((e2) => e2.colorspace.base0A), eN = useJsonViewerStore((e2) => e2.displayComma), tN = useJsonViewerStore((e2) => e2.quotesOnKeys), nN = useJsonViewerStore((e2) => e2.rootName), rN = U === t, iN = Number.isInteger(Number(A)), aN = useJsonViewerStore((e2) => e2.enableAdd), oN = useJsonViewerStore((e2) => e2.onAdd), sN = (0, import_react.useMemo)(() => !oN || a !== void 0 || aN === false || v === false ? false : typeof aN == "function" ? !!aN(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10327
|
+
oN,
|
|
10311
10328
|
a,
|
|
10312
10329
|
i,
|
|
10313
|
-
|
|
10330
|
+
aN,
|
|
10314
10331
|
v,
|
|
10315
10332
|
t
|
|
10316
|
-
]),
|
|
10317
|
-
|
|
10333
|
+
]), cN = useJsonViewerStore((e2) => e2.enableDelete), lN = useJsonViewerStore((e2) => e2.onDelete), uN = (0, import_react.useMemo)(() => !lN || a !== void 0 || rN || cN === false || v === false ? false : typeof cN == "function" ? !!cN(i, t) : cN, [
|
|
10334
|
+
lN,
|
|
10318
10335
|
a,
|
|
10319
|
-
|
|
10336
|
+
rN,
|
|
10320
10337
|
i,
|
|
10321
|
-
|
|
10338
|
+
cN,
|
|
10322
10339
|
v,
|
|
10323
10340
|
t
|
|
10324
|
-
]),
|
|
10325
|
-
|
|
10341
|
+
]), dN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: fN, copied: pN } = useClipboard(), mN = useJsonViewerStore((e2) => e2.highlightUpdates), hN = (0, import_react.useMemo)(() => !mN || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
10342
|
+
mN,
|
|
10326
10343
|
n,
|
|
10327
10344
|
t
|
|
10328
|
-
]),
|
|
10345
|
+
]), gN = (0, import_react.useRef)();
|
|
10329
10346
|
(0, import_react.useEffect)(() => {
|
|
10330
|
-
|
|
10347
|
+
gN.current && hN && "animate" in gN.current && gN.current.animate([
|
|
10331
10348
|
{
|
|
10332
|
-
backgroundColor:
|
|
10349
|
+
backgroundColor: $M
|
|
10333
10350
|
},
|
|
10334
10351
|
{
|
|
10335
10352
|
backgroundColor: ""
|
|
@@ -10339,40 +10356,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10339
10356
|
easing: "ease-in"
|
|
10340
10357
|
});
|
|
10341
10358
|
}, [
|
|
10342
|
-
|
|
10343
|
-
|
|
10359
|
+
$M,
|
|
10360
|
+
hN,
|
|
10344
10361
|
n,
|
|
10345
10362
|
t
|
|
10346
10363
|
]);
|
|
10347
|
-
let
|
|
10364
|
+
let _N = (0, import_react.useCallback)((e2) => {
|
|
10348
10365
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10349
10366
|
}, [
|
|
10350
10367
|
h,
|
|
10351
10368
|
t
|
|
10352
|
-
]),
|
|
10369
|
+
]), vN = (0, import_react.useCallback)(() => {
|
|
10353
10370
|
Q(false), E("");
|
|
10354
10371
|
}, [
|
|
10355
10372
|
Q,
|
|
10356
10373
|
E
|
|
10357
|
-
]),
|
|
10374
|
+
]), yN = (0, import_react.useCallback)((e2) => {
|
|
10358
10375
|
if (Q(false), _) try {
|
|
10359
|
-
|
|
10376
|
+
ZM(i, t, _(e2));
|
|
10360
10377
|
} catch {
|
|
10361
10378
|
}
|
|
10362
10379
|
}, [
|
|
10363
10380
|
Q,
|
|
10364
10381
|
_,
|
|
10365
|
-
|
|
10382
|
+
ZM,
|
|
10366
10383
|
i,
|
|
10367
10384
|
t
|
|
10368
|
-
]),
|
|
10385
|
+
]), bN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10369
10386
|
children: [
|
|
10370
10387
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10371
10388
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10372
10389
|
sx: {
|
|
10373
10390
|
fontSize: ".8rem"
|
|
10374
10391
|
},
|
|
10375
|
-
onClick:
|
|
10392
|
+
onClick: vN
|
|
10376
10393
|
})
|
|
10377
10394
|
}),
|
|
10378
10395
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10380,22 +10397,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10380
10397
|
sx: {
|
|
10381
10398
|
fontSize: ".8rem"
|
|
10382
10399
|
},
|
|
10383
|
-
onClick: () =>
|
|
10400
|
+
onClick: () => yN(w)
|
|
10384
10401
|
})
|
|
10385
10402
|
})
|
|
10386
10403
|
]
|
|
10387
10404
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10388
10405
|
children: [
|
|
10389
|
-
|
|
10406
|
+
dN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10390
10407
|
onClick: (e2) => {
|
|
10391
10408
|
e2.preventDefault();
|
|
10392
10409
|
try {
|
|
10393
|
-
|
|
10410
|
+
fN(i, t, copyString);
|
|
10394
10411
|
} catch (e3) {
|
|
10395
10412
|
console.error(e3);
|
|
10396
10413
|
}
|
|
10397
10414
|
},
|
|
10398
|
-
children:
|
|
10415
|
+
children: pN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10399
10416
|
sx: {
|
|
10400
10417
|
fontSize: ".8rem"
|
|
10401
10418
|
}
|
|
@@ -10406,16 +10423,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10406
10423
|
})
|
|
10407
10424
|
}),
|
|
10408
10425
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10409
|
-
onClick:
|
|
10426
|
+
onClick: _N,
|
|
10410
10427
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10411
10428
|
sx: {
|
|
10412
10429
|
fontSize: ".8rem"
|
|
10413
10430
|
}
|
|
10414
10431
|
})
|
|
10415
10432
|
}),
|
|
10416
|
-
|
|
10433
|
+
sN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10417
10434
|
onClick: (e2) => {
|
|
10418
|
-
e2.preventDefault(),
|
|
10435
|
+
e2.preventDefault(), oN == null ? void 0 : oN(i);
|
|
10419
10436
|
},
|
|
10420
10437
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10421
10438
|
sx: {
|
|
@@ -10423,9 +10440,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10423
10440
|
}
|
|
10424
10441
|
})
|
|
10425
10442
|
}),
|
|
10426
|
-
|
|
10443
|
+
uN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10427
10444
|
onClick: (e2) => {
|
|
10428
|
-
e2.preventDefault(),
|
|
10445
|
+
e2.preventDefault(), lN == null ? void 0 : lN(i, t);
|
|
10429
10446
|
},
|
|
10430
10447
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10431
10448
|
sx: {
|
|
@@ -10438,24 +10455,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10438
10455
|
f,
|
|
10439
10456
|
h,
|
|
10440
10457
|
_,
|
|
10441
|
-
|
|
10442
|
-
|
|
10458
|
+
pN,
|
|
10459
|
+
fN,
|
|
10443
10460
|
S,
|
|
10444
10461
|
J,
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10462
|
+
dN,
|
|
10463
|
+
sN,
|
|
10464
|
+
uN,
|
|
10448
10465
|
w,
|
|
10449
10466
|
i,
|
|
10450
10467
|
t,
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
]),
|
|
10468
|
+
oN,
|
|
10469
|
+
lN,
|
|
10470
|
+
_N,
|
|
10471
|
+
vN,
|
|
10472
|
+
yN
|
|
10473
|
+
]), xN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10457
10474
|
t
|
|
10458
|
-
]),
|
|
10475
|
+
]), SN = !xN && !!(c && d), CN = useJsonViewerStore((e2) => e2.keyRenderer), wN = (0, import_react.useMemo)(() => ({
|
|
10459
10476
|
path: i,
|
|
10460
10477
|
inspect: K,
|
|
10461
10478
|
setInspect: q,
|
|
@@ -10492,13 +10509,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10492
10509
|
opacity: 0.8
|
|
10493
10510
|
},
|
|
10494
10511
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10495
|
-
e2.isDefaultPrevented() ||
|
|
10512
|
+
e2.isDefaultPrevented() || xN || q((e3) => !e3);
|
|
10496
10513
|
}, [
|
|
10497
|
-
|
|
10514
|
+
xN,
|
|
10498
10515
|
q
|
|
10499
10516
|
]),
|
|
10500
10517
|
children: [
|
|
10501
|
-
|
|
10518
|
+
SN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10502
10519
|
className: "data-key-toggle-expanded",
|
|
10503
10520
|
sx: {
|
|
10504
10521
|
fontSize: ".8rem",
|
|
@@ -10516,27 +10533,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10516
10533
|
}
|
|
10517
10534
|
}) : null,
|
|
10518
10535
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10519
|
-
ref:
|
|
10536
|
+
ref: gN,
|
|
10520
10537
|
className: "data-key-key",
|
|
10521
10538
|
component: "span",
|
|
10522
|
-
children:
|
|
10539
|
+
children: rN && O === 0 ? nN === false ? null : tN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10523
10540
|
children: [
|
|
10524
10541
|
'"',
|
|
10525
|
-
|
|
10542
|
+
nN,
|
|
10526
10543
|
'"'
|
|
10527
10544
|
]
|
|
10528
10545
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10529
|
-
children:
|
|
10530
|
-
}) :
|
|
10531
|
-
...
|
|
10532
|
-
}) : a === void 0 && (
|
|
10546
|
+
children: nN
|
|
10547
|
+
}) : CN.when(wN) ? (0, import_jsx_runtime.jsx)(CN, {
|
|
10548
|
+
...wN
|
|
10549
|
+
}) : a === void 0 && (iN ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10533
10550
|
component: "span",
|
|
10534
10551
|
style: {
|
|
10535
|
-
color:
|
|
10536
|
-
userSelect:
|
|
10552
|
+
color: QM,
|
|
10553
|
+
userSelect: iN ? "none" : "auto"
|
|
10537
10554
|
},
|
|
10538
10555
|
children: A
|
|
10539
|
-
}) :
|
|
10556
|
+
}) : tN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10540
10557
|
children: [
|
|
10541
10558
|
'"',
|
|
10542
10559
|
A,
|
|
@@ -10546,7 +10563,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10546
10563
|
children: A
|
|
10547
10564
|
}))
|
|
10548
10565
|
}),
|
|
10549
|
-
|
|
10566
|
+
rN ? nN !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10550
10567
|
className: "data-key-colon",
|
|
10551
10568
|
sx: {
|
|
10552
10569
|
mr: 0.5
|
|
@@ -10559,38 +10576,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10559
10576
|
".data-key-key:empty + &": {
|
|
10560
10577
|
display: "none"
|
|
10561
10578
|
},
|
|
10562
|
-
userSelect:
|
|
10579
|
+
userSelect: iN ? "none" : "auto"
|
|
10563
10580
|
},
|
|
10564
10581
|
children: ":"
|
|
10565
10582
|
}),
|
|
10566
10583
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10567
|
-
...
|
|
10584
|
+
...wN
|
|
10568
10585
|
}),
|
|
10569
|
-
I &&
|
|
10586
|
+
I && SN && K && bN
|
|
10570
10587
|
]
|
|
10571
10588
|
}),
|
|
10572
10589
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10573
10590
|
path: i,
|
|
10574
10591
|
value: w,
|
|
10575
10592
|
setValue: E,
|
|
10576
|
-
abortEditing:
|
|
10577
|
-
commitEditing:
|
|
10593
|
+
abortEditing: vN,
|
|
10594
|
+
commitEditing: yN
|
|
10578
10595
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10579
|
-
...
|
|
10596
|
+
...wN
|
|
10580
10597
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10581
10598
|
component: "span",
|
|
10582
10599
|
className: "data-value-fallback",
|
|
10583
10600
|
children: `fallback: ${t}`
|
|
10584
10601
|
}),
|
|
10585
10602
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10586
|
-
...
|
|
10603
|
+
...wN
|
|
10587
10604
|
}),
|
|
10588
|
-
!o &&
|
|
10605
|
+
!o && eN && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10589
10606
|
children: ","
|
|
10590
10607
|
}),
|
|
10591
|
-
I &&
|
|
10592
|
-
I && !
|
|
10593
|
-
!I && J &&
|
|
10608
|
+
I && SN && !K && bN,
|
|
10609
|
+
I && !SN && bN,
|
|
10610
|
+
!I && J && bN
|
|
10594
10611
|
]
|
|
10595
10612
|
});
|
|
10596
10613
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -10719,9 +10736,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10719
10736
|
})
|
|
10720
10737
|
})
|
|
10721
10738
|
});
|
|
10722
|
-
}, import_compiler_runtime$
|
|
10739
|
+
}, import_compiler_runtime$48 = require_compiler_runtime();
|
|
10723
10740
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
10724
|
-
let t = (0, import_compiler_runtime$
|
|
10741
|
+
let t = (0, import_compiler_runtime$48.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
10725
10742
|
if (!n) return null;
|
|
10726
10743
|
let d = !c, f;
|
|
10727
10744
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -10740,9 +10757,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10740
10757
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
10741
10758
|
});
|
|
10742
10759
|
HtmlOutput.displayName = "HtmlOutput";
|
|
10743
|
-
var import_compiler_runtime$
|
|
10760
|
+
var import_compiler_runtime$47 = require_compiler_runtime();
|
|
10744
10761
|
const ImageOutput = (e) => {
|
|
10745
|
-
let t = (0, import_compiler_runtime$
|
|
10762
|
+
let t = (0, import_compiler_runtime$47.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
10746
10763
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
10747
10764
|
src: n,
|
|
10748
10765
|
alt: c,
|
|
@@ -10755,9 +10772,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10755
10772
|
children: d
|
|
10756
10773
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
10757
10774
|
};
|
|
10758
|
-
var import_compiler_runtime$
|
|
10775
|
+
var import_compiler_runtime$46 = require_compiler_runtime();
|
|
10759
10776
|
Kbd = (e) => {
|
|
10760
|
-
let t = (0, import_compiler_runtime$
|
|
10777
|
+
let t = (0, import_compiler_runtime$46.c)(5), n;
|
|
10761
10778
|
t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
10762
10779
|
let i;
|
|
10763
10780
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -10765,9 +10782,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10765
10782
|
children: e.children
|
|
10766
10783
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
10767
10784
|
};
|
|
10768
|
-
var import_compiler_runtime$
|
|
10785
|
+
var import_compiler_runtime$45 = require_compiler_runtime();
|
|
10769
10786
|
const ExternalLink$1 = (e) => {
|
|
10770
|
-
let t = (0, import_compiler_runtime$
|
|
10787
|
+
let t = (0, import_compiler_runtime$45.c)(3), { href: n, children: i } = e, a;
|
|
10771
10788
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
10772
10789
|
href: n,
|
|
10773
10790
|
target: "_blank",
|
|
@@ -10938,17 +10955,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
10938
10955
|
os: "os",
|
|
10939
10956
|
re: "re",
|
|
10940
10957
|
sys: "sys"
|
|
10941
|
-
}, import_compiler_runtime$
|
|
10958
|
+
}, import_compiler_runtime$44 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
10942
10959
|
function useFixMode() {
|
|
10943
|
-
let e = (0, import_compiler_runtime$
|
|
10960
|
+
let e = (0, import_compiler_runtime$44.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
10944
10961
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
10945
10962
|
fixMode: t,
|
|
10946
10963
|
setFixMode: n
|
|
10947
10964
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
10948
10965
|
}
|
|
10949
|
-
var import_compiler_runtime$
|
|
10966
|
+
var import_compiler_runtime$43 = require_compiler_runtime();
|
|
10950
10967
|
const AutoFixButton = (e) => {
|
|
10951
|
-
let t = (0, import_compiler_runtime$
|
|
10968
|
+
let t = (0, import_compiler_runtime$43.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), h;
|
|
10952
10969
|
if (t[0] !== d || t[1] !== n) {
|
|
10953
10970
|
let e2;
|
|
10954
10971
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -11009,7 +11026,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11009
11026
|
};
|
|
11010
11027
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
11011
11028
|
const AIFixButton = (e) => {
|
|
11012
|
-
let t = (0, import_compiler_runtime$
|
|
11029
|
+
let t = (0, import_compiler_runtime$43.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
11013
11030
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11014
11031
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
11015
11032
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11078,7 +11095,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11078
11095
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
11079
11096
|
};
|
|
11080
11097
|
var AiModeItem = (e) => {
|
|
11081
|
-
let t = (0, import_compiler_runtime$
|
|
11098
|
+
let t = (0, import_compiler_runtime$43.c)(12), { mode: n } = e, i;
|
|
11082
11099
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11083
11100
|
className: "h-4 w-4"
|
|
11084
11101
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11115,9 +11132,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11115
11132
|
function useFilename() {
|
|
11116
11133
|
return useAtomValue(filenameAtom);
|
|
11117
11134
|
}
|
|
11118
|
-
var import_compiler_runtime$
|
|
11135
|
+
var import_compiler_runtime$41 = require_compiler_runtime();
|
|
11119
11136
|
const CellLink = (e) => {
|
|
11120
|
-
let t = (0, import_compiler_runtime$
|
|
11137
|
+
let t = (0, import_compiler_runtime$41.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$6, y;
|
|
11121
11138
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
11122
11139
|
let S;
|
|
11123
11140
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -11137,13 +11154,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11137
11154
|
children: w
|
|
11138
11155
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = O) : O = t[11], O;
|
|
11139
11156
|
}, CellLinkError = (e) => {
|
|
11140
|
-
let t = (0, import_compiler_runtime$
|
|
11157
|
+
let t = (0, import_compiler_runtime$41.c)(2), n;
|
|
11141
11158
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
11142
11159
|
...e,
|
|
11143
11160
|
variant: "destructive"
|
|
11144
11161
|
}), t[0] = e, t[1] = n), n;
|
|
11145
11162
|
}, CellLinkTraceback = (e) => {
|
|
11146
|
-
let t = (0, import_compiler_runtime$
|
|
11163
|
+
let t = (0, import_compiler_runtime$41.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
11147
11164
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
11148
11165
|
let s;
|
|
11149
11166
|
t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
|
|
@@ -11168,7 +11185,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11168
11185
|
o.classList.remove("focus-outline");
|
|
11169
11186
|
}, 2e3)), true);
|
|
11170
11187
|
}
|
|
11171
|
-
function _temp$
|
|
11188
|
+
function _temp$6(e) {
|
|
11172
11189
|
return e;
|
|
11173
11190
|
}
|
|
11174
11191
|
const showAddPackageToast = (e, t) => {
|
|
@@ -11240,7 +11257,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11240
11257
|
value: e2
|
|
11241
11258
|
});
|
|
11242
11259
|
}
|
|
11243
|
-
var import_compiler_runtime$
|
|
11260
|
+
var import_compiler_runtime$40 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
11244
11261
|
const cleanAnsiCodes = (e) => {
|
|
11245
11262
|
let t = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
11246
11263
|
return e.replaceAll(t, "");
|
|
@@ -11308,7 +11325,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11308
11325
|
});
|
|
11309
11326
|
}
|
|
11310
11327
|
var InstallPackageLink = (e) => {
|
|
11311
|
-
let t = (0, import_compiler_runtime$
|
|
11328
|
+
let t = (0, import_compiler_runtime$40.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
|
|
11312
11329
|
t[0] !== a || t[1] !== n ? (o = (e2) => {
|
|
11313
11330
|
a(n), e2.preventDefault();
|
|
11314
11331
|
}, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
|
|
@@ -11381,15 +11398,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11381
11398
|
})
|
|
11382
11399
|
});
|
|
11383
11400
|
RenderTextWithLinks = (e) => {
|
|
11384
|
-
let t = (0, import_compiler_runtime$
|
|
11401
|
+
let t = (0, import_compiler_runtime$40.c)(4), { text: n } = e, i;
|
|
11385
11402
|
t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
|
|
11386
11403
|
let a = i, o;
|
|
11387
11404
|
return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
11388
11405
|
children: a
|
|
11389
11406
|
}), t[2] = a, t[3] = o), o;
|
|
11390
11407
|
};
|
|
11391
|
-
var import_compiler_runtime$
|
|
11392
|
-
let t = (0, import_compiler_runtime$
|
|
11408
|
+
var import_compiler_runtime$39 = require_compiler_runtime(), Tip = (e) => {
|
|
11409
|
+
let t = (0, import_compiler_runtime$39.c)(10), n = e.title ?? "Tip", i;
|
|
11393
11410
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
11394
11411
|
className: "pt-2 pb-2 font-normal",
|
|
11395
11412
|
children: n
|
|
@@ -11417,9 +11434,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11417
11434
|
}), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
|
|
11418
11435
|
};
|
|
11419
11436
|
const MarimoErrorOutput = (e) => {
|
|
11420
|
-
let t = (0, import_compiler_runtime$
|
|
11421
|
-
if (n.some(_temp$
|
|
11422
|
-
else if (n.some(_temp2$
|
|
11437
|
+
let t = (0, import_compiler_runtime$39.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", h = "text-error";
|
|
11438
|
+
if (n.some(_temp$5)) c = "Interrupted";
|
|
11439
|
+
else if (n.some(_temp2$3)) c = "An internal error occurred";
|
|
11423
11440
|
else if (n.some(_temp3$1)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
|
|
11424
11441
|
else if (n.some(_temp4)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
|
|
11425
11442
|
else if (n.some(_temp5)) c = "SQL error";
|
|
@@ -11431,18 +11448,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11431
11448
|
}
|
|
11432
11449
|
let _, v, y, S, w, E;
|
|
11433
11450
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11434
|
-
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
11435
|
-
t[15] === s ?
|
|
11451
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), ZM = n.filter(_temp16), $ = n.filter(_temp17), QM;
|
|
11452
|
+
t[15] === s ? QM = t[16] : (QM = () => {
|
|
11436
11453
|
s.openApplication("scratchpad");
|
|
11437
|
-
}, t[15] = s, t[16] =
|
|
11438
|
-
let
|
|
11454
|
+
}, t[15] = s, t[16] = QM);
|
|
11455
|
+
let $M = QM, eN = () => {
|
|
11439
11456
|
let t2 = [];
|
|
11440
|
-
if (Q.length > 0 ||
|
|
11457
|
+
if (Q.length > 0 || ZM.length > 0) {
|
|
11441
11458
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11442
11459
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11443
11460
|
children: [
|
|
11444
11461
|
Q.map(_temp20),
|
|
11445
|
-
|
|
11462
|
+
ZM.map(_temp21),
|
|
11446
11463
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11447
11464
|
size: "xs",
|
|
11448
11465
|
variant: "outline",
|
|
@@ -11474,7 +11491,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11474
11491
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11475
11492
|
errors: [
|
|
11476
11493
|
...Q,
|
|
11477
|
-
...
|
|
11494
|
+
...ZM
|
|
11478
11495
|
],
|
|
11479
11496
|
cellId: i
|
|
11480
11497
|
})
|
|
@@ -11635,7 +11652,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11635
11652
|
size: "xs",
|
|
11636
11653
|
variant: "link",
|
|
11637
11654
|
className: "my-2 font-normal mx-0 px-0",
|
|
11638
|
-
onClick:
|
|
11655
|
+
onClick: $M,
|
|
11639
11656
|
children: [
|
|
11640
11657
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11641
11658
|
className: "h-3"
|
|
@@ -11760,13 +11777,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11760
11777
|
})
|
|
11761
11778
|
]
|
|
11762
11779
|
}, "sql-errors")), t2;
|
|
11763
|
-
},
|
|
11764
|
-
t[17] !==
|
|
11765
|
-
className:
|
|
11780
|
+
}, tN = `font-code font-medium tracking-wide ${h}`, nN;
|
|
11781
|
+
t[17] !== tN || t[18] !== c ? (nN = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11782
|
+
className: tN,
|
|
11766
11783
|
children: c
|
|
11767
|
-
}), t[17] =
|
|
11768
|
-
let
|
|
11769
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
11784
|
+
}), t[17] = tN, t[18] = c, t[19] = nN) : nN = t[19];
|
|
11785
|
+
let rN = nN;
|
|
11786
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = rN, v = "flex flex-col gap-8", y = eN(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
11770
11787
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11771
11788
|
let O;
|
|
11772
11789
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -11785,10 +11802,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11785
11802
|
]
|
|
11786
11803
|
}), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
|
|
11787
11804
|
};
|
|
11788
|
-
function _temp$
|
|
11805
|
+
function _temp$5(e) {
|
|
11789
11806
|
return e.type === "interruption";
|
|
11790
11807
|
}
|
|
11791
|
-
function _temp2$
|
|
11808
|
+
function _temp2$3(e) {
|
|
11792
11809
|
return e.type === "internal";
|
|
11793
11810
|
}
|
|
11794
11811
|
function _temp3$1(e) {
|
|
@@ -12094,9 +12111,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12094
12111
|
})
|
|
12095
12112
|
}, `sql-error-${t}`);
|
|
12096
12113
|
}
|
|
12097
|
-
var import_compiler_runtime$
|
|
12114
|
+
var import_compiler_runtime$38 = require_compiler_runtime();
|
|
12098
12115
|
const TextOutput = (e) => {
|
|
12099
|
-
let t = (0, import_compiler_runtime$
|
|
12116
|
+
let t = (0, import_compiler_runtime$38.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
|
|
12100
12117
|
t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
12101
12118
|
className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
12102
12119
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -12113,17 +12130,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12113
12130
|
children: v
|
|
12114
12131
|
}), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
|
|
12115
12132
|
};
|
|
12116
|
-
var import_compiler_runtime$
|
|
12133
|
+
var import_compiler_runtime$37 = require_compiler_runtime();
|
|
12117
12134
|
const VideoOutput = (e) => {
|
|
12118
|
-
let t = (0, import_compiler_runtime$
|
|
12135
|
+
let t = (0, import_compiler_runtime$37.c)(3), { src: n, className: i } = e, a;
|
|
12119
12136
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
|
|
12120
12137
|
className: i,
|
|
12121
12138
|
src: n
|
|
12122
12139
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
12123
12140
|
};
|
|
12124
|
-
var import_compiler_runtime$
|
|
12141
|
+
var import_compiler_runtime$36 = require_compiler_runtime();
|
|
12125
12142
|
useOverflowDetection = function(e, t) {
|
|
12126
|
-
let n = (0, import_compiler_runtime$
|
|
12143
|
+
let n = (0, import_compiler_runtime$36.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
|
|
12127
12144
|
return n[0] !== i || n[1] !== e ? (s = () => {
|
|
12128
12145
|
let t2 = e.current;
|
|
12129
12146
|
if (!t2 || !i) return;
|
|
@@ -12220,9 +12237,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12220
12237
|
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B-rkEqtS.js").then((e) => ({
|
|
12221
12238
|
default: e.VegaEmbed
|
|
12222
12239
|
})));
|
|
12223
|
-
var import_compiler_runtime$
|
|
12240
|
+
var import_compiler_runtime$35 = require_compiler_runtime();
|
|
12224
12241
|
ChartLoadingState = () => {
|
|
12225
|
-
let e = (0, import_compiler_runtime$
|
|
12242
|
+
let e = (0, import_compiler_runtime$35.c)(1), t;
|
|
12226
12243
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
12227
12244
|
className: "flex items-center gap-2 justify-center",
|
|
12228
12245
|
children: [
|
|
@@ -12237,7 +12254,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12237
12254
|
}), e[0] = t) : t = e[0], t;
|
|
12238
12255
|
};
|
|
12239
12256
|
ChartErrorState = (e) => {
|
|
12240
|
-
let t = (0, import_compiler_runtime$
|
|
12257
|
+
let t = (0, import_compiler_runtime$35.c)(2), { error: n } = e, i;
|
|
12241
12258
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
|
|
12242
12259
|
className: "flex items-center justify-center",
|
|
12243
12260
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -12246,7 +12263,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12246
12263
|
}), t[0] = n, t[1] = i), i;
|
|
12247
12264
|
};
|
|
12248
12265
|
ChartInfoState = (e) => {
|
|
12249
|
-
let t = (0, import_compiler_runtime$
|
|
12266
|
+
let t = (0, import_compiler_runtime$35.c)(8), { children: n, className: i } = e, o;
|
|
12250
12267
|
t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
|
|
12251
12268
|
let s;
|
|
12252
12269
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -12266,11 +12283,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12266
12283
|
]
|
|
12267
12284
|
}), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
|
|
12268
12285
|
};
|
|
12269
|
-
let import_compiler_runtime$
|
|
12270
|
-
import_compiler_runtime$
|
|
12286
|
+
let import_compiler_runtime$34;
|
|
12287
|
+
import_compiler_runtime$34 = require_compiler_runtime();
|
|
12271
12288
|
Tabs = Root2;
|
|
12272
12289
|
TabsList = import_react.forwardRef((e, t) => {
|
|
12273
|
-
let n = (0, import_compiler_runtime$
|
|
12290
|
+
let n = (0, import_compiler_runtime$34.c)(9), i, o;
|
|
12274
12291
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12275
12292
|
let s;
|
|
12276
12293
|
n[3] === i ? s = n[4] : (s = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -12283,7 +12300,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12283
12300
|
});
|
|
12284
12301
|
TabsList.displayName = List.displayName;
|
|
12285
12302
|
TabsTrigger = import_react.forwardRef((e, t) => {
|
|
12286
|
-
let n = (0, import_compiler_runtime$
|
|
12303
|
+
let n = (0, import_compiler_runtime$34.c)(9), i, o;
|
|
12287
12304
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12288
12305
|
let s;
|
|
12289
12306
|
n[3] === i ? s = n[4] : (s = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", i), n[3] = i, n[4] = s);
|
|
@@ -12296,7 +12313,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12296
12313
|
});
|
|
12297
12314
|
TabsTrigger.displayName = Trigger.displayName;
|
|
12298
12315
|
TabsContent = import_react.forwardRef((e, t) => {
|
|
12299
|
-
let n = (0, import_compiler_runtime$
|
|
12316
|
+
let n = (0, import_compiler_runtime$34.c)(9), i, o;
|
|
12300
12317
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12301
12318
|
let s;
|
|
12302
12319
|
n[3] === i ? s = n[4] : (s = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", i), n[3] = i, n[4] = s);
|
|
@@ -12308,9 +12325,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12308
12325
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
12309
12326
|
});
|
|
12310
12327
|
TabsContent.displayName = Content.displayName;
|
|
12311
|
-
var import_compiler_runtime$
|
|
12328
|
+
var import_compiler_runtime$33 = require_compiler_runtime();
|
|
12312
12329
|
const WithLocale = (e) => {
|
|
12313
|
-
let t = (0, import_compiler_runtime$
|
|
12330
|
+
let t = (0, import_compiler_runtime$33.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
12314
12331
|
return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
12315
12332
|
};
|
|
12316
12333
|
function tzName(e, t, n = "long") {
|
|
@@ -12521,9 +12538,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12521
12538
|
return n;
|
|
12522
12539
|
}
|
|
12523
12540
|
};
|
|
12524
|
-
var import_compiler_runtime$
|
|
12541
|
+
var import_compiler_runtime$32 = require_compiler_runtime();
|
|
12525
12542
|
const DraggablePopover = (e) => {
|
|
12526
|
-
let t = (0, import_compiler_runtime$
|
|
12543
|
+
let t = (0, import_compiler_runtime$32.c)(25), n, i, a;
|
|
12527
12544
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
12528
12545
|
let o;
|
|
12529
12546
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
@@ -12753,7 +12770,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12753
12770
|
}, [
|
|
12754
12771
|
h
|
|
12755
12772
|
]), k(() => {
|
|
12756
|
-
U(6,
|
|
12773
|
+
U(6, QM);
|
|
12757
12774
|
}, []);
|
|
12758
12775
|
let K = import_react.useMemo(() => ({
|
|
12759
12776
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12762,7 +12779,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12762
12779
|
var _a2;
|
|
12763
12780
|
var a2, o2, s2;
|
|
12764
12781
|
if (!Object.is(n.current[e2], t2)) {
|
|
12765
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12782
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, ZM);
|
|
12766
12783
|
else if (e2 === "value") {
|
|
12767
12784
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12768
12785
|
let e3 = document.getElementById(I);
|
|
@@ -12770,8 +12787,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12770
12787
|
}
|
|
12771
12788
|
if (U(7, () => {
|
|
12772
12789
|
var _a3;
|
|
12773
|
-
n.current.selectedItemId = (_a3 =
|
|
12774
|
-
}), i2 || U(5,
|
|
12790
|
+
n.current.selectedItemId = (_a3 = $M()) == null ? void 0 : _a3.id, K.emit();
|
|
12791
|
+
}), i2 || U(5, QM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12775
12792
|
let e3 = t2 ?? "";
|
|
12776
12793
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12777
12794
|
return;
|
|
@@ -12796,12 +12813,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12796
12813
|
item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
|
|
12797
12814
|
e2
|
|
12798
12815
|
]))), U(3, () => {
|
|
12799
|
-
$(), Q(), n.current.value ||
|
|
12816
|
+
$(), Q(), n.current.value || ZM(), K.emit();
|
|
12800
12817
|
}), () => {
|
|
12801
12818
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12802
|
-
let t3 =
|
|
12819
|
+
let t3 = $M();
|
|
12803
12820
|
U(4, () => {
|
|
12804
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12821
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && ZM(), K.emit();
|
|
12805
12822
|
});
|
|
12806
12823
|
}),
|
|
12807
12824
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12834,7 +12851,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12834
12851
|
]);
|
|
12835
12852
|
});
|
|
12836
12853
|
let i2 = z.current;
|
|
12837
|
-
|
|
12854
|
+
eN().sort((t3, n2) => {
|
|
12838
12855
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12839
12856
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12840
12857
|
}).forEach((e3) => {
|
|
@@ -12846,9 +12863,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12846
12863
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12847
12864
|
});
|
|
12848
12865
|
}
|
|
12849
|
-
function
|
|
12866
|
+
function ZM() {
|
|
12850
12867
|
var _a2;
|
|
12851
|
-
let e2 = (_a2 =
|
|
12868
|
+
let e2 = (_a2 = eN().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12852
12869
|
K.setState("value", e2 || void 0);
|
|
12853
12870
|
}
|
|
12854
12871
|
function $() {
|
|
@@ -12869,43 +12886,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12869
12886
|
}
|
|
12870
12887
|
n.current.filtered.count = e2;
|
|
12871
12888
|
}
|
|
12872
|
-
function
|
|
12889
|
+
function QM() {
|
|
12873
12890
|
var _a2, _b;
|
|
12874
12891
|
var e2;
|
|
12875
|
-
let t2 =
|
|
12892
|
+
let t2 = $M();
|
|
12876
12893
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
12877
12894
|
block: "nearest"
|
|
12878
12895
|
})), t2.scrollIntoView({
|
|
12879
12896
|
block: "nearest"
|
|
12880
12897
|
}));
|
|
12881
12898
|
}
|
|
12882
|
-
function
|
|
12899
|
+
function $M() {
|
|
12883
12900
|
var _a2;
|
|
12884
12901
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12885
12902
|
}
|
|
12886
|
-
function
|
|
12903
|
+
function eN() {
|
|
12887
12904
|
var _a2;
|
|
12888
12905
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12889
12906
|
}
|
|
12890
|
-
function
|
|
12891
|
-
let t2 =
|
|
12907
|
+
function tN(e2) {
|
|
12908
|
+
let t2 = eN()[e2];
|
|
12892
12909
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12893
12910
|
}
|
|
12894
|
-
function
|
|
12911
|
+
function nN(e2) {
|
|
12895
12912
|
var t2;
|
|
12896
|
-
let n2 =
|
|
12913
|
+
let n2 = $M(), i2 = eN(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12897
12914
|
(t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
|
|
12898
12915
|
}
|
|
12899
|
-
function
|
|
12916
|
+
function rN(e2) {
|
|
12900
12917
|
var _a2;
|
|
12901
|
-
let t2 = (_a2 =
|
|
12918
|
+
let t2 = (_a2 = $M()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12902
12919
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12903
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12920
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : nN(e2);
|
|
12904
12921
|
}
|
|
12905
|
-
let
|
|
12906
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12907
|
-
},
|
|
12908
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12922
|
+
let iN = () => tN(eN().length - 1), aN = (e2) => {
|
|
12923
|
+
e2.preventDefault(), e2.metaKey ? iN() : e2.altKey ? rN(1) : nN(1);
|
|
12924
|
+
}, oN = (e2) => {
|
|
12925
|
+
e2.preventDefault(), e2.metaKey ? tN(0) : e2.altKey ? rN(-1) : nN(-1);
|
|
12909
12926
|
};
|
|
12910
12927
|
return import_react.createElement(Primitive.div, {
|
|
12911
12928
|
ref: t,
|
|
@@ -12919,27 +12936,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12919
12936
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12920
12937
|
case "n":
|
|
12921
12938
|
case "j":
|
|
12922
|
-
E && e2.ctrlKey &&
|
|
12939
|
+
E && e2.ctrlKey && aN(e2);
|
|
12923
12940
|
break;
|
|
12924
12941
|
case "ArrowDown":
|
|
12925
|
-
|
|
12942
|
+
aN(e2);
|
|
12926
12943
|
break;
|
|
12927
12944
|
case "p":
|
|
12928
12945
|
case "k":
|
|
12929
|
-
E && e2.ctrlKey &&
|
|
12946
|
+
E && e2.ctrlKey && oN(e2);
|
|
12930
12947
|
break;
|
|
12931
12948
|
case "ArrowUp":
|
|
12932
|
-
|
|
12949
|
+
oN(e2);
|
|
12933
12950
|
break;
|
|
12934
12951
|
case "Home":
|
|
12935
|
-
e2.preventDefault(),
|
|
12952
|
+
e2.preventDefault(), tN(0);
|
|
12936
12953
|
break;
|
|
12937
12954
|
case "End":
|
|
12938
|
-
e2.preventDefault(),
|
|
12955
|
+
e2.preventDefault(), iN();
|
|
12939
12956
|
break;
|
|
12940
12957
|
case "Enter": {
|
|
12941
12958
|
e2.preventDefault();
|
|
12942
|
-
let t3 =
|
|
12959
|
+
let t3 = $M();
|
|
12943
12960
|
if (t3) {
|
|
12944
12961
|
let e3 = new Event(Z);
|
|
12945
12962
|
t3.dispatchEvent(e3);
|
|
@@ -13201,7 +13218,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13201
13218
|
ref: t.ref
|
|
13202
13219
|
}, n(t.props.children)) : n(t);
|
|
13203
13220
|
}
|
|
13204
|
-
let Te, import_compiler_runtime$
|
|
13221
|
+
let Te, import_compiler_runtime$31;
|
|
13205
13222
|
Te = {
|
|
13206
13223
|
position: "absolute",
|
|
13207
13224
|
width: "1px",
|
|
@@ -13213,9 +13230,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13213
13230
|
whiteSpace: "nowrap",
|
|
13214
13231
|
borderWidth: "0"
|
|
13215
13232
|
};
|
|
13216
|
-
import_compiler_runtime$
|
|
13233
|
+
import_compiler_runtime$31 = require_compiler_runtime();
|
|
13217
13234
|
Command = import_react.forwardRef((e, t) => {
|
|
13218
|
-
let n = (0, import_compiler_runtime$
|
|
13235
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13219
13236
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13220
13237
|
let s;
|
|
13221
13238
|
n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -13229,7 +13246,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13229
13246
|
});
|
|
13230
13247
|
Command.displayName = _e.displayName;
|
|
13231
13248
|
CommandInput = import_react.forwardRef((e, t) => {
|
|
13232
|
-
let n = (0, import_compiler_runtime$
|
|
13249
|
+
let n = (0, import_compiler_runtime$31.c)(19), i, o, s, c;
|
|
13233
13250
|
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
13234
13251
|
let d;
|
|
13235
13252
|
n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
|
|
@@ -13257,7 +13274,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13257
13274
|
});
|
|
13258
13275
|
CommandInput.displayName = _e.Input.displayName;
|
|
13259
13276
|
CommandList = import_react.forwardRef((e, t) => {
|
|
13260
|
-
let n = (0, import_compiler_runtime$
|
|
13277
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13261
13278
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13262
13279
|
let s;
|
|
13263
13280
|
n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
|
|
@@ -13270,7 +13287,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13270
13287
|
});
|
|
13271
13288
|
CommandList.displayName = _e.List.displayName;
|
|
13272
13289
|
CommandEmpty = import_react.forwardRef((e, t) => {
|
|
13273
|
-
let n = (0, import_compiler_runtime$
|
|
13290
|
+
let n = (0, import_compiler_runtime$31.c)(3), i;
|
|
13274
13291
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
|
|
13275
13292
|
ref: t,
|
|
13276
13293
|
className: "py-6 text-center text-sm",
|
|
@@ -13279,7 +13296,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13279
13296
|
});
|
|
13280
13297
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
13281
13298
|
var CommandGroup = import_react.forwardRef((e, t) => {
|
|
13282
|
-
let n = (0, import_compiler_runtime$
|
|
13299
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13283
13300
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13284
13301
|
let s;
|
|
13285
13302
|
n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -13292,7 +13309,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13292
13309
|
});
|
|
13293
13310
|
CommandGroup.displayName = _e.Group.displayName;
|
|
13294
13311
|
CommandSeparator = import_react.forwardRef((e, t) => {
|
|
13295
|
-
let n = (0, import_compiler_runtime$
|
|
13312
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, a;
|
|
13296
13313
|
n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
|
|
13297
13314
|
let o;
|
|
13298
13315
|
n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
|
|
@@ -13307,7 +13324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13307
13324
|
});
|
|
13308
13325
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
13309
13326
|
CommandItem = import_react.forwardRef((e, t) => {
|
|
13310
|
-
let n = (0, import_compiler_runtime$
|
|
13327
|
+
let n = (0, import_compiler_runtime$31.c)(17), i, o, s, c, d;
|
|
13311
13328
|
if (n[0] !== t || n[1] !== e) {
|
|
13312
13329
|
let { className: f2, variant: h, inset: _, ...v } = e;
|
|
13313
13330
|
i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
|
|
@@ -13324,7 +13341,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13324
13341
|
}), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
|
|
13325
13342
|
});
|
|
13326
13343
|
CommandItem.displayName = _e.Item.displayName;
|
|
13327
|
-
var import_compiler_runtime$
|
|
13344
|
+
var import_compiler_runtime$30 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
13328
13345
|
" ": {
|
|
13329
13346
|
marker: "\u2423",
|
|
13330
13347
|
name: "space"
|
|
@@ -13400,7 +13417,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13400
13417
|
}
|
|
13401
13418
|
};
|
|
13402
13419
|
function WhitespaceMarkers(e) {
|
|
13403
|
-
let t = (0, import_compiler_runtime$
|
|
13420
|
+
let t = (0, import_compiler_runtime$30.c)(7), { value: n } = e;
|
|
13404
13421
|
if (!n) return null;
|
|
13405
13422
|
let i;
|
|
13406
13423
|
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
@@ -13415,7 +13432,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13415
13432
|
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
13416
13433
|
}
|
|
13417
13434
|
function SentinelCell(e) {
|
|
13418
|
-
let t = (0, import_compiler_runtime$
|
|
13435
|
+
let t = (0, import_compiler_runtime$30.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
13419
13436
|
t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
|
|
13420
13437
|
let o = a, s;
|
|
13421
13438
|
t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
|
|
@@ -13434,9 +13451,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13434
13451
|
children: h
|
|
13435
13452
|
}), t[11] = f, t[12] = h, t[13] = c, t[14] = _) : _ = t[14], _;
|
|
13436
13453
|
}
|
|
13437
|
-
var import_compiler_runtime$
|
|
13454
|
+
var import_compiler_runtime$29 = require_compiler_runtime();
|
|
13438
13455
|
const MimeCell = (e) => {
|
|
13439
|
-
let t = (0, import_compiler_runtime$
|
|
13456
|
+
let t = (0, import_compiler_runtime$29.c)(6), { value: n } = e, i;
|
|
13440
13457
|
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
13441
13458
|
channel: "output",
|
|
13442
13459
|
data: n.data,
|
|
@@ -15986,7 +16003,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15986
16003
|
],
|
|
15987
16004
|
unknown: []
|
|
15988
16005
|
};
|
|
15989
|
-
var import_compiler_runtime$
|
|
16006
|
+
var import_compiler_runtime$28 = require_compiler_runtime();
|
|
15990
16007
|
function renderFormatOptions(e, t) {
|
|
15991
16008
|
var _a2, _b, _c;
|
|
15992
16009
|
let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
|
|
@@ -16185,7 +16202,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16185
16202
|
}) : null;
|
|
16186
16203
|
}
|
|
16187
16204
|
const ClearFilterMenuItem = (e) => {
|
|
16188
|
-
let t = (0, import_compiler_runtime$
|
|
16205
|
+
let t = (0, import_compiler_runtime$28.c)(5), { column: n } = e, i;
|
|
16189
16206
|
t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
|
|
16190
16207
|
let a;
|
|
16191
16208
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -16215,7 +16232,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16215
16232
|
});
|
|
16216
16233
|
}
|
|
16217
16234
|
const FilterButtons = (e) => {
|
|
16218
|
-
let t = (0, import_compiler_runtime$
|
|
16235
|
+
let t = (0, import_compiler_runtime$28.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
|
|
16219
16236
|
t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
|
|
16220
16237
|
variant: "link",
|
|
16221
16238
|
size: "sm",
|
|
@@ -16671,9 +16688,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16671
16688
|
let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
|
|
16672
16689
|
return e !== t && (a(t), n(e)), i;
|
|
16673
16690
|
};
|
|
16674
|
-
var import_compiler_runtime$
|
|
16691
|
+
var import_compiler_runtime$27 = require_compiler_runtime();
|
|
16675
16692
|
DelayMount = (e) => {
|
|
16676
|
-
let t = (0, import_compiler_runtime$
|
|
16693
|
+
let t = (0, import_compiler_runtime$27.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
|
|
16677
16694
|
t[0] !== h || t[1] !== f ? (w = {
|
|
16678
16695
|
threshold: f,
|
|
16679
16696
|
root: null,
|
|
@@ -16704,9 +16721,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16704
16721
|
children: J
|
|
16705
16722
|
}), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
|
|
16706
16723
|
};
|
|
16707
|
-
var import_compiler_runtime$
|
|
16724
|
+
var import_compiler_runtime$26 = require_compiler_runtime();
|
|
16708
16725
|
const DatePopover = (e) => {
|
|
16709
|
-
let t = (0, import_compiler_runtime$
|
|
16726
|
+
let t = (0, import_compiler_runtime$26.c)(15), { date: n, type: i, children: a } = e;
|
|
16710
16727
|
if (!n || Number.isNaN(new Date(n).getTime())) return a;
|
|
16711
16728
|
let o;
|
|
16712
16729
|
t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
|
|
@@ -16746,7 +16763,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16746
16763
|
}), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
|
|
16747
16764
|
};
|
|
16748
16765
|
var TimezoneDisplay = (e) => {
|
|
16749
|
-
let t = (0, import_compiler_runtime$
|
|
16766
|
+
let t = (0, import_compiler_runtime$26.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
16750
16767
|
t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
|
|
16751
16768
|
let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
|
|
16752
16769
|
t[2] === s ? c = t[3] : (c = s ? {
|
|
@@ -16822,7 +16839,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16822
16839
|
]
|
|
16823
16840
|
}), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
|
|
16824
16841
|
}, DateDisplay = (e) => {
|
|
16825
|
-
let t = (0, import_compiler_runtime$
|
|
16842
|
+
let t = (0, import_compiler_runtime$26.c)(6), { date: n } = e, i;
|
|
16826
16843
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
16827
16844
|
timeZone: "UTC",
|
|
16828
16845
|
dateStyle: "long"
|
|
@@ -16834,7 +16851,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16834
16851
|
children: o
|
|
16835
16852
|
}), t[4] = o, t[5] = s), s;
|
|
16836
16853
|
}, RelativeTime = (e) => {
|
|
16837
|
-
let t = (0, import_compiler_runtime$
|
|
16854
|
+
let t = (0, import_compiler_runtime$26.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
|
|
16838
16855
|
if (t[0] !== n || t[1] !== i) {
|
|
16839
16856
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
16840
16857
|
bb0: {
|
|
@@ -16886,7 +16903,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16886
16903
|
return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
|
|
16887
16904
|
children: a
|
|
16888
16905
|
}), t[4] = a, t[5] = s), s;
|
|
16889
|
-
}, import_compiler_runtime$
|
|
16906
|
+
}, import_compiler_runtime$25 = require_compiler_runtime(), hashString = (e) => {
|
|
16890
16907
|
let t = 0;
|
|
16891
16908
|
for (let n = 0; n < e.length; n++) {
|
|
16892
16909
|
let i = e.charCodeAt(n);
|
|
@@ -16903,7 +16920,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16903
16920
|
return i;
|
|
16904
16921
|
};
|
|
16905
16922
|
const ChartSkeleton = (e) => {
|
|
16906
|
-
let t = (0, import_compiler_runtime$
|
|
16923
|
+
let t = (0, import_compiler_runtime$25.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
|
|
16907
16924
|
if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
|
|
16908
16925
|
let e2 = generateHeights({
|
|
16909
16926
|
numBars: 9,
|
|
@@ -17282,7 +17299,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17282
17299
|
let c = s / t.length;
|
|
17283
17300
|
return Math.max(c, 1);
|
|
17284
17301
|
}
|
|
17285
|
-
let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$
|
|
17302
|
+
let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$24;
|
|
17286
17303
|
MAX_BAR_HEIGHT = 20;
|
|
17287
17304
|
BIN_END_EXTENSION_FACTOR = 0.1;
|
|
17288
17305
|
CONCAT_CHART_HEIGHT = 30;
|
|
@@ -17919,11 +17936,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17919
17936
|
}, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
|
|
17920
17937
|
includeCharts: false
|
|
17921
17938
|
})), _a);
|
|
17922
|
-
import_compiler_runtime$
|
|
17939
|
+
import_compiler_runtime$24 = require_compiler_runtime();
|
|
17923
17940
|
ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
17924
17941
|
var batchedLoader = createBatchedLoader();
|
|
17925
17942
|
const TableColumnSummary = (e) => {
|
|
17926
|
-
let t = (0, import_compiler_runtime$
|
|
17943
|
+
let t = (0, import_compiler_runtime$24.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
|
|
17927
17944
|
if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
|
|
17928
17945
|
let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
|
|
17929
17946
|
if (e2) {
|
|
@@ -18134,8 +18151,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18134
18151
|
let a = e.at(-1);
|
|
18135
18152
|
return n.push(a), n;
|
|
18136
18153
|
}
|
|
18137
|
-
var import_compiler_runtime$
|
|
18138
|
-
let t = (0, import_compiler_runtime$
|
|
18154
|
+
var import_compiler_runtime$23 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
18155
|
+
let t = (0, import_compiler_runtime$23.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
|
|
18139
18156
|
if (i) {
|
|
18140
18157
|
let e2;
|
|
18141
18158
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
|
|
@@ -18209,7 +18226,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18209
18226
|
return t.some((e2) => n.has(e2.type));
|
|
18210
18227
|
}
|
|
18211
18228
|
const MarkdownUrlDetector = (e) => {
|
|
18212
|
-
let t = (0, import_compiler_runtime$
|
|
18229
|
+
let t = (0, import_compiler_runtime$23.c)(4), { content: n, parts: i } = e;
|
|
18213
18230
|
if (isMarkdown(n)) {
|
|
18214
18231
|
let e2;
|
|
18215
18232
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
|
|
@@ -18226,7 +18243,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18226
18243
|
url: e2.url
|
|
18227
18244
|
}, t) : e2.value);
|
|
18228
18245
|
var URLAnchor = (e) => {
|
|
18229
|
-
let t = (0, import_compiler_runtime$
|
|
18246
|
+
let t = (0, import_compiler_runtime$23.c)(3), { url: n } = e, i;
|
|
18230
18247
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
|
|
18231
18248
|
let a;
|
|
18232
18249
|
return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
|
|
@@ -18619,10 +18636,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18619
18636
|
maximumFractionDigits: maxFractionalDigits(n)
|
|
18620
18637
|
}).format(e);
|
|
18621
18638
|
};
|
|
18622
|
-
let import_compiler_runtime$
|
|
18623
|
-
import_compiler_runtime$
|
|
18639
|
+
let import_compiler_runtime$22;
|
|
18640
|
+
import_compiler_runtime$22 = require_compiler_runtime();
|
|
18624
18641
|
Table = import_react.forwardRef((e, t) => {
|
|
18625
|
-
let n = (0, import_compiler_runtime$
|
|
18642
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18626
18643
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18627
18644
|
let s;
|
|
18628
18645
|
n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
|
|
@@ -18638,7 +18655,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18638
18655
|
});
|
|
18639
18656
|
Table.displayName = "Table";
|
|
18640
18657
|
TableHeader = import_react.forwardRef((e, t) => {
|
|
18641
|
-
let n = (0, import_compiler_runtime$
|
|
18658
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18642
18659
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18643
18660
|
let s;
|
|
18644
18661
|
n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
|
|
@@ -18651,7 +18668,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18651
18668
|
});
|
|
18652
18669
|
TableHeader.displayName = "TableHeader";
|
|
18653
18670
|
TableBody = import_react.forwardRef((e, t) => {
|
|
18654
|
-
let n = (0, import_compiler_runtime$
|
|
18671
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18655
18672
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18656
18673
|
let s;
|
|
18657
18674
|
n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
|
|
@@ -18664,7 +18681,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18664
18681
|
});
|
|
18665
18682
|
TableBody.displayName = "TableBody";
|
|
18666
18683
|
var TableFooter = import_react.forwardRef((e, t) => {
|
|
18667
|
-
let n = (0, import_compiler_runtime$
|
|
18684
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18668
18685
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18669
18686
|
let s;
|
|
18670
18687
|
n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18677,7 +18694,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18677
18694
|
});
|
|
18678
18695
|
TableFooter.displayName = "TableFooter";
|
|
18679
18696
|
TableRow = import_react.forwardRef((e, t) => {
|
|
18680
|
-
let n = (0, import_compiler_runtime$
|
|
18697
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18681
18698
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18682
18699
|
let s;
|
|
18683
18700
|
n[3] === i ? s = n[4] : (s = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", i), n[3] = i, n[4] = s);
|
|
@@ -18690,7 +18707,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18690
18707
|
});
|
|
18691
18708
|
TableRow.displayName = "TableRow";
|
|
18692
18709
|
TableHead = import_react.forwardRef((e, t) => {
|
|
18693
|
-
let n = (0, import_compiler_runtime$
|
|
18710
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18694
18711
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18695
18712
|
let s;
|
|
18696
18713
|
n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
|
|
@@ -18703,7 +18720,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18703
18720
|
});
|
|
18704
18721
|
TableHead.displayName = "TableHead";
|
|
18705
18722
|
TableCell = import_react.forwardRef((e, t) => {
|
|
18706
|
-
let n = (0, import_compiler_runtime$
|
|
18723
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18707
18724
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18708
18725
|
let s;
|
|
18709
18726
|
n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
|
|
@@ -18716,7 +18733,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18716
18733
|
});
|
|
18717
18734
|
TableCell.displayName = "TableCell";
|
|
18718
18735
|
var TableCaption = import_react.forwardRef((e, t) => {
|
|
18719
|
-
let n = (0, import_compiler_runtime$
|
|
18736
|
+
let n = (0, import_compiler_runtime$22.c)(9), i, o;
|
|
18720
18737
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18721
18738
|
let s;
|
|
18722
18739
|
n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18929,7 +18946,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18929
18946
|
function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
|
|
18930
18947
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18931
18948
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18932
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
18949
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, ZM = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18933
18950
|
callbacks: {
|
|
18934
18951
|
onCollapse: f,
|
|
18935
18952
|
onExpand: h,
|
|
@@ -18942,7 +18959,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18942
18959
|
maxSize: c,
|
|
18943
18960
|
minSize: d
|
|
18944
18961
|
},
|
|
18945
|
-
id:
|
|
18962
|
+
id: ZM,
|
|
18946
18963
|
idIsFromProps: s !== void 0,
|
|
18947
18964
|
order: v
|
|
18948
18965
|
});
|
|
@@ -18952,7 +18969,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18952
18969
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18953
18970
|
...t2
|
|
18954
18971
|
};
|
|
18955
|
-
$.current.id =
|
|
18972
|
+
$.current.id = ZM, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
|
|
18956
18973
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18957
18974
|
let e2 = $.current;
|
|
18958
18975
|
return q(e2), () => {
|
|
@@ -18960,7 +18977,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18960
18977
|
};
|
|
18961
18978
|
}, [
|
|
18962
18979
|
v,
|
|
18963
|
-
|
|
18980
|
+
ZM,
|
|
18964
18981
|
q,
|
|
18965
18982
|
Q
|
|
18966
18983
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18971,7 +18988,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18971
18988
|
A($.current, e2);
|
|
18972
18989
|
},
|
|
18973
18990
|
getId() {
|
|
18974
|
-
return
|
|
18991
|
+
return ZM;
|
|
18975
18992
|
},
|
|
18976
18993
|
getSize() {
|
|
18977
18994
|
return M($.current);
|
|
@@ -18990,24 +19007,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18990
19007
|
A,
|
|
18991
19008
|
M,
|
|
18992
19009
|
U,
|
|
18993
|
-
|
|
19010
|
+
ZM,
|
|
18994
19011
|
J
|
|
18995
19012
|
]);
|
|
18996
|
-
let
|
|
19013
|
+
let QM = I($.current, a);
|
|
18997
19014
|
return (0, import_react.createElement)(S, {
|
|
18998
19015
|
...w,
|
|
18999
19016
|
children: e,
|
|
19000
19017
|
className: t,
|
|
19001
|
-
id:
|
|
19018
|
+
id: ZM,
|
|
19002
19019
|
style: {
|
|
19003
|
-
...
|
|
19020
|
+
...QM,
|
|
19004
19021
|
...y
|
|
19005
19022
|
},
|
|
19006
19023
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
19007
19024
|
[DATA_ATTRIBUTES.panel]: "",
|
|
19008
19025
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
19009
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
19010
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19026
|
+
[DATA_ATTRIBUTES.panelId]: ZM,
|
|
19027
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + QM.flexGrow).toFixed(1)
|
|
19011
19028
|
});
|
|
19012
19029
|
}
|
|
19013
19030
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19780,7 +19797,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19780
19797
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19781
19798
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19782
19799
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19783
|
-
}, []),
|
|
19800
|
+
}, []), ZM = (0, import_react.useCallback)((e2, t2) => {
|
|
19784
19801
|
let { panelDataArray: n2 } = K.current;
|
|
19785
19802
|
return computePanelFlexBoxStyle({
|
|
19786
19803
|
defaultSize: t2,
|
|
@@ -19795,10 +19812,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19795
19812
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19796
19813
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19797
19814
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19798
|
-
}, []),
|
|
19815
|
+
}, []), QM = (0, import_react.useCallback)((e2) => {
|
|
19799
19816
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19800
19817
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19801
|
-
}, []),
|
|
19818
|
+
}, []), $M = (0, import_react.useCallback)((e2) => {
|
|
19802
19819
|
let { panelDataArray: t2 } = K.current;
|
|
19803
19820
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19804
19821
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19830,7 +19847,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19830
19847
|
e2.layout = [];
|
|
19831
19848
|
};
|
|
19832
19849
|
}, []);
|
|
19833
|
-
let
|
|
19850
|
+
let eN = (0, import_react.useCallback)((e2) => {
|
|
19834
19851
|
let t2 = false, n2 = y.current;
|
|
19835
19852
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19836
19853
|
n3.preventDefault();
|
|
@@ -19848,7 +19865,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19848
19865
|
}), I2 = !compareLayouts(f2, A2);
|
|
19849
19866
|
(isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
|
|
19850
19867
|
};
|
|
19851
|
-
}, []),
|
|
19868
|
+
}, []), tN = (0, import_react.useCallback)((e2, t2) => {
|
|
19852
19869
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
|
|
19853
19870
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19854
19871
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19860,12 +19877,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19860
19877
|
trigger: "imperative-api"
|
|
19861
19878
|
});
|
|
19862
19879
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19863
|
-
}, []),
|
|
19880
|
+
}, []), nN = (0, import_react.useCallback)((e2, t2) => {
|
|
19864
19881
|
let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
|
|
19865
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19882
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || tN(e2, s2) : h2 < f2 ? tN(e2, f2) : h2 > d2 && tN(e2, d2));
|
|
19866
19883
|
}, [
|
|
19867
|
-
|
|
19868
|
-
]),
|
|
19884
|
+
tN
|
|
19885
|
+
]), rN = (0, import_react.useCallback)((e2, t2) => {
|
|
19869
19886
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19870
19887
|
if (!y.current) return;
|
|
19871
19888
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19877,30 +19894,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19877
19894
|
initialCursorPosition: o2,
|
|
19878
19895
|
initialLayout: i2
|
|
19879
19896
|
});
|
|
19880
|
-
}, []),
|
|
19897
|
+
}, []), iN = (0, import_react.useCallback)(() => {
|
|
19881
19898
|
w(null);
|
|
19882
|
-
}, []),
|
|
19899
|
+
}, []), aN = (0, import_react.useCallback)((e2) => {
|
|
19883
19900
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19884
19901
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19885
19902
|
}, [
|
|
19886
19903
|
A
|
|
19887
|
-
]),
|
|
19904
|
+
]), oN = (0, import_react.useMemo)(() => ({
|
|
19888
19905
|
collapsePanel: q,
|
|
19889
19906
|
direction: i,
|
|
19890
19907
|
dragState: S,
|
|
19891
19908
|
expandPanel: J,
|
|
19892
19909
|
getPanelSize: Q,
|
|
19893
|
-
getPanelStyle:
|
|
19910
|
+
getPanelStyle: ZM,
|
|
19894
19911
|
groupId: v,
|
|
19895
19912
|
isPanelCollapsed: $,
|
|
19896
|
-
isPanelExpanded:
|
|
19897
|
-
reevaluatePanelConstraints:
|
|
19898
|
-
registerPanel:
|
|
19899
|
-
registerResizeHandle:
|
|
19900
|
-
resizePanel:
|
|
19901
|
-
startDragging:
|
|
19902
|
-
stopDragging:
|
|
19903
|
-
unregisterPanel:
|
|
19913
|
+
isPanelExpanded: QM,
|
|
19914
|
+
reevaluatePanelConstraints: nN,
|
|
19915
|
+
registerPanel: $M,
|
|
19916
|
+
registerResizeHandle: eN,
|
|
19917
|
+
resizePanel: tN,
|
|
19918
|
+
startDragging: rN,
|
|
19919
|
+
stopDragging: iN,
|
|
19920
|
+
unregisterPanel: aN,
|
|
19904
19921
|
panelGroupElement: y.current
|
|
19905
19922
|
}), [
|
|
19906
19923
|
q,
|
|
@@ -19908,18 +19925,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19908
19925
|
i,
|
|
19909
19926
|
J,
|
|
19910
19927
|
Q,
|
|
19911
|
-
|
|
19928
|
+
ZM,
|
|
19912
19929
|
v,
|
|
19913
19930
|
$,
|
|
19914
|
-
|
|
19915
|
-
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
]),
|
|
19931
|
+
QM,
|
|
19932
|
+
nN,
|
|
19933
|
+
$M,
|
|
19934
|
+
eN,
|
|
19935
|
+
tN,
|
|
19936
|
+
rN,
|
|
19937
|
+
iN,
|
|
19938
|
+
aN
|
|
19939
|
+
]), sN = {
|
|
19923
19940
|
display: "flex",
|
|
19924
19941
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19925
19942
|
height: "100%",
|
|
@@ -19927,7 +19944,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19927
19944
|
width: "100%"
|
|
19928
19945
|
};
|
|
19929
19946
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19930
|
-
value:
|
|
19947
|
+
value: oN
|
|
19931
19948
|
}, (0, import_react.createElement)(h, {
|
|
19932
19949
|
..._,
|
|
19933
19950
|
children: t,
|
|
@@ -19935,7 +19952,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19935
19952
|
id: o,
|
|
19936
19953
|
ref: y,
|
|
19937
19954
|
style: {
|
|
19938
|
-
...
|
|
19955
|
+
...sN,
|
|
19939
19956
|
...f
|
|
19940
19957
|
},
|
|
19941
19958
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -20012,31 +20029,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20012
20029
|
});
|
|
20013
20030
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20014
20031
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20015
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
20032
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [ZM, $] = (0, import_react.useState)(false), [QM, $M] = (0, import_react.useState)(null), eN = (0, import_react.useRef)({
|
|
20016
20033
|
state: J
|
|
20017
20034
|
});
|
|
20018
20035
|
useIsomorphicLayoutEffect$1(() => {
|
|
20019
|
-
|
|
20036
|
+
eN.current.state = J;
|
|
20020
20037
|
}), (0, import_react.useEffect)(() => {
|
|
20021
|
-
if (n)
|
|
20038
|
+
if (n) $M(null);
|
|
20022
20039
|
else {
|
|
20023
20040
|
let e2 = I(q);
|
|
20024
|
-
|
|
20041
|
+
$M(() => e2);
|
|
20025
20042
|
}
|
|
20026
20043
|
}, [
|
|
20027
20044
|
n,
|
|
20028
20045
|
q,
|
|
20029
20046
|
I
|
|
20030
20047
|
]);
|
|
20031
|
-
let
|
|
20048
|
+
let tN = (i == null ? void 0 : i.coarse) ?? 15, nN = (i == null ? void 0 : i.fine) ?? 5;
|
|
20032
20049
|
(0, import_react.useEffect)(() => {
|
|
20033
|
-
if (n ||
|
|
20050
|
+
if (n || QM == null) return;
|
|
20034
20051
|
let e2 = w.current;
|
|
20035
20052
|
assert(e2, "Element ref not attached");
|
|
20036
20053
|
let t2 = false;
|
|
20037
20054
|
return registerResizeHandle(q, e2, A, {
|
|
20038
|
-
coarse:
|
|
20039
|
-
fine:
|
|
20055
|
+
coarse: tN,
|
|
20056
|
+
fine: nN
|
|
20040
20057
|
}, (e3, n2, i2) => {
|
|
20041
20058
|
if (!n2) {
|
|
20042
20059
|
Q("inactive");
|
|
@@ -20050,8 +20067,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20050
20067
|
break;
|
|
20051
20068
|
}
|
|
20052
20069
|
case "move": {
|
|
20053
|
-
let { state: e4 } =
|
|
20054
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
20070
|
+
let { state: e4 } = eN.current;
|
|
20071
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), QM(i2);
|
|
20055
20072
|
break;
|
|
20056
20073
|
}
|
|
20057
20074
|
case "up": {
|
|
@@ -20063,22 +20080,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20063
20080
|
}
|
|
20064
20081
|
});
|
|
20065
20082
|
}, [
|
|
20066
|
-
|
|
20083
|
+
tN,
|
|
20067
20084
|
A,
|
|
20068
20085
|
n,
|
|
20069
|
-
|
|
20086
|
+
nN,
|
|
20070
20087
|
I,
|
|
20071
20088
|
q,
|
|
20072
|
-
|
|
20089
|
+
QM,
|
|
20073
20090
|
z,
|
|
20074
20091
|
U
|
|
20075
20092
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20076
20093
|
disabled: n,
|
|
20077
20094
|
handleId: q,
|
|
20078
|
-
resizeHandler:
|
|
20095
|
+
resizeHandler: QM,
|
|
20079
20096
|
panelGroupElement: K
|
|
20080
20097
|
});
|
|
20081
|
-
let
|
|
20098
|
+
let rN = {
|
|
20082
20099
|
touchAction: "none",
|
|
20083
20100
|
userSelect: "none"
|
|
20084
20101
|
};
|
|
@@ -20096,22 +20113,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20096
20113
|
ref: w,
|
|
20097
20114
|
role: "separator",
|
|
20098
20115
|
style: {
|
|
20099
|
-
...
|
|
20116
|
+
...rN,
|
|
20100
20117
|
..._
|
|
20101
20118
|
},
|
|
20102
20119
|
tabIndex: v,
|
|
20103
20120
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20104
20121
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20105
20122
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20106
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20123
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : ZM ? "keyboard" : void 0,
|
|
20107
20124
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20108
20125
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20109
20126
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
20110
20127
|
});
|
|
20111
20128
|
}
|
|
20112
20129
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
20113
|
-
let import_compiler_runtime$
|
|
20114
|
-
import_compiler_runtime$
|
|
20130
|
+
let import_compiler_runtime$21, toggleVariants;
|
|
20131
|
+
import_compiler_runtime$21 = require_compiler_runtime();
|
|
20115
20132
|
toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
|
|
20116
20133
|
variants: {
|
|
20117
20134
|
variant: {
|
|
@@ -20131,7 +20148,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20131
20148
|
}
|
|
20132
20149
|
});
|
|
20133
20150
|
Toggle = import_react.forwardRef((e, t) => {
|
|
20134
|
-
let n = (0, import_compiler_runtime$
|
|
20151
|
+
let n = (0, import_compiler_runtime$21.c)(13), i, o, s, c;
|
|
20135
20152
|
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, variant: c, size: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
20136
20153
|
let d;
|
|
20137
20154
|
n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
|
|
@@ -20158,14 +20175,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20158
20175
|
contextAwarePanelOpen = atom(false);
|
|
20159
20176
|
atom(false);
|
|
20160
20177
|
isCellAwareAtom = atom(false);
|
|
20161
|
-
var import_compiler_runtime$
|
|
20178
|
+
var import_compiler_runtime$20 = require_compiler_runtime();
|
|
20162
20179
|
let CellHoverTemplateFeature;
|
|
20163
20180
|
PANEL_TYPES = {
|
|
20164
20181
|
ROW_VIEWER: "row-viewer",
|
|
20165
20182
|
COLUMN_EXPLORER: "column-explorer"
|
|
20166
20183
|
};
|
|
20167
20184
|
ContextAwarePanelItem = (e) => {
|
|
20168
|
-
let t = (0, import_compiler_runtime$
|
|
20185
|
+
let t = (0, import_compiler_runtime$20.c)(2), { children: n } = e, i;
|
|
20169
20186
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
20170
20187
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
20171
20188
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -20261,159 +20278,159 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20261
20278
|
e.getCanCopy = () => t.options.enableCopyColumn ?? false;
|
|
20262
20279
|
}
|
|
20263
20280
|
};
|
|
20264
|
-
var import_compiler_runtime$
|
|
20281
|
+
var import_compiler_runtime$19 = require_compiler_runtime();
|
|
20265
20282
|
let ComboboxContext;
|
|
20266
20283
|
ComboboxContext = (0, import_react.createContext)({
|
|
20267
20284
|
isSelected: () => false,
|
|
20268
20285
|
onSelect: Functions.NOOP
|
|
20269
20286
|
});
|
|
20270
20287
|
Combobox = (e) => {
|
|
20271
|
-
let t = (0, import_compiler_runtime$
|
|
20288
|
+
let t = (0, import_compiler_runtime$19.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20272
20289
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: q, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q);
|
|
20273
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20274
|
-
t[23] !== v || t[24] !== w || t[25] !==
|
|
20290
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, ZM = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, QM = K === void 0 ? false : K, $M = s ?? false, eN;
|
|
20291
|
+
t[23] !== v || t[24] !== w || t[25] !== $M ? (eN = {
|
|
20275
20292
|
prop: w,
|
|
20276
|
-
defaultProp:
|
|
20293
|
+
defaultProp: $M,
|
|
20277
20294
|
onChange: v
|
|
20278
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20279
|
-
let [
|
|
20280
|
-
t[27] === S ?
|
|
20295
|
+
}, t[23] = v, t[24] = w, t[25] = $M, t[26] = eN) : eN = t[26];
|
|
20296
|
+
let [tN, nN] = useControllableState(eN), rN = tN === void 0 ? false : tN, iN;
|
|
20297
|
+
t[27] === S ? iN = t[28] : (iN = (e2) => {
|
|
20281
20298
|
S == null ? void 0 : S(e2);
|
|
20282
|
-
}, t[27] = S, t[28] =
|
|
20283
|
-
let
|
|
20284
|
-
t[29] !== c || t[30] !==
|
|
20299
|
+
}, t[27] = S, t[28] = iN);
|
|
20300
|
+
let aN;
|
|
20301
|
+
t[29] !== c || t[30] !== iN || t[31] !== q ? (aN = {
|
|
20285
20302
|
prop: q,
|
|
20286
20303
|
defaultProp: c,
|
|
20287
|
-
onChange:
|
|
20288
|
-
}, t[29] = c, t[30] =
|
|
20289
|
-
let [
|
|
20290
|
-
t[33] ===
|
|
20291
|
-
let
|
|
20292
|
-
t[35] !== _ || t[36] !== J || t[37] !==
|
|
20304
|
+
onChange: iN
|
|
20305
|
+
}, t[29] = c, t[30] = iN, t[31] = q, t[32] = aN) : aN = t[32];
|
|
20306
|
+
let [sN, cN] = useControllableState(aN), lN;
|
|
20307
|
+
t[33] === sN ? lN = t[34] : (lN = (e2) => Array.isArray(sN) ? sN.includes(e2) : sN === e2, t[33] = sN, t[34] = lN);
|
|
20308
|
+
let uN = lN, dN;
|
|
20309
|
+
t[35] !== _ || t[36] !== J || t[37] !== nN || t[38] !== cN || t[39] !== sN ? (dN = (e2) => {
|
|
20293
20310
|
let t2 = e2;
|
|
20294
|
-
if (J) if (Array.isArray(
|
|
20295
|
-
let n2 =
|
|
20311
|
+
if (J) if (Array.isArray(sN)) if (sN.includes(t2)) {
|
|
20312
|
+
let n2 = sN.filter((t3) => t3 !== e2);
|
|
20296
20313
|
t2 = n2.length > 0 ? n2 : [];
|
|
20297
20314
|
} else t2 = [
|
|
20298
|
-
...
|
|
20315
|
+
...sN,
|
|
20299
20316
|
t2
|
|
20300
20317
|
];
|
|
20301
20318
|
else t2 = [
|
|
20302
20319
|
t2
|
|
20303
20320
|
];
|
|
20304
|
-
else
|
|
20305
|
-
|
|
20306
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20307
|
-
let
|
|
20308
|
-
t[41] !==
|
|
20309
|
-
let
|
|
20310
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20311
|
-
let
|
|
20312
|
-
t[48] === o ?
|
|
20313
|
-
let
|
|
20314
|
-
t[50] ===
|
|
20315
|
-
let
|
|
20316
|
-
t[52] ===
|
|
20321
|
+
else sN === e2 && (t2 = null);
|
|
20322
|
+
cN(t2), (_ ?? J) || nN(false);
|
|
20323
|
+
}, t[35] = _, t[36] = J, t[37] = nN, t[38] = cN, t[39] = sN, t[40] = dN) : dN = t[40];
|
|
20324
|
+
let fN = dN, pN;
|
|
20325
|
+
t[41] !== QM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== sN ? (pN = () => J && QM && E ? E : sN == null ? E ?? "--" : Array.isArray(sN) ? sN.length === 0 ? E ?? "--" : sN.length === 1 && d !== void 0 ? d(sN[0]) : `${sN.length} selected` : d === void 0 ? E ?? "--" : d(sN), t[41] = QM, t[42] = d, t[43] = J, t[44] = E, t[45] = sN, t[46] = pN) : pN = t[46];
|
|
20326
|
+
let mN = pN, hN;
|
|
20327
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hN = cn("relative"), t[47] = hN) : hN = t[47];
|
|
20328
|
+
let gN;
|
|
20329
|
+
t[48] === o ? gN = t[49] : (gN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = gN);
|
|
20330
|
+
let _N;
|
|
20331
|
+
t[50] === mN ? _N = t[51] : (_N = mN(), t[50] = mN, t[51] = _N);
|
|
20332
|
+
let vN;
|
|
20333
|
+
t[52] === _N ? vN = t[53] : (vN = (0, import_jsx_runtime.jsx)("span", {
|
|
20317
20334
|
className: "truncate flex-1 min-w-0",
|
|
20318
|
-
children:
|
|
20319
|
-
}), t[52] =
|
|
20320
|
-
let
|
|
20321
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20335
|
+
children: _N
|
|
20336
|
+
}), t[52] = _N, t[53] = vN);
|
|
20337
|
+
let bN;
|
|
20338
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20322
20339
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20323
|
-
}), t[54] =
|
|
20324
|
-
let
|
|
20325
|
-
t[55] !== h || t[56] !==
|
|
20340
|
+
}), t[54] = bN) : bN = t[54];
|
|
20341
|
+
let xN;
|
|
20342
|
+
t[55] !== h || t[56] !== rN || t[57] !== gN || t[58] !== vN ? (xN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20326
20343
|
asChild: true,
|
|
20327
20344
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20328
20345
|
id: h,
|
|
20329
|
-
className:
|
|
20330
|
-
"aria-expanded":
|
|
20346
|
+
className: gN,
|
|
20347
|
+
"aria-expanded": rN,
|
|
20331
20348
|
children: [
|
|
20332
|
-
|
|
20333
|
-
|
|
20349
|
+
vN,
|
|
20350
|
+
bN
|
|
20334
20351
|
]
|
|
20335
20352
|
})
|
|
20336
|
-
}), t[55] = h, t[56] =
|
|
20337
|
-
let
|
|
20338
|
-
t[60] !==
|
|
20339
|
-
placeholder:
|
|
20353
|
+
}), t[55] = h, t[56] = rN, t[57] = gN, t[58] = vN, t[59] = xN) : xN = t[59];
|
|
20354
|
+
let CN;
|
|
20355
|
+
t[60] !== ZM || t[61] !== y || t[62] !== A ? (CN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20356
|
+
placeholder: ZM,
|
|
20340
20357
|
rootClassName: "px-1 h-8",
|
|
20341
20358
|
autoFocus: true,
|
|
20342
20359
|
value: A,
|
|
20343
20360
|
onValueChange: y
|
|
20344
|
-
}), t[60] =
|
|
20345
|
-
let
|
|
20346
|
-
t[64] === $ ?
|
|
20361
|
+
}), t[60] = ZM, t[61] = y, t[62] = A, t[63] = CN) : CN = t[63];
|
|
20362
|
+
let wN;
|
|
20363
|
+
t[64] === $ ? wN = t[65] : (wN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20347
20364
|
children: $
|
|
20348
|
-
}), t[64] = $, t[65] =
|
|
20349
|
-
let
|
|
20350
|
-
t[66] !==
|
|
20351
|
-
isSelected:
|
|
20352
|
-
onSelect:
|
|
20353
|
-
}, t[66] =
|
|
20354
|
-
let
|
|
20355
|
-
t[69] !== n || t[70] !==
|
|
20356
|
-
value:
|
|
20365
|
+
}), t[64] = $, t[65] = wN);
|
|
20366
|
+
let TN;
|
|
20367
|
+
t[66] !== fN || t[67] !== uN ? (TN = {
|
|
20368
|
+
isSelected: uN,
|
|
20369
|
+
onSelect: fN
|
|
20370
|
+
}, t[66] = fN, t[67] = uN, t[68] = TN) : TN = t[68];
|
|
20371
|
+
let EN;
|
|
20372
|
+
t[69] !== n || t[70] !== TN ? (EN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20373
|
+
value: TN,
|
|
20357
20374
|
children: n
|
|
20358
|
-
}), t[69] = n, t[70] =
|
|
20359
|
-
let
|
|
20360
|
-
t[72] !==
|
|
20375
|
+
}), t[69] = n, t[70] = TN, t[71] = EN) : EN = t[71];
|
|
20376
|
+
let DN;
|
|
20377
|
+
t[72] !== wN || t[73] !== EN ? (DN = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20361
20378
|
className: "max-h-60 py-.5",
|
|
20362
20379
|
children: [
|
|
20363
|
-
|
|
20364
|
-
|
|
20380
|
+
wN,
|
|
20381
|
+
EN
|
|
20365
20382
|
]
|
|
20366
|
-
}), t[72] =
|
|
20367
|
-
let
|
|
20368
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20383
|
+
}), t[72] = wN, t[73] = EN, t[74] = DN) : DN = t[74];
|
|
20384
|
+
let ON;
|
|
20385
|
+
t[75] !== f || t[76] !== Q || t[77] !== CN || t[78] !== DN ? (ON = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20369
20386
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20370
20387
|
align: "start",
|
|
20371
20388
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20372
20389
|
filter: f,
|
|
20373
20390
|
shouldFilter: Q,
|
|
20374
20391
|
children: [
|
|
20375
|
-
|
|
20376
|
-
|
|
20392
|
+
CN,
|
|
20393
|
+
DN
|
|
20377
20394
|
]
|
|
20378
20395
|
})
|
|
20379
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20380
|
-
let
|
|
20381
|
-
t[80] !==
|
|
20382
|
-
open:
|
|
20383
|
-
onOpenChange:
|
|
20396
|
+
}), t[75] = f, t[76] = Q, t[77] = CN, t[78] = DN, t[79] = ON) : ON = t[79];
|
|
20397
|
+
let kN;
|
|
20398
|
+
t[80] !== rN || t[81] !== nN || t[82] !== xN || t[83] !== ON ? (kN = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20399
|
+
open: rN,
|
|
20400
|
+
onOpenChange: nN,
|
|
20384
20401
|
children: [
|
|
20385
|
-
|
|
20386
|
-
|
|
20402
|
+
xN,
|
|
20403
|
+
ON
|
|
20387
20404
|
]
|
|
20388
|
-
}), t[80] =
|
|
20389
|
-
let
|
|
20390
|
-
t[85] !==
|
|
20405
|
+
}), t[80] = rN, t[81] = nN, t[82] = xN, t[83] = ON, t[84] = kN) : kN = t[84];
|
|
20406
|
+
let AN;
|
|
20407
|
+
t[85] !== QM || t[86] !== i || t[87] !== d || t[88] !== fN || t[89] !== J || t[90] !== sN ? (AN = J && QM && (0, import_jsx_runtime.jsx)("div", {
|
|
20391
20408
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20392
|
-
children: Array.isArray(
|
|
20409
|
+
children: Array.isArray(sN) && sN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20393
20410
|
variant: "secondary",
|
|
20394
20411
|
children: [
|
|
20395
20412
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20396
20413
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20397
20414
|
onClick: () => {
|
|
20398
|
-
|
|
20415
|
+
fN(e2);
|
|
20399
20416
|
},
|
|
20400
20417
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20401
20418
|
})
|
|
20402
20419
|
]
|
|
20403
20420
|
}, String(e2)))
|
|
20404
|
-
}), t[85] =
|
|
20405
|
-
let
|
|
20406
|
-
return t[92] !== O || t[93] !==
|
|
20407
|
-
className:
|
|
20421
|
+
}), t[85] = QM, t[86] = i, t[87] = d, t[88] = fN, t[89] = J, t[90] = sN, t[91] = AN) : AN = t[91];
|
|
20422
|
+
let jN;
|
|
20423
|
+
return t[92] !== O || t[93] !== kN || t[94] !== AN ? (jN = (0, import_jsx_runtime.jsxs)("div", {
|
|
20424
|
+
className: hN,
|
|
20408
20425
|
...O,
|
|
20409
20426
|
children: [
|
|
20410
|
-
|
|
20411
|
-
|
|
20427
|
+
kN,
|
|
20428
|
+
AN
|
|
20412
20429
|
]
|
|
20413
|
-
}), t[92] = O, t[93] =
|
|
20430
|
+
}), t[92] = O, t[93] = kN, t[94] = AN, t[95] = jN) : jN = t[95], jN;
|
|
20414
20431
|
};
|
|
20415
20432
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20416
|
-
let n = (0, import_compiler_runtime$
|
|
20433
|
+
let n = (0, import_compiler_runtime$19.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
20417
20434
|
n[0] === o ? _ = n[1] : (_ = cn("pl-6 m-1 py-1", o), n[0] = o, n[1] = _);
|
|
20418
20435
|
let v;
|
|
20419
20436
|
n[2] !== h || n[3] !== c || n[4] !== s ? (v = () => {
|
|
@@ -20951,9 +20968,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20951
20968
|
...e
|
|
20952
20969
|
];
|
|
20953
20970
|
}
|
|
20954
|
-
var import_compiler_runtime$
|
|
20971
|
+
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
20955
20972
|
function useScrollContainerHeight(e) {
|
|
20956
|
-
let t = (0, import_compiler_runtime$
|
|
20973
|
+
let t = (0, import_compiler_runtime$18.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
|
|
20957
20974
|
t[0] !== n || t[1] !== i ? (o = () => {
|
|
20958
20975
|
if (!a.current) return;
|
|
20959
20976
|
let e2 = a.current.parentElement;
|
|
@@ -21550,9 +21567,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21550
21567
|
var _a2;
|
|
21551
21568
|
window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
|
|
21552
21569
|
};
|
|
21553
|
-
var import_compiler_runtime$
|
|
21570
|
+
var import_compiler_runtime$17 = require_compiler_runtime();
|
|
21554
21571
|
const CellSelectionProvider = (e) => {
|
|
21555
|
-
let t = (0, import_compiler_runtime$
|
|
21572
|
+
let t = (0, import_compiler_runtime$17.c)(3), { children: n } = e, i;
|
|
21556
21573
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
|
|
21557
21574
|
cellSelectionStateAtom
|
|
21558
21575
|
], t[0] = i) : i = t[0];
|
|
@@ -22107,8 +22124,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22107
22124
|
...e
|
|
22108
22125
|
});
|
|
22109
22126
|
}
|
|
22110
|
-
var import_compiler_runtime$
|
|
22111
|
-
let n = (0, import_compiler_runtime$
|
|
22127
|
+
var import_compiler_runtime$16 = require_compiler_runtime(), ContextMenu = Root2$2, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
|
|
22128
|
+
let n = (0, import_compiler_runtime$16.c)(14), i, a, o, s;
|
|
22112
22129
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: a, inset: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
22113
22130
|
let c;
|
|
22114
22131
|
n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
|
|
@@ -22132,7 +22149,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22132
22149
|
});
|
|
22133
22150
|
ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
|
|
22134
22151
|
var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, t) => {
|
|
22135
|
-
let n = (0, import_compiler_runtime$
|
|
22152
|
+
let n = (0, import_compiler_runtime$16.c)(9), i, o;
|
|
22136
22153
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
22137
22154
|
let s;
|
|
22138
22155
|
n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
|
|
@@ -22147,7 +22164,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22147
22164
|
});
|
|
22148
22165
|
ContextMenuSubContent.displayName = SubContent2.displayName;
|
|
22149
22166
|
var ContextMenuContent = import_react.forwardRef((e, t) => {
|
|
22150
|
-
let n = (0, import_compiler_runtime$
|
|
22167
|
+
let n = (0, import_compiler_runtime$16.c)(15), i, o, s;
|
|
22151
22168
|
n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: i, scrollable: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
|
|
22152
22169
|
let c = s === void 0 ? true : s, d;
|
|
22153
22170
|
n[4] !== i || n[5] !== c ? (d = cn(menuContentCommon(), contentCommon, c && "overflow-auto", i), n[4] = i, n[5] = c, n[6] = d) : d = n[6];
|
|
@@ -22170,7 +22187,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22170
22187
|
});
|
|
22171
22188
|
ContextMenuContent.displayName = Content2.displayName;
|
|
22172
22189
|
var ContextMenuItem = import_react.forwardRef((e, t) => {
|
|
22173
|
-
let n = (0, import_compiler_runtime$
|
|
22190
|
+
let n = (0, import_compiler_runtime$16.c)(13), i, a, o, s;
|
|
22174
22191
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, inset: a, variant: s, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
22175
22192
|
let c;
|
|
22176
22193
|
n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
|
|
@@ -22187,7 +22204,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22187
22204
|
});
|
|
22188
22205
|
ContextMenuItem.displayName = Item2$1.displayName;
|
|
22189
22206
|
var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
|
|
22190
|
-
let n = (0, import_compiler_runtime$
|
|
22207
|
+
let n = (0, import_compiler_runtime$16.c)(15), i, a, o, s;
|
|
22191
22208
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: o, children: a, checked: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
22192
22209
|
let c;
|
|
22193
22210
|
n[5] === o ? c = n[6] : (c = menuControlVariants({
|
|
@@ -22218,7 +22235,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22218
22235
|
});
|
|
22219
22236
|
ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
|
|
22220
22237
|
var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
|
|
22221
|
-
let n = (0, import_compiler_runtime$
|
|
22238
|
+
let n = (0, import_compiler_runtime$16.c)(13), i, a, o;
|
|
22222
22239
|
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: a, children: i, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
22223
22240
|
let s;
|
|
22224
22241
|
n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
|
|
@@ -22248,7 +22265,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22248
22265
|
});
|
|
22249
22266
|
ContextMenuRadioItem.displayName = RadioItem2.displayName;
|
|
22250
22267
|
var ContextMenuLabel = import_react.forwardRef((e, t) => {
|
|
22251
|
-
let n = (0, import_compiler_runtime$
|
|
22268
|
+
let n = (0, import_compiler_runtime$16.c)(11), i, a, o;
|
|
22252
22269
|
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: i, inset: a, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
22253
22270
|
let s;
|
|
22254
22271
|
n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
|
|
@@ -22264,7 +22281,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22264
22281
|
});
|
|
22265
22282
|
ContextMenuLabel.displayName = Label2.displayName;
|
|
22266
22283
|
var ContextMenuSeparator = import_react.forwardRef((e, t) => {
|
|
22267
|
-
let n = (0, import_compiler_runtime$
|
|
22284
|
+
let n = (0, import_compiler_runtime$16.c)(9), i, o;
|
|
22268
22285
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
22269
22286
|
let s;
|
|
22270
22287
|
n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
|
|
@@ -22278,9 +22295,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22278
22295
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
22279
22296
|
});
|
|
22280
22297
|
ContextMenuSeparator.displayName = Separator2.displayName;
|
|
22281
|
-
var import_compiler_runtime$
|
|
22298
|
+
var import_compiler_runtime$15 = require_compiler_runtime();
|
|
22282
22299
|
const DataTableContextMenu = (e) => {
|
|
22283
|
-
let t = (0, import_compiler_runtime$
|
|
22300
|
+
let t = (0, import_compiler_runtime$15.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
|
|
22284
22301
|
t[0] !== i || t[1] !== o ? (c = (e2) => {
|
|
22285
22302
|
var _a2;
|
|
22286
22303
|
let t2 = i.current;
|
|
@@ -22380,9 +22397,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22380
22397
|
]
|
|
22381
22398
|
});
|
|
22382
22399
|
};
|
|
22383
|
-
var import_compiler_runtime$
|
|
22400
|
+
var import_compiler_runtime$14 = require_compiler_runtime();
|
|
22384
22401
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
22385
|
-
let t = (0, import_compiler_runtime$
|
|
22402
|
+
let t = (0, import_compiler_runtime$14.c)(9), { cellId: n, className: i } = e, o;
|
|
22386
22403
|
t[0] === n ? o = t[1] : (o = createCellStateAtom(n), t[0] = n, t[1] = o);
|
|
22387
22404
|
let { isSelected: s, isCopied: c } = useAtomValue(o);
|
|
22388
22405
|
if (!s && !c) return null;
|
|
@@ -22395,9 +22412,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22395
22412
|
}), t[6] = n, t[7] = h, t[8] = _) : _ = t[8], _;
|
|
22396
22413
|
});
|
|
22397
22414
|
CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
|
|
22398
|
-
var import_compiler_runtime$
|
|
22415
|
+
var import_compiler_runtime$13 = require_compiler_runtime();
|
|
22399
22416
|
const useCellRangeSelection = (e) => {
|
|
22400
|
-
let t = (0, import_compiler_runtime$
|
|
22417
|
+
let t = (0, import_compiler_runtime$13.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
|
|
22401
22418
|
t[0] !== i || t[1] !== n ? (a = () => {
|
|
22402
22419
|
i.handleCopy({
|
|
22403
22420
|
table: n,
|
|
@@ -22504,9 +22521,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22504
22521
|
}
|
|
22505
22522
|
return false;
|
|
22506
22523
|
}
|
|
22507
|
-
var import_compiler_runtime$
|
|
22524
|
+
var import_compiler_runtime$12 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
|
|
22508
22525
|
function useScrollIntoViewOnFocus(e) {
|
|
22509
|
-
let t = (0, import_compiler_runtime$
|
|
22526
|
+
let t = (0, import_compiler_runtime$12.c)(2), i;
|
|
22510
22527
|
t[0] === e ? i = t[1] : (i = (t2) => {
|
|
22511
22528
|
(t2 == null ? void 0 : t2.cellId) && setTimeout(() => {
|
|
22512
22529
|
var _a2;
|
|
@@ -23030,9 +23047,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23030
23047
|
e === "too_many" ? "Unknown" : prettifyRowCount(e, n),
|
|
23031
23048
|
`${prettyNumber(t, n)} ${new PluralWord("column").pluralize(t)}`
|
|
23032
23049
|
].join(", ");
|
|
23033
|
-
var import_compiler_runtime$
|
|
23050
|
+
var import_compiler_runtime$11 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
|
|
23034
23051
|
const CellSelectionStats = (e) => {
|
|
23035
|
-
let t = (0, import_compiler_runtime$
|
|
23052
|
+
let t = (0, import_compiler_runtime$11.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
|
|
23036
23053
|
if (c < 2) {
|
|
23037
23054
|
let e2;
|
|
23038
23055
|
t[0] === i ? e2 = t[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", i), t[0] = i, t[1] = e2);
|
|
@@ -23075,7 +23092,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23075
23092
|
var formatNumber = (e, t) => e.toLocaleString(t, {
|
|
23076
23093
|
maximumFractionDigits: MAX_FRACTION_DIGITS
|
|
23077
23094
|
}), StatSpan = (e) => {
|
|
23078
|
-
let t = (0, import_compiler_runtime$
|
|
23095
|
+
let t = (0, import_compiler_runtime$11.c)(6), { name: n, value: i, locale: a } = e, o;
|
|
23079
23096
|
t[0] !== a || t[1] !== i ? (o = formatNumber(i, a), t[0] = a, t[1] = i, t[2] = o) : o = t[2];
|
|
23080
23097
|
let s;
|
|
23081
23098
|
return t[3] !== n || t[4] !== o ? (s = (0, import_jsx_runtime.jsxs)("span", {
|
|
@@ -23086,18 +23103,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23086
23103
|
]
|
|
23087
23104
|
}), t[3] = n, t[4] = o, t[5] = s) : s = t[5], s;
|
|
23088
23105
|
}, CountStat = (e) => {
|
|
23089
|
-
let t = (0, import_compiler_runtime$
|
|
23106
|
+
let t = (0, import_compiler_runtime$11.c)(3), { count: n, locale: i } = e, a;
|
|
23090
23107
|
return t[0] !== n || t[1] !== i ? (a = (0, import_jsx_runtime.jsx)(StatSpan, {
|
|
23091
23108
|
name: "Count",
|
|
23092
23109
|
value: n,
|
|
23093
23110
|
locale: i
|
|
23094
23111
|
}), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
23095
23112
|
}, SumStat = (e) => {
|
|
23096
|
-
let t = (0, import_compiler_runtime$
|
|
23113
|
+
let t = (0, import_compiler_runtime$11.c)(6), { numericValues: n, locale: i } = e;
|
|
23097
23114
|
if (n.length === 0) return null;
|
|
23098
23115
|
let a, o;
|
|
23099
23116
|
if (t[0] !== n) {
|
|
23100
|
-
let e2 = n.reduce(_temp$
|
|
23117
|
+
let e2 = n.reduce(_temp$4, 0);
|
|
23101
23118
|
a = Number, o = e2.toFixed(MAX_FRACTION_DIGITS), t[0] = n, t[1] = a, t[2] = o;
|
|
23102
23119
|
} else a = t[1], o = t[2];
|
|
23103
23120
|
let s = a(o), c;
|
|
@@ -23107,9 +23124,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23107
23124
|
locale: i
|
|
23108
23125
|
}), t[3] = i, t[4] = s, t[5] = c) : c = t[5], c;
|
|
23109
23126
|
}, AverageStat = (e) => {
|
|
23110
|
-
let t = (0, import_compiler_runtime$
|
|
23127
|
+
let t = (0, import_compiler_runtime$11.c)(5), { numericValues: n, locale: i } = e;
|
|
23111
23128
|
if (n.length === 0) return null;
|
|
23112
|
-
let a = n.reduce(_temp2$
|
|
23129
|
+
let a = n.reduce(_temp2$2, 0) / n.length, o;
|
|
23113
23130
|
t[0] === a ? o = t[1] : (o = a.toFixed(MAX_FRACTION_DIGITS), t[0] = a, t[1] = o);
|
|
23114
23131
|
let s = Number(o), c;
|
|
23115
23132
|
return t[2] !== s || t[3] !== i ? (c = (0, import_jsx_runtime.jsx)(StatSpan, {
|
|
@@ -23118,10 +23135,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23118
23135
|
locale: i
|
|
23119
23136
|
}), t[2] = s, t[3] = i, t[4] = c) : c = t[4], c;
|
|
23120
23137
|
};
|
|
23121
|
-
function _temp$
|
|
23138
|
+
function _temp$4(e, t) {
|
|
23122
23139
|
return e + t;
|
|
23123
23140
|
}
|
|
23124
|
-
function _temp2$
|
|
23141
|
+
function _temp2$2(e, t) {
|
|
23125
23142
|
return e + t;
|
|
23126
23143
|
}
|
|
23127
23144
|
let TableBottomBar;
|
|
@@ -23286,9 +23303,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23286
23303
|
let n = URL.createObjectURL(e);
|
|
23287
23304
|
downloadByURL(n, t), URL.revokeObjectURL(n);
|
|
23288
23305
|
};
|
|
23289
|
-
var import_compiler_runtime$
|
|
23306
|
+
var import_compiler_runtime$10 = require_compiler_runtime();
|
|
23290
23307
|
InstallPackageButton = (e) => {
|
|
23291
|
-
let t = (0, import_compiler_runtime$
|
|
23308
|
+
let t = (0, import_compiler_runtime$10.c)(13), { packages: n, showMaxPackages: i, className: o, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages();
|
|
23292
23309
|
if (!n || n.length === 0) return null;
|
|
23293
23310
|
let d;
|
|
23294
23311
|
t[0] !== c || t[1] !== s || t[2] !== n ? (d = () => {
|
|
@@ -23311,9 +23328,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23311
23328
|
]
|
|
23312
23329
|
}), t[9] = d, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
|
|
23313
23330
|
};
|
|
23314
|
-
var import_compiler_runtime$
|
|
23331
|
+
var import_compiler_runtime$9 = require_compiler_runtime();
|
|
23315
23332
|
const MissingPackagePrompt = (e) => {
|
|
23316
|
-
let t = (0, import_compiler_runtime$
|
|
23333
|
+
let t = (0, import_compiler_runtime$9.c)(16), { packages: n, featureName: i, description: o, onInstall: s, className: c } = e;
|
|
23317
23334
|
if (!useInstallAllowed()) {
|
|
23318
23335
|
let e2;
|
|
23319
23336
|
t[0] === c ? e2 = t[1] : (e2 = cn("text-xs", c), t[0] = c, t[1] = e2);
|
|
@@ -23348,7 +23365,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23348
23365
|
]
|
|
23349
23366
|
}), t[12] = d, t[13] = h, t[14] = _, t[15] = v) : v = t[15], v;
|
|
23350
23367
|
};
|
|
23351
|
-
var import_compiler_runtime$
|
|
23368
|
+
var import_compiler_runtime$8 = require_compiler_runtime(), FILE_TYPES = {
|
|
23352
23369
|
CSV: {
|
|
23353
23370
|
label: "CSV",
|
|
23354
23371
|
format: "csv",
|
|
@@ -23393,7 +23410,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23393
23410
|
return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
23394
23411
|
};
|
|
23395
23412
|
const ExportMenu = (e) => {
|
|
23396
|
-
let t = (0, import_compiler_runtime$
|
|
23413
|
+
let t = (0, import_compiler_runtime$8.c)(48), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = i ? "text-primary" : "text-muted-foreground", c;
|
|
23397
23414
|
t[0] === s ? c = t[1] : (c = cn("print:hidden text-xs gap-1", s), t[0] = s, t[1] = c);
|
|
23398
23415
|
let d;
|
|
23399
23416
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)(Download, {
|
|
@@ -23437,7 +23454,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23437
23454
|
filename: i2.filename
|
|
23438
23455
|
};
|
|
23439
23456
|
}, t[5] = e, t[6] = v);
|
|
23440
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23457
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, ZM, $;
|
|
23441
23458
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23442
23459
|
let e2 = async (t2) => {
|
|
23443
23460
|
let n2 = await y(t2, () => {
|
|
@@ -23487,7 +23504,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23487
23504
|
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
23488
23505
|
className: "text-xs text-muted-foreground",
|
|
23489
23506
|
children: "Download"
|
|
23490
|
-
}), t[29] = Q) : Q = t[29],
|
|
23507
|
+
}), t[29] = Q) : Q = t[29], ZM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23491
23508
|
onSelect: () => {
|
|
23492
23509
|
e2(t2.format);
|
|
23493
23510
|
},
|
|
@@ -23540,30 +23557,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23540
23557
|
]
|
|
23541
23558
|
})
|
|
23542
23559
|
]
|
|
23543
|
-
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] =
|
|
23544
|
-
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21],
|
|
23545
|
-
let
|
|
23546
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23560
|
+
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = ZM, t[23] = $;
|
|
23561
|
+
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], ZM = t[22], $ = t[23];
|
|
23562
|
+
let QM;
|
|
23563
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== ZM || t[39] !== $ ? (QM = (0, import_jsx_runtime.jsxs)(E, {
|
|
23547
23564
|
side: q,
|
|
23548
23565
|
className: J,
|
|
23549
23566
|
children: [
|
|
23550
23567
|
Q,
|
|
23551
|
-
|
|
23568
|
+
ZM,
|
|
23552
23569
|
$,
|
|
23553
23570
|
A,
|
|
23554
23571
|
M
|
|
23555
23572
|
]
|
|
23556
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23557
|
-
let
|
|
23558
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23573
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = ZM, t[39] = $, t[40] = QM) : QM = t[40];
|
|
23574
|
+
let $M;
|
|
23575
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== QM ? ($M = (0, import_jsx_runtime.jsxs)(O, {
|
|
23559
23576
|
modal: I,
|
|
23560
23577
|
open: z,
|
|
23561
23578
|
onOpenChange: U,
|
|
23562
23579
|
children: [
|
|
23563
23580
|
K,
|
|
23564
|
-
|
|
23581
|
+
QM
|
|
23565
23582
|
]
|
|
23566
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23583
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = QM, t[47] = $M) : $M = t[47], $M;
|
|
23567
23584
|
};
|
|
23568
23585
|
function fetchJson(e) {
|
|
23569
23586
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23654,22 +23671,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23654
23671
|
]
|
|
23655
23672
|
}) : null;
|
|
23656
23673
|
};
|
|
23657
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery:
|
|
23658
|
-
let [
|
|
23674
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: ZM, onSearchQueryChange: $, showFilters: QM = false, filters: $M, onFiltersChange: eN, calculateTopKRows: tN, reloading: nN, freezeColumnsLeft: rN, freezeColumnsRight: iN, toggleDisplayHeader: aN, showChartBuilder: oN, isChartBuilderOpen: sN, showPageSizeSelector: cN, showTableExplorer: lN, togglePanel: uN, isPanelOpen: dN, isAnyPanelOpen: fN, viewedRowIdx: pN, onViewedRowChange: mN }) => {
|
|
23675
|
+
let [hN, gN] = import_react.useState(false), { locale: _N } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: vN, setColumnPinning: yN } = useColumnPinning(rN, iN);
|
|
23659
23676
|
import_react.useEffect(() => {
|
|
23660
23677
|
let e2;
|
|
23661
|
-
return
|
|
23662
|
-
|
|
23663
|
-
}, 300) :
|
|
23678
|
+
return nN ? e2 = setTimeout(() => {
|
|
23679
|
+
gN(true);
|
|
23680
|
+
}, 300) : gN(false), () => {
|
|
23664
23681
|
e2 && clearTimeout(e2);
|
|
23665
23682
|
};
|
|
23666
23683
|
}, [
|
|
23667
|
-
|
|
23684
|
+
nN
|
|
23668
23685
|
]);
|
|
23669
|
-
function
|
|
23686
|
+
function bN(e2, t2) {
|
|
23670
23687
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23671
23688
|
}
|
|
23672
|
-
let
|
|
23689
|
+
let xN = useReactTable({
|
|
23673
23690
|
_features: [
|
|
23674
23691
|
ColumnPinning,
|
|
23675
23692
|
ColumnWrappingFeature,
|
|
@@ -23693,11 +23710,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23693
23710
|
getRowId: (e2, t2) => {
|
|
23694
23711
|
let n2 = getStableRowId(e2);
|
|
23695
23712
|
if (n2) return n2;
|
|
23696
|
-
let i2 =
|
|
23713
|
+
let i2 = bN(e2, t2);
|
|
23697
23714
|
return String(i2);
|
|
23698
23715
|
}
|
|
23699
23716
|
} : {},
|
|
23700
|
-
locale:
|
|
23717
|
+
locale: _N,
|
|
23701
23718
|
manualPagination: z,
|
|
23702
23719
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23703
23720
|
...v ? {
|
|
@@ -23707,21 +23724,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23707
23724
|
enableMultiSort: true,
|
|
23708
23725
|
getSortedRowModel: getSortedRowModel(),
|
|
23709
23726
|
manualFiltering: true,
|
|
23710
|
-
enableColumnFilters:
|
|
23727
|
+
enableColumnFilters: QM,
|
|
23711
23728
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23712
|
-
onColumnFiltersChange:
|
|
23729
|
+
onColumnFiltersChange: eN,
|
|
23713
23730
|
onRowSelectionChange: K,
|
|
23714
23731
|
onCellSelectionChange: q,
|
|
23715
23732
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23716
23733
|
enableMultiCellSelection: c === "multi-cell",
|
|
23717
|
-
onColumnPinningChange:
|
|
23734
|
+
onColumnPinningChange: yN,
|
|
23718
23735
|
enableFocusRow: true,
|
|
23719
|
-
onFocusRowChange:
|
|
23736
|
+
onFocusRowChange: mN,
|
|
23720
23737
|
state: {
|
|
23721
23738
|
..._ ? {
|
|
23722
23739
|
sorting: _
|
|
23723
23740
|
} : {},
|
|
23724
|
-
columnFilters:
|
|
23741
|
+
columnFilters: $M,
|
|
23725
23742
|
...A ? {
|
|
23726
23743
|
pagination: A
|
|
23727
23744
|
} : U && !A ? {} : {
|
|
@@ -23733,21 +23750,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23733
23750
|
rowSelection: y ?? {},
|
|
23734
23751
|
cellSelection: S ?? [],
|
|
23735
23752
|
cellStyling: w,
|
|
23736
|
-
columnPinning:
|
|
23753
|
+
columnPinning: vN,
|
|
23737
23754
|
cellHoverTemplate: E,
|
|
23738
23755
|
cellHoverTexts: O ?? {}
|
|
23739
23756
|
}
|
|
23740
|
-
}),
|
|
23757
|
+
}), SN = (dN == null ? void 0 : dN(PANEL_TYPES.ROW_VIEWER)) ?? false, CN = !U && o.length > 100, wN = useScrollContainerHeight({
|
|
23741
23758
|
maxHeight: n,
|
|
23742
|
-
virtualize:
|
|
23759
|
+
virtualize: CN
|
|
23743
23760
|
});
|
|
23744
23761
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23745
23762
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23746
23763
|
children: [
|
|
23747
23764
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23748
|
-
filters:
|
|
23749
|
-
table:
|
|
23750
|
-
calculateTopKRows:
|
|
23765
|
+
filters: $M,
|
|
23766
|
+
table: xN,
|
|
23767
|
+
calculateTopKRows: tN
|
|
23751
23768
|
}),
|
|
23752
23769
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23753
23770
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23756,32 +23773,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23756
23773
|
children: [
|
|
23757
23774
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23758
23775
|
enableSearch: Q,
|
|
23759
|
-
searchQuery:
|
|
23776
|
+
searchQuery: ZM,
|
|
23760
23777
|
onSearchQueryChange: $,
|
|
23761
|
-
reloading:
|
|
23762
|
-
showChartBuilder:
|
|
23763
|
-
isChartBuilderOpen:
|
|
23764
|
-
toggleDisplayHeader:
|
|
23765
|
-
showTableExplorer:
|
|
23766
|
-
togglePanel:
|
|
23767
|
-
isAnyPanelOpen:
|
|
23778
|
+
reloading: nN,
|
|
23779
|
+
showChartBuilder: oN,
|
|
23780
|
+
isChartBuilderOpen: sN,
|
|
23781
|
+
toggleDisplayHeader: aN,
|
|
23782
|
+
showTableExplorer: lN,
|
|
23783
|
+
togglePanel: uN,
|
|
23784
|
+
isAnyPanelOpen: fN,
|
|
23768
23785
|
downloadAs: I
|
|
23769
23786
|
}),
|
|
23770
23787
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23771
23788
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23772
|
-
ref:
|
|
23789
|
+
ref: wN,
|
|
23773
23790
|
children: [
|
|
23774
|
-
|
|
23791
|
+
hN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23775
23792
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23776
23793
|
}),
|
|
23777
|
-
renderTableHeader(
|
|
23794
|
+
renderTableHeader(xN, CN || !!n),
|
|
23778
23795
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23779
|
-
table:
|
|
23796
|
+
table: xN,
|
|
23780
23797
|
columns: i,
|
|
23781
|
-
rowViewerPanelOpen:
|
|
23782
|
-
getRowIndex:
|
|
23783
|
-
viewedRowIdx:
|
|
23784
|
-
virtualize:
|
|
23798
|
+
rowViewerPanelOpen: SN,
|
|
23799
|
+
getRowIndex: bN,
|
|
23800
|
+
viewedRowIdx: pN,
|
|
23801
|
+
virtualize: CN
|
|
23785
23802
|
})
|
|
23786
23803
|
]
|
|
23787
23804
|
}),
|
|
@@ -23792,10 +23809,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23792
23809
|
pagination: U,
|
|
23793
23810
|
selection: c,
|
|
23794
23811
|
onRowSelectionChange: K,
|
|
23795
|
-
table:
|
|
23812
|
+
table: xN,
|
|
23796
23813
|
getRowIds: J,
|
|
23797
|
-
showPageSizeSelector:
|
|
23798
|
-
tableLoading:
|
|
23814
|
+
showPageSizeSelector: cN,
|
|
23815
|
+
tableLoading: nN
|
|
23799
23816
|
})
|
|
23800
23817
|
]
|
|
23801
23818
|
})
|
|
@@ -23859,10 +23876,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23859
23876
|
]
|
|
23860
23877
|
}), e.focus(), true;
|
|
23861
23878
|
}
|
|
23862
|
-
var import_compiler_runtime$
|
|
23879
|
+
var import_compiler_runtime$6 = require_compiler_runtime(), KEY = "item";
|
|
23863
23880
|
const MarimoTracebackOutput = (e) => {
|
|
23864
23881
|
var _a2;
|
|
23865
|
-
let t = (0, import_compiler_runtime$
|
|
23882
|
+
let t = (0, import_compiler_runtime$6.c)(47), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
|
|
23866
23883
|
t[0] === i ? s = t[1] : (s = renderHTML({
|
|
23867
23884
|
html: i,
|
|
23868
23885
|
additionalReplacements: [
|
|
@@ -23884,68 +23901,68 @@ ${_}`,
|
|
|
23884
23901
|
triggerImmediately: e2
|
|
23885
23902
|
});
|
|
23886
23903
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23887
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$
|
|
23888
|
-
let
|
|
23889
|
-
t[11] ===
|
|
23890
|
-
let
|
|
23891
|
-
t[13] ===
|
|
23892
|
-
className:
|
|
23893
|
-
}), t[13] =
|
|
23894
|
-
let
|
|
23895
|
-
t[15] ===
|
|
23904
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$3), t[10] = $) : $ = t[10];
|
|
23905
|
+
let QM = d ? "rotate-180" : "rotate-0", $M;
|
|
23906
|
+
t[11] === QM ? $M = t[12] : ($M = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", QM), t[11] = QM, t[12] = $M);
|
|
23907
|
+
let eN;
|
|
23908
|
+
t[13] === $M ? eN = t[14] : (eN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
23909
|
+
className: $M
|
|
23910
|
+
}), t[13] = $M, t[14] = eN);
|
|
23911
|
+
let tN = q || "Error", nN;
|
|
23912
|
+
t[15] === tN ? nN = t[16] : (nN = (0, import_jsx_runtime.jsxs)("span", {
|
|
23896
23913
|
className: "text-destructive",
|
|
23897
23914
|
children: [
|
|
23898
|
-
|
|
23915
|
+
tN,
|
|
23899
23916
|
":"
|
|
23900
23917
|
]
|
|
23901
|
-
}), t[15] =
|
|
23902
|
-
let
|
|
23903
|
-
t[17] !== J || t[18] !==
|
|
23918
|
+
}), t[15] = tN, t[16] = nN);
|
|
23919
|
+
let rN;
|
|
23920
|
+
t[17] !== J || t[18] !== nN ? (rN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23904
23921
|
className: "text-sm inline font-mono",
|
|
23905
23922
|
children: [
|
|
23906
|
-
|
|
23923
|
+
nN,
|
|
23907
23924
|
" ",
|
|
23908
23925
|
J
|
|
23909
23926
|
]
|
|
23910
|
-
}), t[17] = J, t[18] =
|
|
23911
|
-
let
|
|
23912
|
-
t[20] !==
|
|
23927
|
+
}), t[17] = J, t[18] = nN, t[19] = rN) : rN = t[19];
|
|
23928
|
+
let aN;
|
|
23929
|
+
t[20] !== rN || t[21] !== eN ? (aN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23913
23930
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23914
23931
|
onClick: $,
|
|
23915
23932
|
children: [
|
|
23916
|
-
|
|
23917
|
-
|
|
23933
|
+
eN,
|
|
23934
|
+
rN
|
|
23918
23935
|
]
|
|
23919
|
-
}), t[20] =
|
|
23920
|
-
let
|
|
23921
|
-
t[23] === c ?
|
|
23936
|
+
}), t[20] = rN, t[21] = eN, t[22] = aN) : aN = t[22];
|
|
23937
|
+
let oN;
|
|
23938
|
+
t[23] === c ? oN = t[24] : (oN = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
23922
23939
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23923
23940
|
children: c
|
|
23924
|
-
}), t[23] = c, t[24] =
|
|
23925
|
-
let
|
|
23926
|
-
t[25] !==
|
|
23941
|
+
}), t[23] = c, t[24] = oN);
|
|
23942
|
+
let cN;
|
|
23943
|
+
t[25] !== aN || t[26] !== oN ? (cN = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
23927
23944
|
value: KEY,
|
|
23928
23945
|
className: "border-none",
|
|
23929
23946
|
children: [
|
|
23930
|
-
|
|
23931
|
-
|
|
23947
|
+
aN,
|
|
23948
|
+
oN
|
|
23932
23949
|
]
|
|
23933
|
-
}), t[25] =
|
|
23934
|
-
let
|
|
23935
|
-
t[28] !==
|
|
23950
|
+
}), t[25] = aN, t[26] = oN, t[27] = cN) : cN = t[27];
|
|
23951
|
+
let lN;
|
|
23952
|
+
t[28] !== cN || t[29] !== Q ? (lN = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
23936
23953
|
type: "single",
|
|
23937
23954
|
collapsible: true,
|
|
23938
23955
|
value: Q,
|
|
23939
|
-
children:
|
|
23940
|
-
}), t[28] =
|
|
23941
|
-
let
|
|
23942
|
-
t[31] !== K || t[32] !== I ? (
|
|
23956
|
+
children: cN
|
|
23957
|
+
}), t[28] = cN, t[29] = Q, t[30] = lN) : lN = t[30];
|
|
23958
|
+
let uN;
|
|
23959
|
+
t[31] !== K || t[32] !== I ? (uN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
23943
23960
|
tooltip: "Fix with AI",
|
|
23944
23961
|
openPrompt: () => K(false),
|
|
23945
23962
|
applyAutofix: () => K(true)
|
|
23946
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
23947
|
-
let
|
|
23948
|
-
t[34] !== A || t[35] !== E ? (
|
|
23963
|
+
}), t[31] = K, t[32] = I, t[33] = uN) : uN = t[33];
|
|
23964
|
+
let fN;
|
|
23965
|
+
t[34] !== A || t[35] !== E ? (fN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
23949
23966
|
content: "Attach pdb to the exception point.",
|
|
23950
23967
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
23951
23968
|
size: "xs",
|
|
@@ -23962,9 +23979,9 @@ ${_}`,
|
|
|
23962
23979
|
"Launch debugger"
|
|
23963
23980
|
]
|
|
23964
23981
|
})
|
|
23965
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
23966
|
-
let
|
|
23967
|
-
t[37] !== _ || t[38] !== i ? (
|
|
23982
|
+
}), t[34] = A, t[35] = E, t[36] = fN) : fN = t[36];
|
|
23983
|
+
let pN;
|
|
23984
|
+
t[37] !== _ || t[38] !== i ? (pN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
23968
23985
|
children: [
|
|
23969
23986
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
23970
23987
|
asChild: true,
|
|
@@ -24032,24 +24049,24 @@ ${_}`,
|
|
|
24032
24049
|
]
|
|
24033
24050
|
})
|
|
24034
24051
|
]
|
|
24035
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24036
|
-
let
|
|
24037
|
-
t[40] !==
|
|
24052
|
+
}), t[37] = _, t[38] = i, t[39] = pN) : pN = t[39];
|
|
24053
|
+
let mN;
|
|
24054
|
+
t[40] !== uN || t[41] !== fN || t[42] !== pN ? (mN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24038
24055
|
className: "flex gap-2",
|
|
24039
24056
|
children: [
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
|
|
24057
|
+
uN,
|
|
24058
|
+
fN,
|
|
24059
|
+
pN
|
|
24043
24060
|
]
|
|
24044
|
-
}), t[40] =
|
|
24045
|
-
let
|
|
24046
|
-
return t[44] !==
|
|
24061
|
+
}), t[40] = uN, t[41] = fN, t[42] = pN, t[43] = mN) : mN = t[43];
|
|
24062
|
+
let hN;
|
|
24063
|
+
return t[44] !== lN || t[45] !== mN ? (hN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24047
24064
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24048
24065
|
children: [
|
|
24049
|
-
|
|
24050
|
-
|
|
24066
|
+
lN,
|
|
24067
|
+
mN
|
|
24051
24068
|
]
|
|
24052
|
-
}), t[44] =
|
|
24069
|
+
}), t[44] = lN, t[45] = mN, t[46] = hN) : hN = t[46], hN;
|
|
24053
24070
|
};
|
|
24054
24071
|
function lastLine(e) {
|
|
24055
24072
|
var _a2, _b;
|
|
@@ -24111,7 +24128,7 @@ ${_}`,
|
|
|
24111
24128
|
});
|
|
24112
24129
|
};
|
|
24113
24130
|
var InsertBreakpointContent = () => {
|
|
24114
|
-
let e = (0, import_compiler_runtime$
|
|
24131
|
+
let e = (0, import_compiler_runtime$6.c)(1), t;
|
|
24115
24132
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
24116
24133
|
children: [
|
|
24117
24134
|
"Insert a ",
|
|
@@ -24123,7 +24140,7 @@ ${_}`,
|
|
|
24123
24140
|
]
|
|
24124
24141
|
}), e[0] = t) : t = e[0], t;
|
|
24125
24142
|
};
|
|
24126
|
-
function _temp$
|
|
24143
|
+
function _temp$3(e) {
|
|
24127
24144
|
return !e;
|
|
24128
24145
|
}
|
|
24129
24146
|
function renderMimeIcon(e) {
|
|
@@ -24165,9 +24182,9 @@ ${_}`,
|
|
|
24165
24182
|
return "\u2753";
|
|
24166
24183
|
}
|
|
24167
24184
|
}
|
|
24168
|
-
var import_compiler_runtime$
|
|
24185
|
+
var import_compiler_runtime$5 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
|
|
24169
24186
|
OutputRenderer = (0, import_react.memo)((e) => {
|
|
24170
|
-
let t = (0, import_compiler_runtime$
|
|
24187
|
+
let t = (0, import_compiler_runtime$5.c)(54), { message: n, onRefactorWithAI: i, cellId: a, wrapText: o, metadata: s, renderFallback: c } = e, { theme: d } = useTheme(), f;
|
|
24171
24188
|
bb0: {
|
|
24172
24189
|
let e2 = n.data;
|
|
24173
24190
|
switch (n.mimetype) {
|
|
@@ -24359,11 +24376,11 @@ ${_}`,
|
|
|
24359
24376
|
OutputRenderer.displayName = "OutputRenderer";
|
|
24360
24377
|
var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
|
|
24361
24378
|
var _a2;
|
|
24362
|
-
let t = (0, import_compiler_runtime$
|
|
24379
|
+
let t = (0, import_compiler_runtime$5.c)(31), { data: n, channel: o, cellId: s } = e, c = Array.isArray(n) ? n[0] : n, { mode: d } = useAtomValue(viewStateAtom), f = d === "present" || d === "read", h = c[METADATA_KEY], _, v, y, S, w, E, O, A;
|
|
24363
24380
|
if (t[0] !== f || t[1] !== s || t[2] !== o || t[3] !== h || t[4] !== c) {
|
|
24364
24381
|
A = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
24365
24382
|
bb0: {
|
|
24366
|
-
let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp$
|
|
24383
|
+
let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp$2).map(_temp2$1)), n2 = (_a2 = e2[0]) == null ? void 0 : _a2[0];
|
|
24367
24384
|
if (!n2) {
|
|
24368
24385
|
A = null;
|
|
24369
24386
|
break bb0;
|
|
@@ -24430,7 +24447,7 @@ ${_}`,
|
|
|
24430
24447
|
});
|
|
24431
24448
|
MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
|
|
24432
24449
|
OutputArea = import_react.memo((e) => {
|
|
24433
|
-
let t = (0, import_compiler_runtime$
|
|
24450
|
+
let t = (0, import_compiler_runtime$5.c)(17), { output: n, cellId: i, stale: o, loading: s, allowExpand: c, forceExpand: d, className: f } = e;
|
|
24434
24451
|
if (n == null || n.channel === "output" && n.data === "") return null;
|
|
24435
24452
|
let h = o ? "This output is stale" : void 0, _ = c ? ExpandableOutput : Div, v;
|
|
24436
24453
|
t[0] === i ? v = t[1] : (v = CellOutputId.create(i), t[0] = i, t[1] = v);
|
|
@@ -24455,7 +24472,7 @@ ${_}`,
|
|
|
24455
24472
|
});
|
|
24456
24473
|
OutputArea.displayName = "OutputArea";
|
|
24457
24474
|
var Div = import_react.forwardRef((e, t) => {
|
|
24458
|
-
let n = (0, import_compiler_runtime$
|
|
24475
|
+
let n = (0, import_compiler_runtime$5.c)(3), i;
|
|
24459
24476
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)("div", {
|
|
24460
24477
|
ref: t,
|
|
24461
24478
|
...e
|
|
@@ -24463,7 +24480,7 @@ ${_}`,
|
|
|
24463
24480
|
});
|
|
24464
24481
|
Div.displayName = "Div";
|
|
24465
24482
|
var ExpandableOutput = import_react.memo((e) => {
|
|
24466
|
-
let t = (0, import_compiler_runtime$
|
|
24483
|
+
let t = (0, import_compiler_runtime$5.c)(24), { cellId: n, children: i, forceExpand: s, ...c } = e, d = (0, import_react.useRef)(null), [h, _] = useExpandedOutput(n), v = useOverflowDetection(d), { hasFullscreen: y } = useIframeCapabilities(), S;
|
|
24467
24484
|
t[0] === y ? S = t[1] : (S = y && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
24468
24485
|
content: "Fullscreen",
|
|
24469
24486
|
side: "left",
|
|
@@ -24548,11 +24565,11 @@ ${_}`,
|
|
|
24548
24565
|
}), t[22] = I, t[23] = U), U;
|
|
24549
24566
|
});
|
|
24550
24567
|
ExpandableOutput.displayName = "ExpandableOutput";
|
|
24551
|
-
function _temp$
|
|
24568
|
+
function _temp$2(e) {
|
|
24552
24569
|
let [t] = e;
|
|
24553
24570
|
return t !== METADATA_KEY;
|
|
24554
24571
|
}
|
|
24555
|
-
function _temp2(e) {
|
|
24572
|
+
function _temp2$1(e) {
|
|
24556
24573
|
let [t, n] = e;
|
|
24557
24574
|
return [
|
|
24558
24575
|
t,
|
|
@@ -24574,8 +24591,8 @@ ${_}`,
|
|
|
24574
24591
|
})
|
|
24575
24592
|
}, t);
|
|
24576
24593
|
}
|
|
24577
|
-
var import_compiler_runtime$
|
|
24578
|
-
let t = (0, import_compiler_runtime$
|
|
24594
|
+
var import_compiler_runtime$4 = require_compiler_runtime(), CopyButton = (e) => {
|
|
24595
|
+
let t = (0, import_compiler_runtime$4.c)(8), { value: n } = e, i = typeof n == "string" && (n.startsWith("text/html:") || n.startsWith("image/") || n.startsWith("video/")), [o, s] = (0, import_react.useState)(false), c;
|
|
24579
24596
|
t[0] === n ? c = t[1] : (c = async (e2) => {
|
|
24580
24597
|
e2.stopPropagation(), await copyToClipboard(n), s(true), setTimeout(() => s(false), 1e3);
|
|
24581
24598
|
}, t[0] = n, t[1] = c);
|
|
@@ -24598,7 +24615,7 @@ ${_}`,
|
|
|
24598
24615
|
children: h
|
|
24599
24616
|
}), t[5] = d, t[6] = h, t[7] = _) : _ = t[7], _;
|
|
24600
24617
|
}, JSONCopyButton = (e) => {
|
|
24601
|
-
let t = (0, import_compiler_runtime$
|
|
24618
|
+
let t = (0, import_compiler_runtime$4.c)(5), n;
|
|
24602
24619
|
t[0] === e.value ? n = t[1] : (n = JSON.stringify(e.value, null, 2), t[0] = e.value, t[1] = n);
|
|
24603
24620
|
let i;
|
|
24604
24621
|
return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
|
|
@@ -24606,7 +24623,7 @@ ${_}`,
|
|
|
24606
24623
|
value: n
|
|
24607
24624
|
}), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
|
|
24608
24625
|
}, PyCopyButton = (e) => {
|
|
24609
|
-
let t = (0, import_compiler_runtime$
|
|
24626
|
+
let t = (0, import_compiler_runtime$4.c)(5), n;
|
|
24610
24627
|
t[0] === e.value ? n = t[1] : (n = getCopyValue(e.value), t[0] = e.value, t[1] = n);
|
|
24611
24628
|
let i;
|
|
24612
24629
|
return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
|
|
@@ -24615,7 +24632,7 @@ ${_}`,
|
|
|
24615
24632
|
}), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
|
|
24616
24633
|
};
|
|
24617
24634
|
JsonOutput = (0, import_react.memo)((e) => {
|
|
24618
|
-
let t = (0, import_compiler_runtime$
|
|
24635
|
+
let t = (0, import_compiler_runtime$4.c)(24), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
|
|
24619
24636
|
d === "auto" && (d = inferBestFormat(n));
|
|
24620
24637
|
let v;
|
|
24621
24638
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
@@ -24675,7 +24692,7 @@ ${_}`,
|
|
|
24675
24692
|
return typeof e == "object" && e ? "tree" : "raw";
|
|
24676
24693
|
}
|
|
24677
24694
|
var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
|
|
24678
|
-
let t = (0, import_compiler_runtime$
|
|
24695
|
+
let t = (0, import_compiler_runtime$4.c)(11), [n, i] = (0, import_react.useState)(true);
|
|
24679
24696
|
if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
|
|
24680
24697
|
let n2;
|
|
24681
24698
|
return t[0] === e.text ? n2 = t[1] : (n2 = (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -24989,10 +25006,10 @@ ${_}`,
|
|
|
24989
25006
|
return n <= 20 ? void 0 : n >= 50 ? 5 : 10;
|
|
24990
25007
|
}
|
|
24991
25008
|
}
|
|
24992
|
-
let import_compiler_runtime$
|
|
24993
|
-
import_compiler_runtime$
|
|
25009
|
+
let import_compiler_runtime$3;
|
|
25010
|
+
import_compiler_runtime$3 = require_compiler_runtime();
|
|
24994
25011
|
RadioGroup = import_react.forwardRef((e, t) => {
|
|
24995
|
-
let n = (0, import_compiler_runtime$
|
|
25012
|
+
let n = (0, import_compiler_runtime$3.c)(9), i, o;
|
|
24996
25013
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
24997
25014
|
let s;
|
|
24998
25015
|
n[3] === i ? s = n[4] : (s = cn("grid gap-2", i), n[3] = i, n[4] = s);
|
|
@@ -25005,7 +25022,7 @@ ${_}`,
|
|
|
25005
25022
|
});
|
|
25006
25023
|
RadioGroup.displayName = Root2$1.displayName;
|
|
25007
25024
|
RadioGroupItem = import_react.forwardRef((e, t) => {
|
|
25008
|
-
let n = (0, import_compiler_runtime$
|
|
25025
|
+
let n = (0, import_compiler_runtime$3.c)(13), i, o, s;
|
|
25009
25026
|
n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
|
|
25010
25027
|
let c;
|
|
25011
25028
|
n[4] === o ? c = n[5] : (c = cn("h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none", o), n[4] = o, n[5] = c);
|
|
@@ -25025,9 +25042,9 @@ ${_}`,
|
|
|
25025
25042
|
}), n[8] = s, n[9] = t, n[10] = c, n[11] = d, n[12] = f) : f = n[12], f;
|
|
25026
25043
|
});
|
|
25027
25044
|
RadioGroupItem.displayName = Item2.displayName;
|
|
25028
|
-
var import_compiler_runtime$
|
|
25045
|
+
var import_compiler_runtime$2 = require_compiler_runtime();
|
|
25029
25046
|
Slide = (0, import_react.memo)((e) => {
|
|
25030
|
-
let t = (0, import_compiler_runtime$
|
|
25047
|
+
let t = (0, import_compiler_runtime$2.c)(6), { output: n, cellId: i, status: a } = e, o;
|
|
25031
25048
|
t[0] === a ? o = t[1] : (o = outputIsLoading(a), t[0] = a, t[1] = o);
|
|
25032
25049
|
let s = o, c;
|
|
25033
25050
|
return t[2] !== i || t[3] !== s || t[4] !== n ? (c = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
@@ -25040,7 +25057,7 @@ ${_}`,
|
|
|
25040
25057
|
}), t[2] = i, t[3] = s, t[4] = n, t[5] = c) : c = t[5], c;
|
|
25041
25058
|
});
|
|
25042
25059
|
Slide.displayName = "Slide";
|
|
25043
|
-
var import_compiler_runtime = require_compiler_runtime();
|
|
25060
|
+
var import_compiler_runtime$1 = require_compiler_runtime();
|
|
25044
25061
|
DEFAULT_SLIDE_TYPE = "slide";
|
|
25045
25062
|
DEFAULT_DECK_TRANSITION = "slide";
|
|
25046
25063
|
var COLLAPSED_CONFIG_WIDTH = 36;
|
|
@@ -25107,7 +25124,7 @@ ${_}`,
|
|
|
25107
25124
|
description: "Zoom into the next slide."
|
|
25108
25125
|
}
|
|
25109
25126
|
], SlidesForm = (e) => {
|
|
25110
|
-
let t = (0, import_compiler_runtime.c)(11), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
25127
|
+
let t = (0, import_compiler_runtime$1.c)(11), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
25111
25128
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25112
25129
|
className: "grid grid-cols-2",
|
|
25113
25130
|
children: [
|
|
@@ -25152,7 +25169,7 @@ ${_}`,
|
|
|
25152
25169
|
}), t[8] = s, t[9] = c, t[10] = d) : d = t[10], d;
|
|
25153
25170
|
}, SlideConfigForm = (e) => {
|
|
25154
25171
|
var _a2;
|
|
25155
|
-
let t = (0, import_compiler_runtime.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
|
|
25172
|
+
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
|
|
25156
25173
|
t[0] !== o || t[1] !== n || t[2] !== i ? (c = (e2) => {
|
|
25157
25174
|
let t2 = n.cells.get(o), a = new Map(n.cells);
|
|
25158
25175
|
a.set(o, {
|
|
@@ -25217,7 +25234,7 @@ ${_}`,
|
|
|
25217
25234
|
}), t[9] = s, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
|
|
25218
25235
|
}, DeckConfigForm = (e) => {
|
|
25219
25236
|
var _a2, _b;
|
|
25220
|
-
let t = (0, import_compiler_runtime.c)(18), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
|
|
25237
|
+
let t = (0, import_compiler_runtime$1.c)(18), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
|
|
25221
25238
|
t[0] === a ? o = t[1] : (o = (_b = DECK_TRANSITION_OPTIONS.find((e2) => e2.value === a)) == null ? void 0 : _b.description, t[0] = a, t[1] = o);
|
|
25222
25239
|
let s = o, c;
|
|
25223
25240
|
t[2] !== n || t[3] !== i ? (c = (e2) => {
|
|
@@ -25245,7 +25262,7 @@ ${_}`,
|
|
|
25245
25262
|
}), t[8] = _) : _ = t[8];
|
|
25246
25263
|
let v;
|
|
25247
25264
|
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
25248
|
-
children: DECK_TRANSITION_OPTIONS.map(_temp)
|
|
25265
|
+
children: DECK_TRANSITION_OPTIONS.map(_temp$1)
|
|
25249
25266
|
}), t[9] = v) : v = t[9];
|
|
25250
25267
|
let y;
|
|
25251
25268
|
t[10] !== a || t[11] !== h ? (y = (0, import_jsx_runtime.jsxs)(Select, {
|
|
@@ -25275,7 +25292,7 @@ ${_}`,
|
|
|
25275
25292
|
}), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
|
|
25276
25293
|
};
|
|
25277
25294
|
SlideSidebar = (e) => {
|
|
25278
|
-
let t = (0, import_compiler_runtime.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (0, import_react.useState)(false), h = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
25295
|
+
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (0, import_react.useState)(false), h = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
25279
25296
|
t[0] === h ? _ = t[1] : (_ = {
|
|
25280
25297
|
width: h
|
|
25281
25298
|
}, t[0] = h, t[1] = _);
|
|
@@ -25343,112 +25360,153 @@ ${_}`,
|
|
|
25343
25360
|
className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
|
|
25344
25361
|
style: _,
|
|
25345
25362
|
"aria-label": "Slide configuration",
|
|
25363
|
+
onKeyDown: _temp2,
|
|
25346
25364
|
children: [
|
|
25347
25365
|
I,
|
|
25348
25366
|
z
|
|
25349
25367
|
]
|
|
25350
25368
|
}), t[26] = I, t[27] = z, t[28] = _, t[29] = U) : U = t[29], U;
|
|
25351
25369
|
};
|
|
25352
|
-
function _temp(e) {
|
|
25370
|
+
function _temp$1(e) {
|
|
25353
25371
|
let { value: t, label: n } = e;
|
|
25354
25372
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
25355
25373
|
value: t,
|
|
25356
25374
|
children: n
|
|
25357
25375
|
}, t);
|
|
25358
25376
|
}
|
|
25377
|
+
function _temp2(e) {
|
|
25378
|
+
return e.stopPropagation();
|
|
25379
|
+
}
|
|
25380
|
+
function getVersionFromMountConfig() {
|
|
25381
|
+
try {
|
|
25382
|
+
return window.__MARIMO_MOUNT_CONFIG__.version;
|
|
25383
|
+
} catch {
|
|
25384
|
+
return Logger.warn("Failed to get version from mount config"), null;
|
|
25385
|
+
}
|
|
25386
|
+
}
|
|
25387
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.5-dev6");
|
|
25388
|
+
showCodeInRunModeAtom = atom(true);
|
|
25389
|
+
atom(null);
|
|
25390
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
25391
|
+
useNotebookCodeAvailable = function(e) {
|
|
25392
|
+
let t = (0, import_compiler_runtime.c)(2), n = useAtomValue(kioskModeAtom), { mode: i } = useAtomValue(viewStateAtom), a = useAtomValue(showCodeInRunModeAtom);
|
|
25393
|
+
if (n) return true;
|
|
25394
|
+
switch (i) {
|
|
25395
|
+
case "edit":
|
|
25396
|
+
case "present":
|
|
25397
|
+
return true;
|
|
25398
|
+
case "home":
|
|
25399
|
+
case "gallery":
|
|
25400
|
+
return false;
|
|
25401
|
+
case "read": {
|
|
25402
|
+
if (!a || new URLSearchParams(window.location.search).get(KnownQueryParams.includeCode) === "false") return false;
|
|
25403
|
+
let n2;
|
|
25404
|
+
return t[0] === e ? n2 = t[1] : (n2 = e.some(_temp), t[0] = e, t[1] = n2), n2;
|
|
25405
|
+
}
|
|
25406
|
+
default:
|
|
25407
|
+
return logNever(i), false;
|
|
25408
|
+
}
|
|
25409
|
+
};
|
|
25410
|
+
function _temp(e) {
|
|
25411
|
+
return !!e.code;
|
|
25412
|
+
}
|
|
25359
25413
|
});
|
|
25360
25414
|
export {
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
|
|
25364
|
-
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
inferFieldTypes as
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
|
|
25401
|
-
|
|
25402
|
-
|
|
25415
|
+
getPageIndexForRow as $,
|
|
25416
|
+
contextAwarePanelType as A,
|
|
25417
|
+
GripHorizontal as At,
|
|
25418
|
+
TableHead as B,
|
|
25419
|
+
ChevronsDownUp as Bt,
|
|
25420
|
+
useInternalStateWithSync as C,
|
|
25421
|
+
RenderTextWithLinks as Ct,
|
|
25422
|
+
PANEL_TYPES as D,
|
|
25423
|
+
getStaticVirtualFiles as Dt,
|
|
25424
|
+
ContextAwarePanelItem as E,
|
|
25425
|
+
EmotionCacheProvider as Et,
|
|
25426
|
+
Fill as F,
|
|
25427
|
+
Download as Ft,
|
|
25428
|
+
inferFieldTypes as G,
|
|
25429
|
+
TableRow as H,
|
|
25430
|
+
ArrowDownWideNarrow as Ht,
|
|
25431
|
+
Provider$1 as I,
|
|
25432
|
+
Code as It,
|
|
25433
|
+
ColumnChartSpecModel as J,
|
|
25434
|
+
renderCellValue as K,
|
|
25435
|
+
Table as L,
|
|
25436
|
+
ChevronsUpDown as Lt,
|
|
25437
|
+
SlotNames as M,
|
|
25438
|
+
EyeOff as Mt,
|
|
25439
|
+
slotsController as N,
|
|
25440
|
+
Expand as Nt,
|
|
25441
|
+
contextAwarePanelOpen as O,
|
|
25442
|
+
isStaticNotebook as Ot,
|
|
25443
|
+
Toggle as P,
|
|
25444
|
+
Ellipsis as Pt,
|
|
25445
|
+
filtersToFilterGroup as Q,
|
|
25446
|
+
TableBody as R,
|
|
25447
|
+
ChevronsRight as Rt,
|
|
25448
|
+
prettifyRowCount as S,
|
|
25449
|
+
useOverflowDetection as St,
|
|
25450
|
+
ComboboxItem as T,
|
|
25451
|
+
HtmlOutput as Tt,
|
|
25452
|
+
NAMELESS_COLUMN_PREFIX as U,
|
|
25453
|
+
TableHeader as V,
|
|
25454
|
+
ChevronLeft as Vt,
|
|
25455
|
+
generateColumns as W,
|
|
25456
|
+
useIntersectionObserver as X,
|
|
25457
|
+
DelayMount as Y,
|
|
25458
|
+
usePrevious as Z,
|
|
25459
|
+
downloadBlob as _,
|
|
25403
25460
|
__tla,
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25413
|
-
|
|
25414
|
-
|
|
25415
|
-
|
|
25416
|
-
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
|
|
25422
|
-
|
|
25423
|
-
|
|
25424
|
-
|
|
25425
|
-
|
|
25426
|
-
|
|
25427
|
-
|
|
25428
|
-
|
|
25429
|
-
|
|
25430
|
-
|
|
25431
|
-
|
|
25432
|
-
|
|
25433
|
-
|
|
25434
|
-
|
|
25435
|
-
|
|
25436
|
-
|
|
25437
|
-
|
|
25438
|
-
|
|
25439
|
-
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
|
|
25449
|
-
|
|
25450
|
-
|
|
25451
|
-
|
|
25452
|
-
|
|
25453
|
-
|
|
25461
|
+
TabsTrigger as _t,
|
|
25462
|
+
DEFAULT_SLIDE_TYPE as a,
|
|
25463
|
+
toFieldTypes as at,
|
|
25464
|
+
Filenames as b,
|
|
25465
|
+
ChartLoadingState as bt,
|
|
25466
|
+
Slide as c,
|
|
25467
|
+
CommandEmpty as ct,
|
|
25468
|
+
JsonOutput as d,
|
|
25469
|
+
CommandList as dt,
|
|
25470
|
+
loadTableAndRawData as et,
|
|
25471
|
+
OutputArea as f,
|
|
25472
|
+
CommandSeparator as ft,
|
|
25473
|
+
ADD_PRINTING_CLASS as g,
|
|
25474
|
+
TabsList as gt,
|
|
25475
|
+
InstallPackageButton as h,
|
|
25476
|
+
TabsContent as ht,
|
|
25477
|
+
DEFAULT_DECK_TRANSITION as i,
|
|
25478
|
+
TOO_MANY_ROWS as it,
|
|
25479
|
+
isCellAwareAtom as j,
|
|
25480
|
+
Funnel as jt,
|
|
25481
|
+
contextAwarePanelOwner as k,
|
|
25482
|
+
TextWrap as kt,
|
|
25483
|
+
RadioGroup as l,
|
|
25484
|
+
CommandInput as lt,
|
|
25485
|
+
DataTable as m,
|
|
25486
|
+
Tabs as mt,
|
|
25487
|
+
marimoVersionAtom as n,
|
|
25488
|
+
INDEX_COLUMN_NAME as nt,
|
|
25489
|
+
SLIDE_TYPE_OPTIONS_BY_VALUE as o,
|
|
25490
|
+
getMimeValues as ot,
|
|
25491
|
+
OutputRenderer as p,
|
|
25492
|
+
Maps as pt,
|
|
25493
|
+
ColumnChartContext as q,
|
|
25494
|
+
showCodeInRunModeAtom as r,
|
|
25495
|
+
SELECT_COLUMN_ID as rt,
|
|
25496
|
+
SlideSidebar as s,
|
|
25497
|
+
Command as st,
|
|
25498
|
+
useNotebookCodeAvailable as t,
|
|
25499
|
+
loadTableData as tt,
|
|
25500
|
+
RadioGroupItem as u,
|
|
25501
|
+
CommandItem as ut,
|
|
25502
|
+
downloadByURL as v,
|
|
25503
|
+
ChartErrorState as vt,
|
|
25504
|
+
Combobox as w,
|
|
25505
|
+
Kbd as wt,
|
|
25506
|
+
prettifyRowColumnCount as x,
|
|
25507
|
+
LazyVegaEmbed as xt,
|
|
25508
|
+
downloadHTMLAsImage as y,
|
|
25509
|
+
ChartInfoState as yt,
|
|
25510
|
+
TableCell as z,
|
|
25511
|
+
ChevronsLeft as zt
|
|
25454
25512
|
};
|