@argusoft/medplat-core 1.0.30 → 1.0.31

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 (156) hide show
  1. package/dist/{AccessRights-xrday-L1.js → AccessRights-DUgY6ewy.js} +151 -143
  2. package/dist/AccessRights-DUgY6ewy.js.map +1 -0
  3. package/dist/AddMenuConfiguration-c6ZKiN0i.js +8898 -0
  4. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +1 -0
  5. package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js → BrandsPage-DMw2vT0u-BVhvhc6J.js} +14 -14
  6. package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js.map → BrandsPage-DMw2vT0u-BVhvhc6J.js.map} +1 -1
  7. package/dist/{CategoriesPage-BsS5IQh3-B03lWRY5.js → CategoriesPage-D3ihx9Gi-CT58g0ry.js} +112 -105
  8. package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js.map +1 -0
  9. package/dist/{ChangePasswordModalCore-BPsJquTS.js → ChangePasswordModalCore-lQ9GamH1.js} +3 -3
  10. package/dist/{ChangePasswordModalCore-BPsJquTS.js.map → ChangePasswordModalCore-lQ9GamH1.js.map} +1 -1
  11. package/dist/ConditionConfig-BQBmBHaM.js +408 -0
  12. package/dist/ConditionConfig-BQBmBHaM.js.map +1 -0
  13. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js → DashboardPage-asr2XDRu-uOOlX9Vq.js} +29 -29
  14. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js.map → DashboardPage-asr2XDRu-uOOlX9Vq.js.map} +1 -1
  15. package/dist/EventConfig-BY2cgGyx.js +27 -0
  16. package/dist/{EventConfig-BmLemzX3.js.map → EventConfig-BY2cgGyx.js.map} +1 -1
  17. package/dist/EventConfigurations-CUPEN5BV.js +544 -0
  18. package/dist/EventConfigurations-CUPEN5BV.js.map +1 -0
  19. package/dist/EventConfigurations.css +1 -1
  20. package/dist/EventsExceptionModal-BX-ArkBE.js +188 -0
  21. package/dist/EventsExceptionModal-BX-ArkBE.js.map +1 -0
  22. package/dist/EventsUi-D6O9S7BK.js +258 -0
  23. package/dist/EventsUi-D6O9S7BK.js.map +1 -0
  24. package/dist/{FacilityPicker-BiZeupmP-CyPHmj6b.js → FacilityPicker-DYl_PDyt-Cbwo2tAY.js} +10 -10
  25. package/dist/{FacilityPicker-BiZeupmP-CyPHmj6b.js.map → FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map} +1 -1
  26. package/dist/{FeatureMenu-DYJmDt7q.js → FeatureMenu-CHsBbw3W.js} +9 -5
  27. package/dist/FeatureMenu-CHsBbw3W.js.map +1 -0
  28. package/dist/{FhirServerList-DuTwnngN.js → FhirServerList-iXBPkRVF.js} +11 -11
  29. package/dist/{FhirServerList-DuTwnngN.js.map → FhirServerList-iXBPkRVF.js.map} +1 -1
  30. package/dist/{GrantPermissionModal-BDN66Atn.js → GrantPermissionModal-D7iNZd0M.js} +54 -51
  31. package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
  32. package/dist/{ImmunizationConfigurationBase-Di1KO3oW.js → ImmunizationConfigurationBase-aUtx0JEe.js} +3440 -3060
  33. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +1 -0
  34. package/dist/{InventoryPage-C_AxSy7A-QLvlL4rE.js → InventoryPage-DOotGZrj-CoPjOJEI.js} +10 -10
  35. package/dist/{InventoryPage-C_AxSy7A-QLvlL4rE.js.map → InventoryPage-DOotGZrj-CoPjOJEI.js.map} +1 -1
  36. package/dist/ManageEventConfiguration-DqW3krT6.js +1216 -0
  37. package/dist/ManageEventConfiguration-DqW3krT6.js.map +1 -0
  38. package/dist/ManageEventConfiguration.css +1 -1
  39. package/dist/{ManageUser-DCFkUMV9.js → ManageUser-DZltBina.js} +134 -134
  40. package/dist/{ManageUser-DCFkUMV9.js.map → ManageUser-DZltBina.js.map} +1 -1
  41. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js → MemberProfileCard-D5CgkTdJ-D2NgDJl3.js} +25 -25
  42. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js.map → MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map} +1 -1
  43. package/dist/MobileAnalytics-BLOionG_.js +17301 -0
  44. package/dist/MobileAnalytics-BLOionG_.js.map +1 -0
  45. package/dist/MobileMenuManagement-68Wijb0X.js +220 -0
  46. package/dist/MobileMenuManagement-68Wijb0X.js.map +1 -0
  47. package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js +752 -0
  48. package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js.map +1 -0
  49. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +1812 -0
  50. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +1 -0
  51. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js → PaymentCreatePage-DfvSZ-kB-CckogYoe.js} +14 -14
  52. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map → PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map} +1 -1
  53. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js → PaymentsPage-DMNjYWAJ-ChO9IXmk.js} +24 -24
  54. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js.map → PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map} +1 -1
  55. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js → PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js} +2 -2
  56. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map → PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map} +1 -1
  57. package/dist/{PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js → PickupCreatePage-B4O_-vE5-DoOo9nJO.js} +64 -64
  58. package/dist/{PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map → PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map} +1 -1
  59. package/dist/{PickupsPage-Ctpghavs-CUp4uIZq.js → PickupsPage-D7zyioJB-bHKnARYw.js} +29 -29
  60. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +1 -0
  61. package/dist/{PmGuard-b10TGXEi-G3N0G_Wg.js → PmGuard-BZE-y4In-D_pUm5MP.js} +25 -25
  62. package/dist/{PmGuard-b10TGXEi-G3N0G_Wg.js.map → PmGuard-BZE-y4In-D_pUm5MP.js.map} +1 -1
  63. package/dist/{ProductEditPage-C1thoKHu-URQaZ6st.js → ProductEditPage-BVlVUCtD-BR-tJ5Wb.js} +475 -472
  64. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +1 -0
  65. package/dist/{ProductsPage-CupVmOD4-D45a_hf-.js → ProductsPage-DvNHIeZt-BoOOJJtk.js} +36 -35
  66. package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js.map +1 -0
  67. package/dist/{PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js → PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js} +214 -187
  68. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +1 -0
  69. package/dist/{PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js → PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js} +80 -80
  70. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +1 -0
  71. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js → PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js} +29 -29
  72. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map → PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map} +1 -1
  73. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js → PurchasesPage-DgL5T6BY-DePUuE9l.js} +31 -31
  74. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js.map → PurchasesPage-DgL5T6BY-DePUuE9l.js.map} +1 -1
  75. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js → SaleCreatePage-CZnIOydv-DKBw-qp7.js} +15 -15
  76. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map → SaleCreatePage-CZnIOydv-DKBw-qp7.js.map} +1 -1
  77. package/dist/{SalesPage-D18DCseD-BxktGDRQ.js → SalesPage-DPIRrC_O-M8rqnK7z.js} +62 -62
  78. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +1 -0
  79. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +676 -0
  80. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +1 -0
  81. package/dist/{ShowFlywayQuery-D1y_4A1u.js → ShowFlywayQuery-DIOUdYfG.js} +26 -19
  82. package/dist/{ShowFlywayQuery-D1y_4A1u.js.map → ShowFlywayQuery-DIOUdYfG.js.map} +1 -1
  83. package/dist/{StorageUnitsPage-7EqwuMOI-BwUso1Th.js → StorageUnitsPage-BDRkdCjW-UF64rf7q.js} +195 -188
  84. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +1 -0
  85. package/dist/{SubMenu-eEDhZUvh.js → SubMenu-BdMTYtC1.js} +5 -3
  86. package/dist/SubMenu-BdMTYtC1.js.map +1 -0
  87. package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js → TransactionsPage-CqWTMNU8-Df6eGFDW.js} +48 -48
  88. package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js.map → TransactionsPage-CqWTMNU8-Df6eGFDW.js.map} +1 -1
  89. package/dist/{TransferCreatePage-CuvoMrYH-DTTfHjz-.js → TransferCreatePage-DF7FZaTJ-CL79V3aR.js} +8 -8
  90. package/dist/{TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map → TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map} +1 -1
  91. package/dist/{TransfersPage-Cf701t8s-BBbN7cBf.js → TransfersPage-CGrRFaBF-cTwBUv0o.js} +69 -69
  92. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +1 -0
  93. package/dist/TypeConfiguration-JbRCN6GR.js +114 -0
  94. package/dist/TypeConfiguration-JbRCN6GR.js.map +1 -0
  95. package/dist/{UserList-DgPxsnj2.js → UserList-L41Xw0Q6.js} +2 -2
  96. package/dist/{UserList-DgPxsnj2.js.map → UserList-L41Xw0Q6.js.map} +1 -1
  97. package/dist/Users-CsJ08Kjm.js +40 -0
  98. package/dist/{Users-Bpc4Sazd.js.map → Users-CsJ08Kjm.js.map} +1 -1
  99. package/dist/{VialsPage-8oAc1yFv-Cl3FUXBJ.js → VialsPage-rvvXjgZG-Oqo1v6kQ.js} +35 -35
  100. package/dist/{VialsPage-8oAc1yFv-Cl3FUXBJ.js.map → VialsPage-rvvXjgZG-Oqo1v6kQ.js.map} +1 -1
  101. package/dist/{constants-ClZJY2x1-MkSWn6TZ.js → constants-DpXnLsAB-D6lN5cjK.js} +58 -47
  102. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +1 -0
  103. package/dist/{dashboardLayoutUtils-D1xCAxp3.js → dashboardLayoutUtils-CJivzaU1.js} +95 -92
  104. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +1 -0
  105. package/dist/index.css +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/index.lib-ETRQOzvE.js +894 -0
  108. package/dist/index.lib-ETRQOzvE.js.map +1 -0
  109. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +36 -0
  110. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +1 -0
  111. package/package.json +1 -1
  112. package/dist/AccessRights-xrday-L1.js.map +0 -1
  113. package/dist/AddMenuConfiguration-e5BVXhmw.js +0 -8547
  114. package/dist/AddMenuConfiguration-e5BVXhmw.js.map +0 -1
  115. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +0 -1
  116. package/dist/ConditionConfig-Ddz9halE.js +0 -395
  117. package/dist/ConditionConfig-Ddz9halE.js.map +0 -1
  118. package/dist/ConditionConfig.css +0 -1
  119. package/dist/EventConfig-BmLemzX3.js +0 -26
  120. package/dist/EventConfigurations-Bzh1qWXU.js +0 -450
  121. package/dist/EventConfigurations-Bzh1qWXU.js.map +0 -1
  122. package/dist/EventsExceptionModal-B2SRrnB1.js +0 -200
  123. package/dist/EventsExceptionModal-B2SRrnB1.js.map +0 -1
  124. package/dist/EventsSkeleton-BIcPks4T.js +0 -61
  125. package/dist/EventsSkeleton-BIcPks4T.js.map +0 -1
  126. package/dist/FeatureMenu-DYJmDt7q.js.map +0 -1
  127. package/dist/GrantPermissionModal-BDN66Atn.js.map +0 -1
  128. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +0 -1
  129. package/dist/ManageEventConfiguration-CoYcpjR9.js +0 -1085
  130. package/dist/ManageEventConfiguration-CoYcpjR9.js.map +0 -1
  131. package/dist/MobileAnalytics-pQoE8cG1.js +0 -16888
  132. package/dist/MobileAnalytics-pQoE8cG1.js.map +0 -1
  133. package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
  134. package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
  135. package/dist/MobileTypeEventConfigModal-BeveaX0C.js +0 -783
  136. package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +0 -1
  137. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js +0 -2046
  138. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +0 -1
  139. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +0 -1
  140. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +0 -1
  141. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +0 -1
  142. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +0 -1
  143. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +0 -1
  144. package/dist/SalesPage-D18DCseD-BxktGDRQ.js.map +0 -1
  145. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +0 -747
  146. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +0 -1
  147. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +0 -1
  148. package/dist/SubMenu-eEDhZUvh.js.map +0 -1
  149. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +0 -1
  150. package/dist/TypeConfiguration-3O6ABrK-.js +0 -117
  151. package/dist/TypeConfiguration-3O6ABrK-.js.map +0 -1
  152. package/dist/Users-Bpc4Sazd.js +0 -41
  153. package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +0 -1
  154. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
  155. package/dist/index.lib-Dn8PMkeD.js +0 -862
  156. package/dist/index.lib-Dn8PMkeD.js.map +0 -1
@@ -1,38 +1,38 @@
1
- import { jsxs as R, jsx as o, Fragment as gs } from "react/jsx-runtime";
2
- import { Box as A, Autocomplete as Is, TextField as Me, Button as xs, InputAdornment as Ue, IconButton as me, Typography as ne, Accordion as Ss, AccordionSummary as Ns, Chip as bs, Tooltip as pe, AccordionDetails as Cs, FormControlLabel as ks, Checkbox as vs, Menu as Os, MenuItem as Ds } from "@mui/material";
1
+ import { jsxs as T, jsx as o, Fragment as gs } from "react/jsx-runtime";
2
+ import { Box as A, Autocomplete as Is, TextField as ze, Button as xs, InputAdornment as Me, IconButton as pe, Typography as ne, Accordion as Ss, AccordionSummary as Ns, Chip as bs, Tooltip as me, AccordionDetails as Cs, FormControlLabel as vs, Checkbox as ks, Menu as Os, MenuItem as Ds } from "@mui/material";
3
3
  import x from "prop-types";
4
4
  import Js from "@/views/custom-components/CustomConfirmationModal";
5
5
  import As from "@/views/custom-components/DebouncedSearchInput";
6
- import { useState as c, useMemo as re, useEffect as ae, createElement as $e, useRef as ie, useCallback as Be, Suspense as Ps, lazy as je } from "react";
7
- import { a as V, d as _s, b as Ce, c as Ts, p as Rs, e as Es, f as Ls } from "./Features-Dne21RWu.js";
6
+ import { useState as c, useMemo as re, useEffect as ae, createElement as Ue, useRef as ie, useCallback as $e, Suspense as Ps, lazy as we } from "react";
7
+ import { a as V, d as _s, b as Ce, c as Rs, p as Ts, e as Es, f as Ls } from "./Features-Dne21RWu.js";
8
8
  import { execute as oe, getRoleList as Fs } from "@/common/services/GlobalApis.js";
9
9
  import "@/assets/scss/scrollBar.scss";
10
- import { useForm as we, Controller as zs } from "react-hook-form";
11
- import { showToast as v } from "@/common/toaster/toaster";
10
+ import { useForm as je, Controller as zs } from "react-hook-form";
11
+ import { showToast as k } from "@/common/toaster/toaster";
12
12
  import Ms from "@/hooks/useTrackEvent";
13
13
  import { useTranslateProvider as Us } from "@/common/languageTranslator/TranslationContext";
14
- import j from "@/common/fontAwesomeIcons/FontAwesomeIcons";
14
+ import w from "@/common/fontAwesomeIcons/FontAwesomeIcons";
15
15
  import { execute as $s } from "@/common/services/GlobalApis";
16
16
  import { alpha as Bs } from "@mui/material/styles";
17
- import Ws, { VirtualListbox as js } from "@/views/custom-components/CustomAutoComplete";
17
+ import Ws, { VirtualListbox as ws } from "@/views/custom-components/CustomAutoComplete";
18
18
  import Ge from "@/hooks/useCaching";
19
- import ke from "@/common/services/util/GeneralUtil";
20
- import { A as ws } from "./FeatureMenu-DYJmDt7q.js";
19
+ import Be from "@/common/services/util/GeneralUtil";
20
+ import { A as js } from "./FeatureMenu-CHsBbw3W.js";
21
21
  const We = 200;
22
22
  function He({
23
23
  translate: a,
24
24
  onSubmit: K,
25
- roleList: w,
25
+ roleList: j,
26
26
  featureData: O
27
27
  }) {
28
- const [P, X] = c(""), [U, G] = c(""), [L, k] = c([]), { control: y, handleSubmit: $, reset: H } = we({}), { getCachedData: T } = Ge(), F = re(() => {
28
+ const [P, X] = c(""), [U, G] = c(""), [L, v] = c([]), { control: y, handleSubmit: $, reset: H } = je({}), { getCachedData: R } = Ge(), F = re(() => {
29
29
  const d = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set();
30
30
  return (O || []).forEach((S) => {
31
31
  S != null && S.designationId && d.add(S.designationId), S != null && S.userId && _.add(S.userId);
32
32
  }), { roles: d, users: _ };
33
33
  }, [O]), ee = re(
34
- () => w.filter((d) => !F.roles.has(d == null ? void 0 : d.id)),
35
- [w, F]
34
+ () => j.filter((d) => !F.roles.has(d == null ? void 0 : d.id)),
35
+ [j, F]
36
36
  );
37
37
  ae(() => {
38
38
  const d = setTimeout(() => {
@@ -46,29 +46,29 @@ function He({
46
46
  }, []);
47
47
  const B = async (d, _ = O) => {
48
48
  try {
49
- const S = async (m) => {
49
+ const S = async (p) => {
50
50
  const { data: z } = await $s({
51
51
  code: "user_search_for_selectize",
52
- parameters: { searchString: m }
52
+ parameters: { searchString: p }
53
53
  });
54
54
  return z;
55
- }, g = d ? await S(d) : await T({
55
+ }, g = d ? await S(d) : await R({
56
56
  cacheKey: ["user_search_for_selectize", ""],
57
57
  fetchFn: () => S(""),
58
58
  staleTime: 3e5,
59
59
  cacheTime: 18e5
60
60
  }), b = _ === O ? F.users : new Set(
61
- (_ || []).map((m) => m == null ? void 0 : m.userId).filter(Boolean)
62
- ), I = ((g == null ? void 0 : g.result) || []).filter((m) => (m == null ? void 0 : m.id) && !b.has(m.id)).map((m) => ({
63
- ...m,
64
- displayName: `${m.firstName || ""} ${m.lastName || ""} (${m.userName || ""})`.trim()
61
+ (_ || []).map((p) => p == null ? void 0 : p.userId).filter(Boolean)
62
+ ), I = ((g == null ? void 0 : g.result) || []).filter((p) => (p == null ? void 0 : p.id) && !b.has(p.id)).map((p) => ({
63
+ ...p,
64
+ displayName: `${p.firstName || ""} ${p.lastName || ""} (${p.userName || ""})`.trim()
65
65
  }));
66
- k(I);
66
+ v(I);
67
67
  } catch (S) {
68
68
  console.error(S);
69
69
  }
70
70
  };
71
- return /* @__PURE__ */ R(
71
+ return /* @__PURE__ */ T(
72
72
  A,
73
73
  {
74
74
  sx: {
@@ -93,7 +93,7 @@ function He({
93
93
  options: L,
94
94
  size: "small",
95
95
  slots: {
96
- listbox: L.length > We ? js : void 0
96
+ listbox: L.length > We ? ws : void 0
97
97
  },
98
98
  getOptionLabel: (g) => g.displayName || "",
99
99
  isOptionEqualToValue: (g, b) => g.id === (b == null ? void 0 : b.id),
@@ -105,9 +105,9 @@ function He({
105
105
  I === "input" && X(b);
106
106
  },
107
107
  renderOption: (g, b) => {
108
- const I = b.displayName || "", m = P.trim(), z = I.toLowerCase().indexOf(m.toLowerCase());
108
+ const I = b.displayName || "", p = P.trim(), z = I.toLowerCase().indexOf(p.toLowerCase());
109
109
  if (z === -1)
110
- return /* @__PURE__ */ $e(
110
+ return /* @__PURE__ */ Ue(
111
111
  "li",
112
112
  {
113
113
  ...g,
@@ -116,15 +116,15 @@ function He({
116
116
  },
117
117
  I
118
118
  );
119
- const Z = I.substring(0, z), he = I.substring(z, z + m.length), se = I.substring(z + m.length);
120
- return /* @__PURE__ */ $e(
119
+ const Z = I.substring(0, z), he = I.substring(z, z + p.length), se = I.substring(z + p.length);
120
+ return /* @__PURE__ */ Ue(
121
121
  "li",
122
122
  {
123
123
  ...g,
124
124
  key: b.id,
125
125
  style: { lineHeight: 1.5, fontSize: "14px" }
126
126
  },
127
- /* @__PURE__ */ R("span", { children: [
127
+ /* @__PURE__ */ T("span", { children: [
128
128
  Z,
129
129
  /* @__PURE__ */ o(
130
130
  A,
@@ -143,7 +143,7 @@ function He({
143
143
  );
144
144
  },
145
145
  renderInput: (g) => /* @__PURE__ */ o(
146
- Me,
146
+ ze,
147
147
  {
148
148
  ...g,
149
149
  label: a("User"),
@@ -167,7 +167,7 @@ function He({
167
167
  getOptionLabel: (d) => d == null ? void 0 : d.name,
168
168
  dataTestId: "accessrights-select-role",
169
169
  renderInput: (d) => /* @__PURE__ */ o(
170
- Me,
170
+ ze,
171
171
  {
172
172
  ...d,
173
173
  label: a("Role"),
@@ -183,7 +183,7 @@ function He({
183
183
  variant: "contained",
184
184
  size: "small",
185
185
  "data-testid": "accessrights-add-button",
186
- startIcon: /* @__PURE__ */ o(j, { iconName: "faPlus" }),
186
+ startIcon: /* @__PURE__ */ o(w, { iconName: "faPlus" }),
187
187
  sx: { flexShrink: 0, alignSelf: { xs: "flex-end", md: "center" } },
188
188
  onClick: $((d) => {
189
189
  var _;
@@ -205,19 +205,19 @@ He.propTypes = {
205
205
  roleList: x.any,
206
206
  featureData: x.any
207
207
  };
208
- const Gs = je(() => import("./GrantPermissionModal-BDN66Atn.js")), Hs = je(() => import("./PermissionsModal-CCYkcKlC.js"));
208
+ const Gs = we(() => import("./GrantPermissionModal-D7iNZd0M.js")), Hs = we(() => import("./PermissionsModal-CCYkcKlC.js"));
209
209
  function Ke({ config: a, row: K }) {
210
210
  var L;
211
- const [w, O] = c(null), P = !!w, X = (k) => {
212
- k.stopPropagation(), O(k.currentTarget), typeof a.menuClick == "function" && a.menuClick(K);
213
- }, U = (k) => {
214
- k && k.stopPropagation(), O(null);
215
- }, G = (k) => (y) => {
216
- y.stopPropagation(), typeof k.onClick == "function" && k.onClick(K), O(null);
211
+ const [j, O] = c(null), P = !!j, X = (v) => {
212
+ v.stopPropagation(), O(v.currentTarget), typeof a.menuClick == "function" && a.menuClick(K);
213
+ }, U = (v) => {
214
+ v && v.stopPropagation(), O(null);
215
+ }, G = (v) => (y) => {
216
+ y.stopPropagation(), typeof v.onClick == "function" && v.onClick(K), O(null);
217
217
  };
218
- return /* @__PURE__ */ R(gs, { children: [
219
- /* @__PURE__ */ o(pe, { title: a.tooltip, children: /* @__PURE__ */ o(
220
- me,
218
+ return /* @__PURE__ */ T(gs, { children: [
219
+ /* @__PURE__ */ o(me, { title: a.tooltip, children: /* @__PURE__ */ o(
220
+ pe,
221
221
  {
222
222
  size: "small",
223
223
  "aria-label": a.tooltip,
@@ -229,12 +229,12 @@ function Ke({ config: a, row: K }) {
229
229
  /* @__PURE__ */ o(
230
230
  Os,
231
231
  {
232
- anchorEl: w,
232
+ anchorEl: j,
233
233
  open: P,
234
234
  onClose: U,
235
235
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
236
236
  transformOrigin: { vertical: "top", horizontal: "right" },
237
- children: (L = a.menuItems) == null ? void 0 : L.map((k, y) => /* @__PURE__ */ o(Ds, { onClick: G(k), children: k.label }, y))
237
+ children: (L = a.menuItems) == null ? void 0 : L.map((v, y) => /* @__PURE__ */ o(Ds, { onClick: G(v), children: v.label }, y))
238
238
  }
239
239
  )
240
240
  ] });
@@ -248,15 +248,19 @@ function Ks({
248
248
  // subMenuGroupName,
249
249
  subMenuFeatureVal: K,
250
250
  // selectedTab,
251
- parentLoading: w,
251
+ parentLoading: j,
252
252
  onNewAPIChange: O,
253
253
  rights: P
254
254
  }) {
255
- const X = ie(null), U = ie(!1), G = Ms(), L = ie(!ke.isTecho), { getCachedData: k } = Ge(), [y, $] = c([]), [H, T] = c([]), [F, ee] = c([]), [B, d] = c([]), [_, S] = c([]), [g, b] = c(""), [I, m] = c({}), [z, Z] = c(!1), [he, se] = c(!1), [le, Xe] = c(""), [N, Ze] = c(null), [qe, Qe] = c({}), [Ye, q] = c(!1), [Q, ve] = c(!1), [Ve, ce] = c(null), [E, es] = c([]), [ss, ye] = c(0), [de, Oe] = c(""), { translate: p } = Us(), [ts, ge] = c(""), [ns, Ie] = c([]), [te, ue] = c(null), fe = ke.hasCheckRights(
256
- P == null ? void 0 : P["update.manage.featurelist"]
257
- ), is = ke.hasCheckRights(
258
- P == null ? void 0 : P["delete.manage.featurelist"]
259
- ), De = re(() => {
255
+ const X = ie(null), U = ie(!1), G = Ms(), L = ie(!1), { getCachedData: v } = Ge(), [y, $] = c([]), [H, R] = c([]), [F, ee] = c([]), [B, d] = c([]), [_, S] = c([]), [g, b] = c(""), [I, p] = c({}), [z, Z] = c(!1), [he, se] = c(!1), [le, Xe] = c(""), [N, Ze] = c(null), [qe, Qe] = c({}), [Ye, q] = c(!1), [Q, ve] = c(!1), [Ve, ce] = c(null), [E, es] = c([]), [ss, ye] = c(0), [de, ke] = c(""), { translate: m } = Us(), [ts, ge] = c(""), [ns, Ie] = c([]), [te, ue] = c(null), fe = Be.hasCheckRights(
256
+ P == null ? void 0 : P["update.manage.featurelist"],
257
+ void 0,
258
+ !0
259
+ ), is = Be.hasCheckRights(
260
+ P == null ? void 0 : P["delete.manage.featurelist"],
261
+ void 0,
262
+ !0
263
+ ), Oe = re(() => {
260
264
  const e = /* @__PURE__ */ new Map();
261
265
  return (E || []).forEach((n) => e.set(String(n.id), n)), e;
262
266
  }, [E]), os = re(() => {
@@ -322,14 +326,14 @@ function Ks({
322
326
  roleId: parseInt(N == null ? void 0 : N.designationId),
323
327
  userId: parseInt(N == null ? void 0 : N.userId)
324
328
  }
325
- }), v({
329
+ }), k({
326
330
  type: "success",
327
331
  message: "Permission Deleted Successfully"
328
332
  });
329
333
  const { data: t } = await V(a);
330
334
  Y(t);
331
335
  } catch {
332
- v({
336
+ k({
333
337
  type: "error",
334
338
  message: "error occurred"
335
339
  });
@@ -337,11 +341,11 @@ function Ks({
337
341
  } else {
338
342
  await _s(le);
339
343
  let { data: i } = await Ce(a);
340
- (i == null ? void 0 : i.userMenuItemDtos.length) > 0 && (i = Se(i)), T(i.userMenuItemDtos);
344
+ (i == null ? void 0 : i.userMenuItemDtos.length) > 0 && (i = Se(i)), R(i.userMenuItemDtos);
341
345
  }
342
346
  Z(!1), q((i) => !i);
343
347
  } catch (i) {
344
- v({
348
+ k({
345
349
  type: "error",
346
350
  message: `Error Deleting data: ${(n = (e = i == null ? void 0 : i.response) == null ? void 0 : e.data) == null ? void 0 : n.message}`
347
351
  }), q((t) => !t), Z(!1);
@@ -353,7 +357,7 @@ function Ks({
353
357
  }), e.forEach((s) => {
354
358
  n[s.id] || t.push({ id: s.id, action: "revoke" });
355
359
  }), t;
356
- }, { handleSubmit: cs } = we({}), Je = async (e) => {
360
+ }, { handleSubmit: cs } = je({}), De = async (e) => {
357
361
  var n, i, t, s, r, D;
358
362
  try {
359
363
  if (Q) {
@@ -376,12 +380,12 @@ function Ks({
376
380
  roleId: parseInt(e == null ? void 0 : e.designationId),
377
381
  userId: parseInt(e == null ? void 0 : e.userId)
378
382
  }
379
- }), v({
383
+ }), k({
380
384
  type: "success",
381
385
  message: "Permission Revoked Successfully"
382
386
  });
383
387
  } catch {
384
- v({
388
+ k({
385
389
  type: "error",
386
390
  message: "Error in revoking permission"
387
391
  });
@@ -389,9 +393,9 @@ function Ks({
389
393
  const { data: u } = await V(a);
390
394
  Y(u);
391
395
  } else
392
- await Ts(e);
396
+ await Rs(e);
393
397
  } catch (l) {
394
- v({
398
+ k({
395
399
  type: "error",
396
400
  message: `Error Updating data: ${(D = (r = l == null ? void 0 : l.response) == null ? void 0 : r.data) == null ? void 0 : D.message}`
397
401
  });
@@ -402,15 +406,19 @@ function Ks({
402
406
  ...e,
403
407
  featureJson: JSON.parse(e == null ? void 0 : e.featureJson)
404
408
  }, e != null && e.checkAll) {
405
- const i = Object.keys(e == null ? void 0 : e.featureJson).filter((t) => (e == null ? void 0 : e.featureJson[t]) === !1).join(",");
409
+ const i = Object.keys(e == null ? void 0 : e.featureJson).filter(
410
+ (r) => (e == null ? void 0 : e.featureJson[r]) === !1
411
+ ), t = /^view\.report\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, s = i.flatMap(
412
+ (r) => t.test(r) ? [r, `${r}.candrilldown`] : [r]
413
+ ).join(",");
406
414
  await oe({
407
415
  code: "grant_permission_bulk",
408
416
  parameters: {
409
- permission_id_list: i,
417
+ permission_id_list: s,
410
418
  role_id: parseInt(e == null ? void 0 : e.designationId),
411
419
  user_id: parseInt(e == null ? void 0 : e.userId)
412
420
  }
413
- }), v({
421
+ }), k({
414
422
  type: "success",
415
423
  message: "Permission granted Successfully"
416
424
  });
@@ -420,17 +428,17 @@ function Ks({
420
428
  } catch (n) {
421
429
  console.error(n);
422
430
  }
423
- }, Ae = async (e) => {
431
+ }, Je = async (e) => {
424
432
  var n, i, t, s;
425
433
  if (!(e != null && e.roles || e != null && e.selectedRoles)) {
426
- v({
434
+ k({
427
435
  message: "Please select either user or role !!",
428
436
  type: "info"
429
437
  });
430
438
  return;
431
439
  }
432
440
  if (Q && y.length < 1) {
433
- v({
441
+ k({
434
442
  message: "Please add permissions first for this feature !!",
435
443
  type: "info"
436
444
  });
@@ -441,7 +449,7 @@ function Ks({
441
449
  (h) => r.includes(h == null ? void 0 : h.designationId)
442
450
  ) : !1;
443
451
  if (D || l)
444
- v({
452
+ k({
445
453
  message: "Selected User Already found please select another id",
446
454
  type: "warning"
447
455
  });
@@ -472,11 +480,11 @@ function Ks({
472
480
  const { data: M } = await V(a);
473
481
  Y(M);
474
482
  } else {
475
- await Rs(a, W);
483
+ await Ts(a, W);
476
484
  let { data: f } = await Ce(a);
477
485
  (f == null ? void 0 : f.userMenuItemDtos.length) > 0 && (f == null ? void 0 : f.userMenuItemDtos.length) > 0 && (f = Se(f)), b(f == null ? void 0 : f.featureJson);
478
486
  const M = xe(f);
479
- T(M);
487
+ R(M);
480
488
  const J = f.featureJson ? Object.keys(JSON.parse(f.featureJson)) : [];
481
489
  if (J.length > 0) {
482
490
  const { data: Ne } = await oe({
@@ -489,24 +497,24 @@ function Ks({
489
497
  $(Ne.result);
490
498
  } else
491
499
  $([]);
492
- v({
500
+ k({
493
501
  message: "menu item added successfully",
494
502
  type: "success"
495
503
  });
496
504
  }
497
- U.current = !0, m({});
505
+ U.current = !0, p({});
498
506
  }
499
507
  } catch (r) {
500
- console.error(r), v({
508
+ console.error(r), k({
501
509
  message: "cannot add menu item",
502
510
  type: "error"
503
511
  });
504
512
  }
505
- }, Pe = Be(
513
+ }, Ae = $e(
506
514
  (e) => {
507
515
  const n = (e || "").toLowerCase();
508
- if (Oe(n), !n) {
509
- T(F);
516
+ if (ke(n), !n) {
517
+ R(F);
510
518
  return;
511
519
  }
512
520
  const i = F == null ? void 0 : F.filter(
@@ -519,7 +527,7 @@ function Ks({
519
527
  searchTerm: n,
520
528
  results_count: i.length,
521
529
  search_type: "Page Search"
522
- }), T(i);
530
+ }), R(i);
523
531
  },
524
532
  [F, G]
525
533
  ), us = (e, n = {}) => {
@@ -527,14 +535,14 @@ function Ks({
527
535
  return Object.keys(e).forEach((t) => {
528
536
  Object.prototype.hasOwnProperty.call(n, t) ? i[t] = n[t] : i[t] = e[t];
529
537
  }), JSON.stringify(i);
530
- }, _e = (e, n) => {
538
+ }, Pe = (e, n) => {
531
539
  const i = new Set(n.map((s) => s.id)), t = {};
532
540
  return e.forEach((s) => {
533
541
  t[s.id] = i.has(s.id);
534
542
  }), JSON.stringify(t);
535
543
  }, Y = (e) => {
536
544
  e == null || e.userMenuItemDtos.forEach((t) => {
537
- t.id = (t == null ? void 0 : t.designationId) || (t == null ? void 0 : t.userId), t.featureJson = _e(
545
+ t.id = (t == null ? void 0 : t.designationId) || (t == null ? void 0 : t.userId), t.featureJson = Pe(
538
546
  e == null ? void 0 : e.permissions,
539
547
  t == null ? void 0 : t.permissions
540
548
  ), t.designationId ? (t.code = "Role", t.displayName = t.roleName) : (t.code = "User", t.displayName = t.fullName);
@@ -544,14 +552,14 @@ function Ks({
544
552
  ];
545
553
  $(n), es(e == null ? void 0 : e.permissions);
546
554
  const i = xe(e);
547
- T(i), ee(i);
555
+ R(i), ee(i);
548
556
  };
549
557
  ae(() => {
550
558
  (async () => {
551
559
  var n, i, t;
552
560
  try {
553
561
  if (a) {
554
- ue(null), Te(!1), q((u) => !u), Oe("");
562
+ ue(null), _e(!1), q((u) => !u), ke("");
555
563
  let s, r;
556
564
  if (K) {
557
565
  if (L.current)
@@ -570,11 +578,11 @@ function Ks({
570
578
  else {
571
579
  (s == null ? void 0 : s.userMenuItemDtos.length) > 0 && (s = Se(s)), b(s == null ? void 0 : s.featureJson);
572
580
  const u = xe(s);
573
- T(u), ee(u);
581
+ R(u), ee(u);
574
582
  }
575
583
  let D = _;
576
584
  if (!B || B.length === 0) {
577
- const u = await k({
585
+ const u = await v({
578
586
  cacheKey: ["roleList"],
579
587
  fetchFn: async () => (await Fs()).data,
580
588
  staleTime: 3e5,
@@ -610,30 +618,30 @@ function Ks({
610
618
  q((u) => !u);
611
619
  }
612
620
  } catch (s) {
613
- v({
621
+ k({
614
622
  type: "error",
615
623
  message: `Error loading initial data: ${(t = (i = s == null ? void 0 : s.response) == null ? void 0 : i.data) == null ? void 0 : t.message}`
616
624
  }), q((r) => !r);
617
625
  }
618
626
  })();
619
627
  }, [a, O]);
620
- const fs = Be(
621
- (e) => De.get(String(e)) || null,
622
- [De]
623
- ), ms = re(
628
+ const fs = $e(
629
+ (e) => Oe.get(String(e)) || null,
630
+ [Oe]
631
+ ), ps = re(
624
632
  () => rs(),
625
633
  [E]
626
- ), [ps, Te] = c(!1), hs = (e) => async (n, i) => {
634
+ ), [ms, _e] = c(!1), hs = (e) => async (n, i) => {
627
635
  const t = `panel${e == null ? void 0 : e.id}`;
628
- if (Te(i ? t : !1), i && Q && e && !e._permissionsLoaded && !L.current)
636
+ if (_e(i ? t : !1), i && Q && e && !e._permissionsLoaded && !L.current)
629
637
  try {
630
638
  const { data: s } = await Ls(a, {
631
639
  userId: e.userId,
632
640
  roleId: e.designationId
633
641
  });
634
- e.permissions = s, e.featureJson = _e(E, s), e._permissionsLoaded = !0, T((r) => [...r]);
642
+ e.permissions = s, e.featureJson = Pe(E, s), e._permissionsLoaded = !0, R((r) => [...r]);
635
643
  } catch (s) {
636
- console.error(s), v({ type: "error", message: "Error loading permissions for row" });
644
+ console.error(s), k({ type: "error", message: "Error loading permissions for row" });
637
645
  }
638
646
  }, Re = ({
639
647
  row: e,
@@ -644,12 +652,12 @@ function Ks({
644
652
  withModal: r
645
653
  }) => {
646
654
  var M;
647
- const D = n[i] || !1, l = fs(t), u = (((M = l == null ? void 0 : l.child) == null ? void 0 : M.length) || 0) > 0, h = i === ms, W = !fe || h, C = (te == null ? void 0 : te.id) === (l == null ? void 0 : l.id), f = /* @__PURE__ */ o(
648
- ks,
655
+ const D = n[i] || !1, l = fs(t), u = (((M = l == null ? void 0 : l.child) == null ? void 0 : M.length) || 0) > 0, h = i === ps, W = !fe || h, C = (te == null ? void 0 : te.id) === (l == null ? void 0 : l.id), f = /* @__PURE__ */ o(
656
+ vs,
649
657
  {
650
658
  sx: { mr: 0, minWidth: 0, flex: 1 },
651
659
  control: /* @__PURE__ */ o(
652
- vs,
660
+ ks,
653
661
  {
654
662
  size: "small",
655
663
  disabled: W,
@@ -660,14 +668,14 @@ function Ks({
660
668
  ...n,
661
669
  [i]: !D
662
670
  };
663
- T(
671
+ R(
664
672
  (Ne) => Ne.map(
665
673
  (be) => be.id === e.id ? {
666
674
  ...be,
667
675
  featureJson: JSON.stringify(J)
668
676
  } : be
669
677
  )
670
- ), Je({
678
+ ), De({
671
679
  ...e,
672
680
  featureJson: JSON.stringify(J),
673
681
  code: e.designationId ? "Role" : "User",
@@ -680,30 +688,30 @@ function Ks({
680
688
  label: /* @__PURE__ */ o(ne, { variant: "body2", children: l ? l.name : t })
681
689
  }
682
690
  );
683
- return /* @__PURE__ */ R(
691
+ return /* @__PURE__ */ T(
684
692
  A,
685
693
  {
686
694
  sx: { display: "flex", alignItems: "center", gap: 0.5, minWidth: 0 },
687
695
  children: [
688
696
  h && fe ? /* @__PURE__ */ o(
689
- pe,
697
+ me,
690
698
  {
691
- title: p(
699
+ title: m(
692
700
  "This is the base right for the sub menu and cannot be changed here."
693
701
  ),
694
702
  children: /* @__PURE__ */ o("span", { style: { display: "flex", flex: 1, minWidth: 0 }, children: f })
695
703
  }
696
704
  ) : f,
697
705
  u && /* @__PURE__ */ o(
698
- pe,
706
+ me,
699
707
  {
700
- title: p(C ? "Close Permissions" : "View Permissions"),
708
+ title: m(C ? "Close Permissions" : "View Permissions"),
701
709
  children: /* @__PURE__ */ o(
702
- me,
710
+ pe,
703
711
  {
704
712
  size: "small",
705
713
  color: "primary",
706
- "aria-label": p(C ? "Close Permissions" : "View Permissions"),
714
+ "aria-label": m(C ? "Close Permissions" : "View Permissions"),
707
715
  onClick: () => {
708
716
  if (C) {
709
717
  ue(null), r && (se(!1), ge(""), Ie([]));
@@ -712,7 +720,7 @@ function Ks({
712
720
  r && (ge(i), Ie(n), se(!0)), ue(l);
713
721
  },
714
722
  children: /* @__PURE__ */ o(
715
- j,
723
+ w,
716
724
  {
717
725
  iconName: C ? "faEyeSlash" : "faEye",
718
726
  size: "sm"
@@ -726,24 +734,24 @@ function Ks({
726
734
  },
727
735
  `featureName-${s}`
728
736
  );
729
- }, ys = y.length > 0 || Object.keys(JSON.parse(g || "{}")).length > 0, Ee = !!(he && te), Le = ss === 1, Fe = ie(!1), ze = ie(!1);
730
- return Ee && (Fe.current = !0), Le && (ze.current = !0), /* @__PURE__ */ o(ws, { isLoading: Ye || w, children: /* @__PURE__ */ R(A, { sx: { width: "100%" }, children: [
737
+ }, ys = y.length > 0 || Object.keys(JSON.parse(g || "{}")).length > 0, Te = !!(he && te), Ee = ss === 1, Le = ie(!1), Fe = ie(!1);
738
+ return Te && (Le.current = !0), Ee && (Fe.current = !0), /* @__PURE__ */ o(js, { isLoading: Ye || j, children: /* @__PURE__ */ T(A, { sx: { width: "100%" }, children: [
731
739
  /* @__PURE__ */ o(
732
740
  Js,
733
741
  {
734
742
  description: N != null && N.displayName ? `Remove all access to this sub menu for ${N.code === "Role" ? "the role" : ""} ${N.displayName}? Every right listed below will be revoked.` : "Remove all access to this sub menu? Every right listed below will be revoked.",
735
- title: p("Remove access"),
743
+ title: m("Remove access"),
736
744
  open: z && le === (N == null ? void 0 : N.id),
737
745
  handleClick: as,
738
746
  handleClose: () => Z((e) => !e),
739
747
  dataTestId: "accessrights-delete-modal"
740
748
  }
741
749
  ),
742
- /* @__PURE__ */ R(Ps, { fallback: null, children: [
743
- Fe.current && /* @__PURE__ */ o(
750
+ /* @__PURE__ */ T(Ps, { fallback: null, children: [
751
+ Le.current && /* @__PURE__ */ o(
744
752
  Hs,
745
753
  {
746
- isOpen: Ee,
754
+ isOpen: Te,
747
755
  onClose: () => {
748
756
  se((e) => !e), ue(null), ge(""), Ie([]);
749
757
  },
@@ -752,10 +760,10 @@ function Ks({
752
760
  permissions: te
753
761
  }
754
762
  ),
755
- ze.current && /* @__PURE__ */ o(
763
+ Fe.current && /* @__PURE__ */ o(
756
764
  Gs,
757
765
  {
758
- isOpen: Le,
766
+ isOpen: Ee,
759
767
  onClose: () => ye(0),
760
768
  pendingGrant: Ve,
761
769
  subMenuId: a,
@@ -763,7 +771,7 @@ function Ks({
763
771
  }
764
772
  )
765
773
  ] }),
766
- /* @__PURE__ */ o("form", { ref: X, onSubmit: cs(Ae), children: /* @__PURE__ */ R(
774
+ /* @__PURE__ */ o("form", { ref: X, onSubmit: cs(Je), children: /* @__PURE__ */ T(
767
775
  A,
768
776
  {
769
777
  sx: {
@@ -781,25 +789,25 @@ function Ks({
781
789
  As,
782
790
  {
783
791
  value: de,
784
- onChange: Pe,
785
- placeholder: p("Search roles and users"),
792
+ onChange: Ae,
793
+ placeholder: m("Search roles and users"),
786
794
  autoFocus: !1,
787
795
  "data-testid": "access-rights-textfield-search",
788
796
  sx: { width: { xs: "100%", lg: 240 }, flexShrink: 0 },
789
797
  slotProps: {
790
798
  htmlInput: {
791
- "aria-label": p("Search roles and users")
799
+ "aria-label": m("Search roles and users")
792
800
  }
793
801
  },
794
802
  inputProps: {
795
- startAdornment: /* @__PURE__ */ o(Ue, { position: "start", children: /* @__PURE__ */ o(A, { sx: { color: "text.disabled", display: "flex" }, children: /* @__PURE__ */ o(j, { iconName: "faMagnifyingGlass", size: "sm" }) }) }),
796
- endAdornment: de ? /* @__PURE__ */ o(Ue, { position: "end", children: /* @__PURE__ */ o(
797
- me,
803
+ startAdornment: /* @__PURE__ */ o(Me, { position: "start", children: /* @__PURE__ */ o(A, { sx: { color: "text.disabled", display: "flex" }, children: /* @__PURE__ */ o(w, { iconName: "faMagnifyingGlass", size: "sm" }) }) }),
804
+ endAdornment: de ? /* @__PURE__ */ o(Me, { position: "end", children: /* @__PURE__ */ o(
805
+ pe,
798
806
  {
799
807
  size: "small",
800
- "aria-label": p("Clear search"),
801
- onClick: () => Pe(""),
802
- children: /* @__PURE__ */ o(j, { iconName: "faXmark", size: "sm" })
808
+ "aria-label": m("Clear search"),
809
+ onClick: () => Ae(""),
810
+ children: /* @__PURE__ */ o(w, { iconName: "faXmark", size: "sm" })
803
811
  }
804
812
  ) }) : null
805
813
  }
@@ -808,8 +816,8 @@ function Ks({
808
816
  fe && /* @__PURE__ */ o(
809
817
  He,
810
818
  {
811
- translate: p,
812
- onSubmit: Ae,
819
+ translate: m,
820
+ onSubmit: Je,
813
821
  roleList: B,
814
822
  featureData: H
815
823
  }
@@ -817,7 +825,7 @@ function Ks({
817
825
  ]
818
826
  }
819
827
  ) }),
820
- H.length === 0 ? /* @__PURE__ */ R(
828
+ H.length === 0 ? /* @__PURE__ */ T(
821
829
  A,
822
830
  {
823
831
  "data-testid": "accessrights-empty-state",
@@ -832,22 +840,22 @@ function Ks({
832
840
  py: 6
833
841
  },
834
842
  children: [
835
- /* @__PURE__ */ o(A, { sx: { color: "text.disabled" }, children: /* @__PURE__ */ o(j, { iconName: "faUserShield", size: "2x" }) }),
836
- /* @__PURE__ */ o(ne, { variant: "subtitle1", sx: { fontWeight: 700 }, children: p(de ? "No roles or users match your search" : "No access granted yet") }),
837
- /* @__PURE__ */ o(ne, { variant: "body2", color: "text.secondary", children: p(de ? "Clear the search to see everyone with access." : "Pick a user or a role above and select Add to grant access to this sub menu.") })
843
+ /* @__PURE__ */ o(A, { sx: { color: "text.disabled" }, children: /* @__PURE__ */ o(w, { iconName: "faUserShield", size: "2x" }) }),
844
+ /* @__PURE__ */ o(ne, { variant: "subtitle1", sx: { fontWeight: 700 }, children: m(de ? "No roles or users match your search" : "No access granted yet") }),
845
+ /* @__PURE__ */ o(ne, { variant: "body2", color: "text.secondary", children: m(de ? "Clear the search to see everyone with access." : "Pick a user or a role above and select Add to grant access to this sub menu.") })
838
846
  ]
839
847
  }
840
- ) : /* @__PURE__ */ o(A, { children: H.map((e) => /* @__PURE__ */ R(
848
+ ) : /* @__PURE__ */ o(A, { children: H.map((e) => /* @__PURE__ */ T(
841
849
  Ss,
842
850
  {
843
- expanded: ps === `panel${e == null ? void 0 : e.id}`,
851
+ expanded: ms === `panel${e == null ? void 0 : e.id}`,
844
852
  onChange: hs(e),
845
853
  slotProps: { transition: { unmountOnExit: !0 } },
846
854
  children: [
847
- /* @__PURE__ */ R(
855
+ /* @__PURE__ */ T(
848
856
  Ns,
849
857
  {
850
- expandIcon: /* @__PURE__ */ o(j, { iconName: "faAngleDown" }),
858
+ expandIcon: /* @__PURE__ */ o(w, { iconName: "faAngleDown" }),
851
859
  "aria-controls": `accessrights-panel-${e == null ? void 0 : e.id}-content`,
852
860
  id: `accessrights-panel-${e == null ? void 0 : e.id}-header`,
853
861
  sx: {
@@ -862,7 +870,7 @@ function Ks({
862
870
  bs,
863
871
  {
864
872
  size: "small",
865
- label: p(e.code),
873
+ label: m(e.code),
866
874
  color: e.code === "Role" ? "primary" : "default",
867
875
  variant: "outlined"
868
876
  }
@@ -876,7 +884,7 @@ function Ks({
876
884
  children: e.displayName
877
885
  }
878
886
  ),
879
- /* @__PURE__ */ R(
887
+ /* @__PURE__ */ T(
880
888
  A,
881
889
  {
882
890
  sx: {
@@ -887,25 +895,25 @@ function Ks({
887
895
  gap: 0.5
888
896
  },
889
897
  children: [
890
- is && /* @__PURE__ */ o(pe, { title: p("Remove access"), children: /* @__PURE__ */ o(
891
- me,
898
+ is && /* @__PURE__ */ o(me, { title: m("Remove access"), children: /* @__PURE__ */ o(
899
+ pe,
892
900
  {
893
901
  size: "small",
894
902
  color: "error",
895
- "aria-label": `${p("Remove access")}: ${e.displayName}`,
903
+ "aria-label": `${m("Remove access")}: ${e.displayName}`,
896
904
  "data-testid": "accessrights-delete-icon",
897
905
  onClick: (n) => {
898
906
  n.stopPropagation(), n.preventDefault(), Z(!0), Xe(e.id), Ze(e);
899
907
  },
900
- children: /* @__PURE__ */ o(j, { iconName: "faTrash", size: "sm" })
908
+ children: /* @__PURE__ */ o(w, { iconName: "faTrash", size: "sm" })
901
909
  }
902
910
  ) }),
903
911
  fe && /* @__PURE__ */ o(
904
912
  Ke,
905
913
  {
906
914
  config: {
907
- tooltip: p("Bulk actions"),
908
- icon: /* @__PURE__ */ o(j, { iconName: "faPen", size: "sm" }),
915
+ tooltip: m("Bulk actions"),
916
+ icon: /* @__PURE__ */ o(w, { iconName: "faPen", size: "sm" }),
909
917
  dataTestId: "accessrights-edit-icon",
910
918
  menuClick: (n) => {
911
919
  Qe(() => ({
@@ -930,14 +938,14 @@ function Ks({
930
938
  (s, { feature_name: r }) => (s[r] = !0, s),
931
939
  {}
932
940
  ) : Object.keys(i).reduce((s, r) => (s[r] = !0, s), {});
933
- T(
941
+ R(
934
942
  (s) => s.map(
935
943
  (r) => r.id === n.id ? {
936
944
  ...r,
937
945
  featureJson: JSON.stringify(t)
938
946
  } : r
939
947
  )
940
- ), Je({
948
+ ), De({
941
949
  ...qe,
942
950
  featureJson: JSON.stringify(t)
943
951
  });
@@ -997,7 +1005,7 @@ function Ks({
997
1005
  variant: "body2",
998
1006
  color: "text.secondary",
999
1007
  sx: { fontStyle: "italic", px: 1, py: 0.5 },
1000
- children: p("No rights configured for this sub menu yet")
1008
+ children: m("No rights configured for this sub menu yet")
1001
1009
  }
1002
1010
  ) })
1003
1011
  ]
@@ -1020,4 +1028,4 @@ Ks.propTypes = {
1020
1028
  export {
1021
1029
  Ks as default
1022
1030
  };
1023
- //# sourceMappingURL=AccessRights-xrday-L1.js.map
1031
+ //# sourceMappingURL=AccessRights-DUgY6ewy.js.map