@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
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as gt } from "react/jsx-runtime";
|
|
2
2
|
import { c as $e } from "react/compiler-runtime";
|
|
3
|
-
import { useState as se, useEffect as
|
|
4
|
-
import { useTheme as sn, alpha as ut, Typography as V, Box as K, Tooltip as pt, Stack as F, Button as ne, Card as
|
|
3
|
+
import { useState as se, useEffect as Ee, useMemo as Qe, useCallback as Se, createElement as lt, useRef as ot, Fragment as zn } from "react";
|
|
4
|
+
import { useTheme as sn, alpha as ut, Typography as V, Box as K, Tooltip as pt, Stack as F, Button as ne, Card as Ie, CardContent as ze, CircularProgress as tt, Form as O, ListItem as cn, ListItemButton as dn, ListItemText as mn, List as un, Divider as We, FormControl as Ue, RadioGroup as Ln, FormControlLabel as je, Radio as _t, Collapse as nt, FormLabel as Ge, TextField as Pe, Alert as xt, Autocomplete as st, Chip as Je, FormHelperText as Gt, Switch as yt, Accordion as Vn, AccordionSummary as Mn, AccordionDetails as On, Checkbox as Kt, Select as jt, MenuItem as Be, IconButton as Dt, Menu as Un, Skeleton as qn } from "@wso2/oxygen-ui";
|
|
5
5
|
import { useParams as $t, useSearchParams as hn, Link as Ye, generatePath as Ze } from "react-router-dom";
|
|
6
|
-
import {
|
|
6
|
+
import { as as Yt, at as Fn, au as pn, av as fn, aw as Ht, ax as It, ay as gn, az as jn, aA as yn, aB as vn, D as it, s as rt, t as at, aC as bn, h as kt, o as Et, p as Bn, u as Wn, N as wt, aD as $n, aE as Sn, y as Hn, aF as Gn, aG as Cn, G as Rn, aH as Nn, aI as Kn, c as xn, aJ as Yn, aK as Zn, d as Xn, T as Jn, aL as Qn, n as Tt, g as Xe, E as ei, F as ti, P as ni } from "./index-ByEInFlf.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
|
-
import { SlidersVertical as ht, Plus as Pt, GitCommit as kn, Clock as vt, Package as ii, Check as Bt, Tag as wn, Edit as Zt, Rocket as ft, Shield as ri, ChevronDown as ai, Settings as li, ArrowUpFromLine as Pn, ExternalLink as Xt, Globe as oi, Key as
|
|
9
|
-
import { o as yi, n as
|
|
10
|
-
import { D as
|
|
11
|
-
import { f as Si } from "./formatDistanceToNow-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
import { SlidersVertical as ht, Plus as Pt, GitCommit as kn, Clock as vt, Package as ii, Check as Bt, Tag as wn, Edit as Zt, Rocket as ft, Shield as ri, ChevronDown as ai, Settings as li, ArrowUpFromLine as Pn, ExternalLink as Xt, Globe as oi, Key as Jt, Workflow as Qt, Info as In, MoreHorizontal as si, PauseCircle as ci, PlayCircle as di, FlaskConical as mi, ScrollText as ui, LineChart as hi, SquareStack as pi, Cpu as fi, MemoryStick as gi } from "@wso2/oxygen-ui-icons-react";
|
|
9
|
+
import { o as yi, n as zt, b as vi, s as Rt } from "./schemas-DFScWdSL.js";
|
|
10
|
+
import { D as Te, a as bi } from "./EnvironmentCard-CIXhDhlZ.js";
|
|
11
|
+
import { f as Si } from "./formatDistanceToNow-DyjnT7l9.js";
|
|
12
|
+
import { I as Ci } from "./IsolationTierIndicator-cf90kgjL.js";
|
|
13
|
+
function En(n, e) {
|
|
14
|
+
const i = () => Fn(e?.in, NaN), l = ki(n);
|
|
14
15
|
let c;
|
|
15
16
|
if (l.date) {
|
|
16
|
-
const m =
|
|
17
|
-
c =
|
|
17
|
+
const m = wi(l.date, 2);
|
|
18
|
+
c = Pi(m.restDateString, m.year);
|
|
18
19
|
}
|
|
19
20
|
if (!c || isNaN(+c)) return i();
|
|
20
21
|
const a = +c;
|
|
21
22
|
let o = 0, y;
|
|
22
|
-
if (l.time && (o =
|
|
23
|
+
if (l.time && (o = Ii(l.time), isNaN(o)))
|
|
23
24
|
return i();
|
|
24
25
|
if (l.timezone) {
|
|
25
26
|
if (y = Ei(l.timezone), isNaN(y)) return i();
|
|
@@ -42,8 +43,8 @@ const Nt = {
|
|
|
42
43
|
dateTimeDelimiter: /[T ]/,
|
|
43
44
|
timeZoneDelimiter: /[Z ]/i,
|
|
44
45
|
timezone: /([Z+-].*)$/
|
|
45
|
-
},
|
|
46
|
-
function
|
|
46
|
+
}, Ri = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Ni = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, xi = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
47
|
+
function ki(n) {
|
|
47
48
|
const e = {}, i = n.split(Nt.dateTimeDelimiter);
|
|
48
49
|
let r;
|
|
49
50
|
if (i.length > 2)
|
|
@@ -57,7 +58,7 @@ function xi(n) {
|
|
|
57
58
|
}
|
|
58
59
|
return e;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function wi(n, e) {
|
|
61
62
|
const i = new RegExp(
|
|
62
63
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
|
|
63
64
|
), r = n.match(i);
|
|
@@ -68,36 +69,36 @@ function ki(n, e) {
|
|
|
68
69
|
restDateString: n.slice((r[1] || r[2]).length)
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Pi(n, e) {
|
|
72
73
|
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
73
|
-
const i = n.match(
|
|
74
|
+
const i = n.match(Ri);
|
|
74
75
|
if (!i) return /* @__PURE__ */ new Date(NaN);
|
|
75
76
|
const r = !!i[4], l = ct(i[1]), c = ct(i[2]) - 1, a = ct(i[3]), o = ct(i[4]), y = ct(i[5]) - 1;
|
|
76
77
|
if (r)
|
|
77
78
|
return zi(e, o, y) ? Ai(e, o, y) : /* @__PURE__ */ new Date(NaN);
|
|
78
79
|
{
|
|
79
80
|
const m = /* @__PURE__ */ new Date(0);
|
|
80
|
-
return !
|
|
81
|
+
return !Di(e, c, a) || !Ti(e, l) ? /* @__PURE__ */ new Date(NaN) : (m.setUTCFullYear(e, c, Math.max(l, a)), m);
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
function ct(n) {
|
|
84
85
|
return n ? parseInt(n) : 1;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
const e = n.match(
|
|
87
|
+
function Ii(n) {
|
|
88
|
+
const e = n.match(Ni);
|
|
88
89
|
if (!e) return NaN;
|
|
89
90
|
const i = Lt(e[1]), r = Lt(e[2]), l = Lt(e[3]);
|
|
90
|
-
return
|
|
91
|
+
return Li(i, r, l) ? i * pn + r * fn + l * 1e3 : NaN;
|
|
91
92
|
}
|
|
92
93
|
function Lt(n) {
|
|
93
94
|
return n && parseFloat(n.replace(",", ".")) || 0;
|
|
94
95
|
}
|
|
95
96
|
function Ei(n) {
|
|
96
97
|
if (n === "Z") return 0;
|
|
97
|
-
const e = n.match(
|
|
98
|
+
const e = n.match(xi);
|
|
98
99
|
if (!e) return 0;
|
|
99
100
|
const i = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), l = e[3] && parseInt(e[3]) || 0;
|
|
100
|
-
return
|
|
101
|
+
return Vi(r, l) ? i * (r * pn + l * fn) : NaN;
|
|
101
102
|
}
|
|
102
103
|
function Ai(n, e, i) {
|
|
103
104
|
const r = /* @__PURE__ */ new Date(0);
|
|
@@ -105,23 +106,23 @@ function Ai(n, e, i) {
|
|
|
105
106
|
const l = r.getUTCDay() || 7, c = (e - 1) * 7 + i + 1 - l;
|
|
106
107
|
return r.setUTCDate(r.getUTCDate() + c), r;
|
|
107
108
|
}
|
|
108
|
-
const
|
|
109
|
-
function
|
|
109
|
+
const _i = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
110
|
+
function An(n) {
|
|
110
111
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
return e >= 0 && e <= 11 && i >= 1 && i <= (
|
|
113
|
+
function Di(n, e, i) {
|
|
114
|
+
return e >= 0 && e <= 11 && i >= 1 && i <= (_i[e] || (An(n) ? 29 : 28));
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
return e >= 1 && e <= (
|
|
116
|
+
function Ti(n, e) {
|
|
117
|
+
return e >= 1 && e <= (An(n) ? 366 : 365);
|
|
117
118
|
}
|
|
118
119
|
function zi(n, e, i) {
|
|
119
120
|
return e >= 1 && e <= 53 && i >= 0 && i <= 6;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Li(n, e, i) {
|
|
122
123
|
return n === 24 ? e === 0 && i === 0 : i >= 0 && i < 60 && e >= 0 && e < 60 && n >= 0 && n < 25;
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
+
function Vi(n, e) {
|
|
125
126
|
return e >= 0 && e <= 59;
|
|
126
127
|
}
|
|
127
128
|
function en(n, e) {
|
|
@@ -132,7 +133,7 @@ function tn(n, e) {
|
|
|
132
133
|
const i = n / e * 100;
|
|
133
134
|
return i > 90 ? "error" : i > 70 ? "warning" : "success";
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function Mi(n, e) {
|
|
136
137
|
if (!e || e === "default")
|
|
137
138
|
return {
|
|
138
139
|
bgcolor: n.vars?.palette?.background?.default ?? n.palette?.background?.default,
|
|
@@ -157,33 +158,33 @@ function Vt(n) {
|
|
|
157
158
|
secondaryVariant: o
|
|
158
159
|
} = n, y = sn();
|
|
159
160
|
let m;
|
|
160
|
-
e[0] !== o || e[1] !== y ? (m =
|
|
161
|
+
e[0] !== o || e[1] !== y ? (m = Mi(y, o), e[0] = o, e[1] = y, e[2] = m) : m = e[2];
|
|
161
162
|
const g = m, u = c ?? "—";
|
|
162
163
|
let P;
|
|
163
164
|
e[3] !== u ? (P = /* @__PURE__ */ t(V, { variant: "caption", fontWeight: 600, children: u }), e[3] = u, e[4] = P) : P = e[4];
|
|
164
|
-
let
|
|
165
|
-
e[5] !== g || e[6] !== P ? (
|
|
166
|
-
const R =
|
|
165
|
+
let I;
|
|
166
|
+
e[5] !== g || e[6] !== P ? (I = /* @__PURE__ */ t(K, { component: "span", borderRadius: 0.5, px: 0.75, sx: g, children: P }), e[5] = g, e[6] = P, e[7] = I) : I = e[7];
|
|
167
|
+
const R = I, z = y.vars?.palette?.background?.default, v = `1px solid ${y.vars?.palette?.divider}`;
|
|
167
168
|
let p;
|
|
168
169
|
e[8] !== i ? (p = /* @__PURE__ */ t(K, { display: "flex", alignItems: "center", justifyContent: "center", children: i }), e[8] = i, e[9] = p) : p = e[9];
|
|
169
170
|
let L;
|
|
170
171
|
e[10] !== r || e[11] !== p ? (L = /* @__PURE__ */ t(pt, { title: r, children: p }), e[10] = r, e[11] = p, e[12] = L) : L = e[12];
|
|
171
172
|
let _;
|
|
172
173
|
e[13] !== l ? (_ = /* @__PURE__ */ t(V, { variant: "caption", children: l }), e[13] = l, e[14] = _) : _ = e[14];
|
|
173
|
-
let
|
|
174
|
-
e[15] !== R || e[16] !== a ? (
|
|
174
|
+
let E;
|
|
175
|
+
e[15] !== R || e[16] !== a ? (E = a ? /* @__PURE__ */ t(pt, { title: a, children: R }) : R, e[15] = R, e[16] = a, e[17] = E) : E = e[17];
|
|
175
176
|
let w;
|
|
176
|
-
e[18] !==
|
|
177
|
+
e[18] !== E || e[19] !== _ ? (w = /* @__PURE__ */ s(F, { direction: "row", gap: 0.75, alignItems: "center", children: [
|
|
177
178
|
_,
|
|
178
|
-
|
|
179
|
-
] }), e[18] =
|
|
179
|
+
E
|
|
180
|
+
] }), e[18] = E, e[19] = _, e[20] = w) : w = e[20];
|
|
180
181
|
let f;
|
|
181
182
|
e[21] !== w || e[22] !== L ? (f = /* @__PURE__ */ s(F, { direction: "row", gap: 2, alignItems: "center", justifyContent: "space-between", children: [
|
|
182
183
|
L,
|
|
183
184
|
w
|
|
184
185
|
] }), e[21] = w, e[22] = L, e[23] = f) : f = e[23];
|
|
185
|
-
let
|
|
186
|
-
return e[24] !== f || e[25] !==
|
|
186
|
+
let A;
|
|
187
|
+
return e[24] !== f || e[25] !== z || e[26] !== v ? (A = /* @__PURE__ */ t(K, { bgcolor: z, border: v, borderRadius: 0.5, p: 0.5, flexGrow: 1, children: f }), e[24] = f, e[25] = z, e[26] = v, e[27] = A) : A = e[27], A;
|
|
187
188
|
}
|
|
188
189
|
function Wt(n) {
|
|
189
190
|
const e = $e(77), {
|
|
@@ -205,38 +206,38 @@ function Wt(n) {
|
|
|
205
206
|
projName: a,
|
|
206
207
|
agentName: o
|
|
207
208
|
}, e[0] = o, e[1] = c, e[2] = a, e[3] = P) : P = e[3];
|
|
208
|
-
let
|
|
209
|
-
e[4] !== y ? (
|
|
209
|
+
let I;
|
|
210
|
+
e[4] !== y ? (I = {
|
|
210
211
|
environment: y
|
|
211
|
-
}, e[4] = y, e[5] =
|
|
212
|
+
}, e[4] = y, e[5] = I) : I = e[5];
|
|
212
213
|
const {
|
|
213
214
|
data: R
|
|
214
|
-
} =
|
|
215
|
-
let
|
|
216
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
217
|
-
const [v, p] = se(
|
|
215
|
+
} = It(P, I);
|
|
216
|
+
let z;
|
|
217
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (z = [], e[6] = z) : z = e[6];
|
|
218
|
+
const [v, p] = se(z);
|
|
218
219
|
let L;
|
|
219
220
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (L = [], e[7] = L) : L = e[7];
|
|
220
|
-
const [_,
|
|
221
|
+
const [_, E] = se(L);
|
|
221
222
|
let w;
|
|
222
223
|
e[8] !== R?.configurations || e[9] !== i ? (w = () => {
|
|
223
224
|
if (!i)
|
|
224
225
|
return;
|
|
225
226
|
const $ = R?.configurations;
|
|
226
|
-
p($?.env?.map(
|
|
227
|
+
p($?.env?.map(Bi) ?? []), E($?.files ?? []);
|
|
227
228
|
}, e[8] = R?.configurations, e[9] = i, e[10] = w) : w = e[10];
|
|
228
229
|
let f;
|
|
229
|
-
e[11] !== R || e[12] !== i ? (f = [i, R], e[11] = R, e[12] = i, e[13] = f) : f = e[13],
|
|
230
|
+
e[11] !== R || e[12] !== i ? (f = [i, R], e[11] = R, e[12] = i, e[13] = f) : f = e[13], Ee(w, f);
|
|
230
231
|
const {
|
|
231
|
-
mutate:
|
|
232
|
+
mutate: A,
|
|
232
233
|
isPending: G
|
|
233
234
|
} = gn(), {
|
|
234
235
|
mutate: j,
|
|
235
236
|
isPending: W
|
|
236
237
|
} = jn(), S = G || W;
|
|
237
238
|
let M;
|
|
238
|
-
e[14] !== o || e[15] !==
|
|
239
|
-
const $ = v.filter(
|
|
239
|
+
e[14] !== o || e[15] !== A || e[16] !== v || e[17] !== y || e[18] !== _ || e[19] !== l || e[20] !== g || e[21] !== r || e[22] !== c || e[23] !== a || e[24] !== u || e[25] !== j ? (M = () => {
|
|
240
|
+
const $ = v.filter(ji).map(Fi), B = _.filter(qi), Y = (me) => {
|
|
240
241
|
const Ne = me?.body;
|
|
241
242
|
u({
|
|
242
243
|
message: Ne?.message ?? "Failed to apply configuration",
|
|
@@ -268,7 +269,7 @@ function Wt(n) {
|
|
|
268
269
|
});
|
|
269
270
|
return;
|
|
270
271
|
}
|
|
271
|
-
|
|
272
|
+
A({
|
|
272
273
|
params: {
|
|
273
274
|
orgName: c,
|
|
274
275
|
projName: a,
|
|
@@ -287,11 +288,11 @@ function Wt(n) {
|
|
|
287
288
|
onSuccess: () => r(),
|
|
288
289
|
onError: Y
|
|
289
290
|
});
|
|
290
|
-
}, e[14] = o, e[15] =
|
|
291
|
-
const
|
|
291
|
+
}, e[14] = o, e[15] = A, e[16] = v, e[17] = y, e[18] = _, e[19] = l, e[20] = g, e[21] = r, e[22] = c, e[23] = a, e[24] = u, e[25] = j, e[26] = M) : M = e[26];
|
|
292
|
+
const T = M;
|
|
292
293
|
let k;
|
|
293
294
|
e[27] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
|
294
|
-
p(
|
|
295
|
+
p(Ui);
|
|
295
296
|
}, e[27] = k) : k = e[27];
|
|
296
297
|
const ie = k;
|
|
297
298
|
let X;
|
|
@@ -306,15 +307,15 @@ function Wt(n) {
|
|
|
306
307
|
e[29] === Symbol.for("react.memo_cache_sentinel") ? (ee = ($) => {
|
|
307
308
|
p((B) => B.filter((Y, me) => me !== $));
|
|
308
309
|
}, e[29] = ee) : ee = e[29];
|
|
309
|
-
const
|
|
310
|
+
const J = ee;
|
|
310
311
|
let d;
|
|
311
312
|
e[30] === Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
312
|
-
|
|
313
|
+
E(Oi);
|
|
313
314
|
}, e[30] = d) : d = e[30];
|
|
314
315
|
const C = d;
|
|
315
316
|
let D;
|
|
316
317
|
e[31] === Symbol.for("react.memo_cache_sentinel") ? (D = ($, B, Y) => {
|
|
317
|
-
|
|
318
|
+
E((me) => me.map((Ne, we) => we === $ ? {
|
|
318
319
|
...Ne,
|
|
319
320
|
[B]: Y
|
|
320
321
|
} : Ne));
|
|
@@ -322,7 +323,7 @@ function Wt(n) {
|
|
|
322
323
|
const N = D;
|
|
323
324
|
let H;
|
|
324
325
|
e[32] === Symbol.for("react.memo_cache_sentinel") ? (H = ($) => {
|
|
325
|
-
|
|
326
|
+
E((B) => B.filter((Y, me) => me !== $));
|
|
326
327
|
}, e[32] = H) : H = e[32];
|
|
327
328
|
const h = H;
|
|
328
329
|
let x;
|
|
@@ -339,9 +340,9 @@ function Wt(n) {
|
|
|
339
340
|
/* @__PURE__ */ t(ne, { size: "small", variant: "outlined", startIcon: ue, onClick: ie, disabled: S, children: "Add" })
|
|
340
341
|
] }), e[39] = S, e[40] = le) : le = e[40];
|
|
341
342
|
let ge;
|
|
342
|
-
e[41] !== v ? (ge = v.length === 0 ? /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No environment variables. Click Add to define them." }) : /* @__PURE__ */ t(F, { spacing: 1, children: v.map(($, B) => /* @__PURE__ */ t(yn, { index: B, keyValue: $.key, valueValue: $.value, isSensitive: $.isSensitive ?? !1, isExistingSecret: !!($.secretRef && $.isSensitive), onKeyChange: (Y) => ae(B, "key", Y), onValueChange: (Y) => ae(B, "value", Y), onSensitiveChange: (Y) => ae(B, "isSensitive", Y), onRemove: () =>
|
|
343
|
+
e[41] !== v ? (ge = v.length === 0 ? /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No environment variables. Click Add to define them." }) : /* @__PURE__ */ t(F, { spacing: 1, children: v.map(($, B) => /* @__PURE__ */ t(yn, { index: B, keyValue: $.key, valueValue: $.value, isSensitive: $.isSensitive ?? !1, isExistingSecret: !!($.secretRef && $.isSensitive), onKeyChange: (Y) => ae(B, "key", Y), onValueChange: (Y) => ae(B, "value", Y), onSensitiveChange: (Y) => ae(B, "isSensitive", Y), onRemove: () => J(B) }, B)) }), e[41] = v, e[42] = ge) : ge = e[42];
|
|
343
344
|
let he;
|
|
344
|
-
e[43] !== le || e[44] !== ge ? (he = /* @__PURE__ */ t(
|
|
345
|
+
e[43] !== le || e[44] !== ge ? (he = /* @__PURE__ */ t(Ie, { variant: "outlined", children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { spacing: 1.5, children: [
|
|
345
346
|
le,
|
|
346
347
|
ge
|
|
347
348
|
] }) }) }), e[43] = le, e[44] = ge, e[45] = he) : he = e[45];
|
|
@@ -357,7 +358,7 @@ function Wt(n) {
|
|
|
357
358
|
let Ce;
|
|
358
359
|
e[50] !== _ ? (Ce = _.length === 0 ? /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No file mounts. Click Add to define them." }) : /* @__PURE__ */ t(F, { spacing: 1, children: _.map(($, B) => /* @__PURE__ */ t(vn, { index: B, keyValue: $.key, mountPathValue: $.mountPath, contentValue: $.value, onKeyChange: (Y) => N(B, "key", Y), onMountPathChange: (Y) => N(B, "mountPath", Y), onContentChange: (Y) => N(B, "value", Y), onRemove: () => h(B) }, B)) }), e[50] = _, e[51] = Ce) : Ce = e[51];
|
|
359
360
|
let be;
|
|
360
|
-
e[52] !== pe || e[53] !== Ce ? (be = /* @__PURE__ */ t(
|
|
361
|
+
e[52] !== pe || e[53] !== Ce ? (be = /* @__PURE__ */ t(Ie, { variant: "outlined", children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { spacing: 1.5, children: [
|
|
361
362
|
pe,
|
|
362
363
|
Ce
|
|
363
364
|
] }) }) }), e[52] = pe, e[53] = Ce, e[54] = be) : be = e[54];
|
|
@@ -365,9 +366,9 @@ function Wt(n) {
|
|
|
365
366
|
e[55] !== S || e[56] !== r ? (fe = /* @__PURE__ */ t(ne, { variant: "outlined", onClick: r, disabled: S, children: "Cancel" }), e[55] = S, e[56] = r, e[57] = fe) : fe = e[57];
|
|
366
367
|
let ce;
|
|
367
368
|
e[58] !== S ? (ce = S ? /* @__PURE__ */ t(tt, { size: 16 }) : void 0, e[58] = S, e[59] = ce) : ce = e[59];
|
|
368
|
-
const
|
|
369
|
+
const Q = S ? "Applying..." : g === "deploy" ? "Apply & Deploy" : "Apply";
|
|
369
370
|
let re;
|
|
370
|
-
e[60] !==
|
|
371
|
+
e[60] !== T || e[61] !== S || e[62] !== ce || e[63] !== Q ? (re = /* @__PURE__ */ t(ne, { variant: "contained", color: "primary", onClick: T, disabled: S, startIcon: ce, children: Q }), e[60] = T, e[61] = S, e[62] = ce, e[63] = Q, e[64] = re) : re = e[64];
|
|
371
372
|
let de;
|
|
372
373
|
e[65] !== fe || e[66] !== re ? (de = /* @__PURE__ */ s(K, { display: "flex", justifyContent: "flex-end", gap: 1, children: [
|
|
373
374
|
fe,
|
|
@@ -385,24 +386,24 @@ function Wt(n) {
|
|
|
385
386
|
ye
|
|
386
387
|
] }), e[72] = r, e[73] = i, e[74] = q, e[75] = ye, e[76] = Re) : Re = e[76], Re;
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
+
function Oi(n) {
|
|
389
390
|
return [...n, {
|
|
390
391
|
key: "",
|
|
391
392
|
mountPath: "",
|
|
392
393
|
value: ""
|
|
393
394
|
}];
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
+
function Ui(n) {
|
|
396
397
|
return [...n, {
|
|
397
398
|
key: "",
|
|
398
399
|
value: "",
|
|
399
400
|
isSensitive: !1
|
|
400
401
|
}];
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
+
function qi(n) {
|
|
403
404
|
return n.key && n.mountPath;
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function Fi(n) {
|
|
406
407
|
const {
|
|
407
408
|
key: e,
|
|
408
409
|
value: i,
|
|
@@ -419,10 +420,10 @@ function qi(n) {
|
|
|
419
420
|
isSensitive: r
|
|
420
421
|
};
|
|
421
422
|
}
|
|
422
|
-
function
|
|
423
|
+
function ji(n) {
|
|
423
424
|
return n.key;
|
|
424
425
|
}
|
|
425
|
-
function
|
|
426
|
+
function Bi(n) {
|
|
426
427
|
return {
|
|
427
428
|
key: n.key,
|
|
428
429
|
value: n.value ?? "",
|
|
@@ -430,11 +431,11 @@ function ji(n) {
|
|
|
430
431
|
secretRef: n.secretRef
|
|
431
432
|
};
|
|
432
433
|
}
|
|
433
|
-
const
|
|
434
|
-
const e =
|
|
434
|
+
const Wi = (n) => {
|
|
435
|
+
const e = En(n);
|
|
435
436
|
return bn(e) ? kt(e, "dd MMM yyyy HH:mm:ss") : "—";
|
|
436
437
|
};
|
|
437
|
-
function
|
|
438
|
+
function $i(n) {
|
|
438
439
|
const e = $e(37), {
|
|
439
440
|
open: i,
|
|
440
441
|
onClose: r,
|
|
@@ -445,46 +446,46 @@ function Wi(n) {
|
|
|
445
446
|
let m, g;
|
|
446
447
|
e[0] !== i || e[1] !== c ? (m = () => {
|
|
447
448
|
i && y(c);
|
|
448
|
-
}, g = [i, c], e[0] = i, e[1] = c, e[2] = m, e[3] = g) : (m = e[2], g = e[3]),
|
|
449
|
+
}, g = [i, c], e[0] = i, e[1] = c, e[2] = m, e[3] = g) : (m = e[2], g = e[3]), Ee(m, g);
|
|
449
450
|
let u;
|
|
450
451
|
e[4] !== a || e[5] !== o ? (u = () => {
|
|
451
452
|
o && a(o);
|
|
452
453
|
}, e[4] = a, e[5] = o, e[6] = u) : u = e[6];
|
|
453
454
|
const P = u;
|
|
454
|
-
let
|
|
455
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
455
|
+
let I;
|
|
456
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (I = (k) => {
|
|
456
457
|
y(k);
|
|
457
|
-
}, e[7] =
|
|
458
|
-
const R =
|
|
459
|
-
let
|
|
460
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
458
|
+
}, e[7] = I) : I = e[7];
|
|
459
|
+
const R = I;
|
|
460
|
+
let z;
|
|
461
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ t(ii, { size: 24 }), e[8] = z) : z = e[8];
|
|
461
462
|
let v;
|
|
462
|
-
e[9] !== r ? (v = /* @__PURE__ */ t(it, { icon:
|
|
463
|
+
e[9] !== r ? (v = /* @__PURE__ */ t(it, { icon: z, title: "Select Build", onClose: r }), e[9] = r, e[10] = v) : v = e[10];
|
|
463
464
|
let p, L;
|
|
464
465
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ t(O.Header, { children: "Available Builds" }), L = /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "Choose a build to deploy. Only completed builds are available." }), e[11] = p, e[12] = L) : (p = e[11], L = e[12]);
|
|
465
466
|
let _;
|
|
466
467
|
e[13] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
467
468
|
mt: 1
|
|
468
469
|
}, e[13] = _) : _ = e[13];
|
|
469
|
-
let
|
|
470
|
-
e[14] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
470
|
+
let E;
|
|
471
|
+
e[14] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
471
472
|
gap: 1,
|
|
472
473
|
display: "flex",
|
|
473
474
|
flexDirection: "column"
|
|
474
|
-
}, e[14] =
|
|
475
|
+
}, e[14] = E) : E = e[14];
|
|
475
476
|
let w;
|
|
476
477
|
e[15] !== l || e[16] !== o ? (w = l.length === 0 ? /* @__PURE__ */ t(K, { display: "flex", justifyContent: "center", alignItems: "center", sx: {
|
|
477
|
-
minHeight:
|
|
478
|
+
minHeight: Gi
|
|
478
479
|
}, children: /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No builds available" }) }) : l.map((k) => {
|
|
479
480
|
const ie = o === k.buildName;
|
|
480
|
-
return /* @__PURE__ */ t(cn, { sx:
|
|
481
|
+
return /* @__PURE__ */ t(cn, { sx: Hi, disablePadding: !0, children: /* @__PURE__ */ t(dn, { onClick: () => R(k.buildName), selected: ie, children: /* @__PURE__ */ t(mn, { primary: k.buildName, secondary: /* @__PURE__ */ s(K, { display: "flex", gap: 2, children: [
|
|
481
482
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 0.5, children: [
|
|
482
483
|
/* @__PURE__ */ t(kn, { size: 16 }),
|
|
483
484
|
/* @__PURE__ */ t(V, { variant: "caption", children: k.commitId?.substring(0, 12) || "N/A" })
|
|
484
485
|
] }),
|
|
485
486
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 0.5, children: [
|
|
486
487
|
/* @__PURE__ */ t(vt, { size: 12 }),
|
|
487
|
-
/* @__PURE__ */ t(V, { variant: "caption", children:
|
|
488
|
+
/* @__PURE__ */ t(V, { variant: "caption", children: Wi(k.startedAt) })
|
|
488
489
|
] })
|
|
489
490
|
] }) }) }) }, k.buildName);
|
|
490
491
|
}), e[15] = l, e[16] = o, e[17] = w) : w = e[17];
|
|
@@ -492,45 +493,45 @@ function Wi(n) {
|
|
|
492
493
|
e[18] !== w ? (f = /* @__PURE__ */ s(O.Section, { children: [
|
|
493
494
|
p,
|
|
494
495
|
L,
|
|
495
|
-
/* @__PURE__ */ t(O.Stack, { spacing: 1, sx: _, children: /* @__PURE__ */ t(un, { disablePadding: !0, sx:
|
|
496
|
+
/* @__PURE__ */ t(O.Stack, { spacing: 1, sx: _, children: /* @__PURE__ */ t(un, { disablePadding: !0, sx: E, children: w }) })
|
|
496
497
|
] }), e[18] = w, e[19] = f) : f = e[19];
|
|
497
|
-
let
|
|
498
|
-
e[20] !== r ? (
|
|
498
|
+
let A;
|
|
499
|
+
e[20] !== r ? (A = /* @__PURE__ */ t(ne, { variant: "outlined", color: "primary", onClick: r, children: "Cancel" }), e[20] = r, e[21] = A) : A = e[21];
|
|
499
500
|
const G = !o;
|
|
500
501
|
let j;
|
|
501
502
|
e[22] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ t(Bt, { size: 16 }), e[22] = j) : j = e[22];
|
|
502
503
|
let W;
|
|
503
504
|
e[23] !== P || e[24] !== G ? (W = /* @__PURE__ */ t(ne, { variant: "contained", color: "primary", onClick: P, disabled: G, startIcon: j, children: "Select" }), e[23] = P, e[24] = G, e[25] = W) : W = e[25];
|
|
504
505
|
let S;
|
|
505
|
-
e[26] !==
|
|
506
|
-
|
|
506
|
+
e[26] !== A || e[27] !== W ? (S = /* @__PURE__ */ s(K, { display: "flex", gap: 1, justifyContent: "flex-end", width: "100%", children: [
|
|
507
|
+
A,
|
|
507
508
|
W
|
|
508
|
-
] }), e[26] =
|
|
509
|
+
] }), e[26] = A, e[27] = W, e[28] = S) : S = e[28];
|
|
509
510
|
let M;
|
|
510
511
|
e[29] !== f || e[30] !== S ? (M = /* @__PURE__ */ t(rt, { children: /* @__PURE__ */ s(O.Stack, { spacing: 3, children: [
|
|
511
512
|
f,
|
|
512
513
|
S
|
|
513
514
|
] }) }), e[29] = f, e[30] = S, e[31] = M) : M = e[31];
|
|
514
|
-
let
|
|
515
|
-
return e[32] !== r || e[33] !== i || e[34] !== M || e[35] !== v ? (
|
|
515
|
+
let T;
|
|
516
|
+
return e[32] !== r || e[33] !== i || e[34] !== M || e[35] !== v ? (T = /* @__PURE__ */ s(at, { open: i, onClose: r, children: [
|
|
516
517
|
v,
|
|
517
518
|
M
|
|
518
|
-
] }), e[32] = r, e[33] = i, e[34] = M, e[35] = v, e[36] =
|
|
519
|
+
] }), e[32] = r, e[33] = i, e[34] = M, e[35] = v, e[36] = T) : T = e[36], T;
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function Hi(n) {
|
|
521
522
|
return {
|
|
522
523
|
border: `1px solid ${n.palette.divider}`,
|
|
523
524
|
borderRadius: 1
|
|
524
525
|
};
|
|
525
526
|
}
|
|
526
|
-
function
|
|
527
|
+
function Gi(n) {
|
|
527
528
|
return n.spacing(25);
|
|
528
529
|
}
|
|
529
|
-
const
|
|
530
|
-
const e =
|
|
530
|
+
const Ki = (n) => {
|
|
531
|
+
const e = En(n);
|
|
531
532
|
return bn(e) ? kt(e, "dd MMM yyyy HH:mm:ss") : "—";
|
|
532
533
|
};
|
|
533
|
-
function
|
|
534
|
+
function Yi(n) {
|
|
534
535
|
const e = $e(36), {
|
|
535
536
|
open: i,
|
|
536
537
|
onClose: r,
|
|
@@ -541,18 +542,18 @@ function Ki(n) {
|
|
|
541
542
|
let m, g;
|
|
542
543
|
e[0] !== i || e[1] !== c ? (m = () => {
|
|
543
544
|
i && y(c);
|
|
544
|
-
}, g = [i, c], e[0] = i, e[1] = c, e[2] = m, e[3] = g) : (m = e[2], g = e[3]),
|
|
545
|
+
}, g = [i, c], e[0] = i, e[1] = c, e[2] = m, e[3] = g) : (m = e[2], g = e[3]), Ee(m, g);
|
|
545
546
|
let u;
|
|
546
547
|
e[4] !== a || e[5] !== o ? (u = () => {
|
|
547
548
|
o && a(o);
|
|
548
549
|
}, e[4] = a, e[5] = o, e[6] = u) : u = e[6];
|
|
549
550
|
const P = u;
|
|
550
|
-
let
|
|
551
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
551
|
+
let I;
|
|
552
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ t(wn, { size: 24 }), e[7] = I) : I = e[7];
|
|
552
553
|
let R;
|
|
553
|
-
e[8] !== r ? (R = /* @__PURE__ */ t(it, { icon:
|
|
554
|
-
let
|
|
555
|
-
e[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
554
|
+
e[8] !== r ? (R = /* @__PURE__ */ t(it, { icon: I, title: "Select Kind Version", onClose: r }), e[8] = r, e[9] = R) : R = e[9];
|
|
555
|
+
let z, v;
|
|
556
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ t(O.Header, { children: "Available Versions" }), v = /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "Choose a kind version to deploy. The latest version is shown first." }), e[10] = z, e[11] = v) : (z = e[10], v = e[11]);
|
|
556
557
|
let p;
|
|
557
558
|
e[12] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
558
559
|
mt: 1
|
|
@@ -565,56 +566,56 @@ function Ki(n) {
|
|
|
565
566
|
}, e[13] = L) : L = e[13];
|
|
566
567
|
let _;
|
|
567
568
|
e[14] !== o || e[15] !== l ? (_ = l.length === 0 ? /* @__PURE__ */ t(K, { display: "flex", justifyContent: "center", alignItems: "center", sx: {
|
|
568
|
-
minHeight:
|
|
569
|
+
minHeight: Xi
|
|
569
570
|
}, children: /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No versions available" }) }) : l.map((M) => {
|
|
570
|
-
const
|
|
571
|
-
return /* @__PURE__ */ t(cn, { sx:
|
|
571
|
+
const T = o === M.version;
|
|
572
|
+
return /* @__PURE__ */ t(cn, { sx: Zi, disablePadding: !0, children: /* @__PURE__ */ s(dn, { onClick: () => y(M.version), selected: T, children: [
|
|
572
573
|
/* @__PURE__ */ t(mn, { primary: M.version, secondary: /* @__PURE__ */ t(K, { display: "flex", gap: 2, children: /* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 0.5, children: [
|
|
573
574
|
/* @__PURE__ */ t(vt, { size: 12 }),
|
|
574
|
-
/* @__PURE__ */ t(V, { variant: "caption", children:
|
|
575
|
+
/* @__PURE__ */ t(V, { variant: "caption", children: Ki(M.createdAt) })
|
|
575
576
|
] }) }) }),
|
|
576
|
-
|
|
577
|
+
T && /* @__PURE__ */ t(Bt, { size: 16 })
|
|
577
578
|
] }) }, M.version);
|
|
578
579
|
}), e[14] = o, e[15] = l, e[16] = _) : _ = e[16];
|
|
579
|
-
let
|
|
580
|
-
e[17] !== _ ? (
|
|
581
|
-
|
|
580
|
+
let E;
|
|
581
|
+
e[17] !== _ ? (E = /* @__PURE__ */ s(O.Section, { children: [
|
|
582
|
+
z,
|
|
582
583
|
v,
|
|
583
584
|
/* @__PURE__ */ t(O.Stack, { spacing: 1, sx: p, children: /* @__PURE__ */ t(un, { disablePadding: !0, sx: L, children: _ }) })
|
|
584
|
-
] }), e[17] = _, e[18] =
|
|
585
|
+
] }), e[17] = _, e[18] = E) : E = e[18];
|
|
585
586
|
let w;
|
|
586
587
|
e[19] !== r ? (w = /* @__PURE__ */ t(ne, { variant: "outlined", color: "primary", onClick: r, children: "Cancel" }), e[19] = r, e[20] = w) : w = e[20];
|
|
587
588
|
const f = !o;
|
|
588
|
-
let
|
|
589
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
589
|
+
let A;
|
|
590
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ t(Bt, { size: 16 }), e[21] = A) : A = e[21];
|
|
590
591
|
let G;
|
|
591
|
-
e[22] !== P || e[23] !== f ? (G = /* @__PURE__ */ t(ne, { variant: "contained", color: "primary", onClick: P, disabled: f, startIcon:
|
|
592
|
+
e[22] !== P || e[23] !== f ? (G = /* @__PURE__ */ t(ne, { variant: "contained", color: "primary", onClick: P, disabled: f, startIcon: A, children: "Select" }), e[22] = P, e[23] = f, e[24] = G) : G = e[24];
|
|
592
593
|
let j;
|
|
593
594
|
e[25] !== w || e[26] !== G ? (j = /* @__PURE__ */ s(K, { display: "flex", gap: 1, justifyContent: "flex-end", width: "100%", children: [
|
|
594
595
|
w,
|
|
595
596
|
G
|
|
596
597
|
] }), e[25] = w, e[26] = G, e[27] = j) : j = e[27];
|
|
597
598
|
let W;
|
|
598
|
-
e[28] !==
|
|
599
|
-
|
|
599
|
+
e[28] !== E || e[29] !== j ? (W = /* @__PURE__ */ t(rt, { children: /* @__PURE__ */ s(O.Stack, { spacing: 3, children: [
|
|
600
|
+
E,
|
|
600
601
|
j
|
|
601
|
-
] }) }), e[28] =
|
|
602
|
+
] }) }), e[28] = E, e[29] = j, e[30] = W) : W = e[30];
|
|
602
603
|
let S;
|
|
603
604
|
return e[31] !== r || e[32] !== i || e[33] !== W || e[34] !== R ? (S = /* @__PURE__ */ s(at, { open: i, onClose: r, children: [
|
|
604
605
|
R,
|
|
605
606
|
W
|
|
606
607
|
] }), e[31] = r, e[32] = i, e[33] = W, e[34] = R, e[35] = S) : S = e[35], S;
|
|
607
608
|
}
|
|
608
|
-
function
|
|
609
|
+
function Zi(n) {
|
|
609
610
|
return {
|
|
610
611
|
border: `1px solid ${n.palette.divider}`,
|
|
611
612
|
borderRadius: 1
|
|
612
613
|
};
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function Xi(n) {
|
|
615
616
|
return n.spacing(25);
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
+
function Ji(n) {
|
|
618
619
|
const e = $e(147), {
|
|
619
620
|
initialEnvironment: i
|
|
620
621
|
} = n, {
|
|
@@ -631,7 +632,7 @@ function Xi(n) {
|
|
|
631
632
|
const {
|
|
632
633
|
data: m,
|
|
633
634
|
isLoading: g
|
|
634
|
-
} =
|
|
635
|
+
} = Et(y), u = !!m?.kindName;
|
|
635
636
|
let P;
|
|
636
637
|
e[4] !== c || e[5] !== r || e[6] !== l ? (P = {
|
|
637
638
|
orgName: r,
|
|
@@ -639,25 +640,25 @@ function Xi(n) {
|
|
|
639
640
|
agentName: c
|
|
640
641
|
}, e[4] = c, e[5] = r, e[6] = l, e[7] = P) : P = e[7];
|
|
641
642
|
const {
|
|
642
|
-
data:
|
|
643
|
+
data: I,
|
|
643
644
|
isLoading: R
|
|
644
645
|
} = Bn(P);
|
|
645
|
-
let
|
|
646
|
-
e[8] !==
|
|
647
|
-
const v =
|
|
646
|
+
let z;
|
|
647
|
+
e[8] !== I?.builds ? (z = I?.builds.sort(tr).filter(er), e[8] = I?.builds, e[9] = z) : z = e[9];
|
|
648
|
+
const v = z;
|
|
648
649
|
let p;
|
|
649
650
|
e[10] !== a ? (p = a.get("selectedBuild"), e[10] = a, e[11] = p) : p = e[11];
|
|
650
651
|
const L = p, _ = a.get("buildSelector") === "open";
|
|
651
|
-
let
|
|
652
|
-
e[12] !== u || e[13] !== v || e[14] !== a || e[15] !== L || e[16] !== o ? (
|
|
652
|
+
let E, w;
|
|
653
|
+
e[12] !== u || e[13] !== v || e[14] !== a || e[15] !== L || e[16] !== o ? (E = () => {
|
|
653
654
|
if (!u && !L && v && v.length > 0) {
|
|
654
|
-
const
|
|
655
|
-
|
|
655
|
+
const Q = new URLSearchParams(a);
|
|
656
|
+
Q.set("selectedBuild", v[0].buildName), o(Q, {
|
|
656
657
|
replace: !0
|
|
657
658
|
});
|
|
658
659
|
}
|
|
659
|
-
}, w = [u, L, v, a, o], e[12] = u, e[13] = v, e[14] = a, e[15] = L, e[16] = o, e[17] =
|
|
660
|
-
const f = L || (v && v.length > 0 ? v[0].buildName : ""),
|
|
660
|
+
}, w = [u, L, v, a, o], e[12] = u, e[13] = v, e[14] = a, e[15] = L, e[16] = o, e[17] = E, e[18] = w) : (E = e[17], w = e[18]), Ee(E, w);
|
|
661
|
+
const f = L || (v && v.length > 0 ? v[0].buildName : ""), A = v?.find((Q) => Q.buildName === f), G = m?.kindName ?? "";
|
|
661
662
|
let j;
|
|
662
663
|
e[19] !== r || e[20] !== G ? (j = {
|
|
663
664
|
orgName: r,
|
|
@@ -669,29 +670,29 @@ function Xi(n) {
|
|
|
669
670
|
} = Wn(j);
|
|
670
671
|
let M;
|
|
671
672
|
e[22] !== W?.versions ? (M = [...W?.versions ?? []].sort(Qi), e[22] = W?.versions, e[23] = M) : M = e[23];
|
|
672
|
-
const
|
|
673
|
+
const T = M;
|
|
673
674
|
let k;
|
|
674
675
|
e[24] !== a ? (k = a.get("selectedVersion"), e[24] = a, e[25] = k) : k = e[25];
|
|
675
676
|
const ie = k, X = a.get("versionSelector") === "open";
|
|
676
677
|
let ae;
|
|
677
|
-
e[26] !== u || e[27] !== a || e[28] !== ie || e[29] !== o || e[30] !==
|
|
678
|
-
if (u && !ie &&
|
|
679
|
-
const
|
|
680
|
-
|
|
678
|
+
e[26] !== u || e[27] !== a || e[28] !== ie || e[29] !== o || e[30] !== T[0] || e[31] !== T.length ? (ae = () => {
|
|
679
|
+
if (u && !ie && T.length > 0) {
|
|
680
|
+
const Q = new URLSearchParams(a);
|
|
681
|
+
Q.set("selectedVersion", T[0].version), o(Q, {
|
|
681
682
|
replace: !0
|
|
682
683
|
});
|
|
683
684
|
}
|
|
684
|
-
}, e[26] = u, e[27] = a, e[28] = ie, e[29] = o, e[30] =
|
|
685
|
+
}, e[26] = u, e[27] = a, e[28] = ie, e[29] = o, e[30] = T[0], e[31] = T.length, e[32] = ae) : ae = e[32];
|
|
685
686
|
let ee;
|
|
686
|
-
e[33] !== u || e[34] !== a || e[35] !== ie || e[36] !== o || e[37] !==
|
|
687
|
-
const
|
|
687
|
+
e[33] !== u || e[34] !== a || e[35] !== ie || e[36] !== o || e[37] !== T ? (ee = [u, ie, T, a, o], e[33] = u, e[34] = a, e[35] = ie, e[36] = o, e[37] = T, e[38] = ee) : ee = e[38], Ee(ae, ee);
|
|
688
|
+
const J = ie || (T.length > 0 ? T[0].version : "");
|
|
688
689
|
let d, C, D, N, H, h, x;
|
|
689
|
-
if (e[39] !== c || e[40] !== i?.displayName || e[41] !== i?.name || e[42] !== g || e[43] !== R || e[44] !== u || e[45] !== S || e[46] !== X || e[47] !== r || e[48] !== l || e[49] !== a || e[50] !==
|
|
690
|
+
if (e[39] !== c || e[40] !== i?.displayName || e[41] !== i?.name || e[42] !== g || e[43] !== R || e[44] !== u || e[45] !== S || e[46] !== X || e[47] !== r || e[48] !== l || e[49] !== a || e[50] !== J || e[51] !== o || e[52] !== T) {
|
|
690
691
|
x = Symbol.for("react.early_return_sentinel");
|
|
691
692
|
e: {
|
|
692
|
-
let
|
|
693
|
-
e[60] !==
|
|
694
|
-
const re =
|
|
693
|
+
let Q;
|
|
694
|
+
e[60] !== J ? (Q = (U) => U.version === J, e[60] = J, e[61] = Q) : Q = e[61];
|
|
695
|
+
const re = T.find(Q);
|
|
695
696
|
h = a.get("deployPanel") === "open";
|
|
696
697
|
let de;
|
|
697
698
|
e[62] !== a || e[63] !== o ? (de = () => {
|
|
@@ -744,11 +745,11 @@ function Xi(n) {
|
|
|
744
745
|
minWidth: 350
|
|
745
746
|
}, e[86] = U) : U = e[86];
|
|
746
747
|
let oe;
|
|
747
|
-
e[87] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ t(
|
|
748
|
+
e[87] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ t(Ie, { variant: "outlined", sx: U, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(K, { p: 8, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(tt, {}) }) }) }), e[87] = oe) : oe = e[87], x = oe;
|
|
748
749
|
break e;
|
|
749
750
|
}
|
|
750
751
|
if (u) {
|
|
751
|
-
if (
|
|
752
|
+
if (T.length === 0) {
|
|
752
753
|
let St;
|
|
753
754
|
e[88] === Symbol.for("react.memo_cache_sentinel") ? (St = {
|
|
754
755
|
height: "fit-content",
|
|
@@ -756,7 +757,7 @@ function Xi(n) {
|
|
|
756
757
|
minWidth: 350
|
|
757
758
|
}, e[88] = St) : St = e[88];
|
|
758
759
|
let Ct;
|
|
759
|
-
e[89] === Symbol.for("react.memo_cache_sentinel") ? (Ct = /* @__PURE__ */ t(
|
|
760
|
+
e[89] === Symbol.for("react.memo_cache_sentinel") ? (Ct = /* @__PURE__ */ t(Ie, { variant: "outlined", sx: St, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(F, { gap: 2, alignItems: "center", children: /* @__PURE__ */ t(wt, { message: "No versions available", subtitle: "Publish a version for this Agent Kind first.", icon: /* @__PURE__ */ t(wn, { size: 32 }), disableBackground: !0 }) }) }) }), e[89] = Ct) : Ct = e[89], x = Ct;
|
|
760
761
|
break e;
|
|
761
762
|
}
|
|
762
763
|
let U;
|
|
@@ -765,8 +766,8 @@ function Xi(n) {
|
|
|
765
766
|
width: 350,
|
|
766
767
|
minWidth: 350
|
|
767
768
|
}, e[90] = U) : U = e[90];
|
|
768
|
-
let oe,
|
|
769
|
-
e[91] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ t(V, { variant: "h5", children: "Setup" }),
|
|
769
|
+
let oe, Ae, _e;
|
|
770
|
+
e[91] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ t(V, { variant: "h5", children: "Setup" }), Ae = /* @__PURE__ */ t(We, {}), _e = /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "Select Kind Version" }), e[91] = oe, e[92] = Ae, e[93] = _e) : (oe = e[91], Ae = e[92], _e = e[93]);
|
|
770
771
|
let De;
|
|
771
772
|
e[94] === Symbol.for("react.memo_cache_sentinel") ? (De = {
|
|
772
773
|
borderRadius: 0.5,
|
|
@@ -797,40 +798,40 @@ function Xi(n) {
|
|
|
797
798
|
let Fe;
|
|
798
799
|
e[101] !== H || e[102] !== Ke ? (Fe = /* @__PURE__ */ t(ne, { variant: "contained", color: "primary", fullWidth: !0, onClick: H, disabled: Ke, startIcon: qe, children: "Configure & Deploy" }), e[101] = H, e[102] = Ke, e[103] = Fe) : Fe = e[103];
|
|
799
800
|
let He;
|
|
800
|
-
e[104] !== te || e[105] !== Fe ? (He = /* @__PURE__ */ t(
|
|
801
|
+
e[104] !== te || e[105] !== Fe ? (He = /* @__PURE__ */ t(Ie, { variant: "outlined", sx: U, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { direction: "column", gap: 2, children: [
|
|
801
802
|
oe,
|
|
802
|
-
|
|
803
|
+
Ae,
|
|
803
804
|
_e,
|
|
804
805
|
te,
|
|
805
806
|
Ve,
|
|
806
807
|
Fe
|
|
807
808
|
] }) }) }), e[104] = te, e[105] = Fe, e[106] = He) : He = e[106];
|
|
808
809
|
let et;
|
|
809
|
-
e[107] !== ke || e[108] !== me || e[109] !== X || e[110] !==
|
|
810
|
-
const
|
|
810
|
+
e[107] !== ke || e[108] !== me || e[109] !== X || e[110] !== J || e[111] !== T ? (et = /* @__PURE__ */ t(Yi, { open: X, onClose: ke, versions: T, selectedVersion: J, onSelectVersion: me }), e[107] = ke, e[108] = me, e[109] = X, e[110] = J, e[111] = T, e[112] = et) : et = e[112];
|
|
811
|
+
const At = re && /* @__PURE__ */ t(Wt, { open: h, onClose: D, mode: "deploy", imageId: re.imageId, orgName: r || "", projName: l || "", agentName: c || "", environment: i?.name || "development", title: `Configure and Deploy to ${i?.displayName ?? i?.name ?? "Environment"} Environment` });
|
|
811
812
|
let bt;
|
|
812
|
-
e[113] !== He || e[114] !== et || e[115] !==
|
|
813
|
+
e[113] !== He || e[114] !== et || e[115] !== At ? (bt = /* @__PURE__ */ s(gt, { children: [
|
|
813
814
|
He,
|
|
814
815
|
et,
|
|
815
|
-
|
|
816
|
-
] }), e[113] = He, e[114] = et, e[115] =
|
|
816
|
+
At
|
|
817
|
+
] }), e[113] = He, e[114] = et, e[115] = At, e[116] = bt) : bt = e[116], x = bt;
|
|
817
818
|
break e;
|
|
818
819
|
}
|
|
819
820
|
}
|
|
820
|
-
e[39] = c, e[40] = i?.displayName, e[41] = i?.name, e[42] = g, e[43] = R, e[44] = u, e[45] = S, e[46] = X, e[47] = r, e[48] = l, e[49] = a, e[50] =
|
|
821
|
+
e[39] = c, e[40] = i?.displayName, e[41] = i?.name, e[42] = g, e[43] = R, e[44] = u, e[45] = S, e[46] = X, e[47] = r, e[48] = l, e[49] = a, e[50] = J, e[51] = o, e[52] = T, e[53] = d, e[54] = C, e[55] = D, e[56] = N, e[57] = H, e[58] = h, e[59] = x;
|
|
821
822
|
} else
|
|
822
823
|
d = e[53], C = e[54], D = e[55], N = e[56], H = e[57], h = e[58], x = e[59];
|
|
823
824
|
if (x !== Symbol.for("react.early_return_sentinel"))
|
|
824
825
|
return x;
|
|
825
826
|
if (!v || v.length === 0) {
|
|
826
|
-
let
|
|
827
|
-
e[117] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
827
|
+
let Q;
|
|
828
|
+
e[117] === Symbol.for("react.memo_cache_sentinel") ? (Q = {
|
|
828
829
|
height: "fit-content",
|
|
829
830
|
width: 350,
|
|
830
831
|
minWidth: 350
|
|
831
|
-
}, e[117] =
|
|
832
|
+
}, e[117] = Q) : Q = e[117];
|
|
832
833
|
let re;
|
|
833
|
-
return e[118] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ t(
|
|
834
|
+
return e[118] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ t(Ie, { variant: "outlined", sx: Q, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(F, { gap: 2, alignItems: "center", children: /* @__PURE__ */ t(wt, { message: "No builds available", subtitle: "build your agent first to deploy it to an environment.", icon: /* @__PURE__ */ t(ft, { size: 32 }), disableBackground: !0 }) }) }) }), e[118] = re) : re = e[118], re;
|
|
834
835
|
}
|
|
835
836
|
let q;
|
|
836
837
|
e[119] === Symbol.for("react.memo_cache_sentinel") ? (q = {
|
|
@@ -850,7 +851,7 @@ function Xi(n) {
|
|
|
850
851
|
e[124] === Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ t(Zt, { size: 16 }), e[124] = he) : he = e[124];
|
|
851
852
|
let ve;
|
|
852
853
|
e[125] === Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ t(We, {}), e[125] = ve) : ve = e[125];
|
|
853
|
-
const xe = !
|
|
854
|
+
const xe = !A || A.status !== "Completed" && A.status !== "Succeeded";
|
|
854
855
|
let pe;
|
|
855
856
|
e[126] === Symbol.for("react.memo_cache_sentinel") ? (pe = /* @__PURE__ */ t(ft, { size: 16 }), e[126] = pe) : pe = e[126];
|
|
856
857
|
let Ce;
|
|
@@ -858,26 +859,26 @@ function Xi(n) {
|
|
|
858
859
|
let be;
|
|
859
860
|
e[130] !== v ? (be = v || [], e[130] = v, e[131] = be) : be = e[131];
|
|
860
861
|
let fe;
|
|
861
|
-
e[132] !== d || e[133] !== C || e[134] !== _ || e[135] !== f || e[136] !== be ? (fe = /* @__PURE__ */ t(
|
|
862
|
+
e[132] !== d || e[133] !== C || e[134] !== _ || e[135] !== f || e[136] !== be ? (fe = /* @__PURE__ */ t($i, { open: _, onClose: C, builds: be, selectedBuild: f, onSelectBuild: d }), e[132] = d, e[133] = C, e[134] = _, e[135] = f, e[136] = be, e[137] = fe) : fe = e[137];
|
|
862
863
|
let ce;
|
|
863
|
-
return e[138] !== c || e[139] !==
|
|
864
|
-
/* @__PURE__ */ t(
|
|
864
|
+
return e[138] !== c || e[139] !== A || e[140] !== D || e[141] !== i?.displayName || e[142] !== i?.name || e[143] !== h || e[144] !== r || e[145] !== l ? (ce = A?.imageId && /* @__PURE__ */ t(Wt, { open: h, onClose: D, mode: "deploy", imageId: A.imageId, orgName: r || "", projName: l || "", agentName: c || "", environment: i?.name || "development", title: `Configure and Deploy to ${i?.displayName ?? i?.name ?? "Environment"} Environment` }), e[138] = c, e[139] = A, e[140] = D, e[141] = i?.displayName, e[142] = i?.name, e[143] = h, e[144] = r, e[145] = l, e[146] = ce) : ce = e[146], /* @__PURE__ */ s(gt, { children: [
|
|
865
|
+
/* @__PURE__ */ t(Ie, { variant: "outlined", sx: q, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { direction: "column", gap: 2, children: [
|
|
865
866
|
Z,
|
|
866
867
|
ue,
|
|
867
868
|
le,
|
|
868
869
|
/* @__PURE__ */ s(ne, { variant: "outlined", fullWidth: !0, onClick: N, sx: ge, children: [
|
|
869
870
|
/* @__PURE__ */ s(F, { gap: 0.5, alignItems: "flex-start", children: [
|
|
870
|
-
/* @__PURE__ */ t(V, { variant: "body1", children:
|
|
871
|
-
|
|
871
|
+
/* @__PURE__ */ t(V, { variant: "body1", children: A?.buildName || "Select a build" }),
|
|
872
|
+
A && /* @__PURE__ */ s(K, { display: "flex", gap: 1, sx: {
|
|
872
873
|
opacity: 0.7
|
|
873
874
|
}, children: [
|
|
874
875
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 0.5, children: [
|
|
875
876
|
/* @__PURE__ */ t(kn, { size: 16 }),
|
|
876
|
-
/* @__PURE__ */ t(V, { variant: "caption", children:
|
|
877
|
+
/* @__PURE__ */ t(V, { variant: "caption", children: A.buildParameters?.commitId?.substring(0, 8) || "N/A" })
|
|
877
878
|
] }),
|
|
878
879
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 0.5, children: [
|
|
879
880
|
/* @__PURE__ */ t(vt, { size: 12 }),
|
|
880
|
-
/* @__PURE__ */ t(V, { variant: "caption", children: kt(new Date(
|
|
881
|
+
/* @__PURE__ */ t(V, { variant: "caption", children: kt(new Date(A.startedAt), "dd MMM yyyy") })
|
|
881
882
|
] })
|
|
882
883
|
] })
|
|
883
884
|
] }),
|
|
@@ -893,13 +894,13 @@ function Xi(n) {
|
|
|
893
894
|
function Qi(n, e) {
|
|
894
895
|
return new Date(e.createdAt).getTime() - new Date(n.createdAt).getTime();
|
|
895
896
|
}
|
|
896
|
-
function
|
|
897
|
+
function er(n) {
|
|
897
898
|
return n.status === "Completed" || n.status === "Succeeded";
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
+
function tr(n, e) {
|
|
900
901
|
return new Date(e.startedAt).getTime() - new Date(n.startedAt).getTime();
|
|
901
902
|
}
|
|
902
|
-
function
|
|
903
|
+
function nr({
|
|
903
904
|
open: n,
|
|
904
905
|
onClose: e,
|
|
905
906
|
orgName: i,
|
|
@@ -911,12 +912,12 @@ function tr({
|
|
|
911
912
|
pushSnackBar: a
|
|
912
913
|
} = Ht(), {
|
|
913
914
|
data: o
|
|
914
|
-
} =
|
|
915
|
+
} = Et({
|
|
915
916
|
orgName: i,
|
|
916
917
|
projName: r,
|
|
917
918
|
agentName: l
|
|
918
919
|
});
|
|
919
|
-
|
|
920
|
+
It({
|
|
920
921
|
orgName: i,
|
|
921
922
|
projName: r,
|
|
922
923
|
agentName: l
|
|
@@ -928,25 +929,25 @@ function tr({
|
|
|
928
929
|
} = $n({
|
|
929
930
|
orgName: i,
|
|
930
931
|
environmentId: n && y ? c : void 0
|
|
931
|
-
}), g =
|
|
932
|
-
|
|
932
|
+
}), g = Qe(() => (m?.list ?? []).map((h) => h.name), [m]), u = g.length > 0, [P, I] = se("apikey"), [R, z] = se([]), [v, p] = se([]), [L, _] = se("Authorization"), [E, w] = se("Bearer"), [f, A] = se(!0), [G, j] = se(!1), [W, S] = se(!0), [M, T] = se(["*"]), [k, ie] = se(["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"]), [X, ae] = se(["authorization", "Content-Type", "Origin", "X-API-Key"]), [ee, J] = se(!1);
|
|
933
|
+
Ee(() => {
|
|
933
934
|
if (!n) return;
|
|
934
935
|
const h = o?.configurations?.corsConfig;
|
|
935
936
|
if (!h) {
|
|
936
|
-
j(!1), S(!0),
|
|
937
|
+
j(!1), S(!0), T(["*"]), ie(["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"]), ae(["authorization", "Content-Type", "Origin", "X-API-Key"]), J(!1);
|
|
937
938
|
return;
|
|
938
939
|
}
|
|
939
940
|
if (h.enabled !== void 0 && j(h.enabled), h.allowOrigin !== void 0) {
|
|
940
941
|
const x = h.allowOrigin.length === 1 && h.allowOrigin[0] === "*";
|
|
941
|
-
S(x),
|
|
942
|
+
S(x), T(h.allowOrigin);
|
|
942
943
|
}
|
|
943
|
-
h.allowMethods !== void 0 && ie(h.allowMethods), h.allowHeaders !== void 0 && ae(h.allowHeaders), h.allowCredentials !== void 0 &&
|
|
944
|
-
}, [n, o?.configurations?.corsConfig]),
|
|
944
|
+
h.allowMethods !== void 0 && ie(h.allowMethods), h.allowHeaders !== void 0 && ae(h.allowHeaders), h.allowCredentials !== void 0 && J(h.allowCredentials);
|
|
945
|
+
}, [n, o?.configurations?.corsConfig]), Ee(() => {
|
|
945
946
|
if (!n) return;
|
|
946
947
|
const h = o?.configurations;
|
|
947
|
-
h?.enableOAuthSecurity ?
|
|
948
|
+
h?.enableOAuthSecurity ? I("oauth") : h?.enableApiKeySecurity ? I("apikey") : h?.enableApiKeySecurity === !1 ? I("none") : I("apikey");
|
|
948
949
|
const x = h?.oauthConfig;
|
|
949
|
-
|
|
950
|
+
z(x?.issuers ?? []), p(x?.audiences ?? []), _(x?.headerName || "Authorization"), w(x?.authHeaderPrefix || "Bearer"), A(x?.forwardToken ?? !0);
|
|
950
951
|
}, [n, o?.configurations?.enableApiKeySecurity, o?.configurations?.enableOAuthSecurity, o?.configurations?.oauthConfig]);
|
|
951
952
|
const d = W || M.includes("*"), C = y && P === "oauth" && R.length === 0, {
|
|
952
953
|
mutate: D,
|
|
@@ -969,7 +970,7 @@ function tr({
|
|
|
969
970
|
issuers: R,
|
|
970
971
|
audiences: v,
|
|
971
972
|
headerName: L.trim() || "Authorization",
|
|
972
|
-
authHeaderPrefix:
|
|
973
|
+
authHeaderPrefix: E.trim() || "Bearer",
|
|
973
974
|
forwardToken: f
|
|
974
975
|
}
|
|
975
976
|
},
|
|
@@ -996,7 +997,7 @@ function tr({
|
|
|
996
997
|
});
|
|
997
998
|
}
|
|
998
999
|
});
|
|
999
|
-
}, [c, i, r, l, o?.configurations?.enableAutoInstrumentation, P, R, v, L,
|
|
1000
|
+
}, [c, i, r, l, o?.configurations?.enableAutoInstrumentation, P, R, v, L, E, f, G, M, k, X, ee, d, y, D, e, a]);
|
|
1000
1001
|
return /* @__PURE__ */ s(at, { open: n, onClose: e, children: [
|
|
1001
1002
|
/* @__PURE__ */ t(it, { icon: /* @__PURE__ */ t(ri, { size: 24 }), title: "Update Configurations", onClose: e }),
|
|
1002
1003
|
/* @__PURE__ */ t(rt, { children: /* @__PURE__ */ s(O.Stack, { spacing: 3, children: [
|
|
@@ -1006,7 +1007,7 @@ function tr({
|
|
|
1006
1007
|
/* @__PURE__ */ s(O.Stack, { spacing: 1, children: [
|
|
1007
1008
|
/* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ s(Ln, { value: P, onChange: (h, x) => {
|
|
1008
1009
|
const q = x;
|
|
1009
|
-
|
|
1010
|
+
I(q), q === "oauth" && R.length === 0 && u && z(g);
|
|
1010
1011
|
}, children: [
|
|
1011
1012
|
/* @__PURE__ */ t(je, { value: "none", control: /* @__PURE__ */ t(_t, { disabled: N }), label: "No authentication" }),
|
|
1012
1013
|
/* @__PURE__ */ t(je, { value: "apikey", control: /* @__PURE__ */ t(_t, { disabled: N }), label: "API key" }),
|
|
@@ -1024,14 +1025,14 @@ function tr({
|
|
|
1024
1025
|
!u && /* @__PURE__ */ t(xt, { severity: "warning", children: /* @__PURE__ */ t(V, { variant: "caption", children: "No identity providers for this environment. Add one under Security → Identity Providers first." }) }),
|
|
1025
1026
|
/* @__PURE__ */ s(Ue, { fullWidth: !0, error: C, children: [
|
|
1026
1027
|
/* @__PURE__ */ t(Ge, { required: !0, children: "Identity Providers" }),
|
|
1027
|
-
/* @__PURE__ */ t(st, { multiple: !0, options: g, value: R, onChange: (h, x) =>
|
|
1028
|
+
/* @__PURE__ */ t(st, { multiple: !0, options: g, value: R, onChange: (h, x) => z(x), disabled: N || !u, renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(Je, { label: q, size: "small", ...x({
|
|
1028
1029
|
index: Z
|
|
1029
1030
|
}), key: q })), renderInput: (h) => /* @__PURE__ */ t(Pe, { ...h, size: "small", error: C, placeholder: R.length === 0 ? "Select identity providers" : "" }) }),
|
|
1030
1031
|
C && /* @__PURE__ */ t(Gt, { children: "Select at least one identity provider." })
|
|
1031
1032
|
] }),
|
|
1032
1033
|
/* @__PURE__ */ s(Ue, { fullWidth: !0, children: [
|
|
1033
1034
|
/* @__PURE__ */ t(Ge, { children: "Audiences" }),
|
|
1034
|
-
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: v, onChange: (h, x) => p(x), disabled: N, renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(
|
|
1035
|
+
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: v, onChange: (h, x) => p(x), disabled: N, renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(Je, { label: q, size: "small", ...x({
|
|
1035
1036
|
index: Z
|
|
1036
1037
|
}), key: q })), renderInput: (h) => /* @__PURE__ */ t(Pe, { ...h, size: "small", placeholder: v.length === 0 ? "Add accepted audience (aud) values" : "" }) }),
|
|
1037
1038
|
/* @__PURE__ */ t(Gt, { children: "Accepted token audiences (aud claim). Leave empty to disable audience validation." })
|
|
@@ -1043,10 +1044,10 @@ function tr({
|
|
|
1043
1044
|
] }),
|
|
1044
1045
|
/* @__PURE__ */ s(Ue, { fullWidth: !0, children: [
|
|
1045
1046
|
/* @__PURE__ */ t(Ge, { children: "Auth header prefix" }),
|
|
1046
|
-
/* @__PURE__ */ t(Pe, { size: "small", fullWidth: !0, value:
|
|
1047
|
+
/* @__PURE__ */ t(Pe, { size: "small", fullWidth: !0, value: E, disabled: N, onChange: (h) => w(h.target.value), placeholder: "Bearer" })
|
|
1047
1048
|
] })
|
|
1048
1049
|
] }),
|
|
1049
|
-
/* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(yt, { checked: f, onChange: (h, x) =>
|
|
1050
|
+
/* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(yt, { checked: f, onChange: (h, x) => A(x), disabled: N }), label: "Forward token to upstream" }),
|
|
1050
1051
|
/* @__PURE__ */ t(V, { variant: "caption", color: "text.secondary", sx: {
|
|
1051
1052
|
mt: -1
|
|
1052
1053
|
}, children: "Forward the token header to the upstream service after validation. Disable to strip it before proxying." })
|
|
@@ -1071,25 +1072,25 @@ function tr({
|
|
|
1071
1072
|
/* @__PURE__ */ t(On, { children: /* @__PURE__ */ s(O.Stack, { spacing: 2, children: [
|
|
1072
1073
|
/* @__PURE__ */ s(K, { display: "flex", gap: 2, alignItems: "center", children: [
|
|
1073
1074
|
/* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(Kt, { checked: W, onChange: (h, x) => {
|
|
1074
|
-
S(x), x ? (
|
|
1075
|
+
S(x), x ? (J(!1), T(["*"])) : T((q) => q.filter((Z) => Z !== "*"));
|
|
1075
1076
|
}, disabled: N }), label: "Allow all origins" }),
|
|
1076
|
-
/* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(Kt, { checked: ee, onChange: (h, x) =>
|
|
1077
|
+
/* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(Kt, { checked: ee, onChange: (h, x) => J(x), disabled: N || d }), label: "Allow credentials" })
|
|
1077
1078
|
] }),
|
|
1078
1079
|
!W && /* @__PURE__ */ s(Ue, { fullWidth: !0, children: [
|
|
1079
1080
|
/* @__PURE__ */ t(Ge, { children: "Allowed origins" }),
|
|
1080
|
-
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: M, onChange: (h, x) =>
|
|
1081
|
+
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: M, onChange: (h, x) => T(x), renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(Je, { label: q, size: "small", ...x({
|
|
1081
1082
|
index: Z
|
|
1082
1083
|
}), key: q })), renderInput: (h) => /* @__PURE__ */ t(Pe, { ...h, size: "small", placeholder: "Add origin and press Enter" }) })
|
|
1083
1084
|
] }),
|
|
1084
1085
|
/* @__PURE__ */ s(Ue, { fullWidth: !0, children: [
|
|
1085
1086
|
/* @__PURE__ */ t(Ge, { children: "Allowed methods" }),
|
|
1086
|
-
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: k, onChange: (h, x) => ie(x), renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(
|
|
1087
|
+
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: k, onChange: (h, x) => ie(x), renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(Je, { label: q, size: "small", ...x({
|
|
1087
1088
|
index: Z
|
|
1088
1089
|
}), key: q })), renderInput: (h) => /* @__PURE__ */ t(Pe, { ...h, size: "small", placeholder: "Add method and press Enter" }) })
|
|
1089
1090
|
] }),
|
|
1090
1091
|
/* @__PURE__ */ s(Ue, { fullWidth: !0, children: [
|
|
1091
1092
|
/* @__PURE__ */ t(Ge, { children: "Allowed headers" }),
|
|
1092
|
-
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: X, onChange: (h, x) => ae(x), renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(
|
|
1093
|
+
/* @__PURE__ */ t(st, { multiple: !0, freeSolo: !0, options: [], value: X, onChange: (h, x) => ae(x), renderTags: (h, x) => h.map((q, Z) => /* @__PURE__ */ lt(Je, { label: q, size: "small", ...x({
|
|
1093
1094
|
index: Z
|
|
1094
1095
|
}), key: q })), renderInput: (h) => /* @__PURE__ */ t(Pe, { ...h, size: "small", placeholder: "Add header and press Enter" }) })
|
|
1095
1096
|
] })
|
|
@@ -1104,7 +1105,7 @@ function tr({
|
|
|
1104
1105
|
] }) })
|
|
1105
1106
|
] });
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
+
function ir(n) {
|
|
1108
1109
|
if (!n)
|
|
1109
1110
|
return "";
|
|
1110
1111
|
const e = n.trim();
|
|
@@ -1128,7 +1129,7 @@ function _n(n) {
|
|
|
1128
1129
|
function Dn(n, e) {
|
|
1129
1130
|
return !n || !e ? [] : n.instrumentation.versions.filter((i) => i.pythonVersions.includes(e));
|
|
1130
1131
|
}
|
|
1131
|
-
function
|
|
1132
|
+
function Tn(n, e, i) {
|
|
1132
1133
|
const r = (l) => !!l && n.some((c) => c.version === l);
|
|
1133
1134
|
return r(e) ? e : r(i) ? i : n[0]?.version ?? "";
|
|
1134
1135
|
}
|
|
@@ -1140,7 +1141,7 @@ function dt(n) {
|
|
|
1140
1141
|
const r = parseFloat(i[1]);
|
|
1141
1142
|
return e.toLowerCase().endsWith("m") ? r : r * 1e3;
|
|
1142
1143
|
}
|
|
1143
|
-
const
|
|
1144
|
+
const rr = {
|
|
1144
1145
|
ki: 1024,
|
|
1145
1146
|
mi: 1024 ** 2,
|
|
1146
1147
|
gi: 1024 ** 3,
|
|
@@ -1153,17 +1154,17 @@ function mt(n) {
|
|
|
1153
1154
|
const i = n.trim().match(/^([0-9]+(?:\.[0-9]+)?)\s*(Ki|Mi|Gi|Ti|Pi|Ei)$/i);
|
|
1154
1155
|
if (!i) return NaN;
|
|
1155
1156
|
const r = parseFloat(i[1]), l = i[2].toLowerCase();
|
|
1156
|
-
return r * (
|
|
1157
|
+
return r * (rr[l] ?? 1);
|
|
1157
1158
|
}
|
|
1158
1159
|
const Mt = yi({
|
|
1159
|
-
replicas:
|
|
1160
|
+
replicas: zt().int("Replicas must be a whole number").min(0, "Replicas must be at least 0").max(10, "Replicas must be at most 10"),
|
|
1160
1161
|
cpuRequest: Rt().trim().min(1, "CPU request is required").regex(nn, "Use format like 100m, 0.5, or 1.5").refine((n) => dt(n) > 0, "CPU request must be greater than zero"),
|
|
1161
1162
|
memoryRequest: Rt().trim().min(1, "Memory request is required").regex(rn, "Use format like 256Mi, 512Mi, or 1Gi").refine((n) => mt(n) > 0, "Memory request must be greater than zero"),
|
|
1162
1163
|
cpuLimit: Rt().trim().optional().refine((n) => !n || nn.test(n), "Use format like 500m or 2"),
|
|
1163
1164
|
memoryLimit: Rt().trim().optional().refine((n) => !n || rn.test(n), "Use format like 512Mi or 2Gi"),
|
|
1164
1165
|
autoScalingEnabled: vi(),
|
|
1165
|
-
minReplicas:
|
|
1166
|
-
maxReplicas:
|
|
1166
|
+
minReplicas: zt().int().min(1).optional(),
|
|
1167
|
+
maxReplicas: zt().int().min(1).optional()
|
|
1167
1168
|
}).refine((n) => n.autoScalingEnabled ? n.minReplicas !== void 0 && n.maxReplicas !== void 0 && n.minReplicas <= n.maxReplicas : !0, {
|
|
1168
1169
|
message: "Min replicas must be ≤ max replicas",
|
|
1169
1170
|
path: ["maxReplicas"]
|
|
@@ -1205,7 +1206,7 @@ const Mt = yi({
|
|
|
1205
1206
|
minReplicas: 1,
|
|
1206
1207
|
maxReplicas: 3
|
|
1207
1208
|
};
|
|
1208
|
-
function
|
|
1209
|
+
function ar(n) {
|
|
1209
1210
|
return {
|
|
1210
1211
|
replicas: n.replicas ?? 1,
|
|
1211
1212
|
cpuRequest: n.resources?.requests?.cpu ?? "500m",
|
|
@@ -1217,7 +1218,7 @@ function rr(n) {
|
|
|
1217
1218
|
maxReplicas: n.autoScaling?.maxReplicas ?? 3
|
|
1218
1219
|
};
|
|
1219
1220
|
}
|
|
1220
|
-
function
|
|
1221
|
+
function lr(n) {
|
|
1221
1222
|
return {
|
|
1222
1223
|
replicas: n.replicas,
|
|
1223
1224
|
resources: {
|
|
@@ -1243,7 +1244,7 @@ function ar(n) {
|
|
|
1243
1244
|
}
|
|
1244
1245
|
};
|
|
1245
1246
|
}
|
|
1246
|
-
function
|
|
1247
|
+
function or(n) {
|
|
1247
1248
|
const e = $e(129), {
|
|
1248
1249
|
open: i,
|
|
1249
1250
|
onClose: r,
|
|
@@ -1255,39 +1256,39 @@ function lr(n) {
|
|
|
1255
1256
|
} = n, [m, g] = se(an), {
|
|
1256
1257
|
errors: u,
|
|
1257
1258
|
validateField: P,
|
|
1258
|
-
validateForm:
|
|
1259
|
+
validateForm: I,
|
|
1259
1260
|
clearErrors: R,
|
|
1260
|
-
setFieldError:
|
|
1261
|
+
setFieldError: z
|
|
1261
1262
|
} = Hn(Mt), {
|
|
1262
1263
|
mutate: v,
|
|
1263
1264
|
isPending: p
|
|
1264
1265
|
} = Gn(), {
|
|
1265
1266
|
pushSnackBar: L
|
|
1266
1267
|
} = Ht();
|
|
1267
|
-
let _,
|
|
1268
|
+
let _, E;
|
|
1268
1269
|
e[0] !== R || e[1] !== i || e[2] !== l ? (_ = () => {
|
|
1269
|
-
i && (g(l ?
|
|
1270
|
-
},
|
|
1270
|
+
i && (g(l ? ar(l) : an), R());
|
|
1271
|
+
}, E = [i, l, R], e[0] = R, e[1] = i, e[2] = l, e[3] = _, e[4] = E) : (_ = e[3], E = e[4]), Ee(_, E);
|
|
1271
1272
|
let w;
|
|
1272
|
-
e[5] !==
|
|
1273
|
+
e[5] !== z || e[6] !== P ? (w = (te, Ve) => {
|
|
1273
1274
|
g((Ke) => {
|
|
1274
1275
|
const qe = {
|
|
1275
1276
|
...Ke,
|
|
1276
1277
|
[te]: Ve
|
|
1277
1278
|
}, Fe = P(te, Ve, qe);
|
|
1278
|
-
return
|
|
1279
|
+
return z(te, Fe), qe;
|
|
1279
1280
|
});
|
|
1280
|
-
}, e[5] =
|
|
1281
|
+
}, e[5] = z, e[6] = P, e[7] = w) : w = e[7];
|
|
1281
1282
|
const f = w;
|
|
1282
|
-
let
|
|
1283
|
-
e[8] !== o || e[9] !== R || e[10] !== y || e[11] !== m || e[12] !== r || e[13] !== c || e[14] !== a || e[15] !== L || e[16] !== v || e[17] !==
|
|
1283
|
+
let A;
|
|
1284
|
+
e[8] !== o || e[9] !== R || e[10] !== y || e[11] !== m || e[12] !== r || e[13] !== c || e[14] !== a || e[15] !== L || e[16] !== v || e[17] !== I ? (A = (te) => {
|
|
1284
1285
|
te.preventDefault();
|
|
1285
1286
|
const Ve = Mt.safeParse(m);
|
|
1286
1287
|
if (!Ve.success) {
|
|
1287
|
-
|
|
1288
|
+
I(m);
|
|
1288
1289
|
return;
|
|
1289
1290
|
}
|
|
1290
|
-
const Ke =
|
|
1291
|
+
const Ke = lr(Ve.data);
|
|
1291
1292
|
v({
|
|
1292
1293
|
params: {
|
|
1293
1294
|
orgName: c,
|
|
@@ -1310,15 +1311,15 @@ function lr(n) {
|
|
|
1310
1311
|
});
|
|
1311
1312
|
}
|
|
1312
1313
|
});
|
|
1313
|
-
}, e[8] = o, e[9] = R, e[10] = y, e[11] = m, e[12] = r, e[13] = c, e[14] = a, e[15] = L, e[16] = v, e[17] =
|
|
1314
|
-
const G =
|
|
1314
|
+
}, e[8] = o, e[9] = R, e[10] = y, e[11] = m, e[12] = r, e[13] = c, e[14] = a, e[15] = L, e[16] = v, e[17] = I, e[18] = A) : A = e[18];
|
|
1315
|
+
const G = A, j = Mt.safeParse(m).success;
|
|
1315
1316
|
let W;
|
|
1316
1317
|
e[19] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ t(li, { size: 24 }), e[19] = W) : W = e[19];
|
|
1317
1318
|
let S;
|
|
1318
1319
|
e[20] !== r ? (S = /* @__PURE__ */ t(it, { icon: W, title: "Edit Resource Configurations", onClose: r }), e[20] = r, e[21] = S) : S = e[21];
|
|
1319
1320
|
let M;
|
|
1320
1321
|
e[22] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ t(O.Header, { children: "Replicas" }), e[22] = M) : M = e[22];
|
|
1321
|
-
const
|
|
1322
|
+
const T = p || m.autoScalingEnabled;
|
|
1322
1323
|
let k;
|
|
1323
1324
|
e[23] !== f ? (k = (te) => f("replicas", parseInt(te.target.value, 10) || 0), e[23] = f, e[24] = k) : k = e[24];
|
|
1324
1325
|
const ie = !!u.replicas;
|
|
@@ -1332,11 +1333,11 @@ function lr(n) {
|
|
|
1332
1333
|
}
|
|
1333
1334
|
}, e[25] = X) : X = e[25];
|
|
1334
1335
|
let ae;
|
|
1335
|
-
e[26] !== u.replicas || e[27] !== m.replicas || e[28] !== ie || e[29] !==
|
|
1336
|
+
e[26] !== u.replicas || e[27] !== m.replicas || e[28] !== ie || e[29] !== T || e[30] !== k ? (ae = /* @__PURE__ */ t(O.ElementWrapper, { label: "Replicas", name: "replicas", children: /* @__PURE__ */ t(Pe, { id: "replicas", type: "number", size: "small", fullWidth: !0, disabled: T, value: m.replicas, onChange: k, error: ie, helperText: u.replicas, slotProps: X }) }), e[26] = u.replicas, e[27] = m.replicas, e[28] = ie, e[29] = T, e[30] = k, e[31] = ae) : ae = e[31];
|
|
1336
1337
|
let ee;
|
|
1337
1338
|
e[32] !== f ? (ee = (te, Ve) => f("autoScalingEnabled", Ve), e[32] = f, e[33] = ee) : ee = e[33];
|
|
1338
|
-
let
|
|
1339
|
-
e[34] !== m.autoScalingEnabled || e[35] !== p || e[36] !== ee ? (
|
|
1339
|
+
let J;
|
|
1340
|
+
e[34] !== m.autoScalingEnabled || e[35] !== p || e[36] !== ee ? (J = /* @__PURE__ */ t(je, { control: /* @__PURE__ */ t(yt, { checked: m.autoScalingEnabled, onChange: ee, disabled: p }), label: "Enable autoscaling" }), e[34] = m.autoScalingEnabled, e[35] = p, e[36] = ee, e[37] = J) : J = e[37];
|
|
1340
1341
|
let d;
|
|
1341
1342
|
e[38] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1342
1343
|
mt: 1
|
|
@@ -1377,14 +1378,14 @@ function lr(n) {
|
|
|
1377
1378
|
let he;
|
|
1378
1379
|
e[60] !== m.autoScalingEnabled || e[61] !== ge ? (he = /* @__PURE__ */ t(nt, { in: m.autoScalingEnabled, children: ge }), e[60] = m.autoScalingEnabled, e[61] = ge, e[62] = he) : he = e[62];
|
|
1379
1380
|
let ve;
|
|
1380
|
-
e[63] !== ae || e[64] !==
|
|
1381
|
+
e[63] !== ae || e[64] !== J || e[65] !== he ? (ve = /* @__PURE__ */ s(O.Section, { children: [
|
|
1381
1382
|
M,
|
|
1382
1383
|
/* @__PURE__ */ s(O.Stack, { spacing: 2, children: [
|
|
1383
1384
|
ae,
|
|
1384
|
-
|
|
1385
|
+
J,
|
|
1385
1386
|
he
|
|
1386
1387
|
] })
|
|
1387
|
-
] }), e[63] = ae, e[64] =
|
|
1388
|
+
] }), e[63] = ae, e[64] = J, e[65] = he, e[66] = ve) : ve = e[66];
|
|
1388
1389
|
let xe;
|
|
1389
1390
|
e[67] === Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ t(O.Header, { children: "Resource Requests" }), e[67] = xe) : xe = e[67];
|
|
1390
1391
|
let pe;
|
|
@@ -1394,9 +1395,9 @@ function lr(n) {
|
|
|
1394
1395
|
e[70] !== m.cpuRequest || e[71] !== p || e[72] !== pe || e[73] !== Ce || e[74] !== be ? (fe = /* @__PURE__ */ t(O.ElementWrapper, { label: "CPU request", name: "cpuRequest", children: /* @__PURE__ */ t(Pe, { id: "cpuRequest", placeholder: "e.g., 500m, 0.5, 1", size: "small", fullWidth: !0, disabled: p, value: m.cpuRequest, onChange: pe, error: Ce, helperText: be }) }), e[70] = m.cpuRequest, e[71] = p, e[72] = pe, e[73] = Ce, e[74] = be, e[75] = fe) : fe = e[75];
|
|
1395
1396
|
let ce;
|
|
1396
1397
|
e[76] !== f ? (ce = (te) => f("memoryRequest", te.target.value), e[76] = f, e[77] = ce) : ce = e[77];
|
|
1397
|
-
const
|
|
1398
|
+
const Q = !!u.memoryRequest, re = u.memoryRequest || "e.g., 256Mi, 512Mi, 1Gi";
|
|
1398
1399
|
let de;
|
|
1399
|
-
e[78] !== m.memoryRequest || e[79] !== p || e[80] !== ce || e[81] !==
|
|
1400
|
+
e[78] !== m.memoryRequest || e[79] !== p || e[80] !== ce || e[81] !== Q || e[82] !== re ? (de = /* @__PURE__ */ t(O.ElementWrapper, { label: "Memory request", name: "memoryRequest", children: /* @__PURE__ */ t(Pe, { id: "memoryRequest", placeholder: "e.g., 512Mi, 1Gi", size: "small", fullWidth: !0, disabled: p, value: m.memoryRequest, onChange: ce, error: Q, helperText: re }) }), e[78] = m.memoryRequest, e[79] = p, e[80] = ce, e[81] = Q, e[82] = re, e[83] = de) : de = e[83];
|
|
1400
1401
|
let ye;
|
|
1401
1402
|
e[84] !== fe || e[85] !== de ? (ye = /* @__PURE__ */ s(O.Section, { children: [
|
|
1402
1403
|
xe,
|
|
@@ -1428,13 +1429,13 @@ function lr(n) {
|
|
|
1428
1429
|
let ke;
|
|
1429
1430
|
e[107] !== p || e[108] !== r ? (ke = /* @__PURE__ */ t(ne, { variant: "outlined", onClick: r, disabled: p, children: "Cancel" }), e[107] = p, e[108] = r, e[109] = ke) : ke = e[109];
|
|
1430
1431
|
const U = !j || p, oe = p ? "Saving..." : "Save";
|
|
1431
|
-
let
|
|
1432
|
-
e[110] !== U || e[111] !== oe ? (
|
|
1432
|
+
let Ae;
|
|
1433
|
+
e[110] !== U || e[111] !== oe ? (Ae = /* @__PURE__ */ t(ne, { type: "submit", variant: "contained", color: "primary", disabled: U, children: oe }), e[110] = U, e[111] = oe, e[112] = Ae) : Ae = e[112];
|
|
1433
1434
|
let _e;
|
|
1434
|
-
e[113] !== ke || e[114] !==
|
|
1435
|
+
e[113] !== ke || e[114] !== Ae ? (_e = /* @__PURE__ */ s(K, { display: "flex", justifyContent: "flex-end", gap: 1, mt: 2, children: [
|
|
1435
1436
|
ke,
|
|
1436
|
-
|
|
1437
|
-
] }), e[113] = ke, e[114] =
|
|
1437
|
+
Ae
|
|
1438
|
+
] }), e[113] = ke, e[114] = Ae, e[115] = _e) : _e = e[115];
|
|
1438
1439
|
let De;
|
|
1439
1440
|
e[116] !== ve || e[117] !== ye || e[118] !== b || e[119] !== _e ? (De = /* @__PURE__ */ s(O.Stack, { spacing: 3, children: [
|
|
1440
1441
|
ve,
|
|
@@ -1458,7 +1459,7 @@ const ln = {
|
|
|
1458
1459
|
instrumentationVersion: "",
|
|
1459
1460
|
instrumentationVersionDirty: !1
|
|
1460
1461
|
};
|
|
1461
|
-
function
|
|
1462
|
+
function sr({
|
|
1462
1463
|
open: n,
|
|
1463
1464
|
onClose: e,
|
|
1464
1465
|
sourceEnvironment: i,
|
|
@@ -1477,48 +1478,48 @@ function or({
|
|
|
1477
1478
|
orgName: r
|
|
1478
1479
|
}), {
|
|
1479
1480
|
data: g
|
|
1480
|
-
} =
|
|
1481
|
+
} = Et({
|
|
1481
1482
|
orgName: r,
|
|
1482
1483
|
projName: l,
|
|
1483
1484
|
agentName: c
|
|
1484
1485
|
}), u = g?.build?.type === "buildpack" && "buildpack" in (g.build ?? {}) && g.build.buildpack?.language === "python", P = _n(g?.build?.buildpack?.languageVersion), {
|
|
1485
|
-
data:
|
|
1486
|
+
data: I
|
|
1486
1487
|
} = Nn({
|
|
1487
1488
|
orgName: r
|
|
1488
|
-
}), R =
|
|
1489
|
+
}), R = Qe(() => Dn(I, P), [I, P]), z = Se((d) => m?.find((C) => C.name === d)?.displayName ?? d, [m]), {
|
|
1489
1490
|
mutateAsync: v,
|
|
1490
1491
|
isPending: p,
|
|
1491
1492
|
error: L,
|
|
1492
1493
|
reset: _
|
|
1493
|
-
} = Kn(),
|
|
1494
|
+
} = Kn(), E = Qe(() => y ? y.promotionPaths.find((C) => C.sourceEnvironmentRef === i.name)?.targetEnvironmentRefs ?? [] : [], [y, i.name]), {
|
|
1494
1495
|
data: w,
|
|
1495
1496
|
isSuccess: f
|
|
1496
|
-
} =
|
|
1497
|
+
} = It({
|
|
1497
1498
|
orgName: r,
|
|
1498
1499
|
projName: l,
|
|
1499
1500
|
agentName: c
|
|
1500
1501
|
}, {
|
|
1501
1502
|
environment: a.targetEnvironment
|
|
1502
1503
|
}), {
|
|
1503
|
-
data:
|
|
1504
|
+
data: A
|
|
1504
1505
|
} = xn({
|
|
1505
1506
|
orgName: r,
|
|
1506
1507
|
projName: l,
|
|
1507
1508
|
agentName: c
|
|
1508
|
-
}), G =
|
|
1509
|
-
const d =
|
|
1509
|
+
}), G = Qe(() => {
|
|
1510
|
+
const d = A?.[a.targetEnvironment]?.status;
|
|
1510
1511
|
return !!d && d !== "not-deployed";
|
|
1511
|
-
}, [
|
|
1512
|
-
|
|
1512
|
+
}, [A, a.targetEnvironment]), [j, W] = se(null);
|
|
1513
|
+
Ee(() => {
|
|
1513
1514
|
if (!n) {
|
|
1514
1515
|
W(null), o(ln), _();
|
|
1515
1516
|
return;
|
|
1516
1517
|
}
|
|
1517
1518
|
o((d) => d.targetEnvironment ? d : {
|
|
1518
1519
|
...d,
|
|
1519
|
-
targetEnvironment:
|
|
1520
|
+
targetEnvironment: E[0]?.name ?? ""
|
|
1520
1521
|
});
|
|
1521
|
-
}, [n,
|
|
1522
|
+
}, [n, E, _]), Ee(() => {
|
|
1522
1523
|
if (!n) return;
|
|
1523
1524
|
const d = a.targetEnvironment;
|
|
1524
1525
|
if (!d || j === d || !f) return;
|
|
@@ -1533,16 +1534,16 @@ function or({
|
|
|
1533
1534
|
env: D,
|
|
1534
1535
|
files: C?.files ?? []
|
|
1535
1536
|
})), W(d);
|
|
1536
|
-
}, [n, a.targetEnvironment, f, w, j]),
|
|
1537
|
-
!n || !
|
|
1537
|
+
}, [n, a.targetEnvironment, f, w, j]), Ee(() => {
|
|
1538
|
+
!n || !I || !g || o((d) => {
|
|
1538
1539
|
if (R.some((N) => N.version === d.instrumentationVersion)) return d;
|
|
1539
|
-
const D =
|
|
1540
|
+
const D = Tn(R, g?.configurations?.instrumentationVersion, I.instrumentation.defaultVersion);
|
|
1540
1541
|
return {
|
|
1541
1542
|
...d,
|
|
1542
1543
|
instrumentationVersion: D
|
|
1543
1544
|
};
|
|
1544
1545
|
});
|
|
1545
|
-
}, [n,
|
|
1546
|
+
}, [n, I, g, R]);
|
|
1546
1547
|
const S = Se((d) => {
|
|
1547
1548
|
o((C) => ({
|
|
1548
1549
|
...C,
|
|
@@ -1556,7 +1557,7 @@ function or({
|
|
|
1556
1557
|
[C]: D
|
|
1557
1558
|
} : H)
|
|
1558
1559
|
}));
|
|
1559
|
-
}, []),
|
|
1560
|
+
}, []), T = Se(() => {
|
|
1560
1561
|
o((d) => ({
|
|
1561
1562
|
...d,
|
|
1562
1563
|
env: [...d.env, {
|
|
@@ -1636,12 +1637,12 @@ function or({
|
|
|
1636
1637
|
}), e();
|
|
1637
1638
|
} catch {
|
|
1638
1639
|
}
|
|
1639
|
-
}, [a, u, R, v, r, l, c, i.name, e]),
|
|
1640
|
+
}, [a, u, R, v, r, l, c, i.name, e]), J = Qe(() => L ? L?.message ?? "Failed to promote agent" : null, [L]);
|
|
1640
1641
|
return /* @__PURE__ */ s(at, { open: n, onClose: e, children: [
|
|
1641
1642
|
/* @__PURE__ */ t(it, { icon: /* @__PURE__ */ t(Pn, { size: 24 }), title: `Promote from ${i.displayName ?? i.name} Environment`, onClose: e }),
|
|
1642
1643
|
/* @__PURE__ */ t(rt, { children: /* @__PURE__ */ t("form", { onSubmit: ee, children: /* @__PURE__ */ s(F, { spacing: 3, children: [
|
|
1643
|
-
|
|
1644
|
-
|
|
1644
|
+
J && /* @__PURE__ */ t(xt, { severity: "error", children: /* @__PURE__ */ t(V, { variant: "body2", children: J }) }),
|
|
1645
|
+
E.length > 1 && /* @__PURE__ */ s(gt, { children: [
|
|
1645
1646
|
/* @__PURE__ */ s(O.Section, { children: [
|
|
1646
1647
|
/* @__PURE__ */ t(O.Header, { children: "Target Environment" }),
|
|
1647
1648
|
/* @__PURE__ */ t(O.Stack, { spacing: 2, children: /* @__PURE__ */ t(Ue, { fullWidth: !0, required: !0, children: /* @__PURE__ */ s(jt, { size: "small", value: a.targetEnvironment, onChange: (d) => o((C) => ({
|
|
@@ -1649,7 +1650,7 @@ function or({
|
|
|
1649
1650
|
targetEnvironment: d.target.value
|
|
1650
1651
|
})), displayEmpty: !0, disabled: p, children: [
|
|
1651
1652
|
/* @__PURE__ */ t(Be, { value: "", disabled: !0, children: /* @__PURE__ */ t("em", { children: "Select target environment" }) }),
|
|
1652
|
-
|
|
1653
|
+
E.map((d) => /* @__PURE__ */ t(Be, { value: d.name, children: z(d.name) }, d.name))
|
|
1653
1654
|
] }) }) })
|
|
1654
1655
|
] }),
|
|
1655
1656
|
/* @__PURE__ */ t(We, {})
|
|
@@ -1666,36 +1667,36 @@ function or({
|
|
|
1666
1667
|
] })
|
|
1667
1668
|
] }) }),
|
|
1668
1669
|
/* @__PURE__ */ t(nt, { in: !a.useConfigFromSourceEnv, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ s(F, { spacing: 2, children: [
|
|
1669
|
-
/* @__PURE__ */ t(xt, { severity: "info", children: /* @__PURE__ */ t(V, { variant: "body2", children: G ? `These values are the current configuration of ${
|
|
1670
|
-
/* @__PURE__ */ t(
|
|
1670
|
+
/* @__PURE__ */ t(xt, { severity: "info", children: /* @__PURE__ */ t(V, { variant: "body2", children: G ? `These values are the current configuration of ${z(a.targetEnvironment)}. Editing them here will update that environment on promote.` : `These values are inherited from the agent's base configuration. Review and adjust them for ${z(a.targetEnvironment)} before promoting.` }) }),
|
|
1671
|
+
/* @__PURE__ */ t(Ie, { variant: "outlined", children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { spacing: 1.5, children: [
|
|
1671
1672
|
/* @__PURE__ */ s(F, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
1672
1673
|
/* @__PURE__ */ t(V, { variant: "h6", children: "Environment Variables" }),
|
|
1673
|
-
/* @__PURE__ */ t(ne, { size: "small", variant: "outlined", startIcon: /* @__PURE__ */ t(Pt, { size: 14 }), onClick:
|
|
1674
|
+
/* @__PURE__ */ t(ne, { size: "small", variant: "outlined", startIcon: /* @__PURE__ */ t(Pt, { size: 14 }), onClick: T, disabled: p, children: "Add" })
|
|
1674
1675
|
] }),
|
|
1675
1676
|
a.env.length === 0 ? /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No environment variables. Click Add to define them." }) : /* @__PURE__ */ t(F, { spacing: 1, children: a.env.map((d, C) => /* @__PURE__ */ t(yn, { index: C, keyValue: d.key, valueValue: d.value, isSensitive: d.isSensitive ?? !1, isExistingSecret: !!(d.secretRef && d.isSensitive), onKeyChange: (D) => M(C, "key", D), onValueChange: (D) => M(C, "value", D), onSensitiveChange: (D) => M(C, "isSensitive", D), onRemove: () => k(C) }, C)) })
|
|
1676
1677
|
] }) }) }),
|
|
1677
|
-
/* @__PURE__ */ t(
|
|
1678
|
+
/* @__PURE__ */ t(Ie, { variant: "outlined", children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { spacing: 1.5, children: [
|
|
1678
1679
|
/* @__PURE__ */ s(F, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
1679
1680
|
/* @__PURE__ */ t(V, { variant: "h6", children: "File Mounts" }),
|
|
1680
1681
|
/* @__PURE__ */ t(ne, { size: "small", variant: "outlined", startIcon: /* @__PURE__ */ t(Pt, { size: 14 }), onClick: ie, disabled: p, children: "Add" })
|
|
1681
1682
|
] }),
|
|
1682
1683
|
a.files.length === 0 ? /* @__PURE__ */ t(V, { variant: "body2", color: "text.secondary", children: "No file mounts. Click Add to define them." }) : /* @__PURE__ */ t(F, { spacing: 1, children: a.files.map((d, C) => /* @__PURE__ */ t(vn, { index: C, keyValue: d.key, mountPathValue: d.mountPath, contentValue: d.value, onKeyChange: (D) => X(C, "key", D), onMountPathChange: (D) => X(C, "mountPath", D), onContentChange: (D) => X(C, "value", D), onRemove: () => ae(C) }, C)) })
|
|
1683
1684
|
] }) }) }),
|
|
1684
|
-
u && /* @__PURE__ */ t(
|
|
1685
|
+
u && /* @__PURE__ */ t(Ie, { variant: "outlined", children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { spacing: 1.5, children: [
|
|
1685
1686
|
/* @__PURE__ */ t(V, { variant: "h6", children: "AMP Instrumentation Version" }),
|
|
1686
1687
|
/* @__PURE__ */ s(V, { variant: "body2", color: "text.secondary", children: [
|
|
1687
1688
|
"Pins the init-container image and the bundled OpenLLMetry SDK version for",
|
|
1688
1689
|
" ",
|
|
1689
|
-
|
|
1690
|
+
z(a.targetEnvironment),
|
|
1690
1691
|
"."
|
|
1691
1692
|
] }),
|
|
1692
|
-
R.length === 0 &&
|
|
1693
|
+
R.length === 0 && I ? /* @__PURE__ */ t(xt, { severity: "info", children: /* @__PURE__ */ s(V, { variant: "body2", children: [
|
|
1693
1694
|
"No AMP-provided instrumentation is available for Python ",
|
|
1694
1695
|
P ?? "the selected version",
|
|
1695
1696
|
". You can still promote and instrument manually."
|
|
1696
1697
|
] }) }) : /* @__PURE__ */ t(Ue, { sx: {
|
|
1697
1698
|
minWidth: 240
|
|
1698
|
-
}, children: /* @__PURE__ */ t(jt, { size: "small", value: R.some((d) => d.version === a.instrumentationVersion) ? a.instrumentationVersion : "", disabled: p || !
|
|
1699
|
+
}, children: /* @__PURE__ */ t(jt, { size: "small", value: R.some((d) => d.version === a.instrumentationVersion) ? a.instrumentationVersion : "", disabled: p || !I, onChange: (d) => o((C) => ({
|
|
1699
1700
|
...C,
|
|
1700
1701
|
instrumentationVersion: d.target.value,
|
|
1701
1702
|
instrumentationVersionDirty: !0
|
|
@@ -1711,36 +1712,36 @@ function or({
|
|
|
1711
1712
|
] }) }) })
|
|
1712
1713
|
] });
|
|
1713
1714
|
}
|
|
1714
|
-
function
|
|
1715
|
+
function cr(n) {
|
|
1715
1716
|
const e = $e(16), {
|
|
1716
1717
|
status: i
|
|
1717
1718
|
} = n, r = sn();
|
|
1718
1719
|
let l;
|
|
1719
1720
|
e: {
|
|
1720
|
-
if (i ===
|
|
1721
|
+
if (i === Te.ACTIVE) {
|
|
1721
1722
|
let g;
|
|
1722
1723
|
e[0] !== r.palette.success.light ? (g = ut(r.palette.success.light, 0.1), e[0] = r.palette.success.light, e[1] = g) : g = e[1], l = g;
|
|
1723
1724
|
break e;
|
|
1724
1725
|
}
|
|
1725
|
-
if (i ===
|
|
1726
|
+
if (i === Te.INACTIVE) {
|
|
1726
1727
|
l = r.vars?.palette?.Skeleton.bg;
|
|
1727
1728
|
break e;
|
|
1728
1729
|
}
|
|
1729
|
-
if (i ===
|
|
1730
|
+
if (i === Te.DEPLOYING) {
|
|
1730
1731
|
let g;
|
|
1731
1732
|
e[2] !== r.palette.warning.light ? (g = ut(r.palette.warning.light, 0.1), e[2] = r.palette.warning.light, e[3] = g) : g = e[3], l = g;
|
|
1732
1733
|
break e;
|
|
1733
1734
|
}
|
|
1734
|
-
if (i ===
|
|
1735
|
+
if (i === Te.ERROR) {
|
|
1735
1736
|
let g;
|
|
1736
1737
|
e[4] !== r.palette.error.light ? (g = ut(r.palette.error.light, 0.1), e[4] = r.palette.error.light, e[5] = g) : g = e[5], l = g;
|
|
1737
1738
|
break e;
|
|
1738
1739
|
}
|
|
1739
|
-
if (i ===
|
|
1740
|
+
if (i === Te.SUSPENDED) {
|
|
1740
1741
|
l = r.vars?.palette?.Skeleton?.bg;
|
|
1741
1742
|
break e;
|
|
1742
1743
|
}
|
|
1743
|
-
if (i ===
|
|
1744
|
+
if (i === Te.FAILED) {
|
|
1744
1745
|
let g;
|
|
1745
1746
|
e[6] !== r.palette.error.light ? (g = ut(r.palette.error.light, 0.1), e[6] = r.palette.error.light, e[7] = g) : g = e[7], l = g;
|
|
1746
1747
|
break e;
|
|
@@ -1764,7 +1765,7 @@ function sr(n) {
|
|
|
1764
1765
|
y
|
|
1765
1766
|
] }), e[13] = a, e[14] = y, e[15] = m) : m = e[15], m;
|
|
1766
1767
|
}
|
|
1767
|
-
function
|
|
1768
|
+
function dr(n) {
|
|
1768
1769
|
const e = $e(34), {
|
|
1769
1770
|
resourceConfigs: i,
|
|
1770
1771
|
isLoading: r,
|
|
@@ -1773,12 +1774,12 @@ function cr(n) {
|
|
|
1773
1774
|
let u;
|
|
1774
1775
|
e[0] !== c || e[1] !== o ? (u = c !== void 0 && o !== void 0 && o > 0 ? en(c, o) : void 0, e[0] = c, e[1] = o, e[2] = u) : u = e[2];
|
|
1775
1776
|
const P = u;
|
|
1776
|
-
let
|
|
1777
|
-
e[3] !== a || e[4] !== y ? (
|
|
1778
|
-
const R =
|
|
1779
|
-
let
|
|
1780
|
-
e[6] !== c || e[7] !== o ? (
|
|
1781
|
-
const v =
|
|
1777
|
+
let I;
|
|
1778
|
+
e[3] !== a || e[4] !== y ? (I = a !== void 0 && y !== void 0 && y > 0 ? en(a, y) : void 0, e[3] = a, e[4] = y, e[5] = I) : I = e[5];
|
|
1779
|
+
const R = I;
|
|
1780
|
+
let z;
|
|
1781
|
+
e[6] !== c || e[7] !== o ? (z = c !== void 0 && o !== void 0 && o > 0 ? tn(c, o) : void 0, e[6] = c, e[7] = o, e[8] = z) : z = e[8];
|
|
1782
|
+
const v = z;
|
|
1782
1783
|
let p;
|
|
1783
1784
|
e[9] !== a || e[10] !== y ? (p = a !== void 0 && y !== void 0 && y > 0 ? tn(a, y) : void 0, e[9] = a, e[10] = y, e[11] = p) : p = e[11];
|
|
1784
1785
|
const L = p;
|
|
@@ -1788,32 +1789,32 @@ function cr(n) {
|
|
|
1788
1789
|
}
|
|
1789
1790
|
if (!i) {
|
|
1790
1791
|
let k;
|
|
1791
|
-
return e[13] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ t(wt, { message: "No Resource Configs found", icon: /* @__PURE__ */ t(
|
|
1792
|
+
return e[13] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ t(wt, { message: "No Resource Configs found", icon: /* @__PURE__ */ t(In, { size: 16 }), disableBackground: !0 }), e[13] = k) : k = e[13], k;
|
|
1792
1793
|
}
|
|
1793
1794
|
let _;
|
|
1794
1795
|
e[14] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ t(pi, { size: 16 }), e[14] = _) : _ = e[14];
|
|
1795
|
-
const
|
|
1796
|
+
const E = i.autoScaling?.enabled ? "AUTO" : i.replicas ?? "--", w = i.autoScaling?.enabled ? `Autoscaling is enabled, replicas can be ${i.autoScaling?.minReplicas} to ${i.autoScaling?.maxReplicas}` : "Autoscaling is disabled, replicas are fixed";
|
|
1796
1797
|
let f;
|
|
1797
|
-
e[15] !==
|
|
1798
|
-
let
|
|
1799
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1798
|
+
e[15] !== E || e[16] !== w ? (f = /* @__PURE__ */ t(Vt, { icon: _, label: "Replicas", primaryValue: "", secondaryValue: E, secondaryTooltip: w, secondaryVariant: "success" }), e[15] = E, e[16] = w, e[17] = f) : f = e[17];
|
|
1799
|
+
let A;
|
|
1800
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ t(fi, { size: 16 }), e[18] = A) : A = e[18];
|
|
1800
1801
|
const G = P ? "Current usage as % of requested." : void 0;
|
|
1801
1802
|
let j;
|
|
1802
|
-
e[19] !== P || e[20] !== m || e[21] !== v || e[22] !== G ? (j = /* @__PURE__ */ t(Vt, { icon:
|
|
1803
|
+
e[19] !== P || e[20] !== m || e[21] !== v || e[22] !== G ? (j = /* @__PURE__ */ t(Vt, { icon: A, label: "CPU", primaryValue: m, secondaryValue: P, secondaryTooltip: G, secondaryVariant: v }), e[19] = P, e[20] = m, e[21] = v, e[22] = G, e[23] = j) : j = e[23];
|
|
1803
1804
|
let W;
|
|
1804
1805
|
e[24] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ t(gi, { size: 16 }), e[24] = W) : W = e[24];
|
|
1805
1806
|
const S = R ? "Current usage as % of requested." : void 0;
|
|
1806
1807
|
let M;
|
|
1807
1808
|
e[25] !== R || e[26] !== g || e[27] !== L || e[28] !== S ? (M = /* @__PURE__ */ t(Vt, { icon: W, label: "Memory", primaryValue: g, secondaryValue: R, secondaryTooltip: S, secondaryVariant: L }), e[25] = R, e[26] = g, e[27] = L, e[28] = S, e[29] = M) : M = e[29];
|
|
1808
|
-
let
|
|
1809
|
-
return e[30] !== j || e[31] !== M || e[32] !== f ? (
|
|
1809
|
+
let T;
|
|
1810
|
+
return e[30] !== j || e[31] !== M || e[32] !== f ? (T = /* @__PURE__ */ s(F, { direction: "row", spacing: 1, width: "100%", children: [
|
|
1810
1811
|
f,
|
|
1811
1812
|
j,
|
|
1812
1813
|
M
|
|
1813
|
-
] }), e[30] = j, e[31] = M, e[32] = f, e[33] =
|
|
1814
|
+
] }), e[30] = j, e[31] = M, e[32] = f, e[33] = T) : T = e[33], T;
|
|
1814
1815
|
}
|
|
1815
1816
|
const Me = "envId", Ot = "openResConfig", Ut = "openPromote", qt = "openConfigure", Ft = "openCors";
|
|
1816
|
-
function
|
|
1817
|
+
function mr(n) {
|
|
1817
1818
|
const {
|
|
1818
1819
|
currentEnvironment: e
|
|
1819
1820
|
} = n, {
|
|
@@ -1832,10 +1833,10 @@ function dr(n) {
|
|
|
1832
1833
|
}, [e.name, c, a]), P = Se(() => {
|
|
1833
1834
|
const b = new URLSearchParams(c);
|
|
1834
1835
|
b.delete(Ut), b.delete(Me), a(b);
|
|
1835
|
-
}, [c, a]),
|
|
1836
|
+
}, [c, a]), I = c.get(qt) === "open" && c.get(Me) === e.name, R = Se(() => {
|
|
1836
1837
|
const b = new URLSearchParams(c);
|
|
1837
1838
|
b.set(Me, e.name), b.set(qt, "open"), a(b);
|
|
1838
|
-
}, [e.name, c, a]),
|
|
1839
|
+
}, [e.name, c, a]), z = Se(() => {
|
|
1839
1840
|
const b = new URLSearchParams(c);
|
|
1840
1841
|
b.delete(qt), b.delete(Me), a(b);
|
|
1841
1842
|
}, [c, a]), v = c.get(Ft) === "open" && c.get(Me) === e.name, p = Se(() => {
|
|
@@ -1846,7 +1847,7 @@ function dr(n) {
|
|
|
1846
1847
|
b.delete(Ft), b.delete(Me), a(b);
|
|
1847
1848
|
}, [c, a]), {
|
|
1848
1849
|
data: _,
|
|
1849
|
-
isLoading:
|
|
1850
|
+
isLoading: E
|
|
1850
1851
|
} = xn({
|
|
1851
1852
|
orgName: i,
|
|
1852
1853
|
projName: l,
|
|
@@ -1856,8 +1857,8 @@ function dr(n) {
|
|
|
1856
1857
|
} = Cn({
|
|
1857
1858
|
orgName: i,
|
|
1858
1859
|
projName: l
|
|
1859
|
-
}), f =
|
|
1860
|
-
mutate:
|
|
1860
|
+
}), f = Qe(() => w ? w.promotionPaths.some((b) => b.sourceEnvironmentRef === e.name && (b.targetEnvironmentRefs?.length ?? 0) > 0) : !1, [w, e.name]), {
|
|
1861
|
+
mutate: A,
|
|
1861
1862
|
isPending: G
|
|
1862
1863
|
} = Yn(), {
|
|
1863
1864
|
data: j,
|
|
@@ -1868,8 +1869,8 @@ function dr(n) {
|
|
|
1868
1869
|
agentName: r
|
|
1869
1870
|
}, {
|
|
1870
1871
|
environment: e.name
|
|
1871
|
-
}), S = _?.[e.name], M = S?.status ===
|
|
1872
|
-
data:
|
|
1872
|
+
}), S = _?.[e.name], M = S?.status === Te.ACTIVE, {
|
|
1873
|
+
data: T
|
|
1873
1874
|
} = Xn({
|
|
1874
1875
|
orgName: i,
|
|
1875
1876
|
projName: l,
|
|
@@ -1879,29 +1880,29 @@ function dr(n) {
|
|
|
1879
1880
|
}, {
|
|
1880
1881
|
enabled: !!i && !!l && !!r && !!e.name && M,
|
|
1881
1882
|
enableAutoRefresh: !0,
|
|
1882
|
-
timeRange:
|
|
1883
|
+
timeRange: Jn.TEN_MINUTES
|
|
1883
1884
|
}), {
|
|
1884
1885
|
data: k
|
|
1885
|
-
} =
|
|
1886
|
+
} = Et({
|
|
1886
1887
|
orgName: i,
|
|
1887
1888
|
projName: l,
|
|
1888
1889
|
agentName: r
|
|
1889
|
-
}), ie = k?.agentType?.type === "agent-api", X = k?.build?.type === "buildpack" && "buildpack" in (k.build ?? {}) && k.build.buildpack?.language === "python", ae = _n(k?.build?.buildpack?.languageVersion), [ee,
|
|
1890
|
+
}), ie = k?.agentType?.type === "agent-api", X = k?.build?.type === "buildpack" && "buildpack" in (k.build ?? {}) && k.build.buildpack?.language === "python", ae = _n(k?.build?.buildpack?.languageVersion), [ee, J] = se(!1), [d, C] = se(!1), [D, N] = se(null), [H, h] = se(""), [x, q] = se(!1), {
|
|
1890
1891
|
data: Z
|
|
1891
1892
|
} = Nn({
|
|
1892
1893
|
orgName: i ?? ""
|
|
1893
|
-
}), ue =
|
|
1894
|
-
|
|
1895
|
-
k?.configurations?.enableAutoInstrumentation !== void 0 &&
|
|
1896
|
-
}, [k?.configurations?.enableAutoInstrumentation]),
|
|
1894
|
+
}), ue = Qe(() => Dn(Z, ae), [Z, ae]);
|
|
1895
|
+
Ee(() => {
|
|
1896
|
+
k?.configurations?.enableAutoInstrumentation !== void 0 && J(k.configurations.enableAutoInstrumentation);
|
|
1897
|
+
}, [k?.configurations?.enableAutoInstrumentation]), Ee(() => {
|
|
1897
1898
|
h(""), q(!1);
|
|
1898
|
-
}, [r, e.name]),
|
|
1899
|
+
}, [r, e.name]), Ee(() => {
|
|
1899
1900
|
if (!Z || !k || ue.some((U) => U.version === H)) return;
|
|
1900
|
-
const ke =
|
|
1901
|
+
const ke = Tn(ue, k?.configurations?.instrumentationVersion, Z.instrumentation.defaultVersion);
|
|
1901
1902
|
h(ke);
|
|
1902
1903
|
}, [Z, k, ue, H]);
|
|
1903
1904
|
const le = k?.configurations?.enableOAuthSecurity ? "oauth" : k?.configurations?.enableApiKeySecurity ? "apikey" : "none", ge = le === "oauth" ? "OAuth" : le === "apikey" ? "API key" : "None";
|
|
1904
|
-
|
|
1905
|
+
It({
|
|
1905
1906
|
orgName: i,
|
|
1906
1907
|
projName: l,
|
|
1907
1908
|
agentName: r
|
|
@@ -1945,17 +1946,17 @@ function dr(n) {
|
|
|
1945
1946
|
const fe = ot(ve);
|
|
1946
1947
|
fe.current = ve;
|
|
1947
1948
|
const ce = ot(void 0);
|
|
1948
|
-
|
|
1949
|
+
Ee(() => () => {
|
|
1949
1950
|
ce.current && clearTimeout(ce.current);
|
|
1950
1951
|
}, []);
|
|
1951
|
-
const
|
|
1952
|
+
const Q = Se(() => {
|
|
1952
1953
|
clearTimeout(ce.current), ce.current = setTimeout(() => {
|
|
1953
1954
|
const {
|
|
1954
1955
|
orgId: b,
|
|
1955
1956
|
projectId: ke,
|
|
1956
1957
|
agentId: U,
|
|
1957
1958
|
currentEnvironment: oe,
|
|
1958
|
-
isPythonBuildpack:
|
|
1959
|
+
isPythonBuildpack: Ae
|
|
1959
1960
|
} = Ce.current;
|
|
1960
1961
|
if (!b || !ke || !U || !oe?.name) return;
|
|
1961
1962
|
const {
|
|
@@ -1972,10 +1973,10 @@ function dr(n) {
|
|
|
1972
1973
|
},
|
|
1973
1974
|
body: {
|
|
1974
1975
|
environmentName: oe.name,
|
|
1975
|
-
...
|
|
1976
|
+
...Ae && {
|
|
1976
1977
|
enableAutoInstrumentation: _e
|
|
1977
1978
|
},
|
|
1978
|
-
...
|
|
1979
|
+
...Ae && _e && Le && Oe && De ? {
|
|
1979
1980
|
instrumentationVersion: De
|
|
1980
1981
|
} : {}
|
|
1981
1982
|
}
|
|
@@ -1986,13 +1987,13 @@ function dr(n) {
|
|
|
1986
1987
|
}, 800);
|
|
1987
1988
|
}, []), re = k?.configurations?.corsConfig?.enabled ?? !1, de = k?.configurations?.corsConfig?.allowOrigin ?? [], ye = re ? de.includes("*") ? "All origins" : `${de.length} origin${de.length !== 1 ? "s" : ""}` : "Disabled", Re = k?.kindName, {
|
|
1988
1989
|
data: $
|
|
1989
|
-
} =
|
|
1990
|
+
} = Qn({
|
|
1990
1991
|
orgName: i ?? "",
|
|
1991
1992
|
kindName: Re ?? ""
|
|
1992
|
-
}), B = $?.find((b) => b.imageId === S?.imageId), Y =
|
|
1993
|
+
}), B = $?.find((b) => b.imageId === S?.imageId), Y = ir(S?.imageId), me = S?.lastDeployed ? Si(new Date(S.lastDeployed), {
|
|
1993
1994
|
addSuffix: !0
|
|
1994
1995
|
}) : "Unknown", Ne = () => {
|
|
1995
|
-
!e?.name || !i || !l || !r ||
|
|
1996
|
+
!e?.name || !i || !l || !r || A({
|
|
1996
1997
|
params: {
|
|
1997
1998
|
orgName: i,
|
|
1998
1999
|
projName: l,
|
|
@@ -2004,7 +2005,7 @@ function dr(n) {
|
|
|
2004
2005
|
}
|
|
2005
2006
|
});
|
|
2006
2007
|
}, we = () => {
|
|
2007
|
-
!e?.name || !i || !l || !r ||
|
|
2008
|
+
!e?.name || !i || !l || !r || A({
|
|
2008
2009
|
params: {
|
|
2009
2010
|
orgName: i,
|
|
2010
2011
|
projName: l,
|
|
@@ -2016,22 +2017,25 @@ function dr(n) {
|
|
|
2016
2017
|
}
|
|
2017
2018
|
});
|
|
2018
2019
|
};
|
|
2019
|
-
return
|
|
2020
|
+
return E ? /* @__PURE__ */ t(Ie, { variant: "outlined", sx: {
|
|
2020
2021
|
height: "fit-content",
|
|
2021
2022
|
width: 350,
|
|
2022
2023
|
minWidth: 350
|
|
2023
|
-
}, children: /* @__PURE__ */ t(
|
|
2024
|
+
}, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(K, { p: 8, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(tt, {}) }) }) }) : !S || S.status === "not-deployed" ? /* @__PURE__ */ t(Ie, { variant: "outlined", sx: {
|
|
2024
2025
|
height: "fit-content",
|
|
2025
2026
|
width: 350,
|
|
2026
2027
|
minWidth: 350
|
|
2027
|
-
}, children: /* @__PURE__ */ t(
|
|
2028
|
+
}, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(F, { gap: 2, alignItems: "center", children: /* @__PURE__ */ t(wt, { message: "No Deployment found", subtitle: `Build your agent first to deploy it to ${e.displayName} environment.`, icon: /* @__PURE__ */ t(ft, { size: 32 }), disableBackground: !0 }) }) }) }) : /* @__PURE__ */ t(Ie, { variant: "outlined", sx: {
|
|
2028
2029
|
height: "fit-content",
|
|
2029
2030
|
width: 400,
|
|
2030
2031
|
minWidth: 400
|
|
2031
|
-
}, children: /* @__PURE__ */ t(
|
|
2032
|
-
/* @__PURE__ */ s(
|
|
2033
|
-
e?.
|
|
2034
|
-
"
|
|
2032
|
+
}, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ s(F, { gap: 2, children: [
|
|
2033
|
+
/* @__PURE__ */ s(F, { direction: "row", gap: 1, alignItems: "center", children: [
|
|
2034
|
+
/* @__PURE__ */ t(Ci, { tier: e?.isolationTier }),
|
|
2035
|
+
/* @__PURE__ */ s(V, { variant: "h5", children: [
|
|
2036
|
+
e?.displayName,
|
|
2037
|
+
" Environment"
|
|
2038
|
+
] })
|
|
2035
2039
|
] }),
|
|
2036
2040
|
/* @__PURE__ */ t(We, {}),
|
|
2037
2041
|
/* @__PURE__ */ s(F, { direction: "row", gap: 1, alignItems: "center", children: [
|
|
@@ -2039,15 +2043,15 @@ function dr(n) {
|
|
|
2039
2043
|
/* @__PURE__ */ t(vt, { size: 16 }),
|
|
2040
2044
|
/* @__PURE__ */ t(V, { variant: "body2", children: me })
|
|
2041
2045
|
] }),
|
|
2042
|
-
/* @__PURE__ */ t(F, { direction: "row", gap: 1, alignItems: "center", children: /* @__PURE__ */ t(
|
|
2043
|
-
S?.imageId && (Re ? /* @__PURE__ */ t(
|
|
2046
|
+
/* @__PURE__ */ t(F, { direction: "row", gap: 1, alignItems: "center", children: /* @__PURE__ */ t(cr, { status: S?.status }) }),
|
|
2047
|
+
S?.imageId && (Re ? /* @__PURE__ */ t(Tt, { label: "Kind Version", labelAction: /* @__PURE__ */ t(Dt, { component: Ye, to: Ze(Xe.children.org.children.catalog.children.kindDetails.path, {
|
|
2044
2048
|
orgId: i,
|
|
2045
2049
|
kindId: Re
|
|
2046
2050
|
}) + (B ? `?version=${B.version}` : ""), children: /* @__PURE__ */ t(Xt, { size: 16 }) }), value: B ? `v${B.version}` : "", slotProps: {
|
|
2047
2051
|
input: {
|
|
2048
2052
|
readOnly: !0
|
|
2049
2053
|
}
|
|
2050
|
-
} }) : /* @__PURE__ */ t(
|
|
2054
|
+
} }) : /* @__PURE__ */ t(Tt, { label: "Build Image", labelAction: /* @__PURE__ */ t(Dt, { component: Ye, to: Ze(Xe.children.org.children.projects.children.agents.children.build.path, {
|
|
2051
2055
|
orgId: i,
|
|
2052
2056
|
projectId: l,
|
|
2053
2057
|
agentId: r
|
|
@@ -2056,13 +2060,13 @@ function dr(n) {
|
|
|
2056
2060
|
readOnly: !0
|
|
2057
2061
|
}
|
|
2058
2062
|
} })),
|
|
2059
|
-
S?.endpoints.map((b) => /* @__PURE__ */ t(
|
|
2063
|
+
S?.endpoints.map((b) => /* @__PURE__ */ t(Tt, { label: "URL", value: b.url, copyable: !0, copyTooltipText: "Copy URL", slotProps: {
|
|
2060
2064
|
input: {
|
|
2061
2065
|
readOnly: !0
|
|
2062
2066
|
}
|
|
2063
2067
|
} }, b.url)),
|
|
2064
|
-
/* @__PURE__ */ t(nt, { in: [
|
|
2065
|
-
/* @__PURE__ */ t(
|
|
2068
|
+
/* @__PURE__ */ t(nt, { in: [Te.ACTIVE, Te.ERROR, Te.FAILED].includes(S?.status), children: /* @__PURE__ */ s(F, { gap: 2, children: [
|
|
2069
|
+
/* @__PURE__ */ t(Ie, { variant: "outlined", sx: {
|
|
2066
2070
|
padding: 1.4,
|
|
2067
2071
|
pt: 0.5
|
|
2068
2072
|
}, children: /* @__PURE__ */ s(F, { gap: 1, children: [
|
|
@@ -2072,9 +2076,9 @@ function dr(n) {
|
|
|
2072
2076
|
padding: 0.5
|
|
2073
2077
|
}, startIcon: /* @__PURE__ */ t(ht, { size: 16 }), onClick: m, children: "Configure" })
|
|
2074
2078
|
] }),
|
|
2075
|
-
/* @__PURE__ */ t(F, { direction: "row", gap: 1, alignItems: "center", children: /* @__PURE__ */ t(
|
|
2079
|
+
/* @__PURE__ */ t(F, { direction: "row", gap: 1, alignItems: "center", children: /* @__PURE__ */ t(dr, { resourceConfigs: j, isLoading: W, metrics: T }) })
|
|
2076
2080
|
] }) }),
|
|
2077
|
-
/* @__PURE__ */ t(
|
|
2081
|
+
/* @__PURE__ */ t(Ie, { variant: "outlined", sx: {
|
|
2078
2082
|
padding: 1.4
|
|
2079
2083
|
}, children: /* @__PURE__ */ s(F, { gap: 1.5, children: [
|
|
2080
2084
|
/* @__PURE__ */ s(F, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between", children: [
|
|
@@ -2087,7 +2091,7 @@ function dr(n) {
|
|
|
2087
2091
|
opacity: 0.6
|
|
2088
2092
|
} }),
|
|
2089
2093
|
/* @__PURE__ */ t(V, { variant: "body2", children: "CORS" }),
|
|
2090
|
-
/* @__PURE__ */ t(pt, { title: ye, children: /* @__PURE__ */ t(
|
|
2094
|
+
/* @__PURE__ */ t(pt, { title: ye, children: /* @__PURE__ */ t(Je, { size: "small", label: re ? "On" : "Off", color: re ? "success" : "default", variant: "outlined", sx: {
|
|
2091
2095
|
height: 18,
|
|
2092
2096
|
fontSize: "0.65rem",
|
|
2093
2097
|
cursor: "default"
|
|
@@ -2100,11 +2104,11 @@ function dr(n) {
|
|
|
2100
2104
|
] }),
|
|
2101
2105
|
ie && /* @__PURE__ */ s(K, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
2102
2106
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
2103
|
-
/* @__PURE__ */ t(
|
|
2107
|
+
/* @__PURE__ */ t(Jt, { size: 14, style: {
|
|
2104
2108
|
opacity: 0.6
|
|
2105
2109
|
} }),
|
|
2106
2110
|
/* @__PURE__ */ t(V, { variant: "body2", children: "Authentication" }),
|
|
2107
|
-
/* @__PURE__ */ t(pt, { title: le === "oauth" ? "Callers send an Authorization: Bearer <token> header validated by the gateway" : le === "apikey" ? "Requests must include the header: x-api-key: <your-key>" : "Endpoint is publicly accessible without authentication", children: /* @__PURE__ */ t(
|
|
2111
|
+
/* @__PURE__ */ t(pt, { title: le === "oauth" ? "Callers send an Authorization: Bearer <token> header validated by the gateway" : le === "apikey" ? "Requests must include the header: x-api-key: <your-key>" : "Endpoint is publicly accessible without authentication", children: /* @__PURE__ */ t(Je, { size: "small", label: ge, color: le === "none" ? "default" : "success", variant: "outlined", sx: {
|
|
2108
2112
|
height: 18,
|
|
2109
2113
|
fontSize: "0.65rem",
|
|
2110
2114
|
cursor: "default"
|
|
@@ -2117,18 +2121,18 @@ function dr(n) {
|
|
|
2117
2121
|
] }),
|
|
2118
2122
|
X && /* @__PURE__ */ s(K, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
2119
2123
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
2120
|
-
/* @__PURE__ */ t(
|
|
2124
|
+
/* @__PURE__ */ t(Qt, { size: 14, style: {
|
|
2121
2125
|
opacity: 0.6
|
|
2122
2126
|
} }),
|
|
2123
2127
|
/* @__PURE__ */ t(V, { variant: "body2", children: "Auto-Instrumentation" })
|
|
2124
2128
|
] }),
|
|
2125
2129
|
/* @__PURE__ */ t(yt, { size: "small", checked: ee, disabled: d, onChange: (b, ke) => {
|
|
2126
|
-
|
|
2130
|
+
J(ke), Q();
|
|
2127
2131
|
} })
|
|
2128
2132
|
] }),
|
|
2129
2133
|
X && ee && /* @__PURE__ */ s(K, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
2130
2134
|
/* @__PURE__ */ s(K, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
2131
|
-
/* @__PURE__ */ t(
|
|
2135
|
+
/* @__PURE__ */ t(In, { size: 14, style: {
|
|
2132
2136
|
opacity: 0.6
|
|
2133
2137
|
} }),
|
|
2134
2138
|
/* @__PURE__ */ t(V, { variant: "body2", children: "Instrumentation Version" })
|
|
@@ -2137,26 +2141,26 @@ function dr(n) {
|
|
|
2137
2141
|
"None available for Python ",
|
|
2138
2142
|
ae ?? "runtime"
|
|
2139
2143
|
] }) : /* @__PURE__ */ t(jt, { size: "small", value: xe ? H : "", disabled: d || !Z, onChange: (b) => {
|
|
2140
|
-
h(b.target.value), q(!0),
|
|
2144
|
+
h(b.target.value), q(!0), Q();
|
|
2141
2145
|
}, sx: {
|
|
2142
2146
|
minWidth: 200
|
|
2143
2147
|
}, children: ue.map((b) => /* @__PURE__ */ t(Be, { value: b.version, children: b.traceloopSdk ? `${b.version} (OpenLLMetry v${b.traceloopSdk})` : b.version }, b.version)) })
|
|
2144
2148
|
] })
|
|
2145
2149
|
] }) })
|
|
2146
2150
|
] }) }),
|
|
2147
|
-
r && /* @__PURE__ */ t(
|
|
2148
|
-
r && /* @__PURE__ */ t(Wt, { open:
|
|
2149
|
-
r && /* @__PURE__ */ t(
|
|
2150
|
-
r && i && l && /* @__PURE__ */ t(
|
|
2151
|
+
r && /* @__PURE__ */ t(or, { open: o, onClose: g, resourceConfigs: j, orgName: i ?? "default", projName: l ?? "default", agentName: r, environment: e.name }),
|
|
2152
|
+
r && /* @__PURE__ */ t(Wt, { open: I, onClose: z, mode: "update", orgName: i ?? "", projName: l ?? "", agentName: r, environment: e.name, title: `Update ${e.displayName ?? e.name} Environment Configuration` }),
|
|
2153
|
+
r && /* @__PURE__ */ t(nr, { open: v, onClose: L, orgName: i ?? "", projName: l ?? "", agentName: r, environment: e.name }),
|
|
2154
|
+
r && i && l && /* @__PURE__ */ t(sr, { open: y, onClose: P, sourceEnvironment: e, orgId: i, projectId: l, agentId: r }),
|
|
2151
2155
|
k?.provisioning?.type === "internal" && /* @__PURE__ */ s(gt, { children: [
|
|
2152
2156
|
/* @__PURE__ */ t(We, {}),
|
|
2153
2157
|
/* @__PURE__ */ s(F, { direction: "row", justifyContent: "space-between", spacing: 1, alignItems: "center", children: [
|
|
2154
2158
|
/* @__PURE__ */ t(pt, { title: "More actions", children: /* @__PURE__ */ t(Dt, { size: "small", onClick: (b) => N(b.currentTarget), children: /* @__PURE__ */ t(si, { size: 18 }) }) }),
|
|
2155
2159
|
/* @__PURE__ */ s(F, { direction: "row", justifyContent: "right", spacing: 1, alignItems: "center", children: [
|
|
2156
|
-
/* @__PURE__ */ t(ne, { variant: "text", size: "small", startIcon: /* @__PURE__ */ t(ht, { size: 16 }), onClick: R, disabled: S?.status ===
|
|
2160
|
+
/* @__PURE__ */ t(ne, { variant: "text", size: "small", startIcon: /* @__PURE__ */ t(ht, { size: 16 }), onClick: R, disabled: S?.status === Te.DEPLOYING, children: "Configure" }),
|
|
2157
2161
|
/* @__PURE__ */ t(We, { orientation: "vertical", flexItem: !0 }),
|
|
2158
|
-
S?.status !==
|
|
2159
|
-
S?.status ===
|
|
2162
|
+
S?.status !== Te.SUSPENDED && /* @__PURE__ */ t(ne, { startIcon: /* @__PURE__ */ t(ci, { size: 16 }), variant: "text", size: "small", onClick: Ne, disabled: G || S?.status !== Te.ACTIVE, children: "Suspend" }),
|
|
2163
|
+
S?.status === Te.SUSPENDED && /* @__PURE__ */ t(ne, { startIcon: G ? /* @__PURE__ */ t(tt, { size: 14 }) : /* @__PURE__ */ t(di, { size: 16 }), variant: "text", color: "success", size: "small", onClick: we, disabled: G, children: "Re-deploy" }),
|
|
2160
2164
|
f && /* @__PURE__ */ s(gt, { children: [
|
|
2161
2165
|
/* @__PURE__ */ t(We, { orientation: "vertical", flexItem: !0 }),
|
|
2162
2166
|
/* @__PURE__ */ t(ne, { variant: "contained", size: "small", startIcon: /* @__PURE__ */ t(Pn, { size: 16 }), onClick: u, disabled: !M, children: "Promote" })
|
|
@@ -2186,7 +2190,7 @@ function dr(n) {
|
|
|
2186
2190
|
agentId: r,
|
|
2187
2191
|
envId: e?.name
|
|
2188
2192
|
}), onClick: () => N(null), children: [
|
|
2189
|
-
/* @__PURE__ */ t(
|
|
2193
|
+
/* @__PURE__ */ t(Qt, { size: 16, style: {
|
|
2190
2194
|
marginRight: 8
|
|
2191
2195
|
} }),
|
|
2192
2196
|
"View Traces"
|
|
@@ -2219,7 +2223,7 @@ function dr(n) {
|
|
|
2219
2223
|
agentId: r,
|
|
2220
2224
|
envId: e?.name
|
|
2221
2225
|
}), onClick: () => N(null), children: [
|
|
2222
|
-
/* @__PURE__ */ t(
|
|
2226
|
+
/* @__PURE__ */ t(Jt, { size: 16, style: {
|
|
2223
2227
|
marginRight: 8
|
|
2224
2228
|
} }),
|
|
2225
2229
|
"Manage Credentials"
|
|
@@ -2271,47 +2275,47 @@ const on = () => {
|
|
|
2271
2275
|
m = l;
|
|
2272
2276
|
break e;
|
|
2273
2277
|
}
|
|
2274
|
-
const p = new Set(v.flatMap(
|
|
2278
|
+
const p = new Set(v.flatMap(hr)), L = new Map(v.map(fr)), _ = [...new Set(v.map(gr))].filter((f) => !p.has(f));
|
|
2275
2279
|
R = [];
|
|
2276
|
-
const
|
|
2280
|
+
const E = /* @__PURE__ */ new Set();
|
|
2277
2281
|
let w = _[0];
|
|
2278
|
-
for (; w && !
|
|
2279
|
-
R.push(w),
|
|
2282
|
+
for (; w && !E.has(w); )
|
|
2283
|
+
R.push(w), E.add(w), w = (L.get(w) ?? [])[0];
|
|
2280
2284
|
p.forEach((f) => {
|
|
2281
|
-
|
|
2285
|
+
E.has(f) || R.push(f);
|
|
2282
2286
|
}), n[8] = l, n[9] = y?.deploymentPipelines, n[10] = a?.deploymentPipeline, n[11] = R, n[12] = m;
|
|
2283
2287
|
} else
|
|
2284
2288
|
R = n[11], m = n[12];
|
|
2285
|
-
let
|
|
2286
|
-
n[13] !== R || n[14] !== l ? (
|
|
2289
|
+
let z;
|
|
2290
|
+
n[13] !== R || n[14] !== l ? (z = R.map((v) => l.find((p) => p.name === v)).filter(Boolean), n[13] = R, n[14] = l, n[15] = z) : z = n[15], m = z;
|
|
2287
2291
|
}
|
|
2288
2292
|
const g = m;
|
|
2289
2293
|
let u;
|
|
2290
|
-
n[16] !== g[0] ? (u = /* @__PURE__ */ t(
|
|
2294
|
+
n[16] !== g[0] ? (u = /* @__PURE__ */ t(Ji, { initialEnvironment: g[0] }), n[16] = g[0], n[17] = u) : u = n[17];
|
|
2291
2295
|
let P;
|
|
2292
|
-
n[18] !== g ? (P = g.map(
|
|
2293
|
-
let
|
|
2294
|
-
return n[20] !== u || n[21] !== P ? (
|
|
2296
|
+
n[18] !== g ? (P = g.map(vr), n[18] = g, n[19] = P) : P = n[19];
|
|
2297
|
+
let I;
|
|
2298
|
+
return n[20] !== u || n[21] !== P ? (I = /* @__PURE__ */ t(ni, { title: "Deploy", disableIcon: !0, children: /* @__PURE__ */ s(F, { direction: "row", pb: 4, width: "100%", overflow: "auto", children: [
|
|
2295
2299
|
u,
|
|
2296
2300
|
P
|
|
2297
|
-
] }) }), n[20] = u, n[21] = P, n[22] =
|
|
2301
|
+
] }) }), n[20] = u, n[21] = P, n[22] = I) : I = n[22], I;
|
|
2298
2302
|
};
|
|
2299
|
-
function mr(n) {
|
|
2300
|
-
return n.name;
|
|
2301
|
-
}
|
|
2302
2303
|
function ur(n) {
|
|
2303
|
-
return n.
|
|
2304
|
+
return n.name;
|
|
2304
2305
|
}
|
|
2305
2306
|
function hr(n) {
|
|
2306
|
-
return n.
|
|
2307
|
+
return n.targetEnvironmentRefs.map(ur);
|
|
2307
2308
|
}
|
|
2308
2309
|
function pr(n) {
|
|
2309
|
-
return
|
|
2310
|
+
return n.name;
|
|
2310
2311
|
}
|
|
2311
2312
|
function fr(n) {
|
|
2312
|
-
return n.sourceEnvironmentRef;
|
|
2313
|
+
return [n.sourceEnvironmentRef, n.targetEnvironmentRefs.map(pr)];
|
|
2313
2314
|
}
|
|
2314
2315
|
function gr(n) {
|
|
2316
|
+
return n.sourceEnvironmentRef;
|
|
2317
|
+
}
|
|
2318
|
+
function yr(n) {
|
|
2315
2319
|
return {
|
|
2316
2320
|
width: n.spacing(4),
|
|
2317
2321
|
height: n.spacing(0.5),
|
|
@@ -2320,13 +2324,13 @@ function gr(n) {
|
|
|
2320
2324
|
bgcolor: "divider"
|
|
2321
2325
|
};
|
|
2322
2326
|
}
|
|
2323
|
-
function
|
|
2324
|
-
return /* @__PURE__ */ s(
|
|
2325
|
-
/* @__PURE__ */ t(K, { sx:
|
|
2326
|
-
/* @__PURE__ */ t(
|
|
2327
|
+
function vr(n) {
|
|
2328
|
+
return /* @__PURE__ */ s(zn, { children: [
|
|
2329
|
+
/* @__PURE__ */ t(K, { sx: yr }),
|
|
2330
|
+
/* @__PURE__ */ t(mr, { currentEnvironment: n })
|
|
2327
2331
|
] }, n.name);
|
|
2328
2332
|
}
|
|
2329
|
-
const
|
|
2333
|
+
const _r = {
|
|
2330
2334
|
title: "Deploy",
|
|
2331
2335
|
description: "A page component for Deploy",
|
|
2332
2336
|
icon: ft,
|
|
@@ -2338,5 +2342,5 @@ const Ar = {
|
|
|
2338
2342
|
};
|
|
2339
2343
|
export {
|
|
2340
2344
|
on as DeployComponent,
|
|
2341
|
-
|
|
2345
|
+
_r as metaData
|
|
2342
2346
|
};
|