@marimo-team/islands 0.23.4-dev0 → 0.23.4-dev5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-DEd_Ndal.js → chat-ui-b_bJR7A9.js} +2755 -2755
- package/dist/{html-to-image-DBosi5GK.js → html-to-image-CzFE0Irw.js} +2182 -2130
- package/dist/main.js +1486 -1658
- package/dist/{process-output-k-4WHpxz.js → process-output-D3EbEd3k.js} +25 -47
- package/dist/{reveal-component-CFuofbBD.js → reveal-component-nGhJ8lOe.js} +2 -2
- package/dist/{slide-form-DgMI37ES.js → slide-form-kI-kSHC_.js} +1406 -649
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/components/data-table/data-table.tsx +11 -2
- package/src/components/data-table/filter-by-values-picker.tsx +238 -0
- package/src/components/data-table/filter-pill-editor.tsx +470 -0
- package/src/components/data-table/filter-pills.tsx +177 -41
- package/src/components/ui/checkbox.tsx +8 -4
- package/src/components/ui/combobox.tsx +3 -0
- package/src/css/app/Cell.css +4 -0
- package/src/plugins/impl/DataTablePlugin.tsx +1 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +15 -15
- package/src/utils/sets.ts +13 -0
|
@@ -6,18 +6,18 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, Bn as
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, Bn as Braces, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-CzFE0Irw.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
11
11
|
import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
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$1, 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, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-Drx1pguW.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$1, 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-Drx1pguW.js";
|
|
16
16
|
import { a as millisecondsInMinute, c as asRemoteURL, d as isUrl, h as isWasm, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-yqOcZ_tY.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
|
-
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$
|
|
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
21
|
import { a as Content$1, c as Root$2, i as prettyError, n as ErrorBanner, o as Overlay, s as Portal$1, t as Banner } from "./error-banner-DnBPzEWg.js";
|
|
22
22
|
import { t as Tooltip } from "./tooltip-B0mtKTXm.js";
|
|
23
23
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-CzJgxo2J.js";
|
|
@@ -34,7 +34,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
|
|
|
34
34
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
|
|
35
35
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
|
|
36
36
|
import { t as useAsyncData } from "./useAsyncData-CKYzhCis.js";
|
|
37
|
-
let
|
|
37
|
+
let SELECT_COLUMN_ID, slotsController, Expand, NAMELESS_COLUMN_PREFIX, ContextAwarePanelItem, EmotionCacheProvider, contextAwarePanelType, GripHorizontal, contextAwarePanelOwner, TextWrap, TableBody, ChevronsLeft, ColumnChartSpecModel, inferFieldTypes, TableCell, ChevronsDownUp, usePrevious, DelayMount, TableHead, ChevronLeft, Fill, Download, Provider$1, ChevronsUpDown, isCellAwareAtom, Funnel, Table, ChevronsRight, INDEX_COLUMN_NAME, TableHeader, ArrowDownWideNarrow, ComboboxItem, HtmlOutput, contextAwarePanelOpen, isStaticNotebook, renderCellValue, generateColumns, ColumnChartContext, loadTableAndRawData, getPageIndexForRow, loadTableData, Filenames, ChartLoadingState, Slide, CommandEmpty, useInternalStateWithSync, RenderTextWithLinks, JsonOutput, CommandList, DataTable, Tabs, TOO_MANY_ROWS, InstallPackageButton, TabsContent, downloadHTMLAsImage, ChartInfoState, downloadByURL, ChartErrorState, SlideSidebar, Command, Toggle, Ellipsis, SlotNames, EyeOff, OutputArea, CommandSeparator, downloadBlob, TabsTrigger, DEFAULT_SLIDE_TYPE, getMimeValues, RadioGroup, CommandInput, ADD_PRINTING_CLASS, TabsList, useIntersectionObserver, SLIDE_TYPE_OPTIONS_BY_VALUE, filtersToFilterGroup, RadioGroupItem, CommandItem, DEFAULT_DECK_TRANSITION, toFieldTypes, OutputRenderer, Maps, prettifyRowColumnCount, LazyVegaEmbed, PANEL_TYPES, getStaticVirtualFiles, Combobox, Kbd, prettifyRowCount, useOverflowDetection, TableRow;
|
|
38
38
|
let __tla = Promise.all([
|
|
39
39
|
(() => {
|
|
40
40
|
try {
|
|
@@ -44,7 +44,7 @@ let __tla = Promise.all([
|
|
|
44
44
|
})()
|
|
45
45
|
]).then(async () => {
|
|
46
46
|
var _a;
|
|
47
|
-
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle,
|
|
47
|
+
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
48
48
|
ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
|
|
49
49
|
[
|
|
50
50
|
"path",
|
|
@@ -734,15 +734,6 @@ let __tla = Promise.all([
|
|
|
734
734
|
}
|
|
735
735
|
]
|
|
736
736
|
]);
|
|
737
|
-
Minus = createLucideIcon("minus", [
|
|
738
|
-
[
|
|
739
|
-
"path",
|
|
740
|
-
{
|
|
741
|
-
d: "M5 12h14",
|
|
742
|
-
key: "1ays0h"
|
|
743
|
-
}
|
|
744
|
-
]
|
|
745
|
-
]);
|
|
746
737
|
Package = createLucideIcon("package", [
|
|
747
738
|
[
|
|
748
739
|
"path",
|
|
@@ -1304,7 +1295,7 @@ let __tla = Promise.all([
|
|
|
1304
1295
|
ContextMenuItemIndicator.displayName = INDICATOR_NAME$1;
|
|
1305
1296
|
var SEPARATOR_NAME = "ContextMenuSeparator", ContextMenuSeparator$1 = import_react.forwardRef((e, t) => {
|
|
1306
1297
|
let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
|
|
1307
|
-
return (0, import_jsx_runtime.jsx)(Separator, {
|
|
1298
|
+
return (0, import_jsx_runtime.jsx)(Separator$1, {
|
|
1308
1299
|
...a,
|
|
1309
1300
|
...i,
|
|
1310
1301
|
ref: t
|
|
@@ -1547,7 +1538,7 @@ let __tla = Promise.all([
|
|
|
1547
1538
|
});
|
|
1548
1539
|
return (0, import_jsx_runtime.jsx)(TabsProvider, {
|
|
1549
1540
|
scope: n,
|
|
1550
|
-
baseId: useId$
|
|
1541
|
+
baseId: useId$2(),
|
|
1551
1542
|
value: _,
|
|
1552
1543
|
onValueChange: v,
|
|
1553
1544
|
orientation: s,
|
|
@@ -5558,9 +5549,9 @@ let __tla = Promise.all([
|
|
|
5558
5549
|
t,
|
|
5559
5550
|
i.name
|
|
5560
5551
|
]), null;
|
|
5561
|
-
}), import_compiler_runtime$
|
|
5552
|
+
}), import_compiler_runtime$48 = require_compiler_runtime();
|
|
5562
5553
|
EmotionCacheProvider = (e) => {
|
|
5563
|
-
let t = (0, import_compiler_runtime$
|
|
5554
|
+
let t = (0, import_compiler_runtime$48.c)(6), { container: n, children: i } = e, a;
|
|
5564
5555
|
bb0: {
|
|
5565
5556
|
if (!n) {
|
|
5566
5557
|
let e3;
|
|
@@ -7059,7 +7050,7 @@ let __tla = Promise.all([
|
|
|
7059
7050
|
var maybeReactUseId = {
|
|
7060
7051
|
...import_react
|
|
7061
7052
|
}.useId;
|
|
7062
|
-
function useId$
|
|
7053
|
+
function useId$3(e) {
|
|
7063
7054
|
if (maybeReactUseId !== void 0) {
|
|
7064
7055
|
let t = maybeReactUseId();
|
|
7065
7056
|
return e ?? t;
|
|
@@ -7164,7 +7155,7 @@ let __tla = Promise.all([
|
|
|
7164
7155
|
}
|
|
7165
7156
|
var DefaultPropsProvider_default = DefaultPropsProvider;
|
|
7166
7157
|
function useLayerOrder(e) {
|
|
7167
|
-
let t = useThemeWithoutDefault_default(), n = useId$
|
|
7158
|
+
let t = useThemeWithoutDefault_default(), n = useId$3() || "", { modularCssLayers: i } = e, a = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
7168
7159
|
return a = !i || t !== null ? "" : typeof i == "string" ? i.replace(/mui(?!\.)/g, a) : `@layer ${a};`, useEnhancedEffect_default(() => {
|
|
7169
7160
|
var _a2, _b;
|
|
7170
7161
|
let e2 = document.querySelector("head");
|
|
@@ -7473,33 +7464,33 @@ try {
|
|
|
7473
7464
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7474
7465
|
function y(e2) {
|
|
7475
7466
|
var _a2, _b, _c, _d;
|
|
7476
|
-
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),
|
|
7467
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), BM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7477
7468
|
h2
|
|
7478
|
-
]),
|
|
7479
|
-
|
|
7480
|
-
]),
|
|
7481
|
-
supportedColorSchemes:
|
|
7482
|
-
defaultLightColorScheme:
|
|
7483
|
-
defaultDarkColorScheme:
|
|
7469
|
+
]), VM = $[t], HM = VM || $, { colorSchemes: UM = _, components: WM = v, cssVarPrefix: GM } = HM, KM = Object.keys(UM).filter((e3) => !!UM[e3]).join(","), qM = import_react.useMemo(() => KM.split(","), [
|
|
7470
|
+
KM
|
|
7471
|
+
]), JM = typeof s == "string" ? s : s.light, YM = typeof s == "string" ? s : s.dark, { mode: XM, setMode: ZM, systemMode: QM, lightColorScheme: $M, darkColorScheme: eN, colorScheme: tN, setColorScheme: nN } = useCurrentColorScheme({
|
|
7472
|
+
supportedColorSchemes: qM,
|
|
7473
|
+
defaultLightColorScheme: JM,
|
|
7474
|
+
defaultDarkColorScheme: YM,
|
|
7484
7475
|
modeStorageKey: y2,
|
|
7485
7476
|
colorSchemeStorageKey: S2,
|
|
7486
|
-
defaultMode:
|
|
7477
|
+
defaultMode: UM[JM] && UM[YM] ? U : ((_b = (_a2 = UM[HM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = HM.palette) == null ? void 0 : _c.mode),
|
|
7487
7478
|
storageManager: E,
|
|
7488
7479
|
storageWindow: O,
|
|
7489
7480
|
noSsr: K
|
|
7490
|
-
}),
|
|
7491
|
-
|
|
7492
|
-
let
|
|
7481
|
+
}), rN = XM, iN = tN;
|
|
7482
|
+
BM && (rN = Q.mode, iN = Q.colorScheme);
|
|
7483
|
+
let aN = import_react.useMemo(() => {
|
|
7493
7484
|
var _a3;
|
|
7494
|
-
let e3 =
|
|
7495
|
-
...
|
|
7496
|
-
components:
|
|
7497
|
-
colorSchemes:
|
|
7498
|
-
cssVarPrefix:
|
|
7485
|
+
let e3 = iN || HM.defaultColorScheme, t2 = ((_a3 = HM.generateThemeVars) == null ? void 0 : _a3.call(HM)) || HM.vars, n2 = {
|
|
7486
|
+
...HM,
|
|
7487
|
+
components: WM,
|
|
7488
|
+
colorSchemes: UM,
|
|
7489
|
+
cssVarPrefix: GM,
|
|
7499
7490
|
vars: t2
|
|
7500
7491
|
};
|
|
7501
7492
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7502
|
-
let t3 =
|
|
7493
|
+
let t3 = UM[e3];
|
|
7503
7494
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7504
7495
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7505
7496
|
...n2[e4],
|
|
@@ -7509,31 +7500,31 @@ try {
|
|
|
7509
7500
|
}
|
|
7510
7501
|
return c ? c(n2) : n2;
|
|
7511
7502
|
}, [
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
]),
|
|
7503
|
+
HM,
|
|
7504
|
+
iN,
|
|
7505
|
+
WM,
|
|
7506
|
+
UM,
|
|
7507
|
+
GM
|
|
7508
|
+
]), oN = HM.colorSchemeSelector;
|
|
7518
7509
|
useEnhancedEffect_default(() => {
|
|
7519
|
-
if (
|
|
7520
|
-
let e3 =
|
|
7521
|
-
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(...
|
|
7510
|
+
if (iN && M && oN && oN !== "media") {
|
|
7511
|
+
let e3 = oN, t2 = oN;
|
|
7512
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...qM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", iN));
|
|
7522
7513
|
else {
|
|
7523
|
-
let e4 = t2.replace("%s",
|
|
7514
|
+
let e4 = t2.replace("%s", iN).match(/\[([^\]]+)\]/);
|
|
7524
7515
|
if (e4) {
|
|
7525
7516
|
let [t3, n2] = e4[1].split("=");
|
|
7526
|
-
n2 ||
|
|
7527
|
-
M.removeAttribute(t3.replace(
|
|
7517
|
+
n2 || qM.forEach((e5) => {
|
|
7518
|
+
M.removeAttribute(t3.replace(iN, e5));
|
|
7528
7519
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7529
|
-
} else M.setAttribute(t2,
|
|
7520
|
+
} else M.setAttribute(t2, iN);
|
|
7530
7521
|
}
|
|
7531
7522
|
}
|
|
7532
7523
|
}, [
|
|
7533
|
-
|
|
7534
|
-
|
|
7524
|
+
iN,
|
|
7525
|
+
oN,
|
|
7535
7526
|
M,
|
|
7536
|
-
|
|
7527
|
+
qM
|
|
7537
7528
|
]), import_react.useEffect(() => {
|
|
7538
7529
|
let e3;
|
|
7539
7530
|
if (w2 && q.current && A) {
|
|
@@ -7546,48 +7537,48 @@ try {
|
|
|
7546
7537
|
clearTimeout(e3);
|
|
7547
7538
|
};
|
|
7548
7539
|
}, [
|
|
7549
|
-
|
|
7540
|
+
iN,
|
|
7550
7541
|
w2,
|
|
7551
7542
|
A
|
|
7552
7543
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7553
7544
|
q.current = false;
|
|
7554
7545
|
}), []);
|
|
7555
|
-
let
|
|
7556
|
-
allColorSchemes:
|
|
7557
|
-
colorScheme:
|
|
7558
|
-
darkColorScheme:
|
|
7559
|
-
lightColorScheme:
|
|
7560
|
-
mode:
|
|
7561
|
-
setColorScheme:
|
|
7562
|
-
setMode:
|
|
7563
|
-
systemMode:
|
|
7546
|
+
let sN = import_react.useMemo(() => ({
|
|
7547
|
+
allColorSchemes: qM,
|
|
7548
|
+
colorScheme: iN,
|
|
7549
|
+
darkColorScheme: eN,
|
|
7550
|
+
lightColorScheme: $M,
|
|
7551
|
+
mode: rN,
|
|
7552
|
+
setColorScheme: nN,
|
|
7553
|
+
setMode: ZM,
|
|
7554
|
+
systemMode: QM
|
|
7564
7555
|
}), [
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
]),
|
|
7575
|
-
(z ||
|
|
7576
|
-
let
|
|
7556
|
+
qM,
|
|
7557
|
+
iN,
|
|
7558
|
+
eN,
|
|
7559
|
+
$M,
|
|
7560
|
+
rN,
|
|
7561
|
+
nN,
|
|
7562
|
+
ZM,
|
|
7563
|
+
QM,
|
|
7564
|
+
aN.colorSchemeSelector
|
|
7565
|
+
]), cN = true;
|
|
7566
|
+
(z || HM.cssVariables === false || BM && (J == null ? void 0 : J.cssVarPrefix) === GM) && (cN = false);
|
|
7567
|
+
let lN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7577
7568
|
children: [
|
|
7578
7569
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7579
|
-
themeId:
|
|
7580
|
-
theme:
|
|
7570
|
+
themeId: VM ? t : void 0,
|
|
7571
|
+
theme: aN,
|
|
7581
7572
|
children: d2
|
|
7582
7573
|
}),
|
|
7583
|
-
|
|
7584
|
-
styles: ((_d =
|
|
7574
|
+
cN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7575
|
+
styles: ((_d = aN.generateStyleSheets) == null ? void 0 : _d.call(aN)) || []
|
|
7585
7576
|
})
|
|
7586
7577
|
]
|
|
7587
7578
|
});
|
|
7588
|
-
return
|
|
7589
|
-
value:
|
|
7590
|
-
children:
|
|
7579
|
+
return BM ? lN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7580
|
+
value: sN,
|
|
7581
|
+
children: lN
|
|
7591
7582
|
});
|
|
7592
7583
|
}
|
|
7593
7584
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9087,10 +9078,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9087
9078
|
let n = useDefaultProps({
|
|
9088
9079
|
props: e,
|
|
9089
9080
|
name: "MuiInputBase"
|
|
9090
|
-
}), { "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:
|
|
9091
|
-
}, []),
|
|
9081
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: BM, onFocus: $, onKeyDown: VM, onKeyUp: HM, placeholder: UM, readOnly: WM, renderSuffix: GM, rows: KM, size: qM, slotProps: JM = {}, slots: YM = {}, startAdornment: XM, type: ZM = "text", value: QM, ...$M } = n, eN = A.value == null ? QM : A.value, { current: tN } = import_react.useRef(eN != null), nN = import_react.useRef(), rN = import_react.useCallback((e2) => {
|
|
9082
|
+
}, []), iN = useForkRef_default(nN, M, A.ref, rN), [aN, oN] = import_react.useState(false), sN = useFormControl(), cN = formControlState({
|
|
9092
9083
|
props: n,
|
|
9093
|
-
muiFormControl:
|
|
9084
|
+
muiFormControl: sN,
|
|
9094
9085
|
states: [
|
|
9095
9086
|
"color",
|
|
9096
9087
|
"disabled",
|
|
@@ -9101,145 +9092,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9101
9092
|
"filled"
|
|
9102
9093
|
]
|
|
9103
9094
|
});
|
|
9104
|
-
|
|
9105
|
-
!
|
|
9095
|
+
cN.focused = sN ? sN.focused : aN, import_react.useEffect(() => {
|
|
9096
|
+
!sN && _ && aN && (oN(false), J && J());
|
|
9106
9097
|
}, [
|
|
9107
|
-
|
|
9098
|
+
sN,
|
|
9108
9099
|
_,
|
|
9109
|
-
|
|
9100
|
+
aN,
|
|
9110
9101
|
J
|
|
9111
9102
|
]);
|
|
9112
|
-
let
|
|
9113
|
-
isFilled(e2) ?
|
|
9103
|
+
let lN = sN && sN.onFilled, uN = sN && sN.onEmpty, dN = import_react.useCallback((e2) => {
|
|
9104
|
+
isFilled(e2) ? lN && lN() : uN && uN();
|
|
9114
9105
|
}, [
|
|
9115
|
-
|
|
9116
|
-
|
|
9106
|
+
lN,
|
|
9107
|
+
uN
|
|
9117
9108
|
]);
|
|
9118
9109
|
useEnhancedEffect_default$1(() => {
|
|
9119
|
-
|
|
9120
|
-
value:
|
|
9110
|
+
tN && dN({
|
|
9111
|
+
value: eN
|
|
9121
9112
|
});
|
|
9122
9113
|
}, [
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9114
|
+
eN,
|
|
9115
|
+
dN,
|
|
9116
|
+
tN
|
|
9126
9117
|
]);
|
|
9127
|
-
let
|
|
9128
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9129
|
-
},
|
|
9130
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9131
|
-
},
|
|
9132
|
-
if (!
|
|
9133
|
-
let t3 = e2.target ||
|
|
9118
|
+
let fN = (e2) => {
|
|
9119
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), sN && sN.onFocus ? sN.onFocus(e2) : oN(true);
|
|
9120
|
+
}, pN = (e2) => {
|
|
9121
|
+
J && J(e2), A.onBlur && A.onBlur(e2), sN && sN.onBlur ? sN.onBlur(e2) : oN(false);
|
|
9122
|
+
}, mN = (e2, ...t2) => {
|
|
9123
|
+
if (!tN) {
|
|
9124
|
+
let t3 = e2.target || nN.current;
|
|
9134
9125
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9135
|
-
|
|
9126
|
+
dN({
|
|
9136
9127
|
value: t3.value
|
|
9137
9128
|
});
|
|
9138
9129
|
}
|
|
9139
9130
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9140
9131
|
};
|
|
9141
9132
|
import_react.useEffect(() => {
|
|
9142
|
-
|
|
9133
|
+
dN(nN.current);
|
|
9143
9134
|
}, []);
|
|
9144
|
-
let
|
|
9145
|
-
|
|
9146
|
-
},
|
|
9147
|
-
K &&
|
|
9135
|
+
let hN = (e2) => {
|
|
9136
|
+
nN.current && e2.currentTarget === e2.target && nN.current.focus(), BM && BM(e2);
|
|
9137
|
+
}, gN = O, _N = A;
|
|
9138
|
+
K && gN === "input" && (_N = KM ? {
|
|
9148
9139
|
type: void 0,
|
|
9149
|
-
minRows:
|
|
9150
|
-
maxRows:
|
|
9151
|
-
...
|
|
9140
|
+
minRows: KM,
|
|
9141
|
+
maxRows: KM,
|
|
9142
|
+
..._N
|
|
9152
9143
|
} : {
|
|
9153
9144
|
type: void 0,
|
|
9154
9145
|
maxRows: z,
|
|
9155
9146
|
minRows: U,
|
|
9156
|
-
...
|
|
9157
|
-
},
|
|
9158
|
-
let
|
|
9159
|
-
|
|
9147
|
+
..._N
|
|
9148
|
+
}, gN = TextareaAutosize_default);
|
|
9149
|
+
let vN = (e2) => {
|
|
9150
|
+
dN(e2.animationName === "mui-auto-fill-cancel" ? nN.current : {
|
|
9160
9151
|
value: "x"
|
|
9161
9152
|
});
|
|
9162
9153
|
};
|
|
9163
9154
|
import_react.useEffect(() => {
|
|
9164
|
-
|
|
9155
|
+
sN && sN.setAdornedStart(!!XM);
|
|
9165
9156
|
}, [
|
|
9166
|
-
|
|
9167
|
-
|
|
9157
|
+
sN,
|
|
9158
|
+
XM
|
|
9168
9159
|
]);
|
|
9169
|
-
let
|
|
9160
|
+
let yN = {
|
|
9170
9161
|
...n,
|
|
9171
|
-
color:
|
|
9172
|
-
disabled:
|
|
9162
|
+
color: cN.color || "primary",
|
|
9163
|
+
disabled: cN.disabled,
|
|
9173
9164
|
endAdornment: y,
|
|
9174
|
-
error:
|
|
9175
|
-
focused:
|
|
9176
|
-
formControl:
|
|
9165
|
+
error: cN.error,
|
|
9166
|
+
focused: cN.focused,
|
|
9167
|
+
formControl: sN,
|
|
9177
9168
|
fullWidth: w,
|
|
9178
|
-
hiddenLabel:
|
|
9169
|
+
hiddenLabel: cN.hiddenLabel,
|
|
9179
9170
|
multiline: K,
|
|
9180
|
-
size:
|
|
9181
|
-
startAdornment:
|
|
9182
|
-
type:
|
|
9183
|
-
},
|
|
9184
|
-
return
|
|
9185
|
-
...
|
|
9186
|
-
...
|
|
9171
|
+
size: cN.size,
|
|
9172
|
+
startAdornment: XM,
|
|
9173
|
+
type: ZM
|
|
9174
|
+
}, bN = useUtilityClasses(yN), xN = YM.root || d.Root || InputBaseRoot, SN = JM.root || f.root || {}, CN = YM.input || d.Input || InputBaseInput;
|
|
9175
|
+
return _N = {
|
|
9176
|
+
..._N,
|
|
9177
|
+
...JM.input ?? f.input
|
|
9187
9178
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9188
9179
|
children: [
|
|
9189
9180
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9190
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9191
|
-
...
|
|
9181
|
+
(0, import_jsx_runtime.jsxs)(xN, {
|
|
9182
|
+
...SN,
|
|
9192
9183
|
ref: t,
|
|
9193
|
-
onClick:
|
|
9194
|
-
|
|
9195
|
-
...!isHostComponent_default(
|
|
9184
|
+
onClick: hN,
|
|
9185
|
+
...$M,
|
|
9186
|
+
...!isHostComponent_default(xN) && {
|
|
9196
9187
|
ownerState: {
|
|
9197
|
-
...
|
|
9198
|
-
...
|
|
9188
|
+
...yN,
|
|
9189
|
+
...SN.ownerState
|
|
9199
9190
|
}
|
|
9200
9191
|
},
|
|
9201
|
-
className: clsx_default(
|
|
9192
|
+
className: clsx_default(bN.root, SN.className, s, WM && "MuiInputBase-readOnly"),
|
|
9202
9193
|
children: [
|
|
9203
|
-
|
|
9194
|
+
XM,
|
|
9204
9195
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9205
9196
|
value: null,
|
|
9206
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9207
|
-
"aria-invalid":
|
|
9197
|
+
children: (0, import_jsx_runtime.jsx)(CN, {
|
|
9198
|
+
"aria-invalid": cN.error,
|
|
9208
9199
|
"aria-describedby": i,
|
|
9209
9200
|
autoComplete: a,
|
|
9210
9201
|
autoFocus: o,
|
|
9211
9202
|
defaultValue: h,
|
|
9212
|
-
disabled:
|
|
9203
|
+
disabled: cN.disabled,
|
|
9213
9204
|
id: E,
|
|
9214
|
-
onAnimationStart:
|
|
9205
|
+
onAnimationStart: vN,
|
|
9215
9206
|
name: q,
|
|
9216
|
-
placeholder:
|
|
9217
|
-
readOnly:
|
|
9218
|
-
required:
|
|
9219
|
-
rows:
|
|
9220
|
-
value:
|
|
9221
|
-
onKeyDown:
|
|
9222
|
-
onKeyUp:
|
|
9223
|
-
type:
|
|
9224
|
-
...
|
|
9225
|
-
...!isHostComponent_default(
|
|
9226
|
-
as:
|
|
9207
|
+
placeholder: UM,
|
|
9208
|
+
readOnly: WM,
|
|
9209
|
+
required: cN.required,
|
|
9210
|
+
rows: KM,
|
|
9211
|
+
value: eN,
|
|
9212
|
+
onKeyDown: VM,
|
|
9213
|
+
onKeyUp: HM,
|
|
9214
|
+
type: ZM,
|
|
9215
|
+
..._N,
|
|
9216
|
+
...!isHostComponent_default(CN) && {
|
|
9217
|
+
as: gN,
|
|
9227
9218
|
ownerState: {
|
|
9228
|
-
...
|
|
9229
|
-
...
|
|
9219
|
+
...yN,
|
|
9220
|
+
..._N.ownerState
|
|
9230
9221
|
}
|
|
9231
9222
|
},
|
|
9232
|
-
ref:
|
|
9233
|
-
className: clsx_default(
|
|
9234
|
-
onBlur:
|
|
9235
|
-
onChange:
|
|
9236
|
-
onFocus:
|
|
9223
|
+
ref: iN,
|
|
9224
|
+
className: clsx_default(bN.input, _N.className, WM && "MuiInputBase-readOnly"),
|
|
9225
|
+
onBlur: pN,
|
|
9226
|
+
onChange: mN,
|
|
9227
|
+
onFocus: fN
|
|
9237
9228
|
})
|
|
9238
9229
|
}),
|
|
9239
9230
|
y,
|
|
9240
|
-
|
|
9241
|
-
...
|
|
9242
|
-
startAdornment:
|
|
9231
|
+
GM ? GM({
|
|
9232
|
+
...cN,
|
|
9233
|
+
startAdornment: XM
|
|
9243
9234
|
}) : null
|
|
9244
9235
|
]
|
|
9245
9236
|
})
|
|
@@ -10315,30 +10306,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10315
10306
|
M,
|
|
10316
10307
|
i,
|
|
10317
10308
|
a
|
|
10318
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10319
|
-
|
|
10309
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), BM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), VM = useJsonViewerStore((e2) => e2.colorspace.base0C), HM = useJsonViewerStore((e2) => e2.colorspace.base0A), UM = useJsonViewerStore((e2) => e2.displayComma), WM = useJsonViewerStore((e2) => e2.quotesOnKeys), GM = useJsonViewerStore((e2) => e2.rootName), KM = U === t, qM = Number.isInteger(Number(A)), JM = useJsonViewerStore((e2) => e2.enableAdd), YM = useJsonViewerStore((e2) => e2.onAdd), XM = (0, import_react.useMemo)(() => !YM || a !== void 0 || JM === false || v === false ? false : typeof JM == "function" ? !!JM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10310
|
+
YM,
|
|
10320
10311
|
a,
|
|
10321
10312
|
i,
|
|
10322
|
-
|
|
10313
|
+
JM,
|
|
10323
10314
|
v,
|
|
10324
10315
|
t
|
|
10325
|
-
]),
|
|
10326
|
-
|
|
10316
|
+
]), ZM = useJsonViewerStore((e2) => e2.enableDelete), QM = useJsonViewerStore((e2) => e2.onDelete), $M = (0, import_react.useMemo)(() => !QM || a !== void 0 || KM || ZM === false || v === false ? false : typeof ZM == "function" ? !!ZM(i, t) : ZM, [
|
|
10317
|
+
QM,
|
|
10327
10318
|
a,
|
|
10328
|
-
|
|
10319
|
+
KM,
|
|
10329
10320
|
i,
|
|
10330
|
-
|
|
10321
|
+
ZM,
|
|
10331
10322
|
v,
|
|
10332
10323
|
t
|
|
10333
|
-
]),
|
|
10334
|
-
|
|
10324
|
+
]), eN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: tN, copied: nN } = useClipboard(), rN = useJsonViewerStore((e2) => e2.highlightUpdates), iN = (0, import_react.useMemo)(() => !rN || 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, [
|
|
10325
|
+
rN,
|
|
10335
10326
|
n,
|
|
10336
10327
|
t
|
|
10337
|
-
]),
|
|
10328
|
+
]), aN = (0, import_react.useRef)();
|
|
10338
10329
|
(0, import_react.useEffect)(() => {
|
|
10339
|
-
|
|
10330
|
+
aN.current && iN && "animate" in aN.current && aN.current.animate([
|
|
10340
10331
|
{
|
|
10341
|
-
backgroundColor:
|
|
10332
|
+
backgroundColor: HM
|
|
10342
10333
|
},
|
|
10343
10334
|
{
|
|
10344
10335
|
backgroundColor: ""
|
|
@@ -10348,40 +10339,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10348
10339
|
easing: "ease-in"
|
|
10349
10340
|
});
|
|
10350
10341
|
}, [
|
|
10351
|
-
|
|
10352
|
-
|
|
10342
|
+
HM,
|
|
10343
|
+
iN,
|
|
10353
10344
|
n,
|
|
10354
10345
|
t
|
|
10355
10346
|
]);
|
|
10356
|
-
let
|
|
10347
|
+
let oN = (0, import_react.useCallback)((e2) => {
|
|
10357
10348
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10358
10349
|
}, [
|
|
10359
10350
|
h,
|
|
10360
10351
|
t
|
|
10361
|
-
]),
|
|
10352
|
+
]), sN = (0, import_react.useCallback)(() => {
|
|
10362
10353
|
Q(false), E("");
|
|
10363
10354
|
}, [
|
|
10364
10355
|
Q,
|
|
10365
10356
|
E
|
|
10366
|
-
]),
|
|
10357
|
+
]), cN = (0, import_react.useCallback)((e2) => {
|
|
10367
10358
|
if (Q(false), _) try {
|
|
10368
|
-
|
|
10359
|
+
BM(i, t, _(e2));
|
|
10369
10360
|
} catch {
|
|
10370
10361
|
}
|
|
10371
10362
|
}, [
|
|
10372
10363
|
Q,
|
|
10373
10364
|
_,
|
|
10374
|
-
|
|
10365
|
+
BM,
|
|
10375
10366
|
i,
|
|
10376
10367
|
t
|
|
10377
|
-
]),
|
|
10368
|
+
]), lN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10378
10369
|
children: [
|
|
10379
10370
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10380
10371
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10381
10372
|
sx: {
|
|
10382
10373
|
fontSize: ".8rem"
|
|
10383
10374
|
},
|
|
10384
|
-
onClick:
|
|
10375
|
+
onClick: sN
|
|
10385
10376
|
})
|
|
10386
10377
|
}),
|
|
10387
10378
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10389,22 +10380,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10389
10380
|
sx: {
|
|
10390
10381
|
fontSize: ".8rem"
|
|
10391
10382
|
},
|
|
10392
|
-
onClick: () =>
|
|
10383
|
+
onClick: () => cN(w)
|
|
10393
10384
|
})
|
|
10394
10385
|
})
|
|
10395
10386
|
]
|
|
10396
10387
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10397
10388
|
children: [
|
|
10398
|
-
|
|
10389
|
+
eN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10399
10390
|
onClick: (e2) => {
|
|
10400
10391
|
e2.preventDefault();
|
|
10401
10392
|
try {
|
|
10402
|
-
|
|
10393
|
+
tN(i, t, copyString);
|
|
10403
10394
|
} catch (e3) {
|
|
10404
10395
|
console.error(e3);
|
|
10405
10396
|
}
|
|
10406
10397
|
},
|
|
10407
|
-
children:
|
|
10398
|
+
children: nN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10408
10399
|
sx: {
|
|
10409
10400
|
fontSize: ".8rem"
|
|
10410
10401
|
}
|
|
@@ -10415,16 +10406,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10415
10406
|
})
|
|
10416
10407
|
}),
|
|
10417
10408
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10418
|
-
onClick:
|
|
10409
|
+
onClick: oN,
|
|
10419
10410
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10420
10411
|
sx: {
|
|
10421
10412
|
fontSize: ".8rem"
|
|
10422
10413
|
}
|
|
10423
10414
|
})
|
|
10424
10415
|
}),
|
|
10425
|
-
|
|
10416
|
+
XM && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10426
10417
|
onClick: (e2) => {
|
|
10427
|
-
e2.preventDefault(),
|
|
10418
|
+
e2.preventDefault(), YM == null ? void 0 : YM(i);
|
|
10428
10419
|
},
|
|
10429
10420
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10430
10421
|
sx: {
|
|
@@ -10432,9 +10423,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10432
10423
|
}
|
|
10433
10424
|
})
|
|
10434
10425
|
}),
|
|
10435
|
-
|
|
10426
|
+
$M && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10436
10427
|
onClick: (e2) => {
|
|
10437
|
-
e2.preventDefault(),
|
|
10428
|
+
e2.preventDefault(), QM == null ? void 0 : QM(i, t);
|
|
10438
10429
|
},
|
|
10439
10430
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10440
10431
|
sx: {
|
|
@@ -10447,24 +10438,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10447
10438
|
f,
|
|
10448
10439
|
h,
|
|
10449
10440
|
_,
|
|
10450
|
-
|
|
10451
|
-
|
|
10441
|
+
nN,
|
|
10442
|
+
tN,
|
|
10452
10443
|
S,
|
|
10453
10444
|
J,
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10445
|
+
eN,
|
|
10446
|
+
XM,
|
|
10447
|
+
$M,
|
|
10457
10448
|
w,
|
|
10458
10449
|
i,
|
|
10459
10450
|
t,
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
]),
|
|
10451
|
+
YM,
|
|
10452
|
+
QM,
|
|
10453
|
+
oN,
|
|
10454
|
+
sN,
|
|
10455
|
+
cN
|
|
10456
|
+
]), uN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10466
10457
|
t
|
|
10467
|
-
]),
|
|
10458
|
+
]), dN = !uN && !!(c && d), fN = useJsonViewerStore((e2) => e2.keyRenderer), pN = (0, import_react.useMemo)(() => ({
|
|
10468
10459
|
path: i,
|
|
10469
10460
|
inspect: K,
|
|
10470
10461
|
setInspect: q,
|
|
@@ -10501,13 +10492,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10501
10492
|
opacity: 0.8
|
|
10502
10493
|
},
|
|
10503
10494
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10504
|
-
e2.isDefaultPrevented() ||
|
|
10495
|
+
e2.isDefaultPrevented() || uN || q((e3) => !e3);
|
|
10505
10496
|
}, [
|
|
10506
|
-
|
|
10497
|
+
uN,
|
|
10507
10498
|
q
|
|
10508
10499
|
]),
|
|
10509
10500
|
children: [
|
|
10510
|
-
|
|
10501
|
+
dN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10511
10502
|
className: "data-key-toggle-expanded",
|
|
10512
10503
|
sx: {
|
|
10513
10504
|
fontSize: ".8rem",
|
|
@@ -10525,27 +10516,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10525
10516
|
}
|
|
10526
10517
|
}) : null,
|
|
10527
10518
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10528
|
-
ref:
|
|
10519
|
+
ref: aN,
|
|
10529
10520
|
className: "data-key-key",
|
|
10530
10521
|
component: "span",
|
|
10531
|
-
children:
|
|
10522
|
+
children: KM && O === 0 ? GM === false ? null : WM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10532
10523
|
children: [
|
|
10533
10524
|
'"',
|
|
10534
|
-
|
|
10525
|
+
GM,
|
|
10535
10526
|
'"'
|
|
10536
10527
|
]
|
|
10537
10528
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10538
|
-
children:
|
|
10539
|
-
}) :
|
|
10540
|
-
...
|
|
10541
|
-
}) : a === void 0 && (
|
|
10529
|
+
children: GM
|
|
10530
|
+
}) : fN.when(pN) ? (0, import_jsx_runtime.jsx)(fN, {
|
|
10531
|
+
...pN
|
|
10532
|
+
}) : a === void 0 && (qM ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10542
10533
|
component: "span",
|
|
10543
10534
|
style: {
|
|
10544
|
-
color:
|
|
10545
|
-
userSelect:
|
|
10535
|
+
color: VM,
|
|
10536
|
+
userSelect: qM ? "none" : "auto"
|
|
10546
10537
|
},
|
|
10547
10538
|
children: A
|
|
10548
|
-
}) :
|
|
10539
|
+
}) : WM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10549
10540
|
children: [
|
|
10550
10541
|
'"',
|
|
10551
10542
|
A,
|
|
@@ -10555,7 +10546,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10555
10546
|
children: A
|
|
10556
10547
|
}))
|
|
10557
10548
|
}),
|
|
10558
|
-
|
|
10549
|
+
KM ? GM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10559
10550
|
className: "data-key-colon",
|
|
10560
10551
|
sx: {
|
|
10561
10552
|
mr: 0.5
|
|
@@ -10568,38 +10559,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10568
10559
|
".data-key-key:empty + &": {
|
|
10569
10560
|
display: "none"
|
|
10570
10561
|
},
|
|
10571
|
-
userSelect:
|
|
10562
|
+
userSelect: qM ? "none" : "auto"
|
|
10572
10563
|
},
|
|
10573
10564
|
children: ":"
|
|
10574
10565
|
}),
|
|
10575
10566
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10576
|
-
...
|
|
10567
|
+
...pN
|
|
10577
10568
|
}),
|
|
10578
|
-
I &&
|
|
10569
|
+
I && dN && K && lN
|
|
10579
10570
|
]
|
|
10580
10571
|
}),
|
|
10581
10572
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10582
10573
|
path: i,
|
|
10583
10574
|
value: w,
|
|
10584
10575
|
setValue: E,
|
|
10585
|
-
abortEditing:
|
|
10586
|
-
commitEditing:
|
|
10576
|
+
abortEditing: sN,
|
|
10577
|
+
commitEditing: cN
|
|
10587
10578
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10588
|
-
...
|
|
10579
|
+
...pN
|
|
10589
10580
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10590
10581
|
component: "span",
|
|
10591
10582
|
className: "data-value-fallback",
|
|
10592
10583
|
children: `fallback: ${t}`
|
|
10593
10584
|
}),
|
|
10594
10585
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10595
|
-
...
|
|
10586
|
+
...pN
|
|
10596
10587
|
}),
|
|
10597
|
-
!o &&
|
|
10588
|
+
!o && UM && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10598
10589
|
children: ","
|
|
10599
10590
|
}),
|
|
10600
|
-
I &&
|
|
10601
|
-
I && !
|
|
10602
|
-
!I && J &&
|
|
10591
|
+
I && dN && !K && lN,
|
|
10592
|
+
I && !dN && lN,
|
|
10593
|
+
!I && J && lN
|
|
10603
10594
|
]
|
|
10604
10595
|
});
|
|
10605
10596
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -10728,9 +10719,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10728
10719
|
})
|
|
10729
10720
|
})
|
|
10730
10721
|
});
|
|
10731
|
-
}, import_compiler_runtime$
|
|
10722
|
+
}, import_compiler_runtime$47 = require_compiler_runtime();
|
|
10732
10723
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
10733
|
-
let t = (0, import_compiler_runtime$
|
|
10724
|
+
let t = (0, import_compiler_runtime$47.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
10734
10725
|
if (!n) return null;
|
|
10735
10726
|
let d = !c, f;
|
|
10736
10727
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -10749,9 +10740,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10749
10740
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
10750
10741
|
});
|
|
10751
10742
|
HtmlOutput.displayName = "HtmlOutput";
|
|
10752
|
-
var import_compiler_runtime$
|
|
10743
|
+
var import_compiler_runtime$46 = require_compiler_runtime();
|
|
10753
10744
|
const ImageOutput = (e) => {
|
|
10754
|
-
let t = (0, import_compiler_runtime$
|
|
10745
|
+
let t = (0, import_compiler_runtime$46.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
10755
10746
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
10756
10747
|
src: n,
|
|
10757
10748
|
alt: c,
|
|
@@ -10764,9 +10755,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10764
10755
|
children: d
|
|
10765
10756
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
10766
10757
|
};
|
|
10767
|
-
var import_compiler_runtime$
|
|
10758
|
+
var import_compiler_runtime$45 = require_compiler_runtime();
|
|
10768
10759
|
Kbd = (e) => {
|
|
10769
|
-
let t = (0, import_compiler_runtime$
|
|
10760
|
+
let t = (0, import_compiler_runtime$45.c)(5), n;
|
|
10770
10761
|
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);
|
|
10771
10762
|
let i;
|
|
10772
10763
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -10774,9 +10765,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10774
10765
|
children: e.children
|
|
10775
10766
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
10776
10767
|
};
|
|
10777
|
-
var import_compiler_runtime$
|
|
10768
|
+
var import_compiler_runtime$44 = require_compiler_runtime();
|
|
10778
10769
|
const ExternalLink$1 = (e) => {
|
|
10779
|
-
let t = (0, import_compiler_runtime$
|
|
10770
|
+
let t = (0, import_compiler_runtime$44.c)(3), { href: n, children: i } = e, a;
|
|
10780
10771
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
10781
10772
|
href: n,
|
|
10782
10773
|
target: "_blank",
|
|
@@ -10947,17 +10938,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
10947
10938
|
os: "os",
|
|
10948
10939
|
re: "re",
|
|
10949
10940
|
sys: "sys"
|
|
10950
|
-
}, import_compiler_runtime$
|
|
10941
|
+
}, import_compiler_runtime$43 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
10951
10942
|
function useFixMode() {
|
|
10952
|
-
let e = (0, import_compiler_runtime$
|
|
10943
|
+
let e = (0, import_compiler_runtime$43.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
10953
10944
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
10954
10945
|
fixMode: t,
|
|
10955
10946
|
setFixMode: n
|
|
10956
10947
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
10957
10948
|
}
|
|
10958
|
-
var import_compiler_runtime$
|
|
10949
|
+
var import_compiler_runtime$42 = require_compiler_runtime();
|
|
10959
10950
|
const AutoFixButton = (e) => {
|
|
10960
|
-
let t = (0, import_compiler_runtime$
|
|
10951
|
+
let t = (0, import_compiler_runtime$42.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), h;
|
|
10961
10952
|
if (t[0] !== d || t[1] !== n) {
|
|
10962
10953
|
let e2;
|
|
10963
10954
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -11018,7 +11009,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11018
11009
|
};
|
|
11019
11010
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
11020
11011
|
const AIFixButton = (e) => {
|
|
11021
|
-
let t = (0, import_compiler_runtime$
|
|
11012
|
+
let t = (0, import_compiler_runtime$42.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
11022
11013
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11023
11014
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
11024
11015
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11087,7 +11078,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11087
11078
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
11088
11079
|
};
|
|
11089
11080
|
var AiModeItem = (e) => {
|
|
11090
|
-
let t = (0, import_compiler_runtime$
|
|
11081
|
+
let t = (0, import_compiler_runtime$42.c)(12), { mode: n } = e, i;
|
|
11091
11082
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
11092
11083
|
className: "h-4 w-4"
|
|
11093
11084
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -11124,9 +11115,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11124
11115
|
function useFilename() {
|
|
11125
11116
|
return useAtomValue(filenameAtom);
|
|
11126
11117
|
}
|
|
11127
|
-
var import_compiler_runtime$
|
|
11118
|
+
var import_compiler_runtime$40 = require_compiler_runtime();
|
|
11128
11119
|
const CellLink = (e) => {
|
|
11129
|
-
let t = (0, import_compiler_runtime$
|
|
11120
|
+
let t = (0, import_compiler_runtime$40.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$5, y;
|
|
11130
11121
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
11131
11122
|
let S;
|
|
11132
11123
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -11146,13 +11137,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11146
11137
|
children: w
|
|
11147
11138
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = O) : O = t[11], O;
|
|
11148
11139
|
}, CellLinkError = (e) => {
|
|
11149
|
-
let t = (0, import_compiler_runtime$
|
|
11140
|
+
let t = (0, import_compiler_runtime$40.c)(2), n;
|
|
11150
11141
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
11151
11142
|
...e,
|
|
11152
11143
|
variant: "destructive"
|
|
11153
11144
|
}), t[0] = e, t[1] = n), n;
|
|
11154
11145
|
}, CellLinkTraceback = (e) => {
|
|
11155
|
-
let t = (0, import_compiler_runtime$
|
|
11146
|
+
let t = (0, import_compiler_runtime$40.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
11156
11147
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
11157
11148
|
let s;
|
|
11158
11149
|
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];
|
|
@@ -11249,7 +11240,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11249
11240
|
value: e2
|
|
11250
11241
|
});
|
|
11251
11242
|
}
|
|
11252
|
-
var import_compiler_runtime$
|
|
11243
|
+
var import_compiler_runtime$39 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
11253
11244
|
const cleanAnsiCodes = (e) => {
|
|
11254
11245
|
let t = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
11255
11246
|
return e.replaceAll(t, "");
|
|
@@ -11317,7 +11308,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11317
11308
|
});
|
|
11318
11309
|
}
|
|
11319
11310
|
var InstallPackageLink = (e) => {
|
|
11320
|
-
let t = (0, import_compiler_runtime$
|
|
11311
|
+
let t = (0, import_compiler_runtime$39.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
|
|
11321
11312
|
t[0] !== a || t[1] !== n ? (o = (e2) => {
|
|
11322
11313
|
a(n), e2.preventDefault();
|
|
11323
11314
|
}, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
|
|
@@ -11390,15 +11381,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11390
11381
|
})
|
|
11391
11382
|
});
|
|
11392
11383
|
RenderTextWithLinks = (e) => {
|
|
11393
|
-
let t = (0, import_compiler_runtime$
|
|
11384
|
+
let t = (0, import_compiler_runtime$39.c)(4), { text: n } = e, i;
|
|
11394
11385
|
t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
|
|
11395
11386
|
let a = i, o;
|
|
11396
11387
|
return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
11397
11388
|
children: a
|
|
11398
11389
|
}), t[2] = a, t[3] = o), o;
|
|
11399
11390
|
};
|
|
11400
|
-
var import_compiler_runtime$
|
|
11401
|
-
let t = (0, import_compiler_runtime$
|
|
11391
|
+
var import_compiler_runtime$38 = require_compiler_runtime(), Tip = (e) => {
|
|
11392
|
+
let t = (0, import_compiler_runtime$38.c)(10), n = e.title ?? "Tip", i;
|
|
11402
11393
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
11403
11394
|
className: "pt-2 pb-2 font-normal",
|
|
11404
11395
|
children: n
|
|
@@ -11426,7 +11417,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11426
11417
|
}), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
|
|
11427
11418
|
};
|
|
11428
11419
|
const MarimoErrorOutput = (e) => {
|
|
11429
|
-
let t = (0, import_compiler_runtime$
|
|
11420
|
+
let t = (0, import_compiler_runtime$38.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";
|
|
11430
11421
|
if (n.some(_temp$4)) c = "Interrupted";
|
|
11431
11422
|
else if (n.some(_temp2$2)) c = "An internal error occurred";
|
|
11432
11423
|
else if (n.some(_temp3$1)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
|
|
@@ -11440,18 +11431,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11440
11431
|
}
|
|
11441
11432
|
let _, v, y, S, w, E;
|
|
11442
11433
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11443
|
-
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),
|
|
11444
|
-
t[15] === s ?
|
|
11434
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), BM = n.filter(_temp16), $ = n.filter(_temp17), VM;
|
|
11435
|
+
t[15] === s ? VM = t[16] : (VM = () => {
|
|
11445
11436
|
s.openApplication("scratchpad");
|
|
11446
|
-
}, t[15] = s, t[16] =
|
|
11447
|
-
let
|
|
11437
|
+
}, t[15] = s, t[16] = VM);
|
|
11438
|
+
let HM = VM, UM = () => {
|
|
11448
11439
|
let t2 = [];
|
|
11449
|
-
if (Q.length > 0 ||
|
|
11440
|
+
if (Q.length > 0 || BM.length > 0) {
|
|
11450
11441
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11451
11442
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11452
11443
|
children: [
|
|
11453
11444
|
Q.map(_temp20),
|
|
11454
|
-
|
|
11445
|
+
BM.map(_temp21),
|
|
11455
11446
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11456
11447
|
size: "xs",
|
|
11457
11448
|
variant: "outline",
|
|
@@ -11483,7 +11474,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11483
11474
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11484
11475
|
errors: [
|
|
11485
11476
|
...Q,
|
|
11486
|
-
...
|
|
11477
|
+
...BM
|
|
11487
11478
|
],
|
|
11488
11479
|
cellId: i
|
|
11489
11480
|
})
|
|
@@ -11644,7 +11635,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11644
11635
|
size: "xs",
|
|
11645
11636
|
variant: "link",
|
|
11646
11637
|
className: "my-2 font-normal mx-0 px-0",
|
|
11647
|
-
onClick:
|
|
11638
|
+
onClick: HM,
|
|
11648
11639
|
children: [
|
|
11649
11640
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11650
11641
|
className: "h-3"
|
|
@@ -11769,13 +11760,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11769
11760
|
})
|
|
11770
11761
|
]
|
|
11771
11762
|
}, "sql-errors")), t2;
|
|
11772
|
-
},
|
|
11773
|
-
t[17] !==
|
|
11774
|
-
className:
|
|
11763
|
+
}, WM = `font-code font-medium tracking-wide ${h}`, GM;
|
|
11764
|
+
t[17] !== WM || t[18] !== c ? (GM = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11765
|
+
className: WM,
|
|
11775
11766
|
children: c
|
|
11776
|
-
}), t[17] =
|
|
11777
|
-
let
|
|
11778
|
-
_ = 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 =
|
|
11767
|
+
}), t[17] = WM, t[18] = c, t[19] = GM) : GM = t[19];
|
|
11768
|
+
let KM = GM;
|
|
11769
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = KM, v = "flex flex-col gap-8", y = UM(), 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;
|
|
11779
11770
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11780
11771
|
let O;
|
|
11781
11772
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12103,9 +12094,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12103
12094
|
})
|
|
12104
12095
|
}, `sql-error-${t}`);
|
|
12105
12096
|
}
|
|
12106
|
-
var import_compiler_runtime$
|
|
12097
|
+
var import_compiler_runtime$37 = require_compiler_runtime();
|
|
12107
12098
|
const TextOutput = (e) => {
|
|
12108
|
-
let t = (0, import_compiler_runtime$
|
|
12099
|
+
let t = (0, import_compiler_runtime$37.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
|
|
12109
12100
|
t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
12110
12101
|
className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
12111
12102
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -12122,17 +12113,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12122
12113
|
children: v
|
|
12123
12114
|
}), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
|
|
12124
12115
|
};
|
|
12125
|
-
var import_compiler_runtime$
|
|
12116
|
+
var import_compiler_runtime$36 = require_compiler_runtime();
|
|
12126
12117
|
const VideoOutput = (e) => {
|
|
12127
|
-
let t = (0, import_compiler_runtime$
|
|
12118
|
+
let t = (0, import_compiler_runtime$36.c)(3), { src: n, className: i } = e, a;
|
|
12128
12119
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
|
|
12129
12120
|
className: i,
|
|
12130
12121
|
src: n
|
|
12131
12122
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
12132
12123
|
};
|
|
12133
|
-
var import_compiler_runtime$
|
|
12124
|
+
var import_compiler_runtime$35 = require_compiler_runtime();
|
|
12134
12125
|
useOverflowDetection = function(e, t) {
|
|
12135
|
-
let n = (0, import_compiler_runtime$
|
|
12126
|
+
let n = (0, import_compiler_runtime$35.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
|
|
12136
12127
|
return n[0] !== i || n[1] !== e ? (s = () => {
|
|
12137
12128
|
let t2 = e.current;
|
|
12138
12129
|
if (!t2 || !i) return;
|
|
@@ -12229,9 +12220,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12229
12220
|
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-jy3CfYys.js").then((e) => ({
|
|
12230
12221
|
default: e.VegaEmbed
|
|
12231
12222
|
})));
|
|
12232
|
-
var import_compiler_runtime$
|
|
12223
|
+
var import_compiler_runtime$34 = require_compiler_runtime();
|
|
12233
12224
|
ChartLoadingState = () => {
|
|
12234
|
-
let e = (0, import_compiler_runtime$
|
|
12225
|
+
let e = (0, import_compiler_runtime$34.c)(1), t;
|
|
12235
12226
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
12236
12227
|
className: "flex items-center gap-2 justify-center",
|
|
12237
12228
|
children: [
|
|
@@ -12246,7 +12237,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12246
12237
|
}), e[0] = t) : t = e[0], t;
|
|
12247
12238
|
};
|
|
12248
12239
|
ChartErrorState = (e) => {
|
|
12249
|
-
let t = (0, import_compiler_runtime$
|
|
12240
|
+
let t = (0, import_compiler_runtime$34.c)(2), { error: n } = e, i;
|
|
12250
12241
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
|
|
12251
12242
|
className: "flex items-center justify-center",
|
|
12252
12243
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -12255,7 +12246,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12255
12246
|
}), t[0] = n, t[1] = i), i;
|
|
12256
12247
|
};
|
|
12257
12248
|
ChartInfoState = (e) => {
|
|
12258
|
-
let t = (0, import_compiler_runtime$
|
|
12249
|
+
let t = (0, import_compiler_runtime$34.c)(8), { children: n, className: i } = e, o;
|
|
12259
12250
|
t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
|
|
12260
12251
|
let s;
|
|
12261
12252
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -12275,11 +12266,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12275
12266
|
]
|
|
12276
12267
|
}), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
|
|
12277
12268
|
};
|
|
12278
|
-
let import_compiler_runtime$
|
|
12279
|
-
import_compiler_runtime$
|
|
12269
|
+
let import_compiler_runtime$33;
|
|
12270
|
+
import_compiler_runtime$33 = require_compiler_runtime();
|
|
12280
12271
|
Tabs = Root2;
|
|
12281
12272
|
TabsList = import_react.forwardRef((e, t) => {
|
|
12282
|
-
let n = (0, import_compiler_runtime$
|
|
12273
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
12283
12274
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12284
12275
|
let s;
|
|
12285
12276
|
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);
|
|
@@ -12292,7 +12283,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12292
12283
|
});
|
|
12293
12284
|
TabsList.displayName = List.displayName;
|
|
12294
12285
|
TabsTrigger = import_react.forwardRef((e, t) => {
|
|
12295
|
-
let n = (0, import_compiler_runtime$
|
|
12286
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
12296
12287
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12297
12288
|
let s;
|
|
12298
12289
|
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);
|
|
@@ -12305,7 +12296,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12305
12296
|
});
|
|
12306
12297
|
TabsTrigger.displayName = Trigger.displayName;
|
|
12307
12298
|
TabsContent = import_react.forwardRef((e, t) => {
|
|
12308
|
-
let n = (0, import_compiler_runtime$
|
|
12299
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
12309
12300
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
12310
12301
|
let s;
|
|
12311
12302
|
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);
|
|
@@ -12317,9 +12308,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12317
12308
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
12318
12309
|
});
|
|
12319
12310
|
TabsContent.displayName = Content.displayName;
|
|
12320
|
-
var import_compiler_runtime$
|
|
12311
|
+
var import_compiler_runtime$32 = require_compiler_runtime();
|
|
12321
12312
|
const WithLocale = (e) => {
|
|
12322
|
-
let t = (0, import_compiler_runtime$
|
|
12313
|
+
let t = (0, import_compiler_runtime$32.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
12323
12314
|
return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
12324
12315
|
};
|
|
12325
12316
|
function tzName(e, t, n = "long") {
|
|
@@ -12655,7 +12646,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12655
12646
|
items: /* @__PURE__ */ new Map(),
|
|
12656
12647
|
groups: /* @__PURE__ */ new Set()
|
|
12657
12648
|
}
|
|
12658
|
-
})), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), s = L(() => /* @__PURE__ */ new Set()), c = pe(e), { label: d, children: f, value: h, onValueChange: _, filter: v, shouldFilter: y, loop: S, disablePointerSelection: w = false, vimBindings: E = true, ...O } = e, A = useId$
|
|
12649
|
+
})), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), s = L(() => /* @__PURE__ */ new Set()), c = pe(e), { label: d, children: f, value: h, onValueChange: _, filter: v, shouldFilter: y, loop: S, disablePointerSelection: w = false, vimBindings: E = true, ...O } = e, A = useId$2(), M = useId$2(), I = useId$2(), z = import_react.useRef(null), U = ke();
|
|
12659
12650
|
k(() => {
|
|
12660
12651
|
if (h !== void 0) {
|
|
12661
12652
|
let e2 = h.trim();
|
|
@@ -12664,7 +12655,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12664
12655
|
}, [
|
|
12665
12656
|
h
|
|
12666
12657
|
]), k(() => {
|
|
12667
|
-
U(6,
|
|
12658
|
+
U(6, VM);
|
|
12668
12659
|
}, []);
|
|
12669
12660
|
let K = import_react.useMemo(() => ({
|
|
12670
12661
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12673,7 +12664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12673
12664
|
var _a2;
|
|
12674
12665
|
var a2, o2, s2;
|
|
12675
12666
|
if (!Object.is(n.current[e2], t2)) {
|
|
12676
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12667
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, BM);
|
|
12677
12668
|
else if (e2 === "value") {
|
|
12678
12669
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12679
12670
|
let e3 = document.getElementById(I);
|
|
@@ -12681,8 +12672,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12681
12672
|
}
|
|
12682
12673
|
if (U(7, () => {
|
|
12683
12674
|
var _a3;
|
|
12684
|
-
n.current.selectedItemId = (_a3 =
|
|
12685
|
-
}), i2 || U(5,
|
|
12675
|
+
n.current.selectedItemId = (_a3 = HM()) == null ? void 0 : _a3.id, K.emit();
|
|
12676
|
+
}), i2 || U(5, VM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12686
12677
|
let e3 = t2 ?? "";
|
|
12687
12678
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12688
12679
|
return;
|
|
@@ -12707,12 +12698,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12707
12698
|
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([
|
|
12708
12699
|
e2
|
|
12709
12700
|
]))), U(3, () => {
|
|
12710
|
-
$(), Q(), n.current.value ||
|
|
12701
|
+
$(), Q(), n.current.value || BM(), K.emit();
|
|
12711
12702
|
}), () => {
|
|
12712
12703
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12713
|
-
let t3 =
|
|
12704
|
+
let t3 = HM();
|
|
12714
12705
|
U(4, () => {
|
|
12715
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12706
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && BM(), K.emit();
|
|
12716
12707
|
});
|
|
12717
12708
|
}),
|
|
12718
12709
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12745,7 +12736,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12745
12736
|
]);
|
|
12746
12737
|
});
|
|
12747
12738
|
let i2 = z.current;
|
|
12748
|
-
|
|
12739
|
+
UM().sort((t3, n2) => {
|
|
12749
12740
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12750
12741
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12751
12742
|
}).forEach((e3) => {
|
|
@@ -12757,9 +12748,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12757
12748
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12758
12749
|
});
|
|
12759
12750
|
}
|
|
12760
|
-
function
|
|
12751
|
+
function BM() {
|
|
12761
12752
|
var _a2;
|
|
12762
|
-
let e2 = (_a2 =
|
|
12753
|
+
let e2 = (_a2 = UM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12763
12754
|
K.setState("value", e2 || void 0);
|
|
12764
12755
|
}
|
|
12765
12756
|
function $() {
|
|
@@ -12780,43 +12771,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12780
12771
|
}
|
|
12781
12772
|
n.current.filtered.count = e2;
|
|
12782
12773
|
}
|
|
12783
|
-
function
|
|
12774
|
+
function VM() {
|
|
12784
12775
|
var _a2, _b;
|
|
12785
12776
|
var e2;
|
|
12786
|
-
let t2 =
|
|
12777
|
+
let t2 = HM();
|
|
12787
12778
|
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({
|
|
12788
12779
|
block: "nearest"
|
|
12789
12780
|
})), t2.scrollIntoView({
|
|
12790
12781
|
block: "nearest"
|
|
12791
12782
|
}));
|
|
12792
12783
|
}
|
|
12793
|
-
function
|
|
12784
|
+
function HM() {
|
|
12794
12785
|
var _a2;
|
|
12795
12786
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12796
12787
|
}
|
|
12797
|
-
function
|
|
12788
|
+
function UM() {
|
|
12798
12789
|
var _a2;
|
|
12799
12790
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12800
12791
|
}
|
|
12801
|
-
function
|
|
12802
|
-
let t2 =
|
|
12792
|
+
function WM(e2) {
|
|
12793
|
+
let t2 = UM()[e2];
|
|
12803
12794
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12804
12795
|
}
|
|
12805
|
-
function
|
|
12796
|
+
function GM(e2) {
|
|
12806
12797
|
var t2;
|
|
12807
|
-
let n2 =
|
|
12798
|
+
let n2 = HM(), i2 = UM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12808
12799
|
(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));
|
|
12809
12800
|
}
|
|
12810
|
-
function
|
|
12801
|
+
function KM(e2) {
|
|
12811
12802
|
var _a2;
|
|
12812
|
-
let t2 = (_a2 =
|
|
12803
|
+
let t2 = (_a2 = HM()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12813
12804
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12814
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12805
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : GM(e2);
|
|
12815
12806
|
}
|
|
12816
|
-
let
|
|
12817
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12818
|
-
},
|
|
12819
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12807
|
+
let qM = () => WM(UM().length - 1), JM = (e2) => {
|
|
12808
|
+
e2.preventDefault(), e2.metaKey ? qM() : e2.altKey ? KM(1) : GM(1);
|
|
12809
|
+
}, YM = (e2) => {
|
|
12810
|
+
e2.preventDefault(), e2.metaKey ? WM(0) : e2.altKey ? KM(-1) : GM(-1);
|
|
12820
12811
|
};
|
|
12821
12812
|
return import_react.createElement(Primitive.div, {
|
|
12822
12813
|
ref: t,
|
|
@@ -12830,27 +12821,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12830
12821
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12831
12822
|
case "n":
|
|
12832
12823
|
case "j":
|
|
12833
|
-
E && e2.ctrlKey &&
|
|
12824
|
+
E && e2.ctrlKey && JM(e2);
|
|
12834
12825
|
break;
|
|
12835
12826
|
case "ArrowDown":
|
|
12836
|
-
|
|
12827
|
+
JM(e2);
|
|
12837
12828
|
break;
|
|
12838
12829
|
case "p":
|
|
12839
12830
|
case "k":
|
|
12840
|
-
E && e2.ctrlKey &&
|
|
12831
|
+
E && e2.ctrlKey && YM(e2);
|
|
12841
12832
|
break;
|
|
12842
12833
|
case "ArrowUp":
|
|
12843
|
-
|
|
12834
|
+
YM(e2);
|
|
12844
12835
|
break;
|
|
12845
12836
|
case "Home":
|
|
12846
|
-
e2.preventDefault(),
|
|
12837
|
+
e2.preventDefault(), WM(0);
|
|
12847
12838
|
break;
|
|
12848
12839
|
case "End":
|
|
12849
|
-
e2.preventDefault(),
|
|
12840
|
+
e2.preventDefault(), qM();
|
|
12850
12841
|
break;
|
|
12851
12842
|
case "Enter": {
|
|
12852
12843
|
e2.preventDefault();
|
|
12853
|
-
let t3 =
|
|
12844
|
+
let t3 = HM();
|
|
12854
12845
|
if (t3) {
|
|
12855
12846
|
let e3 = new Event(Z);
|
|
12856
12847
|
t3.dispatchEvent(e3);
|
|
@@ -12870,7 +12861,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12870
12861
|
}, e2))));
|
|
12871
12862
|
}), he$1 = import_react.forwardRef((e, t) => {
|
|
12872
12863
|
var _a2;
|
|
12873
|
-
let n = useId$
|
|
12864
|
+
let n = useId$2(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), s = pe(e), d = ((_a2 = s.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
|
|
12874
12865
|
k(() => {
|
|
12875
12866
|
if (!d) return o.item(n, a == null ? void 0 : a.id);
|
|
12876
12867
|
}, [
|
|
@@ -12912,7 +12903,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12912
12903
|
onClick: w ? void 0 : y
|
|
12913
12904
|
}, e.children);
|
|
12914
12905
|
}), Ee = import_react.forwardRef((e, t) => {
|
|
12915
|
-
let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$
|
|
12906
|
+
let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$2(), d = import_react.useRef(null), f = import_react.useRef(null), h = useId$2(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(s) : true);
|
|
12916
12907
|
k(() => _.group(s), []), ve(s, d, [
|
|
12917
12908
|
e.value,
|
|
12918
12909
|
e.heading,
|
|
@@ -13138,10 +13129,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13138
13129
|
function smartMatchFilter(e, t, n) {
|
|
13139
13130
|
return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
|
|
13140
13131
|
}
|
|
13141
|
-
let import_compiler_runtime$
|
|
13142
|
-
import_compiler_runtime$
|
|
13132
|
+
let import_compiler_runtime$31;
|
|
13133
|
+
import_compiler_runtime$31 = require_compiler_runtime();
|
|
13143
13134
|
Command = import_react.forwardRef((e, t) => {
|
|
13144
|
-
let n = (0, import_compiler_runtime$
|
|
13135
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13145
13136
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13146
13137
|
let s;
|
|
13147
13138
|
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);
|
|
@@ -13155,7 +13146,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13155
13146
|
});
|
|
13156
13147
|
Command.displayName = _e.displayName;
|
|
13157
13148
|
CommandInput = import_react.forwardRef((e, t) => {
|
|
13158
|
-
let n = (0, import_compiler_runtime$
|
|
13149
|
+
let n = (0, import_compiler_runtime$31.c)(19), i, o, s, c;
|
|
13159
13150
|
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);
|
|
13160
13151
|
let d;
|
|
13161
13152
|
n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
|
|
@@ -13183,7 +13174,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13183
13174
|
});
|
|
13184
13175
|
CommandInput.displayName = _e.Input.displayName;
|
|
13185
13176
|
CommandList = import_react.forwardRef((e, t) => {
|
|
13186
|
-
let n = (0, import_compiler_runtime$
|
|
13177
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13187
13178
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13188
13179
|
let s;
|
|
13189
13180
|
n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
|
|
@@ -13196,7 +13187,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13196
13187
|
});
|
|
13197
13188
|
CommandList.displayName = _e.List.displayName;
|
|
13198
13189
|
CommandEmpty = import_react.forwardRef((e, t) => {
|
|
13199
|
-
let n = (0, import_compiler_runtime$
|
|
13190
|
+
let n = (0, import_compiler_runtime$31.c)(3), i;
|
|
13200
13191
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
|
|
13201
13192
|
ref: t,
|
|
13202
13193
|
className: "py-6 text-center text-sm",
|
|
@@ -13205,7 +13196,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13205
13196
|
});
|
|
13206
13197
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
13207
13198
|
var CommandGroup = import_react.forwardRef((e, t) => {
|
|
13208
|
-
let n = (0, import_compiler_runtime$
|
|
13199
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, o;
|
|
13209
13200
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13210
13201
|
let s;
|
|
13211
13202
|
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);
|
|
@@ -13218,7 +13209,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13218
13209
|
});
|
|
13219
13210
|
CommandGroup.displayName = _e.Group.displayName;
|
|
13220
13211
|
CommandSeparator = import_react.forwardRef((e, t) => {
|
|
13221
|
-
let n = (0, import_compiler_runtime$
|
|
13212
|
+
let n = (0, import_compiler_runtime$31.c)(9), i, a;
|
|
13222
13213
|
n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
|
|
13223
13214
|
let o;
|
|
13224
13215
|
n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
|
|
@@ -13233,7 +13224,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13233
13224
|
});
|
|
13234
13225
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
13235
13226
|
CommandItem = import_react.forwardRef((e, t) => {
|
|
13236
|
-
let n = (0, import_compiler_runtime$
|
|
13227
|
+
let n = (0, import_compiler_runtime$31.c)(17), i, o, s, c, d;
|
|
13237
13228
|
if (n[0] !== t || n[1] !== e) {
|
|
13238
13229
|
let { className: f2, variant: h, inset: _, ...v } = e;
|
|
13239
13230
|
i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
|
|
@@ -13250,9 +13241,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13250
13241
|
}), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
|
|
13251
13242
|
});
|
|
13252
13243
|
CommandItem.displayName = _e.Item.displayName;
|
|
13253
|
-
var import_compiler_runtime$
|
|
13244
|
+
var import_compiler_runtime$30 = require_compiler_runtime();
|
|
13254
13245
|
const DraggablePopover = (e) => {
|
|
13255
|
-
let t = (0, import_compiler_runtime$
|
|
13246
|
+
let t = (0, import_compiler_runtime$30.c)(25), n, i, a;
|
|
13256
13247
|
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);
|
|
13257
13248
|
let o;
|
|
13258
13249
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
@@ -13492,7 +13483,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13492
13483
|
negate: false
|
|
13493
13484
|
};
|
|
13494
13485
|
};
|
|
13495
|
-
var import_compiler_runtime$
|
|
13486
|
+
var import_compiler_runtime$29 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
13496
13487
|
" ": {
|
|
13497
13488
|
marker: "\u2423",
|
|
13498
13489
|
name: "space"
|
|
@@ -13568,7 +13559,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13568
13559
|
}
|
|
13569
13560
|
};
|
|
13570
13561
|
function WhitespaceMarkers(e) {
|
|
13571
|
-
let t = (0, import_compiler_runtime$
|
|
13562
|
+
let t = (0, import_compiler_runtime$29.c)(7), { value: n } = e;
|
|
13572
13563
|
if (!n) return null;
|
|
13573
13564
|
let i;
|
|
13574
13565
|
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
@@ -13583,7 +13574,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13583
13574
|
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
13584
13575
|
}
|
|
13585
13576
|
function SentinelCell(e) {
|
|
13586
|
-
let t = (0, import_compiler_runtime$
|
|
13577
|
+
let t = (0, import_compiler_runtime$29.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
13587
13578
|
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];
|
|
13588
13579
|
let o = a, s;
|
|
13589
13580
|
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];
|
|
@@ -15647,7 +15638,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15647
15638
|
],
|
|
15648
15639
|
unknown: []
|
|
15649
15640
|
};
|
|
15650
|
-
var import_compiler_runtime$
|
|
15641
|
+
var import_compiler_runtime$28 = require_compiler_runtime();
|
|
15651
15642
|
function renderFormatOptions(e, t) {
|
|
15652
15643
|
var _a2, _b, _c;
|
|
15653
15644
|
let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
|
|
@@ -15846,7 +15837,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15846
15837
|
}) : null;
|
|
15847
15838
|
}
|
|
15848
15839
|
const ClearFilterMenuItem = (e) => {
|
|
15849
|
-
let t = (0, import_compiler_runtime$
|
|
15840
|
+
let t = (0, import_compiler_runtime$28.c)(5), { column: n } = e, i;
|
|
15850
15841
|
t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
|
|
15851
15842
|
let a;
|
|
15852
15843
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -15876,7 +15867,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15876
15867
|
});
|
|
15877
15868
|
}
|
|
15878
15869
|
const FilterButtons = (e) => {
|
|
15879
|
-
let t = (0, import_compiler_runtime$
|
|
15870
|
+
let t = (0, import_compiler_runtime$28.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
|
|
15880
15871
|
t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
|
|
15881
15872
|
variant: "link",
|
|
15882
15873
|
size: "sm",
|
|
@@ -15901,9 +15892,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15901
15892
|
]
|
|
15902
15893
|
}), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
|
|
15903
15894
|
};
|
|
15904
|
-
var import_compiler_runtime$
|
|
15895
|
+
var import_compiler_runtime$27 = require_compiler_runtime();
|
|
15905
15896
|
const MimeCell = (e) => {
|
|
15906
|
-
let t = (0, import_compiler_runtime$
|
|
15897
|
+
let t = (0, import_compiler_runtime$27.c)(6), { value: n } = e, i;
|
|
15907
15898
|
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
15908
15899
|
channel: "output",
|
|
15909
15900
|
data: n.data,
|
|
@@ -16073,7 +16064,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16073
16064
|
if (isRecord(e2)) return e2[n];
|
|
16074
16065
|
}
|
|
16075
16066
|
}
|
|
16076
|
-
var TOP_K_ROWS = 30;
|
|
16067
|
+
var TOP_K_ROWS$1 = 30;
|
|
16077
16068
|
const DataTableColumnHeader = ({ column: e, header: t, subheader: n, className: i, calculateTopKRows: o, table: s }) => {
|
|
16078
16069
|
let [c, d] = (0, import_react.useState)(false), { locale: f } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
16079
16070
|
if (!t) return null;
|
|
@@ -16396,7 +16387,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16396
16387
|
}, PopoverFilterByValues = ({ setIsFilterValueOpen: e, calculateTopKRows: t, column: i }) => {
|
|
16397
16388
|
let [a, o] = (0, import_react.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, import_react.useState)(""), { data: d, isPending: h, error: _ } = useAsyncData(async () => t ? (await t({
|
|
16398
16389
|
column: i.id,
|
|
16399
|
-
k: TOP_K_ROWS
|
|
16390
|
+
k: TOP_K_ROWS$1
|
|
16400
16391
|
})).data : null, []), v = (0, import_react.useMemo)(() => {
|
|
16401
16392
|
if (!d) return [];
|
|
16402
16393
|
try {
|
|
@@ -16503,11 +16494,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16503
16494
|
})
|
|
16504
16495
|
]
|
|
16505
16496
|
}),
|
|
16506
|
-
v.length === TOP_K_ROWS && (0, import_jsx_runtime.jsxs)("span", {
|
|
16497
|
+
v.length === TOP_K_ROWS$1 && (0, import_jsx_runtime.jsxs)("span", {
|
|
16507
16498
|
className: "text-xs text-muted-foreground mt-1.5 text-center",
|
|
16508
16499
|
children: [
|
|
16509
16500
|
"Only showing the top ",
|
|
16510
|
-
TOP_K_ROWS,
|
|
16501
|
+
TOP_K_ROWS$1,
|
|
16511
16502
|
" values"
|
|
16512
16503
|
]
|
|
16513
16504
|
})
|
|
@@ -16586,9 +16577,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16586
16577
|
let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
|
|
16587
16578
|
return e !== t && (a(t), n(e)), i;
|
|
16588
16579
|
};
|
|
16589
|
-
var import_compiler_runtime$
|
|
16580
|
+
var import_compiler_runtime$26 = require_compiler_runtime();
|
|
16590
16581
|
DelayMount = (e) => {
|
|
16591
|
-
let t = (0, import_compiler_runtime$
|
|
16582
|
+
let t = (0, import_compiler_runtime$26.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;
|
|
16592
16583
|
t[0] !== h || t[1] !== f ? (w = {
|
|
16593
16584
|
threshold: f,
|
|
16594
16585
|
root: null,
|
|
@@ -16619,9 +16610,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16619
16610
|
children: J
|
|
16620
16611
|
}), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
|
|
16621
16612
|
};
|
|
16622
|
-
var import_compiler_runtime$
|
|
16613
|
+
var import_compiler_runtime$25 = require_compiler_runtime();
|
|
16623
16614
|
const DatePopover = (e) => {
|
|
16624
|
-
let t = (0, import_compiler_runtime$
|
|
16615
|
+
let t = (0, import_compiler_runtime$25.c)(15), { date: n, type: i, children: a } = e;
|
|
16625
16616
|
if (!n || Number.isNaN(new Date(n).getTime())) return a;
|
|
16626
16617
|
let o;
|
|
16627
16618
|
t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
|
|
@@ -16661,7 +16652,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16661
16652
|
}), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
|
|
16662
16653
|
};
|
|
16663
16654
|
var TimezoneDisplay = (e) => {
|
|
16664
|
-
let t = (0, import_compiler_runtime$
|
|
16655
|
+
let t = (0, import_compiler_runtime$25.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
16665
16656
|
t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
|
|
16666
16657
|
let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
|
|
16667
16658
|
t[2] === s ? c = t[3] : (c = s ? {
|
|
@@ -16737,7 +16728,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16737
16728
|
]
|
|
16738
16729
|
}), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
|
|
16739
16730
|
}, DateDisplay = (e) => {
|
|
16740
|
-
let t = (0, import_compiler_runtime$
|
|
16731
|
+
let t = (0, import_compiler_runtime$25.c)(6), { date: n } = e, i;
|
|
16741
16732
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
16742
16733
|
timeZone: "UTC",
|
|
16743
16734
|
dateStyle: "long"
|
|
@@ -16749,7 +16740,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16749
16740
|
children: o
|
|
16750
16741
|
}), t[4] = o, t[5] = s), s;
|
|
16751
16742
|
}, RelativeTime = (e) => {
|
|
16752
|
-
let t = (0, import_compiler_runtime$
|
|
16743
|
+
let t = (0, import_compiler_runtime$25.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
|
|
16753
16744
|
if (t[0] !== n || t[1] !== i) {
|
|
16754
16745
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
16755
16746
|
bb0: {
|
|
@@ -16801,7 +16792,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16801
16792
|
return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
|
|
16802
16793
|
children: a
|
|
16803
16794
|
}), t[4] = a, t[5] = s), s;
|
|
16804
|
-
}, import_compiler_runtime$
|
|
16795
|
+
}, import_compiler_runtime$24 = require_compiler_runtime(), hashString = (e) => {
|
|
16805
16796
|
let t = 0;
|
|
16806
16797
|
for (let n = 0; n < e.length; n++) {
|
|
16807
16798
|
let i = e.charCodeAt(n);
|
|
@@ -16818,7 +16809,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16818
16809
|
return i;
|
|
16819
16810
|
};
|
|
16820
16811
|
const ChartSkeleton = (e) => {
|
|
16821
|
-
let t = (0, import_compiler_runtime$
|
|
16812
|
+
let t = (0, import_compiler_runtime$24.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
|
|
16822
16813
|
if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
|
|
16823
16814
|
let e2 = generateHeights({
|
|
16824
16815
|
numBars: 9,
|
|
@@ -17197,7 +17188,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17197
17188
|
let c = s / t.length;
|
|
17198
17189
|
return Math.max(c, 1);
|
|
17199
17190
|
}
|
|
17200
|
-
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$
|
|
17191
|
+
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$23;
|
|
17201
17192
|
MAX_BAR_HEIGHT = 20;
|
|
17202
17193
|
BIN_END_EXTENSION_FACTOR = 0.1;
|
|
17203
17194
|
CONCAT_CHART_HEIGHT = 30;
|
|
@@ -17834,11 +17825,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
17834
17825
|
}, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
|
|
17835
17826
|
includeCharts: false
|
|
17836
17827
|
})), _a);
|
|
17837
|
-
import_compiler_runtime$
|
|
17828
|
+
import_compiler_runtime$23 = require_compiler_runtime();
|
|
17838
17829
|
ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
17839
17830
|
var batchedLoader = createBatchedLoader();
|
|
17840
17831
|
const TableColumnSummary = (e) => {
|
|
17841
|
-
let t = (0, import_compiler_runtime$
|
|
17832
|
+
let t = (0, import_compiler_runtime$23.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
|
|
17842
17833
|
if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
|
|
17843
17834
|
let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
|
|
17844
17835
|
if (e2) {
|
|
@@ -18049,8 +18040,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18049
18040
|
let a = e.at(-1);
|
|
18050
18041
|
return n.push(a), n;
|
|
18051
18042
|
}
|
|
18052
|
-
var import_compiler_runtime$
|
|
18053
|
-
let t = (0, import_compiler_runtime$
|
|
18043
|
+
var import_compiler_runtime$22 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
18044
|
+
let t = (0, import_compiler_runtime$22.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
|
|
18054
18045
|
if (i) {
|
|
18055
18046
|
let e2;
|
|
18056
18047
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
|
|
@@ -18124,7 +18115,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18124
18115
|
return t.some((e2) => n.has(e2.type));
|
|
18125
18116
|
}
|
|
18126
18117
|
const MarkdownUrlDetector = (e) => {
|
|
18127
|
-
let t = (0, import_compiler_runtime$
|
|
18118
|
+
let t = (0, import_compiler_runtime$22.c)(4), { content: n, parts: i } = e;
|
|
18128
18119
|
if (isMarkdown(n)) {
|
|
18129
18120
|
let e2;
|
|
18130
18121
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
|
|
@@ -18141,7 +18132,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18141
18132
|
url: e2.url
|
|
18142
18133
|
}, t) : e2.value);
|
|
18143
18134
|
var URLAnchor = (e) => {
|
|
18144
|
-
let t = (0, import_compiler_runtime$
|
|
18135
|
+
let t = (0, import_compiler_runtime$22.c)(3), { url: n } = e, i;
|
|
18145
18136
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
|
|
18146
18137
|
let a;
|
|
18147
18138
|
return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
|
|
@@ -18533,10 +18524,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18533
18524
|
maximumFractionDigits: maxFractionalDigits(n)
|
|
18534
18525
|
}).format(e);
|
|
18535
18526
|
};
|
|
18536
|
-
let import_compiler_runtime$
|
|
18537
|
-
import_compiler_runtime$
|
|
18527
|
+
let import_compiler_runtime$21;
|
|
18528
|
+
import_compiler_runtime$21 = require_compiler_runtime();
|
|
18538
18529
|
Table = import_react.forwardRef((e, t) => {
|
|
18539
|
-
let n = (0, import_compiler_runtime$
|
|
18530
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18540
18531
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18541
18532
|
let s;
|
|
18542
18533
|
n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
|
|
@@ -18552,7 +18543,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18552
18543
|
});
|
|
18553
18544
|
Table.displayName = "Table";
|
|
18554
18545
|
TableHeader = import_react.forwardRef((e, t) => {
|
|
18555
|
-
let n = (0, import_compiler_runtime$
|
|
18546
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18556
18547
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18557
18548
|
let s;
|
|
18558
18549
|
n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
|
|
@@ -18565,7 +18556,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18565
18556
|
});
|
|
18566
18557
|
TableHeader.displayName = "TableHeader";
|
|
18567
18558
|
TableBody = import_react.forwardRef((e, t) => {
|
|
18568
|
-
let n = (0, import_compiler_runtime$
|
|
18559
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18569
18560
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18570
18561
|
let s;
|
|
18571
18562
|
n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
|
|
@@ -18578,7 +18569,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18578
18569
|
});
|
|
18579
18570
|
TableBody.displayName = "TableBody";
|
|
18580
18571
|
var TableFooter = import_react.forwardRef((e, t) => {
|
|
18581
|
-
let n = (0, import_compiler_runtime$
|
|
18572
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18582
18573
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18583
18574
|
let s;
|
|
18584
18575
|
n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18591,7 +18582,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18591
18582
|
});
|
|
18592
18583
|
TableFooter.displayName = "TableFooter";
|
|
18593
18584
|
TableRow = import_react.forwardRef((e, t) => {
|
|
18594
|
-
let n = (0, import_compiler_runtime$
|
|
18585
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18595
18586
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18596
18587
|
let s;
|
|
18597
18588
|
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);
|
|
@@ -18604,7 +18595,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18604
18595
|
});
|
|
18605
18596
|
TableRow.displayName = "TableRow";
|
|
18606
18597
|
TableHead = import_react.forwardRef((e, t) => {
|
|
18607
|
-
let n = (0, import_compiler_runtime$
|
|
18598
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18608
18599
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18609
18600
|
let s;
|
|
18610
18601
|
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);
|
|
@@ -18617,7 +18608,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18617
18608
|
});
|
|
18618
18609
|
TableHead.displayName = "TableHead";
|
|
18619
18610
|
TableCell = import_react.forwardRef((e, t) => {
|
|
18620
|
-
let n = (0, import_compiler_runtime$
|
|
18611
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18621
18612
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18622
18613
|
let s;
|
|
18623
18614
|
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);
|
|
@@ -18630,7 +18621,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18630
18621
|
});
|
|
18631
18622
|
TableCell.displayName = "TableCell";
|
|
18632
18623
|
var TableCaption = import_react.forwardRef((e, t) => {
|
|
18633
|
-
let n = (0, import_compiler_runtime$
|
|
18624
|
+
let n = (0, import_compiler_runtime$21.c)(9), i, o;
|
|
18634
18625
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
18635
18626
|
let s;
|
|
18636
18627
|
n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -18835,7 +18826,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18835
18826
|
resizeHandleEnabled: "data-panel-resize-handle-enabled",
|
|
18836
18827
|
resizeHandleId: "data-panel-resize-handle-id",
|
|
18837
18828
|
resizeHandleState: "data-resize-handle-state"
|
|
18838
|
-
}, PRECISION = 10, useIsomorphicLayoutEffect$1 = import_react.useLayoutEffect, useId = import_react.useId, wrappedUseId = typeof useId == "function" ? useId : () => null, counter = 0;
|
|
18829
|
+
}, PRECISION = 10, useIsomorphicLayoutEffect$1 = import_react.useLayoutEffect, useId$1 = import_react.useId, wrappedUseId = typeof useId$1 == "function" ? useId$1 : () => null, counter = 0;
|
|
18839
18830
|
function useUniqueId(e = null) {
|
|
18840
18831
|
let t = wrappedUseId(), n = (0, import_react.useRef)(e || t || null);
|
|
18841
18832
|
return n.current === null && (n.current = "" + counter++), e ?? n.current;
|
|
@@ -18843,7 +18834,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18843
18834
|
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 }) {
|
|
18844
18835
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18845
18836
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18846
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
18837
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, BM = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18847
18838
|
callbacks: {
|
|
18848
18839
|
onCollapse: f,
|
|
18849
18840
|
onExpand: h,
|
|
@@ -18856,7 +18847,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18856
18847
|
maxSize: c,
|
|
18857
18848
|
minSize: d
|
|
18858
18849
|
},
|
|
18859
|
-
id:
|
|
18850
|
+
id: BM,
|
|
18860
18851
|
idIsFromProps: s !== void 0,
|
|
18861
18852
|
order: v
|
|
18862
18853
|
});
|
|
@@ -18866,7 +18857,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18866
18857
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18867
18858
|
...t2
|
|
18868
18859
|
};
|
|
18869
|
-
$.current.id =
|
|
18860
|
+
$.current.id = BM, $.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);
|
|
18870
18861
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18871
18862
|
let e2 = $.current;
|
|
18872
18863
|
return q(e2), () => {
|
|
@@ -18874,7 +18865,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18874
18865
|
};
|
|
18875
18866
|
}, [
|
|
18876
18867
|
v,
|
|
18877
|
-
|
|
18868
|
+
BM,
|
|
18878
18869
|
q,
|
|
18879
18870
|
Q
|
|
18880
18871
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18885,7 +18876,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18885
18876
|
A($.current, e2);
|
|
18886
18877
|
},
|
|
18887
18878
|
getId() {
|
|
18888
|
-
return
|
|
18879
|
+
return BM;
|
|
18889
18880
|
},
|
|
18890
18881
|
getSize() {
|
|
18891
18882
|
return M($.current);
|
|
@@ -18904,24 +18895,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18904
18895
|
A,
|
|
18905
18896
|
M,
|
|
18906
18897
|
U,
|
|
18907
|
-
|
|
18898
|
+
BM,
|
|
18908
18899
|
J
|
|
18909
18900
|
]);
|
|
18910
|
-
let
|
|
18901
|
+
let VM = I($.current, a);
|
|
18911
18902
|
return (0, import_react.createElement)(S, {
|
|
18912
18903
|
...w,
|
|
18913
18904
|
children: e,
|
|
18914
18905
|
className: t,
|
|
18915
|
-
id:
|
|
18906
|
+
id: BM,
|
|
18916
18907
|
style: {
|
|
18917
|
-
...
|
|
18908
|
+
...VM,
|
|
18918
18909
|
...y
|
|
18919
18910
|
},
|
|
18920
18911
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
18921
18912
|
[DATA_ATTRIBUTES.panel]: "",
|
|
18922
18913
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
18923
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
18924
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
18914
|
+
[DATA_ATTRIBUTES.panelId]: BM,
|
|
18915
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + VM.flexGrow).toFixed(1)
|
|
18925
18916
|
});
|
|
18926
18917
|
}
|
|
18927
18918
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19694,7 +19685,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19694
19685
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19695
19686
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19696
19687
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19697
|
-
}, []),
|
|
19688
|
+
}, []), BM = (0, import_react.useCallback)((e2, t2) => {
|
|
19698
19689
|
let { panelDataArray: n2 } = K.current;
|
|
19699
19690
|
return computePanelFlexBoxStyle({
|
|
19700
19691
|
defaultSize: t2,
|
|
@@ -19709,10 +19700,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19709
19700
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19710
19701
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19711
19702
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19712
|
-
}, []),
|
|
19703
|
+
}, []), VM = (0, import_react.useCallback)((e2) => {
|
|
19713
19704
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19714
19705
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19715
|
-
}, []),
|
|
19706
|
+
}, []), HM = (0, import_react.useCallback)((e2) => {
|
|
19716
19707
|
let { panelDataArray: t2 } = K.current;
|
|
19717
19708
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19718
19709
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19744,7 +19735,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19744
19735
|
e2.layout = [];
|
|
19745
19736
|
};
|
|
19746
19737
|
}, []);
|
|
19747
|
-
let
|
|
19738
|
+
let UM = (0, import_react.useCallback)((e2) => {
|
|
19748
19739
|
let t2 = false, n2 = y.current;
|
|
19749
19740
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19750
19741
|
n3.preventDefault();
|
|
@@ -19762,7 +19753,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19762
19753
|
}), I2 = !compareLayouts(f2, A2);
|
|
19763
19754
|
(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));
|
|
19764
19755
|
};
|
|
19765
|
-
}, []),
|
|
19756
|
+
}, []), WM = (0, import_react.useCallback)((e2, t2) => {
|
|
19766
19757
|
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);
|
|
19767
19758
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19768
19759
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19774,12 +19765,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19774
19765
|
trigger: "imperative-api"
|
|
19775
19766
|
});
|
|
19776
19767
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19777
|
-
}, []),
|
|
19768
|
+
}, []), GM = (0, import_react.useCallback)((e2, t2) => {
|
|
19778
19769
|
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);
|
|
19779
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19770
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || WM(e2, s2) : h2 < f2 ? WM(e2, f2) : h2 > d2 && WM(e2, d2));
|
|
19780
19771
|
}, [
|
|
19781
|
-
|
|
19782
|
-
]),
|
|
19772
|
+
WM
|
|
19773
|
+
]), KM = (0, import_react.useCallback)((e2, t2) => {
|
|
19783
19774
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19784
19775
|
if (!y.current) return;
|
|
19785
19776
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19791,30 +19782,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19791
19782
|
initialCursorPosition: o2,
|
|
19792
19783
|
initialLayout: i2
|
|
19793
19784
|
});
|
|
19794
|
-
}, []),
|
|
19785
|
+
}, []), qM = (0, import_react.useCallback)(() => {
|
|
19795
19786
|
w(null);
|
|
19796
|
-
}, []),
|
|
19787
|
+
}, []), JM = (0, import_react.useCallback)((e2) => {
|
|
19797
19788
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19798
19789
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19799
19790
|
}, [
|
|
19800
19791
|
A
|
|
19801
|
-
]),
|
|
19792
|
+
]), YM = (0, import_react.useMemo)(() => ({
|
|
19802
19793
|
collapsePanel: q,
|
|
19803
19794
|
direction: i,
|
|
19804
19795
|
dragState: S,
|
|
19805
19796
|
expandPanel: J,
|
|
19806
19797
|
getPanelSize: Q,
|
|
19807
|
-
getPanelStyle:
|
|
19798
|
+
getPanelStyle: BM,
|
|
19808
19799
|
groupId: v,
|
|
19809
19800
|
isPanelCollapsed: $,
|
|
19810
|
-
isPanelExpanded:
|
|
19811
|
-
reevaluatePanelConstraints:
|
|
19812
|
-
registerPanel:
|
|
19813
|
-
registerResizeHandle:
|
|
19814
|
-
resizePanel:
|
|
19815
|
-
startDragging:
|
|
19816
|
-
stopDragging:
|
|
19817
|
-
unregisterPanel:
|
|
19801
|
+
isPanelExpanded: VM,
|
|
19802
|
+
reevaluatePanelConstraints: GM,
|
|
19803
|
+
registerPanel: HM,
|
|
19804
|
+
registerResizeHandle: UM,
|
|
19805
|
+
resizePanel: WM,
|
|
19806
|
+
startDragging: KM,
|
|
19807
|
+
stopDragging: qM,
|
|
19808
|
+
unregisterPanel: JM,
|
|
19818
19809
|
panelGroupElement: y.current
|
|
19819
19810
|
}), [
|
|
19820
19811
|
q,
|
|
@@ -19822,18 +19813,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19822
19813
|
i,
|
|
19823
19814
|
J,
|
|
19824
19815
|
Q,
|
|
19825
|
-
|
|
19816
|
+
BM,
|
|
19826
19817
|
v,
|
|
19827
19818
|
$,
|
|
19828
|
-
|
|
19829
|
-
|
|
19830
|
-
|
|
19831
|
-
|
|
19832
|
-
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
]),
|
|
19819
|
+
VM,
|
|
19820
|
+
GM,
|
|
19821
|
+
HM,
|
|
19822
|
+
UM,
|
|
19823
|
+
WM,
|
|
19824
|
+
KM,
|
|
19825
|
+
qM,
|
|
19826
|
+
JM
|
|
19827
|
+
]), XM = {
|
|
19837
19828
|
display: "flex",
|
|
19838
19829
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19839
19830
|
height: "100%",
|
|
@@ -19841,7 +19832,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19841
19832
|
width: "100%"
|
|
19842
19833
|
};
|
|
19843
19834
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19844
|
-
value:
|
|
19835
|
+
value: YM
|
|
19845
19836
|
}, (0, import_react.createElement)(h, {
|
|
19846
19837
|
..._,
|
|
19847
19838
|
children: t,
|
|
@@ -19849,7 +19840,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19849
19840
|
id: o,
|
|
19850
19841
|
ref: y,
|
|
19851
19842
|
style: {
|
|
19852
|
-
...
|
|
19843
|
+
...XM,
|
|
19853
19844
|
...f
|
|
19854
19845
|
},
|
|
19855
19846
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -19926,31 +19917,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19926
19917
|
});
|
|
19927
19918
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
19928
19919
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
19929
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
19920
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [BM, $] = (0, import_react.useState)(false), [VM, HM] = (0, import_react.useState)(null), UM = (0, import_react.useRef)({
|
|
19930
19921
|
state: J
|
|
19931
19922
|
});
|
|
19932
19923
|
useIsomorphicLayoutEffect$1(() => {
|
|
19933
|
-
|
|
19924
|
+
UM.current.state = J;
|
|
19934
19925
|
}), (0, import_react.useEffect)(() => {
|
|
19935
|
-
if (n)
|
|
19926
|
+
if (n) HM(null);
|
|
19936
19927
|
else {
|
|
19937
19928
|
let e2 = I(q);
|
|
19938
|
-
|
|
19929
|
+
HM(() => e2);
|
|
19939
19930
|
}
|
|
19940
19931
|
}, [
|
|
19941
19932
|
n,
|
|
19942
19933
|
q,
|
|
19943
19934
|
I
|
|
19944
19935
|
]);
|
|
19945
|
-
let
|
|
19936
|
+
let WM = (i == null ? void 0 : i.coarse) ?? 15, GM = (i == null ? void 0 : i.fine) ?? 5;
|
|
19946
19937
|
(0, import_react.useEffect)(() => {
|
|
19947
|
-
if (n ||
|
|
19938
|
+
if (n || VM == null) return;
|
|
19948
19939
|
let e2 = w.current;
|
|
19949
19940
|
assert(e2, "Element ref not attached");
|
|
19950
19941
|
let t2 = false;
|
|
19951
19942
|
return registerResizeHandle(q, e2, A, {
|
|
19952
|
-
coarse:
|
|
19953
|
-
fine:
|
|
19943
|
+
coarse: WM,
|
|
19944
|
+
fine: GM
|
|
19954
19945
|
}, (e3, n2, i2) => {
|
|
19955
19946
|
if (!n2) {
|
|
19956
19947
|
Q("inactive");
|
|
@@ -19964,8 +19955,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19964
19955
|
break;
|
|
19965
19956
|
}
|
|
19966
19957
|
case "move": {
|
|
19967
|
-
let { state: e4 } =
|
|
19968
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
19958
|
+
let { state: e4 } = UM.current;
|
|
19959
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), VM(i2);
|
|
19969
19960
|
break;
|
|
19970
19961
|
}
|
|
19971
19962
|
case "up": {
|
|
@@ -19977,22 +19968,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19977
19968
|
}
|
|
19978
19969
|
});
|
|
19979
19970
|
}, [
|
|
19980
|
-
|
|
19971
|
+
WM,
|
|
19981
19972
|
A,
|
|
19982
19973
|
n,
|
|
19983
|
-
|
|
19974
|
+
GM,
|
|
19984
19975
|
I,
|
|
19985
19976
|
q,
|
|
19986
|
-
|
|
19977
|
+
VM,
|
|
19987
19978
|
z,
|
|
19988
19979
|
U
|
|
19989
19980
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
19990
19981
|
disabled: n,
|
|
19991
19982
|
handleId: q,
|
|
19992
|
-
resizeHandler:
|
|
19983
|
+
resizeHandler: VM,
|
|
19993
19984
|
panelGroupElement: K
|
|
19994
19985
|
});
|
|
19995
|
-
let
|
|
19986
|
+
let KM = {
|
|
19996
19987
|
touchAction: "none",
|
|
19997
19988
|
userSelect: "none"
|
|
19998
19989
|
};
|
|
@@ -20010,22 +20001,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20010
20001
|
ref: w,
|
|
20011
20002
|
role: "separator",
|
|
20012
20003
|
style: {
|
|
20013
|
-
...
|
|
20004
|
+
...KM,
|
|
20014
20005
|
..._
|
|
20015
20006
|
},
|
|
20016
20007
|
tabIndex: v,
|
|
20017
20008
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20018
20009
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20019
20010
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20020
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20011
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : BM ? "keyboard" : void 0,
|
|
20021
20012
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20022
20013
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20023
20014
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
20024
20015
|
});
|
|
20025
20016
|
}
|
|
20026
20017
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
20027
|
-
let import_compiler_runtime$
|
|
20028
|
-
import_compiler_runtime$
|
|
20018
|
+
let import_compiler_runtime$20, toggleVariants;
|
|
20019
|
+
import_compiler_runtime$20 = require_compiler_runtime();
|
|
20029
20020
|
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"), {
|
|
20030
20021
|
variants: {
|
|
20031
20022
|
variant: {
|
|
@@ -20045,7 +20036,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20045
20036
|
}
|
|
20046
20037
|
});
|
|
20047
20038
|
Toggle = import_react.forwardRef((e, t) => {
|
|
20048
|
-
let n = (0, import_compiler_runtime$
|
|
20039
|
+
let n = (0, import_compiler_runtime$20.c)(13), i, o, s, c;
|
|
20049
20040
|
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);
|
|
20050
20041
|
let d;
|
|
20051
20042
|
n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
|
|
@@ -20072,14 +20063,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20072
20063
|
contextAwarePanelOpen = atom(false);
|
|
20073
20064
|
atom(false);
|
|
20074
20065
|
isCellAwareAtom = atom(false);
|
|
20075
|
-
var import_compiler_runtime$
|
|
20066
|
+
var import_compiler_runtime$19 = require_compiler_runtime();
|
|
20076
20067
|
let CellHoverTemplateFeature;
|
|
20077
20068
|
PANEL_TYPES = {
|
|
20078
20069
|
ROW_VIEWER: "row-viewer",
|
|
20079
20070
|
COLUMN_EXPLORER: "column-explorer"
|
|
20080
20071
|
};
|
|
20081
20072
|
ContextAwarePanelItem = (e) => {
|
|
20082
|
-
let t = (0, import_compiler_runtime$
|
|
20073
|
+
let t = (0, import_compiler_runtime$19.c)(2), { children: n } = e, i;
|
|
20083
20074
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
20084
20075
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
20085
20076
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -20174,62 +20165,825 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20174
20165
|
createColumn: (e, t) => {
|
|
20175
20166
|
e.getCanCopy = () => t.options.enableCopyColumn ?? false;
|
|
20176
20167
|
}
|
|
20177
|
-
}
|
|
20178
|
-
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20182
|
-
|
|
20183
|
-
|
|
20184
|
-
|
|
20185
|
-
|
|
20186
|
-
|
|
20168
|
+
};
|
|
20169
|
+
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
20170
|
+
let ComboboxContext;
|
|
20171
|
+
ComboboxContext = (0, import_react.createContext)({
|
|
20172
|
+
isSelected: () => false,
|
|
20173
|
+
onSelect: Functions.NOOP
|
|
20174
|
+
});
|
|
20175
|
+
Combobox = (e) => {
|
|
20176
|
+
let t = (0, import_compiler_runtime$18.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20177
|
+
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);
|
|
20178
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, BM = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, VM = K === void 0 ? false : K, HM = s ?? false, UM;
|
|
20179
|
+
t[23] !== v || t[24] !== w || t[25] !== HM ? (UM = {
|
|
20180
|
+
prop: w,
|
|
20181
|
+
defaultProp: HM,
|
|
20182
|
+
onChange: v
|
|
20183
|
+
}, t[23] = v, t[24] = w, t[25] = HM, t[26] = UM) : UM = t[26];
|
|
20184
|
+
let [WM, GM] = useControllableState(UM), KM = WM === void 0 ? false : WM, qM;
|
|
20185
|
+
t[27] === S ? qM = t[28] : (qM = (e2) => {
|
|
20186
|
+
S == null ? void 0 : S(e2);
|
|
20187
|
+
}, t[27] = S, t[28] = qM);
|
|
20188
|
+
let JM;
|
|
20189
|
+
t[29] !== c || t[30] !== qM || t[31] !== q ? (JM = {
|
|
20190
|
+
prop: q,
|
|
20191
|
+
defaultProp: c,
|
|
20192
|
+
onChange: qM
|
|
20193
|
+
}, t[29] = c, t[30] = qM, t[31] = q, t[32] = JM) : JM = t[32];
|
|
20194
|
+
let [XM, ZM] = useControllableState(JM), QM;
|
|
20195
|
+
t[33] === XM ? QM = t[34] : (QM = (e2) => Array.isArray(XM) ? XM.includes(e2) : XM === e2, t[33] = XM, t[34] = QM);
|
|
20196
|
+
let $M = QM, eN;
|
|
20197
|
+
t[35] !== _ || t[36] !== J || t[37] !== GM || t[38] !== ZM || t[39] !== XM ? (eN = (e2) => {
|
|
20198
|
+
let t2 = e2;
|
|
20199
|
+
if (J) if (Array.isArray(XM)) if (XM.includes(t2)) {
|
|
20200
|
+
let n2 = XM.filter((t3) => t3 !== e2);
|
|
20201
|
+
t2 = n2.length > 0 ? n2 : [];
|
|
20202
|
+
} else t2 = [
|
|
20203
|
+
...XM,
|
|
20204
|
+
t2
|
|
20205
|
+
];
|
|
20206
|
+
else t2 = [
|
|
20207
|
+
t2
|
|
20208
|
+
];
|
|
20209
|
+
else XM === e2 && (t2 = null);
|
|
20210
|
+
ZM(t2), (_ ?? J) || GM(false);
|
|
20211
|
+
}, t[35] = _, t[36] = J, t[37] = GM, t[38] = ZM, t[39] = XM, t[40] = eN) : eN = t[40];
|
|
20212
|
+
let tN = eN, nN;
|
|
20213
|
+
t[41] !== VM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== XM ? (nN = () => J && VM && E ? E : XM == null ? E ?? "--" : Array.isArray(XM) ? XM.length === 0 ? E ?? "--" : XM.length === 1 && d !== void 0 ? d(XM[0]) : `${XM.length} selected` : d === void 0 ? E ?? "--" : d(XM), t[41] = VM, t[42] = d, t[43] = J, t[44] = E, t[45] = XM, t[46] = nN) : nN = t[46];
|
|
20214
|
+
let rN = nN, iN;
|
|
20215
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iN = cn("relative"), t[47] = iN) : iN = t[47];
|
|
20216
|
+
let aN;
|
|
20217
|
+
t[48] === o ? aN = t[49] : (aN = 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] = aN);
|
|
20218
|
+
let oN;
|
|
20219
|
+
t[50] === rN ? oN = t[51] : (oN = rN(), t[50] = rN, t[51] = oN);
|
|
20220
|
+
let sN;
|
|
20221
|
+
t[52] === oN ? sN = t[53] : (sN = (0, import_jsx_runtime.jsx)("span", {
|
|
20222
|
+
className: "truncate flex-1 min-w-0",
|
|
20223
|
+
children: oN
|
|
20224
|
+
}), t[52] = oN, t[53] = sN);
|
|
20225
|
+
let lN;
|
|
20226
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20227
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20228
|
+
}), t[54] = lN) : lN = t[54];
|
|
20229
|
+
let dN;
|
|
20230
|
+
t[55] !== h || t[56] !== KM || t[57] !== aN || t[58] !== sN ? (dN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20231
|
+
asChild: true,
|
|
20232
|
+
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20233
|
+
id: h,
|
|
20234
|
+
className: aN,
|
|
20235
|
+
"aria-expanded": KM,
|
|
20236
|
+
children: [
|
|
20237
|
+
sN,
|
|
20238
|
+
lN
|
|
20239
|
+
]
|
|
20240
|
+
})
|
|
20241
|
+
}), t[55] = h, t[56] = KM, t[57] = aN, t[58] = sN, t[59] = dN) : dN = t[59];
|
|
20242
|
+
let fN;
|
|
20243
|
+
t[60] !== BM || t[61] !== y || t[62] !== A ? (fN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20244
|
+
placeholder: BM,
|
|
20245
|
+
rootClassName: "px-1 h-8",
|
|
20246
|
+
autoFocus: true,
|
|
20247
|
+
value: A,
|
|
20248
|
+
onValueChange: y
|
|
20249
|
+
}), t[60] = BM, t[61] = y, t[62] = A, t[63] = fN) : fN = t[63];
|
|
20250
|
+
let pN;
|
|
20251
|
+
t[64] === $ ? pN = t[65] : (pN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20252
|
+
children: $
|
|
20253
|
+
}), t[64] = $, t[65] = pN);
|
|
20254
|
+
let mN;
|
|
20255
|
+
t[66] !== tN || t[67] !== $M ? (mN = {
|
|
20256
|
+
isSelected: $M,
|
|
20257
|
+
onSelect: tN
|
|
20258
|
+
}, t[66] = tN, t[67] = $M, t[68] = mN) : mN = t[68];
|
|
20259
|
+
let hN;
|
|
20260
|
+
t[69] !== n || t[70] !== mN ? (hN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20261
|
+
value: mN,
|
|
20262
|
+
children: n
|
|
20263
|
+
}), t[69] = n, t[70] = mN, t[71] = hN) : hN = t[71];
|
|
20264
|
+
let gN;
|
|
20265
|
+
t[72] !== pN || t[73] !== hN ? (gN = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20266
|
+
className: "max-h-60 py-.5",
|
|
20267
|
+
children: [
|
|
20268
|
+
pN,
|
|
20269
|
+
hN
|
|
20270
|
+
]
|
|
20271
|
+
}), t[72] = pN, t[73] = hN, t[74] = gN) : gN = t[74];
|
|
20272
|
+
let _N;
|
|
20273
|
+
t[75] !== f || t[76] !== Q || t[77] !== fN || t[78] !== gN ? (_N = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20274
|
+
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20275
|
+
align: "start",
|
|
20276
|
+
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20277
|
+
filter: f,
|
|
20278
|
+
shouldFilter: Q,
|
|
20279
|
+
children: [
|
|
20280
|
+
fN,
|
|
20281
|
+
gN
|
|
20282
|
+
]
|
|
20283
|
+
})
|
|
20284
|
+
}), t[75] = f, t[76] = Q, t[77] = fN, t[78] = gN, t[79] = _N) : _N = t[79];
|
|
20285
|
+
let vN;
|
|
20286
|
+
t[80] !== KM || t[81] !== GM || t[82] !== dN || t[83] !== _N ? (vN = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20287
|
+
open: KM,
|
|
20288
|
+
onOpenChange: GM,
|
|
20289
|
+
children: [
|
|
20290
|
+
dN,
|
|
20291
|
+
_N
|
|
20292
|
+
]
|
|
20293
|
+
}), t[80] = KM, t[81] = GM, t[82] = dN, t[83] = _N, t[84] = vN) : vN = t[84];
|
|
20294
|
+
let yN;
|
|
20295
|
+
t[85] !== VM || t[86] !== i || t[87] !== d || t[88] !== tN || t[89] !== J || t[90] !== XM ? (yN = J && VM && (0, import_jsx_runtime.jsx)("div", {
|
|
20296
|
+
className: cn("flex flex-col gap-1 items-start", i),
|
|
20297
|
+
children: Array.isArray(XM) && XM.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20187
20298
|
variant: "secondary",
|
|
20188
|
-
className: "dark:invert",
|
|
20189
20299
|
children: [
|
|
20190
|
-
e2
|
|
20191
|
-
|
|
20192
|
-
i2,
|
|
20193
|
-
" ",
|
|
20194
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20195
|
-
className: "cursor-pointer opacity-60 hover:opacity-100 pl-1 py-[2px]",
|
|
20300
|
+
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20301
|
+
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20196
20302
|
onClick: () => {
|
|
20197
|
-
|
|
20303
|
+
tN(e2);
|
|
20198
20304
|
},
|
|
20199
|
-
|
|
20200
|
-
className: "w-3.5 h-3.5"
|
|
20201
|
-
})
|
|
20305
|
+
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20202
20306
|
})
|
|
20203
20307
|
]
|
|
20204
|
-
}, e2
|
|
20308
|
+
}, String(e2)))
|
|
20309
|
+
}), t[85] = VM, t[86] = i, t[87] = d, t[88] = tN, t[89] = J, t[90] = XM, t[91] = yN) : yN = t[91];
|
|
20310
|
+
let bN;
|
|
20311
|
+
return t[92] !== O || t[93] !== vN || t[94] !== yN ? (bN = (0, import_jsx_runtime.jsxs)("div", {
|
|
20312
|
+
className: iN,
|
|
20313
|
+
...O,
|
|
20314
|
+
children: [
|
|
20315
|
+
vN,
|
|
20316
|
+
yN
|
|
20317
|
+
]
|
|
20318
|
+
}), t[92] = O, t[93] = vN, t[94] = yN, t[95] = bN) : bN = t[95], bN;
|
|
20319
|
+
};
|
|
20320
|
+
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20321
|
+
let n = (0, import_compiler_runtime$18.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), _;
|
|
20322
|
+
n[0] === o ? _ = n[1] : (_ = cn("pl-6 m-1 py-1", o), n[0] = o, n[1] = _);
|
|
20323
|
+
let v;
|
|
20324
|
+
n[2] !== h || n[3] !== c || n[4] !== s ? (v = () => {
|
|
20325
|
+
h.onSelect(s), c == null ? void 0 : c(s);
|
|
20326
|
+
}, n[2] = h, n[3] = c, n[4] = s, n[5] = v) : v = n[5];
|
|
20327
|
+
let y;
|
|
20328
|
+
n[6] !== h || n[7] !== s ? (y = h.isSelected(s) && (0, import_jsx_runtime.jsx)(Check, {
|
|
20329
|
+
className: "absolute left-1 h-4 w-4"
|
|
20330
|
+
}), n[6] = h, n[7] = s, n[8] = y) : y = n[8];
|
|
20331
|
+
let S;
|
|
20332
|
+
return n[9] !== i || n[10] !== d || n[11] !== t || n[12] !== _ || n[13] !== v || n[14] !== y || n[15] !== f ? (S = (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
20333
|
+
ref: t,
|
|
20334
|
+
className: _,
|
|
20335
|
+
role: "option",
|
|
20336
|
+
value: f,
|
|
20337
|
+
disabled: d,
|
|
20338
|
+
onSelect: v,
|
|
20339
|
+
children: [
|
|
20340
|
+
y,
|
|
20341
|
+
i
|
|
20342
|
+
]
|
|
20343
|
+
}), n[9] = i, n[10] = d, n[11] = t, n[12] = _, n[13] = v, n[14] = y, n[15] = f, n[16] = S) : S = n[16], S;
|
|
20344
|
+
});
|
|
20345
|
+
ComboboxItem.displayName = "ComboboxItem";
|
|
20346
|
+
const Sets = {
|
|
20347
|
+
merge(...e) {
|
|
20348
|
+
let t = /* @__PURE__ */ new Set();
|
|
20349
|
+
for (let n of e) for (let e2 of n) t.add(e2);
|
|
20350
|
+
return t;
|
|
20351
|
+
},
|
|
20352
|
+
equals(e, t) {
|
|
20353
|
+
if (e.size !== t.size) return false;
|
|
20354
|
+
for (let n of e) if (!t.has(n)) return false;
|
|
20355
|
+
return true;
|
|
20356
|
+
},
|
|
20357
|
+
toggle(e, t) {
|
|
20358
|
+
let n = new Set(e);
|
|
20359
|
+
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
20205
20360
|
}
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20361
|
+
};
|
|
20362
|
+
var TOP_K_ROWS = 30;
|
|
20363
|
+
const FilterByValuesPicker = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: i }) => {
|
|
20364
|
+
let [o, s] = (0, import_react.useState)(false), c = (0, import_react.useMemo)(() => new Set(n), [
|
|
20365
|
+
n
|
|
20366
|
+
]), d = (0, import_react.useMemo)(() => c.size === 0 ? "Select values\u2026" : `[${[
|
|
20367
|
+
...c
|
|
20368
|
+
].map((e2) => stringifyUnknownValue({
|
|
20369
|
+
value: e2
|
|
20370
|
+
})).join(", ")}]`, [
|
|
20371
|
+
c
|
|
20372
|
+
]);
|
|
20373
|
+
return (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20374
|
+
open: o,
|
|
20375
|
+
onOpenChange: s,
|
|
20376
|
+
children: [
|
|
20377
|
+
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20378
|
+
asChild: true,
|
|
20379
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
20380
|
+
variant: "outline",
|
|
20381
|
+
size: "xs",
|
|
20382
|
+
className: "h-6 mb-1 w-full justify-between font-normal",
|
|
20383
|
+
children: [
|
|
20384
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20385
|
+
className: cn("truncate", c.size === 0 && "text-muted-foreground"),
|
|
20386
|
+
children: d
|
|
20387
|
+
}),
|
|
20388
|
+
(0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20389
|
+
className: "h-4 w-4 opacity-50 shrink-0"
|
|
20390
|
+
})
|
|
20391
|
+
]
|
|
20392
|
+
})
|
|
20393
|
+
}),
|
|
20394
|
+
(0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20395
|
+
className: "w-80 p-0",
|
|
20396
|
+
children: (0, import_jsx_runtime.jsx)(PickerBody, {
|
|
20397
|
+
column: e,
|
|
20398
|
+
calculateTopKRows: t,
|
|
20399
|
+
chosenValues: c,
|
|
20400
|
+
onChange: i
|
|
20401
|
+
})
|
|
20402
|
+
})
|
|
20403
|
+
]
|
|
20404
|
+
});
|
|
20405
|
+
};
|
|
20406
|
+
var PickerBody = ({ column: e, calculateTopKRows: t, chosenValues: i, onChange: a }) => {
|
|
20407
|
+
let [o, s] = (0, import_react.useState)(""), { data: c, isPending: d, error: f } = useAsyncData(async () => t ? (await t({
|
|
20408
|
+
column: e.id,
|
|
20409
|
+
k: TOP_K_ROWS
|
|
20410
|
+
})).data : null, [
|
|
20411
|
+
t,
|
|
20412
|
+
e.id
|
|
20413
|
+
]), h = (0, import_react.useMemo)(() => {
|
|
20414
|
+
if (!c) return [];
|
|
20415
|
+
try {
|
|
20416
|
+
return c.filter(([e2, t2]) => {
|
|
20417
|
+
if (e2 === void 0) return false;
|
|
20418
|
+
let n = String(e2);
|
|
20419
|
+
return smartMatch(o, n) || n.toLowerCase().includes(o.toLowerCase());
|
|
20420
|
+
});
|
|
20421
|
+
} catch (e2) {
|
|
20422
|
+
return Logger.error("Error filtering data", e2), [];
|
|
20423
|
+
}
|
|
20424
|
+
}, [
|
|
20425
|
+
c,
|
|
20426
|
+
o
|
|
20427
|
+
]), _ = (e2) => {
|
|
20428
|
+
a([
|
|
20429
|
+
...Sets.toggle(i, e2)
|
|
20430
|
+
]);
|
|
20431
|
+
}, v = h.length > 0 && h.every(([e2]) => i.has(e2)), y = v ? true : i.size > 0 ? "indeterminate" : false;
|
|
20432
|
+
return d ? (0, import_jsx_runtime.jsx)(Spinner, {
|
|
20433
|
+
size: "medium",
|
|
20434
|
+
className: "mx-auto mt-12 mb-10"
|
|
20435
|
+
}) : f ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
20436
|
+
error: f,
|
|
20437
|
+
className: "my-10 mx-4"
|
|
20438
|
+
}) : c ? (0, import_jsx_runtime.jsxs)(Command, {
|
|
20439
|
+
className: "text-sm outline-hidden",
|
|
20440
|
+
shouldFilter: false,
|
|
20441
|
+
children: [
|
|
20442
|
+
(0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20443
|
+
placeholder: `Search among the top ${c.length} values`,
|
|
20444
|
+
autoFocus: true,
|
|
20445
|
+
onValueChange: (e2) => s(e2.trim())
|
|
20446
|
+
}),
|
|
20447
|
+
(0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20448
|
+
children: "No results found."
|
|
20449
|
+
}),
|
|
20450
|
+
(0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20451
|
+
children: [
|
|
20452
|
+
h.length > 0 && (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
20453
|
+
value: "__select-all__",
|
|
20454
|
+
className: "border-b rounded-none px-3",
|
|
20455
|
+
onSelect: () => {
|
|
20456
|
+
if (!c) return;
|
|
20457
|
+
let e2 = new Set(i);
|
|
20458
|
+
if (v) for (let [t2] of h) e2.delete(t2);
|
|
20459
|
+
else for (let [t2] of h) e2.add(t2);
|
|
20460
|
+
a([
|
|
20461
|
+
...e2
|
|
20462
|
+
]);
|
|
20463
|
+
},
|
|
20464
|
+
children: [
|
|
20465
|
+
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
20466
|
+
checked: y,
|
|
20467
|
+
"aria-label": "Select all",
|
|
20468
|
+
className: "mr-3 h-3.5 w-3.5"
|
|
20469
|
+
}),
|
|
20470
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20471
|
+
className: "font-bold flex-1",
|
|
20472
|
+
children: e.id
|
|
20473
|
+
}),
|
|
20474
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20475
|
+
className: "font-bold",
|
|
20476
|
+
children: "Count"
|
|
20477
|
+
})
|
|
20478
|
+
]
|
|
20479
|
+
}),
|
|
20480
|
+
h.map(([t2, n]) => {
|
|
20481
|
+
var _a2;
|
|
20482
|
+
let a2 = i.has(t2), o2 = stringifyUnknownValue({
|
|
20483
|
+
value: t2
|
|
20484
|
+
}), s2 = detectSentinel(t2, (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType);
|
|
20485
|
+
return (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
20486
|
+
value: o2,
|
|
20487
|
+
className: "not-last:border-b rounded-none px-3",
|
|
20488
|
+
onSelect: () => _(t2),
|
|
20489
|
+
children: [
|
|
20490
|
+
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
20491
|
+
checked: a2,
|
|
20492
|
+
"aria-label": "Select row",
|
|
20493
|
+
className: "mr-3 h-3.5 w-3.5"
|
|
20494
|
+
}),
|
|
20495
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20496
|
+
className: "flex-1 overflow-hidden max-h-20 line-clamp-3",
|
|
20497
|
+
children: s2 ? (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
20498
|
+
sentinel: s2
|
|
20499
|
+
}) : o2
|
|
20500
|
+
}),
|
|
20501
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20502
|
+
className: "ml-3",
|
|
20503
|
+
children: n
|
|
20504
|
+
})
|
|
20505
|
+
]
|
|
20506
|
+
}, o2);
|
|
20507
|
+
})
|
|
20508
|
+
]
|
|
20509
|
+
}),
|
|
20510
|
+
c.length === TOP_K_ROWS && (0, import_jsx_runtime.jsxs)("span", {
|
|
20511
|
+
className: "text-xs text-muted-foreground py-1.5 text-center",
|
|
20512
|
+
children: [
|
|
20513
|
+
"Only showing the top ",
|
|
20514
|
+
TOP_K_ROWS,
|
|
20515
|
+
" values"
|
|
20516
|
+
]
|
|
20517
|
+
})
|
|
20518
|
+
]
|
|
20519
|
+
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
20520
|
+
className: "py-6 px-4 text-sm text-muted-foreground text-center",
|
|
20521
|
+
children: "No values available"
|
|
20522
|
+
});
|
|
20523
|
+
}, OPERATORS_BY_TYPE = {
|
|
20524
|
+
number: [
|
|
20525
|
+
"between",
|
|
20526
|
+
"is_null",
|
|
20527
|
+
"is_not_null"
|
|
20528
|
+
],
|
|
20529
|
+
text: [
|
|
20530
|
+
"contains",
|
|
20531
|
+
"is_null",
|
|
20532
|
+
"is_not_null"
|
|
20533
|
+
],
|
|
20534
|
+
boolean: [
|
|
20535
|
+
"is_true",
|
|
20536
|
+
"is_false",
|
|
20537
|
+
"is_null",
|
|
20538
|
+
"is_not_null"
|
|
20539
|
+
],
|
|
20540
|
+
select: [
|
|
20541
|
+
"in",
|
|
20542
|
+
"not_in"
|
|
20543
|
+
]
|
|
20544
|
+
}, DEFAULT_OPERATOR = {
|
|
20545
|
+
number: "between",
|
|
20546
|
+
text: "contains",
|
|
20547
|
+
boolean: "is_true",
|
|
20548
|
+
select: "in"
|
|
20549
|
+
}, OPERATOR_LABELS = {
|
|
20550
|
+
between: "Between",
|
|
20551
|
+
contains: "Contains",
|
|
20552
|
+
is_true: "Is true",
|
|
20553
|
+
is_false: "Is false",
|
|
20554
|
+
is_null: "Is null",
|
|
20555
|
+
is_not_null: "Is not null",
|
|
20556
|
+
in: "Is in",
|
|
20557
|
+
not_in: "Not in"
|
|
20558
|
+
}, OPERATORS_WITHOUT_VALUE = /* @__PURE__ */ new Set([
|
|
20559
|
+
"is_true",
|
|
20560
|
+
"is_false",
|
|
20561
|
+
"is_null",
|
|
20562
|
+
"is_not_null"
|
|
20563
|
+
]);
|
|
20564
|
+
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i }) => {
|
|
20565
|
+
let a = (0, import_react.useId)(), o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = getEditableType(e.value), d = getUiOperator(e.value), h = toDraftValue(e.value), [_, v] = (0, import_react.useState)(e.columnId), [y, S] = (0, import_react.useState)(c), [w, E] = (0, import_react.useState)(d), [O, A] = (0, import_react.useState)(h), M = t.getAllColumns().filter((e2) => {
|
|
20566
|
+
var _a2;
|
|
20567
|
+
let t2 = (_a2 = e2.columnDef.meta) == null ? void 0 : _a2.filterType;
|
|
20568
|
+
return t2 === "number" || t2 === "text" || t2 === "boolean" || t2 === "select";
|
|
20569
|
+
}), I = (t2) => {
|
|
20570
|
+
t2.id === e.columnId && t2.type === c && t2.operator === d && A(h);
|
|
20571
|
+
}, z = (e2) => {
|
|
20572
|
+
var _a2, _b;
|
|
20573
|
+
if (!e2) return;
|
|
20574
|
+
let n2 = ((_b = (_a2 = t.getColumn(e2)) == null ? void 0 : _a2.columnDef.meta) == null ? void 0 : _b.filterType) ?? "text", i2 = w;
|
|
20575
|
+
n2 !== y && (i2 = DEFAULT_OPERATOR[n2], S(n2), E(i2), A({})), v(e2), I({
|
|
20576
|
+
id: e2,
|
|
20577
|
+
type: n2,
|
|
20578
|
+
operator: i2
|
|
20579
|
+
});
|
|
20580
|
+
}, K = (e2) => {
|
|
20581
|
+
E(e2), I({
|
|
20582
|
+
id: _,
|
|
20583
|
+
type: y,
|
|
20584
|
+
operator: e2
|
|
20585
|
+
});
|
|
20586
|
+
}, q = () => {
|
|
20587
|
+
let n2 = buildFilterValue({
|
|
20588
|
+
type: y,
|
|
20589
|
+
operator: w,
|
|
20590
|
+
draft: O
|
|
20591
|
+
});
|
|
20592
|
+
n2 && (t.setColumnFilters((t2) => {
|
|
20593
|
+
let i2 = /* @__PURE__ */ new Set([
|
|
20594
|
+
e.columnId,
|
|
20595
|
+
_
|
|
20596
|
+
]);
|
|
20597
|
+
return [
|
|
20598
|
+
...t2.filter((e2) => !i2.has(e2.id)),
|
|
20599
|
+
{
|
|
20600
|
+
id: _,
|
|
20601
|
+
value: n2
|
|
20602
|
+
}
|
|
20603
|
+
];
|
|
20604
|
+
}), i());
|
|
20605
|
+
}, J = () => {
|
|
20606
|
+
t.setColumnFilters((t2) => t2.filter((t3) => t3.id !== e.columnId)), i();
|
|
20607
|
+
}, Q = !OPERATORS_WITHOUT_VALUE.has(w);
|
|
20608
|
+
return (0, import_jsx_runtime.jsxs)("div", {
|
|
20609
|
+
className: "flex flex-row gap-4 items-end p-3",
|
|
20610
|
+
children: [
|
|
20611
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
20612
|
+
className: "flex flex-col gap-1",
|
|
20613
|
+
children: [
|
|
20614
|
+
(0, import_jsx_runtime.jsx)("label", {
|
|
20615
|
+
className: "text-xs text-muted-foreground",
|
|
20616
|
+
htmlFor: a,
|
|
20617
|
+
children: "Column"
|
|
20618
|
+
}),
|
|
20619
|
+
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
20620
|
+
id: a,
|
|
20621
|
+
value: _,
|
|
20622
|
+
onValueChange: z,
|
|
20623
|
+
multiple: false,
|
|
20624
|
+
placeholder: "Select column\u2026",
|
|
20625
|
+
displayValue: (e2) => e2,
|
|
20626
|
+
children: M.map((e2) => (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
20627
|
+
value: e2.id,
|
|
20628
|
+
children: e2.id
|
|
20629
|
+
}, e2.id))
|
|
20630
|
+
})
|
|
20631
|
+
]
|
|
20632
|
+
}),
|
|
20633
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
20634
|
+
className: "flex flex-col gap-1",
|
|
20635
|
+
children: [
|
|
20636
|
+
(0, import_jsx_runtime.jsx)("label", {
|
|
20637
|
+
htmlFor: o,
|
|
20638
|
+
className: "text-xs text-muted-foreground",
|
|
20639
|
+
children: "Operator"
|
|
20640
|
+
}),
|
|
20641
|
+
(0, import_jsx_runtime.jsxs)(Select, {
|
|
20642
|
+
value: w,
|
|
20643
|
+
onValueChange: (e2) => K(e2),
|
|
20644
|
+
children: [
|
|
20645
|
+
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
20646
|
+
id: o,
|
|
20647
|
+
className: "h-6 mb-1 bg-transparent",
|
|
20648
|
+
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
20649
|
+
}),
|
|
20650
|
+
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
20651
|
+
children: OPERATORS_BY_TYPE[y].map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
20652
|
+
value: e2,
|
|
20653
|
+
children: OPERATOR_LABELS[e2]
|
|
20654
|
+
}, e2))
|
|
20655
|
+
})
|
|
20656
|
+
]
|
|
20657
|
+
})
|
|
20658
|
+
]
|
|
20659
|
+
}),
|
|
20660
|
+
Q && (0, import_jsx_runtime.jsxs)("div", {
|
|
20661
|
+
className: "flex flex-col gap-1",
|
|
20662
|
+
children: [
|
|
20663
|
+
(0, import_jsx_runtime.jsx)("label", {
|
|
20664
|
+
htmlFor: s,
|
|
20665
|
+
className: "text-xs text-muted-foreground",
|
|
20666
|
+
children: "Value"
|
|
20667
|
+
}),
|
|
20668
|
+
(0, import_jsx_runtime.jsx)(ValueSlot, {
|
|
20669
|
+
id: s,
|
|
20670
|
+
type: y,
|
|
20671
|
+
value: O,
|
|
20672
|
+
onChange: A,
|
|
20673
|
+
column: t.getColumn(_) ?? null,
|
|
20674
|
+
calculateTopKRows: n
|
|
20675
|
+
})
|
|
20676
|
+
]
|
|
20677
|
+
}),
|
|
20678
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
20679
|
+
className: "flex gap-1 mb-1",
|
|
20680
|
+
children: [
|
|
20681
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
20682
|
+
content: "Apply filter",
|
|
20683
|
+
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
20684
|
+
type: "button",
|
|
20685
|
+
size: "icon",
|
|
20686
|
+
variant: "ghost",
|
|
20687
|
+
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
20688
|
+
onClick: q,
|
|
20689
|
+
"aria-label": "Apply filter",
|
|
20690
|
+
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
20691
|
+
className: "h-3.5 w-3.5",
|
|
20692
|
+
"aria-hidden": true
|
|
20693
|
+
})
|
|
20694
|
+
})
|
|
20695
|
+
}),
|
|
20696
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
20697
|
+
content: "Close without saving",
|
|
20698
|
+
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
20699
|
+
type: "button",
|
|
20700
|
+
size: "icon",
|
|
20701
|
+
variant: "ghost",
|
|
20702
|
+
className: "rounded-full text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
20703
|
+
onClick: i,
|
|
20704
|
+
"aria-label": "Close without saving",
|
|
20705
|
+
children: (0, import_jsx_runtime.jsx)(X, {
|
|
20706
|
+
className: "h-3.5 w-3.5",
|
|
20707
|
+
"aria-hidden": true
|
|
20708
|
+
})
|
|
20709
|
+
})
|
|
20710
|
+
}),
|
|
20711
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
20712
|
+
content: "Remove filter",
|
|
20713
|
+
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
20714
|
+
type: "button",
|
|
20715
|
+
size: "icon",
|
|
20716
|
+
variant: "ghost",
|
|
20717
|
+
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
20718
|
+
onClick: J,
|
|
20719
|
+
"aria-label": "Remove filter",
|
|
20720
|
+
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
20721
|
+
className: "h-3.5 w-3.5",
|
|
20722
|
+
"aria-hidden": true
|
|
20723
|
+
})
|
|
20724
|
+
})
|
|
20725
|
+
})
|
|
20726
|
+
]
|
|
20727
|
+
})
|
|
20728
|
+
]
|
|
20209
20729
|
});
|
|
20210
20730
|
};
|
|
20731
|
+
var ValueSlot = ({ id: e, type: t, value: n, onChange: i, column: a, calculateTopKRows: o }) => t === "number" ? (0, import_jsx_runtime.jsxs)("div", {
|
|
20732
|
+
className: "flex gap-1 items-center w-48",
|
|
20733
|
+
children: [
|
|
20734
|
+
(0, import_jsx_runtime.jsx)(NumberField, {
|
|
20735
|
+
id: e,
|
|
20736
|
+
value: n.min,
|
|
20737
|
+
onChange: (e2) => i({
|
|
20738
|
+
...n,
|
|
20739
|
+
min: e2
|
|
20740
|
+
}),
|
|
20741
|
+
"aria-label": "min",
|
|
20742
|
+
placeholder: "min",
|
|
20743
|
+
className: "border-input flex-1 min-w-0"
|
|
20744
|
+
}),
|
|
20745
|
+
(0, import_jsx_runtime.jsx)(Minus, {
|
|
20746
|
+
className: "h-5 w-5 text-muted-foreground shrink-0"
|
|
20747
|
+
}),
|
|
20748
|
+
(0, import_jsx_runtime.jsx)(NumberField, {
|
|
20749
|
+
value: n.max,
|
|
20750
|
+
onChange: (e2) => i({
|
|
20751
|
+
...n,
|
|
20752
|
+
max: e2
|
|
20753
|
+
}),
|
|
20754
|
+
"aria-label": "max",
|
|
20755
|
+
placeholder: "max",
|
|
20756
|
+
className: "border-input flex-1 min-w-0"
|
|
20757
|
+
})
|
|
20758
|
+
]
|
|
20759
|
+
}) : t === "text" ? (0, import_jsx_runtime.jsx)(Input, {
|
|
20760
|
+
id: e,
|
|
20761
|
+
type: "text",
|
|
20762
|
+
value: n.text ?? "",
|
|
20763
|
+
onChange: (e2) => i({
|
|
20764
|
+
...n,
|
|
20765
|
+
text: e2.target.value
|
|
20766
|
+
}),
|
|
20767
|
+
placeholder: "Text\u2026",
|
|
20768
|
+
className: "border-input min-w-0"
|
|
20769
|
+
}) : t === "select" && a ? (0, import_jsx_runtime.jsx)("div", {
|
|
20770
|
+
className: "flex w-48",
|
|
20771
|
+
children: (0, import_jsx_runtime.jsx)(FilterByValuesPicker, {
|
|
20772
|
+
column: a,
|
|
20773
|
+
calculateTopKRows: o,
|
|
20774
|
+
chosenValues: n.options ?? [],
|
|
20775
|
+
onChange: (e2) => i({
|
|
20776
|
+
...n,
|
|
20777
|
+
options: e2
|
|
20778
|
+
})
|
|
20779
|
+
})
|
|
20780
|
+
}) : null;
|
|
20781
|
+
function getEditableType(e) {
|
|
20782
|
+
return e.type === "number" ? "number" : e.type === "text" ? "text" : e.type === "boolean" ? "boolean" : e.type === "select" ? "select" : "text";
|
|
20783
|
+
}
|
|
20784
|
+
function getUiOperator(e) {
|
|
20785
|
+
return e.operator === "is_null" ? "is_null" : e.operator === "is_not_null" ? "is_not_null" : e.type === "number" ? "between" : e.type === "text" ? "contains" : e.type === "boolean" ? e.value ? "is_true" : "is_false" : e.type === "select" ? e.operator === "not_in" ? "not_in" : "in" : "contains";
|
|
20786
|
+
}
|
|
20787
|
+
function toDraftValue(e) {
|
|
20788
|
+
return e.type === "number" ? {
|
|
20789
|
+
min: e.min,
|
|
20790
|
+
max: e.max
|
|
20791
|
+
} : e.type === "text" ? {
|
|
20792
|
+
text: e.text
|
|
20793
|
+
} : e.type === "select" ? {
|
|
20794
|
+
options: [
|
|
20795
|
+
...e.options
|
|
20796
|
+
]
|
|
20797
|
+
} : {};
|
|
20798
|
+
}
|
|
20799
|
+
function buildFilterValue({ type: e, operator: t, draft: n }) {
|
|
20800
|
+
if (t === "is_null" || t === "is_not_null") {
|
|
20801
|
+
let n2 = t;
|
|
20802
|
+
return e === "number" ? Filter.number({
|
|
20803
|
+
operator: n2
|
|
20804
|
+
}) : e === "boolean" ? Filter.boolean({
|
|
20805
|
+
operator: n2
|
|
20806
|
+
}) : Filter.text({
|
|
20807
|
+
operator: n2
|
|
20808
|
+
});
|
|
20809
|
+
}
|
|
20810
|
+
if (e === "number") return n.min === void 0 && n.max === void 0 ? void 0 : Filter.number({
|
|
20811
|
+
min: n.min,
|
|
20812
|
+
max: n.max
|
|
20813
|
+
});
|
|
20814
|
+
if (e === "text") return n.text ? Filter.text({
|
|
20815
|
+
text: n.text,
|
|
20816
|
+
operator: "contains"
|
|
20817
|
+
}) : void 0;
|
|
20818
|
+
if (e === "boolean") return t === "is_true" ? Filter.boolean({
|
|
20819
|
+
value: true,
|
|
20820
|
+
operator: "is_true"
|
|
20821
|
+
}) : t === "is_false" ? Filter.boolean({
|
|
20822
|
+
value: false,
|
|
20823
|
+
operator: "is_false"
|
|
20824
|
+
}) : void 0;
|
|
20825
|
+
if (e === "select") return !n.options || n.options.length === 0 ? void 0 : Filter.select({
|
|
20826
|
+
options: n.options,
|
|
20827
|
+
operator: t === "not_in" ? "not_in" : "in"
|
|
20828
|
+
});
|
|
20829
|
+
}
|
|
20830
|
+
const FilterPills = ({ filters: e, table: t, calculateTopKRows: n }) => {
|
|
20831
|
+
let i = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
|
|
20832
|
+
hour: "2-digit",
|
|
20833
|
+
minute: "2-digit",
|
|
20834
|
+
second: "2-digit"
|
|
20835
|
+
});
|
|
20836
|
+
return !e || e.length === 0 ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
20837
|
+
part: "filter-pills",
|
|
20838
|
+
className: "flex flex-wrap gap-2 px-1 py-2",
|
|
20839
|
+
children: e.map((e2) => (0, import_jsx_runtime.jsx)(FilterPill, {
|
|
20840
|
+
columnId: e2.id,
|
|
20841
|
+
value: e2.value,
|
|
20842
|
+
timeFormatter: i,
|
|
20843
|
+
table: t,
|
|
20844
|
+
calculateTopKRows: n,
|
|
20845
|
+
onRemove: () => t.setColumnFilters((t2) => t2.filter((t3) => t3.id !== e2.id))
|
|
20846
|
+
}, e2.id))
|
|
20847
|
+
});
|
|
20848
|
+
};
|
|
20849
|
+
var FilterPill = ({ columnId: e, value: t, timeFormatter: n, table: i, calculateTopKRows: o, onRemove: s }) => {
|
|
20850
|
+
let [c, d] = (0, import_react.useState)(false), h = formatValue(t, n);
|
|
20851
|
+
if (!h) return null;
|
|
20852
|
+
let _ = "type" in t && (t.type === "date" || t.type === "datetime" || t.type === "time"), v = h.value === void 0, y = (e2) => {
|
|
20853
|
+
e2.stopPropagation(), s();
|
|
20854
|
+
}, S = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
20855
|
+
children: [
|
|
20856
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20857
|
+
className: "text-foreground",
|
|
20858
|
+
children: e
|
|
20859
|
+
}),
|
|
20860
|
+
(0, import_jsx_runtime.jsx)(Separator, {}),
|
|
20861
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20862
|
+
className: cn("font-normal", v ? "text-foreground" : "text-foreground/70"),
|
|
20863
|
+
children: h.operator
|
|
20864
|
+
}),
|
|
20865
|
+
!v && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
20866
|
+
children: [
|
|
20867
|
+
(0, import_jsx_runtime.jsx)(Separator, {}),
|
|
20868
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
20869
|
+
className: "text-foreground",
|
|
20870
|
+
children: h.value
|
|
20871
|
+
})
|
|
20872
|
+
]
|
|
20873
|
+
})
|
|
20874
|
+
]
|
|
20875
|
+
}), w = (0, import_jsx_runtime.jsx)(Button, {
|
|
20876
|
+
type: "button",
|
|
20877
|
+
size: "icon",
|
|
20878
|
+
variant: "ghost",
|
|
20879
|
+
className: "ml-1 rounded-full text-destructive/60 hover:text-destructive hover:shadow-none hover:bg-transparent",
|
|
20880
|
+
onClick: y,
|
|
20881
|
+
"aria-label": "Remove filter",
|
|
20882
|
+
children: (0, import_jsx_runtime.jsx)(X, {
|
|
20883
|
+
className: "h-3.5 w-3.5",
|
|
20884
|
+
"aria-hidden": true
|
|
20885
|
+
})
|
|
20886
|
+
});
|
|
20887
|
+
return _ ? (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20888
|
+
variant: "outline",
|
|
20889
|
+
className: "bg-background border-border text-foreground",
|
|
20890
|
+
children: [
|
|
20891
|
+
S,
|
|
20892
|
+
w
|
|
20893
|
+
]
|
|
20894
|
+
}) : (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20895
|
+
open: c,
|
|
20896
|
+
onOpenChange: d,
|
|
20897
|
+
modal: true,
|
|
20898
|
+
children: [
|
|
20899
|
+
(0, import_jsx_runtime.jsxs)(Badge, {
|
|
20900
|
+
variant: "outline",
|
|
20901
|
+
className: cn("bg-background border-border text-foreground", "hover:bg-accent hover:text-accent-foreground", "has-data-[state=open]:bg-accent has-data-[state=open]:text-accent-foreground", "transition-colors"),
|
|
20902
|
+
children: [
|
|
20903
|
+
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20904
|
+
asChild: true,
|
|
20905
|
+
children: (0, import_jsx_runtime.jsx)("button", {
|
|
20906
|
+
type: "button",
|
|
20907
|
+
className: "inline-flex items-center cursor-pointer bg-transparent border-0 p-0 [font:inherit] text-inherit",
|
|
20908
|
+
"aria-label": `Edit filter on ${e}`,
|
|
20909
|
+
children: S
|
|
20910
|
+
})
|
|
20911
|
+
}),
|
|
20912
|
+
w
|
|
20913
|
+
]
|
|
20914
|
+
}),
|
|
20915
|
+
(0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20916
|
+
className: "w-auto p-0",
|
|
20917
|
+
align: "start",
|
|
20918
|
+
alignOffset: -10,
|
|
20919
|
+
sideOffset: 10,
|
|
20920
|
+
avoidCollisions: true,
|
|
20921
|
+
onOpenAutoFocus: (e2) => e2.preventDefault(),
|
|
20922
|
+
children: (0, import_jsx_runtime.jsx)(FilterPillEditor, {
|
|
20923
|
+
snapshot: {
|
|
20924
|
+
columnId: e,
|
|
20925
|
+
value: t
|
|
20926
|
+
},
|
|
20927
|
+
table: i,
|
|
20928
|
+
calculateTopKRows: o,
|
|
20929
|
+
onClose: () => d(false)
|
|
20930
|
+
})
|
|
20931
|
+
})
|
|
20932
|
+
]
|
|
20933
|
+
});
|
|
20934
|
+
};
|
|
20935
|
+
function Separator() {
|
|
20936
|
+
return (0, import_jsx_runtime.jsx)("span", {
|
|
20937
|
+
"aria-hidden": true,
|
|
20938
|
+
className: "mx-1.5 w-px h-3 bg-foreground/30"
|
|
20939
|
+
});
|
|
20940
|
+
}
|
|
20211
20941
|
function formatValue(e, t) {
|
|
20212
20942
|
var _a2, _b, _c, _d;
|
|
20213
20943
|
if ("type" in e) {
|
|
20214
|
-
if (e.operator === "is_null") return
|
|
20215
|
-
|
|
20944
|
+
if (e.operator === "is_null") return {
|
|
20945
|
+
operator: "is null"
|
|
20946
|
+
};
|
|
20947
|
+
if (e.operator === "is_not_null") return {
|
|
20948
|
+
operator: "is not null"
|
|
20949
|
+
};
|
|
20216
20950
|
if (e.type === "number") return formatMinMax(e.min, e.max);
|
|
20217
20951
|
if (e.type === "date") return formatMinMax((_a2 = e.min) == null ? void 0 : _a2.toISOString(), (_b = e.max) == null ? void 0 : _b.toISOString());
|
|
20218
20952
|
if (e.type === "time") return formatMinMax(e.min ? t.format(e.min) : void 0, e.max ? t.format(e.max) : void 0);
|
|
20219
20953
|
if (e.type === "datetime") return formatMinMax((_c = e.min) == null ? void 0 : _c.toISOString(), (_d = e.max) == null ? void 0 : _d.toISOString());
|
|
20220
|
-
if (e.type === "boolean") return
|
|
20954
|
+
if (e.type === "boolean") return {
|
|
20955
|
+
operator: `is ${e.value ? "True" : "False"}`
|
|
20956
|
+
};
|
|
20221
20957
|
if (e.type === "select") {
|
|
20222
20958
|
let t2 = e.options.map((e2) => stringifyUnknownValue({
|
|
20223
20959
|
value: e2
|
|
20224
20960
|
}));
|
|
20225
|
-
return
|
|
20961
|
+
return {
|
|
20962
|
+
operator: e.operator === "in" ? "is in" : "not in",
|
|
20963
|
+
value: `[${t2.join(", ")}]`
|
|
20964
|
+
};
|
|
20226
20965
|
}
|
|
20227
|
-
if (e.type === "text") return
|
|
20966
|
+
if (e.type === "text") return {
|
|
20967
|
+
operator: "contains",
|
|
20968
|
+
value: `"${e.text}"`
|
|
20969
|
+
};
|
|
20228
20970
|
logNever(e);
|
|
20229
20971
|
}
|
|
20230
20972
|
}
|
|
20231
20973
|
function formatMinMax(e, t) {
|
|
20232
|
-
if (!(e === void 0 && t === void 0)) return e === t ?
|
|
20974
|
+
if (!(e === void 0 && t === void 0)) return e === t ? {
|
|
20975
|
+
operator: "==",
|
|
20976
|
+
value: String(e)
|
|
20977
|
+
} : e === void 0 ? {
|
|
20978
|
+
operator: "<=",
|
|
20979
|
+
value: String(t)
|
|
20980
|
+
} : t === void 0 ? {
|
|
20981
|
+
operator: ">=",
|
|
20982
|
+
value: String(e)
|
|
20983
|
+
} : {
|
|
20984
|
+
operator: "between",
|
|
20985
|
+
value: `${e} - ${t}`
|
|
20986
|
+
};
|
|
20233
20987
|
}
|
|
20234
20988
|
const FocusRowFeature = {
|
|
20235
20989
|
getInitialState: (e) => ({
|
|
@@ -22749,7 +23503,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22749
23503
|
filename: i2.filename
|
|
22750
23504
|
};
|
|
22751
23505
|
}, t[5] = e, t[6] = v);
|
|
22752
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23506
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, BM, $;
|
|
22753
23507
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
22754
23508
|
let e2 = async (t2) => {
|
|
22755
23509
|
let n2 = await y(t2, () => {
|
|
@@ -22799,7 +23553,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22799
23553
|
}), 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, {
|
|
22800
23554
|
className: "text-xs text-muted-foreground",
|
|
22801
23555
|
children: "Download"
|
|
22802
|
-
}), t[29] = Q) : Q = t[29],
|
|
23556
|
+
}), t[29] = Q) : Q = t[29], BM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
22803
23557
|
onSelect: () => {
|
|
22804
23558
|
e2(t2.format);
|
|
22805
23559
|
},
|
|
@@ -22852,30 +23606,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22852
23606
|
]
|
|
22853
23607
|
})
|
|
22854
23608
|
]
|
|
22855
|
-
}, 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] =
|
|
22856
|
-
} 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],
|
|
22857
|
-
let
|
|
22858
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23609
|
+
}, 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] = BM, t[23] = $;
|
|
23610
|
+
} 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], BM = t[22], $ = t[23];
|
|
23611
|
+
let VM;
|
|
23612
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== BM || t[39] !== $ ? (VM = (0, import_jsx_runtime.jsxs)(E, {
|
|
22859
23613
|
side: q,
|
|
22860
23614
|
className: J,
|
|
22861
23615
|
children: [
|
|
22862
23616
|
Q,
|
|
22863
|
-
|
|
23617
|
+
BM,
|
|
22864
23618
|
$,
|
|
22865
23619
|
A,
|
|
22866
23620
|
M
|
|
22867
23621
|
]
|
|
22868
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
22869
|
-
let
|
|
22870
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23622
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = BM, t[39] = $, t[40] = VM) : VM = t[40];
|
|
23623
|
+
let HM;
|
|
23624
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== VM ? (HM = (0, import_jsx_runtime.jsxs)(O, {
|
|
22871
23625
|
modal: I,
|
|
22872
23626
|
open: z,
|
|
22873
23627
|
onOpenChange: U,
|
|
22874
23628
|
children: [
|
|
22875
23629
|
K,
|
|
22876
|
-
|
|
23630
|
+
VM
|
|
22877
23631
|
]
|
|
22878
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23632
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = VM, t[47] = HM) : HM = t[47], HM;
|
|
22879
23633
|
};
|
|
22880
23634
|
function fetchJson(e) {
|
|
22881
23635
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -22966,22 +23720,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22966
23720
|
]
|
|
22967
23721
|
}) : null;
|
|
22968
23722
|
};
|
|
22969
|
-
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:
|
|
22970
|
-
let [
|
|
23723
|
+
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: BM, onSearchQueryChange: $, showFilters: VM = false, filters: HM, onFiltersChange: UM, calculateTopKRows: WM, reloading: GM, freezeColumnsLeft: KM, freezeColumnsRight: qM, toggleDisplayHeader: JM, showChartBuilder: YM, isChartBuilderOpen: XM, showPageSizeSelector: ZM, showTableExplorer: QM, togglePanel: $M, isPanelOpen: eN, isAnyPanelOpen: tN, viewedRowIdx: nN, onViewedRowChange: rN }) => {
|
|
23724
|
+
let [iN, aN] = import_react.useState(false), { locale: oN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: sN, setColumnPinning: cN } = useColumnPinning(KM, qM);
|
|
22971
23725
|
import_react.useEffect(() => {
|
|
22972
23726
|
let e2;
|
|
22973
|
-
return
|
|
22974
|
-
|
|
22975
|
-
}, 300) :
|
|
23727
|
+
return GM ? e2 = setTimeout(() => {
|
|
23728
|
+
aN(true);
|
|
23729
|
+
}, 300) : aN(false), () => {
|
|
22976
23730
|
e2 && clearTimeout(e2);
|
|
22977
23731
|
};
|
|
22978
23732
|
}, [
|
|
22979
|
-
|
|
23733
|
+
GM
|
|
22980
23734
|
]);
|
|
22981
|
-
function
|
|
23735
|
+
function lN(e2, t2) {
|
|
22982
23736
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
22983
23737
|
}
|
|
22984
|
-
let
|
|
23738
|
+
let uN = useReactTable({
|
|
22985
23739
|
_features: [
|
|
22986
23740
|
ColumnPinning,
|
|
22987
23741
|
ColumnWrappingFeature,
|
|
@@ -23005,11 +23759,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23005
23759
|
getRowId: (e2, t2) => {
|
|
23006
23760
|
let n2 = getStableRowId(e2);
|
|
23007
23761
|
if (n2) return n2;
|
|
23008
|
-
let i2 =
|
|
23762
|
+
let i2 = lN(e2, t2);
|
|
23009
23763
|
return String(i2);
|
|
23010
23764
|
}
|
|
23011
23765
|
} : {},
|
|
23012
|
-
locale:
|
|
23766
|
+
locale: oN,
|
|
23013
23767
|
manualPagination: z,
|
|
23014
23768
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23015
23769
|
...v ? {
|
|
@@ -23019,21 +23773,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23019
23773
|
enableMultiSort: true,
|
|
23020
23774
|
getSortedRowModel: getSortedRowModel(),
|
|
23021
23775
|
manualFiltering: true,
|
|
23022
|
-
enableColumnFilters:
|
|
23776
|
+
enableColumnFilters: VM,
|
|
23023
23777
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23024
|
-
onColumnFiltersChange:
|
|
23778
|
+
onColumnFiltersChange: UM,
|
|
23025
23779
|
onRowSelectionChange: K,
|
|
23026
23780
|
onCellSelectionChange: q,
|
|
23027
23781
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23028
23782
|
enableMultiCellSelection: c === "multi-cell",
|
|
23029
|
-
onColumnPinningChange:
|
|
23783
|
+
onColumnPinningChange: cN,
|
|
23030
23784
|
enableFocusRow: true,
|
|
23031
|
-
onFocusRowChange:
|
|
23785
|
+
onFocusRowChange: rN,
|
|
23032
23786
|
state: {
|
|
23033
23787
|
..._ ? {
|
|
23034
23788
|
sorting: _
|
|
23035
23789
|
} : {},
|
|
23036
|
-
columnFilters:
|
|
23790
|
+
columnFilters: HM,
|
|
23037
23791
|
...A ? {
|
|
23038
23792
|
pagination: A
|
|
23039
23793
|
} : U && !A ? {} : {
|
|
@@ -23045,20 +23799,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23045
23799
|
rowSelection: y ?? {},
|
|
23046
23800
|
cellSelection: S ?? [],
|
|
23047
23801
|
cellStyling: w,
|
|
23048
|
-
columnPinning:
|
|
23802
|
+
columnPinning: sN,
|
|
23049
23803
|
cellHoverTemplate: E,
|
|
23050
23804
|
cellHoverTexts: O ?? {}
|
|
23051
23805
|
}
|
|
23052
|
-
}),
|
|
23806
|
+
}), dN = (eN == null ? void 0 : eN(PANEL_TYPES.ROW_VIEWER)) ?? false, fN = !U && o.length > 100, pN = useScrollContainerHeight({
|
|
23053
23807
|
maxHeight: n,
|
|
23054
|
-
virtualize:
|
|
23808
|
+
virtualize: fN
|
|
23055
23809
|
});
|
|
23056
23810
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23057
23811
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23058
23812
|
children: [
|
|
23059
23813
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23060
|
-
filters:
|
|
23061
|
-
table:
|
|
23814
|
+
filters: HM,
|
|
23815
|
+
table: uN,
|
|
23816
|
+
calculateTopKRows: WM
|
|
23062
23817
|
}),
|
|
23063
23818
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23064
23819
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23067,32 +23822,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23067
23822
|
children: [
|
|
23068
23823
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23069
23824
|
enableSearch: Q,
|
|
23070
|
-
searchQuery:
|
|
23825
|
+
searchQuery: BM,
|
|
23071
23826
|
onSearchQueryChange: $,
|
|
23072
|
-
reloading:
|
|
23073
|
-
showChartBuilder:
|
|
23074
|
-
isChartBuilderOpen:
|
|
23075
|
-
toggleDisplayHeader:
|
|
23076
|
-
showTableExplorer:
|
|
23077
|
-
togglePanel:
|
|
23078
|
-
isAnyPanelOpen:
|
|
23827
|
+
reloading: GM,
|
|
23828
|
+
showChartBuilder: YM,
|
|
23829
|
+
isChartBuilderOpen: XM,
|
|
23830
|
+
toggleDisplayHeader: JM,
|
|
23831
|
+
showTableExplorer: QM,
|
|
23832
|
+
togglePanel: $M,
|
|
23833
|
+
isAnyPanelOpen: tN,
|
|
23079
23834
|
downloadAs: I
|
|
23080
23835
|
}),
|
|
23081
23836
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23082
23837
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23083
|
-
ref:
|
|
23838
|
+
ref: pN,
|
|
23084
23839
|
children: [
|
|
23085
|
-
|
|
23840
|
+
iN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23086
23841
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23087
23842
|
}),
|
|
23088
|
-
renderTableHeader(
|
|
23843
|
+
renderTableHeader(uN, fN || !!n),
|
|
23089
23844
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23090
|
-
table:
|
|
23845
|
+
table: uN,
|
|
23091
23846
|
columns: i,
|
|
23092
|
-
rowViewerPanelOpen:
|
|
23093
|
-
getRowIndex:
|
|
23094
|
-
viewedRowIdx:
|
|
23095
|
-
virtualize:
|
|
23847
|
+
rowViewerPanelOpen: dN,
|
|
23848
|
+
getRowIndex: lN,
|
|
23849
|
+
viewedRowIdx: nN,
|
|
23850
|
+
virtualize: fN
|
|
23096
23851
|
})
|
|
23097
23852
|
]
|
|
23098
23853
|
}),
|
|
@@ -23103,10 +23858,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23103
23858
|
pagination: U,
|
|
23104
23859
|
selection: c,
|
|
23105
23860
|
onRowSelectionChange: K,
|
|
23106
|
-
table:
|
|
23861
|
+
table: uN,
|
|
23107
23862
|
getRowIds: J,
|
|
23108
|
-
showPageSizeSelector:
|
|
23109
|
-
tableLoading:
|
|
23863
|
+
showPageSizeSelector: ZM,
|
|
23864
|
+
tableLoading: GM
|
|
23110
23865
|
})
|
|
23111
23866
|
]
|
|
23112
23867
|
})
|
|
@@ -23187,76 +23942,76 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23187
23942
|
t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
|
|
23188
23943
|
let A = O, M;
|
|
23189
23944
|
t[7] !== v || t[8] !== n ? (M = n && v && !isStaticNotebook(), t[7] = v, t[8] = n, t[9] = M) : M = t[9];
|
|
23190
|
-
let
|
|
23945
|
+
let I = M, U = !isStaticNotebook(), K = (e2) => {
|
|
23191
23946
|
n == null ? void 0 : n({
|
|
23192
23947
|
prompt: `My code gives the following error:
|
|
23193
23948
|
|
|
23194
23949
|
${_}`,
|
|
23195
23950
|
triggerImmediately: e2
|
|
23196
23951
|
});
|
|
23197
|
-
}, [
|
|
23952
|
+
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23198
23953
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
|
|
23199
|
-
let
|
|
23200
|
-
t[11] ===
|
|
23201
|
-
let
|
|
23202
|
-
t[13] ===
|
|
23203
|
-
className:
|
|
23204
|
-
}), t[13] =
|
|
23205
|
-
let
|
|
23206
|
-
t[15] ===
|
|
23954
|
+
let VM = d ? "rotate-180" : "rotate-0", HM;
|
|
23955
|
+
t[11] === VM ? HM = t[12] : (HM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", VM), t[11] = VM, t[12] = HM);
|
|
23956
|
+
let UM;
|
|
23957
|
+
t[13] === HM ? UM = t[14] : (UM = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
23958
|
+
className: HM
|
|
23959
|
+
}), t[13] = HM, t[14] = UM);
|
|
23960
|
+
let WM = q || "Error", GM;
|
|
23961
|
+
t[15] === WM ? GM = t[16] : (GM = (0, import_jsx_runtime.jsxs)("span", {
|
|
23207
23962
|
className: "text-destructive",
|
|
23208
23963
|
children: [
|
|
23209
|
-
|
|
23964
|
+
WM,
|
|
23210
23965
|
":"
|
|
23211
23966
|
]
|
|
23212
|
-
}), t[15] =
|
|
23213
|
-
let
|
|
23214
|
-
t[17] !==
|
|
23967
|
+
}), t[15] = WM, t[16] = GM);
|
|
23968
|
+
let KM;
|
|
23969
|
+
t[17] !== J || t[18] !== GM ? (KM = (0, import_jsx_runtime.jsxs)("div", {
|
|
23215
23970
|
className: "text-sm inline font-mono",
|
|
23216
23971
|
children: [
|
|
23217
|
-
|
|
23972
|
+
GM,
|
|
23218
23973
|
" ",
|
|
23219
|
-
|
|
23974
|
+
J
|
|
23220
23975
|
]
|
|
23221
|
-
}), t[17] =
|
|
23222
|
-
let
|
|
23223
|
-
t[20] !==
|
|
23976
|
+
}), t[17] = J, t[18] = GM, t[19] = KM) : KM = t[19];
|
|
23977
|
+
let JM;
|
|
23978
|
+
t[20] !== KM || t[21] !== UM ? (JM = (0, import_jsx_runtime.jsxs)("div", {
|
|
23224
23979
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23225
23980
|
onClick: $,
|
|
23226
23981
|
children: [
|
|
23227
|
-
|
|
23228
|
-
|
|
23982
|
+
UM,
|
|
23983
|
+
KM
|
|
23229
23984
|
]
|
|
23230
|
-
}), t[20] =
|
|
23231
|
-
let
|
|
23232
|
-
t[23] === c ?
|
|
23985
|
+
}), t[20] = KM, t[21] = UM, t[22] = JM) : JM = t[22];
|
|
23986
|
+
let YM;
|
|
23987
|
+
t[23] === c ? YM = t[24] : (YM = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
23233
23988
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23234
23989
|
children: c
|
|
23235
|
-
}), t[23] = c, t[24] =
|
|
23236
|
-
let
|
|
23237
|
-
t[25] !==
|
|
23990
|
+
}), t[23] = c, t[24] = YM);
|
|
23991
|
+
let ZM;
|
|
23992
|
+
t[25] !== JM || t[26] !== YM ? (ZM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
23238
23993
|
value: KEY,
|
|
23239
23994
|
className: "border-none",
|
|
23240
23995
|
children: [
|
|
23241
|
-
|
|
23242
|
-
|
|
23996
|
+
JM,
|
|
23997
|
+
YM
|
|
23243
23998
|
]
|
|
23244
|
-
}), t[25] =
|
|
23245
|
-
let
|
|
23246
|
-
t[28] !==
|
|
23999
|
+
}), t[25] = JM, t[26] = YM, t[27] = ZM) : ZM = t[27];
|
|
24000
|
+
let QM;
|
|
24001
|
+
t[28] !== ZM || t[29] !== Q ? (QM = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
23247
24002
|
type: "single",
|
|
23248
24003
|
collapsible: true,
|
|
23249
|
-
value:
|
|
23250
|
-
children:
|
|
23251
|
-
}), t[28] =
|
|
23252
|
-
let
|
|
23253
|
-
t[31] !== K || t[32] !==
|
|
24004
|
+
value: Q,
|
|
24005
|
+
children: ZM
|
|
24006
|
+
}), t[28] = ZM, t[29] = Q, t[30] = QM) : QM = t[30];
|
|
24007
|
+
let $M;
|
|
24008
|
+
t[31] !== K || t[32] !== I ? ($M = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
23254
24009
|
tooltip: "Fix with AI",
|
|
23255
24010
|
openPrompt: () => K(false),
|
|
23256
24011
|
applyAutofix: () => K(true)
|
|
23257
|
-
}), t[31] = K, t[32] =
|
|
23258
|
-
let
|
|
23259
|
-
t[34] !== A || t[35] !== E ? (
|
|
24012
|
+
}), t[31] = K, t[32] = I, t[33] = $M) : $M = t[33];
|
|
24013
|
+
let tN;
|
|
24014
|
+
t[34] !== A || t[35] !== E ? (tN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
23260
24015
|
content: "Attach pdb to the exception point.",
|
|
23261
24016
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
23262
24017
|
size: "xs",
|
|
@@ -23273,9 +24028,9 @@ ${_}`,
|
|
|
23273
24028
|
"Launch debugger"
|
|
23274
24029
|
]
|
|
23275
24030
|
})
|
|
23276
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
23277
|
-
let
|
|
23278
|
-
t[37] !== _ || t[38] !== i ? (
|
|
24031
|
+
}), t[34] = A, t[35] = E, t[36] = tN) : tN = t[36];
|
|
24032
|
+
let nN;
|
|
24033
|
+
t[37] !== _ || t[38] !== i ? (nN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
23279
24034
|
children: [
|
|
23280
24035
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
23281
24036
|
asChild: true,
|
|
@@ -23343,24 +24098,24 @@ ${_}`,
|
|
|
23343
24098
|
]
|
|
23344
24099
|
})
|
|
23345
24100
|
]
|
|
23346
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
23347
|
-
let
|
|
23348
|
-
t[40] !==
|
|
24101
|
+
}), t[37] = _, t[38] = i, t[39] = nN) : nN = t[39];
|
|
24102
|
+
let rN;
|
|
24103
|
+
t[40] !== $M || t[41] !== tN || t[42] !== nN ? (rN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23349
24104
|
className: "flex gap-2",
|
|
23350
24105
|
children: [
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
24106
|
+
$M,
|
|
24107
|
+
tN,
|
|
24108
|
+
nN
|
|
23354
24109
|
]
|
|
23355
|
-
}), t[40] =
|
|
23356
|
-
let
|
|
23357
|
-
return t[44] !==
|
|
24110
|
+
}), t[40] = $M, t[41] = tN, t[42] = nN, t[43] = rN) : rN = t[43];
|
|
24111
|
+
let iN;
|
|
24112
|
+
return t[44] !== QM || t[45] !== rN ? (iN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23358
24113
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
23359
24114
|
children: [
|
|
23360
|
-
|
|
23361
|
-
|
|
24115
|
+
QM,
|
|
24116
|
+
rN
|
|
23362
24117
|
]
|
|
23363
|
-
}), t[44] =
|
|
24118
|
+
}), t[44] = QM, t[45] = rN, t[46] = iN) : iN = t[46], iN;
|
|
23364
24119
|
};
|
|
23365
24120
|
function lastLine(e) {
|
|
23366
24121
|
var _a2, _b;
|
|
@@ -24669,95 +25424,97 @@ ${_}`,
|
|
|
24669
25424
|
}
|
|
24670
25425
|
});
|
|
24671
25426
|
export {
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24681
|
-
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24698
|
-
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
25427
|
+
SELECT_COLUMN_ID as $,
|
|
25428
|
+
slotsController as A,
|
|
25429
|
+
Expand as At,
|
|
25430
|
+
NAMELESS_COLUMN_PREFIX as B,
|
|
25431
|
+
ContextAwarePanelItem as C,
|
|
25432
|
+
EmotionCacheProvider as Ct,
|
|
25433
|
+
contextAwarePanelType as D,
|
|
25434
|
+
GripHorizontal as Dt,
|
|
25435
|
+
contextAwarePanelOwner as E,
|
|
25436
|
+
TextWrap as Et,
|
|
25437
|
+
TableBody as F,
|
|
25438
|
+
ChevronsLeft as Ft,
|
|
25439
|
+
ColumnChartSpecModel as G,
|
|
25440
|
+
inferFieldTypes as H,
|
|
25441
|
+
TableCell as I,
|
|
25442
|
+
ChevronsDownUp as It,
|
|
25443
|
+
usePrevious as J,
|
|
25444
|
+
DelayMount as K,
|
|
25445
|
+
TableHead as L,
|
|
25446
|
+
ChevronLeft as Lt,
|
|
25447
|
+
Fill as M,
|
|
25448
|
+
Download as Mt,
|
|
25449
|
+
Provider$1 as N,
|
|
25450
|
+
ChevronsUpDown as Nt,
|
|
25451
|
+
isCellAwareAtom as O,
|
|
25452
|
+
Funnel as Ot,
|
|
25453
|
+
Table as P,
|
|
25454
|
+
ChevronsRight as Pt,
|
|
25455
|
+
INDEX_COLUMN_NAME as Q,
|
|
25456
|
+
TableHeader as R,
|
|
25457
|
+
ArrowDownWideNarrow as Rt,
|
|
25458
|
+
ComboboxItem as S,
|
|
25459
|
+
HtmlOutput as St,
|
|
25460
|
+
contextAwarePanelOpen as T,
|
|
25461
|
+
isStaticNotebook as Tt,
|
|
25462
|
+
renderCellValue as U,
|
|
25463
|
+
generateColumns as V,
|
|
25464
|
+
ColumnChartContext as W,
|
|
25465
|
+
loadTableAndRawData as X,
|
|
25466
|
+
getPageIndexForRow as Y,
|
|
25467
|
+
loadTableData as Z,
|
|
24711
25468
|
Filenames as _,
|
|
24712
25469
|
__tla,
|
|
24713
|
-
|
|
25470
|
+
ChartLoadingState as _t,
|
|
24714
25471
|
Slide as a,
|
|
24715
|
-
|
|
25472
|
+
CommandEmpty as at,
|
|
24716
25473
|
useInternalStateWithSync as b,
|
|
24717
|
-
|
|
25474
|
+
RenderTextWithLinks as bt,
|
|
24718
25475
|
JsonOutput as c,
|
|
24719
|
-
|
|
25476
|
+
CommandList as ct,
|
|
24720
25477
|
DataTable as d,
|
|
24721
|
-
|
|
24722
|
-
|
|
25478
|
+
Tabs as dt,
|
|
25479
|
+
TOO_MANY_ROWS as et,
|
|
24723
25480
|
InstallPackageButton as f,
|
|
24724
|
-
|
|
25481
|
+
TabsContent as ft,
|
|
24725
25482
|
downloadHTMLAsImage as g,
|
|
24726
|
-
|
|
25483
|
+
ChartInfoState as gt,
|
|
24727
25484
|
downloadByURL as h,
|
|
24728
|
-
|
|
25485
|
+
ChartErrorState as ht,
|
|
24729
25486
|
SlideSidebar as i,
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24734
|
-
|
|
25487
|
+
Command as it,
|
|
25488
|
+
Toggle as j,
|
|
25489
|
+
Ellipsis as jt,
|
|
25490
|
+
SlotNames as k,
|
|
25491
|
+
EyeOff as kt,
|
|
24735
25492
|
OutputArea as l,
|
|
24736
|
-
|
|
25493
|
+
CommandSeparator as lt,
|
|
24737
25494
|
downloadBlob as m,
|
|
24738
|
-
|
|
25495
|
+
TabsTrigger as mt,
|
|
24739
25496
|
DEFAULT_SLIDE_TYPE as n,
|
|
24740
|
-
|
|
25497
|
+
getMimeValues as nt,
|
|
24741
25498
|
RadioGroup as o,
|
|
24742
|
-
|
|
25499
|
+
CommandInput as ot,
|
|
24743
25500
|
ADD_PRINTING_CLASS as p,
|
|
24744
|
-
|
|
24745
|
-
|
|
25501
|
+
TabsList as pt,
|
|
25502
|
+
useIntersectionObserver as q,
|
|
24746
25503
|
SLIDE_TYPE_OPTIONS_BY_VALUE as r,
|
|
24747
|
-
|
|
25504
|
+
filtersToFilterGroup as rt,
|
|
24748
25505
|
RadioGroupItem as s,
|
|
24749
|
-
|
|
25506
|
+
CommandItem as st,
|
|
24750
25507
|
DEFAULT_DECK_TRANSITION as t,
|
|
24751
|
-
|
|
25508
|
+
toFieldTypes as tt,
|
|
24752
25509
|
OutputRenderer as u,
|
|
24753
|
-
|
|
25510
|
+
Maps as ut,
|
|
24754
25511
|
prettifyRowColumnCount as v,
|
|
24755
|
-
|
|
24756
|
-
|
|
24757
|
-
|
|
24758
|
-
|
|
24759
|
-
|
|
25512
|
+
LazyVegaEmbed as vt,
|
|
25513
|
+
PANEL_TYPES as w,
|
|
25514
|
+
getStaticVirtualFiles as wt,
|
|
25515
|
+
Combobox as x,
|
|
25516
|
+
Kbd as xt,
|
|
24760
25517
|
prettifyRowCount as y,
|
|
24761
|
-
|
|
24762
|
-
|
|
25518
|
+
useOverflowDetection as yt,
|
|
25519
|
+
TableRow as z
|
|
24763
25520
|
};
|