@wso2/am-core-ui 0.0.17 → 0.0.19
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/APIKeysManager-C0phJriD.js +241 -0
- package/dist/CatalogKindListing-DtFI2YMG.js +118 -0
- package/dist/CodeBlock-mB_Loq7I.js +21736 -0
- package/dist/EnvironmentCard-09h1XRxx.js +310 -0
- package/dist/EnvironmentSelector-B7Bl93s2.js +48 -0
- package/dist/MCPLogo-D9IJzzl7.js +30 -0
- package/dist/PolicyListSection-o4k9e8XO.js +2475 -0
- package/dist/ResourceListShell-Cx6mdeqv.js +463 -0
- package/dist/SwaggerSpecViewer-BvkhoKsi.js +106 -0
- package/dist/clipboard-YAzStmkw.js +23 -0
- package/dist/debounce-BV83M53b.js +208 -0
- package/dist/format-BEZZRyE2.js +29 -0
- package/dist/formatDistanceToNow-TErllcH8.js +100 -0
- package/dist/gatewayScripts-D8O45W8u.js +72 -0
- package/dist/highlight-BsUzxSR3.js +454 -0
- package/dist/index-B52h3RHg.js +1290 -0
- package/dist/index-BP5drcF2.js +1265 -0
- package/dist/index-BZ4vxviI.js +7981 -0
- package/dist/index-B_Z0MwXk.js +25012 -0
- package/dist/index-BfjzUWDa.js +1397 -0
- package/dist/{index-CDm_burV.js → index-BnV-PkwM.js} +22 -20
- package/dist/index-CGDYgUCH.js +711 -0
- package/dist/index-COt7nJIf.js +2286 -0
- package/dist/index-CWZjOy1h.js +2247 -0
- package/dist/index-CezvogTQ.js +116 -0
- package/dist/index-CgCWbWzN.js +2342 -0
- package/dist/index-CjCkcuuI.js +322 -0
- package/dist/index-CjXvuf9m.js +1354 -0
- package/dist/index-DD4qF7gq.js +2340 -0
- package/dist/index-DeQ-9KTC.js +737 -0
- package/dist/index-Df6OBy4E.js +3041 -0
- package/dist/index-KRsV2L4V.js +1564 -0
- package/dist/index-PUuASE1F.js +2507 -0
- package/dist/index-PWsNvJB-.js +546 -0
- package/dist/index-UqDmyMSA.js +119 -0
- package/dist/index-_0Pj_ZtW.js +459 -0
- package/dist/{index-DJABKRWO.js → index-sr-mWz4T.js} +31 -30
- package/dist/index.d.ts +496 -200
- package/dist/index.js +462 -439
- package/dist/llmProviderPayload-CzihkdNa.js +332 -0
- package/dist/schemas-DFScWdSL.js +2969 -0
- package/package.json +1 -1
- package/dist/index-B0d-vovv.js +0 -236
- package/dist/index-CCmLfbLS.js +0 -80707
- package/dist/index-qanXZe0s.js +0 -3037
|
@@ -0,0 +1,310 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as u, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { c as y } from "react/compiler-runtime";
|
|
3
|
+
import { MenuItem as E, Typography as I, FormControl as N, Select as x } from "@wso2/oxygen-ui";
|
|
4
|
+
import { useParams as j, useLocation as S, useNavigate as $ } from "react-router-dom";
|
|
5
|
+
import { k as C } from "./index-B_Z0MwXk.js";
|
|
6
|
+
function L() {
|
|
7
|
+
const e = y(19), {
|
|
8
|
+
orgId: v,
|
|
9
|
+
projectId: h,
|
|
10
|
+
envId: n
|
|
11
|
+
} = j(), {
|
|
12
|
+
pathname: c
|
|
13
|
+
} = S(), p = $(), i = C(v, h);
|
|
14
|
+
let m;
|
|
15
|
+
if (e[0] !== n || e[1] !== i) {
|
|
16
|
+
let t;
|
|
17
|
+
e[3] !== n ? (t = (d) => d.name === n, e[3] = n, e[4] = t) : t = e[4], m = i.find(t), e[0] = n, e[1] = i, e[2] = m;
|
|
18
|
+
} else
|
|
19
|
+
m = e[2];
|
|
20
|
+
const f = m;
|
|
21
|
+
if (!n || i.length <= 1)
|
|
22
|
+
return null;
|
|
23
|
+
let a;
|
|
24
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
25
|
+
minWidth: 160
|
|
26
|
+
}, e[5] = a) : a = e[5];
|
|
27
|
+
let r;
|
|
28
|
+
e[6] !== n || e[7] !== p || e[8] !== c ? (r = (t) => {
|
|
29
|
+
const d = t.target.value;
|
|
30
|
+
p(c.replace(`/environment/${n}`, `/environment/${d}`));
|
|
31
|
+
}, e[6] = n, e[7] = p, e[8] = c, e[9] = r) : r = e[9];
|
|
32
|
+
let l;
|
|
33
|
+
e[10] !== f?.displayName ? (l = (t) => /* @__PURE__ */ g(I, { children: [
|
|
34
|
+
f?.displayName ?? t,
|
|
35
|
+
" ",
|
|
36
|
+
"Environment"
|
|
37
|
+
] }), e[10] = f?.displayName, e[11] = l) : l = e[11];
|
|
38
|
+
let o;
|
|
39
|
+
e[12] !== i ? (o = i.map(P), e[12] = i, e[13] = o) : o = e[13];
|
|
40
|
+
let s;
|
|
41
|
+
return e[14] !== n || e[15] !== r || e[16] !== l || e[17] !== o ? (s = /* @__PURE__ */ u(N, { size: "small", sx: a, children: /* @__PURE__ */ u(x, { value: n, onChange: r, renderValue: l, children: o }) }), e[14] = n, e[15] = r, e[16] = l, e[17] = o, e[18] = s) : s = e[18], s;
|
|
42
|
+
}
|
|
43
|
+
function P(e) {
|
|
44
|
+
return /* @__PURE__ */ u(E, { value: e.name, children: e.displayName ?? e.name }, e.name);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
L as E
|
|
48
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as C } from "react/compiler-runtime";
|
|
3
|
+
const e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAA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JACUkAKSAEpIAWkgBR4gQL/A8XK9LF15GsEAAAAAElFTkSuQmCC", n = (M) => {
|
|
4
|
+
const A = C(5), {
|
|
5
|
+
size: B,
|
|
6
|
+
className: m
|
|
7
|
+
} = M, t = B === void 0 ? 20 : B;
|
|
8
|
+
let s;
|
|
9
|
+
A[0] !== t ? (s = {
|
|
10
|
+
backgroundColor: "currentColor",
|
|
11
|
+
color: "inherit",
|
|
12
|
+
display: "inline-block",
|
|
13
|
+
height: t,
|
|
14
|
+
maskImage: `url(${e})`,
|
|
15
|
+
maskPosition: "center",
|
|
16
|
+
maskRepeat: "no-repeat",
|
|
17
|
+
maskSize: "contain",
|
|
18
|
+
WebkitMaskImage: `url(${e})`,
|
|
19
|
+
WebkitMaskPosition: "center",
|
|
20
|
+
WebkitMaskRepeat: "no-repeat",
|
|
21
|
+
WebkitMaskSize: "contain",
|
|
22
|
+
verticalAlign: "middle",
|
|
23
|
+
width: t
|
|
24
|
+
}, A[0] = t, A[1] = s) : s = A[1];
|
|
25
|
+
let g;
|
|
26
|
+
return A[2] !== m || A[3] !== s ? (g = /* @__PURE__ */ c("span", { "aria-hidden": "true", className: m, style: s }), A[2] = m, A[3] = s, A[4] = g) : g = A[4], g;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
n as M
|
|
30
|
+
};
|