@marimo-team/islands 0.23.9-dev5 → 0.23.9-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-DY2PjKMU.js → code-visibility-ydMmCkzY.js} +787 -712
- package/dist/main.js +2 -2
- package/dist/{reveal-component-Bq1iwOTq.js → reveal-component-DfX0NWtZ.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/errors/mangled-local-chip.tsx +50 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +31 -2
- package/src/utils/__tests__/local-variables.test.ts +132 -0
- package/src/utils/local-variables.ts +67 -0
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0,
|
|
1906
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
1907
|
-
let
|
|
1908
|
-
if (
|
|
1909
|
-
else if (
|
|
1910
|
-
else if (
|
|
1911
|
-
else if (
|
|
1912
|
-
let e2 =
|
|
1905
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, MK = c.top - E, NK = c.bottom + O, PK = c.left - A, FK = c.right + M, IK = e === _ ? 0 : Q + $, LK = e === _ ? 0 : q + J, RK = e.offsetWidth - e.clientWidth - IK, zK = e.offsetHeight - e.clientHeight - LK, BK = v + q + I, VK = y - J - z - zK, HK = S + Q + U, UK = w - $ - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? HK += RK : UK -= RK;
|
|
1907
|
+
let WK = MK < BK || NK > VK, GK = PK < HK || FK > UK;
|
|
1908
|
+
if (WK && i === "start") o += MK - BK;
|
|
1909
|
+
else if (WK && i === "center") o += (MK + NK) / 2 - (BK + VK) / 2;
|
|
1910
|
+
else if (WK && i === "end") o += NK - VK;
|
|
1911
|
+
else if (WK && i === "nearest") {
|
|
1912
|
+
let e2 = MK - BK, t2 = NK - VK;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
else if (
|
|
1917
|
-
else if (
|
|
1918
|
-
else if (
|
|
1919
|
-
let e2 =
|
|
1915
|
+
if (GK && a === "start") s += PK - HK;
|
|
1916
|
+
else if (GK && a === "center") s += (PK + FK) / 2 - (HK + UK) / 2;
|
|
1917
|
+
else if (GK && a === "end") s += FK - UK;
|
|
1918
|
+
else if (GK && a === "nearest") {
|
|
1919
|
+
let e2 = PK - HK, t2 = FK - UK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5024,25 +5024,25 @@ Defaulting to \`null\`.`;
|
|
|
5024
5024
|
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[U]} ${K}`), i2 = $edcf132a9284368a$var$computePosition(t, c, n, e2, h, _, f, v, S, w, d);
|
|
5025
5025
|
$edcf132a9284368a$var$getAvailableSpace(c, f, t, a, o + h, e2, d, E) > Q && (A = e2, q = i2, J = h);
|
|
5026
5026
|
}
|
|
5027
|
-
let
|
|
5028
|
-
A.axis === "top" ? A.placement === "top" ?
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
let
|
|
5036
|
-
x: U === "top" || U === "bottom" ?
|
|
5037
|
-
y: U === "left" || U === "right" ?
|
|
5027
|
+
let $ = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5029
|
+
let MK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += MK;
|
|
5031
|
+
let NK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5032
|
+
y && y < NK && (NK = y), n.height = Math.min(n.height, NK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), MK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += MK;
|
|
5033
|
+
let PK = {}, FK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], IK = FK + 0.5 * t[z], LK = S / 2 + w, RK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), zK = n[z] - RK - S / 2 - w;
|
|
5034
|
+
PK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(IK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), LK, zK), { placement: U, crossPlacement: K } = A, S ? FK = PK[I] : K === "right" ? FK += t[z] : K === "center" && (FK += t[z] / 2);
|
|
5035
|
+
let BK = U === "left" || U === "top" ? n[M] : 0, VK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? FK : BK,
|
|
5037
|
+
y: U === "left" || U === "right" ? FK : BK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: NK,
|
|
5042
|
+
arrowOffsetLeft: PK.left,
|
|
5043
|
+
arrowOffsetTop: PK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: VK
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6867,7 +6867,7 @@ Defaulting to \`null\`.`;
|
|
|
6867
6867
|
let e2 = window.getSelection();
|
|
6868
6868
|
(e2 == null ? void 0 : e2.anchorNode) && $d4ee10de306f2510$export$4282f70798064fe0(n.current, e2 == null ? void 0 : e2.anchorNode) && e2.collapse(n.current);
|
|
6869
6869
|
});
|
|
6870
|
-
let
|
|
6870
|
+
let $ = (0, import_react.useRef)("");
|
|
6871
6871
|
$e9faafb641e167db$export$90fc3a17d93f704c(n, "beforeinput", (i2) => {
|
|
6872
6872
|
if (n.current) switch (i2.preventDefault(), i2.inputType) {
|
|
6873
6873
|
case "deleteContentBackward":
|
|
@@ -6875,7 +6875,7 @@ Defaulting to \`null\`.`;
|
|
|
6875
6875
|
E.isValidPartialNumber(e.text) && !t.isReadOnly && O();
|
|
6876
6876
|
break;
|
|
6877
6877
|
case "insertCompositionText":
|
|
6878
|
-
|
|
6878
|
+
$.current = n.current.textContent, n.current.textContent = n.current.textContent;
|
|
6879
6879
|
break;
|
|
6880
6880
|
default:
|
|
6881
6881
|
i2.data != null && J(i2.data);
|
|
@@ -6885,7 +6885,7 @@ Defaulting to \`null\`.`;
|
|
|
6885
6885
|
let { inputType: t2, data: i2 } = e2;
|
|
6886
6886
|
switch (t2) {
|
|
6887
6887
|
case "insertCompositionText":
|
|
6888
|
-
n.current && (n.current.textContent =
|
|
6888
|
+
n.current && (n.current.textContent = $.current), i2 != null && (M(z, i2) || M(U, i2)) && J(i2);
|
|
6889
6889
|
break;
|
|
6890
6890
|
}
|
|
6891
6891
|
}), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let MK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,8 +6907,8 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6911
|
-
"aria-label": `${
|
|
6910
|
+
let NK = $bdb11010cef70236$export$f680877a34711e37(), PK = !t.isDisabled && !t.isReadOnly && e.isEditable, FK = e.type === "literal" ? "" : s.of(e.type), IK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${FK}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
6914
6914
|
if (e.type === "literal") return {
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let LK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
LK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (LK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, IK, {
|
|
6929
|
+
id: NK,
|
|
6930
|
+
...MK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: PK,
|
|
6936
|
+
suppressContentEditableWarning: PK,
|
|
6937
|
+
spellCheck: PK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: PK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: PK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !PK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: LK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -7014,7 +7014,7 @@ Defaulting to \`null\`.`;
|
|
|
7014
7014
|
q.current = true, (n2 = e.onFocus) == null || n2.call(e, t2), (i2 = e.onFocusChange) == null || i2.call(e, true);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a),
|
|
7017
|
+
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a), $ = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
7018
7018
|
return {
|
|
7019
7019
|
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(K, M, d, S, J, {
|
|
7020
7020
|
role: "group",
|
|
@@ -7061,7 +7061,7 @@ Defaulting to \`null\`.`;
|
|
|
7061
7061
|
realtimeValidation: t.realtimeValidation,
|
|
7062
7062
|
displayValidation: t.displayValidation,
|
|
7063
7063
|
updateValidation(e2) {
|
|
7064
|
-
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2,
|
|
7064
|
+
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2, $.current));
|
|
7065
7065
|
},
|
|
7066
7066
|
resetValidation: t.resetValidation,
|
|
7067
7067
|
commitValidation: t.commitValidation
|
|
@@ -7079,7 +7079,7 @@ Defaulting to \`null\`.`;
|
|
|
7079
7079
|
realtimeValidation: t.realtimeValidation,
|
|
7080
7080
|
displayValidation: t.displayValidation,
|
|
7081
7081
|
updateValidation(e2) {
|
|
7082
|
-
|
|
7082
|
+
$.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Q.current, e2));
|
|
7083
7083
|
},
|
|
7084
7084
|
resetValidation: t.resetValidation,
|
|
7085
7085
|
commitValidation: t.commitValidation
|
|
@@ -10173,7 +10173,7 @@ Defaulting to \`null\`.`;
|
|
|
10173
10173
|
function Q(e2) {
|
|
10174
10174
|
e2 = $f62d864046160412$export$4f5203c0d889109e(e2, s, c), A(e2);
|
|
10175
10175
|
}
|
|
10176
|
-
function
|
|
10176
|
+
function $(t2) {
|
|
10177
10177
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
10178
10178
|
let e2 = t2;
|
|
10179
10179
|
if (e2 === null) {
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let MK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), NK = e.isInvalid || e.validationState === "invalid" || MK, PK = NK ? "invalid" : null, FK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10197,7 +10197,7 @@ Defaulting to \`null\`.`;
|
|
|
10197
10197
|
isDisabled: e.isDisabled ?? false,
|
|
10198
10198
|
isReadOnly: e.isReadOnly ?? false,
|
|
10199
10199
|
value: w,
|
|
10200
|
-
setValue:
|
|
10200
|
+
setValue: $,
|
|
10201
10201
|
visibleRange: {
|
|
10202
10202
|
start: M,
|
|
10203
10203
|
end: K
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: PK,
|
|
10210
|
+
isValueInvalid: NK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10232,12 +10232,12 @@ Defaulting to \`null\`.`;
|
|
|
10232
10232
|
}));
|
|
10233
10233
|
},
|
|
10234
10234
|
focusNextPage() {
|
|
10235
|
-
let e2 = M.add(
|
|
10236
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10235
|
+
let e2 = M.add(FK);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(FK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, FK, i, s, c), FK, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract(FK);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(FK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, FK, i, s, c), FK, i));
|
|
10241
10241
|
},
|
|
10242
10242
|
focusSectionStart() {
|
|
10243
10243
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || $(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
$(e2);
|
|
10275
10275
|
},
|
|
10276
10276
|
isFocused: z,
|
|
10277
10277
|
setFocused: U,
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [
|
|
10378
|
-
|
|
10377
|
+
}, [$, MK] = (0, import_react.useState)(false), { isDateUnavailable: NK } = e, PK = (0, import_react.useMemo)(() => !h || v ? false : NK && (NK(h.start) || NK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
NK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), FK = e.isInvalid || e.validationState === "invalid" || PK, IK = FK ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,8 +10388,8 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10392
|
-
isValueInvalid:
|
|
10391
|
+
validationState: IK,
|
|
10392
|
+
isValueInvalid: FK,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10404,8 +10404,8 @@ Defaulting to \`null\`.`;
|
|
|
10404
10404
|
var _a2, _b;
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
|
-
isDragging:
|
|
10408
|
-
setDragging:
|
|
10407
|
+
isDragging: $,
|
|
10408
|
+
setDragging: MK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11587,12 +11587,12 @@ Defaulting to \`null\`.`;
|
|
|
11587
11587
|
q
|
|
11588
11588
|
]), Q = (0, import_react.useMemo)(() => J.resolvedOptions(), [
|
|
11589
11589
|
J
|
|
11590
|
-
]),
|
|
11590
|
+
]), $ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$66aa2b09de4b1ea5(e.placeholderValue, _, S, v), [
|
|
11591
11591
|
e.placeholderValue,
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), MK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11615
|
-
let
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11613
|
+
]), [NK, PK] = (0, import_react.useState)(M), [FK, IK] = (0, import_react.useState)(S), [LK, RK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== NK || w !== LK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, FK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), PK(M), IK(S), RK(w), z(I));
|
|
11615
|
+
let zK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(MK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11620
|
-
let e2 = t2.toValue(M ??
|
|
11621
|
-
if (t2.validate(e2,
|
|
11619
|
+
if (t2.isComplete(MK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? $);
|
|
11621
|
+
if (t2.validate(e2, MK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,83 +11628,83 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
},
|
|
11631
|
+
}, BK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11635
|
+
$
|
|
11636
|
+
]), VK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(BK, I, J, Q, S, t, _), [
|
|
11637
|
+
BK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), HK = (e2, t2) => {
|
|
11645
|
+
zK(I.cycle(e2, t2, $, MK));
|
|
11646
|
+
}, UK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
11649
11649
|
d,
|
|
11650
11650
|
f,
|
|
11651
11651
|
K
|
|
11652
|
-
]),
|
|
11652
|
+
]), WK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: UK
|
|
11656
|
+
}), GK = WK.displayValidation.isInvalid, KK = e.validationState || (GK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...WK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: BK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: zK,
|
|
11664
|
+
segments: VK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: KK,
|
|
11667
|
+
isInvalid: GK,
|
|
11668
11668
|
granularity: _,
|
|
11669
11669
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11670
11670
|
isDisabled: a,
|
|
11671
11671
|
isReadOnly: o,
|
|
11672
11672
|
isRequired: s,
|
|
11673
11673
|
increment(e2) {
|
|
11674
|
-
|
|
11674
|
+
HK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
HK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
HK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
HK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
|
|
11687
|
+
zK(I.set(e2, t2, $));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
zK(I.set(e2, t2, $));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
zK(I.set(e2, t2, $));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11698
|
-
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ??
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(MK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
11702
11702
|
clearSegment(e2) {
|
|
11703
11703
|
let t2 = I;
|
|
11704
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11704
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), zK(t2);
|
|
11705
11705
|
},
|
|
11706
11706
|
formatValue(e2) {
|
|
11707
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11707
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(BK) : "";
|
|
11708
11708
|
},
|
|
11709
11709
|
getDateFormatter(e2, t2) {
|
|
11710
11710
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}),
|
|
11827
|
+
}), $ = Q.displayValidation.isInvalid, MK = e.validationState || ($ ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,8 +11870,8 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11874
|
-
isInvalid:
|
|
11873
|
+
validationState: MK,
|
|
11874
|
+
isInvalid: $,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
11877
11877
|
let i2 = "timeZone" in c.start ? c.start.timeZone : void 0, a2 = e.granularity || (c.start && "minute" in c.start ? "minute" : "day"), o2 = "timeZone" in c.end ? c.end.timeZone : void 0, s2 = e.granularity || (c.end && "minute" in c.end ? "minute" : "day"), d2 = $35a22f14a1f04b11$export$7e319ea407e63bc0(n2, {
|
|
@@ -13827,9 +13827,9 @@ Defaulting to \`null\`.`;
|
|
|
13827
13827
|
t,
|
|
13828
13828
|
i.name
|
|
13829
13829
|
]), null;
|
|
13830
|
-
}), import_compiler_runtime$
|
|
13830
|
+
}), import_compiler_runtime$60 = require_compiler_runtime();
|
|
13831
13831
|
EmotionCacheProvider = (e) => {
|
|
13832
|
-
let t = (0, import_compiler_runtime$
|
|
13832
|
+
let t = (0, import_compiler_runtime$60.c)(6), { container: n, children: i } = e, a;
|
|
13833
13833
|
bb0: {
|
|
13834
13834
|
if (!n) {
|
|
13835
13835
|
let e3;
|
|
@@ -15742,33 +15742,33 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
15745
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, MK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), NK = MK[t], PK = NK || MK, { colorSchemes: FK = _, components: IK = v, cssVarPrefix: LK } = PK, RK = Object.keys(FK).filter((e3) => !!FK[e3]).join(","), zK = import_react.useMemo(() => RK.split(","), [
|
|
15748
|
+
RK
|
|
15749
|
+
]), BK = typeof s == "string" ? s : s.light, VK = typeof s == "string" ? s : s.dark, { mode: HK, setMode: UK, systemMode: WK, lightColorScheme: GK, darkColorScheme: KK, colorScheme: qK, setColorScheme: JK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: zK,
|
|
15751
|
+
defaultLightColorScheme: BK,
|
|
15752
|
+
defaultDarkColorScheme: VK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: FK[BK] && FK[VK] ? U : ((_b = (_a2 = FK[PK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = PK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
|
|
15761
|
-
let
|
|
15759
|
+
}), YK = HK, XK = qK;
|
|
15760
|
+
$ && (YK = Q.mode, XK = Q.colorScheme);
|
|
15761
|
+
let ZK = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15766
|
-
colorSchemes:
|
|
15767
|
-
cssVarPrefix:
|
|
15763
|
+
let e3 = XK || PK.defaultColorScheme, t2 = ((_a3 = PK.generateThemeVars) == null ? void 0 : _a3.call(PK)) || PK.vars, n2 = {
|
|
15764
|
+
...PK,
|
|
15765
|
+
components: IK,
|
|
15766
|
+
colorSchemes: FK,
|
|
15767
|
+
cssVarPrefix: LK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = FK[e3];
|
|
15772
15772
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15773
15773
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15774
15774
|
...n2[e4],
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
]),
|
|
15781
|
+
PK,
|
|
15782
|
+
XK,
|
|
15783
|
+
IK,
|
|
15784
|
+
FK,
|
|
15785
|
+
LK
|
|
15786
|
+
]), QK = PK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
|
-
if (
|
|
15789
|
-
let e3 =
|
|
15790
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
15788
|
+
if (XK && M && QK && QK !== "media") {
|
|
15789
|
+
let e3 = QK, t2 = QK;
|
|
15790
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...zK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", XK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", XK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || zK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(XK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, XK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
|
|
15803
|
-
|
|
15802
|
+
XK,
|
|
15803
|
+
QK,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
zK
|
|
15806
15806
|
]), import_react.useEffect(() => {
|
|
15807
15807
|
let e3;
|
|
15808
15808
|
if (w2 && q.current && A) {
|
|
@@ -15815,48 +15815,48 @@ try {
|
|
|
15815
15815
|
clearTimeout(e3);
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [
|
|
15818
|
-
|
|
15818
|
+
XK,
|
|
15819
15819
|
w2,
|
|
15820
15820
|
A
|
|
15821
15821
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15822
15822
|
q.current = false;
|
|
15823
15823
|
}), []);
|
|
15824
|
-
let
|
|
15825
|
-
allColorSchemes:
|
|
15826
|
-
colorScheme:
|
|
15827
|
-
darkColorScheme:
|
|
15828
|
-
lightColorScheme:
|
|
15829
|
-
mode:
|
|
15830
|
-
setColorScheme:
|
|
15831
|
-
setMode:
|
|
15832
|
-
systemMode:
|
|
15824
|
+
let $K = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: zK,
|
|
15826
|
+
colorScheme: XK,
|
|
15827
|
+
darkColorScheme: KK,
|
|
15828
|
+
lightColorScheme: GK,
|
|
15829
|
+
mode: YK,
|
|
15830
|
+
setColorScheme: JK,
|
|
15831
|
+
setMode: UK,
|
|
15832
|
+
systemMode: WK
|
|
15833
15833
|
}), [
|
|
15834
|
-
OK,
|
|
15835
15834
|
zK,
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15835
|
+
XK,
|
|
15836
|
+
KK,
|
|
15837
|
+
GK,
|
|
15838
|
+
YK,
|
|
15839
|
+
JK,
|
|
15840
|
+
UK,
|
|
15841
|
+
WK,
|
|
15842
|
+
ZK.colorSchemeSelector
|
|
15843
|
+
]), eq = true;
|
|
15844
|
+
(z || PK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === LK) && (eq = false);
|
|
15845
|
+
let tq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15849
|
-
theme:
|
|
15848
|
+
themeId: NK ? t : void 0,
|
|
15849
|
+
theme: ZK,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
eq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = ZK.generateStyleSheets) == null ? void 0 : _d.call(ZK)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return $ ? tq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: $K,
|
|
15859
|
+
children: tq
|
|
15860
15860
|
});
|
|
15861
15861
|
}
|
|
15862
15862
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
17360
|
-
}, []),
|
|
17359
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: MK, onKeyDown: NK, onKeyUp: PK, placeholder: FK, readOnly: IK, renderSuffix: LK, rows: RK, size: zK, slotProps: BK = {}, slots: VK = {}, startAdornment: HK, type: UK = "text", value: WK, ...GK } = n, KK = A.value == null ? WK : A.value, { current: qK } = import_react.useRef(KK != null), JK = import_react.useRef(), YK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), XK = useForkRef_default(JK, M, A.ref, YK), [ZK, QK] = import_react.useState(false), $K = useFormControl(), eq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: $K,
|
|
17363
17363
|
states: [
|
|
17364
17364
|
"color",
|
|
17365
17365
|
"disabled",
|
|
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17370
17370
|
"filled"
|
|
17371
17371
|
]
|
|
17372
17372
|
});
|
|
17373
|
-
|
|
17374
|
-
|
|
17373
|
+
eq.focused = $K ? $K.focused : ZK, import_react.useEffect(() => {
|
|
17374
|
+
!$K && _ && ZK && (QK(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
$K,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
ZK,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let tq = $K && $K.onFilled, nq = $K && $K.onEmpty, rq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? tq && tq() : nq && nq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
tq,
|
|
17385
|
+
nq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
qK && rq({
|
|
17389
|
+
value: KK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
FK,
|
|
17393
17392
|
KK,
|
|
17394
|
-
|
|
17393
|
+
rq,
|
|
17394
|
+
qK
|
|
17395
17395
|
]);
|
|
17396
|
-
let
|
|
17397
|
-
|
|
17398
|
-
},
|
|
17399
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17400
|
-
},
|
|
17401
|
-
if (!
|
|
17402
|
-
let t3 = e2.target ||
|
|
17396
|
+
let iq = (e2) => {
|
|
17397
|
+
MK && MK(e2), A.onFocus && A.onFocus(e2), $K && $K.onFocus ? $K.onFocus(e2) : QK(true);
|
|
17398
|
+
}, aq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), $K && $K.onBlur ? $K.onBlur(e2) : QK(false);
|
|
17400
|
+
}, oq = (e2, ...t2) => {
|
|
17401
|
+
if (!qK) {
|
|
17402
|
+
let t3 = e2.target || JK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
rq({
|
|
17405
17405
|
value: t3.value
|
|
17406
17406
|
});
|
|
17407
17407
|
}
|
|
17408
17408
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17409
17409
|
};
|
|
17410
17410
|
import_react.useEffect(() => {
|
|
17411
|
-
|
|
17411
|
+
rq(JK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let sq = (e2) => {
|
|
17414
|
+
JK.current && e2.currentTarget === e2.target && JK.current.focus(), $ && $(e2);
|
|
17415
|
+
}, cq = O, lq = A;
|
|
17416
|
+
K && cq === "input" && (lq = RK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: RK,
|
|
17419
|
+
maxRows: RK,
|
|
17420
|
+
...lq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...lq
|
|
17426
|
+
}, cq = TextareaAutosize_default);
|
|
17427
|
+
let uq = (e2) => {
|
|
17428
|
+
rq(e2.animationName === "mui-auto-fill-cancel" ? JK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
$K && $K.setAdornedStart(!!HK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
$K,
|
|
17436
|
+
HK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let dq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: eq.color || "primary",
|
|
17441
|
+
disabled: eq.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: eq.error,
|
|
17444
|
+
focused: eq.focused,
|
|
17445
|
+
formControl: $K,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: eq.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: eq.size,
|
|
17450
|
+
startAdornment: HK,
|
|
17451
|
+
type: UK
|
|
17452
|
+
}, fq = useUtilityClasses(dq), pq = VK.root || d.Root || InputBaseRoot, mq = BK.root || f.root || {}, hq = VK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return lq = {
|
|
17454
|
+
...lq,
|
|
17455
|
+
...BK.input ?? f.input
|
|
17456
17456
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17457
17457
|
children: [
|
|
17458
17458
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17459
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17460
|
-
...
|
|
17459
|
+
(0, import_jsx_runtime.jsxs)(pq, {
|
|
17460
|
+
...mq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: sq,
|
|
17463
|
+
...GK,
|
|
17464
|
+
...!isHostComponent_default(pq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...dq,
|
|
17467
|
+
...mq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(fq.root, mq.className, s, IK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
HK,
|
|
17473
17473
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17474
17474
|
value: null,
|
|
17475
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17476
|
-
"aria-invalid":
|
|
17475
|
+
children: (0, import_jsx_runtime.jsx)(hq, {
|
|
17476
|
+
"aria-invalid": eq.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: eq.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: uq,
|
|
17484
17484
|
name: q,
|
|
17485
|
-
placeholder:
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17485
|
+
placeholder: FK,
|
|
17486
|
+
readOnly: IK,
|
|
17487
|
+
required: eq.required,
|
|
17488
|
+
rows: RK,
|
|
17489
|
+
value: KK,
|
|
17490
|
+
onKeyDown: NK,
|
|
17491
|
+
onKeyUp: PK,
|
|
17492
|
+
type: UK,
|
|
17493
|
+
...lq,
|
|
17494
|
+
...!isHostComponent_default(hq) && {
|
|
17495
|
+
as: cq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...dq,
|
|
17498
|
+
...lq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: XK,
|
|
17502
|
+
className: clsx_default(fq.input, lq.className, IK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: aq,
|
|
17504
|
+
onChange: oq,
|
|
17505
|
+
onFocus: iq
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
...
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
LK ? LK({
|
|
17510
|
+
...eq,
|
|
17511
|
+
startAdornment: HK
|
|
17512
17512
|
}) : null
|
|
17513
17513
|
]
|
|
17514
17514
|
})
|
|
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
18588
|
-
|
|
18587
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), MK = useTextColor(), NK = useJsonViewerStore((e2) => e2.colorspace.base0C), PK = useJsonViewerStore((e2) => e2.colorspace.base0A), FK = useJsonViewerStore((e2) => e2.displayComma), IK = useJsonViewerStore((e2) => e2.quotesOnKeys), LK = useJsonViewerStore((e2) => e2.rootName), RK = U === t, zK = Number.isInteger(Number(A)), BK = useJsonViewerStore((e2) => e2.enableAdd), VK = useJsonViewerStore((e2) => e2.onAdd), HK = (0, import_react.useMemo)(() => !VK || a !== void 0 || BK === false || v === false ? false : typeof BK == "function" ? !!BK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
VK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
BK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), UK = useJsonViewerStore((e2) => e2.enableDelete), WK = useJsonViewerStore((e2) => e2.onDelete), GK = (0, import_react.useMemo)(() => !WK || a !== void 0 || RK || UK === false || v === false ? false : typeof UK == "function" ? !!UK(i, t) : UK, [
|
|
18595
|
+
WK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
RK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
UK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), KK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: qK, copied: JK } = useClipboard(), YK = useJsonViewerStore((e2) => e2.highlightUpdates), XK = (0, import_react.useMemo)(() => !YK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
18603
|
+
YK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), ZK = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
ZK.current && XK && "animate" in ZK.current && ZK.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: PK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,40 +18617,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18621
|
-
|
|
18620
|
+
PK,
|
|
18621
|
+
XK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let QK = (0, import_react.useCallback)((e2) => {
|
|
18626
18626
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18627
18627
|
}, [
|
|
18628
18628
|
h,
|
|
18629
18629
|
t
|
|
18630
|
-
]),
|
|
18630
|
+
]), $K = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), eq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
$(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
$,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), tq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18647
18647
|
children: [
|
|
18648
18648
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18649
18649
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18650
18650
|
sx: {
|
|
18651
18651
|
fontSize: ".8rem"
|
|
18652
18652
|
},
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: $K
|
|
18654
18654
|
})
|
|
18655
18655
|
}),
|
|
18656
18656
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18658
18658
|
sx: {
|
|
18659
18659
|
fontSize: ".8rem"
|
|
18660
18660
|
},
|
|
18661
|
-
onClick: () =>
|
|
18661
|
+
onClick: () => eq(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
KK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
qK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: JK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18677
18677
|
sx: {
|
|
18678
18678
|
fontSize: ".8rem"
|
|
18679
18679
|
}
|
|
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18684
18684
|
})
|
|
18685
18685
|
}),
|
|
18686
18686
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18687
|
-
onClick:
|
|
18687
|
+
onClick: QK,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
HK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), VK == null ? void 0 : VK(i);
|
|
18697
18697
|
},
|
|
18698
18698
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18699
18699
|
sx: {
|
|
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18701
18701
|
}
|
|
18702
18702
|
})
|
|
18703
18703
|
}),
|
|
18704
|
-
|
|
18704
|
+
GK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), WK == null ? void 0 : WK(i, t);
|
|
18707
18707
|
},
|
|
18708
18708
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18709
18709
|
sx: {
|
|
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18716
18716
|
f,
|
|
18717
18717
|
h,
|
|
18718
18718
|
_,
|
|
18719
|
-
|
|
18720
|
-
|
|
18719
|
+
JK,
|
|
18720
|
+
qK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18723
|
+
KK,
|
|
18724
|
+
HK,
|
|
18725
|
+
GK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
AK,
|
|
18730
|
-
NK,
|
|
18731
18729
|
VK,
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18730
|
+
WK,
|
|
18731
|
+
QK,
|
|
18732
|
+
$K,
|
|
18733
|
+
eq
|
|
18734
|
+
]), nq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), rq = !nq && !!(c && d), iq = useJsonViewerStore((e2) => e2.keyRenderer), aq = (0, import_react.useMemo)(() => ({
|
|
18737
18737
|
path: i,
|
|
18738
18738
|
inspect: K,
|
|
18739
18739
|
setInspect: q,
|
|
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: MK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
18772
18772
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18773
|
-
e2.isDefaultPrevented() ||
|
|
18773
|
+
e2.isDefaultPrevented() || nq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
nq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
rq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18780
18780
|
className: "data-key-toggle-expanded",
|
|
18781
18781
|
sx: {
|
|
18782
18782
|
fontSize: ".8rem",
|
|
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18794
18794
|
}
|
|
18795
18795
|
}) : null,
|
|
18796
18796
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18797
|
-
ref:
|
|
18797
|
+
ref: ZK,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: RK && O === 0 ? LK === false ? null : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
LK,
|
|
18804
18804
|
'"'
|
|
18805
18805
|
]
|
|
18806
18806
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18807
|
-
children:
|
|
18808
|
-
}) :
|
|
18809
|
-
...
|
|
18810
|
-
}) : a === void 0 && (
|
|
18807
|
+
children: LK
|
|
18808
|
+
}) : iq.when(aq) ? (0, import_jsx_runtime.jsx)(iq, {
|
|
18809
|
+
...aq
|
|
18810
|
+
}) : a === void 0 && (zK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: NK,
|
|
18814
|
+
userSelect: zK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18818
18818
|
children: [
|
|
18819
18819
|
'"',
|
|
18820
18820
|
A,
|
|
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
children: A
|
|
18825
18825
|
}))
|
|
18826
18826
|
}),
|
|
18827
|
-
|
|
18827
|
+
RK ? LK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18828
18828
|
className: "data-key-colon",
|
|
18829
18829
|
sx: {
|
|
18830
18830
|
mr: 0.5
|
|
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18837
18837
|
".data-key-key:empty + &": {
|
|
18838
18838
|
display: "none"
|
|
18839
18839
|
},
|
|
18840
|
-
userSelect:
|
|
18840
|
+
userSelect: zK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...aq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && rq && K && tq
|
|
18848
18848
|
]
|
|
18849
18849
|
}),
|
|
18850
18850
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
18851
18851
|
path: i,
|
|
18852
18852
|
value: w,
|
|
18853
18853
|
setValue: E,
|
|
18854
|
-
abortEditing:
|
|
18855
|
-
commitEditing:
|
|
18854
|
+
abortEditing: $K,
|
|
18855
|
+
commitEditing: eq
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...aq
|
|
18858
18858
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18859
18859
|
component: "span",
|
|
18860
18860
|
className: "data-value-fallback",
|
|
18861
18861
|
children: `fallback: ${t}`
|
|
18862
18862
|
}),
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
|
-
...
|
|
18864
|
+
...aq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && FK && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && rq && !K && tq,
|
|
18870
|
+
I && !rq && tq,
|
|
18871
|
+
!I && J && tq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -18997,9 +18997,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18997
18997
|
})
|
|
18998
18998
|
})
|
|
18999
18999
|
});
|
|
19000
|
-
}, import_compiler_runtime$
|
|
19000
|
+
}, import_compiler_runtime$59 = require_compiler_runtime();
|
|
19001
19001
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
19002
|
-
let t = (0, import_compiler_runtime$
|
|
19002
|
+
let t = (0, import_compiler_runtime$59.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
19003
19003
|
if (!n) return null;
|
|
19004
19004
|
let d = !c, f;
|
|
19005
19005
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -19018,9 +19018,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19018
19018
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
19019
19019
|
});
|
|
19020
19020
|
HtmlOutput.displayName = "HtmlOutput";
|
|
19021
|
-
var import_compiler_runtime$
|
|
19021
|
+
var import_compiler_runtime$58 = require_compiler_runtime();
|
|
19022
19022
|
const ImageOutput = (e) => {
|
|
19023
|
-
let t = (0, import_compiler_runtime$
|
|
19023
|
+
let t = (0, import_compiler_runtime$58.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
19024
19024
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
19025
19025
|
src: n,
|
|
19026
19026
|
alt: c,
|
|
@@ -19033,9 +19033,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19033
19033
|
children: d
|
|
19034
19034
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
19035
19035
|
};
|
|
19036
|
-
var import_compiler_runtime$
|
|
19036
|
+
var import_compiler_runtime$57 = require_compiler_runtime();
|
|
19037
19037
|
Kbd = (e) => {
|
|
19038
|
-
let t = (0, import_compiler_runtime$
|
|
19038
|
+
let t = (0, import_compiler_runtime$57.c)(5), n;
|
|
19039
19039
|
t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
19040
19040
|
let i;
|
|
19041
19041
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -19043,9 +19043,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19043
19043
|
children: e.children
|
|
19044
19044
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
19045
19045
|
};
|
|
19046
|
-
var import_compiler_runtime$
|
|
19046
|
+
var import_compiler_runtime$56 = require_compiler_runtime();
|
|
19047
19047
|
const ExternalLink$1 = (e) => {
|
|
19048
|
-
let t = (0, import_compiler_runtime$
|
|
19048
|
+
let t = (0, import_compiler_runtime$56.c)(3), { href: n, children: i } = e, a;
|
|
19049
19049
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
19050
19050
|
href: n,
|
|
19051
19051
|
target: "_blank",
|
|
@@ -19053,6 +19053,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19053
19053
|
children: i
|
|
19054
19054
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
19055
19055
|
};
|
|
19056
|
+
var MANGLED_LOCAL_BODY = String.raw`_cell_([^\W_][\w-]*?)(_\w*)`, MANGLED_LOCAL_PATTERN = String.raw`(?<!_)${MANGLED_LOCAL_BODY}`;
|
|
19057
|
+
`${MANGLED_LOCAL_BODY}`;
|
|
19058
|
+
var UNANCHORED_RE = new RegExp(MANGLED_LOCAL_PATTERN), GLOBAL_RE = new RegExp(MANGLED_LOCAL_PATTERN, "g");
|
|
19059
|
+
function splitMangledLocals(e) {
|
|
19060
|
+
let t = [];
|
|
19061
|
+
GLOBAL_RE.lastIndex = 0;
|
|
19062
|
+
let n = 0, i = GLOBAL_RE.exec(e);
|
|
19063
|
+
for (; i !== null; ) i.index > n && t.push(e.slice(n, i.index)), t.push({
|
|
19064
|
+
cellId: i[1],
|
|
19065
|
+
name: i[2]
|
|
19066
|
+
}), n = i.index + i[0].length, i = GLOBAL_RE.exec(e);
|
|
19067
|
+
return n < e.length && t.push(e.slice(n)), t;
|
|
19068
|
+
}
|
|
19069
|
+
function containsMangledLocal(e) {
|
|
19070
|
+
return UNANCHORED_RE.test(e);
|
|
19071
|
+
}
|
|
19056
19072
|
atom(null);
|
|
19057
19073
|
const focusPackagesInput = () => {
|
|
19058
19074
|
requestAnimationFrame(() => {
|
|
@@ -19216,17 +19232,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19216
19232
|
os: "os",
|
|
19217
19233
|
re: "re",
|
|
19218
19234
|
sys: "sys"
|
|
19219
|
-
}, import_compiler_runtime$
|
|
19235
|
+
}, import_compiler_runtime$55 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
19220
19236
|
function useFixMode() {
|
|
19221
|
-
let e = (0, import_compiler_runtime$
|
|
19237
|
+
let e = (0, import_compiler_runtime$55.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
19222
19238
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
19223
19239
|
fixMode: t,
|
|
19224
19240
|
setFixMode: n
|
|
19225
19241
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
19226
19242
|
}
|
|
19227
|
-
var import_compiler_runtime$
|
|
19243
|
+
var import_compiler_runtime$54 = require_compiler_runtime();
|
|
19228
19244
|
const AutoFixButton = (e) => {
|
|
19229
|
-
let t = (0, import_compiler_runtime$
|
|
19245
|
+
let t = (0, import_compiler_runtime$54.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), f;
|
|
19230
19246
|
if (t[0] !== d || t[1] !== n) {
|
|
19231
19247
|
let e2;
|
|
19232
19248
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -19287,7 +19303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19287
19303
|
};
|
|
19288
19304
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
19289
19305
|
const AIFixButton = (e) => {
|
|
19290
|
-
let t = (0, import_compiler_runtime$
|
|
19306
|
+
let t = (0, import_compiler_runtime$54.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
19291
19307
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19292
19308
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
19293
19309
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19356,7 +19372,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19356
19372
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
19357
19373
|
};
|
|
19358
19374
|
var AiModeItem = (e) => {
|
|
19359
|
-
let t = (0, import_compiler_runtime$
|
|
19375
|
+
let t = (0, import_compiler_runtime$54.c)(12), { mode: n } = e, i;
|
|
19360
19376
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19361
19377
|
className: "h-4 w-4"
|
|
19362
19378
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19393,9 +19409,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19393
19409
|
function useFilename() {
|
|
19394
19410
|
return useAtomValue(filenameAtom);
|
|
19395
19411
|
}
|
|
19396
|
-
var import_compiler_runtime$
|
|
19412
|
+
var import_compiler_runtime$52 = require_compiler_runtime();
|
|
19397
19413
|
const CellLink = (e) => {
|
|
19398
|
-
let t = (0, import_compiler_runtime$
|
|
19414
|
+
let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$12, y;
|
|
19399
19415
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
19400
19416
|
let S;
|
|
19401
19417
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -19415,13 +19431,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19415
19431
|
children: w
|
|
19416
19432
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = E) : E = t[11], E;
|
|
19417
19433
|
}, CellLinkError = (e) => {
|
|
19418
|
-
let t = (0, import_compiler_runtime$
|
|
19434
|
+
let t = (0, import_compiler_runtime$52.c)(2), n;
|
|
19419
19435
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
19420
19436
|
...e,
|
|
19421
19437
|
variant: "destructive"
|
|
19422
19438
|
}), t[0] = e, t[1] = n), n;
|
|
19423
19439
|
}, CellLinkTraceback = (e) => {
|
|
19424
|
-
let t = (0, import_compiler_runtime$
|
|
19440
|
+
let t = (0, import_compiler_runtime$52.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
19425
19441
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
19426
19442
|
let s;
|
|
19427
19443
|
t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
|
|
@@ -19446,9 +19462,57 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19446
19462
|
o.classList.remove("focus-outline");
|
|
19447
19463
|
}, 2e3)), true);
|
|
19448
19464
|
}
|
|
19449
|
-
function _temp$
|
|
19465
|
+
function _temp$12(e) {
|
|
19450
19466
|
return e;
|
|
19451
19467
|
}
|
|
19468
|
+
var import_compiler_runtime$51 = require_compiler_runtime();
|
|
19469
|
+
const MangledLocalChip = (e) => {
|
|
19470
|
+
let t = (0, import_compiler_runtime$51.c)(12), { local: n } = e, i;
|
|
19471
|
+
t[0] === n.name ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
|
|
19472
|
+
className: "font-code",
|
|
19473
|
+
children: n.name
|
|
19474
|
+
}), t[0] = n.name, t[1] = i);
|
|
19475
|
+
let a;
|
|
19476
|
+
t[2] === n.cellId ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(CellLinkError, {
|
|
19477
|
+
cellId: n.cellId
|
|
19478
|
+
}), t[2] = n.cellId, t[3] = a);
|
|
19479
|
+
let o;
|
|
19480
|
+
t[4] !== i || t[5] !== a ? (o = (0, import_jsx_runtime.jsxs)("div", {
|
|
19481
|
+
className: "max-w-xs",
|
|
19482
|
+
children: [
|
|
19483
|
+
"Local variable ",
|
|
19484
|
+
i,
|
|
19485
|
+
" in cell",
|
|
19486
|
+
" ",
|
|
19487
|
+
a,
|
|
19488
|
+
"."
|
|
19489
|
+
]
|
|
19490
|
+
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6];
|
|
19491
|
+
let s = o, c;
|
|
19492
|
+
t[7] === n.name ? c = t[8] : (c = (0, import_jsx_runtime.jsx)("span", {
|
|
19493
|
+
className: "font-code cursor-help",
|
|
19494
|
+
children: n.name
|
|
19495
|
+
}), t[7] = n.name, t[8] = c);
|
|
19496
|
+
let d;
|
|
19497
|
+
return t[9] !== c || t[10] !== s ? (d = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
19498
|
+
content: s,
|
|
19499
|
+
children: c
|
|
19500
|
+
}), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
|
|
19501
|
+
}, MangledSegments = (e) => {
|
|
19502
|
+
let t = (0, import_compiler_runtime$51.c)(4), { segments: n } = e, i;
|
|
19503
|
+
t[0] === n ? i = t[1] : (i = n.map(_temp$11), t[0] = n, t[1] = i);
|
|
19504
|
+
let a;
|
|
19505
|
+
return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
19506
|
+
children: i
|
|
19507
|
+
}), t[2] = i, t[3] = a), a;
|
|
19508
|
+
};
|
|
19509
|
+
function _temp$11(e, t) {
|
|
19510
|
+
return typeof e == "string" ? (0, import_jsx_runtime.jsx)("span", {
|
|
19511
|
+
children: e
|
|
19512
|
+
}, t) : (0, import_jsx_runtime.jsx)(MangledLocalChip, {
|
|
19513
|
+
local: e
|
|
19514
|
+
}, t);
|
|
19515
|
+
}
|
|
19452
19516
|
const showAddPackageToast = (e, t) => {
|
|
19453
19517
|
toast(t ? {
|
|
19454
19518
|
title: "Failed to add package",
|
|
@@ -19709,18 +19773,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19709
19773
|
}
|
|
19710
19774
|
let _, v, y, S, w, E;
|
|
19711
19775
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== f || t[8] !== c) {
|
|
19712
|
-
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
19713
|
-
t[15] === s ?
|
|
19776
|
+
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), $ = n.filter(_temp16), MK = n.filter(_temp17), NK;
|
|
19777
|
+
t[15] === s ? NK = t[16] : (NK = () => {
|
|
19714
19778
|
s.openApplication("scratchpad");
|
|
19715
|
-
}, t[15] = s, t[16] =
|
|
19716
|
-
let
|
|
19779
|
+
}, t[15] = s, t[16] = NK);
|
|
19780
|
+
let PK = NK, FK = () => {
|
|
19717
19781
|
let t2 = [];
|
|
19718
|
-
if (Q.length > 0 ||
|
|
19782
|
+
if (Q.length > 0 || $.length > 0) {
|
|
19719
19783
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
19720
19784
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19721
19785
|
children: [
|
|
19722
19786
|
Q.map(_temp20),
|
|
19723
|
-
|
|
19787
|
+
$.map(_temp21),
|
|
19724
19788
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19725
19789
|
size: "xs",
|
|
19726
19790
|
variant: "outline",
|
|
@@ -19752,7 +19816,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19752
19816
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19753
19817
|
errors: [
|
|
19754
19818
|
...Q,
|
|
19755
|
-
|
|
19819
|
+
...$
|
|
19756
19820
|
],
|
|
19757
19821
|
cellId: i
|
|
19758
19822
|
})
|
|
@@ -19913,7 +19977,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19913
19977
|
size: "xs",
|
|
19914
19978
|
variant: "link",
|
|
19915
19979
|
className: "my-2 font-normal mx-0 px-0",
|
|
19916
|
-
onClick:
|
|
19980
|
+
onClick: PK,
|
|
19917
19981
|
children: [
|
|
19918
19982
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
19919
19983
|
className: "h-3"
|
|
@@ -20028,23 +20092,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20028
20092
|
cellId: i
|
|
20029
20093
|
})
|
|
20030
20094
|
]
|
|
20031
|
-
}, "ancestor-stopped")),
|
|
20095
|
+
}, "ancestor-stopped")), MK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20032
20096
|
children: [
|
|
20033
|
-
|
|
20097
|
+
MK.map(_temp35),
|
|
20034
20098
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20035
|
-
errors:
|
|
20099
|
+
errors: MK,
|
|
20036
20100
|
cellId: i,
|
|
20037
20101
|
className: "mt-2.5"
|
|
20038
20102
|
})
|
|
20039
20103
|
]
|
|
20040
20104
|
}, "sql-errors")), t2;
|
|
20041
|
-
},
|
|
20042
|
-
t[17] !==
|
|
20043
|
-
className:
|
|
20105
|
+
}, IK = `font-code font-medium tracking-wide ${f}`, LK;
|
|
20106
|
+
t[17] !== IK || t[18] !== c ? (LK = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20107
|
+
className: IK,
|
|
20044
20108
|
children: c
|
|
20045
|
-
}), t[17] =
|
|
20046
|
-
let
|
|
20047
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
20109
|
+
}), t[17] = IK, t[18] = c, t[19] = LK) : LK = t[19];
|
|
20110
|
+
let RK = LK;
|
|
20111
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = RK, v = "flex flex-col gap-8", y = FK(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = f, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
20048
20112
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
20049
20113
|
let O;
|
|
20050
20114
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20237,7 +20301,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20237
20301
|
children: [
|
|
20238
20302
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20239
20303
|
className: "text-muted-foreground",
|
|
20240
|
-
children:
|
|
20304
|
+
children: (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
20305
|
+
segments: splitMangledLocals(e.msg)
|
|
20306
|
+
})
|
|
20241
20307
|
}),
|
|
20242
20308
|
(0, import_jsx_runtime.jsxs)("p", {
|
|
20243
20309
|
className: "text-muted-foreground mt-2",
|
|
@@ -26066,7 +26132,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26066
26132
|
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 }) {
|
|
26067
26133
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26068
26134
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26069
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26135
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), MK = (0, import_react.useRef)({
|
|
26070
26136
|
callbacks: {
|
|
26071
26137
|
onCollapse: f,
|
|
26072
26138
|
onExpand: h,
|
|
@@ -26079,72 +26145,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26079
26145
|
maxSize: c,
|
|
26080
26146
|
minSize: d
|
|
26081
26147
|
},
|
|
26082
|
-
id:
|
|
26148
|
+
id: $,
|
|
26083
26149
|
idIsFromProps: s !== void 0,
|
|
26084
26150
|
order: v
|
|
26085
26151
|
});
|
|
26086
26152
|
(0, import_react.useRef)({
|
|
26087
26153
|
didLogMissingDefaultSizeWarning: false
|
|
26088
26154
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26089
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26155
|
+
let { callbacks: e2, constraints: t2 } = MK.current, o2 = {
|
|
26090
26156
|
...t2
|
|
26091
26157
|
};
|
|
26092
|
-
|
|
26158
|
+
MK.current.id = $, MK.current.idIsFromProps = s !== void 0, MK.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(MK.current, o2);
|
|
26093
26159
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26094
|
-
let e2 =
|
|
26160
|
+
let e2 = MK.current;
|
|
26095
26161
|
return q(e2), () => {
|
|
26096
26162
|
Q(e2);
|
|
26097
26163
|
};
|
|
26098
26164
|
}, [
|
|
26099
26165
|
v,
|
|
26100
|
-
|
|
26166
|
+
$,
|
|
26101
26167
|
q,
|
|
26102
26168
|
Q
|
|
26103
26169
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26104
26170
|
collapse: () => {
|
|
26105
|
-
O(
|
|
26171
|
+
O(MK.current);
|
|
26106
26172
|
},
|
|
26107
26173
|
expand: (e2) => {
|
|
26108
|
-
A(
|
|
26174
|
+
A(MK.current, e2);
|
|
26109
26175
|
},
|
|
26110
26176
|
getId() {
|
|
26111
|
-
return
|
|
26177
|
+
return $;
|
|
26112
26178
|
},
|
|
26113
26179
|
getSize() {
|
|
26114
|
-
return M(
|
|
26180
|
+
return M(MK.current);
|
|
26115
26181
|
},
|
|
26116
26182
|
isCollapsed() {
|
|
26117
|
-
return U(
|
|
26183
|
+
return U(MK.current);
|
|
26118
26184
|
},
|
|
26119
26185
|
isExpanded() {
|
|
26120
|
-
return !U(
|
|
26186
|
+
return !U(MK.current);
|
|
26121
26187
|
},
|
|
26122
26188
|
resize: (e2) => {
|
|
26123
|
-
J(
|
|
26189
|
+
J(MK.current, e2);
|
|
26124
26190
|
}
|
|
26125
26191
|
}), [
|
|
26126
26192
|
O,
|
|
26127
26193
|
A,
|
|
26128
26194
|
M,
|
|
26129
26195
|
U,
|
|
26130
|
-
|
|
26196
|
+
$,
|
|
26131
26197
|
J
|
|
26132
26198
|
]);
|
|
26133
|
-
let
|
|
26199
|
+
let NK = I(MK.current, a);
|
|
26134
26200
|
return (0, import_react.createElement)(S, {
|
|
26135
26201
|
...w,
|
|
26136
26202
|
children: e,
|
|
26137
26203
|
className: t,
|
|
26138
|
-
id:
|
|
26204
|
+
id: $,
|
|
26139
26205
|
style: {
|
|
26140
|
-
...
|
|
26206
|
+
...NK,
|
|
26141
26207
|
...y
|
|
26142
26208
|
},
|
|
26143
26209
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26144
26210
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26145
26211
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26146
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26147
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26212
|
+
[DATA_ATTRIBUTES.panelId]: $,
|
|
26213
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + NK.flexGrow).toFixed(1)
|
|
26148
26214
|
});
|
|
26149
26215
|
}
|
|
26150
26216
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -26917,7 +26983,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26917
26983
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
26918
26984
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
26919
26985
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
26920
|
-
}, []),
|
|
26986
|
+
}, []), $ = (0, import_react.useCallback)((e2, t2) => {
|
|
26921
26987
|
let { panelDataArray: n2 } = K.current;
|
|
26922
26988
|
return computePanelFlexBoxStyle({
|
|
26923
26989
|
defaultSize: t2,
|
|
@@ -26929,13 +26995,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26929
26995
|
}, [
|
|
26930
26996
|
S,
|
|
26931
26997
|
E
|
|
26932
|
-
]),
|
|
26998
|
+
]), MK = (0, import_react.useCallback)((e2) => {
|
|
26933
26999
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26934
27000
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
26935
|
-
}, []),
|
|
27001
|
+
}, []), NK = (0, import_react.useCallback)((e2) => {
|
|
26936
27002
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26937
27003
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
26938
|
-
}, []),
|
|
27004
|
+
}, []), PK = (0, import_react.useCallback)((e2) => {
|
|
26939
27005
|
let { panelDataArray: t2 } = K.current;
|
|
26940
27006
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
26941
27007
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -26967,7 +27033,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26967
27033
|
e2.layout = [];
|
|
26968
27034
|
};
|
|
26969
27035
|
}, []);
|
|
26970
|
-
let
|
|
27036
|
+
let FK = (0, import_react.useCallback)((e2) => {
|
|
26971
27037
|
let t2 = false, n2 = y.current;
|
|
26972
27038
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
26973
27039
|
n3.preventDefault();
|
|
@@ -26985,7 +27051,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26985
27051
|
}), I2 = !compareLayouts(f2, A2);
|
|
26986
27052
|
(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));
|
|
26987
27053
|
};
|
|
26988
|
-
}, []),
|
|
27054
|
+
}, []), IK = (0, import_react.useCallback)((e2, t2) => {
|
|
26989
27055
|
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);
|
|
26990
27056
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
26991
27057
|
let d2 = adjustLayoutByDelta({
|
|
@@ -26997,12 +27063,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26997
27063
|
trigger: "imperative-api"
|
|
26998
27064
|
});
|
|
26999
27065
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27000
|
-
}, []),
|
|
27066
|
+
}, []), LK = (0, import_react.useCallback)((e2, t2) => {
|
|
27001
27067
|
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);
|
|
27002
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27068
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || IK(e2, s2) : h2 < f2 ? IK(e2, f2) : h2 > d2 && IK(e2, d2));
|
|
27003
27069
|
}, [
|
|
27004
|
-
|
|
27005
|
-
]),
|
|
27070
|
+
IK
|
|
27071
|
+
]), RK = (0, import_react.useCallback)((e2, t2) => {
|
|
27006
27072
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27007
27073
|
if (!y.current) return;
|
|
27008
27074
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27014,30 +27080,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27014
27080
|
initialCursorPosition: o2,
|
|
27015
27081
|
initialLayout: i2
|
|
27016
27082
|
});
|
|
27017
|
-
}, []),
|
|
27083
|
+
}, []), zK = (0, import_react.useCallback)(() => {
|
|
27018
27084
|
w(null);
|
|
27019
|
-
}, []),
|
|
27085
|
+
}, []), BK = (0, import_react.useCallback)((e2) => {
|
|
27020
27086
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27021
27087
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27022
27088
|
}, [
|
|
27023
27089
|
A
|
|
27024
|
-
]),
|
|
27090
|
+
]), VK = (0, import_react.useMemo)(() => ({
|
|
27025
27091
|
collapsePanel: q,
|
|
27026
27092
|
direction: i,
|
|
27027
27093
|
dragState: S,
|
|
27028
27094
|
expandPanel: J,
|
|
27029
27095
|
getPanelSize: Q,
|
|
27030
|
-
getPanelStyle:
|
|
27096
|
+
getPanelStyle: $,
|
|
27031
27097
|
groupId: v,
|
|
27032
|
-
isPanelCollapsed:
|
|
27033
|
-
isPanelExpanded:
|
|
27034
|
-
reevaluatePanelConstraints:
|
|
27035
|
-
registerPanel:
|
|
27036
|
-
registerResizeHandle:
|
|
27037
|
-
resizePanel:
|
|
27038
|
-
startDragging:
|
|
27039
|
-
stopDragging:
|
|
27040
|
-
unregisterPanel:
|
|
27098
|
+
isPanelCollapsed: MK,
|
|
27099
|
+
isPanelExpanded: NK,
|
|
27100
|
+
reevaluatePanelConstraints: LK,
|
|
27101
|
+
registerPanel: PK,
|
|
27102
|
+
registerResizeHandle: FK,
|
|
27103
|
+
resizePanel: IK,
|
|
27104
|
+
startDragging: RK,
|
|
27105
|
+
stopDragging: zK,
|
|
27106
|
+
unregisterPanel: BK,
|
|
27041
27107
|
panelGroupElement: y.current
|
|
27042
27108
|
}), [
|
|
27043
27109
|
q,
|
|
@@ -27045,18 +27111,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27045
27111
|
i,
|
|
27046
27112
|
J,
|
|
27047
27113
|
Q,
|
|
27048
|
-
xK,
|
|
27049
|
-
v,
|
|
27050
|
-
SK,
|
|
27051
|
-
CK,
|
|
27052
|
-
EK,
|
|
27053
|
-
wK,
|
|
27054
27114
|
$,
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27115
|
+
v,
|
|
27116
|
+
MK,
|
|
27117
|
+
NK,
|
|
27118
|
+
LK,
|
|
27119
|
+
PK,
|
|
27120
|
+
FK,
|
|
27121
|
+
IK,
|
|
27122
|
+
RK,
|
|
27123
|
+
zK,
|
|
27124
|
+
BK
|
|
27125
|
+
]), HK = {
|
|
27060
27126
|
display: "flex",
|
|
27061
27127
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27062
27128
|
height: "100%",
|
|
@@ -27064,7 +27130,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27064
27130
|
width: "100%"
|
|
27065
27131
|
};
|
|
27066
27132
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27067
|
-
value:
|
|
27133
|
+
value: VK
|
|
27068
27134
|
}, (0, import_react.createElement)(h, {
|
|
27069
27135
|
..._,
|
|
27070
27136
|
children: t,
|
|
@@ -27072,7 +27138,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27072
27138
|
id: o,
|
|
27073
27139
|
ref: y,
|
|
27074
27140
|
style: {
|
|
27075
|
-
...
|
|
27141
|
+
...HK,
|
|
27076
27142
|
...f
|
|
27077
27143
|
},
|
|
27078
27144
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27149,31 +27215,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27149
27215
|
});
|
|
27150
27216
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27151
27217
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27152
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
27218
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, MK] = (0, import_react.useState)(false), [NK, PK] = (0, import_react.useState)(null), FK = (0, import_react.useRef)({
|
|
27153
27219
|
state: J
|
|
27154
27220
|
});
|
|
27155
27221
|
useIsomorphicLayoutEffect$1(() => {
|
|
27156
|
-
|
|
27222
|
+
FK.current.state = J;
|
|
27157
27223
|
}), (0, import_react.useEffect)(() => {
|
|
27158
|
-
if (n)
|
|
27224
|
+
if (n) PK(null);
|
|
27159
27225
|
else {
|
|
27160
27226
|
let e2 = I(q);
|
|
27161
|
-
|
|
27227
|
+
PK(() => e2);
|
|
27162
27228
|
}
|
|
27163
27229
|
}, [
|
|
27164
27230
|
n,
|
|
27165
27231
|
q,
|
|
27166
27232
|
I
|
|
27167
27233
|
]);
|
|
27168
|
-
let
|
|
27234
|
+
let IK = (i == null ? void 0 : i.coarse) ?? 15, LK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27169
27235
|
(0, import_react.useEffect)(() => {
|
|
27170
|
-
if (n ||
|
|
27236
|
+
if (n || NK == null) return;
|
|
27171
27237
|
let e2 = w.current;
|
|
27172
27238
|
assert(e2, "Element ref not attached");
|
|
27173
27239
|
let t2 = false;
|
|
27174
27240
|
return registerResizeHandle(q, e2, A, {
|
|
27175
|
-
coarse:
|
|
27176
|
-
fine:
|
|
27241
|
+
coarse: IK,
|
|
27242
|
+
fine: LK
|
|
27177
27243
|
}, (e3, n2, i2) => {
|
|
27178
27244
|
if (!n2) {
|
|
27179
27245
|
Q("inactive");
|
|
@@ -27187,8 +27253,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27187
27253
|
break;
|
|
27188
27254
|
}
|
|
27189
27255
|
case "move": {
|
|
27190
|
-
let { state: e4 } =
|
|
27191
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27256
|
+
let { state: e4 } = FK.current;
|
|
27257
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), NK(i2);
|
|
27192
27258
|
break;
|
|
27193
27259
|
}
|
|
27194
27260
|
case "up": {
|
|
@@ -27200,22 +27266,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27200
27266
|
}
|
|
27201
27267
|
});
|
|
27202
27268
|
}, [
|
|
27203
|
-
|
|
27269
|
+
IK,
|
|
27204
27270
|
A,
|
|
27205
27271
|
n,
|
|
27206
|
-
|
|
27272
|
+
LK,
|
|
27207
27273
|
I,
|
|
27208
27274
|
q,
|
|
27209
|
-
|
|
27275
|
+
NK,
|
|
27210
27276
|
z,
|
|
27211
27277
|
U
|
|
27212
27278
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27213
27279
|
disabled: n,
|
|
27214
27280
|
handleId: q,
|
|
27215
|
-
resizeHandler:
|
|
27281
|
+
resizeHandler: NK,
|
|
27216
27282
|
panelGroupElement: K
|
|
27217
27283
|
});
|
|
27218
|
-
let
|
|
27284
|
+
let RK = {
|
|
27219
27285
|
touchAction: "none",
|
|
27220
27286
|
userSelect: "none"
|
|
27221
27287
|
};
|
|
@@ -27225,22 +27291,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27225
27291
|
className: t,
|
|
27226
27292
|
id: a,
|
|
27227
27293
|
onBlur: () => {
|
|
27228
|
-
|
|
27294
|
+
MK(false), o == null ? void 0 : o();
|
|
27229
27295
|
},
|
|
27230
27296
|
onFocus: () => {
|
|
27231
|
-
|
|
27297
|
+
MK(true), d == null ? void 0 : d();
|
|
27232
27298
|
},
|
|
27233
27299
|
ref: w,
|
|
27234
27300
|
role: "separator",
|
|
27235
27301
|
style: {
|
|
27236
|
-
...
|
|
27302
|
+
...RK,
|
|
27237
27303
|
..._
|
|
27238
27304
|
},
|
|
27239
27305
|
tabIndex: v,
|
|
27240
27306
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27241
27307
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27242
27308
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27243
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27309
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : $ ? "keyboard" : void 0,
|
|
27244
27310
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27245
27311
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27246
27312
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27532,7 +27598,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27532
27598
|
}, [
|
|
27533
27599
|
h
|
|
27534
27600
|
]), k(() => {
|
|
27535
|
-
U(6,
|
|
27601
|
+
U(6, NK);
|
|
27536
27602
|
}, []);
|
|
27537
27603
|
let K = import_react.useMemo(() => ({
|
|
27538
27604
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27541,7 +27607,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27541
27607
|
var _a2;
|
|
27542
27608
|
var a2, o2, s2;
|
|
27543
27609
|
if (!Object.is(n.current[e2], t2)) {
|
|
27544
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27610
|
+
if (n.current[e2] = t2, e2 === "search") MK(), Q(), U(1, $);
|
|
27545
27611
|
else if (e2 === "value") {
|
|
27546
27612
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27547
27613
|
let e3 = document.getElementById(I);
|
|
@@ -27549,8 +27615,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27549
27615
|
}
|
|
27550
27616
|
if (U(7, () => {
|
|
27551
27617
|
var _a3;
|
|
27552
|
-
n.current.selectedItemId = (_a3 =
|
|
27553
|
-
}), i2 || U(5,
|
|
27618
|
+
n.current.selectedItemId = (_a3 = PK()) == null ? void 0 : _a3.id, K.emit();
|
|
27619
|
+
}), i2 || U(5, NK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27554
27620
|
let e3 = t2 ?? "";
|
|
27555
27621
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27556
27622
|
return;
|
|
@@ -27575,12 +27641,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27575
27641
|
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([
|
|
27576
27642
|
e2
|
|
27577
27643
|
]))), U(3, () => {
|
|
27578
|
-
|
|
27644
|
+
MK(), Q(), n.current.value || $(), K.emit();
|
|
27579
27645
|
}), () => {
|
|
27580
27646
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27581
|
-
let t3 =
|
|
27647
|
+
let t3 = PK();
|
|
27582
27648
|
U(4, () => {
|
|
27583
|
-
|
|
27649
|
+
MK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
27584
27650
|
});
|
|
27585
27651
|
}),
|
|
27586
27652
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27613,7 +27679,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27613
27679
|
]);
|
|
27614
27680
|
});
|
|
27615
27681
|
let i2 = z.current;
|
|
27616
|
-
|
|
27682
|
+
FK().sort((t3, n2) => {
|
|
27617
27683
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27618
27684
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27619
27685
|
}).forEach((e3) => {
|
|
@@ -27625,12 +27691,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27625
27691
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27626
27692
|
});
|
|
27627
27693
|
}
|
|
27628
|
-
function
|
|
27694
|
+
function $() {
|
|
27629
27695
|
var _a2;
|
|
27630
|
-
let e2 = (_a2 =
|
|
27696
|
+
let e2 = (_a2 = FK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27631
27697
|
K.setState("value", e2 || void 0);
|
|
27632
27698
|
}
|
|
27633
|
-
function
|
|
27699
|
+
function MK() {
|
|
27634
27700
|
var _a2, _b;
|
|
27635
27701
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27636
27702
|
n.current.filtered.count = i.current.size;
|
|
@@ -27648,43 +27714,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27648
27714
|
}
|
|
27649
27715
|
n.current.filtered.count = e2;
|
|
27650
27716
|
}
|
|
27651
|
-
function
|
|
27717
|
+
function NK() {
|
|
27652
27718
|
var _a2, _b;
|
|
27653
27719
|
var e2;
|
|
27654
|
-
let t2 =
|
|
27720
|
+
let t2 = PK();
|
|
27655
27721
|
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({
|
|
27656
27722
|
block: "nearest"
|
|
27657
27723
|
})), t2.scrollIntoView({
|
|
27658
27724
|
block: "nearest"
|
|
27659
27725
|
}));
|
|
27660
27726
|
}
|
|
27661
|
-
function
|
|
27727
|
+
function PK() {
|
|
27662
27728
|
var _a2;
|
|
27663
27729
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27664
27730
|
}
|
|
27665
|
-
function
|
|
27731
|
+
function FK() {
|
|
27666
27732
|
var _a2;
|
|
27667
27733
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27668
27734
|
}
|
|
27669
|
-
function
|
|
27670
|
-
let t2 =
|
|
27735
|
+
function IK(e2) {
|
|
27736
|
+
let t2 = FK()[e2];
|
|
27671
27737
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27672
27738
|
}
|
|
27673
|
-
function
|
|
27739
|
+
function LK(e2) {
|
|
27674
27740
|
var t2;
|
|
27675
|
-
let n2 =
|
|
27741
|
+
let n2 = PK(), i2 = FK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27676
27742
|
(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));
|
|
27677
27743
|
}
|
|
27678
|
-
function
|
|
27744
|
+
function RK(e2) {
|
|
27679
27745
|
var _a2;
|
|
27680
|
-
let t2 = (_a2 =
|
|
27746
|
+
let t2 = (_a2 = PK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27681
27747
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27682
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27748
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : LK(e2);
|
|
27683
27749
|
}
|
|
27684
|
-
let
|
|
27685
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27686
|
-
},
|
|
27687
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27750
|
+
let zK = () => IK(FK().length - 1), BK = (e2) => {
|
|
27751
|
+
e2.preventDefault(), e2.metaKey ? zK() : e2.altKey ? RK(1) : LK(1);
|
|
27752
|
+
}, VK = (e2) => {
|
|
27753
|
+
e2.preventDefault(), e2.metaKey ? IK(0) : e2.altKey ? RK(-1) : LK(-1);
|
|
27688
27754
|
};
|
|
27689
27755
|
return import_react.createElement(Primitive.div, {
|
|
27690
27756
|
ref: t,
|
|
@@ -27698,27 +27764,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27698
27764
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27699
27765
|
case "n":
|
|
27700
27766
|
case "j":
|
|
27701
|
-
E && e2.ctrlKey &&
|
|
27767
|
+
E && e2.ctrlKey && BK(e2);
|
|
27702
27768
|
break;
|
|
27703
27769
|
case "ArrowDown":
|
|
27704
|
-
|
|
27770
|
+
BK(e2);
|
|
27705
27771
|
break;
|
|
27706
27772
|
case "p":
|
|
27707
27773
|
case "k":
|
|
27708
|
-
E && e2.ctrlKey &&
|
|
27774
|
+
E && e2.ctrlKey && VK(e2);
|
|
27709
27775
|
break;
|
|
27710
27776
|
case "ArrowUp":
|
|
27711
|
-
|
|
27777
|
+
VK(e2);
|
|
27712
27778
|
break;
|
|
27713
27779
|
case "Home":
|
|
27714
|
-
e2.preventDefault(),
|
|
27780
|
+
e2.preventDefault(), IK(0);
|
|
27715
27781
|
break;
|
|
27716
27782
|
case "End":
|
|
27717
|
-
e2.preventDefault(),
|
|
27783
|
+
e2.preventDefault(), zK();
|
|
27718
27784
|
break;
|
|
27719
27785
|
case "Enter": {
|
|
27720
27786
|
e2.preventDefault();
|
|
27721
|
-
let t3 =
|
|
27787
|
+
let t3 = PK();
|
|
27722
27788
|
if (t3) {
|
|
27723
27789
|
let e3 = new Event(Z);
|
|
27724
27790
|
t3.dispatchEvent(e3);
|
|
@@ -28127,153 +28193,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28127
28193
|
Combobox = (e) => {
|
|
28128
28194
|
let t = (0, import_compiler_runtime$30.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28129
28195
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28130
|
-
let Q = M === void 0 ? false : M,
|
|
28131
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28196
|
+
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, MK = z === void 0 ? "Search..." : z, NK = U === void 0 ? "Nothing found." : U, PK = K === void 0 ? false : K, FK = q === void 0 ? false : q, IK = s ?? false, LK;
|
|
28197
|
+
t[24] !== v || t[25] !== w || t[26] !== IK ? (LK = {
|
|
28132
28198
|
prop: w,
|
|
28133
|
-
defaultProp:
|
|
28199
|
+
defaultProp: IK,
|
|
28134
28200
|
onChange: v
|
|
28135
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28136
|
-
let [
|
|
28137
|
-
t[28] === S ?
|
|
28201
|
+
}, t[24] = v, t[25] = w, t[26] = IK, t[27] = LK) : LK = t[27];
|
|
28202
|
+
let [RK, zK] = useControllableState(LK), BK = RK === void 0 ? false : RK, VK;
|
|
28203
|
+
t[28] === S ? VK = t[29] : (VK = (e2) => {
|
|
28138
28204
|
S == null ? void 0 : S(e2);
|
|
28139
|
-
}, t[28] = S, t[29] =
|
|
28140
|
-
let
|
|
28141
|
-
t[30] !== c || t[31] !==
|
|
28205
|
+
}, t[28] = S, t[29] = VK);
|
|
28206
|
+
let HK;
|
|
28207
|
+
t[30] !== c || t[31] !== VK || t[32] !== J ? (HK = {
|
|
28142
28208
|
prop: J,
|
|
28143
28209
|
defaultProp: c,
|
|
28144
|
-
onChange:
|
|
28145
|
-
}, t[30] = c, t[31] =
|
|
28146
|
-
let [
|
|
28147
|
-
t[34] ===
|
|
28148
|
-
let
|
|
28149
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28210
|
+
onChange: VK
|
|
28211
|
+
}, t[30] = c, t[31] = VK, t[32] = J, t[33] = HK) : HK = t[33];
|
|
28212
|
+
let [UK, WK] = useControllableState(HK), GK;
|
|
28213
|
+
t[34] === UK ? GK = t[35] : (GK = (e2) => Array.isArray(UK) ? UK.includes(e2) : UK === e2, t[34] = UK, t[35] = GK);
|
|
28214
|
+
let KK = GK, qK;
|
|
28215
|
+
t[36] !== _ || t[37] !== Q || t[38] !== zK || t[39] !== WK || t[40] !== UK ? (qK = (e2) => {
|
|
28150
28216
|
let t2 = e2;
|
|
28151
|
-
if (Q) if (Array.isArray(
|
|
28152
|
-
let n2 =
|
|
28217
|
+
if (Q) if (Array.isArray(UK)) if (UK.includes(t2)) {
|
|
28218
|
+
let n2 = UK.filter((t3) => t3 !== e2);
|
|
28153
28219
|
t2 = n2.length > 0 ? n2 : [];
|
|
28154
28220
|
} else t2 = [
|
|
28155
|
-
...
|
|
28221
|
+
...UK,
|
|
28156
28222
|
t2
|
|
28157
28223
|
];
|
|
28158
28224
|
else t2 = [
|
|
28159
28225
|
t2
|
|
28160
28226
|
];
|
|
28161
|
-
else
|
|
28162
|
-
|
|
28163
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28164
|
-
let
|
|
28165
|
-
t[42] !==
|
|
28166
|
-
let
|
|
28167
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28168
|
-
let
|
|
28169
|
-
t[49] !==
|
|
28170
|
-
|
|
28171
|
-
}, t[49] =
|
|
28172
|
-
let
|
|
28173
|
-
t[52] !== o || t[53] !==
|
|
28174
|
-
let
|
|
28175
|
-
t[55] ===
|
|
28176
|
-
let
|
|
28177
|
-
t[57] ===
|
|
28227
|
+
else UK === e2 && (t2 = null);
|
|
28228
|
+
WK(t2), (_ ?? Q) || zK(false);
|
|
28229
|
+
}, t[36] = _, t[37] = Q, t[38] = zK, t[39] = WK, t[40] = UK, t[41] = qK) : qK = t[41];
|
|
28230
|
+
let JK = qK, YK;
|
|
28231
|
+
t[42] !== PK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== UK ? (YK = () => Q && PK && E ? E : UK == null ? E ?? "--" : Array.isArray(UK) ? UK.length === 0 ? E ?? "--" : UK.length === 1 && d !== void 0 ? d(UK[0]) : `${UK.length} selected` : d === void 0 ? E ?? "--" : d(UK), t[42] = PK, t[43] = d, t[44] = Q, t[45] = E, t[46] = UK, t[47] = YK) : YK = t[47];
|
|
28232
|
+
let XK = YK, ZK;
|
|
28233
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZK = cn("relative"), t[48] = ZK) : ZK = t[48];
|
|
28234
|
+
let QK;
|
|
28235
|
+
t[49] !== FK || t[50] !== zK ? (QK = (e2) => {
|
|
28236
|
+
FK && e2 || zK(e2);
|
|
28237
|
+
}, t[49] = FK, t[50] = zK, t[51] = QK) : QK = t[51];
|
|
28238
|
+
let $K = FK && "cursor-not-allowed opacity-50", eq;
|
|
28239
|
+
t[52] !== o || t[53] !== $K ? (eq = 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", $K, o), t[52] = o, t[53] = $K, t[54] = eq) : eq = t[54];
|
|
28240
|
+
let nq;
|
|
28241
|
+
t[55] === XK ? nq = t[56] : (nq = XK(), t[55] = XK, t[56] = nq);
|
|
28242
|
+
let rq;
|
|
28243
|
+
t[57] === nq ? rq = t[58] : (rq = (0, import_jsx_runtime.jsx)("span", {
|
|
28178
28244
|
className: "truncate flex-1 min-w-0",
|
|
28179
|
-
children:
|
|
28180
|
-
}), t[57] =
|
|
28181
|
-
let
|
|
28182
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28245
|
+
children: nq
|
|
28246
|
+
}), t[57] = nq, t[58] = rq);
|
|
28247
|
+
let aq;
|
|
28248
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28183
28249
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28184
|
-
}), t[59] =
|
|
28185
|
-
let
|
|
28186
|
-
t[60] !==
|
|
28250
|
+
}), t[59] = aq) : aq = t[59];
|
|
28251
|
+
let oq;
|
|
28252
|
+
t[60] !== FK || t[61] !== h || t[62] !== BK || t[63] !== eq || t[64] !== rq ? (oq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28187
28253
|
asChild: true,
|
|
28188
28254
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28189
28255
|
id: h,
|
|
28190
28256
|
type: "button",
|
|
28191
|
-
className:
|
|
28192
|
-
"aria-expanded":
|
|
28193
|
-
"aria-disabled":
|
|
28257
|
+
className: eq,
|
|
28258
|
+
"aria-expanded": BK,
|
|
28259
|
+
"aria-disabled": FK,
|
|
28194
28260
|
children: [
|
|
28195
|
-
|
|
28196
|
-
|
|
28261
|
+
rq,
|
|
28262
|
+
aq
|
|
28197
28263
|
]
|
|
28198
28264
|
})
|
|
28199
|
-
}), t[60] =
|
|
28200
|
-
let
|
|
28201
|
-
t[66] !==
|
|
28202
|
-
placeholder:
|
|
28265
|
+
}), t[60] = FK, t[61] = h, t[62] = BK, t[63] = eq, t[64] = rq, t[65] = oq) : oq = t[65];
|
|
28266
|
+
let sq;
|
|
28267
|
+
t[66] !== MK || t[67] !== y || t[68] !== A ? (sq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28268
|
+
placeholder: MK,
|
|
28203
28269
|
rootClassName: "px-1 h-8",
|
|
28204
28270
|
autoFocus: true,
|
|
28205
28271
|
value: A,
|
|
28206
28272
|
onValueChange: y
|
|
28207
|
-
}), t[66] =
|
|
28208
|
-
let
|
|
28209
|
-
t[70] ===
|
|
28210
|
-
children:
|
|
28211
|
-
}), t[70] =
|
|
28212
|
-
let
|
|
28213
|
-
t[72] !==
|
|
28214
|
-
isSelected:
|
|
28215
|
-
onSelect:
|
|
28216
|
-
}, t[72] =
|
|
28217
|
-
let
|
|
28218
|
-
t[75] !== n || t[76] !==
|
|
28219
|
-
value:
|
|
28273
|
+
}), t[66] = MK, t[67] = y, t[68] = A, t[69] = sq) : sq = t[69];
|
|
28274
|
+
let cq;
|
|
28275
|
+
t[70] === NK ? cq = t[71] : (cq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28276
|
+
children: NK
|
|
28277
|
+
}), t[70] = NK, t[71] = cq);
|
|
28278
|
+
let lq;
|
|
28279
|
+
t[72] !== JK || t[73] !== KK ? (lq = {
|
|
28280
|
+
isSelected: KK,
|
|
28281
|
+
onSelect: JK
|
|
28282
|
+
}, t[72] = JK, t[73] = KK, t[74] = lq) : lq = t[74];
|
|
28283
|
+
let uq;
|
|
28284
|
+
t[75] !== n || t[76] !== lq ? (uq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28285
|
+
value: lq,
|
|
28220
28286
|
children: n
|
|
28221
|
-
}), t[75] = n, t[76] =
|
|
28222
|
-
let
|
|
28223
|
-
t[78] !==
|
|
28287
|
+
}), t[75] = n, t[76] = lq, t[77] = uq) : uq = t[77];
|
|
28288
|
+
let dq;
|
|
28289
|
+
t[78] !== cq || t[79] !== uq ? (dq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28224
28290
|
className: "max-h-60 py-.5",
|
|
28225
28291
|
children: [
|
|
28226
|
-
|
|
28227
|
-
|
|
28292
|
+
cq,
|
|
28293
|
+
uq
|
|
28228
28294
|
]
|
|
28229
|
-
}), t[78] =
|
|
28230
|
-
let
|
|
28231
|
-
t[81] !== f || t[82] !==
|
|
28295
|
+
}), t[78] = cq, t[79] = uq, t[80] = dq) : dq = t[80];
|
|
28296
|
+
let fq;
|
|
28297
|
+
t[81] !== f || t[82] !== $ || t[83] !== sq || t[84] !== dq ? (fq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28232
28298
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28233
28299
|
align: "start",
|
|
28234
28300
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28235
28301
|
filter: f,
|
|
28236
|
-
shouldFilter:
|
|
28302
|
+
shouldFilter: $,
|
|
28237
28303
|
children: [
|
|
28238
|
-
|
|
28239
|
-
|
|
28304
|
+
sq,
|
|
28305
|
+
dq
|
|
28240
28306
|
]
|
|
28241
28307
|
})
|
|
28242
|
-
}), t[81] = f, t[82] =
|
|
28243
|
-
let
|
|
28244
|
-
t[86] !==
|
|
28245
|
-
open:
|
|
28246
|
-
onOpenChange:
|
|
28308
|
+
}), t[81] = f, t[82] = $, t[83] = sq, t[84] = dq, t[85] = fq) : fq = t[85];
|
|
28309
|
+
let pq;
|
|
28310
|
+
t[86] !== BK || t[87] !== QK || t[88] !== oq || t[89] !== fq ? (pq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28311
|
+
open: BK,
|
|
28312
|
+
onOpenChange: QK,
|
|
28247
28313
|
children: [
|
|
28248
|
-
|
|
28249
|
-
|
|
28314
|
+
oq,
|
|
28315
|
+
fq
|
|
28250
28316
|
]
|
|
28251
|
-
}), t[86] =
|
|
28252
|
-
let
|
|
28253
|
-
t[91] !==
|
|
28317
|
+
}), t[86] = BK, t[87] = QK, t[88] = oq, t[89] = fq, t[90] = pq) : pq = t[90];
|
|
28318
|
+
let mq;
|
|
28319
|
+
t[91] !== PK || t[92] !== i || t[93] !== FK || t[94] !== d || t[95] !== JK || t[96] !== Q || t[97] !== UK ? (mq = Q && PK && (0, import_jsx_runtime.jsx)("div", {
|
|
28254
28320
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28255
|
-
children: Array.isArray(
|
|
28321
|
+
children: Array.isArray(UK) && UK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28256
28322
|
variant: "secondary",
|
|
28257
28323
|
children: [
|
|
28258
28324
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28259
28325
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28260
28326
|
onClick: () => {
|
|
28261
|
-
|
|
28327
|
+
FK || JK(e2);
|
|
28262
28328
|
},
|
|
28263
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28329
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", FK && "pointer-events-none")
|
|
28264
28330
|
})
|
|
28265
28331
|
]
|
|
28266
28332
|
}, String(e2)))
|
|
28267
|
-
}), t[91] =
|
|
28268
|
-
let
|
|
28269
|
-
return t[99] !== O || t[100] !==
|
|
28270
|
-
className:
|
|
28333
|
+
}), t[91] = PK, t[92] = i, t[93] = FK, t[94] = d, t[95] = JK, t[96] = Q, t[97] = UK, t[98] = mq) : mq = t[98];
|
|
28334
|
+
let hq;
|
|
28335
|
+
return t[99] !== O || t[100] !== pq || t[101] !== mq ? (hq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28336
|
+
className: ZK,
|
|
28271
28337
|
...O,
|
|
28272
28338
|
children: [
|
|
28273
|
-
|
|
28274
|
-
|
|
28339
|
+
pq,
|
|
28340
|
+
mq
|
|
28275
28341
|
]
|
|
28276
|
-
}), t[99] = O, t[100] =
|
|
28342
|
+
}), t[99] = O, t[100] = pq, t[101] = mq, t[102] = hq) : hq = t[102], hq;
|
|
28277
28343
|
};
|
|
28278
28344
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28279
28345
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29401,13 +29467,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29401
29467
|
id: v,
|
|
29402
29468
|
operator: e2
|
|
29403
29469
|
});
|
|
29404
|
-
},
|
|
29470
|
+
}, $ = buildFilterValue({
|
|
29405
29471
|
type: S,
|
|
29406
29472
|
operator: E,
|
|
29407
29473
|
draft: mergeNumberTextDraft(A, I)
|
|
29408
|
-
}),
|
|
29409
|
-
if (
|
|
29410
|
-
let e2 =
|
|
29474
|
+
}), MK = $ === void 0, NK = MK ? getMissingValueMessage(S, E) : "Apply filter", PK = () => {
|
|
29475
|
+
if (!$) return;
|
|
29476
|
+
let e2 = $;
|
|
29411
29477
|
t.setColumnFilters((t2) => {
|
|
29412
29478
|
if (a === void 0) return [
|
|
29413
29479
|
{
|
|
@@ -29424,20 +29490,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29424
29490
|
value: e2
|
|
29425
29491
|
}, n2;
|
|
29426
29492
|
}), i();
|
|
29427
|
-
},
|
|
29493
|
+
}, FK = () => {
|
|
29428
29494
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29429
|
-
},
|
|
29495
|
+
}, IK = !OPERATORS_WITHOUT_VALUE.has(E), LK = OPERATORS_BY_TYPE[S], RK = (0, import_react.useRef)(null), zK = (0, import_react.useRef)(null);
|
|
29430
29496
|
return (0, import_react.useEffect)(() => {
|
|
29431
29497
|
var _a2, _b;
|
|
29432
|
-
let e2 = (_a2 =
|
|
29433
|
-
e2 ? e2.focus() : (_b =
|
|
29498
|
+
let e2 = (_a2 = RK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29499
|
+
e2 ? e2.focus() : (_b = zK.current) == null ? void 0 : _b.focus();
|
|
29434
29500
|
}, [
|
|
29435
29501
|
S,
|
|
29436
29502
|
E
|
|
29437
29503
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29438
29504
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29439
29505
|
onSubmit: (e2) => {
|
|
29440
|
-
e2.preventDefault(),
|
|
29506
|
+
e2.preventDefault(), PK();
|
|
29441
29507
|
},
|
|
29442
29508
|
onKeyDownCapture: (e2) => {
|
|
29443
29509
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29478,13 +29544,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29478
29544
|
onValueChange: (e2) => Q(e2),
|
|
29479
29545
|
children: [
|
|
29480
29546
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29481
|
-
ref:
|
|
29547
|
+
ref: zK,
|
|
29482
29548
|
id: s,
|
|
29483
29549
|
className: "h-6 mb-1 bg-transparent",
|
|
29484
29550
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29485
29551
|
}),
|
|
29486
29552
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29487
|
-
children:
|
|
29553
|
+
children: LK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29488
29554
|
value: e2,
|
|
29489
29555
|
children: OPERATOR_LABELS[e2]
|
|
29490
29556
|
}, e2))
|
|
@@ -29493,8 +29559,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29493
29559
|
}, S)
|
|
29494
29560
|
]
|
|
29495
29561
|
}),
|
|
29496
|
-
|
|
29497
|
-
ref:
|
|
29562
|
+
IK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29563
|
+
ref: RK,
|
|
29498
29564
|
className: "flex flex-col gap-1",
|
|
29499
29565
|
children: [
|
|
29500
29566
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29521,14 +29587,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29521
29587
|
className: "flex gap-1 mb-1",
|
|
29522
29588
|
children: [
|
|
29523
29589
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29524
|
-
content:
|
|
29590
|
+
content: NK,
|
|
29525
29591
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29526
29592
|
className: "inline-flex",
|
|
29527
29593
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29528
29594
|
type: "submit",
|
|
29529
29595
|
size: "icon",
|
|
29530
29596
|
variant: "ghost",
|
|
29531
|
-
disabled:
|
|
29597
|
+
disabled: MK,
|
|
29532
29598
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29533
29599
|
"aria-label": "Apply filter",
|
|
29534
29600
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29560,7 +29626,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29560
29626
|
size: "icon",
|
|
29561
29627
|
variant: "ghost",
|
|
29562
29628
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29563
|
-
onClick:
|
|
29629
|
+
onClick: FK,
|
|
29564
29630
|
"aria-label": "Remove filter",
|
|
29565
29631
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29566
29632
|
className: "h-3.5 w-3.5",
|
|
@@ -32829,7 +32895,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32829
32895
|
filename: i2.filename
|
|
32830
32896
|
};
|
|
32831
32897
|
}, t[6] = e, t[7] = S);
|
|
32832
|
-
let O = S, A, M, I, z, U, K, q, J, Q,
|
|
32898
|
+
let O = S, A, M, I, z, U, K, q, J, Q, $, MK, NK, PK;
|
|
32833
32899
|
if (t[8] !== y || t[9] !== c || t[10] !== n || t[11] !== i || t[12] !== (s == null ? void 0 : s.unavailableMessage) || t[13] !== O) {
|
|
32834
32900
|
let e2 = async (t2) => {
|
|
32835
32901
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -32897,10 +32963,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32897
32963
|
content: d2,
|
|
32898
32964
|
open: f2,
|
|
32899
32965
|
children: v2
|
|
32900
|
-
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom",
|
|
32966
|
+
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom", $ = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32901
32967
|
className: "text-xs text-muted-foreground",
|
|
32902
32968
|
children: "Download"
|
|
32903
|
-
}), t[37] =
|
|
32969
|
+
}), t[37] = MK) : MK = t[37], NK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32904
32970
|
onSelect: () => {
|
|
32905
32971
|
e2(t2.format);
|
|
32906
32972
|
},
|
|
@@ -32921,10 +32987,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32921
32987
|
]
|
|
32922
32988
|
})
|
|
32923
32989
|
]
|
|
32924
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32990
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), I = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32925
32991
|
className: "text-xs text-muted-foreground",
|
|
32926
32992
|
children: "Copy to clipboard"
|
|
32927
|
-
}), t[38] = I, t[39] =
|
|
32993
|
+
}), t[38] = I, t[39] = PK) : (I = t[38], PK = t[39]), z = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32928
32994
|
onSelect: async () => {
|
|
32929
32995
|
try {
|
|
32930
32996
|
await a(e3.format);
|
|
@@ -32953,30 +33019,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32953
33019
|
]
|
|
32954
33020
|
})
|
|
32955
33021
|
]
|
|
32956
|
-
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] =
|
|
32957
|
-
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22],
|
|
32958
|
-
let
|
|
32959
|
-
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !==
|
|
33022
|
+
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] = $, t[24] = MK, t[25] = NK, t[26] = PK;
|
|
33023
|
+
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22], $ = t[23], MK = t[24], NK = t[25], PK = t[26];
|
|
33024
|
+
let FK;
|
|
33025
|
+
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !== $ || t[45] !== MK || t[46] !== NK || t[47] !== PK ? (FK = (0, import_jsx_runtime.jsxs)(A, {
|
|
32960
33026
|
side: Q,
|
|
32961
|
-
className:
|
|
33027
|
+
className: $,
|
|
32962
33028
|
children: [
|
|
32963
|
-
|
|
32964
|
-
|
|
32965
|
-
|
|
33029
|
+
MK,
|
|
33030
|
+
NK,
|
|
33031
|
+
PK,
|
|
32966
33032
|
I,
|
|
32967
33033
|
z
|
|
32968
33034
|
]
|
|
32969
|
-
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] =
|
|
32970
|
-
let
|
|
32971
|
-
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !==
|
|
33035
|
+
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] = $, t[45] = MK, t[46] = NK, t[47] = PK, t[48] = FK) : FK = t[48];
|
|
33036
|
+
let IK;
|
|
33037
|
+
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !== FK ? (IK = (0, import_jsx_runtime.jsxs)(M, {
|
|
32972
33038
|
modal: U,
|
|
32973
33039
|
open: K,
|
|
32974
33040
|
onOpenChange: q,
|
|
32975
33041
|
children: [
|
|
32976
33042
|
J,
|
|
32977
|
-
|
|
33043
|
+
FK
|
|
32978
33044
|
]
|
|
32979
|
-
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] =
|
|
33045
|
+
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] = FK, t[55] = IK) : IK = t[55], IK;
|
|
32980
33046
|
};
|
|
32981
33047
|
function fetchJson(e) {
|
|
32982
33048
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33068,22 +33134,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33068
33134
|
]
|
|
33069
33135
|
}) : null;
|
|
33070
33136
|
};
|
|
33071
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, manualSorting: v = false, sorting: y, setSorting: S, rowSelection: w, cellSelection: E, cellStyling: O, hoverTemplate: A, cellHoverTexts: M, paginationState: I, setPaginationState: z, downloadAs: U, manualPagination: K = false, pagination: q = false, onRowSelectionChange: J, onCellSelectionChange: Q, getRowIds:
|
|
33072
|
-
let [
|
|
33137
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, manualSorting: v = false, sorting: y, setSorting: S, rowSelection: w, cellSelection: E, cellStyling: O, hoverTemplate: A, cellHoverTexts: M, paginationState: I, setPaginationState: z, downloadAs: U, manualPagination: K = false, pagination: q = false, onRowSelectionChange: J, onCellSelectionChange: Q, getRowIds: $, enableSearch: MK = false, searchQuery: NK, onSearchQueryChange: PK, showFilters: FK = false, filters: IK, onFiltersChange: LK, calculateTopKRows: RK, reloading: zK, freezeColumnsLeft: BK, freezeColumnsRight: VK, hiddenColumns: HK, toggleDisplayHeader: UK, showChartBuilder: WK, isChartBuilderOpen: GK, showPageSizeSelector: KK, showTableExplorer: qK, togglePanel: JK, isPanelOpen: YK, isAnyPanelOpen: XK, viewedRowIdx: ZK, onViewedRowChange: QK }) => {
|
|
33138
|
+
let [$K, eq] = import_react.useState(false), { locale: tq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: nq, setColumnPinning: rq } = useColumnPinning(BK, VK), { columnVisibility: iq, setColumnVisibility: aq } = useColumnVisibility(HK);
|
|
33073
33139
|
import_react.useEffect(() => {
|
|
33074
33140
|
let e2;
|
|
33075
|
-
return
|
|
33076
|
-
|
|
33077
|
-
}, 300) :
|
|
33141
|
+
return zK ? e2 = setTimeout(() => {
|
|
33142
|
+
eq(true);
|
|
33143
|
+
}, 300) : eq(false), () => {
|
|
33078
33144
|
e2 && clearTimeout(e2);
|
|
33079
33145
|
};
|
|
33080
33146
|
}, [
|
|
33081
|
-
|
|
33147
|
+
zK
|
|
33082
33148
|
]);
|
|
33083
|
-
function
|
|
33149
|
+
function oq(e2, t2) {
|
|
33084
33150
|
return I ? t2 + (K ? I.pageIndex * I.pageSize : 0) : t2;
|
|
33085
33151
|
}
|
|
33086
|
-
let
|
|
33152
|
+
let sq = useReactTable({
|
|
33087
33153
|
_features: [
|
|
33088
33154
|
ColumnPinning,
|
|
33089
33155
|
ColumnWrappingFeature,
|
|
@@ -33107,11 +33173,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33107
33173
|
getRowId: (e2, t2) => {
|
|
33108
33174
|
let n2 = getStableRowId(e2);
|
|
33109
33175
|
if (n2) return n2;
|
|
33110
|
-
let i2 =
|
|
33176
|
+
let i2 = oq(e2, t2);
|
|
33111
33177
|
return String(i2);
|
|
33112
33178
|
}
|
|
33113
33179
|
} : {},
|
|
33114
|
-
locale:
|
|
33180
|
+
locale: tq,
|
|
33115
33181
|
manualPagination: K,
|
|
33116
33182
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33117
33183
|
...S ? {
|
|
@@ -33121,22 +33187,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33121
33187
|
enableMultiSort: true,
|
|
33122
33188
|
getSortedRowModel: getSortedRowModel(),
|
|
33123
33189
|
manualFiltering: true,
|
|
33124
|
-
enableColumnFilters:
|
|
33190
|
+
enableColumnFilters: FK,
|
|
33125
33191
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33126
|
-
onColumnFiltersChange:
|
|
33192
|
+
onColumnFiltersChange: LK,
|
|
33127
33193
|
onRowSelectionChange: J,
|
|
33128
33194
|
onCellSelectionChange: Q,
|
|
33129
33195
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33130
33196
|
enableMultiCellSelection: c === "multi-cell",
|
|
33131
|
-
onColumnPinningChange:
|
|
33132
|
-
onColumnVisibilityChange:
|
|
33197
|
+
onColumnPinningChange: rq,
|
|
33198
|
+
onColumnVisibilityChange: aq,
|
|
33133
33199
|
enableFocusRow: true,
|
|
33134
|
-
onFocusRowChange:
|
|
33200
|
+
onFocusRowChange: QK,
|
|
33135
33201
|
state: {
|
|
33136
33202
|
...y ? {
|
|
33137
33203
|
sorting: y
|
|
33138
33204
|
} : {},
|
|
33139
|
-
columnFilters:
|
|
33205
|
+
columnFilters: IK,
|
|
33140
33206
|
...I ? {
|
|
33141
33207
|
pagination: I
|
|
33142
33208
|
} : q && !I ? {} : {
|
|
@@ -33147,36 +33213,36 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33147
33213
|
},
|
|
33148
33214
|
rowSelection: w ?? {},
|
|
33149
33215
|
cellSelection: E ?? [],
|
|
33150
|
-
columnVisibility:
|
|
33216
|
+
columnVisibility: iq,
|
|
33151
33217
|
cellStyling: O,
|
|
33152
|
-
columnPinning:
|
|
33218
|
+
columnPinning: nq,
|
|
33153
33219
|
cellHoverTemplate: A,
|
|
33154
33220
|
cellHoverTexts: M ?? {}
|
|
33155
33221
|
}
|
|
33156
|
-
}),
|
|
33222
|
+
}), cq = (YK == null ? void 0 : YK(PANEL_TYPES.ROW_VIEWER)) ?? false, lq = !q && o.length > 100, uq = useScrollContainerHeight({
|
|
33157
33223
|
maxHeight: n,
|
|
33158
|
-
virtualize:
|
|
33159
|
-
}), [
|
|
33224
|
+
virtualize: lq
|
|
33225
|
+
}), [dq, fq] = import_react.useState(null), pq = import_react.useMemo(() => ({
|
|
33160
33226
|
requestAddFilter: (e2) => {
|
|
33161
|
-
let t2 =
|
|
33162
|
-
t2 &&
|
|
33227
|
+
let t2 = sq.getColumn(e2.columnId);
|
|
33228
|
+
t2 && fq(buildEditorSnapshot(t2, {
|
|
33163
33229
|
operator: e2.operator
|
|
33164
33230
|
}));
|
|
33165
33231
|
}
|
|
33166
33232
|
}), [
|
|
33167
|
-
|
|
33168
|
-
]),
|
|
33233
|
+
sq
|
|
33234
|
+
]), mq = getUserColumnVisibilityCounts(sq), hq = mq.total > 0 && mq.visible === 0;
|
|
33169
33235
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33170
|
-
value:
|
|
33236
|
+
value: pq,
|
|
33171
33237
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33172
33238
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33173
33239
|
children: [
|
|
33174
33240
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33175
|
-
filters:
|
|
33176
|
-
table:
|
|
33177
|
-
calculateTopKRows:
|
|
33178
|
-
addFilterSnapshot:
|
|
33179
|
-
onAddFilterSnapshotChange:
|
|
33241
|
+
filters: IK,
|
|
33242
|
+
table: sq,
|
|
33243
|
+
calculateTopKRows: RK,
|
|
33244
|
+
addFilterSnapshot: dq,
|
|
33245
|
+
onAddFilterSnapshotChange: fq
|
|
33180
33246
|
}),
|
|
33181
33247
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33182
33248
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -33184,20 +33250,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33184
33250
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33185
33251
|
children: [
|
|
33186
33252
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33187
|
-
enableSearch:
|
|
33188
|
-
searchQuery:
|
|
33189
|
-
onSearchQueryChange:
|
|
33190
|
-
reloading:
|
|
33191
|
-
showChartBuilder:
|
|
33192
|
-
isChartBuilderOpen:
|
|
33193
|
-
toggleDisplayHeader:
|
|
33194
|
-
showTableExplorer:
|
|
33195
|
-
togglePanel:
|
|
33196
|
-
isAnyPanelOpen:
|
|
33253
|
+
enableSearch: MK,
|
|
33254
|
+
searchQuery: NK,
|
|
33255
|
+
onSearchQueryChange: PK,
|
|
33256
|
+
reloading: zK,
|
|
33257
|
+
showChartBuilder: WK,
|
|
33258
|
+
isChartBuilderOpen: GK,
|
|
33259
|
+
toggleDisplayHeader: UK,
|
|
33260
|
+
showTableExplorer: qK,
|
|
33261
|
+
togglePanel: JK,
|
|
33262
|
+
isAnyPanelOpen: XK,
|
|
33197
33263
|
downloadAs: U,
|
|
33198
33264
|
sizeBytes: _
|
|
33199
33265
|
}),
|
|
33200
|
-
|
|
33266
|
+
hq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33201
33267
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33202
33268
|
children: [
|
|
33203
33269
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -33206,26 +33272,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33206
33272
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
33207
33273
|
variant: "link",
|
|
33208
33274
|
size: "xs",
|
|
33209
|
-
onClick: () =>
|
|
33275
|
+
onClick: () => sq.resetColumnVisibility(true),
|
|
33210
33276
|
children: "Unhide all"
|
|
33211
33277
|
})
|
|
33212
33278
|
]
|
|
33213
33279
|
}),
|
|
33214
33280
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33215
33281
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33216
|
-
ref:
|
|
33282
|
+
ref: uq,
|
|
33217
33283
|
children: [
|
|
33218
|
-
|
|
33284
|
+
$K && (0, import_jsx_runtime.jsx)("thead", {
|
|
33219
33285
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33220
33286
|
}),
|
|
33221
|
-
renderTableHeader(
|
|
33287
|
+
renderTableHeader(sq, lq || !!n),
|
|
33222
33288
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33223
|
-
table:
|
|
33289
|
+
table: sq,
|
|
33224
33290
|
columns: i,
|
|
33225
|
-
rowViewerPanelOpen:
|
|
33226
|
-
getRowIndex:
|
|
33227
|
-
viewedRowIdx:
|
|
33228
|
-
virtualize:
|
|
33291
|
+
rowViewerPanelOpen: cq,
|
|
33292
|
+
getRowIndex: oq,
|
|
33293
|
+
viewedRowIdx: ZK,
|
|
33294
|
+
virtualize: lq
|
|
33229
33295
|
})
|
|
33230
33296
|
]
|
|
33231
33297
|
}),
|
|
@@ -33236,11 +33302,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33236
33302
|
pagination: q,
|
|
33237
33303
|
selection: c,
|
|
33238
33304
|
onRowSelectionChange: J,
|
|
33239
|
-
table:
|
|
33240
|
-
getRowIds:
|
|
33241
|
-
showPageSizeSelector:
|
|
33242
|
-
tableLoading:
|
|
33243
|
-
togglePanel:
|
|
33305
|
+
table: sq,
|
|
33306
|
+
getRowIds: $,
|
|
33307
|
+
showPageSizeSelector: KK,
|
|
33308
|
+
tableLoading: zK,
|
|
33309
|
+
togglePanel: JK
|
|
33244
33310
|
})
|
|
33245
33311
|
]
|
|
33246
33312
|
})
|
|
@@ -33308,12 +33374,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33308
33374
|
var import_compiler_runtime$6 = require_compiler_runtime(), KEY = "item";
|
|
33309
33375
|
const MarimoTracebackOutput = (e) => {
|
|
33310
33376
|
var _a2;
|
|
33311
|
-
let t = (0, import_compiler_runtime$6.c)(
|
|
33377
|
+
let t = (0, import_compiler_runtime$6.c)(49), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
|
|
33312
33378
|
t[0] === i ? s = t[1] : (s = renderHTML({
|
|
33313
33379
|
html: i,
|
|
33314
33380
|
additionalReplacements: [
|
|
33315
33381
|
replaceTracebackFilenames,
|
|
33316
|
-
replaceTracebackPrefix
|
|
33382
|
+
replaceTracebackPrefix,
|
|
33383
|
+
replaceMangledLocal
|
|
33317
33384
|
]
|
|
33318
33385
|
}), t[0] = i, t[1] = s);
|
|
33319
33386
|
let c = s, [d, f] = (0, import_react.useState)(true), _ = lastLine(i), v = useAtomValue(aiEnabledAtom), y;
|
|
@@ -33329,69 +33396,73 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33329
33396
|
${_}`,
|
|
33330
33397
|
triggerImmediately: e2
|
|
33331
33398
|
});
|
|
33332
|
-
}, [q, J] = _.split(":", 2),
|
|
33333
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33334
|
-
let
|
|
33335
|
-
t[11] ===
|
|
33336
|
-
let
|
|
33337
|
-
t[13] ===
|
|
33338
|
-
className:
|
|
33339
|
-
}), t[13] =
|
|
33340
|
-
let
|
|
33341
|
-
t[15] ===
|
|
33399
|
+
}, [q, J] = _.split(":", 2), $ = J ? splitMangledLocals(J) : [], NK = d ? KEY : "", PK;
|
|
33400
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PK = () => f(_temp$3), t[10] = PK) : PK = t[10];
|
|
33401
|
+
let FK = d ? "rotate-180" : "rotate-0", IK;
|
|
33402
|
+
t[11] === FK ? IK = t[12] : (IK = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", FK), t[11] = FK, t[12] = IK);
|
|
33403
|
+
let LK;
|
|
33404
|
+
t[13] === IK ? LK = t[14] : (LK = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33405
|
+
className: IK
|
|
33406
|
+
}), t[13] = IK, t[14] = LK);
|
|
33407
|
+
let RK = q || "Error", zK;
|
|
33408
|
+
t[15] === RK ? zK = t[16] : (zK = (0, import_jsx_runtime.jsxs)("span", {
|
|
33342
33409
|
className: "text-destructive",
|
|
33343
33410
|
children: [
|
|
33344
|
-
|
|
33411
|
+
RK,
|
|
33345
33412
|
":"
|
|
33346
33413
|
]
|
|
33347
|
-
}), t[15] =
|
|
33348
|
-
let
|
|
33349
|
-
t[17]
|
|
33414
|
+
}), t[15] = RK, t[16] = zK);
|
|
33415
|
+
let VK;
|
|
33416
|
+
t[17] === $ ? VK = t[18] : (VK = (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
33417
|
+
segments: $
|
|
33418
|
+
}), t[17] = $, t[18] = VK);
|
|
33419
|
+
let UK;
|
|
33420
|
+
t[19] !== zK || t[20] !== VK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33350
33421
|
className: "text-sm inline font-mono",
|
|
33351
33422
|
children: [
|
|
33352
|
-
|
|
33423
|
+
zK,
|
|
33353
33424
|
" ",
|
|
33354
|
-
|
|
33425
|
+
VK
|
|
33355
33426
|
]
|
|
33356
|
-
}), t[
|
|
33357
|
-
let
|
|
33358
|
-
t[
|
|
33427
|
+
}), t[19] = zK, t[20] = VK, t[21] = UK) : UK = t[21];
|
|
33428
|
+
let WK;
|
|
33429
|
+
t[22] !== UK || t[23] !== LK ? (WK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33359
33430
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
33360
|
-
onClick:
|
|
33431
|
+
onClick: PK,
|
|
33361
33432
|
children: [
|
|
33362
|
-
|
|
33363
|
-
|
|
33433
|
+
LK,
|
|
33434
|
+
UK
|
|
33364
33435
|
]
|
|
33365
|
-
}), t[
|
|
33366
|
-
let
|
|
33367
|
-
t[
|
|
33436
|
+
}), t[22] = UK, t[23] = LK, t[24] = WK) : WK = t[24];
|
|
33437
|
+
let GK;
|
|
33438
|
+
t[25] === c ? GK = t[26] : (GK = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
33368
33439
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
33369
33440
|
children: c
|
|
33370
|
-
}), t[
|
|
33371
|
-
let
|
|
33372
|
-
t[
|
|
33441
|
+
}), t[25] = c, t[26] = GK);
|
|
33442
|
+
let KK;
|
|
33443
|
+
t[27] !== WK || t[28] !== GK ? (KK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
33373
33444
|
value: KEY,
|
|
33374
33445
|
className: "border-none",
|
|
33375
33446
|
children: [
|
|
33376
|
-
|
|
33377
|
-
|
|
33447
|
+
WK,
|
|
33448
|
+
GK
|
|
33378
33449
|
]
|
|
33379
|
-
}), t[
|
|
33380
|
-
let
|
|
33381
|
-
t[
|
|
33450
|
+
}), t[27] = WK, t[28] = GK, t[29] = KK) : KK = t[29];
|
|
33451
|
+
let JK;
|
|
33452
|
+
t[30] !== KK || t[31] !== NK ? (JK = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
33382
33453
|
type: "single",
|
|
33383
33454
|
collapsible: true,
|
|
33384
|
-
value:
|
|
33385
|
-
children:
|
|
33386
|
-
}), t[
|
|
33387
|
-
let
|
|
33388
|
-
t[
|
|
33455
|
+
value: NK,
|
|
33456
|
+
children: KK
|
|
33457
|
+
}), t[30] = KK, t[31] = NK, t[32] = JK) : JK = t[32];
|
|
33458
|
+
let YK;
|
|
33459
|
+
t[33] !== K || t[34] !== I ? (YK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33389
33460
|
tooltip: "Fix with AI",
|
|
33390
33461
|
openPrompt: () => K(false),
|
|
33391
33462
|
applyAutofix: () => K(true)
|
|
33392
|
-
}), t[
|
|
33393
|
-
let
|
|
33394
|
-
t[
|
|
33463
|
+
}), t[33] = K, t[34] = I, t[35] = YK) : YK = t[35];
|
|
33464
|
+
let XK;
|
|
33465
|
+
t[36] !== A || t[37] !== w ? (XK = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33395
33466
|
content: "Attach pdb to the exception point.",
|
|
33396
33467
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33397
33468
|
size: "xs",
|
|
@@ -33408,9 +33479,9 @@ ${_}`,
|
|
|
33408
33479
|
"Launch debugger"
|
|
33409
33480
|
]
|
|
33410
33481
|
})
|
|
33411
|
-
}), t[
|
|
33412
|
-
let
|
|
33413
|
-
t[
|
|
33482
|
+
}), t[36] = A, t[37] = w, t[38] = XK) : XK = t[38];
|
|
33483
|
+
let ZK;
|
|
33484
|
+
t[39] !== _ || t[40] !== i ? (ZK = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33414
33485
|
children: [
|
|
33415
33486
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33416
33487
|
asChild: true,
|
|
@@ -33478,24 +33549,24 @@ ${_}`,
|
|
|
33478
33549
|
]
|
|
33479
33550
|
})
|
|
33480
33551
|
]
|
|
33481
|
-
}), t[
|
|
33482
|
-
let
|
|
33483
|
-
t[
|
|
33552
|
+
}), t[39] = _, t[40] = i, t[41] = ZK) : ZK = t[41];
|
|
33553
|
+
let QK;
|
|
33554
|
+
t[42] !== YK || t[43] !== XK || t[44] !== ZK ? (QK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33484
33555
|
className: "flex gap-2",
|
|
33485
33556
|
children: [
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
|
|
33557
|
+
YK,
|
|
33558
|
+
XK,
|
|
33559
|
+
ZK
|
|
33489
33560
|
]
|
|
33490
|
-
}), t[
|
|
33491
|
-
let
|
|
33492
|
-
return t[
|
|
33561
|
+
}), t[42] = YK, t[43] = XK, t[44] = ZK, t[45] = QK) : QK = t[45];
|
|
33562
|
+
let $K;
|
|
33563
|
+
return t[46] !== JK || t[47] !== QK ? ($K = (0, import_jsx_runtime.jsxs)("div", {
|
|
33493
33564
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33494
33565
|
children: [
|
|
33495
|
-
|
|
33496
|
-
|
|
33566
|
+
JK,
|
|
33567
|
+
QK
|
|
33497
33568
|
]
|
|
33498
|
-
}), t[
|
|
33569
|
+
}), t[46] = JK, t[47] = QK, t[48] = $K) : $K = t[48], $K;
|
|
33499
33570
|
};
|
|
33500
33571
|
function lastLine(e) {
|
|
33501
33572
|
var _a2, _b;
|
|
@@ -33550,6 +33621,10 @@ ${_}`,
|
|
|
33550
33621
|
]
|
|
33551
33622
|
})
|
|
33552
33623
|
});
|
|
33624
|
+
}, replaceMangledLocal = (e) => {
|
|
33625
|
+
if (!(!(e instanceof import_lib.Text) || !e.nodeValue) && containsMangledLocal(e.nodeValue)) return (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
33626
|
+
segments: splitMangledLocals(e.nodeValue)
|
|
33627
|
+
});
|
|
33553
33628
|
}, replaceTracebackPrefix = (e) => {
|
|
33554
33629
|
var _a2;
|
|
33555
33630
|
if (e instanceof import_lib.Text && ((_a2 = e.nodeValue) == null ? void 0 : _a2.includes("File")) && e.next instanceof import_lib.Element && elementContainsMarimoCellFile(e.next)) return (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
@@ -34881,7 +34956,7 @@ ${_}`,
|
|
|
34881
34956
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34882
34957
|
}
|
|
34883
34958
|
}
|
|
34884
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
34959
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev7");
|
|
34885
34960
|
showCodeInRunModeAtom = atom(true);
|
|
34886
34961
|
atom(null);
|
|
34887
34962
|
var import_compiler_runtime = require_compiler_runtime();
|