@marimo-team/islands 0.23.6-dev24 → 0.23.6-dev28
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-CVfL3lSs.js → chat-ui-M5YTKtUS.js} +3 -3
- package/dist/{code-visibility-CEdpy5Hd.js → code-visibility-BgeXZvoM.js} +525 -548
- package/dist/{formats-DJvu12E_.js → formats-CHpN2g_h.js} +1 -1
- package/dist/{html-to-image-Ctyt_1RZ.js → html-to-image-CH84rWtl.js} +1 -1
- package/dist/main.js +9 -9
- package/dist/{process-output-V4Xi7mGt.js → process-output-BDGfLHfB.js} +1 -1
- package/dist/{reveal-component-ZyBJLVVn.js → reveal-component-DfAfYnKx.js} +11 -11
- package/dist/toDate-CGmcCn8J.js +662 -0
- package/dist/{vega-component-D3zDd-Uu.js → vega-component-ciCILQDB.js} +2 -2
- package/package.json +1 -1
- package/src/core/runtime/runtime.ts +3 -2
- package/src/core/wasm/__tests__/bridge.test.ts +26 -1
- package/src/core/wasm/bridge.ts +18 -4
- package/src/core/wasm/worker/getController.ts +7 -0
- package/src/core/wasm/worker/save-worker.ts +2 -1
- package/src/core/wasm/worker/worker.ts +2 -1
- package/src/plugins/impl/common/labeled.tsx +1 -1
- package/dist/toDate-0ZO2rMtR.js +0 -638
|
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, Bn as Braces, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, Bn as Braces, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-CH84rWtl.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-CjMjllqy.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
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-BAOe64zx.js";
|
|
16
|
-
import { a as millisecondsInMinute, c as asRemoteURL, d as
|
|
16
|
+
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-CGmcCn8J.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";
|
|
@@ -28,14 +28,14 @@ import { t as invariant } from "./invariant-UcGKQEhF.js";
|
|
|
28
28
|
import { c as uniqueBy, t as Arrays } from "./arrays-CldYf7p7.js";
|
|
29
29
|
import { n as once, t as memoizeLastValue } from "./once-rJImu7SE.js";
|
|
30
30
|
import { a as parser } from "./dist-nuW5EDYT.js";
|
|
31
|
-
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-
|
|
31
|
+
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-CHpN2g_h.js";
|
|
32
32
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DtW2o230.js";
|
|
33
33
|
import { t as ErrorBoundary } from "./ErrorBoundary-Da4UeYxT.js";
|
|
34
34
|
import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-B6hCGywC.js";
|
|
38
|
-
let getPageIndexForRow, contextAwarePanelType,
|
|
38
|
+
let getPageIndexForRow, contextAwarePanelType, EyeOff, TableHead, ArrowDownWideNarrow, useInternalStateWithSync, RenderTextWithLinks, PANEL_TYPES, TextWrap, ContextAwarePanelItem, EmotionCacheProvider, Fill, ChevronsUpDown, inferFieldTypes, TableRow, Provider$1, ChevronsRight, ColumnChartSpecModel, renderCellValue, Table, ChevronsLeft, SlotNames, Ellipsis, slotsController, Download, contextAwarePanelOpen, GripHorizontal, Toggle, Code, filtersToFilterGroup, TableBody, ChevronsDownUp, prettifyRowCount, useOverflowDetection, ComboboxItem, HtmlOutput, NAMELESS_COLUMN_PREFIX, TableHeader, generateColumns, useIntersectionObserver, DelayMount, usePrevious, downloadBlob, TabsTrigger, DEFAULT_SLIDE_TYPE, toFieldTypes, Filenames, ChartLoadingState, Slide, CommandEmpty, JsonOutput, CommandList, loadTableAndRawData, OutputArea, CommandSeparator, ADD_PRINTING_CLASS, TabsList, InstallPackageButton, TabsContent, DEFAULT_DECK_TRANSITION, TOO_MANY_ROWS, isCellAwareAtom, Expand, contextAwarePanelOwner, Funnel, RadioGroup, CommandInput, DataTable, Tabs, marimoVersionAtom, INDEX_COLUMN_NAME, SLIDE_TYPE_OPTIONS_BY_VALUE, getMimeValues, OutputRenderer, Maps, ColumnChartContext, showCodeInRunModeAtom, SELECT_COLUMN_ID, SlideSidebar, Command, useNotebookCodeAvailable, loadTableData, RadioGroupItem, CommandItem, downloadByURL, ChartErrorState, Combobox, Kbd, prettifyRowColumnCount, LazyVegaEmbed, downloadHTMLAsImage, ChartInfoState, TableCell, ChevronLeft;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -4670,27 +4670,6 @@ let __tla = Promise.all([
|
|
|
4670
4670
|
function isMatch(e, t, n) {
|
|
4671
4671
|
return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
|
|
4672
4672
|
}
|
|
4673
|
-
function isStringToStringRecord(e) {
|
|
4674
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4675
|
-
for (let t of Object.values(e)) if (typeof t != "string") return false;
|
|
4676
|
-
return true;
|
|
4677
|
-
}
|
|
4678
|
-
function isMarimoStaticState(e) {
|
|
4679
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4680
|
-
let t = e;
|
|
4681
|
-
return !(!isStringToStringRecord(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
|
|
4682
|
-
}
|
|
4683
|
-
function getMarimoStaticState() {
|
|
4684
|
-
let e = window == null ? void 0 : window.__MARIMO_STATIC__;
|
|
4685
|
-
return isMarimoStaticState(e) ? e : void 0;
|
|
4686
|
-
}
|
|
4687
|
-
isStaticNotebook = function() {
|
|
4688
|
-
return getMarimoStaticState() !== void 0;
|
|
4689
|
-
};
|
|
4690
|
-
getStaticVirtualFiles = function() {
|
|
4691
|
-
let e = getMarimoStaticState();
|
|
4692
|
-
return invariant(e !== void 0, "Not a static notebook"), e.files;
|
|
4693
|
-
};
|
|
4694
4673
|
var isDevelopment$3 = false;
|
|
4695
4674
|
function sheetForTag(e) {
|
|
4696
4675
|
if (e.sheet) return e.sheet;
|
|
@@ -7550,33 +7529,33 @@ try {
|
|
|
7550
7529
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7551
7530
|
function y(e2) {
|
|
7552
7531
|
var _a2, _b, _c, _d;
|
|
7553
|
-
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),
|
|
7532
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $M = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7554
7533
|
h2
|
|
7555
|
-
]),
|
|
7556
|
-
|
|
7557
|
-
]),
|
|
7558
|
-
supportedColorSchemes:
|
|
7559
|
-
defaultLightColorScheme:
|
|
7560
|
-
defaultDarkColorScheme:
|
|
7534
|
+
]), eN = $[t], tN = eN || $, { colorSchemes: nN = _, components: rN = v, cssVarPrefix: iN } = tN, aN = Object.keys(nN).filter((e3) => !!nN[e3]).join(","), oN = import_react.useMemo(() => aN.split(","), [
|
|
7535
|
+
aN
|
|
7536
|
+
]), sN = typeof s == "string" ? s : s.light, cN = typeof s == "string" ? s : s.dark, { mode: lN, setMode: uN, systemMode: dN, lightColorScheme: fN, darkColorScheme: pN, colorScheme: mN, setColorScheme: hN } = useCurrentColorScheme({
|
|
7537
|
+
supportedColorSchemes: oN,
|
|
7538
|
+
defaultLightColorScheme: sN,
|
|
7539
|
+
defaultDarkColorScheme: cN,
|
|
7561
7540
|
modeStorageKey: y2,
|
|
7562
7541
|
colorSchemeStorageKey: S2,
|
|
7563
|
-
defaultMode:
|
|
7542
|
+
defaultMode: nN[sN] && nN[cN] ? U : ((_b = (_a2 = nN[tN.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = tN.palette) == null ? void 0 : _c.mode),
|
|
7564
7543
|
storageManager: E,
|
|
7565
7544
|
storageWindow: O,
|
|
7566
7545
|
noSsr: K
|
|
7567
|
-
}),
|
|
7568
|
-
|
|
7569
|
-
let
|
|
7546
|
+
}), gN = lN, _N = mN;
|
|
7547
|
+
$M && (gN = Q.mode, _N = Q.colorScheme);
|
|
7548
|
+
let vN = import_react.useMemo(() => {
|
|
7570
7549
|
var _a3;
|
|
7571
|
-
let e3 =
|
|
7572
|
-
...
|
|
7573
|
-
components:
|
|
7574
|
-
colorSchemes:
|
|
7575
|
-
cssVarPrefix:
|
|
7550
|
+
let e3 = _N || tN.defaultColorScheme, t2 = ((_a3 = tN.generateThemeVars) == null ? void 0 : _a3.call(tN)) || tN.vars, n2 = {
|
|
7551
|
+
...tN,
|
|
7552
|
+
components: rN,
|
|
7553
|
+
colorSchemes: nN,
|
|
7554
|
+
cssVarPrefix: iN,
|
|
7576
7555
|
vars: t2
|
|
7577
7556
|
};
|
|
7578
7557
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7579
|
-
let t3 =
|
|
7558
|
+
let t3 = nN[e3];
|
|
7580
7559
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7581
7560
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7582
7561
|
...n2[e4],
|
|
@@ -7586,31 +7565,31 @@ try {
|
|
|
7586
7565
|
}
|
|
7587
7566
|
return c ? c(n2) : n2;
|
|
7588
7567
|
}, [
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
]),
|
|
7568
|
+
tN,
|
|
7569
|
+
_N,
|
|
7570
|
+
rN,
|
|
7571
|
+
nN,
|
|
7572
|
+
iN
|
|
7573
|
+
]), yN = tN.colorSchemeSelector;
|
|
7595
7574
|
useEnhancedEffect_default(() => {
|
|
7596
|
-
if (
|
|
7597
|
-
let e3 =
|
|
7598
|
-
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(...
|
|
7575
|
+
if (_N && M && yN && yN !== "media") {
|
|
7576
|
+
let e3 = yN, t2 = yN;
|
|
7577
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...oN.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", _N));
|
|
7599
7578
|
else {
|
|
7600
|
-
let e4 = t2.replace("%s",
|
|
7579
|
+
let e4 = t2.replace("%s", _N).match(/\[([^\]]+)\]/);
|
|
7601
7580
|
if (e4) {
|
|
7602
7581
|
let [t3, n2] = e4[1].split("=");
|
|
7603
|
-
n2 ||
|
|
7604
|
-
M.removeAttribute(t3.replace(
|
|
7582
|
+
n2 || oN.forEach((e5) => {
|
|
7583
|
+
M.removeAttribute(t3.replace(_N, e5));
|
|
7605
7584
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7606
|
-
} else M.setAttribute(t2,
|
|
7585
|
+
} else M.setAttribute(t2, _N);
|
|
7607
7586
|
}
|
|
7608
7587
|
}
|
|
7609
7588
|
}, [
|
|
7610
|
-
|
|
7611
|
-
|
|
7589
|
+
_N,
|
|
7590
|
+
yN,
|
|
7612
7591
|
M,
|
|
7613
|
-
|
|
7592
|
+
oN
|
|
7614
7593
|
]), import_react.useEffect(() => {
|
|
7615
7594
|
let e3;
|
|
7616
7595
|
if (w2 && q.current && A) {
|
|
@@ -7623,48 +7602,48 @@ try {
|
|
|
7623
7602
|
clearTimeout(e3);
|
|
7624
7603
|
};
|
|
7625
7604
|
}, [
|
|
7626
|
-
|
|
7605
|
+
_N,
|
|
7627
7606
|
w2,
|
|
7628
7607
|
A
|
|
7629
7608
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7630
7609
|
q.current = false;
|
|
7631
7610
|
}), []);
|
|
7632
|
-
let
|
|
7633
|
-
allColorSchemes:
|
|
7634
|
-
colorScheme:
|
|
7635
|
-
darkColorScheme:
|
|
7636
|
-
lightColorScheme:
|
|
7637
|
-
mode:
|
|
7638
|
-
setColorScheme:
|
|
7639
|
-
setMode:
|
|
7640
|
-
systemMode:
|
|
7611
|
+
let bN = import_react.useMemo(() => ({
|
|
7612
|
+
allColorSchemes: oN,
|
|
7613
|
+
colorScheme: _N,
|
|
7614
|
+
darkColorScheme: pN,
|
|
7615
|
+
lightColorScheme: fN,
|
|
7616
|
+
mode: gN,
|
|
7617
|
+
setColorScheme: hN,
|
|
7618
|
+
setMode: uN,
|
|
7619
|
+
systemMode: dN
|
|
7641
7620
|
}), [
|
|
7642
|
-
|
|
7643
|
-
xN,
|
|
7621
|
+
oN,
|
|
7644
7622
|
_N,
|
|
7623
|
+
pN,
|
|
7624
|
+
fN,
|
|
7645
7625
|
gN,
|
|
7646
|
-
bN,
|
|
7647
|
-
yN,
|
|
7648
|
-
mN,
|
|
7649
7626
|
hN,
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7627
|
+
uN,
|
|
7628
|
+
dN,
|
|
7629
|
+
vN.colorSchemeSelector
|
|
7630
|
+
]), xN = true;
|
|
7631
|
+
(z || tN.cssVariables === false || $M && (J == null ? void 0 : J.cssVarPrefix) === iN) && (xN = false);
|
|
7632
|
+
let SN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7654
7633
|
children: [
|
|
7655
7634
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7656
|
-
themeId:
|
|
7657
|
-
theme:
|
|
7635
|
+
themeId: eN ? t : void 0,
|
|
7636
|
+
theme: vN,
|
|
7658
7637
|
children: d2
|
|
7659
7638
|
}),
|
|
7660
|
-
|
|
7661
|
-
styles: ((_d =
|
|
7639
|
+
xN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7640
|
+
styles: ((_d = vN.generateStyleSheets) == null ? void 0 : _d.call(vN)) || []
|
|
7662
7641
|
})
|
|
7663
7642
|
]
|
|
7664
7643
|
});
|
|
7665
|
-
return
|
|
7666
|
-
value:
|
|
7667
|
-
children:
|
|
7644
|
+
return $M ? SN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7645
|
+
value: bN,
|
|
7646
|
+
children: SN
|
|
7668
7647
|
});
|
|
7669
7648
|
}
|
|
7670
7649
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9164,10 +9143,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9164
9143
|
let n = useDefaultProps({
|
|
9165
9144
|
props: e,
|
|
9166
9145
|
name: "MuiInputBase"
|
|
9167
|
-
}), { "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:
|
|
9168
|
-
}, []),
|
|
9146
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $M, onFocus: $, onKeyDown: eN, onKeyUp: tN, placeholder: nN, readOnly: rN, renderSuffix: iN, rows: aN, size: oN, slotProps: sN = {}, slots: cN = {}, startAdornment: lN, type: uN = "text", value: dN, ...fN } = n, pN = A.value == null ? dN : A.value, { current: mN } = import_react.useRef(pN != null), hN = import_react.useRef(), gN = import_react.useCallback((e2) => {
|
|
9147
|
+
}, []), _N = useForkRef_default(hN, M, A.ref, gN), [vN, yN] = import_react.useState(false), bN = useFormControl(), xN = formControlState({
|
|
9169
9148
|
props: n,
|
|
9170
|
-
muiFormControl:
|
|
9149
|
+
muiFormControl: bN,
|
|
9171
9150
|
states: [
|
|
9172
9151
|
"color",
|
|
9173
9152
|
"disabled",
|
|
@@ -9178,145 +9157,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9178
9157
|
"filled"
|
|
9179
9158
|
]
|
|
9180
9159
|
});
|
|
9181
|
-
|
|
9182
|
-
!
|
|
9160
|
+
xN.focused = bN ? bN.focused : vN, import_react.useEffect(() => {
|
|
9161
|
+
!bN && _ && vN && (yN(false), J && J());
|
|
9183
9162
|
}, [
|
|
9184
|
-
|
|
9163
|
+
bN,
|
|
9185
9164
|
_,
|
|
9186
|
-
|
|
9165
|
+
vN,
|
|
9187
9166
|
J
|
|
9188
9167
|
]);
|
|
9189
|
-
let
|
|
9190
|
-
isFilled(e2) ?
|
|
9168
|
+
let SN = bN && bN.onFilled, CN = bN && bN.onEmpty, wN = import_react.useCallback((e2) => {
|
|
9169
|
+
isFilled(e2) ? SN && SN() : CN && CN();
|
|
9191
9170
|
}, [
|
|
9192
|
-
|
|
9193
|
-
|
|
9171
|
+
SN,
|
|
9172
|
+
CN
|
|
9194
9173
|
]);
|
|
9195
9174
|
useEnhancedEffect_default$1(() => {
|
|
9196
|
-
|
|
9197
|
-
value:
|
|
9175
|
+
mN && wN({
|
|
9176
|
+
value: pN
|
|
9198
9177
|
});
|
|
9199
9178
|
}, [
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9179
|
+
pN,
|
|
9180
|
+
wN,
|
|
9181
|
+
mN
|
|
9203
9182
|
]);
|
|
9204
|
-
let
|
|
9205
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9206
|
-
},
|
|
9207
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9208
|
-
},
|
|
9209
|
-
if (!
|
|
9210
|
-
let t3 = e2.target ||
|
|
9183
|
+
let TN = (e2) => {
|
|
9184
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), bN && bN.onFocus ? bN.onFocus(e2) : yN(true);
|
|
9185
|
+
}, EN = (e2) => {
|
|
9186
|
+
J && J(e2), A.onBlur && A.onBlur(e2), bN && bN.onBlur ? bN.onBlur(e2) : yN(false);
|
|
9187
|
+
}, DN = (e2, ...t2) => {
|
|
9188
|
+
if (!mN) {
|
|
9189
|
+
let t3 = e2.target || hN.current;
|
|
9211
9190
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9212
|
-
|
|
9191
|
+
wN({
|
|
9213
9192
|
value: t3.value
|
|
9214
9193
|
});
|
|
9215
9194
|
}
|
|
9216
9195
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9217
9196
|
};
|
|
9218
9197
|
import_react.useEffect(() => {
|
|
9219
|
-
|
|
9198
|
+
wN(hN.current);
|
|
9220
9199
|
}, []);
|
|
9221
|
-
let
|
|
9222
|
-
|
|
9223
|
-
},
|
|
9224
|
-
K &&
|
|
9200
|
+
let ON = (e2) => {
|
|
9201
|
+
hN.current && e2.currentTarget === e2.target && hN.current.focus(), $M && $M(e2);
|
|
9202
|
+
}, kN = O, AN = A;
|
|
9203
|
+
K && kN === "input" && (AN = aN ? {
|
|
9225
9204
|
type: void 0,
|
|
9226
|
-
minRows:
|
|
9227
|
-
maxRows:
|
|
9228
|
-
...
|
|
9205
|
+
minRows: aN,
|
|
9206
|
+
maxRows: aN,
|
|
9207
|
+
...AN
|
|
9229
9208
|
} : {
|
|
9230
9209
|
type: void 0,
|
|
9231
9210
|
maxRows: z,
|
|
9232
9211
|
minRows: U,
|
|
9233
|
-
...
|
|
9234
|
-
},
|
|
9235
|
-
let
|
|
9236
|
-
|
|
9212
|
+
...AN
|
|
9213
|
+
}, kN = TextareaAutosize_default);
|
|
9214
|
+
let jN = (e2) => {
|
|
9215
|
+
wN(e2.animationName === "mui-auto-fill-cancel" ? hN.current : {
|
|
9237
9216
|
value: "x"
|
|
9238
9217
|
});
|
|
9239
9218
|
};
|
|
9240
9219
|
import_react.useEffect(() => {
|
|
9241
|
-
|
|
9220
|
+
bN && bN.setAdornedStart(!!lN);
|
|
9242
9221
|
}, [
|
|
9243
|
-
|
|
9244
|
-
|
|
9222
|
+
bN,
|
|
9223
|
+
lN
|
|
9245
9224
|
]);
|
|
9246
|
-
let
|
|
9225
|
+
let MN = {
|
|
9247
9226
|
...n,
|
|
9248
|
-
color:
|
|
9249
|
-
disabled:
|
|
9227
|
+
color: xN.color || "primary",
|
|
9228
|
+
disabled: xN.disabled,
|
|
9250
9229
|
endAdornment: y,
|
|
9251
|
-
error:
|
|
9252
|
-
focused:
|
|
9253
|
-
formControl:
|
|
9230
|
+
error: xN.error,
|
|
9231
|
+
focused: xN.focused,
|
|
9232
|
+
formControl: bN,
|
|
9254
9233
|
fullWidth: w,
|
|
9255
|
-
hiddenLabel:
|
|
9234
|
+
hiddenLabel: xN.hiddenLabel,
|
|
9256
9235
|
multiline: K,
|
|
9257
|
-
size:
|
|
9258
|
-
startAdornment:
|
|
9259
|
-
type:
|
|
9260
|
-
},
|
|
9261
|
-
return
|
|
9262
|
-
...
|
|
9263
|
-
...
|
|
9236
|
+
size: xN.size,
|
|
9237
|
+
startAdornment: lN,
|
|
9238
|
+
type: uN
|
|
9239
|
+
}, NN = useUtilityClasses(MN), PN = cN.root || d.Root || InputBaseRoot, FN = sN.root || f.root || {}, IN = cN.input || d.Input || InputBaseInput;
|
|
9240
|
+
return AN = {
|
|
9241
|
+
...AN,
|
|
9242
|
+
...sN.input ?? f.input
|
|
9264
9243
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9265
9244
|
children: [
|
|
9266
9245
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9267
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9268
|
-
...
|
|
9246
|
+
(0, import_jsx_runtime.jsxs)(PN, {
|
|
9247
|
+
...FN,
|
|
9269
9248
|
ref: t,
|
|
9270
|
-
onClick:
|
|
9271
|
-
...
|
|
9272
|
-
...!isHostComponent_default(
|
|
9249
|
+
onClick: ON,
|
|
9250
|
+
...fN,
|
|
9251
|
+
...!isHostComponent_default(PN) && {
|
|
9273
9252
|
ownerState: {
|
|
9274
|
-
...
|
|
9275
|
-
...
|
|
9253
|
+
...MN,
|
|
9254
|
+
...FN.ownerState
|
|
9276
9255
|
}
|
|
9277
9256
|
},
|
|
9278
|
-
className: clsx_default(
|
|
9257
|
+
className: clsx_default(NN.root, FN.className, s, rN && "MuiInputBase-readOnly"),
|
|
9279
9258
|
children: [
|
|
9280
|
-
|
|
9259
|
+
lN,
|
|
9281
9260
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9282
9261
|
value: null,
|
|
9283
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9284
|
-
"aria-invalid":
|
|
9262
|
+
children: (0, import_jsx_runtime.jsx)(IN, {
|
|
9263
|
+
"aria-invalid": xN.error,
|
|
9285
9264
|
"aria-describedby": i,
|
|
9286
9265
|
autoComplete: a,
|
|
9287
9266
|
autoFocus: o,
|
|
9288
9267
|
defaultValue: h,
|
|
9289
|
-
disabled:
|
|
9268
|
+
disabled: xN.disabled,
|
|
9290
9269
|
id: E,
|
|
9291
|
-
onAnimationStart:
|
|
9270
|
+
onAnimationStart: jN,
|
|
9292
9271
|
name: q,
|
|
9293
|
-
placeholder:
|
|
9294
|
-
readOnly:
|
|
9295
|
-
required:
|
|
9296
|
-
rows:
|
|
9297
|
-
value:
|
|
9298
|
-
onKeyDown:
|
|
9299
|
-
onKeyUp:
|
|
9300
|
-
type:
|
|
9301
|
-
...
|
|
9302
|
-
...!isHostComponent_default(
|
|
9303
|
-
as:
|
|
9272
|
+
placeholder: nN,
|
|
9273
|
+
readOnly: rN,
|
|
9274
|
+
required: xN.required,
|
|
9275
|
+
rows: aN,
|
|
9276
|
+
value: pN,
|
|
9277
|
+
onKeyDown: eN,
|
|
9278
|
+
onKeyUp: tN,
|
|
9279
|
+
type: uN,
|
|
9280
|
+
...AN,
|
|
9281
|
+
...!isHostComponent_default(IN) && {
|
|
9282
|
+
as: kN,
|
|
9304
9283
|
ownerState: {
|
|
9305
|
-
...
|
|
9306
|
-
...
|
|
9284
|
+
...MN,
|
|
9285
|
+
...AN.ownerState
|
|
9307
9286
|
}
|
|
9308
9287
|
},
|
|
9309
|
-
ref:
|
|
9310
|
-
className: clsx_default(
|
|
9311
|
-
onBlur:
|
|
9312
|
-
onChange:
|
|
9313
|
-
onFocus:
|
|
9288
|
+
ref: _N,
|
|
9289
|
+
className: clsx_default(NN.input, AN.className, rN && "MuiInputBase-readOnly"),
|
|
9290
|
+
onBlur: EN,
|
|
9291
|
+
onChange: DN,
|
|
9292
|
+
onFocus: TN
|
|
9314
9293
|
})
|
|
9315
9294
|
}),
|
|
9316
9295
|
y,
|
|
9317
|
-
|
|
9318
|
-
...
|
|
9319
|
-
startAdornment:
|
|
9296
|
+
iN ? iN({
|
|
9297
|
+
...xN,
|
|
9298
|
+
startAdornment: lN
|
|
9320
9299
|
}) : null
|
|
9321
9300
|
]
|
|
9322
9301
|
})
|
|
@@ -10392,30 +10371,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10392
10371
|
M,
|
|
10393
10372
|
i,
|
|
10394
10373
|
a
|
|
10395
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10396
|
-
|
|
10374
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $M = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), eN = useJsonViewerStore((e2) => e2.colorspace.base0C), tN = useJsonViewerStore((e2) => e2.colorspace.base0A), nN = useJsonViewerStore((e2) => e2.displayComma), rN = useJsonViewerStore((e2) => e2.quotesOnKeys), iN = useJsonViewerStore((e2) => e2.rootName), aN = U === t, oN = Number.isInteger(Number(A)), sN = useJsonViewerStore((e2) => e2.enableAdd), cN = useJsonViewerStore((e2) => e2.onAdd), lN = (0, import_react.useMemo)(() => !cN || a !== void 0 || sN === false || v === false ? false : typeof sN == "function" ? !!sN(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10375
|
+
cN,
|
|
10397
10376
|
a,
|
|
10398
10377
|
i,
|
|
10399
|
-
|
|
10378
|
+
sN,
|
|
10400
10379
|
v,
|
|
10401
10380
|
t
|
|
10402
|
-
]),
|
|
10403
|
-
|
|
10381
|
+
]), uN = useJsonViewerStore((e2) => e2.enableDelete), dN = useJsonViewerStore((e2) => e2.onDelete), fN = (0, import_react.useMemo)(() => !dN || a !== void 0 || aN || uN === false || v === false ? false : typeof uN == "function" ? !!uN(i, t) : uN, [
|
|
10382
|
+
dN,
|
|
10404
10383
|
a,
|
|
10405
|
-
|
|
10384
|
+
aN,
|
|
10406
10385
|
i,
|
|
10407
|
-
|
|
10386
|
+
uN,
|
|
10408
10387
|
v,
|
|
10409
10388
|
t
|
|
10410
|
-
]),
|
|
10411
|
-
|
|
10389
|
+
]), pN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: mN, copied: hN } = useClipboard(), gN = useJsonViewerStore((e2) => e2.highlightUpdates), _N = (0, import_react.useMemo)(() => !gN || 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, [
|
|
10390
|
+
gN,
|
|
10412
10391
|
n,
|
|
10413
10392
|
t
|
|
10414
|
-
]),
|
|
10393
|
+
]), vN = (0, import_react.useRef)();
|
|
10415
10394
|
(0, import_react.useEffect)(() => {
|
|
10416
|
-
|
|
10395
|
+
vN.current && _N && "animate" in vN.current && vN.current.animate([
|
|
10417
10396
|
{
|
|
10418
|
-
backgroundColor:
|
|
10397
|
+
backgroundColor: tN
|
|
10419
10398
|
},
|
|
10420
10399
|
{
|
|
10421
10400
|
backgroundColor: ""
|
|
@@ -10425,40 +10404,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10425
10404
|
easing: "ease-in"
|
|
10426
10405
|
});
|
|
10427
10406
|
}, [
|
|
10428
|
-
|
|
10429
|
-
|
|
10407
|
+
tN,
|
|
10408
|
+
_N,
|
|
10430
10409
|
n,
|
|
10431
10410
|
t
|
|
10432
10411
|
]);
|
|
10433
|
-
let
|
|
10412
|
+
let yN = (0, import_react.useCallback)((e2) => {
|
|
10434
10413
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10435
10414
|
}, [
|
|
10436
10415
|
h,
|
|
10437
10416
|
t
|
|
10438
|
-
]),
|
|
10417
|
+
]), bN = (0, import_react.useCallback)(() => {
|
|
10439
10418
|
Q(false), E("");
|
|
10440
10419
|
}, [
|
|
10441
10420
|
Q,
|
|
10442
10421
|
E
|
|
10443
|
-
]),
|
|
10422
|
+
]), xN = (0, import_react.useCallback)((e2) => {
|
|
10444
10423
|
if (Q(false), _) try {
|
|
10445
|
-
|
|
10424
|
+
$M(i, t, _(e2));
|
|
10446
10425
|
} catch {
|
|
10447
10426
|
}
|
|
10448
10427
|
}, [
|
|
10449
10428
|
Q,
|
|
10450
10429
|
_,
|
|
10451
|
-
|
|
10430
|
+
$M,
|
|
10452
10431
|
i,
|
|
10453
10432
|
t
|
|
10454
|
-
]),
|
|
10433
|
+
]), SN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10455
10434
|
children: [
|
|
10456
10435
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10457
10436
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10458
10437
|
sx: {
|
|
10459
10438
|
fontSize: ".8rem"
|
|
10460
10439
|
},
|
|
10461
|
-
onClick:
|
|
10440
|
+
onClick: bN
|
|
10462
10441
|
})
|
|
10463
10442
|
}),
|
|
10464
10443
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10466,22 +10445,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10466
10445
|
sx: {
|
|
10467
10446
|
fontSize: ".8rem"
|
|
10468
10447
|
},
|
|
10469
|
-
onClick: () =>
|
|
10448
|
+
onClick: () => xN(w)
|
|
10470
10449
|
})
|
|
10471
10450
|
})
|
|
10472
10451
|
]
|
|
10473
10452
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10474
10453
|
children: [
|
|
10475
|
-
|
|
10454
|
+
pN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10476
10455
|
onClick: (e2) => {
|
|
10477
10456
|
e2.preventDefault();
|
|
10478
10457
|
try {
|
|
10479
|
-
|
|
10458
|
+
mN(i, t, copyString);
|
|
10480
10459
|
} catch (e3) {
|
|
10481
10460
|
console.error(e3);
|
|
10482
10461
|
}
|
|
10483
10462
|
},
|
|
10484
|
-
children:
|
|
10463
|
+
children: hN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10485
10464
|
sx: {
|
|
10486
10465
|
fontSize: ".8rem"
|
|
10487
10466
|
}
|
|
@@ -10492,16 +10471,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10492
10471
|
})
|
|
10493
10472
|
}),
|
|
10494
10473
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10495
|
-
onClick:
|
|
10474
|
+
onClick: yN,
|
|
10496
10475
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10497
10476
|
sx: {
|
|
10498
10477
|
fontSize: ".8rem"
|
|
10499
10478
|
}
|
|
10500
10479
|
})
|
|
10501
10480
|
}),
|
|
10502
|
-
|
|
10481
|
+
lN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10503
10482
|
onClick: (e2) => {
|
|
10504
|
-
e2.preventDefault(),
|
|
10483
|
+
e2.preventDefault(), cN == null ? void 0 : cN(i);
|
|
10505
10484
|
},
|
|
10506
10485
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10507
10486
|
sx: {
|
|
@@ -10509,9 +10488,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10509
10488
|
}
|
|
10510
10489
|
})
|
|
10511
10490
|
}),
|
|
10512
|
-
|
|
10491
|
+
fN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10513
10492
|
onClick: (e2) => {
|
|
10514
|
-
e2.preventDefault(),
|
|
10493
|
+
e2.preventDefault(), dN == null ? void 0 : dN(i, t);
|
|
10515
10494
|
},
|
|
10516
10495
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10517
10496
|
sx: {
|
|
@@ -10524,24 +10503,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10524
10503
|
f,
|
|
10525
10504
|
h,
|
|
10526
10505
|
_,
|
|
10527
|
-
|
|
10528
|
-
|
|
10506
|
+
hN,
|
|
10507
|
+
mN,
|
|
10529
10508
|
S,
|
|
10530
10509
|
J,
|
|
10531
|
-
_N,
|
|
10532
10510
|
pN,
|
|
10533
|
-
|
|
10511
|
+
lN,
|
|
10512
|
+
fN,
|
|
10534
10513
|
w,
|
|
10535
10514
|
i,
|
|
10536
10515
|
t,
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
]),
|
|
10516
|
+
cN,
|
|
10517
|
+
dN,
|
|
10518
|
+
yN,
|
|
10519
|
+
bN,
|
|
10520
|
+
xN
|
|
10521
|
+
]), CN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10543
10522
|
t
|
|
10544
|
-
]),
|
|
10523
|
+
]), wN = !CN && !!(c && d), TN = useJsonViewerStore((e2) => e2.keyRenderer), EN = (0, import_react.useMemo)(() => ({
|
|
10545
10524
|
path: i,
|
|
10546
10525
|
inspect: K,
|
|
10547
10526
|
setInspect: q,
|
|
@@ -10578,13 +10557,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10578
10557
|
opacity: 0.8
|
|
10579
10558
|
},
|
|
10580
10559
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10581
|
-
e2.isDefaultPrevented() ||
|
|
10560
|
+
e2.isDefaultPrevented() || CN || q((e3) => !e3);
|
|
10582
10561
|
}, [
|
|
10583
|
-
|
|
10562
|
+
CN,
|
|
10584
10563
|
q
|
|
10585
10564
|
]),
|
|
10586
10565
|
children: [
|
|
10587
|
-
|
|
10566
|
+
wN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10588
10567
|
className: "data-key-toggle-expanded",
|
|
10589
10568
|
sx: {
|
|
10590
10569
|
fontSize: ".8rem",
|
|
@@ -10602,27 +10581,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10602
10581
|
}
|
|
10603
10582
|
}) : null,
|
|
10604
10583
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10605
|
-
ref:
|
|
10584
|
+
ref: vN,
|
|
10606
10585
|
className: "data-key-key",
|
|
10607
10586
|
component: "span",
|
|
10608
|
-
children:
|
|
10587
|
+
children: aN && O === 0 ? iN === false ? null : rN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10609
10588
|
children: [
|
|
10610
10589
|
'"',
|
|
10611
|
-
|
|
10590
|
+
iN,
|
|
10612
10591
|
'"'
|
|
10613
10592
|
]
|
|
10614
10593
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10615
|
-
children:
|
|
10616
|
-
}) :
|
|
10617
|
-
...
|
|
10618
|
-
}) : a === void 0 && (
|
|
10594
|
+
children: iN
|
|
10595
|
+
}) : TN.when(EN) ? (0, import_jsx_runtime.jsx)(TN, {
|
|
10596
|
+
...EN
|
|
10597
|
+
}) : a === void 0 && (oN ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10619
10598
|
component: "span",
|
|
10620
10599
|
style: {
|
|
10621
|
-
color:
|
|
10622
|
-
userSelect:
|
|
10600
|
+
color: eN,
|
|
10601
|
+
userSelect: oN ? "none" : "auto"
|
|
10623
10602
|
},
|
|
10624
10603
|
children: A
|
|
10625
|
-
}) :
|
|
10604
|
+
}) : rN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10626
10605
|
children: [
|
|
10627
10606
|
'"',
|
|
10628
10607
|
A,
|
|
@@ -10632,7 +10611,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10632
10611
|
children: A
|
|
10633
10612
|
}))
|
|
10634
10613
|
}),
|
|
10635
|
-
|
|
10614
|
+
aN ? iN !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10636
10615
|
className: "data-key-colon",
|
|
10637
10616
|
sx: {
|
|
10638
10617
|
mr: 0.5
|
|
@@ -10645,38 +10624,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10645
10624
|
".data-key-key:empty + &": {
|
|
10646
10625
|
display: "none"
|
|
10647
10626
|
},
|
|
10648
|
-
userSelect:
|
|
10627
|
+
userSelect: oN ? "none" : "auto"
|
|
10649
10628
|
},
|
|
10650
10629
|
children: ":"
|
|
10651
10630
|
}),
|
|
10652
10631
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10653
|
-
...
|
|
10632
|
+
...EN
|
|
10654
10633
|
}),
|
|
10655
|
-
I &&
|
|
10634
|
+
I && wN && K && SN
|
|
10656
10635
|
]
|
|
10657
10636
|
}),
|
|
10658
10637
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10659
10638
|
path: i,
|
|
10660
10639
|
value: w,
|
|
10661
10640
|
setValue: E,
|
|
10662
|
-
abortEditing:
|
|
10663
|
-
commitEditing:
|
|
10641
|
+
abortEditing: bN,
|
|
10642
|
+
commitEditing: xN
|
|
10664
10643
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10665
|
-
...
|
|
10644
|
+
...EN
|
|
10666
10645
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10667
10646
|
component: "span",
|
|
10668
10647
|
className: "data-value-fallback",
|
|
10669
10648
|
children: `fallback: ${t}`
|
|
10670
10649
|
}),
|
|
10671
10650
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10672
|
-
...
|
|
10651
|
+
...EN
|
|
10673
10652
|
}),
|
|
10674
|
-
!o &&
|
|
10653
|
+
!o && nN && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10675
10654
|
children: ","
|
|
10676
10655
|
}),
|
|
10677
|
-
I &&
|
|
10678
|
-
I && !
|
|
10679
|
-
!I && J &&
|
|
10656
|
+
I && wN && !K && SN,
|
|
10657
|
+
I && !wN && SN,
|
|
10658
|
+
!I && J && SN
|
|
10680
10659
|
]
|
|
10681
10660
|
});
|
|
10682
10661
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -11517,18 +11496,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11517
11496
|
}
|
|
11518
11497
|
let _, v, y, S, w, E;
|
|
11519
11498
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11520
|
-
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),
|
|
11521
|
-
t[15] === s ?
|
|
11499
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), $M = n.filter(_temp16), $ = n.filter(_temp17), eN;
|
|
11500
|
+
t[15] === s ? eN = t[16] : (eN = () => {
|
|
11522
11501
|
s.openApplication("scratchpad");
|
|
11523
|
-
}, t[15] = s, t[16] =
|
|
11524
|
-
let
|
|
11502
|
+
}, t[15] = s, t[16] = eN);
|
|
11503
|
+
let tN = eN, nN = () => {
|
|
11525
11504
|
let t2 = [];
|
|
11526
|
-
if (Q.length > 0 ||
|
|
11505
|
+
if (Q.length > 0 || $M.length > 0) {
|
|
11527
11506
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11528
11507
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11529
11508
|
children: [
|
|
11530
11509
|
Q.map(_temp20),
|
|
11531
|
-
|
|
11510
|
+
$M.map(_temp21),
|
|
11532
11511
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11533
11512
|
size: "xs",
|
|
11534
11513
|
variant: "outline",
|
|
@@ -11560,7 +11539,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11560
11539
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11561
11540
|
errors: [
|
|
11562
11541
|
...Q,
|
|
11563
|
-
|
|
11542
|
+
...$M
|
|
11564
11543
|
],
|
|
11565
11544
|
cellId: i
|
|
11566
11545
|
})
|
|
@@ -11721,7 +11700,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11721
11700
|
size: "xs",
|
|
11722
11701
|
variant: "link",
|
|
11723
11702
|
className: "my-2 font-normal mx-0 px-0",
|
|
11724
|
-
onClick:
|
|
11703
|
+
onClick: tN,
|
|
11725
11704
|
children: [
|
|
11726
11705
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11727
11706
|
className: "h-3"
|
|
@@ -11846,13 +11825,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11846
11825
|
})
|
|
11847
11826
|
]
|
|
11848
11827
|
}, "sql-errors")), t2;
|
|
11849
|
-
},
|
|
11850
|
-
t[17] !==
|
|
11851
|
-
className:
|
|
11828
|
+
}, rN = `font-code font-medium tracking-wide ${h}`, iN;
|
|
11829
|
+
t[17] !== rN || t[18] !== c ? (iN = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11830
|
+
className: rN,
|
|
11852
11831
|
children: c
|
|
11853
|
-
}), t[17] =
|
|
11854
|
-
let
|
|
11855
|
-
_ = 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 =
|
|
11832
|
+
}), t[17] = rN, t[18] = c, t[19] = iN) : iN = t[19];
|
|
11833
|
+
let aN = iN;
|
|
11834
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = aN, v = "flex flex-col gap-8", y = nN(), 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;
|
|
11856
11835
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11857
11836
|
let O;
|
|
11858
11837
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12839,7 +12818,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12839
12818
|
}, [
|
|
12840
12819
|
h
|
|
12841
12820
|
]), k(() => {
|
|
12842
|
-
U(6,
|
|
12821
|
+
U(6, eN);
|
|
12843
12822
|
}, []);
|
|
12844
12823
|
let K = import_react.useMemo(() => ({
|
|
12845
12824
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12848,7 +12827,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12848
12827
|
var _a2;
|
|
12849
12828
|
var a2, o2, s2;
|
|
12850
12829
|
if (!Object.is(n.current[e2], t2)) {
|
|
12851
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12830
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, $M);
|
|
12852
12831
|
else if (e2 === "value") {
|
|
12853
12832
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12854
12833
|
let e3 = document.getElementById(I);
|
|
@@ -12856,8 +12835,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12856
12835
|
}
|
|
12857
12836
|
if (U(7, () => {
|
|
12858
12837
|
var _a3;
|
|
12859
|
-
n.current.selectedItemId = (_a3 =
|
|
12860
|
-
}), i2 || U(5,
|
|
12838
|
+
n.current.selectedItemId = (_a3 = tN()) == null ? void 0 : _a3.id, K.emit();
|
|
12839
|
+
}), i2 || U(5, eN), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12861
12840
|
let e3 = t2 ?? "";
|
|
12862
12841
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12863
12842
|
return;
|
|
@@ -12882,12 +12861,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12882
12861
|
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([
|
|
12883
12862
|
e2
|
|
12884
12863
|
]))), U(3, () => {
|
|
12885
|
-
$(), Q(), n.current.value ||
|
|
12864
|
+
$(), Q(), n.current.value || $M(), K.emit();
|
|
12886
12865
|
}), () => {
|
|
12887
12866
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12888
|
-
let t3 =
|
|
12867
|
+
let t3 = tN();
|
|
12889
12868
|
U(4, () => {
|
|
12890
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12869
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $M(), K.emit();
|
|
12891
12870
|
});
|
|
12892
12871
|
}),
|
|
12893
12872
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12920,7 +12899,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12920
12899
|
]);
|
|
12921
12900
|
});
|
|
12922
12901
|
let i2 = z.current;
|
|
12923
|
-
|
|
12902
|
+
nN().sort((t3, n2) => {
|
|
12924
12903
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12925
12904
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12926
12905
|
}).forEach((e3) => {
|
|
@@ -12932,9 +12911,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12932
12911
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12933
12912
|
});
|
|
12934
12913
|
}
|
|
12935
|
-
function
|
|
12914
|
+
function $M() {
|
|
12936
12915
|
var _a2;
|
|
12937
|
-
let e2 = (_a2 =
|
|
12916
|
+
let e2 = (_a2 = nN().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12938
12917
|
K.setState("value", e2 || void 0);
|
|
12939
12918
|
}
|
|
12940
12919
|
function $() {
|
|
@@ -12955,43 +12934,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12955
12934
|
}
|
|
12956
12935
|
n.current.filtered.count = e2;
|
|
12957
12936
|
}
|
|
12958
|
-
function
|
|
12937
|
+
function eN() {
|
|
12959
12938
|
var _a2, _b;
|
|
12960
12939
|
var e2;
|
|
12961
|
-
let t2 =
|
|
12940
|
+
let t2 = tN();
|
|
12962
12941
|
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({
|
|
12963
12942
|
block: "nearest"
|
|
12964
12943
|
})), t2.scrollIntoView({
|
|
12965
12944
|
block: "nearest"
|
|
12966
12945
|
}));
|
|
12967
12946
|
}
|
|
12968
|
-
function
|
|
12947
|
+
function tN() {
|
|
12969
12948
|
var _a2;
|
|
12970
12949
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12971
12950
|
}
|
|
12972
|
-
function
|
|
12951
|
+
function nN() {
|
|
12973
12952
|
var _a2;
|
|
12974
12953
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12975
12954
|
}
|
|
12976
|
-
function
|
|
12977
|
-
let t2 =
|
|
12955
|
+
function rN(e2) {
|
|
12956
|
+
let t2 = nN()[e2];
|
|
12978
12957
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12979
12958
|
}
|
|
12980
|
-
function
|
|
12959
|
+
function iN(e2) {
|
|
12981
12960
|
var t2;
|
|
12982
|
-
let n2 =
|
|
12961
|
+
let n2 = tN(), i2 = nN(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12983
12962
|
(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));
|
|
12984
12963
|
}
|
|
12985
|
-
function
|
|
12964
|
+
function aN(e2) {
|
|
12986
12965
|
var _a2;
|
|
12987
|
-
let t2 = (_a2 =
|
|
12966
|
+
let t2 = (_a2 = tN()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12988
12967
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12989
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12968
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : iN(e2);
|
|
12990
12969
|
}
|
|
12991
|
-
let
|
|
12992
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12993
|
-
},
|
|
12994
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12970
|
+
let oN = () => rN(nN().length - 1), sN = (e2) => {
|
|
12971
|
+
e2.preventDefault(), e2.metaKey ? oN() : e2.altKey ? aN(1) : iN(1);
|
|
12972
|
+
}, cN = (e2) => {
|
|
12973
|
+
e2.preventDefault(), e2.metaKey ? rN(0) : e2.altKey ? aN(-1) : iN(-1);
|
|
12995
12974
|
};
|
|
12996
12975
|
return import_react.createElement(Primitive.div, {
|
|
12997
12976
|
ref: t,
|
|
@@ -13005,27 +12984,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13005
12984
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
13006
12985
|
case "n":
|
|
13007
12986
|
case "j":
|
|
13008
|
-
E && e2.ctrlKey &&
|
|
12987
|
+
E && e2.ctrlKey && sN(e2);
|
|
13009
12988
|
break;
|
|
13010
12989
|
case "ArrowDown":
|
|
13011
|
-
|
|
12990
|
+
sN(e2);
|
|
13012
12991
|
break;
|
|
13013
12992
|
case "p":
|
|
13014
12993
|
case "k":
|
|
13015
|
-
E && e2.ctrlKey &&
|
|
12994
|
+
E && e2.ctrlKey && cN(e2);
|
|
13016
12995
|
break;
|
|
13017
12996
|
case "ArrowUp":
|
|
13018
|
-
|
|
12997
|
+
cN(e2);
|
|
13019
12998
|
break;
|
|
13020
12999
|
case "Home":
|
|
13021
|
-
e2.preventDefault(),
|
|
13000
|
+
e2.preventDefault(), rN(0);
|
|
13022
13001
|
break;
|
|
13023
13002
|
case "End":
|
|
13024
|
-
e2.preventDefault(),
|
|
13003
|
+
e2.preventDefault(), oN();
|
|
13025
13004
|
break;
|
|
13026
13005
|
case "Enter": {
|
|
13027
13006
|
e2.preventDefault();
|
|
13028
|
-
let t3 =
|
|
13007
|
+
let t3 = tN();
|
|
13029
13008
|
if (t3) {
|
|
13030
13009
|
let e3 = new Event(Z);
|
|
13031
13010
|
t3.dispatchEvent(e3);
|
|
@@ -19015,7 +18994,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19015
18994
|
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 }) {
|
|
19016
18995
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
19017
18996
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
19018
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
18997
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $M = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
19019
18998
|
callbacks: {
|
|
19020
18999
|
onCollapse: f,
|
|
19021
19000
|
onExpand: h,
|
|
@@ -19028,7 +19007,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19028
19007
|
maxSize: c,
|
|
19029
19008
|
minSize: d
|
|
19030
19009
|
},
|
|
19031
|
-
id:
|
|
19010
|
+
id: $M,
|
|
19032
19011
|
idIsFromProps: s !== void 0,
|
|
19033
19012
|
order: v
|
|
19034
19013
|
});
|
|
@@ -19038,7 +19017,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19038
19017
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
19039
19018
|
...t2
|
|
19040
19019
|
};
|
|
19041
|
-
$.current.id =
|
|
19020
|
+
$.current.id = $M, $.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);
|
|
19042
19021
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
19043
19022
|
let e2 = $.current;
|
|
19044
19023
|
return q(e2), () => {
|
|
@@ -19046,7 +19025,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19046
19025
|
};
|
|
19047
19026
|
}, [
|
|
19048
19027
|
v,
|
|
19049
|
-
|
|
19028
|
+
$M,
|
|
19050
19029
|
q,
|
|
19051
19030
|
Q
|
|
19052
19031
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -19057,7 +19036,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19057
19036
|
A($.current, e2);
|
|
19058
19037
|
},
|
|
19059
19038
|
getId() {
|
|
19060
|
-
return
|
|
19039
|
+
return $M;
|
|
19061
19040
|
},
|
|
19062
19041
|
getSize() {
|
|
19063
19042
|
return M($.current);
|
|
@@ -19076,24 +19055,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19076
19055
|
A,
|
|
19077
19056
|
M,
|
|
19078
19057
|
U,
|
|
19079
|
-
|
|
19058
|
+
$M,
|
|
19080
19059
|
J
|
|
19081
19060
|
]);
|
|
19082
|
-
let
|
|
19061
|
+
let eN = I($.current, a);
|
|
19083
19062
|
return (0, import_react.createElement)(S, {
|
|
19084
19063
|
...w,
|
|
19085
19064
|
children: e,
|
|
19086
19065
|
className: t,
|
|
19087
|
-
id:
|
|
19066
|
+
id: $M,
|
|
19088
19067
|
style: {
|
|
19089
|
-
...
|
|
19068
|
+
...eN,
|
|
19090
19069
|
...y
|
|
19091
19070
|
},
|
|
19092
19071
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
19093
19072
|
[DATA_ATTRIBUTES.panel]: "",
|
|
19094
19073
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
19095
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
19096
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19074
|
+
[DATA_ATTRIBUTES.panelId]: $M,
|
|
19075
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + eN.flexGrow).toFixed(1)
|
|
19097
19076
|
});
|
|
19098
19077
|
}
|
|
19099
19078
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19866,7 +19845,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19866
19845
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19867
19846
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19868
19847
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19869
|
-
}, []),
|
|
19848
|
+
}, []), $M = (0, import_react.useCallback)((e2, t2) => {
|
|
19870
19849
|
let { panelDataArray: n2 } = K.current;
|
|
19871
19850
|
return computePanelFlexBoxStyle({
|
|
19872
19851
|
defaultSize: t2,
|
|
@@ -19881,10 +19860,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19881
19860
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19882
19861
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19883
19862
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19884
|
-
}, []),
|
|
19863
|
+
}, []), eN = (0, import_react.useCallback)((e2) => {
|
|
19885
19864
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19886
19865
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19887
|
-
}, []),
|
|
19866
|
+
}, []), tN = (0, import_react.useCallback)((e2) => {
|
|
19888
19867
|
let { panelDataArray: t2 } = K.current;
|
|
19889
19868
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19890
19869
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19916,7 +19895,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19916
19895
|
e2.layout = [];
|
|
19917
19896
|
};
|
|
19918
19897
|
}, []);
|
|
19919
|
-
let
|
|
19898
|
+
let nN = (0, import_react.useCallback)((e2) => {
|
|
19920
19899
|
let t2 = false, n2 = y.current;
|
|
19921
19900
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19922
19901
|
n3.preventDefault();
|
|
@@ -19934,7 +19913,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19934
19913
|
}), I2 = !compareLayouts(f2, A2);
|
|
19935
19914
|
(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));
|
|
19936
19915
|
};
|
|
19937
|
-
}, []),
|
|
19916
|
+
}, []), rN = (0, import_react.useCallback)((e2, t2) => {
|
|
19938
19917
|
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);
|
|
19939
19918
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19940
19919
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19946,12 +19925,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19946
19925
|
trigger: "imperative-api"
|
|
19947
19926
|
});
|
|
19948
19927
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19949
|
-
}, []),
|
|
19928
|
+
}, []), iN = (0, import_react.useCallback)((e2, t2) => {
|
|
19950
19929
|
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);
|
|
19951
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19930
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || rN(e2, s2) : h2 < f2 ? rN(e2, f2) : h2 > d2 && rN(e2, d2));
|
|
19952
19931
|
}, [
|
|
19953
|
-
|
|
19954
|
-
]),
|
|
19932
|
+
rN
|
|
19933
|
+
]), aN = (0, import_react.useCallback)((e2, t2) => {
|
|
19955
19934
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19956
19935
|
if (!y.current) return;
|
|
19957
19936
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19963,30 +19942,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19963
19942
|
initialCursorPosition: o2,
|
|
19964
19943
|
initialLayout: i2
|
|
19965
19944
|
});
|
|
19966
|
-
}, []),
|
|
19945
|
+
}, []), oN = (0, import_react.useCallback)(() => {
|
|
19967
19946
|
w(null);
|
|
19968
|
-
}, []),
|
|
19947
|
+
}, []), sN = (0, import_react.useCallback)((e2) => {
|
|
19969
19948
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19970
19949
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19971
19950
|
}, [
|
|
19972
19951
|
A
|
|
19973
|
-
]),
|
|
19952
|
+
]), cN = (0, import_react.useMemo)(() => ({
|
|
19974
19953
|
collapsePanel: q,
|
|
19975
19954
|
direction: i,
|
|
19976
19955
|
dragState: S,
|
|
19977
19956
|
expandPanel: J,
|
|
19978
19957
|
getPanelSize: Q,
|
|
19979
|
-
getPanelStyle:
|
|
19958
|
+
getPanelStyle: $M,
|
|
19980
19959
|
groupId: v,
|
|
19981
19960
|
isPanelCollapsed: $,
|
|
19982
|
-
isPanelExpanded:
|
|
19983
|
-
reevaluatePanelConstraints:
|
|
19984
|
-
registerPanel:
|
|
19985
|
-
registerResizeHandle:
|
|
19986
|
-
resizePanel:
|
|
19987
|
-
startDragging:
|
|
19988
|
-
stopDragging:
|
|
19989
|
-
unregisterPanel:
|
|
19961
|
+
isPanelExpanded: eN,
|
|
19962
|
+
reevaluatePanelConstraints: iN,
|
|
19963
|
+
registerPanel: tN,
|
|
19964
|
+
registerResizeHandle: nN,
|
|
19965
|
+
resizePanel: rN,
|
|
19966
|
+
startDragging: aN,
|
|
19967
|
+
stopDragging: oN,
|
|
19968
|
+
unregisterPanel: sN,
|
|
19990
19969
|
panelGroupElement: y.current
|
|
19991
19970
|
}), [
|
|
19992
19971
|
q,
|
|
@@ -19994,18 +19973,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19994
19973
|
i,
|
|
19995
19974
|
J,
|
|
19996
19975
|
Q,
|
|
19997
|
-
|
|
19976
|
+
$M,
|
|
19998
19977
|
v,
|
|
19999
19978
|
$,
|
|
19979
|
+
eN,
|
|
20000
19980
|
iN,
|
|
20001
|
-
|
|
19981
|
+
tN,
|
|
19982
|
+
nN,
|
|
19983
|
+
rN,
|
|
20002
19984
|
aN,
|
|
20003
19985
|
oN,
|
|
20004
|
-
sN
|
|
20005
|
-
|
|
20006
|
-
uN,
|
|
20007
|
-
dN
|
|
20008
|
-
]), pN = {
|
|
19986
|
+
sN
|
|
19987
|
+
]), lN = {
|
|
20009
19988
|
display: "flex",
|
|
20010
19989
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
20011
19990
|
height: "100%",
|
|
@@ -20013,7 +19992,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20013
19992
|
width: "100%"
|
|
20014
19993
|
};
|
|
20015
19994
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
20016
|
-
value:
|
|
19995
|
+
value: cN
|
|
20017
19996
|
}, (0, import_react.createElement)(h, {
|
|
20018
19997
|
..._,
|
|
20019
19998
|
children: t,
|
|
@@ -20021,7 +20000,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20021
20000
|
id: o,
|
|
20022
20001
|
ref: y,
|
|
20023
20002
|
style: {
|
|
20024
|
-
...
|
|
20003
|
+
...lN,
|
|
20025
20004
|
...f
|
|
20026
20005
|
},
|
|
20027
20006
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -20098,31 +20077,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20098
20077
|
});
|
|
20099
20078
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20100
20079
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20101
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
20080
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$M, $] = (0, import_react.useState)(false), [eN, tN] = (0, import_react.useState)(null), nN = (0, import_react.useRef)({
|
|
20102
20081
|
state: J
|
|
20103
20082
|
});
|
|
20104
20083
|
useIsomorphicLayoutEffect$1(() => {
|
|
20105
|
-
|
|
20084
|
+
nN.current.state = J;
|
|
20106
20085
|
}), (0, import_react.useEffect)(() => {
|
|
20107
|
-
if (n)
|
|
20086
|
+
if (n) tN(null);
|
|
20108
20087
|
else {
|
|
20109
20088
|
let e2 = I(q);
|
|
20110
|
-
|
|
20089
|
+
tN(() => e2);
|
|
20111
20090
|
}
|
|
20112
20091
|
}, [
|
|
20113
20092
|
n,
|
|
20114
20093
|
q,
|
|
20115
20094
|
I
|
|
20116
20095
|
]);
|
|
20117
|
-
let
|
|
20096
|
+
let rN = (i == null ? void 0 : i.coarse) ?? 15, iN = (i == null ? void 0 : i.fine) ?? 5;
|
|
20118
20097
|
(0, import_react.useEffect)(() => {
|
|
20119
|
-
if (n ||
|
|
20098
|
+
if (n || eN == null) return;
|
|
20120
20099
|
let e2 = w.current;
|
|
20121
20100
|
assert(e2, "Element ref not attached");
|
|
20122
20101
|
let t2 = false;
|
|
20123
20102
|
return registerResizeHandle(q, e2, A, {
|
|
20124
|
-
coarse:
|
|
20125
|
-
fine:
|
|
20103
|
+
coarse: rN,
|
|
20104
|
+
fine: iN
|
|
20126
20105
|
}, (e3, n2, i2) => {
|
|
20127
20106
|
if (!n2) {
|
|
20128
20107
|
Q("inactive");
|
|
@@ -20136,8 +20115,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20136
20115
|
break;
|
|
20137
20116
|
}
|
|
20138
20117
|
case "move": {
|
|
20139
|
-
let { state: e4 } =
|
|
20140
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
20118
|
+
let { state: e4 } = nN.current;
|
|
20119
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), eN(i2);
|
|
20141
20120
|
break;
|
|
20142
20121
|
}
|
|
20143
20122
|
case "up": {
|
|
@@ -20149,22 +20128,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20149
20128
|
}
|
|
20150
20129
|
});
|
|
20151
20130
|
}, [
|
|
20152
|
-
|
|
20131
|
+
rN,
|
|
20153
20132
|
A,
|
|
20154
20133
|
n,
|
|
20155
|
-
|
|
20134
|
+
iN,
|
|
20156
20135
|
I,
|
|
20157
20136
|
q,
|
|
20158
|
-
|
|
20137
|
+
eN,
|
|
20159
20138
|
z,
|
|
20160
20139
|
U
|
|
20161
20140
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20162
20141
|
disabled: n,
|
|
20163
20142
|
handleId: q,
|
|
20164
|
-
resizeHandler:
|
|
20143
|
+
resizeHandler: eN,
|
|
20165
20144
|
panelGroupElement: K
|
|
20166
20145
|
});
|
|
20167
|
-
let
|
|
20146
|
+
let aN = {
|
|
20168
20147
|
touchAction: "none",
|
|
20169
20148
|
userSelect: "none"
|
|
20170
20149
|
};
|
|
@@ -20182,14 +20161,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20182
20161
|
ref: w,
|
|
20183
20162
|
role: "separator",
|
|
20184
20163
|
style: {
|
|
20185
|
-
...
|
|
20164
|
+
...aN,
|
|
20186
20165
|
..._
|
|
20187
20166
|
},
|
|
20188
20167
|
tabIndex: v,
|
|
20189
20168
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20190
20169
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20191
20170
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20192
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20171
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : $M ? "keyboard" : void 0,
|
|
20193
20172
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20194
20173
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20195
20174
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -20356,147 +20335,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20356
20335
|
Combobox = (e) => {
|
|
20357
20336
|
let t = (0, import_compiler_runtime$19.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20358
20337
|
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);
|
|
20359
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20360
|
-
t[23] !== v || t[24] !== w || t[25] !==
|
|
20338
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, $M = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, eN = K === void 0 ? false : K, tN = s ?? false, nN;
|
|
20339
|
+
t[23] !== v || t[24] !== w || t[25] !== tN ? (nN = {
|
|
20361
20340
|
prop: w,
|
|
20362
|
-
defaultProp:
|
|
20341
|
+
defaultProp: tN,
|
|
20363
20342
|
onChange: v
|
|
20364
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20365
|
-
let [
|
|
20366
|
-
t[27] === S ?
|
|
20343
|
+
}, t[23] = v, t[24] = w, t[25] = tN, t[26] = nN) : nN = t[26];
|
|
20344
|
+
let [rN, iN] = useControllableState(nN), aN = rN === void 0 ? false : rN, oN;
|
|
20345
|
+
t[27] === S ? oN = t[28] : (oN = (e2) => {
|
|
20367
20346
|
S == null ? void 0 : S(e2);
|
|
20368
|
-
}, t[27] = S, t[28] =
|
|
20369
|
-
let
|
|
20370
|
-
t[29] !== c || t[30] !==
|
|
20347
|
+
}, t[27] = S, t[28] = oN);
|
|
20348
|
+
let sN;
|
|
20349
|
+
t[29] !== c || t[30] !== oN || t[31] !== q ? (sN = {
|
|
20371
20350
|
prop: q,
|
|
20372
20351
|
defaultProp: c,
|
|
20373
|
-
onChange:
|
|
20374
|
-
}, t[29] = c, t[30] =
|
|
20375
|
-
let [
|
|
20376
|
-
t[33] ===
|
|
20377
|
-
let
|
|
20378
|
-
t[35] !== _ || t[36] !== J || t[37] !==
|
|
20352
|
+
onChange: oN
|
|
20353
|
+
}, t[29] = c, t[30] = oN, t[31] = q, t[32] = sN) : sN = t[32];
|
|
20354
|
+
let [lN, uN] = useControllableState(sN), dN;
|
|
20355
|
+
t[33] === lN ? dN = t[34] : (dN = (e2) => Array.isArray(lN) ? lN.includes(e2) : lN === e2, t[33] = lN, t[34] = dN);
|
|
20356
|
+
let fN = dN, pN;
|
|
20357
|
+
t[35] !== _ || t[36] !== J || t[37] !== iN || t[38] !== uN || t[39] !== lN ? (pN = (e2) => {
|
|
20379
20358
|
let t2 = e2;
|
|
20380
|
-
if (J) if (Array.isArray(
|
|
20381
|
-
let n2 =
|
|
20359
|
+
if (J) if (Array.isArray(lN)) if (lN.includes(t2)) {
|
|
20360
|
+
let n2 = lN.filter((t3) => t3 !== e2);
|
|
20382
20361
|
t2 = n2.length > 0 ? n2 : [];
|
|
20383
20362
|
} else t2 = [
|
|
20384
|
-
...
|
|
20363
|
+
...lN,
|
|
20385
20364
|
t2
|
|
20386
20365
|
];
|
|
20387
20366
|
else t2 = [
|
|
20388
20367
|
t2
|
|
20389
20368
|
];
|
|
20390
|
-
else
|
|
20391
|
-
|
|
20392
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20393
|
-
let
|
|
20394
|
-
t[41] !==
|
|
20395
|
-
let
|
|
20396
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20397
|
-
let
|
|
20398
|
-
t[48] === o ?
|
|
20399
|
-
let
|
|
20400
|
-
t[50] ===
|
|
20401
|
-
let
|
|
20402
|
-
t[52] ===
|
|
20369
|
+
else lN === e2 && (t2 = null);
|
|
20370
|
+
uN(t2), (_ ?? J) || iN(false);
|
|
20371
|
+
}, t[35] = _, t[36] = J, t[37] = iN, t[38] = uN, t[39] = lN, t[40] = pN) : pN = t[40];
|
|
20372
|
+
let mN = pN, hN;
|
|
20373
|
+
t[41] !== eN || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== lN ? (hN = () => J && eN && E ? E : lN == null ? E ?? "--" : Array.isArray(lN) ? lN.length === 0 ? E ?? "--" : lN.length === 1 && d !== void 0 ? d(lN[0]) : `${lN.length} selected` : d === void 0 ? E ?? "--" : d(lN), t[41] = eN, t[42] = d, t[43] = J, t[44] = E, t[45] = lN, t[46] = hN) : hN = t[46];
|
|
20374
|
+
let gN = hN, _N;
|
|
20375
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_N = cn("relative"), t[47] = _N) : _N = t[47];
|
|
20376
|
+
let vN;
|
|
20377
|
+
t[48] === o ? vN = t[49] : (vN = 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] = vN);
|
|
20378
|
+
let yN;
|
|
20379
|
+
t[50] === gN ? yN = t[51] : (yN = gN(), t[50] = gN, t[51] = yN);
|
|
20380
|
+
let bN;
|
|
20381
|
+
t[52] === yN ? bN = t[53] : (bN = (0, import_jsx_runtime.jsx)("span", {
|
|
20403
20382
|
className: "truncate flex-1 min-w-0",
|
|
20404
|
-
children:
|
|
20405
|
-
}), t[52] =
|
|
20406
|
-
let
|
|
20407
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20383
|
+
children: yN
|
|
20384
|
+
}), t[52] = yN, t[53] = bN);
|
|
20385
|
+
let SN;
|
|
20386
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20408
20387
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20409
|
-
}), t[54] =
|
|
20410
|
-
let
|
|
20411
|
-
t[55] !== h || t[56] !==
|
|
20388
|
+
}), t[54] = SN) : SN = t[54];
|
|
20389
|
+
let CN;
|
|
20390
|
+
t[55] !== h || t[56] !== aN || t[57] !== vN || t[58] !== bN ? (CN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20412
20391
|
asChild: true,
|
|
20413
20392
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20414
20393
|
id: h,
|
|
20415
|
-
className:
|
|
20416
|
-
"aria-expanded":
|
|
20394
|
+
className: vN,
|
|
20395
|
+
"aria-expanded": aN,
|
|
20417
20396
|
children: [
|
|
20418
|
-
|
|
20419
|
-
|
|
20397
|
+
bN,
|
|
20398
|
+
SN
|
|
20420
20399
|
]
|
|
20421
20400
|
})
|
|
20422
|
-
}), t[55] = h, t[56] =
|
|
20423
|
-
let
|
|
20424
|
-
t[60] !==
|
|
20425
|
-
placeholder:
|
|
20401
|
+
}), t[55] = h, t[56] = aN, t[57] = vN, t[58] = bN, t[59] = CN) : CN = t[59];
|
|
20402
|
+
let TN;
|
|
20403
|
+
t[60] !== $M || t[61] !== y || t[62] !== A ? (TN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20404
|
+
placeholder: $M,
|
|
20426
20405
|
rootClassName: "px-1 h-8",
|
|
20427
20406
|
autoFocus: true,
|
|
20428
20407
|
value: A,
|
|
20429
20408
|
onValueChange: y
|
|
20430
|
-
}), t[60] =
|
|
20431
|
-
let
|
|
20432
|
-
t[64] === $ ?
|
|
20409
|
+
}), t[60] = $M, t[61] = y, t[62] = A, t[63] = TN) : TN = t[63];
|
|
20410
|
+
let EN;
|
|
20411
|
+
t[64] === $ ? EN = t[65] : (EN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20433
20412
|
children: $
|
|
20434
|
-
}), t[64] = $, t[65] =
|
|
20435
|
-
let
|
|
20436
|
-
t[66] !==
|
|
20437
|
-
isSelected:
|
|
20438
|
-
onSelect:
|
|
20439
|
-
}, t[66] =
|
|
20440
|
-
let
|
|
20441
|
-
t[69] !== n || t[70] !==
|
|
20442
|
-
value:
|
|
20413
|
+
}), t[64] = $, t[65] = EN);
|
|
20414
|
+
let DN;
|
|
20415
|
+
t[66] !== mN || t[67] !== fN ? (DN = {
|
|
20416
|
+
isSelected: fN,
|
|
20417
|
+
onSelect: mN
|
|
20418
|
+
}, t[66] = mN, t[67] = fN, t[68] = DN) : DN = t[68];
|
|
20419
|
+
let ON;
|
|
20420
|
+
t[69] !== n || t[70] !== DN ? (ON = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20421
|
+
value: DN,
|
|
20443
20422
|
children: n
|
|
20444
|
-
}), t[69] = n, t[70] =
|
|
20445
|
-
let
|
|
20446
|
-
t[72] !==
|
|
20423
|
+
}), t[69] = n, t[70] = DN, t[71] = ON) : ON = t[71];
|
|
20424
|
+
let kN;
|
|
20425
|
+
t[72] !== EN || t[73] !== ON ? (kN = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20447
20426
|
className: "max-h-60 py-.5",
|
|
20448
20427
|
children: [
|
|
20449
|
-
|
|
20450
|
-
|
|
20428
|
+
EN,
|
|
20429
|
+
ON
|
|
20451
20430
|
]
|
|
20452
|
-
}), t[72] =
|
|
20453
|
-
let
|
|
20454
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20431
|
+
}), t[72] = EN, t[73] = ON, t[74] = kN) : kN = t[74];
|
|
20432
|
+
let AN;
|
|
20433
|
+
t[75] !== f || t[76] !== Q || t[77] !== TN || t[78] !== kN ? (AN = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20455
20434
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20456
20435
|
align: "start",
|
|
20457
20436
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20458
20437
|
filter: f,
|
|
20459
20438
|
shouldFilter: Q,
|
|
20460
20439
|
children: [
|
|
20461
|
-
|
|
20462
|
-
|
|
20440
|
+
TN,
|
|
20441
|
+
kN
|
|
20463
20442
|
]
|
|
20464
20443
|
})
|
|
20465
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20466
|
-
let
|
|
20467
|
-
t[80] !==
|
|
20468
|
-
open:
|
|
20469
|
-
onOpenChange:
|
|
20444
|
+
}), t[75] = f, t[76] = Q, t[77] = TN, t[78] = kN, t[79] = AN) : AN = t[79];
|
|
20445
|
+
let jN;
|
|
20446
|
+
t[80] !== aN || t[81] !== iN || t[82] !== CN || t[83] !== AN ? (jN = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20447
|
+
open: aN,
|
|
20448
|
+
onOpenChange: iN,
|
|
20470
20449
|
children: [
|
|
20471
|
-
|
|
20472
|
-
|
|
20450
|
+
CN,
|
|
20451
|
+
AN
|
|
20473
20452
|
]
|
|
20474
|
-
}), t[80] =
|
|
20475
|
-
let
|
|
20476
|
-
t[85] !==
|
|
20453
|
+
}), t[80] = aN, t[81] = iN, t[82] = CN, t[83] = AN, t[84] = jN) : jN = t[84];
|
|
20454
|
+
let MN;
|
|
20455
|
+
t[85] !== eN || t[86] !== i || t[87] !== d || t[88] !== mN || t[89] !== J || t[90] !== lN ? (MN = J && eN && (0, import_jsx_runtime.jsx)("div", {
|
|
20477
20456
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20478
|
-
children: Array.isArray(
|
|
20457
|
+
children: Array.isArray(lN) && lN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20479
20458
|
variant: "secondary",
|
|
20480
20459
|
children: [
|
|
20481
20460
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20482
20461
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20483
20462
|
onClick: () => {
|
|
20484
|
-
|
|
20463
|
+
mN(e2);
|
|
20485
20464
|
},
|
|
20486
20465
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20487
20466
|
})
|
|
20488
20467
|
]
|
|
20489
20468
|
}, String(e2)))
|
|
20490
|
-
}), t[85] =
|
|
20491
|
-
let
|
|
20492
|
-
return t[92] !== O || t[93] !==
|
|
20493
|
-
className:
|
|
20469
|
+
}), t[85] = eN, t[86] = i, t[87] = d, t[88] = mN, t[89] = J, t[90] = lN, t[91] = MN) : MN = t[91];
|
|
20470
|
+
let NN;
|
|
20471
|
+
return t[92] !== O || t[93] !== jN || t[94] !== MN ? (NN = (0, import_jsx_runtime.jsxs)("div", {
|
|
20472
|
+
className: _N,
|
|
20494
20473
|
...O,
|
|
20495
20474
|
children: [
|
|
20496
|
-
|
|
20497
|
-
|
|
20475
|
+
jN,
|
|
20476
|
+
MN
|
|
20498
20477
|
]
|
|
20499
|
-
}), t[92] = O, t[93] =
|
|
20478
|
+
}), t[92] = O, t[93] = jN, t[94] = MN, t[95] = NN) : NN = t[95], NN;
|
|
20500
20479
|
};
|
|
20501
20480
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20502
20481
|
let n = (0, import_compiler_runtime$19.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -23523,7 +23502,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23523
23502
|
filename: i2.filename
|
|
23524
23503
|
};
|
|
23525
23504
|
}, t[5] = e, t[6] = v);
|
|
23526
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23505
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, $M, $;
|
|
23527
23506
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23528
23507
|
let e2 = async (t2) => {
|
|
23529
23508
|
let n2 = await y(t2, () => {
|
|
@@ -23580,7 +23559,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23580
23559
|
}), 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, {
|
|
23581
23560
|
className: "text-xs text-muted-foreground",
|
|
23582
23561
|
children: "Download"
|
|
23583
|
-
}), t[29] = Q) : Q = t[29],
|
|
23562
|
+
}), t[29] = Q) : Q = t[29], $M = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23584
23563
|
onSelect: () => {
|
|
23585
23564
|
e2(t2.format);
|
|
23586
23565
|
},
|
|
@@ -23633,30 +23612,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23633
23612
|
]
|
|
23634
23613
|
})
|
|
23635
23614
|
]
|
|
23636
|
-
}, 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] =
|
|
23637
|
-
} 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],
|
|
23638
|
-
let
|
|
23639
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23615
|
+
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = $M, t[23] = $;
|
|
23616
|
+
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], $M = t[22], $ = t[23];
|
|
23617
|
+
let eN;
|
|
23618
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== $M || t[39] !== $ ? (eN = (0, import_jsx_runtime.jsxs)(E, {
|
|
23640
23619
|
side: q,
|
|
23641
23620
|
className: J,
|
|
23642
23621
|
children: [
|
|
23643
23622
|
Q,
|
|
23644
|
-
|
|
23623
|
+
$M,
|
|
23645
23624
|
$,
|
|
23646
23625
|
A,
|
|
23647
23626
|
M
|
|
23648
23627
|
]
|
|
23649
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23650
|
-
let
|
|
23651
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23628
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = $M, t[39] = $, t[40] = eN) : eN = t[40];
|
|
23629
|
+
let tN;
|
|
23630
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== eN ? (tN = (0, import_jsx_runtime.jsxs)(O, {
|
|
23652
23631
|
modal: I,
|
|
23653
23632
|
open: z,
|
|
23654
23633
|
onOpenChange: U,
|
|
23655
23634
|
children: [
|
|
23656
23635
|
K,
|
|
23657
|
-
|
|
23636
|
+
eN
|
|
23658
23637
|
]
|
|
23659
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23638
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = eN, t[47] = tN) : tN = t[47], tN;
|
|
23660
23639
|
};
|
|
23661
23640
|
function fetchJson(e) {
|
|
23662
23641
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23747,22 +23726,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23747
23726
|
]
|
|
23748
23727
|
}) : null;
|
|
23749
23728
|
};
|
|
23750
|
-
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:
|
|
23751
|
-
let [
|
|
23729
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: $M, onSearchQueryChange: $, showFilters: eN = false, filters: tN, onFiltersChange: nN, calculateTopKRows: rN, reloading: iN, freezeColumnsLeft: aN, freezeColumnsRight: oN, toggleDisplayHeader: sN, showChartBuilder: cN, isChartBuilderOpen: lN, showPageSizeSelector: uN, showTableExplorer: dN, togglePanel: fN, isPanelOpen: pN, isAnyPanelOpen: mN, viewedRowIdx: hN, onViewedRowChange: gN }) => {
|
|
23730
|
+
let [_N, vN] = import_react.useState(false), { locale: yN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: bN, setColumnPinning: xN } = useColumnPinning(aN, oN);
|
|
23752
23731
|
import_react.useEffect(() => {
|
|
23753
23732
|
let e2;
|
|
23754
|
-
return
|
|
23755
|
-
|
|
23756
|
-
}, 300) :
|
|
23733
|
+
return iN ? e2 = setTimeout(() => {
|
|
23734
|
+
vN(true);
|
|
23735
|
+
}, 300) : vN(false), () => {
|
|
23757
23736
|
e2 && clearTimeout(e2);
|
|
23758
23737
|
};
|
|
23759
23738
|
}, [
|
|
23760
|
-
|
|
23739
|
+
iN
|
|
23761
23740
|
]);
|
|
23762
|
-
function
|
|
23741
|
+
function SN(e2, t2) {
|
|
23763
23742
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23764
23743
|
}
|
|
23765
|
-
let
|
|
23744
|
+
let CN = useReactTable({
|
|
23766
23745
|
_features: [
|
|
23767
23746
|
ColumnPinning,
|
|
23768
23747
|
ColumnWrappingFeature,
|
|
@@ -23786,11 +23765,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23786
23765
|
getRowId: (e2, t2) => {
|
|
23787
23766
|
let n2 = getStableRowId(e2);
|
|
23788
23767
|
if (n2) return n2;
|
|
23789
|
-
let i2 =
|
|
23768
|
+
let i2 = SN(e2, t2);
|
|
23790
23769
|
return String(i2);
|
|
23791
23770
|
}
|
|
23792
23771
|
} : {},
|
|
23793
|
-
locale:
|
|
23772
|
+
locale: yN,
|
|
23794
23773
|
manualPagination: z,
|
|
23795
23774
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23796
23775
|
...v ? {
|
|
@@ -23800,21 +23779,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23800
23779
|
enableMultiSort: true,
|
|
23801
23780
|
getSortedRowModel: getSortedRowModel(),
|
|
23802
23781
|
manualFiltering: true,
|
|
23803
|
-
enableColumnFilters:
|
|
23782
|
+
enableColumnFilters: eN,
|
|
23804
23783
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23805
|
-
onColumnFiltersChange:
|
|
23784
|
+
onColumnFiltersChange: nN,
|
|
23806
23785
|
onRowSelectionChange: K,
|
|
23807
23786
|
onCellSelectionChange: q,
|
|
23808
23787
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23809
23788
|
enableMultiCellSelection: c === "multi-cell",
|
|
23810
|
-
onColumnPinningChange:
|
|
23789
|
+
onColumnPinningChange: xN,
|
|
23811
23790
|
enableFocusRow: true,
|
|
23812
|
-
onFocusRowChange:
|
|
23791
|
+
onFocusRowChange: gN,
|
|
23813
23792
|
state: {
|
|
23814
23793
|
..._ ? {
|
|
23815
23794
|
sorting: _
|
|
23816
23795
|
} : {},
|
|
23817
|
-
columnFilters:
|
|
23796
|
+
columnFilters: tN,
|
|
23818
23797
|
...A ? {
|
|
23819
23798
|
pagination: A
|
|
23820
23799
|
} : U && !A ? {} : {
|
|
@@ -23826,21 +23805,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23826
23805
|
rowSelection: y ?? {},
|
|
23827
23806
|
cellSelection: S ?? [],
|
|
23828
23807
|
cellStyling: w,
|
|
23829
|
-
columnPinning:
|
|
23808
|
+
columnPinning: bN,
|
|
23830
23809
|
cellHoverTemplate: E,
|
|
23831
23810
|
cellHoverTexts: O ?? {}
|
|
23832
23811
|
}
|
|
23833
|
-
}),
|
|
23812
|
+
}), wN = (pN == null ? void 0 : pN(PANEL_TYPES.ROW_VIEWER)) ?? false, TN = !U && o.length > 100, EN = useScrollContainerHeight({
|
|
23834
23813
|
maxHeight: n,
|
|
23835
|
-
virtualize:
|
|
23814
|
+
virtualize: TN
|
|
23836
23815
|
});
|
|
23837
23816
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23838
23817
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23839
23818
|
children: [
|
|
23840
23819
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23841
|
-
filters:
|
|
23842
|
-
table:
|
|
23843
|
-
calculateTopKRows:
|
|
23820
|
+
filters: tN,
|
|
23821
|
+
table: CN,
|
|
23822
|
+
calculateTopKRows: rN
|
|
23844
23823
|
}),
|
|
23845
23824
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23846
23825
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23849,32 +23828,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23849
23828
|
children: [
|
|
23850
23829
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23851
23830
|
enableSearch: Q,
|
|
23852
|
-
searchQuery:
|
|
23831
|
+
searchQuery: $M,
|
|
23853
23832
|
onSearchQueryChange: $,
|
|
23854
|
-
reloading:
|
|
23855
|
-
showChartBuilder:
|
|
23856
|
-
isChartBuilderOpen:
|
|
23857
|
-
toggleDisplayHeader:
|
|
23858
|
-
showTableExplorer:
|
|
23859
|
-
togglePanel:
|
|
23860
|
-
isAnyPanelOpen:
|
|
23833
|
+
reloading: iN,
|
|
23834
|
+
showChartBuilder: cN,
|
|
23835
|
+
isChartBuilderOpen: lN,
|
|
23836
|
+
toggleDisplayHeader: sN,
|
|
23837
|
+
showTableExplorer: dN,
|
|
23838
|
+
togglePanel: fN,
|
|
23839
|
+
isAnyPanelOpen: mN,
|
|
23861
23840
|
downloadAs: I
|
|
23862
23841
|
}),
|
|
23863
23842
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23864
23843
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23865
|
-
ref:
|
|
23844
|
+
ref: EN,
|
|
23866
23845
|
children: [
|
|
23867
|
-
|
|
23846
|
+
_N && (0, import_jsx_runtime.jsx)("thead", {
|
|
23868
23847
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23869
23848
|
}),
|
|
23870
|
-
renderTableHeader(
|
|
23849
|
+
renderTableHeader(CN, TN || !!n),
|
|
23871
23850
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23872
|
-
table:
|
|
23851
|
+
table: CN,
|
|
23873
23852
|
columns: i,
|
|
23874
|
-
rowViewerPanelOpen:
|
|
23875
|
-
getRowIndex:
|
|
23876
|
-
viewedRowIdx:
|
|
23877
|
-
virtualize:
|
|
23853
|
+
rowViewerPanelOpen: wN,
|
|
23854
|
+
getRowIndex: SN,
|
|
23855
|
+
viewedRowIdx: hN,
|
|
23856
|
+
virtualize: TN
|
|
23878
23857
|
})
|
|
23879
23858
|
]
|
|
23880
23859
|
}),
|
|
@@ -23885,10 +23864,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23885
23864
|
pagination: U,
|
|
23886
23865
|
selection: c,
|
|
23887
23866
|
onRowSelectionChange: K,
|
|
23888
|
-
table:
|
|
23867
|
+
table: CN,
|
|
23889
23868
|
getRowIds: J,
|
|
23890
|
-
showPageSizeSelector:
|
|
23891
|
-
tableLoading:
|
|
23869
|
+
showPageSizeSelector: uN,
|
|
23870
|
+
tableLoading: iN
|
|
23892
23871
|
})
|
|
23893
23872
|
]
|
|
23894
23873
|
})
|
|
@@ -23978,67 +23957,67 @@ ${_}`,
|
|
|
23978
23957
|
});
|
|
23979
23958
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23980
23959
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$3), t[10] = $) : $ = t[10];
|
|
23981
|
-
let
|
|
23982
|
-
t[11] ===
|
|
23983
|
-
let
|
|
23984
|
-
t[13] ===
|
|
23985
|
-
className:
|
|
23986
|
-
}), t[13] =
|
|
23987
|
-
let
|
|
23988
|
-
t[15] ===
|
|
23960
|
+
let eN = d ? "rotate-180" : "rotate-0", tN;
|
|
23961
|
+
t[11] === eN ? tN = t[12] : (tN = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", eN), t[11] = eN, t[12] = tN);
|
|
23962
|
+
let nN;
|
|
23963
|
+
t[13] === tN ? nN = t[14] : (nN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
23964
|
+
className: tN
|
|
23965
|
+
}), t[13] = tN, t[14] = nN);
|
|
23966
|
+
let rN = q || "Error", iN;
|
|
23967
|
+
t[15] === rN ? iN = t[16] : (iN = (0, import_jsx_runtime.jsxs)("span", {
|
|
23989
23968
|
className: "text-destructive",
|
|
23990
23969
|
children: [
|
|
23991
|
-
|
|
23970
|
+
rN,
|
|
23992
23971
|
":"
|
|
23993
23972
|
]
|
|
23994
|
-
}), t[15] =
|
|
23995
|
-
let
|
|
23996
|
-
t[17] !== J || t[18] !==
|
|
23973
|
+
}), t[15] = rN, t[16] = iN);
|
|
23974
|
+
let aN;
|
|
23975
|
+
t[17] !== J || t[18] !== iN ? (aN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23997
23976
|
className: "text-sm inline font-mono",
|
|
23998
23977
|
children: [
|
|
23999
|
-
|
|
23978
|
+
iN,
|
|
24000
23979
|
" ",
|
|
24001
23980
|
J
|
|
24002
23981
|
]
|
|
24003
|
-
}), t[17] = J, t[18] =
|
|
24004
|
-
let
|
|
24005
|
-
t[20] !==
|
|
23982
|
+
}), t[17] = J, t[18] = iN, t[19] = aN) : aN = t[19];
|
|
23983
|
+
let sN;
|
|
23984
|
+
t[20] !== aN || t[21] !== nN ? (sN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24006
23985
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
24007
23986
|
onClick: $,
|
|
24008
23987
|
children: [
|
|
24009
|
-
|
|
24010
|
-
|
|
23988
|
+
nN,
|
|
23989
|
+
aN
|
|
24011
23990
|
]
|
|
24012
|
-
}), t[20] =
|
|
24013
|
-
let
|
|
24014
|
-
t[23] === c ?
|
|
23991
|
+
}), t[20] = aN, t[21] = nN, t[22] = sN) : sN = t[22];
|
|
23992
|
+
let cN;
|
|
23993
|
+
t[23] === c ? cN = t[24] : (cN = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
24015
23994
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
24016
23995
|
children: c
|
|
24017
|
-
}), t[23] = c, t[24] =
|
|
24018
|
-
let
|
|
24019
|
-
t[25] !==
|
|
23996
|
+
}), t[23] = c, t[24] = cN);
|
|
23997
|
+
let uN;
|
|
23998
|
+
t[25] !== sN || t[26] !== cN ? (uN = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
24020
23999
|
value: KEY,
|
|
24021
24000
|
className: "border-none",
|
|
24022
24001
|
children: [
|
|
24023
|
-
|
|
24024
|
-
|
|
24002
|
+
sN,
|
|
24003
|
+
cN
|
|
24025
24004
|
]
|
|
24026
|
-
}), t[25] =
|
|
24027
|
-
let
|
|
24028
|
-
t[28] !==
|
|
24005
|
+
}), t[25] = sN, t[26] = cN, t[27] = uN) : uN = t[27];
|
|
24006
|
+
let dN;
|
|
24007
|
+
t[28] !== uN || t[29] !== Q ? (dN = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
24029
24008
|
type: "single",
|
|
24030
24009
|
collapsible: true,
|
|
24031
24010
|
value: Q,
|
|
24032
|
-
children:
|
|
24033
|
-
}), t[28] =
|
|
24034
|
-
let
|
|
24035
|
-
t[31] !== K || t[32] !== I ? (
|
|
24011
|
+
children: uN
|
|
24012
|
+
}), t[28] = uN, t[29] = Q, t[30] = dN) : dN = t[30];
|
|
24013
|
+
let fN;
|
|
24014
|
+
t[31] !== K || t[32] !== I ? (fN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
24036
24015
|
tooltip: "Fix with AI",
|
|
24037
24016
|
openPrompt: () => K(false),
|
|
24038
24017
|
applyAutofix: () => K(true)
|
|
24039
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
24040
|
-
let
|
|
24041
|
-
t[34] !== A || t[35] !== E ? (
|
|
24018
|
+
}), t[31] = K, t[32] = I, t[33] = fN) : fN = t[33];
|
|
24019
|
+
let mN;
|
|
24020
|
+
t[34] !== A || t[35] !== E ? (mN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
24042
24021
|
content: "Attach pdb to the exception point.",
|
|
24043
24022
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
24044
24023
|
size: "xs",
|
|
@@ -24055,9 +24034,9 @@ ${_}`,
|
|
|
24055
24034
|
"Launch debugger"
|
|
24056
24035
|
]
|
|
24057
24036
|
})
|
|
24058
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
24059
|
-
let
|
|
24060
|
-
t[37] !== _ || t[38] !== i ? (
|
|
24037
|
+
}), t[34] = A, t[35] = E, t[36] = mN) : mN = t[36];
|
|
24038
|
+
let hN;
|
|
24039
|
+
t[37] !== _ || t[38] !== i ? (hN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
24061
24040
|
children: [
|
|
24062
24041
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
24063
24042
|
asChild: true,
|
|
@@ -24125,24 +24104,24 @@ ${_}`,
|
|
|
24125
24104
|
]
|
|
24126
24105
|
})
|
|
24127
24106
|
]
|
|
24128
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24129
|
-
let
|
|
24130
|
-
t[40] !==
|
|
24107
|
+
}), t[37] = _, t[38] = i, t[39] = hN) : hN = t[39];
|
|
24108
|
+
let gN;
|
|
24109
|
+
t[40] !== fN || t[41] !== mN || t[42] !== hN ? (gN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24131
24110
|
className: "flex gap-2",
|
|
24132
24111
|
children: [
|
|
24133
|
-
|
|
24134
|
-
|
|
24135
|
-
|
|
24112
|
+
fN,
|
|
24113
|
+
mN,
|
|
24114
|
+
hN
|
|
24136
24115
|
]
|
|
24137
|
-
}), t[40] =
|
|
24138
|
-
let
|
|
24139
|
-
return t[44] !==
|
|
24116
|
+
}), t[40] = fN, t[41] = mN, t[42] = hN, t[43] = gN) : gN = t[43];
|
|
24117
|
+
let _N;
|
|
24118
|
+
return t[44] !== dN || t[45] !== gN ? (_N = (0, import_jsx_runtime.jsxs)("div", {
|
|
24140
24119
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24141
24120
|
children: [
|
|
24142
|
-
|
|
24143
|
-
|
|
24121
|
+
dN,
|
|
24122
|
+
gN
|
|
24144
24123
|
]
|
|
24145
|
-
}), t[44] =
|
|
24124
|
+
}), t[44] = dN, t[45] = gN, t[46] = _N) : _N = t[46], _N;
|
|
24146
24125
|
};
|
|
24147
24126
|
function lastLine(e) {
|
|
24148
24127
|
var _a2, _b;
|
|
@@ -25528,7 +25507,7 @@ ${_}`,
|
|
|
25528
25507
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
25529
25508
|
}
|
|
25530
25509
|
}
|
|
25531
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6-
|
|
25510
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6-dev28");
|
|
25532
25511
|
showCodeInRunModeAtom = atom(true);
|
|
25533
25512
|
atom(null);
|
|
25534
25513
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -25558,44 +25537,42 @@ ${_}`,
|
|
|
25558
25537
|
export {
|
|
25559
25538
|
getPageIndexForRow as $,
|
|
25560
25539
|
contextAwarePanelType as A,
|
|
25561
|
-
|
|
25540
|
+
EyeOff as At,
|
|
25562
25541
|
TableHead as B,
|
|
25563
|
-
|
|
25542
|
+
ArrowDownWideNarrow as Bt,
|
|
25564
25543
|
useInternalStateWithSync as C,
|
|
25565
25544
|
RenderTextWithLinks as Ct,
|
|
25566
25545
|
PANEL_TYPES as D,
|
|
25567
|
-
|
|
25546
|
+
TextWrap as Dt,
|
|
25568
25547
|
ContextAwarePanelItem as E,
|
|
25569
25548
|
EmotionCacheProvider as Et,
|
|
25570
25549
|
Fill as F,
|
|
25571
|
-
|
|
25550
|
+
ChevronsUpDown as Ft,
|
|
25572
25551
|
inferFieldTypes as G,
|
|
25573
25552
|
TableRow as H,
|
|
25574
|
-
ArrowDownWideNarrow as Ht,
|
|
25575
25553
|
Provider$1 as I,
|
|
25576
|
-
|
|
25554
|
+
ChevronsRight as It,
|
|
25577
25555
|
ColumnChartSpecModel as J,
|
|
25578
25556
|
renderCellValue as K,
|
|
25579
25557
|
Table as L,
|
|
25580
|
-
|
|
25558
|
+
ChevronsLeft as Lt,
|
|
25581
25559
|
SlotNames as M,
|
|
25582
|
-
|
|
25560
|
+
Ellipsis as Mt,
|
|
25583
25561
|
slotsController as N,
|
|
25584
|
-
|
|
25562
|
+
Download as Nt,
|
|
25585
25563
|
contextAwarePanelOpen as O,
|
|
25586
|
-
|
|
25564
|
+
GripHorizontal as Ot,
|
|
25587
25565
|
Toggle as P,
|
|
25588
|
-
|
|
25566
|
+
Code as Pt,
|
|
25589
25567
|
filtersToFilterGroup as Q,
|
|
25590
25568
|
TableBody as R,
|
|
25591
|
-
|
|
25569
|
+
ChevronsDownUp as Rt,
|
|
25592
25570
|
prettifyRowCount as S,
|
|
25593
25571
|
useOverflowDetection as St,
|
|
25594
25572
|
ComboboxItem as T,
|
|
25595
25573
|
HtmlOutput as Tt,
|
|
25596
25574
|
NAMELESS_COLUMN_PREFIX as U,
|
|
25597
25575
|
TableHeader as V,
|
|
25598
|
-
ChevronLeft as Vt,
|
|
25599
25576
|
generateColumns as W,
|
|
25600
25577
|
useIntersectionObserver as X,
|
|
25601
25578
|
DelayMount as Y,
|
|
@@ -25621,9 +25598,9 @@ export {
|
|
|
25621
25598
|
DEFAULT_DECK_TRANSITION as i,
|
|
25622
25599
|
TOO_MANY_ROWS as it,
|
|
25623
25600
|
isCellAwareAtom as j,
|
|
25624
|
-
|
|
25601
|
+
Expand as jt,
|
|
25625
25602
|
contextAwarePanelOwner as k,
|
|
25626
|
-
|
|
25603
|
+
Funnel as kt,
|
|
25627
25604
|
RadioGroup as l,
|
|
25628
25605
|
CommandInput as lt,
|
|
25629
25606
|
DataTable as m,
|
|
@@ -25652,5 +25629,5 @@ export {
|
|
|
25652
25629
|
downloadHTMLAsImage as y,
|
|
25653
25630
|
ChartInfoState as yt,
|
|
25654
25631
|
TableCell as z,
|
|
25655
|
-
|
|
25632
|
+
ChevronLeft as zt
|
|
25656
25633
|
};
|