@erpsquad/common 1.11.8 → 1.11.10

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 (648) hide show
  1. package/dist/api-client/index.esm.js +2 -2
  2. package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js → DynamicDependentField-DOGY6cA_.esm.js} +2 -2
  3. package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js.map → DynamicDependentField-DOGY6cA_.esm.js.map} +1 -1
  4. package/dist/chunks/{DynamicDependentField-CQIfDDqc.js → DynamicDependentField-GTIwrPfP.js} +2 -2
  5. package/dist/chunks/{DynamicDependentField-CQIfDDqc.js.map → DynamicDependentField-GTIwrPfP.js.map} +1 -1
  6. package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js → ERPUIProvider-Dz0s77BR.esm.js} +3 -3
  7. package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js.map → ERPUIProvider-Dz0s77BR.esm.js.map} +1 -1
  8. package/dist/chunks/EditorSection-BLGcgQFm.esm.js +849 -0
  9. package/dist/chunks/EditorSection-BLGcgQFm.esm.js.map +1 -0
  10. package/dist/chunks/EditorSection-D6yaBfjP.js +848 -0
  11. package/dist/chunks/EditorSection-D6yaBfjP.js.map +1 -0
  12. package/dist/chunks/{FORMS-pxf6g6xE.esm.js → FORMS-CR_DlD1m.esm.js} +8 -8
  13. package/dist/chunks/{FORMS-pxf6g6xE.esm.js.map → FORMS-CR_DlD1m.esm.js.map} +1 -1
  14. package/dist/chunks/{FORMS-CUx32b_4.js → FORMS-EouVYay1.js} +5 -5
  15. package/dist/chunks/{FORMS-CUx32b_4.js.map → FORMS-EouVYay1.js.map} +1 -1
  16. package/dist/chunks/{FlexibleReduxExample-C-2qOGIw.esm.js → FlexibleReduxExample-B2e7Wa_S.esm.js} +4 -4
  17. package/dist/chunks/{FlexibleReduxExample-C-2qOGIw.esm.js.map → FlexibleReduxExample-B2e7Wa_S.esm.js.map} +1 -1
  18. package/dist/chunks/{FlexibleReduxExample--GtoEJhc.js → FlexibleReduxExample-CMUylyy1.js} +3 -3
  19. package/dist/chunks/{FlexibleReduxExample--GtoEJhc.js.map → FlexibleReduxExample-CMUylyy1.js.map} +1 -1
  20. package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js +12543 -0
  21. package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js.map +1 -0
  22. package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js +12542 -0
  23. package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js.map +1 -0
  24. package/dist/chunks/{action-bar-C7Alva4T.esm.js → action-bar-Ci6RlMBM.esm.js} +6 -6
  25. package/dist/chunks/{action-bar-C7Alva4T.esm.js.map → action-bar-Ci6RlMBM.esm.js.map} +1 -1
  26. package/dist/chunks/{action-bar-DdtpxWNk.js → action-bar-jLqQTqU7.js} +3 -3
  27. package/dist/chunks/{action-bar-DdtpxWNk.js.map → action-bar-jLqQTqU7.js.map} +1 -1
  28. package/dist/chunks/{actionCreator-CpePNxQM.esm.js → actionCreator-B6lXR_k1.esm.js} +2 -2
  29. package/dist/chunks/{actionCreator-CpePNxQM.esm.js.map → actionCreator-B6lXR_k1.esm.js.map} +1 -1
  30. package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js → actionCreator-D3uwEAua.esm.js} +3 -3
  31. package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js.map → actionCreator-D3uwEAua.esm.js.map} +1 -1
  32. package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js → actionCreator-DIdMRO9L.esm.js} +2 -2
  33. package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js.map → actionCreator-DIdMRO9L.esm.js.map} +1 -1
  34. package/dist/chunks/{actionCreator-Cb3NxILP.esm.js → actionCreator-DKYufGAZ.esm.js} +2 -2
  35. package/dist/chunks/{actionCreator-Cb3NxILP.esm.js.map → actionCreator-DKYufGAZ.esm.js.map} +1 -1
  36. package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js → actionCreator-DcdyGsIX.esm.js} +3 -3
  37. package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js.map → actionCreator-DcdyGsIX.esm.js.map} +1 -1
  38. package/dist/chunks/add-template-CUPbU0z7.js +10 -0
  39. package/dist/chunks/add-template-CUPbU0z7.js.map +1 -0
  40. package/dist/chunks/add-template-CxvhzFMF.esm.js +11 -0
  41. package/dist/chunks/add-template-CxvhzFMF.esm.js.map +1 -0
  42. package/dist/chunks/{address-modal-CYhiC7ui.js → address-modal-DFd5sQtR.js} +2 -2
  43. package/dist/chunks/{address-modal-CYhiC7ui.js.map → address-modal-DFd5sQtR.js.map} +1 -1
  44. package/dist/chunks/{address-modal-CkDBjnye.esm.js → address-modal-DYGLjrqd.esm.js} +2 -2
  45. package/dist/chunks/{address-modal-CkDBjnye.esm.js.map → address-modal-DYGLjrqd.esm.js.map} +1 -1
  46. package/dist/chunks/{ai-summary-SKK5KN2s.esm.js → ai-summary-x2t8BZCx.esm.js} +2 -2
  47. package/dist/chunks/{ai-summary-SKK5KN2s.esm.js.map → ai-summary-x2t8BZCx.esm.js.map} +1 -1
  48. package/dist/chunks/{api-BIVCMSwW.esm.js → api-8jutPLh0.esm.js} +3 -3
  49. package/dist/chunks/{api-BIVCMSwW.esm.js.map → api-8jutPLh0.esm.js.map} +1 -1
  50. package/dist/chunks/{api-DBmWILBN.esm.js → api-yLpQ3k5s.esm.js} +9 -9
  51. package/dist/chunks/{api-DBmWILBN.esm.js.map → api-yLpQ3k5s.esm.js.map} +1 -1
  52. package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js → app-switcher-B6eapuGG.esm.js} +2 -2
  53. package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js.map → app-switcher-B6eapuGG.esm.js.map} +1 -1
  54. package/dist/chunks/{app-switcher-CyEQmYAN.js → app-switcher-VhH9z0Rd.js} +2 -2
  55. package/dist/chunks/{app-switcher-CyEQmYAN.js.map → app-switcher-VhH9z0Rd.js.map} +1 -1
  56. package/dist/chunks/{appbar-BRbO--as.esm.js → appbar-B8EgZsrn.esm.js} +2 -2
  57. package/dist/chunks/{appbar-BRbO--as.esm.js.map → appbar-B8EgZsrn.esm.js.map} +1 -1
  58. package/dist/chunks/{appbar-rqqjZ99v.js → appbar-Is_7kfVo.js} +2 -2
  59. package/dist/chunks/{appbar-rqqjZ99v.js.map → appbar-Is_7kfVo.js.map} +1 -1
  60. package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js → approval-wrapper-_kYfACQp.esm.js} +2 -2
  61. package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js.map → approval-wrapper-_kYfACQp.esm.js.map} +1 -1
  62. package/dist/chunks/{chat-bot-osiGMG3g.js → chat-bot-2Ga_xA_K.js} +32 -38
  63. package/dist/chunks/chat-bot-2Ga_xA_K.js.map +1 -0
  64. package/dist/chunks/{chat-bot-BpNtrZEL.esm.js → chat-bot-DO3vAGxA.esm.js} +33 -39
  65. package/dist/chunks/chat-bot-DO3vAGxA.esm.js.map +1 -0
  66. package/dist/chunks/common-BgXEAs_y.esm.js +851 -0
  67. package/dist/chunks/common-BgXEAs_y.esm.js.map +1 -0
  68. package/dist/chunks/{common-yORBIVv-.esm.js → common-Cl5oGXmX.esm.js} +2 -2
  69. package/dist/chunks/{common-yORBIVv-.esm.js.map → common-Cl5oGXmX.esm.js.map} +1 -1
  70. package/dist/chunks/common-D6T6NGWY.js +850 -0
  71. package/dist/chunks/common-D6T6NGWY.js.map +1 -0
  72. package/dist/chunks/{common-CS5L0Ld_.js → common-PH2uWkqL.js} +2 -2
  73. package/dist/chunks/{common-CS5L0Ld_.js.map → common-PH2uWkqL.js.map} +1 -1
  74. package/dist/chunks/common-utility-CA_Upser.js.map +1 -1
  75. package/dist/chunks/{common-utility-DGpbsf7S.esm.js → common-utility-CS_sNoAC.esm.js} +2 -2
  76. package/dist/chunks/common-utility-CS_sNoAC.esm.js.map +1 -0
  77. package/dist/chunks/company-selection-modal-B7jFVWWs.js.map +1 -1
  78. package/dist/chunks/company-selection-modal-Dn2L_skh.esm.js.map +1 -1
  79. package/dist/chunks/{constant-Bwg2s_Sn.esm.js → constant-BXPcBhJN.esm.js} +35 -5
  80. package/dist/chunks/constant-BXPcBhJN.esm.js.map +1 -0
  81. package/dist/chunks/{constant-ZYAN_teD.js → constant-BXeJD4Af.js} +35 -5
  82. package/dist/chunks/constant-BXeJD4Af.js.map +1 -0
  83. package/dist/chunks/{constants-nmkxkzps.esm.js → constants-BrmMAwu2.esm.js} +2 -2
  84. package/dist/chunks/{constants-nmkxkzps.esm.js.map → constants-BrmMAwu2.esm.js.map} +1 -1
  85. package/dist/chunks/{constants-06kIVUBw.js → constants-D_xuLHSu.js} +2 -2
  86. package/dist/chunks/{constants-06kIVUBw.js.map → constants-D_xuLHSu.js.map} +1 -1
  87. package/dist/chunks/{custom-editor-6-xqhKz6.esm.js → custom-editor-C-B5BK-H.esm.js} +3 -3
  88. package/dist/chunks/{custom-editor-6-xqhKz6.esm.js.map → custom-editor-C-B5BK-H.esm.js.map} +1 -1
  89. package/dist/chunks/{custom-form-DD7YOHMF.esm.js → custom-form-DNUpk0nq.esm.js} +7 -7
  90. package/dist/chunks/{custom-form-DD7YOHMF.esm.js.map → custom-form-DNUpk0nq.esm.js.map} +1 -1
  91. package/dist/chunks/{custom-form-CFU7NEVb.js → custom-form-T4yc_sE_.js} +4 -4
  92. package/dist/chunks/{custom-form-CFU7NEVb.js.map → custom-form-T4yc_sE_.js.map} +1 -1
  93. package/dist/chunks/{dashboard-DL83yYRR.esm.js → dashboard-B4xzJ1Xc.esm.js} +4 -4
  94. package/dist/chunks/{dashboard-DL83yYRR.esm.js.map → dashboard-B4xzJ1Xc.esm.js.map} +1 -1
  95. package/dist/chunks/{dashboard-BcWVkWZt.js → dashboard-eMHQayU_.js} +3 -3
  96. package/dist/chunks/{dashboard-BcWVkWZt.js.map → dashboard-eMHQayU_.js.map} +1 -1
  97. package/dist/chunks/default-data-6IxhqPTP.esm.js.map +1 -1
  98. package/dist/chunks/default-data-yreKVx_z.js.map +1 -1
  99. package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js → dynamic-report-CMguvXj2.esm.js} +4 -4
  100. package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js.map → dynamic-report-CMguvXj2.esm.js.map} +1 -1
  101. package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js → dynamic-rows-CmAE9nbA.esm.js} +2 -2
  102. package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js.map → dynamic-rows-CmAE9nbA.esm.js.map} +1 -1
  103. package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js → dynamic-text-editor-CSWdR1lK.esm.js} +2 -2
  104. package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js.map → dynamic-text-editor-CSWdR1lK.esm.js.map} +1 -1
  105. package/dist/chunks/edit-section-modal-Br2ITvLk.js.map +1 -1
  106. package/dist/chunks/{edit-section-modal-BW-aZmUv.esm.js → edit-section-modal-HihKbN6K.esm.js} +2 -2
  107. package/dist/chunks/edit-section-modal-HihKbN6K.esm.js.map +1 -0
  108. package/dist/chunks/{filter-COXKBEER.esm.js → filter-D9BHP_qc.esm.js} +5 -5
  109. package/dist/chunks/{filter-COXKBEER.esm.js.map → filter-D9BHP_qc.esm.js.map} +1 -1
  110. package/dist/chunks/{filter-Cr_OSIpb.js → filter-DtCrOG6W.js} +3 -3
  111. package/dist/chunks/{filter-Cr_OSIpb.js.map → filter-DtCrOG6W.js.map} +1 -1
  112. package/dist/chunks/{footer-m3_dlNl8.esm.js → footer-Bv5NOAf9.esm.js} +2 -2
  113. package/dist/chunks/{footer-m3_dlNl8.esm.js.map → footer-Bv5NOAf9.esm.js.map} +1 -1
  114. package/dist/chunks/{footer-CD3kMRdS.js → footer-DioOh69g.js} +2 -2
  115. package/dist/chunks/{footer-CD3kMRdS.js.map → footer-DioOh69g.js.map} +1 -1
  116. package/dist/chunks/{form-fields-yE9kwjvb.js → form-fields-BYDhbAgB.js} +2 -2
  117. package/dist/chunks/{form-fields-yE9kwjvb.js.map → form-fields-BYDhbAgB.js.map} +1 -1
  118. package/dist/chunks/{form-fields-hMMnB_wE.esm.js → form-fields-Di-p9XKG.esm.js} +2 -2
  119. package/dist/chunks/{form-fields-hMMnB_wE.esm.js.map → form-fields-Di-p9XKG.esm.js.map} +1 -1
  120. package/dist/chunks/{form-parser-m4fnw38a.js → form-parser-BnMdMDSb.js} +2 -2
  121. package/dist/chunks/{form-parser-m4fnw38a.js.map → form-parser-BnMdMDSb.js.map} +1 -1
  122. package/dist/chunks/{form-parser-DbnSn5eY.esm.js → form-parser-ZQpEVrzG.esm.js} +2 -2
  123. package/dist/chunks/{form-parser-DbnSn5eY.esm.js.map → form-parser-ZQpEVrzG.esm.js.map} +1 -1
  124. package/dist/chunks/{form-section-TMjdOVeW.esm.js → form-section-BJ7Iqb9R.esm.js} +5 -5
  125. package/dist/chunks/{form-section-TMjdOVeW.esm.js.map → form-section-BJ7Iqb9R.esm.js.map} +1 -1
  126. package/dist/chunks/{form-section-CPIyMdk2.js → form-section-CFeWD-tF.js} +5 -5
  127. package/dist/chunks/{form-section-CPIyMdk2.js.map → form-section-CFeWD-tF.js.map} +1 -1
  128. package/dist/chunks/{fullScreen-DFgzE41_.esm.js → fullScreen-Cz3FIdU4.esm.js} +5 -5
  129. package/dist/chunks/fullScreen-Cz3FIdU4.esm.js.map +1 -0
  130. package/dist/chunks/{fullScreen-BLLa9ogA.js → fullScreen-h0JqBN4O.js} +5 -5
  131. package/dist/chunks/fullScreen-h0JqBN4O.js.map +1 -0
  132. package/dist/chunks/{global-search-BjKPmzsQ.js → global-search-BTV5iL6-.js} +2 -2
  133. package/dist/chunks/{global-search-BjKPmzsQ.js.map → global-search-BTV5iL6-.js.map} +1 -1
  134. package/dist/chunks/{global-search-BOkxXiZ0.esm.js → global-search-CGmupYFQ.esm.js} +3 -3
  135. package/dist/chunks/{global-search-BOkxXiZ0.esm.js.map → global-search-CGmupYFQ.esm.js.map} +1 -1
  136. package/dist/chunks/{grid-view-Bo86x7YL.esm.js → grid-view-BMfleQMC.esm.js} +2 -2
  137. package/dist/chunks/{grid-view-Bo86x7YL.esm.js.map → grid-view-BMfleQMC.esm.js.map} +1 -1
  138. package/dist/chunks/{header-B-HaoeK7.esm.js → header-BnVzqpGs.esm.js} +12 -10
  139. package/dist/chunks/{header-B-HaoeK7.esm.js.map → header-BnVzqpGs.esm.js.map} +1 -1
  140. package/dist/chunks/{header-enhanced-BjfqyQ1a.esm.js → header-enhanced-CkROCaOF.esm.js} +3 -3
  141. package/dist/chunks/{header-enhanced-BjfqyQ1a.esm.js.map → header-enhanced-CkROCaOF.esm.js.map} +1 -1
  142. package/dist/chunks/{header-enhanced-gJl4iC4m.js → header-enhanced-Dxdetx0I.js} +3 -3
  143. package/dist/chunks/{header-enhanced-gJl4iC4m.js.map → header-enhanced-Dxdetx0I.js.map} +1 -1
  144. package/dist/chunks/{header-BHsex2As.js → header-jWPMgcy6.js} +11 -9
  145. package/dist/chunks/{header-BHsex2As.js.map → header-jWPMgcy6.js.map} +1 -1
  146. package/dist/chunks/{index-ALqg8b5U.esm.js → index-BCmGHdos.esm.js} +2 -2
  147. package/dist/chunks/{index-ALqg8b5U.esm.js.map → index-BCmGHdos.esm.js.map} +1 -1
  148. package/dist/chunks/{index-BBWIBqaP.js → index-DBvje0t5.js} +73 -66
  149. package/dist/chunks/{index-BBWIBqaP.js.map → index-DBvje0t5.js.map} +1 -1
  150. package/dist/chunks/{index-BuPgYdiN.esm.js → index-DqwpZRkl.esm.js} +73 -66
  151. package/dist/chunks/{index-BuPgYdiN.esm.js.map → index-DqwpZRkl.esm.js.map} +1 -1
  152. package/dist/chunks/{inline-edit-fields-atDP84QL.js → inline-edit-fields-Cd_qUOjU.js} +2 -2
  153. package/dist/chunks/{inline-edit-fields-atDP84QL.js.map → inline-edit-fields-Cd_qUOjU.js.map} +1 -1
  154. package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js → inline-edit-fields-VOIx3qmC.esm.js} +2 -2
  155. package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js.map → inline-edit-fields-VOIx3qmC.esm.js.map} +1 -1
  156. package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js → inventory-reports-title-bar-BfUMM54c.js} +2 -2
  157. package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js.map → inventory-reports-title-bar-BfUMM54c.js.map} +1 -1
  158. package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js → inventory-reports-title-bar-CZZFFqDc.esm.js} +3 -3
  159. package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js.map → inventory-reports-title-bar-CZZFFqDc.esm.js.map} +1 -1
  160. package/dist/chunks/{item-response-details-SHSD-nBh.esm.js → item-response-details-BTHf6ZvN.esm.js} +4 -4
  161. package/dist/chunks/{item-response-details-SHSD-nBh.esm.js.map → item-response-details-BTHf6ZvN.esm.js.map} +1 -1
  162. package/dist/chunks/{item-response-details-DsGQ7Dlc.js → item-response-details-BheThTTK.js} +2 -2
  163. package/dist/chunks/{item-response-details-DsGQ7Dlc.js.map → item-response-details-BheThTTK.js.map} +1 -1
  164. package/dist/chunks/{listing-DIuzQrzb.js → listing-Dr_1DDBr.js} +4 -4
  165. package/dist/chunks/{listing-DIuzQrzb.js.map → listing-Dr_1DDBr.js.map} +1 -1
  166. package/dist/chunks/{listing-C0Yb6MVq.esm.js → listing-ELQeM6S3.esm.js} +4 -4
  167. package/dist/chunks/{listing-C0Yb6MVq.esm.js.map → listing-ELQeM6S3.esm.js.map} +1 -1
  168. package/dist/chunks/{location-select-g5uczAUF.js → location-select-CLyRUilk.js} +2 -2
  169. package/dist/chunks/{location-select-g5uczAUF.js.map → location-select-CLyRUilk.js.map} +1 -1
  170. package/dist/chunks/{location-select-CFa00fy4.esm.js → location-select-z1C88kCy.esm.js} +2 -2
  171. package/dist/chunks/{location-select-CFa00fy4.esm.js.map → location-select-z1C88kCy.esm.js.map} +1 -1
  172. package/dist/chunks/{material-editable-table-BGLjrTzT.js → material-editable-table-DFGB0q-s.js} +3 -3
  173. package/dist/chunks/{material-editable-table-BGLjrTzT.js.map → material-editable-table-DFGB0q-s.js.map} +1 -1
  174. package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js → material-editable-table-DyGdqNkX.esm.js} +4 -4
  175. package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js.map → material-editable-table-DyGdqNkX.esm.js.map} +1 -1
  176. package/dist/chunks/{metaComponent-B6kkj54U.esm.js → metaComponent-BqgfR7kW.esm.js} +2 -2
  177. package/dist/chunks/{metaComponent-B6kkj54U.esm.js.map → metaComponent-BqgfR7kW.esm.js.map} +1 -1
  178. package/dist/chunks/{metaComponent-D9sAbeXz.js → metaComponent-GukpY87Z.js} +2 -2
  179. package/dist/chunks/{metaComponent-D9sAbeXz.js.map → metaComponent-GukpY87Z.js.map} +1 -1
  180. package/dist/chunks/{module-reducer-DMxxForv.esm.js → module-reducer-CEv3LZCX.esm.js} +2 -2
  181. package/dist/chunks/{module-reducer-DMxxForv.esm.js.map → module-reducer-CEv3LZCX.esm.js.map} +1 -1
  182. package/dist/chunks/{modules-maXT99-4.js → modules-DTRr7zwt.js} +5 -5
  183. package/dist/chunks/{modules-maXT99-4.js.map → modules-DTRr7zwt.js.map} +1 -1
  184. package/dist/chunks/{modules-BBu2Y-K9.esm.js → modules-enwLrpfQ.esm.js} +5 -5
  185. package/dist/chunks/{modules-BBu2Y-K9.esm.js.map → modules-enwLrpfQ.esm.js.map} +1 -1
  186. package/dist/chunks/{notification-menu-D7ASm-K1.js → notification-menu-B00hDUbn.js} +2 -2
  187. package/dist/chunks/{notification-menu-D7ASm-K1.js.map → notification-menu-B00hDUbn.js.map} +1 -1
  188. package/dist/chunks/{notification-menu-XAadkn-e.esm.js → notification-menu-CehCt5fA.esm.js} +4 -4
  189. package/dist/chunks/{notification-menu-XAadkn-e.esm.js.map → notification-menu-CehCt5fA.esm.js.map} +1 -1
  190. package/dist/chunks/{page-action-C07iGjvN.esm.js → page-action-RqVevciV.esm.js} +4 -4
  191. package/dist/chunks/{page-action-C07iGjvN.esm.js.map → page-action-RqVevciV.esm.js.map} +1 -1
  192. package/dist/chunks/{page-action-BPzaL2KJ.js → page-action-TMFOytDw.js} +2 -2
  193. package/dist/chunks/{page-action-BPzaL2KJ.js.map → page-action-TMFOytDw.js.map} +1 -1
  194. package/dist/chunks/{page-navigator-8gZpp9_P.esm.js → page-navigator-CuIJ0KGf.esm.js} +2 -2
  195. package/dist/chunks/{page-navigator-8gZpp9_P.esm.js.map → page-navigator-CuIJ0KGf.esm.js.map} +1 -1
  196. package/dist/chunks/{page-navigator-Cgbh3tTG.js → page-navigator-DdRsmtLy.js} +2 -2
  197. package/dist/chunks/{page-navigator-Cgbh3tTG.js.map → page-navigator-DdRsmtLy.js.map} +1 -1
  198. package/dist/chunks/{page-view-DJ6HS_dV.js → page-view-CvfqzV03.js} +3 -3
  199. package/dist/chunks/{page-view-DJ6HS_dV.js.map → page-view-CvfqzV03.js.map} +1 -1
  200. package/dist/chunks/{page-view-CokUNMBn.esm.js → page-view-Daz-OKd_.esm.js} +3 -3
  201. package/dist/chunks/{page-view-CokUNMBn.esm.js.map → page-view-Daz-OKd_.esm.js.map} +1 -1
  202. package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js → pathname.rental-CqHO_l_D.esm.js} +76 -81
  203. package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js.map → pathname.rental-CqHO_l_D.esm.js.map} +1 -1
  204. package/dist/chunks/{pathname.rental-DgH4LoG7.js → pathname.rental-CwK6JuID.js} +2 -7
  205. package/dist/chunks/{pathname.rental-DgH4LoG7.js.map → pathname.rental-CwK6JuID.js.map} +1 -1
  206. package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js → quick-approval-modal-B-jvkgue.esm.js} +2 -2
  207. package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js.map → quick-approval-modal-B-jvkgue.esm.js.map} +1 -1
  208. package/dist/chunks/{reducer-CdJ6znKF.esm.js → reducer-BMkh_0Py.esm.js} +3 -3
  209. package/dist/chunks/{reducer-CdJ6znKF.esm.js.map → reducer-BMkh_0Py.esm.js.map} +1 -1
  210. package/dist/chunks/{reducer-3tSO6RW6.esm.js → reducer-BOwyP0QZ.esm.js} +3 -3
  211. package/dist/chunks/{reducer-3tSO6RW6.esm.js.map → reducer-BOwyP0QZ.esm.js.map} +1 -1
  212. package/dist/chunks/{reducer-IsgN83rP.esm.js → reducer-BTfG9J4W.esm.js} +2 -2
  213. package/dist/chunks/{reducer-IsgN83rP.esm.js.map → reducer-BTfG9J4W.esm.js.map} +1 -1
  214. package/dist/chunks/{reducer-yyZtsg1A.esm.js → reducer-BWiX5vxL.esm.js} +2 -2
  215. package/dist/chunks/{reducer-yyZtsg1A.esm.js.map → reducer-BWiX5vxL.esm.js.map} +1 -1
  216. package/dist/chunks/{reducer-sgaK2vfW.esm.js → reducer-CD1VDqeT.esm.js} +2 -2
  217. package/dist/chunks/{reducer-sgaK2vfW.esm.js.map → reducer-CD1VDqeT.esm.js.map} +1 -1
  218. package/dist/chunks/{reports-title-bar-Kz6JjqsY.js → reports-title-bar-B1_IweEc.js} +2 -2
  219. package/dist/chunks/{reports-title-bar-Kz6JjqsY.js.map → reports-title-bar-B1_IweEc.js.map} +1 -1
  220. package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js → reports-title-bar-Kl8XQe-K.esm.js} +4 -4
  221. package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js.map → reports-title-bar-Kl8XQe-K.esm.js.map} +1 -1
  222. package/dist/chunks/{route-page-map-Dn-SAbdf.js → route-page-map-CzFUh-SC.js} +3 -60
  223. package/dist/chunks/{route-page-map-Dn-SAbdf.js.map → route-page-map-CzFUh-SC.js.map} +1 -1
  224. package/dist/chunks/{route-page-map-DkWoisiB.esm.js → route-page-map-D6-7jBQT.esm.js} +76 -133
  225. package/dist/chunks/{route-page-map-DkWoisiB.esm.js.map → route-page-map-D6-7jBQT.esm.js.map} +1 -1
  226. package/dist/chunks/{routes-CAc76Zan.esm.js → routes-D9y_XQRu.esm.js} +4 -4
  227. package/dist/chunks/{routes-CAc76Zan.esm.js.map → routes-D9y_XQRu.esm.js.map} +1 -1
  228. package/dist/chunks/{routes-CfqLAYgR.js → routes-Dsumzjw0.js} +4 -4
  229. package/dist/chunks/{routes-CfqLAYgR.js.map → routes-Dsumzjw0.js.map} +1 -1
  230. package/dist/chunks/{schedule-report-B4ZfEuiU.js → schedule-report-BwmZ5jea.js} +4 -4
  231. package/dist/chunks/{schedule-report-B4ZfEuiU.js.map → schedule-report-BwmZ5jea.js.map} +1 -1
  232. package/dist/chunks/{schedule-report-CLXjjfjc.esm.js → schedule-report-CJXHVZ68.esm.js} +6 -6
  233. package/dist/chunks/{schedule-report-CLXjjfjc.esm.js.map → schedule-report-CJXHVZ68.esm.js.map} +1 -1
  234. package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js → schedule-report-modal-D8Y-TZ4u.esm.js} +3 -3
  235. package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js.map → schedule-report-modal-D8Y-TZ4u.esm.js.map} +1 -1
  236. package/dist/chunks/{schedule-report-modal-iwoDI-sg.js → schedule-report-modal-iNnWP9s4.js} +2 -2
  237. package/dist/chunks/{schedule-report-modal-iwoDI-sg.js.map → schedule-report-modal-iNnWP9s4.js.map} +1 -1
  238. package/dist/chunks/{searchable-select-0F6E4XAr.esm.js → searchable-select-BQtcqBKV.esm.js} +6 -6
  239. package/dist/chunks/{searchable-select-0F6E4XAr.esm.js.map → searchable-select-BQtcqBKV.esm.js.map} +1 -1
  240. package/dist/chunks/{searchable-select-_DCkITfk.js → searchable-select-DVUCWWti.js} +2 -2
  241. package/dist/chunks/{searchable-select-_DCkITfk.js.map → searchable-select-DVUCWWti.js.map} +1 -1
  242. package/dist/chunks/{share-modal-BaEyZs2h.esm.js → share-modal-BOyLBawK.esm.js} +3 -3
  243. package/dist/chunks/{share-modal-BaEyZs2h.esm.js.map → share-modal-BOyLBawK.esm.js.map} +1 -1
  244. package/dist/chunks/{share-modal-DrXvh-fV.js → share-modal-CobK7BN7.js} +2 -2
  245. package/dist/chunks/{share-modal-DrXvh-fV.js.map → share-modal-CobK7BN7.js.map} +1 -1
  246. package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js → share-modal-enhanced-CTp-tQw8.esm.js} +2 -2
  247. package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js.map → share-modal-enhanced-CTp-tQw8.esm.js.map} +1 -1
  248. package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js → share-modal-enhanced-DVarD-jt.js} +2 -2
  249. package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js.map → share-modal-enhanced-DVarD-jt.js.map} +1 -1
  250. package/dist/chunks/{sidebarScreen-DpYj_wlK.js → sidebarScreen-K-dlM6NA.js} +3 -3
  251. package/dist/chunks/{sidebarScreen-DpYj_wlK.js.map → sidebarScreen-K-dlM6NA.js.map} +1 -1
  252. package/dist/chunks/{sidebarScreen-DiOAiXeU.esm.js → sidebarScreen-lR6rw8bW.esm.js} +4 -4
  253. package/dist/chunks/{sidebarScreen-DiOAiXeU.esm.js.map → sidebarScreen-lR6rw8bW.esm.js.map} +1 -1
  254. package/dist/chunks/{store-BL5VFPie.esm.js → store-DJh8C3Vv.esm.js} +6 -6
  255. package/dist/chunks/{store-BL5VFPie.esm.js.map → store-DJh8C3Vv.esm.js.map} +1 -1
  256. package/dist/chunks/{table-DWx7x8zw.js → table-Bpt6ggr3.js} +2 -2
  257. package/dist/chunks/{table-DWx7x8zw.js.map → table-Bpt6ggr3.js.map} +1 -1
  258. package/dist/chunks/{table-gxAlAeTq.esm.js → table-DI3MyTNm.esm.js} +3 -3
  259. package/dist/chunks/{table-gxAlAeTq.esm.js.map → table-DI3MyTNm.esm.js.map} +1 -1
  260. package/dist/chunks/{table-form-DsTwCUcs.esm.js → table-form-8_f3FwhX.esm.js} +2 -2
  261. package/dist/chunks/{table-form-DsTwCUcs.esm.js.map → table-form-8_f3FwhX.esm.js.map} +1 -1
  262. package/dist/chunks/{template-editor-router-D4NIwVws.js → template-editor-router-DugWbCh0.js} +2 -2
  263. package/dist/chunks/{template-editor-router-D4NIwVws.js.map → template-editor-router-DugWbCh0.js.map} +1 -1
  264. package/dist/chunks/{template-editor-router-BXLUTvsk.esm.js → template-editor-router-uzghBOap.esm.js} +2 -2
  265. package/dist/chunks/{template-editor-router-BXLUTvsk.esm.js.map → template-editor-router-uzghBOap.esm.js.map} +1 -1
  266. package/dist/chunks/{template-modal-B2VgotrF.esm.js → template-modal-D7aLacan.esm.js} +7 -6
  267. package/dist/chunks/template-modal-D7aLacan.esm.js.map +1 -0
  268. package/dist/chunks/{template-modal-X-iSmlki.js → template-modal-Df7gF4QI.js} +5 -4
  269. package/dist/chunks/template-modal-Df7gF4QI.js.map +1 -0
  270. package/dist/chunks/{template-name-modal-CeqxIE2r.js → template-name-modal-ClreVUaz.js} +12 -5
  271. package/dist/chunks/template-name-modal-ClreVUaz.js.map +1 -0
  272. package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js → template-name-modal-Dwe7U72p.esm.js} +12 -5
  273. package/dist/chunks/template-name-modal-Dwe7U72p.esm.js.map +1 -0
  274. package/dist/chunks/{templates-CCy1eG6A.esm.js → templates-9ZMHwRR6.esm.js} +10 -17
  275. package/dist/chunks/templates-9ZMHwRR6.esm.js.map +1 -0
  276. package/dist/chunks/{templates-CUREMwYo.js → templates-DCXbeOtH.js} +7 -14
  277. package/dist/chunks/templates-DCXbeOtH.js.map +1 -0
  278. package/dist/chunks/{text-area-B3nAZgFI.js → text-area-DxJs3eyE.js} +2 -2
  279. package/dist/chunks/{text-area-B3nAZgFI.js.map → text-area-DxJs3eyE.js.map} +1 -1
  280. package/dist/chunks/{text-area-xMWbJY0H.esm.js → text-area-zcBhicgg.esm.js} +2 -2
  281. package/dist/chunks/{text-area-xMWbJY0H.esm.js.map → text-area-zcBhicgg.esm.js.map} +1 -1
  282. package/dist/chunks/{text-measurement-BCjauPbB.esm.js → text-measurement-DMVkqP6b.esm.js} +2 -2
  283. package/dist/chunks/{text-measurement-BCjauPbB.esm.js.map → text-measurement-DMVkqP6b.esm.js.map} +1 -1
  284. package/dist/chunks/{translations-BrwQcVN3.esm.js → translations-JcE6qyDJ.esm.js} +3 -3
  285. package/dist/chunks/{translations-BrwQcVN3.esm.js.map → translations-JcE6qyDJ.esm.js.map} +1 -1
  286. package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js → uom-field-wrapper-CSqeiVPY.js} +2 -2
  287. package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js.map → uom-field-wrapper-CSqeiVPY.js.map} +1 -1
  288. package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js → uom-field-wrapper-CWTsSsSi.esm.js} +2 -2
  289. package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js.map → uom-field-wrapper-CWTsSsSi.esm.js.map} +1 -1
  290. package/dist/chunks/{upload-excel-BZPP13tP.esm.js → upload-excel-CkEQqZW2.esm.js} +2 -2
  291. package/dist/chunks/{upload-excel-BZPP13tP.esm.js.map → upload-excel-CkEQqZW2.esm.js.map} +1 -1
  292. package/dist/chunks/{use-translations-CcjSFA3F.esm.js → use-translations-BqBPN1DM.esm.js} +3 -3
  293. package/dist/chunks/{use-translations-CcjSFA3F.esm.js.map → use-translations-BqBPN1DM.esm.js.map} +1 -1
  294. package/dist/chunks/{use-translations-5wUQBxMm.js → use-translations-Cn3b4Kqh.js} +2 -2
  295. package/dist/chunks/{use-translations-5wUQBxMm.js.map → use-translations-Cn3b4Kqh.js.map} +1 -1
  296. package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js → useAccountSetting-DsU5zsjb.esm.js} +2 -2
  297. package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js.map → useAccountSetting-DsU5zsjb.esm.js.map} +1 -1
  298. package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js → useCheckSkuAndName-5ua30aZf.esm.js} +2 -2
  299. package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js.map → useCheckSkuAndName-5ua30aZf.esm.js.map} +1 -1
  300. package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js → useReduxIntegration-BlLpfwk6.esm.js} +2 -2
  301. package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js.map → useReduxIntegration-BlLpfwk6.esm.js.map} +1 -1
  302. package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js → useUniquenessCheck-CiR2q5bM.esm.js} +2 -2
  303. package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js.map → useUniquenessCheck-CiR2q5bM.esm.js.map} +1 -1
  304. package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js → useVendorAICompare-DMJvJJ3Y.esm.js} +2 -2
  305. package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js.map → useVendorAICompare-DMJvJJ3Y.esm.js.map} +1 -1
  306. package/dist/chunks/{value-editor-BSS9Ns2T.js → value-editor-Br7X_wEB.js} +2 -2
  307. package/dist/chunks/{value-editor-BSS9Ns2T.js.map → value-editor-Br7X_wEB.js.map} +1 -1
  308. package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js → value-editor-BxFdnUyM.esm.js} +4 -4
  309. package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js.map → value-editor-BxFdnUyM.esm.js.map} +1 -1
  310. package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js → vendor-ai-summary-Cpx90QOx.esm.js} +2 -2
  311. package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js.map → vendor-ai-summary-Cpx90QOx.esm.js.map} +1 -1
  312. package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js → vendor-ai-summary-zranZkfk.js} +2 -2
  313. package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js.map → vendor-ai-summary-zranZkfk.js.map} +1 -1
  314. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  315. package/dist/components/action-bar/action-bar/index.js +1 -1
  316. package/dist/components/action-bar/index.esm.js +1 -1
  317. package/dist/components/action-bar/index.js +1 -1
  318. package/dist/components/address-modal/index.esm.js +1 -1
  319. package/dist/components/address-modal/index.js +1 -1
  320. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  321. package/dist/components/ai-summary/index.esm.js +1 -1
  322. package/dist/components/appbar/appbar/index.esm.js +1 -1
  323. package/dist/components/appbar/appbar/index.js +1 -1
  324. package/dist/components/appbar/index.esm.js +1 -1
  325. package/dist/components/appbar/index.js +1 -1
  326. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  327. package/dist/components/approval-wrapper/index.esm.js +1 -1
  328. package/dist/components/chat-bot/index.esm.js +1 -1
  329. package/dist/components/chat-bot/index.js +1 -1
  330. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  331. package/dist/components/custom-forms/FORMS/index.js +1 -1
  332. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  333. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  334. package/dist/components/custom-forms/index.esm.js +2 -2
  335. package/dist/components/custom-forms/index.js +1 -1
  336. package/dist/components/department-add-modal/index.esm.js +1 -1
  337. package/dist/components/department-add-modal/index.js +1 -1
  338. package/dist/components/designation-add-modal/index.esm.js +1 -1
  339. package/dist/components/designation-add-modal/index.js +1 -1
  340. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  341. package/dist/components/editor/index.esm.js +1 -1
  342. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  343. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  344. package/dist/components/examples/index.esm.js +1 -1
  345. package/dist/components/examples/index.js +1 -1
  346. package/dist/components/filter/components/index.esm.js +1 -1
  347. package/dist/components/filter/components/index.js +1 -1
  348. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  349. package/dist/components/filter/components/value-editor/index.js +1 -1
  350. package/dist/components/filter/filter/index.esm.js +1 -1
  351. package/dist/components/filter/filter/index.js +1 -1
  352. package/dist/components/filter/index.esm.js +2 -2
  353. package/dist/components/filter/index.js +2 -2
  354. package/dist/components/footer/footer/index.esm.js +1 -1
  355. package/dist/components/footer/footer/index.js +1 -1
  356. package/dist/components/footer/index.esm.js +1 -1
  357. package/dist/components/footer/index.js +1 -1
  358. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  359. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  360. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  361. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  362. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  363. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  364. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  365. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +4 -4
  366. package/dist/components/form-control/form-builder/form-builder-element/index.js +3 -3
  367. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  368. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  369. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  370. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  371. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  372. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  373. package/dist/components/form-control/form-builder/index.esm.js +4 -4
  374. package/dist/components/form-control/form-builder/index.js +3 -3
  375. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  376. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  377. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  378. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  379. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  380. package/dist/components/form-control/form-parser/index.js +2 -2
  381. package/dist/components/form-control/index.esm.js +6 -6
  382. package/dist/components/form-control/index.js +5 -5
  383. package/dist/components/header/components/app-switcher/index.esm.js +1 -1
  384. package/dist/components/header/components/app-switcher/index.js +1 -1
  385. package/dist/components/header/components/global-search/index.esm.js +1 -1
  386. package/dist/components/header/components/global-search/index.js +1 -1
  387. package/dist/components/header/components/index.esm.js +1 -1
  388. package/dist/components/header/components/index.js +1 -1
  389. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  390. package/dist/components/header/components/notification-menu/index.js +1 -1
  391. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  392. package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
  393. package/dist/components/header/header/index.esm.js +1 -1
  394. package/dist/components/header/header/index.js +1 -1
  395. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  396. package/dist/components/header/header-enhanced/index.js +1 -1
  397. package/dist/components/header/index.esm.js +5 -5
  398. package/dist/components/header/index.js +3 -3
  399. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  400. package/dist/components/header/redux/index.esm.js +2 -2
  401. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  402. package/dist/components/index.esm.js +37 -37
  403. package/dist/components/index.js +28 -28
  404. package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
  405. package/dist/components/inventory-reports-title-bar/index.js +1 -1
  406. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  407. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  408. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  409. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  410. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  411. package/dist/components/listing/index.esm.js +1 -1
  412. package/dist/components/listing/index.js +1 -1
  413. package/dist/components/listing/listing/index.esm.js +1 -1
  414. package/dist/components/listing/listing/index.js +1 -1
  415. package/dist/components/location-select/index.esm.js +1 -1
  416. package/dist/components/location-select/index.js +1 -1
  417. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  418. package/dist/components/material-editable-table/components/index.js +1 -1
  419. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  420. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  421. package/dist/components/material-editable-table/index.esm.js +2 -2
  422. package/dist/components/material-editable-table/index.js +2 -2
  423. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  424. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  425. package/dist/components/material-table/components/index.esm.js +1 -1
  426. package/dist/components/material-table/components/index.js +1 -1
  427. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  428. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  429. package/dist/components/material-table/index.esm.js +1 -1
  430. package/dist/components/material-table/index.js +1 -1
  431. package/dist/components/material-table/material-table/index.esm.js +1 -1
  432. package/dist/components/material-table/material-table/index.js +1 -1
  433. package/dist/components/page-navigator/components/index.esm.js +1 -1
  434. package/dist/components/page-navigator/components/index.js +1 -1
  435. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  436. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  437. package/dist/components/page-navigator/index.esm.js +2 -2
  438. package/dist/components/page-navigator/index.js +2 -2
  439. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  440. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  441. package/dist/components/parties-modal/index.esm.js +1 -1
  442. package/dist/components/parties-modal/index.js +1 -1
  443. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  444. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  445. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  446. package/dist/components/providers/index.esm.js +1 -1
  447. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  448. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  449. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  450. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  451. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  452. package/dist/components/reports/index.esm.js +2 -2
  453. package/dist/components/reports-title-bar/index.esm.js +3 -3
  454. package/dist/components/reports-title-bar/index.js +1 -1
  455. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  456. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  457. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  458. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  459. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  460. package/dist/components/rfq-response/index.esm.js +1 -1
  461. package/dist/components/rfq-response/index.js +1 -1
  462. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  463. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  464. package/dist/components/schedule-report/index.esm.js +2 -2
  465. package/dist/components/schedule-report/index.js +2 -2
  466. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  467. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  468. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  469. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  470. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  471. package/dist/components/searchable-select/index.esm.js +1 -1
  472. package/dist/components/searchable-select/index.js +1 -1
  473. package/dist/components/share-modal/index.esm.js +4 -4
  474. package/dist/components/share-modal/index.js +2 -2
  475. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  476. package/dist/components/share-modal/redux/index.esm.js +2 -2
  477. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  478. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  479. package/dist/components/share-modal/share-modal/index.js +1 -1
  480. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  481. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  482. package/dist/components/team-add-modal/index.esm.js +1 -1
  483. package/dist/components/team-add-modal/index.js +1 -1
  484. package/dist/components/text-area/index.esm.js +1 -1
  485. package/dist/components/text-area/index.js +1 -1
  486. package/dist/components/text-area/text-area/index.esm.js +1 -1
  487. package/dist/components/text-area/text-area/index.js +1 -1
  488. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  489. package/dist/components/uom-field-wrapper/index.js +1 -1
  490. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  491. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  492. package/dist/components/upload-excel/index.esm.js +1 -1
  493. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  494. package/dist/components/vendor-ai-summary/index.esm.js +1 -1
  495. package/dist/components/vendor-ai-summary/index.js +1 -1
  496. package/dist/constants/index.esm.js +143 -145
  497. package/dist/constants/index.js +3 -5
  498. package/dist/constants/index.js.map +1 -1
  499. package/dist/hooks/index.esm.js +6 -6
  500. package/dist/hooks/index.js +1 -1
  501. package/dist/hooks/use-translations/index.esm.js +1 -1
  502. package/dist/hooks/use-translations/index.js +1 -1
  503. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  504. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  505. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  506. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  507. package/dist/images/index.esm.js +5 -5
  508. package/dist/images/index.esm.js.map +1 -1
  509. package/dist/images/index.js +5 -5
  510. package/dist/images/index.js.map +1 -1
  511. package/dist/index.esm.js +237 -234
  512. package/dist/index.esm.js.map +1 -1
  513. package/dist/index.js +69 -66
  514. package/dist/index.js.map +1 -1
  515. package/dist/layout/fullScreen/index.esm.js +1 -1
  516. package/dist/layout/fullScreen/index.js +1 -1
  517. package/dist/layout/index.esm.js +2 -2
  518. package/dist/layout/index.js +2 -2
  519. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  520. package/dist/layout/sidebarScreen/index.js +1 -1
  521. package/dist/redux/index.esm.js +3 -3
  522. package/dist/runtime/index.esm.js +4 -4
  523. package/dist/runtime/index.js +2 -2
  524. package/dist/src/components/chat-bot/chat-bot-welcome.d.ts +1 -2
  525. package/dist/src/components/chat-bot/chat-bot.d.ts +1 -5
  526. package/dist/src/constants/defaultColumns.d.ts +0 -1
  527. package/dist/src/constants/pathnames/pathname.procurement.d.ts +0 -4
  528. package/dist/src/layout/fullScreen/fullScreen.d.ts +0 -1
  529. package/dist/src/views/template-editor/components/EditorCanvas/FreeCanvas.d.ts +34 -0
  530. package/dist/src/views/template-editor/components/EditorCanvas/FreeElement.d.ts +30 -0
  531. package/dist/src/views/template-editor/components/EditorCanvas.d.ts +30 -12
  532. package/dist/src/views/template-editor/components/EditorHeader.d.ts +6 -0
  533. package/dist/src/views/template-editor/components/EditorSection.d.ts +1 -0
  534. package/dist/src/views/template-editor/components/SectionFlowEditor.d.ts +2 -3
  535. package/dist/src/views/template-editor/components/SectionFormatPanel.d.ts +2 -1
  536. package/dist/src/views/template-editor/components/controllers/TableControls.d.ts +23 -0
  537. package/dist/src/views/template-editor/components/controllers/TextControls.d.ts +3 -0
  538. package/dist/src/views/template-editor/components/stationery/StationeryPreview.d.ts +24 -0
  539. package/dist/src/views/template-editor/components/stationery/StationerySidebar.d.ts +9 -0
  540. package/dist/src/views/template-editor/engine/ai.d.ts +12 -0
  541. package/dist/src/views/template-editor/engine/app.d.ts +1 -0
  542. package/dist/src/views/template-editor/engine/controls.d.ts +4 -0
  543. package/dist/src/views/template-editor/engine/design-canvas.d.ts +24 -0
  544. package/dist/src/views/template-editor/engine/editor.d.ts +17 -0
  545. package/dist/src/views/template-editor/engine/engine.d.ts +18 -0
  546. package/dist/src/views/template-editor/engine/icons.d.ts +91 -0
  547. package/dist/src/views/template-editor/engine/letterpads.d.ts +1 -0
  548. package/dist/src/views/template-editor/engine/model.d.ts +20 -0
  549. package/dist/src/views/template-editor/engine/paginator.d.ts +30 -0
  550. package/dist/src/views/template-editor/engine/picker.d.ts +20 -0
  551. package/dist/src/views/template-editor/engine/schema.d.ts +647 -0
  552. package/dist/src/views/template-editor/engine/stationery-app.d.ts +10 -0
  553. package/dist/src/views/template-editor/engine/stationery-doc.d.ts +62 -0
  554. package/dist/src/views/template-editor/engine/stationery-free-element.d.ts +22 -0
  555. package/dist/src/views/template-editor/engine/stationery-store.d.ts +154 -0
  556. package/dist/src/views/template-editor/engine/templatebuilder.d.ts +51 -0
  557. package/dist/src/views/template-editor/engine/templates.d.ts +11 -0
  558. package/dist/src/views/template-editor/icons/custom-styled-icon.d.ts +7 -0
  559. package/dist/src/views/template-editor/icons/edit.d.ts +4 -0
  560. package/dist/src/views/template-editor/icons/trash.d.ts +4 -0
  561. package/dist/src/views/template-editor/types/editor.d.ts +20 -108
  562. package/dist/src/views/template-editor/types/stationery.d.ts +66 -0
  563. package/dist/src/views/template-editor/utils/common.d.ts +10 -1
  564. package/dist/src/views/template-editor/utils/compiler.d.ts +12 -0
  565. package/dist/src/views/template-editor/utils/constant.d.ts +4 -1
  566. package/dist/style.css +4629 -100
  567. package/dist/utils/api/index.esm.js +1 -1
  568. package/dist/utils/common/index.esm.js +1 -1
  569. package/dist/utils/common-utility/index.esm.js +1 -1
  570. package/dist/utils/export-filters/index.esm.js +0 -1
  571. package/dist/utils/export-filters/index.esm.js.map +1 -1
  572. package/dist/utils/export-filters/index.js +0 -1
  573. package/dist/utils/export-filters/index.js.map +1 -1
  574. package/dist/utils/index.esm.js +9 -9
  575. package/dist/utils/index.js +1 -1
  576. package/dist/utils/metaComponent/index.esm.js +1 -1
  577. package/dist/utils/metaComponent/index.js +1 -1
  578. package/dist/utils/server/index.esm.js +2 -2
  579. package/dist/utils/text-measurement/index.esm.js +1 -1
  580. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  581. package/dist/views/afterAuth/dashboard/index.js +1 -1
  582. package/dist/views/afterAuth/index.esm.js +2 -2
  583. package/dist/views/afterAuth/index.js +2 -2
  584. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  585. package/dist/views/afterAuth/page-view/index.js +1 -1
  586. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  587. package/dist/views/form-builder/custom-form/index.js +1 -1
  588. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  589. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  590. package/dist/views/form-builder/form-fields/index.js +1 -1
  591. package/dist/views/form-builder/index.esm.js +5 -5
  592. package/dist/views/form-builder/index.js +3 -3
  593. package/dist/views/form-builder/redux/index.esm.js +1 -1
  594. package/dist/views/form-builder/utils/index.esm.js +1 -1
  595. package/dist/views/form-builder/utils/index.js +1 -1
  596. package/dist/views/index.esm.js +39 -34
  597. package/dist/views/index.esm.js.map +1 -1
  598. package/dist/views/index.js +36 -31
  599. package/dist/views/index.js.map +1 -1
  600. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  601. package/dist/views/template-editor/add-template/index.js +1 -1
  602. package/dist/views/template-editor/components/index.esm.js +7 -6
  603. package/dist/views/template-editor/components/index.esm.js.map +1 -1
  604. package/dist/views/template-editor/components/index.js +4 -3
  605. package/dist/views/template-editor/components/index.js.map +1 -1
  606. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  607. package/dist/views/template-editor/index.esm.js +25 -20
  608. package/dist/views/template-editor/index.esm.js.map +1 -1
  609. package/dist/views/template-editor/index.js +16 -11
  610. package/dist/views/template-editor/index.js.map +1 -1
  611. package/dist/views/template-editor/routes/index.esm.js +1 -1
  612. package/dist/views/template-editor/routes/index.js +1 -1
  613. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  614. package/dist/views/template-editor/template-modal/index.js +1 -1
  615. package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
  616. package/dist/views/template-editor/template-name-modal/index.js +1 -1
  617. package/dist/views/template-editor/templates/index.esm.js +1 -1
  618. package/dist/views/template-editor/templates/index.js +1 -1
  619. package/dist/views/template-editor/utils/index.esm.js +10 -6
  620. package/dist/views/template-editor/utils/index.js +6 -2
  621. package/dist/views/template-editor/utils/index.js.map +1 -1
  622. package/package.json +1 -1
  623. package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js +0 -5479
  624. package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js.map +0 -1
  625. package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js +0 -5478
  626. package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js.map +0 -1
  627. package/dist/chunks/add-template-DVvbD9a4.esm.js +0 -11
  628. package/dist/chunks/add-template-DVvbD9a4.esm.js.map +0 -1
  629. package/dist/chunks/add-template-Dohg2bHJ.js +0 -10
  630. package/dist/chunks/add-template-Dohg2bHJ.js.map +0 -1
  631. package/dist/chunks/chat-bot-BpNtrZEL.esm.js.map +0 -1
  632. package/dist/chunks/chat-bot-osiGMG3g.js.map +0 -1
  633. package/dist/chunks/common-C5AokA7z.js +0 -368
  634. package/dist/chunks/common-C5AokA7z.js.map +0 -1
  635. package/dist/chunks/common-CaomnEjX.esm.js +0 -369
  636. package/dist/chunks/common-CaomnEjX.esm.js.map +0 -1
  637. package/dist/chunks/common-utility-DGpbsf7S.esm.js.map +0 -1
  638. package/dist/chunks/constant-Bwg2s_Sn.esm.js.map +0 -1
  639. package/dist/chunks/constant-ZYAN_teD.js.map +0 -1
  640. package/dist/chunks/edit-section-modal-BW-aZmUv.esm.js.map +0 -1
  641. package/dist/chunks/fullScreen-BLLa9ogA.js.map +0 -1
  642. package/dist/chunks/fullScreen-DFgzE41_.esm.js.map +0 -1
  643. package/dist/chunks/template-modal-B2VgotrF.esm.js.map +0 -1
  644. package/dist/chunks/template-modal-X-iSmlki.js.map +0 -1
  645. package/dist/chunks/template-name-modal-CeqxIE2r.js.map +0 -1
  646. package/dist/chunks/template-name-modal-Dctn8t3t.esm.js.map +0 -1
  647. package/dist/chunks/templates-CCy1eG6A.esm.js.map +0 -1
  648. package/dist/chunks/templates-CUREMwYo.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"modules-BBu2Y-K9.esm.js","sources":["../../src/constants/pathnames/pathname.onboarding.ts","../../src/constants/modules.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Pathname } from \"./pathname\";\n\nexport const PathnameGenerator = (name: string): string => Pathname.DASHBOARD_ONBOARDING + name;\n\nconst CRUD_ACTIONS = { ADD: 'add', VIEW: 'view', EDIT: 'edit' } as const;\n\ntype ModulePaths = Record<string, string>;\n\nexport const MAIN_MENU: ModulePaths = {\n SETTINGS: 'settings',\n};\n\nexport const MODULES: ModulePaths = {\n SETTINGS: 'settings',\n};\n\nexport const generateCrudPaths = (\n base: string,\n entity: string,\n prefix = '',\n keyPostfix = ''\n) =>\n { \n return Object.fromEntries(\n Object.entries(CRUD_ACTIONS).map(([key, action]) => {\n const isEditOrView = action === 'edit' || action === 'view';\n const id = (isEditOrView && MODULES[base]?.includes(':id')) ? `:${entity?.replace('-', \"\")}Id` : ':id'\n const routeParts = [prefix, MODULES[base]];\n if (isEditOrView) {\n routeParts.push(id, `${action}-${entity}`);\n } else {\n routeParts.push(`${action}-${entity}`);\n }\n\n return [\n `${key}_${keyPostfix.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`,\n `/${routeParts.filter(Boolean).join('/')}`,\n ];\n })\n );\n}\n\n\nexport const generateModulePaths = (mainModule: keyof typeof MAIN_MENU, subModule: keyof typeof MODULES = '', entity: string, keyPostfix = '') => ({\n [subModule.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()]: `/${[MAIN_MENU[mainModule], MODULES[subModule]].filter(Boolean).join('/')}`,\n ...generateCrudPaths(subModule, entity, MAIN_MENU[mainModule], keyPostfix),\n});\n\nexport const PathnameOnBoarding: Record<any, string> = {\n LANDING_PAGE: '/',\n LIST: '/list',\n FORMS: \"/settings/forms\",\n};\n\n","import { Pathname } from \"./pathnames/pathname\";\nimport image from \"../assets/images\";\nimport { PathnameUsers } from \"./pathnames/pathname.user\";\nimport { PathnameAccounting } from \"./pathnames/pathname.accounting\";\nimport { PathnameDocument } from \"./pathnames/pathname.document\";\nimport { PathnameInventory } from \"./pathnames/pathname.inventory\";\nimport { PathnameManufacturing } from \"./pathnames/pathname.manufacturing\";\nimport { PathnameCrm } from \"./pathnames/pathname.crm\";\nimport { PathnamePurchase } from \"./pathnames/pathname.procurement\";\nimport { PathnameRental } from \"./pathnames/pathname.rental\";\nimport { PathnameHrms } from \"./pathnames/pathname.hrms\";\nimport { PathnameOnBoarding } from \"./pathnames/pathname.onboarding\";\nimport { getApiConfig } from \"../utils/api-config\";\nimport { getModuleRoutes } from \"../utils/module-routes-config\";\n\n// Helper to conditionally create the onboarding menu item\nconst getOnboardingMenuItem = (t: any, env: string) => {\n if (!['ksa'].includes(env)) {\n return [];\n }\n\n return [\n {\n label: t(\"onboarding.name\"),\n link: Pathname.DASHBOARD_ONBOARDING,\n sidebar: image.sidebar.user,\n bacModuleName: \"user\",\n icon: image.user,\n permission: \"\",\n beModuleName: \"rbac\",\n bg: \"#F3E8FF\",\n connectedRoutes: Object.values(PathnameOnBoarding).map(\n (path: string) => Pathname.DASHBOARD_ONBOARDING + path\n ),\n translationModule: [\"onboarding\"],\n },\n ];\n};\n\nconst modules = (t: any) => {\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const config: any = getApiConfig();\n const access_modules = userData?.module_access || [];\n const VITE_APP_ENV = config?.zatcaEnvironment || 'simulation';\n const accessibleModules = access_modules.map((module: any) => module.module_name);\n const accessibleModulesSet = new Set(accessibleModules);\n\n const MenuBar = [\n {\n label: t(\"common.modules.user.title\"),\n link: Pathname.DASHBOARD_USER,\n sidebar: image.sidebar.user,\n bacModuleName: \"user\",\n icon: image.user,\n permission: \"\",\n beModuleName: \"rbac\",\n bg: \"#F3E8FF\",\n connectedRoutes: Object.values(PathnameUsers).map(\n (path: string) => Pathname.DASHBOARD_USER + path\n ),\n translationModule: [\"user\"]\n },\n {\n label: t(\"common.modules.document.title\"),\n link: Pathname.DASHBOARD_DOCUMENT,\n sidebar: image.sidebar.document,\n bacModuleName: \"document\",\n icon: image.document,\n permission: \"\",\n beModuleName: \"document\",\n bg: \"#E0F2FE\",\n connectedRoutes: Object.values(PathnameDocument).map(\n (path: string) => Pathname.DASHBOARD_DOCUMENT + path\n ),\n translationModule: [\"document\"]\n },\n {\n label: t(\"common.modules.accounting.title\"),\n link: Pathname.DASHBOARD_ACCOUNTING,\n sidebar: image.sidebar.accountingIcon,\n bacModuleName: \"accounts-and-finance\",\n icon: image.accounting,\n permission: \"\",\n beModuleName: \"accounts-and-finance\",\n bg: \"#EBF9F2\",\n connectedRoutes: Object.values(PathnameAccounting).map(\n (path: string) => Pathname.DASHBOARD_ACCOUNTING + path\n ),\n translationModule: [\"accounting\"]\n },\n {\n label: t(\"common.modules.inventory.title\"),\n link: Pathname.DASHBOARD_INVENTORY,\n sidebar: image.sidebar.inventoryIcon,\n bacModuleName: \"inventory\",\n icon: image.inventory,\n permission: \"\",\n beModuleName: \"inventory\",\n bg: \"#FEF3C7\",\n connectedRoutes: Object.values(PathnameInventory).map(\n (path: string) => Pathname.DASHBOARD_INVENTORY + path\n ),\n translationModule: [\"inventory\"]\n },\n {\n label: t(\"common.modules.project.title\"),\n link: Pathname.DASHBOARD_PROJECT,\n sidebar: image.sidebar.projectIcon,\n bacModuleName: \"project\",\n icon: image.project,\n permission: \"\",\n beModuleName: \"project\",\n bg: \"#DCFCE7\",\n connectedRoutes: [],\n translationModule: [\"project\"]\n },\n {\n label: t(\"common.modules.procurement.title\"),\n link: Pathname.DASHBOARD_PROCUREMENT,\n sidebar: image.sidebar.procurementIcon,\n bacModuleName: \"purchase\",\n icon: image.procurement,\n permission: \"\",\n beModuleName: \"purchase\",\n bg: \"#FFEBE6\",\n connectedRoutes: Object.values(PathnamePurchase).map(\n (path: string) => Pathname.DASHBOARD_PROCUREMENT + path\n ),\n // connectedRoutes: [],\n translationModule: [\"procurement\", \"accounting\"]\n },\n {\n label: t(\"common.modules.manufacturing.title\"),\n link: Pathname.DASHBOARD_MANUFACTURING,\n sidebar: image.sidebar.manufacturingIcon,\n bacModuleName: \"manufacturing\",\n icon: image.manufacturing,\n permission: \"\",\n beModuleName: \"manufacturing\",\n bg: \"#F0FDF4\",\n connectedRoutes: Object.values(PathnameManufacturing).map(\n (path: string) => Pathname.DASHBOARD_MANUFACTURING + path\n ),\n translationModule: [\"manufacturing\"]\n },\n {\n label: t(\"common.modules.crm.title\"),\n link: Pathname.DASHBOARD_CRM,\n sidebar: image.sidebar.crmIcon,\n bacModuleName: \"sales\",\n icon: image.crm,\n permission: \"\",\n beModuleName: \"sales\",\n bg: \"#FCEBEC\",\n connectedRoutes: Object.values(PathnameCrm).map(\n (path: string) => Pathname.DASHBOARD_CRM + path\n ),\n translationModule: [\"crm\", \"accounting\"]\n },\n // {\n // label: t(\"purchase.name\"),\n // link: Pathname.DASHBOARD_PURCHASE,\n // sidebar: image.sidebar.purchaseIcon,\n // icon: image.sidebar.purchaseIcon,\n // permission: \"\",\n // bg: \"rgba(111, 102, 215, 0.10)\",\n // connectedRoutes: [],\n // },\n {\n label: t(\"common.modules.hrms.title\"),\n link: Pathname.DASHBOARD_HRMS,\n sidebar: image.sidebar.hrmsIcon,\n bacModuleName: \"hrms\",\n icon: image.hrms,\n permission: \"\",\n beModuleName: \"hrms\",\n bg: \"#EEF2FF\",\n connectedRoutes: (() => {\n // Prefer MFE-injected routes (set via ERPUIProvider's moduleRoutes prop)\n // which contain the full, up-to-date route list from the HRMS MFE.\n // Fall back to common-hub's PathnameHrms if no MFE routes were injected.\n const mfeRoutes = getModuleRoutes('hrms');\n if (mfeRoutes.length > 0) return mfeRoutes;\n return Object.values(PathnameHrms).map(\n (path: string) => Pathname.DASHBOARD_HRMS + path\n );\n })(),\n translationModule: [\"hrms\"]\n },\n {\n label: t(\"common.modules.office.title\"),\n link: Pathname.DASHBOARD_OFFICE,\n sidebar: image.sidebar.officeIcon,\n bacModuleName: \"office\",\n icon: image.office,\n permission: \"\",\n beModuleName: \"office\",\n bg: \"#DCFCE7\",\n connectedRoutes: [],\n translationModule: [\"office\"]\n },\n {\n label: t(\"common.modules.rental.title\"),\n link: Pathname.DASHBOARD_RENTAL,\n sidebar: image.sidebar.rentalIcon,\n bacModuleName: \"rental\",\n icon: image.rental,\n permission: \"\",\n beModuleName: \"rental\",\n bg: \"#FEF3C7\",\n connectedRoutes: Object.values(PathnameRental).map(\n (path: string) => Pathname.DASHBOARD_RENTAL + path\n ),\n translationModule: [\"rental\",\"inventory\"]\n },\n {\n label: t(\"common.modules.settings.title\"),\n link: Pathname.DASHBOARD_QUOTES,\n sidebar: image.sidebar.setting,\n bacModuleName: \"setting\",\n icon: image.settings,\n permission: \"\",\n beModuleName: \"setting\",\n bg: \"#EEF2FF\",\n connectedRoutes: [],\n translationModule: [\"settings\"]\n },\n ...getOnboardingMenuItem(t, VITE_APP_ENV),\n ];\n\n function filterMenu(menu: any[]) {\n return menu.filter((item) => {\n const isModuleAccessible = accessibleModulesSet.has(item.bacModuleName);\n let hasValidSubmenu = false;\n\n if (item.submenu && item.submenu.length > 0) {\n item.submenu = filterMenu(item.submenu); // Recursively filter submenu\n hasValidSubmenu = item.submenu.length > 0;\n }\n\n return isModuleAccessible || hasValidSubmenu;\n });\n }\n\n const filteredMenu = filterMenu(MenuBar);\n\n return filteredMenu;\n};\n\nexport default modules;"],"names":["image"],"mappings":";;;;;;;AAiDO,MAAM,qBAA0C;AAAA,EACrD,cAAc;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AACT;ACrCA,MAAM,wBAAwB,CAAC,GAAQ,QAAgB;AACrD,MAAI,CAAC,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG;AAC1B,WAAO,CAAA;AAAA,E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K,WAAW,KAAK,QAAQ,SAAS,GAAG;AAC3C,aAAK,UAAU,WAAW,KAAK,OAAO;AACtC,0BAAkB,KAAK,QAAQ,SAAS;AAAA,MAC1C;AAEA,aAAO,sBAAsB;AAAA,IAC/B,CAAC;AAAA,EACH;AAEA,QAAM,eAAe,WAAW,OAAO;AAEvC,SAAO;AACT;"}
1
+ {"version":3,"file":"modules-enwLrpfQ.esm.js","sources":["../../src/constants/pathnames/pathname.onboarding.ts","../../src/constants/modules.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Pathname } from \"./pathname\";\n\nexport const PathnameGenerator = (name: string): string => Pathname.DASHBOARD_ONBOARDING + name;\n\nconst CRUD_ACTIONS = { ADD: 'add', VIEW: 'view', EDIT: 'edit' } as const;\n\ntype ModulePaths = Record<string, string>;\n\nexport const MAIN_MENU: ModulePaths = {\n SETTINGS: 'settings',\n};\n\nexport const MODULES: ModulePaths = {\n SETTINGS: 'settings',\n};\n\nexport const generateCrudPaths = (\n base: string,\n entity: string,\n prefix = '',\n keyPostfix = ''\n) =>\n { \n return Object.fromEntries(\n Object.entries(CRUD_ACTIONS).map(([key, action]) => {\n const isEditOrView = action === 'edit' || action === 'view';\n const id = (isEditOrView && MODULES[base]?.includes(':id')) ? `:${entity?.replace('-', \"\")}Id` : ':id'\n const routeParts = [prefix, MODULES[base]];\n if (isEditOrView) {\n routeParts.push(id, `${action}-${entity}`);\n } else {\n routeParts.push(`${action}-${entity}`);\n }\n\n return [\n `${key}_${keyPostfix.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()}`,\n `/${routeParts.filter(Boolean).join('/')}`,\n ];\n })\n );\n}\n\n\nexport const generateModulePaths = (mainModule: keyof typeof MAIN_MENU, subModule: keyof typeof MODULES = '', entity: string, keyPostfix = '') => ({\n [subModule.replace(/[^a-zA-Z0-9]/g, '_').toUpperCase()]: `/${[MAIN_MENU[mainModule], MODULES[subModule]].filter(Boolean).join('/')}`,\n ...generateCrudPaths(subModule, entity, MAIN_MENU[mainModule], keyPostfix),\n});\n\nexport const PathnameOnBoarding: Record<any, string> = {\n LANDING_PAGE: '/',\n LIST: '/list',\n FORMS: \"/settings/forms\",\n};\n\n","import { Pathname } from \"./pathnames/pathname\";\nimport image from \"../assets/images\";\nimport { PathnameUsers } from \"./pathnames/pathname.user\";\nimport { PathnameAccounting } from \"./pathnames/pathname.accounting\";\nimport { PathnameDocument } from \"./pathnames/pathname.document\";\nimport { PathnameInventory } from \"./pathnames/pathname.inventory\";\nimport { PathnameManufacturing } from \"./pathnames/pathname.manufacturing\";\nimport { PathnameCrm } from \"./pathnames/pathname.crm\";\nimport { PathnamePurchase } from \"./pathnames/pathname.procurement\";\nimport { PathnameRental } from \"./pathnames/pathname.rental\";\nimport { PathnameHrms } from \"./pathnames/pathname.hrms\";\nimport { PathnameOnBoarding } from \"./pathnames/pathname.onboarding\";\nimport { getApiConfig } from \"../utils/api-config\";\nimport { getModuleRoutes } from \"../utils/module-routes-config\";\n\n// Helper to conditionally create the onboarding menu item\nconst getOnboardingMenuItem = (t: any, env: string) => {\n if (!['ksa'].includes(env)) {\n return [];\n }\n\n return [\n {\n label: t(\"onboarding.name\"),\n link: Pathname.DASHBOARD_ONBOARDING,\n sidebar: image.sidebar.user,\n bacModuleName: \"user\",\n icon: image.user,\n permission: \"\",\n beModuleName: \"rbac\",\n bg: \"#F3E8FF\",\n connectedRoutes: Object.values(PathnameOnBoarding).map(\n (path: string) => Pathname.DASHBOARD_ONBOARDING + path\n ),\n translationModule: [\"onboarding\"],\n },\n ];\n};\n\nconst modules = (t: any) => {\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const config: any = getApiConfig();\n const access_modules = userData?.module_access || [];\n const VITE_APP_ENV = config?.zatcaEnvironment || 'simulation';\n const accessibleModules = access_modules.map((module: any) => module.module_name);\n const accessibleModulesSet = new Set(accessibleModules);\n\n const MenuBar = [\n {\n label: t(\"common.modules.user.title\"),\n link: Pathname.DASHBOARD_USER,\n sidebar: image.sidebar.user,\n bacModuleName: \"user\",\n icon: image.user,\n permission: \"\",\n beModuleName: \"rbac\",\n bg: \"#F3E8FF\",\n connectedRoutes: Object.values(PathnameUsers).map(\n (path: string) => Pathname.DASHBOARD_USER + path\n ),\n translationModule: [\"user\"]\n },\n {\n label: t(\"common.modules.document.title\"),\n link: Pathname.DASHBOARD_DOCUMENT,\n sidebar: image.sidebar.document,\n bacModuleName: \"document\",\n icon: image.document,\n permission: \"\",\n beModuleName: \"document\",\n bg: \"#E0F2FE\",\n connectedRoutes: Object.values(PathnameDocument).map(\n (path: string) => Pathname.DASHBOARD_DOCUMENT + path\n ),\n translationModule: [\"document\"]\n },\n {\n label: t(\"common.modules.accounting.title\"),\n link: Pathname.DASHBOARD_ACCOUNTING,\n sidebar: image.sidebar.accountingIcon,\n bacModuleName: \"accounts-and-finance\",\n icon: image.accounting,\n permission: \"\",\n beModuleName: \"accounts-and-finance\",\n bg: \"#E8EAF6\",\n connectedRoutes: Object.values(PathnameAccounting).map(\n (path: string) => Pathname.DASHBOARD_ACCOUNTING + path\n ),\n translationModule: [\"accounting\"]\n },\n {\n label: t(\"common.modules.inventory.title\"),\n link: Pathname.DASHBOARD_INVENTORY,\n sidebar: image.sidebar.inventoryIcon,\n bacModuleName: \"inventory\",\n icon: image.inventory,\n permission: \"\",\n beModuleName: \"inventory\",\n bg: \"#FFF3E6\",\n connectedRoutes: Object.values(PathnameInventory).map(\n (path: string) => Pathname.DASHBOARD_INVENTORY + path\n ),\n translationModule: [\"inventory\"]\n },\n {\n label: t(\"common.modules.project.title\"),\n link: Pathname.DASHBOARD_PROJECT,\n sidebar: image.sidebar.projectIcon,\n bacModuleName: \"project\",\n icon: image.project,\n permission: \"\",\n beModuleName: \"project\",\n bg: \"#DCFCE7\",\n connectedRoutes: [],\n translationModule: [\"project\"]\n },\n {\n label: t(\"common.modules.procurement.title\"),\n link: Pathname.DASHBOARD_PROCUREMENT,\n sidebar: image.sidebar.procurementIcon,\n bacModuleName: \"purchase\",\n icon: image.procurement,\n permission: \"\",\n beModuleName: \"purchase\",\n bg: \"#FFEBE6\",\n connectedRoutes: Object.values(PathnamePurchase).map(\n (path: string) => Pathname.DASHBOARD_PROCUREMENT + path\n ),\n // connectedRoutes: [],\n translationModule: [\"procurement\", \"accounting\"]\n },\n {\n label: t(\"common.modules.manufacturing.title\"),\n link: Pathname.DASHBOARD_MANUFACTURING,\n sidebar: image.sidebar.manufacturingIcon,\n bacModuleName: \"manufacturing\",\n icon: image.manufacturing,\n permission: \"\",\n beModuleName: \"manufacturing\",\n bg: \"#F0FDF4\",\n connectedRoutes: Object.values(PathnameManufacturing).map(\n (path: string) => Pathname.DASHBOARD_MANUFACTURING + path\n ),\n translationModule: [\"manufacturing\"]\n },\n {\n label: t(\"common.modules.crm.title\"),\n link: Pathname.DASHBOARD_CRM,\n sidebar: image.sidebar.crmIcon,\n bacModuleName: \"sales\",\n icon: image.crm,\n permission: \"\",\n beModuleName: \"sales\",\n bg: \"#FCEBEC\",\n connectedRoutes: Object.values(PathnameCrm).map(\n (path: string) => Pathname.DASHBOARD_CRM + path\n ),\n translationModule: [\"crm\", \"accounting\"]\n },\n // {\n // label: t(\"purchase.name\"),\n // link: Pathname.DASHBOARD_PURCHASE,\n // sidebar: image.sidebar.purchaseIcon,\n // icon: image.sidebar.purchaseIcon,\n // permission: \"\",\n // bg: \"rgba(111, 102, 215, 0.10)\",\n // connectedRoutes: [],\n // },\n {\n label: t(\"common.modules.hrms.title\"),\n link: Pathname.DASHBOARD_HRMS,\n sidebar: image.sidebar.hrmsIcon,\n bacModuleName: \"hrms\",\n icon: image.hrms,\n permission: \"\",\n beModuleName: \"hrms\",\n bg: \"#EBF9F2\",\n connectedRoutes: (() => {\n // Prefer MFE-injected routes (set via ERPUIProvider's moduleRoutes prop)\n // which contain the full, up-to-date route list from the HRMS MFE.\n // Fall back to common-hub's PathnameHrms if no MFE routes were injected.\n const mfeRoutes = getModuleRoutes('hrms');\n if (mfeRoutes.length > 0) return mfeRoutes;\n return Object.values(PathnameHrms).map(\n (path: string) => Pathname.DASHBOARD_HRMS + path\n );\n })(),\n translationModule: [\"hrms\"]\n },\n {\n label: t(\"common.modules.office.title\"),\n link: Pathname.DASHBOARD_OFFICE,\n sidebar: image.sidebar.officeIcon,\n bacModuleName: \"office\",\n icon: image.office,\n permission: \"\",\n beModuleName: \"office\",\n bg: \"#DCFCE7\",\n connectedRoutes: [],\n translationModule: [\"office\"]\n },\n {\n label: t(\"common.modules.rental.title\"),\n link: Pathname.DASHBOARD_RENTAL,\n sidebar: image.sidebar.rentalIcon,\n bacModuleName: \"rental\",\n icon: image.rental,\n permission: \"\",\n beModuleName: \"rental\",\n bg: \"#FEF3C7\",\n connectedRoutes: Object.values(PathnameRental).map(\n (path: string) => Pathname.DASHBOARD_RENTAL + path\n ),\n translationModule: [\"rental\",\"inventory\"]\n },\n {\n label: t(\"common.modules.settings.title\"),\n link: Pathname.DASHBOARD_QUOTES,\n sidebar: image.sidebar.setting,\n bacModuleName: \"setting\",\n icon: image.settings,\n permission: \"\",\n beModuleName: \"setting\",\n bg: \"#EEF2FF\",\n connectedRoutes: [],\n translationModule: [\"settings\"]\n },\n ...getOnboardingMenuItem(t, VITE_APP_ENV),\n ];\n\n function filterMenu(menu: any[]) {\n return menu.filter((item) => {\n const isModuleAccessible = accessibleModulesSet.has(item.bacModuleName);\n let hasValidSubmenu = false;\n\n if (item.submenu && item.submenu.length > 0) {\n item.submenu = filterMenu(item.submenu); // Recursively filter submenu\n hasValidSubmenu = item.submenu.length > 0;\n }\n\n return isModuleAccessible || hasValidSubmenu;\n });\n }\n\n const filteredMenu = filterMenu(MenuBar);\n\n return filteredMenu;\n};\n\nexport default modules;"],"names":["image"],"mappings":";;;;;;;AAiDO,MAAM,qBAA0C;AAAA,EACrD,cAAc;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AACT;ACrCA,MAAM,wBAAwB,CAAC,GAAQ,QAAg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C3B,YAAM,qBAAqB,qBAAqB,IAAI,KAAK,aAAa;AACtE,UAAI,kBAAkB;AAEtB,UAAI,KAAK,WAAW,KAAK,QAAQ,SAAS,GAAG;AAC3C,aAAK,UAAU,WAAW,KAAK,OAAO;AACtC,0BAAkB,KAAK,QAAQ,SAAS;AAAA,MAC1C;AAEA,aAAO,sBAAsB;AAAA,IAC/B,CAAC;AAAA,EACH;AAEA,QAAM,eAAe,WAAW,OAAO;AAEvC,SAAO;AACT;"}
@@ -9,7 +9,7 @@ const utils_formatText = require("../utils/format-text/index.js");
9
9
  const typography = require("./typography-Bqfr1Ksf.js");
10
10
  const images = require("../images/index.js");
11
11
  const utils_routeUtils = require("../utils/route-utils/index.js");
12
- const pathname_rental = require("./pathname.rental-DgH4LoG7.js");
12
+ const pathname_rental = require("./pathname.rental-CwK6JuID.js");
13
13
  const reactRouterDom = require("react-router-dom");
14
14
  const notification = require("./notification-DK92P_4L.js");
15
15
  const tick = require("./tick-CQMWRTch.js");
@@ -597,4 +597,4 @@ const NotificationMenu = () => {
597
597
  ] });
598
598
  };
599
599
  exports.NotificationMenu = NotificationMenu;
600
- //# sourceMappingURL=notification-menu-D7ASm-K1.js.map
600
+ //# sourceMappingURL=notification-menu-B00hDUbn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-menu-D7ASm-K1.js","sources":["../../src/components/header/components/notification-menu/notification-menu.tsx"],"sourcesContent":["import React, { useState, useCallback, useRef, useEffect } from 'react'\nimport {\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tBadge,\n\tBox,\n\tCircularProgress,\n\tAvatar,\n\tListItemText,\n\tListItemAvatar,\n\tAlert,\n\tSkeleton,\n} from '@mui/material'\nimport {\n\tPerson as PersonIcon,\n\tEmail as EmailIcon,\n\tWarning as WarningIcon,\n\tCheckCircle as CheckCircleIcon,\n\tAssignment as AssignmentIcon,\n\tAccountBalance as AccountBalanceIcon,\n\tHourglassEmpty as HourglassEmptyIcon,\n\tCancel as CancelIcon,\n} from '@mui/icons-material'\nimport {\n\tgetV1Notification,\n\tgetV1NotificationMarkAllAsRead,\n\tpatchV1NotificationMarkAsReadId,\n} from '../../../../api-client/api.system-feature/api'\nimport { getErrorMessage, getToken } from '../../../../utils/common'\nimport formatText, { convertToUnderscore, formatLabel } from '../../../../utils/format-text'\nimport Typography from '../../../typography/typography'\nimport images from '../../../../assets/images'\nimport { generateRouteWithId } from '../../../../utils/route-utils'\nimport { PathnameGenerator, PathnameAccounting } from '../../../../constants/pathnames/pathname.accounting'\nimport { ROUTES as RENTALROUTES } from '../../../../constants/pathnames/pathname.rental'\n\nimport { PathnameInventory, PathnameGenerator as PathnameGeneratorInventory } from '../../../../constants/pathnames/pathname.inventory'\n\nimport {\n\tPathnameManufacturing,\n\tPathnameGenerator as PathnameGeneratorManufacuring,\n} from '../../../../constants/pathnames/pathname.manufacturing.ts'\n\nimport {\n\tPathnamePurchase,\n\tPathnameGenerator as PathnameGeneratorPurchase,\n} from '../../../../constants/pathnames/pathname.procurement.ts'\n\nimport { PathnameCrm, PathnameGenerator as PathnameGeneratorCrm } from '../../../../constants/pathnames/pathname.crm.ts'\n\nimport { PathnameRental, PathnameGenerator as PathnameGeneratorRental } from '../../../../constants/pathnames/pathname.rental.ts'\n\nimport { useNavigate } from 'react-router-dom'\nimport { Notification, Tick } from '../../../icons'\nimport Button from '../../../button/button'\nimport { enqueueSnackbar } from 'notistack'\n\nconst getNotificationUrl = (data: any) => {\n\tconst { moduleName = '', moduleId = '', notificationData = {} } = data\n\tconst key = convertToUnderscore(moduleName)\n\n\tconst routeMap: Record<string, () => string> = {\n\t\tsales_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_SALES_INVOICES), moduleId.toString()),\n\n\t\tasset_transfers: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_ASSET_TRANSFER), moduleId.toString()),\n\n\t\tbudgets: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_BUDGET), moduleId.toString()),\n\n\t\tcash_expense: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CASH_EXPENSE), moduleId.toString()),\n\n\t\tcredit_notes: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CREDIT_NOTE), moduleId.toString()),\n\n\t\tdebit_notes: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_DEBIT_NOTE), moduleId.toString()),\n\n\t\texpense_reimbursement: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT), moduleId.toString()),\n\n\t\tjournal_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_JOURNAL_ENTRY), moduleId.toString()),\n\n\t\tpayment_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PAYMENT_ENTRY), moduleId.toString()),\n\n\t\tpurchase_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PURCHASE_INVOICE), moduleId.toString()),\n\n\t\tstock_transfer: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorInventory(PathnameInventory.VIEW_STOCK_TRANSFER), moduleId.toString()),\n\n\t\tbills_of_materials: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tPathnameGeneratorManufacuring(PathnameManufacturing.VIEW_BILL_OF_MATERIAL),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_AGREEMENT), moduleId.toString()),\n\n\t\tpurchase_orders: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tnotificationData?.data?.is_rental == 1\n\t\t\t\t\t? RENTALROUTES.VIEW\n\t\t\t\t\t: PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER), moduleId.toString()),\n\n\t\tvra: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_VENDOR_RETURNS), moduleId.toString()),\n\n\t\tsales_customer_returns: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_CUSTOMER_RETURNS), moduleId.toString()),\n\n\t\tsales_order: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_SALES_ORDER), moduleId.toString()),\n\n\t\tquotation: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_QUOTATION), moduleId.toString()),\n\n\t\trental_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\treplacement_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\trental_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_AGREEMENT), moduleId.toString()),\n\n\t\tcross_hire_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_ORDER), moduleId.toString()),\n\n\t\tcross_hire_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_REQUEST), moduleId.toString()),\n\t}\n\n\treturn routeMap[key]?.() || '/dashboard'\n}\n\nconst mainModuleIcons = {\n\trbac: images.user,\n\tdocument: images.document,\n\t'accounts-and-finance': images.accounting,\n\tinventory: images.inventory,\n\tmanufacturing: images.manufacturing,\n\tsales: images.crm,\n\trental: images.rental,\n\tuser: images.user,\n\tpurchase: images.procurement,\n\thrms: images.hrms,\n}\nconst mainModuleBgColors = {\n\trbac: '#F3E5F5',\n\tdocument: '#FFF8E1',\n\t'accounts-and-finance': '#E8F5E8',\n\tinventory: '#E3F2FD',\n\tmanufacturing: '#FFF3E0',\n\tsales: '#F3E5F5',\n\trental: '#E8F5E8',\n\tuser: '#F3E5F5',\n\tpurchase: '#FCE4EC',\n\thrms: '#fcfcfc',\n}\n\nconst NotificationMenu = () => {\n\tconst [anchorEl, setAnchorEl] = useState(null)\n\tconst [notifications, setNotifications] = useState([])\n\tconst [loading, setLoading] = useState(false)\n\tconst [loadingMore, setLoadingMore] = useState(false)\n\tconst [error, setError] = useState(null)\n\tconst [unreadCount, setUnreadCount] = useState(0)\n\tconst [markingAllAsRead, setMarkingAllAsRead] = useState(false)\n\tconst [pagination, setPagination] = useState({\n\t\tskip: 0,\n\t\tlimit: 20,\n\t\ttotalCount: 0,\n\t\thasMore: true,\n\t})\n\n\tconst navigate = useNavigate()\n\n\tconst menuRef = useRef(null)\n\tconst isLoadingMoreRef = useRef(false)\n\tconst open = Boolean(anchorEl)\n\n\t// Transform API notification to display format\n\tconst transformNotification = (apiNotification) => {\n\t\tconst moduleIcons = {\n\t\t\t'accounts-and-finance': <AccountBalanceIcon color=\"primary\" />,\n\t\t\tuser: <PersonIcon color=\"action\" />,\n\t\t\tapproval: <AssignmentIcon color=\"warning\" />,\n\t\t}\n\n\t\tconst getInitials = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\tif (!firstName && !lastName) return null\n\t\t\treturn (firstName.charAt(0) + lastName.charAt(0)).toUpperCase()\n\t\t}\n\n\t\tconst getFullName = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\treturn `${firstName} ${lastName}`.trim() || null\n\t\t}\n\n\t\tconst formatTimestamp = (dateString) => {\n\t\t\tconst date = new Date(dateString)\n\t\t\tconst now = new Date()\n\t\t\tconst diffMs = now - date\n\t\t\tconst diffMins = Math.floor(diffMs / 60000)\n\t\t\tconst diffHours = Math.floor(diffMs / 3600000)\n\t\t\tconst diffDays = Math.floor(diffMs / 86400000)\n\n\t\t\tif (diffMins < 1) return 'Just now'\n\t\t\tif (diffMins < 60) return `${diffMins} minute${diffMins > 1 ? 's' : ''} ago`\n\t\t\tif (diffHours < 24) return `${diffHours} hour${diffHours > 1 ? 's' : ''} ago`\n\t\t\tif (diffDays < 7) return `${diffDays} day${diffDays > 1 ? 's' : ''} ago`\n\t\t\treturn date.toLocaleDateString()\n\t\t}\n\n\t\tconst subData = apiNotification.sub_module_data || {}\n\n\t\treturn {\n\t\t\tid: apiNotification.id,\n\t\t\ttype: apiNotification.action || apiNotification.notification_type || 'info',\n\t\t\ttitle: formatText(apiNotification.title),\n\t\t\tmessage: apiNotification.message,\n\t\t\ttimestamp: formatTimestamp(apiNotification.created_at),\n\t\t\tread: apiNotification.status === 'read',\n\t\t\tavatar: getInitials(apiNotification.performed_user),\n\t\t\tperformedByName: getFullName(apiNotification.performed_user),\n\t\t\tmodule: apiNotification.module,\n\t\t\tsubModule: apiNotification.sub_module,\n\t\t\tsubModuleId: apiNotification.sub_module_id,\n\t\t\tstatus: apiNotification.status,\n\t\t\tseriesNumber: subData.series_number || null,\n\t\t\tdocumentStatus: subData.status || null,\n\t\t\tcustomerName: subData.customer_name || null,\n\t\t\ticon: moduleIcons[apiNotification.module] || moduleIcons[apiNotification.action] || <PersonIcon color=\"action\" />,\n\t\t}\n\t}\n\n\t// Fetch notifications with pagination\n\tconst fetchNotifications = useCallback(async (isLoadMore = false) => {\n\t\t// Prevent multiple simultaneous load more requests\n\t\tif (isLoadMore && isLoadingMoreRef.current) {\n\t\t\treturn\n\t\t}\n\n\t\tif (isLoadMore) {\n\t\t\tisLoadingMoreRef.current = true\n\t\t\tsetLoadingMore(true)\n\t\t} else {\n\t\t\tsetLoading(true)\n\t\t\t// Reset pagination when loading fresh data\n\t\t\tsetPagination((prev) => ({\n\t\t\t\t...prev,\n\t\t\t\tskip: 0,\n\t\t\t\thasMore: true,\n\t\t\t}))\n\t\t}\n\t\tsetError(null)\n\n\t\ttry {\n\t\t\tconst currentSkip = isLoadMore ? pagination.skip : 0\n\t\t\tconst response = await getV1Notification({\n\t\t\t\tskip: currentSkip,\n\t\t\t\tlimit: pagination.limit,\n\t\t\t\t...getToken(),\n\t\t\t})\n\n\t\t\tif (response.success && response.data) {\n\t\t\t\tconst transformedNotifications = response.data.notifications.map(transformNotification)\n\n\t\t\t\tif (isLoadMore) {\n\t\t\t\t\tsetNotifications((prev) => [...prev, ...transformedNotifications])\n\t\t\t\t} else {\n\t\t\t\t\tsetNotifications(transformedNotifications)\n\t\t\t\t}\n\n\t\t\t\t// Update pagination\n\t\t\t\tconst newSkip = currentSkip + response.data.notifications.length\n\t\t\t\tconst hasMore = newSkip < response.data.pagination.totalCount\n\n\t\t\t\tsetPagination((prev) => ({\n\t\t\t\t\t...prev,\n\t\t\t\t\tskip: newSkip,\n\t\t\t\t\ttotalCount: response.data.pagination.totalCount,\n\t\t\t\t\thasMore,\n\t\t\t\t}))\n\n\t\t\t\t// Calculate unread count (assuming 'pending' status means unread)\n\t\t\t\tif (!isLoadMore) {\n\t\t\t\t\tconst unread = response.data.pagination.unreadCount\n\t\t\t\t\tsetUnreadCount(unread)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsetUnreadCount(0)\n\t\t\t\tthrow new Error(response.message || 'Failed to load notifications')\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tsetError('Failed to load notifications')\n\t\t} finally {\n\t\t\tsetLoading(false)\n\t\t\tsetLoadingMore(false)\n\t\t\tif (isLoadMore) {\n\t\t\t\tisLoadingMoreRef.current = false\n\t\t\t}\n\t\t}\n\t}, [pagination.limit, pagination.skip])\n\n\t// Handle scroll for infinite loading\n\tconst handleScroll = useCallback(\n\t\t(event) => {\n\t\t\tconst { scrollTop, scrollHeight, clientHeight } = event.target\n\t\t\tconst isNearBottom = scrollTop + clientHeight >= scrollHeight - 50 // Increased threshold\n\n\t\t\tif (isNearBottom && !isLoadingMoreRef.current && !loading && pagination.hasMore) {\n\t\t\t\tfetchNotifications(true)\n\t\t\t}\n\t\t},\n\t\t[fetchNotifications, loading, pagination.hasMore]\n\t)\n\n\tconst handleClick = (event) => {\n\t\tsetAnchorEl(event.currentTarget)\n\t\tif (notifications.length === 0) {\n\t\t\tfetchNotifications()\n\t\t}\n\t}\n\n\tconst handleClose = () => {\n\t\tsetAnchorEl(null)\n\n\t\t// Don't clear notifications immediately to avoid flickering\n\t\t// They will be refreshed when menu is opened again\n\t}\n\n\tconst handleNotificationClick = async (notificationId) => {\n\t\t// Mark notification as read\n\t\tconst n = notifications.find((n) => {\n\t\t\treturn n.id === notificationId\n\t\t})\n\t\tif (!n) return\n\n\t\thandleClose()\n\n\t\tif (n.status === 'pending') {\n\t\t\tawait patchV1NotificationMarkAsReadId({\n\t\t\t\tid: notificationId,\n\t\t\t\t...getToken(),\n\t\t\t})\n\t\t}\n\n\t\tsetNotifications((prev) => prev.map((n) => (n.id === notificationId ? { ...n, read: true } : n)))\n\t\tsetUnreadCount((prev) => Math.max(0, prev - 1))\n\t\tconst url = getNotificationUrl({\n\t\t\tmoduleName: n.subModule,\n\t\t\tmoduleId: n.subModuleId,\n\t\t\tnotificationData: n,\n\t\t})\n setTimeout(() => {\n navigate(url)\n }, 300)\n\t}\n\n\tconst getNotificationIcon = (notification) => {\n\t\tif (notification.icon) {\n\t\t\treturn notification.icon\n\t\t}\n\n\t\tswitch (notification.type) {\n\t\t\tcase 'approval':\n\t\t\t\treturn <AssignmentIcon color=\"warning\" />\n\t\t\tcase 'user':\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t\tcase 'message':\n\t\t\t\treturn <EmailIcon color=\"primary\" />\n\t\t\tcase 'warning':\n\t\t\t\treturn <WarningIcon color=\"warning\" />\n\t\t\tcase 'success':\n\t\t\t\treturn <CheckCircleIcon color=\"success\" />\n\t\t\tdefault:\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t}\n\t}\n\n\tconst handleMarkAllAsRead = useCallback(async () => {\n\t\tif (markingAllAsRead) return // Prevent multiple calls\n\n\t\tsetMarkingAllAsRead(true)\n\n\t\tif (!unreadCount) {\n\t\t\tenqueueSnackbar('No unread notifications!')\n\t\t\tsetMarkingAllAsRead(false)\n\t\t\treturn\n\t\t}\n\n\t\ttry {\n\t\t\tawait getV1NotificationMarkAllAsRead({ ...getToken() })\n\t\t\t// Update local state immediately for better UX\n\t\t\tsetNotifications((prev) => prev.map((n) => ({ ...n, read: true, status: 'read' })))\n\t\t\tsetUnreadCount(0)\n\t\t} catch (error) {\n\t\t\tconst m = getErrorMessage(error.message)\n\t\t\tenqueueSnackbar(m, { variant: 'error' })\n\t\t} finally {\n\t\t\tsetMarkingAllAsRead(false)\n\t\t}\n\t}, [markingAllAsRead, unreadCount])\n\n\t// Remove the problematic useEffect that was causing extra API calls\n\n useEffect(() => {\n if(!open) {\n setTimeout(() => {\n setNotifications([])\n }, 500)\n }\n }, [open])\n\n\tconst getPerformerLabel = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn 'Approved by'\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn 'Rejected by'\n\t\t\tdefault:\n\t\t\t\treturn 'Request to'\n\t\t}\n\t}\n\n\tconst getStatusIcon = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn <CheckCircleIcon sx={{ fontSize: '0.9rem', color: 'success.main' }} />\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn <CancelIcon sx={{ fontSize: '0.9rem', color: 'error.main' }} />\n\t\t\tdefault:\n\t\t\t\treturn <HourglassEmptyIcon sx={{ fontSize: '0.9rem', color: 'warning.main' }} />\n\t\t}\n\t}\n\n\treturn (\n\t\t<Box>\n\t\t\t<IconButton\n\t\t\t\t// size=\"small\"\n\t\t\t\taria-label=\"notifications\"\n\t\t\t\taria-controls={open ? 'notification-menu' : undefined}\n\t\t\t\taria-haspopup=\"true\"\n\t\t\t\taria-expanded={open ? 'true' : undefined}\n\t\t\t\tonClick={handleClick}\n\t\t\t>\n\t\t\t\t<Badge badgeContent={unreadCount} color=\"error\">\n\t\t\t\t\t<Notification fontSize=\"medium\" />\n\t\t\t\t</Badge>\n\t\t\t</IconButton>\n\n\t\t\t<Menu\n\t\t\t\tid=\"notification-menu\"\n\t\t\t\tanchorEl={anchorEl}\n\t\t\t\topen={open}\n\t\t\t\tonClose={handleClose}\n\t\t\t\tref={menuRef}\n\t\t\t\tslotProps={{\n\t\t\t\t\tpaper: {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\toverflow: 'visible',\n\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\tmaxWidth: 450,\n\t\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\t\t'&:before': {\n\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\tdisplay: 'block',\n\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\t\tright: 13,\n\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\tbgcolor: 'background.paper',\n\t\t\t\t\t\t\t\ttransform: 'translateY(-50%) rotate(45deg)',\n\t\t\t\t\t\t\t\tzIndex: 0,\n\t\t\t\t\t\t\t\tborder: '1px solid',\n\t\t\t\t\t\t\t\tborderColor: ({ palette }) => palette.grey[300],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\tsx={{\n\t\t\t\t\t'& .MuiList-root': {\n\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\tpadding: 0,\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\ttransformOrigin={{ horizontal: 'right', vertical: 'top' }}\n\t\t\t\tanchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}\n\t\t\t\tonScroll={handleScroll}\n\t\t\t>\n\t\t\t\t{/* Header */}\n\t\t\t\t<Box sx={{ px: 2, py: 1, borderBottom: '1px solid #e0e0e0', backgroundColor: '#fafafa' }}>\n\t\t\t\t\t<Typography type=\"h5\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\tNotifications\n\t\t\t\t\t</Typography>\n\t\t\t\t\t{unreadCount > 0 && (\n\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'space-between', width: '100%', alignItems: 'center' }}>\n\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\">\n\t\t\t\t\t\t\t\tYou have {unreadCount} unread notification{unreadCount > 1 ? 's' : ''}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\tstartIcon={\n\t\t\t\t\t\t\t\t\tmarkingAllAsRead ? (\n\t\t\t\t\t\t\t\t\t\t<CircularProgress size={15} color=\"inherit\" />\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<Tick sx={{ fontSize: '0.75rem !important' }} color=\"grey.900\" />\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsx={{ p: 0 }}\n\t\t\t\t\t\t\t\tonClick={handleMarkAllAsRead}\n\t\t\t\t\t\t\t\tdisabled={unreadCount <= 0 || markingAllAsRead}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.900\">\n\t\t\t\t\t\t\t\t\tMark all as read\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t)}\n\t\t\t\t</Box>\n\n\t\t\t\t{/* Loading State */}\n\t\t\t\t{loading && notifications.length === 0 && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\n\t\t\t\t{/* Error State */}\n\t\t\t\t{error && (\n\t\t\t\t\t<Box sx={{ p: 2 }}>\n\t\t\t\t\t\t<Alert severity=\"error\">{error}</Alert>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Notifications List */}\n\t\t\t\t{!loading && !error && notifications.length > 0 && (\n\t\t\t\t\t<Box sx={{ maxHeight: 420, overflowY: 'auto', p: 1 }} onScroll={handleScroll}>\n\t\t\t\t\t\t{notifications.map((notification) => (\n\t\t\t\t\t\t\t<div key={notification.id}>\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => handleNotificationClick(notification.id)}\n\t\t\t\t\t\t\t\t\tsx={({ palette }) => ({\n\t\t\t\t\t\t\t\t\t\tpy: 1,\n\t\t\t\t\t\t\t\t\t\tpx: 1,\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: !notification.read ? palette.theme.grey[200] : 'transparent',\n\t\t\t\t\t\t\t\t\t\tborder: `1px solid ${palette.grey[200]}`,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: '4px !important',\n\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: palette.theme.grey[200],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t\t\t\t\t\t\tminHeight: 'auto',\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ListItemAvatar sx={{ minWidth: 48, mt: 0 }}>\n\t\t\t\t\t\t\t\t\t\t{mainModuleIcons?.[notification.module] ? (\n\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: mainModuleBgColors[notification.module] || 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'& img': {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tsrc={mainModuleIcons?.[notification.module]}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'grey.100',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'grey.600',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getNotificationIcon(notification)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</ListItemAvatar>\n\t\t\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\t\t\tsx={{ margin: 0, pr: 1 }}\n\t\t\t\t\t\t\t\t\t\tprimary={\n\t\t\t\t\t\t\t\t\t\t\t// Line 1: title seriesNumber statusIcon\n\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s3\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.title}\n\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" sx={{ color: 'text.secondary', fontWeight: 500 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{getStatusIcon(notification.type)}\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tsecondary={\n\t\t\t\t\t\t\t\t\t\t\t<Box>\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 2: Customer / Vendor label + name */}\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\" sx={{ display: 'block', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography component=\"span\" type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary', mr: 0.5 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.module === 'purchase' ? 'Vendor:' : 'Customer:'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 3: Approved by {name} · timestamp */}\n\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getPerformerLabel(notification.type)} {notification.performedByName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ height: 4, width: 4, borderRadius: '100%', backgroundColor: 'grey.400', flexShrink: 0 }} />\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" color=\"primary\" sx={{ fontSize: '0.65rem !important' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.timestamp}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{!notification.read && (\n\t\t\t\t\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tmt: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t\t{/* Loading More Indicator */}\n\t\t\t\t\t\t{loadingMore && (\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'center', py: 2.5, px: 3 }}>\n\t\t\t\t\t\t\t\t<CircularProgress size={20} />\n\t\t\t\t\t\t\t\t<Typography variant=\"body2\" sx={{ ml: 1.5, color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\tLoading more...\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{/* End of List Indicator */}\n\t\t\t\t\t\t{!pagination.hasMore && notifications.length > 0 && (\n\t\t\t\t\t\t\t<Box sx={{ textAlign: 'center', py: 1.5, px: 2 }}>\n\t\t\t\t\t\t\t\t<Typography type=\"s3\" color=\"grey.800\" textAlign=\"center\">\n\t\t\t\t\t\t\t\t\tNo more notifications\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Empty State */}\n\t\t\t\t{!loading && !error && notifications.length === 0 && (\n\t\t\t\t\t<Box sx={{ p: 4, textAlign: 'center' }}>\n\t\t\t\t\t\t<Notification sx={{ fontSize: 56, color: 'text.secondary', mb: 2 }} />\n\t\t\t\t\t\t<Typography type=\"s1\" color=\"grey.800\" sx={{ mb: 1 }} textAlign=\"center\">\n\t\t\t\t\t\t\tNo notifications yet\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Menu>\n\t\t</Box>\n\t)\n}\n\nexport { NotificationMenu };\nexport default NotificationMenu\n"],"names":["convertToUnderscore","generateRouteWithId","PathnameGenerator","PathnameAccounting","PathnameGeneratorInventory","PathnameInventory","PathnameGeneratorManufacuring","PathnameManufacturing","PathnameGeneratorPurchase","PathnamePurchase","_a","RENTALROUTES","PathnameGeneratorCrm","PathnameCrm","PathnameGeneratorRental","PathnameRental","images","useState","useNavigate","useRef","jsx","AccountBalanceIcon","PersonIcon","AssignmentIcon","formatText","useCallback","getV1Notification","getToken","n","patchV1NotificationMarkAsReadId","notification","EmailIcon","WarningIcon","CheckCircleIcon","enqueueSnackbar","getV1NotificationMarkAllAsRead","error","getErrorMessage","useEffect","CancelIcon","HourglassEmptyIcon","Box","IconButton","Badge","Notification","jsxs","Menu","Typography","Button","CircularProgress","Tick","Fragment","Skeleton","Alert","MenuItem","ListItemAvatar","Avatar","ListItemText"],"mappings":";;;;;;;;;;;;;;;;;AA0DA,MAAM,qBAAqB,CAAC,SAAc;;AACzC,QAAM,EAAE,aAAa,IAAI,WAAW,IAAI,mBAAmB,CAAA,MAAO;AAClE,QAAM,MAAMA,iBAAAA,oBAAoB,UAAU;AAE1C,QAAM,WAAyC;AAAA,IAC9C,eAAe,MACdC,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,iBAAiB,MAChBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,SAAS,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,WAAW,GAAG,SAAS,UAAU;AAAA,IAEzG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,iBAAiB,GAAG,SAAS,UAAU;AAAA,IAEjG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,gBAAgB,GAAG,SAAS,UAAU;AAAA,IAEhG,aAAa,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,eAAe,GAAG,SAAS,UAAU;AAAA,IAEjH,uBAAuB,MACtBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,0BAA0B,GAAG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,UAAU,IAAI,KAAK,IAAI,KAClE,UAAA;AAAA,cAAArB,2BAAAA,IAAC6B,SAAAA,kBAAA,EAAiB,MAAM,GAAA,CAAI;AAAA,cAC5B7B,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,SAAQ,SAAQ,IAAI,EAAE,IAAI,KAAK,OAAO,oBAAoB,UAAA,kBAAA,CAEtE;AAAA,YAAA,GACD;AAAA,YAIA,CAAC,WAAW,WAAW,cAAc,SAAS,KAC9C3B,2BAAAA,IAACqB,cAAA,EAAI,IAAI,EAAE,WAAW,UAAU,IAAI,KAAK,IAAI,EAAA,GAC5C,UAAArB,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,MAAK,MAAK,OAAM,YAAW,WAAU,UAAS,UAAA,wBAAA,CAE1D,EAAA,CACD;AAAA,UAAA,GAEF;AAAA,UAIA,CAAC,WAAW,CAAC,SAAS,cAAc,WAAW,KAC/CF,gCAACJ,SAAAA,KAAA,EAAI,IAAI,EAAE,GAAG,GAAG,WAAW,YAC3B,UAAA;AAAA,YAAArB,2BAAAA,IAACwB,aAAAA,cAAA,EAAa,IAAI,EAAE,UAAU,IAAI,OAAO,kBAAkB,IAAI,EAAA,EAAE,CAAG;AAAA,YACpExB,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,MAAK,MAAK,OAAM,YAAW,IAAI,EAAE,IAAI,EAAA,GAAK,WAAU,UAAS,UAAA,uBAAA,CAEzE;AAAA,UAAA,EAAA,CACD;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEF,GACD;AAEF;;"}
1
+ {"version":3,"file":"notification-menu-B00hDUbn.js","sources":["../../src/components/header/components/notification-menu/notification-menu.tsx"],"sourcesContent":["import React, { useState, useCallback, useRef, useEffect } from 'react'\nimport {\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tBadge,\n\tBox,\n\tCircularProgress,\n\tAvatar,\n\tListItemText,\n\tListItemAvatar,\n\tAlert,\n\tSkeleton,\n} from '@mui/material'\nimport {\n\tPerson as PersonIcon,\n\tEmail as EmailIcon,\n\tWarning as WarningIcon,\n\tCheckCircle as CheckCircleIcon,\n\tAssignment as AssignmentIcon,\n\tAccountBalance as AccountBalanceIcon,\n\tHourglassEmpty as HourglassEmptyIcon,\n\tCancel as CancelIcon,\n} from '@mui/icons-material'\nimport {\n\tgetV1Notification,\n\tgetV1NotificationMarkAllAsRead,\n\tpatchV1NotificationMarkAsReadId,\n} from '../../../../api-client/api.system-feature/api'\nimport { getErrorMessage, getToken } from '../../../../utils/common'\nimport formatText, { convertToUnderscore, formatLabel } from '../../../../utils/format-text'\nimport Typography from '../../../typography/typography'\nimport images from '../../../../assets/images'\nimport { generateRouteWithId } from '../../../../utils/route-utils'\nimport { PathnameGenerator, PathnameAccounting } from '../../../../constants/pathnames/pathname.accounting'\nimport { ROUTES as RENTALROUTES } from '../../../../constants/pathnames/pathname.rental'\n\nimport { PathnameInventory, PathnameGenerator as PathnameGeneratorInventory } from '../../../../constants/pathnames/pathname.inventory'\n\nimport {\n\tPathnameManufacturing,\n\tPathnameGenerator as PathnameGeneratorManufacuring,\n} from '../../../../constants/pathnames/pathname.manufacturing.ts'\n\nimport {\n\tPathnamePurchase,\n\tPathnameGenerator as PathnameGeneratorPurchase,\n} from '../../../../constants/pathnames/pathname.procurement.ts'\n\nimport { PathnameCrm, PathnameGenerator as PathnameGeneratorCrm } from '../../../../constants/pathnames/pathname.crm.ts'\n\nimport { PathnameRental, PathnameGenerator as PathnameGeneratorRental } from '../../../../constants/pathnames/pathname.rental.ts'\n\nimport { useNavigate } from 'react-router-dom'\nimport { Notification, Tick } from '../../../icons'\nimport Button from '../../../button/button'\nimport { enqueueSnackbar } from 'notistack'\n\nconst getNotificationUrl = (data: any) => {\n\tconst { moduleName = '', moduleId = '', notificationData = {} } = data\n\tconst key = convertToUnderscore(moduleName)\n\n\tconst routeMap: Record<string, () => string> = {\n\t\tsales_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_SALES_INVOICES), moduleId.toString()),\n\n\t\tasset_transfers: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_ASSET_TRANSFER), moduleId.toString()),\n\n\t\tbudgets: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_BUDGET), moduleId.toString()),\n\n\t\tcash_expense: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CASH_EXPENSE), moduleId.toString()),\n\n\t\tcredit_notes: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CREDIT_NOTE), moduleId.toString()),\n\n\t\tdebit_notes: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_DEBIT_NOTE), moduleId.toString()),\n\n\t\texpense_reimbursement: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT), moduleId.toString()),\n\n\t\tjournal_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_JOURNAL_ENTRY), moduleId.toString()),\n\n\t\tpayment_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PAYMENT_ENTRY), moduleId.toString()),\n\n\t\tpurchase_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PURCHASE_INVOICE), moduleId.toString()),\n\n\t\tstock_transfer: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorInventory(PathnameInventory.VIEW_STOCK_TRANSFER), moduleId.toString()),\n\n\t\tbills_of_materials: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tPathnameGeneratorManufacuring(PathnameManufacturing.VIEW_BILL_OF_MATERIAL),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_AGREEMENT), moduleId.toString()),\n\n\t\tpurchase_orders: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tnotificationData?.data?.is_rental == 1\n\t\t\t\t\t? RENTALROUTES.VIEW\n\t\t\t\t\t: PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER), moduleId.toString()),\n\n\t\tvra: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_VENDOR_RETURNS), moduleId.toString()),\n\n\t\tsales_customer_returns: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_CUSTOMER_RETURNS), moduleId.toString()),\n\n\t\tsales_order: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_SALES_ORDER), moduleId.toString()),\n\n\t\tquotation: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_QUOTATION), moduleId.toString()),\n\n\t\trental_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\treplacement_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\trental_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_AGREEMENT), moduleId.toString()),\n\n\t\tcross_hire_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_ORDER), moduleId.toString()),\n\n\t\tcross_hire_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_REQUEST), moduleId.toString()),\n\t}\n\n\treturn routeMap[key]?.() || '/dashboard'\n}\n\nconst mainModuleIcons = {\n\trbac: images.user,\n\tdocument: images.document,\n\t'accounts-and-finance': images.accounting,\n\tinventory: images.inventory,\n\tmanufacturing: images.manufacturing,\n\tsales: images.crm,\n\trental: images.rental,\n\tuser: images.user,\n\tpurchase: images.procurement,\n\thrms: images.hrms,\n}\nconst mainModuleBgColors = {\n\trbac: '#F3E5F5',\n\tdocument: '#FFF8E1',\n\t'accounts-and-finance': '#E8F5E8',\n\tinventory: '#E3F2FD',\n\tmanufacturing: '#FFF3E0',\n\tsales: '#F3E5F5',\n\trental: '#E8F5E8',\n\tuser: '#F3E5F5',\n\tpurchase: '#FCE4EC',\n\thrms: '#fcfcfc',\n}\n\nconst NotificationMenu = () => {\n\tconst [anchorEl, setAnchorEl] = useState(null)\n\tconst [notifications, setNotifications] = useState([])\n\tconst [loading, setLoading] = useState(false)\n\tconst [loadingMore, setLoadingMore] = useState(false)\n\tconst [error, setError] = useState(null)\n\tconst [unreadCount, setUnreadCount] = useState(0)\n\tconst [markingAllAsRead, setMarkingAllAsRead] = useState(false)\n\tconst [pagination, setPagination] = useState({\n\t\tskip: 0,\n\t\tlimit: 20,\n\t\ttotalCount: 0,\n\t\thasMore: true,\n\t})\n\n\tconst navigate = useNavigate()\n\n\tconst menuRef = useRef(null)\n\tconst isLoadingMoreRef = useRef(false)\n\tconst open = Boolean(anchorEl)\n\n\t// Transform API notification to display format\n\tconst transformNotification = (apiNotification) => {\n\t\tconst moduleIcons = {\n\t\t\t'accounts-and-finance': <AccountBalanceIcon color=\"primary\" />,\n\t\t\tuser: <PersonIcon color=\"action\" />,\n\t\t\tapproval: <AssignmentIcon color=\"warning\" />,\n\t\t}\n\n\t\tconst getInitials = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\tif (!firstName && !lastName) return null\n\t\t\treturn (firstName.charAt(0) + lastName.charAt(0)).toUpperCase()\n\t\t}\n\n\t\tconst getFullName = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\treturn `${firstName} ${lastName}`.trim() || null\n\t\t}\n\n\t\tconst formatTimestamp = (dateString) => {\n\t\t\tconst date = new Date(dateString)\n\t\t\tconst now = new Date()\n\t\t\tconst diffMs = now - date\n\t\t\tconst diffMins = Math.floor(diffMs / 60000)\n\t\t\tconst diffHours = Math.floor(diffMs / 3600000)\n\t\t\tconst diffDays = Math.floor(diffMs / 86400000)\n\n\t\t\tif (diffMins < 1) return 'Just now'\n\t\t\tif (diffMins < 60) return `${diffMins} minute${diffMins > 1 ? 's' : ''} ago`\n\t\t\tif (diffHours < 24) return `${diffHours} hour${diffHours > 1 ? 's' : ''} ago`\n\t\t\tif (diffDays < 7) return `${diffDays} day${diffDays > 1 ? 's' : ''} ago`\n\t\t\treturn date.toLocaleDateString()\n\t\t}\n\n\t\tconst subData = apiNotification.sub_module_data || {}\n\n\t\treturn {\n\t\t\tid: apiNotification.id,\n\t\t\ttype: apiNotification.action || apiNotification.notification_type || 'info',\n\t\t\ttitle: formatText(apiNotification.title),\n\t\t\tmessage: apiNotification.message,\n\t\t\ttimestamp: formatTimestamp(apiNotification.created_at),\n\t\t\tread: apiNotification.status === 'read',\n\t\t\tavatar: getInitials(apiNotification.performed_user),\n\t\t\tperformedByName: getFullName(apiNotification.performed_user),\n\t\t\tmodule: apiNotification.module,\n\t\t\tsubModule: apiNotification.sub_module,\n\t\t\tsubModuleId: apiNotification.sub_module_id,\n\t\t\tstatus: apiNotification.status,\n\t\t\tseriesNumber: subData.series_number || null,\n\t\t\tdocumentStatus: subData.status || null,\n\t\t\tcustomerName: subData.customer_name || null,\n\t\t\ticon: moduleIcons[apiNotification.module] || moduleIcons[apiNotification.action] || <PersonIcon color=\"action\" />,\n\t\t}\n\t}\n\n\t// Fetch notifications with pagination\n\tconst fetchNotifications = useCallback(async (isLoadMore = false) => {\n\t\t// Prevent multiple simultaneous load more requests\n\t\tif (isLoadMore && isLoadingMoreRef.current) {\n\t\t\treturn\n\t\t}\n\n\t\tif (isLoadMore) {\n\t\t\tisLoadingMoreRef.current = true\n\t\t\tsetLoadingMore(true)\n\t\t} else {\n\t\t\tsetLoading(true)\n\t\t\t// Reset pagination when loading fresh data\n\t\t\tsetPagination((prev) => ({\n\t\t\t\t...prev,\n\t\t\t\tskip: 0,\n\t\t\t\thasMore: true,\n\t\t\t}))\n\t\t}\n\t\tsetError(null)\n\n\t\ttry {\n\t\t\tconst currentSkip = isLoadMore ? pagination.skip : 0\n\t\t\tconst response = await getV1Notification({\n\t\t\t\tskip: currentSkip,\n\t\t\t\tlimit: pagination.limit,\n\t\t\t\t...getToken(),\n\t\t\t})\n\n\t\t\tif (response.success && response.data) {\n\t\t\t\tconst transformedNotifications = response.data.notifications.map(transformNotification)\n\n\t\t\t\tif (isLoadMore) {\n\t\t\t\t\tsetNotifications((prev) => [...prev, ...transformedNotifications])\n\t\t\t\t} else {\n\t\t\t\t\tsetNotifications(transformedNotifications)\n\t\t\t\t}\n\n\t\t\t\t// Update pagination\n\t\t\t\tconst newSkip = currentSkip + response.data.notifications.length\n\t\t\t\tconst hasMore = newSkip < response.data.pagination.totalCount\n\n\t\t\t\tsetPagination((prev) => ({\n\t\t\t\t\t...prev,\n\t\t\t\t\tskip: newSkip,\n\t\t\t\t\ttotalCount: response.data.pagination.totalCount,\n\t\t\t\t\thasMore,\n\t\t\t\t}))\n\n\t\t\t\t// Calculate unread count (assuming 'pending' status means unread)\n\t\t\t\tif (!isLoadMore) {\n\t\t\t\t\tconst unread = response.data.pagination.unreadCount\n\t\t\t\t\tsetUnreadCount(unread)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsetUnreadCount(0)\n\t\t\t\tthrow new Error(response.message || 'Failed to load notifications')\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tsetError('Failed to load notifications')\n\t\t} finally {\n\t\t\tsetLoading(false)\n\t\t\tsetLoadingMore(false)\n\t\t\tif (isLoadMore) {\n\t\t\t\tisLoadingMoreRef.current = false\n\t\t\t}\n\t\t}\n\t}, [pagination.limit, pagination.skip])\n\n\t// Handle scroll for infinite loading\n\tconst handleScroll = useCallback(\n\t\t(event) => {\n\t\t\tconst { scrollTop, scrollHeight, clientHeight } = event.target\n\t\t\tconst isNearBottom = scrollTop + clientHeight >= scrollHeight - 50 // Increased threshold\n\n\t\t\tif (isNearBottom && !isLoadingMoreRef.current && !loading && pagination.hasMore) {\n\t\t\t\tfetchNotifications(true)\n\t\t\t}\n\t\t},\n\t\t[fetchNotifications, loading, pagination.hasMore]\n\t)\n\n\tconst handleClick = (event) => {\n\t\tsetAnchorEl(event.currentTarget)\n\t\tif (notifications.length === 0) {\n\t\t\tfetchNotifications()\n\t\t}\n\t}\n\n\tconst handleClose = () => {\n\t\tsetAnchorEl(null)\n\n\t\t// Don't clear notifications immediately to avoid flickering\n\t\t// They will be refreshed when menu is opened again\n\t}\n\n\tconst handleNotificationClick = async (notificationId) => {\n\t\t// Mark notification as read\n\t\tconst n = notifications.find((n) => {\n\t\t\treturn n.id === notificationId\n\t\t})\n\t\tif (!n) return\n\n\t\thandleClose()\n\n\t\tif (n.status === 'pending') {\n\t\t\tawait patchV1NotificationMarkAsReadId({\n\t\t\t\tid: notificationId,\n\t\t\t\t...getToken(),\n\t\t\t})\n\t\t}\n\n\t\tsetNotifications((prev) => prev.map((n) => (n.id === notificationId ? { ...n, read: true } : n)))\n\t\tsetUnreadCount((prev) => Math.max(0, prev - 1))\n\t\tconst url = getNotificationUrl({\n\t\t\tmoduleName: n.subModule,\n\t\t\tmoduleId: n.subModuleId,\n\t\t\tnotificationData: n,\n\t\t})\n setTimeout(() => {\n navigate(url)\n }, 300)\n\t}\n\n\tconst getNotificationIcon = (notification) => {\n\t\tif (notification.icon) {\n\t\t\treturn notification.icon\n\t\t}\n\n\t\tswitch (notification.type) {\n\t\t\tcase 'approval':\n\t\t\t\treturn <AssignmentIcon color=\"warning\" />\n\t\t\tcase 'user':\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t\tcase 'message':\n\t\t\t\treturn <EmailIcon color=\"primary\" />\n\t\t\tcase 'warning':\n\t\t\t\treturn <WarningIcon color=\"warning\" />\n\t\t\tcase 'success':\n\t\t\t\treturn <CheckCircleIcon color=\"success\" />\n\t\t\tdefault:\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t}\n\t}\n\n\tconst handleMarkAllAsRead = useCallback(async () => {\n\t\tif (markingAllAsRead) return // Prevent multiple calls\n\n\t\tsetMarkingAllAsRead(true)\n\n\t\tif (!unreadCount) {\n\t\t\tenqueueSnackbar('No unread notifications!')\n\t\t\tsetMarkingAllAsRead(false)\n\t\t\treturn\n\t\t}\n\n\t\ttry {\n\t\t\tawait getV1NotificationMarkAllAsRead({ ...getToken() })\n\t\t\t// Update local state immediately for better UX\n\t\t\tsetNotifications((prev) => prev.map((n) => ({ ...n, read: true, status: 'read' })))\n\t\t\tsetUnreadCount(0)\n\t\t} catch (error) {\n\t\t\tconst m = getErrorMessage(error.message)\n\t\t\tenqueueSnackbar(m, { variant: 'error' })\n\t\t} finally {\n\t\t\tsetMarkingAllAsRead(false)\n\t\t}\n\t}, [markingAllAsRead, unreadCount])\n\n\t// Remove the problematic useEffect that was causing extra API calls\n\n useEffect(() => {\n if(!open) {\n setTimeout(() => {\n setNotifications([])\n }, 500)\n }\n }, [open])\n\n\tconst getPerformerLabel = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn 'Approved by'\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn 'Rejected by'\n\t\t\tdefault:\n\t\t\t\treturn 'Request to'\n\t\t}\n\t}\n\n\tconst getStatusIcon = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn <CheckCircleIcon sx={{ fontSize: '0.9rem', color: 'success.main' }} />\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn <CancelIcon sx={{ fontSize: '0.9rem', color: 'error.main' }} />\n\t\t\tdefault:\n\t\t\t\treturn <HourglassEmptyIcon sx={{ fontSize: '0.9rem', color: 'warning.main' }} />\n\t\t}\n\t}\n\n\treturn (\n\t\t<Box>\n\t\t\t<IconButton\n\t\t\t\t// size=\"small\"\n\t\t\t\taria-label=\"notifications\"\n\t\t\t\taria-controls={open ? 'notification-menu' : undefined}\n\t\t\t\taria-haspopup=\"true\"\n\t\t\t\taria-expanded={open ? 'true' : undefined}\n\t\t\t\tonClick={handleClick}\n\t\t\t>\n\t\t\t\t<Badge badgeContent={unreadCount} color=\"error\">\n\t\t\t\t\t<Notification fontSize=\"medium\" />\n\t\t\t\t</Badge>\n\t\t\t</IconButton>\n\n\t\t\t<Menu\n\t\t\t\tid=\"notification-menu\"\n\t\t\t\tanchorEl={anchorEl}\n\t\t\t\topen={open}\n\t\t\t\tonClose={handleClose}\n\t\t\t\tref={menuRef}\n\t\t\t\tslotProps={{\n\t\t\t\t\tpaper: {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\toverflow: 'visible',\n\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\tmaxWidth: 450,\n\t\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\t\t'&:before': {\n\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\tdisplay: 'block',\n\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\t\tright: 13,\n\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\tbgcolor: 'background.paper',\n\t\t\t\t\t\t\t\ttransform: 'translateY(-50%) rotate(45deg)',\n\t\t\t\t\t\t\t\tzIndex: 0,\n\t\t\t\t\t\t\t\tborder: '1px solid',\n\t\t\t\t\t\t\t\tborderColor: ({ palette }) => palette.grey[300],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\tsx={{\n\t\t\t\t\t'& .MuiList-root': {\n\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\tpadding: 0,\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\ttransformOrigin={{ horizontal: 'right', vertical: 'top' }}\n\t\t\t\tanchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}\n\t\t\t\tonScroll={handleScroll}\n\t\t\t>\n\t\t\t\t{/* Header */}\n\t\t\t\t<Box sx={{ px: 2, py: 1, borderBottom: '1px solid #e0e0e0', backgroundColor: '#fafafa' }}>\n\t\t\t\t\t<Typography type=\"h5\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\tNotifications\n\t\t\t\t\t</Typography>\n\t\t\t\t\t{unreadCount > 0 && (\n\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'space-between', width: '100%', alignItems: 'center' }}>\n\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\">\n\t\t\t\t\t\t\t\tYou have {unreadCount} unread notification{unreadCount > 1 ? 's' : ''}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\tstartIcon={\n\t\t\t\t\t\t\t\t\tmarkingAllAsRead ? (\n\t\t\t\t\t\t\t\t\t\t<CircularProgress size={15} color=\"inherit\" />\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<Tick sx={{ fontSize: '0.75rem !important' }} color=\"grey.900\" />\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsx={{ p: 0 }}\n\t\t\t\t\t\t\t\tonClick={handleMarkAllAsRead}\n\t\t\t\t\t\t\t\tdisabled={unreadCount <= 0 || markingAllAsRead}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.900\">\n\t\t\t\t\t\t\t\t\tMark all as read\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t)}\n\t\t\t\t</Box>\n\n\t\t\t\t{/* Loading State */}\n\t\t\t\t{loading && notifications.length === 0 && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\n\t\t\t\t{/* Error State */}\n\t\t\t\t{error && (\n\t\t\t\t\t<Box sx={{ p: 2 }}>\n\t\t\t\t\t\t<Alert severity=\"error\">{error}</Alert>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Notifications List */}\n\t\t\t\t{!loading && !error && notifications.length > 0 && (\n\t\t\t\t\t<Box sx={{ maxHeight: 420, overflowY: 'auto', p: 1 }} onScroll={handleScroll}>\n\t\t\t\t\t\t{notifications.map((notification) => (\n\t\t\t\t\t\t\t<div key={notification.id}>\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => handleNotificationClick(notification.id)}\n\t\t\t\t\t\t\t\t\tsx={({ palette }) => ({\n\t\t\t\t\t\t\t\t\t\tpy: 1,\n\t\t\t\t\t\t\t\t\t\tpx: 1,\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: !notification.read ? palette.theme.grey[200] : 'transparent',\n\t\t\t\t\t\t\t\t\t\tborder: `1px solid ${palette.grey[200]}`,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: '4px !important',\n\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: palette.theme.grey[200],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t\t\t\t\t\t\tminHeight: 'auto',\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ListItemAvatar sx={{ minWidth: 48, mt: 0 }}>\n\t\t\t\t\t\t\t\t\t\t{mainModuleIcons?.[notification.module] ? (\n\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: mainModuleBgColors[notification.module] || 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'& img': {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tsrc={mainModuleIcons?.[notification.module]}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'grey.100',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'grey.600',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getNotificationIcon(notification)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</ListItemAvatar>\n\t\t\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\t\t\tsx={{ margin: 0, pr: 1 }}\n\t\t\t\t\t\t\t\t\t\tprimary={\n\t\t\t\t\t\t\t\t\t\t\t// Line 1: title seriesNumber statusIcon\n\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s3\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.title}\n\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" sx={{ color: 'text.secondary', fontWeight: 500 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{getStatusIcon(notification.type)}\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tsecondary={\n\t\t\t\t\t\t\t\t\t\t\t<Box>\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 2: Customer / Vendor label + name */}\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\" sx={{ display: 'block', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography component=\"span\" type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary', mr: 0.5 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.module === 'purchase' ? 'Vendor:' : 'Customer:'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 3: Approved by {name} · timestamp */}\n\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getPerformerLabel(notification.type)} {notification.performedByName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ height: 4, width: 4, borderRadius: '100%', backgroundColor: 'grey.400', flexShrink: 0 }} />\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" color=\"primary\" sx={{ fontSize: '0.65rem !important' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.timestamp}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{!notification.read && (\n\t\t\t\t\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tmt: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t\t{/* Loading More Indicator */}\n\t\t\t\t\t\t{loadingMore && (\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'center', py: 2.5, px: 3 }}>\n\t\t\t\t\t\t\t\t<CircularProgress size={20} />\n\t\t\t\t\t\t\t\t<Typography variant=\"body2\" sx={{ ml: 1.5, color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\tLoading more...\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{/* End of List Indicator */}\n\t\t\t\t\t\t{!pagination.hasMore && notifications.length > 0 && (\n\t\t\t\t\t\t\t<Box sx={{ textAlign: 'center', py: 1.5, px: 2 }}>\n\t\t\t\t\t\t\t\t<Typography type=\"s3\" color=\"grey.800\" textAlign=\"center\">\n\t\t\t\t\t\t\t\t\tNo more notifications\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Empty State */}\n\t\t\t\t{!loading && !error && notifications.length === 0 && (\n\t\t\t\t\t<Box sx={{ p: 4, textAlign: 'center' }}>\n\t\t\t\t\t\t<Notification sx={{ fontSize: 56, color: 'text.secondary', mb: 2 }} />\n\t\t\t\t\t\t<Typography type=\"s1\" color=\"grey.800\" sx={{ mb: 1 }} textAlign=\"center\">\n\t\t\t\t\t\t\tNo notifications yet\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Menu>\n\t\t</Box>\n\t)\n}\n\nexport { NotificationMenu };\nexport default NotificationMenu\n"],"names":["convertToUnderscore","generateRouteWithId","PathnameGenerator","PathnameAccounting","PathnameGeneratorInventory","PathnameInventory","PathnameGeneratorManufacuring","PathnameManufacturing","PathnameGeneratorPurchase","PathnamePurchase","_a","RENTALROUTES","PathnameGeneratorCrm","PathnameCrm","PathnameGeneratorRental","PathnameRental","images","useState","useNavigate","useRef","jsx","AccountBalanceIcon","PersonIcon","AssignmentIcon","formatText","useCallback","getV1Notification","getToken","n","patchV1NotificationMarkAsReadId","notification","EmailIcon","WarningIcon","CheckCircleIcon","enqueueSnackbar","getV1NotificationMarkAllAsRead","error","getErrorMessage","useEffect","CancelIcon","HourglassEmptyIcon","Box","IconButton","Badge","Notification","jsxs","Menu","Typography","Button","CircularProgress","Tick","Fragment","Skeleton","Alert","MenuItem","ListItemAvatar","Avatar","ListItemText"],"mappings":";;;;;;;;;;;;;;;;;AA0DA,MAAM,qBAAqB,CAAC,SAAc;;AACzC,QAAM,EAAE,aAAa,IAAI,WAAW,IAAI,mBAAmB,CAAA,MAAO;AAClE,QAAM,MAAMA,iBAAAA,oBAAoB,UAAU;AAE1C,QAAM,WAAyC;AAAA,IAC9C,eAAe,MACdC,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,iBAAiB,MAChBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,SAAS,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,WAAW,GAAG,SAAS,UAAU;AAAA,IAEzG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,iBAAiB,GAAG,SAAS,UAAU;AAAA,IAEjG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,gBAAgB,GAAG,SAAS,UAAU;A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Effect } from "react";
3
3
  import { Box, IconButton, Badge, Menu, CircularProgress, Skeleton, Alert, MenuItem, ListItemAvatar, Avatar, ListItemText } from "@mui/material";
4
4
  import { Person, CheckCircle, Warning, Email, Assignment, HourglassEmpty, Cancel, AccountBalance } from "@mui/icons-material";
5
- import { m as getV1Notification, n as getV1NotificationMarkAllAsRead, o as patchV1NotificationMarkAsReadId } from "./api-DBmWILBN.esm.js";
6
- import { ab as getToken, W as getErrorMessage } from "./api-BIVCMSwW.esm.js";
5
+ import { m as getV1Notification, n as getV1NotificationMarkAllAsRead, o as patchV1NotificationMarkAsReadId } from "./api-yLpQ3k5s.esm.js";
6
+ import { ab as getToken, W as getErrorMessage } from "./api-8jutPLh0.esm.js";
7
7
  import formatText, { convertToUnderscore } from "../utils/format-text/index.esm.js";
8
8
  import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
9
9
  import images from "../images/index.esm.js";
10
10
  import { generateRouteWithId } from "../utils/route-utils/index.esm.js";
11
- import { aH as PathnameGenerator, e as PathnameRental, aI as PathnameGenerator$1, a as PathnameCrm, aJ as PathnameGenerator$2, d as PathnamePurchase, aK as ROUTES, aL as PathnameGenerator$3, c as PathnameManufacturing, aM as PathnameGenerator$4, b as PathnameInventory, aN as PathnameGenerator$5, P as PathnameAccounting } from "./pathname.rental-qsAe3XFd.esm.js";
11
+ import { aG as PathnameGenerator, e as PathnameRental, aH as PathnameGenerator$1, a as PathnameCrm, aI as PathnameGenerator$2, d as PathnamePurchase, aJ as ROUTES, aK as PathnameGenerator$3, c as PathnameManufacturing, aL as PathnameGenerator$4, b as PathnameInventory, aM as PathnameGenerator$5, P as PathnameAccounting } from "./pathname.rental-CqHO_l_D.esm.js";
12
12
  import { useNavigate } from "react-router-dom";
13
13
  import { N as Notification } from "./notification-gdofLCzq.esm.js";
14
14
  import { T as Tick } from "./tick-qkKHtwAf.esm.js";
@@ -598,4 +598,4 @@ const NotificationMenu = () => {
598
598
  export {
599
599
  NotificationMenu as N
600
600
  };
601
- //# sourceMappingURL=notification-menu-XAadkn-e.esm.js.map
601
+ //# sourceMappingURL=notification-menu-CehCt5fA.esm.js.map