@marimo-team/islands 0.24.1-dev32 → 0.24.1-dev35
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/{common-nFz87Uyp.js → common-C1BvDvU0.js} +717 -678
- package/dist/main.js +2 -2
- package/dist/{reveal-component-BfdtFvyL.js → reveal-component-D-I8Cn0V.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/data-table/__tests__/columns.test.tsx +166 -2
- package/src/components/data-table/columns.tsx +87 -10
|
@@ -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, hJ = c.top - E, gJ = c.bottom + O, _J = c.left - A, vJ = c.right + M, yJ = e === _ ? 0 : Q + $, bJ = e === _ ? 0 : q + J, xJ = e.offsetWidth - e.clientWidth - yJ, SJ = e.offsetHeight - e.clientHeight - bJ, CJ = v + q + I, wJ = y - J - z - SJ, TJ = S + Q + U, EJ = w - $ - K;
|
|
2066
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? TJ += xJ : EJ -= xJ;
|
|
2067
|
+
let DJ = hJ < CJ || gJ > wJ, OJ = _J < TJ || vJ > EJ;
|
|
2068
|
+
if (DJ && i === "start") o += hJ - CJ;
|
|
2069
|
+
else if (DJ && i === "center") o += (hJ + gJ) / 2 - (CJ + wJ) / 2;
|
|
2070
|
+
else if (DJ && i === "end") o += gJ - wJ;
|
|
2071
|
+
else if (DJ && i === "nearest") {
|
|
2072
|
+
let e2 = hJ - CJ, t2 = gJ - wJ;
|
|
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 (OJ && a === "start") s += _J - TJ;
|
|
2076
|
+
else if (OJ && a === "center") s += (_J + vJ) / 2 - (TJ + EJ) / 2;
|
|
2077
|
+
else if (OJ && a === "end") s += vJ - EJ;
|
|
2078
|
+
else if (OJ && a === "nearest") {
|
|
2079
|
+
let e2 = _J - TJ, t2 = vJ - EJ;
|
|
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 hJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5190
|
+
q[I] += hJ;
|
|
5191
|
+
let gJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5192
|
+
y && y < gJ && (gJ = y), n.height = Math.min(n.height, gJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), hJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += hJ;
|
|
5193
|
+
let _J = {}, vJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], yJ = vJ + 0.5 * t[z], bJ = S / 2 + w, xJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), SJ = n[z] - xJ - S / 2 - w;
|
|
5194
|
+
_J[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(yJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), bJ, SJ), { placement: U, crossPlacement: K } = A, S ? vJ = _J[I] : K === "right" ? vJ += t[z] : K === "center" && (vJ += t[z] / 2);
|
|
5195
|
+
let CJ = U === "left" || U === "top" ? n[M] : 0, wJ = {
|
|
5196
|
+
x: U === "top" || U === "bottom" ? vJ : CJ,
|
|
5197
|
+
y: U === "left" || U === "right" ? vJ : CJ
|
|
5198
5198
|
};
|
|
5199
5199
|
return {
|
|
5200
5200
|
position: q,
|
|
5201
|
-
maxHeight:
|
|
5202
|
-
arrowOffsetLeft:
|
|
5203
|
-
arrowOffsetTop:
|
|
5201
|
+
maxHeight: gJ,
|
|
5202
|
+
arrowOffsetLeft: _J.left,
|
|
5203
|
+
arrowOffsetTop: _J.top,
|
|
5204
5204
|
placement: U,
|
|
5205
|
-
triggerAnchorPoint:
|
|
5205
|
+
triggerAnchorPoint: wJ
|
|
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 hJ = $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 gJ = $bdb11010cef70236$export$f680877a34711e37(), _J = !t.isDisabled && !t.isReadOnly && e.isEditable, vJ = e.type === "literal" ? "" : s.of(e.type), yJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7071
|
+
"aria-label": `${vJ}${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 bJ = {
|
|
7080
7080
|
caretColor: "transparent"
|
|
7081
7081
|
};
|
|
7082
7082
|
if (o === "rtl") {
|
|
7083
|
-
|
|
7083
|
+
bJ.unicodeBidi = "embed";
|
|
7084
7084
|
let t2 = v[e.type];
|
|
7085
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7085
|
+
(t2 === "numeric" || t2 === "2-digit") && (bJ.direction = "ltr");
|
|
7086
7086
|
}
|
|
7087
7087
|
return {
|
|
7088
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7089
|
-
id:
|
|
7090
|
-
...
|
|
7088
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, yJ, {
|
|
7089
|
+
id: gJ,
|
|
7090
|
+
...hJ,
|
|
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: _J,
|
|
7096
|
+
suppressContentEditableWarning: _J,
|
|
7097
|
+
spellCheck: _J ? "false" : void 0,
|
|
7098
|
+
autoCorrect: _J ? "off" : void 0,
|
|
7099
|
+
enterKeyHint: _J ? "next" : void 0,
|
|
7100
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !_J ? void 0 : "numeric",
|
|
7101
7101
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7102
7102
|
onKeyDown: A,
|
|
7103
7103
|
onFocus: Q,
|
|
7104
|
-
style:
|
|
7104
|
+
style: bJ,
|
|
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 hJ = (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
|
+
]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "invalid" : null, vJ = (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: _J,
|
|
10370
|
+
isValueInvalid: gJ,
|
|
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(vJ);
|
|
10396
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(vJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, vJ, i, s, c), vJ, i));
|
|
10397
10397
|
},
|
|
10398
10398
|
focusPreviousPage() {
|
|
10399
|
-
let e2 = M.subtract(
|
|
10400
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10399
|
+
let e2 = M.subtract(vJ);
|
|
10400
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(vJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, vJ, i, s, c), vJ, 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
|
+
}, [$, hJ] = (0, import_react.useState)(false), { isDateUnavailable: gJ } = e, _J = (0, import_react.useMemo)(() => !h || v ? false : gJ && (gJ(h.start) || gJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10538
|
+
gJ,
|
|
10539
10539
|
h,
|
|
10540
10540
|
v,
|
|
10541
10541
|
c,
|
|
10542
10542
|
d
|
|
10543
|
-
]),
|
|
10543
|
+
]), vJ = e.isInvalid || e.validationState === "invalid" || _J, yJ = vJ ? "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: yJ,
|
|
10552
|
+
isValueInvalid: vJ,
|
|
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: hJ
|
|
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
|
+
]), hJ = (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
|
+
]), [gJ, _J] = (0, import_react.useState)(M), [vJ, yJ] = (0, import_react.useState)(S), [bJ, xJ] = (0, import_react.useState)(w);
|
|
11774
|
+
(M !== gJ || w !== bJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, vJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), _J(M), yJ(S), xJ(w), z(I));
|
|
11775
|
+
let SJ = (t2) => {
|
|
11776
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(hJ)) 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(hJ)) {
|
|
11780
11780
|
let e2 = t2.toValue(M ?? $);
|
|
11781
|
-
if (t2.validate(e2,
|
|
11781
|
+
if (t2.validate(e2, hJ)) {
|
|
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
|
+
}, CJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11792
11792
|
I,
|
|
11793
11793
|
y,
|
|
11794
11794
|
M,
|
|
11795
11795
|
$
|
|
11796
|
-
]),
|
|
11797
|
-
|
|
11796
|
+
]), wJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(CJ, I, J, Q, S, t, _), [
|
|
11797
|
+
CJ,
|
|
11798
11798
|
J,
|
|
11799
11799
|
Q,
|
|
11800
11800
|
I,
|
|
11801
11801
|
S,
|
|
11802
11802
|
t,
|
|
11803
11803
|
_
|
|
11804
|
-
]),
|
|
11805
|
-
|
|
11806
|
-
},
|
|
11804
|
+
]), TJ = (e2, t2) => {
|
|
11805
|
+
SJ(I.cycle(e2, t2, $, hJ));
|
|
11806
|
+
}, EJ = (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
|
+
]), DJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11813
11813
|
...e,
|
|
11814
11814
|
value: E,
|
|
11815
|
-
builtinValidation:
|
|
11816
|
-
}),
|
|
11815
|
+
builtinValidation: EJ
|
|
11816
|
+
}), OJ = DJ.displayValidation.isInvalid, kJ = e.validationState || (OJ ? "invalid" : null);
|
|
11817
11817
|
return {
|
|
11818
|
-
...
|
|
11818
|
+
...DJ,
|
|
11819
11819
|
value: M,
|
|
11820
11820
|
defaultValue: e.defaultValue ?? A,
|
|
11821
|
-
dateValue:
|
|
11821
|
+
dateValue: CJ,
|
|
11822
11822
|
calendar: S,
|
|
11823
|
-
setValue:
|
|
11824
|
-
segments:
|
|
11823
|
+
setValue: SJ,
|
|
11824
|
+
segments: wJ,
|
|
11825
11825
|
dateFormatter: J,
|
|
11826
|
-
validationState:
|
|
11827
|
-
isInvalid:
|
|
11826
|
+
validationState: kJ,
|
|
11827
|
+
isInvalid: OJ,
|
|
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
|
+
TJ(e2, 1);
|
|
11835
11835
|
},
|
|
11836
11836
|
decrement(e2) {
|
|
11837
|
-
|
|
11837
|
+
TJ(e2, -1);
|
|
11838
11838
|
},
|
|
11839
11839
|
incrementPage(e2) {
|
|
11840
|
-
|
|
11840
|
+
TJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11841
11841
|
},
|
|
11842
11842
|
decrementPage(e2) {
|
|
11843
|
-
|
|
11843
|
+
TJ(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
|
+
SJ(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
|
+
SJ(I.set(e2, t2, $));
|
|
11852
11852
|
},
|
|
11853
11853
|
setSegment(e2, t2) {
|
|
11854
|
-
|
|
11854
|
+
SJ(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(hJ)) {
|
|
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)), SJ(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(CJ) : "";
|
|
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, hJ = 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: hJ,
|
|
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, hJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15928
15928
|
h2
|
|
15929
|
-
]),
|
|
15930
|
-
|
|
15931
|
-
]),
|
|
15932
|
-
supportedColorSchemes:
|
|
15933
|
-
defaultLightColorScheme:
|
|
15934
|
-
defaultDarkColorScheme:
|
|
15929
|
+
]), gJ = hJ[t], _J = gJ || hJ, { colorSchemes: vJ = _, components: yJ = v, cssVarPrefix: bJ } = _J, xJ = Object.keys(vJ).filter((e3) => !!vJ[e3]).join(","), SJ = import_react.useMemo(() => xJ.split(","), [
|
|
15930
|
+
xJ
|
|
15931
|
+
]), CJ = typeof s == "string" ? s : s.light, wJ = typeof s == "string" ? s : s.dark, { mode: TJ, setMode: EJ, systemMode: DJ, lightColorScheme: OJ, darkColorScheme: kJ, colorScheme: AJ, setColorScheme: jJ } = useCurrentColorScheme({
|
|
15932
|
+
supportedColorSchemes: SJ,
|
|
15933
|
+
defaultLightColorScheme: CJ,
|
|
15934
|
+
defaultDarkColorScheme: wJ,
|
|
15935
15935
|
modeStorageKey: y2,
|
|
15936
15936
|
colorSchemeStorageKey: S2,
|
|
15937
|
-
defaultMode:
|
|
15937
|
+
defaultMode: vJ[CJ] && vJ[wJ] ? U : ((_b = (_a2 = vJ[_J.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = _J.palette) == null ? void 0 : _c.mode),
|
|
15938
15938
|
storageManager: E,
|
|
15939
15939
|
storageWindow: O,
|
|
15940
15940
|
noSsr: K
|
|
15941
|
-
}),
|
|
15942
|
-
$ && (
|
|
15943
|
-
let
|
|
15941
|
+
}), MJ = TJ, NJ = AJ;
|
|
15942
|
+
$ && (MJ = Q.mode, NJ = Q.colorScheme);
|
|
15943
|
+
let PJ = import_react.useMemo(() => {
|
|
15944
15944
|
var _a3;
|
|
15945
|
-
let e3 =
|
|
15946
|
-
...
|
|
15947
|
-
components:
|
|
15948
|
-
colorSchemes:
|
|
15949
|
-
cssVarPrefix:
|
|
15945
|
+
let e3 = NJ || _J.defaultColorScheme, t2 = ((_a3 = _J.generateThemeVars) == null ? void 0 : _a3.call(_J)) || _J.vars, n2 = {
|
|
15946
|
+
..._J,
|
|
15947
|
+
components: yJ,
|
|
15948
|
+
colorSchemes: vJ,
|
|
15949
|
+
cssVarPrefix: bJ,
|
|
15950
15950
|
vars: t2
|
|
15951
15951
|
};
|
|
15952
15952
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15953
|
-
let t3 =
|
|
15953
|
+
let t3 = vJ[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
|
-
gJ,
|
|
15964
|
-
MJ,
|
|
15965
|
-
vJ,
|
|
15966
15963
|
_J,
|
|
15967
|
-
|
|
15968
|
-
|
|
15964
|
+
NJ,
|
|
15965
|
+
yJ,
|
|
15966
|
+
vJ,
|
|
15967
|
+
bJ
|
|
15968
|
+
]), FJ = _J.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 (NJ && M && FJ && FJ !== "media") {
|
|
15971
|
+
let e3 = FJ, t2 = FJ;
|
|
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(...SJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", NJ));
|
|
15973
15973
|
else {
|
|
15974
|
-
let e4 = t2.replace("%s",
|
|
15974
|
+
let e4 = t2.replace("%s", NJ).match(/\[([^\]]+)\]/);
|
|
15975
15975
|
if (e4) {
|
|
15976
15976
|
let [t3, n2] = e4[1].split("=");
|
|
15977
|
-
n2 ||
|
|
15978
|
-
M.removeAttribute(t3.replace(
|
|
15977
|
+
n2 || SJ.forEach((e5) => {
|
|
15978
|
+
M.removeAttribute(t3.replace(NJ, e5));
|
|
15979
15979
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15980
|
-
} else M.setAttribute(t2,
|
|
15980
|
+
} else M.setAttribute(t2, NJ);
|
|
15981
15981
|
}
|
|
15982
15982
|
}
|
|
15983
15983
|
}, [
|
|
15984
|
-
|
|
15985
|
-
|
|
15984
|
+
NJ,
|
|
15985
|
+
FJ,
|
|
15986
15986
|
M,
|
|
15987
|
-
|
|
15987
|
+
SJ
|
|
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
|
+
NJ,
|
|
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 IJ = import_react.useMemo(() => ({
|
|
16007
|
+
allColorSchemes: SJ,
|
|
16008
|
+
colorScheme: NJ,
|
|
16009
|
+
darkColorScheme: kJ,
|
|
16010
|
+
lightColorScheme: OJ,
|
|
16011
|
+
mode: MJ,
|
|
16012
|
+
setColorScheme: jJ,
|
|
16013
|
+
setMode: EJ,
|
|
16014
|
+
systemMode: DJ
|
|
16015
16015
|
}), [
|
|
16016
|
-
|
|
16017
|
-
|
|
16016
|
+
SJ,
|
|
16017
|
+
NJ,
|
|
16018
|
+
kJ,
|
|
16018
16019
|
OJ,
|
|
16019
|
-
|
|
16020
|
+
MJ,
|
|
16020
16021
|
jJ,
|
|
16021
|
-
AJ,
|
|
16022
|
-
TJ,
|
|
16023
16022
|
EJ,
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16023
|
+
DJ,
|
|
16024
|
+
PJ.colorSchemeSelector
|
|
16025
|
+
]), LJ = true;
|
|
16026
|
+
(z || _J.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === bJ) && (LJ = false);
|
|
16027
|
+
let RJ = (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: gJ ? t : void 0,
|
|
16031
|
+
theme: PJ,
|
|
16032
16032
|
children: d2
|
|
16033
16033
|
}),
|
|
16034
|
-
|
|
16035
|
-
styles: ((_d =
|
|
16034
|
+
LJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16035
|
+
styles: ((_d = PJ.generateStyleSheets) == null ? void 0 : _d.call(PJ)) || []
|
|
16036
16036
|
})
|
|
16037
16037
|
]
|
|
16038
16038
|
});
|
|
16039
|
-
return $ ?
|
|
16040
|
-
value:
|
|
16041
|
-
children:
|
|
16039
|
+
return $ ? RJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16040
|
+
value: IJ,
|
|
16041
|
+
children: RJ
|
|
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: hJ, onKeyDown: gJ, onKeyUp: _J, placeholder: vJ, readOnly: yJ, renderSuffix: bJ, rows: xJ, size: SJ, slotProps: CJ = {}, slots: wJ = {}, startAdornment: TJ, type: EJ = "text", value: DJ, ...OJ } = n, kJ = A.value == null ? DJ : A.value, { current: AJ } = import_react.useRef(kJ != null), jJ = import_react.useRef(), MJ = import_react.useCallback((e2) => {
|
|
17542
|
+
}, []), NJ = useForkRef_default(jJ, M, A.ref, MJ), [PJ, FJ] = import_react.useState(false), IJ = useFormControl(), LJ = formControlState({
|
|
17543
17543
|
props: n,
|
|
17544
|
-
muiFormControl:
|
|
17544
|
+
muiFormControl: IJ,
|
|
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
|
+
LJ.focused = IJ ? IJ.focused : PJ, import_react.useEffect(() => {
|
|
17556
|
+
!IJ && _ && PJ && (FJ(false), J && J());
|
|
17557
17557
|
}, [
|
|
17558
|
-
|
|
17558
|
+
IJ,
|
|
17559
17559
|
_,
|
|
17560
|
-
|
|
17560
|
+
PJ,
|
|
17561
17561
|
J
|
|
17562
17562
|
]);
|
|
17563
|
-
let
|
|
17564
|
-
isFilled(e2) ?
|
|
17563
|
+
let RJ = IJ && IJ.onFilled, zJ = IJ && IJ.onEmpty, BJ = import_react.useCallback((e2) => {
|
|
17564
|
+
isFilled(e2) ? RJ && RJ() : zJ && zJ();
|
|
17565
17565
|
}, [
|
|
17566
|
-
|
|
17567
|
-
|
|
17566
|
+
RJ,
|
|
17567
|
+
zJ
|
|
17568
17568
|
]);
|
|
17569
17569
|
useEnhancedEffect_default$1(() => {
|
|
17570
|
-
|
|
17571
|
-
value:
|
|
17570
|
+
AJ && BJ({
|
|
17571
|
+
value: kJ
|
|
17572
17572
|
});
|
|
17573
17573
|
}, [
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17574
|
+
kJ,
|
|
17575
|
+
BJ,
|
|
17576
|
+
AJ
|
|
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 VJ = (e2) => {
|
|
17579
|
+
hJ && hJ(e2), A.onFocus && A.onFocus(e2), IJ && IJ.onFocus ? IJ.onFocus(e2) : FJ(true);
|
|
17580
|
+
}, HJ = (e2) => {
|
|
17581
|
+
J && J(e2), A.onBlur && A.onBlur(e2), IJ && IJ.onBlur ? IJ.onBlur(e2) : FJ(false);
|
|
17582
|
+
}, UJ = (e2, ...t2) => {
|
|
17583
|
+
if (!AJ) {
|
|
17584
|
+
let t3 = e2.target || jJ.current;
|
|
17585
17585
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17586
|
-
|
|
17586
|
+
BJ({
|
|
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
|
+
BJ(jJ.current);
|
|
17594
17594
|
}, []);
|
|
17595
|
-
let
|
|
17596
|
-
|
|
17597
|
-
},
|
|
17598
|
-
K &&
|
|
17595
|
+
let WJ = (e2) => {
|
|
17596
|
+
jJ.current && e2.currentTarget === e2.target && jJ.current.focus(), $ && $(e2);
|
|
17597
|
+
}, GJ = O, KJ = A;
|
|
17598
|
+
K && GJ === "input" && (KJ = xJ ? {
|
|
17599
17599
|
type: void 0,
|
|
17600
|
-
minRows:
|
|
17601
|
-
maxRows:
|
|
17602
|
-
...
|
|
17600
|
+
minRows: xJ,
|
|
17601
|
+
maxRows: xJ,
|
|
17602
|
+
...KJ
|
|
17603
17603
|
} : {
|
|
17604
17604
|
type: void 0,
|
|
17605
17605
|
maxRows: z,
|
|
17606
17606
|
minRows: U,
|
|
17607
|
-
...
|
|
17608
|
-
},
|
|
17609
|
-
let
|
|
17610
|
-
|
|
17607
|
+
...KJ
|
|
17608
|
+
}, GJ = TextareaAutosize_default);
|
|
17609
|
+
let qJ = (e2) => {
|
|
17610
|
+
BJ(e2.animationName === "mui-auto-fill-cancel" ? jJ.current : {
|
|
17611
17611
|
value: "x"
|
|
17612
17612
|
});
|
|
17613
17613
|
};
|
|
17614
17614
|
import_react.useEffect(() => {
|
|
17615
|
-
|
|
17615
|
+
IJ && IJ.setAdornedStart(!!TJ);
|
|
17616
17616
|
}, [
|
|
17617
|
-
|
|
17618
|
-
|
|
17617
|
+
IJ,
|
|
17618
|
+
TJ
|
|
17619
17619
|
]);
|
|
17620
|
-
let
|
|
17620
|
+
let JJ = {
|
|
17621
17621
|
...n,
|
|
17622
|
-
color:
|
|
17623
|
-
disabled:
|
|
17622
|
+
color: LJ.color || "primary",
|
|
17623
|
+
disabled: LJ.disabled,
|
|
17624
17624
|
endAdornment: y,
|
|
17625
|
-
error:
|
|
17626
|
-
focused:
|
|
17627
|
-
formControl:
|
|
17625
|
+
error: LJ.error,
|
|
17626
|
+
focused: LJ.focused,
|
|
17627
|
+
formControl: IJ,
|
|
17628
17628
|
fullWidth: w,
|
|
17629
|
-
hiddenLabel:
|
|
17629
|
+
hiddenLabel: LJ.hiddenLabel,
|
|
17630
17630
|
multiline: K,
|
|
17631
|
-
size:
|
|
17632
|
-
startAdornment:
|
|
17633
|
-
type:
|
|
17634
|
-
},
|
|
17635
|
-
return
|
|
17636
|
-
...
|
|
17637
|
-
...
|
|
17631
|
+
size: LJ.size,
|
|
17632
|
+
startAdornment: TJ,
|
|
17633
|
+
type: EJ
|
|
17634
|
+
}, YJ = useUtilityClasses(JJ), XJ = wJ.root || d.Root || InputBaseRoot, ZJ = CJ.root || f.root || {}, QJ = wJ.input || d.Input || InputBaseInput;
|
|
17635
|
+
return KJ = {
|
|
17636
|
+
...KJ,
|
|
17637
|
+
...CJ.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)(XJ, {
|
|
17642
|
+
...ZJ,
|
|
17643
17643
|
ref: t,
|
|
17644
|
-
onClick:
|
|
17645
|
-
...
|
|
17646
|
-
...!isHostComponent_default(
|
|
17644
|
+
onClick: WJ,
|
|
17645
|
+
...OJ,
|
|
17646
|
+
...!isHostComponent_default(XJ) && {
|
|
17647
17647
|
ownerState: {
|
|
17648
|
-
...
|
|
17649
|
-
...
|
|
17648
|
+
...JJ,
|
|
17649
|
+
...ZJ.ownerState
|
|
17650
17650
|
}
|
|
17651
17651
|
},
|
|
17652
|
-
className: clsx_default(
|
|
17652
|
+
className: clsx_default(YJ.root, ZJ.className, s, yJ && "MuiInputBase-readOnly"),
|
|
17653
17653
|
children: [
|
|
17654
|
-
|
|
17654
|
+
TJ,
|
|
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)(QJ, {
|
|
17658
|
+
"aria-invalid": LJ.error,
|
|
17659
17659
|
"aria-describedby": i,
|
|
17660
17660
|
autoComplete: a,
|
|
17661
17661
|
autoFocus: o,
|
|
17662
17662
|
defaultValue: h,
|
|
17663
|
-
disabled:
|
|
17663
|
+
disabled: LJ.disabled,
|
|
17664
17664
|
id: E,
|
|
17665
|
-
onAnimationStart:
|
|
17665
|
+
onAnimationStart: qJ,
|
|
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: vJ,
|
|
17668
|
+
readOnly: yJ,
|
|
17669
|
+
required: LJ.required,
|
|
17670
|
+
rows: xJ,
|
|
17671
|
+
value: kJ,
|
|
17672
|
+
onKeyDown: gJ,
|
|
17673
|
+
onKeyUp: _J,
|
|
17674
|
+
type: EJ,
|
|
17675
|
+
...KJ,
|
|
17676
|
+
...!isHostComponent_default(QJ) && {
|
|
17677
|
+
as: GJ,
|
|
17678
17678
|
ownerState: {
|
|
17679
|
-
...
|
|
17680
|
-
...
|
|
17679
|
+
...JJ,
|
|
17680
|
+
...KJ.ownerState
|
|
17681
17681
|
}
|
|
17682
17682
|
},
|
|
17683
|
-
ref:
|
|
17684
|
-
className: clsx_default(
|
|
17685
|
-
onBlur:
|
|
17686
|
-
onChange:
|
|
17687
|
-
onFocus:
|
|
17683
|
+
ref: NJ,
|
|
17684
|
+
className: clsx_default(YJ.input, KJ.className, yJ && "MuiInputBase-readOnly"),
|
|
17685
|
+
onBlur: HJ,
|
|
17686
|
+
onChange: UJ,
|
|
17687
|
+
onFocus: VJ
|
|
17688
17688
|
})
|
|
17689
17689
|
}),
|
|
17690
17690
|
y,
|
|
17691
|
-
|
|
17692
|
-
...
|
|
17693
|
-
startAdornment:
|
|
17691
|
+
bJ ? bJ({
|
|
17692
|
+
...LJ,
|
|
17693
|
+
startAdornment: TJ
|
|
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), hJ = useTextColor(), gJ = useJsonViewerStore((e2) => e2.colorspace.base0C), _J = useJsonViewerStore((e2) => e2.colorspace.base0A), vJ = useJsonViewerStore((e2) => e2.displayComma), yJ = useJsonViewerStore((e2) => e2.quotesOnKeys), bJ = useJsonViewerStore((e2) => e2.rootName), xJ = U === t, SJ = Number.isInteger(Number(A)), CJ = useJsonViewerStore((e2) => e2.enableAdd), wJ = useJsonViewerStore((e2) => e2.onAdd), TJ = (0, import_react.useMemo)(() => !wJ || a !== void 0 || CJ === false || v === false ? false : typeof CJ == "function" ? !!CJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18770
|
+
wJ,
|
|
18771
18771
|
a,
|
|
18772
18772
|
i,
|
|
18773
|
-
|
|
18773
|
+
CJ,
|
|
18774
18774
|
v,
|
|
18775
18775
|
t
|
|
18776
|
-
]),
|
|
18777
|
-
|
|
18776
|
+
]), EJ = useJsonViewerStore((e2) => e2.enableDelete), DJ = useJsonViewerStore((e2) => e2.onDelete), OJ = (0, import_react.useMemo)(() => !DJ || a !== void 0 || xJ || EJ === false || v === false ? false : typeof EJ == "function" ? !!EJ(i, t) : EJ, [
|
|
18777
|
+
DJ,
|
|
18778
18778
|
a,
|
|
18779
|
-
|
|
18779
|
+
xJ,
|
|
18780
18780
|
i,
|
|
18781
|
-
|
|
18781
|
+
EJ,
|
|
18782
18782
|
v,
|
|
18783
18783
|
t
|
|
18784
|
-
]),
|
|
18785
|
-
|
|
18784
|
+
]), kJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: AJ, copied: jJ } = useClipboard(), MJ = useJsonViewerStore((e2) => e2.highlightUpdates), NJ = (0, import_react.useMemo)(() => !MJ || 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
|
+
MJ,
|
|
18786
18786
|
n,
|
|
18787
18787
|
t
|
|
18788
|
-
]),
|
|
18788
|
+
]), PJ = (0, import_react.useRef)();
|
|
18789
18789
|
(0, import_react.useEffect)(() => {
|
|
18790
|
-
|
|
18790
|
+
PJ.current && NJ && "animate" in PJ.current && PJ.current.animate([
|
|
18791
18791
|
{
|
|
18792
|
-
backgroundColor:
|
|
18792
|
+
backgroundColor: _J
|
|
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
|
+
_J,
|
|
18803
|
+
NJ,
|
|
18804
18804
|
n,
|
|
18805
18805
|
t
|
|
18806
18806
|
]);
|
|
18807
|
-
let
|
|
18807
|
+
let FJ = (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
|
+
]), IJ = (0, import_react.useCallback)(() => {
|
|
18813
18813
|
Q(false), E("");
|
|
18814
18814
|
}, [
|
|
18815
18815
|
Q,
|
|
18816
18816
|
E
|
|
18817
|
-
]),
|
|
18817
|
+
]), LJ = (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
|
+
]), RJ = (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: IJ
|
|
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: () => LJ(w)
|
|
18844
18844
|
})
|
|
18845
18845
|
})
|
|
18846
18846
|
]
|
|
18847
18847
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18848
18848
|
children: [
|
|
18849
|
-
|
|
18849
|
+
kJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18850
18850
|
onClick: (e2) => {
|
|
18851
18851
|
e2.preventDefault();
|
|
18852
18852
|
try {
|
|
18853
|
-
|
|
18853
|
+
AJ(i, t, copyString);
|
|
18854
18854
|
} catch (e3) {
|
|
18855
18855
|
console.error(e3);
|
|
18856
18856
|
}
|
|
18857
18857
|
},
|
|
18858
|
-
children:
|
|
18858
|
+
children: jJ ? (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: FJ,
|
|
18870
18870
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18871
18871
|
sx: {
|
|
18872
18872
|
fontSize: ".8rem"
|
|
18873
18873
|
}
|
|
18874
18874
|
})
|
|
18875
18875
|
}),
|
|
18876
|
-
|
|
18876
|
+
TJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18877
18877
|
onClick: (e2) => {
|
|
18878
|
-
e2.preventDefault(),
|
|
18878
|
+
e2.preventDefault(), wJ == null ? void 0 : wJ(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
|
+
OJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18887
18887
|
onClick: (e2) => {
|
|
18888
|
-
e2.preventDefault(),
|
|
18888
|
+
e2.preventDefault(), DJ == null ? void 0 : DJ(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
|
+
jJ,
|
|
18901
18902
|
AJ,
|
|
18902
|
-
kJ,
|
|
18903
18903
|
S,
|
|
18904
18904
|
J,
|
|
18905
|
+
kJ,
|
|
18906
|
+
TJ,
|
|
18905
18907
|
OJ,
|
|
18906
|
-
wJ,
|
|
18907
|
-
DJ,
|
|
18908
18908
|
w,
|
|
18909
18909
|
i,
|
|
18910
18910
|
t,
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
PJ,
|
|
18911
|
+
wJ,
|
|
18912
|
+
DJ,
|
|
18914
18913
|
FJ,
|
|
18915
|
-
IJ
|
|
18916
|
-
|
|
18914
|
+
IJ,
|
|
18915
|
+
LJ
|
|
18916
|
+
]), zJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18917
18917
|
t
|
|
18918
|
-
]),
|
|
18918
|
+
]), BJ = !zJ && !!(c && d), VJ = useJsonViewerStore((e2) => e2.keyRenderer), HJ = (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: hJ,
|
|
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() || zJ || q((e3) => !e3);
|
|
18956
18956
|
}, [
|
|
18957
|
-
|
|
18957
|
+
zJ,
|
|
18958
18958
|
q
|
|
18959
18959
|
]),
|
|
18960
18960
|
children: [
|
|
18961
|
-
|
|
18961
|
+
BJ ? 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: PJ,
|
|
18980
18980
|
className: "data-key-key",
|
|
18981
18981
|
component: "span",
|
|
18982
|
-
children:
|
|
18982
|
+
children: xJ && O === 0 ? bJ === false ? null : yJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18983
18983
|
children: [
|
|
18984
18984
|
'"',
|
|
18985
|
-
|
|
18985
|
+
bJ,
|
|
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: bJ
|
|
18990
|
+
}) : VJ.when(HJ) ? (0, import_jsx_runtime.jsx)(VJ, {
|
|
18991
|
+
...HJ
|
|
18992
|
+
}) : a === void 0 && (SJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18993
18993
|
component: "span",
|
|
18994
18994
|
style: {
|
|
18995
|
-
color:
|
|
18996
|
-
userSelect:
|
|
18995
|
+
color: gJ,
|
|
18996
|
+
userSelect: SJ ? "none" : "auto"
|
|
18997
18997
|
},
|
|
18998
18998
|
children: A
|
|
18999
|
-
}) :
|
|
18999
|
+
}) : yJ ? (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
|
+
xJ ? bJ !== 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: SJ ? "none" : "auto"
|
|
19023
19023
|
},
|
|
19024
19024
|
children: ":"
|
|
19025
19025
|
}),
|
|
19026
19026
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19027
|
-
...
|
|
19027
|
+
...HJ
|
|
19028
19028
|
}),
|
|
19029
|
-
I &&
|
|
19029
|
+
I && BJ && K && RJ
|
|
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: IJ,
|
|
19037
|
+
commitEditing: LJ
|
|
19038
19038
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19039
|
-
...
|
|
19039
|
+
...HJ
|
|
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
|
+
...HJ
|
|
19047
19047
|
}),
|
|
19048
|
-
!o &&
|
|
19048
|
+
!o && vJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19049
19049
|
children: ","
|
|
19050
19050
|
}),
|
|
19051
|
-
I &&
|
|
19052
|
-
I && !
|
|
19053
|
-
!I && J &&
|
|
19051
|
+
I && BJ && !K && RJ,
|
|
19052
|
+
I && !BJ && RJ,
|
|
19053
|
+
!I && J && RJ
|
|
19054
19054
|
]
|
|
19055
19055
|
});
|
|
19056
19056
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20130,18 +20130,18 @@ ${n}` : "Please fix this error.";
|
|
|
20130
20130
|
}
|
|
20131
20131
|
let y, S, w, E, O, A;
|
|
20132
20132
|
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), $ = n.filter(_temp15),
|
|
20134
|
-
t[17] === s ?
|
|
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), $ = n.filter(_temp15), gJ = n.filter(_temp16), _J = n.filter(_temp17), vJ = n.filter(_temp18), yJ;
|
|
20134
|
+
t[17] === s ? yJ = t[18] : (yJ = () => {
|
|
20135
20135
|
s.openApplication("scratchpad");
|
|
20136
|
-
}, t[17] = s, t[18] =
|
|
20137
|
-
let
|
|
20136
|
+
}, t[17] = s, t[18] = yJ);
|
|
20137
|
+
let bJ = yJ, xJ = () => {
|
|
20138
20138
|
let t2 = [];
|
|
20139
|
-
if (
|
|
20140
|
-
let e3 =
|
|
20139
|
+
if (gJ.length > 0 || _J.length > 0) {
|
|
20140
|
+
let e3 = gJ.some(_temp19), n2 = !e3 && gJ.some(_temp20);
|
|
20141
20141
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20142
20142
|
children: [
|
|
20143
|
-
|
|
20144
|
-
|
|
20143
|
+
gJ.map(_temp21),
|
|
20144
|
+
_J.map(_temp22),
|
|
20145
20145
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20146
20146
|
size: "xs",
|
|
20147
20147
|
variant: "outline",
|
|
@@ -20172,8 +20172,8 @@ ${n}` : "Please fix this error.";
|
|
|
20172
20172
|
}),
|
|
20173
20173
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20174
20174
|
errors: [
|
|
20175
|
-
...
|
|
20176
|
-
...
|
|
20175
|
+
...gJ,
|
|
20176
|
+
..._J
|
|
20177
20177
|
],
|
|
20178
20178
|
cellId: i
|
|
20179
20179
|
})
|
|
@@ -20334,7 +20334,7 @@ ${n}` : "Please fix this error.";
|
|
|
20334
20334
|
size: "xs",
|
|
20335
20335
|
variant: "link",
|
|
20336
20336
|
className: "my-2 font-normal mx-0 px-0",
|
|
20337
|
-
onClick:
|
|
20337
|
+
onClick: bJ,
|
|
20338
20338
|
children: [
|
|
20339
20339
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20340
20340
|
className: "h-3"
|
|
@@ -20533,18 +20533,18 @@ ${n}` : "Please fix this error.";
|
|
|
20533
20533
|
cellId: i
|
|
20534
20534
|
})
|
|
20535
20535
|
]
|
|
20536
|
-
}, "ancestor-stopped")),
|
|
20536
|
+
}, "ancestor-stopped")), vJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20537
20537
|
children: [
|
|
20538
|
-
|
|
20538
|
+
vJ.map(_temp35),
|
|
20539
20539
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20540
|
-
errors:
|
|
20540
|
+
errors: vJ,
|
|
20541
20541
|
cellId: i,
|
|
20542
20542
|
className: "mt-2.5"
|
|
20543
20543
|
})
|
|
20544
20544
|
]
|
|
20545
20545
|
}, "sql-errors")), t2;
|
|
20546
|
-
},
|
|
20547
|
-
t[19] === v ?
|
|
20546
|
+
}, SJ;
|
|
20547
|
+
t[19] === v ? SJ = t[20] : (SJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20548
20548
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20549
20549
|
children: [
|
|
20550
20550
|
v,
|
|
@@ -20556,22 +20556,22 @@ ${n}` : "Please fix this error.";
|
|
|
20556
20556
|
})
|
|
20557
20557
|
})
|
|
20558
20558
|
]
|
|
20559
|
-
}), t[19] = v, t[20] =
|
|
20560
|
-
let
|
|
20561
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20559
|
+
}), t[19] = v, t[20] = SJ);
|
|
20560
|
+
let CJ;
|
|
20561
|
+
t[21] !== _ || t[22] !== d ? (CJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20562
20562
|
className: `font-code font-medium ${_}`,
|
|
20563
20563
|
children: d
|
|
20564
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20565
|
-
let
|
|
20566
|
-
t[24] !==
|
|
20564
|
+
}), t[21] = _, t[22] = d, t[23] = CJ) : CJ = t[23];
|
|
20565
|
+
let wJ;
|
|
20566
|
+
t[24] !== SJ || t[25] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20567
20567
|
className: "space-y-0.5",
|
|
20568
20568
|
children: [
|
|
20569
|
-
|
|
20570
|
-
|
|
20569
|
+
SJ,
|
|
20570
|
+
CJ
|
|
20571
20571
|
]
|
|
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 =
|
|
20572
|
+
}), t[24] = SJ, t[25] = CJ, t[26] = wJ) : wJ = t[26];
|
|
20573
|
+
let TJ = wJ;
|
|
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 = TJ, S = "flex flex-col gap-4", w = xJ(), 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
20575
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20576
20576
|
let M;
|
|
20577
20577
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -26114,26 +26114,27 @@ ${n}` : "Please fix this error.";
|
|
|
26114
26114
|
enableHiding: false
|
|
26115
26115
|
}), M;
|
|
26116
26116
|
};
|
|
26117
|
-
var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a,
|
|
26118
|
-
let
|
|
26117
|
+
var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, scrollable: c = false, wrapped: d, children: f, buttonText: _ }) => {
|
|
26118
|
+
let v = (0, import_react.useRef)(null), y = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
|
|
26119
26119
|
return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
|
|
26120
26120
|
container: null,
|
|
26121
26121
|
children: (0, import_jsx_runtime.jsxs)(Popover, {
|
|
26122
26122
|
children: [
|
|
26123
26123
|
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
26124
|
+
ref: v,
|
|
26124
26125
|
className: cn(e, "max-w-fit outline-hidden"),
|
|
26125
26126
|
onClick: t,
|
|
26126
26127
|
onMouseDown: (e2) => {
|
|
26127
26128
|
e2.stopPropagation();
|
|
26128
26129
|
},
|
|
26129
26130
|
children: (0, import_jsx_runtime.jsxs)("span", {
|
|
26130
|
-
className: cn("cursor-pointer hover:text-link",
|
|
26131
|
+
className: cn("cursor-pointer hover:text-link", d && "whitespace-pre-wrap min-w-[200px]"),
|
|
26131
26132
|
title: n,
|
|
26132
26133
|
children: [
|
|
26133
26134
|
i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
|
|
26134
26135
|
value: i.leading
|
|
26135
26136
|
}) : null,
|
|
26136
|
-
|
|
26137
|
+
y,
|
|
26137
26138
|
i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
|
|
26138
26139
|
value: i.trailing
|
|
26139
26140
|
}) : null
|
|
@@ -26141,34 +26142,54 @@ ${n}` : "Please fix this error.";
|
|
|
26141
26142
|
})
|
|
26142
26143
|
}),
|
|
26143
26144
|
(0, import_jsx_runtime.jsxs)(PopoverContent, {
|
|
26144
|
-
className: a,
|
|
26145
|
+
className: cn(a, c && "flex flex-col overflow-hidden"),
|
|
26145
26146
|
align: "start",
|
|
26146
26147
|
alignOffset: 10,
|
|
26148
|
+
onInteractOutside: (e2) => {
|
|
26149
|
+
var _a2;
|
|
26150
|
+
let t2 = Events.composedTarget(e2.detail.originalEvent);
|
|
26151
|
+
((_a2 = v.current) == null ? void 0 : _a2.contains(t2)) && e2.preventDefault();
|
|
26152
|
+
},
|
|
26147
26153
|
children: [
|
|
26148
26154
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
26149
|
-
className: "
|
|
26155
|
+
className: cn("flex -mt-3 -mr-2", c ? "shrink-0 justify-end" : "float-right"),
|
|
26150
26156
|
children: [
|
|
26151
26157
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
26152
26158
|
value: n,
|
|
26153
|
-
className: "
|
|
26159
|
+
className: "size-3 hover:text-link",
|
|
26160
|
+
buttonClassName: "flex size-5 items-center justify-center",
|
|
26154
26161
|
tooltip: false
|
|
26155
26162
|
}),
|
|
26156
26163
|
(0, import_jsx_runtime.jsx)(PopoverClose$1, {
|
|
26164
|
+
asChild: true,
|
|
26157
26165
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
26158
26166
|
variant: "link",
|
|
26159
26167
|
size: "xs",
|
|
26160
|
-
|
|
26168
|
+
className: cn("size-5 p-0", !_ && "ml-1.5 mr-1"),
|
|
26169
|
+
"aria-label": "Close",
|
|
26170
|
+
children: _ ?? "Close"
|
|
26161
26171
|
})
|
|
26162
26172
|
})
|
|
26163
26173
|
]
|
|
26164
26174
|
}),
|
|
26165
|
-
|
|
26175
|
+
c ? (0, import_jsx_runtime.jsx)("div", {
|
|
26176
|
+
className: "min-h-0 overflow-auto",
|
|
26177
|
+
children: f
|
|
26178
|
+
}) : f
|
|
26166
26179
|
]
|
|
26167
26180
|
})
|
|
26168
26181
|
]
|
|
26169
26182
|
})
|
|
26170
26183
|
});
|
|
26171
26184
|
};
|
|
26185
|
+
function parseJsonDocument(e) {
|
|
26186
|
+
let t = e.trim(), n = t[0], i = t[t.length - 1];
|
|
26187
|
+
if (n === "{" && i === "}" || n === "[" && i === "]") try {
|
|
26188
|
+
return JSON.parse(t);
|
|
26189
|
+
} catch {
|
|
26190
|
+
return;
|
|
26191
|
+
}
|
|
26192
|
+
}
|
|
26172
26193
|
function isPrimitiveOrNullish(e) {
|
|
26173
26194
|
return e == null ? true : typeof e != "object";
|
|
26174
26195
|
}
|
|
@@ -26255,8 +26276,25 @@ ${n}` : "Please fix this error.";
|
|
|
26255
26276
|
children: c.toString()
|
|
26256
26277
|
});
|
|
26257
26278
|
if (typeof c == "string") {
|
|
26258
|
-
let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 =
|
|
26259
|
-
|
|
26279
|
+
let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 = a.length > 0 || h2.length > 0, y2 = parseJsonDocument(f2);
|
|
26280
|
+
if (y2 !== void 0) return (0, import_jsx_runtime.jsx)(PopoutColumn, {
|
|
26281
|
+
cellStyles: s,
|
|
26282
|
+
selectCell: i,
|
|
26283
|
+
rawStringValue: n2,
|
|
26284
|
+
edges: {
|
|
26285
|
+
leading: a,
|
|
26286
|
+
trailing: h2
|
|
26287
|
+
},
|
|
26288
|
+
wrapped: _,
|
|
26289
|
+
children: (0, import_jsx_runtime.jsx)(JsonOutput, {
|
|
26290
|
+
data: y2,
|
|
26291
|
+
format: "tree",
|
|
26292
|
+
valueTypes: "json",
|
|
26293
|
+
className: "max-h-64"
|
|
26294
|
+
})
|
|
26295
|
+
});
|
|
26296
|
+
let S = parseContent(v2 ? f2 : n2);
|
|
26297
|
+
return S.every((e2) => e2.type !== "text") || n2.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
|
|
26260
26298
|
onClick: i,
|
|
26261
26299
|
className: cn(s, _ && "whitespace-pre-wrap min-w-[200px]"),
|
|
26262
26300
|
children: [
|
|
@@ -26264,7 +26302,7 @@ ${n}` : "Please fix this error.";
|
|
|
26264
26302
|
value: a
|
|
26265
26303
|
}),
|
|
26266
26304
|
(0, import_jsx_runtime.jsx)(UrlDetector, {
|
|
26267
|
-
parts:
|
|
26305
|
+
parts: S
|
|
26268
26306
|
}),
|
|
26269
26307
|
(0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
|
|
26270
26308
|
value: h2
|
|
@@ -26278,9 +26316,10 @@ ${n}` : "Please fix this error.";
|
|
|
26278
26316
|
leading: a,
|
|
26279
26317
|
trailing: h2
|
|
26280
26318
|
},
|
|
26281
|
-
contentClassName: "max-h-64
|
|
26282
|
-
|
|
26319
|
+
contentClassName: "max-h-64 whitespace-pre-wrap wrap-break-word text-sm w-96",
|
|
26320
|
+
scrollable: true,
|
|
26283
26321
|
wrapped: _,
|
|
26322
|
+
buttonText: "X",
|
|
26284
26323
|
children: (0, import_jsx_runtime.jsx)(MarkdownUrlDetector, {
|
|
26285
26324
|
content: n2,
|
|
26286
26325
|
parts: parseContent(n2)
|
|
@@ -26653,7 +26692,7 @@ ${n}` : "Please fix this error.";
|
|
|
26653
26692
|
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 }) {
|
|
26654
26693
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26655
26694
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26656
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
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), hJ = (0, import_react.useRef)({
|
|
26657
26696
|
callbacks: {
|
|
26658
26697
|
onCollapse: f,
|
|
26659
26698
|
onExpand: h,
|
|
@@ -26673,12 +26712,12 @@ ${n}` : "Please fix this error.";
|
|
|
26673
26712
|
(0, import_react.useRef)({
|
|
26674
26713
|
didLogMissingDefaultSizeWarning: false
|
|
26675
26714
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26676
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26715
|
+
let { callbacks: e2, constraints: t2 } = hJ.current, o2 = {
|
|
26677
26716
|
...t2
|
|
26678
26717
|
};
|
|
26679
|
-
|
|
26718
|
+
hJ.current.id = $, hJ.current.idIsFromProps = s !== void 0, hJ.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(hJ.current, o2);
|
|
26680
26719
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26681
|
-
let e2 =
|
|
26720
|
+
let e2 = hJ.current;
|
|
26682
26721
|
return q(e2), () => {
|
|
26683
26722
|
Q(e2);
|
|
26684
26723
|
};
|
|
@@ -26689,25 +26728,25 @@ ${n}` : "Please fix this error.";
|
|
|
26689
26728
|
Q
|
|
26690
26729
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26691
26730
|
collapse: () => {
|
|
26692
|
-
O(
|
|
26731
|
+
O(hJ.current);
|
|
26693
26732
|
},
|
|
26694
26733
|
expand: (e2) => {
|
|
26695
|
-
A(
|
|
26734
|
+
A(hJ.current, e2);
|
|
26696
26735
|
},
|
|
26697
26736
|
getId() {
|
|
26698
26737
|
return $;
|
|
26699
26738
|
},
|
|
26700
26739
|
getSize() {
|
|
26701
|
-
return M(
|
|
26740
|
+
return M(hJ.current);
|
|
26702
26741
|
},
|
|
26703
26742
|
isCollapsed() {
|
|
26704
|
-
return U(
|
|
26743
|
+
return U(hJ.current);
|
|
26705
26744
|
},
|
|
26706
26745
|
isExpanded() {
|
|
26707
|
-
return !U(
|
|
26746
|
+
return !U(hJ.current);
|
|
26708
26747
|
},
|
|
26709
26748
|
resize: (e2) => {
|
|
26710
|
-
J(
|
|
26749
|
+
J(hJ.current, e2);
|
|
26711
26750
|
}
|
|
26712
26751
|
}), [
|
|
26713
26752
|
O,
|
|
@@ -26717,21 +26756,21 @@ ${n}` : "Please fix this error.";
|
|
|
26717
26756
|
$,
|
|
26718
26757
|
J
|
|
26719
26758
|
]);
|
|
26720
|
-
let
|
|
26759
|
+
let gJ = I(hJ.current, a);
|
|
26721
26760
|
return (0, import_react.createElement)(S, {
|
|
26722
26761
|
...w,
|
|
26723
26762
|
children: e,
|
|
26724
26763
|
className: t,
|
|
26725
26764
|
id: $,
|
|
26726
26765
|
style: {
|
|
26727
|
-
...
|
|
26766
|
+
...gJ,
|
|
26728
26767
|
...y
|
|
26729
26768
|
},
|
|
26730
26769
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26731
26770
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26732
26771
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26733
26772
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26734
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26773
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + gJ.flexGrow).toFixed(1)
|
|
26735
26774
|
});
|
|
26736
26775
|
}
|
|
26737
26776
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27516,13 +27555,13 @@ ${n}` : "Please fix this error.";
|
|
|
27516
27555
|
}, [
|
|
27517
27556
|
S,
|
|
27518
27557
|
E
|
|
27519
|
-
]),
|
|
27558
|
+
]), hJ = (0, import_react.useCallback)((e2) => {
|
|
27520
27559
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27521
27560
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27522
|
-
}, []),
|
|
27561
|
+
}, []), gJ = (0, import_react.useCallback)((e2) => {
|
|
27523
27562
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27524
27563
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27525
|
-
}, []),
|
|
27564
|
+
}, []), _J = (0, import_react.useCallback)((e2) => {
|
|
27526
27565
|
let { panelDataArray: t2 } = K.current;
|
|
27527
27566
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27528
27567
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27554,7 +27593,7 @@ ${n}` : "Please fix this error.";
|
|
|
27554
27593
|
e2.layout = [];
|
|
27555
27594
|
};
|
|
27556
27595
|
}, []);
|
|
27557
|
-
let
|
|
27596
|
+
let vJ = (0, import_react.useCallback)((e2) => {
|
|
27558
27597
|
let t2 = false, n2 = y.current;
|
|
27559
27598
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27560
27599
|
n3.preventDefault();
|
|
@@ -27572,7 +27611,7 @@ ${n}` : "Please fix this error.";
|
|
|
27572
27611
|
}), I2 = !compareLayouts(f2, A2);
|
|
27573
27612
|
(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));
|
|
27574
27613
|
};
|
|
27575
|
-
}, []),
|
|
27614
|
+
}, []), yJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27576
27615
|
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);
|
|
27577
27616
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27578
27617
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27584,12 +27623,12 @@ ${n}` : "Please fix this error.";
|
|
|
27584
27623
|
trigger: "imperative-api"
|
|
27585
27624
|
});
|
|
27586
27625
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27587
|
-
}, []),
|
|
27626
|
+
}, []), bJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27588
27627
|
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);
|
|
27589
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27628
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || yJ(e2, s2) : h2 < f2 ? yJ(e2, f2) : h2 > d2 && yJ(e2, d2));
|
|
27590
27629
|
}, [
|
|
27591
|
-
|
|
27592
|
-
]),
|
|
27630
|
+
yJ
|
|
27631
|
+
]), xJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27593
27632
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27594
27633
|
if (!y.current) return;
|
|
27595
27634
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27601,14 +27640,14 @@ ${n}` : "Please fix this error.";
|
|
|
27601
27640
|
initialCursorPosition: o2,
|
|
27602
27641
|
initialLayout: i2
|
|
27603
27642
|
});
|
|
27604
|
-
}, []),
|
|
27643
|
+
}, []), SJ = (0, import_react.useCallback)(() => {
|
|
27605
27644
|
w(null);
|
|
27606
|
-
}, []),
|
|
27645
|
+
}, []), CJ = (0, import_react.useCallback)((e2) => {
|
|
27607
27646
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27608
27647
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27609
27648
|
}, [
|
|
27610
27649
|
A
|
|
27611
|
-
]),
|
|
27650
|
+
]), wJ = (0, import_react.useMemo)(() => ({
|
|
27612
27651
|
collapsePanel: q,
|
|
27613
27652
|
direction: i,
|
|
27614
27653
|
dragState: S,
|
|
@@ -27616,15 +27655,15 @@ ${n}` : "Please fix this error.";
|
|
|
27616
27655
|
getPanelSize: Q,
|
|
27617
27656
|
getPanelStyle: $,
|
|
27618
27657
|
groupId: v,
|
|
27619
|
-
isPanelCollapsed:
|
|
27620
|
-
isPanelExpanded:
|
|
27621
|
-
reevaluatePanelConstraints:
|
|
27622
|
-
registerPanel:
|
|
27623
|
-
registerResizeHandle:
|
|
27624
|
-
resizePanel:
|
|
27625
|
-
startDragging:
|
|
27626
|
-
stopDragging:
|
|
27627
|
-
unregisterPanel:
|
|
27658
|
+
isPanelCollapsed: hJ,
|
|
27659
|
+
isPanelExpanded: gJ,
|
|
27660
|
+
reevaluatePanelConstraints: bJ,
|
|
27661
|
+
registerPanel: _J,
|
|
27662
|
+
registerResizeHandle: vJ,
|
|
27663
|
+
resizePanel: yJ,
|
|
27664
|
+
startDragging: xJ,
|
|
27665
|
+
stopDragging: SJ,
|
|
27666
|
+
unregisterPanel: CJ,
|
|
27628
27667
|
panelGroupElement: y.current
|
|
27629
27668
|
}), [
|
|
27630
27669
|
q,
|
|
@@ -27634,16 +27673,16 @@ ${n}` : "Please fix this error.";
|
|
|
27634
27673
|
Q,
|
|
27635
27674
|
$,
|
|
27636
27675
|
v,
|
|
27637
|
-
mJ,
|
|
27638
27676
|
hJ,
|
|
27639
|
-
yJ,
|
|
27640
27677
|
gJ,
|
|
27678
|
+
bJ,
|
|
27641
27679
|
_J,
|
|
27642
27680
|
vJ,
|
|
27643
|
-
|
|
27681
|
+
yJ,
|
|
27644
27682
|
xJ,
|
|
27645
|
-
SJ
|
|
27646
|
-
|
|
27683
|
+
SJ,
|
|
27684
|
+
CJ
|
|
27685
|
+
]), TJ = {
|
|
27647
27686
|
display: "flex",
|
|
27648
27687
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27649
27688
|
height: "100%",
|
|
@@ -27651,7 +27690,7 @@ ${n}` : "Please fix this error.";
|
|
|
27651
27690
|
width: "100%"
|
|
27652
27691
|
};
|
|
27653
27692
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27654
|
-
value:
|
|
27693
|
+
value: wJ
|
|
27655
27694
|
}, (0, import_react.createElement)(h, {
|
|
27656
27695
|
..._,
|
|
27657
27696
|
children: t,
|
|
@@ -27659,7 +27698,7 @@ ${n}` : "Please fix this error.";
|
|
|
27659
27698
|
id: o,
|
|
27660
27699
|
ref: y,
|
|
27661
27700
|
style: {
|
|
27662
|
-
...
|
|
27701
|
+
...TJ,
|
|
27663
27702
|
...f
|
|
27664
27703
|
},
|
|
27665
27704
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27736,31 +27775,31 @@ ${n}` : "Please fix this error.";
|
|
|
27736
27775
|
});
|
|
27737
27776
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27738
27777
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27739
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
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"), [$, hJ] = (0, import_react.useState)(false), [gJ, _J] = (0, import_react.useState)(null), vJ = (0, import_react.useRef)({
|
|
27740
27779
|
state: J
|
|
27741
27780
|
});
|
|
27742
27781
|
useIsomorphicLayoutEffect$1(() => {
|
|
27743
|
-
|
|
27782
|
+
vJ.current.state = J;
|
|
27744
27783
|
}), (0, import_react.useEffect)(() => {
|
|
27745
|
-
if (n)
|
|
27784
|
+
if (n) _J(null);
|
|
27746
27785
|
else {
|
|
27747
27786
|
let e2 = I(q);
|
|
27748
|
-
|
|
27787
|
+
_J(() => e2);
|
|
27749
27788
|
}
|
|
27750
27789
|
}, [
|
|
27751
27790
|
n,
|
|
27752
27791
|
q,
|
|
27753
27792
|
I
|
|
27754
27793
|
]);
|
|
27755
|
-
let
|
|
27794
|
+
let yJ = (i == null ? void 0 : i.coarse) ?? 15, bJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27756
27795
|
(0, import_react.useEffect)(() => {
|
|
27757
|
-
if (n ||
|
|
27796
|
+
if (n || gJ == null) return;
|
|
27758
27797
|
let e2 = w.current;
|
|
27759
27798
|
assert(e2, "Element ref not attached");
|
|
27760
27799
|
let t2 = false;
|
|
27761
27800
|
return registerResizeHandle(q, e2, A, {
|
|
27762
|
-
coarse:
|
|
27763
|
-
fine:
|
|
27801
|
+
coarse: yJ,
|
|
27802
|
+
fine: bJ
|
|
27764
27803
|
}, (e3, n2, i2) => {
|
|
27765
27804
|
if (!n2) {
|
|
27766
27805
|
Q("inactive");
|
|
@@ -27774,8 +27813,8 @@ ${n}` : "Please fix this error.";
|
|
|
27774
27813
|
break;
|
|
27775
27814
|
}
|
|
27776
27815
|
case "move": {
|
|
27777
|
-
let { state: e4 } =
|
|
27778
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27816
|
+
let { state: e4 } = vJ.current;
|
|
27817
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), gJ(i2);
|
|
27779
27818
|
break;
|
|
27780
27819
|
}
|
|
27781
27820
|
case "up": {
|
|
@@ -27787,22 +27826,22 @@ ${n}` : "Please fix this error.";
|
|
|
27787
27826
|
}
|
|
27788
27827
|
});
|
|
27789
27828
|
}, [
|
|
27790
|
-
|
|
27829
|
+
yJ,
|
|
27791
27830
|
A,
|
|
27792
27831
|
n,
|
|
27793
|
-
|
|
27832
|
+
bJ,
|
|
27794
27833
|
I,
|
|
27795
27834
|
q,
|
|
27796
|
-
|
|
27835
|
+
gJ,
|
|
27797
27836
|
z,
|
|
27798
27837
|
U
|
|
27799
27838
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27800
27839
|
disabled: n,
|
|
27801
27840
|
handleId: q,
|
|
27802
|
-
resizeHandler:
|
|
27841
|
+
resizeHandler: gJ,
|
|
27803
27842
|
panelGroupElement: K
|
|
27804
27843
|
});
|
|
27805
|
-
let
|
|
27844
|
+
let xJ = {
|
|
27806
27845
|
touchAction: "none",
|
|
27807
27846
|
userSelect: "none"
|
|
27808
27847
|
};
|
|
@@ -27812,15 +27851,15 @@ ${n}` : "Please fix this error.";
|
|
|
27812
27851
|
className: t,
|
|
27813
27852
|
id: a,
|
|
27814
27853
|
onBlur: () => {
|
|
27815
|
-
|
|
27854
|
+
hJ(false), o == null ? void 0 : o();
|
|
27816
27855
|
},
|
|
27817
27856
|
onFocus: () => {
|
|
27818
|
-
|
|
27857
|
+
hJ(true), d == null ? void 0 : d();
|
|
27819
27858
|
},
|
|
27820
27859
|
ref: w,
|
|
27821
27860
|
role: "separator",
|
|
27822
27861
|
style: {
|
|
27823
|
-
...
|
|
27862
|
+
...xJ,
|
|
27824
27863
|
..._
|
|
27825
27864
|
},
|
|
27826
27865
|
tabIndex: v,
|
|
@@ -28119,7 +28158,7 @@ ${n}` : "Please fix this error.";
|
|
|
28119
28158
|
}, [
|
|
28120
28159
|
h
|
|
28121
28160
|
]), k(() => {
|
|
28122
|
-
U(6,
|
|
28161
|
+
U(6, gJ);
|
|
28123
28162
|
}, []);
|
|
28124
28163
|
let K = import_react.useMemo(() => ({
|
|
28125
28164
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28128,7 +28167,7 @@ ${n}` : "Please fix this error.";
|
|
|
28128
28167
|
var _a2;
|
|
28129
28168
|
var a2, o2, s2;
|
|
28130
28169
|
if (!Object.is(n.current[e2], t2)) {
|
|
28131
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28170
|
+
if (n.current[e2] = t2, e2 === "search") hJ(), Q(), U(1, $);
|
|
28132
28171
|
else if (e2 === "value") {
|
|
28133
28172
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28134
28173
|
let e3 = document.getElementById(I);
|
|
@@ -28136,8 +28175,8 @@ ${n}` : "Please fix this error.";
|
|
|
28136
28175
|
}
|
|
28137
28176
|
if (U(7, () => {
|
|
28138
28177
|
var _a3;
|
|
28139
|
-
n.current.selectedItemId = (_a3 =
|
|
28140
|
-
}), i2 || U(5,
|
|
28178
|
+
n.current.selectedItemId = (_a3 = _J()) == null ? void 0 : _a3.id, K.emit();
|
|
28179
|
+
}), i2 || U(5, gJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28141
28180
|
let e3 = t2 ?? "";
|
|
28142
28181
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28143
28182
|
return;
|
|
@@ -28162,12 +28201,12 @@ ${n}` : "Please fix this error.";
|
|
|
28162
28201
|
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([
|
|
28163
28202
|
e2
|
|
28164
28203
|
]))), U(3, () => {
|
|
28165
|
-
|
|
28204
|
+
hJ(), Q(), n.current.value || $(), K.emit();
|
|
28166
28205
|
}), () => {
|
|
28167
28206
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28168
|
-
let t3 =
|
|
28207
|
+
let t3 = _J();
|
|
28169
28208
|
U(4, () => {
|
|
28170
|
-
|
|
28209
|
+
hJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28171
28210
|
});
|
|
28172
28211
|
}),
|
|
28173
28212
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28200,7 +28239,7 @@ ${n}` : "Please fix this error.";
|
|
|
28200
28239
|
]);
|
|
28201
28240
|
});
|
|
28202
28241
|
let i2 = z.current;
|
|
28203
|
-
|
|
28242
|
+
vJ().sort((t3, n2) => {
|
|
28204
28243
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28205
28244
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28206
28245
|
}).forEach((e3) => {
|
|
@@ -28214,10 +28253,10 @@ ${n}` : "Please fix this error.";
|
|
|
28214
28253
|
}
|
|
28215
28254
|
function $() {
|
|
28216
28255
|
var _a2;
|
|
28217
|
-
let e2 = (_a2 =
|
|
28256
|
+
let e2 = (_a2 = vJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28218
28257
|
K.setState("value", e2 || void 0);
|
|
28219
28258
|
}
|
|
28220
|
-
function
|
|
28259
|
+
function hJ() {
|
|
28221
28260
|
var _a2, _b;
|
|
28222
28261
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28223
28262
|
n.current.filtered.count = i.current.size;
|
|
@@ -28235,43 +28274,43 @@ ${n}` : "Please fix this error.";
|
|
|
28235
28274
|
}
|
|
28236
28275
|
n.current.filtered.count = e2;
|
|
28237
28276
|
}
|
|
28238
|
-
function
|
|
28277
|
+
function gJ() {
|
|
28239
28278
|
var _a2, _b;
|
|
28240
28279
|
var e2;
|
|
28241
|
-
let t2 =
|
|
28280
|
+
let t2 = _J();
|
|
28242
28281
|
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({
|
|
28243
28282
|
block: "nearest"
|
|
28244
28283
|
})), t2.scrollIntoView({
|
|
28245
28284
|
block: "nearest"
|
|
28246
28285
|
}));
|
|
28247
28286
|
}
|
|
28248
|
-
function
|
|
28287
|
+
function _J() {
|
|
28249
28288
|
var _a2;
|
|
28250
28289
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28251
28290
|
}
|
|
28252
|
-
function
|
|
28291
|
+
function vJ() {
|
|
28253
28292
|
var _a2;
|
|
28254
28293
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28255
28294
|
}
|
|
28256
|
-
function
|
|
28257
|
-
let t2 =
|
|
28295
|
+
function yJ(e2) {
|
|
28296
|
+
let t2 = vJ()[e2];
|
|
28258
28297
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28259
28298
|
}
|
|
28260
|
-
function
|
|
28299
|
+
function bJ(e2) {
|
|
28261
28300
|
var t2;
|
|
28262
|
-
let n2 =
|
|
28301
|
+
let n2 = _J(), i2 = vJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28263
28302
|
(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));
|
|
28264
28303
|
}
|
|
28265
|
-
function
|
|
28304
|
+
function xJ(e2) {
|
|
28266
28305
|
var _a2;
|
|
28267
|
-
let t2 = (_a2 =
|
|
28306
|
+
let t2 = (_a2 = _J()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28268
28307
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28269
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28308
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : bJ(e2);
|
|
28270
28309
|
}
|
|
28271
|
-
let
|
|
28272
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28273
|
-
},
|
|
28274
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28310
|
+
let SJ = () => yJ(vJ().length - 1), CJ = (e2) => {
|
|
28311
|
+
e2.preventDefault(), e2.metaKey ? SJ() : e2.altKey ? xJ(1) : bJ(1);
|
|
28312
|
+
}, wJ = (e2) => {
|
|
28313
|
+
e2.preventDefault(), e2.metaKey ? yJ(0) : e2.altKey ? xJ(-1) : bJ(-1);
|
|
28275
28314
|
};
|
|
28276
28315
|
return import_react.createElement(Primitive.div, {
|
|
28277
28316
|
ref: t,
|
|
@@ -28285,27 +28324,27 @@ ${n}` : "Please fix this error.";
|
|
|
28285
28324
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28286
28325
|
case "n":
|
|
28287
28326
|
case "j":
|
|
28288
|
-
E && e2.ctrlKey &&
|
|
28327
|
+
E && e2.ctrlKey && CJ(e2);
|
|
28289
28328
|
break;
|
|
28290
28329
|
case "ArrowDown":
|
|
28291
|
-
|
|
28330
|
+
CJ(e2);
|
|
28292
28331
|
break;
|
|
28293
28332
|
case "p":
|
|
28294
28333
|
case "k":
|
|
28295
|
-
E && e2.ctrlKey &&
|
|
28334
|
+
E && e2.ctrlKey && wJ(e2);
|
|
28296
28335
|
break;
|
|
28297
28336
|
case "ArrowUp":
|
|
28298
|
-
|
|
28337
|
+
wJ(e2);
|
|
28299
28338
|
break;
|
|
28300
28339
|
case "Home":
|
|
28301
|
-
e2.preventDefault(),
|
|
28340
|
+
e2.preventDefault(), yJ(0);
|
|
28302
28341
|
break;
|
|
28303
28342
|
case "End":
|
|
28304
|
-
e2.preventDefault(),
|
|
28343
|
+
e2.preventDefault(), SJ();
|
|
28305
28344
|
break;
|
|
28306
28345
|
case "Enter": {
|
|
28307
28346
|
e2.preventDefault();
|
|
28308
|
-
let t3 =
|
|
28347
|
+
let t3 = _J();
|
|
28309
28348
|
if (t3) {
|
|
28310
28349
|
let e3 = new Event(Z);
|
|
28311
28350
|
t3.dispatchEvent(e3);
|
|
@@ -28714,153 +28753,153 @@ ${n}` : "Please fix this error.";
|
|
|
28714
28753
|
Combobox = (e) => {
|
|
28715
28754
|
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;
|
|
28716
28755
|
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);
|
|
28717
|
-
let $ = I === void 0 ? false : I,
|
|
28718
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28756
|
+
let $ = I === void 0 ? false : I, hJ = z === void 0 ? true : z, gJ = U === void 0 ? "Search..." : U, _J = K === void 0 ? "Nothing found." : K, vJ = q === void 0 ? false : q, yJ = J === void 0 ? false : J, bJ = s ?? false, xJ;
|
|
28757
|
+
t[25] !== v || t[26] !== w || t[27] !== bJ ? (xJ = {
|
|
28719
28758
|
prop: w,
|
|
28720
|
-
defaultProp:
|
|
28759
|
+
defaultProp: bJ,
|
|
28721
28760
|
onChange: v
|
|
28722
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28723
|
-
let [
|
|
28724
|
-
t[29] === S ?
|
|
28761
|
+
}, t[25] = v, t[26] = w, t[27] = bJ, t[28] = xJ) : xJ = t[28];
|
|
28762
|
+
let [SJ, CJ] = useControllableState(xJ), wJ = SJ === void 0 ? false : SJ, TJ;
|
|
28763
|
+
t[29] === S ? TJ = t[30] : (TJ = (e2) => {
|
|
28725
28764
|
S == null ? void 0 : S(e2);
|
|
28726
|
-
}, t[29] = S, t[30] =
|
|
28727
|
-
let
|
|
28728
|
-
t[31] !== c || t[32] !==
|
|
28765
|
+
}, t[29] = S, t[30] = TJ);
|
|
28766
|
+
let EJ;
|
|
28767
|
+
t[31] !== c || t[32] !== TJ || t[33] !== Q ? (EJ = {
|
|
28729
28768
|
prop: Q,
|
|
28730
28769
|
defaultProp: c,
|
|
28731
|
-
onChange:
|
|
28732
|
-
}, t[31] = c, t[32] =
|
|
28733
|
-
let [
|
|
28734
|
-
t[35] ===
|
|
28735
|
-
let
|
|
28736
|
-
t[37] !== _ || t[38] !== $ || t[39] !==
|
|
28770
|
+
onChange: TJ
|
|
28771
|
+
}, t[31] = c, t[32] = TJ, t[33] = Q, t[34] = EJ) : EJ = t[34];
|
|
28772
|
+
let [DJ, OJ] = useControllableState(EJ), kJ;
|
|
28773
|
+
t[35] === DJ ? kJ = t[36] : (kJ = (e2) => Array.isArray(DJ) ? DJ.includes(e2) : DJ === e2, t[35] = DJ, t[36] = kJ);
|
|
28774
|
+
let AJ = kJ, jJ;
|
|
28775
|
+
t[37] !== _ || t[38] !== $ || t[39] !== CJ || t[40] !== OJ || t[41] !== DJ ? (jJ = (e2) => {
|
|
28737
28776
|
let t2 = e2;
|
|
28738
|
-
if ($) if (Array.isArray(
|
|
28739
|
-
let n2 =
|
|
28777
|
+
if ($) if (Array.isArray(DJ)) if (DJ.includes(t2)) {
|
|
28778
|
+
let n2 = DJ.filter((t3) => t3 !== e2);
|
|
28740
28779
|
t2 = n2.length > 0 ? n2 : [];
|
|
28741
28780
|
} else t2 = [
|
|
28742
|
-
...
|
|
28781
|
+
...DJ,
|
|
28743
28782
|
t2
|
|
28744
28783
|
];
|
|
28745
28784
|
else t2 = [
|
|
28746
28785
|
t2
|
|
28747
28786
|
];
|
|
28748
|
-
else
|
|
28749
|
-
|
|
28750
|
-
}, t[37] = _, t[38] = $, t[39] =
|
|
28751
|
-
let
|
|
28752
|
-
t[43] !==
|
|
28753
|
-
let
|
|
28754
|
-
t[49] !==
|
|
28755
|
-
isSelected:
|
|
28756
|
-
onSelect:
|
|
28757
|
-
}, t[49] =
|
|
28758
|
-
let
|
|
28759
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28760
|
-
let
|
|
28761
|
-
t[53] !==
|
|
28762
|
-
|
|
28763
|
-
}, t[53] =
|
|
28764
|
-
let
|
|
28765
|
-
t[56] !== a || t[57] !==
|
|
28766
|
-
let BJ;
|
|
28767
|
-
t[59] !== O || t[60] !== NJ || t[61] !== EJ ? (BJ = O ? O(EJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = EJ, t[62] = BJ) : BJ = t[62];
|
|
28787
|
+
else DJ === e2 && (t2 = null);
|
|
28788
|
+
OJ(t2), (_ ?? $) || CJ(false);
|
|
28789
|
+
}, t[37] = _, t[38] = $, t[39] = CJ, t[40] = OJ, t[41] = DJ, t[42] = jJ) : jJ = t[42];
|
|
28790
|
+
let MJ = jJ, NJ;
|
|
28791
|
+
t[43] !== vJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== DJ ? (NJ = () => $ && vJ && E ? E : DJ == null ? E ?? "--" : Array.isArray(DJ) ? DJ.length === 0 ? E ?? "--" : DJ.length === 1 && d !== void 0 ? d(DJ[0]) : `${DJ.length} selected` : d === void 0 ? E ?? "--" : d(DJ), t[43] = vJ, t[44] = d, t[45] = $, t[46] = E, t[47] = DJ, t[48] = NJ) : NJ = t[48];
|
|
28792
|
+
let PJ = NJ, FJ;
|
|
28793
|
+
t[49] !== MJ || t[50] !== AJ ? (FJ = {
|
|
28794
|
+
isSelected: AJ,
|
|
28795
|
+
onSelect: MJ
|
|
28796
|
+
}, t[49] = MJ, t[50] = AJ, t[51] = FJ) : FJ = t[51];
|
|
28797
|
+
let IJ = FJ, LJ;
|
|
28798
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LJ = cn("relative"), t[52] = LJ) : LJ = t[52];
|
|
28799
|
+
let RJ;
|
|
28800
|
+
t[53] !== yJ || t[54] !== CJ ? (RJ = (e2) => {
|
|
28801
|
+
yJ && e2 || CJ(e2);
|
|
28802
|
+
}, t[53] = yJ, t[54] = CJ, t[55] = RJ) : RJ = t[55];
|
|
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];
|
|
28768
28805
|
let VJ;
|
|
28769
|
-
t[
|
|
28770
|
-
className: "truncate flex-1 min-w-0",
|
|
28771
|
-
children: BJ
|
|
28772
|
-
}), t[63] = BJ, t[64] = 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];
|
|
28773
28807
|
let HJ;
|
|
28774
|
-
t[
|
|
28808
|
+
t[63] === VJ ? HJ = t[64] : (HJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28809
|
+
className: "truncate flex-1 min-w-0",
|
|
28810
|
+
children: VJ
|
|
28811
|
+
}), t[63] = VJ, t[64] = HJ);
|
|
28812
|
+
let UJ;
|
|
28813
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28775
28814
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28776
|
-
}), t[65] =
|
|
28777
|
-
let
|
|
28778
|
-
t[66] !==
|
|
28815
|
+
}), t[65] = UJ) : UJ = t[65];
|
|
28816
|
+
let GJ;
|
|
28817
|
+
t[66] !== yJ || t[67] !== h || t[68] !== wJ || t[69] !== BJ || t[70] !== HJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28779
28818
|
asChild: true,
|
|
28780
28819
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28781
28820
|
id: h,
|
|
28782
28821
|
type: "button",
|
|
28783
|
-
className:
|
|
28784
|
-
"aria-expanded":
|
|
28785
|
-
"aria-disabled":
|
|
28822
|
+
className: BJ,
|
|
28823
|
+
"aria-expanded": wJ,
|
|
28824
|
+
"aria-disabled": yJ,
|
|
28786
28825
|
children: [
|
|
28787
|
-
|
|
28788
|
-
|
|
28826
|
+
HJ,
|
|
28827
|
+
UJ
|
|
28789
28828
|
]
|
|
28790
28829
|
})
|
|
28791
|
-
}), t[66] =
|
|
28792
|
-
let
|
|
28793
|
-
t[72] !==
|
|
28794
|
-
placeholder:
|
|
28830
|
+
}), t[66] = yJ, t[67] = h, t[68] = wJ, t[69] = BJ, t[70] = HJ, t[71] = GJ) : GJ = t[71];
|
|
28831
|
+
let KJ;
|
|
28832
|
+
t[72] !== gJ || t[73] !== y || t[74] !== M ? (KJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28833
|
+
placeholder: gJ,
|
|
28795
28834
|
rootClassName: "px-1 h-8",
|
|
28796
28835
|
autoFocus: true,
|
|
28797
28836
|
value: M,
|
|
28798
28837
|
onValueChange: y
|
|
28799
|
-
}), t[72] =
|
|
28800
|
-
let qJ;
|
|
28801
|
-
t[76] === gJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28802
|
-
children: gJ
|
|
28803
|
-
}), t[76] = gJ, t[77] = qJ);
|
|
28838
|
+
}), t[72] = gJ, t[73] = y, t[74] = M, t[75] = KJ) : KJ = t[75];
|
|
28804
28839
|
let JJ;
|
|
28805
|
-
t[
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
}), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
|
|
28840
|
+
t[76] === _J ? JJ = t[77] : (JJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28841
|
+
children: _J
|
|
28842
|
+
}), t[76] = _J, t[77] = JJ);
|
|
28809
28843
|
let YJ;
|
|
28810
|
-
t[
|
|
28844
|
+
t[78] !== n || t[79] !== IJ ? (YJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28845
|
+
value: IJ,
|
|
28846
|
+
children: n
|
|
28847
|
+
}), t[78] = n, t[79] = IJ, t[80] = YJ) : YJ = t[80];
|
|
28848
|
+
let XJ;
|
|
28849
|
+
t[81] !== JJ || t[82] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28811
28850
|
className: "max-h-60 py-.5",
|
|
28812
28851
|
children: [
|
|
28813
|
-
|
|
28814
|
-
|
|
28852
|
+
JJ,
|
|
28853
|
+
YJ
|
|
28815
28854
|
]
|
|
28816
|
-
}), t[81] =
|
|
28817
|
-
let
|
|
28818
|
-
t[84] !== f || t[85] !==
|
|
28855
|
+
}), t[81] = JJ, t[82] = YJ, t[83] = XJ) : XJ = t[83];
|
|
28856
|
+
let ZJ;
|
|
28857
|
+
t[84] !== f || t[85] !== hJ || t[86] !== KJ || t[87] !== XJ ? (ZJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28819
28858
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28820
28859
|
align: "start",
|
|
28821
28860
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28822
28861
|
filter: f,
|
|
28823
|
-
shouldFilter:
|
|
28862
|
+
shouldFilter: hJ,
|
|
28824
28863
|
children: [
|
|
28825
|
-
|
|
28826
|
-
|
|
28864
|
+
KJ,
|
|
28865
|
+
XJ
|
|
28827
28866
|
]
|
|
28828
28867
|
})
|
|
28829
|
-
}), t[84] = f, t[85] =
|
|
28830
|
-
let
|
|
28831
|
-
t[89] !==
|
|
28832
|
-
open:
|
|
28833
|
-
onOpenChange:
|
|
28868
|
+
}), t[84] = f, t[85] = hJ, t[86] = KJ, t[87] = XJ, t[88] = ZJ) : ZJ = t[88];
|
|
28869
|
+
let QJ;
|
|
28870
|
+
t[89] !== wJ || t[90] !== RJ || t[91] !== GJ || t[92] !== ZJ ? (QJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28871
|
+
open: wJ,
|
|
28872
|
+
onOpenChange: RJ,
|
|
28834
28873
|
children: [
|
|
28835
|
-
|
|
28836
|
-
|
|
28874
|
+
GJ,
|
|
28875
|
+
ZJ
|
|
28837
28876
|
]
|
|
28838
|
-
}), t[89] =
|
|
28839
|
-
let
|
|
28840
|
-
t[94] !==
|
|
28877
|
+
}), t[89] = wJ, t[90] = RJ, t[91] = GJ, t[92] = ZJ, t[93] = QJ) : QJ = t[93];
|
|
28878
|
+
let $J;
|
|
28879
|
+
t[94] !== vJ || t[95] !== i || t[96] !== yJ || t[97] !== d || t[98] !== MJ || t[99] !== $ || t[100] !== DJ ? ($J = $ && vJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28841
28880
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28842
|
-
children: Array.isArray(
|
|
28881
|
+
children: Array.isArray(DJ) && DJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28843
28882
|
variant: "secondary",
|
|
28844
28883
|
children: [
|
|
28845
28884
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28846
28885
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28847
28886
|
onClick: () => {
|
|
28848
|
-
|
|
28887
|
+
yJ || MJ(e2);
|
|
28849
28888
|
},
|
|
28850
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28889
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", yJ && "pointer-events-none")
|
|
28851
28890
|
})
|
|
28852
28891
|
]
|
|
28853
28892
|
}, String(e2)))
|
|
28854
|
-
}), t[94] =
|
|
28855
|
-
let
|
|
28856
|
-
return t[102] !== A || t[103] !==
|
|
28857
|
-
className:
|
|
28893
|
+
}), t[94] = vJ, t[95] = i, t[96] = yJ, t[97] = d, t[98] = MJ, t[99] = $, t[100] = DJ, t[101] = $J) : $J = t[101];
|
|
28894
|
+
let eY;
|
|
28895
|
+
return t[102] !== A || t[103] !== QJ || t[104] !== $J ? (eY = (0, import_jsx_runtime.jsxs)("div", {
|
|
28896
|
+
className: LJ,
|
|
28858
28897
|
...A,
|
|
28859
28898
|
children: [
|
|
28860
|
-
|
|
28861
|
-
|
|
28899
|
+
QJ,
|
|
28900
|
+
$J
|
|
28862
28901
|
]
|
|
28863
|
-
}), t[102] = A, t[103] =
|
|
28902
|
+
}), t[102] = A, t[103] = QJ, t[104] = $J, t[105] = eY) : eY = t[105], eY;
|
|
28864
28903
|
};
|
|
28865
28904
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28866
28905
|
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), _;
|
|
@@ -29916,17 +29955,17 @@ ${n}` : "Please fix this error.";
|
|
|
29916
29955
|
searchQuery: M,
|
|
29917
29956
|
filteredOptions: z
|
|
29918
29957
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29919
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29920
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29958
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), hJ;
|
|
29959
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (hJ = {
|
|
29921
29960
|
value: i,
|
|
29922
29961
|
onChange: a,
|
|
29923
29962
|
multiple: o,
|
|
29924
29963
|
maxSelections: s,
|
|
29925
29964
|
allowSelectNone: c,
|
|
29926
29965
|
selected: y
|
|
29927
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29928
|
-
let { isChecked:
|
|
29929
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29966
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = hJ) : hJ = t[21];
|
|
29967
|
+
let { isChecked: gJ, toggle: _J } = useToggle(hJ), vJ;
|
|
29968
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (vJ = {
|
|
29930
29969
|
value: i,
|
|
29931
29970
|
onChange: a,
|
|
29932
29971
|
multiple: o,
|
|
@@ -29934,24 +29973,24 @@ ${n}` : "Please fix this error.";
|
|
|
29934
29973
|
filteredOptions: z,
|
|
29935
29974
|
searchQuery: M,
|
|
29936
29975
|
maxSelections: s
|
|
29937
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29938
|
-
let { bulkActions:
|
|
29939
|
-
t[30] !== J || t[31] !== I ? (
|
|
29976
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = vJ) : vJ = t[29];
|
|
29977
|
+
let { bulkActions: yJ } = useBulk(vJ), bJ;
|
|
29978
|
+
t[30] !== J || t[31] !== I ? (bJ = (e2) => {
|
|
29940
29979
|
I(e2), e2 === "" && J();
|
|
29941
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29942
|
-
let
|
|
29943
|
-
return t[33] !==
|
|
29980
|
+
}, t[30] = J, t[31] = I, t[32] = bJ) : bJ = t[32];
|
|
29981
|
+
let xJ = bJ, SJ;
|
|
29982
|
+
return t[33] !== yJ || t[34] !== gJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== xJ || t[41] !== _J || t[42] !== Q ? (SJ = {
|
|
29944
29983
|
searchQuery: M,
|
|
29945
|
-
setSearchQuery:
|
|
29984
|
+
setSearchQuery: xJ,
|
|
29946
29985
|
open: K,
|
|
29947
29986
|
setOpen: q,
|
|
29948
29987
|
visibleOptions: Q,
|
|
29949
29988
|
pinnedCount: $,
|
|
29950
|
-
isChecked:
|
|
29951
|
-
toggle:
|
|
29952
|
-
bulkActions:
|
|
29989
|
+
isChecked: gJ,
|
|
29990
|
+
toggle: _J,
|
|
29991
|
+
bulkActions: yJ,
|
|
29953
29992
|
labelOf: O
|
|
29954
|
-
}, t[33] =
|
|
29993
|
+
}, t[33] = yJ, t[34] = gJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = xJ, t[41] = _J, t[42] = Q, t[43] = SJ) : SJ = t[43], SJ;
|
|
29955
29994
|
};
|
|
29956
29995
|
const Sets = {
|
|
29957
29996
|
merge(...e) {
|
|
@@ -30280,7 +30319,7 @@ ${n}` : "Please fix this error.";
|
|
|
30280
30319
|
type: S,
|
|
30281
30320
|
operator: E,
|
|
30282
30321
|
draft: mergeNumberTextDraft(A, I)
|
|
30283
|
-
}), $ = Q === void 0,
|
|
30322
|
+
}), $ = Q === void 0, hJ = $ ? getMissingValueMessage(S, E) : "Apply filter", gJ = () => {
|
|
30284
30323
|
if (!Q) return;
|
|
30285
30324
|
let e2 = Q;
|
|
30286
30325
|
t.setColumnFilters((t2) => {
|
|
@@ -30299,20 +30338,20 @@ ${n}` : "Please fix this error.";
|
|
|
30299
30338
|
value: e2
|
|
30300
30339
|
}, n2;
|
|
30301
30340
|
}), i();
|
|
30302
|
-
},
|
|
30341
|
+
}, _J = () => {
|
|
30303
30342
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30304
|
-
},
|
|
30343
|
+
}, vJ = !OPERATORS_WITHOUT_VALUE.has(E), yJ = OPERATORS_BY_TYPE[S], bJ = (0, import_react.useRef)(null), xJ = (0, import_react.useRef)(null);
|
|
30305
30344
|
return (0, import_react.useEffect)(() => {
|
|
30306
30345
|
var _a2, _b;
|
|
30307
|
-
let e2 = (_a2 =
|
|
30308
|
-
e2 ? e2.focus() : (_b =
|
|
30346
|
+
let e2 = (_a2 = bJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30347
|
+
e2 ? e2.focus() : (_b = xJ.current) == null ? void 0 : _b.focus();
|
|
30309
30348
|
}, [
|
|
30310
30349
|
S,
|
|
30311
30350
|
E
|
|
30312
30351
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30313
30352
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30314
30353
|
onSubmit: (e2) => {
|
|
30315
|
-
e2.preventDefault(),
|
|
30354
|
+
e2.preventDefault(), gJ();
|
|
30316
30355
|
},
|
|
30317
30356
|
onKeyDownCapture: (e2) => {
|
|
30318
30357
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30353,13 +30392,13 @@ ${n}` : "Please fix this error.";
|
|
|
30353
30392
|
onValueChange: (e2) => J(e2),
|
|
30354
30393
|
children: [
|
|
30355
30394
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30356
|
-
ref:
|
|
30395
|
+
ref: xJ,
|
|
30357
30396
|
id: s,
|
|
30358
30397
|
className: "h-6 mb-1 bg-transparent",
|
|
30359
30398
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30360
30399
|
}),
|
|
30361
30400
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30362
|
-
children:
|
|
30401
|
+
children: yJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30363
30402
|
value: e2,
|
|
30364
30403
|
children: OPERATOR_LABELS[e2]
|
|
30365
30404
|
}, e2))
|
|
@@ -30368,8 +30407,8 @@ ${n}` : "Please fix this error.";
|
|
|
30368
30407
|
}, S)
|
|
30369
30408
|
]
|
|
30370
30409
|
}),
|
|
30371
|
-
|
|
30372
|
-
ref:
|
|
30410
|
+
vJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30411
|
+
ref: bJ,
|
|
30373
30412
|
className: "flex flex-col gap-1",
|
|
30374
30413
|
children: [
|
|
30375
30414
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30396,7 +30435,7 @@ ${n}` : "Please fix this error.";
|
|
|
30396
30435
|
className: "flex gap-1 mb-1",
|
|
30397
30436
|
children: [
|
|
30398
30437
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30399
|
-
content:
|
|
30438
|
+
content: hJ,
|
|
30400
30439
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30401
30440
|
className: "inline-flex",
|
|
30402
30441
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30435,7 +30474,7 @@ ${n}` : "Please fix this error.";
|
|
|
30435
30474
|
size: "icon",
|
|
30436
30475
|
variant: "ghost",
|
|
30437
30476
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30438
|
-
onClick:
|
|
30477
|
+
onClick: _J,
|
|
30439
30478
|
"aria-label": "Remove filter",
|
|
30440
30479
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30441
30480
|
className: "h-3.5 w-3.5",
|
|
@@ -32643,29 +32682,29 @@ ${n}` : "Please fix this error.";
|
|
|
32643
32682
|
}, t[16] = a, t[17] = J);
|
|
32644
32683
|
let Q = useEvent_default(J), $;
|
|
32645
32684
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32646
|
-
let
|
|
32647
|
-
t[20] === S ? (
|
|
32685
|
+
let hJ = useEvent_default($), gJ, _J;
|
|
32686
|
+
t[20] === S ? (gJ = t[21], _J = t[22]) : (gJ = () => (window.addEventListener("scroll", S, {
|
|
32648
32687
|
passive: true,
|
|
32649
32688
|
capture: true
|
|
32650
32689
|
}), window.addEventListener("resize", S), () => {
|
|
32651
32690
|
window.removeEventListener("scroll", S, {
|
|
32652
32691
|
capture: true
|
|
32653
32692
|
}), window.removeEventListener("resize", S);
|
|
32654
|
-
}),
|
|
32693
|
+
}), _J = [
|
|
32655
32694
|
S
|
|
32656
|
-
], t[20] = S, t[21] =
|
|
32657
|
-
let
|
|
32658
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32659
|
-
let
|
|
32660
|
-
return t[25] !==
|
|
32695
|
+
], t[20] = S, t[21] = gJ, t[22] = _J), (0, import_react.useEffect)(gJ, _J);
|
|
32696
|
+
let vJ, yJ;
|
|
32697
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = () => v, yJ = [], t[23] = vJ, t[24] = yJ) : (vJ = t[23], yJ = t[24]), (0, import_react.useEffect)(vJ, yJ);
|
|
32698
|
+
let bJ;
|
|
32699
|
+
return t[25] !== hJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (bJ = {
|
|
32661
32700
|
tooltipState: o,
|
|
32662
32701
|
tooltipContentId: d,
|
|
32663
32702
|
hideTooltip: S,
|
|
32664
32703
|
handleCellMouseOver: U,
|
|
32665
32704
|
handleCellMouseLeave: q,
|
|
32666
32705
|
handleCellFocus: Q,
|
|
32667
|
-
handleCellBlur:
|
|
32668
|
-
}, t[25] =
|
|
32706
|
+
handleCellBlur: hJ
|
|
32707
|
+
}, t[25] = hJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = bJ) : bJ = t[32], bJ;
|
|
32669
32708
|
}
|
|
32670
32709
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32671
32710
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34110,7 +34149,7 @@ ${n}` : "Please fix this error.";
|
|
|
34110
34149
|
filename: i2.filename
|
|
34111
34150
|
};
|
|
34112
34151
|
}, t[6] = e, t[7] = O);
|
|
34113
|
-
let A = O, I, z, U, K, q, J, Q, $,
|
|
34152
|
+
let A = O, I, z, U, K, q, J, Q, $, hJ, gJ, _J, vJ, yJ;
|
|
34114
34153
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34115
34154
|
let e2 = async (t2) => {
|
|
34116
34155
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34176,10 +34215,10 @@ ${n}` : "Please fix this error.";
|
|
|
34176
34215
|
content: d,
|
|
34177
34216
|
open: o,
|
|
34178
34217
|
children: h
|
|
34179
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent,
|
|
34218
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, hJ = "bottom", gJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34180
34219
|
className: "text-xs text-muted-foreground",
|
|
34181
34220
|
children: "Download"
|
|
34182
|
-
}), t[36] =
|
|
34221
|
+
}), t[36] = _J) : _J = t[36], vJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34183
34222
|
onSelect: () => {
|
|
34184
34223
|
e2(t2.format);
|
|
34185
34224
|
},
|
|
@@ -34200,10 +34239,10 @@ ${n}` : "Please fix this error.";
|
|
|
34200
34239
|
]
|
|
34201
34240
|
})
|
|
34202
34241
|
]
|
|
34203
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34242
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34204
34243
|
className: "text-xs text-muted-foreground",
|
|
34205
34244
|
children: "Copy to clipboard"
|
|
34206
|
-
}), t[37] = U, t[38] =
|
|
34245
|
+
}), t[37] = U, t[38] = yJ) : (U = t[37], yJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34207
34246
|
onSelect: async () => {
|
|
34208
34247
|
try {
|
|
34209
34248
|
await a2(e3.format);
|
|
@@ -34232,30 +34271,30 @@ ${n}` : "Please fix this error.";
|
|
|
34232
34271
|
]
|
|
34233
34272
|
})
|
|
34234
34273
|
]
|
|
34235
|
-
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] =
|
|
34236
|
-
} else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20],
|
|
34237
|
-
let
|
|
34238
|
-
t[39] !== I || t[40] !== U || t[41] !== K || t[42] !==
|
|
34239
|
-
side:
|
|
34240
|
-
className:
|
|
34274
|
+
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = hJ, t[22] = gJ, t[23] = _J, t[24] = vJ, t[25] = yJ;
|
|
34275
|
+
} else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], hJ = t[21], gJ = t[22], _J = t[23], vJ = t[24], yJ = t[25];
|
|
34276
|
+
let bJ;
|
|
34277
|
+
t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== hJ || t[43] !== gJ || t[44] !== _J || t[45] !== vJ || t[46] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34278
|
+
side: hJ,
|
|
34279
|
+
className: gJ,
|
|
34241
34280
|
children: [
|
|
34242
|
-
gJ,
|
|
34243
34281
|
_J,
|
|
34244
34282
|
vJ,
|
|
34283
|
+
yJ,
|
|
34245
34284
|
U,
|
|
34246
34285
|
K
|
|
34247
34286
|
]
|
|
34248
|
-
}), t[39] = I, t[40] = U, t[41] = K, t[42] =
|
|
34249
|
-
let
|
|
34250
|
-
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !==
|
|
34287
|
+
}), t[39] = I, t[40] = U, t[41] = K, t[42] = hJ, t[43] = gJ, t[44] = _J, t[45] = vJ, t[46] = yJ, t[47] = bJ) : bJ = t[47];
|
|
34288
|
+
let xJ;
|
|
34289
|
+
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)(z, {
|
|
34251
34290
|
modal: q,
|
|
34252
34291
|
open: J,
|
|
34253
34292
|
onOpenChange: Q,
|
|
34254
34293
|
children: [
|
|
34255
34294
|
$,
|
|
34256
|
-
|
|
34295
|
+
bJ
|
|
34257
34296
|
]
|
|
34258
|
-
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] =
|
|
34297
|
+
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = bJ, t[54] = xJ) : xJ = t[54], xJ;
|
|
34259
34298
|
};
|
|
34260
34299
|
function fetchJson(e) {
|
|
34261
34300
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34351,22 +34390,22 @@ ${n}` : "Please fix this error.";
|
|
|
34351
34390
|
]
|
|
34352
34391
|
});
|
|
34353
34392
|
};
|
|
34354
|
-
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:
|
|
34355
|
-
let
|
|
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: hJ, showSearch: gJ = false, searchQuery: _J, onSearchQueryChange: vJ, showFilters: yJ = false, filters: bJ, onFiltersChange: xJ, calculateTopKRows: SJ, reloading: CJ, freezeColumnsLeft: wJ, freezeColumnsRight: TJ, hiddenColumns: EJ, toggleDisplayHeader: DJ, showChartBuilder: OJ, isChartBuilderOpen: kJ, showPageSizeSelector: AJ, showTableExplorer: jJ, togglePanel: MJ, isPanelOpen: NJ, isAnyPanelOpen: PJ, viewedRowIdx: FJ, onViewedRowChange: IJ, renderTableExplorerPanel: LJ }) => {
|
|
34394
|
+
let RJ = isStaticNotebook(), zJ = !RJ, [BJ, VJ] = import_react.useState(false), { locale: HJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: UJ, setColumnPinning: WJ } = useColumnPinning(wJ, TJ), { columnVisibility: GJ, setColumnVisibility: KJ } = useColumnVisibility(EJ);
|
|
34356
34395
|
import_react.useEffect(() => {
|
|
34357
34396
|
let e2;
|
|
34358
|
-
return
|
|
34359
|
-
|
|
34360
|
-
}, 300) :
|
|
34397
|
+
return CJ ? e2 = setTimeout(() => {
|
|
34398
|
+
VJ(true);
|
|
34399
|
+
}, 300) : VJ(false), () => {
|
|
34361
34400
|
e2 && clearTimeout(e2);
|
|
34362
34401
|
};
|
|
34363
34402
|
}, [
|
|
34364
|
-
|
|
34403
|
+
CJ
|
|
34365
34404
|
]);
|
|
34366
|
-
function
|
|
34405
|
+
function qJ(e2, t2) {
|
|
34367
34406
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34368
34407
|
}
|
|
34369
|
-
let
|
|
34408
|
+
let JJ = useReactTable({
|
|
34370
34409
|
_features: [
|
|
34371
34410
|
ColumnPinning,
|
|
34372
34411
|
ColumnWrappingFeature,
|
|
@@ -34390,37 +34429,37 @@ ${n}` : "Please fix this error.";
|
|
|
34390
34429
|
getRowId: (e2, t2) => {
|
|
34391
34430
|
let n2 = getStableRowId(e2);
|
|
34392
34431
|
if (n2) return n2;
|
|
34393
|
-
let i2 =
|
|
34432
|
+
let i2 = qJ(e2, t2);
|
|
34394
34433
|
return String(i2);
|
|
34395
34434
|
}
|
|
34396
34435
|
} : {},
|
|
34397
|
-
locale:
|
|
34436
|
+
locale: HJ,
|
|
34398
34437
|
manualPagination: q,
|
|
34399
34438
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34400
34439
|
...w ? {
|
|
34401
34440
|
onSortingChange: w
|
|
34402
34441
|
} : {},
|
|
34403
34442
|
manualSorting: y,
|
|
34404
|
-
enableSorting: !
|
|
34443
|
+
enableSorting: !RJ,
|
|
34405
34444
|
enableMultiSort: true,
|
|
34406
34445
|
getSortedRowModel: getSortedRowModel(),
|
|
34407
34446
|
manualFiltering: true,
|
|
34408
|
-
enableColumnFilters:
|
|
34447
|
+
enableColumnFilters: yJ && !RJ,
|
|
34409
34448
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34410
|
-
onColumnFiltersChange:
|
|
34449
|
+
onColumnFiltersChange: xJ,
|
|
34411
34450
|
onRowSelectionChange: Q,
|
|
34412
34451
|
onCellSelectionChange: $,
|
|
34413
34452
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34414
34453
|
enableMultiCellSelection: c === "multi-cell",
|
|
34415
|
-
onColumnPinningChange:
|
|
34416
|
-
onColumnVisibilityChange:
|
|
34454
|
+
onColumnPinningChange: WJ,
|
|
34455
|
+
onColumnVisibilityChange: KJ,
|
|
34417
34456
|
enableFocusRow: true,
|
|
34418
|
-
onFocusRowChange:
|
|
34457
|
+
onFocusRowChange: IJ,
|
|
34419
34458
|
state: {
|
|
34420
34459
|
...S ? {
|
|
34421
34460
|
sorting: S
|
|
34422
34461
|
} : {},
|
|
34423
|
-
columnFilters:
|
|
34462
|
+
columnFilters: bJ,
|
|
34424
34463
|
...z ? {
|
|
34425
34464
|
pagination: z
|
|
34426
34465
|
} : J && !z ? {} : {
|
|
@@ -34431,60 +34470,60 @@ ${n}` : "Please fix this error.";
|
|
|
34431
34470
|
},
|
|
34432
34471
|
rowSelection: E ?? {},
|
|
34433
34472
|
cellSelection: O ?? [],
|
|
34434
|
-
columnVisibility:
|
|
34473
|
+
columnVisibility: GJ,
|
|
34435
34474
|
cellStyling: A,
|
|
34436
|
-
columnPinning:
|
|
34475
|
+
columnPinning: UJ,
|
|
34437
34476
|
cellHoverTemplate: M,
|
|
34438
34477
|
cellHoverTexts: I ?? {}
|
|
34439
34478
|
}
|
|
34440
|
-
}),
|
|
34479
|
+
}), YJ = (NJ == null ? void 0 : NJ(PANEL_TYPES.ROW_VIEWER)) ?? false, XJ = !J && a.length > 100, ZJ = useScrollContainerHeight({
|
|
34441
34480
|
maxHeight: n,
|
|
34442
|
-
virtualize:
|
|
34443
|
-
}), [
|
|
34481
|
+
virtualize: XJ
|
|
34482
|
+
}), [QJ, $J] = import_react.useState(null), eY = import_react.useMemo(() => ({
|
|
34444
34483
|
requestAddFilter: (e2) => {
|
|
34445
|
-
let t2 =
|
|
34446
|
-
t2 &&
|
|
34484
|
+
let t2 = JJ.getColumn(e2.columnId);
|
|
34485
|
+
t2 && $J(buildEditorSnapshot(t2, {
|
|
34447
34486
|
operator: e2.operator
|
|
34448
34487
|
}));
|
|
34449
34488
|
}
|
|
34450
34489
|
}), [
|
|
34451
|
-
|
|
34452
|
-
]),
|
|
34490
|
+
JJ
|
|
34491
|
+
]), tY = getUserColumnVisibilityCounts(JJ), nY = tY.total > 0 && tY.visible === 0;
|
|
34453
34492
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34454
|
-
value:
|
|
34493
|
+
value: eY,
|
|
34455
34494
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34456
34495
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34457
34496
|
children: [
|
|
34458
34497
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34459
|
-
filters:
|
|
34460
|
-
table:
|
|
34461
|
-
calculateTopKRows:
|
|
34462
|
-
addFilterSnapshot:
|
|
34463
|
-
onAddFilterSnapshotChange:
|
|
34498
|
+
filters: bJ,
|
|
34499
|
+
table: JJ,
|
|
34500
|
+
calculateTopKRows: SJ,
|
|
34501
|
+
addFilterSnapshot: QJ,
|
|
34502
|
+
onAddFilterSnapshotChange: $J
|
|
34464
34503
|
}),
|
|
34465
|
-
|
|
34504
|
+
LJ == null ? void 0 : LJ(JJ),
|
|
34466
34505
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34467
34506
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34468
34507
|
part: "table-wrapper",
|
|
34469
34508
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34470
34509
|
children: [
|
|
34471
|
-
|
|
34472
|
-
table:
|
|
34473
|
-
showSearch:
|
|
34474
|
-
searchQuery:
|
|
34475
|
-
onSearchQueryChange:
|
|
34476
|
-
reloading:
|
|
34477
|
-
showChartBuilder:
|
|
34478
|
-
isChartBuilderOpen:
|
|
34479
|
-
toggleDisplayHeader:
|
|
34480
|
-
showTableExplorer:
|
|
34481
|
-
togglePanel:
|
|
34482
|
-
isAnyPanelOpen:
|
|
34510
|
+
zJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34511
|
+
table: JJ,
|
|
34512
|
+
showSearch: gJ,
|
|
34513
|
+
searchQuery: _J,
|
|
34514
|
+
onSearchQueryChange: vJ,
|
|
34515
|
+
reloading: CJ,
|
|
34516
|
+
showChartBuilder: OJ,
|
|
34517
|
+
isChartBuilderOpen: kJ,
|
|
34518
|
+
toggleDisplayHeader: DJ,
|
|
34519
|
+
showTableExplorer: jJ,
|
|
34520
|
+
togglePanel: MJ,
|
|
34521
|
+
isAnyPanelOpen: PJ,
|
|
34483
34522
|
downloadAs: K,
|
|
34484
34523
|
sizeBytes: _,
|
|
34485
34524
|
sizeBytesIsLoading: v
|
|
34486
34525
|
}),
|
|
34487
|
-
|
|
34526
|
+
nY && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34488
34527
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34489
34528
|
children: [
|
|
34490
34529
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34493,26 +34532,26 @@ ${n}` : "Please fix this error.";
|
|
|
34493
34532
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34494
34533
|
variant: "link",
|
|
34495
34534
|
size: "xs",
|
|
34496
|
-
onClick: () =>
|
|
34535
|
+
onClick: () => JJ.resetColumnVisibility(true),
|
|
34497
34536
|
children: "Unhide all"
|
|
34498
34537
|
})
|
|
34499
34538
|
]
|
|
34500
34539
|
}),
|
|
34501
34540
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34502
34541
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34503
|
-
ref:
|
|
34542
|
+
ref: ZJ,
|
|
34504
34543
|
children: [
|
|
34505
|
-
|
|
34544
|
+
BJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34506
34545
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34507
34546
|
}),
|
|
34508
|
-
renderTableHeader(
|
|
34547
|
+
renderTableHeader(JJ, XJ || !!n),
|
|
34509
34548
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34510
|
-
table:
|
|
34549
|
+
table: JJ,
|
|
34511
34550
|
columns: i,
|
|
34512
|
-
rowViewerPanelOpen:
|
|
34513
|
-
getRowIndex:
|
|
34514
|
-
viewedRowIdx:
|
|
34515
|
-
virtualize:
|
|
34551
|
+
rowViewerPanelOpen: YJ,
|
|
34552
|
+
getRowIndex: qJ,
|
|
34553
|
+
viewedRowIdx: FJ,
|
|
34554
|
+
virtualize: XJ
|
|
34516
34555
|
})
|
|
34517
34556
|
]
|
|
34518
34557
|
}),
|
|
@@ -34523,10 +34562,10 @@ ${n}` : "Please fix this error.";
|
|
|
34523
34562
|
pagination: J,
|
|
34524
34563
|
selection: c,
|
|
34525
34564
|
onRowSelectionChange: Q,
|
|
34526
|
-
table:
|
|
34527
|
-
getRowIds:
|
|
34528
|
-
showPageSizeSelector:
|
|
34529
|
-
tableLoading:
|
|
34565
|
+
table: JJ,
|
|
34566
|
+
getRowIds: hJ,
|
|
34567
|
+
showPageSizeSelector: AJ,
|
|
34568
|
+
tableLoading: CJ
|
|
34530
34569
|
})
|
|
34531
34570
|
]
|
|
34532
34571
|
})
|
|
@@ -34626,45 +34665,45 @@ ${d}`,
|
|
|
34626
34665
|
prompt: buildFixInChatPrompt(a, d)
|
|
34627
34666
|
});
|
|
34628
34667
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34629
|
-
let $ = Q,
|
|
34630
|
-
t[19] === z ?
|
|
34631
|
-
let
|
|
34632
|
-
t[21] === z ?
|
|
34668
|
+
let $ = Q, hJ;
|
|
34669
|
+
t[19] === z ? hJ = t[20] : (hJ = () => K(!z), t[19] = z, t[20] = hJ);
|
|
34670
|
+
let gJ = z ? "Collapse traceback" : "Expand traceback", _J;
|
|
34671
|
+
t[21] === z ? _J = t[22] : (_J = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34633
34672
|
className: "h-3 w-3"
|
|
34634
34673
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34635
34674
|
className: "h-3 w-3"
|
|
34636
|
-
}), t[21] = z, t[22] =
|
|
34637
|
-
let
|
|
34638
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34675
|
+
}), t[21] = z, t[22] = _J);
|
|
34676
|
+
let vJ;
|
|
34677
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34639
34678
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34640
34679
|
children: "Traceback"
|
|
34641
|
-
}), t[23] =
|
|
34642
|
-
let
|
|
34643
|
-
t[24] !== z || t[25] !==
|
|
34680
|
+
}), t[23] = vJ) : vJ = t[23];
|
|
34681
|
+
let yJ;
|
|
34682
|
+
t[24] !== z || t[25] !== _J || t[26] !== hJ || t[27] !== gJ ? (yJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34644
34683
|
type: "button",
|
|
34645
|
-
onClick:
|
|
34684
|
+
onClick: hJ,
|
|
34646
34685
|
"aria-expanded": z,
|
|
34647
|
-
"aria-label":
|
|
34686
|
+
"aria-label": gJ,
|
|
34648
34687
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34649
34688
|
children: [
|
|
34650
|
-
|
|
34651
|
-
|
|
34689
|
+
_J,
|
|
34690
|
+
vJ
|
|
34652
34691
|
]
|
|
34653
|
-
}), t[24] = z, t[25] =
|
|
34654
|
-
let
|
|
34655
|
-
t[29] !== s || t[30] !== z ? (
|
|
34692
|
+
}), t[24] = z, t[25] = _J, t[26] = hJ, t[27] = gJ, t[28] = yJ) : yJ = t[28];
|
|
34693
|
+
let bJ;
|
|
34694
|
+
t[29] !== s || t[30] !== z ? (bJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34656
34695
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34657
34696
|
children: s
|
|
34658
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34659
|
-
let
|
|
34660
|
-
t[32] !== J || t[33] !== $ || t[34] !== M ? (
|
|
34697
|
+
}), t[29] = s, t[30] = z, t[31] = bJ) : bJ = t[31];
|
|
34698
|
+
let xJ;
|
|
34699
|
+
t[32] !== J || t[33] !== $ || t[34] !== M ? (xJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34661
34700
|
tooltip: "Fix with AI",
|
|
34662
34701
|
openPrompt: () => J(false),
|
|
34663
34702
|
applyAutofix: () => J(true),
|
|
34664
34703
|
openChat: $
|
|
34665
|
-
}), t[32] = J, t[33] = $, t[34] = M, t[35] =
|
|
34666
|
-
let
|
|
34667
|
-
t[36] !== O || t[37] !== S ? (
|
|
34704
|
+
}), t[32] = J, t[33] = $, t[34] = M, t[35] = xJ) : xJ = t[35];
|
|
34705
|
+
let SJ;
|
|
34706
|
+
t[36] !== O || t[37] !== S ? (SJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34668
34707
|
content: "Attach pdb to the exception point.",
|
|
34669
34708
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34670
34709
|
size: "xs",
|
|
@@ -34681,9 +34720,9 @@ ${d}`,
|
|
|
34681
34720
|
"Launch debugger"
|
|
34682
34721
|
]
|
|
34683
34722
|
})
|
|
34684
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34685
|
-
let
|
|
34686
|
-
t[39] !== d || t[40] !== i ? (
|
|
34723
|
+
}), t[36] = O, t[37] = S, t[38] = SJ) : SJ = t[38];
|
|
34724
|
+
let CJ;
|
|
34725
|
+
t[39] !== d || t[40] !== i ? (CJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34687
34726
|
children: [
|
|
34688
34727
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34689
34728
|
asChild: true,
|
|
@@ -34751,25 +34790,25 @@ ${d}`,
|
|
|
34751
34790
|
]
|
|
34752
34791
|
})
|
|
34753
34792
|
]
|
|
34754
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34755
|
-
let
|
|
34756
|
-
t[42] !==
|
|
34793
|
+
}), t[39] = d, t[40] = i, t[41] = CJ) : CJ = t[41];
|
|
34794
|
+
let wJ;
|
|
34795
|
+
t[42] !== xJ || t[43] !== SJ || t[44] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34757
34796
|
className: "flex gap-2",
|
|
34758
34797
|
children: [
|
|
34759
|
-
bJ,
|
|
34760
34798
|
xJ,
|
|
34761
|
-
SJ
|
|
34799
|
+
SJ,
|
|
34800
|
+
CJ
|
|
34762
34801
|
]
|
|
34763
|
-
}), t[42] =
|
|
34764
|
-
let
|
|
34765
|
-
return t[46] !==
|
|
34802
|
+
}), t[42] = xJ, t[43] = SJ, t[44] = CJ, t[45] = wJ) : wJ = t[45];
|
|
34803
|
+
let TJ;
|
|
34804
|
+
return t[46] !== yJ || t[47] !== bJ || t[48] !== wJ ? (TJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34766
34805
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34767
34806
|
children: [
|
|
34768
|
-
vJ,
|
|
34769
34807
|
yJ,
|
|
34770
|
-
|
|
34808
|
+
bJ,
|
|
34809
|
+
wJ
|
|
34771
34810
|
]
|
|
34772
|
-
}), t[46] =
|
|
34811
|
+
}), t[46] = yJ, t[47] = bJ, t[48] = wJ, t[49] = TJ) : TJ = t[49], TJ;
|
|
34773
34812
|
};
|
|
34774
34813
|
function lastLine(e) {
|
|
34775
34814
|
var _a2, _b;
|
|
@@ -36205,14 +36244,14 @@ ${d}`,
|
|
|
36205
36244
|
Q
|
|
36206
36245
|
]
|
|
36207
36246
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36208
|
-
let
|
|
36209
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36247
|
+
let hJ;
|
|
36248
|
+
return t[36] !== I || t[37] !== $ ? (hJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36210
36249
|
className: "flex flex-col gap-3",
|
|
36211
36250
|
children: [
|
|
36212
36251
|
I,
|
|
36213
36252
|
$
|
|
36214
36253
|
]
|
|
36215
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36254
|
+
}), t[36] = I, t[37] = $, t[38] = hJ) : hJ = t[38], hJ;
|
|
36216
36255
|
};
|
|
36217
36256
|
SlideSidebar = (e) => {
|
|
36218
36257
|
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, _;
|
|
@@ -36337,7 +36376,7 @@ ${d}`,
|
|
|
36337
36376
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36338
36377
|
}
|
|
36339
36378
|
}
|
|
36340
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-
|
|
36379
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev35");
|
|
36341
36380
|
showCodeInRunModeAtom = atom(true);
|
|
36342
36381
|
atom(null);
|
|
36343
36382
|
var import_compiler_runtime = require_compiler_runtime();
|