@argusoft/medplat-core 1.0.31 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/AccessRights-BC43Jhml.js +1093 -0
  2. package/dist/AccessRights-BC43Jhml.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-CYT80CMH.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-CYT80CMH.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-BRAukJB1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-BRAukJB1.js.map} +1 -1
  12. package/dist/ChangePasswordModalCore-rypTxA2O.js +238 -0
  13. package/dist/ChangePasswordModalCore-rypTxA2O.js.map +1 -0
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-DX-TzGOH.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-DX-TzGOH.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js.map +1 -0
  28. package/dist/FaqList-CeDEuhU_.js +237 -0
  29. package/dist/FaqList-CeDEuhU_.js.map +1 -0
  30. package/dist/FaqSkeletons-hLCEcRr-.js +19 -0
  31. package/dist/FaqSkeletons-hLCEcRr-.js.map +1 -0
  32. package/dist/FaqView-sDzBVyXV.js +617 -0
  33. package/dist/FaqView-sDzBVyXV.js.map +1 -0
  34. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-CaI-ZhSZ.js} +2 -2
  35. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-CaI-ZhSZ.js.map} +1 -1
  36. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  37. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  38. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  39. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  40. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  41. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  42. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-Clkk0-n6.js} +2638 -2577
  43. package/dist/ImmunizationConfigurationBase-Clkk0-n6.js.map +1 -0
  44. package/dist/InventoryPage-JadYMCzU-CWcCauMI.js +1017 -0
  45. package/dist/InventoryPage-JadYMCzU-CWcCauMI.js.map +1 -0
  46. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  47. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  48. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  49. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  50. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  51. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  52. package/dist/ManageFaq-4cT6bntx.js +1583 -0
  53. package/dist/ManageFaq-4cT6bntx.js.map +1 -0
  54. package/dist/ManageFaq.css +1 -0
  55. package/dist/ManageRole-CyfpySt9.js +981 -0
  56. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  57. package/dist/{ManageUser-DZltBina.js → ManageUser-DchUMAyC.js} +172 -172
  58. package/dist/{ManageUser-DZltBina.js.map → ManageUser-DchUMAyC.js.map} +1 -1
  59. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-CQi_zu6x.js} +37 -37
  60. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-CQi_zu6x.js.map} +1 -1
  61. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  62. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  63. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  64. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  65. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  66. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  67. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  68. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  69. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  70. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  71. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-_98S21Sa.js} +56 -56
  72. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-_98S21Sa.js.map} +1 -1
  73. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-ChCXEyck.js} +38 -38
  74. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-ChCXEyck.js.map} +1 -1
  75. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  76. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  77. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js} +2 -2
  78. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js.map} +1 -1
  79. package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js +801 -0
  80. package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js.map +1 -0
  81. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-KehDMebm.js} +122 -122
  82. package/dist/PickupsPage-BWblMlic-KehDMebm.js.map +1 -0
  83. package/dist/PmGuard-BvUUbU80-DJipZoSg.js +641 -0
  84. package/dist/PmGuard-BvUUbU80-DJipZoSg.js.map +1 -0
  85. package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js +1523 -0
  86. package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js.map +1 -0
  87. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-D3GnWz34.js} +29 -29
  88. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-D3GnWz34.js.map} +1 -1
  89. package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js +724 -0
  90. package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js.map +1 -0
  91. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js} +446 -436
  92. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js.map +1 -0
  93. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js} +55 -55
  94. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js.map} +1 -1
  95. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DxBRFRDy.js} +61 -61
  96. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DxBRFRDy.js.map} +1 -1
  97. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  98. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  99. package/dist/Roles-BoNGJhtR.js +19 -0
  100. package/dist/Roles-BoNGJhtR.js.map +1 -0
  101. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-aEGmvJQq.js} +33 -33
  102. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-aEGmvJQq.js.map} +1 -1
  103. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-CvOr82vo.js} +34 -34
  104. package/dist/SalesPage-eF9Yr42z-CvOr82vo.js.map +1 -0
  105. package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js +741 -0
  106. package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js.map +1 -0
  107. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-C7zkwKMz.js} +213 -190
  108. package/dist/StorageUnitsPage-CTEVuemZ-C7zkwKMz.js.map +1 -0
  109. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-DZIhur09.js} +2 -2
  110. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-DZIhur09.js.map} +1 -1
  111. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  112. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  113. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  114. package/dist/TableList-B5tX4wII.js.map +1 -0
  115. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-BDmUK7s1.js} +185 -170
  116. package/dist/TransactionsPage-Zuu7sjID-BDmUK7s1.js.map +1 -0
  117. package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js +635 -0
  118. package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js.map +1 -0
  119. package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js +600 -0
  120. package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js.map +1 -0
  121. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  122. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  123. package/dist/UserList-Cf5B-o_1.js +1904 -0
  124. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  125. package/dist/Users-MC7txo1V.js +43 -0
  126. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  127. package/dist/VaccineEducation-DWkNNasF.js +231 -0
  128. package/dist/VaccineEducation-DWkNNasF.js.map +1 -0
  129. package/dist/VaccineEducation.css +1 -0
  130. package/dist/VaccineEducationConfigurator-BFCvu5Mw.js +1450 -0
  131. package/dist/VaccineEducationConfigurator-BFCvu5Mw.js.map +1 -0
  132. package/dist/VaccineEducationConfigurator.css +1 -0
  133. package/dist/VaccineEducationList-BxZHahCh.js +334 -0
  134. package/dist/VaccineEducationList-BxZHahCh.js.map +1 -0
  135. package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js +457 -0
  136. package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js.map +1 -0
  137. package/dist/ckeditor5-_x14lrzc.js +49590 -0
  138. package/dist/ckeditor5-_x14lrzc.js.map +1 -0
  139. package/dist/ckeditor5.css +4 -0
  140. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  141. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  142. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  143. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  144. package/dist/faqMedia-FDpje7v0.js +234 -0
  145. package/dist/faqMedia-FDpje7v0.js.map +1 -0
  146. package/dist/index-mfoqII2U.js +524 -0
  147. package/dist/index-mfoqII2U.js.map +1 -0
  148. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  149. package/dist/index-o8Pyt1Bt.js.map +1 -0
  150. package/dist/index.css +1 -1
  151. package/dist/index.js +1 -1
  152. package/dist/{index.lib-ETRQOzvE.js → index.lib-QDEODnRT.js} +409 -327
  153. package/dist/index.lib-QDEODnRT.js.map +1 -0
  154. package/dist/listValueStore-5d4vNGQM-DB08drLf.js +43 -0
  155. package/dist/listValueStore-5d4vNGQM-DB08drLf.js.map +1 -0
  156. package/dist/proxy-C4gcRXzG.js +5265 -0
  157. package/dist/proxy-C4gcRXzG.js.map +1 -0
  158. package/package.json +7 -2
  159. package/dist/AccessRights-DUgY6ewy.js +0 -1031
  160. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  161. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  162. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  163. package/dist/ChangePasswordModalCore-lQ9GamH1.js +0 -5494
  164. package/dist/ChangePasswordModalCore-lQ9GamH1.js.map +0 -1
  165. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  166. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  167. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  168. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  169. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  170. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  171. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  172. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  173. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  174. package/dist/ManageRole-CNZBRKGU.js +0 -776
  175. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  176. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  177. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  178. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  179. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  180. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  181. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  182. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  183. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  184. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  185. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  186. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  187. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  188. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  189. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  190. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  191. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  192. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  193. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  194. package/dist/Roles-BIyiic67.js +0 -14
  195. package/dist/Roles-BIyiic67.js.map +0 -1
  196. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  197. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  198. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  199. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  200. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  201. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  202. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  203. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  204. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  205. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  206. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  207. package/dist/UserList-L41Xw0Q6.js +0 -1129
  208. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  209. package/dist/Users-CsJ08Kjm.js +0 -40
  210. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  211. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  212. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  213. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  214. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  215. package/dist/index-D9YNFPn9.js.map +0 -1
  216. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  217. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  218. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -1,45 +1,47 @@
1
- import { jsxs as i, jsx as r, Fragment as Q } from "react/jsx-runtime";
2
- import { execute as H } from "@/common/services/QueryBuilder";
1
+ import { jsxs as i, jsx as r, Fragment as H } from "react/jsx-runtime";
2
+ import { execute as G } from "@/common/services/QueryBuilder";
3
3
  import { showToast as K } from "@/common/toaster/toaster";
4
- import { useDebounceFn as yr } from "@/hooks/useDebounceFn";
5
- import gr from "@/views/custom-components/CustomConfirmationModal";
6
- import fr from "@/views/custom-components/CustomTextField";
4
+ import { useDebounceFn as vr } from "@/hooks/useDebounceFn";
5
+ import Cr from "@/views/custom-components/CustomConfirmationModal";
6
+ import br from "@/views/custom-components/CustomTextField";
7
7
  import v from "@/common/fontAwesomeIcons/FontAwesomeIcons";
8
- import he from "@monaco-editor/react";
9
- import { Paper as ee, Typography as m, Tooltip as z, Button as T, FormControl as re, RadioGroup as Ce, FormControlLabel as _, Radio as G, Autocomplete as pe, TextField as q, IconButton as W, InputAdornment as we, Popover as xr, Checkbox as vr, TableContainer as Cr, Table as wr, TableHead as br, TableRow as ae, TableCell as te, TableBody as Xe, Modal as Nr, Switch as Sr } from "@mui/material";
8
+ import Me from "@/common/services/util/GeneralUtil";
9
+ import pe from "@monaco-editor/react";
10
+ import { Paper as re, Typography as m, Tooltip as z, Button as R, FormControl as ae, RadioGroup as be, FormControlLabel as _, Radio as I, Autocomplete as ye, TextField as q, IconButton as W, InputAdornment as we, Popover as wr, Checkbox as Nr, TableContainer as Sr, Table as Pr, TableHead as kr, TableRow as te, TableCell as ne, TableBody as er, Modal as Vr, Switch as Dr } from "@mui/material";
10
11
  import f from "@mui/material/Grid2";
11
12
  import { Box as g } from "@mui/system";
12
- import P from "prop-types";
13
- import { useState as b, useEffect as be } from "react";
14
- import { useForm as Pr, useWatch as kr, Controller as D } from "react-hook-form";
15
- import { useSelector as Vr } from "react-redux";
16
- function Dr({
13
+ import S from "prop-types";
14
+ import { useState as w, useEffect as Ne } from "react";
15
+ import { useForm as Ar, useWatch as Kr, Controller as D } from "react-hook-form";
16
+ import { useSelector as zr } from "react-redux";
17
+ function Rr({
17
18
  tableInfo: s,
18
- table: w,
19
+ table: b,
19
20
  isEditMode: h,
20
- updateEditMode: Ne,
21
+ updateEditMode: Se,
21
22
  tableCompleteInfo: A,
22
- reloadComponents: Ze,
23
+ reloadComponents: rr,
23
24
  isCreateTableMode: d,
24
- isSyncTableMode: I,
25
- updateCreateTableMode: Se,
26
- openDeleteModal: Me,
27
- setOpenDeleteModal: Pe,
28
- generateRebuildScript: er
25
+ isSyncTableMode: Y,
26
+ updateCreateTableMode: Pe,
27
+ openDeleteModal: ar,
28
+ setOpenDeleteModal: ke,
29
+ generateRebuildScript: tr,
30
+ rights: F
29
31
  }) {
30
- var Ue, $e, _e, Fe, je, Qe, He, Ge, Ie;
31
- const ke = [
32
+ var _e, Fe, je, Qe, He, Ge, Ie, Ye, Je;
33
+ const Ve = Me.hasCheckRights(F == null ? void 0 : F["update.admin.mobileEntityManagement"]), nr = Me.hasCheckRights(F == null ? void 0 : F["delete.admin.mobileEntityManagement"]), De = [
32
34
  "Document Master",
33
35
  "Form Configurator",
34
36
  "Form Media Record",
35
37
  "LMS"
36
- ], Ve = (e) => (e == null ? void 0 : e.toUpperCase().replace(/ /g, "_")) || "", De = (e) => ke.find((a) => Ve(a) === e) || "", rr = (e) => {
38
+ ], Ae = (e) => (e == null ? void 0 : e.toUpperCase().replace(/ /g, "_")) || "", Ke = (e) => De.find((a) => Ae(a) === e) || "", lr = (e) => {
37
39
  var a;
38
- return e != null && e.downloadType ? De(e.downloadType) || e.downloadType : (a = e == null ? void 0 : e.data) != null && a.downloadType ? De(e.data.downloadType) || e.data.downloadType : "";
39
- }, ar = (e) => {
40
+ return e != null && e.downloadType ? Ke(e.downloadType) || e.downloadType : (a = e == null ? void 0 : e.data) != null && a.downloadType ? Ke(e.data.downloadType) || e.data.downloadType : "";
41
+ }, or = (e) => {
40
42
  var a;
41
43
  return Array.isArray((e == null ? void 0 : e.downloadUrl) ?? ((a = e == null ? void 0 : e.data) == null ? void 0 : a.downloadUrl));
42
- }, ne = (e) => {
44
+ }, le = (e) => {
43
45
  var o;
44
46
  const a = (e == null ? void 0 : e.downloadUrl) ?? ((o = e == null ? void 0 : e.data) == null ? void 0 : o.downloadUrl);
45
47
  return Array.isArray(a) ? a : typeof a == "object" && a !== null ? [
@@ -48,31 +50,31 @@ function Dr({
48
50
  requestParameters: a.requestParameters || []
49
51
  }
50
52
  ] : [];
51
- }, [Ae, ye] = b([]), [Ke, le] = b(!1), [F, oe] = b(""), [tr, nr] = b({}), [ie, Y] = b(""), [N, L] = b([]), [J, U] = b([]), [x, se] = b(0), [X, ge] = b(0), [ze, de] = b(null), [Z, ce] = b(null), [j, lr] = b({}), [k, V] = b(
52
- d ? [] : ne(s == null ? void 0 : s.mediaConfiguration)
53
- ), [or, ue] = b(!1), S = !d && !or && !!(s != null && s.mediaConfiguration) && !!(s != null && s.hasMedia) && !ar(s.mediaConfiguration), Te = !!ze, ir = Te ? "simple-popover" : void 0, Re = ["TEXT", "INTEGER"], me = Vr((e) => e.Authenticate.user.id), E = {
53
+ }, [ze, ge] = w([]), [Re, oe] = w(!1), [j, ie] = w(""), [ir, sr] = w({}), [se, J] = w(""), [N, L] = w([]), [X, U] = w([]), [x, de] = w(0), [Z, fe] = w(0), [Te, ce] = w(null), [M, ue] = w(null), [Q, dr] = w({}), [k, V] = w(
54
+ d ? [] : le(s == null ? void 0 : s.mediaConfiguration)
55
+ ), [cr, me] = w(!1), P = !d && !cr && !!(s != null && s.mediaConfiguration) && !!(s != null && s.hasMedia) && !or(s.mediaConfiguration), Oe = !!Te, ur = Oe ? "simple-popover" : void 0, qe = ["TEXT", "INTEGER"], he = zr((e) => e.Authenticate.user.id), E = {
54
56
  selectedColumns: d ? [] : [...s.columnInfo],
55
57
  modifiedOnQuery: d ? "" : s.modifiedOnQuery,
56
58
  dataFetchQuery: d ? "" : s.selectQuery,
57
59
  tableName: "",
58
60
  createTableQuery: "",
59
- syncByDefault: d ? null : (Ue = s == null ? void 0 : s.syncByDefault) == null ? void 0 : Ue.toString(),
61
+ syncByDefault: d ? null : (_e = s == null ? void 0 : s.syncByDefault) == null ? void 0 : _e.toString(),
60
62
  primaryKey: d ? null : s.primaryKey ? s.primaryKey : null,
61
- userData: d ? null : (($e = s == null ? void 0 : s.userData) == null ? void 0 : $e.toString()) || null,
62
- hasMedia: d ? null : ((_e = s == null ? void 0 : s.hasMedia) == null ? void 0 : _e.toString()) || null,
63
- downloadType: d ? "" : rr(s.mediaConfiguration),
64
- downloadUrlEntries: d ? [] : ne(s.mediaConfiguration),
65
- directoryPath: d ? "" : ((je = (Fe = s.mediaConfiguration) == null ? void 0 : Fe.directoryPath) == null ? void 0 : je.split("/")[1]) || ((Ge = (He = (Qe = s.mediaConfiguration) == null ? void 0 : Qe.data) == null ? void 0 : He.directoryPath) == null ? void 0 : Ge.split("/")[1]) || ""
66
- }, n = Pr({
63
+ userData: d ? null : ((Fe = s == null ? void 0 : s.userData) == null ? void 0 : Fe.toString()) || null,
64
+ hasMedia: d ? null : ((je = s == null ? void 0 : s.hasMedia) == null ? void 0 : je.toString()) || null,
65
+ downloadType: d ? "" : lr(s.mediaConfiguration),
66
+ downloadUrlEntries: d ? [] : le(s.mediaConfiguration),
67
+ directoryPath: d ? "" : ((He = (Qe = s.mediaConfiguration) == null ? void 0 : Qe.directoryPath) == null ? void 0 : He.split("/")[1]) || ((Ye = (Ie = (Ge = s.mediaConfiguration) == null ? void 0 : Ge.data) == null ? void 0 : Ie.directoryPath) == null ? void 0 : Ye.split("/")[1]) || ""
68
+ }, n = Ar({
67
69
  defaultValues: {
68
70
  ...E
69
71
  },
70
72
  mode: "onChange"
71
- }), sr = !n.formState.isValid, M = n.watch("hasMedia"), Oe = n.watch("newColumnName"), qe = n.watch("newColumnType");
73
+ }), mr = !n.formState.isValid, ee = n.watch("hasMedia"), Le = n.watch("newColumnName"), Ee = n.watch("newColumnType");
72
74
  n.register("downloadUrlEntries", {
73
75
  validate: (e) => {
74
76
  var a;
75
- if (M !== "true") return !0;
77
+ if (ee !== "true") return !0;
76
78
  if (!e || e.length === 0)
77
79
  return "At least one API configuration is required.";
78
80
  for (let o = 0; o < e.length; o++) {
@@ -92,20 +94,21 @@ function Dr({
92
94
  return !0;
93
95
  }
94
96
  });
95
- const dr = async (e) => {
97
+ const hr = async (e) => {
96
98
  var o;
97
- const a = d ? n.getValues("createTableQuery") : await Ee(
99
+ if (!Ve) return;
100
+ const a = d ? n.getValues("createTableQuery") : await We(
98
101
  [...s.columnInfo],
99
102
  e.selectedColumns,
100
103
  s.primaryKey,
101
104
  (o = e.primaryKey) == null ? void 0 : o.toString()
102
105
  );
103
- a ? (nr(() => e), oe(() => a), Be(), le(!0)) : Le(e, !1);
104
- }, Le = async (e, a) => {
106
+ a ? (sr(() => e), ie(() => a), Ue(), oe(!0)) : Be(e, !1);
107
+ }, Be = async (e, a) => {
105
108
  var u;
106
109
  const o = {};
107
- let t, l = e || tr;
108
- if (a || oe(""), Object.keys(l).length > 0) {
110
+ let t, l = e || ir;
111
+ if (a || ie(""), Object.keys(l).length > 0) {
109
112
  l.selectedColumns.forEach((y) => {
110
113
  o[y.name] = y.type;
111
114
  }), l.columns = JSON.stringify(o), l.primaryKey = (u = l.primaryKey) == null ? void 0 : u.toString();
@@ -114,17 +117,17 @@ function Dr({
114
117
  requestParameters: y.requestParameters || []
115
118
  }));
116
119
  let p = {
117
- downloadType: Ve(l.downloadType),
120
+ downloadType: Ae(l.downloadType),
118
121
  // Unmigrated legacy tables are saved back as a single object, not an array, for mobile compat.
119
- downloadUrl: S ? c[0] ?? { apiEndpoint: "", requestParameters: [] } : c,
122
+ downloadUrl: P ? c[0] ?? { apiEndpoint: "", requestParameters: [] } : c,
120
123
  directoryPath: "#directoryPath#/" + l.directoryPath + "/"
121
124
  };
122
125
  p = JSON.stringify(p);
123
126
  try {
124
- if (t = (await H({
127
+ if (t = (await G({
125
128
  code: "update_mobile_entity",
126
129
  parameters: {
127
- tableName: (d ? n.getValues("tableName") : w) || "",
130
+ tableName: (d ? n.getValues("tableName") : b) || "",
128
131
  syncByDefault: l.syncByDefault === "true",
129
132
  columnInfo: l.columns || "",
130
133
  primaryKey: l.primaryKey || "",
@@ -133,15 +136,15 @@ function Dr({
133
136
  userData: l.userData === "true",
134
137
  hasMedia: l.hasMedia === "true",
135
138
  mediaConfiguration: l.hasMedia === "true" ? p : null,
136
- modifiedBy: me || "",
139
+ modifiedBy: he || "",
137
140
  isUpdate: !0
138
141
  }
139
- })).data, t != null && t.result && a && F) {
140
- const y = (await H({
142
+ })).data, t != null && t.result && a && j) {
143
+ const y = (await G({
141
144
  code: "INSERT_MOBILE_MIGRATION",
142
145
  parameters: {
143
- migrationScript: F,
144
- modifiedBy: me || "",
146
+ migrationScript: j,
147
+ modifiedBy: he || "",
145
148
  generateMigration: !0
146
149
  }
147
150
  })).data;
@@ -158,10 +161,10 @@ function Dr({
158
161
  }
159
162
  } else
160
163
  try {
161
- if (t = (await H({
164
+ if (t = (await G({
162
165
  code: "update_mobile_entity",
163
166
  parameters: {
164
- tableName: (d ? n.getValues("tableName") : w) || "",
167
+ tableName: (d ? n.getValues("tableName") : b) || "",
165
168
  syncByDefault: !1,
166
169
  columnInfo: "",
167
170
  primaryKey: "",
@@ -170,15 +173,15 @@ function Dr({
170
173
  userData: !1,
171
174
  hasMedia: !1,
172
175
  mediaConfiguration: null,
173
- modifiedBy: me || "",
176
+ modifiedBy: he || "",
174
177
  isUpdate: !1
175
178
  }
176
- })).data, t != null && t.result && F) {
177
- const c = (await H({
179
+ })).data, t != null && t.result && j) {
180
+ const c = (await G({
178
181
  code: "INSERT_MOBILE_MIGRATION",
179
182
  parameters: {
180
- migrationScript: F,
181
- modifiedBy: me || "",
183
+ migrationScript: j,
184
+ modifiedBy: he || "",
182
185
  generateMigration: !0
183
186
  }
184
187
  })).data;
@@ -193,34 +196,34 @@ function Dr({
193
196
  type: "error"
194
197
  });
195
198
  }
196
- t != null && t.result && (Ne(!1), Se(!1), Ze((c) => !c), K({
199
+ t != null && t.result && (Se(!1), Pe(!1), rr((c) => !c), K({
197
200
  message: "Table configuration saved successfully!",
198
201
  type: "success"
199
- })), le(!1);
200
- }, cr = () => {
201
- le(!1);
202
- }, Ee = async (e, a, o, t) => {
202
+ })), oe(!1);
203
+ }, pr = () => {
204
+ oe(!1);
205
+ }, We = async (e, a, o, t) => {
203
206
  let l = "";
204
207
  if (e.length > 0) {
205
208
  const u = Object.fromEntries(
206
209
  e.map((C) => [C.name, C.type])
207
210
  ), c = Object.fromEntries(
208
211
  a.map((C) => [C.name, C.type])
209
- ), p = Object.keys(u), y = Object.keys(c), R = e.filter(
212
+ ), p = Object.keys(u), y = Object.keys(c), T = e.filter(
210
213
  (C) => !y.includes(C.name)
211
214
  ), O = a.filter(
212
215
  (C) => !p.includes(C.name)
213
216
  ), $ = e.filter((C) => {
214
- const Je = c[C.name];
215
- return Je !== void 0 && Je !== C.type;
216
- }), B = R.map((C) => `ALTER TABLE ${w} DROP COLUMN ${C.name};`).join(`
217
- `), Ye = O.map(
218
- (C) => `ALTER TABLE ${w} ADD COLUMN ${C.name} ${C.type};`
217
+ const Ze = c[C.name];
218
+ return Ze !== void 0 && Ze !== C.type;
219
+ }), B = T.map((C) => `ALTER TABLE ${b} DROP COLUMN ${C.name};`).join(`
220
+ `), Xe = O.map(
221
+ (C) => `ALTER TABLE ${b} ADD COLUMN ${C.name} ${C.type};`
219
222
  ).join(`
220
223
  `);
221
- let ve = "";
222
- return $.length > 0 && (ve = er(
223
- w,
224
+ let Ce = "";
225
+ return $.length > 0 && (Ce = tr(
226
+ b,
224
227
  {
225
228
  columnInfo: e,
226
229
  primaryKey: o
@@ -229,19 +232,19 @@ function Dr({
229
232
  columnInfo: a,
230
233
  primaryKey: t
231
234
  }
232
- )), ve ? ve.trim() : (B && (l += `${B}
233
- `), Ye && (l += `${Ye}
235
+ )), Ce ? Ce.trim() : (B && (l += `${B}
236
+ `), Xe && (l += `${Xe}
234
237
  `), l.trim());
235
238
  } else {
236
- const u = d ? n.getValues("tableName") : w;
239
+ const u = d ? n.getValues("tableName") : b;
237
240
  return l = `CREATE TABLE ${u} (
238
241
  `, l += a.map((c) => `${c.name} ${c.type}`).join(`,
239
242
  `), t && (l += `,
240
243
  CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
241
244
  }
242
- }, Be = async () => {
245
+ }, Ue = async () => {
243
246
  var a;
244
- const e = (a = await H({
247
+ const e = (a = await G({
245
248
  code: "MFA_MIGRATION_MASTER_GET_LATEST_VERSIONS"
246
249
  }).catch((o) => {
247
250
  K({
@@ -249,13 +252,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
249
252
  type: "error"
250
253
  });
251
254
  })) == null ? void 0 : a.data;
252
- lr(e == null ? void 0 : e.result[0]);
255
+ dr(e == null ? void 0 : e.result[0]);
253
256
  };
254
- be(() => {
255
- if (Y(""), ge(0), se(0), d && (ye([]), L([]), U([]), V([]), ue(!1), n.reset({
257
+ Ne(() => {
258
+ if (J(""), fe(0), de(0), d && (ge([]), L([]), U([]), V([]), me(!1), n.reset({
256
259
  ...E
257
- }), setTimeout(() => n.trigger(), 0)), w && s && !d) {
258
- ye(A !== void 0 ? () => A.columnInfo : () => s.columnInfo);
260
+ }), setTimeout(() => n.trigger(), 0)), b && s && !d) {
261
+ ge(A !== void 0 ? () => A.columnInfo : () => s.columnInfo);
259
262
  let e = A !== void 0 ? A.columnInfo.map((t) => t.name) : s.columnInfo.map((t) => t.name), a = {};
260
263
  A !== void 0 ? A.columnInfo.forEach((t) => {
261
264
  a[t.name] = t.type;
@@ -270,8 +273,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
270
273
  }), n.reset({
271
274
  ...E
272
275
  }), setTimeout(() => n.trigger(), 0), V(
273
- ne(s == null ? void 0 : s.mediaConfiguration)
274
- ), ue(!1), L(
276
+ le(s == null ? void 0 : s.mediaConfiguration)
277
+ ), me(!1), L(
275
278
  () => s.columnInfo.sort((t, l) => t.name === s.primaryKey ? (t.isPrimaryKey = !0, -1) : l.name === s.primaryKey ? (l.isPrimaryKey = !0, 1) : t.name.localeCompare(l.name))
276
279
  ), U(A !== void 0 ? () => {
277
280
  const t = new Set(
@@ -283,8 +286,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
283
286
  })).sort((u, c) => u.name === s.primaryKey ? -1 : c.name === s.primaryKey ? 1 : u.name.localeCompare(c.name));
284
287
  } : []);
285
288
  }
286
- }, [s, A, w, d]), be(() => {
287
- const e = ie.toLowerCase();
289
+ }, [s, A, b, d]), Ne(() => {
290
+ const e = se.toLowerCase();
288
291
  if (x === 0) {
289
292
  const a = n.getValues("selectedColumns"), o = e ? a.filter(
290
293
  (t) => t.name.toLowerCase().includes(e)
@@ -293,31 +296,31 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
293
296
  } else {
294
297
  const a = new Set(
295
298
  n.getValues("selectedColumns").map((t) => t.name)
296
- ), o = e ? Ae.filter((t) => t.name.toLowerCase().includes(e)).map((t) => ({
299
+ ), o = e ? ze.filter((t) => t.name.toLowerCase().includes(e)).map((t) => ({
297
300
  ...t,
298
301
  isSynced: a.has(t.name)
299
- })) : Ae.map((t) => ({
302
+ })) : ze.map((t) => ({
300
303
  ...t,
301
304
  isSynced: a.has(t.name)
302
305
  }));
303
306
  U(o);
304
307
  }
305
- }, [ie, x]);
306
- const We = kr({
308
+ }, [se, x]);
309
+ const $e = Kr({
307
310
  control: n.control,
308
311
  name: "tableName"
309
312
  });
310
- be(() => {
311
- d && n.getValues("selectedColumns").length > 0 && We && xe(n.getValues("selectedColumns"));
312
- }, [We]);
313
- const ur = (e) => {
314
- oe(e);
315
- }, mr = () => {
316
- h && Ne(!h), d && Se(!d), n.reset({
313
+ Ne(() => {
314
+ d && n.getValues("selectedColumns").length > 0 && $e && ve(n.getValues("selectedColumns"));
315
+ }, [$e]);
316
+ const yr = (e) => {
317
+ ie(e);
318
+ }, gr = () => {
319
+ h && Se(!h), d && Pe(!d), n.reset({
317
320
  ...E,
318
321
  newColumnName: null,
319
322
  newColumnType: null
320
- }), V(E.downloadUrlEntries || []), ue(!1), L(E.selectedColumns || []);
323
+ }), V(E.downloadUrlEntries || []), me(!1), L(E.selectedColumns || []);
321
324
  const e = new Set(
322
325
  (E.selectedColumns || []).map((a) => a.name)
323
326
  );
@@ -327,13 +330,14 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
327
330
  isSynced: e.has(a.name)
328
331
  }))
329
332
  );
330
- }, hr = async () => {
333
+ }, fr = async () => {
331
334
  var o, t, l;
332
- Pe(() => !1);
333
- const e = await H({
335
+ if (!nr) return;
336
+ ke(() => !1);
337
+ const e = await G({
334
338
  code: "DELETE_MOBILE_ENTITY",
335
339
  parameters: {
336
- tableName: w
340
+ tableName: b
337
341
  }
338
342
  }).catch((u) => {
339
343
  K({
@@ -341,10 +345,10 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
341
345
  type: "error"
342
346
  });
343
347
  });
344
- (l = (t = (o = e == null ? void 0 : e.data) == null ? void 0 : o.result) == null ? void 0 : t[0]) != null && l.table_name && K({ message: `${w} deleted successfully!`, type: "success" });
345
- let a = `DROP TABLE if exists ${w};`;
346
- oe(() => a), Be(), le(!0);
347
- }, pr = yr(async (e) => {
348
+ (l = (t = (o = e == null ? void 0 : e.data) == null ? void 0 : o.result) == null ? void 0 : t[0]) != null && l.table_name && K({ message: `${b} deleted successfully!`, type: "success" });
349
+ let a = `DROP TABLE if exists ${b};`;
350
+ ie(() => a), Ue(), oe(!0);
351
+ }, xr = vr(async (e) => {
348
352
  const a = /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e);
349
353
  if (e.trim().length === 0) {
350
354
  n.setError("newColumnName", {
@@ -360,19 +364,19 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
360
364
  });
361
365
  return;
362
366
  }
363
- J.some((o) => o.name === e) || N.some((o) => o.name === e) ? n.setError("newColumnName", {
367
+ X.some((o) => o.name === e) || N.some((o) => o.name === e) ? n.setError("newColumnName", {
364
368
  type: "manual",
365
369
  message: "Column name already exists in the table."
366
370
  }) : n.clearErrors("newColumnName");
367
- }, 500), fe = N.some(
371
+ }, 500), xe = N.some(
368
372
  (e) => e.isPrimaryKey === !0
369
- ), xe = async (e) => {
373
+ ), ve = async (e) => {
370
374
  var t;
371
- if (X !== 2 && d && ge(2), e.length === 0) {
375
+ if (Z !== 2 && d && fe(2), e.length === 0) {
372
376
  n.setValue("createTableQuery", "", { shouldDirty: !0 });
373
377
  return;
374
378
  }
375
- const a = ((t = e.find((l) => l.isPrimaryKey)) == null ? void 0 : t.name) || "", o = await Ee([], e, "", a);
379
+ const a = ((t = e.find((l) => l.isPrimaryKey)) == null ? void 0 : t.name) || "", o = await We([], e, "", a);
376
380
  n.setValue("createTableQuery", o, { shouldDirty: !0 });
377
381
  };
378
382
  return /* @__PURE__ */ i(
@@ -386,7 +390,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
386
390
  },
387
391
  children: [
388
392
  /* @__PURE__ */ r(
389
- ee,
393
+ re,
390
394
  {
391
395
  variant: "outlined",
392
396
  sx: {
@@ -397,7 +401,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
397
401
  children: /* @__PURE__ */ i(
398
402
  "form",
399
403
  {
400
- onSubmit: n.handleSubmit(dr),
404
+ onSubmit: n.handleSubmit(hr),
401
405
  noValidate: !0,
402
406
  className: "w-full",
403
407
  children: [
@@ -425,7 +429,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
425
429
  }
426
430
  ),
427
431
  /* @__PURE__ */ r(
428
- fr,
432
+ br,
429
433
  {
430
434
  control: n.control,
431
435
  id: "tableName",
@@ -446,37 +450,37 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
446
450
  }
447
451
  }
448
452
  )
449
- ] }) : /* @__PURE__ */ i(Q, { children: [
453
+ ] }) : /* @__PURE__ */ i(H, { children: [
450
454
  /* @__PURE__ */ r(
451
455
  m,
452
456
  {
453
457
  variant: "h6",
454
458
  sx: { fontWeight: 700, color: "text.primary" },
455
- children: w || "No Table Selected"
459
+ children: b || "No Table Selected"
456
460
  }
457
461
  ),
458
- /* @__PURE__ */ r(m, { variant: "caption", color: "text.secondary", children: w ? "View and manage table configuration" : "Select a table from the list" })
462
+ /* @__PURE__ */ r(m, { variant: "caption", color: "text.secondary", children: b ? "View and manage table configuration" : "Select a table from the list" })
459
463
  ] }),
460
464
  /* @__PURE__ */ r(
461
- gr,
465
+ Cr,
462
466
  {
463
467
  description: "Do you want to drop this table?",
464
468
  title: "CONFIRMATION",
465
- open: Me,
466
- handleClick: hr,
467
- handleClose: () => Pe((e) => !e)
469
+ open: ar,
470
+ handleClick: fr,
471
+ handleClose: () => ke((e) => !e)
468
472
  }
469
473
  )
470
474
  ] }),
471
475
  /* @__PURE__ */ i(g, { sx: { display: "flex", gap: 1 }, children: [
472
- (h || d) && /* @__PURE__ */ r(
476
+ (h || d) && Ve && /* @__PURE__ */ r(
473
477
  z,
474
478
  {
475
- title: fe ? "" : "A primary key is required to proceed.",
479
+ title: xe ? "" : "A primary key is required to proceed.",
476
480
  arrow: !0,
477
481
  placement: "bottom",
478
482
  children: /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
479
- T,
483
+ R,
480
484
  {
481
485
  type: "submit",
482
486
  variant: "contained",
@@ -488,7 +492,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
488
492
  boxShadow: "none",
489
493
  px: 2.5
490
494
  },
491
- disabled: sr || !fe,
495
+ disabled: mr || !xe,
492
496
  startIcon: /* @__PURE__ */ r(v, { iconName: "faCheck" }),
493
497
  children: "Submit"
494
498
  }
@@ -496,11 +500,11 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
496
500
  }
497
501
  ),
498
502
  (h || d) && /* @__PURE__ */ r(
499
- T,
503
+ R,
500
504
  {
501
505
  type: "button",
502
506
  variant: "outlined",
503
- onClick: () => mr(),
507
+ onClick: () => gr(),
504
508
  size: "small",
505
509
  sx: {
506
510
  borderRadius: 2,
@@ -547,11 +551,11 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
547
551
  }
548
552
  ] : []
549
553
  ].map((e) => {
550
- const a = X === e.value;
554
+ const a = Z === e.value;
551
555
  return /* @__PURE__ */ r(
552
- T,
556
+ R,
553
557
  {
554
- onClick: () => ge(e.value),
558
+ onClick: () => fe(e.value),
555
559
  size: "small",
556
560
  disableElevation: !0,
557
561
  sx: {
@@ -579,16 +583,16 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
579
583
  })
580
584
  }
581
585
  ),
582
- X === 0 && /* @__PURE__ */ i(f, { children: [
586
+ Z === 0 && /* @__PURE__ */ i(f, { children: [
583
587
  /* @__PURE__ */ r(m, { variant: "subtitle1", children: "Modified On Query:" }),
584
588
  /* @__PURE__ */ r(
585
589
  D,
586
590
  {
587
591
  name: "modifiedOnQuery",
588
592
  control: n.control,
589
- render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(Q, { children: [
593
+ render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(H, { children: [
590
594
  /* @__PURE__ */ r(
591
- he,
595
+ pe,
592
596
  {
593
597
  height: "35vh",
594
598
  defaultLanguage: "sql",
@@ -623,16 +627,16 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
623
627
  }
624
628
  )
625
629
  ] }),
626
- X === 1 && /* @__PURE__ */ i(f, { children: [
630
+ Z === 1 && /* @__PURE__ */ i(f, { children: [
627
631
  /* @__PURE__ */ r(m, { variant: "subtitle1", children: "Data Fetch Query:" }),
628
632
  /* @__PURE__ */ r(
629
633
  D,
630
634
  {
631
635
  name: "dataFetchQuery",
632
636
  control: n.control,
633
- render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(Q, { children: [
637
+ render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(H, { children: [
634
638
  /* @__PURE__ */ r(
635
- he,
639
+ pe,
636
640
  {
637
641
  height: "35vh",
638
642
  defaultLanguage: "sql",
@@ -667,16 +671,16 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
667
671
  }
668
672
  )
669
673
  ] }),
670
- X === 2 && /* @__PURE__ */ i(f, { children: [
674
+ Z === 2 && /* @__PURE__ */ i(f, { children: [
671
675
  /* @__PURE__ */ r(m, { variant: "subtitle1", children: "Create Table Query:" }),
672
676
  /* @__PURE__ */ r(
673
677
  D,
674
678
  {
675
679
  name: "createTableQuery",
676
680
  control: n.control,
677
- render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(Q, { children: [
681
+ render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ i(H, { children: [
678
682
  /* @__PURE__ */ r(
679
- he,
683
+ pe,
680
684
  {
681
685
  height: "35vh",
682
686
  defaultLanguage: "sql",
@@ -712,7 +716,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
712
716
  )
713
717
  ] }),
714
718
  /* @__PURE__ */ i(
715
- ee,
719
+ re,
716
720
  {
717
721
  variant: "outlined",
718
722
  sx: {
@@ -743,7 +747,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
743
747
  ]
744
748
  }
745
749
  ),
746
- /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(
750
+ /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ r(
747
751
  D,
748
752
  {
749
753
  name: "userData",
@@ -751,13 +755,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
751
755
  rules: { required: "Required field." },
752
756
  disabled: !h && !d,
753
757
  defaultValue: s.userData !== void 0 && s.userData !== null ? String(s.userData) : "",
754
- render: ({ field: e }) => /* @__PURE__ */ i(Ce, { row: !0, ...e, value: e.value, children: [
758
+ render: ({ field: e }) => /* @__PURE__ */ i(be, { row: !0, ...e, value: e.value, children: [
755
759
  /* @__PURE__ */ r(
756
760
  _,
757
761
  {
758
762
  value: "true",
759
763
  control: /* @__PURE__ */ r(
760
- G,
764
+ I,
761
765
  {
762
766
  disabled: !h && !d,
763
767
  size: "small"
@@ -771,7 +775,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
771
775
  {
772
776
  value: "false",
773
777
  control: /* @__PURE__ */ r(
774
- G,
778
+ I,
775
779
  {
776
780
  disabled: !h && !d,
777
781
  size: "small"
@@ -797,7 +801,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
797
801
  ]
798
802
  }
799
803
  ),
800
- /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(
804
+ /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ r(
801
805
  D,
802
806
  {
803
807
  name: "syncByDefault",
@@ -806,13 +810,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
806
810
  rules: { required: "Required field." },
807
811
  disabled: !h && !d,
808
812
  defaultValue: s.syncByDefault !== void 0 && s.syncByDefault !== null ? String(s.syncByDefault) : "",
809
- render: ({ field: e }) => /* @__PURE__ */ i(Ce, { row: !0, ...e, value: e.value, children: [
813
+ render: ({ field: e }) => /* @__PURE__ */ i(be, { row: !0, ...e, value: e.value, children: [
810
814
  /* @__PURE__ */ r(
811
815
  _,
812
816
  {
813
817
  value: "true",
814
818
  control: /* @__PURE__ */ r(
815
- G,
819
+ I,
816
820
  {
817
821
  disabled: !h && !d,
818
822
  size: "small"
@@ -826,7 +830,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
826
830
  {
827
831
  value: "false",
828
832
  control: /* @__PURE__ */ r(
829
- G,
833
+ I,
830
834
  {
831
835
  disabled: !h && !d,
832
836
  size: "small"
@@ -851,7 +855,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
851
855
  ]
852
856
  }
853
857
  ),
854
- /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(
858
+ /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ r(
855
859
  D,
856
860
  {
857
861
  name: "hasMedia",
@@ -860,13 +864,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
860
864
  rules: { required: "Required field." },
861
865
  disabled: !h && !d,
862
866
  defaultValue: s.hasMedia !== void 0 && s.hasMedia !== null ? String(s.hasMedia) : "",
863
- render: ({ field: e }) => /* @__PURE__ */ i(Ce, { row: !0, ...e, value: e.value, children: [
867
+ render: ({ field: e }) => /* @__PURE__ */ i(be, { row: !0, ...e, value: e.value, children: [
864
868
  /* @__PURE__ */ r(
865
869
  _,
866
870
  {
867
871
  value: "true",
868
872
  control: /* @__PURE__ */ r(
869
- G,
873
+ I,
870
874
  {
871
875
  disabled: !h && !d,
872
876
  size: "small"
@@ -880,7 +884,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
880
884
  {
881
885
  value: "false",
882
886
  control: /* @__PURE__ */ r(
883
- G,
887
+ I,
884
888
  {
885
889
  disabled: !h && !d,
886
890
  size: "small"
@@ -897,7 +901,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
897
901
  ]
898
902
  }
899
903
  ),
900
- M === "true" && /* @__PURE__ */ i(Q, { children: [
904
+ ee === "true" && /* @__PURE__ */ i(H, { children: [
901
905
  /* @__PURE__ */ i(
902
906
  g,
903
907
  {
@@ -916,13 +920,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
916
920
  children: "Media Configuration:"
917
921
  }
918
922
  ),
919
- S && h && /* @__PURE__ */ r(
923
+ P && h && /* @__PURE__ */ r(
920
924
  z,
921
925
  {
922
926
  title: "Convert legacy single-API config to the new multi-API format",
923
927
  arrow: !0,
924
928
  children: /* @__PURE__ */ r(
925
- T,
929
+ R,
926
930
  {
927
931
  size: "small",
928
932
  variant: "contained",
@@ -936,10 +940,10 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
936
940
  },
937
941
  startIcon: /* @__PURE__ */ r(v, { iconName: "faArrowsRotate" }),
938
942
  onClick: () => {
939
- const e = ne(
943
+ const e = le(
940
944
  s.mediaConfiguration
941
945
  ), a = e.length ? e : [{ apiEndpoint: "", requestParameters: [] }];
942
- V(a), ue(!0), n.setValue("downloadUrlEntries", a, {
946
+ V(a), me(!0), n.setValue("downloadUrlEntries", a, {
943
947
  shouldDirty: !0,
944
948
  shouldValidate: !0
945
949
  }), K({
@@ -955,8 +959,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
955
959
  ]
956
960
  }
957
961
  ),
958
- S && h && /* @__PURE__ */ r(
959
- ee,
962
+ P && h && /* @__PURE__ */ r(
963
+ re,
960
964
  {
961
965
  variant: "outlined",
962
966
  sx: {
@@ -1002,17 +1006,17 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1002
1006
  name: "downloadType",
1003
1007
  control: n.control,
1004
1008
  rules: {
1005
- validate: (e) => M !== "true" || !!e || "Download Type is required."
1009
+ validate: (e) => ee !== "true" || !!e || "Download Type is required."
1006
1010
  },
1007
1011
  render: ({
1008
1012
  field: { onChange: e, value: a },
1009
1013
  fieldState: { error: o }
1010
1014
  }) => /* @__PURE__ */ r(
1011
- pe,
1015
+ ye,
1012
1016
  {
1013
- options: ke,
1017
+ options: De,
1014
1018
  value: a || null,
1015
- disabled: !h && !d || S,
1019
+ disabled: !h && !d || P,
1016
1020
  onChange: (t, l) => e(l),
1017
1021
  renderInput: (t) => /* @__PURE__ */ r(
1018
1022
  q,
@@ -1048,8 +1052,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1048
1052
  children: "Download URL APIs"
1049
1053
  }
1050
1054
  ),
1051
- (h || d) && !S && /* @__PURE__ */ r(z, { title: "Add another API configuration", arrow: !0, children: /* @__PURE__ */ r(
1052
- T,
1055
+ (h || d) && !P && /* @__PURE__ */ r(z, { title: "Add another API configuration", arrow: !0, children: /* @__PURE__ */ r(
1056
+ R,
1053
1057
  {
1054
1058
  size: "small",
1055
1059
  variant: "outlined",
@@ -1091,7 +1095,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1091
1095
  }
1092
1096
  ),
1093
1097
  k.map((e, a) => /* @__PURE__ */ i(
1094
- ee,
1098
+ re,
1095
1099
  {
1096
1100
  variant: "outlined",
1097
1101
  sx: {
@@ -1123,7 +1127,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1123
1127
  ]
1124
1128
  }
1125
1129
  ),
1126
- (h || d) && !S && k.length > 1 && /* @__PURE__ */ r(z, { title: "Remove this API configuration", arrow: !0, children: /* @__PURE__ */ r(
1130
+ (h || d) && !P && k.length > 1 && /* @__PURE__ */ r(z, { title: "Remove this API configuration", arrow: !0, children: /* @__PURE__ */ r(
1127
1131
  W,
1128
1132
  {
1129
1133
  size: "small",
@@ -1175,7 +1179,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1175
1179
  placeholder: "https://api.example.com/endpoint",
1176
1180
  slotProps: {
1177
1181
  input: {
1178
- readOnly: !h && !d || S
1182
+ readOnly: !h && !d || P
1179
1183
  }
1180
1184
  },
1181
1185
  onChange: (o) => {
@@ -1219,7 +1223,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1219
1223
  ]
1220
1224
  }
1221
1225
  ),
1222
- (h || d) && !S && /* @__PURE__ */ r(z, { title: "Add parameter", arrow: !0, children: /* @__PURE__ */ r(
1226
+ (h || d) && !P && /* @__PURE__ */ r(z, { title: "Add parameter", arrow: !0, children: /* @__PURE__ */ r(
1223
1227
  W,
1224
1228
  {
1225
1229
  size: "small",
@@ -1297,7 +1301,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1297
1301
  label: "Key",
1298
1302
  value: o.key,
1299
1303
  placeholder: "parameterKey",
1300
- disabled: !h && !d || S,
1304
+ disabled: !h && !d || P,
1301
1305
  onChange: (l) => {
1302
1306
  const u = (e.requestParameters || []).map(
1303
1307
  (p, y) => y === t ? { ...p, key: l.target.value } : p
@@ -1320,20 +1324,20 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1320
1324
  }
1321
1325
  ),
1322
1326
  /* @__PURE__ */ r(
1323
- pe,
1327
+ ye,
1324
1328
  {
1325
1329
  size: "small",
1326
1330
  options: N.map(
1327
1331
  (l) => l.name
1328
1332
  ),
1329
1333
  value: o.value || null,
1330
- disabled: !h && !d || S,
1334
+ disabled: !h && !d || P,
1331
1335
  noOptionsText: N.length === 0 ? "No synced columns yet" : "No match",
1332
1336
  onChange: (l, u) => {
1333
1337
  const c = (e.requestParameters || []).map(
1334
- (y, R) => R === t ? { ...y, value: u || "" } : y
1338
+ (y, T) => T === t ? { ...y, value: u || "" } : y
1335
1339
  ), p = k.map(
1336
- (y, R) => R === a ? {
1340
+ (y, T) => T === a ? {
1337
1341
  ...y,
1338
1342
  requestParameters: c
1339
1343
  } : y
@@ -1358,7 +1362,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1358
1362
  sx: { flex: 1 }
1359
1363
  }
1360
1364
  ),
1361
- (h || d) && !S && /* @__PURE__ */ r(z, { title: "Remove parameter", arrow: !0, children: /* @__PURE__ */ r(
1365
+ (h || d) && !P && /* @__PURE__ */ r(z, { title: "Remove parameter", arrow: !0, children: /* @__PURE__ */ r(
1362
1366
  W,
1363
1367
  {
1364
1368
  size: "small",
@@ -1431,7 +1435,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1431
1435
  control: n.control,
1432
1436
  defaultValue: "",
1433
1437
  rules: {
1434
- validate: (e) => M !== "true" || !!(e != null && e.trim()) && e.trim().length > 0 || "Directory Path is required."
1438
+ validate: (e) => ee !== "true" || !!(e != null && e.trim()) && e.trim().length > 0 || "Directory Path is required."
1435
1439
  },
1436
1440
  render: ({ field: e, fieldState: { error: a } }) => /* @__PURE__ */ r(
1437
1441
  q,
@@ -1444,7 +1448,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1444
1448
  helperText: a == null ? void 0 : a.message,
1445
1449
  slotProps: {
1446
1450
  input: {
1447
- readOnly: !h && !d || S,
1451
+ readOnly: !h && !d || P,
1448
1452
  startAdornment: /* @__PURE__ */ r(we, { position: "start", children: "#directoryPath#/" }),
1449
1453
  endAdornment: /* @__PURE__ */ r(we, { position: "end", children: "/" })
1450
1454
  }
@@ -1458,7 +1462,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1458
1462
  ] })
1459
1463
  ] }),
1460
1464
  /* @__PURE__ */ r(f, { size: 5, children: /* @__PURE__ */ i(
1461
- ee,
1465
+ re,
1462
1466
  {
1463
1467
  variant: "outlined",
1464
1468
  sx: { px: 2, borderRadius: 1.5, height: "100%", mb: 1 },
@@ -1490,11 +1494,11 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1490
1494
  },
1491
1495
  children: [
1492
1496
  !d && /* @__PURE__ */ r(
1493
- T,
1497
+ R,
1494
1498
  {
1495
1499
  size: "small",
1496
1500
  onClick: () => {
1497
- se(0), Y("");
1501
+ de(0), J("");
1498
1502
  },
1499
1503
  sx: {
1500
1504
  px: 1.5,
@@ -1516,11 +1520,11 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1516
1520
  }
1517
1521
  ),
1518
1522
  A !== void 0 && /* @__PURE__ */ r(
1519
- T,
1523
+ R,
1520
1524
  {
1521
1525
  size: "small",
1522
1526
  onClick: () => {
1523
- se(1), Y("");
1527
+ de(1), J("");
1524
1528
  },
1525
1529
  sx: {
1526
1530
  px: 1.5,
@@ -1544,8 +1548,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1544
1548
  ]
1545
1549
  }
1546
1550
  ),
1547
- x === 0 && N.length > 0 && I && /* @__PURE__ */ r(g, { sx: { minWidth: 200, marginLeft: 2 }, children: /* @__PURE__ */ r(
1548
- pe,
1551
+ x === 0 && N.length > 0 && Y && /* @__PURE__ */ r(g, { sx: { minWidth: 200, marginLeft: 2 }, children: /* @__PURE__ */ r(
1552
+ ye,
1549
1553
  {
1550
1554
  size: "small",
1551
1555
  options: N.map((e) => e.name),
@@ -1574,7 +1578,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1574
1578
  }
1575
1579
  ) }),
1576
1580
  (d || h) && /* @__PURE__ */ r(
1577
- T,
1581
+ R,
1578
1582
  {
1579
1583
  id: "edit-button-anchor",
1580
1584
  size: "small",
@@ -1590,23 +1594,23 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1590
1594
  disabled: !!n.formState.errors.tableName,
1591
1595
  onClick: async (e) => {
1592
1596
  const a = e.currentTarget;
1593
- await n.trigger("tableName") && (ce(null), de(a));
1597
+ await n.trigger("tableName") && (ue(null), ce(a));
1594
1598
  },
1595
1599
  startIcon: /* @__PURE__ */ r(v, { iconName: "faPlus" }),
1596
1600
  children: "Column"
1597
1601
  }
1598
1602
  ),
1599
1603
  (d || h) && /* @__PURE__ */ r(
1600
- xr,
1604
+ wr,
1601
1605
  {
1602
- id: ir,
1603
- open: Te,
1604
- anchorEl: ze,
1606
+ id: ur,
1607
+ open: Oe,
1608
+ anchorEl: Te,
1605
1609
  onClose: async () => {
1606
- de(null), n.setValue("newColumnName", ""), n.setValue("newColumnType", null), n.setValue("isPrimaryKey", !1), n.clearErrors([
1610
+ ce(null), n.setValue("newColumnName", ""), n.setValue("newColumnType", null), n.setValue("isPrimaryKey", !1), n.clearErrors([
1607
1611
  "newColumnName",
1608
1612
  "newColumnType"
1609
- ]), ce(null);
1613
+ ]), ue(null);
1610
1614
  },
1611
1615
  anchorOrigin: {
1612
1616
  vertical: "bottom",
@@ -1620,10 +1624,10 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1620
1624
  sx: {
1621
1625
  p: 1,
1622
1626
  width: "200px",
1623
- height: (Ie = n.getValues("selectedColumns")) != null && Ie.some((e) => e.isPrimaryKey) ? "180px" : "210px"
1627
+ height: (Je = n.getValues("selectedColumns")) != null && Je.some((e) => e.isPrimaryKey) ? "180px" : "210px"
1624
1628
  },
1625
1629
  children: [
1626
- /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(re, { fullWidth: !0, children: /* @__PURE__ */ r(
1630
+ /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(ae, { fullWidth: !0, children: /* @__PURE__ */ r(
1627
1631
  D,
1628
1632
  {
1629
1633
  name: "newColumnName",
@@ -1650,13 +1654,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1650
1654
  margin: 0
1651
1655
  },
1652
1656
  onChange: (l) => {
1653
- e(l.target.value), pr(l.target.value);
1657
+ e(l.target.value), xr(l.target.value);
1654
1658
  }
1655
1659
  }
1656
1660
  )
1657
1661
  }
1658
1662
  ) }) }),
1659
- /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(re, { fullWidth: !0, children: /* @__PURE__ */ r(
1663
+ /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(ae, { fullWidth: !0, children: /* @__PURE__ */ r(
1660
1664
  D,
1661
1665
  {
1662
1666
  name: "newColumnType",
@@ -1666,9 +1670,9 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1666
1670
  field: { onChange: e, value: a },
1667
1671
  fieldState: { error: o }
1668
1672
  }) => /* @__PURE__ */ r(
1669
- pe,
1673
+ ye,
1670
1674
  {
1671
- options: Re || [],
1675
+ options: qe || [],
1672
1676
  value: (a == null ? void 0 : a.trim()) || null,
1673
1677
  getOptionLabel: (t) => t,
1674
1678
  onChange: (t, l) => {
@@ -1703,7 +1707,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1703
1707
  )
1704
1708
  }
1705
1709
  ) }) }),
1706
- Z === null && !n.getValues("selectedColumns").some((e) => e.isPrimaryKey) && /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(
1710
+ M === null && !n.getValues("selectedColumns").some((e) => e.isPrimaryKey) && /* @__PURE__ */ r(f, { size: 12, className: "h-fit", children: /* @__PURE__ */ r(
1707
1711
  _,
1708
1712
  {
1709
1713
  control: /* @__PURE__ */ r(
@@ -1714,7 +1718,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1714
1718
  render: ({
1715
1719
  field: { onChange: e, value: a }
1716
1720
  }) => /* @__PURE__ */ r(
1717
- vr,
1721
+ Nr,
1718
1722
  {
1719
1723
  checked: a || !1,
1720
1724
  onChange: (o) => e(o.target.checked),
@@ -1729,21 +1733,21 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1729
1733
  }
1730
1734
  ) }),
1731
1735
  /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1732
- T,
1736
+ R,
1733
1737
  {
1734
1738
  size: "small",
1735
1739
  variant: "contained",
1736
- disabled: !Oe || !qe || Oe.trim() === "" || !Re.includes(
1737
- qe.trim()
1740
+ disabled: !Le || !Ee || Le.trim() === "" || !qe.includes(
1741
+ Ee.trim()
1738
1742
  ),
1739
1743
  onClick: async () => {
1740
1744
  const e = n.getValues("isPrimaryKey"), a = n.getValues("newColumnName"), o = n.getValues("newColumnType"), t = n.getValues("selectedColumns").some((c) => c.isPrimaryKey);
1741
1745
  let l = [
1742
1746
  ...n.getValues("selectedColumns")
1743
1747
  ];
1744
- if (Z !== null)
1745
- l[Z] = {
1746
- ...l[Z],
1748
+ if (M !== null)
1749
+ l[M] = {
1750
+ ...l[M],
1747
1751
  name: a,
1748
1752
  type: o
1749
1753
  };
@@ -1771,9 +1775,9 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1771
1775
  }
1772
1776
  );
1773
1777
  const u = [...l].sort((c, p) => c.isPrimaryKey ? -1 : p.isPrimaryKey ? 1 : c.name.localeCompare(p.name));
1774
- L(u), d && await xe(l), ce(null), de(null), x !== 0 && se(0), n.setValue("newColumnName", " "), n.setValue("newColumnType", " "), n.setValue("isPrimaryKey", null);
1778
+ L(u), d && await ve(l), ue(null), ce(null), x !== 0 && de(0), n.setValue("newColumnName", " "), n.setValue("newColumnType", " "), n.setValue("isPrimaryKey", null);
1775
1779
  },
1776
- children: Z !== null ? "Update" : "Add"
1780
+ children: M !== null ? "Update" : "Add"
1777
1781
  }
1778
1782
  ) })
1779
1783
  ]
@@ -1785,17 +1789,17 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1785
1789
  }
1786
1790
  ),
1787
1791
  /* @__PURE__ */ r(
1788
- Cr,
1792
+ Sr,
1789
1793
  {
1790
1794
  sx: {
1791
- maxHeight: M === "true" ? "112vh" : "59vh",
1795
+ maxHeight: ee === "true" ? "112vh" : "59vh",
1792
1796
  border: "1px solid",
1793
1797
  borderColor: "divider",
1794
1798
  borderRadius: 2
1795
1799
  },
1796
- children: /* @__PURE__ */ i(wr, { stickyHeader: !0, children: [
1797
- /* @__PURE__ */ r(br, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ i(
1798
- te,
1800
+ children: /* @__PURE__ */ i(Pr, { stickyHeader: !0, children: [
1801
+ /* @__PURE__ */ r(kr, { children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ i(
1802
+ ne,
1799
1803
  {
1800
1804
  className: " px-3 ",
1801
1805
  sx: { backgroundColor: "white" },
@@ -1806,9 +1810,9 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1806
1810
  size: "small",
1807
1811
  placeholder: "Search Columns",
1808
1812
  variant: "outlined",
1809
- value: ie,
1813
+ value: se,
1810
1814
  onChange: (e) => {
1811
- Y(e.target.value);
1815
+ J(e.target.value);
1812
1816
  },
1813
1817
  className: "w-full py-0.5 text-xs",
1814
1818
  InputProps: {
@@ -1822,7 +1826,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1822
1826
  }
1823
1827
  }
1824
1828
  ),
1825
- !fe && /* @__PURE__ */ i(
1829
+ !xe && /* @__PURE__ */ i(
1826
1830
  m,
1827
1831
  {
1828
1832
  variant: "body2",
@@ -1837,8 +1841,8 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1837
1841
  ]
1838
1842
  }
1839
1843
  ) }) }),
1840
- x === 0 && /* @__PURE__ */ r(Xe, { children: N.length ? N.map((e, a) => /* @__PURE__ */ r(
1841
- ae,
1844
+ x === 0 && /* @__PURE__ */ r(er, { children: N.length ? N.map((e, a) => /* @__PURE__ */ r(
1845
+ te,
1842
1846
  {
1843
1847
  className: `border-b ${a === N.length - 1 ? "border-none" : "border-[#ccc]"}`,
1844
1848
  sx: {
@@ -1847,7 +1851,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1847
1851
  backgroundColor: e.onlyMobileDb ? "#d2f7c0" : e.isTypeChanged ? "#e79a9a" : "#e9f3ff"
1848
1852
  }
1849
1853
  },
1850
- children: /* @__PURE__ */ i(te, { className: "p-2 px-4 flex justify-between", children: [
1854
+ children: /* @__PURE__ */ i(ne, { className: "p-2 px-4 flex justify-between", children: [
1851
1855
  /* @__PURE__ */ r(
1852
1856
  z,
1853
1857
  {
@@ -1888,11 +1892,11 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1888
1892
  )
1889
1893
  }
1890
1894
  ),
1891
- (d || h) && /* @__PURE__ */ i(Q, { children: [
1895
+ (d || h) && /* @__PURE__ */ i(H, { children: [
1892
1896
  /* @__PURE__ */ i(
1893
1897
  z,
1894
1898
  {
1895
- title: !d && e.isPrimaryKey && !I ? "Deletion of primary key is not allowed." : "",
1899
+ title: !d && e.isPrimaryKey && !Y ? "Deletion of primary key is not allowed." : "",
1896
1900
  arrow: !0,
1897
1901
  placement: "left",
1898
1902
  children: [
@@ -1904,12 +1908,12 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1904
1908
  height: "1.3rem",
1905
1909
  marginRight: "0"
1906
1910
  },
1907
- disabled: !d && e.isPrimaryKey && !I,
1911
+ disabled: !d && e.isPrimaryKey && !Y,
1908
1912
  onClick: async () => {
1909
1913
  const o = n.getValues(
1910
1914
  "selectedColumns"
1911
1915
  );
1912
- Y("");
1916
+ J("");
1913
1917
  const t = o.filter(
1914
1918
  (c) => c.name !== e.name
1915
1919
  );
@@ -1918,7 +1922,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1918
1922
  t,
1919
1923
  { shouldDirty: !0 }
1920
1924
  );
1921
- const l = ie.trim().toLowerCase(), u = l ? t.filter(
1925
+ const l = se.trim().toLowerCase(), u = l ? t.filter(
1922
1926
  (c) => c.name.toLowerCase().includes(l)
1923
1927
  ) : t;
1924
1928
  L(
@@ -1931,7 +1935,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1931
1935
  ), e.isPrimaryKey && n.setValue(
1932
1936
  "primaryKey",
1933
1937
  ""
1934
- ), d && await xe(
1938
+ ), d && await ve(
1935
1939
  t
1936
1940
  );
1937
1941
  },
@@ -1961,13 +1965,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1961
1965
  ).findIndex(
1962
1966
  (l) => l.name === e.name
1963
1967
  );
1964
- ce(t), n.setValue(
1968
+ ue(t), n.setValue(
1965
1969
  "newColumnName",
1966
1970
  e.name
1967
1971
  ), n.setValue(
1968
1972
  "newColumnType",
1969
1973
  e.type
1970
- ), de(
1974
+ ), ce(
1971
1975
  document.getElementById(
1972
1976
  "edit-button-anchor"
1973
1977
  ) ?? null
@@ -1987,13 +1991,13 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
1987
1991
  ] })
1988
1992
  },
1989
1993
  a + 1
1990
- )) : /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ r(te, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ i(m, { variant: "body2", children: [
1994
+ )) : /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(ne, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ i(m, { variant: "body2", children: [
1991
1995
  " ",
1992
1996
  n.getValues("selectedColumns").length === 0 ? "There are no columns to display." : N.length === 0 ? "No columns for search query." : null
1993
1997
  ] }) }) }) }),
1994
- x === 1 && /* @__PURE__ */ r(Xe, { children: J.length ? J.map((e, a) => {
1998
+ x === 1 && /* @__PURE__ */ r(er, { children: X.length ? X.map((e, a) => {
1995
1999
  const o = e.name === s.primaryKey, t = e.isSynced || !1, l = /* @__PURE__ */ r(
1996
- Sr,
2000
+ Dr,
1997
2001
  {
1998
2002
  icon: /* @__PURE__ */ r(
1999
2003
  g,
@@ -2042,22 +2046,22 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2042
2046
  disabled: !h,
2043
2047
  onChange: (c) => {
2044
2048
  const p = c.target.checked;
2045
- if (!p && h && !I && !d && e.name === s.primaryKey)
2049
+ if (!p && h && !Y && !d && e.name === s.primaryKey)
2046
2050
  return;
2047
- const y = [...J], R = {
2051
+ const y = [...X], T = {
2048
2052
  ...y[a],
2049
2053
  isSynced: c.target.checked
2050
2054
  };
2051
- y[a] = R, U(y);
2055
+ y[a] = T, U(y);
2052
2056
  const O = [...N];
2053
2057
  if (p) {
2054
2058
  const $ = N.some(
2055
2059
  (B) => B.isPrimaryKey
2056
2060
  );
2057
2061
  e.name === s.primaryKey && !$ ? (O.push({
2058
- ...R,
2062
+ ...T,
2059
2063
  isPrimaryKey: !0
2060
- }), n.setValue("primaryKey", e.name)) : O.push(R);
2064
+ }), n.setValue("primaryKey", e.name)) : O.push(T);
2061
2065
  } else {
2062
2066
  const $ = O.findIndex(
2063
2067
  (B) => B.name === y[a].name
@@ -2090,14 +2094,14 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2090
2094
  }
2091
2095
  );
2092
2096
  return /* @__PURE__ */ r(
2093
- ae,
2097
+ te,
2094
2098
  {
2095
- className: `border-b ${a === J.length - 1 ? "border-none" : "border-[#ccc]"}`,
2099
+ className: `border-b ${a === X.length - 1 ? "border-none" : "border-[#ccc]"}`,
2096
2100
  sx: {
2097
2101
  "&:hover": { backgroundColor: "#e9f3ff" }
2098
2102
  },
2099
2103
  children: /* @__PURE__ */ i(
2100
- te,
2104
+ ne,
2101
2105
  {
2102
2106
  sx: {
2103
2107
  p: 0,
@@ -2132,7 +2136,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2132
2136
  /* @__PURE__ */ r(
2133
2137
  z,
2134
2138
  {
2135
- title: h && !I && e.name === s.primaryKey ? "Primary key cannot be unsynced in edit mode." : "",
2139
+ title: h && !Y && e.name === s.primaryKey ? "Primary key cannot be unsynced in edit mode." : "",
2136
2140
  arrow: !0,
2137
2141
  placement: "top",
2138
2142
  children: /* @__PURE__ */ r("span", { children: l })
@@ -2189,7 +2193,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2189
2193
  },
2190
2194
  a + 1
2191
2195
  );
2192
- }) : /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ r(te, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ r(m, { variant: "body2", children: "No columns for search query." }) }) }) })
2196
+ }) : /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(ne, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ r(m, { variant: "body2", children: "No columns for search query." }) }) }) })
2193
2197
  ] })
2194
2198
  }
2195
2199
  )
@@ -2202,7 +2206,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2202
2206
  )
2203
2207
  }
2204
2208
  ),
2205
- Ke && /* @__PURE__ */ r(Nr, { open: Ke, onClose: cr, children: /* @__PURE__ */ i(g, { sx: { ...Ar }, children: [
2209
+ Re && /* @__PURE__ */ r(Vr, { open: Re, onClose: pr, children: /* @__PURE__ */ i(g, { sx: { ...Tr }, children: [
2206
2210
  /* @__PURE__ */ i(
2207
2211
  g,
2208
2212
  {
@@ -2218,7 +2222,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2218
2222
  "From : ",
2219
2223
  /* @__PURE__ */ i("strong", { children: [
2220
2224
  "v",
2221
- (j == null ? void 0 : j.from_version) + 1
2225
+ (Q == null ? void 0 : Q.from_version) + 1
2222
2226
  ] }),
2223
2227
  " ",
2224
2228
  /* @__PURE__ */ r(
@@ -2233,14 +2237,14 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2233
2237
  "To : ",
2234
2238
  /* @__PURE__ */ i("strong", { children: [
2235
2239
  "v",
2236
- (j == null ? void 0 : j.to_version) + 1
2240
+ (Q == null ? void 0 : Q.to_version) + 1
2237
2241
  ] })
2238
2242
  ] })
2239
2243
  ]
2240
2244
  }
2241
2245
  ),
2242
2246
  /* @__PURE__ */ r(
2243
- he,
2247
+ pe,
2244
2248
  {
2245
2249
  height: "50vh",
2246
2250
  defaultLanguage: "sql",
@@ -2254,19 +2258,19 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2254
2258
  occurrencesHighlight: !1,
2255
2259
  selectionHighlight: !1
2256
2260
  },
2257
- value: F || "",
2258
- defaultValue: F || "",
2259
- onChange: ur,
2261
+ value: j || "",
2262
+ defaultValue: j || "",
2263
+ onChange: yr,
2260
2264
  editorProps: { $blockScrolling: !0 }
2261
2265
  }
2262
2266
  ),
2263
2267
  /* @__PURE__ */ r(
2264
- T,
2268
+ R,
2265
2269
  {
2266
2270
  variant: "contained",
2267
2271
  color: "primary",
2268
2272
  className: "mt-2",
2269
- onClick: () => Le(null, !0),
2273
+ onClick: () => Be(null, !0),
2270
2274
  children: "OK"
2271
2275
  }
2272
2276
  )
@@ -2275,7 +2279,7 @@ CONSTRAINT ${u}_pkey PRIMARY KEY (${t})`), l += ");", l;
2275
2279
  }
2276
2280
  );
2277
2281
  }
2278
- const Ar = {
2282
+ const Tr = {
2279
2283
  position: "absolute",
2280
2284
  top: "50%",
2281
2285
  left: "50%",
@@ -2287,21 +2291,22 @@ const Ar = {
2287
2291
  padding: "15px",
2288
2292
  borderRadius: "8px"
2289
2293
  };
2290
- Dr.propTypes = {
2291
- tableInfo: P.any,
2292
- table: P.any,
2293
- isEditMode: P.bool,
2294
- updateEditMode: P.any,
2295
- tableCompleteInfo: P.any,
2296
- reloadComponents: P.any,
2297
- isCreateTableMode: P.bool,
2298
- isSyncTableMode: P.bool,
2299
- updateCreateTableMode: P.any,
2300
- openDeleteModal: P.bool,
2301
- setOpenDeleteModal: P.func,
2302
- generateRebuildScript: P.func
2294
+ Rr.propTypes = {
2295
+ tableInfo: S.any,
2296
+ table: S.any,
2297
+ isEditMode: S.bool,
2298
+ updateEditMode: S.any,
2299
+ tableCompleteInfo: S.any,
2300
+ reloadComponents: S.any,
2301
+ isCreateTableMode: S.bool,
2302
+ isSyncTableMode: S.bool,
2303
+ updateCreateTableMode: S.any,
2304
+ openDeleteModal: S.bool,
2305
+ setOpenDeleteModal: S.func,
2306
+ generateRebuildScript: S.func,
2307
+ rights: S.any
2303
2308
  };
2304
2309
  export {
2305
- Dr as default
2310
+ Rr as default
2306
2311
  };
2307
- //# sourceMappingURL=TableDetails-BtafRxXb.js.map
2312
+ //# sourceMappingURL=TableDetails-Cc40dEUs.js.map