@marimo-team/islands 0.23.14-dev43 → 0.23.14-dev46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-CO8WuXGb.js → chat-ui-DXPRhRO2.js} +3132 -3132
- package/dist/{code-visibility-BCkKHNom.js → code-visibility-CNAoaX9P.js} +717 -708
- package/dist/{html-to-image-DLSOS-bE.js → html-to-image-DOqQBSQc.js} +2236 -2208
- package/dist/main.js +252 -248
- package/dist/{process-output-B9ysqk1y.js → process-output-kGk2Jc2x.js} +1 -1
- package/dist/{reveal-component-CD1M60a6.js → reveal-component-CB90I1dT.js} +2 -2
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +1 -0
- package/src/components/app-config/user-config-form.tsx +26 -0
- package/src/components/debugger/debugger-code.tsx +7 -2
- package/src/components/editor/notebook-cell.tsx +7 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +18 -1
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/cell.ts +5 -3
- package/src/core/codemirror/cells/debugger-decorations.ts +188 -0
- package/src/core/codemirror/cells/debugger-state.ts +92 -0
- package/src/core/codemirror/cells/extensions.ts +22 -0
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +2 -0
- package/src/core/wasm/bridge.ts +4 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
- package/src/plugins/core/RenderHTML.tsx +35 -1
- package/src/plugins/core/__test__/RenderHTML.test.ts +44 -0
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
|
-
import {
|
|
9
|
+
import { $t as getRequestClient, B as isDataURLString, Bn as FileText, Bt as getFeatureFlag, C as Accordion, Cn as atomWithStorage, E as AccordionTrigger, En as Close$1, Fn as NotebookPen, Gn as CircleX, H as renderHTML, Hn as ExternalLink, In as Minus, It as useChromeActions, Jn as esm_default, Kt as DATA_TYPE_ICON, L as base64ToUint8Array, Ln as LoaderCircle, Lt as adaptForLocalStorage, M as DotFilledIcon, Mn as Trash2, N as PinLeftIcon, Nt as goToCellLine, P as PinRightIcon, Rt as jotaiJsonStorage, T as AccordionItem, Tt as Checkbox, Vn as Eye, Wt as PluralWord, X as notebookAtom, Yn as import_lib, _ as getDatasourceContext, an as extractAllTracebackInfo, bn as jsonParseWithSpecialChar, bt as getCellDomProps, c as Popover, d as PopoverTrigger, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, hn as SCRATCH_CELL_ID, in as elementContainsMarimoCellFile, j as ChevronRightIcon, jn as Wrench, jt as toggleBreakpoint, k as CheckIcon, l as PopoverClose, ln as filenameAtom, lt as kioskModeAtom, m as useExpandedOutput, mn as HTMLCellId, n as Spinner, nt as useCellNames, on as getTracebackInfo, ot as AnsiUp, pn as CellOutputId, q as getCellEditorView, qn as Braces, qt as getDataTypeColor, r as MarkdownRenderer, t as toPng, tn as useRequestClient, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as sanitizeHtml, w as AccordionContent, xn as jsonToMarkdown, xt as displayCellName, yt as DATA_CELL_ID, z as extractBase64FromDataURL, zn as Info, __tla as __tla_0 } from "./html-to-image-DOqQBSQc.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CxffarYV.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
|
|
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
|
|
|
2061
2061
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2062
2062
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2063
2063
|
if (e === t) return;
|
|
2064
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0,
|
|
2065
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
2066
|
-
let
|
|
2067
|
-
if (
|
|
2068
|
-
else if (
|
|
2069
|
-
else if (
|
|
2070
|
-
else if (
|
|
2071
|
-
let e2 =
|
|
2064
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, eJ = c.top - E, tJ = c.bottom + O, nJ = c.left - A, rJ = c.right + M, iJ = e === _ ? 0 : Q + $, aJ = e === _ ? 0 : q + J, oJ = e.offsetWidth - e.clientWidth - iJ, sJ = e.offsetHeight - e.clientHeight - aJ, cJ = v + q + I, lJ = y - J - z - sJ, uJ = S + Q + U, dJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? uJ += oJ : dJ -= oJ;
|
|
2066
|
+
let fJ = eJ < cJ || tJ > lJ, pJ = nJ < uJ || rJ > dJ;
|
|
2067
|
+
if (fJ && i === "start") o += eJ - cJ;
|
|
2068
|
+
else if (fJ && i === "center") o += (eJ + tJ) / 2 - (cJ + lJ) / 2;
|
|
2069
|
+
else if (fJ && i === "end") o += tJ - lJ;
|
|
2070
|
+
else if (fJ && i === "nearest") {
|
|
2071
|
+
let e2 = eJ - cJ, t2 = tJ - lJ;
|
|
2072
2072
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2073
2073
|
}
|
|
2074
|
-
if (
|
|
2075
|
-
else if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
let e2 =
|
|
2074
|
+
if (pJ && a === "start") s += nJ - uJ;
|
|
2075
|
+
else if (pJ && a === "center") s += (nJ + rJ) / 2 - (uJ + dJ) / 2;
|
|
2076
|
+
else if (pJ && a === "end") s += rJ - dJ;
|
|
2077
|
+
else if (pJ && a === "nearest") {
|
|
2078
|
+
let e2 = nJ - uJ, t2 = rJ - dJ;
|
|
2079
2079
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2080
2080
|
}
|
|
2081
2081
|
e.scrollTo({
|
|
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
|
|
|
5185
5185
|
}
|
|
5186
5186
|
let $ = "bottom";
|
|
5187
5187
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5188
|
-
let
|
|
5189
|
-
q[I] +=
|
|
5190
|
-
let
|
|
5191
|
-
y && y <
|
|
5192
|
-
let
|
|
5193
|
-
|
|
5194
|
-
let
|
|
5195
|
-
x: U === "top" || U === "bottom" ?
|
|
5196
|
-
y: U === "left" || U === "right" ?
|
|
5188
|
+
let eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += eJ;
|
|
5190
|
+
let tJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < tJ && (tJ = y), n.height = Math.min(n.height, tJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += eJ;
|
|
5192
|
+
let nJ = {}, rJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], iJ = rJ + 0.5 * t[z], aJ = S / 2 + w, oJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), sJ = n[z] - oJ - S / 2 - w;
|
|
5193
|
+
nJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(iJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), aJ, sJ), { placement: U, crossPlacement: K } = A, S ? rJ = nJ[I] : K === "right" ? rJ += t[z] : K === "center" && (rJ += t[z] / 2);
|
|
5194
|
+
let cJ = U === "left" || U === "top" ? n[M] : 0, lJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? rJ : cJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? rJ : cJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: tJ,
|
|
5201
|
+
arrowOffsetLeft: nJ.left,
|
|
5202
|
+
arrowOffsetTop: nJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: lJ
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
|
|
|
7056
7056
|
n,
|
|
7057
7057
|
h
|
|
7058
7058
|
]);
|
|
7059
|
-
let
|
|
7059
|
+
let eJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7060
7060
|
role: "textbox",
|
|
7061
7061
|
"aria-valuemax": null,
|
|
7062
7062
|
"aria-valuemin": null,
|
|
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
|
|
|
7066
7066
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7067
7067
|
t.segments
|
|
7068
7068
|
]) && !t.isInvalid && (f = void 0);
|
|
7069
|
-
let
|
|
7070
|
-
"aria-label": `${
|
|
7069
|
+
let tJ = $bdb11010cef70236$export$f680877a34711e37(), nJ = !t.isDisabled && !t.isReadOnly && e.isEditable, rJ = e.type === "literal" ? "" : s.of(e.type), iJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${rJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7071
7071
|
"aria-labelledby": d
|
|
7072
7072
|
});
|
|
7073
7073
|
if (e.type === "literal") return {
|
|
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
|
|
|
7075
7075
|
"aria-hidden": true
|
|
7076
7076
|
}
|
|
7077
7077
|
};
|
|
7078
|
-
let
|
|
7078
|
+
let aJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
aJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (aJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, iJ, {
|
|
7088
|
+
id: tJ,
|
|
7089
|
+
...eJ,
|
|
7090
7090
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7091
7091
|
"aria-describedby": f,
|
|
7092
7092
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7093
7093
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
7094
|
-
contentEditable:
|
|
7095
|
-
suppressContentEditableWarning:
|
|
7096
|
-
spellCheck:
|
|
7097
|
-
autoCorrect:
|
|
7098
|
-
enterKeyHint:
|
|
7099
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
7094
|
+
contentEditable: nJ,
|
|
7095
|
+
suppressContentEditableWarning: nJ,
|
|
7096
|
+
spellCheck: nJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: nJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: nJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !nJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: aJ,
|
|
7104
7104
|
onPointerDown(e2) {
|
|
7105
7105
|
e2.stopPropagation();
|
|
7106
7106
|
},
|
|
@@ -10343,12 +10343,12 @@ Defaulting to \`null\`.`;
|
|
|
10343
10343
|
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);
|
|
10344
10344
|
}
|
|
10345
10345
|
}
|
|
10346
|
-
let
|
|
10346
|
+
let eJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10347
10347
|
w,
|
|
10348
10348
|
f,
|
|
10349
10349
|
s,
|
|
10350
10350
|
c
|
|
10351
|
-
]),
|
|
10351
|
+
]), tJ = e.isInvalid || e.validationState === "invalid" || eJ, nJ = tJ ? "invalid" : null, rJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10352
10352
|
h,
|
|
10353
10353
|
o
|
|
10354
10354
|
]);
|
|
@@ -10365,8 +10365,8 @@ Defaulting to \`null\`.`;
|
|
|
10365
10365
|
maxValue: c,
|
|
10366
10366
|
focusedDate: O,
|
|
10367
10367
|
timeZone: E,
|
|
10368
|
-
validationState:
|
|
10369
|
-
isValueInvalid:
|
|
10368
|
+
validationState: nJ,
|
|
10369
|
+
isValueInvalid: tJ,
|
|
10370
10370
|
setFocusedDate(e2) {
|
|
10371
10371
|
Q(e2);
|
|
10372
10372
|
},
|
|
@@ -10391,12 +10391,12 @@ Defaulting to \`null\`.`;
|
|
|
10391
10391
|
}));
|
|
10392
10392
|
},
|
|
10393
10393
|
focusNextPage() {
|
|
10394
|
-
let e2 = M.add(
|
|
10395
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10394
|
+
let e2 = M.add(rJ);
|
|
10395
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
|
|
10396
10396
|
},
|
|
10397
10397
|
focusPreviousPage() {
|
|
10398
|
-
let e2 = M.subtract(
|
|
10399
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10398
|
+
let e2 = M.subtract(rJ);
|
|
10399
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
|
|
10400
10400
|
},
|
|
10401
10401
|
focusSectionStart() {
|
|
10402
10402
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10533,13 +10533,13 @@ Defaulting to \`null\`.`;
|
|
|
10533
10533
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10534
10534
|
}), q(null);
|
|
10535
10535
|
}
|
|
10536
|
-
}, [$,
|
|
10537
|
-
|
|
10536
|
+
}, [$, eJ] = (0, import_react.useState)(false), { isDateUnavailable: tJ } = e, nJ = (0, import_react.useMemo)(() => !h || v ? false : tJ && (tJ(h.start) || tJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10537
|
+
tJ,
|
|
10538
10538
|
h,
|
|
10539
10539
|
v,
|
|
10540
10540
|
c,
|
|
10541
10541
|
d
|
|
10542
|
-
]),
|
|
10542
|
+
]), rJ = e.isInvalid || e.validationState === "invalid" || nJ, iJ = rJ ? "invalid" : null;
|
|
10543
10543
|
return {
|
|
10544
10544
|
...I,
|
|
10545
10545
|
value: h,
|
|
@@ -10547,8 +10547,8 @@ Defaulting to \`null\`.`;
|
|
|
10547
10547
|
anchorDate: v,
|
|
10548
10548
|
setAnchorDate: q,
|
|
10549
10549
|
highlightedRange: J,
|
|
10550
|
-
validationState:
|
|
10551
|
-
isValueInvalid:
|
|
10550
|
+
validationState: iJ,
|
|
10551
|
+
isValueInvalid: rJ,
|
|
10552
10552
|
selectFocusedDate() {
|
|
10553
10553
|
Q(I.focusedDate);
|
|
10554
10554
|
},
|
|
@@ -10564,7 +10564,7 @@ Defaulting to \`null\`.`;
|
|
|
10564
10564
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10565
10565
|
},
|
|
10566
10566
|
isDragging: $,
|
|
10567
|
-
setDragging:
|
|
10567
|
+
setDragging: eJ
|
|
10568
10568
|
};
|
|
10569
10569
|
}
|
|
10570
10570
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11751,7 +11751,7 @@ Defaulting to \`null\`.`;
|
|
|
11751
11751
|
_,
|
|
11752
11752
|
S,
|
|
11753
11753
|
v
|
|
11754
|
-
]),
|
|
11754
|
+
]), eJ = (0, import_react.useMemo)(() => {
|
|
11755
11755
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11756
11756
|
"era",
|
|
11757
11757
|
"year",
|
|
@@ -11769,15 +11769,15 @@ Defaulting to \`null\`.`;
|
|
|
11769
11769
|
e.maxGranularity,
|
|
11770
11770
|
_,
|
|
11771
11771
|
w
|
|
11772
|
-
]), [
|
|
11773
|
-
(M !==
|
|
11774
|
-
let
|
|
11775
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11772
|
+
]), [tJ, nJ] = (0, import_react.useState)(M), [rJ, iJ] = (0, import_react.useState)(S), [aJ, oJ] = (0, import_react.useState)(w);
|
|
11773
|
+
(M !== tJ || w !== aJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, rJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), nJ(M), iJ(S), oJ(w), z(I));
|
|
11774
|
+
let sJ = (t2) => {
|
|
11775
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(eJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11776
11776
|
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);
|
|
11777
11777
|
else {
|
|
11778
|
-
if (t2.isComplete(
|
|
11778
|
+
if (t2.isComplete(eJ)) {
|
|
11779
11779
|
let e2 = t2.toValue(M ?? $);
|
|
11780
|
-
if (t2.validate(e2,
|
|
11780
|
+
if (t2.validate(e2, eJ)) {
|
|
11781
11781
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11782
11782
|
if (!E || t3.compare(E) !== 0) {
|
|
11783
11783
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11787,83 +11787,83 @@ Defaulting to \`null\`.`;
|
|
|
11787
11787
|
}
|
|
11788
11788
|
z(t2);
|
|
11789
11789
|
}
|
|
11790
|
-
},
|
|
11790
|
+
}, cJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11791
11791
|
I,
|
|
11792
11792
|
y,
|
|
11793
11793
|
M,
|
|
11794
11794
|
$
|
|
11795
|
-
]),
|
|
11796
|
-
|
|
11795
|
+
]), lJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(cJ, I, J, Q, S, t, _), [
|
|
11796
|
+
cJ,
|
|
11797
11797
|
J,
|
|
11798
11798
|
Q,
|
|
11799
11799
|
I,
|
|
11800
11800
|
S,
|
|
11801
11801
|
t,
|
|
11802
11802
|
_
|
|
11803
|
-
]),
|
|
11804
|
-
|
|
11805
|
-
},
|
|
11803
|
+
]), uJ = (e2, t2) => {
|
|
11804
|
+
sJ(I.cycle(e2, t2, $, eJ));
|
|
11805
|
+
}, dJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11806
11806
|
E,
|
|
11807
11807
|
c,
|
|
11808
11808
|
d,
|
|
11809
11809
|
f,
|
|
11810
11810
|
K
|
|
11811
|
-
]),
|
|
11811
|
+
]), fJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11812
11812
|
...e,
|
|
11813
11813
|
value: E,
|
|
11814
|
-
builtinValidation:
|
|
11815
|
-
}),
|
|
11814
|
+
builtinValidation: dJ
|
|
11815
|
+
}), pJ = fJ.displayValidation.isInvalid, mJ = e.validationState || (pJ ? "invalid" : null);
|
|
11816
11816
|
return {
|
|
11817
|
-
...
|
|
11817
|
+
...fJ,
|
|
11818
11818
|
value: M,
|
|
11819
11819
|
defaultValue: e.defaultValue ?? A,
|
|
11820
|
-
dateValue:
|
|
11820
|
+
dateValue: cJ,
|
|
11821
11821
|
calendar: S,
|
|
11822
|
-
setValue:
|
|
11823
|
-
segments:
|
|
11822
|
+
setValue: sJ,
|
|
11823
|
+
segments: lJ,
|
|
11824
11824
|
dateFormatter: J,
|
|
11825
|
-
validationState:
|
|
11826
|
-
isInvalid:
|
|
11825
|
+
validationState: mJ,
|
|
11826
|
+
isInvalid: pJ,
|
|
11827
11827
|
granularity: _,
|
|
11828
11828
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11829
11829
|
isDisabled: a,
|
|
11830
11830
|
isReadOnly: o,
|
|
11831
11831
|
isRequired: s,
|
|
11832
11832
|
increment(e2) {
|
|
11833
|
-
|
|
11833
|
+
uJ(e2, 1);
|
|
11834
11834
|
},
|
|
11835
11835
|
decrement(e2) {
|
|
11836
|
-
|
|
11836
|
+
uJ(e2, -1);
|
|
11837
11837
|
},
|
|
11838
11838
|
incrementPage(e2) {
|
|
11839
|
-
|
|
11839
|
+
uJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11840
11840
|
},
|
|
11841
11841
|
decrementPage(e2) {
|
|
11842
|
-
|
|
11842
|
+
uJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11843
11843
|
},
|
|
11844
11844
|
incrementToMax(e2) {
|
|
11845
11845
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11846
|
-
|
|
11846
|
+
sJ(I.set(e2, t2, $));
|
|
11847
11847
|
},
|
|
11848
11848
|
decrementToMin(e2) {
|
|
11849
11849
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11850
|
-
|
|
11850
|
+
sJ(I.set(e2, t2, $));
|
|
11851
11851
|
},
|
|
11852
11852
|
setSegment(e2, t2) {
|
|
11853
|
-
|
|
11853
|
+
sJ(I.set(e2, t2, $));
|
|
11854
11854
|
},
|
|
11855
11855
|
confirmPlaceholder() {
|
|
11856
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11856
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(eJ)) {
|
|
11857
11857
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11858
11858
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11859
11859
|
}
|
|
11860
11860
|
},
|
|
11861
11861
|
clearSegment(e2) {
|
|
11862
11862
|
let t2 = I;
|
|
11863
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11863
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), sJ(t2);
|
|
11864
11864
|
},
|
|
11865
11865
|
formatValue(e2) {
|
|
11866
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11866
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(cJ) : "";
|
|
11867
11867
|
},
|
|
11868
11868
|
getDateFormatter(e2, t2) {
|
|
11869
11869
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11983,7 +11983,7 @@ Defaulting to \`null\`.`;
|
|
|
11983
11983
|
e.endName
|
|
11984
11984
|
]),
|
|
11985
11985
|
builtinValidation: J
|
|
11986
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11986
|
+
}), $ = Q.displayValidation.isInvalid, eJ = e.validationState || ($ ? "invalid" : null);
|
|
11987
11987
|
return {
|
|
11988
11988
|
...Q,
|
|
11989
11989
|
value: c,
|
|
@@ -12029,7 +12029,7 @@ Defaulting to \`null\`.`;
|
|
|
12029
12029
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12030
12030
|
}), t.setOpen(n2);
|
|
12031
12031
|
},
|
|
12032
|
-
validationState:
|
|
12032
|
+
validationState: eJ,
|
|
12033
12033
|
isInvalid: $,
|
|
12034
12034
|
formatValue(t2, n2) {
|
|
12035
12035
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15901,33 +15901,33 @@ try {
|
|
|
15901
15901
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15902
15902
|
function y(e2) {
|
|
15903
15903
|
var _a2, _b, _c, _d;
|
|
15904
|
-
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,
|
|
15904
|
+
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, eJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15905
15905
|
h2
|
|
15906
|
-
]),
|
|
15907
|
-
|
|
15908
|
-
]),
|
|
15909
|
-
supportedColorSchemes:
|
|
15910
|
-
defaultLightColorScheme:
|
|
15911
|
-
defaultDarkColorScheme:
|
|
15906
|
+
]), tJ = eJ[t], nJ = tJ || eJ, { colorSchemes: rJ = _, components: iJ = v, cssVarPrefix: aJ } = nJ, oJ = Object.keys(rJ).filter((e3) => !!rJ[e3]).join(","), sJ = import_react.useMemo(() => oJ.split(","), [
|
|
15907
|
+
oJ
|
|
15908
|
+
]), cJ = typeof s == "string" ? s : s.light, lJ = typeof s == "string" ? s : s.dark, { mode: uJ, setMode: dJ, systemMode: fJ, lightColorScheme: pJ, darkColorScheme: mJ, colorScheme: hJ, setColorScheme: gJ } = useCurrentColorScheme({
|
|
15909
|
+
supportedColorSchemes: sJ,
|
|
15910
|
+
defaultLightColorScheme: cJ,
|
|
15911
|
+
defaultDarkColorScheme: lJ,
|
|
15912
15912
|
modeStorageKey: y2,
|
|
15913
15913
|
colorSchemeStorageKey: S2,
|
|
15914
|
-
defaultMode:
|
|
15914
|
+
defaultMode: rJ[cJ] && rJ[lJ] ? U : ((_b = (_a2 = rJ[nJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = nJ.palette) == null ? void 0 : _c.mode),
|
|
15915
15915
|
storageManager: E,
|
|
15916
15916
|
storageWindow: O,
|
|
15917
15917
|
noSsr: K
|
|
15918
|
-
}),
|
|
15919
|
-
$ && (
|
|
15920
|
-
let
|
|
15918
|
+
}), _J = uJ, vJ = hJ;
|
|
15919
|
+
$ && (_J = Q.mode, vJ = Q.colorScheme);
|
|
15920
|
+
let yJ = import_react.useMemo(() => {
|
|
15921
15921
|
var _a3;
|
|
15922
|
-
let e3 =
|
|
15923
|
-
...
|
|
15924
|
-
components:
|
|
15925
|
-
colorSchemes:
|
|
15926
|
-
cssVarPrefix:
|
|
15922
|
+
let e3 = vJ || nJ.defaultColorScheme, t2 = ((_a3 = nJ.generateThemeVars) == null ? void 0 : _a3.call(nJ)) || nJ.vars, n2 = {
|
|
15923
|
+
...nJ,
|
|
15924
|
+
components: iJ,
|
|
15925
|
+
colorSchemes: rJ,
|
|
15926
|
+
cssVarPrefix: aJ,
|
|
15927
15927
|
vars: t2
|
|
15928
15928
|
};
|
|
15929
15929
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15930
|
-
let t3 =
|
|
15930
|
+
let t3 = rJ[e3];
|
|
15931
15931
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15932
15932
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15933
15933
|
...n2[e4],
|
|
@@ -15937,31 +15937,31 @@ try {
|
|
|
15937
15937
|
}
|
|
15938
15938
|
return c ? c(n2) : n2;
|
|
15939
15939
|
}, [
|
|
15940
|
-
eJ,
|
|
15941
|
-
gJ,
|
|
15942
15940
|
nJ,
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15941
|
+
vJ,
|
|
15942
|
+
iJ,
|
|
15943
|
+
rJ,
|
|
15944
|
+
aJ
|
|
15945
|
+
]), bJ = nJ.colorSchemeSelector;
|
|
15946
15946
|
useEnhancedEffect_default(() => {
|
|
15947
|
-
if (
|
|
15948
|
-
let e3 =
|
|
15949
|
-
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(...
|
|
15947
|
+
if (vJ && M && bJ && bJ !== "media") {
|
|
15948
|
+
let e3 = bJ, t2 = bJ;
|
|
15949
|
+
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(...sJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", vJ));
|
|
15950
15950
|
else {
|
|
15951
|
-
let e4 = t2.replace("%s",
|
|
15951
|
+
let e4 = t2.replace("%s", vJ).match(/\[([^\]]+)\]/);
|
|
15952
15952
|
if (e4) {
|
|
15953
15953
|
let [t3, n2] = e4[1].split("=");
|
|
15954
|
-
n2 ||
|
|
15955
|
-
M.removeAttribute(t3.replace(
|
|
15954
|
+
n2 || sJ.forEach((e5) => {
|
|
15955
|
+
M.removeAttribute(t3.replace(vJ, e5));
|
|
15956
15956
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15957
|
-
} else M.setAttribute(t2,
|
|
15957
|
+
} else M.setAttribute(t2, vJ);
|
|
15958
15958
|
}
|
|
15959
15959
|
}
|
|
15960
15960
|
}, [
|
|
15961
|
-
gJ,
|
|
15962
15961
|
vJ,
|
|
15962
|
+
bJ,
|
|
15963
15963
|
M,
|
|
15964
|
-
|
|
15964
|
+
sJ
|
|
15965
15965
|
]), import_react.useEffect(() => {
|
|
15966
15966
|
let e3;
|
|
15967
15967
|
if (w2 && q.current && A) {
|
|
@@ -15974,48 +15974,48 @@ try {
|
|
|
15974
15974
|
clearTimeout(e3);
|
|
15975
15975
|
};
|
|
15976
15976
|
}, [
|
|
15977
|
-
|
|
15977
|
+
vJ,
|
|
15978
15978
|
w2,
|
|
15979
15979
|
A
|
|
15980
15980
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15981
15981
|
q.current = false;
|
|
15982
15982
|
}), []);
|
|
15983
|
-
let
|
|
15984
|
-
allColorSchemes:
|
|
15985
|
-
colorScheme:
|
|
15986
|
-
darkColorScheme:
|
|
15987
|
-
lightColorScheme:
|
|
15988
|
-
mode:
|
|
15989
|
-
setColorScheme:
|
|
15990
|
-
setMode:
|
|
15991
|
-
systemMode:
|
|
15983
|
+
let xJ = import_react.useMemo(() => ({
|
|
15984
|
+
allColorSchemes: sJ,
|
|
15985
|
+
colorScheme: vJ,
|
|
15986
|
+
darkColorScheme: mJ,
|
|
15987
|
+
lightColorScheme: pJ,
|
|
15988
|
+
mode: _J,
|
|
15989
|
+
setColorScheme: gJ,
|
|
15990
|
+
setMode: dJ,
|
|
15991
|
+
systemMode: fJ
|
|
15992
15992
|
}), [
|
|
15993
|
-
|
|
15993
|
+
sJ,
|
|
15994
|
+
vJ,
|
|
15995
|
+
mJ,
|
|
15996
|
+
pJ,
|
|
15997
|
+
_J,
|
|
15994
15998
|
gJ,
|
|
15995
|
-
fJ,
|
|
15996
15999
|
dJ,
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
]), bJ = true;
|
|
16003
|
-
(z || eJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === rJ) && (bJ = false);
|
|
16004
|
-
let xJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16000
|
+
fJ,
|
|
16001
|
+
yJ.colorSchemeSelector
|
|
16002
|
+
]), SJ = true;
|
|
16003
|
+
(z || nJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === aJ) && (SJ = false);
|
|
16004
|
+
let CJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16005
16005
|
children: [
|
|
16006
16006
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16007
|
-
themeId:
|
|
16008
|
-
theme:
|
|
16007
|
+
themeId: tJ ? t : void 0,
|
|
16008
|
+
theme: yJ,
|
|
16009
16009
|
children: d2
|
|
16010
16010
|
}),
|
|
16011
|
-
|
|
16012
|
-
styles: ((_d =
|
|
16011
|
+
SJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16012
|
+
styles: ((_d = yJ.generateStyleSheets) == null ? void 0 : _d.call(yJ)) || []
|
|
16013
16013
|
})
|
|
16014
16014
|
]
|
|
16015
16015
|
});
|
|
16016
|
-
return $ ?
|
|
16017
|
-
value:
|
|
16018
|
-
children:
|
|
16016
|
+
return $ ? CJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16017
|
+
value: xJ,
|
|
16018
|
+
children: CJ
|
|
16019
16019
|
});
|
|
16020
16020
|
}
|
|
16021
16021
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17515,10 +17515,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17515
17515
|
let n = useDefaultProps({
|
|
17516
17516
|
props: e,
|
|
17517
17517
|
name: "MuiInputBase"
|
|
17518
|
-
}), { "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:
|
|
17519
|
-
}, []),
|
|
17518
|
+
}), { "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: eJ, onKeyDown: tJ, onKeyUp: nJ, placeholder: rJ, readOnly: iJ, renderSuffix: aJ, rows: oJ, size: sJ, slotProps: cJ = {}, slots: lJ = {}, startAdornment: uJ, type: dJ = "text", value: fJ, ...pJ } = n, mJ = A.value == null ? fJ : A.value, { current: hJ } = import_react.useRef(mJ != null), gJ = import_react.useRef(), _J = import_react.useCallback((e2) => {
|
|
17519
|
+
}, []), vJ = useForkRef_default(gJ, M, A.ref, _J), [yJ, bJ] = import_react.useState(false), xJ = useFormControl(), SJ = formControlState({
|
|
17520
17520
|
props: n,
|
|
17521
|
-
muiFormControl:
|
|
17521
|
+
muiFormControl: xJ,
|
|
17522
17522
|
states: [
|
|
17523
17523
|
"color",
|
|
17524
17524
|
"disabled",
|
|
@@ -17529,145 +17529,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17529
17529
|
"filled"
|
|
17530
17530
|
]
|
|
17531
17531
|
});
|
|
17532
|
-
|
|
17533
|
-
!
|
|
17532
|
+
SJ.focused = xJ ? xJ.focused : yJ, import_react.useEffect(() => {
|
|
17533
|
+
!xJ && _ && yJ && (bJ(false), J && J());
|
|
17534
17534
|
}, [
|
|
17535
|
-
|
|
17535
|
+
xJ,
|
|
17536
17536
|
_,
|
|
17537
|
-
|
|
17537
|
+
yJ,
|
|
17538
17538
|
J
|
|
17539
17539
|
]);
|
|
17540
|
-
let
|
|
17541
|
-
isFilled(e2) ?
|
|
17540
|
+
let CJ = xJ && xJ.onFilled, wJ = xJ && xJ.onEmpty, TJ = import_react.useCallback((e2) => {
|
|
17541
|
+
isFilled(e2) ? CJ && CJ() : wJ && wJ();
|
|
17542
17542
|
}, [
|
|
17543
|
-
|
|
17544
|
-
|
|
17543
|
+
CJ,
|
|
17544
|
+
wJ
|
|
17545
17545
|
]);
|
|
17546
17546
|
useEnhancedEffect_default$1(() => {
|
|
17547
|
-
|
|
17548
|
-
value:
|
|
17547
|
+
hJ && TJ({
|
|
17548
|
+
value: mJ
|
|
17549
17549
|
});
|
|
17550
17550
|
}, [
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17551
|
+
mJ,
|
|
17552
|
+
TJ,
|
|
17553
|
+
hJ
|
|
17554
17554
|
]);
|
|
17555
|
-
let
|
|
17556
|
-
|
|
17557
|
-
},
|
|
17558
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17559
|
-
},
|
|
17560
|
-
if (!
|
|
17561
|
-
let t3 = e2.target ||
|
|
17555
|
+
let EJ = (e2) => {
|
|
17556
|
+
eJ && eJ(e2), A.onFocus && A.onFocus(e2), xJ && xJ.onFocus ? xJ.onFocus(e2) : bJ(true);
|
|
17557
|
+
}, DJ = (e2) => {
|
|
17558
|
+
J && J(e2), A.onBlur && A.onBlur(e2), xJ && xJ.onBlur ? xJ.onBlur(e2) : bJ(false);
|
|
17559
|
+
}, OJ = (e2, ...t2) => {
|
|
17560
|
+
if (!hJ) {
|
|
17561
|
+
let t3 = e2.target || gJ.current;
|
|
17562
17562
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17563
|
-
|
|
17563
|
+
TJ({
|
|
17564
17564
|
value: t3.value
|
|
17565
17565
|
});
|
|
17566
17566
|
}
|
|
17567
17567
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17568
17568
|
};
|
|
17569
17569
|
import_react.useEffect(() => {
|
|
17570
|
-
|
|
17570
|
+
TJ(gJ.current);
|
|
17571
17571
|
}, []);
|
|
17572
|
-
let
|
|
17573
|
-
|
|
17574
|
-
},
|
|
17575
|
-
K &&
|
|
17572
|
+
let kJ = (e2) => {
|
|
17573
|
+
gJ.current && e2.currentTarget === e2.target && gJ.current.focus(), $ && $(e2);
|
|
17574
|
+
}, AJ = O, jJ = A;
|
|
17575
|
+
K && AJ === "input" && (jJ = oJ ? {
|
|
17576
17576
|
type: void 0,
|
|
17577
|
-
minRows:
|
|
17578
|
-
maxRows:
|
|
17579
|
-
...
|
|
17577
|
+
minRows: oJ,
|
|
17578
|
+
maxRows: oJ,
|
|
17579
|
+
...jJ
|
|
17580
17580
|
} : {
|
|
17581
17581
|
type: void 0,
|
|
17582
17582
|
maxRows: z,
|
|
17583
17583
|
minRows: U,
|
|
17584
|
-
...
|
|
17585
|
-
},
|
|
17586
|
-
let
|
|
17587
|
-
|
|
17584
|
+
...jJ
|
|
17585
|
+
}, AJ = TextareaAutosize_default);
|
|
17586
|
+
let MJ = (e2) => {
|
|
17587
|
+
TJ(e2.animationName === "mui-auto-fill-cancel" ? gJ.current : {
|
|
17588
17588
|
value: "x"
|
|
17589
17589
|
});
|
|
17590
17590
|
};
|
|
17591
17591
|
import_react.useEffect(() => {
|
|
17592
|
-
|
|
17592
|
+
xJ && xJ.setAdornedStart(!!uJ);
|
|
17593
17593
|
}, [
|
|
17594
|
-
|
|
17595
|
-
|
|
17594
|
+
xJ,
|
|
17595
|
+
uJ
|
|
17596
17596
|
]);
|
|
17597
|
-
let
|
|
17597
|
+
let NJ = {
|
|
17598
17598
|
...n,
|
|
17599
|
-
color:
|
|
17600
|
-
disabled:
|
|
17599
|
+
color: SJ.color || "primary",
|
|
17600
|
+
disabled: SJ.disabled,
|
|
17601
17601
|
endAdornment: y,
|
|
17602
|
-
error:
|
|
17603
|
-
focused:
|
|
17604
|
-
formControl:
|
|
17602
|
+
error: SJ.error,
|
|
17603
|
+
focused: SJ.focused,
|
|
17604
|
+
formControl: xJ,
|
|
17605
17605
|
fullWidth: w,
|
|
17606
|
-
hiddenLabel:
|
|
17606
|
+
hiddenLabel: SJ.hiddenLabel,
|
|
17607
17607
|
multiline: K,
|
|
17608
|
-
size:
|
|
17609
|
-
startAdornment:
|
|
17610
|
-
type:
|
|
17611
|
-
},
|
|
17612
|
-
return
|
|
17613
|
-
...
|
|
17614
|
-
...
|
|
17608
|
+
size: SJ.size,
|
|
17609
|
+
startAdornment: uJ,
|
|
17610
|
+
type: dJ
|
|
17611
|
+
}, PJ = useUtilityClasses(NJ), FJ = lJ.root || d.Root || InputBaseRoot, IJ = cJ.root || f.root || {}, LJ = lJ.input || d.Input || InputBaseInput;
|
|
17612
|
+
return jJ = {
|
|
17613
|
+
...jJ,
|
|
17614
|
+
...cJ.input ?? f.input
|
|
17615
17615
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17616
17616
|
children: [
|
|
17617
17617
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17618
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17619
|
-
...
|
|
17618
|
+
(0, import_jsx_runtime.jsxs)(FJ, {
|
|
17619
|
+
...IJ,
|
|
17620
17620
|
ref: t,
|
|
17621
|
-
onClick:
|
|
17622
|
-
...
|
|
17623
|
-
...!isHostComponent_default(
|
|
17621
|
+
onClick: kJ,
|
|
17622
|
+
...pJ,
|
|
17623
|
+
...!isHostComponent_default(FJ) && {
|
|
17624
17624
|
ownerState: {
|
|
17625
|
-
...
|
|
17626
|
-
...
|
|
17625
|
+
...NJ,
|
|
17626
|
+
...IJ.ownerState
|
|
17627
17627
|
}
|
|
17628
17628
|
},
|
|
17629
|
-
className: clsx_default(
|
|
17629
|
+
className: clsx_default(PJ.root, IJ.className, s, iJ && "MuiInputBase-readOnly"),
|
|
17630
17630
|
children: [
|
|
17631
|
-
|
|
17631
|
+
uJ,
|
|
17632
17632
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17633
17633
|
value: null,
|
|
17634
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17635
|
-
"aria-invalid":
|
|
17634
|
+
children: (0, import_jsx_runtime.jsx)(LJ, {
|
|
17635
|
+
"aria-invalid": SJ.error,
|
|
17636
17636
|
"aria-describedby": i,
|
|
17637
17637
|
autoComplete: a,
|
|
17638
17638
|
autoFocus: o,
|
|
17639
17639
|
defaultValue: h,
|
|
17640
|
-
disabled:
|
|
17640
|
+
disabled: SJ.disabled,
|
|
17641
17641
|
id: E,
|
|
17642
|
-
onAnimationStart:
|
|
17642
|
+
onAnimationStart: MJ,
|
|
17643
17643
|
name: q,
|
|
17644
|
-
placeholder:
|
|
17645
|
-
readOnly:
|
|
17646
|
-
required:
|
|
17647
|
-
rows:
|
|
17648
|
-
value:
|
|
17649
|
-
onKeyDown:
|
|
17650
|
-
onKeyUp:
|
|
17651
|
-
type:
|
|
17652
|
-
...
|
|
17653
|
-
...!isHostComponent_default(
|
|
17654
|
-
as:
|
|
17644
|
+
placeholder: rJ,
|
|
17645
|
+
readOnly: iJ,
|
|
17646
|
+
required: SJ.required,
|
|
17647
|
+
rows: oJ,
|
|
17648
|
+
value: mJ,
|
|
17649
|
+
onKeyDown: tJ,
|
|
17650
|
+
onKeyUp: nJ,
|
|
17651
|
+
type: dJ,
|
|
17652
|
+
...jJ,
|
|
17653
|
+
...!isHostComponent_default(LJ) && {
|
|
17654
|
+
as: AJ,
|
|
17655
17655
|
ownerState: {
|
|
17656
|
-
...
|
|
17657
|
-
...
|
|
17656
|
+
...NJ,
|
|
17657
|
+
...jJ.ownerState
|
|
17658
17658
|
}
|
|
17659
17659
|
},
|
|
17660
|
-
ref:
|
|
17661
|
-
className: clsx_default(
|
|
17662
|
-
onBlur:
|
|
17663
|
-
onChange:
|
|
17664
|
-
onFocus:
|
|
17660
|
+
ref: vJ,
|
|
17661
|
+
className: clsx_default(PJ.input, jJ.className, iJ && "MuiInputBase-readOnly"),
|
|
17662
|
+
onBlur: DJ,
|
|
17663
|
+
onChange: OJ,
|
|
17664
|
+
onFocus: EJ
|
|
17665
17665
|
})
|
|
17666
17666
|
}),
|
|
17667
17667
|
y,
|
|
17668
|
-
|
|
17669
|
-
...
|
|
17670
|
-
startAdornment:
|
|
17668
|
+
aJ ? aJ({
|
|
17669
|
+
...SJ,
|
|
17670
|
+
startAdornment: uJ
|
|
17671
17671
|
}) : null
|
|
17672
17672
|
]
|
|
17673
17673
|
})
|
|
@@ -18743,30 +18743,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18743
18743
|
M,
|
|
18744
18744
|
i,
|
|
18745
18745
|
a
|
|
18746
|
-
]), 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),
|
|
18747
|
-
|
|
18746
|
+
]), 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), eJ = useTextColor(), tJ = useJsonViewerStore((e2) => e2.colorspace.base0C), nJ = useJsonViewerStore((e2) => e2.colorspace.base0A), rJ = useJsonViewerStore((e2) => e2.displayComma), iJ = useJsonViewerStore((e2) => e2.quotesOnKeys), aJ = useJsonViewerStore((e2) => e2.rootName), oJ = U === t, sJ = Number.isInteger(Number(A)), cJ = useJsonViewerStore((e2) => e2.enableAdd), lJ = useJsonViewerStore((e2) => e2.onAdd), uJ = (0, import_react.useMemo)(() => !lJ || a !== void 0 || cJ === false || v === false ? false : typeof cJ == "function" ? !!cJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18747
|
+
lJ,
|
|
18748
18748
|
a,
|
|
18749
18749
|
i,
|
|
18750
|
-
|
|
18750
|
+
cJ,
|
|
18751
18751
|
v,
|
|
18752
18752
|
t
|
|
18753
|
-
]),
|
|
18754
|
-
|
|
18753
|
+
]), dJ = useJsonViewerStore((e2) => e2.enableDelete), fJ = useJsonViewerStore((e2) => e2.onDelete), pJ = (0, import_react.useMemo)(() => !fJ || a !== void 0 || oJ || dJ === false || v === false ? false : typeof dJ == "function" ? !!dJ(i, t) : dJ, [
|
|
18754
|
+
fJ,
|
|
18755
18755
|
a,
|
|
18756
|
-
|
|
18756
|
+
oJ,
|
|
18757
18757
|
i,
|
|
18758
|
-
|
|
18758
|
+
dJ,
|
|
18759
18759
|
v,
|
|
18760
18760
|
t
|
|
18761
|
-
]),
|
|
18762
|
-
|
|
18761
|
+
]), mJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: hJ, copied: gJ } = useClipboard(), _J = useJsonViewerStore((e2) => e2.highlightUpdates), vJ = (0, import_react.useMemo)(() => !_J || 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, [
|
|
18762
|
+
_J,
|
|
18763
18763
|
n,
|
|
18764
18764
|
t
|
|
18765
|
-
]),
|
|
18765
|
+
]), yJ = (0, import_react.useRef)();
|
|
18766
18766
|
(0, import_react.useEffect)(() => {
|
|
18767
|
-
|
|
18767
|
+
yJ.current && vJ && "animate" in yJ.current && yJ.current.animate([
|
|
18768
18768
|
{
|
|
18769
|
-
backgroundColor:
|
|
18769
|
+
backgroundColor: nJ
|
|
18770
18770
|
},
|
|
18771
18771
|
{
|
|
18772
18772
|
backgroundColor: ""
|
|
@@ -18776,22 +18776,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18776
18776
|
easing: "ease-in"
|
|
18777
18777
|
});
|
|
18778
18778
|
}, [
|
|
18779
|
-
|
|
18780
|
-
|
|
18779
|
+
nJ,
|
|
18780
|
+
vJ,
|
|
18781
18781
|
n,
|
|
18782
18782
|
t
|
|
18783
18783
|
]);
|
|
18784
|
-
let
|
|
18784
|
+
let bJ = (0, import_react.useCallback)((e2) => {
|
|
18785
18785
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18786
18786
|
}, [
|
|
18787
18787
|
h,
|
|
18788
18788
|
t
|
|
18789
|
-
]),
|
|
18789
|
+
]), xJ = (0, import_react.useCallback)(() => {
|
|
18790
18790
|
Q(false), E("");
|
|
18791
18791
|
}, [
|
|
18792
18792
|
Q,
|
|
18793
18793
|
E
|
|
18794
|
-
]),
|
|
18794
|
+
]), SJ = (0, import_react.useCallback)((e2) => {
|
|
18795
18795
|
if (Q(false), _) try {
|
|
18796
18796
|
$(i, t, _(e2));
|
|
18797
18797
|
} catch {
|
|
@@ -18802,14 +18802,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18802
18802
|
$,
|
|
18803
18803
|
i,
|
|
18804
18804
|
t
|
|
18805
|
-
]),
|
|
18805
|
+
]), CJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18806
18806
|
children: [
|
|
18807
18807
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18808
18808
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18809
18809
|
sx: {
|
|
18810
18810
|
fontSize: ".8rem"
|
|
18811
18811
|
},
|
|
18812
|
-
onClick:
|
|
18812
|
+
onClick: xJ
|
|
18813
18813
|
})
|
|
18814
18814
|
}),
|
|
18815
18815
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18817,22 +18817,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18817
18817
|
sx: {
|
|
18818
18818
|
fontSize: ".8rem"
|
|
18819
18819
|
},
|
|
18820
|
-
onClick: () =>
|
|
18820
|
+
onClick: () => SJ(w)
|
|
18821
18821
|
})
|
|
18822
18822
|
})
|
|
18823
18823
|
]
|
|
18824
18824
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18825
18825
|
children: [
|
|
18826
|
-
|
|
18826
|
+
mJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18827
18827
|
onClick: (e2) => {
|
|
18828
18828
|
e2.preventDefault();
|
|
18829
18829
|
try {
|
|
18830
|
-
|
|
18830
|
+
hJ(i, t, copyString);
|
|
18831
18831
|
} catch (e3) {
|
|
18832
18832
|
console.error(e3);
|
|
18833
18833
|
}
|
|
18834
18834
|
},
|
|
18835
|
-
children:
|
|
18835
|
+
children: gJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18836
18836
|
sx: {
|
|
18837
18837
|
fontSize: ".8rem"
|
|
18838
18838
|
}
|
|
@@ -18843,16 +18843,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18843
18843
|
})
|
|
18844
18844
|
}),
|
|
18845
18845
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18846
|
-
onClick:
|
|
18846
|
+
onClick: bJ,
|
|
18847
18847
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18848
18848
|
sx: {
|
|
18849
18849
|
fontSize: ".8rem"
|
|
18850
18850
|
}
|
|
18851
18851
|
})
|
|
18852
18852
|
}),
|
|
18853
|
-
|
|
18853
|
+
uJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18854
18854
|
onClick: (e2) => {
|
|
18855
|
-
e2.preventDefault(),
|
|
18855
|
+
e2.preventDefault(), lJ == null ? void 0 : lJ(i);
|
|
18856
18856
|
},
|
|
18857
18857
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18858
18858
|
sx: {
|
|
@@ -18860,9 +18860,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18860
18860
|
}
|
|
18861
18861
|
})
|
|
18862
18862
|
}),
|
|
18863
|
-
|
|
18863
|
+
pJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18864
18864
|
onClick: (e2) => {
|
|
18865
|
-
e2.preventDefault(),
|
|
18865
|
+
e2.preventDefault(), fJ == null ? void 0 : fJ(i, t);
|
|
18866
18866
|
},
|
|
18867
18867
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18868
18868
|
sx: {
|
|
@@ -18875,24 +18875,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18875
18875
|
f,
|
|
18876
18876
|
h,
|
|
18877
18877
|
_,
|
|
18878
|
-
|
|
18879
|
-
|
|
18878
|
+
gJ,
|
|
18879
|
+
hJ,
|
|
18880
18880
|
S,
|
|
18881
18881
|
J,
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18882
|
+
mJ,
|
|
18883
|
+
uJ,
|
|
18884
|
+
pJ,
|
|
18885
18885
|
w,
|
|
18886
18886
|
i,
|
|
18887
18887
|
t,
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
]),
|
|
18888
|
+
lJ,
|
|
18889
|
+
fJ,
|
|
18890
|
+
bJ,
|
|
18891
|
+
xJ,
|
|
18892
|
+
SJ
|
|
18893
|
+
]), wJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18894
18894
|
t
|
|
18895
|
-
]),
|
|
18895
|
+
]), TJ = !wJ && !!(c && d), EJ = useJsonViewerStore((e2) => e2.keyRenderer), DJ = (0, import_react.useMemo)(() => ({
|
|
18896
18896
|
path: i,
|
|
18897
18897
|
inspect: K,
|
|
18898
18898
|
setInspect: q,
|
|
@@ -18924,18 +18924,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18924
18924
|
className: "data-key",
|
|
18925
18925
|
sx: {
|
|
18926
18926
|
lineHeight: 1.5,
|
|
18927
|
-
color:
|
|
18927
|
+
color: eJ,
|
|
18928
18928
|
letterSpacing: 0.5,
|
|
18929
18929
|
opacity: 0.8
|
|
18930
18930
|
},
|
|
18931
18931
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18932
|
-
e2.isDefaultPrevented() ||
|
|
18932
|
+
e2.isDefaultPrevented() || wJ || q((e3) => !e3);
|
|
18933
18933
|
}, [
|
|
18934
|
-
|
|
18934
|
+
wJ,
|
|
18935
18935
|
q
|
|
18936
18936
|
]),
|
|
18937
18937
|
children: [
|
|
18938
|
-
|
|
18938
|
+
TJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18939
18939
|
className: "data-key-toggle-expanded",
|
|
18940
18940
|
sx: {
|
|
18941
18941
|
fontSize: ".8rem",
|
|
@@ -18953,27 +18953,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18953
18953
|
}
|
|
18954
18954
|
}) : null,
|
|
18955
18955
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18956
|
-
ref:
|
|
18956
|
+
ref: yJ,
|
|
18957
18957
|
className: "data-key-key",
|
|
18958
18958
|
component: "span",
|
|
18959
|
-
children:
|
|
18959
|
+
children: oJ && O === 0 ? aJ === false ? null : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18960
18960
|
children: [
|
|
18961
18961
|
'"',
|
|
18962
|
-
|
|
18962
|
+
aJ,
|
|
18963
18963
|
'"'
|
|
18964
18964
|
]
|
|
18965
18965
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18966
|
-
children:
|
|
18967
|
-
}) :
|
|
18968
|
-
...
|
|
18969
|
-
}) : a === void 0 && (
|
|
18966
|
+
children: aJ
|
|
18967
|
+
}) : EJ.when(DJ) ? (0, import_jsx_runtime.jsx)(EJ, {
|
|
18968
|
+
...DJ
|
|
18969
|
+
}) : a === void 0 && (sJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18970
18970
|
component: "span",
|
|
18971
18971
|
style: {
|
|
18972
|
-
color:
|
|
18973
|
-
userSelect:
|
|
18972
|
+
color: tJ,
|
|
18973
|
+
userSelect: sJ ? "none" : "auto"
|
|
18974
18974
|
},
|
|
18975
18975
|
children: A
|
|
18976
|
-
}) :
|
|
18976
|
+
}) : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18977
18977
|
children: [
|
|
18978
18978
|
'"',
|
|
18979
18979
|
A,
|
|
@@ -18983,7 +18983,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18983
18983
|
children: A
|
|
18984
18984
|
}))
|
|
18985
18985
|
}),
|
|
18986
|
-
|
|
18986
|
+
oJ ? aJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18987
18987
|
className: "data-key-colon",
|
|
18988
18988
|
sx: {
|
|
18989
18989
|
mr: 0.5
|
|
@@ -18996,38 +18996,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18996
18996
|
".data-key-key:empty + &": {
|
|
18997
18997
|
display: "none"
|
|
18998
18998
|
},
|
|
18999
|
-
userSelect:
|
|
18999
|
+
userSelect: sJ ? "none" : "auto"
|
|
19000
19000
|
},
|
|
19001
19001
|
children: ":"
|
|
19002
19002
|
}),
|
|
19003
19003
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19004
|
-
...
|
|
19004
|
+
...DJ
|
|
19005
19005
|
}),
|
|
19006
|
-
I &&
|
|
19006
|
+
I && TJ && K && CJ
|
|
19007
19007
|
]
|
|
19008
19008
|
}),
|
|
19009
19009
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19010
19010
|
path: i,
|
|
19011
19011
|
value: w,
|
|
19012
19012
|
setValue: E,
|
|
19013
|
-
abortEditing:
|
|
19014
|
-
commitEditing:
|
|
19013
|
+
abortEditing: xJ,
|
|
19014
|
+
commitEditing: SJ
|
|
19015
19015
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19016
|
-
...
|
|
19016
|
+
...DJ
|
|
19017
19017
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19018
19018
|
component: "span",
|
|
19019
19019
|
className: "data-value-fallback",
|
|
19020
19020
|
children: `fallback: ${t}`
|
|
19021
19021
|
}),
|
|
19022
19022
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19023
|
-
...
|
|
19023
|
+
...DJ
|
|
19024
19024
|
}),
|
|
19025
|
-
!o &&
|
|
19025
|
+
!o && rJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19026
19026
|
children: ","
|
|
19027
19027
|
}),
|
|
19028
|
-
I &&
|
|
19029
|
-
I && !
|
|
19030
|
-
!I && J &&
|
|
19028
|
+
I && TJ && !K && CJ,
|
|
19029
|
+
I && !TJ && CJ,
|
|
19030
|
+
!I && J && CJ
|
|
19031
19031
|
]
|
|
19032
19032
|
});
|
|
19033
19033
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19542,20 +19542,20 @@ ${n}` : "Please fix this error.";
|
|
|
19542
19542
|
}
|
|
19543
19543
|
}), t2 == null ? void 0 : t2.focus();
|
|
19544
19544
|
}, t[5] = i, t[6] = c, t[7] = S, t[8] = v, t[9] = s, t[10] = w) : w = t[10];
|
|
19545
|
-
let E = w,
|
|
19546
|
-
t[11] !== i || t[12] !== y ? (
|
|
19545
|
+
let E = w, O;
|
|
19546
|
+
t[11] !== i || t[12] !== y ? (O = () => {
|
|
19547
19547
|
y({
|
|
19548
19548
|
prompt: buildFixInChatPrompt(i)
|
|
19549
19549
|
});
|
|
19550
|
-
}, t[11] = i, t[12] = y, t[13] =
|
|
19551
|
-
let
|
|
19552
|
-
t[14] === o ?
|
|
19553
|
-
let
|
|
19554
|
-
t[16] !== S.description || t[17] !== S.fixType || t[18] !== S.title || t[19] !== E || t[20] !==
|
|
19550
|
+
}, t[11] = i, t[12] = y, t[13] = O) : O = t[13];
|
|
19551
|
+
let A = O, M;
|
|
19552
|
+
t[14] === o ? M = t[15] : (M = cn("my-2", o), t[14] = o, t[15] = M);
|
|
19553
|
+
let I;
|
|
19554
|
+
t[16] !== S.description || t[17] !== S.fixType || t[18] !== S.title || t[19] !== E || t[20] !== A ? (I = S.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
19555
19555
|
tooltip: S.description,
|
|
19556
19556
|
openPrompt: () => E(false),
|
|
19557
19557
|
applyAutofix: () => E(true),
|
|
19558
|
-
openChat:
|
|
19558
|
+
openChat: A
|
|
19559
19559
|
}) : (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
19560
19560
|
content: S.description,
|
|
19561
19561
|
align: "start",
|
|
@@ -19571,12 +19571,12 @@ ${n}` : "Please fix this error.";
|
|
|
19571
19571
|
S.title
|
|
19572
19572
|
]
|
|
19573
19573
|
})
|
|
19574
|
-
}), t[16] = S.description, t[17] = S.fixType, t[18] = S.title, t[19] = E, t[20] =
|
|
19575
|
-
let
|
|
19576
|
-
return t[22] !==
|
|
19577
|
-
className:
|
|
19578
|
-
children:
|
|
19579
|
-
}), t[22] =
|
|
19574
|
+
}), t[16] = S.description, t[17] = S.fixType, t[18] = S.title, t[19] = E, t[20] = A, t[21] = I) : I = t[21];
|
|
19575
|
+
let z;
|
|
19576
|
+
return t[22] !== M || t[23] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
|
|
19577
|
+
className: M,
|
|
19578
|
+
children: I
|
|
19579
|
+
}), t[22] = M, t[23] = I, t[24] = z) : z = t[24], z;
|
|
19580
19580
|
};
|
|
19581
19581
|
var MODE_CONFIG = {
|
|
19582
19582
|
autofix: {
|
|
@@ -20113,18 +20113,18 @@ ${n}` : "Please fix this error.";
|
|
|
20113
20113
|
}
|
|
20114
20114
|
let y, S, w, E, O, A;
|
|
20115
20115
|
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) {
|
|
20116
|
-
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),
|
|
20117
|
-
t[17] === s ?
|
|
20116
|
+
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), Q = n.filter(_temp13), $ = n.filter(_temp14), eJ = n.filter(_temp15), tJ = n.filter(_temp16), nJ = n.filter(_temp17), rJ = n.filter(_temp18), iJ;
|
|
20117
|
+
t[17] === s ? iJ = t[18] : (iJ = () => {
|
|
20118
20118
|
s.openApplication("scratchpad");
|
|
20119
|
-
}, t[17] = s, t[18] =
|
|
20120
|
-
let
|
|
20119
|
+
}, t[17] = s, t[18] = iJ);
|
|
20120
|
+
let aJ = iJ, oJ = () => {
|
|
20121
20121
|
let t2 = [];
|
|
20122
|
-
if (
|
|
20123
|
-
let e3 =
|
|
20122
|
+
if (tJ.length > 0 || nJ.length > 0) {
|
|
20123
|
+
let e3 = tJ.some(_temp19), n2 = !e3 && tJ.some(_temp20);
|
|
20124
20124
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20125
20125
|
children: [
|
|
20126
|
-
|
|
20127
|
-
|
|
20126
|
+
tJ.map(_temp21),
|
|
20127
|
+
nJ.map(_temp22),
|
|
20128
20128
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20129
20129
|
size: "xs",
|
|
20130
20130
|
variant: "outline",
|
|
@@ -20155,8 +20155,8 @@ ${n}` : "Please fix this error.";
|
|
|
20155
20155
|
}),
|
|
20156
20156
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20157
20157
|
errors: [
|
|
20158
|
-
...
|
|
20159
|
-
|
|
20158
|
+
...tJ,
|
|
20159
|
+
...nJ
|
|
20160
20160
|
],
|
|
20161
20161
|
cellId: i
|
|
20162
20162
|
})
|
|
@@ -20317,7 +20317,7 @@ ${n}` : "Please fix this error.";
|
|
|
20317
20317
|
size: "xs",
|
|
20318
20318
|
variant: "link",
|
|
20319
20319
|
className: "my-2 font-normal mx-0 px-0",
|
|
20320
|
-
onClick:
|
|
20320
|
+
onClick: aJ,
|
|
20321
20321
|
children: [
|
|
20322
20322
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20323
20323
|
className: "h-3"
|
|
@@ -20492,42 +20492,42 @@ ${n}` : "Please fix this error.";
|
|
|
20492
20492
|
children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
20493
20493
|
})
|
|
20494
20494
|
]
|
|
20495
|
-
}, "strict-exception")),
|
|
20495
|
+
}, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20496
20496
|
children: [
|
|
20497
|
-
|
|
20497
|
+
Q.map(_temp32),
|
|
20498
20498
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20499
|
-
errors:
|
|
20499
|
+
errors: Q,
|
|
20500
20500
|
cellId: i
|
|
20501
20501
|
})
|
|
20502
20502
|
]
|
|
20503
|
-
}, "internal")),
|
|
20503
|
+
}, "internal")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20504
20504
|
children: [
|
|
20505
|
-
|
|
20505
|
+
$.map(_temp33),
|
|
20506
20506
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20507
|
-
errors:
|
|
20507
|
+
errors: $,
|
|
20508
20508
|
cellId: i
|
|
20509
20509
|
})
|
|
20510
20510
|
]
|
|
20511
|
-
}, "ancestor-prevented")),
|
|
20511
|
+
}, "ancestor-prevented")), eJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20512
20512
|
children: [
|
|
20513
|
-
|
|
20513
|
+
eJ.map(_temp34),
|
|
20514
20514
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20515
|
-
errors:
|
|
20515
|
+
errors: eJ,
|
|
20516
20516
|
cellId: i
|
|
20517
20517
|
})
|
|
20518
20518
|
]
|
|
20519
|
-
}, "ancestor-stopped")),
|
|
20519
|
+
}, "ancestor-stopped")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20520
20520
|
children: [
|
|
20521
|
-
|
|
20521
|
+
rJ.map(_temp35),
|
|
20522
20522
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20523
|
-
errors:
|
|
20523
|
+
errors: rJ,
|
|
20524
20524
|
cellId: i,
|
|
20525
20525
|
className: "mt-2.5"
|
|
20526
20526
|
})
|
|
20527
20527
|
]
|
|
20528
20528
|
}, "sql-errors")), t2;
|
|
20529
|
-
},
|
|
20530
|
-
t[19] === v ?
|
|
20529
|
+
}, sJ;
|
|
20530
|
+
t[19] === v ? sJ = t[20] : (sJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20531
20531
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20532
20532
|
children: [
|
|
20533
20533
|
v,
|
|
@@ -20539,22 +20539,22 @@ ${n}` : "Please fix this error.";
|
|
|
20539
20539
|
})
|
|
20540
20540
|
})
|
|
20541
20541
|
]
|
|
20542
|
-
}), t[19] = v, t[20] =
|
|
20543
|
-
let
|
|
20544
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20542
|
+
}), t[19] = v, t[20] = sJ);
|
|
20543
|
+
let cJ;
|
|
20544
|
+
t[21] !== _ || t[22] !== d ? (cJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20545
20545
|
className: `font-code font-medium ${_}`,
|
|
20546
20546
|
children: d
|
|
20547
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20548
|
-
let
|
|
20549
|
-
t[24] !==
|
|
20547
|
+
}), t[21] = _, t[22] = d, t[23] = cJ) : cJ = t[23];
|
|
20548
|
+
let lJ;
|
|
20549
|
+
t[24] !== sJ || t[25] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20550
20550
|
className: "space-y-0.5",
|
|
20551
20551
|
children: [
|
|
20552
|
-
|
|
20553
|
-
|
|
20552
|
+
sJ,
|
|
20553
|
+
cJ
|
|
20554
20554
|
]
|
|
20555
|
-
}), t[24] =
|
|
20556
|
-
let
|
|
20557
|
-
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 =
|
|
20555
|
+
}), t[24] = sJ, t[25] = cJ, t[26] = lJ) : lJ = t[26];
|
|
20556
|
+
let uJ = lJ;
|
|
20557
|
+
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 = uJ, S = "flex flex-col gap-4", w = oJ(), 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;
|
|
20558
20558
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20559
20559
|
let M;
|
|
20560
20560
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -26612,7 +26612,7 @@ ${n}` : "Please fix this error.";
|
|
|
26612
26612
|
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 }) {
|
|
26613
26613
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26614
26614
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26615
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26615
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), eJ = (0, import_react.useRef)({
|
|
26616
26616
|
callbacks: {
|
|
26617
26617
|
onCollapse: f,
|
|
26618
26618
|
onExpand: h,
|
|
@@ -26632,12 +26632,12 @@ ${n}` : "Please fix this error.";
|
|
|
26632
26632
|
(0, import_react.useRef)({
|
|
26633
26633
|
didLogMissingDefaultSizeWarning: false
|
|
26634
26634
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26635
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26635
|
+
let { callbacks: e2, constraints: t2 } = eJ.current, o2 = {
|
|
26636
26636
|
...t2
|
|
26637
26637
|
};
|
|
26638
|
-
|
|
26638
|
+
eJ.current.id = $, eJ.current.idIsFromProps = s !== void 0, eJ.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(eJ.current, o2);
|
|
26639
26639
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26640
|
-
let e2 =
|
|
26640
|
+
let e2 = eJ.current;
|
|
26641
26641
|
return q(e2), () => {
|
|
26642
26642
|
Q(e2);
|
|
26643
26643
|
};
|
|
@@ -26648,25 +26648,25 @@ ${n}` : "Please fix this error.";
|
|
|
26648
26648
|
Q
|
|
26649
26649
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26650
26650
|
collapse: () => {
|
|
26651
|
-
O(
|
|
26651
|
+
O(eJ.current);
|
|
26652
26652
|
},
|
|
26653
26653
|
expand: (e2) => {
|
|
26654
|
-
A(
|
|
26654
|
+
A(eJ.current, e2);
|
|
26655
26655
|
},
|
|
26656
26656
|
getId() {
|
|
26657
26657
|
return $;
|
|
26658
26658
|
},
|
|
26659
26659
|
getSize() {
|
|
26660
|
-
return M(
|
|
26660
|
+
return M(eJ.current);
|
|
26661
26661
|
},
|
|
26662
26662
|
isCollapsed() {
|
|
26663
|
-
return U(
|
|
26663
|
+
return U(eJ.current);
|
|
26664
26664
|
},
|
|
26665
26665
|
isExpanded() {
|
|
26666
|
-
return !U(
|
|
26666
|
+
return !U(eJ.current);
|
|
26667
26667
|
},
|
|
26668
26668
|
resize: (e2) => {
|
|
26669
|
-
J(
|
|
26669
|
+
J(eJ.current, e2);
|
|
26670
26670
|
}
|
|
26671
26671
|
}), [
|
|
26672
26672
|
O,
|
|
@@ -26676,21 +26676,21 @@ ${n}` : "Please fix this error.";
|
|
|
26676
26676
|
$,
|
|
26677
26677
|
J
|
|
26678
26678
|
]);
|
|
26679
|
-
let
|
|
26679
|
+
let tJ = I(eJ.current, a);
|
|
26680
26680
|
return (0, import_react.createElement)(S, {
|
|
26681
26681
|
...w,
|
|
26682
26682
|
children: e,
|
|
26683
26683
|
className: t,
|
|
26684
26684
|
id: $,
|
|
26685
26685
|
style: {
|
|
26686
|
-
|
|
26686
|
+
...tJ,
|
|
26687
26687
|
...y
|
|
26688
26688
|
},
|
|
26689
26689
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26690
26690
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26691
26691
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26692
26692
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26693
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26693
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + tJ.flexGrow).toFixed(1)
|
|
26694
26694
|
});
|
|
26695
26695
|
}
|
|
26696
26696
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27475,13 +27475,13 @@ ${n}` : "Please fix this error.";
|
|
|
27475
27475
|
}, [
|
|
27476
27476
|
S,
|
|
27477
27477
|
E
|
|
27478
|
-
]),
|
|
27478
|
+
]), eJ = (0, import_react.useCallback)((e2) => {
|
|
27479
27479
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27480
27480
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27481
|
-
}, []),
|
|
27481
|
+
}, []), tJ = (0, import_react.useCallback)((e2) => {
|
|
27482
27482
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27483
27483
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27484
|
-
}, []),
|
|
27484
|
+
}, []), nJ = (0, import_react.useCallback)((e2) => {
|
|
27485
27485
|
let { panelDataArray: t2 } = K.current;
|
|
27486
27486
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27487
27487
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27513,7 +27513,7 @@ ${n}` : "Please fix this error.";
|
|
|
27513
27513
|
e2.layout = [];
|
|
27514
27514
|
};
|
|
27515
27515
|
}, []);
|
|
27516
|
-
let
|
|
27516
|
+
let rJ = (0, import_react.useCallback)((e2) => {
|
|
27517
27517
|
let t2 = false, n2 = y.current;
|
|
27518
27518
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27519
27519
|
n3.preventDefault();
|
|
@@ -27531,7 +27531,7 @@ ${n}` : "Please fix this error.";
|
|
|
27531
27531
|
}), I2 = !compareLayouts(f2, A2);
|
|
27532
27532
|
(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));
|
|
27533
27533
|
};
|
|
27534
|
-
}, []),
|
|
27534
|
+
}, []), iJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27535
27535
|
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);
|
|
27536
27536
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27537
27537
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27543,12 +27543,12 @@ ${n}` : "Please fix this error.";
|
|
|
27543
27543
|
trigger: "imperative-api"
|
|
27544
27544
|
});
|
|
27545
27545
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27546
|
-
}, []),
|
|
27546
|
+
}, []), aJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27547
27547
|
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);
|
|
27548
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27548
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || iJ(e2, s2) : h2 < f2 ? iJ(e2, f2) : h2 > d2 && iJ(e2, d2));
|
|
27549
27549
|
}, [
|
|
27550
|
-
|
|
27551
|
-
]),
|
|
27550
|
+
iJ
|
|
27551
|
+
]), oJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27552
27552
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27553
27553
|
if (!y.current) return;
|
|
27554
27554
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27560,14 +27560,14 @@ ${n}` : "Please fix this error.";
|
|
|
27560
27560
|
initialCursorPosition: o2,
|
|
27561
27561
|
initialLayout: i2
|
|
27562
27562
|
});
|
|
27563
|
-
}, []),
|
|
27563
|
+
}, []), sJ = (0, import_react.useCallback)(() => {
|
|
27564
27564
|
w(null);
|
|
27565
|
-
}, []),
|
|
27565
|
+
}, []), cJ = (0, import_react.useCallback)((e2) => {
|
|
27566
27566
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27567
27567
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27568
27568
|
}, [
|
|
27569
27569
|
A
|
|
27570
|
-
]),
|
|
27570
|
+
]), lJ = (0, import_react.useMemo)(() => ({
|
|
27571
27571
|
collapsePanel: q,
|
|
27572
27572
|
direction: i,
|
|
27573
27573
|
dragState: S,
|
|
@@ -27575,15 +27575,15 @@ ${n}` : "Please fix this error.";
|
|
|
27575
27575
|
getPanelSize: Q,
|
|
27576
27576
|
getPanelStyle: $,
|
|
27577
27577
|
groupId: v,
|
|
27578
|
-
isPanelCollapsed:
|
|
27579
|
-
isPanelExpanded:
|
|
27580
|
-
reevaluatePanelConstraints:
|
|
27581
|
-
registerPanel:
|
|
27582
|
-
registerResizeHandle:
|
|
27583
|
-
resizePanel:
|
|
27584
|
-
startDragging:
|
|
27585
|
-
stopDragging:
|
|
27586
|
-
unregisterPanel:
|
|
27578
|
+
isPanelCollapsed: eJ,
|
|
27579
|
+
isPanelExpanded: tJ,
|
|
27580
|
+
reevaluatePanelConstraints: aJ,
|
|
27581
|
+
registerPanel: nJ,
|
|
27582
|
+
registerResizeHandle: rJ,
|
|
27583
|
+
resizePanel: iJ,
|
|
27584
|
+
startDragging: oJ,
|
|
27585
|
+
stopDragging: sJ,
|
|
27586
|
+
unregisterPanel: cJ,
|
|
27587
27587
|
panelGroupElement: y.current
|
|
27588
27588
|
}), [
|
|
27589
27589
|
q,
|
|
@@ -27593,16 +27593,16 @@ ${n}` : "Please fix this error.";
|
|
|
27593
27593
|
Q,
|
|
27594
27594
|
$,
|
|
27595
27595
|
v,
|
|
27596
|
-
Qq,
|
|
27597
|
-
$q,
|
|
27598
|
-
rJ,
|
|
27599
27596
|
eJ,
|
|
27600
27597
|
tJ,
|
|
27598
|
+
aJ,
|
|
27601
27599
|
nJ,
|
|
27600
|
+
rJ,
|
|
27602
27601
|
iJ,
|
|
27603
|
-
|
|
27604
|
-
|
|
27605
|
-
|
|
27602
|
+
oJ,
|
|
27603
|
+
sJ,
|
|
27604
|
+
cJ
|
|
27605
|
+
]), uJ = {
|
|
27606
27606
|
display: "flex",
|
|
27607
27607
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27608
27608
|
height: "100%",
|
|
@@ -27610,7 +27610,7 @@ ${n}` : "Please fix this error.";
|
|
|
27610
27610
|
width: "100%"
|
|
27611
27611
|
};
|
|
27612
27612
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27613
|
-
value:
|
|
27613
|
+
value: lJ
|
|
27614
27614
|
}, (0, import_react.createElement)(h, {
|
|
27615
27615
|
..._,
|
|
27616
27616
|
children: t,
|
|
@@ -27618,7 +27618,7 @@ ${n}` : "Please fix this error.";
|
|
|
27618
27618
|
id: o,
|
|
27619
27619
|
ref: y,
|
|
27620
27620
|
style: {
|
|
27621
|
-
...
|
|
27621
|
+
...uJ,
|
|
27622
27622
|
...f
|
|
27623
27623
|
},
|
|
27624
27624
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27695,31 +27695,31 @@ ${n}` : "Please fix this error.";
|
|
|
27695
27695
|
});
|
|
27696
27696
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27697
27697
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27698
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27698
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, eJ] = (0, import_react.useState)(false), [tJ, nJ] = (0, import_react.useState)(null), rJ = (0, import_react.useRef)({
|
|
27699
27699
|
state: J
|
|
27700
27700
|
});
|
|
27701
27701
|
useIsomorphicLayoutEffect$1(() => {
|
|
27702
|
-
|
|
27702
|
+
rJ.current.state = J;
|
|
27703
27703
|
}), (0, import_react.useEffect)(() => {
|
|
27704
|
-
if (n)
|
|
27704
|
+
if (n) nJ(null);
|
|
27705
27705
|
else {
|
|
27706
27706
|
let e2 = I(q);
|
|
27707
|
-
|
|
27707
|
+
nJ(() => e2);
|
|
27708
27708
|
}
|
|
27709
27709
|
}, [
|
|
27710
27710
|
n,
|
|
27711
27711
|
q,
|
|
27712
27712
|
I
|
|
27713
27713
|
]);
|
|
27714
|
-
let
|
|
27714
|
+
let iJ = (i == null ? void 0 : i.coarse) ?? 15, aJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27715
27715
|
(0, import_react.useEffect)(() => {
|
|
27716
|
-
if (n ||
|
|
27716
|
+
if (n || tJ == null) return;
|
|
27717
27717
|
let e2 = w.current;
|
|
27718
27718
|
assert(e2, "Element ref not attached");
|
|
27719
27719
|
let t2 = false;
|
|
27720
27720
|
return registerResizeHandle(q, e2, A, {
|
|
27721
|
-
coarse:
|
|
27722
|
-
fine:
|
|
27721
|
+
coarse: iJ,
|
|
27722
|
+
fine: aJ
|
|
27723
27723
|
}, (e3, n2, i2) => {
|
|
27724
27724
|
if (!n2) {
|
|
27725
27725
|
Q("inactive");
|
|
@@ -27733,8 +27733,8 @@ ${n}` : "Please fix this error.";
|
|
|
27733
27733
|
break;
|
|
27734
27734
|
}
|
|
27735
27735
|
case "move": {
|
|
27736
|
-
let { state: e4 } =
|
|
27737
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27736
|
+
let { state: e4 } = rJ.current;
|
|
27737
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), tJ(i2);
|
|
27738
27738
|
break;
|
|
27739
27739
|
}
|
|
27740
27740
|
case "up": {
|
|
@@ -27746,22 +27746,22 @@ ${n}` : "Please fix this error.";
|
|
|
27746
27746
|
}
|
|
27747
27747
|
});
|
|
27748
27748
|
}, [
|
|
27749
|
-
|
|
27749
|
+
iJ,
|
|
27750
27750
|
A,
|
|
27751
27751
|
n,
|
|
27752
|
-
|
|
27752
|
+
aJ,
|
|
27753
27753
|
I,
|
|
27754
27754
|
q,
|
|
27755
|
-
|
|
27755
|
+
tJ,
|
|
27756
27756
|
z,
|
|
27757
27757
|
U
|
|
27758
27758
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27759
27759
|
disabled: n,
|
|
27760
27760
|
handleId: q,
|
|
27761
|
-
resizeHandler:
|
|
27761
|
+
resizeHandler: tJ,
|
|
27762
27762
|
panelGroupElement: K
|
|
27763
27763
|
});
|
|
27764
|
-
let
|
|
27764
|
+
let oJ = {
|
|
27765
27765
|
touchAction: "none",
|
|
27766
27766
|
userSelect: "none"
|
|
27767
27767
|
};
|
|
@@ -27771,15 +27771,15 @@ ${n}` : "Please fix this error.";
|
|
|
27771
27771
|
className: t,
|
|
27772
27772
|
id: a,
|
|
27773
27773
|
onBlur: () => {
|
|
27774
|
-
|
|
27774
|
+
eJ(false), o == null ? void 0 : o();
|
|
27775
27775
|
},
|
|
27776
27776
|
onFocus: () => {
|
|
27777
|
-
|
|
27777
|
+
eJ(true), d == null ? void 0 : d();
|
|
27778
27778
|
},
|
|
27779
27779
|
ref: w,
|
|
27780
27780
|
role: "separator",
|
|
27781
27781
|
style: {
|
|
27782
|
-
...
|
|
27782
|
+
...oJ,
|
|
27783
27783
|
..._
|
|
27784
27784
|
},
|
|
27785
27785
|
tabIndex: v,
|
|
@@ -28078,7 +28078,7 @@ ${n}` : "Please fix this error.";
|
|
|
28078
28078
|
}, [
|
|
28079
28079
|
h
|
|
28080
28080
|
]), k(() => {
|
|
28081
|
-
U(6,
|
|
28081
|
+
U(6, tJ);
|
|
28082
28082
|
}, []);
|
|
28083
28083
|
let K = import_react.useMemo(() => ({
|
|
28084
28084
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28087,7 +28087,7 @@ ${n}` : "Please fix this error.";
|
|
|
28087
28087
|
var _a2;
|
|
28088
28088
|
var a2, o2, s2;
|
|
28089
28089
|
if (!Object.is(n.current[e2], t2)) {
|
|
28090
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28090
|
+
if (n.current[e2] = t2, e2 === "search") eJ(), Q(), U(1, $);
|
|
28091
28091
|
else if (e2 === "value") {
|
|
28092
28092
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28093
28093
|
let e3 = document.getElementById(I);
|
|
@@ -28095,8 +28095,8 @@ ${n}` : "Please fix this error.";
|
|
|
28095
28095
|
}
|
|
28096
28096
|
if (U(7, () => {
|
|
28097
28097
|
var _a3;
|
|
28098
|
-
n.current.selectedItemId = (_a3 =
|
|
28099
|
-
}), i2 || U(5,
|
|
28098
|
+
n.current.selectedItemId = (_a3 = nJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28099
|
+
}), i2 || U(5, tJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28100
28100
|
let e3 = t2 ?? "";
|
|
28101
28101
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28102
28102
|
return;
|
|
@@ -28121,12 +28121,12 @@ ${n}` : "Please fix this error.";
|
|
|
28121
28121
|
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([
|
|
28122
28122
|
e2
|
|
28123
28123
|
]))), U(3, () => {
|
|
28124
|
-
|
|
28124
|
+
eJ(), Q(), n.current.value || $(), K.emit();
|
|
28125
28125
|
}), () => {
|
|
28126
28126
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28127
|
-
let t3 =
|
|
28127
|
+
let t3 = nJ();
|
|
28128
28128
|
U(4, () => {
|
|
28129
|
-
|
|
28129
|
+
eJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28130
28130
|
});
|
|
28131
28131
|
}),
|
|
28132
28132
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28159,7 +28159,7 @@ ${n}` : "Please fix this error.";
|
|
|
28159
28159
|
]);
|
|
28160
28160
|
});
|
|
28161
28161
|
let i2 = z.current;
|
|
28162
|
-
|
|
28162
|
+
rJ().sort((t3, n2) => {
|
|
28163
28163
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28164
28164
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28165
28165
|
}).forEach((e3) => {
|
|
@@ -28173,10 +28173,10 @@ ${n}` : "Please fix this error.";
|
|
|
28173
28173
|
}
|
|
28174
28174
|
function $() {
|
|
28175
28175
|
var _a2;
|
|
28176
|
-
let e2 = (_a2 =
|
|
28176
|
+
let e2 = (_a2 = rJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28177
28177
|
K.setState("value", e2 || void 0);
|
|
28178
28178
|
}
|
|
28179
|
-
function
|
|
28179
|
+
function eJ() {
|
|
28180
28180
|
var _a2, _b;
|
|
28181
28181
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28182
28182
|
n.current.filtered.count = i.current.size;
|
|
@@ -28194,43 +28194,43 @@ ${n}` : "Please fix this error.";
|
|
|
28194
28194
|
}
|
|
28195
28195
|
n.current.filtered.count = e2;
|
|
28196
28196
|
}
|
|
28197
|
-
function
|
|
28197
|
+
function tJ() {
|
|
28198
28198
|
var _a2, _b;
|
|
28199
28199
|
var e2;
|
|
28200
|
-
let t2 =
|
|
28200
|
+
let t2 = nJ();
|
|
28201
28201
|
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({
|
|
28202
28202
|
block: "nearest"
|
|
28203
28203
|
})), t2.scrollIntoView({
|
|
28204
28204
|
block: "nearest"
|
|
28205
28205
|
}));
|
|
28206
28206
|
}
|
|
28207
|
-
function
|
|
28207
|
+
function nJ() {
|
|
28208
28208
|
var _a2;
|
|
28209
28209
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28210
28210
|
}
|
|
28211
|
-
function
|
|
28211
|
+
function rJ() {
|
|
28212
28212
|
var _a2;
|
|
28213
28213
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28214
28214
|
}
|
|
28215
|
-
function
|
|
28216
|
-
let t2 =
|
|
28215
|
+
function iJ(e2) {
|
|
28216
|
+
let t2 = rJ()[e2];
|
|
28217
28217
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28218
28218
|
}
|
|
28219
|
-
function
|
|
28219
|
+
function aJ(e2) {
|
|
28220
28220
|
var t2;
|
|
28221
|
-
let n2 =
|
|
28221
|
+
let n2 = nJ(), i2 = rJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28222
28222
|
(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));
|
|
28223
28223
|
}
|
|
28224
|
-
function
|
|
28224
|
+
function oJ(e2) {
|
|
28225
28225
|
var _a2;
|
|
28226
|
-
let t2 = (_a2 =
|
|
28226
|
+
let t2 = (_a2 = nJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28227
28227
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28228
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28228
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : aJ(e2);
|
|
28229
28229
|
}
|
|
28230
|
-
let
|
|
28231
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28232
|
-
},
|
|
28233
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28230
|
+
let sJ = () => iJ(rJ().length - 1), cJ = (e2) => {
|
|
28231
|
+
e2.preventDefault(), e2.metaKey ? sJ() : e2.altKey ? oJ(1) : aJ(1);
|
|
28232
|
+
}, lJ = (e2) => {
|
|
28233
|
+
e2.preventDefault(), e2.metaKey ? iJ(0) : e2.altKey ? oJ(-1) : aJ(-1);
|
|
28234
28234
|
};
|
|
28235
28235
|
return import_react.createElement(Primitive.div, {
|
|
28236
28236
|
ref: t,
|
|
@@ -28244,27 +28244,27 @@ ${n}` : "Please fix this error.";
|
|
|
28244
28244
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28245
28245
|
case "n":
|
|
28246
28246
|
case "j":
|
|
28247
|
-
E && e2.ctrlKey &&
|
|
28247
|
+
E && e2.ctrlKey && cJ(e2);
|
|
28248
28248
|
break;
|
|
28249
28249
|
case "ArrowDown":
|
|
28250
|
-
|
|
28250
|
+
cJ(e2);
|
|
28251
28251
|
break;
|
|
28252
28252
|
case "p":
|
|
28253
28253
|
case "k":
|
|
28254
|
-
E && e2.ctrlKey &&
|
|
28254
|
+
E && e2.ctrlKey && lJ(e2);
|
|
28255
28255
|
break;
|
|
28256
28256
|
case "ArrowUp":
|
|
28257
|
-
|
|
28257
|
+
lJ(e2);
|
|
28258
28258
|
break;
|
|
28259
28259
|
case "Home":
|
|
28260
|
-
e2.preventDefault(),
|
|
28260
|
+
e2.preventDefault(), iJ(0);
|
|
28261
28261
|
break;
|
|
28262
28262
|
case "End":
|
|
28263
|
-
e2.preventDefault(),
|
|
28263
|
+
e2.preventDefault(), sJ();
|
|
28264
28264
|
break;
|
|
28265
28265
|
case "Enter": {
|
|
28266
28266
|
e2.preventDefault();
|
|
28267
|
-
let t3 =
|
|
28267
|
+
let t3 = nJ();
|
|
28268
28268
|
if (t3) {
|
|
28269
28269
|
let e3 = new Event(Z);
|
|
28270
28270
|
t3.dispatchEvent(e3);
|
|
@@ -28671,155 +28671,155 @@ ${n}` : "Please fix this error.";
|
|
|
28671
28671
|
onSelect: Functions.NOOP
|
|
28672
28672
|
});
|
|
28673
28673
|
Combobox = (e) => {
|
|
28674
|
-
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J,
|
|
28675
|
-
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],
|
|
28676
|
-
let
|
|
28677
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28674
|
+
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, $;
|
|
28675
|
+
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], $ = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: $, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = $);
|
|
28676
|
+
let eJ = I === void 0 ? false : I, tJ = z === void 0 ? true : z, nJ = U === void 0 ? "Search..." : U, rJ = K === void 0 ? "Nothing found." : K, iJ = q === void 0 ? false : q, aJ = J === void 0 ? false : J, oJ = s ?? false, sJ;
|
|
28677
|
+
t[25] !== v || t[26] !== w || t[27] !== oJ ? (sJ = {
|
|
28678
28678
|
prop: w,
|
|
28679
|
-
defaultProp:
|
|
28679
|
+
defaultProp: oJ,
|
|
28680
28680
|
onChange: v
|
|
28681
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28682
|
-
let [
|
|
28683
|
-
t[29] === S ?
|
|
28681
|
+
}, t[25] = v, t[26] = w, t[27] = oJ, t[28] = sJ) : sJ = t[28];
|
|
28682
|
+
let [cJ, lJ] = useControllableState(sJ), uJ = cJ === void 0 ? false : cJ, dJ;
|
|
28683
|
+
t[29] === S ? dJ = t[30] : (dJ = (e2) => {
|
|
28684
28684
|
S == null ? void 0 : S(e2);
|
|
28685
|
-
}, t[29] = S, t[30] =
|
|
28686
|
-
let
|
|
28687
|
-
t[31] !== c || t[32] !==
|
|
28688
|
-
prop:
|
|
28685
|
+
}, t[29] = S, t[30] = dJ);
|
|
28686
|
+
let fJ;
|
|
28687
|
+
t[31] !== c || t[32] !== dJ || t[33] !== $ ? (fJ = {
|
|
28688
|
+
prop: $,
|
|
28689
28689
|
defaultProp: c,
|
|
28690
|
-
onChange:
|
|
28691
|
-
}, t[31] = c, t[32] =
|
|
28692
|
-
let [
|
|
28693
|
-
t[35] ===
|
|
28694
|
-
let
|
|
28695
|
-
t[37] !== _ || t[38] !==
|
|
28690
|
+
onChange: dJ
|
|
28691
|
+
}, t[31] = c, t[32] = dJ, t[33] = $, t[34] = fJ) : fJ = t[34];
|
|
28692
|
+
let [pJ, mJ] = useControllableState(fJ), hJ;
|
|
28693
|
+
t[35] === pJ ? hJ = t[36] : (hJ = (e2) => Array.isArray(pJ) ? pJ.includes(e2) : pJ === e2, t[35] = pJ, t[36] = hJ);
|
|
28694
|
+
let gJ = hJ, _J;
|
|
28695
|
+
t[37] !== _ || t[38] !== eJ || t[39] !== lJ || t[40] !== mJ || t[41] !== pJ ? (_J = (e2) => {
|
|
28696
28696
|
let t2 = e2;
|
|
28697
|
-
if (
|
|
28698
|
-
let n2 =
|
|
28697
|
+
if (eJ) if (Array.isArray(pJ)) if (pJ.includes(t2)) {
|
|
28698
|
+
let n2 = pJ.filter((t3) => t3 !== e2);
|
|
28699
28699
|
t2 = n2.length > 0 ? n2 : [];
|
|
28700
28700
|
} else t2 = [
|
|
28701
|
-
...
|
|
28701
|
+
...pJ,
|
|
28702
28702
|
t2
|
|
28703
28703
|
];
|
|
28704
28704
|
else t2 = [
|
|
28705
28705
|
t2
|
|
28706
28706
|
];
|
|
28707
|
-
else
|
|
28708
|
-
|
|
28709
|
-
}, t[37] = _, t[38] =
|
|
28710
|
-
let hJ = mJ, _J;
|
|
28711
|
-
t[43] !== tJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== uJ ? (_J = () => $ && tJ && E ? E : uJ == null ? E ?? "--" : Array.isArray(uJ) ? uJ.length === 0 ? E ?? "--" : uJ.length === 1 && d !== void 0 ? d(uJ[0]) : `${uJ.length} selected` : d === void 0 ? E ?? "--" : d(uJ), t[43] = tJ, t[44] = d, t[45] = $, t[46] = E, t[47] = uJ, t[48] = _J) : _J = t[48];
|
|
28707
|
+
else pJ === e2 && (t2 = null);
|
|
28708
|
+
mJ(t2), (_ ?? eJ) || lJ(false);
|
|
28709
|
+
}, t[37] = _, t[38] = eJ, t[39] = lJ, t[40] = mJ, t[41] = pJ, t[42] = _J) : _J = t[42];
|
|
28712
28710
|
let vJ = _J, yJ;
|
|
28713
|
-
t[
|
|
28714
|
-
isSelected: pJ,
|
|
28715
|
-
onSelect: hJ
|
|
28716
|
-
}, t[49] = hJ, t[50] = pJ, t[51] = yJ) : yJ = t[51];
|
|
28711
|
+
t[43] !== iJ || t[44] !== d || t[45] !== eJ || t[46] !== E || t[47] !== pJ ? (yJ = () => eJ && iJ && E ? E : pJ == null ? E ?? "--" : Array.isArray(pJ) ? pJ.length === 0 ? E ?? "--" : pJ.length === 1 && d !== void 0 ? d(pJ[0]) : `${pJ.length} selected` : d === void 0 ? E ?? "--" : d(pJ), t[43] = iJ, t[44] = d, t[45] = eJ, t[46] = E, t[47] = pJ, t[48] = yJ) : yJ = t[48];
|
|
28717
28712
|
let bJ = yJ, xJ;
|
|
28718
|
-
t[
|
|
28719
|
-
|
|
28720
|
-
|
|
28721
|
-
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
children: DJ
|
|
28731
|
-
}), t[63] = DJ, t[64] = OJ);
|
|
28713
|
+
t[49] !== vJ || t[50] !== gJ ? (xJ = {
|
|
28714
|
+
isSelected: gJ,
|
|
28715
|
+
onSelect: vJ
|
|
28716
|
+
}, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
|
|
28717
|
+
let SJ = xJ, CJ;
|
|
28718
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CJ = cn("relative"), t[52] = CJ) : CJ = t[52];
|
|
28719
|
+
let EJ;
|
|
28720
|
+
t[53] !== aJ || t[54] !== lJ ? (EJ = (e2) => {
|
|
28721
|
+
aJ && e2 || lJ(e2);
|
|
28722
|
+
}, t[53] = aJ, t[54] = lJ, t[55] = EJ) : EJ = t[55];
|
|
28723
|
+
let DJ = aJ && "cursor-not-allowed opacity-50", OJ;
|
|
28724
|
+
t[56] !== o || t[57] !== DJ ? (OJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
|
|
28732
28725
|
let kJ;
|
|
28733
|
-
t[
|
|
28734
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28735
|
-
}), t[65] = kJ) : kJ = t[65];
|
|
28726
|
+
t[59] !== O || t[60] !== bJ || t[61] !== pJ ? (kJ = O ? O(pJ ?? null) : bJ(), t[59] = O, t[60] = bJ, t[61] = pJ, t[62] = kJ) : kJ = t[62];
|
|
28736
28727
|
let AJ;
|
|
28737
|
-
t[
|
|
28728
|
+
t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28729
|
+
className: "truncate flex-1 min-w-0",
|
|
28730
|
+
children: kJ
|
|
28731
|
+
}), t[63] = kJ, t[64] = AJ);
|
|
28732
|
+
let jJ;
|
|
28733
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28734
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28735
|
+
}), t[65] = jJ) : jJ = t[65];
|
|
28736
|
+
let MJ;
|
|
28737
|
+
t[66] !== aJ || t[67] !== h || t[68] !== uJ || t[69] !== OJ || t[70] !== AJ ? (MJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28738
28738
|
asChild: true,
|
|
28739
28739
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28740
28740
|
id: h,
|
|
28741
28741
|
type: "button",
|
|
28742
|
-
className:
|
|
28743
|
-
"aria-expanded":
|
|
28744
|
-
"aria-disabled":
|
|
28742
|
+
className: OJ,
|
|
28743
|
+
"aria-expanded": uJ,
|
|
28744
|
+
"aria-disabled": aJ,
|
|
28745
28745
|
children: [
|
|
28746
|
-
|
|
28747
|
-
|
|
28746
|
+
AJ,
|
|
28747
|
+
jJ
|
|
28748
28748
|
]
|
|
28749
28749
|
})
|
|
28750
|
-
}), t[66] =
|
|
28751
|
-
let
|
|
28752
|
-
t[72] !==
|
|
28753
|
-
placeholder:
|
|
28750
|
+
}), t[66] = aJ, t[67] = h, t[68] = uJ, t[69] = OJ, t[70] = AJ, t[71] = MJ) : MJ = t[71];
|
|
28751
|
+
let NJ;
|
|
28752
|
+
t[72] !== nJ || t[73] !== y || t[74] !== M ? (NJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28753
|
+
placeholder: nJ,
|
|
28754
28754
|
rootClassName: "px-1 h-8",
|
|
28755
28755
|
autoFocus: true,
|
|
28756
28756
|
value: M,
|
|
28757
28757
|
onValueChange: y
|
|
28758
|
-
}), t[72] =
|
|
28759
|
-
let MJ;
|
|
28760
|
-
t[76] === eJ ? MJ = t[77] : (MJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28761
|
-
children: eJ
|
|
28762
|
-
}), t[76] = eJ, t[77] = MJ);
|
|
28763
|
-
let NJ;
|
|
28764
|
-
t[78] !== n || t[79] !== bJ ? (NJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28765
|
-
value: bJ,
|
|
28766
|
-
children: n
|
|
28767
|
-
}), t[78] = n, t[79] = bJ, t[80] = NJ) : NJ = t[80];
|
|
28758
|
+
}), t[72] = nJ, t[73] = y, t[74] = M, t[75] = NJ) : NJ = t[75];
|
|
28768
28759
|
let PJ;
|
|
28769
|
-
t[
|
|
28760
|
+
t[76] === rJ ? PJ = t[77] : (PJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28761
|
+
children: rJ
|
|
28762
|
+
}), t[76] = rJ, t[77] = PJ);
|
|
28763
|
+
let FJ;
|
|
28764
|
+
t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28765
|
+
value: SJ,
|
|
28766
|
+
children: n
|
|
28767
|
+
}), t[78] = n, t[79] = SJ, t[80] = FJ) : FJ = t[80];
|
|
28768
|
+
let IJ;
|
|
28769
|
+
t[81] !== PJ || t[82] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28770
28770
|
className: "max-h-60 py-.5",
|
|
28771
28771
|
children: [
|
|
28772
|
-
|
|
28773
|
-
|
|
28772
|
+
PJ,
|
|
28773
|
+
FJ
|
|
28774
28774
|
]
|
|
28775
|
-
}), t[81] =
|
|
28776
|
-
let
|
|
28777
|
-
t[84] !== f || t[85] !==
|
|
28775
|
+
}), t[81] = PJ, t[82] = FJ, t[83] = IJ) : IJ = t[83];
|
|
28776
|
+
let LJ;
|
|
28777
|
+
t[84] !== f || t[85] !== tJ || t[86] !== NJ || t[87] !== IJ ? (LJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28778
28778
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28779
28779
|
align: "start",
|
|
28780
28780
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28781
28781
|
filter: f,
|
|
28782
|
-
shouldFilter:
|
|
28782
|
+
shouldFilter: tJ,
|
|
28783
28783
|
children: [
|
|
28784
|
-
|
|
28785
|
-
|
|
28784
|
+
NJ,
|
|
28785
|
+
IJ
|
|
28786
28786
|
]
|
|
28787
28787
|
})
|
|
28788
|
-
}), t[84] = f, t[85] =
|
|
28789
|
-
let
|
|
28790
|
-
t[89] !==
|
|
28791
|
-
open:
|
|
28792
|
-
onOpenChange:
|
|
28788
|
+
}), t[84] = f, t[85] = tJ, t[86] = NJ, t[87] = IJ, t[88] = LJ) : LJ = t[88];
|
|
28789
|
+
let RJ;
|
|
28790
|
+
t[89] !== uJ || t[90] !== EJ || t[91] !== MJ || t[92] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28791
|
+
open: uJ,
|
|
28792
|
+
onOpenChange: EJ,
|
|
28793
28793
|
children: [
|
|
28794
|
-
|
|
28795
|
-
|
|
28794
|
+
MJ,
|
|
28795
|
+
LJ
|
|
28796
28796
|
]
|
|
28797
|
-
}), t[89] =
|
|
28798
|
-
let
|
|
28799
|
-
t[94] !==
|
|
28797
|
+
}), t[89] = uJ, t[90] = EJ, t[91] = MJ, t[92] = LJ, t[93] = RJ) : RJ = t[93];
|
|
28798
|
+
let zJ;
|
|
28799
|
+
t[94] !== iJ || t[95] !== i || t[96] !== aJ || t[97] !== d || t[98] !== vJ || t[99] !== eJ || t[100] !== pJ ? (zJ = eJ && iJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28800
28800
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28801
|
-
children: Array.isArray(
|
|
28801
|
+
children: Array.isArray(pJ) && pJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28802
28802
|
variant: "secondary",
|
|
28803
28803
|
children: [
|
|
28804
28804
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28805
28805
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28806
28806
|
onClick: () => {
|
|
28807
|
-
|
|
28807
|
+
aJ || vJ(e2);
|
|
28808
28808
|
},
|
|
28809
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28809
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", aJ && "pointer-events-none")
|
|
28810
28810
|
})
|
|
28811
28811
|
]
|
|
28812
28812
|
}, String(e2)))
|
|
28813
|
-
}), t[94] =
|
|
28814
|
-
let
|
|
28815
|
-
return t[102] !== A || t[103] !==
|
|
28816
|
-
className:
|
|
28813
|
+
}), t[94] = iJ, t[95] = i, t[96] = aJ, t[97] = d, t[98] = vJ, t[99] = eJ, t[100] = pJ, t[101] = zJ) : zJ = t[101];
|
|
28814
|
+
let BJ;
|
|
28815
|
+
return t[102] !== A || t[103] !== RJ || t[104] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28816
|
+
className: CJ,
|
|
28817
28817
|
...A,
|
|
28818
28818
|
children: [
|
|
28819
|
-
|
|
28820
|
-
|
|
28819
|
+
RJ,
|
|
28820
|
+
zJ
|
|
28821
28821
|
]
|
|
28822
|
-
}), t[102] = A, t[103] =
|
|
28822
|
+
}), t[102] = A, t[103] = RJ, t[104] = zJ, t[105] = BJ) : BJ = t[105], BJ;
|
|
28823
28823
|
};
|
|
28824
28824
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28825
28825
|
let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29875,17 +29875,17 @@ ${n}` : "Please fix this error.";
|
|
|
29875
29875
|
searchQuery: M,
|
|
29876
29876
|
filteredOptions: z
|
|
29877
29877
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29878
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29879
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29878
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), eJ;
|
|
29879
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (eJ = {
|
|
29880
29880
|
value: i,
|
|
29881
29881
|
onChange: a,
|
|
29882
29882
|
multiple: o,
|
|
29883
29883
|
maxSelections: s,
|
|
29884
29884
|
allowSelectNone: c,
|
|
29885
29885
|
selected: y
|
|
29886
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29887
|
-
let { isChecked:
|
|
29888
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29886
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = eJ) : eJ = t[21];
|
|
29887
|
+
let { isChecked: tJ, toggle: nJ } = useToggle(eJ), rJ;
|
|
29888
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (rJ = {
|
|
29889
29889
|
value: i,
|
|
29890
29890
|
onChange: a,
|
|
29891
29891
|
multiple: o,
|
|
@@ -29893,24 +29893,24 @@ ${n}` : "Please fix this error.";
|
|
|
29893
29893
|
filteredOptions: z,
|
|
29894
29894
|
searchQuery: M,
|
|
29895
29895
|
maxSelections: s
|
|
29896
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29897
|
-
let { bulkActions:
|
|
29898
|
-
t[30] !== J || t[31] !== I ? (
|
|
29896
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = rJ) : rJ = t[29];
|
|
29897
|
+
let { bulkActions: iJ } = useBulk(rJ), aJ;
|
|
29898
|
+
t[30] !== J || t[31] !== I ? (aJ = (e2) => {
|
|
29899
29899
|
I(e2), e2 === "" && J();
|
|
29900
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29901
|
-
let
|
|
29902
|
-
return t[33] !==
|
|
29900
|
+
}, t[30] = J, t[31] = I, t[32] = aJ) : aJ = t[32];
|
|
29901
|
+
let oJ = aJ, sJ;
|
|
29902
|
+
return t[33] !== iJ || t[34] !== tJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== oJ || t[41] !== nJ || t[42] !== Q ? (sJ = {
|
|
29903
29903
|
searchQuery: M,
|
|
29904
|
-
setSearchQuery:
|
|
29904
|
+
setSearchQuery: oJ,
|
|
29905
29905
|
open: K,
|
|
29906
29906
|
setOpen: q,
|
|
29907
29907
|
visibleOptions: Q,
|
|
29908
29908
|
pinnedCount: $,
|
|
29909
|
-
isChecked:
|
|
29910
|
-
toggle:
|
|
29911
|
-
bulkActions:
|
|
29909
|
+
isChecked: tJ,
|
|
29910
|
+
toggle: nJ,
|
|
29911
|
+
bulkActions: iJ,
|
|
29912
29912
|
labelOf: O
|
|
29913
|
-
}, t[33] =
|
|
29913
|
+
}, t[33] = iJ, t[34] = tJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = oJ, t[41] = nJ, t[42] = Q, t[43] = sJ) : sJ = t[43], sJ;
|
|
29914
29914
|
};
|
|
29915
29915
|
const Sets = {
|
|
29916
29916
|
merge(...e) {
|
|
@@ -30239,7 +30239,7 @@ ${n}` : "Please fix this error.";
|
|
|
30239
30239
|
type: S,
|
|
30240
30240
|
operator: E,
|
|
30241
30241
|
draft: mergeNumberTextDraft(A, I)
|
|
30242
|
-
}), $ = Q === void 0,
|
|
30242
|
+
}), $ = Q === void 0, eJ = $ ? getMissingValueMessage(S, E) : "Apply filter", tJ = () => {
|
|
30243
30243
|
if (!Q) return;
|
|
30244
30244
|
let e2 = Q;
|
|
30245
30245
|
t.setColumnFilters((t2) => {
|
|
@@ -30258,20 +30258,20 @@ ${n}` : "Please fix this error.";
|
|
|
30258
30258
|
value: e2
|
|
30259
30259
|
}, n2;
|
|
30260
30260
|
}), i();
|
|
30261
|
-
},
|
|
30261
|
+
}, nJ = () => {
|
|
30262
30262
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30263
|
-
},
|
|
30263
|
+
}, rJ = !OPERATORS_WITHOUT_VALUE.has(E), iJ = OPERATORS_BY_TYPE[S], aJ = (0, import_react.useRef)(null), oJ = (0, import_react.useRef)(null);
|
|
30264
30264
|
return (0, import_react.useEffect)(() => {
|
|
30265
30265
|
var _a2, _b;
|
|
30266
|
-
let e2 = (_a2 =
|
|
30267
|
-
e2 ? e2.focus() : (_b =
|
|
30266
|
+
let e2 = (_a2 = aJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30267
|
+
e2 ? e2.focus() : (_b = oJ.current) == null ? void 0 : _b.focus();
|
|
30268
30268
|
}, [
|
|
30269
30269
|
S,
|
|
30270
30270
|
E
|
|
30271
30271
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30272
30272
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30273
30273
|
onSubmit: (e2) => {
|
|
30274
|
-
e2.preventDefault(),
|
|
30274
|
+
e2.preventDefault(), tJ();
|
|
30275
30275
|
},
|
|
30276
30276
|
onKeyDownCapture: (e2) => {
|
|
30277
30277
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30312,13 +30312,13 @@ ${n}` : "Please fix this error.";
|
|
|
30312
30312
|
onValueChange: (e2) => J(e2),
|
|
30313
30313
|
children: [
|
|
30314
30314
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30315
|
-
ref:
|
|
30315
|
+
ref: oJ,
|
|
30316
30316
|
id: s,
|
|
30317
30317
|
className: "h-6 mb-1 bg-transparent",
|
|
30318
30318
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30319
30319
|
}),
|
|
30320
30320
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30321
|
-
children:
|
|
30321
|
+
children: iJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30322
30322
|
value: e2,
|
|
30323
30323
|
children: OPERATOR_LABELS[e2]
|
|
30324
30324
|
}, e2))
|
|
@@ -30327,8 +30327,8 @@ ${n}` : "Please fix this error.";
|
|
|
30327
30327
|
}, S)
|
|
30328
30328
|
]
|
|
30329
30329
|
}),
|
|
30330
|
-
|
|
30331
|
-
ref:
|
|
30330
|
+
rJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30331
|
+
ref: aJ,
|
|
30332
30332
|
className: "flex flex-col gap-1",
|
|
30333
30333
|
children: [
|
|
30334
30334
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30355,7 +30355,7 @@ ${n}` : "Please fix this error.";
|
|
|
30355
30355
|
className: "flex gap-1 mb-1",
|
|
30356
30356
|
children: [
|
|
30357
30357
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30358
|
-
content:
|
|
30358
|
+
content: eJ,
|
|
30359
30359
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30360
30360
|
className: "inline-flex",
|
|
30361
30361
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30394,7 +30394,7 @@ ${n}` : "Please fix this error.";
|
|
|
30394
30394
|
size: "icon",
|
|
30395
30395
|
variant: "ghost",
|
|
30396
30396
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30397
|
-
onClick:
|
|
30397
|
+
onClick: nJ,
|
|
30398
30398
|
"aria-label": "Remove filter",
|
|
30399
30399
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30400
30400
|
className: "h-3.5 w-3.5",
|
|
@@ -32602,29 +32602,29 @@ ${n}` : "Please fix this error.";
|
|
|
32602
32602
|
}, t[16] = a, t[17] = J);
|
|
32603
32603
|
let Q = useEvent_default(J), $;
|
|
32604
32604
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32605
|
-
let
|
|
32606
|
-
t[20] === S ? (
|
|
32605
|
+
let eJ = useEvent_default($), tJ, nJ;
|
|
32606
|
+
t[20] === S ? (tJ = t[21], nJ = t[22]) : (tJ = () => (window.addEventListener("scroll", S, {
|
|
32607
32607
|
passive: true,
|
|
32608
32608
|
capture: true
|
|
32609
32609
|
}), window.addEventListener("resize", S), () => {
|
|
32610
32610
|
window.removeEventListener("scroll", S, {
|
|
32611
32611
|
capture: true
|
|
32612
32612
|
}), window.removeEventListener("resize", S);
|
|
32613
|
-
}),
|
|
32613
|
+
}), nJ = [
|
|
32614
32614
|
S
|
|
32615
|
-
], t[20] = S, t[21] =
|
|
32616
|
-
let
|
|
32617
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32618
|
-
let
|
|
32619
|
-
return t[25] !==
|
|
32615
|
+
], t[20] = S, t[21] = tJ, t[22] = nJ), (0, import_react.useEffect)(tJ, nJ);
|
|
32616
|
+
let rJ, iJ;
|
|
32617
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = () => v, iJ = [], t[23] = rJ, t[24] = iJ) : (rJ = t[23], iJ = t[24]), (0, import_react.useEffect)(rJ, iJ);
|
|
32618
|
+
let aJ;
|
|
32619
|
+
return t[25] !== eJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (aJ = {
|
|
32620
32620
|
tooltipState: o,
|
|
32621
32621
|
tooltipContentId: d,
|
|
32622
32622
|
hideTooltip: S,
|
|
32623
32623
|
handleCellMouseOver: U,
|
|
32624
32624
|
handleCellMouseLeave: q,
|
|
32625
32625
|
handleCellFocus: Q,
|
|
32626
|
-
handleCellBlur:
|
|
32627
|
-
}, t[25] =
|
|
32626
|
+
handleCellBlur: eJ
|
|
32627
|
+
}, t[25] = eJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = aJ) : aJ = t[32], aJ;
|
|
32628
32628
|
}
|
|
32629
32629
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32630
32630
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34062,7 +34062,7 @@ ${n}` : "Please fix this error.";
|
|
|
34062
34062
|
filename: i2.filename
|
|
34063
34063
|
};
|
|
34064
34064
|
}, t[6] = e, t[7] = O);
|
|
34065
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34065
|
+
let A = O, M, I, z, U, K, q, J, Q, $, eJ, tJ, nJ, rJ;
|
|
34066
34066
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34067
34067
|
let e2 = async (t2) => {
|
|
34068
34068
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34128,10 +34128,10 @@ ${n}` : "Please fix this error.";
|
|
|
34128
34128
|
content: d,
|
|
34129
34129
|
open: o2,
|
|
34130
34130
|
children: h
|
|
34131
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34131
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", eJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34132
34132
|
className: "text-xs text-muted-foreground",
|
|
34133
34133
|
children: "Download"
|
|
34134
|
-
}), t[36] =
|
|
34134
|
+
}), t[36] = tJ) : tJ = t[36], nJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34135
34135
|
onSelect: () => {
|
|
34136
34136
|
e2(t2.format);
|
|
34137
34137
|
},
|
|
@@ -34152,10 +34152,10 @@ ${n}` : "Please fix this error.";
|
|
|
34152
34152
|
]
|
|
34153
34153
|
})
|
|
34154
34154
|
]
|
|
34155
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34155
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34156
34156
|
className: "text-xs text-muted-foreground",
|
|
34157
34157
|
children: "Copy to clipboard"
|
|
34158
|
-
}), t[37] = z, t[38] =
|
|
34158
|
+
}), t[37] = z, t[38] = rJ) : (z = t[37], rJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34159
34159
|
onSelect: async () => {
|
|
34160
34160
|
try {
|
|
34161
34161
|
await a(e3.format);
|
|
@@ -34184,30 +34184,30 @@ ${n}` : "Please fix this error.";
|
|
|
34184
34184
|
]
|
|
34185
34185
|
})
|
|
34186
34186
|
]
|
|
34187
|
-
}, 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] =
|
|
34188
|
-
} 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],
|
|
34189
|
-
let
|
|
34190
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
34187
|
+
}, 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] = eJ, t[23] = tJ, t[24] = nJ, t[25] = rJ;
|
|
34188
|
+
} 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], eJ = t[22], tJ = t[23], nJ = t[24], rJ = t[25];
|
|
34189
|
+
let iJ;
|
|
34190
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== eJ || t[44] !== tJ || t[45] !== nJ || t[46] !== rJ ? (iJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34191
34191
|
side: $,
|
|
34192
|
-
className:
|
|
34192
|
+
className: eJ,
|
|
34193
34193
|
children: [
|
|
34194
|
-
$q,
|
|
34195
|
-
eJ,
|
|
34196
34194
|
tJ,
|
|
34195
|
+
nJ,
|
|
34196
|
+
rJ,
|
|
34197
34197
|
z,
|
|
34198
34198
|
U
|
|
34199
34199
|
]
|
|
34200
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34201
|
-
let
|
|
34202
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34200
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = eJ, t[44] = tJ, t[45] = nJ, t[46] = rJ, t[47] = iJ) : iJ = t[47];
|
|
34201
|
+
let aJ;
|
|
34202
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== iJ ? (aJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34203
34203
|
modal: K,
|
|
34204
34204
|
open: q,
|
|
34205
34205
|
onOpenChange: J,
|
|
34206
34206
|
children: [
|
|
34207
34207
|
Q,
|
|
34208
|
-
|
|
34208
|
+
iJ
|
|
34209
34209
|
]
|
|
34210
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34210
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = iJ, t[54] = aJ) : aJ = t[54], aJ;
|
|
34211
34211
|
};
|
|
34212
34212
|
function fetchJson(e) {
|
|
34213
34213
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34303,22 +34303,22 @@ ${n}` : "Please fix this error.";
|
|
|
34303
34303
|
]
|
|
34304
34304
|
});
|
|
34305
34305
|
};
|
|
34306
|
-
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:
|
|
34307
|
-
let
|
|
34306
|
+
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: eJ, showSearch: tJ = false, searchQuery: nJ, onSearchQueryChange: rJ, showFilters: iJ = false, filters: aJ, onFiltersChange: oJ, calculateTopKRows: sJ, reloading: cJ, freezeColumnsLeft: lJ, freezeColumnsRight: uJ, hiddenColumns: dJ, toggleDisplayHeader: fJ, showChartBuilder: pJ, isChartBuilderOpen: mJ, showPageSizeSelector: hJ, showTableExplorer: gJ, togglePanel: _J, isPanelOpen: vJ, isAnyPanelOpen: yJ, viewedRowIdx: bJ, onViewedRowChange: xJ, renderTableExplorerPanel: SJ }) => {
|
|
34307
|
+
let CJ = isStaticNotebook(), wJ = !CJ, [TJ, EJ] = import_react.useState(false), { locale: DJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: OJ, setColumnPinning: kJ } = useColumnPinning(lJ, uJ), { columnVisibility: AJ, setColumnVisibility: jJ } = useColumnVisibility(dJ);
|
|
34308
34308
|
import_react.useEffect(() => {
|
|
34309
34309
|
let e2;
|
|
34310
|
-
return
|
|
34311
|
-
|
|
34312
|
-
}, 300) :
|
|
34310
|
+
return cJ ? e2 = setTimeout(() => {
|
|
34311
|
+
EJ(true);
|
|
34312
|
+
}, 300) : EJ(false), () => {
|
|
34313
34313
|
e2 && clearTimeout(e2);
|
|
34314
34314
|
};
|
|
34315
34315
|
}, [
|
|
34316
|
-
|
|
34316
|
+
cJ
|
|
34317
34317
|
]);
|
|
34318
|
-
function
|
|
34318
|
+
function MJ(e2, t2) {
|
|
34319
34319
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34320
34320
|
}
|
|
34321
|
-
let
|
|
34321
|
+
let NJ = useReactTable({
|
|
34322
34322
|
_features: [
|
|
34323
34323
|
ColumnPinning,
|
|
34324
34324
|
ColumnWrappingFeature,
|
|
@@ -34342,37 +34342,37 @@ ${n}` : "Please fix this error.";
|
|
|
34342
34342
|
getRowId: (e2, t2) => {
|
|
34343
34343
|
let n2 = getStableRowId(e2);
|
|
34344
34344
|
if (n2) return n2;
|
|
34345
|
-
let i2 =
|
|
34345
|
+
let i2 = MJ(e2, t2);
|
|
34346
34346
|
return String(i2);
|
|
34347
34347
|
}
|
|
34348
34348
|
} : {},
|
|
34349
|
-
locale:
|
|
34349
|
+
locale: DJ,
|
|
34350
34350
|
manualPagination: q,
|
|
34351
34351
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34352
34352
|
...w ? {
|
|
34353
34353
|
onSortingChange: w
|
|
34354
34354
|
} : {},
|
|
34355
34355
|
manualSorting: y,
|
|
34356
|
-
enableSorting: !
|
|
34356
|
+
enableSorting: !CJ,
|
|
34357
34357
|
enableMultiSort: true,
|
|
34358
34358
|
getSortedRowModel: getSortedRowModel(),
|
|
34359
34359
|
manualFiltering: true,
|
|
34360
|
-
enableColumnFilters:
|
|
34360
|
+
enableColumnFilters: iJ && !CJ,
|
|
34361
34361
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34362
|
-
onColumnFiltersChange:
|
|
34362
|
+
onColumnFiltersChange: oJ,
|
|
34363
34363
|
onRowSelectionChange: Q,
|
|
34364
34364
|
onCellSelectionChange: $,
|
|
34365
34365
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34366
34366
|
enableMultiCellSelection: c === "multi-cell",
|
|
34367
|
-
onColumnPinningChange:
|
|
34368
|
-
onColumnVisibilityChange:
|
|
34367
|
+
onColumnPinningChange: kJ,
|
|
34368
|
+
onColumnVisibilityChange: jJ,
|
|
34369
34369
|
enableFocusRow: true,
|
|
34370
|
-
onFocusRowChange:
|
|
34370
|
+
onFocusRowChange: xJ,
|
|
34371
34371
|
state: {
|
|
34372
34372
|
...S ? {
|
|
34373
34373
|
sorting: S
|
|
34374
34374
|
} : {},
|
|
34375
|
-
columnFilters:
|
|
34375
|
+
columnFilters: aJ,
|
|
34376
34376
|
...z ? {
|
|
34377
34377
|
pagination: z
|
|
34378
34378
|
} : J && !z ? {} : {
|
|
@@ -34383,60 +34383,60 @@ ${n}` : "Please fix this error.";
|
|
|
34383
34383
|
},
|
|
34384
34384
|
rowSelection: E ?? {},
|
|
34385
34385
|
cellSelection: O ?? [],
|
|
34386
|
-
columnVisibility:
|
|
34386
|
+
columnVisibility: AJ,
|
|
34387
34387
|
cellStyling: A,
|
|
34388
|
-
columnPinning:
|
|
34388
|
+
columnPinning: OJ,
|
|
34389
34389
|
cellHoverTemplate: M,
|
|
34390
34390
|
cellHoverTexts: I ?? {}
|
|
34391
34391
|
}
|
|
34392
|
-
}),
|
|
34392
|
+
}), PJ = (vJ == null ? void 0 : vJ(PANEL_TYPES.ROW_VIEWER)) ?? false, FJ = !J && o.length > 100, IJ = useScrollContainerHeight({
|
|
34393
34393
|
maxHeight: n,
|
|
34394
|
-
virtualize:
|
|
34395
|
-
}), [
|
|
34394
|
+
virtualize: FJ
|
|
34395
|
+
}), [LJ, RJ] = import_react.useState(null), zJ = import_react.useMemo(() => ({
|
|
34396
34396
|
requestAddFilter: (e2) => {
|
|
34397
|
-
let t2 =
|
|
34398
|
-
t2 &&
|
|
34397
|
+
let t2 = NJ.getColumn(e2.columnId);
|
|
34398
|
+
t2 && RJ(buildEditorSnapshot(t2, {
|
|
34399
34399
|
operator: e2.operator
|
|
34400
34400
|
}));
|
|
34401
34401
|
}
|
|
34402
34402
|
}), [
|
|
34403
|
-
|
|
34404
|
-
]),
|
|
34403
|
+
NJ
|
|
34404
|
+
]), BJ = getUserColumnVisibilityCounts(NJ), VJ = BJ.total > 0 && BJ.visible === 0;
|
|
34405
34405
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34406
|
-
value:
|
|
34406
|
+
value: zJ,
|
|
34407
34407
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34408
34408
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34409
34409
|
children: [
|
|
34410
34410
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34411
|
-
filters:
|
|
34412
|
-
table:
|
|
34413
|
-
calculateTopKRows:
|
|
34414
|
-
addFilterSnapshot:
|
|
34415
|
-
onAddFilterSnapshotChange:
|
|
34411
|
+
filters: aJ,
|
|
34412
|
+
table: NJ,
|
|
34413
|
+
calculateTopKRows: sJ,
|
|
34414
|
+
addFilterSnapshot: LJ,
|
|
34415
|
+
onAddFilterSnapshotChange: RJ
|
|
34416
34416
|
}),
|
|
34417
|
-
|
|
34417
|
+
SJ == null ? void 0 : SJ(NJ),
|
|
34418
34418
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34419
34419
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34420
34420
|
part: "table-wrapper",
|
|
34421
34421
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34422
34422
|
children: [
|
|
34423
|
-
|
|
34424
|
-
table:
|
|
34425
|
-
showSearch:
|
|
34426
|
-
searchQuery:
|
|
34427
|
-
onSearchQueryChange:
|
|
34428
|
-
reloading:
|
|
34429
|
-
showChartBuilder:
|
|
34430
|
-
isChartBuilderOpen:
|
|
34431
|
-
toggleDisplayHeader:
|
|
34432
|
-
showTableExplorer:
|
|
34433
|
-
togglePanel:
|
|
34434
|
-
isAnyPanelOpen:
|
|
34423
|
+
wJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34424
|
+
table: NJ,
|
|
34425
|
+
showSearch: tJ,
|
|
34426
|
+
searchQuery: nJ,
|
|
34427
|
+
onSearchQueryChange: rJ,
|
|
34428
|
+
reloading: cJ,
|
|
34429
|
+
showChartBuilder: pJ,
|
|
34430
|
+
isChartBuilderOpen: mJ,
|
|
34431
|
+
toggleDisplayHeader: fJ,
|
|
34432
|
+
showTableExplorer: gJ,
|
|
34433
|
+
togglePanel: _J,
|
|
34434
|
+
isAnyPanelOpen: yJ,
|
|
34435
34435
|
downloadAs: K,
|
|
34436
34436
|
sizeBytes: _,
|
|
34437
34437
|
sizeBytesIsLoading: v
|
|
34438
34438
|
}),
|
|
34439
|
-
|
|
34439
|
+
VJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34440
34440
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34441
34441
|
children: [
|
|
34442
34442
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34445,26 +34445,26 @@ ${n}` : "Please fix this error.";
|
|
|
34445
34445
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34446
34446
|
variant: "link",
|
|
34447
34447
|
size: "xs",
|
|
34448
|
-
onClick: () =>
|
|
34448
|
+
onClick: () => NJ.resetColumnVisibility(true),
|
|
34449
34449
|
children: "Unhide all"
|
|
34450
34450
|
})
|
|
34451
34451
|
]
|
|
34452
34452
|
}),
|
|
34453
34453
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34454
34454
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34455
|
-
ref:
|
|
34455
|
+
ref: IJ,
|
|
34456
34456
|
children: [
|
|
34457
|
-
|
|
34457
|
+
TJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34458
34458
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34459
34459
|
}),
|
|
34460
|
-
renderTableHeader(
|
|
34460
|
+
renderTableHeader(NJ, FJ || !!n),
|
|
34461
34461
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34462
|
-
table:
|
|
34462
|
+
table: NJ,
|
|
34463
34463
|
columns: i,
|
|
34464
|
-
rowViewerPanelOpen:
|
|
34465
|
-
getRowIndex:
|
|
34466
|
-
viewedRowIdx:
|
|
34467
|
-
virtualize:
|
|
34464
|
+
rowViewerPanelOpen: PJ,
|
|
34465
|
+
getRowIndex: MJ,
|
|
34466
|
+
viewedRowIdx: bJ,
|
|
34467
|
+
virtualize: FJ
|
|
34468
34468
|
})
|
|
34469
34469
|
]
|
|
34470
34470
|
}),
|
|
@@ -34475,10 +34475,10 @@ ${n}` : "Please fix this error.";
|
|
|
34475
34475
|
pagination: J,
|
|
34476
34476
|
selection: c,
|
|
34477
34477
|
onRowSelectionChange: Q,
|
|
34478
|
-
table:
|
|
34479
|
-
getRowIds:
|
|
34480
|
-
showPageSizeSelector:
|
|
34481
|
-
tableLoading:
|
|
34478
|
+
table: NJ,
|
|
34479
|
+
getRowIds: eJ,
|
|
34480
|
+
showPageSizeSelector: hJ,
|
|
34481
|
+
tableLoading: cJ
|
|
34482
34482
|
})
|
|
34483
34483
|
]
|
|
34484
34484
|
})
|
|
@@ -34561,62 +34561,62 @@ ${n}` : "Please fix this error.";
|
|
|
34561
34561
|
t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
|
|
34562
34562
|
let y = v, w;
|
|
34563
34563
|
t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
|
|
34564
|
-
let
|
|
34565
|
-
t[9] !== f || t[10] !== n ? (
|
|
34566
|
-
let
|
|
34567
|
-
t[12] !== d || t[13] !== n ? (
|
|
34564
|
+
let A = w, M;
|
|
34565
|
+
t[9] !== f || t[10] !== n ? (M = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = M) : M = t[11];
|
|
34566
|
+
let I = M, z = !isStaticNotebook(), [U, K] = (0, import_react.useState)(true), q;
|
|
34567
|
+
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34568
34568
|
n == null ? void 0 : n({
|
|
34569
34569
|
prompt: `My code gives the following error:
|
|
34570
34570
|
|
|
34571
34571
|
${d}`,
|
|
34572
34572
|
triggerImmediately: e2
|
|
34573
34573
|
});
|
|
34574
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34575
|
-
let
|
|
34574
|
+
}, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
|
|
34575
|
+
let J = q, Q;
|
|
34576
34576
|
t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
|
|
34577
34577
|
_({
|
|
34578
34578
|
prompt: buildFixInChatPrompt(a, d)
|
|
34579
34579
|
});
|
|
34580
34580
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34581
|
-
let
|
|
34582
|
-
t[19] ===
|
|
34583
|
-
let
|
|
34584
|
-
t[21] ===
|
|
34581
|
+
let tJ = Q, nJ;
|
|
34582
|
+
t[19] === U ? nJ = t[20] : (nJ = () => K(!U), t[19] = U, t[20] = nJ);
|
|
34583
|
+
let rJ = U ? "Collapse traceback" : "Expand traceback", iJ;
|
|
34584
|
+
t[21] === U ? iJ = t[22] : (iJ = U ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34585
34585
|
className: "h-3 w-3"
|
|
34586
34586
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34587
34587
|
className: "h-3 w-3"
|
|
34588
|
-
}), t[21] =
|
|
34589
|
-
let
|
|
34590
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34588
|
+
}), t[21] = U, t[22] = iJ);
|
|
34589
|
+
let aJ;
|
|
34590
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34591
34591
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34592
34592
|
children: "Traceback"
|
|
34593
|
-
}), t[23] =
|
|
34594
|
-
let
|
|
34595
|
-
t[24] !==
|
|
34593
|
+
}), t[23] = aJ) : aJ = t[23];
|
|
34594
|
+
let oJ;
|
|
34595
|
+
t[24] !== U || t[25] !== iJ || t[26] !== nJ || t[27] !== rJ ? (oJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34596
34596
|
type: "button",
|
|
34597
|
-
onClick:
|
|
34598
|
-
"aria-expanded":
|
|
34599
|
-
"aria-label":
|
|
34597
|
+
onClick: nJ,
|
|
34598
|
+
"aria-expanded": U,
|
|
34599
|
+
"aria-label": rJ,
|
|
34600
34600
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34601
34601
|
children: [
|
|
34602
|
-
|
|
34603
|
-
|
|
34602
|
+
iJ,
|
|
34603
|
+
aJ
|
|
34604
34604
|
]
|
|
34605
|
-
}), t[24] =
|
|
34606
|
-
let
|
|
34607
|
-
t[29] !== s || t[30] !==
|
|
34605
|
+
}), t[24] = U, t[25] = iJ, t[26] = nJ, t[27] = rJ, t[28] = oJ) : oJ = t[28];
|
|
34606
|
+
let sJ;
|
|
34607
|
+
t[29] !== s || t[30] !== U ? (sJ = U && (0, import_jsx_runtime.jsx)("div", {
|
|
34608
34608
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34609
34609
|
children: s
|
|
34610
|
-
}), t[29] = s, t[30] =
|
|
34611
|
-
let
|
|
34612
|
-
t[32] !==
|
|
34610
|
+
}), t[29] = s, t[30] = U, t[31] = sJ) : sJ = t[31];
|
|
34611
|
+
let cJ;
|
|
34612
|
+
t[32] !== J || t[33] !== tJ || t[34] !== I ? (cJ = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34613
34613
|
tooltip: "Fix with AI",
|
|
34614
|
-
openPrompt: () =>
|
|
34615
|
-
applyAutofix: () =>
|
|
34616
|
-
openChat:
|
|
34617
|
-
}), t[32] =
|
|
34618
|
-
let
|
|
34619
|
-
t[36] !==
|
|
34614
|
+
openPrompt: () => J(false),
|
|
34615
|
+
applyAutofix: () => J(true),
|
|
34616
|
+
openChat: tJ
|
|
34617
|
+
}), t[32] = J, t[33] = tJ, t[34] = I, t[35] = cJ) : cJ = t[35];
|
|
34618
|
+
let lJ;
|
|
34619
|
+
t[36] !== A || t[37] !== y ? (lJ = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34620
34620
|
content: "Attach pdb to the exception point.",
|
|
34621
34621
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34622
34622
|
size: "xs",
|
|
@@ -34633,9 +34633,9 @@ ${d}`,
|
|
|
34633
34633
|
"Launch debugger"
|
|
34634
34634
|
]
|
|
34635
34635
|
})
|
|
34636
|
-
}), t[36] =
|
|
34637
|
-
let
|
|
34638
|
-
t[39] !== d || t[40] !== i ? (
|
|
34636
|
+
}), t[36] = A, t[37] = y, t[38] = lJ) : lJ = t[38];
|
|
34637
|
+
let uJ;
|
|
34638
|
+
t[39] !== d || t[40] !== i ? (uJ = z && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34639
34639
|
children: [
|
|
34640
34640
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34641
34641
|
asChild: true,
|
|
@@ -34703,25 +34703,25 @@ ${d}`,
|
|
|
34703
34703
|
]
|
|
34704
34704
|
})
|
|
34705
34705
|
]
|
|
34706
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34707
|
-
let
|
|
34708
|
-
t[42] !==
|
|
34706
|
+
}), t[39] = d, t[40] = i, t[41] = uJ) : uJ = t[41];
|
|
34707
|
+
let dJ;
|
|
34708
|
+
t[42] !== cJ || t[43] !== lJ || t[44] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34709
34709
|
className: "flex gap-2",
|
|
34710
34710
|
children: [
|
|
34711
|
-
|
|
34712
|
-
|
|
34713
|
-
|
|
34711
|
+
cJ,
|
|
34712
|
+
lJ,
|
|
34713
|
+
uJ
|
|
34714
34714
|
]
|
|
34715
|
-
}), t[42] =
|
|
34716
|
-
let
|
|
34717
|
-
return t[46] !==
|
|
34715
|
+
}), t[42] = cJ, t[43] = lJ, t[44] = uJ, t[45] = dJ) : dJ = t[45];
|
|
34716
|
+
let fJ;
|
|
34717
|
+
return t[46] !== oJ || t[47] !== sJ || t[48] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34718
34718
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34719
34719
|
children: [
|
|
34720
|
-
|
|
34721
|
-
|
|
34722
|
-
|
|
34720
|
+
oJ,
|
|
34721
|
+
sJ,
|
|
34722
|
+
dJ
|
|
34723
34723
|
]
|
|
34724
|
-
}), t[46] =
|
|
34724
|
+
}), t[46] = oJ, t[47] = sJ, t[48] = dJ, t[49] = fJ) : fJ = t[49], fJ;
|
|
34725
34725
|
};
|
|
34726
34726
|
function lastLine(e) {
|
|
34727
34727
|
var _a2, _b;
|
|
@@ -34731,7 +34731,7 @@ ${d}`,
|
|
|
34731
34731
|
const replaceTracebackFilenames = (e) => {
|
|
34732
34732
|
let t = getTracebackInfo(e);
|
|
34733
34733
|
if ((t == null ? void 0 : t.kind) === "cell") {
|
|
34734
|
-
let e2 = (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
|
|
34734
|
+
let e2 = getFeatureFlag("debugger"), n = e2 ? (0, import_jsx_runtime.jsx)(ToggleBreakpointContent, {}) : (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
|
|
34735
34735
|
return (0, import_jsx_runtime.jsx)("span", {
|
|
34736
34736
|
className: "nb",
|
|
34737
34737
|
children: (0, import_jsx_runtime.jsxs)("span", {
|
|
@@ -34742,14 +34742,18 @@ ${d}`,
|
|
|
34742
34742
|
lineNumber: t.lineNumber
|
|
34743
34743
|
}),
|
|
34744
34744
|
!isWasm() && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34745
|
-
content:
|
|
34745
|
+
content: n,
|
|
34746
34746
|
children: (0, import_jsx_runtime.jsx)("button", {
|
|
34747
34747
|
type: "button",
|
|
34748
34748
|
className: "ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",
|
|
34749
34749
|
children: (0, import_jsx_runtime.jsx)(BugPlay, {
|
|
34750
34750
|
onClick: () => {
|
|
34751
|
-
|
|
34752
|
-
|
|
34751
|
+
if (e2 && !isStaticNotebook()) {
|
|
34752
|
+
toggleBreakpoint(t.cellId, t.lineNumber);
|
|
34753
|
+
return;
|
|
34754
|
+
}
|
|
34755
|
+
let n2 = getCellEditorView(t.cellId);
|
|
34756
|
+
n2 && insertDebuggerAtLine(n2, t.lineNumber);
|
|
34753
34757
|
},
|
|
34754
34758
|
className: "h-3 w-3"
|
|
34755
34759
|
})
|
|
@@ -34798,6 +34802,11 @@ ${d}`,
|
|
|
34798
34802
|
" at this line"
|
|
34799
34803
|
]
|
|
34800
34804
|
}), e[0] = t) : t = e[0], t;
|
|
34805
|
+
}, ToggleBreakpointContent = () => {
|
|
34806
|
+
let e = (0, import_compiler_runtime$7.c)(1), t;
|
|
34807
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
34808
|
+
children: "Toggle a breakpoint at this line"
|
|
34809
|
+
}), e[0] = t) : t = e[0], t;
|
|
34801
34810
|
};
|
|
34802
34811
|
function renderMimeIcon(e) {
|
|
34803
34812
|
switch (e) {
|
|
@@ -36198,7 +36207,7 @@ ${d}`,
|
|
|
36198
36207
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36199
36208
|
}
|
|
36200
36209
|
}
|
|
36201
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-
|
|
36210
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev46");
|
|
36202
36211
|
showCodeInRunModeAtom = atom(true);
|
|
36203
36212
|
atom(null);
|
|
36204
36213
|
var import_compiler_runtime = require_compiler_runtime();
|