@malloy-publisher/sdk 0.0.54 → 0.0.58
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 +16 -16
- package/dist/index.es.js +380 -373
- package/package.json +4 -1
- package/src/components/Notebook/NotebookCell.tsx +77 -62
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import O, { createContext as Rr, useContext as _r, lazy as Ms, Suspense as Ls, u
|
|
|
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 N, Box as Z, CircularProgress as ec, Stack as Te, 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 Me, 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";
|
|
@@ -1689,9 +1689,9 @@ function rd(e, t = {}) {
|
|
|
1689
1689
|
const {
|
|
1690
1690
|
vars: w,
|
|
1691
1691
|
css: P,
|
|
1692
|
-
varsWithDefaults:
|
|
1692
|
+
varsWithDefaults: M
|
|
1693
1693
|
} = io(v, t);
|
|
1694
|
-
m = We(m,
|
|
1694
|
+
m = We(m, M), h[C] = {
|
|
1695
1695
|
css: P,
|
|
1696
1696
|
vars: w
|
|
1697
1697
|
};
|
|
@@ -1746,7 +1746,7 @@ function rd(e, t = {}) {
|
|
|
1746
1746
|
}), u);
|
|
1747
1747
|
const {
|
|
1748
1748
|
[v]: P,
|
|
1749
|
-
...
|
|
1749
|
+
...M
|
|
1750
1750
|
} = h;
|
|
1751
1751
|
if (P) {
|
|
1752
1752
|
const {
|
|
@@ -1761,7 +1761,7 @@ function rd(e, t = {}) {
|
|
|
1761
1761
|
...g
|
|
1762
1762
|
}), g);
|
|
1763
1763
|
}
|
|
1764
|
-
return Object.entries(
|
|
1764
|
+
return Object.entries(M).forEach(([V, {
|
|
1765
1765
|
css: F
|
|
1766
1766
|
}]) => {
|
|
1767
1767
|
const g = i[V]?.palette?.mode, R = !r && g ? {
|
|
@@ -2353,12 +2353,12 @@ function Nd(e = {}, ...t) {
|
|
|
2353
2353
|
getSelector: Rd(v)
|
|
2354
2354
|
}, {
|
|
2355
2355
|
vars: P,
|
|
2356
|
-
generateThemeVars:
|
|
2356
|
+
generateThemeVars: M,
|
|
2357
2357
|
generateStyleSheets: V
|
|
2358
2358
|
} = rd(v, w);
|
|
2359
2359
|
return v.vars = P, Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F, g]) => {
|
|
2360
2360
|
v[F] = g;
|
|
2361
|
-
}), v.generateThemeVars =
|
|
2361
|
+
}), v.generateThemeVars = M, v.generateStyleSheets = V, v.generateSpacing = function() {
|
|
2362
2362
|
return Wl(c.spacing, Wo(this));
|
|
2363
2363
|
}, v.getColorSchemeSelector = id(a), v.spacing = v.generateSpacing(), v.shouldSkipGeneratingVar = s, v.unstable_sxConfig = {
|
|
2364
2364
|
...Vr,
|
|
@@ -2530,8 +2530,8 @@ function Vd(e = {}) {
|
|
|
2530
2530
|
if (w.__emotion_real === w)
|
|
2531
2531
|
return w;
|
|
2532
2532
|
if (typeof w == "function")
|
|
2533
|
-
return function(
|
|
2534
|
-
return sr(
|
|
2533
|
+
return function(M) {
|
|
2534
|
+
return sr(M, w);
|
|
2535
2535
|
};
|
|
2536
2536
|
if (ft(w)) {
|
|
2537
2537
|
const P = $d(w);
|
|
@@ -2541,7 +2541,7 @@ function Vd(e = {}) {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
return w;
|
|
2543
2543
|
}, v = (...w) => {
|
|
2544
|
-
const P = [],
|
|
2544
|
+
const P = [], M = w.map(C), V = [];
|
|
2545
2545
|
if (P.push(i), c && h && V.push(function(A) {
|
|
2546
2546
|
const j = A.theme.components?.[c]?.styleOverrides;
|
|
2547
2547
|
if (!j)
|
|
@@ -2553,12 +2553,12 @@ function Vd(e = {}) {
|
|
|
2553
2553
|
}), c && !y && V.push(function(A) {
|
|
2554
2554
|
const j = A.theme?.components?.[c]?.variants;
|
|
2555
2555
|
return j ? ea(A, j) : null;
|
|
2556
|
-
}), b || V.push(un), Array.isArray(
|
|
2557
|
-
const R =
|
|
2556
|
+
}), b || V.push(un), Array.isArray(M[0])) {
|
|
2557
|
+
const R = M.shift(), A = new Array(P.length).fill(""), D = new Array(V.length).fill("");
|
|
2558
2558
|
let j;
|
|
2559
2559
|
j = [...A, ...R, ...D], j.raw = [...A, ...R.raw, ...D], P.unshift(j);
|
|
2560
2560
|
}
|
|
2561
|
-
const F = [...P, ...
|
|
2561
|
+
const F = [...P, ...M, ...V], g = S(...F);
|
|
2562
2562
|
return a.muiName && (g.muiName = a.muiName), g;
|
|
2563
2563
|
};
|
|
2564
2564
|
return S.withConfig && (v.withConfig = S.withConfig), v;
|
|
@@ -2751,7 +2751,7 @@ const qd = (e) => {
|
|
|
2751
2751
|
});
|
|
2752
2752
|
});
|
|
2753
2753
|
vo.muiName = "SvgIcon";
|
|
2754
|
-
function
|
|
2754
|
+
function Ae(e, t) {
|
|
2755
2755
|
function n(r, o) {
|
|
2756
2756
|
return /* @__PURE__ */ d(vo, {
|
|
2757
2757
|
"data-testid": void 0,
|
|
@@ -2863,9 +2863,9 @@ function Xd(e, t) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
};
|
|
2865
2865
|
}
|
|
2866
|
-
const zr =
|
|
2866
|
+
const zr = Ae(/* @__PURE__ */ d("path", {
|
|
2867
2867
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
2868
|
-
})), Fn =
|
|
2868
|
+
})), Fn = Ae(/* @__PURE__ */ d("path", {
|
|
2869
2869
|
d: "M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"
|
|
2870
2870
|
})), ye = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
2871
2871
|
class _t {
|
|
@@ -5746,14 +5746,14 @@ async function Sp(e) {
|
|
|
5746
5746
|
}
|
|
5747
5747
|
return await m(), r;
|
|
5748
5748
|
}
|
|
5749
|
-
var Cp = Object.defineProperty, wp = (e, t, n) => t in e ? Cp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5750
|
-
let
|
|
5749
|
+
var Cp = Object.defineProperty, wp = (e, t, n) => t in e ? Cp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Re = (e, t, n) => (wp(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5750
|
+
let Ne = null;
|
|
5751
5751
|
function vp(e) {
|
|
5752
5752
|
throw new ri(e.UTF8ToString(e.getLastOnigError()));
|
|
5753
5753
|
}
|
|
5754
5754
|
class Hr {
|
|
5755
5755
|
constructor(t) {
|
|
5756
|
-
|
|
5756
|
+
Re(this, "utf16Length"), Re(this, "utf8Length"), Re(this, "utf16Value"), Re(this, "utf8Value"), Re(this, "utf16OffsetToUtf8"), Re(this, "utf8OffsetToUtf16");
|
|
5757
5757
|
const n = t.length, r = Hr._utf8ByteLength(t), o = r !== n, i = o ? new Uint32Array(n + 1) : null;
|
|
5758
5758
|
o && (i[n] = r);
|
|
5759
5759
|
const s = o ? new Uint32Array(r + 1) : null;
|
|
@@ -5791,11 +5791,11 @@ class Hr {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
const it = class {
|
|
5793
5793
|
constructor(e) {
|
|
5794
|
-
if (
|
|
5794
|
+
if (Re(this, "id", ++it.LAST_ID), Re(this, "_onigBinding"), Re(this, "content"), Re(this, "utf16Length"), Re(this, "utf8Length"), Re(this, "utf16OffsetToUtf8"), Re(this, "utf8OffsetToUtf16"), Re(this, "ptr"), !Ne)
|
|
5795
5795
|
throw new ri("Must invoke loadWasm first.");
|
|
5796
|
-
this._onigBinding =
|
|
5796
|
+
this._onigBinding = Ne, this.content = e;
|
|
5797
5797
|
const t = new Hr(e);
|
|
5798
|
-
this.utf16Length = t.utf16Length, this.utf8Length = t.utf8Length, this.utf16OffsetToUtf8 = t.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = t.utf8OffsetToUtf16, this.utf8Length < 1e4 && !it._sharedPtrInUse ? (it._sharedPtr || (it._sharedPtr =
|
|
5798
|
+
this.utf16Length = t.utf16Length, this.utf8Length = t.utf8Length, this.utf16OffsetToUtf8 = t.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = t.utf8OffsetToUtf16, this.utf8Length < 1e4 && !it._sharedPtrInUse ? (it._sharedPtr || (it._sharedPtr = Ne.omalloc(1e4)), it._sharedPtrInUse = !0, Ne.HEAPU8.set(t.utf8Value, it._sharedPtr), this.ptr = it._sharedPtr) : this.ptr = t.createString(Ne);
|
|
5799
5799
|
}
|
|
5800
5800
|
convertUtf8OffsetToUtf16(e) {
|
|
5801
5801
|
return this.utf8OffsetToUtf16 ? e < 0 ? 0 : e > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[e] : e;
|
|
@@ -5808,26 +5808,26 @@ const it = class {
|
|
|
5808
5808
|
}
|
|
5809
5809
|
};
|
|
5810
5810
|
let zn = it;
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5811
|
+
Re(zn, "LAST_ID", 0);
|
|
5812
|
+
Re(zn, "_sharedPtr", 0);
|
|
5813
|
+
Re(zn, "_sharedPtrInUse", !1);
|
|
5814
5814
|
class kp {
|
|
5815
5815
|
constructor(t) {
|
|
5816
|
-
if (
|
|
5816
|
+
if (Re(this, "_onigBinding"), Re(this, "_ptr"), !Ne)
|
|
5817
5817
|
throw new ri("Must invoke loadWasm first.");
|
|
5818
5818
|
const n = [], r = [];
|
|
5819
5819
|
for (let a = 0, l = t.length; a < l; a++) {
|
|
5820
5820
|
const c = new Hr(t[a]);
|
|
5821
|
-
n[a] = c.createString(
|
|
5821
|
+
n[a] = c.createString(Ne), r[a] = c.utf8Length;
|
|
5822
5822
|
}
|
|
5823
|
-
const o =
|
|
5824
|
-
|
|
5825
|
-
const i =
|
|
5826
|
-
|
|
5827
|
-
const s =
|
|
5823
|
+
const o = Ne.omalloc(4 * t.length);
|
|
5824
|
+
Ne.HEAPU32.set(n, o / 4);
|
|
5825
|
+
const i = Ne.omalloc(4 * t.length);
|
|
5826
|
+
Ne.HEAPU32.set(r, i / 4);
|
|
5827
|
+
const s = Ne.createOnigScanner(o, i, t.length);
|
|
5828
5828
|
for (let a = 0, l = t.length; a < l; a++)
|
|
5829
|
-
|
|
5830
|
-
|
|
5829
|
+
Ne.ofree(n[a]);
|
|
5830
|
+
Ne.ofree(i), Ne.ofree(o), s === 0 && vp(Ne), this._onigBinding = Ne, this._ptr = s;
|
|
5831
5831
|
}
|
|
5832
5832
|
dispose() {
|
|
5833
5833
|
this._onigBinding.freeOnigScanner(this._ptr);
|
|
@@ -5882,7 +5882,7 @@ function _p(e) {
|
|
|
5882
5882
|
if (Zn)
|
|
5883
5883
|
return Zn;
|
|
5884
5884
|
async function t() {
|
|
5885
|
-
|
|
5885
|
+
Ne = await Sp(async (n) => {
|
|
5886
5886
|
let r = e;
|
|
5887
5887
|
return r = await r, typeof r == "function" && (r = await r(n)), typeof r == "function" && (r = await r(n)), Ip(r) ? r = await r.instantiator(n) : Ep(r) ? r = await r.default(n) : (Tp(r) && (r = r.data), Pp(r) ? typeof WebAssembly.instantiateStreaming == "function" ? r = await Ap(r)(n) : r = await Op(r)(n) : Rp(r) ? r = await ao(r)(n) : r instanceof WebAssembly.Module ? r = await ao(r)(n) : "default" in r && r.default instanceof WebAssembly.Module && (r = await ao(r.default)(n))), "instance" in r && (r = r.instance), "exports" in r && (r = r.exports), r;
|
|
5888
5888
|
});
|
|
@@ -7119,11 +7119,11 @@ function Ca(e, t, n, r, o, i, s, a) {
|
|
|
7119
7119
|
const P = w.getContentName(
|
|
7120
7120
|
t.content,
|
|
7121
7121
|
f
|
|
7122
|
-
),
|
|
7122
|
+
), M = v.pushAttributed(
|
|
7123
7123
|
P,
|
|
7124
7124
|
e
|
|
7125
7125
|
);
|
|
7126
|
-
if (o = o.withContentNameScopesList(
|
|
7126
|
+
if (o = o.withContentNameScopesList(M), w.endHasBackReferences && (o = o.withEndRule(
|
|
7127
7127
|
w.getEndWithResolvedBackReferences(
|
|
7128
7128
|
t.content,
|
|
7129
7129
|
f
|
|
@@ -7146,11 +7146,11 @@ function Ca(e, t, n, r, o, i, s, a) {
|
|
|
7146
7146
|
const P = w.getContentName(
|
|
7147
7147
|
t.content,
|
|
7148
7148
|
f
|
|
7149
|
-
),
|
|
7149
|
+
), M = v.pushAttributed(
|
|
7150
7150
|
P,
|
|
7151
7151
|
e
|
|
7152
7152
|
);
|
|
7153
|
-
if (o = o.withContentNameScopesList(
|
|
7153
|
+
if (o = o.withContentNameScopesList(M), w.whileHasBackReferences && (o = o.withEndRule(
|
|
7154
7154
|
w.getWhileWithResolvedBackReferences(
|
|
7155
7155
|
t.content,
|
|
7156
7156
|
f
|
|
@@ -9711,7 +9711,7 @@ function si(e) {
|
|
|
9711
9711
|
function ms(e) {
|
|
9712
9712
|
return e.replace(tm, "") === "";
|
|
9713
9713
|
}
|
|
9714
|
-
const
|
|
9714
|
+
const Oe = Ma(1), Na = Ma(-1), nm = [];
|
|
9715
9715
|
function Ma(e) {
|
|
9716
9716
|
return t;
|
|
9717
9717
|
function t(n, r, o) {
|
|
@@ -9752,63 +9752,63 @@ const ai = La({
|
|
|
9752
9752
|
tr: fm
|
|
9753
9753
|
});
|
|
9754
9754
|
function mo(e, t, n) {
|
|
9755
|
-
const r =
|
|
9755
|
+
const r = Oe(n, t, !0);
|
|
9756
9756
|
return !r || r.type !== "comment" && !(r.type === "text" && si(r.value.charAt(0)));
|
|
9757
9757
|
}
|
|
9758
9758
|
function om(e, t, n) {
|
|
9759
|
-
const r =
|
|
9759
|
+
const r = Oe(n, t);
|
|
9760
9760
|
return !r || r.type !== "comment";
|
|
9761
9761
|
}
|
|
9762
9762
|
function im(e, t, n) {
|
|
9763
|
-
const r =
|
|
9763
|
+
const r = Oe(n, t);
|
|
9764
9764
|
return !r || r.type !== "comment";
|
|
9765
9765
|
}
|
|
9766
9766
|
function sm(e, t, n) {
|
|
9767
|
-
const r =
|
|
9767
|
+
const r = Oe(n, t);
|
|
9768
9768
|
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || // Confusing parent.
|
|
9769
9769
|
!(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
|
|
9770
9770
|
}
|
|
9771
9771
|
function am(e, t, n) {
|
|
9772
|
-
const r =
|
|
9772
|
+
const r = Oe(n, t);
|
|
9773
9773
|
return !r || r.type === "element" && r.tagName === "li";
|
|
9774
9774
|
}
|
|
9775
9775
|
function lm(e, t, n) {
|
|
9776
|
-
const r =
|
|
9776
|
+
const r = Oe(n, t);
|
|
9777
9777
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
9778
9778
|
}
|
|
9779
9779
|
function cm(e, t, n) {
|
|
9780
|
-
const r =
|
|
9780
|
+
const r = Oe(n, t);
|
|
9781
9781
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
9782
9782
|
}
|
|
9783
9783
|
function fs(e, t, n) {
|
|
9784
|
-
const r =
|
|
9784
|
+
const r = Oe(n, t);
|
|
9785
9785
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
9786
9786
|
}
|
|
9787
9787
|
function um(e, t, n) {
|
|
9788
|
-
const r =
|
|
9788
|
+
const r = Oe(n, t);
|
|
9789
9789
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
9790
9790
|
}
|
|
9791
9791
|
function dm(e, t, n) {
|
|
9792
|
-
const r =
|
|
9792
|
+
const r = Oe(n, t);
|
|
9793
9793
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
9794
9794
|
}
|
|
9795
9795
|
function pm(e, t, n) {
|
|
9796
|
-
const r =
|
|
9796
|
+
const r = Oe(n, t);
|
|
9797
9797
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
9798
9798
|
}
|
|
9799
9799
|
function hm(e, t, n) {
|
|
9800
|
-
const r =
|
|
9800
|
+
const r = Oe(n, t);
|
|
9801
9801
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
9802
9802
|
}
|
|
9803
9803
|
function mm(e, t, n) {
|
|
9804
|
-
return !
|
|
9804
|
+
return !Oe(n, t);
|
|
9805
9805
|
}
|
|
9806
9806
|
function fm(e, t, n) {
|
|
9807
|
-
const r =
|
|
9807
|
+
const r = Oe(n, t);
|
|
9808
9808
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
9809
9809
|
}
|
|
9810
9810
|
function gs(e, t, n) {
|
|
9811
|
-
const r =
|
|
9811
|
+
const r = Oe(n, t);
|
|
9812
9812
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
9813
9813
|
}
|
|
9814
9814
|
const gm = La({
|
|
@@ -9819,7 +9819,7 @@ const gm = La({
|
|
|
9819
9819
|
tbody: Cm
|
|
9820
9820
|
});
|
|
9821
9821
|
function ym(e) {
|
|
9822
|
-
const t =
|
|
9822
|
+
const t = Oe(e, -1);
|
|
9823
9823
|
return !t || t.type !== "comment";
|
|
9824
9824
|
}
|
|
9825
9825
|
function bm(e) {
|
|
@@ -9833,15 +9833,15 @@ function bm(e) {
|
|
|
9833
9833
|
return !n || n.type === "element";
|
|
9834
9834
|
}
|
|
9835
9835
|
function xm(e) {
|
|
9836
|
-
const t =
|
|
9836
|
+
const t = Oe(e, -1, !0);
|
|
9837
9837
|
return !t || t.type !== "comment" && !(t.type === "text" && si(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
|
|
9838
9838
|
}
|
|
9839
9839
|
function Sm(e, t, n) {
|
|
9840
|
-
const r = Na(n, t), o =
|
|
9840
|
+
const r = Na(n, t), o = Oe(e, -1, !0);
|
|
9841
9841
|
return n && r && r.type === "element" && r.tagName === "colgroup" && ai(r, n.children.indexOf(r), n) ? !1 : !!(o && o.type === "element" && o.tagName === "col");
|
|
9842
9842
|
}
|
|
9843
9843
|
function Cm(e, t, n) {
|
|
9844
|
-
const r = Na(n, t), o =
|
|
9844
|
+
const r = Na(n, t), o = Oe(e, -1);
|
|
9845
9845
|
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && ai(r, n.children.indexOf(r), n) ? !1 : !!(o && o.type === "element" && o.tagName === "tr");
|
|
9846
9846
|
}
|
|
9847
9847
|
const nr = {
|
|
@@ -10641,14 +10641,14 @@ function kr(e, t, n, r, o) {
|
|
|
10641
10641
|
o.includeExplanation && (b = t.tokenizeLine(f, c), x = b.tokens, S = 0);
|
|
10642
10642
|
const C = t.tokenizeLine2(f, c, a), v = C.tokens.length / 2;
|
|
10643
10643
|
for (let w = 0; w < v; w++) {
|
|
10644
|
-
const P = C.tokens[2 * w],
|
|
10645
|
-
if (P ===
|
|
10644
|
+
const P = C.tokens[2 * w], M = w + 1 < v ? C.tokens[2 * w + 2] : f.length;
|
|
10645
|
+
if (P === M)
|
|
10646
10646
|
continue;
|
|
10647
10647
|
const V = C.tokens[2 * w + 1], F = Lt(
|
|
10648
10648
|
r[dn.getForeground(V)],
|
|
10649
10649
|
i
|
|
10650
10650
|
), g = dn.getFontStyle(V), R = {
|
|
10651
|
-
content: f.substring(P,
|
|
10651
|
+
content: f.substring(P, M),
|
|
10652
10652
|
offset: y + P,
|
|
10653
10653
|
color: F,
|
|
10654
10654
|
fontStyle: g
|
|
@@ -10675,7 +10675,7 @@ function kr(e, t, n, r, o) {
|
|
|
10675
10675
|
}
|
|
10676
10676
|
R.explanation = [];
|
|
10677
10677
|
let D = 0;
|
|
10678
|
-
for (; P + D <
|
|
10678
|
+
for (; P + D < M; ) {
|
|
10679
10679
|
const j = x[S], K = f.substring(
|
|
10680
10680
|
j.startIndex,
|
|
10681
10681
|
j.endIndex
|
|
@@ -12037,7 +12037,7 @@ async function Ft(e, t) {
|
|
|
12037
12037
|
theme: qa
|
|
12038
12038
|
});
|
|
12039
12039
|
}
|
|
12040
|
-
const
|
|
12040
|
+
const _e = Rt(Ds)({
|
|
12041
12041
|
display: "flex",
|
|
12042
12042
|
flexDirection: "column",
|
|
12043
12043
|
height: "100%"
|
|
@@ -12071,7 +12071,7 @@ Rt("div")({
|
|
|
12071
12071
|
height: "100%",
|
|
12072
12072
|
flex: "0 0 auto"
|
|
12073
12073
|
});
|
|
12074
|
-
const kf =
|
|
12074
|
+
const kf = Ae([/* @__PURE__ */ d("path", {
|
|
12075
12075
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"
|
|
12076
12076
|
}, "0"), /* @__PURE__ */ d("path", {
|
|
12077
12077
|
d: "M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"
|
|
@@ -12092,7 +12092,7 @@ function nt() {
|
|
|
12092
12092
|
function je({ error: e, context: t }) {
|
|
12093
12093
|
const n = e.data?.message || "Unknown Error";
|
|
12094
12094
|
return /* @__PURE__ */ k(xe, { children: [
|
|
12095
|
-
t && /* @__PURE__ */ d(
|
|
12095
|
+
t && /* @__PURE__ */ d(N, { variant: "body2", sx: { p: "10px", m: "auto" }, children: t }),
|
|
12096
12096
|
/* @__PURE__ */ d(
|
|
12097
12097
|
"pre",
|
|
12098
12098
|
{
|
|
@@ -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(N, { variant: s, color: "text.secondary", children: e })
|
|
12131
12131
|
]
|
|
12132
12132
|
}
|
|
12133
12133
|
);
|
|
@@ -12302,7 +12302,7 @@ function _f({
|
|
|
12302
12302
|
},
|
|
12303
12303
|
children: [
|
|
12304
12304
|
/* @__PURE__ */ k(
|
|
12305
|
-
|
|
12305
|
+
Te,
|
|
12306
12306
|
{
|
|
12307
12307
|
sx: {
|
|
12308
12308
|
display: "flex",
|
|
@@ -12312,7 +12312,7 @@ function _f({
|
|
|
12312
12312
|
},
|
|
12313
12313
|
children: [
|
|
12314
12314
|
/* @__PURE__ */ d(
|
|
12315
|
-
|
|
12315
|
+
N,
|
|
12316
12316
|
{
|
|
12317
12317
|
variant: "subtitle2",
|
|
12318
12318
|
sx: { mt: "auto", mb: "auto" },
|
|
@@ -12359,7 +12359,7 @@ function _f({
|
|
|
12359
12359
|
/* @__PURE__ */ k(xt, { in: p, timeout: "auto", unmountOnExit: !0, children: [
|
|
12360
12360
|
/* @__PURE__ */ d(De, {}),
|
|
12361
12361
|
/* @__PURE__ */ k(
|
|
12362
|
-
|
|
12362
|
+
Te,
|
|
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
|
+
N,
|
|
12373
12373
|
{
|
|
12374
12374
|
sx: {
|
|
12375
12375
|
fontSize: "12px",
|
|
@@ -12405,7 +12405,7 @@ function _f({
|
|
|
12405
12405
|
/* @__PURE__ */ d(De, { sx: { mb: "4px" } }),
|
|
12406
12406
|
y && /* @__PURE__ */ k(xe, { children: [
|
|
12407
12407
|
/* @__PURE__ */ d(
|
|
12408
|
-
|
|
12408
|
+
Te,
|
|
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
|
+
N,
|
|
12417
12417
|
{
|
|
12418
12418
|
fontSize: "12px",
|
|
12419
12419
|
sx: {
|
|
@@ -12529,7 +12529,7 @@ function Ya({
|
|
|
12529
12529
|
);
|
|
12530
12530
|
return O.useEffect(() => {
|
|
12531
12531
|
o && o(i);
|
|
12532
|
-
}, [i, o]), /* @__PURE__ */ k(
|
|
12532
|
+
}, [i, o]), /* @__PURE__ */ k(_e, { variant: "outlined", children: [
|
|
12533
12533
|
/* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(
|
|
12534
12534
|
Ti,
|
|
12535
12535
|
{
|
|
@@ -12741,10 +12741,10 @@ function y0({
|
|
|
12741
12741
|
error: S,
|
|
12742
12742
|
context: `${m} > ${e}`
|
|
12743
12743
|
}
|
|
12744
|
-
)) : /* @__PURE__ */ k(
|
|
12744
|
+
)) : /* @__PURE__ */ k(_e, { variant: "outlined", children: [
|
|
12745
12745
|
/* @__PURE__ */ k(qe, { children: [
|
|
12746
12746
|
/* @__PURE__ */ k(
|
|
12747
|
-
|
|
12747
|
+
Te,
|
|
12748
12748
|
{
|
|
12749
12749
|
sx: {
|
|
12750
12750
|
flexDirection: "row",
|
|
@@ -12813,7 +12813,7 @@ function y0({
|
|
|
12813
12813
|
/* @__PURE__ */ k(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: [
|
|
12814
12814
|
/* @__PURE__ */ d(De, {}),
|
|
12815
12815
|
/* @__PURE__ */ k(
|
|
12816
|
-
|
|
12816
|
+
Te,
|
|
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
|
+
N,
|
|
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__ */ k(
|
|
12858
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Te, { spacing: 2, component: "section", children: [
|
|
12859
12859
|
Array.isArray(y.sourceInfos) && y.sourceInfos.length > 0 && /* @__PURE__ */ d(
|
|
12860
12860
|
Xa,
|
|
12861
12861
|
{
|
|
@@ -12868,13 +12868,13 @@ function y0({
|
|
|
12868
12868
|
}
|
|
12869
12869
|
),
|
|
12870
12870
|
y.queries?.length > 0 && /* @__PURE__ */ k(
|
|
12871
|
-
|
|
12871
|
+
_e,
|
|
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(N, { variant: "subtitle1", children: "Named Queries" }) }),
|
|
12877
|
+
/* @__PURE__ */ d(Te, { spacing: 1, component: "section", children: y.queries.map((C) => /* @__PURE__ */ d(
|
|
12878
12878
|
_f,
|
|
12879
12879
|
{
|
|
12880
12880
|
modelPath: e,
|
|
@@ -12902,7 +12902,7 @@ function Ff(e) {
|
|
|
12902
12902
|
accessToken={accessToken}
|
|
12903
12903
|
/>`;
|
|
12904
12904
|
}
|
|
12905
|
-
const Ja =
|
|
12905
|
+
const Ja = Ae(/* @__PURE__ */ d("path", {
|
|
12906
12906
|
d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
|
|
12907
12907
|
})), zf = Ms(() => import("./RenderedResult-DXlUZo0k.js"));
|
|
12908
12908
|
function Za({
|
|
@@ -13037,88 +13037,95 @@ function Hf({
|
|
|
13037
13037
|
Ft(n, "typescript").then((x) => {
|
|
13038
13038
|
f(x);
|
|
13039
13039
|
});
|
|
13040
|
-
}, [n]), e.type === "markdown" && /* @__PURE__ */ d(
|
|
13041
|
-
(!o || !s && e.result) && /* @__PURE__ */
|
|
13042
|
-
|
|
13040
|
+
}, [n]), e.type === "markdown" && /* @__PURE__ */ d(_e, { variant: "outlined", children: /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(Uo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { height: "auto" }, children: [
|
|
13041
|
+
(!o || !s && e.result) && /* @__PURE__ */ k(
|
|
13042
|
+
Te,
|
|
13043
13043
|
{
|
|
13044
13044
|
sx: {
|
|
13045
13045
|
flexDirection: "row",
|
|
13046
|
-
justifyContent: "
|
|
13046
|
+
justifyContent: "space-between",
|
|
13047
|
+
ml: "8px"
|
|
13047
13048
|
},
|
|
13048
|
-
children:
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
"
|
|
13066
|
-
{
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
"
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13110
|
-
|
|
13111
|
-
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13049
|
+
children: [
|
|
13050
|
+
/* @__PURE__ */ k(Te, { sx: { flexDirection: "row" }, children: [
|
|
13051
|
+
e.newSources && e.newSources.length > 0 && /* @__PURE__ */ d(N, { variant: "overline", children: /* @__PURE__ */ d("b", { children: "Data source" }) }),
|
|
13052
|
+
e.result && /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Results" })
|
|
13053
|
+
] }),
|
|
13054
|
+
/* @__PURE__ */ d(Te, { sx: { flexDirection: "row" }, children: /* @__PURE__ */ k(
|
|
13055
|
+
Ar,
|
|
13056
|
+
{
|
|
13057
|
+
sx: {
|
|
13058
|
+
padding: "0px 8px 0px 8px",
|
|
13059
|
+
mb: "auto",
|
|
13060
|
+
mt: "auto"
|
|
13061
|
+
},
|
|
13062
|
+
children: [
|
|
13063
|
+
e.newSources && e.newSources.length > 0 && /* @__PURE__ */ d(ge, { title: "Explore Data Sources", children: /* @__PURE__ */ d(
|
|
13064
|
+
he,
|
|
13065
|
+
{
|
|
13066
|
+
size: "small",
|
|
13067
|
+
onClick: () => {
|
|
13068
|
+
b(!y), u(!1), l(!1);
|
|
13069
|
+
},
|
|
13070
|
+
children: /* @__PURE__ */ d(
|
|
13071
|
+
"svg",
|
|
13072
|
+
{
|
|
13073
|
+
width: "24",
|
|
13074
|
+
height: "24",
|
|
13075
|
+
viewBox: "0 0 24 24",
|
|
13076
|
+
fill: "none",
|
|
13077
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13078
|
+
children: /* @__PURE__ */ d(
|
|
13079
|
+
"path",
|
|
13080
|
+
{
|
|
13081
|
+
d: "M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",
|
|
13082
|
+
fill: "currentColor"
|
|
13083
|
+
}
|
|
13084
|
+
)
|
|
13085
|
+
}
|
|
13086
|
+
)
|
|
13087
|
+
}
|
|
13088
|
+
) }),
|
|
13089
|
+
!o && /* @__PURE__ */ d(
|
|
13090
|
+
ge,
|
|
13091
|
+
{
|
|
13092
|
+
title: a ? "Hide Code" : "View Code",
|
|
13093
|
+
children: /* @__PURE__ */ d(
|
|
13094
|
+
he,
|
|
13095
|
+
{
|
|
13096
|
+
size: "small",
|
|
13097
|
+
onClick: () => {
|
|
13098
|
+
l(!a);
|
|
13099
|
+
},
|
|
13100
|
+
children: /* @__PURE__ */ d(Ja, {})
|
|
13101
|
+
}
|
|
13102
|
+
)
|
|
13103
|
+
}
|
|
13104
|
+
),
|
|
13105
|
+
!s && e.result && /* @__PURE__ */ d(
|
|
13106
|
+
ge,
|
|
13107
|
+
{
|
|
13108
|
+
title: c ? "Hide Embedding" : "View Embedding",
|
|
13109
|
+
children: /* @__PURE__ */ d(
|
|
13110
|
+
he,
|
|
13111
|
+
{
|
|
13112
|
+
size: "small",
|
|
13113
|
+
onClick: () => {
|
|
13114
|
+
u(!c);
|
|
13115
|
+
},
|
|
13116
|
+
children: /* @__PURE__ */ d(Fn, {})
|
|
13117
|
+
}
|
|
13118
|
+
)
|
|
13119
|
+
}
|
|
13120
|
+
)
|
|
13121
|
+
]
|
|
13122
|
+
}
|
|
13123
|
+
) })
|
|
13124
|
+
]
|
|
13118
13125
|
}
|
|
13119
13126
|
),
|
|
13120
13127
|
/* @__PURE__ */ d(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
|
|
13121
|
-
|
|
13128
|
+
Te,
|
|
13122
13129
|
{
|
|
13123
13130
|
sx: {
|
|
13124
13131
|
p: "8px",
|
|
@@ -13128,7 +13135,7 @@ function Hf({
|
|
|
13128
13135
|
},
|
|
13129
13136
|
children: [
|
|
13130
13137
|
/* @__PURE__ */ d(
|
|
13131
|
-
|
|
13138
|
+
N,
|
|
13132
13139
|
{
|
|
13133
13140
|
component: "div",
|
|
13134
13141
|
sx: {
|
|
@@ -13158,7 +13165,7 @@ function Hf({
|
|
|
13158
13165
|
/* @__PURE__ */ k(xt, { in: a, timeout: "auto", unmountOnExit: !0, children: [
|
|
13159
13166
|
/* @__PURE__ */ d("style", { children: Uf }),
|
|
13160
13167
|
/* @__PURE__ */ d(
|
|
13161
|
-
|
|
13168
|
+
Te,
|
|
13162
13169
|
{
|
|
13163
13170
|
sx: {
|
|
13164
13171
|
mx: "8px",
|
|
@@ -13240,17 +13247,17 @@ function Wf({
|
|
|
13240
13247
|
x
|
|
13241
13248
|
)).data
|
|
13242
13249
|
});
|
|
13243
|
-
return /* @__PURE__ */ k(
|
|
13250
|
+
return /* @__PURE__ */ k(_e, { variant: "outlined", children: [
|
|
13244
13251
|
/* @__PURE__ */ k(qe, { children: [
|
|
13245
13252
|
/* @__PURE__ */ k(
|
|
13246
|
-
|
|
13253
|
+
Te,
|
|
13247
13254
|
{
|
|
13248
13255
|
sx: {
|
|
13249
13256
|
flexDirection: "row",
|
|
13250
13257
|
justifyContent: "space-between"
|
|
13251
13258
|
},
|
|
13252
13259
|
children: [
|
|
13253
|
-
/* @__PURE__ */ d(
|
|
13260
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Notebook" }),
|
|
13254
13261
|
!o && /* @__PURE__ */ d(
|
|
13255
13262
|
Ar,
|
|
13256
13263
|
{
|
|
@@ -13281,7 +13288,7 @@ function Wf({
|
|
|
13281
13288
|
}
|
|
13282
13289
|
),
|
|
13283
13290
|
/* @__PURE__ */ d(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
|
|
13284
|
-
|
|
13291
|
+
Te,
|
|
13285
13292
|
{
|
|
13286
13293
|
sx: {
|
|
13287
13294
|
borderRadius: 0,
|
|
@@ -13290,7 +13297,7 @@ function Wf({
|
|
|
13290
13297
|
},
|
|
13291
13298
|
children: [
|
|
13292
13299
|
/* @__PURE__ */ d(
|
|
13293
|
-
|
|
13300
|
+
N,
|
|
13294
13301
|
{
|
|
13295
13302
|
sx: {
|
|
13296
13303
|
fontSize: "12px",
|
|
@@ -13320,7 +13327,7 @@ function Wf({
|
|
|
13320
13327
|
}
|
|
13321
13328
|
) })
|
|
13322
13329
|
] }),
|
|
13323
|
-
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(
|
|
13330
|
+
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Te, { spacing: 2, component: "section", children: [
|
|
13324
13331
|
!f && !y && /* @__PURE__ */ d(ze, { text: "Fetching Notebook..." }),
|
|
13325
13332
|
f && h.notebookCells?.map((x, S) => /* @__PURE__ */ d(
|
|
13326
13333
|
Hf,
|
|
@@ -13338,7 +13345,7 @@ function Wf({
|
|
|
13338
13345
|
},
|
|
13339
13346
|
S
|
|
13340
13347
|
)),
|
|
13341
|
-
y && b.status === 404 && /* @__PURE__ */ k(
|
|
13348
|
+
y && b.status === 404 && /* @__PURE__ */ k(N, { variant: "body2", children: [
|
|
13342
13349
|
/* @__PURE__ */ d("code", { children: `${c} > ${u} > ${e}` }),
|
|
13343
13350
|
" ",
|
|
13344
13351
|
"not found."
|
|
@@ -13406,7 +13413,7 @@ class Qf {
|
|
|
13406
13413
|
localStorage.setItem(i, s), localStorage.removeItem(o);
|
|
13407
13414
|
}
|
|
13408
13415
|
}
|
|
13409
|
-
const Yf =
|
|
13416
|
+
const Yf = Ae(/* @__PURE__ */ d("path", {
|
|
13410
13417
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
13411
13418
|
})), Yt = Ql({
|
|
13412
13419
|
createStyledComponent: ce("div", {
|
|
@@ -13557,7 +13564,7 @@ import {${t.sourceName}}" from '${t.modelPath}'"
|
|
|
13557
13564
|
return new Tn(t, n, o);
|
|
13558
13565
|
}
|
|
13559
13566
|
}
|
|
13560
|
-
const tl =
|
|
13567
|
+
const tl = Ae(/* @__PURE__ */ d("path", {
|
|
13561
13568
|
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
13569
|
})), Xf = new ra(new Be());
|
|
13563
13570
|
function Jf() {
|
|
@@ -13571,8 +13578,8 @@ function Jf() {
|
|
|
13571
13578
|
a
|
|
13572
13579
|
)
|
|
13573
13580
|
});
|
|
13574
|
-
return /* @__PURE__ */ d(
|
|
13575
|
-
/* @__PURE__ */ d(
|
|
13581
|
+
return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13582
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
|
|
13576
13583
|
/* @__PURE__ */ d(De, {}),
|
|
13577
13584
|
/* @__PURE__ */ d(
|
|
13578
13585
|
Z,
|
|
@@ -13635,8 +13642,8 @@ function Jf() {
|
|
|
13635
13642
|
const Zf = new ta(new Be());
|
|
13636
13643
|
function eg({ connection: e }) {
|
|
13637
13644
|
return /* @__PURE__ */ k(at, { children: [
|
|
13638
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13639
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13645
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "body2", children: e.name }) }),
|
|
13646
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "body2", children: e.type }) })
|
|
13640
13647
|
] }, e.name);
|
|
13641
13648
|
}
|
|
13642
13649
|
function tg() {
|
|
@@ -13644,8 +13651,8 @@ function tg() {
|
|
|
13644
13651
|
queryKey: ["connections", e],
|
|
13645
13652
|
queryFn: (i) => Zf.listConnections(e, i)
|
|
13646
13653
|
});
|
|
13647
|
-
return /* @__PURE__ */ d(
|
|
13648
|
-
/* @__PURE__ */ d(
|
|
13654
|
+
return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13655
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
|
|
13649
13656
|
/* @__PURE__ */ d(De, {}),
|
|
13650
13657
|
/* @__PURE__ */ k(
|
|
13651
13658
|
Z,
|
|
@@ -13655,15 +13662,15 @@ function tg() {
|
|
|
13655
13662
|
overflowY: "auto"
|
|
13656
13663
|
},
|
|
13657
13664
|
children: [
|
|
13658
|
-
!n && !r && /* @__PURE__ */ d(
|
|
13665
|
+
!n && !r && /* @__PURE__ */ d(N, { variant: "body2", sx: { m: "auto" }, children: "Fetching Connections..." }),
|
|
13659
13666
|
n && t.data.length > 0 && /* @__PURE__ */ d(Pn, { size: "small", children: /* @__PURE__ */ k(Rn, { children: [
|
|
13660
13667
|
/* @__PURE__ */ k(at, { children: [
|
|
13661
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13662
|
-
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(
|
|
13668
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
|
|
13669
|
+
/* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
|
|
13663
13670
|
] }),
|
|
13664
13671
|
t.data.map((i) => /* @__PURE__ */ d(eg, { connection: i }, i.name))
|
|
13665
13672
|
] }) }),
|
|
13666
|
-
n && t.data.length === 0 && /* @__PURE__ */ d(
|
|
13673
|
+
n && t.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Connections" }),
|
|
13667
13674
|
r && /* @__PURE__ */ d(
|
|
13668
13675
|
je,
|
|
13669
13676
|
{
|
|
@@ -13692,8 +13699,8 @@ function rg() {
|
|
|
13692
13699
|
)
|
|
13693
13700
|
}), 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
13701
|
return /* @__PURE__ */ k(xe, { children: [
|
|
13695
|
-
/* @__PURE__ */ d(
|
|
13696
|
-
/* @__PURE__ */ d(
|
|
13702
|
+
/* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
13703
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
|
|
13697
13704
|
/* @__PURE__ */ d(De, {}),
|
|
13698
13705
|
/* @__PURE__ */ k(
|
|
13699
13706
|
Z,
|
|
@@ -13729,7 +13736,7 @@ function rg() {
|
|
|
13729
13736
|
f.path
|
|
13730
13737
|
)) })
|
|
13731
13738
|
] }),
|
|
13732
|
-
m && c.data.length === 0 && /* @__PURE__ */ d(
|
|
13739
|
+
m && c.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", sx: { m: "auto" }, children: "No databases found" })
|
|
13733
13740
|
]
|
|
13734
13741
|
}
|
|
13735
13742
|
)
|
|
@@ -13758,14 +13765,14 @@ function bt(e, t) {
|
|
|
13758
13765
|
}
|
|
13759
13766
|
return n;
|
|
13760
13767
|
}
|
|
13761
|
-
function
|
|
13762
|
-
return
|
|
13768
|
+
function L() {
|
|
13769
|
+
return L = Object.assign ? Object.assign.bind() : function(e) {
|
|
13763
13770
|
for (var t = 1; t < arguments.length; t++) {
|
|
13764
13771
|
var n = arguments[t];
|
|
13765
13772
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
13766
13773
|
}
|
|
13767
13774
|
return e;
|
|
13768
|
-
},
|
|
13775
|
+
}, L.apply(null, arguments);
|
|
13769
13776
|
}
|
|
13770
13777
|
function Lo() {
|
|
13771
13778
|
return Lo = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -14242,15 +14249,15 @@ const mg = (e) => {
|
|
|
14242
14249
|
...r,
|
|
14243
14250
|
orientation: x,
|
|
14244
14251
|
collapsedSize: a
|
|
14245
|
-
},
|
|
14252
|
+
}, M = 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
14253
|
if (B) {
|
|
14247
|
-
const
|
|
14248
|
-
Le === void 0 ? B(
|
|
14254
|
+
const Pe = K.current;
|
|
14255
|
+
Le === void 0 ? B(Pe) : B(Pe, Le);
|
|
14249
14256
|
}
|
|
14250
14257
|
}, le = () => g.current ? g.current[D ? "clientWidth" : "clientHeight"] : 0, H = ae((B, Le) => {
|
|
14251
14258
|
g.current && D && (g.current.style.position = "absolute"), B.style[j] = A, p && p(B, Le);
|
|
14252
14259
|
}), Y = ae((B, Le) => {
|
|
14253
|
-
const
|
|
14260
|
+
const Pe = le();
|
|
14254
14261
|
g.current && D && (g.current.style.position = "");
|
|
14255
14262
|
const {
|
|
14256
14263
|
duration: Ke,
|
|
@@ -14263,18 +14270,18 @@ const mg = (e) => {
|
|
|
14263
14270
|
mode: "enter"
|
|
14264
14271
|
});
|
|
14265
14272
|
if (C === "auto") {
|
|
14266
|
-
const _ = V.transitions.getAutoHeightDuration(
|
|
14273
|
+
const _ = V.transitions.getAutoHeightDuration(Pe);
|
|
14267
14274
|
B.style.transitionDuration = `${_}ms`, R.current = _;
|
|
14268
14275
|
} else
|
|
14269
14276
|
B.style.transitionDuration = typeof Ke == "string" ? Ke : `${Ke}ms`;
|
|
14270
|
-
B.style[j] = `${
|
|
14277
|
+
B.style[j] = `${Pe}px`, B.style.transitionTimingFunction = $, h && h(B, Le);
|
|
14271
14278
|
}), G = ae((B, Le) => {
|
|
14272
14279
|
B.style[j] = "auto", m && m(B, Le);
|
|
14273
14280
|
}), Q = ae((B) => {
|
|
14274
14281
|
B.style[j] = `${le()}px`, f && f(B);
|
|
14275
14282
|
}), J = ae(y), fe = ae((B) => {
|
|
14276
14283
|
const Le = le(), {
|
|
14277
|
-
duration:
|
|
14284
|
+
duration: Pe,
|
|
14278
14285
|
easing: Ke
|
|
14279
14286
|
} = Is({
|
|
14280
14287
|
style: S,
|
|
@@ -14287,7 +14294,7 @@ const mg = (e) => {
|
|
|
14287
14294
|
const $ = V.transitions.getAutoHeightDuration(Le);
|
|
14288
14295
|
B.style.transitionDuration = `${$}ms`, R.current = $;
|
|
14289
14296
|
} else
|
|
14290
|
-
B.style.transitionDuration = typeof
|
|
14297
|
+
B.style.transitionDuration = typeof Pe == "string" ? Pe : `${Pe}ms`;
|
|
14291
14298
|
B.style[j] = A, B.style.transitionTimingFunction = Ke, b && b(B);
|
|
14292
14299
|
});
|
|
14293
14300
|
return /* @__PURE__ */ d(v, {
|
|
@@ -14306,12 +14313,12 @@ const mg = (e) => {
|
|
|
14306
14313
|
...w,
|
|
14307
14314
|
children: (B, {
|
|
14308
14315
|
ownerState: Le,
|
|
14309
|
-
...
|
|
14316
|
+
...Pe
|
|
14310
14317
|
}) => /* @__PURE__ */ d(fg, {
|
|
14311
14318
|
as: l,
|
|
14312
|
-
className: be(
|
|
14313
|
-
entered:
|
|
14314
|
-
exited: !u && A === "0px" &&
|
|
14319
|
+
className: be(M.root, s, {
|
|
14320
|
+
entered: M.entered,
|
|
14321
|
+
exited: !u && A === "0px" && M.hidden
|
|
14315
14322
|
}[B]),
|
|
14316
14323
|
style: {
|
|
14317
14324
|
[D ? "minWidth" : "minHeight"]: A,
|
|
@@ -14322,20 +14329,20 @@ const mg = (e) => {
|
|
|
14322
14329
|
...P,
|
|
14323
14330
|
state: B
|
|
14324
14331
|
},
|
|
14325
|
-
...
|
|
14332
|
+
...Pe,
|
|
14326
14333
|
children: /* @__PURE__ */ d(gg, {
|
|
14327
14334
|
ownerState: {
|
|
14328
14335
|
...P,
|
|
14329
14336
|
state: B
|
|
14330
14337
|
},
|
|
14331
|
-
className:
|
|
14338
|
+
className: M.wrapper,
|
|
14332
14339
|
ref: g,
|
|
14333
14340
|
children: /* @__PURE__ */ d(yg, {
|
|
14334
14341
|
ownerState: {
|
|
14335
14342
|
...P,
|
|
14336
14343
|
state: B
|
|
14337
14344
|
},
|
|
14338
|
-
className:
|
|
14345
|
+
className: M.wrapperInner,
|
|
14339
14346
|
children: i
|
|
14340
14347
|
})
|
|
14341
14348
|
})
|
|
@@ -14545,7 +14552,7 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14545
14552
|
const {
|
|
14546
14553
|
pulsate: w,
|
|
14547
14554
|
rippleX: P,
|
|
14548
|
-
rippleY:
|
|
14555
|
+
rippleY: M,
|
|
14549
14556
|
rippleSize: V,
|
|
14550
14557
|
cb: F
|
|
14551
14558
|
} = v;
|
|
@@ -14561,13 +14568,13 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14561
14568
|
timeout: Bo,
|
|
14562
14569
|
pulsate: w,
|
|
14563
14570
|
rippleX: P,
|
|
14564
|
-
rippleY:
|
|
14571
|
+
rippleY: M,
|
|
14565
14572
|
rippleSize: V
|
|
14566
14573
|
}, u.current)]), u.current += 1, p.current = F;
|
|
14567
14574
|
}, [i]), x = E.useCallback((v = {}, w = {}, P = () => {
|
|
14568
14575
|
}) => {
|
|
14569
14576
|
const {
|
|
14570
|
-
pulsate:
|
|
14577
|
+
pulsate: M = !1,
|
|
14571
14578
|
center: V = o || w.pulsate,
|
|
14572
14579
|
fakeElement: F = !1
|
|
14573
14580
|
// For test purposes
|
|
@@ -14601,7 +14608,7 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14601
14608
|
}
|
|
14602
14609
|
v?.touches ? f.current === null && (f.current = () => {
|
|
14603
14610
|
b({
|
|
14604
|
-
pulsate:
|
|
14611
|
+
pulsate: M,
|
|
14605
14612
|
rippleX: A,
|
|
14606
14613
|
rippleY: D,
|
|
14607
14614
|
rippleSize: j,
|
|
@@ -14610,7 +14617,7 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14610
14617
|
}, h.start(vg, () => {
|
|
14611
14618
|
f.current && (f.current(), f.current = null);
|
|
14612
14619
|
})) : b({
|
|
14613
|
-
pulsate:
|
|
14620
|
+
pulsate: M,
|
|
14614
14621
|
rippleX: A,
|
|
14615
14622
|
rippleY: D,
|
|
14616
14623
|
rippleSize: j,
|
|
@@ -14723,7 +14730,7 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14723
14730
|
onFocusVisible: v,
|
|
14724
14731
|
onKeyDown: w,
|
|
14725
14732
|
onKeyUp: P,
|
|
14726
|
-
onMouseDown:
|
|
14733
|
+
onMouseDown: M,
|
|
14727
14734
|
onMouseLeave: V,
|
|
14728
14735
|
onMouseUp: F,
|
|
14729
14736
|
onTouchEnd: g,
|
|
@@ -14744,7 +14751,7 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14744
14751
|
E.useEffect(() => {
|
|
14745
14752
|
G && m && !u && H.pulsate();
|
|
14746
14753
|
}, [u, m, G, H]);
|
|
14747
|
-
const fe = pt(H, "start",
|
|
14754
|
+
const fe = pt(H, "start", M, p), ee = pt(H, "stop", x, p), B = pt(H, "stop", S, p), Le = pt(H, "stop", F, p), Pe = pt(H, "stop", (z) => {
|
|
14748
14755
|
G && z.preventDefault(), V && V(z);
|
|
14749
14756
|
}, p), Ke = pt(H, "start", A, p), $ = pt(H, "stop", g, p), _ = pt(H, "stop", R, p), ie = pt(H, "stop", (z) => {
|
|
14750
14757
|
Es(z.target) || Q(!1), y && y(z);
|
|
@@ -14788,7 +14795,7 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
|
|
|
14788
14795
|
onKeyDown: Yr,
|
|
14789
14796
|
onKeyUp: Xr,
|
|
14790
14797
|
onMouseDown: fe,
|
|
14791
|
-
onMouseLeave:
|
|
14798
|
+
onMouseLeave: Pe,
|
|
14792
14799
|
onMouseUp: Le,
|
|
14793
14800
|
onDragLeave: B,
|
|
14794
14801
|
onTouchEnd: $,
|
|
@@ -15011,7 +15018,7 @@ const Fg = (e) => {
|
|
|
15011
15018
|
tabIndex: v,
|
|
15012
15019
|
type: w,
|
|
15013
15020
|
value: P,
|
|
15014
|
-
slots:
|
|
15021
|
+
slots: M = {},
|
|
15015
15022
|
slotProps: V = {},
|
|
15016
15023
|
...F
|
|
15017
15024
|
} = t, [g, R] = Qd({
|
|
@@ -15036,7 +15043,7 @@ const Fg = (e) => {
|
|
|
15036
15043
|
disableFocusRipple: l,
|
|
15037
15044
|
edge: c
|
|
15038
15045
|
}, H = Fg(le), Y = {
|
|
15039
|
-
slots:
|
|
15046
|
+
slots: M,
|
|
15040
15047
|
slotProps: {
|
|
15041
15048
|
input: m,
|
|
15042
15049
|
...V
|
|
@@ -15102,11 +15109,11 @@ const Fg = (e) => {
|
|
|
15102
15109
|
...fe
|
|
15103
15110
|
}), g ? i : u]
|
|
15104
15111
|
});
|
|
15105
|
-
}), Gg =
|
|
15112
|
+
}), Gg = Ae(/* @__PURE__ */ d("path", {
|
|
15106
15113
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
15107
|
-
})), Wg =
|
|
15114
|
+
})), Wg = Ae(/* @__PURE__ */ d("path", {
|
|
15108
15115
|
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
15109
|
-
})), qg =
|
|
15116
|
+
})), qg = Ae(/* @__PURE__ */ d("path", {
|
|
15110
15117
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
15111
15118
|
}));
|
|
15112
15119
|
function Kg(e) {
|
|
@@ -15451,7 +15458,7 @@ const Ut = () => {
|
|
|
15451
15458
|
params: r
|
|
15452
15459
|
}) => {
|
|
15453
15460
|
const o = E.useRef(t.editedItemId), i = (p) => o.current === p, s = (p) => {
|
|
15454
|
-
n((m) =>
|
|
15461
|
+
n((m) => L({}, m, {
|
|
15455
15462
|
editedItemId: p
|
|
15456
15463
|
})), o.current = p;
|
|
15457
15464
|
}, a = (p) => p === t.editedItemId, l = !!r.isItemEditable, c = (p) => {
|
|
@@ -15465,10 +15472,10 @@ const Ut = () => {
|
|
|
15465
15472
|
`));
|
|
15466
15473
|
n((h) => {
|
|
15467
15474
|
const f = h.items.itemMetaMap[p];
|
|
15468
|
-
return f.label !== m ?
|
|
15469
|
-
items:
|
|
15470
|
-
itemMetaMap:
|
|
15471
|
-
[p]:
|
|
15475
|
+
return f.label !== m ? L({}, h, {
|
|
15476
|
+
items: L({}, h.items, {
|
|
15477
|
+
itemMetaMap: L({}, h.items.itemMetaMap, {
|
|
15478
|
+
[p]: L({}, f, {
|
|
15472
15479
|
label: m
|
|
15473
15480
|
})
|
|
15474
15481
|
})
|
|
@@ -15496,7 +15503,7 @@ et.getDefaultizedParams = ({
|
|
|
15496
15503
|
experimentalFeatures: t
|
|
15497
15504
|
}) => {
|
|
15498
15505
|
const n = t?.labelEditing;
|
|
15499
|
-
return
|
|
15506
|
+
return L({}, e, {
|
|
15500
15507
|
isItemEditable: n ? e.isItemEditable ?? !1 : !1
|
|
15501
15508
|
});
|
|
15502
15509
|
};
|
|
@@ -15692,13 +15699,13 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15692
15699
|
} = ay({
|
|
15693
15700
|
itemId: h,
|
|
15694
15701
|
children: y
|
|
15695
|
-
}), P = E.useRef(null),
|
|
15702
|
+
}), P = E.useRef(null), M = E.useRef(null), V = pn(b, x, P), F = pn(S, M), g = E.useRef(null), R = gi({
|
|
15696
15703
|
itemId: h,
|
|
15697
15704
|
treeId: l,
|
|
15698
15705
|
id: m
|
|
15699
15706
|
}), A = c.canItemBeTabbed(h) ? 0 : -1, D = {
|
|
15700
15707
|
rootRefObject: P,
|
|
15701
|
-
contentRefObject:
|
|
15708
|
+
contentRefObject: M,
|
|
15702
15709
|
interactions: v
|
|
15703
15710
|
}, j = ($) => (_) => {
|
|
15704
15711
|
if ($.onFocus?.(_), _.defaultMuiPrevented)
|
|
@@ -15727,10 +15734,10 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15727
15734
|
};
|
|
15728
15735
|
return {
|
|
15729
15736
|
getRootProps: ($ = {}) => {
|
|
15730
|
-
const _ =
|
|
15737
|
+
const _ = L({}, Ye(e), Ye($));
|
|
15731
15738
|
let ie;
|
|
15732
15739
|
w.selected ? ie = !0 : i || w.disabled ? ie = void 0 : ie = !1;
|
|
15733
|
-
const kt =
|
|
15740
|
+
const kt = L({}, _, {
|
|
15734
15741
|
ref: V,
|
|
15735
15742
|
role: "treeitem",
|
|
15736
15743
|
tabIndex: A,
|
|
@@ -15746,26 +15753,26 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15746
15753
|
o && (kt.style = {
|
|
15747
15754
|
"--TreeView-itemDepth": typeof p == "function" ? p(h) : p
|
|
15748
15755
|
});
|
|
15749
|
-
const lt = C.root?.(
|
|
15756
|
+
const lt = C.root?.(L({}, D, {
|
|
15750
15757
|
externalEventHandlers: _
|
|
15751
15758
|
})) ?? {};
|
|
15752
|
-
return
|
|
15759
|
+
return L({}, kt, lt);
|
|
15753
15760
|
},
|
|
15754
15761
|
getContentProps: ($ = {}) => {
|
|
15755
|
-
const _ = Ye($), ie =
|
|
15762
|
+
const _ = Ye($), ie = L({}, _, $, {
|
|
15756
15763
|
ref: F,
|
|
15757
15764
|
onClick: le(_),
|
|
15758
15765
|
onMouseDown: H(_),
|
|
15759
15766
|
status: w
|
|
15760
15767
|
});
|
|
15761
15768
|
o && (ie.indentationAtItemLevel = !0);
|
|
15762
|
-
const kt = C.content?.(
|
|
15769
|
+
const kt = C.content?.(L({}, D, {
|
|
15763
15770
|
externalEventHandlers: _
|
|
15764
15771
|
})) ?? {};
|
|
15765
|
-
return
|
|
15772
|
+
return L({}, ie, kt);
|
|
15766
15773
|
},
|
|
15767
15774
|
getGroupTransitionProps: ($ = {}) => {
|
|
15768
|
-
const _ = Ye($), ie =
|
|
15775
|
+
const _ = Ye($), ie = L({}, _, {
|
|
15769
15776
|
unmountOnExit: !0,
|
|
15770
15777
|
component: "ul",
|
|
15771
15778
|
role: "group",
|
|
@@ -15776,13 +15783,13 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15776
15783
|
},
|
|
15777
15784
|
getIconContainerProps: ($ = {}) => {
|
|
15778
15785
|
const _ = Ye($);
|
|
15779
|
-
return
|
|
15786
|
+
return L({}, _, $, {
|
|
15780
15787
|
onClick: G(_)
|
|
15781
15788
|
});
|
|
15782
15789
|
},
|
|
15783
15790
|
getCheckboxProps: ($ = {}) => {
|
|
15784
15791
|
const _ = Ye($);
|
|
15785
|
-
return
|
|
15792
|
+
return L({}, _, {
|
|
15786
15793
|
visible: s,
|
|
15787
15794
|
ref: g,
|
|
15788
15795
|
checked: w.selected,
|
|
@@ -15793,7 +15800,7 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15793
15800
|
});
|
|
15794
15801
|
},
|
|
15795
15802
|
getLabelProps: ($ = {}) => {
|
|
15796
|
-
const _ =
|
|
15803
|
+
const _ = L({}, Ye($)), ie = L({}, _, {
|
|
15797
15804
|
children: f
|
|
15798
15805
|
}, $, {
|
|
15799
15806
|
onDoubleClick: ae(_)
|
|
@@ -15803,17 +15810,17 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
|
|
|
15803
15810
|
getLabelInputProps: ($ = {}) => {
|
|
15804
15811
|
const _ = Ye($), ie = C.labelInput?.({
|
|
15805
15812
|
rootRefObject: P,
|
|
15806
|
-
contentRefObject:
|
|
15813
|
+
contentRefObject: M,
|
|
15807
15814
|
externalEventHandlers: _,
|
|
15808
15815
|
interactions: v
|
|
15809
15816
|
}) ?? {};
|
|
15810
|
-
return
|
|
15817
|
+
return L({}, $, ie);
|
|
15811
15818
|
},
|
|
15812
15819
|
getDragAndDropOverlayProps: ($ = {}) => {
|
|
15813
|
-
const _ = Ye($), ie = C.dragAndDropOverlay?.(
|
|
15820
|
+
const _ = Ye($), ie = C.dragAndDropOverlay?.(L({}, D, {
|
|
15814
15821
|
externalEventHandlers: _
|
|
15815
15822
|
})) ?? {};
|
|
15816
|
-
return
|
|
15823
|
+
return L({}, $, ie);
|
|
15817
15824
|
},
|
|
15818
15825
|
rootRef: V,
|
|
15819
15826
|
status: w,
|
|
@@ -15940,7 +15947,7 @@ const hy = ce("div", {
|
|
|
15940
15947
|
}]
|
|
15941
15948
|
}));
|
|
15942
15949
|
function my(e) {
|
|
15943
|
-
return e.action == null ? null : /* @__PURE__ */ d(hy,
|
|
15950
|
+
return e.action == null ? null : /* @__PURE__ */ d(hy, L({}, e));
|
|
15944
15951
|
}
|
|
15945
15952
|
const fy = ce("input", {
|
|
15946
15953
|
name: "MuiTreeItem2",
|
|
@@ -15948,7 +15955,7 @@ const fy = ce("input", {
|
|
|
15948
15955
|
overridesResolver: (e, t) => t.labelInput
|
|
15949
15956
|
})(({
|
|
15950
15957
|
theme: e
|
|
15951
|
-
}) =>
|
|
15958
|
+
}) => L({}, e.typography.body1, {
|
|
15952
15959
|
width: "100%",
|
|
15953
15960
|
backgroundColor: e.palette.background.paper,
|
|
15954
15961
|
borderRadius: e.shape.borderRadius,
|
|
@@ -15980,7 +15987,7 @@ const fy = ce("input", {
|
|
|
15980
15987
|
editable: v,
|
|
15981
15988
|
disableSelection: w,
|
|
15982
15989
|
checkboxSelection: P,
|
|
15983
|
-
handleExpansion:
|
|
15990
|
+
handleExpansion: M,
|
|
15984
15991
|
handleSelection: V,
|
|
15985
15992
|
handleCheckboxSelection: F,
|
|
15986
15993
|
handleContentClick: g,
|
|
@@ -15990,13 +15997,13 @@ const fy = ce("input", {
|
|
|
15990
15997
|
} = fl(c), j = a || s || i, K = E.useRef(null), q = (H) => {
|
|
15991
15998
|
R(H), p && p(H);
|
|
15992
15999
|
}, ae = (H) => {
|
|
15993
|
-
g?.(H, c), !K.current?.contains(H.target) && (A === "content" &&
|
|
16000
|
+
g?.(H, c), !K.current?.contains(H.target) && (A === "content" && M(H), P || V(H), u && u(H));
|
|
15994
16001
|
}, le = (H) => {
|
|
15995
16002
|
H.defaultMuiPrevented || D();
|
|
15996
16003
|
};
|
|
15997
16004
|
return (
|
|
15998
16005
|
/* 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__ */ k("div",
|
|
16006
|
+
/* @__PURE__ */ k("div", L({}, f, {
|
|
16000
16007
|
className: be(r.root, o, b && r.expanded, x && r.selected, S && r.focused, y && r.disabled, C && r.editing, v && r.editable),
|
|
16001
16008
|
onClick: ae,
|
|
16002
16009
|
onMouseDown: q,
|
|
@@ -16011,15 +16018,15 @@ const fy = ce("input", {
|
|
|
16011
16018
|
disabled: y || w,
|
|
16012
16019
|
ref: K,
|
|
16013
16020
|
tabIndex: -1
|
|
16014
|
-
}), C ? /* @__PURE__ */ d(fy,
|
|
16021
|
+
}), C ? /* @__PURE__ */ d(fy, L({}, h, {
|
|
16015
16022
|
className: r.labelInput
|
|
16016
|
-
})) : /* @__PURE__ */ d("div",
|
|
16023
|
+
})) : /* @__PURE__ */ d("div", L({
|
|
16017
16024
|
className: r.label
|
|
16018
16025
|
}, v && {
|
|
16019
16026
|
onDoubleClick: le
|
|
16020
16027
|
}, {
|
|
16021
16028
|
children: l
|
|
16022
|
-
})), m && /* @__PURE__ */ d(my,
|
|
16029
|
+
})), m && /* @__PURE__ */ d(my, L({}, m))]
|
|
16023
16030
|
}))
|
|
16024
16031
|
);
|
|
16025
16032
|
}), As = (e) => e, yy = () => {
|
|
@@ -16062,9 +16069,9 @@ function yl(e, t, n = "Mui") {
|
|
|
16062
16069
|
function Sy(e) {
|
|
16063
16070
|
return yi("MuiTreeItem", e);
|
|
16064
16071
|
}
|
|
16065
|
-
const ht = yl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), bl =
|
|
16072
|
+
const ht = yl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), bl = Ae(/* @__PURE__ */ d("path", {
|
|
16066
16073
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
16067
|
-
})), xl =
|
|
16074
|
+
})), xl = Ae(/* @__PURE__ */ d("path", {
|
|
16068
16075
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
16069
16076
|
}));
|
|
16070
16077
|
function bi(e) {
|
|
@@ -16176,7 +16183,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16176
16183
|
fontSize: 18
|
|
16177
16184
|
}
|
|
16178
16185
|
},
|
|
16179
|
-
[`& .${ht.label}`]:
|
|
16186
|
+
[`& .${ht.label}`]: L({
|
|
16180
16187
|
width: "100%",
|
|
16181
16188
|
boxSizing: "border-box",
|
|
16182
16189
|
// prevent width + padding to overflow
|
|
@@ -16242,7 +16249,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16242
16249
|
id: v,
|
|
16243
16250
|
label: w,
|
|
16244
16251
|
onClick: P,
|
|
16245
|
-
onMouseDown:
|
|
16252
|
+
onMouseDown: M,
|
|
16246
16253
|
onBlur: V,
|
|
16247
16254
|
onKeyDown: F
|
|
16248
16255
|
} = m, g = bt(m, Cy), {
|
|
@@ -16264,7 +16271,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16264
16271
|
endIcon: y?.endIcon ?? r.slots.endIcon,
|
|
16265
16272
|
icon: y?.icon,
|
|
16266
16273
|
groupTransition: y?.groupTransition
|
|
16267
|
-
}, Le = (X) => Array.isArray(X) ? X.length > 0 && X.some(Le) : !!X,
|
|
16274
|
+
}, Le = (X) => Array.isArray(X) ? X.length > 0 && X.some(Le) : !!X, Pe = Le(h), Ke = L({}, m, {
|
|
16268
16275
|
expanded: R,
|
|
16269
16276
|
focused: A,
|
|
16270
16277
|
selected: D,
|
|
@@ -16274,7 +16281,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16274
16281
|
elementType: _,
|
|
16275
16282
|
ownerState: {},
|
|
16276
16283
|
externalSlotProps: b?.groupTransition,
|
|
16277
|
-
additionalProps:
|
|
16284
|
+
additionalProps: L({
|
|
16278
16285
|
unmountOnExit: !0,
|
|
16279
16286
|
in: R,
|
|
16280
16287
|
component: "ul",
|
|
@@ -16288,19 +16295,19 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16288
16295
|
}, lt = R ? B.collapseIcon : B.expandIcon, Yr = Bt({
|
|
16289
16296
|
elementType: lt,
|
|
16290
16297
|
ownerState: {},
|
|
16291
|
-
externalSlotProps: (X) => R ?
|
|
16298
|
+
externalSlotProps: (X) => R ? L({}, mt(r.slotProps.collapseIcon, X), mt(b?.collapseIcon, X)) : L({}, mt(r.slotProps.expandIcon, X), mt(b?.expandIcon, X)),
|
|
16292
16299
|
additionalProps: {
|
|
16293
16300
|
onClick: kt
|
|
16294
16301
|
}
|
|
16295
|
-
}), Xr = bt(Yr, wy), Ht =
|
|
16302
|
+
}), Xr = bt(Yr, wy), Ht = Pe && lt ? /* @__PURE__ */ d(lt, L({}, Xr)) : null, ct = Pe ? void 0 : B.endIcon, Jr = Bt({
|
|
16296
16303
|
elementType: ct,
|
|
16297
16304
|
ownerState: {},
|
|
16298
|
-
externalSlotProps: (X) =>
|
|
16299
|
-
}), qn = bt(Jr, vy), Zr = ct ? /* @__PURE__ */ d(ct,
|
|
16305
|
+
externalSlotProps: (X) => Pe ? {} : L({}, mt(r.slotProps.endIcon, X), mt(b?.endIcon, X))
|
|
16306
|
+
}), qn = bt(Jr, vy), Zr = ct ? /* @__PURE__ */ d(ct, L({}, qn)) : null, z = B.icon, Nl = Bt({
|
|
16300
16307
|
elementType: z,
|
|
16301
16308
|
ownerState: {},
|
|
16302
16309
|
externalSlotProps: b?.icon
|
|
16303
|
-
}), Ml = bt(Nl, ky), Ll = z ? /* @__PURE__ */ d(z,
|
|
16310
|
+
}), Ml = bt(Nl, ky), Ll = z ? /* @__PURE__ */ d(z, L({}, Ml)) : null;
|
|
16304
16311
|
let Kn;
|
|
16305
16312
|
D ? Kn = !0 : a || j ? Kn = void 0 : Kn = !1;
|
|
16306
16313
|
function $l(X) {
|
|
@@ -16324,21 +16331,21 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16324
16331
|
handleSaveItemLabel: le,
|
|
16325
16332
|
handleCancelItemLabelEditing: ae
|
|
16326
16333
|
}
|
|
16327
|
-
}, Fl = G.root?.(
|
|
16334
|
+
}, Fl = G.root?.(L({}, Qn, {
|
|
16328
16335
|
externalEventHandlers: Ye(g)
|
|
16329
|
-
})) ?? {}, zl = G.content?.(
|
|
16336
|
+
})) ?? {}, zl = G.content?.(L({}, Qn, {
|
|
16330
16337
|
externalEventHandlers: Ye(S)
|
|
16331
|
-
})) ?? {}, vi = G.dragAndDropOverlay?.(
|
|
16338
|
+
})) ?? {}, vi = G.dragAndDropOverlay?.(L({}, Qn, {
|
|
16332
16339
|
externalEventHandlers: {}
|
|
16333
|
-
})) ?? {}, ki = G.labelInput?.(
|
|
16340
|
+
})) ?? {}, ki = G.labelInput?.(L({}, Qn, {
|
|
16334
16341
|
externalEventHandlers: {}
|
|
16335
16342
|
})) ?? {};
|
|
16336
16343
|
return /* @__PURE__ */ d(bi, {
|
|
16337
16344
|
itemId: C,
|
|
16338
|
-
children: /* @__PURE__ */ k(Ty,
|
|
16345
|
+
children: /* @__PURE__ */ k(Ty, L({
|
|
16339
16346
|
className: be($.root, f),
|
|
16340
16347
|
role: "treeitem",
|
|
16341
|
-
"aria-expanded":
|
|
16348
|
+
"aria-expanded": Pe ? R : void 0,
|
|
16342
16349
|
"aria-selected": Kn,
|
|
16343
16350
|
"aria-disabled": j || void 0,
|
|
16344
16351
|
id: jl,
|
|
@@ -16349,11 +16356,11 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16349
16356
|
onBlur: Dl,
|
|
16350
16357
|
onKeyDown: Bl,
|
|
16351
16358
|
ref: fe,
|
|
16352
|
-
style: s ?
|
|
16359
|
+
style: s ? L({}, g.style, {
|
|
16353
16360
|
"--TreeView-itemDepth": typeof p == "function" ? p(C) : p
|
|
16354
16361
|
}) : g.style
|
|
16355
16362
|
}, Fl, {
|
|
16356
|
-
children: [/* @__PURE__ */ d(Py,
|
|
16363
|
+
children: [/* @__PURE__ */ d(Py, L({
|
|
16357
16364
|
as: x,
|
|
16358
16365
|
classes: {
|
|
16359
16366
|
root: $.content,
|
|
@@ -16371,7 +16378,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16371
16378
|
label: w,
|
|
16372
16379
|
itemId: C,
|
|
16373
16380
|
onClick: P,
|
|
16374
|
-
onMouseDown:
|
|
16381
|
+
onMouseDown: M,
|
|
16375
16382
|
icon: Ll,
|
|
16376
16383
|
expansionIcon: Ht,
|
|
16377
16384
|
displayIcon: Zr,
|
|
@@ -16382,7 +16389,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16382
16389
|
labelInputProps: ki
|
|
16383
16390
|
}, {
|
|
16384
16391
|
ref: ee
|
|
16385
|
-
})), h && /* @__PURE__ */ d(Ry,
|
|
16392
|
+
})), h && /* @__PURE__ */ d(Ry, L({
|
|
16386
16393
|
as: _
|
|
16387
16394
|
}, ie, {
|
|
16388
16395
|
children: h
|
|
@@ -16395,7 +16402,7 @@ function Ay(e) {
|
|
|
16395
16402
|
slots: t,
|
|
16396
16403
|
slotProps: n,
|
|
16397
16404
|
status: r
|
|
16398
|
-
} = e, o = Ut(), i =
|
|
16405
|
+
} = e, o = Ut(), i = L({}, o.icons.slots, {
|
|
16399
16406
|
expandIcon: o.icons.slots.expandIcon ?? bl,
|
|
16400
16407
|
collapseIcon: o.icons.slots.collapseIcon ?? xl
|
|
16401
16408
|
}), s = o.icons.slotProps;
|
|
@@ -16403,11 +16410,11 @@ function Ay(e) {
|
|
|
16403
16410
|
t?.icon ? a = "icon" : r.expandable ? r.expanded ? a = "collapseIcon" : a = "expandIcon" : a = "endIcon";
|
|
16404
16411
|
const l = t?.[a] ?? i[a], c = Bt({
|
|
16405
16412
|
elementType: l,
|
|
16406
|
-
externalSlotProps: (u) =>
|
|
16413
|
+
externalSlotProps: (u) => L({}, mt(s[a], u), mt(n?.[a], u)),
|
|
16407
16414
|
// TODO: Add proper ownerState
|
|
16408
16415
|
ownerState: {}
|
|
16409
16416
|
});
|
|
16410
|
-
return l ? /* @__PURE__ */ d(l,
|
|
16417
|
+
return l ? /* @__PURE__ */ d(l, L({}, c)) : null;
|
|
16411
16418
|
}
|
|
16412
16419
|
const Oy = ["visible"], Ny = ce("li", {
|
|
16413
16420
|
name: "MuiTreeItem2",
|
|
@@ -16495,7 +16502,7 @@ const Oy = ["visible"], Ny = ce("li", {
|
|
|
16495
16502
|
shouldForwardProp: (e) => Et(e) && e !== "editable"
|
|
16496
16503
|
})(({
|
|
16497
16504
|
theme: e
|
|
16498
|
-
}) =>
|
|
16505
|
+
}) => L({
|
|
16499
16506
|
width: "100%",
|
|
16500
16507
|
boxSizing: "border-box",
|
|
16501
16508
|
// prevent width + padding to overflow
|
|
@@ -16547,7 +16554,7 @@ ce(/* @__PURE__ */ E.forwardRef((e, t) => {
|
|
|
16547
16554
|
const {
|
|
16548
16555
|
visible: n
|
|
16549
16556
|
} = e, r = bt(e, Oy);
|
|
16550
|
-
return n ? /* @__PURE__ */ d(sl,
|
|
16557
|
+
return n ? /* @__PURE__ */ d(sl, L({}, r, {
|
|
16551
16558
|
ref: t
|
|
16552
16559
|
})) : null;
|
|
16553
16560
|
}), {
|
|
@@ -16578,7 +16585,7 @@ const By = (e, t) => {
|
|
|
16578
16585
|
return [s, {
|
|
16579
16586
|
value: l,
|
|
16580
16587
|
setControlledValue: (c) => {
|
|
16581
|
-
a.isControlled || o((u) =>
|
|
16588
|
+
a.isControlled || o((u) => L({}, u, {
|
|
16582
16589
|
[s]: c
|
|
16583
16590
|
}));
|
|
16584
16591
|
}
|
|
@@ -16655,8 +16662,8 @@ const xi = ({
|
|
|
16655
16662
|
setState: n
|
|
16656
16663
|
}) => {
|
|
16657
16664
|
E.useEffect(() => {
|
|
16658
|
-
n((o) => o.id.treeId === e.id && o.id.treeId !== void 0 ? o :
|
|
16659
|
-
id:
|
|
16665
|
+
n((o) => o.id.treeId === e.id && o.id.treeId !== void 0 ? o : L({}, o, {
|
|
16666
|
+
id: L({}, o.id, {
|
|
16660
16667
|
treeId: e.id ?? uy()
|
|
16661
16668
|
})
|
|
16662
16669
|
}));
|
|
@@ -16804,11 +16811,11 @@ const Wy = ({
|
|
|
16804
16811
|
rootRef: f
|
|
16805
16812
|
}), [x, S] = E.useState(() => {
|
|
16806
16813
|
const P = {};
|
|
16807
|
-
return r.forEach((
|
|
16808
|
-
|
|
16814
|
+
return r.forEach((M) => {
|
|
16815
|
+
M.getInitialState && Object.assign(P, M.getInitialState(o));
|
|
16809
16816
|
}), P;
|
|
16810
16817
|
}), C = [], v = (P) => {
|
|
16811
|
-
const
|
|
16818
|
+
const M = P({
|
|
16812
16819
|
instance: m,
|
|
16813
16820
|
params: o,
|
|
16814
16821
|
slots: l,
|
|
@@ -16820,18 +16827,18 @@ const Wy = ({
|
|
|
16820
16827
|
models: u,
|
|
16821
16828
|
plugins: r
|
|
16822
16829
|
});
|
|
16823
|
-
|
|
16830
|
+
M.getRootProps && C.push(M.getRootProps), M.publicAPI && Object.assign(h, M.publicAPI), M.instance && Object.assign(m, M.instance), M.contextValue && Object.assign(b, M.contextValue);
|
|
16824
16831
|
};
|
|
16825
16832
|
return r.forEach(v), {
|
|
16826
16833
|
getRootProps: (P = {}) => {
|
|
16827
|
-
const
|
|
16834
|
+
const M = L({
|
|
16828
16835
|
role: "tree"
|
|
16829
16836
|
}, i, P, {
|
|
16830
16837
|
ref: y
|
|
16831
16838
|
});
|
|
16832
16839
|
return C.forEach((V) => {
|
|
16833
|
-
Object.assign(
|
|
16834
|
-
}),
|
|
16840
|
+
Object.assign(M, V(P));
|
|
16841
|
+
}), M;
|
|
16835
16842
|
},
|
|
16836
16843
|
rootRef: y,
|
|
16837
16844
|
contextValue: b,
|
|
@@ -16936,7 +16943,7 @@ const Wy = ({
|
|
|
16936
16943
|
S.itemMetaMap[C.id] || qy(e, "removeItem", {
|
|
16937
16944
|
id: C.id
|
|
16938
16945
|
});
|
|
16939
|
-
}),
|
|
16946
|
+
}), L({}, x, {
|
|
16940
16947
|
items: S
|
|
16941
16948
|
});
|
|
16942
16949
|
});
|
|
@@ -16995,7 +17002,7 @@ Gn.getInitialState = (e) => ({
|
|
|
16995
17002
|
});
|
|
16996
17003
|
Gn.getDefaultizedParams = ({
|
|
16997
17004
|
params: e
|
|
16998
|
-
}) =>
|
|
17005
|
+
}) => L({}, e, {
|
|
16999
17006
|
disabledItemsFocusable: e.disabledItemsFocusable ?? !1,
|
|
17000
17007
|
itemChildrenIndentation: e.itemChildrenIndentation ?? "12px"
|
|
17001
17008
|
});
|
|
@@ -17077,7 +17084,7 @@ Kr.models = {
|
|
|
17077
17084
|
const Xy = [];
|
|
17078
17085
|
Kr.getDefaultizedParams = ({
|
|
17079
17086
|
params: e
|
|
17080
|
-
}) =>
|
|
17087
|
+
}) => L({}, e, {
|
|
17081
17088
|
defaultExpandedItems: e.defaultExpandedItems ?? Xy
|
|
17082
17089
|
});
|
|
17083
17090
|
Kr.params = {
|
|
@@ -17191,7 +17198,7 @@ Qr.models = {
|
|
|
17191
17198
|
const Jy = [];
|
|
17192
17199
|
Qr.getDefaultizedParams = ({
|
|
17193
17200
|
params: e
|
|
17194
|
-
}) =>
|
|
17201
|
+
}) => L({}, e, {
|
|
17195
17202
|
disableSelection: e.disableSelection ?? !1,
|
|
17196
17203
|
multiSelect: e.multiSelect ?? !1,
|
|
17197
17204
|
checkboxSelection: e.checkboxSelection ?? !1,
|
|
@@ -17309,7 +17316,7 @@ const ob = {
|
|
|
17309
17316
|
}) => {
|
|
17310
17317
|
const s = sb(e, o.selectedItems.value), a = on((b) => {
|
|
17311
17318
|
const x = typeof b == "function" ? b(n.focusedItemId) : b;
|
|
17312
|
-
n.focusedItemId !== x && r((S) =>
|
|
17319
|
+
n.focusedItemId !== x && r((S) => L({}, S, {
|
|
17313
17320
|
focusedItemId: x
|
|
17314
17321
|
}));
|
|
17315
17322
|
}), l = E.useCallback(() => !!i.current && i.current.contains(vl(Zy(i.current))), [i]), c = E.useCallback((b) => n.focusedItemId === b && l(), [n.focusedItemId, l]), u = (b) => {
|
|
@@ -17535,7 +17542,7 @@ function ub({
|
|
|
17535
17542
|
slots: e,
|
|
17536
17543
|
slotProps: t
|
|
17537
17544
|
}) : null, [i, e, t]);
|
|
17538
|
-
return /* @__PURE__ */ d(s,
|
|
17545
|
+
return /* @__PURE__ */ d(s, L({}, l, {
|
|
17539
17546
|
children: c
|
|
17540
17547
|
}));
|
|
17541
17548
|
}
|
|
@@ -17597,7 +17604,7 @@ const db = ll(), pb = (e) => {
|
|
|
17597
17604
|
});
|
|
17598
17605
|
return /* @__PURE__ */ d(iy, {
|
|
17599
17606
|
value: i,
|
|
17600
|
-
children: /* @__PURE__ */ d(u,
|
|
17607
|
+
children: /* @__PURE__ */ d(u, L({}, p, {
|
|
17601
17608
|
children: /* @__PURE__ */ d(El, {
|
|
17602
17609
|
slots: a,
|
|
17603
17610
|
slotProps: l,
|
|
@@ -17605,15 +17612,15 @@ const db = ll(), pb = (e) => {
|
|
|
17605
17612
|
})
|
|
17606
17613
|
}))
|
|
17607
17614
|
});
|
|
17608
|
-
}), fb =
|
|
17615
|
+
}), fb = Ae(/* @__PURE__ */ d("path", {
|
|
17609
17616
|
d: "m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
|
|
17610
|
-
})), gb =
|
|
17617
|
+
})), gb = Ae([/* @__PURE__ */ d("path", {
|
|
17611
17618
|
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
17612
17619
|
}, "0"), /* @__PURE__ */ d("path", {
|
|
17613
17620
|
d: "M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"
|
|
17614
|
-
}, "1")]), yb =
|
|
17621
|
+
}, "1")]), yb = Ae(/* @__PURE__ */ d("path", {
|
|
17615
17622
|
d: "M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"
|
|
17616
|
-
})), bb =
|
|
17623
|
+
})), bb = Ae(/* @__PURE__ */ d("path", {
|
|
17617
17624
|
d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
|
|
17618
17625
|
}));
|
|
17619
17626
|
function Tl({
|
|
@@ -17653,7 +17660,7 @@ function Cb({ item: e, ...t }) {
|
|
|
17653
17660
|
children: [
|
|
17654
17661
|
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
17662
|
/* @__PURE__ */ d(
|
|
17656
|
-
|
|
17663
|
+
N,
|
|
17657
17664
|
{
|
|
17658
17665
|
variant: "body2",
|
|
17659
17666
|
sx: { marginLeft: "5px" },
|
|
@@ -17756,8 +17763,8 @@ function Eb({ navigate: e }) {
|
|
|
17756
17763
|
queryKey: ["models", t, n, r],
|
|
17757
17764
|
queryFn: (l) => kb.listModels(t, n, r, l)
|
|
17758
17765
|
});
|
|
17759
|
-
return /* @__PURE__ */ d(
|
|
17760
|
-
/* @__PURE__ */ d(
|
|
17766
|
+
return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17767
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
|
|
17761
17768
|
/* @__PURE__ */ d(De, {}),
|
|
17762
17769
|
/* @__PURE__ */ k(
|
|
17763
17770
|
Z,
|
|
@@ -17783,7 +17790,7 @@ function Eb({ navigate: e }) {
|
|
|
17783
17790
|
defaultExpandedItems: Ib
|
|
17784
17791
|
}
|
|
17785
17792
|
),
|
|
17786
|
-
a && o.data.length === 0 && /* @__PURE__ */ d(
|
|
17793
|
+
a && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No models found" })
|
|
17787
17794
|
]
|
|
17788
17795
|
}
|
|
17789
17796
|
)
|
|
@@ -17800,8 +17807,8 @@ function Rb({ navigate: e }) {
|
|
|
17800
17807
|
l
|
|
17801
17808
|
)
|
|
17802
17809
|
});
|
|
17803
|
-
return /* @__PURE__ */ d(
|
|
17804
|
-
/* @__PURE__ */ d(
|
|
17810
|
+
return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17811
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
|
|
17805
17812
|
/* @__PURE__ */ d(De, {}),
|
|
17806
17813
|
/* @__PURE__ */ k(
|
|
17807
17814
|
Z,
|
|
@@ -17827,7 +17834,7 @@ function Rb({ navigate: e }) {
|
|
|
17827
17834
|
navigate: e
|
|
17828
17835
|
}
|
|
17829
17836
|
),
|
|
17830
|
-
a && o.data.length === 0 && /* @__PURE__ */ d(
|
|
17837
|
+
a && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No notebooks found" })
|
|
17831
17838
|
]
|
|
17832
17839
|
}
|
|
17833
17840
|
)
|
|
@@ -17850,8 +17857,8 @@ function Ab() {
|
|
|
17850
17857
|
error: s,
|
|
17851
17858
|
context: `${e} > ${t} > Schedules`
|
|
17852
17859
|
}
|
|
17853
|
-
) : r.data.length ? /* @__PURE__ */ d(
|
|
17854
|
-
/* @__PURE__ */ d(
|
|
17860
|
+
) : r.data.length ? /* @__PURE__ */ d(_e, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
|
|
17861
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
|
|
17855
17862
|
/* @__PURE__ */ d(De, {}),
|
|
17856
17863
|
/* @__PURE__ */ d(
|
|
17857
17864
|
Z,
|
|
@@ -17898,14 +17905,14 @@ const Ob = "README.malloynb";
|
|
|
17898
17905
|
function b0({ navigate: e }) {
|
|
17899
17906
|
return e || (e = (t) => {
|
|
17900
17907
|
window.location.href = t;
|
|
17901
|
-
}), /* @__PURE__ */ k(
|
|
17902
|
-
/* @__PURE__ */ d(
|
|
17903
|
-
/* @__PURE__ */ d(
|
|
17904
|
-
/* @__PURE__ */ d(
|
|
17905
|
-
/* @__PURE__ */ d(
|
|
17906
|
-
/* @__PURE__ */ d(
|
|
17907
|
-
/* @__PURE__ */ d(
|
|
17908
|
-
/* @__PURE__ */ d(
|
|
17908
|
+
}), /* @__PURE__ */ k(Me, { container: !0, spacing: 2, columns: 12, children: [
|
|
17909
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Jf, {}) }),
|
|
17910
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Rb, { navigate: e }) }),
|
|
17911
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Eb, { navigate: e }) }),
|
|
17912
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(rg, {}) }),
|
|
17913
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(tg, {}) }),
|
|
17914
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Ab, {}) }),
|
|
17915
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(
|
|
17909
17916
|
Wf,
|
|
17910
17917
|
{
|
|
17911
17918
|
notebookPath: Ob,
|
|
@@ -17929,9 +17936,9 @@ const Rl = Rr(void 0), x0 = ({
|
|
|
17929
17936
|
if (e === void 0)
|
|
17930
17937
|
throw new Error("useServer must be used within a ServerProvider");
|
|
17931
17938
|
return e;
|
|
17932
|
-
}, rr =
|
|
17939
|
+
}, rr = Ae(/* @__PURE__ */ d("path", {
|
|
17933
17940
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
17934
|
-
})), Ns =
|
|
17941
|
+
})), Ns = Ae(/* @__PURE__ */ d("path", {
|
|
17935
17942
|
d: "m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"
|
|
17936
17943
|
}));
|
|
17937
17944
|
function Nb({
|
|
@@ -17974,7 +17981,7 @@ function Mb({
|
|
|
17974
17981
|
}) {
|
|
17975
17982
|
const [m, h] = O.useState(t), [f, y] = O.useState(n), [b, x] = O.useState(), [S] = O.useState(), [C, v] = O.useState(
|
|
17976
17983
|
En()
|
|
17977
|
-
), [w, P] = O.useState(!1), [
|
|
17984
|
+
), [w, P] = O.useState(!1), [M, V] = O.useState(
|
|
17978
17985
|
e.sourceName ? s.findIndex(
|
|
17979
17986
|
(J) => J.sourceInfo.name === e.sourceName
|
|
17980
17987
|
) : 0
|
|
@@ -17993,7 +18000,7 @@ function Mb({
|
|
|
17993
18000
|
}), [A, D] = Mt(!1), j = () => {
|
|
17994
18001
|
u(), D(!1);
|
|
17995
18002
|
}, K = s.length === 0, q = () => {
|
|
17996
|
-
const J = s[
|
|
18003
|
+
const J = s[M], fe = J?.modelPath || e.modelPath || "", ee = J?.sourceInfo.name || e.sourceName || "";
|
|
17997
18004
|
a({
|
|
17998
18005
|
...e,
|
|
17999
18006
|
value: C.query,
|
|
@@ -18028,7 +18035,7 @@ function Mb({
|
|
|
18028
18035
|
onClose: () => D(!1),
|
|
18029
18036
|
children: [
|
|
18030
18037
|
/* @__PURE__ */ d(an, { children: "Confirm Delete" }),
|
|
18031
|
-
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(
|
|
18038
|
+
/* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(N, { children: "Are you sure you want to delete this cell?" }) }),
|
|
18032
18039
|
/* @__PURE__ */ k(js, { children: [
|
|
18033
18040
|
/* @__PURE__ */ d(Ze, { onClick: () => D(!1), children: "Cancel" }),
|
|
18034
18041
|
/* @__PURE__ */ d(Ze, { onClick: j, color: "error", children: "Delete" })
|
|
@@ -18112,7 +18119,7 @@ function Mb({
|
|
|
18112
18119
|
}
|
|
18113
18120
|
);
|
|
18114
18121
|
return /* @__PURE__ */ k(
|
|
18115
|
-
|
|
18122
|
+
_e,
|
|
18116
18123
|
{
|
|
18117
18124
|
sx: {
|
|
18118
18125
|
position: "relative",
|
|
@@ -18160,7 +18167,7 @@ function Mb({
|
|
|
18160
18167
|
},
|
|
18161
18168
|
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
18169
|
/* @__PURE__ */ d(
|
|
18163
|
-
|
|
18170
|
+
N,
|
|
18164
18171
|
{
|
|
18165
18172
|
sx: {
|
|
18166
18173
|
p: 2,
|
|
@@ -18172,7 +18179,7 @@ function Mb({
|
|
|
18172
18179
|
}
|
|
18173
18180
|
),
|
|
18174
18181
|
/* @__PURE__ */ d(
|
|
18175
|
-
|
|
18182
|
+
N,
|
|
18176
18183
|
{
|
|
18177
18184
|
sx: {
|
|
18178
18185
|
mb: 2,
|
|
@@ -18186,7 +18193,7 @@ function Mb({
|
|
|
18186
18193
|
}
|
|
18187
18194
|
) }) : /* @__PURE__ */ k(xe, { children: [
|
|
18188
18195
|
/* @__PURE__ */ d(xt, { in: f, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
|
|
18189
|
-
|
|
18196
|
+
Te,
|
|
18190
18197
|
{
|
|
18191
18198
|
sx: {
|
|
18192
18199
|
p: "10px",
|
|
@@ -18195,7 +18202,7 @@ function Mb({
|
|
|
18195
18202
|
justifyContent: "space-between"
|
|
18196
18203
|
},
|
|
18197
18204
|
children: /* @__PURE__ */ d(
|
|
18198
|
-
|
|
18205
|
+
N,
|
|
18199
18206
|
{
|
|
18200
18207
|
component: "div",
|
|
18201
18208
|
sx: {
|
|
@@ -18210,7 +18217,7 @@ function Mb({
|
|
|
18210
18217
|
}
|
|
18211
18218
|
) }),
|
|
18212
18219
|
/* @__PURE__ */ d(xt, { in: m, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
|
|
18213
|
-
|
|
18220
|
+
Te,
|
|
18214
18221
|
{
|
|
18215
18222
|
sx: {
|
|
18216
18223
|
p: "10px",
|
|
@@ -18219,7 +18226,7 @@ function Mb({
|
|
|
18219
18226
|
justifyContent: "space-between"
|
|
18220
18227
|
},
|
|
18221
18228
|
children: /* @__PURE__ */ d(
|
|
18222
|
-
|
|
18229
|
+
N,
|
|
18223
18230
|
{
|
|
18224
18231
|
component: "div",
|
|
18225
18232
|
className: "content",
|
|
@@ -18236,7 +18243,7 @@ function Mb({
|
|
|
18236
18243
|
) }),
|
|
18237
18244
|
o && (K ? /* @__PURE__ */ k(xe, { children: [
|
|
18238
18245
|
/* @__PURE__ */ d(
|
|
18239
|
-
|
|
18246
|
+
N,
|
|
18240
18247
|
{
|
|
18241
18248
|
sx: {
|
|
18242
18249
|
p: 2,
|
|
@@ -18248,7 +18255,7 @@ function Mb({
|
|
|
18248
18255
|
}
|
|
18249
18256
|
),
|
|
18250
18257
|
/* @__PURE__ */ d(
|
|
18251
|
-
|
|
18258
|
+
N,
|
|
18252
18259
|
{
|
|
18253
18260
|
sx: { mb: 2, textAlign: "center", variant: "body2" },
|
|
18254
18261
|
children: "Please add a model import above."
|
|
@@ -18265,7 +18272,7 @@ function Mb({
|
|
|
18265
18272
|
onSourceChange: V
|
|
18266
18273
|
}
|
|
18267
18274
|
)),
|
|
18268
|
-
!o && e.result && /* @__PURE__ */ d(
|
|
18275
|
+
!o && e.result && /* @__PURE__ */ d(_e, { variant: "outlined", sx: { borderRadius: 0 }, children: /* @__PURE__ */ d(
|
|
18269
18276
|
Za,
|
|
18270
18277
|
{
|
|
18271
18278
|
result: e.result,
|
|
@@ -18275,7 +18282,7 @@ function Mb({
|
|
|
18275
18282
|
) }),
|
|
18276
18283
|
!o && !e.result && /* @__PURE__ */ k(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
|
|
18277
18284
|
/* @__PURE__ */ d(
|
|
18278
|
-
|
|
18285
|
+
N,
|
|
18279
18286
|
{
|
|
18280
18287
|
sx: {
|
|
18281
18288
|
p: 2,
|
|
@@ -18287,7 +18294,7 @@ function Mb({
|
|
|
18287
18294
|
}
|
|
18288
18295
|
),
|
|
18289
18296
|
/* @__PURE__ */ d(
|
|
18290
|
-
|
|
18297
|
+
N,
|
|
18291
18298
|
{
|
|
18292
18299
|
sx: { mb: 2, textAlign: "center", variant: "body2" },
|
|
18293
18300
|
children: "Click to edit."
|
|
@@ -18333,9 +18340,9 @@ function Al() {
|
|
|
18333
18340
|
);
|
|
18334
18341
|
return e;
|
|
18335
18342
|
}
|
|
18336
|
-
const Db =
|
|
18343
|
+
const Db = Ae(/* @__PURE__ */ d("path", {
|
|
18337
18344
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
18338
|
-
})), Bb =
|
|
18345
|
+
})), Bb = Ae(/* @__PURE__ */ d("path", {
|
|
18339
18346
|
d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"
|
|
18340
18347
|
})), jb = new Ur(new Be());
|
|
18341
18348
|
function Vb({
|
|
@@ -18367,8 +18374,8 @@ function Vb({
|
|
|
18367
18374
|
}
|
|
18368
18375
|
) : /* @__PURE__ */ k(xe, { children: [
|
|
18369
18376
|
/* @__PURE__ */ k(Vs, { fullWidth: !0, children: [
|
|
18370
|
-
s && /* @__PURE__ */ d(
|
|
18371
|
-
/* @__PURE__ */ k(
|
|
18377
|
+
s && /* @__PURE__ */ d(N, { children: "Loading..." }),
|
|
18378
|
+
/* @__PURE__ */ k(Te, { direction: "row", spacing: 1, children: [
|
|
18372
18379
|
u.map((x) => /* @__PURE__ */ d(
|
|
18373
18380
|
rc,
|
|
18374
18381
|
{
|
|
@@ -18398,9 +18405,9 @@ function Vb({
|
|
|
18398
18405
|
open: !!m,
|
|
18399
18406
|
onClose: () => h(null),
|
|
18400
18407
|
children: [
|
|
18401
|
-
/* @__PURE__ */ d(
|
|
18408
|
+
/* @__PURE__ */ d(N, { variant: "subtitle2", sx: { ml: 1 }, children: "Models" }),
|
|
18402
18409
|
/* @__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(
|
|
18410
|
+
b.length === 0 ? /* @__PURE__ */ d(cn, { disabled: !0, children: "No models available" }) : b.map((x) => /* @__PURE__ */ d(cn, { onClick: () => y(x), children: /* @__PURE__ */ d(N, { variant: "body2", children: x }) }, x))
|
|
18404
18411
|
]
|
|
18405
18412
|
}
|
|
18406
18413
|
)
|
|
@@ -18426,8 +18433,8 @@ function S0({
|
|
|
18426
18433
|
[]
|
|
18427
18434
|
), [v, w] = O.useState(
|
|
18428
18435
|
null
|
|
18429
|
-
), [P,
|
|
18430
|
-
w(null),
|
|
18436
|
+
), [P, M] = O.useState(null), V = !!v, F = () => {
|
|
18437
|
+
w(null), M(null);
|
|
18431
18438
|
}, g = (Y, G) => {
|
|
18432
18439
|
m.insertCell(G, {
|
|
18433
18440
|
isMarkdown: Y,
|
|
@@ -18525,7 +18532,7 @@ function S0({
|
|
|
18525
18532
|
]
|
|
18526
18533
|
}
|
|
18527
18534
|
);
|
|
18528
|
-
return /* @__PURE__ */ k(
|
|
18535
|
+
return /* @__PURE__ */ k(_e, { variant: "outlined", children: [
|
|
18529
18536
|
/* @__PURE__ */ k(qe, { children: [
|
|
18530
18537
|
/* @__PURE__ */ k(
|
|
18531
18538
|
Yt,
|
|
@@ -18538,7 +18545,7 @@ function S0({
|
|
|
18538
18545
|
children: [
|
|
18539
18546
|
/* @__PURE__ */ k(Yt, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
18540
18547
|
/* @__PURE__ */ d(
|
|
18541
|
-
|
|
18548
|
+
N,
|
|
18542
18549
|
{
|
|
18543
18550
|
variant: "overline",
|
|
18544
18551
|
sx: {
|
|
@@ -18550,7 +18557,7 @@ function S0({
|
|
|
18550
18557
|
}
|
|
18551
18558
|
),
|
|
18552
18559
|
/* @__PURE__ */ d(
|
|
18553
|
-
|
|
18560
|
+
N,
|
|
18554
18561
|
{
|
|
18555
18562
|
variant: "subtitle2",
|
|
18556
18563
|
sx: {
|
|
@@ -18666,7 +18673,7 @@ function S0({
|
|
|
18666
18673
|
/* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Yt, { children: [
|
|
18667
18674
|
m.getCells().length === 0 && /* @__PURE__ */ k(xe, { children: [
|
|
18668
18675
|
/* @__PURE__ */ d(
|
|
18669
|
-
|
|
18676
|
+
N,
|
|
18670
18677
|
{
|
|
18671
18678
|
sx: {
|
|
18672
18679
|
textAlign: "center",
|
|
@@ -18678,7 +18685,7 @@ function S0({
|
|
|
18678
18685
|
}
|
|
18679
18686
|
),
|
|
18680
18687
|
/* @__PURE__ */ d(
|
|
18681
|
-
|
|
18688
|
+
N,
|
|
18682
18689
|
{
|
|
18683
18690
|
variant: "body2",
|
|
18684
18691
|
sx: { textAlign: "center", mb: 2, variant: "body2" },
|
|
@@ -18825,9 +18832,9 @@ function Gb() {
|
|
|
18825
18832
|
});
|
|
18826
18833
|
return /* @__PURE__ */ k(xe, { children: [
|
|
18827
18834
|
!n && !r && /* @__PURE__ */ d(ze, { text: "Fetching About..." }),
|
|
18828
|
-
n && /* @__PURE__ */ k(
|
|
18829
|
-
/* @__PURE__ */ d(
|
|
18830
|
-
/* @__PURE__ */ d(
|
|
18835
|
+
n && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18836
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Readme" }),
|
|
18837
|
+
/* @__PURE__ */ d(_e, { sx: { p: 1 }, children: /* @__PURE__ */ d(Uo, { children: t.data.readme }) })
|
|
18831
18838
|
] }),
|
|
18832
18839
|
r && /* @__PURE__ */ d(je, { error: o, context: `${e} > About` })
|
|
18833
18840
|
] });
|
|
@@ -18840,14 +18847,14 @@ function qb({ navigate: e }) {
|
|
|
18840
18847
|
});
|
|
18841
18848
|
return /* @__PURE__ */ k(xe, { children: [
|
|
18842
18849
|
!r && !o && /* @__PURE__ */ d(ze, { text: "Fetching Packages..." }),
|
|
18843
|
-
r && /* @__PURE__ */ k(
|
|
18844
|
-
/* @__PURE__ */ d(
|
|
18845
|
-
/* @__PURE__ */ d(
|
|
18846
|
-
|
|
18850
|
+
r && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18851
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Packages" }),
|
|
18852
|
+
/* @__PURE__ */ d(Me, { container: !0, spacing: 2, columns: 12, children: n.data.sort((s, a) => s.name.localeCompare(a.name)).map((s) => /* @__PURE__ */ d(
|
|
18853
|
+
Me,
|
|
18847
18854
|
{
|
|
18848
18855
|
size: { xs: 12, sm: 12, md: 12, lg: 4 },
|
|
18849
18856
|
children: /* @__PURE__ */ d(
|
|
18850
|
-
|
|
18857
|
+
_e,
|
|
18851
18858
|
{
|
|
18852
18859
|
variant: "outlined",
|
|
18853
18860
|
sx: {
|
|
@@ -18861,7 +18868,7 @@ function qb({ navigate: e }) {
|
|
|
18861
18868
|
onClick: (a) => e(s.name + "/", a),
|
|
18862
18869
|
children: /* @__PURE__ */ k(qe, { children: [
|
|
18863
18870
|
/* @__PURE__ */ d(
|
|
18864
|
-
|
|
18871
|
+
N,
|
|
18865
18872
|
{
|
|
18866
18873
|
variant: "overline",
|
|
18867
18874
|
color: "primary.main",
|
|
@@ -18875,7 +18882,7 @@ function qb({ navigate: e }) {
|
|
|
18875
18882
|
maxHeight: "120px",
|
|
18876
18883
|
overflowY: "auto"
|
|
18877
18884
|
},
|
|
18878
|
-
children: /* @__PURE__ */ d(
|
|
18885
|
+
children: /* @__PURE__ */ d(N, { variant: "body2", children: s.description })
|
|
18879
18886
|
}
|
|
18880
18887
|
)
|
|
18881
18888
|
] })
|
|
@@ -18910,9 +18917,9 @@ function C0({
|
|
|
18910
18917
|
return /* @__PURE__ */ d(Ol.Provider, { value: { projectName: t }, children: e });
|
|
18911
18918
|
}
|
|
18912
18919
|
function w0({ navigate: e }) {
|
|
18913
|
-
return /* @__PURE__ */ k(
|
|
18914
|
-
/* @__PURE__ */ d(
|
|
18915
|
-
/* @__PURE__ */ d(
|
|
18920
|
+
return /* @__PURE__ */ k(Me, { container: !0, spacing: 2, columns: 12, children: [
|
|
18921
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(qb, { navigate: e }) }),
|
|
18922
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Gb, {}) })
|
|
18916
18923
|
] });
|
|
18917
18924
|
}
|
|
18918
18925
|
const Kb = new oa(new Be());
|
|
@@ -18921,15 +18928,15 @@ function v0({ navigate: e }) {
|
|
|
18921
18928
|
queryKey: ["projects"],
|
|
18922
18929
|
queryFn: (i) => Kb.listProjects(i)
|
|
18923
18930
|
});
|
|
18924
|
-
return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(
|
|
18925
|
-
|
|
18931
|
+
return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(N, { variant: "h4", children: "No projects found" }) : t.data.length === 1 ? (e(`/${t.data[0].name}/`), /* @__PURE__ */ d(xe, {})) : /* @__PURE__ */ d(
|
|
18932
|
+
Me,
|
|
18926
18933
|
{
|
|
18927
18934
|
container: !0,
|
|
18928
18935
|
spacing: 2,
|
|
18929
18936
|
columns: 12,
|
|
18930
18937
|
sx: { mb: (i) => i.spacing(2) },
|
|
18931
|
-
children: t.data.map((i) => /* @__PURE__ */ d(
|
|
18932
|
-
|
|
18938
|
+
children: t.data.map((i) => /* @__PURE__ */ d(Me, { children: /* @__PURE__ */ d(
|
|
18939
|
+
N,
|
|
18933
18940
|
{
|
|
18934
18941
|
variant: "h1",
|
|
18935
18942
|
onClick: (s) => e(`/${i.name}/`, s),
|
|
@@ -19004,8 +19011,8 @@ function k0({
|
|
|
19004
19011
|
children: [
|
|
19005
19012
|
/* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(bc, { fontSize: "small" }) }),
|
|
19006
19013
|
/* @__PURE__ */ k(St, { children: [
|
|
19007
|
-
/* @__PURE__ */ d(
|
|
19008
|
-
/* @__PURE__ */ d(
|
|
19014
|
+
/* @__PURE__ */ d(N, { variant: "body2", fontWeight: 500, children: "New Workbook" }),
|
|
19015
|
+
/* @__PURE__ */ d(N, { variant: "caption", color: "text.secondary", children: "Create a new analysis workbook" })
|
|
19009
19016
|
] })
|
|
19010
19017
|
]
|
|
19011
19018
|
}
|
|
@@ -19020,8 +19027,8 @@ function k0({
|
|
|
19020
19027
|
children: [
|
|
19021
19028
|
/* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(xc, { fontSize: "small" }) }),
|
|
19022
19029
|
/* @__PURE__ */ k(St, { children: [
|
|
19023
|
-
/* @__PURE__ */ d(
|
|
19024
|
-
/* @__PURE__ */ d(
|
|
19030
|
+
/* @__PURE__ */ d(N, { variant: "body2", fontWeight: 500, children: "Open Workbook" }),
|
|
19031
|
+
/* @__PURE__ */ d(N, { variant: "caption", color: "text.secondary", children: "Open an existing workbook" })
|
|
19025
19032
|
] })
|
|
19026
19033
|
]
|
|
19027
19034
|
}
|
|
@@ -19038,10 +19045,10 @@ function k0({
|
|
|
19038
19045
|
fullWidth: !0,
|
|
19039
19046
|
children: [
|
|
19040
19047
|
/* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19041
|
-
/* @__PURE__ */ d(
|
|
19042
|
-
/* @__PURE__ */ d(
|
|
19048
|
+
/* @__PURE__ */ d(N, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Create New Workbook" }),
|
|
19049
|
+
/* @__PURE__ */ d(N, { variant: "body2", color: "text.secondary", children: "Start a new analysis workbook to explore your data" })
|
|
19043
19050
|
] }),
|
|
19044
|
-
/* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ k(
|
|
19051
|
+
/* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ k(Te, { spacing: 2, sx: { mt: 1 }, children: [
|
|
19045
19052
|
/* @__PURE__ */ d(Vs, { fullWidth: !0, children: /* @__PURE__ */ d(
|
|
19046
19053
|
ic,
|
|
19047
19054
|
{
|
|
@@ -19054,7 +19061,7 @@ function k0({
|
|
|
19054
19061
|
size: "small"
|
|
19055
19062
|
}
|
|
19056
19063
|
) }),
|
|
19057
|
-
/* @__PURE__ */ k(
|
|
19064
|
+
/* @__PURE__ */ k(Te, { direction: "row", spacing: 1, justifyContent: "flex-end", children: [
|
|
19058
19065
|
/* @__PURE__ */ d(
|
|
19059
19066
|
Ze,
|
|
19060
19067
|
{
|
|
@@ -19088,8 +19095,8 @@ function k0({
|
|
|
19088
19095
|
fullWidth: !0,
|
|
19089
19096
|
children: [
|
|
19090
19097
|
/* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19091
|
-
/* @__PURE__ */ d(
|
|
19092
|
-
/* @__PURE__ */ d(
|
|
19098
|
+
/* @__PURE__ */ d(N, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Open Workbook" }),
|
|
19099
|
+
/* @__PURE__ */ d(N, { variant: "body2", color: "text.secondary", children: "Select an existing workbook to continue your analysis" })
|
|
19093
19100
|
] }),
|
|
19094
19101
|
/* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ d(
|
|
19095
19102
|
$b,
|
|
@@ -19119,8 +19126,8 @@ function I0({
|
|
|
19119
19126
|
queryKey: ["tablePath", t, e],
|
|
19120
19127
|
queryFn: (h) => wi.listSchemas(t, e, h)
|
|
19121
19128
|
});
|
|
19122
|
-
return /* @__PURE__ */ k(
|
|
19123
|
-
/* @__PURE__ */ d(
|
|
19129
|
+
return /* @__PURE__ */ k(Me, { container: !0, spacing: 2, children: [
|
|
19130
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ k(xo, { sx: { p: 2 }, children: [
|
|
19124
19131
|
/* @__PURE__ */ k(
|
|
19125
19132
|
Z,
|
|
19126
19133
|
{
|
|
@@ -19131,7 +19138,7 @@ function I0({
|
|
|
19131
19138
|
mb: 1
|
|
19132
19139
|
},
|
|
19133
19140
|
children: [
|
|
19134
|
-
/* @__PURE__ */ d(
|
|
19141
|
+
/* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Table Paths" }),
|
|
19135
19142
|
/* @__PURE__ */ d(
|
|
19136
19143
|
sc,
|
|
19137
19144
|
{
|
|
@@ -19158,7 +19165,7 @@ function I0({
|
|
|
19158
19165
|
context: `${t} > ${e}`
|
|
19159
19166
|
}
|
|
19160
19167
|
),
|
|
19161
|
-
c && l.data.length === 0 && /* @__PURE__ */ d(
|
|
19168
|
+
c && l.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Schemas" }),
|
|
19162
19169
|
c && l.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: l.data.filter(
|
|
19163
19170
|
({ isHidden: h }) => s || !h
|
|
19164
19171
|
).sort((h, f) => h.isDefault === f.isDefault ? 0 : h.isDefault ? -1 : 1).map(
|
|
@@ -19174,7 +19181,7 @@ function I0({
|
|
|
19174
19181
|
) })
|
|
19175
19182
|
] })
|
|
19176
19183
|
] }) }),
|
|
19177
|
-
/* @__PURE__ */ d(
|
|
19184
|
+
/* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: o && /* @__PURE__ */ d(xo, { sx: { p: 2 }, children: /* @__PURE__ */ d(
|
|
19178
19185
|
Yb,
|
|
19179
19186
|
{
|
|
19180
19187
|
connectionName: e,
|
|
@@ -19224,7 +19231,7 @@ function Qb({
|
|
|
19224
19231
|
".",
|
|
19225
19232
|
n,
|
|
19226
19233
|
/* @__PURE__ */ d(
|
|
19227
|
-
|
|
19234
|
+
N,
|
|
19228
19235
|
{
|
|
19229
19236
|
fontSize: "large",
|
|
19230
19237
|
variant: "body2",
|
|
@@ -19301,7 +19308,7 @@ function Yb({
|
|
|
19301
19308
|
)
|
|
19302
19309
|
});
|
|
19303
19310
|
return /* @__PURE__ */ k(xe, { children: [
|
|
19304
|
-
/* @__PURE__ */ k(
|
|
19311
|
+
/* @__PURE__ */ k(N, { variant: "overline", fontWeight: "bold", children: [
|
|
19305
19312
|
"Tables in ",
|
|
19306
19313
|
t
|
|
19307
19314
|
] }),
|
|
@@ -19315,7 +19322,7 @@ function Yb({
|
|
|
19315
19322
|
context: `${r} > ${e} > ${t}`
|
|
19316
19323
|
}
|
|
19317
19324
|
),
|
|
19318
|
-
i && o.data.length === 0 && /* @__PURE__ */ d(
|
|
19325
|
+
i && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Tables" }),
|
|
19319
19326
|
i && o.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: o.data.map((c) => /* @__PURE__ */ d(
|
|
19320
19327
|
Fs,
|
|
19321
19328
|
{
|