@marimo-team/islands 0.23.15-dev2 → 0.23.15-dev21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-DinOvbWu.js → chat-ui-FiwuOgQU.js} +3094 -3094
- package/dist/{code-visibility-B-sydhvS.js → code-visibility-Bqg6aos7.js} +925 -842
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-JXL8cvmt.js} +2218 -2205
- package/dist/main.js +1066 -1073
- package/dist/{process-output-Mh4UrjwM.js → process-output-CnDIXtM-.js} +1 -1
- package/dist/{reveal-component-MK2nUbwt.js → reveal-component-BzkgqXit.js} +614 -602
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +153 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +109 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +20 -64
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +11 -1
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +29 -0
- package/src/components/editor/renderers/slides-layout/types.ts +4 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/components/slides/reveal-component.tsx +33 -4
- package/src/components/slides/slide-form.tsx +72 -0
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +22 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/widget-binding.ts +4 -34
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +71 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -0
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
|
-
import {
|
|
9
|
+
import { At as goToCellLine, B as isDataURLString, C as Accordion, Cn as jsonToMarkdown, E as AccordionTrigger, Ft as jotaiJsonStorage, H as renderHTML, Hn as FileText, L as base64ToUint8Array, Ln as NotebookPen, Lt as getFeatureFlag, M as DotFilledIcon, N as PinLeftIcon, Nn as Wrench, Nt as useChromeActions, On as Close$1, Ot as toggleBreakpoint, P as PinRightIcon, Pn as Trash2, Pt as adaptForLocalStorage, Qt as useRequestClient, Rn as Minus, Sn as jsonParseWithSpecialChar, St as Checkbox, T as AccordionItem, Tn as atomWithStorage, Un as Eye, Ut as DATA_TYPE_ICON, Vn as Info, Vt as PluralWord, Wn as ExternalLink, Wt as getDataTypeColor, X as notebookAtom, Xn as esm_default, Xt as getRequestClient, Yn as Braces, Zn as import_lib, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, _t as getCellDomProps, c as Popover, cn as getTracebackInfo, d as PopoverTrigger, dn as filenameAtom, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, gn as HTMLCellId, gt as DATA_CELL_ID, hn as CellOutputId, ht as sanitizeHtml, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nt as useCellNames, on as elementContainsMarimoCellFile, ot as AnsiUp, q as getCellEditorView, qn as CircleX, r as MarkdownRenderer, sn as extractAllTracebackInfo, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as displayCellName, w as AccordionContent, z as extractBase64FromDataURL, zn as LoaderCircle, __tla as __tla_0 } from "./html-to-image-JXL8cvmt.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-DegSo0lV.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
|
|
@@ -35,7 +35,7 @@ import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DWIYvDh7.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-KfHB8wQR.js";
|
|
38
|
-
let
|
|
38
|
+
let ContextAwarePanelItem, EmotionCacheProvider, prettifyRowColumnCount, loadTableData, useSelectList, dateToLocalISOTime, Filenames, ColumnChartContext, EmptyState, usePrevious, ColumnPreviewContainer, useIntersectionObserver, ContextMenuContent, getMimeValues, ComboboxItem, ChartErrorState, DatePicker, TabsContent, ContextMenuItem, isNullishFilter, CommandInput, LazyVegaEmbed, Command, ChartInfoState, ContextMenuSeparator, Maps, getColumnCountForDisplay, SELECT_COLUMN_ID, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ErrorState, getPageIndexForRow, ContextMenu, toFieldTypes, smartMatch, HtmlOutput, ContextMenuTrigger, dateToLocalISODate, Progress, renderCellValue, ColumnName, DelayMount, DateRangePicker, TabsList, CompactChipRow, Tabs, Combobox, TabsTrigger, CommandList, RenderTextWithLinks, CommandItem, useOverflowDetection, CommandSeparator, Kbd, InstallPackageButton, ArrowDownWideNarrow, TableHeader, DEFAULT_DECK_VERTICAL_ALIGN, GripHorizontal, SlotNames, downloadByURL, generateColumns, SlideSidebar, Expand, Panel, RadioGroup, Code, Fill, hasFunctionProperty, PANEL_TYPES, RadioGroupItem, ChevronsUpDown, Provider$1, DataTable, ChevronLeft, TableHead, OutputRenderer, ChevronsDownUp, TableCell, DEFAULT_DECK_TRANSITION, TextWrap, isCellAwareAtom, prettifyRowCount, INDEX_COLUMN_NAME, LoadingState, loadTableAndRawData, Slide, Ellipsis, PanelGroup, OutputArea, ChevronsLeft, TableBody, marimoVersionAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, DEFAULT_SLIDE_TYPE, Funnel, slotsController, JsonOutput, ChevronsRight, Table, CommandEmpty, ChartLoadingState, showCodeInRunModeAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, Toggle, useNotebookCodeAvailable, isRecord, contextAwarePanelOpen, Switch, Download, PanelResizeHandle, ADD_PRINTING_CLASS, TableRow, downloadSizeLimitAtom, ColumnChartSpecModel, downloadHTMLAsImage, inferFieldTypes, downloadBlob, NAMELESS_COLUMN_PREFIX, useInternalStateWithSync, dateToLocalISODateTime;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
|
|
|
2061
2061
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2062
2062
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2063
2063
|
if (e === t) return;
|
|
2064
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0,
|
|
2065
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
2066
|
-
let
|
|
2067
|
-
if (
|
|
2068
|
-
else if (
|
|
2069
|
-
else if (
|
|
2070
|
-
else if (
|
|
2071
|
-
let e2 =
|
|
2064
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, rJ = c.top - E, iJ = c.bottom + O, aJ = c.left - A, oJ = c.right + M, sJ = e === _ ? 0 : Q + $, cJ = e === _ ? 0 : q + J, lJ = e.offsetWidth - e.clientWidth - sJ, uJ = e.offsetHeight - e.clientHeight - cJ, dJ = v + q + I, fJ = y - J - z - uJ, pJ = S + Q + U, mJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? pJ += lJ : mJ -= lJ;
|
|
2066
|
+
let hJ = rJ < dJ || iJ > fJ, gJ = aJ < pJ || oJ > mJ;
|
|
2067
|
+
if (hJ && i === "start") o += rJ - dJ;
|
|
2068
|
+
else if (hJ && i === "center") o += (rJ + iJ) / 2 - (dJ + fJ) / 2;
|
|
2069
|
+
else if (hJ && i === "end") o += iJ - fJ;
|
|
2070
|
+
else if (hJ && i === "nearest") {
|
|
2071
|
+
let e2 = rJ - dJ, t2 = iJ - fJ;
|
|
2072
2072
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2073
2073
|
}
|
|
2074
|
-
if (
|
|
2075
|
-
else if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
let e2 =
|
|
2074
|
+
if (gJ && a === "start") s += aJ - pJ;
|
|
2075
|
+
else if (gJ && a === "center") s += (aJ + oJ) / 2 - (pJ + mJ) / 2;
|
|
2076
|
+
else if (gJ && a === "end") s += oJ - mJ;
|
|
2077
|
+
else if (gJ && a === "nearest") {
|
|
2078
|
+
let e2 = aJ - pJ, t2 = oJ - mJ;
|
|
2079
2079
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2080
2080
|
}
|
|
2081
2081
|
e.scrollTo({
|
|
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
|
|
|
5185
5185
|
}
|
|
5186
5186
|
let $ = "bottom";
|
|
5187
5187
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5188
|
-
let
|
|
5189
|
-
q[I] +=
|
|
5190
|
-
let
|
|
5191
|
-
y && y <
|
|
5192
|
-
let
|
|
5193
|
-
|
|
5194
|
-
let
|
|
5195
|
-
x: U === "top" || U === "bottom" ?
|
|
5196
|
-
y: U === "left" || U === "right" ?
|
|
5188
|
+
let rJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += rJ;
|
|
5190
|
+
let iJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < iJ && (iJ = y), n.height = Math.min(n.height, iJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), rJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += rJ;
|
|
5192
|
+
let aJ = {}, oJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], sJ = oJ + 0.5 * t[z], cJ = S / 2 + w, lJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), uJ = n[z] - lJ - S / 2 - w;
|
|
5193
|
+
aJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(sJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), cJ, uJ), { placement: U, crossPlacement: K } = A, S ? oJ = aJ[I] : K === "right" ? oJ += t[z] : K === "center" && (oJ += t[z] / 2);
|
|
5194
|
+
let dJ = U === "left" || U === "top" ? n[M] : 0, fJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? oJ : dJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? oJ : dJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: iJ,
|
|
5201
|
+
arrowOffsetLeft: aJ.left,
|
|
5202
|
+
arrowOffsetTop: aJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: fJ
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
|
|
|
7056
7056
|
n,
|
|
7057
7057
|
h
|
|
7058
7058
|
]);
|
|
7059
|
-
let
|
|
7059
|
+
let rJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7060
7060
|
role: "textbox",
|
|
7061
7061
|
"aria-valuemax": null,
|
|
7062
7062
|
"aria-valuemin": null,
|
|
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
|
|
|
7066
7066
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7067
7067
|
t.segments
|
|
7068
7068
|
]) && !t.isInvalid && (f = void 0);
|
|
7069
|
-
let
|
|
7070
|
-
"aria-label": `${
|
|
7069
|
+
let iJ = $bdb11010cef70236$export$f680877a34711e37(), aJ = !t.isDisabled && !t.isReadOnly && e.isEditable, oJ = e.type === "literal" ? "" : s.of(e.type), sJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${oJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7071
7071
|
"aria-labelledby": d
|
|
7072
7072
|
});
|
|
7073
7073
|
if (e.type === "literal") return {
|
|
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
|
|
|
7075
7075
|
"aria-hidden": true
|
|
7076
7076
|
}
|
|
7077
7077
|
};
|
|
7078
|
-
let
|
|
7078
|
+
let cJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
cJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (cJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, sJ, {
|
|
7088
|
+
id: iJ,
|
|
7089
|
+
...rJ,
|
|
7090
7090
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7091
7091
|
"aria-describedby": f,
|
|
7092
7092
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7093
7093
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
7094
|
-
contentEditable:
|
|
7095
|
-
suppressContentEditableWarning:
|
|
7096
|
-
spellCheck:
|
|
7097
|
-
autoCorrect:
|
|
7098
|
-
enterKeyHint:
|
|
7099
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
7094
|
+
contentEditable: aJ,
|
|
7095
|
+
suppressContentEditableWarning: aJ,
|
|
7096
|
+
spellCheck: aJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: aJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: aJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !aJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: cJ,
|
|
7104
7104
|
onPointerDown(e2) {
|
|
7105
7105
|
e2.stopPropagation();
|
|
7106
7106
|
},
|
|
@@ -10349,12 +10349,12 @@ Defaulting to \`null\`.`;
|
|
|
10349
10349
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10350
10350
|
}
|
|
10351
10351
|
}
|
|
10352
|
-
let
|
|
10352
|
+
let rJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10353
10353
|
w,
|
|
10354
10354
|
f,
|
|
10355
10355
|
s,
|
|
10356
10356
|
c
|
|
10357
|
-
]),
|
|
10357
|
+
]), iJ = e.isInvalid || e.validationState === "invalid" || rJ, aJ = iJ ? "invalid" : null, oJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10358
10358
|
h,
|
|
10359
10359
|
o
|
|
10360
10360
|
]);
|
|
@@ -10371,8 +10371,8 @@ Defaulting to \`null\`.`;
|
|
|
10371
10371
|
maxValue: c,
|
|
10372
10372
|
focusedDate: O,
|
|
10373
10373
|
timeZone: E,
|
|
10374
|
-
validationState:
|
|
10375
|
-
isValueInvalid:
|
|
10374
|
+
validationState: aJ,
|
|
10375
|
+
isValueInvalid: iJ,
|
|
10376
10376
|
setFocusedDate(e2) {
|
|
10377
10377
|
Q(e2);
|
|
10378
10378
|
},
|
|
@@ -10397,12 +10397,12 @@ Defaulting to \`null\`.`;
|
|
|
10397
10397
|
}));
|
|
10398
10398
|
},
|
|
10399
10399
|
focusNextPage() {
|
|
10400
|
-
let e2 = M.add(
|
|
10401
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10400
|
+
let e2 = M.add(oJ);
|
|
10401
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(oJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, oJ, i, s, c), oJ, i));
|
|
10402
10402
|
},
|
|
10403
10403
|
focusPreviousPage() {
|
|
10404
|
-
let e2 = M.subtract(
|
|
10405
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10404
|
+
let e2 = M.subtract(oJ);
|
|
10405
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(oJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, oJ, i, s, c), oJ, i));
|
|
10406
10406
|
},
|
|
10407
10407
|
focusSectionStart() {
|
|
10408
10408
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10539,13 +10539,13 @@ Defaulting to \`null\`.`;
|
|
|
10539
10539
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10540
10540
|
}), q(null);
|
|
10541
10541
|
}
|
|
10542
|
-
}, [$,
|
|
10543
|
-
|
|
10542
|
+
}, [$, rJ] = (0, import_react.useState)(false), { isDateUnavailable: iJ } = e, aJ = (0, import_react.useMemo)(() => !h || v ? false : iJ && (iJ(h.start) || iJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10543
|
+
iJ,
|
|
10544
10544
|
h,
|
|
10545
10545
|
v,
|
|
10546
10546
|
c,
|
|
10547
10547
|
d
|
|
10548
|
-
]),
|
|
10548
|
+
]), oJ = e.isInvalid || e.validationState === "invalid" || aJ, sJ = oJ ? "invalid" : null;
|
|
10549
10549
|
return {
|
|
10550
10550
|
...I,
|
|
10551
10551
|
value: h,
|
|
@@ -10553,8 +10553,8 @@ Defaulting to \`null\`.`;
|
|
|
10553
10553
|
anchorDate: v,
|
|
10554
10554
|
setAnchorDate: q,
|
|
10555
10555
|
highlightedRange: J,
|
|
10556
|
-
validationState:
|
|
10557
|
-
isValueInvalid:
|
|
10556
|
+
validationState: sJ,
|
|
10557
|
+
isValueInvalid: oJ,
|
|
10558
10558
|
selectFocusedDate() {
|
|
10559
10559
|
Q(I.focusedDate);
|
|
10560
10560
|
},
|
|
@@ -10570,7 +10570,7 @@ Defaulting to \`null\`.`;
|
|
|
10570
10570
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10571
10571
|
},
|
|
10572
10572
|
isDragging: $,
|
|
10573
|
-
setDragging:
|
|
10573
|
+
setDragging: rJ
|
|
10574
10574
|
};
|
|
10575
10575
|
}
|
|
10576
10576
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11757,7 +11757,7 @@ Defaulting to \`null\`.`;
|
|
|
11757
11757
|
_,
|
|
11758
11758
|
S,
|
|
11759
11759
|
v
|
|
11760
|
-
]),
|
|
11760
|
+
]), rJ = (0, import_react.useMemo)(() => {
|
|
11761
11761
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11762
11762
|
"era",
|
|
11763
11763
|
"year",
|
|
@@ -11775,15 +11775,15 @@ Defaulting to \`null\`.`;
|
|
|
11775
11775
|
e.maxGranularity,
|
|
11776
11776
|
_,
|
|
11777
11777
|
w
|
|
11778
|
-
]), [
|
|
11779
|
-
(M !==
|
|
11780
|
-
let
|
|
11781
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11778
|
+
]), [iJ, aJ] = (0, import_react.useState)(M), [oJ, sJ] = (0, import_react.useState)(S), [cJ, lJ] = (0, import_react.useState)(w);
|
|
11779
|
+
(M !== iJ || w !== cJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, oJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), aJ(M), sJ(S), lJ(w), z(I));
|
|
11780
|
+
let uJ = (t2) => {
|
|
11781
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(rJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11782
11782
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11783
11783
|
else {
|
|
11784
|
-
if (t2.isComplete(
|
|
11784
|
+
if (t2.isComplete(rJ)) {
|
|
11785
11785
|
let e2 = t2.toValue(M ?? $);
|
|
11786
|
-
if (t2.validate(e2,
|
|
11786
|
+
if (t2.validate(e2, rJ)) {
|
|
11787
11787
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11788
11788
|
if (!E || t3.compare(E) !== 0) {
|
|
11789
11789
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11793,83 +11793,83 @@ Defaulting to \`null\`.`;
|
|
|
11793
11793
|
}
|
|
11794
11794
|
z(t2);
|
|
11795
11795
|
}
|
|
11796
|
-
},
|
|
11796
|
+
}, dJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11797
11797
|
I,
|
|
11798
11798
|
y,
|
|
11799
11799
|
M,
|
|
11800
11800
|
$
|
|
11801
|
-
]),
|
|
11802
|
-
|
|
11801
|
+
]), fJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(dJ, I, J, Q, S, t, _), [
|
|
11802
|
+
dJ,
|
|
11803
11803
|
J,
|
|
11804
11804
|
Q,
|
|
11805
11805
|
I,
|
|
11806
11806
|
S,
|
|
11807
11807
|
t,
|
|
11808
11808
|
_
|
|
11809
|
-
]),
|
|
11810
|
-
|
|
11811
|
-
},
|
|
11809
|
+
]), pJ = (e2, t2) => {
|
|
11810
|
+
uJ(I.cycle(e2, t2, $, rJ));
|
|
11811
|
+
}, mJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11812
11812
|
E,
|
|
11813
11813
|
c,
|
|
11814
11814
|
d,
|
|
11815
11815
|
f,
|
|
11816
11816
|
K
|
|
11817
|
-
]),
|
|
11817
|
+
]), hJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11818
11818
|
...e,
|
|
11819
11819
|
value: E,
|
|
11820
|
-
builtinValidation:
|
|
11821
|
-
}),
|
|
11820
|
+
builtinValidation: mJ
|
|
11821
|
+
}), gJ = hJ.displayValidation.isInvalid, _J = e.validationState || (gJ ? "invalid" : null);
|
|
11822
11822
|
return {
|
|
11823
|
-
...
|
|
11823
|
+
...hJ,
|
|
11824
11824
|
value: M,
|
|
11825
11825
|
defaultValue: e.defaultValue ?? A,
|
|
11826
|
-
dateValue:
|
|
11826
|
+
dateValue: dJ,
|
|
11827
11827
|
calendar: S,
|
|
11828
|
-
setValue:
|
|
11829
|
-
segments:
|
|
11828
|
+
setValue: uJ,
|
|
11829
|
+
segments: fJ,
|
|
11830
11830
|
dateFormatter: J,
|
|
11831
|
-
validationState:
|
|
11832
|
-
isInvalid:
|
|
11831
|
+
validationState: _J,
|
|
11832
|
+
isInvalid: gJ,
|
|
11833
11833
|
granularity: _,
|
|
11834
11834
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11835
11835
|
isDisabled: a,
|
|
11836
11836
|
isReadOnly: o,
|
|
11837
11837
|
isRequired: s,
|
|
11838
11838
|
increment(e2) {
|
|
11839
|
-
|
|
11839
|
+
pJ(e2, 1);
|
|
11840
11840
|
},
|
|
11841
11841
|
decrement(e2) {
|
|
11842
|
-
|
|
11842
|
+
pJ(e2, -1);
|
|
11843
11843
|
},
|
|
11844
11844
|
incrementPage(e2) {
|
|
11845
|
-
|
|
11845
|
+
pJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11846
11846
|
},
|
|
11847
11847
|
decrementPage(e2) {
|
|
11848
|
-
|
|
11848
|
+
pJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11849
11849
|
},
|
|
11850
11850
|
incrementToMax(e2) {
|
|
11851
11851
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11852
|
-
|
|
11852
|
+
uJ(I.set(e2, t2, $));
|
|
11853
11853
|
},
|
|
11854
11854
|
decrementToMin(e2) {
|
|
11855
11855
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11856
|
-
|
|
11856
|
+
uJ(I.set(e2, t2, $));
|
|
11857
11857
|
},
|
|
11858
11858
|
setSegment(e2, t2) {
|
|
11859
|
-
|
|
11859
|
+
uJ(I.set(e2, t2, $));
|
|
11860
11860
|
},
|
|
11861
11861
|
confirmPlaceholder() {
|
|
11862
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11862
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(rJ)) {
|
|
11863
11863
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11864
11864
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11865
11865
|
}
|
|
11866
11866
|
},
|
|
11867
11867
|
clearSegment(e2) {
|
|
11868
11868
|
let t2 = I;
|
|
11869
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11869
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), uJ(t2);
|
|
11870
11870
|
},
|
|
11871
11871
|
formatValue(e2) {
|
|
11872
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11872
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(dJ) : "";
|
|
11873
11873
|
},
|
|
11874
11874
|
getDateFormatter(e2, t2) {
|
|
11875
11875
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11989,7 +11989,7 @@ Defaulting to \`null\`.`;
|
|
|
11989
11989
|
e.endName
|
|
11990
11990
|
]),
|
|
11991
11991
|
builtinValidation: J
|
|
11992
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11992
|
+
}), $ = Q.displayValidation.isInvalid, rJ = e.validationState || ($ ? "invalid" : null);
|
|
11993
11993
|
return {
|
|
11994
11994
|
...Q,
|
|
11995
11995
|
value: c,
|
|
@@ -12035,7 +12035,7 @@ Defaulting to \`null\`.`;
|
|
|
12035
12035
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12036
12036
|
}), t.setOpen(n2);
|
|
12037
12037
|
},
|
|
12038
|
-
validationState:
|
|
12038
|
+
validationState: rJ,
|
|
12039
12039
|
isInvalid: $,
|
|
12040
12040
|
formatValue(t2, n2) {
|
|
12041
12041
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15907,33 +15907,33 @@ try {
|
|
|
15907
15907
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15908
15908
|
function y(e2) {
|
|
15909
15909
|
var _a2, _b, _c, _d;
|
|
15910
|
-
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), $ = !!Q && !I,
|
|
15910
|
+
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), $ = !!Q && !I, rJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15911
15911
|
h2
|
|
15912
|
-
]),
|
|
15913
|
-
|
|
15914
|
-
]),
|
|
15915
|
-
supportedColorSchemes:
|
|
15916
|
-
defaultLightColorScheme:
|
|
15917
|
-
defaultDarkColorScheme:
|
|
15912
|
+
]), iJ = rJ[t], aJ = iJ || rJ, { colorSchemes: oJ = _, components: sJ = v, cssVarPrefix: cJ } = aJ, lJ = Object.keys(oJ).filter((e3) => !!oJ[e3]).join(","), uJ = import_react.useMemo(() => lJ.split(","), [
|
|
15913
|
+
lJ
|
|
15914
|
+
]), dJ = typeof s == "string" ? s : s.light, fJ = typeof s == "string" ? s : s.dark, { mode: pJ, setMode: mJ, systemMode: hJ, lightColorScheme: gJ, darkColorScheme: _J, colorScheme: vJ, setColorScheme: yJ } = useCurrentColorScheme({
|
|
15915
|
+
supportedColorSchemes: uJ,
|
|
15916
|
+
defaultLightColorScheme: dJ,
|
|
15917
|
+
defaultDarkColorScheme: fJ,
|
|
15918
15918
|
modeStorageKey: y2,
|
|
15919
15919
|
colorSchemeStorageKey: S2,
|
|
15920
|
-
defaultMode:
|
|
15920
|
+
defaultMode: oJ[dJ] && oJ[fJ] ? U : ((_b = (_a2 = oJ[aJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = aJ.palette) == null ? void 0 : _c.mode),
|
|
15921
15921
|
storageManager: E,
|
|
15922
15922
|
storageWindow: O,
|
|
15923
15923
|
noSsr: K
|
|
15924
|
-
}),
|
|
15925
|
-
$ && (
|
|
15926
|
-
let
|
|
15924
|
+
}), bJ = pJ, xJ = vJ;
|
|
15925
|
+
$ && (bJ = Q.mode, xJ = Q.colorScheme);
|
|
15926
|
+
let SJ = import_react.useMemo(() => {
|
|
15927
15927
|
var _a3;
|
|
15928
|
-
let e3 =
|
|
15929
|
-
...
|
|
15930
|
-
components:
|
|
15931
|
-
colorSchemes:
|
|
15932
|
-
cssVarPrefix:
|
|
15928
|
+
let e3 = xJ || aJ.defaultColorScheme, t2 = ((_a3 = aJ.generateThemeVars) == null ? void 0 : _a3.call(aJ)) || aJ.vars, n2 = {
|
|
15929
|
+
...aJ,
|
|
15930
|
+
components: sJ,
|
|
15931
|
+
colorSchemes: oJ,
|
|
15932
|
+
cssVarPrefix: cJ,
|
|
15933
15933
|
vars: t2
|
|
15934
15934
|
};
|
|
15935
15935
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15936
|
-
let t3 =
|
|
15936
|
+
let t3 = oJ[e3];
|
|
15937
15937
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15938
15938
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15939
15939
|
...n2[e4],
|
|
@@ -15943,31 +15943,31 @@ try {
|
|
|
15943
15943
|
}
|
|
15944
15944
|
return c ? c(n2) : n2;
|
|
15945
15945
|
}, [
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
]),
|
|
15946
|
+
aJ,
|
|
15947
|
+
xJ,
|
|
15948
|
+
sJ,
|
|
15949
|
+
oJ,
|
|
15950
|
+
cJ
|
|
15951
|
+
]), CJ = aJ.colorSchemeSelector;
|
|
15952
15952
|
useEnhancedEffect_default(() => {
|
|
15953
|
-
if (
|
|
15954
|
-
let e3 =
|
|
15955
|
-
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(...
|
|
15953
|
+
if (xJ && M && CJ && CJ !== "media") {
|
|
15954
|
+
let e3 = CJ, t2 = CJ;
|
|
15955
|
+
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(...uJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", xJ));
|
|
15956
15956
|
else {
|
|
15957
|
-
let e4 = t2.replace("%s",
|
|
15957
|
+
let e4 = t2.replace("%s", xJ).match(/\[([^\]]+)\]/);
|
|
15958
15958
|
if (e4) {
|
|
15959
15959
|
let [t3, n2] = e4[1].split("=");
|
|
15960
|
-
n2 ||
|
|
15961
|
-
M.removeAttribute(t3.replace(
|
|
15960
|
+
n2 || uJ.forEach((e5) => {
|
|
15961
|
+
M.removeAttribute(t3.replace(xJ, e5));
|
|
15962
15962
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15963
|
-
} else M.setAttribute(t2,
|
|
15963
|
+
} else M.setAttribute(t2, xJ);
|
|
15964
15964
|
}
|
|
15965
15965
|
}
|
|
15966
15966
|
}, [
|
|
15967
|
-
|
|
15968
|
-
|
|
15967
|
+
xJ,
|
|
15968
|
+
CJ,
|
|
15969
15969
|
M,
|
|
15970
|
-
|
|
15970
|
+
uJ
|
|
15971
15971
|
]), import_react.useEffect(() => {
|
|
15972
15972
|
let e3;
|
|
15973
15973
|
if (w2 && q.current && A) {
|
|
@@ -15980,48 +15980,48 @@ try {
|
|
|
15980
15980
|
clearTimeout(e3);
|
|
15981
15981
|
};
|
|
15982
15982
|
}, [
|
|
15983
|
-
|
|
15983
|
+
xJ,
|
|
15984
15984
|
w2,
|
|
15985
15985
|
A
|
|
15986
15986
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15987
15987
|
q.current = false;
|
|
15988
15988
|
}), []);
|
|
15989
|
-
let
|
|
15990
|
-
allColorSchemes:
|
|
15991
|
-
colorScheme:
|
|
15992
|
-
darkColorScheme:
|
|
15993
|
-
lightColorScheme:
|
|
15994
|
-
mode:
|
|
15995
|
-
setColorScheme:
|
|
15996
|
-
setMode:
|
|
15997
|
-
systemMode:
|
|
15989
|
+
let wJ = import_react.useMemo(() => ({
|
|
15990
|
+
allColorSchemes: uJ,
|
|
15991
|
+
colorScheme: xJ,
|
|
15992
|
+
darkColorScheme: _J,
|
|
15993
|
+
lightColorScheme: gJ,
|
|
15994
|
+
mode: bJ,
|
|
15995
|
+
setColorScheme: yJ,
|
|
15996
|
+
setMode: mJ,
|
|
15997
|
+
systemMode: hJ
|
|
15998
15998
|
}), [
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
mJ,
|
|
16002
|
-
pJ,
|
|
15999
|
+
uJ,
|
|
16000
|
+
xJ,
|
|
16003
16001
|
_J,
|
|
16004
16002
|
gJ,
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16003
|
+
bJ,
|
|
16004
|
+
yJ,
|
|
16005
|
+
mJ,
|
|
16006
|
+
hJ,
|
|
16007
|
+
SJ.colorSchemeSelector
|
|
16008
|
+
]), TJ = true;
|
|
16009
|
+
(z || aJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === cJ) && (TJ = false);
|
|
16010
|
+
let EJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16011
16011
|
children: [
|
|
16012
16012
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16013
|
-
themeId:
|
|
16014
|
-
theme:
|
|
16013
|
+
themeId: iJ ? t : void 0,
|
|
16014
|
+
theme: SJ,
|
|
16015
16015
|
children: d2
|
|
16016
16016
|
}),
|
|
16017
|
-
|
|
16018
|
-
styles: ((_d =
|
|
16017
|
+
TJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16018
|
+
styles: ((_d = SJ.generateStyleSheets) == null ? void 0 : _d.call(SJ)) || []
|
|
16019
16019
|
})
|
|
16020
16020
|
]
|
|
16021
16021
|
});
|
|
16022
|
-
return $ ?
|
|
16023
|
-
value:
|
|
16024
|
-
children:
|
|
16022
|
+
return $ ? EJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16023
|
+
value: wJ,
|
|
16024
|
+
children: EJ
|
|
16025
16025
|
});
|
|
16026
16026
|
}
|
|
16027
16027
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17521,10 +17521,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17521
17521
|
let n = useDefaultProps({
|
|
17522
17522
|
props: e,
|
|
17523
17523
|
name: "MuiInputBase"
|
|
17524
|
-
}), { "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: $, onFocus:
|
|
17525
|
-
}, []),
|
|
17524
|
+
}), { "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: $, onFocus: rJ, onKeyDown: iJ, onKeyUp: aJ, placeholder: oJ, readOnly: sJ, renderSuffix: cJ, rows: lJ, size: uJ, slotProps: dJ = {}, slots: fJ = {}, startAdornment: pJ, type: mJ = "text", value: hJ, ...gJ } = n, _J = A.value == null ? hJ : A.value, { current: vJ } = import_react.useRef(_J != null), yJ = import_react.useRef(), bJ = import_react.useCallback((e2) => {
|
|
17525
|
+
}, []), xJ = useForkRef_default(yJ, M, A.ref, bJ), [SJ, CJ] = import_react.useState(false), wJ = useFormControl(), TJ = formControlState({
|
|
17526
17526
|
props: n,
|
|
17527
|
-
muiFormControl:
|
|
17527
|
+
muiFormControl: wJ,
|
|
17528
17528
|
states: [
|
|
17529
17529
|
"color",
|
|
17530
17530
|
"disabled",
|
|
@@ -17535,145 +17535,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17535
17535
|
"filled"
|
|
17536
17536
|
]
|
|
17537
17537
|
});
|
|
17538
|
-
|
|
17539
|
-
!
|
|
17538
|
+
TJ.focused = wJ ? wJ.focused : SJ, import_react.useEffect(() => {
|
|
17539
|
+
!wJ && _ && SJ && (CJ(false), J && J());
|
|
17540
17540
|
}, [
|
|
17541
|
-
|
|
17541
|
+
wJ,
|
|
17542
17542
|
_,
|
|
17543
|
-
|
|
17543
|
+
SJ,
|
|
17544
17544
|
J
|
|
17545
17545
|
]);
|
|
17546
|
-
let
|
|
17547
|
-
isFilled(e2) ?
|
|
17546
|
+
let EJ = wJ && wJ.onFilled, DJ = wJ && wJ.onEmpty, OJ = import_react.useCallback((e2) => {
|
|
17547
|
+
isFilled(e2) ? EJ && EJ() : DJ && DJ();
|
|
17548
17548
|
}, [
|
|
17549
|
-
|
|
17550
|
-
|
|
17549
|
+
EJ,
|
|
17550
|
+
DJ
|
|
17551
17551
|
]);
|
|
17552
17552
|
useEnhancedEffect_default$1(() => {
|
|
17553
|
-
|
|
17554
|
-
value:
|
|
17553
|
+
vJ && OJ({
|
|
17554
|
+
value: _J
|
|
17555
17555
|
});
|
|
17556
17556
|
}, [
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17557
|
+
_J,
|
|
17558
|
+
OJ,
|
|
17559
|
+
vJ
|
|
17560
17560
|
]);
|
|
17561
|
-
let
|
|
17562
|
-
|
|
17563
|
-
},
|
|
17564
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17565
|
-
},
|
|
17566
|
-
if (!
|
|
17567
|
-
let t3 = e2.target ||
|
|
17561
|
+
let kJ = (e2) => {
|
|
17562
|
+
rJ && rJ(e2), A.onFocus && A.onFocus(e2), wJ && wJ.onFocus ? wJ.onFocus(e2) : CJ(true);
|
|
17563
|
+
}, AJ = (e2) => {
|
|
17564
|
+
J && J(e2), A.onBlur && A.onBlur(e2), wJ && wJ.onBlur ? wJ.onBlur(e2) : CJ(false);
|
|
17565
|
+
}, jJ = (e2, ...t2) => {
|
|
17566
|
+
if (!vJ) {
|
|
17567
|
+
let t3 = e2.target || yJ.current;
|
|
17568
17568
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17569
|
-
|
|
17569
|
+
OJ({
|
|
17570
17570
|
value: t3.value
|
|
17571
17571
|
});
|
|
17572
17572
|
}
|
|
17573
17573
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17574
17574
|
};
|
|
17575
17575
|
import_react.useEffect(() => {
|
|
17576
|
-
|
|
17576
|
+
OJ(yJ.current);
|
|
17577
17577
|
}, []);
|
|
17578
|
-
let
|
|
17579
|
-
|
|
17580
|
-
},
|
|
17581
|
-
K &&
|
|
17578
|
+
let MJ = (e2) => {
|
|
17579
|
+
yJ.current && e2.currentTarget === e2.target && yJ.current.focus(), $ && $(e2);
|
|
17580
|
+
}, NJ = O, PJ = A;
|
|
17581
|
+
K && NJ === "input" && (PJ = lJ ? {
|
|
17582
17582
|
type: void 0,
|
|
17583
|
-
minRows:
|
|
17584
|
-
maxRows:
|
|
17585
|
-
...
|
|
17583
|
+
minRows: lJ,
|
|
17584
|
+
maxRows: lJ,
|
|
17585
|
+
...PJ
|
|
17586
17586
|
} : {
|
|
17587
17587
|
type: void 0,
|
|
17588
17588
|
maxRows: z,
|
|
17589
17589
|
minRows: U,
|
|
17590
|
-
...
|
|
17591
|
-
},
|
|
17592
|
-
let
|
|
17593
|
-
|
|
17590
|
+
...PJ
|
|
17591
|
+
}, NJ = TextareaAutosize_default);
|
|
17592
|
+
let FJ = (e2) => {
|
|
17593
|
+
OJ(e2.animationName === "mui-auto-fill-cancel" ? yJ.current : {
|
|
17594
17594
|
value: "x"
|
|
17595
17595
|
});
|
|
17596
17596
|
};
|
|
17597
17597
|
import_react.useEffect(() => {
|
|
17598
|
-
|
|
17598
|
+
wJ && wJ.setAdornedStart(!!pJ);
|
|
17599
17599
|
}, [
|
|
17600
|
-
|
|
17601
|
-
|
|
17600
|
+
wJ,
|
|
17601
|
+
pJ
|
|
17602
17602
|
]);
|
|
17603
|
-
let
|
|
17603
|
+
let IJ = {
|
|
17604
17604
|
...n,
|
|
17605
|
-
color:
|
|
17606
|
-
disabled:
|
|
17605
|
+
color: TJ.color || "primary",
|
|
17606
|
+
disabled: TJ.disabled,
|
|
17607
17607
|
endAdornment: y,
|
|
17608
|
-
error:
|
|
17609
|
-
focused:
|
|
17610
|
-
formControl:
|
|
17608
|
+
error: TJ.error,
|
|
17609
|
+
focused: TJ.focused,
|
|
17610
|
+
formControl: wJ,
|
|
17611
17611
|
fullWidth: w,
|
|
17612
|
-
hiddenLabel:
|
|
17612
|
+
hiddenLabel: TJ.hiddenLabel,
|
|
17613
17613
|
multiline: K,
|
|
17614
|
-
size:
|
|
17615
|
-
startAdornment:
|
|
17616
|
-
type:
|
|
17617
|
-
},
|
|
17618
|
-
return
|
|
17619
|
-
...
|
|
17620
|
-
...
|
|
17614
|
+
size: TJ.size,
|
|
17615
|
+
startAdornment: pJ,
|
|
17616
|
+
type: mJ
|
|
17617
|
+
}, LJ = useUtilityClasses(IJ), RJ = fJ.root || d.Root || InputBaseRoot, zJ = dJ.root || f.root || {}, BJ = fJ.input || d.Input || InputBaseInput;
|
|
17618
|
+
return PJ = {
|
|
17619
|
+
...PJ,
|
|
17620
|
+
...dJ.input ?? f.input
|
|
17621
17621
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17622
17622
|
children: [
|
|
17623
17623
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17624
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17625
|
-
...
|
|
17624
|
+
(0, import_jsx_runtime.jsxs)(RJ, {
|
|
17625
|
+
...zJ,
|
|
17626
17626
|
ref: t,
|
|
17627
|
-
onClick:
|
|
17628
|
-
...
|
|
17629
|
-
...!isHostComponent_default(
|
|
17627
|
+
onClick: MJ,
|
|
17628
|
+
...gJ,
|
|
17629
|
+
...!isHostComponent_default(RJ) && {
|
|
17630
17630
|
ownerState: {
|
|
17631
|
-
...
|
|
17632
|
-
...
|
|
17631
|
+
...IJ,
|
|
17632
|
+
...zJ.ownerState
|
|
17633
17633
|
}
|
|
17634
17634
|
},
|
|
17635
|
-
className: clsx_default(
|
|
17635
|
+
className: clsx_default(LJ.root, zJ.className, s, sJ && "MuiInputBase-readOnly"),
|
|
17636
17636
|
children: [
|
|
17637
|
-
|
|
17637
|
+
pJ,
|
|
17638
17638
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17639
17639
|
value: null,
|
|
17640
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17641
|
-
"aria-invalid":
|
|
17640
|
+
children: (0, import_jsx_runtime.jsx)(BJ, {
|
|
17641
|
+
"aria-invalid": TJ.error,
|
|
17642
17642
|
"aria-describedby": i,
|
|
17643
17643
|
autoComplete: a,
|
|
17644
17644
|
autoFocus: o,
|
|
17645
17645
|
defaultValue: h,
|
|
17646
|
-
disabled:
|
|
17646
|
+
disabled: TJ.disabled,
|
|
17647
17647
|
id: E,
|
|
17648
|
-
onAnimationStart:
|
|
17648
|
+
onAnimationStart: FJ,
|
|
17649
17649
|
name: q,
|
|
17650
|
-
placeholder:
|
|
17651
|
-
readOnly:
|
|
17652
|
-
required:
|
|
17653
|
-
rows:
|
|
17654
|
-
value:
|
|
17655
|
-
onKeyDown:
|
|
17656
|
-
onKeyUp:
|
|
17657
|
-
type:
|
|
17658
|
-
...
|
|
17659
|
-
...!isHostComponent_default(
|
|
17660
|
-
as:
|
|
17650
|
+
placeholder: oJ,
|
|
17651
|
+
readOnly: sJ,
|
|
17652
|
+
required: TJ.required,
|
|
17653
|
+
rows: lJ,
|
|
17654
|
+
value: _J,
|
|
17655
|
+
onKeyDown: iJ,
|
|
17656
|
+
onKeyUp: aJ,
|
|
17657
|
+
type: mJ,
|
|
17658
|
+
...PJ,
|
|
17659
|
+
...!isHostComponent_default(BJ) && {
|
|
17660
|
+
as: NJ,
|
|
17661
17661
|
ownerState: {
|
|
17662
|
-
...
|
|
17663
|
-
...
|
|
17662
|
+
...IJ,
|
|
17663
|
+
...PJ.ownerState
|
|
17664
17664
|
}
|
|
17665
17665
|
},
|
|
17666
|
-
ref:
|
|
17667
|
-
className: clsx_default(
|
|
17668
|
-
onBlur:
|
|
17669
|
-
onChange:
|
|
17670
|
-
onFocus:
|
|
17666
|
+
ref: xJ,
|
|
17667
|
+
className: clsx_default(LJ.input, PJ.className, sJ && "MuiInputBase-readOnly"),
|
|
17668
|
+
onBlur: AJ,
|
|
17669
|
+
onChange: jJ,
|
|
17670
|
+
onFocus: kJ
|
|
17671
17671
|
})
|
|
17672
17672
|
}),
|
|
17673
17673
|
y,
|
|
17674
|
-
|
|
17675
|
-
...
|
|
17676
|
-
startAdornment:
|
|
17674
|
+
cJ ? cJ({
|
|
17675
|
+
...TJ,
|
|
17676
|
+
startAdornment: pJ
|
|
17677
17677
|
}) : null
|
|
17678
17678
|
]
|
|
17679
17679
|
})
|
|
@@ -18749,30 +18749,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18749
18749
|
M,
|
|
18750
18750
|
i,
|
|
18751
18751
|
a
|
|
18752
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange),
|
|
18753
|
-
|
|
18752
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), rJ = useTextColor(), iJ = useJsonViewerStore((e2) => e2.colorspace.base0C), aJ = useJsonViewerStore((e2) => e2.colorspace.base0A), oJ = useJsonViewerStore((e2) => e2.displayComma), sJ = useJsonViewerStore((e2) => e2.quotesOnKeys), cJ = useJsonViewerStore((e2) => e2.rootName), lJ = U === t, uJ = Number.isInteger(Number(A)), dJ = useJsonViewerStore((e2) => e2.enableAdd), fJ = useJsonViewerStore((e2) => e2.onAdd), pJ = (0, import_react.useMemo)(() => !fJ || a !== void 0 || dJ === false || v === false ? false : typeof dJ == "function" ? !!dJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18753
|
+
fJ,
|
|
18754
18754
|
a,
|
|
18755
18755
|
i,
|
|
18756
|
-
|
|
18756
|
+
dJ,
|
|
18757
18757
|
v,
|
|
18758
18758
|
t
|
|
18759
|
-
]),
|
|
18760
|
-
|
|
18759
|
+
]), mJ = useJsonViewerStore((e2) => e2.enableDelete), hJ = useJsonViewerStore((e2) => e2.onDelete), gJ = (0, import_react.useMemo)(() => !hJ || a !== void 0 || lJ || mJ === false || v === false ? false : typeof mJ == "function" ? !!mJ(i, t) : mJ, [
|
|
18760
|
+
hJ,
|
|
18761
18761
|
a,
|
|
18762
|
-
|
|
18762
|
+
lJ,
|
|
18763
18763
|
i,
|
|
18764
|
-
|
|
18764
|
+
mJ,
|
|
18765
18765
|
v,
|
|
18766
18766
|
t
|
|
18767
|
-
]),
|
|
18768
|
-
|
|
18767
|
+
]), _J = useJsonViewerStore((e2) => e2.enableClipboard), { copy: vJ, copied: yJ } = useClipboard(), bJ = useJsonViewerStore((e2) => e2.highlightUpdates), xJ = (0, import_react.useMemo)(() => !bJ || 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, [
|
|
18768
|
+
bJ,
|
|
18769
18769
|
n,
|
|
18770
18770
|
t
|
|
18771
|
-
]),
|
|
18771
|
+
]), SJ = (0, import_react.useRef)();
|
|
18772
18772
|
(0, import_react.useEffect)(() => {
|
|
18773
|
-
|
|
18773
|
+
SJ.current && xJ && "animate" in SJ.current && SJ.current.animate([
|
|
18774
18774
|
{
|
|
18775
|
-
backgroundColor:
|
|
18775
|
+
backgroundColor: aJ
|
|
18776
18776
|
},
|
|
18777
18777
|
{
|
|
18778
18778
|
backgroundColor: ""
|
|
@@ -18782,22 +18782,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18782
18782
|
easing: "ease-in"
|
|
18783
18783
|
});
|
|
18784
18784
|
}, [
|
|
18785
|
-
|
|
18786
|
-
|
|
18785
|
+
aJ,
|
|
18786
|
+
xJ,
|
|
18787
18787
|
n,
|
|
18788
18788
|
t
|
|
18789
18789
|
]);
|
|
18790
|
-
let
|
|
18790
|
+
let CJ = (0, import_react.useCallback)((e2) => {
|
|
18791
18791
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18792
18792
|
}, [
|
|
18793
18793
|
h,
|
|
18794
18794
|
t
|
|
18795
|
-
]),
|
|
18795
|
+
]), wJ = (0, import_react.useCallback)(() => {
|
|
18796
18796
|
Q(false), E("");
|
|
18797
18797
|
}, [
|
|
18798
18798
|
Q,
|
|
18799
18799
|
E
|
|
18800
|
-
]),
|
|
18800
|
+
]), TJ = (0, import_react.useCallback)((e2) => {
|
|
18801
18801
|
if (Q(false), _) try {
|
|
18802
18802
|
$(i, t, _(e2));
|
|
18803
18803
|
} catch {
|
|
@@ -18808,14 +18808,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18808
18808
|
$,
|
|
18809
18809
|
i,
|
|
18810
18810
|
t
|
|
18811
|
-
]),
|
|
18811
|
+
]), EJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18812
18812
|
children: [
|
|
18813
18813
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18814
18814
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18815
18815
|
sx: {
|
|
18816
18816
|
fontSize: ".8rem"
|
|
18817
18817
|
},
|
|
18818
|
-
onClick:
|
|
18818
|
+
onClick: wJ
|
|
18819
18819
|
})
|
|
18820
18820
|
}),
|
|
18821
18821
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18823,22 +18823,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18823
18823
|
sx: {
|
|
18824
18824
|
fontSize: ".8rem"
|
|
18825
18825
|
},
|
|
18826
|
-
onClick: () =>
|
|
18826
|
+
onClick: () => TJ(w)
|
|
18827
18827
|
})
|
|
18828
18828
|
})
|
|
18829
18829
|
]
|
|
18830
18830
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18831
18831
|
children: [
|
|
18832
|
-
|
|
18832
|
+
_J && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18833
18833
|
onClick: (e2) => {
|
|
18834
18834
|
e2.preventDefault();
|
|
18835
18835
|
try {
|
|
18836
|
-
|
|
18836
|
+
vJ(i, t, copyString);
|
|
18837
18837
|
} catch (e3) {
|
|
18838
18838
|
console.error(e3);
|
|
18839
18839
|
}
|
|
18840
18840
|
},
|
|
18841
|
-
children:
|
|
18841
|
+
children: yJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18842
18842
|
sx: {
|
|
18843
18843
|
fontSize: ".8rem"
|
|
18844
18844
|
}
|
|
@@ -18849,16 +18849,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18849
18849
|
})
|
|
18850
18850
|
}),
|
|
18851
18851
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18852
|
-
onClick:
|
|
18852
|
+
onClick: CJ,
|
|
18853
18853
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18854
18854
|
sx: {
|
|
18855
18855
|
fontSize: ".8rem"
|
|
18856
18856
|
}
|
|
18857
18857
|
})
|
|
18858
18858
|
}),
|
|
18859
|
-
|
|
18859
|
+
pJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18860
18860
|
onClick: (e2) => {
|
|
18861
|
-
e2.preventDefault(),
|
|
18861
|
+
e2.preventDefault(), fJ == null ? void 0 : fJ(i);
|
|
18862
18862
|
},
|
|
18863
18863
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18864
18864
|
sx: {
|
|
@@ -18866,9 +18866,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18866
18866
|
}
|
|
18867
18867
|
})
|
|
18868
18868
|
}),
|
|
18869
|
-
|
|
18869
|
+
gJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18870
18870
|
onClick: (e2) => {
|
|
18871
|
-
e2.preventDefault(),
|
|
18871
|
+
e2.preventDefault(), hJ == null ? void 0 : hJ(i, t);
|
|
18872
18872
|
},
|
|
18873
18873
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18874
18874
|
sx: {
|
|
@@ -18881,24 +18881,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18881
18881
|
f,
|
|
18882
18882
|
h,
|
|
18883
18883
|
_,
|
|
18884
|
-
|
|
18885
|
-
|
|
18884
|
+
yJ,
|
|
18885
|
+
vJ,
|
|
18886
18886
|
S,
|
|
18887
18887
|
J,
|
|
18888
|
-
|
|
18889
|
-
uJ,
|
|
18888
|
+
_J,
|
|
18890
18889
|
pJ,
|
|
18890
|
+
gJ,
|
|
18891
18891
|
w,
|
|
18892
18892
|
i,
|
|
18893
18893
|
t,
|
|
18894
|
-
lJ,
|
|
18895
18894
|
fJ,
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18895
|
+
hJ,
|
|
18896
|
+
CJ,
|
|
18897
|
+
wJ,
|
|
18898
|
+
TJ
|
|
18899
|
+
]), DJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18900
18900
|
t
|
|
18901
|
-
]),
|
|
18901
|
+
]), OJ = !DJ && !!(c && d), kJ = useJsonViewerStore((e2) => e2.keyRenderer), AJ = (0, import_react.useMemo)(() => ({
|
|
18902
18902
|
path: i,
|
|
18903
18903
|
inspect: K,
|
|
18904
18904
|
setInspect: q,
|
|
@@ -18930,18 +18930,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18930
18930
|
className: "data-key",
|
|
18931
18931
|
sx: {
|
|
18932
18932
|
lineHeight: 1.5,
|
|
18933
|
-
color:
|
|
18933
|
+
color: rJ,
|
|
18934
18934
|
letterSpacing: 0.5,
|
|
18935
18935
|
opacity: 0.8
|
|
18936
18936
|
},
|
|
18937
18937
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18938
|
-
e2.isDefaultPrevented() ||
|
|
18938
|
+
e2.isDefaultPrevented() || DJ || q((e3) => !e3);
|
|
18939
18939
|
}, [
|
|
18940
|
-
|
|
18940
|
+
DJ,
|
|
18941
18941
|
q
|
|
18942
18942
|
]),
|
|
18943
18943
|
children: [
|
|
18944
|
-
|
|
18944
|
+
OJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18945
18945
|
className: "data-key-toggle-expanded",
|
|
18946
18946
|
sx: {
|
|
18947
18947
|
fontSize: ".8rem",
|
|
@@ -18959,27 +18959,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18959
18959
|
}
|
|
18960
18960
|
}) : null,
|
|
18961
18961
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18962
|
-
ref:
|
|
18962
|
+
ref: SJ,
|
|
18963
18963
|
className: "data-key-key",
|
|
18964
18964
|
component: "span",
|
|
18965
|
-
children:
|
|
18965
|
+
children: lJ && O === 0 ? cJ === false ? null : sJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18966
18966
|
children: [
|
|
18967
18967
|
'"',
|
|
18968
|
-
|
|
18968
|
+
cJ,
|
|
18969
18969
|
'"'
|
|
18970
18970
|
]
|
|
18971
18971
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18972
|
-
children:
|
|
18973
|
-
}) :
|
|
18974
|
-
...
|
|
18975
|
-
}) : a === void 0 && (
|
|
18972
|
+
children: cJ
|
|
18973
|
+
}) : kJ.when(AJ) ? (0, import_jsx_runtime.jsx)(kJ, {
|
|
18974
|
+
...AJ
|
|
18975
|
+
}) : a === void 0 && (uJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18976
18976
|
component: "span",
|
|
18977
18977
|
style: {
|
|
18978
|
-
color:
|
|
18979
|
-
userSelect:
|
|
18978
|
+
color: iJ,
|
|
18979
|
+
userSelect: uJ ? "none" : "auto"
|
|
18980
18980
|
},
|
|
18981
18981
|
children: A
|
|
18982
|
-
}) :
|
|
18982
|
+
}) : sJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18983
18983
|
children: [
|
|
18984
18984
|
'"',
|
|
18985
18985
|
A,
|
|
@@ -18989,7 +18989,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18989
18989
|
children: A
|
|
18990
18990
|
}))
|
|
18991
18991
|
}),
|
|
18992
|
-
|
|
18992
|
+
lJ ? cJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18993
18993
|
className: "data-key-colon",
|
|
18994
18994
|
sx: {
|
|
18995
18995
|
mr: 0.5
|
|
@@ -19002,38 +19002,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19002
19002
|
".data-key-key:empty + &": {
|
|
19003
19003
|
display: "none"
|
|
19004
19004
|
},
|
|
19005
|
-
userSelect:
|
|
19005
|
+
userSelect: uJ ? "none" : "auto"
|
|
19006
19006
|
},
|
|
19007
19007
|
children: ":"
|
|
19008
19008
|
}),
|
|
19009
19009
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19010
|
-
...
|
|
19010
|
+
...AJ
|
|
19011
19011
|
}),
|
|
19012
|
-
I &&
|
|
19012
|
+
I && OJ && K && EJ
|
|
19013
19013
|
]
|
|
19014
19014
|
}),
|
|
19015
19015
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19016
19016
|
path: i,
|
|
19017
19017
|
value: w,
|
|
19018
19018
|
setValue: E,
|
|
19019
|
-
abortEditing:
|
|
19020
|
-
commitEditing:
|
|
19019
|
+
abortEditing: wJ,
|
|
19020
|
+
commitEditing: TJ
|
|
19021
19021
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19022
|
-
...
|
|
19022
|
+
...AJ
|
|
19023
19023
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19024
19024
|
component: "span",
|
|
19025
19025
|
className: "data-value-fallback",
|
|
19026
19026
|
children: `fallback: ${t}`
|
|
19027
19027
|
}),
|
|
19028
19028
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19029
|
-
...
|
|
19029
|
+
...AJ
|
|
19030
19030
|
}),
|
|
19031
|
-
!o &&
|
|
19031
|
+
!o && oJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19032
19032
|
children: ","
|
|
19033
19033
|
}),
|
|
19034
|
-
I &&
|
|
19035
|
-
I && !
|
|
19036
|
-
!I && J &&
|
|
19034
|
+
I && OJ && !K && EJ,
|
|
19035
|
+
I && !OJ && EJ,
|
|
19036
|
+
!I && J && EJ
|
|
19037
19037
|
]
|
|
19038
19038
|
});
|
|
19039
19039
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20112,7 +20112,7 @@ ${n}` : "Please fix this error.";
|
|
|
20112
20112
|
else if (n.some(_temp3$5)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
|
|
20113
20113
|
else if (n.some(_temp4$5)) d = "Ancestor stopped", f = "default", _ = "text-secondary-foreground";
|
|
20114
20114
|
else if (n.some(_temp5$3)) d = "SQL error";
|
|
20115
|
-
else if (n.some(_temp6$
|
|
20115
|
+
else if (n.some(_temp6$3)) d = null, v = "Cell not run";
|
|
20116
20116
|
else {
|
|
20117
20117
|
let e2;
|
|
20118
20118
|
t[0] === n ? e2 = t[1] : (e2 = n.find(_temp7$1), t[0] = n, t[1] = e2);
|
|
@@ -20121,18 +20121,18 @@ ${n}` : "Please fix this error.";
|
|
|
20121
20121
|
}
|
|
20122
20122
|
let y, S, w, E, O, A;
|
|
20123
20123
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20124
|
-
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12),
|
|
20125
|
-
t[17] === s ?
|
|
20124
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), $ = n.filter(_temp14), rJ = n.filter(_temp15), iJ = n.filter(_temp16), aJ = n.filter(_temp17), oJ = n.filter(_temp18), sJ;
|
|
20125
|
+
t[17] === s ? sJ = t[18] : (sJ = () => {
|
|
20126
20126
|
s.openApplication("scratchpad");
|
|
20127
|
-
}, t[17] = s, t[18] =
|
|
20128
|
-
let
|
|
20127
|
+
}, t[17] = s, t[18] = sJ);
|
|
20128
|
+
let cJ = sJ, lJ = () => {
|
|
20129
20129
|
let t2 = [];
|
|
20130
|
-
if (
|
|
20131
|
-
let e3 =
|
|
20130
|
+
if (iJ.length > 0 || aJ.length > 0) {
|
|
20131
|
+
let e3 = iJ.some(_temp19), n2 = !e3 && iJ.some(_temp20);
|
|
20132
20132
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20133
20133
|
children: [
|
|
20134
|
-
|
|
20135
|
-
|
|
20134
|
+
iJ.map(_temp21),
|
|
20135
|
+
aJ.map(_temp22),
|
|
20136
20136
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20137
20137
|
size: "xs",
|
|
20138
20138
|
variant: "outline",
|
|
@@ -20163,8 +20163,8 @@ ${n}` : "Please fix this error.";
|
|
|
20163
20163
|
}),
|
|
20164
20164
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20165
20165
|
errors: [
|
|
20166
|
-
...
|
|
20167
|
-
...
|
|
20166
|
+
...iJ,
|
|
20167
|
+
...aJ
|
|
20168
20168
|
],
|
|
20169
20169
|
cellId: i
|
|
20170
20170
|
})
|
|
@@ -20325,7 +20325,7 @@ ${n}` : "Please fix this error.";
|
|
|
20325
20325
|
size: "xs",
|
|
20326
20326
|
variant: "link",
|
|
20327
20327
|
className: "my-2 font-normal mx-0 px-0",
|
|
20328
|
-
onClick:
|
|
20328
|
+
onClick: cJ,
|
|
20329
20329
|
children: [
|
|
20330
20330
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20331
20331
|
className: "h-3"
|
|
@@ -20500,11 +20500,11 @@ ${n}` : "Please fix this error.";
|
|
|
20500
20500
|
children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
20501
20501
|
})
|
|
20502
20502
|
]
|
|
20503
|
-
}, "strict-exception")),
|
|
20503
|
+
}, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20504
20504
|
children: [
|
|
20505
|
-
|
|
20505
|
+
J.map(_temp32),
|
|
20506
20506
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20507
|
-
errors:
|
|
20507
|
+
errors: J,
|
|
20508
20508
|
cellId: i
|
|
20509
20509
|
})
|
|
20510
20510
|
]
|
|
@@ -20516,26 +20516,26 @@ ${n}` : "Please fix this error.";
|
|
|
20516
20516
|
cellId: i
|
|
20517
20517
|
})
|
|
20518
20518
|
]
|
|
20519
|
-
}, "ancestor-prevented")),
|
|
20519
|
+
}, "ancestor-prevented")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20520
20520
|
children: [
|
|
20521
|
-
|
|
20521
|
+
rJ.map(_temp34),
|
|
20522
20522
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20523
|
-
errors:
|
|
20523
|
+
errors: rJ,
|
|
20524
20524
|
cellId: i
|
|
20525
20525
|
})
|
|
20526
20526
|
]
|
|
20527
|
-
}, "ancestor-stopped")),
|
|
20527
|
+
}, "ancestor-stopped")), oJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20528
20528
|
children: [
|
|
20529
|
-
|
|
20529
|
+
oJ.map(_temp35),
|
|
20530
20530
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20531
|
-
errors:
|
|
20531
|
+
errors: oJ,
|
|
20532
20532
|
cellId: i,
|
|
20533
20533
|
className: "mt-2.5"
|
|
20534
20534
|
})
|
|
20535
20535
|
]
|
|
20536
20536
|
}, "sql-errors")), t2;
|
|
20537
|
-
},
|
|
20538
|
-
t[19] === v ?
|
|
20537
|
+
}, uJ;
|
|
20538
|
+
t[19] === v ? uJ = t[20] : (uJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20539
20539
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20540
20540
|
children: [
|
|
20541
20541
|
v,
|
|
@@ -20547,22 +20547,22 @@ ${n}` : "Please fix this error.";
|
|
|
20547
20547
|
})
|
|
20548
20548
|
})
|
|
20549
20549
|
]
|
|
20550
|
-
}), t[19] = v, t[20] =
|
|
20551
|
-
let
|
|
20552
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20550
|
+
}), t[19] = v, t[20] = uJ);
|
|
20551
|
+
let dJ;
|
|
20552
|
+
t[21] !== _ || t[22] !== d ? (dJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20553
20553
|
className: `font-code font-medium ${_}`,
|
|
20554
20554
|
children: d
|
|
20555
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20556
|
-
let
|
|
20557
|
-
t[24] !==
|
|
20555
|
+
}), t[21] = _, t[22] = d, t[23] = dJ) : dJ = t[23];
|
|
20556
|
+
let fJ;
|
|
20557
|
+
t[24] !== uJ || t[25] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20558
20558
|
className: "space-y-0.5",
|
|
20559
20559
|
children: [
|
|
20560
|
-
|
|
20561
|
-
|
|
20560
|
+
uJ,
|
|
20561
|
+
dJ
|
|
20562
20562
|
]
|
|
20563
|
-
}), t[24] =
|
|
20564
|
-
let
|
|
20565
|
-
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A =
|
|
20563
|
+
}), t[24] = uJ, t[25] = dJ, t[26] = fJ) : fJ = t[26];
|
|
20564
|
+
let pJ = fJ;
|
|
20565
|
+
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = pJ, S = "flex flex-col gap-4", w = lJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
|
|
20566
20566
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20567
20567
|
let M;
|
|
20568
20568
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20594,7 +20594,7 @@ ${n}` : "Please fix this error.";
|
|
|
20594
20594
|
function _temp5$3(e) {
|
|
20595
20595
|
return e.type === "sql-error";
|
|
20596
20596
|
}
|
|
20597
|
-
function _temp6$
|
|
20597
|
+
function _temp6$3(e) {
|
|
20598
20598
|
return e.type === "multiple-defs" || e.type === "cycle" || e.type === "setup-refs" || e.type === "import-star";
|
|
20599
20599
|
}
|
|
20600
20600
|
function _temp7$1(e) {
|
|
@@ -26614,7 +26614,7 @@ ${n}` : "Please fix this error.";
|
|
|
26614
26614
|
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 }) {
|
|
26615
26615
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26616
26616
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26617
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26617
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), rJ = (0, import_react.useRef)({
|
|
26618
26618
|
callbacks: {
|
|
26619
26619
|
onCollapse: f,
|
|
26620
26620
|
onExpand: h,
|
|
@@ -26634,12 +26634,12 @@ ${n}` : "Please fix this error.";
|
|
|
26634
26634
|
(0, import_react.useRef)({
|
|
26635
26635
|
didLogMissingDefaultSizeWarning: false
|
|
26636
26636
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26637
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26637
|
+
let { callbacks: e2, constraints: t2 } = rJ.current, o2 = {
|
|
26638
26638
|
...t2
|
|
26639
26639
|
};
|
|
26640
|
-
|
|
26640
|
+
rJ.current.id = $, rJ.current.idIsFromProps = s !== void 0, rJ.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(rJ.current, o2);
|
|
26641
26641
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26642
|
-
let e2 =
|
|
26642
|
+
let e2 = rJ.current;
|
|
26643
26643
|
return q(e2), () => {
|
|
26644
26644
|
Q(e2);
|
|
26645
26645
|
};
|
|
@@ -26650,25 +26650,25 @@ ${n}` : "Please fix this error.";
|
|
|
26650
26650
|
Q
|
|
26651
26651
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26652
26652
|
collapse: () => {
|
|
26653
|
-
O(
|
|
26653
|
+
O(rJ.current);
|
|
26654
26654
|
},
|
|
26655
26655
|
expand: (e2) => {
|
|
26656
|
-
A(
|
|
26656
|
+
A(rJ.current, e2);
|
|
26657
26657
|
},
|
|
26658
26658
|
getId() {
|
|
26659
26659
|
return $;
|
|
26660
26660
|
},
|
|
26661
26661
|
getSize() {
|
|
26662
|
-
return M(
|
|
26662
|
+
return M(rJ.current);
|
|
26663
26663
|
},
|
|
26664
26664
|
isCollapsed() {
|
|
26665
|
-
return U(
|
|
26665
|
+
return U(rJ.current);
|
|
26666
26666
|
},
|
|
26667
26667
|
isExpanded() {
|
|
26668
|
-
return !U(
|
|
26668
|
+
return !U(rJ.current);
|
|
26669
26669
|
},
|
|
26670
26670
|
resize: (e2) => {
|
|
26671
|
-
J(
|
|
26671
|
+
J(rJ.current, e2);
|
|
26672
26672
|
}
|
|
26673
26673
|
}), [
|
|
26674
26674
|
O,
|
|
@@ -26678,21 +26678,21 @@ ${n}` : "Please fix this error.";
|
|
|
26678
26678
|
$,
|
|
26679
26679
|
J
|
|
26680
26680
|
]);
|
|
26681
|
-
let
|
|
26681
|
+
let iJ = I(rJ.current, a);
|
|
26682
26682
|
return (0, import_react.createElement)(S, {
|
|
26683
26683
|
...w,
|
|
26684
26684
|
children: e,
|
|
26685
26685
|
className: t,
|
|
26686
26686
|
id: $,
|
|
26687
26687
|
style: {
|
|
26688
|
-
...
|
|
26688
|
+
...iJ,
|
|
26689
26689
|
...y
|
|
26690
26690
|
},
|
|
26691
26691
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26692
26692
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26693
26693
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26694
26694
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26695
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26695
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + iJ.flexGrow).toFixed(1)
|
|
26696
26696
|
});
|
|
26697
26697
|
}
|
|
26698
26698
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27477,13 +27477,13 @@ ${n}` : "Please fix this error.";
|
|
|
27477
27477
|
}, [
|
|
27478
27478
|
S,
|
|
27479
27479
|
E
|
|
27480
|
-
]),
|
|
27480
|
+
]), rJ = (0, import_react.useCallback)((e2) => {
|
|
27481
27481
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27482
27482
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27483
|
-
}, []),
|
|
27483
|
+
}, []), iJ = (0, import_react.useCallback)((e2) => {
|
|
27484
27484
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27485
27485
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27486
|
-
}, []),
|
|
27486
|
+
}, []), aJ = (0, import_react.useCallback)((e2) => {
|
|
27487
27487
|
let { panelDataArray: t2 } = K.current;
|
|
27488
27488
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27489
27489
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27515,7 +27515,7 @@ ${n}` : "Please fix this error.";
|
|
|
27515
27515
|
e2.layout = [];
|
|
27516
27516
|
};
|
|
27517
27517
|
}, []);
|
|
27518
|
-
let
|
|
27518
|
+
let oJ = (0, import_react.useCallback)((e2) => {
|
|
27519
27519
|
let t2 = false, n2 = y.current;
|
|
27520
27520
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27521
27521
|
n3.preventDefault();
|
|
@@ -27533,7 +27533,7 @@ ${n}` : "Please fix this error.";
|
|
|
27533
27533
|
}), I2 = !compareLayouts(f2, A2);
|
|
27534
27534
|
(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));
|
|
27535
27535
|
};
|
|
27536
|
-
}, []),
|
|
27536
|
+
}, []), sJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27537
27537
|
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);
|
|
27538
27538
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27539
27539
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27545,12 +27545,12 @@ ${n}` : "Please fix this error.";
|
|
|
27545
27545
|
trigger: "imperative-api"
|
|
27546
27546
|
});
|
|
27547
27547
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27548
|
-
}, []),
|
|
27548
|
+
}, []), cJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27549
27549
|
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);
|
|
27550
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27550
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || sJ(e2, s2) : h2 < f2 ? sJ(e2, f2) : h2 > d2 && sJ(e2, d2));
|
|
27551
27551
|
}, [
|
|
27552
|
-
|
|
27553
|
-
]),
|
|
27552
|
+
sJ
|
|
27553
|
+
]), lJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27554
27554
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27555
27555
|
if (!y.current) return;
|
|
27556
27556
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27562,14 +27562,14 @@ ${n}` : "Please fix this error.";
|
|
|
27562
27562
|
initialCursorPosition: o2,
|
|
27563
27563
|
initialLayout: i2
|
|
27564
27564
|
});
|
|
27565
|
-
}, []),
|
|
27565
|
+
}, []), uJ = (0, import_react.useCallback)(() => {
|
|
27566
27566
|
w(null);
|
|
27567
|
-
}, []),
|
|
27567
|
+
}, []), dJ = (0, import_react.useCallback)((e2) => {
|
|
27568
27568
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27569
27569
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27570
27570
|
}, [
|
|
27571
27571
|
A
|
|
27572
|
-
]),
|
|
27572
|
+
]), fJ = (0, import_react.useMemo)(() => ({
|
|
27573
27573
|
collapsePanel: q,
|
|
27574
27574
|
direction: i,
|
|
27575
27575
|
dragState: S,
|
|
@@ -27577,15 +27577,15 @@ ${n}` : "Please fix this error.";
|
|
|
27577
27577
|
getPanelSize: Q,
|
|
27578
27578
|
getPanelStyle: $,
|
|
27579
27579
|
groupId: v,
|
|
27580
|
-
isPanelCollapsed:
|
|
27581
|
-
isPanelExpanded:
|
|
27582
|
-
reevaluatePanelConstraints:
|
|
27583
|
-
registerPanel:
|
|
27584
|
-
registerResizeHandle:
|
|
27585
|
-
resizePanel:
|
|
27586
|
-
startDragging:
|
|
27587
|
-
stopDragging:
|
|
27588
|
-
unregisterPanel:
|
|
27580
|
+
isPanelCollapsed: rJ,
|
|
27581
|
+
isPanelExpanded: iJ,
|
|
27582
|
+
reevaluatePanelConstraints: cJ,
|
|
27583
|
+
registerPanel: aJ,
|
|
27584
|
+
registerResizeHandle: oJ,
|
|
27585
|
+
resizePanel: sJ,
|
|
27586
|
+
startDragging: lJ,
|
|
27587
|
+
stopDragging: uJ,
|
|
27588
|
+
unregisterPanel: dJ,
|
|
27589
27589
|
panelGroupElement: y.current
|
|
27590
27590
|
}), [
|
|
27591
27591
|
q,
|
|
@@ -27595,16 +27595,16 @@ ${n}` : "Please fix this error.";
|
|
|
27595
27595
|
Q,
|
|
27596
27596
|
$,
|
|
27597
27597
|
v,
|
|
27598
|
-
eJ,
|
|
27599
|
-
tJ,
|
|
27600
|
-
aJ,
|
|
27601
|
-
nJ,
|
|
27602
27598
|
rJ,
|
|
27603
27599
|
iJ,
|
|
27600
|
+
cJ,
|
|
27601
|
+
aJ,
|
|
27604
27602
|
oJ,
|
|
27605
27603
|
sJ,
|
|
27606
|
-
|
|
27607
|
-
|
|
27604
|
+
lJ,
|
|
27605
|
+
uJ,
|
|
27606
|
+
dJ
|
|
27607
|
+
]), pJ = {
|
|
27608
27608
|
display: "flex",
|
|
27609
27609
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27610
27610
|
height: "100%",
|
|
@@ -27612,7 +27612,7 @@ ${n}` : "Please fix this error.";
|
|
|
27612
27612
|
width: "100%"
|
|
27613
27613
|
};
|
|
27614
27614
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27615
|
-
value:
|
|
27615
|
+
value: fJ
|
|
27616
27616
|
}, (0, import_react.createElement)(h, {
|
|
27617
27617
|
..._,
|
|
27618
27618
|
children: t,
|
|
@@ -27620,7 +27620,7 @@ ${n}` : "Please fix this error.";
|
|
|
27620
27620
|
id: o,
|
|
27621
27621
|
ref: y,
|
|
27622
27622
|
style: {
|
|
27623
|
-
...
|
|
27623
|
+
...pJ,
|
|
27624
27624
|
...f
|
|
27625
27625
|
},
|
|
27626
27626
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27697,31 +27697,31 @@ ${n}` : "Please fix this error.";
|
|
|
27697
27697
|
});
|
|
27698
27698
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27699
27699
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27700
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27700
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, rJ] = (0, import_react.useState)(false), [iJ, aJ] = (0, import_react.useState)(null), oJ = (0, import_react.useRef)({
|
|
27701
27701
|
state: J
|
|
27702
27702
|
});
|
|
27703
27703
|
useIsomorphicLayoutEffect$1(() => {
|
|
27704
|
-
|
|
27704
|
+
oJ.current.state = J;
|
|
27705
27705
|
}), (0, import_react.useEffect)(() => {
|
|
27706
|
-
if (n)
|
|
27706
|
+
if (n) aJ(null);
|
|
27707
27707
|
else {
|
|
27708
27708
|
let e2 = I(q);
|
|
27709
|
-
|
|
27709
|
+
aJ(() => e2);
|
|
27710
27710
|
}
|
|
27711
27711
|
}, [
|
|
27712
27712
|
n,
|
|
27713
27713
|
q,
|
|
27714
27714
|
I
|
|
27715
27715
|
]);
|
|
27716
|
-
let
|
|
27716
|
+
let sJ = (i == null ? void 0 : i.coarse) ?? 15, cJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27717
27717
|
(0, import_react.useEffect)(() => {
|
|
27718
|
-
if (n ||
|
|
27718
|
+
if (n || iJ == null) return;
|
|
27719
27719
|
let e2 = w.current;
|
|
27720
27720
|
assert(e2, "Element ref not attached");
|
|
27721
27721
|
let t2 = false;
|
|
27722
27722
|
return registerResizeHandle(q, e2, A, {
|
|
27723
|
-
coarse:
|
|
27724
|
-
fine:
|
|
27723
|
+
coarse: sJ,
|
|
27724
|
+
fine: cJ
|
|
27725
27725
|
}, (e3, n2, i2) => {
|
|
27726
27726
|
if (!n2) {
|
|
27727
27727
|
Q("inactive");
|
|
@@ -27735,8 +27735,8 @@ ${n}` : "Please fix this error.";
|
|
|
27735
27735
|
break;
|
|
27736
27736
|
}
|
|
27737
27737
|
case "move": {
|
|
27738
|
-
let { state: e4 } =
|
|
27739
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27738
|
+
let { state: e4 } = oJ.current;
|
|
27739
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), iJ(i2);
|
|
27740
27740
|
break;
|
|
27741
27741
|
}
|
|
27742
27742
|
case "up": {
|
|
@@ -27748,22 +27748,22 @@ ${n}` : "Please fix this error.";
|
|
|
27748
27748
|
}
|
|
27749
27749
|
});
|
|
27750
27750
|
}, [
|
|
27751
|
-
|
|
27751
|
+
sJ,
|
|
27752
27752
|
A,
|
|
27753
27753
|
n,
|
|
27754
|
-
|
|
27754
|
+
cJ,
|
|
27755
27755
|
I,
|
|
27756
27756
|
q,
|
|
27757
|
-
|
|
27757
|
+
iJ,
|
|
27758
27758
|
z,
|
|
27759
27759
|
U
|
|
27760
27760
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27761
27761
|
disabled: n,
|
|
27762
27762
|
handleId: q,
|
|
27763
|
-
resizeHandler:
|
|
27763
|
+
resizeHandler: iJ,
|
|
27764
27764
|
panelGroupElement: K
|
|
27765
27765
|
});
|
|
27766
|
-
let
|
|
27766
|
+
let lJ = {
|
|
27767
27767
|
touchAction: "none",
|
|
27768
27768
|
userSelect: "none"
|
|
27769
27769
|
};
|
|
@@ -27773,15 +27773,15 @@ ${n}` : "Please fix this error.";
|
|
|
27773
27773
|
className: t,
|
|
27774
27774
|
id: a,
|
|
27775
27775
|
onBlur: () => {
|
|
27776
|
-
|
|
27776
|
+
rJ(false), o == null ? void 0 : o();
|
|
27777
27777
|
},
|
|
27778
27778
|
onFocus: () => {
|
|
27779
|
-
|
|
27779
|
+
rJ(true), d == null ? void 0 : d();
|
|
27780
27780
|
},
|
|
27781
27781
|
ref: w,
|
|
27782
27782
|
role: "separator",
|
|
27783
27783
|
style: {
|
|
27784
|
-
...
|
|
27784
|
+
...lJ,
|
|
27785
27785
|
..._
|
|
27786
27786
|
},
|
|
27787
27787
|
tabIndex: v,
|
|
@@ -28080,7 +28080,7 @@ ${n}` : "Please fix this error.";
|
|
|
28080
28080
|
}, [
|
|
28081
28081
|
h
|
|
28082
28082
|
]), k(() => {
|
|
28083
|
-
U(6,
|
|
28083
|
+
U(6, iJ);
|
|
28084
28084
|
}, []);
|
|
28085
28085
|
let K = import_react.useMemo(() => ({
|
|
28086
28086
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28089,7 +28089,7 @@ ${n}` : "Please fix this error.";
|
|
|
28089
28089
|
var _a2;
|
|
28090
28090
|
var a2, o2, s2;
|
|
28091
28091
|
if (!Object.is(n.current[e2], t2)) {
|
|
28092
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28092
|
+
if (n.current[e2] = t2, e2 === "search") rJ(), Q(), U(1, $);
|
|
28093
28093
|
else if (e2 === "value") {
|
|
28094
28094
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28095
28095
|
let e3 = document.getElementById(I);
|
|
@@ -28097,8 +28097,8 @@ ${n}` : "Please fix this error.";
|
|
|
28097
28097
|
}
|
|
28098
28098
|
if (U(7, () => {
|
|
28099
28099
|
var _a3;
|
|
28100
|
-
n.current.selectedItemId = (_a3 =
|
|
28101
|
-
}), i2 || U(5,
|
|
28100
|
+
n.current.selectedItemId = (_a3 = aJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28101
|
+
}), i2 || U(5, iJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28102
28102
|
let e3 = t2 ?? "";
|
|
28103
28103
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28104
28104
|
return;
|
|
@@ -28123,12 +28123,12 @@ ${n}` : "Please fix this error.";
|
|
|
28123
28123
|
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([
|
|
28124
28124
|
e2
|
|
28125
28125
|
]))), U(3, () => {
|
|
28126
|
-
|
|
28126
|
+
rJ(), Q(), n.current.value || $(), K.emit();
|
|
28127
28127
|
}), () => {
|
|
28128
28128
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28129
|
-
let t3 =
|
|
28129
|
+
let t3 = aJ();
|
|
28130
28130
|
U(4, () => {
|
|
28131
|
-
|
|
28131
|
+
rJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28132
28132
|
});
|
|
28133
28133
|
}),
|
|
28134
28134
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28161,7 +28161,7 @@ ${n}` : "Please fix this error.";
|
|
|
28161
28161
|
]);
|
|
28162
28162
|
});
|
|
28163
28163
|
let i2 = z.current;
|
|
28164
|
-
|
|
28164
|
+
oJ().sort((t3, n2) => {
|
|
28165
28165
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28166
28166
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28167
28167
|
}).forEach((e3) => {
|
|
@@ -28175,10 +28175,10 @@ ${n}` : "Please fix this error.";
|
|
|
28175
28175
|
}
|
|
28176
28176
|
function $() {
|
|
28177
28177
|
var _a2;
|
|
28178
|
-
let e2 = (_a2 =
|
|
28178
|
+
let e2 = (_a2 = oJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28179
28179
|
K.setState("value", e2 || void 0);
|
|
28180
28180
|
}
|
|
28181
|
-
function
|
|
28181
|
+
function rJ() {
|
|
28182
28182
|
var _a2, _b;
|
|
28183
28183
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28184
28184
|
n.current.filtered.count = i.current.size;
|
|
@@ -28196,43 +28196,43 @@ ${n}` : "Please fix this error.";
|
|
|
28196
28196
|
}
|
|
28197
28197
|
n.current.filtered.count = e2;
|
|
28198
28198
|
}
|
|
28199
|
-
function
|
|
28199
|
+
function iJ() {
|
|
28200
28200
|
var _a2, _b;
|
|
28201
28201
|
var e2;
|
|
28202
|
-
let t2 =
|
|
28202
|
+
let t2 = aJ();
|
|
28203
28203
|
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({
|
|
28204
28204
|
block: "nearest"
|
|
28205
28205
|
})), t2.scrollIntoView({
|
|
28206
28206
|
block: "nearest"
|
|
28207
28207
|
}));
|
|
28208
28208
|
}
|
|
28209
|
-
function
|
|
28209
|
+
function aJ() {
|
|
28210
28210
|
var _a2;
|
|
28211
28211
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28212
28212
|
}
|
|
28213
|
-
function
|
|
28213
|
+
function oJ() {
|
|
28214
28214
|
var _a2;
|
|
28215
28215
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28216
28216
|
}
|
|
28217
|
-
function
|
|
28218
|
-
let t2 =
|
|
28217
|
+
function sJ(e2) {
|
|
28218
|
+
let t2 = oJ()[e2];
|
|
28219
28219
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28220
28220
|
}
|
|
28221
|
-
function
|
|
28221
|
+
function cJ(e2) {
|
|
28222
28222
|
var t2;
|
|
28223
|
-
let n2 =
|
|
28223
|
+
let n2 = aJ(), i2 = oJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28224
28224
|
(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));
|
|
28225
28225
|
}
|
|
28226
|
-
function
|
|
28226
|
+
function lJ(e2) {
|
|
28227
28227
|
var _a2;
|
|
28228
|
-
let t2 = (_a2 =
|
|
28228
|
+
let t2 = (_a2 = aJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28229
28229
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28230
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28230
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : cJ(e2);
|
|
28231
28231
|
}
|
|
28232
|
-
let
|
|
28233
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28234
|
-
},
|
|
28235
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28232
|
+
let uJ = () => sJ(oJ().length - 1), dJ = (e2) => {
|
|
28233
|
+
e2.preventDefault(), e2.metaKey ? uJ() : e2.altKey ? lJ(1) : cJ(1);
|
|
28234
|
+
}, fJ = (e2) => {
|
|
28235
|
+
e2.preventDefault(), e2.metaKey ? sJ(0) : e2.altKey ? lJ(-1) : cJ(-1);
|
|
28236
28236
|
};
|
|
28237
28237
|
return import_react.createElement(Primitive.div, {
|
|
28238
28238
|
ref: t,
|
|
@@ -28246,27 +28246,27 @@ ${n}` : "Please fix this error.";
|
|
|
28246
28246
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28247
28247
|
case "n":
|
|
28248
28248
|
case "j":
|
|
28249
|
-
E && e2.ctrlKey &&
|
|
28249
|
+
E && e2.ctrlKey && dJ(e2);
|
|
28250
28250
|
break;
|
|
28251
28251
|
case "ArrowDown":
|
|
28252
|
-
|
|
28252
|
+
dJ(e2);
|
|
28253
28253
|
break;
|
|
28254
28254
|
case "p":
|
|
28255
28255
|
case "k":
|
|
28256
|
-
E && e2.ctrlKey &&
|
|
28256
|
+
E && e2.ctrlKey && fJ(e2);
|
|
28257
28257
|
break;
|
|
28258
28258
|
case "ArrowUp":
|
|
28259
|
-
|
|
28259
|
+
fJ(e2);
|
|
28260
28260
|
break;
|
|
28261
28261
|
case "Home":
|
|
28262
|
-
e2.preventDefault(),
|
|
28262
|
+
e2.preventDefault(), sJ(0);
|
|
28263
28263
|
break;
|
|
28264
28264
|
case "End":
|
|
28265
|
-
e2.preventDefault(),
|
|
28265
|
+
e2.preventDefault(), uJ();
|
|
28266
28266
|
break;
|
|
28267
28267
|
case "Enter": {
|
|
28268
28268
|
e2.preventDefault();
|
|
28269
|
-
let t3 =
|
|
28269
|
+
let t3 = aJ();
|
|
28270
28270
|
if (t3) {
|
|
28271
28271
|
let e3 = new Event(Z);
|
|
28272
28272
|
t3.dispatchEvent(e3);
|
|
@@ -28673,59 +28673,59 @@ ${n}` : "Please fix this error.";
|
|
|
28673
28673
|
onSelect: Functions.NOOP
|
|
28674
28674
|
});
|
|
28675
28675
|
Combobox = (e) => {
|
|
28676
|
-
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J,
|
|
28677
|
-
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], J = t[23],
|
|
28678
|
-
let
|
|
28679
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28676
|
+
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
|
|
28677
|
+
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], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = 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, t[23] = J, t[24] = Q);
|
|
28678
|
+
let $ = I === void 0 ? false : I, rJ = z === void 0 ? true : z, iJ = U === void 0 ? "Search..." : U, aJ = K === void 0 ? "Nothing found." : K, oJ = q === void 0 ? false : q, sJ = J === void 0 ? false : J, cJ = s ?? false, lJ;
|
|
28679
|
+
t[25] !== v || t[26] !== w || t[27] !== cJ ? (lJ = {
|
|
28680
28680
|
prop: w,
|
|
28681
|
-
defaultProp:
|
|
28681
|
+
defaultProp: cJ,
|
|
28682
28682
|
onChange: v
|
|
28683
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28684
|
-
let [
|
|
28685
|
-
t[29] === S ?
|
|
28683
|
+
}, t[25] = v, t[26] = w, t[27] = cJ, t[28] = lJ) : lJ = t[28];
|
|
28684
|
+
let [uJ, dJ] = useControllableState(lJ), fJ = uJ === void 0 ? false : uJ, pJ;
|
|
28685
|
+
t[29] === S ? pJ = t[30] : (pJ = (e2) => {
|
|
28686
28686
|
S == null ? void 0 : S(e2);
|
|
28687
|
-
}, t[29] = S, t[30] =
|
|
28688
|
-
let
|
|
28689
|
-
t[31] !== c || t[32] !==
|
|
28690
|
-
prop:
|
|
28687
|
+
}, t[29] = S, t[30] = pJ);
|
|
28688
|
+
let mJ;
|
|
28689
|
+
t[31] !== c || t[32] !== pJ || t[33] !== Q ? (mJ = {
|
|
28690
|
+
prop: Q,
|
|
28691
28691
|
defaultProp: c,
|
|
28692
|
-
onChange:
|
|
28693
|
-
}, t[31] = c, t[32] =
|
|
28694
|
-
let [
|
|
28695
|
-
t[35] ===
|
|
28696
|
-
let
|
|
28697
|
-
t[37] !== _ || t[38] !==
|
|
28692
|
+
onChange: pJ
|
|
28693
|
+
}, t[31] = c, t[32] = pJ, t[33] = Q, t[34] = mJ) : mJ = t[34];
|
|
28694
|
+
let [hJ, gJ] = useControllableState(mJ), _J;
|
|
28695
|
+
t[35] === hJ ? _J = t[36] : (_J = (e2) => Array.isArray(hJ) ? hJ.includes(e2) : hJ === e2, t[35] = hJ, t[36] = _J);
|
|
28696
|
+
let vJ = _J, yJ;
|
|
28697
|
+
t[37] !== _ || t[38] !== $ || t[39] !== dJ || t[40] !== gJ || t[41] !== hJ ? (yJ = (e2) => {
|
|
28698
28698
|
let t2 = e2;
|
|
28699
|
-
if (
|
|
28700
|
-
let n2 =
|
|
28699
|
+
if ($) if (Array.isArray(hJ)) if (hJ.includes(t2)) {
|
|
28700
|
+
let n2 = hJ.filter((t3) => t3 !== e2);
|
|
28701
28701
|
t2 = n2.length > 0 ? n2 : [];
|
|
28702
28702
|
} else t2 = [
|
|
28703
|
-
...
|
|
28703
|
+
...hJ,
|
|
28704
28704
|
t2
|
|
28705
28705
|
];
|
|
28706
28706
|
else t2 = [
|
|
28707
28707
|
t2
|
|
28708
28708
|
];
|
|
28709
|
-
else
|
|
28710
|
-
|
|
28711
|
-
}, t[37] = _, t[38] =
|
|
28712
|
-
let vJ = _J, yJ;
|
|
28713
|
-
t[43] !== iJ || t[44] !== d || t[45] !== eJ || t[46] !== E || t[47] !== pJ ? (yJ = () => eJ && iJ && E ? E : pJ == null ? E ?? "--" : Array.isArray(pJ) ? pJ.length === 0 ? E ?? "--" : pJ.length === 1 && d !== void 0 ? d(pJ[0]) : `${pJ.length} selected` : d === void 0 ? E ?? "--" : d(pJ), t[43] = iJ, t[44] = d, t[45] = eJ, t[46] = E, t[47] = pJ, t[48] = yJ) : yJ = t[48];
|
|
28709
|
+
else hJ === e2 && (t2 = null);
|
|
28710
|
+
gJ(t2), (_ ?? $) || dJ(false);
|
|
28711
|
+
}, t[37] = _, t[38] = $, t[39] = dJ, t[40] = gJ, t[41] = hJ, t[42] = yJ) : yJ = t[42];
|
|
28714
28712
|
let bJ = yJ, xJ;
|
|
28715
|
-
t[
|
|
28716
|
-
isSelected: gJ,
|
|
28717
|
-
onSelect: vJ
|
|
28718
|
-
}, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
|
|
28713
|
+
t[43] !== oJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== hJ ? (xJ = () => $ && oJ && E ? E : hJ == null ? E ?? "--" : Array.isArray(hJ) ? hJ.length === 0 ? E ?? "--" : hJ.length === 1 && d !== void 0 ? d(hJ[0]) : `${hJ.length} selected` : d === void 0 ? E ?? "--" : d(hJ), t[43] = oJ, t[44] = d, t[45] = $, t[46] = E, t[47] = hJ, t[48] = xJ) : xJ = t[48];
|
|
28719
28714
|
let SJ = xJ, CJ;
|
|
28720
|
-
t[
|
|
28715
|
+
t[49] !== bJ || t[50] !== vJ ? (CJ = {
|
|
28716
|
+
isSelected: vJ,
|
|
28717
|
+
onSelect: bJ
|
|
28718
|
+
}, t[49] = bJ, t[50] = vJ, t[51] = CJ) : CJ = t[51];
|
|
28719
|
+
let wJ = CJ, TJ;
|
|
28720
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (TJ = cn("relative"), t[52] = TJ) : TJ = t[52];
|
|
28721
28721
|
let EJ;
|
|
28722
|
-
t[53] !==
|
|
28723
|
-
|
|
28724
|
-
}, t[53] =
|
|
28725
|
-
let DJ =
|
|
28722
|
+
t[53] !== sJ || t[54] !== dJ ? (EJ = (e2) => {
|
|
28723
|
+
sJ && e2 || dJ(e2);
|
|
28724
|
+
}, t[53] = sJ, t[54] = dJ, t[55] = EJ) : EJ = t[55];
|
|
28725
|
+
let DJ = sJ && "cursor-not-allowed opacity-50", OJ;
|
|
28726
28726
|
t[56] !== o || t[57] !== DJ ? (OJ = 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", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
|
|
28727
28727
|
let kJ;
|
|
28728
|
-
t[59] !== O || t[60] !==
|
|
28728
|
+
t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (kJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = kJ) : kJ = t[62];
|
|
28729
28729
|
let AJ;
|
|
28730
28730
|
t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28731
28731
|
className: "truncate flex-1 min-w-0",
|
|
@@ -28735,93 +28735,93 @@ ${n}` : "Please fix this error.";
|
|
|
28735
28735
|
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28736
28736
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28737
28737
|
}), t[65] = jJ) : jJ = t[65];
|
|
28738
|
-
let
|
|
28739
|
-
t[66] !==
|
|
28738
|
+
let NJ;
|
|
28739
|
+
t[66] !== sJ || t[67] !== h || t[68] !== fJ || t[69] !== OJ || t[70] !== AJ ? (NJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28740
28740
|
asChild: true,
|
|
28741
28741
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28742
28742
|
id: h,
|
|
28743
28743
|
type: "button",
|
|
28744
28744
|
className: OJ,
|
|
28745
|
-
"aria-expanded":
|
|
28746
|
-
"aria-disabled":
|
|
28745
|
+
"aria-expanded": fJ,
|
|
28746
|
+
"aria-disabled": sJ,
|
|
28747
28747
|
children: [
|
|
28748
28748
|
AJ,
|
|
28749
28749
|
jJ
|
|
28750
28750
|
]
|
|
28751
28751
|
})
|
|
28752
|
-
}), t[66] =
|
|
28753
|
-
let
|
|
28754
|
-
t[72] !==
|
|
28755
|
-
placeholder:
|
|
28752
|
+
}), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] = OJ, t[70] = AJ, t[71] = NJ) : NJ = t[71];
|
|
28753
|
+
let FJ;
|
|
28754
|
+
t[72] !== iJ || t[73] !== y || t[74] !== M ? (FJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28755
|
+
placeholder: iJ,
|
|
28756
28756
|
rootClassName: "px-1 h-8",
|
|
28757
28757
|
autoFocus: true,
|
|
28758
28758
|
value: M,
|
|
28759
28759
|
onValueChange: y
|
|
28760
|
-
}), t[72] =
|
|
28761
|
-
let PJ;
|
|
28762
|
-
t[76] === rJ ? PJ = t[77] : (PJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28763
|
-
children: rJ
|
|
28764
|
-
}), t[76] = rJ, t[77] = PJ);
|
|
28765
|
-
let FJ;
|
|
28766
|
-
t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28767
|
-
value: SJ,
|
|
28768
|
-
children: n
|
|
28769
|
-
}), t[78] = n, t[79] = SJ, t[80] = FJ) : FJ = t[80];
|
|
28760
|
+
}), t[72] = iJ, t[73] = y, t[74] = M, t[75] = FJ) : FJ = t[75];
|
|
28770
28761
|
let IJ;
|
|
28771
|
-
t[
|
|
28762
|
+
t[76] === aJ ? IJ = t[77] : (IJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28763
|
+
children: aJ
|
|
28764
|
+
}), t[76] = aJ, t[77] = IJ);
|
|
28765
|
+
let LJ;
|
|
28766
|
+
t[78] !== n || t[79] !== wJ ? (LJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28767
|
+
value: wJ,
|
|
28768
|
+
children: n
|
|
28769
|
+
}), t[78] = n, t[79] = wJ, t[80] = LJ) : LJ = t[80];
|
|
28770
|
+
let RJ;
|
|
28771
|
+
t[81] !== IJ || t[82] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28772
28772
|
className: "max-h-60 py-.5",
|
|
28773
28773
|
children: [
|
|
28774
|
-
|
|
28775
|
-
|
|
28774
|
+
IJ,
|
|
28775
|
+
LJ
|
|
28776
28776
|
]
|
|
28777
|
-
}), t[81] =
|
|
28778
|
-
let
|
|
28779
|
-
t[84] !== f || t[85] !==
|
|
28777
|
+
}), t[81] = IJ, t[82] = LJ, t[83] = RJ) : RJ = t[83];
|
|
28778
|
+
let zJ;
|
|
28779
|
+
t[84] !== f || t[85] !== rJ || t[86] !== FJ || t[87] !== RJ ? (zJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28780
28780
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28781
28781
|
align: "start",
|
|
28782
28782
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28783
28783
|
filter: f,
|
|
28784
|
-
shouldFilter:
|
|
28784
|
+
shouldFilter: rJ,
|
|
28785
28785
|
children: [
|
|
28786
|
-
|
|
28787
|
-
|
|
28786
|
+
FJ,
|
|
28787
|
+
RJ
|
|
28788
28788
|
]
|
|
28789
28789
|
})
|
|
28790
|
-
}), t[84] = f, t[85] =
|
|
28791
|
-
let
|
|
28792
|
-
t[89] !==
|
|
28793
|
-
open:
|
|
28790
|
+
}), t[84] = f, t[85] = rJ, t[86] = FJ, t[87] = RJ, t[88] = zJ) : zJ = t[88];
|
|
28791
|
+
let BJ;
|
|
28792
|
+
t[89] !== fJ || t[90] !== EJ || t[91] !== NJ || t[92] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28793
|
+
open: fJ,
|
|
28794
28794
|
onOpenChange: EJ,
|
|
28795
28795
|
children: [
|
|
28796
|
-
|
|
28797
|
-
|
|
28796
|
+
NJ,
|
|
28797
|
+
zJ
|
|
28798
28798
|
]
|
|
28799
|
-
}), t[89] =
|
|
28800
|
-
let
|
|
28801
|
-
t[94] !==
|
|
28799
|
+
}), t[89] = fJ, t[90] = EJ, t[91] = NJ, t[92] = zJ, t[93] = BJ) : BJ = t[93];
|
|
28800
|
+
let VJ;
|
|
28801
|
+
t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (VJ = $ && oJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28802
28802
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28803
|
-
children: Array.isArray(
|
|
28803
|
+
children: Array.isArray(hJ) && hJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28804
28804
|
variant: "secondary",
|
|
28805
28805
|
children: [
|
|
28806
28806
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28807
28807
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28808
28808
|
onClick: () => {
|
|
28809
|
-
|
|
28809
|
+
sJ || bJ(e2);
|
|
28810
28810
|
},
|
|
28811
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28811
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", sJ && "pointer-events-none")
|
|
28812
28812
|
})
|
|
28813
28813
|
]
|
|
28814
28814
|
}, String(e2)))
|
|
28815
|
-
}), t[94] =
|
|
28816
|
-
let
|
|
28817
|
-
return t[102] !== A || t[103] !==
|
|
28818
|
-
className:
|
|
28815
|
+
}), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] = VJ) : VJ = t[101];
|
|
28816
|
+
let HJ;
|
|
28817
|
+
return t[102] !== A || t[103] !== BJ || t[104] !== VJ ? (HJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28818
|
+
className: TJ,
|
|
28819
28819
|
...A,
|
|
28820
28820
|
children: [
|
|
28821
|
-
|
|
28822
|
-
|
|
28821
|
+
BJ,
|
|
28822
|
+
VJ
|
|
28823
28823
|
]
|
|
28824
|
-
}), t[102] = A, t[103] =
|
|
28824
|
+
}), t[102] = A, t[103] = BJ, t[104] = VJ, t[105] = HJ) : HJ = t[105], HJ;
|
|
28825
28825
|
};
|
|
28826
28826
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28827
28827
|
let n = (0, import_compiler_runtime$35.c)(20), { 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), _;
|
|
@@ -29134,7 +29134,7 @@ ${n}` : "Please fix this error.";
|
|
|
29134
29134
|
children: _temp5$2
|
|
29135
29135
|
}),
|
|
29136
29136
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
29137
|
-
children: _temp6$
|
|
29137
|
+
children: _temp6$2
|
|
29138
29138
|
})
|
|
29139
29139
|
]
|
|
29140
29140
|
}), t[7] = c) : c = t[7];
|
|
@@ -29176,7 +29176,7 @@ ${n}` : "Please fix this error.";
|
|
|
29176
29176
|
children: e
|
|
29177
29177
|
});
|
|
29178
29178
|
}
|
|
29179
|
-
function _temp6$
|
|
29179
|
+
function _temp6$2(e) {
|
|
29180
29180
|
return (0, import_jsx_runtime.jsx)(CalendarCell, {
|
|
29181
29181
|
date: e
|
|
29182
29182
|
});
|
|
@@ -29351,7 +29351,7 @@ ${n}` : "Please fix this error.";
|
|
|
29351
29351
|
(0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
29352
29352
|
children: [
|
|
29353
29353
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
29354
|
-
children: _temp6
|
|
29354
|
+
children: _temp6$1
|
|
29355
29355
|
}),
|
|
29356
29356
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
29357
29357
|
children: _temp7
|
|
@@ -29395,7 +29395,7 @@ ${n}` : "Please fix this error.";
|
|
|
29395
29395
|
function _temp5$1(e) {
|
|
29396
29396
|
return cn("group flex flex-col gap-2", e);
|
|
29397
29397
|
}
|
|
29398
|
-
function _temp6(e) {
|
|
29398
|
+
function _temp6$1(e) {
|
|
29399
29399
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
29400
29400
|
children: e
|
|
29401
29401
|
});
|
|
@@ -29877,17 +29877,17 @@ ${n}` : "Please fix this error.";
|
|
|
29877
29877
|
searchQuery: M,
|
|
29878
29878
|
filteredOptions: z
|
|
29879
29879
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29880
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29881
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29880
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), rJ;
|
|
29881
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (rJ = {
|
|
29882
29882
|
value: i,
|
|
29883
29883
|
onChange: a,
|
|
29884
29884
|
multiple: o,
|
|
29885
29885
|
maxSelections: s,
|
|
29886
29886
|
allowSelectNone: c,
|
|
29887
29887
|
selected: y
|
|
29888
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29889
|
-
let { isChecked:
|
|
29890
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29888
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = rJ) : rJ = t[21];
|
|
29889
|
+
let { isChecked: iJ, toggle: aJ } = useToggle(rJ), oJ;
|
|
29890
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (oJ = {
|
|
29891
29891
|
value: i,
|
|
29892
29892
|
onChange: a,
|
|
29893
29893
|
multiple: o,
|
|
@@ -29895,24 +29895,24 @@ ${n}` : "Please fix this error.";
|
|
|
29895
29895
|
filteredOptions: z,
|
|
29896
29896
|
searchQuery: M,
|
|
29897
29897
|
maxSelections: s
|
|
29898
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29899
|
-
let { bulkActions:
|
|
29900
|
-
t[30] !== J || t[31] !== I ? (
|
|
29898
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = oJ) : oJ = t[29];
|
|
29899
|
+
let { bulkActions: sJ } = useBulk(oJ), cJ;
|
|
29900
|
+
t[30] !== J || t[31] !== I ? (cJ = (e2) => {
|
|
29901
29901
|
I(e2), e2 === "" && J();
|
|
29902
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29903
|
-
let
|
|
29904
|
-
return t[33] !==
|
|
29902
|
+
}, t[30] = J, t[31] = I, t[32] = cJ) : cJ = t[32];
|
|
29903
|
+
let lJ = cJ, uJ;
|
|
29904
|
+
return t[33] !== sJ || t[34] !== iJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== lJ || t[41] !== aJ || t[42] !== Q ? (uJ = {
|
|
29905
29905
|
searchQuery: M,
|
|
29906
|
-
setSearchQuery:
|
|
29906
|
+
setSearchQuery: lJ,
|
|
29907
29907
|
open: K,
|
|
29908
29908
|
setOpen: q,
|
|
29909
29909
|
visibleOptions: Q,
|
|
29910
29910
|
pinnedCount: $,
|
|
29911
|
-
isChecked:
|
|
29912
|
-
toggle:
|
|
29913
|
-
bulkActions:
|
|
29911
|
+
isChecked: iJ,
|
|
29912
|
+
toggle: aJ,
|
|
29913
|
+
bulkActions: sJ,
|
|
29914
29914
|
labelOf: O
|
|
29915
|
-
}, t[33] =
|
|
29915
|
+
}, t[33] = sJ, t[34] = iJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = lJ, t[41] = aJ, t[42] = Q, t[43] = uJ) : uJ = t[43], uJ;
|
|
29916
29916
|
};
|
|
29917
29917
|
const Sets = {
|
|
29918
29918
|
merge(...e) {
|
|
@@ -30241,7 +30241,7 @@ ${n}` : "Please fix this error.";
|
|
|
30241
30241
|
type: S,
|
|
30242
30242
|
operator: E,
|
|
30243
30243
|
draft: mergeNumberTextDraft(A, I)
|
|
30244
|
-
}), $ = Q === void 0,
|
|
30244
|
+
}), $ = Q === void 0, rJ = $ ? getMissingValueMessage(S, E) : "Apply filter", iJ = () => {
|
|
30245
30245
|
if (!Q) return;
|
|
30246
30246
|
let e2 = Q;
|
|
30247
30247
|
t.setColumnFilters((t2) => {
|
|
@@ -30260,20 +30260,20 @@ ${n}` : "Please fix this error.";
|
|
|
30260
30260
|
value: e2
|
|
30261
30261
|
}, n2;
|
|
30262
30262
|
}), i();
|
|
30263
|
-
},
|
|
30263
|
+
}, aJ = () => {
|
|
30264
30264
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30265
|
-
},
|
|
30265
|
+
}, oJ = !OPERATORS_WITHOUT_VALUE.has(E), sJ = OPERATORS_BY_TYPE[S], cJ = (0, import_react.useRef)(null), lJ = (0, import_react.useRef)(null);
|
|
30266
30266
|
return (0, import_react.useEffect)(() => {
|
|
30267
30267
|
var _a2, _b;
|
|
30268
|
-
let e2 = (_a2 =
|
|
30269
|
-
e2 ? e2.focus() : (_b =
|
|
30268
|
+
let e2 = (_a2 = cJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30269
|
+
e2 ? e2.focus() : (_b = lJ.current) == null ? void 0 : _b.focus();
|
|
30270
30270
|
}, [
|
|
30271
30271
|
S,
|
|
30272
30272
|
E
|
|
30273
30273
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30274
30274
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30275
30275
|
onSubmit: (e2) => {
|
|
30276
|
-
e2.preventDefault(),
|
|
30276
|
+
e2.preventDefault(), iJ();
|
|
30277
30277
|
},
|
|
30278
30278
|
onKeyDownCapture: (e2) => {
|
|
30279
30279
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30314,13 +30314,13 @@ ${n}` : "Please fix this error.";
|
|
|
30314
30314
|
onValueChange: (e2) => J(e2),
|
|
30315
30315
|
children: [
|
|
30316
30316
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30317
|
-
ref:
|
|
30317
|
+
ref: lJ,
|
|
30318
30318
|
id: s,
|
|
30319
30319
|
className: "h-6 mb-1 bg-transparent",
|
|
30320
30320
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30321
30321
|
}),
|
|
30322
30322
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30323
|
-
children:
|
|
30323
|
+
children: sJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30324
30324
|
value: e2,
|
|
30325
30325
|
children: OPERATOR_LABELS[e2]
|
|
30326
30326
|
}, e2))
|
|
@@ -30329,8 +30329,8 @@ ${n}` : "Please fix this error.";
|
|
|
30329
30329
|
}, S)
|
|
30330
30330
|
]
|
|
30331
30331
|
}),
|
|
30332
|
-
|
|
30333
|
-
ref:
|
|
30332
|
+
oJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30333
|
+
ref: cJ,
|
|
30334
30334
|
className: "flex flex-col gap-1",
|
|
30335
30335
|
children: [
|
|
30336
30336
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30357,7 +30357,7 @@ ${n}` : "Please fix this error.";
|
|
|
30357
30357
|
className: "flex gap-1 mb-1",
|
|
30358
30358
|
children: [
|
|
30359
30359
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30360
|
-
content:
|
|
30360
|
+
content: rJ,
|
|
30361
30361
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30362
30362
|
className: "inline-flex",
|
|
30363
30363
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30396,7 +30396,7 @@ ${n}` : "Please fix this error.";
|
|
|
30396
30396
|
size: "icon",
|
|
30397
30397
|
variant: "ghost",
|
|
30398
30398
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30399
|
-
onClick:
|
|
30399
|
+
onClick: aJ,
|
|
30400
30400
|
"aria-label": "Remove filter",
|
|
30401
30401
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30402
30402
|
className: "h-3.5 w-3.5",
|
|
@@ -32604,29 +32604,29 @@ ${n}` : "Please fix this error.";
|
|
|
32604
32604
|
}, t[16] = a, t[17] = J);
|
|
32605
32605
|
let Q = useEvent_default(J), $;
|
|
32606
32606
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32607
|
-
let
|
|
32608
|
-
t[20] === S ? (
|
|
32607
|
+
let rJ = useEvent_default($), iJ, aJ;
|
|
32608
|
+
t[20] === S ? (iJ = t[21], aJ = t[22]) : (iJ = () => (window.addEventListener("scroll", S, {
|
|
32609
32609
|
passive: true,
|
|
32610
32610
|
capture: true
|
|
32611
32611
|
}), window.addEventListener("resize", S), () => {
|
|
32612
32612
|
window.removeEventListener("scroll", S, {
|
|
32613
32613
|
capture: true
|
|
32614
32614
|
}), window.removeEventListener("resize", S);
|
|
32615
|
-
}),
|
|
32615
|
+
}), aJ = [
|
|
32616
32616
|
S
|
|
32617
|
-
], t[20] = S, t[21] =
|
|
32618
|
-
let
|
|
32619
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32620
|
-
let
|
|
32621
|
-
return t[25] !==
|
|
32617
|
+
], t[20] = S, t[21] = iJ, t[22] = aJ), (0, import_react.useEffect)(iJ, aJ);
|
|
32618
|
+
let oJ, sJ;
|
|
32619
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = () => v, sJ = [], t[23] = oJ, t[24] = sJ) : (oJ = t[23], sJ = t[24]), (0, import_react.useEffect)(oJ, sJ);
|
|
32620
|
+
let cJ;
|
|
32621
|
+
return t[25] !== rJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (cJ = {
|
|
32622
32622
|
tooltipState: o,
|
|
32623
32623
|
tooltipContentId: d,
|
|
32624
32624
|
hideTooltip: S,
|
|
32625
32625
|
handleCellMouseOver: U,
|
|
32626
32626
|
handleCellMouseLeave: q,
|
|
32627
32627
|
handleCellFocus: Q,
|
|
32628
|
-
handleCellBlur:
|
|
32629
|
-
}, t[25] =
|
|
32628
|
+
handleCellBlur: rJ
|
|
32629
|
+
}, t[25] = rJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = cJ) : cJ = t[32], cJ;
|
|
32630
32630
|
}
|
|
32631
32631
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32632
32632
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34064,7 +34064,7 @@ ${n}` : "Please fix this error.";
|
|
|
34064
34064
|
filename: i2.filename
|
|
34065
34065
|
};
|
|
34066
34066
|
}, t[6] = e, t[7] = O);
|
|
34067
|
-
let A = O, M,
|
|
34067
|
+
let A = O, M, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ, sJ;
|
|
34068
34068
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34069
34069
|
let e2 = async (t2) => {
|
|
34070
34070
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34114,7 +34114,7 @@ ${n}` : "Please fix this error.";
|
|
|
34114
34114
|
});
|
|
34115
34115
|
});
|
|
34116
34116
|
};
|
|
34117
|
-
|
|
34117
|
+
z = DropdownMenu, q = false, J = n, Q = i;
|
|
34118
34118
|
let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
34119
34119
|
t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
34120
34120
|
tabIndex: s2,
|
|
@@ -34126,14 +34126,14 @@ ${n}` : "Please fix this error.";
|
|
|
34126
34126
|
asChild: true,
|
|
34127
34127
|
disabled: c,
|
|
34128
34128
|
children: f2
|
|
34129
|
-
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (
|
|
34129
|
+
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34130
34130
|
content: d,
|
|
34131
34131
|
open: o2,
|
|
34132
34132
|
children: h
|
|
34133
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] =
|
|
34133
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], M = DropdownMenuContent, rJ = "bottom", iJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34134
34134
|
className: "text-xs text-muted-foreground",
|
|
34135
34135
|
children: "Download"
|
|
34136
|
-
}), t[36] =
|
|
34136
|
+
}), t[36] = aJ) : aJ = t[36], oJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34137
34137
|
onSelect: () => {
|
|
34138
34138
|
e2(t2.format);
|
|
34139
34139
|
},
|
|
@@ -34154,10 +34154,10 @@ ${n}` : "Please fix this error.";
|
|
|
34154
34154
|
]
|
|
34155
34155
|
})
|
|
34156
34156
|
]
|
|
34157
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34157
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34158
34158
|
className: "text-xs text-muted-foreground",
|
|
34159
34159
|
children: "Copy to clipboard"
|
|
34160
|
-
}), t[37] =
|
|
34160
|
+
}), t[37] = U, t[38] = sJ) : (U = t[37], sJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34161
34161
|
onSelect: async () => {
|
|
34162
34162
|
try {
|
|
34163
34163
|
await a(e3.format);
|
|
@@ -34186,30 +34186,30 @@ ${n}` : "Please fix this error.";
|
|
|
34186
34186
|
]
|
|
34187
34187
|
})
|
|
34188
34188
|
]
|
|
34189
|
-
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] =
|
|
34190
|
-
} else M = t[13],
|
|
34191
|
-
let
|
|
34192
|
-
t[39] !== M || t[40] !==
|
|
34193
|
-
side:
|
|
34194
|
-
className:
|
|
34189
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = rJ, t[22] = iJ, t[23] = aJ, t[24] = oJ, t[25] = sJ;
|
|
34190
|
+
} else M = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], rJ = t[21], iJ = t[22], aJ = t[23], oJ = t[24], sJ = t[25];
|
|
34191
|
+
let cJ;
|
|
34192
|
+
t[39] !== M || t[40] !== U || t[41] !== K || t[42] !== rJ || t[43] !== iJ || t[44] !== aJ || t[45] !== oJ || t[46] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34193
|
+
side: rJ,
|
|
34194
|
+
className: iJ,
|
|
34195
34195
|
children: [
|
|
34196
|
-
|
|
34197
|
-
|
|
34198
|
-
|
|
34199
|
-
|
|
34200
|
-
|
|
34196
|
+
aJ,
|
|
34197
|
+
oJ,
|
|
34198
|
+
sJ,
|
|
34199
|
+
U,
|
|
34200
|
+
K
|
|
34201
34201
|
]
|
|
34202
|
-
}), t[39] = M, t[40] =
|
|
34203
|
-
let
|
|
34204
|
-
return t[48] !==
|
|
34205
|
-
modal:
|
|
34206
|
-
open:
|
|
34207
|
-
onOpenChange:
|
|
34202
|
+
}), t[39] = M, t[40] = U, t[41] = K, t[42] = rJ, t[43] = iJ, t[44] = aJ, t[45] = oJ, t[46] = sJ, t[47] = cJ) : cJ = t[47];
|
|
34203
|
+
let lJ;
|
|
34204
|
+
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)(z, {
|
|
34205
|
+
modal: q,
|
|
34206
|
+
open: J,
|
|
34207
|
+
onOpenChange: Q,
|
|
34208
34208
|
children: [
|
|
34209
|
-
|
|
34210
|
-
|
|
34209
|
+
$,
|
|
34210
|
+
cJ
|
|
34211
34211
|
]
|
|
34212
|
-
}), t[48] =
|
|
34212
|
+
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = cJ, t[54] = lJ) : lJ = t[54], lJ;
|
|
34213
34213
|
};
|
|
34214
34214
|
function fetchJson(e) {
|
|
34215
34215
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34305,22 +34305,22 @@ ${n}` : "Please fix this error.";
|
|
|
34305
34305
|
]
|
|
34306
34306
|
});
|
|
34307
34307
|
};
|
|
34308
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds:
|
|
34309
|
-
let
|
|
34308
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: rJ, showSearch: iJ = false, searchQuery: aJ, onSearchQueryChange: oJ, showFilters: sJ = false, filters: cJ, onFiltersChange: lJ, calculateTopKRows: uJ, reloading: dJ, freezeColumnsLeft: fJ, freezeColumnsRight: pJ, hiddenColumns: mJ, toggleDisplayHeader: hJ, showChartBuilder: gJ, isChartBuilderOpen: _J, showPageSizeSelector: vJ, showTableExplorer: yJ, togglePanel: bJ, isPanelOpen: xJ, isAnyPanelOpen: SJ, viewedRowIdx: CJ, onViewedRowChange: wJ, renderTableExplorerPanel: TJ }) => {
|
|
34309
|
+
let EJ = isStaticNotebook(), DJ = !EJ, [OJ, kJ] = import_react.useState(false), { locale: AJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: jJ, setColumnPinning: MJ } = useColumnPinning(fJ, pJ), { columnVisibility: NJ, setColumnVisibility: PJ } = useColumnVisibility(mJ);
|
|
34310
34310
|
import_react.useEffect(() => {
|
|
34311
34311
|
let e2;
|
|
34312
|
-
return
|
|
34313
|
-
|
|
34314
|
-
}, 300) :
|
|
34312
|
+
return dJ ? e2 = setTimeout(() => {
|
|
34313
|
+
kJ(true);
|
|
34314
|
+
}, 300) : kJ(false), () => {
|
|
34315
34315
|
e2 && clearTimeout(e2);
|
|
34316
34316
|
};
|
|
34317
34317
|
}, [
|
|
34318
|
-
|
|
34318
|
+
dJ
|
|
34319
34319
|
]);
|
|
34320
|
-
function
|
|
34320
|
+
function FJ(e2, t2) {
|
|
34321
34321
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34322
34322
|
}
|
|
34323
|
-
let
|
|
34323
|
+
let IJ = useReactTable({
|
|
34324
34324
|
_features: [
|
|
34325
34325
|
ColumnPinning,
|
|
34326
34326
|
ColumnWrappingFeature,
|
|
@@ -34344,37 +34344,37 @@ ${n}` : "Please fix this error.";
|
|
|
34344
34344
|
getRowId: (e2, t2) => {
|
|
34345
34345
|
let n2 = getStableRowId(e2);
|
|
34346
34346
|
if (n2) return n2;
|
|
34347
|
-
let i2 =
|
|
34347
|
+
let i2 = FJ(e2, t2);
|
|
34348
34348
|
return String(i2);
|
|
34349
34349
|
}
|
|
34350
34350
|
} : {},
|
|
34351
|
-
locale:
|
|
34351
|
+
locale: AJ,
|
|
34352
34352
|
manualPagination: q,
|
|
34353
34353
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34354
34354
|
...w ? {
|
|
34355
34355
|
onSortingChange: w
|
|
34356
34356
|
} : {},
|
|
34357
34357
|
manualSorting: y,
|
|
34358
|
-
enableSorting: !
|
|
34358
|
+
enableSorting: !EJ,
|
|
34359
34359
|
enableMultiSort: true,
|
|
34360
34360
|
getSortedRowModel: getSortedRowModel(),
|
|
34361
34361
|
manualFiltering: true,
|
|
34362
|
-
enableColumnFilters:
|
|
34362
|
+
enableColumnFilters: sJ && !EJ,
|
|
34363
34363
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34364
|
-
onColumnFiltersChange:
|
|
34364
|
+
onColumnFiltersChange: lJ,
|
|
34365
34365
|
onRowSelectionChange: Q,
|
|
34366
34366
|
onCellSelectionChange: $,
|
|
34367
34367
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34368
34368
|
enableMultiCellSelection: c === "multi-cell",
|
|
34369
|
-
onColumnPinningChange:
|
|
34370
|
-
onColumnVisibilityChange:
|
|
34369
|
+
onColumnPinningChange: MJ,
|
|
34370
|
+
onColumnVisibilityChange: PJ,
|
|
34371
34371
|
enableFocusRow: true,
|
|
34372
|
-
onFocusRowChange:
|
|
34372
|
+
onFocusRowChange: wJ,
|
|
34373
34373
|
state: {
|
|
34374
34374
|
...S ? {
|
|
34375
34375
|
sorting: S
|
|
34376
34376
|
} : {},
|
|
34377
|
-
columnFilters:
|
|
34377
|
+
columnFilters: cJ,
|
|
34378
34378
|
...z ? {
|
|
34379
34379
|
pagination: z
|
|
34380
34380
|
} : J && !z ? {} : {
|
|
@@ -34385,60 +34385,60 @@ ${n}` : "Please fix this error.";
|
|
|
34385
34385
|
},
|
|
34386
34386
|
rowSelection: E ?? {},
|
|
34387
34387
|
cellSelection: O ?? [],
|
|
34388
|
-
columnVisibility:
|
|
34388
|
+
columnVisibility: NJ,
|
|
34389
34389
|
cellStyling: A,
|
|
34390
|
-
columnPinning:
|
|
34390
|
+
columnPinning: jJ,
|
|
34391
34391
|
cellHoverTemplate: M,
|
|
34392
34392
|
cellHoverTexts: I ?? {}
|
|
34393
34393
|
}
|
|
34394
|
-
}),
|
|
34394
|
+
}), LJ = (xJ == null ? void 0 : xJ(PANEL_TYPES.ROW_VIEWER)) ?? false, RJ = !J && o.length > 100, zJ = useScrollContainerHeight({
|
|
34395
34395
|
maxHeight: n,
|
|
34396
|
-
virtualize:
|
|
34397
|
-
}), [
|
|
34396
|
+
virtualize: RJ
|
|
34397
|
+
}), [BJ, VJ] = import_react.useState(null), HJ = import_react.useMemo(() => ({
|
|
34398
34398
|
requestAddFilter: (e2) => {
|
|
34399
|
-
let t2 =
|
|
34400
|
-
t2 &&
|
|
34399
|
+
let t2 = IJ.getColumn(e2.columnId);
|
|
34400
|
+
t2 && VJ(buildEditorSnapshot(t2, {
|
|
34401
34401
|
operator: e2.operator
|
|
34402
34402
|
}));
|
|
34403
34403
|
}
|
|
34404
34404
|
}), [
|
|
34405
|
-
|
|
34406
|
-
]),
|
|
34405
|
+
IJ
|
|
34406
|
+
]), UJ = getUserColumnVisibilityCounts(IJ), WJ = UJ.total > 0 && UJ.visible === 0;
|
|
34407
34407
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34408
|
-
value:
|
|
34408
|
+
value: HJ,
|
|
34409
34409
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34410
34410
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34411
34411
|
children: [
|
|
34412
34412
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34413
|
-
filters:
|
|
34414
|
-
table:
|
|
34415
|
-
calculateTopKRows:
|
|
34416
|
-
addFilterSnapshot:
|
|
34417
|
-
onAddFilterSnapshotChange:
|
|
34413
|
+
filters: cJ,
|
|
34414
|
+
table: IJ,
|
|
34415
|
+
calculateTopKRows: uJ,
|
|
34416
|
+
addFilterSnapshot: BJ,
|
|
34417
|
+
onAddFilterSnapshotChange: VJ
|
|
34418
34418
|
}),
|
|
34419
|
-
|
|
34419
|
+
TJ == null ? void 0 : TJ(IJ),
|
|
34420
34420
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34421
34421
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34422
34422
|
part: "table-wrapper",
|
|
34423
34423
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34424
34424
|
children: [
|
|
34425
|
-
|
|
34426
|
-
table:
|
|
34427
|
-
showSearch:
|
|
34428
|
-
searchQuery:
|
|
34429
|
-
onSearchQueryChange:
|
|
34430
|
-
reloading:
|
|
34431
|
-
showChartBuilder:
|
|
34432
|
-
isChartBuilderOpen:
|
|
34433
|
-
toggleDisplayHeader:
|
|
34434
|
-
showTableExplorer:
|
|
34435
|
-
togglePanel:
|
|
34436
|
-
isAnyPanelOpen:
|
|
34425
|
+
DJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34426
|
+
table: IJ,
|
|
34427
|
+
showSearch: iJ,
|
|
34428
|
+
searchQuery: aJ,
|
|
34429
|
+
onSearchQueryChange: oJ,
|
|
34430
|
+
reloading: dJ,
|
|
34431
|
+
showChartBuilder: gJ,
|
|
34432
|
+
isChartBuilderOpen: _J,
|
|
34433
|
+
toggleDisplayHeader: hJ,
|
|
34434
|
+
showTableExplorer: yJ,
|
|
34435
|
+
togglePanel: bJ,
|
|
34436
|
+
isAnyPanelOpen: SJ,
|
|
34437
34437
|
downloadAs: K,
|
|
34438
34438
|
sizeBytes: _,
|
|
34439
34439
|
sizeBytesIsLoading: v
|
|
34440
34440
|
}),
|
|
34441
|
-
|
|
34441
|
+
WJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34442
34442
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34443
34443
|
children: [
|
|
34444
34444
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34447,26 +34447,26 @@ ${n}` : "Please fix this error.";
|
|
|
34447
34447
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34448
34448
|
variant: "link",
|
|
34449
34449
|
size: "xs",
|
|
34450
|
-
onClick: () =>
|
|
34450
|
+
onClick: () => IJ.resetColumnVisibility(true),
|
|
34451
34451
|
children: "Unhide all"
|
|
34452
34452
|
})
|
|
34453
34453
|
]
|
|
34454
34454
|
}),
|
|
34455
34455
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34456
34456
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34457
|
-
ref:
|
|
34457
|
+
ref: zJ,
|
|
34458
34458
|
children: [
|
|
34459
|
-
|
|
34459
|
+
OJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34460
34460
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34461
34461
|
}),
|
|
34462
|
-
renderTableHeader(
|
|
34462
|
+
renderTableHeader(IJ, RJ || !!n),
|
|
34463
34463
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34464
|
-
table:
|
|
34464
|
+
table: IJ,
|
|
34465
34465
|
columns: i,
|
|
34466
|
-
rowViewerPanelOpen:
|
|
34467
|
-
getRowIndex:
|
|
34468
|
-
viewedRowIdx:
|
|
34469
|
-
virtualize:
|
|
34466
|
+
rowViewerPanelOpen: LJ,
|
|
34467
|
+
getRowIndex: FJ,
|
|
34468
|
+
viewedRowIdx: CJ,
|
|
34469
|
+
virtualize: RJ
|
|
34470
34470
|
})
|
|
34471
34471
|
]
|
|
34472
34472
|
}),
|
|
@@ -34477,10 +34477,10 @@ ${n}` : "Please fix this error.";
|
|
|
34477
34477
|
pagination: J,
|
|
34478
34478
|
selection: c,
|
|
34479
34479
|
onRowSelectionChange: Q,
|
|
34480
|
-
table:
|
|
34481
|
-
getRowIds:
|
|
34482
|
-
showPageSizeSelector:
|
|
34483
|
-
tableLoading:
|
|
34480
|
+
table: IJ,
|
|
34481
|
+
getRowIds: rJ,
|
|
34482
|
+
showPageSizeSelector: vJ,
|
|
34483
|
+
tableLoading: dJ
|
|
34484
34484
|
})
|
|
34485
34485
|
]
|
|
34486
34486
|
})
|
|
@@ -34563,9 +34563,9 @@ ${n}` : "Please fix this error.";
|
|
|
34563
34563
|
t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
|
|
34564
34564
|
let y = v, w;
|
|
34565
34565
|
t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
|
|
34566
|
-
let
|
|
34567
|
-
t[9] !== f || t[10] !== n ? (
|
|
34568
|
-
let
|
|
34566
|
+
let O = w, A;
|
|
34567
|
+
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34568
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), q;
|
|
34569
34569
|
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34570
34570
|
n == null ? void 0 : n({
|
|
34571
34571
|
prompt: `My code gives the following error:
|
|
@@ -34580,45 +34580,45 @@ ${d}`,
|
|
|
34580
34580
|
prompt: buildFixInChatPrompt(a, d)
|
|
34581
34581
|
});
|
|
34582
34582
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34583
|
-
let
|
|
34584
|
-
t[19] ===
|
|
34585
|
-
let
|
|
34586
|
-
t[21] ===
|
|
34583
|
+
let $ = Q, rJ;
|
|
34584
|
+
t[19] === z ? rJ = t[20] : (rJ = () => U(!z), t[19] = z, t[20] = rJ);
|
|
34585
|
+
let iJ = z ? "Collapse traceback" : "Expand traceback", aJ;
|
|
34586
|
+
t[21] === z ? aJ = t[22] : (aJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34587
34587
|
className: "h-3 w-3"
|
|
34588
34588
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34589
34589
|
className: "h-3 w-3"
|
|
34590
|
-
}), t[21] =
|
|
34591
|
-
let
|
|
34592
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34590
|
+
}), t[21] = z, t[22] = aJ);
|
|
34591
|
+
let oJ;
|
|
34592
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34593
34593
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34594
34594
|
children: "Traceback"
|
|
34595
|
-
}), t[23] =
|
|
34596
|
-
let
|
|
34597
|
-
t[24] !==
|
|
34595
|
+
}), t[23] = oJ) : oJ = t[23];
|
|
34596
|
+
let sJ;
|
|
34597
|
+
t[24] !== z || t[25] !== aJ || t[26] !== rJ || t[27] !== iJ ? (sJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34598
34598
|
type: "button",
|
|
34599
|
-
onClick:
|
|
34600
|
-
"aria-expanded":
|
|
34601
|
-
"aria-label":
|
|
34599
|
+
onClick: rJ,
|
|
34600
|
+
"aria-expanded": z,
|
|
34601
|
+
"aria-label": iJ,
|
|
34602
34602
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34603
34603
|
children: [
|
|
34604
|
-
|
|
34605
|
-
|
|
34604
|
+
aJ,
|
|
34605
|
+
oJ
|
|
34606
34606
|
]
|
|
34607
|
-
}), t[24] =
|
|
34608
|
-
let
|
|
34609
|
-
t[29] !== s || t[30] !==
|
|
34607
|
+
}), t[24] = z, t[25] = aJ, t[26] = rJ, t[27] = iJ, t[28] = sJ) : sJ = t[28];
|
|
34608
|
+
let cJ;
|
|
34609
|
+
t[29] !== s || t[30] !== z ? (cJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34610
34610
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34611
34611
|
children: s
|
|
34612
|
-
}), t[29] = s, t[30] =
|
|
34613
|
-
let
|
|
34614
|
-
t[32] !== J || t[33] !==
|
|
34612
|
+
}), t[29] = s, t[30] = z, t[31] = cJ) : cJ = t[31];
|
|
34613
|
+
let lJ;
|
|
34614
|
+
t[32] !== J || t[33] !== $ || t[34] !== M ? (lJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34615
34615
|
tooltip: "Fix with AI",
|
|
34616
34616
|
openPrompt: () => J(false),
|
|
34617
34617
|
applyAutofix: () => J(true),
|
|
34618
|
-
openChat:
|
|
34619
|
-
}), t[32] = J, t[33] =
|
|
34620
|
-
let
|
|
34621
|
-
t[36] !==
|
|
34618
|
+
openChat: $
|
|
34619
|
+
}), t[32] = J, t[33] = $, t[34] = M, t[35] = lJ) : lJ = t[35];
|
|
34620
|
+
let uJ;
|
|
34621
|
+
t[36] !== O || t[37] !== y ? (uJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34622
34622
|
content: "Attach pdb to the exception point.",
|
|
34623
34623
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34624
34624
|
size: "xs",
|
|
@@ -34635,9 +34635,9 @@ ${d}`,
|
|
|
34635
34635
|
"Launch debugger"
|
|
34636
34636
|
]
|
|
34637
34637
|
})
|
|
34638
|
-
}), t[36] =
|
|
34639
|
-
let
|
|
34640
|
-
t[39] !== d || t[40] !== i ? (
|
|
34638
|
+
}), t[36] = O, t[37] = y, t[38] = uJ) : uJ = t[38];
|
|
34639
|
+
let dJ;
|
|
34640
|
+
t[39] !== d || t[40] !== i ? (dJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34641
34641
|
children: [
|
|
34642
34642
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34643
34643
|
asChild: true,
|
|
@@ -34705,25 +34705,25 @@ ${d}`,
|
|
|
34705
34705
|
]
|
|
34706
34706
|
})
|
|
34707
34707
|
]
|
|
34708
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34709
|
-
let
|
|
34710
|
-
t[42] !==
|
|
34708
|
+
}), t[39] = d, t[40] = i, t[41] = dJ) : dJ = t[41];
|
|
34709
|
+
let fJ;
|
|
34710
|
+
t[42] !== lJ || t[43] !== uJ || t[44] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34711
34711
|
className: "flex gap-2",
|
|
34712
34712
|
children: [
|
|
34713
|
-
cJ,
|
|
34714
34713
|
lJ,
|
|
34715
|
-
uJ
|
|
34714
|
+
uJ,
|
|
34715
|
+
dJ
|
|
34716
34716
|
]
|
|
34717
|
-
}), t[42] =
|
|
34718
|
-
let
|
|
34719
|
-
return t[46] !==
|
|
34717
|
+
}), t[42] = lJ, t[43] = uJ, t[44] = dJ, t[45] = fJ) : fJ = t[45];
|
|
34718
|
+
let pJ;
|
|
34719
|
+
return t[46] !== sJ || t[47] !== cJ || t[48] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34720
34720
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34721
34721
|
children: [
|
|
34722
|
-
oJ,
|
|
34723
34722
|
sJ,
|
|
34724
|
-
|
|
34723
|
+
cJ,
|
|
34724
|
+
fJ
|
|
34725
34725
|
]
|
|
34726
|
-
}), t[46] =
|
|
34726
|
+
}), t[46] = sJ, t[47] = cJ, t[48] = fJ, t[49] = pJ) : pJ = t[49], pJ;
|
|
34727
34727
|
};
|
|
34728
34728
|
function lastLine(e) {
|
|
34729
34729
|
var _a2, _b;
|
|
@@ -35777,6 +35777,7 @@ ${d}`,
|
|
|
35777
35777
|
var import_compiler_runtime$1 = require_compiler_runtime();
|
|
35778
35778
|
DEFAULT_SLIDE_TYPE = "slide";
|
|
35779
35779
|
DEFAULT_DECK_TRANSITION = "slide";
|
|
35780
|
+
DEFAULT_DECK_VERTICAL_ALIGN = "center";
|
|
35780
35781
|
var COLLAPSED_CONFIG_WIDTH = 36, slideConfigOpenAtom = atomWithStorage("marimo:slides:config-open", true, jotaiJsonStorage, {
|
|
35781
35782
|
getOnInit: true
|
|
35782
35783
|
});
|
|
@@ -35842,6 +35843,22 @@ ${d}`,
|
|
|
35842
35843
|
label: "Zoom",
|
|
35843
35844
|
description: "Zoom into the next slide."
|
|
35844
35845
|
}
|
|
35846
|
+
], DECK_VERTICAL_ALIGN_OPTIONS = [
|
|
35847
|
+
{
|
|
35848
|
+
value: "center",
|
|
35849
|
+
label: "Center",
|
|
35850
|
+
description: "Vertically center each slide's content."
|
|
35851
|
+
},
|
|
35852
|
+
{
|
|
35853
|
+
value: "top",
|
|
35854
|
+
label: "Top",
|
|
35855
|
+
description: "Align content to the top, like the cell view."
|
|
35856
|
+
},
|
|
35857
|
+
{
|
|
35858
|
+
value: "bottom",
|
|
35859
|
+
label: "Bottom",
|
|
35860
|
+
description: "Align content to the bottom of each slide."
|
|
35861
|
+
}
|
|
35845
35862
|
], SlidesForm = (e) => {
|
|
35846
35863
|
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
35847
35864
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
@@ -36035,11 +36052,13 @@ ${d}`,
|
|
|
36035
36052
|
]
|
|
36036
36053
|
}), t[26] = O, t[27] = M, t[28] = I) : I = t[28], I;
|
|
36037
36054
|
}, DeckConfigForm = (e) => {
|
|
36038
|
-
var _a2, _b;
|
|
36039
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
36055
|
+
var _a2, _b, _c, _d;
|
|
36056
|
+
let t = (0, import_compiler_runtime$1.c)(39), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
|
|
36040
36057
|
t[0] === a ? o = t[1] : (o = (_b = DECK_TRANSITION_OPTIONS.find((e2) => e2.value === a)) == null ? void 0 : _b.description, t[0] = a, t[1] = o);
|
|
36041
|
-
let s = o, c;
|
|
36042
|
-
t[2]
|
|
36058
|
+
let s = o, c = ((_c = n.deck) == null ? void 0 : _c.verticalAlign) ?? "center", d;
|
|
36059
|
+
t[2] === c ? d = t[3] : (d = (_d = DECK_VERTICAL_ALIGN_OPTIONS.find((e2) => e2.value === c)) == null ? void 0 : _d.description, t[2] = c, t[3] = d);
|
|
36060
|
+
let f = d, h;
|
|
36061
|
+
t[4] !== n || t[5] !== i ? (h = (e2) => {
|
|
36043
36062
|
i({
|
|
36044
36063
|
...n,
|
|
36045
36064
|
deck: {
|
|
@@ -36047,51 +36066,107 @@ ${d}`,
|
|
|
36047
36066
|
transition: e2
|
|
36048
36067
|
}
|
|
36049
36068
|
});
|
|
36050
|
-
}, t[
|
|
36051
|
-
let
|
|
36052
|
-
t[
|
|
36069
|
+
}, t[4] = n, t[5] = i, t[6] = h) : h = t[6];
|
|
36070
|
+
let _ = h, v;
|
|
36071
|
+
t[7] !== n || t[8] !== i ? (v = (e2) => {
|
|
36072
|
+
i({
|
|
36073
|
+
...n,
|
|
36074
|
+
deck: {
|
|
36075
|
+
...n.deck,
|
|
36076
|
+
verticalAlign: e2
|
|
36077
|
+
}
|
|
36078
|
+
});
|
|
36079
|
+
}, t[7] = n, t[8] = i, t[9] = v) : v = t[9];
|
|
36080
|
+
let y = v, S;
|
|
36081
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)("label", {
|
|
36053
36082
|
htmlFor: "deck-transition",
|
|
36054
36083
|
className: "font-semibold text-sm text-foreground",
|
|
36055
36084
|
children: "Transition"
|
|
36056
|
-
}), t[
|
|
36057
|
-
let
|
|
36058
|
-
t[
|
|
36059
|
-
let
|
|
36060
|
-
t[
|
|
36085
|
+
}), t[10] = S) : S = t[10];
|
|
36086
|
+
let w;
|
|
36087
|
+
t[11] === _ ? w = t[12] : (w = (e2) => _(e2), t[11] = _, t[12] = w);
|
|
36088
|
+
let E;
|
|
36089
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
36061
36090
|
id: "deck-transition",
|
|
36062
36091
|
"aria-label": "Slide transition",
|
|
36063
36092
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
36064
|
-
}), t[
|
|
36065
|
-
let
|
|
36066
|
-
t[
|
|
36093
|
+
}), t[13] = E) : E = t[13];
|
|
36094
|
+
let O;
|
|
36095
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
36067
36096
|
children: DECK_TRANSITION_OPTIONS.map(_temp3)
|
|
36068
|
-
}), t[
|
|
36069
|
-
let
|
|
36070
|
-
t[
|
|
36097
|
+
}), t[14] = O) : O = t[14];
|
|
36098
|
+
let A;
|
|
36099
|
+
t[15] !== a || t[16] !== w ? (A = (0, import_jsx_runtime.jsxs)(Select, {
|
|
36071
36100
|
value: a,
|
|
36072
|
-
onValueChange:
|
|
36101
|
+
onValueChange: w,
|
|
36073
36102
|
children: [
|
|
36074
|
-
|
|
36075
|
-
|
|
36103
|
+
E,
|
|
36104
|
+
O
|
|
36076
36105
|
]
|
|
36077
|
-
}), t[
|
|
36078
|
-
let
|
|
36079
|
-
t[
|
|
36106
|
+
}), t[15] = a, t[16] = w, t[17] = A) : A = t[17];
|
|
36107
|
+
let M;
|
|
36108
|
+
t[18] === s ? M = t[19] : (M = s && (0, import_jsx_runtime.jsx)("p", {
|
|
36080
36109
|
className: "text-xs text-foreground/70",
|
|
36081
36110
|
children: s
|
|
36082
|
-
}), t[
|
|
36083
|
-
let
|
|
36084
|
-
|
|
36111
|
+
}), t[18] = s, t[19] = M);
|
|
36112
|
+
let I;
|
|
36113
|
+
t[20] !== M || t[21] !== A ? (I = (0, import_jsx_runtime.jsxs)("div", {
|
|
36114
|
+
className: "flex flex-col gap-1.5",
|
|
36115
|
+
children: [
|
|
36116
|
+
S,
|
|
36117
|
+
A,
|
|
36118
|
+
M
|
|
36119
|
+
]
|
|
36120
|
+
}), t[20] = M, t[21] = A, t[22] = I) : I = t[22];
|
|
36121
|
+
let z;
|
|
36122
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = (0, import_jsx_runtime.jsx)("label", {
|
|
36123
|
+
htmlFor: "deck-vertical-align",
|
|
36124
|
+
className: "font-semibold text-sm text-foreground",
|
|
36125
|
+
children: "Vertical alignment"
|
|
36126
|
+
}), t[23] = z) : z = t[23];
|
|
36127
|
+
let U;
|
|
36128
|
+
t[24] === y ? U = t[25] : (U = (e2) => y(e2), t[24] = y, t[25] = U);
|
|
36129
|
+
let K;
|
|
36130
|
+
t[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
36131
|
+
id: "deck-vertical-align",
|
|
36132
|
+
"aria-label": "Vertical alignment",
|
|
36133
|
+
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
36134
|
+
}), t[26] = K) : K = t[26];
|
|
36135
|
+
let q;
|
|
36136
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
36137
|
+
children: DECK_VERTICAL_ALIGN_OPTIONS.map(_temp4)
|
|
36138
|
+
}), t[27] = q) : q = t[27];
|
|
36139
|
+
let J;
|
|
36140
|
+
t[28] !== c || t[29] !== U ? (J = (0, import_jsx_runtime.jsxs)(Select, {
|
|
36141
|
+
value: c,
|
|
36142
|
+
onValueChange: U,
|
|
36143
|
+
children: [
|
|
36144
|
+
K,
|
|
36145
|
+
q
|
|
36146
|
+
]
|
|
36147
|
+
}), t[28] = c, t[29] = U, t[30] = J) : J = t[30];
|
|
36148
|
+
let Q;
|
|
36149
|
+
t[31] === f ? Q = t[32] : (Q = f && (0, import_jsx_runtime.jsx)("p", {
|
|
36150
|
+
className: "text-xs text-foreground/70",
|
|
36151
|
+
children: f
|
|
36152
|
+
}), t[31] = f, t[32] = Q);
|
|
36153
|
+
let $;
|
|
36154
|
+
t[33] !== J || t[34] !== Q ? ($ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36155
|
+
className: "flex flex-col gap-1.5",
|
|
36156
|
+
children: [
|
|
36157
|
+
z,
|
|
36158
|
+
J,
|
|
36159
|
+
Q
|
|
36160
|
+
]
|
|
36161
|
+
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36162
|
+
let rJ;
|
|
36163
|
+
return t[36] !== I || t[37] !== $ ? (rJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36085
36164
|
className: "flex flex-col gap-3",
|
|
36086
|
-
children:
|
|
36087
|
-
|
|
36088
|
-
|
|
36089
|
-
|
|
36090
|
-
|
|
36091
|
-
S
|
|
36092
|
-
]
|
|
36093
|
-
})
|
|
36094
|
-
}), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
|
|
36165
|
+
children: [
|
|
36166
|
+
I,
|
|
36167
|
+
$
|
|
36168
|
+
]
|
|
36169
|
+
}), t[36] = I, t[37] = $, t[38] = rJ) : rJ = t[38], rJ;
|
|
36095
36170
|
};
|
|
36096
36171
|
SlideSidebar = (e) => {
|
|
36097
36172
|
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
@@ -36106,7 +36181,7 @@ ${d}`,
|
|
|
36106
36181
|
children: "Configuration"
|
|
36107
36182
|
}), t[4] = c, t[5] = S);
|
|
36108
36183
|
let w = c ? "Collapse panel" : "Expand panel", E;
|
|
36109
|
-
t[6] === d ? E = t[7] : (E = () => d(
|
|
36184
|
+
t[6] === d ? E = t[7] : (E = () => d(_temp6), t[6] = d, t[7] = E);
|
|
36110
36185
|
let O;
|
|
36111
36186
|
t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
|
|
36112
36187
|
className: "h-4 w-4"
|
|
@@ -36162,7 +36237,7 @@ ${d}`,
|
|
|
36162
36237
|
className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
|
|
36163
36238
|
style: _,
|
|
36164
36239
|
"aria-label": "Slide configuration",
|
|
36165
|
-
onKeyDown:
|
|
36240
|
+
onKeyDown: _temp5,
|
|
36166
36241
|
children: [
|
|
36167
36242
|
I,
|
|
36168
36243
|
z
|
|
@@ -36197,9 +36272,16 @@ ${d}`,
|
|
|
36197
36272
|
}, t);
|
|
36198
36273
|
}
|
|
36199
36274
|
function _temp4(e) {
|
|
36200
|
-
|
|
36275
|
+
let { value: t, label: n } = e;
|
|
36276
|
+
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
36277
|
+
value: t,
|
|
36278
|
+
children: n
|
|
36279
|
+
}, t);
|
|
36201
36280
|
}
|
|
36202
36281
|
function _temp5(e) {
|
|
36282
|
+
return e.stopPropagation();
|
|
36283
|
+
}
|
|
36284
|
+
function _temp6(e) {
|
|
36203
36285
|
return !e;
|
|
36204
36286
|
}
|
|
36205
36287
|
function getVersionFromMountConfig() {
|
|
@@ -36209,7 +36291,7 @@ ${d}`,
|
|
|
36209
36291
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36210
36292
|
}
|
|
36211
36293
|
}
|
|
36212
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-
|
|
36294
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev21");
|
|
36213
36295
|
showCodeInRunModeAtom = atom(true);
|
|
36214
36296
|
atom(null);
|
|
36215
36297
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36237,129 +36319,130 @@ ${d}`,
|
|
|
36237
36319
|
}
|
|
36238
36320
|
});
|
|
36239
36321
|
export {
|
|
36240
|
-
|
|
36241
|
-
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36245
|
-
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
|
|
36249
|
-
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36269
|
-
|
|
36270
|
-
|
|
36271
|
-
|
|
36272
|
-
|
|
36273
|
-
|
|
36274
|
-
|
|
36275
|
-
|
|
36276
|
-
|
|
36277
|
-
|
|
36278
|
-
|
|
36279
|
-
|
|
36280
|
-
|
|
36281
|
-
|
|
36282
|
-
|
|
36283
|
-
|
|
36284
|
-
|
|
36285
|
-
|
|
36286
|
-
|
|
36287
|
-
|
|
36288
|
-
|
|
36289
|
-
|
|
36290
|
-
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36322
|
+
ContextAwarePanelItem as $,
|
|
36323
|
+
EmotionCacheProvider as $t,
|
|
36324
|
+
prettifyRowColumnCount as A,
|
|
36325
|
+
loadTableData as At,
|
|
36326
|
+
useSelectList as B,
|
|
36327
|
+
dateToLocalISOTime as Bt,
|
|
36328
|
+
Filenames as C,
|
|
36329
|
+
ColumnChartContext as Ct,
|
|
36330
|
+
EmptyState as D,
|
|
36331
|
+
usePrevious as Dt,
|
|
36332
|
+
ColumnPreviewContainer as E,
|
|
36333
|
+
useIntersectionObserver as Et,
|
|
36334
|
+
ContextMenuContent as F,
|
|
36335
|
+
getMimeValues as Ft,
|
|
36336
|
+
ComboboxItem as G,
|
|
36337
|
+
ChartErrorState as Gt,
|
|
36338
|
+
DatePicker as H,
|
|
36339
|
+
TabsContent as Ht,
|
|
36340
|
+
ContextMenuItem as I,
|
|
36341
|
+
isNullishFilter as It,
|
|
36342
|
+
CommandInput as J,
|
|
36343
|
+
LazyVegaEmbed as Jt,
|
|
36344
|
+
Command as K,
|
|
36345
|
+
ChartInfoState as Kt,
|
|
36346
|
+
ContextMenuSeparator as L,
|
|
36347
|
+
Maps as Lt,
|
|
36348
|
+
getColumnCountForDisplay as M,
|
|
36349
|
+
SELECT_COLUMN_ID as Mt,
|
|
36350
|
+
getUserColumnVisibilityCounts as N,
|
|
36351
|
+
TOO_MANY_ROWS as Nt,
|
|
36352
|
+
ErrorState as O,
|
|
36353
|
+
getPageIndexForRow as Ot,
|
|
36354
|
+
ContextMenu as P,
|
|
36355
|
+
toFieldTypes as Pt,
|
|
36356
|
+
smartMatch as Q,
|
|
36357
|
+
HtmlOutput as Qt,
|
|
36358
|
+
ContextMenuTrigger as R,
|
|
36359
|
+
dateToLocalISODate as Rt,
|
|
36360
|
+
Progress as S,
|
|
36361
|
+
renderCellValue as St,
|
|
36362
|
+
ColumnName as T,
|
|
36363
|
+
DelayMount as Tt,
|
|
36364
|
+
DateRangePicker as U,
|
|
36365
|
+
TabsList as Ut,
|
|
36366
|
+
CompactChipRow as V,
|
|
36367
|
+
Tabs as Vt,
|
|
36368
|
+
Combobox as W,
|
|
36369
|
+
TabsTrigger as Wt,
|
|
36370
|
+
CommandList as X,
|
|
36371
|
+
RenderTextWithLinks as Xt,
|
|
36372
|
+
CommandItem as Y,
|
|
36373
|
+
useOverflowDetection as Yt,
|
|
36374
|
+
CommandSeparator as Z,
|
|
36375
|
+
Kbd as Zt,
|
|
36376
|
+
InstallPackageButton as _,
|
|
36295
36377
|
__tla,
|
|
36296
|
-
|
|
36297
|
-
|
|
36298
|
-
|
|
36299
|
-
|
|
36300
|
-
|
|
36301
|
-
|
|
36302
|
-
|
|
36303
|
-
|
|
36304
|
-
|
|
36305
|
-
|
|
36306
|
-
|
|
36307
|
-
|
|
36308
|
-
|
|
36309
|
-
|
|
36310
|
-
|
|
36311
|
-
|
|
36312
|
-
|
|
36313
|
-
|
|
36314
|
-
|
|
36315
|
-
|
|
36316
|
-
|
|
36317
|
-
|
|
36318
|
-
|
|
36378
|
+
ArrowDownWideNarrow as _n,
|
|
36379
|
+
TableHeader as _t,
|
|
36380
|
+
DEFAULT_DECK_VERTICAL_ALIGN as a,
|
|
36381
|
+
GripHorizontal as an,
|
|
36382
|
+
SlotNames as at,
|
|
36383
|
+
downloadByURL as b,
|
|
36384
|
+
generateColumns as bt,
|
|
36385
|
+
SlideSidebar as c,
|
|
36386
|
+
Expand as cn,
|
|
36387
|
+
Panel as ct,
|
|
36388
|
+
RadioGroup as d,
|
|
36389
|
+
Code as dn,
|
|
36390
|
+
Fill as dt,
|
|
36391
|
+
hasFunctionProperty as en,
|
|
36392
|
+
PANEL_TYPES as et,
|
|
36393
|
+
RadioGroupItem as f,
|
|
36394
|
+
ChevronsUpDown as fn,
|
|
36395
|
+
Provider$1 as ft,
|
|
36396
|
+
DataTable as g,
|
|
36397
|
+
ChevronLeft as gn,
|
|
36398
|
+
TableHead as gt,
|
|
36399
|
+
OutputRenderer as h,
|
|
36400
|
+
ChevronsDownUp as hn,
|
|
36401
|
+
TableCell as ht,
|
|
36319
36402
|
DEFAULT_DECK_TRANSITION as i,
|
|
36320
|
-
|
|
36321
|
-
|
|
36322
|
-
|
|
36323
|
-
|
|
36324
|
-
|
|
36325
|
-
|
|
36326
|
-
|
|
36327
|
-
|
|
36328
|
-
|
|
36329
|
-
|
|
36330
|
-
|
|
36331
|
-
|
|
36403
|
+
TextWrap as in,
|
|
36404
|
+
isCellAwareAtom as it,
|
|
36405
|
+
prettifyRowCount as j,
|
|
36406
|
+
INDEX_COLUMN_NAME as jt,
|
|
36407
|
+
LoadingState as k,
|
|
36408
|
+
loadTableAndRawData as kt,
|
|
36409
|
+
Slide as l,
|
|
36410
|
+
Ellipsis as ln,
|
|
36411
|
+
PanelGroup as lt,
|
|
36412
|
+
OutputArea as m,
|
|
36413
|
+
ChevronsLeft as mn,
|
|
36414
|
+
TableBody as mt,
|
|
36332
36415
|
marimoVersionAtom as n,
|
|
36333
|
-
$fae977aafc393c5c$export$
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
|
|
36416
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as nn,
|
|
36417
|
+
contextAwarePanelOwner as nt,
|
|
36418
|
+
DEFAULT_SLIDE_TYPE as o,
|
|
36419
|
+
Funnel as on,
|
|
36420
|
+
slotsController as ot,
|
|
36421
|
+
JsonOutput as p,
|
|
36422
|
+
ChevronsRight as pn,
|
|
36423
|
+
Table as pt,
|
|
36424
|
+
CommandEmpty as q,
|
|
36425
|
+
ChartLoadingState as qt,
|
|
36343
36426
|
showCodeInRunModeAtom as r,
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
|
|
36347
|
-
|
|
36348
|
-
|
|
36427
|
+
$fae977aafc393c5c$export$6b862160d295c8e as rn,
|
|
36428
|
+
contextAwarePanelType as rt,
|
|
36429
|
+
SLIDE_TYPE_OPTIONS_BY_VALUE as s,
|
|
36430
|
+
EyeOff as sn,
|
|
36431
|
+
Toggle as st,
|
|
36349
36432
|
useNotebookCodeAvailable as t,
|
|
36350
|
-
|
|
36351
|
-
|
|
36352
|
-
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
|
|
36362
|
-
|
|
36363
|
-
|
|
36364
|
-
|
|
36433
|
+
isRecord as tn,
|
|
36434
|
+
contextAwarePanelOpen as tt,
|
|
36435
|
+
Switch as u,
|
|
36436
|
+
Download as un,
|
|
36437
|
+
PanelResizeHandle as ut,
|
|
36438
|
+
ADD_PRINTING_CLASS as v,
|
|
36439
|
+
TableRow as vt,
|
|
36440
|
+
downloadSizeLimitAtom as w,
|
|
36441
|
+
ColumnChartSpecModel as wt,
|
|
36442
|
+
downloadHTMLAsImage as x,
|
|
36443
|
+
inferFieldTypes as xt,
|
|
36444
|
+
downloadBlob as y,
|
|
36445
|
+
NAMELESS_COLUMN_PREFIX as yt,
|
|
36446
|
+
useInternalStateWithSync as z,
|
|
36447
|
+
dateToLocalISODateTime as zt
|
|
36365
36448
|
};
|