udp-react-enterprise-component-library 25.18.3-beta.1 → 25.18.3-beta.2

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 (457) hide show
  1. package/dist/{ActionProvider-BGugOmjV.js → ActionProvider-B1-CUDQT.js} +7 -7
  2. package/dist/{ActionProvider-BGugOmjV.js.map → ActionProvider-B1-CUDQT.js.map} +1 -1
  3. package/dist/{ActionSplitScreen-D6_7PlK-.js → ActionSplitScreen-DjSUjE6M.js} +8 -8
  4. package/dist/{ActionSplitScreen-D6_7PlK-.js.map → ActionSplitScreen-DjSUjE6M.js.map} +1 -1
  5. package/dist/{ActionWrapper-DnP7lGDq.js → ActionWrapper-BwnB_Qw4.js} +14 -14
  6. package/dist/{ActionWrapper-DnP7lGDq.js.map → ActionWrapper-BwnB_Qw4.js.map} +1 -1
  7. package/dist/{ActionsRenderer-DbrPKZ1o.js → ActionsRenderer-DbMlilVW.js} +2 -2
  8. package/dist/{ActionsRenderer-DbrPKZ1o.js.map → ActionsRenderer-DbMlilVW.js.map} +1 -1
  9. package/dist/{AggregateChip-BF7S3x_K.js → AggregateChip-Dm3js2LK.js} +5 -5
  10. package/dist/{AggregateChip-BF7S3x_K.js.map → AggregateChip-Dm3js2LK.js.map} +1 -1
  11. package/dist/{AmbientChipButton-DYAYXuKp.js → AmbientChipButton-XFBUrwCb.js} +2 -2
  12. package/dist/AmbientChipButton-XFBUrwCb.js.map +1 -0
  13. package/dist/{AmbientGridTemplate-D1TMpzxb.js → AmbientGridTemplate-UXA3KgIL.js} +7 -7
  14. package/dist/{AmbientGridTemplate-D1TMpzxb.js.map → AmbientGridTemplate-UXA3KgIL.js.map} +1 -1
  15. package/dist/{AmbientTokenButton-B53E25r2.js → AmbientTokenButton-F3Wg-88V.js} +2 -2
  16. package/dist/AmbientTokenButton-F3Wg-88V.js.map +1 -0
  17. package/dist/{AppMenu-oGJtO6Vp.js → AppMenu-5JJDLddA.js} +3 -3
  18. package/dist/{AppMenu-oGJtO6Vp.js.map → AppMenu-5JJDLddA.js.map} +1 -1
  19. package/dist/{AuthProvider-J79EBNDc.js → AuthProvider-DtiKAaWb.js} +5 -5
  20. package/dist/{AuthProvider-J79EBNDc.js.map → AuthProvider-DtiKAaWb.js.map} +1 -1
  21. package/dist/{BarChartWidget-u-8fxMn5.js → BarChartWidget-DDsXC3pz.js} +3 -3
  22. package/dist/BarChartWidget-DDsXC3pz.js.map +1 -0
  23. package/dist/{BaseTreeMenu-Dg8MW4TD.js → BaseTreeMenu-CHRy-g7V.js} +4 -4
  24. package/dist/{BaseTreeMenu-Dg8MW4TD.js.map → BaseTreeMenu-CHRy-g7V.js.map} +1 -1
  25. package/dist/{BioCardWrapper-D1ZOHyA4.js → BioCardWrapper-CUuubD2U.js} +3 -3
  26. package/dist/{BioCardWrapper-D1ZOHyA4.js.map → BioCardWrapper-CUuubD2U.js.map} +1 -1
  27. package/dist/{BubbleWidget-CMJYN-7J.js → BubbleWidget-Bx4c0P2X.js} +3 -3
  28. package/dist/BubbleWidget-Bx4c0P2X.js.map +1 -0
  29. package/dist/{BulkActionsGridButton-JYgIABWU.js → BulkActionsGridButton-zrOoVMFg.js} +8 -8
  30. package/dist/{BulkActionsGridButton-JYgIABWU.js.map → BulkActionsGridButton-zrOoVMFg.js.map} +1 -1
  31. package/dist/{CardList-B8nTYXo7.js → CardList-mxsKMn2s.js} +6 -6
  32. package/dist/{CardList-B8nTYXo7.js.map → CardList-mxsKMn2s.js.map} +1 -1
  33. package/dist/{ChatBotProvider-CmrKYl2I.js → ChatBotProvider-BgWP6rfO.js} +6 -6
  34. package/dist/{ChatBotProvider-CmrKYl2I.js.map → ChatBotProvider-BgWP6rfO.js.map} +1 -1
  35. package/dist/{ChatContainer-CXzPIP9R.js → ChatContainer-C5pau9eF.js} +2 -2
  36. package/dist/{ChatContainer-CXzPIP9R.js.map → ChatContainer-C5pau9eF.js.map} +1 -1
  37. package/dist/{ChatUDP-DYAsqqXk.js → ChatUDP-rGP1IC_e.js} +2 -2
  38. package/dist/{ChatUDP-DYAsqqXk.js.map → ChatUDP-rGP1IC_e.js.map} +1 -1
  39. package/dist/{CircleButton-CrvnPHDw.js → CircleButton-CwA9EAmx.js} +2 -2
  40. package/dist/{CircleButton-CrvnPHDw.js.map → CircleButton-CwA9EAmx.js.map} +1 -1
  41. package/dist/{CrudBrowserContainer-UJvAMHYL.js → CrudBrowserContainer-4xalY8qW.js} +2 -2
  42. package/dist/{CrudBrowserContainer-UJvAMHYL.js.map → CrudBrowserContainer-4xalY8qW.js.map} +1 -1
  43. package/dist/{CrudForm-C9xMnPoA.js → CrudForm-B9K31dMq.js} +8 -8
  44. package/dist/{CrudForm-C9xMnPoA.js.map → CrudForm-B9K31dMq.js.map} +1 -1
  45. package/dist/{CrudTableSidePanel-D8UYaXhS.js → CrudTableSidePanel-DmC2bKKS.js} +5 -5
  46. package/dist/{CrudTableSidePanel-D8UYaXhS.js.map → CrudTableSidePanel-DmC2bKKS.js.map} +1 -1
  47. package/dist/{DataBrowserContainer-DGEL52Un.js → DataBrowserContainer-zVg6Htb9.js} +10 -10
  48. package/dist/{DataBrowserContainer-DGEL52Un.js.map → DataBrowserContainer-zVg6Htb9.js.map} +1 -1
  49. package/dist/{DensePlotWidget-lJW-uzdQ.js → DensePlotWidget-C3hgu_PW.js} +3 -3
  50. package/dist/DensePlotWidget-C3hgu_PW.js.map +1 -0
  51. package/dist/{DynamicContainerWithMenu-lYZyNyb_.js → DynamicContainerWithMenu-DB27WYKY.js} +2 -2
  52. package/dist/{DynamicContainerWithMenu-lYZyNyb_.js.map → DynamicContainerWithMenu-DB27WYKY.js.map} +1 -1
  53. package/dist/{EntityHeader-CPvUEp7i.js → EntityHeader-CuQJ8F5K.js} +4 -4
  54. package/dist/{EntityHeader-CPvUEp7i.js.map → EntityHeader-CuQJ8F5K.js.map} +1 -1
  55. package/dist/{EntitySideBarContent-Bl_8gI69.js → EntitySideBarContent-DfmL6BdB.js} +2 -2
  56. package/dist/{EntitySideBarContent-Bl_8gI69.js.map → EntitySideBarContent-DfmL6BdB.js.map} +1 -1
  57. package/dist/{ExportSidesheet-eHGdT42e.js → ExportSidesheet-CM6A7I6E.js} +3 -3
  58. package/dist/{ExportSidesheet-eHGdT42e.js.map → ExportSidesheet-CM6A7I6E.js.map} +1 -1
  59. package/dist/{FieldArrayCard-CkVvDF-N.js → FieldArrayCard-vX6wT9RN.js} +13 -13
  60. package/dist/{FieldArrayCard-CkVvDF-N.js.map → FieldArrayCard-vX6wT9RN.js.map} +1 -1
  61. package/dist/{FluentCell-CuJJAwCD.js → FluentCell-BxgROwUy.js} +2 -2
  62. package/dist/{FluentCell-CuJJAwCD.js.map → FluentCell-BxgROwUy.js.map} +1 -1
  63. package/dist/{FluentDataTable-CYNp3-qT.js → FluentDataTable-BLAHPWUk.js} +2 -2
  64. package/dist/{FluentDataTable-CYNp3-qT.js.map → FluentDataTable-BLAHPWUk.js.map} +1 -1
  65. package/dist/{FluentSimpleSelect-BfoxBQj4.js → FluentSimpleSelect-BnXJTE2z.js} +2 -2
  66. package/dist/{FluentSimpleSelect-BfoxBQj4.js.map → FluentSimpleSelect-BnXJTE2z.js.map} +1 -1
  67. package/dist/{GridFunctions-D76ygiH2.js → GridFunctions-quS_QhSZ.js} +4 -4
  68. package/dist/GridFunctions-quS_QhSZ.js.map +1 -0
  69. package/dist/{GridGroupingSidebar-D-ozXbff.js → GridGroupingSidebar-CfXk_nd_.js} +2 -2
  70. package/dist/{GridGroupingSidebar-D-ozXbff.js.map → GridGroupingSidebar-CfXk_nd_.js.map} +1 -1
  71. package/dist/{GroupNode-CZX--ble.js → GroupNode-BVz5rDVG.js} +2 -2
  72. package/dist/{GroupNode-CZX--ble.js.map → GroupNode-BVz5rDVG.js.map} +1 -1
  73. package/dist/{IconRenderer-BEezfZ3N.js → IconRenderer-BKy2VlFt.js} +2 -2
  74. package/dist/{IconRenderer-BEezfZ3N.js.map → IconRenderer-BKy2VlFt.js.map} +1 -1
  75. package/dist/{ImportDataFromFileMapping-Dy1iJMkI.js → ImportDataFromFileMapping-ByNxnvjo.js} +6 -6
  76. package/dist/{ImportDataFromFileMapping-Dy1iJMkI.js.map → ImportDataFromFileMapping-ByNxnvjo.js.map} +1 -1
  77. package/dist/InputFieldTypeEnums-CtR8GR5A.js +14 -0
  78. package/dist/{InputFieldTypeEnums-Mg684vvi.js.map → InputFieldTypeEnums-CtR8GR5A.js.map} +1 -1
  79. package/dist/{Inquiry-D6nWpzu2.js → Inquiry-CsHgJgaV.js} +19 -19
  80. package/dist/{Inquiry-D6nWpzu2.js.map → Inquiry-CsHgJgaV.js.map} +1 -1
  81. package/dist/Inquiry-DjeqfXvY.js +3 -0
  82. package/dist/{InquiryNodeControls-DeK_hTzo.js → InquiryNodeControls-ivQYYK6C.js} +2 -2
  83. package/dist/{InquiryNodeControls-DeK_hTzo.js.map → InquiryNodeControls-ivQYYK6C.js.map} +1 -1
  84. package/dist/{InquirySearchContainer-zxbukV51.js → InquirySearchContainer-Di8nXQP_.js} +6 -6
  85. package/dist/{InquirySearchContainer-zxbukV51.js.map → InquirySearchContainer-Di8nXQP_.js.map} +1 -1
  86. package/dist/{LineGraphWidget-Ly1fmTyr.js → LineGraphWidget-CrPDR99w.js} +3 -3
  87. package/dist/LineGraphWidget-CrPDR99w.js.map +1 -0
  88. package/dist/{MenuPage-KiNfnc7P.js → MenuPage-DiNO7jTV.js} +6 -6
  89. package/dist/{MenuPage-KiNfnc7P.js.map → MenuPage-DiNO7jTV.js.map} +1 -1
  90. package/dist/MenuPage-DiuaPlMe.js +3 -0
  91. package/dist/{MenuProvider-BqEZve2y.js → MenuProvider-CqV76ZaL.js} +3 -3
  92. package/dist/{MenuProvider-BqEZve2y.js.map → MenuProvider-CqV76ZaL.js.map} +1 -1
  93. package/dist/{MttMainTimeline-DbaaXXQv.js → MttMainTimeline-CinommZ-.js} +3 -3
  94. package/dist/{MttMainTimeline-DbaaXXQv.js.map → MttMainTimeline-CinommZ-.js.map} +1 -1
  95. package/dist/{MttSummary-DNc71fHh.js → MttSummary-C9BFDiPS.js} +4 -4
  96. package/dist/{MttSummary-DNc71fHh.js.map → MttSummary-C9BFDiPS.js.map} +1 -1
  97. package/dist/{MyExportsPage-C-pr-R0K.js → MyExportsPage-CvYXdQux.js} +6 -6
  98. package/dist/{MyExportsPage-C-pr-R0K.js.map → MyExportsPage-CvYXdQux.js.map} +1 -1
  99. package/dist/MyExportsPage-zDOtLpTr.js +3 -0
  100. package/dist/{NestedGrid-DAqsZ216.js → NestedGrid-BYfgg6bn.js} +3 -3
  101. package/dist/NestedGrid-BYfgg6bn.js.map +1 -0
  102. package/dist/{NotesScreen-D8-QnWaB.js → NotesScreen-B1Kf1FUL.js} +8 -8
  103. package/dist/{NotesScreen-D8-QnWaB.js.map → NotesScreen-B1Kf1FUL.js.map} +1 -1
  104. package/dist/{NumberOperator-p4HsHHx3.js → NumberOperator-BhGfG6ZY.js} +10 -10
  105. package/dist/{NumberOperator-p4HsHHx3.js.map → NumberOperator-BhGfG6ZY.js.map} +1 -1
  106. package/dist/{OutlookCallback-D3no-Urx.js → OutlookCallback-ChCk_gx1.js} +2 -2
  107. package/dist/{OutlookCallback-D3no-Urx.js.map → OutlookCallback-ChCk_gx1.js.map} +1 -1
  108. package/dist/{PageActionWrapper-Bm6J0thr.js → PageActionWrapper-B2NHh8V9.js} +4 -4
  109. package/dist/{PageActionWrapper-Bm6J0thr.js.map → PageActionWrapper-B2NHh8V9.js.map} +1 -1
  110. package/dist/{PageContainer-ButX_XVS.js → PageContainer-B6aRZIrC.js} +2 -2
  111. package/dist/{PageContainer-ButX_XVS.js.map → PageContainer-B6aRZIrC.js.map} +1 -1
  112. package/dist/{PageRenderer-hxobUKe_.js → PageRenderer-BaE_3AVi.js} +2 -2
  113. package/dist/{PageRenderer-hxobUKe_.js.map → PageRenderer-BaE_3AVi.js.map} +1 -1
  114. package/dist/{PaymentForm-C4IXoROF.js → PaymentForm-u1QxkAwH.js} +5 -5
  115. package/dist/{PaymentForm-C4IXoROF.js.map → PaymentForm-u1QxkAwH.js.map} +1 -1
  116. package/dist/{PowerBIReport-CMrcDCCK.js → PowerBIReport-D4IhLgYA.js} +2 -2
  117. package/dist/{PowerBIReport-CMrcDCCK.js.map → PowerBIReport-D4IhLgYA.js.map} +1 -1
  118. package/dist/{RecentlyLoadedNodesTable-BzvR0L0h.js → RecentlyLoadedNodesTable-Bih97GZe.js} +2 -2
  119. package/dist/{RecentlyLoadedNodesTable-BzvR0L0h.js.map → RecentlyLoadedNodesTable-Bih97GZe.js.map} +1 -1
  120. package/dist/{RecentlyLoadedNodesWidget-7c9IngMR.js → RecentlyLoadedNodesWidget-C_SvOidH.js} +2 -2
  121. package/dist/{RecentlyLoadedNodesWidget-7c9IngMR.js.map → RecentlyLoadedNodesWidget-C_SvOidH.js.map} +1 -1
  122. package/dist/{RemindersCard-C1_GeqUW.js → RemindersCard-DtILCRPZ.js} +4 -4
  123. package/dist/{RemindersCard-C1_GeqUW.js.map → RemindersCard-DtILCRPZ.js.map} +1 -1
  124. package/dist/{RemindersScreen-BDgMIUaq.js → RemindersScreen-CR_7sXWV.js} +8 -8
  125. package/dist/{RemindersScreen-BDgMIUaq.js.map → RemindersScreen-CR_7sXWV.js.map} +1 -1
  126. package/dist/{RemindersWidget-u_d6RoVv.js → RemindersWidget-VugVy-04.js} +7 -7
  127. package/dist/{RemindersWidget-u_d6RoVv.js.map → RemindersWidget-VugVy-04.js.map} +1 -1
  128. package/dist/Reports-ChMzlAeX.js +3 -0
  129. package/dist/{Reports-D6LOvcOA.js → Reports-XnOyqOdW.js} +2 -2
  130. package/dist/{Reports-D6LOvcOA.js.map → Reports-XnOyqOdW.js.map} +1 -1
  131. package/dist/{RequiredFieldsMappingForm-rstcZ1W0.js → RequiredFieldsMappingForm-_Faww_eR.js} +2 -2
  132. package/dist/{RequiredFieldsMappingForm-rstcZ1W0.js.map → RequiredFieldsMappingForm-_Faww_eR.js.map} +1 -1
  133. package/dist/{SearchServiceDatasource-D8egrLwe.js → SearchServiceDatasource-DxoCnnUT.js} +3 -3
  134. package/dist/{SearchServiceDatasource-D8egrLwe.js.map → SearchServiceDatasource-DxoCnnUT.js.map} +1 -1
  135. package/dist/{SearchUtilities-DUW0kaw_.js → SearchUtilities-4D3aArPk.js} +45 -45
  136. package/dist/SearchUtilities-4D3aArPk.js.map +1 -0
  137. package/dist/{Shell-n8SMDgV0.js → Shell-CiVs1HZp.js} +10 -10
  138. package/dist/{Shell-n8SMDgV0.js.map → Shell-CiVs1HZp.js.map} +1 -1
  139. package/dist/{ShortcutContentFinder-BR-Gd55o.js → ShortcutContentFinder-DJveYwAo.js} +6 -6
  140. package/dist/{ShortcutContentFinder-BR-Gd55o.js.map → ShortcutContentFinder-DJveYwAo.js.map} +1 -1
  141. package/dist/{SiteHeader-DaL_Dy45.js → SiteHeader-CwTZVROQ.js} +8 -8
  142. package/dist/{SiteHeader-DaL_Dy45.js.map → SiteHeader-CwTZVROQ.js.map} +1 -1
  143. package/dist/{SparsePlotWidget-DuHbmEom.js → SparsePlotWidget-ZYrmPIXJ.js} +3 -3
  144. package/dist/SparsePlotWidget-ZYrmPIXJ.js.map +1 -0
  145. package/dist/{Statistic-DWW8GxYI.js → Statistic-D_p5eqdf.js} +2 -2
  146. package/dist/{Statistic-DWW8GxYI.js.map → Statistic-D_p5eqdf.js.map} +1 -1
  147. package/dist/{SupportCaseSideSheet-6P8CVloZ.js → SupportCaseSideSheet-B9BxUCym.js} +2 -2
  148. package/dist/{SupportCaseSideSheet-6P8CVloZ.js.map → SupportCaseSideSheet-B9BxUCym.js.map} +1 -1
  149. package/dist/{SupportCaseSideSheet-BKAsjpN1.js → SupportCaseSideSheet-D9IjAIwL.js} +1 -1
  150. package/dist/{TableContainer-B0IAjIA3.js → TableContainer-mo1phK4j.js} +5 -5
  151. package/dist/{TableContainer-B0IAjIA3.js.map → TableContainer-mo1phK4j.js.map} +1 -1
  152. package/dist/{TenantProvider-BeFMHYP8.js → TenantProvider-CBiqIIsu.js} +5 -5
  153. package/dist/{TenantProvider-BeFMHYP8.js.map → TenantProvider-CBiqIIsu.js.map} +1 -1
  154. package/dist/{TreeUtilities-jEhtZNg5.js → TreeUtilities-Iv9nOf-6.js} +4 -4
  155. package/dist/{TreeUtilities-jEhtZNg5.js.map → TreeUtilities-Iv9nOf-6.js.map} +1 -1
  156. package/dist/UI/accordion/index.js +1 -1
  157. package/dist/UI/charts/index.js +1 -1
  158. package/dist/UI/containers/index.js +1 -1
  159. package/dist/UI/dataDisplay/FluentDataTable/FluentCell/index.js +1 -1
  160. package/dist/UI/dataDisplay/FluentDataTable/index.js +1 -1
  161. package/dist/UI/dataDisplay/cardList/index.js +1 -1
  162. package/dist/UI/dataDisplay/entityHeader/index.js +1 -1
  163. package/dist/UI/dataDisplay/index.js +1 -1
  164. package/dist/UI/fileViewer/index.js +1 -1
  165. package/dist/UI/floorplans/index.js +1 -1
  166. package/dist/UI/forms/index.js +3 -3
  167. package/dist/UI/index.js +20 -20
  168. package/dist/UI/inputs/buttons/index.js +2 -2
  169. package/dist/UI/inputs/fieldArrayCard/index.js +1 -1
  170. package/dist/UI/inputs/menus/index.js +1 -1
  171. package/dist/UI/mapLayout/index.js +1 -1
  172. package/dist/UI/mapLayout/ui/index.js +1 -1
  173. package/dist/UI/navigation/index.js +1 -1
  174. package/dist/UI/navigation/menus/index.js +1 -1
  175. package/dist/UI/support/index.js +1 -1
  176. package/dist/UI/surfaces/NestedGrid/index.js +1 -1
  177. package/dist/UI/surfaces/index.js +1 -1
  178. package/dist/UI/templates/deprecated/AmbientGridTemplate/index.js +1 -1
  179. package/dist/UI/templates/deprecated/UdpGridTemplate/index.js +1 -1
  180. package/dist/UI/templates/newGrid/index.js +1 -1
  181. package/dist/UI/templates/ui/index.js +1 -1
  182. package/dist/UI/templates/ui/renderers/index.js +2 -2
  183. package/dist/UI/timeline/fluentTimeline/index.js +1 -1
  184. package/dist/UI/timeline/index.js +1 -1
  185. package/dist/UI/utilityDisplay/alerts/index.js +1 -1
  186. package/dist/UI/utilityDisplay/index.js +5 -5
  187. package/dist/UI/utilityDisplay/utilities/index.js +1 -1
  188. package/dist/UI/widgets/library/BarChartWidget/index.js +1 -1
  189. package/dist/UI/widgets/library/BubbleWidget/index.js +1 -1
  190. package/dist/UI/widgets/library/DensePlotWidget/index.js +1 -1
  191. package/dist/UI/widgets/library/LineGraphWidget/index.js +1 -1
  192. package/dist/UI/widgets/library/RecentlyLoadedNodesWidget/index.js +1 -1
  193. package/dist/UI/widgets/library/RemindersWidget/index.js +1 -1
  194. package/dist/UI/widgets/library/SparsePlotWidget/index.js +1 -1
  195. package/dist/{UdpAlertsContainer-CbiqX1P0.js → UdpAlertsContainer-C9r41A58.js} +5 -5
  196. package/dist/{UdpAlertsContainer-CbiqX1P0.js.map → UdpAlertsContainer-C9r41A58.js.map} +1 -1
  197. package/dist/{UdpAppProvider-DXgzyeHZ.js → UdpAppProvider-DaFJNNnP.js} +4 -4
  198. package/dist/{UdpAppProvider-DXgzyeHZ.js.map → UdpAppProvider-DaFJNNnP.js.map} +1 -1
  199. package/dist/{UdpAuditEvents-CoD2y2CV.js → UdpAuditEvents-SVdK01j4.js} +2 -2
  200. package/dist/{UdpAuditEvents-CoD2y2CV.js.map → UdpAuditEvents-SVdK01j4.js.map} +1 -1
  201. package/dist/{UdpAuditEventsPage-B0yZyLfH.js → UdpAuditEventsPage-B8wDHsxq.js} +9 -9
  202. package/dist/{UdpAuditEventsPage-B0yZyLfH.js.map → UdpAuditEventsPage-B8wDHsxq.js.map} +1 -1
  203. package/dist/UdpAuditEventsPage-bigxgoZ7.js +3 -0
  204. package/dist/{UdpDataBrowserPage-Br0DJTMq.js → UdpDataBrowserPage-DO-d-rsj.js} +14 -14
  205. package/dist/{UdpDataBrowserPage-Br0DJTMq.js.map → UdpDataBrowserPage-DO-d-rsj.js.map} +1 -1
  206. package/dist/{UdpFormsPrivateForm-ip2aj9xl.js → UdpFormsPrivateForm-_yiSaFcM.js} +2 -2
  207. package/dist/{UdpFormsPrivateForm-ip2aj9xl.js.map → UdpFormsPrivateForm-_yiSaFcM.js.map} +1 -1
  208. package/dist/{UdpFormsPublicForm-YjrVSCGi.js → UdpFormsPublicForm-3J1HBXQU.js} +2 -2
  209. package/dist/{UdpFormsPublicForm-YjrVSCGi.js.map → UdpFormsPublicForm-3J1HBXQU.js.map} +1 -1
  210. package/dist/{UdpFormsSubmissionGrid-fhcfXjlD.js → UdpFormsSubmissionGrid-BRJpRv4S.js} +5 -5
  211. package/dist/{UdpFormsSubmissionGrid-fhcfXjlD.js.map → UdpFormsSubmissionGrid-BRJpRv4S.js.map} +1 -1
  212. package/dist/{UdpGridPanelManagementPage-CkeP9nO-.js → UdpGridPanelManagementPage-DrQKKAKQ.js} +5 -5
  213. package/dist/{UdpGridPanelManagementPage-CkeP9nO-.js.map → UdpGridPanelManagementPage-DrQKKAKQ.js.map} +1 -1
  214. package/dist/{UdpGridTemplate-BjsxZFOQ.js → UdpGridTemplate-DDsHQyJt.js} +2 -2
  215. package/dist/{UdpGridTemplate-BjsxZFOQ.js.map → UdpGridTemplate-DDsHQyJt.js.map} +1 -1
  216. package/dist/{UdpImportFromFileMappingPage-xfq_3nOx.js → UdpImportFromFileMappingPage-DxGrLgP4.js} +2 -2
  217. package/dist/{UdpImportFromFileMappingPage-xfq_3nOx.js.map → UdpImportFromFileMappingPage-DxGrLgP4.js.map} +1 -1
  218. package/dist/{UdpInquiryMaintenanceEnginePage-WRu7l1i_.js → UdpInquiryMaintenanceEnginePage-eKMlKemV.js} +3 -3
  219. package/dist/{UdpInquiryMaintenanceEnginePage-WRu7l1i_.js.map → UdpInquiryMaintenanceEnginePage-eKMlKemV.js.map} +1 -1
  220. package/dist/{UdpMaintenanceEnginePage-D5pCaMao.js → UdpMaintenanceEnginePage-g4EGoMtb.js} +12 -12
  221. package/dist/{UdpMaintenanceEnginePage-D5pCaMao.js.map → UdpMaintenanceEnginePage-g4EGoMtb.js.map} +1 -1
  222. package/dist/{UdpNotesPage-Bc1J9jHc.js → UdpNotesPage-D0p12dX2.js} +9 -9
  223. package/dist/{UdpNotesPage-Bc1J9jHc.js.map → UdpNotesPage-D0p12dX2.js.map} +1 -1
  224. package/dist/{UdpRemindersPage-BmNTjbO_.js → UdpRemindersPage-kPco6gzY.js} +9 -9
  225. package/dist/{UdpRemindersPage-BmNTjbO_.js.map → UdpRemindersPage-kPco6gzY.js.map} +1 -1
  226. package/dist/{UdpReportsPage-ljtdb45L.js → UdpReportsPage-n1ymR1VK.js} +2 -2
  227. package/dist/{UdpReportsPage-ljtdb45L.js.map → UdpReportsPage-n1ymR1VK.js.map} +1 -1
  228. package/dist/{UdpTransactionTypesPage-Uk2cRhpd.js → UdpTransactionTypesPage-BD8K_tZp.js} +6 -6
  229. package/dist/{UdpTransactionTypesPage-Uk2cRhpd.js.map → UdpTransactionTypesPage-BD8K_tZp.js.map} +1 -1
  230. package/dist/{UdpTransactionsPage-BfJvIOG4.js → UdpTransactionsPage-D3LYIRnP.js} +34 -34
  231. package/dist/UdpTransactionsPage-D3LYIRnP.js.map +1 -0
  232. package/dist/{UdpVerticalManagementPage-DQAI1xe3.js → UdpVerticalManagementPage-Dl3ub3z_.js} +6 -6
  233. package/dist/{UdpVerticalManagementPage-DQAI1xe3.js.map → UdpVerticalManagementPage-Dl3ub3z_.js.map} +1 -1
  234. package/dist/{UdpVerticalManagementSidesheet-heFj83jt.js → UdpVerticalManagementSidesheet-UA0aBt8U.js} +7 -7
  235. package/dist/{UdpVerticalManagementSidesheet-heFj83jt.js.map → UdpVerticalManagementSidesheet-UA0aBt8U.js.map} +1 -1
  236. package/dist/{UserForm-DhBINx6I.js → UserForm-CkInKaUZ.js} +3 -3
  237. package/dist/{UserForm-DhBINx6I.js.map → UserForm-CkInKaUZ.js.map} +1 -1
  238. package/dist/UserFormSideSheet-ClbFBL2A.js +3 -0
  239. package/dist/{UserFormSideSheet-Cj7IyfX1.js → UserFormSideSheet-CwC3BnSQ.js} +4 -4
  240. package/dist/{UserFormSideSheet-Cj7IyfX1.js.map → UserFormSideSheet-CwC3BnSQ.js.map} +1 -1
  241. package/dist/{VirtualBrowser-qF1k097T.js → VirtualBrowser-B8-wmiLh.js} +10 -10
  242. package/dist/{VirtualBrowser-qF1k097T.js.map → VirtualBrowser-B8-wmiLh.js.map} +1 -1
  243. package/dist/VirtualBrowser-C5uqdpHU.js +3 -0
  244. package/dist/{VirtualForm-Cw3gjug-.js → VirtualForm-tukfZj85.js} +2 -2
  245. package/dist/{VirtualForm-Cw3gjug-.js.map → VirtualForm-tukfZj85.js.map} +1 -1
  246. package/dist/{WorkflowContainer-Cec3FFwP.js → WorkflowContainer-BouRffwp.js} +6 -6
  247. package/dist/{WorkflowContainer-Cec3FFwP.js.map → WorkflowContainer-BouRffwp.js.map} +1 -1
  248. package/dist/{WorkflowContainer-DecC3Yux.js → WorkflowContainer-DugpUjjf.js} +1 -1
  249. package/dist/{WorkflowContent-HlBHhWl8.js → WorkflowContent-C_1mXaJA.js} +5 -5
  250. package/dist/{WorkflowContent-HlBHhWl8.js.map → WorkflowContent-C_1mXaJA.js.map} +1 -1
  251. package/dist/{WorkflowTreeMenu-HHtwkDzu.js → WorkflowTreeMenu-BfKb88w4.js} +4 -4
  252. package/dist/{WorkflowTreeMenu-HHtwkDzu.js.map → WorkflowTreeMenu-BfKb88w4.js.map} +1 -1
  253. package/dist/{accordion-CQ1AqRla.js → accordion-M9f7ltSo.js} +2 -2
  254. package/dist/{accordion-CQ1AqRla.js.map → accordion-M9f7ltSo.js.map} +1 -1
  255. package/dist/{actionSummary-DwSHY1Tt.js → actionSummary-4uornpGM.js} +2 -2
  256. package/dist/{actionSummary-DwSHY1Tt.js.map → actionSummary-4uornpGM.js.map} +1 -1
  257. package/dist/{actionUtils-CPmiSAig.js → actionUtils-BU2Z1V_c.js} +3 -3
  258. package/dist/{actionUtils-CPmiSAig.js.map → actionUtils-BU2Z1V_c.js.map} +1 -1
  259. package/dist/actions/actionSummary/index.js +1 -1
  260. package/dist/actions/index.js +6 -6
  261. package/dist/actions/sidebar/index.js +1 -1
  262. package/dist/actions/utils/index.js +1 -1
  263. package/dist/{aggregateUtils-UcpEjFnf.js → aggregateUtils-BQEbw0_E.js} +3 -3
  264. package/dist/{aggregateUtils-UcpEjFnf.js.map → aggregateUtils-BQEbw0_E.js.map} +1 -1
  265. package/dist/{aggridHelpers-BvrSzjdD.js → aggridHelpers-DVAyzpUF.js} +3 -3
  266. package/dist/{aggridHelpers-BvrSzjdD.js.map → aggridHelpers-DVAyzpUF.js.map} +1 -1
  267. package/dist/{apiHelpers-WIR8pqy0.js → apiHelpers-CMlmFUix.js} +2 -2
  268. package/dist/{apiHelpers-WIR8pqy0.js.map → apiHelpers-CMlmFUix.js.map} +1 -1
  269. package/dist/{auth-BWJ4-JF-.js → auth-09twu9dt.js} +3 -3
  270. package/dist/{auth-BWJ4-JF-.js.map → auth-09twu9dt.js.map} +1 -1
  271. package/dist/{axiosInterceptors-MZ6xeLRS.js → axiosInterceptors-C27H4uT-.js} +2 -2
  272. package/dist/{axiosInterceptors-MZ6xeLRS.js.map → axiosInterceptors-C27H4uT-.js.map} +1 -1
  273. package/dist/{charts--rJXTRtu.js → charts-CPeB-__9.js} +2 -2
  274. package/dist/{charts--rJXTRtu.js.map → charts-CPeB-__9.js.map} +1 -1
  275. package/dist/chatBot/index.js +1 -1
  276. package/dist/componentSystems/multiThreadTimeline/index.js +3 -3
  277. package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/index.js +1 -1
  278. package/dist/componentSystems/multiThreadTimeline/mttSummary/index.js +1 -1
  279. package/dist/componentSystems/multiThreadTimeline/ui/index.js +1 -1
  280. package/dist/componentSystems/pageRenderer/hocs/index.js +1 -1
  281. package/dist/componentSystems/pageRenderer/index.js +3 -3
  282. package/dist/componentSystems/pageRenderer/wrappers/index.js +1 -1
  283. package/dist/{crudActions-C1Ur7cS5.js → crudActions-BNDjc56_.js} +4 -4
  284. package/dist/{crudActions-C1Ur7cS5.js.map → crudActions-BNDjc56_.js.map} +1 -1
  285. package/dist/dataBrowser/forms/index.js +1 -1
  286. package/dist/dataBrowser/index.js +2 -2
  287. package/dist/enums/index.js +8 -8
  288. package/dist/{fileViewer-CtY7cOmL.js → fileViewer-CJmEQUZM.js} +2 -2
  289. package/dist/{fileViewer-CtY7cOmL.js.map → fileViewer-CJmEQUZM.js.map} +1 -1
  290. package/dist/{floorplans-9voWXvF2.js → floorplans-ClCj18Qu.js} +2 -2
  291. package/dist/{floorplans-9voWXvF2.js.map → floorplans-ClCj18Qu.js.map} +1 -1
  292. package/dist/{fluentTimeline-CiONGsTd.js → fluentTimeline-WyxEgKFr.js} +2 -2
  293. package/dist/{fluentTimeline-CiONGsTd.js.map → fluentTimeline-WyxEgKFr.js.map} +1 -1
  294. package/dist/{forms-DsdldFST.js → forms-HlBYZESz.js} +3 -3
  295. package/dist/{forms-DsdldFST.js.map → forms-HlBYZESz.js.map} +1 -1
  296. package/dist/hooks/index.js +9 -9
  297. package/dist/{hooks-BNndjGer.js → hooks-B_0PVsdp.js} +3 -3
  298. package/dist/{hooks-BNndjGer.js.map → hooks-B_0PVsdp.js.map} +1 -1
  299. package/dist/index.js +101 -101
  300. package/dist/inquiry/dashboard/index.js +1 -1
  301. package/dist/inquiry/index.js +4 -4
  302. package/dist/inquiry/inquiryBar/index.js +1 -1
  303. package/dist/inquiry/search/index.js +1 -1
  304. package/dist/maintenanceEngine/crudBrowser/index.js +2 -2
  305. package/dist/maintenanceEngine/index.js +4 -4
  306. package/dist/maintenanceEngine/tableBrowser/index.js +1 -1
  307. package/dist/maintenanceEngine/virtualBrowser/index.js +1 -1
  308. package/dist/{mapLayout-DNtsBpcK.js → mapLayout-BaAcodmS.js} +2 -2
  309. package/dist/{mapLayout-DNtsBpcK.js.map → mapLayout-BaAcodmS.js.map} +1 -1
  310. package/dist/menuPage/index.js +1 -1
  311. package/dist/{menuPage-BHXchSeD.js → menuPage-BCcvcFa5.js} +2 -2
  312. package/dist/{menuPage-BHXchSeD.js.map → menuPage-BCcvcFa5.js.map} +1 -1
  313. package/dist/{menuUtilities-BOnqojY6.js → menuUtilities-CkZ_pe8p.js} +4 -4
  314. package/dist/{menuUtilities-BOnqojY6.js.map → menuUtilities-CkZ_pe8p.js.map} +1 -1
  315. package/dist/{methodUtils-CDx9usdO.js → methodUtils-BmW5r7qU.js} +2 -2
  316. package/dist/{methodUtils-CDx9usdO.js.map → methodUtils-BmW5r7qU.js.map} +1 -1
  317. package/dist/models/index.js +1 -1
  318. package/dist/{newGrid-B6oyV5FZ.js → newGrid-tFtQU1l7.js} +2 -2
  319. package/dist/{newGrid-B6oyV5FZ.js.map → newGrid-tFtQU1l7.js.map} +1 -1
  320. package/dist/notes/index.js +1 -1
  321. package/dist/page/PageContainer/index.js +1 -1
  322. package/dist/pageEnums-Bw4Yfa6D.js +22 -0
  323. package/dist/{pageEnums-DHCYa0ey.js.map → pageEnums-Bw4Yfa6D.js.map} +1 -1
  324. package/dist/paymentVendorFactoryEnum-Mq0LPnfG.js +38 -0
  325. package/dist/{paymentVendorFactoryEnum-CwnzkF9A.js.map → paymentVendorFactoryEnum-Mq0LPnfG.js.map} +1 -1
  326. package/dist/{profile-7BieC5qc.js → profile-DGLuxYkB.js} +3 -3
  327. package/dist/{profile-7BieC5qc.js.map → profile-DGLuxYkB.js.map} +1 -1
  328. package/dist/propertyTypeEnums-kRCZNBn6.js +15 -0
  329. package/dist/{propertyTypeEnums-Dys-84NL.js.map → propertyTypeEnums-kRCZNBn6.js.map} +1 -1
  330. package/dist/providers/index.js +1 -1
  331. package/dist/reminders/index.js +2 -2
  332. package/dist/reports/index.js +1 -1
  333. package/dist/routes/index.js +1 -1
  334. package/dist/{routes-BC24z6ls.js → routes-JTWJvNY3.js} +9 -9
  335. package/dist/{routes-BC24z6ls.js.map → routes-JTWJvNY3.js.map} +1 -1
  336. package/dist/searchEnums-DruwPmGC.js +11 -0
  337. package/dist/{searchEnums-BTFUwf6v.js.map → searchEnums-DruwPmGC.js.map} +1 -1
  338. package/dist/shell/index.js +3 -3
  339. package/dist/shell/ui/addUser/index.js +1 -1
  340. package/dist/shell/ui/index.js +2 -2
  341. package/dist/shell/ui/profile/index.js +1 -1
  342. package/dist/stores/index.js +1 -1
  343. package/dist/tagEnums-pSvvqkV3.js +11 -0
  344. package/dist/{tagEnums-Bc9xOKJw.js.map → tagEnums-pSvvqkV3.js.map} +1 -1
  345. package/dist/{tenantStore-CFYu7ndZ.js → tenantStore-BUT7oepr.js} +2 -2
  346. package/dist/{tenantStore-CFYu7ndZ.js.map → tenantStore-BUT7oepr.js.map} +1 -1
  347. package/dist/{theme-_CEHumbt.js → theme-ubmTDmGy.js} +2 -2
  348. package/dist/{theme-_CEHumbt.js.map → theme-ubmTDmGy.js.map} +1 -1
  349. package/dist/treeMenu/index.js +1 -1
  350. package/dist/types/src/enums/unitySystemEnums.d.ts +2 -1
  351. package/dist/types/src/enums/unitySystemEnums.d.ts.map +1 -1
  352. package/dist/types/src/hooks/useUdpGridFilterModel.d.ts.map +1 -1
  353. package/dist/types/src/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +1 -1
  354. package/dist/types/src/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  355. package/dist/types/src/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  356. package/dist/types/src/utilities/search/SearchUtilities.d.ts.map +1 -1
  357. package/dist/types/tsconfig.tsbuildinfo +1 -1
  358. package/dist/udp/ShortcutContent/index.js +1 -1
  359. package/dist/udp/export/index.js +2 -2
  360. package/dist/udp/fileImportMapping/index.js +8 -8
  361. package/dist/udp/fileImportMapping/index.js.map +1 -1
  362. package/dist/udp/pages/ChatUDP/index.js +1 -1
  363. package/dist/udp/pages/UdpAuditEvents/index.js +1 -1
  364. package/dist/udp/pages/UdpDataBrowserPage/index.js +1 -1
  365. package/dist/udp/pages/UdpFormsPrivateForm/index.js +1 -1
  366. package/dist/udp/pages/UdpFormsPublicForm/index.js +1 -1
  367. package/dist/udp/pages/UdpFormsSubmissionGrid/index.js +1 -1
  368. package/dist/udp/pages/UdpGridPanelManagementPage/index.js +1 -1
  369. package/dist/udp/pages/UdpImportFromFileMappingPage/index.js +1 -1
  370. package/dist/udp/pages/UdpInquiryMaintenanceEnginePage/index.js +1 -1
  371. package/dist/udp/pages/UdpMaintenanceConfigPage/index.js +2 -2
  372. package/dist/udp/pages/UdpMaintenanceEnginePage/index.js +1 -1
  373. package/dist/udp/pages/UdpNotesPage/index.js +1 -1
  374. package/dist/udp/pages/UdpPages/index.js +17 -17
  375. package/dist/udp/pages/UdpPagesLazy/index.js +1 -1
  376. package/dist/udp/pages/UdpRemindersPage/index.js +1 -1
  377. package/dist/udp/pages/UdpReportsPage/index.js +1 -1
  378. package/dist/udp/pages/UdpTransactionTypesPage/index.js +1 -1
  379. package/dist/udp/pages/UdpTransactionsPage/index.js +1 -1
  380. package/dist/udp/pages/UdpVerticalManagementPage/index.js +1 -1
  381. package/dist/udp/pages/UdpVerticalManagementSidesheet/index.js +1 -1
  382. package/dist/udp/utilities/index.js +1 -1
  383. package/dist/unitySystemEnums-BhRg17du.js +344 -0
  384. package/dist/{unitySystemEnums-CZDCsD5t.js.map → unitySystemEnums-BhRg17du.js.map} +1 -1
  385. package/dist/uploader/index.js +1 -1
  386. package/dist/{uploader-D_e-kKhB.js → uploader-D8ZrNmfQ.js} +8 -8
  387. package/dist/{uploader-D_e-kKhB.js.map → uploader-D8ZrNmfQ.js.map} +1 -1
  388. package/dist/{useActions-DZe6YlEm.js → useActions-Ct3UAtTb.js} +4 -4
  389. package/dist/{useActions-DZe6YlEm.js.map → useActions-Ct3UAtTb.js.map} +1 -1
  390. package/dist/{useApiCatalog-cpchDfC1.js → useApiCatalog-CFnv-X8K.js} +2 -2
  391. package/dist/{useApiCatalog-cpchDfC1.js.map → useApiCatalog-CFnv-X8K.js.map} +1 -1
  392. package/dist/{useAxiosGet-CYnt6Hd0.js → useAxiosGet-B3uusywz.js} +3 -3
  393. package/dist/{useAxiosGet-CYnt6Hd0.js.map → useAxiosGet-B3uusywz.js.map} +1 -1
  394. package/dist/{useAxiosMutate-DeqKSi5z.js → useAxiosMutate-CChDJc0L.js} +3 -3
  395. package/dist/{useAxiosMutate-DeqKSi5z.js.map → useAxiosMutate-CChDJc0L.js.map} +1 -1
  396. package/dist/{usePromotedMethodEntities-D-GoZJZB.js → usePromotedMethodEntities-CKfXJwBP.js} +3 -3
  397. package/dist/{usePromotedMethodEntities-D-GoZJZB.js.map → usePromotedMethodEntities-CKfXJwBP.js.map} +1 -1
  398. package/dist/{usePromotedMethodEntity-B4rk75tH.js → usePromotedMethodEntity-Fr6JxDuh.js} +2 -2
  399. package/dist/{usePromotedMethodEntity-B4rk75tH.js.map → usePromotedMethodEntity-Fr6JxDuh.js.map} +1 -1
  400. package/dist/{useQueryExecutors-DuuHrj2M.js → useQueryExecutors-6dxzYiaQ.js} +3 -3
  401. package/dist/{useQueryExecutors-DuuHrj2M.js.map → useQueryExecutors-6dxzYiaQ.js.map} +1 -1
  402. package/dist/{useSearchFilterParamsMap-hAHx2Rav.js → useSearchFilterParamsMap-BR31_fpl.js} +3 -3
  403. package/dist/{useSearchFilterParamsMap-hAHx2Rav.js.map → useSearchFilterParamsMap-BR31_fpl.js.map} +1 -1
  404. package/dist/utilities/aggrid/datasources/index.js +1 -1
  405. package/dist/utilities/aggrid/index.js +2 -2
  406. package/dist/utilities/auth/index.js +4 -4
  407. package/dist/utilities/chatBot/index.js +1 -1
  408. package/dist/utilities/form/paymentForm/index.js +1 -1
  409. package/dist/utilities/index.js +3 -3
  410. package/dist/utilities/menus/index.js +1 -1
  411. package/dist/utilities/provider/index.js +1 -1
  412. package/dist/utilities/redirect/pages/index.js +1 -1
  413. package/dist/utilities/search/index.js +1 -1
  414. package/dist/utilities/tenant/index.js +1 -1
  415. package/dist/utilities/theme/index.js +1 -1
  416. package/dist/utilities/tree/index.js +1 -1
  417. package/dist/utilities/workflow/index.js +1 -1
  418. package/dist/{utilityDisplay-DtdjV7V1.js → utilityDisplay-lia_3vnq.js} +2 -2
  419. package/dist/{utilityDisplay-DtdjV7V1.js.map → utilityDisplay-lia_3vnq.js.map} +1 -1
  420. package/dist/{virtualActions-B788CBd7.js → virtualActions-DGiVDudB.js} +2 -2
  421. package/dist/{virtualActions-B788CBd7.js.map → virtualActions-DGiVDudB.js.map} +1 -1
  422. package/dist/{withEngineComponent-Bcnxug3h.js → withEngineComponent-CoMj91Ad.js} +2 -2
  423. package/dist/{withEngineComponent-Bcnxug3h.js.map → withEngineComponent-CoMj91Ad.js.map} +1 -1
  424. package/dist/workflow/index.js +3 -3
  425. package/dist/workflow/menus/index.js +1 -1
  426. package/dist/workflowEnums-ztRFwx_L.js +48 -0
  427. package/dist/{workflowEnums-BJmSE_P8.js.map → workflowEnums-ztRFwx_L.js.map} +1 -1
  428. package/dist/{workflowUtilities-Brby0vts.js → workflowUtilities-DBcBJOKf.js} +2 -2
  429. package/dist/{workflowUtilities-Brby0vts.js.map → workflowUtilities-DBcBJOKf.js.map} +1 -1
  430. package/export-map.json +1 -1
  431. package/package.json +1 -1
  432. package/dist/AmbientChipButton-DYAYXuKp.js.map +0 -1
  433. package/dist/AmbientTokenButton-B53E25r2.js.map +0 -1
  434. package/dist/BarChartWidget-u-8fxMn5.js.map +0 -1
  435. package/dist/BubbleWidget-CMJYN-7J.js.map +0 -1
  436. package/dist/DensePlotWidget-lJW-uzdQ.js.map +0 -1
  437. package/dist/GridFunctions-D76ygiH2.js.map +0 -1
  438. package/dist/InputFieldTypeEnums-Mg684vvi.js +0 -14
  439. package/dist/Inquiry-C6fDp46v.js +0 -3
  440. package/dist/LineGraphWidget-Ly1fmTyr.js.map +0 -1
  441. package/dist/MenuPage-CdzHSWBt.js +0 -3
  442. package/dist/MyExportsPage-DNvL1_1X.js +0 -3
  443. package/dist/NestedGrid-DAqsZ216.js.map +0 -1
  444. package/dist/Reports-B5vRQpl0.js +0 -3
  445. package/dist/SearchUtilities-DUW0kaw_.js.map +0 -1
  446. package/dist/SparsePlotWidget-DuHbmEom.js.map +0 -1
  447. package/dist/UdpAuditEventsPage-u7pIg9Z9.js +0 -3
  448. package/dist/UdpTransactionsPage-BfJvIOG4.js.map +0 -1
  449. package/dist/UserFormSideSheet-LAR4fJpW.js +0 -3
  450. package/dist/VirtualBrowser-CbL5X-W-.js +0 -3
  451. package/dist/pageEnums-DHCYa0ey.js +0 -22
  452. package/dist/paymentVendorFactoryEnum-CwnzkF9A.js +0 -38
  453. package/dist/propertyTypeEnums-Dys-84NL.js +0 -15
  454. package/dist/searchEnums-BTFUwf6v.js +0 -11
  455. package/dist/tagEnums-Bc9xOKJw.js +0 -11
  456. package/dist/unitySystemEnums-CZDCsD5t.js +0 -343
  457. package/dist/workflowEnums-BJmSE_P8.js +0 -48
@@ -1 +1 @@
1
- {"version":3,"file":"unitySystemEnums-CZDCsD5t.js","names":[],"sources":["../src/enums/unitySystemEnums.ts"],"sourcesContent":["export enum GridEnums {\n Ideas = 'f3c1bf72-15fd-4dcd-904c-b67850525cff',\n Tickets = '787a2afc-26df-440a-9040-9a3e5c5333d5',\n Users = '4ea9fe5d-0af3-4102-af95-4d4a5ca886e1',\n Tenants = 'b543fc1d-6f45-469e-87ae-2b18b8200955',\n Roles = '9af2eebb-7687-4b3c-91fa-607efb0a5fea',\n Inquiry = 'ac0b9a3a-d113-4590-93db-dea62bcb89a2',\n Groups = 'c599b6ff-fee3-4ade-bf78-16700fddb5b9'\n}\n\nexport enum GridStateTypeEnums {\n Column = 1,\n Pivot_Mode = 2,\n Column_Sort = 3,\n Column_Filter = 4,\n Column_Group = 5\n}\n\nexport enum MenuTypeEnums {\n Left_Menu = 1,\n Application_Menu = 2,\n Builders_Menu = 3,\n Favorites_Menu = 4\n}\n\nexport enum VerticalEnums {\n Engage = 1,\n Manage = 2,\n Build = 3,\n Play = 4\n}\n\nexport enum MenuItemEnums {\n Container = 'b36cec3c-fe05-47ed-a687-70be22b0e200',\n External_Link = '11758dfd-ac3a-4996-b86c-767947776ff8',\n Data_Browser = 'afc3833e-e288-4cf6-8155-a069ec4ddc5a',\n Report = '22763e92-2477-43c3-92db-124a84e5ff7f',\n Page = 'd506aeef-ba1b-49a8-9032-beba450b11bc',\n Page_Builder = '16df758b-c456-4c8c-8ca3-2ae167b3b078',\n Route = 'ec5f1c26-e7e1-4f19-8e6e-143308995a40',\n Tree_Builder = 'd4379c4f-6496-4caa-bc0d-5f297fea580f',\n Inquiry = 'b45f660f-a172-4444-8dd8-8f51d56e0725',\n Scheduler = '4007feb9-e50c-44f9-8502-a1f337d82bcf',\n Config = 'aeb48be9-09ea-49b3-9f21-486fe3545b2d',\n Action = 'a66e9458-2540-4166-9b26-1e9b44a2b080',\n Inner_Menu = 'c4f7b46c-00b8-428e-b982-1639c03fde20'\n}\n\nexport enum ADUserTypeEnums {\n Guest = 'Guest',\n Member = 'Member'\n}\n\nexport enum ProductEnums {\n Unity = 1\n}\n\nexport enum RoleTypeEnums {\n System = 1,\n Tenant = 2\n}\n\nexport enum LookupTypeEnums {\n No_Lookup = 'NO_LOOKUP',\n Api = 'API',\n Csv = 'CSV',\n Domain = 'DOMAIN',\n Lookup = 'LOOKUP'\n}\n\nexport enum SearchValueType {\n String = 'String',\n Int = 'Int',\n Long = 'Long',\n Double = 'Double',\n Boolean = 'Boolean',\n DateTime = 'DateTime'\n}\n\nexport enum SearchGroupingType {\n Distinct = 'DISTINCT',\n Aggregate = 'AGGREGATE'\n}\n\nexport enum SearchSortDirection {\n Asc = 'ASC',\n Desc = 'DESC'\n}\n\nexport enum RoleNameEnums {\n System_Administrator = 'System Administrator',\n Company_Administrator = 'Company Administrator',\n Developer = 'Developer'\n}\n\nexport enum ProductNameEnums {\n Asset_Management = 'Asset Management',\n Asset_Routing = 'Asset Routing',\n AVI = 'AVI',\n Cashiering = 'Cashiering',\n Citizen_Portal = 'Citizen Portal',\n Compliance = 'Compliance',\n Consumer_Engagement = 'Consumer Engagement',\n Consumer_Information = 'Consumer Information',\n Contact_Center = 'Contact Center',\n Course_Management = 'Course Management',\n Crew_Routing = 'Crew Routing',\n Dispatch = 'Dispatch',\n Dispatch_Admin = 'Dispatch Admin',\n Employee_Network = 'Employee Network',\n Energy_Management = 'Energy Management',\n Equipment_Inspection = 'Equipment Inspection',\n Facility_Management = 'Facility Management',\n Field_Mobility = 'Field Mobility',\n Fixed_Assets = 'Fixed Assets',\n Fleet_Management = 'Fleet Management',\n Health_And_Safety = 'Health & Safety',\n Instructor_Application = 'Instructor Application',\n MDM = 'MDM',\n Member_Management = 'Member Management',\n Page_Builder = 'Page Builder',\n Project_Management = 'Project Management',\n Rentals = 'Rentals',\n Unity = 'Unity',\n Work_Orders = 'Work Orders'\n}\n\nexport enum LogicalSearchOperatorEnums {\n And = 1,\n Or = 2\n}\n\nexport enum NodeActionTriggerEnums {\n On_Node_Drop = 1\n}\n\nexport enum NodeActionEnums {\n Load_Inquiry_Page = 1,\n Execute_Api = 2,\n Start_Workflow = 3,\n Create = 4,\n Update = 5,\n Delete = 6,\n Retrieve = 7,\n Open_Inquiry = 8,\n Open_Maintenance_Engine = 9,\n Redirect = 10,\n Open_External_Link = 11,\n Hide = 12,\n Disable = 13,\n Open_Page_Split_Screen = 14,\n Open_Shell_Split_Screen = 15,\n Open_Notes = 16,\n Open_Reminders = 17,\n Execute_Function = 18\n}\n\nexport enum TreeViewModeEnums {\n Classic = 1,\n Compact = 2\n}\n\nexport enum PanelPositionEnums {\n Site_Header = 1,\n Site_Header_Summary = 2,\n Speed_Dial = 3,\n Inquiry_Header = 4,\n Inquiry_Header_Summary = 5\n}\n\nexport enum CardinalityTypeEnums {\n One_To_One = 0,\n One_To_Many = 1,\n Many_To_Many = 2,\n Many_To_One = 3\n}\n\nexport enum SplitScreenTypeEnums {\n Entity = 1,\n Notes = 2,\n Page = 3,\n Reminders = 4\n}\n\nexport enum UdpEnums {\n Udp_Note_Type = 'UdpNoteType',\n Udp_Note_Template = 'UdpNoteTemplate',\n Udp_Note = 'UdpNote',\n Udp_Note_Filed_For = 'UdpNoteFiledFor',\n Udp_Shortcut_Content = 'UdpShortcutContent',\n Udp_Lookup = 'UdpLookup',\n Udp_Reminder_Type = 'UdpReminderType',\n Udp_Reminder_Template = 'UdpReminderTemplate',\n Udp_Reminder = 'UdpReminder',\n Udp_Reminder_Filed_For = 'UdpReminderFiledFor',\n Udp_Audit_Event_Type = 'UdpAuditEventType',\n Udp_Audit_Event = 'UdpAuditEvent',\n Udp_Audit_Event_Detail = 'UdpAuditEventDetail',\n Udp_Transaction_Type = 'UdpTransactionType',\n Udp_Transaction_Type_Status = 'UdpTransactionTypeStatus'\n}\n\nexport enum UdpTransactionActionEnums {\n Send_Email = 'Send Email',\n Create_Reminder = 'Create Reminder',\n Set_Mandatory_Fields = 'Set Mandatory Fields',\n Set_Fields_Hidden = 'Set Fields Hidden',\n Update_Status = 'Update Status',\n Update_Domain = 'Update Domain',\n Product_Action = 'Product Action',\n Custom_Client_Action = 'Custom Client Action'\n}\n\nexport enum NodeGroupTypeEnums {\n Static = 'static',\n Dynamic = 'dynamic'\n}\n\nexport enum NodeGroupOutlierEnums {\n Hide = 'hide',\n Group = 'group',\n Individual = 'individual'\n}\n\nexport enum LookupTypeIdEnums {\n Api = 1,\n Csv = 2,\n Domain = 3,\n Lookup = 4\n}\n\nexport enum VisibilityTypeEnums {\n Private = 1,\n Public = 2\n}\n\nexport enum SeverityTypeEnums {\n Success = 'success',\n Error = 'error',\n Warning = 'warning',\n Info = 'info',\n Default = 'default'\n}\n\nexport enum UdpKeywordEnums {\n Udp_Tenant_Id = 'UDP_TENANT_ID',\n Udp_Product_Id = 'UDP_PRODUCT_ID',\n Udp_Language_Id = 'UDP_LANGUAGE_ID'\n}\n\nexport const enum JobStatusIdMapping {\n PENDING = 1,\n IN_PROGRESS = 2,\n COMPLETED = 3,\n FAILED = 4\n}\n\nexport const enum JobTypeIdMapping {\n IMPORT = 1,\n EXPORT = 2\n}\n\nexport enum UdpReminderFiledForType {\n User = 1,\n System = 2\n}\n\nexport enum DeviceTypeEnums {\n Desktop = 1,\n Tablet = 2,\n Mobile = 3\n}\n\nexport enum ContainerTypeEnums {\n Sidesheet = 1,\n SplitScreen = 2,\n Page = 3\n}\n\nexport enum TenantTypeEnums {\n Tenant = 1,\n Product = 2\n}\n\nexport enum EntityAttributeEnums {\n Is_Product_ShortcutContent = 'IsProductShortcutContent',\n Is_Product_Lookup = 'IsProductLookup',\n User_Defined = 'UserDefined',\n Domain_Name = 'DomainName'\n}\n\nexport enum RoleIdEnums {\n Unity_System_Administrator = '302dacf5-bf16-412d-bf66-519d4c3491c3'\n}\n\nexport enum GridExcelStyleEnums {\n DateTimeShort = 'dateTimeShort',\n DateTimeShortWithSeconds = 'dateTimeShortWithSeconds',\n DateTimeLong = 'dateTimeLong',\n DateTimeLongWithSeconds = 'dateTimeLongWithSeconds',\n DateShort = 'dateShort',\n DateLong = 'dateLong'\n}\n\nexport enum TransactionEventTypeEnums {\n Server = 1,\n Form = 2,\n Sidesheet = 3,\n Grid = 4\n}\n\nexport enum TransactionActionTypeEnums {\n Send_Email = 1,\n Create_Reminder = 2,\n Set_Mandatory_Fields = 3,\n Set_Fields_Hidden = 4,\n Update_Status = 5,\n Update_Domain = 6,\n Product_Action = 7,\n Custom_Client_Action = 8\n}\n\nexport enum TransactionUiActionTypeEnums {\n Render_Transaction_Details_Page = 1,\n Render_Create_Transaction_Page = 2,\n Render_Create_Revision_Page = 3,\n Render_View_Pdf_Page = 4\n}\n\nexport enum UdpSearchEnums {\n UdpBusinessDomainPrefix = '_UdpBusinessDomain'\n}\n\nexport const EMPTY_GUID = '00000000-0000-0000-0000-000000000000';\n\nexport enum UnityProducts {\n // Add the rest of the product ids here as needed\n // This should be used sparingly as we should avoid hard coding behaviour to specific products\n Unity = 1\n}\n"],"mappings":";AAAA,IAAY,kDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,0DAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,0DAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,0DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;;;AAGF,IAAY,wDAAL;AACL;;;AAGF,IAAY,0DAAL;AACL;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;;;AAGF,IAAY,sEAAL;AACL;AACA;;;AAGF,IAAY,0DAAL;AACL;AACA;AACA;;;AAGF,IAAY,gEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,oFAAL;AACL;AACA;;;AAGF,IAAY,4EAAL;AACL;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,wEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,wEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,gDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kFAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;;;AAGF,IAAY,0EAAL;AACL;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,sEAAL;AACL;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;;;AAGF,IAAkB,oEAAX;AACL;AACA;AACA;AACA;;;AAGF,IAAkB,gEAAX;AACL;AACA;;;AAGF,IAAY,8EAAL;AACL;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;;;AAGF,IAAY,wEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,sDAAL;AACL;;;AAGF,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kFAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,oFAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,wFAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,4DAAL;AACL;;;AAGF,MAAa,aAAa;AAE1B,IAAY,0DAAL;AAGL"}
1
+ {"version":3,"file":"unitySystemEnums-BhRg17du.js","names":[],"sources":["../src/enums/unitySystemEnums.ts"],"sourcesContent":["export enum GridEnums {\n Ideas = 'f3c1bf72-15fd-4dcd-904c-b67850525cff',\n Tickets = '787a2afc-26df-440a-9040-9a3e5c5333d5',\n Users = '4ea9fe5d-0af3-4102-af95-4d4a5ca886e1',\n Tenants = 'b543fc1d-6f45-469e-87ae-2b18b8200955',\n Roles = '9af2eebb-7687-4b3c-91fa-607efb0a5fea',\n Inquiry = 'ac0b9a3a-d113-4590-93db-dea62bcb89a2',\n Groups = 'c599b6ff-fee3-4ade-bf78-16700fddb5b9'\n}\n\nexport enum GridStateTypeEnums {\n Column = 1,\n Pivot_Mode = 2,\n Column_Sort = 3,\n Column_Filter = 4,\n Column_Group = 5\n}\n\nexport enum MenuTypeEnums {\n Left_Menu = 1,\n Application_Menu = 2,\n Builders_Menu = 3,\n Favorites_Menu = 4\n}\n\nexport enum VerticalEnums {\n Engage = 1,\n Manage = 2,\n Build = 3,\n Play = 4\n}\n\nexport enum MenuItemEnums {\n Container = 'b36cec3c-fe05-47ed-a687-70be22b0e200',\n External_Link = '11758dfd-ac3a-4996-b86c-767947776ff8',\n Data_Browser = 'afc3833e-e288-4cf6-8155-a069ec4ddc5a',\n Report = '22763e92-2477-43c3-92db-124a84e5ff7f',\n Page = 'd506aeef-ba1b-49a8-9032-beba450b11bc',\n Page_Builder = '16df758b-c456-4c8c-8ca3-2ae167b3b078',\n Route = 'ec5f1c26-e7e1-4f19-8e6e-143308995a40',\n Tree_Builder = 'd4379c4f-6496-4caa-bc0d-5f297fea580f',\n Inquiry = 'b45f660f-a172-4444-8dd8-8f51d56e0725',\n Scheduler = '4007feb9-e50c-44f9-8502-a1f337d82bcf',\n Config = 'aeb48be9-09ea-49b3-9f21-486fe3545b2d',\n Action = 'a66e9458-2540-4166-9b26-1e9b44a2b080',\n Inner_Menu = 'c4f7b46c-00b8-428e-b982-1639c03fde20'\n}\n\nexport enum ADUserTypeEnums {\n Guest = 'Guest',\n Member = 'Member'\n}\n\nexport enum ProductEnums {\n Unity = 1\n}\n\nexport enum RoleTypeEnums {\n System = 1,\n Tenant = 2\n}\n\nexport enum LookupTypeEnums {\n No_Lookup = 'NO_LOOKUP',\n Api = 'API',\n Csv = 'CSV',\n Domain = 'DOMAIN',\n Lookup = 'LOOKUP'\n}\n\nexport enum SearchValueType {\n String = 'String',\n Int = 'Int',\n Long = 'Long',\n Double = 'Double',\n Boolean = 'Boolean',\n DateTime = 'DateTime'\n}\n\nexport enum SearchGroupingType {\n Distinct = 'DISTINCT',\n Aggregate = 'AGGREGATE'\n}\n\nexport enum SearchSortDirection {\n Asc = 'ASC',\n Desc = 'DESC'\n}\n\nexport enum RoleNameEnums {\n System_Administrator = 'System Administrator',\n Company_Administrator = 'Company Administrator',\n Developer = 'Developer'\n}\n\nexport enum ProductNameEnums {\n Asset_Management = 'Asset Management',\n Asset_Routing = 'Asset Routing',\n AVI = 'AVI',\n Cashiering = 'Cashiering',\n Citizen_Portal = 'Citizen Portal',\n Compliance = 'Compliance',\n Consumer_Engagement = 'Consumer Engagement',\n Consumer_Information = 'Consumer Information',\n Contact_Center = 'Contact Center',\n Course_Management = 'Course Management',\n Crew_Routing = 'Crew Routing',\n Dispatch = 'Dispatch',\n Dispatch_Admin = 'Dispatch Admin',\n Employee_Network = 'Employee Network',\n Energy_Management = 'Energy Management',\n Equipment_Inspection = 'Equipment Inspection',\n Facility_Management = 'Facility Management',\n Field_Mobility = 'Field Mobility',\n Fixed_Assets = 'Fixed Assets',\n Fleet_Management = 'Fleet Management',\n Health_And_Safety = 'Health & Safety',\n Instructor_Application = 'Instructor Application',\n MDM = 'MDM',\n Member_Management = 'Member Management',\n Page_Builder = 'Page Builder',\n Project_Management = 'Project Management',\n Rentals = 'Rentals',\n Unity = 'Unity',\n Work_Orders = 'Work Orders'\n}\n\nexport enum LogicalSearchOperatorEnums {\n And = 1,\n Or = 2\n}\n\nexport enum NodeActionTriggerEnums {\n On_Node_Drop = 1\n}\n\nexport enum NodeActionEnums {\n Load_Inquiry_Page = 1,\n Execute_Api = 2,\n Start_Workflow = 3,\n Create = 4,\n Update = 5,\n Delete = 6,\n Retrieve = 7,\n Open_Inquiry = 8,\n Open_Maintenance_Engine = 9,\n Redirect = 10,\n Open_External_Link = 11,\n Hide = 12,\n Disable = 13,\n Open_Page_Split_Screen = 14,\n Open_Shell_Split_Screen = 15,\n Open_Notes = 16,\n Open_Reminders = 17,\n Execute_Function = 18\n}\n\nexport enum TreeViewModeEnums {\n Classic = 1,\n Compact = 2\n}\n\nexport enum PanelPositionEnums {\n Site_Header = 1,\n Site_Header_Summary = 2,\n Speed_Dial = 3,\n Inquiry_Header = 4,\n Inquiry_Header_Summary = 5\n}\n\nexport enum CardinalityTypeEnums {\n One_To_One = 0,\n One_To_Many = 1,\n Many_To_Many = 2,\n Many_To_One = 3\n}\n\nexport enum SplitScreenTypeEnums {\n Entity = 1,\n Notes = 2,\n Page = 3,\n Reminders = 4\n}\n\nexport enum UdpEnums {\n Udp_Note_Type = 'UdpNoteType',\n Udp_Note_Template = 'UdpNoteTemplate',\n Udp_Note = 'UdpNote',\n Udp_Note_Filed_For = 'UdpNoteFiledFor',\n Udp_Shortcut_Content = 'UdpShortcutContent',\n Udp_Lookup = 'UdpLookup',\n Udp_Reminder_Type = 'UdpReminderType',\n Udp_Reminder_Template = 'UdpReminderTemplate',\n Udp_Reminder = 'UdpReminder',\n Udp_Reminder_Filed_For = 'UdpReminderFiledFor',\n Udp_Audit_Event_Type = 'UdpAuditEventType',\n Udp_Audit_Event = 'UdpAuditEvent',\n Udp_Audit_Event_Detail = 'UdpAuditEventDetail',\n Udp_Transaction_Type = 'UdpTransactionType',\n Udp_Transaction_Type_Status = 'UdpTransactionTypeStatus'\n}\n\nexport enum UdpTransactionActionEnums {\n Send_Email = 'Send Email',\n Create_Reminder = 'Create Reminder',\n Set_Mandatory_Fields = 'Set Mandatory Fields',\n Set_Fields_Hidden = 'Set Fields Hidden',\n Update_Status = 'Update Status',\n Update_Domain = 'Update Domain',\n Product_Action = 'Product Action',\n Custom_Client_Action = 'Custom Client Action'\n}\n\nexport enum NodeGroupTypeEnums {\n Static = 'static',\n Dynamic = 'dynamic'\n}\n\nexport enum NodeGroupOutlierEnums {\n Hide = 'hide',\n Group = 'group',\n Individual = 'individual'\n}\n\nexport enum LookupTypeIdEnums {\n Api = 1,\n Csv = 2,\n Domain = 3,\n Lookup = 4\n}\n\nexport enum VisibilityTypeEnums {\n Private = 1,\n Public = 2\n}\n\nexport enum SeverityTypeEnums {\n Success = 'success',\n Error = 'error',\n Warning = 'warning',\n Info = 'info',\n Default = 'default'\n}\n\nexport enum UdpKeywordEnums {\n Udp_Tenant_Id = 'UDP_TENANT_ID',\n Udp_Product_Id = 'UDP_PRODUCT_ID',\n Udp_Language_Id = 'UDP_LANGUAGE_ID'\n}\n\nexport const enum JobStatusIdMapping {\n PENDING = 1,\n IN_PROGRESS = 2,\n COMPLETED = 3,\n FAILED = 4\n}\n\nexport const enum JobTypeIdMapping {\n IMPORT = 1,\n EXPORT = 2\n}\n\nexport enum UdpReminderFiledForType {\n User = 1,\n System = 2\n}\n\nexport enum DeviceTypeEnums {\n Desktop = 1,\n Tablet = 2,\n Mobile = 3\n}\n\nexport enum ContainerTypeEnums {\n Sidesheet = 1,\n SplitScreen = 2,\n Page = 3\n}\n\nexport enum TenantTypeEnums {\n Tenant = 1,\n Product = 2\n}\n\nexport enum EntityAttributeEnums {\n Is_Product_ShortcutContent = 'IsProductShortcutContent',\n Is_Product_Lookup = 'IsProductLookup',\n User_Defined = 'UserDefined',\n Domain_Name = 'DomainName'\n}\n\nexport enum RoleIdEnums {\n Unity_System_Administrator = '302dacf5-bf16-412d-bf66-519d4c3491c3'\n}\n\nexport enum GridExcelStyleEnums {\n DateTimeShort = 'dateTimeShort',\n DateTimeShortWithSeconds = 'dateTimeShortWithSeconds',\n DateTimeLong = 'dateTimeLong',\n DateTimeLongWithSeconds = 'dateTimeLongWithSeconds',\n DateShort = 'dateShort',\n DateLong = 'dateLong'\n}\n\nexport enum TransactionEventTypeEnums {\n Server = 1,\n Form = 2,\n Sidesheet = 3,\n Grid = 4\n}\n\nexport enum TransactionActionTypeEnums {\n Send_Email = 1,\n Create_Reminder = 2,\n Set_Mandatory_Fields = 3,\n Set_Fields_Hidden = 4,\n Update_Status = 5,\n Update_Domain = 6,\n Product_Action = 7,\n Custom_Client_Action = 8\n}\n\nexport enum TransactionUiActionTypeEnums {\n Render_Transaction_Details_Page = 1,\n Render_Create_Transaction_Page = 2,\n Render_Create_Revision_Page = 3,\n Render_View_Pdf_Page = 4\n}\n\nexport enum UdpSearchEnums {\n UdpBusinessDomainPrefix = '_UdpBusinessDomain',\n UdpQueryParamPrefix = 'udp_search'\n}\n\nexport const EMPTY_GUID = '00000000-0000-0000-0000-000000000000';\n\nexport enum UnityProducts {\n // Add the rest of the product ids here as needed\n // This should be used sparingly as we should avoid hard coding behaviour to specific products\n Unity = 1\n}\n"],"mappings":";AAAA,IAAY,gDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,wDAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,wDAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,wDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;;;AAGF,IAAY,sDAAL;AACL;;;AAGF,IAAY,wDAAL;AACL;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;;;AAGF,IAAY,wDAAL;AACL;AACA;AACA;;;AAGF,IAAY,8DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kFAAL;AACL;AACA;;;AAGF,IAAY,0EAAL;AACL;;;AAGF,IAAY,4DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,gEAAL;AACL;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,sEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,sEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,8CAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,gFAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;;;AAGF,IAAY,wEAAL;AACL;AACA;AACA;;;AAGF,IAAY,gEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,oEAAL;AACL;AACA;;;AAGF,IAAY,gEAAL;AACL;AACA;AACA;AACA;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;AACA;;;AAGF,IAAkB,kEAAX;AACL;AACA;AACA;AACA;;;AAGF,IAAkB,8DAAX;AACL;AACA;;;AAGF,IAAY,4EAAL;AACL;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;AACA;;;AAGF,IAAY,kEAAL;AACL;AACA;AACA;;;AAGF,IAAY,4DAAL;AACL;AACA;;;AAGF,IAAY,sEAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,oDAAL;AACL;;;AAGF,IAAY,oEAAL;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,gFAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,kFAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGF,IAAY,sFAAL;AACL;AACA;AACA;AACA;;;AAGF,IAAY,0DAAL;AACL;AACA;;;AAGF,MAAa,aAAa;AAE1B,IAAY,wDAAL;AAGL"}
@@ -1,4 +1,4 @@
1
1
  import { t as DragDropFileUpload } from "../DragDropFileUpload-C0Jho_xA.js";
2
- import { n as FileType, t as Attachments } from "../uploader-D_e-kKhB.js";
2
+ import { n as FileType, t as Attachments } from "../uploader-D8ZrNmfQ.js";
3
3
 
4
4
  export { Attachments, DragDropFileUpload, FileType };
@@ -1,6 +1,6 @@
1
1
  import { t as ConfigService } from "./configService-C4uoG3wj.js";
2
- import { i as useHandleAxiosSnackbar } from "./apiHelpers-WIR8pqy0.js";
3
- import { t as apiMutate } from "./useAxiosMutate-DeqKSi5z.js";
2
+ import { i as useHandleAxiosSnackbar } from "./apiHelpers-CMlmFUix.js";
3
+ import { t as apiMutate } from "./useAxiosMutate-CChDJc0L.js";
4
4
  import { t as FluentIconButton } from "./FluentIconButton-Dc95mE3v.js";
5
5
  import { t as AmbientCard } from "./AmbientCard-DhAiVDYD.js";
6
6
  import { t as FluentDialog } from "./FluentDialog-B5ZxvX1E.js";
@@ -114,11 +114,11 @@ const FileType = (props) => {
114
114
 
115
115
  //#endregion
116
116
  //#region src/uploader/enums/systemEnums.ts
117
- let AttachmentAction = /* @__PURE__ */ function(AttachmentAction$1) {
118
- AttachmentAction$1[AttachmentAction$1["None"] = 1] = "None";
119
- AttachmentAction$1[AttachmentAction$1["Delete"] = 2] = "Delete";
120
- AttachmentAction$1[AttachmentAction$1["Remove"] = 3] = "Remove";
121
- return AttachmentAction$1;
117
+ let AttachmentAction = /* @__PURE__ */ function(AttachmentAction) {
118
+ AttachmentAction[AttachmentAction["None"] = 1] = "None";
119
+ AttachmentAction[AttachmentAction["Delete"] = 2] = "Delete";
120
+ AttachmentAction[AttachmentAction["Remove"] = 3] = "Remove";
121
+ return AttachmentAction;
122
122
  }({});
123
123
 
124
124
  //#endregion
@@ -311,4 +311,4 @@ const Attachments = ({ allowedExtensions, MAX_FILE_SIZE_MB, filePreview, setFile
311
311
 
312
312
  //#endregion
313
313
  export { FileType as n, Attachments as t };
314
- //# sourceMappingURL=uploader-D_e-kKhB.js.map
314
+ //# sourceMappingURL=uploader-D8ZrNmfQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uploader-D_e-kKhB.js","names":["useStyles","FileProfile","ImagePreview","attachmentType","Box","DeleteIcon","LinearProgress"],"sources":["../src/uploader/FileProfile.jsx","../src/uploader/ImagePreview.jsx","../src/uploader/FileType.jsx","../src/uploader/enums/systemEnums.ts","../src/uploader/Attachments.jsx"],"sourcesContent":["import React from 'react'\nimport { Typography, makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n flexDirection: 'row'\n },\n prefix: {\n fontWeight: 600\n },\n title: {\n flex: 1\n },\n detail: {\n marginLeft: theme.spacing(2)\n }\n}))\n\nconst FileProfile = (props) => {\n const classes = useStyles()\n const { children, fileName, fileType, size, lastModifiedDate } = props\n return (\n <div>\n <div className={classes.root}>\n <Typography variant='body1' className={classes.title}>\n <strong>{fileName}</strong>\n </Typography>\n <Typography variant='caption' className={classes.detail}>\n <span className={classes.prefix}>Type:</span> {fileType}\n </Typography>\n <Typography variant='caption' className={classes.detail}>\n <span className={classes.prefix}>Size:</span> {size}\n </Typography>\n </div>\n {children}\n {/* Last modified not supported in FireFox */}\n {/* <Typography variant=\"caption\">\n <span className={classes.prefix}>Last Modified:</span>{' '}\n {lastModifiedDate}\n </Typography> */}\n </div>\n )\n}\nexport default FileProfile\n","import React from 'react'\nimport { makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n justifyContent: 'center'\n },\n image: {\n maxWidth: 465\n }\n}))\n\nconst ImagePreview = (props) => {\n const { image } = props\n const classes = useStyles()\n\n return (\n <div className={classes.root}>\n <img className={classes.image} src={image} alt='upload preview' />\n </div>\n )\n}\nexport default ImagePreview\n","import React from 'react'\nimport FileProfile from './FileProfile'\nimport ImagePreview from './ImagePreview'\n\nexport const FileType = (props) => {\n let type = ''\n const { fileType, image, fileName, size, lastModifiedDate } = props\n\n switch (fileType) {\n case 'pdf':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n />\n )\n break\n case 'doc':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n />\n )\n break\n case 'png':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n case 'jpg':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n case 'jpeg':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n\n default:\n }\n\n return type\n}\n","export enum APIStatusCode {\n Success = 200,\n Created = 201,\n Accepted = 202,\n NoContent = 204,\n Forbidden = 403,\n}\n\nexport enum AttachmentType {\n SiteInstruction = 1,\n RFI = 2\n}\n\nexport enum AttachmentAction {\n None = 1,\n Delete = 2,\n Remove = 3\n};\n","import React, { useCallback, useState } from 'react';\nimport { apiMutate } from '../utilities';\nimport { Box } from '../UI';\nimport { AmbientCard } from '../UI/surfaces/cards/AmbientCard';\nimport { DragDropFileUpload } from './DragDropFileUpload';\nimport { LinearProgress } from '../UI';\nimport { List, ListItem, IconButton } from '@material-ui/core';\nimport { ConfigService } from '../configService/index';\nimport DeleteIcon from '@material-ui/icons/Delete';\nimport { DownloadIcon, ChromeCloseIcon } from '@fluentui/react-icons';\nimport { useTranslation } from 'react-i18next';\nimport { useHandleAxiosSnackbar } from '../utilities';\nimport { Divider } from '@material-ui/core';\nimport { AttachmentAction } from './enums/systemEnums';\nimport { FluentDialog } from '../UI';\nimport { FluentIconButton } from '../UI/inputs/buttons';\nimport './Attachments.css';\nimport { AmbientAutoComplete } from '../UI/inputs/textField';\n\nconst removeDuplicateFiles = (incomingFiles, existingFiles) => {\n const uniqueFiles = [];\n const duplicateFiles = [];\n\n incomingFiles.forEach((newFile) => {\n const exists = existingFiles.some(\n (existingFile) =>\n existingFile.name === newFile.name ||\n existingFile.fileName === newFile.name\n );\n\n if (exists) {\n duplicateFiles.push(newFile);\n } else {\n uniqueFiles.push(newFile);\n }\n });\n\n return { uniqueFiles, duplicateFiles };\n};\n\nexport const Attachments = ({\n allowedExtensions,\n MAX_FILE_SIZE_MB,\n filePreview,\n setFilePreview,\n currentAttachments,\n setCurrentAttachments,\n attachmentTypes,\n attachmentType,\n setAttachmentType,\n attachmentProgress,\n setAttachmentProgress,\n previousAttachments,\n setPreviousAttachments\n}) => {\n const [attachmentDialogOpen, setAttachmentDialogOpen] = useState(false);\n const [attachmentToDelete, setAttachmentToDelete] = useState(null);\n const [attachmentToDeleteIndex, setAttachmentToDeleteIndex] = useState(0);\n const [attachmentAction, setAttachmentAction] = useState(\n AttachmentAction.None\n );\n\n const { handleErrorSnackbar, handleSuccessSnackbar } =\n useHandleAxiosSnackbar();\n const { t } = useTranslation();\n\n const initiateAttachmentAction = useCallback((action, file, index) => {\n setAttachmentAction(action);\n setAttachmentToDelete(file);\n setAttachmentToDeleteIndex(index);\n setAttachmentDialogOpen(true);\n }, []);\n\n const handleAttachmentDeleteClick = useCallback(\n (file, index) => {\n initiateAttachmentAction(AttachmentAction.Delete, file, index);\n },\n [initiateAttachmentAction]\n );\n\n const handleAttachmentRemoveClick = useCallback(\n (file, index) => {\n initiateAttachmentAction(AttachmentAction.Remove, file, index);\n },\n [initiateAttachmentAction]\n );\n\n const handleCloseAttachmentDialog = useCallback(() => {\n setAttachmentAction(AttachmentAction.None);\n setAttachmentToDelete({});\n setAttachmentDialogOpen(false);\n }, []);\n\n const removeAttachmentFromList = useCallback(\n (attachments, setAttachments) => {\n setAttachments((prev) =>\n prev.filter((item, i) => i !== attachmentToDeleteIndex)\n );\n handleSuccessSnackbar(t('Attachment Removed Successfully'));\n handleCloseAttachmentDialog();\n },\n [\n attachmentToDeleteIndex,\n handleSuccessSnackbar,\n handleCloseAttachmentDialog,\n t\n ]\n );\n\n const deleteAttachment = useCallback(async () => {\n try {\n setAttachmentProgress(true);\n const filePayload = { ...attachmentToDelete, isDeleted: true };\n\n await apiMutate(\n ConfigService.productV1ApiUrl,\n `UdpTransactionAttachment/${attachmentToDelete.transactionAttachmentId}`,\n {\n method: 'put',\n data: filePayload\n }\n );\n removeAttachmentFromList(previousAttachments, setPreviousAttachments);\n } catch (error) {\n handleErrorSnackbar(\n 'Failed to delete attachment',\n 'We encountered a system error while trying to delete the file. Please try again.'\n );\n console.error(error);\n } finally {\n setAttachmentProgress(false);\n setAttachmentDialogOpen(false);\n }\n }, [\n attachmentToDelete,\n removeAttachmentFromList,\n previousAttachments,\n setPreviousAttachments,\n setAttachmentProgress,\n handleErrorSnackbar\n ]);\n\n const handleDownloadFile = useCallback(async (file) => {\n try {\n const response = await apiMutate(\n ConfigService.productV1ApiUrl,\n `UdpTransactionAttachment/${file.transactionAttachmentId}/udpDriveFile/download`,\n {}\n );\n const url = response.data.link;\n const link = document.createElement('a');\n link.href = url;\n link.download = file.fileName ?? file.name;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n } catch (e) {\n console.error('Download failed', e);\n }\n }, []);\n\n const handleAddFiles = useCallback(\n async (files) => {\n const incomingFiles = Array.from(files);\n const validFiles = [];\n const invalidFiles = [];\n\n incomingFiles.forEach((file) => {\n const ext = file.name.split('.').pop().toLowerCase();\n const sizeInMB = file.size / (1024 * 1024);\n\n if (!allowedExtensions.includes(ext)) {\n invalidFiles.push(`${file.name} (Invalid file type)`);\n } else if (sizeInMB > MAX_FILE_SIZE_MB) {\n invalidFiles.push(`${file.name} (Exceeds ${MAX_FILE_SIZE_MB} MB)`);\n } else {\n validFiles.push(file);\n }\n });\n\n const allExistingFiles = [...previousAttachments, ...currentAttachments];\n const { uniqueFiles, duplicateFiles } = removeDuplicateFiles(\n validFiles,\n allExistingFiles\n );\n\n if (uniqueFiles.length > 0) {\n setCurrentAttachments((prev) => [...prev, ...uniqueFiles]);\n }\n\n if (invalidFiles.length > 0) {\n handleErrorSnackbar(\n 'Files not added',\n `The following files had errors:\\n${invalidFiles.join('\\n')}`\n );\n setFilePreview(true);\n }\n\n if (duplicateFiles.length > 0) {\n const duplicateNames = duplicateFiles.map((f) => f.name).join(', ');\n handleErrorSnackbar(\n 'Duplicates skipped',\n `The following files already exist and were not added: ${duplicateNames}`\n );\n }\n },\n [\n allowedExtensions,\n MAX_FILE_SIZE_MB,\n previousAttachments,\n currentAttachments,\n setCurrentAttachments,\n handleErrorSnackbar,\n setFilePreview\n ]\n );\n\n const handleAttachmentTypeSelect = useCallback(\n (attachmentType) => {\n setAttachmentType(attachmentType);\n },\n [setAttachmentType]\n );\n\n const renderCurrentAttachments = () => {\n return currentAttachments.map((file, index) => (\n <React.Fragment key={index}>\n {index > 0 && <Divider component='li' />}\n <ListItem\n className='list-separator-item'\n style={{ display: 'flex', justifyContent: 'space-between' }}\n >\n <Box>{file.fileName ? file.fileName : file.name}</Box>\n <Box>\n <IconButton\n onClick={() => handleAttachmentRemoveClick(file, index)}\n >\n <DeleteIcon />\n </IconButton>\n </Box>\n </ListItem>\n </React.Fragment>\n ));\n };\n\n const renderPreviousAttachments = () => {\n return previousAttachments.map((file, index) => (\n <ListItem\n key={index}\n style={{ display: 'flex', justifyContent: 'space-between' }}\n >\n <Box>{file.fileName ?? file.name}</Box>\n <Box>\n <IconButton onClick={() => handleAttachmentDeleteClick(file, index)}>\n <DeleteIcon />\n </IconButton>\n <IconButton onClick={() => handleDownloadFile(file)}>\n <DownloadIcon />\n </IconButton>\n </Box>\n </ListItem>\n ));\n };\n\n const renderConfirmationContent = () => {\n const isDeleteAction = attachmentAction === AttachmentAction.Delete;\n const actionVerb = isDeleteAction ? 'delete' : 'remove';\n const fileName = attachmentToDelete?.fileName ?? attachmentToDelete?.name;\n\n return (\n <>\n <p className={'deleteSubTitle'}>\n Are you sure you want to {actionVerb} this attachment -{' '}\n <strong>{`\"${fileName}\"`}</strong>?\n </p>\n {isDeleteAction && <p>This action cannot be undone.</p>}\n </>\n );\n };\n\n return (\n <>\n <div className='card-wrapper'>\n {attachmentProgress && (\n <div className='linear-progress'>\n <LinearProgress />\n </div>\n )}\n <AmbientCard\n fullWidth={true}\n title={t('Add New Attachments')}\n variant='secondary'\n subtitle={'These files will be included with the submittal(s)'}\n >\n <DragDropFileUpload\n title='Drag and drop files here or click to browse'\n handleUploadFile={handleAddFiles}\n hideSelectFileButton={false}\n hideFilePreview={!filePreview}\n minHeight='200px'\n maxHeight='400px'\n multiple={true}\n />\n <AmbientAutoComplete\n variant='outlined'\n isMultiple={false}\n value={attachmentType}\n getOptionLabelFunction={(option) => option.name}\n onChange={handleAttachmentTypeSelect}\n options={attachmentTypes?.pageList}\n label={t('Select Attachment Type')}\n required\n />\n </AmbientCard>\n {currentAttachments?.length > 0 && (\n <AmbientCard\n fullWidth={true}\n title={t('Current Attachments')}\n subtitle={`${currentAttachments.length} file(s) attached`}\n >\n <List>{renderCurrentAttachments()}</List>\n </AmbientCard>\n )}\n {previousAttachments.length > 0 && (\n <AmbientCard fullWidth={true} title={t('Previous Attachments')}>\n <List>{renderPreviousAttachments()}</List>\n </AmbientCard>\n )}\n </div>\n\n <FluentDialog\n title={\n <div className={'deleteTitle'}>\n <span>\n {attachmentAction === AttachmentAction.Delete\n ? t('Delete Attachment')\n : t('Remove Attachment')}\n </span>\n <FluentIconButton\n aria-label='close'\n icon={ChromeCloseIcon}\n onClick={handleCloseAttachmentDialog}\n />\n </div>\n }\n message={renderConfirmationContent()}\n labelOne={\n attachmentAction === AttachmentAction.Delete\n ? t('Delete')\n : t('Remove')\n }\n actionOne={\n attachmentAction === AttachmentAction.Delete\n ? deleteAttachment\n : () =>\n removeAttachmentFromList(\n currentAttachments,\n setCurrentAttachments\n )\n }\n labelTwo={t('Cancel')}\n actionTwo={handleCloseAttachmentDialog}\n open={attachmentDialogOpen}\n handleClose={handleCloseAttachmentDialog}\n fullWidth\n />\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAGA,MAAMA,cAAY,YAAY,WAAW;CACvC,MAAM;EACJ,SAAS;EACT,eAAe;EAChB;CACD,QAAQ,EACN,YAAY,KACb;CACD,OAAO,EACL,MAAM,GACP;CACD,QAAQ,EACN,YAAY,MAAM,QAAQ,EAAE,EAC7B;CACF,EAAE;AAEH,MAAM,eAAe,UAAU;CAC7B,MAAM,UAAUA,aAAW;CAC3B,MAAM,EAAE,UAAU,UAAU,UAAU,MAAM,qBAAqB;AACjE,QACE,oCAAC,aACC,oCAAC,SAAI,WAAW,QAAQ,QACtB,oCAAC;EAAW,SAAQ;EAAQ,WAAW,QAAQ;IAC7C,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EAEjB,WACE,qBAAqB,iBAAiB,SAClC,yBAEE,yBACE,oBACA,sBACD;EAET,UAAU,EAAE,SAAS;EACrB,WAAW;EACX,MAAM;EACN,aAAa;EACb;GACA,CACD"}
1
+ {"version":3,"file":"uploader-D8ZrNmfQ.js","names":["useStyles","FileProfile","ImagePreview","attachmentType","Box","DeleteIcon","LinearProgress"],"sources":["../src/uploader/FileProfile.jsx","../src/uploader/ImagePreview.jsx","../src/uploader/FileType.jsx","../src/uploader/enums/systemEnums.ts","../src/uploader/Attachments.jsx"],"sourcesContent":["import React from 'react'\nimport { Typography, makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n flexDirection: 'row'\n },\n prefix: {\n fontWeight: 600\n },\n title: {\n flex: 1\n },\n detail: {\n marginLeft: theme.spacing(2)\n }\n}))\n\nconst FileProfile = (props) => {\n const classes = useStyles()\n const { children, fileName, fileType, size, lastModifiedDate } = props\n return (\n <div>\n <div className={classes.root}>\n <Typography variant='body1' className={classes.title}>\n <strong>{fileName}</strong>\n </Typography>\n <Typography variant='caption' className={classes.detail}>\n <span className={classes.prefix}>Type:</span> {fileType}\n </Typography>\n <Typography variant='caption' className={classes.detail}>\n <span className={classes.prefix}>Size:</span> {size}\n </Typography>\n </div>\n {children}\n {/* Last modified not supported in FireFox */}\n {/* <Typography variant=\"caption\">\n <span className={classes.prefix}>Last Modified:</span>{' '}\n {lastModifiedDate}\n </Typography> */}\n </div>\n )\n}\nexport default FileProfile\n","import React from 'react'\nimport { makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n justifyContent: 'center'\n },\n image: {\n maxWidth: 465\n }\n}))\n\nconst ImagePreview = (props) => {\n const { image } = props\n const classes = useStyles()\n\n return (\n <div className={classes.root}>\n <img className={classes.image} src={image} alt='upload preview' />\n </div>\n )\n}\nexport default ImagePreview\n","import React from 'react'\nimport FileProfile from './FileProfile'\nimport ImagePreview from './ImagePreview'\n\nexport const FileType = (props) => {\n let type = ''\n const { fileType, image, fileName, size, lastModifiedDate } = props\n\n switch (fileType) {\n case 'pdf':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n />\n )\n break\n case 'doc':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n />\n )\n break\n case 'png':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n case 'jpg':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n case 'jpeg':\n type = (\n <FileProfile\n fileType={fileType}\n fileName={fileName}\n size={size}\n lastModifiedDate={lastModifiedDate}\n >\n <ImagePreview image={image} />\n </FileProfile>\n )\n break\n\n default:\n }\n\n return type\n}\n","export enum APIStatusCode {\n Success = 200,\n Created = 201,\n Accepted = 202,\n NoContent = 204,\n Forbidden = 403,\n}\n\nexport enum AttachmentType {\n SiteInstruction = 1,\n RFI = 2\n}\n\nexport enum AttachmentAction {\n None = 1,\n Delete = 2,\n Remove = 3\n};\n","import React, { useCallback, useState } from 'react';\nimport { apiMutate } from '../utilities';\nimport { Box } from '../UI';\nimport { AmbientCard } from '../UI/surfaces/cards/AmbientCard';\nimport { DragDropFileUpload } from './DragDropFileUpload';\nimport { LinearProgress } from '../UI';\nimport { List, ListItem, IconButton } from '@material-ui/core';\nimport { ConfigService } from '../configService/index';\nimport DeleteIcon from '@material-ui/icons/Delete';\nimport { DownloadIcon, ChromeCloseIcon } from '@fluentui/react-icons';\nimport { useTranslation } from 'react-i18next';\nimport { useHandleAxiosSnackbar } from '../utilities';\nimport { Divider } from '@material-ui/core';\nimport { AttachmentAction } from './enums/systemEnums';\nimport { FluentDialog } from '../UI';\nimport { FluentIconButton } from '../UI/inputs/buttons';\nimport './Attachments.css';\nimport { AmbientAutoComplete } from '../UI/inputs/textField';\n\nconst removeDuplicateFiles = (incomingFiles, existingFiles) => {\n const uniqueFiles = [];\n const duplicateFiles = [];\n\n incomingFiles.forEach((newFile) => {\n const exists = existingFiles.some(\n (existingFile) =>\n existingFile.name === newFile.name ||\n existingFile.fileName === newFile.name\n );\n\n if (exists) {\n duplicateFiles.push(newFile);\n } else {\n uniqueFiles.push(newFile);\n }\n });\n\n return { uniqueFiles, duplicateFiles };\n};\n\nexport const Attachments = ({\n allowedExtensions,\n MAX_FILE_SIZE_MB,\n filePreview,\n setFilePreview,\n currentAttachments,\n setCurrentAttachments,\n attachmentTypes,\n attachmentType,\n setAttachmentType,\n attachmentProgress,\n setAttachmentProgress,\n previousAttachments,\n setPreviousAttachments\n}) => {\n const [attachmentDialogOpen, setAttachmentDialogOpen] = useState(false);\n const [attachmentToDelete, setAttachmentToDelete] = useState(null);\n const [attachmentToDeleteIndex, setAttachmentToDeleteIndex] = useState(0);\n const [attachmentAction, setAttachmentAction] = useState(\n AttachmentAction.None\n );\n\n const { handleErrorSnackbar, handleSuccessSnackbar } =\n useHandleAxiosSnackbar();\n const { t } = useTranslation();\n\n const initiateAttachmentAction = useCallback((action, file, index) => {\n setAttachmentAction(action);\n setAttachmentToDelete(file);\n setAttachmentToDeleteIndex(index);\n setAttachmentDialogOpen(true);\n }, []);\n\n const handleAttachmentDeleteClick = useCallback(\n (file, index) => {\n initiateAttachmentAction(AttachmentAction.Delete, file, index);\n },\n [initiateAttachmentAction]\n );\n\n const handleAttachmentRemoveClick = useCallback(\n (file, index) => {\n initiateAttachmentAction(AttachmentAction.Remove, file, index);\n },\n [initiateAttachmentAction]\n );\n\n const handleCloseAttachmentDialog = useCallback(() => {\n setAttachmentAction(AttachmentAction.None);\n setAttachmentToDelete({});\n setAttachmentDialogOpen(false);\n }, []);\n\n const removeAttachmentFromList = useCallback(\n (attachments, setAttachments) => {\n setAttachments((prev) =>\n prev.filter((item, i) => i !== attachmentToDeleteIndex)\n );\n handleSuccessSnackbar(t('Attachment Removed Successfully'));\n handleCloseAttachmentDialog();\n },\n [\n attachmentToDeleteIndex,\n handleSuccessSnackbar,\n handleCloseAttachmentDialog,\n t\n ]\n );\n\n const deleteAttachment = useCallback(async () => {\n try {\n setAttachmentProgress(true);\n const filePayload = { ...attachmentToDelete, isDeleted: true };\n\n await apiMutate(\n ConfigService.productV1ApiUrl,\n `UdpTransactionAttachment/${attachmentToDelete.transactionAttachmentId}`,\n {\n method: 'put',\n data: filePayload\n }\n );\n removeAttachmentFromList(previousAttachments, setPreviousAttachments);\n } catch (error) {\n handleErrorSnackbar(\n 'Failed to delete attachment',\n 'We encountered a system error while trying to delete the file. Please try again.'\n );\n console.error(error);\n } finally {\n setAttachmentProgress(false);\n setAttachmentDialogOpen(false);\n }\n }, [\n attachmentToDelete,\n removeAttachmentFromList,\n previousAttachments,\n setPreviousAttachments,\n setAttachmentProgress,\n handleErrorSnackbar\n ]);\n\n const handleDownloadFile = useCallback(async (file) => {\n try {\n const response = await apiMutate(\n ConfigService.productV1ApiUrl,\n `UdpTransactionAttachment/${file.transactionAttachmentId}/udpDriveFile/download`,\n {}\n );\n const url = response.data.link;\n const link = document.createElement('a');\n link.href = url;\n link.download = file.fileName ?? file.name;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n } catch (e) {\n console.error('Download failed', e);\n }\n }, []);\n\n const handleAddFiles = useCallback(\n async (files) => {\n const incomingFiles = Array.from(files);\n const validFiles = [];\n const invalidFiles = [];\n\n incomingFiles.forEach((file) => {\n const ext = file.name.split('.').pop().toLowerCase();\n const sizeInMB = file.size / (1024 * 1024);\n\n if (!allowedExtensions.includes(ext)) {\n invalidFiles.push(`${file.name} (Invalid file type)`);\n } else if (sizeInMB > MAX_FILE_SIZE_MB) {\n invalidFiles.push(`${file.name} (Exceeds ${MAX_FILE_SIZE_MB} MB)`);\n } else {\n validFiles.push(file);\n }\n });\n\n const allExistingFiles = [...previousAttachments, ...currentAttachments];\n const { uniqueFiles, duplicateFiles } = removeDuplicateFiles(\n validFiles,\n allExistingFiles\n );\n\n if (uniqueFiles.length > 0) {\n setCurrentAttachments((prev) => [...prev, ...uniqueFiles]);\n }\n\n if (invalidFiles.length > 0) {\n handleErrorSnackbar(\n 'Files not added',\n `The following files had errors:\\n${invalidFiles.join('\\n')}`\n );\n setFilePreview(true);\n }\n\n if (duplicateFiles.length > 0) {\n const duplicateNames = duplicateFiles.map((f) => f.name).join(', ');\n handleErrorSnackbar(\n 'Duplicates skipped',\n `The following files already exist and were not added: ${duplicateNames}`\n );\n }\n },\n [\n allowedExtensions,\n MAX_FILE_SIZE_MB,\n previousAttachments,\n currentAttachments,\n setCurrentAttachments,\n handleErrorSnackbar,\n setFilePreview\n ]\n );\n\n const handleAttachmentTypeSelect = useCallback(\n (attachmentType) => {\n setAttachmentType(attachmentType);\n },\n [setAttachmentType]\n );\n\n const renderCurrentAttachments = () => {\n return currentAttachments.map((file, index) => (\n <React.Fragment key={index}>\n {index > 0 && <Divider component='li' />}\n <ListItem\n className='list-separator-item'\n style={{ display: 'flex', justifyContent: 'space-between' }}\n >\n <Box>{file.fileName ? file.fileName : file.name}</Box>\n <Box>\n <IconButton\n onClick={() => handleAttachmentRemoveClick(file, index)}\n >\n <DeleteIcon />\n </IconButton>\n </Box>\n </ListItem>\n </React.Fragment>\n ));\n };\n\n const renderPreviousAttachments = () => {\n return previousAttachments.map((file, index) => (\n <ListItem\n key={index}\n style={{ display: 'flex', justifyContent: 'space-between' }}\n >\n <Box>{file.fileName ?? file.name}</Box>\n <Box>\n <IconButton onClick={() => handleAttachmentDeleteClick(file, index)}>\n <DeleteIcon />\n </IconButton>\n <IconButton onClick={() => handleDownloadFile(file)}>\n <DownloadIcon />\n </IconButton>\n </Box>\n </ListItem>\n ));\n };\n\n const renderConfirmationContent = () => {\n const isDeleteAction = attachmentAction === AttachmentAction.Delete;\n const actionVerb = isDeleteAction ? 'delete' : 'remove';\n const fileName = attachmentToDelete?.fileName ?? attachmentToDelete?.name;\n\n return (\n <>\n <p className={'deleteSubTitle'}>\n Are you sure you want to {actionVerb} this attachment -{' '}\n <strong>{`\"${fileName}\"`}</strong>?\n </p>\n {isDeleteAction && <p>This action cannot be undone.</p>}\n </>\n );\n };\n\n return (\n <>\n <div className='card-wrapper'>\n {attachmentProgress && (\n <div className='linear-progress'>\n <LinearProgress />\n </div>\n )}\n <AmbientCard\n fullWidth={true}\n title={t('Add New Attachments')}\n variant='secondary'\n subtitle={'These files will be included with the submittal(s)'}\n >\n <DragDropFileUpload\n title='Drag and drop files here or click to browse'\n handleUploadFile={handleAddFiles}\n hideSelectFileButton={false}\n hideFilePreview={!filePreview}\n minHeight='200px'\n maxHeight='400px'\n multiple={true}\n />\n <AmbientAutoComplete\n variant='outlined'\n isMultiple={false}\n value={attachmentType}\n getOptionLabelFunction={(option) => option.name}\n onChange={handleAttachmentTypeSelect}\n options={attachmentTypes?.pageList}\n label={t('Select Attachment Type')}\n required\n />\n </AmbientCard>\n {currentAttachments?.length > 0 && (\n <AmbientCard\n fullWidth={true}\n title={t('Current Attachments')}\n subtitle={`${currentAttachments.length} file(s) attached`}\n >\n <List>{renderCurrentAttachments()}</List>\n </AmbientCard>\n )}\n {previousAttachments.length > 0 && (\n <AmbientCard fullWidth={true} title={t('Previous Attachments')}>\n <List>{renderPreviousAttachments()}</List>\n </AmbientCard>\n )}\n </div>\n\n <FluentDialog\n title={\n <div className={'deleteTitle'}>\n <span>\n {attachmentAction === AttachmentAction.Delete\n ? t('Delete Attachment')\n : t('Remove Attachment')}\n </span>\n <FluentIconButton\n aria-label='close'\n icon={ChromeCloseIcon}\n onClick={handleCloseAttachmentDialog}\n />\n </div>\n }\n message={renderConfirmationContent()}\n labelOne={\n attachmentAction === AttachmentAction.Delete\n ? t('Delete')\n : t('Remove')\n }\n actionOne={\n attachmentAction === AttachmentAction.Delete\n ? deleteAttachment\n : () =>\n removeAttachmentFromList(\n currentAttachments,\n setCurrentAttachments\n )\n }\n labelTwo={t('Cancel')}\n actionTwo={handleCloseAttachmentDialog}\n open={attachmentDialogOpen}\n handleClose={handleCloseAttachmentDialog}\n fullWidth\n />\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAGA,MAAMA,cAAY,YAAY,WAAW;CACvC,MAAM;EACJ,SAAS;EACT,eAAe;EAChB;CACD,QAAQ,EACN,YAAY,KACb;CACD,OAAO,EACL,MAAM,GACP;CACD,QAAQ,EACN,YAAY,MAAM,QAAQ,EAAE,EAC7B;CACF,EAAE;AAEH,MAAM,eAAe,UAAU;CAC7B,MAAM,UAAUA,aAAW;CAC3B,MAAM,EAAE,UAAU,UAAU,UAAU,MAAM,qBAAqB;AACjE,QACE,oCAAC,aACC,oCAAC,SAAI,WAAW,QAAQ,QACtB,oCAAC;EAAW,SAAQ;EAAQ,WAAW,QAAQ;IAC7C,oCAAC,gBAAQ,SAAkB,CAChB,EACb,oCAAC;EAAW,SAAQ;EAAU,WAAW,QAAQ;IAC/C,oCAAC,UAAK,WAAW,QAAQ,UAAQ,QAAY,OAAE,SACpC,EACb,oCAAC;EAAW,SAAQ;EAAU,WAAW,QAAQ;IAC/C,oCAAC,UAAK,WAAW,QAAQ,UAAQ,QAAY,OAAE,KACpC,CACT,EACL,SAMG;;AAGV,0BAAe;;;;ACzCf,MAAM,YAAY,YAAY,WAAW;CACvC,MAAM;EACJ,SAAS;EACT,gBAAgB;EACjB;CACD,OAAO,EACL,UAAU,KACX;CACF,EAAE;AAEH,MAAM,gBAAgB,UAAU;CAC9B,MAAM,EAAE,UAAU;CAClB,MAAM,UAAU,WAAW;AAE3B,QACE,oCAAC,SAAI,WAAW,QAAQ,QACtB,oCAAC;EAAI,WAAW,QAAQ;EAAO,KAAK;EAAO,KAAI;GAAmB,CAC9D;;AAGV,2BAAe;;;;ACnBf,MAAa,YAAY,UAAU;CACjC,IAAI,OAAO;CACX,MAAM,EAAE,UAAU,O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AAiB;EAC1B,OAAO,EAAE,yBAAyB;EAClC;GACA,CACU,EACb,oBAAoB,SAAS,KAC5B,oCAAC;EACC,WAAW;EACX,OAAO,EAAE,sBAAsB;EAC/B,UAAU,GAAG,mBAAmB,OAAO;IAEvC,oCAAC,YAAM,0BAA0B,CAAQ,CAC7B,EAEf,oBAAoB,SAAS,KAC5B,oCAAC;EAAY,WAAW;EAAM,OAAO,EAAE,uBAAuB;IAC5D,oCAAC,YAAM,2BAA2B,CAAQ,CAC9B,CAEZ,EAEN,oCAAC;EACC,OACE,oCAAC,SAAI,WAAW,iBACd,oCAAC,cACE,qBAAqB,iBAAiB,SACnC,EAAE,oBAAoB,GACtB,EAAE,oBAAoB,CACrB,EACP,oCAAC;GACC,cAAW;GACX,MAAM;GACN,SAAS;IACT,CACE;EAER,SAAS,2BAA2B;EACpC,UACE,qBAAqB,iBAAiB,SAClC,EAAE,SAAS,GACX,EAAE,SAAS;EAEjB,WACE,qBAAqB,iBAAiB,SAClC,yBAEE,yBACE,oBACA,sBACD;EAET,UAAU,EAAE,SAAS;EACrB,WAAW;EACX,MAAM;EACN,aAAa;EACb;GACA,CACD"}
@@ -1,9 +1,9 @@
1
1
  import { n as getEntityAttributes } from "./CrudBrowserUtilities-C9nVmUR3.js";
2
2
  import { t as ConfigService } from "./configService-C4uoG3wj.js";
3
- import { t as apiMutate } from "./useAxiosMutate-DeqKSi5z.js";
4
- import { _ as NodeActionEnums } from "./unitySystemEnums-CZDCsD5t.js";
3
+ import { t as apiMutate } from "./useAxiosMutate-CChDJc0L.js";
4
+ import { _ as NodeActionEnums } from "./unitySystemEnums-BhRg17du.js";
5
5
  import { n as ActionContext, r as ActionDispatchContext, t as ActionLoadingDispatchContext } from "./ActionLoadingDispatchContext-XEU8GWlw.js";
6
- import { t as useHandleAction } from "./actionUtils-CPmiSAig.js";
6
+ import { t as useHandleAction } from "./actionUtils-BU2Z1V_c.js";
7
7
  import { t as useCatalogStore } from "./catalogStore-DP2GxpTJ.js";
8
8
  import { n as useShellStore } from "./shellStore-C8zfPsZ-.js";
9
9
  import { useCallback, useContext } from "react";
@@ -189,4 +189,4 @@ const useActionState = () => useContext(ActionContext);
189
189
 
190
190
  //#endregion
191
191
  export { useActions as n, useActionState as t };
192
- //# sourceMappingURL=useActions-DZe6YlEm.js.map
192
+ //# sourceMappingURL=useActions-Ct3UAtTb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useActions-DZe6YlEm.js","names":[],"sources":["../src/hooks/useActions.js"],"sourcesContent":["import { useContext, useCallback } from 'react';\nimport { ActionDispatchContext } from '../contexts/ActionDispatchContext';\nimport { ActionContext } from '../contexts/ActionContext';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { getEntityAttributes } from '../utilities/maintenanceEngine/CrudBrowserUtilities';\nimport { useSnackbar } from 'notistack';\nimport { useTranslation } from 'react-i18next';\nimport { useHandleAction } from '../actions/utils/actionUtils';\nimport { ActionLoadingDispatchContext } from '../contexts/ActionLoadingDispatchContext';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { useShellStore } from '../stores/shellStore';\nimport { NodeActionEnums } from '../enums/unitySystemEnums';\nimport { ConfigService } from '../configService';\n\nexport const useActions = () => {\n const dispatch = useContext(ActionDispatchContext);\n const dispatchActionLoading = useContext(ActionLoadingDispatchContext);\n const actionState = useActionState();\n const { catalogsMap, currentApiCatalogId } = useCatalogStore();\n const currentContainerId = useShellStore((state) => state.currentContainerId);\n const { enqueueSnackbar } = useSnackbar();\n const { t } = useTranslation();\n const { handleAction } = useHandleAction();\n\n const setActionLoading = useCallback(\n (loading) => {\n dispatchActionLoading({\n type: 'SET_ACTION_LOADING',\n loading\n });\n },\n [dispatchActionLoading]\n );\n\n const setActionWaitingToExecute = useCallback(\n (actionId) => {\n dispatchActionLoading({\n type: 'SET_ACTION_WAITING_TO_EXECUTE',\n actionId\n });\n },\n [dispatchActionLoading]\n );\n\n const executeGetAction = useCallback(\n async (actionId) =>\n apiMutate(\n ConfigService.integrationV1ApiUrl,\n `action/${actionId}`,\n {\n method: 'get'\n },\n {}\n ),\n []\n );\n\n const executeAction = useCallback(\n async (data, id) =>\n apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apimethod/executeQueryWithParameters/${id}`,\n {\n method: 'post'\n },\n data\n ),\n []\n );\n\n const setActionPanels = useCallback(\n (actionPanels, containerId) => {\n dispatch({ type: 'SET_ACTION_PANELS', actionPanels, containerId });\n },\n [dispatch]\n );\n\n const getActionPanelByAction = useCallback(\n (act) => {\n if (act && actionState) {\n const actionPanels = actionState.actionPanels;\n const containerId = currentContainerId || 0;\n\n if (actionPanels && Array.isArray(actionPanels) && actionPanels[containerId]) {\n const actionPanel = actionPanels[containerId];\n\n if (Array.isArray(actionPanel.panelActions)) {\n const foundPanel = actionPanel.find((ap) => {\n return ap.panelActions.find((pa) => {\n return pa.actionId === act.actionId;\n });\n });\n\n return foundPanel;\n } else {\n console.error('panelActions is not an array:', actionPanel.panelActions);\n }\n } else {\n console.error('actionPanels is not valid:', actionPanels);\n }\n } else {\n console.error('act or actionState is not defined:', act, actionState);\n }\n\n return null;\n },\n [actionState, currentContainerId]\n );\n\n const setupAndExecuteAction = useCallback(\n async (catalog, actionId, actionData) => {\n await executeGetAction(actionId).then((resp) => {\n const panel = getActionPanelByAction(resp.data);\n let entityName = panel?.entityName;\n\n if (!panel) {\n entityName = resp?.data?.parameters?.entityName;\n }\n\n if (entityName) {\n actionState?.setCurrentEntityName &&\n actionState.setCurrentEntityName(entityName);\n\n const eAttributes = getEntityAttributes(catalog, entityName);\n\n if (\n !eAttributes?.length &&\n resp.data.actionTypeId !== NodeActionEnums.Start_Workflow\n ) {\n enqueueSnackbar(t(`Unable to retrieve entity attributes.`), {\n variant: 'error',\n anchorOrigin: {\n vertical: 'top',\n horizontal: 'center'\n }\n });\n } else {\n handleAction(\n dispatch,\n resp.data,\n actionState,\n executeAction,\n catalog?.apiCatalogId,\n eAttributes,\n actionData,\n currentContainerId\n );\n }\n } else {\n console.warn('Entity name does not exist');\n // global actions will not necissarily have an entity name\n handleAction(\n dispatch,\n resp.data,\n actionState,\n executeAction,\n catalog?.apiCatalogId,\n {},\n actionData,\n currentContainerId\n );\n }\n });\n },\n [\n actionState,\n enqueueSnackbar,\n executeAction,\n executeGetAction,\n getActionPanelByAction,\n handleAction,\n t,\n dispatch,\n currentContainerId\n ]\n );\n\n const executeTriggerAction = useCallback(\n async (actionId, actionData) => {\n if (actionState?.catalogPromise) {\n if (!actionState?.catalog) setActionWaitingToExecute(actionId);\n try {\n const result = await actionState.catalogPromise;\n // Promise has been fulfilled, handle the result\n setupAndExecuteAction(\n result?.data || catalogsMap[currentApiCatalogId],\n actionId,\n actionData\n );\n } catch (error) {\n // Promise has been rejected or an error occurred\n enqueueSnackbar(t(`Unable to retrieve catalog data.`), {\n variant: 'error',\n anchorOrigin: {\n vertical: 'top',\n horizontal: 'center'\n }\n });\n }\n }\n setActionWaitingToExecute('');\n },\n [\n setupAndExecuteAction,\n enqueueSnackbar,\n t,\n actionState,\n setActionWaitingToExecute,\n catalogsMap,\n currentApiCatalogId\n ]\n );\n\n const triggerAction = useCallback(\n (actionId, actionData) => {\n executeTriggerAction(actionId, actionData);\n },\n [executeTriggerAction]\n );\n\n const triggerMultipleActions = useCallback(\n (actionIds) => {\n actionIds.forEach((id) => {\n executeTriggerAction(id);\n });\n },\n [executeTriggerAction]\n );\n\n const setCatalogEntities = useCallback(\n (catalogEntities) => {\n dispatch({ type: 'SET_CATALOG_ENTITIES', catalogEntities });\n },\n [dispatch]\n );\n\n const setCatalogPromotedEntities = useCallback(\n (catalogPromotedEntities) => {\n dispatch({\n type: 'SET_CATALOG_PROMOTED_ENTITIES',\n catalogPromotedEntities\n });\n },\n [dispatch]\n );\n\n const setInquiryParams = useCallback(\n (inquiryParams, containerId) => {\n dispatch({\n type: 'SET_INQUIRY_PARAMS',\n inquiryParams,\n containerId\n });\n },\n [dispatch]\n );\n\n const setShowInquiryHeaderActions = useCallback(\n (showInquiryHeaderActions) => {\n dispatch({\n type: 'SET_SHOW_INQUIRY_HEADER_ACTIONS',\n showInquiryHeaderActions\n });\n },\n [dispatch]\n );\n\n const setMenuListState = useCallback(\n (menuListState) => {\n dispatch({\n type: 'SET_MENU_LIST_STATE',\n menuListState\n });\n },\n [dispatch]\n );\n\n const closeAllSplitScreens = useCallback(() => {\n dispatch({\n type: 'CLOSE_ALL_SPLIT_SCREENS'\n });\n }, [dispatch]);\n\n const openSplitScreen = useCallback(\n (splitScreen) => {\n dispatch({\n type: 'OPEN_SPLIT_SCREEN',\n splitScreen\n });\n },\n [dispatch]\n );\n\n const openPageSplitScreen = useCallback(\n (pageSplitScreen) => {\n dispatch({\n type: 'OPEN_PAGE_SPLIT_SCREEN',\n pageSplitScreen\n });\n },\n [dispatch]\n );\n\n const openPageContainerSplitScreen = useCallback(\n (pageContainerSplitScreen) => {\n dispatch({\n type: 'OPEN_PAGE_CONTAINER_SPLIT_SCREEN',\n pageContainerSplitScreen\n });\n },\n [dispatch]\n );\n\n const setApiCatalog = useCallback(\n (catalog) => {\n dispatch({\n type: 'SET_API_CATALOG',\n catalog\n });\n },\n [dispatch]\n );\n\n return {\n setActionPanels,\n triggerAction,\n triggerMultipleActions,\n setCatalogEntities,\n setCatalogPromotedEntities,\n setInquiryParams,\n setShowInquiryHeaderActions,\n setMenuListState,\n closeAllSplitScreens,\n openSplitScreen,\n openPageSplitScreen,\n openPageContainerSplitScreen,\n setApiCatalog,\n setActionLoading\n };\n};\n\nexport const useActionState = () => useContext(ActionContext);\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAa,mBAAmB;CAC9B,MAAM,WAAW,WAAW,sBAAsB;CAClD,MAAM,wBAAwB,WAAW,6BAA6B;CACtE,MAAM,cAAc,gBAAgB;CACpC,MAAM,EAAE,aAAa,wBAAwB,iBAAiB;CAC9D,MAAM,qBAAqB,eAAe,UAAU,MAAM,mBAAmB;CAC7E,MAAM,EAAE,oBAAoB,aAAa;CACzC,MAAM,EAAE,MAAM,gB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S,CACX;EA8FC,4BA5FiC,aAChC,4BAA4B;AAC3B,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAqFC,kBAnFuB,aACtB,eAAe,gBAAgB;AAC9B,YAAS;IACP,MAAM;IACN;IACA;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EA2EC,6BAzEkC,aACjC,6BAA6B;AAC5B,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAkEC,kBAhEuB,aACtB,kBAAkB;AACjB,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAyDC,sBAvD2B,kBAAkB;AAC7C,YAAS,EACP,MAAM,2BACP,CAAC;KACD,CAAC,SAAS,CAAC;EAoDZ,iBAlDsB,aACrB,gBAAgB;AACf,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EA2CC,qBAzC0B,aACzB,oBAAoB;AACnB,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAkCC,8BAhCmC,aAClC,6BAA6B;AAC5B,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAyBC,eAvBoB,aACnB,YAAY;AACX,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAgBC;EACD;;AAGH,MAAa,uBAAuB,WAAW,cAAc"}
1
+ {"version":3,"file":"useActions-Ct3UAtTb.js","names":[],"sources":["../src/hooks/useActions.js"],"sourcesContent":["import { useContext, useCallback } from 'react';\nimport { ActionDispatchContext } from '../contexts/ActionDispatchContext';\nimport { ActionContext } from '../contexts/ActionContext';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { getEntityAttributes } from '../utilities/maintenanceEngine/CrudBrowserUtilities';\nimport { useSnackbar } from 'notistack';\nimport { useTranslation } from 'react-i18next';\nimport { useHandleAction } from '../actions/utils/actionUtils';\nimport { ActionLoadingDispatchContext } from '../contexts/ActionLoadingDispatchContext';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { useShellStore } from '../stores/shellStore';\nimport { NodeActionEnums } from '../enums/unitySystemEnums';\nimport { ConfigService } from '../configService';\n\nexport const useActions = () => {\n const dispatch = useContext(ActionDispatchContext);\n const dispatchActionLoading = useContext(ActionLoadingDispatchContext);\n const actionState = useActionState();\n const { catalogsMap, currentApiCatalogId } = useCatalogStore();\n const currentContainerId = useShellStore((state) => state.currentContainerId);\n const { enqueueSnackbar } = useSnackbar();\n const { t } = useTranslation();\n const { handleAction } = useHandleAction();\n\n const setActionLoading = useCallback(\n (loading) => {\n dispatchActionLoading({\n type: 'SET_ACTION_LOADING',\n loading\n });\n },\n [dispatchActionLoading]\n );\n\n const setActionWaitingToExecute = useCallback(\n (actionId) => {\n dispatchActionLoading({\n type: 'SET_ACTION_WAITING_TO_EXECUTE',\n actionId\n });\n },\n [dispatchActionLoading]\n );\n\n const executeGetAction = useCallback(\n async (actionId) =>\n apiMutate(\n ConfigService.integrationV1ApiUrl,\n `action/${actionId}`,\n {\n method: 'get'\n },\n {}\n ),\n []\n );\n\n const executeAction = useCallback(\n async (data, id) =>\n apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apimethod/executeQueryWithParameters/${id}`,\n {\n method: 'post'\n },\n data\n ),\n []\n );\n\n const setActionPanels = useCallback(\n (actionPanels, containerId) => {\n dispatch({ type: 'SET_ACTION_PANELS', actionPanels, containerId });\n },\n [dispatch]\n );\n\n const getActionPanelByAction = useCallback(\n (act) => {\n if (act && actionState) {\n const actionPanels = actionState.actionPanels;\n const containerId = currentContainerId || 0;\n\n if (actionPanels && Array.isArray(actionPanels) && actionPanels[containerId]) {\n const actionPanel = actionPanels[containerId];\n\n if (Array.isArray(actionPanel.panelActions)) {\n const foundPanel = actionPanel.find((ap) => {\n return ap.panelActions.find((pa) => {\n return pa.actionId === act.actionId;\n });\n });\n\n return foundPanel;\n } else {\n console.error('panelActions is not an array:', actionPanel.panelActions);\n }\n } else {\n console.error('actionPanels is not valid:', actionPanels);\n }\n } else {\n console.error('act or actionState is not defined:', act, actionState);\n }\n\n return null;\n },\n [actionState, currentContainerId]\n );\n\n const setupAndExecuteAction = useCallback(\n async (catalog, actionId, actionData) => {\n await executeGetAction(actionId).then((resp) => {\n const panel = getActionPanelByAction(resp.data);\n let entityName = panel?.entityName;\n\n if (!panel) {\n entityName = resp?.data?.parameters?.entityName;\n }\n\n if (entityName) {\n actionState?.setCurrentEntityName &&\n actionState.setCurrentEntityName(entityName);\n\n const eAttributes = getEntityAttributes(catalog, entityName);\n\n if (\n !eAttributes?.length &&\n resp.data.actionTypeId !== NodeActionEnums.Start_Workflow\n ) {\n enqueueSnackbar(t(`Unable to retrieve entity attributes.`), {\n variant: 'error',\n anchorOrigin: {\n vertical: 'top',\n horizontal: 'center'\n }\n });\n } else {\n handleAction(\n dispatch,\n resp.data,\n actionState,\n executeAction,\n catalog?.apiCatalogId,\n eAttributes,\n actionData,\n currentContainerId\n );\n }\n } else {\n console.warn('Entity name does not exist');\n // global actions will not necissarily have an entity name\n handleAction(\n dispatch,\n resp.data,\n actionState,\n executeAction,\n catalog?.apiCatalogId,\n {},\n actionData,\n currentContainerId\n );\n }\n });\n },\n [\n actionState,\n enqueueSnackbar,\n executeAction,\n executeGetAction,\n getActionPanelByAction,\n handleAction,\n t,\n dispatch,\n currentContainerId\n ]\n );\n\n const executeTriggerAction = useCallback(\n async (actionId, actionData) => {\n if (actionState?.catalogPromise) {\n if (!actionState?.catalog) setActionWaitingToExecute(actionId);\n try {\n const result = await actionState.catalogPromise;\n // Promise has been fulfilled, handle the result\n setupAndExecuteAction(\n result?.data || catalogsMap[currentApiCatalogId],\n actionId,\n actionData\n );\n } catch (error) {\n // Promise has been rejected or an error occurred\n enqueueSnackbar(t(`Unable to retrieve catalog data.`), {\n variant: 'error',\n anchorOrigin: {\n vertical: 'top',\n horizontal: 'center'\n }\n });\n }\n }\n setActionWaitingToExecute('');\n },\n [\n setupAndExecuteAction,\n enqueueSnackbar,\n t,\n actionState,\n setActionWaitingToExecute,\n catalogsMap,\n currentApiCatalogId\n ]\n );\n\n const triggerAction = useCallback(\n (actionId, actionData) => {\n executeTriggerAction(actionId, actionData);\n },\n [executeTriggerAction]\n );\n\n const triggerMultipleActions = useCallback(\n (actionIds) => {\n actionIds.forEach((id) => {\n executeTriggerAction(id);\n });\n },\n [executeTriggerAction]\n );\n\n const setCatalogEntities = useCallback(\n (catalogEntities) => {\n dispatch({ type: 'SET_CATALOG_ENTITIES', catalogEntities });\n },\n [dispatch]\n );\n\n const setCatalogPromotedEntities = useCallback(\n (catalogPromotedEntities) => {\n dispatch({\n type: 'SET_CATALOG_PROMOTED_ENTITIES',\n catalogPromotedEntities\n });\n },\n [dispatch]\n );\n\n const setInquiryParams = useCallback(\n (inquiryParams, containerId) => {\n dispatch({\n type: 'SET_INQUIRY_PARAMS',\n inquiryParams,\n containerId\n });\n },\n [dispatch]\n );\n\n const setShowInquiryHeaderActions = useCallback(\n (showInquiryHeaderActions) => {\n dispatch({\n type: 'SET_SHOW_INQUIRY_HEADER_ACTIONS',\n showInquiryHeaderActions\n });\n },\n [dispatch]\n );\n\n const setMenuListState = useCallback(\n (menuListState) => {\n dispatch({\n type: 'SET_MENU_LIST_STATE',\n menuListState\n });\n },\n [dispatch]\n );\n\n const closeAllSplitScreens = useCallback(() => {\n dispatch({\n type: 'CLOSE_ALL_SPLIT_SCREENS'\n });\n }, [dispatch]);\n\n const openSplitScreen = useCallback(\n (splitScreen) => {\n dispatch({\n type: 'OPEN_SPLIT_SCREEN',\n splitScreen\n });\n },\n [dispatch]\n );\n\n const openPageSplitScreen = useCallback(\n (pageSplitScreen) => {\n dispatch({\n type: 'OPEN_PAGE_SPLIT_SCREEN',\n pageSplitScreen\n });\n },\n [dispatch]\n );\n\n const openPageContainerSplitScreen = useCallback(\n (pageContainerSplitScreen) => {\n dispatch({\n type: 'OPEN_PAGE_CONTAINER_SPLIT_SCREEN',\n pageContainerSplitScreen\n });\n },\n [dispatch]\n );\n\n const setApiCatalog = useCallback(\n (catalog) => {\n dispatch({\n type: 'SET_API_CATALOG',\n catalog\n });\n },\n [dispatch]\n );\n\n return {\n setActionPanels,\n triggerAction,\n triggerMultipleActions,\n setCatalogEntities,\n setCatalogPromotedEntities,\n setInquiryParams,\n setShowInquiryHeaderActions,\n setMenuListState,\n closeAllSplitScreens,\n openSplitScreen,\n openPageSplitScreen,\n openPageContainerSplitScreen,\n setApiCatalog,\n setActionLoading\n };\n};\n\nexport const useActionState = () => useContext(ActionContext);\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAa,mBAAmB;CAC9B,MAAM,WAAW,WAAW,sBAAsB;CAClD,MAAM,wBAAwB,WAAW,6BAA6B;CACtE,MAAM,cAAc,gBAAgB;CACpC,MAAM,EAAE,aAAa,wBAAwB,iBAAiB;CAC9D,MAAM,qBAAqB,eAAe,UAAU,MAAM,mBAAmB;CAC7E,MAAM,EAAE,oBAAoB,aAAa;CACzC,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,EAAE,iBAAiB,iBAAiB;CAE1C,MAAM,mBAAmB,aACtB,YAAY;AACX,wBAAsB;GACpB,MAAM;GACN;GACD,CAAC;IAEJ,CAAC,sBAAsB,CACxB;CAED,MAAM,4BAA4B,aAC/B,aAAa;AACZ,wBAAsB;GACpB,MAAM;GACN;GACD,CAAC;IAEJ,CAAC,sBAAsB,CACxB;CAED,MAAM,mBAAmB,YACvB,OAAO,aACL,UACE,cAAc,qBACd,UAAU,YACV,EACE,QAAQ,OACT,EACD,EAAE,CACH,EACH,EAAE,CACH;CAED,MAAM,gBAAgB,YACpB,OAAO,MAAM,OACX,UACE,cAAc,qBACd,wCAAwC,MACxC,EACE,QAAQ,QACT,EACD,KACD,EACH,EAAE,CACH;CAED,MAAM,kBAAkB,aACrB,cAAc,gBAAgB;AAC7B,WAAS;GAAE,MAAM;GAAqB;GAAc;GAAa,CAAC;IAEpE,CAAC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A2CC,qBAzC0B,aACzB,oBAAoB;AACnB,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAkCC,8BAhCmC,aAClC,6BAA6B;AAC5B,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAyBC,eAvBoB,aACnB,YAAY;AACX,YAAS;IACP,MAAM;IACN;IACD,CAAC;KAEJ,CAAC,SAAS,CACX;EAgBC;EACD;;AAGH,MAAa,uBAAuB,WAAW,cAAc"}
@@ -1,5 +1,5 @@
1
1
  import { t as ConfigService } from "./configService-C4uoG3wj.js";
2
- import { t as apiMutate } from "./useAxiosMutate-DeqKSi5z.js";
2
+ import { t as apiMutate } from "./useAxiosMutate-CChDJc0L.js";
3
3
  import { t as useCatalogStore } from "./catalogStore-DP2GxpTJ.js";
4
4
  import { useCallback, useEffect, useState } from "react";
5
5
 
@@ -59,4 +59,4 @@ const useApiCatalog = (apiCatalogId) => {
59
59
 
60
60
  //#endregion
61
61
  export { useApiCatalog as t };
62
- //# sourceMappingURL=useApiCatalog-cpchDfC1.js.map
62
+ //# sourceMappingURL=useApiCatalog-CFnv-X8K.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useApiCatalog-cpchDfC1.js","names":[],"sources":["../src/hooks/useApiCatalog.js"],"sourcesContent":["import { useState, useEffect, useCallback } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { ConfigService } from '../configService';\nexport const useApiCatalog = (apiCatalogId) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const [promise, setPromise] = useState(undefined);\n\n const { setCatalogsMap, catalogsMap } = useCatalogStore();\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n useEffect(() => {\n let isMounted = true;\n\n if (!apiCatalogId) return;\n\n if (catalogsMap[apiCatalogId]) {\n setSuccessState(catalogsMap[apiCatalogId]);\n return () => {\n isMounted = false;\n };\n }\n\n const catalogPromise = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}?includeCatalogObjectList=false`,\n {}\n );\n\n const catalogObjectsPromise = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}/catalogObjects`,\n {}\n );\n\n const allPromises = Promise.all([catalogPromise, catalogObjectsPromise]);\n\n allPromises\n .then(([catalogRes, catalogObjectsRes]) => {\n if (isMounted) {\n const apiCatalog = catalogRes.data;\n apiCatalog.ctlg.catalogObjectList = catalogObjectsRes.data;\n setSuccessState(apiCatalog);\n setCatalogsMap({ [apiCatalogId]: apiCatalog });\n }\n })\n .catch(setErrorState);\n setPromise(allPromises);\n\n return () => {\n isMounted = false;\n };\n }, [apiCatalogId, catalogsMap, setCatalogsMap, setSuccessState]);\n\n return { data, loading, error, promise };\n};\n"],"mappings":";;;;;;AAIA,MAAa,iBAAiB,iBAAiB;CAC7C,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,CAAC,SAAS,cAAc,SAAS,OAAU;CAEjD,MAAM,EAAE,gBAAgB,gBAAgB,iBAAiB;CAEzD,MAAM,iBAAiB,MAAM;AAC3B,aAAW,MAAM;AACjB,WAAS,EAAE;;CAGb,MAAM,kBAAkB,aAAa,aAAa;AAChD,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;IAChB,EAAE,CAAC;AAEN,iBAAgB;EACd,IAAI,YAAY;AAEhB,MAAI,CAAC,aAAc;AAEnB,MAAI,YAAY,eAAe;AAC7B,mBAAgB,YAAY,cAAc;AAC1C,gBAAa;AACX,gBAAY;;;EAIhB,MAAM,iBAAiB,UACrB,cAAc,qBACd,cAAc,aAAa,kCAC3B,EAAE,CACH;EAED,MAAM,wBAAwB,UAC5B,cAAc,qBACd,cAAc,aAAa,kBAC3B,EAAE,CACH;EAED,MAAM,cAAc,QAAQ,IAAI,CAAC,gBAAgB,sBAAsB,CAAC;AAExE,cACG,MAAM,CAAC,YAAY,uBAAuB;AACzC,OAAI,WAAW;IACb,MAAM,aAAa,WAAW;AAC9B,eAAW,KAAK,oBAAoB,kBAAkB;AACtD,oBAAgB,WAAW;AAC3B,mBAAe,GAAG,eAAe,YAAY,CAAC;;IAEhD,CACD,MAAM,cAAc;AACvB,aAAW,YAAY;AAEvB,eAAa;AACX,eAAY;;IAEb;EAAC;EAAc;EAAa;EAAgB;EAAgB,CAAC;AAEhE,QAAO;EAAE;EAAM;EAAS;EAAO;EAAS"}
1
+ {"version":3,"file":"useApiCatalog-CFnv-X8K.js","names":[],"sources":["../src/hooks/useApiCatalog.js"],"sourcesContent":["import { useState, useEffect, useCallback } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { ConfigService } from '../configService';\nexport const useApiCatalog = (apiCatalogId) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const [promise, setPromise] = useState(undefined);\n\n const { setCatalogsMap, catalogsMap } = useCatalogStore();\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n useEffect(() => {\n let isMounted = true;\n\n if (!apiCatalogId) return;\n\n if (catalogsMap[apiCatalogId]) {\n setSuccessState(catalogsMap[apiCatalogId]);\n return () => {\n isMounted = false;\n };\n }\n\n const catalogPromise = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}?includeCatalogObjectList=false`,\n {}\n );\n\n const catalogObjectsPromise = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}/catalogObjects`,\n {}\n );\n\n const allPromises = Promise.all([catalogPromise, catalogObjectsPromise]);\n\n allPromises\n .then(([catalogRes, catalogObjectsRes]) => {\n if (isMounted) {\n const apiCatalog = catalogRes.data;\n apiCatalog.ctlg.catalogObjectList = catalogObjectsRes.data;\n setSuccessState(apiCatalog);\n setCatalogsMap({ [apiCatalogId]: apiCatalog });\n }\n })\n .catch(setErrorState);\n setPromise(allPromises);\n\n return () => {\n isMounted = false;\n };\n }, [apiCatalogId, catalogsMap, setCatalogsMap, setSuccessState]);\n\n return { data, loading, error, promise };\n};\n"],"mappings":";;;;;;AAIA,MAAa,iBAAiB,iBAAiB;CAC7C,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,CAAC,SAAS,cAAc,SAAS,OAAU;CAEjD,MAAM,EAAE,gBAAgB,gBAAgB,iBAAiB;CAEzD,MAAM,iBAAiB,MAAM;AAC3B,aAAW,MAAM;AACjB,WAAS,EAAE;;CAGb,MAAM,kBAAkB,aAAa,aAAa;AAChD,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;IAChB,EAAE,CAAC;AAEN,iBAAgB;EACd,IAAI,YAAY;AAEhB,MAAI,CAAC,aAAc;AAEnB,MAAI,YAAY,eAAe;AAC7B,mBAAgB,YAAY,cAAc;AAC1C,gBAAa;AACX,gBAAY;;;EAIhB,MAAM,iBAAiB,UACrB,cAAc,qBACd,cAAc,aAAa,kCAC3B,EAAE,CACH;EAED,MAAM,wBAAwB,UAC5B,cAAc,qBACd,cAAc,aAAa,kBAC3B,EAAE,CACH;EAED,MAAM,cAAc,QAAQ,IAAI,CAAC,gBAAgB,sBAAsB,CAAC;AAExE,cACG,MAAM,CAAC,YAAY,uBAAuB;AACzC,OAAI,WAAW;IACb,MAAM,aAAa,WAAW;AAC9B,eAAW,KAAK,oBAAoB,kBAAkB;AACtD,oBAAgB,WAAW;AAC3B,mBAAe,GAAG,eAAe,YAAY,CAAC;;IAEhD,CACD,MAAM,cAAc;AACvB,aAAW,YAAY;AAEvB,eAAa;AACX,eAAY;;IAEb;EAAC;EAAc;EAAa;EAAgB;EAAgB,CAAC;AAEhE,QAAO;EAAE;EAAM;EAAS;EAAO;EAAS"}
@@ -1,5 +1,5 @@
1
- import { r as handleResponseErrors } from "./apiHelpers-WIR8pqy0.js";
2
- import { t as axiosInterceptors_default } from "./axiosInterceptors-MZ6xeLRS.js";
1
+ import { r as handleResponseErrors } from "./apiHelpers-CMlmFUix.js";
2
+ import { t as axiosInterceptors_default } from "./axiosInterceptors-C27H4uT-.js";
3
3
  import { t as useUser } from "./useUser-wpHGo6jU.js";
4
4
  import { useEffect, useMemo } from "react";
5
5
  import useAxios from "axios-hooks";
@@ -75,4 +75,4 @@ const useAxiosGet = (baseURL, url, config = {}, isManual, useCache = true) => {
75
75
 
76
76
  //#endregion
77
77
  export { useAxiosGetQuery as n, useAxiosGet as t };
78
- //# sourceMappingURL=useAxiosGet-CYnt6Hd0.js.map
78
+ //# sourceMappingURL=useAxiosGet-B3uusywz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAxiosGet-CYnt6Hd0.js","names":["enableAxiosInterceptors"],"sources":["../src/utilities/useAxiosGet.js"],"sourcesContent":["import { useEffect, useMemo } from 'react';\nimport useAxios from 'axios-hooks';\nimport { handleResponseErrors, getMergedConfig } from './apiHelpers';\nimport enableAxiosInterceptors from './axiosInterceptors';\nimport { useUser } from './auth/useUser';\nimport { getStoredTenant } from './storage/UnitySessionStorage';\n\nenableAxiosInterceptors();\n/**\n * A custom hook for making GET requests with query parameters.\n * @template T - The expected type of the response data.\n * @param {string} url - The URL for the request.\n * @param {object} [params] - Optional object for query parameters.\n * @param {import('axios').AxiosRequestConfig} [config] - Optional Axios request config.\n * @param {boolean} [isManual] - If true, the request is not made automatically.\n * @returns {[AxiosState<T>, import('axios-hooks').Refetch<T>]}\n */\nexport const useAxiosGetQuery = (url, params, config, isManual) => {\n const user = useUser();\n\n if (!user?.accessToken) {\n isManual = true;\n }\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n /** @type {[AxiosState<T>, import('axios-hooks').Refetch<T>]} */\n const [{ data, loading, error }, refetch] = useAxios(\n { url, params, ...config },\n { manual: isManual }\n );\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, refetch];\n};\n/**\n * A custom hook for making GET requests with Axios.\n * @template T - The expected type of the response data.\n * @param {string} baseURL - The base URL for the request.\n * @param {string} url - The URL path for the request.\n * @param {import('axios').AxiosRequestConfig} [config={}] - Optional Axios request config.\n * @param {boolean} [isManual] - If true, the request is not made automatically.\n * @param {boolean} [useCache=true] - If true, caching is enabled.\n * @returns {[AxiosState<T>, import('axios-hooks').Refetch<T>]}\n */\nexport const useAxiosGet = (\n baseURL,\n url,\n config = {},\n isManual,\n useCache = true\n) => {\n const user = useUser();\n\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n const fullURL = { url: `${baseURL}/${url}` };\n /** @type {[AxiosState<T>, import('axios-hooks').Refetch<T>]} */\n const [{ data, loading, error }, refetch] = useAxios(\n { ...fullURL, ...config },\n { manual: isManual, useCache: useCache }\n );\n\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, refetch];\n};\n"],"mappings":";;;;;;;AAOAA,2BAAyB;;;;;;;;;;AAUzB,MAAa,oBAAoB,KAAK,QAAQ,QAAQ,aAAa;CACjE,MAAM,OAAO,SAAS;AAEtB,KAAI,CAAC,MAAM,YACT,YAAW;AAOb,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;;CAIlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAAE;EAAK;EAAQ,GAAG;EAAQ,EAC1B,EAAE,QAAQ,UAAU,CACrB;AACD,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ;;;;;;;;;;;;AAY5C,MAAa,eACX,SACA,KACA,SAAS,EAAE,EACX,UACA,WAAW,SACR;CACH,MAAM,OAAO,SAAS;AAOtB,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;;CAKlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAHgB,KAAK,GAAG,QAAQ,GAAG;EAGrB,GAAG;EAAQ,EACzB;EAAE,QAAQ;EAAoB;EAAU,CACzC;AAED,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ"}
1
+ {"version":3,"file":"useAxiosGet-B3uusywz.js","names":["enableAxiosInterceptors"],"sources":["../src/utilities/useAxiosGet.js"],"sourcesContent":["import { useEffect, useMemo } from 'react';\nimport useAxios from 'axios-hooks';\nimport { handleResponseErrors, getMergedConfig } from './apiHelpers';\nimport enableAxiosInterceptors from './axiosInterceptors';\nimport { useUser } from './auth/useUser';\nimport { getStoredTenant } from './storage/UnitySessionStorage';\n\nenableAxiosInterceptors();\n/**\n * A custom hook for making GET requests with query parameters.\n * @template T - The expected type of the response data.\n * @param {string} url - The URL for the request.\n * @param {object} [params] - Optional object for query parameters.\n * @param {import('axios').AxiosRequestConfig} [config] - Optional Axios request config.\n * @param {boolean} [isManual] - If true, the request is not made automatically.\n * @returns {[AxiosState<T>, import('axios-hooks').Refetch<T>]}\n */\nexport const useAxiosGetQuery = (url, params, config, isManual) => {\n const user = useUser();\n\n if (!user?.accessToken) {\n isManual = true;\n }\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n /** @type {[AxiosState<T>, import('axios-hooks').Refetch<T>]} */\n const [{ data, loading, error }, refetch] = useAxios(\n { url, params, ...config },\n { manual: isManual }\n );\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, refetch];\n};\n/**\n * A custom hook for making GET requests with Axios.\n * @template T - The expected type of the response data.\n * @param {string} baseURL - The base URL for the request.\n * @param {string} url - The URL path for the request.\n * @param {import('axios').AxiosRequestConfig} [config={}] - Optional Axios request config.\n * @param {boolean} [isManual] - If true, the request is not made automatically.\n * @param {boolean} [useCache=true] - If true, caching is enabled.\n * @returns {[AxiosState<T>, import('axios-hooks').Refetch<T>]}\n */\nexport const useAxiosGet = (\n baseURL,\n url,\n config = {},\n isManual,\n useCache = true\n) => {\n const user = useUser();\n\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n const fullURL = { url: `${baseURL}/${url}` };\n /** @type {[AxiosState<T>, import('axios-hooks').Refetch<T>]} */\n const [{ data, loading, error }, refetch] = useAxios(\n { ...fullURL, ...config },\n { manual: isManual, useCache: useCache }\n );\n\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, refetch];\n};\n"],"mappings":";;;;;;;AAOAA,2BAAyB;;;;;;;;;;AAUzB,MAAa,oBAAoB,KAAK,QAAQ,QAAQ,aAAa;CACjE,MAAM,OAAO,SAAS;AAEtB,KAAI,CAAC,MAAM,YACT,YAAW;AAOb,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;;CAIlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAAE;EAAK;EAAQ,GAAG;EAAQ,EAC1B,EAAE,QAAQ,UAAU,CACrB;AACD,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ;;;;;;;;;;;;AAY5C,MAAa,eACX,SACA,KACA,SAAS,EAAE,EACX,UACA,WAAW,SACR;CACH,MAAM,OAAO,SAAS;AAOtB,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;;CAKlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAHgB,KAAK,GAAG,QAAQ,GAAG;EAGrB,GAAG;EAAQ,EACzB;EAAE,QAAQ;EAAoB;EAAU,CACzC;AAED,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ"}
@@ -1,5 +1,5 @@
1
- import { n as getMergedConfig, r as handleResponseErrors, t as getAccessToken } from "./apiHelpers-WIR8pqy0.js";
2
- import { t as axiosInterceptors_default } from "./axiosInterceptors-MZ6xeLRS.js";
1
+ import { n as getMergedConfig, r as handleResponseErrors, t as getAccessToken } from "./apiHelpers-CMlmFUix.js";
2
+ import { t as axiosInterceptors_default } from "./axiosInterceptors-C27H4uT-.js";
3
3
  import { t as useUser } from "./useUser-wpHGo6jU.js";
4
4
  import { useEffect, useMemo } from "react";
5
5
  import useAxios from "axios-hooks";
@@ -40,4 +40,4 @@ const apiMutate = async (baseURL, url, config, data) => {
40
40
 
41
41
  //#endregion
42
42
  export { useAxiosMutate as n, apiMutate as t };
43
- //# sourceMappingURL=useAxiosMutate-DeqKSi5z.js.map
43
+ //# sourceMappingURL=useAxiosMutate-CChDJc0L.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAxiosMutate-DeqKSi5z.js","names":["enableAxiosInterceptors"],"sources":["../src/utilities/useAxiosMutate.js"],"sourcesContent":["import { useEffect, useMemo } from 'react';\nimport useAxios from 'axios-hooks';\nimport Axios from 'axios';\nimport {\n handleResponseErrors,\n getMergedConfig,\n getAccessToken\n} from './apiHelpers';\nimport enableAxiosInterceptors from './axiosInterceptors';\nimport { useUser } from './auth/useUser';\n\nenableAxiosInterceptors();\n\nexport const useAxiosMutate = (baseURL, url, config) => {\n\n const fullURL = { url: `${baseURL}/${url}` };\n const user = useUser()\n\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n const [{ data, loading, error }, execute] = useAxios(\n { ...fullURL, ...config },\n { manual: true }\n );\n\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, execute];\n};\n\nexport const apiMutate = async (baseURL, url, config, data) => {\n const fullURL = { url: `${baseURL}/${url}` };\n const accessToken = await getAccessToken();\n const mergedConfig = getMergedConfig(accessToken, config);\n return Axios({ ...fullURL, ...mergedConfig, ...data });\n};\n"],"mappings":";;;;;;;;AAWAA,2BAAyB;AAEzB,MAAa,kBAAkB,SAAS,KAAK,WAAW;CAEtD,MAAM,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO;CAC5C,MAAM,OAAO,SAAS;AAOtB,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;CAGlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAAE,GAAG;EAAS,GAAG;EAAQ,EACzB,EAAE,QAAQ,MAAM,CACjB;AAED,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ;;AAG5C,MAAa,YAAY,OAAO,SAAS,KAAK,QAAQ,SAAS;CAC7D,MAAM,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO;CAE5C,MAAM,eAAe,gBADD,MAAM,gBAAgB,EACQ,OAAO;AACzD,QAAO,MAAM;EAAE,GAAG;EAAS,GAAG;EAAc,GAAG;EAAM,CAAC"}
1
+ {"version":3,"file":"useAxiosMutate-CChDJc0L.js","names":["enableAxiosInterceptors"],"sources":["../src/utilities/useAxiosMutate.js"],"sourcesContent":["import { useEffect, useMemo } from 'react';\nimport useAxios from 'axios-hooks';\nimport Axios from 'axios';\nimport {\n handleResponseErrors,\n getMergedConfig,\n getAccessToken\n} from './apiHelpers';\nimport enableAxiosInterceptors from './axiosInterceptors';\nimport { useUser } from './auth/useUser';\n\nenableAxiosInterceptors();\n\nexport const useAxiosMutate = (baseURL, url, config) => {\n\n const fullURL = { url: `${baseURL}/${url}` };\n const user = useUser()\n\n const headers = useMemo(() => {\n const currentHeaders = config.headers ?? {}\n currentHeaders.currentTenantId ||= user?.currentTenantId ?? ''\n return currentHeaders\n }, [user, config])\n config.headers = headers\n\n const [{ data, loading, error }, execute] = useAxios(\n { ...fullURL, ...config },\n { manual: true }\n );\n\n useEffect(() => {\n handleResponseErrors(error);\n }, [error]);\n\n return [{ data, loading, error }, execute];\n};\n\nexport const apiMutate = async (baseURL, url, config, data) => {\n const fullURL = { url: `${baseURL}/${url}` };\n const accessToken = await getAccessToken();\n const mergedConfig = getMergedConfig(accessToken, config);\n return Axios({ ...fullURL, ...mergedConfig, ...data });\n};\n"],"mappings":";;;;;;;;AAWAA,2BAAyB;AAEzB,MAAa,kBAAkB,SAAS,KAAK,WAAW;CAEtD,MAAM,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO;CAC5C,MAAM,OAAO,SAAS;AAOtB,QAAO,UALS,cAAc;EAC5B,MAAM,iBAAiB,OAAO,WAAW,EAAE;AAC3C,iBAAe,oBAAoB,MAAM,mBAAmB;AAC5D,SAAO;IACN,CAAC,MAAM,OAAO,CAAC;CAGlB,MAAM,CAAC,EAAE,MAAM,SAAS,SAAS,WAAW,SAC1C;EAAE,GAAG;EAAS,GAAG;EAAQ,EACzB,EAAE,QAAQ,MAAM,CACjB;AAED,iBAAgB;AACd,uBAAqB,MAAM;IAC1B,CAAC,MAAM,CAAC;AAEX,QAAO,CAAC;EAAE;EAAM;EAAS;EAAO,EAAE,QAAQ;;AAG5C,MAAa,YAAY,OAAO,SAAS,KAAK,QAAQ,SAAS;CAC7D,MAAM,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO;CAE5C,MAAM,eAAe,gBADD,MAAM,gBAAgB,EACQ,OAAO;AACzD,QAAO,MAAM;EAAE,GAAG;EAAS,GAAG;EAAc,GAAG;EAAM,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { t as ConfigService } from "./configService-C4uoG3wj.js";
2
- import { t as apiMutate } from "./useAxiosMutate-DeqKSi5z.js";
3
- import { L as UdpEnums } from "./unitySystemEnums-CZDCsD5t.js";
2
+ import { t as apiMutate } from "./useAxiosMutate-CChDJc0L.js";
3
+ import { L as UdpEnums } from "./unitySystemEnums-BhRg17du.js";
4
4
  import { t as useCatalogStore } from "./catalogStore-DP2GxpTJ.js";
5
5
  import { t as useLookupsStore } from "./lookupsStore-DPI8oD9R.js";
6
6
  import { useCallback, useEffect, useState } from "react";
@@ -94,4 +94,4 @@ const usePromotedMethodEntities = (apiCatalogId) => {
94
94
 
95
95
  //#endregion
96
96
  export { usePromotedLookupMethods as n, usePromotedMethodEntities as t };
97
- //# sourceMappingURL=usePromotedMethodEntities-D-GoZJZB.js.map
97
+ //# sourceMappingURL=usePromotedMethodEntities-CKfXJwBP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePromotedMethodEntities-D-GoZJZB.js","names":[],"sources":["../src/hooks/usePromotedLookupMethods.js","../src/hooks/usePromotedMethodEntities.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useLookupsStore } from '../stores/lookupsStore';\nimport { UdpEnums } from '../enums/unitySystemEnums';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedLookupMethods = (\n apiCatalogId,\n productId = ConfigService.config.UNITY_PRODUCT_ID\n) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const setLookupApiMethodId = useLookupsStore(\n (state) => state.setLookupApiMethodId\n );\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = (response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n };\n\n useEffect(() => {\n if (!apiCatalogId) return;\n\n const p = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apicatalog/${apiCatalogId}/promotedMethodEntities/${UdpEnums.Udp_Lookup}/product/${productId}?compareSanitizedName=true`,\n {}\n );\n p.then((response) => {\n setSuccessState(response.data);\n const baseGetDataUdpLookupMethod =\n response.data['unityBaseGetDataMethod'];\n const baseGetUdpLookupMethod = response.data['unityBaseGetMethod'];\n const apiMethodId =\n baseGetDataUdpLookupMethod?.apiMethodId ||\n baseGetUdpLookupMethod?.apiMethodId;\n if (apiMethodId) {\n setLookupApiMethodId(apiMethodId);\n }\n }).catch(setErrorState);\n }, [apiCatalogId, setLookupApiMethodId, productId]);\n\n return { data, loading, error };\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedMethodEntities = (apiCatalogId) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const [promise, setPromise] = useState(undefined);\n\n const { setPromotedMethodEntitiesMap, promotedMethodEntitiesMap } =\n useCatalogStore();\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n useEffect(() => {\n let isMounted = true;\n\n if (!apiCatalogId) return;\n\n if (promotedMethodEntitiesMap[apiCatalogId]) {\n setSuccessState(promotedMethodEntitiesMap[apiCatalogId]);\n return () => {\n isMounted = false;\n };\n }\n\n const p = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}/promotedMethodEntities?productId=${ConfigService.config.UNITY_PRODUCT_ID}`,\n {}\n );\n\n p.then((response) => {\n if (isMounted) {\n setSuccessState(response.data);\n setPromotedMethodEntitiesMap({ [apiCatalogId]: response.data });\n }\n }).catch(setErrorState);\n setPromise(p);\n\n return () => {\n isMounted = false;\n };\n }, [\n apiCatalogId,\n promotedMethodEntitiesMap,\n setPromotedMethodEntitiesMap,\n setSuccessState\n ]);\n\n return { data, loading, error, promise };\n};\n"],"mappings":";;;;;;;;AAMA,MAAa,4BACX,cACA,YAAY,cAAc,OAAO,qBAC9B;CACH,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,uBAAuB,iBAC1B,UAAU,MAAM,qBAClB;CAED,MAAM,iBAAiB,MAAM;AAC3B,aAAW,MAAM;AACjB,WAAS,EAAE;;CAGb,MAAM,mBAAmB,aAAa;AACpC,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;;AAGnB,iBAAgB;AACd,MAAI,CAAC,aAAc;AAOnB,EALU,UACR,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F,QAAO;EAAE;EAAM;EAAS;EAAO;EAAS"}
1
+ {"version":3,"file":"usePromotedMethodEntities-CKfXJwBP.js","names":[],"sources":["../src/hooks/usePromotedLookupMethods.js","../src/hooks/usePromotedMethodEntities.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useLookupsStore } from '../stores/lookupsStore';\nimport { UdpEnums } from '../enums/unitySystemEnums';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedLookupMethods = (\n apiCatalogId,\n productId = ConfigService.config.UNITY_PRODUCT_ID\n) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const setLookupApiMethodId = useLookupsStore(\n (state) => state.setLookupApiMethodId\n );\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = (response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n };\n\n useEffect(() => {\n if (!apiCatalogId) return;\n\n const p = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apicatalog/${apiCatalogId}/promotedMethodEntities/${UdpEnums.Udp_Lookup}/product/${productId}?compareSanitizedName=true`,\n {}\n );\n p.then((response) => {\n setSuccessState(response.data);\n const baseGetDataUdpLookupMethod =\n response.data['unityBaseGetDataMethod'];\n const baseGetUdpLookupMethod = response.data['unityBaseGetMethod'];\n const apiMethodId =\n baseGetDataUdpLookupMethod?.apiMethodId ||\n baseGetUdpLookupMethod?.apiMethodId;\n if (apiMethodId) {\n setLookupApiMethodId(apiMethodId);\n }\n }).catch(setErrorState);\n }, [apiCatalogId, setLookupApiMethodId, productId]);\n\n return { data, loading, error };\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { apiMutate } from '../utilities/useAxiosMutate';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedMethodEntities = (apiCatalogId) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const [promise, setPromise] = useState(undefined);\n\n const { setPromotedMethodEntitiesMap, promotedMethodEntitiesMap } =\n useCatalogStore();\n\n const setErrorState = (e) => {\n setLoading(false);\n setError(e);\n };\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n useEffect(() => {\n let isMounted = true;\n\n if (!apiCatalogId) return;\n\n if (promotedMethodEntitiesMap[apiCatalogId]) {\n setSuccessState(promotedMethodEntitiesMap[apiCatalogId]);\n return () => {\n isMounted = false;\n };\n }\n\n const p = apiMutate(\n ConfigService.integrationV1ApiUrl,\n `apiCatalog/${apiCatalogId}/promotedMethodEntities?productId=${ConfigService.config.UNITY_PRODUCT_ID}`,\n {}\n );\n\n p.then((response) => {\n if (isMounted) {\n setSuccessState(response.data);\n setPromotedMethodEntitiesMap({ [apiCatalogId]: response.data });\n }\n }).catch(setErrorState);\n setPromise(p);\n\n return () => {\n isMounted = false;\n };\n }, [\n apiCatalogId,\n promotedMethodEntitiesMap,\n setPromotedMethodEntitiesMap,\n setSuccessState\n ]);\n\n return { data, loading, error, promise };\n};\n"],"mappings":";;;;;;;;AAMA,MAAa,4BACX,cACA,YAAY,cAAc,OAAO,qBAC9B;CACH,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,uBAAuB,iBAC1B,UAAU,MAAM,qBAClB;CAED,MAAM,iBAAiB,MAAM;AAC3B,aAAW,MAAM;AACjB,WAAS,EAAE;;CAGb,MAAM,mBAAmB,aAAa;AACpC,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;;AAGnB,iBAAgB;AACd,MAAI,CAAC,aAAc;AAOnB,EALU,UACR,cAAc,qBACd,cAAc,aAAa,0BAA0B,SAAS,WAAW,WAAW,UAAU,6BAC9F,EAAE,CACH,CACC,MAA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-C4uoG3wj.js";
2
2
  import { r as getSanitizedName } from "./entityUtilities-_8w-Zjs3.js";
3
3
  import { t as useCatalogStore } from "./catalogStore-DP2GxpTJ.js";
4
- import { t as useAxiosGet } from "./useAxiosGet-CYnt6Hd0.js";
4
+ import { t as useAxiosGet } from "./useAxiosGet-B3uusywz.js";
5
5
  import { useCallback, useEffect, useMemo, useState } from "react";
6
6
 
7
7
  //#region src/hooks/usePromotedMethodEntity.js
@@ -87,4 +87,4 @@ const usePromotedMethodEntity = (entityName, compareSanitizedName = false, apiCa
87
87
 
88
88
  //#endregion
89
89
  export { usePromotedMethodEntity as t };
90
- //# sourceMappingURL=usePromotedMethodEntity-B4rk75tH.js.map
90
+ //# sourceMappingURL=usePromotedMethodEntity-Fr6JxDuh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePromotedMethodEntity-B4rk75tH.js","names":[],"sources":["../src/hooks/usePromotedMethodEntity.js"],"sourcesContent":["import { useState, useEffect, useCallback, useMemo } from 'react';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { useAxiosGet } from '../utilities/useAxiosGet';\nimport { getSanitizedName } from '../utilities/entities/entityUtilities';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedMethodEntity = (\n entityName,\n compareSanitizedName = false,\n apiCatalogId,\n productId = ConfigService.config.UNITY_PRODUCT_ID\n) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const { currentApiCatalogId, setPromotedEntityMap, promotedEntityMap } =\n useCatalogStore();\n\n const acId = apiCatalogId || currentApiCatalogId;\n\n const setErrorState = useCallback((e) => {\n setLoading(false);\n setError(e);\n }, []);\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n const cachedData = useMemo(() => {\n if (!entityName) {\n return null;\n }\n let entityNameKey = entityName?.toLowerCase() || '';\n if (compareSanitizedName) {\n entityNameKey = getSanitizedName(entityName).toLowerCase();\n }\n if (promotedEntityMap?.[acId]?.[productId]?.[entityNameKey]) {\n return promotedEntityMap[acId][productId][entityNameKey];\n }\n return null;\n }, [acId, productId, entityName, promotedEntityMap, compareSanitizedName]);\n\n const [\n {\n data: promotedEntity,\n loading: promotedEntityLoading,\n error: promotedEntityError\n }\n ] = useAxiosGet(\n ConfigService.integrationV1ApiUrl,\n `apicatalog/${acId}/promotedMethodEntities/${entityName}/product/${productId}?compareSanitizedName=${compareSanitizedName}`,\n {},\n !!!acId || !!!productId || !!!entityName || !!cachedData,\n false\n );\n\n useEffect(() => {\n let isMounted = true;\n\n if (entityName) {\n let entityNameKey = entityName.toLowerCase();\n let promotedEntityName = promotedEntity?.entityName?.toLowerCase();\n if (compareSanitizedName) {\n entityNameKey = getSanitizedName(entityName).toLowerCase();\n if (promotedEntityName) {\n promotedEntityName = getSanitizedName(promotedEntityName);\n }\n }\n if (cachedData) {\n setSuccessState(cachedData);\n return () => {\n isMounted = false;\n };\n }\n\n if (promotedEntity && promotedEntityName === entityNameKey) {\n if (isMounted) {\n const updatedPromotedEntityMap = { ...promotedEntityMap };\n if (updatedPromotedEntityMap[acId]) {\n if (updatedPromotedEntityMap[acId][productId]) {\n if (updatedPromotedEntityMap[acId][productId][entityNameKey]) {\n updatedPromotedEntityMap[acId][productId][entityNameKey] =\n promotedEntity;\n } else {\n updatedPromotedEntityMap[acId][productId] = {\n ...updatedPromotedEntityMap[acId][productId],\n [entityNameKey]: promotedEntity\n };\n }\n } else {\n updatedPromotedEntityMap[acId][productId] = {\n [entityNameKey]: promotedEntity\n };\n }\n } else {\n updatedPromotedEntityMap[acId] = {\n [productId]: { [entityNameKey]: promotedEntity }\n };\n }\n\n setPromotedEntityMap(updatedPromotedEntityMap);\n setSuccessState(\n updatedPromotedEntityMap[acId][productId][entityNameKey]\n );\n }\n }\n }\n if (promotedEntityError) {\n setErrorState();\n }\n }, [\n promotedEntity,\n acId,\n productId,\n entityName,\n promotedEntityMap,\n setSuccessState,\n setErrorState,\n promotedEntityError,\n setPromotedEntityMap,\n cachedData,\n compareSanitizedName\n ]);\n\n return {\n data,\n loading: promotedEntityLoading || loading,\n error\n };\n};\n"],"mappings":";;;;;;;AAMA,MAAa,2BACX,YACA,uBAAuB,OACvB,cACA,YAAY,cAAc,OAAO,qBAC9B;CACH,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,EAAE,qBAAqB,sBAAsB,sBACjD,iBAAiB;CAEnB,MAAM,OAAO,gBAAgB;CAE7B,MAAM,gBAAgB,aAAa,MAAM;AACvC,aAAW,MAAM;AACjB,WAAS,EAAE;IACV,EAAE,CAAC;CAEN,MAAM,kBAAkB,aAAa,aAAa;AAChD,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;IAChB,EAAE,CAAC;CAEN,MAAM,aAAa,cAAc;AAC/B,MAAI,CAAC,WACH,QAAO;EAET,IAAI,gBAAgB,YAAY,aAAa,IAAI;AACjD,MAAI,qBACF,iBAAgB,iBAAiB,WAAW,CAAC,aAAa;AAE5D,MAAI,oBAAoB,QAAQ,aAAa,eAC3C,QAAO,kBAAkB,MAAM,WAAW;AAE5C,SAAO;IACN;EAAC;EAAM;EAAW;EAAY;EAAmB;EAAqB,CAAC;CAE1E,MAAM,CACJ,EACE,MAAM,gBACN,SAAS,uBACT,OAAO,yBAEP,YACF,cAAc,qBACd,cAAc,KAAK,0BAA0B,WAAW,WAAW,UAAU,wBAAwB,wBACrG,EAAE,EACF,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,YAC9C,MACD;AAED,iBAAgB;EACd,IAAI,YAAY;AAEhB,MAAI,YAAY;GACd,IAAI,gBAAgB,WAAW,aAAa;GAC5C,IAAI,qBAAqB,gBAAgB,YAAY,aAAa;AAClE,OAAI,sBAAsB;AACxB,oBAAgB,iBAAiB,WAAW,CAAC,aAAa;AAC1D,QAAI,mBACF,sBAAqB,iBAAiB,mBAAmB;;AAG7D,OAAI,YAAY;AACd,oBAAgB,WAAW;AAC3B,iBAAa;AACX,iBAAY;;;AAIhB,OAAI,kBAAkB,uBAAuB,eAC3C;QAAI,WAAW;KACb,MAAM,2BAA2B,EAAE,GAAG,mBAAmB;AACzD,SAAI,yBAAyB,MAC3B,KAAI,yBAAyB,MAAM,WACjC,KAAI,yBAAyB,MAAM,WAAW,eAC5C,0BAAyB,MAAM,WAAW,iBACxC;SAEF,0BAAyB,MAAM,aAAa;MAC1C,GAAG,yBAAyB,MAAM;OACjC,gBAAgB;MAClB;SAGH,0BAAyB,MAAM,aAAa,GACzC,gBAAgB,gBAClB;SAGH,0BAAyB,QAAQ,GAC9B,YAAY,GAAG,gBAAgB,gBAAgB,EACjD;AAGH,0BAAqB,yBAAyB;AAC9C,qBACE,yBAAyB,MAAM,WAAW,eAC3C;;;;AAIP,MAAI,oBACF,gBAAe;IAEhB;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,QAAO;EACL;EACA,SAAS,yBAAyB;EAClC;EACD"}
1
+ {"version":3,"file":"usePromotedMethodEntity-Fr6JxDuh.js","names":[],"sources":["../src/hooks/usePromotedMethodEntity.js"],"sourcesContent":["import { useState, useEffect, useCallback, useMemo } from 'react';\nimport { useCatalogStore } from '../stores/catalogStore';\nimport { useAxiosGet } from '../utilities/useAxiosGet';\nimport { getSanitizedName } from '../utilities/entities/entityUtilities';\nimport { ConfigService } from '../configService';\n\nexport const usePromotedMethodEntity = (\n entityName,\n compareSanitizedName = false,\n apiCatalogId,\n productId = ConfigService.config.UNITY_PRODUCT_ID\n) => {\n const [data, setData] = useState(undefined);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(undefined);\n const { currentApiCatalogId, setPromotedEntityMap, promotedEntityMap } =\n useCatalogStore();\n\n const acId = apiCatalogId || currentApiCatalogId;\n\n const setErrorState = useCallback((e) => {\n setLoading(false);\n setError(e);\n }, []);\n\n const setSuccessState = useCallback((response) => {\n setError(undefined);\n setLoading(false);\n setData(response);\n }, []);\n\n const cachedData = useMemo(() => {\n if (!entityName) {\n return null;\n }\n let entityNameKey = entityName?.toLowerCase() || '';\n if (compareSanitizedName) {\n entityNameKey = getSanitizedName(entityName).toLowerCase();\n }\n if (promotedEntityMap?.[acId]?.[productId]?.[entityNameKey]) {\n return promotedEntityMap[acId][productId][entityNameKey];\n }\n return null;\n }, [acId, productId, entityName, promotedEntityMap, compareSanitizedName]);\n\n const [\n {\n data: promotedEntity,\n loading: promotedEntityLoading,\n error: promotedEntityError\n }\n ] = useAxiosGet(\n ConfigService.integrationV1ApiUrl,\n `apicatalog/${acId}/promotedMethodEntities/${entityName}/product/${productId}?compareSanitizedName=${compareSanitizedName}`,\n {},\n !!!acId || !!!productId || !!!entityName || !!cachedData,\n false\n );\n\n useEffect(() => {\n let isMounted = true;\n\n if (entityName) {\n let entityNameKey = entityName.toLowerCase();\n let promotedEntityName = promotedEntity?.entityName?.toLowerCase();\n if (compareSanitizedName) {\n entityNameKey = getSanitizedName(entityName).toLowerCase();\n if (promotedEntityName) {\n promotedEntityName = getSanitizedName(promotedEntityName);\n }\n }\n if (cachedData) {\n setSuccessState(cachedData);\n return () => {\n isMounted = false;\n };\n }\n\n if (promotedEntity && promotedEntityName === entityNameKey) {\n if (isMounted) {\n const updatedPromotedEntityMap = { ...promotedEntityMap };\n if (updatedPromotedEntityMap[acId]) {\n if (updatedPromotedEntityMap[acId][productId]) {\n if (updatedPromotedEntityMap[acId][productId][entityNameKey]) {\n updatedPromotedEntityMap[acId][productId][entityNameKey] =\n promotedEntity;\n } else {\n updatedPromotedEntityMap[acId][productId] = {\n ...updatedPromotedEntityMap[acId][productId],\n [entityNameKey]: promotedEntity\n };\n }\n } else {\n updatedPromotedEntityMap[acId][productId] = {\n [entityNameKey]: promotedEntity\n };\n }\n } else {\n updatedPromotedEntityMap[acId] = {\n [productId]: { [entityNameKey]: promotedEntity }\n };\n }\n\n setPromotedEntityMap(updatedPromotedEntityMap);\n setSuccessState(\n updatedPromotedEntityMap[acId][productId][entityNameKey]\n );\n }\n }\n }\n if (promotedEntityError) {\n setErrorState();\n }\n }, [\n promotedEntity,\n acId,\n productId,\n entityName,\n promotedEntityMap,\n setSuccessState,\n setErrorState,\n promotedEntityError,\n setPromotedEntityMap,\n cachedData,\n compareSanitizedName\n ]);\n\n return {\n data,\n loading: promotedEntityLoading || loading,\n error\n };\n};\n"],"mappings":";;;;;;;AAMA,MAAa,2BACX,YACA,uBAAuB,OACvB,cACA,YAAY,cAAc,OAAO,qBAC9B;CACH,MAAM,CAAC,MAAM,WAAW,SAAS,OAAU;CAC3C,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,OAAU;CAC7C,MAAM,EAAE,qBAAqB,sBAAsB,sBACjD,iBAAiB;CAEnB,MAAM,OAAO,gBAAgB;CAE7B,MAAM,gBAAgB,aAAa,MAAM;AACvC,aAAW,MAAM;AACjB,WAAS,EAAE;IACV,EAAE,CAAC;CAEN,MAAM,kBAAkB,aAAa,aAAa;AAChD,WAAS,OAAU;AACnB,aAAW,MAAM;AACjB,UAAQ,SAAS;IAChB,EAAE,CAAC;CAEN,MAAM,aAAa,cAAc;AAC/B,MAAI,CAAC,WACH,QAAO;EAET,IAAI,gBAAgB,YAAY,aAAa,IAAI;AACjD,MAAI,qBACF,iBAAgB,iBAAiB,WAAW,CAAC,aAAa;AAE5D,MAAI,oBAAoB,QAAQ,aAAa,eAC3C,QAAO,kBAAkB,MAAM,WAAW;AAE5C,SAAO;IACN;EAAC;EAAM;EAAW;EAAY;EAAmB;EAAqB,CAAC;CAE1E,MAAM,CACJ,EACE,MAAM,gBACN,SAAS,uBACT,OAAO,yBAEP,YACF,cAAc,qBACd,cAAc,KAAK,0BAA0B,WAAW,WAAW,UAAU,wBAAwB,wBACrG,EAAE,EACF,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,YAC9C,MACD;AAED,iBAAgB;EACd,IAAI,YAAY;AAEhB,MAAI,YAAY;GACd,IAAI,gBAAgB,WAAW,aAAa;GAC5C,IAAI,qBAAqB,gBAAgB,YAAY,aAAa;AAClE,OAAI,sBAAsB;AACxB,oBAAgB,iBAAiB,WAAW,CAAC,aAAa;AAC1D,QAAI,mBACF,sBAAqB,iBAAiB,mBAAmB;;AAG7D,OAAI,YAAY;AACd,oBAAgB,WAAW;AAC3B,iBAAa;AACX,iBAAY;;;AAIhB,OAAI,kBAAkB,uBAAuB,eAC3C;QAAI,WAAW;KACb,MAAM,2BAA2B,EAAE,GAAG,mBAAmB;AACzD,SAAI,yBAAyB,MAC3B,KAAI,yBAAyB,MAAM,WACjC,KAAI,yBAAyB,MAAM,WAAW,eAC5C,0BAAyB,MAAM,WAAW,iBACxC;SAEF,0BAAyB,MAAM,aAAa;MAC1C,GAAG,yBAAyB,MAAM;OACjC,gBAAgB;MAClB;SAGH,0BAAyB,MAAM,aAAa,GACzC,gBAAgB,gBAClB;SAGH,0BAAyB,QAAQ,GAC9B,YAAY,GAAG,gBAAgB,gBAAgB,EACjD;AAGH,0BAAqB,yBAAyB;AAC9C,qBACE,yBAAyB,MAAM,WAAW,eAC3C;;;;AAIP,MAAI,oBACF,gBAAe;IAEhB;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,QAAO;EACL;EACA,SAAS,yBAAyB;EAClC;EACD"}
@@ -1,5 +1,5 @@
1
- import { r as handleResponseErrors } from "./apiHelpers-WIR8pqy0.js";
2
- import { i as executeQueryWithParameters, n as executeQueryInstance, r as executeQueryInstanceWithApiMethodInstance, t as executeQueryAdHoc } from "./methodUtils-CDx9usdO.js";
1
+ import { r as handleResponseErrors } from "./apiHelpers-CMlmFUix.js";
2
+ import { i as executeQueryWithParameters, n as executeQueryInstance, r as executeQueryInstanceWithApiMethodInstance, t as executeQueryAdHoc } from "./methodUtils-BmW5r7qU.js";
3
3
  import { t as useLookupsStore } from "./lookupsStore-DPI8oD9R.js";
4
4
  import { t as QueryResult } from "./QueryResult-CNLmUNN4.js";
5
5
  import { useCallback } from "react";
@@ -145,4 +145,4 @@ const useQueryExecutors = () => {
145
145
 
146
146
  //#endregion
147
147
  export { useQueryExecutors as t };
148
- //# sourceMappingURL=useQueryExecutors-DuuHrj2M.js.map
148
+ //# sourceMappingURL=useQueryExecutors-6dxzYiaQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryExecutors-DuuHrj2M.js","names":["lookupApiMethodId","response","lookupConfig"],"sources":["../src/hooks/useQueryExecutors.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useLookupsStore } from '../stores/lookupsStore';\nimport {\n executeQueryInstance,\n executeQueryWithParameters,\n executeQueryInstanceWithApiMethodInstance,\n executeQueryAdHoc\n} from '../udp/utilities/methodUtils';\nimport { handleResponseErrors } from '../utilities/apiHelpers';\nimport ApiMethodInstance from '../models/ApiMethodInstance';\nimport Lookup from '../models/Lookup';\nimport QueryResult from '../models/QueryResult';\nimport { cloneDeep } from 'lodash';\n\n/**\n * value - id of lookup\n * lookupKeyName - used to find the correct lookup key/value pair\n * lookupValueName - the value in which to replace the target value\n */\ninterface LookupConfig {\n value: string;\n lookupKeyName: string | null | undefined;\n lookupValueName: string | null | undefined;\n}\ninterface LookupCollection {\n [field: string]: Lookup;\n}\n\ntype ExecuteInstanceAndMapLookups = (\n queryParams: any,\n apiMethodInstanceId: string | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined,\n urlQueryParams?: string\n) => Promise<any>;\n\ntype ExecuteInstanceWithObjectAndMapLookups = (\n queryParams: any,\n apiMethodInstance: ApiMethodInstance | null | undefined | any,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined,\n urlQueryParams?: string\n) => Promise<any>;\n\ntype ExecuteAdHocAndMapLookups = (\n searchObject: any,\n apiMethodId: string | null | undefined,\n lookupsMap: Record<string, LookupConfig> | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined\n) => Promise<any>;\n\nexport interface UseQueryExecutorsReturn {\n executeQueryInstanceAndMapLookups: ExecuteInstanceAndMapLookups;\n executeQueryInstanceWithObjectAndMapLookups: ExecuteInstanceWithObjectAndMapLookups;\n executeQueryAdHocAndMapLookups: ExecuteAdHocAndMapLookups;\n getCleanData: (data: any, lookupsMap: Record<string, LookupConfig> | null | undefined) => any;\n getLookup: (lookupId: string) => any;\n}\n\nexport const useQueryExecutors = (): UseQueryExecutorsReturn => {\n const { lookupApiMethodId, lookupsDataMap, setLookupsDataMap } =\n useLookupsStore();\n\n const getLookupById = useCallback(\n (lookupId: string) => {\n if (!lookupsDataMap || !lookupId) {\n return null;\n }\n return lookupsDataMap[lookupId];\n },\n [lookupsDataMap]\n );\n\n const getMappedSearchResults: (\n lookups: LookupCollection,\n searchResults: QueryResult\n ) => QueryResult = (\n lookups = {},\n searchResults = {\n pageList: [],\n countable: false,\n total: 0,\n eagerLoad: false,\n aggregateResults: [],\n aliasMap: [],\n lookupsMap: []\n }\n ) => {\n const mapLookup = (item: Record<string, any>) => {\n const updatedItem: Record<string, any> = { ...item };\n\n Object.keys(lookups).forEach((attribute) => {\n const lookup = lookups[attribute];\n const propertyValue = (item as any)[attribute];\n\n if (propertyValue !== null && propertyValue !== undefined) {\n const matchingLookupRow = lookup?.data?.find((row) => {\n if (lookup.keyName && row[lookup.keyName]) {\n return (\n row[lookup.keyName].toString() === propertyValue.toString()\n );\n }\n return false;\n });\n\n if (matchingLookupRow && lookup.valueName) {\n updatedItem[attribute] = matchingLookupRow[lookup.valueName];\n }\n }\n });\n\n return updatedItem;\n };\n const updatedPageList = searchResults.pageList.map(mapLookup);\n const updatedAggregateResults =\n searchResults?.aggregateResults?.map?.(mapLookup);\n\n return {\n ...searchResults,\n pageList: updatedPageList,\n aggregateResults: updatedAggregateResults\n };\n };\n\n const processQueryResponseWithLookups = useCallback(\n async (\n lookupApiMethodId: string,\n response: any,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined,\n lookupDataMap: object | null | undefined\n ) => {\n let resultData: QueryResult = new QueryResult();\n let lookupsMap = {};\n if (response?.status === 200) {\n lookupsMap = lookupDataMap || response?.data?.lookupsMap || {};\n resultData = response.data;\n } else {\n showSnackbars && handleResponseErrors('Could not retrieve query data');\n return null;\n }\n\n // Keys are a list of Entity Properties\n const promises: Array<Promise<any>> = [];\n const lookups: LookupCollection = {};\n\n Object.keys(lookupsMap).forEach((key: string) => {\n const lookupConfig = lookupsMap[key];\n if (lookupConfig?.value) {\n const existingLookup =\n !replaceCache && getLookupById(lookupConfig.value);\n const lookupQueryData = { id: lookupConfig.value };\n\n if (!existingLookup) {\n promises.push(\n executeQueryWithParameters(\n { data: lookupQueryData },\n lookupApiMethodId\n )\n .then((response) => {\n if (response?.status === 200 && response?.data) {\n const lookupConfig = lookupsMap[key];\n lookups[key] = {\n data: response.data.data,\n keyName:\n lookupConfig.lookupKeyName || response.data.keyName,\n valueName:\n lookupConfig.lookupValueName || response.data.valueName,\n businessObjectKey: response.data.businessObjectKey\n };\n setLookupsDataMap(\n { [response.data.id]: response.data },\n replaceCache\n );\n }\n })\n .catch((e) => e)\n );\n } else {\n lookups[key] = {\n data: existingLookup.data,\n keyName: lookupConfig.lookupKeyName || existingLookup.keyName,\n valueName:\n lookupConfig.lookupValueName || existingLookup.valueName,\n businessObjectKey: existingLookup.businessObjectKey\n };\n }\n }\n });\n\n await Promise.all(promises);\n\n resultData = getMappedSearchResults(lookups, resultData);\n return resultData;\n },\n [getLookupById]\n );\n\n const executeQueryAdHocAndMapLookups: ExecuteAdHocAndMapLookups = useCallback(\n async (\n searchObject: any = {},\n apiMethodId: string | null | undefined,\n lookupsMap: Record<string, LookupConfig> | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryAdHoc(searchObject || {}, apiMethodId);\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n lookupsMap\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const executeQueryInstanceAndMapLookups: ExecuteInstanceAndMapLookups = useCallback(\n async (\n queryParams: any = {},\n apiMethodInstanceId: string | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false,\n urlQueryParams: string = ''\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n // return null;\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryInstance(\n { data: queryParams || {} },\n apiMethodInstanceId,\n urlQueryParams\n );\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n null\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const executeQueryInstanceWithObjectAndMapLookups: ExecuteInstanceWithObjectAndMapLookups = useCallback(\n async (\n queryParams: any = {},\n apiMethodInstance: ApiMethodInstance | null | undefined | any,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false,\n urlQueryParams: string = ''\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n // return null;\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryInstanceWithApiMethodInstance(\n {\n data: { queryParams: queryParams || {}, apiMethodInstance }\n },\n urlQueryParams\n );\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n null\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const getLookup = useCallback(\n (lookupId: string) => {\n const cachedLookup = getLookupById(lookupId);\n if (cachedLookup) {\n return cachedLookup;\n }\n if (lookupApiMethodId) {\n const lookupQueryData = { id: lookupId };\n executeQueryWithParameters({ data: lookupQueryData }, lookupApiMethodId)\n .then((response) => {\n if (response?.status === 200 && response?.data) {\n return response;\n }\n })\n .catch((e) => e);\n }\n return null;\n },\n [lookupApiMethodId, getLookupById]\n );\n\n const getCleanData = useCallback(\n (data: any, lookupsMap: Record<string, LookupConfig> | null | undefined) => {\n // Un-Map lookup data\n let cleanData = cloneDeep(data);\n if (lookupsMap && cleanData) {\n Object.keys(lookupsMap).forEach((attribute) => {\n const lookupConfig = (lookupsMap as Record<string, LookupConfig>)[attribute];\n const lookup = getLookup(lookupConfig.value);\n\n if (Array.isArray(cleanData)) {\n // Data is an array of rows.\n cleanData.forEach((row, index) => {\n let currentValue = row[attribute];\n let temp = lookup?.data?.find(\n (item) => item[lookup.valueName] === currentValue\n );\n if (temp != null)\n cleanData[index][attribute] = temp[lookup.keyName];\n });\n } else if (cleanData[attribute]) {\n // Data is a single row\n let currentValue = cleanData[attribute];\n let temp = lookup.data.find(\n (item) => item[lookup.valueName] === currentValue\n );\n if (temp != null) cleanData[attribute] = temp[lookup.keyName];\n }\n });\n }\n return cleanData;\n },\n [getLookup]\n );\n\n return {\n executeQueryInstanceAndMapLookups: executeQueryInstanceAndMapLookups,\n executeQueryInstanceWithObjectAndMapLookups: executeQueryInstanceWithObjectAndMapLookups,\n executeQueryAdHocAndMapLookups: executeQueryAdHocAndMapLookups,\n getCleanData: getCleanData,\n getLookup: getLookup\n };\n};\n"],"mappings":";;;;;;;;AA4DA,MAAa,0BAAmD;CAC9D,MAAM,EAAE,mBAAmB,gBAAgB,sBACzC,iBAAiB;CAEnB,MAAM,gBAAgB,aACnB,aAAqB;AACpB,MAAI,CAAC,kBA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D,SAAI,QAAQ,KACV,WAAU,OAAO,aAAa,KAAK,OAAO;MAC5C;aACO,UAAU,YAAY;KAE/B,IAAI,eAAe,UAAU;KAC7B,IAAI,OAAO,OAAO,KAAK,MACpB,SAAS,KAAK,OAAO,eAAe,aACtC;AACD,SAAI,QAAQ,KAAM,WAAU,aAAa,KAAK,OAAO;;KAEvD;AAEJ,UAAO;KAET,CAAC,UAAU,CACZ;EAOY;EACZ"}
1
+ {"version":3,"file":"useQueryExecutors-6dxzYiaQ.js","names":["lookupApiMethodId","response","lookupConfig"],"sources":["../src/hooks/useQueryExecutors.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useLookupsStore } from '../stores/lookupsStore';\nimport {\n executeQueryInstance,\n executeQueryWithParameters,\n executeQueryInstanceWithApiMethodInstance,\n executeQueryAdHoc\n} from '../udp/utilities/methodUtils';\nimport { handleResponseErrors } from '../utilities/apiHelpers';\nimport ApiMethodInstance from '../models/ApiMethodInstance';\nimport Lookup from '../models/Lookup';\nimport QueryResult from '../models/QueryResult';\nimport { cloneDeep } from 'lodash';\n\n/**\n * value - id of lookup\n * lookupKeyName - used to find the correct lookup key/value pair\n * lookupValueName - the value in which to replace the target value\n */\ninterface LookupConfig {\n value: string;\n lookupKeyName: string | null | undefined;\n lookupValueName: string | null | undefined;\n}\ninterface LookupCollection {\n [field: string]: Lookup;\n}\n\ntype ExecuteInstanceAndMapLookups = (\n queryParams: any,\n apiMethodInstanceId: string | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined,\n urlQueryParams?: string\n) => Promise<any>;\n\ntype ExecuteInstanceWithObjectAndMapLookups = (\n queryParams: any,\n apiMethodInstance: ApiMethodInstance | null | undefined | any,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined,\n urlQueryParams?: string\n) => Promise<any>;\n\ntype ExecuteAdHocAndMapLookups = (\n searchObject: any,\n apiMethodId: string | null | undefined,\n lookupsMap: Record<string, LookupConfig> | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars?: boolean | null | undefined\n) => Promise<any>;\n\nexport interface UseQueryExecutorsReturn {\n executeQueryInstanceAndMapLookups: ExecuteInstanceAndMapLookups;\n executeQueryInstanceWithObjectAndMapLookups: ExecuteInstanceWithObjectAndMapLookups;\n executeQueryAdHocAndMapLookups: ExecuteAdHocAndMapLookups;\n getCleanData: (data: any, lookupsMap: Record<string, LookupConfig> | null | undefined) => any;\n getLookup: (lookupId: string) => any;\n}\n\nexport const useQueryExecutors = (): UseQueryExecutorsReturn => {\n const { lookupApiMethodId, lookupsDataMap, setLookupsDataMap } =\n useLookupsStore();\n\n const getLookupById = useCallback(\n (lookupId: string) => {\n if (!lookupsDataMap || !lookupId) {\n return null;\n }\n return lookupsDataMap[lookupId];\n },\n [lookupsDataMap]\n );\n\n const getMappedSearchResults: (\n lookups: LookupCollection,\n searchResults: QueryResult\n ) => QueryResult = (\n lookups = {},\n searchResults = {\n pageList: [],\n countable: false,\n total: 0,\n eagerLoad: false,\n aggregateResults: [],\n aliasMap: [],\n lookupsMap: []\n }\n ) => {\n const mapLookup = (item: Record<string, any>) => {\n const updatedItem: Record<string, any> = { ...item };\n\n Object.keys(lookups).forEach((attribute) => {\n const lookup = lookups[attribute];\n const propertyValue = (item as any)[attribute];\n\n if (propertyValue !== null && propertyValue !== undefined) {\n const matchingLookupRow = lookup?.data?.find((row) => {\n if (lookup.keyName && row[lookup.keyName]) {\n return (\n row[lookup.keyName].toString() === propertyValue.toString()\n );\n }\n return false;\n });\n\n if (matchingLookupRow && lookup.valueName) {\n updatedItem[attribute] = matchingLookupRow[lookup.valueName];\n }\n }\n });\n\n return updatedItem;\n };\n const updatedPageList = searchResults.pageList.map(mapLookup);\n const updatedAggregateResults =\n searchResults?.aggregateResults?.map?.(mapLookup);\n\n return {\n ...searchResults,\n pageList: updatedPageList,\n aggregateResults: updatedAggregateResults\n };\n };\n\n const processQueryResponseWithLookups = useCallback(\n async (\n lookupApiMethodId: string,\n response: any,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined,\n lookupDataMap: object | null | undefined\n ) => {\n let resultData: QueryResult = new QueryResult();\n let lookupsMap = {};\n if (response?.status === 200) {\n lookupsMap = lookupDataMap || response?.data?.lookupsMap || {};\n resultData = response.data;\n } else {\n showSnackbars && handleResponseErrors('Could not retrieve query data');\n return null;\n }\n\n // Keys are a list of Entity Properties\n const promises: Array<Promise<any>> = [];\n const lookups: LookupCollection = {};\n\n Object.keys(lookupsMap).forEach((key: string) => {\n const lookupConfig = lookupsMap[key];\n if (lookupConfig?.value) {\n const existingLookup =\n !replaceCache && getLookupById(lookupConfig.value);\n const lookupQueryData = { id: lookupConfig.value };\n\n if (!existingLookup) {\n promises.push(\n executeQueryWithParameters(\n { data: lookupQueryData },\n lookupApiMethodId\n )\n .then((response) => {\n if (response?.status === 200 && response?.data) {\n const lookupConfig = lookupsMap[key];\n lookups[key] = {\n data: response.data.data,\n keyName:\n lookupConfig.lookupKeyName || response.data.keyName,\n valueName:\n lookupConfig.lookupValueName || response.data.valueName,\n businessObjectKey: response.data.businessObjectKey\n };\n setLookupsDataMap(\n { [response.data.id]: response.data },\n replaceCache\n );\n }\n })\n .catch((e) => e)\n );\n } else {\n lookups[key] = {\n data: existingLookup.data,\n keyName: lookupConfig.lookupKeyName || existingLookup.keyName,\n valueName:\n lookupConfig.lookupValueName || existingLookup.valueName,\n businessObjectKey: existingLookup.businessObjectKey\n };\n }\n }\n });\n\n await Promise.all(promises);\n\n resultData = getMappedSearchResults(lookups, resultData);\n return resultData;\n },\n [getLookupById]\n );\n\n const executeQueryAdHocAndMapLookups: ExecuteAdHocAndMapLookups = useCallback(\n async (\n searchObject: any = {},\n apiMethodId: string | null | undefined,\n lookupsMap: Record<string, LookupConfig> | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryAdHoc(searchObject || {}, apiMethodId);\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n lookupsMap\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const executeQueryInstanceAndMapLookups: ExecuteInstanceAndMapLookups = useCallback(\n async (\n queryParams: any = {},\n apiMethodInstanceId: string | null | undefined,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false,\n urlQueryParams: string = ''\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n // return null;\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryInstance(\n { data: queryParams || {} },\n apiMethodInstanceId,\n urlQueryParams\n );\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n null\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const executeQueryInstanceWithObjectAndMapLookups: ExecuteInstanceWithObjectAndMapLookups = useCallback(\n async (\n queryParams: any = {},\n apiMethodInstance: ApiMethodInstance | null | undefined | any,\n replaceCache: boolean | null | undefined,\n showSnackbars: boolean | null | undefined = false,\n urlQueryParams: string = ''\n ) => {\n if (!lookupApiMethodId) {\n console.info('Udp Lookup Api Method Id NOT Set');\n // return null;\n }\n console.info('Udp Lookup Api Method Id IS Set');\n\n const response = await executeQueryInstanceWithApiMethodInstance(\n {\n data: { queryParams: queryParams || {}, apiMethodInstance }\n },\n urlQueryParams\n );\n\n if (lookupApiMethodId) {\n return await processQueryResponseWithLookups(\n lookupApiMethodId,\n response,\n replaceCache,\n showSnackbars,\n null\n );\n }\n return response?.data;\n },\n [lookupApiMethodId, processQueryResponseWithLookups]\n );\n\n const getLookup = useCallback(\n (lookupId: string) => {\n const cachedLookup = getLookupById(lookupId);\n if (cachedLookup) {\n return cachedLookup;\n }\n if (lookupApiMethodId) {\n const lookupQueryData = { id: lookupId };\n executeQueryWithParameters({ data: lookupQueryData }, lookupApiMethodId)\n .then((response) => {\n if (response?.status === 200 && response?.data) {\n return response;\n }\n })\n .catch((e) => e);\n }\n return null;\n },\n [lookupApiMethodId, getLookupById]\n );\n\n const getCleanData = useCallback(\n (data: any, lookupsMap: Record<string, LookupConfig> | null | undefined) => {\n // Un-Map lookup data\n let cleanData = cloneDeep(data);\n if (lookupsMap && cleanData) {\n Object.keys(lookupsMap).forEach((attribute) => {\n const lookupConfig = (lookupsMap as Record<string, LookupConfig>)[attribute];\n const lookup = getLookup(lookupConfig.value);\n\n if (Array.isArray(cleanData)) {\n // Data is an array of rows.\n cleanData.forEach((row, index) => {\n let currentValue = row[attribute];\n let temp = lookup?.data?.find(\n (item) => item[lookup.valueName] === currentValue\n );\n if (temp != null)\n cleanData[index][attribute] = temp[lookup.keyName];\n });\n } else if (cleanData[attribute]) {\n // Data is a single row\n let currentValue = cleanData[attribute];\n let temp = lookup.data.find(\n (item) => item[lookup.valueName] === currentValue\n );\n if (temp != null) cleanData[attribute] = temp[lookup.keyName];\n }\n });\n }\n return cleanData;\n },\n [getLookup]\n );\n\n return {\n executeQueryInstanceAndMapLookups: executeQueryInstanceAndMapLookups,\n executeQueryInstanceWithObjectAndMapLookups: executeQueryInstanceWithObjectAndMapLookups,\n executeQueryAdHocAndMapLookups: executeQueryAdHocAndMapLookups,\n getCleanData: getCleanData,\n getLookup: getLookup\n };\n};\n"],"mappings":";;;;;;;;AA4DA,MAAa,0BAAmD;CAC9D,MAAM,EAAE,mBAAmB,gBAAgB,sBACzC,iBAAiB;CAEnB,MAAM,gBAAgB,aACnB,aAAqB;AACpB,MAAI,CAAC,kBAAkB,CAAC,SACtB,QAAO;AAET,SAAO,eAAe;IAExB,CAAC,eAAe,CACjB;CAED,MAAM,0BAIJ,UAAU,EAAE,EACZ,gBAAgB;EACd,UAAU,EAA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,KAAK,MACpB,SAAS,KAAK,OAAO,eAAe,aACtC;AACD,SAAI,QAAQ,KAAM,WAAU,aAAa,KAAK,OAAO;;KAEvD;AAEJ,UAAO;KAET,CAAC,UAAU,CACZ;EAOY;EACZ"}
@@ -1,7 +1,7 @@
1
1
  import { t as ConfigService } from "./configService-C4uoG3wj.js";
2
2
  import { t as useUser } from "./useUser-wpHGo6jU.js";
3
- import { R as UdpKeywordEnums } from "./unitySystemEnums-CZDCsD5t.js";
4
- import { t as FilterElementParamType } from "./searchEnums-BTFUwf6v.js";
3
+ import { R as UdpKeywordEnums } from "./unitySystemEnums-BhRg17du.js";
4
+ import { t as FilterElementParamType } from "./searchEnums-DruwPmGC.js";
5
5
  import { useCallback } from "react";
6
6
  import i18n from "i18next";
7
7
 
@@ -125,4 +125,4 @@ const useSearchFilterParamsMap = () => {
125
125
 
126
126
  //#endregion
127
127
  export { useSearchFilterParamsMap as t };
128
- //# sourceMappingURL=useSearchFilterParamsMap-hAHx2Rav.js.map
128
+ //# sourceMappingURL=useSearchFilterParamsMap-BR31_fpl.js.map