@marimo-team/islands 0.23.3-dev4 → 0.23.3-dev41
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-DEd_Ndal.js} +82 -82
- package/dist/{html-to-image-BdsDysfl.js → html-to-image-DBosi5GK.js} +2243 -2217
- package/dist/main.js +1104 -1099
- package/dist/{process-output-COL2Pf5I.js → process-output-k-4WHpxz.js} +1 -1
- package/dist/{reveal-component-Cd5Y35Ny.js → reveal-component-agH2Be6_.js} +2 -2
- package/dist/{slide-BEerfanN.js → slide-CoAyRjHI.js} +693 -574
- 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/__tests__/export-context.test.ts +122 -0
- package/src/core/static/__tests__/static-state.test.ts +80 -0
- package/src/core/static/export-context.ts +84 -0
- package/src/core/static/static-state.ts +44 -6
- package/src/plugins/core/RenderHTML.tsx +23 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +86 -1
- package/src/plugins/core/__test__/trusted-url.test.ts +130 -18
- package/src/plugins/core/sanitize.ts +11 -5
- package/src/plugins/core/trusted-url.ts +32 -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
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, Bn as import_lib, C as AccordionContent, Ft as jotaiJsonStorage, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as FileText, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as Braces, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, kn as LoaderCircle, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as esm_default, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DBosi5GK.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";
|
|
@@ -4238,11 +4238,26 @@ let __tla = Promise.all([
|
|
|
4238
4238
|
function isMatch(e, t, n) {
|
|
4239
4239
|
return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
|
|
4240
4240
|
}
|
|
4241
|
+
function isStringToStringRecord(e) {
|
|
4242
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4243
|
+
for (let t of Object.values(e)) if (typeof t != "string") return false;
|
|
4244
|
+
return true;
|
|
4245
|
+
}
|
|
4246
|
+
function isMarimoStaticState(e) {
|
|
4247
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return false;
|
|
4248
|
+
let t = e;
|
|
4249
|
+
return !(!isStringToStringRecord(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
|
|
4250
|
+
}
|
|
4251
|
+
function getMarimoStaticState() {
|
|
4252
|
+
let e = window == null ? void 0 : window.__MARIMO_STATIC__;
|
|
4253
|
+
return isMarimoStaticState(e) ? e : void 0;
|
|
4254
|
+
}
|
|
4241
4255
|
isStaticNotebook = function() {
|
|
4242
|
-
return (
|
|
4256
|
+
return getMarimoStaticState() !== void 0;
|
|
4243
4257
|
};
|
|
4244
4258
|
getStaticVirtualFiles = function() {
|
|
4245
|
-
|
|
4259
|
+
let e = getMarimoStaticState();
|
|
4260
|
+
return invariant(e !== void 0, "Not a static notebook"), e.files;
|
|
4246
4261
|
};
|
|
4247
4262
|
var isDevelopment$3 = false;
|
|
4248
4263
|
function sheetForTag(e) {
|
|
@@ -7103,33 +7118,33 @@ try {
|
|
|
7103
7118
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7104
7119
|
function y(e2) {
|
|
7105
7120
|
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,
|
|
7121
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), yj = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7107
7122
|
h2
|
|
7108
|
-
]),
|
|
7109
|
-
|
|
7110
|
-
]),
|
|
7111
|
-
supportedColorSchemes:
|
|
7112
|
-
defaultLightColorScheme:
|
|
7113
|
-
defaultDarkColorScheme:
|
|
7123
|
+
]), bj = $[t], xj = bj || $, { colorSchemes: Sj = _, components: Cj = v, cssVarPrefix: wj } = xj, Tj = Object.keys(Sj).filter((e3) => !!Sj[e3]).join(","), Ej = import_react.useMemo(() => Tj.split(","), [
|
|
7124
|
+
Tj
|
|
7125
|
+
]), Dj = typeof s == "string" ? s : s.light, Oj = typeof s == "string" ? s : s.dark, { mode: kj, setMode: Aj, systemMode: jj, lightColorScheme: Mj, darkColorScheme: Nj, colorScheme: Pj, setColorScheme: Fj } = useCurrentColorScheme({
|
|
7126
|
+
supportedColorSchemes: Ej,
|
|
7127
|
+
defaultLightColorScheme: Dj,
|
|
7128
|
+
defaultDarkColorScheme: Oj,
|
|
7114
7129
|
modeStorageKey: y2,
|
|
7115
7130
|
colorSchemeStorageKey: S2,
|
|
7116
|
-
defaultMode:
|
|
7131
|
+
defaultMode: Sj[Dj] && Sj[Oj] ? U : ((_b = (_a2 = Sj[xj.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = xj.palette) == null ? void 0 : _c.mode),
|
|
7117
7132
|
storageManager: E,
|
|
7118
7133
|
storageWindow: O,
|
|
7119
7134
|
noSsr: K
|
|
7120
|
-
}),
|
|
7121
|
-
|
|
7122
|
-
let
|
|
7135
|
+
}), Ij = kj, Lj = Pj;
|
|
7136
|
+
yj && (Ij = Q.mode, Lj = Q.colorScheme);
|
|
7137
|
+
let Rj = import_react.useMemo(() => {
|
|
7123
7138
|
var _a3;
|
|
7124
|
-
let e3 =
|
|
7125
|
-
|
|
7126
|
-
components:
|
|
7127
|
-
colorSchemes:
|
|
7128
|
-
cssVarPrefix:
|
|
7139
|
+
let e3 = Lj || xj.defaultColorScheme, t2 = ((_a3 = xj.generateThemeVars) == null ? void 0 : _a3.call(xj)) || xj.vars, n2 = {
|
|
7140
|
+
...xj,
|
|
7141
|
+
components: Cj,
|
|
7142
|
+
colorSchemes: Sj,
|
|
7143
|
+
cssVarPrefix: wj,
|
|
7129
7144
|
vars: t2
|
|
7130
7145
|
};
|
|
7131
7146
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7132
|
-
let t3 =
|
|
7147
|
+
let t3 = Sj[e3];
|
|
7133
7148
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7134
7149
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7135
7150
|
...n2[e4],
|
|
@@ -7139,34 +7154,34 @@ try {
|
|
|
7139
7154
|
}
|
|
7140
7155
|
return c ? c(n2) : n2;
|
|
7141
7156
|
}, [
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
]),
|
|
7157
|
+
xj,
|
|
7158
|
+
Lj,
|
|
7159
|
+
Cj,
|
|
7160
|
+
Sj,
|
|
7161
|
+
wj
|
|
7162
|
+
]), zj = xj.colorSchemeSelector;
|
|
7148
7163
|
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(...
|
|
7164
|
+
if (Lj && M && zj && zj !== "media") {
|
|
7165
|
+
let e3 = zj, t2 = zj;
|
|
7166
|
+
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(...Ej.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Lj));
|
|
7152
7167
|
else {
|
|
7153
|
-
let e4 = t2.replace("%s",
|
|
7168
|
+
let e4 = t2.replace("%s", Lj).match(/\[([^\]]+)\]/);
|
|
7154
7169
|
if (e4) {
|
|
7155
7170
|
let [t3, n2] = e4[1].split("=");
|
|
7156
|
-
n2 ||
|
|
7157
|
-
M.removeAttribute(t3.replace(
|
|
7171
|
+
n2 || Ej.forEach((e5) => {
|
|
7172
|
+
M.removeAttribute(t3.replace(Lj, e5));
|
|
7158
7173
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7159
|
-
} else M.setAttribute(t2,
|
|
7174
|
+
} else M.setAttribute(t2, Lj);
|
|
7160
7175
|
}
|
|
7161
7176
|
}
|
|
7162
7177
|
}, [
|
|
7163
|
-
|
|
7164
|
-
|
|
7178
|
+
Lj,
|
|
7179
|
+
zj,
|
|
7165
7180
|
M,
|
|
7166
|
-
|
|
7181
|
+
Ej
|
|
7167
7182
|
]), import_react.useEffect(() => {
|
|
7168
7183
|
let e3;
|
|
7169
|
-
if (w2 &&
|
|
7184
|
+
if (w2 && q.current && A) {
|
|
7170
7185
|
let t2 = A.createElement("style");
|
|
7171
7186
|
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
7187
|
A.head.removeChild(t2);
|
|
@@ -7176,48 +7191,48 @@ try {
|
|
|
7176
7191
|
clearTimeout(e3);
|
|
7177
7192
|
};
|
|
7178
7193
|
}, [
|
|
7179
|
-
|
|
7194
|
+
Lj,
|
|
7180
7195
|
w2,
|
|
7181
7196
|
A
|
|
7182
|
-
]), import_react.useEffect(() => (
|
|
7183
|
-
|
|
7197
|
+
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7198
|
+
q.current = false;
|
|
7184
7199
|
}), []);
|
|
7185
|
-
let
|
|
7186
|
-
allColorSchemes:
|
|
7187
|
-
colorScheme:
|
|
7188
|
-
darkColorScheme:
|
|
7189
|
-
lightColorScheme:
|
|
7190
|
-
mode:
|
|
7191
|
-
setColorScheme:
|
|
7192
|
-
setMode:
|
|
7193
|
-
systemMode:
|
|
7200
|
+
let Bj = import_react.useMemo(() => ({
|
|
7201
|
+
allColorSchemes: Ej,
|
|
7202
|
+
colorScheme: Lj,
|
|
7203
|
+
darkColorScheme: Nj,
|
|
7204
|
+
lightColorScheme: Mj,
|
|
7205
|
+
mode: Ij,
|
|
7206
|
+
setColorScheme: Fj,
|
|
7207
|
+
setMode: Aj,
|
|
7208
|
+
systemMode: jj
|
|
7194
7209
|
}), [
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
]),
|
|
7205
|
-
(z ||
|
|
7206
|
-
let
|
|
7210
|
+
Ej,
|
|
7211
|
+
Lj,
|
|
7212
|
+
Nj,
|
|
7213
|
+
Mj,
|
|
7214
|
+
Ij,
|
|
7215
|
+
Fj,
|
|
7216
|
+
Aj,
|
|
7217
|
+
jj,
|
|
7218
|
+
Rj.colorSchemeSelector
|
|
7219
|
+
]), Vj = true;
|
|
7220
|
+
(z || xj.cssVariables === false || yj && (J == null ? void 0 : J.cssVarPrefix) === wj) && (Vj = false);
|
|
7221
|
+
let Hj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7207
7222
|
children: [
|
|
7208
7223
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7209
|
-
themeId:
|
|
7210
|
-
theme:
|
|
7224
|
+
themeId: bj ? t : void 0,
|
|
7225
|
+
theme: Rj,
|
|
7211
7226
|
children: d2
|
|
7212
7227
|
}),
|
|
7213
|
-
|
|
7214
|
-
styles: ((_d =
|
|
7228
|
+
Vj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7229
|
+
styles: ((_d = Rj.generateStyleSheets) == null ? void 0 : _d.call(Rj)) || []
|
|
7215
7230
|
})
|
|
7216
7231
|
]
|
|
7217
7232
|
});
|
|
7218
|
-
return
|
|
7219
|
-
value:
|
|
7220
|
-
children:
|
|
7233
|
+
return yj ? Hj : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7234
|
+
value: Bj,
|
|
7235
|
+
children: Hj
|
|
7221
7236
|
});
|
|
7222
7237
|
}
|
|
7223
7238
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -7963,10 +7978,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
7963
7978
|
disableCssColorScheme: a,
|
|
7964
7979
|
shouldSkipGeneratingVar: s,
|
|
7965
7980
|
getSelector: createGetSelector_default(I)
|
|
7966
|
-
}, { vars: U, generateThemeVars: K, generateStyleSheets:
|
|
7981
|
+
}, { vars: U, generateThemeVars: K, generateStyleSheets: q } = prepareCssVars_default(I, z);
|
|
7967
7982
|
return I.vars = U, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([e2, t2]) => {
|
|
7968
7983
|
I[e2] = t2;
|
|
7969
|
-
}), I.generateThemeVars = K, I.generateStyleSheets =
|
|
7984
|
+
}), I.generateThemeVars = K, I.generateStyleSheets = q, I.generateSpacing = function() {
|
|
7970
7985
|
return createSpacing(f.spacing, createUnarySpacing(this));
|
|
7971
7986
|
}, I.getColorSchemeSelector = createGetColorSchemeSelector(c), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = s, I.unstable_sxConfig = {
|
|
7972
7987
|
...defaultSxConfig_default,
|
|
@@ -8717,10 +8732,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
8717
8732
|
let n = useDefaultProps({
|
|
8718
8733
|
props: e,
|
|
8719
8734
|
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
|
-
}, []),
|
|
8735
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: yj, onFocus: $, onKeyDown: bj, onKeyUp: xj, placeholder: Sj, readOnly: Cj, renderSuffix: wj, rows: Tj, size: Ej, slotProps: Dj = {}, slots: Oj = {}, startAdornment: kj, type: Aj = "text", value: jj, ...Mj } = n, Nj = A.value == null ? jj : A.value, { current: Pj } = import_react.useRef(Nj != null), Fj = import_react.useRef(), Ij = import_react.useCallback((e2) => {
|
|
8736
|
+
}, []), Lj = useForkRef_default(Fj, M, A.ref, Ij), [Rj, zj] = import_react.useState(false), Bj = useFormControl(), Vj = formControlState({
|
|
8722
8737
|
props: n,
|
|
8723
|
-
muiFormControl:
|
|
8738
|
+
muiFormControl: Bj,
|
|
8724
8739
|
states: [
|
|
8725
8740
|
"color",
|
|
8726
8741
|
"disabled",
|
|
@@ -8731,145 +8746,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
8731
8746
|
"filled"
|
|
8732
8747
|
]
|
|
8733
8748
|
});
|
|
8734
|
-
|
|
8735
|
-
!
|
|
8749
|
+
Vj.focused = Bj ? Bj.focused : Rj, import_react.useEffect(() => {
|
|
8750
|
+
!Bj && _ && Rj && (zj(false), J && J());
|
|
8736
8751
|
}, [
|
|
8737
|
-
|
|
8752
|
+
Bj,
|
|
8738
8753
|
_,
|
|
8739
|
-
|
|
8740
|
-
|
|
8754
|
+
Rj,
|
|
8755
|
+
J
|
|
8741
8756
|
]);
|
|
8742
|
-
let
|
|
8743
|
-
isFilled(e2) ?
|
|
8757
|
+
let Hj = Bj && Bj.onFilled, Uj = Bj && Bj.onEmpty, Wj = import_react.useCallback((e2) => {
|
|
8758
|
+
isFilled(e2) ? Hj && Hj() : Uj && Uj();
|
|
8744
8759
|
}, [
|
|
8745
|
-
|
|
8746
|
-
|
|
8760
|
+
Hj,
|
|
8761
|
+
Uj
|
|
8747
8762
|
]);
|
|
8748
8763
|
useEnhancedEffect_default$1(() => {
|
|
8749
|
-
|
|
8750
|
-
value:
|
|
8764
|
+
Pj && Wj({
|
|
8765
|
+
value: Nj
|
|
8751
8766
|
});
|
|
8752
8767
|
}, [
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8768
|
+
Nj,
|
|
8769
|
+
Wj,
|
|
8770
|
+
Pj
|
|
8756
8771
|
]);
|
|
8757
|
-
let
|
|
8758
|
-
|
|
8759
|
-
},
|
|
8760
|
-
|
|
8761
|
-
},
|
|
8762
|
-
if (!
|
|
8763
|
-
let t3 = e2.target ||
|
|
8772
|
+
let Gj = (e2) => {
|
|
8773
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), Bj && Bj.onFocus ? Bj.onFocus(e2) : zj(true);
|
|
8774
|
+
}, Kj = (e2) => {
|
|
8775
|
+
J && J(e2), A.onBlur && A.onBlur(e2), Bj && Bj.onBlur ? Bj.onBlur(e2) : zj(false);
|
|
8776
|
+
}, qj = (e2, ...t2) => {
|
|
8777
|
+
if (!Pj) {
|
|
8778
|
+
let t3 = e2.target || Fj.current;
|
|
8764
8779
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
8765
|
-
|
|
8780
|
+
Wj({
|
|
8766
8781
|
value: t3.value
|
|
8767
8782
|
});
|
|
8768
8783
|
}
|
|
8769
|
-
A.onChange && A.onChange(e2, ...t2),
|
|
8784
|
+
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
8770
8785
|
};
|
|
8771
8786
|
import_react.useEffect(() => {
|
|
8772
|
-
|
|
8787
|
+
Wj(Fj.current);
|
|
8773
8788
|
}, []);
|
|
8774
|
-
let
|
|
8775
|
-
|
|
8776
|
-
},
|
|
8777
|
-
K &&
|
|
8789
|
+
let Jj = (e2) => {
|
|
8790
|
+
Fj.current && e2.currentTarget === e2.target && Fj.current.focus(), yj && yj(e2);
|
|
8791
|
+
}, Yj = O, Xj = A;
|
|
8792
|
+
K && Yj === "input" && (Xj = Tj ? {
|
|
8778
8793
|
type: void 0,
|
|
8779
|
-
minRows:
|
|
8780
|
-
maxRows:
|
|
8781
|
-
...
|
|
8794
|
+
minRows: Tj,
|
|
8795
|
+
maxRows: Tj,
|
|
8796
|
+
...Xj
|
|
8782
8797
|
} : {
|
|
8783
8798
|
type: void 0,
|
|
8784
8799
|
maxRows: z,
|
|
8785
8800
|
minRows: U,
|
|
8786
|
-
...
|
|
8787
|
-
},
|
|
8788
|
-
let
|
|
8789
|
-
|
|
8801
|
+
...Xj
|
|
8802
|
+
}, Yj = TextareaAutosize_default);
|
|
8803
|
+
let Zj = (e2) => {
|
|
8804
|
+
Wj(e2.animationName === "mui-auto-fill-cancel" ? Fj.current : {
|
|
8790
8805
|
value: "x"
|
|
8791
8806
|
});
|
|
8792
8807
|
};
|
|
8793
8808
|
import_react.useEffect(() => {
|
|
8794
|
-
|
|
8809
|
+
Bj && Bj.setAdornedStart(!!kj);
|
|
8795
8810
|
}, [
|
|
8796
|
-
|
|
8797
|
-
|
|
8811
|
+
Bj,
|
|
8812
|
+
kj
|
|
8798
8813
|
]);
|
|
8799
|
-
let
|
|
8814
|
+
let Qj = {
|
|
8800
8815
|
...n,
|
|
8801
|
-
color:
|
|
8802
|
-
disabled:
|
|
8816
|
+
color: Vj.color || "primary",
|
|
8817
|
+
disabled: Vj.disabled,
|
|
8803
8818
|
endAdornment: y,
|
|
8804
|
-
error:
|
|
8805
|
-
focused:
|
|
8806
|
-
formControl:
|
|
8819
|
+
error: Vj.error,
|
|
8820
|
+
focused: Vj.focused,
|
|
8821
|
+
formControl: Bj,
|
|
8807
8822
|
fullWidth: w,
|
|
8808
|
-
hiddenLabel:
|
|
8823
|
+
hiddenLabel: Vj.hiddenLabel,
|
|
8809
8824
|
multiline: K,
|
|
8810
|
-
size:
|
|
8811
|
-
startAdornment:
|
|
8812
|
-
type:
|
|
8813
|
-
},
|
|
8814
|
-
return
|
|
8815
|
-
...
|
|
8816
|
-
...
|
|
8825
|
+
size: Vj.size,
|
|
8826
|
+
startAdornment: kj,
|
|
8827
|
+
type: Aj
|
|
8828
|
+
}, $j = useUtilityClasses(Qj), eM = Oj.root || d.Root || InputBaseRoot, tM = Dj.root || f.root || {}, nM = Oj.input || d.Input || InputBaseInput;
|
|
8829
|
+
return Xj = {
|
|
8830
|
+
...Xj,
|
|
8831
|
+
...Dj.input ?? f.input
|
|
8817
8832
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
8818
8833
|
children: [
|
|
8819
8834
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
8820
|
-
(0, import_jsx_runtime.jsxs)(
|
|
8821
|
-
...
|
|
8835
|
+
(0, import_jsx_runtime.jsxs)(eM, {
|
|
8836
|
+
...tM,
|
|
8822
8837
|
ref: t,
|
|
8823
|
-
onClick:
|
|
8824
|
-
...
|
|
8825
|
-
...!isHostComponent_default(
|
|
8838
|
+
onClick: Jj,
|
|
8839
|
+
...Mj,
|
|
8840
|
+
...!isHostComponent_default(eM) && {
|
|
8826
8841
|
ownerState: {
|
|
8827
|
-
...
|
|
8828
|
-
...
|
|
8842
|
+
...Qj,
|
|
8843
|
+
...tM.ownerState
|
|
8829
8844
|
}
|
|
8830
8845
|
},
|
|
8831
|
-
className: clsx_default(
|
|
8846
|
+
className: clsx_default($j.root, tM.className, s, Cj && "MuiInputBase-readOnly"),
|
|
8832
8847
|
children: [
|
|
8833
|
-
|
|
8848
|
+
kj,
|
|
8834
8849
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
8835
8850
|
value: null,
|
|
8836
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
8837
|
-
"aria-invalid":
|
|
8851
|
+
children: (0, import_jsx_runtime.jsx)(nM, {
|
|
8852
|
+
"aria-invalid": Vj.error,
|
|
8838
8853
|
"aria-describedby": i,
|
|
8839
8854
|
autoComplete: a,
|
|
8840
8855
|
autoFocus: o,
|
|
8841
8856
|
defaultValue: h,
|
|
8842
|
-
disabled:
|
|
8857
|
+
disabled: Vj.disabled,
|
|
8843
8858
|
id: E,
|
|
8844
|
-
onAnimationStart:
|
|
8845
|
-
name:
|
|
8846
|
-
placeholder:
|
|
8847
|
-
readOnly:
|
|
8848
|
-
required:
|
|
8849
|
-
rows:
|
|
8850
|
-
value:
|
|
8851
|
-
onKeyDown:
|
|
8852
|
-
onKeyUp:
|
|
8853
|
-
type:
|
|
8854
|
-
...
|
|
8855
|
-
...!isHostComponent_default(
|
|
8856
|
-
as:
|
|
8859
|
+
onAnimationStart: Zj,
|
|
8860
|
+
name: q,
|
|
8861
|
+
placeholder: Sj,
|
|
8862
|
+
readOnly: Cj,
|
|
8863
|
+
required: Vj.required,
|
|
8864
|
+
rows: Tj,
|
|
8865
|
+
value: Nj,
|
|
8866
|
+
onKeyDown: bj,
|
|
8867
|
+
onKeyUp: xj,
|
|
8868
|
+
type: Aj,
|
|
8869
|
+
...Xj,
|
|
8870
|
+
...!isHostComponent_default(nM) && {
|
|
8871
|
+
as: Yj,
|
|
8857
8872
|
ownerState: {
|
|
8858
|
-
...
|
|
8859
|
-
...
|
|
8873
|
+
...Qj,
|
|
8874
|
+
...Xj.ownerState
|
|
8860
8875
|
}
|
|
8861
8876
|
},
|
|
8862
|
-
ref:
|
|
8863
|
-
className: clsx_default(
|
|
8864
|
-
onBlur:
|
|
8865
|
-
onChange:
|
|
8866
|
-
onFocus:
|
|
8877
|
+
ref: Lj,
|
|
8878
|
+
className: clsx_default($j.input, Xj.className, Cj && "MuiInputBase-readOnly"),
|
|
8879
|
+
onBlur: Kj,
|
|
8880
|
+
onChange: qj,
|
|
8881
|
+
onFocus: Gj
|
|
8867
8882
|
})
|
|
8868
8883
|
}),
|
|
8869
8884
|
y,
|
|
8870
|
-
|
|
8871
|
-
...
|
|
8872
|
-
startAdornment:
|
|
8885
|
+
wj ? wj({
|
|
8886
|
+
...Vj,
|
|
8887
|
+
startAdornment: kj
|
|
8873
8888
|
}) : null
|
|
8874
8889
|
]
|
|
8875
8890
|
})
|
|
@@ -9945,30 +9960,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9945
9960
|
M,
|
|
9946
9961
|
i,
|
|
9947
9962
|
a
|
|
9948
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K,
|
|
9949
|
-
|
|
9963
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), yj = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), bj = useJsonViewerStore((e2) => e2.colorspace.base0C), xj = useJsonViewerStore((e2) => e2.colorspace.base0A), Sj = useJsonViewerStore((e2) => e2.displayComma), Cj = useJsonViewerStore((e2) => e2.quotesOnKeys), wj = useJsonViewerStore((e2) => e2.rootName), Tj = U === t, Ej = Number.isInteger(Number(A)), Dj = useJsonViewerStore((e2) => e2.enableAdd), Oj = useJsonViewerStore((e2) => e2.onAdd), kj = (0, import_react.useMemo)(() => !Oj || a !== void 0 || Dj === false || v === false ? false : typeof Dj == "function" ? !!Dj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
9964
|
+
Oj,
|
|
9950
9965
|
a,
|
|
9951
9966
|
i,
|
|
9952
|
-
|
|
9967
|
+
Dj,
|
|
9953
9968
|
v,
|
|
9954
9969
|
t
|
|
9955
|
-
]),
|
|
9956
|
-
|
|
9970
|
+
]), Aj = useJsonViewerStore((e2) => e2.enableDelete), jj = useJsonViewerStore((e2) => e2.onDelete), Mj = (0, import_react.useMemo)(() => !jj || a !== void 0 || Tj || Aj === false || v === false ? false : typeof Aj == "function" ? !!Aj(i, t) : Aj, [
|
|
9971
|
+
jj,
|
|
9957
9972
|
a,
|
|
9958
|
-
|
|
9973
|
+
Tj,
|
|
9959
9974
|
i,
|
|
9960
|
-
|
|
9975
|
+
Aj,
|
|
9961
9976
|
v,
|
|
9962
9977
|
t
|
|
9963
|
-
]),
|
|
9964
|
-
|
|
9978
|
+
]), Nj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Pj, copied: Fj } = useClipboard(), Ij = useJsonViewerStore((e2) => e2.highlightUpdates), Lj = (0, import_react.useMemo)(() => !Ij || 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, [
|
|
9979
|
+
Ij,
|
|
9965
9980
|
n,
|
|
9966
9981
|
t
|
|
9967
|
-
]),
|
|
9982
|
+
]), Rj = (0, import_react.useRef)();
|
|
9968
9983
|
(0, import_react.useEffect)(() => {
|
|
9969
|
-
|
|
9984
|
+
Rj.current && Lj && "animate" in Rj.current && Rj.current.animate([
|
|
9970
9985
|
{
|
|
9971
|
-
backgroundColor:
|
|
9986
|
+
backgroundColor: xj
|
|
9972
9987
|
},
|
|
9973
9988
|
{
|
|
9974
9989
|
backgroundColor: ""
|
|
@@ -9978,40 +9993,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9978
9993
|
easing: "ease-in"
|
|
9979
9994
|
});
|
|
9980
9995
|
}, [
|
|
9981
|
-
|
|
9982
|
-
|
|
9996
|
+
xj,
|
|
9997
|
+
Lj,
|
|
9983
9998
|
n,
|
|
9984
9999
|
t
|
|
9985
10000
|
]);
|
|
9986
|
-
let
|
|
9987
|
-
e2.preventDefault(), h && E(h(t)),
|
|
10001
|
+
let zj = (0, import_react.useCallback)((e2) => {
|
|
10002
|
+
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
9988
10003
|
}, [
|
|
9989
10004
|
h,
|
|
9990
10005
|
t
|
|
9991
|
-
]),
|
|
9992
|
-
|
|
10006
|
+
]), Bj = (0, import_react.useCallback)(() => {
|
|
10007
|
+
Q(false), E("");
|
|
9993
10008
|
}, [
|
|
9994
|
-
|
|
10009
|
+
Q,
|
|
9995
10010
|
E
|
|
9996
|
-
]),
|
|
9997
|
-
if (
|
|
9998
|
-
|
|
10011
|
+
]), Vj = (0, import_react.useCallback)((e2) => {
|
|
10012
|
+
if (Q(false), _) try {
|
|
10013
|
+
yj(i, t, _(e2));
|
|
9999
10014
|
} catch {
|
|
10000
10015
|
}
|
|
10001
10016
|
}, [
|
|
10002
|
-
|
|
10017
|
+
Q,
|
|
10003
10018
|
_,
|
|
10004
|
-
|
|
10019
|
+
yj,
|
|
10005
10020
|
i,
|
|
10006
10021
|
t
|
|
10007
|
-
]),
|
|
10022
|
+
]), Hj = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10008
10023
|
children: [
|
|
10009
10024
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10010
10025
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10011
10026
|
sx: {
|
|
10012
10027
|
fontSize: ".8rem"
|
|
10013
10028
|
},
|
|
10014
|
-
onClick:
|
|
10029
|
+
onClick: Bj
|
|
10015
10030
|
})
|
|
10016
10031
|
}),
|
|
10017
10032
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10019,22 +10034,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10019
10034
|
sx: {
|
|
10020
10035
|
fontSize: ".8rem"
|
|
10021
10036
|
},
|
|
10022
|
-
onClick: () =>
|
|
10037
|
+
onClick: () => Vj(w)
|
|
10023
10038
|
})
|
|
10024
10039
|
})
|
|
10025
10040
|
]
|
|
10026
10041
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10027
10042
|
children: [
|
|
10028
|
-
|
|
10043
|
+
Nj && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10029
10044
|
onClick: (e2) => {
|
|
10030
10045
|
e2.preventDefault();
|
|
10031
10046
|
try {
|
|
10032
|
-
|
|
10047
|
+
Pj(i, t, copyString);
|
|
10033
10048
|
} catch (e3) {
|
|
10034
10049
|
console.error(e3);
|
|
10035
10050
|
}
|
|
10036
10051
|
},
|
|
10037
|
-
children:
|
|
10052
|
+
children: Fj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10038
10053
|
sx: {
|
|
10039
10054
|
fontSize: ".8rem"
|
|
10040
10055
|
}
|
|
@@ -10045,16 +10060,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10045
10060
|
})
|
|
10046
10061
|
}),
|
|
10047
10062
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10048
|
-
onClick:
|
|
10063
|
+
onClick: zj,
|
|
10049
10064
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10050
10065
|
sx: {
|
|
10051
10066
|
fontSize: ".8rem"
|
|
10052
10067
|
}
|
|
10053
10068
|
})
|
|
10054
10069
|
}),
|
|
10055
|
-
|
|
10070
|
+
kj && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10056
10071
|
onClick: (e2) => {
|
|
10057
|
-
e2.preventDefault(),
|
|
10072
|
+
e2.preventDefault(), Oj == null ? void 0 : Oj(i);
|
|
10058
10073
|
},
|
|
10059
10074
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10060
10075
|
sx: {
|
|
@@ -10062,9 +10077,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10062
10077
|
}
|
|
10063
10078
|
})
|
|
10064
10079
|
}),
|
|
10065
|
-
|
|
10080
|
+
Mj && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10066
10081
|
onClick: (e2) => {
|
|
10067
|
-
e2.preventDefault(),
|
|
10082
|
+
e2.preventDefault(), jj == null ? void 0 : jj(i, t);
|
|
10068
10083
|
},
|
|
10069
10084
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10070
10085
|
sx: {
|
|
@@ -10077,34 +10092,34 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10077
10092
|
f,
|
|
10078
10093
|
h,
|
|
10079
10094
|
_,
|
|
10080
|
-
|
|
10081
|
-
|
|
10095
|
+
Fj,
|
|
10096
|
+
Pj,
|
|
10082
10097
|
S,
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10098
|
+
J,
|
|
10099
|
+
Nj,
|
|
10100
|
+
kj,
|
|
10101
|
+
Mj,
|
|
10087
10102
|
w,
|
|
10088
10103
|
i,
|
|
10089
10104
|
t,
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
]),
|
|
10105
|
+
Oj,
|
|
10106
|
+
jj,
|
|
10107
|
+
zj,
|
|
10108
|
+
Bj,
|
|
10109
|
+
Vj
|
|
10110
|
+
]), Uj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10096
10111
|
t
|
|
10097
|
-
]),
|
|
10112
|
+
]), Wj = !Uj && !!(c && d), Gj = useJsonViewerStore((e2) => e2.keyRenderer), Kj = (0, import_react.useMemo)(() => ({
|
|
10098
10113
|
path: i,
|
|
10099
10114
|
inspect: K,
|
|
10100
|
-
setInspect:
|
|
10115
|
+
setInspect: q,
|
|
10101
10116
|
value: t,
|
|
10102
10117
|
prevValue: n,
|
|
10103
10118
|
nestedIndex: a
|
|
10104
10119
|
}), [
|
|
10105
10120
|
K,
|
|
10106
10121
|
i,
|
|
10107
|
-
|
|
10122
|
+
q,
|
|
10108
10123
|
t,
|
|
10109
10124
|
n,
|
|
10110
10125
|
a
|
|
@@ -10126,18 +10141,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10126
10141
|
className: "data-key",
|
|
10127
10142
|
sx: {
|
|
10128
10143
|
lineHeight: 1.5,
|
|
10129
|
-
color:
|
|
10144
|
+
color: $,
|
|
10130
10145
|
letterSpacing: 0.5,
|
|
10131
10146
|
opacity: 0.8
|
|
10132
10147
|
},
|
|
10133
10148
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10134
|
-
e2.isDefaultPrevented() ||
|
|
10149
|
+
e2.isDefaultPrevented() || Uj || q((e3) => !e3);
|
|
10135
10150
|
}, [
|
|
10136
|
-
|
|
10137
|
-
|
|
10151
|
+
Uj,
|
|
10152
|
+
q
|
|
10138
10153
|
]),
|
|
10139
10154
|
children: [
|
|
10140
|
-
|
|
10155
|
+
Wj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10141
10156
|
className: "data-key-toggle-expanded",
|
|
10142
10157
|
sx: {
|
|
10143
10158
|
fontSize: ".8rem",
|
|
@@ -10155,27 +10170,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10155
10170
|
}
|
|
10156
10171
|
}) : null,
|
|
10157
10172
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10158
|
-
ref:
|
|
10173
|
+
ref: Rj,
|
|
10159
10174
|
className: "data-key-key",
|
|
10160
10175
|
component: "span",
|
|
10161
|
-
children:
|
|
10176
|
+
children: Tj && O === 0 ? wj === false ? null : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10162
10177
|
children: [
|
|
10163
10178
|
'"',
|
|
10164
|
-
|
|
10179
|
+
wj,
|
|
10165
10180
|
'"'
|
|
10166
10181
|
]
|
|
10167
10182
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10168
|
-
children:
|
|
10169
|
-
}) :
|
|
10170
|
-
...
|
|
10171
|
-
}) : a === void 0 && (
|
|
10183
|
+
children: wj
|
|
10184
|
+
}) : Gj.when(Kj) ? (0, import_jsx_runtime.jsx)(Gj, {
|
|
10185
|
+
...Kj
|
|
10186
|
+
}) : a === void 0 && (Ej ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10172
10187
|
component: "span",
|
|
10173
10188
|
style: {
|
|
10174
|
-
color:
|
|
10175
|
-
userSelect:
|
|
10189
|
+
color: bj,
|
|
10190
|
+
userSelect: Ej ? "none" : "auto"
|
|
10176
10191
|
},
|
|
10177
10192
|
children: A
|
|
10178
|
-
}) :
|
|
10193
|
+
}) : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10179
10194
|
children: [
|
|
10180
10195
|
'"',
|
|
10181
10196
|
A,
|
|
@@ -10185,7 +10200,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10185
10200
|
children: A
|
|
10186
10201
|
}))
|
|
10187
10202
|
}),
|
|
10188
|
-
|
|
10203
|
+
Tj ? wj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10189
10204
|
className: "data-key-colon",
|
|
10190
10205
|
sx: {
|
|
10191
10206
|
mr: 0.5
|
|
@@ -10198,38 +10213,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10198
10213
|
".data-key-key:empty + &": {
|
|
10199
10214
|
display: "none"
|
|
10200
10215
|
},
|
|
10201
|
-
userSelect:
|
|
10216
|
+
userSelect: Ej ? "none" : "auto"
|
|
10202
10217
|
},
|
|
10203
10218
|
children: ":"
|
|
10204
10219
|
}),
|
|
10205
10220
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10206
|
-
...
|
|
10221
|
+
...Kj
|
|
10207
10222
|
}),
|
|
10208
|
-
I &&
|
|
10223
|
+
I && Wj && K && Hj
|
|
10209
10224
|
]
|
|
10210
10225
|
}),
|
|
10211
|
-
|
|
10226
|
+
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10212
10227
|
path: i,
|
|
10213
10228
|
value: w,
|
|
10214
10229
|
setValue: E,
|
|
10215
|
-
abortEditing:
|
|
10216
|
-
commitEditing:
|
|
10230
|
+
abortEditing: Bj,
|
|
10231
|
+
commitEditing: Vj
|
|
10217
10232
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10218
|
-
...
|
|
10233
|
+
...Kj
|
|
10219
10234
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10220
10235
|
component: "span",
|
|
10221
10236
|
className: "data-value-fallback",
|
|
10222
10237
|
children: `fallback: ${t}`
|
|
10223
10238
|
}),
|
|
10224
10239
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10225
|
-
...
|
|
10240
|
+
...Kj
|
|
10226
10241
|
}),
|
|
10227
|
-
!o &&
|
|
10242
|
+
!o && Sj && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10228
10243
|
children: ","
|
|
10229
10244
|
}),
|
|
10230
|
-
I &&
|
|
10231
|
-
I && !
|
|
10232
|
-
!I &&
|
|
10245
|
+
I && Wj && !K && Hj,
|
|
10246
|
+
I && !Wj && Hj,
|
|
10247
|
+
!I && J && Hj
|
|
10233
10248
|
]
|
|
10234
10249
|
});
|
|
10235
10250
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -10617,13 +10632,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
10617
10632
|
}
|
|
10618
10633
|
}), t2 == null ? void 0 : t2.focus();
|
|
10619
10634
|
}, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
|
|
10620
|
-
let
|
|
10621
|
-
t[11] === o ?
|
|
10622
|
-
let
|
|
10623
|
-
t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !==
|
|
10635
|
+
let E = S, O;
|
|
10636
|
+
t[11] === o ? O = t[12] : (O = cn("my-2", o), t[11] = o, t[12] = O);
|
|
10637
|
+
let A;
|
|
10638
|
+
t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== E ? (A = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
10624
10639
|
tooltip: y.description,
|
|
10625
|
-
openPrompt: () =>
|
|
10626
|
-
applyAutofix: () =>
|
|
10640
|
+
openPrompt: () => E(false),
|
|
10641
|
+
applyAutofix: () => E(true)
|
|
10627
10642
|
}) : (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
10628
10643
|
content: y.description,
|
|
10629
10644
|
align: "start",
|
|
@@ -10631,7 +10646,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
10631
10646
|
size: "xs",
|
|
10632
10647
|
variant: "outline",
|
|
10633
10648
|
className: "font-normal",
|
|
10634
|
-
onClick: () =>
|
|
10649
|
+
onClick: () => E(false),
|
|
10635
10650
|
children: [
|
|
10636
10651
|
(0, import_jsx_runtime.jsx)(Wrench, {
|
|
10637
10652
|
className: "h-3 w-3 mr-2"
|
|
@@ -10639,12 +10654,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
10639
10654
|
y.title
|
|
10640
10655
|
]
|
|
10641
10656
|
})
|
|
10642
|
-
}), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] =
|
|
10643
|
-
let
|
|
10644
|
-
return t[18] !==
|
|
10645
|
-
className:
|
|
10646
|
-
children:
|
|
10647
|
-
}), t[18] =
|
|
10657
|
+
}), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = E, t[17] = A) : A = t[17];
|
|
10658
|
+
let M;
|
|
10659
|
+
return t[18] !== O || t[19] !== A ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
10660
|
+
className: O,
|
|
10661
|
+
children: A
|
|
10662
|
+
}), t[18] = O, t[19] = A, t[20] = M) : M = t[20], M;
|
|
10648
10663
|
};
|
|
10649
10664
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
10650
10665
|
const AIFixButton = (e) => {
|
|
@@ -11070,18 +11085,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11070
11085
|
}
|
|
11071
11086
|
let _, v, y, S, w, E;
|
|
11072
11087
|
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),
|
|
11074
|
-
t[15] === s ?
|
|
11088
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), yj = n.filter(_temp16), $ = n.filter(_temp17), bj;
|
|
11089
|
+
t[15] === s ? bj = t[16] : (bj = () => {
|
|
11075
11090
|
s.openApplication("scratchpad");
|
|
11076
|
-
}, t[15] = s, t[16] =
|
|
11077
|
-
let
|
|
11091
|
+
}, t[15] = s, t[16] = bj);
|
|
11092
|
+
let Sj = bj, Cj = () => {
|
|
11078
11093
|
let t2 = [];
|
|
11079
|
-
if (
|
|
11080
|
-
let e3 =
|
|
11094
|
+
if (Q.length > 0 || yj.length > 0) {
|
|
11095
|
+
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11081
11096
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11082
11097
|
children: [
|
|
11083
|
-
|
|
11084
|
-
|
|
11098
|
+
Q.map(_temp20),
|
|
11099
|
+
yj.map(_temp21),
|
|
11085
11100
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11086
11101
|
size: "xs",
|
|
11087
11102
|
variant: "outline",
|
|
@@ -11112,8 +11127,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11112
11127
|
}),
|
|
11113
11128
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11114
11129
|
errors: [
|
|
11115
|
-
...
|
|
11116
|
-
...
|
|
11130
|
+
...Q,
|
|
11131
|
+
...yj
|
|
11117
11132
|
],
|
|
11118
11133
|
cellId: i
|
|
11119
11134
|
})
|
|
@@ -11212,17 +11227,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11212
11227
|
]
|
|
11213
11228
|
})
|
|
11214
11229
|
]
|
|
11215
|
-
}, "cycle")),
|
|
11216
|
-
let e3 =
|
|
11230
|
+
}, "cycle")), A2.length > 0) {
|
|
11231
|
+
let e3 = A2[0].name;
|
|
11217
11232
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11218
11233
|
children: [
|
|
11219
11234
|
(0, import_jsx_runtime.jsx)("p", {
|
|
11220
11235
|
className: "text-muted-foreground font-medium",
|
|
11221
11236
|
children: "This cell redefines variables from other cells."
|
|
11222
11237
|
}),
|
|
11223
|
-
|
|
11238
|
+
A2.map(_temp25),
|
|
11224
11239
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11225
|
-
errors:
|
|
11240
|
+
errors: A2,
|
|
11226
11241
|
cellId: i
|
|
11227
11242
|
}),
|
|
11228
11243
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -11274,7 +11289,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11274
11289
|
size: "xs",
|
|
11275
11290
|
variant: "link",
|
|
11276
11291
|
className: "my-2 font-normal mx-0 px-0",
|
|
11277
|
-
onClick:
|
|
11292
|
+
onClick: Sj,
|
|
11278
11293
|
children: [
|
|
11279
11294
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11280
11295
|
className: "h-3"
|
|
@@ -11293,11 +11308,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11293
11308
|
]
|
|
11294
11309
|
}, "multiple-defs"));
|
|
11295
11310
|
}
|
|
11296
|
-
return
|
|
11311
|
+
return M.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11297
11312
|
children: [
|
|
11298
|
-
|
|
11313
|
+
M.map(_temp26),
|
|
11299
11314
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11300
|
-
errors:
|
|
11315
|
+
errors: M,
|
|
11301
11316
|
cellId: i
|
|
11302
11317
|
}),
|
|
11303
11318
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -11365,11 +11380,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11365
11380
|
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
11381
|
})
|
|
11367
11382
|
]
|
|
11368
|
-
}, "strict-exception")),
|
|
11383
|
+
}, "strict-exception")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11369
11384
|
children: [
|
|
11370
|
-
|
|
11385
|
+
K.map(_temp32),
|
|
11371
11386
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11372
|
-
errors:
|
|
11387
|
+
errors: K,
|
|
11373
11388
|
cellId: i
|
|
11374
11389
|
})
|
|
11375
11390
|
]
|
|
@@ -11389,23 +11404,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11389
11404
|
cellId: i
|
|
11390
11405
|
})
|
|
11391
11406
|
]
|
|
11392
|
-
}, "ancestor-stopped")),
|
|
11407
|
+
}, "ancestor-stopped")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11393
11408
|
children: [
|
|
11394
|
-
|
|
11409
|
+
$.map(_temp35),
|
|
11395
11410
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11396
|
-
errors:
|
|
11411
|
+
errors: $,
|
|
11397
11412
|
cellId: i,
|
|
11398
11413
|
className: "mt-2.5"
|
|
11399
11414
|
})
|
|
11400
11415
|
]
|
|
11401
11416
|
}, "sql-errors")), t2;
|
|
11402
|
-
},
|
|
11403
|
-
t[17] !==
|
|
11404
|
-
className:
|
|
11417
|
+
}, wj = `font-code font-medium tracking-wide ${h}`, Tj;
|
|
11418
|
+
t[17] !== wj || t[18] !== c ? (Tj = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11419
|
+
className: wj,
|
|
11405
11420
|
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 =
|
|
11421
|
+
}), t[17] = wj, t[18] = c, t[19] = Tj) : Tj = t[19];
|
|
11422
|
+
let Ej = Tj;
|
|
11423
|
+
_ = 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 = Ej, v = "flex flex-col gap-8", y = Cj(), 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
11424
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11410
11425
|
let O;
|
|
11411
11426
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -11414,15 +11429,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11414
11429
|
children: y
|
|
11415
11430
|
})
|
|
11416
11431
|
}), t[22] = v, t[23] = y, t[24] = O) : O = t[24];
|
|
11417
|
-
let
|
|
11418
|
-
return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (
|
|
11432
|
+
let A;
|
|
11433
|
+
return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (A = (0, import_jsx_runtime.jsxs)(_, {
|
|
11419
11434
|
variant: S,
|
|
11420
11435
|
className: w,
|
|
11421
11436
|
children: [
|
|
11422
11437
|
E,
|
|
11423
11438
|
O
|
|
11424
11439
|
]
|
|
11425
|
-
}), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] =
|
|
11440
|
+
}), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
|
|
11426
11441
|
};
|
|
11427
11442
|
function _temp$3(e) {
|
|
11428
11443
|
return e.type === "interruption";
|
|
@@ -12294,7 +12309,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12294
12309
|
}, [
|
|
12295
12310
|
h
|
|
12296
12311
|
]), k(() => {
|
|
12297
|
-
U(6,
|
|
12312
|
+
U(6, bj);
|
|
12298
12313
|
}, []);
|
|
12299
12314
|
let K = import_react.useMemo(() => ({
|
|
12300
12315
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12303,7 +12318,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12303
12318
|
var _a2;
|
|
12304
12319
|
var a2, o2, s2;
|
|
12305
12320
|
if (!Object.is(n.current[e2], t2)) {
|
|
12306
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
12321
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, yj);
|
|
12307
12322
|
else if (e2 === "value") {
|
|
12308
12323
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12309
12324
|
let e3 = document.getElementById(I);
|
|
@@ -12311,8 +12326,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12311
12326
|
}
|
|
12312
12327
|
if (U(7, () => {
|
|
12313
12328
|
var _a3;
|
|
12314
|
-
n.current.selectedItemId = (_a3 =
|
|
12315
|
-
}), i2 || U(5,
|
|
12329
|
+
n.current.selectedItemId = (_a3 = xj()) == null ? void 0 : _a3.id, K.emit();
|
|
12330
|
+
}), i2 || U(5, bj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12316
12331
|
let e3 = t2 ?? "";
|
|
12317
12332
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12318
12333
|
return;
|
|
@@ -12324,25 +12339,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12324
12339
|
emit: () => {
|
|
12325
12340
|
s.current.forEach((e2) => e2());
|
|
12326
12341
|
}
|
|
12327
|
-
}), []),
|
|
12342
|
+
}), []), q = import_react.useMemo(() => ({
|
|
12328
12343
|
value: (e2, t2, i2) => {
|
|
12329
12344
|
var _a2;
|
|
12330
12345
|
t2 !== ((_a2 = o.current.get(e2)) == null ? void 0 : _a2.value) && (o.current.set(e2, {
|
|
12331
12346
|
value: t2,
|
|
12332
12347
|
keywords: i2
|
|
12333
|
-
}), n.current.filtered.items.set(e2,
|
|
12334
|
-
|
|
12348
|
+
}), n.current.filtered.items.set(e2, J(t2, i2)), U(2, () => {
|
|
12349
|
+
Q(), K.emit();
|
|
12335
12350
|
}));
|
|
12336
12351
|
},
|
|
12337
12352
|
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
12353
|
e2
|
|
12339
12354
|
]))), U(3, () => {
|
|
12340
|
-
|
|
12355
|
+
$(), Q(), n.current.value || yj(), K.emit();
|
|
12341
12356
|
}), () => {
|
|
12342
12357
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12343
|
-
let t3 =
|
|
12358
|
+
let t3 = xj();
|
|
12344
12359
|
U(4, () => {
|
|
12345
|
-
|
|
12360
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && yj(), K.emit();
|
|
12346
12361
|
});
|
|
12347
12362
|
}),
|
|
12348
12363
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12356,12 +12371,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12356
12371
|
labelId: M,
|
|
12357
12372
|
listInnerRef: z
|
|
12358
12373
|
}), []);
|
|
12359
|
-
function
|
|
12374
|
+
function J(e2, t2) {
|
|
12360
12375
|
var _a2;
|
|
12361
12376
|
let i2 = ((_a2 = c.current) == null ? void 0 : _a2.filter) ?? Re;
|
|
12362
12377
|
return e2 ? i2(e2, n.current.search, t2) : 0;
|
|
12363
12378
|
}
|
|
12364
|
-
function
|
|
12379
|
+
function Q() {
|
|
12365
12380
|
if (!n.current.search || c.current.shouldFilter === false) return;
|
|
12366
12381
|
let e2 = n.current.filtered.items, t2 = [];
|
|
12367
12382
|
n.current.filtered.groups.forEach((n2) => {
|
|
@@ -12375,7 +12390,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12375
12390
|
]);
|
|
12376
12391
|
});
|
|
12377
12392
|
let i2 = z.current;
|
|
12378
|
-
|
|
12393
|
+
Sj().sort((t3, n2) => {
|
|
12379
12394
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12380
12395
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12381
12396
|
}).forEach((e3) => {
|
|
@@ -12387,12 +12402,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12387
12402
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12388
12403
|
});
|
|
12389
12404
|
}
|
|
12390
|
-
function
|
|
12405
|
+
function yj() {
|
|
12391
12406
|
var _a2;
|
|
12392
|
-
let e2 = (_a2 =
|
|
12407
|
+
let e2 = (_a2 = Sj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12393
12408
|
K.setState("value", e2 || void 0);
|
|
12394
12409
|
}
|
|
12395
|
-
function
|
|
12410
|
+
function $() {
|
|
12396
12411
|
var _a2, _b;
|
|
12397
12412
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
12398
12413
|
n.current.filtered.count = i.current.size;
|
|
@@ -12401,7 +12416,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12401
12416
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
12402
12417
|
let e2 = 0;
|
|
12403
12418
|
for (let t2 of i.current) {
|
|
12404
|
-
let i2 =
|
|
12419
|
+
let i2 = J(((_a2 = o.current.get(t2)) == null ? void 0 : _a2.value) ?? "", ((_b = o.current.get(t2)) == null ? void 0 : _b.keywords) ?? []);
|
|
12405
12420
|
n.current.filtered.items.set(t2, i2), i2 > 0 && e2++;
|
|
12406
12421
|
}
|
|
12407
12422
|
for (let [e3, t2] of a.current) for (let i2 of t2) if (n.current.filtered.items.get(i2) > 0) {
|
|
@@ -12410,43 +12425,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12410
12425
|
}
|
|
12411
12426
|
n.current.filtered.count = e2;
|
|
12412
12427
|
}
|
|
12413
|
-
function
|
|
12428
|
+
function bj() {
|
|
12414
12429
|
var _a2, _b;
|
|
12415
12430
|
var e2;
|
|
12416
|
-
let t2 =
|
|
12431
|
+
let t2 = xj();
|
|
12417
12432
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
12418
12433
|
block: "nearest"
|
|
12419
12434
|
})), t2.scrollIntoView({
|
|
12420
12435
|
block: "nearest"
|
|
12421
12436
|
}));
|
|
12422
12437
|
}
|
|
12423
|
-
function
|
|
12438
|
+
function xj() {
|
|
12424
12439
|
var _a2;
|
|
12425
12440
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12426
12441
|
}
|
|
12427
|
-
function
|
|
12442
|
+
function Sj() {
|
|
12428
12443
|
var _a2;
|
|
12429
12444
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12430
12445
|
}
|
|
12431
|
-
function
|
|
12432
|
-
let t2 =
|
|
12446
|
+
function Cj(e2) {
|
|
12447
|
+
let t2 = Sj()[e2];
|
|
12433
12448
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12434
12449
|
}
|
|
12435
|
-
function
|
|
12450
|
+
function wj(e2) {
|
|
12436
12451
|
var t2;
|
|
12437
|
-
let n2 =
|
|
12452
|
+
let n2 = xj(), i2 = Sj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12438
12453
|
(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
12454
|
}
|
|
12440
|
-
function
|
|
12455
|
+
function Tj(e2) {
|
|
12441
12456
|
var _a2;
|
|
12442
|
-
let t2 = (_a2 =
|
|
12457
|
+
let t2 = (_a2 = xj()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12443
12458
|
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)) :
|
|
12459
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : wj(e2);
|
|
12445
12460
|
}
|
|
12446
|
-
let
|
|
12447
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12448
|
-
},
|
|
12449
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12461
|
+
let Ej = () => Cj(Sj().length - 1), Dj = (e2) => {
|
|
12462
|
+
e2.preventDefault(), e2.metaKey ? Ej() : e2.altKey ? Tj(1) : wj(1);
|
|
12463
|
+
}, Oj = (e2) => {
|
|
12464
|
+
e2.preventDefault(), e2.metaKey ? Cj(0) : e2.altKey ? Tj(-1) : wj(-1);
|
|
12450
12465
|
};
|
|
12451
12466
|
return import_react.createElement(Primitive.div, {
|
|
12452
12467
|
ref: t,
|
|
@@ -12460,27 +12475,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12460
12475
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12461
12476
|
case "n":
|
|
12462
12477
|
case "j":
|
|
12463
|
-
E && e2.ctrlKey &&
|
|
12478
|
+
E && e2.ctrlKey && Dj(e2);
|
|
12464
12479
|
break;
|
|
12465
12480
|
case "ArrowDown":
|
|
12466
|
-
|
|
12481
|
+
Dj(e2);
|
|
12467
12482
|
break;
|
|
12468
12483
|
case "p":
|
|
12469
12484
|
case "k":
|
|
12470
|
-
E && e2.ctrlKey &&
|
|
12485
|
+
E && e2.ctrlKey && Oj(e2);
|
|
12471
12486
|
break;
|
|
12472
12487
|
case "ArrowUp":
|
|
12473
|
-
|
|
12488
|
+
Oj(e2);
|
|
12474
12489
|
break;
|
|
12475
12490
|
case "Home":
|
|
12476
|
-
e2.preventDefault(),
|
|
12491
|
+
e2.preventDefault(), Cj(0);
|
|
12477
12492
|
break;
|
|
12478
12493
|
case "End":
|
|
12479
|
-
e2.preventDefault(),
|
|
12494
|
+
e2.preventDefault(), Ej();
|
|
12480
12495
|
break;
|
|
12481
12496
|
case "Enter": {
|
|
12482
12497
|
e2.preventDefault();
|
|
12483
|
-
let t3 =
|
|
12498
|
+
let t3 = xj();
|
|
12484
12499
|
if (t3) {
|
|
12485
12500
|
let e3 = new Event(Z);
|
|
12486
12501
|
t3.dispatchEvent(e3);
|
|
@@ -12490,13 +12505,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12490
12505
|
}
|
|
12491
12506
|
}, import_react.createElement("label", {
|
|
12492
12507
|
"cmdk-label": "",
|
|
12493
|
-
htmlFor:
|
|
12494
|
-
id:
|
|
12508
|
+
htmlFor: q.inputId,
|
|
12509
|
+
id: q.labelId,
|
|
12495
12510
|
style: Te
|
|
12496
12511
|
}, d), B(e, (e2) => import_react.createElement(de.Provider, {
|
|
12497
12512
|
value: K
|
|
12498
12513
|
}, import_react.createElement(ue$1.Provider, {
|
|
12499
|
-
value:
|
|
12514
|
+
value: q
|
|
12500
12515
|
}, e2))));
|
|
12501
12516
|
}), he$1 = import_react.forwardRef((e, t) => {
|
|
12502
12517
|
var _a2;
|
|
@@ -16243,11 +16258,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16243
16258
|
}, U = [
|
|
16244
16259
|
n
|
|
16245
16260
|
], 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:
|
|
16249
|
-
children:
|
|
16250
|
-
}), t[10] =
|
|
16261
|
+
let K = d && !y ? false : _, q = d ? E : null, J = K ? i : a, Q;
|
|
16262
|
+
return t[10] !== q || t[11] !== J ? (Q = (0, import_jsx_runtime.jsx)("div", {
|
|
16263
|
+
ref: q,
|
|
16264
|
+
children: J
|
|
16265
|
+
}), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
|
|
16251
16266
|
};
|
|
16252
16267
|
var import_compiler_runtime$22 = require_compiler_runtime();
|
|
16253
16268
|
const DatePopover = (e) => {
|
|
@@ -18473,7 +18488,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18473
18488
|
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
18489
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18475
18490
|
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:
|
|
18491
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, yj = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18477
18492
|
callbacks: {
|
|
18478
18493
|
onCollapse: f,
|
|
18479
18494
|
onExpand: h,
|
|
@@ -18486,72 +18501,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18486
18501
|
maxSize: c,
|
|
18487
18502
|
minSize: d
|
|
18488
18503
|
},
|
|
18489
|
-
id:
|
|
18504
|
+
id: yj,
|
|
18490
18505
|
idIsFromProps: s !== void 0,
|
|
18491
18506
|
order: v
|
|
18492
18507
|
});
|
|
18493
18508
|
(0, import_react.useRef)({
|
|
18494
18509
|
didLogMissingDefaultSizeWarning: false
|
|
18495
18510
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18496
|
-
let { callbacks: e2, constraints: t2 } =
|
|
18511
|
+
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18497
18512
|
...t2
|
|
18498
18513
|
};
|
|
18499
|
-
|
|
18514
|
+
$.current.id = yj, $.current.idIsFromProps = s !== void 0, $.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($.current, o2);
|
|
18500
18515
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18501
|
-
let e2 =
|
|
18502
|
-
return
|
|
18503
|
-
|
|
18516
|
+
let e2 = $.current;
|
|
18517
|
+
return q(e2), () => {
|
|
18518
|
+
Q(e2);
|
|
18504
18519
|
};
|
|
18505
18520
|
}, [
|
|
18506
18521
|
v,
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18522
|
+
yj,
|
|
18523
|
+
q,
|
|
18524
|
+
Q
|
|
18510
18525
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
18511
18526
|
collapse: () => {
|
|
18512
|
-
O(
|
|
18527
|
+
O($.current);
|
|
18513
18528
|
},
|
|
18514
18529
|
expand: (e2) => {
|
|
18515
|
-
A(
|
|
18530
|
+
A($.current, e2);
|
|
18516
18531
|
},
|
|
18517
18532
|
getId() {
|
|
18518
|
-
return
|
|
18533
|
+
return yj;
|
|
18519
18534
|
},
|
|
18520
18535
|
getSize() {
|
|
18521
|
-
return M(
|
|
18536
|
+
return M($.current);
|
|
18522
18537
|
},
|
|
18523
18538
|
isCollapsed() {
|
|
18524
|
-
return U(
|
|
18539
|
+
return U($.current);
|
|
18525
18540
|
},
|
|
18526
18541
|
isExpanded() {
|
|
18527
|
-
return !U(
|
|
18542
|
+
return !U($.current);
|
|
18528
18543
|
},
|
|
18529
18544
|
resize: (e2) => {
|
|
18530
|
-
|
|
18545
|
+
J($.current, e2);
|
|
18531
18546
|
}
|
|
18532
18547
|
}), [
|
|
18533
18548
|
O,
|
|
18534
18549
|
A,
|
|
18535
18550
|
M,
|
|
18536
18551
|
U,
|
|
18537
|
-
|
|
18538
|
-
|
|
18552
|
+
yj,
|
|
18553
|
+
J
|
|
18539
18554
|
]);
|
|
18540
|
-
let
|
|
18555
|
+
let bj = I($.current, a);
|
|
18541
18556
|
return (0, import_react.createElement)(S, {
|
|
18542
18557
|
...w,
|
|
18543
18558
|
children: e,
|
|
18544
18559
|
className: t,
|
|
18545
|
-
id:
|
|
18560
|
+
id: yj,
|
|
18546
18561
|
style: {
|
|
18547
|
-
...
|
|
18562
|
+
...bj,
|
|
18548
18563
|
...y
|
|
18549
18564
|
},
|
|
18550
18565
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
18551
18566
|
[DATA_ATTRIBUTES.panel]: "",
|
|
18552
18567
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
18553
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
18554
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
18568
|
+
[DATA_ATTRIBUTES.panelId]: yj,
|
|
18569
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + bj.flexGrow).toFixed(1)
|
|
18555
18570
|
});
|
|
18556
18571
|
}
|
|
18557
18572
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19288,7 +19303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19288
19303
|
d
|
|
19289
19304
|
]), (0, import_react.useEffect)(() => {
|
|
19290
19305
|
});
|
|
19291
|
-
let
|
|
19306
|
+
let q = (0, import_react.useCallback)((e2) => {
|
|
19292
19307
|
let { onLayout: t2 } = U.current, { layout: n2, panelDataArray: i2 } = K.current;
|
|
19293
19308
|
if (e2.constraints.collapsible) {
|
|
19294
19309
|
let a2 = i2.map((e3) => e3.constraints), { collapsedSize: o2 = 0, panelSize: s2, pivotIndices: c2 } = panelDataHelper(i2, e2, n2);
|
|
@@ -19305,7 +19320,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19305
19320
|
compareLayouts(n2, d2) || (O(d2), K.current.layout = d2, t2 && t2(d2), callPanelCallbacks(i2, d2, M.current));
|
|
19306
19321
|
}
|
|
19307
19322
|
}
|
|
19308
|
-
}, []),
|
|
19323
|
+
}, []), J = (0, import_react.useCallback)((e2, t2) => {
|
|
19309
19324
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current;
|
|
19310
19325
|
if (e2.constraints.collapsible) {
|
|
19311
19326
|
let o2 = a2.map((e3) => e3.constraints), { collapsedSize: s2 = 0, panelSize: c2 = 0, minSize: d2 = 0, pivotIndices: f2 } = panelDataHelper(a2, e2, i2), h2 = t2 ?? d2;
|
|
@@ -19321,10 +19336,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19321
19336
|
compareLayouts(i2, d3) || (O(d3), K.current.layout = d3, n2 && n2(d3), callPanelCallbacks(a2, d3, M.current));
|
|
19322
19337
|
}
|
|
19323
19338
|
}
|
|
19324
|
-
}, []),
|
|
19339
|
+
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19325
19340
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19326
19341
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19327
|
-
}, []),
|
|
19342
|
+
}, []), yj = (0, import_react.useCallback)((e2, t2) => {
|
|
19328
19343
|
let { panelDataArray: n2 } = K.current;
|
|
19329
19344
|
return computePanelFlexBoxStyle({
|
|
19330
19345
|
defaultSize: t2,
|
|
@@ -19336,13 +19351,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19336
19351
|
}, [
|
|
19337
19352
|
S,
|
|
19338
19353
|
E
|
|
19339
|
-
]),
|
|
19354
|
+
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19340
19355
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19341
19356
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19342
|
-
}, []),
|
|
19357
|
+
}, []), bj = (0, import_react.useCallback)((e2) => {
|
|
19343
19358
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19344
19359
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19345
|
-
}, []),
|
|
19360
|
+
}, []), xj = (0, import_react.useCallback)((e2) => {
|
|
19346
19361
|
let { panelDataArray: t2 } = K.current;
|
|
19347
19362
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19348
19363
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19374,7 +19389,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19374
19389
|
e2.layout = [];
|
|
19375
19390
|
};
|
|
19376
19391
|
}, []);
|
|
19377
|
-
let
|
|
19392
|
+
let Sj = (0, import_react.useCallback)((e2) => {
|
|
19378
19393
|
let t2 = false, n2 = y.current;
|
|
19379
19394
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19380
19395
|
n3.preventDefault();
|
|
@@ -19392,7 +19407,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19392
19407
|
}), I2 = !compareLayouts(f2, A2);
|
|
19393
19408
|
(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
19409
|
};
|
|
19395
|
-
}, []),
|
|
19410
|
+
}, []), Cj = (0, import_react.useCallback)((e2, t2) => {
|
|
19396
19411
|
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
19412
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19398
19413
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19404,12 +19419,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19404
19419
|
trigger: "imperative-api"
|
|
19405
19420
|
});
|
|
19406
19421
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19407
|
-
}, []),
|
|
19422
|
+
}, []), wj = (0, import_react.useCallback)((e2, t2) => {
|
|
19408
19423
|
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) ||
|
|
19424
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || Cj(e2, s2) : h2 < f2 ? Cj(e2, f2) : h2 > d2 && Cj(e2, d2));
|
|
19410
19425
|
}, [
|
|
19411
|
-
|
|
19412
|
-
]),
|
|
19426
|
+
Cj
|
|
19427
|
+
]), Tj = (0, import_react.useCallback)((e2, t2) => {
|
|
19413
19428
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19414
19429
|
if (!y.current) return;
|
|
19415
19430
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19421,49 +19436,49 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19421
19436
|
initialCursorPosition: o2,
|
|
19422
19437
|
initialLayout: i2
|
|
19423
19438
|
});
|
|
19424
|
-
}, []),
|
|
19439
|
+
}, []), Ej = (0, import_react.useCallback)(() => {
|
|
19425
19440
|
w(null);
|
|
19426
|
-
}, []),
|
|
19441
|
+
}, []), Dj = (0, import_react.useCallback)((e2) => {
|
|
19427
19442
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19428
19443
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19429
19444
|
}, [
|
|
19430
19445
|
A
|
|
19431
|
-
]),
|
|
19432
|
-
collapsePanel:
|
|
19446
|
+
]), Oj = (0, import_react.useMemo)(() => ({
|
|
19447
|
+
collapsePanel: q,
|
|
19433
19448
|
direction: i,
|
|
19434
19449
|
dragState: S,
|
|
19435
|
-
expandPanel:
|
|
19436
|
-
getPanelSize:
|
|
19437
|
-
getPanelStyle:
|
|
19450
|
+
expandPanel: J,
|
|
19451
|
+
getPanelSize: Q,
|
|
19452
|
+
getPanelStyle: yj,
|
|
19438
19453
|
groupId: v,
|
|
19439
|
-
isPanelCollapsed:
|
|
19440
|
-
isPanelExpanded:
|
|
19441
|
-
reevaluatePanelConstraints:
|
|
19442
|
-
registerPanel:
|
|
19443
|
-
registerResizeHandle:
|
|
19444
|
-
resizePanel:
|
|
19445
|
-
startDragging:
|
|
19446
|
-
stopDragging:
|
|
19447
|
-
unregisterPanel:
|
|
19454
|
+
isPanelCollapsed: $,
|
|
19455
|
+
isPanelExpanded: bj,
|
|
19456
|
+
reevaluatePanelConstraints: wj,
|
|
19457
|
+
registerPanel: xj,
|
|
19458
|
+
registerResizeHandle: Sj,
|
|
19459
|
+
resizePanel: Cj,
|
|
19460
|
+
startDragging: Tj,
|
|
19461
|
+
stopDragging: Ej,
|
|
19462
|
+
unregisterPanel: Dj,
|
|
19448
19463
|
panelGroupElement: y.current
|
|
19449
19464
|
}), [
|
|
19450
|
-
|
|
19465
|
+
q,
|
|
19451
19466
|
S,
|
|
19452
19467
|
i,
|
|
19453
|
-
q,
|
|
19454
19468
|
J,
|
|
19455
|
-
sj,
|
|
19456
|
-
v,
|
|
19457
19469
|
Q,
|
|
19458
|
-
|
|
19459
|
-
|
|
19470
|
+
yj,
|
|
19471
|
+
v,
|
|
19460
19472
|
$,
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19473
|
+
bj,
|
|
19474
|
+
wj,
|
|
19475
|
+
xj,
|
|
19476
|
+
Sj,
|
|
19477
|
+
Cj,
|
|
19478
|
+
Tj,
|
|
19479
|
+
Ej,
|
|
19480
|
+
Dj
|
|
19481
|
+
]), kj = {
|
|
19467
19482
|
display: "flex",
|
|
19468
19483
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19469
19484
|
height: "100%",
|
|
@@ -19471,7 +19486,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19471
19486
|
width: "100%"
|
|
19472
19487
|
};
|
|
19473
19488
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19474
|
-
value:
|
|
19489
|
+
value: Oj
|
|
19475
19490
|
}, (0, import_react.createElement)(h, {
|
|
19476
19491
|
..._,
|
|
19477
19492
|
children: t,
|
|
@@ -19479,7 +19494,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19479
19494
|
id: o,
|
|
19480
19495
|
ref: y,
|
|
19481
19496
|
style: {
|
|
19482
|
-
...
|
|
19497
|
+
...kj,
|
|
19483
19498
|
...f
|
|
19484
19499
|
},
|
|
19485
19500
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -19556,50 +19571,50 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19556
19571
|
});
|
|
19557
19572
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
19558
19573
|
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,
|
|
19560
|
-
state:
|
|
19574
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [yj, $] = (0, import_react.useState)(false), [bj, xj] = (0, import_react.useState)(null), Sj = (0, import_react.useRef)({
|
|
19575
|
+
state: J
|
|
19561
19576
|
});
|
|
19562
19577
|
useIsomorphicLayoutEffect$1(() => {
|
|
19563
|
-
|
|
19578
|
+
Sj.current.state = J;
|
|
19564
19579
|
}), (0, import_react.useEffect)(() => {
|
|
19565
|
-
if (n)
|
|
19580
|
+
if (n) xj(null);
|
|
19566
19581
|
else {
|
|
19567
|
-
let e2 = I(
|
|
19568
|
-
|
|
19582
|
+
let e2 = I(q);
|
|
19583
|
+
xj(() => e2);
|
|
19569
19584
|
}
|
|
19570
19585
|
}, [
|
|
19571
19586
|
n,
|
|
19572
|
-
|
|
19587
|
+
q,
|
|
19573
19588
|
I
|
|
19574
19589
|
]);
|
|
19575
|
-
let
|
|
19590
|
+
let Cj = (i == null ? void 0 : i.coarse) ?? 15, wj = (i == null ? void 0 : i.fine) ?? 5;
|
|
19576
19591
|
(0, import_react.useEffect)(() => {
|
|
19577
|
-
if (n ||
|
|
19592
|
+
if (n || bj == null) return;
|
|
19578
19593
|
let e2 = w.current;
|
|
19579
19594
|
assert(e2, "Element ref not attached");
|
|
19580
19595
|
let t2 = false;
|
|
19581
|
-
return registerResizeHandle(
|
|
19582
|
-
coarse:
|
|
19583
|
-
fine:
|
|
19596
|
+
return registerResizeHandle(q, e2, A, {
|
|
19597
|
+
coarse: Cj,
|
|
19598
|
+
fine: wj
|
|
19584
19599
|
}, (e3, n2, i2) => {
|
|
19585
19600
|
if (!n2) {
|
|
19586
|
-
|
|
19601
|
+
Q("inactive");
|
|
19587
19602
|
return;
|
|
19588
19603
|
}
|
|
19589
19604
|
switch (e3) {
|
|
19590
19605
|
case "down": {
|
|
19591
|
-
|
|
19606
|
+
Q("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(q, i2);
|
|
19592
19607
|
let { onDragging: e4, onPointerDown: n3 } = E.current;
|
|
19593
19608
|
e4 == null ? void 0 : e4(true), n3 == null ? void 0 : n3();
|
|
19594
19609
|
break;
|
|
19595
19610
|
}
|
|
19596
19611
|
case "move": {
|
|
19597
|
-
let { state: e4 } =
|
|
19598
|
-
t2 = true, e4 !== "drag" &&
|
|
19612
|
+
let { state: e4 } = Sj.current;
|
|
19613
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), bj(i2);
|
|
19599
19614
|
break;
|
|
19600
19615
|
}
|
|
19601
19616
|
case "up": {
|
|
19602
|
-
|
|
19617
|
+
Q("hover"), U();
|
|
19603
19618
|
let { onClick: e4, onDragging: n3, onPointerUp: i3 } = E.current;
|
|
19604
19619
|
n3 == null ? void 0 : n3(false), i3 == null ? void 0 : i3(), t2 || (e4 == null ? void 0 : e4());
|
|
19605
19620
|
break;
|
|
@@ -19607,22 +19622,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19607
19622
|
}
|
|
19608
19623
|
});
|
|
19609
19624
|
}, [
|
|
19610
|
-
|
|
19625
|
+
Cj,
|
|
19611
19626
|
A,
|
|
19612
19627
|
n,
|
|
19613
|
-
|
|
19628
|
+
wj,
|
|
19614
19629
|
I,
|
|
19615
|
-
|
|
19616
|
-
|
|
19630
|
+
q,
|
|
19631
|
+
bj,
|
|
19617
19632
|
z,
|
|
19618
19633
|
U
|
|
19619
19634
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
19620
19635
|
disabled: n,
|
|
19621
|
-
handleId:
|
|
19622
|
-
resizeHandler:
|
|
19636
|
+
handleId: q,
|
|
19637
|
+
resizeHandler: bj,
|
|
19623
19638
|
panelGroupElement: K
|
|
19624
19639
|
});
|
|
19625
|
-
let
|
|
19640
|
+
let Tj = {
|
|
19626
19641
|
touchAction: "none",
|
|
19627
19642
|
userSelect: "none"
|
|
19628
19643
|
};
|
|
@@ -19632,25 +19647,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19632
19647
|
className: t,
|
|
19633
19648
|
id: a,
|
|
19634
19649
|
onBlur: () => {
|
|
19635
|
-
|
|
19650
|
+
$(false), o == null ? void 0 : o();
|
|
19636
19651
|
},
|
|
19637
19652
|
onFocus: () => {
|
|
19638
|
-
|
|
19653
|
+
$(true), d == null ? void 0 : d();
|
|
19639
19654
|
},
|
|
19640
19655
|
ref: w,
|
|
19641
19656
|
role: "separator",
|
|
19642
19657
|
style: {
|
|
19643
|
-
...
|
|
19658
|
+
...Tj,
|
|
19644
19659
|
..._
|
|
19645
19660
|
},
|
|
19646
19661
|
tabIndex: v,
|
|
19647
19662
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
19648
19663
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
19649
19664
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
19650
|
-
[DATA_ATTRIBUTES.resizeHandleActive]:
|
|
19665
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : yj ? "keyboard" : void 0,
|
|
19651
19666
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
19652
|
-
[DATA_ATTRIBUTES.resizeHandleId]:
|
|
19653
|
-
[DATA_ATTRIBUTES.resizeHandleState]:
|
|
19667
|
+
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
19668
|
+
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
19654
19669
|
});
|
|
19655
19670
|
}
|
|
19656
19671
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
@@ -21580,7 +21595,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21580
21595
|
})
|
|
21581
21596
|
]
|
|
21582
21597
|
}, e2.id);
|
|
21583
|
-
},
|
|
21598
|
+
}, q = t.length <= 4, J = t.length + (q ? 1 : 0);
|
|
21584
21599
|
return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
|
|
21585
21600
|
tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
21586
21601
|
onKeyDown: w,
|
|
@@ -21589,7 +21604,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21589
21604
|
var _a2, _b;
|
|
21590
21605
|
if (c.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
21591
21606
|
children: (0, import_jsx_runtime.jsx)(TableCell, {
|
|
21592
|
-
colSpan:
|
|
21607
|
+
colSpan: J,
|
|
21593
21608
|
className: "h-24 text-center",
|
|
21594
21609
|
children: "No results."
|
|
21595
21610
|
})
|
|
@@ -21604,7 +21619,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21604
21619
|
height: e2[0].start
|
|
21605
21620
|
},
|
|
21606
21621
|
children: (0, import_jsx_runtime.jsx)("td", {
|
|
21607
|
-
colSpan:
|
|
21622
|
+
colSpan: J
|
|
21608
21623
|
})
|
|
21609
21624
|
}),
|
|
21610
21625
|
e2.map((e3) => K(c[e3.index])),
|
|
@@ -21614,7 +21629,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
21614
21629
|
height: t2 - (((_b = e2.at(-1)) == null ? void 0 : _b.end) ?? t2)
|
|
21615
21630
|
},
|
|
21616
21631
|
children: (0, import_jsx_runtime.jsx)("td", {
|
|
21617
|
-
colSpan:
|
|
21632
|
+
colSpan: J
|
|
21618
21633
|
})
|
|
21619
21634
|
})
|
|
21620
21635
|
]
|
|
@@ -22379,7 +22394,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22379
22394
|
filename: i2.filename
|
|
22380
22395
|
};
|
|
22381
22396
|
}, t[5] = e, t[6] = v);
|
|
22382
|
-
let w = v, E, O, A, M, I, z, U, K,
|
|
22397
|
+
let w = v, E, O, A, M, I, z, U, K, q, J, Q, yj, $;
|
|
22383
22398
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
|
|
22384
22399
|
let e2 = async (t2) => {
|
|
22385
22400
|
let n2 = await w(t2, () => {
|
|
@@ -22426,10 +22441,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22426
22441
|
content: "Export",
|
|
22427
22442
|
open: s2,
|
|
22428
22443
|
children: c2
|
|
22429
|
-
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent,
|
|
22444
|
+
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
22430
22445
|
className: "text-xs text-muted-foreground",
|
|
22431
22446
|
children: "Download"
|
|
22432
|
-
}), t[29] =
|
|
22447
|
+
}), t[29] = Q) : Q = t[29], yj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
22433
22448
|
onSelect: () => {
|
|
22434
22449
|
e2(t2.format);
|
|
22435
22450
|
},
|
|
@@ -22450,10 +22465,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22450
22465
|
]
|
|
22451
22466
|
})
|
|
22452
22467
|
]
|
|
22453
|
-
}, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22468
|
+
}, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), A = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
22454
22469
|
className: "text-xs text-muted-foreground",
|
|
22455
22470
|
children: "Copy to clipboard"
|
|
22456
|
-
}), t[30] = A, t[31] =
|
|
22471
|
+
}), t[30] = A, t[31] = $) : (A = t[30], $ = t[31]), M = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
22457
22472
|
onSelect: async () => {
|
|
22458
22473
|
try {
|
|
22459
22474
|
await a(e3.format);
|
|
@@ -22482,30 +22497,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22482
22497
|
]
|
|
22483
22498
|
})
|
|
22484
22499
|
]
|
|
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:
|
|
22490
|
-
className:
|
|
22500
|
+
}, 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] = q, t[20] = J, t[21] = Q, t[22] = yj, t[23] = $;
|
|
22501
|
+
} 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], q = t[19], J = t[20], Q = t[21], yj = t[22], $ = t[23];
|
|
22502
|
+
let bj;
|
|
22503
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== yj || t[39] !== $ ? (bj = (0, import_jsx_runtime.jsxs)(E, {
|
|
22504
|
+
side: q,
|
|
22505
|
+
className: J,
|
|
22491
22506
|
children: [
|
|
22492
|
-
J,
|
|
22493
|
-
sj,
|
|
22494
22507
|
Q,
|
|
22508
|
+
yj,
|
|
22509
|
+
$,
|
|
22495
22510
|
A,
|
|
22496
22511
|
M
|
|
22497
22512
|
]
|
|
22498
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] =
|
|
22499
|
-
let
|
|
22500
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
22513
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = yj, t[39] = $, t[40] = bj) : bj = t[40];
|
|
22514
|
+
let xj;
|
|
22515
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== bj ? (xj = (0, import_jsx_runtime.jsxs)(O, {
|
|
22501
22516
|
modal: I,
|
|
22502
22517
|
open: z,
|
|
22503
22518
|
onOpenChange: U,
|
|
22504
22519
|
children: [
|
|
22505
22520
|
K,
|
|
22506
|
-
|
|
22521
|
+
bj
|
|
22507
22522
|
]
|
|
22508
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
22523
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = bj, t[47] = xj) : xj = t[47], xj;
|
|
22509
22524
|
};
|
|
22510
22525
|
function fetchJson(e) {
|
|
22511
22526
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -22596,22 +22611,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22596
22611
|
]
|
|
22597
22612
|
}) : null;
|
|
22598
22613
|
};
|
|
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 [
|
|
22614
|
+
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: q, getRowIds: J, enableSearch: Q = false, searchQuery: yj, onSearchQueryChange: $, showFilters: bj = false, filters: xj, onFiltersChange: Sj, reloading: Cj, freezeColumnsLeft: wj, freezeColumnsRight: Tj, toggleDisplayHeader: Ej, showChartBuilder: Dj, isChartBuilderOpen: Oj, showPageSizeSelector: kj, showTableExplorer: Aj, togglePanel: jj, isPanelOpen: Mj, isAnyPanelOpen: Nj, viewedRowIdx: Pj, onViewedRowChange: Fj }) => {
|
|
22615
|
+
let [Ij, Lj] = import_react.useState(false), { locale: Rj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: zj, setColumnPinning: Bj } = useColumnPinning(wj, Tj);
|
|
22601
22616
|
import_react.useEffect(() => {
|
|
22602
22617
|
let e2;
|
|
22603
|
-
return
|
|
22604
|
-
|
|
22605
|
-
}, 300) :
|
|
22618
|
+
return Cj ? e2 = setTimeout(() => {
|
|
22619
|
+
Lj(true);
|
|
22620
|
+
}, 300) : Lj(false), () => {
|
|
22606
22621
|
e2 && clearTimeout(e2);
|
|
22607
22622
|
};
|
|
22608
22623
|
}, [
|
|
22609
|
-
|
|
22624
|
+
Cj
|
|
22610
22625
|
]);
|
|
22611
|
-
function
|
|
22626
|
+
function Vj(e2, t2) {
|
|
22612
22627
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
22613
22628
|
}
|
|
22614
|
-
let
|
|
22629
|
+
let Hj = useReactTable({
|
|
22615
22630
|
_features: [
|
|
22616
22631
|
ColumnPinning,
|
|
22617
22632
|
ColumnWrappingFeature,
|
|
@@ -22635,11 +22650,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22635
22650
|
getRowId: (e2, t2) => {
|
|
22636
22651
|
let n2 = getStableRowId(e2);
|
|
22637
22652
|
if (n2) return n2;
|
|
22638
|
-
let i2 =
|
|
22653
|
+
let i2 = Vj(e2, t2);
|
|
22639
22654
|
return String(i2);
|
|
22640
22655
|
}
|
|
22641
22656
|
} : {},
|
|
22642
|
-
locale:
|
|
22657
|
+
locale: Rj,
|
|
22643
22658
|
manualPagination: z,
|
|
22644
22659
|
getPaginationRowModel: getPaginationRowModel(),
|
|
22645
22660
|
...v ? {
|
|
@@ -22649,21 +22664,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22649
22664
|
enableMultiSort: true,
|
|
22650
22665
|
getSortedRowModel: getSortedRowModel(),
|
|
22651
22666
|
manualFiltering: true,
|
|
22652
|
-
enableColumnFilters:
|
|
22667
|
+
enableColumnFilters: bj,
|
|
22653
22668
|
getFilteredRowModel: getFilteredRowModel(),
|
|
22654
|
-
onColumnFiltersChange:
|
|
22669
|
+
onColumnFiltersChange: Sj,
|
|
22655
22670
|
onRowSelectionChange: K,
|
|
22656
|
-
onCellSelectionChange:
|
|
22671
|
+
onCellSelectionChange: q,
|
|
22657
22672
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
22658
22673
|
enableMultiCellSelection: c === "multi-cell",
|
|
22659
|
-
onColumnPinningChange:
|
|
22674
|
+
onColumnPinningChange: Bj,
|
|
22660
22675
|
enableFocusRow: true,
|
|
22661
|
-
onFocusRowChange:
|
|
22676
|
+
onFocusRowChange: Fj,
|
|
22662
22677
|
state: {
|
|
22663
22678
|
..._ ? {
|
|
22664
22679
|
sorting: _
|
|
22665
22680
|
} : {},
|
|
22666
|
-
columnFilters:
|
|
22681
|
+
columnFilters: xj,
|
|
22667
22682
|
...A ? {
|
|
22668
22683
|
pagination: A
|
|
22669
22684
|
} : U && !A ? {} : {
|
|
@@ -22675,20 +22690,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22675
22690
|
rowSelection: y ?? {},
|
|
22676
22691
|
cellSelection: S ?? [],
|
|
22677
22692
|
cellStyling: w,
|
|
22678
|
-
columnPinning:
|
|
22693
|
+
columnPinning: zj,
|
|
22679
22694
|
cellHoverTemplate: E,
|
|
22680
22695
|
cellHoverTexts: O ?? {}
|
|
22681
22696
|
}
|
|
22682
|
-
}),
|
|
22697
|
+
}), Uj = (Mj == null ? void 0 : Mj(PANEL_TYPES.ROW_VIEWER)) ?? false, Wj = !U && o.length > 100, Gj = useScrollContainerHeight({
|
|
22683
22698
|
maxHeight: n,
|
|
22684
|
-
virtualize:
|
|
22699
|
+
virtualize: Wj
|
|
22685
22700
|
});
|
|
22686
22701
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
22687
22702
|
className: cn(e, "flex flex-col space-y-1"),
|
|
22688
22703
|
children: [
|
|
22689
22704
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
22690
|
-
filters:
|
|
22691
|
-
table:
|
|
22705
|
+
filters: xj,
|
|
22706
|
+
table: Hj
|
|
22692
22707
|
}),
|
|
22693
22708
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
22694
22709
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -22696,33 +22711,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22696
22711
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
22697
22712
|
children: [
|
|
22698
22713
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
22699
|
-
enableSearch:
|
|
22700
|
-
searchQuery:
|
|
22701
|
-
onSearchQueryChange:
|
|
22702
|
-
reloading:
|
|
22703
|
-
showChartBuilder:
|
|
22704
|
-
isChartBuilderOpen:
|
|
22705
|
-
toggleDisplayHeader:
|
|
22706
|
-
showTableExplorer:
|
|
22707
|
-
togglePanel:
|
|
22708
|
-
isAnyPanelOpen:
|
|
22714
|
+
enableSearch: Q,
|
|
22715
|
+
searchQuery: yj,
|
|
22716
|
+
onSearchQueryChange: $,
|
|
22717
|
+
reloading: Cj,
|
|
22718
|
+
showChartBuilder: Dj,
|
|
22719
|
+
isChartBuilderOpen: Oj,
|
|
22720
|
+
toggleDisplayHeader: Ej,
|
|
22721
|
+
showTableExplorer: Aj,
|
|
22722
|
+
togglePanel: jj,
|
|
22723
|
+
isAnyPanelOpen: Nj,
|
|
22709
22724
|
downloadAs: I
|
|
22710
22725
|
}),
|
|
22711
22726
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
22712
22727
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
22713
|
-
ref:
|
|
22728
|
+
ref: Gj,
|
|
22714
22729
|
children: [
|
|
22715
|
-
|
|
22730
|
+
Ij && (0, import_jsx_runtime.jsx)("thead", {
|
|
22716
22731
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
22717
22732
|
}),
|
|
22718
|
-
renderTableHeader(
|
|
22733
|
+
renderTableHeader(Hj, Wj || !!n),
|
|
22719
22734
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
22720
|
-
table:
|
|
22735
|
+
table: Hj,
|
|
22721
22736
|
columns: i,
|
|
22722
|
-
rowViewerPanelOpen:
|
|
22723
|
-
getRowIndex:
|
|
22724
|
-
viewedRowIdx:
|
|
22725
|
-
virtualize:
|
|
22737
|
+
rowViewerPanelOpen: Uj,
|
|
22738
|
+
getRowIndex: Vj,
|
|
22739
|
+
viewedRowIdx: Pj,
|
|
22740
|
+
virtualize: Wj
|
|
22726
22741
|
})
|
|
22727
22742
|
]
|
|
22728
22743
|
}),
|
|
@@ -22733,10 +22748,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22733
22748
|
pagination: U,
|
|
22734
22749
|
selection: c,
|
|
22735
22750
|
onRowSelectionChange: K,
|
|
22736
|
-
table:
|
|
22737
|
-
getRowIds:
|
|
22738
|
-
showPageSizeSelector:
|
|
22739
|
-
tableLoading:
|
|
22751
|
+
table: Hj,
|
|
22752
|
+
getRowIds: J,
|
|
22753
|
+
showPageSizeSelector: kj,
|
|
22754
|
+
tableLoading: Cj
|
|
22740
22755
|
})
|
|
22741
22756
|
]
|
|
22742
22757
|
})
|
|
@@ -22771,7 +22786,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22771
22786
|
setPaginationState: a,
|
|
22772
22787
|
wrapperClassName: "h-full justify-between pb-1 px-1",
|
|
22773
22788
|
pagination: true,
|
|
22774
|
-
className: "rounded-none border-b flex overflow-hidden",
|
|
22789
|
+
className: "rounded-none border-b flex flex-col overflow-hidden",
|
|
22775
22790
|
rowSelection: Objects.EMPTY
|
|
22776
22791
|
});
|
|
22777
22792
|
};
|
|
@@ -22817,76 +22832,76 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22817
22832
|
t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
|
|
22818
22833
|
let A = O, I;
|
|
22819
22834
|
t[7] !== y || t[8] !== n ? (I = n && y && !isStaticNotebook(), t[7] = y, t[8] = n, t[9] = I) : I = t[9];
|
|
22820
|
-
let z = I, U = !isStaticNotebook(),
|
|
22835
|
+
let z = I, U = !isStaticNotebook(), q = (e2) => {
|
|
22821
22836
|
n == null ? void 0 : n({
|
|
22822
22837
|
prompt: `My code gives the following error:
|
|
22823
22838
|
|
|
22824
22839
|
${_}`,
|
|
22825
22840
|
triggerImmediately: e2
|
|
22826
22841
|
});
|
|
22827
|
-
}, [
|
|
22828
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22829
|
-
let
|
|
22830
|
-
t[11] ===
|
|
22831
|
-
let
|
|
22832
|
-
t[13] ===
|
|
22833
|
-
className:
|
|
22834
|
-
}), t[13] =
|
|
22835
|
-
let
|
|
22836
|
-
t[15] ===
|
|
22842
|
+
}, [J, Q] = _.split(":", 2), yj = f ? KEY : "", $;
|
|
22843
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$1), t[10] = $) : $ = t[10];
|
|
22844
|
+
let bj = f ? "rotate-180" : "rotate-0", xj;
|
|
22845
|
+
t[11] === bj ? xj = t[12] : (xj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", bj), t[11] = bj, t[12] = xj);
|
|
22846
|
+
let Sj;
|
|
22847
|
+
t[13] === xj ? Sj = t[14] : (Sj = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
22848
|
+
className: xj
|
|
22849
|
+
}), t[13] = xj, t[14] = Sj);
|
|
22850
|
+
let wj = J || "Error", Tj;
|
|
22851
|
+
t[15] === wj ? Tj = t[16] : (Tj = (0, import_jsx_runtime.jsxs)("span", {
|
|
22837
22852
|
className: "text-destructive",
|
|
22838
22853
|
children: [
|
|
22839
|
-
|
|
22854
|
+
wj,
|
|
22840
22855
|
":"
|
|
22841
22856
|
]
|
|
22842
|
-
}), t[15] =
|
|
22843
|
-
let
|
|
22844
|
-
t[17] !==
|
|
22857
|
+
}), t[15] = wj, t[16] = Tj);
|
|
22858
|
+
let Dj;
|
|
22859
|
+
t[17] !== Q || t[18] !== Tj ? (Dj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22845
22860
|
className: "text-sm inline font-mono",
|
|
22846
22861
|
children: [
|
|
22847
|
-
|
|
22862
|
+
Tj,
|
|
22848
22863
|
" ",
|
|
22849
|
-
|
|
22864
|
+
Q
|
|
22850
22865
|
]
|
|
22851
|
-
}), t[17] =
|
|
22852
|
-
let
|
|
22853
|
-
t[20] !==
|
|
22866
|
+
}), t[17] = Q, t[18] = Tj, t[19] = Dj) : Dj = t[19];
|
|
22867
|
+
let Oj;
|
|
22868
|
+
t[20] !== Dj || t[21] !== Sj ? (Oj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22854
22869
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
22855
|
-
onClick:
|
|
22870
|
+
onClick: $,
|
|
22856
22871
|
children: [
|
|
22857
|
-
|
|
22858
|
-
|
|
22872
|
+
Sj,
|
|
22873
|
+
Dj
|
|
22859
22874
|
]
|
|
22860
|
-
}), t[20] =
|
|
22861
|
-
let
|
|
22862
|
-
t[23] === c ?
|
|
22875
|
+
}), t[20] = Dj, t[21] = Sj, t[22] = Oj) : Oj = t[22];
|
|
22876
|
+
let kj;
|
|
22877
|
+
t[23] === c ? kj = t[24] : (kj = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
22863
22878
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
22864
22879
|
children: c
|
|
22865
|
-
}), t[23] = c, t[24] =
|
|
22866
|
-
let
|
|
22867
|
-
t[25] !==
|
|
22880
|
+
}), t[23] = c, t[24] = kj);
|
|
22881
|
+
let jj;
|
|
22882
|
+
t[25] !== Oj || t[26] !== kj ? (jj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
22868
22883
|
value: KEY,
|
|
22869
22884
|
className: "border-none",
|
|
22870
22885
|
children: [
|
|
22871
|
-
|
|
22872
|
-
|
|
22886
|
+
Oj,
|
|
22887
|
+
kj
|
|
22873
22888
|
]
|
|
22874
|
-
}), t[25] =
|
|
22875
|
-
let
|
|
22876
|
-
t[28] !==
|
|
22889
|
+
}), t[25] = Oj, t[26] = kj, t[27] = jj) : jj = t[27];
|
|
22890
|
+
let Mj;
|
|
22891
|
+
t[28] !== jj || t[29] !== yj ? (Mj = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
22877
22892
|
type: "single",
|
|
22878
22893
|
collapsible: true,
|
|
22879
|
-
value:
|
|
22880
|
-
children:
|
|
22881
|
-
}), t[28] =
|
|
22882
|
-
let
|
|
22883
|
-
t[31] !==
|
|
22894
|
+
value: yj,
|
|
22895
|
+
children: jj
|
|
22896
|
+
}), t[28] = jj, t[29] = yj, t[30] = Mj) : Mj = t[30];
|
|
22897
|
+
let Nj;
|
|
22898
|
+
t[31] !== q || t[32] !== z ? (Nj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
22884
22899
|
tooltip: "Fix with AI",
|
|
22885
|
-
openPrompt: () =>
|
|
22886
|
-
applyAutofix: () =>
|
|
22887
|
-
}), t[31] =
|
|
22888
|
-
let
|
|
22889
|
-
t[34] !== A || t[35] !== E ? (
|
|
22900
|
+
openPrompt: () => q(false),
|
|
22901
|
+
applyAutofix: () => q(true)
|
|
22902
|
+
}), t[31] = q, t[32] = z, t[33] = Nj) : Nj = t[33];
|
|
22903
|
+
let Pj;
|
|
22904
|
+
t[34] !== A || t[35] !== E ? (Pj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
22890
22905
|
content: "Attach pdb to the exception point.",
|
|
22891
22906
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
22892
22907
|
size: "xs",
|
|
@@ -22903,9 +22918,9 @@ ${_}`,
|
|
|
22903
22918
|
"Launch debugger"
|
|
22904
22919
|
]
|
|
22905
22920
|
})
|
|
22906
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
22907
|
-
let
|
|
22908
|
-
t[37] !== _ || t[38] !== i ? (
|
|
22921
|
+
}), t[34] = A, t[35] = E, t[36] = Pj) : Pj = t[36];
|
|
22922
|
+
let Fj;
|
|
22923
|
+
t[37] !== _ || t[38] !== i ? (Fj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
22909
22924
|
children: [
|
|
22910
22925
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
22911
22926
|
asChild: true,
|
|
@@ -22973,24 +22988,24 @@ ${_}`,
|
|
|
22973
22988
|
]
|
|
22974
22989
|
})
|
|
22975
22990
|
]
|
|
22976
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
22977
|
-
let
|
|
22978
|
-
t[40] !==
|
|
22991
|
+
}), t[37] = _, t[38] = i, t[39] = Fj) : Fj = t[39];
|
|
22992
|
+
let Ij;
|
|
22993
|
+
t[40] !== Nj || t[41] !== Pj || t[42] !== Fj ? (Ij = (0, import_jsx_runtime.jsxs)("div", {
|
|
22979
22994
|
className: "flex gap-2",
|
|
22980
22995
|
children: [
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22996
|
+
Nj,
|
|
22997
|
+
Pj,
|
|
22998
|
+
Fj
|
|
22984
22999
|
]
|
|
22985
|
-
}), t[40] =
|
|
22986
|
-
let
|
|
22987
|
-
return t[44] !==
|
|
23000
|
+
}), t[40] = Nj, t[41] = Pj, t[42] = Fj, t[43] = Ij) : Ij = t[43];
|
|
23001
|
+
let Lj;
|
|
23002
|
+
return t[44] !== Mj || t[45] !== Ij ? (Lj = (0, import_jsx_runtime.jsxs)("div", {
|
|
22988
23003
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
22989
23004
|
children: [
|
|
22990
|
-
|
|
22991
|
-
|
|
23005
|
+
Mj,
|
|
23006
|
+
Ij
|
|
22992
23007
|
]
|
|
22993
|
-
}), t[44] =
|
|
23008
|
+
}), t[44] = Mj, t[45] = Ij, t[46] = Lj) : Lj = t[46], Lj;
|
|
22994
23009
|
};
|
|
22995
23010
|
function lastLine(e) {
|
|
22996
23011
|
var _a2, _b;
|
|
@@ -23556,7 +23571,7 @@ ${_}`,
|
|
|
23556
23571
|
}), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
|
|
23557
23572
|
};
|
|
23558
23573
|
JsonOutput = (0, import_react.memo)((e) => {
|
|
23559
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
23574
|
+
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
23575
|
d === "auto" && (d = inferBestFormat(n));
|
|
23561
23576
|
let v;
|
|
23562
23577
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
@@ -23572,10 +23587,10 @@ ${_}`,
|
|
|
23572
23587
|
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i2 = {
|
|
23573
23588
|
backgroundColor: "transparent"
|
|
23574
23589
|
}, 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] !== _ ? (
|
|
23590
|
+
let o2 = y[h], s2 = h === "python" ? keyRenderer : void 0, d2;
|
|
23591
|
+
t[4] === n ? d2 = t[5] : (d2 = determineMaxDisplayLength(n), t[4] = n, t[5] = d2);
|
|
23592
|
+
let v2;
|
|
23593
|
+
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
23594
|
className: e2,
|
|
23580
23595
|
rootName: f,
|
|
23581
23596
|
theme: _,
|
|
@@ -23584,29 +23599,30 @@ ${_}`,
|
|
|
23584
23599
|
style: i2,
|
|
23585
23600
|
collapseStringsAfterLength: COLLAPSED_TEXT_LENGTH,
|
|
23586
23601
|
valueTypes: o2,
|
|
23602
|
+
keyRenderer: s2,
|
|
23587
23603
|
groupArraysAfterLength: 2 ** 53 - 1,
|
|
23588
23604
|
enableClipboard: false,
|
|
23589
|
-
maxDisplayLength:
|
|
23590
|
-
}), t[6] = n, t[7] = f, t[8] = e2, t[9] = o2, t[10] = s2, t[11] =
|
|
23605
|
+
maxDisplayLength: d2
|
|
23606
|
+
}), 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
23607
|
}
|
|
23592
23608
|
case "raw": {
|
|
23593
23609
|
let e2;
|
|
23594
|
-
t[
|
|
23610
|
+
t[14] === n ? e2 = t[15] : (e2 = JSON.stringify(n, null, 2), t[14] = n, t[15] = e2);
|
|
23595
23611
|
let i2;
|
|
23596
|
-
return t[
|
|
23612
|
+
return t[16] !== c || t[17] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
|
|
23597
23613
|
className: c,
|
|
23598
23614
|
children: e2
|
|
23599
|
-
}), t[
|
|
23615
|
+
}), t[16] = c, t[17] = e2, t[18] = i2) : i2 = t[18], i2;
|
|
23600
23616
|
}
|
|
23601
23617
|
default: {
|
|
23602
23618
|
logNever(d);
|
|
23603
23619
|
let e2;
|
|
23604
|
-
t[
|
|
23620
|
+
t[19] === n ? e2 = t[20] : (e2 = JSON.stringify(n, null, 2), t[19] = n, t[20] = e2);
|
|
23605
23621
|
let i2;
|
|
23606
|
-
return t[
|
|
23622
|
+
return t[21] !== c || t[22] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
|
|
23607
23623
|
className: c,
|
|
23608
23624
|
children: e2
|
|
23609
|
-
}), t[
|
|
23625
|
+
}), t[21] = c, t[22] = e2, t[23] = i2) : i2 = t[23], i2;
|
|
23610
23626
|
}
|
|
23611
23627
|
}
|
|
23612
23628
|
});
|
|
@@ -23669,11 +23685,11 @@ ${_}`,
|
|
|
23669
23685
|
"text/plain+bigint:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23670
23686
|
children: e
|
|
23671
23687
|
}),
|
|
23672
|
-
"text/plain+set:": (e) => (0, import_jsx_runtime.
|
|
23673
|
-
children:
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23688
|
+
"text/plain+set:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23689
|
+
children: formatSetPayload(e)
|
|
23690
|
+
}),
|
|
23691
|
+
"text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23692
|
+
children: formatFrozensetPayload(e)
|
|
23677
23693
|
}),
|
|
23678
23694
|
"text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23679
23695
|
children: e
|
|
@@ -23806,12 +23822,115 @@ ${_}`,
|
|
|
23806
23822
|
children: e
|
|
23807
23823
|
});
|
|
23808
23824
|
}
|
|
23809
|
-
var
|
|
23825
|
+
var KEY_ENCODED_PREFIX = "text/plain+";
|
|
23826
|
+
function formatTuplePayload(e) {
|
|
23827
|
+
let t = JSON.parse(e), n = t.map((e2) => JSON.stringify(e2)).join(", ");
|
|
23828
|
+
return t.length === 0 ? "()" : t.length === 1 ? `(${n},)` : `(${n})`;
|
|
23829
|
+
}
|
|
23830
|
+
function formatFrozensetPayload(e) {
|
|
23831
|
+
let t = JSON.parse(e);
|
|
23832
|
+
return t.length === 0 ? "frozenset()" : `frozenset({${t.map((e2) => JSON.stringify(e2)).join(", ")}})`;
|
|
23833
|
+
}
|
|
23834
|
+
function formatSetPayload(e) {
|
|
23835
|
+
try {
|
|
23836
|
+
let t = JSON.parse(e);
|
|
23837
|
+
return t.length === 0 ? "set()" : `{${t.map((e2) => JSON.stringify(e2)).join(", ")}}`;
|
|
23838
|
+
} catch {
|
|
23839
|
+
return e;
|
|
23840
|
+
}
|
|
23841
|
+
}
|
|
23842
|
+
var KEY_DECODERS = {
|
|
23843
|
+
"text/plain+int:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23844
|
+
children: e
|
|
23845
|
+
}),
|
|
23846
|
+
"text/plain+float:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23847
|
+
children: e
|
|
23848
|
+
}),
|
|
23849
|
+
"text/plain+bool:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23850
|
+
children: e === "True" ? "True" : "False"
|
|
23851
|
+
}),
|
|
23852
|
+
"text/plain+none:": () => (0, import_jsx_runtime.jsx)("span", {
|
|
23853
|
+
children: "None"
|
|
23854
|
+
}),
|
|
23855
|
+
"text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23856
|
+
children: formatTuplePayload(e)
|
|
23857
|
+
}),
|
|
23858
|
+
"text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
|
|
23859
|
+
children: formatFrozensetPayload(e)
|
|
23860
|
+
}),
|
|
23861
|
+
"text/plain+str:": (e) => (0, import_jsx_runtime.jsxs)("span", {
|
|
23862
|
+
children: [
|
|
23863
|
+
'"',
|
|
23864
|
+
e,
|
|
23865
|
+
'"'
|
|
23866
|
+
]
|
|
23867
|
+
})
|
|
23868
|
+
};
|
|
23869
|
+
function isEncodedKey(e) {
|
|
23870
|
+
return typeof e == "string" && e.startsWith(KEY_ENCODED_PREFIX);
|
|
23871
|
+
}
|
|
23872
|
+
var INT_LIKE_STRING = /^-?\d+$/, keyRenderer = Object.assign(({ path: e }) => {
|
|
23873
|
+
let t = e[e.length - 1];
|
|
23874
|
+
if (typeof t != "string") return (0, import_jsx_runtime.jsx)("span", {
|
|
23875
|
+
children: String(t)
|
|
23876
|
+
});
|
|
23877
|
+
if (isEncodedKey(t)) {
|
|
23878
|
+
let [e2, n] = leafDataAndMimeType(t), i = KEY_DECODERS[`${n}:`];
|
|
23879
|
+
return i ? i(e2) : (0, import_jsx_runtime.jsx)("span", {
|
|
23880
|
+
children: t
|
|
23881
|
+
});
|
|
23882
|
+
}
|
|
23883
|
+
return (0, import_jsx_runtime.jsxs)("span", {
|
|
23884
|
+
children: [
|
|
23885
|
+
'"',
|
|
23886
|
+
t,
|
|
23887
|
+
'"'
|
|
23888
|
+
]
|
|
23889
|
+
});
|
|
23890
|
+
}, {
|
|
23891
|
+
when: ({ path: e }) => {
|
|
23892
|
+
let t = e[e.length - 1];
|
|
23893
|
+
return isEncodedKey(t) || typeof t == "string" && INT_LIKE_STRING.test(t);
|
|
23894
|
+
}
|
|
23895
|
+
}), MIME_PREFIXES = Object.keys(LEAF_RENDERERS), REPLACE_PREFIX = "<marimo-replace>", REPLACE_SUFFIX = "</marimo-replace>";
|
|
23810
23896
|
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}
|
|
23897
|
+
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;
|
|
23898
|
+
}
|
|
23899
|
+
function decodeKeyForCopy(e) {
|
|
23900
|
+
let [t, n] = leafDataAndMimeType(e), i = (e2) => `${REPLACE_PREFIX}${e2}${REPLACE_SUFFIX}`;
|
|
23901
|
+
switch (`${n}:`) {
|
|
23902
|
+
case "text/plain+int:":
|
|
23903
|
+
return i(t);
|
|
23904
|
+
case "text/plain+float:":
|
|
23905
|
+
return i(t === "nan" ? "float('nan')" : t === "inf" ? "float('inf')" : t === "-inf" ? "-float('inf')" : t);
|
|
23906
|
+
case "text/plain+bool:":
|
|
23907
|
+
return i(t === "True" ? "True" : "False");
|
|
23908
|
+
case "text/plain+none:":
|
|
23909
|
+
return i("None");
|
|
23910
|
+
case "text/plain+tuple:":
|
|
23911
|
+
return i(formatTuplePayload(t));
|
|
23912
|
+
case "text/plain+frozenset:":
|
|
23913
|
+
return i(formatFrozensetPayload(t));
|
|
23914
|
+
case "text/plain+str:":
|
|
23915
|
+
return t;
|
|
23916
|
+
default:
|
|
23917
|
+
return e;
|
|
23918
|
+
}
|
|
23919
|
+
}
|
|
23920
|
+
function rewriteEncodedKeys(e) {
|
|
23921
|
+
if (Array.isArray(e)) return e.map(rewriteEncodedKeys);
|
|
23922
|
+
if (typeof e == "object" && e) {
|
|
23923
|
+
let t = {};
|
|
23924
|
+
for (let [n, i] of Object.entries(e)) {
|
|
23925
|
+
let e2 = isEncodedKey(n) ? decodeKeyForCopy(n) : n;
|
|
23926
|
+
t[e2] = rewriteEncodedKeys(i);
|
|
23927
|
+
}
|
|
23928
|
+
return t;
|
|
23929
|
+
}
|
|
23930
|
+
return e;
|
|
23812
23931
|
}
|
|
23813
23932
|
function getCopyValue(e) {
|
|
23814
|
-
return JSON.stringify(e, pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
|
|
23933
|
+
return JSON.stringify(rewriteEncodedKeys(e), pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
|
|
23815
23934
|
}
|
|
23816
23935
|
function determineMaxDisplayLength(e) {
|
|
23817
23936
|
if (Array.isArray(e)) {
|