@marimo-team/islands 0.23.16-dev23 → 0.23.16-dev24
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-Bi6qrSJV.js → code-visibility-DsEGA9_b.js} +778 -770
- package/dist/main.js +937 -942
- package/dist/{reveal-component-BFiF5alf.js → reveal-component-W3BHYmGS.js} +18 -18
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +20 -4
- package/src/components/editor/actions/__tests__/pdf-export.test.ts +0 -4
- package/src/components/editor/actions/pdf-export.ts +1 -4
- package/src/components/editor/actions/useNotebookActions.tsx +7 -13
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/static-html/share-modal.tsx +1 -1
- package/src/core/network/__tests__/api.test.ts +42 -0
- package/src/core/network/__tests__/requests-network.test.ts +1 -0
- package/src/core/network/api.ts +27 -0
- package/src/core/network/requests-network.ts +5 -5
- package/src/core/network/types.ts +15 -4
- package/src/core/static/download-html.ts +5 -14
- package/src/core/wasm/bridge.ts +3 -2
- package/src/core/wasm/worker/types.ts +5 -2
- package/src/utils/__tests__/download.test.tsx +24 -1
- package/src/utils/download.ts +11 -6
|
@@ -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 smartMatch, HtmlOutput, LoadingState, loadTableAndRawData, useInternalStateWithSync, dateToLocalISODateTime, Progress, renderCellValue, ColumnPreviewContainer, useIntersectionObserver, ColumnName, DelayMount, ContextMenu, toFieldTypes, Combobox, TabsTrigger, CompactChipRow, Tabs, ContextMenuContent, getMimeValues, CommandEmpty, ChartLoadingState, ComboboxItem, ChartErrorState, ContextMenuItem, isNullishFilter, prettifyRowCount, INDEX_COLUMN_NAME, getColumnCountForDisplay, SELECT_COLUMN_ID, EmptyState, usePrevious, getUserColumnVisibilityCounts, TOO_MANY_ROWS, CommandSeparator, Kbd, ContextMenuSeparator, Maps, downloadHTMLAsImage, inferFieldTypes, downloadSizeLimitAtom, ColumnChartSpecModel, DatePicker, TabsContent, useSelectList, dateToLocalISOTime, DateRangePicker, TabsList, CommandItem, useOverflowDetection, CommandInput, LazyVegaEmbed, CommandList, RenderTextWithLinks, InstallPackageButton, ChevronsDownUp, TableHead, DEFAULT_DECK_VERTICAL_ALIGN, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, downloadByURL, NAMELESS_COLUMN_PREFIX, SlideSidebar, Funnel, Toggle, RadioGroup, Ellipsis, PanelResizeHandle, EmotionCacheProvider, ContextAwarePanelItem, RadioGroupItem, Download, Fill, DataTable, ChevronsLeft, TableCell, OutputRenderer, ChevronsRight, TableBody, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, prettifyRowColumnCount, loadTableData, ErrorState, getPageIndexForRow, Slide, EyeOff, Panel, OutputArea, ChevronsUpDown, Table, marimoVersionAtom, hasFunctionProperty, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, TextWrap, SlotNames, JsonOutput, Code, Provider$1, Command, ChartInfoState, showCodeInRunModeAtom, isRecord, contextAwarePanelOwner, SLIDE_TYPE_OPTIONS_BY_VALUE, GripHorizontal, slotsController, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, Switch, Expand, PanelGroup, ADD_PRINTING_CLASS, ChevronLeft, TableHeader, Filenames, ColumnChartContext, downloadExportedFile, generateColumns, downloadBlob, ArrowDownWideNarrow, TableRow, ContextMenuTrigger, dateToLocalISODate;
|
|
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, cJ = c.top - E, lJ = c.bottom + O, uJ = c.left - A, dJ = c.right + M, fJ = e === _ ? 0 : Q + $, pJ = e === _ ? 0 : q + J, mJ = e.offsetWidth - e.clientWidth - fJ, hJ = e.offsetHeight - e.clientHeight - pJ, gJ = v + q + I, _J = y - J - z - hJ, vJ = S + Q + U, yJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? vJ += mJ : yJ -= mJ;
|
|
2066
|
+
let bJ = cJ < gJ || lJ > _J, xJ = uJ < vJ || dJ > yJ;
|
|
2067
|
+
if (bJ && i === "start") o += cJ - gJ;
|
|
2068
|
+
else if (bJ && i === "center") o += (cJ + lJ) / 2 - (gJ + _J) / 2;
|
|
2069
|
+
else if (bJ && i === "end") o += lJ - _J;
|
|
2070
|
+
else if (bJ && i === "nearest") {
|
|
2071
|
+
let e2 = cJ - gJ, t2 = lJ - _J;
|
|
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 (xJ && a === "start") s += uJ - vJ;
|
|
2075
|
+
else if (xJ && a === "center") s += (uJ + dJ) / 2 - (vJ + yJ) / 2;
|
|
2076
|
+
else if (xJ && a === "end") s += dJ - yJ;
|
|
2077
|
+
else if (xJ && a === "nearest") {
|
|
2078
|
+
let e2 = uJ - vJ, t2 = dJ - yJ;
|
|
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 cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += cJ;
|
|
5190
|
+
let lJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < lJ && (lJ = y), n.height = Math.min(n.height, lJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += cJ;
|
|
5192
|
+
let uJ = {}, dJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], fJ = dJ + 0.5 * t[z], pJ = S / 2 + w, mJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), hJ = n[z] - mJ - S / 2 - w;
|
|
5193
|
+
uJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(fJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), pJ, hJ), { placement: U, crossPlacement: K } = A, S ? dJ = uJ[I] : K === "right" ? dJ += t[z] : K === "center" && (dJ += t[z] / 2);
|
|
5194
|
+
let gJ = U === "left" || U === "top" ? n[M] : 0, _J = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? dJ : gJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? dJ : gJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: lJ,
|
|
5201
|
+
arrowOffsetLeft: uJ.left,
|
|
5202
|
+
arrowOffsetTop: uJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: _J
|
|
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 cJ = $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 lJ = $bdb11010cef70236$export$f680877a34711e37(), uJ = !t.isDisabled && !t.isReadOnly && e.isEditable, dJ = e.type === "literal" ? "" : s.of(e.type), fJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${dJ}${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 pJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
pJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (pJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, fJ, {
|
|
7088
|
+
id: lJ,
|
|
7089
|
+
...cJ,
|
|
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: uJ,
|
|
7095
|
+
suppressContentEditableWarning: uJ,
|
|
7096
|
+
spellCheck: uJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: uJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: uJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !uJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: pJ,
|
|
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 cJ = (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
|
+
]), lJ = e.isInvalid || e.validationState === "invalid" || cJ, uJ = lJ ? "invalid" : null, dJ = (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: uJ,
|
|
10375
|
+
isValueInvalid: lJ,
|
|
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(dJ);
|
|
10401
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, i));
|
|
10402
10402
|
},
|
|
10403
10403
|
focusPreviousPage() {
|
|
10404
|
-
let e2 = M.subtract(
|
|
10405
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10404
|
+
let e2 = M.subtract(dJ);
|
|
10405
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, 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
|
+
}, [$, cJ] = (0, import_react.useState)(false), { isDateUnavailable: lJ } = e, uJ = (0, import_react.useMemo)(() => !h || v ? false : lJ && (lJ(h.start) || lJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10543
|
+
lJ,
|
|
10544
10544
|
h,
|
|
10545
10545
|
v,
|
|
10546
10546
|
c,
|
|
10547
10547
|
d
|
|
10548
|
-
]),
|
|
10548
|
+
]), dJ = e.isInvalid || e.validationState === "invalid" || uJ, fJ = dJ ? "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: fJ,
|
|
10557
|
+
isValueInvalid: dJ,
|
|
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: cJ
|
|
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
|
+
]), cJ = (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
|
+
]), [lJ, uJ] = (0, import_react.useState)(M), [dJ, fJ] = (0, import_react.useState)(S), [pJ, mJ] = (0, import_react.useState)(w);
|
|
11779
|
+
(M !== lJ || w !== pJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, dJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), uJ(M), fJ(S), mJ(w), z(I));
|
|
11780
|
+
let hJ = (t2) => {
|
|
11781
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(cJ)) 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(cJ)) {
|
|
11785
11785
|
let e2 = t2.toValue(M ?? $);
|
|
11786
|
-
if (t2.validate(e2,
|
|
11786
|
+
if (t2.validate(e2, cJ)) {
|
|
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
|
+
}, gJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11797
11797
|
I,
|
|
11798
11798
|
y,
|
|
11799
11799
|
M,
|
|
11800
11800
|
$
|
|
11801
|
-
]),
|
|
11802
|
-
|
|
11801
|
+
]), _J = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(gJ, I, J, Q, S, t, _), [
|
|
11802
|
+
gJ,
|
|
11803
11803
|
J,
|
|
11804
11804
|
Q,
|
|
11805
11805
|
I,
|
|
11806
11806
|
S,
|
|
11807
11807
|
t,
|
|
11808
11808
|
_
|
|
11809
|
-
]),
|
|
11810
|
-
|
|
11811
|
-
},
|
|
11809
|
+
]), vJ = (e2, t2) => {
|
|
11810
|
+
hJ(I.cycle(e2, t2, $, cJ));
|
|
11811
|
+
}, yJ = (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
|
+
]), bJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11818
11818
|
...e,
|
|
11819
11819
|
value: E,
|
|
11820
|
-
builtinValidation:
|
|
11821
|
-
}),
|
|
11820
|
+
builtinValidation: yJ
|
|
11821
|
+
}), xJ = bJ.displayValidation.isInvalid, SJ = e.validationState || (xJ ? "invalid" : null);
|
|
11822
11822
|
return {
|
|
11823
|
-
...
|
|
11823
|
+
...bJ,
|
|
11824
11824
|
value: M,
|
|
11825
11825
|
defaultValue: e.defaultValue ?? A,
|
|
11826
|
-
dateValue:
|
|
11826
|
+
dateValue: gJ,
|
|
11827
11827
|
calendar: S,
|
|
11828
|
-
setValue:
|
|
11829
|
-
segments:
|
|
11828
|
+
setValue: hJ,
|
|
11829
|
+
segments: _J,
|
|
11830
11830
|
dateFormatter: J,
|
|
11831
|
-
validationState:
|
|
11832
|
-
isInvalid:
|
|
11831
|
+
validationState: SJ,
|
|
11832
|
+
isInvalid: xJ,
|
|
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
|
+
vJ(e2, 1);
|
|
11840
11840
|
},
|
|
11841
11841
|
decrement(e2) {
|
|
11842
|
-
|
|
11842
|
+
vJ(e2, -1);
|
|
11843
11843
|
},
|
|
11844
11844
|
incrementPage(e2) {
|
|
11845
|
-
|
|
11845
|
+
vJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11846
11846
|
},
|
|
11847
11847
|
decrementPage(e2) {
|
|
11848
|
-
|
|
11848
|
+
vJ(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
|
+
hJ(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
|
+
hJ(I.set(e2, t2, $));
|
|
11857
11857
|
},
|
|
11858
11858
|
setSegment(e2, t2) {
|
|
11859
|
-
|
|
11859
|
+
hJ(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(cJ)) {
|
|
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)), hJ(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(gJ) : "";
|
|
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, cJ = 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: cJ,
|
|
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, cJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15933
15933
|
h2
|
|
15934
|
-
]),
|
|
15935
|
-
|
|
15936
|
-
]),
|
|
15937
|
-
supportedColorSchemes:
|
|
15938
|
-
defaultLightColorScheme:
|
|
15939
|
-
defaultDarkColorScheme:
|
|
15934
|
+
]), lJ = cJ[t], uJ = lJ || cJ, { colorSchemes: dJ = _, components: fJ = v, cssVarPrefix: pJ } = uJ, mJ = Object.keys(dJ).filter((e3) => !!dJ[e3]).join(","), hJ = import_react.useMemo(() => mJ.split(","), [
|
|
15935
|
+
mJ
|
|
15936
|
+
]), gJ = typeof s == "string" ? s : s.light, _J = typeof s == "string" ? s : s.dark, { mode: vJ, setMode: yJ, systemMode: bJ, lightColorScheme: xJ, darkColorScheme: SJ, colorScheme: CJ, setColorScheme: wJ } = useCurrentColorScheme({
|
|
15937
|
+
supportedColorSchemes: hJ,
|
|
15938
|
+
defaultLightColorScheme: gJ,
|
|
15939
|
+
defaultDarkColorScheme: _J,
|
|
15940
15940
|
modeStorageKey: y2,
|
|
15941
15941
|
colorSchemeStorageKey: S2,
|
|
15942
|
-
defaultMode:
|
|
15942
|
+
defaultMode: dJ[gJ] && dJ[_J] ? U : ((_b = (_a2 = dJ[uJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = uJ.palette) == null ? void 0 : _c.mode),
|
|
15943
15943
|
storageManager: E,
|
|
15944
15944
|
storageWindow: O,
|
|
15945
15945
|
noSsr: K
|
|
15946
|
-
}),
|
|
15947
|
-
$ && (
|
|
15948
|
-
let
|
|
15946
|
+
}), TJ = vJ, EJ = CJ;
|
|
15947
|
+
$ && (TJ = Q.mode, EJ = Q.colorScheme);
|
|
15948
|
+
let DJ = import_react.useMemo(() => {
|
|
15949
15949
|
var _a3;
|
|
15950
|
-
let e3 =
|
|
15951
|
-
...
|
|
15952
|
-
components:
|
|
15953
|
-
colorSchemes:
|
|
15954
|
-
cssVarPrefix:
|
|
15950
|
+
let e3 = EJ || uJ.defaultColorScheme, t2 = ((_a3 = uJ.generateThemeVars) == null ? void 0 : _a3.call(uJ)) || uJ.vars, n2 = {
|
|
15951
|
+
...uJ,
|
|
15952
|
+
components: fJ,
|
|
15953
|
+
colorSchemes: dJ,
|
|
15954
|
+
cssVarPrefix: pJ,
|
|
15955
15955
|
vars: t2
|
|
15956
15956
|
};
|
|
15957
15957
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15958
|
-
let t3 =
|
|
15958
|
+
let t3 = dJ[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
|
-
lJ,
|
|
15969
|
-
TJ,
|
|
15970
|
-
dJ,
|
|
15971
15968
|
uJ,
|
|
15972
|
-
|
|
15973
|
-
|
|
15969
|
+
EJ,
|
|
15970
|
+
fJ,
|
|
15971
|
+
dJ,
|
|
15972
|
+
pJ
|
|
15973
|
+
]), OJ = uJ.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 (EJ && M && OJ && OJ !== "media") {
|
|
15976
|
+
let e3 = OJ, t2 = OJ;
|
|
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(...hJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", EJ));
|
|
15978
15978
|
else {
|
|
15979
|
-
let e4 = t2.replace("%s",
|
|
15979
|
+
let e4 = t2.replace("%s", EJ).match(/\[([^\]]+)\]/);
|
|
15980
15980
|
if (e4) {
|
|
15981
15981
|
let [t3, n2] = e4[1].split("=");
|
|
15982
|
-
n2 ||
|
|
15983
|
-
M.removeAttribute(t3.replace(
|
|
15982
|
+
n2 || hJ.forEach((e5) => {
|
|
15983
|
+
M.removeAttribute(t3.replace(EJ, e5));
|
|
15984
15984
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15985
|
-
} else M.setAttribute(t2,
|
|
15985
|
+
} else M.setAttribute(t2, EJ);
|
|
15986
15986
|
}
|
|
15987
15987
|
}
|
|
15988
15988
|
}, [
|
|
15989
|
-
|
|
15990
|
-
|
|
15989
|
+
EJ,
|
|
15990
|
+
OJ,
|
|
15991
15991
|
M,
|
|
15992
|
-
|
|
15992
|
+
hJ
|
|
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
|
+
EJ,
|
|
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 kJ = import_react.useMemo(() => ({
|
|
16012
|
+
allColorSchemes: hJ,
|
|
16013
|
+
colorScheme: EJ,
|
|
16014
|
+
darkColorScheme: SJ,
|
|
16015
|
+
lightColorScheme: xJ,
|
|
16016
|
+
mode: TJ,
|
|
16017
|
+
setColorScheme: wJ,
|
|
16018
|
+
setMode: yJ,
|
|
16019
|
+
systemMode: bJ
|
|
16020
16020
|
}), [
|
|
16021
|
-
|
|
16022
|
-
|
|
16021
|
+
hJ,
|
|
16022
|
+
EJ,
|
|
16023
|
+
SJ,
|
|
16023
16024
|
xJ,
|
|
16024
|
-
|
|
16025
|
+
TJ,
|
|
16025
16026
|
wJ,
|
|
16026
|
-
CJ,
|
|
16027
|
-
vJ,
|
|
16028
16027
|
yJ,
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16028
|
+
bJ,
|
|
16029
|
+
DJ.colorSchemeSelector
|
|
16030
|
+
]), AJ = true;
|
|
16031
|
+
(z || uJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === pJ) && (AJ = false);
|
|
16032
|
+
let jJ = (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: lJ ? t : void 0,
|
|
16036
|
+
theme: DJ,
|
|
16037
16037
|
children: d2
|
|
16038
16038
|
}),
|
|
16039
|
-
|
|
16040
|
-
styles: ((_d =
|
|
16039
|
+
AJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16040
|
+
styles: ((_d = DJ.generateStyleSheets) == null ? void 0 : _d.call(DJ)) || []
|
|
16041
16041
|
})
|
|
16042
16042
|
]
|
|
16043
16043
|
});
|
|
16044
|
-
return $ ?
|
|
16045
|
-
value:
|
|
16046
|
-
children:
|
|
16044
|
+
return $ ? jJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16045
|
+
value: kJ,
|
|
16046
|
+
children: jJ
|
|
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: cJ, onKeyDown: lJ, onKeyUp: uJ, placeholder: dJ, readOnly: fJ, renderSuffix: pJ, rows: mJ, size: hJ, slotProps: gJ = {}, slots: _J = {}, startAdornment: vJ, type: yJ = "text", value: bJ, ...xJ } = n, SJ = A.value == null ? bJ : A.value, { current: CJ } = import_react.useRef(SJ != null), wJ = import_react.useRef(), TJ = import_react.useCallback((e2) => {
|
|
17547
|
+
}, []), EJ = useForkRef_default(wJ, M, A.ref, TJ), [DJ, OJ] = import_react.useState(false), kJ = useFormControl(), AJ = formControlState({
|
|
17548
17548
|
props: n,
|
|
17549
|
-
muiFormControl:
|
|
17549
|
+
muiFormControl: kJ,
|
|
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
|
+
AJ.focused = kJ ? kJ.focused : DJ, import_react.useEffect(() => {
|
|
17561
|
+
!kJ && _ && DJ && (OJ(false), J && J());
|
|
17562
17562
|
}, [
|
|
17563
|
-
|
|
17563
|
+
kJ,
|
|
17564
17564
|
_,
|
|
17565
|
-
|
|
17565
|
+
DJ,
|
|
17566
17566
|
J
|
|
17567
17567
|
]);
|
|
17568
|
-
let
|
|
17569
|
-
isFilled(e2) ?
|
|
17568
|
+
let jJ = kJ && kJ.onFilled, MJ = kJ && kJ.onEmpty, NJ = import_react.useCallback((e2) => {
|
|
17569
|
+
isFilled(e2) ? jJ && jJ() : MJ && MJ();
|
|
17570
17570
|
}, [
|
|
17571
|
-
|
|
17572
|
-
|
|
17571
|
+
jJ,
|
|
17572
|
+
MJ
|
|
17573
17573
|
]);
|
|
17574
17574
|
useEnhancedEffect_default$1(() => {
|
|
17575
|
-
|
|
17576
|
-
value:
|
|
17575
|
+
CJ && NJ({
|
|
17576
|
+
value: SJ
|
|
17577
17577
|
});
|
|
17578
17578
|
}, [
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17579
|
+
SJ,
|
|
17580
|
+
NJ,
|
|
17581
|
+
CJ
|
|
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 PJ = (e2) => {
|
|
17584
|
+
cJ && cJ(e2), A.onFocus && A.onFocus(e2), kJ && kJ.onFocus ? kJ.onFocus(e2) : OJ(true);
|
|
17585
|
+
}, FJ = (e2) => {
|
|
17586
|
+
J && J(e2), A.onBlur && A.onBlur(e2), kJ && kJ.onBlur ? kJ.onBlur(e2) : OJ(false);
|
|
17587
|
+
}, IJ = (e2, ...t2) => {
|
|
17588
|
+
if (!CJ) {
|
|
17589
|
+
let t3 = e2.target || wJ.current;
|
|
17590
17590
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17591
|
-
|
|
17591
|
+
NJ({
|
|
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
|
+
NJ(wJ.current);
|
|
17599
17599
|
}, []);
|
|
17600
|
-
let
|
|
17601
|
-
|
|
17602
|
-
},
|
|
17603
|
-
K &&
|
|
17600
|
+
let LJ = (e2) => {
|
|
17601
|
+
wJ.current && e2.currentTarget === e2.target && wJ.current.focus(), $ && $(e2);
|
|
17602
|
+
}, RJ = O, zJ = A;
|
|
17603
|
+
K && RJ === "input" && (zJ = mJ ? {
|
|
17604
17604
|
type: void 0,
|
|
17605
|
-
minRows:
|
|
17606
|
-
maxRows:
|
|
17607
|
-
...
|
|
17605
|
+
minRows: mJ,
|
|
17606
|
+
maxRows: mJ,
|
|
17607
|
+
...zJ
|
|
17608
17608
|
} : {
|
|
17609
17609
|
type: void 0,
|
|
17610
17610
|
maxRows: z,
|
|
17611
17611
|
minRows: U,
|
|
17612
|
-
...
|
|
17613
|
-
},
|
|
17614
|
-
let
|
|
17615
|
-
|
|
17612
|
+
...zJ
|
|
17613
|
+
}, RJ = TextareaAutosize_default);
|
|
17614
|
+
let BJ = (e2) => {
|
|
17615
|
+
NJ(e2.animationName === "mui-auto-fill-cancel" ? wJ.current : {
|
|
17616
17616
|
value: "x"
|
|
17617
17617
|
});
|
|
17618
17618
|
};
|
|
17619
17619
|
import_react.useEffect(() => {
|
|
17620
|
-
|
|
17620
|
+
kJ && kJ.setAdornedStart(!!vJ);
|
|
17621
17621
|
}, [
|
|
17622
|
-
|
|
17623
|
-
|
|
17622
|
+
kJ,
|
|
17623
|
+
vJ
|
|
17624
17624
|
]);
|
|
17625
|
-
let
|
|
17625
|
+
let VJ = {
|
|
17626
17626
|
...n,
|
|
17627
|
-
color:
|
|
17628
|
-
disabled:
|
|
17627
|
+
color: AJ.color || "primary",
|
|
17628
|
+
disabled: AJ.disabled,
|
|
17629
17629
|
endAdornment: y,
|
|
17630
|
-
error:
|
|
17631
|
-
focused:
|
|
17632
|
-
formControl:
|
|
17630
|
+
error: AJ.error,
|
|
17631
|
+
focused: AJ.focused,
|
|
17632
|
+
formControl: kJ,
|
|
17633
17633
|
fullWidth: w,
|
|
17634
|
-
hiddenLabel:
|
|
17634
|
+
hiddenLabel: AJ.hiddenLabel,
|
|
17635
17635
|
multiline: K,
|
|
17636
|
-
size:
|
|
17637
|
-
startAdornment:
|
|
17638
|
-
type:
|
|
17639
|
-
},
|
|
17640
|
-
return
|
|
17641
|
-
...
|
|
17642
|
-
...
|
|
17636
|
+
size: AJ.size,
|
|
17637
|
+
startAdornment: vJ,
|
|
17638
|
+
type: yJ
|
|
17639
|
+
}, HJ = useUtilityClasses(VJ), UJ = _J.root || d.Root || InputBaseRoot, WJ = gJ.root || f.root || {}, GJ = _J.input || d.Input || InputBaseInput;
|
|
17640
|
+
return zJ = {
|
|
17641
|
+
...zJ,
|
|
17642
|
+
...gJ.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)(UJ, {
|
|
17647
|
+
...WJ,
|
|
17648
17648
|
ref: t,
|
|
17649
|
-
onClick:
|
|
17650
|
-
...
|
|
17651
|
-
...!isHostComponent_default(
|
|
17649
|
+
onClick: LJ,
|
|
17650
|
+
...xJ,
|
|
17651
|
+
...!isHostComponent_default(UJ) && {
|
|
17652
17652
|
ownerState: {
|
|
17653
|
-
...
|
|
17654
|
-
...
|
|
17653
|
+
...VJ,
|
|
17654
|
+
...WJ.ownerState
|
|
17655
17655
|
}
|
|
17656
17656
|
},
|
|
17657
|
-
className: clsx_default(
|
|
17657
|
+
className: clsx_default(HJ.root, WJ.className, s, fJ && "MuiInputBase-readOnly"),
|
|
17658
17658
|
children: [
|
|
17659
|
-
|
|
17659
|
+
vJ,
|
|
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)(GJ, {
|
|
17663
|
+
"aria-invalid": AJ.error,
|
|
17664
17664
|
"aria-describedby": i,
|
|
17665
17665
|
autoComplete: a,
|
|
17666
17666
|
autoFocus: o,
|
|
17667
17667
|
defaultValue: h,
|
|
17668
|
-
disabled:
|
|
17668
|
+
disabled: AJ.disabled,
|
|
17669
17669
|
id: E,
|
|
17670
|
-
onAnimationStart:
|
|
17670
|
+
onAnimationStart: BJ,
|
|
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: dJ,
|
|
17673
|
+
readOnly: fJ,
|
|
17674
|
+
required: AJ.required,
|
|
17675
|
+
rows: mJ,
|
|
17676
|
+
value: SJ,
|
|
17677
|
+
onKeyDown: lJ,
|
|
17678
|
+
onKeyUp: uJ,
|
|
17679
|
+
type: yJ,
|
|
17680
|
+
...zJ,
|
|
17681
|
+
...!isHostComponent_default(GJ) && {
|
|
17682
|
+
as: RJ,
|
|
17683
17683
|
ownerState: {
|
|
17684
|
-
...
|
|
17685
|
-
...
|
|
17684
|
+
...VJ,
|
|
17685
|
+
...zJ.ownerState
|
|
17686
17686
|
}
|
|
17687
17687
|
},
|
|
17688
|
-
ref:
|
|
17689
|
-
className: clsx_default(
|
|
17690
|
-
onBlur:
|
|
17691
|
-
onChange:
|
|
17692
|
-
onFocus:
|
|
17688
|
+
ref: EJ,
|
|
17689
|
+
className: clsx_default(HJ.input, zJ.className, fJ && "MuiInputBase-readOnly"),
|
|
17690
|
+
onBlur: FJ,
|
|
17691
|
+
onChange: IJ,
|
|
17692
|
+
onFocus: PJ
|
|
17693
17693
|
})
|
|
17694
17694
|
}),
|
|
17695
17695
|
y,
|
|
17696
|
-
|
|
17697
|
-
...
|
|
17698
|
-
startAdornment:
|
|
17696
|
+
pJ ? pJ({
|
|
17697
|
+
...AJ,
|
|
17698
|
+
startAdornment: vJ
|
|
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), cJ = useTextColor(), lJ = useJsonViewerStore((e2) => e2.colorspace.base0C), uJ = useJsonViewerStore((e2) => e2.colorspace.base0A), dJ = useJsonViewerStore((e2) => e2.displayComma), fJ = useJsonViewerStore((e2) => e2.quotesOnKeys), pJ = useJsonViewerStore((e2) => e2.rootName), mJ = U === t, hJ = Number.isInteger(Number(A)), gJ = useJsonViewerStore((e2) => e2.enableAdd), _J = useJsonViewerStore((e2) => e2.onAdd), vJ = (0, import_react.useMemo)(() => !_J || a !== void 0 || gJ === false || v === false ? false : typeof gJ == "function" ? !!gJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18775
|
+
_J,
|
|
18776
18776
|
a,
|
|
18777
18777
|
i,
|
|
18778
|
-
|
|
18778
|
+
gJ,
|
|
18779
18779
|
v,
|
|
18780
18780
|
t
|
|
18781
|
-
]),
|
|
18782
|
-
|
|
18781
|
+
]), yJ = useJsonViewerStore((e2) => e2.enableDelete), bJ = useJsonViewerStore((e2) => e2.onDelete), xJ = (0, import_react.useMemo)(() => !bJ || a !== void 0 || mJ || yJ === false || v === false ? false : typeof yJ == "function" ? !!yJ(i, t) : yJ, [
|
|
18782
|
+
bJ,
|
|
18783
18783
|
a,
|
|
18784
|
-
|
|
18784
|
+
mJ,
|
|
18785
18785
|
i,
|
|
18786
|
-
|
|
18786
|
+
yJ,
|
|
18787
18787
|
v,
|
|
18788
18788
|
t
|
|
18789
|
-
]),
|
|
18790
|
-
|
|
18789
|
+
]), SJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: CJ, copied: wJ } = useClipboard(), TJ = useJsonViewerStore((e2) => e2.highlightUpdates), EJ = (0, import_react.useMemo)(() => !TJ || 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
|
+
TJ,
|
|
18791
18791
|
n,
|
|
18792
18792
|
t
|
|
18793
|
-
]),
|
|
18793
|
+
]), DJ = (0, import_react.useRef)();
|
|
18794
18794
|
(0, import_react.useEffect)(() => {
|
|
18795
|
-
|
|
18795
|
+
DJ.current && EJ && "animate" in DJ.current && DJ.current.animate([
|
|
18796
18796
|
{
|
|
18797
|
-
backgroundColor:
|
|
18797
|
+
backgroundColor: uJ
|
|
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
|
+
uJ,
|
|
18808
|
+
EJ,
|
|
18809
18809
|
n,
|
|
18810
18810
|
t
|
|
18811
18811
|
]);
|
|
18812
|
-
let
|
|
18812
|
+
let OJ = (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
|
+
]), kJ = (0, import_react.useCallback)(() => {
|
|
18818
18818
|
Q(false), E("");
|
|
18819
18819
|
}, [
|
|
18820
18820
|
Q,
|
|
18821
18821
|
E
|
|
18822
|
-
]),
|
|
18822
|
+
]), AJ = (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
|
+
]), jJ = (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: kJ
|
|
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: () => AJ(w)
|
|
18849
18849
|
})
|
|
18850
18850
|
})
|
|
18851
18851
|
]
|
|
18852
18852
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18853
18853
|
children: [
|
|
18854
|
-
|
|
18854
|
+
SJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18855
18855
|
onClick: (e2) => {
|
|
18856
18856
|
e2.preventDefault();
|
|
18857
18857
|
try {
|
|
18858
|
-
|
|
18858
|
+
CJ(i, t, copyString);
|
|
18859
18859
|
} catch (e3) {
|
|
18860
18860
|
console.error(e3);
|
|
18861
18861
|
}
|
|
18862
18862
|
},
|
|
18863
|
-
children:
|
|
18863
|
+
children: wJ ? (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: OJ,
|
|
18875
18875
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18876
18876
|
sx: {
|
|
18877
18877
|
fontSize: ".8rem"
|
|
18878
18878
|
}
|
|
18879
18879
|
})
|
|
18880
18880
|
}),
|
|
18881
|
-
|
|
18881
|
+
vJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18882
18882
|
onClick: (e2) => {
|
|
18883
|
-
e2.preventDefault(),
|
|
18883
|
+
e2.preventDefault(), _J == null ? void 0 : _J(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
|
+
xJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18892
18892
|
onClick: (e2) => {
|
|
18893
|
-
e2.preventDefault(),
|
|
18893
|
+
e2.preventDefault(), bJ == null ? void 0 : bJ(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
|
+
wJ,
|
|
18906
18907
|
CJ,
|
|
18907
|
-
SJ,
|
|
18908
18908
|
S,
|
|
18909
18909
|
J,
|
|
18910
|
+
SJ,
|
|
18911
|
+
vJ,
|
|
18910
18912
|
xJ,
|
|
18911
|
-
_J,
|
|
18912
|
-
bJ,
|
|
18913
18913
|
w,
|
|
18914
18914
|
i,
|
|
18915
18915
|
t,
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
DJ,
|
|
18916
|
+
_J,
|
|
18917
|
+
bJ,
|
|
18919
18918
|
OJ,
|
|
18920
|
-
kJ
|
|
18921
|
-
|
|
18919
|
+
kJ,
|
|
18920
|
+
AJ
|
|
18921
|
+
]), MJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18922
18922
|
t
|
|
18923
|
-
]),
|
|
18923
|
+
]), NJ = !MJ && !!(c && d), PJ = useJsonViewerStore((e2) => e2.keyRenderer), FJ = (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: cJ,
|
|
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() || MJ || q((e3) => !e3);
|
|
18961
18961
|
}, [
|
|
18962
|
-
|
|
18962
|
+
MJ,
|
|
18963
18963
|
q
|
|
18964
18964
|
]),
|
|
18965
18965
|
children: [
|
|
18966
|
-
|
|
18966
|
+
NJ ? 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: DJ,
|
|
18985
18985
|
className: "data-key-key",
|
|
18986
18986
|
component: "span",
|
|
18987
|
-
children:
|
|
18987
|
+
children: mJ && O === 0 ? pJ === false ? null : fJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18988
18988
|
children: [
|
|
18989
18989
|
'"',
|
|
18990
|
-
|
|
18990
|
+
pJ,
|
|
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: pJ
|
|
18995
|
+
}) : PJ.when(FJ) ? (0, import_jsx_runtime.jsx)(PJ, {
|
|
18996
|
+
...FJ
|
|
18997
|
+
}) : a === void 0 && (hJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18998
18998
|
component: "span",
|
|
18999
18999
|
style: {
|
|
19000
|
-
color:
|
|
19001
|
-
userSelect:
|
|
19000
|
+
color: lJ,
|
|
19001
|
+
userSelect: hJ ? "none" : "auto"
|
|
19002
19002
|
},
|
|
19003
19003
|
children: A
|
|
19004
|
-
}) :
|
|
19004
|
+
}) : fJ ? (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
|
+
mJ ? pJ !== 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: hJ ? "none" : "auto"
|
|
19028
19028
|
},
|
|
19029
19029
|
children: ":"
|
|
19030
19030
|
}),
|
|
19031
19031
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19032
|
-
...
|
|
19032
|
+
...FJ
|
|
19033
19033
|
}),
|
|
19034
|
-
I &&
|
|
19034
|
+
I && NJ && K && jJ
|
|
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: kJ,
|
|
19042
|
+
commitEditing: AJ
|
|
19043
19043
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19044
|
-
...
|
|
19044
|
+
...FJ
|
|
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
|
+
...FJ
|
|
19052
19052
|
}),
|
|
19053
|
-
!o &&
|
|
19053
|
+
!o && dJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19054
19054
|
children: ","
|
|
19055
19055
|
}),
|
|
19056
|
-
I &&
|
|
19057
|
-
I && !
|
|
19058
|
-
!I && J &&
|
|
19056
|
+
I && NJ && !K && jJ,
|
|
19057
|
+
I && !NJ && jJ,
|
|
19058
|
+
!I && J && jJ
|
|
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), cJ = n.filter(_temp16), lJ = n.filter(_temp17), uJ = n.filter(_temp18), dJ;
|
|
20147
|
+
t[17] === s ? dJ = t[18] : (dJ = () => {
|
|
20148
20148
|
s.openApplication("scratchpad");
|
|
20149
|
-
}, t[17] = s, t[18] =
|
|
20150
|
-
let
|
|
20149
|
+
}, t[17] = s, t[18] = dJ);
|
|
20150
|
+
let fJ = dJ, pJ = () => {
|
|
20151
20151
|
let t2 = [];
|
|
20152
|
-
if (
|
|
20153
|
-
let e3 =
|
|
20152
|
+
if (cJ.length > 0 || lJ.length > 0) {
|
|
20153
|
+
let e3 = cJ.some(_temp19), n2 = !e3 && cJ.some(_temp20);
|
|
20154
20154
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20155
20155
|
children: [
|
|
20156
|
-
|
|
20157
|
-
|
|
20156
|
+
cJ.map(_temp21),
|
|
20157
|
+
lJ.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
|
+
...cJ,
|
|
20189
|
+
...lJ
|
|
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: fJ,
|
|
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")), uJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20550
20550
|
children: [
|
|
20551
|
-
|
|
20551
|
+
uJ.map(_temp35),
|
|
20552
20552
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20553
|
-
errors:
|
|
20553
|
+
errors: uJ,
|
|
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
|
+
}, mJ;
|
|
20560
|
+
t[19] === v ? mJ = t[20] : (mJ = 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] = mJ);
|
|
20573
|
+
let gJ;
|
|
20574
|
+
t[21] !== _ || t[22] !== d ? (gJ = 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] = gJ) : gJ = t[23];
|
|
20578
|
+
let _J;
|
|
20579
|
+
t[24] !== mJ || t[25] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
|
|
20580
20580
|
className: "space-y-0.5",
|
|
20581
20581
|
children: [
|
|
20582
|
-
|
|
20583
|
-
|
|
20582
|
+
mJ,
|
|
20583
|
+
gJ
|
|
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] = mJ, t[25] = gJ, t[26] = _J) : _J = t[26];
|
|
20586
|
+
let yJ = _J;
|
|
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 = yJ, S = "flex flex-col gap-4", w = pJ(), 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", {
|
|
@@ -26636,7 +26636,7 @@ ${n}` : "Please fix this error.";
|
|
|
26636
26636
|
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 }) {
|
|
26637
26637
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26638
26638
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26639
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26639
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), cJ = (0, import_react.useRef)({
|
|
26640
26640
|
callbacks: {
|
|
26641
26641
|
onCollapse: f,
|
|
26642
26642
|
onExpand: h,
|
|
@@ -26656,12 +26656,12 @@ ${n}` : "Please fix this error.";
|
|
|
26656
26656
|
(0, import_react.useRef)({
|
|
26657
26657
|
didLogMissingDefaultSizeWarning: false
|
|
26658
26658
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26659
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26659
|
+
let { callbacks: e2, constraints: t2 } = cJ.current, o2 = {
|
|
26660
26660
|
...t2
|
|
26661
26661
|
};
|
|
26662
|
-
|
|
26662
|
+
cJ.current.id = $, cJ.current.idIsFromProps = s !== void 0, cJ.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(cJ.current, o2);
|
|
26663
26663
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26664
|
-
let e2 =
|
|
26664
|
+
let e2 = cJ.current;
|
|
26665
26665
|
return q(e2), () => {
|
|
26666
26666
|
Q(e2);
|
|
26667
26667
|
};
|
|
@@ -26672,25 +26672,25 @@ ${n}` : "Please fix this error.";
|
|
|
26672
26672
|
Q
|
|
26673
26673
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26674
26674
|
collapse: () => {
|
|
26675
|
-
O(
|
|
26675
|
+
O(cJ.current);
|
|
26676
26676
|
},
|
|
26677
26677
|
expand: (e2) => {
|
|
26678
|
-
A(
|
|
26678
|
+
A(cJ.current, e2);
|
|
26679
26679
|
},
|
|
26680
26680
|
getId() {
|
|
26681
26681
|
return $;
|
|
26682
26682
|
},
|
|
26683
26683
|
getSize() {
|
|
26684
|
-
return M(
|
|
26684
|
+
return M(cJ.current);
|
|
26685
26685
|
},
|
|
26686
26686
|
isCollapsed() {
|
|
26687
|
-
return U(
|
|
26687
|
+
return U(cJ.current);
|
|
26688
26688
|
},
|
|
26689
26689
|
isExpanded() {
|
|
26690
|
-
return !U(
|
|
26690
|
+
return !U(cJ.current);
|
|
26691
26691
|
},
|
|
26692
26692
|
resize: (e2) => {
|
|
26693
|
-
J(
|
|
26693
|
+
J(cJ.current, e2);
|
|
26694
26694
|
}
|
|
26695
26695
|
}), [
|
|
26696
26696
|
O,
|
|
@@ -26700,21 +26700,21 @@ ${n}` : "Please fix this error.";
|
|
|
26700
26700
|
$,
|
|
26701
26701
|
J
|
|
26702
26702
|
]);
|
|
26703
|
-
let
|
|
26703
|
+
let lJ = I(cJ.current, a);
|
|
26704
26704
|
return (0, import_react.createElement)(S, {
|
|
26705
26705
|
...w,
|
|
26706
26706
|
children: e,
|
|
26707
26707
|
className: t,
|
|
26708
26708
|
id: $,
|
|
26709
26709
|
style: {
|
|
26710
|
-
...
|
|
26710
|
+
...lJ,
|
|
26711
26711
|
...y
|
|
26712
26712
|
},
|
|
26713
26713
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26714
26714
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26715
26715
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26716
26716
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26717
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26717
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + lJ.flexGrow).toFixed(1)
|
|
26718
26718
|
});
|
|
26719
26719
|
}
|
|
26720
26720
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27499,13 +27499,13 @@ ${n}` : "Please fix this error.";
|
|
|
27499
27499
|
}, [
|
|
27500
27500
|
S,
|
|
27501
27501
|
E
|
|
27502
|
-
]),
|
|
27502
|
+
]), cJ = (0, import_react.useCallback)((e2) => {
|
|
27503
27503
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27504
27504
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27505
|
-
}, []),
|
|
27505
|
+
}, []), lJ = (0, import_react.useCallback)((e2) => {
|
|
27506
27506
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27507
27507
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27508
|
-
}, []),
|
|
27508
|
+
}, []), uJ = (0, import_react.useCallback)((e2) => {
|
|
27509
27509
|
let { panelDataArray: t2 } = K.current;
|
|
27510
27510
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27511
27511
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27537,7 +27537,7 @@ ${n}` : "Please fix this error.";
|
|
|
27537
27537
|
e2.layout = [];
|
|
27538
27538
|
};
|
|
27539
27539
|
}, []);
|
|
27540
|
-
let
|
|
27540
|
+
let dJ = (0, import_react.useCallback)((e2) => {
|
|
27541
27541
|
let t2 = false, n2 = y.current;
|
|
27542
27542
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27543
27543
|
n3.preventDefault();
|
|
@@ -27555,7 +27555,7 @@ ${n}` : "Please fix this error.";
|
|
|
27555
27555
|
}), I2 = !compareLayouts(f2, A2);
|
|
27556
27556
|
(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));
|
|
27557
27557
|
};
|
|
27558
|
-
}, []),
|
|
27558
|
+
}, []), fJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27559
27559
|
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);
|
|
27560
27560
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27561
27561
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27567,12 +27567,12 @@ ${n}` : "Please fix this error.";
|
|
|
27567
27567
|
trigger: "imperative-api"
|
|
27568
27568
|
});
|
|
27569
27569
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27570
|
-
}, []),
|
|
27570
|
+
}, []), pJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27571
27571
|
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);
|
|
27572
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27572
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || fJ(e2, s2) : h2 < f2 ? fJ(e2, f2) : h2 > d2 && fJ(e2, d2));
|
|
27573
27573
|
}, [
|
|
27574
|
-
|
|
27575
|
-
]),
|
|
27574
|
+
fJ
|
|
27575
|
+
]), mJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27576
27576
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27577
27577
|
if (!y.current) return;
|
|
27578
27578
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27584,14 +27584,14 @@ ${n}` : "Please fix this error.";
|
|
|
27584
27584
|
initialCursorPosition: o2,
|
|
27585
27585
|
initialLayout: i2
|
|
27586
27586
|
});
|
|
27587
|
-
}, []),
|
|
27587
|
+
}, []), hJ = (0, import_react.useCallback)(() => {
|
|
27588
27588
|
w(null);
|
|
27589
|
-
}, []),
|
|
27589
|
+
}, []), gJ = (0, import_react.useCallback)((e2) => {
|
|
27590
27590
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27591
27591
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27592
27592
|
}, [
|
|
27593
27593
|
A
|
|
27594
|
-
]),
|
|
27594
|
+
]), _J = (0, import_react.useMemo)(() => ({
|
|
27595
27595
|
collapsePanel: q,
|
|
27596
27596
|
direction: i,
|
|
27597
27597
|
dragState: S,
|
|
@@ -27599,15 +27599,15 @@ ${n}` : "Please fix this error.";
|
|
|
27599
27599
|
getPanelSize: Q,
|
|
27600
27600
|
getPanelStyle: $,
|
|
27601
27601
|
groupId: v,
|
|
27602
|
-
isPanelCollapsed:
|
|
27603
|
-
isPanelExpanded:
|
|
27604
|
-
reevaluatePanelConstraints:
|
|
27605
|
-
registerPanel:
|
|
27606
|
-
registerResizeHandle:
|
|
27607
|
-
resizePanel:
|
|
27608
|
-
startDragging:
|
|
27609
|
-
stopDragging:
|
|
27610
|
-
unregisterPanel:
|
|
27602
|
+
isPanelCollapsed: cJ,
|
|
27603
|
+
isPanelExpanded: lJ,
|
|
27604
|
+
reevaluatePanelConstraints: pJ,
|
|
27605
|
+
registerPanel: uJ,
|
|
27606
|
+
registerResizeHandle: dJ,
|
|
27607
|
+
resizePanel: fJ,
|
|
27608
|
+
startDragging: mJ,
|
|
27609
|
+
stopDragging: hJ,
|
|
27610
|
+
unregisterPanel: gJ,
|
|
27611
27611
|
panelGroupElement: y.current
|
|
27612
27612
|
}), [
|
|
27613
27613
|
q,
|
|
@@ -27617,16 +27617,16 @@ ${n}` : "Please fix this error.";
|
|
|
27617
27617
|
Q,
|
|
27618
27618
|
$,
|
|
27619
27619
|
v,
|
|
27620
|
-
sJ,
|
|
27621
27620
|
cJ,
|
|
27622
|
-
fJ,
|
|
27623
27621
|
lJ,
|
|
27622
|
+
pJ,
|
|
27624
27623
|
uJ,
|
|
27625
27624
|
dJ,
|
|
27626
|
-
|
|
27625
|
+
fJ,
|
|
27627
27626
|
mJ,
|
|
27628
|
-
hJ
|
|
27629
|
-
|
|
27627
|
+
hJ,
|
|
27628
|
+
gJ
|
|
27629
|
+
]), vJ = {
|
|
27630
27630
|
display: "flex",
|
|
27631
27631
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27632
27632
|
height: "100%",
|
|
@@ -27634,7 +27634,7 @@ ${n}` : "Please fix this error.";
|
|
|
27634
27634
|
width: "100%"
|
|
27635
27635
|
};
|
|
27636
27636
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27637
|
-
value:
|
|
27637
|
+
value: _J
|
|
27638
27638
|
}, (0, import_react.createElement)(h, {
|
|
27639
27639
|
..._,
|
|
27640
27640
|
children: t,
|
|
@@ -27642,7 +27642,7 @@ ${n}` : "Please fix this error.";
|
|
|
27642
27642
|
id: o,
|
|
27643
27643
|
ref: y,
|
|
27644
27644
|
style: {
|
|
27645
|
-
...
|
|
27645
|
+
...vJ,
|
|
27646
27646
|
...f
|
|
27647
27647
|
},
|
|
27648
27648
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27719,31 +27719,31 @@ ${n}` : "Please fix this error.";
|
|
|
27719
27719
|
});
|
|
27720
27720
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27721
27721
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27722
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27722
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, cJ] = (0, import_react.useState)(false), [lJ, uJ] = (0, import_react.useState)(null), dJ = (0, import_react.useRef)({
|
|
27723
27723
|
state: J
|
|
27724
27724
|
});
|
|
27725
27725
|
useIsomorphicLayoutEffect$1(() => {
|
|
27726
|
-
|
|
27726
|
+
dJ.current.state = J;
|
|
27727
27727
|
}), (0, import_react.useEffect)(() => {
|
|
27728
|
-
if (n)
|
|
27728
|
+
if (n) uJ(null);
|
|
27729
27729
|
else {
|
|
27730
27730
|
let e2 = I(q);
|
|
27731
|
-
|
|
27731
|
+
uJ(() => e2);
|
|
27732
27732
|
}
|
|
27733
27733
|
}, [
|
|
27734
27734
|
n,
|
|
27735
27735
|
q,
|
|
27736
27736
|
I
|
|
27737
27737
|
]);
|
|
27738
|
-
let
|
|
27738
|
+
let fJ = (i == null ? void 0 : i.coarse) ?? 15, pJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27739
27739
|
(0, import_react.useEffect)(() => {
|
|
27740
|
-
if (n ||
|
|
27740
|
+
if (n || lJ == null) return;
|
|
27741
27741
|
let e2 = w.current;
|
|
27742
27742
|
assert(e2, "Element ref not attached");
|
|
27743
27743
|
let t2 = false;
|
|
27744
27744
|
return registerResizeHandle(q, e2, A, {
|
|
27745
|
-
coarse:
|
|
27746
|
-
fine:
|
|
27745
|
+
coarse: fJ,
|
|
27746
|
+
fine: pJ
|
|
27747
27747
|
}, (e3, n2, i2) => {
|
|
27748
27748
|
if (!n2) {
|
|
27749
27749
|
Q("inactive");
|
|
@@ -27757,8 +27757,8 @@ ${n}` : "Please fix this error.";
|
|
|
27757
27757
|
break;
|
|
27758
27758
|
}
|
|
27759
27759
|
case "move": {
|
|
27760
|
-
let { state: e4 } =
|
|
27761
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27760
|
+
let { state: e4 } = dJ.current;
|
|
27761
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), lJ(i2);
|
|
27762
27762
|
break;
|
|
27763
27763
|
}
|
|
27764
27764
|
case "up": {
|
|
@@ -27770,22 +27770,22 @@ ${n}` : "Please fix this error.";
|
|
|
27770
27770
|
}
|
|
27771
27771
|
});
|
|
27772
27772
|
}, [
|
|
27773
|
-
|
|
27773
|
+
fJ,
|
|
27774
27774
|
A,
|
|
27775
27775
|
n,
|
|
27776
|
-
|
|
27776
|
+
pJ,
|
|
27777
27777
|
I,
|
|
27778
27778
|
q,
|
|
27779
|
-
|
|
27779
|
+
lJ,
|
|
27780
27780
|
z,
|
|
27781
27781
|
U
|
|
27782
27782
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27783
27783
|
disabled: n,
|
|
27784
27784
|
handleId: q,
|
|
27785
|
-
resizeHandler:
|
|
27785
|
+
resizeHandler: lJ,
|
|
27786
27786
|
panelGroupElement: K
|
|
27787
27787
|
});
|
|
27788
|
-
let
|
|
27788
|
+
let mJ = {
|
|
27789
27789
|
touchAction: "none",
|
|
27790
27790
|
userSelect: "none"
|
|
27791
27791
|
};
|
|
@@ -27795,15 +27795,15 @@ ${n}` : "Please fix this error.";
|
|
|
27795
27795
|
className: t,
|
|
27796
27796
|
id: a,
|
|
27797
27797
|
onBlur: () => {
|
|
27798
|
-
|
|
27798
|
+
cJ(false), o == null ? void 0 : o();
|
|
27799
27799
|
},
|
|
27800
27800
|
onFocus: () => {
|
|
27801
|
-
|
|
27801
|
+
cJ(true), d == null ? void 0 : d();
|
|
27802
27802
|
},
|
|
27803
27803
|
ref: w,
|
|
27804
27804
|
role: "separator",
|
|
27805
27805
|
style: {
|
|
27806
|
-
...
|
|
27806
|
+
...mJ,
|
|
27807
27807
|
..._
|
|
27808
27808
|
},
|
|
27809
27809
|
tabIndex: v,
|
|
@@ -28102,7 +28102,7 @@ ${n}` : "Please fix this error.";
|
|
|
28102
28102
|
}, [
|
|
28103
28103
|
h
|
|
28104
28104
|
]), k(() => {
|
|
28105
|
-
U(6,
|
|
28105
|
+
U(6, lJ);
|
|
28106
28106
|
}, []);
|
|
28107
28107
|
let K = import_react.useMemo(() => ({
|
|
28108
28108
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28111,7 +28111,7 @@ ${n}` : "Please fix this error.";
|
|
|
28111
28111
|
var _a2;
|
|
28112
28112
|
var a2, o2, s2;
|
|
28113
28113
|
if (!Object.is(n.current[e2], t2)) {
|
|
28114
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28114
|
+
if (n.current[e2] = t2, e2 === "search") cJ(), Q(), U(1, $);
|
|
28115
28115
|
else if (e2 === "value") {
|
|
28116
28116
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28117
28117
|
let e3 = document.getElementById(I);
|
|
@@ -28119,8 +28119,8 @@ ${n}` : "Please fix this error.";
|
|
|
28119
28119
|
}
|
|
28120
28120
|
if (U(7, () => {
|
|
28121
28121
|
var _a3;
|
|
28122
|
-
n.current.selectedItemId = (_a3 =
|
|
28123
|
-
}), i2 || U(5,
|
|
28122
|
+
n.current.selectedItemId = (_a3 = uJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28123
|
+
}), i2 || U(5, lJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28124
28124
|
let e3 = t2 ?? "";
|
|
28125
28125
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28126
28126
|
return;
|
|
@@ -28145,12 +28145,12 @@ ${n}` : "Please fix this error.";
|
|
|
28145
28145
|
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([
|
|
28146
28146
|
e2
|
|
28147
28147
|
]))), U(3, () => {
|
|
28148
|
-
|
|
28148
|
+
cJ(), Q(), n.current.value || $(), K.emit();
|
|
28149
28149
|
}), () => {
|
|
28150
28150
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28151
|
-
let t3 =
|
|
28151
|
+
let t3 = uJ();
|
|
28152
28152
|
U(4, () => {
|
|
28153
|
-
|
|
28153
|
+
cJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28154
28154
|
});
|
|
28155
28155
|
}),
|
|
28156
28156
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28183,7 +28183,7 @@ ${n}` : "Please fix this error.";
|
|
|
28183
28183
|
]);
|
|
28184
28184
|
});
|
|
28185
28185
|
let i2 = z.current;
|
|
28186
|
-
|
|
28186
|
+
dJ().sort((t3, n2) => {
|
|
28187
28187
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28188
28188
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28189
28189
|
}).forEach((e3) => {
|
|
@@ -28197,10 +28197,10 @@ ${n}` : "Please fix this error.";
|
|
|
28197
28197
|
}
|
|
28198
28198
|
function $() {
|
|
28199
28199
|
var _a2;
|
|
28200
|
-
let e2 = (_a2 =
|
|
28200
|
+
let e2 = (_a2 = dJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28201
28201
|
K.setState("value", e2 || void 0);
|
|
28202
28202
|
}
|
|
28203
|
-
function
|
|
28203
|
+
function cJ() {
|
|
28204
28204
|
var _a2, _b;
|
|
28205
28205
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28206
28206
|
n.current.filtered.count = i.current.size;
|
|
@@ -28218,43 +28218,43 @@ ${n}` : "Please fix this error.";
|
|
|
28218
28218
|
}
|
|
28219
28219
|
n.current.filtered.count = e2;
|
|
28220
28220
|
}
|
|
28221
|
-
function
|
|
28221
|
+
function lJ() {
|
|
28222
28222
|
var _a2, _b;
|
|
28223
28223
|
var e2;
|
|
28224
|
-
let t2 =
|
|
28224
|
+
let t2 = uJ();
|
|
28225
28225
|
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({
|
|
28226
28226
|
block: "nearest"
|
|
28227
28227
|
})), t2.scrollIntoView({
|
|
28228
28228
|
block: "nearest"
|
|
28229
28229
|
}));
|
|
28230
28230
|
}
|
|
28231
|
-
function
|
|
28231
|
+
function uJ() {
|
|
28232
28232
|
var _a2;
|
|
28233
28233
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28234
28234
|
}
|
|
28235
|
-
function
|
|
28235
|
+
function dJ() {
|
|
28236
28236
|
var _a2;
|
|
28237
28237
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28238
28238
|
}
|
|
28239
|
-
function
|
|
28240
|
-
let t2 =
|
|
28239
|
+
function fJ(e2) {
|
|
28240
|
+
let t2 = dJ()[e2];
|
|
28241
28241
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28242
28242
|
}
|
|
28243
|
-
function
|
|
28243
|
+
function pJ(e2) {
|
|
28244
28244
|
var t2;
|
|
28245
|
-
let n2 =
|
|
28245
|
+
let n2 = uJ(), i2 = dJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28246
28246
|
(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));
|
|
28247
28247
|
}
|
|
28248
|
-
function
|
|
28248
|
+
function mJ(e2) {
|
|
28249
28249
|
var _a2;
|
|
28250
|
-
let t2 = (_a2 =
|
|
28250
|
+
let t2 = (_a2 = uJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28251
28251
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28252
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28252
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : pJ(e2);
|
|
28253
28253
|
}
|
|
28254
|
-
let
|
|
28255
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28256
|
-
},
|
|
28257
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28254
|
+
let hJ = () => fJ(dJ().length - 1), gJ = (e2) => {
|
|
28255
|
+
e2.preventDefault(), e2.metaKey ? hJ() : e2.altKey ? mJ(1) : pJ(1);
|
|
28256
|
+
}, _J = (e2) => {
|
|
28257
|
+
e2.preventDefault(), e2.metaKey ? fJ(0) : e2.altKey ? mJ(-1) : pJ(-1);
|
|
28258
28258
|
};
|
|
28259
28259
|
return import_react.createElement(Primitive.div, {
|
|
28260
28260
|
ref: t,
|
|
@@ -28268,27 +28268,27 @@ ${n}` : "Please fix this error.";
|
|
|
28268
28268
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28269
28269
|
case "n":
|
|
28270
28270
|
case "j":
|
|
28271
|
-
E && e2.ctrlKey &&
|
|
28271
|
+
E && e2.ctrlKey && gJ(e2);
|
|
28272
28272
|
break;
|
|
28273
28273
|
case "ArrowDown":
|
|
28274
|
-
|
|
28274
|
+
gJ(e2);
|
|
28275
28275
|
break;
|
|
28276
28276
|
case "p":
|
|
28277
28277
|
case "k":
|
|
28278
|
-
E && e2.ctrlKey &&
|
|
28278
|
+
E && e2.ctrlKey && _J(e2);
|
|
28279
28279
|
break;
|
|
28280
28280
|
case "ArrowUp":
|
|
28281
|
-
|
|
28281
|
+
_J(e2);
|
|
28282
28282
|
break;
|
|
28283
28283
|
case "Home":
|
|
28284
|
-
e2.preventDefault(),
|
|
28284
|
+
e2.preventDefault(), fJ(0);
|
|
28285
28285
|
break;
|
|
28286
28286
|
case "End":
|
|
28287
|
-
e2.preventDefault(),
|
|
28287
|
+
e2.preventDefault(), hJ();
|
|
28288
28288
|
break;
|
|
28289
28289
|
case "Enter": {
|
|
28290
28290
|
e2.preventDefault();
|
|
28291
|
-
let t3 =
|
|
28291
|
+
let t3 = uJ();
|
|
28292
28292
|
if (t3) {
|
|
28293
28293
|
let e3 = new Event(Z);
|
|
28294
28294
|
t3.dispatchEvent(e3);
|
|
@@ -28697,153 +28697,153 @@ ${n}` : "Please fix this error.";
|
|
|
28697
28697
|
Combobox = (e) => {
|
|
28698
28698
|
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;
|
|
28699
28699
|
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);
|
|
28700
|
-
let $ = I === void 0 ? false : I,
|
|
28701
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28700
|
+
let $ = I === void 0 ? false : I, cJ = z === void 0 ? true : z, lJ = U === void 0 ? "Search..." : U, uJ = K === void 0 ? "Nothing found." : K, dJ = q === void 0 ? false : q, fJ = J === void 0 ? false : J, pJ = s ?? false, mJ;
|
|
28701
|
+
t[25] !== v || t[26] !== w || t[27] !== pJ ? (mJ = {
|
|
28702
28702
|
prop: w,
|
|
28703
|
-
defaultProp:
|
|
28703
|
+
defaultProp: pJ,
|
|
28704
28704
|
onChange: v
|
|
28705
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28706
|
-
let [
|
|
28707
|
-
t[29] === S ?
|
|
28705
|
+
}, t[25] = v, t[26] = w, t[27] = pJ, t[28] = mJ) : mJ = t[28];
|
|
28706
|
+
let [hJ, gJ] = useControllableState(mJ), _J = hJ === void 0 ? false : hJ, vJ;
|
|
28707
|
+
t[29] === S ? vJ = t[30] : (vJ = (e2) => {
|
|
28708
28708
|
S == null ? void 0 : S(e2);
|
|
28709
|
-
}, t[29] = S, t[30] =
|
|
28710
|
-
let
|
|
28711
|
-
t[31] !== c || t[32] !==
|
|
28709
|
+
}, t[29] = S, t[30] = vJ);
|
|
28710
|
+
let yJ;
|
|
28711
|
+
t[31] !== c || t[32] !== vJ || t[33] !== Q ? (yJ = {
|
|
28712
28712
|
prop: Q,
|
|
28713
28713
|
defaultProp: c,
|
|
28714
|
-
onChange:
|
|
28715
|
-
}, t[31] = c, t[32] =
|
|
28716
|
-
let [
|
|
28717
|
-
t[35] ===
|
|
28718
|
-
let
|
|
28719
|
-
t[37] !== _ || t[38] !== $ || t[39] !==
|
|
28714
|
+
onChange: vJ
|
|
28715
|
+
}, t[31] = c, t[32] = vJ, t[33] = Q, t[34] = yJ) : yJ = t[34];
|
|
28716
|
+
let [bJ, xJ] = useControllableState(yJ), SJ;
|
|
28717
|
+
t[35] === bJ ? SJ = t[36] : (SJ = (e2) => Array.isArray(bJ) ? bJ.includes(e2) : bJ === e2, t[35] = bJ, t[36] = SJ);
|
|
28718
|
+
let CJ = SJ, wJ;
|
|
28719
|
+
t[37] !== _ || t[38] !== $ || t[39] !== gJ || t[40] !== xJ || t[41] !== bJ ? (wJ = (e2) => {
|
|
28720
28720
|
let t2 = e2;
|
|
28721
|
-
if ($) if (Array.isArray(
|
|
28722
|
-
let n2 =
|
|
28721
|
+
if ($) if (Array.isArray(bJ)) if (bJ.includes(t2)) {
|
|
28722
|
+
let n2 = bJ.filter((t3) => t3 !== e2);
|
|
28723
28723
|
t2 = n2.length > 0 ? n2 : [];
|
|
28724
28724
|
} else t2 = [
|
|
28725
|
-
...
|
|
28725
|
+
...bJ,
|
|
28726
28726
|
t2
|
|
28727
28727
|
];
|
|
28728
28728
|
else t2 = [
|
|
28729
28729
|
t2
|
|
28730
28730
|
];
|
|
28731
|
-
else
|
|
28732
|
-
|
|
28733
|
-
}, t[37] = _, t[38] = $, t[39] =
|
|
28734
|
-
let
|
|
28735
|
-
t[43] !==
|
|
28736
|
-
let
|
|
28737
|
-
t[49] !==
|
|
28738
|
-
isSelected:
|
|
28739
|
-
onSelect:
|
|
28740
|
-
}, t[49] =
|
|
28741
|
-
let
|
|
28742
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28743
|
-
let
|
|
28744
|
-
t[53] !==
|
|
28745
|
-
|
|
28746
|
-
}, t[53] =
|
|
28747
|
-
let
|
|
28748
|
-
t[56] !== a || t[57] !==
|
|
28749
|
-
let IJ;
|
|
28750
|
-
t[59] !== O || t[60] !== DJ || t[61] !== yJ ? (IJ = O ? O(yJ ?? null) : DJ(), t[59] = O, t[60] = DJ, t[61] = yJ, t[62] = IJ) : IJ = t[62];
|
|
28731
|
+
else bJ === e2 && (t2 = null);
|
|
28732
|
+
xJ(t2), (_ ?? $) || gJ(false);
|
|
28733
|
+
}, t[37] = _, t[38] = $, t[39] = gJ, t[40] = xJ, t[41] = bJ, t[42] = wJ) : wJ = t[42];
|
|
28734
|
+
let TJ = wJ, DJ;
|
|
28735
|
+
t[43] !== dJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== bJ ? (DJ = () => $ && dJ && E ? E : bJ == null ? E ?? "--" : Array.isArray(bJ) ? bJ.length === 0 ? E ?? "--" : bJ.length === 1 && d !== void 0 ? d(bJ[0]) : `${bJ.length} selected` : d === void 0 ? E ?? "--" : d(bJ), t[43] = dJ, t[44] = d, t[45] = $, t[46] = E, t[47] = bJ, t[48] = DJ) : DJ = t[48];
|
|
28736
|
+
let OJ = DJ, kJ;
|
|
28737
|
+
t[49] !== TJ || t[50] !== CJ ? (kJ = {
|
|
28738
|
+
isSelected: CJ,
|
|
28739
|
+
onSelect: TJ
|
|
28740
|
+
}, t[49] = TJ, t[50] = CJ, t[51] = kJ) : kJ = t[51];
|
|
28741
|
+
let AJ = kJ, MJ;
|
|
28742
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MJ = cn("relative"), t[52] = MJ) : MJ = t[52];
|
|
28743
|
+
let NJ;
|
|
28744
|
+
t[53] !== fJ || t[54] !== gJ ? (NJ = (e2) => {
|
|
28745
|
+
fJ && e2 || gJ(e2);
|
|
28746
|
+
}, t[53] = fJ, t[54] = gJ, t[55] = NJ) : NJ = t[55];
|
|
28747
|
+
let FJ = fJ && "cursor-not-allowed opacity-50", IJ;
|
|
28748
|
+
t[56] !== a || t[57] !== FJ ? (IJ = 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", FJ, a), t[56] = a, t[57] = FJ, t[58] = IJ) : IJ = t[58];
|
|
28751
28749
|
let LJ;
|
|
28752
|
-
t[
|
|
28753
|
-
className: "truncate flex-1 min-w-0",
|
|
28754
|
-
children: IJ
|
|
28755
|
-
}), t[63] = IJ, t[64] = LJ);
|
|
28750
|
+
t[59] !== O || t[60] !== OJ || t[61] !== bJ ? (LJ = O ? O(bJ ?? null) : OJ(), t[59] = O, t[60] = OJ, t[61] = bJ, t[62] = LJ) : LJ = t[62];
|
|
28756
28751
|
let RJ;
|
|
28757
|
-
t[
|
|
28758
|
-
className: "
|
|
28759
|
-
|
|
28752
|
+
t[63] === LJ ? RJ = t[64] : (RJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28753
|
+
className: "truncate flex-1 min-w-0",
|
|
28754
|
+
children: LJ
|
|
28755
|
+
}), t[63] = LJ, t[64] = RJ);
|
|
28760
28756
|
let zJ;
|
|
28761
|
-
t[
|
|
28757
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28758
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28759
|
+
}), t[65] = zJ) : zJ = t[65];
|
|
28760
|
+
let BJ;
|
|
28761
|
+
t[66] !== fJ || t[67] !== h || t[68] !== _J || t[69] !== IJ || t[70] !== RJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28762
28762
|
asChild: true,
|
|
28763
28763
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28764
28764
|
id: h,
|
|
28765
28765
|
type: "button",
|
|
28766
|
-
className:
|
|
28767
|
-
"aria-expanded":
|
|
28768
|
-
"aria-disabled":
|
|
28766
|
+
className: IJ,
|
|
28767
|
+
"aria-expanded": _J,
|
|
28768
|
+
"aria-disabled": fJ,
|
|
28769
28769
|
children: [
|
|
28770
|
-
|
|
28771
|
-
|
|
28770
|
+
RJ,
|
|
28771
|
+
zJ
|
|
28772
28772
|
]
|
|
28773
28773
|
})
|
|
28774
|
-
}), t[66] =
|
|
28775
|
-
let
|
|
28776
|
-
t[72] !==
|
|
28777
|
-
placeholder:
|
|
28774
|
+
}), t[66] = fJ, t[67] = h, t[68] = _J, t[69] = IJ, t[70] = RJ, t[71] = BJ) : BJ = t[71];
|
|
28775
|
+
let VJ;
|
|
28776
|
+
t[72] !== lJ || t[73] !== y || t[74] !== M ? (VJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28777
|
+
placeholder: lJ,
|
|
28778
28778
|
rootClassName: "px-1 h-8",
|
|
28779
28779
|
autoFocus: true,
|
|
28780
28780
|
value: M,
|
|
28781
28781
|
onValueChange: y
|
|
28782
|
-
}), t[72] =
|
|
28783
|
-
let VJ;
|
|
28784
|
-
t[76] === lJ ? VJ = t[77] : (VJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28785
|
-
children: lJ
|
|
28786
|
-
}), t[76] = lJ, t[77] = VJ);
|
|
28782
|
+
}), t[72] = lJ, t[73] = y, t[74] = M, t[75] = VJ) : VJ = t[75];
|
|
28787
28783
|
let HJ;
|
|
28788
|
-
t[
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
}), t[78] = n, t[79] = kJ, t[80] = HJ) : HJ = t[80];
|
|
28784
|
+
t[76] === uJ ? HJ = t[77] : (HJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28785
|
+
children: uJ
|
|
28786
|
+
}), t[76] = uJ, t[77] = HJ);
|
|
28792
28787
|
let UJ;
|
|
28793
|
-
t[
|
|
28788
|
+
t[78] !== n || t[79] !== AJ ? (UJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28789
|
+
value: AJ,
|
|
28790
|
+
children: n
|
|
28791
|
+
}), t[78] = n, t[79] = AJ, t[80] = UJ) : UJ = t[80];
|
|
28792
|
+
let WJ;
|
|
28793
|
+
t[81] !== HJ || t[82] !== UJ ? (WJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28794
28794
|
className: "max-h-60 py-.5",
|
|
28795
28795
|
children: [
|
|
28796
|
-
|
|
28797
|
-
|
|
28796
|
+
HJ,
|
|
28797
|
+
UJ
|
|
28798
28798
|
]
|
|
28799
|
-
}), t[81] =
|
|
28800
|
-
let
|
|
28801
|
-
t[84] !== f || t[85] !==
|
|
28799
|
+
}), t[81] = HJ, t[82] = UJ, t[83] = WJ) : WJ = t[83];
|
|
28800
|
+
let GJ;
|
|
28801
|
+
t[84] !== f || t[85] !== cJ || t[86] !== VJ || t[87] !== WJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28802
28802
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28803
28803
|
align: "start",
|
|
28804
28804
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28805
28805
|
filter: f,
|
|
28806
|
-
shouldFilter:
|
|
28806
|
+
shouldFilter: cJ,
|
|
28807
28807
|
children: [
|
|
28808
|
-
|
|
28809
|
-
|
|
28808
|
+
VJ,
|
|
28809
|
+
WJ
|
|
28810
28810
|
]
|
|
28811
28811
|
})
|
|
28812
|
-
}), t[84] = f, t[85] =
|
|
28813
|
-
let
|
|
28814
|
-
t[89] !==
|
|
28815
|
-
open:
|
|
28816
|
-
onOpenChange:
|
|
28812
|
+
}), t[84] = f, t[85] = cJ, t[86] = VJ, t[87] = WJ, t[88] = GJ) : GJ = t[88];
|
|
28813
|
+
let KJ;
|
|
28814
|
+
t[89] !== _J || t[90] !== NJ || t[91] !== BJ || t[92] !== GJ ? (KJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28815
|
+
open: _J,
|
|
28816
|
+
onOpenChange: NJ,
|
|
28817
28817
|
children: [
|
|
28818
|
-
|
|
28819
|
-
|
|
28818
|
+
BJ,
|
|
28819
|
+
GJ
|
|
28820
28820
|
]
|
|
28821
|
-
}), t[89] =
|
|
28822
|
-
let
|
|
28823
|
-
t[94] !==
|
|
28821
|
+
}), t[89] = _J, t[90] = NJ, t[91] = BJ, t[92] = GJ, t[93] = KJ) : KJ = t[93];
|
|
28822
|
+
let qJ;
|
|
28823
|
+
t[94] !== dJ || t[95] !== i || t[96] !== fJ || t[97] !== d || t[98] !== TJ || t[99] !== $ || t[100] !== bJ ? (qJ = $ && dJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28824
28824
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28825
|
-
children: Array.isArray(
|
|
28825
|
+
children: Array.isArray(bJ) && bJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28826
28826
|
variant: "secondary",
|
|
28827
28827
|
children: [
|
|
28828
28828
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28829
28829
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28830
28830
|
onClick: () => {
|
|
28831
|
-
|
|
28831
|
+
fJ || TJ(e2);
|
|
28832
28832
|
},
|
|
28833
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28833
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", fJ && "pointer-events-none")
|
|
28834
28834
|
})
|
|
28835
28835
|
]
|
|
28836
28836
|
}, String(e2)))
|
|
28837
|
-
}), t[94] =
|
|
28838
|
-
let
|
|
28839
|
-
return t[102] !== A || t[103] !==
|
|
28840
|
-
className:
|
|
28837
|
+
}), t[94] = dJ, t[95] = i, t[96] = fJ, t[97] = d, t[98] = TJ, t[99] = $, t[100] = bJ, t[101] = qJ) : qJ = t[101];
|
|
28838
|
+
let JJ;
|
|
28839
|
+
return t[102] !== A || t[103] !== KJ || t[104] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28840
|
+
className: MJ,
|
|
28841
28841
|
...A,
|
|
28842
28842
|
children: [
|
|
28843
|
-
|
|
28844
|
-
|
|
28843
|
+
KJ,
|
|
28844
|
+
qJ
|
|
28845
28845
|
]
|
|
28846
|
-
}), t[102] = A, t[103] =
|
|
28846
|
+
}), t[102] = A, t[103] = KJ, t[104] = qJ, t[105] = JJ) : JJ = t[105], JJ;
|
|
28847
28847
|
};
|
|
28848
28848
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28849
28849
|
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), _;
|
|
@@ -29899,17 +29899,17 @@ ${n}` : "Please fix this error.";
|
|
|
29899
29899
|
searchQuery: M,
|
|
29900
29900
|
filteredOptions: z
|
|
29901
29901
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29902
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29903
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29902
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), cJ;
|
|
29903
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (cJ = {
|
|
29904
29904
|
value: i,
|
|
29905
29905
|
onChange: a,
|
|
29906
29906
|
multiple: o,
|
|
29907
29907
|
maxSelections: s,
|
|
29908
29908
|
allowSelectNone: c,
|
|
29909
29909
|
selected: y
|
|
29910
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29911
|
-
let { isChecked:
|
|
29912
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29910
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = cJ) : cJ = t[21];
|
|
29911
|
+
let { isChecked: lJ, toggle: uJ } = useToggle(cJ), dJ;
|
|
29912
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (dJ = {
|
|
29913
29913
|
value: i,
|
|
29914
29914
|
onChange: a,
|
|
29915
29915
|
multiple: o,
|
|
@@ -29917,24 +29917,24 @@ ${n}` : "Please fix this error.";
|
|
|
29917
29917
|
filteredOptions: z,
|
|
29918
29918
|
searchQuery: M,
|
|
29919
29919
|
maxSelections: s
|
|
29920
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29921
|
-
let { bulkActions:
|
|
29922
|
-
t[30] !== J || t[31] !== I ? (
|
|
29920
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = dJ) : dJ = t[29];
|
|
29921
|
+
let { bulkActions: fJ } = useBulk(dJ), pJ;
|
|
29922
|
+
t[30] !== J || t[31] !== I ? (pJ = (e2) => {
|
|
29923
29923
|
I(e2), e2 === "" && J();
|
|
29924
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29925
|
-
let
|
|
29926
|
-
return t[33] !==
|
|
29924
|
+
}, t[30] = J, t[31] = I, t[32] = pJ) : pJ = t[32];
|
|
29925
|
+
let mJ = pJ, hJ;
|
|
29926
|
+
return t[33] !== fJ || t[34] !== lJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== mJ || t[41] !== uJ || t[42] !== Q ? (hJ = {
|
|
29927
29927
|
searchQuery: M,
|
|
29928
|
-
setSearchQuery:
|
|
29928
|
+
setSearchQuery: mJ,
|
|
29929
29929
|
open: K,
|
|
29930
29930
|
setOpen: q,
|
|
29931
29931
|
visibleOptions: Q,
|
|
29932
29932
|
pinnedCount: $,
|
|
29933
|
-
isChecked:
|
|
29934
|
-
toggle:
|
|
29935
|
-
bulkActions:
|
|
29933
|
+
isChecked: lJ,
|
|
29934
|
+
toggle: uJ,
|
|
29935
|
+
bulkActions: fJ,
|
|
29936
29936
|
labelOf: O
|
|
29937
|
-
}, t[33] =
|
|
29937
|
+
}, t[33] = fJ, t[34] = lJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = mJ, t[41] = uJ, t[42] = Q, t[43] = hJ) : hJ = t[43], hJ;
|
|
29938
29938
|
};
|
|
29939
29939
|
const Sets = {
|
|
29940
29940
|
merge(...e) {
|
|
@@ -30263,7 +30263,7 @@ ${n}` : "Please fix this error.";
|
|
|
30263
30263
|
type: S,
|
|
30264
30264
|
operator: E,
|
|
30265
30265
|
draft: mergeNumberTextDraft(A, I)
|
|
30266
|
-
}), $ = Q === void 0,
|
|
30266
|
+
}), $ = Q === void 0, cJ = $ ? getMissingValueMessage(S, E) : "Apply filter", lJ = () => {
|
|
30267
30267
|
if (!Q) return;
|
|
30268
30268
|
let e2 = Q;
|
|
30269
30269
|
t.setColumnFilters((t2) => {
|
|
@@ -30282,20 +30282,20 @@ ${n}` : "Please fix this error.";
|
|
|
30282
30282
|
value: e2
|
|
30283
30283
|
}, n2;
|
|
30284
30284
|
}), i();
|
|
30285
|
-
},
|
|
30285
|
+
}, uJ = () => {
|
|
30286
30286
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30287
|
-
},
|
|
30287
|
+
}, dJ = !OPERATORS_WITHOUT_VALUE.has(E), fJ = OPERATORS_BY_TYPE[S], pJ = (0, import_react.useRef)(null), mJ = (0, import_react.useRef)(null);
|
|
30288
30288
|
return (0, import_react.useEffect)(() => {
|
|
30289
30289
|
var _a2, _b;
|
|
30290
|
-
let e2 = (_a2 =
|
|
30291
|
-
e2 ? e2.focus() : (_b =
|
|
30290
|
+
let e2 = (_a2 = pJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30291
|
+
e2 ? e2.focus() : (_b = mJ.current) == null ? void 0 : _b.focus();
|
|
30292
30292
|
}, [
|
|
30293
30293
|
S,
|
|
30294
30294
|
E
|
|
30295
30295
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30296
30296
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30297
30297
|
onSubmit: (e2) => {
|
|
30298
|
-
e2.preventDefault(),
|
|
30298
|
+
e2.preventDefault(), lJ();
|
|
30299
30299
|
},
|
|
30300
30300
|
onKeyDownCapture: (e2) => {
|
|
30301
30301
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30336,13 +30336,13 @@ ${n}` : "Please fix this error.";
|
|
|
30336
30336
|
onValueChange: (e2) => J(e2),
|
|
30337
30337
|
children: [
|
|
30338
30338
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30339
|
-
ref:
|
|
30339
|
+
ref: mJ,
|
|
30340
30340
|
id: s,
|
|
30341
30341
|
className: "h-6 mb-1 bg-transparent",
|
|
30342
30342
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30343
30343
|
}),
|
|
30344
30344
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30345
|
-
children:
|
|
30345
|
+
children: fJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30346
30346
|
value: e2,
|
|
30347
30347
|
children: OPERATOR_LABELS[e2]
|
|
30348
30348
|
}, e2))
|
|
@@ -30351,8 +30351,8 @@ ${n}` : "Please fix this error.";
|
|
|
30351
30351
|
}, S)
|
|
30352
30352
|
]
|
|
30353
30353
|
}),
|
|
30354
|
-
|
|
30355
|
-
ref:
|
|
30354
|
+
dJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30355
|
+
ref: pJ,
|
|
30356
30356
|
className: "flex flex-col gap-1",
|
|
30357
30357
|
children: [
|
|
30358
30358
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30379,7 +30379,7 @@ ${n}` : "Please fix this error.";
|
|
|
30379
30379
|
className: "flex gap-1 mb-1",
|
|
30380
30380
|
children: [
|
|
30381
30381
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30382
|
-
content:
|
|
30382
|
+
content: cJ,
|
|
30383
30383
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30384
30384
|
className: "inline-flex",
|
|
30385
30385
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30418,7 +30418,7 @@ ${n}` : "Please fix this error.";
|
|
|
30418
30418
|
size: "icon",
|
|
30419
30419
|
variant: "ghost",
|
|
30420
30420
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30421
|
-
onClick:
|
|
30421
|
+
onClick: uJ,
|
|
30422
30422
|
"aria-label": "Remove filter",
|
|
30423
30423
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30424
30424
|
className: "h-3.5 w-3.5",
|
|
@@ -32626,29 +32626,29 @@ ${n}` : "Please fix this error.";
|
|
|
32626
32626
|
}, t[16] = a, t[17] = J);
|
|
32627
32627
|
let Q = useEvent_default(J), $;
|
|
32628
32628
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32629
|
-
let
|
|
32630
|
-
t[20] === S ? (
|
|
32629
|
+
let cJ = useEvent_default($), lJ, uJ;
|
|
32630
|
+
t[20] === S ? (lJ = t[21], uJ = t[22]) : (lJ = () => (window.addEventListener("scroll", S, {
|
|
32631
32631
|
passive: true,
|
|
32632
32632
|
capture: true
|
|
32633
32633
|
}), window.addEventListener("resize", S), () => {
|
|
32634
32634
|
window.removeEventListener("scroll", S, {
|
|
32635
32635
|
capture: true
|
|
32636
32636
|
}), window.removeEventListener("resize", S);
|
|
32637
|
-
}),
|
|
32637
|
+
}), uJ = [
|
|
32638
32638
|
S
|
|
32639
|
-
], t[20] = S, t[21] =
|
|
32640
|
-
let
|
|
32641
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32642
|
-
let
|
|
32643
|
-
return t[25] !==
|
|
32639
|
+
], t[20] = S, t[21] = lJ, t[22] = uJ), (0, import_react.useEffect)(lJ, uJ);
|
|
32640
|
+
let dJ, fJ;
|
|
32641
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = () => v, fJ = [], t[23] = dJ, t[24] = fJ) : (dJ = t[23], fJ = t[24]), (0, import_react.useEffect)(dJ, fJ);
|
|
32642
|
+
let pJ;
|
|
32643
|
+
return t[25] !== cJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (pJ = {
|
|
32644
32644
|
tooltipState: o,
|
|
32645
32645
|
tooltipContentId: d,
|
|
32646
32646
|
hideTooltip: S,
|
|
32647
32647
|
handleCellMouseOver: U,
|
|
32648
32648
|
handleCellMouseLeave: q,
|
|
32649
32649
|
handleCellFocus: Q,
|
|
32650
|
-
handleCellBlur:
|
|
32651
|
-
}, t[25] =
|
|
32650
|
+
handleCellBlur: cJ
|
|
32651
|
+
}, t[25] = cJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = pJ) : pJ = t[32], pJ;
|
|
32652
32652
|
}
|
|
32653
32653
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32654
32654
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -33925,6 +33925,13 @@ ${n}` : "Please fix this error.";
|
|
|
33925
33925
|
let n = URL.createObjectURL(e);
|
|
33926
33926
|
downloadByURL(n, t), URL.revokeObjectURL(n);
|
|
33927
33927
|
};
|
|
33928
|
+
downloadExportedFile = function({ contents: e, filename: t, mediaType: n }) {
|
|
33929
|
+
downloadBlob(new Blob([
|
|
33930
|
+
e
|
|
33931
|
+
], {
|
|
33932
|
+
type: n
|
|
33933
|
+
}), t);
|
|
33934
|
+
};
|
|
33928
33935
|
var import_compiler_runtime$11 = require_compiler_runtime();
|
|
33929
33936
|
InstallPackageButton = (e) => {
|
|
33930
33937
|
let t = (0, import_compiler_runtime$11.c)(13), { packages: n, showMaxPackages: i, className: a, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages(), d = useInstallAllowed();
|
|
@@ -34086,7 +34093,7 @@ ${n}` : "Please fix this error.";
|
|
|
34086
34093
|
filename: i2.filename
|
|
34087
34094
|
};
|
|
34088
34095
|
}, t[6] = e, t[7] = O);
|
|
34089
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34096
|
+
let A = O, M, I, z, U, K, q, J, Q, $, cJ, lJ, uJ, dJ;
|
|
34090
34097
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34091
34098
|
let e2 = async (t2) => {
|
|
34092
34099
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34152,10 +34159,10 @@ ${n}` : "Please fix this error.";
|
|
|
34152
34159
|
content: d,
|
|
34153
34160
|
open: o,
|
|
34154
34161
|
children: h
|
|
34155
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34162
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", cJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34156
34163
|
className: "text-xs text-muted-foreground",
|
|
34157
34164
|
children: "Download"
|
|
34158
|
-
}), t[36] =
|
|
34165
|
+
}), t[36] = lJ) : lJ = t[36], uJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34159
34166
|
onSelect: () => {
|
|
34160
34167
|
e2(t2.format);
|
|
34161
34168
|
},
|
|
@@ -34176,10 +34183,10 @@ ${n}` : "Please fix this error.";
|
|
|
34176
34183
|
]
|
|
34177
34184
|
})
|
|
34178
34185
|
]
|
|
34179
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34186
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34180
34187
|
className: "text-xs text-muted-foreground",
|
|
34181
34188
|
children: "Copy to clipboard"
|
|
34182
|
-
}), t[37] = z, t[38] =
|
|
34189
|
+
}), t[37] = z, t[38] = dJ) : (z = t[37], dJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34183
34190
|
onSelect: async () => {
|
|
34184
34191
|
try {
|
|
34185
34192
|
await a2(e3.format);
|
|
@@ -34208,30 +34215,30 @@ ${n}` : "Please fix this error.";
|
|
|
34208
34215
|
]
|
|
34209
34216
|
})
|
|
34210
34217
|
]
|
|
34211
|
-
}, 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] =
|
|
34212
|
-
} 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],
|
|
34213
|
-
let
|
|
34214
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
34218
|
+
}, 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] = cJ, t[23] = lJ, t[24] = uJ, t[25] = dJ;
|
|
34219
|
+
} 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], cJ = t[22], lJ = t[23], uJ = t[24], dJ = t[25];
|
|
34220
|
+
let fJ;
|
|
34221
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== cJ || t[44] !== lJ || t[45] !== uJ || t[46] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34215
34222
|
side: $,
|
|
34216
|
-
className:
|
|
34223
|
+
className: cJ,
|
|
34217
34224
|
children: [
|
|
34218
|
-
cJ,
|
|
34219
34225
|
lJ,
|
|
34220
34226
|
uJ,
|
|
34227
|
+
dJ,
|
|
34221
34228
|
z,
|
|
34222
34229
|
U
|
|
34223
34230
|
]
|
|
34224
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34225
|
-
let
|
|
34226
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34231
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = cJ, t[44] = lJ, t[45] = uJ, t[46] = dJ, t[47] = fJ) : fJ = t[47];
|
|
34232
|
+
let pJ;
|
|
34233
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34227
34234
|
modal: K,
|
|
34228
34235
|
open: q,
|
|
34229
34236
|
onOpenChange: J,
|
|
34230
34237
|
children: [
|
|
34231
34238
|
Q,
|
|
34232
|
-
|
|
34239
|
+
fJ
|
|
34233
34240
|
]
|
|
34234
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34241
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = fJ, t[54] = pJ) : pJ = t[54], pJ;
|
|
34235
34242
|
};
|
|
34236
34243
|
function fetchJson(e) {
|
|
34237
34244
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34327,22 +34334,22 @@ ${n}` : "Please fix this error.";
|
|
|
34327
34334
|
]
|
|
34328
34335
|
});
|
|
34329
34336
|
};
|
|
34330
|
-
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:
|
|
34331
|
-
let
|
|
34337
|
+
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: cJ, showSearch: lJ = false, searchQuery: uJ, onSearchQueryChange: dJ, showFilters: fJ = false, filters: pJ, onFiltersChange: mJ, calculateTopKRows: hJ, reloading: gJ, freezeColumnsLeft: _J, freezeColumnsRight: vJ, hiddenColumns: yJ, toggleDisplayHeader: bJ, showChartBuilder: xJ, isChartBuilderOpen: SJ, showPageSizeSelector: CJ, showTableExplorer: wJ, togglePanel: TJ, isPanelOpen: EJ, isAnyPanelOpen: DJ, viewedRowIdx: OJ, onViewedRowChange: kJ, renderTableExplorerPanel: AJ }) => {
|
|
34338
|
+
let jJ = isStaticNotebook(), MJ = !jJ, [NJ, PJ] = import_react.useState(false), { locale: FJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: IJ, setColumnPinning: LJ } = useColumnPinning(_J, vJ), { columnVisibility: RJ, setColumnVisibility: zJ } = useColumnVisibility(yJ);
|
|
34332
34339
|
import_react.useEffect(() => {
|
|
34333
34340
|
let e2;
|
|
34334
|
-
return
|
|
34335
|
-
|
|
34336
|
-
}, 300) :
|
|
34341
|
+
return gJ ? e2 = setTimeout(() => {
|
|
34342
|
+
PJ(true);
|
|
34343
|
+
}, 300) : PJ(false), () => {
|
|
34337
34344
|
e2 && clearTimeout(e2);
|
|
34338
34345
|
};
|
|
34339
34346
|
}, [
|
|
34340
|
-
|
|
34347
|
+
gJ
|
|
34341
34348
|
]);
|
|
34342
|
-
function
|
|
34349
|
+
function BJ(e2, t2) {
|
|
34343
34350
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34344
34351
|
}
|
|
34345
|
-
let
|
|
34352
|
+
let VJ = useReactTable({
|
|
34346
34353
|
_features: [
|
|
34347
34354
|
ColumnPinning,
|
|
34348
34355
|
ColumnWrappingFeature,
|
|
@@ -34366,37 +34373,37 @@ ${n}` : "Please fix this error.";
|
|
|
34366
34373
|
getRowId: (e2, t2) => {
|
|
34367
34374
|
let n2 = getStableRowId(e2);
|
|
34368
34375
|
if (n2) return n2;
|
|
34369
|
-
let i2 =
|
|
34376
|
+
let i2 = BJ(e2, t2);
|
|
34370
34377
|
return String(i2);
|
|
34371
34378
|
}
|
|
34372
34379
|
} : {},
|
|
34373
|
-
locale:
|
|
34380
|
+
locale: FJ,
|
|
34374
34381
|
manualPagination: q,
|
|
34375
34382
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34376
34383
|
...w ? {
|
|
34377
34384
|
onSortingChange: w
|
|
34378
34385
|
} : {},
|
|
34379
34386
|
manualSorting: y,
|
|
34380
|
-
enableSorting: !
|
|
34387
|
+
enableSorting: !jJ,
|
|
34381
34388
|
enableMultiSort: true,
|
|
34382
34389
|
getSortedRowModel: getSortedRowModel(),
|
|
34383
34390
|
manualFiltering: true,
|
|
34384
|
-
enableColumnFilters:
|
|
34391
|
+
enableColumnFilters: fJ && !jJ,
|
|
34385
34392
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34386
|
-
onColumnFiltersChange:
|
|
34393
|
+
onColumnFiltersChange: mJ,
|
|
34387
34394
|
onRowSelectionChange: Q,
|
|
34388
34395
|
onCellSelectionChange: $,
|
|
34389
34396
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34390
34397
|
enableMultiCellSelection: c === "multi-cell",
|
|
34391
|
-
onColumnPinningChange:
|
|
34392
|
-
onColumnVisibilityChange:
|
|
34398
|
+
onColumnPinningChange: LJ,
|
|
34399
|
+
onColumnVisibilityChange: zJ,
|
|
34393
34400
|
enableFocusRow: true,
|
|
34394
|
-
onFocusRowChange:
|
|
34401
|
+
onFocusRowChange: kJ,
|
|
34395
34402
|
state: {
|
|
34396
34403
|
...S ? {
|
|
34397
34404
|
sorting: S
|
|
34398
34405
|
} : {},
|
|
34399
|
-
columnFilters:
|
|
34406
|
+
columnFilters: pJ,
|
|
34400
34407
|
...z ? {
|
|
34401
34408
|
pagination: z
|
|
34402
34409
|
} : J && !z ? {} : {
|
|
@@ -34407,60 +34414,60 @@ ${n}` : "Please fix this error.";
|
|
|
34407
34414
|
},
|
|
34408
34415
|
rowSelection: E ?? {},
|
|
34409
34416
|
cellSelection: O ?? [],
|
|
34410
|
-
columnVisibility:
|
|
34417
|
+
columnVisibility: RJ,
|
|
34411
34418
|
cellStyling: A,
|
|
34412
|
-
columnPinning:
|
|
34419
|
+
columnPinning: IJ,
|
|
34413
34420
|
cellHoverTemplate: M,
|
|
34414
34421
|
cellHoverTexts: I ?? {}
|
|
34415
34422
|
}
|
|
34416
|
-
}),
|
|
34423
|
+
}), HJ = (EJ == null ? void 0 : EJ(PANEL_TYPES.ROW_VIEWER)) ?? false, UJ = !J && a.length > 100, WJ = useScrollContainerHeight({
|
|
34417
34424
|
maxHeight: n,
|
|
34418
|
-
virtualize:
|
|
34419
|
-
}), [
|
|
34425
|
+
virtualize: UJ
|
|
34426
|
+
}), [GJ, KJ] = import_react.useState(null), qJ = import_react.useMemo(() => ({
|
|
34420
34427
|
requestAddFilter: (e2) => {
|
|
34421
|
-
let t2 =
|
|
34422
|
-
t2 &&
|
|
34428
|
+
let t2 = VJ.getColumn(e2.columnId);
|
|
34429
|
+
t2 && KJ(buildEditorSnapshot(t2, {
|
|
34423
34430
|
operator: e2.operator
|
|
34424
34431
|
}));
|
|
34425
34432
|
}
|
|
34426
34433
|
}), [
|
|
34427
|
-
|
|
34428
|
-
]),
|
|
34434
|
+
VJ
|
|
34435
|
+
]), JJ = getUserColumnVisibilityCounts(VJ), YJ = JJ.total > 0 && JJ.visible === 0;
|
|
34429
34436
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34430
|
-
value:
|
|
34437
|
+
value: qJ,
|
|
34431
34438
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34432
34439
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34433
34440
|
children: [
|
|
34434
34441
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34435
|
-
filters:
|
|
34436
|
-
table:
|
|
34437
|
-
calculateTopKRows:
|
|
34438
|
-
addFilterSnapshot:
|
|
34439
|
-
onAddFilterSnapshotChange:
|
|
34442
|
+
filters: pJ,
|
|
34443
|
+
table: VJ,
|
|
34444
|
+
calculateTopKRows: hJ,
|
|
34445
|
+
addFilterSnapshot: GJ,
|
|
34446
|
+
onAddFilterSnapshotChange: KJ
|
|
34440
34447
|
}),
|
|
34441
|
-
|
|
34448
|
+
AJ == null ? void 0 : AJ(VJ),
|
|
34442
34449
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34443
34450
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34444
34451
|
part: "table-wrapper",
|
|
34445
34452
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34446
34453
|
children: [
|
|
34447
|
-
|
|
34448
|
-
table:
|
|
34449
|
-
showSearch:
|
|
34450
|
-
searchQuery:
|
|
34451
|
-
onSearchQueryChange:
|
|
34452
|
-
reloading:
|
|
34453
|
-
showChartBuilder:
|
|
34454
|
-
isChartBuilderOpen:
|
|
34455
|
-
toggleDisplayHeader:
|
|
34456
|
-
showTableExplorer:
|
|
34457
|
-
togglePanel:
|
|
34458
|
-
isAnyPanelOpen:
|
|
34454
|
+
MJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34455
|
+
table: VJ,
|
|
34456
|
+
showSearch: lJ,
|
|
34457
|
+
searchQuery: uJ,
|
|
34458
|
+
onSearchQueryChange: dJ,
|
|
34459
|
+
reloading: gJ,
|
|
34460
|
+
showChartBuilder: xJ,
|
|
34461
|
+
isChartBuilderOpen: SJ,
|
|
34462
|
+
toggleDisplayHeader: bJ,
|
|
34463
|
+
showTableExplorer: wJ,
|
|
34464
|
+
togglePanel: TJ,
|
|
34465
|
+
isAnyPanelOpen: DJ,
|
|
34459
34466
|
downloadAs: K,
|
|
34460
34467
|
sizeBytes: _,
|
|
34461
34468
|
sizeBytesIsLoading: v
|
|
34462
34469
|
}),
|
|
34463
|
-
|
|
34470
|
+
YJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34464
34471
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34465
34472
|
children: [
|
|
34466
34473
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34469,26 +34476,26 @@ ${n}` : "Please fix this error.";
|
|
|
34469
34476
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34470
34477
|
variant: "link",
|
|
34471
34478
|
size: "xs",
|
|
34472
|
-
onClick: () =>
|
|
34479
|
+
onClick: () => VJ.resetColumnVisibility(true),
|
|
34473
34480
|
children: "Unhide all"
|
|
34474
34481
|
})
|
|
34475
34482
|
]
|
|
34476
34483
|
}),
|
|
34477
34484
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34478
34485
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34479
|
-
ref:
|
|
34486
|
+
ref: WJ,
|
|
34480
34487
|
children: [
|
|
34481
|
-
|
|
34488
|
+
NJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34482
34489
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34483
34490
|
}),
|
|
34484
|
-
renderTableHeader(
|
|
34491
|
+
renderTableHeader(VJ, UJ || !!n),
|
|
34485
34492
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34486
|
-
table:
|
|
34493
|
+
table: VJ,
|
|
34487
34494
|
columns: i,
|
|
34488
|
-
rowViewerPanelOpen:
|
|
34489
|
-
getRowIndex:
|
|
34490
|
-
viewedRowIdx:
|
|
34491
|
-
virtualize:
|
|
34495
|
+
rowViewerPanelOpen: HJ,
|
|
34496
|
+
getRowIndex: BJ,
|
|
34497
|
+
viewedRowIdx: OJ,
|
|
34498
|
+
virtualize: UJ
|
|
34492
34499
|
})
|
|
34493
34500
|
]
|
|
34494
34501
|
}),
|
|
@@ -34499,10 +34506,10 @@ ${n}` : "Please fix this error.";
|
|
|
34499
34506
|
pagination: J,
|
|
34500
34507
|
selection: c,
|
|
34501
34508
|
onRowSelectionChange: Q,
|
|
34502
|
-
table:
|
|
34503
|
-
getRowIds:
|
|
34504
|
-
showPageSizeSelector:
|
|
34505
|
-
tableLoading:
|
|
34509
|
+
table: VJ,
|
|
34510
|
+
getRowIds: cJ,
|
|
34511
|
+
showPageSizeSelector: CJ,
|
|
34512
|
+
tableLoading: gJ
|
|
34506
34513
|
})
|
|
34507
34514
|
]
|
|
34508
34515
|
})
|
|
@@ -34602,45 +34609,45 @@ ${d}`,
|
|
|
34602
34609
|
prompt: buildFixInChatPrompt(a, d)
|
|
34603
34610
|
});
|
|
34604
34611
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34605
|
-
let $ = Q,
|
|
34606
|
-
t[19] === z ?
|
|
34607
|
-
let
|
|
34608
|
-
t[21] === z ?
|
|
34612
|
+
let $ = Q, cJ;
|
|
34613
|
+
t[19] === z ? cJ = t[20] : (cJ = () => U(!z), t[19] = z, t[20] = cJ);
|
|
34614
|
+
let lJ = z ? "Collapse traceback" : "Expand traceback", uJ;
|
|
34615
|
+
t[21] === z ? uJ = t[22] : (uJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34609
34616
|
className: "h-3 w-3"
|
|
34610
34617
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34611
34618
|
className: "h-3 w-3"
|
|
34612
|
-
}), t[21] = z, t[22] =
|
|
34613
|
-
let
|
|
34614
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34619
|
+
}), t[21] = z, t[22] = uJ);
|
|
34620
|
+
let dJ;
|
|
34621
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34615
34622
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34616
34623
|
children: "Traceback"
|
|
34617
|
-
}), t[23] =
|
|
34618
|
-
let
|
|
34619
|
-
t[24] !== z || t[25] !==
|
|
34624
|
+
}), t[23] = dJ) : dJ = t[23];
|
|
34625
|
+
let fJ;
|
|
34626
|
+
t[24] !== z || t[25] !== uJ || t[26] !== cJ || t[27] !== lJ ? (fJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34620
34627
|
type: "button",
|
|
34621
|
-
onClick:
|
|
34628
|
+
onClick: cJ,
|
|
34622
34629
|
"aria-expanded": z,
|
|
34623
|
-
"aria-label":
|
|
34630
|
+
"aria-label": lJ,
|
|
34624
34631
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34625
34632
|
children: [
|
|
34626
|
-
|
|
34627
|
-
|
|
34633
|
+
uJ,
|
|
34634
|
+
dJ
|
|
34628
34635
|
]
|
|
34629
|
-
}), t[24] = z, t[25] =
|
|
34630
|
-
let
|
|
34631
|
-
t[29] !== s || t[30] !== z ? (
|
|
34636
|
+
}), t[24] = z, t[25] = uJ, t[26] = cJ, t[27] = lJ, t[28] = fJ) : fJ = t[28];
|
|
34637
|
+
let pJ;
|
|
34638
|
+
t[29] !== s || t[30] !== z ? (pJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34632
34639
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34633
34640
|
children: s
|
|
34634
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34635
|
-
let
|
|
34636
|
-
t[32] !== q || t[33] !== $ || t[34] !== M ? (
|
|
34641
|
+
}), t[29] = s, t[30] = z, t[31] = pJ) : pJ = t[31];
|
|
34642
|
+
let mJ;
|
|
34643
|
+
t[32] !== q || t[33] !== $ || t[34] !== M ? (mJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34637
34644
|
tooltip: "Fix with AI",
|
|
34638
34645
|
openPrompt: () => q(false),
|
|
34639
34646
|
applyAutofix: () => q(true),
|
|
34640
34647
|
openChat: $
|
|
34641
|
-
}), t[32] = q, t[33] = $, t[34] = M, t[35] =
|
|
34642
|
-
let
|
|
34643
|
-
t[36] !== O || t[37] !== S ? (
|
|
34648
|
+
}), t[32] = q, t[33] = $, t[34] = M, t[35] = mJ) : mJ = t[35];
|
|
34649
|
+
let hJ;
|
|
34650
|
+
t[36] !== O || t[37] !== S ? (hJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34644
34651
|
content: "Attach pdb to the exception point.",
|
|
34645
34652
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34646
34653
|
size: "xs",
|
|
@@ -34657,9 +34664,9 @@ ${d}`,
|
|
|
34657
34664
|
"Launch debugger"
|
|
34658
34665
|
]
|
|
34659
34666
|
})
|
|
34660
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34661
|
-
let
|
|
34662
|
-
t[39] !== d || t[40] !== i ? (
|
|
34667
|
+
}), t[36] = O, t[37] = S, t[38] = hJ) : hJ = t[38];
|
|
34668
|
+
let gJ;
|
|
34669
|
+
t[39] !== d || t[40] !== i ? (gJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34663
34670
|
children: [
|
|
34664
34671
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34665
34672
|
asChild: true,
|
|
@@ -34727,25 +34734,25 @@ ${d}`,
|
|
|
34727
34734
|
]
|
|
34728
34735
|
})
|
|
34729
34736
|
]
|
|
34730
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34731
|
-
let
|
|
34732
|
-
t[42] !==
|
|
34737
|
+
}), t[39] = d, t[40] = i, t[41] = gJ) : gJ = t[41];
|
|
34738
|
+
let _J;
|
|
34739
|
+
t[42] !== mJ || t[43] !== hJ || t[44] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
|
|
34733
34740
|
className: "flex gap-2",
|
|
34734
34741
|
children: [
|
|
34735
|
-
pJ,
|
|
34736
34742
|
mJ,
|
|
34737
|
-
hJ
|
|
34743
|
+
hJ,
|
|
34744
|
+
gJ
|
|
34738
34745
|
]
|
|
34739
|
-
}), t[42] =
|
|
34740
|
-
let
|
|
34741
|
-
return t[46] !==
|
|
34746
|
+
}), t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J) : _J = t[45];
|
|
34747
|
+
let vJ;
|
|
34748
|
+
return t[46] !== fJ || t[47] !== pJ || t[48] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34742
34749
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34743
34750
|
children: [
|
|
34744
|
-
dJ,
|
|
34745
34751
|
fJ,
|
|
34746
|
-
|
|
34752
|
+
pJ,
|
|
34753
|
+
_J
|
|
34747
34754
|
]
|
|
34748
|
-
}), t[46] =
|
|
34755
|
+
}), t[46] = fJ, t[47] = pJ, t[48] = _J, t[49] = vJ) : vJ = t[49], vJ;
|
|
34749
34756
|
};
|
|
34750
34757
|
function lastLine(e) {
|
|
34751
34758
|
var _a2, _b;
|
|
@@ -36181,14 +36188,14 @@ ${d}`,
|
|
|
36181
36188
|
Q
|
|
36182
36189
|
]
|
|
36183
36190
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36184
|
-
let
|
|
36185
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36191
|
+
let cJ;
|
|
36192
|
+
return t[36] !== I || t[37] !== $ ? (cJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36186
36193
|
className: "flex flex-col gap-3",
|
|
36187
36194
|
children: [
|
|
36188
36195
|
I,
|
|
36189
36196
|
$
|
|
36190
36197
|
]
|
|
36191
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36198
|
+
}), t[36] = I, t[37] = $, t[38] = cJ) : cJ = t[38], cJ;
|
|
36192
36199
|
};
|
|
36193
36200
|
SlideSidebar = (e) => {
|
|
36194
36201
|
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, _;
|
|
@@ -36313,7 +36320,7 @@ ${d}`,
|
|
|
36313
36320
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36314
36321
|
}
|
|
36315
36322
|
}
|
|
36316
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-
|
|
36323
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev24");
|
|
36317
36324
|
showCodeInRunModeAtom = atom(true);
|
|
36318
36325
|
atom(null);
|
|
36319
36326
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36341,131 +36348,132 @@ ${d}`,
|
|
|
36341
36348
|
}
|
|
36342
36349
|
});
|
|
36343
36350
|
export {
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
|
|
36347
|
-
|
|
36348
|
-
|
|
36349
|
-
|
|
36350
|
-
|
|
36351
|
-
|
|
36352
|
-
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
|
|
36362
|
-
|
|
36363
|
-
|
|
36364
|
-
|
|
36365
|
-
|
|
36366
|
-
|
|
36367
|
-
|
|
36368
|
-
|
|
36369
|
-
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
|
|
36373
|
-
|
|
36374
|
-
|
|
36375
|
-
|
|
36376
|
-
|
|
36377
|
-
|
|
36378
|
-
|
|
36379
|
-
|
|
36380
|
-
|
|
36381
|
-
|
|
36382
|
-
|
|
36383
|
-
|
|
36384
|
-
|
|
36385
|
-
|
|
36386
|
-
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36396
|
-
|
|
36397
|
-
|
|
36351
|
+
smartMatch as $,
|
|
36352
|
+
HtmlOutput as $t,
|
|
36353
|
+
LoadingState as A,
|
|
36354
|
+
loadTableAndRawData as At,
|
|
36355
|
+
useInternalStateWithSync as B,
|
|
36356
|
+
dateToLocalISODateTime as Bt,
|
|
36357
|
+
Progress as C,
|
|
36358
|
+
renderCellValue as Ct,
|
|
36359
|
+
ColumnPreviewContainer as D,
|
|
36360
|
+
useIntersectionObserver as Dt,
|
|
36361
|
+
ColumnName as E,
|
|
36362
|
+
DelayMount as Et,
|
|
36363
|
+
ContextMenu as F,
|
|
36364
|
+
toFieldTypes as Ft,
|
|
36365
|
+
Combobox as G,
|
|
36366
|
+
TabsTrigger as Gt,
|
|
36367
|
+
CompactChipRow as H,
|
|
36368
|
+
Tabs as Ht,
|
|
36369
|
+
ContextMenuContent as I,
|
|
36370
|
+
getMimeValues as It,
|
|
36371
|
+
CommandEmpty as J,
|
|
36372
|
+
ChartLoadingState as Jt,
|
|
36373
|
+
ComboboxItem as K,
|
|
36374
|
+
ChartErrorState as Kt,
|
|
36375
|
+
ContextMenuItem as L,
|
|
36376
|
+
isNullishFilter as Lt,
|
|
36377
|
+
prettifyRowCount as M,
|
|
36378
|
+
INDEX_COLUMN_NAME as Mt,
|
|
36379
|
+
getColumnCountForDisplay as N,
|
|
36380
|
+
SELECT_COLUMN_ID as Nt,
|
|
36381
|
+
EmptyState as O,
|
|
36382
|
+
usePrevious as Ot,
|
|
36383
|
+
getUserColumnVisibilityCounts as P,
|
|
36384
|
+
TOO_MANY_ROWS as Pt,
|
|
36385
|
+
CommandSeparator as Q,
|
|
36386
|
+
Kbd as Qt,
|
|
36387
|
+
ContextMenuSeparator as R,
|
|
36388
|
+
Maps as Rt,
|
|
36389
|
+
downloadHTMLAsImage as S,
|
|
36390
|
+
inferFieldTypes as St,
|
|
36391
|
+
downloadSizeLimitAtom as T,
|
|
36392
|
+
ColumnChartSpecModel as Tt,
|
|
36393
|
+
DatePicker as U,
|
|
36394
|
+
TabsContent as Ut,
|
|
36395
|
+
useSelectList as V,
|
|
36396
|
+
dateToLocalISOTime as Vt,
|
|
36397
|
+
DateRangePicker as W,
|
|
36398
|
+
TabsList as Wt,
|
|
36399
|
+
CommandItem as X,
|
|
36400
|
+
useOverflowDetection as Xt,
|
|
36401
|
+
CommandInput as Y,
|
|
36402
|
+
LazyVegaEmbed as Yt,
|
|
36403
|
+
CommandList as Z,
|
|
36404
|
+
RenderTextWithLinks as Zt,
|
|
36398
36405
|
InstallPackageButton as _,
|
|
36399
36406
|
__tla,
|
|
36400
|
-
|
|
36401
|
-
|
|
36407
|
+
ChevronsDownUp as _n,
|
|
36408
|
+
TableHead as _t,
|
|
36402
36409
|
DEFAULT_DECK_VERTICAL_ALIGN as a,
|
|
36403
|
-
|
|
36404
|
-
|
|
36410
|
+
$fae977aafc393c5c$export$6b862160d295c8e as an,
|
|
36411
|
+
isCellAwareAtom as at,
|
|
36405
36412
|
downloadByURL as b,
|
|
36406
|
-
|
|
36413
|
+
NAMELESS_COLUMN_PREFIX as bt,
|
|
36407
36414
|
SlideSidebar as c,
|
|
36408
|
-
|
|
36409
|
-
|
|
36415
|
+
Funnel as cn,
|
|
36416
|
+
Toggle as ct,
|
|
36410
36417
|
RadioGroup as d,
|
|
36411
|
-
|
|
36412
|
-
|
|
36413
|
-
|
|
36414
|
-
|
|
36418
|
+
Ellipsis as dn,
|
|
36419
|
+
PanelResizeHandle as dt,
|
|
36420
|
+
EmotionCacheProvider as en,
|
|
36421
|
+
ContextAwarePanelItem as et,
|
|
36415
36422
|
RadioGroupItem as f,
|
|
36416
|
-
|
|
36417
|
-
|
|
36423
|
+
Download as fn,
|
|
36424
|
+
Fill as ft,
|
|
36418
36425
|
DataTable as g,
|
|
36419
|
-
|
|
36420
|
-
|
|
36426
|
+
ChevronsLeft as gn,
|
|
36427
|
+
TableCell as gt,
|
|
36421
36428
|
OutputRenderer as h,
|
|
36422
|
-
|
|
36423
|
-
|
|
36429
|
+
ChevronsRight as hn,
|
|
36430
|
+
TableBody as ht,
|
|
36424
36431
|
DEFAULT_DECK_TRANSITION as i,
|
|
36425
|
-
$fae977aafc393c5c$export$
|
|
36426
|
-
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
36432
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as in,
|
|
36433
|
+
contextAwarePanelType as it,
|
|
36434
|
+
prettifyRowColumnCount as j,
|
|
36435
|
+
loadTableData as jt,
|
|
36436
|
+
ErrorState as k,
|
|
36437
|
+
getPageIndexForRow as kt,
|
|
36431
36438
|
Slide as l,
|
|
36432
|
-
|
|
36433
|
-
|
|
36439
|
+
EyeOff as ln,
|
|
36440
|
+
Panel as lt,
|
|
36434
36441
|
OutputArea as m,
|
|
36435
|
-
|
|
36436
|
-
|
|
36442
|
+
ChevronsUpDown as mn,
|
|
36443
|
+
Table as mt,
|
|
36437
36444
|
marimoVersionAtom as n,
|
|
36438
|
-
|
|
36439
|
-
|
|
36445
|
+
hasFunctionProperty as nn,
|
|
36446
|
+
contextAwarePanelOpen as nt,
|
|
36440
36447
|
DEFAULT_SLIDE_TYPE as o,
|
|
36441
|
-
|
|
36442
|
-
|
|
36448
|
+
TextWrap as on,
|
|
36449
|
+
SlotNames as ot,
|
|
36443
36450
|
JsonOutput as p,
|
|
36444
|
-
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36451
|
+
Code as pn,
|
|
36452
|
+
Provider$1 as pt,
|
|
36453
|
+
Command as q,
|
|
36454
|
+
ChartInfoState as qt,
|
|
36448
36455
|
showCodeInRunModeAtom as r,
|
|
36449
|
-
|
|
36450
|
-
|
|
36456
|
+
isRecord as rn,
|
|
36457
|
+
contextAwarePanelOwner as rt,
|
|
36451
36458
|
SLIDE_TYPE_OPTIONS_BY_VALUE as s,
|
|
36452
|
-
|
|
36453
|
-
|
|
36459
|
+
GripHorizontal as sn,
|
|
36460
|
+
slotsController as st,
|
|
36454
36461
|
useNotebookCodeAvailable as t,
|
|
36455
|
-
|
|
36456
|
-
|
|
36462
|
+
safeLocale as tn,
|
|
36463
|
+
PANEL_TYPES as tt,
|
|
36457
36464
|
Switch as u,
|
|
36458
|
-
|
|
36459
|
-
|
|
36465
|
+
Expand as un,
|
|
36466
|
+
PanelGroup as ut,
|
|
36460
36467
|
ADD_PRINTING_CLASS as v,
|
|
36461
|
-
|
|
36462
|
-
|
|
36463
|
-
|
|
36464
|
-
|
|
36465
|
-
|
|
36466
|
-
|
|
36468
|
+
ChevronLeft as vn,
|
|
36469
|
+
TableHeader as vt,
|
|
36470
|
+
Filenames as w,
|
|
36471
|
+
ColumnChartContext as wt,
|
|
36472
|
+
downloadExportedFile as x,
|
|
36473
|
+
generateColumns as xt,
|
|
36467
36474
|
downloadBlob as y,
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36475
|
+
ArrowDownWideNarrow as yn,
|
|
36476
|
+
TableRow as yt,
|
|
36477
|
+
ContextMenuTrigger as z,
|
|
36478
|
+
dateToLocalISODate as zt
|
|
36471
36479
|
};
|