@argusoft/medplat-core 1.0.30 → 1.0.32

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 (226) hide show
  1. package/dist/{AccessRights-xrday-L1.js → AccessRights-DBjTQA1-.js} +395 -390
  2. package/dist/AccessRights-DBjTQA1-.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-DmRW5bhm-Bk1szrjI.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +43 -43
  9. package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-BsS5IQh3-B03lWRY5.js → CategoriesPage-BprQEYJw-CclreTv1.js} +109 -102
  11. package/dist/CategoriesPage-BprQEYJw-CclreTv1.js.map +1 -0
  12. package/dist/{ChangePasswordModalCore-BPsJquTS.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-BPsJquTS.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/ConditionConfig-Bpm6OoV5.js +408 -0
  15. package/dist/ConditionConfig-Bpm6OoV5.js.map +1 -0
  16. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +32 -32
  17. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/EventConfig-BY2cgGyx.js +27 -0
  21. package/dist/{EventConfig-BmLemzX3.js.map → EventConfig-BY2cgGyx.js.map} +1 -1
  22. package/dist/EventConfigurations-B-z7xHh_.js +544 -0
  23. package/dist/EventConfigurations-B-z7xHh_.js.map +1 -0
  24. package/dist/EventConfigurations.css +1 -1
  25. package/dist/EventsExceptionModal-DafomIv6.js +188 -0
  26. package/dist/EventsExceptionModal-DafomIv6.js.map +1 -0
  27. package/dist/EventsUi-Dl_yckSA.js +263 -0
  28. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  29. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  30. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  31. package/dist/{FeatureMenu-DYJmDt7q.js → FeatureMenu-Kc73yPHH.js} +9 -5
  32. package/dist/FeatureMenu-Kc73yPHH.js.map +1 -0
  33. package/dist/{FhirServerList-DuTwnngN.js → FhirServerList-CrIHMAxz.js} +16 -16
  34. package/dist/{FhirServerList-DuTwnngN.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  35. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  36. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  37. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  38. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  39. package/dist/{GrantPermissionModal-BDN66Atn.js → GrantPermissionModal-D7iNZd0M.js} +54 -51
  40. package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
  41. package/dist/ImmunizationConfigurationBase-lKsJZMak.js +8060 -0
  42. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  43. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  44. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  45. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  46. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  47. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  48. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  49. package/dist/ManageEventConfiguration-DqPbn3Oi.js +1216 -0
  50. package/dist/ManageEventConfiguration-DqPbn3Oi.js.map +1 -0
  51. package/dist/ManageEventConfiguration.css +1 -1
  52. package/dist/ManageRole-CyfpySt9.js +981 -0
  53. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  54. package/dist/{ManageUser-DCFkUMV9.js → ManageUser-Dm0l833u.js} +286 -286
  55. package/dist/{ManageUser-DCFkUMV9.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  56. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +46 -46
  57. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  58. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  59. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  60. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  61. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  62. package/dist/MobileTypeEventConfigModal-DodU3beR.js +752 -0
  63. package/dist/MobileTypeEventConfigModal-DodU3beR.js.map +1 -0
  64. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  65. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  66. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  67. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  68. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +58 -58
  69. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  70. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +37 -37
  71. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  72. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  73. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  74. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  75. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  76. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  77. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  78. package/dist/{PickupsPage-Ctpghavs-CUp4uIZq.js → PickupsPage-BWblMlic-CWkgeBw0.js} +132 -132
  79. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  80. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  81. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  82. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  83. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  84. package/dist/{ProductsPage-CupVmOD4-D45a_hf-.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +44 -43
  85. package/dist/ProductsPage-BI22nPb4-CQBjnc-n.js.map +1 -0
  86. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  87. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  88. package/dist/{PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +428 -418
  89. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  90. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +65 -65
  91. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  92. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +55 -55
  93. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  94. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  95. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  96. package/dist/Roles-BoNGJhtR.js +19 -0
  97. package/dist/Roles-BoNGJhtR.js.map +1 -0
  98. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +39 -39
  99. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  100. package/dist/{SalesPage-D18DCseD-BxktGDRQ.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +61 -61
  101. package/dist/{SalesPage-D18DCseD-BxktGDRQ.js.map → SalesPage-eF9Yr42z-BQ9FlXC3.js.map} +1 -1
  102. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  103. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  104. package/dist/{ShowFlywayQuery-D1y_4A1u.js → ShowFlywayQuery-DIOUdYfG.js} +26 -19
  105. package/dist/{ShowFlywayQuery-D1y_4A1u.js.map → ShowFlywayQuery-DIOUdYfG.js.map} +1 -1
  106. package/dist/{StorageUnitsPage-7EqwuMOI-BwUso1Th.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +253 -223
  107. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  108. package/dist/{SubMenu-eEDhZUvh.js → SubMenu-OO2zhKiu.js} +5 -3
  109. package/dist/SubMenu-OO2zhKiu.js.map +1 -0
  110. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  111. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  112. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  113. package/dist/TableList-B5tX4wII.js.map +1 -0
  114. package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +195 -180
  115. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  116. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  117. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  118. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  119. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  120. package/dist/TypeConfiguration-EaFiOzRE.js +114 -0
  121. package/dist/TypeConfiguration-EaFiOzRE.js.map +1 -0
  122. package/dist/UserList-Cf5B-o_1.js +1904 -0
  123. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  124. package/dist/Users-MC7txo1V.js +43 -0
  125. package/dist/{Users-Bpc4Sazd.js.map → Users-MC7txo1V.js.map} +1 -1
  126. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  127. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  128. package/dist/VaccineEducation.css +1 -0
  129. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  130. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  131. package/dist/VaccineEducationConfigurator.css +4 -0
  132. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  133. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  134. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  135. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  136. package/dist/{constants-ClZJY2x1-MkSWn6TZ.js → constants-BTpJFQe_-CYPZIqQF.js} +166 -56
  137. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  138. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  139. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  140. package/dist/index-mfoqII2U.js +524 -0
  141. package/dist/index-mfoqII2U.js.map +1 -0
  142. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  143. package/dist/index-o8Pyt1Bt.js.map +1 -0
  144. package/dist/index.css +1 -1
  145. package/dist/index.js +1 -1
  146. package/dist/index.lib-BySa9-Z-.js +936 -0
  147. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  148. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  149. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  150. package/package.json +5 -1
  151. package/dist/AccessRights-xrday-L1.js.map +0 -1
  152. package/dist/AddMenuConfiguration-e5BVXhmw.js +0 -8547
  153. package/dist/AddMenuConfiguration-e5BVXhmw.js.map +0 -1
  154. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +0 -1
  155. package/dist/ConditionConfig-Ddz9halE.js +0 -395
  156. package/dist/ConditionConfig-Ddz9halE.js.map +0 -1
  157. package/dist/ConditionConfig.css +0 -1
  158. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  159. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  160. package/dist/EventConfig-BmLemzX3.js +0 -26
  161. package/dist/EventConfigurations-Bzh1qWXU.js +0 -450
  162. package/dist/EventConfigurations-Bzh1qWXU.js.map +0 -1
  163. package/dist/EventsExceptionModal-B2SRrnB1.js +0 -200
  164. package/dist/EventsExceptionModal-B2SRrnB1.js.map +0 -1
  165. package/dist/EventsSkeleton-BIcPks4T.js +0 -61
  166. package/dist/EventsSkeleton-BIcPks4T.js.map +0 -1
  167. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js +0 -79
  168. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js.map +0 -1
  169. package/dist/FeatureMenu-DYJmDt7q.js.map +0 -1
  170. package/dist/GrantPermissionModal-BDN66Atn.js.map +0 -1
  171. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js +0 -7639
  172. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +0 -1
  173. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js +0 -665
  174. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js.map +0 -1
  175. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  176. package/dist/ManageEventConfiguration-CoYcpjR9.js +0 -1085
  177. package/dist/ManageEventConfiguration-CoYcpjR9.js.map +0 -1
  178. package/dist/ManageRole-CNZBRKGU.js +0 -776
  179. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  180. package/dist/MobileAnalytics-pQoE8cG1.js +0 -16888
  181. package/dist/MobileAnalytics-pQoE8cG1.js.map +0 -1
  182. package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
  183. package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
  184. package/dist/MobileTypeEventConfigModal-BeveaX0C.js +0 -783
  185. package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +0 -1
  186. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  187. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js +0 -2046
  188. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +0 -1
  189. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  190. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js +0 -783
  191. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map +0 -1
  192. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +0 -1
  193. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js +0 -599
  194. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js.map +0 -1
  195. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js +0 -1302
  196. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +0 -1
  197. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +0 -1
  198. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js +0 -648
  199. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +0 -1
  200. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +0 -1
  201. package/dist/Roles-BIyiic67.js +0 -14
  202. package/dist/Roles-BIyiic67.js.map +0 -1
  203. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +0 -747
  204. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +0 -1
  205. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +0 -1
  206. package/dist/SubMenu-eEDhZUvh.js.map +0 -1
  207. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  208. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  209. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js.map +0 -1
  210. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js +0 -315
  211. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map +0 -1
  212. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js +0 -476
  213. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +0 -1
  214. package/dist/TypeConfiguration-3O6ABrK-.js +0 -117
  215. package/dist/TypeConfiguration-3O6ABrK-.js.map +0 -1
  216. package/dist/UserList-DgPxsnj2.js +0 -1129
  217. package/dist/UserList-DgPxsnj2.js.map +0 -1
  218. package/dist/Users-Bpc4Sazd.js +0 -41
  219. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js +0 -321
  220. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js.map +0 -1
  221. package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +0 -1
  222. package/dist/dashboardLayoutUtils-D1xCAxp3.js +0 -405
  223. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
  224. package/dist/index-D9YNFPn9.js.map +0 -1
  225. package/dist/index.lib-Dn8PMkeD.js +0 -862
  226. package/dist/index.lib-Dn8PMkeD.js.map +0 -1
@@ -0,0 +1,1904 @@
1
+ import { jsx as e, jsxs as a, Fragment as Te } from "react/jsx-runtime";
2
+ import { useTranslateProvider as Xe } from "@/common/languageTranslator/TranslationContext";
3
+ import { g as $t, a as ma, b as It, c as ha, t as fa, d as ua, e as wt } from "./Users-MC7txo1V.js";
4
+ import { showToast as B } from "@/common/toaster/toaster.jsx";
5
+ import pa from "@/hooks/usePagination.js";
6
+ import { getAssignedFeatures as ba } from "@/utils/feature.js";
7
+ import Ct from "@/views/custom-components/CustomConfirmationModal.jsx";
8
+ import xa from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
9
+ import ga from "@/views/custom-components/SideOverlay.jsx";
10
+ import A from "prop-types";
11
+ import { useState as c, useEffect as ue, Suspense as Na, lazy as ya, useRef as Ke, useMemo as Qe, useCallback as kt } from "react";
12
+ import { InputLabel as qe, Switch as Aa, Button as ae, Modal as va, Box as Q, Paper as Ia, Typography as p, IconButton as Re, Alert as wa, CircularProgress as Me, Chip as _e, Tooltip as Se, TextField as Fe, InputAdornment as $e, FormControlLabel as Ca, Checkbox as ka, Card as Ta } from "@mui/material";
13
+ import le from "@mui/material/Grid2";
14
+ import Tt from "@/views/custom-components/CustomDropdown";
15
+ import { useForm as Sa, FormProvider as Ba } from "react-hook-form";
16
+ import jt from "@/hooks/useTrackEvent";
17
+ import { showToast as Ea } from "@/common/toaster/toaster";
18
+ import { useDispatch as Lt, useSelector as St } from "react-redux";
19
+ import { setUserDetails as Je } from "@/store/reducers/AuthenticationReducer";
20
+ import { useLocation as Vt, useNavigate as Ua } from "react-router";
21
+ import { U as Oa, a as Ra, b as Ma, c as Ha } from "./UserListSkeleton-BMKANCtW.js";
22
+ import Ft from "@/common/config/implementationConfig";
23
+ import za from "@mui/icons-material/CloseRounded";
24
+ import Bt from "@mui/icons-material/CheckCircleRounded";
25
+ import je from "@mui/icons-material/ContentCopyRounded";
26
+ import De from "@mui/icons-material/BadgeRounded";
27
+ import Et from "@mui/icons-material/VerifiedUserRounded";
28
+ import _a from "@mui/icons-material/PhoneIphoneRounded";
29
+ import Ut from "@mui/icons-material/FingerprintRounded";
30
+ import $a from "@mui/icons-material/ArrowBackRounded";
31
+ import Ot from "@mui/icons-material/LocationOnRounded";
32
+ import Rt from "@mui/icons-material/ShieldRounded";
33
+ import Mt from "@mui/icons-material/QrCode2Rounded";
34
+ import ja from "@mui/icons-material/RefreshRounded";
35
+ import Le from "@mui/icons-material/CheckRounded";
36
+ import La from "@mui/icons-material/KeyRounded";
37
+ import { useTheme as Va, alpha as K } from "@mui/material/styles";
38
+ import { execute as Fa } from "@/common/services/QueryBuilder";
39
+ import { faPen as Pa, faBars as Wa, faFilePdf as Ht, faFileExcel as zt, faUsers as Ga, faCheckCircle as Ya, faTimesCircle as qa, faUserShield as Da, faPhone as Ka, faHospital as Qa } from "@fortawesome/free-solid-svg-icons";
40
+ import { FontAwesomeIcon as xe } from "@fortawesome/react-fontawesome";
41
+ import { F as Ja } from "./FileSaver.min-CN9EpL2h.js";
42
+ import { x as ke } from "./xlsx.min-D1LFqt_b.js";
43
+ import Xa from "@/hooks/useDownloadPdf.js";
44
+ import Ve from "@/views/custom-components/CustomStatsComponent.jsx";
45
+ import ye from "@/common/services/util/GeneralUtil.js";
46
+ import './UserList.css';const Za = ya(
47
+ () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
48
+ ), Pt = ({
49
+ handleOverlayState: Y,
50
+ setIsLoading: C,
51
+ isLoading: n,
52
+ setLocationId: q,
53
+ setRoleDetails: ce,
54
+ roleDetails: s,
55
+ status: v,
56
+ setStatus: me,
57
+ selectedLocation: w,
58
+ setSelectedLocation: F,
59
+ filterRequired: $,
60
+ setUserFilterPreference: se,
61
+ user: j,
62
+ setFilterRequired: x,
63
+ locationIdRef: ge,
64
+ locations: pe,
65
+ setLocations: ne,
66
+ setAdminRoleIdsStats: d
67
+ }) => {
68
+ const [oe, be] = c([]), D = jt(), { translate: h } = Xe(), T = Sa({ mode: "onChange" }), Ae = Lt(), S = Vt(), {
69
+ control: he,
70
+ handleSubmit: g,
71
+ formState: { errors: J },
72
+ getValues: ve,
73
+ setValue: fe,
74
+ clearErrors: ee
75
+ } = T, E = async () => {
76
+ var R, te, L, M;
77
+ try {
78
+ const { data: U } = await $t({}, { showLoader: !1 });
79
+ be(U), s != null && s.id && fe("roleId", s.id), v && fe("status", v), ((R = Object.keys((j == null ? void 0 : j.userFilterPreference) || {})) == null ? void 0 : R.length) > 0 && ((te = S == null ? void 0 : S.state) == null ? void 0 : te.fromManageUser) === !0 && (fe("roleId", (L = j == null ? void 0 : j.userFilterPreference) == null ? void 0 : L.roleid), fe("status", (M = j == null ? void 0 : j.userFilterPreference) == null ? void 0 : M.status));
80
+ } catch (U) {
81
+ console.error(U);
82
+ }
83
+ };
84
+ ue(() => {
85
+ E();
86
+ }, []);
87
+ const re = async () => {
88
+ var R, te;
89
+ try {
90
+ C((ie) => !ie), d([]), D("button_click", {
91
+ button_name: "User Filter-filter-button",
92
+ button_type: "filter",
93
+ button_id: "userfilterform-search-button"
94
+ });
95
+ const L = ve("status") || "BOTH";
96
+ L && me(L);
97
+ const M = {
98
+ limit: 50,
99
+ offset: 0,
100
+ order: "asc",
101
+ orderby: "userName",
102
+ status: L
103
+ }, U = (te = (R = w == null ? void 0 : w.finalSelected) == null ? void 0 : R.optionSelected) == null ? void 0 : te.id;
104
+ U ? (M.locationId = U, q(U)) : q(null);
105
+ const P = oe.find(
106
+ (ie) => ie.id === ve("roleId")
107
+ );
108
+ P != null && P.id ? (M.roleid = P.id, ce(P)) : ce(null), se(M), Ae(
109
+ Je({
110
+ ...j,
111
+ userFilterPreference: {
112
+ ...M,
113
+ filterRequired: $,
114
+ selectedLocation: w
115
+ }
116
+ })
117
+ ), D("filter", {
118
+ filter_type: ["location", "role", "status"],
119
+ ...M
120
+ }), C((ie) => !ie), Y();
121
+ } catch (L) {
122
+ Ea({ message: `error : ${L == null ? void 0 : L.message}`, type: "error" }), C((M) => !M);
123
+ }
124
+ };
125
+ return /* @__PURE__ */ e(Ba, { ...T, children: /* @__PURE__ */ a(
126
+ le,
127
+ {
128
+ className: "m-[1rem]",
129
+ component: "form",
130
+ onSubmit: (R) => {
131
+ if (Object.keys(J).length > 0) {
132
+ R.preventDefault();
133
+ return;
134
+ }
135
+ g(re)(R);
136
+ },
137
+ "data-testid": "userfilterform-container-grid",
138
+ noValidate: !0,
139
+ children: [
140
+ /* @__PURE__ */ e(Oa, { isLoading: n, children: /* @__PURE__ */ a(le, { className: "flex items-center", children: [
141
+ /* @__PURE__ */ a(qe, { children: [
142
+ h("Location Filter Required"),
143
+ " :"
144
+ ] }),
145
+ /* @__PURE__ */ e(
146
+ Aa,
147
+ {
148
+ defaultChecked: !0,
149
+ checked: $,
150
+ onChange: (R) => {
151
+ x(R.target.checked), R.target.checked || (ge.current = null, ee("level1"));
152
+ }
153
+ }
154
+ )
155
+ ] }) }),
156
+ $ === !0 && /* @__PURE__ */ e(Na, { children: /* @__PURE__ */ e(
157
+ Za,
158
+ {
159
+ childForm: !0,
160
+ selectedLocation: w,
161
+ setSelectedLocation: F,
162
+ templateType: "inline",
163
+ disabled: n,
164
+ locations: pe,
165
+ setLocations: ne,
166
+ fetchAccordingToUserAoi: Ft.user.filterLocationsByUserAoi
167
+ }
168
+ ) }),
169
+ /* @__PURE__ */ e(Ra, { isLoading: n, children: /* @__PURE__ */ a(le, { children: [
170
+ /* @__PURE__ */ e(qe, { "data-testid": "userfilterform-role-label", children: h("Role") }),
171
+ /* @__PURE__ */ e(
172
+ Tt,
173
+ {
174
+ control: he,
175
+ name: "roleId",
176
+ options: oe,
177
+ displayName: "name",
178
+ optionValue: "id",
179
+ errors: J,
180
+ dataTestId: "userfilterform-role-dropdown",
181
+ className: "mb-[0.3125rem]"
182
+ }
183
+ ),
184
+ /* @__PURE__ */ e(
185
+ qe,
186
+ {
187
+ className: "mt-2",
188
+ "data-testid": "userfilterform-status-label",
189
+ children: h("Status")
190
+ }
191
+ ),
192
+ /* @__PURE__ */ e(
193
+ Tt,
194
+ {
195
+ control: he,
196
+ name: "status",
197
+ defaultValue: "BOTH",
198
+ options: ["ACTIVE", "INACTIVE", "BOTH"],
199
+ errors: J,
200
+ dataTestId: "userfilterform-status-dropdown"
201
+ }
202
+ ),
203
+ /* @__PURE__ */ a(
204
+ le,
205
+ {
206
+ container: !0,
207
+ spacing: 1,
208
+ marginTop: 1,
209
+ justifyContent: "flex-end",
210
+ "data-testid": "userfilterform-buttons-container",
211
+ children: [
212
+ /* @__PURE__ */ e(le, { item: !0, "data-testid": "userfilterform-closebutton-item", children: /* @__PURE__ */ e(
213
+ ae,
214
+ {
215
+ variant: "contained",
216
+ color: "secondary",
217
+ onClick: () => Y(),
218
+ "data-testid": "userfilterform-close-button",
219
+ children: h("Close")
220
+ }
221
+ ) }),
222
+ /* @__PURE__ */ e(le, { item: !0, "data-testid": "userfilterform-searchbutton-item", children: /* @__PURE__ */ e(
223
+ ae,
224
+ {
225
+ variant: "contained",
226
+ type: "submit",
227
+ "data-testid": "userfilterform-search-button",
228
+ children: h("Search")
229
+ }
230
+ ) })
231
+ ]
232
+ }
233
+ )
234
+ ] }) })
235
+ ]
236
+ }
237
+ ) });
238
+ };
239
+ Pt.propTypes = {
240
+ handleOverlayState: A.any,
241
+ setUsersData: A.any,
242
+ setIsLoading: A.any,
243
+ isLoading: A.any,
244
+ setLocationId: A.func,
245
+ setRoleDetails: A.func,
246
+ roleDetails: A.any,
247
+ status: A.any,
248
+ setStatus: A.any,
249
+ selectedLocation: A.any,
250
+ setSelectedLocation: A.any,
251
+ filterRequired: A.any,
252
+ setFilterRequired: A.any,
253
+ setUserFilterPreference: A.any,
254
+ user: A.any,
255
+ resetLocationDirective: A.any,
256
+ locationIdRef: A.any,
257
+ setSelectedLocationId: A.any,
258
+ locations: A.any,
259
+ setLocations: A.any,
260
+ setAdminRoleIdsStats: A.any
261
+ };
262
+ const el = (Y) => {
263
+ const C = Y.replace(/\D/g, "").slice(0, 12), n = [];
264
+ for (let q = 0; q < C.length; q += 4)
265
+ n.push(C.slice(q, q + 4));
266
+ return n.join(" ");
267
+ }, _t = (Y) => {
268
+ const C = Y.replace(/\s+/g, "");
269
+ return /^[2-9]{1}[0-9]{11}$/.test(C);
270
+ };
271
+ function Wt({
272
+ open: Y,
273
+ onClose: C,
274
+ user: n,
275
+ mode: q = "CREATE",
276
+ // "CREATE" or "VIEW"
277
+ onSuccess: ce
278
+ }) {
279
+ const { translate: s } = Xe(), [v, me] = c(1), [w, F] = c(q), [$, se] = c(""), [j, x] = c(!1), [ge, pe] = c(""), [ne, d] = c(""), [oe, be] = c(""), [D, h] = c(""), [T, Ae] = c(null), [S, he] = c(null), [g, J] = c(!1), [ve, fe] = c(!1), [ee, E] = c(""), [re, R] = c(0), [te, L] = c(!1), M = Ke(null), U = Qe(() => (n == null ? void 0 : n.userId) || (n == null ? void 0 : n.id), [n]), P = Qe(() => n && (n.fullName || `${n.firstName || ""} ${n.lastName || ""}`.trim() || n.userName) || "", [n]), ie = async (b) => {
280
+ const I = b || U;
281
+ if (I) {
282
+ fe(!0), E("");
283
+ try {
284
+ const V = await ma(I);
285
+ V && V.data ? he(V.data) : he(null);
286
+ } catch (V) {
287
+ console.warn("Could not fetch details from API, using row data:", V), he(null);
288
+ } finally {
289
+ fe(!1);
290
+ }
291
+ }
292
+ };
293
+ ue(() => {
294
+ if (Y && n) {
295
+ const b = !!(n.healthIdNumber || n.healthId), I = q === "VIEW" || b ? "VIEW" : "CREATE";
296
+ F(I), me(1), se(""), x(!1), pe(""), d(n.contactNumber || ""), be(""), h(""), Ae(null), E(""), R(0), L(!1), I === "VIEW" && ie(n.userId || n.id);
297
+ } else
298
+ M.current && clearInterval(M.current);
299
+ }, [Y, n, q]), ue(() => (re > 0 ? M.current = setTimeout(() => R((b) => b - 1), 1e3) : re === 0 && v === 2 && L(!0), () => {
300
+ M.current && clearTimeout(M.current);
301
+ }), [re, v]);
302
+ const Pe = async () => {
303
+ var I, V;
304
+ const b = $.replace(/\s+/g, "");
305
+ if (!_t(b)) {
306
+ E(s("Please enter a valid 12-digit Aadhaar number."));
307
+ return;
308
+ }
309
+ if (!j) {
310
+ E(s("Please accept the voluntary Aadhaar consent to proceed."));
311
+ return;
312
+ }
313
+ J(!0), E("");
314
+ try {
315
+ const O = await It({
316
+ userId: U,
317
+ aadhaarNumber: b
318
+ });
319
+ if (O && O.data) {
320
+ const { txnId: y, message: H } = O.data;
321
+ be(y), h(H || s("OTP sent to Aadhaar registered mobile number.")), me(2), R(60), L(!1), pe(""), B({
322
+ message: H || s("OTP sent successfully to registered mobile."),
323
+ type: "success"
324
+ });
325
+ } else
326
+ throw new Error(s("Failed to generate Aadhaar OTP."));
327
+ } catch (k) {
328
+ const O = ((V = (I = k == null ? void 0 : k.response) == null ? void 0 : I.data) == null ? void 0 : V.message) || (k == null ? void 0 : k.message) || s("Failed to generate OTP. Please try again.");
329
+ E(O), B({ message: O, type: "error" });
330
+ } finally {
331
+ J(!1);
332
+ }
333
+ }, Be = async () => {
334
+ var I, V;
335
+ if (!te || g) return;
336
+ const b = $.replace(/\s+/g, "");
337
+ J(!0), E("");
338
+ try {
339
+ const O = await It({
340
+ userId: U,
341
+ aadhaarNumber: b
342
+ });
343
+ if (O && O.data) {
344
+ const { txnId: y, message: H } = O.data;
345
+ be(y), h(H || s("OTP resent successfully.")), R(60), L(!1), pe(""), B({
346
+ message: H || s("OTP resent to registered mobile number."),
347
+ type: "success"
348
+ });
349
+ }
350
+ } catch (k) {
351
+ const O = ((V = (I = k == null ? void 0 : k.response) == null ? void 0 : I.data) == null ? void 0 : V.message) || (k == null ? void 0 : k.message) || s("Failed to resend OTP.");
352
+ E(O), B({ message: O, type: "error" });
353
+ } finally {
354
+ J(!1);
355
+ }
356
+ }, Ee = async () => {
357
+ var k, O;
358
+ const b = $.replace(/\s+/g, ""), I = ge.trim(), V = ne.trim();
359
+ if (!I || I.length !== 6) {
360
+ E(s("Please enter a valid 6-digit OTP."));
361
+ return;
362
+ }
363
+ if (!V || V.length !== 10) {
364
+ E(s("Please enter a valid 10-digit mobile number."));
365
+ return;
366
+ }
367
+ J(!0), E("");
368
+ try {
369
+ const H = await ha({
370
+ userId: U,
371
+ txnId: oe,
372
+ otp: I,
373
+ aadhaarNumber: b,
374
+ mobile: V
375
+ });
376
+ if (H && H.data) {
377
+ const X = H.data.healthIdAccountProfileResponse || H.data;
378
+ Ae(X), me(3), ce && typeof ce == "function" && ce({
379
+ userId: U,
380
+ healthId: X.healthId,
381
+ healthIdNumber: X.healthIdNumber,
382
+ profile: X
383
+ }), B({
384
+ message: s("ABHA Number created successfully!"),
385
+ type: "success"
386
+ });
387
+ } else
388
+ throw new Error(s("Failed to create ABHA Number."));
389
+ } catch (y) {
390
+ const H = ((O = (k = y == null ? void 0 : y.response) == null ? void 0 : k.data) == null ? void 0 : O.message) || (y == null ? void 0 : y.message) || s("Verification failed. Please check OTP and try again.");
391
+ E(H), B({ message: H, type: "error" });
392
+ } finally {
393
+ J(!1);
394
+ }
395
+ }, de = (b, I) => {
396
+ b && (navigator.clipboard.writeText(b), B({
397
+ message: `${I} ${s("copied to clipboard!")}`,
398
+ type: "success"
399
+ }));
400
+ }, o = T || S || n, Ue = _t($);
401
+ return /* @__PURE__ */ e(
402
+ va,
403
+ {
404
+ open: Y,
405
+ onClose: g ? void 0 : C,
406
+ sx: {
407
+ "& .MuiBackdrop-root": {
408
+ backgroundColor: "rgba(15, 23, 42, 0.65)",
409
+ backdropFilter: "blur(6px)",
410
+ transition: "all 0.3s ease-in-out"
411
+ }
412
+ },
413
+ "data-testid": "create-abha-modal",
414
+ children: /* @__PURE__ */ e(
415
+ Q,
416
+ {
417
+ className: "fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-5 outline-none overflow-y-auto",
418
+ onClick: (b) => {
419
+ b.target === b.currentTarget && !g && C();
420
+ },
421
+ children: /* @__PURE__ */ a(
422
+ Ia,
423
+ {
424
+ elevation: 24,
425
+ className: "relative w-full max-w-xl bg-white rounded-3xl shadow-2xl overflow-hidden my-auto border border-slate-100 flex flex-col",
426
+ sx: { maxHeight: "92vh" },
427
+ children: [
428
+ /* @__PURE__ */ a("div", { className: "bg-gradient-to-r from-blue-900 via-indigo-900 to-blue-800 text-white px-6 py-4 flex items-center justify-between shadow-md shrink-0", children: [
429
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-3.5", children: [
430
+ /* @__PURE__ */ e("div", { className: "w-11 h-11 rounded-2xl bg-white/15 backdrop-blur-md flex items-center justify-center text-white border border-white/20 shadow-inner", children: /* @__PURE__ */ e(De, { sx: { fontSize: 26 } }) }),
431
+ /* @__PURE__ */ a("div", { children: [
432
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
433
+ /* @__PURE__ */ e(p, { className: "text-base font-bold tracking-wide leading-tight", children: s(w === "VIEW" ? "Ayushman Bharat Health Account (ABHA)" : "Create ABHA Number") }),
434
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-extrabold uppercase px-2 py-0.5 rounded-full bg-blue-500/30 border border-blue-300/30 text-blue-200", children: "ABDM" })
435
+ ] }),
436
+ /* @__PURE__ */ e(p, { className: "text-xs text-blue-200/90 font-medium mt-0.5", children: P ? `${P}` : "" })
437
+ ] })
438
+ ] }),
439
+ /* @__PURE__ */ e(
440
+ Re,
441
+ {
442
+ size: "small",
443
+ onClick: g ? void 0 : C,
444
+ disabled: g,
445
+ className: "text-white/80 hover:text-white hover:bg-white/10 rounded-xl transition-colors",
446
+ "aria-label": "close",
447
+ children: /* @__PURE__ */ e(za, {})
448
+ }
449
+ )
450
+ ] }),
451
+ w === "CREATE" && /* @__PURE__ */ e("div", { className: "bg-slate-50/80 px-6 py-3 border-b border-slate-200/80 shrink-0", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between max-w-md mx-auto", children: [
452
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
453
+ /* @__PURE__ */ e(
454
+ "div",
455
+ {
456
+ className: `w-7 h-7 rounded-full flex items-center justify-center font-bold text-xs transition-all duration-300 shadow-xs ${v > 1 ? "bg-emerald-500 text-white" : v === 1 ? "bg-blue-600 text-white ring-4 ring-blue-100" : "bg-slate-200 text-slate-500"}`,
457
+ children: v > 1 ? /* @__PURE__ */ e(Le, { sx: { fontSize: 16 } }) : "1"
458
+ }
459
+ ),
460
+ /* @__PURE__ */ e("span", { className: `text-xs font-semibold ${v >= 1 ? "text-slate-800" : "text-slate-400"}`, children: s("Aadhaar") })
461
+ ] }),
462
+ /* @__PURE__ */ e(
463
+ "div",
464
+ {
465
+ className: `h-0.5 flex-1 mx-3 rounded-full transition-colors duration-300 ${v > 1 ? "bg-emerald-500" : "bg-slate-200"}`
466
+ }
467
+ ),
468
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
469
+ /* @__PURE__ */ e(
470
+ "div",
471
+ {
472
+ className: `w-7 h-7 rounded-full flex items-center justify-center font-bold text-xs transition-all duration-300 shadow-xs ${v > 2 ? "bg-emerald-500 text-white" : v === 2 ? "bg-blue-600 text-white ring-4 ring-blue-100" : "bg-slate-200 text-slate-500"}`,
473
+ children: v > 2 ? /* @__PURE__ */ e(Le, { sx: { fontSize: 16 } }) : "2"
474
+ }
475
+ ),
476
+ /* @__PURE__ */ e("span", { className: `text-xs font-semibold ${v >= 2 ? "text-slate-800" : "text-slate-400"}`, children: s("OTP Verify") })
477
+ ] }),
478
+ /* @__PURE__ */ e(
479
+ "div",
480
+ {
481
+ className: `h-0.5 flex-1 mx-3 rounded-full transition-colors duration-300 ${v > 2 ? "bg-emerald-500" : "bg-slate-200"}`
482
+ }
483
+ ),
484
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
485
+ /* @__PURE__ */ e(
486
+ "div",
487
+ {
488
+ className: `w-7 h-7 rounded-full flex items-center justify-center font-bold text-xs transition-all duration-300 shadow-xs ${v === 3 ? "bg-emerald-500 text-white ring-4 ring-emerald-100" : "bg-slate-200 text-slate-500"}`,
489
+ children: /* @__PURE__ */ e(Bt, { sx: { fontSize: 16 } })
490
+ }
491
+ ),
492
+ /* @__PURE__ */ e(
493
+ "span",
494
+ {
495
+ className: `text-xs font-semibold ${v === 3 ? "text-emerald-700 font-bold" : "text-slate-400"}`,
496
+ children: s("ABHA Card")
497
+ }
498
+ )
499
+ ] })
500
+ ] }) }),
501
+ /* @__PURE__ */ a("div", { className: "p-6 overflow-y-auto flex-1 space-y-5", children: [
502
+ ee && /* @__PURE__ */ e(
503
+ wa,
504
+ {
505
+ severity: "error",
506
+ onClose: () => E(""),
507
+ className: "rounded-2xl border border-red-200 shadow-xs font-medium text-xs",
508
+ children: ee
509
+ }
510
+ ),
511
+ w === "VIEW" && /* @__PURE__ */ e("div", { children: ve ? /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center py-16 gap-3", children: [
512
+ /* @__PURE__ */ e(Me, { size: 38, thickness: 4, color: "primary" }),
513
+ /* @__PURE__ */ e(p, { className: "text-sm font-medium text-slate-500 animate-pulse", children: s("Fetching ABHA account profile...") })
514
+ ] }) : /* @__PURE__ */ a("div", { className: "space-y-4", children: [
515
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between p-3.5 bg-emerald-50/80 border border-emerald-200/80 rounded-2xl text-emerald-900 shadow-2xs", children: [
516
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2.5", children: [
517
+ /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-emerald-500 text-white flex items-center justify-center shadow-xs", children: /* @__PURE__ */ e(Le, { sx: { fontSize: 18 } }) }),
518
+ /* @__PURE__ */ a("div", { children: [
519
+ /* @__PURE__ */ e(p, { className: "text-xs font-bold", children: s("ABHA Number Linked & Active") }),
520
+ /* @__PURE__ */ e(p, { className: "text-[11px] text-emerald-700", children: s("This user already has an authentic Ayushman Bharat Health Account.") })
521
+ ] })
522
+ ] }),
523
+ /* @__PURE__ */ e(
524
+ _e,
525
+ {
526
+ icon: /* @__PURE__ */ e(Et, { sx: { fontSize: 15 } }),
527
+ label: s("Verified"),
528
+ color: "success",
529
+ size: "small",
530
+ className: "font-bold text-xs"
531
+ }
532
+ )
533
+ ] }),
534
+ /* @__PURE__ */ a("div", { className: "relative border-2 border-indigo-200/80 rounded-3xl overflow-hidden bg-gradient-to-br from-indigo-50/40 via-white to-blue-50/30 p-5 shadow-lg", children: [
535
+ /* @__PURE__ */ e("div", { className: "flex items-start justify-between pb-3 border-b border-indigo-100", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2.5", children: [
536
+ /* @__PURE__ */ e("div", { className: "w-9 h-9 rounded-xl bg-indigo-600 text-white flex items-center justify-center font-bold text-xs shadow-md", children: /* @__PURE__ */ e(De, { sx: { fontSize: 20 } }) }),
537
+ /* @__PURE__ */ a("div", { children: [
538
+ /* @__PURE__ */ e(p, { className: "text-[10px] font-extrabold text-indigo-900 tracking-wider uppercase", children: s("National Health Authority") }),
539
+ /* @__PURE__ */ e(p, { className: "text-xs font-semibold text-indigo-700", children: s("Ayushman Bharat Digital Mission") })
540
+ ] })
541
+ ] }) }),
542
+ /* @__PURE__ */ a("div", { className: "mt-4 space-y-3", children: [
543
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between pb-1", children: [
544
+ /* @__PURE__ */ a("div", { children: [
545
+ /* @__PURE__ */ e(p, { className: "text-lg font-extrabold text-slate-800 leading-tight", children: (o == null ? void 0 : o.name) || P }),
546
+ /* @__PURE__ */ a(p, { className: "text-xs font-medium text-slate-500 mt-0.5", children: [
547
+ (o == null ? void 0 : o.gender) || (n == null ? void 0 : n.gender) || "N/A",
548
+ (o == null ? void 0 : o.yearOfBirth) && ` • DOB: ${(o == null ? void 0 : o.dayOfBirth) || "01"}/${(o == null ? void 0 : o.monthOfBirth) || "01"}/${o == null ? void 0 : o.yearOfBirth}`
549
+ ] })
550
+ ] }),
551
+ /* @__PURE__ */ a("div", { className: "text-right", children: [
552
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-slate-400 block uppercase tracking-wider", children: s("User ID") }),
553
+ /* @__PURE__ */ e("span", { className: "font-mono text-xs font-bold text-slate-700", children: U })
554
+ ] })
555
+ ] }),
556
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2.5 text-xs", children: [
557
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-indigo-100 shadow-2xs", children: [
558
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("ABHA Number") }),
559
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between mt-1", children: [
560
+ /* @__PURE__ */ e(p, { className: "font-mono font-extrabold text-base text-indigo-900 tracking-wide", children: (o == null ? void 0 : o.healthIdNumber) || (n == null ? void 0 : n.healthIdNumber) || "N/A" }),
561
+ ((o == null ? void 0 : o.healthIdNumber) || (n == null ? void 0 : n.healthIdNumber)) && /* @__PURE__ */ e(Se, { title: s("Copy"), children: /* @__PURE__ */ e(
562
+ Re,
563
+ {
564
+ size: "small",
565
+ onClick: () => de(
566
+ (o == null ? void 0 : o.healthIdNumber) || (n == null ? void 0 : n.healthIdNumber),
567
+ s("ABHA Number")
568
+ ),
569
+ className: "p-1 hover:bg-indigo-50 text-indigo-600",
570
+ children: /* @__PURE__ */ e(je, { sx: { fontSize: 14 } })
571
+ }
572
+ ) })
573
+ ] })
574
+ ] }),
575
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-indigo-100 shadow-2xs", children: [
576
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("ABHA Address (Health ID)") }),
577
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between mt-1", children: [
578
+ /* @__PURE__ */ e(p, { className: "font-mono font-bold text-sm text-indigo-900 truncate", children: (o == null ? void 0 : o.healthId) || (n == null ? void 0 : n.healthId) || "N/A" }),
579
+ ((o == null ? void 0 : o.healthId) || (n == null ? void 0 : n.healthId)) && /* @__PURE__ */ e(Se, { title: s("Copy"), children: /* @__PURE__ */ e(
580
+ Re,
581
+ {
582
+ size: "small",
583
+ onClick: () => de((o == null ? void 0 : o.healthId) || (n == null ? void 0 : n.healthId), s("ABHA Address")),
584
+ className: "p-1 hover:bg-indigo-50 text-indigo-600",
585
+ children: /* @__PURE__ */ e(je, { sx: { fontSize: 14 } })
586
+ }
587
+ ) })
588
+ ] })
589
+ ] }),
590
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-indigo-100 shadow-2xs", children: [
591
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("Registered Mobile Number") }),
592
+ /* @__PURE__ */ e(p, { className: "font-semibold text-xs text-slate-800 mt-1", children: (o == null ? void 0 : o.mobile) || (n == null ? void 0 : n.contactNumber) || "N/A" })
593
+ ] }),
594
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-indigo-100 shadow-2xs flex items-center justify-between", children: [
595
+ /* @__PURE__ */ a("div", { children: [
596
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("Digital ID") }),
597
+ /* @__PURE__ */ a(p, { className: "font-bold text-xs text-emerald-600 mt-1 flex items-center gap-1", children: [
598
+ /* @__PURE__ */ e(Rt, { sx: { fontSize: 14 } }),
599
+ s("Authenticated")
600
+ ] })
601
+ ] }),
602
+ /* @__PURE__ */ e(Mt, { sx: { fontSize: 24 }, className: "text-slate-500" })
603
+ ] })
604
+ ] }),
605
+ ((o == null ? void 0 : o.address) || (o == null ? void 0 : o.districtName) || (o == null ? void 0 : o.stateName)) && /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-indigo-100 shadow-2xs flex items-start gap-2 text-xs text-slate-600", children: [
606
+ /* @__PURE__ */ e(Ot, { sx: { fontSize: 16 }, className: "text-indigo-500 shrink-0 mt-0.5" }),
607
+ /* @__PURE__ */ e("span", { className: "font-medium leading-relaxed", children: (o == null ? void 0 : o.address) || [o == null ? void 0 : o.districtName, o == null ? void 0 : o.stateName, o == null ? void 0 : o.pincode].filter(Boolean).join(", ") })
608
+ ] })
609
+ ] })
610
+ ] })
611
+ ] }) }),
612
+ w === "CREATE" && v === 1 && /* @__PURE__ */ a("div", { className: "space-y-5", children: [
613
+ /* @__PURE__ */ a("div", { className: "p-4 bg-gradient-to-r from-blue-50/70 via-indigo-50/40 to-slate-50 border border-blue-100 rounded-2xl flex items-center justify-between shadow-2xs", children: [
614
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
615
+ /* @__PURE__ */ e("div", { className: "w-10 h-10 rounded-2xl bg-blue-600 text-white flex items-center justify-center font-bold text-sm shadow-sm", children: P.charAt(0).toUpperCase() || "U" }),
616
+ /* @__PURE__ */ a("div", { children: [
617
+ /* @__PURE__ */ e(p, { className: "font-bold text-sm text-slate-800", children: P }),
618
+ /* @__PURE__ */ a(p, { className: "text-xs text-slate-500 font-medium", children: [
619
+ n != null && n.roleName ? `${n.roleName} • ` : "",
620
+ n != null && n.contactNumber ? `${n.contactNumber} • ` : "",
621
+ (n == null ? void 0 : n.userName) || ""
622
+ ] })
623
+ ] })
624
+ ] }),
625
+ /* @__PURE__ */ e(
626
+ _e,
627
+ {
628
+ icon: /* @__PURE__ */ e(Rt, { sx: { fontSize: 14 } }),
629
+ label: s("ABDM Enrolment"),
630
+ size: "small",
631
+ color: "primary",
632
+ variant: "outlined",
633
+ className: "font-bold text-[11px] bg-white"
634
+ }
635
+ )
636
+ ] }),
637
+ /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
638
+ /* @__PURE__ */ a("label", { className: "block text-xs font-bold text-slate-700 uppercase tracking-wide", children: [
639
+ s("Aadhaar Number"),
640
+ /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "*" })
641
+ ] }),
642
+ /* @__PURE__ */ e(
643
+ Fe,
644
+ {
645
+ fullWidth: !0,
646
+ size: "small",
647
+ autoFocus: !0,
648
+ placeholder: "Enter 12-digit Aadhaar (e.g. 0000 0000 0000)",
649
+ value: $,
650
+ onChange: (b) => {
651
+ const I = el(b.target.value);
652
+ se(I);
653
+ },
654
+ disabled: g,
655
+ slotProps: {
656
+ input: {
657
+ startAdornment: /* @__PURE__ */ e($e, { position: "start", children: /* @__PURE__ */ e(Ut, { className: "text-slate-400", sx: { fontSize: 20 } }) }),
658
+ endAdornment: Ue ? /* @__PURE__ */ e($e, { position: "end", children: /* @__PURE__ */ e(Le, { className: "text-emerald-500", sx: { fontSize: 18 } }) }) : null,
659
+ className: "text-sm font-medium tracking-wide bg-white rounded-xl",
660
+ maxLength: 14
661
+ }
662
+ },
663
+ helperText: s(
664
+ "An OTP will be dispatched to the mobile number registered with this Aadhaar in UIDAI records."
665
+ )
666
+ }
667
+ )
668
+ ] }),
669
+ /* @__PURE__ */ e("div", { className: "p-4 bg-gradient-to-br from-blue-50/80 to-indigo-50/50 border border-blue-200/90 rounded-2xl shadow-2xs", children: /* @__PURE__ */ e(
670
+ Ca,
671
+ {
672
+ control: /* @__PURE__ */ e(
673
+ ka,
674
+ {
675
+ size: "small",
676
+ checked: j,
677
+ onChange: (b) => x(b.target.checked),
678
+ disabled: g,
679
+ color: "primary",
680
+ className: "mt-0.5"
681
+ }
682
+ ),
683
+ label: /* @__PURE__ */ a("div", { className: "text-xs text-slate-700 leading-relaxed pl-1", children: [
684
+ /* @__PURE__ */ e("span", { className: "font-bold text-blue-900 block mb-1", children: s("Consent for Aadhaar Authentication") }),
685
+ s(
686
+ "I hereby voluntarily consent to provide my Aadhaar number and perform Aadhaar authentication for the sole purpose of generating an Ayushman Bharat Health Account (ABHA) number under the Ayushman Bharat Digital Mission (ABDM). I understand that my Aadhaar number will not be retained or shared."
687
+ )
688
+ ] }),
689
+ className: "items-start m-0"
690
+ }
691
+ ) })
692
+ ] }),
693
+ w === "CREATE" && v === 2 && /* @__PURE__ */ a("div", { className: "space-y-5", children: [
694
+ D && /* @__PURE__ */ a("div", { className: "p-3.5 bg-blue-50 border border-blue-200 rounded-2xl flex items-center gap-3 text-blue-900 shadow-2xs", children: [
695
+ /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-blue-600 text-white flex items-center justify-center shrink-0 shadow-xs", children: /* @__PURE__ */ e(_a, { sx: { fontSize: 18 } }) }),
696
+ /* @__PURE__ */ e(p, { className: "text-xs font-semibold leading-relaxed", children: D })
697
+ ] }),
698
+ /* @__PURE__ */ a("div", { className: "p-3.5 bg-slate-50 border border-slate-200 rounded-2xl flex items-center justify-between", children: [
699
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
700
+ /* @__PURE__ */ e(Ut, { sx: { fontSize: 20 }, className: "text-blue-500" }),
701
+ /* @__PURE__ */ a("div", { children: [
702
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase", children: s("Aadhaar Number") }),
703
+ /* @__PURE__ */ e(p, { className: "font-mono font-bold text-sm text-slate-800", children: $ })
704
+ ] })
705
+ ] }),
706
+ /* @__PURE__ */ e(
707
+ _e,
708
+ {
709
+ label: s("Txn Active"),
710
+ size: "small",
711
+ color: "primary",
712
+ variant: "outlined",
713
+ className: "text-[10px] font-bold"
714
+ }
715
+ )
716
+ ] }),
717
+ /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
718
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
719
+ /* @__PURE__ */ a("label", { className: "block text-xs font-bold text-slate-700 uppercase tracking-wide", children: [
720
+ s("Enter OTP"),
721
+ /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "*" })
722
+ ] }),
723
+ re > 0 ? /* @__PURE__ */ a("span", { className: "text-xs text-slate-500 font-medium flex items-center gap-1.5", children: [
724
+ /* @__PURE__ */ e("span", { className: "w-1.5 h-1.5 rounded-full bg-blue-500 animate-pulse" }),
725
+ s("Resend available in"),
726
+ " ",
727
+ /* @__PURE__ */ a("strong", { className: "text-blue-700 font-mono font-bold", children: [
728
+ re,
729
+ "s"
730
+ ] })
731
+ ] }) : /* @__PURE__ */ e(
732
+ ae,
733
+ {
734
+ size: "small",
735
+ disabled: !te || g,
736
+ onClick: Be,
737
+ startIcon: /* @__PURE__ */ e(ja, { sx: { fontSize: 14 } }),
738
+ className: "p-0 text-xs font-bold normal-case text-blue-600 hover:text-blue-800",
739
+ children: s("Resend OTP")
740
+ }
741
+ )
742
+ ] }),
743
+ /* @__PURE__ */ e(
744
+ Fe,
745
+ {
746
+ fullWidth: !0,
747
+ size: "small",
748
+ autoFocus: !0,
749
+ placeholder: "Enter 6-digit OTP",
750
+ value: ge,
751
+ onChange: (b) => {
752
+ const I = b.target.value.replace(/\D/g, "").slice(0, 6);
753
+ pe(I);
754
+ },
755
+ disabled: g,
756
+ slotProps: {
757
+ input: {
758
+ startAdornment: /* @__PURE__ */ e($e, { position: "start", children: /* @__PURE__ */ e(La, { className: "text-slate-400", sx: { fontSize: 18 } }) }),
759
+ className: "text-sm font-semibold tracking-widest bg-white rounded-xl",
760
+ maxLength: 6
761
+ }
762
+ },
763
+ helperText: s(
764
+ "Please enter the 6-digit authentication code sent to your registered mobile"
765
+ )
766
+ }
767
+ )
768
+ ] }),
769
+ /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
770
+ /* @__PURE__ */ a("label", { className: "block text-xs font-bold text-slate-700 uppercase tracking-wide", children: [
771
+ s("Mobile Number for ABHA Profile"),
772
+ /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "*" })
773
+ ] }),
774
+ /* @__PURE__ */ e(
775
+ Fe,
776
+ {
777
+ fullWidth: !0,
778
+ size: "small",
779
+ placeholder: "Enter 10-digit mobile number",
780
+ value: ne,
781
+ onChange: (b) => {
782
+ const I = b.target.value.replace(/\D/g, "").slice(0, 10);
783
+ d(I);
784
+ },
785
+ disabled: g,
786
+ slotProps: {
787
+ input: {
788
+ startAdornment: /* @__PURE__ */ e($e, { position: "start", children: /* @__PURE__ */ e("span", { className: "font-mono text-xs font-bold text-slate-500 mr-1 border-r border-slate-200 pr-2", children: "+91" }) }),
789
+ className: "text-sm font-medium bg-white rounded-xl",
790
+ maxLength: 10
791
+ }
792
+ },
793
+ helperText: s(
794
+ "This mobile number will be registered with your ABHA profile for future communications."
795
+ )
796
+ }
797
+ )
798
+ ] })
799
+ ] }),
800
+ w === "CREATE" && v === 3 && T && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
801
+ /* @__PURE__ */ a("div", { className: "p-4 bg-gradient-to-r from-emerald-600 to-teal-700 text-white rounded-2xl flex items-center gap-3.5 shadow-md", children: [
802
+ /* @__PURE__ */ e("div", { className: "w-11 h-11 rounded-2xl bg-white/20 backdrop-blur-md flex items-center justify-center shrink-0 border border-white/30 shadow-inner", children: /* @__PURE__ */ e(Bt, { sx: { fontSize: 28 } }) }),
803
+ /* @__PURE__ */ a("div", { children: [
804
+ /* @__PURE__ */ e(p, { className: "font-extrabold text-base tracking-wide", children: s("ABHA Number Created Successfully!") }),
805
+ /* @__PURE__ */ e(p, { className: "text-xs text-emerald-100 font-medium", children: s("ABHA ID has been generated and linked with the user record.") })
806
+ ] })
807
+ ] }),
808
+ /* @__PURE__ */ a("div", { className: "border-2 border-blue-200 rounded-3xl overflow-hidden bg-gradient-to-br from-blue-50/50 via-white to-indigo-50/40 p-5 shadow-lg relative", children: [
809
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between pb-3 border-b border-blue-100", children: [
810
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2.5", children: [
811
+ /* @__PURE__ */ e("div", { className: "w-9 h-9 rounded-xl bg-blue-600 text-white flex items-center justify-center font-bold text-xs shadow-md", children: /* @__PURE__ */ e(De, { sx: { fontSize: 20 } }) }),
812
+ /* @__PURE__ */ a("div", { children: [
813
+ /* @__PURE__ */ e(p, { className: "text-[10px] font-extrabold text-blue-900 tracking-widest uppercase", children: s("National Health Authority") }),
814
+ /* @__PURE__ */ e(p, { className: "text-xs font-bold text-blue-700", children: s("Ayushman Bharat Digital Mission (ABDM)") })
815
+ ] })
816
+ ] }),
817
+ /* @__PURE__ */ e(
818
+ _e,
819
+ {
820
+ icon: /* @__PURE__ */ e(Et, { sx: { fontSize: 14 } }),
821
+ label: s("KYC Verified"),
822
+ color: "success",
823
+ size: "small",
824
+ className: "font-bold text-xs"
825
+ }
826
+ )
827
+ ] }),
828
+ /* @__PURE__ */ a("div", { className: "mt-4 space-y-3", children: [
829
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between pb-1", children: [
830
+ /* @__PURE__ */ a("div", { children: [
831
+ /* @__PURE__ */ e(p, { className: "text-lg font-black text-slate-800 leading-tight", children: T.name || P }),
832
+ /* @__PURE__ */ a(p, { className: "text-xs text-slate-500 font-medium mt-0.5", children: [
833
+ T.gender || "N/A",
834
+ T.yearOfBirth && ` • DOB: ${T.dayOfBirth || "01"}/${T.monthOfBirth || "01"}/${T.yearOfBirth}`
835
+ ] })
836
+ ] }),
837
+ /* @__PURE__ */ a("div", { className: "text-right", children: [
838
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-slate-400 block uppercase tracking-wider", children: s("User ID") }),
839
+ /* @__PURE__ */ e("span", { className: "font-mono text-xs font-bold text-slate-700", children: U })
840
+ ] })
841
+ ] }),
842
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2.5 text-xs", children: [
843
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-blue-100 shadow-2xs", children: [
844
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("ABHA Number") }),
845
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between mt-1", children: [
846
+ /* @__PURE__ */ e(p, { className: "font-mono font-extrabold text-base text-blue-900 tracking-wide", children: T.healthIdNumber }),
847
+ /* @__PURE__ */ e(Se, { title: s("Copy"), children: /* @__PURE__ */ e(
848
+ Re,
849
+ {
850
+ size: "small",
851
+ onClick: () => de(T.healthIdNumber, s("ABHA Number")),
852
+ className: "p-1 hover:bg-blue-50 text-blue-600",
853
+ children: /* @__PURE__ */ e(je, { sx: { fontSize: 14 } })
854
+ }
855
+ ) })
856
+ ] })
857
+ ] }),
858
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-blue-100 shadow-2xs", children: [
859
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("ABHA Address") }),
860
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between mt-1", children: [
861
+ /* @__PURE__ */ e(p, { className: "font-mono font-bold text-sm text-blue-900 truncate", children: T.healthId }),
862
+ /* @__PURE__ */ e(Se, { title: s("Copy"), children: /* @__PURE__ */ e(
863
+ Re,
864
+ {
865
+ size: "small",
866
+ onClick: () => de(T.healthId, s("ABHA Address")),
867
+ className: "p-1 hover:bg-blue-50 text-blue-600",
868
+ children: /* @__PURE__ */ e(je, { sx: { fontSize: 14 } })
869
+ }
870
+ ) })
871
+ ] })
872
+ ] }),
873
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-blue-100 shadow-2xs", children: [
874
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("Mobile") }),
875
+ /* @__PURE__ */ e(p, { className: "font-semibold text-xs text-slate-800 mt-1", children: T.mobile || ne })
876
+ ] }),
877
+ /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-blue-100 shadow-2xs flex items-center justify-between", children: [
878
+ /* @__PURE__ */ a("div", { children: [
879
+ /* @__PURE__ */ e(p, { className: "text-[10px] text-slate-400 font-bold uppercase tracking-wider", children: s("Status") }),
880
+ /* @__PURE__ */ e(p, { className: "font-bold text-xs text-emerald-600 mt-1", children: s("Linked") })
881
+ ] }),
882
+ /* @__PURE__ */ e(Mt, { sx: { fontSize: 24 }, className: "text-slate-500" })
883
+ ] })
884
+ ] }),
885
+ T.address && /* @__PURE__ */ a("div", { className: "p-3 bg-white/95 rounded-xl border border-blue-100 shadow-2xs flex items-start gap-2 text-xs text-slate-600", children: [
886
+ /* @__PURE__ */ e(Ot, { sx: { fontSize: 16 }, className: "text-blue-500 shrink-0 mt-0.5" }),
887
+ /* @__PURE__ */ e("span", { className: "font-medium leading-relaxed", children: T.address })
888
+ ] })
889
+ ] })
890
+ ] })
891
+ ] })
892
+ ] }),
893
+ /* @__PURE__ */ e("div", { className: "px-6 py-4 bg-slate-50/90 border-t border-slate-100 flex items-center justify-end gap-3 shrink-0", children: w === "VIEW" ? /* @__PURE__ */ e(
894
+ ae,
895
+ {
896
+ variant: "contained",
897
+ onClick: C,
898
+ className: "rounded-xl px-6 normal-case font-bold bg-slate-800 hover:bg-slate-900 text-white shadow-sm",
899
+ children: s("Close")
900
+ }
901
+ ) : v === 1 ? /* @__PURE__ */ a(Te, { children: [
902
+ /* @__PURE__ */ e(
903
+ ae,
904
+ {
905
+ variant: "outlined",
906
+ color: "inherit",
907
+ onClick: C,
908
+ disabled: g,
909
+ className: "rounded-xl px-5 normal-case font-semibold text-slate-600 border-slate-300 hover:bg-slate-100",
910
+ children: s("Cancel")
911
+ }
912
+ ),
913
+ /* @__PURE__ */ e(
914
+ ae,
915
+ {
916
+ variant: "contained",
917
+ onClick: Pe,
918
+ disabled: g || !Ue || !j,
919
+ className: `rounded-xl px-6 normal-case font-bold text-white shadow-md transition-all ${Ue && j && !g ? "bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700" : "bg-slate-300"}`,
920
+ children: g ? /* @__PURE__ */ e(Me, { size: 20, color: "inherit" }) : s("Generate OTP")
921
+ }
922
+ )
923
+ ] }) : v === 2 ? /* @__PURE__ */ a(Te, { children: [
924
+ /* @__PURE__ */ e(
925
+ ae,
926
+ {
927
+ variant: "outlined",
928
+ color: "inherit",
929
+ onClick: () => me(1),
930
+ disabled: g,
931
+ startIcon: /* @__PURE__ */ e($a, {}),
932
+ className: "rounded-xl px-4 normal-case font-semibold text-slate-600 border-slate-300 hover:bg-slate-100",
933
+ children: s("Back")
934
+ }
935
+ ),
936
+ /* @__PURE__ */ e(
937
+ ae,
938
+ {
939
+ variant: "contained",
940
+ onClick: Ee,
941
+ disabled: g || ge.length !== 6 || ne.length !== 10,
942
+ className: "rounded-xl px-6 normal-case font-bold bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white shadow-md",
943
+ children: g ? /* @__PURE__ */ e(Me, { size: 20, color: "inherit" }) : s("Verify & Create ABHA")
944
+ }
945
+ )
946
+ ] }) : /* @__PURE__ */ e(
947
+ ae,
948
+ {
949
+ variant: "contained",
950
+ onClick: C,
951
+ className: "rounded-xl px-6 normal-case font-bold bg-blue-600 hover:bg-blue-700 text-white shadow-md",
952
+ children: s("Done")
953
+ }
954
+ ) })
955
+ ]
956
+ }
957
+ )
958
+ }
959
+ )
960
+ }
961
+ );
962
+ }
963
+ Wt.propTypes = {
964
+ open: A.bool.isRequired,
965
+ onClose: A.func.isRequired,
966
+ user: A.object,
967
+ mode: A.oneOf(["CREATE", "VIEW"]),
968
+ onSuccess: A.func
969
+ };
970
+ function Yl() {
971
+ var ft, ut, pt, bt, xt, gt, Nt, yt;
972
+ const Y = Ua(), C = jt(), [n, q] = c([]);
973
+ let ce = "#8688ecff", s = "#10b981", v = "#f43f5e", me = "#f59e0b", w = "#ffffffff";
974
+ const [F, $] = c([]), [se, j] = c([]), [x, ge] = c(null), [pe, ne] = c(!1), d = Va(), oe = d.palette.mode === "dark", [be, D] = c(0), [h, T] = c(null), Ae = Ke(h);
975
+ ue(() => {
976
+ Ae.current = h;
977
+ }, [h]);
978
+ const [S, he] = c(null), [g, J] = c(""), [ve, fe] = c(""), [ee, E] = c([]), [re, R] = c(!0), [te, L] = c(!1), [M, U] = c(!1), [P, ie] = c("CREATE"), [Pe, Be] = c(null), Ee = St(
979
+ (t) => {
980
+ var r;
981
+ return (r = t == null ? void 0 : t.ImplementationConfig) == null ? void 0 : r.config;
982
+ }
983
+ ), de = !!(((ft = Ee == null ? void 0 : Ee.user) == null ? void 0 : ft.enableCreateAbha) ?? ((ut = Ft.user) == null ? void 0 : ut.enableCreateAbha)), o = !!(h && (h["create.manage.users.canABHACreate"] === !0 || h["create.manage.users.canABHACreate"] === "true" || h.canABHACreate === !0 || h.canABHACreate === "true" || h.canAbhaCreate === !0 || h.canAbhaCreate === "true" || h["create.manage.users.canAbhaCreate"] === !0 || h["create.manage.users.canAbhaCreate"] === "true")), Ue = kt(({ userId: t, healthId: r, healthIdNumber: l }) => {
984
+ E((f) => Array.isArray(f) ? f.map((m) => (ye.isTecho ? m == null ? void 0 : m.userId : m == null ? void 0 : m.id) === t || (m == null ? void 0 : m.id) === t || (m == null ? void 0 : m.userId) === t ? {
985
+ ...m,
986
+ healthId: r,
987
+ healthIdNumber: l
988
+ } : m) : f);
989
+ }, []), [b, I] = c({
990
+ sortColumn: "userName",
991
+ sortOrder: "asc"
992
+ }), [V, k] = c(!1), O = 50, { translate: y } = Xe(), [H, X] = c(!1), [He, Ze] = c(null), [W, et] = c(null), [Ne, Ie] = c(null), Z = Vt(), tt = Lt(), { user: z } = St((t) => t == null ? void 0 : t.Authenticate), [Gt, at] = c(
993
+ ((pt = z == null ? void 0 : z.userFilterPreference) == null ? void 0 : pt.locationId) || null
994
+ ), lt = Ke(Gt), [Yt, st] = c(
995
+ ((bt = Z == null ? void 0 : Z.state) == null ? void 0 : bt.fromManageUser) === !0 && ((xt = z == null ? void 0 : z.userFilterPreference) == null ? void 0 : xt.selectedLocation) || {},
996
+ {}
997
+ ), [qt, nt] = c(
998
+ ((gt = Z == null ? void 0 : Z.state) == null ? void 0 : gt.fromManageUser) === !0 && ((Nt = z == null ? void 0 : z.userFilterPreference) == null ? void 0 : Nt.filterRequired) || !1
999
+ ), [u, we] = c(
1000
+ ((yt = Z == null ? void 0 : Z.state) == null ? void 0 : yt.fromManageUser) === !0 && (z == null ? void 0 : z.userFilterPreference) || {}
1001
+ ), [Dt, ot] = c(0), [Kt, rt] = c([]), Qt = Qe(() => ee == null ? void 0 : ee.map((t, r) => {
1002
+ let l = "";
1003
+ return t != null && t.title && (l += t.title + " "), t != null && t.firstName && (l += t.firstName + " "), t != null && t.lastName && (l += t.lastName), {
1004
+ ...t,
1005
+ index: r + 1,
1006
+ firstName: l.trim()
1007
+ };
1008
+ }), [ee, oe]);
1009
+ ue(() => {
1010
+ (async () => {
1011
+ var r, l;
1012
+ try {
1013
+ if (se.length > 0) {
1014
+ ne(!0);
1015
+ const f = await Fa(
1016
+ {
1017
+ code: "GET_USERS_STATS",
1018
+ parameters: {
1019
+ locationId: (u == null ? void 0 : u.locationId) || He,
1020
+ roleid: (u == null ? void 0 : u.roleid) || (W == null ? void 0 : W.id) || null,
1021
+ roleIds: se == null ? void 0 : se.join(","),
1022
+ loggedInUserId: z == null ? void 0 : z.id
1023
+ }
1024
+ },
1025
+ { showLoader: !1 }
1026
+ );
1027
+ (r = f == null ? void 0 : f.data) != null && r.result && ((l = f == null ? void 0 : f.data) == null ? void 0 : l.result.length) > 0 && ge(f.data.result[0]), ne(!1);
1028
+ }
1029
+ } catch (f) {
1030
+ ne(!1), console.error("Error fetching user stats:", f);
1031
+ }
1032
+ })();
1033
+ }, [u, se]);
1034
+ const We = [
1035
+ { field: "Sr. No.", label: "#", align: "left" },
1036
+ {
1037
+ field: "userName",
1038
+ label: "User Identity".toUpperCase(),
1039
+ sortable: !0,
1040
+ sortOrder: "asc",
1041
+ align: "left",
1042
+ render: (t) => {
1043
+ var r;
1044
+ return /* @__PURE__ */ a("div", { className: "flex items-center w-48 gap-4 h-full", children: [
1045
+ /* @__PURE__ */ e(
1046
+ Q,
1047
+ {
1048
+ className: "w-[15%] h-10 rounded-2xl flex items-center justify-center font-black text-xs shadow-sm transition-transform duration-300 group-hover:scale-110",
1049
+ sx: {
1050
+ background: `linear-gradient(to bottom right, ${K(d.palette.primary.main, 0.05)}, ${K(d.palette.primary.main, 0.2)})`,
1051
+ border: `1px solid ${K(d.palette.primary.main, 0.2)}`,
1052
+ color: d.palette.primary.main
1053
+ },
1054
+ children: (r = t == null ? void 0 : t.firstName) == null ? void 0 : r.split(" ").filter((l) => !["Mr", "Ms", "Mrs"].includes(l)).map((l) => l[0]).join("").toUpperCase()
1055
+ }
1056
+ ),
1057
+ /* @__PURE__ */ a("div", { className: "w-[80%] flex flex-col h-full justify-center pt-2", children: [
1058
+ /* @__PURE__ */ e(
1059
+ Q,
1060
+ {
1061
+ component: "span",
1062
+ className: "text-sm font-black leading-tight transition-colors duration-300",
1063
+ sx: {
1064
+ color: d.palette.text.primary,
1065
+ // Dynamic text color
1066
+ ".group:hover &": {
1067
+ color: d.palette.primary.main
1068
+ }
1069
+ },
1070
+ children: t == null ? void 0 : t.firstName
1071
+ }
1072
+ ),
1073
+ /* @__PURE__ */ a(
1074
+ Q,
1075
+ {
1076
+ component: "span",
1077
+ className: "text-md font-bold font-mono flex items-center gap-1.5 transition-colors duration-300",
1078
+ sx: {
1079
+ color: d.palette.text.secondary
1080
+ // Dynamic muted color
1081
+ },
1082
+ children: [
1083
+ /* @__PURE__ */ e(
1084
+ Q,
1085
+ {
1086
+ component: "span",
1087
+ className: "w-1.5 h-1.5 rounded-full transition-colors duration-300",
1088
+ sx: {
1089
+ backgroundColor: d.palette.divider
1090
+ // Dynamic dot color
1091
+ }
1092
+ }
1093
+ ),
1094
+ t == null ? void 0 : t.userName
1095
+ ]
1096
+ }
1097
+ ),
1098
+ de && ((t == null ? void 0 : t.healthIdNumber) || (t == null ? void 0 : t.healthId)) && /* @__PURE__ */ e(
1099
+ Se,
1100
+ {
1101
+ title: `${y("ABHA Number")}: ${(t == null ? void 0 : t.healthIdNumber) || (t == null ? void 0 : t.healthId)}`,
1102
+ arrow: !0,
1103
+ placement: "top",
1104
+ children: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5 px-2 py-0.5 mt-1 rounded-full text-[10px] font-black bg-emerald-50 text-emerald-700 border border-emerald-200/80 shadow-2xs w-fit cursor-default", children: [
1105
+ /* @__PURE__ */ e("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
1106
+ "ABHA Verified"
1107
+ ] })
1108
+ }
1109
+ )
1110
+ ] })
1111
+ ] });
1112
+ }
1113
+ },
1114
+ {
1115
+ field: "contactNumber",
1116
+ label: "Phone number".toUpperCase(),
1117
+ sortable: !0,
1118
+ align: "left",
1119
+ sortOrder: "asc",
1120
+ render: (t) => /* @__PURE__ */ e("div", { className: "flex items-center w-32 gap-4 h-full", children: /* @__PURE__ */ a("div", { className: "flex items-center text-md tracking-tight", children: [
1121
+ /* @__PURE__ */ e(
1122
+ Q,
1123
+ {
1124
+ className: "w-7 h-7 rounded-xl flex items-center justify-center mr-2 shadow-sm transition-all duration-300",
1125
+ sx: {
1126
+ backgroundColor: d.palette.mode === "dark" ? K(d.palette.common.white, 0.05) : "rgb(248, 250, 252)",
1127
+ color: d.palette.text.disabled,
1128
+ ".group:hover &": {
1129
+ backgroundColor: d.palette.primary.main,
1130
+ color: "white"
1131
+ }
1132
+ },
1133
+ children: /* @__PURE__ */ e(xe, { icon: Ka, className: "text-xs" })
1134
+ }
1135
+ ),
1136
+ /* @__PURE__ */ e(
1137
+ Q,
1138
+ {
1139
+ component: "span",
1140
+ className: "transition-colors duration-300",
1141
+ sx: {
1142
+ color: d.palette.text.primary,
1143
+ ".group:hover &": {
1144
+ color: d.palette.primary.main
1145
+ }
1146
+ },
1147
+ children: (t == null ? void 0 : t.contactNumber) || "N/A"
1148
+ }
1149
+ )
1150
+ ] }) })
1151
+ },
1152
+ {
1153
+ field: "roleName",
1154
+ label: "Role Name".toUpperCase(),
1155
+ sortable: !0,
1156
+ sortOrder: "asc",
1157
+ align: "left",
1158
+ render: (t) => /* @__PURE__ */ e("div", { className: "flex items-center w-auto h-full", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-1.5", children: /* @__PURE__ */ e(
1159
+ Q,
1160
+ {
1161
+ component: "span",
1162
+ className: "px-2.5 rounded-lg text-[0.6rem] font-black uppercase tracking-widest w-fit whitespace-nowrap",
1163
+ sx: {
1164
+ backgroundColor: K(d.palette.primary.main, 0.1),
1165
+ color: d.palette.primary.main,
1166
+ border: `1px solid ${K(d.palette.primary.main, 0.2)}`
1167
+ },
1168
+ children: t == null ? void 0 : t.roleName
1169
+ }
1170
+ ) }) })
1171
+ },
1172
+ {
1173
+ field: "areaOfIntervention",
1174
+ label: "Area of Intervention".toUpperCase(),
1175
+ align: "left",
1176
+ render: (t) => {
1177
+ var l;
1178
+ const r = (l = t == null ? void 0 : t.areaOfIntervention) == null ? void 0 : l.replace(
1179
+ /<br\s*\/?>/gi,
1180
+ ", "
1181
+ );
1182
+ return /* @__PURE__ */ e("div", { className: "flex items-center w-48 h-full", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-1.5 w-full min-w-0", children: /* @__PURE__ */ e(
1183
+ Q,
1184
+ {
1185
+ className: "flex items-center text-md pl-2",
1186
+ sx: { color: d.palette.text.primary },
1187
+ children: /* @__PURE__ */ e(
1188
+ Se,
1189
+ {
1190
+ arrow: !0,
1191
+ placement: "top",
1192
+ title: /* @__PURE__ */ e(
1193
+ "span",
1194
+ {
1195
+ dangerouslySetInnerHTML: {
1196
+ __html: (t == null ? void 0 : t.areaOfIntervention) || "N/A"
1197
+ }
1198
+ }
1199
+ ),
1200
+ children: /* @__PURE__ */ e(
1201
+ "span",
1202
+ {
1203
+ className: "cursor-default block w-full whitespace-normal break-words",
1204
+ dangerouslySetInnerHTML: {
1205
+ __html: r || "N/A"
1206
+ }
1207
+ }
1208
+ )
1209
+ }
1210
+ )
1211
+ }
1212
+ ) }) });
1213
+ }
1214
+ },
1215
+ {
1216
+ field: "healthFacilityName",
1217
+ label: "Health Infrastructure".toUpperCase(),
1218
+ align: "left",
1219
+ render: (t) => {
1220
+ var r;
1221
+ return /* @__PURE__ */ a("div", { className: "flex items-center gap-3 h-full", children: [
1222
+ /* @__PURE__ */ e(
1223
+ Q,
1224
+ {
1225
+ className: "w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-300",
1226
+ sx: {
1227
+ color: d.palette.text.disabled,
1228
+ ".group:hover &": {
1229
+ color: d.palette.primary.main,
1230
+ backgroundColor: K(d.palette.primary.main, 0.1)
1231
+ }
1232
+ },
1233
+ children: /* @__PURE__ */ e(xe, { icon: Qa })
1234
+ }
1235
+ ),
1236
+ /* @__PURE__ */ e(
1237
+ Q,
1238
+ {
1239
+ component: "span",
1240
+ className: "text-sm transition-colors duration-300",
1241
+ sx: {
1242
+ color: d.palette.text.secondary,
1243
+ ".group:hover &": {
1244
+ color: d.palette.primary.main
1245
+ }
1246
+ },
1247
+ children: /* @__PURE__ */ e("div", { className: "whitespace-pre-line", children: ((r = t == null ? void 0 : t.healthFacilityName) == null ? void 0 : r.replace(/<br\s*\/?>/gi, `
1248
+ `)) || "N/A" })
1249
+ }
1250
+ )
1251
+ ] });
1252
+ }
1253
+ },
1254
+ {
1255
+ field: "displayState",
1256
+ label: "User Status".toUpperCase(),
1257
+ align: "left",
1258
+ render: (t) => {
1259
+ const r = (t == null ? void 0 : t.displayState) === "ACTIVE";
1260
+ return /* @__PURE__ */ e("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ a(
1261
+ Q,
1262
+ {
1263
+ className: "inline-flex items-center justify-center rounded-full text-[0.8rem] font-black border transition-all duration-500 shadow-sm px-3 w-auto min-w-[110px]",
1264
+ sx: {
1265
+ backgroundColor: r ? d.palette.mode === "dark" ? K(d.palette.success.main, 0.15) : "rgb(236, 253, 245)" : d.palette.mode === "dark" ? K(d.palette.error.main, 0.15) : "rgb(254, 242, 242)",
1266
+ color: r ? d.palette.mode === "dark" ? d.palette.success.light : "rgb(4, 120, 87)" : d.palette.mode === "dark" ? d.palette.error.light : "rgb(248, 113, 113)",
1267
+ borderColor: r ? K(d.palette.success.main, 0.3) : K(d.palette.error.main, 0.3)
1268
+ },
1269
+ children: [
1270
+ /* @__PURE__ */ e(
1271
+ "span",
1272
+ {
1273
+ className: `w-2 h-2 rounded-full mr-2 ${r ? "bg-emerald-500 animate-pulse" : "bg-red-400"}`
1274
+ }
1275
+ ),
1276
+ t == null ? void 0 : t.displayState
1277
+ ]
1278
+ }
1279
+ ) });
1280
+ }
1281
+ },
1282
+ {
1283
+ field: "Actions",
1284
+ label: "Actions".toUpperCase(),
1285
+ align: "left"
1286
+ }
1287
+ ], [Jt, it] = c(We);
1288
+ ue(() => {
1289
+ it(We);
1290
+ }, [oe, de]);
1291
+ const Xt = async () => {
1292
+ var r, l, f, m;
1293
+ const t = S.displayState !== "ACTIVE";
1294
+ try {
1295
+ await fa(S, { is_active: t }), D(0), k((N) => !N), B({
1296
+ message: "User State Updated Successfully",
1297
+ type: "success"
1298
+ });
1299
+ } catch (N) {
1300
+ D(0), k((_) => !_);
1301
+ const i = (l = (r = N == null ? void 0 : N.response) == null ? void 0 : r.data) == null ? void 0 : l.errorcode, G = ((m = (f = N == null ? void 0 : N.response) == null ? void 0 : f.data) == null ? void 0 : m.message) || (N == null ? void 0 : N.message) || "Something went wrong";
1302
+ console.log(i, G), i === 400 ? B({
1303
+ message: `${G}`,
1304
+ type: "error"
1305
+ }) : B({
1306
+ message: "Error in Updating User State.",
1307
+ type: "error"
1308
+ });
1309
+ }
1310
+ }, Zt = async () => {
1311
+ try {
1312
+ const t = await ua({
1313
+ userId: (S == null ? void 0 : S.userId) ?? (S == null ? void 0 : S.id)
1314
+ });
1315
+ t && (E((r) => r.map((l) => (l == null ? void 0 : l.userId) === ((S == null ? void 0 : S.userId) ?? (S == null ? void 0 : S.id)) ? { ...l, loginCode: t.data } : l)), B({
1316
+ message: `You have successfully generated your login code. Your login code is : ${t.data}`,
1317
+ type: "success"
1318
+ }));
1319
+ } catch (t) {
1320
+ B({ message: `${t.response.data.message}`, type: "error" });
1321
+ } finally {
1322
+ D(0);
1323
+ }
1324
+ }, ea = (t) => Y(`/ui/medplat/manage/user/${(t == null ? void 0 : t.userId) ?? (t == null ? void 0 : t.id)}`), ta = kt(
1325
+ (t) => [
1326
+ ye.hasCheckRights(h == null ? void 0 : h["update.manage.users"], void 0, !0) && {
1327
+ label: "",
1328
+ icon: /* @__PURE__ */ e(xe, { icon: Pa, "data-testid": "userlist-button-edit" }),
1329
+ onClick: () => {
1330
+ ea(t);
1331
+ },
1332
+ iconColor: d.palette.secondary.main,
1333
+ backgroundColor: K(d.palette.secondary.main, 0.1),
1334
+ hoverBackgroundColor: d.palette.secondary.main,
1335
+ hoverIconColor: "white",
1336
+ borderColor: d.palette.secondary.main,
1337
+ rotateIcon: !0
1338
+ },
1339
+ {
1340
+ label: "",
1341
+ icon: /* @__PURE__ */ e(xe, { icon: Wa, "data-testid": "userlist-button-menu" }),
1342
+ iconColor: d.palette.primary.main,
1343
+ backgroundColor: K(d.palette.primary.main, 0.1),
1344
+ hoverBackgroundColor: d.palette.primary.main,
1345
+ hoverIconColor: "white",
1346
+ borderColor: d.palette.primary.main,
1347
+ menuItems: [
1348
+ {
1349
+ label: y(
1350
+ t.displayState === "ACTIVE" ? "Mark as Inactive" : "Mark as Active"
1351
+ ),
1352
+ onClick: () => {
1353
+ D(1), he(t);
1354
+ }
1355
+ },
1356
+ t.displayState === "ACTIVE" && !(t != null && t.loginCode) && {
1357
+ label: y("Generate SOH Code"),
1358
+ onClick: () => {
1359
+ D(2), he(t);
1360
+ }
1361
+ },
1362
+ de && (t != null && t.healthIdNumber || t != null && t.healthId ? {
1363
+ label: y("View ABHA Details"),
1364
+ onClick: () => {
1365
+ Be(t), ie("VIEW"), U(!0);
1366
+ }
1367
+ } : o && t.displayState === "ACTIVE" && {
1368
+ label: y("Create ABHA Number"),
1369
+ onClick: () => {
1370
+ Be(t), ie("CREATE"), U(!0);
1371
+ }
1372
+ })
1373
+ ].filter(Boolean)
1374
+ }
1375
+ ].filter(Boolean),
1376
+ [y, h, de, o]
1377
+ ), aa = async (t) => {
1378
+ const r = t.sortOrder === "asc" ? "desc" : "asc";
1379
+ it(
1380
+ (l) => l.map((f) => f.field === t.field ? { ...f, sortOrder: r } : f)
1381
+ ), I({ sortColumn: t.field, sortOrder: r });
1382
+ }, dt = () => {
1383
+ C("button_click", {
1384
+ button_name: "User Filter-open-button",
1385
+ button_type: "filter_open",
1386
+ button_id: "userlist-overlay-filter"
1387
+ }), L(!te);
1388
+ };
1389
+ ue(() => {
1390
+ const t = setTimeout(() => {
1391
+ fe(g);
1392
+ }, 1e3);
1393
+ return () => clearTimeout(t);
1394
+ }, [g]);
1395
+ async function la(t, r) {
1396
+ var l;
1397
+ try {
1398
+ if (h === null || ye.hasCheckRights(h == null ? void 0 : h["view.manage.users"], void 0, !0)) {
1399
+ r && X((m) => !m);
1400
+ const f = await wt({
1401
+ limit: t.limit,
1402
+ offset: t.offset,
1403
+ locationId: (u == null ? void 0 : u.locationId) || He,
1404
+ order: b.sortOrder,
1405
+ orderby: b.sortColumn,
1406
+ roleIds: F == null ? void 0 : F.join(","),
1407
+ status: u != null && u.status ? u == null ? void 0 : u.status : Ne || "BOTH",
1408
+ ...u != null && u.roleid ? { roleid: u == null ? void 0 : u.roleid } : (W == null ? void 0 : W.id) && { roleid: W.id },
1409
+ ...g && { searchString: g }
1410
+ });
1411
+ return g !== "" && C("search_tracking", {
1412
+ searchTerm: g,
1413
+ results_count: (l = f == null ? void 0 : f.data) == null ? void 0 : l.length,
1414
+ search_type: "Page Search"
1415
+ }), r && X((m) => !m), f.data;
1416
+ }
1417
+ } catch (f) {
1418
+ B({ message: `error ${f}`, type: "error" }), X((m) => !m);
1419
+ }
1420
+ }
1421
+ const {
1422
+ data: ze,
1423
+ fetchNextPage: sa,
1424
+ hasNextPage: na
1425
+ } = pa({
1426
+ key: [
1427
+ "users",
1428
+ ve,
1429
+ b.sortOrder,
1430
+ b.sortColumn,
1431
+ V,
1432
+ He,
1433
+ W == null ? void 0 : W.id,
1434
+ Ne,
1435
+ h,
1436
+ F
1437
+ ],
1438
+ queryFn: ({ pageParam: t }) => {
1439
+ const r = !(t != null && t.offset) || (t == null ? void 0 : t.offset) === 0;
1440
+ return la(t, r);
1441
+ },
1442
+ limit: O
1443
+ });
1444
+ ue(() => {
1445
+ (async () => {
1446
+ var r;
1447
+ try {
1448
+ const { data: l } = await $t({}, { showLoader: !1 }), f = l == null ? void 0 : l.filter((i) => {
1449
+ var G, _;
1450
+ return (_ = (G = i == null ? void 0 : i.name) == null ? void 0 : G.toLowerCase()) == null ? void 0 : _.includes("admin");
1451
+ }).map((i) => i.id);
1452
+ q(f);
1453
+ const m = l == null ? void 0 : l.map((i) => i.id);
1454
+ j(m), X(!0);
1455
+ const { data: N } = await ba("techo.manage.users");
1456
+ if (N) {
1457
+ const i = typeof N == "string" ? JSON.parse(N) : N;
1458
+ T(i);
1459
+ }
1460
+ (r = Z == null ? void 0 : Z.state) != null && r.fromManageUser || tt(Je({ ...z, userFilterPreference: {} })), X(!1);
1461
+ } catch (l) {
1462
+ X(!1), console.error("Error loading initial data:", l);
1463
+ }
1464
+ })();
1465
+ }, []), ue(() => {
1466
+ var r;
1467
+ const t = ((r = ze == null ? void 0 : ze.pages) == null ? void 0 : r.flat()) || [];
1468
+ R(na), E(t);
1469
+ }, [ze]);
1470
+ const ct = async () => {
1471
+ try {
1472
+ let r = 0, l = [], f = !0;
1473
+ for (; f; ) {
1474
+ const m = await wt({
1475
+ limit: 5e4,
1476
+ offset: r,
1477
+ locationId: (u == null ? void 0 : u.locationId) || He,
1478
+ order: b.sortOrder,
1479
+ orderby: b.sortColumn,
1480
+ roleIds: F == null ? void 0 : F.join(","),
1481
+ status: u != null && u.status ? u == null ? void 0 : u.status : Ne || "BOTH",
1482
+ ...u != null && u.roleid ? { roleid: u == null ? void 0 : u.roleid } : (W == null ? void 0 : W.id) && { roleid: W.id },
1483
+ ...g && { searchString: g }
1484
+ }), N = (m == null ? void 0 : m.data) || [];
1485
+ l = [...l, ...N], N.length < 5e4 ? f = !1 : r += 5e4;
1486
+ }
1487
+ return l;
1488
+ } catch (t) {
1489
+ return console.error(t), B({ message: "Error in retriving all Users", type: "error" }), [];
1490
+ }
1491
+ }, oa = async (t) => {
1492
+ try {
1493
+ const r = /* @__PURE__ */ new Date(), l = r.getMonth() + 1, f = `UserList-${r.getDate()}/${l}/${r.getFullYear().toString().substr(-2)}-${r.getHours()}:${r.getMinutes()}`, m = ke.utils.json_to_sheet(t), N = {
1494
+ font: { bold: !0 },
1495
+ alignment: { horizontal: "center" }
1496
+ };
1497
+ if (t.length > 0) {
1498
+ const Oe = ke.utils.decode_range(m["!ref"]);
1499
+ for (let Ce = Oe.s.c; Ce <= Oe.e.c; ++Ce) {
1500
+ const vt = m[ke.utils.encode_cell({ r: 0, c: Ce })];
1501
+ vt && (vt.s = N);
1502
+ }
1503
+ }
1504
+ const i = ke.utils.book_new();
1505
+ ke.utils.book_append_sheet(i, m, "Sheet1");
1506
+ const G = ke.write(i, {
1507
+ bookType: "xlsx",
1508
+ type: "array"
1509
+ }), _ = new Blob([G], {
1510
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
1511
+ }), At = (_.size / (1024 * 1024)).toFixed(2);
1512
+ Ja.saveAs(_, `${f}.xlsx`), C("file_download", {
1513
+ file_type: "excel",
1514
+ file_name: `${f}.xlsx`,
1515
+ file_size: `${At} MB`,
1516
+ filter_parameters: {
1517
+ taskTypeId: ee.id
1518
+ },
1519
+ download_status: "success"
1520
+ });
1521
+ } catch (r) {
1522
+ console.error("Error generating Excel file:", r), B({ message: "Error generating Excel file", type: "error" });
1523
+ }
1524
+ }, [mt, Ge] = c(!1), ra = async () => {
1525
+ try {
1526
+ Ge(!0);
1527
+ const t = await ct();
1528
+ let r = [];
1529
+ t && t.length > 0 && (r = t.map((l, f) => {
1530
+ var G;
1531
+ let m = "", N;
1532
+ l != null && l.title && (m += l.title + " "), l != null && l.firstName && (m += l.firstName + " "), l != null && l.lastName && (m += l.lastName), l != null && l.areaOfIntervention && (N = (G = l == null ? void 0 : l.areaOfIntervention) == null ? void 0 : G.replace(
1533
+ /<br\s*\/?>/gi,
1534
+ `,
1535
+ `
1536
+ ));
1537
+ const i = {
1538
+ "No.": f + 1,
1539
+ NAME: m || "NA",
1540
+ "USER IDENTITY": (l == null ? void 0 : l.userName) || "NA",
1541
+ "MOBILE NUMBER": (l == null ? void 0 : l.contactNumber) || "NA",
1542
+ "USER ROLE": (l == null ? void 0 : l.roleName) || "NA",
1543
+ "AREA OF INTERVENTION": N || "NA",
1544
+ "HEALTH INFRASTRUCTURE": (l == null ? void 0 : l.healthFacilityName) || "NA",
1545
+ "USER STATUS": (l == null ? void 0 : l.displayState) || "NA"
1546
+ };
1547
+ return Object.keys(i).forEach((_) => {
1548
+ _ === "id" ? delete i[_] : i[_] === null ? i[_] = "" : typeof i[_] == "boolean" && (i[_] = i[_] ? "Yes" : "No");
1549
+ }), i;
1550
+ })), oa(r), Ge(!1);
1551
+ } catch (t) {
1552
+ Ge(!1), console.log(t), B({
1553
+ message: "Error in downloading excel",
1554
+ type: "error"
1555
+ });
1556
+ }
1557
+ }, ia = Xa(), [ht, Ye] = c(!1), da = async () => {
1558
+ try {
1559
+ Ye(!0);
1560
+ const t = await ct();
1561
+ if (!t || t.length === 0) return;
1562
+ let r = [], l = [];
1563
+ r.push(y("NAME")), l.push("name"), We.filter(
1564
+ (i) => i.field !== "Actions" && i.field !== "index" && i.field !== "Sr. No."
1565
+ ).forEach((i) => {
1566
+ r.push(y(i.label)), l.push(i.field);
1567
+ });
1568
+ let f = t.map((i) => {
1569
+ var Oe, Ce;
1570
+ let G = "", _;
1571
+ return i != null && i.title && (G += i.title + " "), i != null && i.firstName && (G += i.firstName + " "), i != null && i.lastName && (G += i.lastName), i != null && i.areaOfIntervention && (_ = (Oe = i == null ? void 0 : i.areaOfIntervention) == null ? void 0 : Oe.replace(
1572
+ /<br\s*\/?>/gi,
1573
+ `,
1574
+ `
1575
+ )), {
1576
+ ...i,
1577
+ name: G || "NA",
1578
+ areaOfIntervention: _,
1579
+ healthFacilityName: ((Ce = i == null ? void 0 : i.healthFacilityName) == null ? void 0 : Ce.replace(/<br\s*\/?>/gi, `
1580
+ `)) || (i == null ? void 0 : i.healthFacilityName) || "NA"
1581
+ };
1582
+ });
1583
+ const m = /* @__PURE__ */ new Date(), N = m.getMonth() + 1;
1584
+ ia({
1585
+ columns: r,
1586
+ keys: l,
1587
+ data: f,
1588
+ fileName: `${y("UserList")}-${m.getDate()}/${N}/${m.getFullYear().toString().substr(-2)}-${m.getHours()}:${m.getMinutes()}`,
1589
+ headerText: y("User List"),
1590
+ footerText: y("User List"),
1591
+ orientation: r.length > 5 ? "landscape" : "portrait"
1592
+ }), Ye(!1);
1593
+ } catch (t) {
1594
+ Ye(!1), console.error(t);
1595
+ }
1596
+ }, ca = () => {
1597
+ Ze(null), et(null), Ie("BOTH"), we({}), nt(!1), rt([]), $([]), tt(Je({ ...z, userFilterPreference: {} })), at(null), st({}), ot((t) => t + 1), lt.current = null, dt();
1598
+ };
1599
+ return !H && h !== null && !ye.hasCheckRights(h == null ? void 0 : h["view.manage.users"], void 0, !0) ? /* @__PURE__ */ e(Q, { className: "flex justify-center items-center w-full h-[80vh]", children: /* @__PURE__ */ e(
1600
+ Ta,
1601
+ {
1602
+ className: "h-80 w-150 flex justify-center items-center",
1603
+ "data-testid": "userlist-no-permission",
1604
+ children: /* @__PURE__ */ e(p, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Users" })
1605
+ }
1606
+ ) }) : /* @__PURE__ */ a(le, { className: "w-[98%] mt-4 ", children: [
1607
+ /* @__PURE__ */ e(
1608
+ Ct,
1609
+ {
1610
+ open: be === 1,
1611
+ handleClose: () => D(0),
1612
+ handleClick: Xt,
1613
+ title: "CONFIRM ACTION",
1614
+ description: "Are you sure you want toggle the state of this user type?",
1615
+ dataTestId: "userlist-modal-status-confirmation"
1616
+ }
1617
+ ),
1618
+ /* @__PURE__ */ e(
1619
+ Ct,
1620
+ {
1621
+ open: be === 2,
1622
+ handleClose: () => D(0),
1623
+ handleClick: Zt,
1624
+ title: "CONFIRM ACTION",
1625
+ description: "Are you sure you want to Generate SOH code ?",
1626
+ dataTestId: "userlist-modal-generate-soh-confirmation"
1627
+ }
1628
+ ),
1629
+ de && (P === "VIEW" || o) && /* @__PURE__ */ e(
1630
+ Wt,
1631
+ {
1632
+ open: M,
1633
+ onClose: () => {
1634
+ U(!1), Be(null);
1635
+ },
1636
+ user: Pe,
1637
+ mode: P,
1638
+ onSuccess: Ue
1639
+ }
1640
+ ),
1641
+ /* @__PURE__ */ e(Ma, { isLoading: H, children: /* @__PURE__ */ a(
1642
+ le,
1643
+ {
1644
+ container: !0,
1645
+ className: "flex flex-col md:flex-row mb-2 justify-between items-start md:items-center space-y-2 md:space-y-0",
1646
+ children: [
1647
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(
1648
+ p,
1649
+ {
1650
+ variant: "body2",
1651
+ className: "font-bold font-sans text-lg text-[var(--color-customBlue)] uppercase text-customBlue",
1652
+ "data-testid": "notification-list-typography-title",
1653
+ children: y("User List")
1654
+ }
1655
+ ) }),
1656
+ /* @__PURE__ */ a(le, { className: "flex flex-col md:flex-row w-full md:w-auto space-y-2 md:space-y-0 md:space-x-3", children: [
1657
+ /* @__PURE__ */ e(le, { className: "w-full md:w-auto", children: /* @__PURE__ */ e(
1658
+ Fe,
1659
+ {
1660
+ name: "searchQuery",
1661
+ id: "searchQuery",
1662
+ className: "w-full md:w-auto",
1663
+ placeholder: "Search...",
1664
+ size: "small",
1665
+ onChange: (t) => {
1666
+ var r;
1667
+ return J((r = t.target) == null ? void 0 : r.value);
1668
+ },
1669
+ value: g,
1670
+ "data-testid": "userlist-textfield-search",
1671
+ sx: {
1672
+ "& .MuiInputBase-root": {
1673
+ backgroundColor: (t) => t.palette.background.paper
1674
+ }
1675
+ }
1676
+ }
1677
+ ) }),
1678
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-3 flex-wrap md:flex-nowrap", children: [
1679
+ /* @__PURE__ */ a(
1680
+ "div",
1681
+ {
1682
+ className: `flex items-center rounded-2xl p-1 shadow-sm transition-all duration-300 border ${oe ? "bg-slate-900 border-slate-800" : "bg-white border-slate-200"}`,
1683
+ children: [
1684
+ /* @__PURE__ */ e(
1685
+ "button",
1686
+ {
1687
+ disabled: ht,
1688
+ onClick: da,
1689
+ className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ${oe ? "text-slate-400 hover:text-slate-100 hover:bg-slate-800" : "text-slate-600 hover:text-red-600 hover:bg-slate-50"}`,
1690
+ children: ht ? /* @__PURE__ */ a(Te, { children: [
1691
+ /* @__PURE__ */ e(Me, { size: 14, sx: { color: "inherit" } }),
1692
+ /* @__PURE__ */ e(xe, { icon: Ht, className: "mr-1" }),
1693
+ "Pdf"
1694
+ ] }) : /* @__PURE__ */ a(Te, { children: [
1695
+ /* @__PURE__ */ e(xe, { icon: Ht, className: "mr-1" }),
1696
+ "Pdf"
1697
+ ] })
1698
+ }
1699
+ ),
1700
+ /* @__PURE__ */ e(
1701
+ "button",
1702
+ {
1703
+ disabled: mt,
1704
+ onClick: () => ra(),
1705
+ className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ml-1 ${oe ? "bg-slate-800 text-slate-100 hover:bg-slate-700" : "bg-[var(--color-tableHeader)] text-white hover:bg-[var(--color-tableHeader)]"}`,
1706
+ children: mt ? /* @__PURE__ */ a(Te, { children: [
1707
+ /* @__PURE__ */ e(Me, { size: 14, sx: { color: "inherit" } }),
1708
+ /* @__PURE__ */ e(xe, { icon: zt, className: "mr-1" }),
1709
+ "Excel Data"
1710
+ ] }) : /* @__PURE__ */ a(Te, { children: [
1711
+ /* @__PURE__ */ e(xe, { icon: zt, className: "mr-1" }),
1712
+ "Excel Data"
1713
+ ] })
1714
+ }
1715
+ )
1716
+ ]
1717
+ }
1718
+ ),
1719
+ ye.hasCheckRights(h == null ? void 0 : h["create.manage.users"], void 0, !0) && /* @__PURE__ */ e(
1720
+ ae,
1721
+ {
1722
+ variant: "contained",
1723
+ className: "w-auto ml-auto",
1724
+ onClick: () => {
1725
+ C("button_click", {
1726
+ button_name: "add_user",
1727
+ button_type: "navigate",
1728
+ button_id: "userlist-button-add"
1729
+ }), Y("/ui/medplat/manage/user");
1730
+ },
1731
+ size: "small",
1732
+ "data-testid": "userlist-button-add",
1733
+ children: y("Add")
1734
+ }
1735
+ ),
1736
+ ye.isSevaMandir && ye.hasCheckRights(h == null ? void 0 : h["create.manage.users"], void 0, !0) && /* @__PURE__ */ e(
1737
+ ae,
1738
+ {
1739
+ variant: "contained",
1740
+ className: "w-auto ml-auto",
1741
+ onClick: () => {
1742
+ C("button_click", {
1743
+ button_name: "upload_users",
1744
+ button_type: "navigate",
1745
+ button_id: "userlist-button-add"
1746
+ }), Y("/ui/medplat/manage/upload-users");
1747
+ },
1748
+ size: "small",
1749
+ "data-testid": "userlist-button-add",
1750
+ children: y("Upload Users")
1751
+ }
1752
+ )
1753
+ ] })
1754
+ ] })
1755
+ ]
1756
+ }
1757
+ ) }),
1758
+ /* @__PURE__ */ e(Ha, { isLoading: pe, children: x && /* @__PURE__ */ a("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
1759
+ /* @__PURE__ */ e(
1760
+ Ve,
1761
+ {
1762
+ title: "Total Users",
1763
+ value: (x == null ? void 0 : x.total_users) || 0,
1764
+ icon: Ga,
1765
+ bottomIndicator: ce,
1766
+ selected: Ne === "BOTH" && F.length === 0,
1767
+ selectedBgColor: ce,
1768
+ selectedTitleColor: w,
1769
+ selectedValueColor: w,
1770
+ onClick: () => {
1771
+ (x == null ? void 0 : x.total_users) > 0 ? ($([]), Ie("BOTH"), we((t) => ({
1772
+ ...t,
1773
+ status: "BOTH"
1774
+ }))) : B({ message: "No users found", type: "warning" });
1775
+ }
1776
+ }
1777
+ ),
1778
+ /* @__PURE__ */ e(
1779
+ Ve,
1780
+ {
1781
+ title: "Active Users",
1782
+ value: (x == null ? void 0 : x.active_count) || 0,
1783
+ icon: Ya,
1784
+ bottomIndicator: s,
1785
+ selected: Ne === "ACTIVE" && F.length === 0,
1786
+ selectedBgColor: s,
1787
+ selectedTitleColor: w,
1788
+ selectedValueColor: w,
1789
+ onClick: () => {
1790
+ (x == null ? void 0 : x.active_count) > 0 ? ($([]), Ie("ACTIVE"), we((t) => ({
1791
+ ...t,
1792
+ status: "ACTIVE"
1793
+ }))) : B({
1794
+ message: "No active users found",
1795
+ type: "warning"
1796
+ });
1797
+ }
1798
+ }
1799
+ ),
1800
+ /* @__PURE__ */ e(
1801
+ Ve,
1802
+ {
1803
+ title: "Inactive Users",
1804
+ value: (x == null ? void 0 : x.inactive_count) || 0,
1805
+ icon: qa,
1806
+ bottomIndicator: v,
1807
+ selected: Ne === "INACTIVE" && F.length === 0,
1808
+ selectedBgColor: v,
1809
+ selectedTitleColor: w,
1810
+ selectedValueColor: w,
1811
+ onClick: () => {
1812
+ (x == null ? void 0 : x.inactive_count) > 0 ? ($([]), Ie("INACTIVE"), we((t) => ({
1813
+ ...t,
1814
+ status: "INACTIVE"
1815
+ }))) : B({
1816
+ message: "No inactive users found",
1817
+ type: "warning"
1818
+ });
1819
+ }
1820
+ }
1821
+ ),
1822
+ /* @__PURE__ */ e(
1823
+ Ve,
1824
+ {
1825
+ title: "Admins",
1826
+ value: (x == null ? void 0 : x.admin_role_count) || 0,
1827
+ icon: Da,
1828
+ bottomIndicator: me,
1829
+ selected: F.length > 0,
1830
+ selectedBgColor: me,
1831
+ selectedTitleColor: w,
1832
+ selectedValueColor: w,
1833
+ onClick: () => {
1834
+ (x == null ? void 0 : x.admin_role_count) > 0 ? (Ie("BOTH"), we((t) => ({
1835
+ ...t,
1836
+ status: "BOTH"
1837
+ })), $(n)) : B({
1838
+ message: "No active users found",
1839
+ type: "warning"
1840
+ });
1841
+ }
1842
+ }
1843
+ )
1844
+ ] }) }),
1845
+ /* @__PURE__ */ e(
1846
+ xa,
1847
+ {
1848
+ columns: Jt,
1849
+ tableData: Qt,
1850
+ actions: ta,
1851
+ paginationConfig: {
1852
+ pagination: !0,
1853
+ paginationType: "infinite-scroll",
1854
+ rowsPerPageInTable: O,
1855
+ hasMore: re,
1856
+ loadMore: () => re && sa({ cancelRefetch: !1 })
1857
+ },
1858
+ styleConfig: { cellStyle: { maxLines: 2 } },
1859
+ isLoading: ee ? H : !0,
1860
+ handleSort: aa,
1861
+ dataTestId: "userlist-table-customized"
1862
+ }
1863
+ ),
1864
+ /* @__PURE__ */ e(
1865
+ ga,
1866
+ {
1867
+ title: "User Filter",
1868
+ resetButtonLabel: "Reset",
1869
+ onResetClick: ca,
1870
+ FormBody: Pt,
1871
+ handleOverlayState: dt,
1872
+ overlayOpen: te,
1873
+ dataTestId: "userlist-overlay-filter",
1874
+ formProps: {
1875
+ setAdminRoleIdsStats: $,
1876
+ setIsLoading: X,
1877
+ isLoading: H,
1878
+ setLocationId: Ze,
1879
+ setRoleDetails: et,
1880
+ roleDetails: W,
1881
+ status: Ne,
1882
+ setStatus: Ie,
1883
+ setSelectedLocation: st,
1884
+ selectedLocation: Yt,
1885
+ filterRequired: qt,
1886
+ setFilterRequired: nt,
1887
+ setUserFilterPreference: we,
1888
+ user: z,
1889
+ userFilterPreference: u,
1890
+ locationIdRef: lt,
1891
+ setSelectedLocationId: at,
1892
+ resetLocationDirective: Dt,
1893
+ setResetLocationDirective: ot,
1894
+ locations: Kt,
1895
+ setLocations: rt
1896
+ }
1897
+ }
1898
+ )
1899
+ ] });
1900
+ }
1901
+ export {
1902
+ Yl as default
1903
+ };
1904
+ //# sourceMappingURL=UserList-Cf5B-o_1.js.map