@marimo-team/islands 0.23.9-dev4 → 0.23.9-dev6
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-VZebNmSs.js → code-visibility-DILs4Gug.js} +919 -766
- package/dist/main.js +842 -840
- package/dist/{reveal-component-DZtPMEoM.js → reveal-component-Pq7C0LSU.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +30 -6
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +73 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +52 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +47 -1
- package/src/components/data-table/__tests__/useColumnVisibility.test.ts +42 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +7 -1
- package/src/components/data-table/column-header.tsx +2 -0
- package/src/components/data-table/columns.tsx +3 -4
- package/src/components/data-table/data-table.tsx +30 -0
- package/src/components/data-table/header-items.tsx +18 -1
- package/src/components/data-table/hooks/use-column-visibility.ts +42 -0
- package/src/components/data-table/pagination.tsx +16 -3
- package/src/components/editor/errors/mangled-local-chip.tsx +50 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +31 -2
- package/src/plugins/impl/DataTablePlugin.tsx +4 -0
- package/src/utils/__tests__/local-variables.test.ts +132 -0
- package/src/utils/local-variables.ts +67 -0
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0,
|
|
1906
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
1907
|
-
let
|
|
1908
|
-
if (
|
|
1909
|
-
else if (
|
|
1910
|
-
else if (
|
|
1911
|
-
else if (
|
|
1912
|
-
let e2 =
|
|
1905
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, MK = c.top - E, NK = c.bottom + O, PK = c.left - A, FK = c.right + M, IK = e === _ ? 0 : Q + $, LK = e === _ ? 0 : q + J, RK = e.offsetWidth - e.clientWidth - IK, zK = e.offsetHeight - e.clientHeight - LK, BK = v + q + I, VK = y - J - z - zK, HK = S + Q + U, UK = w - $ - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? HK += RK : UK -= RK;
|
|
1907
|
+
let WK = MK < BK || NK > VK, GK = PK < HK || FK > UK;
|
|
1908
|
+
if (WK && i === "start") o += MK - BK;
|
|
1909
|
+
else if (WK && i === "center") o += (MK + NK) / 2 - (BK + VK) / 2;
|
|
1910
|
+
else if (WK && i === "end") o += NK - VK;
|
|
1911
|
+
else if (WK && i === "nearest") {
|
|
1912
|
+
let e2 = MK - BK, t2 = NK - VK;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
else if (
|
|
1917
|
-
else if (
|
|
1918
|
-
else if (
|
|
1919
|
-
let e2 =
|
|
1915
|
+
if (GK && a === "start") s += PK - HK;
|
|
1916
|
+
else if (GK && a === "center") s += (PK + FK) / 2 - (HK + UK) / 2;
|
|
1917
|
+
else if (GK && a === "end") s += FK - UK;
|
|
1918
|
+
else if (GK && a === "nearest") {
|
|
1919
|
+
let e2 = PK - HK, t2 = FK - UK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5024,25 +5024,25 @@ Defaulting to \`null\`.`;
|
|
|
5024
5024
|
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[U]} ${K}`), i2 = $edcf132a9284368a$var$computePosition(t, c, n, e2, h, _, f, v, S, w, d);
|
|
5025
5025
|
$edcf132a9284368a$var$getAvailableSpace(c, f, t, a, o + h, e2, d, E) > Q && (A = e2, q = i2, J = h);
|
|
5026
5026
|
}
|
|
5027
|
-
let
|
|
5028
|
-
A.axis === "top" ? A.placement === "top" ?
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
let
|
|
5036
|
-
x: U === "top" || U === "bottom" ?
|
|
5037
|
-
y: U === "left" || U === "right" ?
|
|
5027
|
+
let $ = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5029
|
+
let MK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += MK;
|
|
5031
|
+
let NK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5032
|
+
y && y < NK && (NK = y), n.height = Math.min(n.height, NK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), MK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += MK;
|
|
5033
|
+
let PK = {}, FK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], IK = FK + 0.5 * t[z], LK = S / 2 + w, RK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), zK = n[z] - RK - S / 2 - w;
|
|
5034
|
+
PK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(IK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), LK, zK), { placement: U, crossPlacement: K } = A, S ? FK = PK[I] : K === "right" ? FK += t[z] : K === "center" && (FK += t[z] / 2);
|
|
5035
|
+
let BK = U === "left" || U === "top" ? n[M] : 0, VK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? FK : BK,
|
|
5037
|
+
y: U === "left" || U === "right" ? FK : BK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: NK,
|
|
5042
|
+
arrowOffsetLeft: PK.left,
|
|
5043
|
+
arrowOffsetTop: PK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: VK
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6867,7 +6867,7 @@ Defaulting to \`null\`.`;
|
|
|
6867
6867
|
let e2 = window.getSelection();
|
|
6868
6868
|
(e2 == null ? void 0 : e2.anchorNode) && $d4ee10de306f2510$export$4282f70798064fe0(n.current, e2 == null ? void 0 : e2.anchorNode) && e2.collapse(n.current);
|
|
6869
6869
|
});
|
|
6870
|
-
let
|
|
6870
|
+
let $ = (0, import_react.useRef)("");
|
|
6871
6871
|
$e9faafb641e167db$export$90fc3a17d93f704c(n, "beforeinput", (i2) => {
|
|
6872
6872
|
if (n.current) switch (i2.preventDefault(), i2.inputType) {
|
|
6873
6873
|
case "deleteContentBackward":
|
|
@@ -6875,7 +6875,7 @@ Defaulting to \`null\`.`;
|
|
|
6875
6875
|
E.isValidPartialNumber(e.text) && !t.isReadOnly && O();
|
|
6876
6876
|
break;
|
|
6877
6877
|
case "insertCompositionText":
|
|
6878
|
-
|
|
6878
|
+
$.current = n.current.textContent, n.current.textContent = n.current.textContent;
|
|
6879
6879
|
break;
|
|
6880
6880
|
default:
|
|
6881
6881
|
i2.data != null && J(i2.data);
|
|
@@ -6885,7 +6885,7 @@ Defaulting to \`null\`.`;
|
|
|
6885
6885
|
let { inputType: t2, data: i2 } = e2;
|
|
6886
6886
|
switch (t2) {
|
|
6887
6887
|
case "insertCompositionText":
|
|
6888
|
-
n.current && (n.current.textContent =
|
|
6888
|
+
n.current && (n.current.textContent = $.current), i2 != null && (M(z, i2) || M(U, i2)) && J(i2);
|
|
6889
6889
|
break;
|
|
6890
6890
|
}
|
|
6891
6891
|
}), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let MK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,8 +6907,8 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6911
|
-
"aria-label": `${
|
|
6910
|
+
let NK = $bdb11010cef70236$export$f680877a34711e37(), PK = !t.isDisabled && !t.isReadOnly && e.isEditable, FK = e.type === "literal" ? "" : s.of(e.type), IK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${FK}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
6914
6914
|
if (e.type === "literal") return {
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let LK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
LK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (LK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, IK, {
|
|
6929
|
+
id: NK,
|
|
6930
|
+
...MK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: PK,
|
|
6936
|
+
suppressContentEditableWarning: PK,
|
|
6937
|
+
spellCheck: PK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: PK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: PK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !PK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: LK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -7014,7 +7014,7 @@ Defaulting to \`null\`.`;
|
|
|
7014
7014
|
q.current = true, (n2 = e.onFocus) == null || n2.call(e, t2), (i2 = e.onFocusChange) == null || i2.call(e, true);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a),
|
|
7017
|
+
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a), $ = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
7018
7018
|
return {
|
|
7019
7019
|
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(K, M, d, S, J, {
|
|
7020
7020
|
role: "group",
|
|
@@ -7061,7 +7061,7 @@ Defaulting to \`null\`.`;
|
|
|
7061
7061
|
realtimeValidation: t.realtimeValidation,
|
|
7062
7062
|
displayValidation: t.displayValidation,
|
|
7063
7063
|
updateValidation(e2) {
|
|
7064
|
-
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2,
|
|
7064
|
+
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2, $.current));
|
|
7065
7065
|
},
|
|
7066
7066
|
resetValidation: t.resetValidation,
|
|
7067
7067
|
commitValidation: t.commitValidation
|
|
@@ -7079,7 +7079,7 @@ Defaulting to \`null\`.`;
|
|
|
7079
7079
|
realtimeValidation: t.realtimeValidation,
|
|
7080
7080
|
displayValidation: t.displayValidation,
|
|
7081
7081
|
updateValidation(e2) {
|
|
7082
|
-
|
|
7082
|
+
$.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Q.current, e2));
|
|
7083
7083
|
},
|
|
7084
7084
|
resetValidation: t.resetValidation,
|
|
7085
7085
|
commitValidation: t.commitValidation
|
|
@@ -10173,7 +10173,7 @@ Defaulting to \`null\`.`;
|
|
|
10173
10173
|
function Q(e2) {
|
|
10174
10174
|
e2 = $f62d864046160412$export$4f5203c0d889109e(e2, s, c), A(e2);
|
|
10175
10175
|
}
|
|
10176
|
-
function
|
|
10176
|
+
function $(t2) {
|
|
10177
10177
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
10178
10178
|
let e2 = t2;
|
|
10179
10179
|
if (e2 === null) {
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let MK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), NK = e.isInvalid || e.validationState === "invalid" || MK, PK = NK ? "invalid" : null, FK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10197,7 +10197,7 @@ Defaulting to \`null\`.`;
|
|
|
10197
10197
|
isDisabled: e.isDisabled ?? false,
|
|
10198
10198
|
isReadOnly: e.isReadOnly ?? false,
|
|
10199
10199
|
value: w,
|
|
10200
|
-
setValue:
|
|
10200
|
+
setValue: $,
|
|
10201
10201
|
visibleRange: {
|
|
10202
10202
|
start: M,
|
|
10203
10203
|
end: K
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: PK,
|
|
10210
|
+
isValueInvalid: NK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10232,12 +10232,12 @@ Defaulting to \`null\`.`;
|
|
|
10232
10232
|
}));
|
|
10233
10233
|
},
|
|
10234
10234
|
focusNextPage() {
|
|
10235
|
-
let e2 = M.add(
|
|
10236
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10235
|
+
let e2 = M.add(FK);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(FK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, FK, i, s, c), FK, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract(FK);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(FK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, FK, i, s, c), FK, i));
|
|
10241
10241
|
},
|
|
10242
10242
|
focusSectionStart() {
|
|
10243
10243
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || $(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
$(e2);
|
|
10275
10275
|
},
|
|
10276
10276
|
isFocused: z,
|
|
10277
10277
|
setFocused: U,
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [
|
|
10378
|
-
|
|
10377
|
+
}, [$, MK] = (0, import_react.useState)(false), { isDateUnavailable: NK } = e, PK = (0, import_react.useMemo)(() => !h || v ? false : NK && (NK(h.start) || NK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
NK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), FK = e.isInvalid || e.validationState === "invalid" || PK, IK = FK ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,8 +10388,8 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10392
|
-
isValueInvalid:
|
|
10391
|
+
validationState: IK,
|
|
10392
|
+
isValueInvalid: FK,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10404,8 +10404,8 @@ Defaulting to \`null\`.`;
|
|
|
10404
10404
|
var _a2, _b;
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
|
-
isDragging:
|
|
10408
|
-
setDragging:
|
|
10407
|
+
isDragging: $,
|
|
10408
|
+
setDragging: MK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11587,12 +11587,12 @@ Defaulting to \`null\`.`;
|
|
|
11587
11587
|
q
|
|
11588
11588
|
]), Q = (0, import_react.useMemo)(() => J.resolvedOptions(), [
|
|
11589
11589
|
J
|
|
11590
|
-
]),
|
|
11590
|
+
]), $ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$66aa2b09de4b1ea5(e.placeholderValue, _, S, v), [
|
|
11591
11591
|
e.placeholderValue,
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), MK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11615
|
-
let
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11613
|
+
]), [NK, PK] = (0, import_react.useState)(M), [FK, IK] = (0, import_react.useState)(S), [LK, RK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== NK || w !== LK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, FK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), PK(M), IK(S), RK(w), z(I));
|
|
11615
|
+
let zK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(MK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11620
|
-
let e2 = t2.toValue(M ??
|
|
11621
|
-
if (t2.validate(e2,
|
|
11619
|
+
if (t2.isComplete(MK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? $);
|
|
11621
|
+
if (t2.validate(e2, MK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,83 +11628,83 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
},
|
|
11631
|
+
}, BK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11635
|
+
$
|
|
11636
|
+
]), VK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(BK, I, J, Q, S, t, _), [
|
|
11637
|
+
BK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), HK = (e2, t2) => {
|
|
11645
|
+
zK(I.cycle(e2, t2, $, MK));
|
|
11646
|
+
}, UK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
11649
11649
|
d,
|
|
11650
11650
|
f,
|
|
11651
11651
|
K
|
|
11652
|
-
]),
|
|
11652
|
+
]), WK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: UK
|
|
11656
|
+
}), GK = WK.displayValidation.isInvalid, KK = e.validationState || (GK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...WK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: BK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: zK,
|
|
11664
|
+
segments: VK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: KK,
|
|
11667
|
+
isInvalid: GK,
|
|
11668
11668
|
granularity: _,
|
|
11669
11669
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11670
11670
|
isDisabled: a,
|
|
11671
11671
|
isReadOnly: o,
|
|
11672
11672
|
isRequired: s,
|
|
11673
11673
|
increment(e2) {
|
|
11674
|
-
|
|
11674
|
+
HK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
HK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
HK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
HK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
|
|
11687
|
+
zK(I.set(e2, t2, $));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
zK(I.set(e2, t2, $));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
zK(I.set(e2, t2, $));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11698
|
-
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ??
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(MK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
11702
11702
|
clearSegment(e2) {
|
|
11703
11703
|
let t2 = I;
|
|
11704
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11704
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), zK(t2);
|
|
11705
11705
|
},
|
|
11706
11706
|
formatValue(e2) {
|
|
11707
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11707
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(BK) : "";
|
|
11708
11708
|
},
|
|
11709
11709
|
getDateFormatter(e2, t2) {
|
|
11710
11710
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}),
|
|
11827
|
+
}), $ = Q.displayValidation.isInvalid, MK = e.validationState || ($ ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,8 +11870,8 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11874
|
-
isInvalid:
|
|
11873
|
+
validationState: MK,
|
|
11874
|
+
isInvalid: $,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
11877
11877
|
let i2 = "timeZone" in c.start ? c.start.timeZone : void 0, a2 = e.granularity || (c.start && "minute" in c.start ? "minute" : "day"), o2 = "timeZone" in c.end ? c.end.timeZone : void 0, s2 = e.granularity || (c.end && "minute" in c.end ? "minute" : "day"), d2 = $35a22f14a1f04b11$export$7e319ea407e63bc0(n2, {
|
|
@@ -13827,9 +13827,9 @@ Defaulting to \`null\`.`;
|
|
|
13827
13827
|
t,
|
|
13828
13828
|
i.name
|
|
13829
13829
|
]), null;
|
|
13830
|
-
}), import_compiler_runtime$
|
|
13830
|
+
}), import_compiler_runtime$60 = require_compiler_runtime();
|
|
13831
13831
|
EmotionCacheProvider = (e) => {
|
|
13832
|
-
let t = (0, import_compiler_runtime$
|
|
13832
|
+
let t = (0, import_compiler_runtime$60.c)(6), { container: n, children: i } = e, a;
|
|
13833
13833
|
bb0: {
|
|
13834
13834
|
if (!n) {
|
|
13835
13835
|
let e3;
|
|
@@ -15742,33 +15742,33 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
15745
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, MK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), NK = MK[t], PK = NK || MK, { colorSchemes: FK = _, components: IK = v, cssVarPrefix: LK } = PK, RK = Object.keys(FK).filter((e3) => !!FK[e3]).join(","), zK = import_react.useMemo(() => RK.split(","), [
|
|
15748
|
+
RK
|
|
15749
|
+
]), BK = typeof s == "string" ? s : s.light, VK = typeof s == "string" ? s : s.dark, { mode: HK, setMode: UK, systemMode: WK, lightColorScheme: GK, darkColorScheme: KK, colorScheme: qK, setColorScheme: JK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: zK,
|
|
15751
|
+
defaultLightColorScheme: BK,
|
|
15752
|
+
defaultDarkColorScheme: VK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: FK[BK] && FK[VK] ? U : ((_b = (_a2 = FK[PK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = PK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
|
|
15761
|
-
let
|
|
15759
|
+
}), YK = HK, XK = qK;
|
|
15760
|
+
$ && (YK = Q.mode, XK = Q.colorScheme);
|
|
15761
|
+
let ZK = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15766
|
-
colorSchemes:
|
|
15767
|
-
cssVarPrefix:
|
|
15763
|
+
let e3 = XK || PK.defaultColorScheme, t2 = ((_a3 = PK.generateThemeVars) == null ? void 0 : _a3.call(PK)) || PK.vars, n2 = {
|
|
15764
|
+
...PK,
|
|
15765
|
+
components: IK,
|
|
15766
|
+
colorSchemes: FK,
|
|
15767
|
+
cssVarPrefix: LK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = FK[e3];
|
|
15772
15772
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15773
15773
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15774
15774
|
...n2[e4],
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
]),
|
|
15781
|
+
PK,
|
|
15782
|
+
XK,
|
|
15783
|
+
IK,
|
|
15784
|
+
FK,
|
|
15785
|
+
LK
|
|
15786
|
+
]), QK = PK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
|
-
if (
|
|
15789
|
-
let e3 =
|
|
15790
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
15788
|
+
if (XK && M && QK && QK !== "media") {
|
|
15789
|
+
let e3 = QK, t2 = QK;
|
|
15790
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...zK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", XK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", XK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || zK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(XK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, XK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
|
|
15803
|
-
|
|
15802
|
+
XK,
|
|
15803
|
+
QK,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
zK
|
|
15806
15806
|
]), import_react.useEffect(() => {
|
|
15807
15807
|
let e3;
|
|
15808
15808
|
if (w2 && q.current && A) {
|
|
@@ -15815,48 +15815,48 @@ try {
|
|
|
15815
15815
|
clearTimeout(e3);
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [
|
|
15818
|
-
|
|
15818
|
+
XK,
|
|
15819
15819
|
w2,
|
|
15820
15820
|
A
|
|
15821
15821
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15822
15822
|
q.current = false;
|
|
15823
15823
|
}), []);
|
|
15824
|
-
let
|
|
15825
|
-
allColorSchemes:
|
|
15826
|
-
colorScheme:
|
|
15827
|
-
darkColorScheme:
|
|
15828
|
-
lightColorScheme:
|
|
15829
|
-
mode:
|
|
15830
|
-
setColorScheme:
|
|
15831
|
-
setMode:
|
|
15832
|
-
systemMode:
|
|
15824
|
+
let $K = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: zK,
|
|
15826
|
+
colorScheme: XK,
|
|
15827
|
+
darkColorScheme: KK,
|
|
15828
|
+
lightColorScheme: GK,
|
|
15829
|
+
mode: YK,
|
|
15830
|
+
setColorScheme: JK,
|
|
15831
|
+
setMode: UK,
|
|
15832
|
+
systemMode: WK
|
|
15833
15833
|
}), [
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
]),
|
|
15844
|
-
(z ||
|
|
15845
|
-
let
|
|
15834
|
+
zK,
|
|
15835
|
+
XK,
|
|
15836
|
+
KK,
|
|
15837
|
+
GK,
|
|
15838
|
+
YK,
|
|
15839
|
+
JK,
|
|
15840
|
+
UK,
|
|
15841
|
+
WK,
|
|
15842
|
+
ZK.colorSchemeSelector
|
|
15843
|
+
]), eq = true;
|
|
15844
|
+
(z || PK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === LK) && (eq = false);
|
|
15845
|
+
let tq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15849
|
-
theme:
|
|
15848
|
+
themeId: NK ? t : void 0,
|
|
15849
|
+
theme: ZK,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
eq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = ZK.generateStyleSheets) == null ? void 0 : _d.call(ZK)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return $ ? tq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: $K,
|
|
15859
|
+
children: tq
|
|
15860
15860
|
});
|
|
15861
15861
|
}
|
|
15862
15862
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
17360
|
-
}, []),
|
|
17359
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: MK, onKeyDown: NK, onKeyUp: PK, placeholder: FK, readOnly: IK, renderSuffix: LK, rows: RK, size: zK, slotProps: BK = {}, slots: VK = {}, startAdornment: HK, type: UK = "text", value: WK, ...GK } = n, KK = A.value == null ? WK : A.value, { current: qK } = import_react.useRef(KK != null), JK = import_react.useRef(), YK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), XK = useForkRef_default(JK, M, A.ref, YK), [ZK, QK] = import_react.useState(false), $K = useFormControl(), eq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: $K,
|
|
17363
17363
|
states: [
|
|
17364
17364
|
"color",
|
|
17365
17365
|
"disabled",
|
|
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17370
17370
|
"filled"
|
|
17371
17371
|
]
|
|
17372
17372
|
});
|
|
17373
|
-
|
|
17374
|
-
|
|
17373
|
+
eq.focused = $K ? $K.focused : ZK, import_react.useEffect(() => {
|
|
17374
|
+
!$K && _ && ZK && (QK(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
$K,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
ZK,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let tq = $K && $K.onFilled, nq = $K && $K.onEmpty, rq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? tq && tq() : nq && nq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
tq,
|
|
17385
|
+
nq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
qK && rq({
|
|
17389
|
+
value: KK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17392
|
+
KK,
|
|
17393
|
+
rq,
|
|
17394
|
+
qK
|
|
17395
17395
|
]);
|
|
17396
|
-
let
|
|
17397
|
-
|
|
17398
|
-
},
|
|
17399
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17400
|
-
},
|
|
17401
|
-
if (!
|
|
17402
|
-
let t3 = e2.target ||
|
|
17396
|
+
let iq = (e2) => {
|
|
17397
|
+
MK && MK(e2), A.onFocus && A.onFocus(e2), $K && $K.onFocus ? $K.onFocus(e2) : QK(true);
|
|
17398
|
+
}, aq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), $K && $K.onBlur ? $K.onBlur(e2) : QK(false);
|
|
17400
|
+
}, oq = (e2, ...t2) => {
|
|
17401
|
+
if (!qK) {
|
|
17402
|
+
let t3 = e2.target || JK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
rq({
|
|
17405
17405
|
value: t3.value
|
|
17406
17406
|
});
|
|
17407
17407
|
}
|
|
17408
17408
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17409
17409
|
};
|
|
17410
17410
|
import_react.useEffect(() => {
|
|
17411
|
-
|
|
17411
|
+
rq(JK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let sq = (e2) => {
|
|
17414
|
+
JK.current && e2.currentTarget === e2.target && JK.current.focus(), $ && $(e2);
|
|
17415
|
+
}, cq = O, lq = A;
|
|
17416
|
+
K && cq === "input" && (lq = RK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: RK,
|
|
17419
|
+
maxRows: RK,
|
|
17420
|
+
...lq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...lq
|
|
17426
|
+
}, cq = TextareaAutosize_default);
|
|
17427
|
+
let uq = (e2) => {
|
|
17428
|
+
rq(e2.animationName === "mui-auto-fill-cancel" ? JK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
$K && $K.setAdornedStart(!!HK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
$K,
|
|
17436
|
+
HK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let dq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: eq.color || "primary",
|
|
17441
|
+
disabled: eq.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: eq.error,
|
|
17444
|
+
focused: eq.focused,
|
|
17445
|
+
formControl: $K,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: eq.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: eq.size,
|
|
17450
|
+
startAdornment: HK,
|
|
17451
|
+
type: UK
|
|
17452
|
+
}, fq = useUtilityClasses(dq), pq = VK.root || d.Root || InputBaseRoot, mq = BK.root || f.root || {}, hq = VK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return lq = {
|
|
17454
|
+
...lq,
|
|
17455
|
+
...BK.input ?? f.input
|
|
17456
17456
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17457
17457
|
children: [
|
|
17458
17458
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17459
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17460
|
-
...
|
|
17459
|
+
(0, import_jsx_runtime.jsxs)(pq, {
|
|
17460
|
+
...mq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: sq,
|
|
17463
|
+
...GK,
|
|
17464
|
+
...!isHostComponent_default(pq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...dq,
|
|
17467
|
+
...mq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(fq.root, mq.className, s, IK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
HK,
|
|
17473
17473
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17474
17474
|
value: null,
|
|
17475
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17476
|
-
"aria-invalid":
|
|
17475
|
+
children: (0, import_jsx_runtime.jsx)(hq, {
|
|
17476
|
+
"aria-invalid": eq.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: eq.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: uq,
|
|
17484
17484
|
name: q,
|
|
17485
|
-
placeholder:
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17485
|
+
placeholder: FK,
|
|
17486
|
+
readOnly: IK,
|
|
17487
|
+
required: eq.required,
|
|
17488
|
+
rows: RK,
|
|
17489
|
+
value: KK,
|
|
17490
|
+
onKeyDown: NK,
|
|
17491
|
+
onKeyUp: PK,
|
|
17492
|
+
type: UK,
|
|
17493
|
+
...lq,
|
|
17494
|
+
...!isHostComponent_default(hq) && {
|
|
17495
|
+
as: cq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...dq,
|
|
17498
|
+
...lq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: XK,
|
|
17502
|
+
className: clsx_default(fq.input, lq.className, IK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: aq,
|
|
17504
|
+
onChange: oq,
|
|
17505
|
+
onFocus: iq
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
...
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
LK ? LK({
|
|
17510
|
+
...eq,
|
|
17511
|
+
startAdornment: HK
|
|
17512
17512
|
}) : null
|
|
17513
17513
|
]
|
|
17514
17514
|
})
|
|
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
18588
|
-
|
|
18587
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), MK = useTextColor(), NK = useJsonViewerStore((e2) => e2.colorspace.base0C), PK = useJsonViewerStore((e2) => e2.colorspace.base0A), FK = useJsonViewerStore((e2) => e2.displayComma), IK = useJsonViewerStore((e2) => e2.quotesOnKeys), LK = useJsonViewerStore((e2) => e2.rootName), RK = U === t, zK = Number.isInteger(Number(A)), BK = useJsonViewerStore((e2) => e2.enableAdd), VK = useJsonViewerStore((e2) => e2.onAdd), HK = (0, import_react.useMemo)(() => !VK || a !== void 0 || BK === false || v === false ? false : typeof BK == "function" ? !!BK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
VK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
BK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), UK = useJsonViewerStore((e2) => e2.enableDelete), WK = useJsonViewerStore((e2) => e2.onDelete), GK = (0, import_react.useMemo)(() => !WK || a !== void 0 || RK || UK === false || v === false ? false : typeof UK == "function" ? !!UK(i, t) : UK, [
|
|
18595
|
+
WK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
RK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
UK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), KK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: qK, copied: JK } = useClipboard(), YK = useJsonViewerStore((e2) => e2.highlightUpdates), XK = (0, import_react.useMemo)(() => !YK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
18603
|
+
YK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), ZK = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
ZK.current && XK && "animate" in ZK.current && ZK.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: PK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,40 +18617,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18621
|
-
|
|
18620
|
+
PK,
|
|
18621
|
+
XK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let QK = (0, import_react.useCallback)((e2) => {
|
|
18626
18626
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18627
18627
|
}, [
|
|
18628
18628
|
h,
|
|
18629
18629
|
t
|
|
18630
|
-
]),
|
|
18630
|
+
]), $K = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), eq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
$(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
$,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), tq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18647
18647
|
children: [
|
|
18648
18648
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18649
18649
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18650
18650
|
sx: {
|
|
18651
18651
|
fontSize: ".8rem"
|
|
18652
18652
|
},
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: $K
|
|
18654
18654
|
})
|
|
18655
18655
|
}),
|
|
18656
18656
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18658
18658
|
sx: {
|
|
18659
18659
|
fontSize: ".8rem"
|
|
18660
18660
|
},
|
|
18661
|
-
onClick: () =>
|
|
18661
|
+
onClick: () => eq(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
KK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
qK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: JK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18677
18677
|
sx: {
|
|
18678
18678
|
fontSize: ".8rem"
|
|
18679
18679
|
}
|
|
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18684
18684
|
})
|
|
18685
18685
|
}),
|
|
18686
18686
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18687
|
-
onClick:
|
|
18687
|
+
onClick: QK,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
HK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), VK == null ? void 0 : VK(i);
|
|
18697
18697
|
},
|
|
18698
18698
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18699
18699
|
sx: {
|
|
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18701
18701
|
}
|
|
18702
18702
|
})
|
|
18703
18703
|
}),
|
|
18704
|
-
|
|
18704
|
+
GK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), WK == null ? void 0 : WK(i, t);
|
|
18707
18707
|
},
|
|
18708
18708
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18709
18709
|
sx: {
|
|
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18716
18716
|
f,
|
|
18717
18717
|
h,
|
|
18718
18718
|
_,
|
|
18719
|
-
|
|
18720
|
-
|
|
18719
|
+
JK,
|
|
18720
|
+
qK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18723
|
+
KK,
|
|
18724
|
+
HK,
|
|
18725
|
+
GK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
]),
|
|
18729
|
+
VK,
|
|
18730
|
+
WK,
|
|
18731
|
+
QK,
|
|
18732
|
+
$K,
|
|
18733
|
+
eq
|
|
18734
|
+
]), nq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), rq = !nq && !!(c && d), iq = useJsonViewerStore((e2) => e2.keyRenderer), aq = (0, import_react.useMemo)(() => ({
|
|
18737
18737
|
path: i,
|
|
18738
18738
|
inspect: K,
|
|
18739
18739
|
setInspect: q,
|
|
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: MK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
18772
18772
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18773
|
-
e2.isDefaultPrevented() ||
|
|
18773
|
+
e2.isDefaultPrevented() || nq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
nq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
rq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18780
18780
|
className: "data-key-toggle-expanded",
|
|
18781
18781
|
sx: {
|
|
18782
18782
|
fontSize: ".8rem",
|
|
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18794
18794
|
}
|
|
18795
18795
|
}) : null,
|
|
18796
18796
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18797
|
-
ref:
|
|
18797
|
+
ref: ZK,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: RK && O === 0 ? LK === false ? null : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
LK,
|
|
18804
18804
|
'"'
|
|
18805
18805
|
]
|
|
18806
18806
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18807
|
-
children:
|
|
18808
|
-
}) :
|
|
18809
|
-
...
|
|
18810
|
-
}) : a === void 0 && (
|
|
18807
|
+
children: LK
|
|
18808
|
+
}) : iq.when(aq) ? (0, import_jsx_runtime.jsx)(iq, {
|
|
18809
|
+
...aq
|
|
18810
|
+
}) : a === void 0 && (zK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: NK,
|
|
18814
|
+
userSelect: zK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18818
18818
|
children: [
|
|
18819
18819
|
'"',
|
|
18820
18820
|
A,
|
|
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
children: A
|
|
18825
18825
|
}))
|
|
18826
18826
|
}),
|
|
18827
|
-
|
|
18827
|
+
RK ? LK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18828
18828
|
className: "data-key-colon",
|
|
18829
18829
|
sx: {
|
|
18830
18830
|
mr: 0.5
|
|
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18837
18837
|
".data-key-key:empty + &": {
|
|
18838
18838
|
display: "none"
|
|
18839
18839
|
},
|
|
18840
|
-
userSelect:
|
|
18840
|
+
userSelect: zK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...aq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && rq && K && tq
|
|
18848
18848
|
]
|
|
18849
18849
|
}),
|
|
18850
18850
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
18851
18851
|
path: i,
|
|
18852
18852
|
value: w,
|
|
18853
18853
|
setValue: E,
|
|
18854
|
-
abortEditing:
|
|
18855
|
-
commitEditing:
|
|
18854
|
+
abortEditing: $K,
|
|
18855
|
+
commitEditing: eq
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...aq
|
|
18858
18858
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18859
18859
|
component: "span",
|
|
18860
18860
|
className: "data-value-fallback",
|
|
18861
18861
|
children: `fallback: ${t}`
|
|
18862
18862
|
}),
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
|
-
...
|
|
18864
|
+
...aq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && FK && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && rq && !K && tq,
|
|
18870
|
+
I && !rq && tq,
|
|
18871
|
+
!I && J && tq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -18997,9 +18997,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18997
18997
|
})
|
|
18998
18998
|
})
|
|
18999
18999
|
});
|
|
19000
|
-
}, import_compiler_runtime$
|
|
19000
|
+
}, import_compiler_runtime$59 = require_compiler_runtime();
|
|
19001
19001
|
HtmlOutput = (0, import_react.memo)((e) => {
|
|
19002
|
-
let t = (0, import_compiler_runtime$
|
|
19002
|
+
let t = (0, import_compiler_runtime$59.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
|
|
19003
19003
|
if (!n) return null;
|
|
19004
19004
|
let d = !c, f;
|
|
19005
19005
|
t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
|
|
@@ -19018,9 +19018,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19018
19018
|
}), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
|
|
19019
19019
|
});
|
|
19020
19020
|
HtmlOutput.displayName = "HtmlOutput";
|
|
19021
|
-
var import_compiler_runtime$
|
|
19021
|
+
var import_compiler_runtime$58 = require_compiler_runtime();
|
|
19022
19022
|
const ImageOutput = (e) => {
|
|
19023
|
-
let t = (0, import_compiler_runtime$
|
|
19023
|
+
let t = (0, import_compiler_runtime$58.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
19024
19024
|
t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
|
|
19025
19025
|
src: n,
|
|
19026
19026
|
alt: c,
|
|
@@ -19033,9 +19033,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19033
19033
|
children: d
|
|
19034
19034
|
}), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
|
|
19035
19035
|
};
|
|
19036
|
-
var import_compiler_runtime$
|
|
19036
|
+
var import_compiler_runtime$57 = require_compiler_runtime();
|
|
19037
19037
|
Kbd = (e) => {
|
|
19038
|
-
let t = (0, import_compiler_runtime$
|
|
19038
|
+
let t = (0, import_compiler_runtime$57.c)(5), n;
|
|
19039
19039
|
t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
19040
19040
|
let i;
|
|
19041
19041
|
return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -19043,9 +19043,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19043
19043
|
children: e.children
|
|
19044
19044
|
}), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
|
|
19045
19045
|
};
|
|
19046
|
-
var import_compiler_runtime$
|
|
19046
|
+
var import_compiler_runtime$56 = require_compiler_runtime();
|
|
19047
19047
|
const ExternalLink$1 = (e) => {
|
|
19048
|
-
let t = (0, import_compiler_runtime$
|
|
19048
|
+
let t = (0, import_compiler_runtime$56.c)(3), { href: n, children: i } = e, a;
|
|
19049
19049
|
return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
|
|
19050
19050
|
href: n,
|
|
19051
19051
|
target: "_blank",
|
|
@@ -19053,6 +19053,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19053
19053
|
children: i
|
|
19054
19054
|
}), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
|
|
19055
19055
|
};
|
|
19056
|
+
var MANGLED_LOCAL_BODY = String.raw`_cell_([^\W_][\w-]*?)(_\w*)`, MANGLED_LOCAL_PATTERN = String.raw`(?<!_)${MANGLED_LOCAL_BODY}`;
|
|
19057
|
+
`${MANGLED_LOCAL_BODY}`;
|
|
19058
|
+
var UNANCHORED_RE = new RegExp(MANGLED_LOCAL_PATTERN), GLOBAL_RE = new RegExp(MANGLED_LOCAL_PATTERN, "g");
|
|
19059
|
+
function splitMangledLocals(e) {
|
|
19060
|
+
let t = [];
|
|
19061
|
+
GLOBAL_RE.lastIndex = 0;
|
|
19062
|
+
let n = 0, i = GLOBAL_RE.exec(e);
|
|
19063
|
+
for (; i !== null; ) i.index > n && t.push(e.slice(n, i.index)), t.push({
|
|
19064
|
+
cellId: i[1],
|
|
19065
|
+
name: i[2]
|
|
19066
|
+
}), n = i.index + i[0].length, i = GLOBAL_RE.exec(e);
|
|
19067
|
+
return n < e.length && t.push(e.slice(n)), t;
|
|
19068
|
+
}
|
|
19069
|
+
function containsMangledLocal(e) {
|
|
19070
|
+
return UNANCHORED_RE.test(e);
|
|
19071
|
+
}
|
|
19056
19072
|
atom(null);
|
|
19057
19073
|
const focusPackagesInput = () => {
|
|
19058
19074
|
requestAnimationFrame(() => {
|
|
@@ -19216,17 +19232,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19216
19232
|
os: "os",
|
|
19217
19233
|
re: "re",
|
|
19218
19234
|
sys: "sys"
|
|
19219
|
-
}, import_compiler_runtime$
|
|
19235
|
+
}, import_compiler_runtime$55 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
19220
19236
|
function useFixMode() {
|
|
19221
|
-
let e = (0, import_compiler_runtime$
|
|
19237
|
+
let e = (0, import_compiler_runtime$55.c)(3), [t, n] = useAtom(fixModeAtom), i;
|
|
19222
19238
|
return e[0] !== t || e[1] !== n ? (i = {
|
|
19223
19239
|
fixMode: t,
|
|
19224
19240
|
setFixMode: n
|
|
19225
19241
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
19226
19242
|
}
|
|
19227
|
-
var import_compiler_runtime$
|
|
19243
|
+
var import_compiler_runtime$54 = require_compiler_runtime();
|
|
19228
19244
|
const AutoFixButton = (e) => {
|
|
19229
|
-
let t = (0, import_compiler_runtime$
|
|
19245
|
+
let t = (0, import_compiler_runtime$54.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), f;
|
|
19230
19246
|
if (t[0] !== d || t[1] !== n) {
|
|
19231
19247
|
let e2;
|
|
19232
19248
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -19287,7 +19303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19287
19303
|
};
|
|
19288
19304
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
19289
19305
|
const AIFixButton = (e) => {
|
|
19290
|
-
let t = (0, import_compiler_runtime$
|
|
19306
|
+
let t = (0, import_compiler_runtime$54.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
|
|
19291
19307
|
t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19292
19308
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
19293
19309
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19356,7 +19372,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19356
19372
|
}), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
|
|
19357
19373
|
};
|
|
19358
19374
|
var AiModeItem = (e) => {
|
|
19359
|
-
let t = (0, import_compiler_runtime$
|
|
19375
|
+
let t = (0, import_compiler_runtime$54.c)(12), { mode: n } = e, i;
|
|
19360
19376
|
t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
19361
19377
|
className: "h-4 w-4"
|
|
19362
19378
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -19393,9 +19409,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19393
19409
|
function useFilename() {
|
|
19394
19410
|
return useAtomValue(filenameAtom);
|
|
19395
19411
|
}
|
|
19396
|
-
var import_compiler_runtime$
|
|
19412
|
+
var import_compiler_runtime$52 = require_compiler_runtime();
|
|
19397
19413
|
const CellLink = (e) => {
|
|
19398
|
-
let t = (0, import_compiler_runtime$
|
|
19414
|
+
let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$12, y;
|
|
19399
19415
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
19400
19416
|
let S;
|
|
19401
19417
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -19415,13 +19431,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19415
19431
|
children: w
|
|
19416
19432
|
}), t[8] = y, t[9] = S, t[10] = w, t[11] = E) : E = t[11], E;
|
|
19417
19433
|
}, CellLinkError = (e) => {
|
|
19418
|
-
let t = (0, import_compiler_runtime$
|
|
19434
|
+
let t = (0, import_compiler_runtime$52.c)(2), n;
|
|
19419
19435
|
return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
19420
19436
|
...e,
|
|
19421
19437
|
variant: "destructive"
|
|
19422
19438
|
}), t[0] = e, t[1] = n), n;
|
|
19423
19439
|
}, CellLinkTraceback = (e) => {
|
|
19424
|
-
let t = (0, import_compiler_runtime$
|
|
19440
|
+
let t = (0, import_compiler_runtime$52.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
|
|
19425
19441
|
t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
19426
19442
|
let s;
|
|
19427
19443
|
t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
|
|
@@ -19446,9 +19462,57 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19446
19462
|
o.classList.remove("focus-outline");
|
|
19447
19463
|
}, 2e3)), true);
|
|
19448
19464
|
}
|
|
19449
|
-
function _temp$
|
|
19465
|
+
function _temp$12(e) {
|
|
19450
19466
|
return e;
|
|
19451
19467
|
}
|
|
19468
|
+
var import_compiler_runtime$51 = require_compiler_runtime();
|
|
19469
|
+
const MangledLocalChip = (e) => {
|
|
19470
|
+
let t = (0, import_compiler_runtime$51.c)(12), { local: n } = e, i;
|
|
19471
|
+
t[0] === n.name ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
|
|
19472
|
+
className: "font-code",
|
|
19473
|
+
children: n.name
|
|
19474
|
+
}), t[0] = n.name, t[1] = i);
|
|
19475
|
+
let a;
|
|
19476
|
+
t[2] === n.cellId ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(CellLinkError, {
|
|
19477
|
+
cellId: n.cellId
|
|
19478
|
+
}), t[2] = n.cellId, t[3] = a);
|
|
19479
|
+
let o;
|
|
19480
|
+
t[4] !== i || t[5] !== a ? (o = (0, import_jsx_runtime.jsxs)("div", {
|
|
19481
|
+
className: "max-w-xs",
|
|
19482
|
+
children: [
|
|
19483
|
+
"Local variable ",
|
|
19484
|
+
i,
|
|
19485
|
+
" in cell",
|
|
19486
|
+
" ",
|
|
19487
|
+
a,
|
|
19488
|
+
"."
|
|
19489
|
+
]
|
|
19490
|
+
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6];
|
|
19491
|
+
let s = o, c;
|
|
19492
|
+
t[7] === n.name ? c = t[8] : (c = (0, import_jsx_runtime.jsx)("span", {
|
|
19493
|
+
className: "font-code cursor-help",
|
|
19494
|
+
children: n.name
|
|
19495
|
+
}), t[7] = n.name, t[8] = c);
|
|
19496
|
+
let d;
|
|
19497
|
+
return t[9] !== c || t[10] !== s ? (d = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
19498
|
+
content: s,
|
|
19499
|
+
children: c
|
|
19500
|
+
}), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
|
|
19501
|
+
}, MangledSegments = (e) => {
|
|
19502
|
+
let t = (0, import_compiler_runtime$51.c)(4), { segments: n } = e, i;
|
|
19503
|
+
t[0] === n ? i = t[1] : (i = n.map(_temp$11), t[0] = n, t[1] = i);
|
|
19504
|
+
let a;
|
|
19505
|
+
return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
19506
|
+
children: i
|
|
19507
|
+
}), t[2] = i, t[3] = a), a;
|
|
19508
|
+
};
|
|
19509
|
+
function _temp$11(e, t) {
|
|
19510
|
+
return typeof e == "string" ? (0, import_jsx_runtime.jsx)("span", {
|
|
19511
|
+
children: e
|
|
19512
|
+
}, t) : (0, import_jsx_runtime.jsx)(MangledLocalChip, {
|
|
19513
|
+
local: e
|
|
19514
|
+
}, t);
|
|
19515
|
+
}
|
|
19452
19516
|
const showAddPackageToast = (e, t) => {
|
|
19453
19517
|
toast(t ? {
|
|
19454
19518
|
title: "Failed to add package",
|
|
@@ -19709,18 +19773,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19709
19773
|
}
|
|
19710
19774
|
let _, v, y, S, w, E;
|
|
19711
19775
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== f || t[8] !== c) {
|
|
19712
|
-
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
19713
|
-
t[15] === s ?
|
|
19776
|
+
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), $ = n.filter(_temp16), MK = n.filter(_temp17), NK;
|
|
19777
|
+
t[15] === s ? NK = t[16] : (NK = () => {
|
|
19714
19778
|
s.openApplication("scratchpad");
|
|
19715
|
-
}, t[15] = s, t[16] =
|
|
19716
|
-
let
|
|
19779
|
+
}, t[15] = s, t[16] = NK);
|
|
19780
|
+
let PK = NK, FK = () => {
|
|
19717
19781
|
let t2 = [];
|
|
19718
|
-
if (Q.length > 0 ||
|
|
19782
|
+
if (Q.length > 0 || $.length > 0) {
|
|
19719
19783
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
19720
19784
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19721
19785
|
children: [
|
|
19722
19786
|
Q.map(_temp20),
|
|
19723
|
-
|
|
19787
|
+
$.map(_temp21),
|
|
19724
19788
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19725
19789
|
size: "xs",
|
|
19726
19790
|
variant: "outline",
|
|
@@ -19752,7 +19816,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19752
19816
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19753
19817
|
errors: [
|
|
19754
19818
|
...Q,
|
|
19755
|
-
|
|
19819
|
+
...$
|
|
19756
19820
|
],
|
|
19757
19821
|
cellId: i
|
|
19758
19822
|
})
|
|
@@ -19913,7 +19977,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19913
19977
|
size: "xs",
|
|
19914
19978
|
variant: "link",
|
|
19915
19979
|
className: "my-2 font-normal mx-0 px-0",
|
|
19916
|
-
onClick:
|
|
19980
|
+
onClick: PK,
|
|
19917
19981
|
children: [
|
|
19918
19982
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
19919
19983
|
className: "h-3"
|
|
@@ -20028,23 +20092,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20028
20092
|
cellId: i
|
|
20029
20093
|
})
|
|
20030
20094
|
]
|
|
20031
|
-
}, "ancestor-stopped")),
|
|
20095
|
+
}, "ancestor-stopped")), MK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20032
20096
|
children: [
|
|
20033
|
-
|
|
20097
|
+
MK.map(_temp35),
|
|
20034
20098
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20035
|
-
errors:
|
|
20099
|
+
errors: MK,
|
|
20036
20100
|
cellId: i,
|
|
20037
20101
|
className: "mt-2.5"
|
|
20038
20102
|
})
|
|
20039
20103
|
]
|
|
20040
20104
|
}, "sql-errors")), t2;
|
|
20041
|
-
},
|
|
20042
|
-
t[17] !==
|
|
20043
|
-
className:
|
|
20105
|
+
}, IK = `font-code font-medium tracking-wide ${f}`, LK;
|
|
20106
|
+
t[17] !== IK || t[18] !== c ? (LK = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20107
|
+
className: IK,
|
|
20044
20108
|
children: c
|
|
20045
|
-
}), t[17] =
|
|
20046
|
-
let
|
|
20047
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
20109
|
+
}), t[17] = IK, t[18] = c, t[19] = LK) : LK = t[19];
|
|
20110
|
+
let RK = LK;
|
|
20111
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = RK, v = "flex flex-col gap-8", y = FK(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = f, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
20048
20112
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
20049
20113
|
let O;
|
|
20050
20114
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20237,7 +20301,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20237
20301
|
children: [
|
|
20238
20302
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20239
20303
|
className: "text-muted-foreground",
|
|
20240
|
-
children:
|
|
20304
|
+
children: (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
20305
|
+
segments: splitMangledLocals(e.msg)
|
|
20306
|
+
})
|
|
20241
20307
|
}),
|
|
20242
20308
|
(0, import_jsx_runtime.jsxs)("p", {
|
|
20243
20309
|
className: "text-muted-foreground mt-2",
|
|
@@ -23411,6 +23477,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23411
23477
|
]
|
|
23412
23478
|
});
|
|
23413
23479
|
}
|
|
23480
|
+
function HideColumn(e) {
|
|
23481
|
+
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e;
|
|
23482
|
+
if (!n.getCanHide()) return null;
|
|
23483
|
+
let i;
|
|
23484
|
+
t[0] === n ? i = t[1] : (i = () => n.toggleVisibility(false), t[0] = n, t[1] = i);
|
|
23485
|
+
let a;
|
|
23486
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
23487
|
+
className: "mo-dropdown-icon"
|
|
23488
|
+
}), t[2] = a) : a = t[2];
|
|
23489
|
+
let o;
|
|
23490
|
+
return t[3] === i ? o = t[4] : (o = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23491
|
+
onClick: i,
|
|
23492
|
+
children: [
|
|
23493
|
+
a,
|
|
23494
|
+
"Hide column"
|
|
23495
|
+
]
|
|
23496
|
+
}), t[3] = i, t[4] = o), o;
|
|
23497
|
+
}
|
|
23414
23498
|
function renderCopyColumn(e) {
|
|
23415
23499
|
var _a2;
|
|
23416
23500
|
return !((_a2 = e.getCanCopy) == null ? void 0 : _a2.call(e)) || e.id.startsWith("__m_column__") ? null : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
@@ -23476,8 +23560,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23476
23560
|
n === "desc" && s()
|
|
23477
23561
|
]
|
|
23478
23562
|
}),
|
|
23479
|
-
c()
|
|
23480
|
-
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
|
|
23563
|
+
c()
|
|
23481
23564
|
]
|
|
23482
23565
|
});
|
|
23483
23566
|
}
|
|
@@ -23579,6 +23662,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23579
23662
|
renderColumnPinning(e),
|
|
23580
23663
|
renderColumnWrapping(e),
|
|
23581
23664
|
renderFormatOptions(e, c),
|
|
23665
|
+
(0, import_jsx_runtime.jsx)(HideColumn, {
|
|
23666
|
+
column: e
|
|
23667
|
+
}),
|
|
23582
23668
|
_ && (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
23583
23669
|
_ && (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23584
23670
|
onSelect: () => d.requestAddFilter({
|
|
@@ -25352,7 +25438,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25352
25438
|
className: "text-link hover:underline",
|
|
25353
25439
|
children: n
|
|
25354
25440
|
}), t[1] = n, t[2] = a), a;
|
|
25355
|
-
}, PopoverClose$1 = Close$1
|
|
25441
|
+
}, PopoverClose$1 = Close$1;
|
|
25442
|
+
NAMELESS_COLUMN_PREFIX = "__m_column__";
|
|
25443
|
+
var MAX_STRING_LENGTH = 50;
|
|
25356
25444
|
function inferDataType(e) {
|
|
25357
25445
|
return typeof e == "string" ? [
|
|
25358
25446
|
"string",
|
|
@@ -25380,7 +25468,6 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25380
25468
|
});
|
|
25381
25469
|
}), Objects.entries(t);
|
|
25382
25470
|
};
|
|
25383
|
-
NAMELESS_COLUMN_PREFIX = "__m_column__";
|
|
25384
25471
|
generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns: o, wrappedColumns: s, headerTooltip: c, showDataTypes: d, calculateTopKRows: f, fractionDigitsByColumn: h }) {
|
|
25385
25472
|
let _ = new Set(e.map(([e2]) => e2)), v = Maps.keyBy(n, (e2) => e2[0]), y = (t2) => {
|
|
25386
25473
|
var _a2, _b;
|
|
@@ -25413,6 +25500,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25413
25500
|
let O = w.map((e2, n2) => ({
|
|
25414
25501
|
id: e2 || `__m_column__${n2}`,
|
|
25415
25502
|
accessorFn: (t2) => t2[e2],
|
|
25503
|
+
enableHiding: !_.has(e2) && e2 !== "",
|
|
25416
25504
|
header: ({ column: t2, table: n3 }) => {
|
|
25417
25505
|
var _a2;
|
|
25418
25506
|
let s2 = i == null ? void 0 : i.getColumnStats(e2), h2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, v2 = c == null ? void 0 : c[e2], y2 = o == null ? void 0 : o[e2], S2 = d && h2 ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25484,7 +25572,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25484
25572
|
meta: y(e2)
|
|
25485
25573
|
}));
|
|
25486
25574
|
return (t === "single" || t === "multi") && O.unshift({
|
|
25487
|
-
id:
|
|
25575
|
+
id: "__select__",
|
|
25488
25576
|
maxSize: 40,
|
|
25489
25577
|
header: ({ table: e2 }) => t === "multi" ? (0, import_jsx_runtime.jsx)(Checkbox, {
|
|
25490
25578
|
"data-testid": "select-all-checkbox",
|
|
@@ -26044,7 +26132,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26044
26132
|
function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
|
|
26045
26133
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26046
26134
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26047
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26135
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), MK = (0, import_react.useRef)({
|
|
26048
26136
|
callbacks: {
|
|
26049
26137
|
onCollapse: f,
|
|
26050
26138
|
onExpand: h,
|
|
@@ -26057,72 +26145,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26057
26145
|
maxSize: c,
|
|
26058
26146
|
minSize: d
|
|
26059
26147
|
},
|
|
26060
|
-
id:
|
|
26148
|
+
id: $,
|
|
26061
26149
|
idIsFromProps: s !== void 0,
|
|
26062
26150
|
order: v
|
|
26063
26151
|
});
|
|
26064
26152
|
(0, import_react.useRef)({
|
|
26065
26153
|
didLogMissingDefaultSizeWarning: false
|
|
26066
26154
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26067
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26155
|
+
let { callbacks: e2, constraints: t2 } = MK.current, o2 = {
|
|
26068
26156
|
...t2
|
|
26069
26157
|
};
|
|
26070
|
-
|
|
26158
|
+
MK.current.id = $, MK.current.idIsFromProps = s !== void 0, MK.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(MK.current, o2);
|
|
26071
26159
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26072
|
-
let e2 =
|
|
26160
|
+
let e2 = MK.current;
|
|
26073
26161
|
return q(e2), () => {
|
|
26074
26162
|
Q(e2);
|
|
26075
26163
|
};
|
|
26076
26164
|
}, [
|
|
26077
26165
|
v,
|
|
26078
|
-
|
|
26166
|
+
$,
|
|
26079
26167
|
q,
|
|
26080
26168
|
Q
|
|
26081
26169
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26082
26170
|
collapse: () => {
|
|
26083
|
-
O(
|
|
26171
|
+
O(MK.current);
|
|
26084
26172
|
},
|
|
26085
26173
|
expand: (e2) => {
|
|
26086
|
-
A(
|
|
26174
|
+
A(MK.current, e2);
|
|
26087
26175
|
},
|
|
26088
26176
|
getId() {
|
|
26089
|
-
return
|
|
26177
|
+
return $;
|
|
26090
26178
|
},
|
|
26091
26179
|
getSize() {
|
|
26092
|
-
return M(
|
|
26180
|
+
return M(MK.current);
|
|
26093
26181
|
},
|
|
26094
26182
|
isCollapsed() {
|
|
26095
|
-
return U(
|
|
26183
|
+
return U(MK.current);
|
|
26096
26184
|
},
|
|
26097
26185
|
isExpanded() {
|
|
26098
|
-
return !U(
|
|
26186
|
+
return !U(MK.current);
|
|
26099
26187
|
},
|
|
26100
26188
|
resize: (e2) => {
|
|
26101
|
-
J(
|
|
26189
|
+
J(MK.current, e2);
|
|
26102
26190
|
}
|
|
26103
26191
|
}), [
|
|
26104
26192
|
O,
|
|
26105
26193
|
A,
|
|
26106
26194
|
M,
|
|
26107
26195
|
U,
|
|
26108
|
-
|
|
26196
|
+
$,
|
|
26109
26197
|
J
|
|
26110
26198
|
]);
|
|
26111
|
-
let
|
|
26199
|
+
let NK = I(MK.current, a);
|
|
26112
26200
|
return (0, import_react.createElement)(S, {
|
|
26113
26201
|
...w,
|
|
26114
26202
|
children: e,
|
|
26115
26203
|
className: t,
|
|
26116
|
-
id:
|
|
26204
|
+
id: $,
|
|
26117
26205
|
style: {
|
|
26118
|
-
...
|
|
26206
|
+
...NK,
|
|
26119
26207
|
...y
|
|
26120
26208
|
},
|
|
26121
26209
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26122
26210
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26123
26211
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26124
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26125
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26212
|
+
[DATA_ATTRIBUTES.panelId]: $,
|
|
26213
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + NK.flexGrow).toFixed(1)
|
|
26126
26214
|
});
|
|
26127
26215
|
}
|
|
26128
26216
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -26895,7 +26983,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26895
26983
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
26896
26984
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
26897
26985
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
26898
|
-
}, []),
|
|
26986
|
+
}, []), $ = (0, import_react.useCallback)((e2, t2) => {
|
|
26899
26987
|
let { panelDataArray: n2 } = K.current;
|
|
26900
26988
|
return computePanelFlexBoxStyle({
|
|
26901
26989
|
defaultSize: t2,
|
|
@@ -26907,13 +26995,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26907
26995
|
}, [
|
|
26908
26996
|
S,
|
|
26909
26997
|
E
|
|
26910
|
-
]),
|
|
26998
|
+
]), MK = (0, import_react.useCallback)((e2) => {
|
|
26911
26999
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26912
27000
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
26913
|
-
}, []),
|
|
27001
|
+
}, []), NK = (0, import_react.useCallback)((e2) => {
|
|
26914
27002
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26915
27003
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
26916
|
-
}, []),
|
|
27004
|
+
}, []), PK = (0, import_react.useCallback)((e2) => {
|
|
26917
27005
|
let { panelDataArray: t2 } = K.current;
|
|
26918
27006
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
26919
27007
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -26945,7 +27033,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26945
27033
|
e2.layout = [];
|
|
26946
27034
|
};
|
|
26947
27035
|
}, []);
|
|
26948
|
-
let
|
|
27036
|
+
let FK = (0, import_react.useCallback)((e2) => {
|
|
26949
27037
|
let t2 = false, n2 = y.current;
|
|
26950
27038
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
26951
27039
|
n3.preventDefault();
|
|
@@ -26963,7 +27051,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26963
27051
|
}), I2 = !compareLayouts(f2, A2);
|
|
26964
27052
|
(isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
|
|
26965
27053
|
};
|
|
26966
|
-
}, []),
|
|
27054
|
+
}, []), IK = (0, import_react.useCallback)((e2, t2) => {
|
|
26967
27055
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
|
|
26968
27056
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
26969
27057
|
let d2 = adjustLayoutByDelta({
|
|
@@ -26975,12 +27063,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26975
27063
|
trigger: "imperative-api"
|
|
26976
27064
|
});
|
|
26977
27065
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
26978
|
-
}, []),
|
|
27066
|
+
}, []), LK = (0, import_react.useCallback)((e2, t2) => {
|
|
26979
27067
|
let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
|
|
26980
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27068
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || IK(e2, s2) : h2 < f2 ? IK(e2, f2) : h2 > d2 && IK(e2, d2));
|
|
26981
27069
|
}, [
|
|
26982
|
-
|
|
26983
|
-
]),
|
|
27070
|
+
IK
|
|
27071
|
+
]), RK = (0, import_react.useCallback)((e2, t2) => {
|
|
26984
27072
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
26985
27073
|
if (!y.current) return;
|
|
26986
27074
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -26992,30 +27080,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26992
27080
|
initialCursorPosition: o2,
|
|
26993
27081
|
initialLayout: i2
|
|
26994
27082
|
});
|
|
26995
|
-
}, []),
|
|
27083
|
+
}, []), zK = (0, import_react.useCallback)(() => {
|
|
26996
27084
|
w(null);
|
|
26997
|
-
}, []),
|
|
27085
|
+
}, []), BK = (0, import_react.useCallback)((e2) => {
|
|
26998
27086
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
26999
27087
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27000
27088
|
}, [
|
|
27001
27089
|
A
|
|
27002
|
-
]),
|
|
27090
|
+
]), VK = (0, import_react.useMemo)(() => ({
|
|
27003
27091
|
collapsePanel: q,
|
|
27004
27092
|
direction: i,
|
|
27005
27093
|
dragState: S,
|
|
27006
27094
|
expandPanel: J,
|
|
27007
27095
|
getPanelSize: Q,
|
|
27008
|
-
getPanelStyle:
|
|
27096
|
+
getPanelStyle: $,
|
|
27009
27097
|
groupId: v,
|
|
27010
|
-
isPanelCollapsed:
|
|
27011
|
-
isPanelExpanded:
|
|
27012
|
-
reevaluatePanelConstraints:
|
|
27013
|
-
registerPanel:
|
|
27014
|
-
registerResizeHandle:
|
|
27015
|
-
resizePanel:
|
|
27016
|
-
startDragging:
|
|
27017
|
-
stopDragging:
|
|
27018
|
-
unregisterPanel:
|
|
27098
|
+
isPanelCollapsed: MK,
|
|
27099
|
+
isPanelExpanded: NK,
|
|
27100
|
+
reevaluatePanelConstraints: LK,
|
|
27101
|
+
registerPanel: PK,
|
|
27102
|
+
registerResizeHandle: FK,
|
|
27103
|
+
resizePanel: IK,
|
|
27104
|
+
startDragging: RK,
|
|
27105
|
+
stopDragging: zK,
|
|
27106
|
+
unregisterPanel: BK,
|
|
27019
27107
|
panelGroupElement: y.current
|
|
27020
27108
|
}), [
|
|
27021
27109
|
q,
|
|
@@ -27023,18 +27111,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27023
27111
|
i,
|
|
27024
27112
|
J,
|
|
27025
27113
|
Q,
|
|
27026
|
-
yK,
|
|
27027
|
-
v,
|
|
27028
|
-
bK,
|
|
27029
|
-
xK,
|
|
27030
|
-
wK,
|
|
27031
|
-
SK,
|
|
27032
27114
|
$,
|
|
27033
|
-
|
|
27034
|
-
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27115
|
+
v,
|
|
27116
|
+
MK,
|
|
27117
|
+
NK,
|
|
27118
|
+
LK,
|
|
27119
|
+
PK,
|
|
27120
|
+
FK,
|
|
27121
|
+
IK,
|
|
27122
|
+
RK,
|
|
27123
|
+
zK,
|
|
27124
|
+
BK
|
|
27125
|
+
]), HK = {
|
|
27038
27126
|
display: "flex",
|
|
27039
27127
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27040
27128
|
height: "100%",
|
|
@@ -27042,7 +27130,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27042
27130
|
width: "100%"
|
|
27043
27131
|
};
|
|
27044
27132
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27045
|
-
value:
|
|
27133
|
+
value: VK
|
|
27046
27134
|
}, (0, import_react.createElement)(h, {
|
|
27047
27135
|
..._,
|
|
27048
27136
|
children: t,
|
|
@@ -27050,7 +27138,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27050
27138
|
id: o,
|
|
27051
27139
|
ref: y,
|
|
27052
27140
|
style: {
|
|
27053
|
-
...
|
|
27141
|
+
...HK,
|
|
27054
27142
|
...f
|
|
27055
27143
|
},
|
|
27056
27144
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27127,31 +27215,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27127
27215
|
});
|
|
27128
27216
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27129
27217
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27130
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
27218
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, MK] = (0, import_react.useState)(false), [NK, PK] = (0, import_react.useState)(null), FK = (0, import_react.useRef)({
|
|
27131
27219
|
state: J
|
|
27132
27220
|
});
|
|
27133
27221
|
useIsomorphicLayoutEffect$1(() => {
|
|
27134
|
-
|
|
27222
|
+
FK.current.state = J;
|
|
27135
27223
|
}), (0, import_react.useEffect)(() => {
|
|
27136
|
-
if (n)
|
|
27224
|
+
if (n) PK(null);
|
|
27137
27225
|
else {
|
|
27138
27226
|
let e2 = I(q);
|
|
27139
|
-
|
|
27227
|
+
PK(() => e2);
|
|
27140
27228
|
}
|
|
27141
27229
|
}, [
|
|
27142
27230
|
n,
|
|
27143
27231
|
q,
|
|
27144
27232
|
I
|
|
27145
27233
|
]);
|
|
27146
|
-
let
|
|
27234
|
+
let IK = (i == null ? void 0 : i.coarse) ?? 15, LK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27147
27235
|
(0, import_react.useEffect)(() => {
|
|
27148
|
-
if (n ||
|
|
27236
|
+
if (n || NK == null) return;
|
|
27149
27237
|
let e2 = w.current;
|
|
27150
27238
|
assert(e2, "Element ref not attached");
|
|
27151
27239
|
let t2 = false;
|
|
27152
27240
|
return registerResizeHandle(q, e2, A, {
|
|
27153
|
-
coarse:
|
|
27154
|
-
fine:
|
|
27241
|
+
coarse: IK,
|
|
27242
|
+
fine: LK
|
|
27155
27243
|
}, (e3, n2, i2) => {
|
|
27156
27244
|
if (!n2) {
|
|
27157
27245
|
Q("inactive");
|
|
@@ -27165,8 +27253,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27165
27253
|
break;
|
|
27166
27254
|
}
|
|
27167
27255
|
case "move": {
|
|
27168
|
-
let { state: e4 } =
|
|
27169
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27256
|
+
let { state: e4 } = FK.current;
|
|
27257
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), NK(i2);
|
|
27170
27258
|
break;
|
|
27171
27259
|
}
|
|
27172
27260
|
case "up": {
|
|
@@ -27178,22 +27266,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27178
27266
|
}
|
|
27179
27267
|
});
|
|
27180
27268
|
}, [
|
|
27181
|
-
|
|
27269
|
+
IK,
|
|
27182
27270
|
A,
|
|
27183
27271
|
n,
|
|
27184
|
-
|
|
27272
|
+
LK,
|
|
27185
27273
|
I,
|
|
27186
27274
|
q,
|
|
27187
|
-
|
|
27275
|
+
NK,
|
|
27188
27276
|
z,
|
|
27189
27277
|
U
|
|
27190
27278
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27191
27279
|
disabled: n,
|
|
27192
27280
|
handleId: q,
|
|
27193
|
-
resizeHandler:
|
|
27281
|
+
resizeHandler: NK,
|
|
27194
27282
|
panelGroupElement: K
|
|
27195
27283
|
});
|
|
27196
|
-
let
|
|
27284
|
+
let RK = {
|
|
27197
27285
|
touchAction: "none",
|
|
27198
27286
|
userSelect: "none"
|
|
27199
27287
|
};
|
|
@@ -27203,22 +27291,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27203
27291
|
className: t,
|
|
27204
27292
|
id: a,
|
|
27205
27293
|
onBlur: () => {
|
|
27206
|
-
|
|
27294
|
+
MK(false), o == null ? void 0 : o();
|
|
27207
27295
|
},
|
|
27208
27296
|
onFocus: () => {
|
|
27209
|
-
|
|
27297
|
+
MK(true), d == null ? void 0 : d();
|
|
27210
27298
|
},
|
|
27211
27299
|
ref: w,
|
|
27212
27300
|
role: "separator",
|
|
27213
27301
|
style: {
|
|
27214
|
-
...
|
|
27302
|
+
...RK,
|
|
27215
27303
|
..._
|
|
27216
27304
|
},
|
|
27217
27305
|
tabIndex: v,
|
|
27218
27306
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27219
27307
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27220
27308
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27221
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27309
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : $ ? "keyboard" : void 0,
|
|
27222
27310
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27223
27311
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27224
27312
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27510,7 +27598,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27510
27598
|
}, [
|
|
27511
27599
|
h
|
|
27512
27600
|
]), k(() => {
|
|
27513
|
-
U(6,
|
|
27601
|
+
U(6, NK);
|
|
27514
27602
|
}, []);
|
|
27515
27603
|
let K = import_react.useMemo(() => ({
|
|
27516
27604
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27519,7 +27607,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27519
27607
|
var _a2;
|
|
27520
27608
|
var a2, o2, s2;
|
|
27521
27609
|
if (!Object.is(n.current[e2], t2)) {
|
|
27522
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27610
|
+
if (n.current[e2] = t2, e2 === "search") MK(), Q(), U(1, $);
|
|
27523
27611
|
else if (e2 === "value") {
|
|
27524
27612
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27525
27613
|
let e3 = document.getElementById(I);
|
|
@@ -27527,8 +27615,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27527
27615
|
}
|
|
27528
27616
|
if (U(7, () => {
|
|
27529
27617
|
var _a3;
|
|
27530
|
-
n.current.selectedItemId = (_a3 =
|
|
27531
|
-
}), i2 || U(5,
|
|
27618
|
+
n.current.selectedItemId = (_a3 = PK()) == null ? void 0 : _a3.id, K.emit();
|
|
27619
|
+
}), i2 || U(5, NK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27532
27620
|
let e3 = t2 ?? "";
|
|
27533
27621
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27534
27622
|
return;
|
|
@@ -27553,12 +27641,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27553
27641
|
item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
|
|
27554
27642
|
e2
|
|
27555
27643
|
]))), U(3, () => {
|
|
27556
|
-
|
|
27644
|
+
MK(), Q(), n.current.value || $(), K.emit();
|
|
27557
27645
|
}), () => {
|
|
27558
27646
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27559
|
-
let t3 =
|
|
27647
|
+
let t3 = PK();
|
|
27560
27648
|
U(4, () => {
|
|
27561
|
-
|
|
27649
|
+
MK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
27562
27650
|
});
|
|
27563
27651
|
}),
|
|
27564
27652
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27591,7 +27679,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27591
27679
|
]);
|
|
27592
27680
|
});
|
|
27593
27681
|
let i2 = z.current;
|
|
27594
|
-
|
|
27682
|
+
FK().sort((t3, n2) => {
|
|
27595
27683
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27596
27684
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27597
27685
|
}).forEach((e3) => {
|
|
@@ -27603,12 +27691,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27603
27691
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27604
27692
|
});
|
|
27605
27693
|
}
|
|
27606
|
-
function
|
|
27694
|
+
function $() {
|
|
27607
27695
|
var _a2;
|
|
27608
|
-
let e2 = (_a2 =
|
|
27696
|
+
let e2 = (_a2 = FK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27609
27697
|
K.setState("value", e2 || void 0);
|
|
27610
27698
|
}
|
|
27611
|
-
function
|
|
27699
|
+
function MK() {
|
|
27612
27700
|
var _a2, _b;
|
|
27613
27701
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27614
27702
|
n.current.filtered.count = i.current.size;
|
|
@@ -27626,43 +27714,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27626
27714
|
}
|
|
27627
27715
|
n.current.filtered.count = e2;
|
|
27628
27716
|
}
|
|
27629
|
-
function
|
|
27717
|
+
function NK() {
|
|
27630
27718
|
var _a2, _b;
|
|
27631
27719
|
var e2;
|
|
27632
|
-
let t2 =
|
|
27720
|
+
let t2 = PK();
|
|
27633
27721
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
27634
27722
|
block: "nearest"
|
|
27635
27723
|
})), t2.scrollIntoView({
|
|
27636
27724
|
block: "nearest"
|
|
27637
27725
|
}));
|
|
27638
27726
|
}
|
|
27639
|
-
function
|
|
27727
|
+
function PK() {
|
|
27640
27728
|
var _a2;
|
|
27641
27729
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27642
27730
|
}
|
|
27643
|
-
function
|
|
27731
|
+
function FK() {
|
|
27644
27732
|
var _a2;
|
|
27645
27733
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27646
27734
|
}
|
|
27647
|
-
function
|
|
27648
|
-
let t2 =
|
|
27735
|
+
function IK(e2) {
|
|
27736
|
+
let t2 = FK()[e2];
|
|
27649
27737
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27650
27738
|
}
|
|
27651
|
-
function
|
|
27739
|
+
function LK(e2) {
|
|
27652
27740
|
var t2;
|
|
27653
|
-
let n2 =
|
|
27741
|
+
let n2 = PK(), i2 = FK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27654
27742
|
(t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
|
|
27655
27743
|
}
|
|
27656
|
-
function
|
|
27744
|
+
function RK(e2) {
|
|
27657
27745
|
var _a2;
|
|
27658
|
-
let t2 = (_a2 =
|
|
27746
|
+
let t2 = (_a2 = PK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27659
27747
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27660
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27748
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : LK(e2);
|
|
27661
27749
|
}
|
|
27662
|
-
let
|
|
27663
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27664
|
-
},
|
|
27665
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27750
|
+
let zK = () => IK(FK().length - 1), BK = (e2) => {
|
|
27751
|
+
e2.preventDefault(), e2.metaKey ? zK() : e2.altKey ? RK(1) : LK(1);
|
|
27752
|
+
}, VK = (e2) => {
|
|
27753
|
+
e2.preventDefault(), e2.metaKey ? IK(0) : e2.altKey ? RK(-1) : LK(-1);
|
|
27666
27754
|
};
|
|
27667
27755
|
return import_react.createElement(Primitive.div, {
|
|
27668
27756
|
ref: t,
|
|
@@ -27676,27 +27764,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27676
27764
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27677
27765
|
case "n":
|
|
27678
27766
|
case "j":
|
|
27679
|
-
E && e2.ctrlKey &&
|
|
27767
|
+
E && e2.ctrlKey && BK(e2);
|
|
27680
27768
|
break;
|
|
27681
27769
|
case "ArrowDown":
|
|
27682
|
-
|
|
27770
|
+
BK(e2);
|
|
27683
27771
|
break;
|
|
27684
27772
|
case "p":
|
|
27685
27773
|
case "k":
|
|
27686
|
-
E && e2.ctrlKey &&
|
|
27774
|
+
E && e2.ctrlKey && VK(e2);
|
|
27687
27775
|
break;
|
|
27688
27776
|
case "ArrowUp":
|
|
27689
|
-
|
|
27777
|
+
VK(e2);
|
|
27690
27778
|
break;
|
|
27691
27779
|
case "Home":
|
|
27692
|
-
e2.preventDefault(),
|
|
27780
|
+
e2.preventDefault(), IK(0);
|
|
27693
27781
|
break;
|
|
27694
27782
|
case "End":
|
|
27695
|
-
e2.preventDefault(),
|
|
27783
|
+
e2.preventDefault(), zK();
|
|
27696
27784
|
break;
|
|
27697
27785
|
case "Enter": {
|
|
27698
27786
|
e2.preventDefault();
|
|
27699
|
-
let t3 =
|
|
27787
|
+
let t3 = PK();
|
|
27700
27788
|
if (t3) {
|
|
27701
27789
|
let e3 = new Event(Z);
|
|
27702
27790
|
t3.dispatchEvent(e3);
|
|
@@ -28105,153 +28193,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28105
28193
|
Combobox = (e) => {
|
|
28106
28194
|
let t = (0, import_compiler_runtime$30.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28107
28195
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28108
|
-
let Q = M === void 0 ? false : M,
|
|
28109
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28196
|
+
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, MK = z === void 0 ? "Search..." : z, NK = U === void 0 ? "Nothing found." : U, PK = K === void 0 ? false : K, FK = q === void 0 ? false : q, IK = s ?? false, LK;
|
|
28197
|
+
t[24] !== v || t[25] !== w || t[26] !== IK ? (LK = {
|
|
28110
28198
|
prop: w,
|
|
28111
|
-
defaultProp:
|
|
28199
|
+
defaultProp: IK,
|
|
28112
28200
|
onChange: v
|
|
28113
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28114
|
-
let [
|
|
28115
|
-
t[28] === S ?
|
|
28201
|
+
}, t[24] = v, t[25] = w, t[26] = IK, t[27] = LK) : LK = t[27];
|
|
28202
|
+
let [RK, zK] = useControllableState(LK), BK = RK === void 0 ? false : RK, VK;
|
|
28203
|
+
t[28] === S ? VK = t[29] : (VK = (e2) => {
|
|
28116
28204
|
S == null ? void 0 : S(e2);
|
|
28117
|
-
}, t[28] = S, t[29] =
|
|
28118
|
-
let
|
|
28119
|
-
t[30] !== c || t[31] !==
|
|
28205
|
+
}, t[28] = S, t[29] = VK);
|
|
28206
|
+
let HK;
|
|
28207
|
+
t[30] !== c || t[31] !== VK || t[32] !== J ? (HK = {
|
|
28120
28208
|
prop: J,
|
|
28121
28209
|
defaultProp: c,
|
|
28122
|
-
onChange:
|
|
28123
|
-
}, t[30] = c, t[31] =
|
|
28124
|
-
let [
|
|
28125
|
-
t[34] ===
|
|
28126
|
-
let
|
|
28127
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28210
|
+
onChange: VK
|
|
28211
|
+
}, t[30] = c, t[31] = VK, t[32] = J, t[33] = HK) : HK = t[33];
|
|
28212
|
+
let [UK, WK] = useControllableState(HK), GK;
|
|
28213
|
+
t[34] === UK ? GK = t[35] : (GK = (e2) => Array.isArray(UK) ? UK.includes(e2) : UK === e2, t[34] = UK, t[35] = GK);
|
|
28214
|
+
let KK = GK, qK;
|
|
28215
|
+
t[36] !== _ || t[37] !== Q || t[38] !== zK || t[39] !== WK || t[40] !== UK ? (qK = (e2) => {
|
|
28128
28216
|
let t2 = e2;
|
|
28129
|
-
if (Q) if (Array.isArray(
|
|
28130
|
-
let n2 =
|
|
28217
|
+
if (Q) if (Array.isArray(UK)) if (UK.includes(t2)) {
|
|
28218
|
+
let n2 = UK.filter((t3) => t3 !== e2);
|
|
28131
28219
|
t2 = n2.length > 0 ? n2 : [];
|
|
28132
28220
|
} else t2 = [
|
|
28133
|
-
...
|
|
28221
|
+
...UK,
|
|
28134
28222
|
t2
|
|
28135
28223
|
];
|
|
28136
28224
|
else t2 = [
|
|
28137
28225
|
t2
|
|
28138
28226
|
];
|
|
28139
|
-
else
|
|
28140
|
-
|
|
28141
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28142
|
-
let
|
|
28143
|
-
t[42] !==
|
|
28144
|
-
let
|
|
28145
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28146
|
-
let
|
|
28147
|
-
t[49] !==
|
|
28148
|
-
|
|
28149
|
-
}, t[49] =
|
|
28150
|
-
let
|
|
28151
|
-
t[52] !== o || t[53] !==
|
|
28152
|
-
let
|
|
28153
|
-
t[55] ===
|
|
28154
|
-
let
|
|
28155
|
-
t[57] ===
|
|
28227
|
+
else UK === e2 && (t2 = null);
|
|
28228
|
+
WK(t2), (_ ?? Q) || zK(false);
|
|
28229
|
+
}, t[36] = _, t[37] = Q, t[38] = zK, t[39] = WK, t[40] = UK, t[41] = qK) : qK = t[41];
|
|
28230
|
+
let JK = qK, YK;
|
|
28231
|
+
t[42] !== PK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== UK ? (YK = () => Q && PK && E ? E : UK == null ? E ?? "--" : Array.isArray(UK) ? UK.length === 0 ? E ?? "--" : UK.length === 1 && d !== void 0 ? d(UK[0]) : `${UK.length} selected` : d === void 0 ? E ?? "--" : d(UK), t[42] = PK, t[43] = d, t[44] = Q, t[45] = E, t[46] = UK, t[47] = YK) : YK = t[47];
|
|
28232
|
+
let XK = YK, ZK;
|
|
28233
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZK = cn("relative"), t[48] = ZK) : ZK = t[48];
|
|
28234
|
+
let QK;
|
|
28235
|
+
t[49] !== FK || t[50] !== zK ? (QK = (e2) => {
|
|
28236
|
+
FK && e2 || zK(e2);
|
|
28237
|
+
}, t[49] = FK, t[50] = zK, t[51] = QK) : QK = t[51];
|
|
28238
|
+
let $K = FK && "cursor-not-allowed opacity-50", eq;
|
|
28239
|
+
t[52] !== o || t[53] !== $K ? (eq = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", $K, o), t[52] = o, t[53] = $K, t[54] = eq) : eq = t[54];
|
|
28240
|
+
let nq;
|
|
28241
|
+
t[55] === XK ? nq = t[56] : (nq = XK(), t[55] = XK, t[56] = nq);
|
|
28242
|
+
let rq;
|
|
28243
|
+
t[57] === nq ? rq = t[58] : (rq = (0, import_jsx_runtime.jsx)("span", {
|
|
28156
28244
|
className: "truncate flex-1 min-w-0",
|
|
28157
|
-
children:
|
|
28158
|
-
}), t[57] =
|
|
28159
|
-
let
|
|
28160
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28245
|
+
children: nq
|
|
28246
|
+
}), t[57] = nq, t[58] = rq);
|
|
28247
|
+
let aq;
|
|
28248
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28161
28249
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28162
|
-
}), t[59] =
|
|
28163
|
-
let
|
|
28164
|
-
t[60] !==
|
|
28250
|
+
}), t[59] = aq) : aq = t[59];
|
|
28251
|
+
let oq;
|
|
28252
|
+
t[60] !== FK || t[61] !== h || t[62] !== BK || t[63] !== eq || t[64] !== rq ? (oq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28165
28253
|
asChild: true,
|
|
28166
28254
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28167
28255
|
id: h,
|
|
28168
28256
|
type: "button",
|
|
28169
|
-
className:
|
|
28170
|
-
"aria-expanded":
|
|
28171
|
-
"aria-disabled":
|
|
28257
|
+
className: eq,
|
|
28258
|
+
"aria-expanded": BK,
|
|
28259
|
+
"aria-disabled": FK,
|
|
28172
28260
|
children: [
|
|
28173
|
-
|
|
28174
|
-
|
|
28261
|
+
rq,
|
|
28262
|
+
aq
|
|
28175
28263
|
]
|
|
28176
28264
|
})
|
|
28177
|
-
}), t[60] =
|
|
28178
|
-
let
|
|
28179
|
-
t[66] !==
|
|
28180
|
-
placeholder:
|
|
28265
|
+
}), t[60] = FK, t[61] = h, t[62] = BK, t[63] = eq, t[64] = rq, t[65] = oq) : oq = t[65];
|
|
28266
|
+
let sq;
|
|
28267
|
+
t[66] !== MK || t[67] !== y || t[68] !== A ? (sq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28268
|
+
placeholder: MK,
|
|
28181
28269
|
rootClassName: "px-1 h-8",
|
|
28182
28270
|
autoFocus: true,
|
|
28183
28271
|
value: A,
|
|
28184
28272
|
onValueChange: y
|
|
28185
|
-
}), t[66] =
|
|
28186
|
-
let
|
|
28187
|
-
t[70] ===
|
|
28188
|
-
children:
|
|
28189
|
-
}), t[70] =
|
|
28190
|
-
let
|
|
28191
|
-
t[72] !==
|
|
28192
|
-
isSelected:
|
|
28193
|
-
onSelect:
|
|
28194
|
-
}, t[72] =
|
|
28195
|
-
let
|
|
28196
|
-
t[75] !== n || t[76] !==
|
|
28197
|
-
value:
|
|
28273
|
+
}), t[66] = MK, t[67] = y, t[68] = A, t[69] = sq) : sq = t[69];
|
|
28274
|
+
let cq;
|
|
28275
|
+
t[70] === NK ? cq = t[71] : (cq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28276
|
+
children: NK
|
|
28277
|
+
}), t[70] = NK, t[71] = cq);
|
|
28278
|
+
let lq;
|
|
28279
|
+
t[72] !== JK || t[73] !== KK ? (lq = {
|
|
28280
|
+
isSelected: KK,
|
|
28281
|
+
onSelect: JK
|
|
28282
|
+
}, t[72] = JK, t[73] = KK, t[74] = lq) : lq = t[74];
|
|
28283
|
+
let uq;
|
|
28284
|
+
t[75] !== n || t[76] !== lq ? (uq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28285
|
+
value: lq,
|
|
28198
28286
|
children: n
|
|
28199
|
-
}), t[75] = n, t[76] =
|
|
28200
|
-
let
|
|
28201
|
-
t[78] !==
|
|
28287
|
+
}), t[75] = n, t[76] = lq, t[77] = uq) : uq = t[77];
|
|
28288
|
+
let dq;
|
|
28289
|
+
t[78] !== cq || t[79] !== uq ? (dq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28202
28290
|
className: "max-h-60 py-.5",
|
|
28203
28291
|
children: [
|
|
28204
|
-
|
|
28205
|
-
|
|
28292
|
+
cq,
|
|
28293
|
+
uq
|
|
28206
28294
|
]
|
|
28207
|
-
}), t[78] =
|
|
28208
|
-
let
|
|
28209
|
-
t[81] !== f || t[82] !==
|
|
28295
|
+
}), t[78] = cq, t[79] = uq, t[80] = dq) : dq = t[80];
|
|
28296
|
+
let fq;
|
|
28297
|
+
t[81] !== f || t[82] !== $ || t[83] !== sq || t[84] !== dq ? (fq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28210
28298
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28211
28299
|
align: "start",
|
|
28212
28300
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28213
28301
|
filter: f,
|
|
28214
|
-
shouldFilter:
|
|
28302
|
+
shouldFilter: $,
|
|
28215
28303
|
children: [
|
|
28216
|
-
|
|
28217
|
-
|
|
28304
|
+
sq,
|
|
28305
|
+
dq
|
|
28218
28306
|
]
|
|
28219
28307
|
})
|
|
28220
|
-
}), t[81] = f, t[82] =
|
|
28221
|
-
let
|
|
28222
|
-
t[86] !==
|
|
28223
|
-
open:
|
|
28224
|
-
onOpenChange:
|
|
28308
|
+
}), t[81] = f, t[82] = $, t[83] = sq, t[84] = dq, t[85] = fq) : fq = t[85];
|
|
28309
|
+
let pq;
|
|
28310
|
+
t[86] !== BK || t[87] !== QK || t[88] !== oq || t[89] !== fq ? (pq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28311
|
+
open: BK,
|
|
28312
|
+
onOpenChange: QK,
|
|
28225
28313
|
children: [
|
|
28226
|
-
|
|
28227
|
-
|
|
28314
|
+
oq,
|
|
28315
|
+
fq
|
|
28228
28316
|
]
|
|
28229
|
-
}), t[86] =
|
|
28230
|
-
let
|
|
28231
|
-
t[91] !==
|
|
28317
|
+
}), t[86] = BK, t[87] = QK, t[88] = oq, t[89] = fq, t[90] = pq) : pq = t[90];
|
|
28318
|
+
let mq;
|
|
28319
|
+
t[91] !== PK || t[92] !== i || t[93] !== FK || t[94] !== d || t[95] !== JK || t[96] !== Q || t[97] !== UK ? (mq = Q && PK && (0, import_jsx_runtime.jsx)("div", {
|
|
28232
28320
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28233
|
-
children: Array.isArray(
|
|
28321
|
+
children: Array.isArray(UK) && UK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28234
28322
|
variant: "secondary",
|
|
28235
28323
|
children: [
|
|
28236
28324
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28237
28325
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28238
28326
|
onClick: () => {
|
|
28239
|
-
|
|
28327
|
+
FK || JK(e2);
|
|
28240
28328
|
},
|
|
28241
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28329
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", FK && "pointer-events-none")
|
|
28242
28330
|
})
|
|
28243
28331
|
]
|
|
28244
28332
|
}, String(e2)))
|
|
28245
|
-
}), t[91] =
|
|
28246
|
-
let
|
|
28247
|
-
return t[99] !== O || t[100] !==
|
|
28248
|
-
className:
|
|
28333
|
+
}), t[91] = PK, t[92] = i, t[93] = FK, t[94] = d, t[95] = JK, t[96] = Q, t[97] = UK, t[98] = mq) : mq = t[98];
|
|
28334
|
+
let hq;
|
|
28335
|
+
return t[99] !== O || t[100] !== pq || t[101] !== mq ? (hq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28336
|
+
className: ZK,
|
|
28249
28337
|
...O,
|
|
28250
28338
|
children: [
|
|
28251
|
-
|
|
28252
|
-
|
|
28339
|
+
pq,
|
|
28340
|
+
mq
|
|
28253
28341
|
]
|
|
28254
|
-
}), t[99] = O, t[100] =
|
|
28342
|
+
}), t[99] = O, t[100] = pq, t[101] = mq, t[102] = hq) : hq = t[102], hq;
|
|
28255
28343
|
};
|
|
28256
28344
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28257
28345
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29379,13 +29467,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29379
29467
|
id: v,
|
|
29380
29468
|
operator: e2
|
|
29381
29469
|
});
|
|
29382
|
-
},
|
|
29470
|
+
}, $ = buildFilterValue({
|
|
29383
29471
|
type: S,
|
|
29384
29472
|
operator: E,
|
|
29385
29473
|
draft: mergeNumberTextDraft(A, I)
|
|
29386
|
-
}),
|
|
29387
|
-
if (
|
|
29388
|
-
let e2 =
|
|
29474
|
+
}), MK = $ === void 0, NK = MK ? getMissingValueMessage(S, E) : "Apply filter", PK = () => {
|
|
29475
|
+
if (!$) return;
|
|
29476
|
+
let e2 = $;
|
|
29389
29477
|
t.setColumnFilters((t2) => {
|
|
29390
29478
|
if (a === void 0) return [
|
|
29391
29479
|
{
|
|
@@ -29402,20 +29490,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29402
29490
|
value: e2
|
|
29403
29491
|
}, n2;
|
|
29404
29492
|
}), i();
|
|
29405
|
-
},
|
|
29493
|
+
}, FK = () => {
|
|
29406
29494
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29407
|
-
},
|
|
29495
|
+
}, IK = !OPERATORS_WITHOUT_VALUE.has(E), LK = OPERATORS_BY_TYPE[S], RK = (0, import_react.useRef)(null), zK = (0, import_react.useRef)(null);
|
|
29408
29496
|
return (0, import_react.useEffect)(() => {
|
|
29409
29497
|
var _a2, _b;
|
|
29410
|
-
let e2 = (_a2 =
|
|
29411
|
-
e2 ? e2.focus() : (_b =
|
|
29498
|
+
let e2 = (_a2 = RK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29499
|
+
e2 ? e2.focus() : (_b = zK.current) == null ? void 0 : _b.focus();
|
|
29412
29500
|
}, [
|
|
29413
29501
|
S,
|
|
29414
29502
|
E
|
|
29415
29503
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29416
29504
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29417
29505
|
onSubmit: (e2) => {
|
|
29418
|
-
e2.preventDefault(),
|
|
29506
|
+
e2.preventDefault(), PK();
|
|
29419
29507
|
},
|
|
29420
29508
|
onKeyDownCapture: (e2) => {
|
|
29421
29509
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29456,13 +29544,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29456
29544
|
onValueChange: (e2) => Q(e2),
|
|
29457
29545
|
children: [
|
|
29458
29546
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29459
|
-
ref:
|
|
29547
|
+
ref: zK,
|
|
29460
29548
|
id: s,
|
|
29461
29549
|
className: "h-6 mb-1 bg-transparent",
|
|
29462
29550
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29463
29551
|
}),
|
|
29464
29552
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29465
|
-
children:
|
|
29553
|
+
children: LK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29466
29554
|
value: e2,
|
|
29467
29555
|
children: OPERATOR_LABELS[e2]
|
|
29468
29556
|
}, e2))
|
|
@@ -29471,8 +29559,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29471
29559
|
}, S)
|
|
29472
29560
|
]
|
|
29473
29561
|
}),
|
|
29474
|
-
|
|
29475
|
-
ref:
|
|
29562
|
+
IK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29563
|
+
ref: RK,
|
|
29476
29564
|
className: "flex flex-col gap-1",
|
|
29477
29565
|
children: [
|
|
29478
29566
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29499,14 +29587,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29499
29587
|
className: "flex gap-1 mb-1",
|
|
29500
29588
|
children: [
|
|
29501
29589
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29502
|
-
content:
|
|
29590
|
+
content: NK,
|
|
29503
29591
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29504
29592
|
className: "inline-flex",
|
|
29505
29593
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29506
29594
|
type: "submit",
|
|
29507
29595
|
size: "icon",
|
|
29508
29596
|
variant: "ghost",
|
|
29509
|
-
disabled:
|
|
29597
|
+
disabled: MK,
|
|
29510
29598
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29511
29599
|
"aria-label": "Apply filter",
|
|
29512
29600
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29538,7 +29626,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29538
29626
|
size: "icon",
|
|
29539
29627
|
variant: "ghost",
|
|
29540
29628
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29541
|
-
onClick:
|
|
29629
|
+
onClick: FK,
|
|
29542
29630
|
"aria-label": "Remove filter",
|
|
29543
29631
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29544
29632
|
className: "h-3.5 w-3.5",
|
|
@@ -31934,6 +32022,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31934
32022
|
[t.id]: i
|
|
31935
32023
|
}));
|
|
31936
32024
|
}
|
|
32025
|
+
function useColumnVisibility(e) {
|
|
32026
|
+
let [t, n] = useInternalStateWithSync(Object.fromEntries((e ?? []).map((e2) => [
|
|
32027
|
+
e2,
|
|
32028
|
+
false
|
|
32029
|
+
])), dequal);
|
|
32030
|
+
return {
|
|
32031
|
+
columnVisibility: t,
|
|
32032
|
+
setColumnVisibility: n
|
|
32033
|
+
};
|
|
32034
|
+
}
|
|
32035
|
+
function getUserColumnVisibilityCounts(e) {
|
|
32036
|
+
let t = e.getAllLeafColumns().filter((e2) => e2.getCanHide()), n = t.filter((e2) => e2.getIsVisible()).length;
|
|
32037
|
+
return {
|
|
32038
|
+
total: t.length,
|
|
32039
|
+
visible: n,
|
|
32040
|
+
hidden: t.length - n
|
|
32041
|
+
};
|
|
32042
|
+
}
|
|
31937
32043
|
const DataTablePagination = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
31938
32044
|
let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), d = e.getState().pagination.pageSize, f = (e2) => {
|
|
31939
32045
|
t || e2();
|
|
@@ -32251,10 +32357,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32251
32357
|
prettifyRowCount = function(e, t) {
|
|
32252
32358
|
return `${prettyNumber(e, t)} ${new PluralWord("row").pluralize(e)}`;
|
|
32253
32359
|
};
|
|
32254
|
-
prettifyRowColumnCount = ({ numRows: e, totalColumns: t,
|
|
32255
|
-
e === "too_many" ? "Unknown" : prettifyRowCount(e,
|
|
32256
|
-
|
|
32257
|
-
|
|
32360
|
+
prettifyRowColumnCount = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: i }) => {
|
|
32361
|
+
let a = e === "too_many" ? "Unknown" : prettifyRowCount(e, i), o = n ?? 0, s = t - o;
|
|
32362
|
+
return {
|
|
32363
|
+
rowsAndColumns: [
|
|
32364
|
+
a,
|
|
32365
|
+
o > 0 ? `${prettyNumber(s, i)} visible` : `${prettyNumber(t, i)} ${new PluralWord("column").pluralize(t)}`
|
|
32366
|
+
].join(", "),
|
|
32367
|
+
hiddenSuffix: o > 0 ? `(${prettyNumber(o, i)} hidden)` : null
|
|
32368
|
+
};
|
|
32369
|
+
};
|
|
32258
32370
|
var import_compiler_runtime$13 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
|
|
32259
32371
|
const CellSelectionStats = (e) => {
|
|
32260
32372
|
let t = (0, import_compiler_runtime$13.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
|
|
@@ -32350,8 +32462,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32350
32462
|
return e + t;
|
|
32351
32463
|
}
|
|
32352
32464
|
let TableBottomBar, downloadSizeLimitAtom;
|
|
32353
|
-
TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f,
|
|
32354
|
-
let { locale:
|
|
32465
|
+
TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f, togglePanel: _, part: v, className: y }) => {
|
|
32466
|
+
let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), E = (e2) => {
|
|
32355
32467
|
if (!i) return;
|
|
32356
32468
|
if (!e2) {
|
|
32357
32469
|
i({});
|
|
@@ -32386,8 +32498,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32386
32498
|
});
|
|
32387
32499
|
};
|
|
32388
32500
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
32389
|
-
part:
|
|
32390
|
-
className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0",
|
|
32501
|
+
part: v,
|
|
32502
|
+
className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0", y),
|
|
32391
32503
|
children: [
|
|
32392
32504
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
32393
32505
|
className: "flex flex-col text-sm text-muted-foreground px-2 shrink-0",
|
|
@@ -32395,12 +32507,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32395
32507
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32396
32508
|
className: "flex items-center gap-1",
|
|
32397
32509
|
children: (() => {
|
|
32398
|
-
let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2,
|
|
32399
|
-
|
|
32510
|
+
let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2, v2 = n === "single-cell" || n === "multi-cell";
|
|
32511
|
+
if (v2 && (a = i2.length, c2 = false, f2 = false), c2 && !f2) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32400
32512
|
children: [
|
|
32401
32513
|
(0, import_jsx_runtime.jsxs)("span", {
|
|
32402
32514
|
children: [
|
|
32403
|
-
prettyNumber(a,
|
|
32515
|
+
prettyNumber(a, S),
|
|
32404
32516
|
" selected"
|
|
32405
32517
|
]
|
|
32406
32518
|
}),
|
|
@@ -32410,18 +32522,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32410
32522
|
variant: "link",
|
|
32411
32523
|
className: "h-4 print:hidden",
|
|
32412
32524
|
onMouseDown: Events.preventFocus,
|
|
32413
|
-
onClick: () =>
|
|
32525
|
+
onClick: () => E(true),
|
|
32414
32526
|
children: [
|
|
32415
32527
|
"Select all ",
|
|
32416
|
-
prettyNumber(d2,
|
|
32528
|
+
prettyNumber(d2, S)
|
|
32417
32529
|
]
|
|
32418
32530
|
})
|
|
32419
32531
|
]
|
|
32420
|
-
})
|
|
32532
|
+
});
|
|
32533
|
+
if (a) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32421
32534
|
children: [
|
|
32422
32535
|
(0, import_jsx_runtime.jsxs)("span", {
|
|
32423
32536
|
children: [
|
|
32424
|
-
prettyNumber(a,
|
|
32537
|
+
prettyNumber(a, S),
|
|
32425
32538
|
" selected"
|
|
32426
32539
|
]
|
|
32427
32540
|
}),
|
|
@@ -32432,17 +32545,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32432
32545
|
className: "h-4 print:hidden",
|
|
32433
32546
|
onMouseDown: Events.preventFocus,
|
|
32434
32547
|
onClick: () => {
|
|
32435
|
-
|
|
32548
|
+
v2 ? s.resetCellSelection && s.resetCellSelection() : E(false);
|
|
32436
32549
|
},
|
|
32437
32550
|
children: "Clear selection"
|
|
32438
32551
|
})
|
|
32439
32552
|
]
|
|
32440
|
-
})
|
|
32441
|
-
|
|
32442
|
-
|
|
32443
|
-
|
|
32444
|
-
|
|
32445
|
-
|
|
32553
|
+
});
|
|
32554
|
+
let y2 = getUserColumnVisibilityCounts(s), { rowsAndColumns: w, hiddenSuffix: O } = prettifyRowColumnCount({
|
|
32555
|
+
numRows: s.getRowCount(),
|
|
32556
|
+
totalColumns: y2.hidden > 0 ? y2.total : t,
|
|
32557
|
+
hiddenColumns: y2.hidden,
|
|
32558
|
+
locale: S
|
|
32559
|
+
});
|
|
32560
|
+
return (0, import_jsx_runtime.jsxs)("span", {
|
|
32561
|
+
className: "flex items-center gap-1",
|
|
32562
|
+
children: [
|
|
32563
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
32564
|
+
children: w
|
|
32565
|
+
}),
|
|
32566
|
+
O && (0, import_jsx_runtime.jsx)("button", {
|
|
32567
|
+
type: "button",
|
|
32568
|
+
className: "text-xs underline-offset-2 hover:underline cursor-pointer",
|
|
32569
|
+
onClick: () => _ == null ? void 0 : _(PANEL_TYPES.COLUMN_EXPLORER),
|
|
32570
|
+
children: O
|
|
32571
|
+
})
|
|
32572
|
+
]
|
|
32446
32573
|
});
|
|
32447
32574
|
})()
|
|
32448
32575
|
}),
|
|
@@ -32768,7 +32895,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32768
32895
|
filename: i2.filename
|
|
32769
32896
|
};
|
|
32770
32897
|
}, t[6] = e, t[7] = S);
|
|
32771
|
-
let O = S, A, M, I, z, U, K, q, J, Q,
|
|
32898
|
+
let O = S, A, M, I, z, U, K, q, J, Q, $, MK, NK, PK;
|
|
32772
32899
|
if (t[8] !== y || t[9] !== c || t[10] !== n || t[11] !== i || t[12] !== (s == null ? void 0 : s.unavailableMessage) || t[13] !== O) {
|
|
32773
32900
|
let e2 = async (t2) => {
|
|
32774
32901
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -32836,10 +32963,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32836
32963
|
content: d2,
|
|
32837
32964
|
open: f2,
|
|
32838
32965
|
children: v2
|
|
32839
|
-
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom",
|
|
32966
|
+
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom", $ = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32840
32967
|
className: "text-xs text-muted-foreground",
|
|
32841
32968
|
children: "Download"
|
|
32842
|
-
}), t[37] =
|
|
32969
|
+
}), t[37] = MK) : MK = t[37], NK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32843
32970
|
onSelect: () => {
|
|
32844
32971
|
e2(t2.format);
|
|
32845
32972
|
},
|
|
@@ -32860,10 +32987,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32860
32987
|
]
|
|
32861
32988
|
})
|
|
32862
32989
|
]
|
|
32863
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32990
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), I = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32864
32991
|
className: "text-xs text-muted-foreground",
|
|
32865
32992
|
children: "Copy to clipboard"
|
|
32866
|
-
}), t[38] = I, t[39] =
|
|
32993
|
+
}), t[38] = I, t[39] = PK) : (I = t[38], PK = t[39]), z = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32867
32994
|
onSelect: async () => {
|
|
32868
32995
|
try {
|
|
32869
32996
|
await a(e3.format);
|
|
@@ -32892,30 +33019,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32892
33019
|
]
|
|
32893
33020
|
})
|
|
32894
33021
|
]
|
|
32895
|
-
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] =
|
|
32896
|
-
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22],
|
|
32897
|
-
let
|
|
32898
|
-
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !==
|
|
33022
|
+
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] = $, t[24] = MK, t[25] = NK, t[26] = PK;
|
|
33023
|
+
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22], $ = t[23], MK = t[24], NK = t[25], PK = t[26];
|
|
33024
|
+
let FK;
|
|
33025
|
+
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !== $ || t[45] !== MK || t[46] !== NK || t[47] !== PK ? (FK = (0, import_jsx_runtime.jsxs)(A, {
|
|
32899
33026
|
side: Q,
|
|
32900
|
-
className:
|
|
33027
|
+
className: $,
|
|
32901
33028
|
children: [
|
|
32902
|
-
|
|
32903
|
-
|
|
32904
|
-
|
|
33029
|
+
MK,
|
|
33030
|
+
NK,
|
|
33031
|
+
PK,
|
|
32905
33032
|
I,
|
|
32906
33033
|
z
|
|
32907
33034
|
]
|
|
32908
|
-
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] =
|
|
32909
|
-
let
|
|
32910
|
-
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !==
|
|
33035
|
+
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] = $, t[45] = MK, t[46] = NK, t[47] = PK, t[48] = FK) : FK = t[48];
|
|
33036
|
+
let IK;
|
|
33037
|
+
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !== FK ? (IK = (0, import_jsx_runtime.jsxs)(M, {
|
|
32911
33038
|
modal: U,
|
|
32912
33039
|
open: K,
|
|
32913
33040
|
onOpenChange: q,
|
|
32914
33041
|
children: [
|
|
32915
33042
|
J,
|
|
32916
|
-
|
|
33043
|
+
FK
|
|
32917
33044
|
]
|
|
32918
|
-
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] =
|
|
33045
|
+
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] = FK, t[55] = IK) : IK = t[55], IK;
|
|
32919
33046
|
};
|
|
32920
33047
|
function fetchJson(e) {
|
|
32921
33048
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33007,22 +33134,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33007
33134
|
]
|
|
33008
33135
|
}) : null;
|
|
33009
33136
|
};
|
|
33010
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes:
|
|
33011
|
-
let [
|
|
33137
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, manualSorting: v = false, sorting: y, setSorting: S, rowSelection: w, cellSelection: E, cellStyling: O, hoverTemplate: A, cellHoverTexts: M, paginationState: I, setPaginationState: z, downloadAs: U, manualPagination: K = false, pagination: q = false, onRowSelectionChange: J, onCellSelectionChange: Q, getRowIds: $, enableSearch: MK = false, searchQuery: NK, onSearchQueryChange: PK, showFilters: FK = false, filters: IK, onFiltersChange: LK, calculateTopKRows: RK, reloading: zK, freezeColumnsLeft: BK, freezeColumnsRight: VK, hiddenColumns: HK, toggleDisplayHeader: UK, showChartBuilder: WK, isChartBuilderOpen: GK, showPageSizeSelector: KK, showTableExplorer: qK, togglePanel: JK, isPanelOpen: YK, isAnyPanelOpen: XK, viewedRowIdx: ZK, onViewedRowChange: QK }) => {
|
|
33138
|
+
let [$K, eq] = import_react.useState(false), { locale: tq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: nq, setColumnPinning: rq } = useColumnPinning(BK, VK), { columnVisibility: iq, setColumnVisibility: aq } = useColumnVisibility(HK);
|
|
33012
33139
|
import_react.useEffect(() => {
|
|
33013
33140
|
let e2;
|
|
33014
|
-
return
|
|
33015
|
-
|
|
33016
|
-
}, 300) :
|
|
33141
|
+
return zK ? e2 = setTimeout(() => {
|
|
33142
|
+
eq(true);
|
|
33143
|
+
}, 300) : eq(false), () => {
|
|
33017
33144
|
e2 && clearTimeout(e2);
|
|
33018
33145
|
};
|
|
33019
33146
|
}, [
|
|
33020
|
-
|
|
33147
|
+
zK
|
|
33021
33148
|
]);
|
|
33022
|
-
function
|
|
33023
|
-
return
|
|
33149
|
+
function oq(e2, t2) {
|
|
33150
|
+
return I ? t2 + (K ? I.pageIndex * I.pageSize : 0) : t2;
|
|
33024
33151
|
}
|
|
33025
|
-
let
|
|
33152
|
+
let sq = useReactTable({
|
|
33026
33153
|
_features: [
|
|
33027
33154
|
ColumnPinning,
|
|
33028
33155
|
ColumnWrappingFeature,
|
|
@@ -33041,79 +33168,81 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33041
33168
|
},
|
|
33042
33169
|
getCoreRowModel: getCoreRowModel(),
|
|
33043
33170
|
rowCount: f === "too_many" ? void 0 : f,
|
|
33044
|
-
...
|
|
33045
|
-
onPaginationChange:
|
|
33171
|
+
...z ? {
|
|
33172
|
+
onPaginationChange: z,
|
|
33046
33173
|
getRowId: (e2, t2) => {
|
|
33047
33174
|
let n2 = getStableRowId(e2);
|
|
33048
33175
|
if (n2) return n2;
|
|
33049
|
-
let i2 =
|
|
33176
|
+
let i2 = oq(e2, t2);
|
|
33050
33177
|
return String(i2);
|
|
33051
33178
|
}
|
|
33052
33179
|
} : {},
|
|
33053
|
-
locale:
|
|
33054
|
-
manualPagination:
|
|
33180
|
+
locale: tq,
|
|
33181
|
+
manualPagination: K,
|
|
33055
33182
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33056
|
-
...
|
|
33057
|
-
onSortingChange:
|
|
33183
|
+
...S ? {
|
|
33184
|
+
onSortingChange: S
|
|
33058
33185
|
} : {},
|
|
33059
|
-
manualSorting:
|
|
33186
|
+
manualSorting: v,
|
|
33060
33187
|
enableMultiSort: true,
|
|
33061
33188
|
getSortedRowModel: getSortedRowModel(),
|
|
33062
33189
|
manualFiltering: true,
|
|
33063
|
-
enableColumnFilters:
|
|
33190
|
+
enableColumnFilters: FK,
|
|
33064
33191
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33065
|
-
onColumnFiltersChange:
|
|
33066
|
-
onRowSelectionChange:
|
|
33067
|
-
onCellSelectionChange:
|
|
33192
|
+
onColumnFiltersChange: LK,
|
|
33193
|
+
onRowSelectionChange: J,
|
|
33194
|
+
onCellSelectionChange: Q,
|
|
33068
33195
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33069
33196
|
enableMultiCellSelection: c === "multi-cell",
|
|
33070
|
-
onColumnPinningChange:
|
|
33197
|
+
onColumnPinningChange: rq,
|
|
33198
|
+
onColumnVisibilityChange: aq,
|
|
33071
33199
|
enableFocusRow: true,
|
|
33072
|
-
onFocusRowChange:
|
|
33200
|
+
onFocusRowChange: QK,
|
|
33073
33201
|
state: {
|
|
33074
|
-
...
|
|
33075
|
-
sorting:
|
|
33202
|
+
...y ? {
|
|
33203
|
+
sorting: y
|
|
33076
33204
|
} : {},
|
|
33077
|
-
columnFilters:
|
|
33078
|
-
...
|
|
33079
|
-
pagination:
|
|
33080
|
-
} :
|
|
33205
|
+
columnFilters: IK,
|
|
33206
|
+
...I ? {
|
|
33207
|
+
pagination: I
|
|
33208
|
+
} : q && !I ? {} : {
|
|
33081
33209
|
pagination: {
|
|
33082
33210
|
pageIndex: 0,
|
|
33083
33211
|
pageSize: o.length
|
|
33084
33212
|
}
|
|
33085
33213
|
},
|
|
33086
|
-
rowSelection:
|
|
33087
|
-
cellSelection:
|
|
33088
|
-
|
|
33089
|
-
|
|
33090
|
-
|
|
33091
|
-
|
|
33092
|
-
|
|
33093
|
-
|
|
33214
|
+
rowSelection: w ?? {},
|
|
33215
|
+
cellSelection: E ?? [],
|
|
33216
|
+
columnVisibility: iq,
|
|
33217
|
+
cellStyling: O,
|
|
33218
|
+
columnPinning: nq,
|
|
33219
|
+
cellHoverTemplate: A,
|
|
33220
|
+
cellHoverTexts: M ?? {}
|
|
33221
|
+
}
|
|
33222
|
+
}), cq = (YK == null ? void 0 : YK(PANEL_TYPES.ROW_VIEWER)) ?? false, lq = !q && o.length > 100, uq = useScrollContainerHeight({
|
|
33094
33223
|
maxHeight: n,
|
|
33095
|
-
virtualize:
|
|
33096
|
-
}), [
|
|
33224
|
+
virtualize: lq
|
|
33225
|
+
}), [dq, fq] = import_react.useState(null), pq = import_react.useMemo(() => ({
|
|
33226
|
+
requestAddFilter: (e2) => {
|
|
33227
|
+
let t2 = sq.getColumn(e2.columnId);
|
|
33228
|
+
t2 && fq(buildEditorSnapshot(t2, {
|
|
33229
|
+
operator: e2.operator
|
|
33230
|
+
}));
|
|
33231
|
+
}
|
|
33232
|
+
}), [
|
|
33233
|
+
sq
|
|
33234
|
+
]), mq = getUserColumnVisibilityCounts(sq), hq = mq.total > 0 && mq.visible === 0;
|
|
33097
33235
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33098
|
-
value:
|
|
33099
|
-
requestAddFilter: (e2) => {
|
|
33100
|
-
let t2 = WK.getColumn(e2.columnId);
|
|
33101
|
-
t2 && YK(buildEditorSnapshot(t2, {
|
|
33102
|
-
operator: e2.operator
|
|
33103
|
-
}));
|
|
33104
|
-
}
|
|
33105
|
-
}), [
|
|
33106
|
-
WK
|
|
33107
|
-
]),
|
|
33236
|
+
value: pq,
|
|
33108
33237
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33109
33238
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33110
33239
|
children: [
|
|
33111
33240
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33112
|
-
filters:
|
|
33113
|
-
table:
|
|
33114
|
-
calculateTopKRows:
|
|
33115
|
-
addFilterSnapshot:
|
|
33116
|
-
onAddFilterSnapshotChange:
|
|
33241
|
+
filters: IK,
|
|
33242
|
+
table: sq,
|
|
33243
|
+
calculateTopKRows: RK,
|
|
33244
|
+
addFilterSnapshot: dq,
|
|
33245
|
+
onAddFilterSnapshotChange: fq
|
|
33117
33246
|
}),
|
|
33118
33247
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33119
33248
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -33121,34 +33250,48 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33121
33250
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33122
33251
|
children: [
|
|
33123
33252
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33124
|
-
enableSearch:
|
|
33125
|
-
searchQuery:
|
|
33126
|
-
onSearchQueryChange:
|
|
33127
|
-
reloading:
|
|
33128
|
-
showChartBuilder:
|
|
33129
|
-
isChartBuilderOpen:
|
|
33130
|
-
toggleDisplayHeader:
|
|
33131
|
-
showTableExplorer:
|
|
33132
|
-
togglePanel:
|
|
33133
|
-
isAnyPanelOpen:
|
|
33134
|
-
downloadAs:
|
|
33135
|
-
sizeBytes:
|
|
33253
|
+
enableSearch: MK,
|
|
33254
|
+
searchQuery: NK,
|
|
33255
|
+
onSearchQueryChange: PK,
|
|
33256
|
+
reloading: zK,
|
|
33257
|
+
showChartBuilder: WK,
|
|
33258
|
+
isChartBuilderOpen: GK,
|
|
33259
|
+
toggleDisplayHeader: UK,
|
|
33260
|
+
showTableExplorer: qK,
|
|
33261
|
+
togglePanel: JK,
|
|
33262
|
+
isAnyPanelOpen: XK,
|
|
33263
|
+
downloadAs: U,
|
|
33264
|
+
sizeBytes: _
|
|
33265
|
+
}),
|
|
33266
|
+
hq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33267
|
+
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33268
|
+
children: [
|
|
33269
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
33270
|
+
children: "All columns are hidden."
|
|
33271
|
+
}),
|
|
33272
|
+
(0, import_jsx_runtime.jsx)(Button, {
|
|
33273
|
+
variant: "link",
|
|
33274
|
+
size: "xs",
|
|
33275
|
+
onClick: () => sq.resetColumnVisibility(true),
|
|
33276
|
+
children: "Unhide all"
|
|
33277
|
+
})
|
|
33278
|
+
]
|
|
33136
33279
|
}),
|
|
33137
33280
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33138
33281
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33139
|
-
ref:
|
|
33282
|
+
ref: uq,
|
|
33140
33283
|
children: [
|
|
33141
|
-
|
|
33284
|
+
$K && (0, import_jsx_runtime.jsx)("thead", {
|
|
33142
33285
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33143
33286
|
}),
|
|
33144
|
-
renderTableHeader(
|
|
33287
|
+
renderTableHeader(sq, lq || !!n),
|
|
33145
33288
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33146
|
-
table:
|
|
33289
|
+
table: sq,
|
|
33147
33290
|
columns: i,
|
|
33148
|
-
rowViewerPanelOpen:
|
|
33149
|
-
getRowIndex:
|
|
33150
|
-
viewedRowIdx:
|
|
33151
|
-
virtualize:
|
|
33291
|
+
rowViewerPanelOpen: cq,
|
|
33292
|
+
getRowIndex: oq,
|
|
33293
|
+
viewedRowIdx: ZK,
|
|
33294
|
+
virtualize: lq
|
|
33152
33295
|
})
|
|
33153
33296
|
]
|
|
33154
33297
|
}),
|
|
@@ -33156,13 +33299,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33156
33299
|
part: "table-footer",
|
|
33157
33300
|
className: "pt-1.5 pb-0.5 border-t border-border",
|
|
33158
33301
|
totalColumns: d,
|
|
33159
|
-
pagination:
|
|
33302
|
+
pagination: q,
|
|
33160
33303
|
selection: c,
|
|
33161
|
-
onRowSelectionChange:
|
|
33162
|
-
table:
|
|
33163
|
-
getRowIds:
|
|
33164
|
-
showPageSizeSelector:
|
|
33165
|
-
tableLoading:
|
|
33304
|
+
onRowSelectionChange: J,
|
|
33305
|
+
table: sq,
|
|
33306
|
+
getRowIds: $,
|
|
33307
|
+
showPageSizeSelector: KK,
|
|
33308
|
+
tableLoading: zK,
|
|
33309
|
+
togglePanel: JK
|
|
33166
33310
|
})
|
|
33167
33311
|
]
|
|
33168
33312
|
})
|
|
@@ -33230,12 +33374,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33230
33374
|
var import_compiler_runtime$6 = require_compiler_runtime(), KEY = "item";
|
|
33231
33375
|
const MarimoTracebackOutput = (e) => {
|
|
33232
33376
|
var _a2;
|
|
33233
|
-
let t = (0, import_compiler_runtime$6.c)(
|
|
33377
|
+
let t = (0, import_compiler_runtime$6.c)(49), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
|
|
33234
33378
|
t[0] === i ? s = t[1] : (s = renderHTML({
|
|
33235
33379
|
html: i,
|
|
33236
33380
|
additionalReplacements: [
|
|
33237
33381
|
replaceTracebackFilenames,
|
|
33238
|
-
replaceTracebackPrefix
|
|
33382
|
+
replaceTracebackPrefix,
|
|
33383
|
+
replaceMangledLocal
|
|
33239
33384
|
]
|
|
33240
33385
|
}), t[0] = i, t[1] = s);
|
|
33241
33386
|
let c = s, [d, f] = (0, import_react.useState)(true), _ = lastLine(i), v = useAtomValue(aiEnabledAtom), y;
|
|
@@ -33251,69 +33396,73 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33251
33396
|
${_}`,
|
|
33252
33397
|
triggerImmediately: e2
|
|
33253
33398
|
});
|
|
33254
|
-
}, [q, J] = _.split(":", 2),
|
|
33255
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33256
|
-
let
|
|
33257
|
-
t[11] ===
|
|
33258
|
-
let
|
|
33259
|
-
t[13] ===
|
|
33260
|
-
className:
|
|
33261
|
-
}), t[13] =
|
|
33262
|
-
let
|
|
33263
|
-
t[15] ===
|
|
33399
|
+
}, [q, J] = _.split(":", 2), $ = J ? splitMangledLocals(J) : [], NK = d ? KEY : "", PK;
|
|
33400
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PK = () => f(_temp$3), t[10] = PK) : PK = t[10];
|
|
33401
|
+
let FK = d ? "rotate-180" : "rotate-0", IK;
|
|
33402
|
+
t[11] === FK ? IK = t[12] : (IK = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", FK), t[11] = FK, t[12] = IK);
|
|
33403
|
+
let LK;
|
|
33404
|
+
t[13] === IK ? LK = t[14] : (LK = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33405
|
+
className: IK
|
|
33406
|
+
}), t[13] = IK, t[14] = LK);
|
|
33407
|
+
let RK = q || "Error", zK;
|
|
33408
|
+
t[15] === RK ? zK = t[16] : (zK = (0, import_jsx_runtime.jsxs)("span", {
|
|
33264
33409
|
className: "text-destructive",
|
|
33265
33410
|
children: [
|
|
33266
|
-
|
|
33411
|
+
RK,
|
|
33267
33412
|
":"
|
|
33268
33413
|
]
|
|
33269
|
-
}), t[15] =
|
|
33270
|
-
let
|
|
33271
|
-
t[17]
|
|
33414
|
+
}), t[15] = RK, t[16] = zK);
|
|
33415
|
+
let VK;
|
|
33416
|
+
t[17] === $ ? VK = t[18] : (VK = (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
33417
|
+
segments: $
|
|
33418
|
+
}), t[17] = $, t[18] = VK);
|
|
33419
|
+
let UK;
|
|
33420
|
+
t[19] !== zK || t[20] !== VK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33272
33421
|
className: "text-sm inline font-mono",
|
|
33273
33422
|
children: [
|
|
33274
|
-
|
|
33423
|
+
zK,
|
|
33275
33424
|
" ",
|
|
33276
|
-
|
|
33425
|
+
VK
|
|
33277
33426
|
]
|
|
33278
|
-
}), t[
|
|
33279
|
-
let
|
|
33280
|
-
t[
|
|
33427
|
+
}), t[19] = zK, t[20] = VK, t[21] = UK) : UK = t[21];
|
|
33428
|
+
let WK;
|
|
33429
|
+
t[22] !== UK || t[23] !== LK ? (WK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33281
33430
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
33282
|
-
onClick:
|
|
33431
|
+
onClick: PK,
|
|
33283
33432
|
children: [
|
|
33284
|
-
|
|
33285
|
-
|
|
33433
|
+
LK,
|
|
33434
|
+
UK
|
|
33286
33435
|
]
|
|
33287
|
-
}), t[
|
|
33288
|
-
let
|
|
33289
|
-
t[
|
|
33436
|
+
}), t[22] = UK, t[23] = LK, t[24] = WK) : WK = t[24];
|
|
33437
|
+
let GK;
|
|
33438
|
+
t[25] === c ? GK = t[26] : (GK = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
33290
33439
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
33291
33440
|
children: c
|
|
33292
|
-
}), t[
|
|
33293
|
-
let
|
|
33294
|
-
t[
|
|
33441
|
+
}), t[25] = c, t[26] = GK);
|
|
33442
|
+
let KK;
|
|
33443
|
+
t[27] !== WK || t[28] !== GK ? (KK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
33295
33444
|
value: KEY,
|
|
33296
33445
|
className: "border-none",
|
|
33297
33446
|
children: [
|
|
33298
|
-
|
|
33299
|
-
|
|
33447
|
+
WK,
|
|
33448
|
+
GK
|
|
33300
33449
|
]
|
|
33301
|
-
}), t[
|
|
33302
|
-
let
|
|
33303
|
-
t[
|
|
33450
|
+
}), t[27] = WK, t[28] = GK, t[29] = KK) : KK = t[29];
|
|
33451
|
+
let JK;
|
|
33452
|
+
t[30] !== KK || t[31] !== NK ? (JK = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
33304
33453
|
type: "single",
|
|
33305
33454
|
collapsible: true,
|
|
33306
|
-
value:
|
|
33307
|
-
children:
|
|
33308
|
-
}), t[
|
|
33309
|
-
let
|
|
33310
|
-
t[
|
|
33455
|
+
value: NK,
|
|
33456
|
+
children: KK
|
|
33457
|
+
}), t[30] = KK, t[31] = NK, t[32] = JK) : JK = t[32];
|
|
33458
|
+
let YK;
|
|
33459
|
+
t[33] !== K || t[34] !== I ? (YK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33311
33460
|
tooltip: "Fix with AI",
|
|
33312
33461
|
openPrompt: () => K(false),
|
|
33313
33462
|
applyAutofix: () => K(true)
|
|
33314
|
-
}), t[
|
|
33315
|
-
let
|
|
33316
|
-
t[
|
|
33463
|
+
}), t[33] = K, t[34] = I, t[35] = YK) : YK = t[35];
|
|
33464
|
+
let XK;
|
|
33465
|
+
t[36] !== A || t[37] !== w ? (XK = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33317
33466
|
content: "Attach pdb to the exception point.",
|
|
33318
33467
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33319
33468
|
size: "xs",
|
|
@@ -33330,9 +33479,9 @@ ${_}`,
|
|
|
33330
33479
|
"Launch debugger"
|
|
33331
33480
|
]
|
|
33332
33481
|
})
|
|
33333
|
-
}), t[
|
|
33334
|
-
let
|
|
33335
|
-
t[
|
|
33482
|
+
}), t[36] = A, t[37] = w, t[38] = XK) : XK = t[38];
|
|
33483
|
+
let ZK;
|
|
33484
|
+
t[39] !== _ || t[40] !== i ? (ZK = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33336
33485
|
children: [
|
|
33337
33486
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33338
33487
|
asChild: true,
|
|
@@ -33400,24 +33549,24 @@ ${_}`,
|
|
|
33400
33549
|
]
|
|
33401
33550
|
})
|
|
33402
33551
|
]
|
|
33403
|
-
}), t[
|
|
33404
|
-
let
|
|
33405
|
-
t[
|
|
33552
|
+
}), t[39] = _, t[40] = i, t[41] = ZK) : ZK = t[41];
|
|
33553
|
+
let QK;
|
|
33554
|
+
t[42] !== YK || t[43] !== XK || t[44] !== ZK ? (QK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33406
33555
|
className: "flex gap-2",
|
|
33407
33556
|
children: [
|
|
33408
|
-
|
|
33409
|
-
|
|
33410
|
-
|
|
33557
|
+
YK,
|
|
33558
|
+
XK,
|
|
33559
|
+
ZK
|
|
33411
33560
|
]
|
|
33412
|
-
}), t[
|
|
33413
|
-
let
|
|
33414
|
-
return t[
|
|
33561
|
+
}), t[42] = YK, t[43] = XK, t[44] = ZK, t[45] = QK) : QK = t[45];
|
|
33562
|
+
let $K;
|
|
33563
|
+
return t[46] !== JK || t[47] !== QK ? ($K = (0, import_jsx_runtime.jsxs)("div", {
|
|
33415
33564
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33416
33565
|
children: [
|
|
33417
|
-
|
|
33418
|
-
|
|
33566
|
+
JK,
|
|
33567
|
+
QK
|
|
33419
33568
|
]
|
|
33420
|
-
}), t[
|
|
33569
|
+
}), t[46] = JK, t[47] = QK, t[48] = $K) : $K = t[48], $K;
|
|
33421
33570
|
};
|
|
33422
33571
|
function lastLine(e) {
|
|
33423
33572
|
var _a2, _b;
|
|
@@ -33472,6 +33621,10 @@ ${_}`,
|
|
|
33472
33621
|
]
|
|
33473
33622
|
})
|
|
33474
33623
|
});
|
|
33624
|
+
}, replaceMangledLocal = (e) => {
|
|
33625
|
+
if (!(!(e instanceof import_lib.Text) || !e.nodeValue) && containsMangledLocal(e.nodeValue)) return (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
33626
|
+
segments: splitMangledLocals(e.nodeValue)
|
|
33627
|
+
});
|
|
33475
33628
|
}, replaceTracebackPrefix = (e) => {
|
|
33476
33629
|
var _a2;
|
|
33477
33630
|
if (e instanceof import_lib.Text && ((_a2 = e.nodeValue) == null ? void 0 : _a2.includes("File")) && e.next instanceof import_lib.Element && elementContainsMarimoCellFile(e.next)) return (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
@@ -34803,7 +34956,7 @@ ${_}`,
|
|
|
34803
34956
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34804
34957
|
}
|
|
34805
34958
|
}
|
|
34806
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
34959
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev6");
|
|
34807
34960
|
showCodeInRunModeAtom = atom(true);
|
|
34808
34961
|
atom(null);
|
|
34809
34962
|
var import_compiler_runtime = require_compiler_runtime();
|