@marimo-team/islands 0.23.17-dev30 → 0.23.17-dev32
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-CnjFz0bt.js → chat-ui-Cjd9kIcO.js} +56 -56
- package/dist/{common-BxnkCaMd.js → common-XU-hyhVj.js} +629 -629
- package/dist/{html-to-image-B8KJvlou.js → html-to-image-Bgb6aaXi.js} +2154 -2150
- package/dist/main.js +668 -675
- package/dist/{process-output-CjS9wS4l.js → process-output-D2Oxf11p.js} +1 -1
- package/dist/{reveal-component-D8ttQmaR.js → reveal-component-DEpX3cZP.js} +2 -2
- package/package.json +1 -1
- package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
- package/src/components/data-table/charts/schemas.ts +5 -2
- package/src/components/datasets/__tests__/icons.test.ts +21 -0
- package/src/components/datasets/icons.tsx +10 -0
- package/src/components/datasources/__tests__/components.test.tsx +29 -0
- package/src/components/datasources/components.tsx +8 -3
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
- package/src/plugins/impl/data-frames/schema.ts +4 -1
|
@@ -6,7 +6,7 @@ import { _ as Functions, f as composeRefs, g as Logger, h as cn, m as Events, n
|
|
|
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-D45ZUY3j.js";
|
|
9
|
-
import { B as isDataURLString,
|
|
9
|
+
import { B as isDataURLString, Bt as PluralWord, C as Accordion, Cn as jsonToMarkdown, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, It as getFeatureFlag, J as getCellEditorView, L as base64ToUint8Array, Ln as NotebookPen, M as DotFilledIcon, Mt as useChromeActions, N as PinLeftIcon, Nn as Wrench, Nt as adaptForLocalStorage, On as Close$1, Ot as goToCellLine, P as PinRightIcon, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, Rn as Minus, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Un as Eye, Ut as getDataTypeColor, Vn as Info, Wn as ExternalLink, Wt as resolveDataType, Xn as esm_default, Xt as getRequestClient, Yn as Braces, Zn as import_lib, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, c as Popover, cn as getTracebackInfo, ct as AnsiUp, d as PopoverTrigger, dn as filenameAtom, ft as sanitizeHtml, gn as HTMLCellId, hn as CellOutputId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as elementContainsMarimoCellFile, pt as DATA_CELL_ID, qn as CircleX, r as MarkdownRenderer, rt as useCellIds, sn as extractAllTracebackInfo, t as toPng, u as PopoverContent, w as AccordionContent, yt as Checkbox, z as extractBase64FromDataURL, zn as LoaderCircle, __tla as __tla_0 } from "./html-to-image-Bgb6aaXi.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-DgzzIPS4.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CLPBATCv.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-ZCfHadYP.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, pJ = c.top - E, mJ = c.bottom + O, hJ = c.left - A, gJ = c.right + M, _J = e === _ ? 0 : Q + $, vJ = e === _ ? 0 : q + J, yJ = e.offsetWidth - e.clientWidth - _J, bJ = e.offsetHeight - e.clientHeight - vJ, xJ = v + q + I, SJ = y - J - z - bJ, CJ = S + Q + U, wJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? CJ += yJ : wJ -= yJ;
|
|
2066
|
+
let TJ = pJ < xJ || mJ > SJ, EJ = hJ < CJ || gJ > wJ;
|
|
2067
|
+
if (TJ && i === "start") o += pJ - xJ;
|
|
2068
|
+
else if (TJ && i === "center") o += (pJ + mJ) / 2 - (xJ + SJ) / 2;
|
|
2069
|
+
else if (TJ && i === "end") o += mJ - SJ;
|
|
2070
|
+
else if (TJ && i === "nearest") {
|
|
2071
|
+
let e2 = pJ - xJ, t2 = mJ - SJ;
|
|
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 (EJ && a === "start") s += hJ - CJ;
|
|
2075
|
+
else if (EJ && a === "center") s += (hJ + gJ) / 2 - (CJ + wJ) / 2;
|
|
2076
|
+
else if (EJ && a === "end") s += gJ - wJ;
|
|
2077
|
+
else if (EJ && a === "nearest") {
|
|
2078
|
+
let e2 = hJ - CJ, t2 = gJ - wJ;
|
|
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 pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += pJ;
|
|
5190
|
+
let mJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < mJ && (mJ = y), n.height = Math.min(n.height, mJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += pJ;
|
|
5192
|
+
let hJ = {}, gJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], _J = gJ + 0.5 * t[z], vJ = S / 2 + w, yJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), bJ = n[z] - yJ - S / 2 - w;
|
|
5193
|
+
hJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(_J, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), vJ, bJ), { placement: U, crossPlacement: K } = A, S ? gJ = hJ[I] : K === "right" ? gJ += t[z] : K === "center" && (gJ += t[z] / 2);
|
|
5194
|
+
let xJ = U === "left" || U === "top" ? n[M] : 0, SJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? gJ : xJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? gJ : xJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: mJ,
|
|
5201
|
+
arrowOffsetLeft: hJ.left,
|
|
5202
|
+
arrowOffsetTop: hJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: SJ
|
|
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 pJ = $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 mJ = $bdb11010cef70236$export$f680877a34711e37(), hJ = !t.isDisabled && !t.isReadOnly && e.isEditable, gJ = e.type === "literal" ? "" : s.of(e.type), _J = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${gJ}${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 vJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
vJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (vJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, _J, {
|
|
7088
|
+
id: mJ,
|
|
7089
|
+
...pJ,
|
|
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: hJ,
|
|
7095
|
+
suppressContentEditableWarning: hJ,
|
|
7096
|
+
spellCheck: hJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: hJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: hJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !hJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: vJ,
|
|
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 pJ = (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
|
+
]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null, gJ = (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: hJ,
|
|
10369
|
+
isValueInvalid: mJ,
|
|
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(gJ);
|
|
10395
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
|
|
10396
10396
|
},
|
|
10397
10397
|
focusPreviousPage() {
|
|
10398
|
-
let e2 = M.subtract(
|
|
10399
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10398
|
+
let e2 = M.subtract(gJ);
|
|
10399
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, 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
|
+
}, [$, pJ] = (0, import_react.useState)(false), { isDateUnavailable: mJ } = e, hJ = (0, import_react.useMemo)(() => !h || v ? false : mJ && (mJ(h.start) || mJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10537
|
+
mJ,
|
|
10538
10538
|
h,
|
|
10539
10539
|
v,
|
|
10540
10540
|
c,
|
|
10541
10541
|
d
|
|
10542
|
-
]),
|
|
10542
|
+
]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "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: _J,
|
|
10551
|
+
isValueInvalid: gJ,
|
|
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: pJ
|
|
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
|
+
]), pJ = (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
|
+
]), [mJ, hJ] = (0, import_react.useState)(M), [gJ, _J] = (0, import_react.useState)(S), [vJ, yJ] = (0, import_react.useState)(w);
|
|
11773
|
+
(M !== mJ || w !== vJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, gJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), hJ(M), _J(S), yJ(w), z(I));
|
|
11774
|
+
let bJ = (t2) => {
|
|
11775
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(pJ)) 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(pJ)) {
|
|
11779
11779
|
let e2 = t2.toValue(M ?? $);
|
|
11780
|
-
if (t2.validate(e2,
|
|
11780
|
+
if (t2.validate(e2, pJ)) {
|
|
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
|
+
}, xJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11791
11791
|
I,
|
|
11792
11792
|
y,
|
|
11793
11793
|
M,
|
|
11794
11794
|
$
|
|
11795
|
-
]),
|
|
11796
|
-
|
|
11795
|
+
]), SJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(xJ, I, J, Q, S, t, _), [
|
|
11796
|
+
xJ,
|
|
11797
11797
|
J,
|
|
11798
11798
|
Q,
|
|
11799
11799
|
I,
|
|
11800
11800
|
S,
|
|
11801
11801
|
t,
|
|
11802
11802
|
_
|
|
11803
|
-
]),
|
|
11804
|
-
|
|
11805
|
-
},
|
|
11803
|
+
]), CJ = (e2, t2) => {
|
|
11804
|
+
bJ(I.cycle(e2, t2, $, pJ));
|
|
11805
|
+
}, wJ = (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
|
+
]), TJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11812
11812
|
...e,
|
|
11813
11813
|
value: E,
|
|
11814
|
-
builtinValidation:
|
|
11815
|
-
}),
|
|
11814
|
+
builtinValidation: wJ
|
|
11815
|
+
}), EJ = TJ.displayValidation.isInvalid, DJ = e.validationState || (EJ ? "invalid" : null);
|
|
11816
11816
|
return {
|
|
11817
|
-
...
|
|
11817
|
+
...TJ,
|
|
11818
11818
|
value: M,
|
|
11819
11819
|
defaultValue: e.defaultValue ?? A,
|
|
11820
|
-
dateValue:
|
|
11820
|
+
dateValue: xJ,
|
|
11821
11821
|
calendar: S,
|
|
11822
|
-
setValue:
|
|
11823
|
-
segments:
|
|
11822
|
+
setValue: bJ,
|
|
11823
|
+
segments: SJ,
|
|
11824
11824
|
dateFormatter: J,
|
|
11825
|
-
validationState:
|
|
11826
|
-
isInvalid:
|
|
11825
|
+
validationState: DJ,
|
|
11826
|
+
isInvalid: EJ,
|
|
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
|
+
CJ(e2, 1);
|
|
11834
11834
|
},
|
|
11835
11835
|
decrement(e2) {
|
|
11836
|
-
|
|
11836
|
+
CJ(e2, -1);
|
|
11837
11837
|
},
|
|
11838
11838
|
incrementPage(e2) {
|
|
11839
|
-
|
|
11839
|
+
CJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11840
11840
|
},
|
|
11841
11841
|
decrementPage(e2) {
|
|
11842
|
-
|
|
11842
|
+
CJ(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
|
+
bJ(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
|
+
bJ(I.set(e2, t2, $));
|
|
11851
11851
|
},
|
|
11852
11852
|
setSegment(e2, t2) {
|
|
11853
|
-
|
|
11853
|
+
bJ(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(pJ)) {
|
|
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)), bJ(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(xJ) : "";
|
|
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, pJ = 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: pJ,
|
|
12033
12033
|
isInvalid: $,
|
|
12034
12034
|
formatValue(t2, n2) {
|
|
12035
12035
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15923,33 +15923,33 @@ try {
|
|
|
15923
15923
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15924
15924
|
function y(e2) {
|
|
15925
15925
|
var _a2, _b, _c, _d;
|
|
15926
|
-
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,
|
|
15926
|
+
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, pJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15927
15927
|
h2
|
|
15928
|
-
]),
|
|
15929
|
-
|
|
15930
|
-
]),
|
|
15931
|
-
supportedColorSchemes:
|
|
15932
|
-
defaultLightColorScheme:
|
|
15933
|
-
defaultDarkColorScheme:
|
|
15928
|
+
]), mJ = pJ[t], hJ = mJ || pJ, { colorSchemes: gJ = _, components: _J = v, cssVarPrefix: vJ } = hJ, yJ = Object.keys(gJ).filter((e3) => !!gJ[e3]).join(","), bJ = import_react.useMemo(() => yJ.split(","), [
|
|
15929
|
+
yJ
|
|
15930
|
+
]), xJ = typeof s == "string" ? s : s.light, SJ = typeof s == "string" ? s : s.dark, { mode: CJ, setMode: wJ, systemMode: TJ, lightColorScheme: EJ, darkColorScheme: DJ, colorScheme: OJ, setColorScheme: kJ } = useCurrentColorScheme({
|
|
15931
|
+
supportedColorSchemes: bJ,
|
|
15932
|
+
defaultLightColorScheme: xJ,
|
|
15933
|
+
defaultDarkColorScheme: SJ,
|
|
15934
15934
|
modeStorageKey: y2,
|
|
15935
15935
|
colorSchemeStorageKey: S2,
|
|
15936
|
-
defaultMode:
|
|
15936
|
+
defaultMode: gJ[xJ] && gJ[SJ] ? U : ((_b = (_a2 = gJ[hJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = hJ.palette) == null ? void 0 : _c.mode),
|
|
15937
15937
|
storageManager: E,
|
|
15938
15938
|
storageWindow: O,
|
|
15939
15939
|
noSsr: K
|
|
15940
|
-
}),
|
|
15941
|
-
$ && (
|
|
15942
|
-
let
|
|
15940
|
+
}), AJ = CJ, jJ = OJ;
|
|
15941
|
+
$ && (AJ = Q.mode, jJ = Q.colorScheme);
|
|
15942
|
+
let MJ = import_react.useMemo(() => {
|
|
15943
15943
|
var _a3;
|
|
15944
|
-
let e3 =
|
|
15945
|
-
...
|
|
15946
|
-
components:
|
|
15947
|
-
colorSchemes:
|
|
15948
|
-
cssVarPrefix:
|
|
15944
|
+
let e3 = jJ || hJ.defaultColorScheme, t2 = ((_a3 = hJ.generateThemeVars) == null ? void 0 : _a3.call(hJ)) || hJ.vars, n2 = {
|
|
15945
|
+
...hJ,
|
|
15946
|
+
components: _J,
|
|
15947
|
+
colorSchemes: gJ,
|
|
15948
|
+
cssVarPrefix: vJ,
|
|
15949
15949
|
vars: t2
|
|
15950
15950
|
};
|
|
15951
15951
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15952
|
-
let t3 =
|
|
15952
|
+
let t3 = gJ[e3];
|
|
15953
15953
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15954
15954
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15955
15955
|
...n2[e4],
|
|
@@ -15959,31 +15959,31 @@ try {
|
|
|
15959
15959
|
}
|
|
15960
15960
|
return c ? c(n2) : n2;
|
|
15961
15961
|
}, [
|
|
15962
|
-
mJ,
|
|
15963
|
-
AJ,
|
|
15964
|
-
gJ,
|
|
15965
15962
|
hJ,
|
|
15966
|
-
|
|
15967
|
-
|
|
15963
|
+
jJ,
|
|
15964
|
+
_J,
|
|
15965
|
+
gJ,
|
|
15966
|
+
vJ
|
|
15967
|
+
]), NJ = hJ.colorSchemeSelector;
|
|
15968
15968
|
useEnhancedEffect_default(() => {
|
|
15969
|
-
if (
|
|
15970
|
-
let e3 =
|
|
15971
|
-
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(...
|
|
15969
|
+
if (jJ && M && NJ && NJ !== "media") {
|
|
15970
|
+
let e3 = NJ, t2 = NJ;
|
|
15971
|
+
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(...bJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", jJ));
|
|
15972
15972
|
else {
|
|
15973
|
-
let e4 = t2.replace("%s",
|
|
15973
|
+
let e4 = t2.replace("%s", jJ).match(/\[([^\]]+)\]/);
|
|
15974
15974
|
if (e4) {
|
|
15975
15975
|
let [t3, n2] = e4[1].split("=");
|
|
15976
|
-
n2 ||
|
|
15977
|
-
M.removeAttribute(t3.replace(
|
|
15976
|
+
n2 || bJ.forEach((e5) => {
|
|
15977
|
+
M.removeAttribute(t3.replace(jJ, e5));
|
|
15978
15978
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15979
|
-
} else M.setAttribute(t2,
|
|
15979
|
+
} else M.setAttribute(t2, jJ);
|
|
15980
15980
|
}
|
|
15981
15981
|
}
|
|
15982
15982
|
}, [
|
|
15983
|
-
|
|
15984
|
-
|
|
15983
|
+
jJ,
|
|
15984
|
+
NJ,
|
|
15985
15985
|
M,
|
|
15986
|
-
|
|
15986
|
+
bJ
|
|
15987
15987
|
]), import_react.useEffect(() => {
|
|
15988
15988
|
let e3;
|
|
15989
15989
|
if (w2 && q.current && A) {
|
|
@@ -15996,48 +15996,48 @@ try {
|
|
|
15996
15996
|
clearTimeout(e3);
|
|
15997
15997
|
};
|
|
15998
15998
|
}, [
|
|
15999
|
-
|
|
15999
|
+
jJ,
|
|
16000
16000
|
w2,
|
|
16001
16001
|
A
|
|
16002
16002
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
16003
16003
|
q.current = false;
|
|
16004
16004
|
}), []);
|
|
16005
|
-
let
|
|
16006
|
-
allColorSchemes:
|
|
16007
|
-
colorScheme:
|
|
16008
|
-
darkColorScheme:
|
|
16009
|
-
lightColorScheme:
|
|
16010
|
-
mode:
|
|
16011
|
-
setColorScheme:
|
|
16012
|
-
setMode:
|
|
16013
|
-
systemMode:
|
|
16005
|
+
let PJ = import_react.useMemo(() => ({
|
|
16006
|
+
allColorSchemes: bJ,
|
|
16007
|
+
colorScheme: jJ,
|
|
16008
|
+
darkColorScheme: DJ,
|
|
16009
|
+
lightColorScheme: EJ,
|
|
16010
|
+
mode: AJ,
|
|
16011
|
+
setColorScheme: kJ,
|
|
16012
|
+
setMode: wJ,
|
|
16013
|
+
systemMode: TJ
|
|
16014
16014
|
}), [
|
|
16015
|
-
|
|
16016
|
-
|
|
16015
|
+
bJ,
|
|
16016
|
+
jJ,
|
|
16017
|
+
DJ,
|
|
16017
16018
|
EJ,
|
|
16018
|
-
|
|
16019
|
+
AJ,
|
|
16019
16020
|
kJ,
|
|
16020
|
-
OJ,
|
|
16021
|
-
CJ,
|
|
16022
16021
|
wJ,
|
|
16023
|
-
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16022
|
+
TJ,
|
|
16023
|
+
MJ.colorSchemeSelector
|
|
16024
|
+
]), FJ = true;
|
|
16025
|
+
(z || hJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === vJ) && (FJ = false);
|
|
16026
|
+
let IJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16027
16027
|
children: [
|
|
16028
16028
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16029
|
-
themeId:
|
|
16030
|
-
theme:
|
|
16029
|
+
themeId: mJ ? t : void 0,
|
|
16030
|
+
theme: MJ,
|
|
16031
16031
|
children: d2
|
|
16032
16032
|
}),
|
|
16033
|
-
|
|
16034
|
-
styles: ((_d =
|
|
16033
|
+
FJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16034
|
+
styles: ((_d = MJ.generateStyleSheets) == null ? void 0 : _d.call(MJ)) || []
|
|
16035
16035
|
})
|
|
16036
16036
|
]
|
|
16037
16037
|
});
|
|
16038
|
-
return $ ?
|
|
16039
|
-
value:
|
|
16040
|
-
children:
|
|
16038
|
+
return $ ? IJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16039
|
+
value: PJ,
|
|
16040
|
+
children: IJ
|
|
16041
16041
|
});
|
|
16042
16042
|
}
|
|
16043
16043
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17537,10 +17537,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17537
17537
|
let n = useDefaultProps({
|
|
17538
17538
|
props: e,
|
|
17539
17539
|
name: "MuiInputBase"
|
|
17540
|
-
}), { "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:
|
|
17541
|
-
}, []),
|
|
17540
|
+
}), { "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: pJ, onKeyDown: mJ, onKeyUp: hJ, placeholder: gJ, readOnly: _J, renderSuffix: vJ, rows: yJ, size: bJ, slotProps: xJ = {}, slots: SJ = {}, startAdornment: CJ, type: wJ = "text", value: TJ, ...EJ } = n, DJ = A.value == null ? TJ : A.value, { current: OJ } = import_react.useRef(DJ != null), kJ = import_react.useRef(), AJ = import_react.useCallback((e2) => {
|
|
17541
|
+
}, []), jJ = useForkRef_default(kJ, M, A.ref, AJ), [MJ, NJ] = import_react.useState(false), PJ = useFormControl(), FJ = formControlState({
|
|
17542
17542
|
props: n,
|
|
17543
|
-
muiFormControl:
|
|
17543
|
+
muiFormControl: PJ,
|
|
17544
17544
|
states: [
|
|
17545
17545
|
"color",
|
|
17546
17546
|
"disabled",
|
|
@@ -17551,145 +17551,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17551
17551
|
"filled"
|
|
17552
17552
|
]
|
|
17553
17553
|
});
|
|
17554
|
-
|
|
17555
|
-
!
|
|
17554
|
+
FJ.focused = PJ ? PJ.focused : MJ, import_react.useEffect(() => {
|
|
17555
|
+
!PJ && _ && MJ && (NJ(false), J && J());
|
|
17556
17556
|
}, [
|
|
17557
|
-
|
|
17557
|
+
PJ,
|
|
17558
17558
|
_,
|
|
17559
|
-
|
|
17559
|
+
MJ,
|
|
17560
17560
|
J
|
|
17561
17561
|
]);
|
|
17562
|
-
let
|
|
17563
|
-
isFilled(e2) ?
|
|
17562
|
+
let IJ = PJ && PJ.onFilled, LJ = PJ && PJ.onEmpty, RJ = import_react.useCallback((e2) => {
|
|
17563
|
+
isFilled(e2) ? IJ && IJ() : LJ && LJ();
|
|
17564
17564
|
}, [
|
|
17565
|
-
|
|
17566
|
-
|
|
17565
|
+
IJ,
|
|
17566
|
+
LJ
|
|
17567
17567
|
]);
|
|
17568
17568
|
useEnhancedEffect_default$1(() => {
|
|
17569
|
-
|
|
17570
|
-
value:
|
|
17569
|
+
OJ && RJ({
|
|
17570
|
+
value: DJ
|
|
17571
17571
|
});
|
|
17572
17572
|
}, [
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
|
|
17573
|
+
DJ,
|
|
17574
|
+
RJ,
|
|
17575
|
+
OJ
|
|
17576
17576
|
]);
|
|
17577
|
-
let
|
|
17578
|
-
|
|
17579
|
-
},
|
|
17580
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17581
|
-
},
|
|
17582
|
-
if (!
|
|
17583
|
-
let t3 = e2.target ||
|
|
17577
|
+
let zJ = (e2) => {
|
|
17578
|
+
pJ && pJ(e2), A.onFocus && A.onFocus(e2), PJ && PJ.onFocus ? PJ.onFocus(e2) : NJ(true);
|
|
17579
|
+
}, BJ = (e2) => {
|
|
17580
|
+
J && J(e2), A.onBlur && A.onBlur(e2), PJ && PJ.onBlur ? PJ.onBlur(e2) : NJ(false);
|
|
17581
|
+
}, VJ = (e2, ...t2) => {
|
|
17582
|
+
if (!OJ) {
|
|
17583
|
+
let t3 = e2.target || kJ.current;
|
|
17584
17584
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17585
|
-
|
|
17585
|
+
RJ({
|
|
17586
17586
|
value: t3.value
|
|
17587
17587
|
});
|
|
17588
17588
|
}
|
|
17589
17589
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17590
17590
|
};
|
|
17591
17591
|
import_react.useEffect(() => {
|
|
17592
|
-
|
|
17592
|
+
RJ(kJ.current);
|
|
17593
17593
|
}, []);
|
|
17594
|
-
let
|
|
17595
|
-
|
|
17596
|
-
},
|
|
17597
|
-
K &&
|
|
17594
|
+
let HJ = (e2) => {
|
|
17595
|
+
kJ.current && e2.currentTarget === e2.target && kJ.current.focus(), $ && $(e2);
|
|
17596
|
+
}, UJ = O, WJ = A;
|
|
17597
|
+
K && UJ === "input" && (WJ = yJ ? {
|
|
17598
17598
|
type: void 0,
|
|
17599
|
-
minRows:
|
|
17600
|
-
maxRows:
|
|
17601
|
-
...
|
|
17599
|
+
minRows: yJ,
|
|
17600
|
+
maxRows: yJ,
|
|
17601
|
+
...WJ
|
|
17602
17602
|
} : {
|
|
17603
17603
|
type: void 0,
|
|
17604
17604
|
maxRows: z,
|
|
17605
17605
|
minRows: U,
|
|
17606
|
-
...
|
|
17607
|
-
},
|
|
17608
|
-
let
|
|
17609
|
-
|
|
17606
|
+
...WJ
|
|
17607
|
+
}, UJ = TextareaAutosize_default);
|
|
17608
|
+
let GJ = (e2) => {
|
|
17609
|
+
RJ(e2.animationName === "mui-auto-fill-cancel" ? kJ.current : {
|
|
17610
17610
|
value: "x"
|
|
17611
17611
|
});
|
|
17612
17612
|
};
|
|
17613
17613
|
import_react.useEffect(() => {
|
|
17614
|
-
|
|
17614
|
+
PJ && PJ.setAdornedStart(!!CJ);
|
|
17615
17615
|
}, [
|
|
17616
|
-
|
|
17617
|
-
|
|
17616
|
+
PJ,
|
|
17617
|
+
CJ
|
|
17618
17618
|
]);
|
|
17619
|
-
let
|
|
17619
|
+
let KJ = {
|
|
17620
17620
|
...n,
|
|
17621
|
-
color:
|
|
17622
|
-
disabled:
|
|
17621
|
+
color: FJ.color || "primary",
|
|
17622
|
+
disabled: FJ.disabled,
|
|
17623
17623
|
endAdornment: y,
|
|
17624
|
-
error:
|
|
17625
|
-
focused:
|
|
17626
|
-
formControl:
|
|
17624
|
+
error: FJ.error,
|
|
17625
|
+
focused: FJ.focused,
|
|
17626
|
+
formControl: PJ,
|
|
17627
17627
|
fullWidth: w,
|
|
17628
|
-
hiddenLabel:
|
|
17628
|
+
hiddenLabel: FJ.hiddenLabel,
|
|
17629
17629
|
multiline: K,
|
|
17630
|
-
size:
|
|
17631
|
-
startAdornment:
|
|
17632
|
-
type:
|
|
17633
|
-
},
|
|
17634
|
-
return
|
|
17635
|
-
...
|
|
17636
|
-
...
|
|
17630
|
+
size: FJ.size,
|
|
17631
|
+
startAdornment: CJ,
|
|
17632
|
+
type: wJ
|
|
17633
|
+
}, qJ = useUtilityClasses(KJ), JJ = SJ.root || d.Root || InputBaseRoot, YJ = xJ.root || f.root || {}, XJ = SJ.input || d.Input || InputBaseInput;
|
|
17634
|
+
return WJ = {
|
|
17635
|
+
...WJ,
|
|
17636
|
+
...xJ.input ?? f.input
|
|
17637
17637
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17638
17638
|
children: [
|
|
17639
17639
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17640
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17641
|
-
...
|
|
17640
|
+
(0, import_jsx_runtime.jsxs)(JJ, {
|
|
17641
|
+
...YJ,
|
|
17642
17642
|
ref: t,
|
|
17643
|
-
onClick:
|
|
17644
|
-
...
|
|
17645
|
-
...!isHostComponent_default(
|
|
17643
|
+
onClick: HJ,
|
|
17644
|
+
...EJ,
|
|
17645
|
+
...!isHostComponent_default(JJ) && {
|
|
17646
17646
|
ownerState: {
|
|
17647
|
-
...
|
|
17648
|
-
...
|
|
17647
|
+
...KJ,
|
|
17648
|
+
...YJ.ownerState
|
|
17649
17649
|
}
|
|
17650
17650
|
},
|
|
17651
|
-
className: clsx_default(
|
|
17651
|
+
className: clsx_default(qJ.root, YJ.className, s, _J && "MuiInputBase-readOnly"),
|
|
17652
17652
|
children: [
|
|
17653
|
-
|
|
17653
|
+
CJ,
|
|
17654
17654
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17655
17655
|
value: null,
|
|
17656
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17657
|
-
"aria-invalid":
|
|
17656
|
+
children: (0, import_jsx_runtime.jsx)(XJ, {
|
|
17657
|
+
"aria-invalid": FJ.error,
|
|
17658
17658
|
"aria-describedby": i,
|
|
17659
17659
|
autoComplete: a,
|
|
17660
17660
|
autoFocus: o,
|
|
17661
17661
|
defaultValue: h,
|
|
17662
|
-
disabled:
|
|
17662
|
+
disabled: FJ.disabled,
|
|
17663
17663
|
id: E,
|
|
17664
|
-
onAnimationStart:
|
|
17664
|
+
onAnimationStart: GJ,
|
|
17665
17665
|
name: q,
|
|
17666
|
-
placeholder:
|
|
17667
|
-
readOnly:
|
|
17668
|
-
required:
|
|
17669
|
-
rows:
|
|
17670
|
-
value:
|
|
17671
|
-
onKeyDown:
|
|
17672
|
-
onKeyUp:
|
|
17673
|
-
type:
|
|
17674
|
-
...
|
|
17675
|
-
...!isHostComponent_default(
|
|
17676
|
-
as:
|
|
17666
|
+
placeholder: gJ,
|
|
17667
|
+
readOnly: _J,
|
|
17668
|
+
required: FJ.required,
|
|
17669
|
+
rows: yJ,
|
|
17670
|
+
value: DJ,
|
|
17671
|
+
onKeyDown: mJ,
|
|
17672
|
+
onKeyUp: hJ,
|
|
17673
|
+
type: wJ,
|
|
17674
|
+
...WJ,
|
|
17675
|
+
...!isHostComponent_default(XJ) && {
|
|
17676
|
+
as: UJ,
|
|
17677
17677
|
ownerState: {
|
|
17678
|
-
...
|
|
17679
|
-
...
|
|
17678
|
+
...KJ,
|
|
17679
|
+
...WJ.ownerState
|
|
17680
17680
|
}
|
|
17681
17681
|
},
|
|
17682
|
-
ref:
|
|
17683
|
-
className: clsx_default(
|
|
17684
|
-
onBlur:
|
|
17685
|
-
onChange:
|
|
17686
|
-
onFocus:
|
|
17682
|
+
ref: jJ,
|
|
17683
|
+
className: clsx_default(qJ.input, WJ.className, _J && "MuiInputBase-readOnly"),
|
|
17684
|
+
onBlur: BJ,
|
|
17685
|
+
onChange: VJ,
|
|
17686
|
+
onFocus: zJ
|
|
17687
17687
|
})
|
|
17688
17688
|
}),
|
|
17689
17689
|
y,
|
|
17690
|
-
|
|
17691
|
-
...
|
|
17692
|
-
startAdornment:
|
|
17690
|
+
vJ ? vJ({
|
|
17691
|
+
...FJ,
|
|
17692
|
+
startAdornment: CJ
|
|
17693
17693
|
}) : null
|
|
17694
17694
|
]
|
|
17695
17695
|
})
|
|
@@ -18765,30 +18765,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
M,
|
|
18766
18766
|
i,
|
|
18767
18767
|
a
|
|
18768
|
-
]), 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),
|
|
18769
|
-
|
|
18768
|
+
]), 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), pJ = useTextColor(), mJ = useJsonViewerStore((e2) => e2.colorspace.base0C), hJ = useJsonViewerStore((e2) => e2.colorspace.base0A), gJ = useJsonViewerStore((e2) => e2.displayComma), _J = useJsonViewerStore((e2) => e2.quotesOnKeys), vJ = useJsonViewerStore((e2) => e2.rootName), yJ = U === t, bJ = Number.isInteger(Number(A)), xJ = useJsonViewerStore((e2) => e2.enableAdd), SJ = useJsonViewerStore((e2) => e2.onAdd), CJ = (0, import_react.useMemo)(() => !SJ || a !== void 0 || xJ === false || v === false ? false : typeof xJ == "function" ? !!xJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18769
|
+
SJ,
|
|
18770
18770
|
a,
|
|
18771
18771
|
i,
|
|
18772
|
-
|
|
18772
|
+
xJ,
|
|
18773
18773
|
v,
|
|
18774
18774
|
t
|
|
18775
|
-
]),
|
|
18776
|
-
|
|
18775
|
+
]), wJ = useJsonViewerStore((e2) => e2.enableDelete), TJ = useJsonViewerStore((e2) => e2.onDelete), EJ = (0, import_react.useMemo)(() => !TJ || a !== void 0 || yJ || wJ === false || v === false ? false : typeof wJ == "function" ? !!wJ(i, t) : wJ, [
|
|
18776
|
+
TJ,
|
|
18777
18777
|
a,
|
|
18778
|
-
|
|
18778
|
+
yJ,
|
|
18779
18779
|
i,
|
|
18780
|
-
|
|
18780
|
+
wJ,
|
|
18781
18781
|
v,
|
|
18782
18782
|
t
|
|
18783
|
-
]),
|
|
18784
|
-
|
|
18783
|
+
]), DJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: OJ, copied: kJ } = useClipboard(), AJ = useJsonViewerStore((e2) => e2.highlightUpdates), jJ = (0, import_react.useMemo)(() => !AJ || 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, [
|
|
18784
|
+
AJ,
|
|
18785
18785
|
n,
|
|
18786
18786
|
t
|
|
18787
|
-
]),
|
|
18787
|
+
]), MJ = (0, import_react.useRef)();
|
|
18788
18788
|
(0, import_react.useEffect)(() => {
|
|
18789
|
-
|
|
18789
|
+
MJ.current && jJ && "animate" in MJ.current && MJ.current.animate([
|
|
18790
18790
|
{
|
|
18791
|
-
backgroundColor:
|
|
18791
|
+
backgroundColor: hJ
|
|
18792
18792
|
},
|
|
18793
18793
|
{
|
|
18794
18794
|
backgroundColor: ""
|
|
@@ -18798,22 +18798,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18798
18798
|
easing: "ease-in"
|
|
18799
18799
|
});
|
|
18800
18800
|
}, [
|
|
18801
|
-
|
|
18802
|
-
|
|
18801
|
+
hJ,
|
|
18802
|
+
jJ,
|
|
18803
18803
|
n,
|
|
18804
18804
|
t
|
|
18805
18805
|
]);
|
|
18806
|
-
let
|
|
18806
|
+
let NJ = (0, import_react.useCallback)((e2) => {
|
|
18807
18807
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18808
18808
|
}, [
|
|
18809
18809
|
h,
|
|
18810
18810
|
t
|
|
18811
|
-
]),
|
|
18811
|
+
]), PJ = (0, import_react.useCallback)(() => {
|
|
18812
18812
|
Q(false), E("");
|
|
18813
18813
|
}, [
|
|
18814
18814
|
Q,
|
|
18815
18815
|
E
|
|
18816
|
-
]),
|
|
18816
|
+
]), FJ = (0, import_react.useCallback)((e2) => {
|
|
18817
18817
|
if (Q(false), _) try {
|
|
18818
18818
|
$(i, t, _(e2));
|
|
18819
18819
|
} catch {
|
|
@@ -18824,14 +18824,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
$,
|
|
18825
18825
|
i,
|
|
18826
18826
|
t
|
|
18827
|
-
]),
|
|
18827
|
+
]), IJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18828
18828
|
children: [
|
|
18829
18829
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18830
18830
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18831
18831
|
sx: {
|
|
18832
18832
|
fontSize: ".8rem"
|
|
18833
18833
|
},
|
|
18834
|
-
onClick:
|
|
18834
|
+
onClick: PJ
|
|
18835
18835
|
})
|
|
18836
18836
|
}),
|
|
18837
18837
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18839,22 +18839,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18839
18839
|
sx: {
|
|
18840
18840
|
fontSize: ".8rem"
|
|
18841
18841
|
},
|
|
18842
|
-
onClick: () =>
|
|
18842
|
+
onClick: () => FJ(w)
|
|
18843
18843
|
})
|
|
18844
18844
|
})
|
|
18845
18845
|
]
|
|
18846
18846
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18847
18847
|
children: [
|
|
18848
|
-
|
|
18848
|
+
DJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18849
18849
|
onClick: (e2) => {
|
|
18850
18850
|
e2.preventDefault();
|
|
18851
18851
|
try {
|
|
18852
|
-
|
|
18852
|
+
OJ(i, t, copyString);
|
|
18853
18853
|
} catch (e3) {
|
|
18854
18854
|
console.error(e3);
|
|
18855
18855
|
}
|
|
18856
18856
|
},
|
|
18857
|
-
children:
|
|
18857
|
+
children: kJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18858
18858
|
sx: {
|
|
18859
18859
|
fontSize: ".8rem"
|
|
18860
18860
|
}
|
|
@@ -18865,16 +18865,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18865
18865
|
})
|
|
18866
18866
|
}),
|
|
18867
18867
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18868
|
-
onClick:
|
|
18868
|
+
onClick: NJ,
|
|
18869
18869
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18870
18870
|
sx: {
|
|
18871
18871
|
fontSize: ".8rem"
|
|
18872
18872
|
}
|
|
18873
18873
|
})
|
|
18874
18874
|
}),
|
|
18875
|
-
|
|
18875
|
+
CJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18876
18876
|
onClick: (e2) => {
|
|
18877
|
-
e2.preventDefault(),
|
|
18877
|
+
e2.preventDefault(), SJ == null ? void 0 : SJ(i);
|
|
18878
18878
|
},
|
|
18879
18879
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18880
18880
|
sx: {
|
|
@@ -18882,9 +18882,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18882
18882
|
}
|
|
18883
18883
|
})
|
|
18884
18884
|
}),
|
|
18885
|
-
|
|
18885
|
+
EJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18886
18886
|
onClick: (e2) => {
|
|
18887
|
-
e2.preventDefault(),
|
|
18887
|
+
e2.preventDefault(), TJ == null ? void 0 : TJ(i, t);
|
|
18888
18888
|
},
|
|
18889
18889
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18890
18890
|
sx: {
|
|
@@ -18897,24 +18897,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18897
18897
|
f,
|
|
18898
18898
|
h,
|
|
18899
18899
|
_,
|
|
18900
|
+
kJ,
|
|
18900
18901
|
OJ,
|
|
18901
|
-
DJ,
|
|
18902
18902
|
S,
|
|
18903
18903
|
J,
|
|
18904
|
+
DJ,
|
|
18905
|
+
CJ,
|
|
18904
18906
|
EJ,
|
|
18905
|
-
SJ,
|
|
18906
|
-
TJ,
|
|
18907
18907
|
w,
|
|
18908
18908
|
i,
|
|
18909
18909
|
t,
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
MJ,
|
|
18910
|
+
SJ,
|
|
18911
|
+
TJ,
|
|
18913
18912
|
NJ,
|
|
18914
|
-
PJ
|
|
18915
|
-
|
|
18913
|
+
PJ,
|
|
18914
|
+
FJ
|
|
18915
|
+
]), LJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18916
18916
|
t
|
|
18917
|
-
]),
|
|
18917
|
+
]), RJ = !LJ && !!(c && d), zJ = useJsonViewerStore((e2) => e2.keyRenderer), BJ = (0, import_react.useMemo)(() => ({
|
|
18918
18918
|
path: i,
|
|
18919
18919
|
inspect: K,
|
|
18920
18920
|
setInspect: q,
|
|
@@ -18946,18 +18946,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18946
18946
|
className: "data-key",
|
|
18947
18947
|
sx: {
|
|
18948
18948
|
lineHeight: 1.5,
|
|
18949
|
-
color:
|
|
18949
|
+
color: pJ,
|
|
18950
18950
|
letterSpacing: 0.5,
|
|
18951
18951
|
opacity: 0.8
|
|
18952
18952
|
},
|
|
18953
18953
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18954
|
-
e2.isDefaultPrevented() ||
|
|
18954
|
+
e2.isDefaultPrevented() || LJ || q((e3) => !e3);
|
|
18955
18955
|
}, [
|
|
18956
|
-
|
|
18956
|
+
LJ,
|
|
18957
18957
|
q
|
|
18958
18958
|
]),
|
|
18959
18959
|
children: [
|
|
18960
|
-
|
|
18960
|
+
RJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18961
18961
|
className: "data-key-toggle-expanded",
|
|
18962
18962
|
sx: {
|
|
18963
18963
|
fontSize: ".8rem",
|
|
@@ -18975,27 +18975,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18975
18975
|
}
|
|
18976
18976
|
}) : null,
|
|
18977
18977
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18978
|
-
ref:
|
|
18978
|
+
ref: MJ,
|
|
18979
18979
|
className: "data-key-key",
|
|
18980
18980
|
component: "span",
|
|
18981
|
-
children:
|
|
18981
|
+
children: yJ && O === 0 ? vJ === false ? null : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18982
18982
|
children: [
|
|
18983
18983
|
'"',
|
|
18984
|
-
|
|
18984
|
+
vJ,
|
|
18985
18985
|
'"'
|
|
18986
18986
|
]
|
|
18987
18987
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18988
|
-
children:
|
|
18989
|
-
}) :
|
|
18990
|
-
...
|
|
18991
|
-
}) : a === void 0 && (
|
|
18988
|
+
children: vJ
|
|
18989
|
+
}) : zJ.when(BJ) ? (0, import_jsx_runtime.jsx)(zJ, {
|
|
18990
|
+
...BJ
|
|
18991
|
+
}) : a === void 0 && (bJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18992
18992
|
component: "span",
|
|
18993
18993
|
style: {
|
|
18994
|
-
color:
|
|
18995
|
-
userSelect:
|
|
18994
|
+
color: mJ,
|
|
18995
|
+
userSelect: bJ ? "none" : "auto"
|
|
18996
18996
|
},
|
|
18997
18997
|
children: A
|
|
18998
|
-
}) :
|
|
18998
|
+
}) : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18999
18999
|
children: [
|
|
19000
19000
|
'"',
|
|
19001
19001
|
A,
|
|
@@ -19005,7 +19005,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19005
19005
|
children: A
|
|
19006
19006
|
}))
|
|
19007
19007
|
}),
|
|
19008
|
-
|
|
19008
|
+
yJ ? vJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19009
19009
|
className: "data-key-colon",
|
|
19010
19010
|
sx: {
|
|
19011
19011
|
mr: 0.5
|
|
@@ -19018,38 +19018,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19018
19018
|
".data-key-key:empty + &": {
|
|
19019
19019
|
display: "none"
|
|
19020
19020
|
},
|
|
19021
|
-
userSelect:
|
|
19021
|
+
userSelect: bJ ? "none" : "auto"
|
|
19022
19022
|
},
|
|
19023
19023
|
children: ":"
|
|
19024
19024
|
}),
|
|
19025
19025
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19026
|
-
...
|
|
19026
|
+
...BJ
|
|
19027
19027
|
}),
|
|
19028
|
-
I &&
|
|
19028
|
+
I && RJ && K && IJ
|
|
19029
19029
|
]
|
|
19030
19030
|
}),
|
|
19031
19031
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19032
19032
|
path: i,
|
|
19033
19033
|
value: w,
|
|
19034
19034
|
setValue: E,
|
|
19035
|
-
abortEditing:
|
|
19036
|
-
commitEditing:
|
|
19035
|
+
abortEditing: PJ,
|
|
19036
|
+
commitEditing: FJ
|
|
19037
19037
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19038
|
-
...
|
|
19038
|
+
...BJ
|
|
19039
19039
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19040
19040
|
component: "span",
|
|
19041
19041
|
className: "data-value-fallback",
|
|
19042
19042
|
children: `fallback: ${t}`
|
|
19043
19043
|
}),
|
|
19044
19044
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19045
|
-
...
|
|
19045
|
+
...BJ
|
|
19046
19046
|
}),
|
|
19047
|
-
!o &&
|
|
19047
|
+
!o && gJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19048
19048
|
children: ","
|
|
19049
19049
|
}),
|
|
19050
|
-
I &&
|
|
19051
|
-
I && !
|
|
19052
|
-
!I && J &&
|
|
19050
|
+
I && RJ && !K && IJ,
|
|
19051
|
+
I && !RJ && IJ,
|
|
19052
|
+
!I && J && IJ
|
|
19053
19053
|
]
|
|
19054
19054
|
});
|
|
19055
19055
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20135,9 +20135,9 @@ ${n}` : "Please fix this error.";
|
|
|
20135
20135
|
let i2 = e2;
|
|
20136
20136
|
i2 && "exception_type" in i2 && (d = i2.exception_type);
|
|
20137
20137
|
}
|
|
20138
|
-
let y, S, w, E,
|
|
20138
|
+
let y, S, w, E, O, A;
|
|
20139
20139
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20140
|
-
let e2 = n.filter(_temp8),
|
|
20140
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), mJ = n.filter(_temp16), hJ = n.filter(_temp17), gJ = n.filter(_temp18), _J;
|
|
20141
20141
|
t[17] === s ? _J = t[18] : (_J = () => {
|
|
20142
20142
|
s.openApplication("scratchpad");
|
|
20143
20143
|
}, t[17] = s, t[18] = _J);
|
|
@@ -20233,7 +20233,7 @@ ${n}` : "Please fix this error.";
|
|
|
20233
20233
|
]
|
|
20234
20234
|
})
|
|
20235
20235
|
]
|
|
20236
|
-
}, "setup-refs")),
|
|
20236
|
+
}, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20237
20237
|
children: [
|
|
20238
20238
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20239
20239
|
className: "text-muted-foreground font-medium",
|
|
@@ -20241,10 +20241,10 @@ ${n}` : "Please fix this error.";
|
|
|
20241
20241
|
}),
|
|
20242
20242
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
20243
20243
|
className: "list-disc",
|
|
20244
|
-
children:
|
|
20244
|
+
children: M2.flatMap(_temp24)
|
|
20245
20245
|
}),
|
|
20246
20246
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20247
|
-
errors:
|
|
20247
|
+
errors: M2,
|
|
20248
20248
|
cellId: i
|
|
20249
20249
|
}),
|
|
20250
20250
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20279,17 +20279,17 @@ ${n}` : "Please fix this error.";
|
|
|
20279
20279
|
]
|
|
20280
20280
|
})
|
|
20281
20281
|
]
|
|
20282
|
-
}, "cycle")),
|
|
20283
|
-
let e3 =
|
|
20282
|
+
}, "cycle")), I2.length > 0) {
|
|
20283
|
+
let e3 = I2[0].name;
|
|
20284
20284
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20285
20285
|
children: [
|
|
20286
20286
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20287
20287
|
className: "text-muted-foreground font-medium",
|
|
20288
20288
|
children: "This cell redefines variables from other cells."
|
|
20289
20289
|
}),
|
|
20290
|
-
|
|
20290
|
+
I2.map(_temp26),
|
|
20291
20291
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20292
|
-
errors:
|
|
20292
|
+
errors: I2,
|
|
20293
20293
|
cellId: i
|
|
20294
20294
|
}),
|
|
20295
20295
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20360,11 +20360,11 @@ ${n}` : "Please fix this error.";
|
|
|
20360
20360
|
]
|
|
20361
20361
|
}, "multiple-defs"));
|
|
20362
20362
|
}
|
|
20363
|
-
return
|
|
20363
|
+
return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20364
20364
|
children: [
|
|
20365
|
-
|
|
20365
|
+
z.map(_temp27),
|
|
20366
20366
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20367
|
-
errors:
|
|
20367
|
+
errors: z,
|
|
20368
20368
|
cellId: i
|
|
20369
20369
|
}),
|
|
20370
20370
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20402,17 +20402,17 @@ ${n}` : "Please fix this error.";
|
|
|
20402
20402
|
]
|
|
20403
20403
|
})
|
|
20404
20404
|
]
|
|
20405
|
-
}, "import-star")),
|
|
20405
|
+
}, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20406
20406
|
children: [
|
|
20407
|
-
|
|
20407
|
+
U.map(_temp28),
|
|
20408
20408
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20409
|
-
errors:
|
|
20409
|
+
errors: U,
|
|
20410
20410
|
cellId: i
|
|
20411
20411
|
})
|
|
20412
20412
|
]
|
|
20413
|
-
}, "interruption")),
|
|
20413
|
+
}, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20414
20414
|
children: [
|
|
20415
|
-
|
|
20415
|
+
K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20416
20416
|
className: "my-2",
|
|
20417
20417
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20418
20418
|
children: [
|
|
@@ -20497,46 +20497,46 @@ ${n}` : "Please fix this error.";
|
|
|
20497
20497
|
]
|
|
20498
20498
|
})
|
|
20499
20499
|
}, `exception-${t3}`)),
|
|
20500
|
-
|
|
20500
|
+
K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
|
|
20501
20501
|
children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
|
|
20502
20502
|
}),
|
|
20503
20503
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20504
|
-
errors:
|
|
20504
|
+
errors: K,
|
|
20505
20505
|
cellId: i
|
|
20506
20506
|
})
|
|
20507
20507
|
]
|
|
20508
|
-
}, "exception")),
|
|
20508
|
+
}, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20509
20509
|
children: [
|
|
20510
|
-
|
|
20510
|
+
q.map(_temp30),
|
|
20511
20511
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20512
|
-
errors:
|
|
20512
|
+
errors: q,
|
|
20513
20513
|
cellId: i
|
|
20514
20514
|
}),
|
|
20515
20515
|
(0, import_jsx_runtime.jsx)(Tip, {
|
|
20516
|
-
children:
|
|
20516
|
+
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."
|
|
20517
20517
|
})
|
|
20518
20518
|
]
|
|
20519
|
-
}, "strict-exception")),
|
|
20519
|
+
}, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20520
20520
|
children: [
|
|
20521
|
-
|
|
20521
|
+
J.map(_temp32),
|
|
20522
20522
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20523
|
-
errors:
|
|
20523
|
+
errors: J,
|
|
20524
20524
|
cellId: i
|
|
20525
20525
|
})
|
|
20526
20526
|
]
|
|
20527
|
-
}, "internal")),
|
|
20527
|
+
}, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20528
20528
|
children: [
|
|
20529
|
-
|
|
20529
|
+
Q.map(_temp33),
|
|
20530
20530
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20531
|
-
errors:
|
|
20531
|
+
errors: Q,
|
|
20532
20532
|
cellId: i
|
|
20533
20533
|
})
|
|
20534
20534
|
]
|
|
20535
|
-
}, "ancestor-prevented")),
|
|
20535
|
+
}, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20536
20536
|
children: [
|
|
20537
|
-
|
|
20537
|
+
$.map(_temp34),
|
|
20538
20538
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20539
|
-
errors:
|
|
20539
|
+
errors: $,
|
|
20540
20540
|
cellId: i
|
|
20541
20541
|
})
|
|
20542
20542
|
]
|
|
@@ -20578,22 +20578,22 @@ ${n}` : "Please fix this error.";
|
|
|
20578
20578
|
]
|
|
20579
20579
|
}), t[24] = bJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
|
|
20580
20580
|
let CJ = SJ;
|
|
20581
|
-
y = Alert, E = f, t[27] === a ?
|
|
20582
|
-
} else y = t[11], S = t[12], w = t[13], E = t[14],
|
|
20583
|
-
let
|
|
20584
|
-
t[29] !== S || t[30] !== w ? (
|
|
20581
|
+
y = Alert, E = f, t[27] === a ? 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", a), t[27] = a, t[28] = O), A = CJ, S = "flex flex-col gap-4", w = yJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, 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;
|
|
20582
|
+
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20583
|
+
let M;
|
|
20584
|
+
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
20585
20585
|
className: S,
|
|
20586
20586
|
children: w
|
|
20587
|
-
}), t[29] = S, t[30] = w, t[31] =
|
|
20588
|
-
let
|
|
20589
|
-
return t[32] !== y || t[33] !== E || t[34] !==
|
|
20587
|
+
}), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
|
|
20588
|
+
let I;
|
|
20589
|
+
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
|
|
20590
20590
|
variant: E,
|
|
20591
|
-
className:
|
|
20591
|
+
className: O,
|
|
20592
20592
|
children: [
|
|
20593
|
-
|
|
20594
|
-
|
|
20593
|
+
A,
|
|
20594
|
+
M
|
|
20595
20595
|
]
|
|
20596
|
-
}), t[32] = y, t[33] = E, t[34] =
|
|
20596
|
+
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
|
|
20597
20597
|
};
|
|
20598
20598
|
function _temp$10(e) {
|
|
20599
20599
|
return e.type === "interruption";
|
|
@@ -26654,7 +26654,7 @@ ${n}` : "Please fix this error.";
|
|
|
26654
26654
|
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 }) {
|
|
26655
26655
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26656
26656
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26657
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26657
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), pJ = (0, import_react.useRef)({
|
|
26658
26658
|
callbacks: {
|
|
26659
26659
|
onCollapse: f,
|
|
26660
26660
|
onExpand: h,
|
|
@@ -26674,12 +26674,12 @@ ${n}` : "Please fix this error.";
|
|
|
26674
26674
|
(0, import_react.useRef)({
|
|
26675
26675
|
didLogMissingDefaultSizeWarning: false
|
|
26676
26676
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26677
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26677
|
+
let { callbacks: e2, constraints: t2 } = pJ.current, o2 = {
|
|
26678
26678
|
...t2
|
|
26679
26679
|
};
|
|
26680
|
-
|
|
26680
|
+
pJ.current.id = $, pJ.current.idIsFromProps = s !== void 0, pJ.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(pJ.current, o2);
|
|
26681
26681
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26682
|
-
let e2 =
|
|
26682
|
+
let e2 = pJ.current;
|
|
26683
26683
|
return q(e2), () => {
|
|
26684
26684
|
Q(e2);
|
|
26685
26685
|
};
|
|
@@ -26690,25 +26690,25 @@ ${n}` : "Please fix this error.";
|
|
|
26690
26690
|
Q
|
|
26691
26691
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26692
26692
|
collapse: () => {
|
|
26693
|
-
O(
|
|
26693
|
+
O(pJ.current);
|
|
26694
26694
|
},
|
|
26695
26695
|
expand: (e2) => {
|
|
26696
|
-
A(
|
|
26696
|
+
A(pJ.current, e2);
|
|
26697
26697
|
},
|
|
26698
26698
|
getId() {
|
|
26699
26699
|
return $;
|
|
26700
26700
|
},
|
|
26701
26701
|
getSize() {
|
|
26702
|
-
return M(
|
|
26702
|
+
return M(pJ.current);
|
|
26703
26703
|
},
|
|
26704
26704
|
isCollapsed() {
|
|
26705
|
-
return U(
|
|
26705
|
+
return U(pJ.current);
|
|
26706
26706
|
},
|
|
26707
26707
|
isExpanded() {
|
|
26708
|
-
return !U(
|
|
26708
|
+
return !U(pJ.current);
|
|
26709
26709
|
},
|
|
26710
26710
|
resize: (e2) => {
|
|
26711
|
-
J(
|
|
26711
|
+
J(pJ.current, e2);
|
|
26712
26712
|
}
|
|
26713
26713
|
}), [
|
|
26714
26714
|
O,
|
|
@@ -26718,21 +26718,21 @@ ${n}` : "Please fix this error.";
|
|
|
26718
26718
|
$,
|
|
26719
26719
|
J
|
|
26720
26720
|
]);
|
|
26721
|
-
let
|
|
26721
|
+
let mJ = I(pJ.current, a);
|
|
26722
26722
|
return (0, import_react.createElement)(S, {
|
|
26723
26723
|
...w,
|
|
26724
26724
|
children: e,
|
|
26725
26725
|
className: t,
|
|
26726
26726
|
id: $,
|
|
26727
26727
|
style: {
|
|
26728
|
-
...
|
|
26728
|
+
...mJ,
|
|
26729
26729
|
...y
|
|
26730
26730
|
},
|
|
26731
26731
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26732
26732
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26733
26733
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26734
26734
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26735
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26735
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + mJ.flexGrow).toFixed(1)
|
|
26736
26736
|
});
|
|
26737
26737
|
}
|
|
26738
26738
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27517,13 +27517,13 @@ ${n}` : "Please fix this error.";
|
|
|
27517
27517
|
}, [
|
|
27518
27518
|
S,
|
|
27519
27519
|
E
|
|
27520
|
-
]),
|
|
27520
|
+
]), pJ = (0, import_react.useCallback)((e2) => {
|
|
27521
27521
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27522
27522
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27523
|
-
}, []),
|
|
27523
|
+
}, []), mJ = (0, import_react.useCallback)((e2) => {
|
|
27524
27524
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27525
27525
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27526
|
-
}, []),
|
|
27526
|
+
}, []), hJ = (0, import_react.useCallback)((e2) => {
|
|
27527
27527
|
let { panelDataArray: t2 } = K.current;
|
|
27528
27528
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27529
27529
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27555,7 +27555,7 @@ ${n}` : "Please fix this error.";
|
|
|
27555
27555
|
e2.layout = [];
|
|
27556
27556
|
};
|
|
27557
27557
|
}, []);
|
|
27558
|
-
let
|
|
27558
|
+
let gJ = (0, import_react.useCallback)((e2) => {
|
|
27559
27559
|
let t2 = false, n2 = y.current;
|
|
27560
27560
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27561
27561
|
n3.preventDefault();
|
|
@@ -27573,7 +27573,7 @@ ${n}` : "Please fix this error.";
|
|
|
27573
27573
|
}), I2 = !compareLayouts(f2, A2);
|
|
27574
27574
|
(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));
|
|
27575
27575
|
};
|
|
27576
|
-
}, []),
|
|
27576
|
+
}, []), _J = (0, import_react.useCallback)((e2, t2) => {
|
|
27577
27577
|
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);
|
|
27578
27578
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27579
27579
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27585,12 +27585,12 @@ ${n}` : "Please fix this error.";
|
|
|
27585
27585
|
trigger: "imperative-api"
|
|
27586
27586
|
});
|
|
27587
27587
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27588
|
-
}, []),
|
|
27588
|
+
}, []), vJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27589
27589
|
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);
|
|
27590
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27590
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || _J(e2, s2) : h2 < f2 ? _J(e2, f2) : h2 > d2 && _J(e2, d2));
|
|
27591
27591
|
}, [
|
|
27592
|
-
|
|
27593
|
-
]),
|
|
27592
|
+
_J
|
|
27593
|
+
]), yJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27594
27594
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27595
27595
|
if (!y.current) return;
|
|
27596
27596
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27602,14 +27602,14 @@ ${n}` : "Please fix this error.";
|
|
|
27602
27602
|
initialCursorPosition: o2,
|
|
27603
27603
|
initialLayout: i2
|
|
27604
27604
|
});
|
|
27605
|
-
}, []),
|
|
27605
|
+
}, []), bJ = (0, import_react.useCallback)(() => {
|
|
27606
27606
|
w(null);
|
|
27607
|
-
}, []),
|
|
27607
|
+
}, []), xJ = (0, import_react.useCallback)((e2) => {
|
|
27608
27608
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27609
27609
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27610
27610
|
}, [
|
|
27611
27611
|
A
|
|
27612
|
-
]),
|
|
27612
|
+
]), SJ = (0, import_react.useMemo)(() => ({
|
|
27613
27613
|
collapsePanel: q,
|
|
27614
27614
|
direction: i,
|
|
27615
27615
|
dragState: S,
|
|
@@ -27617,15 +27617,15 @@ ${n}` : "Please fix this error.";
|
|
|
27617
27617
|
getPanelSize: Q,
|
|
27618
27618
|
getPanelStyle: $,
|
|
27619
27619
|
groupId: v,
|
|
27620
|
-
isPanelCollapsed:
|
|
27621
|
-
isPanelExpanded:
|
|
27622
|
-
reevaluatePanelConstraints:
|
|
27623
|
-
registerPanel:
|
|
27624
|
-
registerResizeHandle:
|
|
27625
|
-
resizePanel:
|
|
27626
|
-
startDragging:
|
|
27627
|
-
stopDragging:
|
|
27628
|
-
unregisterPanel:
|
|
27620
|
+
isPanelCollapsed: pJ,
|
|
27621
|
+
isPanelExpanded: mJ,
|
|
27622
|
+
reevaluatePanelConstraints: vJ,
|
|
27623
|
+
registerPanel: hJ,
|
|
27624
|
+
registerResizeHandle: gJ,
|
|
27625
|
+
resizePanel: _J,
|
|
27626
|
+
startDragging: yJ,
|
|
27627
|
+
stopDragging: bJ,
|
|
27628
|
+
unregisterPanel: xJ,
|
|
27629
27629
|
panelGroupElement: y.current
|
|
27630
27630
|
}), [
|
|
27631
27631
|
q,
|
|
@@ -27635,16 +27635,16 @@ ${n}` : "Please fix this error.";
|
|
|
27635
27635
|
Q,
|
|
27636
27636
|
$,
|
|
27637
27637
|
v,
|
|
27638
|
-
fJ,
|
|
27639
27638
|
pJ,
|
|
27640
|
-
_J,
|
|
27641
27639
|
mJ,
|
|
27640
|
+
vJ,
|
|
27642
27641
|
hJ,
|
|
27643
27642
|
gJ,
|
|
27644
|
-
|
|
27643
|
+
_J,
|
|
27645
27644
|
yJ,
|
|
27646
|
-
bJ
|
|
27647
|
-
|
|
27645
|
+
bJ,
|
|
27646
|
+
xJ
|
|
27647
|
+
]), CJ = {
|
|
27648
27648
|
display: "flex",
|
|
27649
27649
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27650
27650
|
height: "100%",
|
|
@@ -27652,7 +27652,7 @@ ${n}` : "Please fix this error.";
|
|
|
27652
27652
|
width: "100%"
|
|
27653
27653
|
};
|
|
27654
27654
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27655
|
-
value:
|
|
27655
|
+
value: SJ
|
|
27656
27656
|
}, (0, import_react.createElement)(h, {
|
|
27657
27657
|
..._,
|
|
27658
27658
|
children: t,
|
|
@@ -27660,7 +27660,7 @@ ${n}` : "Please fix this error.";
|
|
|
27660
27660
|
id: o,
|
|
27661
27661
|
ref: y,
|
|
27662
27662
|
style: {
|
|
27663
|
-
...
|
|
27663
|
+
...CJ,
|
|
27664
27664
|
...f
|
|
27665
27665
|
},
|
|
27666
27666
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27737,31 +27737,31 @@ ${n}` : "Please fix this error.";
|
|
|
27737
27737
|
});
|
|
27738
27738
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27739
27739
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27740
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27740
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, pJ] = (0, import_react.useState)(false), [mJ, hJ] = (0, import_react.useState)(null), gJ = (0, import_react.useRef)({
|
|
27741
27741
|
state: J
|
|
27742
27742
|
});
|
|
27743
27743
|
useIsomorphicLayoutEffect$1(() => {
|
|
27744
|
-
|
|
27744
|
+
gJ.current.state = J;
|
|
27745
27745
|
}), (0, import_react.useEffect)(() => {
|
|
27746
|
-
if (n)
|
|
27746
|
+
if (n) hJ(null);
|
|
27747
27747
|
else {
|
|
27748
27748
|
let e2 = I(q);
|
|
27749
|
-
|
|
27749
|
+
hJ(() => e2);
|
|
27750
27750
|
}
|
|
27751
27751
|
}, [
|
|
27752
27752
|
n,
|
|
27753
27753
|
q,
|
|
27754
27754
|
I
|
|
27755
27755
|
]);
|
|
27756
|
-
let
|
|
27756
|
+
let _J = (i == null ? void 0 : i.coarse) ?? 15, vJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27757
27757
|
(0, import_react.useEffect)(() => {
|
|
27758
|
-
if (n ||
|
|
27758
|
+
if (n || mJ == null) return;
|
|
27759
27759
|
let e2 = w.current;
|
|
27760
27760
|
assert(e2, "Element ref not attached");
|
|
27761
27761
|
let t2 = false;
|
|
27762
27762
|
return registerResizeHandle(q, e2, A, {
|
|
27763
|
-
coarse:
|
|
27764
|
-
fine:
|
|
27763
|
+
coarse: _J,
|
|
27764
|
+
fine: vJ
|
|
27765
27765
|
}, (e3, n2, i2) => {
|
|
27766
27766
|
if (!n2) {
|
|
27767
27767
|
Q("inactive");
|
|
@@ -27775,8 +27775,8 @@ ${n}` : "Please fix this error.";
|
|
|
27775
27775
|
break;
|
|
27776
27776
|
}
|
|
27777
27777
|
case "move": {
|
|
27778
|
-
let { state: e4 } =
|
|
27779
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27778
|
+
let { state: e4 } = gJ.current;
|
|
27779
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), mJ(i2);
|
|
27780
27780
|
break;
|
|
27781
27781
|
}
|
|
27782
27782
|
case "up": {
|
|
@@ -27788,22 +27788,22 @@ ${n}` : "Please fix this error.";
|
|
|
27788
27788
|
}
|
|
27789
27789
|
});
|
|
27790
27790
|
}, [
|
|
27791
|
-
|
|
27791
|
+
_J,
|
|
27792
27792
|
A,
|
|
27793
27793
|
n,
|
|
27794
|
-
|
|
27794
|
+
vJ,
|
|
27795
27795
|
I,
|
|
27796
27796
|
q,
|
|
27797
|
-
|
|
27797
|
+
mJ,
|
|
27798
27798
|
z,
|
|
27799
27799
|
U
|
|
27800
27800
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27801
27801
|
disabled: n,
|
|
27802
27802
|
handleId: q,
|
|
27803
|
-
resizeHandler:
|
|
27803
|
+
resizeHandler: mJ,
|
|
27804
27804
|
panelGroupElement: K
|
|
27805
27805
|
});
|
|
27806
|
-
let
|
|
27806
|
+
let yJ = {
|
|
27807
27807
|
touchAction: "none",
|
|
27808
27808
|
userSelect: "none"
|
|
27809
27809
|
};
|
|
@@ -27813,15 +27813,15 @@ ${n}` : "Please fix this error.";
|
|
|
27813
27813
|
className: t,
|
|
27814
27814
|
id: a,
|
|
27815
27815
|
onBlur: () => {
|
|
27816
|
-
|
|
27816
|
+
pJ(false), o == null ? void 0 : o();
|
|
27817
27817
|
},
|
|
27818
27818
|
onFocus: () => {
|
|
27819
|
-
|
|
27819
|
+
pJ(true), d == null ? void 0 : d();
|
|
27820
27820
|
},
|
|
27821
27821
|
ref: w,
|
|
27822
27822
|
role: "separator",
|
|
27823
27823
|
style: {
|
|
27824
|
-
...
|
|
27824
|
+
...yJ,
|
|
27825
27825
|
..._
|
|
27826
27826
|
},
|
|
27827
27827
|
tabIndex: v,
|
|
@@ -28120,7 +28120,7 @@ ${n}` : "Please fix this error.";
|
|
|
28120
28120
|
}, [
|
|
28121
28121
|
h
|
|
28122
28122
|
]), k(() => {
|
|
28123
|
-
U(6,
|
|
28123
|
+
U(6, mJ);
|
|
28124
28124
|
}, []);
|
|
28125
28125
|
let K = import_react.useMemo(() => ({
|
|
28126
28126
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28129,7 +28129,7 @@ ${n}` : "Please fix this error.";
|
|
|
28129
28129
|
var _a2;
|
|
28130
28130
|
var a2, o2, s2;
|
|
28131
28131
|
if (!Object.is(n.current[e2], t2)) {
|
|
28132
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28132
|
+
if (n.current[e2] = t2, e2 === "search") pJ(), Q(), U(1, $);
|
|
28133
28133
|
else if (e2 === "value") {
|
|
28134
28134
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28135
28135
|
let e3 = document.getElementById(I);
|
|
@@ -28137,8 +28137,8 @@ ${n}` : "Please fix this error.";
|
|
|
28137
28137
|
}
|
|
28138
28138
|
if (U(7, () => {
|
|
28139
28139
|
var _a3;
|
|
28140
|
-
n.current.selectedItemId = (_a3 =
|
|
28141
|
-
}), i2 || U(5,
|
|
28140
|
+
n.current.selectedItemId = (_a3 = hJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28141
|
+
}), i2 || U(5, mJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28142
28142
|
let e3 = t2 ?? "";
|
|
28143
28143
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28144
28144
|
return;
|
|
@@ -28163,12 +28163,12 @@ ${n}` : "Please fix this error.";
|
|
|
28163
28163
|
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([
|
|
28164
28164
|
e2
|
|
28165
28165
|
]))), U(3, () => {
|
|
28166
|
-
|
|
28166
|
+
pJ(), Q(), n.current.value || $(), K.emit();
|
|
28167
28167
|
}), () => {
|
|
28168
28168
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28169
|
-
let t3 =
|
|
28169
|
+
let t3 = hJ();
|
|
28170
28170
|
U(4, () => {
|
|
28171
|
-
|
|
28171
|
+
pJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28172
28172
|
});
|
|
28173
28173
|
}),
|
|
28174
28174
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28201,7 +28201,7 @@ ${n}` : "Please fix this error.";
|
|
|
28201
28201
|
]);
|
|
28202
28202
|
});
|
|
28203
28203
|
let i2 = z.current;
|
|
28204
|
-
|
|
28204
|
+
gJ().sort((t3, n2) => {
|
|
28205
28205
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28206
28206
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28207
28207
|
}).forEach((e3) => {
|
|
@@ -28215,10 +28215,10 @@ ${n}` : "Please fix this error.";
|
|
|
28215
28215
|
}
|
|
28216
28216
|
function $() {
|
|
28217
28217
|
var _a2;
|
|
28218
|
-
let e2 = (_a2 =
|
|
28218
|
+
let e2 = (_a2 = gJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28219
28219
|
K.setState("value", e2 || void 0);
|
|
28220
28220
|
}
|
|
28221
|
-
function
|
|
28221
|
+
function pJ() {
|
|
28222
28222
|
var _a2, _b;
|
|
28223
28223
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28224
28224
|
n.current.filtered.count = i.current.size;
|
|
@@ -28236,43 +28236,43 @@ ${n}` : "Please fix this error.";
|
|
|
28236
28236
|
}
|
|
28237
28237
|
n.current.filtered.count = e2;
|
|
28238
28238
|
}
|
|
28239
|
-
function
|
|
28239
|
+
function mJ() {
|
|
28240
28240
|
var _a2, _b;
|
|
28241
28241
|
var e2;
|
|
28242
|
-
let t2 =
|
|
28242
|
+
let t2 = hJ();
|
|
28243
28243
|
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({
|
|
28244
28244
|
block: "nearest"
|
|
28245
28245
|
})), t2.scrollIntoView({
|
|
28246
28246
|
block: "nearest"
|
|
28247
28247
|
}));
|
|
28248
28248
|
}
|
|
28249
|
-
function
|
|
28249
|
+
function hJ() {
|
|
28250
28250
|
var _a2;
|
|
28251
28251
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28252
28252
|
}
|
|
28253
|
-
function
|
|
28253
|
+
function gJ() {
|
|
28254
28254
|
var _a2;
|
|
28255
28255
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28256
28256
|
}
|
|
28257
|
-
function
|
|
28258
|
-
let t2 =
|
|
28257
|
+
function _J(e2) {
|
|
28258
|
+
let t2 = gJ()[e2];
|
|
28259
28259
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28260
28260
|
}
|
|
28261
|
-
function
|
|
28261
|
+
function vJ(e2) {
|
|
28262
28262
|
var t2;
|
|
28263
|
-
let n2 =
|
|
28263
|
+
let n2 = hJ(), i2 = gJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28264
28264
|
(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));
|
|
28265
28265
|
}
|
|
28266
|
-
function
|
|
28266
|
+
function yJ(e2) {
|
|
28267
28267
|
var _a2;
|
|
28268
|
-
let t2 = (_a2 =
|
|
28268
|
+
let t2 = (_a2 = hJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28269
28269
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28270
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28270
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : vJ(e2);
|
|
28271
28271
|
}
|
|
28272
|
-
let
|
|
28273
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28274
|
-
},
|
|
28275
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28272
|
+
let bJ = () => _J(gJ().length - 1), xJ = (e2) => {
|
|
28273
|
+
e2.preventDefault(), e2.metaKey ? bJ() : e2.altKey ? yJ(1) : vJ(1);
|
|
28274
|
+
}, SJ = (e2) => {
|
|
28275
|
+
e2.preventDefault(), e2.metaKey ? _J(0) : e2.altKey ? yJ(-1) : vJ(-1);
|
|
28276
28276
|
};
|
|
28277
28277
|
return import_react.createElement(Primitive.div, {
|
|
28278
28278
|
ref: t,
|
|
@@ -28286,27 +28286,27 @@ ${n}` : "Please fix this error.";
|
|
|
28286
28286
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28287
28287
|
case "n":
|
|
28288
28288
|
case "j":
|
|
28289
|
-
E && e2.ctrlKey &&
|
|
28289
|
+
E && e2.ctrlKey && xJ(e2);
|
|
28290
28290
|
break;
|
|
28291
28291
|
case "ArrowDown":
|
|
28292
|
-
|
|
28292
|
+
xJ(e2);
|
|
28293
28293
|
break;
|
|
28294
28294
|
case "p":
|
|
28295
28295
|
case "k":
|
|
28296
|
-
E && e2.ctrlKey &&
|
|
28296
|
+
E && e2.ctrlKey && SJ(e2);
|
|
28297
28297
|
break;
|
|
28298
28298
|
case "ArrowUp":
|
|
28299
|
-
|
|
28299
|
+
SJ(e2);
|
|
28300
28300
|
break;
|
|
28301
28301
|
case "Home":
|
|
28302
|
-
e2.preventDefault(),
|
|
28302
|
+
e2.preventDefault(), _J(0);
|
|
28303
28303
|
break;
|
|
28304
28304
|
case "End":
|
|
28305
|
-
e2.preventDefault(),
|
|
28305
|
+
e2.preventDefault(), bJ();
|
|
28306
28306
|
break;
|
|
28307
28307
|
case "Enter": {
|
|
28308
28308
|
e2.preventDefault();
|
|
28309
|
-
let t3 =
|
|
28309
|
+
let t3 = hJ();
|
|
28310
28310
|
if (t3) {
|
|
28311
28311
|
let e3 = new Event(Z);
|
|
28312
28312
|
t3.dispatchEvent(e3);
|
|
@@ -28715,7 +28715,7 @@ ${n}` : "Please fix this error.";
|
|
|
28715
28715
|
Combobox = (e) => {
|
|
28716
28716
|
let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
|
|
28717
28717
|
t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
|
|
28718
|
-
let $ = I === void 0 ? false : I,
|
|
28718
|
+
let $ = I === void 0 ? false : I, pJ = z === void 0 ? true : z, mJ = U === void 0 ? "Search..." : U, hJ = K === void 0 ? "Nothing found." : K, gJ = q === void 0 ? false : q, _J = J === void 0 ? false : J, vJ = s ?? false, yJ;
|
|
28719
28719
|
t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
|
|
28720
28720
|
prop: w,
|
|
28721
28721
|
defaultProp: vJ,
|
|
@@ -28766,17 +28766,17 @@ ${n}` : "Please fix this error.";
|
|
|
28766
28766
|
t[56] !== a || t[57] !== LJ ? (RJ = 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", LJ, a), t[56] = a, t[57] = LJ, t[58] = RJ) : RJ = t[58];
|
|
28767
28767
|
let zJ;
|
|
28768
28768
|
t[59] !== O || t[60] !== MJ || t[61] !== TJ ? (zJ = O ? O(TJ ?? null) : MJ(), t[59] = O, t[60] = MJ, t[61] = TJ, t[62] = zJ) : zJ = t[62];
|
|
28769
|
-
let
|
|
28770
|
-
t[63] === zJ ?
|
|
28769
|
+
let BJ;
|
|
28770
|
+
t[63] === zJ ? BJ = t[64] : (BJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28771
28771
|
className: "truncate flex-1 min-w-0",
|
|
28772
28772
|
children: zJ
|
|
28773
|
-
}), t[63] = zJ, t[64] =
|
|
28774
|
-
let
|
|
28775
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28773
|
+
}), t[63] = zJ, t[64] = BJ);
|
|
28774
|
+
let VJ;
|
|
28775
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28776
28776
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28777
|
-
}), t[65] =
|
|
28778
|
-
let
|
|
28779
|
-
t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== RJ || t[70] !==
|
|
28777
|
+
}), t[65] = VJ) : VJ = t[65];
|
|
28778
|
+
let UJ;
|
|
28779
|
+
t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== RJ || t[70] !== BJ ? (UJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28780
28780
|
asChild: true,
|
|
28781
28781
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28782
28782
|
id: h,
|
|
@@ -28785,19 +28785,19 @@ ${n}` : "Please fix this error.";
|
|
|
28785
28785
|
"aria-expanded": SJ,
|
|
28786
28786
|
"aria-disabled": _J,
|
|
28787
28787
|
children: [
|
|
28788
|
-
|
|
28789
|
-
|
|
28788
|
+
BJ,
|
|
28789
|
+
VJ
|
|
28790
28790
|
]
|
|
28791
28791
|
})
|
|
28792
|
-
}), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = RJ, t[70] =
|
|
28793
|
-
let
|
|
28794
|
-
t[72] !==
|
|
28795
|
-
placeholder:
|
|
28792
|
+
}), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = RJ, t[70] = BJ, t[71] = UJ) : UJ = t[71];
|
|
28793
|
+
let WJ;
|
|
28794
|
+
t[72] !== mJ || t[73] !== y || t[74] !== M ? (WJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28795
|
+
placeholder: mJ,
|
|
28796
28796
|
rootClassName: "px-1 h-8",
|
|
28797
28797
|
autoFocus: true,
|
|
28798
28798
|
value: M,
|
|
28799
28799
|
onValueChange: y
|
|
28800
|
-
}), t[72] =
|
|
28800
|
+
}), t[72] = mJ, t[73] = y, t[74] = M, t[75] = WJ) : WJ = t[75];
|
|
28801
28801
|
let KJ;
|
|
28802
28802
|
t[76] === hJ ? KJ = t[77] : (KJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28803
28803
|
children: hJ
|
|
@@ -28816,27 +28816,27 @@ ${n}` : "Please fix this error.";
|
|
|
28816
28816
|
]
|
|
28817
28817
|
}), t[81] = KJ, t[82] = qJ, t[83] = JJ) : JJ = t[83];
|
|
28818
28818
|
let YJ;
|
|
28819
|
-
t[84] !== f || t[85] !==
|
|
28819
|
+
t[84] !== f || t[85] !== pJ || t[86] !== WJ || t[87] !== JJ ? (YJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28820
28820
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28821
28821
|
align: "start",
|
|
28822
28822
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28823
28823
|
filter: f,
|
|
28824
|
-
shouldFilter:
|
|
28824
|
+
shouldFilter: pJ,
|
|
28825
28825
|
children: [
|
|
28826
|
-
|
|
28826
|
+
WJ,
|
|
28827
28827
|
JJ
|
|
28828
28828
|
]
|
|
28829
28829
|
})
|
|
28830
|
-
}), t[84] = f, t[85] =
|
|
28830
|
+
}), t[84] = f, t[85] = pJ, t[86] = WJ, t[87] = JJ, t[88] = YJ) : YJ = t[88];
|
|
28831
28831
|
let XJ;
|
|
28832
|
-
t[89] !== SJ || t[90] !== IJ || t[91] !==
|
|
28832
|
+
t[89] !== SJ || t[90] !== IJ || t[91] !== UJ || t[92] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28833
28833
|
open: SJ,
|
|
28834
28834
|
onOpenChange: IJ,
|
|
28835
28835
|
children: [
|
|
28836
|
-
|
|
28836
|
+
UJ,
|
|
28837
28837
|
YJ
|
|
28838
28838
|
]
|
|
28839
|
-
}), t[89] = SJ, t[90] = IJ, t[91] =
|
|
28839
|
+
}), t[89] = SJ, t[90] = IJ, t[91] = UJ, t[92] = YJ, t[93] = XJ) : XJ = t[93];
|
|
28840
28840
|
let ZJ;
|
|
28841
28841
|
t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (ZJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28842
28842
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
@@ -29917,17 +29917,17 @@ ${n}` : "Please fix this error.";
|
|
|
29917
29917
|
searchQuery: M,
|
|
29918
29918
|
filteredOptions: z
|
|
29919
29919
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29920
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29921
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29920
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), pJ;
|
|
29921
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (pJ = {
|
|
29922
29922
|
value: i,
|
|
29923
29923
|
onChange: a,
|
|
29924
29924
|
multiple: o,
|
|
29925
29925
|
maxSelections: s,
|
|
29926
29926
|
allowSelectNone: c,
|
|
29927
29927
|
selected: y
|
|
29928
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29929
|
-
let { isChecked:
|
|
29930
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29928
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = pJ) : pJ = t[21];
|
|
29929
|
+
let { isChecked: mJ, toggle: hJ } = useToggle(pJ), gJ;
|
|
29930
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (gJ = {
|
|
29931
29931
|
value: i,
|
|
29932
29932
|
onChange: a,
|
|
29933
29933
|
multiple: o,
|
|
@@ -29935,24 +29935,24 @@ ${n}` : "Please fix this error.";
|
|
|
29935
29935
|
filteredOptions: z,
|
|
29936
29936
|
searchQuery: M,
|
|
29937
29937
|
maxSelections: s
|
|
29938
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29939
|
-
let { bulkActions:
|
|
29940
|
-
t[30] !== J || t[31] !== I ? (
|
|
29938
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = gJ) : gJ = t[29];
|
|
29939
|
+
let { bulkActions: _J } = useBulk(gJ), vJ;
|
|
29940
|
+
t[30] !== J || t[31] !== I ? (vJ = (e2) => {
|
|
29941
29941
|
I(e2), e2 === "" && J();
|
|
29942
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29943
|
-
let
|
|
29944
|
-
return t[33] !==
|
|
29942
|
+
}, t[30] = J, t[31] = I, t[32] = vJ) : vJ = t[32];
|
|
29943
|
+
let yJ = vJ, bJ;
|
|
29944
|
+
return t[33] !== _J || t[34] !== mJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== yJ || t[41] !== hJ || t[42] !== Q ? (bJ = {
|
|
29945
29945
|
searchQuery: M,
|
|
29946
|
-
setSearchQuery:
|
|
29946
|
+
setSearchQuery: yJ,
|
|
29947
29947
|
open: K,
|
|
29948
29948
|
setOpen: q,
|
|
29949
29949
|
visibleOptions: Q,
|
|
29950
29950
|
pinnedCount: $,
|
|
29951
|
-
isChecked:
|
|
29952
|
-
toggle:
|
|
29953
|
-
bulkActions:
|
|
29951
|
+
isChecked: mJ,
|
|
29952
|
+
toggle: hJ,
|
|
29953
|
+
bulkActions: _J,
|
|
29954
29954
|
labelOf: O
|
|
29955
|
-
}, t[33] =
|
|
29955
|
+
}, t[33] = _J, t[34] = mJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = yJ, t[41] = hJ, t[42] = Q, t[43] = bJ) : bJ = t[43], bJ;
|
|
29956
29956
|
};
|
|
29957
29957
|
const Sets = {
|
|
29958
29958
|
merge(...e) {
|
|
@@ -30281,7 +30281,7 @@ ${n}` : "Please fix this error.";
|
|
|
30281
30281
|
type: S,
|
|
30282
30282
|
operator: E,
|
|
30283
30283
|
draft: mergeNumberTextDraft(A, I)
|
|
30284
|
-
}), $ = Q === void 0,
|
|
30284
|
+
}), $ = Q === void 0, pJ = $ ? getMissingValueMessage(S, E) : "Apply filter", mJ = () => {
|
|
30285
30285
|
if (!Q) return;
|
|
30286
30286
|
let e2 = Q;
|
|
30287
30287
|
t.setColumnFilters((t2) => {
|
|
@@ -30300,20 +30300,20 @@ ${n}` : "Please fix this error.";
|
|
|
30300
30300
|
value: e2
|
|
30301
30301
|
}, n2;
|
|
30302
30302
|
}), i();
|
|
30303
|
-
},
|
|
30303
|
+
}, hJ = () => {
|
|
30304
30304
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30305
|
-
},
|
|
30305
|
+
}, gJ = !OPERATORS_WITHOUT_VALUE.has(E), _J = OPERATORS_BY_TYPE[S], vJ = (0, import_react.useRef)(null), yJ = (0, import_react.useRef)(null);
|
|
30306
30306
|
return (0, import_react.useEffect)(() => {
|
|
30307
30307
|
var _a2, _b;
|
|
30308
|
-
let e2 = (_a2 =
|
|
30309
|
-
e2 ? e2.focus() : (_b =
|
|
30308
|
+
let e2 = (_a2 = vJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30309
|
+
e2 ? e2.focus() : (_b = yJ.current) == null ? void 0 : _b.focus();
|
|
30310
30310
|
}, [
|
|
30311
30311
|
S,
|
|
30312
30312
|
E
|
|
30313
30313
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30314
30314
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30315
30315
|
onSubmit: (e2) => {
|
|
30316
|
-
e2.preventDefault(),
|
|
30316
|
+
e2.preventDefault(), mJ();
|
|
30317
30317
|
},
|
|
30318
30318
|
onKeyDownCapture: (e2) => {
|
|
30319
30319
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30354,13 +30354,13 @@ ${n}` : "Please fix this error.";
|
|
|
30354
30354
|
onValueChange: (e2) => J(e2),
|
|
30355
30355
|
children: [
|
|
30356
30356
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30357
|
-
ref:
|
|
30357
|
+
ref: yJ,
|
|
30358
30358
|
id: s,
|
|
30359
30359
|
className: "h-6 mb-1 bg-transparent",
|
|
30360
30360
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30361
30361
|
}),
|
|
30362
30362
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30363
|
-
children:
|
|
30363
|
+
children: _J.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30364
30364
|
value: e2,
|
|
30365
30365
|
children: OPERATOR_LABELS[e2]
|
|
30366
30366
|
}, e2))
|
|
@@ -30369,8 +30369,8 @@ ${n}` : "Please fix this error.";
|
|
|
30369
30369
|
}, S)
|
|
30370
30370
|
]
|
|
30371
30371
|
}),
|
|
30372
|
-
|
|
30373
|
-
ref:
|
|
30372
|
+
gJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30373
|
+
ref: vJ,
|
|
30374
30374
|
className: "flex flex-col gap-1",
|
|
30375
30375
|
children: [
|
|
30376
30376
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30397,7 +30397,7 @@ ${n}` : "Please fix this error.";
|
|
|
30397
30397
|
className: "flex gap-1 mb-1",
|
|
30398
30398
|
children: [
|
|
30399
30399
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30400
|
-
content:
|
|
30400
|
+
content: pJ,
|
|
30401
30401
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30402
30402
|
className: "inline-flex",
|
|
30403
30403
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30436,7 +30436,7 @@ ${n}` : "Please fix this error.";
|
|
|
30436
30436
|
size: "icon",
|
|
30437
30437
|
variant: "ghost",
|
|
30438
30438
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30439
|
-
onClick:
|
|
30439
|
+
onClick: hJ,
|
|
30440
30440
|
"aria-label": "Remove filter",
|
|
30441
30441
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30442
30442
|
className: "h-3.5 w-3.5",
|
|
@@ -32644,29 +32644,29 @@ ${n}` : "Please fix this error.";
|
|
|
32644
32644
|
}, t[16] = a, t[17] = J);
|
|
32645
32645
|
let Q = useEvent_default(J), $;
|
|
32646
32646
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32647
|
-
let
|
|
32648
|
-
t[20] === S ? (
|
|
32647
|
+
let pJ = useEvent_default($), mJ, hJ;
|
|
32648
|
+
t[20] === S ? (mJ = t[21], hJ = t[22]) : (mJ = () => (window.addEventListener("scroll", S, {
|
|
32649
32649
|
passive: true,
|
|
32650
32650
|
capture: true
|
|
32651
32651
|
}), window.addEventListener("resize", S), () => {
|
|
32652
32652
|
window.removeEventListener("scroll", S, {
|
|
32653
32653
|
capture: true
|
|
32654
32654
|
}), window.removeEventListener("resize", S);
|
|
32655
|
-
}),
|
|
32655
|
+
}), hJ = [
|
|
32656
32656
|
S
|
|
32657
|
-
], t[20] = S, t[21] =
|
|
32658
|
-
let
|
|
32659
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32660
|
-
let
|
|
32661
|
-
return t[25] !==
|
|
32657
|
+
], t[20] = S, t[21] = mJ, t[22] = hJ), (0, import_react.useEffect)(mJ, hJ);
|
|
32658
|
+
let gJ, _J;
|
|
32659
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = () => v, _J = [], t[23] = gJ, t[24] = _J) : (gJ = t[23], _J = t[24]), (0, import_react.useEffect)(gJ, _J);
|
|
32660
|
+
let vJ;
|
|
32661
|
+
return t[25] !== pJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (vJ = {
|
|
32662
32662
|
tooltipState: o,
|
|
32663
32663
|
tooltipContentId: d,
|
|
32664
32664
|
hideTooltip: S,
|
|
32665
32665
|
handleCellMouseOver: U,
|
|
32666
32666
|
handleCellMouseLeave: q,
|
|
32667
32667
|
handleCellFocus: Q,
|
|
32668
|
-
handleCellBlur:
|
|
32669
|
-
}, t[25] =
|
|
32668
|
+
handleCellBlur: pJ
|
|
32669
|
+
}, t[25] = pJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = vJ) : vJ = t[32], vJ;
|
|
32670
32670
|
}
|
|
32671
32671
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32672
32672
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -33632,18 +33632,18 @@ ${n}` : "Please fix this error.";
|
|
|
33632
33632
|
}), t[2] = n, t[3] = a, t[4] = s) : s = t[4], s;
|
|
33633
33633
|
};
|
|
33634
33634
|
ColumnName = (e) => {
|
|
33635
|
-
let t = (0, import_compiler_runtime$14.c)(6), { columnName: n, dataType: i } = e, a = DATA_TYPE_ICON[
|
|
33636
|
-
t[0] !==
|
|
33637
|
-
className:
|
|
33638
|
-
}), t[0] =
|
|
33639
|
-
let
|
|
33640
|
-
return t[3] !== n || t[4] !==
|
|
33635
|
+
let t = (0, import_compiler_runtime$14.c)(6), { columnName: n, dataType: i } = e, a = resolveDataType(i), o = DATA_TYPE_ICON[a], s = `w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${getDataTypeColor(a)}`, c;
|
|
33636
|
+
t[0] !== o || t[1] !== s ? (c = (0, import_jsx_runtime.jsx)(o, {
|
|
33637
|
+
className: s
|
|
33638
|
+
}), t[0] = o, t[1] = s, t[2] = c) : c = t[2];
|
|
33639
|
+
let d;
|
|
33640
|
+
return t[3] !== n || t[4] !== c ? (d = (0, import_jsx_runtime.jsxs)("div", {
|
|
33641
33641
|
className: "flex flex-row items-center gap-1.5",
|
|
33642
33642
|
children: [
|
|
33643
|
-
|
|
33643
|
+
c,
|
|
33644
33644
|
n
|
|
33645
33645
|
]
|
|
33646
|
-
}), t[3] = n, t[4] =
|
|
33646
|
+
}), t[3] = n, t[4] = c, t[5] = d) : d = t[5], d;
|
|
33647
33647
|
};
|
|
33648
33648
|
function getUserColumns(e) {
|
|
33649
33649
|
return e.getAllLeafColumns().filter((e2) => e2.id !== "__select__" && e2.id !== "_marimo_row_id" && !e2.id.startsWith("__m_column__"));
|
|
@@ -34111,7 +34111,7 @@ ${n}` : "Please fix this error.";
|
|
|
34111
34111
|
filename: i2.filename
|
|
34112
34112
|
};
|
|
34113
34113
|
}, t[6] = e, t[7] = O);
|
|
34114
|
-
let A = O,
|
|
34114
|
+
let A = O, I, z, U, K, q, J, Q, $, pJ, mJ, hJ, gJ, _J;
|
|
34115
34115
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34116
34116
|
let e2 = async (t2) => {
|
|
34117
34117
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34161,7 +34161,7 @@ ${n}` : "Please fix this error.";
|
|
|
34161
34161
|
});
|
|
34162
34162
|
});
|
|
34163
34163
|
};
|
|
34164
|
-
|
|
34164
|
+
z = DropdownMenu, q = false, J = n, Q = i;
|
|
34165
34165
|
let o = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
34166
34166
|
t[26] !== E || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
34167
34167
|
tabIndex: s2,
|
|
@@ -34173,14 +34173,14 @@ ${n}` : "Please fix this error.";
|
|
|
34173
34173
|
asChild: true,
|
|
34174
34174
|
disabled: c,
|
|
34175
34175
|
children: f2
|
|
34176
|
-
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o || t[33] !== h || t[34] !== d ? (
|
|
34176
|
+
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o || t[33] !== h || t[34] !== d ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34177
34177
|
content: d,
|
|
34178
34178
|
open: o,
|
|
34179
34179
|
children: h
|
|
34180
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] =
|
|
34180
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, pJ = "bottom", mJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34181
34181
|
className: "text-xs text-muted-foreground",
|
|
34182
34182
|
children: "Download"
|
|
34183
|
-
}), t[36] =
|
|
34183
|
+
}), t[36] = hJ) : hJ = t[36], gJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34184
34184
|
onSelect: () => {
|
|
34185
34185
|
e2(t2.format);
|
|
34186
34186
|
},
|
|
@@ -34201,10 +34201,10 @@ ${n}` : "Please fix this error.";
|
|
|
34201
34201
|
]
|
|
34202
34202
|
})
|
|
34203
34203
|
]
|
|
34204
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34204
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34205
34205
|
className: "text-xs text-muted-foreground",
|
|
34206
34206
|
children: "Copy to clipboard"
|
|
34207
|
-
}), t[37] =
|
|
34207
|
+
}), t[37] = U, t[38] = _J) : (U = t[37], _J = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34208
34208
|
onSelect: async () => {
|
|
34209
34209
|
try {
|
|
34210
34210
|
await a2(e3.format);
|
|
@@ -34233,30 +34233,30 @@ ${n}` : "Please fix this error.";
|
|
|
34233
34233
|
]
|
|
34234
34234
|
})
|
|
34235
34235
|
]
|
|
34236
|
-
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] =
|
|
34237
|
-
} else
|
|
34238
|
-
let
|
|
34239
|
-
t[39] !==
|
|
34240
|
-
side:
|
|
34241
|
-
className:
|
|
34236
|
+
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, 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] = pJ, t[22] = mJ, t[23] = hJ, t[24] = gJ, t[25] = _J;
|
|
34237
|
+
} else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], pJ = t[21], mJ = t[22], hJ = t[23], gJ = t[24], _J = t[25];
|
|
34238
|
+
let vJ;
|
|
34239
|
+
t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== pJ || t[43] !== mJ || t[44] !== hJ || t[45] !== gJ || t[46] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34240
|
+
side: pJ,
|
|
34241
|
+
className: mJ,
|
|
34242
34242
|
children: [
|
|
34243
|
-
pJ,
|
|
34244
|
-
mJ,
|
|
34245
34243
|
hJ,
|
|
34246
|
-
|
|
34247
|
-
|
|
34244
|
+
gJ,
|
|
34245
|
+
_J,
|
|
34246
|
+
U,
|
|
34247
|
+
K
|
|
34248
34248
|
]
|
|
34249
|
-
}), t[39] =
|
|
34250
|
-
let
|
|
34251
|
-
return t[48] !==
|
|
34252
|
-
modal:
|
|
34253
|
-
open:
|
|
34254
|
-
onOpenChange:
|
|
34249
|
+
}), t[39] = I, t[40] = U, t[41] = K, t[42] = pJ, t[43] = mJ, t[44] = hJ, t[45] = gJ, t[46] = _J, t[47] = vJ) : vJ = t[47];
|
|
34250
|
+
let yJ;
|
|
34251
|
+
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(z, {
|
|
34252
|
+
modal: q,
|
|
34253
|
+
open: J,
|
|
34254
|
+
onOpenChange: Q,
|
|
34255
34255
|
children: [
|
|
34256
|
-
|
|
34257
|
-
|
|
34256
|
+
$,
|
|
34257
|
+
vJ
|
|
34258
34258
|
]
|
|
34259
|
-
}), t[48] =
|
|
34259
|
+
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = vJ, t[54] = yJ) : yJ = t[54], yJ;
|
|
34260
34260
|
};
|
|
34261
34261
|
function fetchJson(e) {
|
|
34262
34262
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34352,22 +34352,22 @@ ${n}` : "Please fix this error.";
|
|
|
34352
34352
|
]
|
|
34353
34353
|
});
|
|
34354
34354
|
};
|
|
34355
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, 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:
|
|
34356
|
-
let
|
|
34355
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, 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: pJ, showSearch: mJ = false, searchQuery: hJ, onSearchQueryChange: gJ, showFilters: _J = false, filters: vJ, onFiltersChange: yJ, calculateTopKRows: bJ, reloading: xJ, freezeColumnsLeft: SJ, freezeColumnsRight: CJ, hiddenColumns: wJ, toggleDisplayHeader: TJ, showChartBuilder: EJ, isChartBuilderOpen: DJ, showPageSizeSelector: OJ, showTableExplorer: kJ, togglePanel: AJ, isPanelOpen: jJ, isAnyPanelOpen: MJ, viewedRowIdx: NJ, onViewedRowChange: PJ, renderTableExplorerPanel: FJ }) => {
|
|
34356
|
+
let IJ = isStaticNotebook(), LJ = !IJ, [RJ, zJ] = import_react.useState(false), { locale: BJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: VJ, setColumnPinning: HJ } = useColumnPinning(SJ, CJ), { columnVisibility: UJ, setColumnVisibility: WJ } = useColumnVisibility(wJ);
|
|
34357
34357
|
import_react.useEffect(() => {
|
|
34358
34358
|
let e2;
|
|
34359
|
-
return
|
|
34360
|
-
|
|
34361
|
-
}, 300) :
|
|
34359
|
+
return xJ ? e2 = setTimeout(() => {
|
|
34360
|
+
zJ(true);
|
|
34361
|
+
}, 300) : zJ(false), () => {
|
|
34362
34362
|
e2 && clearTimeout(e2);
|
|
34363
34363
|
};
|
|
34364
34364
|
}, [
|
|
34365
|
-
|
|
34365
|
+
xJ
|
|
34366
34366
|
]);
|
|
34367
|
-
function
|
|
34367
|
+
function GJ(e2, t2) {
|
|
34368
34368
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34369
34369
|
}
|
|
34370
|
-
let
|
|
34370
|
+
let KJ = useReactTable({
|
|
34371
34371
|
_features: [
|
|
34372
34372
|
ColumnPinning,
|
|
34373
34373
|
ColumnWrappingFeature,
|
|
@@ -34391,37 +34391,37 @@ ${n}` : "Please fix this error.";
|
|
|
34391
34391
|
getRowId: (e2, t2) => {
|
|
34392
34392
|
let n2 = getStableRowId(e2);
|
|
34393
34393
|
if (n2) return n2;
|
|
34394
|
-
let i2 =
|
|
34394
|
+
let i2 = GJ(e2, t2);
|
|
34395
34395
|
return String(i2);
|
|
34396
34396
|
}
|
|
34397
34397
|
} : {},
|
|
34398
|
-
locale:
|
|
34398
|
+
locale: BJ,
|
|
34399
34399
|
manualPagination: q,
|
|
34400
34400
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34401
34401
|
...w ? {
|
|
34402
34402
|
onSortingChange: w
|
|
34403
34403
|
} : {},
|
|
34404
34404
|
manualSorting: y,
|
|
34405
|
-
enableSorting: !
|
|
34405
|
+
enableSorting: !IJ,
|
|
34406
34406
|
enableMultiSort: true,
|
|
34407
34407
|
getSortedRowModel: getSortedRowModel(),
|
|
34408
34408
|
manualFiltering: true,
|
|
34409
|
-
enableColumnFilters:
|
|
34409
|
+
enableColumnFilters: _J && !IJ,
|
|
34410
34410
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34411
|
-
onColumnFiltersChange:
|
|
34411
|
+
onColumnFiltersChange: yJ,
|
|
34412
34412
|
onRowSelectionChange: Q,
|
|
34413
34413
|
onCellSelectionChange: $,
|
|
34414
34414
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34415
34415
|
enableMultiCellSelection: c === "multi-cell",
|
|
34416
|
-
onColumnPinningChange:
|
|
34417
|
-
onColumnVisibilityChange:
|
|
34416
|
+
onColumnPinningChange: HJ,
|
|
34417
|
+
onColumnVisibilityChange: WJ,
|
|
34418
34418
|
enableFocusRow: true,
|
|
34419
|
-
onFocusRowChange:
|
|
34419
|
+
onFocusRowChange: PJ,
|
|
34420
34420
|
state: {
|
|
34421
34421
|
...S ? {
|
|
34422
34422
|
sorting: S
|
|
34423
34423
|
} : {},
|
|
34424
|
-
columnFilters:
|
|
34424
|
+
columnFilters: vJ,
|
|
34425
34425
|
...z ? {
|
|
34426
34426
|
pagination: z
|
|
34427
34427
|
} : J && !z ? {} : {
|
|
@@ -34432,60 +34432,60 @@ ${n}` : "Please fix this error.";
|
|
|
34432
34432
|
},
|
|
34433
34433
|
rowSelection: E ?? {},
|
|
34434
34434
|
cellSelection: O ?? [],
|
|
34435
|
-
columnVisibility:
|
|
34435
|
+
columnVisibility: UJ,
|
|
34436
34436
|
cellStyling: A,
|
|
34437
|
-
columnPinning:
|
|
34437
|
+
columnPinning: VJ,
|
|
34438
34438
|
cellHoverTemplate: M,
|
|
34439
34439
|
cellHoverTexts: I ?? {}
|
|
34440
34440
|
}
|
|
34441
|
-
}),
|
|
34441
|
+
}), qJ = (jJ == null ? void 0 : jJ(PANEL_TYPES.ROW_VIEWER)) ?? false, JJ = !J && a.length > 100, YJ = useScrollContainerHeight({
|
|
34442
34442
|
maxHeight: n,
|
|
34443
|
-
virtualize:
|
|
34444
|
-
}), [
|
|
34443
|
+
virtualize: JJ
|
|
34444
|
+
}), [XJ, ZJ] = import_react.useState(null), QJ = import_react.useMemo(() => ({
|
|
34445
34445
|
requestAddFilter: (e2) => {
|
|
34446
|
-
let t2 =
|
|
34447
|
-
t2 &&
|
|
34446
|
+
let t2 = KJ.getColumn(e2.columnId);
|
|
34447
|
+
t2 && ZJ(buildEditorSnapshot(t2, {
|
|
34448
34448
|
operator: e2.operator
|
|
34449
34449
|
}));
|
|
34450
34450
|
}
|
|
34451
34451
|
}), [
|
|
34452
|
-
|
|
34453
|
-
]),
|
|
34452
|
+
KJ
|
|
34453
|
+
]), $J = getUserColumnVisibilityCounts(KJ), eY = $J.total > 0 && $J.visible === 0;
|
|
34454
34454
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34455
|
-
value:
|
|
34455
|
+
value: QJ,
|
|
34456
34456
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34457
34457
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34458
34458
|
children: [
|
|
34459
34459
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34460
|
-
filters:
|
|
34461
|
-
table:
|
|
34462
|
-
calculateTopKRows:
|
|
34463
|
-
addFilterSnapshot:
|
|
34464
|
-
onAddFilterSnapshotChange:
|
|
34460
|
+
filters: vJ,
|
|
34461
|
+
table: KJ,
|
|
34462
|
+
calculateTopKRows: bJ,
|
|
34463
|
+
addFilterSnapshot: XJ,
|
|
34464
|
+
onAddFilterSnapshotChange: ZJ
|
|
34465
34465
|
}),
|
|
34466
|
-
|
|
34466
|
+
FJ == null ? void 0 : FJ(KJ),
|
|
34467
34467
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34468
34468
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34469
34469
|
part: "table-wrapper",
|
|
34470
34470
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34471
34471
|
children: [
|
|
34472
|
-
|
|
34473
|
-
table:
|
|
34474
|
-
showSearch:
|
|
34475
|
-
searchQuery:
|
|
34476
|
-
onSearchQueryChange:
|
|
34477
|
-
reloading:
|
|
34478
|
-
showChartBuilder:
|
|
34479
|
-
isChartBuilderOpen:
|
|
34480
|
-
toggleDisplayHeader:
|
|
34481
|
-
showTableExplorer:
|
|
34482
|
-
togglePanel:
|
|
34483
|
-
isAnyPanelOpen:
|
|
34472
|
+
LJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34473
|
+
table: KJ,
|
|
34474
|
+
showSearch: mJ,
|
|
34475
|
+
searchQuery: hJ,
|
|
34476
|
+
onSearchQueryChange: gJ,
|
|
34477
|
+
reloading: xJ,
|
|
34478
|
+
showChartBuilder: EJ,
|
|
34479
|
+
isChartBuilderOpen: DJ,
|
|
34480
|
+
toggleDisplayHeader: TJ,
|
|
34481
|
+
showTableExplorer: kJ,
|
|
34482
|
+
togglePanel: AJ,
|
|
34483
|
+
isAnyPanelOpen: MJ,
|
|
34484
34484
|
downloadAs: K,
|
|
34485
34485
|
sizeBytes: _,
|
|
34486
34486
|
sizeBytesIsLoading: v
|
|
34487
34487
|
}),
|
|
34488
|
-
|
|
34488
|
+
eY && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34489
34489
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34490
34490
|
children: [
|
|
34491
34491
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34494,26 +34494,26 @@ ${n}` : "Please fix this error.";
|
|
|
34494
34494
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34495
34495
|
variant: "link",
|
|
34496
34496
|
size: "xs",
|
|
34497
|
-
onClick: () =>
|
|
34497
|
+
onClick: () => KJ.resetColumnVisibility(true),
|
|
34498
34498
|
children: "Unhide all"
|
|
34499
34499
|
})
|
|
34500
34500
|
]
|
|
34501
34501
|
}),
|
|
34502
34502
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34503
34503
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34504
|
-
ref:
|
|
34504
|
+
ref: YJ,
|
|
34505
34505
|
children: [
|
|
34506
|
-
|
|
34506
|
+
RJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34507
34507
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34508
34508
|
}),
|
|
34509
|
-
renderTableHeader(
|
|
34509
|
+
renderTableHeader(KJ, JJ || !!n),
|
|
34510
34510
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34511
|
-
table:
|
|
34511
|
+
table: KJ,
|
|
34512
34512
|
columns: i,
|
|
34513
|
-
rowViewerPanelOpen:
|
|
34514
|
-
getRowIndex:
|
|
34515
|
-
viewedRowIdx:
|
|
34516
|
-
virtualize:
|
|
34513
|
+
rowViewerPanelOpen: qJ,
|
|
34514
|
+
getRowIndex: GJ,
|
|
34515
|
+
viewedRowIdx: NJ,
|
|
34516
|
+
virtualize: JJ
|
|
34517
34517
|
})
|
|
34518
34518
|
]
|
|
34519
34519
|
}),
|
|
@@ -34524,10 +34524,10 @@ ${n}` : "Please fix this error.";
|
|
|
34524
34524
|
pagination: J,
|
|
34525
34525
|
selection: c,
|
|
34526
34526
|
onRowSelectionChange: Q,
|
|
34527
|
-
table:
|
|
34528
|
-
getRowIds:
|
|
34529
|
-
showPageSizeSelector:
|
|
34530
|
-
tableLoading:
|
|
34527
|
+
table: KJ,
|
|
34528
|
+
getRowIds: pJ,
|
|
34529
|
+
showPageSizeSelector: OJ,
|
|
34530
|
+
tableLoading: xJ
|
|
34531
34531
|
})
|
|
34532
34532
|
]
|
|
34533
34533
|
})
|
|
@@ -34612,7 +34612,7 @@ ${n}` : "Please fix this error.";
|
|
|
34612
34612
|
t[6] !== a || t[7] !== S ? (E = S && S.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = S, t[8] = E) : E = t[8];
|
|
34613
34613
|
let O = E, A;
|
|
34614
34614
|
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34615
|
-
let M = A, I = !isStaticNotebook(), [z,
|
|
34615
|
+
let M = A, I = !isStaticNotebook(), [z, K] = (0, import_react.useState)(true), q;
|
|
34616
34616
|
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34617
34617
|
n == null ? void 0 : n({
|
|
34618
34618
|
prompt: `My code gives the following error:
|
|
@@ -34627,45 +34627,45 @@ ${d}`,
|
|
|
34627
34627
|
prompt: buildFixInChatPrompt(a, d)
|
|
34628
34628
|
});
|
|
34629
34629
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34630
|
-
let $ = Q,
|
|
34631
|
-
t[19] === z ?
|
|
34632
|
-
let
|
|
34633
|
-
t[21] === z ?
|
|
34630
|
+
let $ = Q, pJ;
|
|
34631
|
+
t[19] === z ? pJ = t[20] : (pJ = () => K(!z), t[19] = z, t[20] = pJ);
|
|
34632
|
+
let mJ = z ? "Collapse traceback" : "Expand traceback", hJ;
|
|
34633
|
+
t[21] === z ? hJ = t[22] : (hJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34634
34634
|
className: "h-3 w-3"
|
|
34635
34635
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34636
34636
|
className: "h-3 w-3"
|
|
34637
|
-
}), t[21] = z, t[22] =
|
|
34638
|
-
let
|
|
34639
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34637
|
+
}), t[21] = z, t[22] = hJ);
|
|
34638
|
+
let gJ;
|
|
34639
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34640
34640
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34641
34641
|
children: "Traceback"
|
|
34642
|
-
}), t[23] =
|
|
34643
|
-
let
|
|
34644
|
-
t[24] !== z || t[25] !==
|
|
34642
|
+
}), t[23] = gJ) : gJ = t[23];
|
|
34643
|
+
let _J;
|
|
34644
|
+
t[24] !== z || t[25] !== hJ || t[26] !== pJ || t[27] !== mJ ? (_J = (0, import_jsx_runtime.jsxs)("button", {
|
|
34645
34645
|
type: "button",
|
|
34646
|
-
onClick:
|
|
34646
|
+
onClick: pJ,
|
|
34647
34647
|
"aria-expanded": z,
|
|
34648
|
-
"aria-label":
|
|
34648
|
+
"aria-label": mJ,
|
|
34649
34649
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34650
34650
|
children: [
|
|
34651
|
-
|
|
34652
|
-
|
|
34651
|
+
hJ,
|
|
34652
|
+
gJ
|
|
34653
34653
|
]
|
|
34654
|
-
}), t[24] = z, t[25] =
|
|
34655
|
-
let
|
|
34656
|
-
t[29] !== s || t[30] !== z ? (
|
|
34654
|
+
}), t[24] = z, t[25] = hJ, t[26] = pJ, t[27] = mJ, t[28] = _J) : _J = t[28];
|
|
34655
|
+
let vJ;
|
|
34656
|
+
t[29] !== s || t[30] !== z ? (vJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34657
34657
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34658
34658
|
children: s
|
|
34659
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34660
|
-
let
|
|
34661
|
-
t[32] !== J || t[33] !== $ || t[34] !== M ? (
|
|
34659
|
+
}), t[29] = s, t[30] = z, t[31] = vJ) : vJ = t[31];
|
|
34660
|
+
let yJ;
|
|
34661
|
+
t[32] !== J || t[33] !== $ || t[34] !== M ? (yJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34662
34662
|
tooltip: "Fix with AI",
|
|
34663
34663
|
openPrompt: () => J(false),
|
|
34664
34664
|
applyAutofix: () => J(true),
|
|
34665
34665
|
openChat: $
|
|
34666
|
-
}), t[32] = J, t[33] = $, t[34] = M, t[35] =
|
|
34667
|
-
let
|
|
34668
|
-
t[36] !== O || t[37] !== S ? (
|
|
34666
|
+
}), t[32] = J, t[33] = $, t[34] = M, t[35] = yJ) : yJ = t[35];
|
|
34667
|
+
let bJ;
|
|
34668
|
+
t[36] !== O || t[37] !== S ? (bJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34669
34669
|
content: "Attach pdb to the exception point.",
|
|
34670
34670
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34671
34671
|
size: "xs",
|
|
@@ -34682,9 +34682,9 @@ ${d}`,
|
|
|
34682
34682
|
"Launch debugger"
|
|
34683
34683
|
]
|
|
34684
34684
|
})
|
|
34685
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34686
|
-
let
|
|
34687
|
-
t[39] !== d || t[40] !== i ? (
|
|
34685
|
+
}), t[36] = O, t[37] = S, t[38] = bJ) : bJ = t[38];
|
|
34686
|
+
let xJ;
|
|
34687
|
+
t[39] !== d || t[40] !== i ? (xJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34688
34688
|
children: [
|
|
34689
34689
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34690
34690
|
asChild: true,
|
|
@@ -34752,25 +34752,25 @@ ${d}`,
|
|
|
34752
34752
|
]
|
|
34753
34753
|
})
|
|
34754
34754
|
]
|
|
34755
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34756
|
-
let
|
|
34757
|
-
t[42] !==
|
|
34755
|
+
}), t[39] = d, t[40] = i, t[41] = xJ) : xJ = t[41];
|
|
34756
|
+
let SJ;
|
|
34757
|
+
t[42] !== yJ || t[43] !== bJ || t[44] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34758
34758
|
className: "flex gap-2",
|
|
34759
34759
|
children: [
|
|
34760
|
-
vJ,
|
|
34761
34760
|
yJ,
|
|
34762
|
-
bJ
|
|
34761
|
+
bJ,
|
|
34762
|
+
xJ
|
|
34763
34763
|
]
|
|
34764
|
-
}), t[42] =
|
|
34765
|
-
let
|
|
34766
|
-
return t[46] !==
|
|
34764
|
+
}), t[42] = yJ, t[43] = bJ, t[44] = xJ, t[45] = SJ) : SJ = t[45];
|
|
34765
|
+
let CJ;
|
|
34766
|
+
return t[46] !== _J || t[47] !== vJ || t[48] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34767
34767
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34768
34768
|
children: [
|
|
34769
|
-
gJ,
|
|
34770
34769
|
_J,
|
|
34771
|
-
|
|
34770
|
+
vJ,
|
|
34771
|
+
SJ
|
|
34772
34772
|
]
|
|
34773
|
-
}), t[46] =
|
|
34773
|
+
}), t[46] = _J, t[47] = vJ, t[48] = SJ, t[49] = CJ) : CJ = t[49], CJ;
|
|
34774
34774
|
};
|
|
34775
34775
|
function lastLine(e) {
|
|
34776
34776
|
var _a2, _b;
|
|
@@ -36206,14 +36206,14 @@ ${d}`,
|
|
|
36206
36206
|
Q
|
|
36207
36207
|
]
|
|
36208
36208
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36209
|
-
let
|
|
36210
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36209
|
+
let pJ;
|
|
36210
|
+
return t[36] !== I || t[37] !== $ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36211
36211
|
className: "flex flex-col gap-3",
|
|
36212
36212
|
children: [
|
|
36213
36213
|
I,
|
|
36214
36214
|
$
|
|
36215
36215
|
]
|
|
36216
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36216
|
+
}), t[36] = I, t[37] = $, t[38] = pJ) : pJ = t[38], pJ;
|
|
36217
36217
|
};
|
|
36218
36218
|
SlideSidebar = (e) => {
|
|
36219
36219
|
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
@@ -36338,7 +36338,7 @@ ${d}`,
|
|
|
36338
36338
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36339
36339
|
}
|
|
36340
36340
|
}
|
|
36341
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-
|
|
36341
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev32");
|
|
36342
36342
|
showCodeInRunModeAtom = atom(true);
|
|
36343
36343
|
atom(null);
|
|
36344
36344
|
var import_compiler_runtime = require_compiler_runtime();
|