@marimo-team/islands 0.23.9-dev6 → 0.23.9-dev8
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-DILs4Gug.js → code-visibility-SqsoLwxQ.js} +751 -748
- package/dist/main.js +549 -534
- package/dist/{reveal-component-Pq7C0LSU.js → reveal-component-v4zHgynl.js} +5 -5
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +7 -1
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +17 -6
- package/src/plugins/impl/DataTablePlugin.tsx +42 -11
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +1 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +8 -6
- package/src/stories/dataframe.stories.tsx +1 -0
|
@@ -35,7 +35,7 @@ import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BWLPpjKK.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-C4JTXTIh.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-C008zUPi.js";
|
|
38
|
-
let
|
|
38
|
+
let TableHead, Command, ChartLoadingState, contextAwarePanelType, GripHorizontal, prettifyRowColumnCount, dateToLocalISOTime, DateRangePicker, TabsTrigger, DatePicker, TabsList, CommandSeparator, HtmlOutput, Panel, Download, SlotNames, EyeOff, ContextAwarePanelItem, EmotionCacheProvider, Fill, ChevronsRight, PanelGroup, Code, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55, CommandInput, useOverflowDetection, CommandItem, RenderTextWithLinks, Combobox, ChartErrorState, CommandList, Kbd, TableCell, ArrowDownWideNarrow, contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, downloadSizeLimitAtom, dateToLocalISODateTime, useInternalStateWithSync, TabsContent, slotsController, Expand, isCellAwareAtom, Funnel, Toggle, Ellipsis, Table, ChevronsDownUp, Provider$1, ChevronsLeft, TableBody, ChevronLeft, downloadBlob, toFieldTypes, DEFAULT_SLIDE_TYPE, renderCellValue, Progress, Maps, Slide, DelayMount, JsonOutput, getPageIndexForRow, TableHeader, OutputArea, loadTableAndRawData, ADD_PRINTING_CLASS, TOO_MANY_ROWS, InstallPackageButton, SELECT_COLUMN_ID, DEFAULT_DECK_TRANSITION, inferFieldTypes, CommandEmpty, LazyVegaEmbed, ComboboxItem, ChartInfoState, RadioGroup, useIntersectionObserver, DataTable, INDEX_COLUMN_NAME, marimoVersionAtom, NAMELESS_COLUMN_PREFIX, SLIDE_TYPE_OPTIONS_BY_VALUE, ColumnChartContext, OutputRenderer, loadTableData, PanelResizeHandle, ChevronsUpDown, showCodeInRunModeAtom, generateColumns, SlideSidebar, ColumnChartSpecModel, useNotebookCodeAvailable, TableRow, RadioGroupItem, usePrevious, downloadByURL, getMimeValues, prettifyRowCount, Tabs, Filenames, dateToLocalISODate, downloadHTMLAsImage, isNullishFilter, contextAwarePanelOwner, TextWrap;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -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, $ = parseInt(h.borderRightWidth, 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, jK = c.top - E, MK = c.bottom + O, NK = c.left - A, PK = c.right + M, FK = e === _ ? 0 : Q + $, IK = e === _ ? 0 : q + J, LK = e.offsetWidth - e.clientWidth - FK, RK = e.offsetHeight - e.clientHeight - IK, zK = v + q + I, BK = y - J - z - RK, VK = S + Q + U, HK = w - $ - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? VK += LK : HK -= LK;
|
|
1907
|
+
let UK = jK < zK || MK > BK, WK = NK < VK || PK > HK;
|
|
1908
|
+
if (UK && i === "start") o += jK - zK;
|
|
1909
|
+
else if (UK && i === "center") o += (jK + MK) / 2 - (zK + BK) / 2;
|
|
1910
|
+
else if (UK && i === "end") o += MK - BK;
|
|
1911
|
+
else if (UK && i === "nearest") {
|
|
1912
|
+
let e2 = jK - zK, t2 = MK - BK;
|
|
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 (WK && a === "start") s += NK - VK;
|
|
1916
|
+
else if (WK && a === "center") s += (NK + PK) / 2 - (VK + HK) / 2;
|
|
1917
|
+
else if (WK && a === "end") s += PK - HK;
|
|
1918
|
+
else if (WK && a === "nearest") {
|
|
1919
|
+
let e2 = NK - VK, t2 = PK - HK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5026,23 +5026,23 @@ Defaulting to \`null\`.`;
|
|
|
5026
5026
|
}
|
|
5027
5027
|
let $ = "bottom";
|
|
5028
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
|
|
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" ?
|
|
5029
|
+
let jK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += jK;
|
|
5031
|
+
let MK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5032
|
+
y && y < MK && (MK = y), n.height = Math.min(n.height, MK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), jK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += jK;
|
|
5033
|
+
let NK = {}, PK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], FK = PK + 0.5 * t[z], IK = S / 2 + w, LK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), RK = n[z] - LK - S / 2 - w;
|
|
5034
|
+
NK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(FK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), IK, RK), { placement: U, crossPlacement: K } = A, S ? PK = NK[I] : K === "right" ? PK += t[z] : K === "center" && (PK += t[z] / 2);
|
|
5035
|
+
let zK = U === "left" || U === "top" ? n[M] : 0, BK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? PK : zK,
|
|
5037
|
+
y: U === "left" || U === "right" ? PK : zK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: MK,
|
|
5042
|
+
arrowOffsetLeft: NK.left,
|
|
5043
|
+
arrowOffsetTop: NK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: BK
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let jK = $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 MK = $bdb11010cef70236$export$f680877a34711e37(), NK = !t.isDisabled && !t.isReadOnly && e.isEditable, PK = e.type === "literal" ? "" : s.of(e.type), FK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${PK}${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 IK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
IK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (IK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, FK, {
|
|
6929
|
+
id: MK,
|
|
6930
|
+
...jK,
|
|
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: NK,
|
|
6936
|
+
suppressContentEditableWarning: NK,
|
|
6937
|
+
spellCheck: NK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: NK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: NK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !NK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: IK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -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 jK = (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
|
+
]), MK = e.isInvalid || e.validationState === "invalid" || jK, NK = MK ? "invalid" : null, PK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -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: NK,
|
|
10210
|
+
isValueInvalid: MK,
|
|
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(PK);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(PK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, PK, i, s, c), PK, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract(PK);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(PK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, PK, i, s, c), PK, 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));
|
|
@@ -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
|
+
}, [$, jK] = (0, import_react.useState)(false), { isDateUnavailable: MK } = e, NK = (0, import_react.useMemo)(() => !h || v ? false : MK && (MK(h.start) || MK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
MK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), PK = e.isInvalid || e.validationState === "invalid" || NK, FK = PK ? "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: FK,
|
|
10392
|
+
isValueInvalid: PK,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10405,7 +10405,7 @@ Defaulting to \`null\`.`;
|
|
|
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
10407
|
isDragging: $,
|
|
10408
|
-
setDragging:
|
|
10408
|
+
setDragging: jK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11592,7 +11592,7 @@ Defaulting to \`null\`.`;
|
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), jK = (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
|
+
]), [MK, NK] = (0, import_react.useState)(M), [PK, FK] = (0, import_react.useState)(S), [IK, LK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== MK || w !== IK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, PK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), NK(M), FK(S), LK(w), z(I));
|
|
11615
|
+
let RK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(jK)) 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(
|
|
11619
|
+
if (t2.isComplete(jK)) {
|
|
11620
11620
|
let e2 = t2.toValue(M ?? $);
|
|
11621
|
-
if (t2.validate(e2,
|
|
11621
|
+
if (t2.validate(e2, jK)) {
|
|
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
|
+
}, zK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
11635
|
$
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11636
|
+
]), BK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(zK, I, J, Q, S, t, _), [
|
|
11637
|
+
zK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), VK = (e2, t2) => {
|
|
11645
|
+
RK(I.cycle(e2, t2, $, jK));
|
|
11646
|
+
}, HK = (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
|
+
]), UK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: HK
|
|
11656
|
+
}), WK = UK.displayValidation.isInvalid, GK = e.validationState || (WK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...UK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: zK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: RK,
|
|
11664
|
+
segments: BK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: GK,
|
|
11667
|
+
isInvalid: WK,
|
|
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
|
+
VK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
VK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
VK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
VK(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
|
+
RK(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
|
+
RK(I.set(e2, t2, $));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
RK(I.set(e2, t2, $));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(jK)) {
|
|
11698
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)), RK(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(zK) : "";
|
|
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
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11827
|
+
}), $ = Q.displayValidation.isInvalid, jK = e.validationState || ($ ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,7 +11870,7 @@ 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:
|
|
11873
|
+
validationState: jK,
|
|
11874
11874
|
isInvalid: $,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -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), $ = !!Q && !I,
|
|
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, jK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), MK = jK[t], NK = MK || jK, { colorSchemes: PK = _, components: FK = v, cssVarPrefix: IK } = NK, LK = Object.keys(PK).filter((e3) => !!PK[e3]).join(","), RK = import_react.useMemo(() => LK.split(","), [
|
|
15748
|
+
LK
|
|
15749
|
+
]), zK = typeof s == "string" ? s : s.light, BK = typeof s == "string" ? s : s.dark, { mode: VK, setMode: HK, systemMode: UK, lightColorScheme: WK, darkColorScheme: GK, colorScheme: KK, setColorScheme: qK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: RK,
|
|
15751
|
+
defaultLightColorScheme: zK,
|
|
15752
|
+
defaultDarkColorScheme: BK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: PK[zK] && PK[BK] ? U : ((_b = (_a2 = PK[NK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = NK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
$ && (
|
|
15761
|
-
let
|
|
15759
|
+
}), JK = VK, YK = KK;
|
|
15760
|
+
$ && (JK = Q.mode, YK = Q.colorScheme);
|
|
15761
|
+
let XK = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15766
|
-
colorSchemes:
|
|
15767
|
-
cssVarPrefix:
|
|
15763
|
+
let e3 = YK || NK.defaultColorScheme, t2 = ((_a3 = NK.generateThemeVars) == null ? void 0 : _a3.call(NK)) || NK.vars, n2 = {
|
|
15764
|
+
...NK,
|
|
15765
|
+
components: FK,
|
|
15766
|
+
colorSchemes: PK,
|
|
15767
|
+
cssVarPrefix: IK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = PK[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
|
-
IK,
|
|
15781
|
+
NK,
|
|
15782
|
+
YK,
|
|
15784
15783
|
FK,
|
|
15785
|
-
|
|
15786
|
-
|
|
15784
|
+
PK,
|
|
15785
|
+
IK
|
|
15786
|
+
]), ZK = NK.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 (YK && M && ZK && ZK !== "media") {
|
|
15789
|
+
let e3 = ZK, t2 = ZK;
|
|
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(...RK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", YK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", YK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || RK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(YK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, YK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
|
|
15803
|
-
|
|
15802
|
+
YK,
|
|
15803
|
+
ZK,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
RK
|
|
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
|
+
YK,
|
|
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 QK = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: RK,
|
|
15826
|
+
colorScheme: YK,
|
|
15827
|
+
darkColorScheme: GK,
|
|
15828
|
+
lightColorScheme: WK,
|
|
15829
|
+
mode: JK,
|
|
15830
|
+
setColorScheme: qK,
|
|
15831
|
+
setMode: HK,
|
|
15832
|
+
systemMode: UK
|
|
15833
15833
|
}), [
|
|
15834
|
-
|
|
15835
|
-
XK,
|
|
15836
|
-
KK,
|
|
15837
|
-
GK,
|
|
15834
|
+
RK,
|
|
15838
15835
|
YK,
|
|
15836
|
+
GK,
|
|
15837
|
+
WK,
|
|
15839
15838
|
JK,
|
|
15839
|
+
qK,
|
|
15840
|
+
HK,
|
|
15840
15841
|
UK,
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
let tq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15842
|
+
XK.colorSchemeSelector
|
|
15843
|
+
]), $K = true;
|
|
15844
|
+
(z || NK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === IK) && ($K = false);
|
|
15845
|
+
let eq = (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: MK ? t : void 0,
|
|
15849
|
+
theme: XK,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
$K && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = XK.generateStyleSheets) == null ? void 0 : _d.call(XK)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return $ ?
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return $ ? eq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: QK,
|
|
15859
|
+
children: eq
|
|
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: $, onFocus:
|
|
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: jK, onKeyDown: MK, onKeyUp: NK, placeholder: PK, readOnly: FK, renderSuffix: IK, rows: LK, size: RK, slotProps: zK = {}, slots: BK = {}, startAdornment: VK, type: HK = "text", value: UK, ...WK } = n, GK = A.value == null ? UK : A.value, { current: KK } = import_react.useRef(GK != null), qK = import_react.useRef(), JK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), YK = useForkRef_default(qK, M, A.ref, JK), [XK, ZK] = import_react.useState(false), QK = useFormControl(), $K = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: QK,
|
|
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
|
+
$K.focused = QK ? QK.focused : XK, import_react.useEffect(() => {
|
|
17374
|
+
!QK && _ && XK && (ZK(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
QK,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
XK,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let eq = QK && QK.onFilled, tq = QK && QK.onEmpty, nq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? eq && eq() : tq && tq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
eq,
|
|
17385
|
+
tq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
KK && nq({
|
|
17389
|
+
value: GK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17392
|
+
GK,
|
|
17393
|
+
nq,
|
|
17394
|
+
KK
|
|
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 rq = (e2) => {
|
|
17397
|
+
jK && jK(e2), A.onFocus && A.onFocus(e2), QK && QK.onFocus ? QK.onFocus(e2) : ZK(true);
|
|
17398
|
+
}, iq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), QK && QK.onBlur ? QK.onBlur(e2) : ZK(false);
|
|
17400
|
+
}, aq = (e2, ...t2) => {
|
|
17401
|
+
if (!KK) {
|
|
17402
|
+
let t3 = e2.target || qK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
nq({
|
|
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
|
+
nq(qK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let oq = (e2) => {
|
|
17414
|
+
qK.current && e2.currentTarget === e2.target && qK.current.focus(), $ && $(e2);
|
|
17415
|
+
}, sq = O, cq = A;
|
|
17416
|
+
K && sq === "input" && (cq = LK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: LK,
|
|
17419
|
+
maxRows: LK,
|
|
17420
|
+
...cq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...cq
|
|
17426
|
+
}, sq = TextareaAutosize_default);
|
|
17427
|
+
let lq = (e2) => {
|
|
17428
|
+
nq(e2.animationName === "mui-auto-fill-cancel" ? qK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
QK && QK.setAdornedStart(!!VK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
QK,
|
|
17436
|
+
VK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let uq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: $K.color || "primary",
|
|
17441
|
+
disabled: $K.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: $K.error,
|
|
17444
|
+
focused: $K.focused,
|
|
17445
|
+
formControl: QK,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: $K.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: $K.size,
|
|
17450
|
+
startAdornment: VK,
|
|
17451
|
+
type: HK
|
|
17452
|
+
}, dq = useUtilityClasses(uq), fq = BK.root || d.Root || InputBaseRoot, pq = zK.root || f.root || {}, mq = BK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return cq = {
|
|
17454
|
+
...cq,
|
|
17455
|
+
...zK.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)(fq, {
|
|
17460
|
+
...pq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: oq,
|
|
17463
|
+
...WK,
|
|
17464
|
+
...!isHostComponent_default(fq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...uq,
|
|
17467
|
+
...pq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(dq.root, pq.className, s, FK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
VK,
|
|
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)(mq, {
|
|
17476
|
+
"aria-invalid": $K.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: $K.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: lq,
|
|
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: PK,
|
|
17486
|
+
readOnly: FK,
|
|
17487
|
+
required: $K.required,
|
|
17488
|
+
rows: LK,
|
|
17489
|
+
value: GK,
|
|
17490
|
+
onKeyDown: MK,
|
|
17491
|
+
onKeyUp: NK,
|
|
17492
|
+
type: HK,
|
|
17493
|
+
...cq,
|
|
17494
|
+
...!isHostComponent_default(mq) && {
|
|
17495
|
+
as: sq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...uq,
|
|
17498
|
+
...cq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: YK,
|
|
17502
|
+
className: clsx_default(dq.input, cq.className, FK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: iq,
|
|
17504
|
+
onChange: aq,
|
|
17505
|
+
onFocus: rq
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
IK ? IK({
|
|
17510
|
+
...$K,
|
|
17511
|
+
startAdornment: VK
|
|
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), $ = useJsonViewerStore((e2) => e2.onChange),
|
|
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), jK = useTextColor(), MK = useJsonViewerStore((e2) => e2.colorspace.base0C), NK = useJsonViewerStore((e2) => e2.colorspace.base0A), PK = useJsonViewerStore((e2) => e2.displayComma), FK = useJsonViewerStore((e2) => e2.quotesOnKeys), IK = useJsonViewerStore((e2) => e2.rootName), LK = U === t, RK = Number.isInteger(Number(A)), zK = useJsonViewerStore((e2) => e2.enableAdd), BK = useJsonViewerStore((e2) => e2.onAdd), VK = (0, import_react.useMemo)(() => !BK || a !== void 0 || zK === false || v === false ? false : typeof zK == "function" ? !!zK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
BK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
zK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), HK = useJsonViewerStore((e2) => e2.enableDelete), UK = useJsonViewerStore((e2) => e2.onDelete), WK = (0, import_react.useMemo)(() => !UK || a !== void 0 || LK || HK === false || v === false ? false : typeof HK == "function" ? !!HK(i, t) : HK, [
|
|
18595
|
+
UK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
LK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
HK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), GK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: KK, copied: qK } = useClipboard(), JK = useJsonViewerStore((e2) => e2.highlightUpdates), YK = (0, import_react.useMemo)(() => !JK || 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
|
+
JK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), XK = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
XK.current && YK && "animate" in XK.current && XK.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: NK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,22 +18617,22 @@ 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
|
+
NK,
|
|
18621
|
+
YK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let ZK = (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
|
+
]), QK = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), $K = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
18637
|
$(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
@@ -18643,14 +18643,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18643
18643
|
$,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), eq = (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: QK
|
|
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: () => $K(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
GK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
KK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: qK ? (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: ZK,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
VK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), BK == null ? void 0 : BK(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
|
+
WK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), UK == null ? void 0 : UK(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
|
-
JK,
|
|
18720
18719
|
qK,
|
|
18720
|
+
KK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
KK,
|
|
18724
|
-
HK,
|
|
18725
18723
|
GK,
|
|
18724
|
+
VK,
|
|
18725
|
+
WK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
|
|
18730
|
-
|
|
18729
|
+
BK,
|
|
18730
|
+
UK,
|
|
18731
|
+
ZK,
|
|
18731
18732
|
QK,
|
|
18732
|
-
$K
|
|
18733
|
-
|
|
18734
|
-
]), nq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18733
|
+
$K
|
|
18734
|
+
]), tq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), nq = !tq && !!(c && d), rq = useJsonViewerStore((e2) => e2.keyRenderer), iq = (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: jK,
|
|
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() || tq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
tq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
nq ? 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: XK,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: LK && O === 0 ? IK === false ? null : FK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
IK,
|
|
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: IK
|
|
18808
|
+
}) : rq.when(iq) ? (0, import_jsx_runtime.jsx)(rq, {
|
|
18809
|
+
...iq
|
|
18810
|
+
}) : a === void 0 && (RK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: MK,
|
|
18814
|
+
userSelect: RK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : FK ? (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
|
+
LK ? IK !== 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: RK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...iq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && nq && K && eq
|
|
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: QK,
|
|
18855
|
+
commitEditing: $K
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...iq
|
|
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
|
+
...iq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && PK && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && nq && !K && eq,
|
|
18870
|
+
I && !nq && eq,
|
|
18871
|
+
!I && J && eq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19773,11 +19773,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19773
19773
|
}
|
|
19774
19774
|
let _, v, y, S, w, E;
|
|
19775
19775
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== f || t[8] !== c) {
|
|
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),
|
|
19777
|
-
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), jK = n.filter(_temp17), MK;
|
|
19777
|
+
t[15] === s ? MK = t[16] : (MK = () => {
|
|
19778
19778
|
s.openApplication("scratchpad");
|
|
19779
|
-
}, t[15] = s, t[16] =
|
|
19780
|
-
let
|
|
19779
|
+
}, t[15] = s, t[16] = MK);
|
|
19780
|
+
let NK = MK, PK = () => {
|
|
19781
19781
|
let t2 = [];
|
|
19782
19782
|
if (Q.length > 0 || $.length > 0) {
|
|
19783
19783
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
@@ -19977,7 +19977,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19977
19977
|
size: "xs",
|
|
19978
19978
|
variant: "link",
|
|
19979
19979
|
className: "my-2 font-normal mx-0 px-0",
|
|
19980
|
-
onClick:
|
|
19980
|
+
onClick: NK,
|
|
19981
19981
|
children: [
|
|
19982
19982
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
19983
19983
|
className: "h-3"
|
|
@@ -20092,23 +20092,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20092
20092
|
cellId: i
|
|
20093
20093
|
})
|
|
20094
20094
|
]
|
|
20095
|
-
}, "ancestor-stopped")),
|
|
20095
|
+
}, "ancestor-stopped")), jK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20096
20096
|
children: [
|
|
20097
|
-
|
|
20097
|
+
jK.map(_temp35),
|
|
20098
20098
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20099
|
-
errors:
|
|
20099
|
+
errors: jK,
|
|
20100
20100
|
cellId: i,
|
|
20101
20101
|
className: "mt-2.5"
|
|
20102
20102
|
})
|
|
20103
20103
|
]
|
|
20104
20104
|
}, "sql-errors")), t2;
|
|
20105
|
-
},
|
|
20106
|
-
t[17] !==
|
|
20107
|
-
className:
|
|
20105
|
+
}, FK = `font-code font-medium tracking-wide ${f}`, IK;
|
|
20106
|
+
t[17] !== FK || t[18] !== c ? (IK = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20107
|
+
className: FK,
|
|
20108
20108
|
children: c
|
|
20109
|
-
}), t[17] =
|
|
20110
|
-
let
|
|
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 =
|
|
20109
|
+
}), t[17] = FK, t[18] = c, t[19] = IK) : IK = t[19];
|
|
20110
|
+
let LK = IK;
|
|
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 = LK, v = "flex flex-col gap-8", y = PK(), 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;
|
|
20112
20112
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
20113
20113
|
let O;
|
|
20114
20114
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -26132,7 +26132,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26132
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 }) {
|
|
26133
26133
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26134
26134
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
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),
|
|
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), jK = (0, import_react.useRef)({
|
|
26136
26136
|
callbacks: {
|
|
26137
26137
|
onCollapse: f,
|
|
26138
26138
|
onExpand: h,
|
|
@@ -26152,12 +26152,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26152
26152
|
(0, import_react.useRef)({
|
|
26153
26153
|
didLogMissingDefaultSizeWarning: false
|
|
26154
26154
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26155
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26155
|
+
let { callbacks: e2, constraints: t2 } = jK.current, o2 = {
|
|
26156
26156
|
...t2
|
|
26157
26157
|
};
|
|
26158
|
-
|
|
26158
|
+
jK.current.id = $, jK.current.idIsFromProps = s !== void 0, jK.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(jK.current, o2);
|
|
26159
26159
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26160
|
-
let e2 =
|
|
26160
|
+
let e2 = jK.current;
|
|
26161
26161
|
return q(e2), () => {
|
|
26162
26162
|
Q(e2);
|
|
26163
26163
|
};
|
|
@@ -26168,25 +26168,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26168
26168
|
Q
|
|
26169
26169
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26170
26170
|
collapse: () => {
|
|
26171
|
-
O(
|
|
26171
|
+
O(jK.current);
|
|
26172
26172
|
},
|
|
26173
26173
|
expand: (e2) => {
|
|
26174
|
-
A(
|
|
26174
|
+
A(jK.current, e2);
|
|
26175
26175
|
},
|
|
26176
26176
|
getId() {
|
|
26177
26177
|
return $;
|
|
26178
26178
|
},
|
|
26179
26179
|
getSize() {
|
|
26180
|
-
return M(
|
|
26180
|
+
return M(jK.current);
|
|
26181
26181
|
},
|
|
26182
26182
|
isCollapsed() {
|
|
26183
|
-
return U(
|
|
26183
|
+
return U(jK.current);
|
|
26184
26184
|
},
|
|
26185
26185
|
isExpanded() {
|
|
26186
|
-
return !U(
|
|
26186
|
+
return !U(jK.current);
|
|
26187
26187
|
},
|
|
26188
26188
|
resize: (e2) => {
|
|
26189
|
-
J(
|
|
26189
|
+
J(jK.current, e2);
|
|
26190
26190
|
}
|
|
26191
26191
|
}), [
|
|
26192
26192
|
O,
|
|
@@ -26196,21 +26196,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26196
26196
|
$,
|
|
26197
26197
|
J
|
|
26198
26198
|
]);
|
|
26199
|
-
let
|
|
26199
|
+
let MK = I(jK.current, a);
|
|
26200
26200
|
return (0, import_react.createElement)(S, {
|
|
26201
26201
|
...w,
|
|
26202
26202
|
children: e,
|
|
26203
26203
|
className: t,
|
|
26204
26204
|
id: $,
|
|
26205
26205
|
style: {
|
|
26206
|
-
...
|
|
26206
|
+
...MK,
|
|
26207
26207
|
...y
|
|
26208
26208
|
},
|
|
26209
26209
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26210
26210
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26211
26211
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26212
26212
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26213
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26213
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + MK.flexGrow).toFixed(1)
|
|
26214
26214
|
});
|
|
26215
26215
|
}
|
|
26216
26216
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -26995,13 +26995,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26995
26995
|
}, [
|
|
26996
26996
|
S,
|
|
26997
26997
|
E
|
|
26998
|
-
]),
|
|
26998
|
+
]), jK = (0, import_react.useCallback)((e2) => {
|
|
26999
26999
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27000
27000
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27001
|
-
}, []),
|
|
27001
|
+
}, []), MK = (0, import_react.useCallback)((e2) => {
|
|
27002
27002
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27003
27003
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27004
|
-
}, []),
|
|
27004
|
+
}, []), NK = (0, import_react.useCallback)((e2) => {
|
|
27005
27005
|
let { panelDataArray: t2 } = K.current;
|
|
27006
27006
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27007
27007
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27033,7 +27033,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27033
27033
|
e2.layout = [];
|
|
27034
27034
|
};
|
|
27035
27035
|
}, []);
|
|
27036
|
-
let
|
|
27036
|
+
let PK = (0, import_react.useCallback)((e2) => {
|
|
27037
27037
|
let t2 = false, n2 = y.current;
|
|
27038
27038
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27039
27039
|
n3.preventDefault();
|
|
@@ -27051,7 +27051,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27051
27051
|
}), I2 = !compareLayouts(f2, A2);
|
|
27052
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));
|
|
27053
27053
|
};
|
|
27054
|
-
}, []),
|
|
27054
|
+
}, []), FK = (0, import_react.useCallback)((e2, t2) => {
|
|
27055
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);
|
|
27056
27056
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27057
27057
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27063,12 +27063,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27063
27063
|
trigger: "imperative-api"
|
|
27064
27064
|
});
|
|
27065
27065
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27066
|
-
}, []),
|
|
27066
|
+
}, []), IK = (0, import_react.useCallback)((e2, t2) => {
|
|
27067
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);
|
|
27068
|
-
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) || FK(e2, s2) : h2 < f2 ? FK(e2, f2) : h2 > d2 && FK(e2, d2));
|
|
27069
27069
|
}, [
|
|
27070
|
-
|
|
27071
|
-
]),
|
|
27070
|
+
FK
|
|
27071
|
+
]), LK = (0, import_react.useCallback)((e2, t2) => {
|
|
27072
27072
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27073
27073
|
if (!y.current) return;
|
|
27074
27074
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27080,14 +27080,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27080
27080
|
initialCursorPosition: o2,
|
|
27081
27081
|
initialLayout: i2
|
|
27082
27082
|
});
|
|
27083
|
-
}, []),
|
|
27083
|
+
}, []), RK = (0, import_react.useCallback)(() => {
|
|
27084
27084
|
w(null);
|
|
27085
|
-
}, []),
|
|
27085
|
+
}, []), zK = (0, import_react.useCallback)((e2) => {
|
|
27086
27086
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27087
27087
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27088
27088
|
}, [
|
|
27089
27089
|
A
|
|
27090
|
-
]),
|
|
27090
|
+
]), BK = (0, import_react.useMemo)(() => ({
|
|
27091
27091
|
collapsePanel: q,
|
|
27092
27092
|
direction: i,
|
|
27093
27093
|
dragState: S,
|
|
@@ -27095,15 +27095,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27095
27095
|
getPanelSize: Q,
|
|
27096
27096
|
getPanelStyle: $,
|
|
27097
27097
|
groupId: v,
|
|
27098
|
-
isPanelCollapsed:
|
|
27099
|
-
isPanelExpanded:
|
|
27100
|
-
reevaluatePanelConstraints:
|
|
27101
|
-
registerPanel:
|
|
27102
|
-
registerResizeHandle:
|
|
27103
|
-
resizePanel:
|
|
27104
|
-
startDragging:
|
|
27105
|
-
stopDragging:
|
|
27106
|
-
unregisterPanel:
|
|
27098
|
+
isPanelCollapsed: jK,
|
|
27099
|
+
isPanelExpanded: MK,
|
|
27100
|
+
reevaluatePanelConstraints: IK,
|
|
27101
|
+
registerPanel: NK,
|
|
27102
|
+
registerResizeHandle: PK,
|
|
27103
|
+
resizePanel: FK,
|
|
27104
|
+
startDragging: LK,
|
|
27105
|
+
stopDragging: RK,
|
|
27106
|
+
unregisterPanel: zK,
|
|
27107
27107
|
panelGroupElement: y.current
|
|
27108
27108
|
}), [
|
|
27109
27109
|
q,
|
|
@@ -27113,16 +27113,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27113
27113
|
Q,
|
|
27114
27114
|
$,
|
|
27115
27115
|
v,
|
|
27116
|
+
jK,
|
|
27116
27117
|
MK,
|
|
27118
|
+
IK,
|
|
27117
27119
|
NK,
|
|
27118
|
-
LK,
|
|
27119
27120
|
PK,
|
|
27120
27121
|
FK,
|
|
27121
|
-
|
|
27122
|
+
LK,
|
|
27122
27123
|
RK,
|
|
27123
|
-
zK
|
|
27124
|
-
|
|
27125
|
-
]), HK = {
|
|
27124
|
+
zK
|
|
27125
|
+
]), VK = {
|
|
27126
27126
|
display: "flex",
|
|
27127
27127
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27128
27128
|
height: "100%",
|
|
@@ -27130,7 +27130,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27130
27130
|
width: "100%"
|
|
27131
27131
|
};
|
|
27132
27132
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27133
|
-
value:
|
|
27133
|
+
value: BK
|
|
27134
27134
|
}, (0, import_react.createElement)(h, {
|
|
27135
27135
|
..._,
|
|
27136
27136
|
children: t,
|
|
@@ -27138,7 +27138,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27138
27138
|
id: o,
|
|
27139
27139
|
ref: y,
|
|
27140
27140
|
style: {
|
|
27141
|
-
...
|
|
27141
|
+
...VK,
|
|
27142
27142
|
...f
|
|
27143
27143
|
},
|
|
27144
27144
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27215,31 +27215,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27215
27215
|
});
|
|
27216
27216
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27217
27217
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
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"), [$,
|
|
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"), [$, jK] = (0, import_react.useState)(false), [MK, NK] = (0, import_react.useState)(null), PK = (0, import_react.useRef)({
|
|
27219
27219
|
state: J
|
|
27220
27220
|
});
|
|
27221
27221
|
useIsomorphicLayoutEffect$1(() => {
|
|
27222
|
-
|
|
27222
|
+
PK.current.state = J;
|
|
27223
27223
|
}), (0, import_react.useEffect)(() => {
|
|
27224
|
-
if (n)
|
|
27224
|
+
if (n) NK(null);
|
|
27225
27225
|
else {
|
|
27226
27226
|
let e2 = I(q);
|
|
27227
|
-
|
|
27227
|
+
NK(() => e2);
|
|
27228
27228
|
}
|
|
27229
27229
|
}, [
|
|
27230
27230
|
n,
|
|
27231
27231
|
q,
|
|
27232
27232
|
I
|
|
27233
27233
|
]);
|
|
27234
|
-
let
|
|
27234
|
+
let FK = (i == null ? void 0 : i.coarse) ?? 15, IK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27235
27235
|
(0, import_react.useEffect)(() => {
|
|
27236
|
-
if (n ||
|
|
27236
|
+
if (n || MK == null) return;
|
|
27237
27237
|
let e2 = w.current;
|
|
27238
27238
|
assert(e2, "Element ref not attached");
|
|
27239
27239
|
let t2 = false;
|
|
27240
27240
|
return registerResizeHandle(q, e2, A, {
|
|
27241
|
-
coarse:
|
|
27242
|
-
fine:
|
|
27241
|
+
coarse: FK,
|
|
27242
|
+
fine: IK
|
|
27243
27243
|
}, (e3, n2, i2) => {
|
|
27244
27244
|
if (!n2) {
|
|
27245
27245
|
Q("inactive");
|
|
@@ -27253,8 +27253,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27253
27253
|
break;
|
|
27254
27254
|
}
|
|
27255
27255
|
case "move": {
|
|
27256
|
-
let { state: e4 } =
|
|
27257
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27256
|
+
let { state: e4 } = PK.current;
|
|
27257
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), MK(i2);
|
|
27258
27258
|
break;
|
|
27259
27259
|
}
|
|
27260
27260
|
case "up": {
|
|
@@ -27266,22 +27266,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27266
27266
|
}
|
|
27267
27267
|
});
|
|
27268
27268
|
}, [
|
|
27269
|
-
|
|
27269
|
+
FK,
|
|
27270
27270
|
A,
|
|
27271
27271
|
n,
|
|
27272
|
-
|
|
27272
|
+
IK,
|
|
27273
27273
|
I,
|
|
27274
27274
|
q,
|
|
27275
|
-
|
|
27275
|
+
MK,
|
|
27276
27276
|
z,
|
|
27277
27277
|
U
|
|
27278
27278
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27279
27279
|
disabled: n,
|
|
27280
27280
|
handleId: q,
|
|
27281
|
-
resizeHandler:
|
|
27281
|
+
resizeHandler: MK,
|
|
27282
27282
|
panelGroupElement: K
|
|
27283
27283
|
});
|
|
27284
|
-
let
|
|
27284
|
+
let LK = {
|
|
27285
27285
|
touchAction: "none",
|
|
27286
27286
|
userSelect: "none"
|
|
27287
27287
|
};
|
|
@@ -27291,15 +27291,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27291
27291
|
className: t,
|
|
27292
27292
|
id: a,
|
|
27293
27293
|
onBlur: () => {
|
|
27294
|
-
|
|
27294
|
+
jK(false), o == null ? void 0 : o();
|
|
27295
27295
|
},
|
|
27296
27296
|
onFocus: () => {
|
|
27297
|
-
|
|
27297
|
+
jK(true), d == null ? void 0 : d();
|
|
27298
27298
|
},
|
|
27299
27299
|
ref: w,
|
|
27300
27300
|
role: "separator",
|
|
27301
27301
|
style: {
|
|
27302
|
-
...
|
|
27302
|
+
...LK,
|
|
27303
27303
|
..._
|
|
27304
27304
|
},
|
|
27305
27305
|
tabIndex: v,
|
|
@@ -27598,7 +27598,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27598
27598
|
}, [
|
|
27599
27599
|
h
|
|
27600
27600
|
]), k(() => {
|
|
27601
|
-
U(6,
|
|
27601
|
+
U(6, MK);
|
|
27602
27602
|
}, []);
|
|
27603
27603
|
let K = import_react.useMemo(() => ({
|
|
27604
27604
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27607,7 +27607,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27607
27607
|
var _a2;
|
|
27608
27608
|
var a2, o2, s2;
|
|
27609
27609
|
if (!Object.is(n.current[e2], t2)) {
|
|
27610
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27610
|
+
if (n.current[e2] = t2, e2 === "search") jK(), Q(), U(1, $);
|
|
27611
27611
|
else if (e2 === "value") {
|
|
27612
27612
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27613
27613
|
let e3 = document.getElementById(I);
|
|
@@ -27615,8 +27615,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27615
27615
|
}
|
|
27616
27616
|
if (U(7, () => {
|
|
27617
27617
|
var _a3;
|
|
27618
|
-
n.current.selectedItemId = (_a3 =
|
|
27619
|
-
}), i2 || U(5,
|
|
27618
|
+
n.current.selectedItemId = (_a3 = NK()) == null ? void 0 : _a3.id, K.emit();
|
|
27619
|
+
}), i2 || U(5, MK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27620
27620
|
let e3 = t2 ?? "";
|
|
27621
27621
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27622
27622
|
return;
|
|
@@ -27641,12 +27641,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27641
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([
|
|
27642
27642
|
e2
|
|
27643
27643
|
]))), U(3, () => {
|
|
27644
|
-
|
|
27644
|
+
jK(), Q(), n.current.value || $(), K.emit();
|
|
27645
27645
|
}), () => {
|
|
27646
27646
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27647
|
-
let t3 =
|
|
27647
|
+
let t3 = NK();
|
|
27648
27648
|
U(4, () => {
|
|
27649
|
-
|
|
27649
|
+
jK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
27650
27650
|
});
|
|
27651
27651
|
}),
|
|
27652
27652
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27679,7 +27679,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27679
27679
|
]);
|
|
27680
27680
|
});
|
|
27681
27681
|
let i2 = z.current;
|
|
27682
|
-
|
|
27682
|
+
PK().sort((t3, n2) => {
|
|
27683
27683
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27684
27684
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27685
27685
|
}).forEach((e3) => {
|
|
@@ -27693,10 +27693,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27693
27693
|
}
|
|
27694
27694
|
function $() {
|
|
27695
27695
|
var _a2;
|
|
27696
|
-
let e2 = (_a2 =
|
|
27696
|
+
let e2 = (_a2 = PK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27697
27697
|
K.setState("value", e2 || void 0);
|
|
27698
27698
|
}
|
|
27699
|
-
function
|
|
27699
|
+
function jK() {
|
|
27700
27700
|
var _a2, _b;
|
|
27701
27701
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27702
27702
|
n.current.filtered.count = i.current.size;
|
|
@@ -27714,43 +27714,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27714
27714
|
}
|
|
27715
27715
|
n.current.filtered.count = e2;
|
|
27716
27716
|
}
|
|
27717
|
-
function
|
|
27717
|
+
function MK() {
|
|
27718
27718
|
var _a2, _b;
|
|
27719
27719
|
var e2;
|
|
27720
|
-
let t2 =
|
|
27720
|
+
let t2 = NK();
|
|
27721
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({
|
|
27722
27722
|
block: "nearest"
|
|
27723
27723
|
})), t2.scrollIntoView({
|
|
27724
27724
|
block: "nearest"
|
|
27725
27725
|
}));
|
|
27726
27726
|
}
|
|
27727
|
-
function
|
|
27727
|
+
function NK() {
|
|
27728
27728
|
var _a2;
|
|
27729
27729
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27730
27730
|
}
|
|
27731
|
-
function
|
|
27731
|
+
function PK() {
|
|
27732
27732
|
var _a2;
|
|
27733
27733
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27734
27734
|
}
|
|
27735
|
-
function
|
|
27736
|
-
let t2 =
|
|
27735
|
+
function FK(e2) {
|
|
27736
|
+
let t2 = PK()[e2];
|
|
27737
27737
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27738
27738
|
}
|
|
27739
|
-
function
|
|
27739
|
+
function IK(e2) {
|
|
27740
27740
|
var t2;
|
|
27741
|
-
let n2 =
|
|
27741
|
+
let n2 = NK(), i2 = PK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27742
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));
|
|
27743
27743
|
}
|
|
27744
|
-
function
|
|
27744
|
+
function LK(e2) {
|
|
27745
27745
|
var _a2;
|
|
27746
|
-
let t2 = (_a2 =
|
|
27746
|
+
let t2 = (_a2 = NK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27747
27747
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27748
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27748
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : IK(e2);
|
|
27749
27749
|
}
|
|
27750
|
-
let
|
|
27751
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27752
|
-
},
|
|
27753
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27750
|
+
let RK = () => FK(PK().length - 1), zK = (e2) => {
|
|
27751
|
+
e2.preventDefault(), e2.metaKey ? RK() : e2.altKey ? LK(1) : IK(1);
|
|
27752
|
+
}, BK = (e2) => {
|
|
27753
|
+
e2.preventDefault(), e2.metaKey ? FK(0) : e2.altKey ? LK(-1) : IK(-1);
|
|
27754
27754
|
};
|
|
27755
27755
|
return import_react.createElement(Primitive.div, {
|
|
27756
27756
|
ref: t,
|
|
@@ -27764,27 +27764,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27764
27764
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27765
27765
|
case "n":
|
|
27766
27766
|
case "j":
|
|
27767
|
-
E && e2.ctrlKey &&
|
|
27767
|
+
E && e2.ctrlKey && zK(e2);
|
|
27768
27768
|
break;
|
|
27769
27769
|
case "ArrowDown":
|
|
27770
|
-
|
|
27770
|
+
zK(e2);
|
|
27771
27771
|
break;
|
|
27772
27772
|
case "p":
|
|
27773
27773
|
case "k":
|
|
27774
|
-
E && e2.ctrlKey &&
|
|
27774
|
+
E && e2.ctrlKey && BK(e2);
|
|
27775
27775
|
break;
|
|
27776
27776
|
case "ArrowUp":
|
|
27777
|
-
|
|
27777
|
+
BK(e2);
|
|
27778
27778
|
break;
|
|
27779
27779
|
case "Home":
|
|
27780
|
-
e2.preventDefault(),
|
|
27780
|
+
e2.preventDefault(), FK(0);
|
|
27781
27781
|
break;
|
|
27782
27782
|
case "End":
|
|
27783
|
-
e2.preventDefault(),
|
|
27783
|
+
e2.preventDefault(), RK();
|
|
27784
27784
|
break;
|
|
27785
27785
|
case "Enter": {
|
|
27786
27786
|
e2.preventDefault();
|
|
27787
|
-
let t3 =
|
|
27787
|
+
let t3 = NK();
|
|
27788
27788
|
if (t3) {
|
|
27789
27789
|
let e3 = new Event(Z);
|
|
27790
27790
|
t3.dispatchEvent(e3);
|
|
@@ -28193,153 +28193,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28193
28193
|
Combobox = (e) => {
|
|
28194
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;
|
|
28195
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);
|
|
28196
|
-
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I,
|
|
28197
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28196
|
+
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, jK = z === void 0 ? "Search..." : z, MK = U === void 0 ? "Nothing found." : U, NK = K === void 0 ? false : K, PK = q === void 0 ? false : q, FK = s ?? false, IK;
|
|
28197
|
+
t[24] !== v || t[25] !== w || t[26] !== FK ? (IK = {
|
|
28198
28198
|
prop: w,
|
|
28199
|
-
defaultProp:
|
|
28199
|
+
defaultProp: FK,
|
|
28200
28200
|
onChange: v
|
|
28201
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28202
|
-
let [
|
|
28203
|
-
t[28] === S ?
|
|
28201
|
+
}, t[24] = v, t[25] = w, t[26] = FK, t[27] = IK) : IK = t[27];
|
|
28202
|
+
let [LK, RK] = useControllableState(IK), zK = LK === void 0 ? false : LK, BK;
|
|
28203
|
+
t[28] === S ? BK = t[29] : (BK = (e2) => {
|
|
28204
28204
|
S == null ? void 0 : S(e2);
|
|
28205
|
-
}, t[28] = S, t[29] =
|
|
28206
|
-
let
|
|
28207
|
-
t[30] !== c || t[31] !==
|
|
28205
|
+
}, t[28] = S, t[29] = BK);
|
|
28206
|
+
let VK;
|
|
28207
|
+
t[30] !== c || t[31] !== BK || t[32] !== J ? (VK = {
|
|
28208
28208
|
prop: J,
|
|
28209
28209
|
defaultProp: c,
|
|
28210
|
-
onChange:
|
|
28211
|
-
}, t[30] = c, t[31] =
|
|
28212
|
-
let [
|
|
28213
|
-
t[34] ===
|
|
28214
|
-
let
|
|
28215
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28210
|
+
onChange: BK
|
|
28211
|
+
}, t[30] = c, t[31] = BK, t[32] = J, t[33] = VK) : VK = t[33];
|
|
28212
|
+
let [HK, UK] = useControllableState(VK), WK;
|
|
28213
|
+
t[34] === HK ? WK = t[35] : (WK = (e2) => Array.isArray(HK) ? HK.includes(e2) : HK === e2, t[34] = HK, t[35] = WK);
|
|
28214
|
+
let GK = WK, KK;
|
|
28215
|
+
t[36] !== _ || t[37] !== Q || t[38] !== RK || t[39] !== UK || t[40] !== HK ? (KK = (e2) => {
|
|
28216
28216
|
let t2 = e2;
|
|
28217
|
-
if (Q) if (Array.isArray(
|
|
28218
|
-
let n2 =
|
|
28217
|
+
if (Q) if (Array.isArray(HK)) if (HK.includes(t2)) {
|
|
28218
|
+
let n2 = HK.filter((t3) => t3 !== e2);
|
|
28219
28219
|
t2 = n2.length > 0 ? n2 : [];
|
|
28220
28220
|
} else t2 = [
|
|
28221
|
-
...
|
|
28221
|
+
...HK,
|
|
28222
28222
|
t2
|
|
28223
28223
|
];
|
|
28224
28224
|
else t2 = [
|
|
28225
28225
|
t2
|
|
28226
28226
|
];
|
|
28227
|
-
else
|
|
28228
|
-
|
|
28229
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28230
|
-
let
|
|
28231
|
-
t[42] !==
|
|
28232
|
-
let
|
|
28233
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28234
|
-
let
|
|
28235
|
-
t[49] !==
|
|
28236
|
-
|
|
28237
|
-
}, t[49] =
|
|
28238
|
-
let
|
|
28239
|
-
t[52] !== o || t[53] !==
|
|
28227
|
+
else HK === e2 && (t2 = null);
|
|
28228
|
+
UK(t2), (_ ?? Q) || RK(false);
|
|
28229
|
+
}, t[36] = _, t[37] = Q, t[38] = RK, t[39] = UK, t[40] = HK, t[41] = KK) : KK = t[41];
|
|
28230
|
+
let qK = KK, JK;
|
|
28231
|
+
t[42] !== NK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== HK ? (JK = () => Q && NK && E ? E : HK == null ? E ?? "--" : Array.isArray(HK) ? HK.length === 0 ? E ?? "--" : HK.length === 1 && d !== void 0 ? d(HK[0]) : `${HK.length} selected` : d === void 0 ? E ?? "--" : d(HK), t[42] = NK, t[43] = d, t[44] = Q, t[45] = E, t[46] = HK, t[47] = JK) : JK = t[47];
|
|
28232
|
+
let YK = JK, XK;
|
|
28233
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XK = cn("relative"), t[48] = XK) : XK = t[48];
|
|
28234
|
+
let ZK;
|
|
28235
|
+
t[49] !== PK || t[50] !== RK ? (ZK = (e2) => {
|
|
28236
|
+
PK && e2 || RK(e2);
|
|
28237
|
+
}, t[49] = PK, t[50] = RK, t[51] = ZK) : ZK = t[51];
|
|
28238
|
+
let QK = PK && "cursor-not-allowed opacity-50", $K;
|
|
28239
|
+
t[52] !== o || t[53] !== QK ? ($K = 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", QK, o), t[52] = o, t[53] = QK, t[54] = $K) : $K = t[54];
|
|
28240
|
+
let tq;
|
|
28241
|
+
t[55] === YK ? tq = t[56] : (tq = YK(), t[55] = YK, t[56] = tq);
|
|
28240
28242
|
let nq;
|
|
28241
|
-
t[
|
|
28242
|
-
let rq;
|
|
28243
|
-
t[57] === nq ? rq = t[58] : (rq = (0, import_jsx_runtime.jsx)("span", {
|
|
28243
|
+
t[57] === tq ? nq = t[58] : (nq = (0, import_jsx_runtime.jsx)("span", {
|
|
28244
28244
|
className: "truncate flex-1 min-w-0",
|
|
28245
|
-
children:
|
|
28246
|
-
}), t[57] =
|
|
28247
|
-
let
|
|
28248
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28245
|
+
children: tq
|
|
28246
|
+
}), t[57] = tq, t[58] = nq);
|
|
28247
|
+
let iq;
|
|
28248
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28249
28249
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28250
|
-
}), t[59] =
|
|
28251
|
-
let
|
|
28252
|
-
t[60] !==
|
|
28250
|
+
}), t[59] = iq) : iq = t[59];
|
|
28251
|
+
let aq;
|
|
28252
|
+
t[60] !== PK || t[61] !== h || t[62] !== zK || t[63] !== $K || t[64] !== nq ? (aq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28253
28253
|
asChild: true,
|
|
28254
28254
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28255
28255
|
id: h,
|
|
28256
28256
|
type: "button",
|
|
28257
|
-
className:
|
|
28258
|
-
"aria-expanded":
|
|
28259
|
-
"aria-disabled":
|
|
28257
|
+
className: $K,
|
|
28258
|
+
"aria-expanded": zK,
|
|
28259
|
+
"aria-disabled": PK,
|
|
28260
28260
|
children: [
|
|
28261
|
-
|
|
28262
|
-
|
|
28261
|
+
nq,
|
|
28262
|
+
iq
|
|
28263
28263
|
]
|
|
28264
28264
|
})
|
|
28265
|
-
}), t[60] =
|
|
28266
|
-
let
|
|
28267
|
-
t[66] !==
|
|
28268
|
-
placeholder:
|
|
28265
|
+
}), t[60] = PK, t[61] = h, t[62] = zK, t[63] = $K, t[64] = nq, t[65] = aq) : aq = t[65];
|
|
28266
|
+
let oq;
|
|
28267
|
+
t[66] !== jK || t[67] !== y || t[68] !== A ? (oq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28268
|
+
placeholder: jK,
|
|
28269
28269
|
rootClassName: "px-1 h-8",
|
|
28270
28270
|
autoFocus: true,
|
|
28271
28271
|
value: A,
|
|
28272
28272
|
onValueChange: y
|
|
28273
|
-
}), t[66] =
|
|
28273
|
+
}), t[66] = jK, t[67] = y, t[68] = A, t[69] = oq) : oq = t[69];
|
|
28274
|
+
let sq;
|
|
28275
|
+
t[70] === MK ? sq = t[71] : (sq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28276
|
+
children: MK
|
|
28277
|
+
}), t[70] = MK, t[71] = sq);
|
|
28274
28278
|
let cq;
|
|
28275
|
-
t[
|
|
28276
|
-
|
|
28277
|
-
|
|
28279
|
+
t[72] !== qK || t[73] !== GK ? (cq = {
|
|
28280
|
+
isSelected: GK,
|
|
28281
|
+
onSelect: qK
|
|
28282
|
+
}, t[72] = qK, t[73] = GK, t[74] = cq) : cq = t[74];
|
|
28278
28283
|
let lq;
|
|
28279
|
-
t[
|
|
28280
|
-
|
|
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,
|
|
28284
|
+
t[75] !== n || t[76] !== cq ? (lq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28285
|
+
value: cq,
|
|
28286
28286
|
children: n
|
|
28287
|
-
}), t[75] = n, t[76] =
|
|
28288
|
-
let
|
|
28289
|
-
t[78] !==
|
|
28287
|
+
}), t[75] = n, t[76] = cq, t[77] = lq) : lq = t[77];
|
|
28288
|
+
let uq;
|
|
28289
|
+
t[78] !== sq || t[79] !== lq ? (uq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28290
28290
|
className: "max-h-60 py-.5",
|
|
28291
28291
|
children: [
|
|
28292
|
-
|
|
28293
|
-
|
|
28292
|
+
sq,
|
|
28293
|
+
lq
|
|
28294
28294
|
]
|
|
28295
|
-
}), t[78] =
|
|
28296
|
-
let
|
|
28297
|
-
t[81] !== f || t[82] !== $ || t[83] !==
|
|
28295
|
+
}), t[78] = sq, t[79] = lq, t[80] = uq) : uq = t[80];
|
|
28296
|
+
let dq;
|
|
28297
|
+
t[81] !== f || t[82] !== $ || t[83] !== oq || t[84] !== uq ? (dq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28298
28298
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28299
28299
|
align: "start",
|
|
28300
28300
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28301
28301
|
filter: f,
|
|
28302
28302
|
shouldFilter: $,
|
|
28303
28303
|
children: [
|
|
28304
|
-
|
|
28305
|
-
|
|
28304
|
+
oq,
|
|
28305
|
+
uq
|
|
28306
28306
|
]
|
|
28307
28307
|
})
|
|
28308
|
-
}), t[81] = f, t[82] = $, t[83] =
|
|
28309
|
-
let
|
|
28310
|
-
t[86] !==
|
|
28311
|
-
open:
|
|
28312
|
-
onOpenChange:
|
|
28308
|
+
}), t[81] = f, t[82] = $, t[83] = oq, t[84] = uq, t[85] = dq) : dq = t[85];
|
|
28309
|
+
let fq;
|
|
28310
|
+
t[86] !== zK || t[87] !== ZK || t[88] !== aq || t[89] !== dq ? (fq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28311
|
+
open: zK,
|
|
28312
|
+
onOpenChange: ZK,
|
|
28313
28313
|
children: [
|
|
28314
|
-
|
|
28315
|
-
|
|
28314
|
+
aq,
|
|
28315
|
+
dq
|
|
28316
28316
|
]
|
|
28317
|
-
}), t[86] =
|
|
28318
|
-
let
|
|
28319
|
-
t[91] !==
|
|
28317
|
+
}), t[86] = zK, t[87] = ZK, t[88] = aq, t[89] = dq, t[90] = fq) : fq = t[90];
|
|
28318
|
+
let pq;
|
|
28319
|
+
t[91] !== NK || t[92] !== i || t[93] !== PK || t[94] !== d || t[95] !== qK || t[96] !== Q || t[97] !== HK ? (pq = Q && NK && (0, import_jsx_runtime.jsx)("div", {
|
|
28320
28320
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28321
|
-
children: Array.isArray(
|
|
28321
|
+
children: Array.isArray(HK) && HK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28322
28322
|
variant: "secondary",
|
|
28323
28323
|
children: [
|
|
28324
28324
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28325
28325
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28326
28326
|
onClick: () => {
|
|
28327
|
-
|
|
28327
|
+
PK || qK(e2);
|
|
28328
28328
|
},
|
|
28329
|
-
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", PK && "pointer-events-none")
|
|
28330
28330
|
})
|
|
28331
28331
|
]
|
|
28332
28332
|
}, String(e2)))
|
|
28333
|
-
}), t[91] =
|
|
28334
|
-
let
|
|
28335
|
-
return t[99] !== O || t[100] !==
|
|
28336
|
-
className:
|
|
28333
|
+
}), t[91] = NK, t[92] = i, t[93] = PK, t[94] = d, t[95] = qK, t[96] = Q, t[97] = HK, t[98] = pq) : pq = t[98];
|
|
28334
|
+
let mq;
|
|
28335
|
+
return t[99] !== O || t[100] !== fq || t[101] !== pq ? (mq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28336
|
+
className: XK,
|
|
28337
28337
|
...O,
|
|
28338
28338
|
children: [
|
|
28339
|
-
|
|
28340
|
-
|
|
28339
|
+
fq,
|
|
28340
|
+
pq
|
|
28341
28341
|
]
|
|
28342
|
-
}), t[99] = O, t[100] =
|
|
28342
|
+
}), t[99] = O, t[100] = fq, t[101] = pq, t[102] = mq) : mq = t[102], mq;
|
|
28343
28343
|
};
|
|
28344
28344
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28345
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), _;
|
|
@@ -29471,7 +29471,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29471
29471
|
type: S,
|
|
29472
29472
|
operator: E,
|
|
29473
29473
|
draft: mergeNumberTextDraft(A, I)
|
|
29474
|
-
}),
|
|
29474
|
+
}), jK = $ === void 0, MK = jK ? getMissingValueMessage(S, E) : "Apply filter", NK = () => {
|
|
29475
29475
|
if (!$) return;
|
|
29476
29476
|
let e2 = $;
|
|
29477
29477
|
t.setColumnFilters((t2) => {
|
|
@@ -29490,20 +29490,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29490
29490
|
value: e2
|
|
29491
29491
|
}, n2;
|
|
29492
29492
|
}), i();
|
|
29493
|
-
},
|
|
29493
|
+
}, PK = () => {
|
|
29494
29494
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29495
|
-
},
|
|
29495
|
+
}, FK = !OPERATORS_WITHOUT_VALUE.has(E), IK = OPERATORS_BY_TYPE[S], LK = (0, import_react.useRef)(null), RK = (0, import_react.useRef)(null);
|
|
29496
29496
|
return (0, import_react.useEffect)(() => {
|
|
29497
29497
|
var _a2, _b;
|
|
29498
|
-
let e2 = (_a2 =
|
|
29499
|
-
e2 ? e2.focus() : (_b =
|
|
29498
|
+
let e2 = (_a2 = LK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29499
|
+
e2 ? e2.focus() : (_b = RK.current) == null ? void 0 : _b.focus();
|
|
29500
29500
|
}, [
|
|
29501
29501
|
S,
|
|
29502
29502
|
E
|
|
29503
29503
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29504
29504
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29505
29505
|
onSubmit: (e2) => {
|
|
29506
|
-
e2.preventDefault(),
|
|
29506
|
+
e2.preventDefault(), NK();
|
|
29507
29507
|
},
|
|
29508
29508
|
onKeyDownCapture: (e2) => {
|
|
29509
29509
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29544,13 +29544,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29544
29544
|
onValueChange: (e2) => Q(e2),
|
|
29545
29545
|
children: [
|
|
29546
29546
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29547
|
-
ref:
|
|
29547
|
+
ref: RK,
|
|
29548
29548
|
id: s,
|
|
29549
29549
|
className: "h-6 mb-1 bg-transparent",
|
|
29550
29550
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29551
29551
|
}),
|
|
29552
29552
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29553
|
-
children:
|
|
29553
|
+
children: IK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29554
29554
|
value: e2,
|
|
29555
29555
|
children: OPERATOR_LABELS[e2]
|
|
29556
29556
|
}, e2))
|
|
@@ -29559,8 +29559,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29559
29559
|
}, S)
|
|
29560
29560
|
]
|
|
29561
29561
|
}),
|
|
29562
|
-
|
|
29563
|
-
ref:
|
|
29562
|
+
FK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29563
|
+
ref: LK,
|
|
29564
29564
|
className: "flex flex-col gap-1",
|
|
29565
29565
|
children: [
|
|
29566
29566
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29587,14 +29587,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29587
29587
|
className: "flex gap-1 mb-1",
|
|
29588
29588
|
children: [
|
|
29589
29589
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29590
|
-
content:
|
|
29590
|
+
content: MK,
|
|
29591
29591
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29592
29592
|
className: "inline-flex",
|
|
29593
29593
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29594
29594
|
type: "submit",
|
|
29595
29595
|
size: "icon",
|
|
29596
29596
|
variant: "ghost",
|
|
29597
|
-
disabled:
|
|
29597
|
+
disabled: jK,
|
|
29598
29598
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29599
29599
|
"aria-label": "Apply filter",
|
|
29600
29600
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29626,7 +29626,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29626
29626
|
size: "icon",
|
|
29627
29627
|
variant: "ghost",
|
|
29628
29628
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29629
|
-
onClick:
|
|
29629
|
+
onClick: PK,
|
|
29630
29630
|
"aria-label": "Remove filter",
|
|
29631
29631
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29632
29632
|
className: "h-3.5 w-3.5",
|
|
@@ -32461,7 +32461,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32461
32461
|
function _temp2$2(e, t) {
|
|
32462
32462
|
return e + t;
|
|
32463
32463
|
}
|
|
32464
|
-
let TableBottomBar
|
|
32464
|
+
let TableBottomBar;
|
|
32465
32465
|
TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f, togglePanel: _, part: v, className: y }) => {
|
|
32466
32466
|
let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), E = (e2) => {
|
|
32467
32467
|
if (!i) return;
|
|
@@ -32850,26 +32850,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32850
32850
|
return ((_a2 = copyOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
32851
32851
|
};
|
|
32852
32852
|
const ExportMenu = (e) => {
|
|
32853
|
-
let t = (0, import_compiler_runtime$8.c)(56), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = useAtomValue(downloadSizeLimitAtom), c = !!(s && e.sizeBytes != null && e.sizeBytes > s.limitBytes), d = i ? "text-primary" : "text-muted-foreground",
|
|
32854
|
-
t[0] ===
|
|
32855
|
-
let
|
|
32856
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32853
|
+
let t = (0, import_compiler_runtime$8.c)(56), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = useAtomValue(downloadSizeLimitAtom), c = !!(s && e.sizeBytes != null && e.sizeBytes > s.limitBytes), d = !!(s && (e.sizeBytesIsLoading || c)), f = d ? e.sizeBytesIsLoading ? "Checking download size\u2026" : s == null ? void 0 : s.unavailableMessage : "Export", _ = i ? "text-primary" : "text-muted-foreground", v;
|
|
32854
|
+
t[0] === _ ? v = t[1] : (v = cn("print:hidden text-xs gap-1", _), t[0] = _, t[1] = v);
|
|
32855
|
+
let y;
|
|
32856
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(Download, {
|
|
32857
32857
|
className: "w-3.5 h-3.5"
|
|
32858
|
-
}), t[2] =
|
|
32859
|
-
let
|
|
32860
|
-
t[3] !==
|
|
32858
|
+
}), t[2] = y) : y = t[2];
|
|
32859
|
+
let S;
|
|
32860
|
+
t[3] !== d || t[4] !== v ? (S = (0, import_jsx_runtime.jsxs)(Button, {
|
|
32861
32861
|
"data-testid": "export-button",
|
|
32862
32862
|
size: "xs",
|
|
32863
32863
|
variant: "text",
|
|
32864
|
-
disabled:
|
|
32865
|
-
className:
|
|
32864
|
+
disabled: d,
|
|
32865
|
+
className: v,
|
|
32866
32866
|
children: [
|
|
32867
|
-
|
|
32867
|
+
y,
|
|
32868
32868
|
"Export"
|
|
32869
32869
|
]
|
|
32870
|
-
}), t[3] =
|
|
32871
|
-
let
|
|
32872
|
-
t[6] === e ?
|
|
32870
|
+
}), t[3] = d, t[4] = v, t[5] = S) : S = t[5];
|
|
32871
|
+
let O = S, A;
|
|
32872
|
+
t[6] === e ? A = t[7] : (A = async (t2, n2) => {
|
|
32873
32873
|
let i2;
|
|
32874
32874
|
try {
|
|
32875
32875
|
i2 = await e.downloadAs({
|
|
@@ -32894,13 +32894,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32894
32894
|
url: i2.url,
|
|
32895
32895
|
filename: i2.filename
|
|
32896
32896
|
};
|
|
32897
|
-
}, t[6] = e, t[7] =
|
|
32898
|
-
let
|
|
32899
|
-
if (t[8] !==
|
|
32897
|
+
}, t[6] = e, t[7] = A);
|
|
32898
|
+
let M = A, I, z, U, K, q, J, Q, $, jK, MK, NK, PK, FK;
|
|
32899
|
+
if (t[8] !== O || t[9] !== d || t[10] !== i || t[11] !== n || t[12] !== M || t[13] !== f) {
|
|
32900
32900
|
let e2 = async (t2) => {
|
|
32901
32901
|
let n2 = labelForDownloadFormat(t2);
|
|
32902
32902
|
await withLoadingToast(`Preparing ${n2} export...`, async () => {
|
|
32903
|
-
let n3 = await
|
|
32903
|
+
let n3 = await M(t2, () => {
|
|
32904
32904
|
e2(t2);
|
|
32905
32905
|
});
|
|
32906
32906
|
if (!n3) return false;
|
|
@@ -32918,26 +32918,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32918
32918
|
});
|
|
32919
32919
|
}, a = async (e3) => {
|
|
32920
32920
|
await withLoadingToast(`Preparing ${labelForCopyFormat(e3)} for clipboard...`, async () => {
|
|
32921
|
-
let t2 = await
|
|
32921
|
+
let t2 = await M(e3 === "csv" ? "csv" : "json", () => {
|
|
32922
32922
|
a(e3);
|
|
32923
32923
|
});
|
|
32924
32924
|
if (!t2) return;
|
|
32925
32925
|
let i2;
|
|
32926
|
-
|
|
32926
|
+
bb98: switch (e3) {
|
|
32927
32927
|
case "tsv":
|
|
32928
32928
|
i2 = jsonToTSV(await fetchJson(t2.url), n);
|
|
32929
|
-
break
|
|
32929
|
+
break bb98;
|
|
32930
32930
|
case "json": {
|
|
32931
32931
|
let e4 = await fetchJson(t2.url);
|
|
32932
32932
|
i2 = JSON.stringify(e4, null, 2);
|
|
32933
|
-
break
|
|
32933
|
+
break bb98;
|
|
32934
32934
|
}
|
|
32935
32935
|
case "csv":
|
|
32936
32936
|
i2 = await fetchText(t2.url);
|
|
32937
|
-
break
|
|
32937
|
+
break bb98;
|
|
32938
32938
|
case "markdown":
|
|
32939
32939
|
i2 = jsonToMarkdown(await fetchJson(t2.url));
|
|
32940
|
-
break
|
|
32940
|
+
break bb98;
|
|
32941
32941
|
default:
|
|
32942
32942
|
logNever(e3);
|
|
32943
32943
|
return;
|
|
@@ -32947,26 +32947,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32947
32947
|
});
|
|
32948
32948
|
});
|
|
32949
32949
|
};
|
|
32950
|
-
|
|
32951
|
-
let
|
|
32952
|
-
t[27] !==
|
|
32953
|
-
tabIndex:
|
|
32950
|
+
z = DropdownMenu, q = false, J = i, Q = o;
|
|
32951
|
+
let s2 = i ? false : void 0, c2 = d ? 0 : -1, h;
|
|
32952
|
+
t[27] !== O || t[28] !== c2 ? (h = (0, import_jsx_runtime.jsx)("span", {
|
|
32953
|
+
tabIndex: c2,
|
|
32954
32954
|
className: "inline-flex",
|
|
32955
|
-
children:
|
|
32956
|
-
}), t[27] =
|
|
32957
|
-
let
|
|
32958
|
-
t[30] !==
|
|
32955
|
+
children: O
|
|
32956
|
+
}), t[27] = O, t[28] = c2, t[29] = h) : h = t[29];
|
|
32957
|
+
let _2;
|
|
32958
|
+
t[30] !== d || t[31] !== h ? (_2 = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
32959
32959
|
asChild: true,
|
|
32960
|
-
disabled:
|
|
32960
|
+
disabled: d,
|
|
32961
|
+
children: h
|
|
32962
|
+
}), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
32963
|
+
content: f,
|
|
32964
|
+
open: s2,
|
|
32961
32965
|
children: _2
|
|
32962
|
-
}), t[
|
|
32963
|
-
content: d2,
|
|
32964
|
-
open: f2,
|
|
32965
|
-
children: v2
|
|
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, {
|
|
32966
|
+
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] = $) : $ = t[36], I = DropdownMenuContent, jK = "bottom", MK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32967
32967
|
className: "text-xs text-muted-foreground",
|
|
32968
32968
|
children: "Download"
|
|
32969
|
-
}), t[37] =
|
|
32969
|
+
}), t[37] = NK) : NK = t[37], PK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32970
32970
|
onSelect: () => {
|
|
32971
32971
|
e2(t2.format);
|
|
32972
32972
|
},
|
|
@@ -32987,10 +32987,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32987
32987
|
]
|
|
32988
32988
|
})
|
|
32989
32989
|
]
|
|
32990
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32990
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32991
32991
|
className: "text-xs text-muted-foreground",
|
|
32992
32992
|
children: "Copy to clipboard"
|
|
32993
|
-
}), t[38] =
|
|
32993
|
+
}), t[38] = U, t[39] = FK) : (U = t[38], FK = t[39]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32994
32994
|
onSelect: async () => {
|
|
32995
32995
|
try {
|
|
32996
32996
|
await a(e3.format);
|
|
@@ -33019,30 +33019,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33019
33019
|
]
|
|
33020
33020
|
})
|
|
33021
33021
|
]
|
|
33022
|
-
}, e3.label)), t[8] =
|
|
33023
|
-
} else
|
|
33024
|
-
let
|
|
33025
|
-
t[40] !==
|
|
33026
|
-
side:
|
|
33027
|
-
className:
|
|
33022
|
+
}, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = jK, t[23] = MK, t[24] = NK, t[25] = PK, t[26] = FK;
|
|
33023
|
+
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], jK = t[22], MK = t[23], NK = t[24], PK = t[25], FK = t[26];
|
|
33024
|
+
let IK;
|
|
33025
|
+
t[40] !== I || t[41] !== U || t[42] !== K || t[43] !== jK || t[44] !== MK || t[45] !== NK || t[46] !== PK || t[47] !== FK ? (IK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33026
|
+
side: jK,
|
|
33027
|
+
className: MK,
|
|
33028
33028
|
children: [
|
|
33029
|
-
MK,
|
|
33030
33029
|
NK,
|
|
33031
33030
|
PK,
|
|
33032
|
-
|
|
33033
|
-
|
|
33031
|
+
FK,
|
|
33032
|
+
U,
|
|
33033
|
+
K
|
|
33034
33034
|
]
|
|
33035
|
-
}), t[40] =
|
|
33036
|
-
let
|
|
33037
|
-
return t[49] !==
|
|
33038
|
-
modal:
|
|
33039
|
-
open:
|
|
33040
|
-
onOpenChange:
|
|
33035
|
+
}), t[40] = I, t[41] = U, t[42] = K, t[43] = jK, t[44] = MK, t[45] = NK, t[46] = PK, t[47] = FK, t[48] = IK) : IK = t[48];
|
|
33036
|
+
let LK;
|
|
33037
|
+
return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== $ || t[54] !== IK ? (LK = (0, import_jsx_runtime.jsxs)(z, {
|
|
33038
|
+
modal: q,
|
|
33039
|
+
open: J,
|
|
33040
|
+
onOpenChange: Q,
|
|
33041
33041
|
children: [
|
|
33042
|
-
|
|
33043
|
-
|
|
33042
|
+
$,
|
|
33043
|
+
IK
|
|
33044
33044
|
]
|
|
33045
|
-
}), t[49] =
|
|
33045
|
+
}), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] = $, t[54] = IK, t[55] = LK) : LK = t[55], LK;
|
|
33046
33046
|
};
|
|
33047
33047
|
function fetchJson(e) {
|
|
33048
33048
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33056,13 +33056,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33056
33056
|
var NOOP_ON_SEARCH = () => {
|
|
33057
33057
|
};
|
|
33058
33058
|
let TableTopBar;
|
|
33059
|
-
TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: d, togglePanel: f, isAnyPanelOpen: _, downloadAs: v, sizeBytes: y }) => {
|
|
33060
|
-
let [
|
|
33059
|
+
TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: d, togglePanel: f, isAnyPanelOpen: _, downloadAs: v, sizeBytes: y, sizeBytesIsLoading: S }) => {
|
|
33060
|
+
let [w, E] = (0, import_react.useState)(t || ""), O = useDebounce(w, 500), A = useEvent_default(n ?? NOOP_ON_SEARCH), M = import_react.useRef(null);
|
|
33061
33061
|
return (0, import_react.useEffect)(() => {
|
|
33062
|
-
O
|
|
33062
|
+
A(O);
|
|
33063
33063
|
}, [
|
|
33064
|
-
|
|
33065
|
-
|
|
33064
|
+
O,
|
|
33065
|
+
A
|
|
33066
33066
|
]), e && n || o || d || v ? (0, import_jsx_runtime.jsxs)("div", {
|
|
33067
33067
|
className: "flex items-center h-10 px-2 border-b gap-2",
|
|
33068
33068
|
children: [
|
|
@@ -33073,25 +33073,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33073
33073
|
className: "w-4 h-4 text-muted-foreground shrink-0"
|
|
33074
33074
|
}),
|
|
33075
33075
|
(0, import_jsx_runtime.jsx)("input", {
|
|
33076
|
-
ref:
|
|
33076
|
+
ref: M,
|
|
33077
33077
|
type: "text",
|
|
33078
33078
|
className: "h-6 border-none bg-transparent focus:outline-hidden text-sm w-full min-w-0",
|
|
33079
|
-
value:
|
|
33079
|
+
value: w,
|
|
33080
33080
|
onKeyDown: (e2) => {
|
|
33081
33081
|
var _a2;
|
|
33082
|
-
e2.key === "Escape" && (
|
|
33082
|
+
e2.key === "Escape" && (E(""), (_a2 = M.current) == null ? void 0 : _a2.blur());
|
|
33083
33083
|
},
|
|
33084
|
-
onChange: (e2) =>
|
|
33084
|
+
onChange: (e2) => E(e2.target.value),
|
|
33085
33085
|
placeholder: "Search..."
|
|
33086
33086
|
}),
|
|
33087
33087
|
i && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
33088
33088
|
size: "small"
|
|
33089
33089
|
}),
|
|
33090
|
-
|
|
33090
|
+
w && (0, import_jsx_runtime.jsx)(Button, {
|
|
33091
33091
|
variant: "text",
|
|
33092
33092
|
size: "xs",
|
|
33093
33093
|
className: "h-5 w-5 p-0 shrink-0",
|
|
33094
|
-
onClick: () =>
|
|
33094
|
+
onClick: () => E(""),
|
|
33095
33095
|
children: (0, import_jsx_runtime.jsx)(X, {
|
|
33096
33096
|
className: "w-3 h-3 text-muted-foreground"
|
|
33097
33097
|
})
|
|
@@ -33127,14 +33127,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33127
33127
|
}),
|
|
33128
33128
|
v && (0, import_jsx_runtime.jsx)(ExportMenu, {
|
|
33129
33129
|
downloadAs: v,
|
|
33130
|
-
sizeBytes: y
|
|
33130
|
+
sizeBytes: y,
|
|
33131
|
+
sizeBytesIsLoading: S
|
|
33131
33132
|
})
|
|
33132
33133
|
]
|
|
33133
33134
|
})
|
|
33134
33135
|
]
|
|
33135
33136
|
}) : null;
|
|
33136
33137
|
};
|
|
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: _,
|
|
33138
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: jK, 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
33139
|
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);
|
|
33139
33140
|
import_react.useEffect(() => {
|
|
33140
33141
|
let e2;
|
|
@@ -33147,7 +33148,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33147
33148
|
zK
|
|
33148
33149
|
]);
|
|
33149
33150
|
function oq(e2, t2) {
|
|
33150
|
-
return
|
|
33151
|
+
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
33151
33152
|
}
|
|
33152
33153
|
let sq = useReactTable({
|
|
33153
33154
|
_features: [
|
|
@@ -33168,8 +33169,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33168
33169
|
},
|
|
33169
33170
|
getCoreRowModel: getCoreRowModel(),
|
|
33170
33171
|
rowCount: f === "too_many" ? void 0 : f,
|
|
33171
|
-
...
|
|
33172
|
-
onPaginationChange:
|
|
33172
|
+
...U ? {
|
|
33173
|
+
onPaginationChange: U,
|
|
33173
33174
|
getRowId: (e2, t2) => {
|
|
33174
33175
|
let n2 = getStableRowId(e2);
|
|
33175
33176
|
if (n2) return n2;
|
|
@@ -33178,20 +33179,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33178
33179
|
}
|
|
33179
33180
|
} : {},
|
|
33180
33181
|
locale: tq,
|
|
33181
|
-
manualPagination:
|
|
33182
|
+
manualPagination: q,
|
|
33182
33183
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33183
|
-
...
|
|
33184
|
-
onSortingChange:
|
|
33184
|
+
...w ? {
|
|
33185
|
+
onSortingChange: w
|
|
33185
33186
|
} : {},
|
|
33186
|
-
manualSorting:
|
|
33187
|
+
manualSorting: y,
|
|
33187
33188
|
enableMultiSort: true,
|
|
33188
33189
|
getSortedRowModel: getSortedRowModel(),
|
|
33189
33190
|
manualFiltering: true,
|
|
33190
33191
|
enableColumnFilters: FK,
|
|
33191
33192
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33192
33193
|
onColumnFiltersChange: LK,
|
|
33193
|
-
onRowSelectionChange:
|
|
33194
|
-
onCellSelectionChange:
|
|
33194
|
+
onRowSelectionChange: Q,
|
|
33195
|
+
onCellSelectionChange: $,
|
|
33195
33196
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33196
33197
|
enableMultiCellSelection: c === "multi-cell",
|
|
33197
33198
|
onColumnPinningChange: rq,
|
|
@@ -33199,27 +33200,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33199
33200
|
enableFocusRow: true,
|
|
33200
33201
|
onFocusRowChange: QK,
|
|
33201
33202
|
state: {
|
|
33202
|
-
...
|
|
33203
|
-
sorting:
|
|
33203
|
+
...S ? {
|
|
33204
|
+
sorting: S
|
|
33204
33205
|
} : {},
|
|
33205
33206
|
columnFilters: IK,
|
|
33206
|
-
...
|
|
33207
|
-
pagination:
|
|
33208
|
-
} :
|
|
33207
|
+
...z ? {
|
|
33208
|
+
pagination: z
|
|
33209
|
+
} : J && !z ? {} : {
|
|
33209
33210
|
pagination: {
|
|
33210
33211
|
pageIndex: 0,
|
|
33211
33212
|
pageSize: o.length
|
|
33212
33213
|
}
|
|
33213
33214
|
},
|
|
33214
|
-
rowSelection:
|
|
33215
|
-
cellSelection:
|
|
33215
|
+
rowSelection: E ?? {},
|
|
33216
|
+
cellSelection: O ?? [],
|
|
33216
33217
|
columnVisibility: iq,
|
|
33217
|
-
cellStyling:
|
|
33218
|
+
cellStyling: A,
|
|
33218
33219
|
columnPinning: nq,
|
|
33219
|
-
cellHoverTemplate:
|
|
33220
|
-
cellHoverTexts:
|
|
33220
|
+
cellHoverTemplate: M,
|
|
33221
|
+
cellHoverTexts: I ?? {}
|
|
33221
33222
|
}
|
|
33222
|
-
}), cq = (YK == null ? void 0 : YK(PANEL_TYPES.ROW_VIEWER)) ?? false, lq = !
|
|
33223
|
+
}), cq = (YK == null ? void 0 : YK(PANEL_TYPES.ROW_VIEWER)) ?? false, lq = !J && o.length > 100, uq = useScrollContainerHeight({
|
|
33223
33224
|
maxHeight: n,
|
|
33224
33225
|
virtualize: lq
|
|
33225
33226
|
}), [dq, fq] = import_react.useState(null), pq = import_react.useMemo(() => ({
|
|
@@ -33260,8 +33261,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33260
33261
|
showTableExplorer: qK,
|
|
33261
33262
|
togglePanel: JK,
|
|
33262
33263
|
isAnyPanelOpen: XK,
|
|
33263
|
-
downloadAs:
|
|
33264
|
-
sizeBytes: _
|
|
33264
|
+
downloadAs: K,
|
|
33265
|
+
sizeBytes: _,
|
|
33266
|
+
sizeBytesIsLoading: v
|
|
33265
33267
|
}),
|
|
33266
33268
|
hq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33267
33269
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
@@ -33299,11 +33301,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33299
33301
|
part: "table-footer",
|
|
33300
33302
|
className: "pt-1.5 pb-0.5 border-t border-border",
|
|
33301
33303
|
totalColumns: d,
|
|
33302
|
-
pagination:
|
|
33304
|
+
pagination: J,
|
|
33303
33305
|
selection: c,
|
|
33304
|
-
onRowSelectionChange:
|
|
33306
|
+
onRowSelectionChange: Q,
|
|
33305
33307
|
table: sq,
|
|
33306
|
-
getRowIds:
|
|
33308
|
+
getRowIds: jK,
|
|
33307
33309
|
showPageSizeSelector: KK,
|
|
33308
33310
|
tableLoading: zK,
|
|
33309
33311
|
togglePanel: JK
|
|
@@ -33396,73 +33398,73 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33396
33398
|
${_}`,
|
|
33397
33399
|
triggerImmediately: e2
|
|
33398
33400
|
});
|
|
33399
|
-
}, [q, J] = _.split(":", 2), $ = J ? splitMangledLocals(J) : [],
|
|
33400
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33401
|
-
let
|
|
33402
|
-
t[11] ===
|
|
33403
|
-
let
|
|
33404
|
-
t[13] ===
|
|
33405
|
-
className:
|
|
33406
|
-
}), t[13] =
|
|
33407
|
-
let
|
|
33408
|
-
t[15] ===
|
|
33401
|
+
}, [q, J] = _.split(":", 2), $ = J ? splitMangledLocals(J) : [], MK = d ? KEY : "", NK;
|
|
33402
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NK = () => f(_temp$3), t[10] = NK) : NK = t[10];
|
|
33403
|
+
let PK = d ? "rotate-180" : "rotate-0", FK;
|
|
33404
|
+
t[11] === PK ? FK = t[12] : (FK = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", PK), t[11] = PK, t[12] = FK);
|
|
33405
|
+
let IK;
|
|
33406
|
+
t[13] === FK ? IK = t[14] : (IK = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33407
|
+
className: FK
|
|
33408
|
+
}), t[13] = FK, t[14] = IK);
|
|
33409
|
+
let LK = q || "Error", RK;
|
|
33410
|
+
t[15] === LK ? RK = t[16] : (RK = (0, import_jsx_runtime.jsxs)("span", {
|
|
33409
33411
|
className: "text-destructive",
|
|
33410
33412
|
children: [
|
|
33411
|
-
|
|
33413
|
+
LK,
|
|
33412
33414
|
":"
|
|
33413
33415
|
]
|
|
33414
|
-
}), t[15] =
|
|
33415
|
-
let
|
|
33416
|
-
t[17] === $ ?
|
|
33416
|
+
}), t[15] = LK, t[16] = RK);
|
|
33417
|
+
let BK;
|
|
33418
|
+
t[17] === $ ? BK = t[18] : (BK = (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
33417
33419
|
segments: $
|
|
33418
|
-
}), t[17] = $, t[18] =
|
|
33419
|
-
let
|
|
33420
|
-
t[19] !==
|
|
33420
|
+
}), t[17] = $, t[18] = BK);
|
|
33421
|
+
let HK;
|
|
33422
|
+
t[19] !== RK || t[20] !== BK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33421
33423
|
className: "text-sm inline font-mono",
|
|
33422
33424
|
children: [
|
|
33423
|
-
|
|
33425
|
+
RK,
|
|
33424
33426
|
" ",
|
|
33425
|
-
|
|
33427
|
+
BK
|
|
33426
33428
|
]
|
|
33427
|
-
}), t[19] =
|
|
33428
|
-
let
|
|
33429
|
-
t[22] !==
|
|
33429
|
+
}), t[19] = RK, t[20] = BK, t[21] = HK) : HK = t[21];
|
|
33430
|
+
let UK;
|
|
33431
|
+
t[22] !== HK || t[23] !== IK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33430
33432
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
33431
|
-
onClick:
|
|
33433
|
+
onClick: NK,
|
|
33432
33434
|
children: [
|
|
33433
|
-
|
|
33434
|
-
|
|
33435
|
+
IK,
|
|
33436
|
+
HK
|
|
33435
33437
|
]
|
|
33436
|
-
}), t[22] =
|
|
33437
|
-
let
|
|
33438
|
-
t[25] === c ?
|
|
33438
|
+
}), t[22] = HK, t[23] = IK, t[24] = UK) : UK = t[24];
|
|
33439
|
+
let WK;
|
|
33440
|
+
t[25] === c ? WK = t[26] : (WK = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
33439
33441
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
33440
33442
|
children: c
|
|
33441
|
-
}), t[25] = c, t[26] =
|
|
33442
|
-
let
|
|
33443
|
-
t[27] !==
|
|
33443
|
+
}), t[25] = c, t[26] = WK);
|
|
33444
|
+
let GK;
|
|
33445
|
+
t[27] !== UK || t[28] !== WK ? (GK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
33444
33446
|
value: KEY,
|
|
33445
33447
|
className: "border-none",
|
|
33446
33448
|
children: [
|
|
33447
|
-
|
|
33448
|
-
|
|
33449
|
+
UK,
|
|
33450
|
+
WK
|
|
33449
33451
|
]
|
|
33450
|
-
}), t[27] =
|
|
33451
|
-
let
|
|
33452
|
-
t[30] !==
|
|
33452
|
+
}), t[27] = UK, t[28] = WK, t[29] = GK) : GK = t[29];
|
|
33453
|
+
let qK;
|
|
33454
|
+
t[30] !== GK || t[31] !== MK ? (qK = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
33453
33455
|
type: "single",
|
|
33454
33456
|
collapsible: true,
|
|
33455
|
-
value:
|
|
33456
|
-
children:
|
|
33457
|
-
}), t[30] =
|
|
33458
|
-
let
|
|
33459
|
-
t[33] !== K || t[34] !== I ? (
|
|
33457
|
+
value: MK,
|
|
33458
|
+
children: GK
|
|
33459
|
+
}), t[30] = GK, t[31] = MK, t[32] = qK) : qK = t[32];
|
|
33460
|
+
let JK;
|
|
33461
|
+
t[33] !== K || t[34] !== I ? (JK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33460
33462
|
tooltip: "Fix with AI",
|
|
33461
33463
|
openPrompt: () => K(false),
|
|
33462
33464
|
applyAutofix: () => K(true)
|
|
33463
|
-
}), t[33] = K, t[34] = I, t[35] =
|
|
33464
|
-
let
|
|
33465
|
-
t[36] !== A || t[37] !== w ? (
|
|
33465
|
+
}), t[33] = K, t[34] = I, t[35] = JK) : JK = t[35];
|
|
33466
|
+
let YK;
|
|
33467
|
+
t[36] !== A || t[37] !== w ? (YK = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33466
33468
|
content: "Attach pdb to the exception point.",
|
|
33467
33469
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33468
33470
|
size: "xs",
|
|
@@ -33479,9 +33481,9 @@ ${_}`,
|
|
|
33479
33481
|
"Launch debugger"
|
|
33480
33482
|
]
|
|
33481
33483
|
})
|
|
33482
|
-
}), t[36] = A, t[37] = w, t[38] =
|
|
33483
|
-
let
|
|
33484
|
-
t[39] !== _ || t[40] !== i ? (
|
|
33484
|
+
}), t[36] = A, t[37] = w, t[38] = YK) : YK = t[38];
|
|
33485
|
+
let XK;
|
|
33486
|
+
t[39] !== _ || t[40] !== i ? (XK = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33485
33487
|
children: [
|
|
33486
33488
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33487
33489
|
asChild: true,
|
|
@@ -33549,24 +33551,24 @@ ${_}`,
|
|
|
33549
33551
|
]
|
|
33550
33552
|
})
|
|
33551
33553
|
]
|
|
33552
|
-
}), t[39] = _, t[40] = i, t[41] =
|
|
33553
|
-
let
|
|
33554
|
-
t[42] !==
|
|
33554
|
+
}), t[39] = _, t[40] = i, t[41] = XK) : XK = t[41];
|
|
33555
|
+
let ZK;
|
|
33556
|
+
t[42] !== JK || t[43] !== YK || t[44] !== XK ? (ZK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33555
33557
|
className: "flex gap-2",
|
|
33556
33558
|
children: [
|
|
33559
|
+
JK,
|
|
33557
33560
|
YK,
|
|
33558
|
-
XK
|
|
33559
|
-
ZK
|
|
33561
|
+
XK
|
|
33560
33562
|
]
|
|
33561
|
-
}), t[42] =
|
|
33562
|
-
let
|
|
33563
|
-
return t[46] !==
|
|
33563
|
+
}), t[42] = JK, t[43] = YK, t[44] = XK, t[45] = ZK) : ZK = t[45];
|
|
33564
|
+
let QK;
|
|
33565
|
+
return t[46] !== qK || t[47] !== ZK ? (QK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33564
33566
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33565
33567
|
children: [
|
|
33566
|
-
|
|
33567
|
-
|
|
33568
|
+
qK,
|
|
33569
|
+
ZK
|
|
33568
33570
|
]
|
|
33569
|
-
}), t[46] =
|
|
33571
|
+
}), t[46] = qK, t[47] = ZK, t[48] = QK) : QK = t[48], QK;
|
|
33570
33572
|
};
|
|
33571
33573
|
function lastLine(e) {
|
|
33572
33574
|
var _a2, _b;
|
|
@@ -34956,7 +34958,7 @@ ${_}`,
|
|
|
34956
34958
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34957
34959
|
}
|
|
34958
34960
|
}
|
|
34959
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
34961
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev8");
|
|
34960
34962
|
showCodeInRunModeAtom = atom(true);
|
|
34961
34963
|
atom(null);
|
|
34962
34964
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -34984,110 +34986,111 @@ ${_}`,
|
|
|
34984
34986
|
}
|
|
34985
34987
|
});
|
|
34986
34988
|
export {
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
|
|
35004
|
-
|
|
35005
|
-
|
|
35006
|
-
|
|
35007
|
-
|
|
35008
|
-
|
|
35009
|
-
|
|
35010
|
-
|
|
35011
|
-
$fae977aafc393c5c$export$
|
|
35012
|
-
|
|
35013
|
-
|
|
35014
|
-
|
|
35015
|
-
|
|
35016
|
-
|
|
35017
|
-
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
35021
|
-
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
|
|
35025
|
-
|
|
35026
|
-
|
|
35027
|
-
|
|
35028
|
-
|
|
35029
|
-
|
|
35030
|
-
|
|
35031
|
-
|
|
35032
|
-
|
|
35033
|
-
|
|
35034
|
-
|
|
35035
|
-
|
|
35036
|
-
|
|
35037
|
-
|
|
35038
|
-
|
|
34989
|
+
TableHead as $,
|
|
34990
|
+
Command as A,
|
|
34991
|
+
ChartLoadingState as At,
|
|
34992
|
+
contextAwarePanelType as B,
|
|
34993
|
+
GripHorizontal as Bt,
|
|
34994
|
+
prettifyRowColumnCount as C,
|
|
34995
|
+
dateToLocalISOTime as Ct,
|
|
34996
|
+
DateRangePicker as D,
|
|
34997
|
+
TabsTrigger as Dt,
|
|
34998
|
+
DatePicker as E,
|
|
34999
|
+
TabsList as Et,
|
|
35000
|
+
CommandSeparator as F,
|
|
35001
|
+
HtmlOutput as Ft,
|
|
35002
|
+
Panel as G,
|
|
35003
|
+
Download as Gt,
|
|
35004
|
+
SlotNames as H,
|
|
35005
|
+
EyeOff as Ht,
|
|
35006
|
+
ContextAwarePanelItem as I,
|
|
35007
|
+
EmotionCacheProvider as It,
|
|
35008
|
+
Fill as J,
|
|
35009
|
+
ChevronsRight as Jt,
|
|
35010
|
+
PanelGroup as K,
|
|
35011
|
+
Code as Kt,
|
|
35012
|
+
PANEL_TYPES as L,
|
|
35013
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as Lt,
|
|
35014
|
+
CommandInput as M,
|
|
35015
|
+
useOverflowDetection as Mt,
|
|
35016
|
+
CommandItem as N,
|
|
35017
|
+
RenderTextWithLinks as Nt,
|
|
35018
|
+
Combobox as O,
|
|
35019
|
+
ChartErrorState as Ot,
|
|
35020
|
+
CommandList as P,
|
|
35021
|
+
Kbd as Pt,
|
|
35022
|
+
TableCell as Q,
|
|
35023
|
+
ArrowDownWideNarrow as Qt,
|
|
35024
|
+
contextAwarePanelOpen as R,
|
|
35025
|
+
$fae977aafc393c5c$export$6b862160d295c8e as Rt,
|
|
35026
|
+
downloadSizeLimitAtom as S,
|
|
35027
|
+
dateToLocalISODateTime as St,
|
|
35028
|
+
useInternalStateWithSync as T,
|
|
35029
|
+
TabsContent as Tt,
|
|
35030
|
+
slotsController as U,
|
|
35031
|
+
Expand as Ut,
|
|
35032
|
+
isCellAwareAtom as V,
|
|
35033
|
+
Funnel as Vt,
|
|
35034
|
+
Toggle as W,
|
|
35035
|
+
Ellipsis as Wt,
|
|
35036
|
+
Table as X,
|
|
35037
|
+
ChevronsDownUp as Xt,
|
|
35038
|
+
Provider$1 as Y,
|
|
35039
|
+
ChevronsLeft as Yt,
|
|
35040
|
+
TableBody as Z,
|
|
35041
|
+
ChevronLeft as Zt,
|
|
35039
35042
|
downloadBlob as _,
|
|
35040
35043
|
__tla,
|
|
35041
|
-
|
|
35044
|
+
toFieldTypes as _t,
|
|
35042
35045
|
DEFAULT_SLIDE_TYPE as a,
|
|
35043
|
-
|
|
35046
|
+
renderCellValue as at,
|
|
35044
35047
|
Progress as b,
|
|
35045
|
-
|
|
35048
|
+
Maps as bt,
|
|
35046
35049
|
Slide as c,
|
|
35047
|
-
|
|
35050
|
+
DelayMount as ct,
|
|
35048
35051
|
JsonOutput as d,
|
|
35049
|
-
|
|
35050
|
-
|
|
35052
|
+
getPageIndexForRow as dt,
|
|
35053
|
+
TableHeader as et,
|
|
35051
35054
|
OutputArea as f,
|
|
35052
|
-
|
|
35055
|
+
loadTableAndRawData as ft,
|
|
35053
35056
|
ADD_PRINTING_CLASS as g,
|
|
35054
|
-
|
|
35057
|
+
TOO_MANY_ROWS as gt,
|
|
35055
35058
|
InstallPackageButton as h,
|
|
35056
|
-
|
|
35059
|
+
SELECT_COLUMN_ID as ht,
|
|
35057
35060
|
DEFAULT_DECK_TRANSITION as i,
|
|
35058
|
-
|
|
35059
|
-
|
|
35060
|
-
|
|
35061
|
-
|
|
35062
|
-
|
|
35061
|
+
inferFieldTypes as it,
|
|
35062
|
+
CommandEmpty as j,
|
|
35063
|
+
LazyVegaEmbed as jt,
|
|
35064
|
+
ComboboxItem as k,
|
|
35065
|
+
ChartInfoState as kt,
|
|
35063
35066
|
RadioGroup as l,
|
|
35064
|
-
|
|
35067
|
+
useIntersectionObserver as lt,
|
|
35065
35068
|
DataTable as m,
|
|
35066
|
-
|
|
35069
|
+
INDEX_COLUMN_NAME as mt,
|
|
35067
35070
|
marimoVersionAtom as n,
|
|
35068
|
-
|
|
35071
|
+
NAMELESS_COLUMN_PREFIX as nt,
|
|
35069
35072
|
SLIDE_TYPE_OPTIONS_BY_VALUE as o,
|
|
35070
|
-
|
|
35073
|
+
ColumnChartContext as ot,
|
|
35071
35074
|
OutputRenderer as p,
|
|
35072
|
-
|
|
35073
|
-
|
|
35074
|
-
|
|
35075
|
+
loadTableData as pt,
|
|
35076
|
+
PanelResizeHandle as q,
|
|
35077
|
+
ChevronsUpDown as qt,
|
|
35075
35078
|
showCodeInRunModeAtom as r,
|
|
35076
|
-
|
|
35079
|
+
generateColumns as rt,
|
|
35077
35080
|
SlideSidebar as s,
|
|
35078
|
-
|
|
35081
|
+
ColumnChartSpecModel as st,
|
|
35079
35082
|
useNotebookCodeAvailable as t,
|
|
35080
|
-
|
|
35083
|
+
TableRow as tt,
|
|
35081
35084
|
RadioGroupItem as u,
|
|
35082
|
-
|
|
35085
|
+
usePrevious as ut,
|
|
35083
35086
|
downloadByURL as v,
|
|
35084
|
-
|
|
35085
|
-
|
|
35086
|
-
|
|
35087
|
+
getMimeValues as vt,
|
|
35088
|
+
prettifyRowCount as w,
|
|
35089
|
+
Tabs as wt,
|
|
35087
35090
|
Filenames as x,
|
|
35088
|
-
|
|
35091
|
+
dateToLocalISODate as xt,
|
|
35089
35092
|
downloadHTMLAsImage as y,
|
|
35090
|
-
|
|
35091
|
-
|
|
35092
|
-
|
|
35093
|
+
isNullishFilter as yt,
|
|
35094
|
+
contextAwarePanelOwner as z,
|
|
35095
|
+
TextWrap as zt
|
|
35093
35096
|
};
|