@wso2/am-core-ui 0.0.3-rc1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1054 +1,305 @@
1
- import { jsx as t, jsxs as u, Fragment as oe } from "react/jsx-runtime";
2
- import { c as me } from "react/compiler-runtime";
3
- import { AuthProvider as st, useAuthHooks as Ge } from "@agent-management-platform/auth";
4
- export * from "@agent-management-platform/auth";
5
- import { ClientProvider as ht, useGetAgent as dt, useListEnvironments as mt, useListOrganizations as Ke, useListProjects as pt, useListAgents as gt } from "@agent-management-platform/api-client";
6
- export * from "@agent-management-platform/api-client";
7
- import { OxygenUIThemeProvider as ft, AcrylicOrangeTheme as ut, Sidebar as ie, useTheme as vt, ComplexSelect as R, Box as Ie, IconButton as xe, Menu as Qe, MenuItem as Ne, Stack as lt, Chip as rt, Header as be, AppShell as Pe, ColorSchemeToggle as yt, UserMenu as _e, Footer as ke, CircularProgress as bt } from "@wso2/oxygen-ui";
8
- import { ConfirmationDialogProvider as jt, ErrorPages as Le } from "@agent-management-platform/shared-component";
9
- import { SnackBarProvider as Pt, ExternalModuleProvider as _t, useExternalNavItems as Lt, useExternalComponentModules as $e, Logo as It, FullPageLoader as it, useExternalPageModules as zt } from "@agent-management-platform/views";
10
- export * from "@agent-management-platform/views";
11
- import { useState as Re, useMemo as Oe, useEffect as St, lazy as ot, Suspense as ce } from "react";
12
- import { useParams as Xe, useLocation as Ye, matchPath as D, generatePath as j, useMatch as Ze, useNavigate as qe, Outlet as Ct, Route as d, BrowserRouter as Mt, Routes as wt } from "react-router-dom";
13
- import { BarChart3 as At, Settings2 as Te, Binoculars as xt, Settings as Nt, Building2 as ct, Plus as Ee, Package as Be, X as et, ChevronRight as tt } from "@wso2/oxygen-ui-icons-react";
14
- import { absoluteRouteMap as s, relativeRouteMap as i } from "@agent-management-platform/types";
15
- export * from "@agent-management-platform/types";
16
- import { metaData as de } from "@agent-management-platform/overview";
17
- import { metaData as Fe } from "@agent-management-platform/build";
18
- import { metaData as Ue } from "@agent-management-platform/test";
19
- import { metaData as ze } from "@agent-management-platform/traces";
20
- import { metaData as Ve } from "@agent-management-platform/logs";
21
- import { metaData as We } from "@agent-management-platform/metrics";
22
- import { metaData as He } from "@agent-management-platform/deploy";
23
- import { metaData as Y } from "@agent-management-platform/eval";
24
- import { metaData as Ce } from "@agent-management-platform/llm-providers";
25
- import { gatewaysMetadata as De, metaData as kt } from "@agent-management-platform/gateways";
26
- import { metaData as Se, AddLLMProviderComponent as $t, ViewLLMProviderComponent as Et } from "@agent-management-platform/configure-agent";
27
- const Ot = (e) => {
28
- const n = me(5), {
29
- children: r,
30
- externalPageModules: l
31
- } = e;
32
- let o;
33
- n[0] !== l ? (o = l === void 0 ? [] : l, n[0] = l, n[1] = o) : o = n[1];
34
- const m = o;
35
- let p;
36
- return n[2] !== r || n[3] !== m ? (p = /* @__PURE__ */ t(ft, { theme: ut, children: /* @__PURE__ */ t(Pt, { children: /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t(jt, { children: /* @__PURE__ */ t(_t, { externalPageModules: m, children: r }) }) }) }) }) }), n[2] = r, n[3] = m, n[4] = p) : p = n[4], p;
37
- };
38
- function Tt(e) {
39
- const n = me(14), {
40
- collapsed: r,
41
- activeItem: l,
42
- mainItems: o,
43
- groupedItems: m,
44
- onNavigationClick: p
45
- } = e;
46
- let A;
47
- n[0] !== o ? (A = o.map(Bt), n[0] = o, n[1] = A) : A = n[1];
48
- let z;
49
- n[2] !== A ? (z = /* @__PURE__ */ t(ie.Category, { children: A }), n[2] = A, n[3] = z) : z = n[3];
50
- let g;
51
- n[4] !== m ? (g = m.map(Dt), n[4] = m, n[5] = g) : g = n[5];
52
- let S;
53
- n[6] !== z || n[7] !== g ? (S = /* @__PURE__ */ u(ie.Nav, { children: [
54
- z,
55
- g
56
- ] }), n[6] = z, n[7] = g, n[8] = S) : S = n[8];
57
- let _;
58
- return n[9] !== l || n[10] !== r || n[11] !== p || n[12] !== S ? (_ = /* @__PURE__ */ t(ie, { collapsed: r, activeItem: l, onSelect: p, width: 280, children: S }), n[9] = l, n[10] = r, n[11] = p, n[12] = S, n[13] = _) : _ = n[13], _;
59
- }
60
- function Dt(e) {
61
- return /* @__PURE__ */ u(ie.Category, { children: [
62
- /* @__PURE__ */ t(ie.CategoryLabel, { children: e.title }),
63
- e.items.map(Rt)
64
- ] }, e.title);
65
- }
66
- function Rt(e) {
67
- return /* @__PURE__ */ u(ie.Item, { id: e.label, children: [
68
- /* @__PURE__ */ t(ie.ItemIcon, { children: e.icon }),
69
- /* @__PURE__ */ t(ie.ItemLabel, { children: e.label })
70
- ] }, e.label);
71
- }
72
- function Bt(e) {
73
- return /* @__PURE__ */ u(ie.Item, { id: e.label, children: [
74
- /* @__PURE__ */ t(ie.ItemIcon, { children: e.icon }),
75
- /* @__PURE__ */ t(ie.ItemLabel, { children: e.label })
76
- ] }, e.label);
77
- }
78
- function Ft() {
79
- const e = me(201), {
80
- orgId: n,
81
- projectId: r,
82
- agentId: l,
83
- envId: o
84
- } = Xe();
85
- let m;
86
- e[0] !== l || e[1] !== n || e[2] !== r ? (m = {
87
- agentName: l,
88
- orgName: n,
89
- projName: r
90
- }, e[0] = l, e[1] = n, e[2] = r, e[3] = m) : m = e[3];
91
- const {
92
- data: p,
93
- isLoading: A
94
- } = dt(m);
95
- let z;
96
- e[4] !== n ? (z = {
97
- orgName: n
98
- }, e[4] = n, e[5] = z) : z = e[5];
99
- const {
100
- data: g,
101
- isLoading: S
102
- } = mt(z), _ = Lt(), v = o ?? (g && g.length > 0 ? g[0]?.name : ""), {
103
- pathname: c
104
- } = Ye(), B = s.children.org.children.llmProviders, O = s.children.org.children.projects.children.agents.children, G = s.children.org.children.gateways, K = s.children.org.children.evaluators;
105
- if (A || S && l) {
106
- let h;
107
- return e[6] === Symbol.for("react.memo_cache_sentinel") ? (h = [], e[6] = h) : h = e[6], h;
108
- }
109
- if (p?.provisioning.type === "external" && l && r && n) {
110
- let h;
111
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t(de.icon, { size: 20 }), e[7] = h) : h = e[7];
112
- const P = !!D(s.children.org.children.projects.children.agents.path, c);
113
- let b;
114
- e[8] !== l || e[9] !== n || e[10] !== r ? (b = j(s.children.org.children.projects.children.agents.path, {
115
- orgId: n,
116
- projectId: r,
117
- agentId: l
118
- }), e[8] = l, e[9] = n, e[10] = r, e[11] = b) : b = e[11];
119
- let f;
120
- e[12] !== P || e[13] !== b ? (f = {
121
- label: de.title,
122
- type: "item",
123
- icon: h,
124
- isActive: P,
125
- href: b
126
- }, e[12] = P, e[13] = b, e[14] = f) : f = e[14];
127
- let L;
128
- if (e[15] !== l || e[16] !== v || e[17] !== _ || e[18] !== n || e[19] !== c || e[20] !== r || e[21] !== f) {
129
- let k;
130
- e[23] !== l || e[24] !== n || e[25] !== c || e[26] !== r ? (k = (H) => ({
131
- label: H.title,
132
- type: "item",
133
- icon: H.icon,
134
- isActive: !!D(H.route, c),
135
- href: j(H.route, {
136
- orgId: n,
137
- projectId: r,
138
- agentId: l
139
- })
140
- }), e[23] = l, e[24] = n, e[25] = c, e[26] = r, e[27] = k) : k = e[27];
141
- const C = _.filter(Wt).map(k);
142
- let M;
143
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ t(Se.icon, { size: 20 }), e[28] = M) : M = e[28];
144
- const I = !!D(s.children.org.children.projects.children.agents.children.configure.wildPath, c);
145
- let w;
146
- e[29] !== l || e[30] !== n || e[31] !== r ? (w = j(s.children.org.children.projects.children.agents.children.configure.path, {
147
- orgId: n,
148
- projectId: r,
149
- agentId: l
150
- }), e[29] = l, e[30] = n, e[31] = r, e[32] = w) : w = e[32];
151
- let N;
152
- e[33] !== I || e[34] !== w ? (N = {
153
- label: Se.title,
154
- type: "item",
155
- icon: M,
156
- isActive: I,
157
- href: w
158
- }, e[33] = I, e[34] = w, e[35] = N) : N = e[35];
159
- let a;
160
- e[36] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ t(At, {}), e[36] = a) : a = e[36];
161
- let x;
162
- e[37] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ t(ze.icon, { size: 20 }), e[37] = x) : x = e[37];
163
- const V = !!D(s.children.org.children.projects.children.agents.children.environment.children.observability.children.traces.wildPath, c);
164
- let $;
165
- e[38] !== l || e[39] !== v || e[40] !== n || e[41] !== r ? ($ = j(s.children.org.children.projects.children.agents.children.environment.children.observability.children.traces.path, {
166
- orgId: n,
167
- projectId: r,
168
- agentId: l,
169
- envId: v
170
- }), e[38] = l, e[39] = v, e[40] = n, e[41] = r, e[42] = $) : $ = e[42];
171
- let F;
172
- e[43] !== V || e[44] !== $ ? (F = {
173
- title: "Observability",
174
- type: "section",
175
- icon: a,
176
- items: [{
177
- label: ze.title,
178
- type: "item",
179
- icon: x,
180
- isActive: V,
181
- href: $
182
- }]
183
- }, e[43] = V, e[44] = $, e[45] = F) : F = e[45];
184
- let U;
185
- e[46] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ t(Te, {}), e[46] = U) : U = e[46];
186
- let X;
187
- e[47] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ t(Y.pages.component.evalMonitors.icon, { size: 20 }), e[47] = X) : X = e[47];
188
- const T = !!D(s.children.org.children.projects.children.agents.children.evaluation.children.monitor.wildPath, c);
189
- let E;
190
- e[48] !== l || e[49] !== n || e[50] !== r ? (E = j(s.children.org.children.projects.children.agents.children.evaluation.children.monitor.path, {
191
- orgId: n,
192
- projectId: r,
193
- agentId: l
194
- }), e[48] = l, e[49] = n, e[50] = r, e[51] = E) : E = e[51];
195
- let W;
196
- e[52] !== T || e[53] !== E ? (W = {
197
- title: "Evaluation",
198
- type: "section",
199
- icon: U,
200
- items: [{
201
- label: Y.pages.component.evalMonitors.title,
202
- type: "item",
203
- icon: X,
204
- isActive: T,
205
- href: E
206
- }]
207
- }, e[52] = T, e[53] = E, e[54] = W) : W = e[54], L = [f, ...C, N, F, W], e[15] = l, e[16] = v, e[17] = _, e[18] = n, e[19] = c, e[20] = r, e[21] = f, e[22] = L;
208
- } else
209
- L = e[22];
210
- return L;
211
- }
212
- if (n && r && l && v) {
213
- let h;
214
- e[55] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t(de.icon, { size: 20 }), e[55] = h) : h = e[55];
215
- const P = !!D(s.children.org.children.projects.children.agents.path, c);
216
- let b;
217
- e[56] !== l || e[57] !== n || e[58] !== r ? (b = j(s.children.org.children.projects.children.agents.path, {
218
- orgId: n,
219
- projectId: r,
220
- agentId: l
221
- }), e[56] = l, e[57] = n, e[58] = r, e[59] = b) : b = e[59];
222
- let f;
223
- e[60] !== P || e[61] !== b ? (f = {
224
- label: de.title,
225
- type: "item",
226
- icon: h,
227
- isActive: P,
228
- href: b
229
- }, e[60] = P, e[61] = b, e[62] = f) : f = e[62];
230
- let L;
231
- e[63] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ t(Fe.icon, { size: 20 }), e[63] = L) : L = e[63];
232
- const k = !!D(s.children.org.children.projects.children.agents.children.build.wildPath, c);
233
- let C;
234
- e[64] !== l || e[65] !== n || e[66] !== r ? (C = j(s.children.org.children.projects.children.agents.children.build.path, {
235
- orgId: n,
236
- projectId: r,
237
- agentId: l
238
- }), e[64] = l, e[65] = n, e[66] = r, e[67] = C) : C = e[67];
239
- let M;
240
- e[68] !== k || e[69] !== C ? (M = {
241
- label: Fe.title,
242
- type: "item",
243
- icon: L,
244
- isActive: k,
245
- href: C
246
- }, e[68] = k, e[69] = C, e[70] = M) : M = e[70];
247
- let I;
248
- e[71] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ t(Se.icon, { size: 20 }), e[71] = I) : I = e[71];
249
- const w = !!D(O.configure?.wildPath ?? "", c);
250
- let N;
251
- e[72] !== l || e[73] !== n || e[74] !== r ? (N = j(O.configure?.path ?? "", {
252
- orgId: n,
253
- projectId: r,
254
- agentId: l
255
- }), e[72] = l, e[73] = n, e[74] = r, e[75] = N) : N = e[75];
256
- let a;
257
- e[76] !== w || e[77] !== N ? (a = {
258
- label: Se.title,
259
- type: "item",
260
- icon: I,
261
- isActive: w,
262
- href: N
263
- }, e[76] = w, e[77] = N, e[78] = a) : a = e[78];
264
- let x;
265
- e[79] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ t(He.icon, { size: 20 }), e[79] = x) : x = e[79];
266
- const V = !!D(s.children.org.children.projects.children.agents.children.deployment.wildPath, c);
267
- let $;
268
- e[80] !== l || e[81] !== n || e[82] !== r ? ($ = j(s.children.org.children.projects.children.agents.children.deployment.path, {
269
- orgId: n,
270
- projectId: r,
271
- agentId: l
272
- }), e[80] = l, e[81] = n, e[82] = r, e[83] = $) : $ = e[83];
273
- let F;
274
- e[84] !== V || e[85] !== $ ? (F = {
275
- label: He.title,
276
- type: "item",
277
- icon: x,
278
- isActive: V,
279
- href: $
280
- }, e[84] = V, e[85] = $, e[86] = F) : F = e[86];
281
- let U;
282
- e[87] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ t(Ue.icon, { size: 20 }), e[87] = U) : U = e[87];
283
- const X = !!D(s.children.org.children.projects.children.agents.children.environment.children.tryOut.wildPath, c);
284
- let T;
285
- e[88] !== l || e[89] !== v || e[90] !== n || e[91] !== r ? (T = j(s.children.org.children.projects.children.agents.children.environment.children.tryOut.path, {
286
- orgId: n,
287
- projectId: r,
288
- agentId: l,
289
- envId: v
290
- }), e[88] = l, e[89] = v, e[90] = n, e[91] = r, e[92] = T) : T = e[92];
291
- let E;
292
- e[93] !== X || e[94] !== T ? (E = {
293
- label: Ue.title,
294
- type: "item",
295
- icon: U,
296
- isActive: X,
297
- href: T
298
- }, e[93] = X, e[94] = T, e[95] = E) : E = e[95];
299
- let W;
300
- e[96] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ t(xt, {}), e[96] = W) : W = e[96];
301
- let H;
302
- e[97] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ t(ze.icon, { size: 20 }), e[97] = H) : H = e[97];
303
- const pe = !!D(s.children.org.children.projects.children.agents.children.environment.children.observability.children.traces.wildPath, c);
304
- let Z;
305
- e[98] !== l || e[99] !== v || e[100] !== n || e[101] !== r ? (Z = j(s.children.org.children.projects.children.agents.children.environment.children.observability.children.traces.path, {
306
- orgId: n,
307
- projectId: r,
308
- agentId: l,
309
- envId: v
310
- }), e[98] = l, e[99] = v, e[100] = n, e[101] = r, e[102] = Z) : Z = e[102];
311
- let ee;
312
- e[103] !== pe || e[104] !== Z ? (ee = {
313
- label: ze.title,
314
- type: "item",
315
- icon: H,
316
- isActive: pe,
317
- href: Z
318
- }, e[103] = pe, e[104] = Z, e[105] = ee) : ee = e[105];
319
- let se;
320
- e[106] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ t(Ve.icon, { size: 20 }), e[106] = se) : se = e[106];
321
- const ge = !!D(s.children.org.children.projects.children.agents.children.environment.children.observability.children.logs.wildPath, c);
322
- let q;
323
- e[107] !== l || e[108] !== v || e[109] !== n || e[110] !== r ? (q = j(s.children.org.children.projects.children.agents.children.environment.children.observability.children.logs.path, {
324
- orgId: n,
325
- projectId: r,
326
- agentId: l,
327
- envId: v
328
- }), e[107] = l, e[108] = v, e[109] = n, e[110] = r, e[111] = q) : q = e[111];
329
- let te;
330
- e[112] !== ge || e[113] !== q ? (te = {
331
- label: Ve.title,
332
- type: "item",
333
- icon: se,
334
- isActive: ge,
335
- href: q
336
- }, e[112] = ge, e[113] = q, e[114] = te) : te = e[114];
337
- let ne;
338
- e[115] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ t(We.icon, { size: 20 }), e[115] = ne) : ne = e[115];
339
- const fe = !!D(s.children.org.children.projects.children.agents.children.environment.children.observability.children.metrics.wildPath, c);
340
- let J;
341
- e[116] !== l || e[117] !== v || e[118] !== n || e[119] !== r ? (J = j(s.children.org.children.projects.children.agents.children.environment.children.observability.children.metrics.path, {
342
- orgId: n,
343
- projectId: r,
344
- agentId: l,
345
- envId: v
346
- }), e[116] = l, e[117] = v, e[118] = n, e[119] = r, e[120] = J) : J = e[120];
347
- let le;
348
- e[121] !== fe || e[122] !== J ? (le = {
349
- label: We.title,
350
- type: "item",
351
- icon: ne,
352
- isActive: fe,
353
- href: J
354
- }, e[121] = fe, e[122] = J, e[123] = le) : le = e[123];
355
- let Q;
356
- e[124] !== ee || e[125] !== te || e[126] !== le ? (Q = {
357
- title: "Observability",
358
- type: "section",
359
- icon: W,
360
- items: [ee, te, le]
361
- }, e[124] = ee, e[125] = te, e[126] = le, e[127] = Q) : Q = e[127];
362
- let re;
363
- e[128] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ t(Te, {}), e[128] = re) : re = e[128];
364
- let he;
365
- e[129] === Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ t(Y.pages.component.evalMonitors.icon, { size: 20 }), e[129] = he) : he = e[129];
366
- const je = !!D(s.children.org.children.projects.children.agents.children.evaluation.children.monitor.wildPath, c);
367
- let ue;
368
- e[130] !== l || e[131] !== n || e[132] !== r ? (ue = j(s.children.org.children.projects.children.agents.children.evaluation.children.monitor.path, {
369
- orgId: n,
370
- projectId: r,
371
- agentId: l
372
- }), e[130] = l, e[131] = n, e[132] = r, e[133] = ue) : ue = e[133];
373
- let ve;
374
- e[134] !== je || e[135] !== ue ? (ve = {
375
- title: "Evaluation",
376
- type: "section",
377
- icon: re,
378
- items: [{
379
- label: Y.pages.component.evalMonitors.title,
380
- type: "item",
381
- icon: he,
382
- isActive: je,
383
- href: ue
384
- }]
385
- }, e[134] = je, e[135] = ue, e[136] = ve) : ve = e[136];
386
- let Me;
387
- if (e[137] !== l || e[138] !== _ || e[139] !== n || e[140] !== c || e[141] !== r || e[142] !== a || e[143] !== F || e[144] !== E || e[145] !== Q || e[146] !== ve || e[147] !== f || e[148] !== M) {
388
- let we;
389
- e[150] !== l || e[151] !== n || e[152] !== c || e[153] !== r ? (we = (Ae) => ({
390
- label: Ae.title,
391
- type: "item",
392
- icon: Ae.icon,
393
- isActive: !!D(Ae.route, c),
394
- href: j(Ae.route, {
395
- orgId: n,
396
- projectId: r,
397
- agentId: l
398
- })
399
- }), e[150] = l, e[151] = n, e[152] = c, e[153] = r, e[154] = we) : we = e[154], Me = [f, M, a, F, E, Q, ve, ..._.filter(Vt).map(we)], e[137] = l, e[138] = _, e[139] = n, e[140] = c, e[141] = r, e[142] = a, e[143] = F, e[144] = E, e[145] = Q, e[146] = ve, e[147] = f, e[148] = M, e[149] = Me;
400
- } else
401
- Me = e[149];
402
- return Me;
403
- }
404
- if (n && r) {
405
- let h;
406
- e[155] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t(de.icon, { size: 20 }), e[155] = h) : h = e[155];
407
- let P;
408
- e[156] !== n || e[157] !== r ? (P = j(s.children.org.children.projects.path, {
409
- orgId: n,
410
- projectId: r
411
- }), e[156] = n, e[157] = r, e[158] = P) : P = e[158];
412
- const b = !!D(s.children.org.children.projects.path, c) || !!D(s.children.org.children.projects.children.agents.wildPath, c);
413
- let f;
414
- return e[159] !== P || e[160] !== b ? (f = [{
415
- label: "Agents",
416
- type: "item",
417
- icon: h,
418
- href: P,
419
- isActive: b
420
- }], e[159] = P, e[160] = b, e[161] = f) : f = e[161], f;
421
- }
422
- if (n) {
423
- let h;
424
- e[162] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t(de.icon, { size: 20 }), e[162] = h) : h = e[162];
425
- let P;
426
- e[163] !== n ? (P = j(s.children.org.path, {
427
- orgId: n
428
- }), e[163] = n, e[164] = P) : P = e[164];
429
- const b = !!D(s.children.org.path, c);
430
- let f;
431
- e[165] !== P || e[166] !== b ? (f = {
432
- label: "Projects",
433
- type: "item",
434
- icon: h,
435
- href: P,
436
- isActive: b
437
- }, e[165] = P, e[166] = b, e[167] = f) : f = e[167];
438
- let L;
439
- e[168] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ t(Nt, { size: 20 }), e[168] = L) : L = e[168];
440
- let k;
441
- e[169] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ t(Ce.icon, { size: 20 }), e[169] = k) : k = e[169];
442
- let C;
443
- e[170] !== n ? (C = j(B.path, {
444
- orgId: n
445
- }), e[170] = n, e[171] = C) : C = e[171];
446
- const M = !!D(B.wildPath, c);
447
- let I;
448
- e[172] !== C || e[173] !== M ? (I = {
449
- type: "section",
450
- title: "Resources",
451
- icon: L,
452
- items: [{
453
- label: Ce.title,
454
- type: "item",
455
- icon: k,
456
- href: C,
457
- isActive: M
458
- }]
459
- }, e[172] = C, e[173] = M, e[174] = I) : I = e[174];
460
- let w;
461
- e[175] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ t(Te, {}), e[175] = w) : w = e[175];
462
- let N;
463
- e[176] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ t(Y.pages.component.evalEvaluators.icon, { size: 20 }), e[176] = N) : N = e[176];
464
- const a = !!D(K.wildPath, c);
465
- let x;
466
- e[177] !== n ? (x = j(K.path, {
467
- orgId: n
468
- }), e[177] = n, e[178] = x) : x = e[178];
469
- let V;
470
- e[179] !== a || e[180] !== x ? (V = {
471
- title: "Evaluation",
472
- type: "section",
473
- icon: w,
474
- items: [{
475
- label: Y.pages.component.evalEvaluators.title,
476
- type: "item",
477
- icon: N,
478
- isActive: a,
479
- href: x
480
- }]
481
- }, e[179] = a, e[180] = x, e[181] = V) : V = e[181];
482
- let $;
483
- e[182] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ t(De.icon, {}), e[182] = $) : $ = e[182];
484
- let F;
485
- e[183] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ t(De.icon, { size: 20 }), e[183] = F) : F = e[183];
486
- let U;
487
- e[184] !== n ? (U = j(G.path, {
488
- orgId: n
489
- }), e[184] = n, e[185] = U) : U = e[185];
490
- const X = !!D(G.wildPath, c);
491
- let T;
492
- e[186] !== U || e[187] !== X ? (T = {
493
- title: "Infrastructure",
494
- type: "section",
495
- icon: $,
496
- items: [{
497
- label: De.title,
498
- type: "item",
499
- icon: F,
500
- href: U,
501
- isActive: X
502
- }]
503
- }, e[186] = U, e[187] = X, e[188] = T) : T = e[188];
504
- let E;
505
- if (e[189] !== _ || e[190] !== n || e[191] !== c || e[192] !== I || e[193] !== V || e[194] !== T || e[195] !== f) {
506
- let W;
507
- e[197] !== n || e[198] !== c ? (W = (H) => ({
508
- label: H.title,
509
- type: "item",
510
- icon: H.icon,
511
- isActive: !!D(H.route, c),
512
- href: j(H.route, {
513
- orgId: n
514
- })
515
- }), e[197] = n, e[198] = c, e[199] = W) : W = e[199], E = [f, I, V, T, ..._.filter(Ut).map(W)], e[189] = _, e[190] = n, e[191] = c, e[192] = I, e[193] = V, e[194] = T, e[195] = f, e[196] = E;
516
- } else
517
- E = e[196];
518
- return E;
519
- }
520
- let y;
521
- return e[200] === Symbol.for("react.memo_cache_sentinel") ? (y = [], e[200] = y) : y = e[200], y;
522
- }
523
- function Ut(e) {
524
- return e.level === "org";
525
- }
526
- function Vt(e) {
527
- return e.level === "component";
528
- }
529
- function Wt(e) {
530
- return e.level === "component";
531
- }
532
- function Je(e) {
533
- const n = me(3), r = Ze(e + "/:page/*"), l = Ze(e + "/:page/:subPage/*"), o = r?.params.page ?? null, m = l?.params.subPage ?? null;
534
- let p;
535
- return n[0] !== o || n[1] !== m ? (p = {
536
- page: o,
537
- subPage: m
538
- }, n[0] = o, n[1] = m, n[2] = p) : p = n[2], p;
539
- }
540
- function Ht() {
541
- const {
542
- page: e
543
- } = Je(s.children.org.path);
544
- let n;
545
- e: {
546
- if (e !== "projects" && e !== i.children.org.children.projects.path && e !== i.children.org.children.newProject.path) {
547
- n = e;
548
- break e;
549
- }
550
- n = null;
551
- }
552
- return n;
553
- }
554
- function Gt() {
555
- const {
556
- page: e
557
- } = Je(s.children.org.children.projects.path);
558
- let n;
559
- e: {
560
- if (e !== "agents" && e !== i.children.org.children.projects.children.agents.path && e !== i.children.org.children.projects.children.newAgent.path) {
561
- n = e;
562
- break e;
563
- }
564
- n = null;
565
- }
566
- return n;
567
- }
568
- function Kt() {
569
- const {
570
- page: e,
571
- subPage: n
572
- } = Je(s.children.org.children.projects.children.agents.path);
573
- let r;
574
- e: {
575
- if (e !== "environment" && n !== "evaluation" && e !== i.children.org.children.projects.children.agents.children.build.path && e !== i.children.org.children.projects.children.agents.children.deployment.path && e !== i.children.org.children.projects.children.agents.children.environment.path && e !== i.children.org.children.projects.children.agents.children.evaluation.path) {
576
- r = e;
577
- break e;
578
- }
579
- if (n && e === "evaluation") {
580
- r = `${e}/${n}`;
581
- break e;
582
- }
583
- r = null;
584
- }
585
- return r;
586
- }
587
- function Xt() {
588
- const e = me(45), n = qe(), r = vt(), {
589
- orgId: l,
590
- projectId: o,
591
- agentId: m
592
- } = Xe(), p = Ht(), A = Gt(), z = Kt(), [g, S] = Re(null), _ = !!g, [v, c] = Re(null), B = !!v, {
593
- data: O
594
- } = Ke();
595
- let G;
596
- e[0] !== l || e[1] !== O?.organizations ? (G = O?.organizations?.find((a) => a.name === l), e[0] = l, e[1] = O?.organizations, e[2] = G) : G = e[2];
597
- const K = G;
598
- let y;
599
- e[3] !== l ? (y = {
600
- orgName: l
601
- }, e[3] = l, e[4] = y) : y = e[4];
602
- const {
603
- data: h
604
- } = pt(y);
605
- let P;
606
- e[5] !== o || e[6] !== h?.projects ? (P = h?.projects?.find((a) => a.name === o), e[5] = o, e[6] = h?.projects, e[7] = P) : P = e[7];
607
- const b = P;
608
- let f;
609
- e[8] !== l || e[9] !== o ? (f = {
610
- orgName: l,
611
- projName: o
612
- }, e[8] = l, e[9] = o, e[10] = f) : f = e[10];
613
- const {
614
- data: L
615
- } = gt(f);
616
- let k;
617
- e[11] !== m || e[12] !== L?.agents ? (k = L?.agents?.find((a) => a.name === m), e[11] = m, e[12] = L?.agents, e[13] = k) : k = e[13];
618
- const C = k;
619
- let M;
620
- e[14] !== p || e[15] !== n || e[16] !== l || e[17] !== O || e[18] !== K ? (M = O?.organizations && O.organizations.length > 1 && /* @__PURE__ */ t(oe, { children: K && /* @__PURE__ */ t(R, { value: l, size: "small", sx: {
621
- minWidth: 180
622
- }, label: "Organizations", renderValue: () => /* @__PURE__ */ u(oe, { children: [
623
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(ct, { size: 20 }) }),
624
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: K?.displayName })
625
- ] }), onChange: (a) => {
626
- const x = a.target.value;
627
- n(j(s.children.org.path, {
628
- orgId: x
629
- }) + (p ? `/${p}` : ""));
630
- }, children: O.organizations.map(Jt) }) }), e[14] = p, e[15] = n, e[16] = l, e[17] = O, e[18] = K, e[19] = M) : M = e[19];
631
- let I;
632
- e[20] !== A || e[21] !== n || e[22] !== l || e[23] !== g || e[24] !== o || e[25] !== _ || e[26] !== h || e[27] !== b || e[28] !== r ? (I = h?.projects && /* @__PURE__ */ t(oe, { children: b ? /* @__PURE__ */ u(Ie, { position: "relative", children: [
633
- /* @__PURE__ */ u(R, { value: o, size: "small", sx: {
634
- minWidth: 180
635
- }, label: "Projects", renderValue: () => /* @__PURE__ */ u(oe, { children: [
636
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(Be, { size: 20 }) }),
637
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: b?.displayName })
638
- ] }), onChange: (a) => {
639
- const x = a.target.value;
640
- n(j(s.children.org.children.projects.path, {
641
- orgId: l,
642
- projectId: x
643
- }) + (A ? `/${A}` : ""));
644
- }, children: [
645
- /* @__PURE__ */ u(R.MenuItem, { onClick: (a) => {
646
- a.preventDefault(), a.stopPropagation(), n(j(s.children.org.children.newProject.path, {
647
- orgId: l
648
- }));
649
- }, children: [
650
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(Ee, { size: 20 }) }),
651
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: "Create a Project" })
652
- ] }),
653
- h.projects.map(qt)
654
- ] }),
655
- /* @__PURE__ */ t(Ie, { position: "absolute", right: 0, top: -2, children: /* @__PURE__ */ t(xe, { size: "small", sx: {
656
- color: r.vars?.palette.text.disabled
657
- }, onClick: () => {
658
- n(j(s.children.org.path, {
659
- orgId: l
660
- }));
661
- }, children: /* @__PURE__ */ t(et, { size: 12 }) }) })
662
- ] }) : /* @__PURE__ */ u(oe, { children: [
663
- /* @__PURE__ */ t(xe, { onClick: (a) => S(a.currentTarget), size: "small", sx: {
664
- transform: _ ? "rotate(90deg)" : "rotate(0deg)",
665
- transition: "transform 0.2s"
666
- }, children: /* @__PURE__ */ t(tt, { size: 20 }) }),
667
- /* @__PURE__ */ u(Qe, { anchorEl: g, open: _, onClose: () => S(null), children: [
668
- /* @__PURE__ */ u(Ne, { onClick: () => {
669
- S(null), n(j(s.children.org.children.newProject.path, {
670
- orgId: l
671
- }));
672
- }, children: [
673
- /* @__PURE__ */ t(Ee, { size: 20, style: {
674
- marginRight: 8
675
- } }),
676
- "Create a Project"
677
- ] }),
678
- h.projects.map((a) => /* @__PURE__ */ u(Ne, { onClick: () => {
679
- S(null), n(j(s.children.org.children.projects.path, {
680
- orgId: l,
681
- projectId: a.name
682
- }));
683
- }, children: [
684
- /* @__PURE__ */ t(Be, { size: 20, style: {
685
- marginRight: 8
686
- } }),
687
- a.displayName
688
- ] }, a.name))
689
- ] })
690
- ] }) }), e[20] = A, e[21] = n, e[22] = l, e[23] = g, e[24] = o, e[25] = _, e[26] = h, e[27] = b, e[28] = r, e[29] = I) : I = e[29];
691
- let w;
692
- e[30] !== v || e[31] !== m || e[32] !== B || e[33] !== L || e[34] !== z || e[35] !== n || e[36] !== l || e[37] !== o || e[38] !== C || e[39] !== r ? (w = L?.agents && /* @__PURE__ */ t(oe, { children: C ? /* @__PURE__ */ u(Ie, { position: "relative", children: [
693
- /* @__PURE__ */ u(R, { value: m, size: "small", label: "Agents", sx: {
694
- minWidth: 180
695
- }, renderValue: () => /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(R.MenuItem.Text, { primary: C?.displayName }) }), onChange: (a) => {
696
- const x = a.target.value;
697
- n(j(s.children.org.children.projects.children.agents.path, {
698
- orgId: l,
699
- projectId: o,
700
- agentId: x
701
- }) + (z ? `/${z}` : ""));
702
- }, children: [
703
- /* @__PURE__ */ u(R.MenuItem, { onClick: (a) => {
704
- a.preventDefault(), a.stopPropagation(), n(j(s.children.org.children.projects.children.newAgent.path, {
705
- orgId: l,
706
- projectId: o
707
- }));
708
- }, children: [
709
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(Ee, { size: 20 }) }),
710
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: "Create an Agent" })
711
- ] }),
712
- L.agents.map(Yt)
713
- ] }),
714
- /* @__PURE__ */ t(Ie, { position: "absolute", right: 0, top: -2, children: /* @__PURE__ */ t(xe, { size: "small", sx: {
715
- color: r.vars?.palette.text.disabled
716
- }, onClick: () => {
717
- n(j(s.children.org.children.projects.path, {
718
- orgId: l,
719
- projectId: o
720
- }));
721
- }, children: /* @__PURE__ */ t(et, { size: 12 }) }) })
722
- ] }) : /* @__PURE__ */ u(oe, { children: [
723
- /* @__PURE__ */ t(xe, { onClick: (a) => c(a.currentTarget), size: "small", sx: {
724
- transform: B ? "rotate(90deg)" : "rotate(0deg)",
725
- transition: "transform 0.2s"
726
- }, children: /* @__PURE__ */ t(tt, { size: 20 }) }),
727
- /* @__PURE__ */ u(Qe, { anchorEl: v, open: B, onClose: () => c(null), children: [
728
- /* @__PURE__ */ u(Ne, { onClick: () => {
729
- c(null), n(j(s.children.org.children.projects.children.newAgent.path, {
730
- orgId: l,
731
- projectId: o
732
- }));
733
- }, children: [
734
- /* @__PURE__ */ t(Ee, { size: 20, style: {
735
- marginRight: 8
736
- } }),
737
- "Create an Agent"
738
- ] }),
739
- L.agents.map((a) => /* @__PURE__ */ t(Ne, { onClick: () => {
740
- c(null), n(j(s.children.org.children.projects.children.agents.path, {
741
- orgId: l,
742
- projectId: o,
743
- agentId: a.name
744
- }));
745
- }, children: /* @__PURE__ */ u(lt, { direction: "row", gap: 1, alignItems: "center", children: [
746
- a.displayName,
747
- a.provisioning.type === "external" && /* @__PURE__ */ t(rt, { label: "External", size: "small", variant: "outlined" })
748
- ] }) }, a.name))
749
- ] })
750
- ] }) }), e[30] = v, e[31] = m, e[32] = B, e[33] = L, e[34] = z, e[35] = n, e[36] = l, e[37] = o, e[38] = C, e[39] = r, e[40] = w) : w = e[40];
751
- let N;
752
- return e[41] !== M || e[42] !== I || e[43] !== w ? (N = /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ u(be.Switchers, { showDivider: !1, children: [
753
- M,
754
- I,
755
- w
756
- ] }) }), e[41] = M, e[42] = I, e[43] = w, e[44] = N) : N = e[44], N;
757
- }
758
- function Yt(e) {
759
- return /* @__PURE__ */ t(R.MenuItem, { value: e.name, children: /* @__PURE__ */ t(R.MenuItem.Text, { primary: /* @__PURE__ */ u(lt, { direction: "row", gap: 1, alignItems: "center", children: [
760
- e.displayName,
761
- e.provisioning.type === "external" && /* @__PURE__ */ t(rt, { label: "External", size: "small", variant: "outlined" })
762
- ] }) }) }, e.name);
763
- }
764
- function qt(e) {
765
- return /* @__PURE__ */ u(R.MenuItem, { value: e.name, children: [
766
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(Be, { size: 20 }) }),
767
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: e.displayName })
768
- ] }, e.name);
769
- }
770
- function Jt(e) {
771
- return /* @__PURE__ */ u(R.MenuItem, { value: e.name, children: [
772
- /* @__PURE__ */ t(R.MenuItem.Icon, { children: /* @__PURE__ */ t(ct, { size: 20 }) }),
773
- /* @__PURE__ */ t(R.MenuItem.Text, { primary: e.displayName ?? e.name })
774
- ] }, e.name);
775
- }
776
- var ye = /* @__PURE__ */ ((e) => (e.ComponentLevelPage = "component-level-page", e.OrgLevelPage = "org-level-page", e.ProjectLevelPage = "project-level-page", e.TopLeftPanel = "top-left-panel", e.TopRightPanel = "top-right-panel", e.BottomLeftPanel = "bottom-left-panel", e.BottomRightPanel = "bottom-right-panel", e.LeftNavItem = "left-nav-item", e.PrivateRepoSupport = "private-repo-support", e))(ye || {});
777
- const at = (e, n) => [...e, ...n.flatMap((r) => r.items)], Qt = (e, n, r) => at(e, n).find((o) => o.label === r);
778
- function Zt() {
779
- const [e, n] = Re(!1), {
780
- userInfo: r,
781
- logout: l
782
- } = Ge(), o = qe(), m = $e(ye.TopRightPanel), p = $e(ye.TopLeftPanel), A = $e(ye.BottomLeftPanel), z = $e(ye.BottomRightPanel), {
783
- data: g
784
- } = Ke(), S = Oe(() => j(s.children.org.path, {
785
- orgId: g?.organizations?.[0]?.name ?? ""
786
- }), [g]), _ = {
787
- primaryLine: r?.givenName ?? r?.username ?? "User",
788
- secondaryLine: r?.orgName ?? r?.email ?? r?.username ?? r?.givenName ?? ""
789
- }, v = Ft(), c = v.filter((y) => y.type === "item"), B = v.filter((y) => y.type === "section"), O = Oe(() => at(c, B).find((h) => h.isActive)?.label ?? "", [c, B]), G = async () => {
790
- await l();
791
- }, K = (y) => {
792
- const h = Qt(c, B, y);
793
- h?.href && o(h.href);
794
- };
795
- return /* @__PURE__ */ u(Pe, { children: [
796
- /* @__PURE__ */ t(Pe.Navbar, { children: /* @__PURE__ */ u(be, { children: [
797
- /* @__PURE__ */ t(be.Toggle, { collapsed: e, onToggle: () => n(!e) }),
798
- /* @__PURE__ */ t(be.Brand, { onClick: () => o(S), children: /* @__PURE__ */ t(be.BrandLogo, { children: /* @__PURE__ */ t(It, {}) }) }),
799
- /* @__PURE__ */ t(Xt, {}),
800
- p?.map((y) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(y.component, {}) }, y.moduleName)),
801
- /* @__PURE__ */ t(be.Spacer, {}),
802
- m?.map((y) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(y.component, {}) }, y.moduleName)),
803
- /* @__PURE__ */ u(be.Actions, { children: [
804
- /* @__PURE__ */ t(yt, {}),
805
- /* @__PURE__ */ u(_e, { children: [
806
- /* @__PURE__ */ t(_e.Trigger, { name: _.primaryLine }),
807
- /* @__PURE__ */ t(_e.Header, { name: _.primaryLine, email: _.secondaryLine }),
808
- /* @__PURE__ */ t(_e.Divider, {}),
809
- /* @__PURE__ */ t(_e.Logout, { onClick: G })
810
- ] })
811
- ] })
812
- ] }) }),
813
- /* @__PURE__ */ t(Pe.Sidebar, { children: /* @__PURE__ */ t(Tt, { collapsed: e, activeItem: O, mainItems: c, groupedItems: B, onNavigationClick: K }) }),
814
- /* @__PURE__ */ t(Pe.Main, { children: /* @__PURE__ */ t(Ct, {}) }),
815
- /* @__PURE__ */ t(Pe.Footer, { children: /* @__PURE__ */ u(ke, { children: [
816
- /* @__PURE__ */ u(ke.Copyright, { children: [
817
- "© ",
818
- (/* @__PURE__ */ new Date()).getFullYear(),
819
- " WSO2 LLC. All rights reserved."
820
- ] }),
821
- A?.map((y) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(y.component, {}) }, y.moduleName)),
822
- z?.map((y) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(y.component, {}) }, y.moduleName)),
823
- /* @__PURE__ */ t(ke.Link, { href: "#terms", children: "Terms & Conditions" }),
824
- /* @__PURE__ */ t(ke.Link, { href: "#privacy", children: "Privacy Policy" })
825
- ] }) })
826
- ] });
827
- }
828
- const en = (e) => {
829
- const n = me(3), {
830
- children: r
831
- } = e, {
832
- isAuthenticated: l,
833
- isLoadingIsAuthenticated: o
834
- } = Ge(), m = qe(), {
835
- pathname: p
836
- } = Ye(), {
837
- data: A
838
- } = Ke(), {
839
- orgId: z
840
- } = Xe();
841
- if (o) {
842
- let S;
843
- return n[0] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ t(it, {}), n[0] = S) : S = n[0], S;
844
- }
845
- l ? A?.organizations?.length && !z && m(j(s.children.org.children.projects.path, {
846
- orgId: A?.organizations[0].name,
847
- projectId: "default"
848
- }), {
849
- state: {
850
- from: p
851
- }
852
- }) : m(j(s.children.login.path), {
853
- state: {
854
- from: p
855
- }
856
- });
857
- let g;
858
- return n[1] !== r ? (g = /* @__PURE__ */ t(oe, { children: r }), n[1] = r, n[2] = g) : g = n[2], g;
859
- };
860
- function tn() {
861
- const {
862
- isAuthenticated: e,
863
- login: n,
864
- userInfo: r,
865
- isLoadingUserInfo: l,
866
- isLoadingIsAuthenticated: o
867
- } = Ge(), {
868
- state: m
869
- } = Ye(), p = m?.from?.pathname || "/", A = Oe(() => new URLSearchParams(window.location.search).has("code"), []), z = Oe(() => {
870
- if (typeof p != "string")
871
- return "/";
872
- try {
873
- const g = new URL(p, window.location.origin);
874
- if (g.origin === window.location.origin)
875
- return `${g.pathname}${g.search}${g.hash}`;
876
- } catch {
877
- console.warn("Invalid redirect URL, falling back to default:", p);
878
- }
879
- return "/";
880
- }, [p]);
881
- return St(() => {
882
- if (!(o || l)) {
883
- if (e || r?.sub) {
884
- window.location.assign(z);
885
- return;
886
- }
887
- A || n();
888
- }
889
- }, [
890
- e,
891
- o,
892
- l,
893
- A,
894
- z,
895
- r
896
- // login, comment out to avoid infinite re-render
897
- ]), /* @__PURE__ */ t(it, {});
898
- }
899
- const nn = de.levels.organization, ln = de.levels.project, rn = de.levels.component, on = Fe.levels.component, cn = Se.component, nt = $t, an = Et, sn = He.levels.component, hn = Ue.levels.component, dn = ze.levels.component, mn = Ve.levels.component, pn = We.levels.component, gn = Y.pages.component.evalEvaluators.component, fn = Y.pages.component.createEvaluator.component, un = Y.pages.component.viewEvaluator.component, vn = Y.pages.component.editEvaluator.component, yn = Y.pages.component.evalMonitors.component, bn = Y.pages.component.createMonitor.component, jn = Y.pages.component.editMonitor.component, Pn = Y.pages.component.viewMonitor.component, _n = Ce.levels.organization, Ln = Ce.levels.component, In = Ce.levels.addLLMProvidersOrganization, zn = kt.levels.organization, Sn = ot(() => import("@agent-management-platform/add-new-agent").then((e) => ({
900
- default: e.metaData.component
901
- }))), Cn = ot(() => import("@agent-management-platform/add-new-project").then((e) => ({
902
- default: e.metaData.component
903
- }))), ae = () => {
904
- const e = me(1);
905
- let n;
906
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ t(Ie, { sx: {
907
- display: "flex",
908
- justifyContent: "center",
909
- alignItems: "center",
910
- minHeight: "400px",
911
- width: "100%"
912
- }, children: /* @__PURE__ */ t(bt, {}) }), e[0] = n) : n = e[0], n;
913
- };
914
- function Mn() {
915
- const e = me(100), n = zt();
916
- let r, l, o, m, p, A, z, g, S, _, v, c, B, O, G, K, y, h, P, b, f, L, k, C, M, I, w;
917
- if (e[0] !== n) {
918
- const {
919
- projectPageModules: je,
920
- orgPageModules: ue,
921
- componentPageModules: ve
922
- } = n.reduce(Nn, {
923
- projectPageModules: [],
924
- orgPageModules: [],
925
- componentPageModules: []
926
- });
927
- A = Mt, p = wt, e[28] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ t(d, { path: i.children.login.path, element: /* @__PURE__ */ t(tn, {}) }), e[28] = b) : b = e[28], m = d, y = "/", e[29] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t(en, { children: /* @__PURE__ */ t(Zt, {}) }), e[29] = h) : h = e[29], o = d, M = i.children.org.path, e[30] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ t(d, { index: !0, element: /* @__PURE__ */ t(nn, {}) }), e[30] = I) : I = e[30], w = ue.map(xn), e[31] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ t(d, { path: i.children.org.children.gateways.path + "/*", element: /* @__PURE__ */ t(zn, {}) }), e[31] = S) : S = e[31], e[32] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ t(d, { path: i.children.org.children.llmProviders.path + "/*", element: /* @__PURE__ */ t(_n, {}) }), e[32] = _) : _ = e[32], e[33] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ t(d, { path: i.children.org.children.llmProviders.path + "/" + i.children.org.children.llmProviders.children.add.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(In, {}) }) }), e[33] = v) : v = e[33], e[34] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t(d, { path: i.children.org.children.evaluators.path, element: /* @__PURE__ */ t(gn, {}) }), e[34] = c) : c = e[34], e[35] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ t(d, { path: i.children.org.children.evaluators.path + "/" + i.children.org.children.evaluators.children.create.path, element: /* @__PURE__ */ t(fn, {}) }), e[35] = B) : B = e[35], e[36] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ t(d, { path: i.children.org.children.evaluators.path + "/" + i.children.org.children.evaluators.children.edit.path, element: /* @__PURE__ */ t(vn, {}) }), e[36] = O) : O = e[36], e[37] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ t(d, { path: i.children.org.children.evaluators.path + "/" + i.children.org.children.evaluators.children.view.path, element: /* @__PURE__ */ t(un, {}) }), e[37] = G) : G = e[37], e[38] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ t(d, { path: i.children.org.children.newProject.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(Cn, {}) }) }), e[38] = K) : K = e[38], l = d, f = i.children.org.children.projects.path, e[39] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ t(d, { index: !0, element: /* @__PURE__ */ t(ln, {}) }), e[39] = L) : L = e[39], k = je.map(An), e[40] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.newAgent.path + "/*", element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(Sn, {}) }) }), e[40] = C) : C = e[40], r = d, z = i.children.org.children.projects.children.agents.path, e[41] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ t(d, { index: !0, element: /* @__PURE__ */ t(rn, {}) }), e[41] = g) : g = e[41], P = ve.map(wn), e[0] = n, e[1] = r, e[2] = l, e[3] = o, e[4] = m, e[5] = p, e[6] = A, e[7] = z, e[8] = g, e[9] = S, e[10] = _, e[11] = v, e[12] = c, e[13] = B, e[14] = O, e[15] = G, e[16] = K, e[17] = y, e[18] = h, e[19] = P, e[20] = b, e[21] = f, e[22] = L, e[23] = k, e[24] = C, e[25] = M, e[26] = I, e[27] = w;
928
- } else
929
- r = e[1], l = e[2], o = e[3], m = e[4], p = e[5], A = e[6], z = e[7], g = e[8], S = e[9], _ = e[10], v = e[11], c = e[12], B = e[13], O = e[14], G = e[15], K = e[16], y = e[17], h = e[18], P = e[19], b = e[20], f = e[21], L = e[22], k = e[23], C = e[24], M = e[25], I = e[26], w = e[27];
930
- let N;
931
- e[42] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.configure.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(cn, {}) }) }), e[42] = N) : N = e[42];
932
- let a;
933
- e[43] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.configure.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.path, element: /* @__PURE__ */ t(Ln, {}) }), e[43] = a) : a = e[43];
934
- let x;
935
- e[44] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.configure.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.children.add.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(nt, {}) }) }), e[44] = x) : x = e[44];
936
- let V;
937
- e[45] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.configure.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.children.edit.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(nt, {}) }) }), e[45] = V) : V = e[45];
938
- let $;
939
- e[46] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.configure.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.path + "/" + i.children.org.children.projects.children.agents.children.configure.children.llmProviders.children.view.path, element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(an, {}) }) }), e[46] = $) : $ = e[46];
940
- let F;
941
- e[47] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.build.path, element: /* @__PURE__ */ t(on, {}) }), e[47] = F) : F = e[47];
942
- let U;
943
- e[48] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.deployment.path, element: /* @__PURE__ */ t(sn, {}) }), e[48] = U) : U = e[48];
944
- let X;
945
- e[49] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.evaluation.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.path, element: /* @__PURE__ */ t(yn, {}) }), e[49] = X) : X = e[49];
946
- let T;
947
- e[50] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.evaluation.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.children.create.path, element: /* @__PURE__ */ t(bn, {}) }), e[50] = T) : T = e[50];
948
- let E;
949
- e[51] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.evaluation.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.children.edit.path, element: /* @__PURE__ */ t(jn, {}) }), e[51] = E) : E = e[51];
950
- let W;
951
- e[52] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.evaluation.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.path + "/" + i.children.org.children.projects.children.agents.children.evaluation.children.monitor.children.view.path + "/*", element: /* @__PURE__ */ t(Pn, {}) }), e[52] = W) : W = e[52];
952
- let H;
953
- e[53] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.environment.children.tryOut.path + "/*", element: /* @__PURE__ */ t(hn, {}) }), e[53] = H) : H = e[53];
954
- let pe;
955
- e[54] === Symbol.for("react.memo_cache_sentinel") ? (pe = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.environment.children.observability.path + "/" + i.children.org.children.projects.children.agents.children.environment.children.observability.children.traces.path, element: /* @__PURE__ */ t(dn, {}) }), e[54] = pe) : pe = e[54];
956
- let Z;
957
- e[55] === Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.environment.children.observability.path + "/" + i.children.org.children.projects.children.agents.children.environment.children.observability.children.logs.path, element: /* @__PURE__ */ t(mn, {}) }), e[55] = Z) : Z = e[55];
958
- let ee;
959
- e[56] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ t(d, { path: i.children.org.children.projects.children.agents.children.environment.children.observability.path + "/" + i.children.org.children.projects.children.agents.children.environment.children.observability.children.metrics.path, element: /* @__PURE__ */ t(pn, {}) }), e[56] = ee) : ee = e[56];
960
- let se;
961
- e[57] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ u(d, { path: i.children.org.children.projects.children.agents.children.environment.path, children: [
962
- H,
963
- pe,
964
- Z,
965
- ee,
966
- /* @__PURE__ */ t(d, { path: "*", element: /* @__PURE__ */ t(Le.NotFound, {}) })
967
- ] }), e[57] = se) : se = e[57];
968
- let ge;
969
- e[58] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ t(d, { path: "*", element: /* @__PURE__ */ t(Le.NotFound, {}) }), e[58] = ge) : ge = e[58];
970
- let q;
971
- e[59] !== r || e[60] !== z || e[61] !== g || e[62] !== P ? (q = /* @__PURE__ */ u(r, { path: z, children: [
972
- g,
973
- P,
974
- N,
975
- a,
976
- x,
977
- V,
978
- $,
979
- F,
980
- U,
981
- X,
982
- T,
983
- E,
984
- W,
985
- se,
986
- ge
987
- ] }), e[59] = r, e[60] = z, e[61] = g, e[62] = P, e[63] = q) : q = e[63];
988
- let te;
989
- e[64] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ t(d, { path: "*", element: /* @__PURE__ */ t(Le.NotFound, {}) }), e[64] = te) : te = e[64];
990
- let ne;
991
- e[65] !== l || e[66] !== f || e[67] !== q || e[68] !== L || e[69] !== k || e[70] !== C ? (ne = /* @__PURE__ */ u(l, { path: f, children: [
992
- L,
993
- k,
994
- C,
995
- q,
996
- te
997
- ] }), e[65] = l, e[66] = f, e[67] = q, e[68] = L, e[69] = k, e[70] = C, e[71] = ne) : ne = e[71];
998
- let fe;
999
- e[72] === Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ t(d, { path: "*", element: /* @__PURE__ */ t(Le.NotFound, {}) }), e[72] = fe) : fe = e[72];
1000
- let J;
1001
- e[73] !== o || e[74] !== S || e[75] !== _ || e[76] !== v || e[77] !== c || e[78] !== B || e[79] !== O || e[80] !== G || e[81] !== K || e[82] !== ne || e[83] !== M || e[84] !== I || e[85] !== w ? (J = /* @__PURE__ */ u(o, { path: M, children: [
1002
- I,
1003
- w,
1004
- S,
1005
- _,
1006
- v,
1007
- c,
1008
- B,
1009
- O,
1010
- G,
1011
- K,
1012
- ne,
1013
- fe
1014
- ] }), e[73] = o, e[74] = S, e[75] = _, e[76] = v, e[77] = c, e[78] = B, e[79] = O, e[80] = G, e[81] = K, e[82] = ne, e[83] = M, e[84] = I, e[85] = w, e[86] = J) : J = e[86];
1015
- let le;
1016
- e[87] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ t(d, { path: "*", element: /* @__PURE__ */ t(Le.NotFound, {}) }), e[87] = le) : le = e[87];
1017
- let Q;
1018
- e[88] !== m || e[89] !== y || e[90] !== h || e[91] !== J ? (Q = /* @__PURE__ */ u(m, { path: y, element: h, children: [
1019
- J,
1020
- le
1021
- ] }), e[88] = m, e[89] = y, e[90] = h, e[91] = J, e[92] = Q) : Q = e[92];
1022
- let re;
1023
- e[93] !== p || e[94] !== b || e[95] !== Q ? (re = /* @__PURE__ */ u(p, { children: [
1024
- b,
1025
- Q
1026
- ] }), e[93] = p, e[94] = b, e[95] = Q, e[96] = re) : re = e[96];
1027
- let he;
1028
- return e[97] !== A || e[98] !== re ? (he = /* @__PURE__ */ t(A, { children: re }), e[97] = A, e[98] = re, e[99] = he) : he = e[99], he;
1029
- }
1030
- function wn(e) {
1031
- return /* @__PURE__ */ t(d, { path: e.path + "/*", element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(e.pageComponent, {}) }) }, e.path);
1032
- }
1033
- function An(e) {
1034
- return /* @__PURE__ */ t(d, { path: e.path + "/*", element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(e.pageComponent, {}) }) }, e.path);
1035
- }
1036
- function xn(e) {
1037
- return /* @__PURE__ */ t(d, { path: e.path + "/*", element: /* @__PURE__ */ t(ce, { fallback: /* @__PURE__ */ t(ae, {}), children: /* @__PURE__ */ t(e.pageComponent, {}) }) }, e.path);
1038
- }
1039
- function Nn(e, n) {
1040
- return n.mountPoint === ye.ProjectLevelPage ? e.projectPageModules.push(n) : n.mountPoint === ye.OrgLevelPage ? e.orgPageModules.push(n) : n.mountPoint === ye.ComponentLevelPage && e.componentPageModules.push(n), e;
1041
- }
1042
- function tl(e) {
1043
- const n = me(3), {
1044
- externalPageModules: r
1045
- } = e;
1046
- let l;
1047
- n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ t(Mn, {}), n[0] = l) : l = n[0];
1048
- let o;
1049
- return n[1] !== r ? (o = /* @__PURE__ */ t(Ot, { externalPageModules: r, children: l }), n[1] = r, n[2] = o) : o = n[2], o;
1050
- }
1
+ import { A as a, B as t, a as o, b as r, c as n, d as i, D as u, e as d, f as l, g, h as L, E as c, i as M, j as P, F as A, k as p, I as y, J as v, L as m, m as b, M as G, n as T, o as C, N as S, P as D, S as K, p as E, q as I, r as R, T as x, s as w, t as U, ar as f, v as k, w as O, y as B, H as N, O as V, Q as j, R as _, U as h, V as F, W as z, X as H, Y, Z as J, $ as W, a0 as q, a1 as Q, a2 as Z, a3 as X, a4 as $, a6 as ee, a7 as se, a8 as ae, a9 as te, aa as oe, ab as re, ac as ne, ad as ie, ae as ue, af as de, ag as le, ah as ge, ai as Le, aj as ce, ak as Me, al as Pe, am as Ae, an as pe, ap as ye, aq as ve, as as me, at as be, au as Ge, av as Te, aw as Ce, ax as Se, ay as De, az as Ke, aA as Ee, aB as Ie, aC as Re, aD as xe, aE as we, aG as Ue, aH as fe, aI as ke, aJ as Oe, aK as Be, aL as Ne, aM as Ve, aN as je, aO as _e, aP as he, aQ as Fe, aR as ze, aS as He, aT as Ye, aU as Je, aV as We, aW as qe, aX as Qe, aY as Ze, aZ as Xe, a_ as $e, b0 as es, b2 as ss, b3 as as, b4 as ts, b5 as os, b6 as rs, b7 as ns, b8 as is, b9 as us, ba as ds, bb as ls, bc as gs, bd as Ls, be as cs, bf as Ms, bg as Ps, bh as As, bi as ps, bj as ys, bk as vs, bl as ms, bm as bs, bn as Gs, bo as Ts, bp as Cs, bq as Ss, br as Ds, bs as Ks, bx as Es, bN as Is, by as Rs, bH as xs, bI as ws, bJ as Us, bK as fs, bL as ks, bM as Os, bO as Bs, bP as Ns, bQ as Vs, bR as js, bS as _s, bT as hs, bU as Fs, bW as zs, bY as Hs, bZ as Ys, b_ as Js, b$ as Ws, c0 as qs, c1 as Qs, c2 as Zs, c3 as Xs, c4 as $s, c5 as ea, c6 as sa, c7 as aa, c8 as ta, c9 as oa, ca as ra, cb as na, cc as ia, cd as ua, ce as da, cf as la, cg as ga, ch as La, ci as ca, cj as Ma, ck as Pa, cl as Aa, cm as pa, cn as ya, co as va, cp as ma, cq as ba, cr as Ga, cs as Ta, ct as Ca, cu as Sa, cv as Da, cw as Ka, cx as Ea, cy as Ia, cz as Ra, cA as xa, cB as wa, cC as Ua, cD as fa, cE as ka, cF as Oa, cG as Ba, cH as Na, cI as Va, cJ as ja, cK as _a, cL as ha, cM as Fa, cN as za, cO as Ha, cP as Ya, cQ as Ja, cR as Wa, cS as qa, cT as Qa, cU as Za, cV as Xa, cW as $a, cX as et, cY as st, cZ as at, c_ as tt, c$ as ot, d0 as rt, d1 as nt, d2 as it, d3 as ut, d4 as dt, d5 as lt, d6 as gt, d7 as Lt, d8 as ct, d9 as Mt, da as Pt, db as At, dc as pt, dd as yt, de as vt, df as mt, dg as bt, dh as Gt, di as Tt, dj as Ct, dk as St, dl as Dt, dm as Kt, dn as Et, dp as It, dq as Rt, dr as xt, ds as wt, dt as Ut, du as ft, dv as kt, dw as Ot, dx as Bt, dy as Nt, dz as Vt, dA as jt, dB as _t, dC as ht, dD as Ft, dE as zt, dF as Ht, dG as Yt, dH as Jt, dI as Wt, dJ as qt, dK as Qt, dL as Zt, dM as Xt, dN as $t, dO as eo, dP as so, dQ as ao, dR as to, dS as oo, dT as ro, dU as no, dV as io, dW as uo, dX as lo, dY as go, dZ as Lo, d_ as co, d$ as Mo, e0 as Po, e1 as Ao, e2 as po, e3 as yo, e4 as vo, e5 as mo, e6 as bo, e7 as Go, e8 as To, e9 as Co, ea as So, eb as Do, ec as Ko, ed as Eo, ee as Io, ef as Ro, eg as xo, eh as wo, ei as Uo, ej as fo } from "./index-D1OGVlu2.js";
1051
2
  export {
1052
- tl as CoreUI,
1053
- ye as MountPoints
3
+ a as AuthProvider,
4
+ t as BUILD_STATUS_COLOR_MAP,
5
+ o as BackgoundLoader,
6
+ r as BuildpackIcon,
7
+ n as ClientProvider,
8
+ i as CoreUI,
9
+ u as DEFAULT_INSTRUMENTATION_VERSION,
10
+ d as DEFAULT_PYTHON_VERSION,
11
+ l as DrawerContent,
12
+ g as DrawerHeader,
13
+ L as DrawerWrapper,
14
+ c as EnvVariableEditor,
15
+ M as ExternalAgentIcon,
16
+ P as ExternalModuleProvider,
17
+ A as FadeIn,
18
+ p as FullPageLoader,
19
+ y as InternalAgentIcon,
20
+ v as JSONView,
21
+ m as Logo,
22
+ b as LogsPanel,
23
+ G as MainActionPanel,
24
+ T as MarkdownView,
25
+ C as MountPoints,
26
+ S as NoDataFound,
27
+ D as PageLayout,
28
+ K as SUPPORTED_INSTRUMENTATION_VERSIONS,
29
+ E as SUPPORTED_PYTHON_VERSIONS,
30
+ I as SnackBarProvider,
31
+ R as SpanIcon,
32
+ x as TextInput,
33
+ w as TraceExplorer,
34
+ U as TraceListTimeRange,
35
+ f as absoluteRouteMap,
36
+ k as addAgentKindVersion,
37
+ O as agentKindKeys,
38
+ B as assignGatewayToEnvironment,
39
+ N as buildAgent,
40
+ V as createAgent,
41
+ j as createAgentAPIKey,
42
+ _ as createAgentModelConfig,
43
+ h as createCustomEvaluator,
44
+ F as createGateway,
45
+ z as createGitSecret,
46
+ H as createLLMDeployment,
47
+ Y as createLLMProvider,
48
+ J as createLLMProviderAPIKey,
49
+ W as createLLMProviderTemplate,
50
+ q as createLLMProxy,
51
+ Q as createLLMProxyAPIKey,
52
+ Z as createMonitor,
53
+ X as createOrganization,
54
+ $ as createProject,
55
+ ee as deleteAgent,
56
+ se as deleteAgentKind,
57
+ ae as deleteAgentKindVersion,
58
+ te as deleteAgentModelConfig,
59
+ oe as deleteCustomEvaluator,
60
+ re as deleteGateway,
61
+ ne as deleteGitSecret,
62
+ ie as deleteLLMDeployment,
63
+ ue as deleteLLMProvider,
64
+ de as deleteLLMProviderTemplate,
65
+ le as deleteLLMProxy,
66
+ ge as deleteMonitor,
67
+ Le as deleteProject,
68
+ ce as deployAgent,
69
+ Me as displayProvisionTypes,
70
+ Pe as exportTraces,
71
+ Ae as filterAgentRuntimeLogs,
72
+ pe as filterGuardrailPolicies,
73
+ ye as generateAgentToken,
74
+ ve as generateResourceName,
75
+ me as getAgent,
76
+ be as getAgentBuilds,
77
+ Ge as getAgentConfigurations,
78
+ Te as getAgentEndpoints,
79
+ Ce as getAgentKind,
80
+ Se as getAgentKindVersion,
81
+ De as getAgentMetrics,
82
+ Ke as getAgentModelConfig,
83
+ Ee as getAgentResourceConfigs,
84
+ Ie as getAgentTraceScores,
85
+ Re as getBuild,
86
+ xe as getBuildLogs,
87
+ we as getCustomEvaluator,
88
+ Ue as getDeploymentPipeline,
89
+ fe as getEvaluator,
90
+ ke as getGateway,
91
+ Oe as getGitSecret,
92
+ Be as getGroupedScores,
93
+ Ne as getLLMDeployment,
94
+ Ve as getLLMProvider,
95
+ je as getLLMProviderTemplate,
96
+ _e as getLLMProxy,
97
+ he as getMonitor,
98
+ Fe as getMonitorRunLogs,
99
+ ze as getMonitorRunScores,
100
+ He as getMonitorScores,
101
+ Ye as getMonitorScoresTimeSeries,
102
+ Je as getOrganization,
103
+ We as getProject,
104
+ qe as getSpanDetail,
105
+ Qe as getTimeRange,
106
+ Ze as getTraceList,
107
+ Xe as getTraceScores,
108
+ $e as globalConfig,
109
+ es as issueTestAgentAPIKey,
110
+ ss as listAgentAPIKeys,
111
+ as as listAgentDeployments,
112
+ ts as listAgentKindVersions,
113
+ os as listAgentKinds,
114
+ rs as listAgentModelConfigs,
115
+ ns as listAgents,
116
+ is as listBranches,
117
+ us as listCatalogLLMProviders,
118
+ ds as listCommits,
119
+ ls as listDataPlanes,
120
+ gs as listDeploymentPipelines,
121
+ Ls as listEnvironments,
122
+ cs as listEvaluators,
123
+ Ms as listGatewayTokens,
124
+ Ps as listGateways,
125
+ As as listGitSecrets,
126
+ ps as listKindAgents,
127
+ ys as listLLMDeployments,
128
+ vs as listLLMProviderProxies,
129
+ ms as listLLMProviderTemplates,
130
+ bs as listLLMProviders,
131
+ Gs as listLLMProxies,
132
+ Ts as listMonitorRuns,
133
+ Cs as listMonitors,
134
+ Ss as listOrganizations,
135
+ Ds as listProjects,
136
+ Ks as listTraceSpans,
137
+ Es as publishAgentKind,
138
+ Is as relativeRouteMap,
139
+ Rs as removeGatewayFromEnvironment,
140
+ xs as rerunMonitor,
141
+ ws as restoreLLMDeployment,
142
+ Us as revokeAgentAPIKey,
143
+ fs as revokeGatewayToken,
144
+ ks as revokeLLMProviderAPIKey,
145
+ Os as revokeLLMProxyAPIKey,
146
+ Bs as rotateAgentAPIKey,
147
+ Ns as rotateGatewayToken,
148
+ Vs as rotateLLMProviderAPIKey,
149
+ js as rotateLLMProxyAPIKey,
150
+ _s as scoreColor,
151
+ hs as startMonitor,
152
+ Fs as stopMonitor,
153
+ zs as undeployLLMProvider,
154
+ Hs as updateAgent,
155
+ Ys as updateAgentBuildParameters,
156
+ Js as updateAgentKind,
157
+ Ws as updateAgentModelConfig,
158
+ qs as updateAgentResourceConfigs,
159
+ Qs as updateCustomEvaluator,
160
+ Zs as updateDeploymentState,
161
+ Xs as updateGateway,
162
+ $s as updateLLMProvider,
163
+ ea as updateLLMProviderCatalog,
164
+ sa as updateLLMProviderTemplate,
165
+ aa as updateLLMProxy,
166
+ ta as updateMonitor,
167
+ oa as updateProject,
168
+ ra as useAddAgentKindVersion,
169
+ na as useAgentRuntimeLogs,
170
+ ia as useAgentTraceScores,
171
+ ua as useAllModuleContext,
172
+ da as useAssignGatewayToEnvironment,
173
+ la as useAuthHooks,
174
+ ga as useBuildAgent,
175
+ La as useCreateAgent,
176
+ ca as useCreateAgentAPIKey,
177
+ Ma as useCreateAgentModelConfig,
178
+ Pa as useCreateCustomEvaluator,
179
+ Aa as useCreateGateway,
180
+ pa as useCreateGitSecret,
181
+ ya as useCreateLLMDeployment,
182
+ va as useCreateLLMProvider,
183
+ ma as useCreateLLMProviderAPIKey,
184
+ ba as useCreateLLMProviderTemplate,
185
+ Ga as useCreateLLMProxy,
186
+ Ta as useCreateLLMProxyAPIKey,
187
+ Ca as useCreateMonitor,
188
+ Sa as useCreateOrganization,
189
+ Da as useCreateProject,
190
+ Ka as useDeleteAgent,
191
+ Ea as useDeleteAgentKind,
192
+ Ia as useDeleteAgentKindVersion,
193
+ Ra as useDeleteAgentModelConfig,
194
+ xa as useDeleteCustomEvaluator,
195
+ wa as useDeleteGateway,
196
+ Ua as useDeleteGitSecret,
197
+ fa as useDeleteLLMDeployment,
198
+ ka as useDeleteLLMProvider,
199
+ Oa as useDeleteLLMProviderTemplate,
200
+ Ba as useDeleteLLMProxy,
201
+ Na as useDeleteMonitor,
202
+ Va as useDeleteProject,
203
+ ja as useDeployAgent,
204
+ _a as useDirtyState,
205
+ ha as useDocumentTitle,
206
+ Fa as useExportTraces,
207
+ za as useExternalComponentModules,
208
+ Ha as useExternalComponentModulesByMountPoint,
209
+ Ya as useExternalConfigModules,
210
+ Ja as useExternalNavItems,
211
+ Wa as useExternalPageModuleByMountPoint,
212
+ qa as useExternalPageModules,
213
+ Qa as useFormValidation,
214
+ Za as useGenerateAgentToken,
215
+ Xa as useGenerateResourceName,
216
+ $a as useGetAgent,
217
+ et as useGetAgentBuilds,
218
+ st as useGetAgentConfigurations,
219
+ at as useGetAgentEndpoints,
220
+ tt as useGetAgentKind,
221
+ ot as useGetAgentKindVersion,
222
+ rt as useGetAgentMetrics,
223
+ nt as useGetAgentModelConfig,
224
+ it as useGetAgentResourceConfigs,
225
+ ut as useGetBuild,
226
+ dt as useGetBuildLogs,
227
+ lt as useGetCustomEvaluator,
228
+ gt as useGetDeploymentPipeline,
229
+ Lt as useGetEvaluator,
230
+ ct as useGetGateway,
231
+ Mt as useGetGitSecret,
232
+ Pt as useGetLLMDeployment,
233
+ At as useGetLLMProvider,
234
+ pt as useGetLLMProviderTemplate,
235
+ yt as useGetLLMProxy,
236
+ vt as useGetMonitor,
237
+ mt as useGetOrganization,
238
+ bt as useGetProject,
239
+ Gt as useGroupedScores,
240
+ Tt as useGuardrailPolicyDefinition,
241
+ Ct as useGuardrailsCatalog,
242
+ St as useListAgentAPIKeys,
243
+ Dt as useListAgentDeployments,
244
+ Kt as useListAgentKindVersions,
245
+ Et as useListAgentKinds,
246
+ It as useListAgentModelConfigs,
247
+ Rt as useListAgents,
248
+ xt as useListBranches,
249
+ wt as useListCatalogLLMProviders,
250
+ Ut as useListCommits,
251
+ ft as useListEnvironments,
252
+ kt as useListEvaluators,
253
+ Ot as useListGatewayTokens,
254
+ Bt as useListGateways,
255
+ Nt as useListGitSecrets,
256
+ Vt as useListKindAgents,
257
+ jt as useListLLMDeployments,
258
+ _t as useListLLMProviderProxies,
259
+ ht as useListLLMProviderTemplates,
260
+ Ft as useListLLMProviders,
261
+ zt as useListLLMProxies,
262
+ Ht as useListMonitorRuns,
263
+ Yt as useListMonitors,
264
+ Jt as useListOrganizations,
265
+ Wt as useListProjects,
266
+ qt as useMonitorRunLogs,
267
+ Qt as useMonitorRunScores,
268
+ Zt as useMonitorScores,
269
+ Xt as useMonitorScoresTimeSeriesForEvaluators,
270
+ $t as usePublishAgentKind,
271
+ eo as useRemoveGatewayFromEnvironment,
272
+ so as useRerunMonitor,
273
+ ao as useRestoreLLMDeployment,
274
+ to as useRevokeAgentAPIKey,
275
+ oo as useRevokeGatewayToken,
276
+ ro as useRevokeLLMProviderAPIKey,
277
+ no as useRevokeLLMProxyAPIKey,
278
+ io as useRotateAgentAPIKey,
279
+ uo as useRotateGatewayToken,
280
+ lo as useRotateLLMProviderAPIKey,
281
+ go as useRotateLLMProxyAPIKey,
282
+ Lo as useSnackBar,
283
+ co as useSpanDetail,
284
+ Mo as useStartMonitor,
285
+ Po as useStopMonitor,
286
+ Ao as useTestAgentAPIKey,
287
+ po as useTrace,
288
+ yo as useTraceList,
289
+ vo as useTraceScores,
290
+ mo as useUndeployLLMProvider,
291
+ bo as useUpdateAgent,
292
+ Go as useUpdateAgentBuildParameters,
293
+ To as useUpdateAgentKind,
294
+ Co as useUpdateAgentModelConfig,
295
+ So as useUpdateAgentResourceConfigs,
296
+ Do as useUpdateCustomEvaluator,
297
+ Ko as useUpdateDeploymentState,
298
+ Eo as useUpdateGateway,
299
+ Io as useUpdateLLMProvider,
300
+ Ro as useUpdateLLMProviderCatalog,
301
+ xo as useUpdateLLMProviderTemplate,
302
+ wo as useUpdateLLMProxy,
303
+ Uo as useUpdateMonitor,
304
+ fo as useUpdateProject
1054
305
  };