@marimo-team/islands 0.23.3-dev3 → 0.23.3-dev32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-CTt4WX0V.js → chat-ui-BLFhPclV.js} +2 -2
- package/dist/{html-to-image-BdsDysfl.js → html-to-image-XYwXqg2E.js} +2107 -2107
- package/dist/main.js +1134 -1116
- package/dist/{process-output-COL2Pf5I.js → process-output-BDVjDpbu.js} +1 -1
- package/dist/{reveal-component-Cd5Y35Ny.js → reveal-component-DaX8Aj0s.js} +2 -2
- package/dist/{slide-BEerfanN.js → slide-C1t_W7WX.js} +571 -467
- package/package.json +2 -2
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +84 -2
- package/src/components/editor/file-tree/file-explorer.tsx +142 -203
- package/src/components/editor/file-tree/file-name-input.tsx +41 -0
- package/src/components/editor/file-tree/file-operations.tsx +266 -0
- package/src/components/editor/file-tree/renderers.tsx +1 -1
- package/src/components/editor/file-tree/requesting-tree.tsx +68 -49
- package/src/components/editor/output/JsonOutput.tsx +157 -4
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +80 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +147 -2
- package/src/components/home/state.ts +13 -1
- package/src/components/pages/home-page.tsx +116 -10
- package/src/core/islands/__tests__/bridge.test.ts +116 -5
- package/src/core/islands/bridge.ts +5 -1
- package/src/core/network/requests-network.ts +0 -3
- package/src/core/static/export-context.ts +43 -0
- package/src/plugins/core/__test__/trusted-url.test.ts +130 -18
- package/src/plugins/core/trusted-url.ts +23 -10
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +29 -1
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +34 -0
- package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +35 -2
- package/src/utils/__tests__/path.test.ts +20 -0
- package/src/utils/pathUtils.test.ts +141 -1
- package/src/utils/pathUtils.ts +46 -0
- package/src/utils/paths.ts +9 -1
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, p as composeRefs, r as
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
|
|
9
|
-
import { $ as useCellNames, A as ChevronRightIcon, An as FileText, At as useChromeActions, C as AccordionContent, Cn as Wrench, Dn as LoaderCircle, Dt as goToCellLine, En as NotebookPen, Ft as PluralWord, G as getCellEditorView, I as base64ToUint8Array, In as Braces, Kt as useRequestClient, Ln as esm_default, Lt as DATA_TYPE_ICON, M as PinLeftIcon, Mt as adaptForLocalStorage, N as PinRightIcon, Nt as jotaiJsonStorage, O as CheckIcon, Q as useCellIds, R as extractBase64FromDataURL, Rn as import_lib, S as Accordion, T as AccordionTrigger, V as renderHTML, Wt as getRequestClient, Xt as extractAllTracebackInfo, Yt as elementContainsMarimoCellFile, Z as useCellActions, Zt as getTracebackInfo, an as HTMLCellId, bt as Checkbox, c as Popover, ct as viewStateAtom, d as PopoverTrigger, dn as jsonParseWithSpecialChar, en as filenameAtom, fn as jsonToMarkdown, g as getDatasourceContext, gt as displayCellName, hn as atomWithStorage, ht as getCellDomProps, in as CellOutputId, j as DotFilledIcon, l as PopoverClose$1, lt as outputIsLoading, m as useExpandedOutput, mt as DATA_CELL_ID, n as MarkdownRenderer, on as SCRATCH_CELL_ID, pn as jsonToTSV, pt as sanitizeHtml, q as notebookAtom, rt as AnsiUp, s as Spinner, st as useInstallAllowed, t as toPng, u as PopoverContent, vn as Close$1, w as AccordionItem, z as isDataURLString, __tla as __tla_0 } from "./html-to-image-
|
|
9
|
+
import { $ as useCellNames, A as ChevronRightIcon, An as FileText, At as useChromeActions, C as AccordionContent, Cn as Wrench, Dn as LoaderCircle, Dt as goToCellLine, En as NotebookPen, Ft as PluralWord, G as getCellEditorView, I as base64ToUint8Array, In as Braces, Kt as useRequestClient, Ln as esm_default, Lt as DATA_TYPE_ICON, M as PinLeftIcon, Mt as adaptForLocalStorage, N as PinRightIcon, Nt as jotaiJsonStorage, O as CheckIcon, Q as useCellIds, R as extractBase64FromDataURL, Rn as import_lib, S as Accordion, T as AccordionTrigger, V as renderHTML, Wt as getRequestClient, Xt as extractAllTracebackInfo, Yt as elementContainsMarimoCellFile, Z as useCellActions, Zt as getTracebackInfo, an as HTMLCellId, bt as Checkbox, c as Popover, ct as viewStateAtom, d as PopoverTrigger, dn as jsonParseWithSpecialChar, en as filenameAtom, fn as jsonToMarkdown, g as getDatasourceContext, gt as displayCellName, hn as atomWithStorage, ht as getCellDomProps, in as CellOutputId, j as DotFilledIcon, l as PopoverClose$1, lt as outputIsLoading, m as useExpandedOutput, mt as DATA_CELL_ID, n as MarkdownRenderer, on as SCRATCH_CELL_ID, pn as jsonToTSV, pt as sanitizeHtml, q as notebookAtom, rt as AnsiUp, s as Spinner, st as useInstallAllowed, t as toPng, u as PopoverContent, vn as Close$1, w as AccordionItem, z as isDataURLString, __tla as __tla_0 } from "./html-to-image-XYwXqg2E.js";
|
|
10
10
|
import { u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
11
11
|
import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
@@ -7103,33 +7103,33 @@ try {
|
|
|
7103
7103
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7104
7104
|
function y(e2) {
|
|
7105
7105
|
var _a2, _b, _c, _d;
|
|
7106
|
-
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,
|
|
7106
|
+
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, gj = import_react.useRef(false), q = useTheme$2(), J = import_react.useContext(f), _j = !!J && !I, Q = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7107
7107
|
h2
|
|
7108
|
-
]),
|
|
7109
|
-
|
|
7110
|
-
]),
|
|
7111
|
-
supportedColorSchemes:
|
|
7112
|
-
defaultLightColorScheme:
|
|
7113
|
-
defaultDarkColorScheme:
|
|
7108
|
+
]), vj = Q[t], $ = vj || Q, { colorSchemes: yj = _, components: bj = v, cssVarPrefix: xj } = $, Sj = Object.keys(yj).filter((e3) => !!yj[e3]).join(","), Cj = import_react.useMemo(() => Sj.split(","), [
|
|
7109
|
+
Sj
|
|
7110
|
+
]), wj = typeof s == "string" ? s : s.light, Tj = typeof s == "string" ? s : s.dark, { mode: Ej, setMode: Dj, systemMode: Oj, lightColorScheme: kj, darkColorScheme: Aj, colorScheme: jj, setColorScheme: Mj } = useCurrentColorScheme({
|
|
7111
|
+
supportedColorSchemes: Cj,
|
|
7112
|
+
defaultLightColorScheme: wj,
|
|
7113
|
+
defaultDarkColorScheme: Tj,
|
|
7114
7114
|
modeStorageKey: y2,
|
|
7115
7115
|
colorSchemeStorageKey: S2,
|
|
7116
|
-
defaultMode:
|
|
7116
|
+
defaultMode: yj[wj] && yj[Tj] ? U : ((_b = (_a2 = yj[$.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $.palette) == null ? void 0 : _c.mode),
|
|
7117
7117
|
storageManager: E,
|
|
7118
7118
|
storageWindow: O,
|
|
7119
7119
|
noSsr: K
|
|
7120
|
-
}),
|
|
7121
|
-
|
|
7122
|
-
let
|
|
7120
|
+
}), Nj = Ej, Pj = jj;
|
|
7121
|
+
_j && (Nj = J.mode, Pj = J.colorScheme);
|
|
7122
|
+
let Fj = import_react.useMemo(() => {
|
|
7123
7123
|
var _a3;
|
|
7124
|
-
let e3 =
|
|
7124
|
+
let e3 = Pj || $.defaultColorScheme, t2 = ((_a3 = $.generateThemeVars) == null ? void 0 : _a3.call($)) || $.vars, n2 = {
|
|
7125
7125
|
...$,
|
|
7126
|
-
components:
|
|
7127
|
-
colorSchemes:
|
|
7128
|
-
cssVarPrefix:
|
|
7126
|
+
components: bj,
|
|
7127
|
+
colorSchemes: yj,
|
|
7128
|
+
cssVarPrefix: xj,
|
|
7129
7129
|
vars: t2
|
|
7130
7130
|
};
|
|
7131
7131
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7132
|
-
let t3 =
|
|
7132
|
+
let t3 = yj[e3];
|
|
7133
7133
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7134
7134
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7135
7135
|
...n2[e4],
|
|
@@ -7140,33 +7140,33 @@ try {
|
|
|
7140
7140
|
return c ? c(n2) : n2;
|
|
7141
7141
|
}, [
|
|
7142
7142
|
$,
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
]),
|
|
7143
|
+
Pj,
|
|
7144
|
+
bj,
|
|
7145
|
+
yj,
|
|
7146
|
+
xj
|
|
7147
|
+
]), Ij = $.colorSchemeSelector;
|
|
7148
7148
|
useEnhancedEffect_default(() => {
|
|
7149
|
-
if (
|
|
7150
|
-
let e3 =
|
|
7151
|
-
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(...
|
|
7149
|
+
if (Pj && M && Ij && Ij !== "media") {
|
|
7150
|
+
let e3 = Ij, t2 = Ij;
|
|
7151
|
+
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(...Cj.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Pj));
|
|
7152
7152
|
else {
|
|
7153
|
-
let e4 = t2.replace("%s",
|
|
7153
|
+
let e4 = t2.replace("%s", Pj).match(/\[([^\]]+)\]/);
|
|
7154
7154
|
if (e4) {
|
|
7155
7155
|
let [t3, n2] = e4[1].split("=");
|
|
7156
|
-
n2 ||
|
|
7157
|
-
M.removeAttribute(t3.replace(
|
|
7156
|
+
n2 || Cj.forEach((e5) => {
|
|
7157
|
+
M.removeAttribute(t3.replace(Pj, e5));
|
|
7158
7158
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7159
|
-
} else M.setAttribute(t2,
|
|
7159
|
+
} else M.setAttribute(t2, Pj);
|
|
7160
7160
|
}
|
|
7161
7161
|
}
|
|
7162
7162
|
}, [
|
|
7163
|
-
|
|
7164
|
-
|
|
7163
|
+
Pj,
|
|
7164
|
+
Ij,
|
|
7165
7165
|
M,
|
|
7166
|
-
|
|
7166
|
+
Cj
|
|
7167
7167
|
]), import_react.useEffect(() => {
|
|
7168
7168
|
let e3;
|
|
7169
|
-
if (w2 &&
|
|
7169
|
+
if (w2 && gj.current && A) {
|
|
7170
7170
|
let t2 = A.createElement("style");
|
|
7171
7171
|
t2.appendChild(A.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), A.head.appendChild(t2), window.getComputedStyle(A.body), e3 = setTimeout(() => {
|
|
7172
7172
|
A.head.removeChild(t2);
|
|
@@ -7176,48 +7176,48 @@ try {
|
|
|
7176
7176
|
clearTimeout(e3);
|
|
7177
7177
|
};
|
|
7178
7178
|
}, [
|
|
7179
|
-
|
|
7179
|
+
Pj,
|
|
7180
7180
|
w2,
|
|
7181
7181
|
A
|
|
7182
|
-
]), import_react.useEffect(() => (
|
|
7183
|
-
|
|
7182
|
+
]), import_react.useEffect(() => (gj.current = true, () => {
|
|
7183
|
+
gj.current = false;
|
|
7184
7184
|
}), []);
|
|
7185
|
-
let
|
|
7186
|
-
allColorSchemes:
|
|
7187
|
-
colorScheme:
|
|
7188
|
-
darkColorScheme:
|
|
7189
|
-
lightColorScheme:
|
|
7190
|
-
mode:
|
|
7191
|
-
setColorScheme:
|
|
7192
|
-
setMode:
|
|
7193
|
-
systemMode:
|
|
7185
|
+
let Lj = import_react.useMemo(() => ({
|
|
7186
|
+
allColorSchemes: Cj,
|
|
7187
|
+
colorScheme: Pj,
|
|
7188
|
+
darkColorScheme: Aj,
|
|
7189
|
+
lightColorScheme: kj,
|
|
7190
|
+
mode: Nj,
|
|
7191
|
+
setColorScheme: Mj,
|
|
7192
|
+
setMode: Dj,
|
|
7193
|
+
systemMode: Oj
|
|
7194
7194
|
}), [
|
|
7195
|
-
pj,
|
|
7196
|
-
wj,
|
|
7197
|
-
bj,
|
|
7198
|
-
yj,
|
|
7199
7195
|
Cj,
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7196
|
+
Pj,
|
|
7197
|
+
Aj,
|
|
7198
|
+
kj,
|
|
7199
|
+
Nj,
|
|
7200
|
+
Mj,
|
|
7201
|
+
Dj,
|
|
7202
|
+
Oj,
|
|
7203
|
+
Fj.colorSchemeSelector
|
|
7204
|
+
]), Rj = true;
|
|
7205
|
+
(z || $.cssVariables === false || _j && (q == null ? void 0 : q.cssVarPrefix) === xj) && (Rj = false);
|
|
7206
|
+
let zj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7207
7207
|
children: [
|
|
7208
7208
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7209
|
-
themeId:
|
|
7210
|
-
theme:
|
|
7209
|
+
themeId: vj ? t : void 0,
|
|
7210
|
+
theme: Fj,
|
|
7211
7211
|
children: d2
|
|
7212
7212
|
}),
|
|
7213
|
-
|
|
7214
|
-
styles: ((_d =
|
|
7213
|
+
Rj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7214
|
+
styles: ((_d = Fj.generateStyleSheets) == null ? void 0 : _d.call(Fj)) || []
|
|
7215
7215
|
})
|
|
7216
7216
|
]
|
|
7217
7217
|
});
|
|
7218
|
-
return
|
|
7219
|
-
value:
|
|
7220
|
-
children:
|
|
7218
|
+
return _j ? zj : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7219
|
+
value: Lj,
|
|
7220
|
+
children: zj
|
|
7221
7221
|
});
|
|
7222
7222
|
}
|
|
7223
7223
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -7963,10 +7963,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
7963
7963
|
disableCssColorScheme: a,
|
|
7964
7964
|
shouldSkipGeneratingVar: s,
|
|
7965
7965
|
getSelector: createGetSelector_default(I)
|
|
7966
|
-
}, { vars: U, generateThemeVars: K, generateStyleSheets:
|
|
7966
|
+
}, { vars: U, generateThemeVars: K, generateStyleSheets: gj } = prepareCssVars_default(I, z);
|
|
7967
7967
|
return I.vars = U, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([e2, t2]) => {
|
|
7968
7968
|
I[e2] = t2;
|
|
7969
|
-
}), I.generateThemeVars = K, I.generateStyleSheets =
|
|
7969
|
+
}), I.generateThemeVars = K, I.generateStyleSheets = gj, I.generateSpacing = function() {
|
|
7970
7970
|
return createSpacing(f.spacing, createUnarySpacing(this));
|
|
7971
7971
|
}, I.getColorSchemeSelector = createGetColorSchemeSelector(c), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = s, I.unstable_sxConfig = {
|
|
7972
7972
|
...defaultSxConfig_default,
|
|
@@ -8717,10 +8717,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
8717
8717
|
let n = useDefaultProps({
|
|
8718
8718
|
props: e,
|
|
8719
8719
|
name: "MuiInputBase"
|
|
8720
|
-
}), { "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:
|
|
8721
|
-
}, []),
|
|
8720
|
+
}), { "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: gj, onBlur: q, onChange: J, onClick: _j, onFocus: Q, onKeyDown: vj, onKeyUp: $, placeholder: yj, readOnly: bj, renderSuffix: xj, rows: Sj, size: Cj, slotProps: wj = {}, slots: Tj = {}, startAdornment: Ej, type: Dj = "text", value: Oj, ...kj } = n, Aj = A.value == null ? Oj : A.value, { current: jj } = import_react.useRef(Aj != null), Mj = import_react.useRef(), Nj = import_react.useCallback((e2) => {
|
|
8721
|
+
}, []), Pj = useForkRef_default(Mj, M, A.ref, Nj), [Fj, Ij] = import_react.useState(false), Lj = useFormControl(), Rj = formControlState({
|
|
8722
8722
|
props: n,
|
|
8723
|
-
muiFormControl:
|
|
8723
|
+
muiFormControl: Lj,
|
|
8724
8724
|
states: [
|
|
8725
8725
|
"color",
|
|
8726
8726
|
"disabled",
|
|
@@ -8731,145 +8731,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
8731
8731
|
"filled"
|
|
8732
8732
|
]
|
|
8733
8733
|
});
|
|
8734
|
-
|
|
8735
|
-
!
|
|
8734
|
+
Rj.focused = Lj ? Lj.focused : Fj, import_react.useEffect(() => {
|
|
8735
|
+
!Lj && _ && Fj && (Ij(false), q && q());
|
|
8736
8736
|
}, [
|
|
8737
|
-
|
|
8737
|
+
Lj,
|
|
8738
8738
|
_,
|
|
8739
|
-
|
|
8739
|
+
Fj,
|
|
8740
8740
|
q
|
|
8741
8741
|
]);
|
|
8742
|
-
let
|
|
8743
|
-
isFilled(e2) ?
|
|
8742
|
+
let zj = Lj && Lj.onFilled, Bj = Lj && Lj.onEmpty, Vj = import_react.useCallback((e2) => {
|
|
8743
|
+
isFilled(e2) ? zj && zj() : Bj && Bj();
|
|
8744
8744
|
}, [
|
|
8745
|
-
|
|
8746
|
-
|
|
8745
|
+
zj,
|
|
8746
|
+
Bj
|
|
8747
8747
|
]);
|
|
8748
8748
|
useEnhancedEffect_default$1(() => {
|
|
8749
|
-
|
|
8750
|
-
value:
|
|
8749
|
+
jj && Vj({
|
|
8750
|
+
value: Aj
|
|
8751
8751
|
});
|
|
8752
8752
|
}, [
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8753
|
+
Aj,
|
|
8754
|
+
Vj,
|
|
8755
|
+
jj
|
|
8756
8756
|
]);
|
|
8757
|
-
let
|
|
8758
|
-
Q && Q(e2), A.onFocus && A.onFocus(e2),
|
|
8759
|
-
},
|
|
8760
|
-
q && q(e2), A.onBlur && A.onBlur(e2),
|
|
8761
|
-
},
|
|
8762
|
-
if (!
|
|
8763
|
-
let t3 = e2.target ||
|
|
8757
|
+
let Hj = (e2) => {
|
|
8758
|
+
Q && Q(e2), A.onFocus && A.onFocus(e2), Lj && Lj.onFocus ? Lj.onFocus(e2) : Ij(true);
|
|
8759
|
+
}, Uj = (e2) => {
|
|
8760
|
+
q && q(e2), A.onBlur && A.onBlur(e2), Lj && Lj.onBlur ? Lj.onBlur(e2) : Ij(false);
|
|
8761
|
+
}, Wj = (e2, ...t2) => {
|
|
8762
|
+
if (!jj) {
|
|
8763
|
+
let t3 = e2.target || Mj.current;
|
|
8764
8764
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
8765
|
-
|
|
8765
|
+
Vj({
|
|
8766
8766
|
value: t3.value
|
|
8767
8767
|
});
|
|
8768
8768
|
}
|
|
8769
8769
|
A.onChange && A.onChange(e2, ...t2), J && J(e2, ...t2);
|
|
8770
8770
|
};
|
|
8771
8771
|
import_react.useEffect(() => {
|
|
8772
|
-
|
|
8772
|
+
Vj(Mj.current);
|
|
8773
8773
|
}, []);
|
|
8774
|
-
let
|
|
8775
|
-
|
|
8776
|
-
},
|
|
8777
|
-
K &&
|
|
8774
|
+
let Gj = (e2) => {
|
|
8775
|
+
Mj.current && e2.currentTarget === e2.target && Mj.current.focus(), _j && _j(e2);
|
|
8776
|
+
}, Kj = O, qj = A;
|
|
8777
|
+
K && Kj === "input" && (qj = Sj ? {
|
|
8778
8778
|
type: void 0,
|
|
8779
|
-
minRows:
|
|
8780
|
-
maxRows:
|
|
8781
|
-
...
|
|
8779
|
+
minRows: Sj,
|
|
8780
|
+
maxRows: Sj,
|
|
8781
|
+
...qj
|
|
8782
8782
|
} : {
|
|
8783
8783
|
type: void 0,
|
|
8784
8784
|
maxRows: z,
|
|
8785
8785
|
minRows: U,
|
|
8786
|
-
...
|
|
8787
|
-
},
|
|
8788
|
-
let
|
|
8789
|
-
|
|
8786
|
+
...qj
|
|
8787
|
+
}, Kj = TextareaAutosize_default);
|
|
8788
|
+
let Jj = (e2) => {
|
|
8789
|
+
Vj(e2.animationName === "mui-auto-fill-cancel" ? Mj.current : {
|
|
8790
8790
|
value: "x"
|
|
8791
8791
|
});
|
|
8792
8792
|
};
|
|
8793
8793
|
import_react.useEffect(() => {
|
|
8794
|
-
|
|
8794
|
+
Lj && Lj.setAdornedStart(!!Ej);
|
|
8795
8795
|
}, [
|
|
8796
|
-
|
|
8797
|
-
|
|
8796
|
+
Lj,
|
|
8797
|
+
Ej
|
|
8798
8798
|
]);
|
|
8799
|
-
let
|
|
8799
|
+
let Yj = {
|
|
8800
8800
|
...n,
|
|
8801
|
-
color:
|
|
8802
|
-
disabled:
|
|
8801
|
+
color: Rj.color || "primary",
|
|
8802
|
+
disabled: Rj.disabled,
|
|
8803
8803
|
endAdornment: y,
|
|
8804
|
-
error:
|
|
8805
|
-
focused:
|
|
8806
|
-
formControl:
|
|
8804
|
+
error: Rj.error,
|
|
8805
|
+
focused: Rj.focused,
|
|
8806
|
+
formControl: Lj,
|
|
8807
8807
|
fullWidth: w,
|
|
8808
|
-
hiddenLabel:
|
|
8808
|
+
hiddenLabel: Rj.hiddenLabel,
|
|
8809
8809
|
multiline: K,
|
|
8810
|
-
size:
|
|
8811
|
-
startAdornment:
|
|
8812
|
-
type:
|
|
8813
|
-
},
|
|
8814
|
-
return
|
|
8815
|
-
...
|
|
8816
|
-
...
|
|
8810
|
+
size: Rj.size,
|
|
8811
|
+
startAdornment: Ej,
|
|
8812
|
+
type: Dj
|
|
8813
|
+
}, Xj = useUtilityClasses(Yj), Zj = Tj.root || d.Root || InputBaseRoot, Qj = wj.root || f.root || {}, $j = Tj.input || d.Input || InputBaseInput;
|
|
8814
|
+
return qj = {
|
|
8815
|
+
...qj,
|
|
8816
|
+
...wj.input ?? f.input
|
|
8817
8817
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
8818
8818
|
children: [
|
|
8819
8819
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
8820
|
-
(0, import_jsx_runtime.jsxs)(
|
|
8821
|
-
...
|
|
8820
|
+
(0, import_jsx_runtime.jsxs)(Zj, {
|
|
8821
|
+
...Qj,
|
|
8822
8822
|
ref: t,
|
|
8823
|
-
onClick:
|
|
8824
|
-
...
|
|
8825
|
-
...!isHostComponent_default(
|
|
8823
|
+
onClick: Gj,
|
|
8824
|
+
...kj,
|
|
8825
|
+
...!isHostComponent_default(Zj) && {
|
|
8826
8826
|
ownerState: {
|
|
8827
|
-
...
|
|
8828
|
-
...
|
|
8827
|
+
...Yj,
|
|
8828
|
+
...Qj.ownerState
|
|
8829
8829
|
}
|
|
8830
8830
|
},
|
|
8831
|
-
className: clsx_default(
|
|
8831
|
+
className: clsx_default(Xj.root, Qj.className, s, bj && "MuiInputBase-readOnly"),
|
|
8832
8832
|
children: [
|
|
8833
|
-
|
|
8833
|
+
Ej,
|
|
8834
8834
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
8835
8835
|
value: null,
|
|
8836
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
8837
|
-
"aria-invalid":
|
|
8836
|
+
children: (0, import_jsx_runtime.jsx)($j, {
|
|
8837
|
+
"aria-invalid": Rj.error,
|
|
8838
8838
|
"aria-describedby": i,
|
|
8839
8839
|
autoComplete: a,
|
|
8840
8840
|
autoFocus: o,
|
|
8841
8841
|
defaultValue: h,
|
|
8842
|
-
disabled:
|
|
8842
|
+
disabled: Rj.disabled,
|
|
8843
8843
|
id: E,
|
|
8844
|
-
onAnimationStart:
|
|
8845
|
-
name:
|
|
8846
|
-
placeholder:
|
|
8847
|
-
readOnly:
|
|
8848
|
-
required:
|
|
8849
|
-
rows:
|
|
8850
|
-
value:
|
|
8851
|
-
onKeyDown:
|
|
8844
|
+
onAnimationStart: Jj,
|
|
8845
|
+
name: gj,
|
|
8846
|
+
placeholder: yj,
|
|
8847
|
+
readOnly: bj,
|
|
8848
|
+
required: Rj.required,
|
|
8849
|
+
rows: Sj,
|
|
8850
|
+
value: Aj,
|
|
8851
|
+
onKeyDown: vj,
|
|
8852
8852
|
onKeyUp: $,
|
|
8853
|
-
type:
|
|
8854
|
-
...
|
|
8855
|
-
...!isHostComponent_default(
|
|
8856
|
-
as:
|
|
8853
|
+
type: Dj,
|
|
8854
|
+
...qj,
|
|
8855
|
+
...!isHostComponent_default($j) && {
|
|
8856
|
+
as: Kj,
|
|
8857
8857
|
ownerState: {
|
|
8858
|
-
...
|
|
8859
|
-
...
|
|
8858
|
+
...Yj,
|
|
8859
|
+
...qj.ownerState
|
|
8860
8860
|
}
|
|
8861
8861
|
},
|
|
8862
|
-
ref:
|
|
8863
|
-
className: clsx_default(
|
|
8864
|
-
onBlur:
|
|
8865
|
-
onChange:
|
|
8866
|
-
onFocus:
|
|
8862
|
+
ref: Pj,
|
|
8863
|
+
className: clsx_default(Xj.input, qj.className, bj && "MuiInputBase-readOnly"),
|
|
8864
|
+
onBlur: Uj,
|
|
8865
|
+
onChange: Wj,
|
|
8866
|
+
onFocus: Hj
|
|
8867
8867
|
})
|
|
8868
8868
|
}),
|
|
8869
8869
|
y,
|
|
8870
|
-
|
|
8871
|
-
...
|
|
8872
|
-
startAdornment:
|
|
8870
|
+
xj ? xj({
|
|
8871
|
+
...Rj,
|
|
8872
|
+
startAdornment: Ej
|
|
8873
8873
|
}) : null
|
|
8874
8874
|
]
|
|
8875
8875
|
})
|
|
@@ -9945,28 +9945,28 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9945
9945
|
M,
|
|
9946
9946
|
i,
|
|
9947
9947
|
a
|
|
9948
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K,
|
|
9949
|
-
|
|
9948
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, gj] = useInspect(i, t, a), [q, J] = (0, import_react.useState)(false), _j = useJsonViewerStore((e2) => e2.onChange), Q = useTextColor(), vj = useJsonViewerStore((e2) => e2.colorspace.base0C), $ = useJsonViewerStore((e2) => e2.colorspace.base0A), yj = useJsonViewerStore((e2) => e2.displayComma), bj = useJsonViewerStore((e2) => e2.quotesOnKeys), xj = useJsonViewerStore((e2) => e2.rootName), Sj = U === t, Cj = Number.isInteger(Number(A)), wj = useJsonViewerStore((e2) => e2.enableAdd), Tj = useJsonViewerStore((e2) => e2.onAdd), Ej = (0, import_react.useMemo)(() => !Tj || a !== void 0 || wj === false || v === false ? false : typeof wj == "function" ? !!wj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
9949
|
+
Tj,
|
|
9950
9950
|
a,
|
|
9951
9951
|
i,
|
|
9952
|
-
|
|
9952
|
+
wj,
|
|
9953
9953
|
v,
|
|
9954
9954
|
t
|
|
9955
|
-
]),
|
|
9956
|
-
|
|
9955
|
+
]), Dj = useJsonViewerStore((e2) => e2.enableDelete), Oj = useJsonViewerStore((e2) => e2.onDelete), kj = (0, import_react.useMemo)(() => !Oj || a !== void 0 || Sj || Dj === false || v === false ? false : typeof Dj == "function" ? !!Dj(i, t) : Dj, [
|
|
9956
|
+
Oj,
|
|
9957
9957
|
a,
|
|
9958
|
-
|
|
9958
|
+
Sj,
|
|
9959
9959
|
i,
|
|
9960
|
-
|
|
9960
|
+
Dj,
|
|
9961
9961
|
v,
|
|
9962
9962
|
t
|
|
9963
|
-
]),
|
|
9964
|
-
|
|
9963
|
+
]), Aj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: jj, copied: Mj } = useClipboard(), Nj = useJsonViewerStore((e2) => e2.highlightUpdates), Pj = (0, import_react.useMemo)(() => !Nj || 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, [
|
|
9964
|
+
Nj,
|
|
9965
9965
|
n,
|
|
9966
9966
|
t
|
|
9967
|
-
]),
|
|
9967
|
+
]), Fj = (0, import_react.useRef)();
|
|
9968
9968
|
(0, import_react.useEffect)(() => {
|
|
9969
|
-
|
|
9969
|
+
Fj.current && Pj && "animate" in Fj.current && Fj.current.animate([
|
|
9970
9970
|
{
|
|
9971
9971
|
backgroundColor: $
|
|
9972
9972
|
},
|
|
@@ -9979,39 +9979,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9979
9979
|
});
|
|
9980
9980
|
}, [
|
|
9981
9981
|
$,
|
|
9982
|
-
|
|
9982
|
+
Pj,
|
|
9983
9983
|
n,
|
|
9984
9984
|
t
|
|
9985
9985
|
]);
|
|
9986
|
-
let
|
|
9986
|
+
let Ij = (0, import_react.useCallback)((e2) => {
|
|
9987
9987
|
e2.preventDefault(), h && E(h(t)), J(true);
|
|
9988
9988
|
}, [
|
|
9989
9989
|
h,
|
|
9990
9990
|
t
|
|
9991
|
-
]),
|
|
9991
|
+
]), Lj = (0, import_react.useCallback)(() => {
|
|
9992
9992
|
J(false), E("");
|
|
9993
9993
|
}, [
|
|
9994
9994
|
J,
|
|
9995
9995
|
E
|
|
9996
|
-
]),
|
|
9996
|
+
]), Rj = (0, import_react.useCallback)((e2) => {
|
|
9997
9997
|
if (J(false), _) try {
|
|
9998
|
-
|
|
9998
|
+
_j(i, t, _(e2));
|
|
9999
9999
|
} catch {
|
|
10000
10000
|
}
|
|
10001
10001
|
}, [
|
|
10002
10002
|
J,
|
|
10003
10003
|
_,
|
|
10004
|
-
|
|
10004
|
+
_j,
|
|
10005
10005
|
i,
|
|
10006
10006
|
t
|
|
10007
|
-
]),
|
|
10007
|
+
]), zj = (0, import_react.useMemo)(() => q ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10008
10008
|
children: [
|
|
10009
10009
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10010
10010
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10011
10011
|
sx: {
|
|
10012
10012
|
fontSize: ".8rem"
|
|
10013
10013
|
},
|
|
10014
|
-
onClick:
|
|
10014
|
+
onClick: Lj
|
|
10015
10015
|
})
|
|
10016
10016
|
}),
|
|
10017
10017
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10019,22 +10019,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10019
10019
|
sx: {
|
|
10020
10020
|
fontSize: ".8rem"
|
|
10021
10021
|
},
|
|
10022
|
-
onClick: () =>
|
|
10022
|
+
onClick: () => Rj(w)
|
|
10023
10023
|
})
|
|
10024
10024
|
})
|
|
10025
10025
|
]
|
|
10026
10026
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10027
10027
|
children: [
|
|
10028
|
-
|
|
10028
|
+
Aj && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10029
10029
|
onClick: (e2) => {
|
|
10030
10030
|
e2.preventDefault();
|
|
10031
10031
|
try {
|
|
10032
|
-
|
|
10032
|
+
jj(i, t, copyString);
|
|
10033
10033
|
} catch (e3) {
|
|
10034
10034
|
console.error(e3);
|
|
10035
10035
|
}
|
|
10036
10036
|
},
|
|
10037
|
-
children:
|
|
10037
|
+
children: Mj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10038
10038
|
sx: {
|
|
10039
10039
|
fontSize: ".8rem"
|
|
10040
10040
|
}
|
|
@@ -10045,16 +10045,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10045
10045
|
})
|
|
10046
10046
|
}),
|
|
10047
10047
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10048
|
-
onClick:
|
|
10048
|
+
onClick: Ij,
|
|
10049
10049
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10050
10050
|
sx: {
|
|
10051
10051
|
fontSize: ".8rem"
|
|
10052
10052
|
}
|
|
10053
10053
|
})
|
|
10054
10054
|
}),
|
|
10055
|
-
|
|
10055
|
+
Ej && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10056
10056
|
onClick: (e2) => {
|
|
10057
|
-
e2.preventDefault(),
|
|
10057
|
+
e2.preventDefault(), Tj == null ? void 0 : Tj(i);
|
|
10058
10058
|
},
|
|
10059
10059
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10060
10060
|
sx: {
|
|
@@ -10062,9 +10062,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10062
10062
|
}
|
|
10063
10063
|
})
|
|
10064
10064
|
}),
|
|
10065
|
-
|
|
10065
|
+
kj && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10066
10066
|
onClick: (e2) => {
|
|
10067
|
-
e2.preventDefault(),
|
|
10067
|
+
e2.preventDefault(), Oj == null ? void 0 : Oj(i, t);
|
|
10068
10068
|
},
|
|
10069
10069
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10070
10070
|
sx: {
|
|
@@ -10077,34 +10077,34 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10077
10077
|
f,
|
|
10078
10078
|
h,
|
|
10079
10079
|
_,
|
|
10080
|
-
|
|
10081
|
-
|
|
10080
|
+
Mj,
|
|
10081
|
+
jj,
|
|
10082
10082
|
S,
|
|
10083
10083
|
q,
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10084
|
+
Aj,
|
|
10085
|
+
Ej,
|
|
10086
|
+
kj,
|
|
10087
10087
|
w,
|
|
10088
10088
|
i,
|
|
10089
10089
|
t,
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
]),
|
|
10090
|
+
Tj,
|
|
10091
|
+
Oj,
|
|
10092
|
+
Ij,
|
|
10093
|
+
Lj,
|
|
10094
|
+
Rj
|
|
10095
|
+
]), Bj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10096
10096
|
t
|
|
10097
|
-
]),
|
|
10097
|
+
]), Vj = !Bj && !!(c && d), Hj = useJsonViewerStore((e2) => e2.keyRenderer), Uj = (0, import_react.useMemo)(() => ({
|
|
10098
10098
|
path: i,
|
|
10099
10099
|
inspect: K,
|
|
10100
|
-
setInspect:
|
|
10100
|
+
setInspect: gj,
|
|
10101
10101
|
value: t,
|
|
10102
10102
|
prevValue: n,
|
|
10103
10103
|
nestedIndex: a
|
|
10104
10104
|
}), [
|
|
10105
10105
|
K,
|
|
10106
10106
|
i,
|
|
10107
|
-
|
|
10107
|
+
gj,
|
|
10108
10108
|
t,
|
|
10109
10109
|
n,
|
|
10110
10110
|
a
|
|
@@ -10131,13 +10131,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10131
10131
|
opacity: 0.8
|
|
10132
10132
|
},
|
|
10133
10133
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10134
|
-
e2.isDefaultPrevented() ||
|
|
10134
|
+
e2.isDefaultPrevented() || Bj || gj((e3) => !e3);
|
|
10135
10135
|
}, [
|
|
10136
|
-
|
|
10137
|
-
|
|
10136
|
+
Bj,
|
|
10137
|
+
gj
|
|
10138
10138
|
]),
|
|
10139
10139
|
children: [
|
|
10140
|
-
|
|
10140
|
+
Vj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10141
10141
|
className: "data-key-toggle-expanded",
|
|
10142
10142
|
sx: {
|
|
10143
10143
|
fontSize: ".8rem",
|
|
@@ -10155,27 +10155,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10155
10155
|
}
|
|
10156
10156
|
}) : null,
|
|
10157
10157
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10158
|
-
ref:
|
|
10158
|
+
ref: Fj,
|
|
10159
10159
|
className: "data-key-key",
|
|
10160
10160
|
component: "span",
|
|
10161
|
-
children:
|
|
10161
|
+
children: Sj && O === 0 ? xj === false ? null : bj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10162
10162
|
children: [
|
|
10163
10163
|
'"',
|
|
10164
|
-
|
|
10164
|
+
xj,
|
|
10165
10165
|
'"'
|
|
10166
10166
|
]
|
|
10167
10167
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10168
|
-
children:
|
|
10169
|
-
}) :
|
|
10170
|
-
...
|
|
10171
|
-
}) : a === void 0 && (
|
|
10168
|
+
children: xj
|
|
10169
|
+
}) : Hj.when(Uj) ? (0, import_jsx_runtime.jsx)(Hj, {
|
|
10170
|
+
...Uj
|
|
10171
|
+
}) : a === void 0 && (Cj ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10172
10172
|
component: "span",
|
|
10173
10173
|
style: {
|
|
10174
|
-
color:
|
|
10175
|
-
userSelect:
|
|
10174
|
+
color: vj,
|
|
10175
|
+
userSelect: Cj ? "none" : "auto"
|
|
10176
10176
|
},
|
|
10177
10177
|
children: A
|
|
10178
|
-
}) :
|
|
10178
|
+
}) : bj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10179
10179
|
children: [
|
|
10180
10180
|
'"',
|
|
10181
10181
|
A,
|
|
@@ -10185,7 +10185,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10185
10185
|
children: A
|
|
10186
10186
|
}))
|
|
10187
10187
|
}),
|
|
10188
|
-
|
|
10188
|
+
Sj ? xj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10189
10189
|
className: "data-key-colon",
|
|
10190
10190
|
sx: {
|
|
10191
10191
|
mr: 0.5
|
|
@@ -10198,38 +10198,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10198
10198
|
".data-key-key:empty + &": {
|
|
10199
10199
|
display: "none"
|
|
10200
10200
|
},
|
|
10201
|
-
userSelect:
|
|
10201
|
+
userSelect: Cj ? "none" : "auto"
|
|
10202
10202
|
},
|
|
10203
10203
|
children: ":"
|
|
10204
10204
|
}),
|
|
10205
10205
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10206
|
-
...
|
|
10206
|
+
...Uj
|
|
10207
10207
|
}),
|
|
10208
|
-
I &&
|
|
10208
|
+
I && Vj && K && zj
|
|
10209
10209
|
]
|
|
10210
10210
|
}),
|
|
10211
10211
|
q && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10212
10212
|
path: i,
|
|
10213
10213
|
value: w,
|
|
10214
10214
|
setValue: E,
|
|
10215
|
-
abortEditing:
|
|
10216
|
-
commitEditing:
|
|
10215
|
+
abortEditing: Lj,
|
|
10216
|
+
commitEditing: Rj
|
|
10217
10217
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10218
|
-
...
|
|
10218
|
+
...Uj
|
|
10219
10219
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10220
10220
|
component: "span",
|
|
10221
10221
|
className: "data-value-fallback",
|
|
10222
10222
|
children: `fallback: ${t}`
|
|
10223
10223
|
}),
|
|
10224
10224
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10225
|
-
...
|
|
10225
|
+
...Uj
|
|
10226
10226
|
}),
|
|
10227
|
-
!o &&
|
|
10227
|
+
!o && yj && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10228
10228
|
children: ","
|
|
10229
10229
|
}),
|
|
10230
|
-
I &&
|
|
10231
|
-
I && !
|
|
10232
|
-
!I && q &&
|
|
10230
|
+
I && Vj && !K && zj,
|
|
10231
|
+
I && !Vj && zj,
|
|
10232
|
+
!I && q && zj
|
|
10233
10233
|
]
|
|
10234
10234
|
});
|
|
10235
10235
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -11070,17 +11070,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11070
11070
|
}
|
|
11071
11071
|
let _, v, y, S, w, E;
|
|
11072
11072
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11073
|
-
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11),
|
|
11073
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), gj = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), _j = n.filter(_temp15), Q = n.filter(_temp16), vj = n.filter(_temp17), $;
|
|
11074
11074
|
t[15] === s ? $ = t[16] : ($ = () => {
|
|
11075
11075
|
s.openApplication("scratchpad");
|
|
11076
11076
|
}, t[15] = s, t[16] = $);
|
|
11077
|
-
let
|
|
11077
|
+
let yj = $, bj = () => {
|
|
11078
11078
|
let t2 = [];
|
|
11079
|
-
if (
|
|
11080
|
-
let e3 =
|
|
11079
|
+
if (_j.length > 0 || Q.length > 0) {
|
|
11080
|
+
let e3 = _j.some(_temp18), n2 = !e3 && _j.some(_temp19);
|
|
11081
11081
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11082
11082
|
children: [
|
|
11083
|
-
|
|
11083
|
+
_j.map(_temp20),
|
|
11084
11084
|
Q.map(_temp21),
|
|
11085
11085
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11086
11086
|
size: "xs",
|
|
@@ -11112,7 +11112,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11112
11112
|
}),
|
|
11113
11113
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11114
11114
|
errors: [
|
|
11115
|
-
...
|
|
11115
|
+
..._j,
|
|
11116
11116
|
...Q
|
|
11117
11117
|
],
|
|
11118
11118
|
cellId: i
|
|
@@ -11274,7 +11274,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11274
11274
|
size: "xs",
|
|
11275
11275
|
variant: "link",
|
|
11276
11276
|
className: "my-2 font-normal mx-0 px-0",
|
|
11277
|
-
onClick:
|
|
11277
|
+
onClick: yj,
|
|
11278
11278
|
children: [
|
|
11279
11279
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11280
11280
|
className: "h-3"
|
|
@@ -11365,11 +11365,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11365
11365
|
children: U.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
11366
11366
|
})
|
|
11367
11367
|
]
|
|
11368
|
-
}, "strict-exception")),
|
|
11368
|
+
}, "strict-exception")), gj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11369
11369
|
children: [
|
|
11370
|
-
|
|
11370
|
+
gj.map(_temp32),
|
|
11371
11371
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11372
|
-
errors:
|
|
11372
|
+
errors: gj,
|
|
11373
11373
|
cellId: i
|
|
11374
11374
|
})
|
|
11375
11375
|
]
|
|
@@ -11389,23 +11389,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11389
11389
|
cellId: i
|
|
11390
11390
|
})
|
|
11391
11391
|
]
|
|
11392
|
-
}, "ancestor-stopped")),
|
|
11392
|
+
}, "ancestor-stopped")), vj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11393
11393
|
children: [
|
|
11394
|
-
|
|
11394
|
+
vj.map(_temp35),
|
|
11395
11395
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11396
|
-
errors:
|
|
11396
|
+
errors: vj,
|
|
11397
11397
|
cellId: i,
|
|
11398
11398
|
className: "mt-2.5"
|
|
11399
11399
|
})
|
|
11400
11400
|
]
|
|
11401
11401
|
}, "sql-errors")), t2;
|
|
11402
|
-
},
|
|
11403
|
-
t[17] !==
|
|
11404
|
-
className:
|
|
11402
|
+
}, xj = `font-code font-medium tracking-wide ${h}`, Sj;
|
|
11403
|
+
t[17] !== xj || t[18] !== c ? (Sj = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11404
|
+
className: xj,
|
|
11405
11405
|
children: c
|
|
11406
|
-
}), t[17] =
|
|
11407
|
-
let
|
|
11408
|
-
_ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
11406
|
+
}), t[17] = xj, t[18] = c, t[19] = Sj) : Sj = t[19];
|
|
11407
|
+
let Cj = Sj;
|
|
11408
|
+
_ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = Cj, v = "flex flex-col gap-8", y = bj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
11409
11409
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11410
11410
|
let O;
|
|
11411
11411
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12294,7 +12294,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12294
12294
|
}, [
|
|
12295
12295
|
h
|
|
12296
12296
|
]), k(() => {
|
|
12297
|
-
U(6,
|
|
12297
|
+
U(6, vj);
|
|
12298
12298
|
}, []);
|
|
12299
12299
|
let K = import_react.useMemo(() => ({
|
|
12300
12300
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12303,7 +12303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12303
12303
|
var _a2;
|
|
12304
12304
|
var a2, o2, s2;
|
|
12305
12305
|
if (!Object.is(n.current[e2], t2)) {
|
|
12306
|
-
if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1,
|
|
12306
|
+
if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1, _j);
|
|
12307
12307
|
else if (e2 === "value") {
|
|
12308
12308
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12309
12309
|
let e3 = document.getElementById(I);
|
|
@@ -12312,7 +12312,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12312
12312
|
if (U(7, () => {
|
|
12313
12313
|
var _a3;
|
|
12314
12314
|
n.current.selectedItemId = (_a3 = $()) == null ? void 0 : _a3.id, K.emit();
|
|
12315
|
-
}), i2 || U(5,
|
|
12315
|
+
}), i2 || U(5, vj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12316
12316
|
let e3 = t2 ?? "";
|
|
12317
12317
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12318
12318
|
return;
|
|
@@ -12324,7 +12324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12324
12324
|
emit: () => {
|
|
12325
12325
|
s.current.forEach((e2) => e2());
|
|
12326
12326
|
}
|
|
12327
|
-
}), []),
|
|
12327
|
+
}), []), gj = import_react.useMemo(() => ({
|
|
12328
12328
|
value: (e2, t2, i2) => {
|
|
12329
12329
|
var _a2;
|
|
12330
12330
|
t2 !== ((_a2 = o.current.get(e2)) == null ? void 0 : _a2.value) && (o.current.set(e2, {
|
|
@@ -12337,12 +12337,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12337
12337
|
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([
|
|
12338
12338
|
e2
|
|
12339
12339
|
]))), U(3, () => {
|
|
12340
|
-
Q(), J(), n.current.value ||
|
|
12340
|
+
Q(), J(), n.current.value || _j(), K.emit();
|
|
12341
12341
|
}), () => {
|
|
12342
12342
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12343
12343
|
let t3 = $();
|
|
12344
12344
|
U(4, () => {
|
|
12345
|
-
Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12345
|
+
Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && _j(), K.emit();
|
|
12346
12346
|
});
|
|
12347
12347
|
}),
|
|
12348
12348
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12375,7 +12375,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12375
12375
|
]);
|
|
12376
12376
|
});
|
|
12377
12377
|
let i2 = z.current;
|
|
12378
|
-
|
|
12378
|
+
yj().sort((t3, n2) => {
|
|
12379
12379
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12380
12380
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12381
12381
|
}).forEach((e3) => {
|
|
@@ -12387,9 +12387,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12387
12387
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12388
12388
|
});
|
|
12389
12389
|
}
|
|
12390
|
-
function
|
|
12390
|
+
function _j() {
|
|
12391
12391
|
var _a2;
|
|
12392
|
-
let e2 = (_a2 =
|
|
12392
|
+
let e2 = (_a2 = yj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12393
12393
|
K.setState("value", e2 || void 0);
|
|
12394
12394
|
}
|
|
12395
12395
|
function Q() {
|
|
@@ -12410,7 +12410,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12410
12410
|
}
|
|
12411
12411
|
n.current.filtered.count = e2;
|
|
12412
12412
|
}
|
|
12413
|
-
function
|
|
12413
|
+
function vj() {
|
|
12414
12414
|
var _a2, _b;
|
|
12415
12415
|
var e2;
|
|
12416
12416
|
let t2 = $();
|
|
@@ -12424,29 +12424,29 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12424
12424
|
var _a2;
|
|
12425
12425
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12426
12426
|
}
|
|
12427
|
-
function
|
|
12427
|
+
function yj() {
|
|
12428
12428
|
var _a2;
|
|
12429
12429
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12430
12430
|
}
|
|
12431
|
-
function
|
|
12432
|
-
let t2 =
|
|
12431
|
+
function bj(e2) {
|
|
12432
|
+
let t2 = yj()[e2];
|
|
12433
12433
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12434
12434
|
}
|
|
12435
|
-
function
|
|
12435
|
+
function xj(e2) {
|
|
12436
12436
|
var t2;
|
|
12437
|
-
let n2 = $(), i2 =
|
|
12437
|
+
let n2 = $(), i2 = yj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12438
12438
|
(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));
|
|
12439
12439
|
}
|
|
12440
|
-
function
|
|
12440
|
+
function Sj(e2) {
|
|
12441
12441
|
var _a2;
|
|
12442
12442
|
let t2 = (_a2 = $()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12443
12443
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12444
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12444
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : xj(e2);
|
|
12445
12445
|
}
|
|
12446
|
-
let
|
|
12447
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12448
|
-
},
|
|
12449
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12446
|
+
let Cj = () => bj(yj().length - 1), wj = (e2) => {
|
|
12447
|
+
e2.preventDefault(), e2.metaKey ? Cj() : e2.altKey ? Sj(1) : xj(1);
|
|
12448
|
+
}, Tj = (e2) => {
|
|
12449
|
+
e2.preventDefault(), e2.metaKey ? bj(0) : e2.altKey ? Sj(-1) : xj(-1);
|
|
12450
12450
|
};
|
|
12451
12451
|
return import_react.createElement(Primitive.div, {
|
|
12452
12452
|
ref: t,
|
|
@@ -12460,23 +12460,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12460
12460
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12461
12461
|
case "n":
|
|
12462
12462
|
case "j":
|
|
12463
|
-
E && e2.ctrlKey &&
|
|
12463
|
+
E && e2.ctrlKey && wj(e2);
|
|
12464
12464
|
break;
|
|
12465
12465
|
case "ArrowDown":
|
|
12466
|
-
|
|
12466
|
+
wj(e2);
|
|
12467
12467
|
break;
|
|
12468
12468
|
case "p":
|
|
12469
12469
|
case "k":
|
|
12470
|
-
E && e2.ctrlKey &&
|
|
12470
|
+
E && e2.ctrlKey && Tj(e2);
|
|
12471
12471
|
break;
|
|
12472
12472
|
case "ArrowUp":
|
|
12473
|
-
|
|
12473
|
+
Tj(e2);
|
|
12474
12474
|
break;
|
|
12475
12475
|
case "Home":
|
|
12476
|
-
e2.preventDefault(),
|
|
12476
|
+
e2.preventDefault(), bj(0);
|
|
12477
12477
|
break;
|
|
12478
12478
|
case "End":
|
|
12479
|
-
e2.preventDefault(),
|
|
12479
|
+
e2.preventDefault(), Cj();
|
|
12480
12480
|
break;
|
|
12481
12481
|
case "Enter": {
|
|
12482
12482
|
e2.preventDefault();
|
|
@@ -12490,13 +12490,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12490
12490
|
}
|
|
12491
12491
|
}, import_react.createElement("label", {
|
|
12492
12492
|
"cmdk-label": "",
|
|
12493
|
-
htmlFor:
|
|
12494
|
-
id:
|
|
12493
|
+
htmlFor: gj.inputId,
|
|
12494
|
+
id: gj.labelId,
|
|
12495
12495
|
style: Te
|
|
12496
12496
|
}, d), B(e, (e2) => import_react.createElement(de.Provider, {
|
|
12497
12497
|
value: K
|
|
12498
12498
|
}, import_react.createElement(ue$1.Provider, {
|
|
12499
|
-
value:
|
|
12499
|
+
value: gj
|
|
12500
12500
|
}, e2))));
|
|
12501
12501
|
}), he$1 = import_react.forwardRef((e, t) => {
|
|
12502
12502
|
var _a2;
|
|
@@ -16243,11 +16243,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16243
16243
|
}, U = [
|
|
16244
16244
|
n
|
|
16245
16245
|
], t[7] = n, t[8] = z, t[9] = U), (0, import_react.useEffect)(z, U);
|
|
16246
|
-
let K = d && !y ? false : _,
|
|
16247
|
-
return t[10] !==
|
|
16248
|
-
ref:
|
|
16246
|
+
let K = d && !y ? false : _, gj = d ? E : null, q = K ? i : a, J;
|
|
16247
|
+
return t[10] !== gj || t[11] !== q ? (J = (0, import_jsx_runtime.jsx)("div", {
|
|
16248
|
+
ref: gj,
|
|
16249
16249
|
children: q
|
|
16250
|
-
}), t[10] =
|
|
16250
|
+
}), t[10] = gj, t[11] = q, t[12] = J) : J = t[12], J;
|
|
16251
16251
|
};
|
|
16252
16252
|
var import_compiler_runtime$22 = require_compiler_runtime();
|
|
16253
16253
|
const DatePopover = (e) => {
|
|
@@ -18473,7 +18473,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18473
18473
|
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 }) {
|
|
18474
18474
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18475
18475
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18476
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel:
|
|
18476
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: gj, resizePanel: q, unregisterPanel: J } = E, _j = useUniqueId(s), Q = (0, import_react.useRef)({
|
|
18477
18477
|
callbacks: {
|
|
18478
18478
|
onCollapse: f,
|
|
18479
18479
|
onExpand: h,
|
|
@@ -18486,7 +18486,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18486
18486
|
maxSize: c,
|
|
18487
18487
|
minSize: d
|
|
18488
18488
|
},
|
|
18489
|
-
id:
|
|
18489
|
+
id: _j,
|
|
18490
18490
|
idIsFromProps: s !== void 0,
|
|
18491
18491
|
order: v
|
|
18492
18492
|
});
|
|
@@ -18496,16 +18496,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18496
18496
|
let { callbacks: e2, constraints: t2 } = Q.current, o2 = {
|
|
18497
18497
|
...t2
|
|
18498
18498
|
};
|
|
18499
|
-
Q.current.id =
|
|
18499
|
+
Q.current.id = _j, Q.current.idIsFromProps = s !== void 0, Q.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(Q.current, o2);
|
|
18500
18500
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18501
18501
|
let e2 = Q.current;
|
|
18502
|
-
return
|
|
18502
|
+
return gj(e2), () => {
|
|
18503
18503
|
J(e2);
|
|
18504
18504
|
};
|
|
18505
18505
|
}, [
|
|
18506
18506
|
v,
|
|
18507
|
-
|
|
18508
|
-
|
|
18507
|
+
_j,
|
|
18508
|
+
gj,
|
|
18509
18509
|
J
|
|
18510
18510
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
18511
18511
|
collapse: () => {
|
|
@@ -18515,7 +18515,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18515
18515
|
A(Q.current, e2);
|
|
18516
18516
|
},
|
|
18517
18517
|
getId() {
|
|
18518
|
-
return
|
|
18518
|
+
return _j;
|
|
18519
18519
|
},
|
|
18520
18520
|
getSize() {
|
|
18521
18521
|
return M(Q.current);
|
|
@@ -18534,24 +18534,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18534
18534
|
A,
|
|
18535
18535
|
M,
|
|
18536
18536
|
U,
|
|
18537
|
-
|
|
18537
|
+
_j,
|
|
18538
18538
|
q
|
|
18539
18539
|
]);
|
|
18540
|
-
let
|
|
18540
|
+
let vj = I(Q.current, a);
|
|
18541
18541
|
return (0, import_react.createElement)(S, {
|
|
18542
18542
|
...w,
|
|
18543
18543
|
children: e,
|
|
18544
18544
|
className: t,
|
|
18545
|
-
id:
|
|
18545
|
+
id: _j,
|
|
18546
18546
|
style: {
|
|
18547
|
-
...
|
|
18547
|
+
...vj,
|
|
18548
18548
|
...y
|
|
18549
18549
|
},
|
|
18550
18550
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
18551
18551
|
[DATA_ATTRIBUTES.panel]: "",
|
|
18552
18552
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
18553
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
18554
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
18553
|
+
[DATA_ATTRIBUTES.panelId]: _j,
|
|
18554
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + vj.flexGrow).toFixed(1)
|
|
18555
18555
|
});
|
|
18556
18556
|
}
|
|
18557
18557
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19288,7 +19288,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19288
19288
|
d
|
|
19289
19289
|
]), (0, import_react.useEffect)(() => {
|
|
19290
19290
|
});
|
|
19291
|
-
let
|
|
19291
|
+
let gj = (0, import_react.useCallback)((e2) => {
|
|
19292
19292
|
let { onLayout: t2 } = U.current, { layout: n2, panelDataArray: i2 } = K.current;
|
|
19293
19293
|
if (e2.constraints.collapsible) {
|
|
19294
19294
|
let a2 = i2.map((e3) => e3.constraints), { collapsedSize: o2 = 0, panelSize: s2, pivotIndices: c2 } = panelDataHelper(i2, e2, n2);
|
|
@@ -19324,7 +19324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19324
19324
|
}, []), J = (0, import_react.useCallback)((e2) => {
|
|
19325
19325
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19326
19326
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19327
|
-
}, []),
|
|
19327
|
+
}, []), _j = (0, import_react.useCallback)((e2, t2) => {
|
|
19328
19328
|
let { panelDataArray: n2 } = K.current;
|
|
19329
19329
|
return computePanelFlexBoxStyle({
|
|
19330
19330
|
defaultSize: t2,
|
|
@@ -19339,7 +19339,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19339
19339
|
]), Q = (0, import_react.useCallback)((e2) => {
|
|
19340
19340
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19341
19341
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19342
|
-
}, []),
|
|
19342
|
+
}, []), vj = (0, import_react.useCallback)((e2) => {
|
|
19343
19343
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19344
19344
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19345
19345
|
}, []), $ = (0, import_react.useCallback)((e2) => {
|
|
@@ -19374,7 +19374,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19374
19374
|
e2.layout = [];
|
|
19375
19375
|
};
|
|
19376
19376
|
}, []);
|
|
19377
|
-
let
|
|
19377
|
+
let yj = (0, import_react.useCallback)((e2) => {
|
|
19378
19378
|
let t2 = false, n2 = y.current;
|
|
19379
19379
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19380
19380
|
n3.preventDefault();
|
|
@@ -19392,7 +19392,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19392
19392
|
}), I2 = !compareLayouts(f2, A2);
|
|
19393
19393
|
(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));
|
|
19394
19394
|
};
|
|
19395
|
-
}, []),
|
|
19395
|
+
}, []), bj = (0, import_react.useCallback)((e2, t2) => {
|
|
19396
19396
|
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);
|
|
19397
19397
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19398
19398
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19404,12 +19404,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19404
19404
|
trigger: "imperative-api"
|
|
19405
19405
|
});
|
|
19406
19406
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19407
|
-
}, []),
|
|
19407
|
+
}, []), xj = (0, import_react.useCallback)((e2, t2) => {
|
|
19408
19408
|
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);
|
|
19409
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19409
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || bj(e2, s2) : h2 < f2 ? bj(e2, f2) : h2 > d2 && bj(e2, d2));
|
|
19410
19410
|
}, [
|
|
19411
|
-
|
|
19412
|
-
]),
|
|
19411
|
+
bj
|
|
19412
|
+
]), Sj = (0, import_react.useCallback)((e2, t2) => {
|
|
19413
19413
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19414
19414
|
if (!y.current) return;
|
|
19415
19415
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19421,49 +19421,49 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19421
19421
|
initialCursorPosition: o2,
|
|
19422
19422
|
initialLayout: i2
|
|
19423
19423
|
});
|
|
19424
|
-
}, []),
|
|
19424
|
+
}, []), Cj = (0, import_react.useCallback)(() => {
|
|
19425
19425
|
w(null);
|
|
19426
|
-
}, []),
|
|
19426
|
+
}, []), wj = (0, import_react.useCallback)((e2) => {
|
|
19427
19427
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19428
19428
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19429
19429
|
}, [
|
|
19430
19430
|
A
|
|
19431
|
-
]),
|
|
19432
|
-
collapsePanel:
|
|
19431
|
+
]), Tj = (0, import_react.useMemo)(() => ({
|
|
19432
|
+
collapsePanel: gj,
|
|
19433
19433
|
direction: i,
|
|
19434
19434
|
dragState: S,
|
|
19435
19435
|
expandPanel: q,
|
|
19436
19436
|
getPanelSize: J,
|
|
19437
|
-
getPanelStyle:
|
|
19437
|
+
getPanelStyle: _j,
|
|
19438
19438
|
groupId: v,
|
|
19439
19439
|
isPanelCollapsed: Q,
|
|
19440
|
-
isPanelExpanded:
|
|
19441
|
-
reevaluatePanelConstraints:
|
|
19440
|
+
isPanelExpanded: vj,
|
|
19441
|
+
reevaluatePanelConstraints: xj,
|
|
19442
19442
|
registerPanel: $,
|
|
19443
|
-
registerResizeHandle:
|
|
19444
|
-
resizePanel:
|
|
19445
|
-
startDragging:
|
|
19446
|
-
stopDragging:
|
|
19447
|
-
unregisterPanel:
|
|
19443
|
+
registerResizeHandle: yj,
|
|
19444
|
+
resizePanel: bj,
|
|
19445
|
+
startDragging: Sj,
|
|
19446
|
+
stopDragging: Cj,
|
|
19447
|
+
unregisterPanel: wj,
|
|
19448
19448
|
panelGroupElement: y.current
|
|
19449
19449
|
}), [
|
|
19450
|
-
|
|
19450
|
+
gj,
|
|
19451
19451
|
S,
|
|
19452
19452
|
i,
|
|
19453
19453
|
q,
|
|
19454
19454
|
J,
|
|
19455
|
-
|
|
19455
|
+
_j,
|
|
19456
19456
|
v,
|
|
19457
19457
|
Q,
|
|
19458
|
-
|
|
19459
|
-
|
|
19458
|
+
vj,
|
|
19459
|
+
xj,
|
|
19460
19460
|
$,
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
]),
|
|
19461
|
+
yj,
|
|
19462
|
+
bj,
|
|
19463
|
+
Sj,
|
|
19464
|
+
Cj,
|
|
19465
|
+
wj
|
|
19466
|
+
]), Ej = {
|
|
19467
19467
|
display: "flex",
|
|
19468
19468
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19469
19469
|
height: "100%",
|
|
@@ -19471,7 +19471,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19471
19471
|
width: "100%"
|
|
19472
19472
|
};
|
|
19473
19473
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19474
|
-
value:
|
|
19474
|
+
value: Tj
|
|
19475
19475
|
}, (0, import_react.createElement)(h, {
|
|
19476
19476
|
..._,
|
|
19477
19477
|
children: t,
|
|
@@ -19479,7 +19479,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19479
19479
|
id: o,
|
|
19480
19480
|
ref: y,
|
|
19481
19481
|
style: {
|
|
19482
|
-
...
|
|
19482
|
+
...Ej,
|
|
19483
19483
|
...f
|
|
19484
19484
|
},
|
|
19485
19485
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -19556,31 +19556,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19556
19556
|
});
|
|
19557
19557
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
19558
19558
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
19559
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O,
|
|
19559
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, gj = useUniqueId(a), [q, J] = (0, import_react.useState)("inactive"), [_j, Q] = (0, import_react.useState)(false), [vj, $] = (0, import_react.useState)(null), yj = (0, import_react.useRef)({
|
|
19560
19560
|
state: q
|
|
19561
19561
|
});
|
|
19562
19562
|
useIsomorphicLayoutEffect$1(() => {
|
|
19563
|
-
|
|
19563
|
+
yj.current.state = q;
|
|
19564
19564
|
}), (0, import_react.useEffect)(() => {
|
|
19565
19565
|
if (n) $(null);
|
|
19566
19566
|
else {
|
|
19567
|
-
let e2 = I(
|
|
19567
|
+
let e2 = I(gj);
|
|
19568
19568
|
$(() => e2);
|
|
19569
19569
|
}
|
|
19570
19570
|
}, [
|
|
19571
19571
|
n,
|
|
19572
|
-
|
|
19572
|
+
gj,
|
|
19573
19573
|
I
|
|
19574
19574
|
]);
|
|
19575
|
-
let
|
|
19575
|
+
let bj = (i == null ? void 0 : i.coarse) ?? 15, xj = (i == null ? void 0 : i.fine) ?? 5;
|
|
19576
19576
|
(0, import_react.useEffect)(() => {
|
|
19577
|
-
if (n ||
|
|
19577
|
+
if (n || vj == null) return;
|
|
19578
19578
|
let e2 = w.current;
|
|
19579
19579
|
assert(e2, "Element ref not attached");
|
|
19580
19580
|
let t2 = false;
|
|
19581
|
-
return registerResizeHandle(
|
|
19582
|
-
coarse:
|
|
19583
|
-
fine:
|
|
19581
|
+
return registerResizeHandle(gj, e2, A, {
|
|
19582
|
+
coarse: bj,
|
|
19583
|
+
fine: xj
|
|
19584
19584
|
}, (e3, n2, i2) => {
|
|
19585
19585
|
if (!n2) {
|
|
19586
19586
|
J("inactive");
|
|
@@ -19588,14 +19588,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19588
19588
|
}
|
|
19589
19589
|
switch (e3) {
|
|
19590
19590
|
case "down": {
|
|
19591
|
-
J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(
|
|
19591
|
+
J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(gj, i2);
|
|
19592
19592
|
let { onDragging: e4, onPointerDown: n3 } = E.current;
|
|
19593
19593
|
e4 == null ? void 0 : e4(true), n3 == null ? void 0 : n3();
|
|
19594
19594
|
break;
|
|
19595
19595
|
}
|
|
19596
19596
|
case "move": {
|
|
19597
|
-
let { state: e4 } =
|
|
19598
|
-
t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
19597
|
+
let { state: e4 } = yj.current;
|
|
19598
|
+
t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'), vj(i2);
|
|
19599
19599
|
break;
|
|
19600
19600
|
}
|
|
19601
19601
|
case "up": {
|
|
@@ -19607,22 +19607,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19607
19607
|
}
|
|
19608
19608
|
});
|
|
19609
19609
|
}, [
|
|
19610
|
-
|
|
19610
|
+
bj,
|
|
19611
19611
|
A,
|
|
19612
19612
|
n,
|
|
19613
|
-
|
|
19613
|
+
xj,
|
|
19614
19614
|
I,
|
|
19615
|
-
|
|
19616
|
-
|
|
19615
|
+
gj,
|
|
19616
|
+
vj,
|
|
19617
19617
|
z,
|
|
19618
19618
|
U
|
|
19619
19619
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
19620
19620
|
disabled: n,
|
|
19621
|
-
handleId:
|
|
19622
|
-
resizeHandler:
|
|
19621
|
+
handleId: gj,
|
|
19622
|
+
resizeHandler: vj,
|
|
19623
19623
|
panelGroupElement: K
|
|
19624
19624
|
});
|
|
19625
|
-
let
|
|
19625
|
+
let Sj = {
|
|
19626
19626
|
touchAction: "none",
|
|
19627
19627
|
userSelect: "none"
|
|
19628
19628
|
};
|
|
@@ -19640,16 +19640,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19640
19640
|
ref: w,
|
|
19641
19641
|
role: "separator",
|
|
19642
19642
|
style: {
|
|
19643
|
-
...
|
|
19643
|
+
...Sj,
|
|
19644
19644
|
..._
|
|
19645
19645
|
},
|
|
19646
19646
|
tabIndex: v,
|
|
19647
19647
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
19648
19648
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
19649
19649
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
19650
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" :
|
|
19650
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" : _j ? "keyboard" : void 0,
|
|
19651
19651
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
19652
|
-
[DATA_ATTRIBUTES.resizeHandleId]:
|
|
19652
|
+
[DATA_ATTRIBUTES.resizeHandleId]: gj,
|
|
19653
19653
|
[DATA_ATTRIBUTES.resizeHandleState]: q
|
|
19654
19654
|
});
|
|
19655
19655
|
}
|
|
@@ -21580,7 +21580,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21580
21580
|
})
|
|
21581
21581
|
]
|
|
21582
21582
|
}, e2.id);
|
|
21583
|
-
},
|
|
21583
|
+
}, gj = t.length <= 4, q = t.length + (gj ? 1 : 0);
|
|
21584
21584
|
return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
|
|
21585
21585
|
tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
21586
21586
|
onKeyDown: w,
|
|
@@ -22379,7 +22379,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22379
22379
|
filename: i2.filename
|
|
22380
22380
|
};
|
|
22381
22381
|
}, t[5] = e, t[6] = v);
|
|
22382
|
-
let w = v, E, O, A, M, I, z, U, K,
|
|
22382
|
+
let w = v, E, O, A, M, I, z, U, K, gj, q, J, _j, Q;
|
|
22383
22383
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
|
|
22384
22384
|
let e2 = async (t2) => {
|
|
22385
22385
|
let n2 = await w(t2, () => {
|
|
@@ -22426,10 +22426,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22426
22426
|
content: "Export",
|
|
22427
22427
|
open: s2,
|
|
22428
22428
|
children: c2
|
|
22429
|
-
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent,
|
|
22429
|
+
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, gj = "bottom", q = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
22430
22430
|
className: "text-xs text-muted-foreground",
|
|
22431
22431
|
children: "Download"
|
|
22432
|
-
}), t[29] = J) : J = t[29],
|
|
22432
|
+
}), t[29] = J) : J = t[29], _j = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
22433
22433
|
onSelect: () => {
|
|
22434
22434
|
e2(t2.format);
|
|
22435
22435
|
},
|
|
@@ -22482,30 +22482,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22482
22482
|
]
|
|
22483
22483
|
})
|
|
22484
22484
|
]
|
|
22485
|
-
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] =
|
|
22486
|
-
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18],
|
|
22487
|
-
let
|
|
22488
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !==
|
|
22489
|
-
side:
|
|
22485
|
+
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = gj, t[20] = q, t[21] = J, t[22] = _j, t[23] = Q;
|
|
22486
|
+
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], gj = t[19], q = t[20], J = t[21], _j = t[22], Q = t[23];
|
|
22487
|
+
let vj;
|
|
22488
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== gj || t[36] !== q || t[37] !== J || t[38] !== _j || t[39] !== Q ? (vj = (0, import_jsx_runtime.jsxs)(E, {
|
|
22489
|
+
side: gj,
|
|
22490
22490
|
className: q,
|
|
22491
22491
|
children: [
|
|
22492
22492
|
J,
|
|
22493
|
-
|
|
22493
|
+
_j,
|
|
22494
22494
|
Q,
|
|
22495
22495
|
A,
|
|
22496
22496
|
M
|
|
22497
22497
|
]
|
|
22498
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] =
|
|
22498
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = gj, t[36] = q, t[37] = J, t[38] = _j, t[39] = Q, t[40] = vj) : vj = t[40];
|
|
22499
22499
|
let $;
|
|
22500
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
22500
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== vj ? ($ = (0, import_jsx_runtime.jsxs)(O, {
|
|
22501
22501
|
modal: I,
|
|
22502
22502
|
open: z,
|
|
22503
22503
|
onOpenChange: U,
|
|
22504
22504
|
children: [
|
|
22505
22505
|
K,
|
|
22506
|
-
|
|
22506
|
+
vj
|
|
22507
22507
|
]
|
|
22508
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
22508
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = vj, t[47] = $) : $ = t[47], $;
|
|
22509
22509
|
};
|
|
22510
22510
|
function fetchJson(e) {
|
|
22511
22511
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -22596,22 +22596,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22596
22596
|
]
|
|
22597
22597
|
}) : null;
|
|
22598
22598
|
};
|
|
22599
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange:
|
|
22600
|
-
let [
|
|
22599
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: gj, getRowIds: q, enableSearch: J = false, searchQuery: _j, onSearchQueryChange: Q, showFilters: vj = false, filters: $, onFiltersChange: yj, reloading: bj, freezeColumnsLeft: xj, freezeColumnsRight: Sj, toggleDisplayHeader: Cj, showChartBuilder: wj, isChartBuilderOpen: Tj, showPageSizeSelector: Ej, showTableExplorer: Dj, togglePanel: Oj, isPanelOpen: kj, isAnyPanelOpen: Aj, viewedRowIdx: jj, onViewedRowChange: Mj }) => {
|
|
22600
|
+
let [Nj, Pj] = import_react.useState(false), { locale: Fj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Ij, setColumnPinning: Lj } = useColumnPinning(xj, Sj);
|
|
22601
22601
|
import_react.useEffect(() => {
|
|
22602
22602
|
let e2;
|
|
22603
|
-
return
|
|
22604
|
-
|
|
22605
|
-
}, 300) :
|
|
22603
|
+
return bj ? e2 = setTimeout(() => {
|
|
22604
|
+
Pj(true);
|
|
22605
|
+
}, 300) : Pj(false), () => {
|
|
22606
22606
|
e2 && clearTimeout(e2);
|
|
22607
22607
|
};
|
|
22608
22608
|
}, [
|
|
22609
|
-
|
|
22609
|
+
bj
|
|
22610
22610
|
]);
|
|
22611
|
-
function
|
|
22611
|
+
function Rj(e2, t2) {
|
|
22612
22612
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
22613
22613
|
}
|
|
22614
|
-
let
|
|
22614
|
+
let zj = useReactTable({
|
|
22615
22615
|
_features: [
|
|
22616
22616
|
ColumnPinning,
|
|
22617
22617
|
ColumnWrappingFeature,
|
|
@@ -22635,11 +22635,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22635
22635
|
getRowId: (e2, t2) => {
|
|
22636
22636
|
let n2 = getStableRowId(e2);
|
|
22637
22637
|
if (n2) return n2;
|
|
22638
|
-
let i2 =
|
|
22638
|
+
let i2 = Rj(e2, t2);
|
|
22639
22639
|
return String(i2);
|
|
22640
22640
|
}
|
|
22641
22641
|
} : {},
|
|
22642
|
-
locale:
|
|
22642
|
+
locale: Fj,
|
|
22643
22643
|
manualPagination: z,
|
|
22644
22644
|
getPaginationRowModel: getPaginationRowModel(),
|
|
22645
22645
|
...v ? {
|
|
@@ -22649,16 +22649,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22649
22649
|
enableMultiSort: true,
|
|
22650
22650
|
getSortedRowModel: getSortedRowModel(),
|
|
22651
22651
|
manualFiltering: true,
|
|
22652
|
-
enableColumnFilters:
|
|
22652
|
+
enableColumnFilters: vj,
|
|
22653
22653
|
getFilteredRowModel: getFilteredRowModel(),
|
|
22654
|
-
onColumnFiltersChange:
|
|
22654
|
+
onColumnFiltersChange: yj,
|
|
22655
22655
|
onRowSelectionChange: K,
|
|
22656
|
-
onCellSelectionChange:
|
|
22656
|
+
onCellSelectionChange: gj,
|
|
22657
22657
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
22658
22658
|
enableMultiCellSelection: c === "multi-cell",
|
|
22659
|
-
onColumnPinningChange:
|
|
22659
|
+
onColumnPinningChange: Lj,
|
|
22660
22660
|
enableFocusRow: true,
|
|
22661
|
-
onFocusRowChange:
|
|
22661
|
+
onFocusRowChange: Mj,
|
|
22662
22662
|
state: {
|
|
22663
22663
|
..._ ? {
|
|
22664
22664
|
sorting: _
|
|
@@ -22675,20 +22675,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22675
22675
|
rowSelection: y ?? {},
|
|
22676
22676
|
cellSelection: S ?? [],
|
|
22677
22677
|
cellStyling: w,
|
|
22678
|
-
columnPinning:
|
|
22678
|
+
columnPinning: Ij,
|
|
22679
22679
|
cellHoverTemplate: E,
|
|
22680
22680
|
cellHoverTexts: O ?? {}
|
|
22681
22681
|
}
|
|
22682
|
-
}),
|
|
22682
|
+
}), Bj = (kj == null ? void 0 : kj(PANEL_TYPES.ROW_VIEWER)) ?? false, Vj = !U && o.length > 100, Hj = useScrollContainerHeight({
|
|
22683
22683
|
maxHeight: n,
|
|
22684
|
-
virtualize:
|
|
22684
|
+
virtualize: Vj
|
|
22685
22685
|
});
|
|
22686
22686
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
22687
22687
|
className: cn(e, "flex flex-col space-y-1"),
|
|
22688
22688
|
children: [
|
|
22689
22689
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
22690
22690
|
filters: $,
|
|
22691
|
-
table:
|
|
22691
|
+
table: zj
|
|
22692
22692
|
}),
|
|
22693
22693
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
22694
22694
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -22697,32 +22697,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22697
22697
|
children: [
|
|
22698
22698
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
22699
22699
|
enableSearch: J,
|
|
22700
|
-
searchQuery:
|
|
22700
|
+
searchQuery: _j,
|
|
22701
22701
|
onSearchQueryChange: Q,
|
|
22702
|
-
reloading:
|
|
22703
|
-
showChartBuilder:
|
|
22704
|
-
isChartBuilderOpen:
|
|
22705
|
-
toggleDisplayHeader:
|
|
22706
|
-
showTableExplorer:
|
|
22707
|
-
togglePanel:
|
|
22708
|
-
isAnyPanelOpen:
|
|
22702
|
+
reloading: bj,
|
|
22703
|
+
showChartBuilder: wj,
|
|
22704
|
+
isChartBuilderOpen: Tj,
|
|
22705
|
+
toggleDisplayHeader: Cj,
|
|
22706
|
+
showTableExplorer: Dj,
|
|
22707
|
+
togglePanel: Oj,
|
|
22708
|
+
isAnyPanelOpen: Aj,
|
|
22709
22709
|
downloadAs: I
|
|
22710
22710
|
}),
|
|
22711
22711
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
22712
22712
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
22713
|
-
ref:
|
|
22713
|
+
ref: Hj,
|
|
22714
22714
|
children: [
|
|
22715
|
-
|
|
22715
|
+
Nj && (0, import_jsx_runtime.jsx)("thead", {
|
|
22716
22716
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
22717
22717
|
}),
|
|
22718
|
-
renderTableHeader(
|
|
22718
|
+
renderTableHeader(zj, Vj || !!n),
|
|
22719
22719
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
22720
|
-
table:
|
|
22720
|
+
table: zj,
|
|
22721
22721
|
columns: i,
|
|
22722
|
-
rowViewerPanelOpen:
|
|
22723
|
-
getRowIndex:
|
|
22724
|
-
viewedRowIdx:
|
|
22725
|
-
virtualize:
|
|
22722
|
+
rowViewerPanelOpen: Bj,
|
|
22723
|
+
getRowIndex: Rj,
|
|
22724
|
+
viewedRowIdx: jj,
|
|
22725
|
+
virtualize: Vj
|
|
22726
22726
|
})
|
|
22727
22727
|
]
|
|
22728
22728
|
}),
|
|
@@ -22733,10 +22733,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22733
22733
|
pagination: U,
|
|
22734
22734
|
selection: c,
|
|
22735
22735
|
onRowSelectionChange: K,
|
|
22736
|
-
table:
|
|
22736
|
+
table: zj,
|
|
22737
22737
|
getRowIds: q,
|
|
22738
|
-
showPageSizeSelector:
|
|
22739
|
-
tableLoading:
|
|
22738
|
+
showPageSizeSelector: Ej,
|
|
22739
|
+
tableLoading: bj
|
|
22740
22740
|
})
|
|
22741
22741
|
]
|
|
22742
22742
|
})
|
|
@@ -22771,7 +22771,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22771
22771
|
setPaginationState: a,
|
|
22772
22772
|
wrapperClassName: "h-full justify-between pb-1 px-1",
|
|
22773
22773
|
pagination: true,
|
|
22774
|
-
className: "rounded-none border-b flex overflow-hidden",
|
|
22774
|
+
className: "rounded-none border-b flex flex-col overflow-hidden",
|
|
22775
22775
|
rowSelection: Objects.EMPTY
|
|
22776
22776
|
});
|
|
22777
22777
|
};
|
|
@@ -22824,69 +22824,69 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22824
22824
|
${_}`,
|
|
22825
22825
|
triggerImmediately: e2
|
|
22826
22826
|
});
|
|
22827
|
-
}, [
|
|
22828
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22829
|
-
let Q = f ? "rotate-180" : "rotate-0",
|
|
22830
|
-
t[11] === Q ?
|
|
22827
|
+
}, [gj, q] = _.split(":", 2), J = f ? KEY : "", _j;
|
|
22828
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_j = () => h(_temp$1), t[10] = _j) : _j = t[10];
|
|
22829
|
+
let Q = f ? "rotate-180" : "rotate-0", vj;
|
|
22830
|
+
t[11] === Q ? vj = t[12] : (vj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", Q), t[11] = Q, t[12] = vj);
|
|
22831
22831
|
let $;
|
|
22832
|
-
t[13] ===
|
|
22833
|
-
className:
|
|
22834
|
-
}), t[13] =
|
|
22835
|
-
let
|
|
22836
|
-
t[15] ===
|
|
22832
|
+
t[13] === vj ? $ = t[14] : ($ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
22833
|
+
className: vj
|
|
22834
|
+
}), t[13] = vj, t[14] = $);
|
|
22835
|
+
let yj = gj || "Error", bj;
|
|
22836
|
+
t[15] === yj ? bj = t[16] : (bj = (0, import_jsx_runtime.jsxs)("span", {
|
|
22837
22837
|
className: "text-destructive",
|
|
22838
22838
|
children: [
|
|
22839
|
-
|
|
22839
|
+
yj,
|
|
22840
22840
|
":"
|
|
22841
22841
|
]
|
|
22842
|
-
}), t[15] =
|
|
22843
|
-
let
|
|
22844
|
-
t[17] !== q || t[18] !==
|
|
22842
|
+
}), t[15] = yj, t[16] = bj);
|
|
22843
|
+
let xj;
|
|
22844
|
+
t[17] !== q || t[18] !== bj ? (xj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22845
22845
|
className: "text-sm inline font-mono",
|
|
22846
22846
|
children: [
|
|
22847
|
-
|
|
22847
|
+
bj,
|
|
22848
22848
|
" ",
|
|
22849
22849
|
q
|
|
22850
22850
|
]
|
|
22851
|
-
}), t[17] = q, t[18] =
|
|
22852
|
-
let
|
|
22853
|
-
t[20] !==
|
|
22851
|
+
}), t[17] = q, t[18] = bj, t[19] = xj) : xj = t[19];
|
|
22852
|
+
let Sj;
|
|
22853
|
+
t[20] !== xj || t[21] !== $ ? (Sj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22854
22854
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
22855
|
-
onClick:
|
|
22855
|
+
onClick: _j,
|
|
22856
22856
|
children: [
|
|
22857
22857
|
$,
|
|
22858
|
-
|
|
22858
|
+
xj
|
|
22859
22859
|
]
|
|
22860
|
-
}), t[20] =
|
|
22861
|
-
let
|
|
22862
|
-
t[23] === c ?
|
|
22860
|
+
}), t[20] = xj, t[21] = $, t[22] = Sj) : Sj = t[22];
|
|
22861
|
+
let Cj;
|
|
22862
|
+
t[23] === c ? Cj = t[24] : (Cj = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
22863
22863
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
22864
22864
|
children: c
|
|
22865
|
-
}), t[23] = c, t[24] =
|
|
22866
|
-
let
|
|
22867
|
-
t[25] !==
|
|
22865
|
+
}), t[23] = c, t[24] = Cj);
|
|
22866
|
+
let wj;
|
|
22867
|
+
t[25] !== Sj || t[26] !== Cj ? (wj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
22868
22868
|
value: KEY,
|
|
22869
22869
|
className: "border-none",
|
|
22870
22870
|
children: [
|
|
22871
|
-
|
|
22872
|
-
|
|
22871
|
+
Sj,
|
|
22872
|
+
Cj
|
|
22873
22873
|
]
|
|
22874
|
-
}), t[25] =
|
|
22875
|
-
let
|
|
22876
|
-
t[28] !==
|
|
22874
|
+
}), t[25] = Sj, t[26] = Cj, t[27] = wj) : wj = t[27];
|
|
22875
|
+
let Tj;
|
|
22876
|
+
t[28] !== wj || t[29] !== J ? (Tj = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
22877
22877
|
type: "single",
|
|
22878
22878
|
collapsible: true,
|
|
22879
22879
|
value: J,
|
|
22880
|
-
children:
|
|
22881
|
-
}), t[28] =
|
|
22882
|
-
let
|
|
22883
|
-
t[31] !== K || t[32] !== z ? (
|
|
22880
|
+
children: wj
|
|
22881
|
+
}), t[28] = wj, t[29] = J, t[30] = Tj) : Tj = t[30];
|
|
22882
|
+
let Ej;
|
|
22883
|
+
t[31] !== K || t[32] !== z ? (Ej = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
22884
22884
|
tooltip: "Fix with AI",
|
|
22885
22885
|
openPrompt: () => K(false),
|
|
22886
22886
|
applyAutofix: () => K(true)
|
|
22887
|
-
}), t[31] = K, t[32] = z, t[33] =
|
|
22888
|
-
let
|
|
22889
|
-
t[34] !== A || t[35] !== E ? (
|
|
22887
|
+
}), t[31] = K, t[32] = z, t[33] = Ej) : Ej = t[33];
|
|
22888
|
+
let Oj;
|
|
22889
|
+
t[34] !== A || t[35] !== E ? (Oj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
22890
22890
|
content: "Attach pdb to the exception point.",
|
|
22891
22891
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
22892
22892
|
size: "xs",
|
|
@@ -22903,9 +22903,9 @@ ${_}`,
|
|
|
22903
22903
|
"Launch debugger"
|
|
22904
22904
|
]
|
|
22905
22905
|
})
|
|
22906
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
22907
|
-
let
|
|
22908
|
-
t[37] !== _ || t[38] !== i ? (
|
|
22906
|
+
}), t[34] = A, t[35] = E, t[36] = Oj) : Oj = t[36];
|
|
22907
|
+
let Mj;
|
|
22908
|
+
t[37] !== _ || t[38] !== i ? (Mj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
22909
22909
|
children: [
|
|
22910
22910
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
22911
22911
|
asChild: true,
|
|
@@ -22973,24 +22973,24 @@ ${_}`,
|
|
|
22973
22973
|
]
|
|
22974
22974
|
})
|
|
22975
22975
|
]
|
|
22976
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
22977
|
-
let
|
|
22978
|
-
t[40] !==
|
|
22976
|
+
}), t[37] = _, t[38] = i, t[39] = Mj) : Mj = t[39];
|
|
22977
|
+
let Nj;
|
|
22978
|
+
t[40] !== Ej || t[41] !== Oj || t[42] !== Mj ? (Nj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22979
22979
|
className: "flex gap-2",
|
|
22980
22980
|
children: [
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22981
|
+
Ej,
|
|
22982
|
+
Oj,
|
|
22983
|
+
Mj
|
|
22984
22984
|
]
|
|
22985
|
-
}), t[40] =
|
|
22986
|
-
let
|
|
22987
|
-
return t[44] !==
|
|
22985
|
+
}), t[40] = Ej, t[41] = Oj, t[42] = Mj, t[43] = Nj) : Nj = t[43];
|
|
22986
|
+
let Pj;
|
|
22987
|
+
return t[44] !== Tj || t[45] !== Nj ? (Pj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22988
22988
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
22989
22989
|
children: [
|
|
22990
|
-
|
|
22991
|
-
|
|
22990
|
+
Tj,
|
|
22991
|
+
Nj
|
|
22992
22992
|
]
|
|
22993
|
-
}), t[44] =
|
|
22993
|
+
}), t[44] = Tj, t[45] = Nj, t[46] = Pj) : Pj = t[46], Pj;
|
|
22994
22994
|
};
|
|
22995
22995
|
function lastLine(e) {
|
|
22996
22996
|
var _a2, _b;
|
|
@@ -23556,7 +23556,7 @@ ${_}`,
|
|
|
23556
23556
|
}), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
|
|
23557
23557
|
};
|
|
23558
23558
|
JsonOutput = (0, import_react.memo)((e) => {
|
|
23559
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
23559
|
+
let t = (0, import_compiler_runtime$1.c)(24), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
|
|
23560
23560
|
d === "auto" && (d = inferBestFormat(n));
|
|
23561
23561
|
let v;
|
|
23562
23562
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
@@ -23572,10 +23572,10 @@ ${_}`,
|
|
|
23572
23572
|
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i2 = {
|
|
23573
23573
|
backgroundColor: "transparent"
|
|
23574
23574
|
}, t[3] = i2) : i2 = t[3];
|
|
23575
|
-
let o2 = y[h], s2;
|
|
23576
|
-
t[4] === n ?
|
|
23577
|
-
let
|
|
23578
|
-
return t[6] !== n || t[7] !== f || t[8] !== e2 || t[9] !== o2 || t[10] !== s2 || t[11] !== _ ? (
|
|
23575
|
+
let o2 = y[h], s2 = h === "python" ? keyRenderer : void 0, d2;
|
|
23576
|
+
t[4] === n ? d2 = t[5] : (d2 = determineMaxDisplayLength(n), t[4] = n, t[5] = d2);
|
|
23577
|
+
let v2;
|
|
23578
|
+
return t[6] !== n || t[7] !== f || t[8] !== e2 || t[9] !== o2 || t[10] !== s2 || t[11] !== d2 || t[12] !== _ ? (v2 = (0, import_jsx_runtime.jsx)(JsonViewer, {
|
|
23579
23579
|
className: e2,
|
|
23580
23580
|
rootName: f,
|
|
23581
23581
|
theme: _,
|
|
@@ -23584,29 +23584,30 @@ ${_}`,
|
|
|
23584
23584
|
style: i2,
|
|
23585
23585
|
collapseStringsAfterLength: COLLAPSED_TEXT_LENGTH,
|
|
23586
23586
|
valueTypes: o2,
|
|
23587
|
+
keyRenderer: s2,
|
|
23587
23588
|
groupArraysAfterLength: 2 ** 53 - 1,
|
|
23588
23589
|
enableClipboard: false,
|
|
23589
|
-
maxDisplayLength:
|
|
23590
|
-
}), t[6] = n, t[7] = f, t[8] = e2, t[9] = o2, t[10] = s2, t[11] =
|
|
23590
|
+
maxDisplayLength: d2
|
|
23591
|
+
}), t[6] = n, t[7] = f, t[8] = e2, t[9] = o2, t[10] = s2, t[11] = d2, t[12] = _, t[13] = v2) : v2 = t[13], v2;
|
|
23591
23592
|
}
|
|
23592
23593
|
case "raw": {
|
|
23593
23594
|
let e2;
|
|
23594
|
-
t[
|
|
23595
|
+
t[14] === n ? e2 = t[15] : (e2 = JSON.stringify(n, null, 2), t[14] = n, t[15] = e2);
|
|
23595
23596
|
let i2;
|
|
23596
|
-
return t[
|
|
23597
|
+
return t[16] !== c || t[17] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
|
|
23597
23598
|
className: c,
|
|
23598
23599
|
children: e2
|
|
23599
|
-
}), t[
|
|
23600
|
+
}), t[16] = c, t[17] = e2, t[18] = i2) : i2 = t[18], i2;
|
|
23600
23601
|
}
|
|
23601
23602
|
default: {
|
|
23602
23603
|
logNever(d);
|
|
23603
23604
|
let e2;
|
|
23604
|
-
t[
|
|
23605
|
+
t[19] === n ? e2 = t[20] : (e2 = JSON.stringify(n, null, 2), t[19] = n, t[20] = e2);
|
|
23605
23606
|
let i2;
|
|
23606
|
-
return t[
|
|
23607
|
+
return t[21] !== c || t[22] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
|
|
23607
23608
|
className: c,
|
|
23608
23609
|
children: e2
|
|
23609
|
-
}), t[
|
|
23610
|
+
}), t[21] = c, t[22] = e2, t[23] = i2) : i2 = t[23], i2;
|
|
23610
23611
|
}
|
|
23611
23612
|
}
|
|
23612
23613
|
});
|
|
@@ -23669,11 +23670,11 @@ ${_}`,
|
|
|
23669
23670
|
"text/plain+bigint:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23670
23671
|
children: e
|
|
23671
23672
|
}),
|
|
23672
|
-
"text/plain+set:": (e) => (0, import_jsx_runtime.
|
|
23673
|
-
children:
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23673
|
+
"text/plain+set:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23674
|
+
children: formatSetPayload(e)
|
|
23675
|
+
}),
|
|
23676
|
+
"text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23677
|
+
children: formatFrozensetPayload(e)
|
|
23677
23678
|
}),
|
|
23678
23679
|
"text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23679
23680
|
children: e
|
|
@@ -23806,12 +23807,115 @@ ${_}`,
|
|
|
23806
23807
|
children: e
|
|
23807
23808
|
});
|
|
23808
23809
|
}
|
|
23809
|
-
var
|
|
23810
|
+
var KEY_ENCODED_PREFIX = "text/plain+";
|
|
23811
|
+
function formatTuplePayload(e) {
|
|
23812
|
+
let t = JSON.parse(e), n = t.map((e2) => JSON.stringify(e2)).join(", ");
|
|
23813
|
+
return t.length === 0 ? "()" : t.length === 1 ? `(${n},)` : `(${n})`;
|
|
23814
|
+
}
|
|
23815
|
+
function formatFrozensetPayload(e) {
|
|
23816
|
+
let t = JSON.parse(e);
|
|
23817
|
+
return t.length === 0 ? "frozenset()" : `frozenset({${t.map((e2) => JSON.stringify(e2)).join(", ")}})`;
|
|
23818
|
+
}
|
|
23819
|
+
function formatSetPayload(e) {
|
|
23820
|
+
try {
|
|
23821
|
+
let t = JSON.parse(e);
|
|
23822
|
+
return t.length === 0 ? "set()" : `{${t.map((e2) => JSON.stringify(e2)).join(", ")}}`;
|
|
23823
|
+
} catch {
|
|
23824
|
+
return e;
|
|
23825
|
+
}
|
|
23826
|
+
}
|
|
23827
|
+
var KEY_DECODERS = {
|
|
23828
|
+
"text/plain+int:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23829
|
+
children: e
|
|
23830
|
+
}),
|
|
23831
|
+
"text/plain+float:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23832
|
+
children: e
|
|
23833
|
+
}),
|
|
23834
|
+
"text/plain+bool:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23835
|
+
children: e === "True" ? "True" : "False"
|
|
23836
|
+
}),
|
|
23837
|
+
"text/plain+none:": () => (0, import_jsx_runtime.jsx)("span", {
|
|
23838
|
+
children: "None"
|
|
23839
|
+
}),
|
|
23840
|
+
"text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23841
|
+
children: formatTuplePayload(e)
|
|
23842
|
+
}),
|
|
23843
|
+
"text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23844
|
+
children: formatFrozensetPayload(e)
|
|
23845
|
+
}),
|
|
23846
|
+
"text/plain+str:": (e) => (0, import_jsx_runtime.jsxs)("span", {
|
|
23847
|
+
children: [
|
|
23848
|
+
'"',
|
|
23849
|
+
e,
|
|
23850
|
+
'"'
|
|
23851
|
+
]
|
|
23852
|
+
})
|
|
23853
|
+
};
|
|
23854
|
+
function isEncodedKey(e) {
|
|
23855
|
+
return typeof e == "string" && e.startsWith(KEY_ENCODED_PREFIX);
|
|
23856
|
+
}
|
|
23857
|
+
var INT_LIKE_STRING = /^-?\d+$/, keyRenderer = Object.assign(({ path: e }) => {
|
|
23858
|
+
let t = e[e.length - 1];
|
|
23859
|
+
if (typeof t != "string") return (0, import_jsx_runtime.jsx)("span", {
|
|
23860
|
+
children: String(t)
|
|
23861
|
+
});
|
|
23862
|
+
if (isEncodedKey(t)) {
|
|
23863
|
+
let [e2, n] = leafDataAndMimeType(t), i = KEY_DECODERS[`${n}:`];
|
|
23864
|
+
return i ? i(e2) : (0, import_jsx_runtime.jsx)("span", {
|
|
23865
|
+
children: t
|
|
23866
|
+
});
|
|
23867
|
+
}
|
|
23868
|
+
return (0, import_jsx_runtime.jsxs)("span", {
|
|
23869
|
+
children: [
|
|
23870
|
+
'"',
|
|
23871
|
+
t,
|
|
23872
|
+
'"'
|
|
23873
|
+
]
|
|
23874
|
+
});
|
|
23875
|
+
}, {
|
|
23876
|
+
when: ({ path: e }) => {
|
|
23877
|
+
let t = e[e.length - 1];
|
|
23878
|
+
return isEncodedKey(t) || typeof t == "string" && INT_LIKE_STRING.test(t);
|
|
23879
|
+
}
|
|
23880
|
+
}), MIME_PREFIXES = Object.keys(LEAF_RENDERERS), REPLACE_PREFIX = "<marimo-replace>", REPLACE_SUFFIX = "</marimo-replace>";
|
|
23810
23881
|
function pythonJsonReplacer(e, t) {
|
|
23811
|
-
return t == null ? `${REPLACE_PREFIX}None${REPLACE_SUFFIX}` : typeof t == "object" ? t : typeof t == "bigint" ? `${REPLACE_PREFIX}${t}${REPLACE_SUFFIX}` : Array.isArray(t) ? t : typeof t == "string" ? t.startsWith("text/plain+float:") ? `${REPLACE_PREFIX}${leafData(t)}${REPLACE_SUFFIX}` : t.startsWith("text/plain+bigint:") ? `${REPLACE_PREFIX}${BigInt(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+tuple:") ? `${REPLACE_PREFIX}(${leafData(t).slice(1, -1)})${REPLACE_SUFFIX}` : t.startsWith("text/plain+set:") ? `${REPLACE_PREFIX}
|
|
23882
|
+
return t == null ? `${REPLACE_PREFIX}None${REPLACE_SUFFIX}` : typeof t == "object" ? t : typeof t == "bigint" ? `${REPLACE_PREFIX}${t}${REPLACE_SUFFIX}` : Array.isArray(t) ? t : typeof t == "string" ? t.startsWith("text/plain+float:") ? `${REPLACE_PREFIX}${leafData(t)}${REPLACE_SUFFIX}` : t.startsWith("text/plain+bigint:") ? `${REPLACE_PREFIX}${BigInt(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+tuple:") ? `${REPLACE_PREFIX}(${leafData(t).slice(1, -1)})${REPLACE_SUFFIX}` : t.startsWith("text/plain+set:") ? `${REPLACE_PREFIX}${formatSetPayload(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+frozenset:") ? `${REPLACE_PREFIX}${formatFrozensetPayload(leafData(t))}${REPLACE_SUFFIX}` : MIME_PREFIXES.some((e2) => t.startsWith(e2)) ? leafData(t) : t : typeof t == "boolean" ? `${REPLACE_PREFIX}${t ? "True" : "False"}${REPLACE_SUFFIX}` : t;
|
|
23883
|
+
}
|
|
23884
|
+
function decodeKeyForCopy(e) {
|
|
23885
|
+
let [t, n] = leafDataAndMimeType(e), i = (e2) => `${REPLACE_PREFIX}${e2}${REPLACE_SUFFIX}`;
|
|
23886
|
+
switch (`${n}:`) {
|
|
23887
|
+
case "text/plain+int:":
|
|
23888
|
+
return i(t);
|
|
23889
|
+
case "text/plain+float:":
|
|
23890
|
+
return i(t === "nan" ? "float('nan')" : t === "inf" ? "float('inf')" : t === "-inf" ? "-float('inf')" : t);
|
|
23891
|
+
case "text/plain+bool:":
|
|
23892
|
+
return i(t === "True" ? "True" : "False");
|
|
23893
|
+
case "text/plain+none:":
|
|
23894
|
+
return i("None");
|
|
23895
|
+
case "text/plain+tuple:":
|
|
23896
|
+
return i(formatTuplePayload(t));
|
|
23897
|
+
case "text/plain+frozenset:":
|
|
23898
|
+
return i(formatFrozensetPayload(t));
|
|
23899
|
+
case "text/plain+str:":
|
|
23900
|
+
return t;
|
|
23901
|
+
default:
|
|
23902
|
+
return e;
|
|
23903
|
+
}
|
|
23904
|
+
}
|
|
23905
|
+
function rewriteEncodedKeys(e) {
|
|
23906
|
+
if (Array.isArray(e)) return e.map(rewriteEncodedKeys);
|
|
23907
|
+
if (typeof e == "object" && e) {
|
|
23908
|
+
let t = {};
|
|
23909
|
+
for (let [n, i] of Object.entries(e)) {
|
|
23910
|
+
let e2 = isEncodedKey(n) ? decodeKeyForCopy(n) : n;
|
|
23911
|
+
t[e2] = rewriteEncodedKeys(i);
|
|
23912
|
+
}
|
|
23913
|
+
return t;
|
|
23914
|
+
}
|
|
23915
|
+
return e;
|
|
23812
23916
|
}
|
|
23813
23917
|
function getCopyValue(e) {
|
|
23814
|
-
return JSON.stringify(e, pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
|
|
23918
|
+
return JSON.stringify(rewriteEncodedKeys(e), pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
|
|
23815
23919
|
}
|
|
23816
23920
|
function determineMaxDisplayLength(e) {
|
|
23817
23921
|
if (Array.isArray(e)) {
|