@wso2/am-core-ui 0.0.19 → 0.0.20
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/CatalogKindListing-DvUuZEpc.js +137 -0
- package/dist/{CodeBlock-mB_Loq7I.js → CodeBlock-B2Ecl916.js} +1 -1
- package/dist/EnvironmentCard-CIXhDhlZ.js +319 -0
- package/dist/{EnvironmentSelector-B7Bl93s2.js → EnvironmentSelector-D8S6nO9u.js} +1 -1
- package/dist/IsolationTierIndicator-cf90kgjL.js +81 -0
- package/dist/LabelChips-7rA7_yre.js +139 -0
- package/dist/PolicyListSection-D6aVSKwP.js +1143 -0
- package/dist/{ResourceListShell-Cx6mdeqv.js → ResourceListShell-DFisKftq.js} +1 -1
- package/dist/{SwaggerSpecViewer-BvkhoKsi.js → SwaggerSpecViewer-DzjR6U6W.js} +1 -1
- package/dist/{debounce-BV83M53b.js → debounce-D17ObVdG.js} +1 -1
- package/dist/{format-BEZZRyE2.js → format-wlHhWjGo.js} +1 -1
- package/dist/{formatDistanceToNow-TErllcH8.js → formatDistanceToNow-DyjnT7l9.js} +11 -11
- package/dist/{gatewayScripts-D8O45W8u.js → gatewayScripts-D4ZDEDPS.js} +1 -1
- package/dist/{index-sr-mWz4T.js → index-3K-zqdp-.js} +32 -32
- package/dist/{index-KRsV2L4V.js → index-6liAPSDn.js} +160 -160
- package/dist/{index-B52h3RHg.js → index-B3ASENUJ.js} +109 -109
- package/dist/index-B7Pf4oPq.js +3069 -0
- package/dist/index-BNO3FhZK.js +2304 -0
- package/dist/index-BUZSfCl5.js +335 -0
- package/dist/index-BXiG1r_o.js +1409 -0
- package/dist/{index-_0Pj_ZtW.js → index-BYy7Iaam.js} +40 -40
- package/dist/{index-BfjzUWDa.js → index-BbB_yx4V.js} +103 -103
- package/dist/index-BjWJ95lH.js +2728 -0
- package/dist/{index-B_Z0MwXk.js → index-ByEInFlf.js} +10916 -9520
- package/dist/index-C8WIhzyz.js +123 -0
- package/dist/index-CnzvaT6b.js +2368 -0
- package/dist/index-CrnCf-hJ.js +763 -0
- package/dist/{index-CgCWbWzN.js → index-Cvsho9xg.js} +381 -377
- package/dist/{index-UqDmyMSA.js → index-CxnAo1_c.js} +21 -21
- package/dist/{index-BnV-PkwM.js → index-Cz7-AZwE.js} +2 -2
- package/dist/{index-BP5drcF2.js → index-DBdRFjxm.js} +232 -233
- package/dist/{index-BZ4vxviI.js → index-DFsSvmMZ.js} +5 -5
- package/dist/index-DslzOSGN.js +2549 -0
- package/dist/{index-DD4qF7gq.js → index-DvpYvchM.js} +101 -100
- package/dist/index.d.ts +784 -163
- package/dist/index.js +532 -454
- package/dist/js-yaml-CvhD-clg.js +1335 -0
- package/dist/{llmProviderPayload-CzihkdNa.js → llmProviderPayload-BPzWDy7n.js} +2 -2
- package/package.json +1 -1
- package/dist/CatalogKindListing-DtFI2YMG.js +0 -118
- package/dist/EnvironmentCard-09h1XRxx.js +0 -310
- package/dist/PolicyListSection-o4k9e8XO.js +0 -2475
- package/dist/index-CGDYgUCH.js +0 -711
- package/dist/index-COt7nJIf.js +0 -2286
- package/dist/index-CWZjOy1h.js +0 -2247
- package/dist/index-CezvogTQ.js +0 -116
- package/dist/index-CjCkcuuI.js +0 -322
- package/dist/index-CjXvuf9m.js +0 -1354
- package/dist/index-DeQ-9KTC.js +0 -737
- package/dist/index-Df6OBy4E.js +0 -3041
- package/dist/index-PUuASE1F.js +0 -2507
|
@@ -4,9 +4,9 @@ import { Form as o, Typography as U, Box as S, TextField as T, Skeleton as H, Ca
|
|
|
4
4
|
import { Brain as he, Unlock as ye, Lock as ge, EyeOff as ve, Eye as fe } from "@wso2/oxygen-ui-icons-react";
|
|
5
5
|
import { o as xe, c as Ie, s as I, l as $ } from "./schemas-DFScWdSL.js";
|
|
6
6
|
import { c as be } from "react/compiler-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { y as we, w as Ce } from "./index-ByEInFlf.js";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
|
-
import { P as Te } from "./PolicyListSection-
|
|
9
|
+
import { P as Te } from "./PolicyListSection-D6aVSKwP.js";
|
|
10
10
|
const Ee = /^v\d+\.\d+$/, Se = xe({
|
|
11
11
|
templateId: I().trim().min(1, "Select a provider template"),
|
|
12
12
|
displayName: I().trim().min(1, "Display name is required").min(2, "Display name must be at least 2 characters").max(120, "Display name must be at most 120 characters"),
|
package/package.json
CHANGED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as v, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { useState as S, useRef as O, useEffect as D, useCallback as A, useMemo as T } from "react";
|
|
3
|
-
import { Typography as b, Form as _, Tooltip as k, Stack as N, SearchBar as B, Box as L, Skeleton as H, ListingTable as P, TablePagination as I } from "@wso2/oxygen-ui";
|
|
4
|
-
import { CircleIcon as j, Search as G } from "@wso2/oxygen-ui-icons-react";
|
|
5
|
-
import { c as W } from "react/compiler-runtime";
|
|
6
|
-
import { Link as z } from "react-router-dom";
|
|
7
|
-
const F = (g) => {
|
|
8
|
-
const e = W(26), {
|
|
9
|
-
item: i,
|
|
10
|
-
viewPath: d
|
|
11
|
-
} = g, o = i.description ?? "", r = i.latestVersion ? `Latest: ${i.latestVersion}` : null;
|
|
12
|
-
let u;
|
|
13
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
14
|
-
textDecoration: "none"
|
|
15
|
-
}, e[0] = u) : u = e[0];
|
|
16
|
-
let x;
|
|
17
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
18
|
-
width: "100%",
|
|
19
|
-
textAlign: "left",
|
|
20
|
-
textDecoration: "none",
|
|
21
|
-
height: 160,
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: "column",
|
|
24
|
-
justifyContent: "flex-start"
|
|
25
|
-
}, e[1] = x) : x = e[1];
|
|
26
|
-
let m;
|
|
27
|
-
e[2] !== i.displayName ? (m = /* @__PURE__ */ n(b, { variant: "h6", textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", children: i.displayName }), e[2] = i.displayName, e[3] = m) : m = e[3];
|
|
28
|
-
let l;
|
|
29
|
-
e[4] !== i.displayName || e[5] !== m ? (l = /* @__PURE__ */ n(_.CardHeader, { title: /* @__PURE__ */ n(k, { title: i.displayName, placement: "top", children: m }) }), e[4] = i.displayName, e[5] = m, e[6] = l) : l = e[6];
|
|
30
|
-
let y;
|
|
31
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
32
|
-
width: "100%",
|
|
33
|
-
display: "flex",
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
flexGrow: 1,
|
|
36
|
-
minHeight: 0
|
|
37
|
-
}, e[7] = y) : y = e[7];
|
|
38
|
-
const s = !o;
|
|
39
|
-
let C;
|
|
40
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
41
|
-
display: "-webkit-box",
|
|
42
|
-
WebkitBoxOrient: "vertical",
|
|
43
|
-
WebkitLineClamp: 2,
|
|
44
|
-
overflow: "hidden",
|
|
45
|
-
mb: 1
|
|
46
|
-
}, e[8] = C) : C = e[8];
|
|
47
|
-
const c = o || "No description provided.";
|
|
48
|
-
let h;
|
|
49
|
-
e[9] !== c ? (h = /* @__PURE__ */ n(b, { variant: "caption", color: "text.secondary", sx: C, children: c }), e[9] = c, e[10] = h) : h = e[10];
|
|
50
|
-
let p;
|
|
51
|
-
e[11] !== o || e[12] !== s || e[13] !== h ? (p = /* @__PURE__ */ n(N, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ n(k, { title: o, placement: "top", disableHoverListener: s, children: h }) }), e[11] = o, e[12] = s, e[13] = h, e[14] = p) : p = e[14];
|
|
52
|
-
let f;
|
|
53
|
-
e[15] !== r ? (f = r && /* @__PURE__ */ n(b, { variant: "caption", color: "text.secondary", children: r }), e[15] = r, e[16] = f) : f = e[16];
|
|
54
|
-
let t;
|
|
55
|
-
e[17] !== p || e[18] !== f ? (t = /* @__PURE__ */ v(_.CardContent, { sx: y, children: [
|
|
56
|
-
p,
|
|
57
|
-
f
|
|
58
|
-
] }), e[17] = p, e[18] = f, e[19] = t) : t = e[19];
|
|
59
|
-
let a;
|
|
60
|
-
e[20] !== t || e[21] !== l ? (a = /* @__PURE__ */ v(_.CardButton, { sx: x, children: [
|
|
61
|
-
l,
|
|
62
|
-
t
|
|
63
|
-
] }), e[20] = t, e[21] = l, e[22] = a) : a = e[22];
|
|
64
|
-
let w;
|
|
65
|
-
return e[23] !== a || e[24] !== d ? (w = /* @__PURE__ */ n(z, { to: d, style: u, children: a }), e[23] = a, e[24] = d, e[25] = w) : w = e[25], w;
|
|
66
|
-
}, E = 6, K = [6, 12, 24], M = 300, X = ({
|
|
67
|
-
items: g,
|
|
68
|
-
getViewPath: e,
|
|
69
|
-
isLoading: i
|
|
70
|
-
}) => {
|
|
71
|
-
const [d, o] = S(0), [r, u] = S(E), [x, m] = S(""), [l, y] = S(""), s = O(null);
|
|
72
|
-
D(() => () => {
|
|
73
|
-
s.current && clearTimeout(s.current);
|
|
74
|
-
}, []);
|
|
75
|
-
const C = A((t) => {
|
|
76
|
-
const a = t.target.value;
|
|
77
|
-
m(a), s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
78
|
-
y(a), o(0);
|
|
79
|
-
}, M);
|
|
80
|
-
}, []), c = T(() => {
|
|
81
|
-
const t = l.trim().toLowerCase();
|
|
82
|
-
return t ? g.filter((a) => a.displayName.toLowerCase().includes(t) || a.name.toLowerCase().includes(t) || (a.description ?? "").toLowerCase().includes(t)) : g;
|
|
83
|
-
}, [g, l]), h = T(() => c.slice(d * r, d * r + r), [c, d, r]), p = (t, a) => {
|
|
84
|
-
o(a);
|
|
85
|
-
}, f = (t) => {
|
|
86
|
-
u(parseInt(t.target.value, 10)), o(0);
|
|
87
|
-
};
|
|
88
|
-
return /* @__PURE__ */ v(N, { spacing: 2, children: [
|
|
89
|
-
/* @__PURE__ */ n(N, { direction: "row", justifyContent: "flex-end", children: /* @__PURE__ */ n(B, { placeholder: "Search agent kinds", size: "small", value: x, onChange: C }) }),
|
|
90
|
-
i ? /* @__PURE__ */ n(L, { sx: {
|
|
91
|
-
display: "grid",
|
|
92
|
-
gridTemplateColumns: {
|
|
93
|
-
xs: "repeat(auto-fill, minmax(260px, 1fr))",
|
|
94
|
-
md: "repeat(auto-fill, minmax(300px, 1fr))"
|
|
95
|
-
},
|
|
96
|
-
gap: 2
|
|
97
|
-
}, children: Array.from({
|
|
98
|
-
length: 6
|
|
99
|
-
}).map((t, a) => /* @__PURE__ */ n(H, { variant: "rounded", height: 160 }, a)) }) : g.length === 0 ? /* @__PURE__ */ n(P.Container, { sx: {
|
|
100
|
-
my: 3
|
|
101
|
-
}, children: /* @__PURE__ */ n(P.EmptyState, { illustration: /* @__PURE__ */ n(j, { size: 64 }), title: "No agent kinds available", description: "No agent kinds have been added to the catalog yet." }) }) : c.length === 0 ? /* @__PURE__ */ n(P.Container, { sx: {
|
|
102
|
-
my: 3
|
|
103
|
-
}, children: /* @__PURE__ */ n(P.EmptyState, { illustration: /* @__PURE__ */ n(G, { size: 64 }), title: "No agent kinds match your search", description: "Try a different keyword or clear the search filter." }) }) : /* @__PURE__ */ v(R, { children: [
|
|
104
|
-
/* @__PURE__ */ n(L, { sx: {
|
|
105
|
-
display: "grid",
|
|
106
|
-
gridTemplateColumns: {
|
|
107
|
-
xs: "repeat(auto-fill, minmax(260px, 1fr))",
|
|
108
|
-
md: "repeat(auto-fill, minmax(300px, 1fr))"
|
|
109
|
-
},
|
|
110
|
-
gap: 2
|
|
111
|
-
}, children: h.map((t) => /* @__PURE__ */ n(F, { item: t, viewPath: e(t) }, t.name)) }),
|
|
112
|
-
c.length > E && /* @__PURE__ */ n(I, { component: "div", count: c.length, page: d, rowsPerPage: r, onPageChange: p, onRowsPerPageChange: f, rowsPerPageOptions: K })
|
|
113
|
-
] })
|
|
114
|
-
] });
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
X as C
|
|
118
|
-
};
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, Fragment as ke, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as Te } from "react/compiler-runtime";
|
|
3
|
-
import { i as Fe, c as Oe, aG as $e, j as Ke, g as le, N as Ie, t as Me } from "./index-B_Z0MwXk.js";
|
|
4
|
-
import "@tanstack/react-query";
|
|
5
|
-
import "react";
|
|
6
|
-
import { useTheme as Le, Box as m, Button as re, CircularProgress as Se, Alert as _e, Chip as p, Skeleton as Ue, Typography as Ne, Card as we, CardContent as ze, Divider as We } from "@wso2/oxygen-ui";
|
|
7
|
-
import { Clock as Ee, FlaskConical as Ye, Rocket as Ae, Play as qe, PauseCircle as Pe, CheckCircle as He, Circle as Je, Link as Qe, Tag as Xe } from "@wso2/oxygen-ui-icons-react";
|
|
8
|
-
import { Link as ae, generatePath as oe } from "react-router-dom";
|
|
9
|
-
import { f as Ze } from "./formatDistanceToNow-TErllcH8.js";
|
|
10
|
-
var et = /* @__PURE__ */ ((r) => (r.ACTIVE = "active", r.INACTIVE = "not-deployed", r.DEPLOYING = "in-progress", r.ERROR = "error", r.SUSPENDED = "suspended", r.FAILED = "failed", r))(et || {});
|
|
11
|
-
const ce = (r) => {
|
|
12
|
-
const e = Te(8), {
|
|
13
|
-
status: c
|
|
14
|
-
} = r, l = Le();
|
|
15
|
-
if (!c)
|
|
16
|
-
return null;
|
|
17
|
-
if (c === "active") {
|
|
18
|
-
const t = l.vars?.palette?.success?.main;
|
|
19
|
-
let i;
|
|
20
|
-
return e[0] !== t ? (i = /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(He, { size: 16, color: t }), variant: "outlined", size: "small", label: "Deployed", color: "success" }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
21
|
-
}
|
|
22
|
-
if (c === "not-deployed") {
|
|
23
|
-
const t = l.vars?.palette?.text?.disabled;
|
|
24
|
-
let i;
|
|
25
|
-
return e[2] !== t ? (i = /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(Je, { size: 16, color: t }), variant: "outlined", size: "small", label: "Not Deployed", color: "default" }), e[2] = t, e[3] = i) : i = e[3], i;
|
|
26
|
-
}
|
|
27
|
-
if (c === "in-progress") {
|
|
28
|
-
let t;
|
|
29
|
-
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(Se, { size: 16, color: "warning" }), variant: "outlined", size: "small", label: "Deploying", color: "warning" }), e[4] = t) : t = e[4], t;
|
|
30
|
-
}
|
|
31
|
-
if (c === "error") {
|
|
32
|
-
let t;
|
|
33
|
-
return e[5] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(p, { variant: "outlined", size: "small", label: "Error", color: "error" }), e[5] = t) : t = e[5], t;
|
|
34
|
-
}
|
|
35
|
-
if (c === "failed") {
|
|
36
|
-
let t;
|
|
37
|
-
return e[6] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(p, { variant: "outlined", size: "small", label: "Error", color: "error" }), e[6] = t) : t = e[6], t;
|
|
38
|
-
}
|
|
39
|
-
if (c === "suspended") {
|
|
40
|
-
let t;
|
|
41
|
-
return e[7] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(Pe, { size: 16 }), variant: "outlined", size: "small", label: "Suspended", color: "default" }), e[7] = t) : t = e[7], t;
|
|
42
|
-
}
|
|
43
|
-
}, je = (r) => {
|
|
44
|
-
if (!r)
|
|
45
|
-
return "—";
|
|
46
|
-
const e = r instanceof Date ? r : new Date(r);
|
|
47
|
-
return Number.isNaN(e.getTime()) ? "—" : Ze(e, {
|
|
48
|
-
addSuffix: !0
|
|
49
|
-
});
|
|
50
|
-
}, ft = (r) => {
|
|
51
|
-
const e = Te(120), {
|
|
52
|
-
environment: c,
|
|
53
|
-
orgId: l,
|
|
54
|
-
projectId: t,
|
|
55
|
-
agentId: i,
|
|
56
|
-
actions: y,
|
|
57
|
-
bottomContent: K,
|
|
58
|
-
isFirstEnvironment: Ce
|
|
59
|
-
} = r, M = Ce === void 0 ? !0 : Ce, F = Le();
|
|
60
|
-
let U;
|
|
61
|
-
e[0] !== i || e[1] !== l || e[2] !== t ? (U = {
|
|
62
|
-
orgName: l,
|
|
63
|
-
projName: t,
|
|
64
|
-
agentName: i
|
|
65
|
-
}, e[0] = i, e[1] = l, e[2] = t, e[3] = U) : U = e[3];
|
|
66
|
-
const {
|
|
67
|
-
data: W,
|
|
68
|
-
isLoading: Re
|
|
69
|
-
} = Fe(U), O = W?.provisioning?.type === "external";
|
|
70
|
-
let Y;
|
|
71
|
-
e[4] !== i || e[5] !== l || e[6] !== t ? (Y = {
|
|
72
|
-
orgName: l,
|
|
73
|
-
projName: t,
|
|
74
|
-
agentName: i
|
|
75
|
-
}, e[4] = i, e[5] = l, e[6] = t, e[7] = Y) : Y = e[7];
|
|
76
|
-
const de = !!l && !!t && !!i && !!W && !O;
|
|
77
|
-
let q;
|
|
78
|
-
e[8] !== de ? (q = {
|
|
79
|
-
enabled: de
|
|
80
|
-
}, e[8] = de, e[9] = q) : q = e[9];
|
|
81
|
-
const {
|
|
82
|
-
data: Be,
|
|
83
|
-
isLoading: Ve
|
|
84
|
-
} = Oe(Y, q), ue = W?.kindName, me = ue ?? "";
|
|
85
|
-
let H;
|
|
86
|
-
e[10] !== l || e[11] !== me ? (H = {
|
|
87
|
-
orgName: l,
|
|
88
|
-
kindName: me
|
|
89
|
-
}, e[10] = l, e[11] = me, e[12] = H) : H = e[12];
|
|
90
|
-
const {
|
|
91
|
-
data: g
|
|
92
|
-
} = $e(H), n = Be?.[c?.name ?? ""], v = `${c?.displayName ?? c?.name ?? "Environment"} Environment`, fe = O ? "" : l, pe = O ? "" : t, ge = O ? "" : i;
|
|
93
|
-
let J;
|
|
94
|
-
e[13] !== fe || e[14] !== pe || e[15] !== ge ? (J = {
|
|
95
|
-
orgName: fe,
|
|
96
|
-
projName: pe,
|
|
97
|
-
agentName: ge
|
|
98
|
-
}, e[13] = fe, e[14] = pe, e[15] = ge, e[16] = J) : J = e[16];
|
|
99
|
-
const {
|
|
100
|
-
data: he
|
|
101
|
-
} = Ke(J);
|
|
102
|
-
let Q;
|
|
103
|
-
e[17] !== he?.builds ? (Q = he?.builds?.some(tt) ?? !1, e[17] = he?.builds, e[18] = Q) : Q = e[18];
|
|
104
|
-
const X = Q;
|
|
105
|
-
let ye;
|
|
106
|
-
e: {
|
|
107
|
-
if (!n?.imageId || !ue) {
|
|
108
|
-
ye = null;
|
|
109
|
-
break e;
|
|
110
|
-
}
|
|
111
|
-
let a;
|
|
112
|
-
e[19] !== n || e[20] !== g ? (a = g?.find((d) => d.imageId === n.imageId), e[19] = n, e[20] = g, e[21] = a) : a = e[21], ye = a?.version ?? null;
|
|
113
|
-
}
|
|
114
|
-
const h = ye, Z = h ? `v${h}` : null;
|
|
115
|
-
let ee;
|
|
116
|
-
e[22] !== g ? (ee = g?.length ? [...g].sort(st)[0] : void 0, e[22] = g, e[23] = ee) : ee = e[23];
|
|
117
|
-
const $ = ee, te = !!ue && !!$ && !!h && h !== $.version;
|
|
118
|
-
if (Re || Ve) {
|
|
119
|
-
let a;
|
|
120
|
-
return e[24] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ s(Ue, { variant: "rounded", height: 100 }), e[24] = a) : a = e[24], a;
|
|
121
|
-
}
|
|
122
|
-
if (O) {
|
|
123
|
-
let a;
|
|
124
|
-
e[25] !== v ? (a = /* @__PURE__ */ s(Ne, { variant: "h6", children: v }), e[25] = v, e[26] = a) : a = e[26];
|
|
125
|
-
const u = F.vars?.palette?.success?.main;
|
|
126
|
-
let d;
|
|
127
|
-
e[27] !== u ? (d = /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(Qe, { size: 16, color: u }), variant: "outlined", size: "small", label: "Registered", color: "success" }), e[27] = u, e[28] = d) : d = e[28];
|
|
128
|
-
const f = F.vars?.palette?.text?.secondary;
|
|
129
|
-
let S;
|
|
130
|
-
e[29] !== f ? (S = /* @__PURE__ */ s(Ee, { size: 16, color: f }), e[29] = f, e[30] = S) : S = e[30];
|
|
131
|
-
const De = W?.createdAt;
|
|
132
|
-
let P;
|
|
133
|
-
e[31] !== De ? (P = je(De), e[31] = De, e[32] = P) : P = e[32];
|
|
134
|
-
let R;
|
|
135
|
-
e[33] !== S || e[34] !== P ? (R = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
136
|
-
S,
|
|
137
|
-
P
|
|
138
|
-
] }), e[33] = S, e[34] = P, e[35] = R) : R = e[35];
|
|
139
|
-
let B;
|
|
140
|
-
e[36] !== a || e[37] !== d || e[38] !== R ? (B = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
141
|
-
a,
|
|
142
|
-
d,
|
|
143
|
-
R
|
|
144
|
-
] }), e[36] = a, e[37] = d, e[38] = R, e[39] = B) : B = e[39];
|
|
145
|
-
let V;
|
|
146
|
-
e[40] !== y ? (V = /* @__PURE__ */ s(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: y }), e[40] = y, e[41] = V) : V = e[41];
|
|
147
|
-
let G;
|
|
148
|
-
e[42] !== B || e[43] !== V ? (G = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, justifyContent: "space-between", alignItems: "center", children: [
|
|
149
|
-
B,
|
|
150
|
-
V
|
|
151
|
-
] }), e[42] = B, e[43] = V, e[44] = G) : G = e[44];
|
|
152
|
-
let ie;
|
|
153
|
-
return e[45] !== K || e[46] !== G ? (ie = /* @__PURE__ */ s(we, { variant: "outlined", children: /* @__PURE__ */ o(ze, { children: [
|
|
154
|
-
G,
|
|
155
|
-
K
|
|
156
|
-
] }) }), e[45] = K, e[46] = G, e[47] = ie) : ie = e[47], ie;
|
|
157
|
-
}
|
|
158
|
-
if (!n) {
|
|
159
|
-
let a;
|
|
160
|
-
e[48] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
161
|
-
"&.MuiCard-root": {
|
|
162
|
-
backgroundColor: "background.paper"
|
|
163
|
-
}
|
|
164
|
-
}, e[48] = a) : a = e[48];
|
|
165
|
-
let u;
|
|
166
|
-
e[49] !== v ? (u = /* @__PURE__ */ s(Ne, { variant: "h6", children: v }), e[49] = v, e[50] = u) : u = e[50];
|
|
167
|
-
let d;
|
|
168
|
-
e[51] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(ce, {
|
|
169
|
-
status: "not-deployed"
|
|
170
|
-
/* INACTIVE */
|
|
171
|
-
}), e[51] = d) : d = e[51];
|
|
172
|
-
let f;
|
|
173
|
-
return e[52] !== u ? (f = /* @__PURE__ */ s(we, { variant: "outlined", sx: a, children: /* @__PURE__ */ s(ze, { children: /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
174
|
-
u,
|
|
175
|
-
d
|
|
176
|
-
] }) }) }), e[52] = u, e[53] = f) : f = e[53], f;
|
|
177
|
-
}
|
|
178
|
-
const ve = n.status, Ge = ve === "active" || ve === "error" || ve === "failed", be = c?.displayName;
|
|
179
|
-
let b;
|
|
180
|
-
e[54] !== be ? (b = /* @__PURE__ */ o(Ne, { variant: "h6", children: [
|
|
181
|
-
be,
|
|
182
|
-
" Environment"
|
|
183
|
-
] }), e[54] = be, e[55] = b) : b = e[55];
|
|
184
|
-
let x;
|
|
185
|
-
e[56] !== n.lastDeployed || e[57] !== n.status || e[58] !== F ? (x = n?.status === "active" && /* @__PURE__ */ o(ke, { children: [
|
|
186
|
-
/* @__PURE__ */ s(ce, {
|
|
187
|
-
status: "active"
|
|
188
|
-
/* ACTIVE */
|
|
189
|
-
}),
|
|
190
|
-
/* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
191
|
-
/* @__PURE__ */ s(Ee, { size: 16, color: F.vars?.palette?.text?.secondary }),
|
|
192
|
-
je(n?.lastDeployed)
|
|
193
|
-
] })
|
|
194
|
-
] }), e[56] = n.lastDeployed, e[57] = n.status, e[58] = F, e[59] = x) : x = e[59];
|
|
195
|
-
let D;
|
|
196
|
-
e[60] !== n.status ? (D = (n?.status === "error" || n?.status === "failed") && /* @__PURE__ */ s(ce, { status: n.status }), e[60] = n.status, e[61] = D) : D = e[61];
|
|
197
|
-
let I;
|
|
198
|
-
e[62] !== n.status ? (I = n?.status === "suspended" && /* @__PURE__ */ s(ce, {
|
|
199
|
-
status: "suspended"
|
|
200
|
-
/* SUSPENDED */
|
|
201
|
-
}), e[62] = n.status, e[63] = I) : I = e[63];
|
|
202
|
-
let N;
|
|
203
|
-
e[64] !== b || e[65] !== x || e[66] !== D || e[67] !== I ? (N = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
204
|
-
b,
|
|
205
|
-
x,
|
|
206
|
-
D,
|
|
207
|
-
I
|
|
208
|
-
] }), e[64] = b, e[65] = x, e[66] = D, e[67] = I, e[68] = N) : N = e[68];
|
|
209
|
-
let w;
|
|
210
|
-
e[69] !== Z ? (w = Z && /* @__PURE__ */ s(p, { icon: /* @__PURE__ */ s(Xe, { size: 14 }), label: Z, size: "small", variant: "outlined" }), e[69] = Z, e[70] = w) : w = e[70];
|
|
211
|
-
let z;
|
|
212
|
-
e[71] !== y || e[72] !== i || e[73] !== n.status || e[74] !== c?.name || e[75] !== l || e[76] !== t ? (z = n?.status === "active" && /* @__PURE__ */ o(ke, { children: [
|
|
213
|
-
/* @__PURE__ */ s(re, { startIcon: /* @__PURE__ */ s(Ye, { size: 16 }), variant: "text", component: ae, to: oe(le.children.org.children.projects.children.agents.children.environment.children.tryOut.path, {
|
|
214
|
-
orgId: l,
|
|
215
|
-
projectId: t,
|
|
216
|
-
agentId: i,
|
|
217
|
-
envId: c?.name ?? ""
|
|
218
|
-
}), color: "primary", size: "small", children: "Try It" }),
|
|
219
|
-
y
|
|
220
|
-
] }), e[71] = y, e[72] = i, e[73] = n.status, e[74] = c?.name, e[75] = l, e[76] = t, e[77] = z) : z = e[77];
|
|
221
|
-
let C;
|
|
222
|
-
e[78] !== w || e[79] !== z ? (C = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
223
|
-
w,
|
|
224
|
-
z
|
|
225
|
-
] }), e[78] = w, e[79] = z, e[80] = C) : C = e[80];
|
|
226
|
-
let k;
|
|
227
|
-
e[81] !== N || e[82] !== C ? (k = /* @__PURE__ */ o(m, { display: "flex", flexDirection: "row", gap: 1, pb: 1, justifyContent: "space-between", alignItems: "center", children: [
|
|
228
|
-
N,
|
|
229
|
-
C
|
|
230
|
-
] }), e[81] = N, e[82] = C, e[83] = k) : k = e[83];
|
|
231
|
-
let se;
|
|
232
|
-
e[84] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ s(We, {}), e[84] = se) : se = e[84];
|
|
233
|
-
let _;
|
|
234
|
-
e[85] !== i || e[86] !== n.status || e[87] !== X || e[88] !== M || e[89] !== l || e[90] !== t ? (_ = n.status === "not-deployed" && /* @__PURE__ */ s(Ie, { disableBackground: !0, message: "Not Deployed", icon: /* @__PURE__ */ s(Ae, { size: 32 }), subtitle: X ? M ? "A successful build is available. Deploy it to get started." : "Promote a deployment from the previous environment to get started." : "No successful build found. Build the agent before deploying.", action: X && /* @__PURE__ */ s(re, { startIcon: /* @__PURE__ */ s(Ae, { size: 16 }), variant: "outlined", component: ae, to: oe(le.children.org.children.projects.children.agents.children.deployment.path, {
|
|
235
|
-
orgId: l,
|
|
236
|
-
projectId: t,
|
|
237
|
-
agentId: i
|
|
238
|
-
}), size: "small", children: M ? "Go to Deployment" : "Promote" }) }), e[85] = i, e[86] = n.status, e[87] = X, e[88] = M, e[89] = l, e[90] = t, e[91] = _) : _ = e[91];
|
|
239
|
-
let E;
|
|
240
|
-
e[92] !== n.status ? (E = n.status === "in-progress" && /* @__PURE__ */ s(Ie, { disableBackground: !0, message: "Deploying...", icon: /* @__PURE__ */ s(Se, { size: 32 }) }), e[92] = n.status, e[93] = E) : E = e[93];
|
|
241
|
-
let A;
|
|
242
|
-
e[94] !== i || e[95] !== n.status || e[96] !== l || e[97] !== t ? (A = (n.status === "error" || n.status === "failed") && /* @__PURE__ */ s(_e, { severity: "error", sx: {
|
|
243
|
-
width: "100%"
|
|
244
|
-
}, action: /* @__PURE__ */ s(re, { component: ae, to: oe(le.children.org.children.projects.children.agents.children.deployment.path, {
|
|
245
|
-
orgId: l,
|
|
246
|
-
projectId: t,
|
|
247
|
-
agentId: i
|
|
248
|
-
}), color: "inherit", size: "small", children: "View Deployment" }), children: "Deployment failed. Check the deployment page for more details." }), e[94] = i, e[95] = n.status, e[96] = l, e[97] = t, e[98] = A) : A = e[98];
|
|
249
|
-
let j;
|
|
250
|
-
e[99] !== i || e[100] !== n.status || e[101] !== l || e[102] !== t ? (j = n.status === "suspended" && /* @__PURE__ */ s(Ie, { disableBackground: !0, message: "Suspended", icon: /* @__PURE__ */ s(Pe, { size: 32 }), subtitle: "This deployment is currently suspended. Resume it from the deployment page to make the agent available again.", action: /* @__PURE__ */ s(re, { startIcon: /* @__PURE__ */ s(qe, { size: 16 }), variant: "outlined", component: ae, to: oe(le.children.org.children.projects.children.agents.children.deployment.path, {
|
|
251
|
-
orgId: l,
|
|
252
|
-
projectId: t,
|
|
253
|
-
agentId: i
|
|
254
|
-
}), size: "small", children: "Go to Deployment" }) }), e[99] = i, e[100] = n.status, e[101] = l, e[102] = t, e[103] = j) : j = e[103];
|
|
255
|
-
let T;
|
|
256
|
-
e[104] !== n.endpoints || e[105] !== n.status || e[106] !== h || e[107] !== te || e[108] !== $ ? (T = n.status === "active" && /* @__PURE__ */ o(m, { display: "flex", flexGrow: 1, flexDirection: "column", width: "100%", gap: te ? 2 : 4, alignItems: "flex-start", children: [
|
|
257
|
-
te && /* @__PURE__ */ o(_e, { severity: "warning", sx: {
|
|
258
|
-
width: "100%"
|
|
259
|
-
}, children: [
|
|
260
|
-
"A newer version of this Agent Kind is available: ",
|
|
261
|
-
/* @__PURE__ */ o("strong", { children: [
|
|
262
|
-
"v",
|
|
263
|
-
$.version
|
|
264
|
-
] }),
|
|
265
|
-
".",
|
|
266
|
-
" ",
|
|
267
|
-
"Currently deployed: ",
|
|
268
|
-
/* @__PURE__ */ o("strong", { children: [
|
|
269
|
-
"v",
|
|
270
|
-
h
|
|
271
|
-
] }),
|
|
272
|
-
"."
|
|
273
|
-
] }),
|
|
274
|
-
n.endpoints?.map(nt)
|
|
275
|
-
] }), e[104] = n.endpoints, e[105] = n.status, e[106] = h, e[107] = te, e[108] = $, e[109] = T) : T = e[109];
|
|
276
|
-
let L;
|
|
277
|
-
e[110] !== _ || e[111] !== E || e[112] !== A || e[113] !== j || e[114] !== T ? (L = /* @__PURE__ */ o(m, { display: "flex", width: "100%", justifyContent: "center", flexDirection: "column", gap: 1, pt: 2, alignItems: "center", children: [
|
|
278
|
-
_,
|
|
279
|
-
E,
|
|
280
|
-
A,
|
|
281
|
-
j,
|
|
282
|
-
T
|
|
283
|
-
] }), e[110] = _, e[111] = E, e[112] = A, e[113] = j, e[114] = T, e[115] = L) : L = e[115];
|
|
284
|
-
const xe = Ge && K;
|
|
285
|
-
let ne;
|
|
286
|
-
return e[116] !== k || e[117] !== L || e[118] !== xe ? (ne = /* @__PURE__ */ s(we, { variant: "outlined", children: /* @__PURE__ */ o(ze, { children: [
|
|
287
|
-
k,
|
|
288
|
-
se,
|
|
289
|
-
L,
|
|
290
|
-
xe
|
|
291
|
-
] }) }), e[116] = k, e[117] = L, e[118] = xe, e[119] = ne) : ne = e[119], ne;
|
|
292
|
-
};
|
|
293
|
-
function tt(r) {
|
|
294
|
-
return r.status === "Succeeded" || r.status === "Completed";
|
|
295
|
-
}
|
|
296
|
-
function st(r, e) {
|
|
297
|
-
return new Date(e.createdAt).getTime() - new Date(r.createdAt).getTime();
|
|
298
|
-
}
|
|
299
|
-
function nt(r) {
|
|
300
|
-
return /* @__PURE__ */ s(Me, { slotProps: {
|
|
301
|
-
input: {
|
|
302
|
-
readOnly: !0
|
|
303
|
-
}
|
|
304
|
-
}, label: "URL", value: r.url, fullWidth: !0 }, r.url);
|
|
305
|
-
}
|
|
306
|
-
export {
|
|
307
|
-
et as D,
|
|
308
|
-
ft as E,
|
|
309
|
-
ce as a
|
|
310
|
-
};
|