@marimo-team/islands 0.23.7-dev0 → 0.23.7-dev1
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.
|
@@ -12,13 +12,13 @@ import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CjMjllqy.
|
|
|
12
12
|
import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
13
13
|
import { t as Check } from "./check-CFM2mVDr.js";
|
|
14
14
|
import { C as $a916eb452884faea$export$b7a616150fdb9f44, F as X, L as ChevronDown, M as usePrevious$1, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, c as SelectSeparator, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as capitalize, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, x as assertNever, y as menuSeparatorVariants } from "./strings-B_FOH6eV.js";
|
|
15
|
-
import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$2, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup$2, fn as Circle, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$
|
|
15
|
+
import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$2, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup$2, fn as Circle, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$2, m as DropdownMenuLabel, nn as Root3, o as maxFractionalDigits, on as SubTrigger, p as DropdownMenuItem, pn as ChevronRight, qt as CheckboxItem, r as Input, rn as Separator$1, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-BAOe64zx.js";
|
|
16
16
|
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-CHtl9vts.js";
|
|
17
17
|
import { n as clsx_default } from "./clsx-CyyyQ8Ue.js";
|
|
18
18
|
import { t as require_react_dom } from "./react-dom-BWRJ_g_k.js";
|
|
19
19
|
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
|
|
20
20
|
import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET, Z as withSmartCollisionBoundary, _t as Primitive$1, dt as Presence, ft as useControllableState, gt as createContextScope, lt as useCallbackRef, mt as composeEventHandlers, ut as useId$2 } from "./zod-BxdsqRPd.js";
|
|
21
|
-
import { a as Content$1, c as Root$
|
|
21
|
+
import { a as Content$1, c as Root$3, 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
24
|
import { r as KnownQueryParams } from "./constants-D0gkYoE2.js";
|
|
@@ -35,7 +35,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
|
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-B6hCGywC.js";
|
|
38
|
-
let
|
|
38
|
+
let filtersToFilterGroup, contextAwarePanelOwner, Funnel, TableCell, ChevronLeft, prettifyRowCount, useOverflowDetection, ContextAwarePanelItem, EmotionCacheProvider, ComboboxItem, HtmlOutput, Toggle, Code, generateColumns, TableHeader, Fill, ChevronsUpDown, ColumnChartContext, inferFieldTypes, Provider$1, ChevronsRight, isCellAwareAtom, Expand, SlotNames, Ellipsis, PANEL_TYPES, TextWrap, slotsController, Download, usePrevious, Table, ChevronsLeft, prettifyRowColumnCount, LazyVegaEmbed, Combobox, Kbd, TableRow, TableHead, ArrowDownWideNarrow, NAMELESS_COLUMN_PREFIX, DelayMount, ColumnChartSpecModel, useIntersectionObserver, downloadBlob, TabsList, DEFAULT_SLIDE_TYPE, TOO_MANY_ROWS, Progress, ChartInfoState, Slide, Command, JsonOutput, CommandItem, getPageIndexForRow, OutputArea, CommandList, ADD_PRINTING_CLASS, TabsContent, InstallPackageButton, Tabs, DEFAULT_DECK_TRANSITION, SELECT_COLUMN_ID, contextAwarePanelType, EyeOff, contextAwarePanelOpen, GripHorizontal, RadioGroup, CommandEmpty, DataTable, Maps, marimoVersionAtom, loadTableData, SLIDE_TYPE_OPTIONS_BY_VALUE, toFieldTypes, OutputRenderer, CommandSeparator, renderCellValue, showCodeInRunModeAtom, INDEX_COLUMN_NAME, SlideSidebar, getMimeValues, useNotebookCodeAvailable, loadTableAndRawData, RadioGroupItem, CommandInput, downloadByURL, TabsTrigger, useInternalStateWithSync, RenderTextWithLinks, Filenames, ChartLoadingState, downloadHTMLAsImage, ChartErrorState, TableBody, ChevronsDownUp;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -1370,7 +1370,7 @@ let __tla = Promise.all([
|
|
|
1370
1370
|
});
|
|
1371
1371
|
});
|
|
1372
1372
|
ContextMenuRadioItem$1.displayName = RADIO_ITEM_NAME;
|
|
1373
|
-
var INDICATOR_NAME$
|
|
1373
|
+
var INDICATOR_NAME$2 = "ContextMenuItemIndicator", ContextMenuItemIndicator = import_react.forwardRef((e, t) => {
|
|
1374
1374
|
let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
|
|
1375
1375
|
return (0, import_jsx_runtime.jsx)(ItemIndicator, {
|
|
1376
1376
|
...a,
|
|
@@ -1378,7 +1378,7 @@ let __tla = Promise.all([
|
|
|
1378
1378
|
ref: t
|
|
1379
1379
|
});
|
|
1380
1380
|
});
|
|
1381
|
-
ContextMenuItemIndicator.displayName = INDICATOR_NAME$
|
|
1381
|
+
ContextMenuItemIndicator.displayName = INDICATOR_NAME$2;
|
|
1382
1382
|
var SEPARATOR_NAME = "ContextMenuSeparator", ContextMenuSeparator$1 = import_react.forwardRef((e, t) => {
|
|
1383
1383
|
let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
|
|
1384
1384
|
return (0, import_jsx_runtime.jsx)(Separator$1, {
|
|
@@ -1441,7 +1441,69 @@ let __tla = Promise.all([
|
|
|
1441
1441
|
function whenTouchOrPen(e) {
|
|
1442
1442
|
return (t) => t.pointerType === "mouse" ? void 0 : e(t);
|
|
1443
1443
|
}
|
|
1444
|
-
var Root2$2 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2$1 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1,
|
|
1444
|
+
var Root2$2 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2$1 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1, PROGRESS_NAME = "Progress", DEFAULT_MAX = 100, [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), Progress$1 = import_react.forwardRef((e, t) => {
|
|
1445
|
+
let { __scopeProgress: n, value: i = null, max: a, getValueLabel: o = defaultGetValueLabel, ...s } = e;
|
|
1446
|
+
(a || a === 0) && !isValidMaxNumber(a) && console.error(getInvalidMaxError(`${a}`, "Progress"));
|
|
1447
|
+
let c = isValidMaxNumber(a) ? a : DEFAULT_MAX;
|
|
1448
|
+
i !== null && !isValidValueNumber(i, c) && console.error(getInvalidValueError(`${i}`, "Progress"));
|
|
1449
|
+
let d = isValidValueNumber(i, c) ? i : null, f = isNumber(d) ? o(d, c) : void 0;
|
|
1450
|
+
return (0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
1451
|
+
scope: n,
|
|
1452
|
+
value: d,
|
|
1453
|
+
max: c,
|
|
1454
|
+
children: (0, import_jsx_runtime.jsx)(Primitive$1.div, {
|
|
1455
|
+
"aria-valuemax": c,
|
|
1456
|
+
"aria-valuemin": 0,
|
|
1457
|
+
"aria-valuenow": isNumber(d) ? d : void 0,
|
|
1458
|
+
"aria-valuetext": f,
|
|
1459
|
+
role: "progressbar",
|
|
1460
|
+
"data-state": getProgressState(d, c),
|
|
1461
|
+
"data-value": d ?? void 0,
|
|
1462
|
+
"data-max": c,
|
|
1463
|
+
...s,
|
|
1464
|
+
ref: t
|
|
1465
|
+
})
|
|
1466
|
+
});
|
|
1467
|
+
});
|
|
1468
|
+
Progress$1.displayName = PROGRESS_NAME;
|
|
1469
|
+
var INDICATOR_NAME$1 = "ProgressIndicator", ProgressIndicator = import_react.forwardRef((e, t) => {
|
|
1470
|
+
let { __scopeProgress: n, ...i } = e, a = useProgressContext(INDICATOR_NAME$1, n);
|
|
1471
|
+
return (0, import_jsx_runtime.jsx)(Primitive$1.div, {
|
|
1472
|
+
"data-state": getProgressState(a.value, a.max),
|
|
1473
|
+
"data-value": a.value ?? void 0,
|
|
1474
|
+
"data-max": a.max,
|
|
1475
|
+
...i,
|
|
1476
|
+
ref: t
|
|
1477
|
+
});
|
|
1478
|
+
});
|
|
1479
|
+
ProgressIndicator.displayName = INDICATOR_NAME$1;
|
|
1480
|
+
function defaultGetValueLabel(e, t) {
|
|
1481
|
+
return `${Math.round(e / t * 100)}%`;
|
|
1482
|
+
}
|
|
1483
|
+
function getProgressState(e, t) {
|
|
1484
|
+
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
1485
|
+
}
|
|
1486
|
+
function isNumber(e) {
|
|
1487
|
+
return typeof e == "number";
|
|
1488
|
+
}
|
|
1489
|
+
function isValidMaxNumber(e) {
|
|
1490
|
+
return isNumber(e) && !isNaN(e) && e > 0;
|
|
1491
|
+
}
|
|
1492
|
+
function isValidValueNumber(e, t) {
|
|
1493
|
+
return isNumber(e) && !isNaN(e) && e <= t && e >= 0;
|
|
1494
|
+
}
|
|
1495
|
+
function getInvalidMaxError(e, t) {
|
|
1496
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
1497
|
+
}
|
|
1498
|
+
function getInvalidValueError(e, t) {
|
|
1499
|
+
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
1500
|
+
- a positive number
|
|
1501
|
+
- less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
|
|
1502
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
1503
|
+
|
|
1504
|
+
Defaulting to \`null\`.`;
|
|
1505
|
+
}
|
|
1506
|
+
var Root$1 = Progress$1, Indicator$1 = ProgressIndicator, RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME), [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME), Radio = import_react.forwardRef((e, t) => {
|
|
1445
1507
|
let { __scopeRadio: n, name: i, checked: a = false, required: o, disabled: c, value: d = "on", onCheck: f, form: h, ..._ } = e, [v, y] = import_react.useState(null), S = useComposedRefs(t, (e2) => y(e2)), w = import_react.useRef(false), E = v ? h || !!v.closest("form") : true;
|
|
1446
1508
|
return (0, import_jsx_runtime.jsxs)(RadioProvider, {
|
|
1447
1509
|
scope: n,
|
|
@@ -1551,7 +1613,7 @@ let __tla = Promise.all([
|
|
|
1551
1613
|
disabled: c,
|
|
1552
1614
|
value: w,
|
|
1553
1615
|
onValueChange: E,
|
|
1554
|
-
children: (0, import_jsx_runtime.jsx)(Root$
|
|
1616
|
+
children: (0, import_jsx_runtime.jsx)(Root$2, {
|
|
1555
1617
|
asChild: true,
|
|
1556
1618
|
...y,
|
|
1557
1619
|
orientation: d,
|
|
@@ -1641,7 +1703,7 @@ let __tla = Promise.all([
|
|
|
1641
1703
|
Tabs$1.displayName = TABS_NAME;
|
|
1642
1704
|
var TAB_LIST_NAME = "TabsList", TabsList$1 = import_react.forwardRef((e, t) => {
|
|
1643
1705
|
let { __scopeTabs: n, loop: i = true, ...a } = e, o = useTabsContext(TAB_LIST_NAME, n), s = useRovingFocusGroupScope(n);
|
|
1644
|
-
return (0, import_jsx_runtime.jsx)(Root$
|
|
1706
|
+
return (0, import_jsx_runtime.jsx)(Root$2, {
|
|
1645
1707
|
asChild: true,
|
|
1646
1708
|
...s,
|
|
1647
1709
|
orientation: o.orientation,
|
|
@@ -5614,9 +5676,9 @@ let __tla = Promise.all([
|
|
|
5614
5676
|
t,
|
|
5615
5677
|
i.name
|
|
5616
5678
|
]), null;
|
|
5617
|
-
}), import_compiler_runtime$
|
|
5679
|
+
}), import_compiler_runtime$51 = require_compiler_runtime();
|
|
5618
5680
|
EmotionCacheProvider = (e) => {
|
|
5619
|
-
let t = (0, import_compiler_runtime$
|
|
5681
|
+
let t = (0, import_compiler_runtime$51.c)(6), { container: n, children: i } = e, a;
|
|
5620
5682
|
bb0: {
|
|
5621
5683
|
if (!n) {
|
|
5622
5684
|
let e3;
|
|
@@ -7529,33 +7591,33 @@ try {
|
|
|
7529
7591
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7530
7592
|
function y(e2) {
|
|
7531
7593
|
var _a2, _b, _c, _d;
|
|
7532
|
-
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),
|
|
7594
|
+
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), TN = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7533
7595
|
h2
|
|
7534
|
-
]),
|
|
7535
|
-
|
|
7536
|
-
]),
|
|
7537
|
-
supportedColorSchemes:
|
|
7538
|
-
defaultLightColorScheme:
|
|
7539
|
-
defaultDarkColorScheme:
|
|
7596
|
+
]), EN = $[t], DN = EN || $, { colorSchemes: ON = _, components: kN = v, cssVarPrefix: AN } = DN, jN = Object.keys(ON).filter((e3) => !!ON[e3]).join(","), MN = import_react.useMemo(() => jN.split(","), [
|
|
7597
|
+
jN
|
|
7598
|
+
]), NN = typeof s == "string" ? s : s.light, PN = typeof s == "string" ? s : s.dark, { mode: FN, setMode: IN, systemMode: LN, lightColorScheme: RN, darkColorScheme: zN, colorScheme: BN, setColorScheme: VN } = useCurrentColorScheme({
|
|
7599
|
+
supportedColorSchemes: MN,
|
|
7600
|
+
defaultLightColorScheme: NN,
|
|
7601
|
+
defaultDarkColorScheme: PN,
|
|
7540
7602
|
modeStorageKey: y2,
|
|
7541
7603
|
colorSchemeStorageKey: S2,
|
|
7542
|
-
defaultMode:
|
|
7604
|
+
defaultMode: ON[NN] && ON[PN] ? U : ((_b = (_a2 = ON[DN.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = DN.palette) == null ? void 0 : _c.mode),
|
|
7543
7605
|
storageManager: E,
|
|
7544
7606
|
storageWindow: O,
|
|
7545
7607
|
noSsr: K
|
|
7546
|
-
}),
|
|
7547
|
-
|
|
7548
|
-
let
|
|
7608
|
+
}), HN = FN, UN = BN;
|
|
7609
|
+
TN && (HN = Q.mode, UN = Q.colorScheme);
|
|
7610
|
+
let WN = import_react.useMemo(() => {
|
|
7549
7611
|
var _a3;
|
|
7550
|
-
let e3 =
|
|
7551
|
-
...
|
|
7552
|
-
components:
|
|
7553
|
-
colorSchemes:
|
|
7554
|
-
cssVarPrefix:
|
|
7612
|
+
let e3 = UN || DN.defaultColorScheme, t2 = ((_a3 = DN.generateThemeVars) == null ? void 0 : _a3.call(DN)) || DN.vars, n2 = {
|
|
7613
|
+
...DN,
|
|
7614
|
+
components: kN,
|
|
7615
|
+
colorSchemes: ON,
|
|
7616
|
+
cssVarPrefix: AN,
|
|
7555
7617
|
vars: t2
|
|
7556
7618
|
};
|
|
7557
7619
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7558
|
-
let t3 =
|
|
7620
|
+
let t3 = ON[e3];
|
|
7559
7621
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7560
7622
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7561
7623
|
...n2[e4],
|
|
@@ -7565,31 +7627,31 @@ try {
|
|
|
7565
7627
|
}
|
|
7566
7628
|
return c ? c(n2) : n2;
|
|
7567
7629
|
}, [
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
]),
|
|
7630
|
+
DN,
|
|
7631
|
+
UN,
|
|
7632
|
+
kN,
|
|
7633
|
+
ON,
|
|
7634
|
+
AN
|
|
7635
|
+
]), GN = DN.colorSchemeSelector;
|
|
7574
7636
|
useEnhancedEffect_default(() => {
|
|
7575
|
-
if (
|
|
7576
|
-
let e3 =
|
|
7577
|
-
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(...
|
|
7637
|
+
if (UN && M && GN && GN !== "media") {
|
|
7638
|
+
let e3 = GN, t2 = GN;
|
|
7639
|
+
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(...MN.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", UN));
|
|
7578
7640
|
else {
|
|
7579
|
-
let e4 = t2.replace("%s",
|
|
7641
|
+
let e4 = t2.replace("%s", UN).match(/\[([^\]]+)\]/);
|
|
7580
7642
|
if (e4) {
|
|
7581
7643
|
let [t3, n2] = e4[1].split("=");
|
|
7582
|
-
n2 ||
|
|
7583
|
-
M.removeAttribute(t3.replace(
|
|
7644
|
+
n2 || MN.forEach((e5) => {
|
|
7645
|
+
M.removeAttribute(t3.replace(UN, e5));
|
|
7584
7646
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7585
|
-
} else M.setAttribute(t2,
|
|
7647
|
+
} else M.setAttribute(t2, UN);
|
|
7586
7648
|
}
|
|
7587
7649
|
}
|
|
7588
7650
|
}, [
|
|
7589
|
-
|
|
7590
|
-
|
|
7651
|
+
UN,
|
|
7652
|
+
GN,
|
|
7591
7653
|
M,
|
|
7592
|
-
|
|
7654
|
+
MN
|
|
7593
7655
|
]), import_react.useEffect(() => {
|
|
7594
7656
|
let e3;
|
|
7595
7657
|
if (w2 && q.current && A) {
|
|
@@ -7602,48 +7664,48 @@ try {
|
|
|
7602
7664
|
clearTimeout(e3);
|
|
7603
7665
|
};
|
|
7604
7666
|
}, [
|
|
7605
|
-
|
|
7667
|
+
UN,
|
|
7606
7668
|
w2,
|
|
7607
7669
|
A
|
|
7608
7670
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7609
7671
|
q.current = false;
|
|
7610
7672
|
}), []);
|
|
7611
|
-
let
|
|
7612
|
-
allColorSchemes:
|
|
7613
|
-
colorScheme:
|
|
7614
|
-
darkColorScheme:
|
|
7615
|
-
lightColorScheme:
|
|
7616
|
-
mode:
|
|
7617
|
-
setColorScheme:
|
|
7618
|
-
setMode:
|
|
7619
|
-
systemMode:
|
|
7673
|
+
let KN = import_react.useMemo(() => ({
|
|
7674
|
+
allColorSchemes: MN,
|
|
7675
|
+
colorScheme: UN,
|
|
7676
|
+
darkColorScheme: zN,
|
|
7677
|
+
lightColorScheme: RN,
|
|
7678
|
+
mode: HN,
|
|
7679
|
+
setColorScheme: VN,
|
|
7680
|
+
setMode: IN,
|
|
7681
|
+
systemMode: LN
|
|
7620
7682
|
}), [
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
]),
|
|
7631
|
-
(z ||
|
|
7632
|
-
let
|
|
7683
|
+
MN,
|
|
7684
|
+
UN,
|
|
7685
|
+
zN,
|
|
7686
|
+
RN,
|
|
7687
|
+
HN,
|
|
7688
|
+
VN,
|
|
7689
|
+
IN,
|
|
7690
|
+
LN,
|
|
7691
|
+
WN.colorSchemeSelector
|
|
7692
|
+
]), qN = true;
|
|
7693
|
+
(z || DN.cssVariables === false || TN && (J == null ? void 0 : J.cssVarPrefix) === AN) && (qN = false);
|
|
7694
|
+
let JN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7633
7695
|
children: [
|
|
7634
7696
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7635
|
-
themeId:
|
|
7636
|
-
theme:
|
|
7697
|
+
themeId: EN ? t : void 0,
|
|
7698
|
+
theme: WN,
|
|
7637
7699
|
children: d2
|
|
7638
7700
|
}),
|
|
7639
|
-
|
|
7640
|
-
styles: ((_d =
|
|
7701
|
+
qN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7702
|
+
styles: ((_d = WN.generateStyleSheets) == null ? void 0 : _d.call(WN)) || []
|
|
7641
7703
|
})
|
|
7642
7704
|
]
|
|
7643
7705
|
});
|
|
7644
|
-
return
|
|
7645
|
-
value:
|
|
7646
|
-
children:
|
|
7706
|
+
return TN ? JN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7707
|
+
value: KN,
|
|
7708
|
+
children: JN
|
|
7647
7709
|
});
|
|
7648
7710
|
}
|
|
7649
7711
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9143,10 +9205,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9143
9205
|
let n = useDefaultProps({
|
|
9144
9206
|
props: e,
|
|
9145
9207
|
name: "MuiInputBase"
|
|
9146
|
-
}), { "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:
|
|
9147
|
-
}, []),
|
|
9208
|
+
}), { "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: TN, onFocus: $, onKeyDown: EN, onKeyUp: DN, placeholder: ON, readOnly: kN, renderSuffix: AN, rows: jN, size: MN, slotProps: NN = {}, slots: PN = {}, startAdornment: FN, type: IN = "text", value: LN, ...RN } = n, zN = A.value == null ? LN : A.value, { current: BN } = import_react.useRef(zN != null), VN = import_react.useRef(), HN = import_react.useCallback((e2) => {
|
|
9209
|
+
}, []), UN = useForkRef_default(VN, M, A.ref, HN), [WN, GN] = import_react.useState(false), KN = useFormControl(), qN = formControlState({
|
|
9148
9210
|
props: n,
|
|
9149
|
-
muiFormControl:
|
|
9211
|
+
muiFormControl: KN,
|
|
9150
9212
|
states: [
|
|
9151
9213
|
"color",
|
|
9152
9214
|
"disabled",
|
|
@@ -9157,145 +9219,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9157
9219
|
"filled"
|
|
9158
9220
|
]
|
|
9159
9221
|
});
|
|
9160
|
-
|
|
9161
|
-
!
|
|
9222
|
+
qN.focused = KN ? KN.focused : WN, import_react.useEffect(() => {
|
|
9223
|
+
!KN && _ && WN && (GN(false), J && J());
|
|
9162
9224
|
}, [
|
|
9163
|
-
|
|
9225
|
+
KN,
|
|
9164
9226
|
_,
|
|
9165
|
-
|
|
9227
|
+
WN,
|
|
9166
9228
|
J
|
|
9167
9229
|
]);
|
|
9168
|
-
let
|
|
9169
|
-
isFilled(e2) ?
|
|
9230
|
+
let JN = KN && KN.onFilled, YN = KN && KN.onEmpty, XN = import_react.useCallback((e2) => {
|
|
9231
|
+
isFilled(e2) ? JN && JN() : YN && YN();
|
|
9170
9232
|
}, [
|
|
9171
|
-
|
|
9172
|
-
|
|
9233
|
+
JN,
|
|
9234
|
+
YN
|
|
9173
9235
|
]);
|
|
9174
9236
|
useEnhancedEffect_default$1(() => {
|
|
9175
|
-
|
|
9176
|
-
value:
|
|
9237
|
+
BN && XN({
|
|
9238
|
+
value: zN
|
|
9177
9239
|
});
|
|
9178
9240
|
}, [
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9241
|
+
zN,
|
|
9242
|
+
XN,
|
|
9243
|
+
BN
|
|
9182
9244
|
]);
|
|
9183
|
-
let
|
|
9184
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9185
|
-
},
|
|
9186
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9187
|
-
},
|
|
9188
|
-
if (!
|
|
9189
|
-
let t3 = e2.target ||
|
|
9245
|
+
let ZN = (e2) => {
|
|
9246
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), KN && KN.onFocus ? KN.onFocus(e2) : GN(true);
|
|
9247
|
+
}, QN = (e2) => {
|
|
9248
|
+
J && J(e2), A.onBlur && A.onBlur(e2), KN && KN.onBlur ? KN.onBlur(e2) : GN(false);
|
|
9249
|
+
}, $N = (e2, ...t2) => {
|
|
9250
|
+
if (!BN) {
|
|
9251
|
+
let t3 = e2.target || VN.current;
|
|
9190
9252
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9191
|
-
|
|
9253
|
+
XN({
|
|
9192
9254
|
value: t3.value
|
|
9193
9255
|
});
|
|
9194
9256
|
}
|
|
9195
9257
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9196
9258
|
};
|
|
9197
9259
|
import_react.useEffect(() => {
|
|
9198
|
-
|
|
9260
|
+
XN(VN.current);
|
|
9199
9261
|
}, []);
|
|
9200
|
-
let
|
|
9201
|
-
|
|
9202
|
-
},
|
|
9203
|
-
K &&
|
|
9262
|
+
let eP = (e2) => {
|
|
9263
|
+
VN.current && e2.currentTarget === e2.target && VN.current.focus(), TN && TN(e2);
|
|
9264
|
+
}, tP = O, nP = A;
|
|
9265
|
+
K && tP === "input" && (nP = jN ? {
|
|
9204
9266
|
type: void 0,
|
|
9205
|
-
minRows:
|
|
9206
|
-
maxRows:
|
|
9207
|
-
...
|
|
9267
|
+
minRows: jN,
|
|
9268
|
+
maxRows: jN,
|
|
9269
|
+
...nP
|
|
9208
9270
|
} : {
|
|
9209
9271
|
type: void 0,
|
|
9210
9272
|
maxRows: z,
|
|
9211
9273
|
minRows: U,
|
|
9212
|
-
...
|
|
9213
|
-
},
|
|
9214
|
-
let
|
|
9215
|
-
|
|
9274
|
+
...nP
|
|
9275
|
+
}, tP = TextareaAutosize_default);
|
|
9276
|
+
let rP = (e2) => {
|
|
9277
|
+
XN(e2.animationName === "mui-auto-fill-cancel" ? VN.current : {
|
|
9216
9278
|
value: "x"
|
|
9217
9279
|
});
|
|
9218
9280
|
};
|
|
9219
9281
|
import_react.useEffect(() => {
|
|
9220
|
-
|
|
9282
|
+
KN && KN.setAdornedStart(!!FN);
|
|
9221
9283
|
}, [
|
|
9222
|
-
|
|
9223
|
-
|
|
9284
|
+
KN,
|
|
9285
|
+
FN
|
|
9224
9286
|
]);
|
|
9225
|
-
let
|
|
9287
|
+
let iP = {
|
|
9226
9288
|
...n,
|
|
9227
|
-
color:
|
|
9228
|
-
disabled:
|
|
9289
|
+
color: qN.color || "primary",
|
|
9290
|
+
disabled: qN.disabled,
|
|
9229
9291
|
endAdornment: y,
|
|
9230
|
-
error:
|
|
9231
|
-
focused:
|
|
9232
|
-
formControl:
|
|
9292
|
+
error: qN.error,
|
|
9293
|
+
focused: qN.focused,
|
|
9294
|
+
formControl: KN,
|
|
9233
9295
|
fullWidth: w,
|
|
9234
|
-
hiddenLabel:
|
|
9296
|
+
hiddenLabel: qN.hiddenLabel,
|
|
9235
9297
|
multiline: K,
|
|
9236
|
-
size:
|
|
9237
|
-
startAdornment:
|
|
9238
|
-
type:
|
|
9239
|
-
},
|
|
9240
|
-
return
|
|
9241
|
-
...
|
|
9242
|
-
...
|
|
9298
|
+
size: qN.size,
|
|
9299
|
+
startAdornment: FN,
|
|
9300
|
+
type: IN
|
|
9301
|
+
}, aP = useUtilityClasses(iP), oP = PN.root || d.Root || InputBaseRoot, sP = NN.root || f.root || {}, cP = PN.input || d.Input || InputBaseInput;
|
|
9302
|
+
return nP = {
|
|
9303
|
+
...nP,
|
|
9304
|
+
...NN.input ?? f.input
|
|
9243
9305
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9244
9306
|
children: [
|
|
9245
9307
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9246
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9247
|
-
...
|
|
9308
|
+
(0, import_jsx_runtime.jsxs)(oP, {
|
|
9309
|
+
...sP,
|
|
9248
9310
|
ref: t,
|
|
9249
|
-
onClick:
|
|
9250
|
-
...
|
|
9251
|
-
...!isHostComponent_default(
|
|
9311
|
+
onClick: eP,
|
|
9312
|
+
...RN,
|
|
9313
|
+
...!isHostComponent_default(oP) && {
|
|
9252
9314
|
ownerState: {
|
|
9253
|
-
...
|
|
9254
|
-
...
|
|
9315
|
+
...iP,
|
|
9316
|
+
...sP.ownerState
|
|
9255
9317
|
}
|
|
9256
9318
|
},
|
|
9257
|
-
className: clsx_default(
|
|
9319
|
+
className: clsx_default(aP.root, sP.className, s, kN && "MuiInputBase-readOnly"),
|
|
9258
9320
|
children: [
|
|
9259
|
-
|
|
9321
|
+
FN,
|
|
9260
9322
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9261
9323
|
value: null,
|
|
9262
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9263
|
-
"aria-invalid":
|
|
9324
|
+
children: (0, import_jsx_runtime.jsx)(cP, {
|
|
9325
|
+
"aria-invalid": qN.error,
|
|
9264
9326
|
"aria-describedby": i,
|
|
9265
9327
|
autoComplete: a,
|
|
9266
9328
|
autoFocus: o,
|
|
9267
9329
|
defaultValue: h,
|
|
9268
|
-
disabled:
|
|
9330
|
+
disabled: qN.disabled,
|
|
9269
9331
|
id: E,
|
|
9270
|
-
onAnimationStart:
|
|
9332
|
+
onAnimationStart: rP,
|
|
9271
9333
|
name: q,
|
|
9272
|
-
placeholder:
|
|
9273
|
-
readOnly:
|
|
9274
|
-
required:
|
|
9275
|
-
rows:
|
|
9276
|
-
value:
|
|
9277
|
-
onKeyDown:
|
|
9278
|
-
onKeyUp:
|
|
9279
|
-
type:
|
|
9280
|
-
...
|
|
9281
|
-
...!isHostComponent_default(
|
|
9282
|
-
as:
|
|
9334
|
+
placeholder: ON,
|
|
9335
|
+
readOnly: kN,
|
|
9336
|
+
required: qN.required,
|
|
9337
|
+
rows: jN,
|
|
9338
|
+
value: zN,
|
|
9339
|
+
onKeyDown: EN,
|
|
9340
|
+
onKeyUp: DN,
|
|
9341
|
+
type: IN,
|
|
9342
|
+
...nP,
|
|
9343
|
+
...!isHostComponent_default(cP) && {
|
|
9344
|
+
as: tP,
|
|
9283
9345
|
ownerState: {
|
|
9284
|
-
...
|
|
9285
|
-
...
|
|
9346
|
+
...iP,
|
|
9347
|
+
...nP.ownerState
|
|
9286
9348
|
}
|
|
9287
9349
|
},
|
|
9288
|
-
ref:
|
|
9289
|
-
className: clsx_default(
|
|
9290
|
-
onBlur:
|
|
9291
|
-
onChange:
|
|
9292
|
-
onFocus:
|
|
9350
|
+
ref: UN,
|
|
9351
|
+
className: clsx_default(aP.input, nP.className, kN && "MuiInputBase-readOnly"),
|
|
9352
|
+
onBlur: QN,
|
|
9353
|
+
onChange: $N,
|
|
9354
|
+
onFocus: ZN
|
|
9293
9355
|
})
|
|
9294
9356
|
}),
|
|
9295
9357
|
y,
|
|
9296
|
-
|
|
9297
|
-
...
|
|
9298
|
-
startAdornment:
|
|
9358
|
+
AN ? AN({
|
|
9359
|
+
...qN,
|
|
9360
|
+
startAdornment: FN
|
|
9299
9361
|
}) : null
|
|
9300
9362
|
]
|
|
9301
9363
|
})
|
|
@@ -10371,30 +10433,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10371
10433
|
M,
|
|
10372
10434
|
i,
|
|
10373
10435
|
a
|
|
10374
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10375
|
-
|
|
10436
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), TN = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), EN = useJsonViewerStore((e2) => e2.colorspace.base0C), DN = useJsonViewerStore((e2) => e2.colorspace.base0A), ON = useJsonViewerStore((e2) => e2.displayComma), kN = useJsonViewerStore((e2) => e2.quotesOnKeys), AN = useJsonViewerStore((e2) => e2.rootName), jN = U === t, MN = Number.isInteger(Number(A)), NN = useJsonViewerStore((e2) => e2.enableAdd), PN = useJsonViewerStore((e2) => e2.onAdd), FN = (0, import_react.useMemo)(() => !PN || a !== void 0 || NN === false || v === false ? false : typeof NN == "function" ? !!NN(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10437
|
+
PN,
|
|
10376
10438
|
a,
|
|
10377
10439
|
i,
|
|
10378
|
-
|
|
10440
|
+
NN,
|
|
10379
10441
|
v,
|
|
10380
10442
|
t
|
|
10381
|
-
]),
|
|
10382
|
-
|
|
10443
|
+
]), IN = useJsonViewerStore((e2) => e2.enableDelete), LN = useJsonViewerStore((e2) => e2.onDelete), RN = (0, import_react.useMemo)(() => !LN || a !== void 0 || jN || IN === false || v === false ? false : typeof IN == "function" ? !!IN(i, t) : IN, [
|
|
10444
|
+
LN,
|
|
10383
10445
|
a,
|
|
10384
|
-
|
|
10446
|
+
jN,
|
|
10385
10447
|
i,
|
|
10386
|
-
|
|
10448
|
+
IN,
|
|
10387
10449
|
v,
|
|
10388
10450
|
t
|
|
10389
|
-
]),
|
|
10390
|
-
|
|
10451
|
+
]), zN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: BN, copied: VN } = useClipboard(), HN = useJsonViewerStore((e2) => e2.highlightUpdates), UN = (0, import_react.useMemo)(() => !HN || 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, [
|
|
10452
|
+
HN,
|
|
10391
10453
|
n,
|
|
10392
10454
|
t
|
|
10393
|
-
]),
|
|
10455
|
+
]), WN = (0, import_react.useRef)();
|
|
10394
10456
|
(0, import_react.useEffect)(() => {
|
|
10395
|
-
|
|
10457
|
+
WN.current && UN && "animate" in WN.current && WN.current.animate([
|
|
10396
10458
|
{
|
|
10397
|
-
backgroundColor:
|
|
10459
|
+
backgroundColor: DN
|
|
10398
10460
|
},
|
|
10399
10461
|
{
|
|
10400
10462
|
backgroundColor: ""
|
|
@@ -10404,40 +10466,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10404
10466
|
easing: "ease-in"
|
|
10405
10467
|
});
|
|
10406
10468
|
}, [
|
|
10407
|
-
|
|
10408
|
-
|
|
10469
|
+
DN,
|
|
10470
|
+
UN,
|
|
10409
10471
|
n,
|
|
10410
10472
|
t
|
|
10411
10473
|
]);
|
|
10412
|
-
let
|
|
10474
|
+
let GN = (0, import_react.useCallback)((e2) => {
|
|
10413
10475
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10414
10476
|
}, [
|
|
10415
10477
|
h,
|
|
10416
10478
|
t
|
|
10417
|
-
]),
|
|
10479
|
+
]), KN = (0, import_react.useCallback)(() => {
|
|
10418
10480
|
Q(false), E("");
|
|
10419
10481
|
}, [
|
|
10420
10482
|
Q,
|
|
10421
10483
|
E
|
|
10422
|
-
]),
|
|
10484
|
+
]), qN = (0, import_react.useCallback)((e2) => {
|
|
10423
10485
|
if (Q(false), _) try {
|
|
10424
|
-
|
|
10486
|
+
TN(i, t, _(e2));
|
|
10425
10487
|
} catch {
|
|
10426
10488
|
}
|
|
10427
10489
|
}, [
|
|
10428
10490
|
Q,
|
|
10429
10491
|
_,
|
|
10430
|
-
|
|
10492
|
+
TN,
|
|
10431
10493
|
i,
|
|
10432
10494
|
t
|
|
10433
|
-
]),
|
|
10495
|
+
]), JN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10434
10496
|
children: [
|
|
10435
10497
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10436
10498
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10437
10499
|
sx: {
|
|
10438
10500
|
fontSize: ".8rem"
|
|
10439
10501
|
},
|
|
10440
|
-
onClick:
|
|
10502
|
+
onClick: KN
|
|
10441
10503
|
})
|
|
10442
10504
|
}),
|
|
10443
10505
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10445,22 +10507,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10445
10507
|
sx: {
|
|
10446
10508
|
fontSize: ".8rem"
|
|
10447
10509
|
},
|
|
10448
|
-
onClick: () =>
|
|
10510
|
+
onClick: () => qN(w)
|
|
10449
10511
|
})
|
|
10450
10512
|
})
|
|
10451
10513
|
]
|
|
10452
10514
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10453
10515
|
children: [
|
|
10454
|
-
|
|
10516
|
+
zN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10455
10517
|
onClick: (e2) => {
|
|
10456
10518
|
e2.preventDefault();
|
|
10457
10519
|
try {
|
|
10458
|
-
|
|
10520
|
+
BN(i, t, copyString);
|
|
10459
10521
|
} catch (e3) {
|
|
10460
10522
|
console.error(e3);
|
|
10461
10523
|
}
|
|
10462
10524
|
},
|
|
10463
|
-
children:
|
|
10525
|
+
children: VN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10464
10526
|
sx: {
|
|
10465
10527
|
fontSize: ".8rem"
|
|
10466
10528
|
}
|
|
@@ -10471,16 +10533,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10471
10533
|
})
|
|
10472
10534
|
}),
|
|
10473
10535
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10474
|
-
onClick:
|
|
10536
|
+
onClick: GN,
|
|
10475
10537
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10476
10538
|
sx: {
|
|
10477
10539
|
fontSize: ".8rem"
|
|
10478
10540
|
}
|
|
10479
10541
|
})
|
|
10480
10542
|
}),
|
|
10481
|
-
|
|
10543
|
+
FN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10482
10544
|
onClick: (e2) => {
|
|
10483
|
-
e2.preventDefault(),
|
|
10545
|
+
e2.preventDefault(), PN == null ? void 0 : PN(i);
|
|
10484
10546
|
},
|
|
10485
10547
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10486
10548
|
sx: {
|
|
@@ -10488,9 +10550,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10488
10550
|
}
|
|
10489
10551
|
})
|
|
10490
10552
|
}),
|
|
10491
|
-
|
|
10553
|
+
RN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10492
10554
|
onClick: (e2) => {
|
|
10493
|
-
e2.preventDefault(),
|
|
10555
|
+
e2.preventDefault(), LN == null ? void 0 : LN(i, t);
|
|
10494
10556
|
},
|
|
10495
10557
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10496
10558
|
sx: {
|
|
@@ -10503,24 +10565,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10503
10565
|
f,
|
|
10504
10566
|
h,
|
|
10505
10567
|
_,
|
|
10506
|
-
|
|
10507
|
-
|
|
10568
|
+
VN,
|
|
10569
|
+
BN,
|
|
10508
10570
|
S,
|
|
10509
10571
|
J,
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10572
|
+
zN,
|
|
10573
|
+
FN,
|
|
10574
|
+
RN,
|
|
10513
10575
|
w,
|
|
10514
10576
|
i,
|
|
10515
10577
|
t,
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
]),
|
|
10578
|
+
PN,
|
|
10579
|
+
LN,
|
|
10580
|
+
GN,
|
|
10581
|
+
KN,
|
|
10582
|
+
qN
|
|
10583
|
+
]), YN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10522
10584
|
t
|
|
10523
|
-
]),
|
|
10585
|
+
]), XN = !YN && !!(c && d), ZN = useJsonViewerStore((e2) => e2.keyRenderer), QN = (0, import_react.useMemo)(() => ({
|
|
10524
10586
|
path: i,
|
|
10525
10587
|
inspect: K,
|
|
10526
10588
|
setInspect: q,
|
|
@@ -10557,13 +10619,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10557
10619
|
opacity: 0.8
|
|
10558
10620
|
},
|
|
10559
10621
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10560
|
-
e2.isDefaultPrevented() ||
|
|
10622
|
+
e2.isDefaultPrevented() || YN || q((e3) => !e3);
|
|
10561
10623
|
}, [
|
|
10562
|
-
|
|
10624
|
+
YN,
|
|
10563
10625
|
q
|
|
10564
10626
|
]),
|
|
10565
10627
|
children: [
|
|
10566
|
-
|
|
10628
|
+
XN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10567
10629
|
className: "data-key-toggle-expanded",
|
|
10568
10630
|
sx: {
|
|
10569
10631
|
fontSize: ".8rem",
|
|
@@ -10581,27 +10643,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10581
10643
|
}
|
|
10582
10644
|
}) : null,
|
|
10583
10645
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10584
|
-
ref:
|
|
10646
|
+
ref: WN,
|
|
10585
10647
|
className: "data-key-key",
|
|
10586
10648
|
component: "span",
|
|
10587
|
-
children:
|
|
10649
|
+
children: jN && O === 0 ? AN === false ? null : kN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10588
10650
|
children: [
|
|
10589
10651
|
'"',
|
|
10590
|
-
|
|
10652
|
+
AN,
|
|
10591
10653
|
'"'
|
|
10592
10654
|
]
|
|
10593
10655
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10594
|
-
children:
|
|
10595
|
-
}) :
|
|
10596
|
-
...
|
|
10597
|
-
}) : a === void 0 && (
|
|
10656
|
+
children: AN
|
|
10657
|
+
}) : ZN.when(QN) ? (0, import_jsx_runtime.jsx)(ZN, {
|
|
10658
|
+
...QN
|
|
10659
|
+
}) : a === void 0 && (MN ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10598
10660
|
component: "span",
|
|
10599
10661
|
style: {
|
|
10600
|
-
color:
|
|
10601
|
-
userSelect:
|
|
10662
|
+
color: EN,
|
|
10663
|
+
userSelect: MN ? "none" : "auto"
|
|
10602
10664
|
},
|
|
10603
10665
|
children: A
|
|
10604
|
-
}) :
|
|
10666
|
+
}) : kN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10605
10667
|
children: [
|
|
10606
10668
|
'"',
|
|
10607
10669
|
A,
|
|
@@ -10611,7 +10673,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10611
10673
|
children: A
|
|
10612
10674
|
}))
|
|
10613
10675
|
}),
|
|
10614
|
-
|
|
10676
|
+
jN ? AN !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10615
10677
|
className: "data-key-colon",
|
|
10616
10678
|
sx: {
|
|
10617
10679
|
mr: 0.5
|
|
@@ -10624,38 +10686,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10624
10686
|
".data-key-key:empty + &": {
|
|
10625
10687
|
display: "none"
|
|
10626
10688
|
},
|
|
10627
|
-
userSelect:
|
|
10689
|
+
userSelect: MN ? "none" : "auto"
|
|
10628
10690
|
},
|
|
10629
10691
|
children: ":"
|
|
10630
10692
|
}),
|
|
10631
10693
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10632
|
-
...
|
|
10694
|
+
...QN
|
|
10633
10695
|
}),
|
|
10634
|
-
I &&
|
|
10696
|
+
I && XN && K && JN
|
|
10635
10697
|
]
|
|
10636
10698
|
}),
|
|
10637
10699
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10638
10700
|
path: i,
|
|
10639
10701
|
value: w,
|
|
10640
10702
|
setValue: E,
|
|
10641
|
-
abortEditing:
|
|
10642
|
-
commitEditing:
|
|
10703
|
+
abortEditing: KN,
|
|
10704
|
+
commitEditing: qN
|
|
10643
10705
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10644
|
-
...
|
|
10706
|
+
...QN
|
|
10645
10707
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10646
10708
|
component: "span",
|
|
10647
10709
|
className: "data-value-fallback",
|
|
10648
10710
|
children: `fallback: ${t}`
|
|
10649
10711
|
}),
|
|
10650
10712
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10651
|
-
...
|
|
10713
|
+
...QN
|
|
10652
10714
|
}),
|
|
10653
|
-
!o &&
|
|
10715
|
+
!o && ON && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10654
10716
|
children: ","
|
|
10655
10717
|
}),
|
|
10656
|
-
I &&
|
|
10657
|
-
I && !
|
|
10658
|
-
!I && J &&
|
|
10718
|
+
I && XN && !K && JN,
|
|
10719
|
+
I && !XN && JN,
|
|
10720
|
+
!I && J && JN
|
|
10659
10721
|
]
|
|
10660
10722
|
});
|
|
10661
10723
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -10784,9 +10846,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10784
10846
|
})
|
|
10785
10847
|
})
|
|
10786
10848
|
});
|
|
10787
|
-
}, import_compiler_runtime$
|
|
10849
|
+
}, import_compiler_runtime$50 = require_compiler_runtime();
|
|
10788
10850
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
10789
|
-
let t = (0, import_compiler_runtime$
|
|
10851
|
+
let t = (0, import_compiler_runtime$50.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
10790
10852
|
if (!n) return null;
|
|
10791
10853
|
let d = !c, f;
|
|
10792
10854
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -10805,9 +10867,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10805
10867
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
10806
10868
|
});
|
|
10807
10869
|
HtmlOutput.displayName = "HtmlOutput";
|
|
10808
|
-
var import_compiler_runtime$
|
|
10870
|
+
var import_compiler_runtime$49 = require_compiler_runtime();
|
|
10809
10871
|
const ImageOutput = (e) => {
|
|
10810
|
-
let t = (0, import_compiler_runtime$
|
|
10872
|
+
let t = (0, import_compiler_runtime$49.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
10811
10873
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
10812
10874
|
src: n,
|
|
10813
10875
|
alt: c,
|
|
@@ -10820,9 +10882,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10820
10882
|
children: d
|
|
10821
10883
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
10822
10884
|
};
|
|
10823
|
-
var import_compiler_runtime$
|
|
10885
|
+
var import_compiler_runtime$48 = require_compiler_runtime();
|
|
10824
10886
|
Kbd = (e) => {
|
|
10825
|
-
let t = (0, import_compiler_runtime$
|
|
10887
|
+
let t = (0, import_compiler_runtime$48.c)(5), n;
|
|
10826
10888
|
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);
|
|
10827
10889
|
let i;
|
|
10828
10890
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -10830,9 +10892,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10830
10892
|
children: e.children
|
|
10831
10893
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
10832
10894
|
};
|
|
10833
|
-
var import_compiler_runtime$
|
|
10895
|
+
var import_compiler_runtime$47 = require_compiler_runtime();
|
|
10834
10896
|
const ExternalLink$1 = (e) => {
|
|
10835
|
-
let t = (0, import_compiler_runtime$
|
|
10897
|
+
let t = (0, import_compiler_runtime$47.c)(3), { href: n, children: i } = e, a;
|
|
10836
10898
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
10837
10899
|
href: n,
|
|
10838
10900
|
target: "_blank",
|
|
@@ -11003,17 +11065,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11003
11065
|
os: "os",
|
|
11004
11066
|
re: "re",
|
|
11005
11067
|
sys: "sys"
|
|
11006
|
-
}, import_compiler_runtime$
|
|
11068
|
+
}, import_compiler_runtime$46 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
11007
11069
|
function useFixMode() {
|
|
11008
|
-
let e = (0, import_compiler_runtime$
|
|
11070
|
+
let e = (0, import_compiler_runtime$46.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
11009
11071
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
11010
11072
|
fixMode: t,
|
|
11011
11073
|
setFixMode: n
|
|
11012
11074
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
11013
11075
|
}
|
|
11014
|
-
var import_compiler_runtime$
|
|
11076
|
+
var import_compiler_runtime$45 = require_compiler_runtime();
|
|
11015
11077
|
const AutoFixButton = (e) => {
|
|
11016
|
-
let t = (0, import_compiler_runtime$
|
|
11078
|
+
let t = (0, import_compiler_runtime$45.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), h;
|
|
11017
11079
|
if (t[0] !== d || t[1] !== n) {
|
|
11018
11080
|
let e2;
|
|
11019
11081
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -11074,7 +11136,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11074
11136
|
};
|
|
11075
11137
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
11076
11138
|
const AIFixButton = (e) => {
|
|
11077
|
-
let t = (0, import_compiler_runtime$
|
|
11139
|
+
let t = (0, import_compiler_runtime$45.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
11078
11140
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11079
11141
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
11080
11142
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11143,7 +11205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11143
11205
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
11144
11206
|
};
|
|
11145
11207
|
var AiModeItem = (e) => {
|
|
11146
|
-
let t = (0, import_compiler_runtime$
|
|
11208
|
+
let t = (0, import_compiler_runtime$45.c)(12), { mode: n } = e, i;
|
|
11147
11209
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11148
11210
|
className: "h-4 w-4"
|
|
11149
11211
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11180,9 +11242,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11180
11242
|
function useFilename() {
|
|
11181
11243
|
return useAtomValue(filenameAtom);
|
|
11182
11244
|
}
|
|
11183
|
-
var import_compiler_runtime$
|
|
11245
|
+
var import_compiler_runtime$43 = require_compiler_runtime();
|
|
11184
11246
|
const CellLink = (e) => {
|
|
11185
|
-
let t = (0, import_compiler_runtime$
|
|
11247
|
+
let t = (0, import_compiler_runtime$43.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;
|
|
11186
11248
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
11187
11249
|
let S;
|
|
11188
11250
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -11202,13 +11264,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11202
11264
|
children: w
|
|
11203
11265
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = O) : O = t[11], O;
|
|
11204
11266
|
}, CellLinkError = (e) => {
|
|
11205
|
-
let t = (0, import_compiler_runtime$
|
|
11267
|
+
let t = (0, import_compiler_runtime$43.c)(2), n;
|
|
11206
11268
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
11207
11269
|
...e,
|
|
11208
11270
|
variant: "destructive"
|
|
11209
11271
|
}), t[0] = e, t[1] = n), n;
|
|
11210
11272
|
}, CellLinkTraceback = (e) => {
|
|
11211
|
-
let t = (0, import_compiler_runtime$
|
|
11273
|
+
let t = (0, import_compiler_runtime$43.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
11212
11274
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
11213
11275
|
let s;
|
|
11214
11276
|
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];
|
|
@@ -11305,7 +11367,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11305
11367
|
value: e2
|
|
11306
11368
|
});
|
|
11307
11369
|
}
|
|
11308
|
-
var import_compiler_runtime$
|
|
11370
|
+
var import_compiler_runtime$42 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
11309
11371
|
const cleanAnsiCodes = (e) => {
|
|
11310
11372
|
let t = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
11311
11373
|
return e.replaceAll(t, "");
|
|
@@ -11373,7 +11435,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11373
11435
|
});
|
|
11374
11436
|
}
|
|
11375
11437
|
var InstallPackageLink = (e) => {
|
|
11376
|
-
let t = (0, import_compiler_runtime$
|
|
11438
|
+
let t = (0, import_compiler_runtime$42.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
|
|
11377
11439
|
t[0] !== a || t[1] !== n ? (o = (e2) => {
|
|
11378
11440
|
a(n), e2.preventDefault();
|
|
11379
11441
|
}, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
|
|
@@ -11446,15 +11508,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11446
11508
|
})
|
|
11447
11509
|
});
|
|
11448
11510
|
RenderTextWithLinks = (e) => {
|
|
11449
|
-
let t = (0, import_compiler_runtime$
|
|
11511
|
+
let t = (0, import_compiler_runtime$42.c)(4), { text: n } = e, i;
|
|
11450
11512
|
t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
|
|
11451
11513
|
let a = i, o;
|
|
11452
11514
|
return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
11453
11515
|
children: a
|
|
11454
11516
|
}), t[2] = a, t[3] = o), o;
|
|
11455
11517
|
};
|
|
11456
|
-
var import_compiler_runtime$
|
|
11457
|
-
let t = (0, import_compiler_runtime$
|
|
11518
|
+
var import_compiler_runtime$41 = require_compiler_runtime(), Tip = (e) => {
|
|
11519
|
+
let t = (0, import_compiler_runtime$41.c)(10), n = e.title ?? "Tip", i;
|
|
11458
11520
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
11459
11521
|
className: "pt-2 pb-2 font-normal",
|
|
11460
11522
|
children: n
|
|
@@ -11482,7 +11544,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11482
11544
|
}), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
|
|
11483
11545
|
};
|
|
11484
11546
|
const MarimoErrorOutput = (e) => {
|
|
11485
|
-
let t = (0, import_compiler_runtime$
|
|
11547
|
+
let t = (0, import_compiler_runtime$41.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";
|
|
11486
11548
|
if (n.some(_temp$5)) c = "Interrupted";
|
|
11487
11549
|
else if (n.some(_temp2$3)) c = "An internal error occurred";
|
|
11488
11550
|
else if (n.some(_temp3$2)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
|
|
@@ -11496,18 +11558,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11496
11558
|
}
|
|
11497
11559
|
let _, v, y, S, w, E;
|
|
11498
11560
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11499
|
-
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),
|
|
11500
|
-
t[15] === s ?
|
|
11561
|
+
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), TN = n.filter(_temp16), $ = n.filter(_temp17), EN;
|
|
11562
|
+
t[15] === s ? EN = t[16] : (EN = () => {
|
|
11501
11563
|
s.openApplication("scratchpad");
|
|
11502
|
-
}, t[15] = s, t[16] =
|
|
11503
|
-
let
|
|
11564
|
+
}, t[15] = s, t[16] = EN);
|
|
11565
|
+
let DN = EN, ON = () => {
|
|
11504
11566
|
let t2 = [];
|
|
11505
|
-
if (Q.length > 0 ||
|
|
11567
|
+
if (Q.length > 0 || TN.length > 0) {
|
|
11506
11568
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11507
11569
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11508
11570
|
children: [
|
|
11509
11571
|
Q.map(_temp20),
|
|
11510
|
-
|
|
11572
|
+
TN.map(_temp21),
|
|
11511
11573
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11512
11574
|
size: "xs",
|
|
11513
11575
|
variant: "outline",
|
|
@@ -11539,7 +11601,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11539
11601
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11540
11602
|
errors: [
|
|
11541
11603
|
...Q,
|
|
11542
|
-
|
|
11604
|
+
...TN
|
|
11543
11605
|
],
|
|
11544
11606
|
cellId: i
|
|
11545
11607
|
})
|
|
@@ -11700,7 +11762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11700
11762
|
size: "xs",
|
|
11701
11763
|
variant: "link",
|
|
11702
11764
|
className: "my-2 font-normal mx-0 px-0",
|
|
11703
|
-
onClick:
|
|
11765
|
+
onClick: DN,
|
|
11704
11766
|
children: [
|
|
11705
11767
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11706
11768
|
className: "h-3"
|
|
@@ -11825,13 +11887,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11825
11887
|
})
|
|
11826
11888
|
]
|
|
11827
11889
|
}, "sql-errors")), t2;
|
|
11828
|
-
},
|
|
11829
|
-
t[17] !==
|
|
11830
|
-
className:
|
|
11890
|
+
}, kN = `font-code font-medium tracking-wide ${h}`, AN;
|
|
11891
|
+
t[17] !== kN || t[18] !== c ? (AN = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11892
|
+
className: kN,
|
|
11831
11893
|
children: c
|
|
11832
|
-
}), t[17] =
|
|
11833
|
-
let
|
|
11834
|
-
_ = 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 =
|
|
11894
|
+
}), t[17] = kN, t[18] = c, t[19] = AN) : AN = t[19];
|
|
11895
|
+
let jN = AN;
|
|
11896
|
+
_ = 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 = jN, v = "flex flex-col gap-8", y = ON(), 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;
|
|
11835
11897
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11836
11898
|
let O;
|
|
11837
11899
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12159,9 +12221,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12159
12221
|
})
|
|
12160
12222
|
}, `sql-error-${t}`);
|
|
12161
12223
|
}
|
|
12162
|
-
var import_compiler_runtime$
|
|
12224
|
+
var import_compiler_runtime$40 = require_compiler_runtime();
|
|
12163
12225
|
const TextOutput = (e) => {
|
|
12164
|
-
let t = (0, import_compiler_runtime$
|
|
12226
|
+
let t = (0, import_compiler_runtime$40.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
|
|
12165
12227
|
t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
12166
12228
|
className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
12167
12229
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -12178,17 +12240,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12178
12240
|
children: v
|
|
12179
12241
|
}), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
|
|
12180
12242
|
};
|
|
12181
|
-
var import_compiler_runtime$
|
|
12243
|
+
var import_compiler_runtime$39 = require_compiler_runtime();
|
|
12182
12244
|
const VideoOutput = (e) => {
|
|
12183
|
-
let t = (0, import_compiler_runtime$
|
|
12245
|
+
let t = (0, import_compiler_runtime$39.c)(3), { src: n, className: i } = e, a;
|
|
12184
12246
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
|
|
12185
12247
|
className: i,
|
|
12186
12248
|
src: n
|
|
12187
12249
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
12188
12250
|
};
|
|
12189
|
-
var import_compiler_runtime$
|
|
12251
|
+
var import_compiler_runtime$38 = require_compiler_runtime();
|
|
12190
12252
|
useOverflowDetection = function(e, t) {
|
|
12191
|
-
let n = (0, import_compiler_runtime$
|
|
12253
|
+
let n = (0, import_compiler_runtime$38.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
|
|
12192
12254
|
return n[0] !== i || n[1] !== e ? (s = () => {
|
|
12193
12255
|
let t2 = e.current;
|
|
12194
12256
|
if (!t2 || !i) return;
|
|
@@ -12285,9 +12347,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12285
12347
|
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B-rkEqtS.js").then((e) => ({
|
|
12286
12348
|
default: e.VegaEmbed
|
|
12287
12349
|
})));
|
|
12288
|
-
var import_compiler_runtime$
|
|
12350
|
+
var import_compiler_runtime$37 = require_compiler_runtime();
|
|
12289
12351
|
ChartLoadingState = () => {
|
|
12290
|
-
let e = (0, import_compiler_runtime$
|
|
12352
|
+
let e = (0, import_compiler_runtime$37.c)(1), t;
|
|
12291
12353
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
12292
12354
|
className: "flex items-center gap-2 justify-center",
|
|
12293
12355
|
children: [
|
|
@@ -12302,7 +12364,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12302
12364
|
}), e[0] = t) : t = e[0], t;
|
|
12303
12365
|
};
|
|
12304
12366
|
ChartErrorState = (e) => {
|
|
12305
|
-
let t = (0, import_compiler_runtime$
|
|
12367
|
+
let t = (0, import_compiler_runtime$37.c)(2), { error: n } = e, i;
|
|
12306
12368
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
|
|
12307
12369
|
className: "flex items-center justify-center",
|
|
12308
12370
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -12311,7 +12373,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12311
12373
|
}), t[0] = n, t[1] = i), i;
|
|
12312
12374
|
};
|
|
12313
12375
|
ChartInfoState = (e) => {
|
|
12314
|
-
let t = (0, import_compiler_runtime$
|
|
12376
|
+
let t = (0, import_compiler_runtime$37.c)(8), { children: n, className: i } = e, o;
|
|
12315
12377
|
t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
|
|
12316
12378
|
let s;
|
|
12317
12379
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -12331,11 +12393,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12331
12393
|
]
|
|
12332
12394
|
}), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
|
|
12333
12395
|
};
|
|
12334
|
-
let import_compiler_runtime$
|
|
12335
|
-
import_compiler_runtime$
|
|
12396
|
+
let import_compiler_runtime$36;
|
|
12397
|
+
import_compiler_runtime$36 = require_compiler_runtime();
|
|
12336
12398
|
Tabs = Root2;
|
|
12337
12399
|
TabsList = import_react.forwardRef((e, t) => {
|
|
12338
|
-
let n = (0, import_compiler_runtime$
|
|
12400
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
12339
12401
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12340
12402
|
let s;
|
|
12341
12403
|
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);
|
|
@@ -12348,7 +12410,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12348
12410
|
});
|
|
12349
12411
|
TabsList.displayName = List.displayName;
|
|
12350
12412
|
TabsTrigger = import_react.forwardRef((e, t) => {
|
|
12351
|
-
let n = (0, import_compiler_runtime$
|
|
12413
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
12352
12414
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12353
12415
|
let s;
|
|
12354
12416
|
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);
|
|
@@ -12361,7 +12423,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12361
12423
|
});
|
|
12362
12424
|
TabsTrigger.displayName = Trigger.displayName;
|
|
12363
12425
|
TabsContent = import_react.forwardRef((e, t) => {
|
|
12364
|
-
let n = (0, import_compiler_runtime$
|
|
12426
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
12365
12427
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12366
12428
|
let s;
|
|
12367
12429
|
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);
|
|
@@ -12373,9 +12435,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12373
12435
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
12374
12436
|
});
|
|
12375
12437
|
TabsContent.displayName = Content.displayName;
|
|
12376
|
-
var import_compiler_runtime$
|
|
12438
|
+
var import_compiler_runtime$35 = require_compiler_runtime();
|
|
12377
12439
|
const WithLocale = (e) => {
|
|
12378
|
-
let t = (0, import_compiler_runtime$
|
|
12440
|
+
let t = (0, import_compiler_runtime$35.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
12379
12441
|
return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
12380
12442
|
};
|
|
12381
12443
|
function tzName(e, t, n = "long") {
|
|
@@ -12586,9 +12648,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12586
12648
|
return n;
|
|
12587
12649
|
}
|
|
12588
12650
|
};
|
|
12589
|
-
var import_compiler_runtime$
|
|
12651
|
+
var import_compiler_runtime$34 = require_compiler_runtime();
|
|
12590
12652
|
const DraggablePopover = (e) => {
|
|
12591
|
-
let t = (0, import_compiler_runtime$
|
|
12653
|
+
let t = (0, import_compiler_runtime$34.c)(25), n, i, a;
|
|
12592
12654
|
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);
|
|
12593
12655
|
let o;
|
|
12594
12656
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
@@ -12818,7 +12880,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12818
12880
|
}, [
|
|
12819
12881
|
h
|
|
12820
12882
|
]), k(() => {
|
|
12821
|
-
U(6,
|
|
12883
|
+
U(6, EN);
|
|
12822
12884
|
}, []);
|
|
12823
12885
|
let K = import_react.useMemo(() => ({
|
|
12824
12886
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12827,7 +12889,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12827
12889
|
var _a2;
|
|
12828
12890
|
var a2, o2, s2;
|
|
12829
12891
|
if (!Object.is(n.current[e2], t2)) {
|
|
12830
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12892
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, TN);
|
|
12831
12893
|
else if (e2 === "value") {
|
|
12832
12894
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12833
12895
|
let e3 = document.getElementById(I);
|
|
@@ -12835,8 +12897,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12835
12897
|
}
|
|
12836
12898
|
if (U(7, () => {
|
|
12837
12899
|
var _a3;
|
|
12838
|
-
n.current.selectedItemId = (_a3 =
|
|
12839
|
-
}), i2 || U(5,
|
|
12900
|
+
n.current.selectedItemId = (_a3 = DN()) == null ? void 0 : _a3.id, K.emit();
|
|
12901
|
+
}), i2 || U(5, EN), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12840
12902
|
let e3 = t2 ?? "";
|
|
12841
12903
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12842
12904
|
return;
|
|
@@ -12861,12 +12923,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12861
12923
|
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([
|
|
12862
12924
|
e2
|
|
12863
12925
|
]))), U(3, () => {
|
|
12864
|
-
$(), Q(), n.current.value ||
|
|
12926
|
+
$(), Q(), n.current.value || TN(), K.emit();
|
|
12865
12927
|
}), () => {
|
|
12866
12928
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12867
|
-
let t3 =
|
|
12929
|
+
let t3 = DN();
|
|
12868
12930
|
U(4, () => {
|
|
12869
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12931
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && TN(), K.emit();
|
|
12870
12932
|
});
|
|
12871
12933
|
}),
|
|
12872
12934
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12899,7 +12961,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12899
12961
|
]);
|
|
12900
12962
|
});
|
|
12901
12963
|
let i2 = z.current;
|
|
12902
|
-
|
|
12964
|
+
ON().sort((t3, n2) => {
|
|
12903
12965
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12904
12966
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12905
12967
|
}).forEach((e3) => {
|
|
@@ -12911,9 +12973,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12911
12973
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12912
12974
|
});
|
|
12913
12975
|
}
|
|
12914
|
-
function
|
|
12976
|
+
function TN() {
|
|
12915
12977
|
var _a2;
|
|
12916
|
-
let e2 = (_a2 =
|
|
12978
|
+
let e2 = (_a2 = ON().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12917
12979
|
K.setState("value", e2 || void 0);
|
|
12918
12980
|
}
|
|
12919
12981
|
function $() {
|
|
@@ -12934,43 +12996,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12934
12996
|
}
|
|
12935
12997
|
n.current.filtered.count = e2;
|
|
12936
12998
|
}
|
|
12937
|
-
function
|
|
12999
|
+
function EN() {
|
|
12938
13000
|
var _a2, _b;
|
|
12939
13001
|
var e2;
|
|
12940
|
-
let t2 =
|
|
13002
|
+
let t2 = DN();
|
|
12941
13003
|
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({
|
|
12942
13004
|
block: "nearest"
|
|
12943
13005
|
})), t2.scrollIntoView({
|
|
12944
13006
|
block: "nearest"
|
|
12945
13007
|
}));
|
|
12946
13008
|
}
|
|
12947
|
-
function
|
|
13009
|
+
function DN() {
|
|
12948
13010
|
var _a2;
|
|
12949
13011
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12950
13012
|
}
|
|
12951
|
-
function
|
|
13013
|
+
function ON() {
|
|
12952
13014
|
var _a2;
|
|
12953
13015
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12954
13016
|
}
|
|
12955
|
-
function
|
|
12956
|
-
let t2 =
|
|
13017
|
+
function kN(e2) {
|
|
13018
|
+
let t2 = ON()[e2];
|
|
12957
13019
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12958
13020
|
}
|
|
12959
|
-
function
|
|
13021
|
+
function AN(e2) {
|
|
12960
13022
|
var t2;
|
|
12961
|
-
let n2 =
|
|
13023
|
+
let n2 = DN(), i2 = ON(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12962
13024
|
(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));
|
|
12963
13025
|
}
|
|
12964
|
-
function
|
|
13026
|
+
function jN(e2) {
|
|
12965
13027
|
var _a2;
|
|
12966
|
-
let t2 = (_a2 =
|
|
13028
|
+
let t2 = (_a2 = DN()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12967
13029
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12968
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
13030
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : AN(e2);
|
|
12969
13031
|
}
|
|
12970
|
-
let
|
|
12971
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12972
|
-
},
|
|
12973
|
-
e2.preventDefault(), e2.metaKey ?
|
|
13032
|
+
let MN = () => kN(ON().length - 1), NN = (e2) => {
|
|
13033
|
+
e2.preventDefault(), e2.metaKey ? MN() : e2.altKey ? jN(1) : AN(1);
|
|
13034
|
+
}, PN = (e2) => {
|
|
13035
|
+
e2.preventDefault(), e2.metaKey ? kN(0) : e2.altKey ? jN(-1) : AN(-1);
|
|
12974
13036
|
};
|
|
12975
13037
|
return import_react.createElement(Primitive.div, {
|
|
12976
13038
|
ref: t,
|
|
@@ -12984,27 +13046,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12984
13046
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12985
13047
|
case "n":
|
|
12986
13048
|
case "j":
|
|
12987
|
-
E && e2.ctrlKey &&
|
|
13049
|
+
E && e2.ctrlKey && NN(e2);
|
|
12988
13050
|
break;
|
|
12989
13051
|
case "ArrowDown":
|
|
12990
|
-
|
|
13052
|
+
NN(e2);
|
|
12991
13053
|
break;
|
|
12992
13054
|
case "p":
|
|
12993
13055
|
case "k":
|
|
12994
|
-
E && e2.ctrlKey &&
|
|
13056
|
+
E && e2.ctrlKey && PN(e2);
|
|
12995
13057
|
break;
|
|
12996
13058
|
case "ArrowUp":
|
|
12997
|
-
|
|
13059
|
+
PN(e2);
|
|
12998
13060
|
break;
|
|
12999
13061
|
case "Home":
|
|
13000
|
-
e2.preventDefault(),
|
|
13062
|
+
e2.preventDefault(), kN(0);
|
|
13001
13063
|
break;
|
|
13002
13064
|
case "End":
|
|
13003
|
-
e2.preventDefault(),
|
|
13065
|
+
e2.preventDefault(), MN();
|
|
13004
13066
|
break;
|
|
13005
13067
|
case "Enter": {
|
|
13006
13068
|
e2.preventDefault();
|
|
13007
|
-
let t3 =
|
|
13069
|
+
let t3 = DN();
|
|
13008
13070
|
if (t3) {
|
|
13009
13071
|
let e3 = new Event(Z);
|
|
13010
13072
|
t3.dispatchEvent(e3);
|
|
@@ -13159,7 +13221,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13159
13221
|
}, e2)));
|
|
13160
13222
|
}), xe = import_react.forwardRef((e, t) => {
|
|
13161
13223
|
let { open: n, onOpenChange: i, overlayClassName: a, contentClassName: o, container: s, ...c } = e;
|
|
13162
|
-
return import_react.createElement(Root$
|
|
13224
|
+
return import_react.createElement(Root$3, {
|
|
13163
13225
|
open: n,
|
|
13164
13226
|
onOpenChange: i
|
|
13165
13227
|
}, import_react.createElement(Portal$1, {
|
|
@@ -13266,7 +13328,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13266
13328
|
ref: t.ref
|
|
13267
13329
|
}, n(t.props.children)) : n(t);
|
|
13268
13330
|
}
|
|
13269
|
-
let Te, import_compiler_runtime$
|
|
13331
|
+
let Te, import_compiler_runtime$33;
|
|
13270
13332
|
Te = {
|
|
13271
13333
|
position: "absolute",
|
|
13272
13334
|
width: "1px",
|
|
@@ -13278,9 +13340,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13278
13340
|
whiteSpace: "nowrap",
|
|
13279
13341
|
borderWidth: "0"
|
|
13280
13342
|
};
|
|
13281
|
-
import_compiler_runtime$
|
|
13343
|
+
import_compiler_runtime$33 = require_compiler_runtime();
|
|
13282
13344
|
Command = import_react.forwardRef((e, t) => {
|
|
13283
|
-
let n = (0, import_compiler_runtime$
|
|
13345
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
13284
13346
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13285
13347
|
let s;
|
|
13286
13348
|
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);
|
|
@@ -13294,7 +13356,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13294
13356
|
});
|
|
13295
13357
|
Command.displayName = _e.displayName;
|
|
13296
13358
|
CommandInput = import_react.forwardRef((e, t) => {
|
|
13297
|
-
let n = (0, import_compiler_runtime$
|
|
13359
|
+
let n = (0, import_compiler_runtime$33.c)(19), i, o, s, c;
|
|
13298
13360
|
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);
|
|
13299
13361
|
let d;
|
|
13300
13362
|
n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
|
|
@@ -13322,7 +13384,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13322
13384
|
});
|
|
13323
13385
|
CommandInput.displayName = _e.Input.displayName;
|
|
13324
13386
|
CommandList = import_react.forwardRef((e, t) => {
|
|
13325
|
-
let n = (0, import_compiler_runtime$
|
|
13387
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
13326
13388
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13327
13389
|
let s;
|
|
13328
13390
|
n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
|
|
@@ -13335,7 +13397,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13335
13397
|
});
|
|
13336
13398
|
CommandList.displayName = _e.List.displayName;
|
|
13337
13399
|
CommandEmpty = import_react.forwardRef((e, t) => {
|
|
13338
|
-
let n = (0, import_compiler_runtime$
|
|
13400
|
+
let n = (0, import_compiler_runtime$33.c)(3), i;
|
|
13339
13401
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
|
|
13340
13402
|
ref: t,
|
|
13341
13403
|
className: "py-6 text-center text-sm",
|
|
@@ -13344,7 +13406,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13344
13406
|
});
|
|
13345
13407
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
13346
13408
|
var CommandGroup = import_react.forwardRef((e, t) => {
|
|
13347
|
-
let n = (0, import_compiler_runtime$
|
|
13409
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
13348
13410
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13349
13411
|
let s;
|
|
13350
13412
|
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);
|
|
@@ -13357,7 +13419,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13357
13419
|
});
|
|
13358
13420
|
CommandGroup.displayName = _e.Group.displayName;
|
|
13359
13421
|
CommandSeparator = import_react.forwardRef((e, t) => {
|
|
13360
|
-
let n = (0, import_compiler_runtime$
|
|
13422
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, a;
|
|
13361
13423
|
n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
|
|
13362
13424
|
let o;
|
|
13363
13425
|
n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
|
|
@@ -13372,7 +13434,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13372
13434
|
});
|
|
13373
13435
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
13374
13436
|
CommandItem = import_react.forwardRef((e, t) => {
|
|
13375
|
-
let n = (0, import_compiler_runtime$
|
|
13437
|
+
let n = (0, import_compiler_runtime$33.c)(17), i, o, s, c, d;
|
|
13376
13438
|
if (n[0] !== t || n[1] !== e) {
|
|
13377
13439
|
let { className: f2, variant: h, inset: _, ...v } = e;
|
|
13378
13440
|
i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
|
|
@@ -13389,7 +13451,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13389
13451
|
}), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
|
|
13390
13452
|
});
|
|
13391
13453
|
CommandItem.displayName = _e.Item.displayName;
|
|
13392
|
-
var import_compiler_runtime$
|
|
13454
|
+
var import_compiler_runtime$32 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
13393
13455
|
" ": {
|
|
13394
13456
|
marker: "\u2423",
|
|
13395
13457
|
name: "space"
|
|
@@ -13465,7 +13527,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13465
13527
|
}
|
|
13466
13528
|
};
|
|
13467
13529
|
function WhitespaceMarkers(e) {
|
|
13468
|
-
let t = (0, import_compiler_runtime$
|
|
13530
|
+
let t = (0, import_compiler_runtime$32.c)(7), { value: n } = e;
|
|
13469
13531
|
if (!n) return null;
|
|
13470
13532
|
let i;
|
|
13471
13533
|
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
@@ -13480,7 +13542,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13480
13542
|
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
13481
13543
|
}
|
|
13482
13544
|
function SentinelCell(e) {
|
|
13483
|
-
let t = (0, import_compiler_runtime$
|
|
13545
|
+
let t = (0, import_compiler_runtime$32.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
13484
13546
|
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];
|
|
13485
13547
|
let o = a, s;
|
|
13486
13548
|
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];
|
|
@@ -13499,9 +13561,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13499
13561
|
children: h
|
|
13500
13562
|
}), t[11] = f, t[12] = h, t[13] = c, t[14] = _) : _ = t[14], _;
|
|
13501
13563
|
}
|
|
13502
|
-
var import_compiler_runtime$
|
|
13564
|
+
var import_compiler_runtime$31 = require_compiler_runtime();
|
|
13503
13565
|
const MimeCell = (e) => {
|
|
13504
|
-
let t = (0, import_compiler_runtime$
|
|
13566
|
+
let t = (0, import_compiler_runtime$31.c)(6), { value: n } = e, i;
|
|
13505
13567
|
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
13506
13568
|
channel: "output",
|
|
13507
13569
|
data: n.data,
|
|
@@ -16051,7 +16113,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16051
16113
|
],
|
|
16052
16114
|
unknown: []
|
|
16053
16115
|
};
|
|
16054
|
-
var import_compiler_runtime$
|
|
16116
|
+
var import_compiler_runtime$30 = require_compiler_runtime();
|
|
16055
16117
|
function renderFormatOptions(e, t) {
|
|
16056
16118
|
var _a2, _b, _c;
|
|
16057
16119
|
let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
|
|
@@ -16250,7 +16312,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16250
16312
|
}) : null;
|
|
16251
16313
|
}
|
|
16252
16314
|
const ClearFilterMenuItem = (e) => {
|
|
16253
|
-
let t = (0, import_compiler_runtime$
|
|
16315
|
+
let t = (0, import_compiler_runtime$30.c)(5), { column: n } = e, i;
|
|
16254
16316
|
t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
|
|
16255
16317
|
let a;
|
|
16256
16318
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -16280,7 +16342,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16280
16342
|
});
|
|
16281
16343
|
}
|
|
16282
16344
|
const FilterButtons = (e) => {
|
|
16283
|
-
let t = (0, import_compiler_runtime$
|
|
16345
|
+
let t = (0, import_compiler_runtime$30.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
|
|
16284
16346
|
t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
|
|
16285
16347
|
variant: "link",
|
|
16286
16348
|
size: "sm",
|
|
@@ -16736,9 +16798,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16736
16798
|
let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
|
|
16737
16799
|
return e !== t && (a(t), n(e)), i;
|
|
16738
16800
|
};
|
|
16739
|
-
var import_compiler_runtime$
|
|
16801
|
+
var import_compiler_runtime$29 = require_compiler_runtime();
|
|
16740
16802
|
DelayMount = (e) => {
|
|
16741
|
-
let t = (0, import_compiler_runtime$
|
|
16803
|
+
let t = (0, import_compiler_runtime$29.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;
|
|
16742
16804
|
t[0] !== h || t[1] !== f ? (w = {
|
|
16743
16805
|
threshold: f,
|
|
16744
16806
|
root: null,
|
|
@@ -16769,9 +16831,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16769
16831
|
children: J
|
|
16770
16832
|
}), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
|
|
16771
16833
|
};
|
|
16772
|
-
var import_compiler_runtime$
|
|
16834
|
+
var import_compiler_runtime$28 = require_compiler_runtime();
|
|
16773
16835
|
const DatePopover = (e) => {
|
|
16774
|
-
let t = (0, import_compiler_runtime$
|
|
16836
|
+
let t = (0, import_compiler_runtime$28.c)(15), { date: n, type: i, children: a } = e;
|
|
16775
16837
|
if (!n || Number.isNaN(new Date(n).getTime())) return a;
|
|
16776
16838
|
let o;
|
|
16777
16839
|
t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
|
|
@@ -16811,7 +16873,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16811
16873
|
}), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
|
|
16812
16874
|
};
|
|
16813
16875
|
var TimezoneDisplay = (e) => {
|
|
16814
|
-
let t = (0, import_compiler_runtime$
|
|
16876
|
+
let t = (0, import_compiler_runtime$28.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
16815
16877
|
t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
|
|
16816
16878
|
let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
|
|
16817
16879
|
t[2] === s ? c = t[3] : (c = s ? {
|
|
@@ -16887,7 +16949,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16887
16949
|
]
|
|
16888
16950
|
}), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
|
|
16889
16951
|
}, DateDisplay = (e) => {
|
|
16890
|
-
let t = (0, import_compiler_runtime$
|
|
16952
|
+
let t = (0, import_compiler_runtime$28.c)(6), { date: n } = e, i;
|
|
16891
16953
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
16892
16954
|
timeZone: "UTC",
|
|
16893
16955
|
dateStyle: "long"
|
|
@@ -16899,7 +16961,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16899
16961
|
children: o
|
|
16900
16962
|
}), t[4] = o, t[5] = s), s;
|
|
16901
16963
|
}, RelativeTime = (e) => {
|
|
16902
|
-
let t = (0, import_compiler_runtime$
|
|
16964
|
+
let t = (0, import_compiler_runtime$28.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
|
|
16903
16965
|
if (t[0] !== n || t[1] !== i) {
|
|
16904
16966
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
16905
16967
|
bb0: {
|
|
@@ -16951,7 +17013,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16951
17013
|
return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
|
|
16952
17014
|
children: a
|
|
16953
17015
|
}), t[4] = a, t[5] = s), s;
|
|
16954
|
-
}, import_compiler_runtime$
|
|
17016
|
+
}, import_compiler_runtime$27 = require_compiler_runtime(), hashString = (e) => {
|
|
16955
17017
|
let t = 0;
|
|
16956
17018
|
for (let n = 0; n < e.length; n++) {
|
|
16957
17019
|
let i = e.charCodeAt(n);
|
|
@@ -16968,7 +17030,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16968
17030
|
return i;
|
|
16969
17031
|
};
|
|
16970
17032
|
const ChartSkeleton = (e) => {
|
|
16971
|
-
let t = (0, import_compiler_runtime$
|
|
17033
|
+
let t = (0, import_compiler_runtime$27.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
|
|
16972
17034
|
if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
|
|
16973
17035
|
let e2 = generateHeights({
|
|
16974
17036
|
numBars: 9,
|
|
@@ -17347,7 +17409,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17347
17409
|
let c = s / t.length;
|
|
17348
17410
|
return Math.max(c, 1);
|
|
17349
17411
|
}
|
|
17350
|
-
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$
|
|
17412
|
+
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$26;
|
|
17351
17413
|
MAX_BAR_HEIGHT = 20;
|
|
17352
17414
|
BIN_END_EXTENSION_FACTOR = 0.1;
|
|
17353
17415
|
CONCAT_CHART_HEIGHT = 30;
|
|
@@ -17984,11 +18046,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17984
18046
|
}, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
|
|
17985
18047
|
includeCharts: false
|
|
17986
18048
|
})), _a);
|
|
17987
|
-
import_compiler_runtime$
|
|
18049
|
+
import_compiler_runtime$26 = require_compiler_runtime();
|
|
17988
18050
|
ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
17989
18051
|
var batchedLoader = createBatchedLoader();
|
|
17990
18052
|
const TableColumnSummary = (e) => {
|
|
17991
|
-
let t = (0, import_compiler_runtime$
|
|
18053
|
+
let t = (0, import_compiler_runtime$26.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
|
|
17992
18054
|
if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
|
|
17993
18055
|
let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
|
|
17994
18056
|
if (e2) {
|
|
@@ -18199,8 +18261,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18199
18261
|
let a = e.at(-1);
|
|
18200
18262
|
return n.push(a), n;
|
|
18201
18263
|
}
|
|
18202
|
-
var import_compiler_runtime$
|
|
18203
|
-
let t = (0, import_compiler_runtime$
|
|
18264
|
+
var import_compiler_runtime$25 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
18265
|
+
let t = (0, import_compiler_runtime$25.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
|
|
18204
18266
|
if (i) {
|
|
18205
18267
|
let e2;
|
|
18206
18268
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
|
|
@@ -18274,7 +18336,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18274
18336
|
return t.some((e2) => n.has(e2.type));
|
|
18275
18337
|
}
|
|
18276
18338
|
const MarkdownUrlDetector = (e) => {
|
|
18277
|
-
let t = (0, import_compiler_runtime$
|
|
18339
|
+
let t = (0, import_compiler_runtime$25.c)(4), { content: n, parts: i } = e;
|
|
18278
18340
|
if (isMarkdown(n)) {
|
|
18279
18341
|
let e2;
|
|
18280
18342
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
|
|
@@ -18291,7 +18353,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18291
18353
|
url: e2.url
|
|
18292
18354
|
}, t) : e2.value);
|
|
18293
18355
|
var URLAnchor = (e) => {
|
|
18294
|
-
let t = (0, import_compiler_runtime$
|
|
18356
|
+
let t = (0, import_compiler_runtime$25.c)(3), { url: n } = e, i;
|
|
18295
18357
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
|
|
18296
18358
|
let a;
|
|
18297
18359
|
return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
|
|
@@ -18684,10 +18746,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18684
18746
|
maximumFractionDigits: maxFractionalDigits(n)
|
|
18685
18747
|
}).format(e);
|
|
18686
18748
|
};
|
|
18687
|
-
let import_compiler_runtime$
|
|
18688
|
-
import_compiler_runtime$
|
|
18749
|
+
let import_compiler_runtime$24;
|
|
18750
|
+
import_compiler_runtime$24 = require_compiler_runtime();
|
|
18689
18751
|
Table = import_react.forwardRef((e, t) => {
|
|
18690
|
-
let n = (0, import_compiler_runtime$
|
|
18752
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18691
18753
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18692
18754
|
let s;
|
|
18693
18755
|
n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
|
|
@@ -18703,7 +18765,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18703
18765
|
});
|
|
18704
18766
|
Table.displayName = "Table";
|
|
18705
18767
|
TableHeader = import_react.forwardRef((e, t) => {
|
|
18706
|
-
let n = (0, import_compiler_runtime$
|
|
18768
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18707
18769
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18708
18770
|
let s;
|
|
18709
18771
|
n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
|
|
@@ -18716,7 +18778,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18716
18778
|
});
|
|
18717
18779
|
TableHeader.displayName = "TableHeader";
|
|
18718
18780
|
TableBody = import_react.forwardRef((e, t) => {
|
|
18719
|
-
let n = (0, import_compiler_runtime$
|
|
18781
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18720
18782
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18721
18783
|
let s;
|
|
18722
18784
|
n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
|
|
@@ -18729,7 +18791,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18729
18791
|
});
|
|
18730
18792
|
TableBody.displayName = "TableBody";
|
|
18731
18793
|
var TableFooter = import_react.forwardRef((e, t) => {
|
|
18732
|
-
let n = (0, import_compiler_runtime$
|
|
18794
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18733
18795
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18734
18796
|
let s;
|
|
18735
18797
|
n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18742,7 +18804,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18742
18804
|
});
|
|
18743
18805
|
TableFooter.displayName = "TableFooter";
|
|
18744
18806
|
TableRow = import_react.forwardRef((e, t) => {
|
|
18745
|
-
let n = (0, import_compiler_runtime$
|
|
18807
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18746
18808
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18747
18809
|
let s;
|
|
18748
18810
|
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);
|
|
@@ -18755,7 +18817,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18755
18817
|
});
|
|
18756
18818
|
TableRow.displayName = "TableRow";
|
|
18757
18819
|
TableHead = import_react.forwardRef((e, t) => {
|
|
18758
|
-
let n = (0, import_compiler_runtime$
|
|
18820
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18759
18821
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18760
18822
|
let s;
|
|
18761
18823
|
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);
|
|
@@ -18768,7 +18830,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18768
18830
|
});
|
|
18769
18831
|
TableHead.displayName = "TableHead";
|
|
18770
18832
|
TableCell = import_react.forwardRef((e, t) => {
|
|
18771
|
-
let n = (0, import_compiler_runtime$
|
|
18833
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18772
18834
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18773
18835
|
let s;
|
|
18774
18836
|
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);
|
|
@@ -18781,7 +18843,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18781
18843
|
});
|
|
18782
18844
|
TableCell.displayName = "TableCell";
|
|
18783
18845
|
var TableCaption = import_react.forwardRef((e, t) => {
|
|
18784
|
-
let n = (0, import_compiler_runtime$
|
|
18846
|
+
let n = (0, import_compiler_runtime$24.c)(9), i, o;
|
|
18785
18847
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18786
18848
|
let s;
|
|
18787
18849
|
n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18994,7 +19056,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18994
19056
|
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 }) {
|
|
18995
19057
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18996
19058
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18997
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
19059
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, TN = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18998
19060
|
callbacks: {
|
|
18999
19061
|
onCollapse: f,
|
|
19000
19062
|
onExpand: h,
|
|
@@ -19007,7 +19069,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19007
19069
|
maxSize: c,
|
|
19008
19070
|
minSize: d
|
|
19009
19071
|
},
|
|
19010
|
-
id:
|
|
19072
|
+
id: TN,
|
|
19011
19073
|
idIsFromProps: s !== void 0,
|
|
19012
19074
|
order: v
|
|
19013
19075
|
});
|
|
@@ -19017,7 +19079,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19017
19079
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
19018
19080
|
...t2
|
|
19019
19081
|
};
|
|
19020
|
-
$.current.id =
|
|
19082
|
+
$.current.id = TN, $.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);
|
|
19021
19083
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
19022
19084
|
let e2 = $.current;
|
|
19023
19085
|
return q(e2), () => {
|
|
@@ -19025,7 +19087,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19025
19087
|
};
|
|
19026
19088
|
}, [
|
|
19027
19089
|
v,
|
|
19028
|
-
|
|
19090
|
+
TN,
|
|
19029
19091
|
q,
|
|
19030
19092
|
Q
|
|
19031
19093
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -19036,7 +19098,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19036
19098
|
A($.current, e2);
|
|
19037
19099
|
},
|
|
19038
19100
|
getId() {
|
|
19039
|
-
return
|
|
19101
|
+
return TN;
|
|
19040
19102
|
},
|
|
19041
19103
|
getSize() {
|
|
19042
19104
|
return M($.current);
|
|
@@ -19055,24 +19117,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19055
19117
|
A,
|
|
19056
19118
|
M,
|
|
19057
19119
|
U,
|
|
19058
|
-
|
|
19120
|
+
TN,
|
|
19059
19121
|
J
|
|
19060
19122
|
]);
|
|
19061
|
-
let
|
|
19123
|
+
let EN = I($.current, a);
|
|
19062
19124
|
return (0, import_react.createElement)(S, {
|
|
19063
19125
|
...w,
|
|
19064
19126
|
children: e,
|
|
19065
19127
|
className: t,
|
|
19066
|
-
id:
|
|
19128
|
+
id: TN,
|
|
19067
19129
|
style: {
|
|
19068
|
-
...
|
|
19130
|
+
...EN,
|
|
19069
19131
|
...y
|
|
19070
19132
|
},
|
|
19071
19133
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
19072
19134
|
[DATA_ATTRIBUTES.panel]: "",
|
|
19073
19135
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
19074
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
19075
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19136
|
+
[DATA_ATTRIBUTES.panelId]: TN,
|
|
19137
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + EN.flexGrow).toFixed(1)
|
|
19076
19138
|
});
|
|
19077
19139
|
}
|
|
19078
19140
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19845,7 +19907,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19845
19907
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19846
19908
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19847
19909
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19848
|
-
}, []),
|
|
19910
|
+
}, []), TN = (0, import_react.useCallback)((e2, t2) => {
|
|
19849
19911
|
let { panelDataArray: n2 } = K.current;
|
|
19850
19912
|
return computePanelFlexBoxStyle({
|
|
19851
19913
|
defaultSize: t2,
|
|
@@ -19860,10 +19922,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19860
19922
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19861
19923
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19862
19924
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19863
|
-
}, []),
|
|
19925
|
+
}, []), EN = (0, import_react.useCallback)((e2) => {
|
|
19864
19926
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19865
19927
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19866
|
-
}, []),
|
|
19928
|
+
}, []), DN = (0, import_react.useCallback)((e2) => {
|
|
19867
19929
|
let { panelDataArray: t2 } = K.current;
|
|
19868
19930
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19869
19931
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19895,7 +19957,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19895
19957
|
e2.layout = [];
|
|
19896
19958
|
};
|
|
19897
19959
|
}, []);
|
|
19898
|
-
let
|
|
19960
|
+
let ON = (0, import_react.useCallback)((e2) => {
|
|
19899
19961
|
let t2 = false, n2 = y.current;
|
|
19900
19962
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19901
19963
|
n3.preventDefault();
|
|
@@ -19913,7 +19975,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19913
19975
|
}), I2 = !compareLayouts(f2, A2);
|
|
19914
19976
|
(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));
|
|
19915
19977
|
};
|
|
19916
|
-
}, []),
|
|
19978
|
+
}, []), kN = (0, import_react.useCallback)((e2, t2) => {
|
|
19917
19979
|
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);
|
|
19918
19980
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19919
19981
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19925,12 +19987,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19925
19987
|
trigger: "imperative-api"
|
|
19926
19988
|
});
|
|
19927
19989
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19928
|
-
}, []),
|
|
19990
|
+
}, []), AN = (0, import_react.useCallback)((e2, t2) => {
|
|
19929
19991
|
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);
|
|
19930
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19992
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || kN(e2, s2) : h2 < f2 ? kN(e2, f2) : h2 > d2 && kN(e2, d2));
|
|
19931
19993
|
}, [
|
|
19932
|
-
|
|
19933
|
-
]),
|
|
19994
|
+
kN
|
|
19995
|
+
]), jN = (0, import_react.useCallback)((e2, t2) => {
|
|
19934
19996
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19935
19997
|
if (!y.current) return;
|
|
19936
19998
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19942,30 +20004,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19942
20004
|
initialCursorPosition: o2,
|
|
19943
20005
|
initialLayout: i2
|
|
19944
20006
|
});
|
|
19945
|
-
}, []),
|
|
20007
|
+
}, []), MN = (0, import_react.useCallback)(() => {
|
|
19946
20008
|
w(null);
|
|
19947
|
-
}, []),
|
|
20009
|
+
}, []), NN = (0, import_react.useCallback)((e2) => {
|
|
19948
20010
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19949
20011
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19950
20012
|
}, [
|
|
19951
20013
|
A
|
|
19952
|
-
]),
|
|
20014
|
+
]), PN = (0, import_react.useMemo)(() => ({
|
|
19953
20015
|
collapsePanel: q,
|
|
19954
20016
|
direction: i,
|
|
19955
20017
|
dragState: S,
|
|
19956
20018
|
expandPanel: J,
|
|
19957
20019
|
getPanelSize: Q,
|
|
19958
|
-
getPanelStyle:
|
|
20020
|
+
getPanelStyle: TN,
|
|
19959
20021
|
groupId: v,
|
|
19960
20022
|
isPanelCollapsed: $,
|
|
19961
|
-
isPanelExpanded:
|
|
19962
|
-
reevaluatePanelConstraints:
|
|
19963
|
-
registerPanel:
|
|
19964
|
-
registerResizeHandle:
|
|
19965
|
-
resizePanel:
|
|
19966
|
-
startDragging:
|
|
19967
|
-
stopDragging:
|
|
19968
|
-
unregisterPanel:
|
|
20023
|
+
isPanelExpanded: EN,
|
|
20024
|
+
reevaluatePanelConstraints: AN,
|
|
20025
|
+
registerPanel: DN,
|
|
20026
|
+
registerResizeHandle: ON,
|
|
20027
|
+
resizePanel: kN,
|
|
20028
|
+
startDragging: jN,
|
|
20029
|
+
stopDragging: MN,
|
|
20030
|
+
unregisterPanel: NN,
|
|
19969
20031
|
panelGroupElement: y.current
|
|
19970
20032
|
}), [
|
|
19971
20033
|
q,
|
|
@@ -19973,18 +20035,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19973
20035
|
i,
|
|
19974
20036
|
J,
|
|
19975
20037
|
Q,
|
|
19976
|
-
|
|
20038
|
+
TN,
|
|
19977
20039
|
v,
|
|
19978
20040
|
$,
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19987
|
-
]),
|
|
20041
|
+
EN,
|
|
20042
|
+
AN,
|
|
20043
|
+
DN,
|
|
20044
|
+
ON,
|
|
20045
|
+
kN,
|
|
20046
|
+
jN,
|
|
20047
|
+
MN,
|
|
20048
|
+
NN
|
|
20049
|
+
]), FN = {
|
|
19988
20050
|
display: "flex",
|
|
19989
20051
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19990
20052
|
height: "100%",
|
|
@@ -19992,7 +20054,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19992
20054
|
width: "100%"
|
|
19993
20055
|
};
|
|
19994
20056
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19995
|
-
value:
|
|
20057
|
+
value: PN
|
|
19996
20058
|
}, (0, import_react.createElement)(h, {
|
|
19997
20059
|
..._,
|
|
19998
20060
|
children: t,
|
|
@@ -20000,7 +20062,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20000
20062
|
id: o,
|
|
20001
20063
|
ref: y,
|
|
20002
20064
|
style: {
|
|
20003
|
-
...
|
|
20065
|
+
...FN,
|
|
20004
20066
|
...f
|
|
20005
20067
|
},
|
|
20006
20068
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -20077,31 +20139,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20077
20139
|
});
|
|
20078
20140
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20079
20141
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20080
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
20142
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [TN, $] = (0, import_react.useState)(false), [EN, DN] = (0, import_react.useState)(null), ON = (0, import_react.useRef)({
|
|
20081
20143
|
state: J
|
|
20082
20144
|
});
|
|
20083
20145
|
useIsomorphicLayoutEffect$1(() => {
|
|
20084
|
-
|
|
20146
|
+
ON.current.state = J;
|
|
20085
20147
|
}), (0, import_react.useEffect)(() => {
|
|
20086
|
-
if (n)
|
|
20148
|
+
if (n) DN(null);
|
|
20087
20149
|
else {
|
|
20088
20150
|
let e2 = I(q);
|
|
20089
|
-
|
|
20151
|
+
DN(() => e2);
|
|
20090
20152
|
}
|
|
20091
20153
|
}, [
|
|
20092
20154
|
n,
|
|
20093
20155
|
q,
|
|
20094
20156
|
I
|
|
20095
20157
|
]);
|
|
20096
|
-
let
|
|
20158
|
+
let kN = (i == null ? void 0 : i.coarse) ?? 15, AN = (i == null ? void 0 : i.fine) ?? 5;
|
|
20097
20159
|
(0, import_react.useEffect)(() => {
|
|
20098
|
-
if (n ||
|
|
20160
|
+
if (n || EN == null) return;
|
|
20099
20161
|
let e2 = w.current;
|
|
20100
20162
|
assert(e2, "Element ref not attached");
|
|
20101
20163
|
let t2 = false;
|
|
20102
20164
|
return registerResizeHandle(q, e2, A, {
|
|
20103
|
-
coarse:
|
|
20104
|
-
fine:
|
|
20165
|
+
coarse: kN,
|
|
20166
|
+
fine: AN
|
|
20105
20167
|
}, (e3, n2, i2) => {
|
|
20106
20168
|
if (!n2) {
|
|
20107
20169
|
Q("inactive");
|
|
@@ -20115,8 +20177,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20115
20177
|
break;
|
|
20116
20178
|
}
|
|
20117
20179
|
case "move": {
|
|
20118
|
-
let { state: e4 } =
|
|
20119
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
20180
|
+
let { state: e4 } = ON.current;
|
|
20181
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), EN(i2);
|
|
20120
20182
|
break;
|
|
20121
20183
|
}
|
|
20122
20184
|
case "up": {
|
|
@@ -20128,22 +20190,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20128
20190
|
}
|
|
20129
20191
|
});
|
|
20130
20192
|
}, [
|
|
20131
|
-
|
|
20193
|
+
kN,
|
|
20132
20194
|
A,
|
|
20133
20195
|
n,
|
|
20134
|
-
|
|
20196
|
+
AN,
|
|
20135
20197
|
I,
|
|
20136
20198
|
q,
|
|
20137
|
-
|
|
20199
|
+
EN,
|
|
20138
20200
|
z,
|
|
20139
20201
|
U
|
|
20140
20202
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20141
20203
|
disabled: n,
|
|
20142
20204
|
handleId: q,
|
|
20143
|
-
resizeHandler:
|
|
20205
|
+
resizeHandler: EN,
|
|
20144
20206
|
panelGroupElement: K
|
|
20145
20207
|
});
|
|
20146
|
-
let
|
|
20208
|
+
let jN = {
|
|
20147
20209
|
touchAction: "none",
|
|
20148
20210
|
userSelect: "none"
|
|
20149
20211
|
};
|
|
@@ -20161,22 +20223,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20161
20223
|
ref: w,
|
|
20162
20224
|
role: "separator",
|
|
20163
20225
|
style: {
|
|
20164
|
-
...
|
|
20226
|
+
...jN,
|
|
20165
20227
|
..._
|
|
20166
20228
|
},
|
|
20167
20229
|
tabIndex: v,
|
|
20168
20230
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20169
20231
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20170
20232
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20171
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20233
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : TN ? "keyboard" : void 0,
|
|
20172
20234
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20173
20235
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20174
20236
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
20175
20237
|
});
|
|
20176
20238
|
}
|
|
20177
20239
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
20178
|
-
let import_compiler_runtime$
|
|
20179
|
-
import_compiler_runtime$
|
|
20240
|
+
let import_compiler_runtime$23, toggleVariants;
|
|
20241
|
+
import_compiler_runtime$23 = require_compiler_runtime();
|
|
20180
20242
|
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"), {
|
|
20181
20243
|
variants: {
|
|
20182
20244
|
variant: {
|
|
@@ -20196,7 +20258,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20196
20258
|
}
|
|
20197
20259
|
});
|
|
20198
20260
|
Toggle = import_react.forwardRef((e, t) => {
|
|
20199
|
-
let n = (0, import_compiler_runtime$
|
|
20261
|
+
let n = (0, import_compiler_runtime$23.c)(13), i, o, s, c;
|
|
20200
20262
|
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);
|
|
20201
20263
|
let d;
|
|
20202
20264
|
n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
|
|
@@ -20223,14 +20285,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20223
20285
|
contextAwarePanelOpen = atom(false);
|
|
20224
20286
|
atom(false);
|
|
20225
20287
|
isCellAwareAtom = atom(false);
|
|
20226
|
-
var import_compiler_runtime$
|
|
20288
|
+
var import_compiler_runtime$22 = require_compiler_runtime();
|
|
20227
20289
|
let CellHoverTemplateFeature;
|
|
20228
20290
|
PANEL_TYPES = {
|
|
20229
20291
|
ROW_VIEWER: "row-viewer",
|
|
20230
20292
|
COLUMN_EXPLORER: "column-explorer"
|
|
20231
20293
|
};
|
|
20232
20294
|
ContextAwarePanelItem = (e) => {
|
|
20233
|
-
let t = (0, import_compiler_runtime$
|
|
20295
|
+
let t = (0, import_compiler_runtime$22.c)(2), { children: n } = e, i;
|
|
20234
20296
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
20235
20297
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
20236
20298
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -20326,159 +20388,159 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20326
20388
|
e.getCanCopy = () => t.options.enableCopyColumn ?? false;
|
|
20327
20389
|
}
|
|
20328
20390
|
};
|
|
20329
|
-
var import_compiler_runtime$
|
|
20391
|
+
var import_compiler_runtime$21 = require_compiler_runtime();
|
|
20330
20392
|
let ComboboxContext;
|
|
20331
20393
|
ComboboxContext = (0, import_react.createContext)({
|
|
20332
20394
|
isSelected: () => false,
|
|
20333
20395
|
onSelect: Functions.NOOP
|
|
20334
20396
|
});
|
|
20335
20397
|
Combobox = (e) => {
|
|
20336
|
-
let t = (0, import_compiler_runtime$
|
|
20398
|
+
let t = (0, import_compiler_runtime$21.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20337
20399
|
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);
|
|
20338
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20339
|
-
t[23] !== v || t[24] !== w || t[25] !==
|
|
20400
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, TN = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, EN = K === void 0 ? false : K, DN = s ?? false, ON;
|
|
20401
|
+
t[23] !== v || t[24] !== w || t[25] !== DN ? (ON = {
|
|
20340
20402
|
prop: w,
|
|
20341
|
-
defaultProp:
|
|
20403
|
+
defaultProp: DN,
|
|
20342
20404
|
onChange: v
|
|
20343
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20344
|
-
let [
|
|
20345
|
-
t[27] === S ?
|
|
20405
|
+
}, t[23] = v, t[24] = w, t[25] = DN, t[26] = ON) : ON = t[26];
|
|
20406
|
+
let [kN, AN] = useControllableState(ON), jN = kN === void 0 ? false : kN, MN;
|
|
20407
|
+
t[27] === S ? MN = t[28] : (MN = (e2) => {
|
|
20346
20408
|
S == null ? void 0 : S(e2);
|
|
20347
|
-
}, t[27] = S, t[28] =
|
|
20348
|
-
let
|
|
20349
|
-
t[29] !== c || t[30] !==
|
|
20409
|
+
}, t[27] = S, t[28] = MN);
|
|
20410
|
+
let NN;
|
|
20411
|
+
t[29] !== c || t[30] !== MN || t[31] !== q ? (NN = {
|
|
20350
20412
|
prop: q,
|
|
20351
20413
|
defaultProp: c,
|
|
20352
|
-
onChange:
|
|
20353
|
-
}, t[29] = c, t[30] =
|
|
20354
|
-
let [
|
|
20355
|
-
t[33] ===
|
|
20356
|
-
let
|
|
20357
|
-
t[35] !== _ || t[36] !== J || t[37] !==
|
|
20414
|
+
onChange: MN
|
|
20415
|
+
}, t[29] = c, t[30] = MN, t[31] = q, t[32] = NN) : NN = t[32];
|
|
20416
|
+
let [FN, IN] = useControllableState(NN), LN;
|
|
20417
|
+
t[33] === FN ? LN = t[34] : (LN = (e2) => Array.isArray(FN) ? FN.includes(e2) : FN === e2, t[33] = FN, t[34] = LN);
|
|
20418
|
+
let RN = LN, zN;
|
|
20419
|
+
t[35] !== _ || t[36] !== J || t[37] !== AN || t[38] !== IN || t[39] !== FN ? (zN = (e2) => {
|
|
20358
20420
|
let t2 = e2;
|
|
20359
|
-
if (J) if (Array.isArray(
|
|
20360
|
-
let n2 =
|
|
20421
|
+
if (J) if (Array.isArray(FN)) if (FN.includes(t2)) {
|
|
20422
|
+
let n2 = FN.filter((t3) => t3 !== e2);
|
|
20361
20423
|
t2 = n2.length > 0 ? n2 : [];
|
|
20362
20424
|
} else t2 = [
|
|
20363
|
-
...
|
|
20425
|
+
...FN,
|
|
20364
20426
|
t2
|
|
20365
20427
|
];
|
|
20366
20428
|
else t2 = [
|
|
20367
20429
|
t2
|
|
20368
20430
|
];
|
|
20369
|
-
else
|
|
20370
|
-
|
|
20371
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20372
|
-
let
|
|
20373
|
-
t[41] !==
|
|
20374
|
-
let
|
|
20375
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20376
|
-
let
|
|
20377
|
-
t[48] === o ?
|
|
20378
|
-
let
|
|
20379
|
-
t[50] ===
|
|
20380
|
-
let
|
|
20381
|
-
t[52] ===
|
|
20431
|
+
else FN === e2 && (t2 = null);
|
|
20432
|
+
IN(t2), (_ ?? J) || AN(false);
|
|
20433
|
+
}, t[35] = _, t[36] = J, t[37] = AN, t[38] = IN, t[39] = FN, t[40] = zN) : zN = t[40];
|
|
20434
|
+
let BN = zN, VN;
|
|
20435
|
+
t[41] !== EN || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== FN ? (VN = () => J && EN && E ? E : FN == null ? E ?? "--" : Array.isArray(FN) ? FN.length === 0 ? E ?? "--" : FN.length === 1 && d !== void 0 ? d(FN[0]) : `${FN.length} selected` : d === void 0 ? E ?? "--" : d(FN), t[41] = EN, t[42] = d, t[43] = J, t[44] = E, t[45] = FN, t[46] = VN) : VN = t[46];
|
|
20436
|
+
let HN = VN, UN;
|
|
20437
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UN = cn("relative"), t[47] = UN) : UN = t[47];
|
|
20438
|
+
let WN;
|
|
20439
|
+
t[48] === o ? WN = t[49] : (WN = 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] = WN);
|
|
20440
|
+
let GN;
|
|
20441
|
+
t[50] === HN ? GN = t[51] : (GN = HN(), t[50] = HN, t[51] = GN);
|
|
20442
|
+
let KN;
|
|
20443
|
+
t[52] === GN ? KN = t[53] : (KN = (0, import_jsx_runtime.jsx)("span", {
|
|
20382
20444
|
className: "truncate flex-1 min-w-0",
|
|
20383
|
-
children:
|
|
20384
|
-
}), t[52] =
|
|
20385
|
-
let
|
|
20386
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20445
|
+
children: GN
|
|
20446
|
+
}), t[52] = GN, t[53] = KN);
|
|
20447
|
+
let JN;
|
|
20448
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20387
20449
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20388
|
-
}), t[54] =
|
|
20389
|
-
let
|
|
20390
|
-
t[55] !== h || t[56] !==
|
|
20450
|
+
}), t[54] = JN) : JN = t[54];
|
|
20451
|
+
let YN;
|
|
20452
|
+
t[55] !== h || t[56] !== jN || t[57] !== WN || t[58] !== KN ? (YN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20391
20453
|
asChild: true,
|
|
20392
20454
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20393
20455
|
id: h,
|
|
20394
|
-
className:
|
|
20395
|
-
"aria-expanded":
|
|
20456
|
+
className: WN,
|
|
20457
|
+
"aria-expanded": jN,
|
|
20396
20458
|
children: [
|
|
20397
|
-
|
|
20398
|
-
|
|
20459
|
+
KN,
|
|
20460
|
+
JN
|
|
20399
20461
|
]
|
|
20400
20462
|
})
|
|
20401
|
-
}), t[55] = h, t[56] =
|
|
20402
|
-
let
|
|
20403
|
-
t[60] !==
|
|
20404
|
-
placeholder:
|
|
20463
|
+
}), t[55] = h, t[56] = jN, t[57] = WN, t[58] = KN, t[59] = YN) : YN = t[59];
|
|
20464
|
+
let ZN;
|
|
20465
|
+
t[60] !== TN || t[61] !== y || t[62] !== A ? (ZN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20466
|
+
placeholder: TN,
|
|
20405
20467
|
rootClassName: "px-1 h-8",
|
|
20406
20468
|
autoFocus: true,
|
|
20407
20469
|
value: A,
|
|
20408
20470
|
onValueChange: y
|
|
20409
|
-
}), t[60] =
|
|
20410
|
-
let
|
|
20411
|
-
t[64] === $ ?
|
|
20471
|
+
}), t[60] = TN, t[61] = y, t[62] = A, t[63] = ZN) : ZN = t[63];
|
|
20472
|
+
let QN;
|
|
20473
|
+
t[64] === $ ? QN = t[65] : (QN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20412
20474
|
children: $
|
|
20413
|
-
}), t[64] = $, t[65] =
|
|
20414
|
-
let
|
|
20415
|
-
t[66] !==
|
|
20416
|
-
isSelected:
|
|
20417
|
-
onSelect:
|
|
20418
|
-
}, t[66] =
|
|
20419
|
-
let
|
|
20420
|
-
t[69] !== n || t[70] !==
|
|
20421
|
-
value:
|
|
20475
|
+
}), t[64] = $, t[65] = QN);
|
|
20476
|
+
let $N;
|
|
20477
|
+
t[66] !== BN || t[67] !== RN ? ($N = {
|
|
20478
|
+
isSelected: RN,
|
|
20479
|
+
onSelect: BN
|
|
20480
|
+
}, t[66] = BN, t[67] = RN, t[68] = $N) : $N = t[68];
|
|
20481
|
+
let eP;
|
|
20482
|
+
t[69] !== n || t[70] !== $N ? (eP = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20483
|
+
value: $N,
|
|
20422
20484
|
children: n
|
|
20423
|
-
}), t[69] = n, t[70] =
|
|
20424
|
-
let
|
|
20425
|
-
t[72] !==
|
|
20485
|
+
}), t[69] = n, t[70] = $N, t[71] = eP) : eP = t[71];
|
|
20486
|
+
let tP;
|
|
20487
|
+
t[72] !== QN || t[73] !== eP ? (tP = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20426
20488
|
className: "max-h-60 py-.5",
|
|
20427
20489
|
children: [
|
|
20428
|
-
|
|
20429
|
-
|
|
20490
|
+
QN,
|
|
20491
|
+
eP
|
|
20430
20492
|
]
|
|
20431
|
-
}), t[72] =
|
|
20432
|
-
let
|
|
20433
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20493
|
+
}), t[72] = QN, t[73] = eP, t[74] = tP) : tP = t[74];
|
|
20494
|
+
let nP;
|
|
20495
|
+
t[75] !== f || t[76] !== Q || t[77] !== ZN || t[78] !== tP ? (nP = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20434
20496
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20435
20497
|
align: "start",
|
|
20436
20498
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20437
20499
|
filter: f,
|
|
20438
20500
|
shouldFilter: Q,
|
|
20439
20501
|
children: [
|
|
20440
|
-
|
|
20441
|
-
|
|
20502
|
+
ZN,
|
|
20503
|
+
tP
|
|
20442
20504
|
]
|
|
20443
20505
|
})
|
|
20444
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20445
|
-
let
|
|
20446
|
-
t[80] !==
|
|
20447
|
-
open:
|
|
20448
|
-
onOpenChange:
|
|
20506
|
+
}), t[75] = f, t[76] = Q, t[77] = ZN, t[78] = tP, t[79] = nP) : nP = t[79];
|
|
20507
|
+
let rP;
|
|
20508
|
+
t[80] !== jN || t[81] !== AN || t[82] !== YN || t[83] !== nP ? (rP = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20509
|
+
open: jN,
|
|
20510
|
+
onOpenChange: AN,
|
|
20449
20511
|
children: [
|
|
20450
|
-
|
|
20451
|
-
|
|
20512
|
+
YN,
|
|
20513
|
+
nP
|
|
20452
20514
|
]
|
|
20453
|
-
}), t[80] =
|
|
20454
|
-
let
|
|
20455
|
-
t[85] !==
|
|
20515
|
+
}), t[80] = jN, t[81] = AN, t[82] = YN, t[83] = nP, t[84] = rP) : rP = t[84];
|
|
20516
|
+
let iP;
|
|
20517
|
+
t[85] !== EN || t[86] !== i || t[87] !== d || t[88] !== BN || t[89] !== J || t[90] !== FN ? (iP = J && EN && (0, import_jsx_runtime.jsx)("div", {
|
|
20456
20518
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20457
|
-
children: Array.isArray(
|
|
20519
|
+
children: Array.isArray(FN) && FN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20458
20520
|
variant: "secondary",
|
|
20459
20521
|
children: [
|
|
20460
20522
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20461
20523
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20462
20524
|
onClick: () => {
|
|
20463
|
-
|
|
20525
|
+
BN(e2);
|
|
20464
20526
|
},
|
|
20465
20527
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20466
20528
|
})
|
|
20467
20529
|
]
|
|
20468
20530
|
}, String(e2)))
|
|
20469
|
-
}), t[85] =
|
|
20470
|
-
let
|
|
20471
|
-
return t[92] !== O || t[93] !==
|
|
20472
|
-
className:
|
|
20531
|
+
}), t[85] = EN, t[86] = i, t[87] = d, t[88] = BN, t[89] = J, t[90] = FN, t[91] = iP) : iP = t[91];
|
|
20532
|
+
let aP;
|
|
20533
|
+
return t[92] !== O || t[93] !== rP || t[94] !== iP ? (aP = (0, import_jsx_runtime.jsxs)("div", {
|
|
20534
|
+
className: UN,
|
|
20473
20535
|
...O,
|
|
20474
20536
|
children: [
|
|
20475
|
-
|
|
20476
|
-
|
|
20537
|
+
rP,
|
|
20538
|
+
iP
|
|
20477
20539
|
]
|
|
20478
|
-
}), t[92] = O, t[93] =
|
|
20540
|
+
}), t[92] = O, t[93] = rP, t[94] = iP, t[95] = aP) : aP = t[95], aP;
|
|
20479
20541
|
};
|
|
20480
20542
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20481
|
-
let n = (0, import_compiler_runtime$
|
|
20543
|
+
let n = (0, import_compiler_runtime$21.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), _;
|
|
20482
20544
|
n[0] === o ? _ = n[1] : (_ = cn("pl-6 m-1 py-1", o), n[0] = o, n[1] = _);
|
|
20483
20545
|
let v;
|
|
20484
20546
|
n[2] !== h || n[3] !== c || n[4] !== s ? (v = () => {
|
|
@@ -21016,9 +21078,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21016
21078
|
...e
|
|
21017
21079
|
];
|
|
21018
21080
|
}
|
|
21019
|
-
var import_compiler_runtime$
|
|
21081
|
+
var import_compiler_runtime$20 = require_compiler_runtime();
|
|
21020
21082
|
function useScrollContainerHeight(e) {
|
|
21021
|
-
let t = (0, import_compiler_runtime$
|
|
21083
|
+
let t = (0, import_compiler_runtime$20.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
|
|
21022
21084
|
t[0] !== n || t[1] !== i ? (o = () => {
|
|
21023
21085
|
if (!a.current) return;
|
|
21024
21086
|
let e2 = a.current.parentElement;
|
|
@@ -21615,9 +21677,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21615
21677
|
var _a2;
|
|
21616
21678
|
window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
|
|
21617
21679
|
};
|
|
21618
|
-
var import_compiler_runtime$
|
|
21680
|
+
var import_compiler_runtime$19 = require_compiler_runtime();
|
|
21619
21681
|
const CellSelectionProvider = (e) => {
|
|
21620
|
-
let t = (0, import_compiler_runtime$
|
|
21682
|
+
let t = (0, import_compiler_runtime$19.c)(3), { children: n } = e, i;
|
|
21621
21683
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
|
|
21622
21684
|
cellSelectionStateAtom
|
|
21623
21685
|
], t[0] = i) : i = t[0];
|
|
@@ -22172,8 +22234,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22172
22234
|
...e
|
|
22173
22235
|
});
|
|
22174
22236
|
}
|
|
22175
|
-
var import_compiler_runtime$
|
|
22176
|
-
let n = (0, import_compiler_runtime$
|
|
22237
|
+
var import_compiler_runtime$18 = require_compiler_runtime(), ContextMenu = Root2$2, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
|
|
22238
|
+
let n = (0, import_compiler_runtime$18.c)(14), i, a, o, s;
|
|
22177
22239
|
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);
|
|
22178
22240
|
let c;
|
|
22179
22241
|
n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
|
|
@@ -22197,7 +22259,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22197
22259
|
});
|
|
22198
22260
|
ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
|
|
22199
22261
|
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) => {
|
|
22200
|
-
let n = (0, import_compiler_runtime$
|
|
22262
|
+
let n = (0, import_compiler_runtime$18.c)(9), i, o;
|
|
22201
22263
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
22202
22264
|
let s;
|
|
22203
22265
|
n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
|
|
@@ -22212,7 +22274,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22212
22274
|
});
|
|
22213
22275
|
ContextMenuSubContent.displayName = SubContent2.displayName;
|
|
22214
22276
|
var ContextMenuContent = import_react.forwardRef((e, t) => {
|
|
22215
|
-
let n = (0, import_compiler_runtime$
|
|
22277
|
+
let n = (0, import_compiler_runtime$18.c)(15), i, o, s;
|
|
22216
22278
|
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);
|
|
22217
22279
|
let c = s === void 0 ? true : s, d;
|
|
22218
22280
|
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];
|
|
@@ -22235,7 +22297,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22235
22297
|
});
|
|
22236
22298
|
ContextMenuContent.displayName = Content2.displayName;
|
|
22237
22299
|
var ContextMenuItem = import_react.forwardRef((e, t) => {
|
|
22238
|
-
let n = (0, import_compiler_runtime$
|
|
22300
|
+
let n = (0, import_compiler_runtime$18.c)(13), i, a, o, s;
|
|
22239
22301
|
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);
|
|
22240
22302
|
let c;
|
|
22241
22303
|
n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
|
|
@@ -22252,7 +22314,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22252
22314
|
});
|
|
22253
22315
|
ContextMenuItem.displayName = Item2$1.displayName;
|
|
22254
22316
|
var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
|
|
22255
|
-
let n = (0, import_compiler_runtime$
|
|
22317
|
+
let n = (0, import_compiler_runtime$18.c)(15), i, a, o, s;
|
|
22256
22318
|
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);
|
|
22257
22319
|
let c;
|
|
22258
22320
|
n[5] === o ? c = n[6] : (c = menuControlVariants({
|
|
@@ -22283,7 +22345,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22283
22345
|
});
|
|
22284
22346
|
ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
|
|
22285
22347
|
var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
|
|
22286
|
-
let n = (0, import_compiler_runtime$
|
|
22348
|
+
let n = (0, import_compiler_runtime$18.c)(13), i, a, o;
|
|
22287
22349
|
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);
|
|
22288
22350
|
let s;
|
|
22289
22351
|
n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
|
|
@@ -22313,7 +22375,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22313
22375
|
});
|
|
22314
22376
|
ContextMenuRadioItem.displayName = RadioItem2.displayName;
|
|
22315
22377
|
var ContextMenuLabel = import_react.forwardRef((e, t) => {
|
|
22316
|
-
let n = (0, import_compiler_runtime$
|
|
22378
|
+
let n = (0, import_compiler_runtime$18.c)(11), i, a, o;
|
|
22317
22379
|
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);
|
|
22318
22380
|
let s;
|
|
22319
22381
|
n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
|
|
@@ -22329,7 +22391,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22329
22391
|
});
|
|
22330
22392
|
ContextMenuLabel.displayName = Label2.displayName;
|
|
22331
22393
|
var ContextMenuSeparator = import_react.forwardRef((e, t) => {
|
|
22332
|
-
let n = (0, import_compiler_runtime$
|
|
22394
|
+
let n = (0, import_compiler_runtime$18.c)(9), i, o;
|
|
22333
22395
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
22334
22396
|
let s;
|
|
22335
22397
|
n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
|
|
@@ -22343,9 +22405,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22343
22405
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
22344
22406
|
});
|
|
22345
22407
|
ContextMenuSeparator.displayName = Separator2.displayName;
|
|
22346
|
-
var import_compiler_runtime$
|
|
22408
|
+
var import_compiler_runtime$17 = require_compiler_runtime();
|
|
22347
22409
|
const DataTableContextMenu = (e) => {
|
|
22348
|
-
let t = (0, import_compiler_runtime$
|
|
22410
|
+
let t = (0, import_compiler_runtime$17.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
|
|
22349
22411
|
t[0] !== i || t[1] !== o ? (c = (e2) => {
|
|
22350
22412
|
var _a2;
|
|
22351
22413
|
let t2 = i.current;
|
|
@@ -22445,9 +22507,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22445
22507
|
]
|
|
22446
22508
|
});
|
|
22447
22509
|
};
|
|
22448
|
-
var import_compiler_runtime$
|
|
22510
|
+
var import_compiler_runtime$16 = require_compiler_runtime();
|
|
22449
22511
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
22450
|
-
let t = (0, import_compiler_runtime$
|
|
22512
|
+
let t = (0, import_compiler_runtime$16.c)(9), { cellId: n, className: i } = e, o;
|
|
22451
22513
|
t[0] === n ? o = t[1] : (o = createCellStateAtom(n), t[0] = n, t[1] = o);
|
|
22452
22514
|
let { isSelected: s, isCopied: c } = useAtomValue(o);
|
|
22453
22515
|
if (!s && !c) return null;
|
|
@@ -22460,9 +22522,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22460
22522
|
}), t[6] = n, t[7] = h, t[8] = _) : _ = t[8], _;
|
|
22461
22523
|
});
|
|
22462
22524
|
CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
|
|
22463
|
-
var import_compiler_runtime$
|
|
22525
|
+
var import_compiler_runtime$15 = require_compiler_runtime();
|
|
22464
22526
|
const useCellRangeSelection = (e) => {
|
|
22465
|
-
let t = (0, import_compiler_runtime$
|
|
22527
|
+
let t = (0, import_compiler_runtime$15.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
|
|
22466
22528
|
t[0] !== i || t[1] !== n ? (a = () => {
|
|
22467
22529
|
i.handleCopy({
|
|
22468
22530
|
table: n,
|
|
@@ -22569,9 +22631,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22569
22631
|
}
|
|
22570
22632
|
return false;
|
|
22571
22633
|
}
|
|
22572
|
-
var import_compiler_runtime$
|
|
22634
|
+
var import_compiler_runtime$14 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
|
|
22573
22635
|
function useScrollIntoViewOnFocus(e) {
|
|
22574
|
-
let t = (0, import_compiler_runtime$
|
|
22636
|
+
let t = (0, import_compiler_runtime$14.c)(2), i;
|
|
22575
22637
|
t[0] === e ? i = t[1] : (i = (t2) => {
|
|
22576
22638
|
(t2 == null ? void 0 : t2.cellId) && setTimeout(() => {
|
|
22577
22639
|
var _a2;
|
|
@@ -23095,9 +23157,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23095
23157
|
e === "too_many" ? "Unknown" : prettifyRowCount(e, n),
|
|
23096
23158
|
`${prettyNumber(t, n)} ${new PluralWord("column").pluralize(t)}`
|
|
23097
23159
|
].join(", ");
|
|
23098
|
-
var import_compiler_runtime$
|
|
23160
|
+
var import_compiler_runtime$13 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
|
|
23099
23161
|
const CellSelectionStats = (e) => {
|
|
23100
|
-
let t = (0, import_compiler_runtime$
|
|
23162
|
+
let t = (0, import_compiler_runtime$13.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
|
|
23101
23163
|
if (c < 2) {
|
|
23102
23164
|
let e2;
|
|
23103
23165
|
t[0] === i ? e2 = t[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", i), t[0] = i, t[1] = e2);
|
|
@@ -23140,7 +23202,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23140
23202
|
var formatNumber = (e, t) => e.toLocaleString(t, {
|
|
23141
23203
|
maximumFractionDigits: MAX_FRACTION_DIGITS
|
|
23142
23204
|
}), StatSpan = (e) => {
|
|
23143
|
-
let t = (0, import_compiler_runtime$
|
|
23205
|
+
let t = (0, import_compiler_runtime$13.c)(6), { name: n, value: i, locale: a } = e, o;
|
|
23144
23206
|
t[0] !== a || t[1] !== i ? (o = formatNumber(i, a), t[0] = a, t[1] = i, t[2] = o) : o = t[2];
|
|
23145
23207
|
let s;
|
|
23146
23208
|
return t[3] !== n || t[4] !== o ? (s = (0, import_jsx_runtime.jsxs)("span", {
|
|
@@ -23151,14 +23213,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23151
23213
|
]
|
|
23152
23214
|
}), t[3] = n, t[4] = o, t[5] = s) : s = t[5], s;
|
|
23153
23215
|
}, CountStat = (e) => {
|
|
23154
|
-
let t = (0, import_compiler_runtime$
|
|
23216
|
+
let t = (0, import_compiler_runtime$13.c)(3), { count: n, locale: i } = e, a;
|
|
23155
23217
|
return t[0] !== n || t[1] !== i ? (a = (0, import_jsx_runtime.jsx)(StatSpan, {
|
|
23156
23218
|
name: "Count",
|
|
23157
23219
|
value: n,
|
|
23158
23220
|
locale: i
|
|
23159
23221
|
}), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
23160
23222
|
}, SumStat = (e) => {
|
|
23161
|
-
let t = (0, import_compiler_runtime$
|
|
23223
|
+
let t = (0, import_compiler_runtime$13.c)(6), { numericValues: n, locale: i } = e;
|
|
23162
23224
|
if (n.length === 0) return null;
|
|
23163
23225
|
let a, o;
|
|
23164
23226
|
if (t[0] !== n) {
|
|
@@ -23172,7 +23234,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23172
23234
|
locale: i
|
|
23173
23235
|
}), t[3] = i, t[4] = s, t[5] = c) : c = t[5], c;
|
|
23174
23236
|
}, AverageStat = (e) => {
|
|
23175
|
-
let t = (0, import_compiler_runtime$
|
|
23237
|
+
let t = (0, import_compiler_runtime$13.c)(5), { numericValues: n, locale: i } = e;
|
|
23176
23238
|
if (n.length === 0) return null;
|
|
23177
23239
|
let a = n.reduce(_temp2$2, 0) / n.length, o;
|
|
23178
23240
|
t[0] === a ? o = t[1] : (o = a.toFixed(MAX_FRACTION_DIGITS), t[0] = a, t[1] = o);
|
|
@@ -23323,6 +23385,107 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23323
23385
|
},
|
|
23324
23386
|
replace: (e, t) => e.endsWith(`.${t}`) ? e : `${Filenames.withoutExtension(e)}.${t}`
|
|
23325
23387
|
};
|
|
23388
|
+
let ProgressState, import_compiler_runtime$12;
|
|
23389
|
+
ProgressState = class e {
|
|
23390
|
+
constructor(e2) {
|
|
23391
|
+
__publicField(this, "progress", 0);
|
|
23392
|
+
__publicField(this, "listeners", /* @__PURE__ */ new Set());
|
|
23393
|
+
this.total = e2;
|
|
23394
|
+
}
|
|
23395
|
+
static indeterminate() {
|
|
23396
|
+
return new e("indeterminate");
|
|
23397
|
+
}
|
|
23398
|
+
addTotal(e2) {
|
|
23399
|
+
this.total === "indeterminate" ? this.total = e2 : this.total += e2, this.notifyListeners();
|
|
23400
|
+
}
|
|
23401
|
+
increment(e2) {
|
|
23402
|
+
this.progress += e2, this.notifyListeners();
|
|
23403
|
+
}
|
|
23404
|
+
getProgress() {
|
|
23405
|
+
return this.total === "indeterminate" ? "indeterminate" : this.progress / this.total * 100;
|
|
23406
|
+
}
|
|
23407
|
+
subscribe(e2) {
|
|
23408
|
+
return this.listeners.add(e2), () => {
|
|
23409
|
+
this.listeners.delete(e2);
|
|
23410
|
+
};
|
|
23411
|
+
}
|
|
23412
|
+
notifyListeners() {
|
|
23413
|
+
let e2 = this.getProgress();
|
|
23414
|
+
for (let t of this.listeners) t(e2);
|
|
23415
|
+
}
|
|
23416
|
+
};
|
|
23417
|
+
import_compiler_runtime$12 = require_compiler_runtime();
|
|
23418
|
+
Progress = import_react.forwardRef((e, t) => {
|
|
23419
|
+
let n = (0, import_compiler_runtime$12.c)(20), i, o, s, c;
|
|
23420
|
+
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, value: c, indeterminate: o, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
23421
|
+
let d;
|
|
23422
|
+
n[5] === i ? d = n[6] : (d = cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", i), n[5] = i, n[6] = d);
|
|
23423
|
+
let f = o ? "w-1/3 animate-progress-indeterminate" : "w-full transition-transform duration-300 ease-out", h;
|
|
23424
|
+
n[7] === f ? h = n[8] : (h = cn("h-full flex-1 bg-primary", f), n[7] = f, n[8] = h);
|
|
23425
|
+
let _;
|
|
23426
|
+
n[9] !== o || n[10] !== c ? (_ = o ? void 0 : {
|
|
23427
|
+
transform: `translateX(-${100 - (c || 0)}%)`
|
|
23428
|
+
}, n[9] = o, n[10] = c, n[11] = _) : _ = n[11];
|
|
23429
|
+
let v;
|
|
23430
|
+
n[12] !== h || n[13] !== _ ? (v = (0, import_jsx_runtime.jsx)(Indicator$1, {
|
|
23431
|
+
className: h,
|
|
23432
|
+
style: _
|
|
23433
|
+
}), n[12] = h, n[13] = _, n[14] = v) : v = n[14];
|
|
23434
|
+
let y;
|
|
23435
|
+
return n[15] !== s || n[16] !== t || n[17] !== d || n[18] !== v ? (y = (0, import_jsx_runtime.jsx)(Root$1, {
|
|
23436
|
+
ref: t,
|
|
23437
|
+
className: d,
|
|
23438
|
+
...s,
|
|
23439
|
+
children: v
|
|
23440
|
+
}), n[15] = s, n[16] = t, n[17] = d, n[18] = v, n[19] = y) : y = n[19], y;
|
|
23441
|
+
});
|
|
23442
|
+
Progress.displayName = Root$1.displayName;
|
|
23443
|
+
var import_compiler_runtime$11 = require_compiler_runtime();
|
|
23444
|
+
const ToastProgress = (e) => {
|
|
23445
|
+
let t = (0, import_compiler_runtime$11.c)(13), { progress: n, showPercentage: i } = e, a = i === void 0 ? false : i, o, s;
|
|
23446
|
+
t[0] === n ? (o = t[1], s = t[2]) : (o = (e2) => n.subscribe(e2), s = () => n.getProgress(), t[0] = n, t[1] = o, t[2] = s);
|
|
23447
|
+
let c = (0, import_react.useSyncExternalStore)(o, s), d = c === "indeterminate" || c === 100, f = d ? void 0 : c, h;
|
|
23448
|
+
t[3] !== d || t[4] !== f ? (h = (0, import_jsx_runtime.jsx)(Progress, {
|
|
23449
|
+
value: f,
|
|
23450
|
+
indeterminate: d
|
|
23451
|
+
}), t[3] = d, t[4] = f, t[5] = h) : h = t[5];
|
|
23452
|
+
let _;
|
|
23453
|
+
t[6] !== d || t[7] !== a || t[8] !== c ? (_ = !d && a && (0, import_jsx_runtime.jsxs)("div", {
|
|
23454
|
+
className: "mt-1 text-xs text-muted-foreground text-right",
|
|
23455
|
+
children: [
|
|
23456
|
+
Math.round(c),
|
|
23457
|
+
"%"
|
|
23458
|
+
]
|
|
23459
|
+
}), t[6] = d, t[7] = a, t[8] = c, t[9] = _) : _ = t[9];
|
|
23460
|
+
let v;
|
|
23461
|
+
return t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
|
+
className: "mt-2 w-full min-w-[200px]",
|
|
23463
|
+
children: [
|
|
23464
|
+
h,
|
|
23465
|
+
_
|
|
23466
|
+
]
|
|
23467
|
+
}), t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
|
|
23468
|
+
};
|
|
23469
|
+
var FINISH_TOAST_DURATION_MS = 1200;
|
|
23470
|
+
async function withLoadingToast(e, t, n) {
|
|
23471
|
+
let i = ProgressState.indeterminate(), a = toast({
|
|
23472
|
+
title: e,
|
|
23473
|
+
description: import_react.createElement(ToastProgress, {
|
|
23474
|
+
progress: i
|
|
23475
|
+
}),
|
|
23476
|
+
duration: Infinity
|
|
23477
|
+
});
|
|
23478
|
+
try {
|
|
23479
|
+
let e2 = await t(i);
|
|
23480
|
+
return n ? a.update({
|
|
23481
|
+
duration: FINISH_TOAST_DURATION_MS,
|
|
23482
|
+
description: void 0,
|
|
23483
|
+
...n
|
|
23484
|
+
}) : a.dismiss(), e2;
|
|
23485
|
+
} catch (e2) {
|
|
23486
|
+
throw a.dismiss(), e2;
|
|
23487
|
+
}
|
|
23488
|
+
}
|
|
23326
23489
|
ADD_PRINTING_CLASS = () => (document.body.classList.add("printing"), () => {
|
|
23327
23490
|
document.body.classList.remove("printing");
|
|
23328
23491
|
});
|
|
@@ -23456,6 +23619,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23456
23619
|
], labelForDownloadFormat = (e) => {
|
|
23457
23620
|
var _a2;
|
|
23458
23621
|
return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
23622
|
+
}, labelForCopyFormat = (e) => {
|
|
23623
|
+
var _a2;
|
|
23624
|
+
return ((_a2 = copyOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
23459
23625
|
};
|
|
23460
23626
|
const ExportMenu = (e) => {
|
|
23461
23627
|
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;
|
|
@@ -23502,49 +23668,56 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23502
23668
|
filename: i2.filename
|
|
23503
23669
|
};
|
|
23504
23670
|
}, t[5] = e, t[6] = v);
|
|
23505
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23671
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, TN, $;
|
|
23506
23672
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23507
23673
|
let e2 = async (t2) => {
|
|
23508
|
-
let n2 =
|
|
23509
|
-
|
|
23510
|
-
|
|
23511
|
-
|
|
23512
|
-
let i2 = (n2.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`, o2 = n2.url;
|
|
23513
|
-
if (!o2.startsWith("data:")) {
|
|
23514
|
-
let e3 = o2.includes("?") ? "&" : "?", t3 = new URLSearchParams({
|
|
23515
|
-
download: "1",
|
|
23516
|
-
filename: a2
|
|
23674
|
+
let n2 = labelForDownloadFormat(t2);
|
|
23675
|
+
await withLoadingToast(`Preparing ${n2} export...`, async () => {
|
|
23676
|
+
let n3 = await y(t2, () => {
|
|
23677
|
+
e2(t2);
|
|
23517
23678
|
});
|
|
23518
|
-
|
|
23519
|
-
|
|
23520
|
-
|
|
23521
|
-
|
|
23522
|
-
|
|
23523
|
-
|
|
23679
|
+
if (!n3) return false;
|
|
23680
|
+
let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`, o2 = n3.url;
|
|
23681
|
+
if (!o2.startsWith("data:")) {
|
|
23682
|
+
let e3 = o2.includes("?") ? "&" : "?", t3 = new URLSearchParams({
|
|
23683
|
+
download: "1",
|
|
23684
|
+
filename: a2
|
|
23685
|
+
});
|
|
23686
|
+
o2 = `${o2}${e3}${t3.toString()}`;
|
|
23687
|
+
}
|
|
23688
|
+
return downloadByURL(o2, a2), true;
|
|
23689
|
+
}) && toast({
|
|
23690
|
+
title: `${n2} download started`
|
|
23524
23691
|
});
|
|
23525
|
-
|
|
23526
|
-
|
|
23527
|
-
|
|
23528
|
-
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23692
|
+
}, a = async (e3) => {
|
|
23693
|
+
await withLoadingToast(`Preparing ${labelForCopyFormat(e3)} for clipboard...`, async () => {
|
|
23694
|
+
let t2 = await y(e3 === "csv" ? "csv" : "json", () => {
|
|
23695
|
+
a(e3);
|
|
23696
|
+
});
|
|
23697
|
+
if (!t2) return;
|
|
23698
|
+
let i2;
|
|
23699
|
+
bb70: switch (e3) {
|
|
23700
|
+
case "tsv":
|
|
23701
|
+
i2 = jsonToTSV(await fetchJson(t2.url), n);
|
|
23702
|
+
break bb70;
|
|
23703
|
+
case "json": {
|
|
23704
|
+
let e4 = await fetchJson(t2.url);
|
|
23705
|
+
i2 = JSON.stringify(e4, null, 2);
|
|
23706
|
+
break bb70;
|
|
23707
|
+
}
|
|
23708
|
+
case "csv":
|
|
23709
|
+
i2 = await fetchText(t2.url);
|
|
23710
|
+
break bb70;
|
|
23711
|
+
case "markdown":
|
|
23712
|
+
i2 = jsonToMarkdown(await fetchJson(t2.url));
|
|
23713
|
+
break bb70;
|
|
23714
|
+
default:
|
|
23715
|
+
logNever(e3);
|
|
23716
|
+
return;
|
|
23535
23717
|
}
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23539
|
-
case "markdown":
|
|
23540
|
-
i2 = jsonToMarkdown(await fetchJson(t2.url));
|
|
23541
|
-
break bb65;
|
|
23542
|
-
default:
|
|
23543
|
-
logNever(e3);
|
|
23544
|
-
return;
|
|
23545
|
-
}
|
|
23546
|
-
await copyToClipboard(i2), toast({
|
|
23547
|
-
title: "Copied to clipboard"
|
|
23718
|
+
await copyToClipboard(i2), toast({
|
|
23719
|
+
title: "Copied to clipboard"
|
|
23720
|
+
});
|
|
23548
23721
|
});
|
|
23549
23722
|
};
|
|
23550
23723
|
O = DropdownMenu, I = false, z = i, U = o;
|
|
@@ -23559,7 +23732,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23559
23732
|
}), 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, {
|
|
23560
23733
|
className: "text-xs text-muted-foreground",
|
|
23561
23734
|
children: "Download"
|
|
23562
|
-
}), t[29] = Q) : Q = t[29],
|
|
23735
|
+
}), t[29] = Q) : Q = t[29], TN = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23563
23736
|
onSelect: () => {
|
|
23564
23737
|
e2(t2.format);
|
|
23565
23738
|
},
|
|
@@ -23612,30 +23785,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23612
23785
|
]
|
|
23613
23786
|
})
|
|
23614
23787
|
]
|
|
23615
|
-
}, 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] =
|
|
23616
|
-
} 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],
|
|
23617
|
-
let
|
|
23618
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23788
|
+
}, 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] = TN, t[23] = $;
|
|
23789
|
+
} 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], TN = t[22], $ = t[23];
|
|
23790
|
+
let EN;
|
|
23791
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== TN || t[39] !== $ ? (EN = (0, import_jsx_runtime.jsxs)(E, {
|
|
23619
23792
|
side: q,
|
|
23620
23793
|
className: J,
|
|
23621
23794
|
children: [
|
|
23622
23795
|
Q,
|
|
23623
|
-
|
|
23796
|
+
TN,
|
|
23624
23797
|
$,
|
|
23625
23798
|
A,
|
|
23626
23799
|
M
|
|
23627
23800
|
]
|
|
23628
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23629
|
-
let
|
|
23630
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23801
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = TN, t[39] = $, t[40] = EN) : EN = t[40];
|
|
23802
|
+
let DN;
|
|
23803
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== EN ? (DN = (0, import_jsx_runtime.jsxs)(O, {
|
|
23631
23804
|
modal: I,
|
|
23632
23805
|
open: z,
|
|
23633
23806
|
onOpenChange: U,
|
|
23634
23807
|
children: [
|
|
23635
23808
|
K,
|
|
23636
|
-
|
|
23809
|
+
EN
|
|
23637
23810
|
]
|
|
23638
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23811
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = EN, t[47] = DN) : DN = t[47], DN;
|
|
23639
23812
|
};
|
|
23640
23813
|
function fetchJson(e) {
|
|
23641
23814
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23726,22 +23899,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23726
23899
|
]
|
|
23727
23900
|
}) : null;
|
|
23728
23901
|
};
|
|
23729
|
-
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:
|
|
23730
|
-
let [
|
|
23902
|
+
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: TN, onSearchQueryChange: $, showFilters: EN = false, filters: DN, onFiltersChange: ON, calculateTopKRows: kN, reloading: AN, freezeColumnsLeft: jN, freezeColumnsRight: MN, toggleDisplayHeader: NN, showChartBuilder: PN, isChartBuilderOpen: FN, showPageSizeSelector: IN, showTableExplorer: LN, togglePanel: RN, isPanelOpen: zN, isAnyPanelOpen: BN, viewedRowIdx: VN, onViewedRowChange: HN }) => {
|
|
23903
|
+
let [UN, WN] = import_react.useState(false), { locale: GN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: KN, setColumnPinning: qN } = useColumnPinning(jN, MN);
|
|
23731
23904
|
import_react.useEffect(() => {
|
|
23732
23905
|
let e2;
|
|
23733
|
-
return
|
|
23734
|
-
|
|
23735
|
-
}, 300) :
|
|
23906
|
+
return AN ? e2 = setTimeout(() => {
|
|
23907
|
+
WN(true);
|
|
23908
|
+
}, 300) : WN(false), () => {
|
|
23736
23909
|
e2 && clearTimeout(e2);
|
|
23737
23910
|
};
|
|
23738
23911
|
}, [
|
|
23739
|
-
|
|
23912
|
+
AN
|
|
23740
23913
|
]);
|
|
23741
|
-
function
|
|
23914
|
+
function JN(e2, t2) {
|
|
23742
23915
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23743
23916
|
}
|
|
23744
|
-
let
|
|
23917
|
+
let YN = useReactTable({
|
|
23745
23918
|
_features: [
|
|
23746
23919
|
ColumnPinning,
|
|
23747
23920
|
ColumnWrappingFeature,
|
|
@@ -23765,11 +23938,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23765
23938
|
getRowId: (e2, t2) => {
|
|
23766
23939
|
let n2 = getStableRowId(e2);
|
|
23767
23940
|
if (n2) return n2;
|
|
23768
|
-
let i2 =
|
|
23941
|
+
let i2 = JN(e2, t2);
|
|
23769
23942
|
return String(i2);
|
|
23770
23943
|
}
|
|
23771
23944
|
} : {},
|
|
23772
|
-
locale:
|
|
23945
|
+
locale: GN,
|
|
23773
23946
|
manualPagination: z,
|
|
23774
23947
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23775
23948
|
...v ? {
|
|
@@ -23779,21 +23952,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23779
23952
|
enableMultiSort: true,
|
|
23780
23953
|
getSortedRowModel: getSortedRowModel(),
|
|
23781
23954
|
manualFiltering: true,
|
|
23782
|
-
enableColumnFilters:
|
|
23955
|
+
enableColumnFilters: EN,
|
|
23783
23956
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23784
|
-
onColumnFiltersChange:
|
|
23957
|
+
onColumnFiltersChange: ON,
|
|
23785
23958
|
onRowSelectionChange: K,
|
|
23786
23959
|
onCellSelectionChange: q,
|
|
23787
23960
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23788
23961
|
enableMultiCellSelection: c === "multi-cell",
|
|
23789
|
-
onColumnPinningChange:
|
|
23962
|
+
onColumnPinningChange: qN,
|
|
23790
23963
|
enableFocusRow: true,
|
|
23791
|
-
onFocusRowChange:
|
|
23964
|
+
onFocusRowChange: HN,
|
|
23792
23965
|
state: {
|
|
23793
23966
|
..._ ? {
|
|
23794
23967
|
sorting: _
|
|
23795
23968
|
} : {},
|
|
23796
|
-
columnFilters:
|
|
23969
|
+
columnFilters: DN,
|
|
23797
23970
|
...A ? {
|
|
23798
23971
|
pagination: A
|
|
23799
23972
|
} : U && !A ? {} : {
|
|
@@ -23805,21 +23978,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23805
23978
|
rowSelection: y ?? {},
|
|
23806
23979
|
cellSelection: S ?? [],
|
|
23807
23980
|
cellStyling: w,
|
|
23808
|
-
columnPinning:
|
|
23981
|
+
columnPinning: KN,
|
|
23809
23982
|
cellHoverTemplate: E,
|
|
23810
23983
|
cellHoverTexts: O ?? {}
|
|
23811
23984
|
}
|
|
23812
|
-
}),
|
|
23985
|
+
}), XN = (zN == null ? void 0 : zN(PANEL_TYPES.ROW_VIEWER)) ?? false, ZN = !U && o.length > 100, QN = useScrollContainerHeight({
|
|
23813
23986
|
maxHeight: n,
|
|
23814
|
-
virtualize:
|
|
23987
|
+
virtualize: ZN
|
|
23815
23988
|
});
|
|
23816
23989
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23817
23990
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23818
23991
|
children: [
|
|
23819
23992
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23820
|
-
filters:
|
|
23821
|
-
table:
|
|
23822
|
-
calculateTopKRows:
|
|
23993
|
+
filters: DN,
|
|
23994
|
+
table: YN,
|
|
23995
|
+
calculateTopKRows: kN
|
|
23823
23996
|
}),
|
|
23824
23997
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23825
23998
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23828,32 +24001,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23828
24001
|
children: [
|
|
23829
24002
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23830
24003
|
enableSearch: Q,
|
|
23831
|
-
searchQuery:
|
|
24004
|
+
searchQuery: TN,
|
|
23832
24005
|
onSearchQueryChange: $,
|
|
23833
|
-
reloading:
|
|
23834
|
-
showChartBuilder:
|
|
23835
|
-
isChartBuilderOpen:
|
|
23836
|
-
toggleDisplayHeader:
|
|
23837
|
-
showTableExplorer:
|
|
23838
|
-
togglePanel:
|
|
23839
|
-
isAnyPanelOpen:
|
|
24006
|
+
reloading: AN,
|
|
24007
|
+
showChartBuilder: PN,
|
|
24008
|
+
isChartBuilderOpen: FN,
|
|
24009
|
+
toggleDisplayHeader: NN,
|
|
24010
|
+
showTableExplorer: LN,
|
|
24011
|
+
togglePanel: RN,
|
|
24012
|
+
isAnyPanelOpen: BN,
|
|
23840
24013
|
downloadAs: I
|
|
23841
24014
|
}),
|
|
23842
24015
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23843
24016
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23844
|
-
ref:
|
|
24017
|
+
ref: QN,
|
|
23845
24018
|
children: [
|
|
23846
|
-
|
|
24019
|
+
UN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23847
24020
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23848
24021
|
}),
|
|
23849
|
-
renderTableHeader(
|
|
24022
|
+
renderTableHeader(YN, ZN || !!n),
|
|
23850
24023
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23851
|
-
table:
|
|
24024
|
+
table: YN,
|
|
23852
24025
|
columns: i,
|
|
23853
|
-
rowViewerPanelOpen:
|
|
23854
|
-
getRowIndex:
|
|
23855
|
-
viewedRowIdx:
|
|
23856
|
-
virtualize:
|
|
24026
|
+
rowViewerPanelOpen: XN,
|
|
24027
|
+
getRowIndex: JN,
|
|
24028
|
+
viewedRowIdx: VN,
|
|
24029
|
+
virtualize: ZN
|
|
23857
24030
|
})
|
|
23858
24031
|
]
|
|
23859
24032
|
}),
|
|
@@ -23864,10 +24037,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23864
24037
|
pagination: U,
|
|
23865
24038
|
selection: c,
|
|
23866
24039
|
onRowSelectionChange: K,
|
|
23867
|
-
table:
|
|
24040
|
+
table: YN,
|
|
23868
24041
|
getRowIds: J,
|
|
23869
|
-
showPageSizeSelector:
|
|
23870
|
-
tableLoading:
|
|
24042
|
+
showPageSizeSelector: IN,
|
|
24043
|
+
tableLoading: AN
|
|
23871
24044
|
})
|
|
23872
24045
|
]
|
|
23873
24046
|
})
|
|
@@ -23957,67 +24130,67 @@ ${_}`,
|
|
|
23957
24130
|
});
|
|
23958
24131
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23959
24132
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$3), t[10] = $) : $ = t[10];
|
|
23960
|
-
let
|
|
23961
|
-
t[11] ===
|
|
23962
|
-
let
|
|
23963
|
-
t[13] ===
|
|
23964
|
-
className:
|
|
23965
|
-
}), t[13] =
|
|
23966
|
-
let
|
|
23967
|
-
t[15] ===
|
|
24133
|
+
let EN = d ? "rotate-180" : "rotate-0", DN;
|
|
24134
|
+
t[11] === EN ? DN = t[12] : (DN = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", EN), t[11] = EN, t[12] = DN);
|
|
24135
|
+
let ON;
|
|
24136
|
+
t[13] === DN ? ON = t[14] : (ON = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
24137
|
+
className: DN
|
|
24138
|
+
}), t[13] = DN, t[14] = ON);
|
|
24139
|
+
let kN = q || "Error", AN;
|
|
24140
|
+
t[15] === kN ? AN = t[16] : (AN = (0, import_jsx_runtime.jsxs)("span", {
|
|
23968
24141
|
className: "text-destructive",
|
|
23969
24142
|
children: [
|
|
23970
|
-
|
|
24143
|
+
kN,
|
|
23971
24144
|
":"
|
|
23972
24145
|
]
|
|
23973
|
-
}), t[15] =
|
|
23974
|
-
let
|
|
23975
|
-
t[17] !== J || t[18] !==
|
|
24146
|
+
}), t[15] = kN, t[16] = AN);
|
|
24147
|
+
let jN;
|
|
24148
|
+
t[17] !== J || t[18] !== AN ? (jN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23976
24149
|
className: "text-sm inline font-mono",
|
|
23977
24150
|
children: [
|
|
23978
|
-
|
|
24151
|
+
AN,
|
|
23979
24152
|
" ",
|
|
23980
24153
|
J
|
|
23981
24154
|
]
|
|
23982
|
-
}), t[17] = J, t[18] =
|
|
23983
|
-
let
|
|
23984
|
-
t[20] !==
|
|
24155
|
+
}), t[17] = J, t[18] = AN, t[19] = jN) : jN = t[19];
|
|
24156
|
+
let NN;
|
|
24157
|
+
t[20] !== jN || t[21] !== ON ? (NN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23985
24158
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23986
24159
|
onClick: $,
|
|
23987
24160
|
children: [
|
|
23988
|
-
|
|
23989
|
-
|
|
24161
|
+
ON,
|
|
24162
|
+
jN
|
|
23990
24163
|
]
|
|
23991
|
-
}), t[20] =
|
|
23992
|
-
let
|
|
23993
|
-
t[23] === c ?
|
|
24164
|
+
}), t[20] = jN, t[21] = ON, t[22] = NN) : NN = t[22];
|
|
24165
|
+
let PN;
|
|
24166
|
+
t[23] === c ? PN = t[24] : (PN = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
23994
24167
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23995
24168
|
children: c
|
|
23996
|
-
}), t[23] = c, t[24] =
|
|
23997
|
-
let
|
|
23998
|
-
t[25] !==
|
|
24169
|
+
}), t[23] = c, t[24] = PN);
|
|
24170
|
+
let IN;
|
|
24171
|
+
t[25] !== NN || t[26] !== PN ? (IN = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
23999
24172
|
value: KEY,
|
|
24000
24173
|
className: "border-none",
|
|
24001
24174
|
children: [
|
|
24002
|
-
|
|
24003
|
-
|
|
24175
|
+
NN,
|
|
24176
|
+
PN
|
|
24004
24177
|
]
|
|
24005
|
-
}), t[25] =
|
|
24006
|
-
let
|
|
24007
|
-
t[28] !==
|
|
24178
|
+
}), t[25] = NN, t[26] = PN, t[27] = IN) : IN = t[27];
|
|
24179
|
+
let LN;
|
|
24180
|
+
t[28] !== IN || t[29] !== Q ? (LN = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
24008
24181
|
type: "single",
|
|
24009
24182
|
collapsible: true,
|
|
24010
24183
|
value: Q,
|
|
24011
|
-
children:
|
|
24012
|
-
}), t[28] =
|
|
24013
|
-
let
|
|
24014
|
-
t[31] !== K || t[32] !== I ? (
|
|
24184
|
+
children: IN
|
|
24185
|
+
}), t[28] = IN, t[29] = Q, t[30] = LN) : LN = t[30];
|
|
24186
|
+
let RN;
|
|
24187
|
+
t[31] !== K || t[32] !== I ? (RN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
24015
24188
|
tooltip: "Fix with AI",
|
|
24016
24189
|
openPrompt: () => K(false),
|
|
24017
24190
|
applyAutofix: () => K(true)
|
|
24018
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
24019
|
-
let
|
|
24020
|
-
t[34] !== A || t[35] !== E ? (
|
|
24191
|
+
}), t[31] = K, t[32] = I, t[33] = RN) : RN = t[33];
|
|
24192
|
+
let BN;
|
|
24193
|
+
t[34] !== A || t[35] !== E ? (BN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
24021
24194
|
content: "Attach pdb to the exception point.",
|
|
24022
24195
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
24023
24196
|
size: "xs",
|
|
@@ -24034,9 +24207,9 @@ ${_}`,
|
|
|
24034
24207
|
"Launch debugger"
|
|
24035
24208
|
]
|
|
24036
24209
|
})
|
|
24037
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
24038
|
-
let
|
|
24039
|
-
t[37] !== _ || t[38] !== i ? (
|
|
24210
|
+
}), t[34] = A, t[35] = E, t[36] = BN) : BN = t[36];
|
|
24211
|
+
let VN;
|
|
24212
|
+
t[37] !== _ || t[38] !== i ? (VN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
24040
24213
|
children: [
|
|
24041
24214
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
24042
24215
|
asChild: true,
|
|
@@ -24104,24 +24277,24 @@ ${_}`,
|
|
|
24104
24277
|
]
|
|
24105
24278
|
})
|
|
24106
24279
|
]
|
|
24107
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24108
|
-
let
|
|
24109
|
-
t[40] !==
|
|
24280
|
+
}), t[37] = _, t[38] = i, t[39] = VN) : VN = t[39];
|
|
24281
|
+
let HN;
|
|
24282
|
+
t[40] !== RN || t[41] !== BN || t[42] !== VN ? (HN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24110
24283
|
className: "flex gap-2",
|
|
24111
24284
|
children: [
|
|
24112
|
-
|
|
24113
|
-
|
|
24114
|
-
|
|
24285
|
+
RN,
|
|
24286
|
+
BN,
|
|
24287
|
+
VN
|
|
24115
24288
|
]
|
|
24116
|
-
}), t[40] =
|
|
24117
|
-
let
|
|
24118
|
-
return t[44] !==
|
|
24289
|
+
}), t[40] = RN, t[41] = BN, t[42] = VN, t[43] = HN) : HN = t[43];
|
|
24290
|
+
let UN;
|
|
24291
|
+
return t[44] !== LN || t[45] !== HN ? (UN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24119
24292
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24120
24293
|
children: [
|
|
24121
|
-
|
|
24122
|
-
|
|
24294
|
+
LN,
|
|
24295
|
+
HN
|
|
24123
24296
|
]
|
|
24124
|
-
}), t[44] =
|
|
24297
|
+
}), t[44] = LN, t[45] = HN, t[46] = UN) : UN = t[46], UN;
|
|
24125
24298
|
};
|
|
24126
24299
|
function lastLine(e) {
|
|
24127
24300
|
var _a2, _b;
|
|
@@ -25507,7 +25680,7 @@ ${_}`,
|
|
|
25507
25680
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
25508
25681
|
}
|
|
25509
25682
|
}
|
|
25510
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-
|
|
25683
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-dev1");
|
|
25511
25684
|
showCodeInRunModeAtom = atom(true);
|
|
25512
25685
|
atom(null);
|
|
25513
25686
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -25535,99 +25708,100 @@ ${_}`,
|
|
|
25535
25708
|
}
|
|
25536
25709
|
});
|
|
25537
25710
|
export {
|
|
25538
|
-
|
|
25539
|
-
|
|
25540
|
-
|
|
25541
|
-
|
|
25542
|
-
|
|
25543
|
-
|
|
25544
|
-
|
|
25545
|
-
|
|
25546
|
-
|
|
25547
|
-
|
|
25548
|
-
|
|
25549
|
-
|
|
25550
|
-
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
|
|
25554
|
-
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
|
|
25558
|
-
|
|
25559
|
-
|
|
25560
|
-
|
|
25561
|
-
|
|
25562
|
-
|
|
25563
|
-
|
|
25564
|
-
|
|
25565
|
-
|
|
25566
|
-
|
|
25567
|
-
|
|
25568
|
-
|
|
25569
|
-
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
|
|
25573
|
-
|
|
25574
|
-
|
|
25575
|
-
|
|
25576
|
-
|
|
25577
|
-
|
|
25578
|
-
DelayMount as
|
|
25579
|
-
|
|
25711
|
+
filtersToFilterGroup as $,
|
|
25712
|
+
contextAwarePanelOwner as A,
|
|
25713
|
+
Funnel as At,
|
|
25714
|
+
TableCell as B,
|
|
25715
|
+
ChevronLeft as Bt,
|
|
25716
|
+
prettifyRowCount as C,
|
|
25717
|
+
useOverflowDetection as Ct,
|
|
25718
|
+
ContextAwarePanelItem as D,
|
|
25719
|
+
EmotionCacheProvider as Dt,
|
|
25720
|
+
ComboboxItem as E,
|
|
25721
|
+
HtmlOutput as Et,
|
|
25722
|
+
Toggle as F,
|
|
25723
|
+
Code as Ft,
|
|
25724
|
+
generateColumns as G,
|
|
25725
|
+
TableHeader as H,
|
|
25726
|
+
Fill as I,
|
|
25727
|
+
ChevronsUpDown as It,
|
|
25728
|
+
ColumnChartContext as J,
|
|
25729
|
+
inferFieldTypes as K,
|
|
25730
|
+
Provider$1 as L,
|
|
25731
|
+
ChevronsRight as Lt,
|
|
25732
|
+
isCellAwareAtom as M,
|
|
25733
|
+
Expand as Mt,
|
|
25734
|
+
SlotNames as N,
|
|
25735
|
+
Ellipsis as Nt,
|
|
25736
|
+
PANEL_TYPES as O,
|
|
25737
|
+
TextWrap as Ot,
|
|
25738
|
+
slotsController as P,
|
|
25739
|
+
Download as Pt,
|
|
25740
|
+
usePrevious as Q,
|
|
25741
|
+
Table as R,
|
|
25742
|
+
ChevronsLeft as Rt,
|
|
25743
|
+
prettifyRowColumnCount as S,
|
|
25744
|
+
LazyVegaEmbed as St,
|
|
25745
|
+
Combobox as T,
|
|
25746
|
+
Kbd as Tt,
|
|
25747
|
+
TableRow as U,
|
|
25748
|
+
TableHead as V,
|
|
25749
|
+
ArrowDownWideNarrow as Vt,
|
|
25750
|
+
NAMELESS_COLUMN_PREFIX as W,
|
|
25751
|
+
DelayMount as X,
|
|
25752
|
+
ColumnChartSpecModel as Y,
|
|
25753
|
+
useIntersectionObserver as Z,
|
|
25580
25754
|
downloadBlob as _,
|
|
25581
25755
|
__tla,
|
|
25582
|
-
|
|
25756
|
+
TabsList as _t,
|
|
25583
25757
|
DEFAULT_SLIDE_TYPE as a,
|
|
25584
|
-
|
|
25585
|
-
|
|
25586
|
-
|
|
25758
|
+
TOO_MANY_ROWS as at,
|
|
25759
|
+
Progress as b,
|
|
25760
|
+
ChartInfoState as bt,
|
|
25587
25761
|
Slide as c,
|
|
25588
|
-
|
|
25762
|
+
Command as ct,
|
|
25589
25763
|
JsonOutput as d,
|
|
25590
|
-
|
|
25591
|
-
|
|
25764
|
+
CommandItem as dt,
|
|
25765
|
+
getPageIndexForRow as et,
|
|
25592
25766
|
OutputArea as f,
|
|
25593
|
-
|
|
25767
|
+
CommandList as ft,
|
|
25594
25768
|
ADD_PRINTING_CLASS as g,
|
|
25595
|
-
|
|
25769
|
+
TabsContent as gt,
|
|
25596
25770
|
InstallPackageButton as h,
|
|
25597
|
-
|
|
25771
|
+
Tabs as ht,
|
|
25598
25772
|
DEFAULT_DECK_TRANSITION as i,
|
|
25599
|
-
|
|
25600
|
-
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
|
|
25773
|
+
SELECT_COLUMN_ID as it,
|
|
25774
|
+
contextAwarePanelType as j,
|
|
25775
|
+
EyeOff as jt,
|
|
25776
|
+
contextAwarePanelOpen as k,
|
|
25777
|
+
GripHorizontal as kt,
|
|
25604
25778
|
RadioGroup as l,
|
|
25605
|
-
|
|
25779
|
+
CommandEmpty as lt,
|
|
25606
25780
|
DataTable as m,
|
|
25607
|
-
|
|
25781
|
+
Maps as mt,
|
|
25608
25782
|
marimoVersionAtom as n,
|
|
25609
|
-
|
|
25783
|
+
loadTableData as nt,
|
|
25610
25784
|
SLIDE_TYPE_OPTIONS_BY_VALUE as o,
|
|
25611
|
-
|
|
25785
|
+
toFieldTypes as ot,
|
|
25612
25786
|
OutputRenderer as p,
|
|
25613
|
-
|
|
25614
|
-
|
|
25787
|
+
CommandSeparator as pt,
|
|
25788
|
+
renderCellValue as q,
|
|
25615
25789
|
showCodeInRunModeAtom as r,
|
|
25616
|
-
|
|
25790
|
+
INDEX_COLUMN_NAME as rt,
|
|
25617
25791
|
SlideSidebar as s,
|
|
25618
|
-
|
|
25792
|
+
getMimeValues as st,
|
|
25619
25793
|
useNotebookCodeAvailable as t,
|
|
25620
|
-
|
|
25794
|
+
loadTableAndRawData as tt,
|
|
25621
25795
|
RadioGroupItem as u,
|
|
25622
|
-
|
|
25796
|
+
CommandInput as ut,
|
|
25623
25797
|
downloadByURL as v,
|
|
25624
|
-
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25798
|
+
TabsTrigger as vt,
|
|
25799
|
+
useInternalStateWithSync as w,
|
|
25800
|
+
RenderTextWithLinks as wt,
|
|
25801
|
+
Filenames as x,
|
|
25802
|
+
ChartLoadingState as xt,
|
|
25629
25803
|
downloadHTMLAsImage as y,
|
|
25630
|
-
|
|
25631
|
-
|
|
25632
|
-
|
|
25804
|
+
ChartErrorState as yt,
|
|
25805
|
+
TableBody as z,
|
|
25806
|
+
ChevronsDownUp as zt
|
|
25633
25807
|
};
|