@malloy-publisher/sdk 0.0.53 → 0.0.54
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/index.cjs.js +11 -11
- package/dist/index.es.js +425 -404
- package/package.json +1 -1
- package/src/components/AnalyzePackageButton.tsx +90 -56
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as k, jsx as d, Fragment as xe } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
3
|
import O, { createContext as Rr, useContext as _r, lazy as Ms, Suspense as Ls, useEffect as Tt, useState as Mt, useRef as Ii, useCallback as Ei, isValidElement as or, cloneElement as ir, Children as Ul, useMemo as Hl } from "react";
|
|
4
4
|
import { unstable_createGetCssVar as Gl, createSpacing as Wl, useTheme as ql, unstable_memoTheme as Kl, Box as $s, Stack as Ti, createStack as Ql, keyframes as Vo, shouldForwardProp as Yl, alpha as gt } from "@mui/system";
|
|
5
5
|
import Xl from "@emotion/styled";
|
|
6
6
|
import { ThemeContext as Jl } from "@emotion/react";
|
|
7
|
-
import { styled as Rt, Card as Ds, CardContent as Bs, CardMedia as Zl, Typography as
|
|
7
|
+
import { styled as Rt, Card as Ds, CardContent as Bs, CardMedia as Zl, Typography as L, Box as Z, CircularProgress as ec, Stack as Me, CardActions as Ar, Tooltip as ge, IconButton as he, Collapse as xt, Divider as De, Button as Ze, Tabs as tc, Tab as nc, List as Or, ListItem as Zt, ListItemText as St, Table as Pn, TableBody as Rn, TableRow as at, TableCell as ne, TableHead as pr, Dialog as sn, DialogTitle as an, DialogContent as ln, TableContainer as Fo, Paper as xo, Grid as Ne, DialogActions as js, FormControl as Vs, Chip as rc, Menu as zo, MenuItem as cn, DialogContentText as oc, ListItemIcon as Pi, TextField as ic, FormControlLabel as sc, Switch as ac, ListItemButton as Fs } from "@mui/material";
|
|
8
8
|
import me from "axios";
|
|
9
9
|
import { QueryClient as lc, useQuery as cc, useMutation as uc } from "@tanstack/react-query";
|
|
10
10
|
import * as dc from "@malloydata/malloy-query-builder";
|
|
@@ -446,14 +446,14 @@ function Lr(...e) {
|
|
|
446
446
|
function Je(e) {
|
|
447
447
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function tt(e, t) {
|
|
450
450
|
return Se({
|
|
451
451
|
prop: e,
|
|
452
452
|
themeKey: "borders",
|
|
453
453
|
transform: t
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
|
-
const Wc =
|
|
456
|
+
const Wc = tt("border", Je), qc = tt("borderTop", Je), Kc = tt("borderRight", Je), Qc = tt("borderBottom", Je), Yc = tt("borderLeft", Je), Xc = tt("borderColor"), Jc = tt("borderTopColor"), Zc = tt("borderRightColor"), eu = tt("borderBottomColor"), tu = tt("borderLeftColor"), nu = tt("outline", Je), ru = tt("outlineColor"), $r = (e) => {
|
|
457
457
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
458
458
|
const t = jn(e.theme, "shape.borderRadius", 4), n = (r) => ({
|
|
459
459
|
borderRadius: Vn(t, r)
|
|
@@ -2234,7 +2234,7 @@ function _d(e, t) {
|
|
|
2234
2234
|
e[n] || (e[n] = {});
|
|
2235
2235
|
});
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function I(e, t, n) {
|
|
2238
2238
|
!e[t] && n && (e[t] = n);
|
|
2239
2239
|
}
|
|
2240
2240
|
function Cn(e) {
|
|
@@ -2328,22 +2328,22 @@ function Nd(e = {}, ...t) {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
Object.keys(v.colorSchemes).forEach((F) => {
|
|
2330
2330
|
const g = v.colorSchemes[F].palette, R = (A) => {
|
|
2331
|
-
const
|
|
2331
|
+
const D = A.split("-"), j = D[1], K = D[2];
|
|
2332
2332
|
return m(A, g[j][K]);
|
|
2333
2333
|
};
|
|
2334
|
-
if (g.mode === "light" && (
|
|
2335
|
-
|
|
2334
|
+
if (g.mode === "light" && (I(g.common, "background", "#fff"), I(g.common, "onBackground", "#000")), g.mode === "dark" && (I(g.common, "background", "#000"), I(g.common, "onBackground", "#fff")), _d(g, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), g.mode === "light") {
|
|
2335
|
+
I(g.Alert, "errorColor", re(g.error.light, 0.6)), I(g.Alert, "infoColor", re(g.info.light, 0.6)), I(g.Alert, "successColor", re(g.success.light, 0.6)), I(g.Alert, "warningColor", re(g.warning.light, 0.6)), I(g.Alert, "errorFilledBg", R("palette-error-main")), I(g.Alert, "infoFilledBg", R("palette-info-main")), I(g.Alert, "successFilledBg", R("palette-success-main")), I(g.Alert, "warningFilledBg", R("palette-warning-main")), I(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.main))), I(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.main))), I(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.main))), I(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.main))), I(g.Alert, "errorStandardBg", oe(g.error.light, 0.9)), I(g.Alert, "infoStandardBg", oe(g.info.light, 0.9)), I(g.Alert, "successStandardBg", oe(g.success.light, 0.9)), I(g.Alert, "warningStandardBg", oe(g.warning.light, 0.9)), I(g.Alert, "errorIconColor", R("palette-error-main")), I(g.Alert, "infoIconColor", R("palette-info-main")), I(g.Alert, "successIconColor", R("palette-success-main")), I(g.Alert, "warningIconColor", R("palette-warning-main")), I(g.AppBar, "defaultBg", R("palette-grey-100")), I(g.Avatar, "defaultBg", R("palette-grey-400")), I(g.Button, "inheritContainedBg", R("palette-grey-300")), I(g.Button, "inheritContainedHoverBg", R("palette-grey-A100")), I(g.Chip, "defaultBorder", R("palette-grey-400")), I(g.Chip, "defaultAvatarColor", R("palette-grey-700")), I(g.Chip, "defaultIconColor", R("palette-grey-700")), I(g.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), I(g.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), I(g.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), I(g.LinearProgress, "primaryBg", oe(g.primary.main, 0.62)), I(g.LinearProgress, "secondaryBg", oe(g.secondary.main, 0.62)), I(g.LinearProgress, "errorBg", oe(g.error.main, 0.62)), I(g.LinearProgress, "infoBg", oe(g.info.main, 0.62)), I(g.LinearProgress, "successBg", oe(g.success.main, 0.62)), I(g.LinearProgress, "warningBg", oe(g.warning.main, 0.62)), I(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.11)`), I(g.Slider, "primaryTrack", oe(g.primary.main, 0.62)), I(g.Slider, "secondaryTrack", oe(g.secondary.main, 0.62)), I(g.Slider, "errorTrack", oe(g.error.main, 0.62)), I(g.Slider, "infoTrack", oe(g.info.main, 0.62)), I(g.Slider, "successTrack", oe(g.success.main, 0.62)), I(g.Slider, "warningTrack", oe(g.warning.main, 0.62));
|
|
2336
2336
|
const A = Jn(g.background.default, 0.8);
|
|
2337
|
-
|
|
2337
|
+
I(g.SnackbarContent, "bg", A), I(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), I(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), I(g.StepConnector, "border", R("palette-grey-400")), I(g.StepContent, "border", R("palette-grey-400")), I(g.Switch, "defaultColor", R("palette-common-white")), I(g.Switch, "defaultDisabledColor", R("palette-grey-100")), I(g.Switch, "primaryDisabledColor", oe(g.primary.main, 0.62)), I(g.Switch, "secondaryDisabledColor", oe(g.secondary.main, 0.62)), I(g.Switch, "errorDisabledColor", oe(g.error.main, 0.62)), I(g.Switch, "infoDisabledColor", oe(g.info.main, 0.62)), I(g.Switch, "successDisabledColor", oe(g.success.main, 0.62)), I(g.Switch, "warningDisabledColor", oe(g.warning.main, 0.62)), I(g.TableCell, "border", oe(Xn(g.divider, 1), 0.88)), I(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
|
|
2338
2338
|
}
|
|
2339
2339
|
if (g.mode === "dark") {
|
|
2340
|
-
|
|
2340
|
+
I(g.Alert, "errorColor", oe(g.error.light, 0.6)), I(g.Alert, "infoColor", oe(g.info.light, 0.6)), I(g.Alert, "successColor", oe(g.success.light, 0.6)), I(g.Alert, "warningColor", oe(g.warning.light, 0.6)), I(g.Alert, "errorFilledBg", R("palette-error-dark")), I(g.Alert, "infoFilledBg", R("palette-info-dark")), I(g.Alert, "successFilledBg", R("palette-success-dark")), I(g.Alert, "warningFilledBg", R("palette-warning-dark")), I(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.dark))), I(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.dark))), I(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.dark))), I(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.dark))), I(g.Alert, "errorStandardBg", re(g.error.light, 0.9)), I(g.Alert, "infoStandardBg", re(g.info.light, 0.9)), I(g.Alert, "successStandardBg", re(g.success.light, 0.9)), I(g.Alert, "warningStandardBg", re(g.warning.light, 0.9)), I(g.Alert, "errorIconColor", R("palette-error-main")), I(g.Alert, "infoIconColor", R("palette-info-main")), I(g.Alert, "successIconColor", R("palette-success-main")), I(g.Alert, "warningIconColor", R("palette-warning-main")), I(g.AppBar, "defaultBg", R("palette-grey-900")), I(g.AppBar, "darkBg", R("palette-background-paper")), I(g.AppBar, "darkColor", R("palette-text-primary")), I(g.Avatar, "defaultBg", R("palette-grey-600")), I(g.Button, "inheritContainedBg", R("palette-grey-800")), I(g.Button, "inheritContainedHoverBg", R("palette-grey-700")), I(g.Chip, "defaultBorder", R("palette-grey-700")), I(g.Chip, "defaultAvatarColor", R("palette-grey-300")), I(g.Chip, "defaultIconColor", R("palette-grey-300")), I(g.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), I(g.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), I(g.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), I(g.LinearProgress, "primaryBg", re(g.primary.main, 0.5)), I(g.LinearProgress, "secondaryBg", re(g.secondary.main, 0.5)), I(g.LinearProgress, "errorBg", re(g.error.main, 0.5)), I(g.LinearProgress, "infoBg", re(g.info.main, 0.5)), I(g.LinearProgress, "successBg", re(g.success.main, 0.5)), I(g.LinearProgress, "warningBg", re(g.warning.main, 0.5)), I(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.13)`), I(g.Slider, "primaryTrack", re(g.primary.main, 0.5)), I(g.Slider, "secondaryTrack", re(g.secondary.main, 0.5)), I(g.Slider, "errorTrack", re(g.error.main, 0.5)), I(g.Slider, "infoTrack", re(g.info.main, 0.5)), I(g.Slider, "successTrack", re(g.success.main, 0.5)), I(g.Slider, "warningTrack", re(g.warning.main, 0.5));
|
|
2341
2341
|
const A = Jn(g.background.default, 0.98);
|
|
2342
|
-
|
|
2342
|
+
I(g.SnackbarContent, "bg", A), I(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), I(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), I(g.StepConnector, "border", R("palette-grey-600")), I(g.StepContent, "border", R("palette-grey-600")), I(g.Switch, "defaultColor", R("palette-grey-300")), I(g.Switch, "defaultDisabledColor", R("palette-grey-600")), I(g.Switch, "primaryDisabledColor", re(g.primary.main, 0.55)), I(g.Switch, "secondaryDisabledColor", re(g.secondary.main, 0.55)), I(g.Switch, "errorDisabledColor", re(g.error.main, 0.55)), I(g.Switch, "infoDisabledColor", re(g.info.main, 0.55)), I(g.Switch, "successDisabledColor", re(g.success.main, 0.55)), I(g.Switch, "warningDisabledColor", re(g.warning.main, 0.55)), I(g.TableCell, "border", re(Xn(g.divider, 1), 0.68)), I(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
|
|
2343
2343
|
}
|
|
2344
2344
|
ut(g.background, "default"), ut(g.background, "paper"), ut(g.common, "background"), ut(g.common, "onBackground"), ut(g, "divider"), Object.keys(g).forEach((A) => {
|
|
2345
|
-
const
|
|
2346
|
-
A !== "tonalOffset" &&
|
|
2345
|
+
const D = g[A];
|
|
2346
|
+
A !== "tonalOffset" && D && typeof D == "object" && (D.main && I(g[A], "mainChannel", Sn(Cn(D.main))), D.light && I(g[A], "lightChannel", Sn(Cn(D.light))), D.dark && I(g[A], "darkChannel", Sn(Cn(D.dark))), D.contrastText && I(g[A], "contrastTextChannel", Sn(Cn(D.contrastText))), A === "text" && (ut(g[A], "primary"), ut(g[A], "secondary")), A === "action" && (D.active && ut(g[A], "active"), D.selected && ut(g[A], "selected")));
|
|
2347
2347
|
});
|
|
2348
2348
|
}), v = t.reduce((F, g) => We(F, g), v);
|
|
2349
2349
|
const w = {
|
|
@@ -2554,9 +2554,9 @@ function Vd(e = {}) {
|
|
|
2554
2554
|
const j = A.theme?.components?.[c]?.variants;
|
|
2555
2555
|
return j ? ea(A, j) : null;
|
|
2556
2556
|
}), b || V.push(un), Array.isArray(N[0])) {
|
|
2557
|
-
const R = N.shift(), A = new Array(P.length).fill(""),
|
|
2557
|
+
const R = N.shift(), A = new Array(P.length).fill(""), D = new Array(V.length).fill("");
|
|
2558
2558
|
let j;
|
|
2559
|
-
j = [...A, ...R,
|
|
2559
|
+
j = [...A, ...R, ...D], j.raw = [...A, ...R.raw, ...D], P.unshift(j);
|
|
2560
2560
|
}
|
|
2561
2561
|
const F = [...P, ...N, ...V], g = S(...F);
|
|
2562
2562
|
return a.muiName && (g.muiName = a.muiName), g;
|
|
@@ -2733,7 +2733,7 @@ const qd = (e) => {
|
|
|
2733
2733
|
}, b = {};
|
|
2734
2734
|
u || (b.viewBox = m);
|
|
2735
2735
|
const x = qd(y);
|
|
2736
|
-
return /* @__PURE__ */
|
|
2736
|
+
return /* @__PURE__ */ k(Kd, {
|
|
2737
2737
|
as: a,
|
|
2738
2738
|
className: be(x.root, i),
|
|
2739
2739
|
focusable: "false",
|
|
@@ -6730,7 +6730,7 @@ var Un = class {
|
|
|
6730
6730
|
_getCachedCompiledWhilePatterns(e, t) {
|
|
6731
6731
|
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new Nn(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || ""), this._cachedCompiledWhilePatterns;
|
|
6732
6732
|
}
|
|
6733
|
-
}, xa = class
|
|
6733
|
+
}, xa = class $e {
|
|
6734
6734
|
static createCaptureRule(t, n, r, o, i) {
|
|
6735
6735
|
return t.registerRule((s) => new oh(n, s, r, o, i));
|
|
6736
6736
|
}
|
|
@@ -6742,7 +6742,7 @@ var Un = class {
|
|
|
6742
6742
|
t.id,
|
|
6743
6743
|
t.name,
|
|
6744
6744
|
t.match,
|
|
6745
|
-
|
|
6745
|
+
$e._compileCaptures(t.captures, n, r)
|
|
6746
6746
|
);
|
|
6747
6747
|
if (typeof t.begin > "u") {
|
|
6748
6748
|
t.repository && (r = la({}, r, t.repository));
|
|
@@ -6752,7 +6752,7 @@ var Un = class {
|
|
|
6752
6752
|
t.id,
|
|
6753
6753
|
t.name,
|
|
6754
6754
|
t.contentName,
|
|
6755
|
-
|
|
6755
|
+
$e._compilePatterns(i, n, r)
|
|
6756
6756
|
);
|
|
6757
6757
|
}
|
|
6758
6758
|
return t.while ? new Sr(
|
|
@@ -6761,21 +6761,21 @@ var Un = class {
|
|
|
6761
6761
|
t.name,
|
|
6762
6762
|
t.contentName,
|
|
6763
6763
|
t.begin,
|
|
6764
|
-
|
|
6764
|
+
$e._compileCaptures(t.beginCaptures || t.captures, n, r),
|
|
6765
6765
|
t.while,
|
|
6766
|
-
|
|
6767
|
-
|
|
6766
|
+
$e._compileCaptures(t.whileCaptures || t.captures, n, r),
|
|
6767
|
+
$e._compilePatterns(t.patterns, n, r)
|
|
6768
6768
|
) : new Po(
|
|
6769
6769
|
t.$vscodeTextmateLocation,
|
|
6770
6770
|
t.id,
|
|
6771
6771
|
t.name,
|
|
6772
6772
|
t.contentName,
|
|
6773
6773
|
t.begin,
|
|
6774
|
-
|
|
6774
|
+
$e._compileCaptures(t.beginCaptures || t.captures, n, r),
|
|
6775
6775
|
t.end,
|
|
6776
|
-
|
|
6776
|
+
$e._compileCaptures(t.endCaptures || t.captures, n, r),
|
|
6777
6777
|
t.applyEndPatternLast,
|
|
6778
|
-
|
|
6778
|
+
$e._compilePatterns(t.patterns, n, r)
|
|
6779
6779
|
);
|
|
6780
6780
|
}), t.id;
|
|
6781
6781
|
}
|
|
@@ -6796,7 +6796,7 @@ var Un = class {
|
|
|
6796
6796
|
continue;
|
|
6797
6797
|
const a = parseInt(s, 10);
|
|
6798
6798
|
let l = 0;
|
|
6799
|
-
t[s].patterns && (l =
|
|
6799
|
+
t[s].patterns && (l = $e.getCompiledRuleId(t[s], n, r)), o[a] = $e.createCaptureRule(n, t[s].$vscodeTextmateLocation, t[s].name, t[s].contentName, l);
|
|
6800
6800
|
}
|
|
6801
6801
|
}
|
|
6802
6802
|
return o;
|
|
@@ -6812,11 +6812,11 @@ var Un = class {
|
|
|
6812
6812
|
switch (c.kind) {
|
|
6813
6813
|
case 0:
|
|
6814
6814
|
case 1:
|
|
6815
|
-
l =
|
|
6815
|
+
l = $e.getCompiledRuleId(r[a.include], n, r);
|
|
6816
6816
|
break;
|
|
6817
6817
|
case 2:
|
|
6818
6818
|
let u = r[c.ruleName];
|
|
6819
|
-
u && (l =
|
|
6819
|
+
u && (l = $e.getCompiledRuleId(u, n, r));
|
|
6820
6820
|
break;
|
|
6821
6821
|
case 3:
|
|
6822
6822
|
case 4:
|
|
@@ -6824,13 +6824,13 @@ var Un = class {
|
|
|
6824
6824
|
if (h)
|
|
6825
6825
|
if (m) {
|
|
6826
6826
|
let f = h.repository[m];
|
|
6827
|
-
f && (l =
|
|
6827
|
+
f && (l = $e.getCompiledRuleId(f, n, h.repository));
|
|
6828
6828
|
} else
|
|
6829
|
-
l =
|
|
6829
|
+
l = $e.getCompiledRuleId(h.repository.$self, n, h.repository);
|
|
6830
6830
|
break;
|
|
6831
6831
|
}
|
|
6832
6832
|
} else
|
|
6833
|
-
l =
|
|
6833
|
+
l = $e.getCompiledRuleId(a, n, r);
|
|
6834
6834
|
if (l !== -1) {
|
|
6835
6835
|
const c = n.getRule(l);
|
|
6836
6836
|
let u = !1;
|
|
@@ -10674,13 +10674,13 @@ function kr(e, t, n, r, o) {
|
|
|
10674
10674
|
});
|
|
10675
10675
|
}
|
|
10676
10676
|
R.explanation = [];
|
|
10677
|
-
let
|
|
10678
|
-
for (; P +
|
|
10677
|
+
let D = 0;
|
|
10678
|
+
for (; P + D < N; ) {
|
|
10679
10679
|
const j = x[S], K = f.substring(
|
|
10680
10680
|
j.startIndex,
|
|
10681
10681
|
j.endIndex
|
|
10682
10682
|
);
|
|
10683
|
-
|
|
10683
|
+
D += K.length, R.explanation.push({
|
|
10684
10684
|
content: K,
|
|
10685
10685
|
scopes: o.includeExplanation === "scopeName" ? tf(
|
|
10686
10686
|
j.scopes
|
|
@@ -12083,7 +12083,7 @@ const kf = _e([/* @__PURE__ */ d("path", {
|
|
|
12083
12083
|
versionId: n,
|
|
12084
12084
|
children: r
|
|
12085
12085
|
}) => /* @__PURE__ */ d(Ka.Provider, { value: { projectName: e, packageName: t, versionId: n }, children: r });
|
|
12086
|
-
function
|
|
12086
|
+
function nt() {
|
|
12087
12087
|
const e = _r(Ka);
|
|
12088
12088
|
if (!e)
|
|
12089
12089
|
throw new Error("usePackage must be used within a PackageProvider");
|
|
@@ -12091,8 +12091,8 @@ function tt() {
|
|
|
12091
12091
|
}
|
|
12092
12092
|
function je({ error: e, context: t }) {
|
|
12093
12093
|
const n = e.data?.message || "Unknown Error";
|
|
12094
|
-
return /* @__PURE__ */
|
|
12095
|
-
t && /* @__PURE__ */ d(
|
|
12094
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
12095
|
+
t && /* @__PURE__ */ d(L, { variant: "body2", sx: { p: "10px", m: "auto" }, children: t }),
|
|
12096
12096
|
/* @__PURE__ */ d(
|
|
12097
12097
|
"pre",
|
|
12098
12098
|
{
|
|
@@ -12116,7 +12116,7 @@ function ze({
|
|
|
12116
12116
|
spacing: i = 2,
|
|
12117
12117
|
textVariant: s = "body2"
|
|
12118
12118
|
}) {
|
|
12119
|
-
const a = /* @__PURE__ */
|
|
12119
|
+
const a = /* @__PURE__ */ k(
|
|
12120
12120
|
Z,
|
|
12121
12121
|
{
|
|
12122
12122
|
sx: {
|
|
@@ -12127,7 +12127,7 @@ function ze({
|
|
|
12127
12127
|
},
|
|
12128
12128
|
children: [
|
|
12129
12129
|
/* @__PURE__ */ d(ec, { size: t, color: n, thickness: r }),
|
|
12130
|
-
e && /* @__PURE__ */ d(
|
|
12130
|
+
e && /* @__PURE__ */ d(L, { variant: s, color: "text.secondary", children: e })
|
|
12131
12131
|
]
|
|
12132
12132
|
}
|
|
12133
12133
|
);
|
|
@@ -12226,7 +12226,7 @@ function Pf({
|
|
|
12226
12226
|
sourceName: n,
|
|
12227
12227
|
queryName: r
|
|
12228
12228
|
}) {
|
|
12229
|
-
const { projectName: o, packageName: i, versionId: s } =
|
|
12229
|
+
const { projectName: o, packageName: i, versionId: s } = nt(), { data: a, isSuccess: l, isError: c, error: u } = Ve({
|
|
12230
12230
|
queryKey: [
|
|
12231
12231
|
"queryResult",
|
|
12232
12232
|
o,
|
|
@@ -12248,7 +12248,7 @@ function Pf({
|
|
|
12248
12248
|
p
|
|
12249
12249
|
)
|
|
12250
12250
|
});
|
|
12251
|
-
return /* @__PURE__ */
|
|
12251
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
12252
12252
|
!l && !c && /* @__PURE__ */ d(ze, { text: "Fetching Query Results..." }),
|
|
12253
12253
|
l && /* @__PURE__ */ d(Ls, { fallback: /* @__PURE__ */ d("div", { children: "Loading..." }), children: /* @__PURE__ */ d(Ef, { result: a.data.result }) }),
|
|
12254
12254
|
c && /* @__PURE__ */ d(
|
|
@@ -12292,7 +12292,7 @@ function _f({
|
|
|
12292
12292
|
b(C);
|
|
12293
12293
|
});
|
|
12294
12294
|
}
|
|
12295
|
-
}, [l]), /* @__PURE__ */ d(xe, { children: /* @__PURE__ */
|
|
12295
|
+
}, [l]), /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ k(
|
|
12296
12296
|
Rf,
|
|
12297
12297
|
{
|
|
12298
12298
|
variant: "outlined",
|
|
@@ -12301,8 +12301,8 @@ function _f({
|
|
|
12301
12301
|
borderRadius: "0px"
|
|
12302
12302
|
},
|
|
12303
12303
|
children: [
|
|
12304
|
-
/* @__PURE__ */
|
|
12305
|
-
|
|
12304
|
+
/* @__PURE__ */ k(
|
|
12305
|
+
Me,
|
|
12306
12306
|
{
|
|
12307
12307
|
sx: {
|
|
12308
12308
|
display: "flex",
|
|
@@ -12312,14 +12312,14 @@ function _f({
|
|
|
12312
12312
|
},
|
|
12313
12313
|
children: [
|
|
12314
12314
|
/* @__PURE__ */ d(
|
|
12315
|
-
|
|
12315
|
+
L,
|
|
12316
12316
|
{
|
|
12317
12317
|
variant: "subtitle2",
|
|
12318
12318
|
sx: { mt: "auto", mb: "auto" },
|
|
12319
12319
|
children: `${a ? "" : "View >"} ${n}`
|
|
12320
12320
|
}
|
|
12321
12321
|
),
|
|
12322
|
-
/* @__PURE__ */
|
|
12322
|
+
/* @__PURE__ */ k(Ar, { sx: { padding: "0px" }, children: [
|
|
12323
12323
|
!o && /* @__PURE__ */ d(
|
|
12324
12324
|
ge,
|
|
12325
12325
|
{
|
|
@@ -12356,10 +12356,10 @@ function _f({
|
|
|
12356
12356
|
]
|
|
12357
12357
|
}
|
|
12358
12358
|
),
|
|
12359
|
-
/* @__PURE__ */
|
|
12359
|
+
/* @__PURE__ */ k(xt, { in: p, timeout: "auto", unmountOnExit: !0, children: [
|
|
12360
12360
|
/* @__PURE__ */ d(De, {}),
|
|
12361
|
-
/* @__PURE__ */
|
|
12362
|
-
|
|
12361
|
+
/* @__PURE__ */ k(
|
|
12362
|
+
Me,
|
|
12363
12363
|
{
|
|
12364
12364
|
sx: {
|
|
12365
12365
|
p: "10px",
|
|
@@ -12369,7 +12369,7 @@ function _f({
|
|
|
12369
12369
|
},
|
|
12370
12370
|
children: [
|
|
12371
12371
|
/* @__PURE__ */ d(
|
|
12372
|
-
|
|
12372
|
+
L,
|
|
12373
12373
|
{
|
|
12374
12374
|
sx: {
|
|
12375
12375
|
fontSize: "12px",
|
|
@@ -12401,11 +12401,11 @@ function _f({
|
|
|
12401
12401
|
}
|
|
12402
12402
|
)
|
|
12403
12403
|
] }),
|
|
12404
|
-
/* @__PURE__ */
|
|
12404
|
+
/* @__PURE__ */ k(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: [
|
|
12405
12405
|
/* @__PURE__ */ d(De, { sx: { mb: "4px" } }),
|
|
12406
|
-
y && /* @__PURE__ */
|
|
12406
|
+
y && /* @__PURE__ */ k(xe, { children: [
|
|
12407
12407
|
/* @__PURE__ */ d(
|
|
12408
|
-
|
|
12408
|
+
Me,
|
|
12409
12409
|
{
|
|
12410
12410
|
sx: {
|
|
12411
12411
|
borderRadius: 0,
|
|
@@ -12413,7 +12413,7 @@ function _f({
|
|
|
12413
12413
|
justifyContent: "space-between"
|
|
12414
12414
|
},
|
|
12415
12415
|
children: /* @__PURE__ */ d(
|
|
12416
|
-
|
|
12416
|
+
L,
|
|
12417
12417
|
{
|
|
12418
12418
|
fontSize: "12px",
|
|
12419
12419
|
sx: {
|
|
@@ -12496,7 +12496,7 @@ const Df = new ia(new Be()), Bf = ce($s)(({ theme: e }) => ({
|
|
|
12496
12496
|
gap: e.spacing(0.5),
|
|
12497
12497
|
borderBottom: `1px solid ${e.palette.divider}`,
|
|
12498
12498
|
minHeight: 36
|
|
12499
|
-
})), jf = ce(
|
|
12499
|
+
})), jf = ce(Ze)(
|
|
12500
12500
|
({ theme: e, selected: t }) => ({
|
|
12501
12501
|
minHeight: 36,
|
|
12502
12502
|
padding: e.spacing(0.5, 2),
|
|
@@ -12529,7 +12529,7 @@ function Ya({
|
|
|
12529
12529
|
);
|
|
12530
12530
|
return O.useEffect(() => {
|
|
12531
12531
|
o && o(i);
|
|
12532
|
-
}, [i, o]), /* @__PURE__ */
|
|
12532
|
+
}, [i, o]), /* @__PURE__ */ k(Re, { variant: "outlined", children: [
|
|
12533
12533
|
/* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(
|
|
12534
12534
|
Ti,
|
|
12535
12535
|
{
|
|
@@ -12548,7 +12548,7 @@ function Ya({
|
|
|
12548
12548
|
)) })
|
|
12549
12549
|
}
|
|
12550
12550
|
) }),
|
|
12551
|
-
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */
|
|
12551
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Ti, { spacing: 2, component: "section", children: [
|
|
12552
12552
|
/* @__PURE__ */ d(
|
|
12553
12553
|
Xa,
|
|
12554
12554
|
{
|
|
@@ -12581,7 +12581,7 @@ function Xa({
|
|
|
12581
12581
|
O.useEffect(() => {
|
|
12582
12582
|
t && t(r);
|
|
12583
12583
|
}, [t, r]);
|
|
12584
|
-
const { projectName: a, packageName: l, versionId: c } =
|
|
12584
|
+
const { projectName: a, packageName: l, versionId: c } = nt(), u = If({
|
|
12585
12585
|
mutationFn: (f, y) => {
|
|
12586
12586
|
const b = new dc.ASTQuery({
|
|
12587
12587
|
source: e.sourceInfo,
|
|
@@ -12642,7 +12642,7 @@ function Xa({
|
|
|
12642
12642
|
flexDirection: "column",
|
|
12643
12643
|
height: "100%"
|
|
12644
12644
|
},
|
|
12645
|
-
children: /* @__PURE__ */
|
|
12645
|
+
children: /* @__PURE__ */ k(
|
|
12646
12646
|
"div",
|
|
12647
12647
|
{
|
|
12648
12648
|
style: {
|
|
@@ -12719,7 +12719,7 @@ function y0({
|
|
|
12719
12719
|
expandEmbeddings: r,
|
|
12720
12720
|
hideEmbeddingIcons: o
|
|
12721
12721
|
}) {
|
|
12722
|
-
const [i, s] = O.useState(!1), [a, l] = O.useState(), [c, u] = O.useState(0), { projectName: p, packageName: m, versionId: h } =
|
|
12722
|
+
const [i, s] = O.useState(!1), [a, l] = O.useState(), [c, u] = O.useState(0), { projectName: p, packageName: m, versionId: h } = nt(), f = Ff(e);
|
|
12723
12723
|
Tt(() => {
|
|
12724
12724
|
Ft(f, "typescript").then((C) => {
|
|
12725
12725
|
l(C);
|
|
@@ -12741,10 +12741,10 @@ function y0({
|
|
|
12741
12741
|
error: S,
|
|
12742
12742
|
context: `${m} > ${e}`
|
|
12743
12743
|
}
|
|
12744
|
-
)) : /* @__PURE__ */
|
|
12745
|
-
/* @__PURE__ */
|
|
12746
|
-
/* @__PURE__ */
|
|
12747
|
-
|
|
12744
|
+
)) : /* @__PURE__ */ k(Re, { variant: "outlined", children: [
|
|
12745
|
+
/* @__PURE__ */ k(qe, { children: [
|
|
12746
|
+
/* @__PURE__ */ k(
|
|
12747
|
+
Me,
|
|
12748
12748
|
{
|
|
12749
12749
|
sx: {
|
|
12750
12750
|
flexDirection: "row",
|
|
@@ -12810,10 +12810,10 @@ function y0({
|
|
|
12810
12810
|
]
|
|
12811
12811
|
}
|
|
12812
12812
|
),
|
|
12813
|
-
/* @__PURE__ */
|
|
12813
|
+
/* @__PURE__ */ k(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: [
|
|
12814
12814
|
/* @__PURE__ */ d(De, {}),
|
|
12815
|
-
/* @__PURE__ */
|
|
12816
|
-
|
|
12815
|
+
/* @__PURE__ */ k(
|
|
12816
|
+
Me,
|
|
12817
12817
|
{
|
|
12818
12818
|
sx: {
|
|
12819
12819
|
p: "10px",
|
|
@@ -12823,7 +12823,7 @@ function y0({
|
|
|
12823
12823
|
},
|
|
12824
12824
|
children: [
|
|
12825
12825
|
/* @__PURE__ */ d(
|
|
12826
|
-
|
|
12826
|
+
L,
|
|
12827
12827
|
{
|
|
12828
12828
|
sx: {
|
|
12829
12829
|
fontSize: "12px",
|
|
@@ -12855,7 +12855,7 @@ function y0({
|
|
|
12855
12855
|
] }),
|
|
12856
12856
|
/* @__PURE__ */ d(De, {})
|
|
12857
12857
|
] }),
|
|
12858
|
-
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */
|
|
12858
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Me, { spacing: 2, component: "section", children: [
|
|
12859
12859
|
Array.isArray(y.sourceInfos) && y.sourceInfos.length > 0 && /* @__PURE__ */ d(
|
|
12860
12860
|
Xa,
|
|
12861
12861
|
{
|
|
@@ -12867,14 +12867,14 @@ function y0({
|
|
|
12867
12867
|
}
|
|
12868
12868
|
}
|
|
12869
12869
|
),
|
|
12870
|
-
y.queries?.length > 0 && /* @__PURE__ */
|
|
12870
|
+
y.queries?.length > 0 && /* @__PURE__ */ k(
|
|
12871
12871
|
Re,
|
|
12872
12872
|
{
|
|
12873
12873
|
variant: "outlined",
|
|
12874
12874
|
sx: { padding: "0px 10px 0px 10px" },
|
|
12875
12875
|
children: [
|
|
12876
|
-
/* @__PURE__ */ d(qe, { sx: { p: "10px" }, children: /* @__PURE__ */ d(
|
|
12877
|
-
/* @__PURE__ */ d(
|
|
12876
|
+
/* @__PURE__ */ d(qe, { sx: { p: "10px" }, children: /* @__PURE__ */ d(L, { variant: "subtitle1", children: "Named Queries" }) }),
|
|
12877
|
+
/* @__PURE__ */ d(Me, { spacing: 1, component: "section", children: y.queries.map((C) => /* @__PURE__ */ d(
|
|
12878
12878
|
_f,
|
|
12879
12879
|
{
|
|
12880
12880
|
modelPath: e,
|
|
@@ -12938,7 +12938,7 @@ function Za({
|
|
|
12938
12938
|
minHeight: `${p}px`,
|
|
12939
12939
|
height: "100%"
|
|
12940
12940
|
} : { height: "100%" };
|
|
12941
|
-
return /* @__PURE__ */ d(xe, { children: /* @__PURE__ */
|
|
12941
|
+
return /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ k(
|
|
12942
12942
|
Z,
|
|
12943
12943
|
{
|
|
12944
12944
|
ref: u,
|
|
@@ -13037,15 +13037,15 @@ function Hf({
|
|
|
13037
13037
|
Ft(n, "typescript").then((x) => {
|
|
13038
13038
|
f(x);
|
|
13039
13039
|
});
|
|
13040
|
-
}, [n]), e.type === "markdown" && /* @__PURE__ */ d(Re, { variant: "outlined", children: /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(Uo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */
|
|
13040
|
+
}, [n]), e.type === "markdown" && /* @__PURE__ */ d(Re, { variant: "outlined", children: /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(Uo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */ k(Re, { variant: "outlined", sx: { height: "auto" }, children: [
|
|
13041
13041
|
(!o || !s && e.result) && /* @__PURE__ */ d(
|
|
13042
|
-
|
|
13042
|
+
Me,
|
|
13043
13043
|
{
|
|
13044
13044
|
sx: {
|
|
13045
13045
|
flexDirection: "row",
|
|
13046
13046
|
justifyContent: "right"
|
|
13047
13047
|
},
|
|
13048
|
-
children: /* @__PURE__ */
|
|
13048
|
+
children: /* @__PURE__ */ k(
|
|
13049
13049
|
Ar,
|
|
13050
13050
|
{
|
|
13051
13051
|
sx: {
|
|
@@ -13117,8 +13117,8 @@ function Hf({
|
|
|
13117
13117
|
)
|
|
13118
13118
|
}
|
|
13119
13119
|
),
|
|
13120
|
-
/* @__PURE__ */ d(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
13121
|
-
|
|
13120
|
+
/* @__PURE__ */ d(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
|
|
13121
|
+
Me,
|
|
13122
13122
|
{
|
|
13123
13123
|
sx: {
|
|
13124
13124
|
p: "8px",
|
|
@@ -13128,7 +13128,7 @@ function Hf({
|
|
|
13128
13128
|
},
|
|
13129
13129
|
children: [
|
|
13130
13130
|
/* @__PURE__ */ d(
|
|
13131
|
-
|
|
13131
|
+
L,
|
|
13132
13132
|
{
|
|
13133
13133
|
component: "div",
|
|
13134
13134
|
sx: {
|
|
@@ -13155,10 +13155,10 @@ function Hf({
|
|
|
13155
13155
|
]
|
|
13156
13156
|
}
|
|
13157
13157
|
) }),
|
|
13158
|
-
/* @__PURE__ */
|
|
13158
|
+
/* @__PURE__ */ k(xt, { in: a, timeout: "auto", unmountOnExit: !0, children: [
|
|
13159
13159
|
/* @__PURE__ */ d("style", { children: Uf }),
|
|
13160
13160
|
/* @__PURE__ */ d(
|
|
13161
|
-
|
|
13161
|
+
Me,
|
|
13162
13162
|
{
|
|
13163
13163
|
sx: {
|
|
13164
13164
|
mx: "8px",
|
|
@@ -13219,7 +13219,7 @@ function Wf({
|
|
|
13219
13219
|
expandEmbeddings: r,
|
|
13220
13220
|
hideEmbeddingIcons: o
|
|
13221
13221
|
}) {
|
|
13222
|
-
const [i, s] = O.useState(!1), [a, l] = O.useState(), { projectName: c, packageName: u, versionId: p } =
|
|
13222
|
+
const [i, s] = O.useState(!1), [a, l] = O.useState(), { projectName: c, packageName: u, versionId: p } = nt(), m = Kf(e, !0);
|
|
13223
13223
|
Tt(() => {
|
|
13224
13224
|
Ft(m, "typescript").then((x) => {
|
|
13225
13225
|
l(x);
|
|
@@ -13240,17 +13240,17 @@ function Wf({
|
|
|
13240
13240
|
x
|
|
13241
13241
|
)).data
|
|
13242
13242
|
});
|
|
13243
|
-
return /* @__PURE__ */
|
|
13244
|
-
/* @__PURE__ */
|
|
13245
|
-
/* @__PURE__ */
|
|
13246
|
-
|
|
13243
|
+
return /* @__PURE__ */ k(Re, { variant: "outlined", children: [
|
|
13244
|
+
/* @__PURE__ */ k(qe, { children: [
|
|
13245
|
+
/* @__PURE__ */ k(
|
|
13246
|
+
Me,
|
|
13247
13247
|
{
|
|
13248
13248
|
sx: {
|
|
13249
13249
|
flexDirection: "row",
|
|
13250
13250
|
justifyContent: "space-between"
|
|
13251
13251
|
},
|
|
13252
13252
|
children: [
|
|
13253
|
-
/* @__PURE__ */ d(
|
|
13253
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Notebook" }),
|
|
13254
13254
|
!o && /* @__PURE__ */ d(
|
|
13255
13255
|
Ar,
|
|
13256
13256
|
{
|
|
@@ -13280,8 +13280,8 @@ function Wf({
|
|
|
13280
13280
|
]
|
|
13281
13281
|
}
|
|
13282
13282
|
),
|
|
13283
|
-
/* @__PURE__ */ d(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
13284
|
-
|
|
13283
|
+
/* @__PURE__ */ d(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
|
|
13284
|
+
Me,
|
|
13285
13285
|
{
|
|
13286
13286
|
sx: {
|
|
13287
13287
|
borderRadius: 0,
|
|
@@ -13290,7 +13290,7 @@ function Wf({
|
|
|
13290
13290
|
},
|
|
13291
13291
|
children: [
|
|
13292
13292
|
/* @__PURE__ */ d(
|
|
13293
|
-
|
|
13293
|
+
L,
|
|
13294
13294
|
{
|
|
13295
13295
|
sx: {
|
|
13296
13296
|
fontSize: "12px",
|
|
@@ -13320,7 +13320,7 @@ function Wf({
|
|
|
13320
13320
|
}
|
|
13321
13321
|
) })
|
|
13322
13322
|
] }),
|
|
13323
|
-
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */
|
|
13323
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Me, { spacing: 2, component: "section", children: [
|
|
13324
13324
|
!f && !y && /* @__PURE__ */ d(ze, { text: "Fetching Notebook..." }),
|
|
13325
13325
|
f && h.notebookCells?.map((x, S) => /* @__PURE__ */ d(
|
|
13326
13326
|
Hf,
|
|
@@ -13338,7 +13338,7 @@ function Wf({
|
|
|
13338
13338
|
},
|
|
13339
13339
|
S
|
|
13340
13340
|
)),
|
|
13341
|
-
y && b.status === 404 && /* @__PURE__ */
|
|
13341
|
+
y && b.status === 404 && /* @__PURE__ */ k(L, { variant: "body2", children: [
|
|
13342
13342
|
/* @__PURE__ */ d("code", { children: `${c} > ${u} > ${e}` }),
|
|
13343
13343
|
" ",
|
|
13344
13344
|
"not found."
|
|
@@ -13561,7 +13561,7 @@ const tl = _e(/* @__PURE__ */ d("path", {
|
|
|
13561
13561
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"
|
|
13562
13562
|
})), Xf = new ra(new Be());
|
|
13563
13563
|
function Jf() {
|
|
13564
|
-
const { projectName: e, packageName: t, versionId: n } =
|
|
13564
|
+
const { projectName: e, packageName: t, versionId: n } = nt(), { data: r, isSuccess: o, isError: i, error: s } = Ve({
|
|
13565
13565
|
queryKey: ["package", e, t, n],
|
|
13566
13566
|
queryFn: (a) => Xf.getPackage(
|
|
13567
13567
|
e,
|
|
@@ -13571,8 +13571,8 @@ function Jf() {
|
|
|
13571
13571
|
a
|
|
13572
13572
|
)
|
|
13573
13573
|
});
|
|
13574
|
-
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13575
|
-
/* @__PURE__ */ d(
|
|
13574
|
+
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13575
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
|
|
13576
13576
|
/* @__PURE__ */ d(De, {}),
|
|
13577
13577
|
/* @__PURE__ */ d(
|
|
13578
13578
|
Z,
|
|
@@ -13581,7 +13581,7 @@ function Jf() {
|
|
|
13581
13581
|
maxHeight: "200px",
|
|
13582
13582
|
overflowY: "auto"
|
|
13583
13583
|
},
|
|
13584
|
-
children: /* @__PURE__ */
|
|
13584
|
+
children: /* @__PURE__ */ k(Or, { dense: !0, disablePadding: !0, children: [
|
|
13585
13585
|
/* @__PURE__ */ d(Zt, { dense: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
13586
13586
|
St,
|
|
13587
13587
|
{
|
|
@@ -13600,7 +13600,7 @@ function Jf() {
|
|
|
13600
13600
|
},
|
|
13601
13601
|
secondary: r.data.description
|
|
13602
13602
|
}
|
|
13603
|
-
) }) || /* @__PURE__ */
|
|
13603
|
+
) }) || /* @__PURE__ */ k(
|
|
13604
13604
|
Zt,
|
|
13605
13605
|
{
|
|
13606
13606
|
disablePadding: !0,
|
|
@@ -13634,20 +13634,20 @@ function Jf() {
|
|
|
13634
13634
|
}
|
|
13635
13635
|
const Zf = new ta(new Be());
|
|
13636
13636
|
function eg({ connection: e }) {
|
|
13637
|
-
return /* @__PURE__ */
|
|
13638
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13639
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13637
|
+
return /* @__PURE__ */ k(at, { children: [
|
|
13638
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(L, { variant: "body2", children: e.name }) }),
|
|
13639
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(L, { variant: "body2", children: e.type }) })
|
|
13640
13640
|
] }, e.name);
|
|
13641
13641
|
}
|
|
13642
13642
|
function tg() {
|
|
13643
|
-
const { projectName: e } =
|
|
13643
|
+
const { projectName: e } = nt(), { data: t, isSuccess: n, isError: r, error: o } = Ve({
|
|
13644
13644
|
queryKey: ["connections", e],
|
|
13645
13645
|
queryFn: (i) => Zf.listConnections(e, i)
|
|
13646
13646
|
});
|
|
13647
|
-
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13648
|
-
/* @__PURE__ */ d(
|
|
13647
|
+
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13648
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
|
|
13649
13649
|
/* @__PURE__ */ d(De, {}),
|
|
13650
|
-
/* @__PURE__ */
|
|
13650
|
+
/* @__PURE__ */ k(
|
|
13651
13651
|
Z,
|
|
13652
13652
|
{
|
|
13653
13653
|
sx: {
|
|
@@ -13655,15 +13655,15 @@ function tg() {
|
|
|
13655
13655
|
overflowY: "auto"
|
|
13656
13656
|
},
|
|
13657
13657
|
children: [
|
|
13658
|
-
!n && !r && /* @__PURE__ */ d(
|
|
13659
|
-
n && t.data.length > 0 && /* @__PURE__ */ d(Pn, { size: "small", children: /* @__PURE__ */
|
|
13660
|
-
/* @__PURE__ */
|
|
13661
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13662
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13658
|
+
!n && !r && /* @__PURE__ */ d(L, { variant: "body2", sx: { m: "auto" }, children: "Fetching Connections..." }),
|
|
13659
|
+
n && t.data.length > 0 && /* @__PURE__ */ d(Pn, { size: "small", children: /* @__PURE__ */ k(Rn, { children: [
|
|
13660
|
+
/* @__PURE__ */ k(at, { children: [
|
|
13661
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(L, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
|
|
13662
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(L, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
|
|
13663
13663
|
] }),
|
|
13664
13664
|
t.data.map((i) => /* @__PURE__ */ d(eg, { connection: i }, i.name))
|
|
13665
13665
|
] }) }),
|
|
13666
|
-
n && t.data.length === 0 && /* @__PURE__ */ d(
|
|
13666
|
+
n && t.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", children: "No Connections" }),
|
|
13667
13667
|
r && /* @__PURE__ */ d(
|
|
13668
13668
|
je,
|
|
13669
13669
|
{
|
|
@@ -13678,7 +13678,7 @@ function tg() {
|
|
|
13678
13678
|
}
|
|
13679
13679
|
const ng = new np(new Be());
|
|
13680
13680
|
function rg() {
|
|
13681
|
-
const { projectName: e, packageName: t, versionId: n } =
|
|
13681
|
+
const { projectName: e, packageName: t, versionId: n } = nt(), [r, o] = O.useState(!1), [i, s] = O.useState(null), a = (f) => {
|
|
13682
13682
|
s(f), o(!0);
|
|
13683
13683
|
}, l = () => {
|
|
13684
13684
|
o(!1), s(null);
|
|
@@ -13691,11 +13691,11 @@ function rg() {
|
|
|
13691
13691
|
f
|
|
13692
13692
|
)
|
|
13693
13693
|
}), h = (f) => f >= 1024 * 1024 * 1024 * 1024 ? `${(f / (1024 * 1024 * 1024)).toFixed(2)} T` : f >= 1024 * 1024 * 1024 ? `${(f / (1024 * 1024 * 1024)).toFixed(2)} G` : f >= 1024 * 1024 ? `${(f / (1024 * 1024)).toFixed(2)} M` : `${(f / 1024).toFixed(2)} K`;
|
|
13694
|
-
return /* @__PURE__ */
|
|
13695
|
-
/* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13696
|
-
/* @__PURE__ */ d(
|
|
13694
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
13695
|
+
/* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13696
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
|
|
13697
13697
|
/* @__PURE__ */ d(De, {}),
|
|
13698
|
-
/* @__PURE__ */
|
|
13698
|
+
/* @__PURE__ */ k(
|
|
13699
13699
|
Z,
|
|
13700
13700
|
{
|
|
13701
13701
|
sx: {
|
|
@@ -13711,12 +13711,12 @@ function rg() {
|
|
|
13711
13711
|
context: `${e} > ${t} > Databases`
|
|
13712
13712
|
}
|
|
13713
13713
|
),
|
|
13714
|
-
m && c.data.length > 0 && /* @__PURE__ */
|
|
13715
|
-
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */
|
|
13714
|
+
m && c.data.length > 0 && /* @__PURE__ */ k(Pn, { size: "small", children: [
|
|
13715
|
+
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
|
|
13716
13716
|
/* @__PURE__ */ d(ne, { children: "Name" }),
|
|
13717
13717
|
/* @__PURE__ */ d(ne, { align: "right", children: "Rows" })
|
|
13718
13718
|
] }) }),
|
|
13719
|
-
/* @__PURE__ */ d(Rn, { children: c.data.map((f) => /* @__PURE__ */
|
|
13719
|
+
/* @__PURE__ */ d(Rn, { children: c.data.map((f) => /* @__PURE__ */ k(
|
|
13720
13720
|
at,
|
|
13721
13721
|
{
|
|
13722
13722
|
onClick: () => a(f),
|
|
@@ -13729,19 +13729,19 @@ function rg() {
|
|
|
13729
13729
|
f.path
|
|
13730
13730
|
)) })
|
|
13731
13731
|
] }),
|
|
13732
|
-
m && c.data.length === 0 && /* @__PURE__ */ d(
|
|
13732
|
+
m && c.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", sx: { m: "auto" }, children: "No databases found" })
|
|
13733
13733
|
]
|
|
13734
13734
|
}
|
|
13735
13735
|
)
|
|
13736
13736
|
] }) }),
|
|
13737
|
-
/* @__PURE__ */
|
|
13737
|
+
/* @__PURE__ */ k(sn, { open: r, onClose: l, maxWidth: "sm", fullWidth: !0, children: [
|
|
13738
13738
|
/* @__PURE__ */ d(an, { children: i?.path }),
|
|
13739
|
-
/* @__PURE__ */ d(ln, { children: i?.info?.columns && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */
|
|
13740
|
-
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */
|
|
13739
|
+
/* @__PURE__ */ d(ln, { children: i?.info?.columns && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ k(Pn, { size: "small", children: [
|
|
13740
|
+
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
|
|
13741
13741
|
/* @__PURE__ */ d(ne, { children: "Column" }),
|
|
13742
13742
|
/* @__PURE__ */ d(ne, { children: "Type" })
|
|
13743
13743
|
] }) }),
|
|
13744
|
-
/* @__PURE__ */ d(Rn, { children: i.info.columns.map((f) => /* @__PURE__ */
|
|
13744
|
+
/* @__PURE__ */ d(Rn, { children: i.info.columns.map((f) => /* @__PURE__ */ k(at, { children: [
|
|
13745
13745
|
/* @__PURE__ */ d(ne, { component: "th", scope: "row", children: f.name }),
|
|
13746
13746
|
/* @__PURE__ */ d(ne, { children: f.type })
|
|
13747
13747
|
] }, f.name)) })
|
|
@@ -14242,19 +14242,19 @@ const mg = (e) => {
|
|
|
14242
14242
|
...r,
|
|
14243
14243
|
orientation: x,
|
|
14244
14244
|
collapsedSize: a
|
|
14245
|
-
}, N = mg(P), V = Ld(), F = il(), g = E.useRef(null), R = E.useRef(), A = typeof a == "number" ? `${a}px` : a,
|
|
14245
|
+
}, N = mg(P), V = Ld(), F = il(), g = E.useRef(null), R = E.useRef(), A = typeof a == "number" ? `${a}px` : a, D = x === "horizontal", j = D ? "width" : "height", K = E.useRef(null), q = gr(n, K), ae = (B) => (Le) => {
|
|
14246
14246
|
if (B) {
|
|
14247
14247
|
const Te = K.current;
|
|
14248
|
-
|
|
14248
|
+
Le === void 0 ? B(Te) : B(Te, Le);
|
|
14249
14249
|
}
|
|
14250
|
-
}, le = () => g.current ? g.current[
|
|
14251
|
-
g.current &&
|
|
14252
|
-
}), Y = ae((B,
|
|
14250
|
+
}, le = () => g.current ? g.current[D ? "clientWidth" : "clientHeight"] : 0, H = ae((B, Le) => {
|
|
14251
|
+
g.current && D && (g.current.style.position = "absolute"), B.style[j] = A, p && p(B, Le);
|
|
14252
|
+
}), Y = ae((B, Le) => {
|
|
14253
14253
|
const Te = le();
|
|
14254
|
-
g.current &&
|
|
14254
|
+
g.current && D && (g.current.style.position = "");
|
|
14255
14255
|
const {
|
|
14256
14256
|
duration: Ke,
|
|
14257
|
-
easing:
|
|
14257
|
+
easing: $
|
|
14258
14258
|
} = Is({
|
|
14259
14259
|
style: S,
|
|
14260
14260
|
timeout: C,
|
|
@@ -14267,13 +14267,13 @@ const mg = (e) => {
|
|
|
14267
14267
|
B.style.transitionDuration = `${_}ms`, R.current = _;
|
|
14268
14268
|
} else
|
|
14269
14269
|
B.style.transitionDuration = typeof Ke == "string" ? Ke : `${Ke}ms`;
|
|
14270
|
-
B.style[j] = `${Te}px`, B.style.transitionTimingFunction =
|
|
14271
|
-
}), G = ae((B,
|
|
14272
|
-
B.style[j] = "auto", m && m(B,
|
|
14270
|
+
B.style[j] = `${Te}px`, B.style.transitionTimingFunction = $, h && h(B, Le);
|
|
14271
|
+
}), G = ae((B, Le) => {
|
|
14272
|
+
B.style[j] = "auto", m && m(B, Le);
|
|
14273
14273
|
}), Q = ae((B) => {
|
|
14274
14274
|
B.style[j] = `${le()}px`, f && f(B);
|
|
14275
14275
|
}), J = ae(y), fe = ae((B) => {
|
|
14276
|
-
const
|
|
14276
|
+
const Le = le(), {
|
|
14277
14277
|
duration: Te,
|
|
14278
14278
|
easing: Ke
|
|
14279
14279
|
} = Is({
|
|
@@ -14284,8 +14284,8 @@ const mg = (e) => {
|
|
|
14284
14284
|
mode: "exit"
|
|
14285
14285
|
});
|
|
14286
14286
|
if (C === "auto") {
|
|
14287
|
-
const
|
|
14288
|
-
B.style.transitionDuration = `${
|
|
14287
|
+
const $ = V.transitions.getAutoHeightDuration(Le);
|
|
14288
|
+
B.style.transitionDuration = `${$}ms`, R.current = $;
|
|
14289
14289
|
} else
|
|
14290
14290
|
B.style.transitionDuration = typeof Te == "string" ? Te : `${Te}ms`;
|
|
14291
14291
|
B.style[j] = A, B.style.transitionTimingFunction = Ke, b && b(B);
|
|
@@ -14305,7 +14305,7 @@ const mg = (e) => {
|
|
|
14305
14305
|
timeout: C === "auto" ? null : C,
|
|
14306
14306
|
...w,
|
|
14307
14307
|
children: (B, {
|
|
14308
|
-
ownerState:
|
|
14308
|
+
ownerState: Le,
|
|
14309
14309
|
...Te
|
|
14310
14310
|
}) => /* @__PURE__ */ d(fg, {
|
|
14311
14311
|
as: l,
|
|
@@ -14314,7 +14314,7 @@ const mg = (e) => {
|
|
|
14314
14314
|
exited: !u && A === "0px" && N.hidden
|
|
14315
14315
|
}[B]),
|
|
14316
14316
|
style: {
|
|
14317
|
-
[
|
|
14317
|
+
[D ? "minWidth" : "minHeight"]: A,
|
|
14318
14318
|
...S
|
|
14319
14319
|
},
|
|
14320
14320
|
ref: q,
|
|
@@ -14583,27 +14583,27 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14583
14583
|
left: 0,
|
|
14584
14584
|
top: 0
|
|
14585
14585
|
};
|
|
14586
|
-
let A,
|
|
14586
|
+
let A, D, j;
|
|
14587
14587
|
if (V || v === void 0 || v.clientX === 0 && v.clientY === 0 || !v.clientX && !v.touches)
|
|
14588
|
-
A = Math.round(R.width / 2),
|
|
14588
|
+
A = Math.round(R.width / 2), D = Math.round(R.height / 2);
|
|
14589
14589
|
else {
|
|
14590
14590
|
const {
|
|
14591
14591
|
clientX: K,
|
|
14592
14592
|
clientY: q
|
|
14593
14593
|
} = v.touches && v.touches.length > 0 ? v.touches[0] : v;
|
|
14594
|
-
A = Math.round(K - R.left),
|
|
14594
|
+
A = Math.round(K - R.left), D = Math.round(q - R.top);
|
|
14595
14595
|
}
|
|
14596
14596
|
if (V)
|
|
14597
14597
|
j = Math.sqrt((2 * R.width ** 2 + R.height ** 2) / 3), j % 2 === 0 && (j += 1);
|
|
14598
14598
|
else {
|
|
14599
|
-
const K = Math.max(Math.abs((g ? g.clientWidth : 0) - A), A) * 2 + 2, q = Math.max(Math.abs((g ? g.clientHeight : 0) -
|
|
14599
|
+
const K = Math.max(Math.abs((g ? g.clientWidth : 0) - A), A) * 2 + 2, q = Math.max(Math.abs((g ? g.clientHeight : 0) - D), D) * 2 + 2;
|
|
14600
14600
|
j = Math.sqrt(K ** 2 + q ** 2);
|
|
14601
14601
|
}
|
|
14602
14602
|
v?.touches ? f.current === null && (f.current = () => {
|
|
14603
14603
|
b({
|
|
14604
14604
|
pulsate: N,
|
|
14605
14605
|
rippleX: A,
|
|
14606
|
-
rippleY:
|
|
14606
|
+
rippleY: D,
|
|
14607
14607
|
rippleSize: j,
|
|
14608
14608
|
cb: P
|
|
14609
14609
|
});
|
|
@@ -14612,7 +14612,7 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14612
14612
|
})) : b({
|
|
14613
14613
|
pulsate: N,
|
|
14614
14614
|
rippleX: A,
|
|
14615
|
-
rippleY:
|
|
14615
|
+
rippleY: D,
|
|
14616
14616
|
rippleSize: j,
|
|
14617
14617
|
cb: P
|
|
14618
14618
|
});
|
|
@@ -14729,7 +14729,7 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14729
14729
|
onTouchEnd: g,
|
|
14730
14730
|
onTouchMove: R,
|
|
14731
14731
|
onTouchStart: A,
|
|
14732
|
-
tabIndex:
|
|
14732
|
+
tabIndex: D = 0,
|
|
14733
14733
|
TouchRippleProps: j,
|
|
14734
14734
|
touchRippleRef: K,
|
|
14735
14735
|
type: q,
|
|
@@ -14744,9 +14744,9 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14744
14744
|
E.useEffect(() => {
|
|
14745
14745
|
G && m && !u && H.pulsate();
|
|
14746
14746
|
}, [u, m, G, H]);
|
|
14747
|
-
const fe = pt(H, "start", N, p), ee = pt(H, "stop", x, p), B = pt(H, "stop", S, p),
|
|
14747
|
+
const fe = pt(H, "start", N, p), ee = pt(H, "stop", x, p), B = pt(H, "stop", S, p), Le = pt(H, "stop", F, p), Te = pt(H, "stop", (z) => {
|
|
14748
14748
|
G && z.preventDefault(), V && V(z);
|
|
14749
|
-
}, p), Ke = pt(H, "start", A, p),
|
|
14749
|
+
}, p), Ke = pt(H, "start", A, p), $ = pt(H, "stop", g, p), _ = pt(H, "stop", R, p), ie = pt(H, "stop", (z) => {
|
|
14750
14750
|
Es(z.target) || Q(!1), y && y(z);
|
|
14751
14751
|
}, !1), kt = ar((z) => {
|
|
14752
14752
|
le.current || (le.current = z.currentTarget), Es(z.target) && (Q(!0), v && v(z)), C && C(z);
|
|
@@ -14774,10 +14774,10 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14774
14774
|
disableRipple: u,
|
|
14775
14775
|
disableTouchRipple: p,
|
|
14776
14776
|
focusRipple: m,
|
|
14777
|
-
tabIndex:
|
|
14777
|
+
tabIndex: D,
|
|
14778
14778
|
focusVisible: G
|
|
14779
14779
|
}, Zr = Og(qn);
|
|
14780
|
-
return /* @__PURE__ */
|
|
14780
|
+
return /* @__PURE__ */ k(Ng, {
|
|
14781
14781
|
as: Ht,
|
|
14782
14782
|
className: be(Zr.root, a),
|
|
14783
14783
|
ownerState: qn,
|
|
@@ -14789,13 +14789,13 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14789
14789
|
onKeyUp: Xr,
|
|
14790
14790
|
onMouseDown: fe,
|
|
14791
14791
|
onMouseLeave: Te,
|
|
14792
|
-
onMouseUp:
|
|
14792
|
+
onMouseUp: Le,
|
|
14793
14793
|
onDragLeave: B,
|
|
14794
|
-
onTouchEnd:
|
|
14794
|
+
onTouchEnd: $,
|
|
14795
14795
|
onTouchMove: _,
|
|
14796
14796
|
onTouchStart: Ke,
|
|
14797
14797
|
ref: Jr,
|
|
14798
|
-
tabIndex: c ? -1 :
|
|
14798
|
+
tabIndex: c ? -1 : D,
|
|
14799
14799
|
type: q,
|
|
14800
14800
|
...ct,
|
|
14801
14801
|
...ae,
|
|
@@ -15017,7 +15017,7 @@ const Fg = (e) => {
|
|
|
15017
15017
|
} = t, [g, R] = Qd({
|
|
15018
15018
|
controlled: o,
|
|
15019
15019
|
default: !!s
|
|
15020
|
-
}), A = xg(),
|
|
15020
|
+
}), A = xg(), D = (ee) => {
|
|
15021
15021
|
x && x(ee), A && A.onFocus && A.onFocus(ee);
|
|
15022
15022
|
}, j = (ee) => {
|
|
15023
15023
|
y && y(ee), A && A.onBlur && A.onBlur(ee);
|
|
@@ -15054,7 +15054,7 @@ const Fg = (e) => {
|
|
|
15054
15054
|
getSlotProps: (ee) => ({
|
|
15055
15055
|
...ee,
|
|
15056
15056
|
onFocus: (B) => {
|
|
15057
|
-
ee.onFocus?.(B),
|
|
15057
|
+
ee.onFocus?.(B), D(B);
|
|
15058
15058
|
},
|
|
15059
15059
|
onBlur: (B) => {
|
|
15060
15060
|
ee.onBlur?.(B), j(B);
|
|
@@ -15096,7 +15096,7 @@ const Fg = (e) => {
|
|
|
15096
15096
|
}
|
|
15097
15097
|
}
|
|
15098
15098
|
});
|
|
15099
|
-
return /* @__PURE__ */
|
|
15099
|
+
return /* @__PURE__ */ k(G, {
|
|
15100
15100
|
...Q,
|
|
15101
15101
|
children: [/* @__PURE__ */ d(J, {
|
|
15102
15102
|
...fe
|
|
@@ -15444,7 +15444,7 @@ const Ut = () => {
|
|
|
15444
15444
|
} : {}
|
|
15445
15445
|
}
|
|
15446
15446
|
};
|
|
15447
|
-
},
|
|
15447
|
+
}, et = ({
|
|
15448
15448
|
instance: e,
|
|
15449
15449
|
state: t,
|
|
15450
15450
|
setState: n,
|
|
@@ -15490,8 +15490,8 @@ const Ut = () => {
|
|
|
15490
15490
|
}
|
|
15491
15491
|
};
|
|
15492
15492
|
};
|
|
15493
|
-
|
|
15494
|
-
|
|
15493
|
+
et.itemPlugin = sy;
|
|
15494
|
+
et.getDefaultizedParams = ({
|
|
15495
15495
|
params: e,
|
|
15496
15496
|
experimentalFeatures: t
|
|
15497
15497
|
}) => {
|
|
@@ -15500,10 +15500,10 @@ Ze.getDefaultizedParams = ({
|
|
|
15500
15500
|
isItemEditable: n ? e.isItemEditable ?? !1 : !1
|
|
15501
15501
|
});
|
|
15502
15502
|
};
|
|
15503
|
-
|
|
15503
|
+
et.getInitialState = () => ({
|
|
15504
15504
|
editedItemId: null
|
|
15505
15505
|
});
|
|
15506
|
-
|
|
15506
|
+
et.params = {
|
|
15507
15507
|
onItemLabelChange: !0,
|
|
15508
15508
|
isItemEditable: !0
|
|
15509
15509
|
};
|
|
@@ -15552,7 +15552,7 @@ const jt = (e, t) => e.getAvailablePlugins().has(t), ul = (e) => Array.isArray(e
|
|
|
15552
15552
|
shouldBeSelected: h.target.checked
|
|
15553
15553
|
});
|
|
15554
15554
|
}, c = () => {
|
|
15555
|
-
jt(n,
|
|
15555
|
+
jt(n, et) && n.isItemEditable(e) && (n.isItemBeingEdited(e) ? n.setEditedItemId(null) : n.setEditedItemId(e));
|
|
15556
15556
|
};
|
|
15557
15557
|
return {
|
|
15558
15558
|
interactions: {
|
|
@@ -15561,10 +15561,10 @@ const jt = (e, t) => e.getAvailablePlugins().has(t), ul = (e) => Array.isArray(e
|
|
|
15561
15561
|
handleCheckboxSelection: l,
|
|
15562
15562
|
toggleItemEditing: c,
|
|
15563
15563
|
handleSaveItemLabel: (h, f) => {
|
|
15564
|
-
jt(n,
|
|
15564
|
+
jt(n, et) && n.isItemBeingEditedRef(e) && (n.updateItemLabel(e, f), c(), n.focusItem(h, e));
|
|
15565
15565
|
},
|
|
15566
15566
|
handleCancelItemLabelEditing: (h) => {
|
|
15567
|
-
jt(n,
|
|
15567
|
+
jt(n, et) && n.isItemBeingEditedRef(e) && (c(), n.focusItem(h, e));
|
|
15568
15568
|
}
|
|
15569
15569
|
},
|
|
15570
15570
|
status: i,
|
|
@@ -15696,38 +15696,38 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15696
15696
|
itemId: h,
|
|
15697
15697
|
treeId: l,
|
|
15698
15698
|
id: m
|
|
15699
|
-
}), A = c.canItemBeTabbed(h) ? 0 : -1,
|
|
15699
|
+
}), A = c.canItemBeTabbed(h) ? 0 : -1, D = {
|
|
15700
15700
|
rootRefObject: P,
|
|
15701
15701
|
contentRefObject: N,
|
|
15702
15702
|
interactions: v
|
|
15703
|
-
}, j = (
|
|
15704
|
-
if (
|
|
15703
|
+
}, j = ($) => (_) => {
|
|
15704
|
+
if ($.onFocus?.(_), _.defaultMuiPrevented)
|
|
15705
15705
|
return;
|
|
15706
15706
|
const ie = !w.disabled || r;
|
|
15707
15707
|
!w.focused && ie && _.currentTarget === _.target && c.focusItem(_, h);
|
|
15708
|
-
}, K = (
|
|
15709
|
-
if (
|
|
15708
|
+
}, K = ($) => (_) => {
|
|
15709
|
+
if ($.onBlur?.(_), _.defaultMuiPrevented)
|
|
15710
15710
|
return;
|
|
15711
15711
|
const ie = c.getItemDOMElement(h);
|
|
15712
15712
|
w.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
|
|
15713
15713
|
// we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
|
|
15714
15714
|
_.relatedTarget && Dn(_.relatedTarget, ie) && (_.target && _.target?.dataset?.element === "labelInput" && Dn(_.target, ie) || _.relatedTarget?.dataset?.element === "labelInput") || c.removeFocusedItem();
|
|
15715
|
-
}, q = (
|
|
15716
|
-
|
|
15717
|
-
}, ae = (
|
|
15718
|
-
|
|
15719
|
-
}, le = (
|
|
15720
|
-
|
|
15721
|
-
}, H = (
|
|
15722
|
-
|
|
15723
|
-
}, Y = (
|
|
15724
|
-
|
|
15725
|
-
}, G = (
|
|
15726
|
-
|
|
15715
|
+
}, q = ($) => (_) => {
|
|
15716
|
+
$.onKeyDown?.(_), !(_.defaultMuiPrevented || _.target?.dataset?.element === "labelInput") && c.handleItemKeyDown(_, h);
|
|
15717
|
+
}, ae = ($) => (_) => {
|
|
15718
|
+
$.onDoubleClick?.(_), !_.defaultMuiPrevented && v.toggleItemEditing();
|
|
15719
|
+
}, le = ($) => (_) => {
|
|
15720
|
+
$.onClick?.(_), n?.(_, h), !(_.defaultMuiPrevented || g.current?.contains(_.target)) && (a === "content" && v.handleExpansion(_), s || v.handleSelection(_));
|
|
15721
|
+
}, H = ($) => (_) => {
|
|
15722
|
+
$.onMouseDown?.(_), !_.defaultMuiPrevented && (_.shiftKey || _.ctrlKey || _.metaKey || w.disabled) && _.preventDefault();
|
|
15723
|
+
}, Y = ($) => (_) => {
|
|
15724
|
+
$.onChange?.(_), !_.defaultMuiPrevented && (i || w.disabled || v.handleCheckboxSelection(_));
|
|
15725
|
+
}, G = ($) => (_) => {
|
|
15726
|
+
$.onClick?.(_), !_.defaultMuiPrevented && a === "iconContainer" && v.handleExpansion(_);
|
|
15727
15727
|
};
|
|
15728
15728
|
return {
|
|
15729
|
-
getRootProps: (
|
|
15730
|
-
const _ = M({}, Ye(e), Ye(
|
|
15729
|
+
getRootProps: ($ = {}) => {
|
|
15730
|
+
const _ = M({}, Ye(e), Ye($));
|
|
15731
15731
|
let ie;
|
|
15732
15732
|
w.selected ? ie = !0 : i || w.disabled ? ie = void 0 : ie = !1;
|
|
15733
15733
|
const kt = M({}, _, {
|
|
@@ -15738,7 +15738,7 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15738
15738
|
"aria-expanded": w.expandable ? w.expanded : void 0,
|
|
15739
15739
|
"aria-selected": ie,
|
|
15740
15740
|
"aria-disabled": w.disabled || void 0
|
|
15741
|
-
},
|
|
15741
|
+
}, $, {
|
|
15742
15742
|
onFocus: j(_),
|
|
15743
15743
|
onBlur: K(_),
|
|
15744
15744
|
onKeyDown: q(_)
|
|
@@ -15746,74 +15746,74 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15746
15746
|
o && (kt.style = {
|
|
15747
15747
|
"--TreeView-itemDepth": typeof p == "function" ? p(h) : p
|
|
15748
15748
|
});
|
|
15749
|
-
const lt = C.root?.(M({},
|
|
15749
|
+
const lt = C.root?.(M({}, D, {
|
|
15750
15750
|
externalEventHandlers: _
|
|
15751
15751
|
})) ?? {};
|
|
15752
15752
|
return M({}, kt, lt);
|
|
15753
15753
|
},
|
|
15754
|
-
getContentProps: (
|
|
15755
|
-
const _ = Ye(
|
|
15754
|
+
getContentProps: ($ = {}) => {
|
|
15755
|
+
const _ = Ye($), ie = M({}, _, $, {
|
|
15756
15756
|
ref: F,
|
|
15757
15757
|
onClick: le(_),
|
|
15758
15758
|
onMouseDown: H(_),
|
|
15759
15759
|
status: w
|
|
15760
15760
|
});
|
|
15761
15761
|
o && (ie.indentationAtItemLevel = !0);
|
|
15762
|
-
const kt = C.content?.(M({},
|
|
15762
|
+
const kt = C.content?.(M({}, D, {
|
|
15763
15763
|
externalEventHandlers: _
|
|
15764
15764
|
})) ?? {};
|
|
15765
15765
|
return M({}, ie, kt);
|
|
15766
15766
|
},
|
|
15767
|
-
getGroupTransitionProps: (
|
|
15768
|
-
const _ = Ye(
|
|
15767
|
+
getGroupTransitionProps: ($ = {}) => {
|
|
15768
|
+
const _ = Ye($), ie = M({}, _, {
|
|
15769
15769
|
unmountOnExit: !0,
|
|
15770
15770
|
component: "ul",
|
|
15771
15771
|
role: "group",
|
|
15772
15772
|
in: w.expanded,
|
|
15773
15773
|
children: y
|
|
15774
|
-
},
|
|
15774
|
+
}, $);
|
|
15775
15775
|
return o && (ie.indentationAtItemLevel = !0), ie;
|
|
15776
15776
|
},
|
|
15777
|
-
getIconContainerProps: (
|
|
15778
|
-
const _ = Ye(
|
|
15779
|
-
return M({}, _,
|
|
15777
|
+
getIconContainerProps: ($ = {}) => {
|
|
15778
|
+
const _ = Ye($);
|
|
15779
|
+
return M({}, _, $, {
|
|
15780
15780
|
onClick: G(_)
|
|
15781
15781
|
});
|
|
15782
15782
|
},
|
|
15783
|
-
getCheckboxProps: (
|
|
15784
|
-
const _ = Ye(
|
|
15783
|
+
getCheckboxProps: ($ = {}) => {
|
|
15784
|
+
const _ = Ye($);
|
|
15785
15785
|
return M({}, _, {
|
|
15786
15786
|
visible: s,
|
|
15787
15787
|
ref: g,
|
|
15788
15788
|
checked: w.selected,
|
|
15789
15789
|
disabled: i || w.disabled,
|
|
15790
15790
|
tabIndex: -1
|
|
15791
|
-
},
|
|
15791
|
+
}, $, {
|
|
15792
15792
|
onChange: Y(_)
|
|
15793
15793
|
});
|
|
15794
15794
|
},
|
|
15795
|
-
getLabelProps: (
|
|
15796
|
-
const _ = M({}, Ye(
|
|
15795
|
+
getLabelProps: ($ = {}) => {
|
|
15796
|
+
const _ = M({}, Ye($)), ie = M({}, _, {
|
|
15797
15797
|
children: f
|
|
15798
|
-
},
|
|
15798
|
+
}, $, {
|
|
15799
15799
|
onDoubleClick: ae(_)
|
|
15800
15800
|
});
|
|
15801
15801
|
return c.isTreeViewEditable && (ie.editable = w.editable), ie;
|
|
15802
15802
|
},
|
|
15803
|
-
getLabelInputProps: (
|
|
15804
|
-
const _ = Ye(
|
|
15803
|
+
getLabelInputProps: ($ = {}) => {
|
|
15804
|
+
const _ = Ye($), ie = C.labelInput?.({
|
|
15805
15805
|
rootRefObject: P,
|
|
15806
15806
|
contentRefObject: N,
|
|
15807
15807
|
externalEventHandlers: _,
|
|
15808
15808
|
interactions: v
|
|
15809
15809
|
}) ?? {};
|
|
15810
|
-
return M({},
|
|
15810
|
+
return M({}, $, ie);
|
|
15811
15811
|
},
|
|
15812
|
-
getDragAndDropOverlayProps: (
|
|
15813
|
-
const _ = Ye(
|
|
15812
|
+
getDragAndDropOverlayProps: ($ = {}) => {
|
|
15813
|
+
const _ = Ye($), ie = C.dragAndDropOverlay?.(M({}, D, {
|
|
15814
15814
|
externalEventHandlers: _
|
|
15815
15815
|
})) ?? {};
|
|
15816
|
-
return M({},
|
|
15816
|
+
return M({}, $, ie);
|
|
15817
15817
|
},
|
|
15818
15818
|
rootRef: V,
|
|
15819
15819
|
status: w,
|
|
@@ -15863,7 +15863,7 @@ function fl(e) {
|
|
|
15863
15863
|
}, x = (w) => {
|
|
15864
15864
|
(w.shiftKey || w.ctrlKey || w.metaKey || p) && w.preventDefault();
|
|
15865
15865
|
}, S = () => {
|
|
15866
|
-
jt(t,
|
|
15866
|
+
jt(t, et) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
|
|
15867
15867
|
};
|
|
15868
15868
|
return {
|
|
15869
15869
|
disabled: p,
|
|
@@ -15882,10 +15882,10 @@ function fl(e) {
|
|
|
15882
15882
|
expansionTrigger: s,
|
|
15883
15883
|
toggleItemEditing: S,
|
|
15884
15884
|
handleSaveItemLabel: (w, P) => {
|
|
15885
|
-
jt(t,
|
|
15885
|
+
jt(t, et) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, P), S(), t.focusItem(w, e));
|
|
15886
15886
|
},
|
|
15887
15887
|
handleCancelItemLabelEditing: (w) => {
|
|
15888
|
-
jt(t,
|
|
15888
|
+
jt(t, et) && t.isItemBeingEditedRef(e) && (S(), t.focusItem(w, e));
|
|
15889
15889
|
}
|
|
15890
15890
|
};
|
|
15891
15891
|
}
|
|
@@ -15986,17 +15986,17 @@ const fy = ce("input", {
|
|
|
15986
15986
|
handleContentClick: g,
|
|
15987
15987
|
preventSelection: R,
|
|
15988
15988
|
expansionTrigger: A,
|
|
15989
|
-
toggleItemEditing:
|
|
15989
|
+
toggleItemEditing: D
|
|
15990
15990
|
} = fl(c), j = a || s || i, K = E.useRef(null), q = (H) => {
|
|
15991
15991
|
R(H), p && p(H);
|
|
15992
15992
|
}, ae = (H) => {
|
|
15993
15993
|
g?.(H, c), !K.current?.contains(H.target) && (A === "content" && N(H), P || V(H), u && u(H));
|
|
15994
15994
|
}, le = (H) => {
|
|
15995
|
-
H.defaultMuiPrevented ||
|
|
15995
|
+
H.defaultMuiPrevented || D();
|
|
15996
15996
|
};
|
|
15997
15997
|
return (
|
|
15998
15998
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
|
|
15999
|
-
/* @__PURE__ */
|
|
15999
|
+
/* @__PURE__ */ k("div", M({}, f, {
|
|
16000
16000
|
className: be(r.root, o, b && r.expanded, x && r.selected, S && r.focused, y && r.disabled, C && r.editing, v && r.editable),
|
|
16001
16001
|
onClick: ae,
|
|
16002
16002
|
onMouseDown: q,
|
|
@@ -16248,7 +16248,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16248
16248
|
} = m, g = bt(m, Cy), {
|
|
16249
16249
|
expanded: R,
|
|
16250
16250
|
focused: A,
|
|
16251
|
-
selected:
|
|
16251
|
+
selected: D,
|
|
16252
16252
|
disabled: j,
|
|
16253
16253
|
editing: K,
|
|
16254
16254
|
handleExpansion: q,
|
|
@@ -16264,13 +16264,13 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16264
16264
|
endIcon: y?.endIcon ?? r.slots.endIcon,
|
|
16265
16265
|
icon: y?.icon,
|
|
16266
16266
|
groupTransition: y?.groupTransition
|
|
16267
|
-
},
|
|
16267
|
+
}, Le = (X) => Array.isArray(X) ? X.length > 0 && X.some(Le) : !!X, Te = Le(h), Ke = M({}, m, {
|
|
16268
16268
|
expanded: R,
|
|
16269
16269
|
focused: A,
|
|
16270
|
-
selected:
|
|
16270
|
+
selected: D,
|
|
16271
16271
|
disabled: j,
|
|
16272
16272
|
indentationAtItemLevel: s
|
|
16273
|
-
}),
|
|
16273
|
+
}), $ = Ey(Ke), _ = B.groupTransition ?? void 0, ie = Bt({
|
|
16274
16274
|
elementType: _,
|
|
16275
16275
|
ownerState: {},
|
|
16276
16276
|
externalSlotProps: b?.groupTransition,
|
|
@@ -16282,7 +16282,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16282
16282
|
}, s ? {
|
|
16283
16283
|
indentationAtItemLevel: !0
|
|
16284
16284
|
} : {}),
|
|
16285
|
-
className:
|
|
16285
|
+
className: $.groupTransition
|
|
16286
16286
|
}), kt = (X) => {
|
|
16287
16287
|
l === "iconContainer" && q(X);
|
|
16288
16288
|
}, lt = R ? B.collapseIcon : B.expandIcon, Yr = Bt({
|
|
@@ -16302,7 +16302,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16302
16302
|
externalSlotProps: b?.icon
|
|
16303
16303
|
}), Ml = bt(Nl, ky), Ll = z ? /* @__PURE__ */ d(z, M({}, Ml)) : null;
|
|
16304
16304
|
let Kn;
|
|
16305
|
-
|
|
16305
|
+
D ? Kn = !0 : a || j ? Kn = void 0 : Kn = !1;
|
|
16306
16306
|
function $l(X) {
|
|
16307
16307
|
!A && (!j || i) && X.currentTarget === X.target && u.focusItem(X, C);
|
|
16308
16308
|
}
|
|
@@ -16335,8 +16335,8 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16335
16335
|
})) ?? {};
|
|
16336
16336
|
return /* @__PURE__ */ d(bi, {
|
|
16337
16337
|
itemId: C,
|
|
16338
|
-
children: /* @__PURE__ */
|
|
16339
|
-
className: be(
|
|
16338
|
+
children: /* @__PURE__ */ k(Ty, M({
|
|
16339
|
+
className: be($.root, f),
|
|
16340
16340
|
role: "treeitem",
|
|
16341
16341
|
"aria-expanded": Te ? R : void 0,
|
|
16342
16342
|
"aria-selected": Kn,
|
|
@@ -16356,17 +16356,17 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16356
16356
|
children: [/* @__PURE__ */ d(Py, M({
|
|
16357
16357
|
as: x,
|
|
16358
16358
|
classes: {
|
|
16359
|
-
root:
|
|
16360
|
-
expanded:
|
|
16361
|
-
selected:
|
|
16362
|
-
focused:
|
|
16363
|
-
disabled:
|
|
16364
|
-
editable:
|
|
16365
|
-
editing:
|
|
16366
|
-
iconContainer:
|
|
16367
|
-
label:
|
|
16368
|
-
labelInput:
|
|
16369
|
-
checkbox:
|
|
16359
|
+
root: $.content,
|
|
16360
|
+
expanded: $.expanded,
|
|
16361
|
+
selected: $.selected,
|
|
16362
|
+
focused: $.focused,
|
|
16363
|
+
disabled: $.disabled,
|
|
16364
|
+
editable: $.editable,
|
|
16365
|
+
editing: $.editing,
|
|
16366
|
+
iconContainer: $.iconContainer,
|
|
16367
|
+
label: $.label,
|
|
16368
|
+
labelInput: $.labelInput,
|
|
16369
|
+
checkbox: $.checkbox
|
|
16370
16370
|
},
|
|
16371
16371
|
label: w,
|
|
16372
16372
|
itemId: C,
|
|
@@ -17409,7 +17409,7 @@ const kl = ({
|
|
|
17409
17409
|
// If the focused item has children, we expand it.
|
|
17410
17410
|
// If the focused item has no children, we select it.
|
|
17411
17411
|
case h === "Enter": {
|
|
17412
|
-
jt(e,
|
|
17412
|
+
jt(e, et) && e.isItemEditable(p) && !e.isItemBeingEdited(p) ? e.setEditedItemId(p) : l(p) ? (e.toggleItemExpansion(u, p), u.preventDefault()) : a(p) && (t.multiSelect ? (u.preventDefault(), e.selectItem({
|
|
17413
17413
|
event: u,
|
|
17414
17414
|
itemId: p,
|
|
17415
17415
|
keepExistingSelection: !0
|
|
@@ -17509,7 +17509,7 @@ const Il = ({
|
|
|
17509
17509
|
}
|
|
17510
17510
|
});
|
|
17511
17511
|
Il.params = {};
|
|
17512
|
-
const lb = [Gn, Kr, Qr, Si, kl, Il,
|
|
17512
|
+
const lb = [Gn, Kr, Qr, Si, kl, Il, et], cb = ["ownerState"];
|
|
17513
17513
|
function ub({
|
|
17514
17514
|
slots: e,
|
|
17515
17515
|
slotProps: t,
|
|
@@ -17641,7 +17641,7 @@ function Sb(e) {
|
|
|
17641
17641
|
return /* @__PURE__ */ d(xb, { style: t, ...e });
|
|
17642
17642
|
}
|
|
17643
17643
|
function Cb({ item: e, ...t }) {
|
|
17644
|
-
const n = /* @__PURE__ */
|
|
17644
|
+
const n = /* @__PURE__ */ k(
|
|
17645
17645
|
Ly,
|
|
17646
17646
|
{
|
|
17647
17647
|
...t,
|
|
@@ -17653,7 +17653,7 @@ function Cb({ item: e, ...t }) {
|
|
|
17653
17653
|
children: [
|
|
17654
17654
|
e.fileType === "directory" && /* @__PURE__ */ d(fb, {}) || e.fileType === "notebook" && /* @__PURE__ */ d(gb, {}) || e.fileType === "model" && /* @__PURE__ */ d(bb, {}) || e.fileType == "database" && /* @__PURE__ */ d(yb, {}) || /* @__PURE__ */ d(tl, {}),
|
|
17655
17655
|
/* @__PURE__ */ d(
|
|
17656
|
-
|
|
17656
|
+
L,
|
|
17657
17657
|
{
|
|
17658
17658
|
variant: "body2",
|
|
17659
17659
|
sx: { marginLeft: "5px" },
|
|
@@ -17683,8 +17683,8 @@ const wb = E.forwardRef(function(t, n) {
|
|
|
17683
17683
|
disabled: a,
|
|
17684
17684
|
rootRef: n
|
|
17685
17685
|
}), b = y.getItem(o);
|
|
17686
|
-
return f.selected = !1, f.focused = !1, /* @__PURE__ */ d(bi, { itemId: o, children: /* @__PURE__ */
|
|
17687
|
-
/* @__PURE__ */
|
|
17686
|
+
return f.selected = !1, f.focused = !1, /* @__PURE__ */ d(bi, { itemId: o, children: /* @__PURE__ */ k(Ny, { ...c(l), children: [
|
|
17687
|
+
/* @__PURE__ */ k(
|
|
17688
17688
|
My,
|
|
17689
17689
|
{
|
|
17690
17690
|
...u(),
|
|
@@ -17752,14 +17752,14 @@ function Pl(e, t, n) {
|
|
|
17752
17752
|
}
|
|
17753
17753
|
const kb = new Ur(new Be()), Ib = ["notebooks/", "models/"];
|
|
17754
17754
|
function Eb({ navigate: e }) {
|
|
17755
|
-
const { projectName: t, packageName: n, versionId: r } =
|
|
17755
|
+
const { projectName: t, packageName: n, versionId: r } = nt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
|
|
17756
17756
|
queryKey: ["models", t, n, r],
|
|
17757
17757
|
queryFn: (l) => kb.listModels(t, n, r, l)
|
|
17758
17758
|
});
|
|
17759
|
-
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
17760
|
-
/* @__PURE__ */ d(
|
|
17759
|
+
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17760
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
|
|
17761
17761
|
/* @__PURE__ */ d(De, {}),
|
|
17762
|
-
/* @__PURE__ */
|
|
17762
|
+
/* @__PURE__ */ k(
|
|
17763
17763
|
Z,
|
|
17764
17764
|
{
|
|
17765
17765
|
sx: {
|
|
@@ -17783,7 +17783,7 @@ function Eb({ navigate: e }) {
|
|
|
17783
17783
|
defaultExpandedItems: Ib
|
|
17784
17784
|
}
|
|
17785
17785
|
),
|
|
17786
|
-
a && o.data.length === 0 && /* @__PURE__ */ d(
|
|
17786
|
+
a && o.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", children: "No models found" })
|
|
17787
17787
|
]
|
|
17788
17788
|
}
|
|
17789
17789
|
)
|
|
@@ -17791,7 +17791,7 @@ function Eb({ navigate: e }) {
|
|
|
17791
17791
|
}
|
|
17792
17792
|
const Tb = new na(new Be()), Pb = ["notebooks/"];
|
|
17793
17793
|
function Rb({ navigate: e }) {
|
|
17794
|
-
const { projectName: t, packageName: n, versionId: r } =
|
|
17794
|
+
const { projectName: t, packageName: n, versionId: r } = nt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
|
|
17795
17795
|
queryKey: ["notebooks", t, n, r],
|
|
17796
17796
|
queryFn: (l) => Tb.listNotebooks(
|
|
17797
17797
|
t,
|
|
@@ -17800,10 +17800,10 @@ function Rb({ navigate: e }) {
|
|
|
17800
17800
|
l
|
|
17801
17801
|
)
|
|
17802
17802
|
});
|
|
17803
|
-
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
17804
|
-
/* @__PURE__ */ d(
|
|
17803
|
+
return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17804
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
|
|
17805
17805
|
/* @__PURE__ */ d(De, {}),
|
|
17806
|
-
/* @__PURE__ */
|
|
17806
|
+
/* @__PURE__ */ k(
|
|
17807
17807
|
Z,
|
|
17808
17808
|
{
|
|
17809
17809
|
sx: {
|
|
@@ -17827,7 +17827,7 @@ function Rb({ navigate: e }) {
|
|
|
17827
17827
|
navigate: e
|
|
17828
17828
|
}
|
|
17829
17829
|
),
|
|
17830
|
-
a && o.data.length === 0 && /* @__PURE__ */ d(
|
|
17830
|
+
a && o.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", children: "No notebooks found" })
|
|
17831
17831
|
]
|
|
17832
17832
|
}
|
|
17833
17833
|
)
|
|
@@ -17835,7 +17835,7 @@ function Rb({ navigate: e }) {
|
|
|
17835
17835
|
}
|
|
17836
17836
|
const _b = new dp(new Be());
|
|
17837
17837
|
function Ab() {
|
|
17838
|
-
const { projectName: e, packageName: t, versionId: n } =
|
|
17838
|
+
const { projectName: e, packageName: t, versionId: n } = nt(), { data: r, isError: o, isLoading: i, error: s } = Ve({
|
|
17839
17839
|
queryKey: ["schedules", e, t, n],
|
|
17840
17840
|
queryFn: (a) => _b.listSchedules(
|
|
17841
17841
|
e,
|
|
@@ -17850,8 +17850,8 @@ function Ab() {
|
|
|
17850
17850
|
error: s,
|
|
17851
17851
|
context: `${e} > ${t} > Schedules`
|
|
17852
17852
|
}
|
|
17853
|
-
) : r.data.length ? /* @__PURE__ */ d(Re, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */
|
|
17854
|
-
/* @__PURE__ */ d(
|
|
17853
|
+
) : r.data.length ? /* @__PURE__ */ d(Re, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17854
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
|
|
17855
17855
|
/* @__PURE__ */ d(De, {}),
|
|
17856
17856
|
/* @__PURE__ */ d(
|
|
17857
17857
|
Z,
|
|
@@ -17861,8 +17861,8 @@ function Ab() {
|
|
|
17861
17861
|
maxHeight: "200px",
|
|
17862
17862
|
overflowY: "auto"
|
|
17863
17863
|
},
|
|
17864
|
-
children: /* @__PURE__ */ d(Fo, { component: xo, children: /* @__PURE__ */
|
|
17865
|
-
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */
|
|
17864
|
+
children: /* @__PURE__ */ d(Fo, { component: xo, children: /* @__PURE__ */ k(Pn, { sx: { minWidth: 300 }, size: "small", children: [
|
|
17865
|
+
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
|
|
17866
17866
|
/* @__PURE__ */ d(ne, { align: "left", children: "Resource" }),
|
|
17867
17867
|
/* @__PURE__ */ d(ne, { align: "left", children: "Schedule" }),
|
|
17868
17868
|
/* @__PURE__ */ d(ne, { align: "left", children: "Action" }),
|
|
@@ -17870,7 +17870,7 @@ function Ab() {
|
|
|
17870
17870
|
/* @__PURE__ */ d(ne, { align: "left", children: "Last Run" }),
|
|
17871
17871
|
/* @__PURE__ */ d(ne, { align: "left", children: "Status" })
|
|
17872
17872
|
] }) }),
|
|
17873
|
-
/* @__PURE__ */ d(Rn, { children: r.data.map((a) => /* @__PURE__ */
|
|
17873
|
+
/* @__PURE__ */ d(Rn, { children: r.data.map((a) => /* @__PURE__ */ k(
|
|
17874
17874
|
at,
|
|
17875
17875
|
{
|
|
17876
17876
|
sx: {
|
|
@@ -17898,7 +17898,7 @@ const Ob = "README.malloynb";
|
|
|
17898
17898
|
function b0({ navigate: e }) {
|
|
17899
17899
|
return e || (e = (t) => {
|
|
17900
17900
|
window.location.href = t;
|
|
17901
|
-
}), /* @__PURE__ */
|
|
17901
|
+
}), /* @__PURE__ */ k(Ne, { container: !0, spacing: 2, columns: 12, children: [
|
|
17902
17902
|
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Jf, {}) }),
|
|
17903
17903
|
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Rb, { navigate: e }) }),
|
|
17904
17904
|
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Eb, { navigate: e }) }),
|
|
@@ -17990,8 +17990,8 @@ function Mb({
|
|
|
17990
17990
|
});
|
|
17991
17991
|
const R = Lb((J) => {
|
|
17992
17992
|
a({ ...e, value: J });
|
|
17993
|
-
}), [A,
|
|
17994
|
-
u(),
|
|
17993
|
+
}), [A, D] = Mt(!1), j = () => {
|
|
17994
|
+
u(), D(!1);
|
|
17995
17995
|
}, K = s.length === 0, q = () => {
|
|
17996
17996
|
const J = s[N], fe = J?.modelPath || e.modelPath || "", ee = J?.sourceInfo.name || e.sourceName || "";
|
|
17997
17997
|
a({
|
|
@@ -18002,7 +18002,7 @@ function Mb({
|
|
|
18002
18002
|
sourceName: ee,
|
|
18003
18003
|
modelPath: fe
|
|
18004
18004
|
});
|
|
18005
|
-
}, ae = /* @__PURE__ */ d(ge, { title: "Delete Cell", children: /* @__PURE__ */ d(he, { size: "small", onClick: () =>
|
|
18005
|
+
}, ae = /* @__PURE__ */ d(ge, { title: "Delete Cell", children: /* @__PURE__ */ d(he, { size: "small", onClick: () => D(!0), children: /* @__PURE__ */ d(
|
|
18006
18006
|
"svg",
|
|
18007
18007
|
{
|
|
18008
18008
|
width: "20",
|
|
@@ -18021,24 +18021,24 @@ function Mb({
|
|
|
18021
18021
|
}
|
|
18022
18022
|
)
|
|
18023
18023
|
}
|
|
18024
|
-
) }) }), le = /* @__PURE__ */
|
|
18024
|
+
) }) }), le = /* @__PURE__ */ k(
|
|
18025
18025
|
sn,
|
|
18026
18026
|
{
|
|
18027
18027
|
open: A,
|
|
18028
|
-
onClose: () =>
|
|
18028
|
+
onClose: () => D(!1),
|
|
18029
18029
|
children: [
|
|
18030
18030
|
/* @__PURE__ */ d(an, { children: "Confirm Delete" }),
|
|
18031
|
-
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(
|
|
18032
|
-
/* @__PURE__ */
|
|
18033
|
-
/* @__PURE__ */ d(
|
|
18034
|
-
/* @__PURE__ */ d(
|
|
18031
|
+
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(L, { children: "Are you sure you want to delete this cell?" }) }),
|
|
18032
|
+
/* @__PURE__ */ k(js, { children: [
|
|
18033
|
+
/* @__PURE__ */ d(Ze, { onClick: () => D(!1), children: "Cancel" }),
|
|
18034
|
+
/* @__PURE__ */ d(Ze, { onClick: j, color: "error", children: "Delete" })
|
|
18035
18035
|
] })
|
|
18036
18036
|
]
|
|
18037
18037
|
}
|
|
18038
|
-
), H = e.isMarkdown ? /* @__PURE__ */
|
|
18038
|
+
), H = e.isMarkdown ? /* @__PURE__ */ k(xe, { children: [
|
|
18039
18039
|
i ? /* @__PURE__ */ d(ge, { title: "Save", children: /* @__PURE__ */ d(he, { size: "small", onClick: l, children: /* @__PURE__ */ d(rr, {}) }) }) : /* @__PURE__ */ d(ge, { title: "Edit", children: /* @__PURE__ */ d(he, { size: "small", onClick: c, children: /* @__PURE__ */ d(Ns, {}) }) }),
|
|
18040
18040
|
!i && ae
|
|
18041
|
-
] }) : /* @__PURE__ */
|
|
18041
|
+
] }) : /* @__PURE__ */ k(xe, { children: [
|
|
18042
18042
|
!o && /* @__PURE__ */ d(ge, { title: m ? "Hide Code" : "View Code", children: /* @__PURE__ */ d(
|
|
18043
18043
|
he,
|
|
18044
18044
|
{
|
|
@@ -18104,14 +18104,14 @@ function Mb({
|
|
|
18104
18104
|
boxShadow: 1,
|
|
18105
18105
|
zIndex: 10
|
|
18106
18106
|
},
|
|
18107
|
-
children: !Y && /* @__PURE__ */
|
|
18107
|
+
children: !Y && /* @__PURE__ */ k(xe, { children: [
|
|
18108
18108
|
p(!0),
|
|
18109
18109
|
p(!1),
|
|
18110
18110
|
H
|
|
18111
18111
|
] }) || G
|
|
18112
18112
|
}
|
|
18113
18113
|
);
|
|
18114
|
-
return /* @__PURE__ */
|
|
18114
|
+
return /* @__PURE__ */ k(
|
|
18115
18115
|
Re,
|
|
18116
18116
|
{
|
|
18117
18117
|
sx: {
|
|
@@ -18158,9 +18158,9 @@ function Mb({
|
|
|
18158
18158
|
"& pre, & code": { mt: 0.5, mb: 0.5 },
|
|
18159
18159
|
"& blockquote": { mt: 0.5, mb: 0.5 }
|
|
18160
18160
|
},
|
|
18161
|
-
children: F ? /* @__PURE__ */ d(Z, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ d(Uo, { children: F }) }) : /* @__PURE__ */
|
|
18161
|
+
children: F ? /* @__PURE__ */ d(Z, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ d(Uo, { children: F }) }) : /* @__PURE__ */ k(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
|
|
18162
18162
|
/* @__PURE__ */ d(
|
|
18163
|
-
|
|
18163
|
+
L,
|
|
18164
18164
|
{
|
|
18165
18165
|
sx: {
|
|
18166
18166
|
p: 2,
|
|
@@ -18172,7 +18172,7 @@ function Mb({
|
|
|
18172
18172
|
}
|
|
18173
18173
|
),
|
|
18174
18174
|
/* @__PURE__ */ d(
|
|
18175
|
-
|
|
18175
|
+
L,
|
|
18176
18176
|
{
|
|
18177
18177
|
sx: {
|
|
18178
18178
|
mb: 2,
|
|
@@ -18184,9 +18184,9 @@ function Mb({
|
|
|
18184
18184
|
)
|
|
18185
18185
|
] })
|
|
18186
18186
|
}
|
|
18187
|
-
) }) : /* @__PURE__ */
|
|
18187
|
+
) }) : /* @__PURE__ */ k(xe, { children: [
|
|
18188
18188
|
/* @__PURE__ */ d(xt, { in: f, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
|
|
18189
|
-
|
|
18189
|
+
Me,
|
|
18190
18190
|
{
|
|
18191
18191
|
sx: {
|
|
18192
18192
|
p: "10px",
|
|
@@ -18195,7 +18195,7 @@ function Mb({
|
|
|
18195
18195
|
justifyContent: "space-between"
|
|
18196
18196
|
},
|
|
18197
18197
|
children: /* @__PURE__ */ d(
|
|
18198
|
-
|
|
18198
|
+
L,
|
|
18199
18199
|
{
|
|
18200
18200
|
component: "div",
|
|
18201
18201
|
sx: {
|
|
@@ -18210,7 +18210,7 @@ function Mb({
|
|
|
18210
18210
|
}
|
|
18211
18211
|
) }),
|
|
18212
18212
|
/* @__PURE__ */ d(xt, { in: m, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
|
|
18213
|
-
|
|
18213
|
+
Me,
|
|
18214
18214
|
{
|
|
18215
18215
|
sx: {
|
|
18216
18216
|
p: "10px",
|
|
@@ -18219,7 +18219,7 @@ function Mb({
|
|
|
18219
18219
|
justifyContent: "space-between"
|
|
18220
18220
|
},
|
|
18221
18221
|
children: /* @__PURE__ */ d(
|
|
18222
|
-
|
|
18222
|
+
L,
|
|
18223
18223
|
{
|
|
18224
18224
|
component: "div",
|
|
18225
18225
|
className: "content",
|
|
@@ -18234,9 +18234,9 @@ function Mb({
|
|
|
18234
18234
|
)
|
|
18235
18235
|
}
|
|
18236
18236
|
) }),
|
|
18237
|
-
o && (K ? /* @__PURE__ */
|
|
18237
|
+
o && (K ? /* @__PURE__ */ k(xe, { children: [
|
|
18238
18238
|
/* @__PURE__ */ d(
|
|
18239
|
-
|
|
18239
|
+
L,
|
|
18240
18240
|
{
|
|
18241
18241
|
sx: {
|
|
18242
18242
|
p: 2,
|
|
@@ -18248,7 +18248,7 @@ function Mb({
|
|
|
18248
18248
|
}
|
|
18249
18249
|
),
|
|
18250
18250
|
/* @__PURE__ */ d(
|
|
18251
|
-
|
|
18251
|
+
L,
|
|
18252
18252
|
{
|
|
18253
18253
|
sx: { mb: 2, textAlign: "center", variant: "body2" },
|
|
18254
18254
|
children: "Please add a model import above."
|
|
@@ -18273,9 +18273,9 @@ function Mb({
|
|
|
18273
18273
|
maxHeight: 800
|
|
18274
18274
|
}
|
|
18275
18275
|
) }),
|
|
18276
|
-
!o && !e.result && /* @__PURE__ */
|
|
18276
|
+
!o && !e.result && /* @__PURE__ */ k(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
|
|
18277
18277
|
/* @__PURE__ */ d(
|
|
18278
|
-
|
|
18278
|
+
L,
|
|
18279
18279
|
{
|
|
18280
18280
|
sx: {
|
|
18281
18281
|
p: 2,
|
|
@@ -18287,7 +18287,7 @@ function Mb({
|
|
|
18287
18287
|
}
|
|
18288
18288
|
),
|
|
18289
18289
|
/* @__PURE__ */ d(
|
|
18290
|
-
|
|
18290
|
+
L,
|
|
18291
18291
|
{
|
|
18292
18292
|
sx: { mb: 2, textAlign: "center", variant: "body2" },
|
|
18293
18293
|
children: "Click to edit."
|
|
@@ -18342,7 +18342,7 @@ function Vb({
|
|
|
18342
18342
|
initialSelectedModels: e,
|
|
18343
18343
|
onModelChange: t
|
|
18344
18344
|
}) {
|
|
18345
|
-
const { projectName: n, packageName: r, versionId: o } =
|
|
18345
|
+
const { projectName: n, packageName: r, versionId: o } = nt(), { data: i, isLoading: s, isSuccess: a, isError: l, error: c } = Ve({
|
|
18346
18346
|
queryKey: ["models", n, r, o],
|
|
18347
18347
|
queryFn: (x) => jb.listModels(n, r, o, x)
|
|
18348
18348
|
}), [u, p] = O.useState(
|
|
@@ -18365,10 +18365,10 @@ function Vb({
|
|
|
18365
18365
|
error: c,
|
|
18366
18366
|
context: `${n} > ${r} > Model Picker`
|
|
18367
18367
|
}
|
|
18368
|
-
) : /* @__PURE__ */
|
|
18369
|
-
/* @__PURE__ */
|
|
18370
|
-
s && /* @__PURE__ */ d(
|
|
18371
|
-
/* @__PURE__ */
|
|
18368
|
+
) : /* @__PURE__ */ k(xe, { children: [
|
|
18369
|
+
/* @__PURE__ */ k(Vs, { fullWidth: !0, children: [
|
|
18370
|
+
s && /* @__PURE__ */ d(L, { children: "Loading..." }),
|
|
18371
|
+
/* @__PURE__ */ k(Me, { direction: "row", spacing: 1, children: [
|
|
18372
18372
|
u.map((x) => /* @__PURE__ */ d(
|
|
18373
18373
|
rc,
|
|
18374
18374
|
{
|
|
@@ -18380,7 +18380,7 @@ function Vb({
|
|
|
18380
18380
|
x
|
|
18381
18381
|
)),
|
|
18382
18382
|
/* @__PURE__ */ d(
|
|
18383
|
-
|
|
18383
|
+
Ze,
|
|
18384
18384
|
{
|
|
18385
18385
|
size: "small",
|
|
18386
18386
|
startIcon: /* @__PURE__ */ d(Bb, {}),
|
|
@@ -18391,16 +18391,16 @@ function Vb({
|
|
|
18391
18391
|
)
|
|
18392
18392
|
] })
|
|
18393
18393
|
] }),
|
|
18394
|
-
/* @__PURE__ */
|
|
18394
|
+
/* @__PURE__ */ k(
|
|
18395
18395
|
zo,
|
|
18396
18396
|
{
|
|
18397
18397
|
anchorEl: m,
|
|
18398
18398
|
open: !!m,
|
|
18399
18399
|
onClose: () => h(null),
|
|
18400
18400
|
children: [
|
|
18401
|
-
/* @__PURE__ */ d(
|
|
18401
|
+
/* @__PURE__ */ d(L, { variant: "subtitle2", sx: { ml: 1 }, children: "Models" }),
|
|
18402
18402
|
/* @__PURE__ */ d(De, {}),
|
|
18403
|
-
b.length === 0 ? /* @__PURE__ */ d(cn, { disabled: !0, children: "No models available" }) : b.map((x) => /* @__PURE__ */ d(cn, { onClick: () => y(x), children: /* @__PURE__ */ d(
|
|
18403
|
+
b.length === 0 ? /* @__PURE__ */ d(cn, { disabled: !0, children: "No models available" }) : b.map((x) => /* @__PURE__ */ d(cn, { onClick: () => y(x), children: /* @__PURE__ */ d(L, { variant: "body2", children: x }) }, x))
|
|
18404
18404
|
]
|
|
18405
18405
|
}
|
|
18406
18406
|
)
|
|
@@ -18413,7 +18413,7 @@ function S0({
|
|
|
18413
18413
|
expandEmbeddings: n,
|
|
18414
18414
|
hideEmbeddingIcons: r
|
|
18415
18415
|
}) {
|
|
18416
|
-
const o = el(), { projectName: i, packageName: s, versionId: a } =
|
|
18416
|
+
const o = el(), { projectName: i, packageName: s, versionId: a } = nt(), { server: l, accessToken: c } = Ci(), { notebookStorage: u, userContext: p } = Al();
|
|
18417
18417
|
if (!i || !s)
|
|
18418
18418
|
throw new Error(
|
|
18419
18419
|
"Project and package must be provided via PubliserPackageProvider"
|
|
@@ -18433,7 +18433,7 @@ function S0({
|
|
|
18433
18433
|
isMarkdown: Y,
|
|
18434
18434
|
value: ""
|
|
18435
18435
|
}), q(), Y ? x(G) : y(G), F();
|
|
18436
|
-
}, [R, A] = O.useState(!1),
|
|
18436
|
+
}, [R, A] = O.useState(!1), D = () => {
|
|
18437
18437
|
A(!0);
|
|
18438
18438
|
}, j = (Y) => {
|
|
18439
18439
|
e && u && p && u.deleteNotebook(p, e), A(!1), o(`/${i}/${s}`, Y);
|
|
@@ -18493,7 +18493,7 @@ function S0({
|
|
|
18493
18493
|
});
|
|
18494
18494
|
return G;
|
|
18495
18495
|
}, le = (Y, G) => /* @__PURE__ */ d(
|
|
18496
|
-
|
|
18496
|
+
Ze,
|
|
18497
18497
|
{
|
|
18498
18498
|
size: "small",
|
|
18499
18499
|
startIcon: /* @__PURE__ */ d(Yf, {}),
|
|
@@ -18510,7 +18510,7 @@ function S0({
|
|
|
18510
18510
|
},
|
|
18511
18511
|
children: Y ? "Markdown" : "Explore"
|
|
18512
18512
|
}
|
|
18513
|
-
), H = /* @__PURE__ */
|
|
18513
|
+
), H = /* @__PURE__ */ k(
|
|
18514
18514
|
Z,
|
|
18515
18515
|
{
|
|
18516
18516
|
sx: {
|
|
@@ -18525,9 +18525,9 @@ function S0({
|
|
|
18525
18525
|
]
|
|
18526
18526
|
}
|
|
18527
18527
|
);
|
|
18528
|
-
return /* @__PURE__ */
|
|
18529
|
-
/* @__PURE__ */
|
|
18530
|
-
/* @__PURE__ */
|
|
18528
|
+
return /* @__PURE__ */ k(Re, { variant: "outlined", children: [
|
|
18529
|
+
/* @__PURE__ */ k(qe, { children: [
|
|
18530
|
+
/* @__PURE__ */ k(
|
|
18531
18531
|
Yt,
|
|
18532
18532
|
{
|
|
18533
18533
|
sx: {
|
|
@@ -18536,9 +18536,9 @@ function S0({
|
|
|
18536
18536
|
alignItems: "center"
|
|
18537
18537
|
},
|
|
18538
18538
|
children: [
|
|
18539
|
-
/* @__PURE__ */
|
|
18539
|
+
/* @__PURE__ */ k(Yt, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
18540
18540
|
/* @__PURE__ */ d(
|
|
18541
|
-
|
|
18541
|
+
L,
|
|
18542
18542
|
{
|
|
18543
18543
|
variant: "overline",
|
|
18544
18544
|
sx: {
|
|
@@ -18550,7 +18550,7 @@ function S0({
|
|
|
18550
18550
|
}
|
|
18551
18551
|
),
|
|
18552
18552
|
/* @__PURE__ */ d(
|
|
18553
|
-
|
|
18553
|
+
L,
|
|
18554
18554
|
{
|
|
18555
18555
|
variant: "subtitle2",
|
|
18556
18556
|
sx: {
|
|
@@ -18563,7 +18563,7 @@ function S0({
|
|
|
18563
18563
|
}
|
|
18564
18564
|
)
|
|
18565
18565
|
] }),
|
|
18566
|
-
/* @__PURE__ */
|
|
18566
|
+
/* @__PURE__ */ k(Yt, { sx: { display: "flex", flexDirection: "row", gap: 1 }, children: [
|
|
18567
18567
|
/* @__PURE__ */ d(
|
|
18568
18568
|
Z,
|
|
18569
18569
|
{
|
|
@@ -18576,7 +18576,7 @@ function S0({
|
|
|
18576
18576
|
children: /* @__PURE__ */ d(zb, { notebookData: m })
|
|
18577
18577
|
}
|
|
18578
18578
|
),
|
|
18579
|
-
/* @__PURE__ */
|
|
18579
|
+
/* @__PURE__ */ k(
|
|
18580
18580
|
Z,
|
|
18581
18581
|
{
|
|
18582
18582
|
sx: {
|
|
@@ -18587,29 +18587,29 @@ function S0({
|
|
|
18587
18587
|
},
|
|
18588
18588
|
children: [
|
|
18589
18589
|
/* @__PURE__ */ d(
|
|
18590
|
-
|
|
18590
|
+
Ze,
|
|
18591
18591
|
{
|
|
18592
18592
|
color: "error",
|
|
18593
|
-
onClick:
|
|
18593
|
+
onClick: D,
|
|
18594
18594
|
size: "small",
|
|
18595
18595
|
children: "Delete"
|
|
18596
18596
|
}
|
|
18597
18597
|
),
|
|
18598
|
-
/* @__PURE__ */
|
|
18598
|
+
/* @__PURE__ */ k(
|
|
18599
18599
|
sn,
|
|
18600
18600
|
{
|
|
18601
18601
|
open: R,
|
|
18602
18602
|
onClose: K,
|
|
18603
18603
|
children: [
|
|
18604
18604
|
/* @__PURE__ */ d(an, { children: "Delete Notebook" }),
|
|
18605
|
-
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */
|
|
18605
|
+
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */ k(oc, { children: [
|
|
18606
18606
|
'Are you sure you want to delete the notebook "',
|
|
18607
18607
|
e,
|
|
18608
18608
|
'"? This action cannot be undone.'
|
|
18609
18609
|
] }) }),
|
|
18610
|
-
/* @__PURE__ */
|
|
18610
|
+
/* @__PURE__ */ k(js, { children: [
|
|
18611
18611
|
/* @__PURE__ */ d(
|
|
18612
|
-
|
|
18612
|
+
Ze,
|
|
18613
18613
|
{
|
|
18614
18614
|
onClick: K,
|
|
18615
18615
|
color: "primary",
|
|
@@ -18618,7 +18618,7 @@ function S0({
|
|
|
18618
18618
|
}
|
|
18619
18619
|
),
|
|
18620
18620
|
/* @__PURE__ */ d(
|
|
18621
|
-
|
|
18621
|
+
Ze,
|
|
18622
18622
|
{
|
|
18623
18623
|
onClick: (Y) => j(Y),
|
|
18624
18624
|
color: "error",
|
|
@@ -18639,7 +18639,7 @@ function S0({
|
|
|
18639
18639
|
}
|
|
18640
18640
|
),
|
|
18641
18641
|
/* @__PURE__ */ d(De, {}),
|
|
18642
|
-
/* @__PURE__ */
|
|
18642
|
+
/* @__PURE__ */ k(
|
|
18643
18643
|
Yt,
|
|
18644
18644
|
{
|
|
18645
18645
|
sx: {
|
|
@@ -18663,10 +18663,10 @@ function S0({
|
|
|
18663
18663
|
}
|
|
18664
18664
|
)
|
|
18665
18665
|
] }),
|
|
18666
|
-
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */
|
|
18667
|
-
m.getCells().length === 0 && /* @__PURE__ */
|
|
18666
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Yt, { children: [
|
|
18667
|
+
m.getCells().length === 0 && /* @__PURE__ */ k(xe, { children: [
|
|
18668
18668
|
/* @__PURE__ */ d(
|
|
18669
|
-
|
|
18669
|
+
L,
|
|
18670
18670
|
{
|
|
18671
18671
|
sx: {
|
|
18672
18672
|
textAlign: "center",
|
|
@@ -18678,7 +18678,7 @@ function S0({
|
|
|
18678
18678
|
}
|
|
18679
18679
|
),
|
|
18680
18680
|
/* @__PURE__ */ d(
|
|
18681
|
-
|
|
18681
|
+
L,
|
|
18682
18682
|
{
|
|
18683
18683
|
variant: "body2",
|
|
18684
18684
|
sx: { textAlign: "center", mb: 2, variant: "body2" },
|
|
@@ -18718,7 +18718,7 @@ function S0({
|
|
|
18718
18718
|
`${G}-${m.getCells().length}`
|
|
18719
18719
|
)),
|
|
18720
18720
|
H,
|
|
18721
|
-
/* @__PURE__ */
|
|
18721
|
+
/* @__PURE__ */ k(
|
|
18722
18722
|
zo,
|
|
18723
18723
|
{
|
|
18724
18724
|
anchorEl: v,
|
|
@@ -18755,7 +18755,7 @@ function zb({
|
|
|
18755
18755
|
notebookData: e
|
|
18756
18756
|
}) {
|
|
18757
18757
|
const [t, n] = O.useState(!1);
|
|
18758
|
-
return /* @__PURE__ */ d(
|
|
18758
|
+
return /* @__PURE__ */ d(Ze, { color: "primary", onClick: async () => {
|
|
18759
18759
|
if (!e) return;
|
|
18760
18760
|
const o = e.toMalloyNotebook();
|
|
18761
18761
|
try {
|
|
@@ -18771,7 +18771,7 @@ function Ub({
|
|
|
18771
18771
|
const { notebookStorage: t, userContext: n } = Al(), [r, o] = O.useState([]);
|
|
18772
18772
|
return O.useEffect(() => {
|
|
18773
18773
|
t && n && o(t.listNotebooks(n));
|
|
18774
|
-
}, [t, n]), /* @__PURE__ */
|
|
18774
|
+
}, [t, n]), /* @__PURE__ */ k(xe, { children: [
|
|
18775
18775
|
/* @__PURE__ */ d(De, {}),
|
|
18776
18776
|
/* @__PURE__ */ d(
|
|
18777
18777
|
Z,
|
|
@@ -18790,7 +18790,7 @@ function Ub({
|
|
|
18790
18790
|
borderRadius: "4px"
|
|
18791
18791
|
}
|
|
18792
18792
|
},
|
|
18793
|
-
children: /* @__PURE__ */
|
|
18793
|
+
children: /* @__PURE__ */ k(Or, { dense: !0, children: [
|
|
18794
18794
|
r.length === 0 && /* @__PURE__ */ d(Zt, { children: /* @__PURE__ */ d(
|
|
18795
18795
|
St,
|
|
18796
18796
|
{
|
|
@@ -18823,10 +18823,10 @@ function Gb() {
|
|
|
18823
18823
|
queryKey: ["about", e],
|
|
18824
18824
|
queryFn: (i) => Hb.getProject(e, !1, i)
|
|
18825
18825
|
});
|
|
18826
|
-
return /* @__PURE__ */
|
|
18826
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
18827
18827
|
!n && !r && /* @__PURE__ */ d(ze, { text: "Fetching About..." }),
|
|
18828
|
-
n && /* @__PURE__ */
|
|
18829
|
-
/* @__PURE__ */ d(
|
|
18828
|
+
n && /* @__PURE__ */ k(Re, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18829
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Readme" }),
|
|
18830
18830
|
/* @__PURE__ */ d(Re, { sx: { p: 1 }, children: /* @__PURE__ */ d(Uo, { children: t.data.readme }) })
|
|
18831
18831
|
] }),
|
|
18832
18832
|
r && /* @__PURE__ */ d(je, { error: o, context: `${e} > About` })
|
|
@@ -18838,10 +18838,10 @@ function qb({ navigate: e }) {
|
|
|
18838
18838
|
queryKey: ["packages", t],
|
|
18839
18839
|
queryFn: (s) => Wb.listPackages(t, s)
|
|
18840
18840
|
});
|
|
18841
|
-
return /* @__PURE__ */
|
|
18841
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
18842
18842
|
!r && !o && /* @__PURE__ */ d(ze, { text: "Fetching Packages..." }),
|
|
18843
|
-
r && /* @__PURE__ */
|
|
18844
|
-
/* @__PURE__ */ d(
|
|
18843
|
+
r && /* @__PURE__ */ k(Re, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18844
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Packages" }),
|
|
18845
18845
|
/* @__PURE__ */ d(Ne, { container: !0, spacing: 2, columns: 12, children: n.data.sort((s, a) => s.name.localeCompare(a.name)).map((s) => /* @__PURE__ */ d(
|
|
18846
18846
|
Ne,
|
|
18847
18847
|
{
|
|
@@ -18859,9 +18859,9 @@ function qb({ navigate: e }) {
|
|
|
18859
18859
|
}
|
|
18860
18860
|
},
|
|
18861
18861
|
onClick: (a) => e(s.name + "/", a),
|
|
18862
|
-
children: /* @__PURE__ */
|
|
18862
|
+
children: /* @__PURE__ */ k(qe, { children: [
|
|
18863
18863
|
/* @__PURE__ */ d(
|
|
18864
|
-
|
|
18864
|
+
L,
|
|
18865
18865
|
{
|
|
18866
18866
|
variant: "overline",
|
|
18867
18867
|
color: "primary.main",
|
|
@@ -18875,7 +18875,7 @@ function qb({ navigate: e }) {
|
|
|
18875
18875
|
maxHeight: "120px",
|
|
18876
18876
|
overflowY: "auto"
|
|
18877
18877
|
},
|
|
18878
|
-
children: /* @__PURE__ */ d(
|
|
18878
|
+
children: /* @__PURE__ */ d(L, { variant: "body2", children: s.description })
|
|
18879
18879
|
}
|
|
18880
18880
|
)
|
|
18881
18881
|
] })
|
|
@@ -18910,7 +18910,7 @@ function C0({
|
|
|
18910
18910
|
return /* @__PURE__ */ d(Ol.Provider, { value: { projectName: t }, children: e });
|
|
18911
18911
|
}
|
|
18912
18912
|
function w0({ navigate: e }) {
|
|
18913
|
-
return /* @__PURE__ */
|
|
18913
|
+
return /* @__PURE__ */ k(Ne, { container: !0, spacing: 2, columns: 12, children: [
|
|
18914
18914
|
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(qb, { navigate: e }) }),
|
|
18915
18915
|
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Gb, {}) })
|
|
18916
18916
|
] });
|
|
@@ -18921,7 +18921,7 @@ function v0({ navigate: e }) {
|
|
|
18921
18921
|
queryKey: ["projects"],
|
|
18922
18922
|
queryFn: (i) => Kb.listProjects(i)
|
|
18923
18923
|
});
|
|
18924
|
-
return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(
|
|
18924
|
+
return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(L, { variant: "h4", children: "No projects found" }) : t.data.length === 1 ? (e(`/${t.data[0].name}/`), /* @__PURE__ */ d(xe, {})) : /* @__PURE__ */ d(
|
|
18925
18925
|
Ne,
|
|
18926
18926
|
{
|
|
18927
18927
|
container: !0,
|
|
@@ -18929,7 +18929,7 @@ function v0({ navigate: e }) {
|
|
|
18929
18929
|
columns: 12,
|
|
18930
18930
|
sx: { mb: (i) => i.spacing(2) },
|
|
18931
18931
|
children: t.data.map((i) => /* @__PURE__ */ d(Ne, { children: /* @__PURE__ */ d(
|
|
18932
|
-
|
|
18932
|
+
L,
|
|
18933
18933
|
{
|
|
18934
18934
|
variant: "h1",
|
|
18935
18935
|
onClick: (s) => e(`/${i.name}/`, s),
|
|
@@ -18962,115 +18962,136 @@ function k0({
|
|
|
18962
18962
|
S
|
|
18963
18963
|
), r("");
|
|
18964
18964
|
};
|
|
18965
|
-
return /* @__PURE__ */
|
|
18965
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
18966
18966
|
/* @__PURE__ */ d(
|
|
18967
|
-
|
|
18967
|
+
Ze,
|
|
18968
18968
|
{
|
|
18969
18969
|
"aria-controls": p ? "basic-menu" : void 0,
|
|
18970
18970
|
"aria-haspopup": "true",
|
|
18971
18971
|
"aria-expanded": p ? "true" : void 0,
|
|
18972
18972
|
onClick: m,
|
|
18973
|
-
|
|
18973
|
+
variant: "contained",
|
|
18974
|
+
sx: {
|
|
18975
|
+
height: "40px",
|
|
18976
|
+
px: 2,
|
|
18977
|
+
backgroundColor: "#fbbb04",
|
|
18978
|
+
"&:hover": {
|
|
18979
|
+
backgroundColor: "#eab308"
|
|
18980
|
+
}
|
|
18981
|
+
},
|
|
18974
18982
|
children: "Analyze Package"
|
|
18975
18983
|
}
|
|
18976
18984
|
),
|
|
18977
|
-
/* @__PURE__ */
|
|
18985
|
+
/* @__PURE__ */ k(
|
|
18978
18986
|
zo,
|
|
18979
18987
|
{
|
|
18980
18988
|
id: "basic-menu",
|
|
18981
18989
|
anchorEl: o,
|
|
18982
18990
|
open: p,
|
|
18983
18991
|
onClose: h,
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18987
|
-
}
|
|
18992
|
+
MenuListProps: {
|
|
18993
|
+
"aria-labelledby": "basic-button",
|
|
18994
|
+
sx: { py: 0.5 }
|
|
18988
18995
|
},
|
|
18989
18996
|
children: [
|
|
18990
|
-
/* @__PURE__ */
|
|
18997
|
+
/* @__PURE__ */ k(
|
|
18991
18998
|
cn,
|
|
18992
18999
|
{
|
|
18993
19000
|
onClick: () => {
|
|
18994
19001
|
a(!0), h();
|
|
18995
19002
|
},
|
|
19003
|
+
sx: { py: 1, px: 2 },
|
|
18996
19004
|
children: [
|
|
18997
19005
|
/* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(bc, { fontSize: "small" }) }),
|
|
18998
|
-
/* @__PURE__ */
|
|
19006
|
+
/* @__PURE__ */ k(St, { children: [
|
|
19007
|
+
/* @__PURE__ */ d(L, { variant: "body2", fontWeight: 500, children: "New Workbook" }),
|
|
19008
|
+
/* @__PURE__ */ d(L, { variant: "caption", color: "text.secondary", children: "Create a new analysis workbook" })
|
|
19009
|
+
] })
|
|
18999
19010
|
]
|
|
19000
19011
|
}
|
|
19001
19012
|
),
|
|
19002
|
-
/* @__PURE__ */
|
|
19013
|
+
/* @__PURE__ */ k(
|
|
19003
19014
|
cn,
|
|
19004
19015
|
{
|
|
19005
19016
|
onClick: () => {
|
|
19006
19017
|
c(!0), h();
|
|
19007
19018
|
},
|
|
19019
|
+
sx: { py: 1, px: 2 },
|
|
19008
19020
|
children: [
|
|
19009
19021
|
/* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(xc, { fontSize: "small" }) }),
|
|
19010
|
-
/* @__PURE__ */
|
|
19022
|
+
/* @__PURE__ */ k(St, { children: [
|
|
19023
|
+
/* @__PURE__ */ d(L, { variant: "body2", fontWeight: 500, children: "Open Workbook" }),
|
|
19024
|
+
/* @__PURE__ */ d(L, { variant: "caption", color: "text.secondary", children: "Open an existing workbook" })
|
|
19025
|
+
] })
|
|
19011
19026
|
]
|
|
19012
19027
|
}
|
|
19013
19028
|
)
|
|
19014
19029
|
]
|
|
19015
19030
|
}
|
|
19016
19031
|
),
|
|
19017
|
-
/* @__PURE__ */
|
|
19032
|
+
/* @__PURE__ */ k(
|
|
19018
19033
|
sn,
|
|
19019
19034
|
{
|
|
19020
19035
|
open: s,
|
|
19021
19036
|
onClose: y,
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
width: "100%",
|
|
19025
|
-
maxWidth: "300px"
|
|
19026
|
-
}
|
|
19027
|
-
},
|
|
19037
|
+
maxWidth: "sm",
|
|
19038
|
+
fullWidth: !0,
|
|
19028
19039
|
children: [
|
|
19029
|
-
/* @__PURE__ */
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19040
|
+
/* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19041
|
+
/* @__PURE__ */ d(L, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Create New Workbook" }),
|
|
19042
|
+
/* @__PURE__ */ d(L, { variant: "body2", color: "text.secondary", children: "Start a new analysis workbook to explore your data" })
|
|
19043
|
+
] }),
|
|
19044
|
+
/* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ k(Me, { spacing: 2, sx: { mt: 1 }, children: [
|
|
19045
|
+
/* @__PURE__ */ d(Vs, { fullWidth: !0, children: /* @__PURE__ */ d(
|
|
19046
|
+
ic,
|
|
19047
|
+
{
|
|
19048
|
+
label: "Workbook Name",
|
|
19049
|
+
value: n,
|
|
19050
|
+
onChange: (S) => r(S.target.value),
|
|
19051
|
+
placeholder: "Enter workbook name...",
|
|
19052
|
+
fullWidth: !0,
|
|
19053
|
+
autoFocus: !0,
|
|
19054
|
+
size: "small"
|
|
19055
|
+
}
|
|
19056
|
+
) }),
|
|
19057
|
+
/* @__PURE__ */ k(Me, { direction: "row", spacing: 1, justifyContent: "flex-end", children: [
|
|
19058
|
+
/* @__PURE__ */ d(
|
|
19059
|
+
Ze,
|
|
19060
|
+
{
|
|
19061
|
+
onClick: y,
|
|
19062
|
+
variant: "outlined",
|
|
19063
|
+
size: "small",
|
|
19064
|
+
children: "Cancel"
|
|
19065
|
+
}
|
|
19066
|
+
),
|
|
19067
|
+
/* @__PURE__ */ d(
|
|
19068
|
+
Ze,
|
|
19069
|
+
{
|
|
19070
|
+
onClick: (S) => x(S),
|
|
19071
|
+
variant: "contained",
|
|
19072
|
+
disabled: !n.trim(),
|
|
19073
|
+
size: "small",
|
|
19074
|
+
children: "Create Workbook"
|
|
19075
|
+
}
|
|
19076
|
+
)
|
|
19077
|
+
] })
|
|
19078
|
+
] }) })
|
|
19057
19079
|
]
|
|
19058
19080
|
}
|
|
19059
19081
|
),
|
|
19060
|
-
/* @__PURE__ */
|
|
19082
|
+
/* @__PURE__ */ k(
|
|
19061
19083
|
sn,
|
|
19062
19084
|
{
|
|
19063
19085
|
open: l,
|
|
19064
19086
|
onClose: f,
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
width: "100%",
|
|
19068
|
-
maxWidth: "300px"
|
|
19069
|
-
}
|
|
19070
|
-
},
|
|
19087
|
+
maxWidth: "md",
|
|
19088
|
+
fullWidth: !0,
|
|
19071
19089
|
children: [
|
|
19072
|
-
/* @__PURE__ */
|
|
19073
|
-
|
|
19090
|
+
/* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19091
|
+
/* @__PURE__ */ d(L, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Open Workbook" }),
|
|
19092
|
+
/* @__PURE__ */ d(L, { variant: "body2", color: "text.secondary", children: "Select an existing workbook to continue your analysis" })
|
|
19093
|
+
] }),
|
|
19094
|
+
/* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ d(
|
|
19074
19095
|
$b,
|
|
19075
19096
|
{
|
|
19076
19097
|
notebookStorage: new Qf(),
|
|
@@ -19098,9 +19119,9 @@ function I0({
|
|
|
19098
19119
|
queryKey: ["tablePath", t, e],
|
|
19099
19120
|
queryFn: (h) => wi.listSchemas(t, e, h)
|
|
19100
19121
|
});
|
|
19101
|
-
return /* @__PURE__ */
|
|
19102
|
-
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */
|
|
19103
|
-
/* @__PURE__ */
|
|
19122
|
+
return /* @__PURE__ */ k(Ne, { container: !0, spacing: 2, children: [
|
|
19123
|
+
/* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ k(xo, { sx: { p: 2 }, children: [
|
|
19124
|
+
/* @__PURE__ */ k(
|
|
19104
19125
|
Z,
|
|
19105
19126
|
{
|
|
19106
19127
|
sx: {
|
|
@@ -19110,7 +19131,7 @@ function I0({
|
|
|
19110
19131
|
mb: 1
|
|
19111
19132
|
},
|
|
19112
19133
|
children: [
|
|
19113
|
-
/* @__PURE__ */ d(
|
|
19134
|
+
/* @__PURE__ */ d(L, { variant: "overline", fontWeight: "bold", children: "Table Paths" }),
|
|
19114
19135
|
/* @__PURE__ */ d(
|
|
19115
19136
|
sc,
|
|
19116
19137
|
{
|
|
@@ -19128,7 +19149,7 @@ function I0({
|
|
|
19128
19149
|
}
|
|
19129
19150
|
),
|
|
19130
19151
|
/* @__PURE__ */ d(De, {}),
|
|
19131
|
-
/* @__PURE__ */
|
|
19152
|
+
/* @__PURE__ */ k(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
|
|
19132
19153
|
m && /* @__PURE__ */ d(ze, { text: "Fetching Table Paths..." }),
|
|
19133
19154
|
u && /* @__PURE__ */ d(
|
|
19134
19155
|
je,
|
|
@@ -19137,7 +19158,7 @@ function I0({
|
|
|
19137
19158
|
context: `${t} > ${e}`
|
|
19138
19159
|
}
|
|
19139
19160
|
),
|
|
19140
|
-
c && l.data.length === 0 && /* @__PURE__ */ d(
|
|
19161
|
+
c && l.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", children: "No Schemas" }),
|
|
19141
19162
|
c && l.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: l.data.filter(
|
|
19142
19163
|
({ isHidden: h }) => s || !h
|
|
19143
19164
|
).sort((h, f) => h.isDefault === f.isDefault ? 0 : h.isDefault ? -1 : 1).map(
|
|
@@ -19196,14 +19217,14 @@ function Qb({
|
|
|
19196
19217
|
u
|
|
19197
19218
|
)
|
|
19198
19219
|
});
|
|
19199
|
-
return s && i && console.log(i), /* @__PURE__ */
|
|
19200
|
-
/* @__PURE__ */
|
|
19220
|
+
return s && i && console.log(i), /* @__PURE__ */ k(sn, { open: !0, onClose: r, maxWidth: "sm", fullWidth: !0, children: [
|
|
19221
|
+
/* @__PURE__ */ k(an, { children: [
|
|
19201
19222
|
"Table: ",
|
|
19202
19223
|
t,
|
|
19203
19224
|
".",
|
|
19204
19225
|
n,
|
|
19205
19226
|
/* @__PURE__ */ d(
|
|
19206
|
-
|
|
19227
|
+
L,
|
|
19207
19228
|
{
|
|
19208
19229
|
fontSize: "large",
|
|
19209
19230
|
variant: "body2",
|
|
@@ -19234,7 +19255,7 @@ function Qb({
|
|
|
19234
19255
|
}
|
|
19235
19256
|
)
|
|
19236
19257
|
] }),
|
|
19237
|
-
/* @__PURE__ */
|
|
19258
|
+
/* @__PURE__ */ k(ln, { children: [
|
|
19238
19259
|
c && /* @__PURE__ */ d(ze, { text: "Fetching Table Details..." }),
|
|
19239
19260
|
a && /* @__PURE__ */ d(
|
|
19240
19261
|
je,
|
|
@@ -19243,18 +19264,18 @@ function Qb({
|
|
|
19243
19264
|
context: `${o} > ${e} > ${t}.${n}`
|
|
19244
19265
|
}
|
|
19245
19266
|
),
|
|
19246
|
-
s && i && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */
|
|
19267
|
+
s && i && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ k(
|
|
19247
19268
|
Pn,
|
|
19248
19269
|
{
|
|
19249
19270
|
size: "small",
|
|
19250
19271
|
sx: { "& .MuiTableCell-root": { padding: "10px" } },
|
|
19251
19272
|
children: [
|
|
19252
|
-
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */
|
|
19273
|
+
/* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
|
|
19253
19274
|
/* @__PURE__ */ d(ne, { children: "NAME" }),
|
|
19254
19275
|
/* @__PURE__ */ d(ne, { children: "TYPE" })
|
|
19255
19276
|
] }) }),
|
|
19256
19277
|
/* @__PURE__ */ d(Rn, { children: i.data.columns?.map(
|
|
19257
|
-
(u) => /* @__PURE__ */
|
|
19278
|
+
(u) => /* @__PURE__ */ k(at, { children: [
|
|
19258
19279
|
/* @__PURE__ */ d(ne, { children: u.name }),
|
|
19259
19280
|
/* @__PURE__ */ d(ne, { children: u.type })
|
|
19260
19281
|
] }, u.name)
|
|
@@ -19279,13 +19300,13 @@ function Yb({
|
|
|
19279
19300
|
c
|
|
19280
19301
|
)
|
|
19281
19302
|
});
|
|
19282
|
-
return /* @__PURE__ */
|
|
19283
|
-
/* @__PURE__ */
|
|
19303
|
+
return /* @__PURE__ */ k(xe, { children: [
|
|
19304
|
+
/* @__PURE__ */ k(L, { variant: "overline", fontWeight: "bold", children: [
|
|
19284
19305
|
"Tables in ",
|
|
19285
19306
|
t
|
|
19286
19307
|
] }),
|
|
19287
19308
|
/* @__PURE__ */ d(De, {}),
|
|
19288
|
-
/* @__PURE__ */
|
|
19309
|
+
/* @__PURE__ */ k(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
|
|
19289
19310
|
l && /* @__PURE__ */ d(ze, { text: "Fetching Tables..." }),
|
|
19290
19311
|
s && /* @__PURE__ */ d(
|
|
19291
19312
|
je,
|
|
@@ -19294,7 +19315,7 @@ function Yb({
|
|
|
19294
19315
|
context: `${r} > ${e} > ${t}`
|
|
19295
19316
|
}
|
|
19296
19317
|
),
|
|
19297
|
-
i && o.data.length === 0 && /* @__PURE__ */ d(
|
|
19318
|
+
i && o.data.length === 0 && /* @__PURE__ */ d(L, { variant: "body2", children: "No Tables" }),
|
|
19298
19319
|
i && o.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: o.data.map((c) => /* @__PURE__ */ d(
|
|
19299
19320
|
Fs,
|
|
19300
19321
|
{
|
|
@@ -19328,9 +19349,9 @@ export {
|
|
|
19328
19349
|
Xa as SourceExplorerComponent,
|
|
19329
19350
|
Ya as SourcesExplorer,
|
|
19330
19351
|
Al as useNotebookStorage,
|
|
19331
|
-
|
|
19352
|
+
nt as usePackage,
|
|
19332
19353
|
Wn as useProject,
|
|
19333
|
-
|
|
19354
|
+
nt as usePublisherPackage,
|
|
19334
19355
|
el as useRouterClickHandler,
|
|
19335
19356
|
Ci as useServer
|
|
19336
19357
|
};
|