@malloy-publisher/sdk 0.18.5 → 0.18.7
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/{RenderedResult-D0SdTDx-.cjs.js → RenderedResult-B7Vw2U4r.cjs.js} +1 -1
- package/dist/{RenderedResult-cJiP774J.es.js → RenderedResult-BkBdGb49.es.js} +35 -35
- package/dist/{ServerProvider-BRGSDxay.es.js → ServerProvider-Caw1M640.es.js} +1386 -1162
- package/dist/ServerProvider-DorQnQ-Q.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +455 -30
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +146 -131
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +344 -344
- package/dist/{useCompiledDocument-BNtiFhPK.es.js → useCompiledDocument-C3k5Ro8W.es.js} +2 -2
- package/dist/{useCompiledDocument-DanZRwMi.cjs.js → useCompiledDocument-CqI1slum.cjs.js} +2 -2
- package/package.json +1 -1
- package/dist/ServerProvider-BexMzLld.cjs.js +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as o, jsxs as k, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import { Link as bo, useMediaQuery as Qh, Stack as Be, Typography as re, Button as
|
|
2
|
+
import { Link as bo, useMediaQuery as Qh, Stack as Be, Typography as re, Button as Ye, Menu as Nn, MenuItem as rn, Box as N, Tooltip as bt, Dialog as Fs, DialogTitle as Ls, IconButton as Wt, DialogContent as Ps, DialogActions as Xh, Alert as yt, useTheme as Jh, TextField as Xn, Grid as kr, Paper as ws, FormControlLabel as Dc, Switch as Ic, Divider as Fn, List as $c, ListItemButton as Rc, ListItemText as Qt, TableContainer as ef, Table as fi, TableHead as mi, TableRow as Ln, TableCell as Le, TableBody as pi, Snackbar as $r, ListItemIcon as yn, Container as oi, FormGroup as tf, Chip as Ac, Collapse as gi, ButtonBase as zs, CircularProgress as yi, Popover as nf, AlertTitle as rf, LinearProgress as of, InputBase as sf, InputAdornment as af, alpha as lf } from "@mui/material";
|
|
3
3
|
import * as Me from "react";
|
|
4
|
-
import $e, { useState as G, useCallback as He, useMemo as de, useRef as lt, useEffect as
|
|
5
|
-
import { n as Ee, bk as _c, bl as
|
|
6
|
-
import { d0 as sx, d1 as ax, d2 as lx, o as cx, d3 as ux, d4 as dx, d5 as hx, d6 as fx, d7 as mx, d8 as px, d9 as gx, da as yx, U as vx, d as bx, b7 as wx, g as xx, z as Sx, aE as kx, db as Cx, dc as Tx, dd as Ox, de as Mx, av as Ex, df as Dx, dg as Ix, m as $x, K as Rx, e as Ax, b4 as _x, dh as Nx, di as Fx, b as Lx, ak as Px, aD as zx, dj as Wx, dk as qx, dl as Vx, dm as Hx } from "./useCompiledDocument-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import $e, { useState as G, useCallback as He, useMemo as de, useRef as lt, useEffect as Ke, Fragment as cf, useId as vi, forwardRef as Io, createContext as bi, useContext as $o, createElement as uf } from "react";
|
|
5
|
+
import { n as Ee, bk as _c, bl as Yr, bm as df, bn as il, bo as hf, bp as ff, bq as mf, br as pf, bs as Nc, bt as Ws, bu as qs, al as mo, bv as Vs, aw as gf, aG as Hs, bw as Fc, bx as yf, by as Ro, aF as Lc, bz as vf, ar as bf, aH as wf, au as xs, J as xf, aN as Sf, ac as kf, G as Cf, bA as Tf, aJ as Pc, aL as Of, aM as Mf, aK as Ef, a4 as Df, P as If, ag as zc, aO as wi, ae as $f, a1 as Us, $ as wo, aB as vt, bB as it, aI as Lt, S as Ao, b6 as Xt, bC as Rf, bD as Qn, bE as sl, bF as Wc, bG as Af, bH as Gi, bI as tr, bJ as Mn, bK as zn, bL as Tn, bM as nr, bN as Tt, bO as js, bP as fn, bQ as al, bR as _f, bS as vn, bT as Nf, bU as Pn, bV as gn, bW as _o, t as Ct, bX as Ff, bY as Lf, bZ as Pf, b_ as ii, b$ as ct, c0 as ll, c1 as zf, c2 as Wf, c3 as qf, c4 as Ne, A as qc, c5 as xi, c6 as $t, c7 as No, c8 as Vf, c9 as Yi, ca as Hf, cb as Uf, cc as Vc, cd as jf, ce as wr, cf as Gn, cg as cl, ch as Ki, ci as xn, cj as ul, ck as dl, cl as hl, cm as Hc, cn as fl, co as ml, cp as Zi, cq as Bf, cr as An, cs as Gf, ct as Yf, cu as Kf, cv as Si, cw as Zf, C as Qf, cx as Uc, cy as Xf, cz as Jf, cA as em, E as tm, cB as nm, cC as rm, cD as Bs, cE as om, cF as im, cG as sm, cH as am, cI as po, cJ as xo, cK as lm, cL as cm, aa as pl, cM as um, ab as dm, cN as hm, cO as fm, aV as Ss, cP as mm, cQ as pm, cR as gm, aC as ym, cS as vm, cT as bm, bj as wm, v as Qi, b9 as xm, bg as Sm, cU as km, bd as Cm, p as jc, r as gl, V as Tm, a$ as Gs, ba as Om, cV as Mm, B as Bc, b2 as Gc, aQ as Yc, bb as Em, aY as Dm, b1 as ki, cW as Im, cX as $m, cY as si, cZ as Kc, c_ as Rm, aS as Am, c$ as yl } from "./useCompiledDocument-C3k5Ro8W.es.js";
|
|
6
|
+
import { d0 as sx, d1 as ax, d2 as lx, o as cx, d3 as ux, d4 as dx, d5 as hx, d6 as fx, d7 as mx, d8 as px, d9 as gx, da as yx, U as vx, d as bx, b7 as wx, g as xx, z as Sx, aE as kx, db as Cx, dc as Tx, dd as Ox, de as Mx, av as Ex, df as Dx, dg as Ix, m as $x, K as Rx, e as Ax, b4 as _x, dh as Nx, di as Fx, b as Lx, ak as Px, aD as zx, dj as Wx, dk as qx, dl as Vx, dm as Hx } from "./useCompiledDocument-C3k5Ro8W.es.js";
|
|
7
|
+
import { bH as ze, bG as En, bM as Mt, m as vl, d as Zc, bN as Ys, ac as Ft, av as Zo, a0 as _m, bO as Nt, bP as Qc, bQ as Xc, bR as Nm, bS as Jc, bT as Fm, bU as Lm, bF as bl, bV as Pm } from "./ServerProvider-Caw1M640.es.js";
|
|
8
|
+
import { bW as jx, bL as Bx, bd as Gx, bX as Yx, bY as Kx, bZ as Zx, b_ as Qx, b$ as Xx, bJ as Jx } from "./ServerProvider-Caw1M640.es.js";
|
|
9
9
|
import { useQueryClient as rr, useQuery as So, isCancelledError as zm, useMutation as Xi } from "@tanstack/react-query";
|
|
10
10
|
import { createBox as Wm, createStack as qm, Stack as Vm, Box as eu } from "@mui/system";
|
|
11
|
-
import { Delete as Ci, Edit as
|
|
11
|
+
import { Delete as Ci, Edit as Ks, MoreVert as Ti } from "@mui/icons-material";
|
|
12
12
|
import { parseAnnotation as Hm } from "@malloydata/malloy-tag";
|
|
13
13
|
import { i as Um, n as jm } from "./text-entry-YKJZbRPo.es.js";
|
|
14
|
-
import { D as tS, R as nS, b as rS, a as oS, d as iS, m as sS, r as aS } from "./RenderedResult-
|
|
14
|
+
import { D as tS, R as nS, b as rS, a as oS, d as iS, m as sS, r as aS } from "./RenderedResult-BkBdGb49.es.js";
|
|
15
15
|
import { StringFilterExpression as Bm } from "@malloydata/malloy-filter";
|
|
16
|
-
import { useNavigate as tu, useSearchParams as Gm, useLocation as
|
|
17
|
-
const
|
|
16
|
+
import { useNavigate as tu, useSearchParams as Gm, useLocation as Ym } from "react-router-dom";
|
|
17
|
+
const Km = Ee(/* @__PURE__ */ o("path", {
|
|
18
18
|
d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
|
|
19
19
|
}));
|
|
20
20
|
function Ow({
|
|
@@ -49,7 +49,7 @@ function Ow({
|
|
|
49
49
|
"&:hover": { color: "primary.main" }
|
|
50
50
|
},
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */ o(
|
|
52
|
+
/* @__PURE__ */ o(Km, { sx: { fontSize: 18 } }),
|
|
53
53
|
"Back to ",
|
|
54
54
|
e
|
|
55
55
|
]
|
|
@@ -68,7 +68,7 @@ function Mw({ children: e }) {
|
|
|
68
68
|
return !t || n ? /* @__PURE__ */ o(pe, { children: e }) : /* @__PURE__ */ k(Be, { sx: { alignItems: "flex-start", gap: 1.5, py: 3 }, children: [
|
|
69
69
|
/* @__PURE__ */ o(re, { variant: "h6", children: "Editing works best on a larger screen" }),
|
|
70
70
|
/* @__PURE__ */ o(re, { variant: "body2", color: "text.secondary", children: "The editor is built for a wider window. You can still try it here." }),
|
|
71
|
-
/* @__PURE__ */ o(
|
|
71
|
+
/* @__PURE__ */ o(Ye, { variant: "outlined", onClick: () => i(!0), children: "Edit anyway" })
|
|
72
72
|
] });
|
|
73
73
|
}
|
|
74
74
|
function Ew() {
|
|
@@ -289,12 +289,12 @@ function hu({
|
|
|
289
289
|
}) {
|
|
290
290
|
const [l, a] = G(null), c = He(
|
|
291
291
|
(w, C) => w.filter(
|
|
292
|
-
(T) => T ===
|
|
292
|
+
(T) => T === Yr ? t !== void 0 && (i?.(C) ?? !0) : e !== void 0
|
|
293
293
|
),
|
|
294
294
|
[e, t, i]
|
|
295
295
|
), u = He(
|
|
296
296
|
(w, C, T) => {
|
|
297
|
-
if (C ===
|
|
297
|
+
if (C === Yr) {
|
|
298
298
|
t?.(w.given, w.rawValue);
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
@@ -348,10 +348,10 @@ function hu({
|
|
|
348
348
|
), p = He(
|
|
349
349
|
(w) => {
|
|
350
350
|
const C = hf(w), T = d(w), O = C ? Array.from(new Set(c(C.to, C.given))).sort(
|
|
351
|
-
(P, I) => +(I ===
|
|
351
|
+
(P, I) => +(I === Yr) - +(P === Yr)
|
|
352
352
|
) : [], M = `${ks(w.field)}: ${C?.label ?? il(w.value)}`, R = O.map((P) => ({
|
|
353
353
|
key: `to:${P}`,
|
|
354
|
-
label: P ===
|
|
354
|
+
label: P === Yr ? `Filter to ${M}` : (
|
|
355
355
|
// The report's title, else its file name (a path from the package root).
|
|
356
356
|
`Open ${n?.(P) ?? ff(P.split("/").pop() ?? P)} (${M})`
|
|
357
357
|
),
|
|
@@ -437,7 +437,7 @@ const op = (e) => {
|
|
|
437
437
|
}), t.current;
|
|
438
438
|
};
|
|
439
439
|
function Dw() {
|
|
440
|
-
const [e] = Gm(), t = tu(), n =
|
|
440
|
+
const [e] = Gm(), t = tu(), n = Ym(), i = de(
|
|
441
441
|
() => Object.fromEntries(e.entries()),
|
|
442
442
|
[e]
|
|
443
443
|
), s = lt(/* @__PURE__ */ new Set()), l = lt(null), a = He(
|
|
@@ -551,7 +551,7 @@ function fp({
|
|
|
551
551
|
fileName: c
|
|
552
552
|
}) {
|
|
553
553
|
const { apiClients: u } = ze(), [d, p] = G(!1), [v, g] = G(Sl), [y, x] = G(void 0), S = lt(void 0);
|
|
554
|
-
|
|
554
|
+
Ke(() => () => S.current?.abort(), []);
|
|
555
555
|
const w = async () => {
|
|
556
556
|
S.current?.abort();
|
|
557
557
|
const C = new AbortController();
|
|
@@ -602,7 +602,7 @@ function fp({
|
|
|
602
602
|
}
|
|
603
603
|
),
|
|
604
604
|
/* @__PURE__ */ o(bt, { title: v, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
605
|
-
|
|
605
|
+
Ye,
|
|
606
606
|
{
|
|
607
607
|
size: "small",
|
|
608
608
|
startIcon: /* @__PURE__ */ o(ip, { fontSize: "small" }),
|
|
@@ -767,7 +767,7 @@ function vp({
|
|
|
767
767
|
children: v
|
|
768
768
|
}
|
|
769
769
|
),
|
|
770
|
-
/* @__PURE__ */ o(
|
|
770
|
+
/* @__PURE__ */ o(Ye, { onClick: c, children: "Close" })
|
|
771
771
|
] })
|
|
772
772
|
]
|
|
773
773
|
}
|
|
@@ -790,9 +790,9 @@ function bp({
|
|
|
790
790
|
query: e,
|
|
791
791
|
givens: l
|
|
792
792
|
}), { isSuccess: u, isError: d } = c, p = lt(void 0);
|
|
793
|
-
return
|
|
793
|
+
return Ke(() => {
|
|
794
794
|
p.current = mo();
|
|
795
|
-
}, [e]),
|
|
795
|
+
}, [e]), Ke(() => {
|
|
796
796
|
p.current === void 0 || !u && !d || (a?.(u, mo() - p.current), p.current = void 0);
|
|
797
797
|
}, [u, d, a]), /* @__PURE__ */ o(N, { sx: { p: 1 }, children: /* @__PURE__ */ o(Vs, { state: c, context: e }) });
|
|
798
798
|
}
|
|
@@ -864,16 +864,16 @@ function wp({
|
|
|
864
864
|
...l ? { hostGivens: l } : {}
|
|
865
865
|
}), { applied: P, declaredTypes: I, canSelf: q, onSelf: D } = R, F = Fc(), V = de(() => {
|
|
866
866
|
const ee = new Set(
|
|
867
|
-
(e.tiles ?? []).flatMap((
|
|
867
|
+
(e.tiles ?? []).flatMap((Y) => Y.givenNames ?? [])
|
|
868
868
|
);
|
|
869
869
|
return Object.fromEntries(
|
|
870
870
|
Object.entries(l ?? {}).filter(
|
|
871
|
-
([
|
|
871
|
+
([Y]) => ee.has(Y) && !I.has(Y)
|
|
872
872
|
)
|
|
873
873
|
);
|
|
874
874
|
}, [e, l, I]), [$, W] = G(void 0), Z = He((ee) => {
|
|
875
|
-
const
|
|
876
|
-
|
|
875
|
+
const Y = mp(ee);
|
|
876
|
+
Y !== void 0 && W(Y);
|
|
877
877
|
}, []), te = de(
|
|
878
878
|
() => yf(
|
|
879
879
|
Ro(P, I),
|
|
@@ -887,21 +887,21 @@ function wp({
|
|
|
887
887
|
c !== void 0
|
|
888
888
|
), H = He(
|
|
889
889
|
(ee) => {
|
|
890
|
-
const
|
|
891
|
-
if (
|
|
892
|
-
const fe =
|
|
890
|
+
const Y = vf(ee, X);
|
|
891
|
+
if (Y.kind !== "path") return;
|
|
892
|
+
const fe = Y.report.path;
|
|
893
893
|
return X.find((ke) => ke.path === fe)?.title || void 0;
|
|
894
894
|
},
|
|
895
895
|
[X]
|
|
896
|
-
), { bindingFor:
|
|
896
|
+
), { bindingFor: K, drillMenu: ne } = hu({
|
|
897
897
|
onNavigate: c,
|
|
898
898
|
onSelf: D,
|
|
899
899
|
canSelf: q,
|
|
900
900
|
onRows: Z,
|
|
901
901
|
destinationTitle: H
|
|
902
902
|
}), z = He(
|
|
903
|
-
(ee,
|
|
904
|
-
[
|
|
903
|
+
(ee, Y) => K(ee, Y !== !0),
|
|
904
|
+
[K]
|
|
905
905
|
), { columns: ie, layout: oe, tileMaxHeight: se, tableMaxHeight: Fe } = bf(
|
|
906
906
|
e.layout,
|
|
907
907
|
e.dashboardColumns
|
|
@@ -952,8 +952,8 @@ function wp({
|
|
|
952
952
|
columns: ie,
|
|
953
953
|
minTilePx: Tf,
|
|
954
954
|
rowGapPx: Cf,
|
|
955
|
-
keyOf: (ee,
|
|
956
|
-
renderTile: (ee,
|
|
955
|
+
keyOf: (ee, Y) => `${Y}:${ee.kind === "text" ? `text:${ee.name}` : ee.query}`,
|
|
956
|
+
renderTile: (ee, Y) => (
|
|
957
957
|
// An absent `kind` is a query tile, as it was before text tiles.
|
|
958
958
|
ee.kind === "text" || ee.query === void 0 ? (
|
|
959
959
|
// Prose, never a card, in either layout: a text tile is
|
|
@@ -976,7 +976,7 @@ function wp({
|
|
|
976
976
|
) : /* @__PURE__ */ o(
|
|
977
977
|
Pc,
|
|
978
978
|
{
|
|
979
|
-
index:
|
|
979
|
+
index: Y,
|
|
980
980
|
environmentName: t,
|
|
981
981
|
packageName: n,
|
|
982
982
|
versionId: i,
|
|
@@ -1031,14 +1031,14 @@ function wp({
|
|
|
1031
1031
|
givens: te,
|
|
1032
1032
|
...C === void 0 ? {} : { actions: C },
|
|
1033
1033
|
onClose: () => W(void 0),
|
|
1034
|
-
onDone: (ee,
|
|
1034
|
+
onDone: (ee, Y) => {
|
|
1035
1035
|
$ && F.emit({
|
|
1036
1036
|
type: "report.rows_shown",
|
|
1037
1037
|
source: $.target.source,
|
|
1038
1038
|
view: $.target.queryName ?? "",
|
|
1039
1039
|
field: $.field,
|
|
1040
1040
|
ok: ee,
|
|
1041
|
-
durationMs:
|
|
1041
|
+
durationMs: Y
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
@@ -1145,12 +1145,12 @@ function Iw({ resourceUri: e }) {
|
|
|
1145
1145
|
M
|
|
1146
1146
|
);
|
|
1147
1147
|
}, [M]);
|
|
1148
|
-
return
|
|
1148
|
+
return Ke(R, [w, R]), Ke(() => {
|
|
1149
1149
|
function P(I) {
|
|
1150
1150
|
I.source === y.current?.contentWindow && (M && I.origin !== M || (Ep(I.data) ? R() : Dp(I.data) && O(I.data.mode)));
|
|
1151
1151
|
}
|
|
1152
1152
|
return window.addEventListener("message", P), () => window.removeEventListener("message", P);
|
|
1153
|
-
}, [M, R]),
|
|
1153
|
+
}, [M, R]), Ke(() => {
|
|
1154
1154
|
if (g) return;
|
|
1155
1155
|
function P(I) {
|
|
1156
1156
|
kp(I.data) && I.source === y.current?.contentWindow && I.data.height > 0 && S(Math.ceil(I.data.height));
|
|
@@ -1692,7 +1692,7 @@ const Hp = (e) => {
|
|
|
1692
1692
|
transitionDuration: F
|
|
1693
1693
|
}, X = Hp(te), {
|
|
1694
1694
|
getRootProps: H,
|
|
1695
|
-
onClickAway:
|
|
1695
|
+
onClickAway: K
|
|
1696
1696
|
} = Ap({
|
|
1697
1697
|
...te
|
|
1698
1698
|
}), [ne, z] = Me.useState(!0), ie = (ve) => {
|
|
@@ -1729,11 +1729,11 @@ const Hp = (e) => {
|
|
|
1729
1729
|
getSlotProps: (ve) => ({
|
|
1730
1730
|
onClickAway: (...ye) => {
|
|
1731
1731
|
const be = ye[0];
|
|
1732
|
-
ve.onClickAway?.(...ye), !be?.defaultMuiPrevented &&
|
|
1732
|
+
ve.onClickAway?.(...ye), !be?.defaultMuiPrevented && K(...ye);
|
|
1733
1733
|
}
|
|
1734
1734
|
}),
|
|
1735
1735
|
ownerState: te
|
|
1736
|
-
}), [ee,
|
|
1736
|
+
}), [ee, Y] = vn("content", {
|
|
1737
1737
|
elementType: qp,
|
|
1738
1738
|
shouldForwardComponentProp: !0,
|
|
1739
1739
|
externalForwardedProps: se,
|
|
@@ -1771,7 +1771,7 @@ const Hp = (e) => {
|
|
|
1771
1771
|
children: /* @__PURE__ */ o(fe, {
|
|
1772
1772
|
...ke,
|
|
1773
1773
|
children: p || /* @__PURE__ */ o(ee, {
|
|
1774
|
-
...
|
|
1774
|
+
...Y
|
|
1775
1775
|
})
|
|
1776
1776
|
})
|
|
1777
1777
|
})
|
|
@@ -1920,7 +1920,7 @@ function Bp({
|
|
|
1920
1920
|
] }),
|
|
1921
1921
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
1922
1922
|
/* @__PURE__ */ o(
|
|
1923
|
-
|
|
1923
|
+
Ye,
|
|
1924
1924
|
{
|
|
1925
1925
|
disabled: l.isPending,
|
|
1926
1926
|
onClick: () => n(!1),
|
|
@@ -1928,7 +1928,7 @@ function Bp({
|
|
|
1928
1928
|
}
|
|
1929
1929
|
),
|
|
1930
1930
|
/* @__PURE__ */ o(
|
|
1931
|
-
|
|
1931
|
+
Ye,
|
|
1932
1932
|
{
|
|
1933
1933
|
type: "submit",
|
|
1934
1934
|
form: "package-form",
|
|
@@ -2106,10 +2106,10 @@ function Oi({
|
|
|
2106
2106
|
}
|
|
2107
2107
|
const vu = Ee(/* @__PURE__ */ o("path", {
|
|
2108
2108
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
2109
|
-
})),
|
|
2109
|
+
})), Yp = Mn("MuiBox", ["root"]), Kp = Pf(), ot = Wm({
|
|
2110
2110
|
themeId: Lf,
|
|
2111
|
-
defaultTheme:
|
|
2112
|
-
defaultClassName:
|
|
2111
|
+
defaultTheme: Kp,
|
|
2112
|
+
defaultClassName: Yp.root,
|
|
2113
2113
|
generateClassName: Ff.generate
|
|
2114
2114
|
}), Mi = qm({
|
|
2115
2115
|
createStyledComponent: Tt("div", {
|
|
@@ -2302,7 +2302,7 @@ const Cr = Mn("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
|
|
|
2302
2302
|
function ng(e) {
|
|
2303
2303
|
return tr("MuiMenuItem", e);
|
|
2304
2304
|
}
|
|
2305
|
-
const
|
|
2305
|
+
const Kr = Mn("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), rg = (e, t) => {
|
|
2306
2306
|
const {
|
|
2307
2307
|
ownerState: n
|
|
2308
2308
|
} = e;
|
|
@@ -2349,23 +2349,23 @@ const Yr = Mn("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
|
|
|
2349
2349
|
backgroundColor: "transparent"
|
|
2350
2350
|
}
|
|
2351
2351
|
},
|
|
2352
|
-
[`&.${
|
|
2352
|
+
[`&.${Kr.selected}`]: {
|
|
2353
2353
|
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
2354
|
-
[`&.${
|
|
2354
|
+
[`&.${Kr.focusVisible}`]: {
|
|
2355
2355
|
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`)
|
|
2356
2356
|
}
|
|
2357
2357
|
},
|
|
2358
|
-
[`&.${
|
|
2358
|
+
[`&.${Kr.selected}:hover`]: {
|
|
2359
2359
|
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
2360
2360
|
// Reset on touch devices, it doesn't add specificity
|
|
2361
2361
|
"@media (hover: none)": {
|
|
2362
2362
|
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity)
|
|
2363
2363
|
}
|
|
2364
2364
|
},
|
|
2365
|
-
[`&.${
|
|
2365
|
+
[`&.${Kr.focusVisible}`]: {
|
|
2366
2366
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
2367
2367
|
},
|
|
2368
|
-
[`&.${
|
|
2368
|
+
[`&.${Kr.disabled}`]: {
|
|
2369
2369
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
2370
2370
|
},
|
|
2371
2371
|
[`& + .${El.root}`]: {
|
|
@@ -3127,8 +3127,8 @@ function cg({
|
|
|
3127
3127
|
`Attached database "${Z}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`
|
|
3128
3128
|
);
|
|
3129
3129
|
}
|
|
3130
|
-
const
|
|
3131
|
-
|
|
3130
|
+
const K = Ts[W];
|
|
3131
|
+
K && (te[K] = H);
|
|
3132
3132
|
}
|
|
3133
3133
|
return te;
|
|
3134
3134
|
}
|
|
@@ -3740,8 +3740,8 @@ function dg({
|
|
|
3740
3740
|
if ($ === "ducklake") {
|
|
3741
3741
|
const te = {};
|
|
3742
3742
|
if (v === "postgres") {
|
|
3743
|
-
const
|
|
3744
|
-
if (
|
|
3743
|
+
const K = Cn.postgres, ne = {};
|
|
3744
|
+
if (K.forEach((z) => {
|
|
3745
3745
|
const ie = F.get(`ducklake_pg_${z.name}`)?.toString();
|
|
3746
3746
|
ie && (ne[z.name] = ie);
|
|
3747
3747
|
}), Object.keys(ne).length === 0)
|
|
@@ -3753,27 +3753,27 @@ function dg({
|
|
|
3753
3753
|
throw new Error("DuckLake requires a bucket URL");
|
|
3754
3754
|
const H = { bucketUrl: X };
|
|
3755
3755
|
if (y === "s3") {
|
|
3756
|
-
const
|
|
3756
|
+
const K = {};
|
|
3757
3757
|
ko.forEach((z) => {
|
|
3758
3758
|
const ie = F.get(`ducklake_s3_${z.name}`)?.toString();
|
|
3759
|
-
ie && (
|
|
3759
|
+
ie && (K[z.name] = ie);
|
|
3760
3760
|
});
|
|
3761
3761
|
const ne = e.ducklakeConnection?.storage?.s3Connection;
|
|
3762
|
-
if (ne && (!
|
|
3763
|
-
delete
|
|
3764
|
-
else if (delete
|
|
3762
|
+
if (ne && (!K.provider && ne.provider && (K.provider = ne.provider), !K.chain && ne.chain && (K.chain = ne.chain), !K.accessKeyId && ne.accessKeyId && (K.accessKeyId = ne.accessKeyId)), K.provider === "credential_chain")
|
|
3763
|
+
delete K.accessKeyId, delete K.secretAccessKey, delete K.sessionToken;
|
|
3764
|
+
else if (delete K.chain, !K.accessKeyId)
|
|
3765
3765
|
throw new Error("S3 Access Key ID is required");
|
|
3766
|
-
Object.keys(
|
|
3766
|
+
Object.keys(K).length > 0 && (H.s3Connection = K);
|
|
3767
3767
|
} else if (y === "gcs") {
|
|
3768
|
-
const
|
|
3768
|
+
const K = {};
|
|
3769
3769
|
Co.forEach((z) => {
|
|
3770
3770
|
const ie = F.get(`ducklake_gcs_${z.name}`)?.toString();
|
|
3771
|
-
ie && (
|
|
3771
|
+
ie && (K[z.name] = ie);
|
|
3772
3772
|
});
|
|
3773
3773
|
const ne = e.ducklakeConnection?.storage?.gcsConnection;
|
|
3774
|
-
if (ne && !
|
|
3774
|
+
if (ne && !K.keyId && ne.keyId && (K.keyId = ne.keyId), !K.keyId)
|
|
3775
3775
|
throw new Error("GCS Key ID is required");
|
|
3776
|
-
Object.keys(
|
|
3776
|
+
Object.keys(K).length > 0 && (H.gcsConnection = K);
|
|
3777
3777
|
}
|
|
3778
3778
|
Z = {
|
|
3779
3779
|
name: V,
|
|
@@ -3790,21 +3790,21 @@ function dg({
|
|
|
3790
3790
|
);
|
|
3791
3791
|
const te = d.map(
|
|
3792
3792
|
(X, H) => {
|
|
3793
|
-
const
|
|
3793
|
+
const K = X.dbType, ne = F.get(`attachedDb_${H}_name`)?.toString();
|
|
3794
3794
|
if (!ne)
|
|
3795
3795
|
throw new Error(
|
|
3796
3796
|
`Attached database at index ${H} must have a name`
|
|
3797
3797
|
);
|
|
3798
3798
|
const z = {
|
|
3799
3799
|
name: ne,
|
|
3800
|
-
type:
|
|
3801
|
-
}, ie = ci(
|
|
3800
|
+
type: K
|
|
3801
|
+
}, ie = ci(K);
|
|
3802
3802
|
if (ie && ie.length > 0) {
|
|
3803
3803
|
const oe = {};
|
|
3804
3804
|
if (ie.forEach((Fe) => {
|
|
3805
3805
|
const he = F.get(`attachedDb_${H}_${Fe.name}`)?.toString();
|
|
3806
3806
|
he && (oe[Fe.name] = he);
|
|
3807
|
-
}),
|
|
3807
|
+
}), K === "s3") {
|
|
3808
3808
|
if (oe.provider === "credential_chain")
|
|
3809
3809
|
delete oe.accessKeyId, delete oe.secretAccessKey, delete oe.sessionToken;
|
|
3810
3810
|
else if (delete oe.chain, !oe.accessKeyId || !oe.secretAccessKey)
|
|
@@ -3812,7 +3812,7 @@ function dg({
|
|
|
3812
3812
|
`Attached database "${ne}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`
|
|
3813
3813
|
);
|
|
3814
3814
|
}
|
|
3815
|
-
const se = Ts[
|
|
3815
|
+
const se = Ts[K];
|
|
3816
3816
|
se && (z[se] = oe);
|
|
3817
3817
|
}
|
|
3818
3818
|
return z;
|
|
@@ -3828,13 +3828,13 @@ function dg({
|
|
|
3828
3828
|
} else {
|
|
3829
3829
|
const te = e[uo[$]] || {}, X = {};
|
|
3830
3830
|
if (W.forEach((H) => {
|
|
3831
|
-
const
|
|
3832
|
-
|
|
3831
|
+
const K = F.get(H.name)?.toString(), ne = te[H.name];
|
|
3832
|
+
K ? X[H.name] = K : Il.has(H.name) || (K !== void 0 ? X[H.name] = K : ne && (X[H.name] = ne));
|
|
3833
3833
|
}), $ === "postgres") {
|
|
3834
|
-
const H = ["host", "port", "databaseName", "userName"],
|
|
3834
|
+
const H = ["host", "port", "databaseName", "userName"], K = u.has(
|
|
3835
3835
|
"postgresConnection.connectionString"
|
|
3836
3836
|
);
|
|
3837
|
-
if (!(!!X.connectionString?.trim() ||
|
|
3837
|
+
if (!(!!X.connectionString?.trim() || K)) {
|
|
3838
3838
|
const z = H;
|
|
3839
3839
|
for (const ie of z)
|
|
3840
3840
|
if (!X[ie])
|
|
@@ -3856,10 +3856,10 @@ function dg({
|
|
|
3856
3856
|
throw new Error("User is required");
|
|
3857
3857
|
} else if ($ === "mysql") {
|
|
3858
3858
|
const H = ["host", "port", "database", "user"];
|
|
3859
|
-
for (const
|
|
3860
|
-
if (!X[
|
|
3859
|
+
for (const K of H)
|
|
3860
|
+
if (!X[K])
|
|
3861
3861
|
throw new Error(
|
|
3862
|
-
`${W.find((ne) => ne.name ===
|
|
3862
|
+
`${W.find((ne) => ne.name === K)?.label || K} is required`
|
|
3863
3863
|
);
|
|
3864
3864
|
} else if ($ === "sqlserver") {
|
|
3865
3865
|
const H = ["server", "database", "user"];
|
|
@@ -3867,10 +3867,10 @@ function dg({
|
|
|
3867
3867
|
throw new Error(
|
|
3868
3868
|
"Port is required unless an instance name is given"
|
|
3869
3869
|
);
|
|
3870
|
-
for (const
|
|
3871
|
-
if (!X[
|
|
3870
|
+
for (const K of H)
|
|
3871
|
+
if (!X[K])
|
|
3872
3872
|
throw new Error(
|
|
3873
|
-
`${W.find((ne) => ne.name ===
|
|
3873
|
+
`${W.find((ne) => ne.name === K)?.label || K} is required`
|
|
3874
3874
|
);
|
|
3875
3875
|
} else if ($ === "databricks") {
|
|
3876
3876
|
if (!X.host)
|
|
@@ -3931,7 +3931,7 @@ function dg({
|
|
|
3931
3931
|
D.preventDefault(), D.stopPropagation(), C();
|
|
3932
3932
|
},
|
|
3933
3933
|
children: [
|
|
3934
|
-
/* @__PURE__ */ o(Zs, { children: /* @__PURE__ */ o(
|
|
3934
|
+
/* @__PURE__ */ o(Zs, { children: /* @__PURE__ */ o(Ks, { fontSize: "small" }) }),
|
|
3935
3935
|
/* @__PURE__ */ o(Qs, { children: "Edit" })
|
|
3936
3936
|
]
|
|
3937
3937
|
}
|
|
@@ -4795,7 +4795,7 @@ function wg({
|
|
|
4795
4795
|
Oi,
|
|
4796
4796
|
{
|
|
4797
4797
|
icon: /* @__PURE__ */ o(Gp, { sx: { fontSize: 18 } }),
|
|
4798
|
-
tint:
|
|
4798
|
+
tint: Ys.connection,
|
|
4799
4799
|
label: e.name ?? "",
|
|
4800
4800
|
ariaLabel: e.name ?? "",
|
|
4801
4801
|
description: vg(e.type),
|
|
@@ -4941,7 +4941,7 @@ function kg({
|
|
|
4941
4941
|
};
|
|
4942
4942
|
return /* @__PURE__ */ k($e.Fragment, { children: [
|
|
4943
4943
|
/* @__PURE__ */ k(rn, { onClick: a, children: [
|
|
4944
|
-
/* @__PURE__ */ o(yn, { children: /* @__PURE__ */ o(
|
|
4944
|
+
/* @__PURE__ */ o(yn, { children: /* @__PURE__ */ o(Ks, { fontSize: "small" }) }),
|
|
4945
4945
|
/* @__PURE__ */ o(Qt, { children: "Edit" })
|
|
4946
4946
|
] }),
|
|
4947
4947
|
/* @__PURE__ */ o(
|
|
@@ -5060,7 +5060,7 @@ function Tg({
|
|
|
5060
5060
|
Oi,
|
|
5061
5061
|
{
|
|
5062
5062
|
icon: /* @__PURE__ */ o(xg, { sx: { fontSize: 18 } }),
|
|
5063
|
-
tint:
|
|
5063
|
+
tint: Ys.package,
|
|
5064
5064
|
label: e.name,
|
|
5065
5065
|
ariaLabel: e.name,
|
|
5066
5066
|
...e.description ? { description: e.description } : {},
|
|
@@ -5123,7 +5123,7 @@ function Rw({
|
|
|
5123
5123
|
queryKey: ["packages", s],
|
|
5124
5124
|
queryFn: () => n.packages.listPackages(s)
|
|
5125
5125
|
});
|
|
5126
|
-
return
|
|
5126
|
+
return Ke(() => {
|
|
5127
5127
|
window.scrollTo({ top: 0, behavior: "auto" });
|
|
5128
5128
|
}, []), /* @__PURE__ */ k(
|
|
5129
5129
|
oi,
|
|
@@ -5241,7 +5241,7 @@ function Ig(e) {
|
|
|
5241
5241
|
onHighlightChange: te,
|
|
5242
5242
|
onInputChange: X,
|
|
5243
5243
|
onOpen: H,
|
|
5244
|
-
open:
|
|
5244
|
+
open: K,
|
|
5245
5245
|
openOnFocus: ne = !1,
|
|
5246
5246
|
options: z,
|
|
5247
5247
|
readOnly: ie = !1,
|
|
@@ -5254,11 +5254,11 @@ function Ig(e) {
|
|
|
5254
5254
|
const U = R(j);
|
|
5255
5255
|
return typeof U != "string" ? String(U) : U;
|
|
5256
5256
|
};
|
|
5257
|
-
const Se = Me.useRef(!1), Re = Me.useRef(!0), ee = Me.useRef(null),
|
|
5257
|
+
const Se = Me.useRef(!1), Re = Me.useRef(!0), ee = Me.useRef(null), Y = Me.useRef(null), [fe, ke] = Me.useState(null), [ve, ye] = Me.useState(-1), be = s ? 0 : -1, Ue = Me.useRef(be), xt = Me.useRef(Ll(p ?? Fe, $, ue)).current, [ce, B] = Yi({
|
|
5258
5258
|
controlled: Fe,
|
|
5259
5259
|
default: p,
|
|
5260
5260
|
name: d
|
|
5261
|
-
}), [ae, We] =
|
|
5261
|
+
}), [ae, We] = Yi({
|
|
5262
5262
|
controlled: F,
|
|
5263
5263
|
default: xt,
|
|
5264
5264
|
name: d,
|
|
@@ -5268,8 +5268,8 @@ function Ig(e) {
|
|
|
5268
5268
|
return;
|
|
5269
5269
|
const J = Ll(U, $, ue, oe);
|
|
5270
5270
|
ae !== J && (We(J), X && X(j, J, le));
|
|
5271
|
-
}, [ue, ae, $, X, We, c, ce, oe]), [Ot, qt] =
|
|
5272
|
-
controlled:
|
|
5271
|
+
}, [ue, ae, $, X, We, c, ce, oe]), [Ot, qt] = Yi({
|
|
5272
|
+
controlled: K,
|
|
5273
5273
|
default: !1,
|
|
5274
5274
|
name: d,
|
|
5275
5275
|
state: "open"
|
|
@@ -5302,11 +5302,11 @@ function Ig(e) {
|
|
|
5302
5302
|
$ && ve > ce.length - 1 && (ye(-1), Et(-1));
|
|
5303
5303
|
}, [ce, $, ve, Et]);
|
|
5304
5304
|
function Dt(j, U) {
|
|
5305
|
-
if (!
|
|
5305
|
+
if (!Y.current || j < 0 || j >= me.length)
|
|
5306
5306
|
return -1;
|
|
5307
5307
|
let le = j;
|
|
5308
5308
|
for (; ; ) {
|
|
5309
|
-
const xe =
|
|
5309
|
+
const xe = Y.current.querySelector(`[data-option-index="${le}"]`), J = x ? !1 : !xe || xe.disabled || xe.getAttribute("aria-disabled") === "true";
|
|
5310
5310
|
if (xe && xe.hasAttribute("tabindex") && !J)
|
|
5311
5311
|
return le;
|
|
5312
5312
|
if (U === "next" ? le = (le + 1) % me.length : le = (le - 1 + me.length) % me.length, le === j)
|
|
@@ -5318,21 +5318,21 @@ function Ig(e) {
|
|
|
5318
5318
|
index: U,
|
|
5319
5319
|
reason: le
|
|
5320
5320
|
}) => {
|
|
5321
|
-
if (Ue.current = U, U === -1 ? ee.current.removeAttribute("aria-activedescendant") : ee.current.setAttribute("aria-activedescendant", `${he}-option-${U}`), te && ["mouse", "keyboard", "touch"].includes(le) && te(j, U === -1 ? null : me[U], le), !
|
|
5321
|
+
if (Ue.current = U, U === -1 ? ee.current.removeAttribute("aria-activedescendant") : ee.current.setAttribute("aria-activedescendant", `${he}-option-${U}`), te && ["mouse", "keyboard", "touch"].includes(le) && te(j, U === -1 ? null : me[U], le), !Y.current)
|
|
5322
5322
|
return;
|
|
5323
|
-
const xe =
|
|
5323
|
+
const xe = Y.current.querySelector(`[role="option"].${n}-focused`);
|
|
5324
5324
|
xe && (xe.classList.remove(`${n}-focused`), xe.classList.remove(`${n}-focusVisible`));
|
|
5325
|
-
let J =
|
|
5326
|
-
if (
|
|
5325
|
+
let J = Y.current;
|
|
5326
|
+
if (Y.current.getAttribute("role") !== "listbox" && (J = Y.current.parentElement.querySelector('[role="listbox"]')), !J)
|
|
5327
5327
|
return;
|
|
5328
5328
|
if (U === -1) {
|
|
5329
5329
|
J.scrollTop = 0;
|
|
5330
5330
|
return;
|
|
5331
5331
|
}
|
|
5332
|
-
const Je =
|
|
5332
|
+
const Je = Y.current.querySelector(`[data-option-index="${U}"]`);
|
|
5333
5333
|
if (Je && (Je.classList.add(`${n}-focused`), le === "keyboard" && Je.classList.add(`${n}-focusVisible`), J.scrollHeight > J.clientHeight && le !== "mouse" && le !== "touch")) {
|
|
5334
|
-
const rt = Je,
|
|
5335
|
-
cr >
|
|
5334
|
+
const rt = Je, Yt = J.clientHeight + J.scrollTop, cr = rt.offsetTop + rt.offsetHeight;
|
|
5335
|
+
cr > Yt ? J.scrollTop = cr - J.clientHeight : rt.offsetTop - rt.offsetHeight * (P ? 1.3 : 0) < J.scrollTop && (J.scrollTop = rt.offsetTop - rt.offsetHeight * (P ? 1.3 : 0));
|
|
5336
5336
|
}
|
|
5337
5337
|
}), ge = Qn(({
|
|
5338
5338
|
event: j,
|
|
@@ -5350,8 +5350,8 @@ function Ig(e) {
|
|
|
5350
5350
|
return 0;
|
|
5351
5351
|
if (U === "end")
|
|
5352
5352
|
return rt;
|
|
5353
|
-
const
|
|
5354
|
-
return
|
|
5353
|
+
const Yt = Ue.current + U;
|
|
5354
|
+
return Yt < 0 ? Yt === -1 && D ? -1 : S && Ue.current !== -1 || Math.abs(U) > 1 ? 0 : rt : Yt > rt ? Yt === rt + 1 && D ? -1 : S || Math.abs(U) > 1 ? rt : 0 : Yt;
|
|
5355
5355
|
})(), le);
|
|
5356
5356
|
if (ut({
|
|
5357
5357
|
index: Je,
|
|
@@ -5398,7 +5398,7 @@ function Ig(e) {
|
|
|
5398
5398
|
});
|
|
5399
5399
|
return;
|
|
5400
5400
|
}
|
|
5401
|
-
if (
|
|
5401
|
+
if (Y.current) {
|
|
5402
5402
|
if (U != null) {
|
|
5403
5403
|
const le = me[Ue.current];
|
|
5404
5404
|
if ($ && le && ce.findIndex((J) => V(le, J)) !== -1)
|
|
@@ -5434,7 +5434,7 @@ function Ig(e) {
|
|
|
5434
5434
|
ae,
|
|
5435
5435
|
$
|
|
5436
5436
|
]), Ve = Qn((j) => {
|
|
5437
|
-
Hf(
|
|
5437
|
+
Hf(Y, j), j && Oe();
|
|
5438
5438
|
});
|
|
5439
5439
|
Me.useEffect(() => {
|
|
5440
5440
|
nt && Oe();
|
|
@@ -5454,7 +5454,7 @@ function Ig(e) {
|
|
|
5454
5454
|
let J = le, Je = U;
|
|
5455
5455
|
if ($) {
|
|
5456
5456
|
Je = Array.isArray(ce) ? ce.slice() : [];
|
|
5457
|
-
const rt = Je.findIndex((
|
|
5457
|
+
const rt = Je.findIndex((Yt) => V(U, Yt));
|
|
5458
5458
|
rt === -1 ? Je.push(U) : xe !== "freeSolo" && (Je.splice(rt, 1), J = "removeOption");
|
|
5459
5459
|
}
|
|
5460
5460
|
Ae(j, Je, J), Rt(j, Je, J, {
|
|
@@ -5573,7 +5573,7 @@ function Ig(e) {
|
|
|
5573
5573
|
}, Ge = (j) => {
|
|
5574
5574
|
Bt(!0), ne && !Se.current && _e(j);
|
|
5575
5575
|
}, It = (j) => {
|
|
5576
|
-
if (t(
|
|
5576
|
+
if (t(Y)) {
|
|
5577
5577
|
ee.current.focus();
|
|
5578
5578
|
return;
|
|
5579
5579
|
}
|
|
@@ -5930,14 +5930,14 @@ const Fg = (e) => {
|
|
|
5930
5930
|
minWidth: 30
|
|
5931
5931
|
}
|
|
5932
5932
|
},
|
|
5933
|
-
[`& .${
|
|
5933
|
+
[`& .${Ki.root}`]: {
|
|
5934
5934
|
paddingBottom: 1,
|
|
5935
5935
|
"& .MuiInput-input": {
|
|
5936
5936
|
padding: "4px 4px 4px 0px"
|
|
5937
5937
|
}
|
|
5938
5938
|
},
|
|
5939
|
-
[`& .${
|
|
5940
|
-
[`& .${
|
|
5939
|
+
[`& .${Ki.root}.${Gn.sizeSmall}`]: {
|
|
5940
|
+
[`& .${Ki.input}`]: {
|
|
5941
5941
|
padding: "2px 4px 3px 0"
|
|
5942
5942
|
}
|
|
5943
5943
|
},
|
|
@@ -6239,7 +6239,7 @@ const Fg = (e) => {
|
|
|
6239
6239
|
getOptionLabel: te,
|
|
6240
6240
|
isOptionEqualToValue: X,
|
|
6241
6241
|
groupBy: H,
|
|
6242
|
-
handleHomeEndKeys:
|
|
6242
|
+
handleHomeEndKeys: K = !i.freeSolo,
|
|
6243
6243
|
id: ne,
|
|
6244
6244
|
includeInputInList: z = !1,
|
|
6245
6245
|
inputValue: ie,
|
|
@@ -6251,7 +6251,7 @@ const Fg = (e) => {
|
|
|
6251
6251
|
multiple: Se = !1,
|
|
6252
6252
|
noOptionsText: Re = "No options",
|
|
6253
6253
|
onChange: ee,
|
|
6254
|
-
onClose:
|
|
6254
|
+
onClose: Y,
|
|
6255
6255
|
onHighlightChange: fe,
|
|
6256
6256
|
onInputChange: ke,
|
|
6257
6257
|
onOpen: ve,
|
|
@@ -6513,7 +6513,7 @@ function ts(e) {
|
|
|
6513
6513
|
return [];
|
|
6514
6514
|
}
|
|
6515
6515
|
}
|
|
6516
|
-
function
|
|
6516
|
+
function Yg(e) {
|
|
6517
6517
|
return e === "DateMinMax";
|
|
6518
6518
|
}
|
|
6519
6519
|
function ns(e) {
|
|
@@ -6533,7 +6533,7 @@ function Aw({
|
|
|
6533
6533
|
), [g, y] = G(
|
|
6534
6534
|
[]
|
|
6535
6535
|
), [x, S] = G(!1), [w, C] = G(""), [T, O] = G(!1), [M, R] = G(!1), P = lt(null), I = lt(0), [q, D] = G(!1);
|
|
6536
|
-
|
|
6536
|
+
Ke(() => {
|
|
6537
6537
|
if (e.filterType !== "Retrieval" || !s) return;
|
|
6538
6538
|
const z = w.trim();
|
|
6539
6539
|
if (z.length <= 2) {
|
|
@@ -6555,12 +6555,12 @@ function Aw({
|
|
|
6555
6555
|
}, 500), () => {
|
|
6556
6556
|
P.current && clearTimeout(P.current);
|
|
6557
6557
|
};
|
|
6558
|
-
}, [w, e, s]),
|
|
6558
|
+
}, [w, e, s]), Ke(() => {
|
|
6559
6559
|
n === null ? (d(""), v(""), c(
|
|
6560
6560
|
e.defaultMatchType ?? (e.filterType === "DateMinMax" ? "Between" : ts(e.filterType)[0] || "Equals")
|
|
6561
6561
|
)) : n && (c(n.matchType), d(n.value ?? ""), v(n.value2 ?? ""));
|
|
6562
6562
|
}, [n, e.filterType, e.defaultMatchType]);
|
|
6563
|
-
const F = ts(e.filterType), V =
|
|
6563
|
+
const F = ts(e.filterType), V = Yg(e.filterType), $ = ns(a), W = V && t.length >= 2 && t[0].value instanceof Date ? xn.utc(t[0].value) : void 0, Z = V && t.length >= 2 && t[1].value instanceof Date ? xn.utc(t[1].value) : void 0, te = e.filterType === "MinMax" && t.length >= 2 && typeof t[0].value == "number" ? t[0].value : void 0, X = e.filterType === "MinMax" && t.length >= 2 && typeof t[1].value == "number" ? t[1].value : void 0;
|
|
6564
6564
|
if (F.length === 0)
|
|
6565
6565
|
return null;
|
|
6566
6566
|
const H = (z) => {
|
|
@@ -6573,7 +6573,7 @@ function Aw({
|
|
|
6573
6573
|
value: u,
|
|
6574
6574
|
...ns(ie) && p && { value2: p }
|
|
6575
6575
|
});
|
|
6576
|
-
},
|
|
6576
|
+
}, K = (z, ie) => {
|
|
6577
6577
|
d(z ?? ""), ie !== void 0 && v(ie ?? "");
|
|
6578
6578
|
const oe = Array.isArray(z) && z.length === 0;
|
|
6579
6579
|
i(!oe && z !== "" && z !== null && z !== void 0 ? {
|
|
@@ -6690,7 +6690,7 @@ function Aw({
|
|
|
6690
6690
|
) : u ? [t.find((z) => z.value === u) || u] : [],
|
|
6691
6691
|
onChange: (z, ie) => {
|
|
6692
6692
|
const oe = ie.map((se) => typeof se == "string" ? se : se && typeof se == "object" && "value" in se ? se.value : se);
|
|
6693
|
-
|
|
6693
|
+
K(oe);
|
|
6694
6694
|
},
|
|
6695
6695
|
noOptionsText: "No matches found",
|
|
6696
6696
|
renderInput: (z) => /* @__PURE__ */ o(
|
|
@@ -6723,9 +6723,9 @@ function Aw({
|
|
|
6723
6723
|
label: "Search Text",
|
|
6724
6724
|
value: u,
|
|
6725
6725
|
onChange: (z) => d(z.target.value),
|
|
6726
|
-
onBlur: () =>
|
|
6726
|
+
onBlur: () => K(u),
|
|
6727
6727
|
onKeyDown: (z) => {
|
|
6728
|
-
z.key === "Enter" &&
|
|
6728
|
+
z.key === "Enter" && K(u);
|
|
6729
6729
|
},
|
|
6730
6730
|
placeholder: "Enter text to search...",
|
|
6731
6731
|
fullWidth: !0
|
|
@@ -6740,7 +6740,7 @@ function Aw({
|
|
|
6740
6740
|
label: "Value",
|
|
6741
6741
|
onChange: (z) => {
|
|
6742
6742
|
const ie = z.target.value;
|
|
6743
|
-
ie === "true" ?
|
|
6743
|
+
ie === "true" ? K(!0) : ie === "false" ? K(!1) : ne();
|
|
6744
6744
|
},
|
|
6745
6745
|
MenuProps: {
|
|
6746
6746
|
PaperProps: {
|
|
@@ -6777,7 +6777,7 @@ function Aw({
|
|
|
6777
6777
|
},
|
|
6778
6778
|
onChange: (z, ie) => {
|
|
6779
6779
|
const oe = ie.map((se) => typeof se == "string" ? se : se && typeof se == "object" && "value" in se ? se.value : se);
|
|
6780
|
-
|
|
6780
|
+
K(oe);
|
|
6781
6781
|
},
|
|
6782
6782
|
noOptionsText: w.trim().length <= 2 ? "Type at least 3 characters to search" : "No matches found",
|
|
6783
6783
|
renderInput: (z) => /* @__PURE__ */ o(
|
|
@@ -6827,7 +6827,7 @@ function Aw({
|
|
|
6827
6827
|
type: "number",
|
|
6828
6828
|
label: "Value",
|
|
6829
6829
|
value: u,
|
|
6830
|
-
onChange: (z) =>
|
|
6830
|
+
onChange: (z) => K(parseFloat(z.target.value) || ""),
|
|
6831
6831
|
onFocus: () => D(!0),
|
|
6832
6832
|
onBlur: () => D(!1),
|
|
6833
6833
|
placeholder: "Enter number...",
|
|
@@ -6848,7 +6848,7 @@ function Aw({
|
|
|
6848
6848
|
type: "number",
|
|
6849
6849
|
label: "From",
|
|
6850
6850
|
value: u,
|
|
6851
|
-
onChange: (z) =>
|
|
6851
|
+
onChange: (z) => K(
|
|
6852
6852
|
parseFloat(z.target.value) || "",
|
|
6853
6853
|
p
|
|
6854
6854
|
),
|
|
@@ -6870,7 +6870,7 @@ function Aw({
|
|
|
6870
6870
|
type: "number",
|
|
6871
6871
|
label: "To",
|
|
6872
6872
|
value: p,
|
|
6873
|
-
onChange: (z) =>
|
|
6873
|
+
onChange: (z) => K(
|
|
6874
6874
|
u,
|
|
6875
6875
|
parseFloat(z.target.value) || ""
|
|
6876
6876
|
),
|
|
@@ -6907,7 +6907,7 @@ function Aw({
|
|
|
6907
6907
|
label: "Date",
|
|
6908
6908
|
value: u instanceof Date ? xn.utc(u) : null,
|
|
6909
6909
|
onChange: (z) => {
|
|
6910
|
-
z === null ?
|
|
6910
|
+
z === null ? K(null) : z.isValid() && K(z.utc().toDate());
|
|
6911
6911
|
},
|
|
6912
6912
|
timezone: "UTC",
|
|
6913
6913
|
minDate: u instanceof Date ? void 0 : W,
|
|
@@ -6936,7 +6936,7 @@ function Aw({
|
|
|
6936
6936
|
label: "From",
|
|
6937
6937
|
value: u instanceof Date ? xn.utc(u) : null,
|
|
6938
6938
|
onChange: (z) => {
|
|
6939
|
-
z === null ?
|
|
6939
|
+
z === null ? K(null, p) : z.isValid() && K(
|
|
6940
6940
|
z.utc().toDate(),
|
|
6941
6941
|
p
|
|
6942
6942
|
);
|
|
@@ -6965,7 +6965,7 @@ function Aw({
|
|
|
6965
6965
|
label: "To",
|
|
6966
6966
|
value: p instanceof Date ? xn.utc(p) : null,
|
|
6967
6967
|
onChange: (z) => {
|
|
6968
|
-
z === null ?
|
|
6968
|
+
z === null ? K(u, null) : z.isValid() && K(
|
|
6969
6969
|
u,
|
|
6970
6970
|
z.utc().toDate()
|
|
6971
6971
|
);
|
|
@@ -7073,7 +7073,7 @@ function Nw(e) {
|
|
|
7073
7073
|
}
|
|
7074
7074
|
return null;
|
|
7075
7075
|
}
|
|
7076
|
-
function
|
|
7076
|
+
function Kg(e) {
|
|
7077
7077
|
if (e.startsWith("#(filter)")) {
|
|
7078
7078
|
const t = e.slice(9).trim();
|
|
7079
7079
|
try {
|
|
@@ -7152,7 +7152,7 @@ function Lw(e, t, n) {
|
|
|
7152
7152
|
if ("annotations" in u && u.annotations) {
|
|
7153
7153
|
for (const v of u.annotations)
|
|
7154
7154
|
if (v.value) {
|
|
7155
|
-
const g =
|
|
7155
|
+
const g = Kg(
|
|
7156
7156
|
v.value
|
|
7157
7157
|
);
|
|
7158
7158
|
g && (d = g.type);
|
|
@@ -7379,7 +7379,7 @@ function Jg({
|
|
|
7379
7379
|
};
|
|
7380
7380
|
return /* @__PURE__ */ k($e.Fragment, { children: [
|
|
7381
7381
|
/* @__PURE__ */ k(rn, { onClick: l, children: [
|
|
7382
|
-
/* @__PURE__ */ o(yn, { children: /* @__PURE__ */ o(
|
|
7382
|
+
/* @__PURE__ */ o(yn, { children: /* @__PURE__ */ o(Ks, { fontSize: "small" }) }),
|
|
7383
7383
|
/* @__PURE__ */ o(Qt, { children: "Edit" })
|
|
7384
7384
|
] }),
|
|
7385
7385
|
/* @__PURE__ */ o(
|
|
@@ -7596,7 +7596,7 @@ function qw({ onClickEnvironment: e }) {
|
|
|
7596
7596
|
}
|
|
7597
7597
|
),
|
|
7598
7598
|
n ? /* @__PURE__ */ o(Wl, {}) : /* @__PURE__ */ o(
|
|
7599
|
-
|
|
7599
|
+
Ye,
|
|
7600
7600
|
{
|
|
7601
7601
|
variant: "contained",
|
|
7602
7602
|
color: "primary",
|
|
@@ -7636,7 +7636,7 @@ function ny({
|
|
|
7636
7636
|
Oi,
|
|
7637
7637
|
{
|
|
7638
7638
|
icon: /* @__PURE__ */ o(Qg, { sx: { fontSize: 18 } }),
|
|
7639
|
-
tint:
|
|
7639
|
+
tint: Ys.environment,
|
|
7640
7640
|
label: e.name ?? "",
|
|
7641
7641
|
ariaLabel: e.name ?? "",
|
|
7642
7642
|
...a ? { description: a } : {},
|
|
@@ -7692,7 +7692,7 @@ function ny({
|
|
|
7692
7692
|
}
|
|
7693
7693
|
);
|
|
7694
7694
|
}
|
|
7695
|
-
var
|
|
7695
|
+
var Yn = {}, Kt = {}, Zr = {}, Kn = {}, rs = {}, ql;
|
|
7696
7696
|
function ry() {
|
|
7697
7697
|
return ql || (ql = 1, Object.defineProperty(rs, "__esModule", { value: !0 })), rs;
|
|
7698
7698
|
}
|
|
@@ -8273,14 +8273,14 @@ function ly() {
|
|
|
8273
8273
|
throw new c();
|
|
8274
8274
|
}
|
|
8275
8275
|
}
|
|
8276
|
-
let
|
|
8276
|
+
let K = null;
|
|
8277
8277
|
class ne extends H {
|
|
8278
8278
|
/**
|
|
8279
8279
|
* Get a singleton instance of the local zone
|
|
8280
8280
|
* @return {SystemZone}
|
|
8281
8281
|
*/
|
|
8282
8282
|
static get instance() {
|
|
8283
|
-
return
|
|
8283
|
+
return K === null && (K = new ne()), K;
|
|
8284
8284
|
}
|
|
8285
8285
|
/** @override **/
|
|
8286
8286
|
get type() {
|
|
@@ -8509,7 +8509,7 @@ function ly() {
|
|
|
8509
8509
|
return m || (m = new Intl.ListFormat(f, r), Se[h] = m), m;
|
|
8510
8510
|
}
|
|
8511
8511
|
const ee = /* @__PURE__ */ new Map();
|
|
8512
|
-
function
|
|
8512
|
+
function Y(f, r = {}) {
|
|
8513
8513
|
const h = JSON.stringify([f, r]);
|
|
8514
8514
|
let m = ee.get(h);
|
|
8515
8515
|
return m === void 0 && (m = new Intl.DateTimeFormat(f, r), ee.set(h, m)), m;
|
|
@@ -8559,10 +8559,10 @@ function ly() {
|
|
|
8559
8559
|
{
|
|
8560
8560
|
let m, b;
|
|
8561
8561
|
try {
|
|
8562
|
-
m =
|
|
8562
|
+
m = Y(f).resolvedOptions(), b = f;
|
|
8563
8563
|
} catch {
|
|
8564
8564
|
const L = f.substring(0, h);
|
|
8565
|
-
m =
|
|
8565
|
+
m = Y(L).resolvedOptions(), b = L;
|
|
8566
8566
|
}
|
|
8567
8567
|
const {
|
|
8568
8568
|
numberingSystem: E,
|
|
@@ -8640,7 +8640,7 @@ function ly() {
|
|
|
8640
8640
|
const E = {
|
|
8641
8641
|
...this.opts
|
|
8642
8642
|
};
|
|
8643
|
-
E.timeZone = E.timeZone || b, this.dtf =
|
|
8643
|
+
E.timeZone = E.timeZone || b, this.dtf = Y(h, E);
|
|
8644
8644
|
}
|
|
8645
8645
|
format() {
|
|
8646
8646
|
return this.originalZone ? this.formatToParts().map(({
|
|
@@ -8987,7 +8987,7 @@ function ly() {
|
|
|
8987
8987
|
return r;
|
|
8988
8988
|
if (f instanceof H)
|
|
8989
8989
|
return f;
|
|
8990
|
-
if (
|
|
8990
|
+
if (Yt(f)) {
|
|
8991
8991
|
const h = f.toLowerCase();
|
|
8992
8992
|
return h === "default" ? r : h === "local" || h === "system" ? ne.instance : h === "utc" || h === "gmt" ? Qe.utcInstance : Qe.parseSpecifier(h) || ue.create(f);
|
|
8993
8993
|
} else return Je(f) ? Qe.instance(f) : typeof f == "object" && "offset" in f && typeof f.offset == "function" ? f : new Et(f);
|
|
@@ -9341,7 +9341,7 @@ function ly() {
|
|
|
9341
9341
|
function rt(f) {
|
|
9342
9342
|
return typeof f == "number" && f % 1 === 0;
|
|
9343
9343
|
}
|
|
9344
|
-
function
|
|
9344
|
+
function Yt(f) {
|
|
9345
9345
|
return typeof f == "string";
|
|
9346
9346
|
}
|
|
9347
9347
|
function cr(f) {
|
|
@@ -9984,7 +9984,7 @@ function ly() {
|
|
|
9984
9984
|
const h = f[r] ? ue.create(f[r]) : null;
|
|
9985
9985
|
return [{}, h, r + 1];
|
|
9986
9986
|
}
|
|
9987
|
-
const
|
|
9987
|
+
const Yd = RegExp(`^T?${Pi.source}$`), Kd = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
9988
9988
|
function Zd(f) {
|
|
9989
9989
|
const [r, h, m, b, E, A, _, L, Q] = f, we = r[0] === "-", De = L && L[0] === "-", et = (Ce, kt = !1) => Ce !== void 0 && (kt || Ce && we) ? -Ce : Ce;
|
|
9990
9990
|
return [{
|
|
@@ -10048,11 +10048,11 @@ function ly() {
|
|
|
10048
10048
|
return fr(f, [th, Ra], [nh, Ra], [rh, oh]);
|
|
10049
10049
|
}
|
|
10050
10050
|
function ph(f) {
|
|
10051
|
-
return fr(f, [
|
|
10051
|
+
return fr(f, [Kd, Zd]);
|
|
10052
10052
|
}
|
|
10053
10053
|
const gh = hr(pr);
|
|
10054
10054
|
function yh(f) {
|
|
10055
|
-
return fr(f, [
|
|
10055
|
+
return fr(f, [Yd, gh]);
|
|
10056
10056
|
}
|
|
10057
10057
|
const vh = dr(jd, Bd), bh = dr($a), wh = hr(pr, zr, Wr);
|
|
10058
10058
|
function xh(f) {
|
|
@@ -11884,7 +11884,7 @@ function ly() {
|
|
|
11884
11884
|
const m = _t.create(r, f).dtFormatter(Lh()), b = m.formatToParts(), E = m.resolvedOptions();
|
|
11885
11885
|
return b.map((A) => Ah(A, f, E));
|
|
11886
11886
|
}
|
|
11887
|
-
const Vi = "Invalid DateTime",
|
|
11887
|
+
const Vi = "Invalid DateTime", Ya = 864e13;
|
|
11888
11888
|
function Vr(f) {
|
|
11889
11889
|
return new It("unsupported zone", `the zone "${f.name}" is not supported`);
|
|
11890
11890
|
}
|
|
@@ -11909,7 +11909,7 @@ function ly() {
|
|
|
11909
11909
|
old: h
|
|
11910
11910
|
});
|
|
11911
11911
|
}
|
|
11912
|
-
function
|
|
11912
|
+
function Ka(f, r, h) {
|
|
11913
11913
|
let m = f - r * 60 * 1e3;
|
|
11914
11914
|
const b = h.offset(m);
|
|
11915
11915
|
if (r === b)
|
|
@@ -11932,7 +11932,7 @@ function ly() {
|
|
|
11932
11932
|
};
|
|
11933
11933
|
}
|
|
11934
11934
|
function Bo(f, r, h) {
|
|
11935
|
-
return
|
|
11935
|
+
return Ka(Wo(f), r, h);
|
|
11936
11936
|
}
|
|
11937
11937
|
function Za(f, r) {
|
|
11938
11938
|
const h = f.o, m = f.c.year + Math.trunc(r.years), b = f.c.month + Math.trunc(r.months) + Math.trunc(r.quarters) * 3, E = {
|
|
@@ -11951,7 +11951,7 @@ function ly() {
|
|
|
11951
11951
|
seconds: r.seconds,
|
|
11952
11952
|
milliseconds: r.milliseconds
|
|
11953
11953
|
}).as("milliseconds"), _ = Wo(E);
|
|
11954
|
-
let [L, Q] =
|
|
11954
|
+
let [L, Q] = Ka(_, h, f.zone);
|
|
11955
11955
|
return A !== 0 && (L += A, Q = f.zone.offset(L)), {
|
|
11956
11956
|
ts: L,
|
|
11957
11957
|
o: Q
|
|
@@ -12029,8 +12029,8 @@ function ly() {
|
|
|
12029
12029
|
minute: 0,
|
|
12030
12030
|
second: 0,
|
|
12031
12031
|
millisecond: 0
|
|
12032
|
-
},
|
|
12033
|
-
function
|
|
12032
|
+
}, Yo = ["year", "month", "day", "hour", "minute", "second", "millisecond"], Vh = ["weekYear", "weekNumber", "weekday", "hour", "minute", "second", "millisecond"], Hh = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
|
12033
|
+
function Ko(f) {
|
|
12034
12034
|
const r = {
|
|
12035
12035
|
year: "year",
|
|
12036
12036
|
years: "year",
|
|
@@ -12072,7 +12072,7 @@ function ly() {
|
|
|
12072
12072
|
case "localweekyears":
|
|
12073
12073
|
return "localWeekYear";
|
|
12074
12074
|
default:
|
|
12075
|
-
return
|
|
12075
|
+
return Ko(f);
|
|
12076
12076
|
}
|
|
12077
12077
|
}
|
|
12078
12078
|
function Uh(f) {
|
|
@@ -12091,7 +12091,7 @@ function ly() {
|
|
|
12091
12091
|
if (J(f.year))
|
|
12092
12092
|
b = Ge.now();
|
|
12093
12093
|
else {
|
|
12094
|
-
for (const L of
|
|
12094
|
+
for (const L of Yo)
|
|
12095
12095
|
J(f[L]) && (f[L] = Xa[L]);
|
|
12096
12096
|
const A = le(f) || xe(f);
|
|
12097
12097
|
if (A)
|
|
@@ -12253,7 +12253,7 @@ function ly() {
|
|
|
12253
12253
|
*/
|
|
12254
12254
|
static fromMillis(r, h = {}) {
|
|
12255
12255
|
if (Je(r))
|
|
12256
|
-
return r < -
|
|
12256
|
+
return r < -Ya || r > Ya ? Te.invalid("Timestamp out of range") : new Te({
|
|
12257
12257
|
ts: r,
|
|
12258
12258
|
zone: Dt(h.zone, Ge.defaultZone),
|
|
12259
12259
|
loc: me.fromObject(h)
|
|
@@ -12328,7 +12328,7 @@ function ly() {
|
|
|
12328
12328
|
throw new s("Can't mix ordinal dates with month/day");
|
|
12329
12329
|
const un = kt || E.weekday && !Ce;
|
|
12330
12330
|
let pn, br, jr = jo(L, Q);
|
|
12331
|
-
un ? (pn = Vh, br = Wh, jr = ht(jr, A, _)) : we ? (pn = Hh, br = qh, jr = Vn(jr)) : (pn =
|
|
12331
|
+
un ? (pn = Vh, br = Wh, jr = ht(jr, A, _)) : we ? (pn = Hh, br = qh, jr = Vn(jr)) : (pn = Yo, br = Xa);
|
|
12332
12332
|
let rl = !1;
|
|
12333
12333
|
for (const Gr of pn) {
|
|
12334
12334
|
const Zh = E[Gr];
|
|
@@ -12337,10 +12337,10 @@ function ly() {
|
|
|
12337
12337
|
const Bh = un ? j(E, A, _) : we ? U(E) : le(E), ol = Bh || xe(E);
|
|
12338
12338
|
if (ol)
|
|
12339
12339
|
return Te.invalid(ol);
|
|
12340
|
-
const Gh = un ? ln(E, A, _) : we ? $n(E) : E, [
|
|
12341
|
-
ts:
|
|
12340
|
+
const Gh = un ? ln(E, A, _) : we ? $n(E) : E, [Yh, Kh] = Bo(Gh, Q, m), Br = new Te({
|
|
12341
|
+
ts: Yh,
|
|
12342
12342
|
zone: m,
|
|
12343
|
-
o:
|
|
12343
|
+
o: Kh,
|
|
12344
12344
|
loc: b
|
|
12345
12345
|
});
|
|
12346
12346
|
return E.weekday && Ce && r.weekday !== Br.weekday ? Te.invalid("mismatched weekday", `you can't specify both a weekday of ${E.weekday} and a date of ${Br.toISO()}`) : Br.isValid ? Br : Te.invalid(Br.invalid);
|
|
@@ -13193,10 +13193,10 @@ function ly() {
|
|
|
13193
13193
|
} = {}) {
|
|
13194
13194
|
if (!this.isValid)
|
|
13195
13195
|
return null;
|
|
13196
|
-
A =
|
|
13196
|
+
A = Ko(A);
|
|
13197
13197
|
const _ = r === "extended";
|
|
13198
13198
|
let L = ji(this, _, A);
|
|
13199
|
-
return
|
|
13199
|
+
return Yo.indexOf(A) >= 3 && (L += "T"), L += Qa(this, _, h, m, b, E, A), L;
|
|
13200
13200
|
}
|
|
13201
13201
|
/**
|
|
13202
13202
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
@@ -13212,7 +13212,7 @@ function ly() {
|
|
|
13212
13212
|
format: r = "extended",
|
|
13213
13213
|
precision: h = "day"
|
|
13214
13214
|
} = {}) {
|
|
13215
|
-
return this.isValid ? ji(this, r === "extended",
|
|
13215
|
+
return this.isValid ? ji(this, r === "extended", Ko(h)) : null;
|
|
13216
13216
|
}
|
|
13217
13217
|
/**
|
|
13218
13218
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
@@ -13248,7 +13248,7 @@ function ly() {
|
|
|
13248
13248
|
format: A = "extended",
|
|
13249
13249
|
precision: _ = "milliseconds"
|
|
13250
13250
|
} = {}) {
|
|
13251
|
-
return this.isValid ? (_ =
|
|
13251
|
+
return this.isValid ? (_ = Ko(_), (b && Yo.indexOf(_) >= 3 ? "T" : "") + Qa(this, A === "extended", h, r, m, E, _)) : null;
|
|
13252
13252
|
}
|
|
13253
13253
|
/**
|
|
13254
13254
|
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
@@ -13785,9 +13785,9 @@ function ly() {
|
|
|
13785
13785
|
const jh = "3.7.2";
|
|
13786
13786
|
return Ut.DateTime = Te, Ut.Duration = qe, Ut.FixedOffsetZone = Qe, Ut.IANAZone = ue, Ut.Info = qr, Ut.Interval = ft, Ut.InvalidZone = Et, Ut.Settings = Ge, Ut.SystemZone = ne, Ut.VERSION = jh, Ut.Zone = H, Ut;
|
|
13787
13787
|
}
|
|
13788
|
-
var
|
|
13788
|
+
var Yl;
|
|
13789
13789
|
function Xs() {
|
|
13790
|
-
return
|
|
13790
|
+
return Yl || (Yl = 1, (function(e) {
|
|
13791
13791
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CronDate = e.DAYS_IN_MONTH = e.DateMathOp = e.TimeUnit = void 0;
|
|
13792
13792
|
const t = /* @__PURE__ */ ly();
|
|
13793
13793
|
var n;
|
|
@@ -14251,10 +14251,10 @@ function Xs() {
|
|
|
14251
14251
|
e.CronDate = s, e.default = s;
|
|
14252
14252
|
})(os)), os;
|
|
14253
14253
|
}
|
|
14254
|
-
var
|
|
14254
|
+
var Kl;
|
|
14255
14255
|
function cy() {
|
|
14256
|
-
if (
|
|
14257
|
-
|
|
14256
|
+
if (Kl) return no;
|
|
14257
|
+
Kl = 1, Object.defineProperty(no, "__esModule", { value: !0 }), no.CronMonth = void 0;
|
|
14258
14258
|
const e = Xs(), t = or(), n = 1, i = 12, s = Object.freeze([]);
|
|
14259
14259
|
let l = class extends t.CronField {
|
|
14260
14260
|
static get min() {
|
|
@@ -14323,7 +14323,7 @@ function uy() {
|
|
|
14323
14323
|
var Ql;
|
|
14324
14324
|
function Js() {
|
|
14325
14325
|
return Ql || (Ql = 1, (function(e) {
|
|
14326
|
-
var t =
|
|
14326
|
+
var t = Kn && Kn.__createBinding || (Object.create ? (function(i, s, l, a) {
|
|
14327
14327
|
a === void 0 && (a = l);
|
|
14328
14328
|
var c = Object.getOwnPropertyDescriptor(s, l);
|
|
14329
14329
|
(!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
|
|
@@ -14331,11 +14331,11 @@ function Js() {
|
|
|
14331
14331
|
} }), Object.defineProperty(i, a, c);
|
|
14332
14332
|
}) : (function(i, s, l, a) {
|
|
14333
14333
|
a === void 0 && (a = l), i[a] = s[l];
|
|
14334
|
-
})), n =
|
|
14334
|
+
})), n = Kn && Kn.__exportStar || function(i, s) {
|
|
14335
14335
|
for (var l in i) l !== "default" && !Object.prototype.hasOwnProperty.call(s, l) && t(s, i, l);
|
|
14336
14336
|
};
|
|
14337
14337
|
Object.defineProperty(e, "__esModule", { value: !0 }), n(ry(), e), n(oy(), e), n(iy(), e), n(or(), e), n(sy(), e), n(ay(), e), n(cy(), e), n(uy(), e);
|
|
14338
|
-
})(
|
|
14338
|
+
})(Kn)), Kn;
|
|
14339
14339
|
}
|
|
14340
14340
|
var Xl;
|
|
14341
14341
|
function Cu() {
|
|
@@ -15022,25 +15022,25 @@ function dy() {
|
|
|
15022
15022
|
}
|
|
15023
15023
|
var tc;
|
|
15024
15024
|
function Es() {
|
|
15025
|
-
if (tc) return
|
|
15026
|
-
tc = 1, Object.defineProperty(
|
|
15025
|
+
if (tc) return Kt;
|
|
15026
|
+
tc = 1, Object.defineProperty(Kt, "__esModule", { value: !0 }), Kt.CronExpressionParser = Kt.DayOfWeek = Kt.Months = Kt.CronUnit = Kt.PredefinedExpressions = void 0;
|
|
15027
15027
|
const e = Cu(), t = Tu(), n = dy(), i = Js();
|
|
15028
15028
|
var s;
|
|
15029
15029
|
(function(d) {
|
|
15030
15030
|
d["@yearly"] = "0 0 0 1 1 *", d["@annually"] = "0 0 0 1 1 *", d["@monthly"] = "0 0 0 1 * *", d["@weekly"] = "0 0 0 * * 0", d["@daily"] = "0 0 0 * * *", d["@hourly"] = "0 0 * * * *", d["@minutely"] = "0 * * * * *", d["@secondly"] = "* * * * * *", d["@weekdays"] = "0 0 0 * * 1-5", d["@weekends"] = "0 0 0 * * 0,6";
|
|
15031
|
-
})(s || (
|
|
15031
|
+
})(s || (Kt.PredefinedExpressions = s = {}));
|
|
15032
15032
|
var l;
|
|
15033
15033
|
(function(d) {
|
|
15034
15034
|
d.Second = "Second", d.Minute = "Minute", d.Hour = "Hour", d.DayOfMonth = "DayOfMonth", d.Month = "Month", d.DayOfWeek = "DayOfWeek";
|
|
15035
|
-
})(l || (
|
|
15035
|
+
})(l || (Kt.CronUnit = l = {}));
|
|
15036
15036
|
var a;
|
|
15037
15037
|
(function(d) {
|
|
15038
15038
|
d[d.jan = 1] = "jan", d[d.feb = 2] = "feb", d[d.mar = 3] = "mar", d[d.apr = 4] = "apr", d[d.may = 5] = "may", d[d.jun = 6] = "jun", d[d.jul = 7] = "jul", d[d.aug = 8] = "aug", d[d.sep = 9] = "sep", d[d.oct = 10] = "oct", d[d.nov = 11] = "nov", d[d.dec = 12] = "dec";
|
|
15039
|
-
})(a || (
|
|
15039
|
+
})(a || (Kt.Months = a = {}));
|
|
15040
15040
|
var c;
|
|
15041
15041
|
(function(d) {
|
|
15042
15042
|
d[d.sun = 0] = "sun", d[d.mon = 1] = "mon", d[d.tue = 2] = "tue", d[d.wed = 3] = "wed", d[d.thu = 4] = "thu", d[d.fri = 5] = "fri", d[d.sat = 6] = "sat";
|
|
15043
|
-
})(c || (
|
|
15043
|
+
})(c || (Kt.DayOfWeek = c = {}));
|
|
15044
15044
|
let u = class Zt {
|
|
15045
15045
|
/**
|
|
15046
15046
|
* Parses a cron expression and returns a CronExpression object.
|
|
@@ -15280,13 +15280,13 @@ function Es() {
|
|
|
15280
15280
|
return p.chars.some((g) => v.toString().includes(g));
|
|
15281
15281
|
}
|
|
15282
15282
|
};
|
|
15283
|
-
return
|
|
15283
|
+
return Kt.CronExpressionParser = u, Kt;
|
|
15284
15284
|
}
|
|
15285
15285
|
var dn = {};
|
|
15286
15286
|
const hy = {}, fy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15287
15287
|
__proto__: null,
|
|
15288
15288
|
default: hy
|
|
15289
|
-
}, Symbol.toStringTag, { value: "Module" })), nc = /* @__PURE__ */
|
|
15289
|
+
}, Symbol.toStringTag, { value: "Module" })), nc = /* @__PURE__ */ Yf(fy);
|
|
15290
15290
|
var rc;
|
|
15291
15291
|
function my() {
|
|
15292
15292
|
if (rc) return dn;
|
|
@@ -15388,7 +15388,7 @@ function my() {
|
|
|
15388
15388
|
var oc;
|
|
15389
15389
|
function py() {
|
|
15390
15390
|
return oc || (oc = 1, (function(e) {
|
|
15391
|
-
var t =
|
|
15391
|
+
var t = Yn && Yn.__createBinding || (Object.create ? (function(d, p, v, g) {
|
|
15392
15392
|
g === void 0 && (g = v);
|
|
15393
15393
|
var y = Object.getOwnPropertyDescriptor(p, v);
|
|
15394
15394
|
(!y || ("get" in y ? !p.__esModule : y.writable || y.configurable)) && (y = { enumerable: !0, get: function() {
|
|
@@ -15396,7 +15396,7 @@ function py() {
|
|
|
15396
15396
|
} }), Object.defineProperty(d, g, y);
|
|
15397
15397
|
}) : (function(d, p, v, g) {
|
|
15398
15398
|
g === void 0 && (g = v), d[g] = p[v];
|
|
15399
|
-
})), n =
|
|
15399
|
+
})), n = Yn && Yn.__exportStar || function(d, p) {
|
|
15400
15400
|
for (var v in d) v !== "default" && !Object.prototype.hasOwnProperty.call(p, v) && t(p, d, v);
|
|
15401
15401
|
};
|
|
15402
15402
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CronFileParser = e.CronExpressionParser = e.CronExpression = e.CronFieldCollection = e.CronDate = void 0;
|
|
@@ -15421,7 +15421,7 @@ function py() {
|
|
|
15421
15421
|
Object.defineProperty(e, "CronFileParser", { enumerable: !0, get: function() {
|
|
15422
15422
|
return u.CronFileParser;
|
|
15423
15423
|
} }), n(Js(), e), e.default = i.CronExpressionParser;
|
|
15424
|
-
})(
|
|
15424
|
+
})(Yn)), Yn;
|
|
15425
15425
|
}
|
|
15426
15426
|
var gy = py(), ss = { exports: {} }, ic;
|
|
15427
15427
|
function yy() {
|
|
@@ -16091,7 +16091,7 @@ function yy() {
|
|
|
16091
16091
|
})(ss)), ss.exports;
|
|
16092
16092
|
}
|
|
16093
16093
|
var vy = yy();
|
|
16094
|
-
const by = /* @__PURE__ */
|
|
16094
|
+
const by = /* @__PURE__ */ Kf(vy), wy = /* @__PURE__ */ new Set([
|
|
16095
16095
|
"JAN",
|
|
16096
16096
|
"FEB",
|
|
16097
16097
|
"MAR",
|
|
@@ -16192,9 +16192,9 @@ function Sy({
|
|
|
16192
16192
|
title: "New materialization",
|
|
16193
16193
|
description: "Compile the package, build a table for every persist source, and load them so queries serve from the tables.",
|
|
16194
16194
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
16195
|
-
/* @__PURE__ */ o(
|
|
16195
|
+
/* @__PURE__ */ o(Ye, { onClick: u, children: "Cancel" }),
|
|
16196
16196
|
/* @__PURE__ */ o(
|
|
16197
|
-
|
|
16197
|
+
Ye,
|
|
16198
16198
|
{
|
|
16199
16199
|
variant: "contained",
|
|
16200
16200
|
loading: t,
|
|
@@ -16980,7 +16980,7 @@ function zy({
|
|
|
16980
16980
|
description: "The publisher rebuilds this package's materializations on this cadence: a 5-field UNIX cron, in UTC. In a hosted deployment the change takes effect on your next publish.",
|
|
16981
16981
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
16982
16982
|
e && /* @__PURE__ */ o(
|
|
16983
|
-
|
|
16983
|
+
Ye,
|
|
16984
16984
|
{
|
|
16985
16985
|
color: "error",
|
|
16986
16986
|
loading: t,
|
|
@@ -16989,9 +16989,9 @@ function zy({
|
|
|
16989
16989
|
children: "Clear schedule"
|
|
16990
16990
|
}
|
|
16991
16991
|
),
|
|
16992
|
-
/* @__PURE__ */ o(
|
|
16992
|
+
/* @__PURE__ */ o(Ye, { onClick: p, children: "Cancel" }),
|
|
16993
16993
|
/* @__PURE__ */ o(
|
|
16994
|
-
|
|
16994
|
+
Ye,
|
|
16995
16995
|
{
|
|
16996
16996
|
variant: "contained",
|
|
16997
16997
|
loading: t,
|
|
@@ -17065,9 +17065,9 @@ function qy({
|
|
|
17065
17065
|
c,
|
|
17066
17066
|
{ signal: H }
|
|
17067
17067
|
)).data };
|
|
17068
|
-
} catch (
|
|
17069
|
-
if (
|
|
17070
|
-
throw
|
|
17068
|
+
} catch (K) {
|
|
17069
|
+
if (K?.response?.status === 404) return { inline: !0, plan: null };
|
|
17070
|
+
throw K;
|
|
17071
17071
|
}
|
|
17072
17072
|
},
|
|
17073
17073
|
enabled: p !== null
|
|
@@ -17140,9 +17140,9 @@ function qy({
|
|
|
17140
17140
|
materialization: { schedule: H }
|
|
17141
17141
|
})
|
|
17142
17142
|
),
|
|
17143
|
-
onSuccess(H,
|
|
17143
|
+
onSuccess(H, K) {
|
|
17144
17144
|
d(
|
|
17145
|
-
|
|
17145
|
+
K ? "Schedule updated" : "Schedule cleared"
|
|
17146
17146
|
), s.invalidateQueries({
|
|
17147
17147
|
queryKey: ["package", l, a]
|
|
17148
17148
|
});
|
|
@@ -17334,7 +17334,7 @@ function _u(e, t) {
|
|
|
17334
17334
|
return (e ?? []).some((i) => n.test(i.value?.trim() ?? ""));
|
|
17335
17335
|
}
|
|
17336
17336
|
function ra(e) {
|
|
17337
|
-
const t =
|
|
17337
|
+
const t = Yy(e);
|
|
17338
17338
|
if (!e || !t) return t;
|
|
17339
17339
|
switch (e.kind) {
|
|
17340
17340
|
case "number_type":
|
|
@@ -17368,7 +17368,7 @@ function Gy(e) {
|
|
|
17368
17368
|
(e ?? []).filter((n) => !t.includes(n))
|
|
17369
17369
|
);
|
|
17370
17370
|
}
|
|
17371
|
-
function
|
|
17371
|
+
function Yy(e) {
|
|
17372
17372
|
return e?.kind?.replace(/_type$/, "");
|
|
17373
17373
|
}
|
|
17374
17374
|
const Jn = Io(
|
|
@@ -17461,7 +17461,7 @@ const Nu = "--model-viewer-mono", on = `var(${Nu}, ${Mt})`, Fu = "inherit", jt =
|
|
|
17461
17461
|
warning: Xo(Nt.amber),
|
|
17462
17462
|
error: Xo(Nt.red),
|
|
17463
17463
|
info: Xo(Nt.blue)
|
|
17464
|
-
}, Ii = gt.text.tertiary,
|
|
17464
|
+
}, Ii = gt.text.tertiary, Ky = {
|
|
17465
17465
|
positive: { bg: gt.accent.sage.tint, fg: gt.accent.sage.onTint },
|
|
17466
17466
|
neutral: { bg: gt.background.strong, fg: gt.text.secondary },
|
|
17467
17467
|
warning: { bg: gt.warning.tint, fg: gt.warning.onTint },
|
|
@@ -17482,7 +17482,7 @@ const Nu = "--model-viewer-mono", on = `var(${Nu}, ${Mt})`, Fu = "inherit", jt =
|
|
|
17482
17482
|
sx: a,
|
|
17483
17483
|
...c
|
|
17484
17484
|
}, u) {
|
|
17485
|
-
const { bg: d, fg: p } =
|
|
17485
|
+
const { bg: d, fg: p } = Ky[t], v = jt.micro;
|
|
17486
17486
|
return /* @__PURE__ */ k(
|
|
17487
17487
|
ot,
|
|
17488
17488
|
{
|
|
@@ -18338,7 +18338,7 @@ function mc({
|
|
|
18338
18338
|
testId: n = "model-viewer-source-doc"
|
|
18339
18339
|
}) {
|
|
18340
18340
|
const [i, s] = G(!1), [l, a] = G(!1), c = lt(null);
|
|
18341
|
-
return
|
|
18341
|
+
return Ke(() => {
|
|
18342
18342
|
const u = c.current;
|
|
18343
18343
|
if (!u || i) return;
|
|
18344
18344
|
const d = () => a(u.scrollHeight > u.clientHeight + 1);
|
|
@@ -18444,7 +18444,7 @@ const Gu = { small: 13, caption: 12 }, Lv = {
|
|
|
18444
18444
|
fontSize: Gu.small,
|
|
18445
18445
|
fontWeight: 500,
|
|
18446
18446
|
color: di
|
|
18447
|
-
},
|
|
18447
|
+
}, Yu = {
|
|
18448
18448
|
fontSize: Gu.caption,
|
|
18449
18449
|
color: "text.secondary"
|
|
18450
18450
|
};
|
|
@@ -18507,7 +18507,7 @@ function Dr({
|
|
|
18507
18507
|
N,
|
|
18508
18508
|
{
|
|
18509
18509
|
sx: {
|
|
18510
|
-
...
|
|
18510
|
+
...Yu,
|
|
18511
18511
|
mt: 0.25,
|
|
18512
18512
|
display: "flex",
|
|
18513
18513
|
alignItems: "center"
|
|
@@ -18528,7 +18528,7 @@ function yc(e, t) {
|
|
|
18528
18528
|
return `${e.label ?? e.name}: ${Xf(e, t)}`;
|
|
18529
18529
|
}
|
|
18530
18530
|
const Jo = (e) => e.label ?? e.name;
|
|
18531
|
-
function
|
|
18531
|
+
function Ku(e, t, n = void 0, i = void 0, s = !1, l = "source") {
|
|
18532
18532
|
const a = e ?? [], c = (O) => n?.[O.name] !== void 0, u = (O) => i?.has(O.name) === !0, d = a.filter((O) => !c(O) && O.default === void 0), p = t ?? [], v = p.length === 0 && d.length > 0 && d.every((O) => u(O)), g = s && v ? d : [];
|
|
18533
18533
|
if (g.length === 0 && (d.length > 0 || p.length > 0)) {
|
|
18534
18534
|
const O = d.length > 0 ? `a value for ${d.length === 1 ? "the given" : "the givens"} ${d.map(Jo).join(", ")}` : "", M = p.length > 0 ? `${p.length === 1 ? "the required filter" : "the required filters"} ${p.join(", ")}` : "", R = d.filter(u), P = R.length === 0 ? "" : R.length === d.length ? ` This page can't tell whether this ${l} reads ${d.length === 1 ? "it" : "them"}.` : ` This page can't tell whether this ${l} reads ${yo(R.map(Jo), "or")}.`;
|
|
@@ -18645,9 +18645,9 @@ const Vv = Ee(/* @__PURE__ */ o("path", {
|
|
|
18645
18645
|
d: "M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"
|
|
18646
18646
|
})), Gv = Ee(/* @__PURE__ */ o("path", {
|
|
18647
18647
|
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"
|
|
18648
|
-
})), Kv = Ee(/* @__PURE__ */ o("path", {
|
|
18649
|
-
d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
|
|
18650
18648
|
})), Yv = Ee(/* @__PURE__ */ o("path", {
|
|
18649
|
+
d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
|
|
18650
|
+
})), Kv = Ee(/* @__PURE__ */ o("path", {
|
|
18651
18651
|
d: "M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"
|
|
18652
18652
|
})), Zv = Ee(/* @__PURE__ */ o("path", {
|
|
18653
18653
|
d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
|
|
@@ -18680,7 +18680,7 @@ function wt(e, t) {
|
|
|
18680
18680
|
const n = ({ size: i, ...s }) => /* @__PURE__ */ o(e, { ...s, sx: { fontSize: i } });
|
|
18681
18681
|
return n.displayName = t, n;
|
|
18682
18682
|
}
|
|
18683
|
-
const rb = wt(Vv, "IconText"), vc = wt(Hv, "IconOpen"), td = wt(Uv, "IconResult"), ob = wt(jv, "IconCalculation"), ib = wt(Zu, "IconDate"), sb = wt(Bv, "IconJoin"), ab = wt(Gv, "IconCode"), lb = wt(
|
|
18683
|
+
const rb = wt(Vv, "IconText"), vc = wt(Hv, "IconOpen"), td = wt(Uv, "IconResult"), ob = wt(jv, "IconCalculation"), ib = wt(Zu, "IconDate"), sb = wt(Bv, "IconJoin"), ab = wt(Gv, "IconCode"), lb = wt(Yv, "IconList"), cb = wt(Kv, "IconRecord"), ub = wt(Zv, "IconCollapse"), db = wt(tm, "IconExpand"), hb = wt(Qv, "IconFields"), fb = wt(Qu, "IconDropdown"), mb = wt(Xv, "IconLock"), nd = wt(Jv, "IconNumber"), pb = wt(Xu, "IconTimestamp"), gb = wt(eb, "IconValues"), yb = wt(Ju, "IconBoolean"), vb = wt(tb, "IconGivens"), rd = wt(ed, "IconColumn");
|
|
18684
18684
|
wt(nb, "IconWarning");
|
|
18685
18685
|
const Eo = bi(void 0);
|
|
18686
18686
|
function la() {
|
|
@@ -18774,7 +18774,7 @@ function xb() {
|
|
|
18774
18774
|
}
|
|
18775
18775
|
function id(e, t = !0) {
|
|
18776
18776
|
const [n, i] = G(od), [s, l] = G(!1), a = !!e && t;
|
|
18777
|
-
return
|
|
18777
|
+
return Ke(() => {
|
|
18778
18778
|
if (!a || n) return;
|
|
18779
18779
|
let u = !0;
|
|
18780
18780
|
return xb().then(
|
|
@@ -19049,7 +19049,7 @@ function Nb({
|
|
|
19049
19049
|
fetchSamples: s,
|
|
19050
19050
|
generation: l
|
|
19051
19051
|
}) {
|
|
19052
|
-
const { server: a, apiClients: c } = ze(), u = i?.kind === "dimension" && i.indexed === !0, d = ha(e, n), p = u && !s ?
|
|
19052
|
+
const { server: a, apiClients: c } = ze(), u = i?.kind === "dimension" && i.indexed === !0, d = ha(e, n), p = u && !s ? Ku(
|
|
19053
19053
|
d,
|
|
19054
19054
|
e.requiredFiltersBySource?.get(n),
|
|
19055
19055
|
e.givenValues
|
|
@@ -19851,7 +19851,7 @@ function Do({
|
|
|
19851
19851
|
framed: n = !0
|
|
19852
19852
|
}) {
|
|
19853
19853
|
const { mode: i } = En(), [s, l] = G(void 0);
|
|
19854
|
-
return
|
|
19854
|
+
return Ke(() => {
|
|
19855
19855
|
let a = !0;
|
|
19856
19856
|
return fa(e, "malloy", i).then((c) => a && l(c)).catch(() => a && l(void 0)), () => {
|
|
19857
19857
|
a = !1;
|
|
@@ -19887,7 +19887,7 @@ function _i({
|
|
|
19887
19887
|
yt,
|
|
19888
19888
|
{
|
|
19889
19889
|
severity: n,
|
|
19890
|
-
action: t && /* @__PURE__ */ o(
|
|
19890
|
+
action: t && /* @__PURE__ */ o(Ye, { color: "inherit", size: "small", onClick: t, children: "Retry" }),
|
|
19891
19891
|
children: e
|
|
19892
19892
|
}
|
|
19893
19893
|
);
|
|
@@ -19933,7 +19933,7 @@ function Ub({
|
|
|
19933
19933
|
const wc = Io(
|
|
19934
19934
|
function(t, n) {
|
|
19935
19935
|
return /* @__PURE__ */ o(
|
|
19936
|
-
|
|
19936
|
+
Ye,
|
|
19937
19937
|
{
|
|
19938
19938
|
ref: n,
|
|
19939
19939
|
variant: "contained",
|
|
@@ -19947,7 +19947,7 @@ const wc = Io(
|
|
|
19947
19947
|
), jb = Io(
|
|
19948
19948
|
function(t, n) {
|
|
19949
19949
|
return /* @__PURE__ */ o(
|
|
19950
|
-
|
|
19950
|
+
Ye,
|
|
19951
19951
|
{
|
|
19952
19952
|
ref: n,
|
|
19953
19953
|
variant: "outlined",
|
|
@@ -20241,7 +20241,7 @@ function ma({
|
|
|
20241
20241
|
)
|
|
20242
20242
|
}
|
|
20243
20243
|
)
|
|
20244
|
-
) : /* @__PURE__ */ o(N, { component: "span", sx:
|
|
20244
|
+
) : /* @__PURE__ */ o(N, { component: "span", sx: Yu, children: n })),
|
|
20245
20245
|
a
|
|
20246
20246
|
]
|
|
20247
20247
|
}
|
|
@@ -20359,8 +20359,8 @@ function ma({
|
|
|
20359
20359
|
}
|
|
20360
20360
|
);
|
|
20361
20361
|
}
|
|
20362
|
-
const
|
|
20363
|
-
function
|
|
20362
|
+
const Yb = 480;
|
|
20363
|
+
function Kb({
|
|
20364
20364
|
run: e,
|
|
20365
20365
|
modelPath: t,
|
|
20366
20366
|
query: n,
|
|
@@ -20376,7 +20376,7 @@ function Yb({
|
|
|
20376
20376
|
);
|
|
20377
20377
|
a === "result" && p === null && v(d);
|
|
20378
20378
|
const g = p !== null && p !== d, y = i ? e.requiredFiltersBySource?.get(i) : void 0, [x, S] = G(null), w = x === d, C = de(
|
|
20379
|
-
() =>
|
|
20379
|
+
() => Ku(
|
|
20380
20380
|
s ?? ha(e, i),
|
|
20381
20381
|
y,
|
|
20382
20382
|
e.givenValues,
|
|
@@ -20398,14 +20398,14 @@ function Yb({
|
|
|
20398
20398
|
() => Cv(I, W),
|
|
20399
20399
|
[I, W]
|
|
20400
20400
|
), te = $?.givensKey ?? "";
|
|
20401
|
-
|
|
20401
|
+
Ke(() => {
|
|
20402
20402
|
if (u) {
|
|
20403
20403
|
if (W === void 0) return u(void 0);
|
|
20404
20404
|
u({ result: W, givensKey: te });
|
|
20405
20405
|
}
|
|
20406
20406
|
}, [u, W, te]);
|
|
20407
20407
|
const X = a === "result" && C.kind !== "blocked";
|
|
20408
|
-
return
|
|
20408
|
+
return Ke(() => {
|
|
20409
20409
|
X && rm();
|
|
20410
20410
|
}, [X]), /* @__PURE__ */ o(N, { "data-testid": "model-viewer-run-result", "data-mode": a, children: a === "code" ? c?.() : C.kind === "blocked" ? (
|
|
20411
20411
|
// Refused, not failed: a bare 400 would say nothing about the
|
|
@@ -20506,7 +20506,7 @@ function Yb({
|
|
|
20506
20506
|
Bs,
|
|
20507
20507
|
{
|
|
20508
20508
|
result: W,
|
|
20509
|
-
maxHeight:
|
|
20509
|
+
maxHeight: Yb,
|
|
20510
20510
|
maxResultSize: e.maxResultSize
|
|
20511
20511
|
}
|
|
20512
20512
|
)),
|
|
@@ -20754,7 +20754,7 @@ function md({
|
|
|
20754
20754
|
"data-testid": "model-viewer-view-card",
|
|
20755
20755
|
sx: { mx: "10px", mt: 1, minWidth: 0 },
|
|
20756
20756
|
children: /* @__PURE__ */ o(N, { sx: { minWidth: 0, overflowX: "auto" }, children: p ? /* @__PURE__ */ o(
|
|
20757
|
-
|
|
20757
|
+
Kb,
|
|
20758
20758
|
{
|
|
20759
20759
|
run: p,
|
|
20760
20760
|
modelPath: t,
|
|
@@ -20926,7 +20926,7 @@ function vo({
|
|
|
20926
20926
|
T.name
|
|
20927
20927
|
)),
|
|
20928
20928
|
C.length < w.length && /* @__PURE__ */ k(
|
|
20929
|
-
|
|
20929
|
+
Ye,
|
|
20930
20930
|
{
|
|
20931
20931
|
size: "small",
|
|
20932
20932
|
onClick: () => v(!0),
|
|
@@ -21917,7 +21917,7 @@ function j0({
|
|
|
21917
21917
|
modelDoc: te,
|
|
21918
21918
|
hasImports: X,
|
|
21919
21919
|
isLoading: H,
|
|
21920
|
-
isError:
|
|
21920
|
+
isError: K,
|
|
21921
21921
|
error: ne,
|
|
21922
21922
|
refetch: z
|
|
21923
21923
|
} = V0(
|
|
@@ -21950,13 +21950,13 @@ function j0({
|
|
|
21950
21950
|
),
|
|
21951
21951
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- `hostParams` by value
|
|
21952
21952
|
[Re, Se]
|
|
21953
|
-
),
|
|
21953
|
+
), Y = !H && !K, fe = He(
|
|
21954
21954
|
(Oe) => c?.(Oe, Array.from(Se.keys())),
|
|
21955
21955
|
[c, Se]
|
|
21956
21956
|
), ke = sm({
|
|
21957
21957
|
declaredTypes: Se,
|
|
21958
21958
|
params: ee,
|
|
21959
|
-
onParamsChange:
|
|
21959
|
+
onParamsChange: Y && c ? fe : void 0,
|
|
21960
21960
|
documentKey: `${R}/${P}@${q ?? ""}/${I}`,
|
|
21961
21961
|
autorun: !0
|
|
21962
21962
|
}), ve = de(
|
|
@@ -22098,7 +22098,7 @@ function j0({
|
|
|
22098
22098
|
[ut, Z, ge, I]
|
|
22099
22099
|
), Ht = (() => {
|
|
22100
22100
|
if (H) return /* @__PURE__ */ o(Lt, { text: "Fetching Model..." });
|
|
22101
|
-
if (
|
|
22101
|
+
if (K)
|
|
22102
22102
|
return _v(ne) ? /* @__PURE__ */ o(N, { sx: { pt: Rs }, children: /* @__PURE__ */ o(
|
|
22103
22103
|
go,
|
|
22104
22104
|
{
|
|
@@ -22377,7 +22377,7 @@ function G0({
|
|
|
22377
22377
|
{ environmentName: g, packageName: v, modelPath: x, versionId: y, queryName: e },
|
|
22378
22378
|
{ enabled: S }
|
|
22379
22379
|
), C = w.data, { mode: T } = En();
|
|
22380
|
-
return
|
|
22380
|
+
return Ke(() => {
|
|
22381
22381
|
if (t && t.length > 0) {
|
|
22382
22382
|
const O = t.map((M) => `// ${M}`).join(`
|
|
22383
22383
|
`);
|
|
@@ -22465,7 +22465,7 @@ function G0({
|
|
|
22465
22465
|
children: [
|
|
22466
22466
|
/* @__PURE__ */ o(re, { variant: "body2", color: "text.secondary", children: "Click Run to execute the query" }),
|
|
22467
22467
|
/* @__PURE__ */ o(
|
|
22468
|
-
|
|
22468
|
+
Ye,
|
|
22469
22469
|
{
|
|
22470
22470
|
variant: "contained",
|
|
22471
22471
|
startIcon: /* @__PURE__ */ o(B0, {}),
|
|
@@ -22500,13 +22500,13 @@ function G0({
|
|
|
22500
22500
|
)
|
|
22501
22501
|
] });
|
|
22502
22502
|
}
|
|
22503
|
-
function
|
|
22503
|
+
function Y0(e) {
|
|
22504
22504
|
return e != null;
|
|
22505
22505
|
}
|
|
22506
|
-
function
|
|
22506
|
+
function K0(e, t) {
|
|
22507
22507
|
const n = [], i = [];
|
|
22508
22508
|
for (const l of e) {
|
|
22509
|
-
if (l.name === void 0 ||
|
|
22509
|
+
if (l.name === void 0 || Y0(t.get(l.name))) continue;
|
|
22510
22510
|
if (l.default == null) {
|
|
22511
22511
|
n.push(l.name);
|
|
22512
22512
|
continue;
|
|
@@ -22755,7 +22755,7 @@ function X0({
|
|
|
22755
22755
|
}
|
|
22756
22756
|
function J0(e) {
|
|
22757
22757
|
const [t, n] = G(null), [i, s] = G(null), [l, a] = G(!0);
|
|
22758
|
-
return
|
|
22758
|
+
return Ke(() => {
|
|
22759
22759
|
let c = !0;
|
|
22760
22760
|
return Promise.all([import("@malloydata/malloy-explorer"), cm()]).then(([u, d]) => {
|
|
22761
22761
|
c && (n(u), s(d), a(!1));
|
|
@@ -22841,7 +22841,7 @@ function bd({
|
|
|
22841
22841
|
() => Ro(R.applied, R.declaredTypes),
|
|
22842
22842
|
[R.applied, R.declaredTypes]
|
|
22843
22843
|
), I = de(
|
|
22844
|
-
() =>
|
|
22844
|
+
() => K0(M, R.applied),
|
|
22845
22845
|
[M, R.applied]
|
|
22846
22846
|
);
|
|
22847
22847
|
if (y && !e)
|
|
@@ -23185,7 +23185,7 @@ function t1() {
|
|
|
23185
23185
|
)
|
|
23186
23186
|
] });
|
|
23187
23187
|
}
|
|
23188
|
-
function
|
|
23188
|
+
function Yw(e) {
|
|
23189
23189
|
const { modelPage: t, isLoadingStatus: n } = ze();
|
|
23190
23190
|
if (n)
|
|
23191
23191
|
return /* @__PURE__ */ o(Lt, { text: "Fetching Model..." });
|
|
@@ -23229,7 +23229,7 @@ function o1({
|
|
|
23229
23229
|
] }),
|
|
23230
23230
|
l.length > 0 && /* @__PURE__ */ k(N, { children: [
|
|
23231
23231
|
/* @__PURE__ */ k(
|
|
23232
|
-
|
|
23232
|
+
Ye,
|
|
23233
23233
|
{
|
|
23234
23234
|
size: "small",
|
|
23235
23235
|
"aria-expanded": t,
|
|
@@ -23333,7 +23333,7 @@ function c1({
|
|
|
23333
23333
|
// one it does not is refused. Asking here keeps the affordance honest
|
|
23334
23334
|
// instead of painting a link whose click only logs a warning.
|
|
23335
23335
|
canSelf: u
|
|
23336
|
-
}), te = /import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/, X = /import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/, H = !!e.text && (te.test(e.text) || X.test(e.text)),
|
|
23336
|
+
}), te = /import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/, X = /import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/, H = !!e.text && (te.test(e.text) || X.test(e.text)), K = () => {
|
|
23337
23337
|
if (!e.newSources || e.newSources.length === 0) return 0;
|
|
23338
23338
|
let se = [], Fe = "";
|
|
23339
23339
|
if (e.text) {
|
|
@@ -23361,7 +23361,7 @@ function c1({
|
|
|
23361
23361
|
} : void 0,
|
|
23362
23362
|
[e.newSources, t, v]
|
|
23363
23363
|
), { mode: z } = En();
|
|
23364
|
-
|
|
23364
|
+
Ke(() => {
|
|
23365
23365
|
e.type === "code" && fa(a1(e), "malloy", z).then((se) => {
|
|
23366
23366
|
C(se);
|
|
23367
23367
|
});
|
|
@@ -23504,7 +23504,7 @@ function c1({
|
|
|
23504
23504
|
hasValidImport: H,
|
|
23505
23505
|
resourceUri: t,
|
|
23506
23506
|
data: ne,
|
|
23507
|
-
initialSelectedSourceIndex:
|
|
23507
|
+
initialSelectedSourceIndex: K(),
|
|
23508
23508
|
startingGivens: p
|
|
23509
23509
|
}
|
|
23510
23510
|
),
|
|
@@ -23658,10 +23658,10 @@ function f1({
|
|
|
23658
23658
|
), te = de(
|
|
23659
23659
|
() => fm(F, V),
|
|
23660
23660
|
[F, V]
|
|
23661
|
-
), X = lt(0), H = lt(null),
|
|
23662
|
-
|
|
23661
|
+
), X = lt(0), H = lt(null), K = lt(null), ne = lt(void 0);
|
|
23662
|
+
Ke(
|
|
23663
23663
|
() => () => {
|
|
23664
|
-
H.current?.abort(),
|
|
23664
|
+
H.current?.abort(), K.current = null, clearTimeout(ne.current?.timer), ne.current = void 0;
|
|
23665
23665
|
},
|
|
23666
23666
|
[]
|
|
23667
23667
|
);
|
|
@@ -23717,14 +23717,14 @@ function f1({
|
|
|
23717
23717
|
};
|
|
23718
23718
|
ee.push(ye);
|
|
23719
23719
|
}
|
|
23720
|
-
const
|
|
23720
|
+
const Y = [];
|
|
23721
23721
|
for (const fe of ee) {
|
|
23722
23722
|
const ke = fe().then(() => {
|
|
23723
|
-
|
|
23723
|
+
Y.splice(Y.indexOf(ke), 1);
|
|
23724
23724
|
});
|
|
23725
|
-
|
|
23725
|
+
Y.push(ke), Y.length >= d1 && await Promise.race(Y);
|
|
23726
23726
|
}
|
|
23727
|
-
await Promise.all(
|
|
23727
|
+
await Promise.all(Y);
|
|
23728
23728
|
} catch (ee) {
|
|
23729
23729
|
if (Re.signal.aborted || X.current !== Se) return;
|
|
23730
23730
|
q.emit({
|
|
@@ -23739,19 +23739,19 @@ function f1({
|
|
|
23739
23739
|
), ie = lt(0), oe = lt(void 0);
|
|
23740
23740
|
oe.current !== c && (oe.current = c, ie.current += 1);
|
|
23741
23741
|
const se = ie.current;
|
|
23742
|
-
|
|
23742
|
+
Ke(() => {
|
|
23743
23743
|
const ue = `${e}|${se}`, Se = `${ue}|${Z(F) ?? ""}`;
|
|
23744
23744
|
O.current !== void 0 && O.current !== ue && (H.current?.abort(), H.current = null), O.current = ue;
|
|
23745
23745
|
const Re = u1({
|
|
23746
23746
|
ready: !!c.notebookCells,
|
|
23747
|
-
lastRunKey:
|
|
23747
|
+
lastRunKey: K.current,
|
|
23748
23748
|
pendingKey: ne.current?.key,
|
|
23749
23749
|
runKey: Se,
|
|
23750
23750
|
documentKey: ue
|
|
23751
23751
|
});
|
|
23752
23752
|
if (Re.cancelPending && (clearTimeout(ne.current?.timer), ne.current = void 0, T(!1)), Re.dispatch === "none") return;
|
|
23753
23753
|
const ee = () => {
|
|
23754
|
-
ne.current = void 0, T(!1),
|
|
23754
|
+
ne.current = void 0, T(!1), K.current = Se, z(F);
|
|
23755
23755
|
};
|
|
23756
23756
|
if (Re.dispatch === "now") {
|
|
23757
23757
|
ee();
|
|
@@ -23903,7 +23903,7 @@ function p1({
|
|
|
23903
23903
|
),
|
|
23904
23904
|
enabled: T && t !== ""
|
|
23905
23905
|
}), I = O?.layout, q = vm({ path: t, layout: I }, u), D = `${e}|${t}`, F = lt(void 0), V = lt({ key: D, at: mo() });
|
|
23906
|
-
V.current.key !== D && (V.current = { key: D, at: mo() }),
|
|
23906
|
+
V.current.key !== D && (V.current = { key: D, at: mo() }), Ke(() => {
|
|
23907
23907
|
F.current !== D && (T ? R ? (F.current = D, q.emit({
|
|
23908
23908
|
type: "report.load_failed",
|
|
23909
23909
|
surface: "view",
|
|
@@ -24000,7 +24000,7 @@ function g1({
|
|
|
24000
24000
|
onCreated: S,
|
|
24001
24001
|
onEvent: w
|
|
24002
24002
|
}) {
|
|
24003
|
-
const C = t ?? (n ? Gs(n) : "linear"), T = i ?? s ?? !0, [O, M] = G(C), [R, P] = G(void 0), [I, q] = G(""), [D, F] = G(""), [V, $] = G(""), W = lt(null), [Z, te] = G(""), [X, H] = G(!1), [
|
|
24003
|
+
const C = t ?? (n ? Gs(n) : "linear"), T = i ?? s ?? !0, [O, M] = G(C), [R, P] = G(void 0), [I, q] = G(""), [D, F] = G(""), [V, $] = G(""), W = lt(null), [Z, te] = G(""), [X, H] = G(!1), [K, ne] = G(!1), [z, ie] = G(!1), [oe, se] = G(void 0), Fe = p != null, { choices: he, isLoading: ue, isSuccess: Se, failed: Re, retry: ee, canRetry: Y } = wm({
|
|
24004
24004
|
environmentName: l,
|
|
24005
24005
|
packageName: a,
|
|
24006
24006
|
...c !== void 0 ? { versionId: c } : {},
|
|
@@ -24052,17 +24052,17 @@ function g1({
|
|
|
24052
24052
|
const nt = ke.get(ge);
|
|
24053
24053
|
nt && (q(nt.model), F(`${nt.source}::${nt.view}`));
|
|
24054
24054
|
}, be = fe.find((ge) => `${ge.source}::${ge.view}` === D), Ue = be ? ms(I, be.source, be.view) : void 0, xt = y1(be, 250);
|
|
24055
|
-
|
|
24055
|
+
Ke(() => {
|
|
24056
24056
|
e && M(C);
|
|
24057
|
-
}, [e, C]),
|
|
24057
|
+
}, [e, C]), Ke(() => {
|
|
24058
24058
|
if (!e) return;
|
|
24059
24059
|
const ge = [...he.keys()];
|
|
24060
24060
|
I === "" && ge.length > 0 && q(ge[0]);
|
|
24061
|
-
}, [e, he, I]),
|
|
24061
|
+
}, [e, he, I]), Ke(() => {
|
|
24062
24062
|
!e || fe.length === 0 || D !== "" || F(`${fe[0].source}::${fe[0].view}`);
|
|
24063
|
-
}, [e, fe, D]),
|
|
24063
|
+
}, [e, fe, D]), Ke(() => {
|
|
24064
24064
|
!e || X || be === void 0 || te(Qi(be.view));
|
|
24065
|
-
}, [e, X, be]),
|
|
24065
|
+
}, [e, X, be]), Ke(() => {
|
|
24066
24066
|
e || (q(""), F(""), $(""), te(""), H(!1), P(void 0), ne(!1), se(void 0));
|
|
24067
24067
|
}, [e]);
|
|
24068
24068
|
const ce = de(() => {
|
|
@@ -24076,7 +24076,7 @@ function g1({
|
|
|
24076
24076
|
modelPath: I,
|
|
24077
24077
|
source: be.source,
|
|
24078
24078
|
view: be.view
|
|
24079
|
-
})) ?? (Z.trim() !== "" && We === void 0 ? "No free file name for this title; choose another." : void 0), Ot = Ae !== void 0 && (
|
|
24079
|
+
})) ?? (Z.trim() !== "" && We === void 0 ? "No free file name for this title; choose another." : void 0), Ot = Ae !== void 0 && (K || Z.trim() !== ""), qt = d || ue, { theme: Vt } = En(), Jt = Vt.ui, Pt = jc(Vt.cardBorder), st = he.size === 0 && (Fe || Re.length > 0), me = qt ? "Loading the model" : st ? "Couldn't read the model to start from" : he.size === 0 ? "Nothing in the model to start from yet" : be === void 0 ? "Pick what to start from" : void 0, at = "report", Qe = z ? `Creating ${at}…` : `Create ${at}`, Et = D !== "" && be === void 0 && fe.length > 0, Dt = async () => {
|
|
24080
24080
|
if (!(me !== void 0 || be === void 0 || z)) {
|
|
24081
24081
|
if (Ae !== void 0 || tt !== void 0) {
|
|
24082
24082
|
ne(!0);
|
|
@@ -24106,7 +24106,7 @@ function g1({
|
|
|
24106
24106
|
ie(!1);
|
|
24107
24107
|
}
|
|
24108
24108
|
}
|
|
24109
|
-
}, ut = (ge) => /* @__PURE__ */ o(
|
|
24109
|
+
}, ut = (ge) => /* @__PURE__ */ o(Ye, { color: "inherit", size: "small", onClick: ge, children: "Retry" });
|
|
24110
24110
|
return /* @__PURE__ */ o(
|
|
24111
24111
|
Ct,
|
|
24112
24112
|
{
|
|
@@ -24119,9 +24119,9 @@ function g1({
|
|
|
24119
24119
|
title: `New ${at}`,
|
|
24120
24120
|
description: "A report is a Malloy file in the package that lays out text and queries. Pick what its first query shows; the rest is the builder.",
|
|
24121
24121
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
24122
|
-
/* @__PURE__ */ o(
|
|
24122
|
+
/* @__PURE__ */ o(Ye, { onClick: x, disabled: z, children: "Cancel" }),
|
|
24123
24123
|
/* @__PURE__ */ o(bt, { title: z ? "" : me ?? "", children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
24124
|
-
|
|
24124
|
+
Ye,
|
|
24125
24125
|
{
|
|
24126
24126
|
variant: "contained",
|
|
24127
24127
|
disabled: z || me !== void 0,
|
|
@@ -24147,7 +24147,7 @@ function g1({
|
|
|
24147
24147
|
yt,
|
|
24148
24148
|
{
|
|
24149
24149
|
severity: "warning",
|
|
24150
|
-
action:
|
|
24150
|
+
action: Y ? ut(ee) : void 0,
|
|
24151
24151
|
children: [
|
|
24152
24152
|
"Couldn't read ",
|
|
24153
24153
|
Re.join(", "),
|
|
@@ -24365,7 +24365,7 @@ function g1({
|
|
|
24365
24365
|
}
|
|
24366
24366
|
function y1(e, t) {
|
|
24367
24367
|
const [n, i] = G(void 0);
|
|
24368
|
-
return
|
|
24368
|
+
return Ke(() => {
|
|
24369
24369
|
const s = window.setTimeout(() => i(e), t);
|
|
24370
24370
|
return () => window.clearTimeout(s);
|
|
24371
24371
|
}, [e, t]), n;
|
|
@@ -24935,22 +24935,22 @@ function j1({
|
|
|
24935
24935
|
onPackageDeleted: a,
|
|
24936
24936
|
canManage: c
|
|
24937
24937
|
}) {
|
|
24938
|
-
const { apiClients: u } = ze(), d = rr(), p = z1(e, t), v = P1(e, t), [g, y] = G(null), [x, S] = G(null), [w, C] = G(null), [T, O] = G(null), [M, R] = G(null), [P, I] = G(null), q = lt(null), D = lt(null), F = lt(null), V = lt(/* @__PURE__ */ new Map()), $ = n.find((
|
|
24938
|
+
const { apiClients: u } = ze(), d = rr(), p = z1(e, t), v = P1(e, t), [g, y] = G(null), [x, S] = G(null), [w, C] = G(null), [T, O] = G(null), [M, R] = G(null), [P, I] = G(null), q = lt(null), D = lt(null), F = lt(null), V = lt(/* @__PURE__ */ new Map()), $ = n.find((Y) => Y.latest)?.id, W = i ?? $, Z = () => Promise.all([
|
|
24939
24939
|
p(),
|
|
24940
24940
|
d.invalidateQueries({
|
|
24941
24941
|
queryKey: ["packages", e]
|
|
24942
24942
|
})
|
|
24943
|
-
]), te = async (
|
|
24943
|
+
]), te = async (Y, fe) => {
|
|
24944
24944
|
const ke = fe ?? await v().catch(() => {
|
|
24945
24945
|
});
|
|
24946
24946
|
if (ke === void 0) return;
|
|
24947
|
-
const ve = ke.find((be) => be.latest)?.id, ye = ve ?? ke.find((be) => be.id !==
|
|
24947
|
+
const ve = ke.find((be) => be.latest)?.id, ye = ve ?? ke.find((be) => be.id !== Y && !Or(be))?.id;
|
|
24948
24948
|
ye !== void 0 && (l ? l(ye === ve ? void 0 : ye) : s(ye));
|
|
24949
24949
|
}, X = Xi({
|
|
24950
|
-
mutationFn: (
|
|
24950
|
+
mutationFn: (Y) => u.versions.setPackageLatestVersion(
|
|
24951
24951
|
e,
|
|
24952
24952
|
t,
|
|
24953
|
-
{ version:
|
|
24953
|
+
{ version: Y }
|
|
24954
24954
|
),
|
|
24955
24955
|
onSuccess: async () => {
|
|
24956
24956
|
C(null), await Z();
|
|
@@ -24958,28 +24958,28 @@ function j1({
|
|
|
24958
24958
|
onError: () => void Z()
|
|
24959
24959
|
}), H = Xi({
|
|
24960
24960
|
mutationFn: ({
|
|
24961
|
-
id:
|
|
24961
|
+
id: Y,
|
|
24962
24962
|
archiveStatus: fe
|
|
24963
24963
|
}) => u.versions.updatePackageVersion(
|
|
24964
24964
|
e,
|
|
24965
24965
|
t,
|
|
24966
|
-
|
|
24966
|
+
Y,
|
|
24967
24967
|
{ archiveStatus: fe }
|
|
24968
24968
|
),
|
|
24969
|
-
onSuccess: async (
|
|
24969
|
+
onSuccess: async (Y, { id: fe, archiveStatus: ke }) => {
|
|
24970
24970
|
O(null), ke === "archive" && fe === W && await te(fe), await Z();
|
|
24971
24971
|
},
|
|
24972
|
-
onError: (
|
|
24973
|
-
ke === "unarchive" && I(`Couldn't unarchive v${fe}: ${so(
|
|
24972
|
+
onError: (Y, { id: fe, archiveStatus: ke }) => {
|
|
24973
|
+
ke === "unarchive" && I(`Couldn't unarchive v${fe}: ${so(Y)}`), Z();
|
|
24974
24974
|
}
|
|
24975
|
-
}),
|
|
24975
|
+
}), K = H.isPending ? H.variables?.id : void 0, ne = Xi({
|
|
24976
24976
|
// `read`: the package's versions the dialog was confirmed against.
|
|
24977
|
-
mutationFn: ({ id:
|
|
24977
|
+
mutationFn: ({ id: Y }) => u.versions.deletePackageVersion(
|
|
24978
24978
|
e,
|
|
24979
24979
|
t,
|
|
24980
|
-
|
|
24980
|
+
Y
|
|
24981
24981
|
),
|
|
24982
|
-
onSuccess: async (
|
|
24982
|
+
onSuccess: async (Y, { id: fe, read: ke }) => {
|
|
24983
24983
|
R(null);
|
|
24984
24984
|
const ye = await v().catch(() => {
|
|
24985
24985
|
}) ?? ke.filter((be) => be.id !== fe);
|
|
@@ -24992,34 +24992,34 @@ function j1({
|
|
|
24992
24992
|
fe === W && await te(fe, ye), await Z();
|
|
24993
24993
|
},
|
|
24994
24994
|
onError: () => void Z()
|
|
24995
|
-
}), z = () => S(null), ie = x ? Mc(x.version, n) : {}, oe = x !== null && !Or(x.version) && x.version.latest && ie.archive !== void 0 && ie.delete !== void 0, se = M !== null && M.versions === void 0, Fe = M?.versions !== void 0 && M.versions.length <= 1, he = M?.versions !== void 0 ? Mc(M.version, M.versions).delete : void 0, ue = async (
|
|
24996
|
-
z(), y(null), ne.reset(), R({ version:
|
|
24995
|
+
}), z = () => S(null), ie = x ? Mc(x.version, n) : {}, oe = x !== null && !Or(x.version) && x.version.latest && ie.archive !== void 0 && ie.delete !== void 0, se = M !== null && M.versions === void 0, Fe = M?.versions !== void 0 && M.versions.length <= 1, he = M?.versions !== void 0 ? Mc(M.version, M.versions).delete : void 0, ue = async (Y) => {
|
|
24996
|
+
z(), y(null), ne.reset(), R({ version: Y });
|
|
24997
24997
|
const fe = (ye) => R(
|
|
24998
|
-
(be) => be !== null && be.version.id ===
|
|
24998
|
+
(be) => be !== null && be.version.id === Y.id && be.versions === void 0 ? ye : be
|
|
24999
24999
|
);
|
|
25000
25000
|
let ke;
|
|
25001
25001
|
try {
|
|
25002
25002
|
ke = await v();
|
|
25003
25003
|
} catch (ye) {
|
|
25004
25004
|
fe(null), I(
|
|
25005
|
-
`Couldn't check v${
|
|
25005
|
+
`Couldn't check v${Y.id} before deleting it: ${so(ye)}`
|
|
25006
25006
|
);
|
|
25007
25007
|
return;
|
|
25008
25008
|
}
|
|
25009
|
-
const ve = ke.find((ye) => ye.id ===
|
|
25009
|
+
const ve = ke.find((ye) => ye.id === Y.id);
|
|
25010
25010
|
if (ve === void 0) {
|
|
25011
|
-
fe(null), I(`v${
|
|
25011
|
+
fe(null), I(`v${Y.id} is no longer a version of ${t}.`), Z();
|
|
25012
25012
|
return;
|
|
25013
25013
|
}
|
|
25014
25014
|
fe({ version: ve, versions: ke });
|
|
25015
|
-
}, Se = (
|
|
25016
|
-
!c ||
|
|
25017
|
-
version:
|
|
25018
|
-
anchor: V.current.get(
|
|
25015
|
+
}, Se = (Y, fe) => {
|
|
25016
|
+
!c || K === Y.id || S({
|
|
25017
|
+
version: Y,
|
|
25018
|
+
anchor: V.current.get(Y.id) ?? fe
|
|
25019
25019
|
});
|
|
25020
|
-
}, Re = (
|
|
25021
|
-
const ke =
|
|
25022
|
-
!c || !ke || (
|
|
25020
|
+
}, Re = (Y, fe) => {
|
|
25021
|
+
const ke = Y.key === "ArrowRight" || Y.key === "ContextMenu" || Y.key === "F10" && Y.shiftKey;
|
|
25022
|
+
!c || !ke || (Y.preventDefault(), Y.stopPropagation(), Se(fe, Y.currentTarget));
|
|
25023
25023
|
}, ee = x && /* @__PURE__ */ k(
|
|
25024
25024
|
rn,
|
|
25025
25025
|
{
|
|
@@ -25034,14 +25034,14 @@ function j1({
|
|
|
25034
25034
|
);
|
|
25035
25035
|
return /* @__PURE__ */ k(pe, { children: [
|
|
25036
25036
|
/* @__PURE__ */ o(
|
|
25037
|
-
|
|
25037
|
+
Ye,
|
|
25038
25038
|
{
|
|
25039
25039
|
size: "small",
|
|
25040
25040
|
variant: "outlined",
|
|
25041
25041
|
endIcon: /* @__PURE__ */ o(Qu, {}),
|
|
25042
25042
|
"aria-label": W ? `Version v${W}, change version` : "Select a version",
|
|
25043
25043
|
"aria-haspopup": "menu",
|
|
25044
|
-
onClick: (
|
|
25044
|
+
onClick: (Y) => y(Y.currentTarget),
|
|
25045
25045
|
sx: {
|
|
25046
25046
|
borderRadius: 999,
|
|
25047
25047
|
textTransform: "none",
|
|
@@ -25070,11 +25070,11 @@ function j1({
|
|
|
25070
25070
|
disabledItemsFocusable: !0
|
|
25071
25071
|
}
|
|
25072
25072
|
},
|
|
25073
|
-
children: n.map((
|
|
25074
|
-
const fe =
|
|
25073
|
+
children: n.map((Y) => {
|
|
25074
|
+
const fe = Y.id === W, ke = Or(Y), ve = [
|
|
25075
25075
|
ke ? "Archived" : void 0,
|
|
25076
|
-
U1(
|
|
25077
|
-
|
|
25076
|
+
U1(Y.createdAt),
|
|
25077
|
+
Y.gitCommitSha ? Y.gitCommitSha.slice(0, 7) : void 0
|
|
25078
25078
|
].filter(Boolean).join(" · ");
|
|
25079
25079
|
return /* @__PURE__ */ k(
|
|
25080
25080
|
rn,
|
|
@@ -25083,13 +25083,13 @@ function j1({
|
|
|
25083
25083
|
"aria-disabled": ke && !c ? "true" : void 0,
|
|
25084
25084
|
"aria-haspopup": c ? "menu" : void 0,
|
|
25085
25085
|
"data-testid": "version-row",
|
|
25086
|
-
onKeyDown: (ye) => Re(ye,
|
|
25086
|
+
onKeyDown: (ye) => Re(ye, Y),
|
|
25087
25087
|
onClick: (ye) => {
|
|
25088
25088
|
if (ke) {
|
|
25089
|
-
Se(
|
|
25089
|
+
Se(Y, ye.currentTarget);
|
|
25090
25090
|
return;
|
|
25091
25091
|
}
|
|
25092
|
-
fe || (y(null), s(
|
|
25092
|
+
fe || (y(null), s(Y.id, ye));
|
|
25093
25093
|
},
|
|
25094
25094
|
sx: (ye) => ({
|
|
25095
25095
|
gap: 1,
|
|
@@ -25102,7 +25102,7 @@ function j1({
|
|
|
25102
25102
|
/* @__PURE__ */ o(
|
|
25103
25103
|
Qt,
|
|
25104
25104
|
{
|
|
25105
|
-
primary:
|
|
25105
|
+
primary: Y.id,
|
|
25106
25106
|
secondary: ve,
|
|
25107
25107
|
sx: { opacity: ke ? 0.6 : 1 },
|
|
25108
25108
|
slotProps: {
|
|
@@ -25110,7 +25110,7 @@ function j1({
|
|
|
25110
25110
|
}
|
|
25111
25111
|
}
|
|
25112
25112
|
),
|
|
25113
|
-
|
|
25113
|
+
Y.latest && /* @__PURE__ */ o(
|
|
25114
25114
|
Ac,
|
|
25115
25115
|
{
|
|
25116
25116
|
size: "small",
|
|
@@ -25123,23 +25123,23 @@ function j1({
|
|
|
25123
25123
|
c && /* @__PURE__ */ o(
|
|
25124
25124
|
bt,
|
|
25125
25125
|
{
|
|
25126
|
-
title:
|
|
25126
|
+
title: K === Y.id ? "Updating this version…" : "",
|
|
25127
25127
|
children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
25128
25128
|
Wt,
|
|
25129
25129
|
{
|
|
25130
25130
|
ref: (ye) => {
|
|
25131
25131
|
ye ? V.current.set(
|
|
25132
|
-
|
|
25132
|
+
Y.id,
|
|
25133
25133
|
ye
|
|
25134
|
-
) : V.current.delete(
|
|
25134
|
+
) : V.current.delete(Y.id);
|
|
25135
25135
|
},
|
|
25136
25136
|
size: "small",
|
|
25137
|
-
"aria-label": `More actions for version ${
|
|
25137
|
+
"aria-label": `More actions for version ${Y.id}`,
|
|
25138
25138
|
"aria-haspopup": "menu",
|
|
25139
|
-
disabled:
|
|
25139
|
+
disabled: K === Y.id,
|
|
25140
25140
|
onClick: (ye) => {
|
|
25141
25141
|
ye.stopPropagation(), S({
|
|
25142
|
-
version:
|
|
25142
|
+
version: Y,
|
|
25143
25143
|
anchor: ye.currentTarget
|
|
25144
25144
|
});
|
|
25145
25145
|
},
|
|
@@ -25150,7 +25150,7 @@ function j1({
|
|
|
25150
25150
|
)
|
|
25151
25151
|
]
|
|
25152
25152
|
},
|
|
25153
|
-
|
|
25153
|
+
Y.id
|
|
25154
25154
|
);
|
|
25155
25155
|
})
|
|
25156
25156
|
}
|
|
@@ -25176,9 +25176,9 @@ function j1({
|
|
|
25176
25176
|
rn,
|
|
25177
25177
|
{
|
|
25178
25178
|
onClick: () => {
|
|
25179
|
-
const { id:
|
|
25179
|
+
const { id: Y } = x.version;
|
|
25180
25180
|
z(), H.mutate({
|
|
25181
|
-
id:
|
|
25181
|
+
id: Y,
|
|
25182
25182
|
archiveStatus: "unarchive"
|
|
25183
25183
|
});
|
|
25184
25184
|
},
|
|
@@ -25249,7 +25249,7 @@ function j1({
|
|
|
25249
25249
|
initialFocus: q,
|
|
25250
25250
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
25251
25251
|
/* @__PURE__ */ o(
|
|
25252
|
-
|
|
25252
|
+
Ye,
|
|
25253
25253
|
{
|
|
25254
25254
|
ref: q,
|
|
25255
25255
|
disabled: X.isPending,
|
|
@@ -25258,7 +25258,7 @@ function j1({
|
|
|
25258
25258
|
}
|
|
25259
25259
|
),
|
|
25260
25260
|
/* @__PURE__ */ o(
|
|
25261
|
-
|
|
25261
|
+
Ye,
|
|
25262
25262
|
{
|
|
25263
25263
|
variant: "contained",
|
|
25264
25264
|
loading: X.isPending,
|
|
@@ -25285,7 +25285,7 @@ function j1({
|
|
|
25285
25285
|
initialFocus: D,
|
|
25286
25286
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
25287
25287
|
/* @__PURE__ */ o(
|
|
25288
|
-
|
|
25288
|
+
Ye,
|
|
25289
25289
|
{
|
|
25290
25290
|
ref: D,
|
|
25291
25291
|
disabled: H.isPending,
|
|
@@ -25294,7 +25294,7 @@ function j1({
|
|
|
25294
25294
|
}
|
|
25295
25295
|
),
|
|
25296
25296
|
/* @__PURE__ */ o(
|
|
25297
|
-
|
|
25297
|
+
Ye,
|
|
25298
25298
|
{
|
|
25299
25299
|
variant: "contained",
|
|
25300
25300
|
loading: H.isPending,
|
|
@@ -25323,7 +25323,7 @@ function j1({
|
|
|
25323
25323
|
initialFocus: F,
|
|
25324
25324
|
actions: /* @__PURE__ */ k(pe, { children: [
|
|
25325
25325
|
/* @__PURE__ */ o(
|
|
25326
|
-
|
|
25326
|
+
Ye,
|
|
25327
25327
|
{
|
|
25328
25328
|
ref: F,
|
|
25329
25329
|
disabled: ne.isPending,
|
|
@@ -25332,7 +25332,7 @@ function j1({
|
|
|
25332
25332
|
}
|
|
25333
25333
|
),
|
|
25334
25334
|
/* @__PURE__ */ o(
|
|
25335
|
-
|
|
25335
|
+
Ye,
|
|
25336
25336
|
{
|
|
25337
25337
|
variant: "contained",
|
|
25338
25338
|
color: "error",
|
|
@@ -25375,7 +25375,7 @@ function j1({
|
|
|
25375
25375
|
] });
|
|
25376
25376
|
}
|
|
25377
25377
|
const B1 = "README.malloynb", G1 = (e) => !!e && !e.includes("/") && ki(e)?.toLowerCase() === "readme";
|
|
25378
|
-
function
|
|
25378
|
+
function Kw({
|
|
25379
25379
|
onClickPackageFile: e,
|
|
25380
25380
|
onOpenDocument: t,
|
|
25381
25381
|
resourceUri: n,
|
|
@@ -25400,14 +25400,14 @@ function Yw({
|
|
|
25400
25400
|
W({ state: "failed" });
|
|
25401
25401
|
return;
|
|
25402
25402
|
}
|
|
25403
|
-
W({ state: "ready", chosen:
|
|
25403
|
+
W({ state: "ready", chosen: Yc(B) });
|
|
25404
25404
|
const ae = [], We = si(v, g, "");
|
|
25405
25405
|
for (const tt of B.filter((Bt) => Bt.writeable))
|
|
25406
25406
|
for (const Bt of await D.listDocuments(tt))
|
|
25407
25407
|
Bt.path.startsWith(We) && ae.push({ locator: Bt, where: tt.description });
|
|
25408
25408
|
V(ae);
|
|
25409
25409
|
}, [D, v, g]);
|
|
25410
|
-
|
|
25410
|
+
Ke(() => {
|
|
25411
25411
|
Z();
|
|
25412
25412
|
}, [Z]);
|
|
25413
25413
|
const te = (B) => B.path.slice(si(v, g, "").length), X = vt({
|
|
@@ -25421,7 +25421,7 @@ function Yw({
|
|
|
25421
25421
|
}), H = vt({
|
|
25422
25422
|
queryKey: ["package-agents", v, g, y],
|
|
25423
25423
|
queryFn: () => a.agents.listAgents(v, g, y)
|
|
25424
|
-
}),
|
|
25424
|
+
}), K = Lc(
|
|
25425
25425
|
v,
|
|
25426
25426
|
g,
|
|
25427
25427
|
y
|
|
@@ -25451,19 +25451,19 @@ function Yw({
|
|
|
25451
25451
|
throw B;
|
|
25452
25452
|
}
|
|
25453
25453
|
}
|
|
25454
|
-
}).data?.data ?? [], se =
|
|
25454
|
+
}).data?.data ?? [], se = K.reports.filter(
|
|
25455
25455
|
(B) => !!B.path
|
|
25456
|
-
), Fe =
|
|
25456
|
+
), Fe = K1(se), he = new Set(
|
|
25457
25457
|
se.map((B) => B.path).filter((B) => B !== void 0)
|
|
25458
25458
|
), ue = (ne.data?.data ?? []).slice().filter((B) => !he.has(B.path)).sort((B, ae) => B.path.localeCompare(ae.path)), Se = (z.data?.data ?? []).slice().sort((B, ae) => B.path.localeCompare(ae.path)), Re = $.state === "ready" ? Em({
|
|
25459
25459
|
authoritative: $.chosen?.authoritative === !0,
|
|
25460
25460
|
mutable: u && C,
|
|
25461
25461
|
canStore: $.chosen?.writeable === !0,
|
|
25462
25462
|
...y === void 0 ? {} : { versionId: y }
|
|
25463
|
-
}) : void 0, ee =
|
|
25464
|
-
if (!
|
|
25463
|
+
}) : void 0, ee = K.settled && (ne.isSuccess || ne.isError), Y = Re !== void 0 && ee, fe = Y && !q, ke = de(() => {
|
|
25464
|
+
if (!Y) return;
|
|
25465
25465
|
const B = [
|
|
25466
|
-
...
|
|
25466
|
+
...K.reports.flatMap((ae) => ae.path ? [ae.path] : []),
|
|
25467
25467
|
...(ne.data?.data ?? []).flatMap(
|
|
25468
25468
|
(ae) => ae.path ? [ae.path] : []
|
|
25469
25469
|
)
|
|
@@ -25491,16 +25491,16 @@ function Yw({
|
|
|
25491
25491
|
}
|
|
25492
25492
|
};
|
|
25493
25493
|
}, [
|
|
25494
|
-
|
|
25494
|
+
Y,
|
|
25495
25495
|
Re,
|
|
25496
25496
|
D,
|
|
25497
25497
|
$,
|
|
25498
25498
|
v,
|
|
25499
25499
|
g,
|
|
25500
25500
|
a,
|
|
25501
|
-
|
|
25501
|
+
K.reports,
|
|
25502
25502
|
ne.data
|
|
25503
|
-
]), ve = X.data?.data?.description ?? "", ye = H.data?.data ?? [], be = (se.find((B) => B.path === B1) ?? se.find((B) => G1(B.path)))?.path, Ue = !
|
|
25503
|
+
]), ve = X.data?.data?.description ?? "", ye = H.data?.data ?? [], be = (se.find((B) => B.path === B1) ?? se.find((B) => G1(B.path)))?.path, Ue = !K.settled, xt = w ? /* @__PURE__ */ o(
|
|
25504
25504
|
j1,
|
|
25505
25505
|
{
|
|
25506
25506
|
environmentName: v,
|
|
@@ -25560,7 +25560,7 @@ function Yw({
|
|
|
25560
25560
|
{
|
|
25561
25561
|
severity: "warning",
|
|
25562
25562
|
action: /* @__PURE__ */ o(
|
|
25563
|
-
|
|
25563
|
+
Ye,
|
|
25564
25564
|
{
|
|
25565
25565
|
color: "inherit",
|
|
25566
25566
|
size: "small",
|
|
@@ -25600,23 +25600,23 @@ function Yw({
|
|
|
25600
25600
|
}
|
|
25601
25601
|
),
|
|
25602
25602
|
!Ue && /* @__PURE__ */ k(pe, { children: [
|
|
25603
|
-
|
|
25603
|
+
K.isError && /* @__PURE__ */ o(N, { sx: { mb: 4 }, children: /* @__PURE__ */ o(
|
|
25604
25604
|
yt,
|
|
25605
25605
|
{
|
|
25606
25606
|
severity: "warning",
|
|
25607
25607
|
action: /* @__PURE__ */ o(
|
|
25608
|
-
|
|
25608
|
+
Ye,
|
|
25609
25609
|
{
|
|
25610
25610
|
color: "inherit",
|
|
25611
25611
|
size: "small",
|
|
25612
|
-
onClick: () => void
|
|
25612
|
+
onClick: () => void K.refetch(),
|
|
25613
25613
|
children: "Retry"
|
|
25614
25614
|
}
|
|
25615
25615
|
),
|
|
25616
25616
|
children: "Could not list this package's reports, so any it has are missing from this page."
|
|
25617
25617
|
}
|
|
25618
25618
|
) }),
|
|
25619
|
-
(Fe.length > 0 ||
|
|
25619
|
+
(Fe.length > 0 || Y) && /* @__PURE__ */ k(
|
|
25620
25620
|
hn,
|
|
25621
25621
|
{
|
|
25622
25622
|
title: "Reports",
|
|
@@ -25751,7 +25751,7 @@ function Yw({
|
|
|
25751
25751
|
title: "Agents",
|
|
25752
25752
|
count: ye.length,
|
|
25753
25753
|
description: "Declared in publisher.json. Name one in an agent session to work as it. Schedules are listed only; nothing runs them yet.",
|
|
25754
|
-
children: ye.map((B) => /* @__PURE__ */ o(
|
|
25754
|
+
children: ye.map((B) => /* @__PURE__ */ o(Y1, { agent: B }, B.name))
|
|
25755
25755
|
}
|
|
25756
25756
|
),
|
|
25757
25757
|
/* @__PURE__ */ k(hn, { title: "Data", count: Se.length, children: [
|
|
@@ -25825,7 +25825,7 @@ function Sr({
|
|
|
25825
25825
|
}
|
|
25826
25826
|
);
|
|
25827
25827
|
}
|
|
25828
|
-
function
|
|
25828
|
+
function Y1({ agent: e }) {
|
|
25829
25829
|
return /* @__PURE__ */ k(pe, { children: [
|
|
25830
25830
|
/* @__PURE__ */ o(
|
|
25831
25831
|
Sr,
|
|
@@ -25857,10 +25857,10 @@ function K1({ agent: e }) {
|
|
|
25857
25857
|
})
|
|
25858
25858
|
] });
|
|
25859
25859
|
}
|
|
25860
|
-
function
|
|
25860
|
+
function K1(e) {
|
|
25861
25861
|
const t = e.map((i) => ({
|
|
25862
25862
|
path: i.path ?? "",
|
|
25863
|
-
layout:
|
|
25863
|
+
layout: Kc(i),
|
|
25864
25864
|
slug: ki(i.path) ?? i.path ?? "",
|
|
25865
25865
|
title: i.title
|
|
25866
25866
|
})), n = /* @__PURE__ */ new Map();
|
|
@@ -25891,7 +25891,7 @@ function gs({
|
|
|
25891
25891
|
children: e
|
|
25892
25892
|
}
|
|
25893
25893
|
),
|
|
25894
|
-
t && /* @__PURE__ */ o(
|
|
25894
|
+
t && /* @__PURE__ */ o(Ye, { size: "small", onClick: t.onClick, children: t.label })
|
|
25895
25895
|
] });
|
|
25896
25896
|
}
|
|
25897
25897
|
const Ec = /^publisher:document:(dashboard|notebook):(.+)$/;
|
|
@@ -25977,7 +25977,7 @@ function bs(e) {
|
|
|
25977
25977
|
);
|
|
25978
25978
|
}
|
|
25979
25979
|
async function Q1(e, t, n, i) {
|
|
25980
|
-
const s =
|
|
25980
|
+
const s = Yc(await e.listWorkspaces(!1));
|
|
25981
25981
|
if (!s) return;
|
|
25982
25982
|
const l = si(t, n, i);
|
|
25983
25983
|
if (e.getDocumentType)
|
|
@@ -25996,7 +25996,7 @@ async function Q1(e, t, n, i) {
|
|
|
25996
25996
|
}
|
|
25997
25997
|
function Qw(e, t, n, i = !0) {
|
|
25998
25998
|
const s = Gc()?.documentStorage, l = i && s !== void 0, [a, c] = G(), u = si(e, t, n);
|
|
25999
|
-
return
|
|
25999
|
+
return Ke(() => {
|
|
26000
26000
|
if (!l || !s) return;
|
|
26001
26001
|
let d = !1;
|
|
26002
26002
|
return Q1(s, e, t, n).catch(() => {
|
|
@@ -26070,7 +26070,7 @@ function J1({
|
|
|
26070
26070
|
);
|
|
26071
26071
|
}
|
|
26072
26072
|
function ew(e, t, n = "grid") {
|
|
26073
|
-
const i = t.filter((l) => !!l.path).filter((l) => ki(l.path) === e), s = i.filter((l) =>
|
|
26073
|
+
const i = t.filter((l) => !!l.path).filter((l) => ki(l.path) === e), s = i.filter((l) => Kc(l) === n);
|
|
26074
26074
|
return s.length === 1 ? { found: yl(s[0]) } : i.length === 1 ? { found: yl(i[0]) } : i.length === 0 ? { missing: !0 } : { ambiguous: i.map((l) => l.path).sort() };
|
|
26075
26075
|
}
|
|
26076
26076
|
const tw = /^(dashboards|notebooks)\/([^/]+)$/;
|
|
@@ -26359,7 +26359,7 @@ function lw(e) {
|
|
|
26359
26359
|
});
|
|
26360
26360
|
}), d;
|
|
26361
26361
|
});
|
|
26362
|
-
|
|
26362
|
+
Ke(() => {
|
|
26363
26363
|
i((d) => {
|
|
26364
26364
|
const p = /* @__PURE__ */ new Map();
|
|
26365
26365
|
return t.forEach((v) => {
|
|
@@ -26588,7 +26588,7 @@ export {
|
|
|
26588
26588
|
Bx as DEFAULT_UI,
|
|
26589
26589
|
_n as DOC_LINKS,
|
|
26590
26590
|
tS as DRILL_CELL_CLASS,
|
|
26591
|
-
|
|
26591
|
+
Yr as DRILL_SELF,
|
|
26592
26592
|
Pc as DashboardTile,
|
|
26593
26593
|
wp as DashboardView,
|
|
26594
26594
|
Iw as DataAppViewer,
|
|
@@ -26608,7 +26608,7 @@ export {
|
|
|
26608
26608
|
Mt as MONO_FONT_FAMILY,
|
|
26609
26609
|
cx as MOTION_FAST,
|
|
26610
26610
|
qy as Materializations,
|
|
26611
|
-
|
|
26611
|
+
Yw as Model,
|
|
26612
26612
|
bd as ModelExplorer,
|
|
26613
26613
|
wd as ModelExplorerDialog,
|
|
26614
26614
|
j0 as ModelViewer,
|
|
@@ -26619,7 +26619,7 @@ export {
|
|
|
26619
26619
|
Op as PUBLISHER_COLOR_SCHEME_APPLIED_MESSAGE_TYPE,
|
|
26620
26620
|
Cp as PUBLISHER_COLOR_SCHEME_MESSAGE_TYPE,
|
|
26621
26621
|
Tp as PUBLISHER_COLOR_SCHEME_REQUEST_MESSAGE_TYPE,
|
|
26622
|
-
|
|
26622
|
+
Kw as Package,
|
|
26623
26623
|
Cg as Packages,
|
|
26624
26624
|
wo as Prose,
|
|
26625
26625
|
J1 as QueryResult,
|
|
@@ -26632,20 +26632,20 @@ export {
|
|
|
26632
26632
|
Vs as ResultPanel,
|
|
26633
26633
|
hx as STICKY_CONTROLS_Z,
|
|
26634
26634
|
fx as STICKY_TOP_VAR,
|
|
26635
|
-
|
|
26635
|
+
Ys as SURFACE_TINT,
|
|
26636
26636
|
Ao as SecondaryButton,
|
|
26637
26637
|
Gx as ServerProvider,
|
|
26638
26638
|
Q0 as SourcesExplorer,
|
|
26639
26639
|
mx as TILE_MAX_HEIGHT,
|
|
26640
26640
|
px as TILE_MIN_HEIGHT,
|
|
26641
|
-
|
|
26641
|
+
Yx as ThemeProvider,
|
|
26642
26642
|
pl as TileCard,
|
|
26643
26643
|
gx as TileFilterTag,
|
|
26644
26644
|
dm as TileHeading,
|
|
26645
26645
|
yx as UNCAPPED_CONTAINER_HEIGHT,
|
|
26646
26646
|
vx as UnsavedChangesDialog,
|
|
26647
26647
|
j1 as VersionSwitch,
|
|
26648
|
-
|
|
26648
|
+
Kx as accentFor,
|
|
26649
26649
|
rS as buildMalloyExplicitTheme,
|
|
26650
26650
|
bx as buildTableCssVars,
|
|
26651
26651
|
oS as buildVegaThemeOverride,
|
|
@@ -26690,7 +26690,7 @@ export {
|
|
|
26690
26690
|
Ip as packageFileUrl,
|
|
26691
26691
|
Cd as packageVersionsQueryKey,
|
|
26692
26692
|
Fw as parseAllSourceInfos,
|
|
26693
|
-
|
|
26693
|
+
Kg as parseDimensionFilterAnnotation,
|
|
26694
26694
|
Nw as parseNotebookFilterAnnotation,
|
|
26695
26695
|
it as parseResourceUri,
|
|
26696
26696
|
pm as queryResultKey,
|