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

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,268 +1,1054 @@
1
- import { T as s, U as t, V as o, B as r, W as n, X as i, q as u, p as d, D as l, e as L, E as c, Y as g, Z as M, $ as P, I as p, a0 as y, a1 as v, a2 as b, a3 as A, a4 as m, a5 as G, a6 as C, P as D, a7 as T, a8 as S, a9 as E, aa as x, ab as w, g as R, ac as I, ad as f, ae as k, af as B, ag as U, ah as j, ai as K, aj as O, ak as F, al as z, am as h, an as N, ao as V, ap as H, aq as _, ar as q, as as J, at as W, au as X, av as Y, aw as Z, ax as $, ay as Q, az as ee, aA as ae, aB as se, aC as te, aD as oe, aE as re, aF as ne, aG as ie, aH as ue, aI as de, aJ as le, aK as Le, aL as ce, aM as ge, aN as Me, aO as Pe, aP as pe, aQ as ye, aR as ve, aS as be, aT as Ae, aU as me, aV as Ge, aW as Ce, aX as De, aY as Te, aZ as Se, a_ as Ee, a$ as xe, b0 as we, b1 as Re, b2 as Ie, b3 as fe, b4 as ke, b5 as Be, b6 as Ue, b7 as je, b8 as Ke, b9 as Oe, ba as Fe, bb as ze, bc as he, bd as Ne, be as Ve, bf as He, bg as _e, bh as qe, bi as Je, bj as We, bk as Xe, bl as Ye, bm as Ze, bn as $e, bo as Qe, bp as ea, bq as aa, br as sa, bs as ta, bt as oa, bu as ra, bv as na, bw as ia, bx as ua, by as da, bz as la, bA as La, bB as ca, bC as ga, bD as Ma, bE as Pa, bF as pa, bG as ya, bH as va, bI as ba, bJ as Aa, bK as ma, bL as Ga, bM as Ca, bN as Da, bO as Ta, bP as Sa, bQ as Ea, bR as xa, bS as wa, bT as Ra, bU as Ia, bV as fa, bW as ka, bX as Ba, bY as Ua, bZ as ja, b_ as Ka, b$ as Oa, c0 as Fa, c1 as za, c2 as ha, c3 as Na, c4 as Va, w as Ha, c5 as _a, c6 as qa, c7 as Ja, h as Wa, c8 as Xa, c9 as Ya, ca as Za, cb as $a, cc as Qa, cd as es, ce as as, cf as ss, y as ts, cg as os, ch as rs, ci as ns, cj as is, ck as us, cl as ds, cm as ls, cn as Ls, co as cs, cp as gs, cq as Ms, cr as Ps, x as ps, cs as ys, ct as vs, cu as bs, cv as As, cw as ms, cx as Gs, cy as Cs, f as Ds, cz as Ts, t as Ss, cA as Es, cB as xs, cC as ws, cD as Rs, cE as Is, cF as fs, cG as ks, cH as Bs, cI as Us, cJ as js, cK as Ks, cL as Os, cM as Fs, cN as zs, cO as hs, cP as Ns, cQ as Vs, cR as Hs, cS as _s, cT as qs, cU as Js, cV as Ws, cW as Xs, cX as Ys, cY as Zs, cZ as $s, u as Qs, c_ as et, k as at, c$ as st, j as tt, d0 as ot, d1 as rt, d2 as nt, i as it, d3 as ut, d4 as dt, m as lt, d5 as Lt, d6 as ct, d7 as gt, d8 as Mt, d9 as Pt, da as pt, db as yt, dc as vt, dd as bt, de as At, df as mt, dg as Gt, dh as Ct, di as Dt, dj as Tt, dk as St, dl as Et, dm as xt, dn as wt, dp as Rt, dq as It, dr as ft, ds as kt, dt as Bt, du as Ut, dv as jt, dw as Kt, dx as Ot, dy as Ft, dz as zt, dA as ht, dB as Nt, dC as Vt, dD as Ht, dE as _t, dF as qt, dG as Jt, dH as Wt, dI as Xt, dJ as Yt } from "./index-DXT-m_eH.js";
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
+ }
2
1051
  export {
3
- s 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 DrawerContent,
10
- d as DrawerHeader,
11
- l as DrawerWrapper,
12
- L as EnvVariableEditor,
13
- c as ExternalAgentIcon,
14
- g as ExternalModuleProvider,
15
- M as FadeIn,
16
- P as FullPageLoader,
17
- p as InternalAgentIcon,
18
- y as JSONView,
19
- v as Logo,
20
- b as LogsPanel,
21
- A as MainActionPanel,
22
- m as MarkdownView,
23
- G as MountPoints,
24
- C as NoDataFound,
25
- D as PageLayout,
26
- T as SnackBarProvider,
27
- S as SpanIcon,
28
- E as TextInput,
29
- x as TraceExplorer,
30
- w as TraceListTimeRange,
31
- R as absoluteRouteMap,
32
- I as assignGatewayToEnvironment,
33
- f as buildAgent,
34
- k as createAgent,
35
- B as createAgentModelConfig,
36
- U as createCustomEvaluator,
37
- j as createGateway,
38
- K as createGitSecret,
39
- O as createLLMDeployment,
40
- F as createLLMProvider,
41
- z as createLLMProviderAPIKey,
42
- h as createLLMProviderTemplate,
43
- N as createLLMProxy,
44
- V as createLLMProxyAPIKey,
45
- H as createMonitor,
46
- _ as createOrganization,
47
- q as createProject,
48
- J as deleteAgent,
49
- W as deleteAgentModelConfig,
50
- X as deleteCustomEvaluator,
51
- Y as deleteGateway,
52
- Z as deleteGitSecret,
53
- $ as deleteLLMDeployment,
54
- Q as deleteLLMProvider,
55
- ee as deleteLLMProviderTemplate,
56
- ae as deleteLLMProxy,
57
- se as deleteMonitor,
58
- te as deleteProject,
59
- oe as deployAgent,
60
- re as displayProvisionTypes,
61
- ne as exportTraces,
62
- ie as filterAgentRuntimeLogs,
63
- ue as generateAgentToken,
64
- de as generateResourceName,
65
- le as getAgent,
66
- Le as getAgentBuilds,
67
- ce as getAgentConfigurations,
68
- ge as getAgentEndpoints,
69
- Me as getAgentMetrics,
70
- Pe as getAgentModelConfig,
71
- pe as getAgentResourceConfigs,
72
- ye as getAgentTraceScores,
73
- ve as getBuild,
74
- be as getBuildLogs,
75
- Ae as getCustomEvaluator,
76
- me as getDeploymentPipeline,
77
- Ge as getEvaluator,
78
- Ce as getGateway,
79
- De as getGitSecret,
80
- Te as getGroupedScores,
81
- Se as getLLMDeployment,
82
- Ee as getLLMProvider,
83
- xe as getLLMProviderTemplate,
84
- we as getLLMProxy,
85
- Re as getMonitor,
86
- Ie as getMonitorRunLogs,
87
- fe as getMonitorRunScores,
88
- ke as getMonitorScores,
89
- Be as getMonitorScoresTimeSeries,
90
- Ue as getOrganization,
91
- je as getProject,
92
- Ke as getSpanDetail,
93
- Oe as getTimeRange,
94
- Fe as getTraceList,
95
- ze as getTraceScores,
96
- he as globalConfig,
97
- Ne as listAgentDeployments,
98
- Ve as listAgentModelConfigs,
99
- He as listAgents,
100
- _e as listBranches,
101
- qe as listCatalogLLMProviders,
102
- Je as listCommits,
103
- We as listDataPlanes,
104
- Xe as listDeploymentPipelines,
105
- Ye as listEnvironments,
106
- Ze as listEvaluators,
107
- $e as listGatewayTokens,
108
- Qe as listGateways,
109
- ea as listGitSecrets,
110
- aa as listLLMDeployments,
111
- sa as listLLMProviderProxies,
112
- ta as listLLMProviderTemplates,
113
- oa as listLLMProviders,
114
- ra as listLLMProxies,
115
- na as listMonitorRuns,
116
- ia as listMonitors,
117
- ua as listOrganizations,
118
- da as listProjects,
119
- la as listTraceSpans,
120
- La as relativeRouteMap,
121
- ca as removeGatewayFromEnvironment,
122
- ga as rerunMonitor,
123
- Ma as restoreLLMDeployment,
124
- Pa as revokeGatewayToken,
125
- pa as revokeLLMProviderAPIKey,
126
- ya as revokeLLMProxyAPIKey,
127
- va as rotateGatewayToken,
128
- ba as rotateLLMProviderAPIKey,
129
- Aa as rotateLLMProxyAPIKey,
130
- ma as scoreColor,
131
- Ga as startMonitor,
132
- Ca as stopMonitor,
133
- Da as undeployLLMProvider,
134
- Ta as updateAgent,
135
- Sa as updateAgentBuildParameters,
136
- Ea as updateAgentModelConfig,
137
- xa as updateAgentResourceConfigs,
138
- wa as updateCustomEvaluator,
139
- Ra as updateDeploymentState,
140
- Ia as updateGateway,
141
- fa as updateLLMProvider,
142
- ka as updateLLMProviderCatalog,
143
- Ba as updateLLMProviderTemplate,
144
- Ua as updateLLMProxy,
145
- ja as updateMonitor,
146
- Ka as updateProject,
147
- Oa as useAgentRuntimeLogs,
148
- Fa as useAgentTraceScores,
149
- za as useAllModuleContext,
150
- ha as useAssignGatewayToEnvironment,
151
- Na as useAuthHooks,
152
- Va as useBuildAgent,
153
- Ha as useCreateAgent,
154
- _a as useCreateAgentModelConfig,
155
- qa as useCreateCustomEvaluator,
156
- Ja as useCreateGateway,
157
- Wa as useCreateGitSecret,
158
- Xa as useCreateLLMDeployment,
159
- Ya as useCreateLLMProvider,
160
- Za as useCreateLLMProviderAPIKey,
161
- $a as useCreateLLMProviderTemplate,
162
- Qa as useCreateLLMProxy,
163
- es as useCreateLLMProxyAPIKey,
164
- as as useCreateMonitor,
165
- ss as useCreateOrganization,
166
- ts as useCreateProject,
167
- os as useDeleteAgent,
168
- rs as useDeleteAgentModelConfig,
169
- ns as useDeleteCustomEvaluator,
170
- is as useDeleteGateway,
171
- us as useDeleteGitSecret,
172
- ds as useDeleteLLMDeployment,
173
- ls as useDeleteLLMProvider,
174
- Ls as useDeleteLLMProviderTemplate,
175
- cs as useDeleteLLMProxy,
176
- gs as useDeleteMonitor,
177
- Ms as useDeleteProject,
178
- Ps as useDeployAgent,
179
- ps as useDirtyState,
180
- ys as useDocumentTitle,
181
- vs as useExportTraces,
182
- bs as useExternalComponentModules,
183
- As as useExternalComponentModulesByMountPoint,
184
- ms as useExternalNavItems,
185
- Gs as useExternalPageModuleByMountPoint,
186
- Cs as useExternalPageModules,
187
- Ds as useFormValidation,
188
- Ts as useGenerateAgentToken,
189
- Ss as useGenerateResourceName,
190
- Es as useGetAgent,
191
- xs as useGetAgentBuilds,
192
- ws as useGetAgentConfigurations,
193
- Rs as useGetAgentEndpoints,
194
- Is as useGetAgentMetrics,
195
- fs as useGetAgentModelConfig,
196
- ks as useGetAgentResourceConfigs,
197
- Bs as useGetBuild,
198
- Us as useGetBuildLogs,
199
- js as useGetCustomEvaluator,
200
- Ks as useGetDeploymentPipeline,
201
- Os as useGetEvaluator,
202
- Fs as useGetGateway,
203
- zs as useGetGitSecret,
204
- hs as useGetLLMDeployment,
205
- Ns as useGetLLMProvider,
206
- Vs as useGetLLMProviderTemplate,
207
- Hs as useGetLLMProxy,
208
- _s as useGetMonitor,
209
- qs as useGetOrganization,
210
- Js as useGetProject,
211
- Ws as useGroupedScores,
212
- Xs as useGuardrailPolicyDefinition,
213
- Ys as useGuardrailsCatalog,
214
- Zs as useListAgentDeployments,
215
- $s as useListAgentModelConfigs,
216
- Qs as useListAgents,
217
- et as useListBranches,
218
- at as useListCatalogLLMProviders,
219
- st as useListCommits,
220
- tt as useListEnvironments,
221
- ot as useListEvaluators,
222
- rt as useListGatewayTokens,
223
- nt as useListGateways,
224
- it as useListGitSecrets,
225
- ut as useListLLMDeployments,
226
- dt as useListLLMProviderProxies,
227
- lt as useListLLMProviderTemplates,
228
- Lt as useListLLMProviders,
229
- ct as useListLLMProxies,
230
- gt as useListMonitorRuns,
231
- Mt as useListMonitors,
232
- Pt as useListOrganizations,
233
- pt as useListProjects,
234
- yt as useMonitorRunLogs,
235
- vt as useMonitorRunScores,
236
- bt as useMonitorScores,
237
- At as useMonitorScoresTimeSeriesForEvaluators,
238
- mt as useRemoveGatewayFromEnvironment,
239
- Gt as useRerunMonitor,
240
- Ct as useRestoreLLMDeployment,
241
- Dt as useRevokeGatewayToken,
242
- Tt as useRevokeLLMProviderAPIKey,
243
- St as useRevokeLLMProxyAPIKey,
244
- Et as useRotateGatewayToken,
245
- xt as useRotateLLMProviderAPIKey,
246
- wt as useRotateLLMProxyAPIKey,
247
- Rt as useSnackBar,
248
- It as useSpanDetail,
249
- ft as useStartMonitor,
250
- kt as useStopMonitor,
251
- Bt as useTrace,
252
- Ut as useTraceList,
253
- jt as useTraceScores,
254
- Kt as useUndeployLLMProvider,
255
- Ot as useUpdateAgent,
256
- Ft as useUpdateAgentBuildParameters,
257
- zt as useUpdateAgentModelConfig,
258
- ht as useUpdateAgentResourceConfigs,
259
- Nt as useUpdateCustomEvaluator,
260
- Vt as useUpdateDeploymentState,
261
- Ht as useUpdateGateway,
262
- _t as useUpdateLLMProvider,
263
- qt as useUpdateLLMProviderCatalog,
264
- Jt as useUpdateLLMProviderTemplate,
265
- Wt as useUpdateLLMProxy,
266
- Xt as useUpdateMonitor,
267
- Yt as useUpdateProject
1052
+ tl as CoreUI,
1053
+ ye as MountPoints
268
1054
  };