@marimo-team/islands 0.23.16-dev28 → 0.23.16-dev29
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-CTlBHNhq.js → common-CozjhRem.js} +799 -791
- package/dist/main.js +3 -10
- package/dist/{reveal-component-CAfix0fI.js → reveal-component-BaMyGKAw.js} +623 -615
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
- package/src/components/slides/reveal-component.tsx +22 -17
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slides.css +4 -2
|
@@ -35,7 +35,7 @@ import { V as getContainerWidth, n as formats } from "./vega-loader.browser-Dmpx
|
|
|
35
35
|
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-DX-IDS7n.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-kA09ykNq.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
|
|
38
|
-
let
|
|
38
|
+
let CommandSeparator, Kbd, ErrorState, getPageIndexForRow, ContextMenuTrigger, dateToLocalISODate, downloadHTMLAsImage, inferFieldTypes, ColumnName, DelayMount, downloadSizeLimitAtom, ColumnChartSpecModel, getUserColumnVisibilityCounts, TOO_MANY_ROWS, DateRangePicker, TabsList, useSelectList, dateToLocalISOTime, ContextMenu, toFieldTypes, Command, ChartInfoState, Combobox, TabsTrigger, ContextMenuContent, getMimeValues, prettifyRowColumnCount, loadTableData, prettifyRowCount, INDEX_COLUMN_NAME, ColumnPreviewContainer, useIntersectionObserver, getColumnCountForDisplay, SELECT_COLUMN_ID, CommandList, RenderTextWithLinks, ContextMenuItem, isNullishFilter, downloadExportedFile, generateColumns, Filenames, ColumnChartContext, CompactChipRow, Tabs, useInternalStateWithSync, dateToLocalISODateTime, DatePicker, TabsContent, CommandInput, LazyVegaEmbed, CommandEmpty, ChartLoadingState, CommandItem, useOverflowDetection, DataTable, ChevronsLeft, TableCell, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, downloadBlob, ArrowDownWideNarrow, TableRow, SLIDE_TYPE_OPTIONS_BY_VALUE, GripHorizontal, slotsController, Switch, Expand, PanelGroup, HtmlOutput, smartMatch, RadioGroup, Ellipsis, PanelResizeHandle, OutputRenderer, ChevronsRight, TableBody, OutputArea, ChevronsUpDown, Table, showCodeInRunModeAtom, isRecord, contextAwarePanelOwner, LoadingState, loadTableAndRawData, EmptyState, usePrevious, SlideSidebar, Funnel, Toggle, JsonOutput, Code, Provider$1, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, DEFAULT_DECK_VERTICAL_ALIGN, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, RadioGroupItem, Download, Fill, ComboboxItem, ChartErrorState, marimoVersionAtom, hasFunctionProperty, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, TextWrap, SlotNames, cellDomProps, EmotionCacheProvider, ContextAwarePanelItem, Slide, EyeOff, Panel, InstallPackageButton, ChevronsDownUp, TableHead, Progress, renderCellValue, downloadByURL, NAMELESS_COLUMN_PREFIX, ADD_PRINTING_CLASS, ChevronLeft, TableHeader, ContextMenuSeparator, Maps;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
|
|
|
2061
2061
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2062
2062
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2063
2063
|
if (e === t) return;
|
|
2064
|
-
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,
|
|
2065
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
2066
|
-
let
|
|
2067
|
-
if (
|
|
2068
|
-
else if (
|
|
2069
|
-
else if (
|
|
2070
|
-
else if (
|
|
2071
|
-
let e2 =
|
|
2064
|
+
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, pJ = c.top - E, mJ = c.bottom + O, hJ = c.left - A, gJ = c.right + M, _J = e === _ ? 0 : Q + $, vJ = e === _ ? 0 : q + J, yJ = e.offsetWidth - e.clientWidth - _J, bJ = e.offsetHeight - e.clientHeight - vJ, xJ = v + q + I, SJ = y - J - z - bJ, CJ = S + Q + U, wJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? CJ += yJ : wJ -= yJ;
|
|
2066
|
+
let TJ = pJ < xJ || mJ > SJ, EJ = hJ < CJ || gJ > wJ;
|
|
2067
|
+
if (TJ && i === "start") o += pJ - xJ;
|
|
2068
|
+
else if (TJ && i === "center") o += (pJ + mJ) / 2 - (xJ + SJ) / 2;
|
|
2069
|
+
else if (TJ && i === "end") o += mJ - SJ;
|
|
2070
|
+
else if (TJ && i === "nearest") {
|
|
2071
|
+
let e2 = pJ - xJ, t2 = mJ - SJ;
|
|
2072
2072
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2073
2073
|
}
|
|
2074
|
-
if (
|
|
2075
|
-
else if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
let e2 =
|
|
2074
|
+
if (EJ && a === "start") s += hJ - CJ;
|
|
2075
|
+
else if (EJ && a === "center") s += (hJ + gJ) / 2 - (CJ + wJ) / 2;
|
|
2076
|
+
else if (EJ && a === "end") s += gJ - wJ;
|
|
2077
|
+
else if (EJ && a === "nearest") {
|
|
2078
|
+
let e2 = hJ - CJ, t2 = gJ - wJ;
|
|
2079
2079
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2080
2080
|
}
|
|
2081
2081
|
e.scrollTo({
|
|
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
|
|
|
5185
5185
|
}
|
|
5186
5186
|
let $ = "bottom";
|
|
5187
5187
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5188
|
-
let
|
|
5189
|
-
q[I] +=
|
|
5190
|
-
let
|
|
5191
|
-
y && y <
|
|
5192
|
-
let
|
|
5193
|
-
|
|
5194
|
-
let
|
|
5195
|
-
x: U === "top" || U === "bottom" ?
|
|
5196
|
-
y: U === "left" || U === "right" ?
|
|
5188
|
+
let pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += pJ;
|
|
5190
|
+
let mJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < mJ && (mJ = y), n.height = Math.min(n.height, mJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += pJ;
|
|
5192
|
+
let hJ = {}, gJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], _J = gJ + 0.5 * t[z], vJ = S / 2 + w, yJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), bJ = n[z] - yJ - S / 2 - w;
|
|
5193
|
+
hJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(_J, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), vJ, bJ), { placement: U, crossPlacement: K } = A, S ? gJ = hJ[I] : K === "right" ? gJ += t[z] : K === "center" && (gJ += t[z] / 2);
|
|
5194
|
+
let xJ = U === "left" || U === "top" ? n[M] : 0, SJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? gJ : xJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? gJ : xJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: mJ,
|
|
5201
|
+
arrowOffsetLeft: hJ.left,
|
|
5202
|
+
arrowOffsetTop: hJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: SJ
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
|
|
|
7056
7056
|
n,
|
|
7057
7057
|
h
|
|
7058
7058
|
]);
|
|
7059
|
-
let
|
|
7059
|
+
let pJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7060
7060
|
role: "textbox",
|
|
7061
7061
|
"aria-valuemax": null,
|
|
7062
7062
|
"aria-valuemin": null,
|
|
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
|
|
|
7066
7066
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7067
7067
|
t.segments
|
|
7068
7068
|
]) && !t.isInvalid && (f = void 0);
|
|
7069
|
-
let
|
|
7070
|
-
"aria-label": `${
|
|
7069
|
+
let mJ = $bdb11010cef70236$export$f680877a34711e37(), hJ = !t.isDisabled && !t.isReadOnly && e.isEditable, gJ = e.type === "literal" ? "" : s.of(e.type), _J = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${gJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7071
7071
|
"aria-labelledby": d
|
|
7072
7072
|
});
|
|
7073
7073
|
if (e.type === "literal") return {
|
|
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
|
|
|
7075
7075
|
"aria-hidden": true
|
|
7076
7076
|
}
|
|
7077
7077
|
};
|
|
7078
|
-
let
|
|
7078
|
+
let vJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
vJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (vJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, _J, {
|
|
7088
|
+
id: mJ,
|
|
7089
|
+
...pJ,
|
|
7090
7090
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7091
7091
|
"aria-describedby": f,
|
|
7092
7092
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7093
7093
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
7094
|
-
contentEditable:
|
|
7095
|
-
suppressContentEditableWarning:
|
|
7096
|
-
spellCheck:
|
|
7097
|
-
autoCorrect:
|
|
7098
|
-
enterKeyHint:
|
|
7099
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
7094
|
+
contentEditable: hJ,
|
|
7095
|
+
suppressContentEditableWarning: hJ,
|
|
7096
|
+
spellCheck: hJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: hJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: hJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !hJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: vJ,
|
|
7104
7104
|
onPointerDown(e2) {
|
|
7105
7105
|
e2.stopPropagation();
|
|
7106
7106
|
},
|
|
@@ -10349,12 +10349,12 @@ Defaulting to \`null\`.`;
|
|
|
10349
10349
|
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);
|
|
10350
10350
|
}
|
|
10351
10351
|
}
|
|
10352
|
-
let
|
|
10352
|
+
let pJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10353
10353
|
w,
|
|
10354
10354
|
f,
|
|
10355
10355
|
s,
|
|
10356
10356
|
c
|
|
10357
|
-
]),
|
|
10357
|
+
]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null, gJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10358
10358
|
h,
|
|
10359
10359
|
o
|
|
10360
10360
|
]);
|
|
@@ -10371,8 +10371,8 @@ Defaulting to \`null\`.`;
|
|
|
10371
10371
|
maxValue: c,
|
|
10372
10372
|
focusedDate: O,
|
|
10373
10373
|
timeZone: E,
|
|
10374
|
-
validationState:
|
|
10375
|
-
isValueInvalid:
|
|
10374
|
+
validationState: hJ,
|
|
10375
|
+
isValueInvalid: mJ,
|
|
10376
10376
|
setFocusedDate(e2) {
|
|
10377
10377
|
Q(e2);
|
|
10378
10378
|
},
|
|
@@ -10397,12 +10397,12 @@ Defaulting to \`null\`.`;
|
|
|
10397
10397
|
}));
|
|
10398
10398
|
},
|
|
10399
10399
|
focusNextPage() {
|
|
10400
|
-
let e2 = M.add(
|
|
10401
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10400
|
+
let e2 = M.add(gJ);
|
|
10401
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
|
|
10402
10402
|
},
|
|
10403
10403
|
focusPreviousPage() {
|
|
10404
|
-
let e2 = M.subtract(
|
|
10405
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10404
|
+
let e2 = M.subtract(gJ);
|
|
10405
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
|
|
10406
10406
|
},
|
|
10407
10407
|
focusSectionStart() {
|
|
10408
10408
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10539,13 +10539,13 @@ Defaulting to \`null\`.`;
|
|
|
10539
10539
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10540
10540
|
}), q(null);
|
|
10541
10541
|
}
|
|
10542
|
-
}, [$,
|
|
10543
|
-
|
|
10542
|
+
}, [$, pJ] = (0, import_react.useState)(false), { isDateUnavailable: mJ } = e, hJ = (0, import_react.useMemo)(() => !h || v ? false : mJ && (mJ(h.start) || mJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10543
|
+
mJ,
|
|
10544
10544
|
h,
|
|
10545
10545
|
v,
|
|
10546
10546
|
c,
|
|
10547
10547
|
d
|
|
10548
|
-
]),
|
|
10548
|
+
]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "invalid" : null;
|
|
10549
10549
|
return {
|
|
10550
10550
|
...I,
|
|
10551
10551
|
value: h,
|
|
@@ -10553,8 +10553,8 @@ Defaulting to \`null\`.`;
|
|
|
10553
10553
|
anchorDate: v,
|
|
10554
10554
|
setAnchorDate: q,
|
|
10555
10555
|
highlightedRange: J,
|
|
10556
|
-
validationState:
|
|
10557
|
-
isValueInvalid:
|
|
10556
|
+
validationState: _J,
|
|
10557
|
+
isValueInvalid: gJ,
|
|
10558
10558
|
selectFocusedDate() {
|
|
10559
10559
|
Q(I.focusedDate);
|
|
10560
10560
|
},
|
|
@@ -10570,7 +10570,7 @@ Defaulting to \`null\`.`;
|
|
|
10570
10570
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10571
10571
|
},
|
|
10572
10572
|
isDragging: $,
|
|
10573
|
-
setDragging:
|
|
10573
|
+
setDragging: pJ
|
|
10574
10574
|
};
|
|
10575
10575
|
}
|
|
10576
10576
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11757,7 +11757,7 @@ Defaulting to \`null\`.`;
|
|
|
11757
11757
|
_,
|
|
11758
11758
|
S,
|
|
11759
11759
|
v
|
|
11760
|
-
]),
|
|
11760
|
+
]), pJ = (0, import_react.useMemo)(() => {
|
|
11761
11761
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11762
11762
|
"era",
|
|
11763
11763
|
"year",
|
|
@@ -11775,15 +11775,15 @@ Defaulting to \`null\`.`;
|
|
|
11775
11775
|
e.maxGranularity,
|
|
11776
11776
|
_,
|
|
11777
11777
|
w
|
|
11778
|
-
]), [
|
|
11779
|
-
(M !==
|
|
11780
|
-
let
|
|
11781
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11778
|
+
]), [mJ, hJ] = (0, import_react.useState)(M), [gJ, _J] = (0, import_react.useState)(S), [vJ, yJ] = (0, import_react.useState)(w);
|
|
11779
|
+
(M !== mJ || w !== vJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, gJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), hJ(M), _J(S), yJ(w), z(I));
|
|
11780
|
+
let bJ = (t2) => {
|
|
11781
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(pJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11782
11782
|
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);
|
|
11783
11783
|
else {
|
|
11784
|
-
if (t2.isComplete(
|
|
11784
|
+
if (t2.isComplete(pJ)) {
|
|
11785
11785
|
let e2 = t2.toValue(M ?? $);
|
|
11786
|
-
if (t2.validate(e2,
|
|
11786
|
+
if (t2.validate(e2, pJ)) {
|
|
11787
11787
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11788
11788
|
if (!E || t3.compare(E) !== 0) {
|
|
11789
11789
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11793,83 +11793,83 @@ Defaulting to \`null\`.`;
|
|
|
11793
11793
|
}
|
|
11794
11794
|
z(t2);
|
|
11795
11795
|
}
|
|
11796
|
-
},
|
|
11796
|
+
}, xJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11797
11797
|
I,
|
|
11798
11798
|
y,
|
|
11799
11799
|
M,
|
|
11800
11800
|
$
|
|
11801
|
-
]),
|
|
11802
|
-
|
|
11801
|
+
]), SJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(xJ, I, J, Q, S, t, _), [
|
|
11802
|
+
xJ,
|
|
11803
11803
|
J,
|
|
11804
11804
|
Q,
|
|
11805
11805
|
I,
|
|
11806
11806
|
S,
|
|
11807
11807
|
t,
|
|
11808
11808
|
_
|
|
11809
|
-
]),
|
|
11810
|
-
|
|
11811
|
-
},
|
|
11809
|
+
]), CJ = (e2, t2) => {
|
|
11810
|
+
bJ(I.cycle(e2, t2, $, pJ));
|
|
11811
|
+
}, wJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11812
11812
|
E,
|
|
11813
11813
|
c,
|
|
11814
11814
|
d,
|
|
11815
11815
|
f,
|
|
11816
11816
|
K
|
|
11817
|
-
]),
|
|
11817
|
+
]), TJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11818
11818
|
...e,
|
|
11819
11819
|
value: E,
|
|
11820
|
-
builtinValidation:
|
|
11821
|
-
}),
|
|
11820
|
+
builtinValidation: wJ
|
|
11821
|
+
}), EJ = TJ.displayValidation.isInvalid, DJ = e.validationState || (EJ ? "invalid" : null);
|
|
11822
11822
|
return {
|
|
11823
|
-
...
|
|
11823
|
+
...TJ,
|
|
11824
11824
|
value: M,
|
|
11825
11825
|
defaultValue: e.defaultValue ?? A,
|
|
11826
|
-
dateValue:
|
|
11826
|
+
dateValue: xJ,
|
|
11827
11827
|
calendar: S,
|
|
11828
|
-
setValue:
|
|
11829
|
-
segments:
|
|
11828
|
+
setValue: bJ,
|
|
11829
|
+
segments: SJ,
|
|
11830
11830
|
dateFormatter: J,
|
|
11831
|
-
validationState:
|
|
11832
|
-
isInvalid:
|
|
11831
|
+
validationState: DJ,
|
|
11832
|
+
isInvalid: EJ,
|
|
11833
11833
|
granularity: _,
|
|
11834
11834
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11835
11835
|
isDisabled: a,
|
|
11836
11836
|
isReadOnly: o,
|
|
11837
11837
|
isRequired: s,
|
|
11838
11838
|
increment(e2) {
|
|
11839
|
-
|
|
11839
|
+
CJ(e2, 1);
|
|
11840
11840
|
},
|
|
11841
11841
|
decrement(e2) {
|
|
11842
|
-
|
|
11842
|
+
CJ(e2, -1);
|
|
11843
11843
|
},
|
|
11844
11844
|
incrementPage(e2) {
|
|
11845
|
-
|
|
11845
|
+
CJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11846
11846
|
},
|
|
11847
11847
|
decrementPage(e2) {
|
|
11848
|
-
|
|
11848
|
+
CJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11849
11849
|
},
|
|
11850
11850
|
incrementToMax(e2) {
|
|
11851
11851
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11852
|
-
|
|
11852
|
+
bJ(I.set(e2, t2, $));
|
|
11853
11853
|
},
|
|
11854
11854
|
decrementToMin(e2) {
|
|
11855
11855
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11856
|
-
|
|
11856
|
+
bJ(I.set(e2, t2, $));
|
|
11857
11857
|
},
|
|
11858
11858
|
setSegment(e2, t2) {
|
|
11859
|
-
|
|
11859
|
+
bJ(I.set(e2, t2, $));
|
|
11860
11860
|
},
|
|
11861
11861
|
confirmPlaceholder() {
|
|
11862
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11862
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(pJ)) {
|
|
11863
11863
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11864
11864
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11865
11865
|
}
|
|
11866
11866
|
},
|
|
11867
11867
|
clearSegment(e2) {
|
|
11868
11868
|
let t2 = I;
|
|
11869
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11869
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), bJ(t2);
|
|
11870
11870
|
},
|
|
11871
11871
|
formatValue(e2) {
|
|
11872
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11872
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(xJ) : "";
|
|
11873
11873
|
},
|
|
11874
11874
|
getDateFormatter(e2, t2) {
|
|
11875
11875
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11989,7 +11989,7 @@ Defaulting to \`null\`.`;
|
|
|
11989
11989
|
e.endName
|
|
11990
11990
|
]),
|
|
11991
11991
|
builtinValidation: J
|
|
11992
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11992
|
+
}), $ = Q.displayValidation.isInvalid, pJ = e.validationState || ($ ? "invalid" : null);
|
|
11993
11993
|
return {
|
|
11994
11994
|
...Q,
|
|
11995
11995
|
value: c,
|
|
@@ -12035,7 +12035,7 @@ Defaulting to \`null\`.`;
|
|
|
12035
12035
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12036
12036
|
}), t.setOpen(n2);
|
|
12037
12037
|
},
|
|
12038
|
-
validationState:
|
|
12038
|
+
validationState: pJ,
|
|
12039
12039
|
isInvalid: $,
|
|
12040
12040
|
formatValue(t2, n2) {
|
|
12041
12041
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15929,33 +15929,33 @@ try {
|
|
|
15929
15929
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15930
15930
|
function y(e2) {
|
|
15931
15931
|
var _a2, _b, _c, _d;
|
|
15932
|
-
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,
|
|
15932
|
+
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, pJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15933
15933
|
h2
|
|
15934
|
-
]),
|
|
15935
|
-
|
|
15936
|
-
]),
|
|
15937
|
-
supportedColorSchemes:
|
|
15938
|
-
defaultLightColorScheme:
|
|
15939
|
-
defaultDarkColorScheme:
|
|
15934
|
+
]), mJ = pJ[t], hJ = mJ || pJ, { colorSchemes: gJ = _, components: _J = v, cssVarPrefix: vJ } = hJ, yJ = Object.keys(gJ).filter((e3) => !!gJ[e3]).join(","), bJ = import_react.useMemo(() => yJ.split(","), [
|
|
15935
|
+
yJ
|
|
15936
|
+
]), xJ = typeof s == "string" ? s : s.light, SJ = typeof s == "string" ? s : s.dark, { mode: CJ, setMode: wJ, systemMode: TJ, lightColorScheme: EJ, darkColorScheme: DJ, colorScheme: OJ, setColorScheme: kJ } = useCurrentColorScheme({
|
|
15937
|
+
supportedColorSchemes: bJ,
|
|
15938
|
+
defaultLightColorScheme: xJ,
|
|
15939
|
+
defaultDarkColorScheme: SJ,
|
|
15940
15940
|
modeStorageKey: y2,
|
|
15941
15941
|
colorSchemeStorageKey: S2,
|
|
15942
|
-
defaultMode:
|
|
15942
|
+
defaultMode: gJ[xJ] && gJ[SJ] ? U : ((_b = (_a2 = gJ[hJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = hJ.palette) == null ? void 0 : _c.mode),
|
|
15943
15943
|
storageManager: E,
|
|
15944
15944
|
storageWindow: O,
|
|
15945
15945
|
noSsr: K
|
|
15946
|
-
}),
|
|
15947
|
-
$ && (
|
|
15948
|
-
let
|
|
15946
|
+
}), AJ = CJ, jJ = OJ;
|
|
15947
|
+
$ && (AJ = Q.mode, jJ = Q.colorScheme);
|
|
15948
|
+
let MJ = import_react.useMemo(() => {
|
|
15949
15949
|
var _a3;
|
|
15950
|
-
let e3 =
|
|
15951
|
-
...
|
|
15952
|
-
components:
|
|
15953
|
-
colorSchemes:
|
|
15954
|
-
cssVarPrefix:
|
|
15950
|
+
let e3 = jJ || hJ.defaultColorScheme, t2 = ((_a3 = hJ.generateThemeVars) == null ? void 0 : _a3.call(hJ)) || hJ.vars, n2 = {
|
|
15951
|
+
...hJ,
|
|
15952
|
+
components: _J,
|
|
15953
|
+
colorSchemes: gJ,
|
|
15954
|
+
cssVarPrefix: vJ,
|
|
15955
15955
|
vars: t2
|
|
15956
15956
|
};
|
|
15957
15957
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15958
|
-
let t3 =
|
|
15958
|
+
let t3 = gJ[e3];
|
|
15959
15959
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15960
15960
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15961
15961
|
...n2[e4],
|
|
@@ -15965,31 +15965,31 @@ try {
|
|
|
15965
15965
|
}
|
|
15966
15966
|
return c ? c(n2) : n2;
|
|
15967
15967
|
}, [
|
|
15968
|
-
mJ,
|
|
15969
|
-
AJ,
|
|
15970
|
-
gJ,
|
|
15971
15968
|
hJ,
|
|
15972
|
-
|
|
15973
|
-
|
|
15969
|
+
jJ,
|
|
15970
|
+
_J,
|
|
15971
|
+
gJ,
|
|
15972
|
+
vJ
|
|
15973
|
+
]), NJ = hJ.colorSchemeSelector;
|
|
15974
15974
|
useEnhancedEffect_default(() => {
|
|
15975
|
-
if (
|
|
15976
|
-
let e3 =
|
|
15977
|
-
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(...
|
|
15975
|
+
if (jJ && M && NJ && NJ !== "media") {
|
|
15976
|
+
let e3 = NJ, t2 = NJ;
|
|
15977
|
+
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(...bJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", jJ));
|
|
15978
15978
|
else {
|
|
15979
|
-
let e4 = t2.replace("%s",
|
|
15979
|
+
let e4 = t2.replace("%s", jJ).match(/\[([^\]]+)\]/);
|
|
15980
15980
|
if (e4) {
|
|
15981
15981
|
let [t3, n2] = e4[1].split("=");
|
|
15982
|
-
n2 ||
|
|
15983
|
-
M.removeAttribute(t3.replace(
|
|
15982
|
+
n2 || bJ.forEach((e5) => {
|
|
15983
|
+
M.removeAttribute(t3.replace(jJ, e5));
|
|
15984
15984
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15985
|
-
} else M.setAttribute(t2,
|
|
15985
|
+
} else M.setAttribute(t2, jJ);
|
|
15986
15986
|
}
|
|
15987
15987
|
}
|
|
15988
15988
|
}, [
|
|
15989
|
-
|
|
15990
|
-
|
|
15989
|
+
jJ,
|
|
15990
|
+
NJ,
|
|
15991
15991
|
M,
|
|
15992
|
-
|
|
15992
|
+
bJ
|
|
15993
15993
|
]), import_react.useEffect(() => {
|
|
15994
15994
|
let e3;
|
|
15995
15995
|
if (w2 && q.current && A) {
|
|
@@ -16002,48 +16002,48 @@ try {
|
|
|
16002
16002
|
clearTimeout(e3);
|
|
16003
16003
|
};
|
|
16004
16004
|
}, [
|
|
16005
|
-
|
|
16005
|
+
jJ,
|
|
16006
16006
|
w2,
|
|
16007
16007
|
A
|
|
16008
16008
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
16009
16009
|
q.current = false;
|
|
16010
16010
|
}), []);
|
|
16011
|
-
let
|
|
16012
|
-
allColorSchemes:
|
|
16013
|
-
colorScheme:
|
|
16014
|
-
darkColorScheme:
|
|
16015
|
-
lightColorScheme:
|
|
16016
|
-
mode:
|
|
16017
|
-
setColorScheme:
|
|
16018
|
-
setMode:
|
|
16019
|
-
systemMode:
|
|
16011
|
+
let PJ = import_react.useMemo(() => ({
|
|
16012
|
+
allColorSchemes: bJ,
|
|
16013
|
+
colorScheme: jJ,
|
|
16014
|
+
darkColorScheme: DJ,
|
|
16015
|
+
lightColorScheme: EJ,
|
|
16016
|
+
mode: AJ,
|
|
16017
|
+
setColorScheme: kJ,
|
|
16018
|
+
setMode: wJ,
|
|
16019
|
+
systemMode: TJ
|
|
16020
16020
|
}), [
|
|
16021
|
-
|
|
16022
|
-
|
|
16021
|
+
bJ,
|
|
16022
|
+
jJ,
|
|
16023
|
+
DJ,
|
|
16023
16024
|
EJ,
|
|
16024
|
-
|
|
16025
|
+
AJ,
|
|
16025
16026
|
kJ,
|
|
16026
|
-
OJ,
|
|
16027
|
-
CJ,
|
|
16028
16027
|
wJ,
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16028
|
+
TJ,
|
|
16029
|
+
MJ.colorSchemeSelector
|
|
16030
|
+
]), FJ = true;
|
|
16031
|
+
(z || hJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === vJ) && (FJ = false);
|
|
16032
|
+
let IJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16033
16033
|
children: [
|
|
16034
16034
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16035
|
-
themeId:
|
|
16036
|
-
theme:
|
|
16035
|
+
themeId: mJ ? t : void 0,
|
|
16036
|
+
theme: MJ,
|
|
16037
16037
|
children: d2
|
|
16038
16038
|
}),
|
|
16039
|
-
|
|
16040
|
-
styles: ((_d =
|
|
16039
|
+
FJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16040
|
+
styles: ((_d = MJ.generateStyleSheets) == null ? void 0 : _d.call(MJ)) || []
|
|
16041
16041
|
})
|
|
16042
16042
|
]
|
|
16043
16043
|
});
|
|
16044
|
-
return $ ?
|
|
16045
|
-
value:
|
|
16046
|
-
children:
|
|
16044
|
+
return $ ? IJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16045
|
+
value: PJ,
|
|
16046
|
+
children: IJ
|
|
16047
16047
|
});
|
|
16048
16048
|
}
|
|
16049
16049
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17543,10 +17543,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17543
17543
|
let n = useDefaultProps({
|
|
17544
17544
|
props: e,
|
|
17545
17545
|
name: "MuiInputBase"
|
|
17546
|
-
}), { "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:
|
|
17547
|
-
}, []),
|
|
17546
|
+
}), { "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: pJ, onKeyDown: mJ, onKeyUp: hJ, placeholder: gJ, readOnly: _J, renderSuffix: vJ, rows: yJ, size: bJ, slotProps: xJ = {}, slots: SJ = {}, startAdornment: CJ, type: wJ = "text", value: TJ, ...EJ } = n, DJ = A.value == null ? TJ : A.value, { current: OJ } = import_react.useRef(DJ != null), kJ = import_react.useRef(), AJ = import_react.useCallback((e2) => {
|
|
17547
|
+
}, []), jJ = useForkRef_default(kJ, M, A.ref, AJ), [MJ, NJ] = import_react.useState(false), PJ = useFormControl(), FJ = formControlState({
|
|
17548
17548
|
props: n,
|
|
17549
|
-
muiFormControl:
|
|
17549
|
+
muiFormControl: PJ,
|
|
17550
17550
|
states: [
|
|
17551
17551
|
"color",
|
|
17552
17552
|
"disabled",
|
|
@@ -17557,145 +17557,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17557
17557
|
"filled"
|
|
17558
17558
|
]
|
|
17559
17559
|
});
|
|
17560
|
-
|
|
17561
|
-
!
|
|
17560
|
+
FJ.focused = PJ ? PJ.focused : MJ, import_react.useEffect(() => {
|
|
17561
|
+
!PJ && _ && MJ && (NJ(false), J && J());
|
|
17562
17562
|
}, [
|
|
17563
|
-
|
|
17563
|
+
PJ,
|
|
17564
17564
|
_,
|
|
17565
|
-
|
|
17565
|
+
MJ,
|
|
17566
17566
|
J
|
|
17567
17567
|
]);
|
|
17568
|
-
let
|
|
17569
|
-
isFilled(e2) ?
|
|
17568
|
+
let IJ = PJ && PJ.onFilled, LJ = PJ && PJ.onEmpty, RJ = import_react.useCallback((e2) => {
|
|
17569
|
+
isFilled(e2) ? IJ && IJ() : LJ && LJ();
|
|
17570
17570
|
}, [
|
|
17571
|
-
|
|
17572
|
-
|
|
17571
|
+
IJ,
|
|
17572
|
+
LJ
|
|
17573
17573
|
]);
|
|
17574
17574
|
useEnhancedEffect_default$1(() => {
|
|
17575
|
-
|
|
17576
|
-
value:
|
|
17575
|
+
OJ && RJ({
|
|
17576
|
+
value: DJ
|
|
17577
17577
|
});
|
|
17578
17578
|
}, [
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17579
|
+
DJ,
|
|
17580
|
+
RJ,
|
|
17581
|
+
OJ
|
|
17582
17582
|
]);
|
|
17583
|
-
let
|
|
17584
|
-
|
|
17585
|
-
},
|
|
17586
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17587
|
-
},
|
|
17588
|
-
if (!
|
|
17589
|
-
let t3 = e2.target ||
|
|
17583
|
+
let zJ = (e2) => {
|
|
17584
|
+
pJ && pJ(e2), A.onFocus && A.onFocus(e2), PJ && PJ.onFocus ? PJ.onFocus(e2) : NJ(true);
|
|
17585
|
+
}, BJ = (e2) => {
|
|
17586
|
+
J && J(e2), A.onBlur && A.onBlur(e2), PJ && PJ.onBlur ? PJ.onBlur(e2) : NJ(false);
|
|
17587
|
+
}, VJ = (e2, ...t2) => {
|
|
17588
|
+
if (!OJ) {
|
|
17589
|
+
let t3 = e2.target || kJ.current;
|
|
17590
17590
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17591
|
-
|
|
17591
|
+
RJ({
|
|
17592
17592
|
value: t3.value
|
|
17593
17593
|
});
|
|
17594
17594
|
}
|
|
17595
17595
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17596
17596
|
};
|
|
17597
17597
|
import_react.useEffect(() => {
|
|
17598
|
-
|
|
17598
|
+
RJ(kJ.current);
|
|
17599
17599
|
}, []);
|
|
17600
|
-
let
|
|
17601
|
-
|
|
17602
|
-
},
|
|
17603
|
-
K &&
|
|
17600
|
+
let HJ = (e2) => {
|
|
17601
|
+
kJ.current && e2.currentTarget === e2.target && kJ.current.focus(), $ && $(e2);
|
|
17602
|
+
}, UJ = O, WJ = A;
|
|
17603
|
+
K && UJ === "input" && (WJ = yJ ? {
|
|
17604
17604
|
type: void 0,
|
|
17605
|
-
minRows:
|
|
17606
|
-
maxRows:
|
|
17607
|
-
...
|
|
17605
|
+
minRows: yJ,
|
|
17606
|
+
maxRows: yJ,
|
|
17607
|
+
...WJ
|
|
17608
17608
|
} : {
|
|
17609
17609
|
type: void 0,
|
|
17610
17610
|
maxRows: z,
|
|
17611
17611
|
minRows: U,
|
|
17612
|
-
...
|
|
17613
|
-
},
|
|
17614
|
-
let
|
|
17615
|
-
|
|
17612
|
+
...WJ
|
|
17613
|
+
}, UJ = TextareaAutosize_default);
|
|
17614
|
+
let GJ = (e2) => {
|
|
17615
|
+
RJ(e2.animationName === "mui-auto-fill-cancel" ? kJ.current : {
|
|
17616
17616
|
value: "x"
|
|
17617
17617
|
});
|
|
17618
17618
|
};
|
|
17619
17619
|
import_react.useEffect(() => {
|
|
17620
|
-
|
|
17620
|
+
PJ && PJ.setAdornedStart(!!CJ);
|
|
17621
17621
|
}, [
|
|
17622
|
-
|
|
17623
|
-
|
|
17622
|
+
PJ,
|
|
17623
|
+
CJ
|
|
17624
17624
|
]);
|
|
17625
|
-
let
|
|
17625
|
+
let KJ = {
|
|
17626
17626
|
...n,
|
|
17627
|
-
color:
|
|
17628
|
-
disabled:
|
|
17627
|
+
color: FJ.color || "primary",
|
|
17628
|
+
disabled: FJ.disabled,
|
|
17629
17629
|
endAdornment: y,
|
|
17630
|
-
error:
|
|
17631
|
-
focused:
|
|
17632
|
-
formControl:
|
|
17630
|
+
error: FJ.error,
|
|
17631
|
+
focused: FJ.focused,
|
|
17632
|
+
formControl: PJ,
|
|
17633
17633
|
fullWidth: w,
|
|
17634
|
-
hiddenLabel:
|
|
17634
|
+
hiddenLabel: FJ.hiddenLabel,
|
|
17635
17635
|
multiline: K,
|
|
17636
|
-
size:
|
|
17637
|
-
startAdornment:
|
|
17638
|
-
type:
|
|
17639
|
-
},
|
|
17640
|
-
return
|
|
17641
|
-
...
|
|
17642
|
-
...
|
|
17636
|
+
size: FJ.size,
|
|
17637
|
+
startAdornment: CJ,
|
|
17638
|
+
type: wJ
|
|
17639
|
+
}, qJ = useUtilityClasses(KJ), JJ = SJ.root || d.Root || InputBaseRoot, YJ = xJ.root || f.root || {}, XJ = SJ.input || d.Input || InputBaseInput;
|
|
17640
|
+
return WJ = {
|
|
17641
|
+
...WJ,
|
|
17642
|
+
...xJ.input ?? f.input
|
|
17643
17643
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17644
17644
|
children: [
|
|
17645
17645
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17646
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17647
|
-
...
|
|
17646
|
+
(0, import_jsx_runtime.jsxs)(JJ, {
|
|
17647
|
+
...YJ,
|
|
17648
17648
|
ref: t,
|
|
17649
|
-
onClick:
|
|
17650
|
-
...
|
|
17651
|
-
...!isHostComponent_default(
|
|
17649
|
+
onClick: HJ,
|
|
17650
|
+
...EJ,
|
|
17651
|
+
...!isHostComponent_default(JJ) && {
|
|
17652
17652
|
ownerState: {
|
|
17653
|
-
...
|
|
17654
|
-
...
|
|
17653
|
+
...KJ,
|
|
17654
|
+
...YJ.ownerState
|
|
17655
17655
|
}
|
|
17656
17656
|
},
|
|
17657
|
-
className: clsx_default(
|
|
17657
|
+
className: clsx_default(qJ.root, YJ.className, s, _J && "MuiInputBase-readOnly"),
|
|
17658
17658
|
children: [
|
|
17659
|
-
|
|
17659
|
+
CJ,
|
|
17660
17660
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17661
17661
|
value: null,
|
|
17662
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17663
|
-
"aria-invalid":
|
|
17662
|
+
children: (0, import_jsx_runtime.jsx)(XJ, {
|
|
17663
|
+
"aria-invalid": FJ.error,
|
|
17664
17664
|
"aria-describedby": i,
|
|
17665
17665
|
autoComplete: a,
|
|
17666
17666
|
autoFocus: o,
|
|
17667
17667
|
defaultValue: h,
|
|
17668
|
-
disabled:
|
|
17668
|
+
disabled: FJ.disabled,
|
|
17669
17669
|
id: E,
|
|
17670
|
-
onAnimationStart:
|
|
17670
|
+
onAnimationStart: GJ,
|
|
17671
17671
|
name: q,
|
|
17672
|
-
placeholder:
|
|
17673
|
-
readOnly:
|
|
17674
|
-
required:
|
|
17675
|
-
rows:
|
|
17676
|
-
value:
|
|
17677
|
-
onKeyDown:
|
|
17678
|
-
onKeyUp:
|
|
17679
|
-
type:
|
|
17680
|
-
...
|
|
17681
|
-
...!isHostComponent_default(
|
|
17682
|
-
as:
|
|
17672
|
+
placeholder: gJ,
|
|
17673
|
+
readOnly: _J,
|
|
17674
|
+
required: FJ.required,
|
|
17675
|
+
rows: yJ,
|
|
17676
|
+
value: DJ,
|
|
17677
|
+
onKeyDown: mJ,
|
|
17678
|
+
onKeyUp: hJ,
|
|
17679
|
+
type: wJ,
|
|
17680
|
+
...WJ,
|
|
17681
|
+
...!isHostComponent_default(XJ) && {
|
|
17682
|
+
as: UJ,
|
|
17683
17683
|
ownerState: {
|
|
17684
|
-
...
|
|
17685
|
-
...
|
|
17684
|
+
...KJ,
|
|
17685
|
+
...WJ.ownerState
|
|
17686
17686
|
}
|
|
17687
17687
|
},
|
|
17688
|
-
ref:
|
|
17689
|
-
className: clsx_default(
|
|
17690
|
-
onBlur:
|
|
17691
|
-
onChange:
|
|
17692
|
-
onFocus:
|
|
17688
|
+
ref: jJ,
|
|
17689
|
+
className: clsx_default(qJ.input, WJ.className, _J && "MuiInputBase-readOnly"),
|
|
17690
|
+
onBlur: BJ,
|
|
17691
|
+
onChange: VJ,
|
|
17692
|
+
onFocus: zJ
|
|
17693
17693
|
})
|
|
17694
17694
|
}),
|
|
17695
17695
|
y,
|
|
17696
|
-
|
|
17697
|
-
...
|
|
17698
|
-
startAdornment:
|
|
17696
|
+
vJ ? vJ({
|
|
17697
|
+
...FJ,
|
|
17698
|
+
startAdornment: CJ
|
|
17699
17699
|
}) : null
|
|
17700
17700
|
]
|
|
17701
17701
|
})
|
|
@@ -18771,30 +18771,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18771
18771
|
M,
|
|
18772
18772
|
i,
|
|
18773
18773
|
a
|
|
18774
|
-
]), 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),
|
|
18775
|
-
|
|
18774
|
+
]), 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), pJ = useTextColor(), mJ = useJsonViewerStore((e2) => e2.colorspace.base0C), hJ = useJsonViewerStore((e2) => e2.colorspace.base0A), gJ = useJsonViewerStore((e2) => e2.displayComma), _J = useJsonViewerStore((e2) => e2.quotesOnKeys), vJ = useJsonViewerStore((e2) => e2.rootName), yJ = U === t, bJ = Number.isInteger(Number(A)), xJ = useJsonViewerStore((e2) => e2.enableAdd), SJ = useJsonViewerStore((e2) => e2.onAdd), CJ = (0, import_react.useMemo)(() => !SJ || a !== void 0 || xJ === false || v === false ? false : typeof xJ == "function" ? !!xJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18775
|
+
SJ,
|
|
18776
18776
|
a,
|
|
18777
18777
|
i,
|
|
18778
|
-
|
|
18778
|
+
xJ,
|
|
18779
18779
|
v,
|
|
18780
18780
|
t
|
|
18781
|
-
]),
|
|
18782
|
-
|
|
18781
|
+
]), wJ = useJsonViewerStore((e2) => e2.enableDelete), TJ = useJsonViewerStore((e2) => e2.onDelete), EJ = (0, import_react.useMemo)(() => !TJ || a !== void 0 || yJ || wJ === false || v === false ? false : typeof wJ == "function" ? !!wJ(i, t) : wJ, [
|
|
18782
|
+
TJ,
|
|
18783
18783
|
a,
|
|
18784
|
-
|
|
18784
|
+
yJ,
|
|
18785
18785
|
i,
|
|
18786
|
-
|
|
18786
|
+
wJ,
|
|
18787
18787
|
v,
|
|
18788
18788
|
t
|
|
18789
|
-
]),
|
|
18790
|
-
|
|
18789
|
+
]), DJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: OJ, copied: kJ } = useClipboard(), AJ = useJsonViewerStore((e2) => e2.highlightUpdates), jJ = (0, import_react.useMemo)(() => !AJ || 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, [
|
|
18790
|
+
AJ,
|
|
18791
18791
|
n,
|
|
18792
18792
|
t
|
|
18793
|
-
]),
|
|
18793
|
+
]), MJ = (0, import_react.useRef)();
|
|
18794
18794
|
(0, import_react.useEffect)(() => {
|
|
18795
|
-
|
|
18795
|
+
MJ.current && jJ && "animate" in MJ.current && MJ.current.animate([
|
|
18796
18796
|
{
|
|
18797
|
-
backgroundColor:
|
|
18797
|
+
backgroundColor: hJ
|
|
18798
18798
|
},
|
|
18799
18799
|
{
|
|
18800
18800
|
backgroundColor: ""
|
|
@@ -18804,22 +18804,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18804
18804
|
easing: "ease-in"
|
|
18805
18805
|
});
|
|
18806
18806
|
}, [
|
|
18807
|
-
|
|
18808
|
-
|
|
18807
|
+
hJ,
|
|
18808
|
+
jJ,
|
|
18809
18809
|
n,
|
|
18810
18810
|
t
|
|
18811
18811
|
]);
|
|
18812
|
-
let
|
|
18812
|
+
let NJ = (0, import_react.useCallback)((e2) => {
|
|
18813
18813
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18814
18814
|
}, [
|
|
18815
18815
|
h,
|
|
18816
18816
|
t
|
|
18817
|
-
]),
|
|
18817
|
+
]), PJ = (0, import_react.useCallback)(() => {
|
|
18818
18818
|
Q(false), E("");
|
|
18819
18819
|
}, [
|
|
18820
18820
|
Q,
|
|
18821
18821
|
E
|
|
18822
|
-
]),
|
|
18822
|
+
]), FJ = (0, import_react.useCallback)((e2) => {
|
|
18823
18823
|
if (Q(false), _) try {
|
|
18824
18824
|
$(i, t, _(e2));
|
|
18825
18825
|
} catch {
|
|
@@ -18830,14 +18830,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18830
18830
|
$,
|
|
18831
18831
|
i,
|
|
18832
18832
|
t
|
|
18833
|
-
]),
|
|
18833
|
+
]), IJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18834
18834
|
children: [
|
|
18835
18835
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18836
18836
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18837
18837
|
sx: {
|
|
18838
18838
|
fontSize: ".8rem"
|
|
18839
18839
|
},
|
|
18840
|
-
onClick:
|
|
18840
|
+
onClick: PJ
|
|
18841
18841
|
})
|
|
18842
18842
|
}),
|
|
18843
18843
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18845,22 +18845,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18845
18845
|
sx: {
|
|
18846
18846
|
fontSize: ".8rem"
|
|
18847
18847
|
},
|
|
18848
|
-
onClick: () =>
|
|
18848
|
+
onClick: () => FJ(w)
|
|
18849
18849
|
})
|
|
18850
18850
|
})
|
|
18851
18851
|
]
|
|
18852
18852
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18853
18853
|
children: [
|
|
18854
|
-
|
|
18854
|
+
DJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18855
18855
|
onClick: (e2) => {
|
|
18856
18856
|
e2.preventDefault();
|
|
18857
18857
|
try {
|
|
18858
|
-
|
|
18858
|
+
OJ(i, t, copyString);
|
|
18859
18859
|
} catch (e3) {
|
|
18860
18860
|
console.error(e3);
|
|
18861
18861
|
}
|
|
18862
18862
|
},
|
|
18863
|
-
children:
|
|
18863
|
+
children: kJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18864
18864
|
sx: {
|
|
18865
18865
|
fontSize: ".8rem"
|
|
18866
18866
|
}
|
|
@@ -18871,16 +18871,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18871
18871
|
})
|
|
18872
18872
|
}),
|
|
18873
18873
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18874
|
-
onClick:
|
|
18874
|
+
onClick: NJ,
|
|
18875
18875
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18876
18876
|
sx: {
|
|
18877
18877
|
fontSize: ".8rem"
|
|
18878
18878
|
}
|
|
18879
18879
|
})
|
|
18880
18880
|
}),
|
|
18881
|
-
|
|
18881
|
+
CJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18882
18882
|
onClick: (e2) => {
|
|
18883
|
-
e2.preventDefault(),
|
|
18883
|
+
e2.preventDefault(), SJ == null ? void 0 : SJ(i);
|
|
18884
18884
|
},
|
|
18885
18885
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18886
18886
|
sx: {
|
|
@@ -18888,9 +18888,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18888
18888
|
}
|
|
18889
18889
|
})
|
|
18890
18890
|
}),
|
|
18891
|
-
|
|
18891
|
+
EJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18892
18892
|
onClick: (e2) => {
|
|
18893
|
-
e2.preventDefault(),
|
|
18893
|
+
e2.preventDefault(), TJ == null ? void 0 : TJ(i, t);
|
|
18894
18894
|
},
|
|
18895
18895
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18896
18896
|
sx: {
|
|
@@ -18903,24 +18903,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18903
18903
|
f,
|
|
18904
18904
|
h,
|
|
18905
18905
|
_,
|
|
18906
|
+
kJ,
|
|
18906
18907
|
OJ,
|
|
18907
|
-
DJ,
|
|
18908
18908
|
S,
|
|
18909
18909
|
J,
|
|
18910
|
+
DJ,
|
|
18911
|
+
CJ,
|
|
18910
18912
|
EJ,
|
|
18911
|
-
SJ,
|
|
18912
|
-
TJ,
|
|
18913
18913
|
w,
|
|
18914
18914
|
i,
|
|
18915
18915
|
t,
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
MJ,
|
|
18916
|
+
SJ,
|
|
18917
|
+
TJ,
|
|
18919
18918
|
NJ,
|
|
18920
|
-
PJ
|
|
18921
|
-
|
|
18919
|
+
PJ,
|
|
18920
|
+
FJ
|
|
18921
|
+
]), LJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18922
18922
|
t
|
|
18923
|
-
]),
|
|
18923
|
+
]), RJ = !LJ && !!(c && d), zJ = useJsonViewerStore((e2) => e2.keyRenderer), BJ = (0, import_react.useMemo)(() => ({
|
|
18924
18924
|
path: i,
|
|
18925
18925
|
inspect: K,
|
|
18926
18926
|
setInspect: q,
|
|
@@ -18952,18 +18952,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18952
18952
|
className: "data-key",
|
|
18953
18953
|
sx: {
|
|
18954
18954
|
lineHeight: 1.5,
|
|
18955
|
-
color:
|
|
18955
|
+
color: pJ,
|
|
18956
18956
|
letterSpacing: 0.5,
|
|
18957
18957
|
opacity: 0.8
|
|
18958
18958
|
},
|
|
18959
18959
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18960
|
-
e2.isDefaultPrevented() ||
|
|
18960
|
+
e2.isDefaultPrevented() || LJ || q((e3) => !e3);
|
|
18961
18961
|
}, [
|
|
18962
|
-
|
|
18962
|
+
LJ,
|
|
18963
18963
|
q
|
|
18964
18964
|
]),
|
|
18965
18965
|
children: [
|
|
18966
|
-
|
|
18966
|
+
RJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18967
18967
|
className: "data-key-toggle-expanded",
|
|
18968
18968
|
sx: {
|
|
18969
18969
|
fontSize: ".8rem",
|
|
@@ -18981,27 +18981,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18981
18981
|
}
|
|
18982
18982
|
}) : null,
|
|
18983
18983
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18984
|
-
ref:
|
|
18984
|
+
ref: MJ,
|
|
18985
18985
|
className: "data-key-key",
|
|
18986
18986
|
component: "span",
|
|
18987
|
-
children:
|
|
18987
|
+
children: yJ && O === 0 ? vJ === false ? null : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18988
18988
|
children: [
|
|
18989
18989
|
'"',
|
|
18990
|
-
|
|
18990
|
+
vJ,
|
|
18991
18991
|
'"'
|
|
18992
18992
|
]
|
|
18993
18993
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18994
|
-
children:
|
|
18995
|
-
}) :
|
|
18996
|
-
...
|
|
18997
|
-
}) : a === void 0 && (
|
|
18994
|
+
children: vJ
|
|
18995
|
+
}) : zJ.when(BJ) ? (0, import_jsx_runtime.jsx)(zJ, {
|
|
18996
|
+
...BJ
|
|
18997
|
+
}) : a === void 0 && (bJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18998
18998
|
component: "span",
|
|
18999
18999
|
style: {
|
|
19000
|
-
color:
|
|
19001
|
-
userSelect:
|
|
19000
|
+
color: mJ,
|
|
19001
|
+
userSelect: bJ ? "none" : "auto"
|
|
19002
19002
|
},
|
|
19003
19003
|
children: A
|
|
19004
|
-
}) :
|
|
19004
|
+
}) : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
19005
19005
|
children: [
|
|
19006
19006
|
'"',
|
|
19007
19007
|
A,
|
|
@@ -19011,7 +19011,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19011
19011
|
children: A
|
|
19012
19012
|
}))
|
|
19013
19013
|
}),
|
|
19014
|
-
|
|
19014
|
+
yJ ? vJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19015
19015
|
className: "data-key-colon",
|
|
19016
19016
|
sx: {
|
|
19017
19017
|
mr: 0.5
|
|
@@ -19024,38 +19024,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19024
19024
|
".data-key-key:empty + &": {
|
|
19025
19025
|
display: "none"
|
|
19026
19026
|
},
|
|
19027
|
-
userSelect:
|
|
19027
|
+
userSelect: bJ ? "none" : "auto"
|
|
19028
19028
|
},
|
|
19029
19029
|
children: ":"
|
|
19030
19030
|
}),
|
|
19031
19031
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19032
|
-
...
|
|
19032
|
+
...BJ
|
|
19033
19033
|
}),
|
|
19034
|
-
I &&
|
|
19034
|
+
I && RJ && K && IJ
|
|
19035
19035
|
]
|
|
19036
19036
|
}),
|
|
19037
19037
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19038
19038
|
path: i,
|
|
19039
19039
|
value: w,
|
|
19040
19040
|
setValue: E,
|
|
19041
|
-
abortEditing:
|
|
19042
|
-
commitEditing:
|
|
19041
|
+
abortEditing: PJ,
|
|
19042
|
+
commitEditing: FJ
|
|
19043
19043
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19044
|
-
...
|
|
19044
|
+
...BJ
|
|
19045
19045
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19046
19046
|
component: "span",
|
|
19047
19047
|
className: "data-value-fallback",
|
|
19048
19048
|
children: `fallback: ${t}`
|
|
19049
19049
|
}),
|
|
19050
19050
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19051
|
-
...
|
|
19051
|
+
...BJ
|
|
19052
19052
|
}),
|
|
19053
|
-
!o &&
|
|
19053
|
+
!o && gJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19054
19054
|
children: ","
|
|
19055
19055
|
}),
|
|
19056
|
-
I &&
|
|
19057
|
-
I && !
|
|
19058
|
-
!I && J &&
|
|
19056
|
+
I && RJ && !K && IJ,
|
|
19057
|
+
I && !RJ && IJ,
|
|
19058
|
+
!I && J && IJ
|
|
19059
19059
|
]
|
|
19060
19060
|
});
|
|
19061
19061
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20143,18 +20143,18 @@ ${n}` : "Please fix this error.";
|
|
|
20143
20143
|
}
|
|
20144
20144
|
let y, S, w, E, A, M;
|
|
20145
20145
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20146
|
-
let e2 = n.filter(_temp8), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15),
|
|
20147
|
-
t[17] === s ?
|
|
20146
|
+
let e2 = n.filter(_temp8), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), pJ = n.filter(_temp16), mJ = n.filter(_temp17), hJ = n.filter(_temp18), gJ;
|
|
20147
|
+
t[17] === s ? gJ = t[18] : (gJ = () => {
|
|
20148
20148
|
s.openApplication("scratchpad");
|
|
20149
|
-
}, t[17] = s, t[18] =
|
|
20150
|
-
let
|
|
20149
|
+
}, t[17] = s, t[18] = gJ);
|
|
20150
|
+
let _J = gJ, vJ = () => {
|
|
20151
20151
|
let t2 = [];
|
|
20152
|
-
if (
|
|
20153
|
-
let e3 =
|
|
20152
|
+
if (pJ.length > 0 || mJ.length > 0) {
|
|
20153
|
+
let e3 = pJ.some(_temp19), n2 = !e3 && pJ.some(_temp20);
|
|
20154
20154
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20155
20155
|
children: [
|
|
20156
|
-
|
|
20157
|
-
|
|
20156
|
+
pJ.map(_temp21),
|
|
20157
|
+
mJ.map(_temp22),
|
|
20158
20158
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20159
20159
|
size: "xs",
|
|
20160
20160
|
variant: "outline",
|
|
@@ -20185,8 +20185,8 @@ ${n}` : "Please fix this error.";
|
|
|
20185
20185
|
}),
|
|
20186
20186
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20187
20187
|
errors: [
|
|
20188
|
-
...
|
|
20189
|
-
...
|
|
20188
|
+
...pJ,
|
|
20189
|
+
...mJ
|
|
20190
20190
|
],
|
|
20191
20191
|
cellId: i
|
|
20192
20192
|
})
|
|
@@ -20347,7 +20347,7 @@ ${n}` : "Please fix this error.";
|
|
|
20347
20347
|
size: "xs",
|
|
20348
20348
|
variant: "link",
|
|
20349
20349
|
className: "my-2 font-normal mx-0 px-0",
|
|
20350
|
-
onClick:
|
|
20350
|
+
onClick: _J,
|
|
20351
20351
|
children: [
|
|
20352
20352
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20353
20353
|
className: "h-3"
|
|
@@ -20546,18 +20546,18 @@ ${n}` : "Please fix this error.";
|
|
|
20546
20546
|
cellId: i
|
|
20547
20547
|
})
|
|
20548
20548
|
]
|
|
20549
|
-
}, "ancestor-stopped")),
|
|
20549
|
+
}, "ancestor-stopped")), hJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20550
20550
|
children: [
|
|
20551
|
-
|
|
20551
|
+
hJ.map(_temp35),
|
|
20552
20552
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20553
|
-
errors:
|
|
20553
|
+
errors: hJ,
|
|
20554
20554
|
cellId: i,
|
|
20555
20555
|
className: "mt-2.5"
|
|
20556
20556
|
})
|
|
20557
20557
|
]
|
|
20558
20558
|
}, "sql-errors")), t2;
|
|
20559
|
-
},
|
|
20560
|
-
t[19] === v ?
|
|
20559
|
+
}, yJ;
|
|
20560
|
+
t[19] === v ? yJ = t[20] : (yJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20561
20561
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20562
20562
|
children: [
|
|
20563
20563
|
v,
|
|
@@ -20569,22 +20569,22 @@ ${n}` : "Please fix this error.";
|
|
|
20569
20569
|
})
|
|
20570
20570
|
})
|
|
20571
20571
|
]
|
|
20572
|
-
}), t[19] = v, t[20] =
|
|
20573
|
-
let
|
|
20574
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20572
|
+
}), t[19] = v, t[20] = yJ);
|
|
20573
|
+
let xJ;
|
|
20574
|
+
t[21] !== _ || t[22] !== d ? (xJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20575
20575
|
className: `font-code font-medium ${_}`,
|
|
20576
20576
|
children: d
|
|
20577
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20578
|
-
let
|
|
20579
|
-
t[24] !==
|
|
20577
|
+
}), t[21] = _, t[22] = d, t[23] = xJ) : xJ = t[23];
|
|
20578
|
+
let SJ;
|
|
20579
|
+
t[24] !== yJ || t[25] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20580
20580
|
className: "space-y-0.5",
|
|
20581
20581
|
children: [
|
|
20582
|
-
|
|
20583
|
-
|
|
20582
|
+
yJ,
|
|
20583
|
+
xJ
|
|
20584
20584
|
]
|
|
20585
|
-
}), t[24] =
|
|
20586
|
-
let
|
|
20587
|
-
y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M =
|
|
20585
|
+
}), t[24] = yJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
|
|
20586
|
+
let wJ = SJ;
|
|
20587
|
+
y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M = wJ, S = "flex flex-col gap-4", w = vJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = A, t[16] = M;
|
|
20588
20588
|
} else y = t[11], S = t[12], w = t[13], E = t[14], A = t[15], M = t[16];
|
|
20589
20589
|
let I;
|
|
20590
20590
|
t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -26660,7 +26660,7 @@ ${n}` : "Please fix this error.";
|
|
|
26660
26660
|
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 }) {
|
|
26661
26661
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26662
26662
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26663
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26663
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), pJ = (0, import_react.useRef)({
|
|
26664
26664
|
callbacks: {
|
|
26665
26665
|
onCollapse: f,
|
|
26666
26666
|
onExpand: h,
|
|
@@ -26680,12 +26680,12 @@ ${n}` : "Please fix this error.";
|
|
|
26680
26680
|
(0, import_react.useRef)({
|
|
26681
26681
|
didLogMissingDefaultSizeWarning: false
|
|
26682
26682
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26683
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26683
|
+
let { callbacks: e2, constraints: t2 } = pJ.current, o2 = {
|
|
26684
26684
|
...t2
|
|
26685
26685
|
};
|
|
26686
|
-
|
|
26686
|
+
pJ.current.id = $, pJ.current.idIsFromProps = s !== void 0, pJ.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(pJ.current, o2);
|
|
26687
26687
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26688
|
-
let e2 =
|
|
26688
|
+
let e2 = pJ.current;
|
|
26689
26689
|
return q(e2), () => {
|
|
26690
26690
|
Q(e2);
|
|
26691
26691
|
};
|
|
@@ -26696,25 +26696,25 @@ ${n}` : "Please fix this error.";
|
|
|
26696
26696
|
Q
|
|
26697
26697
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26698
26698
|
collapse: () => {
|
|
26699
|
-
O(
|
|
26699
|
+
O(pJ.current);
|
|
26700
26700
|
},
|
|
26701
26701
|
expand: (e2) => {
|
|
26702
|
-
A(
|
|
26702
|
+
A(pJ.current, e2);
|
|
26703
26703
|
},
|
|
26704
26704
|
getId() {
|
|
26705
26705
|
return $;
|
|
26706
26706
|
},
|
|
26707
26707
|
getSize() {
|
|
26708
|
-
return M(
|
|
26708
|
+
return M(pJ.current);
|
|
26709
26709
|
},
|
|
26710
26710
|
isCollapsed() {
|
|
26711
|
-
return U(
|
|
26711
|
+
return U(pJ.current);
|
|
26712
26712
|
},
|
|
26713
26713
|
isExpanded() {
|
|
26714
|
-
return !U(
|
|
26714
|
+
return !U(pJ.current);
|
|
26715
26715
|
},
|
|
26716
26716
|
resize: (e2) => {
|
|
26717
|
-
J(
|
|
26717
|
+
J(pJ.current, e2);
|
|
26718
26718
|
}
|
|
26719
26719
|
}), [
|
|
26720
26720
|
O,
|
|
@@ -26724,21 +26724,21 @@ ${n}` : "Please fix this error.";
|
|
|
26724
26724
|
$,
|
|
26725
26725
|
J
|
|
26726
26726
|
]);
|
|
26727
|
-
let
|
|
26727
|
+
let mJ = I(pJ.current, a);
|
|
26728
26728
|
return (0, import_react.createElement)(S, {
|
|
26729
26729
|
...w,
|
|
26730
26730
|
children: e,
|
|
26731
26731
|
className: t,
|
|
26732
26732
|
id: $,
|
|
26733
26733
|
style: {
|
|
26734
|
-
...
|
|
26734
|
+
...mJ,
|
|
26735
26735
|
...y
|
|
26736
26736
|
},
|
|
26737
26737
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26738
26738
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26739
26739
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26740
26740
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26741
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26741
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + mJ.flexGrow).toFixed(1)
|
|
26742
26742
|
});
|
|
26743
26743
|
}
|
|
26744
26744
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27523,13 +27523,13 @@ ${n}` : "Please fix this error.";
|
|
|
27523
27523
|
}, [
|
|
27524
27524
|
S,
|
|
27525
27525
|
E
|
|
27526
|
-
]),
|
|
27526
|
+
]), pJ = (0, import_react.useCallback)((e2) => {
|
|
27527
27527
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27528
27528
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27529
|
-
}, []),
|
|
27529
|
+
}, []), mJ = (0, import_react.useCallback)((e2) => {
|
|
27530
27530
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27531
27531
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27532
|
-
}, []),
|
|
27532
|
+
}, []), hJ = (0, import_react.useCallback)((e2) => {
|
|
27533
27533
|
let { panelDataArray: t2 } = K.current;
|
|
27534
27534
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27535
27535
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27561,7 +27561,7 @@ ${n}` : "Please fix this error.";
|
|
|
27561
27561
|
e2.layout = [];
|
|
27562
27562
|
};
|
|
27563
27563
|
}, []);
|
|
27564
|
-
let
|
|
27564
|
+
let gJ = (0, import_react.useCallback)((e2) => {
|
|
27565
27565
|
let t2 = false, n2 = y.current;
|
|
27566
27566
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27567
27567
|
n3.preventDefault();
|
|
@@ -27579,7 +27579,7 @@ ${n}` : "Please fix this error.";
|
|
|
27579
27579
|
}), I2 = !compareLayouts(f2, A2);
|
|
27580
27580
|
(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));
|
|
27581
27581
|
};
|
|
27582
|
-
}, []),
|
|
27582
|
+
}, []), _J = (0, import_react.useCallback)((e2, t2) => {
|
|
27583
27583
|
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);
|
|
27584
27584
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27585
27585
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27591,12 +27591,12 @@ ${n}` : "Please fix this error.";
|
|
|
27591
27591
|
trigger: "imperative-api"
|
|
27592
27592
|
});
|
|
27593
27593
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27594
|
-
}, []),
|
|
27594
|
+
}, []), vJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27595
27595
|
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);
|
|
27596
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27596
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || _J(e2, s2) : h2 < f2 ? _J(e2, f2) : h2 > d2 && _J(e2, d2));
|
|
27597
27597
|
}, [
|
|
27598
|
-
|
|
27599
|
-
]),
|
|
27598
|
+
_J
|
|
27599
|
+
]), yJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27600
27600
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27601
27601
|
if (!y.current) return;
|
|
27602
27602
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27608,14 +27608,14 @@ ${n}` : "Please fix this error.";
|
|
|
27608
27608
|
initialCursorPosition: o2,
|
|
27609
27609
|
initialLayout: i2
|
|
27610
27610
|
});
|
|
27611
|
-
}, []),
|
|
27611
|
+
}, []), bJ = (0, import_react.useCallback)(() => {
|
|
27612
27612
|
w(null);
|
|
27613
|
-
}, []),
|
|
27613
|
+
}, []), xJ = (0, import_react.useCallback)((e2) => {
|
|
27614
27614
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27615
27615
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27616
27616
|
}, [
|
|
27617
27617
|
A
|
|
27618
|
-
]),
|
|
27618
|
+
]), SJ = (0, import_react.useMemo)(() => ({
|
|
27619
27619
|
collapsePanel: q,
|
|
27620
27620
|
direction: i,
|
|
27621
27621
|
dragState: S,
|
|
@@ -27623,15 +27623,15 @@ ${n}` : "Please fix this error.";
|
|
|
27623
27623
|
getPanelSize: Q,
|
|
27624
27624
|
getPanelStyle: $,
|
|
27625
27625
|
groupId: v,
|
|
27626
|
-
isPanelCollapsed:
|
|
27627
|
-
isPanelExpanded:
|
|
27628
|
-
reevaluatePanelConstraints:
|
|
27629
|
-
registerPanel:
|
|
27630
|
-
registerResizeHandle:
|
|
27631
|
-
resizePanel:
|
|
27632
|
-
startDragging:
|
|
27633
|
-
stopDragging:
|
|
27634
|
-
unregisterPanel:
|
|
27626
|
+
isPanelCollapsed: pJ,
|
|
27627
|
+
isPanelExpanded: mJ,
|
|
27628
|
+
reevaluatePanelConstraints: vJ,
|
|
27629
|
+
registerPanel: hJ,
|
|
27630
|
+
registerResizeHandle: gJ,
|
|
27631
|
+
resizePanel: _J,
|
|
27632
|
+
startDragging: yJ,
|
|
27633
|
+
stopDragging: bJ,
|
|
27634
|
+
unregisterPanel: xJ,
|
|
27635
27635
|
panelGroupElement: y.current
|
|
27636
27636
|
}), [
|
|
27637
27637
|
q,
|
|
@@ -27641,16 +27641,16 @@ ${n}` : "Please fix this error.";
|
|
|
27641
27641
|
Q,
|
|
27642
27642
|
$,
|
|
27643
27643
|
v,
|
|
27644
|
-
fJ,
|
|
27645
27644
|
pJ,
|
|
27646
|
-
_J,
|
|
27647
27645
|
mJ,
|
|
27646
|
+
vJ,
|
|
27648
27647
|
hJ,
|
|
27649
27648
|
gJ,
|
|
27650
|
-
|
|
27649
|
+
_J,
|
|
27651
27650
|
yJ,
|
|
27652
|
-
bJ
|
|
27653
|
-
|
|
27651
|
+
bJ,
|
|
27652
|
+
xJ
|
|
27653
|
+
]), CJ = {
|
|
27654
27654
|
display: "flex",
|
|
27655
27655
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27656
27656
|
height: "100%",
|
|
@@ -27658,7 +27658,7 @@ ${n}` : "Please fix this error.";
|
|
|
27658
27658
|
width: "100%"
|
|
27659
27659
|
};
|
|
27660
27660
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27661
|
-
value:
|
|
27661
|
+
value: SJ
|
|
27662
27662
|
}, (0, import_react.createElement)(h, {
|
|
27663
27663
|
..._,
|
|
27664
27664
|
children: t,
|
|
@@ -27666,7 +27666,7 @@ ${n}` : "Please fix this error.";
|
|
|
27666
27666
|
id: o,
|
|
27667
27667
|
ref: y,
|
|
27668
27668
|
style: {
|
|
27669
|
-
...
|
|
27669
|
+
...CJ,
|
|
27670
27670
|
...f
|
|
27671
27671
|
},
|
|
27672
27672
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27743,31 +27743,31 @@ ${n}` : "Please fix this error.";
|
|
|
27743
27743
|
});
|
|
27744
27744
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27745
27745
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27746
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27746
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, pJ] = (0, import_react.useState)(false), [mJ, hJ] = (0, import_react.useState)(null), gJ = (0, import_react.useRef)({
|
|
27747
27747
|
state: J
|
|
27748
27748
|
});
|
|
27749
27749
|
useIsomorphicLayoutEffect$1(() => {
|
|
27750
|
-
|
|
27750
|
+
gJ.current.state = J;
|
|
27751
27751
|
}), (0, import_react.useEffect)(() => {
|
|
27752
|
-
if (n)
|
|
27752
|
+
if (n) hJ(null);
|
|
27753
27753
|
else {
|
|
27754
27754
|
let e2 = I(q);
|
|
27755
|
-
|
|
27755
|
+
hJ(() => e2);
|
|
27756
27756
|
}
|
|
27757
27757
|
}, [
|
|
27758
27758
|
n,
|
|
27759
27759
|
q,
|
|
27760
27760
|
I
|
|
27761
27761
|
]);
|
|
27762
|
-
let
|
|
27762
|
+
let _J = (i == null ? void 0 : i.coarse) ?? 15, vJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27763
27763
|
(0, import_react.useEffect)(() => {
|
|
27764
|
-
if (n ||
|
|
27764
|
+
if (n || mJ == null) return;
|
|
27765
27765
|
let e2 = w.current;
|
|
27766
27766
|
assert(e2, "Element ref not attached");
|
|
27767
27767
|
let t2 = false;
|
|
27768
27768
|
return registerResizeHandle(q, e2, A, {
|
|
27769
|
-
coarse:
|
|
27770
|
-
fine:
|
|
27769
|
+
coarse: _J,
|
|
27770
|
+
fine: vJ
|
|
27771
27771
|
}, (e3, n2, i2) => {
|
|
27772
27772
|
if (!n2) {
|
|
27773
27773
|
Q("inactive");
|
|
@@ -27781,8 +27781,8 @@ ${n}` : "Please fix this error.";
|
|
|
27781
27781
|
break;
|
|
27782
27782
|
}
|
|
27783
27783
|
case "move": {
|
|
27784
|
-
let { state: e4 } =
|
|
27785
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27784
|
+
let { state: e4 } = gJ.current;
|
|
27785
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), mJ(i2);
|
|
27786
27786
|
break;
|
|
27787
27787
|
}
|
|
27788
27788
|
case "up": {
|
|
@@ -27794,22 +27794,22 @@ ${n}` : "Please fix this error.";
|
|
|
27794
27794
|
}
|
|
27795
27795
|
});
|
|
27796
27796
|
}, [
|
|
27797
|
-
|
|
27797
|
+
_J,
|
|
27798
27798
|
A,
|
|
27799
27799
|
n,
|
|
27800
|
-
|
|
27800
|
+
vJ,
|
|
27801
27801
|
I,
|
|
27802
27802
|
q,
|
|
27803
|
-
|
|
27803
|
+
mJ,
|
|
27804
27804
|
z,
|
|
27805
27805
|
U
|
|
27806
27806
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27807
27807
|
disabled: n,
|
|
27808
27808
|
handleId: q,
|
|
27809
|
-
resizeHandler:
|
|
27809
|
+
resizeHandler: mJ,
|
|
27810
27810
|
panelGroupElement: K
|
|
27811
27811
|
});
|
|
27812
|
-
let
|
|
27812
|
+
let yJ = {
|
|
27813
27813
|
touchAction: "none",
|
|
27814
27814
|
userSelect: "none"
|
|
27815
27815
|
};
|
|
@@ -27819,15 +27819,15 @@ ${n}` : "Please fix this error.";
|
|
|
27819
27819
|
className: t,
|
|
27820
27820
|
id: a,
|
|
27821
27821
|
onBlur: () => {
|
|
27822
|
-
|
|
27822
|
+
pJ(false), o == null ? void 0 : o();
|
|
27823
27823
|
},
|
|
27824
27824
|
onFocus: () => {
|
|
27825
|
-
|
|
27825
|
+
pJ(true), d == null ? void 0 : d();
|
|
27826
27826
|
},
|
|
27827
27827
|
ref: w,
|
|
27828
27828
|
role: "separator",
|
|
27829
27829
|
style: {
|
|
27830
|
-
...
|
|
27830
|
+
...yJ,
|
|
27831
27831
|
..._
|
|
27832
27832
|
},
|
|
27833
27833
|
tabIndex: v,
|
|
@@ -28126,7 +28126,7 @@ ${n}` : "Please fix this error.";
|
|
|
28126
28126
|
}, [
|
|
28127
28127
|
h
|
|
28128
28128
|
]), k(() => {
|
|
28129
|
-
U(6,
|
|
28129
|
+
U(6, mJ);
|
|
28130
28130
|
}, []);
|
|
28131
28131
|
let K = import_react.useMemo(() => ({
|
|
28132
28132
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28135,7 +28135,7 @@ ${n}` : "Please fix this error.";
|
|
|
28135
28135
|
var _a2;
|
|
28136
28136
|
var a2, o2, s2;
|
|
28137
28137
|
if (!Object.is(n.current[e2], t2)) {
|
|
28138
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28138
|
+
if (n.current[e2] = t2, e2 === "search") pJ(), Q(), U(1, $);
|
|
28139
28139
|
else if (e2 === "value") {
|
|
28140
28140
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28141
28141
|
let e3 = document.getElementById(I);
|
|
@@ -28143,8 +28143,8 @@ ${n}` : "Please fix this error.";
|
|
|
28143
28143
|
}
|
|
28144
28144
|
if (U(7, () => {
|
|
28145
28145
|
var _a3;
|
|
28146
|
-
n.current.selectedItemId = (_a3 =
|
|
28147
|
-
}), i2 || U(5,
|
|
28146
|
+
n.current.selectedItemId = (_a3 = hJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28147
|
+
}), i2 || U(5, mJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28148
28148
|
let e3 = t2 ?? "";
|
|
28149
28149
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28150
28150
|
return;
|
|
@@ -28169,12 +28169,12 @@ ${n}` : "Please fix this error.";
|
|
|
28169
28169
|
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([
|
|
28170
28170
|
e2
|
|
28171
28171
|
]))), U(3, () => {
|
|
28172
|
-
|
|
28172
|
+
pJ(), Q(), n.current.value || $(), K.emit();
|
|
28173
28173
|
}), () => {
|
|
28174
28174
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28175
|
-
let t3 =
|
|
28175
|
+
let t3 = hJ();
|
|
28176
28176
|
U(4, () => {
|
|
28177
|
-
|
|
28177
|
+
pJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28178
28178
|
});
|
|
28179
28179
|
}),
|
|
28180
28180
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28207,7 +28207,7 @@ ${n}` : "Please fix this error.";
|
|
|
28207
28207
|
]);
|
|
28208
28208
|
});
|
|
28209
28209
|
let i2 = z.current;
|
|
28210
|
-
|
|
28210
|
+
gJ().sort((t3, n2) => {
|
|
28211
28211
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28212
28212
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28213
28213
|
}).forEach((e3) => {
|
|
@@ -28221,10 +28221,10 @@ ${n}` : "Please fix this error.";
|
|
|
28221
28221
|
}
|
|
28222
28222
|
function $() {
|
|
28223
28223
|
var _a2;
|
|
28224
|
-
let e2 = (_a2 =
|
|
28224
|
+
let e2 = (_a2 = gJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28225
28225
|
K.setState("value", e2 || void 0);
|
|
28226
28226
|
}
|
|
28227
|
-
function
|
|
28227
|
+
function pJ() {
|
|
28228
28228
|
var _a2, _b;
|
|
28229
28229
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28230
28230
|
n.current.filtered.count = i.current.size;
|
|
@@ -28242,43 +28242,43 @@ ${n}` : "Please fix this error.";
|
|
|
28242
28242
|
}
|
|
28243
28243
|
n.current.filtered.count = e2;
|
|
28244
28244
|
}
|
|
28245
|
-
function
|
|
28245
|
+
function mJ() {
|
|
28246
28246
|
var _a2, _b;
|
|
28247
28247
|
var e2;
|
|
28248
|
-
let t2 =
|
|
28248
|
+
let t2 = hJ();
|
|
28249
28249
|
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({
|
|
28250
28250
|
block: "nearest"
|
|
28251
28251
|
})), t2.scrollIntoView({
|
|
28252
28252
|
block: "nearest"
|
|
28253
28253
|
}));
|
|
28254
28254
|
}
|
|
28255
|
-
function
|
|
28255
|
+
function hJ() {
|
|
28256
28256
|
var _a2;
|
|
28257
28257
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28258
28258
|
}
|
|
28259
|
-
function
|
|
28259
|
+
function gJ() {
|
|
28260
28260
|
var _a2;
|
|
28261
28261
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28262
28262
|
}
|
|
28263
|
-
function
|
|
28264
|
-
let t2 =
|
|
28263
|
+
function _J(e2) {
|
|
28264
|
+
let t2 = gJ()[e2];
|
|
28265
28265
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28266
28266
|
}
|
|
28267
|
-
function
|
|
28267
|
+
function vJ(e2) {
|
|
28268
28268
|
var t2;
|
|
28269
|
-
let n2 =
|
|
28269
|
+
let n2 = hJ(), i2 = gJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28270
28270
|
(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));
|
|
28271
28271
|
}
|
|
28272
|
-
function
|
|
28272
|
+
function yJ(e2) {
|
|
28273
28273
|
var _a2;
|
|
28274
|
-
let t2 = (_a2 =
|
|
28274
|
+
let t2 = (_a2 = hJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28275
28275
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28276
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28276
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : vJ(e2);
|
|
28277
28277
|
}
|
|
28278
|
-
let
|
|
28279
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28280
|
-
},
|
|
28281
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28278
|
+
let bJ = () => _J(gJ().length - 1), xJ = (e2) => {
|
|
28279
|
+
e2.preventDefault(), e2.metaKey ? bJ() : e2.altKey ? yJ(1) : vJ(1);
|
|
28280
|
+
}, SJ = (e2) => {
|
|
28281
|
+
e2.preventDefault(), e2.metaKey ? _J(0) : e2.altKey ? yJ(-1) : vJ(-1);
|
|
28282
28282
|
};
|
|
28283
28283
|
return import_react.createElement(Primitive.div, {
|
|
28284
28284
|
ref: t,
|
|
@@ -28292,27 +28292,27 @@ ${n}` : "Please fix this error.";
|
|
|
28292
28292
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28293
28293
|
case "n":
|
|
28294
28294
|
case "j":
|
|
28295
|
-
E && e2.ctrlKey &&
|
|
28295
|
+
E && e2.ctrlKey && xJ(e2);
|
|
28296
28296
|
break;
|
|
28297
28297
|
case "ArrowDown":
|
|
28298
|
-
|
|
28298
|
+
xJ(e2);
|
|
28299
28299
|
break;
|
|
28300
28300
|
case "p":
|
|
28301
28301
|
case "k":
|
|
28302
|
-
E && e2.ctrlKey &&
|
|
28302
|
+
E && e2.ctrlKey && SJ(e2);
|
|
28303
28303
|
break;
|
|
28304
28304
|
case "ArrowUp":
|
|
28305
|
-
|
|
28305
|
+
SJ(e2);
|
|
28306
28306
|
break;
|
|
28307
28307
|
case "Home":
|
|
28308
|
-
e2.preventDefault(),
|
|
28308
|
+
e2.preventDefault(), _J(0);
|
|
28309
28309
|
break;
|
|
28310
28310
|
case "End":
|
|
28311
|
-
e2.preventDefault(),
|
|
28311
|
+
e2.preventDefault(), bJ();
|
|
28312
28312
|
break;
|
|
28313
28313
|
case "Enter": {
|
|
28314
28314
|
e2.preventDefault();
|
|
28315
|
-
let t3 =
|
|
28315
|
+
let t3 = hJ();
|
|
28316
28316
|
if (t3) {
|
|
28317
28317
|
let e3 = new Event(Z);
|
|
28318
28318
|
t3.dispatchEvent(e3);
|
|
@@ -28721,153 +28721,153 @@ ${n}` : "Please fix this error.";
|
|
|
28721
28721
|
Combobox = (e) => {
|
|
28722
28722
|
let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
|
|
28723
28723
|
t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
|
|
28724
|
-
let $ = I === void 0 ? false : I,
|
|
28725
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28724
|
+
let $ = I === void 0 ? false : I, pJ = z === void 0 ? true : z, mJ = U === void 0 ? "Search..." : U, hJ = K === void 0 ? "Nothing found." : K, gJ = q === void 0 ? false : q, _J = J === void 0 ? false : J, vJ = s ?? false, yJ;
|
|
28725
|
+
t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
|
|
28726
28726
|
prop: w,
|
|
28727
|
-
defaultProp:
|
|
28727
|
+
defaultProp: vJ,
|
|
28728
28728
|
onChange: v
|
|
28729
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28730
|
-
let [
|
|
28731
|
-
t[29] === S ?
|
|
28729
|
+
}, t[25] = v, t[26] = w, t[27] = vJ, t[28] = yJ) : yJ = t[28];
|
|
28730
|
+
let [bJ, xJ] = useControllableState(yJ), SJ = bJ === void 0 ? false : bJ, CJ;
|
|
28731
|
+
t[29] === S ? CJ = t[30] : (CJ = (e2) => {
|
|
28732
28732
|
S == null ? void 0 : S(e2);
|
|
28733
|
-
}, t[29] = S, t[30] =
|
|
28734
|
-
let
|
|
28735
|
-
t[31] !== c || t[32] !==
|
|
28733
|
+
}, t[29] = S, t[30] = CJ);
|
|
28734
|
+
let wJ;
|
|
28735
|
+
t[31] !== c || t[32] !== CJ || t[33] !== Q ? (wJ = {
|
|
28736
28736
|
prop: Q,
|
|
28737
28737
|
defaultProp: c,
|
|
28738
|
-
onChange:
|
|
28739
|
-
}, t[31] = c, t[32] =
|
|
28740
|
-
let [
|
|
28741
|
-
t[35] ===
|
|
28742
|
-
let
|
|
28743
|
-
t[37] !== _ || t[38] !== $ || t[39] !==
|
|
28738
|
+
onChange: CJ
|
|
28739
|
+
}, t[31] = c, t[32] = CJ, t[33] = Q, t[34] = wJ) : wJ = t[34];
|
|
28740
|
+
let [TJ, EJ] = useControllableState(wJ), DJ;
|
|
28741
|
+
t[35] === TJ ? DJ = t[36] : (DJ = (e2) => Array.isArray(TJ) ? TJ.includes(e2) : TJ === e2, t[35] = TJ, t[36] = DJ);
|
|
28742
|
+
let OJ = DJ, kJ;
|
|
28743
|
+
t[37] !== _ || t[38] !== $ || t[39] !== xJ || t[40] !== EJ || t[41] !== TJ ? (kJ = (e2) => {
|
|
28744
28744
|
let t2 = e2;
|
|
28745
|
-
if ($) if (Array.isArray(
|
|
28746
|
-
let n2 =
|
|
28745
|
+
if ($) if (Array.isArray(TJ)) if (TJ.includes(t2)) {
|
|
28746
|
+
let n2 = TJ.filter((t3) => t3 !== e2);
|
|
28747
28747
|
t2 = n2.length > 0 ? n2 : [];
|
|
28748
28748
|
} else t2 = [
|
|
28749
|
-
...
|
|
28749
|
+
...TJ,
|
|
28750
28750
|
t2
|
|
28751
28751
|
];
|
|
28752
28752
|
else t2 = [
|
|
28753
28753
|
t2
|
|
28754
28754
|
];
|
|
28755
|
-
else
|
|
28756
|
-
|
|
28757
|
-
}, t[37] = _, t[38] = $, t[39] =
|
|
28758
|
-
let
|
|
28759
|
-
t[43] !==
|
|
28760
|
-
let
|
|
28761
|
-
t[49] !==
|
|
28762
|
-
isSelected:
|
|
28763
|
-
onSelect:
|
|
28764
|
-
}, t[49] =
|
|
28765
|
-
let
|
|
28766
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28767
|
-
let
|
|
28768
|
-
t[53] !==
|
|
28769
|
-
|
|
28770
|
-
}, t[53] =
|
|
28771
|
-
let
|
|
28772
|
-
t[56] !== a || t[57] !==
|
|
28773
|
-
let VJ;
|
|
28774
|
-
t[59] !== O || t[60] !== MJ || t[61] !== wJ ? (VJ = O ? O(wJ ?? null) : MJ(), t[59] = O, t[60] = MJ, t[61] = wJ, t[62] = VJ) : VJ = t[62];
|
|
28755
|
+
else TJ === e2 && (t2 = null);
|
|
28756
|
+
EJ(t2), (_ ?? $) || xJ(false);
|
|
28757
|
+
}, t[37] = _, t[38] = $, t[39] = xJ, t[40] = EJ, t[41] = TJ, t[42] = kJ) : kJ = t[42];
|
|
28758
|
+
let AJ = kJ, MJ;
|
|
28759
|
+
t[43] !== gJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== TJ ? (MJ = () => $ && gJ && E ? E : TJ == null ? E ?? "--" : Array.isArray(TJ) ? TJ.length === 0 ? E ?? "--" : TJ.length === 1 && d !== void 0 ? d(TJ[0]) : `${TJ.length} selected` : d === void 0 ? E ?? "--" : d(TJ), t[43] = gJ, t[44] = d, t[45] = $, t[46] = E, t[47] = TJ, t[48] = MJ) : MJ = t[48];
|
|
28760
|
+
let NJ = MJ, PJ;
|
|
28761
|
+
t[49] !== AJ || t[50] !== OJ ? (PJ = {
|
|
28762
|
+
isSelected: OJ,
|
|
28763
|
+
onSelect: AJ
|
|
28764
|
+
}, t[49] = AJ, t[50] = OJ, t[51] = PJ) : PJ = t[51];
|
|
28765
|
+
let FJ = PJ, LJ;
|
|
28766
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LJ = cn("relative"), t[52] = LJ) : LJ = t[52];
|
|
28767
|
+
let RJ;
|
|
28768
|
+
t[53] !== _J || t[54] !== xJ ? (RJ = (e2) => {
|
|
28769
|
+
_J && e2 || xJ(e2);
|
|
28770
|
+
}, t[53] = _J, t[54] = xJ, t[55] = RJ) : RJ = t[55];
|
|
28771
|
+
let BJ = _J && "cursor-not-allowed opacity-50", VJ;
|
|
28772
|
+
t[56] !== a || t[57] !== BJ ? (VJ = 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", BJ, a), t[56] = a, t[57] = BJ, t[58] = VJ) : VJ = t[58];
|
|
28775
28773
|
let HJ;
|
|
28776
|
-
t[
|
|
28777
|
-
className: "truncate flex-1 min-w-0",
|
|
28778
|
-
children: VJ
|
|
28779
|
-
}), t[63] = VJ, t[64] = HJ);
|
|
28774
|
+
t[59] !== O || t[60] !== NJ || t[61] !== TJ ? (HJ = O ? O(TJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = TJ, t[62] = HJ) : HJ = t[62];
|
|
28780
28775
|
let UJ;
|
|
28781
|
-
t[
|
|
28782
|
-
className: "
|
|
28783
|
-
|
|
28776
|
+
t[63] === HJ ? UJ = t[64] : (UJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28777
|
+
className: "truncate flex-1 min-w-0",
|
|
28778
|
+
children: HJ
|
|
28779
|
+
}), t[63] = HJ, t[64] = UJ);
|
|
28784
28780
|
let WJ;
|
|
28785
|
-
t[
|
|
28781
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28782
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28783
|
+
}), t[65] = WJ) : WJ = t[65];
|
|
28784
|
+
let GJ;
|
|
28785
|
+
t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== VJ || t[70] !== UJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28786
28786
|
asChild: true,
|
|
28787
28787
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28788
28788
|
id: h,
|
|
28789
28789
|
type: "button",
|
|
28790
|
-
className:
|
|
28791
|
-
"aria-expanded":
|
|
28792
|
-
"aria-disabled":
|
|
28790
|
+
className: VJ,
|
|
28791
|
+
"aria-expanded": SJ,
|
|
28792
|
+
"aria-disabled": _J,
|
|
28793
28793
|
children: [
|
|
28794
|
-
|
|
28795
|
-
|
|
28794
|
+
UJ,
|
|
28795
|
+
WJ
|
|
28796
28796
|
]
|
|
28797
28797
|
})
|
|
28798
|
-
}), t[66] =
|
|
28799
|
-
let
|
|
28800
|
-
t[72] !==
|
|
28801
|
-
placeholder:
|
|
28798
|
+
}), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = VJ, t[70] = UJ, t[71] = GJ) : GJ = t[71];
|
|
28799
|
+
let KJ;
|
|
28800
|
+
t[72] !== mJ || t[73] !== y || t[74] !== M ? (KJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28801
|
+
placeholder: mJ,
|
|
28802
28802
|
rootClassName: "px-1 h-8",
|
|
28803
28803
|
autoFocus: true,
|
|
28804
28804
|
value: M,
|
|
28805
28805
|
onValueChange: y
|
|
28806
|
-
}), t[72] =
|
|
28807
|
-
let KJ;
|
|
28808
|
-
t[76] === mJ ? KJ = t[77] : (KJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28809
|
-
children: mJ
|
|
28810
|
-
}), t[76] = mJ, t[77] = KJ);
|
|
28806
|
+
}), t[72] = mJ, t[73] = y, t[74] = M, t[75] = KJ) : KJ = t[75];
|
|
28811
28807
|
let qJ;
|
|
28812
|
-
t[
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
}), t[78] = n, t[79] = PJ, t[80] = qJ) : qJ = t[80];
|
|
28808
|
+
t[76] === hJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28809
|
+
children: hJ
|
|
28810
|
+
}), t[76] = hJ, t[77] = qJ);
|
|
28816
28811
|
let JJ;
|
|
28817
|
-
t[
|
|
28812
|
+
t[78] !== n || t[79] !== FJ ? (JJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28813
|
+
value: FJ,
|
|
28814
|
+
children: n
|
|
28815
|
+
}), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
|
|
28816
|
+
let YJ;
|
|
28817
|
+
t[81] !== qJ || t[82] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28818
28818
|
className: "max-h-60 py-.5",
|
|
28819
28819
|
children: [
|
|
28820
|
-
|
|
28821
|
-
|
|
28820
|
+
qJ,
|
|
28821
|
+
JJ
|
|
28822
28822
|
]
|
|
28823
|
-
}), t[81] =
|
|
28824
|
-
let
|
|
28825
|
-
t[84] !== f || t[85] !==
|
|
28823
|
+
}), t[81] = qJ, t[82] = JJ, t[83] = YJ) : YJ = t[83];
|
|
28824
|
+
let XJ;
|
|
28825
|
+
t[84] !== f || t[85] !== pJ || t[86] !== KJ || t[87] !== YJ ? (XJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28826
28826
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28827
28827
|
align: "start",
|
|
28828
28828
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28829
28829
|
filter: f,
|
|
28830
|
-
shouldFilter:
|
|
28830
|
+
shouldFilter: pJ,
|
|
28831
28831
|
children: [
|
|
28832
|
-
|
|
28833
|
-
|
|
28832
|
+
KJ,
|
|
28833
|
+
YJ
|
|
28834
28834
|
]
|
|
28835
28835
|
})
|
|
28836
|
-
}), t[84] = f, t[85] =
|
|
28837
|
-
let
|
|
28838
|
-
t[89] !==
|
|
28839
|
-
open:
|
|
28840
|
-
onOpenChange:
|
|
28836
|
+
}), t[84] = f, t[85] = pJ, t[86] = KJ, t[87] = YJ, t[88] = XJ) : XJ = t[88];
|
|
28837
|
+
let ZJ;
|
|
28838
|
+
t[89] !== SJ || t[90] !== RJ || t[91] !== GJ || t[92] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28839
|
+
open: SJ,
|
|
28840
|
+
onOpenChange: RJ,
|
|
28841
28841
|
children: [
|
|
28842
|
-
|
|
28843
|
-
|
|
28842
|
+
GJ,
|
|
28843
|
+
XJ
|
|
28844
28844
|
]
|
|
28845
|
-
}), t[89] =
|
|
28846
|
-
let
|
|
28847
|
-
t[94] !==
|
|
28845
|
+
}), t[89] = SJ, t[90] = RJ, t[91] = GJ, t[92] = XJ, t[93] = ZJ) : ZJ = t[93];
|
|
28846
|
+
let QJ;
|
|
28847
|
+
t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (QJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28848
28848
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28849
|
-
children: Array.isArray(
|
|
28849
|
+
children: Array.isArray(TJ) && TJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28850
28850
|
variant: "secondary",
|
|
28851
28851
|
children: [
|
|
28852
28852
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28853
28853
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28854
28854
|
onClick: () => {
|
|
28855
|
-
|
|
28855
|
+
_J || AJ(e2);
|
|
28856
28856
|
},
|
|
28857
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28857
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", _J && "pointer-events-none")
|
|
28858
28858
|
})
|
|
28859
28859
|
]
|
|
28860
28860
|
}, String(e2)))
|
|
28861
|
-
}), t[94] =
|
|
28862
|
-
let
|
|
28863
|
-
return t[102] !== A || t[103] !==
|
|
28864
|
-
className:
|
|
28861
|
+
}), t[94] = gJ, t[95] = i, t[96] = _J, t[97] = d, t[98] = AJ, t[99] = $, t[100] = TJ, t[101] = QJ) : QJ = t[101];
|
|
28862
|
+
let $J;
|
|
28863
|
+
return t[102] !== A || t[103] !== ZJ || t[104] !== QJ ? ($J = (0, import_jsx_runtime.jsxs)("div", {
|
|
28864
|
+
className: LJ,
|
|
28865
28865
|
...A,
|
|
28866
28866
|
children: [
|
|
28867
|
-
|
|
28868
|
-
|
|
28867
|
+
ZJ,
|
|
28868
|
+
QJ
|
|
28869
28869
|
]
|
|
28870
|
-
}), t[102] = A, t[103] =
|
|
28870
|
+
}), t[102] = A, t[103] = ZJ, t[104] = QJ, t[105] = $J) : $J = t[105], $J;
|
|
28871
28871
|
};
|
|
28872
28872
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28873
28873
|
let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29923,17 +29923,17 @@ ${n}` : "Please fix this error.";
|
|
|
29923
29923
|
searchQuery: M,
|
|
29924
29924
|
filteredOptions: z
|
|
29925
29925
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29926
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29927
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29926
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), pJ;
|
|
29927
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (pJ = {
|
|
29928
29928
|
value: i,
|
|
29929
29929
|
onChange: a,
|
|
29930
29930
|
multiple: o,
|
|
29931
29931
|
maxSelections: s,
|
|
29932
29932
|
allowSelectNone: c,
|
|
29933
29933
|
selected: y
|
|
29934
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29935
|
-
let { isChecked:
|
|
29936
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29934
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = pJ) : pJ = t[21];
|
|
29935
|
+
let { isChecked: mJ, toggle: hJ } = useToggle(pJ), gJ;
|
|
29936
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (gJ = {
|
|
29937
29937
|
value: i,
|
|
29938
29938
|
onChange: a,
|
|
29939
29939
|
multiple: o,
|
|
@@ -29941,24 +29941,24 @@ ${n}` : "Please fix this error.";
|
|
|
29941
29941
|
filteredOptions: z,
|
|
29942
29942
|
searchQuery: M,
|
|
29943
29943
|
maxSelections: s
|
|
29944
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29945
|
-
let { bulkActions:
|
|
29946
|
-
t[30] !== J || t[31] !== I ? (
|
|
29944
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = gJ) : gJ = t[29];
|
|
29945
|
+
let { bulkActions: _J } = useBulk(gJ), vJ;
|
|
29946
|
+
t[30] !== J || t[31] !== I ? (vJ = (e2) => {
|
|
29947
29947
|
I(e2), e2 === "" && J();
|
|
29948
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29949
|
-
let
|
|
29950
|
-
return t[33] !==
|
|
29948
|
+
}, t[30] = J, t[31] = I, t[32] = vJ) : vJ = t[32];
|
|
29949
|
+
let yJ = vJ, bJ;
|
|
29950
|
+
return t[33] !== _J || t[34] !== mJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== yJ || t[41] !== hJ || t[42] !== Q ? (bJ = {
|
|
29951
29951
|
searchQuery: M,
|
|
29952
|
-
setSearchQuery:
|
|
29952
|
+
setSearchQuery: yJ,
|
|
29953
29953
|
open: K,
|
|
29954
29954
|
setOpen: q,
|
|
29955
29955
|
visibleOptions: Q,
|
|
29956
29956
|
pinnedCount: $,
|
|
29957
|
-
isChecked:
|
|
29958
|
-
toggle:
|
|
29959
|
-
bulkActions:
|
|
29957
|
+
isChecked: mJ,
|
|
29958
|
+
toggle: hJ,
|
|
29959
|
+
bulkActions: _J,
|
|
29960
29960
|
labelOf: O
|
|
29961
|
-
}, t[33] =
|
|
29961
|
+
}, t[33] = _J, t[34] = mJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = yJ, t[41] = hJ, t[42] = Q, t[43] = bJ) : bJ = t[43], bJ;
|
|
29962
29962
|
};
|
|
29963
29963
|
const Sets = {
|
|
29964
29964
|
merge(...e) {
|
|
@@ -30287,7 +30287,7 @@ ${n}` : "Please fix this error.";
|
|
|
30287
30287
|
type: S,
|
|
30288
30288
|
operator: E,
|
|
30289
30289
|
draft: mergeNumberTextDraft(A, I)
|
|
30290
|
-
}), $ = Q === void 0,
|
|
30290
|
+
}), $ = Q === void 0, pJ = $ ? getMissingValueMessage(S, E) : "Apply filter", mJ = () => {
|
|
30291
30291
|
if (!Q) return;
|
|
30292
30292
|
let e2 = Q;
|
|
30293
30293
|
t.setColumnFilters((t2) => {
|
|
@@ -30306,20 +30306,20 @@ ${n}` : "Please fix this error.";
|
|
|
30306
30306
|
value: e2
|
|
30307
30307
|
}, n2;
|
|
30308
30308
|
}), i();
|
|
30309
|
-
},
|
|
30309
|
+
}, hJ = () => {
|
|
30310
30310
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30311
|
-
},
|
|
30311
|
+
}, gJ = !OPERATORS_WITHOUT_VALUE.has(E), _J = OPERATORS_BY_TYPE[S], vJ = (0, import_react.useRef)(null), yJ = (0, import_react.useRef)(null);
|
|
30312
30312
|
return (0, import_react.useEffect)(() => {
|
|
30313
30313
|
var _a2, _b;
|
|
30314
|
-
let e2 = (_a2 =
|
|
30315
|
-
e2 ? e2.focus() : (_b =
|
|
30314
|
+
let e2 = (_a2 = vJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30315
|
+
e2 ? e2.focus() : (_b = yJ.current) == null ? void 0 : _b.focus();
|
|
30316
30316
|
}, [
|
|
30317
30317
|
S,
|
|
30318
30318
|
E
|
|
30319
30319
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30320
30320
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30321
30321
|
onSubmit: (e2) => {
|
|
30322
|
-
e2.preventDefault(),
|
|
30322
|
+
e2.preventDefault(), mJ();
|
|
30323
30323
|
},
|
|
30324
30324
|
onKeyDownCapture: (e2) => {
|
|
30325
30325
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30360,13 +30360,13 @@ ${n}` : "Please fix this error.";
|
|
|
30360
30360
|
onValueChange: (e2) => J(e2),
|
|
30361
30361
|
children: [
|
|
30362
30362
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30363
|
-
ref:
|
|
30363
|
+
ref: yJ,
|
|
30364
30364
|
id: s,
|
|
30365
30365
|
className: "h-6 mb-1 bg-transparent",
|
|
30366
30366
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30367
30367
|
}),
|
|
30368
30368
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30369
|
-
children:
|
|
30369
|
+
children: _J.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30370
30370
|
value: e2,
|
|
30371
30371
|
children: OPERATOR_LABELS[e2]
|
|
30372
30372
|
}, e2))
|
|
@@ -30375,8 +30375,8 @@ ${n}` : "Please fix this error.";
|
|
|
30375
30375
|
}, S)
|
|
30376
30376
|
]
|
|
30377
30377
|
}),
|
|
30378
|
-
|
|
30379
|
-
ref:
|
|
30378
|
+
gJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30379
|
+
ref: vJ,
|
|
30380
30380
|
className: "flex flex-col gap-1",
|
|
30381
30381
|
children: [
|
|
30382
30382
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30403,7 +30403,7 @@ ${n}` : "Please fix this error.";
|
|
|
30403
30403
|
className: "flex gap-1 mb-1",
|
|
30404
30404
|
children: [
|
|
30405
30405
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30406
|
-
content:
|
|
30406
|
+
content: pJ,
|
|
30407
30407
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30408
30408
|
className: "inline-flex",
|
|
30409
30409
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30442,7 +30442,7 @@ ${n}` : "Please fix this error.";
|
|
|
30442
30442
|
size: "icon",
|
|
30443
30443
|
variant: "ghost",
|
|
30444
30444
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30445
|
-
onClick:
|
|
30445
|
+
onClick: hJ,
|
|
30446
30446
|
"aria-label": "Remove filter",
|
|
30447
30447
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30448
30448
|
className: "h-3.5 w-3.5",
|
|
@@ -32650,29 +32650,29 @@ ${n}` : "Please fix this error.";
|
|
|
32650
32650
|
}, t[16] = a, t[17] = J);
|
|
32651
32651
|
let Q = useEvent_default(J), $;
|
|
32652
32652
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32653
|
-
let
|
|
32654
|
-
t[20] === S ? (
|
|
32653
|
+
let pJ = useEvent_default($), mJ, hJ;
|
|
32654
|
+
t[20] === S ? (mJ = t[21], hJ = t[22]) : (mJ = () => (window.addEventListener("scroll", S, {
|
|
32655
32655
|
passive: true,
|
|
32656
32656
|
capture: true
|
|
32657
32657
|
}), window.addEventListener("resize", S), () => {
|
|
32658
32658
|
window.removeEventListener("scroll", S, {
|
|
32659
32659
|
capture: true
|
|
32660
32660
|
}), window.removeEventListener("resize", S);
|
|
32661
|
-
}),
|
|
32661
|
+
}), hJ = [
|
|
32662
32662
|
S
|
|
32663
|
-
], t[20] = S, t[21] =
|
|
32664
|
-
let
|
|
32665
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32666
|
-
let
|
|
32667
|
-
return t[25] !==
|
|
32663
|
+
], t[20] = S, t[21] = mJ, t[22] = hJ), (0, import_react.useEffect)(mJ, hJ);
|
|
32664
|
+
let gJ, _J;
|
|
32665
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = () => v, _J = [], t[23] = gJ, t[24] = _J) : (gJ = t[23], _J = t[24]), (0, import_react.useEffect)(gJ, _J);
|
|
32666
|
+
let vJ;
|
|
32667
|
+
return t[25] !== pJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (vJ = {
|
|
32668
32668
|
tooltipState: o,
|
|
32669
32669
|
tooltipContentId: d,
|
|
32670
32670
|
hideTooltip: S,
|
|
32671
32671
|
handleCellMouseOver: U,
|
|
32672
32672
|
handleCellMouseLeave: q,
|
|
32673
32673
|
handleCellFocus: Q,
|
|
32674
|
-
handleCellBlur:
|
|
32675
|
-
}, t[25] =
|
|
32674
|
+
handleCellBlur: pJ
|
|
32675
|
+
}, t[25] = pJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = vJ) : vJ = t[32], vJ;
|
|
32676
32676
|
}
|
|
32677
32677
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32678
32678
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34117,7 +34117,7 @@ ${n}` : "Please fix this error.";
|
|
|
34117
34117
|
filename: i2.filename
|
|
34118
34118
|
};
|
|
34119
34119
|
}, t[6] = e, t[7] = O);
|
|
34120
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34120
|
+
let A = O, M, I, z, U, K, q, J, Q, $, pJ, mJ, hJ, gJ;
|
|
34121
34121
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34122
34122
|
let e2 = async (t2) => {
|
|
34123
34123
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34183,10 +34183,10 @@ ${n}` : "Please fix this error.";
|
|
|
34183
34183
|
content: d,
|
|
34184
34184
|
open: o,
|
|
34185
34185
|
children: h
|
|
34186
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34186
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", pJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34187
34187
|
className: "text-xs text-muted-foreground",
|
|
34188
34188
|
children: "Download"
|
|
34189
|
-
}), t[36] =
|
|
34189
|
+
}), t[36] = mJ) : mJ = t[36], hJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34190
34190
|
onSelect: () => {
|
|
34191
34191
|
e2(t2.format);
|
|
34192
34192
|
},
|
|
@@ -34207,10 +34207,10 @@ ${n}` : "Please fix this error.";
|
|
|
34207
34207
|
]
|
|
34208
34208
|
})
|
|
34209
34209
|
]
|
|
34210
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34210
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34211
34211
|
className: "text-xs text-muted-foreground",
|
|
34212
34212
|
children: "Copy to clipboard"
|
|
34213
|
-
}), t[37] = z, t[38] =
|
|
34213
|
+
}), t[37] = z, t[38] = gJ) : (z = t[37], gJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34214
34214
|
onSelect: async () => {
|
|
34215
34215
|
try {
|
|
34216
34216
|
await a2(e3.format);
|
|
@@ -34239,30 +34239,30 @@ ${n}` : "Please fix this error.";
|
|
|
34239
34239
|
]
|
|
34240
34240
|
})
|
|
34241
34241
|
]
|
|
34242
|
-
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, 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] =
|
|
34243
|
-
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21],
|
|
34244
|
-
let
|
|
34245
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
34242
|
+
}, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, 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] = pJ, t[23] = mJ, t[24] = hJ, t[25] = gJ;
|
|
34243
|
+
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], pJ = t[22], mJ = t[23], hJ = t[24], gJ = t[25];
|
|
34244
|
+
let _J;
|
|
34245
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== pJ || t[44] !== mJ || t[45] !== hJ || t[46] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(M, {
|
|
34246
34246
|
side: $,
|
|
34247
|
-
className:
|
|
34247
|
+
className: pJ,
|
|
34248
34248
|
children: [
|
|
34249
|
-
pJ,
|
|
34250
34249
|
mJ,
|
|
34251
34250
|
hJ,
|
|
34251
|
+
gJ,
|
|
34252
34252
|
z,
|
|
34253
34253
|
U
|
|
34254
34254
|
]
|
|
34255
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34256
|
-
let
|
|
34257
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34255
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = pJ, t[44] = mJ, t[45] = hJ, t[46] = gJ, t[47] = _J) : _J = t[47];
|
|
34256
|
+
let vJ;
|
|
34257
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34258
34258
|
modal: K,
|
|
34259
34259
|
open: q,
|
|
34260
34260
|
onOpenChange: J,
|
|
34261
34261
|
children: [
|
|
34262
34262
|
Q,
|
|
34263
|
-
|
|
34263
|
+
_J
|
|
34264
34264
|
]
|
|
34265
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34265
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = _J, t[54] = vJ) : vJ = t[54], vJ;
|
|
34266
34266
|
};
|
|
34267
34267
|
function fetchJson(e) {
|
|
34268
34268
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34358,22 +34358,22 @@ ${n}` : "Please fix this error.";
|
|
|
34358
34358
|
]
|
|
34359
34359
|
});
|
|
34360
34360
|
};
|
|
34361
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds:
|
|
34362
|
-
let
|
|
34361
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: pJ, showSearch: mJ = false, searchQuery: hJ, onSearchQueryChange: gJ, showFilters: _J = false, filters: vJ, onFiltersChange: yJ, calculateTopKRows: bJ, reloading: xJ, freezeColumnsLeft: SJ, freezeColumnsRight: CJ, hiddenColumns: wJ, toggleDisplayHeader: TJ, showChartBuilder: EJ, isChartBuilderOpen: DJ, showPageSizeSelector: OJ, showTableExplorer: kJ, togglePanel: AJ, isPanelOpen: jJ, isAnyPanelOpen: MJ, viewedRowIdx: NJ, onViewedRowChange: PJ, renderTableExplorerPanel: FJ }) => {
|
|
34362
|
+
let IJ = isStaticNotebook(), LJ = !IJ, [RJ, zJ] = import_react.useState(false), { locale: BJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: VJ, setColumnPinning: HJ } = useColumnPinning(SJ, CJ), { columnVisibility: UJ, setColumnVisibility: WJ } = useColumnVisibility(wJ);
|
|
34363
34363
|
import_react.useEffect(() => {
|
|
34364
34364
|
let e2;
|
|
34365
|
-
return
|
|
34366
|
-
|
|
34367
|
-
}, 300) :
|
|
34365
|
+
return xJ ? e2 = setTimeout(() => {
|
|
34366
|
+
zJ(true);
|
|
34367
|
+
}, 300) : zJ(false), () => {
|
|
34368
34368
|
e2 && clearTimeout(e2);
|
|
34369
34369
|
};
|
|
34370
34370
|
}, [
|
|
34371
|
-
|
|
34371
|
+
xJ
|
|
34372
34372
|
]);
|
|
34373
|
-
function
|
|
34373
|
+
function GJ(e2, t2) {
|
|
34374
34374
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34375
34375
|
}
|
|
34376
|
-
let
|
|
34376
|
+
let KJ = useReactTable({
|
|
34377
34377
|
_features: [
|
|
34378
34378
|
ColumnPinning,
|
|
34379
34379
|
ColumnWrappingFeature,
|
|
@@ -34397,37 +34397,37 @@ ${n}` : "Please fix this error.";
|
|
|
34397
34397
|
getRowId: (e2, t2) => {
|
|
34398
34398
|
let n2 = getStableRowId(e2);
|
|
34399
34399
|
if (n2) return n2;
|
|
34400
|
-
let i2 =
|
|
34400
|
+
let i2 = GJ(e2, t2);
|
|
34401
34401
|
return String(i2);
|
|
34402
34402
|
}
|
|
34403
34403
|
} : {},
|
|
34404
|
-
locale:
|
|
34404
|
+
locale: BJ,
|
|
34405
34405
|
manualPagination: q,
|
|
34406
34406
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34407
34407
|
...w ? {
|
|
34408
34408
|
onSortingChange: w
|
|
34409
34409
|
} : {},
|
|
34410
34410
|
manualSorting: y,
|
|
34411
|
-
enableSorting: !
|
|
34411
|
+
enableSorting: !IJ,
|
|
34412
34412
|
enableMultiSort: true,
|
|
34413
34413
|
getSortedRowModel: getSortedRowModel(),
|
|
34414
34414
|
manualFiltering: true,
|
|
34415
|
-
enableColumnFilters:
|
|
34415
|
+
enableColumnFilters: _J && !IJ,
|
|
34416
34416
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34417
|
-
onColumnFiltersChange:
|
|
34417
|
+
onColumnFiltersChange: yJ,
|
|
34418
34418
|
onRowSelectionChange: Q,
|
|
34419
34419
|
onCellSelectionChange: $,
|
|
34420
34420
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34421
34421
|
enableMultiCellSelection: c === "multi-cell",
|
|
34422
|
-
onColumnPinningChange:
|
|
34423
|
-
onColumnVisibilityChange:
|
|
34422
|
+
onColumnPinningChange: HJ,
|
|
34423
|
+
onColumnVisibilityChange: WJ,
|
|
34424
34424
|
enableFocusRow: true,
|
|
34425
|
-
onFocusRowChange:
|
|
34425
|
+
onFocusRowChange: PJ,
|
|
34426
34426
|
state: {
|
|
34427
34427
|
...S ? {
|
|
34428
34428
|
sorting: S
|
|
34429
34429
|
} : {},
|
|
34430
|
-
columnFilters:
|
|
34430
|
+
columnFilters: vJ,
|
|
34431
34431
|
...z ? {
|
|
34432
34432
|
pagination: z
|
|
34433
34433
|
} : J && !z ? {} : {
|
|
@@ -34438,60 +34438,60 @@ ${n}` : "Please fix this error.";
|
|
|
34438
34438
|
},
|
|
34439
34439
|
rowSelection: E ?? {},
|
|
34440
34440
|
cellSelection: O ?? [],
|
|
34441
|
-
columnVisibility:
|
|
34441
|
+
columnVisibility: UJ,
|
|
34442
34442
|
cellStyling: A,
|
|
34443
|
-
columnPinning:
|
|
34443
|
+
columnPinning: VJ,
|
|
34444
34444
|
cellHoverTemplate: M,
|
|
34445
34445
|
cellHoverTexts: I ?? {}
|
|
34446
34446
|
}
|
|
34447
|
-
}),
|
|
34447
|
+
}), qJ = (jJ == null ? void 0 : jJ(PANEL_TYPES.ROW_VIEWER)) ?? false, JJ = !J && a.length > 100, YJ = useScrollContainerHeight({
|
|
34448
34448
|
maxHeight: n,
|
|
34449
|
-
virtualize:
|
|
34450
|
-
}), [
|
|
34449
|
+
virtualize: JJ
|
|
34450
|
+
}), [XJ, ZJ] = import_react.useState(null), QJ = import_react.useMemo(() => ({
|
|
34451
34451
|
requestAddFilter: (e2) => {
|
|
34452
|
-
let t2 =
|
|
34453
|
-
t2 &&
|
|
34452
|
+
let t2 = KJ.getColumn(e2.columnId);
|
|
34453
|
+
t2 && ZJ(buildEditorSnapshot(t2, {
|
|
34454
34454
|
operator: e2.operator
|
|
34455
34455
|
}));
|
|
34456
34456
|
}
|
|
34457
34457
|
}), [
|
|
34458
|
-
|
|
34459
|
-
]),
|
|
34458
|
+
KJ
|
|
34459
|
+
]), $J = getUserColumnVisibilityCounts(KJ), eY = $J.total > 0 && $J.visible === 0;
|
|
34460
34460
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34461
|
-
value:
|
|
34461
|
+
value: QJ,
|
|
34462
34462
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34463
34463
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34464
34464
|
children: [
|
|
34465
34465
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34466
|
-
filters:
|
|
34467
|
-
table:
|
|
34468
|
-
calculateTopKRows:
|
|
34469
|
-
addFilterSnapshot:
|
|
34470
|
-
onAddFilterSnapshotChange:
|
|
34466
|
+
filters: vJ,
|
|
34467
|
+
table: KJ,
|
|
34468
|
+
calculateTopKRows: bJ,
|
|
34469
|
+
addFilterSnapshot: XJ,
|
|
34470
|
+
onAddFilterSnapshotChange: ZJ
|
|
34471
34471
|
}),
|
|
34472
|
-
|
|
34472
|
+
FJ == null ? void 0 : FJ(KJ),
|
|
34473
34473
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34474
34474
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34475
34475
|
part: "table-wrapper",
|
|
34476
34476
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34477
34477
|
children: [
|
|
34478
|
-
|
|
34479
|
-
table:
|
|
34480
|
-
showSearch:
|
|
34481
|
-
searchQuery:
|
|
34482
|
-
onSearchQueryChange:
|
|
34483
|
-
reloading:
|
|
34484
|
-
showChartBuilder:
|
|
34485
|
-
isChartBuilderOpen:
|
|
34486
|
-
toggleDisplayHeader:
|
|
34487
|
-
showTableExplorer:
|
|
34488
|
-
togglePanel:
|
|
34489
|
-
isAnyPanelOpen:
|
|
34478
|
+
LJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34479
|
+
table: KJ,
|
|
34480
|
+
showSearch: mJ,
|
|
34481
|
+
searchQuery: hJ,
|
|
34482
|
+
onSearchQueryChange: gJ,
|
|
34483
|
+
reloading: xJ,
|
|
34484
|
+
showChartBuilder: EJ,
|
|
34485
|
+
isChartBuilderOpen: DJ,
|
|
34486
|
+
toggleDisplayHeader: TJ,
|
|
34487
|
+
showTableExplorer: kJ,
|
|
34488
|
+
togglePanel: AJ,
|
|
34489
|
+
isAnyPanelOpen: MJ,
|
|
34490
34490
|
downloadAs: K,
|
|
34491
34491
|
sizeBytes: _,
|
|
34492
34492
|
sizeBytesIsLoading: v
|
|
34493
34493
|
}),
|
|
34494
|
-
|
|
34494
|
+
eY && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34495
34495
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34496
34496
|
children: [
|
|
34497
34497
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34500,26 +34500,26 @@ ${n}` : "Please fix this error.";
|
|
|
34500
34500
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34501
34501
|
variant: "link",
|
|
34502
34502
|
size: "xs",
|
|
34503
|
-
onClick: () =>
|
|
34503
|
+
onClick: () => KJ.resetColumnVisibility(true),
|
|
34504
34504
|
children: "Unhide all"
|
|
34505
34505
|
})
|
|
34506
34506
|
]
|
|
34507
34507
|
}),
|
|
34508
34508
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34509
34509
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34510
|
-
ref:
|
|
34510
|
+
ref: YJ,
|
|
34511
34511
|
children: [
|
|
34512
|
-
|
|
34512
|
+
RJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34513
34513
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34514
34514
|
}),
|
|
34515
|
-
renderTableHeader(
|
|
34515
|
+
renderTableHeader(KJ, JJ || !!n),
|
|
34516
34516
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34517
|
-
table:
|
|
34517
|
+
table: KJ,
|
|
34518
34518
|
columns: i,
|
|
34519
|
-
rowViewerPanelOpen:
|
|
34520
|
-
getRowIndex:
|
|
34521
|
-
viewedRowIdx:
|
|
34522
|
-
virtualize:
|
|
34519
|
+
rowViewerPanelOpen: qJ,
|
|
34520
|
+
getRowIndex: GJ,
|
|
34521
|
+
viewedRowIdx: NJ,
|
|
34522
|
+
virtualize: JJ
|
|
34523
34523
|
})
|
|
34524
34524
|
]
|
|
34525
34525
|
}),
|
|
@@ -34530,10 +34530,10 @@ ${n}` : "Please fix this error.";
|
|
|
34530
34530
|
pagination: J,
|
|
34531
34531
|
selection: c,
|
|
34532
34532
|
onRowSelectionChange: Q,
|
|
34533
|
-
table:
|
|
34534
|
-
getRowIds:
|
|
34535
|
-
showPageSizeSelector:
|
|
34536
|
-
tableLoading:
|
|
34533
|
+
table: KJ,
|
|
34534
|
+
getRowIds: pJ,
|
|
34535
|
+
showPageSizeSelector: OJ,
|
|
34536
|
+
tableLoading: xJ
|
|
34537
34537
|
})
|
|
34538
34538
|
]
|
|
34539
34539
|
})
|
|
@@ -34633,45 +34633,45 @@ ${d}`,
|
|
|
34633
34633
|
prompt: buildFixInChatPrompt(a, d)
|
|
34634
34634
|
});
|
|
34635
34635
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34636
|
-
let $ = Q,
|
|
34637
|
-
t[19] === z ?
|
|
34638
|
-
let
|
|
34639
|
-
t[21] === z ?
|
|
34636
|
+
let $ = Q, pJ;
|
|
34637
|
+
t[19] === z ? pJ = t[20] : (pJ = () => U(!z), t[19] = z, t[20] = pJ);
|
|
34638
|
+
let mJ = z ? "Collapse traceback" : "Expand traceback", hJ;
|
|
34639
|
+
t[21] === z ? hJ = t[22] : (hJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34640
34640
|
className: "h-3 w-3"
|
|
34641
34641
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34642
34642
|
className: "h-3 w-3"
|
|
34643
|
-
}), t[21] = z, t[22] =
|
|
34644
|
-
let
|
|
34645
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34643
|
+
}), t[21] = z, t[22] = hJ);
|
|
34644
|
+
let gJ;
|
|
34645
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34646
34646
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34647
34647
|
children: "Traceback"
|
|
34648
|
-
}), t[23] =
|
|
34649
|
-
let
|
|
34650
|
-
t[24] !== z || t[25] !==
|
|
34648
|
+
}), t[23] = gJ) : gJ = t[23];
|
|
34649
|
+
let _J;
|
|
34650
|
+
t[24] !== z || t[25] !== hJ || t[26] !== pJ || t[27] !== mJ ? (_J = (0, import_jsx_runtime.jsxs)("button", {
|
|
34651
34651
|
type: "button",
|
|
34652
|
-
onClick:
|
|
34652
|
+
onClick: pJ,
|
|
34653
34653
|
"aria-expanded": z,
|
|
34654
|
-
"aria-label":
|
|
34654
|
+
"aria-label": mJ,
|
|
34655
34655
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34656
34656
|
children: [
|
|
34657
|
-
|
|
34658
|
-
|
|
34657
|
+
hJ,
|
|
34658
|
+
gJ
|
|
34659
34659
|
]
|
|
34660
|
-
}), t[24] = z, t[25] =
|
|
34661
|
-
let
|
|
34662
|
-
t[29] !== s || t[30] !== z ? (
|
|
34660
|
+
}), t[24] = z, t[25] = hJ, t[26] = pJ, t[27] = mJ, t[28] = _J) : _J = t[28];
|
|
34661
|
+
let vJ;
|
|
34662
|
+
t[29] !== s || t[30] !== z ? (vJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34663
34663
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34664
34664
|
children: s
|
|
34665
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34666
|
-
let
|
|
34667
|
-
t[32] !== q || t[33] !== $ || t[34] !== M ? (
|
|
34665
|
+
}), t[29] = s, t[30] = z, t[31] = vJ) : vJ = t[31];
|
|
34666
|
+
let yJ;
|
|
34667
|
+
t[32] !== q || t[33] !== $ || t[34] !== M ? (yJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34668
34668
|
tooltip: "Fix with AI",
|
|
34669
34669
|
openPrompt: () => q(false),
|
|
34670
34670
|
applyAutofix: () => q(true),
|
|
34671
34671
|
openChat: $
|
|
34672
|
-
}), t[32] = q, t[33] = $, t[34] = M, t[35] =
|
|
34673
|
-
let
|
|
34674
|
-
t[36] !== O || t[37] !== S ? (
|
|
34672
|
+
}), t[32] = q, t[33] = $, t[34] = M, t[35] = yJ) : yJ = t[35];
|
|
34673
|
+
let bJ;
|
|
34674
|
+
t[36] !== O || t[37] !== S ? (bJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34675
34675
|
content: "Attach pdb to the exception point.",
|
|
34676
34676
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34677
34677
|
size: "xs",
|
|
@@ -34688,9 +34688,9 @@ ${d}`,
|
|
|
34688
34688
|
"Launch debugger"
|
|
34689
34689
|
]
|
|
34690
34690
|
})
|
|
34691
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34692
|
-
let
|
|
34693
|
-
t[39] !== d || t[40] !== i ? (
|
|
34691
|
+
}), t[36] = O, t[37] = S, t[38] = bJ) : bJ = t[38];
|
|
34692
|
+
let xJ;
|
|
34693
|
+
t[39] !== d || t[40] !== i ? (xJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34694
34694
|
children: [
|
|
34695
34695
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34696
34696
|
asChild: true,
|
|
@@ -34758,25 +34758,25 @@ ${d}`,
|
|
|
34758
34758
|
]
|
|
34759
34759
|
})
|
|
34760
34760
|
]
|
|
34761
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34762
|
-
let
|
|
34763
|
-
t[42] !==
|
|
34761
|
+
}), t[39] = d, t[40] = i, t[41] = xJ) : xJ = t[41];
|
|
34762
|
+
let SJ;
|
|
34763
|
+
t[42] !== yJ || t[43] !== bJ || t[44] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34764
34764
|
className: "flex gap-2",
|
|
34765
34765
|
children: [
|
|
34766
|
-
vJ,
|
|
34767
34766
|
yJ,
|
|
34768
|
-
bJ
|
|
34767
|
+
bJ,
|
|
34768
|
+
xJ
|
|
34769
34769
|
]
|
|
34770
|
-
}), t[42] =
|
|
34771
|
-
let
|
|
34772
|
-
return t[46] !==
|
|
34770
|
+
}), t[42] = yJ, t[43] = bJ, t[44] = xJ, t[45] = SJ) : SJ = t[45];
|
|
34771
|
+
let CJ;
|
|
34772
|
+
return t[46] !== _J || t[47] !== vJ || t[48] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34773
34773
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34774
34774
|
children: [
|
|
34775
|
-
gJ,
|
|
34776
34775
|
_J,
|
|
34777
|
-
|
|
34776
|
+
vJ,
|
|
34777
|
+
SJ
|
|
34778
34778
|
]
|
|
34779
|
-
}), t[46] =
|
|
34779
|
+
}), t[46] = _J, t[47] = vJ, t[48] = SJ, t[49] = CJ) : CJ = t[49], CJ;
|
|
34780
34780
|
};
|
|
34781
34781
|
function lastLine(e) {
|
|
34782
34782
|
var _a2, _b;
|
|
@@ -36212,14 +36212,14 @@ ${d}`,
|
|
|
36212
36212
|
Q
|
|
36213
36213
|
]
|
|
36214
36214
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36215
|
-
let
|
|
36216
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36215
|
+
let pJ;
|
|
36216
|
+
return t[36] !== I || t[37] !== $ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36217
36217
|
className: "flex flex-col gap-3",
|
|
36218
36218
|
children: [
|
|
36219
36219
|
I,
|
|
36220
36220
|
$
|
|
36221
36221
|
]
|
|
36222
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36222
|
+
}), t[36] = I, t[37] = $, t[38] = pJ) : pJ = t[38], pJ;
|
|
36223
36223
|
};
|
|
36224
36224
|
SlideSidebar = (e) => {
|
|
36225
36225
|
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
@@ -36344,7 +36344,7 @@ ${d}`,
|
|
|
36344
36344
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36345
36345
|
}
|
|
36346
36346
|
}
|
|
36347
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-
|
|
36347
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev29");
|
|
36348
36348
|
showCodeInRunModeAtom = atom(true);
|
|
36349
36349
|
atom(null);
|
|
36350
36350
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36370,134 +36370,142 @@ ${d}`,
|
|
|
36370
36370
|
function _temp(e) {
|
|
36371
36371
|
return !!e.code;
|
|
36372
36372
|
}
|
|
36373
|
+
cellDomProps = function(e, t) {
|
|
36374
|
+
return {
|
|
36375
|
+
"data-cell-id": e,
|
|
36376
|
+
"data-cell-name": t,
|
|
36377
|
+
id: HTMLCellId.create(e)
|
|
36378
|
+
};
|
|
36379
|
+
};
|
|
36373
36380
|
});
|
|
36374
36381
|
export {
|
|
36375
|
-
|
|
36376
|
-
|
|
36377
|
-
|
|
36378
|
-
|
|
36379
|
-
|
|
36380
|
-
|
|
36381
|
-
|
|
36382
|
-
|
|
36383
|
-
|
|
36384
|
-
|
|
36385
|
-
|
|
36386
|
-
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36396
|
-
|
|
36397
|
-
|
|
36398
|
-
|
|
36399
|
-
|
|
36400
|
-
|
|
36401
|
-
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
|
|
36407
|
-
|
|
36408
|
-
|
|
36409
|
-
|
|
36410
|
-
|
|
36411
|
-
|
|
36412
|
-
|
|
36413
|
-
|
|
36414
|
-
|
|
36415
|
-
|
|
36416
|
-
|
|
36417
|
-
|
|
36418
|
-
|
|
36419
|
-
|
|
36420
|
-
|
|
36421
|
-
|
|
36422
|
-
|
|
36423
|
-
|
|
36424
|
-
|
|
36425
|
-
|
|
36426
|
-
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36382
|
+
CommandSeparator as $,
|
|
36383
|
+
Kbd as $t,
|
|
36384
|
+
ErrorState as A,
|
|
36385
|
+
getPageIndexForRow as At,
|
|
36386
|
+
ContextMenuTrigger as B,
|
|
36387
|
+
dateToLocalISODate as Bt,
|
|
36388
|
+
downloadHTMLAsImage as C,
|
|
36389
|
+
inferFieldTypes as Ct,
|
|
36390
|
+
ColumnName as D,
|
|
36391
|
+
DelayMount as Dt,
|
|
36392
|
+
downloadSizeLimitAtom as E,
|
|
36393
|
+
ColumnChartSpecModel as Et,
|
|
36394
|
+
getUserColumnVisibilityCounts as F,
|
|
36395
|
+
TOO_MANY_ROWS as Ft,
|
|
36396
|
+
DateRangePicker as G,
|
|
36397
|
+
TabsList as Gt,
|
|
36398
|
+
useSelectList as H,
|
|
36399
|
+
dateToLocalISOTime as Ht,
|
|
36400
|
+
ContextMenu as I,
|
|
36401
|
+
toFieldTypes as It,
|
|
36402
|
+
Command as J,
|
|
36403
|
+
ChartInfoState as Jt,
|
|
36404
|
+
Combobox as K,
|
|
36405
|
+
TabsTrigger as Kt,
|
|
36406
|
+
ContextMenuContent as L,
|
|
36407
|
+
getMimeValues as Lt,
|
|
36408
|
+
prettifyRowColumnCount as M,
|
|
36409
|
+
loadTableData as Mt,
|
|
36410
|
+
prettifyRowCount as N,
|
|
36411
|
+
INDEX_COLUMN_NAME as Nt,
|
|
36412
|
+
ColumnPreviewContainer as O,
|
|
36413
|
+
useIntersectionObserver as Ot,
|
|
36414
|
+
getColumnCountForDisplay as P,
|
|
36415
|
+
SELECT_COLUMN_ID as Pt,
|
|
36416
|
+
CommandList as Q,
|
|
36417
|
+
RenderTextWithLinks as Qt,
|
|
36418
|
+
ContextMenuItem as R,
|
|
36419
|
+
isNullishFilter as Rt,
|
|
36420
|
+
downloadExportedFile as S,
|
|
36421
|
+
generateColumns as St,
|
|
36422
|
+
Filenames as T,
|
|
36423
|
+
ColumnChartContext as Tt,
|
|
36424
|
+
CompactChipRow as U,
|
|
36425
|
+
Tabs as Ut,
|
|
36426
|
+
useInternalStateWithSync as V,
|
|
36427
|
+
dateToLocalISODateTime as Vt,
|
|
36428
|
+
DatePicker as W,
|
|
36429
|
+
TabsContent as Wt,
|
|
36430
|
+
CommandInput as X,
|
|
36431
|
+
LazyVegaEmbed as Xt,
|
|
36432
|
+
CommandEmpty as Y,
|
|
36433
|
+
ChartLoadingState as Yt,
|
|
36434
|
+
CommandItem as Z,
|
|
36435
|
+
useOverflowDetection as Zt,
|
|
36436
|
+
DataTable as _,
|
|
36430
36437
|
__tla,
|
|
36431
|
-
|
|
36432
|
-
|
|
36433
|
-
|
|
36434
|
-
$fae977aafc393c5c$export$
|
|
36435
|
-
|
|
36436
|
-
|
|
36437
|
-
|
|
36438
|
-
|
|
36439
|
-
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
-
|
|
36443
|
-
|
|
36444
|
-
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36448
|
-
|
|
36449
|
-
|
|
36450
|
-
|
|
36451
|
-
|
|
36452
|
-
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
|
|
36456
|
-
|
|
36457
|
-
|
|
36458
|
-
|
|
36459
|
-
|
|
36460
|
-
|
|
36461
|
-
|
|
36462
|
-
|
|
36463
|
-
|
|
36464
|
-
|
|
36465
|
-
|
|
36466
|
-
|
|
36467
|
-
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36471
|
-
|
|
36472
|
-
|
|
36473
|
-
|
|
36474
|
-
|
|
36475
|
-
|
|
36476
|
-
|
|
36477
|
-
|
|
36478
|
-
|
|
36479
|
-
|
|
36480
|
-
|
|
36481
|
-
|
|
36482
|
-
|
|
36483
|
-
|
|
36484
|
-
|
|
36485
|
-
|
|
36486
|
-
|
|
36487
|
-
|
|
36488
|
-
|
|
36489
|
-
|
|
36490
|
-
|
|
36491
|
-
|
|
36492
|
-
|
|
36493
|
-
|
|
36494
|
-
|
|
36495
|
-
|
|
36496
|
-
|
|
36497
|
-
|
|
36498
|
-
|
|
36499
|
-
|
|
36500
|
-
|
|
36501
|
-
|
|
36502
|
-
|
|
36438
|
+
ChevronsLeft as _n,
|
|
36439
|
+
TableCell as _t,
|
|
36440
|
+
DEFAULT_DECK_TRANSITION as a,
|
|
36441
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as an,
|
|
36442
|
+
contextAwarePanelType as at,
|
|
36443
|
+
downloadBlob as b,
|
|
36444
|
+
ArrowDownWideNarrow as bn,
|
|
36445
|
+
TableRow as bt,
|
|
36446
|
+
SLIDE_TYPE_OPTIONS_BY_VALUE as c,
|
|
36447
|
+
GripHorizontal as cn,
|
|
36448
|
+
slotsController as ct,
|
|
36449
|
+
Switch as d,
|
|
36450
|
+
Expand as dn,
|
|
36451
|
+
PanelGroup as dt,
|
|
36452
|
+
HtmlOutput as en,
|
|
36453
|
+
smartMatch as et,
|
|
36454
|
+
RadioGroup as f,
|
|
36455
|
+
Ellipsis as fn,
|
|
36456
|
+
PanelResizeHandle as ft,
|
|
36457
|
+
OutputRenderer as g,
|
|
36458
|
+
ChevronsRight as gn,
|
|
36459
|
+
TableBody as gt,
|
|
36460
|
+
OutputArea as h,
|
|
36461
|
+
ChevronsUpDown as hn,
|
|
36462
|
+
Table as ht,
|
|
36463
|
+
showCodeInRunModeAtom as i,
|
|
36464
|
+
isRecord as in,
|
|
36465
|
+
contextAwarePanelOwner as it,
|
|
36466
|
+
LoadingState as j,
|
|
36467
|
+
loadTableAndRawData as jt,
|
|
36468
|
+
EmptyState as k,
|
|
36469
|
+
usePrevious as kt,
|
|
36470
|
+
SlideSidebar as l,
|
|
36471
|
+
Funnel as ln,
|
|
36472
|
+
Toggle as lt,
|
|
36473
|
+
JsonOutput as m,
|
|
36474
|
+
Code as mn,
|
|
36475
|
+
Provider$1 as mt,
|
|
36476
|
+
useNotebookCodeAvailable as n,
|
|
36477
|
+
safeLocale as nn,
|
|
36478
|
+
PANEL_TYPES as nt,
|
|
36479
|
+
DEFAULT_DECK_VERTICAL_ALIGN as o,
|
|
36480
|
+
$fae977aafc393c5c$export$6b862160d295c8e as on,
|
|
36481
|
+
isCellAwareAtom as ot,
|
|
36482
|
+
RadioGroupItem as p,
|
|
36483
|
+
Download as pn,
|
|
36484
|
+
Fill as pt,
|
|
36485
|
+
ComboboxItem as q,
|
|
36486
|
+
ChartErrorState as qt,
|
|
36487
|
+
marimoVersionAtom as r,
|
|
36488
|
+
hasFunctionProperty as rn,
|
|
36489
|
+
contextAwarePanelOpen as rt,
|
|
36490
|
+
DEFAULT_SLIDE_TYPE as s,
|
|
36491
|
+
TextWrap as sn,
|
|
36492
|
+
SlotNames as st,
|
|
36493
|
+
cellDomProps as t,
|
|
36494
|
+
EmotionCacheProvider as tn,
|
|
36495
|
+
ContextAwarePanelItem as tt,
|
|
36496
|
+
Slide as u,
|
|
36497
|
+
EyeOff as un,
|
|
36498
|
+
Panel as ut,
|
|
36499
|
+
InstallPackageButton as v,
|
|
36500
|
+
ChevronsDownUp as vn,
|
|
36501
|
+
TableHead as vt,
|
|
36502
|
+
Progress as w,
|
|
36503
|
+
renderCellValue as wt,
|
|
36504
|
+
downloadByURL as x,
|
|
36505
|
+
NAMELESS_COLUMN_PREFIX as xt,
|
|
36506
|
+
ADD_PRINTING_CLASS as y,
|
|
36507
|
+
ChevronLeft as yn,
|
|
36508
|
+
TableHeader as yt,
|
|
36509
|
+
ContextMenuSeparator as z,
|
|
36510
|
+
Maps as zt
|
|
36503
36511
|
};
|