@argusoft/medplat-core 1.0.31 → 1.0.33

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 (218) hide show
  1. package/dist/AccessRights-BC43Jhml.js +1093 -0
  2. package/dist/AccessRights-BC43Jhml.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-CYT80CMH.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-CYT80CMH.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-BRAukJB1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-BRAukJB1.js.map} +1 -1
  12. package/dist/ChangePasswordModalCore-rypTxA2O.js +238 -0
  13. package/dist/ChangePasswordModalCore-rypTxA2O.js.map +1 -0
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-DX-TzGOH.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-DX-TzGOH.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js.map +1 -0
  28. package/dist/FaqList-CeDEuhU_.js +237 -0
  29. package/dist/FaqList-CeDEuhU_.js.map +1 -0
  30. package/dist/FaqSkeletons-hLCEcRr-.js +19 -0
  31. package/dist/FaqSkeletons-hLCEcRr-.js.map +1 -0
  32. package/dist/FaqView-sDzBVyXV.js +617 -0
  33. package/dist/FaqView-sDzBVyXV.js.map +1 -0
  34. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-CaI-ZhSZ.js} +2 -2
  35. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-CaI-ZhSZ.js.map} +1 -1
  36. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  37. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  38. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  39. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  40. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  41. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  42. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-Clkk0-n6.js} +2638 -2577
  43. package/dist/ImmunizationConfigurationBase-Clkk0-n6.js.map +1 -0
  44. package/dist/InventoryPage-JadYMCzU-CWcCauMI.js +1017 -0
  45. package/dist/InventoryPage-JadYMCzU-CWcCauMI.js.map +1 -0
  46. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  47. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  48. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  49. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  50. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  51. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  52. package/dist/ManageFaq-4cT6bntx.js +1583 -0
  53. package/dist/ManageFaq-4cT6bntx.js.map +1 -0
  54. package/dist/ManageFaq.css +1 -0
  55. package/dist/ManageRole-CyfpySt9.js +981 -0
  56. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  57. package/dist/{ManageUser-DZltBina.js → ManageUser-DchUMAyC.js} +172 -172
  58. package/dist/{ManageUser-DZltBina.js.map → ManageUser-DchUMAyC.js.map} +1 -1
  59. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-CQi_zu6x.js} +37 -37
  60. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-CQi_zu6x.js.map} +1 -1
  61. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  62. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  63. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  64. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  65. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  66. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  67. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  68. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  69. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  70. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  71. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-_98S21Sa.js} +56 -56
  72. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-_98S21Sa.js.map} +1 -1
  73. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-ChCXEyck.js} +38 -38
  74. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-ChCXEyck.js.map} +1 -1
  75. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  76. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  77. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js} +2 -2
  78. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js.map} +1 -1
  79. package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js +801 -0
  80. package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js.map +1 -0
  81. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-KehDMebm.js} +122 -122
  82. package/dist/PickupsPage-BWblMlic-KehDMebm.js.map +1 -0
  83. package/dist/PmGuard-BvUUbU80-DJipZoSg.js +641 -0
  84. package/dist/PmGuard-BvUUbU80-DJipZoSg.js.map +1 -0
  85. package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js +1523 -0
  86. package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js.map +1 -0
  87. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-D3GnWz34.js} +29 -29
  88. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-D3GnWz34.js.map} +1 -1
  89. package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js +724 -0
  90. package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js.map +1 -0
  91. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js} +446 -436
  92. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js.map +1 -0
  93. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js} +55 -55
  94. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js.map} +1 -1
  95. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DxBRFRDy.js} +61 -61
  96. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DxBRFRDy.js.map} +1 -1
  97. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  98. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  99. package/dist/Roles-BoNGJhtR.js +19 -0
  100. package/dist/Roles-BoNGJhtR.js.map +1 -0
  101. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-aEGmvJQq.js} +33 -33
  102. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-aEGmvJQq.js.map} +1 -1
  103. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-CvOr82vo.js} +34 -34
  104. package/dist/SalesPage-eF9Yr42z-CvOr82vo.js.map +1 -0
  105. package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js +741 -0
  106. package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js.map +1 -0
  107. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-C7zkwKMz.js} +213 -190
  108. package/dist/StorageUnitsPage-CTEVuemZ-C7zkwKMz.js.map +1 -0
  109. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-DZIhur09.js} +2 -2
  110. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-DZIhur09.js.map} +1 -1
  111. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  112. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  113. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  114. package/dist/TableList-B5tX4wII.js.map +1 -0
  115. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-BDmUK7s1.js} +185 -170
  116. package/dist/TransactionsPage-Zuu7sjID-BDmUK7s1.js.map +1 -0
  117. package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js +635 -0
  118. package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js.map +1 -0
  119. package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js +600 -0
  120. package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js.map +1 -0
  121. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  122. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  123. package/dist/UserList-Cf5B-o_1.js +1904 -0
  124. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  125. package/dist/Users-MC7txo1V.js +43 -0
  126. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  127. package/dist/VaccineEducation-DWkNNasF.js +231 -0
  128. package/dist/VaccineEducation-DWkNNasF.js.map +1 -0
  129. package/dist/VaccineEducation.css +1 -0
  130. package/dist/VaccineEducationConfigurator-BFCvu5Mw.js +1450 -0
  131. package/dist/VaccineEducationConfigurator-BFCvu5Mw.js.map +1 -0
  132. package/dist/VaccineEducationConfigurator.css +1 -0
  133. package/dist/VaccineEducationList-BxZHahCh.js +334 -0
  134. package/dist/VaccineEducationList-BxZHahCh.js.map +1 -0
  135. package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js +457 -0
  136. package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js.map +1 -0
  137. package/dist/ckeditor5-_x14lrzc.js +49590 -0
  138. package/dist/ckeditor5-_x14lrzc.js.map +1 -0
  139. package/dist/ckeditor5.css +4 -0
  140. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  141. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  142. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  143. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  144. package/dist/faqMedia-FDpje7v0.js +234 -0
  145. package/dist/faqMedia-FDpje7v0.js.map +1 -0
  146. package/dist/index-mfoqII2U.js +524 -0
  147. package/dist/index-mfoqII2U.js.map +1 -0
  148. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  149. package/dist/index-o8Pyt1Bt.js.map +1 -0
  150. package/dist/index.css +1 -1
  151. package/dist/index.js +1 -1
  152. package/dist/{index.lib-ETRQOzvE.js → index.lib-QDEODnRT.js} +409 -327
  153. package/dist/index.lib-QDEODnRT.js.map +1 -0
  154. package/dist/listValueStore-5d4vNGQM-DB08drLf.js +43 -0
  155. package/dist/listValueStore-5d4vNGQM-DB08drLf.js.map +1 -0
  156. package/dist/proxy-C4gcRXzG.js +5265 -0
  157. package/dist/proxy-C4gcRXzG.js.map +1 -0
  158. package/package.json +7 -2
  159. package/dist/AccessRights-DUgY6ewy.js +0 -1031
  160. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  161. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  162. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  163. package/dist/ChangePasswordModalCore-lQ9GamH1.js +0 -5494
  164. package/dist/ChangePasswordModalCore-lQ9GamH1.js.map +0 -1
  165. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  166. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  167. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  168. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  169. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  170. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  171. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  172. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  173. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  174. package/dist/ManageRole-CNZBRKGU.js +0 -776
  175. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  176. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  177. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  178. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  179. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  180. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  181. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  182. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  183. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  184. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  185. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  186. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  187. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  188. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  189. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  190. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  191. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  192. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  193. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  194. package/dist/Roles-BIyiic67.js +0 -14
  195. package/dist/Roles-BIyiic67.js.map +0 -1
  196. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  197. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  198. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  199. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  200. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  201. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  202. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  203. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  204. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  205. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  206. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  207. package/dist/UserList-L41Xw0Q6.js +0 -1129
  208. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  209. package/dist/Users-CsJ08Kjm.js +0 -40
  210. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  211. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  212. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  213. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  214. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  215. package/dist/index-D9YNFPn9.js.map +0 -1
  216. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  217. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  218. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -1,31 +1,31 @@
1
- import { jsx as i, jsxs as $, Fragment as Ne } from "react/jsx-runtime";
2
- import oi, { useMemo as va, useState as U, useEffect as Ue, useRef as sa, useCallback as Aa, Suspense as Sa, lazy as Oa } from "react";
3
- import { g as ti, c as li, d as Ea, e as Ra, f as ci, v as wa, h as Pa, i as di, j as mi, u as ui, k as hi } from "./Users-CsJ08Kjm.js";
1
+ import { jsx as i, jsxs as $, Fragment as Ae } from "react/jsx-runtime";
2
+ import ti, { useMemo as va, useState as U, useEffect as Ue, useRef as sa, useCallback as Sa, Suspense as Ea, lazy as Ga } from "react";
3
+ import { g as li, f as ci, h as Ra, i as Pa, j as di, v as wa, k as Ma, l as mi, m as ui, u as hi, n as gi } from "./Users-MC7txo1V.js";
4
4
  import { showToast as Me } from "@/common/toaster/toaster";
5
5
  import { FormItem as Y } from "@/views/custom-components/FormItem.jsx";
6
- import { getAssignedFeatures as gi } from "@/utils/feature";
7
- import pi from "@/views/custom-components/CustomAutoComplete";
6
+ import { getAssignedFeatures as pi } from "@/utils/feature";
7
+ import bi from "@/views/custom-components/CustomAutoComplete";
8
8
  import za from "@/views/custom-components/CustomConfirmationModal";
9
9
  import oa from "@/views/custom-components/CustomDropdown";
10
10
  import pe from "@/views/custom-components/CustomTextField";
11
- import { faEyeSlash as bi, faEye as yi } from "@fortawesome/free-solid-svg-icons";
12
- import { FontAwesomeIcon as Ma } from "@fortawesome/react-fontawesome";
13
- import { InputAdornment as Ga, IconButton as ki, FormControl as ca, TextField as fi, Select as vi, MenuItem as wi, FormHelperText as zi, Box as ga, Card as ja, Typography as Ae, CardHeader as ji, Button as ta, CardContent as xi, RadioGroup as pa, FormControlLabel as Se, Radio as Ee, FormLabel as qi, Divider as xa, Chip as _i } from "@mui/material";
14
- import Ii from "@/views/custom-components/CustomTextField.jsx";
11
+ import { faEyeSlash as yi, faEye as ki } from "@fortawesome/free-solid-svg-icons";
12
+ import { FontAwesomeIcon as La } from "@fortawesome/react-fontawesome";
13
+ import { InputAdornment as Ya, IconButton as fi, FormControl as ca, TextField as vi, Select as wi, MenuItem as zi, FormHelperText as ji, Box as ga, Card as ja, Typography as Se, CardHeader as xi, Button as ta, CardContent as qi, RadioGroup as pa, FormControlLabel as Ee, Radio as Re, FormLabel as _i, Divider as xa, Chip as Ii } from "@mui/material";
14
+ import Ci from "@/views/custom-components/CustomTextField.jsx";
15
15
  import ye from "prop-types";
16
- import { Controller as da, useForm as Ci, FormProvider as Ni } from "react-hook-form";
17
- import Re from "@/common/config/implementationConfig";
18
- import { CountryDialCodes as La, phoneValidationRules as Ye } from "@/utils/FormConstants";
19
- import { yupResolver as Ai } from "@hookform/resolvers/yup";
16
+ import { Controller as da, useForm as Ni, FormProvider as Ai } from "react-hook-form";
17
+ import Ie from "@/common/config/implementationConfig";
18
+ import { CountryDialCodes as Ta, phoneValidationRules as Ye } from "@/utils/FormConstants";
19
+ import { yupResolver as Si } from "@hookform/resolvers/yup";
20
20
  import la from "dayjs";
21
21
  import I from "@mui/material/Grid2";
22
- import { g as Si } from "./_commonjsHelpers-B4e78b8K.js";
23
- import { useNavigate as Ei, useParams as Ri } from "react-router";
24
- import Pi from "@/hooks/useTrackEvent";
22
+ import { g as Ei } from "./_commonjsHelpers-B4e78b8K.js";
23
+ import { useNavigate as Ri, useParams as Pi } from "react-router";
24
+ import Mi from "@/hooks/useTrackEvent";
25
25
  import * as q from "yup";
26
- import Ta from "@/views/custom-components/CustomDatePicker";
27
- import { useTranslateProvider as Mi } from "@/common/languageTranslator/TranslationContext";
28
- import { M as Li } from "./UserListSkeleton-BMKANCtW.js";
26
+ import Ba from "@/views/custom-components/CustomDatePicker";
27
+ import { useTranslateProvider as Li } from "@/common/languageTranslator/TranslationContext";
28
+ import { M as Ti } from "./UserListSkeleton-BMKANCtW.js";
29
29
  import { execute as xe } from "@/common/services/GlobalApis";
30
30
  import M from "@/common/services/util/GeneralUtil";
31
31
  import './ManageUser.css';const qa = ({
@@ -40,7 +40,7 @@ import './ManageUser.css';const qa = ({
40
40
  rules: fe = null,
41
41
  ...ae
42
42
  }) => /* @__PURE__ */ i(
43
- Ii,
43
+ Ci,
44
44
  {
45
45
  control: re,
46
46
  id: L,
@@ -52,7 +52,7 @@ import './ManageUser.css';const qa = ({
52
52
  dataTestId: V,
53
53
  onChange: O,
54
54
  ...ae,
55
- endAdornment: H && /* @__PURE__ */ i(Ga, { position: "end", children: /* @__PURE__ */ i(ki, { onClick: H, children: W ? /* @__PURE__ */ i(Ma, { icon: bi, size: "xs", "data-testid": `${V}-visibility-off-button` }) : /* @__PURE__ */ i(Ma, { icon: yi, size: "xs", "data-testid": `${V}-visibility-on-button` }) }) })
55
+ endAdornment: H && /* @__PURE__ */ i(Ya, { position: "end", children: /* @__PURE__ */ i(fi, { onClick: H, children: W ? /* @__PURE__ */ i(La, { icon: yi, size: "xs", "data-testid": `${V}-visibility-off-button` }) : /* @__PURE__ */ i(La, { icon: ki, size: "xs", "data-testid": `${V}-visibility-on-button` }) }) })
56
56
  }
57
57
  );
58
58
  qa.propTypes = {
@@ -66,26 +66,26 @@ qa.propTypes = {
66
66
  dataTestId: ye.any,
67
67
  rules: ye.any
68
68
  };
69
- const Ti = (re) => re ? re.toUpperCase().replace(
69
+ const Bi = (re) => re ? re.toUpperCase().replace(
70
70
  /./g,
71
71
  (W) => String.fromCodePoint(127397 + W.charCodeAt(0))
72
- ) : "", Ya = (re) => {
72
+ ) : "", Ha = (re) => {
73
73
  if (!re) return !1;
74
74
  const W = String(re).replace(/\D/g, "");
75
75
  return /^(\d)\1+$/.test(W) || /^1234567890?$/.test(W) || /^9876543210?$/.test(W) || /^0123456789?$/.test(W);
76
- }, Ba = (re, W = "IN") => {
76
+ }, Ua = (re, W = "IN") => {
77
77
  var fe;
78
78
  if (!re) return null;
79
79
  const H = String(re).replace(/\D/g, "");
80
80
  if (!H) return null;
81
81
  const ce = (W || "IN").toUpperCase(), L = Ye[ce] || Ye.IN;
82
- if (Ya(H))
82
+ if (Ha(H))
83
83
  return "Please enter a valid phone number";
84
84
  const ke = L.pattern instanceof RegExp ? L.pattern : new RegExp(L.pattern), O = (fe = L.pattern) == null ? void 0 : fe.toString().match(/\^\[([^\]]+)\]|\^(\d)\[([^\]]+)\]/);
85
85
  let V = "";
86
86
  return O && (O[1] ? V = O[1].split("").join(", ") : V = `${O[2]}${O[3]}`), H.length < L.minLength ? L.minLength === L.maxLength ? L.iso2 === "IN" ? "Phone number must be 10 digits" : `${L.name} phone number must be ${L.minLength} digits` : `${L.name} phone number must be at least ${L.minLength} digits` : H.length > L.maxLength ? `${L.name} phone number cannot exceed ${L.maxLength} digits` : ke.test(H) ? null : L.iso2 === "IN" ? "Phone number must be 10 digits starting with 6-9" : `Please enter a valid ${L.name} phone number
87
87
  (${L.minLength} ${L.maxLength && L.minLength !== L.maxLength ? `to ${L.maxLength}` : ""} digits${V ? `, starting with ${V}` : ""})`;
88
- }, Ha = ({
88
+ }, Za = ({
89
89
  control: re,
90
90
  name: W = "contactNumber",
91
91
  disabled: H = !1,
@@ -95,13 +95,13 @@ const Ti = (re) => re ? re.toUpperCase().replace(
95
95
  dataTestId: O = "phone-number-input"
96
96
  }) => {
97
97
  var He, l, Le;
98
- const V = ((He = Re.user) == null ? void 0 : He.countriesToShowWhenAskingContactNumber) || ((l = Re.user) == null ? void 0 : l.countriesForContactNumber), fe = ((Le = Re.user) == null ? void 0 : Le.defaultCountryForContactNumber) || Re.country || "IN", ae = va(() => {
99
- let K = [...La];
98
+ const V = ((He = Ie.user) == null ? void 0 : He.countriesToShowWhenAskingContactNumber) || ((l = Ie.user) == null ? void 0 : l.countriesForContactNumber), fe = ((Le = Ie.user) == null ? void 0 : Le.defaultCountryForContactNumber) || Ie.country || "IN", ae = va(() => {
99
+ let K = [...Ta];
100
100
  if (Array.isArray(V) && V.length > 0) {
101
101
  const ze = new Set(V);
102
102
  K = K.filter((qe) => ze.has(qe.iso2));
103
103
  }
104
- return K.length === 0 && (K = [...La]), K.sort((ze, qe) => ze.name.localeCompare(qe.name));
104
+ return K.length === 0 && (K = [...Ta]), K.sort((ze, qe) => ze.name.localeCompare(qe.name));
105
105
  }, [V]), ne = va(() => {
106
106
  var K;
107
107
  return ae.some((ze) => ze.iso2 === fe) ? fe : ((K = ae[0]) == null ? void 0 : K.iso2) || "IN";
@@ -117,20 +117,20 @@ const Ti = (re) => re ? re.toUpperCase().replace(
117
117
  control: re,
118
118
  render: ({ field: K, fieldState: ze }) => {
119
119
  var Fe, Ze;
120
- const qe = ((Fe = ze.error) == null ? void 0 : Fe.message) || ((Ze = ce == null ? void 0 : ce[W]) == null ? void 0 : Ze.message), Ie = K.value ? Ba(K.value, N) : null;
120
+ const qe = ((Fe = ze.error) == null ? void 0 : Fe.message) || ((Ze = ce == null ? void 0 : ce[W]) == null ? void 0 : Ze.message), Ce = K.value ? Ua(K.value, N) : null;
121
121
  let C = qe;
122
- Ie ? C = Ie : qe && N !== "IN" && qe.includes("10 digits") && (C = Ba(K.value, N) || `Please enter a valid ${$e.name} phone number`);
123
- const Ce = !!C || !!ze.error || !!(ce != null && ce[W]);
124
- return /* @__PURE__ */ $(ca, { fullWidth: !0, error: Ce, required: ke, children: [
122
+ Ce ? C = Ce : qe && N !== "IN" && qe.includes("10 digits") && (C = Ua(K.value, N) || `Please enter a valid ${$e.name} phone number`);
123
+ const Ne = !!C || !!ze.error || !!(ce != null && ce[W]);
124
+ return /* @__PURE__ */ $(ca, { fullWidth: !0, error: Ne, required: ke, children: [
125
125
  /* @__PURE__ */ i(
126
- fi,
126
+ vi,
127
127
  {
128
128
  ...K,
129
129
  required: ke,
130
130
  "data-testid": O,
131
131
  id: W,
132
132
  disabled: H,
133
- error: Ce,
133
+ error: Ne,
134
134
  value: K.value || "",
135
135
  onChange: (he) => {
136
136
  let G = he.target.value;
@@ -158,8 +158,8 @@ const Ti = (re) => re ? re.toUpperCase().replace(
158
158
  "data-testid": `${O}-input-field`
159
159
  },
160
160
  input: {
161
- startAdornment: /* @__PURE__ */ i(Ga, { position: "start", children: /* @__PURE__ */ i(
162
- vi,
161
+ startAdornment: /* @__PURE__ */ i(Ya, { position: "start", children: /* @__PURE__ */ i(
162
+ wi,
163
163
  {
164
164
  value: N,
165
165
  onChange: (he) => {
@@ -196,12 +196,12 @@ const Ti = (re) => re ? re.toUpperCase().replace(
196
196
  }
197
197
  },
198
198
  children: ae.map((he) => /* @__PURE__ */ $(
199
- wi,
199
+ zi,
200
200
  {
201
201
  value: he.iso2,
202
202
  "data-testid": `country-option-${he.iso2}`,
203
203
  children: [
204
- /* @__PURE__ */ i("span", { style: { marginRight: "6px" }, children: Ti(he.iso2) }),
204
+ /* @__PURE__ */ i("span", { style: { marginRight: "6px" }, children: Bi(he.iso2) }),
205
205
  he.name,
206
206
  " (",
207
207
  he.dialCode,
@@ -216,13 +216,13 @@ const Ti = (re) => re ? re.toUpperCase().replace(
216
216
  }
217
217
  }
218
218
  ),
219
- Ce && /* @__PURE__ */ i(zi, { "data-testid": "custom-error-message", children: C })
219
+ Ne && /* @__PURE__ */ i(ji, { "data-testid": "custom-error-message", children: C })
220
220
  ] });
221
221
  }
222
222
  }
223
223
  );
224
224
  };
225
- Ha.propTypes = {
225
+ Za.propTypes = {
226
226
  control: ye.object,
227
227
  name: ye.string,
228
228
  disabled: ye.bool,
@@ -231,15 +231,15 @@ Ha.propTypes = {
231
231
  required: ye.bool,
232
232
  dataTestId: ye.string
233
233
  };
234
- var ba = {}, Ua;
235
- function Bi() {
236
- if (Ua) return ba;
237
- Ua = 1;
234
+ var ba = {}, $a;
235
+ function Ui() {
236
+ if ($a) return ba;
237
+ $a = 1;
238
238
  function re(e) {
239
239
  return e && typeof e == "object" && "default" in e ? e.default : e;
240
240
  }
241
241
  Object.defineProperty(ba, "__esModule", { value: !0 });
242
- var W = oi, H = re(W), ce = function(e, a) {
242
+ var W = ti, H = re(W), ce = function(e, a) {
243
243
  return (ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
244
244
  n.__proto__ = s;
245
245
  } || function(n, s) {
@@ -271,7 +271,7 @@ function Bi() {
271
271
  return d;
272
272
  })().length;
273
273
  }, O = 1e4, fe = ke = 10, V = 50;
274
- var l, Le, K, ze, qe, Ie, C, Ce, Fe, Ze, he, G, we, Te = { nCk: function(e, a) {
274
+ var l, Le, K, ze, qe, Ce, C, Ne, Fe, Ze, he, G, we, Te = { nCk: function(e, a) {
275
275
  var n, s, o, c;
276
276
  if (e < a) return 0;
277
277
  if (a === 0) return 1;
@@ -406,12 +406,12 @@ function Bi() {
406
406
  }
407
407
  return k;
408
408
  } };
409
- for (G in Ce = He, we = Te, Fe = function(e) {
409
+ for (G in Ne = He, we = Te, Fe = function(e) {
410
410
  var a, n, s, o;
411
411
  for (o = {}, a = 1, s = 0, n = e.length; s < n; s++) o[e[s]] = a, a += 1;
412
412
  return o;
413
- }, Ie = {}, Ze = $e) he = Ze[G], Ie[G] = Fe(he);
414
- ze = { qwerty: Ce.qwerty, dvorak: Ce.dvorak, keypad: Ce.keypad, mac_keypad: Ce.mac_keypad }, qe = { a: ["4", "@"], b: ["8"], c: ["(", "{", "[", "<"], e: ["3"], g: ["6", "9"], i: ["1", "!", "|"], l: ["1", "|", "7"], o: ["0"], s: ["$", "5"], t: ["+", "7"], x: ["%"], z: ["2"] }, C = { recent_year: /19\d\d|200\d|201\d/g }, l = 2050, Le = 1e3, K = { 4: [[1, 2], [2, 3]], 5: [[1, 3], [2, 3]], 6: [[1, 2], [2, 4], [4, 5]], 7: [[1, 3], [2, 3], [4, 5], [4, 6]], 8: [[2, 4], [4, 6]] };
413
+ }, Ce = {}, Ze = $e) he = Ze[G], Ce[G] = Fe(he);
414
+ ze = { qwerty: Ne.qwerty, dvorak: Ne.dvorak, keypad: Ne.keypad, mac_keypad: Ne.mac_keypad }, qe = { a: ["4", "@"], b: ["8"], c: ["(", "{", "[", "<"], e: ["3"], g: ["6", "9"], i: ["1", "!", "|"], l: ["1", "|", "7"], o: ["0"], s: ["$", "5"], t: ["+", "7"], x: ["%"], z: ["2"] }, C = { recent_year: /19\d\d|200\d|201\d/g }, l = 2050, Le = 1e3, K = { 4: [[1, 2], [2, 3]], 5: [[1, 3], [2, 3]], 6: [[1, 2], [2, 4], [4, 5]], 7: [[1, 3], [2, 3], [4, 5], [4, 6]], 8: [[2, 4], [4, 6]] };
415
415
  var de, _e, Je, t, ma, ea, De, We = { empty: function(e) {
416
416
  var a;
417
417
  return (function() {
@@ -440,14 +440,14 @@ function Bi() {
440
440
  return this.sorted(o);
441
441
  }, dictionary_match: function(e, a) {
442
442
  var n, s, o, c, d, m, y, u, h, w, k, f, g, v;
443
- for (n in a == null && (a = Ie), d = [], c = e.length, u = e.toLowerCase(), a) for (w = a[n], s = m = 0, k = c; 0 <= k ? m < k : k < m; s = 0 <= k ? ++m : --m) for (o = y = f = s, g = c; f <= g ? y < g : g < y; o = f <= g ? ++y : --y) u.slice(s, +o + 1 || 9e9) in w && (h = w[v = u.slice(s, +o + 1 || 9e9)], d.push({ pattern: "dictionary", i: s, j: o, token: e.slice(s, +o + 1 || 9e9), matched_word: v, rank: h, dictionary_name: n, reversed: !1, l33t: !1 }));
443
+ for (n in a == null && (a = Ce), d = [], c = e.length, u = e.toLowerCase(), a) for (w = a[n], s = m = 0, k = c; 0 <= k ? m < k : k < m; s = 0 <= k ? ++m : --m) for (o = y = f = s, g = c; f <= g ? y < g : g < y; o = f <= g ? ++y : --y) u.slice(s, +o + 1 || 9e9) in w && (h = w[v = u.slice(s, +o + 1 || 9e9)], d.push({ pattern: "dictionary", i: s, j: o, token: e.slice(s, +o + 1 || 9e9), matched_word: v, rank: h, dictionary_name: n, reversed: !1, l33t: !1 }));
444
444
  return this.sorted(d);
445
445
  }, reverse_dictionary_match: function(e, a) {
446
446
  var n, s, o, c, d, m;
447
- for (a == null && (a = Ie), m = e.split("").reverse().join(""), c = 0, n = (o = this.dictionary_match(m, a)).length; c < n; c++) (s = o[c]).token = s.token.split("").reverse().join(""), s.reversed = !0, d = [e.length - 1 - s.j, e.length - 1 - s.i], s.i = d[0], s.j = d[1];
447
+ for (a == null && (a = Ce), m = e.split("").reverse().join(""), c = 0, n = (o = this.dictionary_match(m, a)).length; c < n; c++) (s = o[c]).token = s.token.split("").reverse().join(""), s.reversed = !0, d = [e.length - 1 - s.j, e.length - 1 - s.i], s.i = d[0], s.j = d[1];
448
448
  return this.sorted(o);
449
449
  }, set_user_input_dictionary: function(e) {
450
- return Ie.user_inputs = Fe(e.slice());
450
+ return Ce.user_inputs = Fe(e.slice());
451
451
  }, relevant_l33t_subtable: function(e, a) {
452
452
  var n, s, o, c, d, m, y, u, h, w;
453
453
  for (d = {}, c = 0, s = (m = e.split("")).length; c < s; c++) n = m[c], d[n] = !0;
@@ -494,7 +494,7 @@ function Bi() {
494
494
  return g;
495
495
  }, l33t_match: function(e, a, n) {
496
496
  var s, o, c, d, m, y, u, h, w, k, f, g, v, A, T, Z;
497
- for (a == null && (a = Ie), n == null && (n = qe), u = [], h = 0, c = (k = this.enumerate_l33t_subs(this.relevant_l33t_subtable(e, n))).length; h < c && (g = k[h], !this.empty(g)); h++) for (A = this.translate(e, g), w = 0, d = (f = this.dictionary_match(A, a)).length; w < d; w++) if (m = f[w], (T = e.slice(m.i, +m.j + 1 || 9e9)).toLowerCase() !== m.matched_word) {
497
+ for (a == null && (a = Ce), n == null && (n = qe), u = [], h = 0, c = (k = this.enumerate_l33t_subs(this.relevant_l33t_subtable(e, n))).length; h < c && (g = k[h], !this.empty(g)); h++) for (A = this.translate(e, g), w = 0, d = (f = this.dictionary_match(A, a)).length; w < d; w++) if (m = f[w], (T = e.slice(m.i, +m.j + 1 || 9e9)).toLowerCase() !== m.matched_word) {
498
498
  for (v in y = {}, g) s = g[v], T.indexOf(v) !== -1 && (y[v] = s);
499
499
  m.l33t = !0, m.token = T, m.sub = y, m.sub_display = (function() {
500
500
  var D;
@@ -648,16 +648,16 @@ function Bi() {
648
648
  })(H.Component);
649
649
  return ba.default = ra, ba;
650
650
  }
651
- var Ui = Bi();
652
- const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCore-lQ9GamH1.js")), Fi = $a.default || $a, ya = (re) => {
651
+ var $i = Ui();
652
+ const Fa = /* @__PURE__ */ Ei($i), Fi = Ga(() => import("./ChangePasswordModalCore-rypTxA2O.js")), Oi = Fa.default || Fa, ya = (re) => {
653
653
  var H;
654
- const W = (H = Re.user) == null ? void 0 : H.fieldsToExclude;
654
+ const W = (H = Ie.user) == null ? void 0 : H.fieldsToExclude;
655
655
  return Array.isArray(W) && W.includes(re);
656
- }, Oi = Oa(
656
+ }, Gi = Ga(
657
657
  () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
658
- ), Fa = () => {
658
+ ), Oa = () => {
659
659
  var H, ce, L, ke;
660
- const re = ((H = Re.user) == null ? void 0 : H.passwordRegex) || ((ce = Re.auth) == null ? void 0 : ce.passwordRegex) || '^(?=.*[A-Z])(?=.*[!@#$%^&*(),.?":{}|<>]).{8,}$', W = ((L = Re.user) == null ? void 0 : L.passwordValidationMessage) || ((ke = Re.auth) == null ? void 0 : ke.passwordValidationMessage) || "Password must be at least 8 characters long, contain at least one uppercase letter and one special character";
660
+ const re = ((H = Ie.user) == null ? void 0 : H.passwordRegex) || ((ce = Ie.auth) == null ? void 0 : ce.passwordRegex) || '^(?=.*[A-Z])(?=.*[!@#$%^&*(),.?":{}|<>]).{8,}$', W = ((L = Ie.user) == null ? void 0 : L.passwordValidationMessage) || ((ke = Ie.auth) == null ? void 0 : ke.passwordValidationMessage) || "Password must be at least 8 characters long, contain at least one uppercase letter and one special character";
661
661
  return q.object().shape({
662
662
  roleId: q.number().transform((O, V) => V === "" ? void 0 : O).typeError("UserRole is required").required("UserRole is required"),
663
663
  firstName: q.string().required("First Name is required").matches(/^[A-Za-z]+$/, "First name must contain only alphabets."),
@@ -681,9 +681,9 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
681
681
  }),
682
682
  prefferedLanguage: q.string().required("Preffered Language is required")
683
683
  });
684
- }, Gi = () => {
685
- var Na;
686
- const [re, W] = U(Fa), H = sa(null), ce = sa(!1), L = Pi(), ke = Ei(), { translate: O } = Mi(), [V, fe] = U([]), [ae, ne] = U(0), [N, ve] = U(), [$e, He] = U([]), [l, Le] = U({}), [K, ze] = U(!1), [qe, Ie] = U("Add User"), { id: C } = Ri(), [Ce, Fe] = U(!1), [Ze, he] = U(!1), [G, we] = U([]), [Te, de] = U([]), [_e, Je] = U([]), [t, ma] = U(null), ea = sa(t);
684
+ }, Yi = () => {
685
+ var Na, Aa;
686
+ const [re, W] = U(Oa), H = sa(null), ce = sa(!1), L = Mi(), ke = Ri(), { translate: O } = Li(), [V, fe] = U([]), [ae, ne] = U(0), [N, ve] = U(), [$e, He] = U([]), [l, Le] = U({}), [K, ze] = U(!1), [qe, Ce] = U("Add User"), { id: C } = Pi(), [Ne, Fe] = U(!1), [Ze, he] = U(!1), [G, we] = U([]), [Te, de] = U([]), [_e, Je] = U([]), [t, ma] = U(null), ea = sa(t);
687
687
  Ue(() => {
688
688
  ea.current = t;
689
689
  }, [t]);
@@ -748,7 +748,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
748
748
  const p = (b, R) => {
749
749
  if (!b) return !0;
750
750
  const B = String(b).replace(/\D/g, "");
751
- if (Ya(B))
751
+ if (Ha(B))
752
752
  return R.createError({
753
753
  message: "Please enter a valid phone number"
754
754
  });
@@ -837,11 +837,11 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
837
837
  })
838
838
  );
839
839
  }
840
- W(Fa().concat(r));
840
+ W(Oa().concat(r));
841
841
  }, [t, l, C]);
842
- const te = ((Na = Re.user) == null ? void 0 : Na.defaultPassword) || "Abcd@123", F = Ci({
842
+ const te = ((Na = Ie.user) == null ? void 0 : Na.defaultPassword) || "Abcd@123", F = Ni({
843
843
  mode: "onChange",
844
- resolver: Ai(re),
844
+ resolver: Si(re),
845
845
  context: { id: !!C, roleDetails: l },
846
846
  defaultValues: {
847
847
  infrastructureIds: [],
@@ -864,7 +864,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
864
864
  Ue(() => {
865
865
  var r;
866
866
  if (!C) {
867
- const p = ((r = Re.user) == null ? void 0 : r.defaultPassword) || "Abcd@123";
867
+ const p = ((r = Ie.user) == null ? void 0 : r.defaultPassword) || "Abcd@123";
868
868
  ge("password", p), ge("confirmPassword", p), ha(["password", "confirmPassword"]);
869
869
  }
870
870
  }, [re, C, ha, ge]), Ue(() => {
@@ -877,14 +877,14 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
877
877
  });
878
878
  };
879
879
  }, []);
880
- const Za = async (r) => {
880
+ const Da = async (r) => {
881
881
  var p;
882
882
  try {
883
883
  if (!r.target.value)
884
884
  return;
885
885
  const j = parseInt(r.target.value);
886
886
  e([]), we([]), Je([]);
887
- const { data: P } = await Ra({
887
+ const { data: P } = await Pa({
888
888
  role_id: j
889
889
  });
890
890
  if (((p = P.hierarchy) == null ? void 0 : p.length) > 0) {
@@ -910,14 +910,14 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
910
910
  } catch (j) {
911
911
  console.error(j), Me({ type: "error", message: "error selecting role" });
912
912
  }
913
- }, Da = async (r) => {
913
+ }, Wa = async (r) => {
914
914
  const p = $e.find((j) => j.languageKey === r.target.value);
915
915
  p && ge("prefferedLanguage", p.languageKey);
916
- }, Wa = async (r) => {
916
+ }, Ka = async (r) => {
917
917
  var p;
918
918
  try {
919
919
  G.length === 0 && (Ke("areas"), We({})), C && ((p = N == null ? void 0 : N.addedLocations) != null && p.includes(r)) && n((B) => [...B, r]);
920
- const j = _e == null ? void 0 : _e.map((R) => R.infraid), { data: P } = await mi([...j], r.locationId);
920
+ const j = _e == null ? void 0 : _e.map((R) => R.infraid), { data: P } = await ui([...j], r.locationId);
921
921
  if (P.errorcode === 400) {
922
922
  ia(P.message), ne(3);
923
923
  return;
@@ -935,12 +935,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
935
935
  } catch (j) {
936
936
  console.error(j);
937
937
  }
938
- }, _a = Aa(
938
+ }, _a = Sa(
939
939
  (r) => {
940
940
  r === "Mr" ? ge("gender", "M") : (r === "Mrs" || r === "Ms") && ge("gender", "F");
941
941
  },
942
942
  [ge]
943
- ), Ka = async (r) => {
943
+ ), Ja = async (r) => {
944
944
  var j, P, X, b, R;
945
945
  const p = {
946
946
  ...N,
@@ -967,7 +967,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
967
967
  return;
968
968
  }
969
969
  try {
970
- await ui(p) && (C ? Me({ message: "User Updated Successfully", type: "success" }) : Me({ message: "User Added Successfully", type: "success" }), l.name.toLowerCase() === "doctor" && (C ? await xe({
970
+ await hi(p) && (C ? Me({ message: "User Updated Successfully", type: "success" }) : Me({ message: "User Added Successfully", type: "success" }), l.name.toLowerCase() === "doctor" && (C ? await xe({
971
971
  code: "UPDATE_DOCTOR_DETAILS",
972
972
  parameters: {
973
973
  userId: parseInt(C),
@@ -981,7 +981,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
981
981
  specializationId: parseInt(r == null ? void 0 : r.specialization)
982
982
  // averageDuration: parseInt(formValues?.averageDuration),
983
983
  }
984
- }), z && await hi(r == null ? void 0 : r.userName, z)), ce.current = !0, ke("/ui/medplat/manage/users", {
984
+ }), z && await gi(r == null ? void 0 : r.userName, z)), ce.current = !0, ke("/ui/medplat/manage/users", {
985
985
  state: {
986
986
  fromManageUser: !0
987
987
  }
@@ -995,17 +995,17 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
995
995
  type: "error"
996
996
  });
997
997
  }
998
- }, Ja = () => {
998
+ }, Xa = () => {
999
999
  ke("/ui/medplat/manage/users", {
1000
1000
  state: {
1001
1001
  fromManageUser: !0
1002
1002
  }
1003
1003
  });
1004
- }, Xa = async (r) => {
1004
+ }, Qa = async (r) => {
1005
1005
  try {
1006
1006
  const p = r.target.value.toLowerCase();
1007
1007
  if (ge("userName", p, { shouldValidate: !0 }), (N == null ? void 0 : N.userName) !== p) {
1008
- const { data: j } = await Pa({
1008
+ const { data: j } = await Ma({
1009
1009
  action: "checkusername",
1010
1010
  username: p
1011
1011
  });
@@ -1018,11 +1018,11 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1018
1018
  } catch (p) {
1019
1019
  console.error(p);
1020
1020
  }
1021
- }, Qa = async (r) => {
1021
+ }, Va = async (r) => {
1022
1022
  var p;
1023
1023
  try {
1024
1024
  const j = Number((p = r.target) == null ? void 0 : p.value);
1025
- return j && Number(N == null ? void 0 : N.contactNumber) !== j && await Pa({
1025
+ return j && Number(N == null ? void 0 : N.contactNumber) !== j && await Ma({
1026
1026
  action: "checkphone",
1027
1027
  phone: j
1028
1028
  }).catch((P) => {
@@ -1035,7 +1035,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1035
1035
  } catch (j) {
1036
1036
  console.error(j);
1037
1037
  }
1038
- }, Va = async () => {
1038
+ }, ei = async () => {
1039
1039
  var r, p;
1040
1040
  try {
1041
1041
  L("button_click", {
@@ -1046,7 +1046,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1046
1046
  const j = Oe("roleId");
1047
1047
  if (j) {
1048
1048
  if (We({}), ra.length) {
1049
- const Q = ra.includes((p = (r = Pe == null ? void 0 : Pe.finalSelected) == null ? void 0 : r.optionSelected) == null ? void 0 : p.type), { data: Ge } = await di(), na = ra.map((ni) => Ge.find((si) => si.type === ni).name);
1049
+ const Q = ra.includes((p = (r = Pe == null ? void 0 : Pe.finalSelected) == null ? void 0 : r.optionSelected) == null ? void 0 : p.type), { data: Ge } = await mi(), na = ra.map((si) => Ge.find((oi) => oi.type === si).name);
1050
1050
  if (!Q)
1051
1051
  return We({
1052
1052
  message: `The role you have selected is allowed to add only - ${[...na]}`
@@ -1113,7 +1113,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1113
1113
  }
1114
1114
  }, Ia = async () => {
1115
1115
  await ha(["password", "confirmPassword"]);
1116
- }, ei = async (r) => {
1116
+ }, ai = async (r) => {
1117
1117
  var p, j;
1118
1118
  if (se(!1), r != null && r !== "")
1119
1119
  try {
@@ -1128,7 +1128,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1128
1128
  } catch (P) {
1129
1129
  console.error(P);
1130
1130
  }
1131
- }, ai = async (r) => {
1131
+ }, ii = async (r) => {
1132
1132
  var p, j;
1133
1133
  if (ee(!1), r != null && r !== "")
1134
1134
  try {
@@ -1143,7 +1143,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1143
1143
  } catch (P) {
1144
1144
  console.error(P);
1145
1145
  }
1146
- }, ii = async () => {
1146
+ }, ri = async () => {
1147
1147
  try {
1148
1148
  const { data: r } = await xe({
1149
1149
  code: "unlock_user_option",
@@ -1152,7 +1152,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1152
1152
  }
1153
1153
  });
1154
1154
  ne(0);
1155
- const { data: p } = await Ea(C);
1155
+ const { data: p } = await Ra(C);
1156
1156
  ve(p), r.result ? Me({ message: "User Unlocked Successfully", type: "success" }) : Me({
1157
1157
  message: "Facing issue in Unlocking User",
1158
1158
  type: "error"
@@ -1160,14 +1160,14 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1160
1160
  } catch (r) {
1161
1161
  console.error(r);
1162
1162
  }
1163
- }, Ca = Aa(async () => {
1163
+ }, Ca = Sa(async () => {
1164
1164
  var r, p;
1165
1165
  try {
1166
1166
  d(!0);
1167
1167
  const [j, P, X] = await Promise.all([
1168
- ti(),
1169
- gi("techo.manage.users"),
1170
- li()
1168
+ li(),
1169
+ pi("techo.manage.users"),
1170
+ ci()
1171
1171
  ]);
1172
1172
  fe(j == null ? void 0 : j.data), ma(JSON.parse(P == null ? void 0 : P.data)), He(X == null ? void 0 : X.data);
1173
1173
  try {
@@ -1183,10 +1183,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1183
1183
  D([]);
1184
1184
  }
1185
1185
  if (C) {
1186
- Ie("Update User"), e([]), we([]);
1187
- const { data: b } = await Ea(C);
1186
+ Ce("Update User"), e([]), we([]);
1187
+ const { data: b } = await Ra(C);
1188
1188
  ve(b), b.addedLocations && we(b.addedLocations);
1189
- const { data: R } = await Ra({
1189
+ const { data: R } = await Pa({
1190
1190
  role_id: b.roleId
1191
1191
  });
1192
1192
  if (((p = R.hierarchy) == null ? void 0 : p.length) > 0) {
@@ -1235,9 +1235,9 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1235
1235
  Ue(() => {
1236
1236
  Ca();
1237
1237
  }, [Ca]), Ue(() => {
1238
- w && C && ri();
1238
+ w && C && ni();
1239
1239
  }, [w, C]);
1240
- const ri = async () => {
1240
+ const ni = async () => {
1241
1241
  try {
1242
1242
  const r = await xe({
1243
1243
  code: "GET_SPECIALIZATION_BY_USERID",
@@ -1246,7 +1246,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1246
1246
  }
1247
1247
  });
1248
1248
  ge("specialization", r.data.result[0].specialization_id);
1249
- const p = await ci(parseInt(C)), j = new Blob([p], { type: "application/image" }), P = URL.createObjectURL(j);
1249
+ const p = await di(parseInt(C)), j = new Blob([p], { type: "application/image" }), P = URL.createObjectURL(j);
1250
1250
  oe(P);
1251
1251
  } catch (r) {
1252
1252
  console.error(r);
@@ -1257,9 +1257,9 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1257
1257
  j === "title" && _a(p.title);
1258
1258
  });
1259
1259
  return () => r.unsubscribe();
1260
- }, [je, _a]), C && t !== null && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users"], void 0, !0) && !c ? /* @__PURE__ */ i(ga, { className: "flex justify-center items-center w-full h-[80vh]", "data-testid": "update-user-permission", children: /* @__PURE__ */ i(ja, { className: "h-80 w-150 flex justify-center items-center", children: /* @__PURE__ */ i(Ae, { variant: "h5", className: "text-customBlue", children: "You dont have permission to update Users" }) }) }) : !C && t !== null && !M.hasCheckRights(t == null ? void 0 : t["create.manage.users"], void 0, !0) && !c ? /* @__PURE__ */ i(ga, { className: "flex justify-center items-center w-full h-[80vh]", "data-testid": "create-user-permission", children: /* @__PURE__ */ i(ja, { className: "h-80 w-150 flex justify-center items-center", children: /* @__PURE__ */ i(Ae, { variant: "h5", className: "text-customBlue", children: "You dont have permission to Add Users" }) }) }) : /* @__PURE__ */ $(Ne, { children: [
1261
- ae === 1 && /* @__PURE__ */ i(Sa, { children: /* @__PURE__ */ i(
1262
- $i,
1260
+ }, [je, _a]), C && t !== null && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users"], void 0, !0) && !c ? /* @__PURE__ */ i(ga, { className: "flex justify-center items-center w-full h-[80vh]", "data-testid": "update-user-permission", children: /* @__PURE__ */ i(ja, { className: "h-80 w-150 flex justify-center items-center", children: /* @__PURE__ */ i(Se, { variant: "h5", className: "text-customBlue", children: "You dont have permission to update Users" }) }) }) : !C && t !== null && !M.hasCheckRights(t == null ? void 0 : t["create.manage.users"], void 0, !0) && !c ? /* @__PURE__ */ i(ga, { className: "flex justify-center items-center w-full h-[80vh]", "data-testid": "create-user-permission", children: /* @__PURE__ */ i(ja, { className: "h-80 w-150 flex justify-center items-center", children: /* @__PURE__ */ i(Se, { variant: "h5", className: "text-customBlue", children: "You dont have permission to Add Users" }) }) }) : /* @__PURE__ */ $(Ae, { children: [
1261
+ ae === 1 && /* @__PURE__ */ i(Ea, { children: /* @__PURE__ */ i(
1262
+ Fi,
1263
1263
  {
1264
1264
  open: ae === 1,
1265
1265
  onClose: () => ne(0),
@@ -1274,12 +1274,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1274
1274
  description: "Do you want to unlock this User ?",
1275
1275
  title: "CONFIRM ACTION",
1276
1276
  open: ae === 2,
1277
- handleClick: ii,
1277
+ handleClick: ri,
1278
1278
  handleClose: () => ne(0),
1279
1279
  dataTestId: "unlock-user-modal"
1280
1280
  }
1281
1281
  ),
1282
- /* @__PURE__ */ i(Ni, { ...F, children: /* @__PURE__ */ i(
1282
+ /* @__PURE__ */ i(Ai, { ...F, children: /* @__PURE__ */ i(
1283
1283
  ja,
1284
1284
  {
1285
1285
  "data-testid": "ManageUserForm",
@@ -1298,17 +1298,17 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1298
1298
  r.preventDefault();
1299
1299
  return;
1300
1300
  }
1301
- be(Ka)(r);
1301
+ be(Ja)(r);
1302
1302
  },
1303
1303
  noValidate: !0,
1304
- children: /* @__PURE__ */ $(Li, { isLoading: c, children: [
1304
+ children: /* @__PURE__ */ $(Ti, { isLoading: c, children: [
1305
1305
  /* @__PURE__ */ i(I, { item: !0, container: !0, direction: "row", children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ i(
1306
- ji,
1306
+ xi,
1307
1307
  {
1308
1308
  className: "p-2.5 px-5 flex border-b",
1309
1309
  subheader: /* @__PURE__ */ $(ga, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
1310
1310
  /* @__PURE__ */ i(
1311
- Ae,
1311
+ Se,
1312
1312
  {
1313
1313
  variant: "body1",
1314
1314
  className: "font-medium text-lg text-customBlue",
@@ -1352,7 +1352,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1352
1352
  }
1353
1353
  }
1354
1354
  ) }) }),
1355
- /* @__PURE__ */ i(xi, { children: /* @__PURE__ */ $(I, { container: !0, size: { xs: 12 }, spacing: 2, direction: "row", children: [
1355
+ /* @__PURE__ */ i(qi, { children: /* @__PURE__ */ $(I, { container: !0, size: { xs: 12 }, spacing: 2, direction: "row", children: [
1356
1356
  /* @__PURE__ */ i(
1357
1357
  I,
1358
1358
  {
@@ -1383,7 +1383,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1383
1383
  displayName: "name",
1384
1384
  optionValue: "id",
1385
1385
  onChange: (r) => {
1386
- Za(r);
1386
+ Da(r);
1387
1387
  },
1388
1388
  disabled: C && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users.canManageRole"]),
1389
1389
  errors: E,
@@ -1447,8 +1447,8 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1447
1447
  dataTestId: "last-name-input"
1448
1448
  }
1449
1449
  ) }) }),
1450
- M.hasCheckRights(t == null ? void 0 : t["manage.users.dateOfBirth"], void 0, !0) && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Date Of Birth", children: /* @__PURE__ */ i(
1451
- Ta,
1450
+ M.hasCheckRights(t == null ? void 0 : t["manage.users.dateOfBirth"], void 0, !0) && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Date Of Birth", children: /* @__PURE__ */ i(
1451
+ Ba,
1452
1452
  {
1453
1453
  control: x,
1454
1454
  name: "dateOfBirth",
@@ -1467,11 +1467,11 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1467
1467
  defaultValue: "M",
1468
1468
  render: ({ field: r }) => /* @__PURE__ */ $(pa, { row: !0, ...r, value: r.value || "M", "data-testid": "gender-radio", children: [
1469
1469
  /* @__PURE__ */ i(
1470
- Se,
1470
+ Ee,
1471
1471
  {
1472
1472
  value: "M",
1473
1473
  control: /* @__PURE__ */ i(
1474
- Ee,
1474
+ Re,
1475
1475
  {
1476
1476
  disabled: je("title") === "Mrs" || je("title") === "Ms" || C && !M.hasCheckRights(
1477
1477
  t == null ? void 0 : t["update.manage.users.canManageUsersBasicInformation"]
@@ -1488,11 +1488,11 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1488
1488
  }
1489
1489
  ),
1490
1490
  /* @__PURE__ */ i(
1491
- Se,
1491
+ Ee,
1492
1492
  {
1493
1493
  value: "F",
1494
1494
  control: /* @__PURE__ */ i(
1495
- Ee,
1495
+ Re,
1496
1496
  {
1497
1497
  disabled: je("title") === "Mr" || C && !M.hasCheckRights(
1498
1498
  t == null ? void 0 : t["update.manage.users.canManageUsersBasicInformation"]
@@ -1509,11 +1509,11 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1509
1509
  }
1510
1510
  ),
1511
1511
  M.isBahaar && /* @__PURE__ */ i(
1512
- Se,
1512
+ Ee,
1513
1513
  {
1514
1514
  value: "O",
1515
1515
  control: /* @__PURE__ */ i(
1516
- Ee,
1516
+ Re,
1517
1517
  {
1518
1518
  disabled: C && !M.hasCheckRights(
1519
1519
  t == null ? void 0 : t["update.manage.users.canManageUsersBasicInformation"]
@@ -1532,10 +1532,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1532
1532
  ] })
1533
1533
  }
1534
1534
  ),
1535
- E.gender && /* @__PURE__ */ i(Ae, { color: "error", children: E.gender.message })
1535
+ E.gender && /* @__PURE__ */ i(Se, { color: "error", children: E.gender.message })
1536
1536
  ] }) }) }),
1537
- M.hasCheckRights(t == null ? void 0 : t["manage.users.joiningDate"], void 0, !0) && !ya("joiningDate") && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Joining date", children: /* @__PURE__ */ i(
1538
- Ta,
1537
+ M.hasCheckRights(t == null ? void 0 : t["manage.users.joiningDate"], void 0, !0) && !ya("joiningDate") && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Joining date", children: /* @__PURE__ */ i(
1538
+ Ba,
1539
1539
  {
1540
1540
  control: x,
1541
1541
  name: "joiningDate",
@@ -1545,7 +1545,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1545
1545
  maxDate: la()
1546
1546
  }
1547
1547
  ) }) }) }),
1548
- M.hasCheckRights(t == null ? void 0 : t["manage.users.batchNo"], void 0, !0) && !ya("batchNo") && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Batch No.", children: /* @__PURE__ */ i(
1548
+ M.hasCheckRights(t == null ? void 0 : t["manage.users.batchNo"], void 0, !0) && !ya("batchNo") && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Batch No.", children: /* @__PURE__ */ i(
1549
1549
  pe,
1550
1550
  {
1551
1551
  control: x,
@@ -1561,7 +1561,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1561
1561
  }
1562
1562
  }
1563
1563
  ) }) }) }),
1564
- M.hasCheckRights(t == null ? void 0 : t["manage.users.maritalStatus"], void 0, !0) && !ya("maritalStatus") && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(Y, { label: "Marital Status", required: !0, direction: "row", children: /* @__PURE__ */ i(ca, { component: "fieldset", margin: "normal", children: /* @__PURE__ */ i(
1564
+ M.hasCheckRights(t == null ? void 0 : t["manage.users.maritalStatus"], void 0, !0) && !ya("maritalStatus") && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(Y, { label: "Marital Status", required: !0, direction: "row", children: /* @__PURE__ */ i(ca, { component: "fieldset", margin: "normal", children: /* @__PURE__ */ i(
1565
1565
  da,
1566
1566
  {
1567
1567
  name: "maritalStatus",
@@ -1576,10 +1576,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1576
1576
  "data-testid": "marritalStatus-radio",
1577
1577
  children: [
1578
1578
  /* @__PURE__ */ i(
1579
- Se,
1579
+ Ee,
1580
1580
  {
1581
1581
  value: "Single",
1582
- control: /* @__PURE__ */ i(Ee, {}),
1582
+ control: /* @__PURE__ */ i(Re, {}),
1583
1583
  label: "Single",
1584
1584
  slotProps: {
1585
1585
  typography: {
@@ -1590,10 +1590,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1590
1590
  }
1591
1591
  ),
1592
1592
  /* @__PURE__ */ i(
1593
- Se,
1593
+ Ee,
1594
1594
  {
1595
1595
  value: "Married",
1596
- control: /* @__PURE__ */ i(Ee, {}),
1596
+ control: /* @__PURE__ */ i(Re, {}),
1597
1597
  label: "Married",
1598
1598
  slotProps: {
1599
1599
  typography: {
@@ -1604,10 +1604,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1604
1604
  }
1605
1605
  ),
1606
1606
  /* @__PURE__ */ i(
1607
- Se,
1607
+ Ee,
1608
1608
  {
1609
1609
  value: "Divorced",
1610
- control: /* @__PURE__ */ i(Ee, {}),
1610
+ control: /* @__PURE__ */ i(Re, {}),
1611
1611
  label: "Divorced",
1612
1612
  slotProps: {
1613
1613
  typography: {
@@ -1644,20 +1644,20 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1644
1644
  errors: E,
1645
1645
  successMessage: s,
1646
1646
  onChange: async (r) => {
1647
- await ha("userName") && Xa(r);
1647
+ await ha("userName") && Qa(r);
1648
1648
  },
1649
1649
  disabled: C && (M.isTecho || M.isEkavach) && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users.userName"], void 0, !0),
1650
1650
  autoComplete: "off",
1651
1651
  dataTestId: "username-input"
1652
1652
  }
1653
1653
  ) }),
1654
- !K && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ $(I, { container: !0, spacing: 2, className: "flex items-start", children: [
1654
+ !K && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ $(I, { container: !0, spacing: 2, className: "flex items-start", children: [
1655
1655
  /* @__PURE__ */ $(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: [
1656
1656
  /* @__PURE__ */ i(Y, { label: "Password", required: !0, children: /* @__PURE__ */ i(
1657
1657
  qa,
1658
1658
  {
1659
1659
  control: x,
1660
- showPassword: Ce,
1660
+ showPassword: Ne,
1661
1661
  togglePasswordVisibility: () => Fe((r) => !r),
1662
1662
  name: "password",
1663
1663
  errors: E,
@@ -1667,7 +1667,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1667
1667
  }
1668
1668
  ) }),
1669
1669
  /* @__PURE__ */ i(Y, { children: /* @__PURE__ */ i(
1670
- Fi,
1670
+ Oi,
1671
1671
  {
1672
1672
  password: je("password"),
1673
1673
  "data-testid": "password-strength-bar"
@@ -1699,13 +1699,13 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1699
1699
  required: l == null ? void 0 : l.isContactNumMandatory,
1700
1700
  "data-testid": "phone-number-label",
1701
1701
  children: /* @__PURE__ */ i(
1702
- Ha,
1702
+ Za,
1703
1703
  {
1704
1704
  control: x,
1705
1705
  name: "contactNumber",
1706
1706
  disabled: C && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users.canManagePhonenumber"]),
1707
1707
  errors: E,
1708
- onBlur: Qa,
1708
+ onBlur: Va,
1709
1709
  required: l == null ? void 0 : l.isContactNumMandatory,
1710
1710
  dataTestId: "phone-number-input"
1711
1711
  }
@@ -1769,7 +1769,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1769
1769
  )
1770
1770
  }
1771
1771
  ) }),
1772
- (l == null ? void 0 : l.isBankDetailsRequired) && /* @__PURE__ */ $(Ne, { children: [
1772
+ (l == null ? void 0 : l.isBankDetailsRequired) && /* @__PURE__ */ $(Ae, { children: [
1773
1773
  /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Bank Name", required: l == null ? void 0 : l.isBankDetailsMandatory, children: Z.length > 0 ? /* @__PURE__ */ i(
1774
1774
  oa,
1775
1775
  {
@@ -1893,12 +1893,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1893
1893
  }
1894
1894
  },
1895
1895
  onChange: async (r) => {
1896
- await ei(r.target.value);
1896
+ await ai(r.target.value);
1897
1897
  },
1898
1898
  dataTestId: "pfms-code-input"
1899
1899
  }
1900
1900
  ),
1901
- me && /* @__PURE__ */ i(Ae, { color: "error", variant: "caption", children: "PFMS code is already linked to other user." })
1901
+ me && /* @__PURE__ */ i(Se, { color: "error", variant: "caption", children: "PFMS code is already linked to other user." })
1902
1902
  ]
1903
1903
  }
1904
1904
  ) }),
@@ -1939,12 +1939,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1939
1939
  }
1940
1940
  },
1941
1941
  onChange: async (r) => {
1942
- await ai(r.target.value);
1942
+ await ii(r.target.value);
1943
1943
  },
1944
1944
  dataTestId: "sna-beneficiary-id-input"
1945
1945
  }
1946
1946
  ),
1947
- ue && /* @__PURE__ */ i(Ae, { color: "error", variant: "caption", children: ue })
1947
+ ue && /* @__PURE__ */ i(Se, { color: "error", variant: "caption", children: ue })
1948
1948
  ]
1949
1949
  }
1950
1950
  ) }),
@@ -1960,7 +1960,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1960
1960
  disabled: C && !M.hasCheckRights(t == null ? void 0 : t["update.manage.users.canManagePreferredLanguage"]),
1961
1961
  errors: E,
1962
1962
  onChange: (r) => {
1963
- Da(r);
1963
+ Wa(r);
1964
1964
  },
1965
1965
  dataTestId: "preferred-language-dropdown"
1966
1966
  }
@@ -1993,7 +1993,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
1993
1993
  }
1994
1994
  ) })
1995
1995
  ] }) }) }),
1996
- (N == null ? void 0 : N.loginCode) && /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Login Code", children: /* @__PURE__ */ i(
1996
+ (N == null ? void 0 : N.loginCode) && ((Aa = Ie.profile) == null ? void 0 : Aa.showLoginCode) !== !1 && /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(Y, { label: "Login Code", children: /* @__PURE__ */ i(
1997
1997
  pe,
1998
1998
  {
1999
1999
  control: x,
@@ -2009,13 +2009,13 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2009
2009
  }
2010
2010
  ) }) }),
2011
2011
  (l == null ? void 0 : l.isSmagTrainedMandatory) && /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ $(ca, { component: "fieldset", children: [
2012
- /* @__PURE__ */ i(qi, { component: "legend", children: O("Is User SMAG Trained (Safe Motherhood Action Group)") }),
2012
+ /* @__PURE__ */ i(_i, { component: "legend", children: O("Is User SMAG Trained (Safe Motherhood Action Group)") }),
2013
2013
  /* @__PURE__ */ i(
2014
2014
  da,
2015
2015
  {
2016
2016
  name: "isUserSmagTrained",
2017
2017
  control: x,
2018
- render: ({ field: r, fieldState: p }) => /* @__PURE__ */ $(Ne, { children: [
2018
+ render: ({ field: r, fieldState: p }) => /* @__PURE__ */ $(Ae, { children: [
2019
2019
  /* @__PURE__ */ $(
2020
2020
  pa,
2021
2021
  {
@@ -2024,19 +2024,19 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2024
2024
  "data-testid": "smag-trained-radio-group",
2025
2025
  children: [
2026
2026
  /* @__PURE__ */ i(
2027
- Se,
2027
+ Ee,
2028
2028
  {
2029
2029
  value: "true",
2030
- control: /* @__PURE__ */ i(Ee, {}),
2030
+ control: /* @__PURE__ */ i(Re, {}),
2031
2031
  label: "Yes",
2032
2032
  "data-testid": "smag-trained-yes"
2033
2033
  }
2034
2034
  ),
2035
2035
  /* @__PURE__ */ i(
2036
- Se,
2036
+ Ee,
2037
2037
  {
2038
2038
  value: "false",
2039
- control: /* @__PURE__ */ i(Ee, {}),
2039
+ control: /* @__PURE__ */ i(Re, {}),
2040
2040
  label: "No",
2041
2041
  "data-testid": "smag-trained-no"
2042
2042
  }
@@ -2057,8 +2057,8 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2057
2057
  ),
2058
2058
  u && /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 6 }, className: "mx-0", children: /* @__PURE__ */ $(I, { container: !0, direction: "column", spacing: 0, className: "h-full", children: [
2059
2059
  /* @__PURE__ */ $(I, { children: [
2060
- /* @__PURE__ */ i(Sa, { children: /* @__PURE__ */ i(
2061
- Oi,
2060
+ /* @__PURE__ */ i(Ea, { children: /* @__PURE__ */ i(
2061
+ Gi,
2062
2062
  {
2063
2063
  requiredUptoLevel: 0,
2064
2064
  selectedLocation: Pe,
@@ -2124,28 +2124,28 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2124
2124
  variant: "contained",
2125
2125
  color: "primary",
2126
2126
  size: "small",
2127
- onClick: () => Va(),
2127
+ onClick: () => ei(),
2128
2128
  className: "mt-[1rem]",
2129
2129
  "data-testid": "add-area-button",
2130
2130
  children: O("Add")
2131
2131
  }
2132
2132
  ),
2133
- (De == null ? void 0 : De.message) && /* @__PURE__ */ i(Ae, { color: "error", className: "mt-[0.5rem]", "data-testid": "areas-error", children: De.message })
2133
+ (De == null ? void 0 : De.message) && /* @__PURE__ */ i(Se, { color: "error", className: "mt-[0.5rem]", "data-testid": "areas-error", children: De.message })
2134
2134
  ] })
2135
2135
  ] }),
2136
2136
  /* @__PURE__ */ i(xa, { className: "my-2" }),
2137
2137
  /* @__PURE__ */ i(I, { container: !0, children: /* @__PURE__ */ $(I, { item: !0, size: { xs: 11 }, children: [
2138
- /* @__PURE__ */ i(Ae, { className: "mb-3 text-customBlue", variant: "h6", "data-testid": "added-areas-header", children: O("Added Areas") }),
2138
+ /* @__PURE__ */ i(Se, { className: "mb-3 text-customBlue", variant: "h6", "data-testid": "added-areas-header", children: O("Added Areas") }),
2139
2139
  /* @__PURE__ */ i(
2140
2140
  ga,
2141
2141
  {
2142
2142
  ref: T,
2143
2143
  className: `flex flex-wrap gap-2 border ${E.addedareas ? "border-red-500" : "border-gray-300"} rounded-4xl p-1.5 pl-3 pr-3 overflow-y-auto cursor-pointer min-h-9 max-h-[${m}] box-border`,
2144
2144
  children: G && G.length > 0 ? G.map((r, p) => /* @__PURE__ */ i(
2145
- _i,
2145
+ Ii,
2146
2146
  {
2147
2147
  label: r == null ? void 0 : r.locationFullName,
2148
- onDelete: () => Wa(r),
2148
+ onDelete: () => Ka(r),
2149
2149
  sx: {
2150
2150
  height: "auto",
2151
2151
  "& .MuiChip-label": {
@@ -2156,17 +2156,17 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2156
2156
  }
2157
2157
  },
2158
2158
  p
2159
- )) : /* @__PURE__ */ i(Ae, { variant: "body2", className: "p-1 text-gray-400", children: "Select Area" })
2159
+ )) : /* @__PURE__ */ i(Se, { variant: "body2", className: "p-1 text-gray-400", children: "Select Area" })
2160
2160
  }
2161
2161
  ),
2162
- (Xe == null ? void 0 : Xe.message) && /* @__PURE__ */ i(Ae, { color: "error", className: "mt-[0.5rem]", children: Xe.message })
2162
+ (Xe == null ? void 0 : Xe.message) && /* @__PURE__ */ i(Se, { color: "error", className: "mt-[0.5rem]", children: Xe.message })
2163
2163
  ] }) }),
2164
- G.length > 0 && Te.length > 0 && /* @__PURE__ */ $(Ne, { children: [
2164
+ G.length > 0 && Te.length > 0 && /* @__PURE__ */ $(Ae, { children: [
2165
2165
  /* @__PURE__ */ i(xa, { className: "my-2" }),
2166
2166
  /* @__PURE__ */ i(I, { item: !0, container: !0, children: /* @__PURE__ */ $(I, { item: !0, size: { xs: 11 }, children: [
2167
- /* @__PURE__ */ i(Ae, { variant: "h6", "data-testid": "health-infra-header", className: "text-customBlue", children: O("Health InfraStructure") }),
2167
+ /* @__PURE__ */ i(Se, { variant: "h6", "data-testid": "health-infra-header", className: "text-customBlue", children: O("Health InfraStructure") }),
2168
2168
  /* @__PURE__ */ i(
2169
- pi,
2169
+ bi,
2170
2170
  {
2171
2171
  options: Te,
2172
2172
  name: "healthInfrastructures",
@@ -2189,10 +2189,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2189
2189
  defaultValue: "",
2190
2190
  render: ({ field: r }) => /* @__PURE__ */ $(pa, { row: !0, ...r, "data-testid": "type-of-user-radio", children: [
2191
2191
  /* @__PURE__ */ i(
2192
- Se,
2192
+ Ee,
2193
2193
  {
2194
2194
  value: "MBBS",
2195
- control: /* @__PURE__ */ i(Ee, {}),
2195
+ control: /* @__PURE__ */ i(Re, {}),
2196
2196
  label: "MBBS",
2197
2197
  slotProps: {
2198
2198
  typography: {
@@ -2203,10 +2203,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2203
2203
  }
2204
2204
  ),
2205
2205
  /* @__PURE__ */ i(
2206
- Se,
2206
+ Ee,
2207
2207
  {
2208
2208
  value: "Ayush",
2209
- control: /* @__PURE__ */ i(Ee, {}),
2209
+ control: /* @__PURE__ */ i(Re, {}),
2210
2210
  label: "Ayush",
2211
2211
  slotProps: {
2212
2212
  typography: {
@@ -2217,10 +2217,10 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2217
2217
  }
2218
2218
  ),
2219
2219
  /* @__PURE__ */ i(
2220
- Se,
2220
+ Ee,
2221
2221
  {
2222
2222
  value: "BDS",
2223
- control: /* @__PURE__ */ i(Ee, {}),
2223
+ control: /* @__PURE__ */ i(Re, {}),
2224
2224
  label: "BDS",
2225
2225
  slotProps: {
2226
2226
  typography: {
@@ -2234,7 +2234,7 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2234
2234
  }
2235
2235
  ) }) }) })
2236
2236
  ] }) }),
2237
- w && /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 6 }, className: "mx-0", children: /* @__PURE__ */ i(I, { container: !0, direction: "column", spacing: 0, className: "h-full", children: /* @__PURE__ */ $(I, { container: !0, children: [
2237
+ w && /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(I, { item: !0, size: { xs: 12, sm: 6 }, className: "mx-0", children: /* @__PURE__ */ i(I, { container: !0, direction: "column", spacing: 0, className: "h-full", children: /* @__PURE__ */ $(I, { container: !0, children: [
2238
2238
  /* @__PURE__ */ i(I, { item: !0, size: { xs: 11 }, children: /* @__PURE__ */ i(Y, { label: "Specialization", required: !0, children: /* @__PURE__ */ i(
2239
2239
  oa,
2240
2240
  {
@@ -2278,12 +2278,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2278
2278
  ] }) })
2279
2279
  ] }) }) }) }),
2280
2280
  /* @__PURE__ */ i(xa, { className: "my-2" }),
2281
- /* @__PURE__ */ i(I, { item: !0, container: !0, size: { xs: 12 }, justifyContent: "flex-end", children: /* @__PURE__ */ $(Ne, { children: [
2281
+ /* @__PURE__ */ i(I, { item: !0, container: !0, size: { xs: 12 }, justifyContent: "flex-end", children: /* @__PURE__ */ $(Ae, { children: [
2282
2282
  /* @__PURE__ */ i(
2283
2283
  ta,
2284
2284
  {
2285
2285
  size: "small",
2286
- onClick: Ja,
2286
+ onClick: Xa,
2287
2287
  variant: "contained",
2288
2288
  color: "secondary",
2289
2289
  "data-testid": "cancel-button",
@@ -2309,12 +2309,12 @@ const $a = /* @__PURE__ */ Si(Ui), $i = Oa(() => import("./ChangePasswordModalCo
2309
2309
  }
2310
2310
  ) })
2311
2311
  ] });
2312
- }, fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2312
+ }, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2313
2313
  __proto__: null,
2314
- default: Gi
2314
+ default: Yi
2315
2315
  }, Symbol.toStringTag, { value: "Module" }));
2316
2316
  export {
2317
- fr as M,
2317
+ vr as M,
2318
2318
  qa as P
2319
2319
  };
2320
- //# sourceMappingURL=ManageUser-DZltBina.js.map
2320
+ //# sourceMappingURL=ManageUser-DchUMAyC.js.map