@marimo-team/islands 0.23.10-dev4 → 0.23.10-dev7
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/{any-language-editor-DfdpyDv_.js → any-language-editor-CiES2a2h.js} +2 -2
- package/dist/{chat-ui-TL2w0gQI.js → chat-ui-K84W5ecY.js} +5 -5
- package/dist/{code-visibility-Dly0oW20.js → code-visibility-WES7G1ix.js} +1036 -882
- package/dist/{copy-BuQpJEzp.js → copy-5jQ_kGE1.js} +32 -32
- package/dist/{esm-BfhQmZjp.js → esm-CCuYCd3R.js} +1 -1
- package/dist/{extends-BgdxCfYu.js → extends-CkydH1Q5.js} +1 -1
- package/dist/{glide-data-editor-BOmK9ETQ.js → glide-data-editor-CgIxTzAP.js} +1 -1
- package/dist/{html-to-image-DS-GYb0Y.js → html-to-image-B93KtAVY.js} +4 -4
- package/dist/main.js +9 -9
- package/dist/{process-output-BdlB3Vhy.js → process-output-BOXi9fnS.js} +1 -1
- package/dist/{reveal-component-Dj7ybE5_.js → reveal-component-DRTYmMER.js} +2 -2
- package/package.json +1 -1
- package/src/components/data-table/__tests__/data-table.test.tsx +154 -12
- package/src/components/data-table/hover-tooltip/__tests__/content.test.ts +60 -0
- package/src/components/data-table/hover-tooltip/content.ts +44 -0
- package/src/components/data-table/hover-tooltip/hover-tooltip.tsx +55 -0
- package/src/components/data-table/hover-tooltip/use-table-hover-tooltip.ts +159 -0
- package/src/components/data-table/renderers.tsx +27 -43
- package/src/components/ui/__tests__/use-toast.test.ts +75 -0
- package/src/components/ui/use-toast.ts +33 -13
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -28
- package/src/core/cells/__tests__/cell.test.ts +29 -2
- package/src/core/cells/cell.ts +5 -1
- package/src/core/network/__tests__/requests-static.test.ts +30 -0
- package/src/core/network/requests-static.ts +14 -10
|
@@ -5,8 +5,8 @@ import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
|
5
5
|
import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs, n as buttonVariants, p as composeRefs, r as cva, t as Button, v as Functions } from "./button-C5K9fIPF.js";
|
|
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
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as LoaderCircle, Bn as Braces, C as AccordionContent, Fn as ExternalLink, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as Info, Mt as useChromeActions, N as PinRightIcon, Nn as FileText, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Trash2, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _t as getCellDomProps, at as AnsiUp, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gn as atomWithStorage, gt as DATA_CELL_ID, ht as sanitizeHtml, j as DotFilledIcon, kn as Minus, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, wn as Wrench, yn as Close$1, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-
|
|
8
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-5jQ_kGE1.js";
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as LoaderCircle, Bn as Braces, C as AccordionContent, Fn as ExternalLink, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as Info, Mt as useChromeActions, N as PinRightIcon, Nn as FileText, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Trash2, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _t as getCellDomProps, at as AnsiUp, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gn as atomWithStorage, gt as DATA_CELL_ID, ht as sanitizeHtml, j as DotFilledIcon, kn as Minus, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, wn as Wrench, yn as Close$1, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-B93KtAVY.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-C1BYNeCR.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-BBO9PIph.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-BA4FCquG.js";
|
|
@@ -18,10 +18,10 @@ import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-rULOrC_p.js";
|
|
|
18
18
|
import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
20
20
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
21
|
-
import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET, Z as withSmartCollisionBoundary, _t as Primitive$1, dt as Presence, ft as useControllableState, gt as createContextScope, lt as useCallbackRef, mt as composeEventHandlers, ut as useId$
|
|
21
|
+
import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET, Z as withSmartCollisionBoundary, _t as Primitive$1, dt as Presence, ft as useControllableState, gt as createContextScope, lt as useCallbackRef, mt as composeEventHandlers, ut as useId$2 } from "./zod-CoBiJ5v4.js";
|
|
22
22
|
import { a as Content$1, c as Root$3, i as prettyError, n as ErrorBanner, o as Overlay, s as Portal$1, t as Banner } from "./error-banner-5bz0L9hS.js";
|
|
23
|
-
import { t as Tooltip } from "./tooltip-C5FYOpQc.js";
|
|
24
|
-
import { f as CopyClipboardIcon, t as _extends } from "./extends-
|
|
23
|
+
import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-C5FYOpQc.js";
|
|
24
|
+
import { f as CopyClipboardIcon, t as _extends } from "./extends-CkydH1Q5.js";
|
|
25
25
|
import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
|
|
26
26
|
import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as aiFeaturesEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-DHIrRQOe.js";
|
|
27
27
|
import { Z as EditorView } from "./dist-DNdhYsgW.js";
|
|
@@ -1580,7 +1580,7 @@ Defaulting to \`null\`.`;
|
|
|
1580
1580
|
});
|
|
1581
1581
|
return (0, import_jsx_runtime.jsx)(TabsProvider, {
|
|
1582
1582
|
scope: n,
|
|
1583
|
-
baseId: useId$
|
|
1583
|
+
baseId: useId$2(),
|
|
1584
1584
|
value: _,
|
|
1585
1585
|
onValueChange: v,
|
|
1586
1586
|
orientation: s,
|
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
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,
|
|
1906
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
1907
|
-
let
|
|
1908
|
-
if (
|
|
1909
|
-
else if (
|
|
1910
|
-
else if (
|
|
1911
|
-
else if (
|
|
1912
|
-
let e2 =
|
|
1905
|
+
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, GK = c.top - E, KK = c.bottom + O, qK = c.left - A, JK = c.right + M, YK = e === _ ? 0 : Q + $, XK = e === _ ? 0 : q + J, ZK = e.offsetWidth - e.clientWidth - YK, QK = e.offsetHeight - e.clientHeight - XK, $K = v + q + I, eq = y - J - z - QK, tq = S + Q + U, nq = w - $ - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? tq += ZK : nq -= ZK;
|
|
1907
|
+
let rq = GK < $K || KK > eq, iq = qK < tq || JK > nq;
|
|
1908
|
+
if (rq && i === "start") o += GK - $K;
|
|
1909
|
+
else if (rq && i === "center") o += (GK + KK) / 2 - ($K + eq) / 2;
|
|
1910
|
+
else if (rq && i === "end") o += KK - eq;
|
|
1911
|
+
else if (rq && i === "nearest") {
|
|
1912
|
+
let e2 = GK - $K, t2 = KK - eq;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
else if (
|
|
1917
|
-
else if (
|
|
1918
|
-
else if (
|
|
1919
|
-
let e2 =
|
|
1915
|
+
if (iq && a === "start") s += qK - tq;
|
|
1916
|
+
else if (iq && a === "center") s += (qK + JK) / 2 - (tq + nq) / 2;
|
|
1917
|
+
else if (iq && a === "end") s += JK - nq;
|
|
1918
|
+
else if (iq && a === "nearest") {
|
|
1919
|
+
let e2 = qK - tq, t2 = JK - nq;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5026,23 +5026,23 @@ Defaulting to \`null\`.`;
|
|
|
5026
5026
|
}
|
|
5027
5027
|
let $ = "bottom";
|
|
5028
5028
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
let
|
|
5036
|
-
x: U === "top" || U === "bottom" ?
|
|
5037
|
-
y: U === "left" || U === "right" ?
|
|
5029
|
+
let GK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += GK;
|
|
5031
|
+
let KK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5032
|
+
y && y < KK && (KK = y), n.height = Math.min(n.height, KK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), GK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += GK;
|
|
5033
|
+
let qK = {}, JK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], YK = JK + 0.5 * t[z], XK = S / 2 + w, ZK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), QK = n[z] - ZK - S / 2 - w;
|
|
5034
|
+
qK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(YK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), XK, QK), { placement: U, crossPlacement: K } = A, S ? JK = qK[I] : K === "right" ? JK += t[z] : K === "center" && (JK += t[z] / 2);
|
|
5035
|
+
let $K = U === "left" || U === "top" ? n[M] : 0, eq = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? JK : $K,
|
|
5037
|
+
y: U === "left" || U === "right" ? JK : $K
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: KK,
|
|
5042
|
+
arrowOffsetLeft: qK.left,
|
|
5043
|
+
arrowOffsetTop: qK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: eq
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let GK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,8 +6907,8 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6911
|
-
"aria-label": `${
|
|
6910
|
+
let KK = $bdb11010cef70236$export$f680877a34711e37(), qK = !t.isDisabled && !t.isReadOnly && e.isEditable, JK = e.type === "literal" ? "" : s.of(e.type), YK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${JK}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
6914
6914
|
if (e.type === "literal") return {
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let XK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
XK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (XK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, YK, {
|
|
6929
|
+
id: KK,
|
|
6930
|
+
...GK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: qK,
|
|
6936
|
+
suppressContentEditableWarning: qK,
|
|
6937
|
+
spellCheck: qK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: qK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: qK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !qK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: XK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
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);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let GK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), KK = e.isInvalid || e.validationState === "invalid" || GK, qK = KK ? "invalid" : null, JK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: qK,
|
|
10210
|
+
isValueInvalid: KK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10232,12 +10232,12 @@ Defaulting to \`null\`.`;
|
|
|
10232
10232
|
}));
|
|
10233
10233
|
},
|
|
10234
10234
|
focusNextPage() {
|
|
10235
|
-
let e2 = M.add(
|
|
10236
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10235
|
+
let e2 = M.add(JK);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(JK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, JK, i, s, c), JK, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract(JK);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(JK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, JK, i, s, c), JK, i));
|
|
10241
10241
|
},
|
|
10242
10242
|
focusSectionStart() {
|
|
10243
10243
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [$,
|
|
10378
|
-
|
|
10377
|
+
}, [$, GK] = (0, import_react.useState)(false), { isDateUnavailable: KK } = e, qK = (0, import_react.useMemo)(() => !h || v ? false : KK && (KK(h.start) || KK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
KK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), JK = e.isInvalid || e.validationState === "invalid" || qK, YK = JK ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,8 +10388,8 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10392
|
-
isValueInvalid:
|
|
10391
|
+
validationState: YK,
|
|
10392
|
+
isValueInvalid: JK,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10405,7 +10405,7 @@ Defaulting to \`null\`.`;
|
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
10407
|
isDragging: $,
|
|
10408
|
-
setDragging:
|
|
10408
|
+
setDragging: GK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11592,7 +11592,7 @@ Defaulting to \`null\`.`;
|
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), GK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11615
|
-
let
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11613
|
+
]), [KK, qK] = (0, import_react.useState)(M), [JK, YK] = (0, import_react.useState)(S), [XK, ZK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== KK || w !== XK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, JK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), qK(M), YK(S), ZK(w), z(I));
|
|
11615
|
+
let QK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(GK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
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);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11619
|
+
if (t2.isComplete(GK)) {
|
|
11620
11620
|
let e2 = t2.toValue(M ?? $);
|
|
11621
|
-
if (t2.validate(e2,
|
|
11621
|
+
if (t2.validate(e2, GK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,83 +11628,83 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
},
|
|
11631
|
+
}, $K = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
11635
|
$
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11636
|
+
]), eq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments($K, I, J, Q, S, t, _), [
|
|
11637
|
+
$K,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), tq = (e2, t2) => {
|
|
11645
|
+
QK(I.cycle(e2, t2, $, GK));
|
|
11646
|
+
}, nq = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
11649
11649
|
d,
|
|
11650
11650
|
f,
|
|
11651
11651
|
K
|
|
11652
|
-
]),
|
|
11652
|
+
]), rq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: nq
|
|
11656
|
+
}), iq = rq.displayValidation.isInvalid, aq = e.validationState || (iq ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...rq,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: $K,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: QK,
|
|
11664
|
+
segments: eq,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: aq,
|
|
11667
|
+
isInvalid: iq,
|
|
11668
11668
|
granularity: _,
|
|
11669
11669
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11670
11670
|
isDisabled: a,
|
|
11671
11671
|
isReadOnly: o,
|
|
11672
11672
|
isRequired: s,
|
|
11673
11673
|
increment(e2) {
|
|
11674
|
-
|
|
11674
|
+
tq(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
tq(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
tq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
tq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
|
|
11687
|
+
QK(I.set(e2, t2, $));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
QK(I.set(e2, t2, $));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
QK(I.set(e2, t2, $));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(GK)) {
|
|
11698
11698
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
11702
11702
|
clearSegment(e2) {
|
|
11703
11703
|
let t2 = I;
|
|
11704
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11704
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), QK(t2);
|
|
11705
11705
|
},
|
|
11706
11706
|
formatValue(e2) {
|
|
11707
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11707
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format($K) : "";
|
|
11708
11708
|
},
|
|
11709
11709
|
getDateFormatter(e2, t2) {
|
|
11710
11710
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11827
|
+
}), $ = Q.displayValidation.isInvalid, GK = e.validationState || ($ ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,7 +11870,7 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11873
|
+
validationState: GK,
|
|
11874
11874
|
isInvalid: $,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -13827,9 +13827,9 @@ Defaulting to \`null\`.`;
|
|
|
13827
13827
|
t,
|
|
13828
13828
|
i.name
|
|
13829
13829
|
]), null;
|
|
13830
|
-
}), import_compiler_runtime$
|
|
13830
|
+
}), import_compiler_runtime$62 = require_compiler_runtime();
|
|
13831
13831
|
EmotionCacheProvider = (e) => {
|
|
13832
|
-
let t = (0, import_compiler_runtime$
|
|
13832
|
+
let t = (0, import_compiler_runtime$62.c)(6), { container: n, children: i } = e, a;
|
|
13833
13833
|
bb0: {
|
|
13834
13834
|
if (!n) {
|
|
13835
13835
|
let e3;
|
|
@@ -15328,7 +15328,7 @@ Defaulting to \`null\`.`;
|
|
|
15328
15328
|
var maybeReactUseId = {
|
|
15329
15329
|
...import_react
|
|
15330
15330
|
}.useId;
|
|
15331
|
-
function useId$
|
|
15331
|
+
function useId$4(e) {
|
|
15332
15332
|
if (maybeReactUseId !== void 0) {
|
|
15333
15333
|
let t = maybeReactUseId();
|
|
15334
15334
|
return e ?? t;
|
|
@@ -15433,7 +15433,7 @@ Defaulting to \`null\`.`;
|
|
|
15433
15433
|
}
|
|
15434
15434
|
var DefaultPropsProvider_default = DefaultPropsProvider;
|
|
15435
15435
|
function useLayerOrder(e) {
|
|
15436
|
-
let t = useThemeWithoutDefault_default(), n = useId$
|
|
15436
|
+
let t = useThemeWithoutDefault_default(), n = useId$4() || "", { modularCssLayers: i } = e, a = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
15437
15437
|
return a = !i || t !== null ? "" : typeof i == "string" ? i.replace(/mui(?!\.)/g, a) : `@layer ${a};`, useEnhancedEffect_default(() => {
|
|
15438
15438
|
var _a2, _b;
|
|
15439
15439
|
let e2 = document.querySelector("head");
|
|
@@ -15742,33 +15742,33 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
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,
|
|
15745
|
+
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, GK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), KK = GK[t], qK = KK || GK, { colorSchemes: JK = _, components: YK = v, cssVarPrefix: XK } = qK, ZK = Object.keys(JK).filter((e3) => !!JK[e3]).join(","), QK = import_react.useMemo(() => ZK.split(","), [
|
|
15748
|
+
ZK
|
|
15749
|
+
]), $K = typeof s == "string" ? s : s.light, eq = typeof s == "string" ? s : s.dark, { mode: tq, setMode: nq, systemMode: rq, lightColorScheme: iq, darkColorScheme: aq, colorScheme: oq, setColorScheme: sq } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: QK,
|
|
15751
|
+
defaultLightColorScheme: $K,
|
|
15752
|
+
defaultDarkColorScheme: eq,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: JK[$K] && JK[eq] ? U : ((_b = (_a2 = JK[qK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = qK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
$ && (
|
|
15761
|
-
let
|
|
15759
|
+
}), cq = tq, lq = oq;
|
|
15760
|
+
$ && (cq = Q.mode, lq = Q.colorScheme);
|
|
15761
|
+
let uq = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15766
|
-
colorSchemes:
|
|
15767
|
-
cssVarPrefix:
|
|
15763
|
+
let e3 = lq || qK.defaultColorScheme, t2 = ((_a3 = qK.generateThemeVars) == null ? void 0 : _a3.call(qK)) || qK.vars, n2 = {
|
|
15764
|
+
...qK,
|
|
15765
|
+
components: YK,
|
|
15766
|
+
colorSchemes: JK,
|
|
15767
|
+
cssVarPrefix: XK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = JK[e3];
|
|
15772
15772
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15773
15773
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15774
15774
|
...n2[e4],
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
]),
|
|
15781
|
+
qK,
|
|
15782
|
+
lq,
|
|
15783
|
+
YK,
|
|
15784
|
+
JK,
|
|
15785
|
+
XK
|
|
15786
|
+
]), dq = qK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
|
-
if (
|
|
15789
|
-
let e3 =
|
|
15790
|
-
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(...
|
|
15788
|
+
if (lq && M && dq && dq !== "media") {
|
|
15789
|
+
let e3 = dq, t2 = dq;
|
|
15790
|
+
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(...QK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", lq));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", lq).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || QK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(lq, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, lq);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
|
|
15803
|
-
|
|
15802
|
+
lq,
|
|
15803
|
+
dq,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
QK
|
|
15806
15806
|
]), import_react.useEffect(() => {
|
|
15807
15807
|
let e3;
|
|
15808
15808
|
if (w2 && q.current && A) {
|
|
@@ -15815,48 +15815,48 @@ try {
|
|
|
15815
15815
|
clearTimeout(e3);
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [
|
|
15818
|
-
|
|
15818
|
+
lq,
|
|
15819
15819
|
w2,
|
|
15820
15820
|
A
|
|
15821
15821
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15822
15822
|
q.current = false;
|
|
15823
15823
|
}), []);
|
|
15824
|
-
let
|
|
15825
|
-
allColorSchemes:
|
|
15826
|
-
colorScheme:
|
|
15827
|
-
darkColorScheme:
|
|
15828
|
-
lightColorScheme:
|
|
15829
|
-
mode:
|
|
15830
|
-
setColorScheme:
|
|
15831
|
-
setMode:
|
|
15832
|
-
systemMode:
|
|
15824
|
+
let fq = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: QK,
|
|
15826
|
+
colorScheme: lq,
|
|
15827
|
+
darkColorScheme: aq,
|
|
15828
|
+
lightColorScheme: iq,
|
|
15829
|
+
mode: cq,
|
|
15830
|
+
setColorScheme: sq,
|
|
15831
|
+
setMode: nq,
|
|
15832
|
+
systemMode: rq
|
|
15833
15833
|
}), [
|
|
15834
|
-
VK,
|
|
15835
15834
|
QK,
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15835
|
+
lq,
|
|
15836
|
+
aq,
|
|
15837
|
+
iq,
|
|
15838
|
+
cq,
|
|
15839
|
+
sq,
|
|
15840
|
+
nq,
|
|
15841
|
+
rq,
|
|
15842
|
+
uq.colorSchemeSelector
|
|
15843
|
+
]), pq = true;
|
|
15844
|
+
(z || qK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === XK) && (pq = false);
|
|
15845
|
+
let mq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15849
|
-
theme:
|
|
15848
|
+
themeId: KK ? t : void 0,
|
|
15849
|
+
theme: uq,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
pq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = uq.generateStyleSheets) == null ? void 0 : _d.call(uq)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return $ ?
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return $ ? mq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: fq,
|
|
15859
|
+
children: mq
|
|
15860
15860
|
});
|
|
15861
15861
|
}
|
|
15862
15862
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "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:
|
|
17360
|
-
}, []),
|
|
17359
|
+
}), { "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: GK, onKeyDown: KK, onKeyUp: qK, placeholder: JK, readOnly: YK, renderSuffix: XK, rows: ZK, size: QK, slotProps: $K = {}, slots: eq = {}, startAdornment: tq, type: nq = "text", value: rq, ...iq } = n, aq = A.value == null ? rq : A.value, { current: oq } = import_react.useRef(aq != null), sq = import_react.useRef(), cq = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), lq = useForkRef_default(sq, M, A.ref, cq), [uq, dq] = import_react.useState(false), fq = useFormControl(), pq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: fq,
|
|
17363
17363
|
states: [
|
|
17364
17364
|
"color",
|
|
17365
17365
|
"disabled",
|
|
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17370
17370
|
"filled"
|
|
17371
17371
|
]
|
|
17372
17372
|
});
|
|
17373
|
-
|
|
17374
|
-
!
|
|
17373
|
+
pq.focused = fq ? fq.focused : uq, import_react.useEffect(() => {
|
|
17374
|
+
!fq && _ && uq && (dq(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
fq,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
uq,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let mq = fq && fq.onFilled, hq = fq && fq.onEmpty, gq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? mq && mq() : hq && hq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
mq,
|
|
17385
|
+
hq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
oq && gq({
|
|
17389
|
+
value: aq
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
JK,
|
|
17393
17392
|
aq,
|
|
17394
|
-
|
|
17393
|
+
gq,
|
|
17394
|
+
oq
|
|
17395
17395
|
]);
|
|
17396
|
-
let
|
|
17397
|
-
|
|
17398
|
-
},
|
|
17399
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17400
|
-
},
|
|
17401
|
-
if (!
|
|
17402
|
-
let t3 = e2.target ||
|
|
17396
|
+
let _q = (e2) => {
|
|
17397
|
+
GK && GK(e2), A.onFocus && A.onFocus(e2), fq && fq.onFocus ? fq.onFocus(e2) : dq(true);
|
|
17398
|
+
}, vq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), fq && fq.onBlur ? fq.onBlur(e2) : dq(false);
|
|
17400
|
+
}, yq = (e2, ...t2) => {
|
|
17401
|
+
if (!oq) {
|
|
17402
|
+
let t3 = e2.target || sq.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
gq({
|
|
17405
17405
|
value: t3.value
|
|
17406
17406
|
});
|
|
17407
17407
|
}
|
|
17408
17408
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17409
17409
|
};
|
|
17410
17410
|
import_react.useEffect(() => {
|
|
17411
|
-
|
|
17411
|
+
gq(sq.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let bq = (e2) => {
|
|
17414
|
+
sq.current && e2.currentTarget === e2.target && sq.current.focus(), $ && $(e2);
|
|
17415
|
+
}, xq = O, Sq = A;
|
|
17416
|
+
K && xq === "input" && (Sq = ZK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: ZK,
|
|
17419
|
+
maxRows: ZK,
|
|
17420
|
+
...Sq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...Sq
|
|
17426
|
+
}, xq = TextareaAutosize_default);
|
|
17427
|
+
let Cq = (e2) => {
|
|
17428
|
+
gq(e2.animationName === "mui-auto-fill-cancel" ? sq.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
fq && fq.setAdornedStart(!!tq);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
fq,
|
|
17436
|
+
tq
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let wq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: pq.color || "primary",
|
|
17441
|
+
disabled: pq.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: pq.error,
|
|
17444
|
+
focused: pq.focused,
|
|
17445
|
+
formControl: fq,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: pq.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
|
|
17449
|
+
size: pq.size,
|
|
17450
|
+
startAdornment: tq,
|
|
17451
|
+
type: nq
|
|
17452
|
+
}, Tq = useUtilityClasses(wq), Eq = eq.root || d.Root || InputBaseRoot, Dq = $K.root || f.root || {}, Oq = eq.input || d.Input || InputBaseInput;
|
|
17453
|
+
return Sq = {
|
|
17454
|
+
...Sq,
|
|
17455
|
+
...$K.input ?? f.input
|
|
17456
17456
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17457
17457
|
children: [
|
|
17458
17458
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17459
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17460
|
-
...
|
|
17459
|
+
(0, import_jsx_runtime.jsxs)(Eq, {
|
|
17460
|
+
...Dq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: bq,
|
|
17463
|
+
...iq,
|
|
17464
|
+
...!isHostComponent_default(Eq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...wq,
|
|
17467
|
+
...Dq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(Tq.root, Dq.className, s, YK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
tq,
|
|
17473
17473
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17474
17474
|
value: null,
|
|
17475
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17476
|
-
"aria-invalid":
|
|
17475
|
+
children: (0, import_jsx_runtime.jsx)(Oq, {
|
|
17476
|
+
"aria-invalid": pq.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: pq.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: Cq,
|
|
17484
17484
|
name: q,
|
|
17485
|
-
placeholder:
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17485
|
+
placeholder: JK,
|
|
17486
|
+
readOnly: YK,
|
|
17487
|
+
required: pq.required,
|
|
17488
|
+
rows: ZK,
|
|
17489
|
+
value: aq,
|
|
17490
|
+
onKeyDown: KK,
|
|
17491
|
+
onKeyUp: qK,
|
|
17492
|
+
type: nq,
|
|
17493
|
+
...Sq,
|
|
17494
|
+
...!isHostComponent_default(Oq) && {
|
|
17495
|
+
as: xq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...wq,
|
|
17498
|
+
...Sq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: lq,
|
|
17502
|
+
className: clsx_default(Tq.input, Sq.className, YK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: vq,
|
|
17504
|
+
onChange: yq,
|
|
17505
|
+
onFocus: _q
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
...
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
XK ? XK({
|
|
17510
|
+
...pq,
|
|
17511
|
+
startAdornment: tq
|
|
17512
17512
|
}) : null
|
|
17513
17513
|
]
|
|
17514
17514
|
})
|
|
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), 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),
|
|
18588
|
-
|
|
18587
|
+
]), 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), GK = useTextColor(), KK = useJsonViewerStore((e2) => e2.colorspace.base0C), qK = useJsonViewerStore((e2) => e2.colorspace.base0A), JK = useJsonViewerStore((e2) => e2.displayComma), YK = useJsonViewerStore((e2) => e2.quotesOnKeys), XK = useJsonViewerStore((e2) => e2.rootName), ZK = U === t, QK = Number.isInteger(Number(A)), $K = useJsonViewerStore((e2) => e2.enableAdd), eq = useJsonViewerStore((e2) => e2.onAdd), tq = (0, import_react.useMemo)(() => !eq || a !== void 0 || $K === false || v === false ? false : typeof $K == "function" ? !!$K(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
eq,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
$K,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), nq = useJsonViewerStore((e2) => e2.enableDelete), rq = useJsonViewerStore((e2) => e2.onDelete), iq = (0, import_react.useMemo)(() => !rq || a !== void 0 || ZK || nq === false || v === false ? false : typeof nq == "function" ? !!nq(i, t) : nq, [
|
|
18595
|
+
rq,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
ZK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
nq,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), aq = useJsonViewerStore((e2) => e2.enableClipboard), { copy: oq, copied: sq } = useClipboard(), cq = useJsonViewerStore((e2) => e2.highlightUpdates), lq = (0, import_react.useMemo)(() => !cq || 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, [
|
|
18603
|
+
cq,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), uq = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
uq.current && lq && "animate" in uq.current && uq.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: qK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,22 +18617,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18621
|
-
|
|
18620
|
+
qK,
|
|
18621
|
+
lq,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let dq = (0, import_react.useCallback)((e2) => {
|
|
18626
18626
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18627
18627
|
}, [
|
|
18628
18628
|
h,
|
|
18629
18629
|
t
|
|
18630
|
-
]),
|
|
18630
|
+
]), fq = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), pq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
18637
|
$(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
@@ -18643,14 +18643,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18643
18643
|
$,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), mq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18647
18647
|
children: [
|
|
18648
18648
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18649
18649
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18650
18650
|
sx: {
|
|
18651
18651
|
fontSize: ".8rem"
|
|
18652
18652
|
},
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: fq
|
|
18654
18654
|
})
|
|
18655
18655
|
}),
|
|
18656
18656
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18658
18658
|
sx: {
|
|
18659
18659
|
fontSize: ".8rem"
|
|
18660
18660
|
},
|
|
18661
|
-
onClick: () =>
|
|
18661
|
+
onClick: () => pq(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
aq && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
oq(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: sq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18677
18677
|
sx: {
|
|
18678
18678
|
fontSize: ".8rem"
|
|
18679
18679
|
}
|
|
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18684
18684
|
})
|
|
18685
18685
|
}),
|
|
18686
18686
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18687
|
-
onClick:
|
|
18687
|
+
onClick: dq,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
tq && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), eq == null ? void 0 : eq(i);
|
|
18697
18697
|
},
|
|
18698
18698
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18699
18699
|
sx: {
|
|
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18701
18701
|
}
|
|
18702
18702
|
})
|
|
18703
18703
|
}),
|
|
18704
|
-
|
|
18704
|
+
iq && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), rq == null ? void 0 : rq(i, t);
|
|
18707
18707
|
},
|
|
18708
18708
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18709
18709
|
sx: {
|
|
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18716
18716
|
f,
|
|
18717
18717
|
h,
|
|
18718
18718
|
_,
|
|
18719
|
-
|
|
18720
|
-
|
|
18719
|
+
sq,
|
|
18720
|
+
oq,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18723
|
+
aq,
|
|
18724
|
+
tq,
|
|
18725
|
+
iq,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
UK,
|
|
18730
|
-
KK,
|
|
18731
18729
|
eq,
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18730
|
+
rq,
|
|
18731
|
+
dq,
|
|
18732
|
+
fq,
|
|
18733
|
+
pq
|
|
18734
|
+
]), hq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), gq = !hq && !!(c && d), _q = useJsonViewerStore((e2) => e2.keyRenderer), vq = (0, import_react.useMemo)(() => ({
|
|
18737
18737
|
path: i,
|
|
18738
18738
|
inspect: K,
|
|
18739
18739
|
setInspect: q,
|
|
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: GK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
18772
18772
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18773
|
-
e2.isDefaultPrevented() ||
|
|
18773
|
+
e2.isDefaultPrevented() || hq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
hq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
gq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18780
18780
|
className: "data-key-toggle-expanded",
|
|
18781
18781
|
sx: {
|
|
18782
18782
|
fontSize: ".8rem",
|
|
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18794
18794
|
}
|
|
18795
18795
|
}) : null,
|
|
18796
18796
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18797
|
-
ref:
|
|
18797
|
+
ref: uq,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: ZK && O === 0 ? XK === false ? null : YK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
XK,
|
|
18804
18804
|
'"'
|
|
18805
18805
|
]
|
|
18806
18806
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18807
|
-
children:
|
|
18808
|
-
}) :
|
|
18809
|
-
...
|
|
18810
|
-
}) : a === void 0 && (
|
|
18807
|
+
children: XK
|
|
18808
|
+
}) : _q.when(vq) ? (0, import_jsx_runtime.jsx)(_q, {
|
|
18809
|
+
...vq
|
|
18810
|
+
}) : a === void 0 && (QK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: KK,
|
|
18814
|
+
userSelect: QK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : YK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18818
18818
|
children: [
|
|
18819
18819
|
'"',
|
|
18820
18820
|
A,
|
|
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
children: A
|
|
18825
18825
|
}))
|
|
18826
18826
|
}),
|
|
18827
|
-
|
|
18827
|
+
ZK ? XK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18828
18828
|
className: "data-key-colon",
|
|
18829
18829
|
sx: {
|
|
18830
18830
|
mr: 0.5
|
|
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18837
18837
|
".data-key-key:empty + &": {
|
|
18838
18838
|
display: "none"
|
|
18839
18839
|
},
|
|
18840
|
-
userSelect:
|
|
18840
|
+
userSelect: QK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...vq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && gq && K && mq
|
|
18848
18848
|
]
|
|
18849
18849
|
}),
|
|
18850
18850
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
18851
18851
|
path: i,
|
|
18852
18852
|
value: w,
|
|
18853
18853
|
setValue: E,
|
|
18854
|
-
abortEditing:
|
|
18855
|
-
commitEditing:
|
|
18854
|
+
abortEditing: fq,
|
|
18855
|
+
commitEditing: pq
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...vq
|
|
18858
18858
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18859
18859
|
component: "span",
|
|
18860
18860
|
className: "data-value-fallback",
|
|
18861
18861
|
children: `fallback: ${t}`
|
|
18862
18862
|
}),
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
|
-
...
|
|
18864
|
+
...vq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && JK && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && gq && !K && mq,
|
|
18870
|
+
I && !gq && mq,
|
|
18871
|
+
!I && J && mq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -18997,9 +18997,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18997
18997
|
})
|
|
18998
18998
|
})
|
|
18999
18999
|
});
|
|
19000
|
-
}, import_compiler_runtime$
|
|
19000
|
+
}, import_compiler_runtime$61 = require_compiler_runtime();
|
|
19001
19001
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
19002
|
-
let t = (0, import_compiler_runtime$
|
|
19002
|
+
let t = (0, import_compiler_runtime$61.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
19003
19003
|
if (!n) return null;
|
|
19004
19004
|
let d = !c, f;
|
|
19005
19005
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -19018,9 +19018,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19018
19018
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
19019
19019
|
});
|
|
19020
19020
|
HtmlOutput.displayName = "HtmlOutput";
|
|
19021
|
-
var import_compiler_runtime$
|
|
19021
|
+
var import_compiler_runtime$60 = require_compiler_runtime();
|
|
19022
19022
|
const ImageOutput = (e) => {
|
|
19023
|
-
let t = (0, import_compiler_runtime$
|
|
19023
|
+
let t = (0, import_compiler_runtime$60.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
19024
19024
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
19025
19025
|
src: n,
|
|
19026
19026
|
alt: c,
|
|
@@ -19033,9 +19033,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19033
19033
|
children: d
|
|
19034
19034
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
19035
19035
|
};
|
|
19036
|
-
var import_compiler_runtime$
|
|
19036
|
+
var import_compiler_runtime$59 = require_compiler_runtime();
|
|
19037
19037
|
Kbd = (e) => {
|
|
19038
|
-
let t = (0, import_compiler_runtime$
|
|
19038
|
+
let t = (0, import_compiler_runtime$59.c)(5), n;
|
|
19039
19039
|
t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
19040
19040
|
let i;
|
|
19041
19041
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -19043,9 +19043,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19043
19043
|
children: e.children
|
|
19044
19044
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
19045
19045
|
};
|
|
19046
|
-
var import_compiler_runtime$
|
|
19046
|
+
var import_compiler_runtime$58 = require_compiler_runtime();
|
|
19047
19047
|
const ExternalLink$1 = (e) => {
|
|
19048
|
-
let t = (0, import_compiler_runtime$
|
|
19048
|
+
let t = (0, import_compiler_runtime$58.c)(3), { href: n, children: i } = e, a;
|
|
19049
19049
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
19050
19050
|
href: n,
|
|
19051
19051
|
target: "_blank",
|
|
@@ -19232,17 +19232,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19232
19232
|
os: "os",
|
|
19233
19233
|
re: "re",
|
|
19234
19234
|
sys: "sys"
|
|
19235
|
-
}, import_compiler_runtime$
|
|
19235
|
+
}, import_compiler_runtime$57 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
19236
19236
|
function useFixMode() {
|
|
19237
|
-
let e = (0, import_compiler_runtime$
|
|
19237
|
+
let e = (0, import_compiler_runtime$57.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
19238
19238
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
19239
19239
|
fixMode: t,
|
|
19240
19240
|
setFixMode: n
|
|
19241
19241
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
19242
19242
|
}
|
|
19243
|
-
var import_compiler_runtime$
|
|
19243
|
+
var import_compiler_runtime$56 = require_compiler_runtime();
|
|
19244
19244
|
const AutoFixButton = (e) => {
|
|
19245
|
-
let t = (0, import_compiler_runtime$
|
|
19245
|
+
let t = (0, import_compiler_runtime$56.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
|
|
19246
19246
|
if (t[0] !== d || t[1] !== n) {
|
|
19247
19247
|
let e2;
|
|
19248
19248
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -19303,7 +19303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19303
19303
|
};
|
|
19304
19304
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
19305
19305
|
const AIFixButton = (e) => {
|
|
19306
|
-
let t = (0, import_compiler_runtime$
|
|
19306
|
+
let t = (0, import_compiler_runtime$56.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
19307
19307
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19308
19308
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
19309
19309
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19372,7 +19372,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19372
19372
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
19373
19373
|
};
|
|
19374
19374
|
var AiModeItem = (e) => {
|
|
19375
|
-
let t = (0, import_compiler_runtime$
|
|
19375
|
+
let t = (0, import_compiler_runtime$56.c)(12), { mode: n } = e, i;
|
|
19376
19376
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19377
19377
|
className: "h-4 w-4"
|
|
19378
19378
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19409,9 +19409,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19409
19409
|
function useFilename() {
|
|
19410
19410
|
return useAtomValue(filenameAtom);
|
|
19411
19411
|
}
|
|
19412
|
-
var import_compiler_runtime$
|
|
19412
|
+
var import_compiler_runtime$54 = require_compiler_runtime();
|
|
19413
19413
|
const CellLink = (e) => {
|
|
19414
|
-
let t = (0, import_compiler_runtime$
|
|
19414
|
+
let t = (0, import_compiler_runtime$54.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$11, y;
|
|
19415
19415
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
19416
19416
|
let S;
|
|
19417
19417
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -19431,13 +19431,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19431
19431
|
children: w
|
|
19432
19432
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = E) : E = t[11], E;
|
|
19433
19433
|
}, CellLinkError = (e) => {
|
|
19434
|
-
let t = (0, import_compiler_runtime$
|
|
19434
|
+
let t = (0, import_compiler_runtime$54.c)(2), n;
|
|
19435
19435
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
19436
19436
|
...e,
|
|
19437
19437
|
variant: "destructive"
|
|
19438
19438
|
}), t[0] = e, t[1] = n), n;
|
|
19439
19439
|
}, CellLinkTraceback = (e) => {
|
|
19440
|
-
let t = (0, import_compiler_runtime$
|
|
19440
|
+
let t = (0, import_compiler_runtime$54.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
19441
19441
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
19442
19442
|
let s;
|
|
19443
19443
|
t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
|
|
@@ -19465,9 +19465,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19465
19465
|
function _temp$11(e) {
|
|
19466
19466
|
return e;
|
|
19467
19467
|
}
|
|
19468
|
-
var import_compiler_runtime$
|
|
19468
|
+
var import_compiler_runtime$53 = require_compiler_runtime();
|
|
19469
19469
|
const MangledLocalChip = (e) => {
|
|
19470
|
-
let t = (0, import_compiler_runtime$
|
|
19470
|
+
let t = (0, import_compiler_runtime$53.c)(12), { local: n } = e, i;
|
|
19471
19471
|
t[0] === n.name ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
|
|
19472
19472
|
className: "font-code",
|
|
19473
19473
|
children: n.name
|
|
@@ -19499,7 +19499,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19499
19499
|
children: c
|
|
19500
19500
|
}), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
|
|
19501
19501
|
}, MangledSegments = (e) => {
|
|
19502
|
-
let t = (0, import_compiler_runtime$
|
|
19502
|
+
let t = (0, import_compiler_runtime$53.c)(4), { segments: n } = e, i;
|
|
19503
19503
|
t[0] === n ? i = t[1] : (i = n.map(_temp$10), t[0] = n, t[1] = i);
|
|
19504
19504
|
let a;
|
|
19505
19505
|
return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
@@ -19582,7 +19582,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19582
19582
|
value: e2
|
|
19583
19583
|
});
|
|
19584
19584
|
}
|
|
19585
|
-
var import_compiler_runtime$
|
|
19585
|
+
var import_compiler_runtime$52 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
19586
19586
|
const cleanAnsiCodes = (e) => {
|
|
19587
19587
|
let t = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
19588
19588
|
return e.replaceAll(t, "");
|
|
@@ -19650,7 +19650,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19650
19650
|
});
|
|
19651
19651
|
}
|
|
19652
19652
|
var InstallPackageLink = (e) => {
|
|
19653
|
-
let t = (0, import_compiler_runtime$
|
|
19653
|
+
let t = (0, import_compiler_runtime$52.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
|
|
19654
19654
|
t[0] !== a || t[1] !== n ? (o = (e2) => {
|
|
19655
19655
|
a(n), e2.preventDefault();
|
|
19656
19656
|
}, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
|
|
@@ -19723,15 +19723,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19723
19723
|
})
|
|
19724
19724
|
});
|
|
19725
19725
|
RenderTextWithLinks = (e) => {
|
|
19726
|
-
let t = (0, import_compiler_runtime$
|
|
19726
|
+
let t = (0, import_compiler_runtime$52.c)(4), { text: n } = e, i;
|
|
19727
19727
|
t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
|
|
19728
19728
|
let a = i, o;
|
|
19729
19729
|
return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
19730
19730
|
children: a
|
|
19731
19731
|
}), t[2] = a, t[3] = o), o;
|
|
19732
19732
|
};
|
|
19733
|
-
var import_compiler_runtime$
|
|
19734
|
-
let t = (0, import_compiler_runtime$
|
|
19733
|
+
var import_compiler_runtime$51 = require_compiler_runtime(), CollapsibleTraceback = (e) => {
|
|
19734
|
+
let t = (0, import_compiler_runtime$51.c)(16), { traceback: n } = e, [i, a] = (0, import_react.useState)(true), o;
|
|
19735
19735
|
t[0] === i ? o = t[1] : (o = () => a(!i), t[0] = i, t[1] = o);
|
|
19736
19736
|
let s = i ? "Collapse traceback" : "Expand traceback", c;
|
|
19737
19737
|
t[2] === i ? c = t[3] : (c = i ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
@@ -19772,7 +19772,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19772
19772
|
]
|
|
19773
19773
|
}), t[13] = f, t[14] = h, t[15] = _) : _ = t[15], _;
|
|
19774
19774
|
}, Tip = (e) => {
|
|
19775
|
-
let t = (0, import_compiler_runtime$
|
|
19775
|
+
let t = (0, import_compiler_runtime$51.c)(10), n = e.title ?? "Tip", i;
|
|
19776
19776
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
19777
19777
|
className: "pt-2 pb-0 font-normal",
|
|
19778
19778
|
children: n
|
|
@@ -19801,7 +19801,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19801
19801
|
}), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
|
|
19802
19802
|
};
|
|
19803
19803
|
const MarimoErrorOutput = (e) => {
|
|
19804
|
-
let t = (0, import_compiler_runtime$
|
|
19804
|
+
let t = (0, import_compiler_runtime$51.c)(38), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = useAtomValue(resolvedMarimoConfigAtom).display.cell_output === "above", d = "This cell wasn't run because it has errors", f = "destructive", _ = "text-error", v = null;
|
|
19805
19805
|
if (n.some(_temp$9)) d = "Interrupted";
|
|
19806
19806
|
else if (n.some(_temp2$7)) d = "An internal error occurred";
|
|
19807
19807
|
else if (n.some(_temp3$4)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
|
|
@@ -19816,18 +19816,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19816
19816
|
}
|
|
19817
19817
|
let y, S, w, E, O, A;
|
|
19818
19818
|
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) {
|
|
19819
|
-
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), Q = n.filter(_temp14), $ = n.filter(_temp15),
|
|
19820
|
-
t[17] === s ?
|
|
19819
|
+
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), Q = n.filter(_temp14), $ = n.filter(_temp15), GK = n.filter(_temp16), KK = n.filter(_temp17), qK = n.filter(_temp18), YK;
|
|
19820
|
+
t[17] === s ? YK = t[18] : (YK = () => {
|
|
19821
19821
|
s.openApplication("scratchpad");
|
|
19822
|
-
}, t[17] = s, t[18] =
|
|
19823
|
-
let
|
|
19822
|
+
}, t[17] = s, t[18] = YK);
|
|
19823
|
+
let XK = YK, ZK = () => {
|
|
19824
19824
|
let t2 = [];
|
|
19825
|
-
if (
|
|
19826
|
-
let e3 =
|
|
19825
|
+
if (GK.length > 0 || KK.length > 0) {
|
|
19826
|
+
let e3 = GK.some(_temp19), n2 = !e3 && GK.some(_temp20);
|
|
19827
19827
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19828
19828
|
children: [
|
|
19829
|
-
|
|
19830
|
-
|
|
19829
|
+
GK.map(_temp21),
|
|
19830
|
+
KK.map(_temp22),
|
|
19831
19831
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19832
19832
|
size: "xs",
|
|
19833
19833
|
variant: "outline",
|
|
@@ -19858,8 +19858,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19858
19858
|
}),
|
|
19859
19859
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19860
19860
|
errors: [
|
|
19861
|
-
...
|
|
19862
|
-
...
|
|
19861
|
+
...GK,
|
|
19862
|
+
...KK
|
|
19863
19863
|
],
|
|
19864
19864
|
cellId: i
|
|
19865
19865
|
})
|
|
@@ -20020,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20020
20020
|
size: "xs",
|
|
20021
20021
|
variant: "link",
|
|
20022
20022
|
className: "my-2 font-normal mx-0 px-0",
|
|
20023
|
-
onClick:
|
|
20023
|
+
onClick: XK,
|
|
20024
20024
|
children: [
|
|
20025
20025
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20026
20026
|
className: "h-3"
|
|
@@ -20219,18 +20219,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20219
20219
|
cellId: i
|
|
20220
20220
|
})
|
|
20221
20221
|
]
|
|
20222
|
-
}, "ancestor-stopped")),
|
|
20222
|
+
}, "ancestor-stopped")), qK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20223
20223
|
children: [
|
|
20224
|
-
|
|
20224
|
+
qK.map(_temp35),
|
|
20225
20225
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20226
|
-
errors:
|
|
20226
|
+
errors: qK,
|
|
20227
20227
|
cellId: i,
|
|
20228
20228
|
className: "mt-2.5"
|
|
20229
20229
|
})
|
|
20230
20230
|
]
|
|
20231
20231
|
}, "sql-errors")), t2;
|
|
20232
|
-
},
|
|
20233
|
-
t[19] === v ?
|
|
20232
|
+
}, QK;
|
|
20233
|
+
t[19] === v ? QK = t[20] : (QK = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20234
20234
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20235
20235
|
children: [
|
|
20236
20236
|
v,
|
|
@@ -20242,22 +20242,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20242
20242
|
})
|
|
20243
20243
|
})
|
|
20244
20244
|
]
|
|
20245
|
-
}), t[19] = v, t[20] =
|
|
20246
|
-
let
|
|
20247
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20245
|
+
}), t[19] = v, t[20] = QK);
|
|
20246
|
+
let eq;
|
|
20247
|
+
t[21] !== _ || t[22] !== d ? (eq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20248
20248
|
className: `font-code font-medium ${_}`,
|
|
20249
20249
|
children: d
|
|
20250
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20251
|
-
let
|
|
20252
|
-
t[24] !==
|
|
20250
|
+
}), t[21] = _, t[22] = d, t[23] = eq) : eq = t[23];
|
|
20251
|
+
let tq;
|
|
20252
|
+
t[24] !== QK || t[25] !== eq ? (tq = (0, import_jsx_runtime.jsxs)("div", {
|
|
20253
20253
|
className: "space-y-0.5",
|
|
20254
20254
|
children: [
|
|
20255
|
-
|
|
20256
|
-
|
|
20255
|
+
QK,
|
|
20256
|
+
eq
|
|
20257
20257
|
]
|
|
20258
|
-
}), t[24] =
|
|
20259
|
-
let
|
|
20260
|
-
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 =
|
|
20258
|
+
}), t[24] = QK, t[25] = eq, t[26] = tq) : tq = t[26];
|
|
20259
|
+
let nq = tq;
|
|
20260
|
+
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 = nq, S = "flex flex-col gap-4", w = ZK(), 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;
|
|
20261
20261
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20262
20262
|
let M;
|
|
20263
20263
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20495,9 +20495,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20495
20495
|
})
|
|
20496
20496
|
}, `sql-error-${t}`);
|
|
20497
20497
|
}
|
|
20498
|
-
var import_compiler_runtime$
|
|
20498
|
+
var import_compiler_runtime$50 = require_compiler_runtime();
|
|
20499
20499
|
const TextOutput = (e) => {
|
|
20500
|
-
let t = (0, import_compiler_runtime$
|
|
20500
|
+
let t = (0, import_compiler_runtime$50.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
|
|
20501
20501
|
t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
20502
20502
|
className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
20503
20503
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -20514,17 +20514,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20514
20514
|
children: v
|
|
20515
20515
|
}), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
|
|
20516
20516
|
};
|
|
20517
|
-
var import_compiler_runtime$
|
|
20517
|
+
var import_compiler_runtime$49 = require_compiler_runtime();
|
|
20518
20518
|
const VideoOutput = (e) => {
|
|
20519
|
-
let t = (0, import_compiler_runtime$
|
|
20519
|
+
let t = (0, import_compiler_runtime$49.c)(3), { src: n, className: i } = e, a;
|
|
20520
20520
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
|
|
20521
20521
|
className: i,
|
|
20522
20522
|
src: n
|
|
20523
20523
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
20524
20524
|
};
|
|
20525
|
-
var import_compiler_runtime$
|
|
20525
|
+
var import_compiler_runtime$48 = require_compiler_runtime();
|
|
20526
20526
|
useOverflowDetection = function(e, t) {
|
|
20527
|
-
let n = (0, import_compiler_runtime$
|
|
20527
|
+
let n = (0, import_compiler_runtime$48.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
|
|
20528
20528
|
return n[0] !== i || n[1] !== e ? (s = () => {
|
|
20529
20529
|
let t2 = e.current;
|
|
20530
20530
|
if (!t2 || !i) return;
|
|
@@ -20621,9 +20621,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20621
20621
|
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B6ncY2Tp.js").then((e) => ({
|
|
20622
20622
|
default: e.VegaEmbed
|
|
20623
20623
|
})));
|
|
20624
|
-
var import_compiler_runtime$
|
|
20624
|
+
var import_compiler_runtime$47 = require_compiler_runtime();
|
|
20625
20625
|
ChartLoadingState = () => {
|
|
20626
|
-
let e = (0, import_compiler_runtime$
|
|
20626
|
+
let e = (0, import_compiler_runtime$47.c)(1), t;
|
|
20627
20627
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
20628
20628
|
className: "flex items-center gap-2 justify-center",
|
|
20629
20629
|
children: [
|
|
@@ -20638,7 +20638,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20638
20638
|
}), e[0] = t) : t = e[0], t;
|
|
20639
20639
|
};
|
|
20640
20640
|
ChartErrorState = (e) => {
|
|
20641
|
-
let t = (0, import_compiler_runtime$
|
|
20641
|
+
let t = (0, import_compiler_runtime$47.c)(2), { error: n } = e, i;
|
|
20642
20642
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
|
|
20643
20643
|
className: "flex items-center justify-center",
|
|
20644
20644
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -20647,7 +20647,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20647
20647
|
}), t[0] = n, t[1] = i), i;
|
|
20648
20648
|
};
|
|
20649
20649
|
ChartInfoState = (e) => {
|
|
20650
|
-
let t = (0, import_compiler_runtime$
|
|
20650
|
+
let t = (0, import_compiler_runtime$47.c)(8), { children: n, className: i } = e, o;
|
|
20651
20651
|
t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
|
|
20652
20652
|
let s;
|
|
20653
20653
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -20667,11 +20667,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20667
20667
|
]
|
|
20668
20668
|
}), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
|
|
20669
20669
|
};
|
|
20670
|
-
let import_compiler_runtime$
|
|
20671
|
-
import_compiler_runtime$
|
|
20670
|
+
let import_compiler_runtime$46;
|
|
20671
|
+
import_compiler_runtime$46 = require_compiler_runtime();
|
|
20672
20672
|
Tabs = Root2;
|
|
20673
20673
|
TabsList = import_react.forwardRef((e, t) => {
|
|
20674
|
-
let n = (0, import_compiler_runtime$
|
|
20674
|
+
let n = (0, import_compiler_runtime$46.c)(9), i, o;
|
|
20675
20675
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
20676
20676
|
let s;
|
|
20677
20677
|
n[3] === i ? s = n[4] : (s = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -20684,7 +20684,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20684
20684
|
});
|
|
20685
20685
|
TabsList.displayName = List.displayName;
|
|
20686
20686
|
TabsTrigger = import_react.forwardRef((e, t) => {
|
|
20687
|
-
let n = (0, import_compiler_runtime$
|
|
20687
|
+
let n = (0, import_compiler_runtime$46.c)(9), i, o;
|
|
20688
20688
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
20689
20689
|
let s;
|
|
20690
20690
|
n[3] === i ? s = n[4] : (s = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", i), n[3] = i, n[4] = s);
|
|
@@ -20697,7 +20697,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20697
20697
|
});
|
|
20698
20698
|
TabsTrigger.displayName = Trigger.displayName;
|
|
20699
20699
|
TabsContent = import_react.forwardRef((e, t) => {
|
|
20700
|
-
let n = (0, import_compiler_runtime$
|
|
20700
|
+
let n = (0, import_compiler_runtime$46.c)(9), i, o;
|
|
20701
20701
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
20702
20702
|
let s;
|
|
20703
20703
|
n[3] === i ? s = n[4] : (s = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", i), n[3] = i, n[4] = s);
|
|
@@ -20709,9 +20709,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20709
20709
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
20710
20710
|
});
|
|
20711
20711
|
TabsContent.displayName = Content.displayName;
|
|
20712
|
-
var import_compiler_runtime$
|
|
20712
|
+
var import_compiler_runtime$45 = require_compiler_runtime();
|
|
20713
20713
|
const WithLocale = (e) => {
|
|
20714
|
-
let t = (0, import_compiler_runtime$
|
|
20714
|
+
let t = (0, import_compiler_runtime$45.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
20715
20715
|
return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
|
|
20716
20716
|
};
|
|
20717
20717
|
function tzName(e, t, n = "long") {
|
|
@@ -21107,9 +21107,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21107
21107
|
is_null: "Is null",
|
|
21108
21108
|
is_not_null: "Is not null"
|
|
21109
21109
|
};
|
|
21110
|
-
var import_compiler_runtime$
|
|
21110
|
+
var import_compiler_runtime$44 = require_compiler_runtime();
|
|
21111
21111
|
const MimeCell = (e) => {
|
|
21112
|
-
let t = (0, import_compiler_runtime$
|
|
21112
|
+
let t = (0, import_compiler_runtime$44.c)(6), { value: n } = e, i;
|
|
21113
21113
|
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
21114
21114
|
channel: "output",
|
|
21115
21115
|
data: n.data,
|
|
@@ -23426,10 +23426,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23426
23426
|
],
|
|
23427
23427
|
unknown: []
|
|
23428
23428
|
};
|
|
23429
|
-
var import_compiler_runtime$
|
|
23429
|
+
var import_compiler_runtime$43 = require_compiler_runtime();
|
|
23430
23430
|
function FormatOptions(e) {
|
|
23431
23431
|
var _a2, _b, _c;
|
|
23432
|
-
let t = (0, import_compiler_runtime$
|
|
23432
|
+
let t = (0, import_compiler_runtime$43.c)(36), { column: n, locale: i } = e, o = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dataType, s, c, d, f, h, _, v, y;
|
|
23433
23433
|
if (t[0] !== n || t[1] !== o || t[2] !== i) {
|
|
23434
23434
|
y = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
23435
23435
|
bb0: {
|
|
@@ -23504,7 +23504,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23504
23504
|
}
|
|
23505
23505
|
function ColumnWrapping(e) {
|
|
23506
23506
|
var _a2;
|
|
23507
|
-
let t = (0, import_compiler_runtime$
|
|
23507
|
+
let t = (0, import_compiler_runtime$43.c)(10), { column: n } = e;
|
|
23508
23508
|
if (!((_a2 = n.getCanWrap) == null ? void 0 : _a2.call(n)) || !n.getColumnWrapping) return null;
|
|
23509
23509
|
if (n.getColumnWrapping() === "wrap") {
|
|
23510
23510
|
let e2;
|
|
@@ -23539,7 +23539,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23539
23539
|
}
|
|
23540
23540
|
function ColumnPinning$1(e) {
|
|
23541
23541
|
var _a2;
|
|
23542
|
-
let t = (0, import_compiler_runtime$
|
|
23542
|
+
let t = (0, import_compiler_runtime$43.c)(18), { column: n } = e;
|
|
23543
23543
|
if (!((_a2 = n.getCanPin) == null ? void 0 : _a2.call(n)) || !n.getIsPinned) return null;
|
|
23544
23544
|
if (n.getIsPinned() !== false) {
|
|
23545
23545
|
let e2;
|
|
@@ -23594,7 +23594,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23594
23594
|
}), t[15] = o, t[16] = d, t[17] = f) : f = t[17], f;
|
|
23595
23595
|
}
|
|
23596
23596
|
function HideColumn(e) {
|
|
23597
|
-
let t = (0, import_compiler_runtime$
|
|
23597
|
+
let t = (0, import_compiler_runtime$43.c)(5), { column: n } = e;
|
|
23598
23598
|
if (!n.getCanHide()) return null;
|
|
23599
23599
|
let i;
|
|
23600
23600
|
t[0] === n ? i = t[1] : (i = () => n.toggleVisibility(false), t[0] = n, t[1] = i);
|
|
@@ -23613,7 +23613,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23613
23613
|
}
|
|
23614
23614
|
function CopyColumn(e) {
|
|
23615
23615
|
var _a2;
|
|
23616
|
-
let t = (0, import_compiler_runtime$
|
|
23616
|
+
let t = (0, import_compiler_runtime$43.c)(5), { column: n } = e;
|
|
23617
23617
|
if (!((_a2 = n.getCanCopy) == null ? void 0 : _a2.call(n)) || n.id.startsWith("__m_column__")) return null;
|
|
23618
23618
|
let i;
|
|
23619
23619
|
t[0] === n.id ? i = t[1] : (i = async () => await copyToClipboard(n.id), t[0] = n.id, t[1] = i);
|
|
@@ -23632,7 +23632,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23632
23632
|
}
|
|
23633
23633
|
var AscIcon = ArrowUpNarrowWide, DescIcon = ArrowDownWideNarrow;
|
|
23634
23634
|
function Sorts(e) {
|
|
23635
|
-
let t = (0, import_compiler_runtime$
|
|
23635
|
+
let t = (0, import_compiler_runtime$43.c)(40), { column: n, table: i } = e;
|
|
23636
23636
|
if (!n.getCanSort()) return null;
|
|
23637
23637
|
let a;
|
|
23638
23638
|
t[0] === n ? a = t[1] : (a = n.getIsSorted(), t[0] = n, t[1] = a);
|
|
@@ -23725,7 +23725,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23725
23725
|
}
|
|
23726
23726
|
function DataType(e) {
|
|
23727
23727
|
var _a2;
|
|
23728
|
-
let t = (0, import_compiler_runtime$
|
|
23728
|
+
let t = (0, import_compiler_runtime$43.c)(5), { column: n } = e, i = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dtype;
|
|
23729
23729
|
if (!i) return null;
|
|
23730
23730
|
let a;
|
|
23731
23731
|
t[0] === i ? a = t[1] : (a = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -23743,7 +23743,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23743
23743
|
}), t[3] = a, t[4] = s), s;
|
|
23744
23744
|
}
|
|
23745
23745
|
const ClearFilterMenuItem = (e) => {
|
|
23746
|
-
let t = (0, import_compiler_runtime$
|
|
23746
|
+
let t = (0, import_compiler_runtime$43.c)(5), { column: n } = e, i;
|
|
23747
23747
|
t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
|
|
23748
23748
|
let a;
|
|
23749
23749
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -23934,9 +23934,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23934
23934
|
let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
|
|
23935
23935
|
return e !== t && (a(t), n(e)), i;
|
|
23936
23936
|
};
|
|
23937
|
-
var import_compiler_runtime$
|
|
23937
|
+
var import_compiler_runtime$42 = require_compiler_runtime();
|
|
23938
23938
|
DelayMount = (e) => {
|
|
23939
|
-
let t = (0, import_compiler_runtime$
|
|
23939
|
+
let t = (0, import_compiler_runtime$42.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
|
|
23940
23940
|
t[0] !== h || t[1] !== f ? (w = {
|
|
23941
23941
|
threshold: f,
|
|
23942
23942
|
root: null,
|
|
@@ -23967,9 +23967,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23967
23967
|
children: J
|
|
23968
23968
|
}), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
|
|
23969
23969
|
};
|
|
23970
|
-
var import_compiler_runtime$
|
|
23970
|
+
var import_compiler_runtime$41 = require_compiler_runtime();
|
|
23971
23971
|
const DatePopover = (e) => {
|
|
23972
|
-
let t = (0, import_compiler_runtime$
|
|
23972
|
+
let t = (0, import_compiler_runtime$41.c)(15), { date: n, type: i, children: a } = e;
|
|
23973
23973
|
if (!n || Number.isNaN(new Date(n).getTime())) return a;
|
|
23974
23974
|
let o;
|
|
23975
23975
|
t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
|
|
@@ -24009,7 +24009,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24009
24009
|
}), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
|
|
24010
24010
|
};
|
|
24011
24011
|
var TimezoneDisplay = (e) => {
|
|
24012
|
-
let t = (0, import_compiler_runtime$
|
|
24012
|
+
let t = (0, import_compiler_runtime$41.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
|
|
24013
24013
|
t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
|
|
24014
24014
|
let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
|
|
24015
24015
|
t[2] === s ? c = t[3] : (c = s ? {
|
|
@@ -24085,7 +24085,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24085
24085
|
]
|
|
24086
24086
|
}), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
|
|
24087
24087
|
}, DateDisplay = (e) => {
|
|
24088
|
-
let t = (0, import_compiler_runtime$
|
|
24088
|
+
let t = (0, import_compiler_runtime$41.c)(6), { date: n } = e, i;
|
|
24089
24089
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
24090
24090
|
timeZone: "UTC",
|
|
24091
24091
|
dateStyle: "long"
|
|
@@ -24097,7 +24097,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24097
24097
|
children: o
|
|
24098
24098
|
}), t[4] = o, t[5] = s), s;
|
|
24099
24099
|
}, RelativeTime = (e) => {
|
|
24100
|
-
let t = (0, import_compiler_runtime$
|
|
24100
|
+
let t = (0, import_compiler_runtime$41.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
|
|
24101
24101
|
if (t[0] !== n || t[1] !== i) {
|
|
24102
24102
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
24103
24103
|
bb0: {
|
|
@@ -24149,7 +24149,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24149
24149
|
return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
|
|
24150
24150
|
children: a
|
|
24151
24151
|
}), t[4] = a, t[5] = s), s;
|
|
24152
|
-
}, import_compiler_runtime$
|
|
24152
|
+
}, import_compiler_runtime$40 = require_compiler_runtime(), hashString = (e) => {
|
|
24153
24153
|
let t = 0;
|
|
24154
24154
|
for (let n = 0; n < e.length; n++) {
|
|
24155
24155
|
let i = e.charCodeAt(n);
|
|
@@ -24166,7 +24166,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24166
24166
|
return i;
|
|
24167
24167
|
};
|
|
24168
24168
|
const ChartSkeleton = (e) => {
|
|
24169
|
-
let t = (0, import_compiler_runtime$
|
|
24169
|
+
let t = (0, import_compiler_runtime$40.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
|
|
24170
24170
|
if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
|
|
24171
24171
|
let e2 = generateHeights({
|
|
24172
24172
|
numBars: 9,
|
|
@@ -24545,7 +24545,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24545
24545
|
let c = s / t.length;
|
|
24546
24546
|
return Math.max(c, 1);
|
|
24547
24547
|
}
|
|
24548
|
-
let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$
|
|
24548
|
+
let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$39;
|
|
24549
24549
|
MAX_BAR_HEIGHT = 20;
|
|
24550
24550
|
BIN_END_EXTENSION_FACTOR = 0.1;
|
|
24551
24551
|
CONCAT_CHART_HEIGHT = 30;
|
|
@@ -25182,11 +25182,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25182
25182
|
}, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
|
|
25183
25183
|
includeCharts: false
|
|
25184
25184
|
})), _a);
|
|
25185
|
-
import_compiler_runtime$
|
|
25185
|
+
import_compiler_runtime$39 = require_compiler_runtime();
|
|
25186
25186
|
ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
25187
25187
|
var batchedLoader = createBatchedLoader();
|
|
25188
25188
|
const TableColumnSummary = (e) => {
|
|
25189
|
-
let t = (0, import_compiler_runtime$
|
|
25189
|
+
let t = (0, import_compiler_runtime$39.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
|
|
25190
25190
|
if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
|
|
25191
25191
|
let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
|
|
25192
25192
|
if (e2) {
|
|
@@ -25387,7 +25387,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25387
25387
|
};
|
|
25388
25388
|
}
|
|
25389
25389
|
};
|
|
25390
|
-
var import_compiler_runtime$
|
|
25390
|
+
var import_compiler_runtime$38 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
25391
25391
|
" ": {
|
|
25392
25392
|
marker: "\u2423",
|
|
25393
25393
|
name: "space"
|
|
@@ -25463,7 +25463,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25463
25463
|
}
|
|
25464
25464
|
};
|
|
25465
25465
|
function WhitespaceMarkers(e) {
|
|
25466
|
-
let t = (0, import_compiler_runtime$
|
|
25466
|
+
let t = (0, import_compiler_runtime$38.c)(7), { value: n } = e;
|
|
25467
25467
|
if (!n) return null;
|
|
25468
25468
|
let i;
|
|
25469
25469
|
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
@@ -25478,7 +25478,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25478
25478
|
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
25479
25479
|
}
|
|
25480
25480
|
function SentinelCell(e) {
|
|
25481
|
-
let t = (0, import_compiler_runtime$
|
|
25481
|
+
let t = (0, import_compiler_runtime$38.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
25482
25482
|
t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
|
|
25483
25483
|
let o = a, s;
|
|
25484
25484
|
t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
|
|
@@ -25507,8 +25507,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25507
25507
|
let a = e.at(-1);
|
|
25508
25508
|
return n.push(a), n;
|
|
25509
25509
|
}
|
|
25510
|
-
var import_compiler_runtime$
|
|
25511
|
-
let t = (0, import_compiler_runtime$
|
|
25510
|
+
var import_compiler_runtime$37 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
25511
|
+
let t = (0, import_compiler_runtime$37.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
|
|
25512
25512
|
if (i) {
|
|
25513
25513
|
let e2;
|
|
25514
25514
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
|
|
@@ -25582,7 +25582,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25582
25582
|
return t.some((e2) => n.has(e2.type));
|
|
25583
25583
|
}
|
|
25584
25584
|
const MarkdownUrlDetector = (e) => {
|
|
25585
|
-
let t = (0, import_compiler_runtime$
|
|
25585
|
+
let t = (0, import_compiler_runtime$37.c)(4), { content: n, parts: i } = e;
|
|
25586
25586
|
if (isMarkdown(n)) {
|
|
25587
25587
|
let e2;
|
|
25588
25588
|
return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
|
|
@@ -25599,7 +25599,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25599
25599
|
url: e2.url
|
|
25600
25600
|
}, t) : e2.value);
|
|
25601
25601
|
var URLAnchor = (e) => {
|
|
25602
|
-
let t = (0, import_compiler_runtime$
|
|
25602
|
+
let t = (0, import_compiler_runtime$37.c)(3), { url: n } = e, i;
|
|
25603
25603
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
|
|
25604
25604
|
let a;
|
|
25605
25605
|
return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
|
|
@@ -25994,10 +25994,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25994
25994
|
maximumFractionDigits: maxFractionalDigits(n)
|
|
25995
25995
|
}).format(e);
|
|
25996
25996
|
};
|
|
25997
|
-
let import_compiler_runtime$
|
|
25998
|
-
import_compiler_runtime$
|
|
25997
|
+
let import_compiler_runtime$36;
|
|
25998
|
+
import_compiler_runtime$36 = require_compiler_runtime();
|
|
25999
25999
|
Table = import_react.forwardRef((e, t) => {
|
|
26000
|
-
let n = (0, import_compiler_runtime$
|
|
26000
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26001
26001
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26002
26002
|
let s;
|
|
26003
26003
|
n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
|
|
@@ -26013,7 +26013,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26013
26013
|
});
|
|
26014
26014
|
Table.displayName = "Table";
|
|
26015
26015
|
TableHeader = import_react.forwardRef((e, t) => {
|
|
26016
|
-
let n = (0, import_compiler_runtime$
|
|
26016
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26017
26017
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26018
26018
|
let s;
|
|
26019
26019
|
n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
|
|
@@ -26026,7 +26026,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26026
26026
|
});
|
|
26027
26027
|
TableHeader.displayName = "TableHeader";
|
|
26028
26028
|
TableBody = import_react.forwardRef((e, t) => {
|
|
26029
|
-
let n = (0, import_compiler_runtime$
|
|
26029
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26030
26030
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26031
26031
|
let s;
|
|
26032
26032
|
n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
|
|
@@ -26039,7 +26039,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26039
26039
|
});
|
|
26040
26040
|
TableBody.displayName = "TableBody";
|
|
26041
26041
|
var TableFooter = import_react.forwardRef((e, t) => {
|
|
26042
|
-
let n = (0, import_compiler_runtime$
|
|
26042
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26043
26043
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26044
26044
|
let s;
|
|
26045
26045
|
n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -26052,7 +26052,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26052
26052
|
});
|
|
26053
26053
|
TableFooter.displayName = "TableFooter";
|
|
26054
26054
|
TableRow = import_react.forwardRef((e, t) => {
|
|
26055
|
-
let n = (0, import_compiler_runtime$
|
|
26055
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26056
26056
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26057
26057
|
let s;
|
|
26058
26058
|
n[3] === i ? s = n[4] : (s = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", i), n[3] = i, n[4] = s);
|
|
@@ -26065,7 +26065,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26065
26065
|
});
|
|
26066
26066
|
TableRow.displayName = "TableRow";
|
|
26067
26067
|
TableHead = import_react.forwardRef((e, t) => {
|
|
26068
|
-
let n = (0, import_compiler_runtime$
|
|
26068
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26069
26069
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26070
26070
|
let s;
|
|
26071
26071
|
n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
|
|
@@ -26078,7 +26078,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26078
26078
|
});
|
|
26079
26079
|
TableHead.displayName = "TableHead";
|
|
26080
26080
|
TableCell = import_react.forwardRef((e, t) => {
|
|
26081
|
-
let n = (0, import_compiler_runtime$
|
|
26081
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26082
26082
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26083
26083
|
let s;
|
|
26084
26084
|
n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
|
|
@@ -26091,7 +26091,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26091
26091
|
});
|
|
26092
26092
|
TableCell.displayName = "TableCell";
|
|
26093
26093
|
var TableCaption = import_react.forwardRef((e, t) => {
|
|
26094
|
-
let n = (0, import_compiler_runtime$
|
|
26094
|
+
let n = (0, import_compiler_runtime$36.c)(9), i, o;
|
|
26095
26095
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
26096
26096
|
let s;
|
|
26097
26097
|
n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -26296,7 +26296,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26296
26296
|
resizeHandleEnabled: "data-panel-resize-handle-enabled",
|
|
26297
26297
|
resizeHandleId: "data-panel-resize-handle-id",
|
|
26298
26298
|
resizeHandleState: "data-resize-handle-state"
|
|
26299
|
-
}, PRECISION = 10, useIsomorphicLayoutEffect$1 = import_react.useLayoutEffect, useId$
|
|
26299
|
+
}, PRECISION = 10, useIsomorphicLayoutEffect$1 = import_react.useLayoutEffect, useId$3 = import_react.useId, wrappedUseId = typeof useId$3 == "function" ? useId$3 : () => null, counter = 0;
|
|
26300
26300
|
function useUniqueId(e = null) {
|
|
26301
26301
|
let t = wrappedUseId(), n = (0, import_react.useRef)(e || t || null);
|
|
26302
26302
|
return n.current === null && (n.current = "" + counter++), e ?? n.current;
|
|
@@ -26304,7 +26304,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26304
26304
|
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 }) {
|
|
26305
26305
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26306
26306
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26307
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26307
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), GK = (0, import_react.useRef)({
|
|
26308
26308
|
callbacks: {
|
|
26309
26309
|
onCollapse: f,
|
|
26310
26310
|
onExpand: h,
|
|
@@ -26324,12 +26324,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26324
26324
|
(0, import_react.useRef)({
|
|
26325
26325
|
didLogMissingDefaultSizeWarning: false
|
|
26326
26326
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26327
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26327
|
+
let { callbacks: e2, constraints: t2 } = GK.current, o2 = {
|
|
26328
26328
|
...t2
|
|
26329
26329
|
};
|
|
26330
|
-
|
|
26330
|
+
GK.current.id = $, GK.current.idIsFromProps = s !== void 0, GK.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(GK.current, o2);
|
|
26331
26331
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26332
|
-
let e2 =
|
|
26332
|
+
let e2 = GK.current;
|
|
26333
26333
|
return q(e2), () => {
|
|
26334
26334
|
Q(e2);
|
|
26335
26335
|
};
|
|
@@ -26340,25 +26340,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26340
26340
|
Q
|
|
26341
26341
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26342
26342
|
collapse: () => {
|
|
26343
|
-
O(
|
|
26343
|
+
O(GK.current);
|
|
26344
26344
|
},
|
|
26345
26345
|
expand: (e2) => {
|
|
26346
|
-
A(
|
|
26346
|
+
A(GK.current, e2);
|
|
26347
26347
|
},
|
|
26348
26348
|
getId() {
|
|
26349
26349
|
return $;
|
|
26350
26350
|
},
|
|
26351
26351
|
getSize() {
|
|
26352
|
-
return M(
|
|
26352
|
+
return M(GK.current);
|
|
26353
26353
|
},
|
|
26354
26354
|
isCollapsed() {
|
|
26355
|
-
return U(
|
|
26355
|
+
return U(GK.current);
|
|
26356
26356
|
},
|
|
26357
26357
|
isExpanded() {
|
|
26358
|
-
return !U(
|
|
26358
|
+
return !U(GK.current);
|
|
26359
26359
|
},
|
|
26360
26360
|
resize: (e2) => {
|
|
26361
|
-
J(
|
|
26361
|
+
J(GK.current, e2);
|
|
26362
26362
|
}
|
|
26363
26363
|
}), [
|
|
26364
26364
|
O,
|
|
@@ -26368,21 +26368,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26368
26368
|
$,
|
|
26369
26369
|
J
|
|
26370
26370
|
]);
|
|
26371
|
-
let
|
|
26371
|
+
let KK = I(GK.current, a);
|
|
26372
26372
|
return (0, import_react.createElement)(S, {
|
|
26373
26373
|
...w,
|
|
26374
26374
|
children: e,
|
|
26375
26375
|
className: t,
|
|
26376
26376
|
id: $,
|
|
26377
26377
|
style: {
|
|
26378
|
-
...
|
|
26378
|
+
...KK,
|
|
26379
26379
|
...y
|
|
26380
26380
|
},
|
|
26381
26381
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26382
26382
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26383
26383
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26384
26384
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26385
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26385
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + KK.flexGrow).toFixed(1)
|
|
26386
26386
|
});
|
|
26387
26387
|
}
|
|
26388
26388
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27167,13 +27167,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27167
27167
|
}, [
|
|
27168
27168
|
S,
|
|
27169
27169
|
E
|
|
27170
|
-
]),
|
|
27170
|
+
]), GK = (0, import_react.useCallback)((e2) => {
|
|
27171
27171
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27172
27172
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27173
|
-
}, []),
|
|
27173
|
+
}, []), KK = (0, import_react.useCallback)((e2) => {
|
|
27174
27174
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27175
27175
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27176
|
-
}, []),
|
|
27176
|
+
}, []), qK = (0, import_react.useCallback)((e2) => {
|
|
27177
27177
|
let { panelDataArray: t2 } = K.current;
|
|
27178
27178
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27179
27179
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27205,7 +27205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27205
27205
|
e2.layout = [];
|
|
27206
27206
|
};
|
|
27207
27207
|
}, []);
|
|
27208
|
-
let
|
|
27208
|
+
let JK = (0, import_react.useCallback)((e2) => {
|
|
27209
27209
|
let t2 = false, n2 = y.current;
|
|
27210
27210
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27211
27211
|
n3.preventDefault();
|
|
@@ -27223,7 +27223,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27223
27223
|
}), I2 = !compareLayouts(f2, A2);
|
|
27224
27224
|
(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));
|
|
27225
27225
|
};
|
|
27226
|
-
}, []),
|
|
27226
|
+
}, []), YK = (0, import_react.useCallback)((e2, t2) => {
|
|
27227
27227
|
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);
|
|
27228
27228
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27229
27229
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27235,12 +27235,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27235
27235
|
trigger: "imperative-api"
|
|
27236
27236
|
});
|
|
27237
27237
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27238
|
-
}, []),
|
|
27238
|
+
}, []), XK = (0, import_react.useCallback)((e2, t2) => {
|
|
27239
27239
|
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);
|
|
27240
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27240
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || YK(e2, s2) : h2 < f2 ? YK(e2, f2) : h2 > d2 && YK(e2, d2));
|
|
27241
27241
|
}, [
|
|
27242
|
-
|
|
27243
|
-
]),
|
|
27242
|
+
YK
|
|
27243
|
+
]), ZK = (0, import_react.useCallback)((e2, t2) => {
|
|
27244
27244
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27245
27245
|
if (!y.current) return;
|
|
27246
27246
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27252,14 +27252,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27252
27252
|
initialCursorPosition: o2,
|
|
27253
27253
|
initialLayout: i2
|
|
27254
27254
|
});
|
|
27255
|
-
}, []),
|
|
27255
|
+
}, []), QK = (0, import_react.useCallback)(() => {
|
|
27256
27256
|
w(null);
|
|
27257
|
-
}, []),
|
|
27257
|
+
}, []), $K = (0, import_react.useCallback)((e2) => {
|
|
27258
27258
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27259
27259
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27260
27260
|
}, [
|
|
27261
27261
|
A
|
|
27262
|
-
]),
|
|
27262
|
+
]), eq = (0, import_react.useMemo)(() => ({
|
|
27263
27263
|
collapsePanel: q,
|
|
27264
27264
|
direction: i,
|
|
27265
27265
|
dragState: S,
|
|
@@ -27267,15 +27267,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27267
27267
|
getPanelSize: Q,
|
|
27268
27268
|
getPanelStyle: $,
|
|
27269
27269
|
groupId: v,
|
|
27270
|
-
isPanelCollapsed:
|
|
27271
|
-
isPanelExpanded:
|
|
27272
|
-
reevaluatePanelConstraints:
|
|
27273
|
-
registerPanel:
|
|
27274
|
-
registerResizeHandle:
|
|
27275
|
-
resizePanel:
|
|
27276
|
-
startDragging:
|
|
27277
|
-
stopDragging:
|
|
27278
|
-
unregisterPanel:
|
|
27270
|
+
isPanelCollapsed: GK,
|
|
27271
|
+
isPanelExpanded: KK,
|
|
27272
|
+
reevaluatePanelConstraints: XK,
|
|
27273
|
+
registerPanel: qK,
|
|
27274
|
+
registerResizeHandle: JK,
|
|
27275
|
+
resizePanel: YK,
|
|
27276
|
+
startDragging: ZK,
|
|
27277
|
+
stopDragging: QK,
|
|
27278
|
+
unregisterPanel: $K,
|
|
27279
27279
|
panelGroupElement: y.current
|
|
27280
27280
|
}), [
|
|
27281
27281
|
q,
|
|
@@ -27285,16 +27285,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27285
27285
|
Q,
|
|
27286
27286
|
$,
|
|
27287
27287
|
v,
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
|
|
27294
|
-
|
|
27295
|
-
|
|
27296
|
-
|
|
27297
|
-
]),
|
|
27288
|
+
GK,
|
|
27289
|
+
KK,
|
|
27290
|
+
XK,
|
|
27291
|
+
qK,
|
|
27292
|
+
JK,
|
|
27293
|
+
YK,
|
|
27294
|
+
ZK,
|
|
27295
|
+
QK,
|
|
27296
|
+
$K
|
|
27297
|
+
]), tq = {
|
|
27298
27298
|
display: "flex",
|
|
27299
27299
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27300
27300
|
height: "100%",
|
|
@@ -27302,7 +27302,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27302
27302
|
width: "100%"
|
|
27303
27303
|
};
|
|
27304
27304
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27305
|
-
value:
|
|
27305
|
+
value: eq
|
|
27306
27306
|
}, (0, import_react.createElement)(h, {
|
|
27307
27307
|
..._,
|
|
27308
27308
|
children: t,
|
|
@@ -27310,7 +27310,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27310
27310
|
id: o,
|
|
27311
27311
|
ref: y,
|
|
27312
27312
|
style: {
|
|
27313
|
-
...
|
|
27313
|
+
...tq,
|
|
27314
27314
|
...f
|
|
27315
27315
|
},
|
|
27316
27316
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27387,31 +27387,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27387
27387
|
});
|
|
27388
27388
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27389
27389
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27390
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27390
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, GK] = (0, import_react.useState)(false), [KK, qK] = (0, import_react.useState)(null), JK = (0, import_react.useRef)({
|
|
27391
27391
|
state: J
|
|
27392
27392
|
});
|
|
27393
27393
|
useIsomorphicLayoutEffect$1(() => {
|
|
27394
|
-
|
|
27394
|
+
JK.current.state = J;
|
|
27395
27395
|
}), (0, import_react.useEffect)(() => {
|
|
27396
|
-
if (n)
|
|
27396
|
+
if (n) qK(null);
|
|
27397
27397
|
else {
|
|
27398
27398
|
let e2 = I(q);
|
|
27399
|
-
|
|
27399
|
+
qK(() => e2);
|
|
27400
27400
|
}
|
|
27401
27401
|
}, [
|
|
27402
27402
|
n,
|
|
27403
27403
|
q,
|
|
27404
27404
|
I
|
|
27405
27405
|
]);
|
|
27406
|
-
let
|
|
27406
|
+
let YK = (i == null ? void 0 : i.coarse) ?? 15, XK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27407
27407
|
(0, import_react.useEffect)(() => {
|
|
27408
|
-
if (n ||
|
|
27408
|
+
if (n || KK == null) return;
|
|
27409
27409
|
let e2 = w.current;
|
|
27410
27410
|
assert(e2, "Element ref not attached");
|
|
27411
27411
|
let t2 = false;
|
|
27412
27412
|
return registerResizeHandle(q, e2, A, {
|
|
27413
|
-
coarse:
|
|
27414
|
-
fine:
|
|
27413
|
+
coarse: YK,
|
|
27414
|
+
fine: XK
|
|
27415
27415
|
}, (e3, n2, i2) => {
|
|
27416
27416
|
if (!n2) {
|
|
27417
27417
|
Q("inactive");
|
|
@@ -27425,8 +27425,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27425
27425
|
break;
|
|
27426
27426
|
}
|
|
27427
27427
|
case "move": {
|
|
27428
|
-
let { state: e4 } =
|
|
27429
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27428
|
+
let { state: e4 } = JK.current;
|
|
27429
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), KK(i2);
|
|
27430
27430
|
break;
|
|
27431
27431
|
}
|
|
27432
27432
|
case "up": {
|
|
@@ -27438,22 +27438,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27438
27438
|
}
|
|
27439
27439
|
});
|
|
27440
27440
|
}, [
|
|
27441
|
-
|
|
27441
|
+
YK,
|
|
27442
27442
|
A,
|
|
27443
27443
|
n,
|
|
27444
|
-
|
|
27444
|
+
XK,
|
|
27445
27445
|
I,
|
|
27446
27446
|
q,
|
|
27447
|
-
|
|
27447
|
+
KK,
|
|
27448
27448
|
z,
|
|
27449
27449
|
U
|
|
27450
27450
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27451
27451
|
disabled: n,
|
|
27452
27452
|
handleId: q,
|
|
27453
|
-
resizeHandler:
|
|
27453
|
+
resizeHandler: KK,
|
|
27454
27454
|
panelGroupElement: K
|
|
27455
27455
|
});
|
|
27456
|
-
let
|
|
27456
|
+
let ZK = {
|
|
27457
27457
|
touchAction: "none",
|
|
27458
27458
|
userSelect: "none"
|
|
27459
27459
|
};
|
|
@@ -27463,15 +27463,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27463
27463
|
className: t,
|
|
27464
27464
|
id: a,
|
|
27465
27465
|
onBlur: () => {
|
|
27466
|
-
|
|
27466
|
+
GK(false), o == null ? void 0 : o();
|
|
27467
27467
|
},
|
|
27468
27468
|
onFocus: () => {
|
|
27469
|
-
|
|
27469
|
+
GK(true), d == null ? void 0 : d();
|
|
27470
27470
|
},
|
|
27471
27471
|
ref: w,
|
|
27472
27472
|
role: "separator",
|
|
27473
27473
|
style: {
|
|
27474
|
-
...
|
|
27474
|
+
...ZK,
|
|
27475
27475
|
..._
|
|
27476
27476
|
},
|
|
27477
27477
|
tabIndex: v,
|
|
@@ -27485,8 +27485,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27485
27485
|
});
|
|
27486
27486
|
};
|
|
27487
27487
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
27488
|
-
let import_compiler_runtime$
|
|
27489
|
-
import_compiler_runtime$
|
|
27488
|
+
let import_compiler_runtime$35, toggleVariants;
|
|
27489
|
+
import_compiler_runtime$35 = require_compiler_runtime();
|
|
27490
27490
|
toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
|
|
27491
27491
|
variants: {
|
|
27492
27492
|
variant: {
|
|
@@ -27506,7 +27506,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27506
27506
|
}
|
|
27507
27507
|
});
|
|
27508
27508
|
Toggle = import_react.forwardRef((e, t) => {
|
|
27509
|
-
let n = (0, import_compiler_runtime$
|
|
27509
|
+
let n = (0, import_compiler_runtime$35.c)(13), i, o, s, c;
|
|
27510
27510
|
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, variant: c, size: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
27511
27511
|
let d;
|
|
27512
27512
|
n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
|
|
@@ -27533,14 +27533,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27533
27533
|
contextAwarePanelOpen = atom(false);
|
|
27534
27534
|
atom(false);
|
|
27535
27535
|
isCellAwareAtom = atom(false);
|
|
27536
|
-
var import_compiler_runtime$
|
|
27536
|
+
var import_compiler_runtime$34 = require_compiler_runtime();
|
|
27537
27537
|
let CellHoverTemplateFeature;
|
|
27538
27538
|
PANEL_TYPES = {
|
|
27539
27539
|
ROW_VIEWER: "row-viewer",
|
|
27540
27540
|
COLUMN_EXPLORER: "column-explorer"
|
|
27541
27541
|
};
|
|
27542
27542
|
ContextAwarePanelItem = (e) => {
|
|
27543
|
-
let t = (0, import_compiler_runtime$
|
|
27543
|
+
let t = (0, import_compiler_runtime$34.c)(2), { children: n } = e, i;
|
|
27544
27544
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
27545
27545
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
27546
27546
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -27761,7 +27761,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27761
27761
|
items: /* @__PURE__ */ new Map(),
|
|
27762
27762
|
groups: /* @__PURE__ */ new Set()
|
|
27763
27763
|
}
|
|
27764
|
-
})), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), s = L(() => /* @__PURE__ */ new Set()), c = pe(e), { label: d, children: f, value: h, onValueChange: _, filter: v, shouldFilter: y, loop: S, disablePointerSelection: w = false, vimBindings: E = true, ...O } = e, A = useId$
|
|
27764
|
+
})), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), s = L(() => /* @__PURE__ */ new Set()), c = pe(e), { label: d, children: f, value: h, onValueChange: _, filter: v, shouldFilter: y, loop: S, disablePointerSelection: w = false, vimBindings: E = true, ...O } = e, A = useId$2(), M = useId$2(), I = useId$2(), z = import_react.useRef(null), U = ke();
|
|
27765
27765
|
k(() => {
|
|
27766
27766
|
if (h !== void 0) {
|
|
27767
27767
|
let e2 = h.trim();
|
|
@@ -27770,7 +27770,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27770
27770
|
}, [
|
|
27771
27771
|
h
|
|
27772
27772
|
]), k(() => {
|
|
27773
|
-
U(6,
|
|
27773
|
+
U(6, KK);
|
|
27774
27774
|
}, []);
|
|
27775
27775
|
let K = import_react.useMemo(() => ({
|
|
27776
27776
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27779,7 +27779,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27779
27779
|
var _a2;
|
|
27780
27780
|
var a2, o2, s2;
|
|
27781
27781
|
if (!Object.is(n.current[e2], t2)) {
|
|
27782
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27782
|
+
if (n.current[e2] = t2, e2 === "search") GK(), Q(), U(1, $);
|
|
27783
27783
|
else if (e2 === "value") {
|
|
27784
27784
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27785
27785
|
let e3 = document.getElementById(I);
|
|
@@ -27787,8 +27787,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27787
27787
|
}
|
|
27788
27788
|
if (U(7, () => {
|
|
27789
27789
|
var _a3;
|
|
27790
|
-
n.current.selectedItemId = (_a3 =
|
|
27791
|
-
}), i2 || U(5,
|
|
27790
|
+
n.current.selectedItemId = (_a3 = qK()) == null ? void 0 : _a3.id, K.emit();
|
|
27791
|
+
}), i2 || U(5, KK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27792
27792
|
let e3 = t2 ?? "";
|
|
27793
27793
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27794
27794
|
return;
|
|
@@ -27813,12 +27813,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27813
27813
|
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([
|
|
27814
27814
|
e2
|
|
27815
27815
|
]))), U(3, () => {
|
|
27816
|
-
|
|
27816
|
+
GK(), Q(), n.current.value || $(), K.emit();
|
|
27817
27817
|
}), () => {
|
|
27818
27818
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27819
|
-
let t3 =
|
|
27819
|
+
let t3 = qK();
|
|
27820
27820
|
U(4, () => {
|
|
27821
|
-
|
|
27821
|
+
GK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
27822
27822
|
});
|
|
27823
27823
|
}),
|
|
27824
27824
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27851,7 +27851,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27851
27851
|
]);
|
|
27852
27852
|
});
|
|
27853
27853
|
let i2 = z.current;
|
|
27854
|
-
|
|
27854
|
+
JK().sort((t3, n2) => {
|
|
27855
27855
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27856
27856
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27857
27857
|
}).forEach((e3) => {
|
|
@@ -27865,10 +27865,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27865
27865
|
}
|
|
27866
27866
|
function $() {
|
|
27867
27867
|
var _a2;
|
|
27868
|
-
let e2 = (_a2 =
|
|
27868
|
+
let e2 = (_a2 = JK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27869
27869
|
K.setState("value", e2 || void 0);
|
|
27870
27870
|
}
|
|
27871
|
-
function
|
|
27871
|
+
function GK() {
|
|
27872
27872
|
var _a2, _b;
|
|
27873
27873
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27874
27874
|
n.current.filtered.count = i.current.size;
|
|
@@ -27886,43 +27886,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27886
27886
|
}
|
|
27887
27887
|
n.current.filtered.count = e2;
|
|
27888
27888
|
}
|
|
27889
|
-
function
|
|
27889
|
+
function KK() {
|
|
27890
27890
|
var _a2, _b;
|
|
27891
27891
|
var e2;
|
|
27892
|
-
let t2 =
|
|
27892
|
+
let t2 = qK();
|
|
27893
27893
|
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({
|
|
27894
27894
|
block: "nearest"
|
|
27895
27895
|
})), t2.scrollIntoView({
|
|
27896
27896
|
block: "nearest"
|
|
27897
27897
|
}));
|
|
27898
27898
|
}
|
|
27899
|
-
function
|
|
27899
|
+
function qK() {
|
|
27900
27900
|
var _a2;
|
|
27901
27901
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27902
27902
|
}
|
|
27903
|
-
function
|
|
27903
|
+
function JK() {
|
|
27904
27904
|
var _a2;
|
|
27905
27905
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27906
27906
|
}
|
|
27907
|
-
function
|
|
27908
|
-
let t2 =
|
|
27907
|
+
function YK(e2) {
|
|
27908
|
+
let t2 = JK()[e2];
|
|
27909
27909
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27910
27910
|
}
|
|
27911
|
-
function
|
|
27911
|
+
function XK(e2) {
|
|
27912
27912
|
var t2;
|
|
27913
|
-
let n2 =
|
|
27913
|
+
let n2 = qK(), i2 = JK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27914
27914
|
(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));
|
|
27915
27915
|
}
|
|
27916
|
-
function
|
|
27916
|
+
function ZK(e2) {
|
|
27917
27917
|
var _a2;
|
|
27918
|
-
let t2 = (_a2 =
|
|
27918
|
+
let t2 = (_a2 = qK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27919
27919
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27920
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27920
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : XK(e2);
|
|
27921
27921
|
}
|
|
27922
|
-
let
|
|
27923
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27924
|
-
},
|
|
27925
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27922
|
+
let QK = () => YK(JK().length - 1), $K = (e2) => {
|
|
27923
|
+
e2.preventDefault(), e2.metaKey ? QK() : e2.altKey ? ZK(1) : XK(1);
|
|
27924
|
+
}, eq = (e2) => {
|
|
27925
|
+
e2.preventDefault(), e2.metaKey ? YK(0) : e2.altKey ? ZK(-1) : XK(-1);
|
|
27926
27926
|
};
|
|
27927
27927
|
return import_react.createElement(Primitive.div, {
|
|
27928
27928
|
ref: t,
|
|
@@ -27936,27 +27936,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27936
27936
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27937
27937
|
case "n":
|
|
27938
27938
|
case "j":
|
|
27939
|
-
E && e2.ctrlKey &&
|
|
27939
|
+
E && e2.ctrlKey && $K(e2);
|
|
27940
27940
|
break;
|
|
27941
27941
|
case "ArrowDown":
|
|
27942
|
-
|
|
27942
|
+
$K(e2);
|
|
27943
27943
|
break;
|
|
27944
27944
|
case "p":
|
|
27945
27945
|
case "k":
|
|
27946
|
-
E && e2.ctrlKey &&
|
|
27946
|
+
E && e2.ctrlKey && eq(e2);
|
|
27947
27947
|
break;
|
|
27948
27948
|
case "ArrowUp":
|
|
27949
|
-
|
|
27949
|
+
eq(e2);
|
|
27950
27950
|
break;
|
|
27951
27951
|
case "Home":
|
|
27952
|
-
e2.preventDefault(),
|
|
27952
|
+
e2.preventDefault(), YK(0);
|
|
27953
27953
|
break;
|
|
27954
27954
|
case "End":
|
|
27955
|
-
e2.preventDefault(),
|
|
27955
|
+
e2.preventDefault(), QK();
|
|
27956
27956
|
break;
|
|
27957
27957
|
case "Enter": {
|
|
27958
27958
|
e2.preventDefault();
|
|
27959
|
-
let t3 =
|
|
27959
|
+
let t3 = qK();
|
|
27960
27960
|
if (t3) {
|
|
27961
27961
|
let e3 = new Event(Z);
|
|
27962
27962
|
t3.dispatchEvent(e3);
|
|
@@ -27976,7 +27976,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27976
27976
|
}, e2))));
|
|
27977
27977
|
}), he$1 = import_react.forwardRef((e, t) => {
|
|
27978
27978
|
var _a2;
|
|
27979
|
-
let n = useId$
|
|
27979
|
+
let n = useId$2(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), s = pe(e), c = ((_a2 = s.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
|
|
27980
27980
|
k(() => {
|
|
27981
27981
|
if (!c) return o.item(n, a == null ? void 0 : a.id);
|
|
27982
27982
|
}, [
|
|
@@ -28018,7 +28018,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28018
28018
|
onClick: w ? void 0 : y
|
|
28019
28019
|
}, e.children);
|
|
28020
28020
|
}), Ee = import_react.forwardRef((e, t) => {
|
|
28021
|
-
let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$
|
|
28021
|
+
let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$2(), c = import_react.useRef(null), f = import_react.useRef(null), h = useId$2(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(s) : true);
|
|
28022
28022
|
k(() => _.group(s), []), ve(s, c, [
|
|
28023
28023
|
e.value,
|
|
28024
28024
|
e.heading,
|
|
@@ -28244,10 +28244,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28244
28244
|
function smartMatchFilter(e, t, n) {
|
|
28245
28245
|
return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
|
|
28246
28246
|
}
|
|
28247
|
-
let import_compiler_runtime$
|
|
28248
|
-
import_compiler_runtime$
|
|
28247
|
+
let import_compiler_runtime$33;
|
|
28248
|
+
import_compiler_runtime$33 = require_compiler_runtime();
|
|
28249
28249
|
Command = import_react.forwardRef((e, t) => {
|
|
28250
|
-
let n = (0, import_compiler_runtime$
|
|
28250
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
28251
28251
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
28252
28252
|
let s;
|
|
28253
28253
|
n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -28261,7 +28261,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28261
28261
|
});
|
|
28262
28262
|
Command.displayName = _e.displayName;
|
|
28263
28263
|
CommandInput = import_react.forwardRef((e, t) => {
|
|
28264
|
-
let n = (0, import_compiler_runtime$
|
|
28264
|
+
let n = (0, import_compiler_runtime$33.c)(19), i, o, s, c;
|
|
28265
28265
|
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
28266
28266
|
let d;
|
|
28267
28267
|
n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
|
|
@@ -28289,7 +28289,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28289
28289
|
});
|
|
28290
28290
|
CommandInput.displayName = _e.Input.displayName;
|
|
28291
28291
|
CommandList = import_react.forwardRef((e, t) => {
|
|
28292
|
-
let n = (0, import_compiler_runtime$
|
|
28292
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
28293
28293
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
28294
28294
|
let s;
|
|
28295
28295
|
n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
|
|
@@ -28302,7 +28302,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28302
28302
|
});
|
|
28303
28303
|
CommandList.displayName = _e.List.displayName;
|
|
28304
28304
|
CommandEmpty = import_react.forwardRef((e, t) => {
|
|
28305
|
-
let n = (0, import_compiler_runtime$
|
|
28305
|
+
let n = (0, import_compiler_runtime$33.c)(3), i;
|
|
28306
28306
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
|
|
28307
28307
|
ref: t,
|
|
28308
28308
|
className: "py-6 text-center text-sm",
|
|
@@ -28311,7 +28311,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28311
28311
|
});
|
|
28312
28312
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
28313
28313
|
var CommandGroup = import_react.forwardRef((e, t) => {
|
|
28314
|
-
let n = (0, import_compiler_runtime$
|
|
28314
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, o;
|
|
28315
28315
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
28316
28316
|
let s;
|
|
28317
28317
|
n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -28324,7 +28324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28324
28324
|
});
|
|
28325
28325
|
CommandGroup.displayName = _e.Group.displayName;
|
|
28326
28326
|
CommandSeparator = import_react.forwardRef((e, t) => {
|
|
28327
|
-
let n = (0, import_compiler_runtime$
|
|
28327
|
+
let n = (0, import_compiler_runtime$33.c)(9), i, a;
|
|
28328
28328
|
n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
|
|
28329
28329
|
let o;
|
|
28330
28330
|
n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
|
|
@@ -28339,7 +28339,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28339
28339
|
});
|
|
28340
28340
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
28341
28341
|
CommandItem = import_react.forwardRef((e, t) => {
|
|
28342
|
-
let n = (0, import_compiler_runtime$
|
|
28342
|
+
let n = (0, import_compiler_runtime$33.c)(17), i, o, s, c, d;
|
|
28343
28343
|
if (n[0] !== t || n[1] !== e) {
|
|
28344
28344
|
let { className: f2, variant: h, inset: _, ...v } = e;
|
|
28345
28345
|
i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
|
|
@@ -28356,165 +28356,165 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28356
28356
|
}), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
|
|
28357
28357
|
});
|
|
28358
28358
|
CommandItem.displayName = _e.Item.displayName;
|
|
28359
|
-
var import_compiler_runtime$
|
|
28359
|
+
var import_compiler_runtime$32 = require_compiler_runtime();
|
|
28360
28360
|
let ComboboxContext;
|
|
28361
28361
|
ComboboxContext = (0, import_react.createContext)({
|
|
28362
28362
|
isSelected: () => false,
|
|
28363
28363
|
onSelect: Functions.NOOP
|
|
28364
28364
|
});
|
|
28365
28365
|
Combobox = (e) => {
|
|
28366
|
-
let t = (0, import_compiler_runtime$
|
|
28366
|
+
let t = (0, import_compiler_runtime$32.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28367
28367
|
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]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28368
|
-
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I,
|
|
28369
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28368
|
+
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, GK = z === void 0 ? "Search..." : z, KK = U === void 0 ? "Nothing found." : U, qK = K === void 0 ? false : K, JK = q === void 0 ? false : q, YK = s ?? false, XK;
|
|
28369
|
+
t[24] !== v || t[25] !== w || t[26] !== YK ? (XK = {
|
|
28370
28370
|
prop: w,
|
|
28371
|
-
defaultProp:
|
|
28371
|
+
defaultProp: YK,
|
|
28372
28372
|
onChange: v
|
|
28373
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28374
|
-
let [
|
|
28375
|
-
t[28] === S ?
|
|
28373
|
+
}, t[24] = v, t[25] = w, t[26] = YK, t[27] = XK) : XK = t[27];
|
|
28374
|
+
let [ZK, QK] = useControllableState(XK), $K = ZK === void 0 ? false : ZK, eq;
|
|
28375
|
+
t[28] === S ? eq = t[29] : (eq = (e2) => {
|
|
28376
28376
|
S == null ? void 0 : S(e2);
|
|
28377
|
-
}, t[28] = S, t[29] =
|
|
28378
|
-
let
|
|
28379
|
-
t[30] !== c || t[31] !==
|
|
28377
|
+
}, t[28] = S, t[29] = eq);
|
|
28378
|
+
let tq;
|
|
28379
|
+
t[30] !== c || t[31] !== eq || t[32] !== J ? (tq = {
|
|
28380
28380
|
prop: J,
|
|
28381
28381
|
defaultProp: c,
|
|
28382
|
-
onChange:
|
|
28383
|
-
}, t[30] = c, t[31] =
|
|
28384
|
-
let [
|
|
28385
|
-
t[34] ===
|
|
28386
|
-
let
|
|
28387
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28382
|
+
onChange: eq
|
|
28383
|
+
}, t[30] = c, t[31] = eq, t[32] = J, t[33] = tq) : tq = t[33];
|
|
28384
|
+
let [nq, iq] = useControllableState(tq), aq;
|
|
28385
|
+
t[34] === nq ? aq = t[35] : (aq = (e2) => Array.isArray(nq) ? nq.includes(e2) : nq === e2, t[34] = nq, t[35] = aq);
|
|
28386
|
+
let oq = aq, sq;
|
|
28387
|
+
t[36] !== _ || t[37] !== Q || t[38] !== QK || t[39] !== iq || t[40] !== nq ? (sq = (e2) => {
|
|
28388
28388
|
let t2 = e2;
|
|
28389
|
-
if (Q) if (Array.isArray(
|
|
28390
|
-
let n2 =
|
|
28389
|
+
if (Q) if (Array.isArray(nq)) if (nq.includes(t2)) {
|
|
28390
|
+
let n2 = nq.filter((t3) => t3 !== e2);
|
|
28391
28391
|
t2 = n2.length > 0 ? n2 : [];
|
|
28392
28392
|
} else t2 = [
|
|
28393
|
-
...
|
|
28393
|
+
...nq,
|
|
28394
28394
|
t2
|
|
28395
28395
|
];
|
|
28396
28396
|
else t2 = [
|
|
28397
28397
|
t2
|
|
28398
28398
|
];
|
|
28399
|
-
else
|
|
28400
|
-
|
|
28401
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28402
|
-
let
|
|
28403
|
-
t[42] !==
|
|
28404
|
-
let
|
|
28405
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28406
|
-
let
|
|
28407
|
-
t[49] !==
|
|
28408
|
-
|
|
28409
|
-
}, t[49] =
|
|
28410
|
-
let
|
|
28411
|
-
t[52] !== o || t[53] !==
|
|
28412
|
-
let
|
|
28413
|
-
t[55] ===
|
|
28414
|
-
let
|
|
28415
|
-
t[57] ===
|
|
28399
|
+
else nq === e2 && (t2 = null);
|
|
28400
|
+
iq(t2), (_ ?? Q) || QK(false);
|
|
28401
|
+
}, t[36] = _, t[37] = Q, t[38] = QK, t[39] = iq, t[40] = nq, t[41] = sq) : sq = t[41];
|
|
28402
|
+
let cq = sq, lq;
|
|
28403
|
+
t[42] !== qK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== nq ? (lq = () => Q && qK && E ? E : nq == null ? E ?? "--" : Array.isArray(nq) ? nq.length === 0 ? E ?? "--" : nq.length === 1 && d !== void 0 ? d(nq[0]) : `${nq.length} selected` : d === void 0 ? E ?? "--" : d(nq), t[42] = qK, t[43] = d, t[44] = Q, t[45] = E, t[46] = nq, t[47] = lq) : lq = t[47];
|
|
28404
|
+
let uq = lq, dq;
|
|
28405
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dq = cn("relative"), t[48] = dq) : dq = t[48];
|
|
28406
|
+
let fq;
|
|
28407
|
+
t[49] !== JK || t[50] !== QK ? (fq = (e2) => {
|
|
28408
|
+
JK && e2 || QK(e2);
|
|
28409
|
+
}, t[49] = JK, t[50] = QK, t[51] = fq) : fq = t[51];
|
|
28410
|
+
let pq = JK && "cursor-not-allowed opacity-50", hq;
|
|
28411
|
+
t[52] !== o || t[53] !== pq ? (hq = 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", pq, o), t[52] = o, t[53] = pq, t[54] = hq) : hq = t[54];
|
|
28412
|
+
let gq;
|
|
28413
|
+
t[55] === uq ? gq = t[56] : (gq = uq(), t[55] = uq, t[56] = gq);
|
|
28414
|
+
let vq;
|
|
28415
|
+
t[57] === gq ? vq = t[58] : (vq = (0, import_jsx_runtime.jsx)("span", {
|
|
28416
28416
|
className: "truncate flex-1 min-w-0",
|
|
28417
|
-
children:
|
|
28418
|
-
}), t[57] =
|
|
28419
|
-
let
|
|
28420
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28417
|
+
children: gq
|
|
28418
|
+
}), t[57] = gq, t[58] = vq);
|
|
28419
|
+
let yq;
|
|
28420
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28421
28421
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28422
|
-
}), t[59] =
|
|
28423
|
-
let
|
|
28424
|
-
t[60] !==
|
|
28422
|
+
}), t[59] = yq) : yq = t[59];
|
|
28423
|
+
let bq;
|
|
28424
|
+
t[60] !== JK || t[61] !== h || t[62] !== $K || t[63] !== hq || t[64] !== vq ? (bq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28425
28425
|
asChild: true,
|
|
28426
28426
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28427
28427
|
id: h,
|
|
28428
28428
|
type: "button",
|
|
28429
|
-
className:
|
|
28430
|
-
"aria-expanded":
|
|
28431
|
-
"aria-disabled":
|
|
28429
|
+
className: hq,
|
|
28430
|
+
"aria-expanded": $K,
|
|
28431
|
+
"aria-disabled": JK,
|
|
28432
28432
|
children: [
|
|
28433
|
-
|
|
28434
|
-
|
|
28433
|
+
vq,
|
|
28434
|
+
yq
|
|
28435
28435
|
]
|
|
28436
28436
|
})
|
|
28437
|
-
}), t[60] =
|
|
28438
|
-
let
|
|
28439
|
-
t[66] !==
|
|
28440
|
-
placeholder:
|
|
28437
|
+
}), t[60] = JK, t[61] = h, t[62] = $K, t[63] = hq, t[64] = vq, t[65] = bq) : bq = t[65];
|
|
28438
|
+
let xq;
|
|
28439
|
+
t[66] !== GK || t[67] !== y || t[68] !== A ? (xq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28440
|
+
placeholder: GK,
|
|
28441
28441
|
rootClassName: "px-1 h-8",
|
|
28442
28442
|
autoFocus: true,
|
|
28443
28443
|
value: A,
|
|
28444
28444
|
onValueChange: y
|
|
28445
|
-
}), t[66] =
|
|
28446
|
-
let
|
|
28447
|
-
t[70] ===
|
|
28448
|
-
children:
|
|
28449
|
-
}), t[70] =
|
|
28450
|
-
let
|
|
28451
|
-
t[72] !==
|
|
28452
|
-
isSelected:
|
|
28453
|
-
onSelect:
|
|
28454
|
-
}, t[72] =
|
|
28455
|
-
let
|
|
28456
|
-
t[75] !== n || t[76] !==
|
|
28457
|
-
value:
|
|
28445
|
+
}), t[66] = GK, t[67] = y, t[68] = A, t[69] = xq) : xq = t[69];
|
|
28446
|
+
let Sq;
|
|
28447
|
+
t[70] === KK ? Sq = t[71] : (Sq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28448
|
+
children: KK
|
|
28449
|
+
}), t[70] = KK, t[71] = Sq);
|
|
28450
|
+
let Cq;
|
|
28451
|
+
t[72] !== cq || t[73] !== oq ? (Cq = {
|
|
28452
|
+
isSelected: oq,
|
|
28453
|
+
onSelect: cq
|
|
28454
|
+
}, t[72] = cq, t[73] = oq, t[74] = Cq) : Cq = t[74];
|
|
28455
|
+
let wq;
|
|
28456
|
+
t[75] !== n || t[76] !== Cq ? (wq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28457
|
+
value: Cq,
|
|
28458
28458
|
children: n
|
|
28459
|
-
}), t[75] = n, t[76] =
|
|
28460
|
-
let
|
|
28461
|
-
t[78] !==
|
|
28459
|
+
}), t[75] = n, t[76] = Cq, t[77] = wq) : wq = t[77];
|
|
28460
|
+
let Tq;
|
|
28461
|
+
t[78] !== Sq || t[79] !== wq ? (Tq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28462
28462
|
className: "max-h-60 py-.5",
|
|
28463
28463
|
children: [
|
|
28464
|
-
|
|
28465
|
-
|
|
28464
|
+
Sq,
|
|
28465
|
+
wq
|
|
28466
28466
|
]
|
|
28467
|
-
}), t[78] =
|
|
28468
|
-
let
|
|
28469
|
-
t[81] !== f || t[82] !== $ || t[83] !==
|
|
28467
|
+
}), t[78] = Sq, t[79] = wq, t[80] = Tq) : Tq = t[80];
|
|
28468
|
+
let Eq;
|
|
28469
|
+
t[81] !== f || t[82] !== $ || t[83] !== xq || t[84] !== Tq ? (Eq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28470
28470
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28471
28471
|
align: "start",
|
|
28472
28472
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28473
28473
|
filter: f,
|
|
28474
28474
|
shouldFilter: $,
|
|
28475
28475
|
children: [
|
|
28476
|
-
|
|
28477
|
-
|
|
28476
|
+
xq,
|
|
28477
|
+
Tq
|
|
28478
28478
|
]
|
|
28479
28479
|
})
|
|
28480
|
-
}), t[81] = f, t[82] = $, t[83] =
|
|
28481
|
-
let
|
|
28482
|
-
t[86] !==
|
|
28483
|
-
open:
|
|
28484
|
-
onOpenChange:
|
|
28480
|
+
}), t[81] = f, t[82] = $, t[83] = xq, t[84] = Tq, t[85] = Eq) : Eq = t[85];
|
|
28481
|
+
let Dq;
|
|
28482
|
+
t[86] !== $K || t[87] !== fq || t[88] !== bq || t[89] !== Eq ? (Dq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28483
|
+
open: $K,
|
|
28484
|
+
onOpenChange: fq,
|
|
28485
28485
|
children: [
|
|
28486
|
-
|
|
28487
|
-
|
|
28486
|
+
bq,
|
|
28487
|
+
Eq
|
|
28488
28488
|
]
|
|
28489
|
-
}), t[86] =
|
|
28490
|
-
let
|
|
28491
|
-
t[91] !==
|
|
28489
|
+
}), t[86] = $K, t[87] = fq, t[88] = bq, t[89] = Eq, t[90] = Dq) : Dq = t[90];
|
|
28490
|
+
let Oq;
|
|
28491
|
+
t[91] !== qK || t[92] !== i || t[93] !== JK || t[94] !== d || t[95] !== cq || t[96] !== Q || t[97] !== nq ? (Oq = Q && qK && (0, import_jsx_runtime.jsx)("div", {
|
|
28492
28492
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28493
|
-
children: Array.isArray(
|
|
28493
|
+
children: Array.isArray(nq) && nq.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28494
28494
|
variant: "secondary",
|
|
28495
28495
|
children: [
|
|
28496
28496
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28497
28497
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28498
28498
|
onClick: () => {
|
|
28499
|
-
|
|
28499
|
+
JK || cq(e2);
|
|
28500
28500
|
},
|
|
28501
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28501
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", JK && "pointer-events-none")
|
|
28502
28502
|
})
|
|
28503
28503
|
]
|
|
28504
28504
|
}, String(e2)))
|
|
28505
|
-
}), t[91] =
|
|
28506
|
-
let
|
|
28507
|
-
return t[99] !== O || t[100] !==
|
|
28508
|
-
className:
|
|
28505
|
+
}), t[91] = qK, t[92] = i, t[93] = JK, t[94] = d, t[95] = cq, t[96] = Q, t[97] = nq, t[98] = Oq) : Oq = t[98];
|
|
28506
|
+
let kq;
|
|
28507
|
+
return t[99] !== O || t[100] !== Dq || t[101] !== Oq ? (kq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28508
|
+
className: dq,
|
|
28509
28509
|
...O,
|
|
28510
28510
|
children: [
|
|
28511
|
-
|
|
28512
|
-
|
|
28511
|
+
Dq,
|
|
28512
|
+
Oq
|
|
28513
28513
|
]
|
|
28514
|
-
}), t[99] = O, t[100] =
|
|
28514
|
+
}), t[99] = O, t[100] = Dq, t[101] = Oq, t[102] = kq) : kq = t[102], kq;
|
|
28515
28515
|
};
|
|
28516
28516
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28517
|
-
let n = (0, import_compiler_runtime$
|
|
28517
|
+
let n = (0, import_compiler_runtime$32.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
28518
28518
|
n[0] === o ? _ = n[1] : (_ = cn("pl-6 m-1 py-1", o), n[0] = o, n[1] = _);
|
|
28519
28519
|
let v;
|
|
28520
28520
|
n[2] !== h || n[3] !== c || n[4] !== s ? (v = () => {
|
|
@@ -28539,12 +28539,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28539
28539
|
}), n[9] = i, n[10] = d, n[11] = t, n[12] = _, n[13] = v, n[14] = y, n[15] = f, n[16] = S) : S = n[16], S;
|
|
28540
28540
|
});
|
|
28541
28541
|
ComboboxItem.displayName = "ComboboxItem";
|
|
28542
|
-
var import_compiler_runtime$
|
|
28542
|
+
var import_compiler_runtime$31 = require_compiler_runtime(), labelVariants = cva([
|
|
28543
28543
|
"text-sm font-medium leading-none",
|
|
28544
28544
|
"data-disabled:cursor-not-allowed data-disabled:opacity-70",
|
|
28545
28545
|
"group-data-invalid:text-destructive"
|
|
28546
28546
|
]), Label = (e) => {
|
|
28547
|
-
let t = (0, import_compiler_runtime$
|
|
28547
|
+
let t = (0, import_compiler_runtime$31.c)(8), n, i;
|
|
28548
28548
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28549
28549
|
let o;
|
|
28550
28550
|
t[3] === n ? o = t[4] : (o = cn(labelVariants(), n), t[3] = n, t[4] = o);
|
|
@@ -28554,7 +28554,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28554
28554
|
...i
|
|
28555
28555
|
}), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
|
|
28556
28556
|
}, FieldError = (e) => {
|
|
28557
|
-
let t = (0, import_compiler_runtime$
|
|
28557
|
+
let t = (0, import_compiler_runtime$31.c)(8), n, i;
|
|
28558
28558
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28559
28559
|
let o;
|
|
28560
28560
|
t[3] === n ? o = t[4] : (o = cn("text-sm font-medium text-destructive", n), t[3] = n, t[4] = o);
|
|
@@ -28579,7 +28579,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28579
28579
|
variant: "default"
|
|
28580
28580
|
}
|
|
28581
28581
|
}), FieldGroup = (e) => {
|
|
28582
|
-
let t = (0, import_compiler_runtime$
|
|
28582
|
+
let t = (0, import_compiler_runtime$31.c)(12), n, i, o;
|
|
28583
28583
|
t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, variant: o, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
|
|
28584
28584
|
let s;
|
|
28585
28585
|
t[4] === o ? s = t[5] : (s = (e2) => cn(fieldGroupVariants({
|
|
@@ -28592,8 +28592,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28592
28592
|
className: c,
|
|
28593
28593
|
...i
|
|
28594
28594
|
}), t[9] = i, t[10] = c, t[11] = d) : d = t[11], d;
|
|
28595
|
-
}, import_compiler_runtime$
|
|
28596
|
-
let t = (0, import_compiler_runtime$
|
|
28595
|
+
}, import_compiler_runtime$30 = require_compiler_runtime(), DateSegment = (e) => {
|
|
28596
|
+
let t = (0, import_compiler_runtime$30.c)(8), n, i;
|
|
28597
28597
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28598
28598
|
let a;
|
|
28599
28599
|
t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$8), t[3] = n, t[4] = a);
|
|
@@ -28603,7 +28603,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28603
28603
|
...i
|
|
28604
28604
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
28605
28605
|
}, DateInput = (e) => {
|
|
28606
|
-
let t = (0, import_compiler_runtime$
|
|
28606
|
+
let t = (0, import_compiler_runtime$30.c)(12), n, i, o;
|
|
28607
28607
|
t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, variant: o, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
|
|
28608
28608
|
let s;
|
|
28609
28609
|
t[4] === o ? s = t[5] : (s = (e2) => cn(fieldGroupVariants({
|
|
@@ -28618,7 +28618,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28618
28618
|
children: _temp2$6
|
|
28619
28619
|
}), t[9] = i, t[10] = c, t[11] = d) : d = t[11], d;
|
|
28620
28620
|
}, TimeField = (e) => {
|
|
28621
|
-
let t = (0, import_compiler_runtime$
|
|
28621
|
+
let t = (0, import_compiler_runtime$30.c)(21), n, i, a, o, s;
|
|
28622
28622
|
t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5]) : ({ label: o, description: i, errorMessage: a, className: n, ...s } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s);
|
|
28623
28623
|
let c;
|
|
28624
28624
|
t[6] === n ? c = t[7] : (c = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp4$3), t[6] = n, t[7] = c);
|
|
@@ -28660,8 +28660,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28660
28660
|
function _temp4$3(e) {
|
|
28661
28661
|
return cn("group flex flex-col gap-2", e);
|
|
28662
28662
|
}
|
|
28663
|
-
var import_compiler_runtime$
|
|
28664
|
-
let t = (0, import_compiler_runtime$
|
|
28663
|
+
var import_compiler_runtime$29 = require_compiler_runtime(), Popover$1 = (e) => {
|
|
28664
|
+
let t = (0, import_compiler_runtime$29.c)(10), n, i, a;
|
|
28665
28665
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ className: n, offset: a, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
28666
28666
|
let o = a === void 0 ? 4 : a, s;
|
|
28667
28667
|
t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$7), t[4] = n, t[5] = s);
|
|
@@ -28675,8 +28675,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28675
28675
|
function _temp$7(e) {
|
|
28676
28676
|
return cn("z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden", "data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95", "data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95", "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2", e);
|
|
28677
28677
|
}
|
|
28678
|
-
var import_compiler_runtime$
|
|
28679
|
-
let t = (0, import_compiler_runtime$
|
|
28678
|
+
var import_compiler_runtime$28 = require_compiler_runtime(), CalendarHeading = (e) => {
|
|
28679
|
+
let t = (0, import_compiler_runtime$28.c)(11), { direction: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), i;
|
|
28680
28680
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = cn(buttonVariants({
|
|
28681
28681
|
variant: "outline"
|
|
28682
28682
|
}), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), t[0] = i) : i = t[0];
|
|
@@ -28723,7 +28723,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28723
28723
|
]
|
|
28724
28724
|
}), t[7] = e, t[8] = o, t[9] = f, t[10] = h) : h = t[10], h;
|
|
28725
28725
|
}, CalendarGrid = (e) => {
|
|
28726
|
-
let t = (0, import_compiler_runtime$
|
|
28726
|
+
let t = (0, import_compiler_runtime$28.c)(8), n, i;
|
|
28727
28727
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28728
28728
|
let o;
|
|
28729
28729
|
t[3] === n ? o = t[4] : (o = cn(" border-separate border-spacing-x-0 border-spacing-y-1 ", n), t[3] = n, t[4] = o);
|
|
@@ -28733,14 +28733,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28733
28733
|
...i
|
|
28734
28734
|
}), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
|
|
28735
28735
|
}, CalendarGridHeader = (e) => {
|
|
28736
|
-
let t = (0, import_compiler_runtime$
|
|
28736
|
+
let t = (0, import_compiler_runtime$28.c)(4), n;
|
|
28737
28737
|
t[0] === e ? n = t[1] : ({ ...n } = e, t[0] = e, t[1] = n);
|
|
28738
28738
|
let i;
|
|
28739
28739
|
return t[2] === n ? i = t[3] : (i = (0, import_jsx_runtime.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, {
|
|
28740
28740
|
...n
|
|
28741
28741
|
}), t[2] = n, t[3] = i), i;
|
|
28742
28742
|
}, CalendarHeaderCell = (e) => {
|
|
28743
|
-
let t = (0, import_compiler_runtime$
|
|
28743
|
+
let t = (0, import_compiler_runtime$28.c)(8), n, i;
|
|
28744
28744
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28745
28745
|
let o;
|
|
28746
28746
|
t[3] === n ? o = t[4] : (o = cn("w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground", n), t[3] = n, t[4] = o);
|
|
@@ -28750,7 +28750,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28750
28750
|
...i
|
|
28751
28751
|
}), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
|
|
28752
28752
|
}, CalendarGridBody = (e) => {
|
|
28753
|
-
let t = (0, import_compiler_runtime$
|
|
28753
|
+
let t = (0, import_compiler_runtime$28.c)(8), n, i;
|
|
28754
28754
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28755
28755
|
let o;
|
|
28756
28756
|
t[3] === n ? o = t[4] : (o = cn("[&>tr>td]:p-0", n), t[3] = n, t[4] = o);
|
|
@@ -28760,7 +28760,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28760
28760
|
...i
|
|
28761
28761
|
}), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
|
|
28762
28762
|
}, CalendarCell = (e) => {
|
|
28763
|
-
let t = (0, import_compiler_runtime$
|
|
28763
|
+
let t = (0, import_compiler_runtime$28.c)(11), n, i;
|
|
28764
28764
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28765
28765
|
let o = !!import_react.use($dfd62f934fc76fed$export$5e0fc348c00f87a0), s;
|
|
28766
28766
|
t[3] === o ? s = t[4] : (s = (e2, t2) => cn(buttonVariants({
|
|
@@ -28774,7 +28774,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28774
28774
|
...i
|
|
28775
28775
|
}), t[8] = i, t[9] = d, t[10] = f) : f = t[10], f;
|
|
28776
28776
|
}, Calendar$1 = (e) => {
|
|
28777
|
-
let t = (0, import_compiler_runtime$
|
|
28777
|
+
let t = (0, import_compiler_runtime$28.c)(14), n, i, a;
|
|
28778
28778
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
28779
28779
|
let o;
|
|
28780
28780
|
t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$6), t[4] = n, t[5] = o);
|
|
@@ -28808,7 +28808,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28808
28808
|
]
|
|
28809
28809
|
}), t[10] = a, t[11] = o, t[12] = d, t[13] = f) : f = t[13], f;
|
|
28810
28810
|
}, RangeCalendar = (e) => {
|
|
28811
|
-
let t = (0, import_compiler_runtime$
|
|
28811
|
+
let t = (0, import_compiler_runtime$28.c)(14), n, i, a;
|
|
28812
28812
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
28813
28813
|
let o;
|
|
28814
28814
|
t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp4$2), t[4] = n, t[5] = o);
|
|
@@ -28868,10 +28868,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28868
28868
|
date: e
|
|
28869
28869
|
});
|
|
28870
28870
|
}
|
|
28871
|
-
let import_compiler_runtime$
|
|
28872
|
-
import_compiler_runtime$
|
|
28871
|
+
let import_compiler_runtime$27, DatePickerContent;
|
|
28872
|
+
import_compiler_runtime$27 = require_compiler_runtime();
|
|
28873
28873
|
DatePickerContent = (e) => {
|
|
28874
|
-
let t = (0, import_compiler_runtime$
|
|
28874
|
+
let t = (0, import_compiler_runtime$27.c)(14), n, i, o;
|
|
28875
28875
|
t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, popoverClassName: i, ...o } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
|
|
28876
28876
|
let s;
|
|
28877
28877
|
t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$5), t[4] = i, t[5] = s);
|
|
@@ -28889,7 +28889,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28889
28889
|
}), t[11] = s, t[12] = d, t[13] = f) : f = t[13], f;
|
|
28890
28890
|
};
|
|
28891
28891
|
DatePicker = (e) => {
|
|
28892
|
-
let t = (0, import_compiler_runtime$
|
|
28892
|
+
let t = (0, import_compiler_runtime$27.c)(26), n, i, o, s, d;
|
|
28893
28893
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
|
|
28894
28894
|
let [f, h] = (0, import_react.useState)(false), _;
|
|
28895
28895
|
t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp2$4), t[6] = n, t[7] = _);
|
|
@@ -28972,7 +28972,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28972
28972
|
}), t[19] = f, t[20] = d, t[21] = _, t[22] = y, t[23] = E, t[24] = O, t[25] = I) : I = t[25], I;
|
|
28973
28973
|
};
|
|
28974
28974
|
DateRangePicker = (e) => {
|
|
28975
|
-
let t = (0, import_compiler_runtime$
|
|
28975
|
+
let t = (0, import_compiler_runtime$27.c)(28), n, i, o, s, d;
|
|
28976
28976
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
|
|
28977
28977
|
let [f, h] = (0, import_react.useState)(false), _;
|
|
28978
28978
|
t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5$1), t[6] = n, t[7] = _);
|
|
@@ -29092,7 +29092,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29092
29092
|
date: e
|
|
29093
29093
|
});
|
|
29094
29094
|
}
|
|
29095
|
-
var import_compiler_runtime$
|
|
29095
|
+
var import_compiler_runtime$26 = require_compiler_runtime();
|
|
29096
29096
|
function dateToAria(e, t) {
|
|
29097
29097
|
switch (e) {
|
|
29098
29098
|
case "date":
|
|
@@ -29156,7 +29156,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29156
29156
|
};
|
|
29157
29157
|
}
|
|
29158
29158
|
const DateLikeInput = (e) => {
|
|
29159
|
-
let t = (0, import_compiler_runtime$
|
|
29159
|
+
let t = (0, import_compiler_runtime$26.c)(19), { filterType: n, value: i, onChange: a, "aria-label": o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), _;
|
|
29160
29160
|
t[0] !== n || t[1] !== a ? (_ = (e2) => {
|
|
29161
29161
|
e2 !== null && a(ariaToDate(n, e2));
|
|
29162
29162
|
}, t[0] = n, t[1] = a, t[2] = _) : _ = t[2];
|
|
@@ -29194,7 +29194,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29194
29194
|
children: O
|
|
29195
29195
|
}), t[16] = S, t[17] = O, t[18] = A) : A = t[18], A;
|
|
29196
29196
|
}, DateLikeRangeInput = (e) => {
|
|
29197
|
-
let t = (0, import_compiler_runtime$
|
|
29197
|
+
let t = (0, import_compiler_runtime$26.c)(40), { filterType: n, min: i, max: a, onRangeChange: o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), [_, v] = (0, import_react.useState)(a), y;
|
|
29198
29198
|
t[0] !== n || t[1] !== o ? (y = (e2) => {
|
|
29199
29199
|
let t2 = parsePastedRange(n, e2.clipboardData.getData("text"));
|
|
29200
29200
|
t2 && (e2.preventDefault(), e2.stopPropagation(), o(t2.min, t2.max), h(t2.min), v(t2.max), d(_temp2$3));
|
|
@@ -29288,15 +29288,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29288
29288
|
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
29289
29289
|
}
|
|
29290
29290
|
};
|
|
29291
|
-
var import_compiler_runtime$
|
|
29291
|
+
var import_compiler_runtime$25 = require_compiler_runtime();
|
|
29292
29292
|
const Chip = (e) => {
|
|
29293
|
-
let t = (0, import_compiler_runtime$
|
|
29293
|
+
let t = (0, import_compiler_runtime$25.c)(2), { children: n } = e, i;
|
|
29294
29294
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
|
|
29295
29295
|
className: "inline-flex items-center rounded-sm bg-muted/50 px-1 font-mono text-xs font-normal leading-tight text-foreground",
|
|
29296
29296
|
children: n
|
|
29297
29297
|
}), t[0] = n, t[1] = i), i;
|
|
29298
29298
|
}, MoreChip = (e) => {
|
|
29299
|
-
let t = (0, import_compiler_runtime$
|
|
29299
|
+
let t = (0, import_compiler_runtime$25.c)(2), { count: n } = e, i;
|
|
29300
29300
|
return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsxs)("span", {
|
|
29301
29301
|
className: "inline-flex items-center px-1 text-xs italic text-muted-foreground",
|
|
29302
29302
|
children: [
|
|
@@ -29305,7 +29305,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29305
29305
|
]
|
|
29306
29306
|
}), t[0] = n, t[1] = i), i;
|
|
29307
29307
|
}, ChipWithComma = (e) => {
|
|
29308
|
-
let t = (0, import_compiler_runtime$
|
|
29308
|
+
let t = (0, import_compiler_runtime$25.c)(7), { value: n, showComma: i } = e, a;
|
|
29309
29309
|
t[0] === n ? a = t[1] : (a = (0, import_jsx_runtime.jsx)(Chip, {
|
|
29310
29310
|
children: n
|
|
29311
29311
|
}), t[0] = n, t[1] = a);
|
|
@@ -29323,7 +29323,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29323
29323
|
]
|
|
29324
29324
|
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
29325
29325
|
}, CompactChipRow = (e) => {
|
|
29326
|
-
let t = (0, import_compiler_runtime$
|
|
29326
|
+
let t = (0, import_compiler_runtime$25.c)(11), { items: n, max: i } = e, a = i === void 0 ? 3 : i;
|
|
29327
29327
|
if (n.length === 0) return null;
|
|
29328
29328
|
let o, s, c;
|
|
29329
29329
|
if (t[0] !== n || t[1] !== a) {
|
|
@@ -29549,9 +29549,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29549
29549
|
children: "No values available"
|
|
29550
29550
|
});
|
|
29551
29551
|
};
|
|
29552
|
-
var import_compiler_runtime$
|
|
29552
|
+
var import_compiler_runtime$24 = require_compiler_runtime();
|
|
29553
29553
|
const RegexInput = import_react.forwardRef((e, t) => {
|
|
29554
|
-
let n = (0, import_compiler_runtime$
|
|
29554
|
+
let n = (0, import_compiler_runtime$24.c)(18), { id: i, value: o, onChange: s, onKeyDown: c, placeholder: d, className: f, autoFocus: h, "aria-label": _ } = e, v = d === void 0 ? "pattern" : d, y;
|
|
29555
29555
|
n[0] === f ? y = n[1] : (y = cn("flex items-stretch h-6 mb-1 rounded-sm border border-input bg-background shadow-xs-solid focus-within:shadow-md-solid focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", f), n[0] = f, n[1] = y);
|
|
29556
29556
|
let S;
|
|
29557
29557
|
n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)(Slash, {}), n[2] = S) : S = n[2];
|
|
@@ -29585,7 +29585,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29585
29585
|
});
|
|
29586
29586
|
RegexInput.displayName = "RegexInput";
|
|
29587
29587
|
var Slash = () => {
|
|
29588
|
-
let e = (0, import_compiler_runtime$
|
|
29588
|
+
let e = (0, import_compiler_runtime$24.c)(1), t;
|
|
29589
29589
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)("span", {
|
|
29590
29590
|
className: "px-1.5 flex items-center text-muted-foreground font-code text-sm select-none",
|
|
29591
29591
|
children: "/"
|
|
@@ -29643,7 +29643,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29643
29643
|
type: S,
|
|
29644
29644
|
operator: E,
|
|
29645
29645
|
draft: mergeNumberTextDraft(A, I)
|
|
29646
|
-
}), $ = Q === void 0,
|
|
29646
|
+
}), $ = Q === void 0, GK = $ ? getMissingValueMessage(S, E) : "Apply filter", KK = () => {
|
|
29647
29647
|
if (!Q) return;
|
|
29648
29648
|
let e2 = Q;
|
|
29649
29649
|
t.setColumnFilters((t2) => {
|
|
@@ -29662,20 +29662,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29662
29662
|
value: e2
|
|
29663
29663
|
}, n2;
|
|
29664
29664
|
}), i();
|
|
29665
|
-
},
|
|
29665
|
+
}, qK = () => {
|
|
29666
29666
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29667
|
-
},
|
|
29667
|
+
}, JK = !OPERATORS_WITHOUT_VALUE.has(E), YK = OPERATORS_BY_TYPE[S], XK = (0, import_react.useRef)(null), ZK = (0, import_react.useRef)(null);
|
|
29668
29668
|
return (0, import_react.useEffect)(() => {
|
|
29669
29669
|
var _a2, _b;
|
|
29670
|
-
let e2 = (_a2 =
|
|
29671
|
-
e2 ? e2.focus() : (_b =
|
|
29670
|
+
let e2 = (_a2 = XK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29671
|
+
e2 ? e2.focus() : (_b = ZK.current) == null ? void 0 : _b.focus();
|
|
29672
29672
|
}, [
|
|
29673
29673
|
S,
|
|
29674
29674
|
E
|
|
29675
29675
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29676
29676
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29677
29677
|
onSubmit: (e2) => {
|
|
29678
|
-
e2.preventDefault(),
|
|
29678
|
+
e2.preventDefault(), KK();
|
|
29679
29679
|
},
|
|
29680
29680
|
onKeyDownCapture: (e2) => {
|
|
29681
29681
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29716,13 +29716,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29716
29716
|
onValueChange: (e2) => J(e2),
|
|
29717
29717
|
children: [
|
|
29718
29718
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29719
|
-
ref:
|
|
29719
|
+
ref: ZK,
|
|
29720
29720
|
id: s,
|
|
29721
29721
|
className: "h-6 mb-1 bg-transparent",
|
|
29722
29722
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29723
29723
|
}),
|
|
29724
29724
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29725
|
-
children:
|
|
29725
|
+
children: YK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29726
29726
|
value: e2,
|
|
29727
29727
|
children: OPERATOR_LABELS[e2]
|
|
29728
29728
|
}, e2))
|
|
@@ -29731,8 +29731,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29731
29731
|
}, S)
|
|
29732
29732
|
]
|
|
29733
29733
|
}),
|
|
29734
|
-
|
|
29735
|
-
ref:
|
|
29734
|
+
JK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29735
|
+
ref: XK,
|
|
29736
29736
|
className: "flex flex-col gap-1",
|
|
29737
29737
|
children: [
|
|
29738
29738
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29759,7 +29759,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29759
29759
|
className: "flex gap-1 mb-1",
|
|
29760
29760
|
children: [
|
|
29761
29761
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29762
|
-
content:
|
|
29762
|
+
content: GK,
|
|
29763
29763
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29764
29764
|
className: "inline-flex",
|
|
29765
29765
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -29798,7 +29798,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29798
29798
|
size: "icon",
|
|
29799
29799
|
variant: "ghost",
|
|
29800
29800
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29801
|
-
onClick:
|
|
29801
|
+
onClick: qK,
|
|
29802
29802
|
"aria-label": "Remove filter",
|
|
29803
29803
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29804
29804
|
className: "h-3.5 w-3.5",
|
|
@@ -30065,9 +30065,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
30065
30065
|
});
|
|
30066
30066
|
}
|
|
30067
30067
|
}
|
|
30068
|
-
var import_compiler_runtime$
|
|
30068
|
+
var import_compiler_runtime$23 = require_compiler_runtime();
|
|
30069
30069
|
const DraggablePopover = (e) => {
|
|
30070
|
-
let t = (0, import_compiler_runtime$
|
|
30070
|
+
let t = (0, import_compiler_runtime$23.c)(25), n, i, a;
|
|
30071
30071
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
30072
30072
|
let o;
|
|
30073
30073
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
@@ -30430,9 +30430,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
30430
30430
|
...e
|
|
30431
30431
|
];
|
|
30432
30432
|
}
|
|
30433
|
-
var import_compiler_runtime$
|
|
30433
|
+
var import_compiler_runtime$22 = require_compiler_runtime();
|
|
30434
30434
|
function useScrollContainerHeight(e) {
|
|
30435
|
-
let t = (0, import_compiler_runtime$
|
|
30435
|
+
let t = (0, import_compiler_runtime$22.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
|
|
30436
30436
|
t[0] !== n || t[1] !== i ? (o = () => {
|
|
30437
30437
|
if (!a.current) return;
|
|
30438
30438
|
let e2 = a.current.parentElement;
|
|
@@ -31029,9 +31029,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31029
31029
|
var _a2;
|
|
31030
31030
|
window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
|
|
31031
31031
|
};
|
|
31032
|
-
var import_compiler_runtime$
|
|
31032
|
+
var import_compiler_runtime$21 = require_compiler_runtime();
|
|
31033
31033
|
const CellSelectionProvider = (e) => {
|
|
31034
|
-
let t = (0, import_compiler_runtime$
|
|
31034
|
+
let t = (0, import_compiler_runtime$21.c)(3), { children: n } = e, i;
|
|
31035
31035
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
|
|
31036
31036
|
cellSelectionStateAtom
|
|
31037
31037
|
], t[0] = i) : i = t[0];
|
|
@@ -31586,8 +31586,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31586
31586
|
...e
|
|
31587
31587
|
});
|
|
31588
31588
|
}
|
|
31589
|
-
var import_compiler_runtime$
|
|
31590
|
-
let n = (0, import_compiler_runtime$
|
|
31589
|
+
var import_compiler_runtime$20 = require_compiler_runtime(), ContextMenu = Root2$2, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
|
|
31590
|
+
let n = (0, import_compiler_runtime$20.c)(14), i, a, o, s;
|
|
31591
31591
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: a, inset: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
31592
31592
|
let c;
|
|
31593
31593
|
n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
|
|
@@ -31611,7 +31611,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31611
31611
|
});
|
|
31612
31612
|
ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
|
|
31613
31613
|
var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, t) => {
|
|
31614
|
-
let n = (0, import_compiler_runtime$
|
|
31614
|
+
let n = (0, import_compiler_runtime$20.c)(9), i, o;
|
|
31615
31615
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
31616
31616
|
let s;
|
|
31617
31617
|
n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
|
|
@@ -31626,7 +31626,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31626
31626
|
});
|
|
31627
31627
|
ContextMenuSubContent.displayName = SubContent2.displayName;
|
|
31628
31628
|
var ContextMenuContent = import_react.forwardRef((e, t) => {
|
|
31629
|
-
let n = (0, import_compiler_runtime$
|
|
31629
|
+
let n = (0, import_compiler_runtime$20.c)(15), i, o, s;
|
|
31630
31630
|
n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: i, scrollable: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
|
|
31631
31631
|
let c = s === void 0 ? true : s, d;
|
|
31632
31632
|
n[4] !== i || n[5] !== c ? (d = cn(menuContentCommon(), contentCommon, c && "overflow-auto", i), n[4] = i, n[5] = c, n[6] = d) : d = n[6];
|
|
@@ -31649,7 +31649,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31649
31649
|
});
|
|
31650
31650
|
ContextMenuContent.displayName = Content2.displayName;
|
|
31651
31651
|
var ContextMenuItem = import_react.forwardRef((e, t) => {
|
|
31652
|
-
let n = (0, import_compiler_runtime$
|
|
31652
|
+
let n = (0, import_compiler_runtime$20.c)(13), i, a, o, s;
|
|
31653
31653
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, inset: a, variant: s, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
31654
31654
|
let c;
|
|
31655
31655
|
n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
|
|
@@ -31666,7 +31666,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31666
31666
|
});
|
|
31667
31667
|
ContextMenuItem.displayName = Item2$1.displayName;
|
|
31668
31668
|
var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
|
|
31669
|
-
let n = (0, import_compiler_runtime$
|
|
31669
|
+
let n = (0, import_compiler_runtime$20.c)(15), i, a, o, s;
|
|
31670
31670
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: o, children: a, checked: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
31671
31671
|
let c;
|
|
31672
31672
|
n[5] === o ? c = n[6] : (c = menuControlVariants({
|
|
@@ -31697,7 +31697,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31697
31697
|
});
|
|
31698
31698
|
ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
|
|
31699
31699
|
var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
|
|
31700
|
-
let n = (0, import_compiler_runtime$
|
|
31700
|
+
let n = (0, import_compiler_runtime$20.c)(13), i, a, o;
|
|
31701
31701
|
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: a, children: i, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
31702
31702
|
let s;
|
|
31703
31703
|
n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
|
|
@@ -31727,7 +31727,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31727
31727
|
});
|
|
31728
31728
|
ContextMenuRadioItem.displayName = RadioItem2.displayName;
|
|
31729
31729
|
var ContextMenuLabel = import_react.forwardRef((e, t) => {
|
|
31730
|
-
let n = (0, import_compiler_runtime$
|
|
31730
|
+
let n = (0, import_compiler_runtime$20.c)(11), i, a, o;
|
|
31731
31731
|
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: i, inset: a, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
31732
31732
|
let s;
|
|
31733
31733
|
n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
|
|
@@ -31743,7 +31743,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31743
31743
|
});
|
|
31744
31744
|
ContextMenuLabel.displayName = Label2.displayName;
|
|
31745
31745
|
var ContextMenuSeparator = import_react.forwardRef((e, t) => {
|
|
31746
|
-
let n = (0, import_compiler_runtime$
|
|
31746
|
+
let n = (0, import_compiler_runtime$20.c)(9), i, o;
|
|
31747
31747
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
31748
31748
|
let s;
|
|
31749
31749
|
n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
|
|
@@ -31757,9 +31757,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31757
31757
|
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
31758
31758
|
});
|
|
31759
31759
|
ContextMenuSeparator.displayName = Separator2.displayName;
|
|
31760
|
-
var import_compiler_runtime$
|
|
31760
|
+
var import_compiler_runtime$19 = require_compiler_runtime();
|
|
31761
31761
|
const DataTableContextMenu = (e) => {
|
|
31762
|
-
let t = (0, import_compiler_runtime$
|
|
31762
|
+
let t = (0, import_compiler_runtime$19.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
|
|
31763
31763
|
t[0] !== i || t[1] !== o ? (c = (e2) => {
|
|
31764
31764
|
var _a2;
|
|
31765
31765
|
let t2 = i.current;
|
|
@@ -31865,6 +31865,164 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31865
31865
|
]
|
|
31866
31866
|
});
|
|
31867
31867
|
};
|
|
31868
|
+
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
31869
|
+
const HoverTooltip = (e) => {
|
|
31870
|
+
let t = (0, import_compiler_runtime$18.c)(15), { state: n, contentId: i, onClose: a } = e, o = n != null, s;
|
|
31871
|
+
t[0] === a ? s = t[1] : (s = (e2) => {
|
|
31872
|
+
e2 || a();
|
|
31873
|
+
}, t[0] = a, t[1] = s);
|
|
31874
|
+
let c = (n == null ? void 0 : n.rect.top) ?? 0, d = (n == null ? void 0 : n.rect.left) ?? 0, f = (n == null ? void 0 : n.rect.width) ?? 0, h = (n == null ? void 0 : n.rect.height) ?? 0, _;
|
|
31875
|
+
t[2] !== c || t[3] !== d || t[4] !== f || t[5] !== h ? (_ = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
31876
|
+
asChild: true,
|
|
31877
|
+
children: (0, import_jsx_runtime.jsx)("div", {
|
|
31878
|
+
"aria-hidden": true,
|
|
31879
|
+
style: {
|
|
31880
|
+
position: "fixed",
|
|
31881
|
+
top: c,
|
|
31882
|
+
left: d,
|
|
31883
|
+
width: f,
|
|
31884
|
+
height: h,
|
|
31885
|
+
pointerEvents: "none"
|
|
31886
|
+
}
|
|
31887
|
+
})
|
|
31888
|
+
}), t[2] = c, t[3] = d, t[4] = f, t[5] = h, t[6] = _) : _ = t[6];
|
|
31889
|
+
let v = n == null ? void 0 : n.content, y;
|
|
31890
|
+
t[7] !== i || t[8] !== v ? (y = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
31891
|
+
children: (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
31892
|
+
id: i,
|
|
31893
|
+
children: v
|
|
31894
|
+
})
|
|
31895
|
+
}), t[7] = i, t[8] = v, t[9] = y) : y = t[9];
|
|
31896
|
+
let S;
|
|
31897
|
+
return t[10] !== o || t[11] !== s || t[12] !== _ || t[13] !== y ? (S = (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
31898
|
+
open: o,
|
|
31899
|
+
onOpenChange: s,
|
|
31900
|
+
delayDuration: 0,
|
|
31901
|
+
disableHoverableContent: true,
|
|
31902
|
+
children: [
|
|
31903
|
+
_,
|
|
31904
|
+
y
|
|
31905
|
+
]
|
|
31906
|
+
}), t[10] = o, t[11] = s, t[12] = _, t[13] = y, t[14] = S) : S = t[14], S;
|
|
31907
|
+
};
|
|
31908
|
+
function applyHoverTemplate(e, t) {
|
|
31909
|
+
let n = /{{(\w+)}}/g, i = /* @__PURE__ */ new Map();
|
|
31910
|
+
for (let e2 of t) {
|
|
31911
|
+
let t2 = stringifyUnknownValue({
|
|
31912
|
+
value: e2.getValue(),
|
|
31913
|
+
nullAsEmptyString: true
|
|
31914
|
+
});
|
|
31915
|
+
i.set(e2.column.id, t2);
|
|
31916
|
+
}
|
|
31917
|
+
return e.replaceAll(n, (e2, t2) => {
|
|
31918
|
+
let n2 = i.get(t2);
|
|
31919
|
+
return n2 === void 0 ? `{{${t2}}}` : n2;
|
|
31920
|
+
});
|
|
31921
|
+
}
|
|
31922
|
+
function computeCellTooltipContent(e, t) {
|
|
31923
|
+
var _a2;
|
|
31924
|
+
let n = (_a2 = e.getHoverTitle) == null ? void 0 : _a2.call(e);
|
|
31925
|
+
if (n != null && n !== "") return n;
|
|
31926
|
+
if (t) return applyHoverTemplate(t, e.row.getVisibleCells());
|
|
31927
|
+
}
|
|
31928
|
+
var import_compiler_runtime$17 = require_compiler_runtime(), TOOLTIP_DELAY_MS = 400;
|
|
31929
|
+
function useTableHoverTooltip(e) {
|
|
31930
|
+
let t = (0, import_compiler_runtime$17.c)(33), { table: n } = e, i;
|
|
31931
|
+
t[0] === n ? i = t[1] : (i = n.getState().cellHoverTemplate || null, t[0] = n, t[1] = i);
|
|
31932
|
+
let a = i, [o, s] = (0, import_react.useState)(null), c = (0, import_react.useRef)(null), d = (0, import_react.useId)(), f = (0, import_react.useRef)(null), h = (0, import_react.useRef)(false), _;
|
|
31933
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => {
|
|
31934
|
+
c.current != null && (clearTimeout(c.current), c.current = null);
|
|
31935
|
+
}, t[2] = _) : _ = t[2];
|
|
31936
|
+
let v = _, y;
|
|
31937
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
31938
|
+
v(), s(null);
|
|
31939
|
+
}, t[3] = y) : y = t[3];
|
|
31940
|
+
let S = useEvent_default(y), w;
|
|
31941
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (e2, t2) => {
|
|
31942
|
+
f.current = e2;
|
|
31943
|
+
let n2 = e2.getBoundingClientRect();
|
|
31944
|
+
s({
|
|
31945
|
+
rect: {
|
|
31946
|
+
top: n2.top,
|
|
31947
|
+
left: n2.left,
|
|
31948
|
+
width: n2.width,
|
|
31949
|
+
height: n2.height
|
|
31950
|
+
},
|
|
31951
|
+
content: t2
|
|
31952
|
+
});
|
|
31953
|
+
}, t[4] = w) : w = t[4];
|
|
31954
|
+
let E = w, O, A;
|
|
31955
|
+
t[5] !== d || t[6] !== o ? (O = () => {
|
|
31956
|
+
if (!o) return;
|
|
31957
|
+
let e2 = f.current;
|
|
31958
|
+
return e2 == null ? void 0 : e2.setAttribute("aria-describedby", d), () => e2 == null ? void 0 : e2.removeAttribute("aria-describedby");
|
|
31959
|
+
}, A = [
|
|
31960
|
+
o,
|
|
31961
|
+
d
|
|
31962
|
+
], t[5] = d, t[6] = o, t[7] = O, t[8] = A) : (O = t[7], A = t[8]), (0, import_react.useLayoutEffect)(O, A);
|
|
31963
|
+
let M, I;
|
|
31964
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
31965
|
+
let e2 = () => {
|
|
31966
|
+
h.current = true;
|
|
31967
|
+
}, t2 = () => {
|
|
31968
|
+
h.current = false;
|
|
31969
|
+
};
|
|
31970
|
+
return window.addEventListener("mousedown", e2, {
|
|
31971
|
+
capture: true
|
|
31972
|
+
}), window.addEventListener("mouseup", t2, {
|
|
31973
|
+
capture: true
|
|
31974
|
+
}), () => {
|
|
31975
|
+
window.removeEventListener("mousedown", e2, {
|
|
31976
|
+
capture: true
|
|
31977
|
+
}), window.removeEventListener("mouseup", t2, {
|
|
31978
|
+
capture: true
|
|
31979
|
+
});
|
|
31980
|
+
};
|
|
31981
|
+
}, I = [], t[9] = M, t[10] = I) : (M = t[9], I = t[10]), (0, import_react.useEffect)(M, I);
|
|
31982
|
+
let z;
|
|
31983
|
+
t[11] !== S || t[12] !== a ? (z = (e2, t2) => {
|
|
31984
|
+
if (e2.buttons !== 0) return;
|
|
31985
|
+
let n2 = e2.currentTarget, i2 = computeCellTooltipContent(t2, a);
|
|
31986
|
+
if (i2 == null || i2 === "") {
|
|
31987
|
+
S();
|
|
31988
|
+
return;
|
|
31989
|
+
}
|
|
31990
|
+
v(), c.current = window.setTimeout(() => E(n2, i2), TOOLTIP_DELAY_MS);
|
|
31991
|
+
}, t[11] = S, t[12] = a, t[13] = z) : z = t[13];
|
|
31992
|
+
let U = useEvent_default(z), K;
|
|
31993
|
+
t[14] === S ? K = t[15] : (K = () => S(), t[14] = S, t[15] = K);
|
|
31994
|
+
let q = useEvent_default(K), J;
|
|
31995
|
+
t[16] === a ? J = t[17] : (J = (e2, t2) => {
|
|
31996
|
+
if (v(), h.current) return;
|
|
31997
|
+
let n2 = computeCellTooltipContent(t2, a);
|
|
31998
|
+
n2 == null || n2 === "" || E(e2.currentTarget, n2);
|
|
31999
|
+
}, t[16] = a, t[17] = J);
|
|
32000
|
+
let Q = useEvent_default(J), $;
|
|
32001
|
+
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32002
|
+
let GK = useEvent_default($), KK, qK;
|
|
32003
|
+
t[20] === S ? (KK = t[21], qK = t[22]) : (KK = () => (window.addEventListener("scroll", S, {
|
|
32004
|
+
passive: true,
|
|
32005
|
+
capture: true
|
|
32006
|
+
}), window.addEventListener("resize", S), () => {
|
|
32007
|
+
window.removeEventListener("scroll", S, {
|
|
32008
|
+
capture: true
|
|
32009
|
+
}), window.removeEventListener("resize", S);
|
|
32010
|
+
}), qK = [
|
|
32011
|
+
S
|
|
32012
|
+
], t[20] = S, t[21] = KK, t[22] = qK), (0, import_react.useEffect)(KK, qK);
|
|
32013
|
+
let JK, YK;
|
|
32014
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JK = () => v, YK = [], t[23] = JK, t[24] = YK) : (JK = t[23], YK = t[24]), (0, import_react.useEffect)(JK, YK);
|
|
32015
|
+
let XK;
|
|
32016
|
+
return t[25] !== GK || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (XK = {
|
|
32017
|
+
tooltipState: o,
|
|
32018
|
+
tooltipContentId: d,
|
|
32019
|
+
hideTooltip: S,
|
|
32020
|
+
handleCellMouseOver: U,
|
|
32021
|
+
handleCellMouseLeave: q,
|
|
32022
|
+
handleCellFocus: Q,
|
|
32023
|
+
handleCellBlur: GK
|
|
32024
|
+
}, t[25] = GK, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = XK) : XK = t[32], XK;
|
|
32025
|
+
}
|
|
31868
32026
|
var import_compiler_runtime$16 = require_compiler_runtime();
|
|
31869
32027
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
31870
32028
|
let t = (0, import_compiler_runtime$16.c)(9), { cellId: n, className: i } = e, o;
|
|
@@ -32059,34 +32217,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32059
32217
|
table: e
|
|
32060
32218
|
}), O = (0, import_react.useRef)(null), A = useEvent_default((e2) => {
|
|
32061
32219
|
O.current = e2;
|
|
32062
|
-
})
|
|
32063
|
-
|
|
32064
|
-
|
|
32065
|
-
|
|
32066
|
-
|
|
32067
|
-
value: e3.getValue(),
|
|
32068
|
-
nullAsEmptyString: true
|
|
32069
|
-
});
|
|
32070
|
-
i2.set(e3.column.id, t3);
|
|
32071
|
-
}
|
|
32072
|
-
return e2.replaceAll(n2, (e3, t3) => {
|
|
32073
|
-
let n3 = i2.get(t3);
|
|
32074
|
-
return n3 === void 0 ? `{{${t3}}}` : n3;
|
|
32075
|
-
});
|
|
32076
|
-
}
|
|
32077
|
-
let I = (e2) => e2.map((e3) => {
|
|
32078
|
-
var _a2, _b, _c, _d;
|
|
32079
|
-
let { className: t2, style: n2 } = getPinningStyles(e3.column), i2 = Object.assign({}, ((_a2 = e3.getUserStyling) == null ? void 0 : _a2.call(e3)) || {}, n2), o2 = ((_b = e3.getHoverTitle) == null ? void 0 : _b.call(e3)) ?? void 0;
|
|
32220
|
+
}), M = useTableHoverTooltip({
|
|
32221
|
+
table: e
|
|
32222
|
+
}), I = (e2) => e2.map((e3) => {
|
|
32223
|
+
var _a2, _b, _c;
|
|
32224
|
+
let { className: t2, style: n2 } = getPinningStyles(e3.column), i2 = Object.assign({}, ((_a2 = e3.getUserStyling) == null ? void 0 : _a2.call(e3)) || {}, n2);
|
|
32080
32225
|
return (0, import_react.createElement)(TableCell, {
|
|
32081
32226
|
tabIndex: 0,
|
|
32082
32227
|
...getCellDomProps(e3.id),
|
|
32083
32228
|
key: e3.id,
|
|
32084
|
-
className: cn("whitespace-pre truncate max-w-[300px] outline-hidden border-r border-r-border/75", e3.column.getColumnWrapping && ((
|
|
32229
|
+
className: cn("whitespace-pre truncate max-w-[300px] outline-hidden border-r border-r-border/75", e3.column.getColumnWrapping && ((_c = (_b = e3.column).getColumnWrapping) == null ? void 0 : _c.call(_b)) === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", t2),
|
|
32085
32230
|
style: i2,
|
|
32086
|
-
|
|
32087
|
-
|
|
32231
|
+
onMouseDown: (t3) => {
|
|
32232
|
+
v(t3, e3), M.hideTooltip();
|
|
32233
|
+
},
|
|
32088
32234
|
onMouseUp: y,
|
|
32089
|
-
onMouseOver: (t3) =>
|
|
32235
|
+
onMouseOver: (t3) => {
|
|
32236
|
+
S(t3, e3), M.handleCellMouseOver(t3, e3);
|
|
32237
|
+
},
|
|
32238
|
+
onMouseLeave: M.handleCellMouseLeave,
|
|
32239
|
+
onFocus: (t3) => M.handleCellFocus(t3, e3),
|
|
32240
|
+
onBlur: M.handleCellBlur,
|
|
32090
32241
|
onContextMenu: () => A(e3)
|
|
32091
32242
|
}, (0, import_jsx_runtime.jsx)(CellRangeSelectionIndicator, {
|
|
32092
32243
|
cellId: e3.id
|
|
@@ -32100,16 +32251,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32100
32251
|
let t2 = (i == null ? void 0 : i(e2.original, e2.index)) ?? e2.index;
|
|
32101
32252
|
(_a2 = e2.focusRow) == null ? void 0 : _a2.call(e2, t2);
|
|
32102
32253
|
}
|
|
32103
|
-
}, U =
|
|
32104
|
-
|
|
32105
|
-
|
|
32106
|
-
return U && (d2 = M(U, ((_a2 = e2.getVisibleCells) == null ? void 0 : _a2.call(e2)) ?? [
|
|
32107
|
-
...e2.getLeftVisibleCells(),
|
|
32108
|
-
...e2.getCenterVisibleCells(),
|
|
32109
|
-
...e2.getRightVisibleCells()
|
|
32110
|
-
])), (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
32254
|
+
}, U = (e2) => {
|
|
32255
|
+
let s2 = n ? (i == null ? void 0 : i(e2.original, e2.index)) ?? e2.index : void 0, c2 = n && o === s2;
|
|
32256
|
+
return (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
32111
32257
|
"data-state": e2.getIsSelected() && "selected",
|
|
32112
|
-
title: d2,
|
|
32113
32258
|
className: cn("border-t h-6", n && "cursor-pointer", c2 && "bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)"),
|
|
32114
32259
|
onClick: () => z(e2),
|
|
32115
32260
|
children: [
|
|
@@ -32123,52 +32268,61 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32123
32268
|
})
|
|
32124
32269
|
]
|
|
32125
32270
|
}, e2.id);
|
|
32126
|
-
},
|
|
32127
|
-
return (0, import_jsx_runtime.
|
|
32128
|
-
|
|
32129
|
-
|
|
32130
|
-
|
|
32131
|
-
|
|
32132
|
-
|
|
32133
|
-
|
|
32134
|
-
|
|
32135
|
-
|
|
32136
|
-
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
if (s) {
|
|
32141
|
-
let e2 = _.getVirtualItems(), t2 = _.getTotalSize();
|
|
32142
|
-
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32143
|
-
children: [
|
|
32144
|
-
((_a2 = e2[0]) == null ? void 0 : _a2.start) > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
32145
|
-
"data-virtual-spacer": "",
|
|
32146
|
-
style: {
|
|
32147
|
-
height: e2[0].start
|
|
32148
|
-
},
|
|
32149
|
-
children: (0, import_jsx_runtime.jsx)("td", {
|
|
32150
|
-
colSpan: J
|
|
32151
|
-
})
|
|
32152
|
-
}),
|
|
32153
|
-
e2.map((e3) => K(c[e3.index])),
|
|
32154
|
-
e2.length > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
32155
|
-
"data-virtual-spacer": "",
|
|
32156
|
-
style: {
|
|
32157
|
-
height: t2 - (((_b = e2.at(-1)) == null ? void 0 : _b.end) ?? t2)
|
|
32158
|
-
},
|
|
32159
|
-
children: (0, import_jsx_runtime.jsx)("td", {
|
|
32160
|
-
colSpan: J
|
|
32161
|
-
})
|
|
32271
|
+
}, K = t.length <= 4, q = t.length + (K ? 1 : 0);
|
|
32272
|
+
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32273
|
+
children: [
|
|
32274
|
+
(0, import_jsx_runtime.jsx)(DataTableContextMenu, {
|
|
32275
|
+
tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
32276
|
+
onKeyDown: w,
|
|
32277
|
+
ref: h,
|
|
32278
|
+
children: (() => {
|
|
32279
|
+
var _a2, _b;
|
|
32280
|
+
if (c.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
32281
|
+
children: (0, import_jsx_runtime.jsx)(TableCell, {
|
|
32282
|
+
colSpan: q,
|
|
32283
|
+
className: "h-24 text-center",
|
|
32284
|
+
children: "No results."
|
|
32162
32285
|
})
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32286
|
+
});
|
|
32287
|
+
if (s) {
|
|
32288
|
+
let e2 = _.getVirtualItems(), t2 = _.getTotalSize();
|
|
32289
|
+
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32290
|
+
children: [
|
|
32291
|
+
((_a2 = e2[0]) == null ? void 0 : _a2.start) > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
32292
|
+
"data-virtual-spacer": "",
|
|
32293
|
+
style: {
|
|
32294
|
+
height: e2[0].start
|
|
32295
|
+
},
|
|
32296
|
+
children: (0, import_jsx_runtime.jsx)("td", {
|
|
32297
|
+
colSpan: q
|
|
32298
|
+
})
|
|
32299
|
+
}),
|
|
32300
|
+
e2.map((e3) => U(c[e3.index])),
|
|
32301
|
+
e2.length > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
32302
|
+
"data-virtual-spacer": "",
|
|
32303
|
+
style: {
|
|
32304
|
+
height: t2 - (((_b = e2.at(-1)) == null ? void 0 : _b.end) ?? t2)
|
|
32305
|
+
},
|
|
32306
|
+
children: (0, import_jsx_runtime.jsx)("td", {
|
|
32307
|
+
colSpan: q
|
|
32308
|
+
})
|
|
32309
|
+
})
|
|
32310
|
+
]
|
|
32311
|
+
});
|
|
32312
|
+
}
|
|
32313
|
+
return c.map((e2) => U(e2));
|
|
32314
|
+
})()
|
|
32315
|
+
}),
|
|
32316
|
+
contextMenuRef: O,
|
|
32317
|
+
tableRef: h,
|
|
32318
|
+
copyAllCells: E
|
|
32319
|
+
}),
|
|
32320
|
+
(0, import_jsx_runtime.jsx)(HoverTooltip, {
|
|
32321
|
+
state: M.tooltipState,
|
|
32322
|
+
contentId: M.tooltipContentId,
|
|
32323
|
+
onClose: M.hideTooltip
|
|
32324
|
+
})
|
|
32325
|
+
]
|
|
32172
32326
|
});
|
|
32173
32327
|
};
|
|
32174
32328
|
function getPinningStyles(e) {
|
|
@@ -33080,7 +33234,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33080
33234
|
filename: i2.filename
|
|
33081
33235
|
};
|
|
33082
33236
|
}, t[6] = e, t[7] = O);
|
|
33083
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
33237
|
+
let A = O, M, I, z, U, K, q, J, Q, $, GK, KK, qK, JK;
|
|
33084
33238
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
33085
33239
|
let e2 = async (t2) => {
|
|
33086
33240
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -33146,10 +33300,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33146
33300
|
content: d,
|
|
33147
33301
|
open: o2,
|
|
33148
33302
|
children: h
|
|
33149
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
33303
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", GK = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (KK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33150
33304
|
className: "text-xs text-muted-foreground",
|
|
33151
33305
|
children: "Download"
|
|
33152
|
-
}), t[36] =
|
|
33306
|
+
}), t[36] = KK) : KK = t[36], qK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33153
33307
|
onSelect: () => {
|
|
33154
33308
|
e2(t2.format);
|
|
33155
33309
|
},
|
|
@@ -33170,10 +33324,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33170
33324
|
]
|
|
33171
33325
|
})
|
|
33172
33326
|
]
|
|
33173
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33327
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33174
33328
|
className: "text-xs text-muted-foreground",
|
|
33175
33329
|
children: "Copy to clipboard"
|
|
33176
|
-
}), t[37] = z, t[38] =
|
|
33330
|
+
}), t[37] = z, t[38] = JK) : (z = t[37], JK = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33177
33331
|
onSelect: async () => {
|
|
33178
33332
|
try {
|
|
33179
33333
|
await a(e3.format);
|
|
@@ -33202,30 +33356,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33202
33356
|
]
|
|
33203
33357
|
})
|
|
33204
33358
|
]
|
|
33205
|
-
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] =
|
|
33206
|
-
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21],
|
|
33207
|
-
let
|
|
33208
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
33359
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = GK, t[23] = KK, t[24] = qK, t[25] = JK;
|
|
33360
|
+
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], GK = t[22], KK = t[23], qK = t[24], JK = t[25];
|
|
33361
|
+
let YK;
|
|
33362
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== GK || t[44] !== KK || t[45] !== qK || t[46] !== JK ? (YK = (0, import_jsx_runtime.jsxs)(M, {
|
|
33209
33363
|
side: $,
|
|
33210
|
-
className:
|
|
33364
|
+
className: GK,
|
|
33211
33365
|
children: [
|
|
33212
|
-
|
|
33213
|
-
|
|
33214
|
-
|
|
33366
|
+
KK,
|
|
33367
|
+
qK,
|
|
33368
|
+
JK,
|
|
33215
33369
|
z,
|
|
33216
33370
|
U
|
|
33217
33371
|
]
|
|
33218
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
33219
|
-
let
|
|
33220
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
33372
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = GK, t[44] = KK, t[45] = qK, t[46] = JK, t[47] = YK) : YK = t[47];
|
|
33373
|
+
let XK;
|
|
33374
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== YK ? (XK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33221
33375
|
modal: K,
|
|
33222
33376
|
open: q,
|
|
33223
33377
|
onOpenChange: J,
|
|
33224
33378
|
children: [
|
|
33225
33379
|
Q,
|
|
33226
|
-
|
|
33380
|
+
YK
|
|
33227
33381
|
]
|
|
33228
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
33382
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = YK, t[54] = XK) : XK = t[54], XK;
|
|
33229
33383
|
};
|
|
33230
33384
|
function fetchJson(e) {
|
|
33231
33385
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33318,22 +33472,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33318
33472
|
]
|
|
33319
33473
|
}) : null;
|
|
33320
33474
|
};
|
|
33321
|
-
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:
|
|
33322
|
-
let [
|
|
33475
|
+
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: GK, enableSearch: KK = false, searchQuery: qK, onSearchQueryChange: JK, showFilters: YK = false, filters: XK, onFiltersChange: ZK, calculateTopKRows: QK, reloading: $K, freezeColumnsLeft: eq, freezeColumnsRight: tq, hiddenColumns: nq, toggleDisplayHeader: rq, showChartBuilder: iq, isChartBuilderOpen: aq, showPageSizeSelector: oq, showTableExplorer: sq, togglePanel: cq, isPanelOpen: lq, isAnyPanelOpen: uq, viewedRowIdx: dq, onViewedRowChange: fq, renderTableExplorerPanel: pq }) => {
|
|
33476
|
+
let [mq, hq] = import_react.useState(false), { locale: gq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: _q, setColumnPinning: vq } = useColumnPinning(eq, tq), { columnVisibility: yq, setColumnVisibility: bq } = useColumnVisibility(nq);
|
|
33323
33477
|
import_react.useEffect(() => {
|
|
33324
33478
|
let e2;
|
|
33325
|
-
return
|
|
33326
|
-
|
|
33327
|
-
}, 300) :
|
|
33479
|
+
return $K ? e2 = setTimeout(() => {
|
|
33480
|
+
hq(true);
|
|
33481
|
+
}, 300) : hq(false), () => {
|
|
33328
33482
|
e2 && clearTimeout(e2);
|
|
33329
33483
|
};
|
|
33330
33484
|
}, [
|
|
33331
|
-
|
|
33485
|
+
$K
|
|
33332
33486
|
]);
|
|
33333
|
-
function
|
|
33487
|
+
function xq(e2, t2) {
|
|
33334
33488
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
33335
33489
|
}
|
|
33336
|
-
let
|
|
33490
|
+
let Sq = useReactTable({
|
|
33337
33491
|
_features: [
|
|
33338
33492
|
ColumnPinning,
|
|
33339
33493
|
ColumnWrappingFeature,
|
|
@@ -33357,11 +33511,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33357
33511
|
getRowId: (e2, t2) => {
|
|
33358
33512
|
let n2 = getStableRowId(e2);
|
|
33359
33513
|
if (n2) return n2;
|
|
33360
|
-
let i2 =
|
|
33514
|
+
let i2 = xq(e2, t2);
|
|
33361
33515
|
return String(i2);
|
|
33362
33516
|
}
|
|
33363
33517
|
} : {},
|
|
33364
|
-
locale:
|
|
33518
|
+
locale: gq,
|
|
33365
33519
|
manualPagination: q,
|
|
33366
33520
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33367
33521
|
...w ? {
|
|
@@ -33371,22 +33525,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33371
33525
|
enableMultiSort: true,
|
|
33372
33526
|
getSortedRowModel: getSortedRowModel(),
|
|
33373
33527
|
manualFiltering: true,
|
|
33374
|
-
enableColumnFilters:
|
|
33528
|
+
enableColumnFilters: YK,
|
|
33375
33529
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33376
|
-
onColumnFiltersChange:
|
|
33530
|
+
onColumnFiltersChange: ZK,
|
|
33377
33531
|
onRowSelectionChange: Q,
|
|
33378
33532
|
onCellSelectionChange: $,
|
|
33379
33533
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33380
33534
|
enableMultiCellSelection: c === "multi-cell",
|
|
33381
|
-
onColumnPinningChange:
|
|
33382
|
-
onColumnVisibilityChange:
|
|
33535
|
+
onColumnPinningChange: vq,
|
|
33536
|
+
onColumnVisibilityChange: bq,
|
|
33383
33537
|
enableFocusRow: true,
|
|
33384
|
-
onFocusRowChange:
|
|
33538
|
+
onFocusRowChange: fq,
|
|
33385
33539
|
state: {
|
|
33386
33540
|
...S ? {
|
|
33387
33541
|
sorting: S
|
|
33388
33542
|
} : {},
|
|
33389
|
-
columnFilters:
|
|
33543
|
+
columnFilters: XK,
|
|
33390
33544
|
...z ? {
|
|
33391
33545
|
pagination: z
|
|
33392
33546
|
} : J && !z ? {} : {
|
|
@@ -33397,59 +33551,59 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33397
33551
|
},
|
|
33398
33552
|
rowSelection: E ?? {},
|
|
33399
33553
|
cellSelection: O ?? [],
|
|
33400
|
-
columnVisibility:
|
|
33554
|
+
columnVisibility: yq,
|
|
33401
33555
|
cellStyling: A,
|
|
33402
|
-
columnPinning:
|
|
33556
|
+
columnPinning: _q,
|
|
33403
33557
|
cellHoverTemplate: M,
|
|
33404
33558
|
cellHoverTexts: I ?? {}
|
|
33405
33559
|
}
|
|
33406
|
-
}),
|
|
33560
|
+
}), Cq = (lq == null ? void 0 : lq(PANEL_TYPES.ROW_VIEWER)) ?? false, wq = !J && o.length > 100, Tq = useScrollContainerHeight({
|
|
33407
33561
|
maxHeight: n,
|
|
33408
|
-
virtualize:
|
|
33409
|
-
}), [
|
|
33562
|
+
virtualize: wq
|
|
33563
|
+
}), [Eq, Dq] = import_react.useState(null), Oq = import_react.useMemo(() => ({
|
|
33410
33564
|
requestAddFilter: (e2) => {
|
|
33411
|
-
let t2 =
|
|
33412
|
-
t2 &&
|
|
33565
|
+
let t2 = Sq.getColumn(e2.columnId);
|
|
33566
|
+
t2 && Dq(buildEditorSnapshot(t2, {
|
|
33413
33567
|
operator: e2.operator
|
|
33414
33568
|
}));
|
|
33415
33569
|
}
|
|
33416
33570
|
}), [
|
|
33417
|
-
|
|
33418
|
-
]),
|
|
33571
|
+
Sq
|
|
33572
|
+
]), kq = getUserColumnVisibilityCounts(Sq), Aq = kq.total > 0 && kq.visible === 0;
|
|
33419
33573
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33420
|
-
value:
|
|
33574
|
+
value: Oq,
|
|
33421
33575
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33422
33576
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33423
33577
|
children: [
|
|
33424
33578
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33425
|
-
filters:
|
|
33426
|
-
table:
|
|
33427
|
-
calculateTopKRows:
|
|
33428
|
-
addFilterSnapshot:
|
|
33429
|
-
onAddFilterSnapshotChange:
|
|
33579
|
+
filters: XK,
|
|
33580
|
+
table: Sq,
|
|
33581
|
+
calculateTopKRows: QK,
|
|
33582
|
+
addFilterSnapshot: Eq,
|
|
33583
|
+
onAddFilterSnapshotChange: Dq
|
|
33430
33584
|
}),
|
|
33431
|
-
|
|
33585
|
+
pq == null ? void 0 : pq(Sq),
|
|
33432
33586
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33433
33587
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33434
33588
|
part: "table-wrapper",
|
|
33435
33589
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33436
33590
|
children: [
|
|
33437
33591
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33438
|
-
enableSearch:
|
|
33439
|
-
searchQuery:
|
|
33440
|
-
onSearchQueryChange:
|
|
33441
|
-
reloading:
|
|
33442
|
-
showChartBuilder:
|
|
33443
|
-
isChartBuilderOpen:
|
|
33444
|
-
toggleDisplayHeader:
|
|
33445
|
-
showTableExplorer:
|
|
33446
|
-
togglePanel:
|
|
33447
|
-
isAnyPanelOpen:
|
|
33592
|
+
enableSearch: KK,
|
|
33593
|
+
searchQuery: qK,
|
|
33594
|
+
onSearchQueryChange: JK,
|
|
33595
|
+
reloading: $K,
|
|
33596
|
+
showChartBuilder: iq,
|
|
33597
|
+
isChartBuilderOpen: aq,
|
|
33598
|
+
toggleDisplayHeader: rq,
|
|
33599
|
+
showTableExplorer: sq,
|
|
33600
|
+
togglePanel: cq,
|
|
33601
|
+
isAnyPanelOpen: uq,
|
|
33448
33602
|
downloadAs: K,
|
|
33449
33603
|
sizeBytes: _,
|
|
33450
33604
|
sizeBytesIsLoading: v
|
|
33451
33605
|
}),
|
|
33452
|
-
|
|
33606
|
+
Aq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33453
33607
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33454
33608
|
children: [
|
|
33455
33609
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -33458,26 +33612,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33458
33612
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
33459
33613
|
variant: "link",
|
|
33460
33614
|
size: "xs",
|
|
33461
|
-
onClick: () =>
|
|
33615
|
+
onClick: () => Sq.resetColumnVisibility(true),
|
|
33462
33616
|
children: "Unhide all"
|
|
33463
33617
|
})
|
|
33464
33618
|
]
|
|
33465
33619
|
}),
|
|
33466
33620
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33467
33621
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33468
|
-
ref:
|
|
33622
|
+
ref: Tq,
|
|
33469
33623
|
children: [
|
|
33470
|
-
|
|
33624
|
+
mq && (0, import_jsx_runtime.jsx)("thead", {
|
|
33471
33625
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33472
33626
|
}),
|
|
33473
|
-
renderTableHeader(
|
|
33627
|
+
renderTableHeader(Sq, wq || !!n),
|
|
33474
33628
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33475
|
-
table:
|
|
33629
|
+
table: Sq,
|
|
33476
33630
|
columns: i,
|
|
33477
|
-
rowViewerPanelOpen:
|
|
33478
|
-
getRowIndex:
|
|
33479
|
-
viewedRowIdx:
|
|
33480
|
-
virtualize:
|
|
33631
|
+
rowViewerPanelOpen: Cq,
|
|
33632
|
+
getRowIndex: xq,
|
|
33633
|
+
viewedRowIdx: dq,
|
|
33634
|
+
virtualize: wq
|
|
33481
33635
|
})
|
|
33482
33636
|
]
|
|
33483
33637
|
}),
|
|
@@ -33488,11 +33642,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33488
33642
|
pagination: J,
|
|
33489
33643
|
selection: c,
|
|
33490
33644
|
onRowSelectionChange: Q,
|
|
33491
|
-
table:
|
|
33492
|
-
getRowIds:
|
|
33493
|
-
showPageSizeSelector:
|
|
33494
|
-
tableLoading:
|
|
33495
|
-
togglePanel:
|
|
33645
|
+
table: Sq,
|
|
33646
|
+
getRowIds: GK,
|
|
33647
|
+
showPageSizeSelector: oq,
|
|
33648
|
+
tableLoading: $K,
|
|
33649
|
+
togglePanel: cq
|
|
33496
33650
|
})
|
|
33497
33651
|
]
|
|
33498
33652
|
})
|
|
@@ -33594,13 +33748,13 @@ ${d}`,
|
|
|
33594
33748
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
33595
33749
|
className: "h-3 w-3"
|
|
33596
33750
|
}), t[17] = I, t[18] = $);
|
|
33597
|
-
let
|
|
33598
|
-
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33751
|
+
let KK;
|
|
33752
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (KK = (0, import_jsx_runtime.jsx)("span", {
|
|
33599
33753
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
33600
33754
|
children: "Traceback"
|
|
33601
|
-
}), t[19] =
|
|
33602
|
-
let
|
|
33603
|
-
t[20] !== I || t[21] !== J || t[22] !== Q || t[23] !== $ ? (
|
|
33755
|
+
}), t[19] = KK) : KK = t[19];
|
|
33756
|
+
let qK;
|
|
33757
|
+
t[20] !== I || t[21] !== J || t[22] !== Q || t[23] !== $ ? (qK = (0, import_jsx_runtime.jsxs)("button", {
|
|
33604
33758
|
type: "button",
|
|
33605
33759
|
onClick: J,
|
|
33606
33760
|
"aria-expanded": I,
|
|
@@ -33608,22 +33762,22 @@ ${d}`,
|
|
|
33608
33762
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
33609
33763
|
children: [
|
|
33610
33764
|
$,
|
|
33611
|
-
|
|
33765
|
+
KK
|
|
33612
33766
|
]
|
|
33613
|
-
}), t[20] = I, t[21] = J, t[22] = Q, t[23] = $, t[24] =
|
|
33614
|
-
let
|
|
33615
|
-
t[25] !== s || t[26] !== I ? (
|
|
33767
|
+
}), t[20] = I, t[21] = J, t[22] = Q, t[23] = $, t[24] = qK) : qK = t[24];
|
|
33768
|
+
let JK;
|
|
33769
|
+
t[25] !== s || t[26] !== I ? (JK = I && (0, import_jsx_runtime.jsx)("div", {
|
|
33616
33770
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
33617
33771
|
children: s
|
|
33618
|
-
}), t[25] = s, t[26] = I, t[27] =
|
|
33619
|
-
let
|
|
33620
|
-
t[28] !== q || t[29] !== A ? (
|
|
33772
|
+
}), t[25] = s, t[26] = I, t[27] = JK) : JK = t[27];
|
|
33773
|
+
let YK;
|
|
33774
|
+
t[28] !== q || t[29] !== A ? (YK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33621
33775
|
tooltip: "Fix with AI",
|
|
33622
33776
|
openPrompt: () => q(false),
|
|
33623
33777
|
applyAutofix: () => q(true)
|
|
33624
|
-
}), t[28] = q, t[29] = A, t[30] =
|
|
33625
|
-
let
|
|
33626
|
-
t[31] !== w || t[32] !== v ? (
|
|
33778
|
+
}), t[28] = q, t[29] = A, t[30] = YK) : YK = t[30];
|
|
33779
|
+
let XK;
|
|
33780
|
+
t[31] !== w || t[32] !== v ? (XK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33627
33781
|
content: "Attach pdb to the exception point.",
|
|
33628
33782
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33629
33783
|
size: "xs",
|
|
@@ -33640,9 +33794,9 @@ ${d}`,
|
|
|
33640
33794
|
"Launch debugger"
|
|
33641
33795
|
]
|
|
33642
33796
|
})
|
|
33643
|
-
}), t[31] = w, t[32] = v, t[33] =
|
|
33644
|
-
let
|
|
33645
|
-
t[34] !== d || t[35] !== i ? (
|
|
33797
|
+
}), t[31] = w, t[32] = v, t[33] = XK) : XK = t[33];
|
|
33798
|
+
let ZK;
|
|
33799
|
+
t[34] !== d || t[35] !== i ? (ZK = M && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33646
33800
|
children: [
|
|
33647
33801
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33648
33802
|
asChild: true,
|
|
@@ -33710,25 +33864,25 @@ ${d}`,
|
|
|
33710
33864
|
]
|
|
33711
33865
|
})
|
|
33712
33866
|
]
|
|
33713
|
-
}), t[34] = d, t[35] = i, t[36] =
|
|
33714
|
-
let
|
|
33715
|
-
t[37] !==
|
|
33867
|
+
}), t[34] = d, t[35] = i, t[36] = ZK) : ZK = t[36];
|
|
33868
|
+
let QK;
|
|
33869
|
+
t[37] !== YK || t[38] !== XK || t[39] !== ZK ? (QK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33716
33870
|
className: "flex gap-2",
|
|
33717
33871
|
children: [
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33872
|
+
YK,
|
|
33873
|
+
XK,
|
|
33874
|
+
ZK
|
|
33721
33875
|
]
|
|
33722
|
-
}), t[37] =
|
|
33723
|
-
let
|
|
33724
|
-
return t[41] !==
|
|
33876
|
+
}), t[37] = YK, t[38] = XK, t[39] = ZK, t[40] = QK) : QK = t[40];
|
|
33877
|
+
let $K;
|
|
33878
|
+
return t[41] !== qK || t[42] !== JK || t[43] !== QK ? ($K = (0, import_jsx_runtime.jsxs)("div", {
|
|
33725
33879
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33726
33880
|
children: [
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33881
|
+
qK,
|
|
33882
|
+
JK,
|
|
33883
|
+
QK
|
|
33730
33884
|
]
|
|
33731
|
-
}), t[41] =
|
|
33885
|
+
}), t[41] = qK, t[42] = JK, t[43] = QK, t[44] = $K) : $K = t[44], $K;
|
|
33732
33886
|
};
|
|
33733
33887
|
function lastLine(e) {
|
|
33734
33888
|
var _a2, _b;
|
|
@@ -35120,7 +35274,7 @@ ${d}`,
|
|
|
35120
35274
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35121
35275
|
}
|
|
35122
35276
|
}
|
|
35123
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-
|
|
35277
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-dev7");
|
|
35124
35278
|
showCodeInRunModeAtom = atom(true);
|
|
35125
35279
|
atom(null);
|
|
35126
35280
|
var import_compiler_runtime = require_compiler_runtime();
|