@marimo-team/islands 0.23.9-dev30 → 0.23.9-dev32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-DYjjXY63.js → code-visibility-Bq6MzjHR.js} +662 -657
- package/dist/main.js +3 -3
- package/dist/{reveal-component-COtLtzC0.js → reveal-component-BQijUbYE.js} +3 -3
- package/package.json +1 -1
- package/src/components/chat/chat-panel.tsx +36 -3
- package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/slides/reveal-component.tsx +3 -3
- package/src/components/slides/slide-form.tsx +11 -3
|
@@ -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, PK = parseInt(h.borderRightWidth, 10) || 0, FK = c.top - E, IK = c.bottom + O, LK = c.left - A, $ = c.right + M, RK = e === _ ? 0 : Q + PK, zK = e === _ ? 0 : q + J, BK = e.offsetWidth - e.clientWidth - RK, VK = e.offsetHeight - e.clientHeight - zK, HK = v + q + I, UK = y - J - z - VK, WK = S + Q + U, GK = w - PK - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? WK += BK : GK -= BK;
|
|
1907
|
+
let KK = FK < HK || IK > UK, qK = LK < WK || $ > GK;
|
|
1908
|
+
if (KK && i === "start") o += FK - HK;
|
|
1909
|
+
else if (KK && i === "center") o += (FK + IK) / 2 - (HK + UK) / 2;
|
|
1910
|
+
else if (KK && i === "end") o += IK - UK;
|
|
1911
|
+
else if (KK && i === "nearest") {
|
|
1912
|
+
let e2 = FK - HK, t2 = IK - UK;
|
|
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 (qK && a === "start") s += LK - WK;
|
|
1916
|
+
else if (qK && a === "center") s += (LK + $) / 2 - (WK + GK) / 2;
|
|
1917
|
+
else if (qK && a === "end") s += $ - GK;
|
|
1918
|
+
else if (qK && a === "nearest") {
|
|
1919
|
+
let e2 = LK - WK, t2 = $ - GK;
|
|
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 PK = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? PK = "top" : A.placement === "bottom" && (PK = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? PK = "bottom" : A.crossPlacement === "bottom" && (PK = "top"));
|
|
5029
|
+
let FK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += FK;
|
|
5031
|
+
let IK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, PK, d, E, O);
|
|
5032
|
+
y && y < IK && (IK = y), n.height = Math.min(n.height, IK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), FK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += FK;
|
|
5033
|
+
let LK = {}, $ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], RK = $ + 0.5 * t[z], zK = S / 2 + w, BK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), VK = n[z] - BK - S / 2 - w;
|
|
5034
|
+
LK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(RK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), zK, VK), { placement: U, crossPlacement: K } = A, S ? $ = LK[I] : K === "right" ? $ += t[z] : K === "center" && ($ += t[z] / 2);
|
|
5035
|
+
let HK = U === "left" || U === "top" ? n[M] : 0, UK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? $ : HK,
|
|
5037
|
+
y: U === "left" || U === "right" ? $ : HK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: IK,
|
|
5042
|
+
arrowOffsetLeft: LK.left,
|
|
5043
|
+
arrowOffsetTop: LK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: UK
|
|
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 PK = (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
|
+
PK.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 = PK.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 FK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,7 +6907,7 @@ 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
|
|
6910
|
+
let IK = $bdb11010cef70236$export$f680877a34711e37(), LK = !t.isDisabled && !t.isReadOnly && e.isEditable, $ = e.type === "literal" ? "" : s.of(e.type), RK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
6911
|
"aria-label": `${$}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let zK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
zK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (zK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, RK, {
|
|
6929
|
+
id: IK,
|
|
6930
|
+
...FK,
|
|
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: LK,
|
|
6936
|
+
suppressContentEditableWarning: LK,
|
|
6937
|
+
spellCheck: LK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: LK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: LK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !LK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: zK,
|
|
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), PK = (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, PK.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
|
+
PK.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 PK(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 FK = (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
|
+
]), IK = e.isInvalid || e.validationState === "invalid" || FK, LK = IK ? "invalid" : null, $ = (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: PK,
|
|
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: LK,
|
|
10210
|
+
isValueInvalid: IK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || PK(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
PK(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
|
+
}, [PK, FK] = (0, import_react.useState)(false), { isDateUnavailable: IK } = e, LK = (0, import_react.useMemo)(() => !h || v ? false : IK && (IK(h.start) || IK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
IK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]), $ = e.isInvalid || e.validationState === "invalid" ||
|
|
10383
|
+
]), $ = e.isInvalid || e.validationState === "invalid" || LK, RK = $ ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,7 +10388,7 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10391
|
+
validationState: RK,
|
|
10392
10392
|
isValueInvalid: $,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
@@ -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: PK,
|
|
10408
|
+
setDragging: FK
|
|
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
|
+
]), PK = (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
|
+
]), FK = (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
|
+
]), [IK, LK] = (0, import_react.useState)(M), [$, RK] = (0, import_react.useState)(S), [zK, BK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== IK || w !== zK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, $)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), LK(M), RK(S), BK(w), z(I));
|
|
11615
|
+
let VK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(FK)) 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(FK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? PK);
|
|
11621
|
+
if (t2.validate(e2, FK)) {
|
|
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
|
+
}, HK = (0, import_react.useMemo)(() => I.toValue(M ?? PK).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11635
|
+
PK
|
|
11636
|
+
]), UK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(HK, I, J, Q, S, t, _), [
|
|
11637
|
+
HK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), WK = (e2, t2) => {
|
|
11645
|
+
VK(I.cycle(e2, t2, PK, FK));
|
|
11646
|
+
}, GK = (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
|
+
]), KK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: GK
|
|
11656
|
+
}), qK = KK.displayValidation.isInvalid, JK = e.validationState || (qK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...KK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: HK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: VK,
|
|
11664
|
+
segments: UK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: JK,
|
|
11667
|
+
isInvalid: qK,
|
|
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
|
+
WK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
WK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
WK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
WK(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
|
+
VK(I.set(e2, t2, PK));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
VK(I.set(e2, t2, PK));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
VK(I.set(e2, t2, PK));
|
|
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(FK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? PK), (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)), VK(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(HK) : "";
|
|
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
|
+
}), PK = Q.displayValidation.isInvalid, FK = e.validationState || (PK ? "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: FK,
|
|
11874
|
+
isInvalid: PK,
|
|
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, {
|
|
@@ -15742,29 +15742,29 @@ 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), PK = !!Q && !I, FK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), IK = FK[t], LK = IK || FK, { colorSchemes: $ = _, components: RK = v, cssVarPrefix: zK } = LK, BK = Object.keys($).filter((e3) => !!$[e3]).join(","), VK = import_react.useMemo(() => BK.split(","), [
|
|
15748
|
+
BK
|
|
15749
|
+
]), HK = typeof s == "string" ? s : s.light, UK = typeof s == "string" ? s : s.dark, { mode: WK, setMode: GK, systemMode: KK, lightColorScheme: qK, darkColorScheme: JK, colorScheme: YK, setColorScheme: XK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: VK,
|
|
15751
|
+
defaultLightColorScheme: HK,
|
|
15752
|
+
defaultDarkColorScheme: UK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode: $[
|
|
15755
|
+
defaultMode: $[HK] && $[UK] ? U : ((_b = (_a2 = $[LK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = LK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
|
|
15761
|
-
let
|
|
15759
|
+
}), ZK = WK, QK = YK;
|
|
15760
|
+
PK && (ZK = Q.mode, QK = Q.colorScheme);
|
|
15761
|
+
let $K = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15763
|
+
let e3 = QK || LK.defaultColorScheme, t2 = ((_a3 = LK.generateThemeVars) == null ? void 0 : _a3.call(LK)) || LK.vars, n2 = {
|
|
15764
|
+
...LK,
|
|
15765
|
+
components: RK,
|
|
15766
15766
|
colorSchemes: $,
|
|
15767
|
-
cssVarPrefix:
|
|
15767
|
+
cssVarPrefix: zK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15781
|
+
LK,
|
|
15782
|
+
QK,
|
|
15783
|
+
RK,
|
|
15784
15784
|
$,
|
|
15785
|
-
|
|
15786
|
-
]),
|
|
15785
|
+
zK
|
|
15786
|
+
]), eq = LK.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 (QK && M && eq && eq !== "media") {
|
|
15789
|
+
let e3 = eq, t2 = eq;
|
|
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(...VK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", QK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", QK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || VK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(QK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, QK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
XK,
|
|
15803
15802
|
QK,
|
|
15803
|
+
eq,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
VK
|
|
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
|
+
QK,
|
|
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 tq = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: VK,
|
|
15826
|
+
colorScheme: QK,
|
|
15827
|
+
darkColorScheme: JK,
|
|
15828
|
+
lightColorScheme: qK,
|
|
15829
|
+
mode: ZK,
|
|
15830
|
+
setColorScheme: XK,
|
|
15831
|
+
setMode: GK,
|
|
15832
|
+
systemMode: KK
|
|
15833
15833
|
}), [
|
|
15834
|
-
|
|
15834
|
+
VK,
|
|
15835
|
+
QK,
|
|
15836
|
+
JK,
|
|
15837
|
+
qK,
|
|
15838
|
+
ZK,
|
|
15835
15839
|
XK,
|
|
15836
|
-
KK,
|
|
15837
15840
|
GK,
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
]), eq = true;
|
|
15844
|
-
(z || FK.cssVariables === false || MK && (J == null ? void 0 : J.cssVarPrefix) === LK) && (eq = false);
|
|
15845
|
-
let tq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15841
|
+
KK,
|
|
15842
|
+
$K.colorSchemeSelector
|
|
15843
|
+
]), nq = true;
|
|
15844
|
+
(z || LK.cssVariables === false || PK && (J == null ? void 0 : J.cssVarPrefix) === zK) && (nq = false);
|
|
15845
|
+
let rq = (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: IK ? t : void 0,
|
|
15849
|
+
theme: $K,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
nq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = $K.generateStyleSheets) == null ? void 0 : _d.call($K)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return PK ? rq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: tq,
|
|
15859
|
+
children: rq
|
|
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: PK, onFocus: FK, onKeyDown: IK, onKeyUp: LK, placeholder: $, readOnly: RK, renderSuffix: zK, rows: BK, size: VK, slotProps: HK = {}, slots: UK = {}, startAdornment: WK, type: GK = "text", value: KK, ...qK } = n, JK = A.value == null ? KK : A.value, { current: YK } = import_react.useRef(JK != null), XK = import_react.useRef(), ZK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), QK = useForkRef_default(XK, M, A.ref, ZK), [$K, eq] = import_react.useState(false), tq = useFormControl(), nq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: tq,
|
|
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
|
+
nq.focused = tq ? tq.focused : $K, import_react.useEffect(() => {
|
|
17374
|
+
!tq && _ && $K && (eq(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
tq,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
$K,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let rq = tq && tq.onFilled, iq = tq && tq.onEmpty, aq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? rq && rq() : iq && iq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
rq,
|
|
17385
|
+
iq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
YK && aq({
|
|
17389
|
+
value: JK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17392
|
+
JK,
|
|
17393
|
+
aq,
|
|
17394
|
+
YK
|
|
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 oq = (e2) => {
|
|
17397
|
+
FK && FK(e2), A.onFocus && A.onFocus(e2), tq && tq.onFocus ? tq.onFocus(e2) : eq(true);
|
|
17398
|
+
}, sq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), tq && tq.onBlur ? tq.onBlur(e2) : eq(false);
|
|
17400
|
+
}, cq = (e2, ...t2) => {
|
|
17401
|
+
if (!YK) {
|
|
17402
|
+
let t3 = e2.target || XK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
aq({
|
|
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
|
+
aq(XK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let lq = (e2) => {
|
|
17414
|
+
XK.current && e2.currentTarget === e2.target && XK.current.focus(), PK && PK(e2);
|
|
17415
|
+
}, uq = O, dq = A;
|
|
17416
|
+
K && uq === "input" && (dq = BK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: BK,
|
|
17419
|
+
maxRows: BK,
|
|
17420
|
+
...dq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...dq
|
|
17426
|
+
}, uq = TextareaAutosize_default);
|
|
17427
|
+
let fq = (e2) => {
|
|
17428
|
+
aq(e2.animationName === "mui-auto-fill-cancel" ? XK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
tq && tq.setAdornedStart(!!WK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
tq,
|
|
17436
|
+
WK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let pq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: nq.color || "primary",
|
|
17441
|
+
disabled: nq.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: nq.error,
|
|
17444
|
+
focused: nq.focused,
|
|
17445
|
+
formControl: tq,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: nq.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: nq.size,
|
|
17450
|
+
startAdornment: WK,
|
|
17451
|
+
type: GK
|
|
17452
|
+
}, mq = useUtilityClasses(pq), hq = UK.root || d.Root || InputBaseRoot, gq = HK.root || f.root || {}, _q = UK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return dq = {
|
|
17454
|
+
...dq,
|
|
17455
|
+
...HK.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)(hq, {
|
|
17460
|
+
...gq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: lq,
|
|
17463
|
+
...qK,
|
|
17464
|
+
...!isHostComponent_default(hq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...pq,
|
|
17467
|
+
...gq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(mq.root, gq.className, s, RK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
WK,
|
|
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)(_q, {
|
|
17476
|
+
"aria-invalid": nq.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: nq.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: fq,
|
|
17484
17484
|
name: q,
|
|
17485
17485
|
placeholder: $,
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17486
|
+
readOnly: RK,
|
|
17487
|
+
required: nq.required,
|
|
17488
|
+
rows: BK,
|
|
17489
|
+
value: JK,
|
|
17490
|
+
onKeyDown: IK,
|
|
17491
|
+
onKeyUp: LK,
|
|
17492
|
+
type: GK,
|
|
17493
|
+
...dq,
|
|
17494
|
+
...!isHostComponent_default(_q) && {
|
|
17495
|
+
as: uq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...pq,
|
|
17498
|
+
...dq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: QK,
|
|
17502
|
+
className: clsx_default(mq.input, dq.className, RK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: sq,
|
|
17504
|
+
onChange: cq,
|
|
17505
|
+
onFocus: oq
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
...
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
zK ? zK({
|
|
17510
|
+
...nq,
|
|
17511
|
+
startAdornment: WK
|
|
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), PK = useJsonViewerStore((e2) => e2.onChange), FK = useTextColor(), IK = useJsonViewerStore((e2) => e2.colorspace.base0C), LK = useJsonViewerStore((e2) => e2.colorspace.base0A), $ = useJsonViewerStore((e2) => e2.displayComma), RK = useJsonViewerStore((e2) => e2.quotesOnKeys), zK = useJsonViewerStore((e2) => e2.rootName), BK = U === t, VK = Number.isInteger(Number(A)), HK = useJsonViewerStore((e2) => e2.enableAdd), UK = useJsonViewerStore((e2) => e2.onAdd), WK = (0, import_react.useMemo)(() => !UK || a !== void 0 || HK === false || v === false ? false : typeof HK == "function" ? !!HK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
UK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
HK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), GK = useJsonViewerStore((e2) => e2.enableDelete), KK = useJsonViewerStore((e2) => e2.onDelete), qK = (0, import_react.useMemo)(() => !KK || a !== void 0 || BK || GK === false || v === false ? false : typeof GK == "function" ? !!GK(i, t) : GK, [
|
|
18595
|
+
KK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
BK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
GK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), JK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: YK, copied: XK } = useClipboard(), ZK = useJsonViewerStore((e2) => e2.highlightUpdates), QK = (0, import_react.useMemo)(() => !ZK || 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
|
+
ZK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), $K = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
$K.current && QK && "animate" in $K.current && $K.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: LK
|
|
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
|
+
LK,
|
|
18621
|
+
QK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let eq = (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
|
+
]), tq = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), nq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
PK(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
PK,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), rq = (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: tq
|
|
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: () => nq(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
JK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
YK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: XK ? (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: eq,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
WK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), UK == null ? void 0 : UK(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
|
+
qK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), KK == null ? void 0 : KK(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
|
+
XK,
|
|
18720
|
+
YK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18723
|
+
JK,
|
|
18724
|
+
WK,
|
|
18725
|
+
qK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
]),
|
|
18729
|
+
UK,
|
|
18730
|
+
KK,
|
|
18731
|
+
eq,
|
|
18732
|
+
tq,
|
|
18733
|
+
nq
|
|
18734
|
+
]), iq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), aq = !iq && !!(c && d), oq = useJsonViewerStore((e2) => e2.keyRenderer), sq = (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: FK,
|
|
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() || iq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
iq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
aq ? 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: $K,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: BK && O === 0 ? zK === false ? null : RK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
zK,
|
|
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: zK
|
|
18808
|
+
}) : oq.when(sq) ? (0, import_jsx_runtime.jsx)(oq, {
|
|
18809
|
+
...sq
|
|
18810
|
+
}) : a === void 0 && (VK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: IK,
|
|
18814
|
+
userSelect: VK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : RK ? (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
|
+
BK ? zK !== 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: VK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...sq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && aq && K && rq
|
|
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: tq,
|
|
18855
|
+
commitEditing: nq
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...sq
|
|
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
|
+
...sq
|
|
18865
18865
|
}),
|
|
18866
18866
|
!o && $ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && aq && !K && rq,
|
|
18870
|
+
I && !aq && rq,
|
|
18871
|
+
!I && J && rq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19806,7 +19806,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19806
19806
|
else if (n.some(_temp2$7)) d = "An internal error occurred";
|
|
19807
19807
|
else if (n.some(_temp3$4)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
|
|
19808
19808
|
else if (n.some(_temp4$4)) d = "Ancestor stopped", f = "default", _ = "text-secondary-foreground";
|
|
19809
|
-
else if (n.some(_temp5$
|
|
19809
|
+
else if (n.some(_temp5$3)) d = "SQL error";
|
|
19810
19810
|
else if (n.some(_temp6$2)) d = null, v = "Cell not run";
|
|
19811
19811
|
else {
|
|
19812
19812
|
let e2;
|
|
@@ -19816,18 +19816,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19816
19816
|
}
|
|
19817
19817
|
let y, S, w, E, O, A;
|
|
19818
19818
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
19819
|
-
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14),
|
|
19819
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), PK = n.filter(_temp15), FK = n.filter(_temp16), IK = n.filter(_temp17), LK = n.filter(_temp18), $;
|
|
19820
19820
|
t[17] === s ? $ = t[18] : ($ = () => {
|
|
19821
19821
|
s.openApplication("scratchpad");
|
|
19822
19822
|
}, t[17] = s, t[18] = $);
|
|
19823
|
-
let
|
|
19823
|
+
let RK = $, BK = () => {
|
|
19824
19824
|
let t2 = [];
|
|
19825
|
-
if (
|
|
19826
|
-
let e3 =
|
|
19825
|
+
if (FK.length > 0 || IK.length > 0) {
|
|
19826
|
+
let e3 = FK.some(_temp19), n2 = !e3 && FK.some(_temp20);
|
|
19827
19827
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19828
19828
|
children: [
|
|
19829
|
-
|
|
19830
|
-
|
|
19829
|
+
FK.map(_temp21),
|
|
19830
|
+
IK.map(_temp22),
|
|
19831
19831
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19832
19832
|
size: "xs",
|
|
19833
19833
|
variant: "outline",
|
|
@@ -19858,8 +19858,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19858
19858
|
}),
|
|
19859
19859
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19860
19860
|
errors: [
|
|
19861
|
-
...
|
|
19862
|
-
...
|
|
19861
|
+
...FK,
|
|
19862
|
+
...IK
|
|
19863
19863
|
],
|
|
19864
19864
|
cellId: i
|
|
19865
19865
|
})
|
|
@@ -20020,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20020
20020
|
size: "xs",
|
|
20021
20021
|
variant: "link",
|
|
20022
20022
|
className: "my-2 font-normal mx-0 px-0",
|
|
20023
|
-
onClick:
|
|
20023
|
+
onClick: RK,
|
|
20024
20024
|
children: [
|
|
20025
20025
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20026
20026
|
className: "h-3"
|
|
@@ -20211,26 +20211,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20211
20211
|
cellId: i
|
|
20212
20212
|
})
|
|
20213
20213
|
]
|
|
20214
|
-
}, "ancestor-prevented")),
|
|
20214
|
+
}, "ancestor-prevented")), PK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20215
20215
|
children: [
|
|
20216
|
-
|
|
20216
|
+
PK.map(_temp34),
|
|
20217
20217
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20218
|
-
errors:
|
|
20218
|
+
errors: PK,
|
|
20219
20219
|
cellId: i
|
|
20220
20220
|
})
|
|
20221
20221
|
]
|
|
20222
|
-
}, "ancestor-stopped")),
|
|
20222
|
+
}, "ancestor-stopped")), LK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20223
20223
|
children: [
|
|
20224
|
-
|
|
20224
|
+
LK.map(_temp35),
|
|
20225
20225
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20226
|
-
errors:
|
|
20226
|
+
errors: LK,
|
|
20227
20227
|
cellId: i,
|
|
20228
20228
|
className: "mt-2.5"
|
|
20229
20229
|
})
|
|
20230
20230
|
]
|
|
20231
20231
|
}, "sql-errors")), t2;
|
|
20232
|
-
},
|
|
20233
|
-
t[19] === v ?
|
|
20232
|
+
}, VK;
|
|
20233
|
+
t[19] === v ? VK = t[20] : (VK = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20234
20234
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20235
20235
|
children: [
|
|
20236
20236
|
v,
|
|
@@ -20242,22 +20242,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20242
20242
|
})
|
|
20243
20243
|
})
|
|
20244
20244
|
]
|
|
20245
|
-
}), t[19] = v, t[20] =
|
|
20246
|
-
let
|
|
20247
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20245
|
+
}), t[19] = v, t[20] = VK);
|
|
20246
|
+
let HK;
|
|
20247
|
+
t[21] !== _ || t[22] !== d ? (HK = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20248
20248
|
className: `font-code font-medium ${_}`,
|
|
20249
20249
|
children: d
|
|
20250
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20251
|
-
let
|
|
20252
|
-
t[24] !==
|
|
20250
|
+
}), t[21] = _, t[22] = d, t[23] = HK) : HK = t[23];
|
|
20251
|
+
let UK;
|
|
20252
|
+
t[24] !== VK || t[25] !== HK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
|
|
20253
20253
|
className: "space-y-0.5",
|
|
20254
20254
|
children: [
|
|
20255
|
-
|
|
20256
|
-
|
|
20255
|
+
VK,
|
|
20256
|
+
HK
|
|
20257
20257
|
]
|
|
20258
|
-
}), t[24] =
|
|
20259
|
-
let
|
|
20260
|
-
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A =
|
|
20258
|
+
}), t[24] = VK, t[25] = HK, t[26] = UK) : UK = t[26];
|
|
20259
|
+
let WK = UK;
|
|
20260
|
+
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = WK, S = "flex flex-col gap-4", w = BK(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
|
|
20261
20261
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20262
20262
|
let M;
|
|
20263
20263
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20286,7 +20286,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20286
20286
|
function _temp4$4(e) {
|
|
20287
20287
|
return e.type === "ancestor-stopped";
|
|
20288
20288
|
}
|
|
20289
|
-
function _temp5$
|
|
20289
|
+
function _temp5$3(e) {
|
|
20290
20290
|
return e.type === "sql-error";
|
|
20291
20291
|
}
|
|
20292
20292
|
function _temp6$2(e) {
|
|
@@ -26189,7 +26189,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26189
26189
|
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 }) {
|
|
26190
26190
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26191
26191
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26192
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26192
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, PK = useUniqueId(s), FK = (0, import_react.useRef)({
|
|
26193
26193
|
callbacks: {
|
|
26194
26194
|
onCollapse: f,
|
|
26195
26195
|
onExpand: h,
|
|
@@ -26202,72 +26202,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26202
26202
|
maxSize: c,
|
|
26203
26203
|
minSize: d
|
|
26204
26204
|
},
|
|
26205
|
-
id:
|
|
26205
|
+
id: PK,
|
|
26206
26206
|
idIsFromProps: s !== void 0,
|
|
26207
26207
|
order: v
|
|
26208
26208
|
});
|
|
26209
26209
|
(0, import_react.useRef)({
|
|
26210
26210
|
didLogMissingDefaultSizeWarning: false
|
|
26211
26211
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26212
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26212
|
+
let { callbacks: e2, constraints: t2 } = FK.current, o2 = {
|
|
26213
26213
|
...t2
|
|
26214
26214
|
};
|
|
26215
|
-
|
|
26215
|
+
FK.current.id = PK, FK.current.idIsFromProps = s !== void 0, FK.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(FK.current, o2);
|
|
26216
26216
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26217
|
-
let e2 =
|
|
26217
|
+
let e2 = FK.current;
|
|
26218
26218
|
return q(e2), () => {
|
|
26219
26219
|
Q(e2);
|
|
26220
26220
|
};
|
|
26221
26221
|
}, [
|
|
26222
26222
|
v,
|
|
26223
|
-
|
|
26223
|
+
PK,
|
|
26224
26224
|
q,
|
|
26225
26225
|
Q
|
|
26226
26226
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26227
26227
|
collapse: () => {
|
|
26228
|
-
O(
|
|
26228
|
+
O(FK.current);
|
|
26229
26229
|
},
|
|
26230
26230
|
expand: (e2) => {
|
|
26231
|
-
A(
|
|
26231
|
+
A(FK.current, e2);
|
|
26232
26232
|
},
|
|
26233
26233
|
getId() {
|
|
26234
|
-
return
|
|
26234
|
+
return PK;
|
|
26235
26235
|
},
|
|
26236
26236
|
getSize() {
|
|
26237
|
-
return M(
|
|
26237
|
+
return M(FK.current);
|
|
26238
26238
|
},
|
|
26239
26239
|
isCollapsed() {
|
|
26240
|
-
return U(
|
|
26240
|
+
return U(FK.current);
|
|
26241
26241
|
},
|
|
26242
26242
|
isExpanded() {
|
|
26243
|
-
return !U(
|
|
26243
|
+
return !U(FK.current);
|
|
26244
26244
|
},
|
|
26245
26245
|
resize: (e2) => {
|
|
26246
|
-
J(
|
|
26246
|
+
J(FK.current, e2);
|
|
26247
26247
|
}
|
|
26248
26248
|
}), [
|
|
26249
26249
|
O,
|
|
26250
26250
|
A,
|
|
26251
26251
|
M,
|
|
26252
26252
|
U,
|
|
26253
|
-
|
|
26253
|
+
PK,
|
|
26254
26254
|
J
|
|
26255
26255
|
]);
|
|
26256
|
-
let
|
|
26256
|
+
let IK = I(FK.current, a);
|
|
26257
26257
|
return (0, import_react.createElement)(S, {
|
|
26258
26258
|
...w,
|
|
26259
26259
|
children: e,
|
|
26260
26260
|
className: t,
|
|
26261
|
-
id:
|
|
26261
|
+
id: PK,
|
|
26262
26262
|
style: {
|
|
26263
|
-
...
|
|
26263
|
+
...IK,
|
|
26264
26264
|
...y
|
|
26265
26265
|
},
|
|
26266
26266
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26267
26267
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26268
26268
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26269
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26270
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26269
|
+
[DATA_ATTRIBUTES.panelId]: PK,
|
|
26270
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + IK.flexGrow).toFixed(1)
|
|
26271
26271
|
});
|
|
26272
26272
|
}
|
|
26273
26273
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27040,7 +27040,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27040
27040
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
27041
27041
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
27042
27042
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
27043
|
-
}, []),
|
|
27043
|
+
}, []), PK = (0, import_react.useCallback)((e2, t2) => {
|
|
27044
27044
|
let { panelDataArray: n2 } = K.current;
|
|
27045
27045
|
return computePanelFlexBoxStyle({
|
|
27046
27046
|
defaultSize: t2,
|
|
@@ -27052,13 +27052,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27052
27052
|
}, [
|
|
27053
27053
|
S,
|
|
27054
27054
|
E
|
|
27055
|
-
]),
|
|
27055
|
+
]), FK = (0, import_react.useCallback)((e2) => {
|
|
27056
27056
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27057
27057
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27058
|
-
}, []),
|
|
27058
|
+
}, []), IK = (0, import_react.useCallback)((e2) => {
|
|
27059
27059
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27060
27060
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27061
|
-
}, []),
|
|
27061
|
+
}, []), LK = (0, import_react.useCallback)((e2) => {
|
|
27062
27062
|
let { panelDataArray: t2 } = K.current;
|
|
27063
27063
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27064
27064
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27108,7 +27108,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27108
27108
|
}), I2 = !compareLayouts(f2, A2);
|
|
27109
27109
|
(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));
|
|
27110
27110
|
};
|
|
27111
|
-
}, []),
|
|
27111
|
+
}, []), RK = (0, import_react.useCallback)((e2, t2) => {
|
|
27112
27112
|
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);
|
|
27113
27113
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27114
27114
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27120,12 +27120,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27120
27120
|
trigger: "imperative-api"
|
|
27121
27121
|
});
|
|
27122
27122
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27123
|
-
}, []),
|
|
27123
|
+
}, []), zK = (0, import_react.useCallback)((e2, t2) => {
|
|
27124
27124
|
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);
|
|
27125
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27125
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || RK(e2, s2) : h2 < f2 ? RK(e2, f2) : h2 > d2 && RK(e2, d2));
|
|
27126
27126
|
}, [
|
|
27127
|
-
|
|
27128
|
-
]),
|
|
27127
|
+
RK
|
|
27128
|
+
]), BK = (0, import_react.useCallback)((e2, t2) => {
|
|
27129
27129
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27130
27130
|
if (!y.current) return;
|
|
27131
27131
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27137,30 +27137,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27137
27137
|
initialCursorPosition: o2,
|
|
27138
27138
|
initialLayout: i2
|
|
27139
27139
|
});
|
|
27140
|
-
}, []),
|
|
27140
|
+
}, []), VK = (0, import_react.useCallback)(() => {
|
|
27141
27141
|
w(null);
|
|
27142
|
-
}, []),
|
|
27142
|
+
}, []), HK = (0, import_react.useCallback)((e2) => {
|
|
27143
27143
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27144
27144
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27145
27145
|
}, [
|
|
27146
27146
|
A
|
|
27147
|
-
]),
|
|
27147
|
+
]), UK = (0, import_react.useMemo)(() => ({
|
|
27148
27148
|
collapsePanel: q,
|
|
27149
27149
|
direction: i,
|
|
27150
27150
|
dragState: S,
|
|
27151
27151
|
expandPanel: J,
|
|
27152
27152
|
getPanelSize: Q,
|
|
27153
|
-
getPanelStyle:
|
|
27153
|
+
getPanelStyle: PK,
|
|
27154
27154
|
groupId: v,
|
|
27155
|
-
isPanelCollapsed:
|
|
27156
|
-
isPanelExpanded:
|
|
27157
|
-
reevaluatePanelConstraints:
|
|
27158
|
-
registerPanel:
|
|
27155
|
+
isPanelCollapsed: FK,
|
|
27156
|
+
isPanelExpanded: IK,
|
|
27157
|
+
reevaluatePanelConstraints: zK,
|
|
27158
|
+
registerPanel: LK,
|
|
27159
27159
|
registerResizeHandle: $,
|
|
27160
|
-
resizePanel:
|
|
27161
|
-
startDragging:
|
|
27162
|
-
stopDragging:
|
|
27163
|
-
unregisterPanel:
|
|
27160
|
+
resizePanel: RK,
|
|
27161
|
+
startDragging: BK,
|
|
27162
|
+
stopDragging: VK,
|
|
27163
|
+
unregisterPanel: HK,
|
|
27164
27164
|
panelGroupElement: y.current
|
|
27165
27165
|
}), [
|
|
27166
27166
|
q,
|
|
@@ -27168,18 +27168,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27168
27168
|
i,
|
|
27169
27169
|
J,
|
|
27170
27170
|
Q,
|
|
27171
|
-
MK,
|
|
27172
|
-
v,
|
|
27173
|
-
NK,
|
|
27174
27171
|
PK,
|
|
27175
|
-
|
|
27172
|
+
v,
|
|
27176
27173
|
FK,
|
|
27177
|
-
$,
|
|
27178
27174
|
IK,
|
|
27179
|
-
RK,
|
|
27180
27175
|
zK,
|
|
27181
|
-
|
|
27182
|
-
|
|
27176
|
+
LK,
|
|
27177
|
+
$,
|
|
27178
|
+
RK,
|
|
27179
|
+
BK,
|
|
27180
|
+
VK,
|
|
27181
|
+
HK
|
|
27182
|
+
]), WK = {
|
|
27183
27183
|
display: "flex",
|
|
27184
27184
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27185
27185
|
height: "100%",
|
|
@@ -27187,7 +27187,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27187
27187
|
width: "100%"
|
|
27188
27188
|
};
|
|
27189
27189
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27190
|
-
value:
|
|
27190
|
+
value: UK
|
|
27191
27191
|
}, (0, import_react.createElement)(h, {
|
|
27192
27192
|
..._,
|
|
27193
27193
|
children: t,
|
|
@@ -27195,7 +27195,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27195
27195
|
id: o,
|
|
27196
27196
|
ref: y,
|
|
27197
27197
|
style: {
|
|
27198
|
-
...
|
|
27198
|
+
...WK,
|
|
27199
27199
|
...f
|
|
27200
27200
|
},
|
|
27201
27201
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27272,31 +27272,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27272
27272
|
});
|
|
27273
27273
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27274
27274
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27275
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
27275
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [PK, FK] = (0, import_react.useState)(false), [IK, LK] = (0, import_react.useState)(null), $ = (0, import_react.useRef)({
|
|
27276
27276
|
state: J
|
|
27277
27277
|
});
|
|
27278
27278
|
useIsomorphicLayoutEffect$1(() => {
|
|
27279
27279
|
$.current.state = J;
|
|
27280
27280
|
}), (0, import_react.useEffect)(() => {
|
|
27281
|
-
if (n)
|
|
27281
|
+
if (n) LK(null);
|
|
27282
27282
|
else {
|
|
27283
27283
|
let e2 = I(q);
|
|
27284
|
-
|
|
27284
|
+
LK(() => e2);
|
|
27285
27285
|
}
|
|
27286
27286
|
}, [
|
|
27287
27287
|
n,
|
|
27288
27288
|
q,
|
|
27289
27289
|
I
|
|
27290
27290
|
]);
|
|
27291
|
-
let
|
|
27291
|
+
let RK = (i == null ? void 0 : i.coarse) ?? 15, zK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27292
27292
|
(0, import_react.useEffect)(() => {
|
|
27293
|
-
if (n ||
|
|
27293
|
+
if (n || IK == null) return;
|
|
27294
27294
|
let e2 = w.current;
|
|
27295
27295
|
assert(e2, "Element ref not attached");
|
|
27296
27296
|
let t2 = false;
|
|
27297
27297
|
return registerResizeHandle(q, e2, A, {
|
|
27298
|
-
coarse:
|
|
27299
|
-
fine:
|
|
27298
|
+
coarse: RK,
|
|
27299
|
+
fine: zK
|
|
27300
27300
|
}, (e3, n2, i2) => {
|
|
27301
27301
|
if (!n2) {
|
|
27302
27302
|
Q("inactive");
|
|
@@ -27311,7 +27311,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27311
27311
|
}
|
|
27312
27312
|
case "move": {
|
|
27313
27313
|
let { state: e4 } = $.current;
|
|
27314
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27314
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), IK(i2);
|
|
27315
27315
|
break;
|
|
27316
27316
|
}
|
|
27317
27317
|
case "up": {
|
|
@@ -27323,22 +27323,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27323
27323
|
}
|
|
27324
27324
|
});
|
|
27325
27325
|
}, [
|
|
27326
|
-
|
|
27326
|
+
RK,
|
|
27327
27327
|
A,
|
|
27328
27328
|
n,
|
|
27329
|
-
|
|
27329
|
+
zK,
|
|
27330
27330
|
I,
|
|
27331
27331
|
q,
|
|
27332
|
-
|
|
27332
|
+
IK,
|
|
27333
27333
|
z,
|
|
27334
27334
|
U
|
|
27335
27335
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27336
27336
|
disabled: n,
|
|
27337
27337
|
handleId: q,
|
|
27338
|
-
resizeHandler:
|
|
27338
|
+
resizeHandler: IK,
|
|
27339
27339
|
panelGroupElement: K
|
|
27340
27340
|
});
|
|
27341
|
-
let
|
|
27341
|
+
let BK = {
|
|
27342
27342
|
touchAction: "none",
|
|
27343
27343
|
userSelect: "none"
|
|
27344
27344
|
};
|
|
@@ -27348,22 +27348,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27348
27348
|
className: t,
|
|
27349
27349
|
id: a,
|
|
27350
27350
|
onBlur: () => {
|
|
27351
|
-
|
|
27351
|
+
FK(false), o == null ? void 0 : o();
|
|
27352
27352
|
},
|
|
27353
27353
|
onFocus: () => {
|
|
27354
|
-
|
|
27354
|
+
FK(true), d == null ? void 0 : d();
|
|
27355
27355
|
},
|
|
27356
27356
|
ref: w,
|
|
27357
27357
|
role: "separator",
|
|
27358
27358
|
style: {
|
|
27359
|
-
...
|
|
27359
|
+
...BK,
|
|
27360
27360
|
..._
|
|
27361
27361
|
},
|
|
27362
27362
|
tabIndex: v,
|
|
27363
27363
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27364
27364
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27365
27365
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27366
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27366
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : PK ? "keyboard" : void 0,
|
|
27367
27367
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27368
27368
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27369
27369
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27655,7 +27655,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27655
27655
|
}, [
|
|
27656
27656
|
h
|
|
27657
27657
|
]), k(() => {
|
|
27658
|
-
U(6,
|
|
27658
|
+
U(6, IK);
|
|
27659
27659
|
}, []);
|
|
27660
27660
|
let K = import_react.useMemo(() => ({
|
|
27661
27661
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27664,7 +27664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27664
27664
|
var _a2;
|
|
27665
27665
|
var a2, o2, s2;
|
|
27666
27666
|
if (!Object.is(n.current[e2], t2)) {
|
|
27667
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27667
|
+
if (n.current[e2] = t2, e2 === "search") FK(), Q(), U(1, PK);
|
|
27668
27668
|
else if (e2 === "value") {
|
|
27669
27669
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27670
27670
|
let e3 = document.getElementById(I);
|
|
@@ -27672,8 +27672,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27672
27672
|
}
|
|
27673
27673
|
if (U(7, () => {
|
|
27674
27674
|
var _a3;
|
|
27675
|
-
n.current.selectedItemId = (_a3 =
|
|
27676
|
-
}), i2 || U(5,
|
|
27675
|
+
n.current.selectedItemId = (_a3 = LK()) == null ? void 0 : _a3.id, K.emit();
|
|
27676
|
+
}), i2 || U(5, IK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27677
27677
|
let e3 = t2 ?? "";
|
|
27678
27678
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27679
27679
|
return;
|
|
@@ -27698,12 +27698,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27698
27698
|
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([
|
|
27699
27699
|
e2
|
|
27700
27700
|
]))), U(3, () => {
|
|
27701
|
-
|
|
27701
|
+
FK(), Q(), n.current.value || PK(), K.emit();
|
|
27702
27702
|
}), () => {
|
|
27703
27703
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27704
|
-
let t3 =
|
|
27704
|
+
let t3 = LK();
|
|
27705
27705
|
U(4, () => {
|
|
27706
|
-
|
|
27706
|
+
FK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && PK(), K.emit();
|
|
27707
27707
|
});
|
|
27708
27708
|
}),
|
|
27709
27709
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27748,12 +27748,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27748
27748
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27749
27749
|
});
|
|
27750
27750
|
}
|
|
27751
|
-
function
|
|
27751
|
+
function PK() {
|
|
27752
27752
|
var _a2;
|
|
27753
27753
|
let e2 = (_a2 = $().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27754
27754
|
K.setState("value", e2 || void 0);
|
|
27755
27755
|
}
|
|
27756
|
-
function
|
|
27756
|
+
function FK() {
|
|
27757
27757
|
var _a2, _b;
|
|
27758
27758
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27759
27759
|
n.current.filtered.count = i.current.size;
|
|
@@ -27771,17 +27771,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27771
27771
|
}
|
|
27772
27772
|
n.current.filtered.count = e2;
|
|
27773
27773
|
}
|
|
27774
|
-
function
|
|
27774
|
+
function IK() {
|
|
27775
27775
|
var _a2, _b;
|
|
27776
27776
|
var e2;
|
|
27777
|
-
let t2 =
|
|
27777
|
+
let t2 = LK();
|
|
27778
27778
|
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({
|
|
27779
27779
|
block: "nearest"
|
|
27780
27780
|
})), t2.scrollIntoView({
|
|
27781
27781
|
block: "nearest"
|
|
27782
27782
|
}));
|
|
27783
27783
|
}
|
|
27784
|
-
function
|
|
27784
|
+
function LK() {
|
|
27785
27785
|
var _a2;
|
|
27786
27786
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27787
27787
|
}
|
|
@@ -27789,25 +27789,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27789
27789
|
var _a2;
|
|
27790
27790
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27791
27791
|
}
|
|
27792
|
-
function
|
|
27792
|
+
function RK(e2) {
|
|
27793
27793
|
let t2 = $()[e2];
|
|
27794
27794
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27795
27795
|
}
|
|
27796
|
-
function
|
|
27796
|
+
function zK(e2) {
|
|
27797
27797
|
var t2;
|
|
27798
|
-
let n2 =
|
|
27798
|
+
let n2 = LK(), i2 = $(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27799
27799
|
(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));
|
|
27800
27800
|
}
|
|
27801
|
-
function
|
|
27801
|
+
function BK(e2) {
|
|
27802
27802
|
var _a2;
|
|
27803
|
-
let t2 = (_a2 =
|
|
27803
|
+
let t2 = (_a2 = LK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27804
27804
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27805
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27805
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : zK(e2);
|
|
27806
27806
|
}
|
|
27807
|
-
let
|
|
27808
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27809
|
-
},
|
|
27810
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27807
|
+
let VK = () => RK($().length - 1), HK = (e2) => {
|
|
27808
|
+
e2.preventDefault(), e2.metaKey ? VK() : e2.altKey ? BK(1) : zK(1);
|
|
27809
|
+
}, UK = (e2) => {
|
|
27810
|
+
e2.preventDefault(), e2.metaKey ? RK(0) : e2.altKey ? BK(-1) : zK(-1);
|
|
27811
27811
|
};
|
|
27812
27812
|
return import_react.createElement(Primitive.div, {
|
|
27813
27813
|
ref: t,
|
|
@@ -27821,27 +27821,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27821
27821
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27822
27822
|
case "n":
|
|
27823
27823
|
case "j":
|
|
27824
|
-
E && e2.ctrlKey &&
|
|
27824
|
+
E && e2.ctrlKey && HK(e2);
|
|
27825
27825
|
break;
|
|
27826
27826
|
case "ArrowDown":
|
|
27827
|
-
|
|
27827
|
+
HK(e2);
|
|
27828
27828
|
break;
|
|
27829
27829
|
case "p":
|
|
27830
27830
|
case "k":
|
|
27831
|
-
E && e2.ctrlKey &&
|
|
27831
|
+
E && e2.ctrlKey && UK(e2);
|
|
27832
27832
|
break;
|
|
27833
27833
|
case "ArrowUp":
|
|
27834
|
-
|
|
27834
|
+
UK(e2);
|
|
27835
27835
|
break;
|
|
27836
27836
|
case "Home":
|
|
27837
|
-
e2.preventDefault(),
|
|
27837
|
+
e2.preventDefault(), RK(0);
|
|
27838
27838
|
break;
|
|
27839
27839
|
case "End":
|
|
27840
|
-
e2.preventDefault(),
|
|
27840
|
+
e2.preventDefault(), VK();
|
|
27841
27841
|
break;
|
|
27842
27842
|
case "Enter": {
|
|
27843
27843
|
e2.preventDefault();
|
|
27844
|
-
let t3 =
|
|
27844
|
+
let t3 = LK();
|
|
27845
27845
|
if (t3) {
|
|
27846
27846
|
let e3 = new Event(Z);
|
|
27847
27847
|
t3.dispatchEvent(e3);
|
|
@@ -28250,153 +28250,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28250
28250
|
Combobox = (e) => {
|
|
28251
28251
|
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;
|
|
28252
28252
|
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);
|
|
28253
|
-
let Q = M === void 0 ? false : M,
|
|
28254
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28253
|
+
let Q = M === void 0 ? false : M, PK = I === void 0 ? true : I, FK = z === void 0 ? "Search..." : z, IK = U === void 0 ? "Nothing found." : U, LK = K === void 0 ? false : K, $ = q === void 0 ? false : q, RK = s ?? false, zK;
|
|
28254
|
+
t[24] !== v || t[25] !== w || t[26] !== RK ? (zK = {
|
|
28255
28255
|
prop: w,
|
|
28256
|
-
defaultProp:
|
|
28256
|
+
defaultProp: RK,
|
|
28257
28257
|
onChange: v
|
|
28258
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28259
|
-
let [
|
|
28260
|
-
t[28] === S ?
|
|
28258
|
+
}, t[24] = v, t[25] = w, t[26] = RK, t[27] = zK) : zK = t[27];
|
|
28259
|
+
let [BK, VK] = useControllableState(zK), HK = BK === void 0 ? false : BK, UK;
|
|
28260
|
+
t[28] === S ? UK = t[29] : (UK = (e2) => {
|
|
28261
28261
|
S == null ? void 0 : S(e2);
|
|
28262
|
-
}, t[28] = S, t[29] =
|
|
28263
|
-
let
|
|
28264
|
-
t[30] !== c || t[31] !==
|
|
28262
|
+
}, t[28] = S, t[29] = UK);
|
|
28263
|
+
let WK;
|
|
28264
|
+
t[30] !== c || t[31] !== UK || t[32] !== J ? (WK = {
|
|
28265
28265
|
prop: J,
|
|
28266
28266
|
defaultProp: c,
|
|
28267
|
-
onChange:
|
|
28268
|
-
}, t[30] = c, t[31] =
|
|
28269
|
-
let [
|
|
28270
|
-
t[34] ===
|
|
28271
|
-
let
|
|
28272
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28267
|
+
onChange: UK
|
|
28268
|
+
}, t[30] = c, t[31] = UK, t[32] = J, t[33] = WK) : WK = t[33];
|
|
28269
|
+
let [GK, KK] = useControllableState(WK), qK;
|
|
28270
|
+
t[34] === GK ? qK = t[35] : (qK = (e2) => Array.isArray(GK) ? GK.includes(e2) : GK === e2, t[34] = GK, t[35] = qK);
|
|
28271
|
+
let JK = qK, YK;
|
|
28272
|
+
t[36] !== _ || t[37] !== Q || t[38] !== VK || t[39] !== KK || t[40] !== GK ? (YK = (e2) => {
|
|
28273
28273
|
let t2 = e2;
|
|
28274
|
-
if (Q) if (Array.isArray(
|
|
28275
|
-
let n2 =
|
|
28274
|
+
if (Q) if (Array.isArray(GK)) if (GK.includes(t2)) {
|
|
28275
|
+
let n2 = GK.filter((t3) => t3 !== e2);
|
|
28276
28276
|
t2 = n2.length > 0 ? n2 : [];
|
|
28277
28277
|
} else t2 = [
|
|
28278
|
-
...
|
|
28278
|
+
...GK,
|
|
28279
28279
|
t2
|
|
28280
28280
|
];
|
|
28281
28281
|
else t2 = [
|
|
28282
28282
|
t2
|
|
28283
28283
|
];
|
|
28284
|
-
else
|
|
28285
|
-
|
|
28286
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28287
|
-
let JK = qK, YK;
|
|
28288
|
-
t[42] !== FK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== UK ? (YK = () => Q && FK && 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] = FK, t[43] = d, t[44] = Q, t[45] = E, t[46] = UK, t[47] = YK) : YK = t[47];
|
|
28284
|
+
else GK === e2 && (t2 = null);
|
|
28285
|
+
KK(t2), (_ ?? Q) || VK(false);
|
|
28286
|
+
}, t[36] = _, t[37] = Q, t[38] = VK, t[39] = KK, t[40] = GK, t[41] = YK) : YK = t[41];
|
|
28289
28287
|
let XK = YK, ZK;
|
|
28290
|
-
t[
|
|
28291
|
-
let QK;
|
|
28292
|
-
t[
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
let tq;
|
|
28298
|
-
t[
|
|
28288
|
+
t[42] !== LK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== GK ? (ZK = () => Q && LK && E ? E : GK == null ? E ?? "--" : Array.isArray(GK) ? GK.length === 0 ? E ?? "--" : GK.length === 1 && d !== void 0 ? d(GK[0]) : `${GK.length} selected` : d === void 0 ? E ?? "--" : d(GK), t[42] = LK, t[43] = d, t[44] = Q, t[45] = E, t[46] = GK, t[47] = ZK) : ZK = t[47];
|
|
28289
|
+
let QK = ZK, $K;
|
|
28290
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($K = cn("relative"), t[48] = $K) : $K = t[48];
|
|
28291
|
+
let eq;
|
|
28292
|
+
t[49] !== $ || t[50] !== VK ? (eq = (e2) => {
|
|
28293
|
+
$ && e2 || VK(e2);
|
|
28294
|
+
}, t[49] = $, t[50] = VK, t[51] = eq) : eq = t[51];
|
|
28295
|
+
let tq = $ && "cursor-not-allowed opacity-50", nq;
|
|
28296
|
+
t[52] !== o || t[53] !== tq ? (nq = 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", tq, o), t[52] = o, t[53] = tq, t[54] = nq) : nq = t[54];
|
|
28299
28297
|
let rq;
|
|
28300
|
-
t[
|
|
28298
|
+
t[55] === QK ? rq = t[56] : (rq = QK(), t[55] = QK, t[56] = rq);
|
|
28299
|
+
let aq;
|
|
28300
|
+
t[57] === rq ? aq = t[58] : (aq = (0, import_jsx_runtime.jsx)("span", {
|
|
28301
28301
|
className: "truncate flex-1 min-w-0",
|
|
28302
|
-
children:
|
|
28303
|
-
}), t[57] =
|
|
28304
|
-
let iq;
|
|
28305
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28306
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28307
|
-
}), t[59] = iq) : iq = t[59];
|
|
28302
|
+
children: rq
|
|
28303
|
+
}), t[57] = rq, t[58] = aq);
|
|
28308
28304
|
let oq;
|
|
28309
|
-
t[
|
|
28305
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28306
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28307
|
+
}), t[59] = oq) : oq = t[59];
|
|
28308
|
+
let cq;
|
|
28309
|
+
t[60] !== $ || t[61] !== h || t[62] !== HK || t[63] !== nq || t[64] !== aq ? (cq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28310
28310
|
asChild: true,
|
|
28311
28311
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28312
28312
|
id: h,
|
|
28313
28313
|
type: "button",
|
|
28314
|
-
className:
|
|
28315
|
-
"aria-expanded":
|
|
28314
|
+
className: nq,
|
|
28315
|
+
"aria-expanded": HK,
|
|
28316
28316
|
"aria-disabled": $,
|
|
28317
28317
|
children: [
|
|
28318
|
-
|
|
28319
|
-
|
|
28318
|
+
aq,
|
|
28319
|
+
oq
|
|
28320
28320
|
]
|
|
28321
28321
|
})
|
|
28322
|
-
}), t[60] = $, t[61] = h, t[62] =
|
|
28323
|
-
let
|
|
28324
|
-
t[66] !==
|
|
28325
|
-
placeholder:
|
|
28322
|
+
}), t[60] = $, t[61] = h, t[62] = HK, t[63] = nq, t[64] = aq, t[65] = cq) : cq = t[65];
|
|
28323
|
+
let lq;
|
|
28324
|
+
t[66] !== FK || t[67] !== y || t[68] !== A ? (lq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28325
|
+
placeholder: FK,
|
|
28326
28326
|
rootClassName: "px-1 h-8",
|
|
28327
28327
|
autoFocus: true,
|
|
28328
28328
|
value: A,
|
|
28329
28329
|
onValueChange: y
|
|
28330
|
-
}), t[66] =
|
|
28331
|
-
let cq;
|
|
28332
|
-
t[70] === PK ? cq = t[71] : (cq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28333
|
-
children: PK
|
|
28334
|
-
}), t[70] = PK, t[71] = cq);
|
|
28335
|
-
let lq;
|
|
28336
|
-
t[72] !== JK || t[73] !== KK ? (lq = {
|
|
28337
|
-
isSelected: KK,
|
|
28338
|
-
onSelect: JK
|
|
28339
|
-
}, t[72] = JK, t[73] = KK, t[74] = lq) : lq = t[74];
|
|
28330
|
+
}), t[66] = FK, t[67] = y, t[68] = A, t[69] = lq) : lq = t[69];
|
|
28340
28331
|
let uq;
|
|
28341
|
-
t[
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
}), t[75] = n, t[76] = lq, t[77] = uq) : uq = t[77];
|
|
28332
|
+
t[70] === IK ? uq = t[71] : (uq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28333
|
+
children: IK
|
|
28334
|
+
}), t[70] = IK, t[71] = uq);
|
|
28345
28335
|
let dq;
|
|
28346
|
-
t[
|
|
28336
|
+
t[72] !== XK || t[73] !== JK ? (dq = {
|
|
28337
|
+
isSelected: JK,
|
|
28338
|
+
onSelect: XK
|
|
28339
|
+
}, t[72] = XK, t[73] = JK, t[74] = dq) : dq = t[74];
|
|
28340
|
+
let fq;
|
|
28341
|
+
t[75] !== n || t[76] !== dq ? (fq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28342
|
+
value: dq,
|
|
28343
|
+
children: n
|
|
28344
|
+
}), t[75] = n, t[76] = dq, t[77] = fq) : fq = t[77];
|
|
28345
|
+
let pq;
|
|
28346
|
+
t[78] !== uq || t[79] !== fq ? (pq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28347
28347
|
className: "max-h-60 py-.5",
|
|
28348
28348
|
children: [
|
|
28349
|
-
|
|
28350
|
-
|
|
28349
|
+
uq,
|
|
28350
|
+
fq
|
|
28351
28351
|
]
|
|
28352
|
-
}), t[78] =
|
|
28353
|
-
let
|
|
28354
|
-
t[81] !== f || t[82] !==
|
|
28352
|
+
}), t[78] = uq, t[79] = fq, t[80] = pq) : pq = t[80];
|
|
28353
|
+
let mq;
|
|
28354
|
+
t[81] !== f || t[82] !== PK || t[83] !== lq || t[84] !== pq ? (mq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28355
28355
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28356
28356
|
align: "start",
|
|
28357
28357
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28358
28358
|
filter: f,
|
|
28359
|
-
shouldFilter:
|
|
28359
|
+
shouldFilter: PK,
|
|
28360
28360
|
children: [
|
|
28361
|
-
|
|
28362
|
-
|
|
28361
|
+
lq,
|
|
28362
|
+
pq
|
|
28363
28363
|
]
|
|
28364
28364
|
})
|
|
28365
|
-
}), t[81] = f, t[82] =
|
|
28366
|
-
let
|
|
28367
|
-
t[86] !==
|
|
28368
|
-
open:
|
|
28369
|
-
onOpenChange:
|
|
28365
|
+
}), t[81] = f, t[82] = PK, t[83] = lq, t[84] = pq, t[85] = mq) : mq = t[85];
|
|
28366
|
+
let hq;
|
|
28367
|
+
t[86] !== HK || t[87] !== eq || t[88] !== cq || t[89] !== mq ? (hq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28368
|
+
open: HK,
|
|
28369
|
+
onOpenChange: eq,
|
|
28370
28370
|
children: [
|
|
28371
|
-
|
|
28372
|
-
|
|
28371
|
+
cq,
|
|
28372
|
+
mq
|
|
28373
28373
|
]
|
|
28374
|
-
}), t[86] =
|
|
28375
|
-
let
|
|
28376
|
-
t[91] !==
|
|
28374
|
+
}), t[86] = HK, t[87] = eq, t[88] = cq, t[89] = mq, t[90] = hq) : hq = t[90];
|
|
28375
|
+
let gq;
|
|
28376
|
+
t[91] !== LK || t[92] !== i || t[93] !== $ || t[94] !== d || t[95] !== XK || t[96] !== Q || t[97] !== GK ? (gq = Q && LK && (0, import_jsx_runtime.jsx)("div", {
|
|
28377
28377
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28378
|
-
children: Array.isArray(
|
|
28378
|
+
children: Array.isArray(GK) && GK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28379
28379
|
variant: "secondary",
|
|
28380
28380
|
children: [
|
|
28381
28381
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28382
28382
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28383
28383
|
onClick: () => {
|
|
28384
|
-
$ ||
|
|
28384
|
+
$ || XK(e2);
|
|
28385
28385
|
},
|
|
28386
28386
|
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", $ && "pointer-events-none")
|
|
28387
28387
|
})
|
|
28388
28388
|
]
|
|
28389
28389
|
}, String(e2)))
|
|
28390
|
-
}), t[91] =
|
|
28391
|
-
let
|
|
28392
|
-
return t[99] !== O || t[100] !==
|
|
28393
|
-
className:
|
|
28390
|
+
}), t[91] = LK, t[92] = i, t[93] = $, t[94] = d, t[95] = XK, t[96] = Q, t[97] = GK, t[98] = gq) : gq = t[98];
|
|
28391
|
+
let _q;
|
|
28392
|
+
return t[99] !== O || t[100] !== hq || t[101] !== gq ? (_q = (0, import_jsx_runtime.jsxs)("div", {
|
|
28393
|
+
className: $K,
|
|
28394
28394
|
...O,
|
|
28395
28395
|
children: [
|
|
28396
|
-
|
|
28397
|
-
|
|
28396
|
+
hq,
|
|
28397
|
+
gq
|
|
28398
28398
|
]
|
|
28399
|
-
}), t[99] = O, t[100] =
|
|
28399
|
+
}), t[99] = O, t[100] = hq, t[101] = gq, t[102] = _q) : _q = t[102], _q;
|
|
28400
28400
|
};
|
|
28401
28401
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28402
28402
|
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), _;
|
|
@@ -28703,7 +28703,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28703
28703
|
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
28704
28704
|
children: [
|
|
28705
28705
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
28706
|
-
children: _temp5$
|
|
28706
|
+
children: _temp5$2
|
|
28707
28707
|
}),
|
|
28708
28708
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
28709
28709
|
children: _temp6$1
|
|
@@ -28743,7 +28743,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28743
28743
|
function _temp4$2(e) {
|
|
28744
28744
|
return cn("w-fit", e);
|
|
28745
28745
|
}
|
|
28746
|
-
function _temp5$
|
|
28746
|
+
function _temp5$2(e) {
|
|
28747
28747
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
28748
28748
|
children: e
|
|
28749
28749
|
});
|
|
@@ -28860,7 +28860,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28860
28860
|
let t = (0, import_compiler_runtime$25.c)(28), n, i, o, s, d;
|
|
28861
28861
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
|
|
28862
28862
|
let [f, h] = (0, import_react.useState)(false), _;
|
|
28863
|
-
t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5), t[6] = n, t[7] = _);
|
|
28863
|
+
t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5$1), t[6] = n, t[7] = _);
|
|
28864
28864
|
let v;
|
|
28865
28865
|
t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (e2) => {
|
|
28866
28866
|
h(e2);
|
|
@@ -28964,7 +28964,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28964
28964
|
date: e
|
|
28965
28965
|
});
|
|
28966
28966
|
}
|
|
28967
|
-
function _temp5(e) {
|
|
28967
|
+
function _temp5$1(e) {
|
|
28968
28968
|
return cn("group flex flex-col gap-2", e);
|
|
28969
28969
|
}
|
|
28970
28970
|
function _temp6(e) {
|
|
@@ -29524,13 +29524,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29524
29524
|
id: v,
|
|
29525
29525
|
operator: e2
|
|
29526
29526
|
});
|
|
29527
|
-
},
|
|
29527
|
+
}, PK = buildFilterValue({
|
|
29528
29528
|
type: S,
|
|
29529
29529
|
operator: E,
|
|
29530
29530
|
draft: mergeNumberTextDraft(A, I)
|
|
29531
|
-
}),
|
|
29532
|
-
if (!
|
|
29533
|
-
let e2 =
|
|
29531
|
+
}), FK = PK === void 0, IK = FK ? getMissingValueMessage(S, E) : "Apply filter", LK = () => {
|
|
29532
|
+
if (!PK) return;
|
|
29533
|
+
let e2 = PK;
|
|
29534
29534
|
t.setColumnFilters((t2) => {
|
|
29535
29535
|
if (a === void 0) return [
|
|
29536
29536
|
{
|
|
@@ -29549,18 +29549,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29549
29549
|
}), i();
|
|
29550
29550
|
}, $ = () => {
|
|
29551
29551
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29552
|
-
},
|
|
29552
|
+
}, RK = !OPERATORS_WITHOUT_VALUE.has(E), zK = OPERATORS_BY_TYPE[S], BK = (0, import_react.useRef)(null), VK = (0, import_react.useRef)(null);
|
|
29553
29553
|
return (0, import_react.useEffect)(() => {
|
|
29554
29554
|
var _a2, _b;
|
|
29555
|
-
let e2 = (_a2 =
|
|
29556
|
-
e2 ? e2.focus() : (_b =
|
|
29555
|
+
let e2 = (_a2 = BK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29556
|
+
e2 ? e2.focus() : (_b = VK.current) == null ? void 0 : _b.focus();
|
|
29557
29557
|
}, [
|
|
29558
29558
|
S,
|
|
29559
29559
|
E
|
|
29560
29560
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29561
29561
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29562
29562
|
onSubmit: (e2) => {
|
|
29563
|
-
e2.preventDefault(),
|
|
29563
|
+
e2.preventDefault(), LK();
|
|
29564
29564
|
},
|
|
29565
29565
|
onKeyDownCapture: (e2) => {
|
|
29566
29566
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29601,13 +29601,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29601
29601
|
onValueChange: (e2) => Q(e2),
|
|
29602
29602
|
children: [
|
|
29603
29603
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29604
|
-
ref:
|
|
29604
|
+
ref: VK,
|
|
29605
29605
|
id: s,
|
|
29606
29606
|
className: "h-6 mb-1 bg-transparent",
|
|
29607
29607
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29608
29608
|
}),
|
|
29609
29609
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29610
|
-
children:
|
|
29610
|
+
children: zK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29611
29611
|
value: e2,
|
|
29612
29612
|
children: OPERATOR_LABELS[e2]
|
|
29613
29613
|
}, e2))
|
|
@@ -29616,8 +29616,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29616
29616
|
}, S)
|
|
29617
29617
|
]
|
|
29618
29618
|
}),
|
|
29619
|
-
|
|
29620
|
-
ref:
|
|
29619
|
+
RK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29620
|
+
ref: BK,
|
|
29621
29621
|
className: "flex flex-col gap-1",
|
|
29622
29622
|
children: [
|
|
29623
29623
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29644,14 +29644,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29644
29644
|
className: "flex gap-1 mb-1",
|
|
29645
29645
|
children: [
|
|
29646
29646
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29647
|
-
content:
|
|
29647
|
+
content: IK,
|
|
29648
29648
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29649
29649
|
className: "inline-flex",
|
|
29650
29650
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29651
29651
|
type: "submit",
|
|
29652
29652
|
size: "icon",
|
|
29653
29653
|
variant: "ghost",
|
|
29654
|
-
disabled:
|
|
29654
|
+
disabled: FK,
|
|
29655
29655
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29656
29656
|
"aria-label": "Apply filter",
|
|
29657
29657
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -32959,7 +32959,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32959
32959
|
filename: i2.filename
|
|
32960
32960
|
};
|
|
32961
32961
|
}, t[6] = e, t[7] = A);
|
|
32962
|
-
let M = A, I, z, U, K, q, J, Q,
|
|
32962
|
+
let M = A, I, z, U, K, q, J, Q, PK, FK, IK, LK, $, RK;
|
|
32963
32963
|
if (t[8] !== O || t[9] !== d || t[10] !== i || t[11] !== n || t[12] !== M || t[13] !== f) {
|
|
32964
32964
|
let e2 = async (t2) => {
|
|
32965
32965
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -33023,14 +33023,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33023
33023
|
asChild: true,
|
|
33024
33024
|
disabled: d,
|
|
33025
33025
|
children: h
|
|
33026
|
-
}), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? (
|
|
33026
|
+
}), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? (PK = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33027
33027
|
content: f,
|
|
33028
33028
|
open: s2,
|
|
33029
33029
|
children: _2
|
|
33030
|
-
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] =
|
|
33030
|
+
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] = PK) : PK = t[36], I = DropdownMenuContent, FK = "bottom", IK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33031
33031
|
className: "text-xs text-muted-foreground",
|
|
33032
33032
|
children: "Download"
|
|
33033
|
-
}), t[37] =
|
|
33033
|
+
}), t[37] = LK) : LK = t[37], $ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33034
33034
|
onSelect: () => {
|
|
33035
33035
|
e2(t2.format);
|
|
33036
33036
|
},
|
|
@@ -33051,10 +33051,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33051
33051
|
]
|
|
33052
33052
|
})
|
|
33053
33053
|
]
|
|
33054
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33054
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (RK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33055
33055
|
className: "text-xs text-muted-foreground",
|
|
33056
33056
|
children: "Copy to clipboard"
|
|
33057
|
-
}), t[38] = U, t[39] =
|
|
33057
|
+
}), t[38] = U, t[39] = RK) : (U = t[38], RK = t[39]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33058
33058
|
onSelect: async () => {
|
|
33059
33059
|
try {
|
|
33060
33060
|
await a(e3.format);
|
|
@@ -33083,30 +33083,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33083
33083
|
]
|
|
33084
33084
|
})
|
|
33085
33085
|
]
|
|
33086
|
-
}, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] =
|
|
33087
|
-
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20],
|
|
33088
|
-
let
|
|
33089
|
-
t[40] !== I || t[41] !== U || t[42] !== K || t[43] !==
|
|
33090
|
-
side:
|
|
33091
|
-
className:
|
|
33086
|
+
}, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = PK, t[22] = FK, t[23] = IK, t[24] = LK, t[25] = $, t[26] = RK;
|
|
33087
|
+
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], PK = t[21], FK = t[22], IK = t[23], LK = t[24], $ = t[25], RK = t[26];
|
|
33088
|
+
let zK;
|
|
33089
|
+
t[40] !== I || t[41] !== U || t[42] !== K || t[43] !== FK || t[44] !== IK || t[45] !== LK || t[46] !== $ || t[47] !== RK ? (zK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33090
|
+
side: FK,
|
|
33091
|
+
className: IK,
|
|
33092
33092
|
children: [
|
|
33093
|
-
|
|
33093
|
+
LK,
|
|
33094
33094
|
$,
|
|
33095
|
-
|
|
33095
|
+
RK,
|
|
33096
33096
|
U,
|
|
33097
33097
|
K
|
|
33098
33098
|
]
|
|
33099
|
-
}), t[40] = I, t[41] = U, t[42] = K, t[43] =
|
|
33100
|
-
let
|
|
33101
|
-
return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
33099
|
+
}), t[40] = I, t[41] = U, t[42] = K, t[43] = FK, t[44] = IK, t[45] = LK, t[46] = $, t[47] = RK, t[48] = zK) : zK = t[48];
|
|
33100
|
+
let BK;
|
|
33101
|
+
return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== PK || t[54] !== zK ? (BK = (0, import_jsx_runtime.jsxs)(z, {
|
|
33102
33102
|
modal: q,
|
|
33103
33103
|
open: J,
|
|
33104
33104
|
onOpenChange: Q,
|
|
33105
33105
|
children: [
|
|
33106
|
-
|
|
33107
|
-
|
|
33106
|
+
PK,
|
|
33107
|
+
zK
|
|
33108
33108
|
]
|
|
33109
|
-
}), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
33109
|
+
}), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] = PK, t[54] = zK, t[55] = BK) : BK = t[55], BK;
|
|
33110
33110
|
};
|
|
33111
33111
|
function fetchJson(e) {
|
|
33112
33112
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33199,22 +33199,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33199
33199
|
]
|
|
33200
33200
|
}) : null;
|
|
33201
33201
|
};
|
|
33202
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange:
|
|
33203
|
-
let [
|
|
33202
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: PK, getRowIds: FK, enableSearch: IK = false, searchQuery: LK, onSearchQueryChange: $, showFilters: RK = false, filters: zK, onFiltersChange: BK, calculateTopKRows: VK, reloading: HK, freezeColumnsLeft: UK, freezeColumnsRight: WK, hiddenColumns: GK, toggleDisplayHeader: KK, showChartBuilder: qK, isChartBuilderOpen: JK, showPageSizeSelector: YK, showTableExplorer: XK, togglePanel: ZK, isPanelOpen: QK, isAnyPanelOpen: $K, viewedRowIdx: eq, onViewedRowChange: tq, renderTableExplorerPanel: nq }) => {
|
|
33203
|
+
let [rq, iq] = import_react.useState(false), { locale: aq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: oq, setColumnPinning: sq } = useColumnPinning(UK, WK), { columnVisibility: cq, setColumnVisibility: lq } = useColumnVisibility(GK);
|
|
33204
33204
|
import_react.useEffect(() => {
|
|
33205
33205
|
let e2;
|
|
33206
|
-
return
|
|
33207
|
-
|
|
33208
|
-
}, 300) :
|
|
33206
|
+
return HK ? e2 = setTimeout(() => {
|
|
33207
|
+
iq(true);
|
|
33208
|
+
}, 300) : iq(false), () => {
|
|
33209
33209
|
e2 && clearTimeout(e2);
|
|
33210
33210
|
};
|
|
33211
33211
|
}, [
|
|
33212
|
-
|
|
33212
|
+
HK
|
|
33213
33213
|
]);
|
|
33214
|
-
function
|
|
33214
|
+
function uq(e2, t2) {
|
|
33215
33215
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
33216
33216
|
}
|
|
33217
|
-
let
|
|
33217
|
+
let dq = useReactTable({
|
|
33218
33218
|
_features: [
|
|
33219
33219
|
ColumnPinning,
|
|
33220
33220
|
ColumnWrappingFeature,
|
|
@@ -33238,11 +33238,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33238
33238
|
getRowId: (e2, t2) => {
|
|
33239
33239
|
let n2 = getStableRowId(e2);
|
|
33240
33240
|
if (n2) return n2;
|
|
33241
|
-
let i2 =
|
|
33241
|
+
let i2 = uq(e2, t2);
|
|
33242
33242
|
return String(i2);
|
|
33243
33243
|
}
|
|
33244
33244
|
} : {},
|
|
33245
|
-
locale:
|
|
33245
|
+
locale: aq,
|
|
33246
33246
|
manualPagination: q,
|
|
33247
33247
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33248
33248
|
...w ? {
|
|
@@ -33252,22 +33252,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33252
33252
|
enableMultiSort: true,
|
|
33253
33253
|
getSortedRowModel: getSortedRowModel(),
|
|
33254
33254
|
manualFiltering: true,
|
|
33255
|
-
enableColumnFilters:
|
|
33255
|
+
enableColumnFilters: RK,
|
|
33256
33256
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33257
|
-
onColumnFiltersChange:
|
|
33257
|
+
onColumnFiltersChange: BK,
|
|
33258
33258
|
onRowSelectionChange: Q,
|
|
33259
|
-
onCellSelectionChange:
|
|
33259
|
+
onCellSelectionChange: PK,
|
|
33260
33260
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33261
33261
|
enableMultiCellSelection: c === "multi-cell",
|
|
33262
|
-
onColumnPinningChange:
|
|
33263
|
-
onColumnVisibilityChange:
|
|
33262
|
+
onColumnPinningChange: sq,
|
|
33263
|
+
onColumnVisibilityChange: lq,
|
|
33264
33264
|
enableFocusRow: true,
|
|
33265
|
-
onFocusRowChange:
|
|
33265
|
+
onFocusRowChange: tq,
|
|
33266
33266
|
state: {
|
|
33267
33267
|
...S ? {
|
|
33268
33268
|
sorting: S
|
|
33269
33269
|
} : {},
|
|
33270
|
-
columnFilters:
|
|
33270
|
+
columnFilters: zK,
|
|
33271
33271
|
...z ? {
|
|
33272
33272
|
pagination: z
|
|
33273
33273
|
} : J && !z ? {} : {
|
|
@@ -33278,59 +33278,59 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33278
33278
|
},
|
|
33279
33279
|
rowSelection: E ?? {},
|
|
33280
33280
|
cellSelection: O ?? [],
|
|
33281
|
-
columnVisibility:
|
|
33281
|
+
columnVisibility: cq,
|
|
33282
33282
|
cellStyling: A,
|
|
33283
|
-
columnPinning:
|
|
33283
|
+
columnPinning: oq,
|
|
33284
33284
|
cellHoverTemplate: M,
|
|
33285
33285
|
cellHoverTexts: I ?? {}
|
|
33286
33286
|
}
|
|
33287
|
-
}),
|
|
33287
|
+
}), fq = (QK == null ? void 0 : QK(PANEL_TYPES.ROW_VIEWER)) ?? false, pq = !J && o.length > 100, mq = useScrollContainerHeight({
|
|
33288
33288
|
maxHeight: n,
|
|
33289
|
-
virtualize:
|
|
33290
|
-
}), [
|
|
33289
|
+
virtualize: pq
|
|
33290
|
+
}), [hq, gq] = import_react.useState(null), _q = import_react.useMemo(() => ({
|
|
33291
33291
|
requestAddFilter: (e2) => {
|
|
33292
|
-
let t2 =
|
|
33293
|
-
t2 &&
|
|
33292
|
+
let t2 = dq.getColumn(e2.columnId);
|
|
33293
|
+
t2 && gq(buildEditorSnapshot(t2, {
|
|
33294
33294
|
operator: e2.operator
|
|
33295
33295
|
}));
|
|
33296
33296
|
}
|
|
33297
33297
|
}), [
|
|
33298
|
-
|
|
33299
|
-
]),
|
|
33298
|
+
dq
|
|
33299
|
+
]), vq = getUserColumnVisibilityCounts(dq), yq = vq.total > 0 && vq.visible === 0;
|
|
33300
33300
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33301
|
-
value:
|
|
33301
|
+
value: _q,
|
|
33302
33302
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33303
33303
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33304
33304
|
children: [
|
|
33305
33305
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33306
|
-
filters:
|
|
33307
|
-
table:
|
|
33308
|
-
calculateTopKRows:
|
|
33309
|
-
addFilterSnapshot:
|
|
33310
|
-
onAddFilterSnapshotChange:
|
|
33306
|
+
filters: zK,
|
|
33307
|
+
table: dq,
|
|
33308
|
+
calculateTopKRows: VK,
|
|
33309
|
+
addFilterSnapshot: hq,
|
|
33310
|
+
onAddFilterSnapshotChange: gq
|
|
33311
33311
|
}),
|
|
33312
|
-
|
|
33312
|
+
nq == null ? void 0 : nq(dq),
|
|
33313
33313
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33314
33314
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33315
33315
|
part: "table-wrapper",
|
|
33316
33316
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33317
33317
|
children: [
|
|
33318
33318
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33319
|
-
enableSearch:
|
|
33320
|
-
searchQuery:
|
|
33319
|
+
enableSearch: IK,
|
|
33320
|
+
searchQuery: LK,
|
|
33321
33321
|
onSearchQueryChange: $,
|
|
33322
|
-
reloading:
|
|
33323
|
-
showChartBuilder:
|
|
33324
|
-
isChartBuilderOpen:
|
|
33325
|
-
toggleDisplayHeader:
|
|
33326
|
-
showTableExplorer:
|
|
33327
|
-
togglePanel:
|
|
33328
|
-
isAnyPanelOpen:
|
|
33322
|
+
reloading: HK,
|
|
33323
|
+
showChartBuilder: qK,
|
|
33324
|
+
isChartBuilderOpen: JK,
|
|
33325
|
+
toggleDisplayHeader: KK,
|
|
33326
|
+
showTableExplorer: XK,
|
|
33327
|
+
togglePanel: ZK,
|
|
33328
|
+
isAnyPanelOpen: $K,
|
|
33329
33329
|
downloadAs: K,
|
|
33330
33330
|
sizeBytes: _,
|
|
33331
33331
|
sizeBytesIsLoading: v
|
|
33332
33332
|
}),
|
|
33333
|
-
|
|
33333
|
+
yq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33334
33334
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33335
33335
|
children: [
|
|
33336
33336
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -33339,26 +33339,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33339
33339
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
33340
33340
|
variant: "link",
|
|
33341
33341
|
size: "xs",
|
|
33342
|
-
onClick: () =>
|
|
33342
|
+
onClick: () => dq.resetColumnVisibility(true),
|
|
33343
33343
|
children: "Unhide all"
|
|
33344
33344
|
})
|
|
33345
33345
|
]
|
|
33346
33346
|
}),
|
|
33347
33347
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33348
33348
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33349
|
-
ref:
|
|
33349
|
+
ref: mq,
|
|
33350
33350
|
children: [
|
|
33351
|
-
|
|
33351
|
+
rq && (0, import_jsx_runtime.jsx)("thead", {
|
|
33352
33352
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33353
33353
|
}),
|
|
33354
|
-
renderTableHeader(
|
|
33354
|
+
renderTableHeader(dq, pq || !!n),
|
|
33355
33355
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33356
|
-
table:
|
|
33356
|
+
table: dq,
|
|
33357
33357
|
columns: i,
|
|
33358
|
-
rowViewerPanelOpen:
|
|
33359
|
-
getRowIndex:
|
|
33360
|
-
viewedRowIdx:
|
|
33361
|
-
virtualize:
|
|
33358
|
+
rowViewerPanelOpen: fq,
|
|
33359
|
+
getRowIndex: uq,
|
|
33360
|
+
viewedRowIdx: eq,
|
|
33361
|
+
virtualize: pq
|
|
33362
33362
|
})
|
|
33363
33363
|
]
|
|
33364
33364
|
}),
|
|
@@ -33369,11 +33369,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33369
33369
|
pagination: J,
|
|
33370
33370
|
selection: c,
|
|
33371
33371
|
onRowSelectionChange: Q,
|
|
33372
|
-
table:
|
|
33373
|
-
getRowIds:
|
|
33374
|
-
showPageSizeSelector:
|
|
33375
|
-
tableLoading:
|
|
33376
|
-
togglePanel:
|
|
33372
|
+
table: dq,
|
|
33373
|
+
getRowIds: FK,
|
|
33374
|
+
showPageSizeSelector: YK,
|
|
33375
|
+
tableLoading: HK,
|
|
33376
|
+
togglePanel: ZK
|
|
33377
33377
|
})
|
|
33378
33378
|
]
|
|
33379
33379
|
})
|
|
@@ -33469,42 +33469,42 @@ ${d}`,
|
|
|
33469
33469
|
}, t[12] = d, t[13] = n, t[14] = U) : U = t[14];
|
|
33470
33470
|
let K = U, q;
|
|
33471
33471
|
t[15] === I ? q = t[16] : (q = () => z(!I), t[15] = I, t[16] = q);
|
|
33472
|
-
let J = I ? "Collapse traceback" : "Expand traceback",
|
|
33473
|
-
t[17] === I ?
|
|
33472
|
+
let J = I ? "Collapse traceback" : "Expand traceback", PK;
|
|
33473
|
+
t[17] === I ? PK = t[18] : (PK = I ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33474
33474
|
className: "h-3 w-3"
|
|
33475
33475
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
33476
33476
|
className: "h-3 w-3"
|
|
33477
|
-
}), t[17] = I, t[18] =
|
|
33478
|
-
let
|
|
33479
|
-
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33477
|
+
}), t[17] = I, t[18] = PK);
|
|
33478
|
+
let IK;
|
|
33479
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IK = (0, import_jsx_runtime.jsx)("span", {
|
|
33480
33480
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
33481
33481
|
children: "Traceback"
|
|
33482
|
-
}), t[19] =
|
|
33483
|
-
let
|
|
33484
|
-
t[20] !== I || t[21] !== q || t[22] !== J || t[23] !==
|
|
33482
|
+
}), t[19] = IK) : IK = t[19];
|
|
33483
|
+
let LK;
|
|
33484
|
+
t[20] !== I || t[21] !== q || t[22] !== J || t[23] !== PK ? (LK = (0, import_jsx_runtime.jsxs)("button", {
|
|
33485
33485
|
type: "button",
|
|
33486
33486
|
onClick: q,
|
|
33487
33487
|
"aria-expanded": I,
|
|
33488
33488
|
"aria-label": J,
|
|
33489
33489
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
33490
33490
|
children: [
|
|
33491
|
-
|
|
33492
|
-
|
|
33491
|
+
PK,
|
|
33492
|
+
IK
|
|
33493
33493
|
]
|
|
33494
|
-
}), t[20] = I, t[21] = q, t[22] = J, t[23] =
|
|
33494
|
+
}), t[20] = I, t[21] = q, t[22] = J, t[23] = PK, t[24] = LK) : LK = t[24];
|
|
33495
33495
|
let $;
|
|
33496
33496
|
t[25] !== s || t[26] !== I ? ($ = I && (0, import_jsx_runtime.jsx)("div", {
|
|
33497
33497
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
33498
33498
|
children: s
|
|
33499
33499
|
}), t[25] = s, t[26] = I, t[27] = $) : $ = t[27];
|
|
33500
|
-
let
|
|
33501
|
-
t[28] !== K || t[29] !== A ? (
|
|
33500
|
+
let RK;
|
|
33501
|
+
t[28] !== K || t[29] !== A ? (RK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33502
33502
|
tooltip: "Fix with AI",
|
|
33503
33503
|
openPrompt: () => K(false),
|
|
33504
33504
|
applyAutofix: () => K(true)
|
|
33505
|
-
}), t[28] = K, t[29] = A, t[30] =
|
|
33506
|
-
let
|
|
33507
|
-
t[31] !== w || t[32] !== v ? (
|
|
33505
|
+
}), t[28] = K, t[29] = A, t[30] = RK) : RK = t[30];
|
|
33506
|
+
let zK;
|
|
33507
|
+
t[31] !== w || t[32] !== v ? (zK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33508
33508
|
content: "Attach pdb to the exception point.",
|
|
33509
33509
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33510
33510
|
size: "xs",
|
|
@@ -33521,9 +33521,9 @@ ${d}`,
|
|
|
33521
33521
|
"Launch debugger"
|
|
33522
33522
|
]
|
|
33523
33523
|
})
|
|
33524
|
-
}), t[31] = w, t[32] = v, t[33] =
|
|
33525
|
-
let
|
|
33526
|
-
t[34] !== d || t[35] !== i ? (
|
|
33524
|
+
}), t[31] = w, t[32] = v, t[33] = zK) : zK = t[33];
|
|
33525
|
+
let BK;
|
|
33526
|
+
t[34] !== d || t[35] !== i ? (BK = M && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33527
33527
|
children: [
|
|
33528
33528
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33529
33529
|
asChild: true,
|
|
@@ -33591,25 +33591,25 @@ ${d}`,
|
|
|
33591
33591
|
]
|
|
33592
33592
|
})
|
|
33593
33593
|
]
|
|
33594
|
-
}), t[34] = d, t[35] = i, t[36] =
|
|
33595
|
-
let
|
|
33596
|
-
t[37] !==
|
|
33594
|
+
}), t[34] = d, t[35] = i, t[36] = BK) : BK = t[36];
|
|
33595
|
+
let VK;
|
|
33596
|
+
t[37] !== RK || t[38] !== zK || t[39] !== BK ? (VK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33597
33597
|
className: "flex gap-2",
|
|
33598
33598
|
children: [
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33599
|
+
RK,
|
|
33600
|
+
zK,
|
|
33601
|
+
BK
|
|
33602
33602
|
]
|
|
33603
|
-
}), t[37] =
|
|
33604
|
-
let
|
|
33605
|
-
return t[41] !==
|
|
33603
|
+
}), t[37] = RK, t[38] = zK, t[39] = BK, t[40] = VK) : VK = t[40];
|
|
33604
|
+
let HK;
|
|
33605
|
+
return t[41] !== LK || t[42] !== $ || t[43] !== VK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33606
33606
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33607
33607
|
children: [
|
|
33608
|
-
|
|
33608
|
+
LK,
|
|
33609
33609
|
$,
|
|
33610
|
-
|
|
33610
|
+
VK
|
|
33611
33611
|
]
|
|
33612
|
-
}), t[41] =
|
|
33612
|
+
}), t[41] = LK, t[42] = $, t[43] = VK, t[44] = HK) : HK = t[44], HK;
|
|
33613
33613
|
};
|
|
33614
33614
|
function lastLine(e) {
|
|
33615
33615
|
var _a2, _b;
|
|
@@ -34604,7 +34604,9 @@ ${d}`,
|
|
|
34604
34604
|
var import_compiler_runtime$1 = require_compiler_runtime();
|
|
34605
34605
|
DEFAULT_SLIDE_TYPE = "slide";
|
|
34606
34606
|
DEFAULT_DECK_TRANSITION = "slide";
|
|
34607
|
-
var COLLAPSED_CONFIG_WIDTH = 36
|
|
34607
|
+
var COLLAPSED_CONFIG_WIDTH = 36, slideConfigOpenAtom = atomWithStorage("marimo:slides:config-open", true, jotaiJsonStorage, {
|
|
34608
|
+
getOnInit: true
|
|
34609
|
+
});
|
|
34608
34610
|
let SLIDE_TYPE_OPTIONS;
|
|
34609
34611
|
SLIDE_TYPE_OPTIONS = [
|
|
34610
34612
|
{
|
|
@@ -34884,7 +34886,7 @@ ${d}`,
|
|
|
34884
34886
|
}), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
|
|
34885
34887
|
};
|
|
34886
34888
|
SlideSidebar = (e) => {
|
|
34887
|
-
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (
|
|
34889
|
+
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
34888
34890
|
t[0] === f ? _ = t[1] : (_ = {
|
|
34889
34891
|
width: f
|
|
34890
34892
|
}, t[0] = f, t[1] = _);
|
|
@@ -34896,7 +34898,7 @@ ${d}`,
|
|
|
34896
34898
|
children: "Configuration"
|
|
34897
34899
|
}), t[4] = c, t[5] = S);
|
|
34898
34900
|
let w = c ? "Collapse panel" : "Expand panel", E;
|
|
34899
|
-
t[6] ===
|
|
34901
|
+
t[6] === d ? E = t[7] : (E = () => d(_temp5), t[6] = d, t[7] = E);
|
|
34900
34902
|
let O;
|
|
34901
34903
|
t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
|
|
34902
34904
|
className: "h-4 w-4"
|
|
@@ -34989,6 +34991,9 @@ ${d}`,
|
|
|
34989
34991
|
function _temp4(e) {
|
|
34990
34992
|
return e.stopPropagation();
|
|
34991
34993
|
}
|
|
34994
|
+
function _temp5(e) {
|
|
34995
|
+
return !e;
|
|
34996
|
+
}
|
|
34992
34997
|
function getVersionFromMountConfig() {
|
|
34993
34998
|
try {
|
|
34994
34999
|
return window.__MARIMO_MOUNT_CONFIG__.version;
|
|
@@ -34996,7 +35001,7 @@ ${d}`,
|
|
|
34996
35001
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34997
35002
|
}
|
|
34998
35003
|
}
|
|
34999
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
35004
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev32");
|
|
35000
35005
|
showCodeInRunModeAtom = atom(true);
|
|
35001
35006
|
atom(null);
|
|
35002
35007
|
var import_compiler_runtime = require_compiler_runtime();
|