@wso2/am-core-ui 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/APIKeysManager-C0phJriD.js +241 -0
- package/dist/CatalogKindListing-DvUuZEpc.js +137 -0
- package/dist/CodeBlock-B2Ecl916.js +21736 -0
- package/dist/EnvironmentCard-CIXhDhlZ.js +319 -0
- package/dist/EnvironmentSelector-D8S6nO9u.js +48 -0
- package/dist/IsolationTierIndicator-cf90kgjL.js +81 -0
- package/dist/LabelChips-7rA7_yre.js +139 -0
- package/dist/MCPLogo-D9IJzzl7.js +30 -0
- package/dist/PolicyListSection-D6aVSKwP.js +1143 -0
- package/dist/ResourceListShell-DFisKftq.js +463 -0
- package/dist/SwaggerSpecViewer-DzjR6U6W.js +106 -0
- package/dist/clipboard-YAzStmkw.js +23 -0
- package/dist/debounce-D17ObVdG.js +208 -0
- package/dist/format-wlHhWjGo.js +29 -0
- package/dist/formatDistanceToNow-DyjnT7l9.js +100 -0
- package/dist/gatewayScripts-D4ZDEDPS.js +72 -0
- package/dist/highlight-BsUzxSR3.js +454 -0
- package/dist/{index-CnXsN5I3.js → index-3K-zqdp-.js} +34 -33
- package/dist/index-6liAPSDn.js +1564 -0
- package/dist/index-B3ASENUJ.js +1290 -0
- package/dist/index-B7Pf4oPq.js +3069 -0
- package/dist/index-BNO3FhZK.js +2304 -0
- package/dist/index-BUZSfCl5.js +335 -0
- package/dist/index-BXiG1r_o.js +1409 -0
- package/dist/index-BYy7Iaam.js +459 -0
- package/dist/index-BbB_yx4V.js +1397 -0
- package/dist/index-BjWJ95lH.js +2728 -0
- package/dist/index-ByEInFlf.js +26408 -0
- package/dist/index-C8WIhzyz.js +123 -0
- package/dist/index-CnzvaT6b.js +2368 -0
- package/dist/index-CrnCf-hJ.js +763 -0
- package/dist/index-Cvsho9xg.js +2346 -0
- package/dist/index-CxnAo1_c.js +119 -0
- package/dist/{index-DYV1jEai.js → index-Cz7-AZwE.js} +22 -20
- package/dist/index-DBdRFjxm.js +1264 -0
- package/dist/index-DFsSvmMZ.js +7981 -0
- package/dist/index-DslzOSGN.js +2549 -0
- package/dist/index-DvpYvchM.js +2341 -0
- package/dist/index-PWsNvJB-.js +546 -0
- package/dist/index.d.ts +1398 -481
- package/dist/index.js +539 -438
- package/dist/js-yaml-CvhD-clg.js +1335 -0
- package/dist/llmProviderPayload-BPzWDy7n.js +332 -0
- package/dist/schemas-DFScWdSL.js +2969 -0
- package/package.json +1 -1
- package/dist/index-B47EJCom.js +0 -236
- package/dist/index-Bl1Y7Sro.js +0 -3037
- package/dist/index-DlS9Lybj.js +0 -80691
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as Ee, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as Be } from "react/compiler-runtime";
|
|
3
|
+
import { o as Ke, c as Me, aL as Ue, p as We, g as oe, N as Ne, n as Ye } from "./index-ByEInFlf.js";
|
|
4
|
+
import "@tanstack/react-query";
|
|
5
|
+
import "react";
|
|
6
|
+
import { useTheme as Pe, Box as u, Button as ae, CircularProgress as Re, Alert as Te, Chip as h, Skeleton as qe, Typography as we, Card as Ce, CardContent as ke, Divider as He } from "@wso2/oxygen-ui";
|
|
7
|
+
import { Clock as Ae, FlaskConical as Je, Rocket as Le, Play as Qe, PauseCircle as Ve, CheckCircle as Xe, Circle as Ze, Link as et, Tag as tt } from "@wso2/oxygen-ui-icons-react";
|
|
8
|
+
import { Link as ce, generatePath as de } from "react-router-dom";
|
|
9
|
+
import { f as st } from "./formatDistanceToNow-DyjnT7l9.js";
|
|
10
|
+
import { I as je } from "./IsolationTierIndicator-cf90kgjL.js";
|
|
11
|
+
var it = /* @__PURE__ */ ((r) => (r.ACTIVE = "active", r.INACTIVE = "not-deployed", r.DEPLOYING = "in-progress", r.ERROR = "error", r.SUSPENDED = "suspended", r.FAILED = "failed", r))(it || {});
|
|
12
|
+
const me = (r) => {
|
|
13
|
+
const e = Be(8), {
|
|
14
|
+
status: c
|
|
15
|
+
} = r, l = Pe();
|
|
16
|
+
if (!c)
|
|
17
|
+
return null;
|
|
18
|
+
if (c === "active") {
|
|
19
|
+
const t = l.vars?.palette?.success?.main;
|
|
20
|
+
let n;
|
|
21
|
+
return e[0] !== t ? (n = /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(Xe, { size: 16, color: t }), variant: "outlined", size: "small", label: "Deployed", color: "success" }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
22
|
+
}
|
|
23
|
+
if (c === "not-deployed") {
|
|
24
|
+
const t = l.vars?.palette?.text?.disabled;
|
|
25
|
+
let n;
|
|
26
|
+
return e[2] !== t ? (n = /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(Ze, { size: 16, color: t }), variant: "outlined", size: "small", label: "Not Deployed", color: "default" }), e[2] = t, e[3] = n) : n = e[3], n;
|
|
27
|
+
}
|
|
28
|
+
if (c === "in-progress") {
|
|
29
|
+
let t;
|
|
30
|
+
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(Re, { size: 16, color: "warning" }), variant: "outlined", size: "small", label: "Deploying", color: "warning" }), e[4] = t) : t = e[4], t;
|
|
31
|
+
}
|
|
32
|
+
if (c === "error") {
|
|
33
|
+
let t;
|
|
34
|
+
return e[5] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(h, { variant: "outlined", size: "small", label: "Error", color: "error" }), e[5] = t) : t = e[5], t;
|
|
35
|
+
}
|
|
36
|
+
if (c === "failed") {
|
|
37
|
+
let t;
|
|
38
|
+
return e[6] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(h, { variant: "outlined", size: "small", label: "Error", color: "error" }), e[6] = t) : t = e[6], t;
|
|
39
|
+
}
|
|
40
|
+
if (c === "suspended") {
|
|
41
|
+
let t;
|
|
42
|
+
return e[7] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(Ve, { size: 16 }), variant: "outlined", size: "small", label: "Suspended", color: "default" }), e[7] = t) : t = e[7], t;
|
|
43
|
+
}
|
|
44
|
+
}, Se = (r) => {
|
|
45
|
+
if (!r)
|
|
46
|
+
return "—";
|
|
47
|
+
const e = r instanceof Date ? r : new Date(r);
|
|
48
|
+
return Number.isNaN(e.getTime()) ? "—" : st(e, {
|
|
49
|
+
addSuffix: !0
|
|
50
|
+
});
|
|
51
|
+
}, yt = (r) => {
|
|
52
|
+
const e = Be(126), {
|
|
53
|
+
environment: c,
|
|
54
|
+
orgId: l,
|
|
55
|
+
projectId: t,
|
|
56
|
+
agentId: n,
|
|
57
|
+
actions: b,
|
|
58
|
+
bottomContent: U,
|
|
59
|
+
isFirstEnvironment: _e
|
|
60
|
+
} = r, W = _e === void 0 ? !0 : _e, $ = Pe();
|
|
61
|
+
let Y;
|
|
62
|
+
e[0] !== n || e[1] !== l || e[2] !== t ? (Y = {
|
|
63
|
+
orgName: l,
|
|
64
|
+
projName: t,
|
|
65
|
+
agentName: n
|
|
66
|
+
}, e[0] = n, e[1] = l, e[2] = t, e[3] = Y) : Y = e[3];
|
|
67
|
+
const {
|
|
68
|
+
data: q,
|
|
69
|
+
isLoading: Fe
|
|
70
|
+
} = Ke(Y), K = q?.provisioning?.type === "external";
|
|
71
|
+
let H;
|
|
72
|
+
e[4] !== n || e[5] !== l || e[6] !== t ? (H = {
|
|
73
|
+
orgName: l,
|
|
74
|
+
projName: t,
|
|
75
|
+
agentName: n
|
|
76
|
+
}, e[4] = n, e[5] = l, e[6] = t, e[7] = H) : H = e[7];
|
|
77
|
+
const ue = !!l && !!t && !!n && !!q && !K;
|
|
78
|
+
let J;
|
|
79
|
+
e[8] !== ue ? (J = {
|
|
80
|
+
enabled: ue
|
|
81
|
+
}, e[8] = ue, e[9] = J) : J = e[9];
|
|
82
|
+
const {
|
|
83
|
+
data: Ge,
|
|
84
|
+
isLoading: Oe
|
|
85
|
+
} = Me(H, J), fe = q?.kindName, pe = fe ?? "";
|
|
86
|
+
let Q;
|
|
87
|
+
e[10] !== l || e[11] !== pe ? (Q = {
|
|
88
|
+
orgName: l,
|
|
89
|
+
kindName: pe
|
|
90
|
+
}, e[10] = l, e[11] = pe, e[12] = Q) : Q = e[12];
|
|
91
|
+
const {
|
|
92
|
+
data: y
|
|
93
|
+
} = Ue(Q), i = Ge?.[c?.name ?? ""], x = `${c?.displayName ?? c?.name ?? "Environment"} Environment`, ge = K ? "" : l, he = K ? "" : t, ye = K ? "" : n;
|
|
94
|
+
let X;
|
|
95
|
+
e[13] !== ge || e[14] !== he || e[15] !== ye ? (X = {
|
|
96
|
+
orgName: ge,
|
|
97
|
+
projName: he,
|
|
98
|
+
agentName: ye
|
|
99
|
+
}, e[13] = ge, e[14] = he, e[15] = ye, e[16] = X) : X = e[16];
|
|
100
|
+
const {
|
|
101
|
+
data: ve
|
|
102
|
+
} = We(X);
|
|
103
|
+
let Z;
|
|
104
|
+
e[17] !== ve?.builds ? (Z = ve?.builds?.some(nt) ?? !1, e[17] = ve?.builds, e[18] = Z) : Z = e[18];
|
|
105
|
+
const ee = Z;
|
|
106
|
+
let be;
|
|
107
|
+
e: {
|
|
108
|
+
if (!i?.imageId || !fe) {
|
|
109
|
+
be = null;
|
|
110
|
+
break e;
|
|
111
|
+
}
|
|
112
|
+
let o;
|
|
113
|
+
e[19] !== i || e[20] !== y ? (o = y?.find((d) => d.imageId === i.imageId), e[19] = i, e[20] = y, e[21] = o) : o = e[21], be = o?.version ?? null;
|
|
114
|
+
}
|
|
115
|
+
const v = be, te = v ? `v${v}` : null;
|
|
116
|
+
let se;
|
|
117
|
+
e[22] !== y ? (se = y?.length ? [...y].sort(lt)[0] : void 0, e[22] = y, e[23] = se) : se = e[23];
|
|
118
|
+
const M = se, ie = !!fe && !!M && !!v && v !== M.version;
|
|
119
|
+
if (Fe || Oe) {
|
|
120
|
+
let o;
|
|
121
|
+
return e[24] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ s(qe, { variant: "rounded", height: 100 }), e[24] = o) : o = e[24], o;
|
|
122
|
+
}
|
|
123
|
+
if (K) {
|
|
124
|
+
let o;
|
|
125
|
+
e[25] !== x ? (o = /* @__PURE__ */ s(we, { variant: "h6", children: x }), e[25] = x, e[26] = o) : o = e[26];
|
|
126
|
+
const p = $.vars?.palette?.success?.main;
|
|
127
|
+
let d;
|
|
128
|
+
e[27] !== p ? (d = /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(et, { size: 16, color: p }), variant: "outlined", size: "small", label: "Registered", color: "success" }), e[27] = p, e[28] = d) : d = e[28];
|
|
129
|
+
const f = $.vars?.palette?.text?.secondary;
|
|
130
|
+
let m;
|
|
131
|
+
e[29] !== f ? (m = /* @__PURE__ */ s(Ae, { size: 16, color: f }), e[29] = f, e[30] = m) : m = e[30];
|
|
132
|
+
const g = q?.createdAt;
|
|
133
|
+
let R;
|
|
134
|
+
e[31] !== g ? (R = Se(g), e[31] = g, e[32] = R) : R = e[32];
|
|
135
|
+
let V;
|
|
136
|
+
e[33] !== m || e[34] !== R ? (V = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
137
|
+
m,
|
|
138
|
+
R
|
|
139
|
+
] }), e[33] = m, e[34] = R, e[35] = V) : V = e[35];
|
|
140
|
+
let F;
|
|
141
|
+
e[36] !== o || e[37] !== d || e[38] !== V ? (F = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
142
|
+
o,
|
|
143
|
+
d,
|
|
144
|
+
V
|
|
145
|
+
] }), e[36] = o, e[37] = d, e[38] = V, e[39] = F) : F = e[39];
|
|
146
|
+
let G;
|
|
147
|
+
e[40] !== b ? (G = /* @__PURE__ */ s(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: b }), e[40] = b, e[41] = G) : G = e[41];
|
|
148
|
+
let O;
|
|
149
|
+
e[42] !== F || e[43] !== G ? (O = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, justifyContent: "space-between", alignItems: "center", children: [
|
|
150
|
+
F,
|
|
151
|
+
G
|
|
152
|
+
] }), e[42] = F, e[43] = G, e[44] = O) : O = e[44];
|
|
153
|
+
let re;
|
|
154
|
+
return e[45] !== U || e[46] !== O ? (re = /* @__PURE__ */ s(Ce, { variant: "outlined", children: /* @__PURE__ */ a(ke, { children: [
|
|
155
|
+
O,
|
|
156
|
+
U
|
|
157
|
+
] }) }), e[45] = U, e[46] = O, e[47] = re) : re = e[47], re;
|
|
158
|
+
}
|
|
159
|
+
if (!i) {
|
|
160
|
+
let o;
|
|
161
|
+
e[48] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
162
|
+
"&.MuiCard-root": {
|
|
163
|
+
backgroundColor: "background.paper"
|
|
164
|
+
}
|
|
165
|
+
}, e[48] = o) : o = e[48];
|
|
166
|
+
const p = c?.isolationTier;
|
|
167
|
+
let d;
|
|
168
|
+
e[49] !== p ? (d = /* @__PURE__ */ s(je, { tier: p, size: 16 }), e[49] = p, e[50] = d) : d = e[50];
|
|
169
|
+
let f;
|
|
170
|
+
e[51] !== x ? (f = /* @__PURE__ */ s(we, { variant: "h6", children: x }), e[51] = x, e[52] = f) : f = e[52];
|
|
171
|
+
let m;
|
|
172
|
+
e[53] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ s(me, {
|
|
173
|
+
status: "not-deployed"
|
|
174
|
+
/* INACTIVE */
|
|
175
|
+
}), e[53] = m) : m = e[53];
|
|
176
|
+
let g;
|
|
177
|
+
return e[54] !== d || e[55] !== f ? (g = /* @__PURE__ */ s(Ce, { variant: "outlined", sx: o, children: /* @__PURE__ */ s(ke, { children: /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
178
|
+
d,
|
|
179
|
+
f,
|
|
180
|
+
m
|
|
181
|
+
] }) }) }), e[54] = d, e[55] = f, e[56] = g) : g = e[56], g;
|
|
182
|
+
}
|
|
183
|
+
const xe = i.status, $e = xe === "active" || xe === "error" || xe === "failed", De = c?.isolationTier;
|
|
184
|
+
let D;
|
|
185
|
+
e[57] !== De ? (D = /* @__PURE__ */ s(je, { tier: De, size: 16 }), e[57] = De, e[58] = D) : D = e[58];
|
|
186
|
+
const Ie = c?.displayName;
|
|
187
|
+
let I;
|
|
188
|
+
e[59] !== Ie ? (I = /* @__PURE__ */ a(we, { variant: "h6", children: [
|
|
189
|
+
Ie,
|
|
190
|
+
" Environment"
|
|
191
|
+
] }), e[59] = Ie, e[60] = I) : I = e[60];
|
|
192
|
+
let z;
|
|
193
|
+
e[61] !== i.lastDeployed || e[62] !== i.status || e[63] !== $ ? (z = i?.status === "active" && /* @__PURE__ */ a(Ee, { children: [
|
|
194
|
+
/* @__PURE__ */ s(me, {
|
|
195
|
+
status: "active"
|
|
196
|
+
/* ACTIVE */
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
199
|
+
/* @__PURE__ */ s(Ae, { size: 16, color: $.vars?.palette?.text?.secondary }),
|
|
200
|
+
Se(i?.lastDeployed)
|
|
201
|
+
] })
|
|
202
|
+
] }), e[61] = i.lastDeployed, e[62] = i.status, e[63] = $, e[64] = z) : z = e[64];
|
|
203
|
+
let N;
|
|
204
|
+
e[65] !== i.status ? (N = (i?.status === "error" || i?.status === "failed") && /* @__PURE__ */ s(me, { status: i.status }), e[65] = i.status, e[66] = N) : N = e[66];
|
|
205
|
+
let w;
|
|
206
|
+
e[67] !== i.status ? (w = i?.status === "suspended" && /* @__PURE__ */ s(me, {
|
|
207
|
+
status: "suspended"
|
|
208
|
+
/* SUSPENDED */
|
|
209
|
+
}), e[67] = i.status, e[68] = w) : w = e[68];
|
|
210
|
+
let C;
|
|
211
|
+
e[69] !== D || e[70] !== I || e[71] !== z || e[72] !== N || e[73] !== w ? (C = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
212
|
+
D,
|
|
213
|
+
I,
|
|
214
|
+
z,
|
|
215
|
+
N,
|
|
216
|
+
w
|
|
217
|
+
] }), e[69] = D, e[70] = I, e[71] = z, e[72] = N, e[73] = w, e[74] = C) : C = e[74];
|
|
218
|
+
let k;
|
|
219
|
+
e[75] !== te ? (k = te && /* @__PURE__ */ s(h, { icon: /* @__PURE__ */ s(tt, { size: 14 }), label: te, size: "small", variant: "outlined" }), e[75] = te, e[76] = k) : k = e[76];
|
|
220
|
+
let _;
|
|
221
|
+
e[77] !== b || e[78] !== n || e[79] !== i.status || e[80] !== c?.name || e[81] !== l || e[82] !== t ? (_ = i?.status === "active" && /* @__PURE__ */ a(Ee, { children: [
|
|
222
|
+
b,
|
|
223
|
+
/* @__PURE__ */ s(ae, { startIcon: /* @__PURE__ */ s(Je, { size: 16 }), variant: "text", component: ce, to: de(oe.children.org.children.projects.children.agents.children.environment.children.tryOut.path, {
|
|
224
|
+
orgId: l,
|
|
225
|
+
projectId: t,
|
|
226
|
+
agentId: n,
|
|
227
|
+
envId: c?.name ?? ""
|
|
228
|
+
}), color: "primary", size: "small", children: "Try It" })
|
|
229
|
+
] }), e[77] = b, e[78] = n, e[79] = i.status, e[80] = c?.name, e[81] = l, e[82] = t, e[83] = _) : _ = e[83];
|
|
230
|
+
let E;
|
|
231
|
+
e[84] !== k || e[85] !== _ ? (E = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
|
|
232
|
+
k,
|
|
233
|
+
_
|
|
234
|
+
] }), e[84] = k, e[85] = _, e[86] = E) : E = e[86];
|
|
235
|
+
let T;
|
|
236
|
+
e[87] !== C || e[88] !== E ? (T = /* @__PURE__ */ a(u, { display: "flex", flexDirection: "row", gap: 1, pb: 1, justifyContent: "space-between", alignItems: "center", children: [
|
|
237
|
+
C,
|
|
238
|
+
E
|
|
239
|
+
] }), e[87] = C, e[88] = E, e[89] = T) : T = e[89];
|
|
240
|
+
let ne;
|
|
241
|
+
e[90] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(He, {}), e[90] = ne) : ne = e[90];
|
|
242
|
+
let A;
|
|
243
|
+
e[91] !== n || e[92] !== i.status || e[93] !== ee || e[94] !== W || e[95] !== l || e[96] !== t ? (A = i.status === "not-deployed" && /* @__PURE__ */ s(Ne, { disableBackground: !0, message: "Not Deployed", icon: /* @__PURE__ */ s(Le, { size: 32 }), subtitle: ee ? W ? "A successful build is available. Deploy it to get started." : "Promote a deployment from the previous environment to get started." : "No successful build found. Build the agent before deploying.", action: ee && /* @__PURE__ */ s(ae, { startIcon: /* @__PURE__ */ s(Le, { size: 16 }), variant: "outlined", component: ce, to: de(oe.children.org.children.projects.children.agents.children.deployment.path, {
|
|
244
|
+
orgId: l,
|
|
245
|
+
projectId: t,
|
|
246
|
+
agentId: n
|
|
247
|
+
}), size: "small", children: W ? "Go to Deployment" : "Promote" }) }), e[91] = n, e[92] = i.status, e[93] = ee, e[94] = W, e[95] = l, e[96] = t, e[97] = A) : A = e[97];
|
|
248
|
+
let L;
|
|
249
|
+
e[98] !== i.status ? (L = i.status === "in-progress" && /* @__PURE__ */ s(Ne, { disableBackground: !0, message: "Deploying...", icon: /* @__PURE__ */ s(Re, { size: 32 }) }), e[98] = i.status, e[99] = L) : L = e[99];
|
|
250
|
+
let j;
|
|
251
|
+
e[100] !== n || e[101] !== i.status || e[102] !== l || e[103] !== t ? (j = (i.status === "error" || i.status === "failed") && /* @__PURE__ */ s(Te, { severity: "error", sx: {
|
|
252
|
+
width: "100%"
|
|
253
|
+
}, action: /* @__PURE__ */ s(ae, { component: ce, to: de(oe.children.org.children.projects.children.agents.children.deployment.path, {
|
|
254
|
+
orgId: l,
|
|
255
|
+
projectId: t,
|
|
256
|
+
agentId: n
|
|
257
|
+
}), color: "inherit", size: "small", children: "View Deployment" }), children: "Deployment failed. Check the deployment page for more details." }), e[100] = n, e[101] = i.status, e[102] = l, e[103] = t, e[104] = j) : j = e[104];
|
|
258
|
+
let S;
|
|
259
|
+
e[105] !== n || e[106] !== i.status || e[107] !== l || e[108] !== t ? (S = i.status === "suspended" && /* @__PURE__ */ s(Ne, { disableBackground: !0, message: "Suspended", icon: /* @__PURE__ */ s(Ve, { size: 32 }), subtitle: "This deployment is currently suspended. Resume it from the deployment page to make the agent available again.", action: /* @__PURE__ */ s(ae, { startIcon: /* @__PURE__ */ s(Qe, { size: 16 }), variant: "outlined", component: ce, to: de(oe.children.org.children.projects.children.agents.children.deployment.path, {
|
|
260
|
+
orgId: l,
|
|
261
|
+
projectId: t,
|
|
262
|
+
agentId: n
|
|
263
|
+
}), size: "small", children: "Go to Deployment" }) }), e[105] = n, e[106] = i.status, e[107] = l, e[108] = t, e[109] = S) : S = e[109];
|
|
264
|
+
let B;
|
|
265
|
+
e[110] !== i.endpoints || e[111] !== i.status || e[112] !== v || e[113] !== ie || e[114] !== M ? (B = i.status === "active" && /* @__PURE__ */ a(u, { display: "flex", flexGrow: 1, flexDirection: "column", width: "100%", gap: ie ? 2 : 4, alignItems: "flex-start", children: [
|
|
266
|
+
ie && /* @__PURE__ */ a(Te, { severity: "warning", sx: {
|
|
267
|
+
width: "100%"
|
|
268
|
+
}, children: [
|
|
269
|
+
"A newer version of this Agent Kind is available: ",
|
|
270
|
+
/* @__PURE__ */ a("strong", { children: [
|
|
271
|
+
"v",
|
|
272
|
+
M.version
|
|
273
|
+
] }),
|
|
274
|
+
".",
|
|
275
|
+
" ",
|
|
276
|
+
"Currently deployed: ",
|
|
277
|
+
/* @__PURE__ */ a("strong", { children: [
|
|
278
|
+
"v",
|
|
279
|
+
v
|
|
280
|
+
] }),
|
|
281
|
+
"."
|
|
282
|
+
] }),
|
|
283
|
+
i.endpoints?.map(rt)
|
|
284
|
+
] }), e[110] = i.endpoints, e[111] = i.status, e[112] = v, e[113] = ie, e[114] = M, e[115] = B) : B = e[115];
|
|
285
|
+
let P;
|
|
286
|
+
e[116] !== A || e[117] !== L || e[118] !== j || e[119] !== S || e[120] !== B ? (P = /* @__PURE__ */ a(u, { display: "flex", width: "100%", justifyContent: "center", flexDirection: "column", gap: 1, pt: 2, alignItems: "center", children: [
|
|
287
|
+
A,
|
|
288
|
+
L,
|
|
289
|
+
j,
|
|
290
|
+
S,
|
|
291
|
+
B
|
|
292
|
+
] }), e[116] = A, e[117] = L, e[118] = j, e[119] = S, e[120] = B, e[121] = P) : P = e[121];
|
|
293
|
+
const ze = $e && U;
|
|
294
|
+
let le;
|
|
295
|
+
return e[122] !== T || e[123] !== P || e[124] !== ze ? (le = /* @__PURE__ */ s(Ce, { variant: "outlined", children: /* @__PURE__ */ a(ke, { children: [
|
|
296
|
+
T,
|
|
297
|
+
ne,
|
|
298
|
+
P,
|
|
299
|
+
ze
|
|
300
|
+
] }) }), e[122] = T, e[123] = P, e[124] = ze, e[125] = le) : le = e[125], le;
|
|
301
|
+
};
|
|
302
|
+
function nt(r) {
|
|
303
|
+
return r.status === "Succeeded" || r.status === "Completed";
|
|
304
|
+
}
|
|
305
|
+
function lt(r, e) {
|
|
306
|
+
return new Date(e.createdAt).getTime() - new Date(r.createdAt).getTime();
|
|
307
|
+
}
|
|
308
|
+
function rt(r) {
|
|
309
|
+
return /* @__PURE__ */ s(Ye, { slotProps: {
|
|
310
|
+
input: {
|
|
311
|
+
readOnly: !0
|
|
312
|
+
}
|
|
313
|
+
}, label: "URL", value: r.url, fullWidth: !0 }, r.url);
|
|
314
|
+
}
|
|
315
|
+
export {
|
|
316
|
+
it as D,
|
|
317
|
+
yt as E,
|
|
318
|
+
me as a
|
|
319
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as u, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { c as y } from "react/compiler-runtime";
|
|
3
|
+
import { MenuItem as E, Typography as I, FormControl as N, Select as x } from "@wso2/oxygen-ui";
|
|
4
|
+
import { useParams as j, useLocation as S, useNavigate as $ } from "react-router-dom";
|
|
5
|
+
import { q as C } from "./index-ByEInFlf.js";
|
|
6
|
+
function L() {
|
|
7
|
+
const e = y(19), {
|
|
8
|
+
orgId: v,
|
|
9
|
+
projectId: h,
|
|
10
|
+
envId: n
|
|
11
|
+
} = j(), {
|
|
12
|
+
pathname: c
|
|
13
|
+
} = S(), p = $(), i = C(v, h);
|
|
14
|
+
let m;
|
|
15
|
+
if (e[0] !== n || e[1] !== i) {
|
|
16
|
+
let t;
|
|
17
|
+
e[3] !== n ? (t = (d) => d.name === n, e[3] = n, e[4] = t) : t = e[4], m = i.find(t), e[0] = n, e[1] = i, e[2] = m;
|
|
18
|
+
} else
|
|
19
|
+
m = e[2];
|
|
20
|
+
const f = m;
|
|
21
|
+
if (!n || i.length <= 1)
|
|
22
|
+
return null;
|
|
23
|
+
let a;
|
|
24
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
25
|
+
minWidth: 160
|
|
26
|
+
}, e[5] = a) : a = e[5];
|
|
27
|
+
let r;
|
|
28
|
+
e[6] !== n || e[7] !== p || e[8] !== c ? (r = (t) => {
|
|
29
|
+
const d = t.target.value;
|
|
30
|
+
p(c.replace(`/environment/${n}`, `/environment/${d}`));
|
|
31
|
+
}, e[6] = n, e[7] = p, e[8] = c, e[9] = r) : r = e[9];
|
|
32
|
+
let l;
|
|
33
|
+
e[10] !== f?.displayName ? (l = (t) => /* @__PURE__ */ g(I, { children: [
|
|
34
|
+
f?.displayName ?? t,
|
|
35
|
+
" ",
|
|
36
|
+
"Environment"
|
|
37
|
+
] }), e[10] = f?.displayName, e[11] = l) : l = e[11];
|
|
38
|
+
let o;
|
|
39
|
+
e[12] !== i ? (o = i.map(P), e[12] = i, e[13] = o) : o = e[13];
|
|
40
|
+
let s;
|
|
41
|
+
return e[14] !== n || e[15] !== r || e[16] !== l || e[17] !== o ? (s = /* @__PURE__ */ u(N, { size: "small", sx: a, children: /* @__PURE__ */ u(x, { value: n, onChange: r, renderValue: l, children: o }) }), e[14] = n, e[15] = r, e[16] = l, e[17] = o, e[18] = s) : s = e[18], s;
|
|
42
|
+
}
|
|
43
|
+
function P(e) {
|
|
44
|
+
return /* @__PURE__ */ u(E, { value: e.name, children: e.displayName ?? e.name }, e.name);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
L as E
|
|
48
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "react/compiler-runtime";
|
|
3
|
+
import { Tooltip as d, Chip as x, Box as C } from "@wso2/oxygen-ui";
|
|
4
|
+
import { ShieldCheck as p, ShieldPlus as v, Shield as S } from "@wso2/oxygen-ui-icons-react";
|
|
5
|
+
const L = {
|
|
6
|
+
runc: {
|
|
7
|
+
value: "runc",
|
|
8
|
+
tier: 1,
|
|
9
|
+
runtimeLabel: "runc (default)",
|
|
10
|
+
shortLabel: "Sandbox L1",
|
|
11
|
+
fullLabel: "Sandbox Level 1",
|
|
12
|
+
color: "default",
|
|
13
|
+
iconColor: "text.secondary",
|
|
14
|
+
icon: S
|
|
15
|
+
},
|
|
16
|
+
gvisor: {
|
|
17
|
+
value: "gvisor",
|
|
18
|
+
tier: 2,
|
|
19
|
+
runtimeLabel: "gVisor",
|
|
20
|
+
shortLabel: "Sandbox L2",
|
|
21
|
+
fullLabel: "Sandbox Level 2",
|
|
22
|
+
color: "info",
|
|
23
|
+
iconColor: "info.main",
|
|
24
|
+
icon: v
|
|
25
|
+
},
|
|
26
|
+
kata: {
|
|
27
|
+
value: "kata",
|
|
28
|
+
tier: 3,
|
|
29
|
+
runtimeLabel: "Kata Containers",
|
|
30
|
+
shortLabel: "Sandbox L3",
|
|
31
|
+
fullLabel: "Sandbox Level 3",
|
|
32
|
+
color: "success",
|
|
33
|
+
iconColor: "success.main",
|
|
34
|
+
icon: p
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function h(u) {
|
|
38
|
+
return L[u] ?? L.runc;
|
|
39
|
+
}
|
|
40
|
+
function k(u) {
|
|
41
|
+
const e = m(13), {
|
|
42
|
+
tier: a,
|
|
43
|
+
size: s
|
|
44
|
+
} = u, l = s === void 0 ? 18 : s;
|
|
45
|
+
let n;
|
|
46
|
+
e[0] !== a ? (n = h(a), e[0] = a, e[1] = n) : n = e[1];
|
|
47
|
+
const o = n, r = o.icon;
|
|
48
|
+
let t;
|
|
49
|
+
e[2] !== o.iconColor ? (t = {
|
|
50
|
+
color: o.iconColor
|
|
51
|
+
}, e[2] = o.iconColor, e[3] = t) : t = e[3];
|
|
52
|
+
let i;
|
|
53
|
+
e[4] !== r || e[5] !== l ? (i = /* @__PURE__ */ f(r, { size: l }), e[4] = r, e[5] = l, e[6] = i) : i = e[6];
|
|
54
|
+
let c;
|
|
55
|
+
e[7] !== t || e[8] !== i ? (c = /* @__PURE__ */ f(C, { display: "inline-flex", alignItems: "center", sx: t, children: i }), e[7] = t, e[8] = i, e[9] = c) : c = e[9];
|
|
56
|
+
let b;
|
|
57
|
+
return e[10] !== o.fullLabel || e[11] !== c ? (b = /* @__PURE__ */ f(d, { title: o.fullLabel, children: c }), e[10] = o.fullLabel, e[11] = c, e[12] = b) : b = e[12], b;
|
|
58
|
+
}
|
|
59
|
+
function y(u) {
|
|
60
|
+
const e = m(12), {
|
|
61
|
+
tier: a
|
|
62
|
+
} = u;
|
|
63
|
+
let s;
|
|
64
|
+
e[0] !== a ? (s = h(a), e[0] = a, e[1] = s) : s = e[1];
|
|
65
|
+
const l = s, n = l.icon;
|
|
66
|
+
let o;
|
|
67
|
+
e[2] !== n ? (o = /* @__PURE__ */ f(n, { size: 14 }), e[2] = n, e[3] = o) : o = e[3];
|
|
68
|
+
let r;
|
|
69
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
70
|
+
cursor: "default"
|
|
71
|
+
}, e[4] = r) : r = e[4];
|
|
72
|
+
let t;
|
|
73
|
+
e[5] !== l.color || e[6] !== l.shortLabel || e[7] !== o ? (t = /* @__PURE__ */ f(x, { icon: o, label: l.shortLabel, size: "small", variant: "outlined", color: l.color, sx: r }), e[5] = l.color, e[6] = l.shortLabel, e[7] = o, e[8] = t) : t = e[8];
|
|
74
|
+
let i;
|
|
75
|
+
return e[9] !== l.fullLabel || e[10] !== t ? (i = /* @__PURE__ */ f(d, { title: l.fullLabel, children: t }), e[9] = l.fullLabel, e[10] = t, e[11] = i) : i = e[11], i;
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
k as I,
|
|
79
|
+
y as a,
|
|
80
|
+
h as g
|
|
81
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as t, jsxs as Z } from "react/jsx-runtime";
|
|
2
|
+
import { c as te } from "react/compiler-runtime";
|
|
3
|
+
import { useState as D, useRef as N, useLayoutEffect as le } from "react";
|
|
4
|
+
import { Box as u, Chip as G, Typography as k, Button as q, IconButton as ne, Tooltip as ie, Stack as re } from "@wso2/oxygen-ui";
|
|
5
|
+
import { X as Y, Plus as se } from "@wso2/oxygen-ui-icons-react";
|
|
6
|
+
import { n as J } from "./index-ByEInFlf.js";
|
|
7
|
+
const Q = 10, ae = /^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$/, oe = /^([a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?)?$/, H = 63;
|
|
8
|
+
function ce(o) {
|
|
9
|
+
if (!o) return "Key is required";
|
|
10
|
+
if (o.length > H) return `Key must be at most ${H} characters`;
|
|
11
|
+
if (!ae.test(o)) return "Use letters, digits, '.', '_' or '-', starting and ending with a letter or digit";
|
|
12
|
+
}
|
|
13
|
+
function de(o) {
|
|
14
|
+
if (o.length > H) return `Value must be at most ${H} characters`;
|
|
15
|
+
if (!oe.test(o)) return "Use letters, digits, '.', '_' or '-', starting and ending with a letter or digit";
|
|
16
|
+
}
|
|
17
|
+
const be = (o) => {
|
|
18
|
+
const e = te(45), {
|
|
19
|
+
value: l,
|
|
20
|
+
onChange: d,
|
|
21
|
+
disabled: C,
|
|
22
|
+
hideTitle: $,
|
|
23
|
+
title: T,
|
|
24
|
+
description: I
|
|
25
|
+
} = o, r = C === void 0 ? !1 : C, n = $ === void 0 ? !1 : $, s = T === void 0 ? "Labels (Optional)" : T, f = I === void 0 ? "Attach key/value labels to organize and filter resources." : I, [c, v] = D(!1), [i, h] = D(""), [a, b] = D("");
|
|
26
|
+
let w;
|
|
27
|
+
e[0] !== l ? (w = Object.entries(l), e[0] = l, e[1] = w) : w = e[1];
|
|
28
|
+
const p = w;
|
|
29
|
+
let B;
|
|
30
|
+
e[2] !== i ? (B = i ? ce(i) : void 0, e[2] = i, e[3] = B) : B = e[3];
|
|
31
|
+
const z = B;
|
|
32
|
+
let P;
|
|
33
|
+
e[4] !== a ? (P = de(a), e[4] = a, e[5] = P) : P = e[5];
|
|
34
|
+
const R = P, O = i && Object.prototype.hasOwnProperty.call(l, i) ? "A label with this key already exists" : void 0, S = p.length >= Q, x = !i || !!z || !!R || !!O;
|
|
35
|
+
let V;
|
|
36
|
+
e[6] !== x || e[7] !== i || e[8] !== a || e[9] !== d || e[10] !== l ? (V = () => {
|
|
37
|
+
x || (d({
|
|
38
|
+
...l,
|
|
39
|
+
[i]: a
|
|
40
|
+
}), h(""), b(""), v(!1));
|
|
41
|
+
}, e[6] = x, e[7] = i, e[8] = a, e[9] = d, e[10] = l, e[11] = V) : V = e[11];
|
|
42
|
+
const M = V;
|
|
43
|
+
let K;
|
|
44
|
+
e[12] !== d || e[13] !== l ? (K = (m) => {
|
|
45
|
+
const g = {
|
|
46
|
+
...l
|
|
47
|
+
};
|
|
48
|
+
delete g[m], d(g);
|
|
49
|
+
}, e[12] = d, e[13] = l, e[14] = K) : K = e[14];
|
|
50
|
+
const U = K;
|
|
51
|
+
let X;
|
|
52
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (X = () => {
|
|
53
|
+
h(""), b(""), v(!1);
|
|
54
|
+
}, e[15] = X) : X = e[15];
|
|
55
|
+
const ee = X;
|
|
56
|
+
let A;
|
|
57
|
+
e[16] !== n || e[17] !== s ? (A = !n && /* @__PURE__ */ t(k, { variant: "h6", children: s }), e[16] = n, e[17] = s, e[18] = A) : A = e[18];
|
|
58
|
+
let y;
|
|
59
|
+
e[19] !== f ? (y = /* @__PURE__ */ t(k, { variant: "body2", children: f }), e[19] = f, e[20] = y) : y = e[20];
|
|
60
|
+
let E;
|
|
61
|
+
e[21] !== r || e[22] !== p || e[23] !== U ? (E = p.length > 0 && /* @__PURE__ */ t(u, { display: "flex", flexWrap: "wrap", gap: 1, children: p.map((m) => {
|
|
62
|
+
const [g, F] = m;
|
|
63
|
+
return /* @__PURE__ */ t(G, { label: F ? `${g}: ${F}` : g, size: "small", variant: "outlined", onDelete: r ? void 0 : () => U(g), deleteIcon: /* @__PURE__ */ t(Y, { size: 14 }) }, g);
|
|
64
|
+
}) }), e[21] = r, e[22] = p, e[23] = U, e[24] = E) : E = e[24];
|
|
65
|
+
let _;
|
|
66
|
+
e[25] !== r || e[26] !== O || e[27] !== M || e[28] !== x || e[29] !== c || e[30] !== z || e[31] !== i || e[32] !== a || e[33] !== R ? (_ = c && /* @__PURE__ */ Z(u, { display: "flex", gap: 1, alignItems: "flex-start", children: [
|
|
67
|
+
/* @__PURE__ */ t(J, { label: "Key", size: "small", value: i, onChange: (m) => h(m.target.value), placeholder: "e.g. env", error: !!z || !!O, helperText: z ?? O, disabled: r }),
|
|
68
|
+
/* @__PURE__ */ t(J, { label: "Value", size: "small", value: a, onChange: (m) => b(m.target.value), placeholder: "e.g. production", error: !!R, helperText: R, disabled: r }),
|
|
69
|
+
/* @__PURE__ */ Z(u, { display: "flex", gap: 0.5, mt: 2.5, children: [
|
|
70
|
+
/* @__PURE__ */ t(q, { variant: "contained", size: "small", onClick: M, disabled: r || x, children: "Add" }),
|
|
71
|
+
/* @__PURE__ */ t(ne, { size: "small", onClick: ee, title: "Cancel", children: /* @__PURE__ */ t(Y, { size: 18 }) })
|
|
72
|
+
] })
|
|
73
|
+
] }), e[25] = r, e[26] = O, e[27] = M, e[28] = x, e[29] = c, e[30] = z, e[31] = i, e[32] = a, e[33] = R, e[34] = _) : _ = e[34];
|
|
74
|
+
let L;
|
|
75
|
+
e[35] !== S || e[36] !== r || e[37] !== c ? (L = !c && !r && /* @__PURE__ */ t(u, { display: "flex", justifyContent: "flex-start", children: /* @__PURE__ */ t(q, { startIcon: /* @__PURE__ */ t(se, { fontSize: "small" }), variant: "outlined", color: "primary", size: "small", onClick: () => v(!0), disabled: S, title: S ? `At most ${Q} labels per resource` : void 0, children: "Add Label" }) }), e[35] = S, e[36] = r, e[37] = c, e[38] = L) : L = e[38];
|
|
76
|
+
let j;
|
|
77
|
+
return e[39] !== A || e[40] !== y || e[41] !== E || e[42] !== _ || e[43] !== L ? (j = /* @__PURE__ */ Z(u, { display: "flex", flexDirection: "column", gap: 1.5, width: "100%", children: [
|
|
78
|
+
A,
|
|
79
|
+
y,
|
|
80
|
+
E,
|
|
81
|
+
_,
|
|
82
|
+
L
|
|
83
|
+
] }), e[39] = A, e[40] = y, e[41] = E, e[42] = _, e[43] = L, e[44] = j) : j = e[44], j;
|
|
84
|
+
}, W = 4, fe = 46, xe = ({
|
|
85
|
+
labels: o,
|
|
86
|
+
size: e = "small"
|
|
87
|
+
}) => {
|
|
88
|
+
const l = Object.entries(o ?? {}), d = N(null), C = N([]), [$, T] = D(l.length);
|
|
89
|
+
if (le(() => {
|
|
90
|
+
const n = d.current;
|
|
91
|
+
if (!n) return;
|
|
92
|
+
const s = () => {
|
|
93
|
+
const c = n.clientWidth;
|
|
94
|
+
if (c <= 0) return;
|
|
95
|
+
let v = 0, i = 0;
|
|
96
|
+
for (let h = 0; h < l.length; h++) {
|
|
97
|
+
const a = C.current[h]?.getBoundingClientRect().width ?? 0, b = i > 0 ? W : 0, p = l.length - (h + 1) > 0 ? fe + W : 0;
|
|
98
|
+
if (v + b + a + p > c && i > 0) break;
|
|
99
|
+
v += b + a, i += 1;
|
|
100
|
+
}
|
|
101
|
+
T(i || (l.length > 0 ? 1 : 0));
|
|
102
|
+
};
|
|
103
|
+
if (s(), typeof ResizeObserver > "u") return;
|
|
104
|
+
const f = new ResizeObserver(s);
|
|
105
|
+
return f.observe(n), () => f.disconnect();
|
|
106
|
+
}, [o]), l.length === 0) return null;
|
|
107
|
+
const I = l.slice(0, $), r = l.slice($);
|
|
108
|
+
return /* @__PURE__ */ Z(u, { ref: d, sx: {
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexWrap: "nowrap",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
gap: `${W}px`,
|
|
113
|
+
overflow: "hidden",
|
|
114
|
+
minWidth: 0,
|
|
115
|
+
flex: "1 1 0%"
|
|
116
|
+
}, children: [
|
|
117
|
+
/* @__PURE__ */ t(u, { "aria-hidden": !0, sx: {
|
|
118
|
+
position: "absolute",
|
|
119
|
+
top: -9999,
|
|
120
|
+
left: -9999,
|
|
121
|
+
visibility: "hidden",
|
|
122
|
+
display: "flex",
|
|
123
|
+
gap: `${W}px`,
|
|
124
|
+
pointerEvents: "none"
|
|
125
|
+
}, children: l.map(([n, s], f) => /* @__PURE__ */ t(u, { ref: (c) => {
|
|
126
|
+
C.current[f] = c;
|
|
127
|
+
}, children: /* @__PURE__ */ t(G, { label: s ? `${n}: ${s}` : n, size: e, variant: "outlined" }) }, n)) }),
|
|
128
|
+
I.map(([n, s]) => /* @__PURE__ */ t(G, { label: s ? `${n}: ${s}` : n, size: e, variant: "outlined", sx: {
|
|
129
|
+
flexShrink: 0
|
|
130
|
+
} }, n)),
|
|
131
|
+
r.length > 0 && /* @__PURE__ */ t(ie, { title: /* @__PURE__ */ t(re, { spacing: 0.25, children: r.map(([n, s]) => /* @__PURE__ */ t(k, { variant: "caption", children: s ? `${n}: ${s}` : n }, n)) }), placement: "top", children: /* @__PURE__ */ t(G, { label: `+${r.length}`, size: e, variant: "outlined", sx: {
|
|
132
|
+
flexShrink: 0
|
|
133
|
+
} }) })
|
|
134
|
+
] });
|
|
135
|
+
};
|
|
136
|
+
export {
|
|
137
|
+
be as L,
|
|
138
|
+
xe as a
|
|
139
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as C } from "react/compiler-runtime";
|
|
3
|
+
const e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtKADAAQAAAABAAAAtAAAAABW1ZZ5AAAPtElEQVR4Ae2dC/BuUxnGD45cIo5LicGHTgYRxshfOKYpNCSjMak0ZZTURKVG5ZJUU5mpIXJPRnTTVBppSuqENLnUyOQyueYyIXFCOuGo5zFWs32+y3rXu/Zee3/7WTPvf+9v77Xetdazft/6773W2vubN09BCkgBKSAFpIAUkAJSQApIASkgBaSAFJACUkAKSAEpIAWkgBSQAlJACkiB/imwXP+q3Moar4BSDWAbwlZ73pZh+wTsn7A7YQ/AFKYoIKCnCFTT6XXgdw/YItgusIWwFWGTwuM4eSPsStgVsMWwp2AKUqCIAvOR6ztgl8Kehv3XaY8g/TmwOZiCFGhMgVWQ00dh98C8EI9LfxV87w1TkAK1KrA/vN8NGwdi7uOXI68tYQpSIKsCvEa+BJYb2Bh/vJz5DGx5mIIUcCuwCB7uh8XAV2ecxSjDK921kYNeK3AQas+RhzpBtfjmdfsWvW4RVT5ZgSOR8lmYBbgm4v4DZXpdcq2UsJcKfBq1bgLO1Dw4xLdVL1tGlTYr0HaYw5fgPtSMM5EzHTRT6GtewvxFn4v/pyZ4vJn8K4xT3pwOXxO2GWwBLEe4Bk44M/lMDmfyMVsK5OiZeSlwNoyTImtMkGdjnHsvLMcs44kT8tGpnirghflB6HYEbNUE/TZCmq/DUqfPeeOqm8QE4Wc1iRdm9siTeuNY3TgjeC0sXC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zdrvwl2I6gdQLVtB3W9uWlv7DVCyJYK6te2jgiUosD/SpL4MUj11guBKUr8CRyALyyVHNa6grr99lEOCAh8T1AmqKUmrFRDUrW4eFS5FAUGdoprStFoBL9Q7trp2KlwvFfBAfTcU8/xUXC8FV6XrV8AD9UH1F085SAG7AqlQn2nPSimkQDMKpEDNaXUFKdBaBaxQczWfghRotQKxUHMqnW9lUpACrVcgBmq+/FFBCnRGgUNQ0qWw6pqOsH8ujvPHQBXGKMB3Fyu0T4GNUKRDYZxE4ZjzLbALYPwFWwUpIAWkgBSQAlJACkgBKSAFpIAUkAJSQApIASkgBaSAFJACUkAKSAEpIAWkgBR4gQL/A8XK9LF15GsEAAAAAElFTkSuQmCC", n = (M) => {
|
|
4
|
+
const A = C(5), {
|
|
5
|
+
size: B,
|
|
6
|
+
className: m
|
|
7
|
+
} = M, t = B === void 0 ? 20 : B;
|
|
8
|
+
let s;
|
|
9
|
+
A[0] !== t ? (s = {
|
|
10
|
+
backgroundColor: "currentColor",
|
|
11
|
+
color: "inherit",
|
|
12
|
+
display: "inline-block",
|
|
13
|
+
height: t,
|
|
14
|
+
maskImage: `url(${e})`,
|
|
15
|
+
maskPosition: "center",
|
|
16
|
+
maskRepeat: "no-repeat",
|
|
17
|
+
maskSize: "contain",
|
|
18
|
+
WebkitMaskImage: `url(${e})`,
|
|
19
|
+
WebkitMaskPosition: "center",
|
|
20
|
+
WebkitMaskRepeat: "no-repeat",
|
|
21
|
+
WebkitMaskSize: "contain",
|
|
22
|
+
verticalAlign: "middle",
|
|
23
|
+
width: t
|
|
24
|
+
}, A[0] = t, A[1] = s) : s = A[1];
|
|
25
|
+
let g;
|
|
26
|
+
return A[2] !== m || A[3] !== s ? (g = /* @__PURE__ */ c("span", { "aria-hidden": "true", className: m, style: s }), A[2] = m, A[3] = s, A[4] = g) : g = A[4], g;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
n as M
|
|
30
|
+
};
|