@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
@@ -0,0 +1,615 @@
1
+ import { generateUUID as h } from "@/utils/UUIDgenerator";
2
+ import { DASHBOARD_COMPONENT_TYPES as u, LEGACY_BOTTOM_NAVIGATION_TAB_DEFAULTS as R, BOTTOM_NAV_TAB_TYPES as b, DASHBOARD_ROOT_DROP_ZONE as S, DASHBOARD_ALLOWED_CHILDREN as w, DASHBOARD_LAYOUT_STYLE_DEFAULTS as X, MOBILE_ACTION_TYPES as E, DEFAULT_BACKGROUND_OPACITY as V, CALL_TO_ACTION_TYPE_OPTIONS as G, CALL_TO_ACTION_TYPES as J } from "@/utils/FormConstants";
3
+ import { extractPlaceholderKeys as Q } from "@/utils/PlaceholderUtil";
4
+ const It = (t) => t ? `url("data:image/svg+xml;utf8,${encodeURIComponent(t)}")` : "none", _ = (t) => {
5
+ const e = t || {}, n = G.includes(e.linkType) ? e.linkType : G[0], i = J[n], r = {
6
+ linkType: n,
7
+ baseUrl: e.baseUrl || i.defaultBaseUrl || ""
8
+ };
9
+ if (i.valueKind !== "NONE" && (r.value = e.value || "", r.valueType = e.valueType || ""), i.requiresCountryCode) {
10
+ const o = e.countryCodeType === "DYNAMIC" ? "DYNAMIC" : "STATIC";
11
+ r.countryCodeType = o, o === "DYNAMIC" ? (r.countryCodeValue = e.countryCodeValue || "", r.countryCodeValueType = e.countryCodeValueType || "") : r.countryCode = e.countryCode || "";
12
+ }
13
+ (i.params || []).forEach((o) => {
14
+ r[o.key] = e[o.key] || "", o.kind === "EMAIL_LIST" && (r[`${o.key}ValueType`] = e[`${o.key}ValueType`] || "");
15
+ }), i.paramsKind === "DYNAMIC" && (r.customParams = (e.customParams || []).map((o) => {
16
+ const a = (o == null ? void 0 : o.kind) === "TEMPLATE" ? "TEMPLATE" : "VALUE";
17
+ return a === "TEMPLATE" ? { key: (o == null ? void 0 : o.key) || "", kind: a, text: (o == null ? void 0 : o.text) || "" } : { key: (o == null ? void 0 : o.key) || "", kind: a, value: (o == null ? void 0 : o.value) || "", valueType: (o == null ? void 0 : o.valueType) || "" };
18
+ }));
19
+ const s = [
20
+ ...(i.params || []).filter((o) => o.kind === "TEMPLATE").map((o) => r[o.key]),
21
+ ...(r.customParams || []).filter((o) => o.kind === "TEMPLATE").map((o) => o.text)
22
+ ], c = [];
23
+ return s.forEach((o) => {
24
+ Q(o).forEach((a) => {
25
+ c.includes(a) || c.push(a);
26
+ });
27
+ }), c.length > 0 && (r.placeholders = {}, r.placeholdersType = {}, c.forEach((o) => {
28
+ var a, y;
29
+ r.placeholders[o] = ((a = e.placeholders) == null ? void 0 : a[o]) || "", r.placeholdersType[o] = ((y = e.placeholdersType) == null ? void 0 : y[o]) || "";
30
+ })), r;
31
+ }, z = (t) => t === E.CALL_TO_ACTION || t === E.NONE ? t : E.NAVIGATE, Y = (t, e, n) => t === E.NONE ? {} : t === E.CALL_TO_ACTION ? { callToAction: _(n) } : { navigation: ht(e) }, Lt = (t) => {
32
+ var n;
33
+ const e = (n = t == null ? void 0 : t.bottomNavigation) == null ? void 0 : n.items;
34
+ return !Array.isArray(e) || e.length === 0 ? !0 : e.some((i) => !(i != null && i.tabType));
35
+ }, Rt = (t) => {
36
+ var y;
37
+ if (!t || typeof t != "object") return t;
38
+ const n = (Array.isArray((y = t == null ? void 0 : t.bottomNavigation) == null ? void 0 : y.items) ? t.bottomNavigation.items : []).reduce((d, l) => (l != null && l.id && (d[l.id] = l), d), {}), i = Object.keys(R), r = i.filter(
39
+ (d) => n[d] || Object.prototype.hasOwnProperty.call(t, d)
40
+ ), s = r.length > 0 ? r : i, c = { ...t }, o = s.reduce((d, l) => (d[l] = h(), d), {});
41
+ s.forEach((d) => {
42
+ delete c[d];
43
+ });
44
+ const a = s.map((d, l) => {
45
+ const T = n[d] || {}, A = R[d];
46
+ return {
47
+ id: o[d],
48
+ legacyId: d,
49
+ label: T.label || A.label,
50
+ iconName: T.iconName || T.iconDocumentUuid || A.iconName,
51
+ displayOrder: T.displayOrder || l + 1,
52
+ visible: T.visible !== !1,
53
+ tabType: A.tabType,
54
+ showBottomNavigation: T.showBottomNavigation ?? A.tabType !== b.MENU
55
+ };
56
+ });
57
+ return s.forEach((d) => {
58
+ const l = t[d];
59
+ if (!l) return;
60
+ const T = o[d];
61
+ if (d === "familyManagement") {
62
+ c[T] = {
63
+ active: l.active,
64
+ tabType: b.MENU,
65
+ feature: null
66
+ };
67
+ return;
68
+ }
69
+ if (d === "programs") {
70
+ const A = Array.isArray(l.features) ? l.features : [];
71
+ c[T] = {
72
+ active: l.active,
73
+ tabType: b.LAYOUT,
74
+ layout: A.length ? [
75
+ {
76
+ type: u.SECTION,
77
+ id: `node-${h()}`,
78
+ children: A.map((f) => ({
79
+ type: u.FEATURE,
80
+ id: f.id,
81
+ navigationAction: f.navigationAction || "",
82
+ pageParams: f.pageParams || []
83
+ }))
84
+ }
85
+ ] : []
86
+ };
87
+ } else
88
+ c[T] = {
89
+ active: l.active,
90
+ tabType: b.LAYOUT,
91
+ layout: Array.isArray(l.layout) ? l.layout : []
92
+ };
93
+ }), c.bottomNavigation = {
94
+ items: a
95
+ }, c;
96
+ }, tt = (t) => Object.keys(R).filter(
97
+ (e) => Object.prototype.hasOwnProperty.call(t || {}, e)
98
+ ), vt = (t) => {
99
+ if (!t || typeof t != "object") return null;
100
+ const e = tt(t), n = {};
101
+ return e.forEach((i) => {
102
+ n[i] = t[i];
103
+ }), t.bottomNavigation && (n.bottomNavigation = t.bottomNavigation), n;
104
+ }, j = (t, e = {}) => ({
105
+ id: `node-${h()}`,
106
+ type: t,
107
+ children: [],
108
+ ...X[t] || {},
109
+ ...e
110
+ }), St = (t, e) => ({
111
+ id: t.id,
112
+ name: t.name,
113
+ type: u.FEATURE,
114
+ instanceId: `${e || "DASHBOARD"}_${t.id}_${h()}`,
115
+ icon: {
116
+ id: `svg-icon-${t.id}`,
117
+ content: t.icon,
118
+ type: "svg"
119
+ }
120
+ }), Z = (t, e) => {
121
+ var i, r, s, c;
122
+ if (!t || t.type !== u.FEATURE_CARD || !e)
123
+ return t;
124
+ const n = e.name || e.menuName || e.title || ((i = e.content) == null ? void 0 : i.title) || "";
125
+ return {
126
+ ...t,
127
+ content: {
128
+ ...t.content || {},
129
+ title: n,
130
+ subTitle: ""
131
+ },
132
+ icon: {
133
+ icon: "",
134
+ iconsvg: ((r = e.icon) == null ? void 0 : r.content) || ((s = e.icon) == null ? void 0 : s.svg) || ((c = e.icon) == null ? void 0 : c.iconsvg) || ""
135
+ }
136
+ };
137
+ }, _t = (t) => !t || t.type !== u.FEATURE_CARD ? t : {
138
+ ...t,
139
+ content: {
140
+ ...t.content || {},
141
+ title: "",
142
+ subTitle: ""
143
+ },
144
+ icon: {
145
+ icon: "",
146
+ iconsvg: ""
147
+ }
148
+ }, Dt = (t, e, n = null, i = null) => {
149
+ var o, a, y;
150
+ const r = w[t] || [], s = i || e, c = s === "FEATURE_CARD" ? "Feature Card" : s === "SECTION" ? "Section" : s === "ROW" || s === "COLUMN" ? "Card Stack" : s === "FEATURE" ? "Feature" : s === "SEARCH_BAR" ? "Search Bar" : s === "CAROUSEL" ? "Image Carousel" : s === "DIVIDER" ? "Divider" : s === "TEXT" ? "Text Heading" : s;
151
+ if (n) {
152
+ if (t === u.ROW && ((o = n.style) != null && o.height))
153
+ return `Cannot place ${c} inside a horizontal spacer.`;
154
+ if (t === u.COLUMN && ((a = n.style) != null && a.width))
155
+ return `Cannot place ${c} inside a vertical spacer.`;
156
+ }
157
+ return r.includes(e) ? t === u.FEATURE_CARD && e === u.FEATURE && ((y = n == null ? void 0 : n.children) != null && y.some(
158
+ (d) => d.type === u.FEATURE
159
+ )) ? "A Feature Card can only contain one feature." : t === u.ROW && ((n == null ? void 0 : n.children) || []).length >= 4 ? "This card stack can contain a maximum of 4 items." : t === u.COLUMN && e === u.COLUMN && ((n == null ? void 0 : n.children) || []).filter(
160
+ (d) => d.type === u.COLUMN
161
+ ).length >= 4 ? "This container can contain a maximum of 4 items." : "" : e === u.SECTION ? `${c} can only be placed directly inside the layout.` : e === u.DIVIDER ? `${c} can only be placed inside a Section or Card Stack or direcly inside the layout.` : e === u.CAROUSEL ? `${c} can only be placed directly inside the layout.` : e === u.SEARCH_BAR ? `${c} can only be placed directly inside the layout.` : e === u.FEATURE_CARD ? `${c} can only be placed inside a Section or Card Stack.` : e === u.ROW ? `${c} can only be placed inside a Section or directly inside the layout.` : e === u.COLUMN ? `${c} can only be placed inside a Section or directly inside the layout.` : e === u.FEATURE ? `${c} can only be assigned to a Feature Card or Section or card stack.` : e === u.TEXT ? `${c} can only be placed inside a Section or directly inside the layout.` : `${c} cannot be placed in this container.`;
162
+ }, v = (t, e) => {
163
+ for (const n of t || []) {
164
+ if (n.id === e || n.instanceId === e) return n;
165
+ const i = v(n.children, e);
166
+ if (i) return i;
167
+ }
168
+ return null;
169
+ }, et = (t, e, n = { id: S, type: "HOME", node: null }) => {
170
+ for (const i of t || []) {
171
+ if (i.id === e || i.instanceId === e) return n;
172
+ const r = et(i.children || [], e, {
173
+ id: i.instanceId || i.id,
174
+ type: i.type,
175
+ node: i
176
+ });
177
+ if (r) return r;
178
+ }
179
+ return null;
180
+ }, I = (t, e) => (t || []).map((n) => {
181
+ const i = e(n);
182
+ return i.children ? {
183
+ ...i,
184
+ children: I(i.children, e)
185
+ } : i;
186
+ }), nt = (t, e, n) => e === S ? [...t || [], n] : I(t, (i) => {
187
+ if (i.id === e || i.instanceId === e) {
188
+ let r = {
189
+ ...i,
190
+ children: [...i.children || [], n]
191
+ };
192
+ return r.type === u.FEATURE_CARD && n.type === u.FEATURE && (r = Z(r, n)), r;
193
+ }
194
+ return i;
195
+ }), it = (t, e) => (t || []).filter((n) => n.id !== e && n.instanceId !== e).map((n) => {
196
+ const i = it(n.children, e);
197
+ return {
198
+ ...n,
199
+ children: i
200
+ };
201
+ }), Ut = (t, e, n) => I(
202
+ t,
203
+ (i) => i.id === e || i.instanceId === e ? n(i) : i
204
+ ), Mt = (t, e) => {
205
+ const n = (s) => {
206
+ const c = { ...s, id: `node-${h()}` };
207
+ return c.instanceId && (c.instanceId = `DASHBOARD_DUP_${h()}`), c.children && (c.children = c.children.map(n)), c;
208
+ };
209
+ let i = !1;
210
+ const r = (s) => {
211
+ let c = !1;
212
+ const o = [];
213
+ for (const a of s)
214
+ if (o.push(a), !i && (a.id === e || a.instanceId === e))
215
+ i = !0, c = !0, o.push(n(a));
216
+ else if (a.children) {
217
+ const y = r(a.children);
218
+ y !== a.children && (c = !0, o[o.length - 1] = { ...a, children: y });
219
+ }
220
+ return c ? o : s;
221
+ };
222
+ return r(t || []);
223
+ }, N = (t) => {
224
+ var e, n;
225
+ return ((e = t == null ? void 0 : t.sticky) == null ? void 0 : e.position) === "TOP" || ((n = t == null ? void 0 : t.sticky) == null ? void 0 : n.position) === "BOTTOM" ? t.sticky.position : "FLOW";
226
+ }, rt = (t) => {
227
+ const e = t || [], n = e.filter((s) => N(s) === "TOP"), i = e.filter((s) => N(s) === "BOTTOM");
228
+ if (n.length === 0 && i.length === 0) return e;
229
+ const r = e.filter((s) => N(s) === "FLOW");
230
+ return [...n, ...r, ...i];
231
+ }, q = (t, e, n) => {
232
+ const i = N(t[e]);
233
+ for (let r = e + n; r >= 0 && r < t.length; r += n)
234
+ if (N(t[r]) === i) return r;
235
+ return -1;
236
+ }, kt = (t, e) => {
237
+ const n = (i) => {
238
+ const r = i.findIndex((a) => a.id === e || a.instanceId === e), s = r > 0 ? q(i, r, -1) : -1;
239
+ if (s >= 0) {
240
+ const a = [...i];
241
+ return [a[s], a[r]] = [a[r], a[s]], a;
242
+ }
243
+ let c = !1;
244
+ const o = i.map((a) => {
245
+ if (a.children) {
246
+ const y = n(a.children);
247
+ if (y !== a.children)
248
+ return c = !0, { ...a, children: y };
249
+ }
250
+ return a;
251
+ });
252
+ return c ? o : i;
253
+ };
254
+ return n(t || []);
255
+ }, Ft = (t, e) => {
256
+ const n = (i) => {
257
+ const r = i.findIndex((a) => a.id === e || a.instanceId === e), s = r >= 0 && r < i.length - 1 ? q(i, r, 1) : -1;
258
+ if (s >= 0) {
259
+ const a = [...i];
260
+ return [a[r], a[s]] = [a[s], a[r]], a;
261
+ }
262
+ let c = !1;
263
+ const o = i.map((a) => {
264
+ if (a.children) {
265
+ const y = n(a.children);
266
+ if (y !== a.children)
267
+ return c = !0, { ...a, children: y };
268
+ }
269
+ return a;
270
+ });
271
+ return c ? o : i;
272
+ };
273
+ return n(t || []);
274
+ }, ot = (t) => (t == null ? void 0 : t.instanceId) || (t == null ? void 0 : t.id), D = (t, e) => {
275
+ let n = null;
276
+ return { nodes: (t || []).reduce((r, s) => {
277
+ if (s.id === e || s.instanceId === e)
278
+ return n = s, r;
279
+ const c = D(s.children || [], e);
280
+ if (c.removedNode) {
281
+ n = c.removedNode;
282
+ let o = { ...s, children: c.nodes };
283
+ return r.push(o), r;
284
+ }
285
+ return r.push(s), r;
286
+ }, []), removedNode: n };
287
+ }, U = (t, e, n) => {
288
+ let i = !1;
289
+ return { nodes: (t || []).reduce((s, c) => {
290
+ if (c.id === e || c.instanceId === e)
291
+ return s.push(n, c), i = !0, s;
292
+ const o = U(
293
+ c.children || [],
294
+ e,
295
+ n
296
+ );
297
+ return o.didInsert ? (i = !0, s.push({ ...c, children: o.nodes }), s) : (s.push(c), s);
298
+ }, []), didInsert: i };
299
+ }, M = (t, e) => t ? t.id === e || t.instanceId === e ? !0 : (t.children || []).some((n) => M(n, e)) : !1, st = (t, e) => {
300
+ const n = ot(e);
301
+ return I(
302
+ t,
303
+ (i) => i.id === n || i.instanceId === n ? e : i
304
+ );
305
+ }, Bt = (t, e, n) => {
306
+ const i = U(t, e, n);
307
+ return i.didInsert ? i.nodes : t;
308
+ }, Pt = (t, e, n) => {
309
+ const { nodes: i, removedNode: r } = D(
310
+ t,
311
+ e
312
+ );
313
+ return !r || n !== S && M(r, n) ? t : nt(i, n, r);
314
+ }, xt = (t, e, n) => {
315
+ if (e === n) return t;
316
+ const i = v(t, e), r = v(t, n);
317
+ if (!i || !r || M(i, n))
318
+ return t;
319
+ const { nodes: s, removedNode: c } = D(
320
+ t,
321
+ e
322
+ );
323
+ if (!c) return t;
324
+ const o = U(s, n, c);
325
+ return o.didInsert ? o.nodes : st(s, i);
326
+ }, ct = (t) => {
327
+ var d, l, T;
328
+ if (t.contentLayout) return t;
329
+ const e = ((l = (d = t.style) == null ? void 0 : d.contentAlignment) == null ? void 0 : l.toUpperCase()) || "LEFT", n = ((T = t.style) == null ? void 0 : T.layoutType) === "HORIZONTAL", i = e, r = i === "START" ? "LEFT" : i === "END" ? "RIGHT" : i === "CENTER" ? "CENTER" : "LEFT", s = "MIDDLE", c = {
330
+ ICON: i === "CENTER" || i === "RIGHT" ? { horizontal: r, vertical: s } : { horizontal: "LEFT", vertical: "MIDDLE" },
331
+ TITLE: i === "CENTER" || i === "RIGHT" ? { horizontal: r, vertical: s } : { horizontal: "CENTER", vertical: "MIDDLE" },
332
+ SUBTITLE: i === "CENTER" || i === "RIGHT" ? { horizontal: r, vertical: s } : { horizontal: "LEFT", vertical: "BOTTOM" },
333
+ BUTTON: { horizontal: "RIGHT", vertical: "MIDDLE" }
334
+ }, o = {};
335
+ ["ICON", "TITLE", "SUBTITLE", "BUTTON"].forEach((A) => {
336
+ const f = c[A], p = `${f.horizontal}_${f.vertical}`;
337
+ o[p] || (o[p] = {
338
+ position: f,
339
+ items: []
340
+ }), o[p].items.push(A);
341
+ });
342
+ const y = Object.values(o).filter((A) => A.items.length > 0).map((A) => (A.items.length > 1 && (A.alignment = n ? "HORIZONTAL" : "VERTICAL", A.spacing = n ? 12 : 4), A));
343
+ return {
344
+ ...t,
345
+ contentLayout: y
346
+ };
347
+ }, at = (t) => {
348
+ var c;
349
+ const e = t.cta;
350
+ if (!e || e.type === void 0 && (!e.button || e.button.buttonAction)) return t;
351
+ let i, r;
352
+ if ((c = e.button) != null && c.style)
353
+ i = e.button.style, r = e.button.buttonAction || e.button.action;
354
+ else if (e.button) {
355
+ const { actionType: o, navigation: a, callToAction: y, ...d } = e.button;
356
+ i = d, r = o !== void 0 || a !== void 0 || y !== void 0 ? { actionType: o, navigation: a, callToAction: y } : void 0;
357
+ } else if (e.type === "BUTTON") {
358
+ const { navigation: o, ...a } = e;
359
+ delete a.type, i = a, r = o !== void 0 ? { actionType: E.NAVIGATE, navigation: o } : void 0;
360
+ }
361
+ const s = e.cardAction || (e.callToActionEnabled || e.callToAction ? {
362
+ actionType: e.callToActionEnabled ? E.CALL_TO_ACTION : E.NAVIGATE,
363
+ callToAction: e.callToAction
364
+ } : { actionType: E.NAVIGATE });
365
+ return {
366
+ ...t,
367
+ ...e.type === "ARROW" ? { showLeadingArrow: t.showLeadingArrow ?? !0 } : {},
368
+ cta: {
369
+ cardAction: s,
370
+ ...i ? { button: { style: i, buttonAction: r || { actionType: E.NAVIGATE } } } : {}
371
+ }
372
+ };
373
+ }, lt = (t) => {
374
+ var r, s, c, o, a, y, d, l;
375
+ const e = t.foreground;
376
+ if (!e || !e.lightMode && !e.darkMode) return t;
377
+ const n = !!((s = (r = t.style) == null ? void 0 : r.titleColor) != null && s.lightMode || (o = (c = t.style) == null ? void 0 : c.titleColor) != null && o.darkMode), i = !!((y = (a = t.style) == null ? void 0 : a.subtitleColor) != null && y.lightMode || (l = (d = t.style) == null ? void 0 : d.subtitleColor) != null && l.darkMode);
378
+ return n && i ? t : {
379
+ ...t,
380
+ style: {
381
+ ...t.style || {},
382
+ titleColor: n ? t.style.titleColor : { ...e },
383
+ subtitleColor: i ? t.style.subtitleColor : { ...e }
384
+ }
385
+ };
386
+ }, ut = (t) => {
387
+ const e = t.background;
388
+ if (!e) return t;
389
+ const n = (s) => typeof s == "string" && s.length > 0, i = n(e.gradientStartColor), r = n(e.gradientEndColor);
390
+ return !i && !r ? t : {
391
+ ...t,
392
+ background: {
393
+ ...e,
394
+ ...i ? {
395
+ gradientStartColor: {
396
+ lightMode: e.gradientStartColor,
397
+ darkMode: e.gradientStartColor
398
+ }
399
+ } : {},
400
+ ...r ? {
401
+ gradientEndColor: {
402
+ lightMode: e.gradientEndColor,
403
+ darkMode: e.gradientEndColor
404
+ }
405
+ } : {}
406
+ }
407
+ };
408
+ }, dt = (t) => {
409
+ var n;
410
+ if (((n = t.background) == null ? void 0 : n.type) !== "GRADIENT" || t.background.opacity === void 0) return t;
411
+ const e = { ...t.background };
412
+ return delete e.opacity, { ...t, background: e };
413
+ }, Tt = (t, e) => Array.isArray(t) ? t.map((n) => {
414
+ var s, c;
415
+ if (n.type === u.SECTION && Array.isArray(n.features)) {
416
+ const o = `node-${h()}`;
417
+ return j(u.SECTION, {
418
+ id: o,
419
+ title: n.title || "Section",
420
+ header: {
421
+ ...X[u.SECTION].header,
422
+ title: n.title || "Section"
423
+ },
424
+ children: n.features.map((a) => e(a, o)).filter(Boolean)
425
+ });
426
+ }
427
+ if (n.type === u.FEATURE)
428
+ return e(n, "DASHBOARD");
429
+ if (!n.type) return null;
430
+ const i = Tt(
431
+ n.children || [],
432
+ e
433
+ );
434
+ let r = j(n.type, {
435
+ ...n,
436
+ id: n.id || `node-${h()}`,
437
+ children: i
438
+ });
439
+ if (r = ut(r), r = dt(r), n.type === u.FEATURE_CARD) {
440
+ const o = (i || []).find(
441
+ (a) => a.type === u.FEATURE
442
+ );
443
+ o && !((s = r.content) != null && s.title) && !((c = r.content) != null && c.customTitle) && (r = Z(r, o)), r = ct(r), r = at(r), r = lt(r);
444
+ }
445
+ return r;
446
+ }).filter(Boolean) : [], yt = (t, e, n) => {
447
+ var s;
448
+ const i = {
449
+ type: u.FEATURE,
450
+ id: t.id,
451
+ menuName: t.name
452
+ }, r = t.navigationAction || ((s = n == null ? void 0 : n[String(t.id)]) == null ? void 0 : s.formCode) || "";
453
+ return r && (i.navigationAction = r), Array.isArray(t.pageParams) && t.pageParams.length > 0 && (i.pageParams = t.pageParams), e !== u.FEATURE_CARD && (i.actionType = t.actionType === E.CALL_TO_ACTION ? E.CALL_TO_ACTION : E.NAVIGATE, i.actionType === E.CALL_TO_ACTION && (i.callToAction = _(t.callToAction))), i;
454
+ }, At = (t) => (t.children || []).find(
455
+ (e) => e.type === u.FEATURE
456
+ ), Et = (t, e) => String(e || "").trim() || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.menuName) || "", ft = (t, e) => String(e || "").trim() || (t == null ? void 0 : t.subTitle) || (t == null ? void 0 : t.subtitle) || "", pt = (t) => {
457
+ var i, r, s, c;
458
+ const e = ((i = t.icon) == null ? void 0 : i.icon) || ((r = t.icon) == null ? void 0 : r.iconName) || "", n = ((s = t.icon) == null ? void 0 : s.iconsvg) || ((c = t.icon) == null ? void 0 : c.svg) || "";
459
+ return e ? { icon: e, iconsvg: "" } : n ? { icon: "", iconsvg: n } : { icon: "", iconsvg: "" };
460
+ }, ht = (t) => {
461
+ const e = typeof t == "object" && t !== null, n = e ? t.id ?? t.action : t;
462
+ if (n === "" || n === null || n === void 0) return "";
463
+ const i = Number(n), r = Number.isNaN(i) ? n : i, s = {
464
+ type: u.FEATURE,
465
+ id: r,
466
+ menuName: e && t.menuName || ""
467
+ };
468
+ return e && t.navigationAction && (s.navigationAction = t.navigationAction), e && Array.isArray(t.pageParams) && t.pageParams.length > 0 && (s.pageParams = t.pageParams), s.actionType = E.NAVIGATE, s;
469
+ }, W = (t, e) => {
470
+ const n = typeof t == "string" && t ? { lightMode: t, darkMode: t } : t || {};
471
+ return {
472
+ lightMode: n.lightMode || e,
473
+ darkMode: n.darkMode || e
474
+ };
475
+ }, K = (t = {}) => {
476
+ const e = { ...t };
477
+ return e.type === "GRADIENT" ? (delete e.solidLightModeColor, delete e.solidDarkModeColor, delete e.solidColor, delete e.opacity, e.gradientType = e.gradientType || "LINEAR", e.direction = e.direction || "LEFT_TO_RIGHT", e.gradientStartColor = W(
478
+ e.gradientStartColor,
479
+ "#ffffff"
480
+ ), e.gradientEndColor = W(
481
+ e.gradientEndColor,
482
+ "#e5e7eb"
483
+ ), e.gradientStartOpacity = e.gradientStartOpacity ?? V, e.gradientEndOpacity = e.gradientEndOpacity ?? V) : (delete e.gradientStartColor, delete e.gradientEndColor, delete e.gradientType, delete e.direction, delete e.gradientStartOpacity, delete e.gradientEndOpacity, delete e.solidColor), e;
484
+ }, mt = (t, e, n) => rt(t).map((i) => {
485
+ var T, A, f, p, k, F, B, P, x, $;
486
+ if (i.type === u.FEATURE)
487
+ return yt(i, e, n);
488
+ const { id: r, instanceId: s, icon: c, name: o, features: a, title: y, ...d } = i, l = {
489
+ ...d,
490
+ children: mt(i.children || [], i.type, n)
491
+ };
492
+ if (i.type === u.SECTION && (l.background = K(
493
+ d.background
494
+ ), (T = l.header) != null && T.color)) {
495
+ const { color: m, ...g } = l.header;
496
+ l.header = g;
497
+ }
498
+ if (i.type === u.FEATURE_CARD) {
499
+ const m = At(i);
500
+ l.content = {
501
+ ...d.content || {},
502
+ title: Et(
503
+ m,
504
+ ((A = d.content) == null ? void 0 : A.title) || ((f = d.content) == null ? void 0 : f.customTitle)
505
+ ),
506
+ subTitle: ft(
507
+ m,
508
+ ((p = d.content) == null ? void 0 : p.subTitle) || ((k = d.content) == null ? void 0 : k.customSubtitle)
509
+ )
510
+ }, l.icon = pt(i), l.background = K(
511
+ d.background
512
+ ), l.style && (delete l.style.flex, delete l.style.layoutType, delete l.style.contentAlignment), delete l.content.customTitle, delete l.content.customSubtitle, delete l.navigation;
513
+ const g = ((F = l.cta) == null ? void 0 : F.cardAction) || {}, C = (B = l.cta) == null ? void 0 : B.button, L = !!C;
514
+ let O = E.NAVIGATE;
515
+ if (m || (O = g.actionType === E.CALL_TO_ACTION ? E.CALL_TO_ACTION : E.NONE), l.cta = {
516
+ cardAction: {
517
+ actionType: O,
518
+ ...O === E.CALL_TO_ACTION ? { callToAction: _(g.callToAction) } : {}
519
+ }
520
+ }, L) {
521
+ const H = z((P = C.buttonAction) == null ? void 0 : P.actionType);
522
+ l.cta.button = {
523
+ style: C.style || {},
524
+ buttonAction: {
525
+ actionType: H,
526
+ ...Y(
527
+ H,
528
+ (x = C.buttonAction) == null ? void 0 : x.navigation,
529
+ ($ = C.buttonAction) == null ? void 0 : $.callToAction
530
+ )
531
+ }
532
+ };
533
+ }
534
+ }
535
+ return i.type === u.CAROUSEL && (delete l.children, delete l.navigation, l.images = (i.images || []).map((m) => {
536
+ const g = z(m.actionType), { navigation: C, callToAction: L, ...O } = m;
537
+ return {
538
+ ...O,
539
+ actionType: g,
540
+ ...Y(g, C, L)
541
+ };
542
+ })), i.type === u.TEXT && delete l.children, [
543
+ u.SEARCH_BAR,
544
+ u.DIVIDER
545
+ ].includes(i.type) && delete l.children, i.type === u.DIVIDER && l.style && (delete l.style.color, delete l.style.marginVertical), l;
546
+ }), gt = (t) => t ? (Array.isArray(t) ? t : typeof t == "object" ? [t] : []).flatMap((n) => {
547
+ var s;
548
+ if (!n || typeof n != "object") return [];
549
+ if (n.type === u.FEATURE) {
550
+ const c = n.menuName || n.name || n.title || ((s = n.content) == null ? void 0 : s.title);
551
+ return c ? [c] : [];
552
+ }
553
+ const i = n.children || n.features || n.layout || n.tabs || n.menus || (n.type ? [] : Object.values(n)), r = gt(i);
554
+ return n.menuName ? [n.menuName, ...r] : r;
555
+ }) : [], Ct = /* @__PURE__ */ new Set([
556
+ u.SECTION,
557
+ u.ROW,
558
+ u.COLUMN
559
+ ]), $t = (t) => {
560
+ const e = [], n = (i) => {
561
+ var r, s, c, o, a, y, d, l;
562
+ for (const T of i || []) {
563
+ if (Ct.has(T.type) && !(T.children || []).length) {
564
+ const A = T.type === u.ROW && ((r = T.style) == null ? void 0 : r.height), f = T.type === u.COLUMN && ((s = T.style) == null ? void 0 : s.width);
565
+ !A && !f && e.push(T);
566
+ continue;
567
+ }
568
+ if (T.type === u.FEATURE_CARD) {
569
+ const A = (T.children || []).some(
570
+ (p) => p.type === u.FEATURE
571
+ ), f = ((c = T.content) == null ? void 0 : c.customTitle) || ((o = T.content) == null ? void 0 : o.customSubtitle) || ((a = T.content) == null ? void 0 : a.title) || ((y = T.content) == null ? void 0 : y.subTitle) || ((d = T.icon) == null ? void 0 : d.iconsvg) || ((l = T.icon) == null ? void 0 : l.icon);
572
+ if (!A && !f) {
573
+ e.push(T);
574
+ continue;
575
+ }
576
+ }
577
+ if (T.type === u.CAROUSEL && !(T.images || []).length) {
578
+ e.push(T);
579
+ continue;
580
+ }
581
+ n(T.children || []);
582
+ }
583
+ };
584
+ return n(t), e;
585
+ };
586
+ export {
587
+ Z as A,
588
+ j as a,
589
+ et as b,
590
+ gt as c,
591
+ xt as d,
592
+ vt as e,
593
+ v as f,
594
+ Dt as g,
595
+ Pt as h,
596
+ Lt as i,
597
+ Bt as j,
598
+ Tt as k,
599
+ $t as l,
600
+ Rt as m,
601
+ mt as n,
602
+ rt as o,
603
+ Mt as p,
604
+ kt as q,
605
+ it as r,
606
+ It as s,
607
+ Ft as t,
608
+ Ut as u,
609
+ nt as v,
610
+ St as w,
611
+ z as x,
612
+ Y as y,
613
+ _t as z
614
+ };
615
+ //# sourceMappingURL=dashboardLayoutUtils--xUnoKPa.js.map