@argusoft/medplat-core 1.0.31 → 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 (199) hide show
  1. package/dist/{AccessRights-DUgY6ewy.js → AccessRights-DBjTQA1-.js} +421 -424
  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-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-CclreTv1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-CclreTv1.js.map} +1 -1
  12. package/dist/{ChangePasswordModalCore-lQ9GamH1.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-lQ9GamH1.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.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/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  28. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-Kc73yPHH.js} +2 -2
  29. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-Kc73yPHH.js.map} +1 -1
  30. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  31. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  32. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  33. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  34. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  35. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  36. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-lKsJZMak.js} +1342 -1301
  37. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  38. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  39. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  40. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  41. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  42. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  43. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  44. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  45. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  46. package/dist/ManageRole-CyfpySt9.js +981 -0
  47. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  48. package/dist/{ManageUser-DZltBina.js → ManageUser-Dm0l833u.js} +172 -172
  49. package/dist/{ManageUser-DZltBina.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  50. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +37 -37
  51. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  52. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  53. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  54. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  55. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  56. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  57. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  58. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  59. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  60. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  61. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  62. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +56 -56
  63. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  64. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +38 -38
  65. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  66. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  67. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  68. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  69. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  70. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  71. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  72. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-CWkgeBw0.js} +122 -122
  73. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  74. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  75. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  76. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  77. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  78. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +29 -29
  79. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-CQBjnc-n.js.map} +1 -1
  80. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  81. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  82. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +446 -436
  83. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  84. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +55 -55
  85. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  86. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +61 -61
  87. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  88. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  89. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  90. package/dist/Roles-BoNGJhtR.js +19 -0
  91. package/dist/Roles-BoNGJhtR.js.map +1 -0
  92. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +33 -33
  93. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  94. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +34 -34
  95. package/dist/SalesPage-eF9Yr42z-BQ9FlXC3.js.map +1 -0
  96. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  97. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  98. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +213 -190
  99. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  100. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-OO2zhKiu.js} +2 -2
  101. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-OO2zhKiu.js.map} +1 -1
  102. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  103. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  104. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  105. package/dist/TableList-B5tX4wII.js.map +1 -0
  106. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +185 -170
  107. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  108. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  109. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  110. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  111. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  112. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  113. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  114. package/dist/UserList-Cf5B-o_1.js +1904 -0
  115. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  116. package/dist/Users-MC7txo1V.js +43 -0
  117. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  118. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  119. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  120. package/dist/VaccineEducation.css +1 -0
  121. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  122. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  123. package/dist/VaccineEducationConfigurator.css +4 -0
  124. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  125. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  126. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  127. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  128. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  129. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  130. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  131. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  132. package/dist/index-mfoqII2U.js +524 -0
  133. package/dist/index-mfoqII2U.js.map +1 -0
  134. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  135. package/dist/index-o8Pyt1Bt.js.map +1 -0
  136. package/dist/index.css +1 -1
  137. package/dist/index.js +1 -1
  138. package/dist/{index.lib-ETRQOzvE.js → index.lib-BySa9-Z-.js} +302 -260
  139. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  140. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  141. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  142. package/package.json +5 -1
  143. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  144. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  145. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  146. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  147. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  148. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  149. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  150. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  151. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  152. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  153. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  154. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  155. package/dist/ManageRole-CNZBRKGU.js +0 -776
  156. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  157. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  158. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  159. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  160. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  161. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  162. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  163. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  164. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  165. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  166. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  167. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  168. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  169. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  170. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  171. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  172. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  173. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  174. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  175. package/dist/Roles-BIyiic67.js +0 -14
  176. package/dist/Roles-BIyiic67.js.map +0 -1
  177. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  178. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  179. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  180. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  181. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  182. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  183. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  184. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  185. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  186. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  187. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  188. package/dist/UserList-L41Xw0Q6.js +0 -1129
  189. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  190. package/dist/Users-CsJ08Kjm.js +0 -40
  191. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  192. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  193. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  194. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  195. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  196. package/dist/index-D9YNFPn9.js.map +0 -1
  197. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  198. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  199. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -1,40 +1,43 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { addServer as ce, addServerMappingList as de, updateServer as ue, updateServerMappingList as pe, getAllServer as he, getAllServerDetails as me } from "@/common/services/SyncWithServer";
3
- import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
4
- import { faPen as V, faPlus as H, faServer as Q, faCircleCheck as X, faMagnifyingGlass as fe, faCircleXmark as ge } from "@fortawesome/free-solid-svg-icons";
5
- import { useTheme as te } from "@mui/material/styles";
6
- import { Dialog as ve, DialogTitle as be, Box as F, Typography as c, DialogContent as ye, Divider as G, Autocomplete as B, TextField as I, FormHelperText as Z, FormControl as Se, RadioGroup as xe, FormControlLabel as _, Radio as ee, Chip as b, DialogActions as Ce, Button as Y, Paper as re, InputAdornment as Pe, TableContainer as Ae, Table as ze, TableHead as we, TableRow as J, TableCell as h, TableBody as Te, Tooltip as oe, IconButton as ke } from "@mui/material";
7
- import f from "@mui/material/Grid2";
8
- import { Box as z } from "@mui/system";
9
- import { useState as P, useEffect as le, createElement as ne, useMemo as Re } from "react";
10
- import { showToast as C } from "@/common/toaster/toaster";
11
- import { useDebounceFn as We } from "@/hooks/useDebounceFn";
12
- import U from "@/views/custom-components/CustomTextField";
13
- import { yupResolver as Ne } from "@hookform/resolvers/yup";
14
- import y from "prop-types";
15
- import { useForm as Fe, Controller as q } from "react-hook-form";
16
- import * as R from "yup";
17
- import { useTranslateProvider as qe } from "@/common/languageTranslator/TranslationContext";
18
- function ae({
19
- openAddServer: O,
20
- openAddServerFunc: W,
21
- allServerList: x,
22
- reloadPageFunc: w,
23
- editServer: g,
24
- editServerFunc: N,
25
- serverData: d = {}
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { addServer as ge, addServerMappingList as ve, updateServer as be, updateServerMappingList as ye, getAllServer as Se, getAllServerDetails as xe } from "@/common/services/SyncWithServer";
3
+ import { FontAwesomeIcon as S } from "@fortawesome/react-fontawesome";
4
+ import { faPen as X, faPlus as Z, faServer as ne, faCircleCheck as te, faMagnifyingGlass as Ce, faCircleXmark as Pe } from "@fortawesome/free-solid-svg-icons";
5
+ import { useTheme as ue } from "@mui/material/styles";
6
+ import { Dialog as we, DialogTitle as Ae, Box as D, Typography as u, DialogContent as ze, Divider as _, Autocomplete as Y, TextField as L, FormHelperText as ae, FormControl as Te, RadioGroup as Re, FormControlLabel as le, Radio as se, Chip as x, DialogActions as ke, Button as ee, Card as Ne, Paper as ie, InputAdornment as We, TableContainer as Me, Table as Fe, TableHead as Ie, TableRow as K, TableCell as h, TableBody as qe, Tooltip as ce, IconButton as Oe } from "@mui/material";
7
+ import g from "@mui/material/Grid2";
8
+ import { Box as A } from "@mui/system";
9
+ import { useState as y, useEffect as re, createElement as de, useMemo as Ee } from "react";
10
+ import { showToast as z } from "@/common/toaster/toaster";
11
+ import { useDebounceFn as De } from "@/hooks/useDebounceFn";
12
+ import Q from "@/views/custom-components/CustomTextField";
13
+ import { yupResolver as je } from "@hookform/resolvers/yup";
14
+ import v from "prop-types";
15
+ import { useForm as Le, Controller as j } from "react-hook-form";
16
+ import * as k from "yup";
17
+ import { useTranslateProvider as $e } from "@/common/languageTranslator/TranslationContext";
18
+ import W from "@/common/services/util/GeneralUtil";
19
+ import { getAssignedFeatures as Be } from "@/utils/feature";
20
+ function pe({
21
+ openAddServer: $,
22
+ openAddServerFunc: M,
23
+ allServerList: C,
24
+ reloadPageFunc: R,
25
+ editServer: f,
26
+ editServerFunc: F,
27
+ serverData: m = {},
28
+ rights: P
26
29
  }) {
27
- var k;
28
- const { translate: u } = qe(), [S, E] = P(""), M = ["STAGING", "PRODUCTION"], D = te(), A = (l) => D.palette.mode === "light" ? l : `${l}-dark`, $ = R.object().shape({
29
- name: R.string().required("Name is required"),
30
- code: R.string().required("Code is required"),
31
- type: R.string().required("Type is required"),
32
- url: R.string().required("URL is required").matches(
30
+ var E;
31
+ const { translate: d } = $e(), [B, U] = y(""), J = ["STAGING", "PRODUCTION"], T = ue(), V = (a) => T.palette.mode === "light" ? a : `${a}-dark`, p = W.hasCheckRights(P == null ? void 0 : P["create.admin.newServerManagement"]), G = W.hasCheckRights(P == null ? void 0 : P["update.admin.newServerManagement"]), I = f ? G : p, q = k.object().shape({
32
+ name: k.string().required("Name is required"),
33
+ code: k.string().required("Code is required"),
34
+ type: k.string().required("Type is required"),
35
+ url: k.string().required("URL is required").matches(
33
36
  /^https?:\/\/(localhost|\d{1,3}(?:\.\d{1,3}){3}|[a-zA-Z0-9.-]+)(:\d+)?(\/.*)?$/,
34
37
  "Invalid URL"
35
38
  ),
36
- isActive: R.boolean().required("This field is required.")
37
- }), s = Fe({
39
+ isActive: k.boolean().required("This field is required.")
40
+ }), i = Le({
38
41
  defaultValues: {
39
42
  name: "",
40
43
  code: "",
@@ -44,85 +47,86 @@ function ae({
44
47
  canPullServer: [],
45
48
  canPushServer: []
46
49
  },
47
- resolver: Ne($),
50
+ resolver: je(q),
48
51
  mode: "onChange"
49
52
  });
50
- le(() => {
51
- g && s.reset({
52
- name: d.name,
53
- code: d.code,
54
- type: d.type,
55
- url: d.url,
56
- isActive: d.isActive,
57
- canPullServer: d.canPullServers ? d.canPullServers : [],
58
- canPushServer: d.canPushServers ? d.canPushServers : []
53
+ re(() => {
54
+ f && i.reset({
55
+ name: m.name,
56
+ code: m.code,
57
+ type: m.type,
58
+ url: m.url,
59
+ isActive: m.isActive,
60
+ canPullServer: m.canPullServers ? m.canPullServers : [],
61
+ canPushServer: m.canPushServers ? m.canPushServers : []
59
62
  });
60
63
  }, []);
61
- const T = () => {
62
- W(!1), N(!1);
63
- }, L = We(async (l) => {
64
- x != null && x.find((o) => o.code === l) ? s.setError("code", {
64
+ const N = () => {
65
+ M(!1), F(!1);
66
+ }, O = De(async (a) => {
67
+ C != null && C.find((l) => l.code === a) ? i.setError("code", {
65
68
  type: "manual",
66
69
  message: "Code already exists"
67
- }) : E(`${l} is available`);
68
- }, 500), j = async (l) => {
69
- var n, i;
70
- let o = /* @__PURE__ */ new Map();
71
- (n = l.canPullServer) == null || n.forEach((t) => {
72
- let p = {
70
+ }) : U(`${a} is available`);
71
+ }, 500), H = async (a) => {
72
+ var r, n;
73
+ if (!I) return;
74
+ let l = /* @__PURE__ */ new Map();
75
+ (r = a.canPullServer) == null || r.forEach((t) => {
76
+ let c = {
73
77
  canPull: !0,
74
78
  canPush: !1
75
79
  };
76
- o.set(t.code, p);
77
- }), (i = l.canPushServer) == null || i.forEach((t) => {
78
- if (o.has(t.code))
79
- o.get(t.code).canPush = !0;
80
+ l.set(t.code, c);
81
+ }), (n = a.canPushServer) == null || n.forEach((t) => {
82
+ if (l.has(t.code))
83
+ l.get(t.code).canPush = !0;
80
84
  else {
81
- let p = {
85
+ let c = {
82
86
  canPull: !1,
83
87
  canPush: !0
84
88
  };
85
- o.set(t.code, p);
89
+ l.set(t.code, c);
86
90
  }
87
91
  });
88
- const r = [];
89
- if (o.forEach((t, p) => {
90
- r.push({
91
- sourceServerCode: l.code,
92
- destinationServerCode: p,
92
+ const o = [];
93
+ if (l.forEach((t, c) => {
94
+ o.push({
95
+ sourceServerCode: a.code,
96
+ destinationServerCode: c,
93
97
  canPull: t.canPull,
94
98
  canPush: t.canPush
95
- }), r.push({
96
- sourceServerCode: p,
97
- destinationServerCode: l.code,
99
+ }), o.push({
100
+ sourceServerCode: c,
101
+ destinationServerCode: a.code,
98
102
  canPull: t.canPush,
99
103
  canPush: t.canPull
100
104
  });
101
- }), g)
105
+ }), f)
102
106
  try {
103
- if (o.size === 0 && r.push({
104
- sourceServerCode: l.code,
107
+ if (l.size === 0 && o.push({
108
+ sourceServerCode: a.code,
105
109
  destinationServerCode: null,
106
110
  canPull: null,
107
111
  canPush: null
108
- }), l.uuid = d.uuid, await ue(l), C({
112
+ }), a.uuid = m.uuid, await be(a), z({
109
113
  type: "success",
110
114
  message: "Server updated successfully"
111
- }), r.length > 0)
115
+ }), o.length > 0)
112
116
  try {
113
- await pe(r), C({
117
+ await ye(o), z({
114
118
  type: "success",
115
119
  message: "Server mapping updated successfully"
116
120
  });
117
121
  } catch (t) {
118
- C({
122
+ z({
119
123
  type: "error",
120
124
  message: "Failed to update server mapping"
121
125
  }), console.error("Error updating server mapping:", t);
122
126
  }
123
- w((t) => !t), T();
127
+ R((t) => !t), N();
124
128
  } catch (t) {
125
- C({
129
+ z({
126
130
  type: "error",
127
131
  message: "Failed to update server"
128
132
  }), console.error("Error updating server:", t);
@@ -130,60 +134,60 @@ function ae({
130
134
  else
131
135
  try {
132
136
  const t = {
133
- name: l.name,
134
- code: l.code,
135
- type: l.type,
136
- url: l.url,
137
- isActive: l.isActive
137
+ name: a.name,
138
+ code: a.code,
139
+ type: a.type,
140
+ url: a.url,
141
+ isActive: a.isActive
138
142
  };
139
- if (await ce(t), C({
143
+ if (await ge(t), z({
140
144
  type: "success",
141
145
  message: "Server added successfully"
142
- }), r.length > 0)
146
+ }), o.length > 0)
143
147
  try {
144
- await de(r), C({
148
+ await ve(o), z({
145
149
  type: "success",
146
150
  message: "Server mapping added successfully"
147
151
  });
148
- } catch (p) {
149
- C({
152
+ } catch (c) {
153
+ z({
150
154
  type: "error",
151
155
  message: "Failed to add server mapping"
152
- }), console.error("Error adding server mapping:", p);
156
+ }), console.error("Error adding server mapping:", c);
153
157
  }
154
- w((p) => !p), W(!1);
158
+ R((c) => !c), M(!1);
155
159
  } catch (t) {
156
- C({
160
+ z({
157
161
  type: "error",
158
162
  message: "Failed to add server"
159
163
  }), console.error("Error adding server:", t);
160
164
  }
161
- }, m = ({ label: l, required: o, children: r }) => /* @__PURE__ */ a(F, { sx: { display: "flex", flexDirection: "column", gap: 0.75 }, children: [
162
- /* @__PURE__ */ a(
163
- c,
165
+ }, b = ({ label: a, required: l, children: o }) => /* @__PURE__ */ s(D, { sx: { display: "flex", flexDirection: "column", gap: 0.75 }, children: [
166
+ /* @__PURE__ */ s(
167
+ u,
164
168
  {
165
169
  variant: "body2",
166
170
  sx: { fontWeight: 600, color: "text.primary" },
167
171
  children: [
168
- l,
169
- o && /* @__PURE__ */ e(c, { component: "span", sx: { color: "error.main", ml: 0.5 }, children: "*" })
172
+ a,
173
+ l && /* @__PURE__ */ e(u, { component: "span", sx: { color: "error.main", ml: 0.5 }, children: "*" })
170
174
  ]
171
175
  }
172
176
  ),
173
- r
177
+ o
174
178
  ] });
175
- return m.propTypes = {
176
- label: y.string.isRequired,
177
- required: y.bool,
178
- children: y.node.isRequired
179
- }, /* @__PURE__ */ a(
180
- ve,
179
+ return b.propTypes = {
180
+ label: v.string.isRequired,
181
+ required: v.bool,
182
+ children: v.node.isRequired
183
+ }, /* @__PURE__ */ s(
184
+ we,
181
185
  {
182
- open: O,
186
+ open: $,
183
187
  fullWidth: !0,
184
188
  maxWidth: "sm",
185
- onClose: T,
186
- className: A("add-server-dialog"),
189
+ onClose: N,
190
+ className: V("add-server-dialog"),
187
191
  PaperProps: {
188
192
  sx: {
189
193
  borderRadius: 1.5,
@@ -199,7 +203,7 @@ function ae({
199
203
  },
200
204
  children: [
201
205
  /* @__PURE__ */ e(
202
- be,
206
+ Ae,
203
207
  {
204
208
  sx: {
205
209
  px: 3,
@@ -209,9 +213,9 @@ function ae({
209
213
  borderColor: "divider",
210
214
  backgroundColor: "background.paper"
211
215
  },
212
- children: /* @__PURE__ */ a(F, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
216
+ children: /* @__PURE__ */ s(D, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
213
217
  /* @__PURE__ */ e(
214
- F,
218
+ D,
215
219
  {
216
220
  sx: {
217
221
  width: 36,
@@ -225,24 +229,24 @@ function ae({
225
229
  flexShrink: 0
226
230
  },
227
231
  children: /* @__PURE__ */ e(
228
- v,
232
+ S,
229
233
  {
230
- icon: g ? V : H,
234
+ icon: f ? X : Z,
231
235
  style: { fontSize: "0.85rem" }
232
236
  }
233
237
  )
234
238
  }
235
239
  ),
236
- /* @__PURE__ */ a(F, { children: [
237
- /* @__PURE__ */ e(c, { variant: "h6", sx: { fontWeight: 700, lineHeight: 1.3 }, children: u(g ? "Update Server" : "Add Server") }),
238
- /* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", children: g ? "Modify server configuration and sync permissions." : "Configure a new server connection." })
240
+ /* @__PURE__ */ s(D, { children: [
241
+ /* @__PURE__ */ e(u, { variant: "h6", sx: { fontWeight: 700, lineHeight: 1.3 }, children: d(f ? "Update Server" : "Add Server") }),
242
+ /* @__PURE__ */ e(u, { variant: "caption", color: "text.secondary", children: f ? "Modify server configuration and sync permissions." : "Configure a new server connection." })
239
243
  ] })
240
244
  ] })
241
245
  }
242
246
  ),
243
- /* @__PURE__ */ a("form", { noValidate: !0, onSubmit: s.handleSubmit(j), children: [
247
+ /* @__PURE__ */ s("form", { noValidate: !0, onSubmit: i.handleSubmit(H), children: [
244
248
  /* @__PURE__ */ e(
245
- ye,
249
+ ze,
246
250
  {
247
251
  sx: {
248
252
  px: 3,
@@ -250,10 +254,10 @@ function ae({
250
254
  scrollbarWidth: "none",
251
255
  "&::-webkit-scrollbar": { display: "none" }
252
256
  },
253
- children: /* @__PURE__ */ a(f, { container: !0, spacing: 2.5, children: [
254
- /* @__PURE__ */ a(f, { size: 12, children: [
257
+ children: /* @__PURE__ */ s(g, { container: !0, spacing: 2.5, children: [
258
+ /* @__PURE__ */ s(g, { size: 12, children: [
255
259
  /* @__PURE__ */ e(
256
- c,
260
+ u,
257
261
  {
258
262
  variant: "subtitle2",
259
263
  sx: {
@@ -267,56 +271,56 @@ function ae({
267
271
  children: "Server Details"
268
272
  }
269
273
  ),
270
- /* @__PURE__ */ e(G, {})
274
+ /* @__PURE__ */ e(_, {})
271
275
  ] }),
272
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(m, { label: u("Name"), required: !0, children: /* @__PURE__ */ e(
273
- U,
276
+ /* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("Name"), required: !0, children: /* @__PURE__ */ e(
277
+ Q,
274
278
  {
275
- control: s.control,
279
+ control: i.control,
276
280
  name: "name",
277
281
  id: "name",
278
- errors: s.formState.errors,
282
+ errors: i.formState.errors,
279
283
  placeholder: "Enter server name"
280
284
  }
281
285
  ) }) }),
282
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(m, { label: u("Code"), required: !0, children: /* @__PURE__ */ e(
283
- U,
286
+ /* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("Code"), required: !0, children: /* @__PURE__ */ e(
287
+ Q,
284
288
  {
285
- control: s.control,
289
+ control: i.control,
286
290
  name: "code",
287
291
  id: "code",
288
- disabled: g,
289
- errors: s.formState.errors,
292
+ disabled: f,
293
+ errors: i.formState.errors,
290
294
  placeholder: "Enter server code",
291
- successMessage: S,
292
- onChange: (l) => L(l.target.value)
295
+ successMessage: B,
296
+ onChange: (a) => O(a.target.value)
293
297
  }
294
298
  ) }) }),
295
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ a(m, { label: u("Type"), required: !0, children: [
299
+ /* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ s(b, { label: d("Type"), required: !0, children: [
296
300
  /* @__PURE__ */ e(
297
- q,
301
+ j,
298
302
  {
299
303
  name: "type",
300
- control: s.control,
301
- render: ({ field: { onChange: l, value: o } }) => /* @__PURE__ */ e(
302
- B,
304
+ control: i.control,
305
+ render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
306
+ Y,
303
307
  {
304
308
  size: "small",
305
- options: M || [],
306
- getOptionLabel: (r) => r,
307
- defaultValue: o,
308
- onChange: (r, n) => {
309
- l(n);
309
+ options: J || [],
310
+ getOptionLabel: (o) => o,
311
+ defaultValue: l,
312
+ onChange: (o, r) => {
313
+ a(r);
310
314
  },
311
- renderInput: (r) => {
312
- var n;
315
+ renderInput: (o) => {
316
+ var r;
313
317
  return /* @__PURE__ */ e(
314
- I,
318
+ L,
315
319
  {
316
- ...r,
320
+ ...o,
317
321
  placeholder: "Select type",
318
322
  variant: "outlined",
319
- error: !!((n = s.formState.errors) != null && n.type)
323
+ error: !!((r = i.formState.errors) != null && r.type)
320
324
  }
321
325
  );
322
326
  }
@@ -324,56 +328,56 @@ function ae({
324
328
  )
325
329
  }
326
330
  ),
327
- s.formState.errors.type && /* @__PURE__ */ e(Z, { error: !0, children: (k = s.formState.errors.type) == null ? void 0 : k.message })
331
+ i.formState.errors.type && /* @__PURE__ */ e(ae, { error: !0, children: (E = i.formState.errors.type) == null ? void 0 : E.message })
328
332
  ] }) }),
329
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(m, { label: u("URL"), required: !0, children: /* @__PURE__ */ e(
330
- U,
333
+ /* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("URL"), required: !0, children: /* @__PURE__ */ e(
334
+ Q,
331
335
  {
332
- control: s.control,
336
+ control: i.control,
333
337
  name: "url",
334
338
  id: "url",
335
- errors: s.formState.errors,
339
+ errors: i.formState.errors,
336
340
  placeholder: "https://example.com"
337
341
  }
338
342
  ) }) }),
339
- /* @__PURE__ */ e(f, { size: 12, children: /* @__PURE__ */ e(m, { label: u("Active"), required: !0, children: /* @__PURE__ */ e(
340
- q,
343
+ /* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Active"), required: !0, children: /* @__PURE__ */ e(
344
+ j,
341
345
  {
342
346
  name: "isActive",
343
- control: s.control,
347
+ control: i.control,
344
348
  rules: { required: "This field is required." },
345
349
  render: ({
346
- field: { onChange: l, value: o },
347
- fieldState: { error: r }
350
+ field: { onChange: a, value: l },
351
+ fieldState: { error: o }
348
352
  }) => {
349
- var n;
350
- return /* @__PURE__ */ a(Se, { component: "fieldset", error: !!r, children: [
351
- /* @__PURE__ */ a(xe, { row: !0, value: o, onChange: l, children: [
353
+ var r;
354
+ return /* @__PURE__ */ s(Te, { component: "fieldset", error: !!o, children: [
355
+ /* @__PURE__ */ s(Re, { row: !0, value: l, onChange: a, children: [
352
356
  /* @__PURE__ */ e(
353
- _,
357
+ le,
354
358
  {
355
359
  value: !0,
356
- control: /* @__PURE__ */ e(ee, { size: "small" }),
357
- label: /* @__PURE__ */ e(c, { variant: "body2", children: "Yes" })
360
+ control: /* @__PURE__ */ e(se, { size: "small" }),
361
+ label: /* @__PURE__ */ e(u, { variant: "body2", children: "Yes" })
358
362
  }
359
363
  ),
360
364
  /* @__PURE__ */ e(
361
- _,
365
+ le,
362
366
  {
363
367
  value: !1,
364
- control: /* @__PURE__ */ e(ee, { size: "small" }),
365
- label: /* @__PURE__ */ e(c, { variant: "body2", children: "No" })
368
+ control: /* @__PURE__ */ e(se, { size: "small" }),
369
+ label: /* @__PURE__ */ e(u, { variant: "body2", children: "No" })
366
370
  }
367
371
  )
368
372
  ] }),
369
- r && /* @__PURE__ */ e(Z, { children: (n = s.formState.errors.isActive) == null ? void 0 : n.message })
373
+ o && /* @__PURE__ */ e(ae, { children: (r = i.formState.errors.isActive) == null ? void 0 : r.message })
370
374
  ] });
371
375
  }
372
376
  }
373
377
  ) }) }),
374
- /* @__PURE__ */ a(f, { size: 12, sx: { mt: 0.5 }, children: [
378
+ /* @__PURE__ */ s(g, { size: 12, sx: { mt: 0.5 }, children: [
375
379
  /* @__PURE__ */ e(
376
- c,
380
+ u,
377
381
  {
378
382
  variant: "subtitle2",
379
383
  sx: {
@@ -387,43 +391,43 @@ function ae({
387
391
  children: "Sync Permissions"
388
392
  }
389
393
  ),
390
- /* @__PURE__ */ e(G, {})
394
+ /* @__PURE__ */ e(_, {})
391
395
  ] }),
392
- /* @__PURE__ */ e(f, { size: 12, children: /* @__PURE__ */ e(m, { label: u("Can Pull From"), children: /* @__PURE__ */ e(
393
- q,
396
+ /* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Can Pull From"), children: /* @__PURE__ */ e(
397
+ j,
394
398
  {
395
399
  name: "canPullServer",
396
- control: s.control,
397
- render: ({ field: { onChange: l, value: o } }) => /* @__PURE__ */ e(
398
- B,
400
+ control: i.control,
401
+ render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
402
+ Y,
399
403
  {
400
404
  size: "small",
401
405
  multiple: !0,
402
- options: x || [],
403
- getOptionLabel: (r) => r.name || "",
404
- getOptionKey: (r) => r.code || "",
405
- getOptionDisabled: (r) => r.code === s.getValues("code") || s.getValues("canPullServer").some((n) => n.code === r.code),
406
- value: o,
407
- onChange: (r, n) => {
408
- l(n);
406
+ options: C || [],
407
+ getOptionLabel: (o) => o.name || "",
408
+ getOptionKey: (o) => o.code || "",
409
+ getOptionDisabled: (o) => o.code === i.getValues("code") || i.getValues("canPullServer").some((r) => r.code === o.code),
410
+ value: l,
411
+ onChange: (o, r) => {
412
+ a(r);
409
413
  },
410
- renderTags: (r, n) => r.map((i, t) => /* @__PURE__ */ ne(
411
- b,
414
+ renderTags: (o, r) => o.map((n, t) => /* @__PURE__ */ de(
415
+ x,
412
416
  {
413
- ...n({ index: t }),
414
- key: i.code,
415
- label: i.name,
417
+ ...r({ index: t }),
418
+ key: n.code,
419
+ label: n.name,
416
420
  size: "small",
417
421
  color: "primary",
418
422
  variant: "outlined",
419
423
  sx: { borderRadius: 2, fontWeight: 500 }
420
424
  }
421
425
  )),
422
- renderInput: (r) => /* @__PURE__ */ e(
423
- I,
426
+ renderInput: (o) => /* @__PURE__ */ e(
427
+ L,
424
428
  {
425
- ...r,
426
- placeholder: (o == null ? void 0 : o.length) > 0 ? "" : "Select servers to pull from...",
429
+ ...o,
430
+ placeholder: (l == null ? void 0 : l.length) > 0 ? "" : "Select servers to pull from...",
427
431
  variant: "outlined"
428
432
  }
429
433
  )
@@ -431,41 +435,41 @@ function ae({
431
435
  )
432
436
  }
433
437
  ) }) }),
434
- /* @__PURE__ */ e(f, { size: 12, children: /* @__PURE__ */ e(m, { label: u("Can Push To"), children: /* @__PURE__ */ e(
435
- q,
438
+ /* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Can Push To"), children: /* @__PURE__ */ e(
439
+ j,
436
440
  {
437
441
  name: "canPushServer",
438
- control: s.control,
439
- render: ({ field: { onChange: l, value: o } }) => /* @__PURE__ */ e(
440
- B,
442
+ control: i.control,
443
+ render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
444
+ Y,
441
445
  {
442
446
  size: "small",
443
447
  multiple: !0,
444
- options: x || [],
445
- getOptionLabel: (r) => r.name || "",
446
- getOptionKey: (r) => r.code || "",
447
- getOptionDisabled: (r) => r.code === s.getValues("code") || s.getValues("canPushServer").some((n) => n.code === r.code),
448
- value: o,
449
- onChange: (r, n) => {
450
- l(n);
448
+ options: C || [],
449
+ getOptionLabel: (o) => o.name || "",
450
+ getOptionKey: (o) => o.code || "",
451
+ getOptionDisabled: (o) => o.code === i.getValues("code") || i.getValues("canPushServer").some((r) => r.code === o.code),
452
+ value: l,
453
+ onChange: (o, r) => {
454
+ a(r);
451
455
  },
452
- renderTags: (r, n) => r.map((i, t) => /* @__PURE__ */ ne(
453
- b,
456
+ renderTags: (o, r) => o.map((n, t) => /* @__PURE__ */ de(
457
+ x,
454
458
  {
455
- ...n({ index: t }),
456
- key: i.code,
457
- label: i.name,
459
+ ...r({ index: t }),
460
+ key: n.code,
461
+ label: n.name,
458
462
  size: "small",
459
463
  color: "primary",
460
464
  variant: "outlined",
461
465
  sx: { borderRadius: 2, fontWeight: 500 }
462
466
  }
463
467
  )),
464
- renderInput: (r) => /* @__PURE__ */ e(
465
- I,
468
+ renderInput: (o) => /* @__PURE__ */ e(
469
+ L,
466
470
  {
467
- ...r,
468
- placeholder: (o == null ? void 0 : o.length) > 0 ? "" : "Select servers to push to...",
471
+ ...o,
472
+ placeholder: (l == null ? void 0 : l.length) > 0 ? "" : "Select servers to push to...",
469
473
  variant: "outlined"
470
474
  }
471
475
  )
@@ -476,8 +480,8 @@ function ae({
476
480
  ] })
477
481
  }
478
482
  ),
479
- /* @__PURE__ */ a(
480
- Ce,
483
+ /* @__PURE__ */ s(
484
+ ke,
481
485
  {
482
486
  sx: {
483
487
  px: 3,
@@ -488,9 +492,9 @@ function ae({
488
492
  },
489
493
  children: [
490
494
  /* @__PURE__ */ e(
491
- Y,
495
+ ee,
492
496
  {
493
- onClick: T,
497
+ onClick: N,
494
498
  size: "small",
495
499
  variant: "outlined",
496
500
  sx: {
@@ -505,15 +509,16 @@ function ae({
505
509
  borderColor: "text.disabled"
506
510
  }
507
511
  },
508
- children: u("Cancel")
512
+ children: d("Cancel")
509
513
  }
510
514
  ),
511
515
  /* @__PURE__ */ e(
512
- Y,
516
+ ee,
513
517
  {
514
518
  type: "submit",
515
519
  size: "small",
516
520
  variant: "contained",
521
+ disabled: !I,
517
522
  sx: {
518
523
  borderRadius: 2,
519
524
  textTransform: "none",
@@ -522,13 +527,13 @@ function ae({
522
527
  boxShadow: "none"
523
528
  },
524
529
  startIcon: /* @__PURE__ */ e(
525
- v,
530
+ S,
526
531
  {
527
- icon: g ? V : H,
532
+ icon: f ? X : Z,
528
533
  style: { fontSize: "0.75rem" }
529
534
  }
530
535
  ),
531
- children: g ? "Update Server" : "Add Server"
536
+ children: f ? "Update Server" : "Add Server"
532
537
  }
533
538
  )
534
539
  ]
@@ -539,53 +544,63 @@ function ae({
539
544
  }
540
545
  );
541
546
  }
542
- ae.propTypes = {
543
- openAddServer: y.bool,
544
- openAddServerFunc: y.func,
545
- allServerList: y.array,
546
- reloadPageFunc: y.func,
547
- editServer: y.bool,
548
- editServerFunc: y.func,
549
- serverData: y.object
547
+ pe.propTypes = {
548
+ openAddServer: v.bool,
549
+ openAddServerFunc: v.func,
550
+ allServerList: v.array,
551
+ reloadPageFunc: v.func,
552
+ editServer: v.bool,
553
+ editServerFunc: v.func,
554
+ serverData: v.object,
555
+ rights: v.any
550
556
  };
551
- function Qe() {
552
- const [O, W] = P([]), [x, w] = P(!1), [g, N] = P(!1), [d, u] = P({}), [S, E] = P([]), [M, D] = P(!1), [A, $] = P(""), s = te();
553
- le(() => {
554
- (async () => (await K(), await L()))();
555
- }, [M]);
556
- const T = (o) => s.palette.mode === "light" ? o : `${o}-dark`, K = async () => {
557
+ function sr() {
558
+ const [$, M] = y([]), [C, R] = y(!1), [f, F] = y(!1), [m, P] = y({}), [d, B] = y([]), [U, J] = y(!1), [T, V] = y(""), [p, G] = y(null), [I, q] = y(!0), i = ue(), N = W.hasCheckRights(p == null ? void 0 : p["create.admin.newServerManagement"]), oe = W.hasCheckRights(p == null ? void 0 : p["update.admin.newServerManagement"]);
559
+ re(() => {
560
+ (async () => (q(!0), await H(), await b(), q(!1)))();
561
+ }, [U]), re(() => {
562
+ (async () => {
563
+ try {
564
+ const { data: r } = await Be("techo.admin.newServerManagement");
565
+ G(JSON.parse(r));
566
+ } catch (r) {
567
+ console.error(r);
568
+ }
569
+ })();
570
+ }, []);
571
+ const O = (r) => i.palette.mode === "light" ? r : `${r}-dark`, H = async () => {
557
572
  try {
558
- const o = (await he()).data;
559
- o && W(
560
- o.map((r) => ({ code: r.code, name: r.name }))
573
+ const r = (await Se()).data;
574
+ r && M(
575
+ r.map((n) => ({ code: n.code, name: n.name }))
561
576
  );
562
- } catch (o) {
563
- console.error("Error fetching servers:", o);
577
+ } catch (r) {
578
+ console.error("Error fetching servers:", r);
564
579
  }
565
- }, L = async () => {
580
+ }, b = async () => {
566
581
  try {
567
- const o = (await me()).data;
568
- o && (o.forEach((r) => {
569
- let n = r.canPullServers ? JSON.parse(r.canPullServers) : [], i = r.canPushServers ? JSON.parse(r.canPushServers) : [];
570
- r.canPullServers = JSON.parse(r.canPullServers), r.canPushServers = JSON.parse(r.canPushServers), r.pullServersName = n.length > 0 ? n.map((t) => t.name) : [], r.pushServersName = i.length > 0 ? i.map((t) => t.name) : [];
571
- }), E(o));
572
- } catch (o) {
573
- console.error("Error fetching servers:", o);
582
+ const r = (await xe()).data;
583
+ r && (r.forEach((n) => {
584
+ let t = n.canPullServers ? JSON.parse(n.canPullServers) : [], c = n.canPushServers ? JSON.parse(n.canPushServers) : [];
585
+ n.canPullServers = JSON.parse(n.canPullServers), n.canPushServers = JSON.parse(n.canPushServers), n.pullServersName = t.length > 0 ? t.map((w) => w.name) : [], n.pushServersName = c.length > 0 ? c.map((w) => w.name) : [];
586
+ }), B(r));
587
+ } catch (r) {
588
+ console.error("Error fetching servers:", r);
574
589
  }
575
- }, j = (o) => {
576
- N(!0), u(o), w(!0);
577
- }, m = Re(() => {
578
- if (!A.trim()) return S;
579
- const o = A.toLowerCase();
580
- return S.filter(
581
- (r) => {
582
- var n, i, t;
583
- return ((n = r.name) == null ? void 0 : n.toLowerCase().includes(o)) || ((i = r.code) == null ? void 0 : i.toLowerCase().includes(o)) || ((t = r.url) == null ? void 0 : t.toLowerCase().includes(o));
590
+ }, E = (r) => {
591
+ F(!0), P(r), R(!0);
592
+ }, a = Ee(() => {
593
+ if (!T.trim()) return d;
594
+ const r = T.toLowerCase();
595
+ return d.filter(
596
+ (n) => {
597
+ var t, c, w;
598
+ return ((t = n.name) == null ? void 0 : t.toLowerCase().includes(r)) || ((c = n.code) == null ? void 0 : c.toLowerCase().includes(r)) || ((w = n.url) == null ? void 0 : w.toLowerCase().includes(r));
584
599
  }
585
600
  );
586
- }, [S, A]), k = S.filter((o) => o.isActive).length, l = (o) => {
587
- if (!o) return "-";
588
- const r = new Date(o), n = String(r.getDate()).padStart(2, "0"), t = [
601
+ }, [d, T]), l = d.filter((r) => r.isActive).length, o = (r) => {
602
+ if (!r) return "-";
603
+ const n = new Date(r), t = String(n.getDate()).padStart(2, "0"), w = [
589
604
  "Jan",
590
605
  "Feb",
591
606
  "Mar",
@@ -598,12 +613,12 @@ function Qe() {
598
613
  "Oct",
599
614
  "Nov",
600
615
  "Dec"
601
- ][r.getMonth()], p = r.getFullYear(), se = String(r.getHours()).padStart(2, "0"), ie = String(r.getMinutes()).padStart(2, "0");
602
- return `${n} ${t} ${p}, ${se}:${ie}`;
616
+ ][n.getMonth()], me = n.getFullYear(), he = String(n.getHours()).padStart(2, "0"), fe = String(n.getMinutes()).padStart(2, "0");
617
+ return `${t} ${w} ${me}, ${he}:${fe}`;
603
618
  };
604
- return /* @__PURE__ */ a(f, { pt: 2, sx: { height: "calc(100vh)", zoom: "0.9" }, children: [
605
- /* @__PURE__ */ e(z, { sx: { p: 3 }, className: T("server-management-wrapper"), children: /* @__PURE__ */ a(
606
- re,
619
+ return !I && p !== null && !W.hasCheckRights(p == null ? void 0 : p["view.admin.newServerManagement"]) ? /* @__PURE__ */ e(A, { sx: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "80vh" }, children: /* @__PURE__ */ e(Ne, { sx: { height: 320, width: 600, display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(u, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Server Management" }) }) }) : /* @__PURE__ */ s(g, { pt: 2, sx: { height: "calc(100vh)", zoom: "0.9" }, children: [
620
+ /* @__PURE__ */ e(A, { sx: { p: 3 }, className: O("server-management-wrapper"), children: /* @__PURE__ */ s(
621
+ ie,
607
622
  {
608
623
  elevation: 0,
609
624
  sx: {
@@ -614,9 +629,9 @@ function Qe() {
614
629
  backgroundColor: "background.paper"
615
630
  },
616
631
  children: [
617
- /* @__PURE__ */ a(z, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
618
- /* @__PURE__ */ a(
619
- z,
632
+ /* @__PURE__ */ s(A, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
633
+ /* @__PURE__ */ s(
634
+ A,
620
635
  {
621
636
  sx: {
622
637
  display: "flex",
@@ -626,19 +641,19 @@ function Qe() {
626
641
  gap: 2
627
642
  },
628
643
  children: [
629
- /* @__PURE__ */ a(z, { sx: { minWidth: { xs: "100%", lg: "40%" } }, children: [
644
+ /* @__PURE__ */ s(A, { sx: { minWidth: { xs: "100%", lg: "40%" } }, children: [
630
645
  /* @__PURE__ */ e(
631
- c,
646
+ u,
632
647
  {
633
648
  variant: "h5",
634
649
  sx: { fontWeight: 800, color: "text.primary", mb: 0.5 },
635
650
  children: "Server Management"
636
651
  }
637
652
  ),
638
- /* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", children: "Configure and manage server connections, sync permissions, and server details." })
653
+ /* @__PURE__ */ e(u, { variant: "body2", color: "text.secondary", children: "Configure and manage server connections, sync permissions, and server details." })
639
654
  ] }),
640
655
  /* @__PURE__ */ e(
641
- z,
656
+ A,
642
657
  {
643
658
  sx: {
644
659
  display: "flex",
@@ -646,8 +661,8 @@ function Qe() {
646
661
  gap: 1.5,
647
662
  flexWrap: "wrap"
648
663
  },
649
- children: /* @__PURE__ */ e(
650
- Y,
664
+ children: N && /* @__PURE__ */ e(
665
+ ee,
651
666
  {
652
667
  size: "small",
653
668
  variant: "contained",
@@ -658,9 +673,9 @@ function Qe() {
658
673
  boxShadow: "none",
659
674
  textTransform: "none"
660
675
  },
661
- startIcon: /* @__PURE__ */ e(v, { icon: H }),
676
+ startIcon: /* @__PURE__ */ e(S, { icon: Z }),
662
677
  onClick: () => {
663
- w(!0);
678
+ R(!0);
664
679
  },
665
680
  children: "Add Server"
666
681
  }
@@ -670,8 +685,8 @@ function Qe() {
670
685
  ]
671
686
  }
672
687
  ),
673
- /* @__PURE__ */ a(
674
- z,
688
+ /* @__PURE__ */ s(
689
+ A,
675
690
  {
676
691
  sx: {
677
692
  display: "flex",
@@ -686,18 +701,18 @@ function Qe() {
686
701
  borderColor: "divider"
687
702
  },
688
703
  children: [
689
- /* @__PURE__ */ a(z, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
704
+ /* @__PURE__ */ s(A, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
690
705
  /* @__PURE__ */ e(
691
- b,
706
+ x,
692
707
  {
693
708
  icon: /* @__PURE__ */ e(
694
- v,
709
+ S,
695
710
  {
696
- icon: Q,
711
+ icon: ne,
697
712
  style: { fontSize: "0.7rem" }
698
713
  }
699
714
  ),
700
- label: `${S.length} Total`,
715
+ label: `${d.length} Total`,
701
716
  size: "small",
702
717
  variant: "outlined",
703
718
  sx: {
@@ -709,26 +724,26 @@ function Qe() {
709
724
  }
710
725
  ),
711
726
  /* @__PURE__ */ e(
712
- b,
727
+ x,
713
728
  {
714
729
  icon: /* @__PURE__ */ e(
715
- v,
730
+ S,
716
731
  {
717
- icon: X,
732
+ icon: te,
718
733
  style: { fontSize: "0.7rem" }
719
734
  }
720
735
  ),
721
- label: `${k} Active`,
736
+ label: `${l} Active`,
722
737
  size: "small",
723
738
  color: "success",
724
739
  variant: "filled",
725
740
  sx: { fontWeight: 700, borderRadius: 2, px: 0.5 }
726
741
  }
727
742
  ),
728
- S.length - k > 0 && /* @__PURE__ */ e(
729
- b,
743
+ d.length - l > 0 && /* @__PURE__ */ e(
744
+ x,
730
745
  {
731
- label: `${S.length - k} Inactive`,
746
+ label: `${d.length - l} Inactive`,
732
747
  size: "small",
733
748
  color: "default",
734
749
  variant: "outlined",
@@ -742,17 +757,17 @@ function Qe() {
742
757
  )
743
758
  ] }),
744
759
  /* @__PURE__ */ e(
745
- I,
760
+ L,
746
761
  {
747
- value: A,
762
+ value: T,
748
763
  size: "small",
749
764
  placeholder: "Search servers...",
750
- onChange: (o) => $(o.target.value),
765
+ onChange: (r) => V(r.target.value),
751
766
  InputProps: {
752
- startAdornment: /* @__PURE__ */ e(Pe, { position: "start", children: /* @__PURE__ */ e(
753
- v,
767
+ startAdornment: /* @__PURE__ */ e(We, { position: "start", children: /* @__PURE__ */ e(
768
+ S,
754
769
  {
755
- icon: fe,
770
+ icon: Ce,
756
771
  style: { fontSize: "0.85rem", color: "#999" }
757
772
  }
758
773
  ) }),
@@ -768,12 +783,12 @@ function Qe() {
768
783
  }
769
784
  )
770
785
  ] }),
771
- /* @__PURE__ */ e(G, { sx: { my: 3 } }),
786
+ /* @__PURE__ */ e(_, { sx: { my: 3 } }),
772
787
  /* @__PURE__ */ e(
773
- Ae,
788
+ Me,
774
789
  {
775
- className: T("server-table"),
776
- component: re,
790
+ className: O("server-table"),
791
+ component: ie,
777
792
  elevation: 0,
778
793
  sx: {
779
794
  borderRadius: 1.5,
@@ -782,8 +797,8 @@ function Qe() {
782
797
  overflowY: "auto",
783
798
  maxHeight: "calc(100vh - 340px)"
784
799
  },
785
- children: /* @__PURE__ */ a(ze, { stickyHeader: !0, children: [
786
- /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(J, { children: [
800
+ children: /* @__PURE__ */ s(Fe, { stickyHeader: !0, children: [
801
+ /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(K, { children: [
787
802
  "Sr. No.",
788
803
  "Name",
789
804
  "Code",
@@ -794,10 +809,10 @@ function Qe() {
794
809
  "Can Push To",
795
810
  "Modified On",
796
811
  "Actions"
797
- ].map((o, r) => /* @__PURE__ */ e(
812
+ ].map((r, n) => /* @__PURE__ */ e(
798
813
  h,
799
814
  {
800
- align: o === "Actions" ? "center" : "left",
815
+ align: r === "Actions" ? "center" : "left",
801
816
  sx: {
802
817
  fontWeight: 700,
803
818
  fontSize: "0.78rem",
@@ -809,13 +824,13 @@ function Qe() {
809
824
  borderColor: "divider",
810
825
  py: 1.5
811
826
  },
812
- children: o
827
+ children: r
813
828
  },
814
- r
829
+ n
815
830
  )) }) }),
816
- /* @__PURE__ */ a(Te, { children: [
817
- m.map((o, r) => /* @__PURE__ */ a(
818
- J,
831
+ /* @__PURE__ */ s(qe, { children: [
832
+ a.map((r, n) => /* @__PURE__ */ s(
833
+ K,
819
834
  {
820
835
  sx: {
821
836
  transition: "background-color 0.15s ease",
@@ -827,14 +842,14 @@ function Qe() {
827
842
  h,
828
843
  {
829
844
  sx: { color: "text.secondary", fontWeight: 500 },
830
- children: r + 1
845
+ children: n + 1
831
846
  }
832
847
  ),
833
- /* @__PURE__ */ e(h, { sx: { fontWeight: 600 }, children: o.name }),
848
+ /* @__PURE__ */ e(h, { sx: { fontWeight: 600 }, children: r.name }),
834
849
  /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
835
- b,
850
+ x,
836
851
  {
837
- label: o.code,
852
+ label: r.code,
838
853
  size: "small",
839
854
  variant: "outlined",
840
855
  sx: {
@@ -845,7 +860,7 @@ function Qe() {
845
860
  }
846
861
  }
847
862
  ) }),
848
- /* @__PURE__ */ e(h, { children: o.type }),
863
+ /* @__PURE__ */ e(h, { children: r.type }),
849
864
  /* @__PURE__ */ e(
850
865
  h,
851
866
  {
@@ -855,16 +870,16 @@ function Qe() {
855
870
  textOverflow: "ellipsis",
856
871
  whiteSpace: "nowrap"
857
872
  },
858
- children: /* @__PURE__ */ e(oe, { title: o.url || "", arrow: !0, placement: "top", children: /* @__PURE__ */ e("span", { children: o.url }) })
873
+ children: /* @__PURE__ */ e(ce, { title: r.url || "", arrow: !0, placement: "top", children: /* @__PURE__ */ e("span", { children: r.url }) })
859
874
  }
860
875
  ),
861
- /* @__PURE__ */ e(h, { children: o.isActive ? /* @__PURE__ */ e(
862
- b,
876
+ /* @__PURE__ */ e(h, { children: r.isActive ? /* @__PURE__ */ e(
877
+ x,
863
878
  {
864
879
  icon: /* @__PURE__ */ e(
865
- v,
880
+ S,
866
881
  {
867
- icon: X,
882
+ icon: te,
868
883
  style: { fontSize: "0.7rem" }
869
884
  }
870
885
  ),
@@ -875,12 +890,12 @@ function Qe() {
875
890
  sx: { fontWeight: 600, borderRadius: 2 }
876
891
  }
877
892
  ) : /* @__PURE__ */ e(
878
- b,
893
+ x,
879
894
  {
880
895
  icon: /* @__PURE__ */ e(
881
- v,
896
+ S,
882
897
  {
883
- icon: ge,
898
+ icon: Pe,
884
899
  style: { fontSize: "0.7rem" }
885
900
  }
886
901
  ),
@@ -895,10 +910,10 @@ function Qe() {
895
910
  }
896
911
  }
897
912
  ) }),
898
- /* @__PURE__ */ e(h, { children: Array.isArray(o.pullServersName) && o.pullServersName.length > 0 ? o.pullServersName.map((n, i) => /* @__PURE__ */ e(
899
- b,
913
+ /* @__PURE__ */ e(h, { children: Array.isArray(r.pullServersName) && r.pullServersName.length > 0 ? r.pullServersName.map((t, c) => /* @__PURE__ */ e(
914
+ x,
900
915
  {
901
- label: n || "-",
916
+ label: t || "-",
902
917
  color: "primary",
903
918
  size: "small",
904
919
  variant: "outlined",
@@ -909,12 +924,12 @@ function Qe() {
909
924
  fontWeight: 500
910
925
  }
911
926
  },
912
- i
913
- )) : /* @__PURE__ */ e(c, { variant: "caption", color: "text.disabled", children: "—" }) }),
914
- /* @__PURE__ */ e(h, { children: Array.isArray(o.pushServersName) && o.pushServersName.length > 0 ? o.pushServersName.map((n, i) => /* @__PURE__ */ e(
915
- b,
927
+ c
928
+ )) : /* @__PURE__ */ e(u, { variant: "caption", color: "text.disabled", children: "—" }) }),
929
+ /* @__PURE__ */ e(h, { children: Array.isArray(r.pushServersName) && r.pushServersName.length > 0 ? r.pushServersName.map((t, c) => /* @__PURE__ */ e(
930
+ x,
916
931
  {
917
- label: n || "-",
932
+ label: t || "-",
918
933
  color: "primary",
919
934
  size: "small",
920
935
  variant: "outlined",
@@ -925,31 +940,31 @@ function Qe() {
925
940
  fontWeight: 500
926
941
  }
927
942
  },
928
- i
929
- )) : /* @__PURE__ */ e(c, { variant: "caption", color: "text.disabled", children: "—" }) }),
943
+ c
944
+ )) : /* @__PURE__ */ e(u, { variant: "caption", color: "text.disabled", children: "—" }) }),
930
945
  /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
931
- c,
946
+ u,
932
947
  {
933
948
  variant: "caption",
934
949
  sx: { color: "text.secondary" },
935
- children: l(o.modifiedOn)
950
+ children: o(r.modifiedOn)
936
951
  }
937
952
  ) }),
938
- /* @__PURE__ */ e(h, { align: "center", children: /* @__PURE__ */ e(oe, { title: "Edit server", arrow: !0, placement: "top", children: /* @__PURE__ */ e(
939
- ke,
953
+ /* @__PURE__ */ e(h, { align: "center", children: oe && /* @__PURE__ */ e(ce, { title: "Edit server", arrow: !0, placement: "top", children: /* @__PURE__ */ e(
954
+ Oe,
940
955
  {
941
956
  size: "small",
942
957
  onClick: () => {
943
- j(o);
958
+ E(r);
944
959
  },
945
960
  sx: {
946
961
  color: "primary.main",
947
962
  "&:hover": { backgroundColor: "primary.50" }
948
963
  },
949
964
  children: /* @__PURE__ */ e(
950
- v,
965
+ S,
951
966
  {
952
- icon: V,
967
+ icon: X,
953
968
  style: { fontSize: "0.8rem" }
954
969
  }
955
970
  )
@@ -957,13 +972,13 @@ function Qe() {
957
972
  ) }) })
958
973
  ]
959
974
  },
960
- r
975
+ n
961
976
  )),
962
- m.length === 0 && /* @__PURE__ */ e(J, { children: /* @__PURE__ */ a(h, { colSpan: 10, align: "center", sx: { py: 6 }, children: [
977
+ a.length === 0 && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(h, { colSpan: 10, align: "center", sx: { py: 6 }, children: [
963
978
  /* @__PURE__ */ e(
964
- v,
979
+ S,
965
980
  {
966
- icon: Q,
981
+ icon: ne,
967
982
  style: {
968
983
  fontSize: "2rem",
969
984
  color: "#ccc",
@@ -973,7 +988,7 @@ function Qe() {
973
988
  }
974
989
  }
975
990
  ),
976
- /* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", children: A ? "No servers match your search." : 'No servers found. Click "Add Server" to get started.' })
991
+ /* @__PURE__ */ e(u, { variant: "body2", color: "text.secondary", children: T ? "No servers match your search." : 'No servers found. Click "Add Server" to get started.' })
977
992
  ] }) })
978
993
  ] })
979
994
  ] })
@@ -982,21 +997,22 @@ function Qe() {
982
997
  ]
983
998
  }
984
999
  ) }),
985
- x && /* @__PURE__ */ e(
986
- ae,
1000
+ C && /* @__PURE__ */ e(
1001
+ pe,
987
1002
  {
988
- openAddServer: x,
989
- openAddServerFunc: w,
990
- allServerList: O,
991
- reloadPageFunc: D,
992
- editServer: g,
993
- editServerFunc: N,
994
- serverData: d
1003
+ openAddServer: C,
1004
+ openAddServerFunc: R,
1005
+ allServerList: $,
1006
+ reloadPageFunc: J,
1007
+ editServer: f,
1008
+ editServerFunc: F,
1009
+ serverData: m,
1010
+ rights: p
995
1011
  }
996
1012
  )
997
1013
  ] });
998
1014
  }
999
1015
  export {
1000
- Qe as default
1016
+ sr as default
1001
1017
  };
1002
- //# sourceMappingURL=NewServerManagement-Cxe0dV0O.js.map
1018
+ //# sourceMappingURL=NewServerManagement-BdayO78D.js.map