@marimo-team/islands 0.23.6-dev9 → 0.23.6
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/{ConnectedDataExplorerComponent-CWU3Az6F.js → ConnectedDataExplorerComponent-PmilQqXR.js} +4 -4
- package/dist/assets/__vite-browser-external-rrUYDKRl.js +1 -0
- package/dist/assets/{worker-D-EdLKct.js → worker-Bfy15ViQ.js} +2 -2
- package/dist/{chat-ui-Cyca6aKX.js → chat-ui-B-gbqk_F.js} +6 -6
- package/dist/{code-visibility-B0kwrVA6.js → code-visibility-DNiCvIcQ.js} +678 -564
- package/dist/{formats-Dh5M1ZRs.js → formats-CgaK7Gmx.js} +1 -1
- package/dist/{glide-data-editor-DXti2axL.js → glide-data-editor-CvlvtPWJ.js} +2 -2
- package/dist/{html-to-image-6VI69paz.js → html-to-image-hMMPiNe_.js} +2120 -2103
- package/dist/{input-Drx1pguW.js → input-BAOe64zx.js} +1 -1
- package/dist/main.js +19 -19
- package/dist/{mermaid-BagLPXm9.js → mermaid-DJ1NyBGw.js} +2 -2
- package/dist/{process-output-SkNR_Omd.js → process-output-Bza_GK7Q.js} +1 -1
- package/dist/{reveal-component-DlCLweHo.js → reveal-component-BSwl7P64.js} +13 -13
- package/dist/{spec-BKWq0wn2.js → spec-DSIuqd3f.js} +1 -1
- package/dist/toDate-CHtl9vts.js +662 -0
- package/dist/{useAsyncData-CKYzhCis.js → useAsyncData-B6hCGywC.js} +1 -1
- package/dist/{useDeepCompareMemoize-je76AJS_.js → useDeepCompareMemoize-CmwDuYUH.js} +1 -1
- package/dist/{useLifecycle-smVfjLNI.js → useLifecycle-CjMjllqy.js} +1 -1
- package/dist/{useTheme-CX9pPLUH.js → useTheme-CByZUW0p.js} +1 -0
- package/dist/{vega-component-BnCQmtxw.js → vega-component-CC8TqWWV.js} +5 -5
- package/package.json +5 -5
- package/src/components/ai/ai-provider-icon.tsx +1 -0
- package/src/components/ai/ai-utils.ts +1 -0
- package/src/components/app-config/ai-config.tsx +30 -0
- package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +47 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/components/editor/renderers/cell-array.tsx +14 -7
- package/src/components/slides/slide-form.tsx +43 -0
- package/src/components/terminal/terminal.tsx +16 -0
- package/src/components/ui/links.tsx +2 -1
- package/src/core/ai/ids/ids.ts +1 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +36 -0
- package/src/core/codemirror/markdown/commands.ts +4 -1
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/edit-app.tsx +1 -0
- package/src/core/run-app.tsx +9 -2
- package/src/core/runtime/runtime.ts +3 -2
- package/src/core/static/static-state.ts +5 -1
- package/src/core/wasm/PyodideLoader.tsx +54 -16
- package/src/core/wasm/__tests__/PyodideLoader.test.ts +72 -0
- package/src/core/wasm/__tests__/bridge.test.ts +26 -1
- package/src/core/wasm/bridge.ts +24 -6
- package/src/core/wasm/state.ts +3 -0
- 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/core/RenderHTML.tsx +49 -3
- package/src/plugins/core/__test__/RenderHTML.test.ts +54 -0
- package/src/plugins/impl/common/labeled.tsx +1 -1
- package/dist/assets/__vite-browser-external-C4JkHbyY.js +0 -1
- package/dist/toDate-yqOcZ_tY.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-hMMPiNe_.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
11
|
-
import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-
|
|
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
|
-
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-
|
|
16
|
-
import { a as millisecondsInMinute, c as asRemoteURL, d as
|
|
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 { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-CHtl9vts.js";
|
|
17
17
|
import { n as clsx_default } from "./clsx-CyyyQ8Ue.js";
|
|
18
18
|
import { t as require_react_dom } from "./react-dom-BWRJ_g_k.js";
|
|
19
19
|
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
|
|
@@ -22,20 +22,20 @@ import { a as Content$1, c as Root$2, i as prettyError, n as ErrorBanner, o as O
|
|
|
22
22
|
import { t as Tooltip } from "./tooltip-B0mtKTXm.js";
|
|
23
23
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-CzJgxo2J.js";
|
|
24
24
|
import { r as KnownQueryParams } from "./constants-D0gkYoE2.js";
|
|
25
|
-
import { C as dequal, S as getBuildingBlocks, _ as useSetAtom, d as useJotaiEffect, g as useAtomValue, h as useAtom, m as Provider, n as useTheme, r as aiEnabledAtom, v as useStore, w as useEvent_default, x as buildStore, y as atom } from "./useTheme-
|
|
25
|
+
import { C as dequal, S as getBuildingBlocks, _ as useSetAtom, d as useJotaiEffect, g as useAtomValue, h as useAtom, m as Provider, n as useTheme, r as aiEnabledAtom, v as useStore, w as useEvent_default, x as buildStore, y as atom } from "./useTheme-CByZUW0p.js";
|
|
26
26
|
import { Z as EditorView } from "./dist-CCADb07R.js";
|
|
27
27
|
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-CgaK7Gmx.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
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
38
|
-
let getPageIndexForRow, contextAwarePanelType,
|
|
37
|
+
import { t as useAsyncData } from "./useAsyncData-B6hCGywC.js";
|
|
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 {
|
|
@@ -45,7 +45,7 @@ let __tla = Promise.all([
|
|
|
45
45
|
})()
|
|
46
46
|
]).then(async () => {
|
|
47
47
|
var _a;
|
|
48
|
-
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
48
|
+
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, Keyboard, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
49
49
|
ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
|
|
50
50
|
[
|
|
51
51
|
"path",
|
|
@@ -670,6 +670,75 @@ let __tla = Promise.all([
|
|
|
670
670
|
}
|
|
671
671
|
]
|
|
672
672
|
]);
|
|
673
|
+
Keyboard = createLucideIcon("keyboard", [
|
|
674
|
+
[
|
|
675
|
+
"path",
|
|
676
|
+
{
|
|
677
|
+
d: "M10 8h.01",
|
|
678
|
+
key: "1r9ogq"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
[
|
|
682
|
+
"path",
|
|
683
|
+
{
|
|
684
|
+
d: "M12 12h.01",
|
|
685
|
+
key: "1mp3jc"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
[
|
|
689
|
+
"path",
|
|
690
|
+
{
|
|
691
|
+
d: "M14 8h.01",
|
|
692
|
+
key: "1primd"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
[
|
|
696
|
+
"path",
|
|
697
|
+
{
|
|
698
|
+
d: "M16 12h.01",
|
|
699
|
+
key: "1l6xoz"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
[
|
|
703
|
+
"path",
|
|
704
|
+
{
|
|
705
|
+
d: "M18 8h.01",
|
|
706
|
+
key: "emo2bl"
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
[
|
|
710
|
+
"path",
|
|
711
|
+
{
|
|
712
|
+
d: "M6 8h.01",
|
|
713
|
+
key: "x9i8wu"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
[
|
|
717
|
+
"path",
|
|
718
|
+
{
|
|
719
|
+
d: "M7 16h10",
|
|
720
|
+
key: "wp8him"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
"path",
|
|
725
|
+
{
|
|
726
|
+
d: "M8 12h.01",
|
|
727
|
+
key: "czm47f"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
"rect",
|
|
732
|
+
{
|
|
733
|
+
width: "20",
|
|
734
|
+
height: "16",
|
|
735
|
+
x: "2",
|
|
736
|
+
y: "4",
|
|
737
|
+
rx: "2",
|
|
738
|
+
key: "18n3k1"
|
|
739
|
+
}
|
|
740
|
+
]
|
|
741
|
+
]);
|
|
673
742
|
LayoutTemplate = createLucideIcon("layout-template", [
|
|
674
743
|
[
|
|
675
744
|
"rect",
|
|
@@ -4601,27 +4670,6 @@ let __tla = Promise.all([
|
|
|
4601
4670
|
function isMatch(e, t, n) {
|
|
4602
4671
|
return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
|
|
4603
4672
|
}
|
|
4604
|
-
function isStringToStringRecord(e) {
|
|
4605
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4606
|
-
for (let t of Object.values(e)) if (typeof t != "string") return false;
|
|
4607
|
-
return true;
|
|
4608
|
-
}
|
|
4609
|
-
function isMarimoStaticState(e) {
|
|
4610
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4611
|
-
let t = e;
|
|
4612
|
-
return !(!isStringToStringRecord(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
|
|
4613
|
-
}
|
|
4614
|
-
function getMarimoStaticState() {
|
|
4615
|
-
let e = window == null ? void 0 : window.__MARIMO_STATIC__;
|
|
4616
|
-
return isMarimoStaticState(e) ? e : void 0;
|
|
4617
|
-
}
|
|
4618
|
-
isStaticNotebook = function() {
|
|
4619
|
-
return getMarimoStaticState() !== void 0;
|
|
4620
|
-
};
|
|
4621
|
-
getStaticVirtualFiles = function() {
|
|
4622
|
-
let e = getMarimoStaticState();
|
|
4623
|
-
return invariant(e !== void 0, "Not a static notebook"), e.files;
|
|
4624
|
-
};
|
|
4625
4673
|
var isDevelopment$3 = false;
|
|
4626
4674
|
function sheetForTag(e) {
|
|
4627
4675
|
if (e.sheet) return e.sheet;
|
|
@@ -7481,33 +7529,33 @@ try {
|
|
|
7481
7529
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7482
7530
|
function y(e2) {
|
|
7483
7531
|
var _a2, _b, _c, _d;
|
|
7484
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
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), [
|
|
7485
7533
|
h2
|
|
7486
|
-
]),
|
|
7487
|
-
|
|
7488
|
-
]),
|
|
7489
|
-
supportedColorSchemes:
|
|
7490
|
-
defaultLightColorScheme:
|
|
7491
|
-
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,
|
|
7492
7540
|
modeStorageKey: y2,
|
|
7493
7541
|
colorSchemeStorageKey: S2,
|
|
7494
|
-
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),
|
|
7495
7543
|
storageManager: E,
|
|
7496
7544
|
storageWindow: O,
|
|
7497
7545
|
noSsr: K
|
|
7498
|
-
}),
|
|
7499
|
-
|
|
7500
|
-
let
|
|
7546
|
+
}), gN = lN, _N = mN;
|
|
7547
|
+
$M && (gN = Q.mode, _N = Q.colorScheme);
|
|
7548
|
+
let vN = import_react.useMemo(() => {
|
|
7501
7549
|
var _a3;
|
|
7502
|
-
let e3 =
|
|
7503
|
-
|
|
7504
|
-
components:
|
|
7505
|
-
colorSchemes:
|
|
7506
|
-
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,
|
|
7507
7555
|
vars: t2
|
|
7508
7556
|
};
|
|
7509
7557
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7510
|
-
let t3 =
|
|
7558
|
+
let t3 = nN[e3];
|
|
7511
7559
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7512
7560
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7513
7561
|
...n2[e4],
|
|
@@ -7517,31 +7565,31 @@ try {
|
|
|
7517
7565
|
}
|
|
7518
7566
|
return c ? c(n2) : n2;
|
|
7519
7567
|
}, [
|
|
7520
|
-
$M,
|
|
7521
|
-
hN,
|
|
7522
7568
|
tN,
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7569
|
+
_N,
|
|
7570
|
+
rN,
|
|
7571
|
+
nN,
|
|
7572
|
+
iN
|
|
7573
|
+
]), yN = tN.colorSchemeSelector;
|
|
7526
7574
|
useEnhancedEffect_default(() => {
|
|
7527
|
-
if (
|
|
7528
|
-
let e3 =
|
|
7529
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
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));
|
|
7530
7578
|
else {
|
|
7531
|
-
let e4 = t2.replace("%s",
|
|
7579
|
+
let e4 = t2.replace("%s", _N).match(/\[([^\]]+)\]/);
|
|
7532
7580
|
if (e4) {
|
|
7533
7581
|
let [t3, n2] = e4[1].split("=");
|
|
7534
|
-
n2 ||
|
|
7535
|
-
M.removeAttribute(t3.replace(
|
|
7582
|
+
n2 || oN.forEach((e5) => {
|
|
7583
|
+
M.removeAttribute(t3.replace(_N, e5));
|
|
7536
7584
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7537
|
-
} else M.setAttribute(t2,
|
|
7585
|
+
} else M.setAttribute(t2, _N);
|
|
7538
7586
|
}
|
|
7539
7587
|
}
|
|
7540
7588
|
}, [
|
|
7541
|
-
hN,
|
|
7542
7589
|
_N,
|
|
7590
|
+
yN,
|
|
7543
7591
|
M,
|
|
7544
|
-
|
|
7592
|
+
oN
|
|
7545
7593
|
]), import_react.useEffect(() => {
|
|
7546
7594
|
let e3;
|
|
7547
7595
|
if (w2 && q.current && A) {
|
|
@@ -7554,48 +7602,48 @@ try {
|
|
|
7554
7602
|
clearTimeout(e3);
|
|
7555
7603
|
};
|
|
7556
7604
|
}, [
|
|
7557
|
-
|
|
7605
|
+
_N,
|
|
7558
7606
|
w2,
|
|
7559
7607
|
A
|
|
7560
7608
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7561
7609
|
q.current = false;
|
|
7562
7610
|
}), []);
|
|
7563
|
-
let
|
|
7564
|
-
allColorSchemes:
|
|
7565
|
-
colorScheme:
|
|
7566
|
-
darkColorScheme:
|
|
7567
|
-
lightColorScheme:
|
|
7568
|
-
mode:
|
|
7569
|
-
setColorScheme:
|
|
7570
|
-
setMode:
|
|
7571
|
-
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
|
|
7572
7620
|
}), [
|
|
7573
|
-
|
|
7621
|
+
oN,
|
|
7622
|
+
_N,
|
|
7623
|
+
pN,
|
|
7624
|
+
fN,
|
|
7625
|
+
gN,
|
|
7574
7626
|
hN,
|
|
7575
|
-
dN,
|
|
7576
7627
|
uN,
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
]), yN = true;
|
|
7583
|
-
(z || $M.cssVariables === false || ZM && (J == null ? void 0 : J.cssVarPrefix) === nN) && (yN = false);
|
|
7584
|
-
let bN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
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, {
|
|
7585
7633
|
children: [
|
|
7586
7634
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7587
|
-
themeId:
|
|
7588
|
-
theme:
|
|
7635
|
+
themeId: eN ? t : void 0,
|
|
7636
|
+
theme: vN,
|
|
7589
7637
|
children: d2
|
|
7590
7638
|
}),
|
|
7591
|
-
|
|
7592
|
-
styles: ((_d =
|
|
7639
|
+
xN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7640
|
+
styles: ((_d = vN.generateStyleSheets) == null ? void 0 : _d.call(vN)) || []
|
|
7593
7641
|
})
|
|
7594
7642
|
]
|
|
7595
7643
|
});
|
|
7596
|
-
return
|
|
7597
|
-
value:
|
|
7598
|
-
children:
|
|
7644
|
+
return $M ? SN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7645
|
+
value: bN,
|
|
7646
|
+
children: SN
|
|
7599
7647
|
});
|
|
7600
7648
|
}
|
|
7601
7649
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9095,10 +9143,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9095
9143
|
let n = useDefaultProps({
|
|
9096
9144
|
props: e,
|
|
9097
9145
|
name: "MuiInputBase"
|
|
9098
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
9099
|
-
}, []),
|
|
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({
|
|
9100
9148
|
props: n,
|
|
9101
|
-
muiFormControl:
|
|
9149
|
+
muiFormControl: bN,
|
|
9102
9150
|
states: [
|
|
9103
9151
|
"color",
|
|
9104
9152
|
"disabled",
|
|
@@ -9109,145 +9157,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9109
9157
|
"filled"
|
|
9110
9158
|
]
|
|
9111
9159
|
});
|
|
9112
|
-
|
|
9113
|
-
!
|
|
9160
|
+
xN.focused = bN ? bN.focused : vN, import_react.useEffect(() => {
|
|
9161
|
+
!bN && _ && vN && (yN(false), J && J());
|
|
9114
9162
|
}, [
|
|
9115
|
-
|
|
9163
|
+
bN,
|
|
9116
9164
|
_,
|
|
9117
|
-
|
|
9165
|
+
vN,
|
|
9118
9166
|
J
|
|
9119
9167
|
]);
|
|
9120
|
-
let
|
|
9121
|
-
isFilled(e2) ?
|
|
9168
|
+
let SN = bN && bN.onFilled, CN = bN && bN.onEmpty, wN = import_react.useCallback((e2) => {
|
|
9169
|
+
isFilled(e2) ? SN && SN() : CN && CN();
|
|
9122
9170
|
}, [
|
|
9123
|
-
|
|
9124
|
-
|
|
9171
|
+
SN,
|
|
9172
|
+
CN
|
|
9125
9173
|
]);
|
|
9126
9174
|
useEnhancedEffect_default$1(() => {
|
|
9127
|
-
|
|
9128
|
-
value:
|
|
9175
|
+
mN && wN({
|
|
9176
|
+
value: pN
|
|
9129
9177
|
});
|
|
9130
9178
|
}, [
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9179
|
+
pN,
|
|
9180
|
+
wN,
|
|
9181
|
+
mN
|
|
9134
9182
|
]);
|
|
9135
|
-
let
|
|
9136
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9137
|
-
},
|
|
9138
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9139
|
-
},
|
|
9140
|
-
if (!
|
|
9141
|
-
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;
|
|
9142
9190
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9143
|
-
|
|
9191
|
+
wN({
|
|
9144
9192
|
value: t3.value
|
|
9145
9193
|
});
|
|
9146
9194
|
}
|
|
9147
9195
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9148
9196
|
};
|
|
9149
9197
|
import_react.useEffect(() => {
|
|
9150
|
-
|
|
9198
|
+
wN(hN.current);
|
|
9151
9199
|
}, []);
|
|
9152
|
-
let
|
|
9153
|
-
|
|
9154
|
-
},
|
|
9155
|
-
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 ? {
|
|
9156
9204
|
type: void 0,
|
|
9157
|
-
minRows:
|
|
9158
|
-
maxRows:
|
|
9159
|
-
...
|
|
9205
|
+
minRows: aN,
|
|
9206
|
+
maxRows: aN,
|
|
9207
|
+
...AN
|
|
9160
9208
|
} : {
|
|
9161
9209
|
type: void 0,
|
|
9162
9210
|
maxRows: z,
|
|
9163
9211
|
minRows: U,
|
|
9164
|
-
...
|
|
9165
|
-
},
|
|
9166
|
-
let
|
|
9167
|
-
|
|
9212
|
+
...AN
|
|
9213
|
+
}, kN = TextareaAutosize_default);
|
|
9214
|
+
let jN = (e2) => {
|
|
9215
|
+
wN(e2.animationName === "mui-auto-fill-cancel" ? hN.current : {
|
|
9168
9216
|
value: "x"
|
|
9169
9217
|
});
|
|
9170
9218
|
};
|
|
9171
9219
|
import_react.useEffect(() => {
|
|
9172
|
-
|
|
9220
|
+
bN && bN.setAdornedStart(!!lN);
|
|
9173
9221
|
}, [
|
|
9174
|
-
|
|
9175
|
-
|
|
9222
|
+
bN,
|
|
9223
|
+
lN
|
|
9176
9224
|
]);
|
|
9177
|
-
let
|
|
9225
|
+
let MN = {
|
|
9178
9226
|
...n,
|
|
9179
|
-
color:
|
|
9180
|
-
disabled:
|
|
9227
|
+
color: xN.color || "primary",
|
|
9228
|
+
disabled: xN.disabled,
|
|
9181
9229
|
endAdornment: y,
|
|
9182
|
-
error:
|
|
9183
|
-
focused:
|
|
9184
|
-
formControl:
|
|
9230
|
+
error: xN.error,
|
|
9231
|
+
focused: xN.focused,
|
|
9232
|
+
formControl: bN,
|
|
9185
9233
|
fullWidth: w,
|
|
9186
|
-
hiddenLabel:
|
|
9234
|
+
hiddenLabel: xN.hiddenLabel,
|
|
9187
9235
|
multiline: K,
|
|
9188
|
-
size:
|
|
9189
|
-
startAdornment:
|
|
9190
|
-
type:
|
|
9191
|
-
},
|
|
9192
|
-
return
|
|
9193
|
-
...
|
|
9194
|
-
...
|
|
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
|
|
9195
9243
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9196
9244
|
children: [
|
|
9197
9245
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9198
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9199
|
-
...
|
|
9246
|
+
(0, import_jsx_runtime.jsxs)(PN, {
|
|
9247
|
+
...FN,
|
|
9200
9248
|
ref: t,
|
|
9201
|
-
onClick:
|
|
9202
|
-
...
|
|
9203
|
-
...!isHostComponent_default(
|
|
9249
|
+
onClick: ON,
|
|
9250
|
+
...fN,
|
|
9251
|
+
...!isHostComponent_default(PN) && {
|
|
9204
9252
|
ownerState: {
|
|
9205
|
-
...
|
|
9206
|
-
...
|
|
9253
|
+
...MN,
|
|
9254
|
+
...FN.ownerState
|
|
9207
9255
|
}
|
|
9208
9256
|
},
|
|
9209
|
-
className: clsx_default(
|
|
9257
|
+
className: clsx_default(NN.root, FN.className, s, rN && "MuiInputBase-readOnly"),
|
|
9210
9258
|
children: [
|
|
9211
|
-
|
|
9259
|
+
lN,
|
|
9212
9260
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9213
9261
|
value: null,
|
|
9214
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9215
|
-
"aria-invalid":
|
|
9262
|
+
children: (0, import_jsx_runtime.jsx)(IN, {
|
|
9263
|
+
"aria-invalid": xN.error,
|
|
9216
9264
|
"aria-describedby": i,
|
|
9217
9265
|
autoComplete: a,
|
|
9218
9266
|
autoFocus: o,
|
|
9219
9267
|
defaultValue: h,
|
|
9220
|
-
disabled:
|
|
9268
|
+
disabled: xN.disabled,
|
|
9221
9269
|
id: E,
|
|
9222
|
-
onAnimationStart:
|
|
9270
|
+
onAnimationStart: jN,
|
|
9223
9271
|
name: q,
|
|
9224
|
-
placeholder:
|
|
9225
|
-
readOnly:
|
|
9226
|
-
required:
|
|
9227
|
-
rows:
|
|
9228
|
-
value:
|
|
9229
|
-
onKeyDown:
|
|
9230
|
-
onKeyUp:
|
|
9231
|
-
type:
|
|
9232
|
-
...
|
|
9233
|
-
...!isHostComponent_default(
|
|
9234
|
-
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,
|
|
9235
9283
|
ownerState: {
|
|
9236
|
-
...
|
|
9237
|
-
...
|
|
9284
|
+
...MN,
|
|
9285
|
+
...AN.ownerState
|
|
9238
9286
|
}
|
|
9239
9287
|
},
|
|
9240
|
-
ref:
|
|
9241
|
-
className: clsx_default(
|
|
9242
|
-
onBlur:
|
|
9243
|
-
onChange:
|
|
9244
|
-
onFocus:
|
|
9288
|
+
ref: _N,
|
|
9289
|
+
className: clsx_default(NN.input, AN.className, rN && "MuiInputBase-readOnly"),
|
|
9290
|
+
onBlur: EN,
|
|
9291
|
+
onChange: DN,
|
|
9292
|
+
onFocus: TN
|
|
9245
9293
|
})
|
|
9246
9294
|
}),
|
|
9247
9295
|
y,
|
|
9248
|
-
|
|
9249
|
-
...
|
|
9250
|
-
startAdornment:
|
|
9296
|
+
iN ? iN({
|
|
9297
|
+
...xN,
|
|
9298
|
+
startAdornment: lN
|
|
9251
9299
|
}) : null
|
|
9252
9300
|
]
|
|
9253
9301
|
})
|
|
@@ -10323,30 +10371,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10323
10371
|
M,
|
|
10324
10372
|
i,
|
|
10325
10373
|
a
|
|
10326
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10327
|
-
|
|
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,
|
|
10328
10376
|
a,
|
|
10329
10377
|
i,
|
|
10330
|
-
|
|
10378
|
+
sN,
|
|
10331
10379
|
v,
|
|
10332
10380
|
t
|
|
10333
|
-
]),
|
|
10334
|
-
|
|
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,
|
|
10335
10383
|
a,
|
|
10336
|
-
|
|
10384
|
+
aN,
|
|
10337
10385
|
i,
|
|
10338
|
-
|
|
10386
|
+
uN,
|
|
10339
10387
|
v,
|
|
10340
10388
|
t
|
|
10341
|
-
]),
|
|
10342
|
-
|
|
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,
|
|
10343
10391
|
n,
|
|
10344
10392
|
t
|
|
10345
|
-
]),
|
|
10393
|
+
]), vN = (0, import_react.useRef)();
|
|
10346
10394
|
(0, import_react.useEffect)(() => {
|
|
10347
|
-
|
|
10395
|
+
vN.current && _N && "animate" in vN.current && vN.current.animate([
|
|
10348
10396
|
{
|
|
10349
|
-
backgroundColor:
|
|
10397
|
+
backgroundColor: tN
|
|
10350
10398
|
},
|
|
10351
10399
|
{
|
|
10352
10400
|
backgroundColor: ""
|
|
@@ -10356,40 +10404,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10356
10404
|
easing: "ease-in"
|
|
10357
10405
|
});
|
|
10358
10406
|
}, [
|
|
10359
|
-
|
|
10360
|
-
|
|
10407
|
+
tN,
|
|
10408
|
+
_N,
|
|
10361
10409
|
n,
|
|
10362
10410
|
t
|
|
10363
10411
|
]);
|
|
10364
|
-
let
|
|
10412
|
+
let yN = (0, import_react.useCallback)((e2) => {
|
|
10365
10413
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10366
10414
|
}, [
|
|
10367
10415
|
h,
|
|
10368
10416
|
t
|
|
10369
|
-
]),
|
|
10417
|
+
]), bN = (0, import_react.useCallback)(() => {
|
|
10370
10418
|
Q(false), E("");
|
|
10371
10419
|
}, [
|
|
10372
10420
|
Q,
|
|
10373
10421
|
E
|
|
10374
|
-
]),
|
|
10422
|
+
]), xN = (0, import_react.useCallback)((e2) => {
|
|
10375
10423
|
if (Q(false), _) try {
|
|
10376
|
-
|
|
10424
|
+
$M(i, t, _(e2));
|
|
10377
10425
|
} catch {
|
|
10378
10426
|
}
|
|
10379
10427
|
}, [
|
|
10380
10428
|
Q,
|
|
10381
10429
|
_,
|
|
10382
|
-
|
|
10430
|
+
$M,
|
|
10383
10431
|
i,
|
|
10384
10432
|
t
|
|
10385
|
-
]),
|
|
10433
|
+
]), SN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10386
10434
|
children: [
|
|
10387
10435
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10388
10436
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10389
10437
|
sx: {
|
|
10390
10438
|
fontSize: ".8rem"
|
|
10391
10439
|
},
|
|
10392
|
-
onClick:
|
|
10440
|
+
onClick: bN
|
|
10393
10441
|
})
|
|
10394
10442
|
}),
|
|
10395
10443
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10397,22 +10445,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10397
10445
|
sx: {
|
|
10398
10446
|
fontSize: ".8rem"
|
|
10399
10447
|
},
|
|
10400
|
-
onClick: () =>
|
|
10448
|
+
onClick: () => xN(w)
|
|
10401
10449
|
})
|
|
10402
10450
|
})
|
|
10403
10451
|
]
|
|
10404
10452
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10405
10453
|
children: [
|
|
10406
|
-
|
|
10454
|
+
pN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10407
10455
|
onClick: (e2) => {
|
|
10408
10456
|
e2.preventDefault();
|
|
10409
10457
|
try {
|
|
10410
|
-
|
|
10458
|
+
mN(i, t, copyString);
|
|
10411
10459
|
} catch (e3) {
|
|
10412
10460
|
console.error(e3);
|
|
10413
10461
|
}
|
|
10414
10462
|
},
|
|
10415
|
-
children:
|
|
10463
|
+
children: hN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10416
10464
|
sx: {
|
|
10417
10465
|
fontSize: ".8rem"
|
|
10418
10466
|
}
|
|
@@ -10423,16 +10471,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10423
10471
|
})
|
|
10424
10472
|
}),
|
|
10425
10473
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10426
|
-
onClick:
|
|
10474
|
+
onClick: yN,
|
|
10427
10475
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10428
10476
|
sx: {
|
|
10429
10477
|
fontSize: ".8rem"
|
|
10430
10478
|
}
|
|
10431
10479
|
})
|
|
10432
10480
|
}),
|
|
10433
|
-
|
|
10481
|
+
lN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10434
10482
|
onClick: (e2) => {
|
|
10435
|
-
e2.preventDefault(),
|
|
10483
|
+
e2.preventDefault(), cN == null ? void 0 : cN(i);
|
|
10436
10484
|
},
|
|
10437
10485
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10438
10486
|
sx: {
|
|
@@ -10440,9 +10488,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10440
10488
|
}
|
|
10441
10489
|
})
|
|
10442
10490
|
}),
|
|
10443
|
-
|
|
10491
|
+
fN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10444
10492
|
onClick: (e2) => {
|
|
10445
|
-
e2.preventDefault(),
|
|
10493
|
+
e2.preventDefault(), dN == null ? void 0 : dN(i, t);
|
|
10446
10494
|
},
|
|
10447
10495
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10448
10496
|
sx: {
|
|
@@ -10455,24 +10503,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10455
10503
|
f,
|
|
10456
10504
|
h,
|
|
10457
10505
|
_,
|
|
10458
|
-
|
|
10459
|
-
|
|
10506
|
+
hN,
|
|
10507
|
+
mN,
|
|
10460
10508
|
S,
|
|
10461
10509
|
J,
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10510
|
+
pN,
|
|
10511
|
+
lN,
|
|
10512
|
+
fN,
|
|
10465
10513
|
w,
|
|
10466
10514
|
i,
|
|
10467
10515
|
t,
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
]),
|
|
10516
|
+
cN,
|
|
10517
|
+
dN,
|
|
10518
|
+
yN,
|
|
10519
|
+
bN,
|
|
10520
|
+
xN
|
|
10521
|
+
]), CN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10474
10522
|
t
|
|
10475
|
-
]),
|
|
10523
|
+
]), wN = !CN && !!(c && d), TN = useJsonViewerStore((e2) => e2.keyRenderer), EN = (0, import_react.useMemo)(() => ({
|
|
10476
10524
|
path: i,
|
|
10477
10525
|
inspect: K,
|
|
10478
10526
|
setInspect: q,
|
|
@@ -10509,13 +10557,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10509
10557
|
opacity: 0.8
|
|
10510
10558
|
},
|
|
10511
10559
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10512
|
-
e2.isDefaultPrevented() ||
|
|
10560
|
+
e2.isDefaultPrevented() || CN || q((e3) => !e3);
|
|
10513
10561
|
}, [
|
|
10514
|
-
|
|
10562
|
+
CN,
|
|
10515
10563
|
q
|
|
10516
10564
|
]),
|
|
10517
10565
|
children: [
|
|
10518
|
-
|
|
10566
|
+
wN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10519
10567
|
className: "data-key-toggle-expanded",
|
|
10520
10568
|
sx: {
|
|
10521
10569
|
fontSize: ".8rem",
|
|
@@ -10533,27 +10581,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10533
10581
|
}
|
|
10534
10582
|
}) : null,
|
|
10535
10583
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10536
|
-
ref:
|
|
10584
|
+
ref: vN,
|
|
10537
10585
|
className: "data-key-key",
|
|
10538
10586
|
component: "span",
|
|
10539
|
-
children:
|
|
10587
|
+
children: aN && O === 0 ? iN === false ? null : rN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10540
10588
|
children: [
|
|
10541
10589
|
'"',
|
|
10542
|
-
|
|
10590
|
+
iN,
|
|
10543
10591
|
'"'
|
|
10544
10592
|
]
|
|
10545
10593
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10546
|
-
children:
|
|
10547
|
-
}) :
|
|
10548
|
-
...
|
|
10549
|
-
}) : 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, {
|
|
10550
10598
|
component: "span",
|
|
10551
10599
|
style: {
|
|
10552
|
-
color:
|
|
10553
|
-
userSelect:
|
|
10600
|
+
color: eN,
|
|
10601
|
+
userSelect: oN ? "none" : "auto"
|
|
10554
10602
|
},
|
|
10555
10603
|
children: A
|
|
10556
|
-
}) :
|
|
10604
|
+
}) : rN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10557
10605
|
children: [
|
|
10558
10606
|
'"',
|
|
10559
10607
|
A,
|
|
@@ -10563,7 +10611,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10563
10611
|
children: A
|
|
10564
10612
|
}))
|
|
10565
10613
|
}),
|
|
10566
|
-
|
|
10614
|
+
aN ? iN !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10567
10615
|
className: "data-key-colon",
|
|
10568
10616
|
sx: {
|
|
10569
10617
|
mr: 0.5
|
|
@@ -10576,38 +10624,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10576
10624
|
".data-key-key:empty + &": {
|
|
10577
10625
|
display: "none"
|
|
10578
10626
|
},
|
|
10579
|
-
userSelect:
|
|
10627
|
+
userSelect: oN ? "none" : "auto"
|
|
10580
10628
|
},
|
|
10581
10629
|
children: ":"
|
|
10582
10630
|
}),
|
|
10583
10631
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10584
|
-
...
|
|
10632
|
+
...EN
|
|
10585
10633
|
}),
|
|
10586
|
-
I &&
|
|
10634
|
+
I && wN && K && SN
|
|
10587
10635
|
]
|
|
10588
10636
|
}),
|
|
10589
10637
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10590
10638
|
path: i,
|
|
10591
10639
|
value: w,
|
|
10592
10640
|
setValue: E,
|
|
10593
|
-
abortEditing:
|
|
10594
|
-
commitEditing:
|
|
10641
|
+
abortEditing: bN,
|
|
10642
|
+
commitEditing: xN
|
|
10595
10643
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10596
|
-
...
|
|
10644
|
+
...EN
|
|
10597
10645
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10598
10646
|
component: "span",
|
|
10599
10647
|
className: "data-value-fallback",
|
|
10600
10648
|
children: `fallback: ${t}`
|
|
10601
10649
|
}),
|
|
10602
10650
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10603
|
-
...
|
|
10651
|
+
...EN
|
|
10604
10652
|
}),
|
|
10605
|
-
!o &&
|
|
10653
|
+
!o && nN && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10606
10654
|
children: ","
|
|
10607
10655
|
}),
|
|
10608
|
-
I &&
|
|
10609
|
-
I && !
|
|
10610
|
-
!I && J &&
|
|
10656
|
+
I && wN && !K && SN,
|
|
10657
|
+
I && !wN && SN,
|
|
10658
|
+
!I && J && SN
|
|
10611
10659
|
]
|
|
10612
10660
|
});
|
|
10613
10661
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -11437,8 +11485,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11437
11485
|
let t = (0, import_compiler_runtime$39.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", h = "text-error";
|
|
11438
11486
|
if (n.some(_temp$5)) c = "Interrupted";
|
|
11439
11487
|
else if (n.some(_temp2$3)) c = "An internal error occurred";
|
|
11440
|
-
else if (n.some(_temp3$
|
|
11441
|
-
else if (n.some(_temp4)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
|
|
11488
|
+
else if (n.some(_temp3$2)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
|
|
11489
|
+
else if (n.some(_temp4$1)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
|
|
11442
11490
|
else if (n.some(_temp5)) c = "SQL error";
|
|
11443
11491
|
else {
|
|
11444
11492
|
let e2;
|
|
@@ -11448,18 +11496,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11448
11496
|
}
|
|
11449
11497
|
let _, v, y, S, w, E;
|
|
11450
11498
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11451
|
-
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
11452
|
-
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 = () => {
|
|
11453
11501
|
s.openApplication("scratchpad");
|
|
11454
|
-
}, t[15] = s, t[16] =
|
|
11455
|
-
let
|
|
11502
|
+
}, t[15] = s, t[16] = eN);
|
|
11503
|
+
let tN = eN, nN = () => {
|
|
11456
11504
|
let t2 = [];
|
|
11457
|
-
if (Q.length > 0 ||
|
|
11505
|
+
if (Q.length > 0 || $M.length > 0) {
|
|
11458
11506
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11459
11507
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11460
11508
|
children: [
|
|
11461
11509
|
Q.map(_temp20),
|
|
11462
|
-
|
|
11510
|
+
$M.map(_temp21),
|
|
11463
11511
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11464
11512
|
size: "xs",
|
|
11465
11513
|
variant: "outline",
|
|
@@ -11491,7 +11539,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11491
11539
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11492
11540
|
errors: [
|
|
11493
11541
|
...Q,
|
|
11494
|
-
|
|
11542
|
+
...$M
|
|
11495
11543
|
],
|
|
11496
11544
|
cellId: i
|
|
11497
11545
|
})
|
|
@@ -11652,7 +11700,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11652
11700
|
size: "xs",
|
|
11653
11701
|
variant: "link",
|
|
11654
11702
|
className: "my-2 font-normal mx-0 px-0",
|
|
11655
|
-
onClick:
|
|
11703
|
+
onClick: tN,
|
|
11656
11704
|
children: [
|
|
11657
11705
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11658
11706
|
className: "h-3"
|
|
@@ -11777,13 +11825,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11777
11825
|
})
|
|
11778
11826
|
]
|
|
11779
11827
|
}, "sql-errors")), t2;
|
|
11780
|
-
},
|
|
11781
|
-
t[17] !==
|
|
11782
|
-
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,
|
|
11783
11831
|
children: c
|
|
11784
|
-
}), t[17] =
|
|
11785
|
-
let
|
|
11786
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
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;
|
|
11787
11835
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11788
11836
|
let O;
|
|
11789
11837
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -11808,10 +11856,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11808
11856
|
function _temp2$3(e) {
|
|
11809
11857
|
return e.type === "internal";
|
|
11810
11858
|
}
|
|
11811
|
-
function _temp3$
|
|
11859
|
+
function _temp3$2(e) {
|
|
11812
11860
|
return e.type === "ancestor-prevented";
|
|
11813
11861
|
}
|
|
11814
|
-
function _temp4(e) {
|
|
11862
|
+
function _temp4$1(e) {
|
|
11815
11863
|
return e.type === "ancestor-stopped";
|
|
11816
11864
|
}
|
|
11817
11865
|
function _temp5(e) {
|
|
@@ -12770,7 +12818,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12770
12818
|
}, [
|
|
12771
12819
|
h
|
|
12772
12820
|
]), k(() => {
|
|
12773
|
-
U(6,
|
|
12821
|
+
U(6, eN);
|
|
12774
12822
|
}, []);
|
|
12775
12823
|
let K = import_react.useMemo(() => ({
|
|
12776
12824
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12779,7 +12827,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12779
12827
|
var _a2;
|
|
12780
12828
|
var a2, o2, s2;
|
|
12781
12829
|
if (!Object.is(n.current[e2], t2)) {
|
|
12782
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12830
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, $M);
|
|
12783
12831
|
else if (e2 === "value") {
|
|
12784
12832
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12785
12833
|
let e3 = document.getElementById(I);
|
|
@@ -12787,8 +12835,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12787
12835
|
}
|
|
12788
12836
|
if (U(7, () => {
|
|
12789
12837
|
var _a3;
|
|
12790
|
-
n.current.selectedItemId = (_a3 =
|
|
12791
|
-
}), 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) {
|
|
12792
12840
|
let e3 = t2 ?? "";
|
|
12793
12841
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12794
12842
|
return;
|
|
@@ -12813,12 +12861,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12813
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([
|
|
12814
12862
|
e2
|
|
12815
12863
|
]))), U(3, () => {
|
|
12816
|
-
$(), Q(), n.current.value ||
|
|
12864
|
+
$(), Q(), n.current.value || $M(), K.emit();
|
|
12817
12865
|
}), () => {
|
|
12818
12866
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12819
|
-
let t3 =
|
|
12867
|
+
let t3 = tN();
|
|
12820
12868
|
U(4, () => {
|
|
12821
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12869
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $M(), K.emit();
|
|
12822
12870
|
});
|
|
12823
12871
|
}),
|
|
12824
12872
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12851,7 +12899,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12851
12899
|
]);
|
|
12852
12900
|
});
|
|
12853
12901
|
let i2 = z.current;
|
|
12854
|
-
|
|
12902
|
+
nN().sort((t3, n2) => {
|
|
12855
12903
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12856
12904
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12857
12905
|
}).forEach((e3) => {
|
|
@@ -12863,9 +12911,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12863
12911
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12864
12912
|
});
|
|
12865
12913
|
}
|
|
12866
|
-
function
|
|
12914
|
+
function $M() {
|
|
12867
12915
|
var _a2;
|
|
12868
|
-
let e2 = (_a2 =
|
|
12916
|
+
let e2 = (_a2 = nN().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12869
12917
|
K.setState("value", e2 || void 0);
|
|
12870
12918
|
}
|
|
12871
12919
|
function $() {
|
|
@@ -12886,43 +12934,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12886
12934
|
}
|
|
12887
12935
|
n.current.filtered.count = e2;
|
|
12888
12936
|
}
|
|
12889
|
-
function
|
|
12937
|
+
function eN() {
|
|
12890
12938
|
var _a2, _b;
|
|
12891
12939
|
var e2;
|
|
12892
|
-
let t2 =
|
|
12940
|
+
let t2 = tN();
|
|
12893
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({
|
|
12894
12942
|
block: "nearest"
|
|
12895
12943
|
})), t2.scrollIntoView({
|
|
12896
12944
|
block: "nearest"
|
|
12897
12945
|
}));
|
|
12898
12946
|
}
|
|
12899
|
-
function
|
|
12947
|
+
function tN() {
|
|
12900
12948
|
var _a2;
|
|
12901
12949
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12902
12950
|
}
|
|
12903
|
-
function
|
|
12951
|
+
function nN() {
|
|
12904
12952
|
var _a2;
|
|
12905
12953
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12906
12954
|
}
|
|
12907
|
-
function
|
|
12908
|
-
let t2 =
|
|
12955
|
+
function rN(e2) {
|
|
12956
|
+
let t2 = nN()[e2];
|
|
12909
12957
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12910
12958
|
}
|
|
12911
|
-
function
|
|
12959
|
+
function iN(e2) {
|
|
12912
12960
|
var t2;
|
|
12913
|
-
let n2 =
|
|
12961
|
+
let n2 = tN(), i2 = nN(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12914
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));
|
|
12915
12963
|
}
|
|
12916
|
-
function
|
|
12964
|
+
function aN(e2) {
|
|
12917
12965
|
var _a2;
|
|
12918
|
-
let t2 = (_a2 =
|
|
12966
|
+
let t2 = (_a2 = tN()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12919
12967
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12920
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12968
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : iN(e2);
|
|
12921
12969
|
}
|
|
12922
|
-
let
|
|
12923
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12924
|
-
},
|
|
12925
|
-
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);
|
|
12926
12974
|
};
|
|
12927
12975
|
return import_react.createElement(Primitive.div, {
|
|
12928
12976
|
ref: t,
|
|
@@ -12936,27 +12984,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12936
12984
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12937
12985
|
case "n":
|
|
12938
12986
|
case "j":
|
|
12939
|
-
E && e2.ctrlKey &&
|
|
12987
|
+
E && e2.ctrlKey && sN(e2);
|
|
12940
12988
|
break;
|
|
12941
12989
|
case "ArrowDown":
|
|
12942
|
-
|
|
12990
|
+
sN(e2);
|
|
12943
12991
|
break;
|
|
12944
12992
|
case "p":
|
|
12945
12993
|
case "k":
|
|
12946
|
-
E && e2.ctrlKey &&
|
|
12994
|
+
E && e2.ctrlKey && cN(e2);
|
|
12947
12995
|
break;
|
|
12948
12996
|
case "ArrowUp":
|
|
12949
|
-
|
|
12997
|
+
cN(e2);
|
|
12950
12998
|
break;
|
|
12951
12999
|
case "Home":
|
|
12952
|
-
e2.preventDefault(),
|
|
13000
|
+
e2.preventDefault(), rN(0);
|
|
12953
13001
|
break;
|
|
12954
13002
|
case "End":
|
|
12955
|
-
e2.preventDefault(),
|
|
13003
|
+
e2.preventDefault(), oN();
|
|
12956
13004
|
break;
|
|
12957
13005
|
case "Enter": {
|
|
12958
13006
|
e2.preventDefault();
|
|
12959
|
-
let t3 =
|
|
13007
|
+
let t3 = tN();
|
|
12960
13008
|
if (t3) {
|
|
12961
13009
|
let e3 = new Event(Z);
|
|
12962
13010
|
t3.dispatchEvent(e3);
|
|
@@ -18946,7 +18994,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18946
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 }) {
|
|
18947
18995
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18948
18996
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18949
|
-
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)({
|
|
18950
18998
|
callbacks: {
|
|
18951
18999
|
onCollapse: f,
|
|
18952
19000
|
onExpand: h,
|
|
@@ -18959,7 +19007,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18959
19007
|
maxSize: c,
|
|
18960
19008
|
minSize: d
|
|
18961
19009
|
},
|
|
18962
|
-
id:
|
|
19010
|
+
id: $M,
|
|
18963
19011
|
idIsFromProps: s !== void 0,
|
|
18964
19012
|
order: v
|
|
18965
19013
|
});
|
|
@@ -18969,7 +19017,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18969
19017
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18970
19018
|
...t2
|
|
18971
19019
|
};
|
|
18972
|
-
$.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);
|
|
18973
19021
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18974
19022
|
let e2 = $.current;
|
|
18975
19023
|
return q(e2), () => {
|
|
@@ -18977,7 +19025,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18977
19025
|
};
|
|
18978
19026
|
}, [
|
|
18979
19027
|
v,
|
|
18980
|
-
|
|
19028
|
+
$M,
|
|
18981
19029
|
q,
|
|
18982
19030
|
Q
|
|
18983
19031
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18988,7 +19036,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18988
19036
|
A($.current, e2);
|
|
18989
19037
|
},
|
|
18990
19038
|
getId() {
|
|
18991
|
-
return
|
|
19039
|
+
return $M;
|
|
18992
19040
|
},
|
|
18993
19041
|
getSize() {
|
|
18994
19042
|
return M($.current);
|
|
@@ -19007,24 +19055,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19007
19055
|
A,
|
|
19008
19056
|
M,
|
|
19009
19057
|
U,
|
|
19010
|
-
|
|
19058
|
+
$M,
|
|
19011
19059
|
J
|
|
19012
19060
|
]);
|
|
19013
|
-
let
|
|
19061
|
+
let eN = I($.current, a);
|
|
19014
19062
|
return (0, import_react.createElement)(S, {
|
|
19015
19063
|
...w,
|
|
19016
19064
|
children: e,
|
|
19017
19065
|
className: t,
|
|
19018
|
-
id:
|
|
19066
|
+
id: $M,
|
|
19019
19067
|
style: {
|
|
19020
|
-
...
|
|
19068
|
+
...eN,
|
|
19021
19069
|
...y
|
|
19022
19070
|
},
|
|
19023
19071
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
19024
19072
|
[DATA_ATTRIBUTES.panel]: "",
|
|
19025
19073
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
19026
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
19027
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19074
|
+
[DATA_ATTRIBUTES.panelId]: $M,
|
|
19075
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + eN.flexGrow).toFixed(1)
|
|
19028
19076
|
});
|
|
19029
19077
|
}
|
|
19030
19078
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19797,7 +19845,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19797
19845
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19798
19846
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19799
19847
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19800
|
-
}, []),
|
|
19848
|
+
}, []), $M = (0, import_react.useCallback)((e2, t2) => {
|
|
19801
19849
|
let { panelDataArray: n2 } = K.current;
|
|
19802
19850
|
return computePanelFlexBoxStyle({
|
|
19803
19851
|
defaultSize: t2,
|
|
@@ -19812,10 +19860,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19812
19860
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19813
19861
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19814
19862
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19815
|
-
}, []),
|
|
19863
|
+
}, []), eN = (0, import_react.useCallback)((e2) => {
|
|
19816
19864
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19817
19865
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19818
|
-
}, []),
|
|
19866
|
+
}, []), tN = (0, import_react.useCallback)((e2) => {
|
|
19819
19867
|
let { panelDataArray: t2 } = K.current;
|
|
19820
19868
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19821
19869
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19847,7 +19895,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19847
19895
|
e2.layout = [];
|
|
19848
19896
|
};
|
|
19849
19897
|
}, []);
|
|
19850
|
-
let
|
|
19898
|
+
let nN = (0, import_react.useCallback)((e2) => {
|
|
19851
19899
|
let t2 = false, n2 = y.current;
|
|
19852
19900
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19853
19901
|
n3.preventDefault();
|
|
@@ -19865,7 +19913,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19865
19913
|
}), I2 = !compareLayouts(f2, A2);
|
|
19866
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));
|
|
19867
19915
|
};
|
|
19868
|
-
}, []),
|
|
19916
|
+
}, []), rN = (0, import_react.useCallback)((e2, t2) => {
|
|
19869
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);
|
|
19870
19918
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19871
19919
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19877,12 +19925,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19877
19925
|
trigger: "imperative-api"
|
|
19878
19926
|
});
|
|
19879
19927
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19880
|
-
}, []),
|
|
19928
|
+
}, []), iN = (0, import_react.useCallback)((e2, t2) => {
|
|
19881
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);
|
|
19882
|
-
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));
|
|
19883
19931
|
}, [
|
|
19884
|
-
|
|
19885
|
-
]),
|
|
19932
|
+
rN
|
|
19933
|
+
]), aN = (0, import_react.useCallback)((e2, t2) => {
|
|
19886
19934
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19887
19935
|
if (!y.current) return;
|
|
19888
19936
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19894,30 +19942,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19894
19942
|
initialCursorPosition: o2,
|
|
19895
19943
|
initialLayout: i2
|
|
19896
19944
|
});
|
|
19897
|
-
}, []),
|
|
19945
|
+
}, []), oN = (0, import_react.useCallback)(() => {
|
|
19898
19946
|
w(null);
|
|
19899
|
-
}, []),
|
|
19947
|
+
}, []), sN = (0, import_react.useCallback)((e2) => {
|
|
19900
19948
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19901
19949
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19902
19950
|
}, [
|
|
19903
19951
|
A
|
|
19904
|
-
]),
|
|
19952
|
+
]), cN = (0, import_react.useMemo)(() => ({
|
|
19905
19953
|
collapsePanel: q,
|
|
19906
19954
|
direction: i,
|
|
19907
19955
|
dragState: S,
|
|
19908
19956
|
expandPanel: J,
|
|
19909
19957
|
getPanelSize: Q,
|
|
19910
|
-
getPanelStyle:
|
|
19958
|
+
getPanelStyle: $M,
|
|
19911
19959
|
groupId: v,
|
|
19912
19960
|
isPanelCollapsed: $,
|
|
19913
|
-
isPanelExpanded:
|
|
19914
|
-
reevaluatePanelConstraints:
|
|
19915
|
-
registerPanel:
|
|
19916
|
-
registerResizeHandle:
|
|
19917
|
-
resizePanel:
|
|
19918
|
-
startDragging:
|
|
19919
|
-
stopDragging:
|
|
19920
|
-
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,
|
|
19921
19969
|
panelGroupElement: y.current
|
|
19922
19970
|
}), [
|
|
19923
19971
|
q,
|
|
@@ -19925,18 +19973,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19925
19973
|
i,
|
|
19926
19974
|
J,
|
|
19927
19975
|
Q,
|
|
19928
|
-
|
|
19976
|
+
$M,
|
|
19929
19977
|
v,
|
|
19930
19978
|
$,
|
|
19931
|
-
QM,
|
|
19932
|
-
nN,
|
|
19933
|
-
$M,
|
|
19934
19979
|
eN,
|
|
19980
|
+
iN,
|
|
19935
19981
|
tN,
|
|
19982
|
+
nN,
|
|
19936
19983
|
rN,
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
|
|
19984
|
+
aN,
|
|
19985
|
+
oN,
|
|
19986
|
+
sN
|
|
19987
|
+
]), lN = {
|
|
19940
19988
|
display: "flex",
|
|
19941
19989
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19942
19990
|
height: "100%",
|
|
@@ -19944,7 +19992,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19944
19992
|
width: "100%"
|
|
19945
19993
|
};
|
|
19946
19994
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19947
|
-
value:
|
|
19995
|
+
value: cN
|
|
19948
19996
|
}, (0, import_react.createElement)(h, {
|
|
19949
19997
|
..._,
|
|
19950
19998
|
children: t,
|
|
@@ -19952,7 +20000,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19952
20000
|
id: o,
|
|
19953
20001
|
ref: y,
|
|
19954
20002
|
style: {
|
|
19955
|
-
...
|
|
20003
|
+
...lN,
|
|
19956
20004
|
...f
|
|
19957
20005
|
},
|
|
19958
20006
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -20029,31 +20077,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20029
20077
|
});
|
|
20030
20078
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20031
20079
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20032
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
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)({
|
|
20033
20081
|
state: J
|
|
20034
20082
|
});
|
|
20035
20083
|
useIsomorphicLayoutEffect$1(() => {
|
|
20036
|
-
|
|
20084
|
+
nN.current.state = J;
|
|
20037
20085
|
}), (0, import_react.useEffect)(() => {
|
|
20038
|
-
if (n)
|
|
20086
|
+
if (n) tN(null);
|
|
20039
20087
|
else {
|
|
20040
20088
|
let e2 = I(q);
|
|
20041
|
-
|
|
20089
|
+
tN(() => e2);
|
|
20042
20090
|
}
|
|
20043
20091
|
}, [
|
|
20044
20092
|
n,
|
|
20045
20093
|
q,
|
|
20046
20094
|
I
|
|
20047
20095
|
]);
|
|
20048
|
-
let
|
|
20096
|
+
let rN = (i == null ? void 0 : i.coarse) ?? 15, iN = (i == null ? void 0 : i.fine) ?? 5;
|
|
20049
20097
|
(0, import_react.useEffect)(() => {
|
|
20050
|
-
if (n ||
|
|
20098
|
+
if (n || eN == null) return;
|
|
20051
20099
|
let e2 = w.current;
|
|
20052
20100
|
assert(e2, "Element ref not attached");
|
|
20053
20101
|
let t2 = false;
|
|
20054
20102
|
return registerResizeHandle(q, e2, A, {
|
|
20055
|
-
coarse:
|
|
20056
|
-
fine:
|
|
20103
|
+
coarse: rN,
|
|
20104
|
+
fine: iN
|
|
20057
20105
|
}, (e3, n2, i2) => {
|
|
20058
20106
|
if (!n2) {
|
|
20059
20107
|
Q("inactive");
|
|
@@ -20067,8 +20115,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20067
20115
|
break;
|
|
20068
20116
|
}
|
|
20069
20117
|
case "move": {
|
|
20070
|
-
let { state: e4 } =
|
|
20071
|
-
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);
|
|
20072
20120
|
break;
|
|
20073
20121
|
}
|
|
20074
20122
|
case "up": {
|
|
@@ -20080,22 +20128,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20080
20128
|
}
|
|
20081
20129
|
});
|
|
20082
20130
|
}, [
|
|
20083
|
-
|
|
20131
|
+
rN,
|
|
20084
20132
|
A,
|
|
20085
20133
|
n,
|
|
20086
|
-
|
|
20134
|
+
iN,
|
|
20087
20135
|
I,
|
|
20088
20136
|
q,
|
|
20089
|
-
|
|
20137
|
+
eN,
|
|
20090
20138
|
z,
|
|
20091
20139
|
U
|
|
20092
20140
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20093
20141
|
disabled: n,
|
|
20094
20142
|
handleId: q,
|
|
20095
|
-
resizeHandler:
|
|
20143
|
+
resizeHandler: eN,
|
|
20096
20144
|
panelGroupElement: K
|
|
20097
20145
|
});
|
|
20098
|
-
let
|
|
20146
|
+
let aN = {
|
|
20099
20147
|
touchAction: "none",
|
|
20100
20148
|
userSelect: "none"
|
|
20101
20149
|
};
|
|
@@ -20113,14 +20161,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20113
20161
|
ref: w,
|
|
20114
20162
|
role: "separator",
|
|
20115
20163
|
style: {
|
|
20116
|
-
...
|
|
20164
|
+
...aN,
|
|
20117
20165
|
..._
|
|
20118
20166
|
},
|
|
20119
20167
|
tabIndex: v,
|
|
20120
20168
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20121
20169
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20122
20170
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20123
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20171
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : $M ? "keyboard" : void 0,
|
|
20124
20172
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20125
20173
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20126
20174
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -20287,147 +20335,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20287
20335
|
Combobox = (e) => {
|
|
20288
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;
|
|
20289
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);
|
|
20290
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20291
|
-
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 = {
|
|
20292
20340
|
prop: w,
|
|
20293
|
-
defaultProp:
|
|
20341
|
+
defaultProp: tN,
|
|
20294
20342
|
onChange: v
|
|
20295
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20296
|
-
let [
|
|
20297
|
-
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) => {
|
|
20298
20346
|
S == null ? void 0 : S(e2);
|
|
20299
|
-
}, t[27] = S, t[28] =
|
|
20300
|
-
let
|
|
20301
|
-
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 = {
|
|
20302
20350
|
prop: q,
|
|
20303
20351
|
defaultProp: c,
|
|
20304
|
-
onChange:
|
|
20305
|
-
}, t[29] = c, t[30] =
|
|
20306
|
-
let [
|
|
20307
|
-
t[33] ===
|
|
20308
|
-
let
|
|
20309
|
-
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) => {
|
|
20310
20358
|
let t2 = e2;
|
|
20311
|
-
if (J) if (Array.isArray(
|
|
20312
|
-
let n2 =
|
|
20359
|
+
if (J) if (Array.isArray(lN)) if (lN.includes(t2)) {
|
|
20360
|
+
let n2 = lN.filter((t3) => t3 !== e2);
|
|
20313
20361
|
t2 = n2.length > 0 ? n2 : [];
|
|
20314
20362
|
} else t2 = [
|
|
20315
|
-
...
|
|
20363
|
+
...lN,
|
|
20316
20364
|
t2
|
|
20317
20365
|
];
|
|
20318
20366
|
else t2 = [
|
|
20319
20367
|
t2
|
|
20320
20368
|
];
|
|
20321
|
-
else
|
|
20322
|
-
|
|
20323
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20324
|
-
let fN = dN, pN;
|
|
20325
|
-
t[41] !== QM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== sN ? (pN = () => J && QM && E ? E : sN == null ? E ?? "--" : Array.isArray(sN) ? sN.length === 0 ? E ?? "--" : sN.length === 1 && d !== void 0 ? d(sN[0]) : `${sN.length} selected` : d === void 0 ? E ?? "--" : d(sN), t[41] = QM, t[42] = d, t[43] = J, t[44] = E, t[45] = sN, t[46] = pN) : pN = t[46];
|
|
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];
|
|
20326
20372
|
let mN = pN, hN;
|
|
20327
|
-
t[
|
|
20328
|
-
let gN;
|
|
20329
|
-
t[
|
|
20330
|
-
let _N;
|
|
20331
|
-
t[50] === mN ? _N = t[51] : (_N = mN(), t[50] = mN, t[51] = _N);
|
|
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];
|
|
20332
20376
|
let vN;
|
|
20333
|
-
t[
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
}), t[52] = _N, t[53] = 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);
|
|
20337
20380
|
let bN;
|
|
20338
|
-
t[
|
|
20381
|
+
t[52] === yN ? bN = t[53] : (bN = (0, import_jsx_runtime.jsx)("span", {
|
|
20382
|
+
className: "truncate flex-1 min-w-0",
|
|
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, {
|
|
20339
20387
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20340
|
-
}), t[54] =
|
|
20341
|
-
let
|
|
20342
|
-
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, {
|
|
20343
20391
|
asChild: true,
|
|
20344
20392
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20345
20393
|
id: h,
|
|
20346
|
-
className:
|
|
20347
|
-
"aria-expanded":
|
|
20394
|
+
className: vN,
|
|
20395
|
+
"aria-expanded": aN,
|
|
20348
20396
|
children: [
|
|
20349
|
-
|
|
20350
|
-
|
|
20397
|
+
bN,
|
|
20398
|
+
SN
|
|
20351
20399
|
]
|
|
20352
20400
|
})
|
|
20353
|
-
}), t[55] = h, t[56] =
|
|
20354
|
-
let
|
|
20355
|
-
t[60] !==
|
|
20356
|
-
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,
|
|
20357
20405
|
rootClassName: "px-1 h-8",
|
|
20358
20406
|
autoFocus: true,
|
|
20359
20407
|
value: A,
|
|
20360
20408
|
onValueChange: y
|
|
20361
|
-
}), t[60] =
|
|
20362
|
-
let wN;
|
|
20363
|
-
t[64] === $ ? wN = t[65] : (wN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20364
|
-
children: $
|
|
20365
|
-
}), t[64] = $, t[65] = wN);
|
|
20366
|
-
let TN;
|
|
20367
|
-
t[66] !== fN || t[67] !== uN ? (TN = {
|
|
20368
|
-
isSelected: uN,
|
|
20369
|
-
onSelect: fN
|
|
20370
|
-
}, t[66] = fN, t[67] = uN, t[68] = TN) : TN = t[68];
|
|
20409
|
+
}), t[60] = $M, t[61] = y, t[62] = A, t[63] = TN) : TN = t[63];
|
|
20371
20410
|
let EN;
|
|
20372
|
-
t[
|
|
20373
|
-
|
|
20374
|
-
|
|
20375
|
-
}), t[69] = n, t[70] = TN, t[71] = EN) : EN = t[71];
|
|
20411
|
+
t[64] === $ ? EN = t[65] : (EN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20412
|
+
children: $
|
|
20413
|
+
}), t[64] = $, t[65] = EN);
|
|
20376
20414
|
let DN;
|
|
20377
|
-
t[
|
|
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,
|
|
20422
|
+
children: n
|
|
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, {
|
|
20378
20426
|
className: "max-h-60 py-.5",
|
|
20379
20427
|
children: [
|
|
20380
|
-
|
|
20381
|
-
|
|
20428
|
+
EN,
|
|
20429
|
+
ON
|
|
20382
20430
|
]
|
|
20383
|
-
}), t[72] =
|
|
20384
|
-
let
|
|
20385
|
-
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, {
|
|
20386
20434
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20387
20435
|
align: "start",
|
|
20388
20436
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20389
20437
|
filter: f,
|
|
20390
20438
|
shouldFilter: Q,
|
|
20391
20439
|
children: [
|
|
20392
|
-
|
|
20393
|
-
|
|
20440
|
+
TN,
|
|
20441
|
+
kN
|
|
20394
20442
|
]
|
|
20395
20443
|
})
|
|
20396
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20397
|
-
let
|
|
20398
|
-
t[80] !==
|
|
20399
|
-
open:
|
|
20400
|
-
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,
|
|
20401
20449
|
children: [
|
|
20402
|
-
|
|
20403
|
-
|
|
20450
|
+
CN,
|
|
20451
|
+
AN
|
|
20404
20452
|
]
|
|
20405
|
-
}), t[80] =
|
|
20406
|
-
let
|
|
20407
|
-
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", {
|
|
20408
20456
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20409
|
-
children: Array.isArray(
|
|
20457
|
+
children: Array.isArray(lN) && lN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20410
20458
|
variant: "secondary",
|
|
20411
20459
|
children: [
|
|
20412
20460
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20413
20461
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20414
20462
|
onClick: () => {
|
|
20415
|
-
|
|
20463
|
+
mN(e2);
|
|
20416
20464
|
},
|
|
20417
20465
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20418
20466
|
})
|
|
20419
20467
|
]
|
|
20420
20468
|
}, String(e2)))
|
|
20421
|
-
}), t[85] =
|
|
20422
|
-
let
|
|
20423
|
-
return t[92] !== O || t[93] !==
|
|
20424
|
-
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,
|
|
20425
20473
|
...O,
|
|
20426
20474
|
children: [
|
|
20427
|
-
|
|
20428
|
-
|
|
20475
|
+
jN,
|
|
20476
|
+
MN
|
|
20429
20477
|
]
|
|
20430
|
-
}), t[92] = O, t[93] =
|
|
20478
|
+
}), t[92] = O, t[93] = jN, t[94] = MN, t[95] = NN) : NN = t[95], NN;
|
|
20431
20479
|
};
|
|
20432
20480
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20433
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), _;
|
|
@@ -23454,7 +23502,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23454
23502
|
filename: i2.filename
|
|
23455
23503
|
};
|
|
23456
23504
|
}, t[5] = e, t[6] = v);
|
|
23457
|
-
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, $;
|
|
23458
23506
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23459
23507
|
let e2 = async (t2) => {
|
|
23460
23508
|
let n2 = await y(t2, () => {
|
|
@@ -23511,7 +23559,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23511
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, {
|
|
23512
23560
|
className: "text-xs text-muted-foreground",
|
|
23513
23561
|
children: "Download"
|
|
23514
|
-
}), t[29] = Q) : Q = t[29],
|
|
23562
|
+
}), t[29] = Q) : Q = t[29], $M = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23515
23563
|
onSelect: () => {
|
|
23516
23564
|
e2(t2.format);
|
|
23517
23565
|
},
|
|
@@ -23564,30 +23612,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23564
23612
|
]
|
|
23565
23613
|
})
|
|
23566
23614
|
]
|
|
23567
|
-
}, 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] =
|
|
23568
|
-
} 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],
|
|
23569
|
-
let
|
|
23570
|
-
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, {
|
|
23571
23619
|
side: q,
|
|
23572
23620
|
className: J,
|
|
23573
23621
|
children: [
|
|
23574
23622
|
Q,
|
|
23575
|
-
|
|
23623
|
+
$M,
|
|
23576
23624
|
$,
|
|
23577
23625
|
A,
|
|
23578
23626
|
M
|
|
23579
23627
|
]
|
|
23580
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23581
|
-
let
|
|
23582
|
-
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, {
|
|
23583
23631
|
modal: I,
|
|
23584
23632
|
open: z,
|
|
23585
23633
|
onOpenChange: U,
|
|
23586
23634
|
children: [
|
|
23587
23635
|
K,
|
|
23588
|
-
|
|
23636
|
+
eN
|
|
23589
23637
|
]
|
|
23590
|
-
}), 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;
|
|
23591
23639
|
};
|
|
23592
23640
|
function fetchJson(e) {
|
|
23593
23641
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23678,22 +23726,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23678
23726
|
]
|
|
23679
23727
|
}) : null;
|
|
23680
23728
|
};
|
|
23681
|
-
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:
|
|
23682
|
-
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);
|
|
23683
23731
|
import_react.useEffect(() => {
|
|
23684
23732
|
let e2;
|
|
23685
|
-
return
|
|
23686
|
-
|
|
23687
|
-
}, 300) :
|
|
23733
|
+
return iN ? e2 = setTimeout(() => {
|
|
23734
|
+
vN(true);
|
|
23735
|
+
}, 300) : vN(false), () => {
|
|
23688
23736
|
e2 && clearTimeout(e2);
|
|
23689
23737
|
};
|
|
23690
23738
|
}, [
|
|
23691
|
-
|
|
23739
|
+
iN
|
|
23692
23740
|
]);
|
|
23693
|
-
function
|
|
23741
|
+
function SN(e2, t2) {
|
|
23694
23742
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23695
23743
|
}
|
|
23696
|
-
let
|
|
23744
|
+
let CN = useReactTable({
|
|
23697
23745
|
_features: [
|
|
23698
23746
|
ColumnPinning,
|
|
23699
23747
|
ColumnWrappingFeature,
|
|
@@ -23717,11 +23765,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23717
23765
|
getRowId: (e2, t2) => {
|
|
23718
23766
|
let n2 = getStableRowId(e2);
|
|
23719
23767
|
if (n2) return n2;
|
|
23720
|
-
let i2 =
|
|
23768
|
+
let i2 = SN(e2, t2);
|
|
23721
23769
|
return String(i2);
|
|
23722
23770
|
}
|
|
23723
23771
|
} : {},
|
|
23724
|
-
locale:
|
|
23772
|
+
locale: yN,
|
|
23725
23773
|
manualPagination: z,
|
|
23726
23774
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23727
23775
|
...v ? {
|
|
@@ -23731,21 +23779,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23731
23779
|
enableMultiSort: true,
|
|
23732
23780
|
getSortedRowModel: getSortedRowModel(),
|
|
23733
23781
|
manualFiltering: true,
|
|
23734
|
-
enableColumnFilters:
|
|
23782
|
+
enableColumnFilters: eN,
|
|
23735
23783
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23736
|
-
onColumnFiltersChange:
|
|
23784
|
+
onColumnFiltersChange: nN,
|
|
23737
23785
|
onRowSelectionChange: K,
|
|
23738
23786
|
onCellSelectionChange: q,
|
|
23739
23787
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23740
23788
|
enableMultiCellSelection: c === "multi-cell",
|
|
23741
|
-
onColumnPinningChange:
|
|
23789
|
+
onColumnPinningChange: xN,
|
|
23742
23790
|
enableFocusRow: true,
|
|
23743
|
-
onFocusRowChange:
|
|
23791
|
+
onFocusRowChange: gN,
|
|
23744
23792
|
state: {
|
|
23745
23793
|
..._ ? {
|
|
23746
23794
|
sorting: _
|
|
23747
23795
|
} : {},
|
|
23748
|
-
columnFilters:
|
|
23796
|
+
columnFilters: tN,
|
|
23749
23797
|
...A ? {
|
|
23750
23798
|
pagination: A
|
|
23751
23799
|
} : U && !A ? {} : {
|
|
@@ -23757,21 +23805,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23757
23805
|
rowSelection: y ?? {},
|
|
23758
23806
|
cellSelection: S ?? [],
|
|
23759
23807
|
cellStyling: w,
|
|
23760
|
-
columnPinning:
|
|
23808
|
+
columnPinning: bN,
|
|
23761
23809
|
cellHoverTemplate: E,
|
|
23762
23810
|
cellHoverTexts: O ?? {}
|
|
23763
23811
|
}
|
|
23764
|
-
}),
|
|
23812
|
+
}), wN = (pN == null ? void 0 : pN(PANEL_TYPES.ROW_VIEWER)) ?? false, TN = !U && o.length > 100, EN = useScrollContainerHeight({
|
|
23765
23813
|
maxHeight: n,
|
|
23766
|
-
virtualize:
|
|
23814
|
+
virtualize: TN
|
|
23767
23815
|
});
|
|
23768
23816
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23769
23817
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23770
23818
|
children: [
|
|
23771
23819
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23772
|
-
filters:
|
|
23773
|
-
table:
|
|
23774
|
-
calculateTopKRows:
|
|
23820
|
+
filters: tN,
|
|
23821
|
+
table: CN,
|
|
23822
|
+
calculateTopKRows: rN
|
|
23775
23823
|
}),
|
|
23776
23824
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23777
23825
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23780,32 +23828,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23780
23828
|
children: [
|
|
23781
23829
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23782
23830
|
enableSearch: Q,
|
|
23783
|
-
searchQuery:
|
|
23831
|
+
searchQuery: $M,
|
|
23784
23832
|
onSearchQueryChange: $,
|
|
23785
|
-
reloading:
|
|
23786
|
-
showChartBuilder:
|
|
23787
|
-
isChartBuilderOpen:
|
|
23788
|
-
toggleDisplayHeader:
|
|
23789
|
-
showTableExplorer:
|
|
23790
|
-
togglePanel:
|
|
23791
|
-
isAnyPanelOpen:
|
|
23833
|
+
reloading: iN,
|
|
23834
|
+
showChartBuilder: cN,
|
|
23835
|
+
isChartBuilderOpen: lN,
|
|
23836
|
+
toggleDisplayHeader: sN,
|
|
23837
|
+
showTableExplorer: dN,
|
|
23838
|
+
togglePanel: fN,
|
|
23839
|
+
isAnyPanelOpen: mN,
|
|
23792
23840
|
downloadAs: I
|
|
23793
23841
|
}),
|
|
23794
23842
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23795
23843
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23796
|
-
ref:
|
|
23844
|
+
ref: EN,
|
|
23797
23845
|
children: [
|
|
23798
|
-
|
|
23846
|
+
_N && (0, import_jsx_runtime.jsx)("thead", {
|
|
23799
23847
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23800
23848
|
}),
|
|
23801
|
-
renderTableHeader(
|
|
23849
|
+
renderTableHeader(CN, TN || !!n),
|
|
23802
23850
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23803
|
-
table:
|
|
23851
|
+
table: CN,
|
|
23804
23852
|
columns: i,
|
|
23805
|
-
rowViewerPanelOpen:
|
|
23806
|
-
getRowIndex:
|
|
23807
|
-
viewedRowIdx:
|
|
23808
|
-
virtualize:
|
|
23853
|
+
rowViewerPanelOpen: wN,
|
|
23854
|
+
getRowIndex: SN,
|
|
23855
|
+
viewedRowIdx: hN,
|
|
23856
|
+
virtualize: TN
|
|
23809
23857
|
})
|
|
23810
23858
|
]
|
|
23811
23859
|
}),
|
|
@@ -23816,10 +23864,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23816
23864
|
pagination: U,
|
|
23817
23865
|
selection: c,
|
|
23818
23866
|
onRowSelectionChange: K,
|
|
23819
|
-
table:
|
|
23867
|
+
table: CN,
|
|
23820
23868
|
getRowIds: J,
|
|
23821
|
-
showPageSizeSelector:
|
|
23822
|
-
tableLoading:
|
|
23869
|
+
showPageSizeSelector: uN,
|
|
23870
|
+
tableLoading: iN
|
|
23823
23871
|
})
|
|
23824
23872
|
]
|
|
23825
23873
|
})
|
|
@@ -23909,67 +23957,67 @@ ${_}`,
|
|
|
23909
23957
|
});
|
|
23910
23958
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23911
23959
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$3), t[10] = $) : $ = t[10];
|
|
23912
|
-
let
|
|
23913
|
-
t[11] ===
|
|
23914
|
-
let
|
|
23915
|
-
t[13] ===
|
|
23916
|
-
className:
|
|
23917
|
-
}), t[13] =
|
|
23918
|
-
let
|
|
23919
|
-
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", {
|
|
23920
23968
|
className: "text-destructive",
|
|
23921
23969
|
children: [
|
|
23922
|
-
|
|
23970
|
+
rN,
|
|
23923
23971
|
":"
|
|
23924
23972
|
]
|
|
23925
|
-
}), t[15] =
|
|
23926
|
-
let
|
|
23927
|
-
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", {
|
|
23928
23976
|
className: "text-sm inline font-mono",
|
|
23929
23977
|
children: [
|
|
23930
|
-
|
|
23978
|
+
iN,
|
|
23931
23979
|
" ",
|
|
23932
23980
|
J
|
|
23933
23981
|
]
|
|
23934
|
-
}), t[17] = J, t[18] =
|
|
23935
|
-
let
|
|
23936
|
-
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", {
|
|
23937
23985
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23938
23986
|
onClick: $,
|
|
23939
23987
|
children: [
|
|
23940
|
-
|
|
23941
|
-
|
|
23988
|
+
nN,
|
|
23989
|
+
aN
|
|
23942
23990
|
]
|
|
23943
|
-
}), t[20] =
|
|
23944
|
-
let
|
|
23945
|
-
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, {
|
|
23946
23994
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23947
23995
|
children: c
|
|
23948
|
-
}), t[23] = c, t[24] =
|
|
23949
|
-
let
|
|
23950
|
-
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, {
|
|
23951
23999
|
value: KEY,
|
|
23952
24000
|
className: "border-none",
|
|
23953
24001
|
children: [
|
|
23954
|
-
|
|
23955
|
-
|
|
24002
|
+
sN,
|
|
24003
|
+
cN
|
|
23956
24004
|
]
|
|
23957
|
-
}), t[25] =
|
|
23958
|
-
let
|
|
23959
|
-
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, {
|
|
23960
24008
|
type: "single",
|
|
23961
24009
|
collapsible: true,
|
|
23962
24010
|
value: Q,
|
|
23963
|
-
children:
|
|
23964
|
-
}), t[28] =
|
|
23965
|
-
let
|
|
23966
|
-
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, {
|
|
23967
24015
|
tooltip: "Fix with AI",
|
|
23968
24016
|
openPrompt: () => K(false),
|
|
23969
24017
|
applyAutofix: () => K(true)
|
|
23970
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
23971
|
-
let
|
|
23972
|
-
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, {
|
|
23973
24021
|
content: "Attach pdb to the exception point.",
|
|
23974
24022
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
23975
24023
|
size: "xs",
|
|
@@ -23986,9 +24034,9 @@ ${_}`,
|
|
|
23986
24034
|
"Launch debugger"
|
|
23987
24035
|
]
|
|
23988
24036
|
})
|
|
23989
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
23990
|
-
let
|
|
23991
|
-
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, {
|
|
23992
24040
|
children: [
|
|
23993
24041
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
23994
24042
|
asChild: true,
|
|
@@ -24056,24 +24104,24 @@ ${_}`,
|
|
|
24056
24104
|
]
|
|
24057
24105
|
})
|
|
24058
24106
|
]
|
|
24059
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24060
|
-
let
|
|
24061
|
-
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", {
|
|
24062
24110
|
className: "flex gap-2",
|
|
24063
24111
|
children: [
|
|
24064
|
-
uN,
|
|
24065
24112
|
fN,
|
|
24066
|
-
|
|
24113
|
+
mN,
|
|
24114
|
+
hN
|
|
24067
24115
|
]
|
|
24068
|
-
}), t[40] =
|
|
24069
|
-
let
|
|
24070
|
-
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", {
|
|
24071
24119
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24072
24120
|
children: [
|
|
24073
|
-
|
|
24074
|
-
|
|
24121
|
+
dN,
|
|
24122
|
+
gN
|
|
24075
24123
|
]
|
|
24076
|
-
}), t[44] =
|
|
24124
|
+
}), t[44] = dN, t[45] = gN, t[46] = _N) : _N = t[46], _N;
|
|
24077
24125
|
};
|
|
24078
24126
|
function lastLine(e) {
|
|
24079
24127
|
var _a2, _b;
|
|
@@ -24408,7 +24456,7 @@ ${_}`,
|
|
|
24408
24456
|
let d2 = f && "mt-4", M2;
|
|
24409
24457
|
t[13] === d2 ? M2 = t[14] : (M2 = cn("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0", d2), t[13] = d2, t[14] = M2), w = (0, import_jsx_runtime.jsx)(TabsList, {
|
|
24410
24458
|
className: M2,
|
|
24411
|
-
children: e2.map(_temp3)
|
|
24459
|
+
children: e2.map(_temp3$1)
|
|
24412
24460
|
}), v = "flex-1 w-full";
|
|
24413
24461
|
let I2;
|
|
24414
24462
|
t[15] !== s || t[16] !== o || t[17] !== h ? (I2 = (e3) => {
|
|
@@ -24583,7 +24631,7 @@ ${_}`,
|
|
|
24583
24631
|
n
|
|
24584
24632
|
];
|
|
24585
24633
|
}
|
|
24586
|
-
function _temp3(e) {
|
|
24634
|
+
function _temp3$1(e) {
|
|
24587
24635
|
let [t] = e;
|
|
24588
24636
|
return (0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
24589
24637
|
value: t,
|
|
@@ -25131,7 +25179,7 @@ ${_}`,
|
|
|
25131
25179
|
description: "Zoom into the next slide."
|
|
25132
25180
|
}
|
|
25133
25181
|
], SlidesForm = (e) => {
|
|
25134
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
25182
|
+
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
25135
25183
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25136
25184
|
className: "grid grid-cols-2",
|
|
25137
25185
|
children: [
|
|
@@ -25164,16 +25212,64 @@ ${_}`,
|
|
|
25164
25212
|
setLayout: i
|
|
25165
25213
|
})
|
|
25166
25214
|
}), t[5] = n, t[6] = i, t[7] = c) : c = t[7];
|
|
25167
|
-
let d;
|
|
25168
|
-
|
|
25215
|
+
let d, f;
|
|
25216
|
+
t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)("hr", {}), f = (0, import_jsx_runtime.jsx)(KeyboardTips, {}), t[8] = d, t[9] = f) : (d = t[8], f = t[9]);
|
|
25217
|
+
let h;
|
|
25218
|
+
return t[10] !== s || t[11] !== c ? (h = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
25169
25219
|
defaultValue: "slide",
|
|
25170
25220
|
className: "flex flex-col flex-1 p-3 gap-3",
|
|
25171
25221
|
children: [
|
|
25172
25222
|
o,
|
|
25173
25223
|
s,
|
|
25174
|
-
c
|
|
25224
|
+
c,
|
|
25225
|
+
d,
|
|
25226
|
+
f
|
|
25175
25227
|
]
|
|
25176
|
-
}), t[
|
|
25228
|
+
}), t[10] = s, t[11] = c, t[12] = h) : h = t[12], h;
|
|
25229
|
+
}, KEYBOARD_TIPS = [
|
|
25230
|
+
{
|
|
25231
|
+
keys: [
|
|
25232
|
+
"F"
|
|
25233
|
+
],
|
|
25234
|
+
description: "Enter fullscreen"
|
|
25235
|
+
},
|
|
25236
|
+
{
|
|
25237
|
+
keys: [
|
|
25238
|
+
"C"
|
|
25239
|
+
],
|
|
25240
|
+
description: "Toggle code editor"
|
|
25241
|
+
}
|
|
25242
|
+
], KEYBOARD_SHORTCUTS_URL = "https://vlaaad.github.io/reveal/keyboard-shortcuts", KeyboardTips = () => {
|
|
25243
|
+
let e = (0, import_compiler_runtime$1.c)(2), t;
|
|
25244
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
25245
|
+
className: "flex items-center gap-1.5 font-medium text-foreground/80",
|
|
25246
|
+
children: [
|
|
25247
|
+
(0, import_jsx_runtime.jsx)(Keyboard, {
|
|
25248
|
+
className: "h-3.5 w-3.5"
|
|
25249
|
+
}),
|
|
25250
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25251
|
+
children: "Shortcuts"
|
|
25252
|
+
})
|
|
25253
|
+
]
|
|
25254
|
+
}), e[0] = t) : t = e[0];
|
|
25255
|
+
let n;
|
|
25256
|
+
return e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = (0, import_jsx_runtime.jsxs)("div", {
|
|
25257
|
+
className: "flex flex-col gap-2 text-xs text-muted-foreground",
|
|
25258
|
+
children: [
|
|
25259
|
+
t,
|
|
25260
|
+
(0, import_jsx_runtime.jsx)("ul", {
|
|
25261
|
+
className: "flex flex-col gap-1.5",
|
|
25262
|
+
children: KEYBOARD_TIPS.map(_temp2)
|
|
25263
|
+
}),
|
|
25264
|
+
(0, import_jsx_runtime.jsx)("a", {
|
|
25265
|
+
href: KEYBOARD_SHORTCUTS_URL,
|
|
25266
|
+
target: "_blank",
|
|
25267
|
+
rel: "noopener noreferrer",
|
|
25268
|
+
className: "text-link hover:underline",
|
|
25269
|
+
children: "See all shortcuts"
|
|
25270
|
+
})
|
|
25271
|
+
]
|
|
25272
|
+
}), e[1] = n) : n = e[1], n;
|
|
25177
25273
|
}, SlideConfigForm = (e) => {
|
|
25178
25274
|
var _a2;
|
|
25179
25275
|
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
|
|
@@ -25269,7 +25365,7 @@ ${_}`,
|
|
|
25269
25365
|
}), t[8] = _) : _ = t[8];
|
|
25270
25366
|
let v;
|
|
25271
25367
|
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
25272
|
-
children: DECK_TRANSITION_OPTIONS.map(
|
|
25368
|
+
children: DECK_TRANSITION_OPTIONS.map(_temp3)
|
|
25273
25369
|
}), t[9] = v) : v = t[9];
|
|
25274
25370
|
let y;
|
|
25275
25371
|
t[10] !== a || t[11] !== h ? (y = (0, import_jsx_runtime.jsxs)(Select, {
|
|
@@ -25367,7 +25463,7 @@ ${_}`,
|
|
|
25367
25463
|
className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
|
|
25368
25464
|
style: _,
|
|
25369
25465
|
"aria-label": "Slide configuration",
|
|
25370
|
-
onKeyDown:
|
|
25466
|
+
onKeyDown: _temp4,
|
|
25371
25467
|
children: [
|
|
25372
25468
|
I,
|
|
25373
25469
|
z
|
|
@@ -25375,13 +25471,33 @@ ${_}`,
|
|
|
25375
25471
|
}), t[26] = I, t[27] = z, t[28] = _, t[29] = U) : U = t[29], U;
|
|
25376
25472
|
};
|
|
25377
25473
|
function _temp$1(e) {
|
|
25474
|
+
return (0, import_jsx_runtime.jsx)(Kbd, {
|
|
25475
|
+
children: e
|
|
25476
|
+
}, e);
|
|
25477
|
+
}
|
|
25478
|
+
function _temp2(e) {
|
|
25479
|
+
let { keys: t, description: n } = e;
|
|
25480
|
+
return (0, import_jsx_runtime.jsxs)("li", {
|
|
25481
|
+
className: "flex items-center justify-between",
|
|
25482
|
+
children: [
|
|
25483
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25484
|
+
children: n
|
|
25485
|
+
}),
|
|
25486
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25487
|
+
className: "flex gap-1",
|
|
25488
|
+
children: t.map(_temp$1)
|
|
25489
|
+
})
|
|
25490
|
+
]
|
|
25491
|
+
}, n);
|
|
25492
|
+
}
|
|
25493
|
+
function _temp3(e) {
|
|
25378
25494
|
let { value: t, label: n } = e;
|
|
25379
25495
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
25380
25496
|
value: t,
|
|
25381
25497
|
children: n
|
|
25382
25498
|
}, t);
|
|
25383
25499
|
}
|
|
25384
|
-
function
|
|
25500
|
+
function _temp4(e) {
|
|
25385
25501
|
return e.stopPropagation();
|
|
25386
25502
|
}
|
|
25387
25503
|
function getVersionFromMountConfig() {
|
|
@@ -25391,7 +25507,7 @@ ${_}`,
|
|
|
25391
25507
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
25392
25508
|
}
|
|
25393
25509
|
}
|
|
25394
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6
|
|
25510
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6");
|
|
25395
25511
|
showCodeInRunModeAtom = atom(true);
|
|
25396
25512
|
atom(null);
|
|
25397
25513
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -25421,44 +25537,42 @@ ${_}`,
|
|
|
25421
25537
|
export {
|
|
25422
25538
|
getPageIndexForRow as $,
|
|
25423
25539
|
contextAwarePanelType as A,
|
|
25424
|
-
|
|
25540
|
+
EyeOff as At,
|
|
25425
25541
|
TableHead as B,
|
|
25426
|
-
|
|
25542
|
+
ArrowDownWideNarrow as Bt,
|
|
25427
25543
|
useInternalStateWithSync as C,
|
|
25428
25544
|
RenderTextWithLinks as Ct,
|
|
25429
25545
|
PANEL_TYPES as D,
|
|
25430
|
-
|
|
25546
|
+
TextWrap as Dt,
|
|
25431
25547
|
ContextAwarePanelItem as E,
|
|
25432
25548
|
EmotionCacheProvider as Et,
|
|
25433
25549
|
Fill as F,
|
|
25434
|
-
|
|
25550
|
+
ChevronsUpDown as Ft,
|
|
25435
25551
|
inferFieldTypes as G,
|
|
25436
25552
|
TableRow as H,
|
|
25437
|
-
ArrowDownWideNarrow as Ht,
|
|
25438
25553
|
Provider$1 as I,
|
|
25439
|
-
|
|
25554
|
+
ChevronsRight as It,
|
|
25440
25555
|
ColumnChartSpecModel as J,
|
|
25441
25556
|
renderCellValue as K,
|
|
25442
25557
|
Table as L,
|
|
25443
|
-
|
|
25558
|
+
ChevronsLeft as Lt,
|
|
25444
25559
|
SlotNames as M,
|
|
25445
|
-
|
|
25560
|
+
Ellipsis as Mt,
|
|
25446
25561
|
slotsController as N,
|
|
25447
|
-
|
|
25562
|
+
Download as Nt,
|
|
25448
25563
|
contextAwarePanelOpen as O,
|
|
25449
|
-
|
|
25564
|
+
GripHorizontal as Ot,
|
|
25450
25565
|
Toggle as P,
|
|
25451
|
-
|
|
25566
|
+
Code as Pt,
|
|
25452
25567
|
filtersToFilterGroup as Q,
|
|
25453
25568
|
TableBody as R,
|
|
25454
|
-
|
|
25569
|
+
ChevronsDownUp as Rt,
|
|
25455
25570
|
prettifyRowCount as S,
|
|
25456
25571
|
useOverflowDetection as St,
|
|
25457
25572
|
ComboboxItem as T,
|
|
25458
25573
|
HtmlOutput as Tt,
|
|
25459
25574
|
NAMELESS_COLUMN_PREFIX as U,
|
|
25460
25575
|
TableHeader as V,
|
|
25461
|
-
ChevronLeft as Vt,
|
|
25462
25576
|
generateColumns as W,
|
|
25463
25577
|
useIntersectionObserver as X,
|
|
25464
25578
|
DelayMount as Y,
|
|
@@ -25484,9 +25598,9 @@ export {
|
|
|
25484
25598
|
DEFAULT_DECK_TRANSITION as i,
|
|
25485
25599
|
TOO_MANY_ROWS as it,
|
|
25486
25600
|
isCellAwareAtom as j,
|
|
25487
|
-
|
|
25601
|
+
Expand as jt,
|
|
25488
25602
|
contextAwarePanelOwner as k,
|
|
25489
|
-
|
|
25603
|
+
Funnel as kt,
|
|
25490
25604
|
RadioGroup as l,
|
|
25491
25605
|
CommandInput as lt,
|
|
25492
25606
|
DataTable as m,
|
|
@@ -25515,5 +25629,5 @@ export {
|
|
|
25515
25629
|
downloadHTMLAsImage as y,
|
|
25516
25630
|
ChartInfoState as yt,
|
|
25517
25631
|
TableCell as z,
|
|
25518
|
-
|
|
25632
|
+
ChevronLeft as zt
|
|
25519
25633
|
};
|