@wso2/am-core-ui 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/CatalogKindListing-DvUuZEpc.js +137 -0
  2. package/dist/{CodeBlock-mB_Loq7I.js → CodeBlock-B2Ecl916.js} +1 -1
  3. package/dist/EnvironmentCard-CIXhDhlZ.js +319 -0
  4. package/dist/{EnvironmentSelector-B7Bl93s2.js → EnvironmentSelector-D8S6nO9u.js} +1 -1
  5. package/dist/IsolationTierIndicator-cf90kgjL.js +81 -0
  6. package/dist/LabelChips-7rA7_yre.js +139 -0
  7. package/dist/PolicyListSection-D6aVSKwP.js +1143 -0
  8. package/dist/{ResourceListShell-Cx6mdeqv.js → ResourceListShell-DFisKftq.js} +1 -1
  9. package/dist/{SwaggerSpecViewer-BvkhoKsi.js → SwaggerSpecViewer-DzjR6U6W.js} +1 -1
  10. package/dist/{debounce-BV83M53b.js → debounce-D17ObVdG.js} +1 -1
  11. package/dist/{format-BEZZRyE2.js → format-wlHhWjGo.js} +1 -1
  12. package/dist/{formatDistanceToNow-TErllcH8.js → formatDistanceToNow-DyjnT7l9.js} +11 -11
  13. package/dist/{gatewayScripts-D8O45W8u.js → gatewayScripts-D4ZDEDPS.js} +1 -1
  14. package/dist/{index-sr-mWz4T.js → index-3K-zqdp-.js} +32 -32
  15. package/dist/{index-KRsV2L4V.js → index-6liAPSDn.js} +160 -160
  16. package/dist/{index-B52h3RHg.js → index-B3ASENUJ.js} +109 -109
  17. package/dist/index-B7Pf4oPq.js +3069 -0
  18. package/dist/index-BNO3FhZK.js +2304 -0
  19. package/dist/index-BUZSfCl5.js +335 -0
  20. package/dist/index-BXiG1r_o.js +1409 -0
  21. package/dist/{index-_0Pj_ZtW.js → index-BYy7Iaam.js} +40 -40
  22. package/dist/{index-BfjzUWDa.js → index-BbB_yx4V.js} +103 -103
  23. package/dist/index-BjWJ95lH.js +2728 -0
  24. package/dist/{index-B_Z0MwXk.js → index-ByEInFlf.js} +10916 -9520
  25. package/dist/index-C8WIhzyz.js +123 -0
  26. package/dist/index-CnzvaT6b.js +2368 -0
  27. package/dist/index-CrnCf-hJ.js +763 -0
  28. package/dist/{index-CgCWbWzN.js → index-Cvsho9xg.js} +381 -377
  29. package/dist/{index-UqDmyMSA.js → index-CxnAo1_c.js} +21 -21
  30. package/dist/{index-BnV-PkwM.js → index-Cz7-AZwE.js} +2 -2
  31. package/dist/{index-BP5drcF2.js → index-DBdRFjxm.js} +232 -233
  32. package/dist/{index-BZ4vxviI.js → index-DFsSvmMZ.js} +5 -5
  33. package/dist/index-DslzOSGN.js +2549 -0
  34. package/dist/{index-DD4qF7gq.js → index-DvpYvchM.js} +101 -100
  35. package/dist/index.d.ts +784 -163
  36. package/dist/index.js +532 -454
  37. package/dist/js-yaml-CvhD-clg.js +1335 -0
  38. package/dist/{llmProviderPayload-CzihkdNa.js → llmProviderPayload-BPzWDy7n.js} +2 -2
  39. package/package.json +1 -1
  40. package/dist/CatalogKindListing-DtFI2YMG.js +0 -118
  41. package/dist/EnvironmentCard-09h1XRxx.js +0 -310
  42. package/dist/PolicyListSection-o4k9e8XO.js +0 -2475
  43. package/dist/index-CGDYgUCH.js +0 -711
  44. package/dist/index-COt7nJIf.js +0 -2286
  45. package/dist/index-CWZjOy1h.js +0 -2247
  46. package/dist/index-CezvogTQ.js +0 -116
  47. package/dist/index-CjCkcuuI.js +0 -322
  48. package/dist/index-CjXvuf9m.js +0 -1354
  49. package/dist/index-DeQ-9KTC.js +0 -737
  50. package/dist/index-Df6OBy4E.js +0 -3041
  51. package/dist/index-PUuASE1F.js +0 -2507
@@ -2,9 +2,9 @@ import { Plus as Le, Users as nt, Trash as we, Link2 as xt, Check as Pt, Copy as
2
2
  import { jsx as t, Fragment as H, jsxs as s } from "react/jsx-runtime";
3
3
  import { useParams as fe, useNavigate as xe, generatePath as q, Link as ut, Route as le, Navigate as je, Routes as pt, useLocation as At, matchPath as Ut } from "react-router-dom";
4
4
  import { c as Ie } from "react/compiler-runtime";
5
- import { q as Ve, bF as gt, bG as Dt, G as at, g as he, r as Ke, A as Qe, bH as kt, bI as Gt, t as Et, bJ as Lt, bK as Tt, bL as _t, bM as ft, bN as bt, bO as vt, bP as zt, bQ as Ft, bR as Wt, bS as Mt, bT as Ot, bU as Bt, bV as Vt, bW as $t, bX as Ht, bY as Xt, bZ as qt, b_ as jt, b$ as Yt, c0 as Jt, c1 as Kt, c2 as Qt, c3 as Zt, c4 as er, bv as tr, P as rr } from "./index-B_Z0MwXk.js";
5
+ import { x as Ve, bP as gt, bQ as Dt, L as at, g as he, y as Ze, H as Je, bR as kt, bS as Et, n as Gt, bT as Lt, bU as Tt, bV as _t, bW as ft, bX as bt, bY as vt, bZ as zt, b_ as Ft, b$ as Mt, c0 as Wt, c1 as Ot, c2 as Bt, c3 as Vt, c4 as $t, c5 as Ht, c6 as Xt, c7 as qt, c8 as jt, c9 as Yt, ca as Qt, cb as Zt, cc as Jt, cd as Kt, ce as er, bF as tr, P as rr } from "./index-ByEInFlf.js";
6
6
  import { useState as R, useMemo as _, useEffect as $e, useRef as yt, useCallback as Ye } from "react";
7
- import { ListingTable as n, Stack as ae, Skeleton as Se, Alert as ne, Button as X, Avatar as Ze, Typography as B, Tooltip as De, IconButton as ke, TablePagination as et, Form as S, TextField as ce, Box as L, Collapse as tt, Tabs as ot, Tab as Ee, Autocomplete as Oe, Chip as Je, createFilterOptions as nr, Checkbox as ht, CircularProgress as ir, Card as sr, List as ar, ListItemButton as or, ListItemIcon as lr, ListItemText as cr, ListSubheader as dr, Divider as hr } from "@wso2/oxygen-ui";
7
+ import { ListingTable as n, Stack as ae, Skeleton as Se, Alert as ne, Button as X, Avatar as Ke, Typography as B, Tooltip as De, IconButton as ke, TablePagination as et, Form as S, TextField as ce, Box as L, Collapse as tt, Tabs as ot, Tab as Ge, Autocomplete as Oe, Chip as Qe, createFilterOptions as nr, Checkbox as ht, CircularProgress as ir, Card as sr, List as ar, ListItemButton as or, ListItemIcon as lr, ListItemText as cr, ListSubheader as dr, Divider as hr } from "@wso2/oxygen-ui";
8
8
  import "@tanstack/react-query";
9
9
  import { o as rt, s as ye } from "./schemas-DFScWdSL.js";
10
10
  const lt = (e) => {
@@ -62,7 +62,7 @@ const lt = (e) => {
62
62
  }) : "#", C = (b) => String(b.attributes?.username ?? ""), u = _(() => {
63
63
  if (!o) return P;
64
64
  const b = o.toLowerCase();
65
- return P.filter((M) => C(M).toLowerCase().includes(b));
65
+ return P.filter((W) => C(W).toLowerCase().includes(b));
66
66
  }, [P, o]), A = (b) => {
67
67
  I({
68
68
  title: "Delete User",
@@ -92,11 +92,11 @@ const lt = (e) => {
92
92
  /* @__PURE__ */ t(n.Cell, { align: "center", width: "80px" })
93
93
  ] }) }),
94
94
  /* @__PURE__ */ s(n.Body, { children: [
95
- i && /* @__PURE__ */ t(lt, { rows: a }),
95
+ i && /* @__PURE__ */ t(lt, { rows: Math.ceil(a / 2) }),
96
96
  !i && u.map((b) => {
97
- const M = C(b);
97
+ const W = C(b);
98
98
  return /* @__PURE__ */ s(n.Row, { variant: "table", hover: !0, clickable: !0, onClick: () => r(T(b.id)), children: [
99
- /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ze, { sx: mr, children: M.charAt(0).toUpperCase() || "U" }), primary: M }) }),
99
+ /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ke, { sx: mr, children: W.charAt(0).toUpperCase() || "U" }), primary: W }) }),
100
100
  /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", noWrap: !0, children: b.id }) }),
101
101
  /* @__PURE__ */ t(n.Cell, { align: "center", children: /* @__PURE__ */ t(n.RowActions, { visibility: "hover", children: /* @__PURE__ */ t(De, { title: "Delete user", children: /* @__PURE__ */ t(ke, { size: "small", color: "error", onClick: (j) => {
102
102
  j.stopPropagation(), A(b);
@@ -105,7 +105,7 @@ const lt = (e) => {
105
105
  })
106
106
  ] })
107
107
  ] }),
108
- !i && y >= 5 && /* @__PURE__ */ t(et, { component: "div", count: y, page: c, rowsPerPage: a, onPageChange: (b, M) => l(M), onRowsPerPageChange: (b) => {
108
+ !i && y >= 5 && /* @__PURE__ */ t(et, { component: "div", count: y, page: c, rowsPerPage: a, onPageChange: (b, W) => l(W), onRowsPerPageChange: (b) => {
109
109
  m(parseInt(b.target.value, 10)), l(0);
110
110
  }, rowsPerPageOptions: [5, 10, 25, 50] })
111
111
  ] }) })
@@ -140,10 +140,10 @@ const lt = (e) => {
140
140
  validateForm: p,
141
141
  clearErrors: I,
142
142
  setFieldError: P
143
- } = Ke(br), {
143
+ } = Ze(br), {
144
144
  checkDirty: y,
145
145
  resetDirty: N
146
- } = Qe(l);
146
+ } = Je(l);
147
147
  let U;
148
148
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (U = {}, e[1] = U) : U = e[1];
149
149
  const [F, T] = R(U), {
@@ -155,14 +155,14 @@ const lt = (e) => {
155
155
  e[2] !== r ? (b = r ? q(he.children.org.children.settings.children.identities.children.users.path, {
156
156
  orgId: r
157
157
  }) : "#", e[2] = r, e[3] = b) : b = e[3];
158
- const M = b;
158
+ const W = b;
159
159
  let j;
160
- e[4] !== y || e[5] !== l || e[6] !== P || e[7] !== w ? (j = (J, ie) => {
160
+ e[4] !== y || e[5] !== l || e[6] !== P || e[7] !== w ? (j = (Q, ie) => {
161
161
  const de = {
162
162
  ...l,
163
- [J]: ie
163
+ [Q]: ie
164
164
  };
165
- a(de), y(de), P(J, w(J, ie));
165
+ a(de), y(de), P(Q, w(Q, ie));
166
166
  }, e[4] = y, e[5] = l, e[6] = P, e[7] = w, e[8] = j) : j = e[8];
167
167
  const V = j;
168
168
  let Y;
@@ -173,7 +173,7 @@ const lt = (e) => {
173
173
  }
174
174
  T({});
175
175
  try {
176
- const J = await C({
176
+ const Q = await C({
177
177
  params: {
178
178
  orgName: r
179
179
  },
@@ -181,18 +181,18 @@ const lt = (e) => {
181
181
  email: l.email.trim()
182
182
  }
183
183
  });
184
- o(J.inviteLink);
184
+ o(Q.inviteLink);
185
185
  } catch {
186
186
  }
187
187
  }, e[9] = i, e[10] = l, e[11] = C, e[12] = r, e[13] = p, e[14] = Y) : Y = e[14];
188
- const W = Y;
189
- let Z;
190
- e[15] !== I || e[16] !== N ? (Z = () => {
188
+ const M = Y;
189
+ let K;
190
+ e[15] !== I || e[16] !== N ? (K = () => {
191
191
  o(void 0), a({
192
192
  email: ""
193
193
  }), N(), I(), T({});
194
- }, e[15] = I, e[16] = N, e[17] = Z) : Z = e[17];
195
- const ee = Z;
194
+ }, e[15] = I, e[16] = N, e[17] = K) : K = e[17];
195
+ const ee = K;
196
196
  let $;
197
197
  e[18] !== m ? ($ = async () => {
198
198
  m && (await navigator.clipboard.writeText(m), g(!0), setTimeout(() => g(!1), 2e3));
@@ -203,17 +203,17 @@ const lt = (e) => {
203
203
  const te = k;
204
204
  let O;
205
205
  e[22] !== A ? (O = A != null && /* @__PURE__ */ t(ne, { severity: "error", children: A?.message ?? "Failed to send invitation" }), e[22] = A, e[23] = O) : O = e[23];
206
- let G;
207
- e[24] !== f || e[25] !== i || e[26] !== l.email || e[27] !== D || e[28] !== V || e[29] !== ee || e[30] !== W || e[31] !== m || e[32] !== u || e[33] !== d || e[34] !== te || e[35] !== M ? (G = m == null ? /* @__PURE__ */ s(H, { children: [
206
+ let E;
207
+ e[24] !== f || e[25] !== i || e[26] !== l.email || e[27] !== D || e[28] !== V || e[29] !== ee || e[30] !== M || e[31] !== m || e[32] !== u || e[33] !== d || e[34] !== te || e[35] !== W ? (E = m == null ? /* @__PURE__ */ s(H, { children: [
208
208
  /* @__PURE__ */ t(S.Stack, { spacing: 3, children: /* @__PURE__ */ s(S.Section, { children: [
209
209
  /* @__PURE__ */ t(S.Subheader, { children: "Invite Details" }),
210
- /* @__PURE__ */ t(S.Stack, { spacing: 2, children: /* @__PURE__ */ t(S.ElementWrapper, { label: "Email Address", name: "email", children: /* @__PURE__ */ t(ce, { id: "email", type: "email", value: l.email, onChange: (J) => V("email", J.target.value), placeholder: "user@example.com", autoComplete: "off", error: !!i.email, helperText: i.email, fullWidth: !0 }) }) })
210
+ /* @__PURE__ */ t(S.Stack, { spacing: 2, children: /* @__PURE__ */ t(S.ElementWrapper, { label: "Email Address", name: "email", children: /* @__PURE__ */ t(ce, { id: "email", type: "email", value: l.email, onChange: (Q) => V("email", Q.target.value), placeholder: "user@example.com", autoComplete: "off", error: !!i.email, helperText: i.email, fullWidth: !0 }) }) })
211
211
  ] }) }),
212
212
  /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 3, children: [
213
213
  /* @__PURE__ */ t(tt, { in: te.length > 0, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ t(ne, { severity: "error", children: te.map(yr) }) }),
214
214
  /* @__PURE__ */ s(L, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
215
- /* @__PURE__ */ t(X, { variant: "outlined", color: "primary", onClick: () => d(M), disabled: u, children: "Cancel" }),
216
- /* @__PURE__ */ t(X, { variant: "contained", color: "primary", startIcon: /* @__PURE__ */ t(xt, { size: 16 }), onClick: W, disabled: u || !l.email.trim(), children: "Get Invitation Link" })
215
+ /* @__PURE__ */ t(X, { variant: "outlined", color: "primary", onClick: () => d(W), disabled: u, children: "Cancel" }),
216
+ /* @__PURE__ */ t(X, { variant: "contained", color: "primary", startIcon: /* @__PURE__ */ t(xt, { size: 16 }), onClick: M, disabled: u || !l.email.trim(), children: "Get Invitation Link" })
217
217
  ] })
218
218
  ] })
219
219
  ] }) : /* @__PURE__ */ t(S.Stack, { spacing: 3, children: /* @__PURE__ */ s(S.Section, { children: [
@@ -236,15 +236,15 @@ const lt = (e) => {
236
236
  ] }),
237
237
  /* @__PURE__ */ s(L, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", justifyContent: "flex-end", children: [
238
238
  /* @__PURE__ */ t(X, { variant: "outlined", color: "primary", onClick: ee, children: "Invite Another" }),
239
- /* @__PURE__ */ t(X, { variant: "contained", color: "primary", onClick: () => d(M), children: "Done" })
239
+ /* @__PURE__ */ t(X, { variant: "contained", color: "primary", onClick: () => d(W), children: "Done" })
240
240
  ] })
241
241
  ] })
242
- ] }) }), e[24] = f, e[25] = i, e[26] = l.email, e[27] = D, e[28] = V, e[29] = ee, e[30] = W, e[31] = m, e[32] = u, e[33] = d, e[34] = te, e[35] = M, e[36] = G) : G = e[36];
242
+ ] }) }), e[24] = f, e[25] = i, e[26] = l.email, e[27] = D, e[28] = V, e[29] = ee, e[30] = M, e[31] = m, e[32] = u, e[33] = d, e[34] = te, e[35] = W, e[36] = E) : E = e[36];
243
243
  let re;
244
- return e[37] !== O || e[38] !== G ? (re = /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 2, children: [
244
+ return e[37] !== O || e[38] !== E ? (re = /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 2, children: [
245
245
  O,
246
- G
247
- ] }) }), e[37] = O, e[38] = G, e[39] = re) : re = e[39], re;
246
+ E
247
+ ] }) }), e[37] = O, e[38] = E, e[39] = re) : re = e[39], re;
248
248
  };
249
249
  function yr(e, r) {
250
250
  return /* @__PURE__ */ t(L, { children: e }, r);
@@ -261,7 +261,7 @@ const Cr = () => {
261
261
  mutateAsync: m,
262
262
  isPending: o,
263
263
  error: f
264
- } = Gt();
264
+ } = Et();
265
265
  let g;
266
266
  e[2] === Symbol.for("react.memo_cache_sentinel") ? (g = {
267
267
  username: "",
@@ -276,34 +276,34 @@ const Cr = () => {
276
276
  validateForm: P,
277
277
  clearErrors: y,
278
278
  setFieldError: N
279
- } = Ke(fr), {
279
+ } = Ze(fr), {
280
280
  checkDirty: U,
281
281
  resetDirty: F
282
- } = Qe(i);
282
+ } = Je(i);
283
283
  let T;
284
284
  e[3] === Symbol.for("react.memo_cache_sentinel") ? (T = {}, e[3] = T) : T = e[3];
285
285
  const [C, u] = R(T);
286
286
  let A;
287
- e[4] !== U || e[5] !== i || e[6] !== N || e[7] !== I ? (A = (K, He) => {
287
+ e[4] !== U || e[5] !== i || e[6] !== N || e[7] !== I ? (A = (Z, He) => {
288
288
  const Xe = {
289
289
  ...i,
290
- [K]: He
290
+ [Z]: He
291
291
  };
292
- w(Xe), U(Xe), N(K, I(K, He));
292
+ w(Xe), U(Xe), N(Z, I(Z, He));
293
293
  }, e[4] = U, e[5] = i, e[6] = N, e[7] = I, e[8] = A) : A = e[8];
294
294
  const b = A;
295
- let M;
296
- e[9] !== y || e[10] !== m || e[11] !== p || e[12] !== i || e[13] !== d || e[14] !== r || e[15] !== F || e[16] !== a || e[17] !== P ? (M = async () => {
295
+ let W;
296
+ e[9] !== y || e[10] !== m || e[11] !== p || e[12] !== i || e[13] !== d || e[14] !== r || e[15] !== F || e[16] !== a || e[17] !== P ? (W = async () => {
297
297
  if (!P(i)) {
298
298
  u(p);
299
299
  return;
300
300
  }
301
301
  u({});
302
- const K = {
302
+ const Z = {
303
303
  username: i.username,
304
304
  password: i.password
305
305
  };
306
- i.firstName && (K.given_name = i.firstName), i.lastName && (K.family_name = i.lastName), i.email && (K.email = i.email);
306
+ i.firstName && (Z.given_name = i.firstName), i.lastName && (Z.family_name = i.lastName), i.email && (Z.email = i.email);
307
307
  try {
308
308
  await m({
309
309
  params: {
@@ -311,61 +311,61 @@ const Cr = () => {
311
311
  },
312
312
  body: {
313
313
  type: "engineer",
314
- attributes: K
314
+ attributes: Z
315
315
  }
316
316
  }), F(), y(), d(a);
317
317
  } catch {
318
318
  }
319
- }, e[9] = y, e[10] = m, e[11] = p, e[12] = i, e[13] = d, e[14] = r, e[15] = F, e[16] = a, e[17] = P, e[18] = M) : M = e[18];
320
- const j = M;
319
+ }, e[9] = y, e[10] = m, e[11] = p, e[12] = i, e[13] = d, e[14] = r, e[15] = F, e[16] = a, e[17] = P, e[18] = W) : W = e[18];
320
+ const j = W;
321
321
  let V;
322
322
  e[19] !== C ? (V = Object.values(C), e[19] = C, e[20] = V) : V = e[20];
323
323
  const Y = V;
324
- let W;
325
- e[21] !== f ? (W = f != null && /* @__PURE__ */ t(ne, { severity: "error", children: f?.message ?? "Failed to create user" }), e[21] = f, e[22] = W) : W = e[22];
326
- let Z;
327
- e[23] === Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ t(S.Subheader, { children: "User Details" }), e[23] = Z) : Z = e[23];
324
+ let M;
325
+ e[21] !== f ? (M = f != null && /* @__PURE__ */ t(ne, { severity: "error", children: f?.message ?? "Failed to create user" }), e[21] = f, e[22] = M) : M = e[22];
326
+ let K;
327
+ e[23] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ t(S.Subheader, { children: "User Details" }), e[23] = K) : K = e[23];
328
328
  let ee;
329
- e[24] !== b ? (ee = (K) => b("username", K.target.value), e[24] = b, e[25] = ee) : ee = e[25];
329
+ e[24] !== b ? (ee = (Z) => b("username", Z.target.value), e[24] = b, e[25] = ee) : ee = e[25];
330
330
  const $ = !!p.username;
331
331
  let D;
332
332
  e[26] !== p.username || e[27] !== i.username || e[28] !== o || e[29] !== ee || e[30] !== $ ? (D = /* @__PURE__ */ t(S.ElementWrapper, { label: "Username", name: "username", children: /* @__PURE__ */ t(ce, { id: "username", value: i.username, onChange: ee, placeholder: "jane.doe", autoComplete: "off", disabled: o, error: $, helperText: p.username, fullWidth: !0 }) }), e[26] = p.username, e[27] = i.username, e[28] = o, e[29] = ee, e[30] = $, e[31] = D) : D = e[31];
333
333
  let k;
334
- e[32] !== b ? (k = (K) => b("password", K.target.value), e[32] = b, e[33] = k) : k = e[33];
334
+ e[32] !== b ? (k = (Z) => b("password", Z.target.value), e[32] = b, e[33] = k) : k = e[33];
335
335
  const te = !!p.password;
336
336
  let O;
337
- e[34] !== p.password || e[35] !== i.password || e[36] !== o || e[37] !== k || e[38] !== te ? (O = /* @__PURE__ */ t(S.ElementWrapper, { label: "Password", name: "password", children: /* @__PURE__ */ t(Et, { id: "password", type: "password", showPasswordToggle: !0, value: i.password, onChange: k, autoComplete: "new-password", disabled: o, error: te, helperText: p.password, fullWidth: !0 }) }), e[34] = p.password, e[35] = i.password, e[36] = o, e[37] = k, e[38] = te, e[39] = O) : O = e[39];
338
- let G;
339
- e[40] !== b ? (G = (K) => b("firstName", K.target.value), e[40] = b, e[41] = G) : G = e[41];
337
+ e[34] !== p.password || e[35] !== i.password || e[36] !== o || e[37] !== k || e[38] !== te ? (O = /* @__PURE__ */ t(S.ElementWrapper, { label: "Password", name: "password", children: /* @__PURE__ */ t(Gt, { id: "password", type: "password", showPasswordToggle: !0, value: i.password, onChange: k, autoComplete: "new-password", disabled: o, error: te, helperText: p.password, fullWidth: !0 }) }), e[34] = p.password, e[35] = i.password, e[36] = o, e[37] = k, e[38] = te, e[39] = O) : O = e[39];
338
+ let E;
339
+ e[40] !== b ? (E = (Z) => b("firstName", Z.target.value), e[40] = b, e[41] = E) : E = e[41];
340
340
  const re = !!p.firstName;
341
- let J;
342
- e[42] !== p.firstName || e[43] !== i.firstName || e[44] !== o || e[45] !== G || e[46] !== re ? (J = /* @__PURE__ */ t(S.ElementWrapper, { label: "First Name (optional)", name: "firstName", children: /* @__PURE__ */ t(ce, { id: "firstName", value: i.firstName, onChange: G, disabled: o, error: re, helperText: p.firstName, fullWidth: !0 }) }), e[42] = p.firstName, e[43] = i.firstName, e[44] = o, e[45] = G, e[46] = re, e[47] = J) : J = e[47];
341
+ let Q;
342
+ e[42] !== p.firstName || e[43] !== i.firstName || e[44] !== o || e[45] !== E || e[46] !== re ? (Q = /* @__PURE__ */ t(S.ElementWrapper, { label: "First Name (optional)", name: "firstName", children: /* @__PURE__ */ t(ce, { id: "firstName", value: i.firstName, onChange: E, disabled: o, error: re, helperText: p.firstName, fullWidth: !0 }) }), e[42] = p.firstName, e[43] = i.firstName, e[44] = o, e[45] = E, e[46] = re, e[47] = Q) : Q = e[47];
343
343
  let ie;
344
- e[48] !== b ? (ie = (K) => b("lastName", K.target.value), e[48] = b, e[49] = ie) : ie = e[49];
344
+ e[48] !== b ? (ie = (Z) => b("lastName", Z.target.value), e[48] = b, e[49] = ie) : ie = e[49];
345
345
  const de = !!p.lastName;
346
346
  let se;
347
347
  e[50] !== p.lastName || e[51] !== i.lastName || e[52] !== o || e[53] !== ie || e[54] !== de ? (se = /* @__PURE__ */ t(S.ElementWrapper, { label: "Last Name (optional)", name: "lastName", children: /* @__PURE__ */ t(ce, { id: "lastName", value: i.lastName, onChange: ie, disabled: o, error: de, helperText: p.lastName, fullWidth: !0 }) }), e[50] = p.lastName, e[51] = i.lastName, e[52] = o, e[53] = ie, e[54] = de, e[55] = se) : se = e[55];
348
348
  let oe;
349
- e[56] !== b ? (oe = (K) => b("email", K.target.value), e[56] = b, e[57] = oe) : oe = e[57];
349
+ e[56] !== b ? (oe = (Z) => b("email", Z.target.value), e[56] = b, e[57] = oe) : oe = e[57];
350
350
  const ue = !!p.email;
351
351
  let be;
352
352
  e[58] !== p.email || e[59] !== i.email || e[60] !== o || e[61] !== oe || e[62] !== ue ? (be = /* @__PURE__ */ t(S.ElementWrapper, { label: "Email Address (optional)", name: "email", children: /* @__PURE__ */ t(ce, { id: "email", type: "email", value: i.email, onChange: oe, placeholder: "user@example.com", disabled: o, error: ue, helperText: p.email, fullWidth: !0 }) }), e[58] = p.email, e[59] = i.email, e[60] = o, e[61] = oe, e[62] = ue, e[63] = be) : be = e[63];
353
353
  let me;
354
- e[64] !== D || e[65] !== O || e[66] !== J || e[67] !== se || e[68] !== be ? (me = /* @__PURE__ */ t(S.Stack, { spacing: 3, children: /* @__PURE__ */ s(S.Section, { children: [
355
- Z,
354
+ e[64] !== D || e[65] !== O || e[66] !== Q || e[67] !== se || e[68] !== be ? (me = /* @__PURE__ */ t(S.Stack, { spacing: 3, children: /* @__PURE__ */ s(S.Section, { children: [
355
+ K,
356
356
  /* @__PURE__ */ s(S.Stack, { spacing: 2, children: [
357
357
  D,
358
358
  O,
359
- J,
359
+ Q,
360
360
  se,
361
361
  be
362
362
  ] })
363
- ] }) }), e[64] = D, e[65] = O, e[66] = J, e[67] = se, e[68] = be, e[69] = me) : me = e[69];
363
+ ] }) }), e[64] = D, e[65] = O, e[66] = Q, e[67] = se, e[68] = be, e[69] = me) : me = e[69];
364
364
  const x = Y.length > 0;
365
- let E;
366
- e[70] !== Y ? (E = /* @__PURE__ */ t(ne, { severity: "error", children: Y.map(Sr) }), e[70] = Y, e[71] = E) : E = e[71];
367
- let Q;
368
- e[72] !== x || e[73] !== E ? (Q = /* @__PURE__ */ t(tt, { in: x, timeout: "auto", unmountOnExit: !0, children: E }), e[72] = x, e[73] = E, e[74] = Q) : Q = e[74];
365
+ let G;
366
+ e[70] !== Y ? (G = /* @__PURE__ */ t(ne, { severity: "error", children: Y.map(Sr) }), e[70] = Y, e[71] = G) : G = e[71];
367
+ let J;
368
+ e[72] !== x || e[73] !== G ? (J = /* @__PURE__ */ t(tt, { in: x, timeout: "auto", unmountOnExit: !0, children: G }), e[72] = x, e[73] = G, e[74] = J) : J = e[74];
369
369
  let ve;
370
370
  e[75] !== d || e[76] !== a ? (ve = () => d(a), e[75] = d, e[76] = a, e[77] = ve) : ve = e[77];
371
371
  let Re;
@@ -382,16 +382,16 @@ const Cr = () => {
382
382
  Pe
383
383
  ] }), e[89] = Re, e[90] = Pe, e[91] = Ne) : Ne = e[91];
384
384
  let Ae;
385
- e[92] !== Q || e[93] !== Ne ? (Ae = /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 3, children: [
386
- Q,
385
+ e[92] !== J || e[93] !== Ne ? (Ae = /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 3, children: [
386
+ J,
387
387
  Ne
388
- ] }), e[92] = Q, e[93] = Ne, e[94] = Ae) : Ae = e[94];
388
+ ] }), e[92] = J, e[93] = Ne, e[94] = Ae) : Ae = e[94];
389
389
  let _e;
390
- return e[95] !== me || e[96] !== Ae || e[97] !== W ? (_e = /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 2, children: [
391
- W,
390
+ return e[95] !== me || e[96] !== Ae || e[97] !== M ? (_e = /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(L, { display: "flex", flexDirection: "column", gap: 2, children: [
391
+ M,
392
392
  me,
393
393
  Ae
394
- ] }) }), e[95] = me, e[96] = Ae, e[97] = W, e[98] = _e) : _e = e[98], _e;
394
+ ] }) }), e[95] = me, e[96] = Ae, e[97] = M, e[98] = _e) : _e = e[98], _e;
395
395
  };
396
396
  function Sr(e, r) {
397
397
  return /* @__PURE__ */ t(L, { children: e }, r);
@@ -461,7 +461,7 @@ const xr = {
461
461
  let o;
462
462
  r[0] !== d || r[1] !== c ? (o = c.charAt(0).toUpperCase() || d, r[0] = d, r[1] = c, r[2] = o) : o = r[2];
463
463
  let f;
464
- r[3] !== o ? (f = /* @__PURE__ */ t(Ze, { sx: xr, children: o }), r[3] = o, r[4] = f) : f = r[4];
464
+ r[3] !== o ? (f = /* @__PURE__ */ t(Ke, { sx: xr, children: o }), r[3] = o, r[4] = f) : f = r[4];
465
465
  let g;
466
466
  r[5] !== m || r[6] !== c ? (g = m ? /* @__PURE__ */ s(ae, { direction: "row", alignItems: "center", spacing: 1, children: [
467
467
  /* @__PURE__ */ t(B, { variant: "h6", noWrap: !0, children: c }),
@@ -513,7 +513,7 @@ const xr = {
513
513
  mutateAsync: I
514
514
  } = bt(), {
515
515
  mutateAsync: P
516
- } = vt(), y = _(() => w?.groups ?? [], [w]), N = _(() => o?.groups ?? [], [o]), [U, F] = R([]), [T, C] = R(!1), [u, A] = R(), [b, M] = R(!1), j = yt(!1);
516
+ } = vt(), y = _(() => w?.groups ?? [], [w]), N = _(() => o?.groups ?? [], [o]), [U, F] = R([]), [T, C] = R(!1), [u, A] = R(), [b, W] = R(!1), j = yt(!1);
517
517
  $e(() => {
518
518
  j.current || F(N);
519
519
  }, [N]);
@@ -522,32 +522,32 @@ const xr = {
522
522
  return D.size !== U.length || U.some((k) => !D.has(k.id));
523
523
  }, [N, U]), Y = e ? q(he.children.org.children.settings.children.identities.children.users.path, {
524
524
  orgId: e
525
- }) : "#", W = String(a?.attributes?.username ?? r ?? ""), Z = async () => {
525
+ }) : "#", M = String(a?.attributes?.username ?? r ?? ""), K = async () => {
526
526
  if (!(!e || !r)) {
527
- A(void 0), M(!1), C(!0);
527
+ A(void 0), W(!1), C(!0);
528
528
  try {
529
- const D = new Set(N.map((G) => G.id)), k = new Set(U.map((G) => G.id)), te = U.filter((G) => !D.has(G.id)), O = N.filter((G) => !k.has(G.id));
530
- for (const G of te)
529
+ const D = new Set(N.map((E) => E.id)), k = new Set(U.map((E) => E.id)), te = U.filter((E) => !D.has(E.id)), O = N.filter((E) => !k.has(E.id));
530
+ for (const E of te)
531
531
  await I({
532
532
  params: {
533
533
  orgName: e,
534
- groupId: G.id
534
+ groupId: E.id
535
535
  },
536
536
  body: {
537
537
  userIds: [r]
538
538
  }
539
539
  });
540
- for (const G of O)
540
+ for (const E of O)
541
541
  await P({
542
542
  params: {
543
543
  orgName: e,
544
- groupId: G.id
544
+ groupId: E.id
545
545
  },
546
546
  body: {
547
547
  userIds: [r]
548
548
  }
549
549
  });
550
- M(!0), j.current = !1;
550
+ W(!0), j.current = !1;
551
551
  } catch {
552
552
  A("Failed to update group memberships. Please try again.");
553
553
  } finally {
@@ -564,7 +564,7 @@ const xr = {
564
564
  return /* @__PURE__ */ s(H, { children: [
565
565
  /* @__PURE__ */ t(Fe, { to: Y, label: "Users" }),
566
566
  /* @__PURE__ */ s(ae, { spacing: 3, children: [
567
- /* @__PURE__ */ t(dt, { fallback: "U", name: W, subtitle: a?.attributes?.email || void 0, id: r ?? "" }),
567
+ /* @__PURE__ */ t(dt, { fallback: "U", name: M, subtitle: a?.attributes?.email || void 0, id: r ?? "" }),
568
568
  u != null && /* @__PURE__ */ t(ne, { severity: "error", children: u }),
569
569
  b && /* @__PURE__ */ t(ne, { severity: "success", children: "User updated successfully." }),
570
570
  /* @__PURE__ */ s(S.Section, { children: [
@@ -572,8 +572,8 @@ const xr = {
572
572
  borderBottom: 1,
573
573
  borderColor: "divider"
574
574
  }, children: [
575
- /* @__PURE__ */ t(Ee, { label: "Groups", value: "groups" }),
576
- /* @__PURE__ */ t(Ee, { label: "Roles", value: "roles" })
575
+ /* @__PURE__ */ t(Ge, { label: "Groups", value: "groups" }),
576
+ /* @__PURE__ */ t(Ge, { label: "Roles", value: "roles" })
577
577
  ] }),
578
578
  c === "groups" && /* @__PURE__ */ s(H, { children: [
579
579
  /* @__PURE__ */ t(S.Header, { children: "Group Memberships" }),
@@ -584,7 +584,7 @@ const xr = {
584
584
  /* @__PURE__ */ t(S.ElementWrapper, { label: "Groups", name: "groups", children: /* @__PURE__ */ t(Oe, { id: "groups", multiple: !0, options: y, value: U, onChange: (D, k) => {
585
585
  j.current = !0, F(k);
586
586
  }, getOptionLabel: (D) => D.name, isOptionEqualToValue: (D, k) => D.id === k.id, renderTags: () => null, renderInput: (D) => /* @__PURE__ */ t(ce, { ...D, placeholder: "Search groups..." }), noOptionsText: "No groups found" }) }),
587
- U.length > 0 && /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, children: U.map((D) => /* @__PURE__ */ t(Je, { label: D.name, size: "small", onDelete: () => {
587
+ U.length > 0 && /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, children: U.map((D) => /* @__PURE__ */ t(Qe, { label: D.name, size: "small", onDelete: () => {
588
588
  j.current = !0, F((k) => k.filter((te) => te.id !== D.id));
589
589
  } }, D.id)) })
590
590
  ] })
@@ -594,12 +594,12 @@ const xr = {
594
594
  /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "Roles directly assigned to this user. To modify role assignments, use the Roles page." }),
595
595
  /* @__PURE__ */ t(L, { sx: {
596
596
  mt: 1
597
- }, children: $.length === 0 ? /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "No roles assigned to this user." }) : /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, children: $.map((D) => /* @__PURE__ */ t(Je, { label: D.name, size: "small" }, D.id)) }) })
597
+ }, children: $.length === 0 ? /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "No roles assigned to this user." }) : /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, children: $.map((D) => /* @__PURE__ */ t(Qe, { label: D.name, size: "small" }, D.id)) }) })
598
598
  ] })
599
599
  ] }),
600
600
  c === "groups" && V && /* @__PURE__ */ s(ae, { direction: "row", spacing: 1, children: [
601
601
  /* @__PURE__ */ t(X, { variant: "outlined", onClick: () => d(Y), disabled: T, children: "Cancel" }),
602
- /* @__PURE__ */ t(X, { variant: "contained", onClick: Z, disabled: T, children: T ? "Saving..." : "Save Changes" })
602
+ /* @__PURE__ */ t(X, { variant: "contained", onClick: K, disabled: T, children: T ? "Saving..." : "Save Changes" })
603
603
  ] })
604
604
  ] })
605
605
  ] });
@@ -664,9 +664,9 @@ const xr = {
664
664
  /* @__PURE__ */ t(n.Cell, { align: "center", width: "80px" })
665
665
  ] }) }),
666
666
  /* @__PURE__ */ s(n.Body, { children: [
667
- i && /* @__PURE__ */ t(lt, { rows: a, columns: 1 }),
667
+ i && /* @__PURE__ */ t(lt, { rows: Math.ceil(a / 2), columns: 1 }),
668
668
  !i && T.map((u) => /* @__PURE__ */ s(n.Row, { variant: "table", hover: !0, clickable: !0, onClick: () => r(F(u.id)), children: [
669
- /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ze, { sx: Nr, children: u.name.charAt(0).toUpperCase() || "R" }), primary: u.name, secondary: u.description ?? void 0 }) }),
669
+ /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ke, { sx: Nr, children: u.name.charAt(0).toUpperCase() || "R" }), primary: u.name, secondary: u.description ?? void 0 }) }),
670
670
  /* @__PURE__ */ t(n.Cell, { align: "center", children: /* @__PURE__ */ t(n.RowActions, { visibility: "hover", children: !u.isReadOnly && /* @__PURE__ */ t(De, { title: "Delete role", children: /* @__PURE__ */ t(ke, { size: "small", color: "error", onClick: (A) => {
671
671
  A.stopPropagation(), C(u);
672
672
  }, children: /* @__PURE__ */ t(we, { size: 16 }) }) }) }) })
@@ -690,14 +690,14 @@ const xr = {
690
690
  validateForm: m,
691
691
  clearErrors: o,
692
692
  setFieldError: f
693
- } = Ke(pr), {
693
+ } = Ze(pr), {
694
694
  checkDirty: g,
695
695
  resetDirty: i
696
- } = Qe(d), [w, p] = R({}), {
696
+ } = Je(d), [w, p] = R({}), {
697
697
  mutateAsync: I,
698
698
  isPending: P,
699
699
  error: y
700
- } = Wt(), N = e ? q(he.children.org.children.settings.children.identities.children.roles.path, {
700
+ } = Mt(), N = e ? q(he.children.org.children.settings.children.identities.children.roles.path, {
701
701
  orgId: e
702
702
  }) : "#", U = Ye((C, u) => {
703
703
  const A = {
@@ -760,14 +760,14 @@ const xr = {
760
760
  const r = Be(e), d = qe(e);
761
761
  return `${r} ${d}`;
762
762
  }
763
- }), Gr = () => {
763
+ }), Er = () => {
764
764
  const {
765
765
  orgId: e,
766
766
  roleId: r
767
767
  } = fe(), d = xe(), [c, l] = R("permissions"), [a, m] = R(!1), [o, f] = R(), [g, i] = R(!1), {
768
768
  data: w,
769
769
  isLoading: p
770
- } = Mt({
770
+ } = Wt({
771
771
  orgName: e,
772
772
  roleId: r ?? ""
773
773
  }), I = w?.isReadOnly ?? !1, {
@@ -796,32 +796,32 @@ const xr = {
796
796
  } = $t(), {
797
797
  mutateAsync: b
798
798
  } = Ht(), {
799
- mutateAsync: M
799
+ mutateAsync: W
800
800
  } = Xt(), {
801
801
  mutateAsync: j
802
- } = qt(), V = _(() => P?.users ?? [], [P]), Y = _(() => P?.groups ?? [], [P]), W = _(() => w?.permissions?.flatMap((h) => h.permissions) ?? [], [w]), Z = _(() => N?.users ?? [], [N]), ee = _(() => F?.groups ?? [], [F]), $ = _(() => C?.permissions ?? [], [C]), D = C?.resourceServerId ?? "", [k, te] = R([]), [O, G] = R(/* @__PURE__ */ new Set()), [re, J] = R([]), [ie, de] = R(/* @__PURE__ */ new Set()), [se, oe] = R([]), ue = yt(!1);
802
+ } = qt(), V = _(() => P?.users ?? [], [P]), Y = _(() => P?.groups ?? [], [P]), M = _(() => w?.permissions?.flatMap((h) => h.permissions) ?? [], [w]), K = _(() => N?.users ?? [], [N]), ee = _(() => F?.groups ?? [], [F]), $ = _(() => C?.permissions ?? [], [C]), D = C?.resourceServerId ?? "", [k, te] = R([]), [O, E] = R(/* @__PURE__ */ new Set()), [re, Q] = R([]), [ie, de] = R(/* @__PURE__ */ new Set()), [se, oe] = R([]), ue = yt(!1);
803
803
  $e(() => {
804
804
  if (!ue.current && $.length > 0) {
805
- const h = new Set(W);
805
+ const h = new Set(M);
806
806
  oe($.filter((v) => h.has(v.name)));
807
807
  }
808
- }, [W, $]);
808
+ }, [M, $]);
809
809
  const be = e ? q(he.children.org.children.settings.children.identities.children.roles.path, {
810
810
  orgId: e
811
- }) : "#", me = _(() => [...V.filter((v) => !O.has(v.id)), ...k], [V, k, O]), x = _(() => [...Y.filter((v) => !ie.has(v.id)), ...re], [Y, re, ie]), E = _(() => new Set(me.map((h) => h.id)), [me]), Q = _(() => new Set(x.map((h) => h.id)), [x]), ve = _(() => Z.filter((h) => !E.has(h.id)), [Z, E]), Re = _(() => ee.filter((h) => !Q.has(h.id)), [ee, Q]), Te = _(() => Dr($), [$]), pe = _(() => new Set(se.map((h) => h.name)), [se]), Pe = (h) => String(h.attributes?.username ?? h.id ?? ""), Ne = (h, v) => {
812
- v && (O.has(v.id) ? G((z) => {
811
+ }) : "#", me = _(() => [...V.filter((v) => !O.has(v.id)), ...k], [V, k, O]), x = _(() => [...Y.filter((v) => !ie.has(v.id)), ...re], [Y, re, ie]), G = _(() => new Set(me.map((h) => h.id)), [me]), J = _(() => new Set(x.map((h) => h.id)), [x]), ve = _(() => K.filter((h) => !G.has(h.id)), [K, G]), Re = _(() => ee.filter((h) => !J.has(h.id)), [ee, J]), Te = _(() => Dr($), [$]), pe = _(() => new Set(se.map((h) => h.name)), [se]), Pe = (h) => String(h.attributes?.username ?? h.id ?? ""), Ne = (h, v) => {
812
+ v && (O.has(v.id) ? E((z) => {
813
813
  const Ce = new Set(z);
814
814
  return Ce.delete(v.id), Ce;
815
815
  }) : te((z) => [...z, v]));
816
816
  }, Ae = (h) => {
817
- k.find((v) => v.id === h) ? te((v) => v.filter((z) => z.id !== h)) : G((v) => /* @__PURE__ */ new Set([...v, h]));
817
+ k.find((v) => v.id === h) ? te((v) => v.filter((z) => z.id !== h)) : E((v) => /* @__PURE__ */ new Set([...v, h]));
818
818
  }, _e = (h, v) => {
819
819
  v && (ie.has(v.id) ? de((z) => {
820
820
  const Ce = new Set(z);
821
821
  return Ce.delete(v.id), Ce;
822
- }) : J((z) => [...z, v]));
823
- }, K = (h) => {
824
- re.find((v) => v.id === h) ? J((v) => v.filter((z) => z.id !== h)) : de((v) => /* @__PURE__ */ new Set([...v, h]));
822
+ }) : Q((z) => [...z, v]));
823
+ }, Z = (h) => {
824
+ re.find((v) => v.id === h) ? Q((v) => v.filter((z) => z.id !== h)) : de((v) => /* @__PURE__ */ new Set([...v, h]));
825
825
  }, He = (h, v) => {
826
826
  ue.current = !0, oe(v);
827
827
  }, Xe = (h) => {
@@ -833,7 +833,7 @@ const xr = {
833
833
  const h = {
834
834
  orgName: e,
835
835
  roleId: r
836
- }, v = k.map((Ge) => Ge.id), z = [...O];
836
+ }, v = k.map((Ee) => Ee.id), z = [...O];
837
837
  v.length > 0 && await A({
838
838
  params: h,
839
839
  body: {
@@ -845,20 +845,20 @@ const xr = {
845
845
  userIds: z
846
846
  }
847
847
  });
848
- const Ce = re.map((Ge) => Ge.id), We = [...ie];
848
+ const Ce = re.map((Ee) => Ee.id), Me = [...ie];
849
849
  if (Ce.length > 0 && await A({
850
850
  params: h,
851
851
  body: {
852
852
  groupIds: Ce
853
853
  }
854
- }), We.length > 0 && await b({
854
+ }), Me.length > 0 && await b({
855
855
  params: h,
856
856
  body: {
857
- groupIds: We
857
+ groupIds: Me
858
858
  }
859
859
  }), ue.current && D && !I) {
860
- const Ge = new Set(W), ge = new Set(se.map((Me) => Me.name)), ze = [...ge].filter((Me) => !Ge.has(Me)), Ue = [...Ge].filter((Me) => !ge.has(Me));
861
- ze.length > 0 && await M({
860
+ const Ee = new Set(M), ge = new Set(se.map((We) => We.name)), ze = [...ge].filter((We) => !Ee.has(We)), Ue = [...Ee].filter((We) => !ge.has(We));
861
+ ze.length > 0 && await W({
862
862
  params: h,
863
863
  body: {
864
864
  resourceServerId: D,
@@ -872,7 +872,7 @@ const xr = {
872
872
  }
873
873
  });
874
874
  }
875
- i(!0), te([]), G(/* @__PURE__ */ new Set()), J([]), de(/* @__PURE__ */ new Set()), ue.current = !1;
875
+ i(!0), te([]), E(/* @__PURE__ */ new Set()), Q([]), de(/* @__PURE__ */ new Set()), ue.current = !1;
876
876
  } catch {
877
877
  f("Failed to update role. Please try again.");
878
878
  } finally {
@@ -881,16 +881,16 @@ const xr = {
881
881
  }
882
882
  }, St = p || y || U || T || u, wt = _(() => {
883
883
  if (I) return !1;
884
- const h = new Set(W);
884
+ const h = new Set(M);
885
885
  return h.size !== se.length || se.some((v) => !h.has(v.name));
886
- }, [I, W, se]) || k.length > 0 || O.size > 0 || re.length > 0 || ie.size > 0;
886
+ }, [I, M, se]) || k.length > 0 || O.size > 0 || re.length > 0 || ie.size > 0;
887
887
  return St ? /* @__PURE__ */ s(H, { children: [
888
888
  /* @__PURE__ */ t(Fe, { to: be, label: "Roles" }),
889
889
  /* @__PURE__ */ t(ct, { tabs: 3 })
890
890
  ] }) : /* @__PURE__ */ s(H, { children: [
891
891
  /* @__PURE__ */ t(Fe, { to: be, label: "Roles" }),
892
892
  /* @__PURE__ */ s(ae, { spacing: 3, children: [
893
- /* @__PURE__ */ t(dt, { fallback: "R", name: w?.name ?? "", subtitle: w?.description, id: r ?? "", badge: I ? /* @__PURE__ */ t(Je, { label: "Read-only", size: "small" }) : void 0 }),
893
+ /* @__PURE__ */ t(dt, { fallback: "R", name: w?.name ?? "", subtitle: w?.description, id: r ?? "", badge: I ? /* @__PURE__ */ t(Qe, { label: "Read-only", size: "small" }) : void 0 }),
894
894
  o != null && /* @__PURE__ */ t(ne, { severity: "error", children: o }),
895
895
  g && /* @__PURE__ */ t(ne, { severity: "success", children: "Role updated successfully." }),
896
896
  /* @__PURE__ */ s(S.Section, { children: [
@@ -898,9 +898,9 @@ const xr = {
898
898
  borderBottom: 1,
899
899
  borderColor: "divider"
900
900
  }, children: [
901
- /* @__PURE__ */ t(Ee, { label: "Permissions", value: "permissions" }),
902
- /* @__PURE__ */ t(Ee, { label: "Users", value: "users" }),
903
- /* @__PURE__ */ t(Ee, { label: "Groups", value: "groups" })
901
+ /* @__PURE__ */ t(Ge, { label: "Permissions", value: "permissions" }),
902
+ /* @__PURE__ */ t(Ge, { label: "Users", value: "users" }),
903
+ /* @__PURE__ */ t(Ge, { label: "Groups", value: "groups" })
904
904
  ] }),
905
905
  c === "permissions" && /* @__PURE__ */ s(H, { children: [
906
906
  /* @__PURE__ */ t(S.Header, { children: "Permissions" }),
@@ -909,7 +909,7 @@ const xr = {
909
909
  mt: 1
910
910
  }, children: [
911
911
  !I && /* @__PURE__ */ t(S.ElementWrapper, { label: "Add permissions", name: "addPermissions", children: /* @__PURE__ */ t(Oe, { id: "addPermissions", multiple: !0, disableCloseOnSelect: !0, options: $, value: se, onChange: He, getOptionLabel: (h) => qe(h), groupBy: (h) => Be(h), filterOptions: kr, isOptionEqualToValue: (h, v) => h.name === v.name, renderTags: () => null, renderGroup: (h) => {
912
- const v = $.filter((ge) => Be(ge) === h.group), z = v.every((ge) => pe.has(ge.name)), Ce = v.some((ge) => pe.has(ge.name)), We = (ge) => {
912
+ const v = $.filter((ge) => Be(ge) === h.group), z = v.every((ge) => pe.has(ge.name)), Ce = v.some((ge) => pe.has(ge.name)), Me = (ge) => {
913
913
  if (ge.stopPropagation(), ue.current = !0, z)
914
914
  oe((ze) => ze.filter((Ue) => Be(Ue) !== h.group));
915
915
  else {
@@ -928,11 +928,11 @@ const xr = {
928
928
  "&:hover": {
929
929
  bgcolor: "action.hover"
930
930
  }
931
- }, onClick: We, children: [
931
+ }, onClick: Me, children: [
932
932
  /* @__PURE__ */ t(ht, { checked: z, indeterminate: Ce && !z, size: "small", sx: {
933
933
  mr: 0.5,
934
934
  p: 0.5
935
- }, onClick: (ge) => ge.stopPropagation(), onChange: We }),
935
+ }, onClick: (ge) => ge.stopPropagation(), onChange: Me }),
936
936
  /* @__PURE__ */ t(B, { variant: "caption", fontWeight: 700, sx: {
937
937
  textTransform: "uppercase",
938
938
  letterSpacing: 0.5
@@ -962,7 +962,7 @@ const xr = {
962
962
  textTransform: "uppercase",
963
963
  letterSpacing: 0.5
964
964
  }, children: h }),
965
- /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, mt: 0.5, children: v.filter((z) => pe.has(z.name)).map((z) => /* @__PURE__ */ t(Je, { label: qe(z), size: "small", onDelete: I ? void 0 : () => Xe(z.name) }, z.name)) })
965
+ /* @__PURE__ */ t(ae, { direction: "row", flexWrap: "wrap", gap: 1, mt: 0.5, children: v.filter((z) => pe.has(z.name)).map((z) => /* @__PURE__ */ t(Qe, { label: qe(z), size: "small", onDelete: I ? void 0 : () => Xe(z.name) }, z.name)) })
966
966
  ] }, h)) })
967
967
  ] })
968
968
  ] }),
@@ -1002,7 +1002,7 @@ const xr = {
1002
1002
  /* @__PURE__ */ t(n.Body, { children: x.map((h) => /* @__PURE__ */ s(n.Row, { children: [
1003
1003
  /* @__PURE__ */ t(n.Cell, { children: h.name }),
1004
1004
  /* @__PURE__ */ t(n.Cell, { children: h.description ?? "-" }),
1005
- /* @__PURE__ */ t(n.Cell, { align: "right", children: /* @__PURE__ */ t(De, { title: "Remove from role", children: /* @__PURE__ */ t(ke, { size: "small", onClick: () => K(h.id), children: /* @__PURE__ */ t(we, { size: 16 }) }) }) })
1005
+ /* @__PURE__ */ t(n.Cell, { align: "right", children: /* @__PURE__ */ t(De, { title: "Remove from role", children: /* @__PURE__ */ t(ke, { size: "small", onClick: () => Z(h.id), children: /* @__PURE__ */ t(we, { size: 16 }) }) }) })
1006
1006
  ] }, h.id)) })
1007
1007
  ] }) })
1008
1008
  ] })
@@ -1013,7 +1013,7 @@ const xr = {
1013
1013
  ] })
1014
1014
  ] })
1015
1015
  ] });
1016
- }, Er = {
1016
+ }, Gr = {
1017
1017
  width: 28,
1018
1018
  height: 28,
1019
1019
  fontSize: 12
@@ -1074,9 +1074,9 @@ const xr = {
1074
1074
  /* @__PURE__ */ t(n.Cell, { align: "center", width: "80px" })
1075
1075
  ] }) }),
1076
1076
  /* @__PURE__ */ s(n.Body, { children: [
1077
- i && /* @__PURE__ */ t(lt, { rows: a, columns: 1 }),
1077
+ i && /* @__PURE__ */ t(lt, { rows: Math.ceil(a / 2), columns: 1 }),
1078
1078
  !i && T.map((u) => /* @__PURE__ */ s(n.Row, { variant: "table", hover: !0, clickable: !0, onClick: () => r(F(u.id)), children: [
1079
- /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ze, { sx: Er, children: u.name.charAt(0).toUpperCase() || "G" }), primary: u.name, secondary: u.description ?? void 0 }) }),
1079
+ /* @__PURE__ */ t(n.Cell, { children: /* @__PURE__ */ t(n.CellIcon, { icon: /* @__PURE__ */ t(Ke, { sx: Gr, children: u.name.charAt(0).toUpperCase() || "G" }), primary: u.name, secondary: u.description ?? void 0 }) }),
1080
1080
  /* @__PURE__ */ t(n.Cell, { align: "center", children: /* @__PURE__ */ t(n.RowActions, { visibility: "hover", children: /* @__PURE__ */ t(De, { title: "Delete group", children: /* @__PURE__ */ t(ke, { size: "small", color: "error", onClick: (A) => {
1081
1081
  A.stopPropagation(), C(u);
1082
1082
  }, children: /* @__PURE__ */ t(we, { size: 16 }) }) }) }) })
@@ -1100,14 +1100,14 @@ const xr = {
1100
1100
  validateForm: m,
1101
1101
  clearErrors: o,
1102
1102
  setFieldError: f
1103
- } = Ke(gr), {
1103
+ } = Ze(gr), {
1104
1104
  checkDirty: g,
1105
1105
  resetDirty: i
1106
- } = Qe(d), [w, p] = R({}), {
1106
+ } = Je(d), [w, p] = R({}), {
1107
1107
  mutateAsync: I,
1108
1108
  isPending: P,
1109
1109
  error: y
1110
- } = Jt(), N = e ? q(he.children.org.children.settings.children.identities.children.groups.path, {
1110
+ } = Qt(), N = e ? q(he.children.org.children.settings.children.identities.children.groups.path, {
1111
1111
  orgId: e
1112
1112
  }) : "#", U = Ye((C, u) => {
1113
1113
  const A = {
@@ -1162,13 +1162,13 @@ const xr = {
1162
1162
  } = fe(), d = xe(), [c, l] = R("users"), [a, m] = R(0), [o, f] = R(10), {
1163
1163
  data: g,
1164
1164
  isLoading: i
1165
- } = Kt({
1165
+ } = Zt({
1166
1166
  orgName: e,
1167
1167
  groupId: r ?? ""
1168
1168
  }), {
1169
1169
  data: w,
1170
1170
  isLoading: p
1171
- } = Qt({
1171
+ } = Jt({
1172
1172
  orgName: e,
1173
1173
  groupId: r ?? ""
1174
1174
  }, {
@@ -1177,7 +1177,7 @@ const xr = {
1177
1177
  }), {
1178
1178
  data: I,
1179
1179
  isLoading: P
1180
- } = Zt({
1180
+ } = Kt({
1181
1181
  orgName: e,
1182
1182
  groupId: r ?? ""
1183
1183
  }), {
@@ -1199,23 +1199,23 @@ const xr = {
1199
1199
  mutateAsync: C
1200
1200
  } = bt(), {
1201
1201
  mutateAsync: u
1202
- } = vt(), A = _(() => w?.users ?? [], [w]), b = _(() => new Set(I?.memberIds ?? []), [I]), M = _(() => y?.roles ?? [], [y]), j = _(() => F?.users ?? [], [F]), [V, Y] = R([]), [W, Z] = R(/* @__PURE__ */ new Set()), [ee, $] = R(!1), [D, k] = R(), [te, O] = R(!1), G = e ? q(he.children.org.children.settings.children.identities.children.groups.path, {
1202
+ } = vt(), A = _(() => w?.users ?? [], [w]), b = _(() => new Set(I?.memberIds ?? []), [I]), W = _(() => y?.roles ?? [], [y]), j = _(() => F?.users ?? [], [F]), [V, Y] = R([]), [M, K] = R(/* @__PURE__ */ new Set()), [ee, $] = R(!1), [D, k] = R(), [te, O] = R(!1), E = e ? q(he.children.org.children.settings.children.identities.children.groups.path, {
1203
1203
  orgId: e
1204
- }) : "#", re = w?.total ?? 0, J = _(() => A.filter((x) => !W.has(x.id)), [A, W]), ie = _(() => {
1205
- const x = /* @__PURE__ */ new Set([...[...b].filter((E) => !W.has(E)), ...V.map((E) => E.id)]);
1206
- return j.filter((E) => !x.has(E.id));
1207
- }, [j, b, V, W]), de = (x) => String(x.attributes?.username ?? x.id ?? ""), se = (x, E) => {
1208
- E && (W.has(E.id) ? Z((Q) => {
1209
- const ve = new Set(Q);
1210
- return ve.delete(E.id), ve;
1211
- }) : Y((Q) => [...Q, E]));
1204
+ }) : "#", re = w?.total ?? 0, Q = _(() => A.filter((x) => !M.has(x.id)), [A, M]), ie = _(() => {
1205
+ const x = /* @__PURE__ */ new Set([...[...b].filter((G) => !M.has(G)), ...V.map((G) => G.id)]);
1206
+ return j.filter((G) => !x.has(G.id));
1207
+ }, [j, b, V, M]), de = (x) => String(x.attributes?.username ?? x.id ?? ""), se = (x, G) => {
1208
+ G && (M.has(G.id) ? K((J) => {
1209
+ const ve = new Set(J);
1210
+ return ve.delete(G.id), ve;
1211
+ }) : Y((J) => [...J, G]));
1212
1212
  }, oe = (x) => {
1213
- V.find((E) => E.id === x) ? Y((E) => E.filter((Q) => Q.id !== x)) : Z((E) => /* @__PURE__ */ new Set([...E, x]));
1213
+ V.find((G) => G.id === x) ? Y((G) => G.filter((J) => J.id !== x)) : K((G) => /* @__PURE__ */ new Set([...G, x]));
1214
1214
  }, ue = async () => {
1215
1215
  if (!(!e || !r)) {
1216
1216
  k(void 0), O(!1), $(!0);
1217
1217
  try {
1218
- const x = V.filter((Q) => !b.has(Q.id)).map((Q) => Q.id), E = [...W];
1218
+ const x = V.filter((J) => !b.has(J.id)).map((J) => J.id), G = [...M];
1219
1219
  x.length > 0 && await C({
1220
1220
  params: {
1221
1221
  orgName: e,
@@ -1224,15 +1224,15 @@ const xr = {
1224
1224
  body: {
1225
1225
  userIds: x
1226
1226
  }
1227
- }), E.length > 0 && await u({
1227
+ }), G.length > 0 && await u({
1228
1228
  params: {
1229
1229
  orgName: e,
1230
1230
  groupId: r
1231
1231
  },
1232
1232
  body: {
1233
- userIds: E
1233
+ userIds: G
1234
1234
  }
1235
- }), O(!0), Y([]), Z(/* @__PURE__ */ new Set());
1235
+ }), O(!0), Y([]), K(/* @__PURE__ */ new Set());
1236
1236
  } catch {
1237
1237
  k("Failed to update group members. Please try again.");
1238
1238
  } finally {
@@ -1242,23 +1242,23 @@ const xr = {
1242
1242
  };
1243
1243
  if (i || p || P || T)
1244
1244
  return /* @__PURE__ */ s(H, { children: [
1245
- /* @__PURE__ */ t(Fe, { to: G, label: "Groups" }),
1245
+ /* @__PURE__ */ t(Fe, { to: E, label: "Groups" }),
1246
1246
  /* @__PURE__ */ t(ct, { tabs: 2 })
1247
1247
  ] });
1248
- const me = V.length > 0 || W.size > 0;
1248
+ const me = V.length > 0 || M.size > 0;
1249
1249
  return /* @__PURE__ */ s(H, { children: [
1250
- /* @__PURE__ */ t(Fe, { to: G, label: "Groups" }),
1250
+ /* @__PURE__ */ t(Fe, { to: E, label: "Groups" }),
1251
1251
  /* @__PURE__ */ s(ae, { spacing: 3, children: [
1252
1252
  /* @__PURE__ */ t(dt, { fallback: "G", name: g?.name ?? "", subtitle: g?.description, id: r ?? "" }),
1253
1253
  D != null && /* @__PURE__ */ t(ne, { severity: "error", children: D }),
1254
1254
  te && /* @__PURE__ */ t(ne, { severity: "success", children: "Group updated successfully." }),
1255
1255
  /* @__PURE__ */ s(S.Section, { children: [
1256
- /* @__PURE__ */ s(ot, { value: c, onChange: (x, E) => l(E), sx: {
1256
+ /* @__PURE__ */ s(ot, { value: c, onChange: (x, G) => l(G), sx: {
1257
1257
  borderBottom: 1,
1258
1258
  borderColor: "divider"
1259
1259
  }, children: [
1260
- /* @__PURE__ */ t(Ee, { label: "Users", value: "users" }),
1261
- /* @__PURE__ */ t(Ee, { label: "Roles", value: "roles" })
1260
+ /* @__PURE__ */ t(Ge, { label: "Users", value: "users" }),
1261
+ /* @__PURE__ */ t(Ge, { label: "Roles", value: "roles" })
1262
1262
  ] }),
1263
1263
  c === "users" && /* @__PURE__ */ s(H, { children: [
1264
1264
  /* @__PURE__ */ t(S.Header, { children: "Users" }),
@@ -1288,13 +1288,13 @@ const xr = {
1288
1288
  /* @__PURE__ */ t(n.Cell, { children: "User ID" }),
1289
1289
  /* @__PURE__ */ t(n.Cell, {})
1290
1290
  ] }) }),
1291
- /* @__PURE__ */ t(n.Body, { children: J.map((x) => /* @__PURE__ */ s(n.Row, { children: [
1291
+ /* @__PURE__ */ t(n.Body, { children: Q.map((x) => /* @__PURE__ */ s(n.Row, { children: [
1292
1292
  /* @__PURE__ */ t(n.Cell, { children: de(x) }),
1293
1293
  /* @__PURE__ */ t(n.Cell, { children: x.id }),
1294
1294
  /* @__PURE__ */ t(n.Cell, { align: "right", children: /* @__PURE__ */ t(De, { title: "Remove from group", children: /* @__PURE__ */ t(ke, { size: "small", onClick: () => oe(x.id), children: /* @__PURE__ */ t(we, { size: 16 }) }) }) })
1295
1295
  ] }, x.id)) })
1296
1296
  ] }),
1297
- /* @__PURE__ */ t(et, { component: "div", count: re, page: a, rowsPerPage: o, onPageChange: (x, E) => m(E), onRowsPerPageChange: (x) => {
1297
+ /* @__PURE__ */ t(et, { component: "div", count: re, page: a, rowsPerPage: o, onPageChange: (x, G) => m(G), onRowsPerPageChange: (x) => {
1298
1298
  f(parseInt(x.target.value, 10)), m(0);
1299
1299
  }, rowsPerPageOptions: [5, 10, 25, 50] })
1300
1300
  ] }) : null
@@ -1304,12 +1304,12 @@ const xr = {
1304
1304
  /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "Roles currently assigned to this group. Manage role assignments from the Roles page." }),
1305
1305
  /* @__PURE__ */ t(L, { sx: {
1306
1306
  mt: 1
1307
- }, children: N ? /* @__PURE__ */ t(ir, { size: 20 }) : U ? /* @__PURE__ */ t(B, { variant: "body2", color: "error", children: "Failed to load roles. Please try again." }) : M.length === 0 ? /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "No roles assigned to this group." }) : /* @__PURE__ */ t(n.Container, { children: /* @__PURE__ */ s(n, { children: [
1307
+ }, children: N ? /* @__PURE__ */ t(ir, { size: 20 }) : U ? /* @__PURE__ */ t(B, { variant: "body2", color: "error", children: "Failed to load roles. Please try again." }) : W.length === 0 ? /* @__PURE__ */ t(B, { variant: "body2", color: "text.secondary", children: "No roles assigned to this group." }) : /* @__PURE__ */ t(n.Container, { children: /* @__PURE__ */ s(n, { children: [
1308
1308
  /* @__PURE__ */ t(n.Head, { children: /* @__PURE__ */ s(n.Row, { children: [
1309
1309
  /* @__PURE__ */ t(n.Cell, { children: "Name" }),
1310
1310
  /* @__PURE__ */ t(n.Cell, { children: "Description" })
1311
1311
  ] }) }),
1312
- /* @__PURE__ */ t(n.Body, { children: M.map((x) => /* @__PURE__ */ s(n.Row, { children: [
1312
+ /* @__PURE__ */ t(n.Body, { children: W.map((x) => /* @__PURE__ */ s(n.Row, { children: [
1313
1313
  /* @__PURE__ */ t(n.Cell, { children: x.name }),
1314
1314
  /* @__PURE__ */ t(n.Cell, { children: x.description ?? "-" })
1315
1315
  ] }, x.id)) })
@@ -1317,7 +1317,7 @@ const xr = {
1317
1317
  ] })
1318
1318
  ] }),
1319
1319
  me && /* @__PURE__ */ s(ae, { direction: "row", spacing: 1, children: [
1320
- /* @__PURE__ */ t(X, { variant: "outlined", onClick: () => d(G), disabled: ee, children: "Cancel" }),
1320
+ /* @__PURE__ */ t(X, { variant: "outlined", onClick: () => d(E), disabled: ee, children: "Cancel" }),
1321
1321
  /* @__PURE__ */ t(X, { variant: "contained", onClick: ue, disabled: ee, children: ee ? "Saving..." : "Save Changes" })
1322
1322
  ] })
1323
1323
  ] })
@@ -1343,7 +1343,7 @@ const xr = {
1343
1343
  let g;
1344
1344
  e[8] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ t(le, { path: "roles/create", element: /* @__PURE__ */ t(Ur, {}) }), e[8] = g) : g = e[8];
1345
1345
  let i;
1346
- e[9] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ t(le, { path: "roles/:roleId", element: /* @__PURE__ */ t(Gr, {}) }), e[9] = i) : i = e[9];
1346
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ t(le, { path: "roles/:roleId", element: /* @__PURE__ */ t(Er, {}) }), e[9] = i) : i = e[9];
1347
1347
  let w;
1348
1348
  e[10] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ t(le, { path: "roles/*", element: /* @__PURE__ */ t(Ar, {}) }), e[10] = w) : w = e[10];
1349
1349
  let p;
@@ -1374,7 +1374,7 @@ const xr = {
1374
1374
  N
1375
1375
  ] }), e[18] = l, e[19] = N, e[20] = U) : U = e[20], U;
1376
1376
  }, Fr = he.children.org.children.settings;
1377
- function Wr() {
1377
+ function Mr() {
1378
1378
  const e = Ie(8), {
1379
1379
  userInfo: r
1380
1380
  } = tr();
@@ -1412,7 +1412,7 @@ function Wr() {
1412
1412
  }
1413
1413
  return d;
1414
1414
  }
1415
- const Mr = {
1415
+ const Wr = {
1416
1416
  minWidth: 36,
1417
1417
  color: "primary.main"
1418
1418
  }, Or = {
@@ -1429,7 +1429,7 @@ const Mr = {
1429
1429
  orgId: c
1430
1430
  } = fe(), {
1431
1431
  pathname: l
1432
- } = At(), a = Wr(), m = Fr.children.identities.children;
1432
+ } = At(), a = Mr(), m = Fr.children.identities.children;
1433
1433
  let o;
1434
1434
  if (r[0] !== d || r[1] !== a.groups || r[2] !== a.roles || r[3] !== a.users || r[4] !== c || r[5] !== l) {
1435
1435
  const f = [];
@@ -1502,7 +1502,7 @@ const Mr = {
1502
1502
  children: s(or, {
1503
1503
  selected: p,
1504
1504
  children: [t(lr, {
1505
- sx: p ? Mr : Or,
1505
+ sx: p ? Wr : Or,
1506
1506
  children: w.icon
1507
1507
  }), t(cr, {
1508
1508
  primary: w.label,