@marimo-team/islands 0.24.1-dev35 → 0.24.1-dev36
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-ChbH2I73.js → chat-ui-DktaBw5O.js} +62 -62
- package/dist/{common-C1BvDvU0.js → common-B4PK0RCN.js} +695 -715
- package/dist/{html-to-image-BzT-fb14.js → html-to-image-RKitVHn8.js} +2374 -2351
- package/dist/main.js +82 -82
- package/dist/{process-output-C8Q8G6-g.js → process-output-BEMkC1sa.js} +1 -1
- package/dist/{reveal-component-D-I8Cn0V.js → reveal-component-DxaTQmhR.js} +2 -2
- package/package.json +1 -1
- package/src/utils/__tests__/url-parser.test.ts +26 -0
- package/src/utils/json/__tests__/json-parser.test.ts +33 -0
- package/src/utils/json/json-parser.ts +5 -3
- package/src/utils/url-parser.ts +4 -3
|
@@ -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-DhGsCS90.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-DsR6imPN.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-C7ZKMKox.js";
|
|
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
|
|
9
|
+
import { B as isDataURLString, Bn as LoaderCircle, Bt as PluralWord, C as Accordion, Cn as jsonToMarkdown, Dt as toggleBreakpoint, E as AccordionTrigger, En as atomWithStorage, Fn as Trash2, Gn as ExternalLink, H as renderHTML, Hn as Info, Ht as DATA_TYPE_ICON, It as getFeatureFlag, J as getCellEditorView, Jn as CircleX, L as base64ToUint8Array, M as DotFilledIcon, Mt as useChromeActions, N as PinLeftIcon, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pn as Wrench, Pt as jotaiJsonStorage, Q as notebookAtom, Qn as import_lib, Qt as useRequestClient, Rn as NotebookPen, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Un as FileText, Ut as getDataTypeColor, Wn as Eye, Wt as resolveDataType, Xn as Braces, Xt as getRequestClient, Zn as esm_default, _ 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, kn as Close$1, 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, r as MarkdownRenderer, rt as useCellIds, sn as extractAllTracebackInfo, t as toPng, u as PopoverContent, w as AccordionContent, wn as parseContent, yt as Checkbox, z as extractBase64FromDataURL, zn as Minus, __tla as __tla_0 } from "./html-to-image-RKitVHn8.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-j30bBjjN.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-Bw4wRj_O.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-B_vTzxpm.js";
|
|
@@ -2062,21 +2062,21 @@ Defaulting to \`null\`.`;
|
|
|
2062
2062
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2063
2063
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2064
2064
|
if (e === t) return;
|
|
2065
|
-
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,
|
|
2066
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
2067
|
-
let
|
|
2068
|
-
if (
|
|
2069
|
-
else if (
|
|
2070
|
-
else if (
|
|
2071
|
-
else if (
|
|
2072
|
-
let e2 =
|
|
2065
|
+
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, dJ = c.top - E, fJ = c.bottom + O, pJ = c.left - A, mJ = c.right + M, hJ = e === _ ? 0 : Q + $, gJ = e === _ ? 0 : q + J, _J = e.offsetWidth - e.clientWidth - hJ, vJ = e.offsetHeight - e.clientHeight - gJ, yJ = v + q + I, bJ = y - J - z - vJ, xJ = S + Q + U, SJ = w - $ - K;
|
|
2066
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? xJ += _J : SJ -= _J;
|
|
2067
|
+
let CJ = dJ < yJ || fJ > bJ, wJ = pJ < xJ || mJ > SJ;
|
|
2068
|
+
if (CJ && i === "start") o += dJ - yJ;
|
|
2069
|
+
else if (CJ && i === "center") o += (dJ + fJ) / 2 - (yJ + bJ) / 2;
|
|
2070
|
+
else if (CJ && i === "end") o += fJ - bJ;
|
|
2071
|
+
else if (CJ && i === "nearest") {
|
|
2072
|
+
let e2 = dJ - yJ, t2 = fJ - bJ;
|
|
2073
2073
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2074
2074
|
}
|
|
2075
|
-
if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
else if (
|
|
2079
|
-
let e2 =
|
|
2075
|
+
if (wJ && a === "start") s += pJ - xJ;
|
|
2076
|
+
else if (wJ && a === "center") s += (pJ + mJ) / 2 - (xJ + SJ) / 2;
|
|
2077
|
+
else if (wJ && a === "end") s += mJ - SJ;
|
|
2078
|
+
else if (wJ && a === "nearest") {
|
|
2079
|
+
let e2 = pJ - xJ, t2 = mJ - SJ;
|
|
2080
2080
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2081
2081
|
}
|
|
2082
2082
|
e.scrollTo({
|
|
@@ -5186,23 +5186,23 @@ Defaulting to \`null\`.`;
|
|
|
5186
5186
|
}
|
|
5187
5187
|
let $ = "bottom";
|
|
5188
5188
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5189
|
-
let
|
|
5190
|
-
q[I] +=
|
|
5191
|
-
let
|
|
5192
|
-
y && y <
|
|
5193
|
-
let
|
|
5194
|
-
|
|
5195
|
-
let
|
|
5196
|
-
x: U === "top" || U === "bottom" ?
|
|
5197
|
-
y: U === "left" || U === "right" ?
|
|
5189
|
+
let dJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5190
|
+
q[I] += dJ;
|
|
5191
|
+
let fJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5192
|
+
y && y < fJ && (fJ = y), n.height = Math.min(n.height, fJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), dJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += dJ;
|
|
5193
|
+
let pJ = {}, mJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], hJ = mJ + 0.5 * t[z], gJ = S / 2 + w, _J = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), vJ = n[z] - _J - S / 2 - w;
|
|
5194
|
+
pJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(hJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), gJ, vJ), { placement: U, crossPlacement: K } = A, S ? mJ = pJ[I] : K === "right" ? mJ += t[z] : K === "center" && (mJ += t[z] / 2);
|
|
5195
|
+
let yJ = U === "left" || U === "top" ? n[M] : 0, bJ = {
|
|
5196
|
+
x: U === "top" || U === "bottom" ? mJ : yJ,
|
|
5197
|
+
y: U === "left" || U === "right" ? mJ : yJ
|
|
5198
5198
|
};
|
|
5199
5199
|
return {
|
|
5200
5200
|
position: q,
|
|
5201
|
-
maxHeight:
|
|
5202
|
-
arrowOffsetLeft:
|
|
5203
|
-
arrowOffsetTop:
|
|
5201
|
+
maxHeight: fJ,
|
|
5202
|
+
arrowOffsetLeft: pJ.left,
|
|
5203
|
+
arrowOffsetTop: pJ.top,
|
|
5204
5204
|
placement: U,
|
|
5205
|
-
triggerAnchorPoint:
|
|
5205
|
+
triggerAnchorPoint: bJ
|
|
5206
5206
|
};
|
|
5207
5207
|
}
|
|
5208
5208
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7057,7 +7057,7 @@ Defaulting to \`null\`.`;
|
|
|
7057
7057
|
n,
|
|
7058
7058
|
h
|
|
7059
7059
|
]);
|
|
7060
|
-
let
|
|
7060
|
+
let dJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7061
7061
|
role: "textbox",
|
|
7062
7062
|
"aria-valuemax": null,
|
|
7063
7063
|
"aria-valuemin": null,
|
|
@@ -7067,8 +7067,8 @@ Defaulting to \`null\`.`;
|
|
|
7067
7067
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7068
7068
|
t.segments
|
|
7069
7069
|
]) && !t.isInvalid && (f = void 0);
|
|
7070
|
-
let
|
|
7071
|
-
"aria-label": `${
|
|
7070
|
+
let fJ = $bdb11010cef70236$export$f680877a34711e37(), pJ = !t.isDisabled && !t.isReadOnly && e.isEditable, mJ = e.type === "literal" ? "" : s.of(e.type), hJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7071
|
+
"aria-label": `${mJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7072
7072
|
"aria-labelledby": d
|
|
7073
7073
|
});
|
|
7074
7074
|
if (e.type === "literal") return {
|
|
@@ -7076,32 +7076,32 @@ Defaulting to \`null\`.`;
|
|
|
7076
7076
|
"aria-hidden": true
|
|
7077
7077
|
}
|
|
7078
7078
|
};
|
|
7079
|
-
let
|
|
7079
|
+
let gJ = {
|
|
7080
7080
|
caretColor: "transparent"
|
|
7081
7081
|
};
|
|
7082
7082
|
if (o === "rtl") {
|
|
7083
|
-
|
|
7083
|
+
gJ.unicodeBidi = "embed";
|
|
7084
7084
|
let t2 = v[e.type];
|
|
7085
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7085
|
+
(t2 === "numeric" || t2 === "2-digit") && (gJ.direction = "ltr");
|
|
7086
7086
|
}
|
|
7087
7087
|
return {
|
|
7088
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7089
|
-
id:
|
|
7090
|
-
...
|
|
7088
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, hJ, {
|
|
7089
|
+
id: fJ,
|
|
7090
|
+
...dJ,
|
|
7091
7091
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7092
7092
|
"aria-describedby": f,
|
|
7093
7093
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7094
7094
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
7095
|
-
contentEditable:
|
|
7096
|
-
suppressContentEditableWarning:
|
|
7097
|
-
spellCheck:
|
|
7098
|
-
autoCorrect:
|
|
7099
|
-
enterKeyHint:
|
|
7100
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
7095
|
+
contentEditable: pJ,
|
|
7096
|
+
suppressContentEditableWarning: pJ,
|
|
7097
|
+
spellCheck: pJ ? "false" : void 0,
|
|
7098
|
+
autoCorrect: pJ ? "off" : void 0,
|
|
7099
|
+
enterKeyHint: pJ ? "next" : void 0,
|
|
7100
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !pJ ? void 0 : "numeric",
|
|
7101
7101
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7102
7102
|
onKeyDown: A,
|
|
7103
7103
|
onFocus: Q,
|
|
7104
|
-
style:
|
|
7104
|
+
style: gJ,
|
|
7105
7105
|
onPointerDown(e2) {
|
|
7106
7106
|
e2.stopPropagation();
|
|
7107
7107
|
},
|
|
@@ -10344,12 +10344,12 @@ Defaulting to \`null\`.`;
|
|
|
10344
10344
|
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);
|
|
10345
10345
|
}
|
|
10346
10346
|
}
|
|
10347
|
-
let
|
|
10347
|
+
let dJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10348
10348
|
w,
|
|
10349
10349
|
f,
|
|
10350
10350
|
s,
|
|
10351
10351
|
c
|
|
10352
|
-
]),
|
|
10352
|
+
]), fJ = e.isInvalid || e.validationState === "invalid" || dJ, pJ = fJ ? "invalid" : null, mJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10353
10353
|
h,
|
|
10354
10354
|
o
|
|
10355
10355
|
]);
|
|
@@ -10366,8 +10366,8 @@ Defaulting to \`null\`.`;
|
|
|
10366
10366
|
maxValue: c,
|
|
10367
10367
|
focusedDate: O,
|
|
10368
10368
|
timeZone: E,
|
|
10369
|
-
validationState:
|
|
10370
|
-
isValueInvalid:
|
|
10369
|
+
validationState: pJ,
|
|
10370
|
+
isValueInvalid: fJ,
|
|
10371
10371
|
setFocusedDate(e2) {
|
|
10372
10372
|
Q(e2);
|
|
10373
10373
|
},
|
|
@@ -10392,12 +10392,12 @@ Defaulting to \`null\`.`;
|
|
|
10392
10392
|
}));
|
|
10393
10393
|
},
|
|
10394
10394
|
focusNextPage() {
|
|
10395
|
-
let e2 = M.add(
|
|
10396
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10395
|
+
let e2 = M.add(mJ);
|
|
10396
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(mJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, mJ, i, s, c), mJ, i));
|
|
10397
10397
|
},
|
|
10398
10398
|
focusPreviousPage() {
|
|
10399
|
-
let e2 = M.subtract(
|
|
10400
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10399
|
+
let e2 = M.subtract(mJ);
|
|
10400
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(mJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, mJ, i, s, c), mJ, i));
|
|
10401
10401
|
},
|
|
10402
10402
|
focusSectionStart() {
|
|
10403
10403
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10534,13 +10534,13 @@ Defaulting to \`null\`.`;
|
|
|
10534
10534
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10535
10535
|
}), q(null);
|
|
10536
10536
|
}
|
|
10537
|
-
}, [$,
|
|
10538
|
-
|
|
10537
|
+
}, [$, dJ] = (0, import_react.useState)(false), { isDateUnavailable: fJ } = e, pJ = (0, import_react.useMemo)(() => !h || v ? false : fJ && (fJ(h.start) || fJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10538
|
+
fJ,
|
|
10539
10539
|
h,
|
|
10540
10540
|
v,
|
|
10541
10541
|
c,
|
|
10542
10542
|
d
|
|
10543
|
-
]),
|
|
10543
|
+
]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null;
|
|
10544
10544
|
return {
|
|
10545
10545
|
...I,
|
|
10546
10546
|
value: h,
|
|
@@ -10548,8 +10548,8 @@ Defaulting to \`null\`.`;
|
|
|
10548
10548
|
anchorDate: v,
|
|
10549
10549
|
setAnchorDate: q,
|
|
10550
10550
|
highlightedRange: J,
|
|
10551
|
-
validationState:
|
|
10552
|
-
isValueInvalid:
|
|
10551
|
+
validationState: hJ,
|
|
10552
|
+
isValueInvalid: mJ,
|
|
10553
10553
|
selectFocusedDate() {
|
|
10554
10554
|
Q(I.focusedDate);
|
|
10555
10555
|
},
|
|
@@ -10565,7 +10565,7 @@ Defaulting to \`null\`.`;
|
|
|
10565
10565
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10566
10566
|
},
|
|
10567
10567
|
isDragging: $,
|
|
10568
|
-
setDragging:
|
|
10568
|
+
setDragging: dJ
|
|
10569
10569
|
};
|
|
10570
10570
|
}
|
|
10571
10571
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11752,7 +11752,7 @@ Defaulting to \`null\`.`;
|
|
|
11752
11752
|
_,
|
|
11753
11753
|
S,
|
|
11754
11754
|
v
|
|
11755
|
-
]),
|
|
11755
|
+
]), dJ = (0, import_react.useMemo)(() => {
|
|
11756
11756
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11757
11757
|
"era",
|
|
11758
11758
|
"year",
|
|
@@ -11770,15 +11770,15 @@ Defaulting to \`null\`.`;
|
|
|
11770
11770
|
e.maxGranularity,
|
|
11771
11771
|
_,
|
|
11772
11772
|
w
|
|
11773
|
-
]), [
|
|
11774
|
-
(M !==
|
|
11775
|
-
let
|
|
11776
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11773
|
+
]), [fJ, pJ] = (0, import_react.useState)(M), [mJ, hJ] = (0, import_react.useState)(S), [gJ, _J] = (0, import_react.useState)(w);
|
|
11774
|
+
(M !== fJ || w !== gJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, mJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), pJ(M), hJ(S), _J(w), z(I));
|
|
11775
|
+
let vJ = (t2) => {
|
|
11776
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(dJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11777
11777
|
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);
|
|
11778
11778
|
else {
|
|
11779
|
-
if (t2.isComplete(
|
|
11779
|
+
if (t2.isComplete(dJ)) {
|
|
11780
11780
|
let e2 = t2.toValue(M ?? $);
|
|
11781
|
-
if (t2.validate(e2,
|
|
11781
|
+
if (t2.validate(e2, dJ)) {
|
|
11782
11782
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11783
11783
|
if (!E || t3.compare(E) !== 0) {
|
|
11784
11784
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11788,83 +11788,83 @@ Defaulting to \`null\`.`;
|
|
|
11788
11788
|
}
|
|
11789
11789
|
z(t2);
|
|
11790
11790
|
}
|
|
11791
|
-
},
|
|
11791
|
+
}, yJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11792
11792
|
I,
|
|
11793
11793
|
y,
|
|
11794
11794
|
M,
|
|
11795
11795
|
$
|
|
11796
|
-
]),
|
|
11797
|
-
|
|
11796
|
+
]), bJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(yJ, I, J, Q, S, t, _), [
|
|
11797
|
+
yJ,
|
|
11798
11798
|
J,
|
|
11799
11799
|
Q,
|
|
11800
11800
|
I,
|
|
11801
11801
|
S,
|
|
11802
11802
|
t,
|
|
11803
11803
|
_
|
|
11804
|
-
]),
|
|
11805
|
-
|
|
11806
|
-
},
|
|
11804
|
+
]), xJ = (e2, t2) => {
|
|
11805
|
+
vJ(I.cycle(e2, t2, $, dJ));
|
|
11806
|
+
}, SJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11807
11807
|
E,
|
|
11808
11808
|
c,
|
|
11809
11809
|
d,
|
|
11810
11810
|
f,
|
|
11811
11811
|
K
|
|
11812
|
-
]),
|
|
11812
|
+
]), CJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11813
11813
|
...e,
|
|
11814
11814
|
value: E,
|
|
11815
|
-
builtinValidation:
|
|
11816
|
-
}),
|
|
11815
|
+
builtinValidation: SJ
|
|
11816
|
+
}), wJ = CJ.displayValidation.isInvalid, TJ = e.validationState || (wJ ? "invalid" : null);
|
|
11817
11817
|
return {
|
|
11818
|
-
...
|
|
11818
|
+
...CJ,
|
|
11819
11819
|
value: M,
|
|
11820
11820
|
defaultValue: e.defaultValue ?? A,
|
|
11821
|
-
dateValue:
|
|
11821
|
+
dateValue: yJ,
|
|
11822
11822
|
calendar: S,
|
|
11823
|
-
setValue:
|
|
11824
|
-
segments:
|
|
11823
|
+
setValue: vJ,
|
|
11824
|
+
segments: bJ,
|
|
11825
11825
|
dateFormatter: J,
|
|
11826
|
-
validationState:
|
|
11827
|
-
isInvalid:
|
|
11826
|
+
validationState: TJ,
|
|
11827
|
+
isInvalid: wJ,
|
|
11828
11828
|
granularity: _,
|
|
11829
11829
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11830
11830
|
isDisabled: a,
|
|
11831
11831
|
isReadOnly: o,
|
|
11832
11832
|
isRequired: s,
|
|
11833
11833
|
increment(e2) {
|
|
11834
|
-
|
|
11834
|
+
xJ(e2, 1);
|
|
11835
11835
|
},
|
|
11836
11836
|
decrement(e2) {
|
|
11837
|
-
|
|
11837
|
+
xJ(e2, -1);
|
|
11838
11838
|
},
|
|
11839
11839
|
incrementPage(e2) {
|
|
11840
|
-
|
|
11840
|
+
xJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11841
11841
|
},
|
|
11842
11842
|
decrementPage(e2) {
|
|
11843
|
-
|
|
11843
|
+
xJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11844
11844
|
},
|
|
11845
11845
|
incrementToMax(e2) {
|
|
11846
11846
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11847
|
-
|
|
11847
|
+
vJ(I.set(e2, t2, $));
|
|
11848
11848
|
},
|
|
11849
11849
|
decrementToMin(e2) {
|
|
11850
11850
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11851
|
-
|
|
11851
|
+
vJ(I.set(e2, t2, $));
|
|
11852
11852
|
},
|
|
11853
11853
|
setSegment(e2, t2) {
|
|
11854
|
-
|
|
11854
|
+
vJ(I.set(e2, t2, $));
|
|
11855
11855
|
},
|
|
11856
11856
|
confirmPlaceholder() {
|
|
11857
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11857
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(dJ)) {
|
|
11858
11858
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11859
11859
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11860
11860
|
}
|
|
11861
11861
|
},
|
|
11862
11862
|
clearSegment(e2) {
|
|
11863
11863
|
let t2 = I;
|
|
11864
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11864
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), vJ(t2);
|
|
11865
11865
|
},
|
|
11866
11866
|
formatValue(e2) {
|
|
11867
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11867
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(yJ) : "";
|
|
11868
11868
|
},
|
|
11869
11869
|
getDateFormatter(e2, t2) {
|
|
11870
11870
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11984,7 +11984,7 @@ Defaulting to \`null\`.`;
|
|
|
11984
11984
|
e.endName
|
|
11985
11985
|
]),
|
|
11986
11986
|
builtinValidation: J
|
|
11987
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11987
|
+
}), $ = Q.displayValidation.isInvalid, dJ = e.validationState || ($ ? "invalid" : null);
|
|
11988
11988
|
return {
|
|
11989
11989
|
...Q,
|
|
11990
11990
|
value: c,
|
|
@@ -12030,7 +12030,7 @@ Defaulting to \`null\`.`;
|
|
|
12030
12030
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12031
12031
|
}), t.setOpen(n2);
|
|
12032
12032
|
},
|
|
12033
|
-
validationState:
|
|
12033
|
+
validationState: dJ,
|
|
12034
12034
|
isInvalid: $,
|
|
12035
12035
|
formatValue(t2, n2) {
|
|
12036
12036
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15924,33 +15924,33 @@ try {
|
|
|
15924
15924
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15925
15925
|
function y(e2) {
|
|
15926
15926
|
var _a2, _b, _c, _d;
|
|
15927
|
-
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,
|
|
15927
|
+
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, dJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15928
15928
|
h2
|
|
15929
|
-
]),
|
|
15930
|
-
|
|
15931
|
-
]),
|
|
15932
|
-
supportedColorSchemes:
|
|
15933
|
-
defaultLightColorScheme:
|
|
15934
|
-
defaultDarkColorScheme:
|
|
15929
|
+
]), fJ = dJ[t], pJ = fJ || dJ, { colorSchemes: mJ = _, components: hJ = v, cssVarPrefix: gJ } = pJ, _J = Object.keys(mJ).filter((e3) => !!mJ[e3]).join(","), vJ = import_react.useMemo(() => _J.split(","), [
|
|
15930
|
+
_J
|
|
15931
|
+
]), yJ = typeof s == "string" ? s : s.light, bJ = typeof s == "string" ? s : s.dark, { mode: xJ, setMode: SJ, systemMode: CJ, lightColorScheme: wJ, darkColorScheme: TJ, colorScheme: EJ, setColorScheme: DJ } = useCurrentColorScheme({
|
|
15932
|
+
supportedColorSchemes: vJ,
|
|
15933
|
+
defaultLightColorScheme: yJ,
|
|
15934
|
+
defaultDarkColorScheme: bJ,
|
|
15935
15935
|
modeStorageKey: y2,
|
|
15936
15936
|
colorSchemeStorageKey: S2,
|
|
15937
|
-
defaultMode:
|
|
15937
|
+
defaultMode: mJ[yJ] && mJ[bJ] ? U : ((_b = (_a2 = mJ[pJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = pJ.palette) == null ? void 0 : _c.mode),
|
|
15938
15938
|
storageManager: E,
|
|
15939
15939
|
storageWindow: O,
|
|
15940
15940
|
noSsr: K
|
|
15941
|
-
}),
|
|
15942
|
-
$ && (
|
|
15943
|
-
let
|
|
15941
|
+
}), OJ = xJ, kJ = EJ;
|
|
15942
|
+
$ && (OJ = Q.mode, kJ = Q.colorScheme);
|
|
15943
|
+
let AJ = import_react.useMemo(() => {
|
|
15944
15944
|
var _a3;
|
|
15945
|
-
let e3 =
|
|
15946
|
-
...
|
|
15947
|
-
components:
|
|
15948
|
-
colorSchemes:
|
|
15949
|
-
cssVarPrefix:
|
|
15945
|
+
let e3 = kJ || pJ.defaultColorScheme, t2 = ((_a3 = pJ.generateThemeVars) == null ? void 0 : _a3.call(pJ)) || pJ.vars, n2 = {
|
|
15946
|
+
...pJ,
|
|
15947
|
+
components: hJ,
|
|
15948
|
+
colorSchemes: mJ,
|
|
15949
|
+
cssVarPrefix: gJ,
|
|
15950
15950
|
vars: t2
|
|
15951
15951
|
};
|
|
15952
15952
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15953
|
-
let t3 =
|
|
15953
|
+
let t3 = mJ[e3];
|
|
15954
15954
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15955
15955
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15956
15956
|
...n2[e4],
|
|
@@ -15960,31 +15960,31 @@ try {
|
|
|
15960
15960
|
}
|
|
15961
15961
|
return c ? c(n2) : n2;
|
|
15962
15962
|
}, [
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
]),
|
|
15963
|
+
pJ,
|
|
15964
|
+
kJ,
|
|
15965
|
+
hJ,
|
|
15966
|
+
mJ,
|
|
15967
|
+
gJ
|
|
15968
|
+
]), jJ = pJ.colorSchemeSelector;
|
|
15969
15969
|
useEnhancedEffect_default(() => {
|
|
15970
|
-
if (
|
|
15971
|
-
let e3 =
|
|
15972
|
-
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(...
|
|
15970
|
+
if (kJ && M && jJ && jJ !== "media") {
|
|
15971
|
+
let e3 = jJ, t2 = jJ;
|
|
15972
|
+
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(...vJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", kJ));
|
|
15973
15973
|
else {
|
|
15974
|
-
let e4 = t2.replace("%s",
|
|
15974
|
+
let e4 = t2.replace("%s", kJ).match(/\[([^\]]+)\]/);
|
|
15975
15975
|
if (e4) {
|
|
15976
15976
|
let [t3, n2] = e4[1].split("=");
|
|
15977
|
-
n2 ||
|
|
15978
|
-
M.removeAttribute(t3.replace(
|
|
15977
|
+
n2 || vJ.forEach((e5) => {
|
|
15978
|
+
M.removeAttribute(t3.replace(kJ, e5));
|
|
15979
15979
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15980
|
-
} else M.setAttribute(t2,
|
|
15980
|
+
} else M.setAttribute(t2, kJ);
|
|
15981
15981
|
}
|
|
15982
15982
|
}
|
|
15983
15983
|
}, [
|
|
15984
|
-
|
|
15985
|
-
|
|
15984
|
+
kJ,
|
|
15985
|
+
jJ,
|
|
15986
15986
|
M,
|
|
15987
|
-
|
|
15987
|
+
vJ
|
|
15988
15988
|
]), import_react.useEffect(() => {
|
|
15989
15989
|
let e3;
|
|
15990
15990
|
if (w2 && q.current && A) {
|
|
@@ -15997,48 +15997,48 @@ try {
|
|
|
15997
15997
|
clearTimeout(e3);
|
|
15998
15998
|
};
|
|
15999
15999
|
}, [
|
|
16000
|
-
|
|
16000
|
+
kJ,
|
|
16001
16001
|
w2,
|
|
16002
16002
|
A
|
|
16003
16003
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
16004
16004
|
q.current = false;
|
|
16005
16005
|
}), []);
|
|
16006
|
-
let
|
|
16007
|
-
allColorSchemes:
|
|
16008
|
-
colorScheme:
|
|
16009
|
-
darkColorScheme:
|
|
16010
|
-
lightColorScheme:
|
|
16011
|
-
mode:
|
|
16012
|
-
setColorScheme:
|
|
16013
|
-
setMode:
|
|
16014
|
-
systemMode:
|
|
16006
|
+
let MJ = import_react.useMemo(() => ({
|
|
16007
|
+
allColorSchemes: vJ,
|
|
16008
|
+
colorScheme: kJ,
|
|
16009
|
+
darkColorScheme: TJ,
|
|
16010
|
+
lightColorScheme: wJ,
|
|
16011
|
+
mode: OJ,
|
|
16012
|
+
setColorScheme: DJ,
|
|
16013
|
+
setMode: SJ,
|
|
16014
|
+
systemMode: CJ
|
|
16015
16015
|
}), [
|
|
16016
|
-
|
|
16017
|
-
NJ,
|
|
16016
|
+
vJ,
|
|
16018
16017
|
kJ,
|
|
16018
|
+
TJ,
|
|
16019
|
+
wJ,
|
|
16019
16020
|
OJ,
|
|
16020
|
-
MJ,
|
|
16021
|
-
jJ,
|
|
16022
|
-
EJ,
|
|
16023
16021
|
DJ,
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16022
|
+
SJ,
|
|
16023
|
+
CJ,
|
|
16024
|
+
AJ.colorSchemeSelector
|
|
16025
|
+
]), NJ = true;
|
|
16026
|
+
(z || pJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === gJ) && (NJ = false);
|
|
16027
|
+
let PJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16028
16028
|
children: [
|
|
16029
16029
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16030
|
-
themeId:
|
|
16031
|
-
theme:
|
|
16030
|
+
themeId: fJ ? t : void 0,
|
|
16031
|
+
theme: AJ,
|
|
16032
16032
|
children: d2
|
|
16033
16033
|
}),
|
|
16034
|
-
|
|
16035
|
-
styles: ((_d =
|
|
16034
|
+
NJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16035
|
+
styles: ((_d = AJ.generateStyleSheets) == null ? void 0 : _d.call(AJ)) || []
|
|
16036
16036
|
})
|
|
16037
16037
|
]
|
|
16038
16038
|
});
|
|
16039
|
-
return $ ?
|
|
16040
|
-
value:
|
|
16041
|
-
children:
|
|
16039
|
+
return $ ? PJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16040
|
+
value: MJ,
|
|
16041
|
+
children: PJ
|
|
16042
16042
|
});
|
|
16043
16043
|
}
|
|
16044
16044
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17538,10 +17538,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17538
17538
|
let n = useDefaultProps({
|
|
17539
17539
|
props: e,
|
|
17540
17540
|
name: "MuiInputBase"
|
|
17541
|
-
}), { "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:
|
|
17542
|
-
}, []),
|
|
17541
|
+
}), { "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: dJ, onKeyDown: fJ, onKeyUp: pJ, placeholder: mJ, readOnly: hJ, renderSuffix: gJ, rows: _J, size: vJ, slotProps: yJ = {}, slots: bJ = {}, startAdornment: xJ, type: SJ = "text", value: CJ, ...wJ } = n, TJ = A.value == null ? CJ : A.value, { current: EJ } = import_react.useRef(TJ != null), DJ = import_react.useRef(), OJ = import_react.useCallback((e2) => {
|
|
17542
|
+
}, []), kJ = useForkRef_default(DJ, M, A.ref, OJ), [AJ, jJ] = import_react.useState(false), MJ = useFormControl(), NJ = formControlState({
|
|
17543
17543
|
props: n,
|
|
17544
|
-
muiFormControl:
|
|
17544
|
+
muiFormControl: MJ,
|
|
17545
17545
|
states: [
|
|
17546
17546
|
"color",
|
|
17547
17547
|
"disabled",
|
|
@@ -17552,145 +17552,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17552
17552
|
"filled"
|
|
17553
17553
|
]
|
|
17554
17554
|
});
|
|
17555
|
-
|
|
17556
|
-
!
|
|
17555
|
+
NJ.focused = MJ ? MJ.focused : AJ, import_react.useEffect(() => {
|
|
17556
|
+
!MJ && _ && AJ && (jJ(false), J && J());
|
|
17557
17557
|
}, [
|
|
17558
|
-
|
|
17558
|
+
MJ,
|
|
17559
17559
|
_,
|
|
17560
|
-
|
|
17560
|
+
AJ,
|
|
17561
17561
|
J
|
|
17562
17562
|
]);
|
|
17563
|
-
let
|
|
17564
|
-
isFilled(e2) ?
|
|
17563
|
+
let PJ = MJ && MJ.onFilled, FJ = MJ && MJ.onEmpty, IJ = import_react.useCallback((e2) => {
|
|
17564
|
+
isFilled(e2) ? PJ && PJ() : FJ && FJ();
|
|
17565
17565
|
}, [
|
|
17566
|
-
|
|
17567
|
-
|
|
17566
|
+
PJ,
|
|
17567
|
+
FJ
|
|
17568
17568
|
]);
|
|
17569
17569
|
useEnhancedEffect_default$1(() => {
|
|
17570
|
-
|
|
17571
|
-
value:
|
|
17570
|
+
EJ && IJ({
|
|
17571
|
+
value: TJ
|
|
17572
17572
|
});
|
|
17573
17573
|
}, [
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17574
|
+
TJ,
|
|
17575
|
+
IJ,
|
|
17576
|
+
EJ
|
|
17577
17577
|
]);
|
|
17578
|
-
let
|
|
17579
|
-
|
|
17580
|
-
},
|
|
17581
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17582
|
-
},
|
|
17583
|
-
if (!
|
|
17584
|
-
let t3 = e2.target ||
|
|
17578
|
+
let LJ = (e2) => {
|
|
17579
|
+
dJ && dJ(e2), A.onFocus && A.onFocus(e2), MJ && MJ.onFocus ? MJ.onFocus(e2) : jJ(true);
|
|
17580
|
+
}, RJ = (e2) => {
|
|
17581
|
+
J && J(e2), A.onBlur && A.onBlur(e2), MJ && MJ.onBlur ? MJ.onBlur(e2) : jJ(false);
|
|
17582
|
+
}, zJ = (e2, ...t2) => {
|
|
17583
|
+
if (!EJ) {
|
|
17584
|
+
let t3 = e2.target || DJ.current;
|
|
17585
17585
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17586
|
-
|
|
17586
|
+
IJ({
|
|
17587
17587
|
value: t3.value
|
|
17588
17588
|
});
|
|
17589
17589
|
}
|
|
17590
17590
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17591
17591
|
};
|
|
17592
17592
|
import_react.useEffect(() => {
|
|
17593
|
-
|
|
17593
|
+
IJ(DJ.current);
|
|
17594
17594
|
}, []);
|
|
17595
|
-
let
|
|
17596
|
-
|
|
17597
|
-
},
|
|
17598
|
-
K &&
|
|
17595
|
+
let BJ = (e2) => {
|
|
17596
|
+
DJ.current && e2.currentTarget === e2.target && DJ.current.focus(), $ && $(e2);
|
|
17597
|
+
}, VJ = O, HJ = A;
|
|
17598
|
+
K && VJ === "input" && (HJ = _J ? {
|
|
17599
17599
|
type: void 0,
|
|
17600
|
-
minRows:
|
|
17601
|
-
maxRows:
|
|
17602
|
-
...
|
|
17600
|
+
minRows: _J,
|
|
17601
|
+
maxRows: _J,
|
|
17602
|
+
...HJ
|
|
17603
17603
|
} : {
|
|
17604
17604
|
type: void 0,
|
|
17605
17605
|
maxRows: z,
|
|
17606
17606
|
minRows: U,
|
|
17607
|
-
...
|
|
17608
|
-
},
|
|
17609
|
-
let
|
|
17610
|
-
|
|
17607
|
+
...HJ
|
|
17608
|
+
}, VJ = TextareaAutosize_default);
|
|
17609
|
+
let UJ = (e2) => {
|
|
17610
|
+
IJ(e2.animationName === "mui-auto-fill-cancel" ? DJ.current : {
|
|
17611
17611
|
value: "x"
|
|
17612
17612
|
});
|
|
17613
17613
|
};
|
|
17614
17614
|
import_react.useEffect(() => {
|
|
17615
|
-
|
|
17615
|
+
MJ && MJ.setAdornedStart(!!xJ);
|
|
17616
17616
|
}, [
|
|
17617
|
-
|
|
17618
|
-
|
|
17617
|
+
MJ,
|
|
17618
|
+
xJ
|
|
17619
17619
|
]);
|
|
17620
|
-
let
|
|
17620
|
+
let WJ = {
|
|
17621
17621
|
...n,
|
|
17622
|
-
color:
|
|
17623
|
-
disabled:
|
|
17622
|
+
color: NJ.color || "primary",
|
|
17623
|
+
disabled: NJ.disabled,
|
|
17624
17624
|
endAdornment: y,
|
|
17625
|
-
error:
|
|
17626
|
-
focused:
|
|
17627
|
-
formControl:
|
|
17625
|
+
error: NJ.error,
|
|
17626
|
+
focused: NJ.focused,
|
|
17627
|
+
formControl: MJ,
|
|
17628
17628
|
fullWidth: w,
|
|
17629
|
-
hiddenLabel:
|
|
17629
|
+
hiddenLabel: NJ.hiddenLabel,
|
|
17630
17630
|
multiline: K,
|
|
17631
|
-
size:
|
|
17632
|
-
startAdornment:
|
|
17633
|
-
type:
|
|
17634
|
-
},
|
|
17635
|
-
return
|
|
17636
|
-
...
|
|
17637
|
-
...
|
|
17631
|
+
size: NJ.size,
|
|
17632
|
+
startAdornment: xJ,
|
|
17633
|
+
type: SJ
|
|
17634
|
+
}, GJ = useUtilityClasses(WJ), KJ = bJ.root || d.Root || InputBaseRoot, qJ = yJ.root || f.root || {}, JJ = bJ.input || d.Input || InputBaseInput;
|
|
17635
|
+
return HJ = {
|
|
17636
|
+
...HJ,
|
|
17637
|
+
...yJ.input ?? f.input
|
|
17638
17638
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17639
17639
|
children: [
|
|
17640
17640
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17641
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17642
|
-
...
|
|
17641
|
+
(0, import_jsx_runtime.jsxs)(KJ, {
|
|
17642
|
+
...qJ,
|
|
17643
17643
|
ref: t,
|
|
17644
|
-
onClick:
|
|
17645
|
-
...
|
|
17646
|
-
...!isHostComponent_default(
|
|
17644
|
+
onClick: BJ,
|
|
17645
|
+
...wJ,
|
|
17646
|
+
...!isHostComponent_default(KJ) && {
|
|
17647
17647
|
ownerState: {
|
|
17648
|
-
...
|
|
17649
|
-
...
|
|
17648
|
+
...WJ,
|
|
17649
|
+
...qJ.ownerState
|
|
17650
17650
|
}
|
|
17651
17651
|
},
|
|
17652
|
-
className: clsx_default(
|
|
17652
|
+
className: clsx_default(GJ.root, qJ.className, s, hJ && "MuiInputBase-readOnly"),
|
|
17653
17653
|
children: [
|
|
17654
|
-
|
|
17654
|
+
xJ,
|
|
17655
17655
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17656
17656
|
value: null,
|
|
17657
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17658
|
-
"aria-invalid":
|
|
17657
|
+
children: (0, import_jsx_runtime.jsx)(JJ, {
|
|
17658
|
+
"aria-invalid": NJ.error,
|
|
17659
17659
|
"aria-describedby": i,
|
|
17660
17660
|
autoComplete: a,
|
|
17661
17661
|
autoFocus: o,
|
|
17662
17662
|
defaultValue: h,
|
|
17663
|
-
disabled:
|
|
17663
|
+
disabled: NJ.disabled,
|
|
17664
17664
|
id: E,
|
|
17665
|
-
onAnimationStart:
|
|
17665
|
+
onAnimationStart: UJ,
|
|
17666
17666
|
name: q,
|
|
17667
|
-
placeholder:
|
|
17668
|
-
readOnly:
|
|
17669
|
-
required:
|
|
17670
|
-
rows:
|
|
17671
|
-
value:
|
|
17672
|
-
onKeyDown:
|
|
17673
|
-
onKeyUp:
|
|
17674
|
-
type:
|
|
17675
|
-
...
|
|
17676
|
-
...!isHostComponent_default(
|
|
17677
|
-
as:
|
|
17667
|
+
placeholder: mJ,
|
|
17668
|
+
readOnly: hJ,
|
|
17669
|
+
required: NJ.required,
|
|
17670
|
+
rows: _J,
|
|
17671
|
+
value: TJ,
|
|
17672
|
+
onKeyDown: fJ,
|
|
17673
|
+
onKeyUp: pJ,
|
|
17674
|
+
type: SJ,
|
|
17675
|
+
...HJ,
|
|
17676
|
+
...!isHostComponent_default(JJ) && {
|
|
17677
|
+
as: VJ,
|
|
17678
17678
|
ownerState: {
|
|
17679
|
-
...
|
|
17680
|
-
...
|
|
17679
|
+
...WJ,
|
|
17680
|
+
...HJ.ownerState
|
|
17681
17681
|
}
|
|
17682
17682
|
},
|
|
17683
|
-
ref:
|
|
17684
|
-
className: clsx_default(
|
|
17685
|
-
onBlur:
|
|
17686
|
-
onChange:
|
|
17687
|
-
onFocus:
|
|
17683
|
+
ref: kJ,
|
|
17684
|
+
className: clsx_default(GJ.input, HJ.className, hJ && "MuiInputBase-readOnly"),
|
|
17685
|
+
onBlur: RJ,
|
|
17686
|
+
onChange: zJ,
|
|
17687
|
+
onFocus: LJ
|
|
17688
17688
|
})
|
|
17689
17689
|
}),
|
|
17690
17690
|
y,
|
|
17691
|
-
|
|
17692
|
-
...
|
|
17693
|
-
startAdornment:
|
|
17691
|
+
gJ ? gJ({
|
|
17692
|
+
...NJ,
|
|
17693
|
+
startAdornment: xJ
|
|
17694
17694
|
}) : null
|
|
17695
17695
|
]
|
|
17696
17696
|
})
|
|
@@ -18766,30 +18766,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18766
18766
|
M,
|
|
18767
18767
|
i,
|
|
18768
18768
|
a
|
|
18769
|
-
]), 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),
|
|
18770
|
-
|
|
18769
|
+
]), 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), dJ = useTextColor(), fJ = useJsonViewerStore((e2) => e2.colorspace.base0C), pJ = useJsonViewerStore((e2) => e2.colorspace.base0A), mJ = useJsonViewerStore((e2) => e2.displayComma), hJ = useJsonViewerStore((e2) => e2.quotesOnKeys), gJ = useJsonViewerStore((e2) => e2.rootName), _J = U === t, vJ = Number.isInteger(Number(A)), yJ = useJsonViewerStore((e2) => e2.enableAdd), bJ = useJsonViewerStore((e2) => e2.onAdd), xJ = (0, import_react.useMemo)(() => !bJ || a !== void 0 || yJ === false || v === false ? false : typeof yJ == "function" ? !!yJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18770
|
+
bJ,
|
|
18771
18771
|
a,
|
|
18772
18772
|
i,
|
|
18773
|
-
|
|
18773
|
+
yJ,
|
|
18774
18774
|
v,
|
|
18775
18775
|
t
|
|
18776
|
-
]),
|
|
18777
|
-
|
|
18776
|
+
]), SJ = useJsonViewerStore((e2) => e2.enableDelete), CJ = useJsonViewerStore((e2) => e2.onDelete), wJ = (0, import_react.useMemo)(() => !CJ || a !== void 0 || _J || SJ === false || v === false ? false : typeof SJ == "function" ? !!SJ(i, t) : SJ, [
|
|
18777
|
+
CJ,
|
|
18778
18778
|
a,
|
|
18779
|
-
|
|
18779
|
+
_J,
|
|
18780
18780
|
i,
|
|
18781
|
-
|
|
18781
|
+
SJ,
|
|
18782
18782
|
v,
|
|
18783
18783
|
t
|
|
18784
|
-
]),
|
|
18785
|
-
|
|
18784
|
+
]), TJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: EJ, copied: DJ } = useClipboard(), OJ = useJsonViewerStore((e2) => e2.highlightUpdates), kJ = (0, import_react.useMemo)(() => !OJ || 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, [
|
|
18785
|
+
OJ,
|
|
18786
18786
|
n,
|
|
18787
18787
|
t
|
|
18788
|
-
]),
|
|
18788
|
+
]), AJ = (0, import_react.useRef)();
|
|
18789
18789
|
(0, import_react.useEffect)(() => {
|
|
18790
|
-
|
|
18790
|
+
AJ.current && kJ && "animate" in AJ.current && AJ.current.animate([
|
|
18791
18791
|
{
|
|
18792
|
-
backgroundColor:
|
|
18792
|
+
backgroundColor: pJ
|
|
18793
18793
|
},
|
|
18794
18794
|
{
|
|
18795
18795
|
backgroundColor: ""
|
|
@@ -18799,22 +18799,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18799
18799
|
easing: "ease-in"
|
|
18800
18800
|
});
|
|
18801
18801
|
}, [
|
|
18802
|
-
|
|
18803
|
-
|
|
18802
|
+
pJ,
|
|
18803
|
+
kJ,
|
|
18804
18804
|
n,
|
|
18805
18805
|
t
|
|
18806
18806
|
]);
|
|
18807
|
-
let
|
|
18807
|
+
let jJ = (0, import_react.useCallback)((e2) => {
|
|
18808
18808
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18809
18809
|
}, [
|
|
18810
18810
|
h,
|
|
18811
18811
|
t
|
|
18812
|
-
]),
|
|
18812
|
+
]), MJ = (0, import_react.useCallback)(() => {
|
|
18813
18813
|
Q(false), E("");
|
|
18814
18814
|
}, [
|
|
18815
18815
|
Q,
|
|
18816
18816
|
E
|
|
18817
|
-
]),
|
|
18817
|
+
]), NJ = (0, import_react.useCallback)((e2) => {
|
|
18818
18818
|
if (Q(false), _) try {
|
|
18819
18819
|
$(i, t, _(e2));
|
|
18820
18820
|
} catch {
|
|
@@ -18825,14 +18825,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18825
18825
|
$,
|
|
18826
18826
|
i,
|
|
18827
18827
|
t
|
|
18828
|
-
]),
|
|
18828
|
+
]), PJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18829
18829
|
children: [
|
|
18830
18830
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18831
18831
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18832
18832
|
sx: {
|
|
18833
18833
|
fontSize: ".8rem"
|
|
18834
18834
|
},
|
|
18835
|
-
onClick:
|
|
18835
|
+
onClick: MJ
|
|
18836
18836
|
})
|
|
18837
18837
|
}),
|
|
18838
18838
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18840,22 +18840,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18840
18840
|
sx: {
|
|
18841
18841
|
fontSize: ".8rem"
|
|
18842
18842
|
},
|
|
18843
|
-
onClick: () =>
|
|
18843
|
+
onClick: () => NJ(w)
|
|
18844
18844
|
})
|
|
18845
18845
|
})
|
|
18846
18846
|
]
|
|
18847
18847
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18848
18848
|
children: [
|
|
18849
|
-
|
|
18849
|
+
TJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18850
18850
|
onClick: (e2) => {
|
|
18851
18851
|
e2.preventDefault();
|
|
18852
18852
|
try {
|
|
18853
|
-
|
|
18853
|
+
EJ(i, t, copyString);
|
|
18854
18854
|
} catch (e3) {
|
|
18855
18855
|
console.error(e3);
|
|
18856
18856
|
}
|
|
18857
18857
|
},
|
|
18858
|
-
children:
|
|
18858
|
+
children: DJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18859
18859
|
sx: {
|
|
18860
18860
|
fontSize: ".8rem"
|
|
18861
18861
|
}
|
|
@@ -18866,16 +18866,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18866
18866
|
})
|
|
18867
18867
|
}),
|
|
18868
18868
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18869
|
-
onClick:
|
|
18869
|
+
onClick: jJ,
|
|
18870
18870
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18871
18871
|
sx: {
|
|
18872
18872
|
fontSize: ".8rem"
|
|
18873
18873
|
}
|
|
18874
18874
|
})
|
|
18875
18875
|
}),
|
|
18876
|
-
|
|
18876
|
+
xJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18877
18877
|
onClick: (e2) => {
|
|
18878
|
-
e2.preventDefault(),
|
|
18878
|
+
e2.preventDefault(), bJ == null ? void 0 : bJ(i);
|
|
18879
18879
|
},
|
|
18880
18880
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18881
18881
|
sx: {
|
|
@@ -18883,9 +18883,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18883
18883
|
}
|
|
18884
18884
|
})
|
|
18885
18885
|
}),
|
|
18886
|
-
|
|
18886
|
+
wJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18887
18887
|
onClick: (e2) => {
|
|
18888
|
-
e2.preventDefault(),
|
|
18888
|
+
e2.preventDefault(), CJ == null ? void 0 : CJ(i, t);
|
|
18889
18889
|
},
|
|
18890
18890
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18891
18891
|
sx: {
|
|
@@ -18898,24 +18898,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18898
18898
|
f,
|
|
18899
18899
|
h,
|
|
18900
18900
|
_,
|
|
18901
|
-
|
|
18902
|
-
|
|
18901
|
+
DJ,
|
|
18902
|
+
EJ,
|
|
18903
18903
|
S,
|
|
18904
18904
|
J,
|
|
18905
|
-
kJ,
|
|
18906
18905
|
TJ,
|
|
18907
|
-
|
|
18906
|
+
xJ,
|
|
18907
|
+
wJ,
|
|
18908
18908
|
w,
|
|
18909
18909
|
i,
|
|
18910
18910
|
t,
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
]),
|
|
18911
|
+
bJ,
|
|
18912
|
+
CJ,
|
|
18913
|
+
jJ,
|
|
18914
|
+
MJ,
|
|
18915
|
+
NJ
|
|
18916
|
+
]), FJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18917
18917
|
t
|
|
18918
|
-
]),
|
|
18918
|
+
]), IJ = !FJ && !!(c && d), LJ = useJsonViewerStore((e2) => e2.keyRenderer), RJ = (0, import_react.useMemo)(() => ({
|
|
18919
18919
|
path: i,
|
|
18920
18920
|
inspect: K,
|
|
18921
18921
|
setInspect: q,
|
|
@@ -18947,18 +18947,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18947
18947
|
className: "data-key",
|
|
18948
18948
|
sx: {
|
|
18949
18949
|
lineHeight: 1.5,
|
|
18950
|
-
color:
|
|
18950
|
+
color: dJ,
|
|
18951
18951
|
letterSpacing: 0.5,
|
|
18952
18952
|
opacity: 0.8
|
|
18953
18953
|
},
|
|
18954
18954
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18955
|
-
e2.isDefaultPrevented() ||
|
|
18955
|
+
e2.isDefaultPrevented() || FJ || q((e3) => !e3);
|
|
18956
18956
|
}, [
|
|
18957
|
-
|
|
18957
|
+
FJ,
|
|
18958
18958
|
q
|
|
18959
18959
|
]),
|
|
18960
18960
|
children: [
|
|
18961
|
-
|
|
18961
|
+
IJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18962
18962
|
className: "data-key-toggle-expanded",
|
|
18963
18963
|
sx: {
|
|
18964
18964
|
fontSize: ".8rem",
|
|
@@ -18976,27 +18976,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18976
18976
|
}
|
|
18977
18977
|
}) : null,
|
|
18978
18978
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18979
|
-
ref:
|
|
18979
|
+
ref: AJ,
|
|
18980
18980
|
className: "data-key-key",
|
|
18981
18981
|
component: "span",
|
|
18982
|
-
children:
|
|
18982
|
+
children: _J && O === 0 ? gJ === false ? null : hJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18983
18983
|
children: [
|
|
18984
18984
|
'"',
|
|
18985
|
-
|
|
18985
|
+
gJ,
|
|
18986
18986
|
'"'
|
|
18987
18987
|
]
|
|
18988
18988
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18989
|
-
children:
|
|
18990
|
-
}) :
|
|
18991
|
-
...
|
|
18992
|
-
}) : a === void 0 && (
|
|
18989
|
+
children: gJ
|
|
18990
|
+
}) : LJ.when(RJ) ? (0, import_jsx_runtime.jsx)(LJ, {
|
|
18991
|
+
...RJ
|
|
18992
|
+
}) : a === void 0 && (vJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18993
18993
|
component: "span",
|
|
18994
18994
|
style: {
|
|
18995
|
-
color:
|
|
18996
|
-
userSelect:
|
|
18995
|
+
color: fJ,
|
|
18996
|
+
userSelect: vJ ? "none" : "auto"
|
|
18997
18997
|
},
|
|
18998
18998
|
children: A
|
|
18999
|
-
}) :
|
|
18999
|
+
}) : hJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
19000
19000
|
children: [
|
|
19001
19001
|
'"',
|
|
19002
19002
|
A,
|
|
@@ -19006,7 +19006,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19006
19006
|
children: A
|
|
19007
19007
|
}))
|
|
19008
19008
|
}),
|
|
19009
|
-
|
|
19009
|
+
_J ? gJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19010
19010
|
className: "data-key-colon",
|
|
19011
19011
|
sx: {
|
|
19012
19012
|
mr: 0.5
|
|
@@ -19019,38 +19019,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19019
19019
|
".data-key-key:empty + &": {
|
|
19020
19020
|
display: "none"
|
|
19021
19021
|
},
|
|
19022
|
-
userSelect:
|
|
19022
|
+
userSelect: vJ ? "none" : "auto"
|
|
19023
19023
|
},
|
|
19024
19024
|
children: ":"
|
|
19025
19025
|
}),
|
|
19026
19026
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19027
|
-
...
|
|
19027
|
+
...RJ
|
|
19028
19028
|
}),
|
|
19029
|
-
I &&
|
|
19029
|
+
I && IJ && K && PJ
|
|
19030
19030
|
]
|
|
19031
19031
|
}),
|
|
19032
19032
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19033
19033
|
path: i,
|
|
19034
19034
|
value: w,
|
|
19035
19035
|
setValue: E,
|
|
19036
|
-
abortEditing:
|
|
19037
|
-
commitEditing:
|
|
19036
|
+
abortEditing: MJ,
|
|
19037
|
+
commitEditing: NJ
|
|
19038
19038
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19039
|
-
...
|
|
19039
|
+
...RJ
|
|
19040
19040
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19041
19041
|
component: "span",
|
|
19042
19042
|
className: "data-value-fallback",
|
|
19043
19043
|
children: `fallback: ${t}`
|
|
19044
19044
|
}),
|
|
19045
19045
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19046
|
-
...
|
|
19046
|
+
...RJ
|
|
19047
19047
|
}),
|
|
19048
|
-
!o &&
|
|
19048
|
+
!o && mJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19049
19049
|
children: ","
|
|
19050
19050
|
}),
|
|
19051
|
-
I &&
|
|
19052
|
-
I && !
|
|
19053
|
-
!I && J &&
|
|
19051
|
+
I && IJ && !K && PJ,
|
|
19052
|
+
I && !IJ && PJ,
|
|
19053
|
+
!I && J && PJ
|
|
19054
19054
|
]
|
|
19055
19055
|
});
|
|
19056
19056
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19876,26 +19876,6 @@ ${n}` : "Please fix this error.";
|
|
|
19876
19876
|
}
|
|
19877
19877
|
};
|
|
19878
19878
|
}
|
|
19879
|
-
var urlRegex = /(https?:\/\/\S+)/, imageRegex = /\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i, dataImageRegex = /^data:image\//i, knownImageDomains = [
|
|
19880
|
-
"avatars.githubusercontent.com"
|
|
19881
|
-
];
|
|
19882
|
-
function parseContent(e) {
|
|
19883
|
-
return dataImageRegex.test(e) ? [
|
|
19884
|
-
{
|
|
19885
|
-
type: "image",
|
|
19886
|
-
url: e
|
|
19887
|
-
}
|
|
19888
|
-
] : e.split(urlRegex).filter((e2) => e2 !== "").map((e2) => urlRegex.test(e2) ? imageRegex.test(e2) || dataImageRegex.test(e2) || knownImageDomains.some((t) => e2.includes(t)) ? {
|
|
19889
|
-
type: "image",
|
|
19890
|
-
url: e2
|
|
19891
|
-
} : {
|
|
19892
|
-
type: "url",
|
|
19893
|
-
url: e2
|
|
19894
|
-
} : {
|
|
19895
|
-
type: "text",
|
|
19896
|
-
value: e2
|
|
19897
|
-
});
|
|
19898
|
-
}
|
|
19899
19879
|
var import_compiler_runtime$55 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
19900
19880
|
const cleanAnsiCodes = (e) => {
|
|
19901
19881
|
let t = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
@@ -20130,18 +20110,18 @@ ${n}` : "Please fix this error.";
|
|
|
20130
20110
|
}
|
|
20131
20111
|
let y, S, w, E, O, A;
|
|
20132
20112
|
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) {
|
|
20133
|
-
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),
|
|
20134
|
-
t[17] === s ?
|
|
20113
|
+
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), dJ = n.filter(_temp15), fJ = n.filter(_temp16), pJ = n.filter(_temp17), mJ = n.filter(_temp18), hJ;
|
|
20114
|
+
t[17] === s ? hJ = t[18] : (hJ = () => {
|
|
20135
20115
|
s.openApplication("scratchpad");
|
|
20136
|
-
}, t[17] = s, t[18] =
|
|
20137
|
-
let
|
|
20116
|
+
}, t[17] = s, t[18] = hJ);
|
|
20117
|
+
let gJ = hJ, _J = () => {
|
|
20138
20118
|
let t2 = [];
|
|
20139
|
-
if (
|
|
20140
|
-
let e3 =
|
|
20119
|
+
if (fJ.length > 0 || pJ.length > 0) {
|
|
20120
|
+
let e3 = fJ.some(_temp19), n2 = !e3 && fJ.some(_temp20);
|
|
20141
20121
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20142
20122
|
children: [
|
|
20143
|
-
|
|
20144
|
-
|
|
20123
|
+
fJ.map(_temp21),
|
|
20124
|
+
pJ.map(_temp22),
|
|
20145
20125
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20146
20126
|
size: "xs",
|
|
20147
20127
|
variant: "outline",
|
|
@@ -20172,8 +20152,8 @@ ${n}` : "Please fix this error.";
|
|
|
20172
20152
|
}),
|
|
20173
20153
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20174
20154
|
errors: [
|
|
20175
|
-
...
|
|
20176
|
-
...
|
|
20155
|
+
...fJ,
|
|
20156
|
+
...pJ
|
|
20177
20157
|
],
|
|
20178
20158
|
cellId: i
|
|
20179
20159
|
})
|
|
@@ -20334,7 +20314,7 @@ ${n}` : "Please fix this error.";
|
|
|
20334
20314
|
size: "xs",
|
|
20335
20315
|
variant: "link",
|
|
20336
20316
|
className: "my-2 font-normal mx-0 px-0",
|
|
20337
|
-
onClick:
|
|
20317
|
+
onClick: gJ,
|
|
20338
20318
|
children: [
|
|
20339
20319
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20340
20320
|
className: "h-3"
|
|
@@ -20525,26 +20505,26 @@ ${n}` : "Please fix this error.";
|
|
|
20525
20505
|
cellId: i
|
|
20526
20506
|
})
|
|
20527
20507
|
]
|
|
20528
|
-
}, "ancestor-prevented")),
|
|
20508
|
+
}, "ancestor-prevented")), dJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20529
20509
|
children: [
|
|
20530
|
-
|
|
20510
|
+
dJ.map(_temp34),
|
|
20531
20511
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20532
|
-
errors:
|
|
20512
|
+
errors: dJ,
|
|
20533
20513
|
cellId: i
|
|
20534
20514
|
})
|
|
20535
20515
|
]
|
|
20536
|
-
}, "ancestor-stopped")),
|
|
20516
|
+
}, "ancestor-stopped")), mJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20537
20517
|
children: [
|
|
20538
|
-
|
|
20518
|
+
mJ.map(_temp35),
|
|
20539
20519
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20540
|
-
errors:
|
|
20520
|
+
errors: mJ,
|
|
20541
20521
|
cellId: i,
|
|
20542
20522
|
className: "mt-2.5"
|
|
20543
20523
|
})
|
|
20544
20524
|
]
|
|
20545
20525
|
}, "sql-errors")), t2;
|
|
20546
|
-
},
|
|
20547
|
-
t[19] === v ?
|
|
20526
|
+
}, vJ;
|
|
20527
|
+
t[19] === v ? vJ = t[20] : (vJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20548
20528
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20549
20529
|
children: [
|
|
20550
20530
|
v,
|
|
@@ -20556,22 +20536,22 @@ ${n}` : "Please fix this error.";
|
|
|
20556
20536
|
})
|
|
20557
20537
|
})
|
|
20558
20538
|
]
|
|
20559
|
-
}), t[19] = v, t[20] =
|
|
20560
|
-
let
|
|
20561
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20539
|
+
}), t[19] = v, t[20] = vJ);
|
|
20540
|
+
let yJ;
|
|
20541
|
+
t[21] !== _ || t[22] !== d ? (yJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20562
20542
|
className: `font-code font-medium ${_}`,
|
|
20563
20543
|
children: d
|
|
20564
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20565
|
-
let
|
|
20566
|
-
t[24] !==
|
|
20544
|
+
}), t[21] = _, t[22] = d, t[23] = yJ) : yJ = t[23];
|
|
20545
|
+
let bJ;
|
|
20546
|
+
t[24] !== vJ || t[25] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20567
20547
|
className: "space-y-0.5",
|
|
20568
20548
|
children: [
|
|
20569
|
-
|
|
20570
|
-
|
|
20549
|
+
vJ,
|
|
20550
|
+
yJ
|
|
20571
20551
|
]
|
|
20572
|
-
}), t[24] =
|
|
20573
|
-
let
|
|
20574
|
-
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 =
|
|
20552
|
+
}), t[24] = vJ, t[25] = yJ, t[26] = bJ) : bJ = t[26];
|
|
20553
|
+
let xJ = bJ;
|
|
20554
|
+
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 = xJ, S = "flex flex-col gap-4", w = _J(), 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;
|
|
20575
20555
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20576
20556
|
let M;
|
|
20577
20557
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -26692,7 +26672,7 @@ ${n}` : "Please fix this error.";
|
|
|
26692
26672
|
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 }) {
|
|
26693
26673
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26694
26674
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26695
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26675
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), dJ = (0, import_react.useRef)({
|
|
26696
26676
|
callbacks: {
|
|
26697
26677
|
onCollapse: f,
|
|
26698
26678
|
onExpand: h,
|
|
@@ -26712,12 +26692,12 @@ ${n}` : "Please fix this error.";
|
|
|
26712
26692
|
(0, import_react.useRef)({
|
|
26713
26693
|
didLogMissingDefaultSizeWarning: false
|
|
26714
26694
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26715
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26695
|
+
let { callbacks: e2, constraints: t2 } = dJ.current, o2 = {
|
|
26716
26696
|
...t2
|
|
26717
26697
|
};
|
|
26718
|
-
|
|
26698
|
+
dJ.current.id = $, dJ.current.idIsFromProps = s !== void 0, dJ.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(dJ.current, o2);
|
|
26719
26699
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26720
|
-
let e2 =
|
|
26700
|
+
let e2 = dJ.current;
|
|
26721
26701
|
return q(e2), () => {
|
|
26722
26702
|
Q(e2);
|
|
26723
26703
|
};
|
|
@@ -26728,25 +26708,25 @@ ${n}` : "Please fix this error.";
|
|
|
26728
26708
|
Q
|
|
26729
26709
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26730
26710
|
collapse: () => {
|
|
26731
|
-
O(
|
|
26711
|
+
O(dJ.current);
|
|
26732
26712
|
},
|
|
26733
26713
|
expand: (e2) => {
|
|
26734
|
-
A(
|
|
26714
|
+
A(dJ.current, e2);
|
|
26735
26715
|
},
|
|
26736
26716
|
getId() {
|
|
26737
26717
|
return $;
|
|
26738
26718
|
},
|
|
26739
26719
|
getSize() {
|
|
26740
|
-
return M(
|
|
26720
|
+
return M(dJ.current);
|
|
26741
26721
|
},
|
|
26742
26722
|
isCollapsed() {
|
|
26743
|
-
return U(
|
|
26723
|
+
return U(dJ.current);
|
|
26744
26724
|
},
|
|
26745
26725
|
isExpanded() {
|
|
26746
|
-
return !U(
|
|
26726
|
+
return !U(dJ.current);
|
|
26747
26727
|
},
|
|
26748
26728
|
resize: (e2) => {
|
|
26749
|
-
J(
|
|
26729
|
+
J(dJ.current, e2);
|
|
26750
26730
|
}
|
|
26751
26731
|
}), [
|
|
26752
26732
|
O,
|
|
@@ -26756,21 +26736,21 @@ ${n}` : "Please fix this error.";
|
|
|
26756
26736
|
$,
|
|
26757
26737
|
J
|
|
26758
26738
|
]);
|
|
26759
|
-
let
|
|
26739
|
+
let fJ = I(dJ.current, a);
|
|
26760
26740
|
return (0, import_react.createElement)(S, {
|
|
26761
26741
|
...w,
|
|
26762
26742
|
children: e,
|
|
26763
26743
|
className: t,
|
|
26764
26744
|
id: $,
|
|
26765
26745
|
style: {
|
|
26766
|
-
...
|
|
26746
|
+
...fJ,
|
|
26767
26747
|
...y
|
|
26768
26748
|
},
|
|
26769
26749
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26770
26750
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26771
26751
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26772
26752
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26773
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26753
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + fJ.flexGrow).toFixed(1)
|
|
26774
26754
|
});
|
|
26775
26755
|
}
|
|
26776
26756
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27555,13 +27535,13 @@ ${n}` : "Please fix this error.";
|
|
|
27555
27535
|
}, [
|
|
27556
27536
|
S,
|
|
27557
27537
|
E
|
|
27558
|
-
]),
|
|
27538
|
+
]), dJ = (0, import_react.useCallback)((e2) => {
|
|
27559
27539
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27560
27540
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27561
|
-
}, []),
|
|
27541
|
+
}, []), fJ = (0, import_react.useCallback)((e2) => {
|
|
27562
27542
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27563
27543
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27564
|
-
}, []),
|
|
27544
|
+
}, []), pJ = (0, import_react.useCallback)((e2) => {
|
|
27565
27545
|
let { panelDataArray: t2 } = K.current;
|
|
27566
27546
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27567
27547
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27593,7 +27573,7 @@ ${n}` : "Please fix this error.";
|
|
|
27593
27573
|
e2.layout = [];
|
|
27594
27574
|
};
|
|
27595
27575
|
}, []);
|
|
27596
|
-
let
|
|
27576
|
+
let mJ = (0, import_react.useCallback)((e2) => {
|
|
27597
27577
|
let t2 = false, n2 = y.current;
|
|
27598
27578
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27599
27579
|
n3.preventDefault();
|
|
@@ -27611,7 +27591,7 @@ ${n}` : "Please fix this error.";
|
|
|
27611
27591
|
}), I2 = !compareLayouts(f2, A2);
|
|
27612
27592
|
(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));
|
|
27613
27593
|
};
|
|
27614
|
-
}, []),
|
|
27594
|
+
}, []), hJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27615
27595
|
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);
|
|
27616
27596
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27617
27597
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27623,12 +27603,12 @@ ${n}` : "Please fix this error.";
|
|
|
27623
27603
|
trigger: "imperative-api"
|
|
27624
27604
|
});
|
|
27625
27605
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27626
|
-
}, []),
|
|
27606
|
+
}, []), gJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27627
27607
|
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);
|
|
27628
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27608
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || hJ(e2, s2) : h2 < f2 ? hJ(e2, f2) : h2 > d2 && hJ(e2, d2));
|
|
27629
27609
|
}, [
|
|
27630
|
-
|
|
27631
|
-
]),
|
|
27610
|
+
hJ
|
|
27611
|
+
]), _J = (0, import_react.useCallback)((e2, t2) => {
|
|
27632
27612
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27633
27613
|
if (!y.current) return;
|
|
27634
27614
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27640,14 +27620,14 @@ ${n}` : "Please fix this error.";
|
|
|
27640
27620
|
initialCursorPosition: o2,
|
|
27641
27621
|
initialLayout: i2
|
|
27642
27622
|
});
|
|
27643
|
-
}, []),
|
|
27623
|
+
}, []), vJ = (0, import_react.useCallback)(() => {
|
|
27644
27624
|
w(null);
|
|
27645
|
-
}, []),
|
|
27625
|
+
}, []), yJ = (0, import_react.useCallback)((e2) => {
|
|
27646
27626
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27647
27627
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27648
27628
|
}, [
|
|
27649
27629
|
A
|
|
27650
|
-
]),
|
|
27630
|
+
]), bJ = (0, import_react.useMemo)(() => ({
|
|
27651
27631
|
collapsePanel: q,
|
|
27652
27632
|
direction: i,
|
|
27653
27633
|
dragState: S,
|
|
@@ -27655,15 +27635,15 @@ ${n}` : "Please fix this error.";
|
|
|
27655
27635
|
getPanelSize: Q,
|
|
27656
27636
|
getPanelStyle: $,
|
|
27657
27637
|
groupId: v,
|
|
27658
|
-
isPanelCollapsed:
|
|
27659
|
-
isPanelExpanded:
|
|
27660
|
-
reevaluatePanelConstraints:
|
|
27661
|
-
registerPanel:
|
|
27662
|
-
registerResizeHandle:
|
|
27663
|
-
resizePanel:
|
|
27664
|
-
startDragging:
|
|
27665
|
-
stopDragging:
|
|
27666
|
-
unregisterPanel:
|
|
27638
|
+
isPanelCollapsed: dJ,
|
|
27639
|
+
isPanelExpanded: fJ,
|
|
27640
|
+
reevaluatePanelConstraints: gJ,
|
|
27641
|
+
registerPanel: pJ,
|
|
27642
|
+
registerResizeHandle: mJ,
|
|
27643
|
+
resizePanel: hJ,
|
|
27644
|
+
startDragging: _J,
|
|
27645
|
+
stopDragging: vJ,
|
|
27646
|
+
unregisterPanel: yJ,
|
|
27667
27647
|
panelGroupElement: y.current
|
|
27668
27648
|
}), [
|
|
27669
27649
|
q,
|
|
@@ -27673,16 +27653,16 @@ ${n}` : "Please fix this error.";
|
|
|
27673
27653
|
Q,
|
|
27674
27654
|
$,
|
|
27675
27655
|
v,
|
|
27676
|
-
|
|
27656
|
+
dJ,
|
|
27657
|
+
fJ,
|
|
27677
27658
|
gJ,
|
|
27678
|
-
|
|
27659
|
+
pJ,
|
|
27660
|
+
mJ,
|
|
27661
|
+
hJ,
|
|
27679
27662
|
_J,
|
|
27680
27663
|
vJ,
|
|
27681
|
-
yJ
|
|
27682
|
-
|
|
27683
|
-
SJ,
|
|
27684
|
-
CJ
|
|
27685
|
-
]), TJ = {
|
|
27664
|
+
yJ
|
|
27665
|
+
]), xJ = {
|
|
27686
27666
|
display: "flex",
|
|
27687
27667
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27688
27668
|
height: "100%",
|
|
@@ -27690,7 +27670,7 @@ ${n}` : "Please fix this error.";
|
|
|
27690
27670
|
width: "100%"
|
|
27691
27671
|
};
|
|
27692
27672
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27693
|
-
value:
|
|
27673
|
+
value: bJ
|
|
27694
27674
|
}, (0, import_react.createElement)(h, {
|
|
27695
27675
|
..._,
|
|
27696
27676
|
children: t,
|
|
@@ -27698,7 +27678,7 @@ ${n}` : "Please fix this error.";
|
|
|
27698
27678
|
id: o,
|
|
27699
27679
|
ref: y,
|
|
27700
27680
|
style: {
|
|
27701
|
-
...
|
|
27681
|
+
...xJ,
|
|
27702
27682
|
...f
|
|
27703
27683
|
},
|
|
27704
27684
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27775,31 +27755,31 @@ ${n}` : "Please fix this error.";
|
|
|
27775
27755
|
});
|
|
27776
27756
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27777
27757
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27778
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27758
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, dJ] = (0, import_react.useState)(false), [fJ, pJ] = (0, import_react.useState)(null), mJ = (0, import_react.useRef)({
|
|
27779
27759
|
state: J
|
|
27780
27760
|
});
|
|
27781
27761
|
useIsomorphicLayoutEffect$1(() => {
|
|
27782
|
-
|
|
27762
|
+
mJ.current.state = J;
|
|
27783
27763
|
}), (0, import_react.useEffect)(() => {
|
|
27784
|
-
if (n)
|
|
27764
|
+
if (n) pJ(null);
|
|
27785
27765
|
else {
|
|
27786
27766
|
let e2 = I(q);
|
|
27787
|
-
|
|
27767
|
+
pJ(() => e2);
|
|
27788
27768
|
}
|
|
27789
27769
|
}, [
|
|
27790
27770
|
n,
|
|
27791
27771
|
q,
|
|
27792
27772
|
I
|
|
27793
27773
|
]);
|
|
27794
|
-
let
|
|
27774
|
+
let hJ = (i == null ? void 0 : i.coarse) ?? 15, gJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27795
27775
|
(0, import_react.useEffect)(() => {
|
|
27796
|
-
if (n ||
|
|
27776
|
+
if (n || fJ == null) return;
|
|
27797
27777
|
let e2 = w.current;
|
|
27798
27778
|
assert(e2, "Element ref not attached");
|
|
27799
27779
|
let t2 = false;
|
|
27800
27780
|
return registerResizeHandle(q, e2, A, {
|
|
27801
|
-
coarse:
|
|
27802
|
-
fine:
|
|
27781
|
+
coarse: hJ,
|
|
27782
|
+
fine: gJ
|
|
27803
27783
|
}, (e3, n2, i2) => {
|
|
27804
27784
|
if (!n2) {
|
|
27805
27785
|
Q("inactive");
|
|
@@ -27813,8 +27793,8 @@ ${n}` : "Please fix this error.";
|
|
|
27813
27793
|
break;
|
|
27814
27794
|
}
|
|
27815
27795
|
case "move": {
|
|
27816
|
-
let { state: e4 } =
|
|
27817
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27796
|
+
let { state: e4 } = mJ.current;
|
|
27797
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), fJ(i2);
|
|
27818
27798
|
break;
|
|
27819
27799
|
}
|
|
27820
27800
|
case "up": {
|
|
@@ -27826,22 +27806,22 @@ ${n}` : "Please fix this error.";
|
|
|
27826
27806
|
}
|
|
27827
27807
|
});
|
|
27828
27808
|
}, [
|
|
27829
|
-
|
|
27809
|
+
hJ,
|
|
27830
27810
|
A,
|
|
27831
27811
|
n,
|
|
27832
|
-
|
|
27812
|
+
gJ,
|
|
27833
27813
|
I,
|
|
27834
27814
|
q,
|
|
27835
|
-
|
|
27815
|
+
fJ,
|
|
27836
27816
|
z,
|
|
27837
27817
|
U
|
|
27838
27818
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27839
27819
|
disabled: n,
|
|
27840
27820
|
handleId: q,
|
|
27841
|
-
resizeHandler:
|
|
27821
|
+
resizeHandler: fJ,
|
|
27842
27822
|
panelGroupElement: K
|
|
27843
27823
|
});
|
|
27844
|
-
let
|
|
27824
|
+
let _J = {
|
|
27845
27825
|
touchAction: "none",
|
|
27846
27826
|
userSelect: "none"
|
|
27847
27827
|
};
|
|
@@ -27851,15 +27831,15 @@ ${n}` : "Please fix this error.";
|
|
|
27851
27831
|
className: t,
|
|
27852
27832
|
id: a,
|
|
27853
27833
|
onBlur: () => {
|
|
27854
|
-
|
|
27834
|
+
dJ(false), o == null ? void 0 : o();
|
|
27855
27835
|
},
|
|
27856
27836
|
onFocus: () => {
|
|
27857
|
-
|
|
27837
|
+
dJ(true), d == null ? void 0 : d();
|
|
27858
27838
|
},
|
|
27859
27839
|
ref: w,
|
|
27860
27840
|
role: "separator",
|
|
27861
27841
|
style: {
|
|
27862
|
-
...
|
|
27842
|
+
..._J,
|
|
27863
27843
|
..._
|
|
27864
27844
|
},
|
|
27865
27845
|
tabIndex: v,
|
|
@@ -28158,7 +28138,7 @@ ${n}` : "Please fix this error.";
|
|
|
28158
28138
|
}, [
|
|
28159
28139
|
h
|
|
28160
28140
|
]), k(() => {
|
|
28161
|
-
U(6,
|
|
28141
|
+
U(6, fJ);
|
|
28162
28142
|
}, []);
|
|
28163
28143
|
let K = import_react.useMemo(() => ({
|
|
28164
28144
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28167,7 +28147,7 @@ ${n}` : "Please fix this error.";
|
|
|
28167
28147
|
var _a2;
|
|
28168
28148
|
var a2, o2, s2;
|
|
28169
28149
|
if (!Object.is(n.current[e2], t2)) {
|
|
28170
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28150
|
+
if (n.current[e2] = t2, e2 === "search") dJ(), Q(), U(1, $);
|
|
28171
28151
|
else if (e2 === "value") {
|
|
28172
28152
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28173
28153
|
let e3 = document.getElementById(I);
|
|
@@ -28175,8 +28155,8 @@ ${n}` : "Please fix this error.";
|
|
|
28175
28155
|
}
|
|
28176
28156
|
if (U(7, () => {
|
|
28177
28157
|
var _a3;
|
|
28178
|
-
n.current.selectedItemId = (_a3 =
|
|
28179
|
-
}), i2 || U(5,
|
|
28158
|
+
n.current.selectedItemId = (_a3 = pJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28159
|
+
}), i2 || U(5, fJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28180
28160
|
let e3 = t2 ?? "";
|
|
28181
28161
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28182
28162
|
return;
|
|
@@ -28201,12 +28181,12 @@ ${n}` : "Please fix this error.";
|
|
|
28201
28181
|
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([
|
|
28202
28182
|
e2
|
|
28203
28183
|
]))), U(3, () => {
|
|
28204
|
-
|
|
28184
|
+
dJ(), Q(), n.current.value || $(), K.emit();
|
|
28205
28185
|
}), () => {
|
|
28206
28186
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28207
|
-
let t3 =
|
|
28187
|
+
let t3 = pJ();
|
|
28208
28188
|
U(4, () => {
|
|
28209
|
-
|
|
28189
|
+
dJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28210
28190
|
});
|
|
28211
28191
|
}),
|
|
28212
28192
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28239,7 +28219,7 @@ ${n}` : "Please fix this error.";
|
|
|
28239
28219
|
]);
|
|
28240
28220
|
});
|
|
28241
28221
|
let i2 = z.current;
|
|
28242
|
-
|
|
28222
|
+
mJ().sort((t3, n2) => {
|
|
28243
28223
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28244
28224
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28245
28225
|
}).forEach((e3) => {
|
|
@@ -28253,10 +28233,10 @@ ${n}` : "Please fix this error.";
|
|
|
28253
28233
|
}
|
|
28254
28234
|
function $() {
|
|
28255
28235
|
var _a2;
|
|
28256
|
-
let e2 = (_a2 =
|
|
28236
|
+
let e2 = (_a2 = mJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28257
28237
|
K.setState("value", e2 || void 0);
|
|
28258
28238
|
}
|
|
28259
|
-
function
|
|
28239
|
+
function dJ() {
|
|
28260
28240
|
var _a2, _b;
|
|
28261
28241
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28262
28242
|
n.current.filtered.count = i.current.size;
|
|
@@ -28274,43 +28254,43 @@ ${n}` : "Please fix this error.";
|
|
|
28274
28254
|
}
|
|
28275
28255
|
n.current.filtered.count = e2;
|
|
28276
28256
|
}
|
|
28277
|
-
function
|
|
28257
|
+
function fJ() {
|
|
28278
28258
|
var _a2, _b;
|
|
28279
28259
|
var e2;
|
|
28280
|
-
let t2 =
|
|
28260
|
+
let t2 = pJ();
|
|
28281
28261
|
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({
|
|
28282
28262
|
block: "nearest"
|
|
28283
28263
|
})), t2.scrollIntoView({
|
|
28284
28264
|
block: "nearest"
|
|
28285
28265
|
}));
|
|
28286
28266
|
}
|
|
28287
|
-
function
|
|
28267
|
+
function pJ() {
|
|
28288
28268
|
var _a2;
|
|
28289
28269
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28290
28270
|
}
|
|
28291
|
-
function
|
|
28271
|
+
function mJ() {
|
|
28292
28272
|
var _a2;
|
|
28293
28273
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28294
28274
|
}
|
|
28295
|
-
function
|
|
28296
|
-
let t2 =
|
|
28275
|
+
function hJ(e2) {
|
|
28276
|
+
let t2 = mJ()[e2];
|
|
28297
28277
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28298
28278
|
}
|
|
28299
|
-
function
|
|
28279
|
+
function gJ(e2) {
|
|
28300
28280
|
var t2;
|
|
28301
|
-
let n2 =
|
|
28281
|
+
let n2 = pJ(), i2 = mJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28302
28282
|
(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));
|
|
28303
28283
|
}
|
|
28304
|
-
function
|
|
28284
|
+
function _J(e2) {
|
|
28305
28285
|
var _a2;
|
|
28306
|
-
let t2 = (_a2 =
|
|
28286
|
+
let t2 = (_a2 = pJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28307
28287
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28308
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28288
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : gJ(e2);
|
|
28309
28289
|
}
|
|
28310
|
-
let
|
|
28311
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28312
|
-
},
|
|
28313
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28290
|
+
let vJ = () => hJ(mJ().length - 1), yJ = (e2) => {
|
|
28291
|
+
e2.preventDefault(), e2.metaKey ? vJ() : e2.altKey ? _J(1) : gJ(1);
|
|
28292
|
+
}, bJ = (e2) => {
|
|
28293
|
+
e2.preventDefault(), e2.metaKey ? hJ(0) : e2.altKey ? _J(-1) : gJ(-1);
|
|
28314
28294
|
};
|
|
28315
28295
|
return import_react.createElement(Primitive.div, {
|
|
28316
28296
|
ref: t,
|
|
@@ -28324,27 +28304,27 @@ ${n}` : "Please fix this error.";
|
|
|
28324
28304
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28325
28305
|
case "n":
|
|
28326
28306
|
case "j":
|
|
28327
|
-
E && e2.ctrlKey &&
|
|
28307
|
+
E && e2.ctrlKey && yJ(e2);
|
|
28328
28308
|
break;
|
|
28329
28309
|
case "ArrowDown":
|
|
28330
|
-
|
|
28310
|
+
yJ(e2);
|
|
28331
28311
|
break;
|
|
28332
28312
|
case "p":
|
|
28333
28313
|
case "k":
|
|
28334
|
-
E && e2.ctrlKey &&
|
|
28314
|
+
E && e2.ctrlKey && bJ(e2);
|
|
28335
28315
|
break;
|
|
28336
28316
|
case "ArrowUp":
|
|
28337
|
-
|
|
28317
|
+
bJ(e2);
|
|
28338
28318
|
break;
|
|
28339
28319
|
case "Home":
|
|
28340
|
-
e2.preventDefault(),
|
|
28320
|
+
e2.preventDefault(), hJ(0);
|
|
28341
28321
|
break;
|
|
28342
28322
|
case "End":
|
|
28343
|
-
e2.preventDefault(),
|
|
28323
|
+
e2.preventDefault(), vJ();
|
|
28344
28324
|
break;
|
|
28345
28325
|
case "Enter": {
|
|
28346
28326
|
e2.preventDefault();
|
|
28347
|
-
let t3 =
|
|
28327
|
+
let t3 = pJ();
|
|
28348
28328
|
if (t3) {
|
|
28349
28329
|
let e3 = new Event(Z);
|
|
28350
28330
|
t3.dispatchEvent(e3);
|
|
@@ -28753,153 +28733,153 @@ ${n}` : "Please fix this error.";
|
|
|
28753
28733
|
Combobox = (e) => {
|
|
28754
28734
|
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;
|
|
28755
28735
|
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);
|
|
28756
|
-
let $ = I === void 0 ? false : I,
|
|
28757
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28736
|
+
let $ = I === void 0 ? false : I, dJ = z === void 0 ? true : z, fJ = U === void 0 ? "Search..." : U, pJ = K === void 0 ? "Nothing found." : K, hJ = q === void 0 ? false : q, gJ = J === void 0 ? false : J, _J = s ?? false, vJ;
|
|
28737
|
+
t[25] !== v || t[26] !== w || t[27] !== _J ? (vJ = {
|
|
28758
28738
|
prop: w,
|
|
28759
|
-
defaultProp:
|
|
28739
|
+
defaultProp: _J,
|
|
28760
28740
|
onChange: v
|
|
28761
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28762
|
-
let [
|
|
28763
|
-
t[29] === S ?
|
|
28741
|
+
}, t[25] = v, t[26] = w, t[27] = _J, t[28] = vJ) : vJ = t[28];
|
|
28742
|
+
let [yJ, bJ] = useControllableState(vJ), xJ = yJ === void 0 ? false : yJ, SJ;
|
|
28743
|
+
t[29] === S ? SJ = t[30] : (SJ = (e2) => {
|
|
28764
28744
|
S == null ? void 0 : S(e2);
|
|
28765
|
-
}, t[29] = S, t[30] =
|
|
28766
|
-
let
|
|
28767
|
-
t[31] !== c || t[32] !==
|
|
28745
|
+
}, t[29] = S, t[30] = SJ);
|
|
28746
|
+
let CJ;
|
|
28747
|
+
t[31] !== c || t[32] !== SJ || t[33] !== Q ? (CJ = {
|
|
28768
28748
|
prop: Q,
|
|
28769
28749
|
defaultProp: c,
|
|
28770
|
-
onChange:
|
|
28771
|
-
}, t[31] = c, t[32] =
|
|
28772
|
-
let [
|
|
28773
|
-
t[35] ===
|
|
28774
|
-
let
|
|
28775
|
-
t[37] !== _ || t[38] !== $ || t[39] !==
|
|
28750
|
+
onChange: SJ
|
|
28751
|
+
}, t[31] = c, t[32] = SJ, t[33] = Q, t[34] = CJ) : CJ = t[34];
|
|
28752
|
+
let [wJ, TJ] = useControllableState(CJ), EJ;
|
|
28753
|
+
t[35] === wJ ? EJ = t[36] : (EJ = (e2) => Array.isArray(wJ) ? wJ.includes(e2) : wJ === e2, t[35] = wJ, t[36] = EJ);
|
|
28754
|
+
let DJ = EJ, OJ;
|
|
28755
|
+
t[37] !== _ || t[38] !== $ || t[39] !== bJ || t[40] !== TJ || t[41] !== wJ ? (OJ = (e2) => {
|
|
28776
28756
|
let t2 = e2;
|
|
28777
|
-
if ($) if (Array.isArray(
|
|
28778
|
-
let n2 =
|
|
28757
|
+
if ($) if (Array.isArray(wJ)) if (wJ.includes(t2)) {
|
|
28758
|
+
let n2 = wJ.filter((t3) => t3 !== e2);
|
|
28779
28759
|
t2 = n2.length > 0 ? n2 : [];
|
|
28780
28760
|
} else t2 = [
|
|
28781
|
-
...
|
|
28761
|
+
...wJ,
|
|
28782
28762
|
t2
|
|
28783
28763
|
];
|
|
28784
28764
|
else t2 = [
|
|
28785
28765
|
t2
|
|
28786
28766
|
];
|
|
28787
|
-
else
|
|
28788
|
-
|
|
28789
|
-
}, t[37] = _, t[38] = $, t[39] =
|
|
28790
|
-
let
|
|
28791
|
-
t[43] !==
|
|
28792
|
-
let
|
|
28793
|
-
t[49] !==
|
|
28794
|
-
isSelected:
|
|
28795
|
-
onSelect:
|
|
28796
|
-
}, t[49] =
|
|
28797
|
-
let
|
|
28798
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28767
|
+
else wJ === e2 && (t2 = null);
|
|
28768
|
+
TJ(t2), (_ ?? $) || bJ(false);
|
|
28769
|
+
}, t[37] = _, t[38] = $, t[39] = bJ, t[40] = TJ, t[41] = wJ, t[42] = OJ) : OJ = t[42];
|
|
28770
|
+
let kJ = OJ, AJ;
|
|
28771
|
+
t[43] !== hJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== wJ ? (AJ = () => $ && hJ && E ? E : wJ == null ? E ?? "--" : Array.isArray(wJ) ? wJ.length === 0 ? E ?? "--" : wJ.length === 1 && d !== void 0 ? d(wJ[0]) : `${wJ.length} selected` : d === void 0 ? E ?? "--" : d(wJ), t[43] = hJ, t[44] = d, t[45] = $, t[46] = E, t[47] = wJ, t[48] = AJ) : AJ = t[48];
|
|
28772
|
+
let jJ = AJ, MJ;
|
|
28773
|
+
t[49] !== kJ || t[50] !== DJ ? (MJ = {
|
|
28774
|
+
isSelected: DJ,
|
|
28775
|
+
onSelect: kJ
|
|
28776
|
+
}, t[49] = kJ, t[50] = DJ, t[51] = MJ) : MJ = t[51];
|
|
28777
|
+
let NJ = MJ, PJ;
|
|
28778
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PJ = cn("relative"), t[52] = PJ) : PJ = t[52];
|
|
28779
|
+
let FJ;
|
|
28780
|
+
t[53] !== gJ || t[54] !== bJ ? (FJ = (e2) => {
|
|
28781
|
+
gJ && e2 || bJ(e2);
|
|
28782
|
+
}, t[53] = gJ, t[54] = bJ, t[55] = FJ) : FJ = t[55];
|
|
28783
|
+
let IJ = gJ && "cursor-not-allowed opacity-50", LJ;
|
|
28784
|
+
t[56] !== a || t[57] !== IJ ? (LJ = 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", IJ, a), t[56] = a, t[57] = IJ, t[58] = LJ) : LJ = t[58];
|
|
28799
28785
|
let RJ;
|
|
28800
|
-
t[
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
let zJ = yJ && "cursor-not-allowed opacity-50", BJ;
|
|
28804
|
-
t[56] !== a || t[57] !== zJ ? (BJ = 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", zJ, a), t[56] = a, t[57] = zJ, t[58] = BJ) : BJ = t[58];
|
|
28805
|
-
let VJ;
|
|
28806
|
-
t[59] !== O || t[60] !== PJ || t[61] !== DJ ? (VJ = O ? O(DJ ?? null) : PJ(), t[59] = O, t[60] = PJ, t[61] = DJ, t[62] = VJ) : VJ = t[62];
|
|
28807
|
-
let HJ;
|
|
28808
|
-
t[63] === VJ ? HJ = t[64] : (HJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28786
|
+
t[59] !== O || t[60] !== jJ || t[61] !== wJ ? (RJ = O ? O(wJ ?? null) : jJ(), t[59] = O, t[60] = jJ, t[61] = wJ, t[62] = RJ) : RJ = t[62];
|
|
28787
|
+
let zJ;
|
|
28788
|
+
t[63] === RJ ? zJ = t[64] : (zJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28809
28789
|
className: "truncate flex-1 min-w-0",
|
|
28810
|
-
children:
|
|
28811
|
-
}), t[63] =
|
|
28812
|
-
let
|
|
28813
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28790
|
+
children: RJ
|
|
28791
|
+
}), t[63] = RJ, t[64] = zJ);
|
|
28792
|
+
let VJ;
|
|
28793
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28814
28794
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28815
|
-
}), t[65] =
|
|
28816
|
-
let
|
|
28817
|
-
t[66] !==
|
|
28795
|
+
}), t[65] = VJ) : VJ = t[65];
|
|
28796
|
+
let HJ;
|
|
28797
|
+
t[66] !== gJ || t[67] !== h || t[68] !== xJ || t[69] !== LJ || t[70] !== zJ ? (HJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28818
28798
|
asChild: true,
|
|
28819
28799
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28820
28800
|
id: h,
|
|
28821
28801
|
type: "button",
|
|
28822
|
-
className:
|
|
28823
|
-
"aria-expanded":
|
|
28824
|
-
"aria-disabled":
|
|
28802
|
+
className: LJ,
|
|
28803
|
+
"aria-expanded": xJ,
|
|
28804
|
+
"aria-disabled": gJ,
|
|
28825
28805
|
children: [
|
|
28826
|
-
|
|
28827
|
-
|
|
28806
|
+
zJ,
|
|
28807
|
+
VJ
|
|
28828
28808
|
]
|
|
28829
28809
|
})
|
|
28830
|
-
}), t[66] =
|
|
28831
|
-
let
|
|
28832
|
-
t[72] !==
|
|
28833
|
-
placeholder:
|
|
28810
|
+
}), t[66] = gJ, t[67] = h, t[68] = xJ, t[69] = LJ, t[70] = zJ, t[71] = HJ) : HJ = t[71];
|
|
28811
|
+
let WJ;
|
|
28812
|
+
t[72] !== fJ || t[73] !== y || t[74] !== M ? (WJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28813
|
+
placeholder: fJ,
|
|
28834
28814
|
rootClassName: "px-1 h-8",
|
|
28835
28815
|
autoFocus: true,
|
|
28836
28816
|
value: M,
|
|
28837
28817
|
onValueChange: y
|
|
28838
|
-
}), t[72] =
|
|
28839
|
-
let
|
|
28840
|
-
t[76] ===
|
|
28841
|
-
children:
|
|
28842
|
-
}), t[76] =
|
|
28843
|
-
let
|
|
28844
|
-
t[78] !== n || t[79] !==
|
|
28845
|
-
value:
|
|
28818
|
+
}), t[72] = fJ, t[73] = y, t[74] = M, t[75] = WJ) : WJ = t[75];
|
|
28819
|
+
let GJ;
|
|
28820
|
+
t[76] === pJ ? GJ = t[77] : (GJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28821
|
+
children: pJ
|
|
28822
|
+
}), t[76] = pJ, t[77] = GJ);
|
|
28823
|
+
let KJ;
|
|
28824
|
+
t[78] !== n || t[79] !== NJ ? (KJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28825
|
+
value: NJ,
|
|
28846
28826
|
children: n
|
|
28847
|
-
}), t[78] = n, t[79] =
|
|
28848
|
-
let
|
|
28849
|
-
t[81] !==
|
|
28827
|
+
}), t[78] = n, t[79] = NJ, t[80] = KJ) : KJ = t[80];
|
|
28828
|
+
let qJ;
|
|
28829
|
+
t[81] !== GJ || t[82] !== KJ ? (qJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28850
28830
|
className: "max-h-60 py-.5",
|
|
28851
28831
|
children: [
|
|
28852
|
-
|
|
28853
|
-
|
|
28832
|
+
GJ,
|
|
28833
|
+
KJ
|
|
28854
28834
|
]
|
|
28855
|
-
}), t[81] =
|
|
28856
|
-
let
|
|
28857
|
-
t[84] !== f || t[85] !==
|
|
28835
|
+
}), t[81] = GJ, t[82] = KJ, t[83] = qJ) : qJ = t[83];
|
|
28836
|
+
let JJ;
|
|
28837
|
+
t[84] !== f || t[85] !== dJ || t[86] !== WJ || t[87] !== qJ ? (JJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28858
28838
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28859
28839
|
align: "start",
|
|
28860
28840
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28861
28841
|
filter: f,
|
|
28862
|
-
shouldFilter:
|
|
28842
|
+
shouldFilter: dJ,
|
|
28863
28843
|
children: [
|
|
28864
|
-
|
|
28865
|
-
|
|
28844
|
+
WJ,
|
|
28845
|
+
qJ
|
|
28866
28846
|
]
|
|
28867
28847
|
})
|
|
28868
|
-
}), t[84] = f, t[85] =
|
|
28869
|
-
let
|
|
28870
|
-
t[89] !==
|
|
28871
|
-
open:
|
|
28872
|
-
onOpenChange:
|
|
28848
|
+
}), t[84] = f, t[85] = dJ, t[86] = WJ, t[87] = qJ, t[88] = JJ) : JJ = t[88];
|
|
28849
|
+
let YJ;
|
|
28850
|
+
t[89] !== xJ || t[90] !== FJ || t[91] !== HJ || t[92] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28851
|
+
open: xJ,
|
|
28852
|
+
onOpenChange: FJ,
|
|
28873
28853
|
children: [
|
|
28874
|
-
|
|
28875
|
-
|
|
28854
|
+
HJ,
|
|
28855
|
+
JJ
|
|
28876
28856
|
]
|
|
28877
|
-
}), t[89] =
|
|
28878
|
-
let
|
|
28879
|
-
t[94] !==
|
|
28857
|
+
}), t[89] = xJ, t[90] = FJ, t[91] = HJ, t[92] = JJ, t[93] = YJ) : YJ = t[93];
|
|
28858
|
+
let XJ;
|
|
28859
|
+
t[94] !== hJ || t[95] !== i || t[96] !== gJ || t[97] !== d || t[98] !== kJ || t[99] !== $ || t[100] !== wJ ? (XJ = $ && hJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28880
28860
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28881
|
-
children: Array.isArray(
|
|
28861
|
+
children: Array.isArray(wJ) && wJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28882
28862
|
variant: "secondary",
|
|
28883
28863
|
children: [
|
|
28884
28864
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28885
28865
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28886
28866
|
onClick: () => {
|
|
28887
|
-
|
|
28867
|
+
gJ || kJ(e2);
|
|
28888
28868
|
},
|
|
28889
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28869
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", gJ && "pointer-events-none")
|
|
28890
28870
|
})
|
|
28891
28871
|
]
|
|
28892
28872
|
}, String(e2)))
|
|
28893
|
-
}), t[94] =
|
|
28894
|
-
let
|
|
28895
|
-
return t[102] !== A || t[103] !==
|
|
28896
|
-
className:
|
|
28873
|
+
}), t[94] = hJ, t[95] = i, t[96] = gJ, t[97] = d, t[98] = kJ, t[99] = $, t[100] = wJ, t[101] = XJ) : XJ = t[101];
|
|
28874
|
+
let ZJ;
|
|
28875
|
+
return t[102] !== A || t[103] !== YJ || t[104] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28876
|
+
className: PJ,
|
|
28897
28877
|
...A,
|
|
28898
28878
|
children: [
|
|
28899
|
-
|
|
28900
|
-
|
|
28879
|
+
YJ,
|
|
28880
|
+
XJ
|
|
28901
28881
|
]
|
|
28902
|
-
}), t[102] = A, t[103] =
|
|
28882
|
+
}), t[102] = A, t[103] = YJ, t[104] = XJ, t[105] = ZJ) : ZJ = t[105], ZJ;
|
|
28903
28883
|
};
|
|
28904
28884
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28905
28885
|
let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29955,17 +29935,17 @@ ${n}` : "Please fix this error.";
|
|
|
29955
29935
|
searchQuery: M,
|
|
29956
29936
|
filteredOptions: z
|
|
29957
29937
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29958
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29959
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29938
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), dJ;
|
|
29939
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (dJ = {
|
|
29960
29940
|
value: i,
|
|
29961
29941
|
onChange: a,
|
|
29962
29942
|
multiple: o,
|
|
29963
29943
|
maxSelections: s,
|
|
29964
29944
|
allowSelectNone: c,
|
|
29965
29945
|
selected: y
|
|
29966
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29967
|
-
let { isChecked:
|
|
29968
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29946
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = dJ) : dJ = t[21];
|
|
29947
|
+
let { isChecked: fJ, toggle: pJ } = useToggle(dJ), mJ;
|
|
29948
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (mJ = {
|
|
29969
29949
|
value: i,
|
|
29970
29950
|
onChange: a,
|
|
29971
29951
|
multiple: o,
|
|
@@ -29973,24 +29953,24 @@ ${n}` : "Please fix this error.";
|
|
|
29973
29953
|
filteredOptions: z,
|
|
29974
29954
|
searchQuery: M,
|
|
29975
29955
|
maxSelections: s
|
|
29976
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29977
|
-
let { bulkActions:
|
|
29978
|
-
t[30] !== J || t[31] !== I ? (
|
|
29956
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = mJ) : mJ = t[29];
|
|
29957
|
+
let { bulkActions: hJ } = useBulk(mJ), gJ;
|
|
29958
|
+
t[30] !== J || t[31] !== I ? (gJ = (e2) => {
|
|
29979
29959
|
I(e2), e2 === "" && J();
|
|
29980
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29981
|
-
let
|
|
29982
|
-
return t[33] !==
|
|
29960
|
+
}, t[30] = J, t[31] = I, t[32] = gJ) : gJ = t[32];
|
|
29961
|
+
let _J = gJ, vJ;
|
|
29962
|
+
return t[33] !== hJ || t[34] !== fJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== _J || t[41] !== pJ || t[42] !== Q ? (vJ = {
|
|
29983
29963
|
searchQuery: M,
|
|
29984
|
-
setSearchQuery:
|
|
29964
|
+
setSearchQuery: _J,
|
|
29985
29965
|
open: K,
|
|
29986
29966
|
setOpen: q,
|
|
29987
29967
|
visibleOptions: Q,
|
|
29988
29968
|
pinnedCount: $,
|
|
29989
|
-
isChecked:
|
|
29990
|
-
toggle:
|
|
29991
|
-
bulkActions:
|
|
29969
|
+
isChecked: fJ,
|
|
29970
|
+
toggle: pJ,
|
|
29971
|
+
bulkActions: hJ,
|
|
29992
29972
|
labelOf: O
|
|
29993
|
-
}, t[33] =
|
|
29973
|
+
}, t[33] = hJ, t[34] = fJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = _J, t[41] = pJ, t[42] = Q, t[43] = vJ) : vJ = t[43], vJ;
|
|
29994
29974
|
};
|
|
29995
29975
|
const Sets = {
|
|
29996
29976
|
merge(...e) {
|
|
@@ -30299,7 +30279,7 @@ ${n}` : "Please fix this error.";
|
|
|
30299
30279
|
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
|
|
30300
30280
|
let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
|
|
30301
30281
|
t2.id === e.columnId && t2.operator === f && M(_);
|
|
30302
|
-
},
|
|
30282
|
+
}, J = (e2) => {
|
|
30303
30283
|
if (!e2) return;
|
|
30304
30284
|
let n2 = t.getColumn(e2);
|
|
30305
30285
|
if (!n2) return;
|
|
@@ -30308,20 +30288,20 @@ ${n}` : "Please fix this error.";
|
|
|
30308
30288
|
id: e2,
|
|
30309
30289
|
operator: a2
|
|
30310
30290
|
});
|
|
30311
|
-
},
|
|
30291
|
+
}, Q = (e2) => {
|
|
30312
30292
|
O(e2);
|
|
30313
30293
|
let t2 = emptyDraftFor(S, e2);
|
|
30314
30294
|
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
|
|
30315
30295
|
id: v,
|
|
30316
30296
|
operator: e2
|
|
30317
30297
|
});
|
|
30318
|
-
},
|
|
30298
|
+
}, $ = buildFilterValue({
|
|
30319
30299
|
type: S,
|
|
30320
30300
|
operator: E,
|
|
30321
30301
|
draft: mergeNumberTextDraft(A, I)
|
|
30322
|
-
}),
|
|
30323
|
-
if (
|
|
30324
|
-
let e2 =
|
|
30302
|
+
}), dJ = $ === void 0, fJ = dJ ? getMissingValueMessage(S, E) : "Apply filter", pJ = () => {
|
|
30303
|
+
if (!$) return;
|
|
30304
|
+
let e2 = $;
|
|
30325
30305
|
t.setColumnFilters((t2) => {
|
|
30326
30306
|
if (a === void 0) return [
|
|
30327
30307
|
{
|
|
@@ -30338,20 +30318,20 @@ ${n}` : "Please fix this error.";
|
|
|
30338
30318
|
value: e2
|
|
30339
30319
|
}, n2;
|
|
30340
30320
|
}), i();
|
|
30341
|
-
},
|
|
30321
|
+
}, mJ = () => {
|
|
30342
30322
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30343
|
-
},
|
|
30323
|
+
}, hJ = !OPERATORS_WITHOUT_VALUE.has(E), gJ = OPERATORS_BY_TYPE[S], _J = (0, import_react.useRef)(null), vJ = (0, import_react.useRef)(null);
|
|
30344
30324
|
return (0, import_react.useEffect)(() => {
|
|
30345
30325
|
var _a2, _b;
|
|
30346
|
-
let e2 = (_a2 =
|
|
30347
|
-
e2 ? e2.focus() : (_b =
|
|
30326
|
+
let e2 = (_a2 = _J.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30327
|
+
e2 ? e2.focus() : (_b = vJ.current) == null ? void 0 : _b.focus();
|
|
30348
30328
|
}, [
|
|
30349
30329
|
S,
|
|
30350
30330
|
E
|
|
30351
30331
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30352
30332
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30353
30333
|
onSubmit: (e2) => {
|
|
30354
|
-
e2.preventDefault(),
|
|
30334
|
+
e2.preventDefault(), pJ();
|
|
30355
30335
|
},
|
|
30356
30336
|
onKeyDownCapture: (e2) => {
|
|
30357
30337
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30368,7 +30348,7 @@ ${n}` : "Please fix this error.";
|
|
|
30368
30348
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
30369
30349
|
id: o,
|
|
30370
30350
|
value: v,
|
|
30371
|
-
onValueChange:
|
|
30351
|
+
onValueChange: J,
|
|
30372
30352
|
multiple: false,
|
|
30373
30353
|
placeholder: "Select column\u2026",
|
|
30374
30354
|
displayValue: (e2) => e2,
|
|
@@ -30389,16 +30369,16 @@ ${n}` : "Please fix this error.";
|
|
|
30389
30369
|
}),
|
|
30390
30370
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
30391
30371
|
value: E,
|
|
30392
|
-
onValueChange: (e2) =>
|
|
30372
|
+
onValueChange: (e2) => Q(e2),
|
|
30393
30373
|
children: [
|
|
30394
30374
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30395
|
-
ref:
|
|
30375
|
+
ref: vJ,
|
|
30396
30376
|
id: s,
|
|
30397
30377
|
className: "h-6 mb-1 bg-transparent",
|
|
30398
30378
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30399
30379
|
}),
|
|
30400
30380
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30401
|
-
children:
|
|
30381
|
+
children: gJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30402
30382
|
value: e2,
|
|
30403
30383
|
children: OPERATOR_LABELS[e2]
|
|
30404
30384
|
}, e2))
|
|
@@ -30407,8 +30387,8 @@ ${n}` : "Please fix this error.";
|
|
|
30407
30387
|
}, S)
|
|
30408
30388
|
]
|
|
30409
30389
|
}),
|
|
30410
|
-
|
|
30411
|
-
ref:
|
|
30390
|
+
hJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30391
|
+
ref: _J,
|
|
30412
30392
|
className: "flex flex-col gap-1",
|
|
30413
30393
|
children: [
|
|
30414
30394
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30435,14 +30415,14 @@ ${n}` : "Please fix this error.";
|
|
|
30435
30415
|
className: "flex gap-1 mb-1",
|
|
30436
30416
|
children: [
|
|
30437
30417
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30438
|
-
content:
|
|
30418
|
+
content: fJ,
|
|
30439
30419
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30440
30420
|
className: "inline-flex",
|
|
30441
30421
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
30442
30422
|
type: "submit",
|
|
30443
30423
|
size: "icon",
|
|
30444
30424
|
variant: "ghost",
|
|
30445
|
-
disabled:
|
|
30425
|
+
disabled: dJ,
|
|
30446
30426
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
30447
30427
|
"aria-label": "Apply filter",
|
|
30448
30428
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -30474,7 +30454,7 @@ ${n}` : "Please fix this error.";
|
|
|
30474
30454
|
size: "icon",
|
|
30475
30455
|
variant: "ghost",
|
|
30476
30456
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30477
|
-
onClick:
|
|
30457
|
+
onClick: mJ,
|
|
30478
30458
|
"aria-label": "Remove filter",
|
|
30479
30459
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30480
30460
|
className: "h-3.5 w-3.5",
|
|
@@ -32682,29 +32662,29 @@ ${n}` : "Please fix this error.";
|
|
|
32682
32662
|
}, t[16] = a, t[17] = J);
|
|
32683
32663
|
let Q = useEvent_default(J), $;
|
|
32684
32664
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32685
|
-
let
|
|
32686
|
-
t[20] === S ? (
|
|
32665
|
+
let dJ = useEvent_default($), fJ, pJ;
|
|
32666
|
+
t[20] === S ? (fJ = t[21], pJ = t[22]) : (fJ = () => (window.addEventListener("scroll", S, {
|
|
32687
32667
|
passive: true,
|
|
32688
32668
|
capture: true
|
|
32689
32669
|
}), window.addEventListener("resize", S), () => {
|
|
32690
32670
|
window.removeEventListener("scroll", S, {
|
|
32691
32671
|
capture: true
|
|
32692
32672
|
}), window.removeEventListener("resize", S);
|
|
32693
|
-
}),
|
|
32673
|
+
}), pJ = [
|
|
32694
32674
|
S
|
|
32695
|
-
], t[20] = S, t[21] =
|
|
32696
|
-
let
|
|
32697
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32698
|
-
let
|
|
32699
|
-
return t[25] !==
|
|
32675
|
+
], t[20] = S, t[21] = fJ, t[22] = pJ), (0, import_react.useEffect)(fJ, pJ);
|
|
32676
|
+
let mJ, hJ;
|
|
32677
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mJ = () => v, hJ = [], t[23] = mJ, t[24] = hJ) : (mJ = t[23], hJ = t[24]), (0, import_react.useEffect)(mJ, hJ);
|
|
32678
|
+
let gJ;
|
|
32679
|
+
return t[25] !== dJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (gJ = {
|
|
32700
32680
|
tooltipState: o,
|
|
32701
32681
|
tooltipContentId: d,
|
|
32702
32682
|
hideTooltip: S,
|
|
32703
32683
|
handleCellMouseOver: U,
|
|
32704
32684
|
handleCellMouseLeave: q,
|
|
32705
32685
|
handleCellFocus: Q,
|
|
32706
|
-
handleCellBlur:
|
|
32707
|
-
}, t[25] =
|
|
32686
|
+
handleCellBlur: dJ
|
|
32687
|
+
}, t[25] = dJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = gJ) : gJ = t[32], gJ;
|
|
32708
32688
|
}
|
|
32709
32689
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32710
32690
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34149,7 +34129,7 @@ ${n}` : "Please fix this error.";
|
|
|
34149
34129
|
filename: i2.filename
|
|
34150
34130
|
};
|
|
34151
34131
|
}, t[6] = e, t[7] = O);
|
|
34152
|
-
let A = O,
|
|
34132
|
+
let A = O, M, z, U, K, q, J, Q, $, dJ, fJ, pJ, mJ, hJ;
|
|
34153
34133
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34154
34134
|
let e2 = async (t2) => {
|
|
34155
34135
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34215,10 +34195,10 @@ ${n}` : "Please fix this error.";
|
|
|
34215
34195
|
content: d,
|
|
34216
34196
|
open: o,
|
|
34217
34197
|
children: h
|
|
34218
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35],
|
|
34198
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], M = DropdownMenuContent, dJ = "bottom", fJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34219
34199
|
className: "text-xs text-muted-foreground",
|
|
34220
34200
|
children: "Download"
|
|
34221
|
-
}), t[36] =
|
|
34201
|
+
}), t[36] = pJ) : pJ = t[36], mJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34222
34202
|
onSelect: () => {
|
|
34223
34203
|
e2(t2.format);
|
|
34224
34204
|
},
|
|
@@ -34239,10 +34219,10 @@ ${n}` : "Please fix this error.";
|
|
|
34239
34219
|
]
|
|
34240
34220
|
})
|
|
34241
34221
|
]
|
|
34242
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34222
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34243
34223
|
className: "text-xs text-muted-foreground",
|
|
34244
34224
|
children: "Copy to clipboard"
|
|
34245
|
-
}), t[37] = U, t[38] =
|
|
34225
|
+
}), t[37] = U, t[38] = hJ) : (U = t[37], hJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34246
34226
|
onSelect: async () => {
|
|
34247
34227
|
try {
|
|
34248
34228
|
await a2(e3.format);
|
|
@@ -34271,30 +34251,30 @@ ${n}` : "Please fix this error.";
|
|
|
34271
34251
|
]
|
|
34272
34252
|
})
|
|
34273
34253
|
]
|
|
34274
|
-
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] =
|
|
34275
|
-
} else
|
|
34276
|
-
let
|
|
34277
|
-
t[39] !==
|
|
34278
|
-
side:
|
|
34279
|
-
className:
|
|
34254
|
+
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = dJ, t[22] = fJ, t[23] = pJ, t[24] = mJ, t[25] = hJ;
|
|
34255
|
+
} else M = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], dJ = t[21], fJ = t[22], pJ = t[23], mJ = t[24], hJ = t[25];
|
|
34256
|
+
let gJ;
|
|
34257
|
+
t[39] !== M || t[40] !== U || t[41] !== K || t[42] !== dJ || t[43] !== fJ || t[44] !== pJ || t[45] !== mJ || t[46] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34258
|
+
side: dJ,
|
|
34259
|
+
className: fJ,
|
|
34280
34260
|
children: [
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
34261
|
+
pJ,
|
|
34262
|
+
mJ,
|
|
34263
|
+
hJ,
|
|
34284
34264
|
U,
|
|
34285
34265
|
K
|
|
34286
34266
|
]
|
|
34287
|
-
}), t[39] =
|
|
34288
|
-
let
|
|
34289
|
-
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !==
|
|
34267
|
+
}), t[39] = M, t[40] = U, t[41] = K, t[42] = dJ, t[43] = fJ, t[44] = pJ, t[45] = mJ, t[46] = hJ, t[47] = gJ) : gJ = t[47];
|
|
34268
|
+
let _J;
|
|
34269
|
+
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(z, {
|
|
34290
34270
|
modal: q,
|
|
34291
34271
|
open: J,
|
|
34292
34272
|
onOpenChange: Q,
|
|
34293
34273
|
children: [
|
|
34294
34274
|
$,
|
|
34295
|
-
|
|
34275
|
+
gJ
|
|
34296
34276
|
]
|
|
34297
|
-
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] =
|
|
34277
|
+
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = gJ, t[54] = _J) : _J = t[54], _J;
|
|
34298
34278
|
};
|
|
34299
34279
|
function fetchJson(e) {
|
|
34300
34280
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34390,22 +34370,22 @@ ${n}` : "Please fix this error.";
|
|
|
34390
34370
|
]
|
|
34391
34371
|
});
|
|
34392
34372
|
};
|
|
34393
|
-
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:
|
|
34394
|
-
let
|
|
34373
|
+
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: dJ, showSearch: fJ = false, searchQuery: pJ, onSearchQueryChange: mJ, showFilters: hJ = false, filters: gJ, onFiltersChange: _J, calculateTopKRows: vJ, reloading: yJ, freezeColumnsLeft: bJ, freezeColumnsRight: xJ, hiddenColumns: SJ, toggleDisplayHeader: CJ, showChartBuilder: wJ, isChartBuilderOpen: TJ, showPageSizeSelector: EJ, showTableExplorer: DJ, togglePanel: OJ, isPanelOpen: kJ, isAnyPanelOpen: AJ, viewedRowIdx: jJ, onViewedRowChange: MJ, renderTableExplorerPanel: NJ }) => {
|
|
34374
|
+
let PJ = isStaticNotebook(), FJ = !PJ, [IJ, LJ] = import_react.useState(false), { locale: RJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: zJ, setColumnPinning: BJ } = useColumnPinning(bJ, xJ), { columnVisibility: VJ, setColumnVisibility: HJ } = useColumnVisibility(SJ);
|
|
34395
34375
|
import_react.useEffect(() => {
|
|
34396
34376
|
let e2;
|
|
34397
|
-
return
|
|
34398
|
-
|
|
34399
|
-
}, 300) :
|
|
34377
|
+
return yJ ? e2 = setTimeout(() => {
|
|
34378
|
+
LJ(true);
|
|
34379
|
+
}, 300) : LJ(false), () => {
|
|
34400
34380
|
e2 && clearTimeout(e2);
|
|
34401
34381
|
};
|
|
34402
34382
|
}, [
|
|
34403
|
-
|
|
34383
|
+
yJ
|
|
34404
34384
|
]);
|
|
34405
|
-
function
|
|
34385
|
+
function UJ(e2, t2) {
|
|
34406
34386
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34407
34387
|
}
|
|
34408
|
-
let
|
|
34388
|
+
let WJ = useReactTable({
|
|
34409
34389
|
_features: [
|
|
34410
34390
|
ColumnPinning,
|
|
34411
34391
|
ColumnWrappingFeature,
|
|
@@ -34429,37 +34409,37 @@ ${n}` : "Please fix this error.";
|
|
|
34429
34409
|
getRowId: (e2, t2) => {
|
|
34430
34410
|
let n2 = getStableRowId(e2);
|
|
34431
34411
|
if (n2) return n2;
|
|
34432
|
-
let i2 =
|
|
34412
|
+
let i2 = UJ(e2, t2);
|
|
34433
34413
|
return String(i2);
|
|
34434
34414
|
}
|
|
34435
34415
|
} : {},
|
|
34436
|
-
locale:
|
|
34416
|
+
locale: RJ,
|
|
34437
34417
|
manualPagination: q,
|
|
34438
34418
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34439
34419
|
...w ? {
|
|
34440
34420
|
onSortingChange: w
|
|
34441
34421
|
} : {},
|
|
34442
34422
|
manualSorting: y,
|
|
34443
|
-
enableSorting: !
|
|
34423
|
+
enableSorting: !PJ,
|
|
34444
34424
|
enableMultiSort: true,
|
|
34445
34425
|
getSortedRowModel: getSortedRowModel(),
|
|
34446
34426
|
manualFiltering: true,
|
|
34447
|
-
enableColumnFilters:
|
|
34427
|
+
enableColumnFilters: hJ && !PJ,
|
|
34448
34428
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34449
|
-
onColumnFiltersChange:
|
|
34429
|
+
onColumnFiltersChange: _J,
|
|
34450
34430
|
onRowSelectionChange: Q,
|
|
34451
34431
|
onCellSelectionChange: $,
|
|
34452
34432
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34453
34433
|
enableMultiCellSelection: c === "multi-cell",
|
|
34454
|
-
onColumnPinningChange:
|
|
34455
|
-
onColumnVisibilityChange:
|
|
34434
|
+
onColumnPinningChange: BJ,
|
|
34435
|
+
onColumnVisibilityChange: HJ,
|
|
34456
34436
|
enableFocusRow: true,
|
|
34457
|
-
onFocusRowChange:
|
|
34437
|
+
onFocusRowChange: MJ,
|
|
34458
34438
|
state: {
|
|
34459
34439
|
...S ? {
|
|
34460
34440
|
sorting: S
|
|
34461
34441
|
} : {},
|
|
34462
|
-
columnFilters:
|
|
34442
|
+
columnFilters: gJ,
|
|
34463
34443
|
...z ? {
|
|
34464
34444
|
pagination: z
|
|
34465
34445
|
} : J && !z ? {} : {
|
|
@@ -34470,60 +34450,60 @@ ${n}` : "Please fix this error.";
|
|
|
34470
34450
|
},
|
|
34471
34451
|
rowSelection: E ?? {},
|
|
34472
34452
|
cellSelection: O ?? [],
|
|
34473
|
-
columnVisibility:
|
|
34453
|
+
columnVisibility: VJ,
|
|
34474
34454
|
cellStyling: A,
|
|
34475
|
-
columnPinning:
|
|
34455
|
+
columnPinning: zJ,
|
|
34476
34456
|
cellHoverTemplate: M,
|
|
34477
34457
|
cellHoverTexts: I ?? {}
|
|
34478
34458
|
}
|
|
34479
|
-
}),
|
|
34459
|
+
}), GJ = (kJ == null ? void 0 : kJ(PANEL_TYPES.ROW_VIEWER)) ?? false, KJ = !J && a.length > 100, qJ = useScrollContainerHeight({
|
|
34480
34460
|
maxHeight: n,
|
|
34481
|
-
virtualize:
|
|
34482
|
-
}), [
|
|
34461
|
+
virtualize: KJ
|
|
34462
|
+
}), [JJ, YJ] = import_react.useState(null), XJ = import_react.useMemo(() => ({
|
|
34483
34463
|
requestAddFilter: (e2) => {
|
|
34484
|
-
let t2 =
|
|
34485
|
-
t2 &&
|
|
34464
|
+
let t2 = WJ.getColumn(e2.columnId);
|
|
34465
|
+
t2 && YJ(buildEditorSnapshot(t2, {
|
|
34486
34466
|
operator: e2.operator
|
|
34487
34467
|
}));
|
|
34488
34468
|
}
|
|
34489
34469
|
}), [
|
|
34490
|
-
|
|
34491
|
-
]),
|
|
34470
|
+
WJ
|
|
34471
|
+
]), ZJ = getUserColumnVisibilityCounts(WJ), QJ = ZJ.total > 0 && ZJ.visible === 0;
|
|
34492
34472
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34493
|
-
value:
|
|
34473
|
+
value: XJ,
|
|
34494
34474
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34495
34475
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34496
34476
|
children: [
|
|
34497
34477
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34498
|
-
filters:
|
|
34499
|
-
table:
|
|
34500
|
-
calculateTopKRows:
|
|
34501
|
-
addFilterSnapshot:
|
|
34502
|
-
onAddFilterSnapshotChange:
|
|
34478
|
+
filters: gJ,
|
|
34479
|
+
table: WJ,
|
|
34480
|
+
calculateTopKRows: vJ,
|
|
34481
|
+
addFilterSnapshot: JJ,
|
|
34482
|
+
onAddFilterSnapshotChange: YJ
|
|
34503
34483
|
}),
|
|
34504
|
-
|
|
34484
|
+
NJ == null ? void 0 : NJ(WJ),
|
|
34505
34485
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34506
34486
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34507
34487
|
part: "table-wrapper",
|
|
34508
34488
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34509
34489
|
children: [
|
|
34510
|
-
|
|
34511
|
-
table:
|
|
34512
|
-
showSearch:
|
|
34513
|
-
searchQuery:
|
|
34514
|
-
onSearchQueryChange:
|
|
34515
|
-
reloading:
|
|
34516
|
-
showChartBuilder:
|
|
34517
|
-
isChartBuilderOpen:
|
|
34518
|
-
toggleDisplayHeader:
|
|
34519
|
-
showTableExplorer:
|
|
34520
|
-
togglePanel:
|
|
34521
|
-
isAnyPanelOpen:
|
|
34490
|
+
FJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34491
|
+
table: WJ,
|
|
34492
|
+
showSearch: fJ,
|
|
34493
|
+
searchQuery: pJ,
|
|
34494
|
+
onSearchQueryChange: mJ,
|
|
34495
|
+
reloading: yJ,
|
|
34496
|
+
showChartBuilder: wJ,
|
|
34497
|
+
isChartBuilderOpen: TJ,
|
|
34498
|
+
toggleDisplayHeader: CJ,
|
|
34499
|
+
showTableExplorer: DJ,
|
|
34500
|
+
togglePanel: OJ,
|
|
34501
|
+
isAnyPanelOpen: AJ,
|
|
34522
34502
|
downloadAs: K,
|
|
34523
34503
|
sizeBytes: _,
|
|
34524
34504
|
sizeBytesIsLoading: v
|
|
34525
34505
|
}),
|
|
34526
|
-
|
|
34506
|
+
QJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34527
34507
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34528
34508
|
children: [
|
|
34529
34509
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34532,26 +34512,26 @@ ${n}` : "Please fix this error.";
|
|
|
34532
34512
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34533
34513
|
variant: "link",
|
|
34534
34514
|
size: "xs",
|
|
34535
|
-
onClick: () =>
|
|
34515
|
+
onClick: () => WJ.resetColumnVisibility(true),
|
|
34536
34516
|
children: "Unhide all"
|
|
34537
34517
|
})
|
|
34538
34518
|
]
|
|
34539
34519
|
}),
|
|
34540
34520
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34541
34521
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34542
|
-
ref:
|
|
34522
|
+
ref: qJ,
|
|
34543
34523
|
children: [
|
|
34544
|
-
|
|
34524
|
+
IJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34545
34525
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34546
34526
|
}),
|
|
34547
|
-
renderTableHeader(
|
|
34527
|
+
renderTableHeader(WJ, KJ || !!n),
|
|
34548
34528
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34549
|
-
table:
|
|
34529
|
+
table: WJ,
|
|
34550
34530
|
columns: i,
|
|
34551
|
-
rowViewerPanelOpen:
|
|
34552
|
-
getRowIndex:
|
|
34553
|
-
viewedRowIdx:
|
|
34554
|
-
virtualize:
|
|
34531
|
+
rowViewerPanelOpen: GJ,
|
|
34532
|
+
getRowIndex: UJ,
|
|
34533
|
+
viewedRowIdx: jJ,
|
|
34534
|
+
virtualize: KJ
|
|
34555
34535
|
})
|
|
34556
34536
|
]
|
|
34557
34537
|
}),
|
|
@@ -34562,10 +34542,10 @@ ${n}` : "Please fix this error.";
|
|
|
34562
34542
|
pagination: J,
|
|
34563
34543
|
selection: c,
|
|
34564
34544
|
onRowSelectionChange: Q,
|
|
34565
|
-
table:
|
|
34566
|
-
getRowIds:
|
|
34567
|
-
showPageSizeSelector:
|
|
34568
|
-
tableLoading:
|
|
34545
|
+
table: WJ,
|
|
34546
|
+
getRowIds: dJ,
|
|
34547
|
+
showPageSizeSelector: EJ,
|
|
34548
|
+
tableLoading: yJ
|
|
34569
34549
|
})
|
|
34570
34550
|
]
|
|
34571
34551
|
})
|
|
@@ -34650,60 +34630,60 @@ ${n}` : "Please fix this error.";
|
|
|
34650
34630
|
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];
|
|
34651
34631
|
let O = E, A;
|
|
34652
34632
|
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34653
|
-
let M = A, I = !isStaticNotebook(), [z,
|
|
34654
|
-
t[12] !== d || t[13] !== n ? (
|
|
34633
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
|
|
34634
|
+
t[12] !== d || t[13] !== n ? (K = (e2) => {
|
|
34655
34635
|
n == null ? void 0 : n({
|
|
34656
34636
|
prompt: `My code gives the following error:
|
|
34657
34637
|
|
|
34658
34638
|
${d}`,
|
|
34659
34639
|
triggerImmediately: e2
|
|
34660
34640
|
});
|
|
34661
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34662
|
-
let
|
|
34663
|
-
t[15] !== a || t[16] !== d || t[17] !== _ ? (
|
|
34641
|
+
}, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
|
|
34642
|
+
let q = K, $;
|
|
34643
|
+
t[15] !== a || t[16] !== d || t[17] !== _ ? ($ = () => {
|
|
34664
34644
|
_({
|
|
34665
34645
|
prompt: buildFixInChatPrompt(a, d)
|
|
34666
34646
|
});
|
|
34667
|
-
}, t[15] = a, t[16] = d, t[17] = _, t[18] =
|
|
34668
|
-
let
|
|
34669
|
-
t[19] === z ?
|
|
34670
|
-
let
|
|
34671
|
-
t[21] === z ?
|
|
34647
|
+
}, t[15] = a, t[16] = d, t[17] = _, t[18] = $) : $ = t[18];
|
|
34648
|
+
let dJ = $, fJ;
|
|
34649
|
+
t[19] === z ? fJ = t[20] : (fJ = () => U(!z), t[19] = z, t[20] = fJ);
|
|
34650
|
+
let pJ = z ? "Collapse traceback" : "Expand traceback", mJ;
|
|
34651
|
+
t[21] === z ? mJ = t[22] : (mJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34672
34652
|
className: "h-3 w-3"
|
|
34673
34653
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34674
34654
|
className: "h-3 w-3"
|
|
34675
|
-
}), t[21] = z, t[22] =
|
|
34676
|
-
let
|
|
34677
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34655
|
+
}), t[21] = z, t[22] = mJ);
|
|
34656
|
+
let hJ;
|
|
34657
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34678
34658
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34679
34659
|
children: "Traceback"
|
|
34680
|
-
}), t[23] =
|
|
34681
|
-
let
|
|
34682
|
-
t[24] !== z || t[25] !==
|
|
34660
|
+
}), t[23] = hJ) : hJ = t[23];
|
|
34661
|
+
let gJ;
|
|
34662
|
+
t[24] !== z || t[25] !== mJ || t[26] !== fJ || t[27] !== pJ ? (gJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34683
34663
|
type: "button",
|
|
34684
|
-
onClick:
|
|
34664
|
+
onClick: fJ,
|
|
34685
34665
|
"aria-expanded": z,
|
|
34686
|
-
"aria-label":
|
|
34666
|
+
"aria-label": pJ,
|
|
34687
34667
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34688
34668
|
children: [
|
|
34689
|
-
|
|
34690
|
-
|
|
34669
|
+
mJ,
|
|
34670
|
+
hJ
|
|
34691
34671
|
]
|
|
34692
|
-
}), t[24] = z, t[25] =
|
|
34693
|
-
let
|
|
34694
|
-
t[29] !== s || t[30] !== z ? (
|
|
34672
|
+
}), t[24] = z, t[25] = mJ, t[26] = fJ, t[27] = pJ, t[28] = gJ) : gJ = t[28];
|
|
34673
|
+
let _J;
|
|
34674
|
+
t[29] !== s || t[30] !== z ? (_J = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34695
34675
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34696
34676
|
children: s
|
|
34697
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34698
|
-
let
|
|
34699
|
-
t[32] !==
|
|
34677
|
+
}), t[29] = s, t[30] = z, t[31] = _J) : _J = t[31];
|
|
34678
|
+
let vJ;
|
|
34679
|
+
t[32] !== q || t[33] !== dJ || t[34] !== M ? (vJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34700
34680
|
tooltip: "Fix with AI",
|
|
34701
|
-
openPrompt: () =>
|
|
34702
|
-
applyAutofix: () =>
|
|
34703
|
-
openChat:
|
|
34704
|
-
}), t[32] =
|
|
34705
|
-
let
|
|
34706
|
-
t[36] !== O || t[37] !== S ? (
|
|
34681
|
+
openPrompt: () => q(false),
|
|
34682
|
+
applyAutofix: () => q(true),
|
|
34683
|
+
openChat: dJ
|
|
34684
|
+
}), t[32] = q, t[33] = dJ, t[34] = M, t[35] = vJ) : vJ = t[35];
|
|
34685
|
+
let yJ;
|
|
34686
|
+
t[36] !== O || t[37] !== S ? (yJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34707
34687
|
content: "Attach pdb to the exception point.",
|
|
34708
34688
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34709
34689
|
size: "xs",
|
|
@@ -34720,9 +34700,9 @@ ${d}`,
|
|
|
34720
34700
|
"Launch debugger"
|
|
34721
34701
|
]
|
|
34722
34702
|
})
|
|
34723
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34724
|
-
let
|
|
34725
|
-
t[39] !== d || t[40] !== i ? (
|
|
34703
|
+
}), t[36] = O, t[37] = S, t[38] = yJ) : yJ = t[38];
|
|
34704
|
+
let bJ;
|
|
34705
|
+
t[39] !== d || t[40] !== i ? (bJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34726
34706
|
children: [
|
|
34727
34707
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34728
34708
|
asChild: true,
|
|
@@ -34790,25 +34770,25 @@ ${d}`,
|
|
|
34790
34770
|
]
|
|
34791
34771
|
})
|
|
34792
34772
|
]
|
|
34793
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34794
|
-
let
|
|
34795
|
-
t[42] !==
|
|
34773
|
+
}), t[39] = d, t[40] = i, t[41] = bJ) : bJ = t[41];
|
|
34774
|
+
let xJ;
|
|
34775
|
+
t[42] !== vJ || t[43] !== yJ || t[44] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34796
34776
|
className: "flex gap-2",
|
|
34797
34777
|
children: [
|
|
34798
|
-
|
|
34799
|
-
|
|
34800
|
-
|
|
34778
|
+
vJ,
|
|
34779
|
+
yJ,
|
|
34780
|
+
bJ
|
|
34801
34781
|
]
|
|
34802
|
-
}), t[42] =
|
|
34803
|
-
let
|
|
34804
|
-
return t[46] !==
|
|
34782
|
+
}), t[42] = vJ, t[43] = yJ, t[44] = bJ, t[45] = xJ) : xJ = t[45];
|
|
34783
|
+
let SJ;
|
|
34784
|
+
return t[46] !== gJ || t[47] !== _J || t[48] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34805
34785
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34806
34786
|
children: [
|
|
34807
|
-
|
|
34808
|
-
|
|
34809
|
-
|
|
34787
|
+
gJ,
|
|
34788
|
+
_J,
|
|
34789
|
+
xJ
|
|
34810
34790
|
]
|
|
34811
|
-
}), t[46] =
|
|
34791
|
+
}), t[46] = gJ, t[47] = _J, t[48] = xJ, t[49] = SJ) : SJ = t[49], SJ;
|
|
34812
34792
|
};
|
|
34813
34793
|
function lastLine(e) {
|
|
34814
34794
|
var _a2, _b;
|
|
@@ -36244,14 +36224,14 @@ ${d}`,
|
|
|
36244
36224
|
Q
|
|
36245
36225
|
]
|
|
36246
36226
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36247
|
-
let
|
|
36248
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36227
|
+
let dJ;
|
|
36228
|
+
return t[36] !== I || t[37] !== $ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36249
36229
|
className: "flex flex-col gap-3",
|
|
36250
36230
|
children: [
|
|
36251
36231
|
I,
|
|
36252
36232
|
$
|
|
36253
36233
|
]
|
|
36254
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36234
|
+
}), t[36] = I, t[37] = $, t[38] = dJ) : dJ = t[38], dJ;
|
|
36255
36235
|
};
|
|
36256
36236
|
SlideSidebar = (e) => {
|
|
36257
36237
|
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, _;
|
|
@@ -36376,7 +36356,7 @@ ${d}`,
|
|
|
36376
36356
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36377
36357
|
}
|
|
36378
36358
|
}
|
|
36379
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-
|
|
36359
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev36");
|
|
36380
36360
|
showCodeInRunModeAtom = atom(true);
|
|
36381
36361
|
atom(null);
|
|
36382
36362
|
var import_compiler_runtime = require_compiler_runtime();
|