@erpsquad/common 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1395) hide show
  1. package/dist/api-client/index.esm.js +1 -1
  2. package/dist/api-client/index.js +1 -1
  3. package/dist/chunks/AuthContext-Bd-pW9_C.js +305 -0
  4. package/dist/chunks/AuthContext-Bd-pW9_C.js.map +1 -0
  5. package/dist/chunks/AuthContext-Cuh3fG0O.esm.js +306 -0
  6. package/dist/chunks/AuthContext-Cuh3fG0O.esm.js.map +1 -0
  7. package/dist/chunks/DonutChart-VApw6LQF.js +111 -0
  8. package/dist/chunks/DonutChart-VApw6LQF.js.map +1 -0
  9. package/dist/chunks/DonutChart-nycnaqkH.esm.js +95 -0
  10. package/dist/chunks/DonutChart-nycnaqkH.esm.js.map +1 -0
  11. package/dist/chunks/DynamicDependentField-66AbpCYH.esm.js +128 -0
  12. package/dist/chunks/DynamicDependentField-66AbpCYH.esm.js.map +1 -0
  13. package/dist/chunks/DynamicDependentField-BgIGaefz.js +127 -0
  14. package/dist/chunks/DynamicDependentField-BgIGaefz.js.map +1 -0
  15. package/dist/chunks/DynamicSearchInput-BibaFgRT.esm.js +195 -0
  16. package/dist/chunks/DynamicSearchInput-BibaFgRT.esm.js.map +1 -0
  17. package/dist/chunks/DynamicSearchInput-b7N-9yI9.js +194 -0
  18. package/dist/chunks/DynamicSearchInput-b7N-9yI9.js.map +1 -0
  19. package/dist/chunks/ERPUIProvider-BA5eRy9W.js +132 -0
  20. package/dist/chunks/ERPUIProvider-BA5eRy9W.js.map +1 -0
  21. package/dist/chunks/ERPUIProvider-BKfUubT7.esm.js +133 -0
  22. package/dist/chunks/ERPUIProvider-BKfUubT7.esm.js.map +1 -0
  23. package/dist/chunks/FORMS-DYuCKYdO.js +295 -0
  24. package/dist/chunks/FORMS-DYuCKYdO.js.map +1 -0
  25. package/dist/chunks/FORMS-DcEv0TTW.esm.js +296 -0
  26. package/dist/chunks/FORMS-DcEv0TTW.esm.js.map +1 -0
  27. package/dist/chunks/FlexibleReduxExample-2KlbugQr.js +148 -0
  28. package/dist/chunks/FlexibleReduxExample-2KlbugQr.js.map +1 -0
  29. package/dist/chunks/FlexibleReduxExample-3G_Vo2uC.esm.js +149 -0
  30. package/dist/chunks/FlexibleReduxExample-3G_Vo2uC.esm.js.map +1 -0
  31. package/dist/chunks/GroupBarChart-CJdPAoHv.esm.js +87 -0
  32. package/dist/chunks/GroupBarChart-CJdPAoHv.esm.js.map +1 -0
  33. package/dist/chunks/GroupBarChart-Ubok0U6H.js +103 -0
  34. package/dist/chunks/GroupBarChart-Ubok0U6H.js.map +1 -0
  35. package/dist/chunks/SectionFlowEditor-C0Fws5sw.esm.js +5461 -0
  36. package/dist/chunks/SectionFlowEditor-C0Fws5sw.esm.js.map +1 -0
  37. package/dist/chunks/SectionFlowEditor-mQ1mYinL.js +5460 -0
  38. package/dist/chunks/SectionFlowEditor-mQ1mYinL.js.map +1 -0
  39. package/dist/chunks/action-bar-BZRfkR6g.esm.js +637 -0
  40. package/dist/chunks/action-bar-BZRfkR6g.esm.js.map +1 -0
  41. package/dist/chunks/action-bar-UzExEdnO.js +636 -0
  42. package/dist/chunks/action-bar-UzExEdnO.js.map +1 -0
  43. package/dist/chunks/actionCreator-BA8JQE1F.js +27 -0
  44. package/dist/chunks/actionCreator-BA8JQE1F.js.map +1 -0
  45. package/dist/chunks/actionCreator-BUuRpv33.js +21 -0
  46. package/dist/chunks/actionCreator-BUuRpv33.js.map +1 -0
  47. package/dist/chunks/actionCreator-C8df_-jS.esm.js +28 -0
  48. package/dist/chunks/actionCreator-C8df_-jS.esm.js.map +1 -0
  49. package/dist/chunks/actionCreator-Cinu9E-i.js +13 -0
  50. package/dist/chunks/actionCreator-Cinu9E-i.js.map +1 -0
  51. package/dist/chunks/actionCreator-Ck-OyJvi.esm.js +14 -0
  52. package/dist/chunks/actionCreator-Ck-OyJvi.esm.js.map +1 -0
  53. package/dist/chunks/actionCreator-CstS7Lg7.js +79 -0
  54. package/dist/chunks/actionCreator-CstS7Lg7.js.map +1 -0
  55. package/dist/chunks/actionCreator-DD-dzfpR.js +93 -0
  56. package/dist/chunks/actionCreator-DD-dzfpR.js.map +1 -0
  57. package/dist/chunks/actionCreator-DsBkDzFh.esm.js +80 -0
  58. package/dist/chunks/actionCreator-DsBkDzFh.esm.js.map +1 -0
  59. package/dist/chunks/actionCreator-OumJMOS4.esm.js +94 -0
  60. package/dist/chunks/actionCreator-OumJMOS4.esm.js.map +1 -0
  61. package/dist/chunks/actionCreator-eIvoA4Dm.esm.js +22 -0
  62. package/dist/chunks/actionCreator-eIvoA4Dm.esm.js.map +1 -0
  63. package/dist/chunks/activity-tag-Blp0PxFl.js +151 -0
  64. package/dist/chunks/activity-tag-Blp0PxFl.js.map +1 -0
  65. package/dist/chunks/activity-tag-opL1r_kP.esm.js +152 -0
  66. package/dist/chunks/activity-tag-opL1r_kP.esm.js.map +1 -0
  67. package/dist/chunks/add-template-B4jRG2qV.js +10 -0
  68. package/dist/chunks/add-template-B4jRG2qV.js.map +1 -0
  69. package/dist/chunks/add-template-CJDi6o-P.esm.js +11 -0
  70. package/dist/chunks/add-template-CJDi6o-P.esm.js.map +1 -0
  71. package/dist/chunks/address-modal-BtBrxJ8r.esm.js +671 -0
  72. package/dist/chunks/address-modal-BtBrxJ8r.esm.js.map +1 -0
  73. package/dist/chunks/address-modal-Cmurq1wQ.js +687 -0
  74. package/dist/chunks/address-modal-Cmurq1wQ.js.map +1 -0
  75. package/dist/chunks/ai-summary-Di7PXNDU.esm.js +351 -0
  76. package/dist/chunks/ai-summary-Di7PXNDU.esm.js.map +1 -0
  77. package/dist/chunks/ai-summary-jbaXCgHv.js +350 -0
  78. package/dist/chunks/ai-summary-jbaXCgHv.js.map +1 -0
  79. package/dist/chunks/appbar-CFZlCbmU.js +56 -0
  80. package/dist/chunks/appbar-CFZlCbmU.js.map +1 -0
  81. package/dist/chunks/appbar-JIdxKVeN.esm.js +57 -0
  82. package/dist/chunks/appbar-JIdxKVeN.esm.js.map +1 -0
  83. package/dist/chunks/approval-wrapper-Cb-0gRTm.js +139 -0
  84. package/dist/chunks/approval-wrapper-Cb-0gRTm.js.map +1 -0
  85. package/dist/chunks/approval-wrapper-DJvbdS4s.esm.js +140 -0
  86. package/dist/chunks/approval-wrapper-DJvbdS4s.esm.js.map +1 -0
  87. package/dist/chunks/calculation-summary-Bc9GsyiF.js +173 -0
  88. package/dist/chunks/calculation-summary-Bc9GsyiF.js.map +1 -0
  89. package/dist/chunks/calculation-summary-qczX0BJv.esm.js +174 -0
  90. package/dist/chunks/calculation-summary-qczX0BJv.esm.js.map +1 -0
  91. package/dist/chunks/change-password-Cfry-8_9.js +199 -0
  92. package/dist/chunks/change-password-Cfry-8_9.js.map +1 -0
  93. package/dist/chunks/change-password-q_qGS0Dt.esm.js +183 -0
  94. package/dist/chunks/change-password-q_qGS0Dt.esm.js.map +1 -0
  95. package/dist/chunks/change-user-password-modal-DDmXxsbz.js +135 -0
  96. package/dist/chunks/change-user-password-modal-DDmXxsbz.js.map +1 -0
  97. package/dist/chunks/change-user-password-modal-DYCEO4Tp.esm.js +119 -0
  98. package/dist/chunks/change-user-password-modal-DYCEO4Tp.esm.js.map +1 -0
  99. package/dist/chunks/chat-bot-BnWb7UaF.js +1830 -0
  100. package/dist/chunks/chat-bot-BnWb7UaF.js.map +1 -0
  101. package/dist/chunks/chat-bot-DFo1-Ca-.esm.js +1831 -0
  102. package/dist/chunks/chat-bot-DFo1-Ca-.esm.js.map +1 -0
  103. package/dist/chunks/checkbox-B2bTjkrl.esm.js +83 -0
  104. package/dist/chunks/checkbox-B2bTjkrl.esm.js.map +1 -0
  105. package/dist/chunks/checkbox-BYaP2PMi.js +82 -0
  106. package/dist/chunks/checkbox-BYaP2PMi.js.map +1 -0
  107. package/dist/chunks/common-C-k0HdiF.js +182 -0
  108. package/dist/chunks/common-C-k0HdiF.js.map +1 -0
  109. package/dist/chunks/common-DtcSQ2Hw.js +4617 -0
  110. package/dist/chunks/common-DtcSQ2Hw.js.map +1 -0
  111. package/dist/chunks/common-ZbRPBumn.esm.js +4618 -0
  112. package/dist/chunks/common-ZbRPBumn.esm.js.map +1 -0
  113. package/dist/chunks/common-jYaxKjd4.esm.js +183 -0
  114. package/dist/chunks/common-jYaxKjd4.esm.js.map +1 -0
  115. package/dist/chunks/common-utility-CLiv4p3j.esm.js +305 -0
  116. package/dist/chunks/common-utility-CLiv4p3j.esm.js.map +1 -0
  117. package/dist/chunks/common-utility-DvnYDKXB.js +305 -0
  118. package/dist/chunks/common-utility-DvnYDKXB.js.map +1 -0
  119. package/dist/chunks/confirm-modal-kQL1-Ndp.js +97 -0
  120. package/dist/chunks/confirm-modal-kQL1-Ndp.js.map +1 -0
  121. package/dist/chunks/confirm-modal-vQN1AVRN.esm.js +98 -0
  122. package/dist/chunks/confirm-modal-vQN1AVRN.esm.js.map +1 -0
  123. package/dist/chunks/contact-modal-BPfQSD60.esm.js +169 -0
  124. package/dist/chunks/contact-modal-BPfQSD60.esm.js.map +1 -0
  125. package/dist/chunks/contact-modal-a355OgXn.js +185 -0
  126. package/dist/chunks/contact-modal-a355OgXn.js.map +1 -0
  127. package/dist/chunks/custom-editor-CP-yjJR8.js +1257 -0
  128. package/dist/chunks/custom-editor-CP-yjJR8.js.map +1 -0
  129. package/dist/chunks/custom-editor-PXyqv096.esm.js +1257 -0
  130. package/dist/chunks/custom-editor-PXyqv096.esm.js.map +1 -0
  131. package/dist/chunks/custom-form-D-hsaa0D.esm.js +1146 -0
  132. package/dist/chunks/custom-form-D-hsaa0D.esm.js.map +1 -0
  133. package/dist/chunks/custom-form-fo9n8UmL.js +1145 -0
  134. package/dist/chunks/custom-form-fo9n8UmL.js.map +1 -0
  135. package/dist/chunks/dashboard-BLH_gfct.esm.js +75 -0
  136. package/dist/chunks/dashboard-BLH_gfct.esm.js.map +1 -0
  137. package/dist/chunks/dashboard-DBOPsRea.js +74 -0
  138. package/dist/chunks/dashboard-DBOPsRea.js.map +1 -0
  139. package/dist/chunks/date-range-picker-BDK3CB14.esm.js +62 -0
  140. package/dist/chunks/date-range-picker-BDK3CB14.esm.js.map +1 -0
  141. package/dist/chunks/date-range-picker-BqecEXXw.js +61 -0
  142. package/dist/chunks/date-range-picker-BqecEXXw.js.map +1 -0
  143. package/dist/chunks/date-range-picker-DcasK2dD.js +159 -0
  144. package/dist/chunks/date-range-picker-DcasK2dD.js.map +1 -0
  145. package/dist/chunks/date-range-picker-O_kGkSak.esm.js +160 -0
  146. package/dist/chunks/date-range-picker-O_kGkSak.esm.js.map +1 -0
  147. package/dist/chunks/dropdown-button-CTDbg0JS.esm.js +146 -0
  148. package/dist/chunks/dropdown-button-CTDbg0JS.esm.js.map +1 -0
  149. package/dist/chunks/dropdown-button-XZZT9qWf.js +162 -0
  150. package/dist/chunks/dropdown-button-XZZT9qWf.js.map +1 -0
  151. package/dist/chunks/dynamic-layout-wrapper-CBz_xPSQ.js +228 -0
  152. package/dist/chunks/dynamic-layout-wrapper-CBz_xPSQ.js.map +1 -0
  153. package/dist/chunks/dynamic-layout-wrapper-b4tF1ElX.esm.js +229 -0
  154. package/dist/chunks/dynamic-layout-wrapper-b4tF1ElX.esm.js.map +1 -0
  155. package/dist/chunks/dynamic-report-CP3jpaE3.js +588 -0
  156. package/dist/chunks/dynamic-report-CP3jpaE3.js.map +1 -0
  157. package/dist/chunks/dynamic-report-DehnAckZ.esm.js +589 -0
  158. package/dist/chunks/dynamic-report-DehnAckZ.esm.js.map +1 -0
  159. package/dist/chunks/dynamic-rows-Brag-jJH.esm.js +250 -0
  160. package/dist/chunks/dynamic-rows-Brag-jJH.esm.js.map +1 -0
  161. package/dist/chunks/dynamic-rows-CdQNLqEu.js +249 -0
  162. package/dist/chunks/dynamic-rows-CdQNLqEu.js.map +1 -0
  163. package/dist/chunks/dynamic-text-editor-DElG1sER.js +44 -0
  164. package/dist/chunks/dynamic-text-editor-DElG1sER.js.map +1 -0
  165. package/dist/chunks/dynamic-text-editor-lGb7Tah8.esm.js +45 -0
  166. package/dist/chunks/dynamic-text-editor-lGb7Tah8.esm.js.map +1 -0
  167. package/dist/chunks/edit-section-modal-CQTg6Fdp.esm.js +80 -0
  168. package/dist/chunks/edit-section-modal-CQTg6Fdp.esm.js.map +1 -0
  169. package/dist/chunks/edit-section-modal-Dmt5nYWA.js +79 -0
  170. package/dist/chunks/edit-section-modal-Dmt5nYWA.js.map +1 -0
  171. package/dist/chunks/expandable-summary-wrapper-BbCQSDM7.js +241 -0
  172. package/dist/chunks/expandable-summary-wrapper-BbCQSDM7.js.map +1 -0
  173. package/dist/chunks/expandable-summary-wrapper-BiTUaZSn.esm.js +242 -0
  174. package/dist/chunks/expandable-summary-wrapper-BiTUaZSn.esm.js.map +1 -0
  175. package/dist/chunks/filter-J89FXV64.js +409 -0
  176. package/dist/chunks/filter-J89FXV64.js.map +1 -0
  177. package/dist/chunks/filter-alZQLFMr.esm.js +410 -0
  178. package/dist/chunks/filter-alZQLFMr.esm.js.map +1 -0
  179. package/dist/chunks/footer-Dq2BBwub.esm.js +64 -0
  180. package/dist/chunks/footer-Dq2BBwub.esm.js.map +1 -0
  181. package/dist/chunks/footer-z4W_ojDV.js +63 -0
  182. package/dist/chunks/footer-z4W_ojDV.js.map +1 -0
  183. package/dist/chunks/forgot-password-BjJohULr.js +194 -0
  184. package/dist/chunks/forgot-password-BjJohULr.js.map +1 -0
  185. package/dist/chunks/forgot-password-R_yO_gQO.esm.js +178 -0
  186. package/dist/chunks/forgot-password-R_yO_gQO.esm.js.map +1 -0
  187. package/dist/chunks/form-fields-DyFHl_6b.js +354 -0
  188. package/dist/chunks/form-fields-DyFHl_6b.js.map +1 -0
  189. package/dist/chunks/form-fields-xJZylTz0.esm.js +355 -0
  190. package/dist/chunks/form-fields-xJZylTz0.esm.js.map +1 -0
  191. package/dist/chunks/form-parser-1OSEcBwz.js +613 -0
  192. package/dist/chunks/form-parser-1OSEcBwz.js.map +1 -0
  193. package/dist/chunks/form-parser-DiHpkYd4.esm.js +597 -0
  194. package/dist/chunks/form-parser-DiHpkYd4.esm.js.map +1 -0
  195. package/dist/chunks/form-section-BYbb8LeG.js +575 -0
  196. package/dist/chunks/form-section-BYbb8LeG.js.map +1 -0
  197. package/dist/chunks/form-section-Dx3KCBgy.esm.js +576 -0
  198. package/dist/chunks/form-section-Dx3KCBgy.esm.js.map +1 -0
  199. package/dist/chunks/fullScreen-C8hX2pTC.esm.js +19 -0
  200. package/dist/chunks/fullScreen-C8hX2pTC.esm.js.map +1 -0
  201. package/dist/chunks/fullScreen-CLiduHav.js +18 -0
  202. package/dist/chunks/fullScreen-CLiduHav.js.map +1 -0
  203. package/dist/chunks/global-search-Cv05uLrl.esm.js +150 -0
  204. package/dist/chunks/global-search-Cv05uLrl.esm.js.map +1 -0
  205. package/dist/chunks/global-search-DbznIAl6.js +149 -0
  206. package/dist/chunks/global-search-DbznIAl6.js.map +1 -0
  207. package/dist/chunks/grid-view-DU2QULeu.js +51 -0
  208. package/dist/chunks/grid-view-DU2QULeu.js.map +1 -0
  209. package/dist/chunks/grid-view-GlNJVcKj.esm.js +52 -0
  210. package/dist/chunks/grid-view-GlNJVcKj.esm.js.map +1 -0
  211. package/dist/chunks/header-BFW20E1d.js +92 -0
  212. package/dist/chunks/header-BFW20E1d.js.map +1 -0
  213. package/dist/chunks/header-Bixl452K.esm.js +93 -0
  214. package/dist/chunks/header-Bixl452K.esm.js.map +1 -0
  215. package/dist/chunks/header-enhanced-B1QMUejl.esm.js +403 -0
  216. package/dist/chunks/header-enhanced-B1QMUejl.esm.js.map +1 -0
  217. package/dist/chunks/header-enhanced-BhPzBxKE.js +402 -0
  218. package/dist/chunks/header-enhanced-BhPzBxKE.js.map +1 -0
  219. package/dist/chunks/index-BQEhOLUH.js +2023 -0
  220. package/dist/chunks/index-BQEhOLUH.js.map +1 -0
  221. package/dist/chunks/index-D8ZndEil.esm.js +2024 -0
  222. package/dist/chunks/index-D8ZndEil.esm.js.map +1 -0
  223. package/dist/chunks/inline-edit-fields-CroglKKT.js +341 -0
  224. package/dist/chunks/inline-edit-fields-CroglKKT.js.map +1 -0
  225. package/dist/chunks/inline-edit-fields-D7cT0GBD.esm.js +325 -0
  226. package/dist/chunks/inline-edit-fields-D7cT0GBD.esm.js.map +1 -0
  227. package/dist/chunks/inventory-reports-title-bar-BfYJpRZS.js +732 -0
  228. package/dist/chunks/inventory-reports-title-bar-BfYJpRZS.js.map +1 -0
  229. package/dist/chunks/inventory-reports-title-bar-ChJIZCt3.esm.js +733 -0
  230. package/dist/chunks/inventory-reports-title-bar-ChJIZCt3.esm.js.map +1 -0
  231. package/dist/chunks/item-response-details-Bn3llCOZ.esm.js +79 -0
  232. package/dist/chunks/item-response-details-Bn3llCOZ.esm.js.map +1 -0
  233. package/dist/chunks/item-response-details-MAPF6ZUl.js +78 -0
  234. package/dist/chunks/item-response-details-MAPF6ZUl.js.map +1 -0
  235. package/dist/chunks/journal-type-add-modal-B4gNVBp2.esm.js +112 -0
  236. package/dist/chunks/journal-type-add-modal-B4gNVBp2.esm.js.map +1 -0
  237. package/dist/chunks/journal-type-add-modal-BPsJofLg.js +128 -0
  238. package/dist/chunks/journal-type-add-modal-BPsJofLg.js.map +1 -0
  239. package/dist/chunks/language-switch-CXAd9UyU.js +110 -0
  240. package/dist/chunks/language-switch-CXAd9UyU.js.map +1 -0
  241. package/dist/chunks/language-switch-DYq3B_O_.esm.js +111 -0
  242. package/dist/chunks/language-switch-DYq3B_O_.esm.js.map +1 -0
  243. package/dist/chunks/languageContext-BrkEneRJ.js +223 -0
  244. package/dist/chunks/languageContext-BrkEneRJ.js.map +1 -0
  245. package/dist/chunks/languageContext-CoD2SowZ.esm.js +224 -0
  246. package/dist/chunks/languageContext-CoD2SowZ.esm.js.map +1 -0
  247. package/dist/chunks/listing-C-FOEJNE.js +276 -0
  248. package/dist/chunks/listing-C-FOEJNE.js.map +1 -0
  249. package/dist/chunks/listing-D6sHJn5U.esm.js +277 -0
  250. package/dist/chunks/listing-D6sHJn5U.esm.js.map +1 -0
  251. package/dist/chunks/location-select-CdbfLOA7.js +85 -0
  252. package/dist/chunks/location-select-CdbfLOA7.js.map +1 -0
  253. package/dist/chunks/location-select-CvxPG5TQ.esm.js +86 -0
  254. package/dist/chunks/location-select-CvxPG5TQ.esm.js.map +1 -0
  255. package/dist/chunks/material-editable-table-5wu_-L3Y.esm.js +1448 -0
  256. package/dist/chunks/material-editable-table-5wu_-L3Y.esm.js.map +1 -0
  257. package/dist/chunks/material-editable-table-BuxU4MGq.js +1464 -0
  258. package/dist/chunks/material-editable-table-BuxU4MGq.js.map +1 -0
  259. package/dist/chunks/module-reducer-BPqyboZO.esm.js +79 -0
  260. package/dist/chunks/module-reducer-BPqyboZO.esm.js.map +1 -0
  261. package/dist/chunks/module-reducer-BSbqZihG.js +78 -0
  262. package/dist/chunks/module-reducer-BSbqZihG.js.map +1 -0
  263. package/dist/chunks/notification-menu-Dh3tEyed.esm.js +606 -0
  264. package/dist/chunks/notification-menu-Dh3tEyed.esm.js.map +1 -0
  265. package/dist/chunks/notification-menu-nyOPgnh_.js +605 -0
  266. package/dist/chunks/notification-menu-nyOPgnh_.js.map +1 -0
  267. package/dist/chunks/page-action-Bc7YrQu6.esm.js +325 -0
  268. package/dist/chunks/page-action-Bc7YrQu6.esm.js.map +1 -0
  269. package/dist/chunks/page-action-CHn9L4jG.js +324 -0
  270. package/dist/chunks/page-action-CHn9L4jG.js.map +1 -0
  271. package/dist/chunks/page-context-CeZ13sfe.js +388 -0
  272. package/dist/chunks/page-context-CeZ13sfe.js.map +1 -0
  273. package/dist/chunks/page-context-DOyoR4Mb.esm.js +389 -0
  274. package/dist/chunks/page-context-DOyoR4Mb.esm.js.map +1 -0
  275. package/dist/chunks/page-navigator-C_6CZ-96.js +243 -0
  276. package/dist/chunks/page-navigator-C_6CZ-96.js.map +1 -0
  277. package/dist/chunks/page-navigator-DlCuhgXf.esm.js +244 -0
  278. package/dist/chunks/page-navigator-DlCuhgXf.esm.js.map +1 -0
  279. package/dist/chunks/page-view-B3mxo6gm.js +323 -0
  280. package/dist/chunks/page-view-B3mxo6gm.js.map +1 -0
  281. package/dist/chunks/page-view-DXApF6A-.esm.js +324 -0
  282. package/dist/chunks/page-view-DXApF6A-.esm.js.map +1 -0
  283. package/dist/chunks/pagination-BJffYmua.esm.js +136 -0
  284. package/dist/chunks/pagination-BJffYmua.esm.js.map +1 -0
  285. package/dist/chunks/pagination-DWbXofhv.js +135 -0
  286. package/dist/chunks/pagination-DWbXofhv.js.map +1 -0
  287. package/dist/chunks/phone-CpvIlogv.js +58 -0
  288. package/dist/chunks/phone-CpvIlogv.js.map +1 -0
  289. package/dist/chunks/phone-DVLpLugC.esm.js +59 -0
  290. package/dist/chunks/phone-DVLpLugC.esm.js.map +1 -0
  291. package/dist/chunks/phone-input-BdkVAoH2.js +254 -0
  292. package/dist/chunks/phone-input-BdkVAoH2.js.map +1 -0
  293. package/dist/chunks/phone-input-DKJjbvou.esm.js +255 -0
  294. package/dist/chunks/phone-input-DKJjbvou.esm.js.map +1 -0
  295. package/dist/chunks/privateRoute-D6jVrjoG.js +12 -0
  296. package/dist/chunks/privateRoute-D6jVrjoG.js.map +1 -0
  297. package/dist/chunks/privateRoute-DEZzvs2N.esm.js +13 -0
  298. package/dist/chunks/privateRoute-DEZzvs2N.esm.js.map +1 -0
  299. package/dist/chunks/quick-approval-modal-B7i-YKl2.js +272 -0
  300. package/dist/chunks/quick-approval-modal-B7i-YKl2.js.map +1 -0
  301. package/dist/chunks/quick-approval-modal-BVMwgp4Z.esm.js +256 -0
  302. package/dist/chunks/quick-approval-modal-BVMwgp4Z.esm.js.map +1 -0
  303. package/dist/chunks/reducer-BzLi-LrE.js +32 -0
  304. package/dist/chunks/reducer-BzLi-LrE.js.map +1 -0
  305. package/dist/chunks/reducer-C6sHvXbS.js +148 -0
  306. package/dist/chunks/reducer-C6sHvXbS.js.map +1 -0
  307. package/dist/chunks/reducer-Cngb_Mdn.js +49 -0
  308. package/dist/chunks/reducer-Cngb_Mdn.js.map +1 -0
  309. package/dist/chunks/reducer-Cpk59NOP.esm.js +43 -0
  310. package/dist/chunks/reducer-Cpk59NOP.esm.js.map +1 -0
  311. package/dist/chunks/reducer-DW2Bqjc6.js +55 -0
  312. package/dist/chunks/reducer-DW2Bqjc6.js.map +1 -0
  313. package/dist/chunks/reducer-DWDtIvnX.esm.js +50 -0
  314. package/dist/chunks/reducer-DWDtIvnX.esm.js.map +1 -0
  315. package/dist/chunks/reducer-DiLDehJI.esm.js +33 -0
  316. package/dist/chunks/reducer-DiLDehJI.esm.js.map +1 -0
  317. package/dist/chunks/reducer-KL35iBYz.esm.js +56 -0
  318. package/dist/chunks/reducer-KL35iBYz.esm.js.map +1 -0
  319. package/dist/chunks/reducer-dliimPMJ.js +42 -0
  320. package/dist/chunks/reducer-dliimPMJ.js.map +1 -0
  321. package/dist/chunks/reducer-lFoBnaC5.esm.js +149 -0
  322. package/dist/chunks/reducer-lFoBnaC5.esm.js.map +1 -0
  323. package/dist/chunks/remove-action-DERJ0rtA.js +20 -0
  324. package/dist/chunks/remove-action-DERJ0rtA.js.map +1 -0
  325. package/dist/chunks/remove-action-DNtURLvU.esm.js +21 -0
  326. package/dist/chunks/remove-action-DNtURLvU.esm.js.map +1 -0
  327. package/dist/chunks/report-buttons-B2i_Q-lC.js +59 -0
  328. package/dist/chunks/report-buttons-B2i_Q-lC.js.map +1 -0
  329. package/dist/chunks/report-buttons-BdTnws2T.js +45 -0
  330. package/dist/chunks/report-buttons-BdTnws2T.js.map +1 -0
  331. package/dist/chunks/report-buttons-CCc9rCkl.esm.js +46 -0
  332. package/dist/chunks/report-buttons-CCc9rCkl.esm.js.map +1 -0
  333. package/dist/chunks/report-buttons-psZVgpe_.esm.js +60 -0
  334. package/dist/chunks/report-buttons-psZVgpe_.esm.js.map +1 -0
  335. package/dist/chunks/reportFilter-C39KSw3l.esm.js +395 -0
  336. package/dist/chunks/reportFilter-C39KSw3l.esm.js.map +1 -0
  337. package/dist/chunks/reportFilter-DGd4ekg-.js +394 -0
  338. package/dist/chunks/reportFilter-DGd4ekg-.js.map +1 -0
  339. package/dist/chunks/reports-title-bar-Dd3iOfR-.esm.js +947 -0
  340. package/dist/chunks/reports-title-bar-Dd3iOfR-.esm.js.map +1 -0
  341. package/dist/chunks/reports-title-bar-DlPpSwiw.js +946 -0
  342. package/dist/chunks/reports-title-bar-DlPpSwiw.js.map +1 -0
  343. package/dist/chunks/reset-password-DReduw70.esm.js +33 -0
  344. package/dist/chunks/reset-password-DReduw70.esm.js.map +1 -0
  345. package/dist/chunks/reset-password-DZvsTWlD.js +32 -0
  346. package/dist/chunks/reset-password-DZvsTWlD.js.map +1 -0
  347. package/dist/chunks/reset-password-modal-Cr05IyG1.js +160 -0
  348. package/dist/chunks/reset-password-modal-Cr05IyG1.js.map +1 -0
  349. package/dist/chunks/reset-password-modal-lPlOVnJq.esm.js +144 -0
  350. package/dist/chunks/reset-password-modal-lPlOVnJq.esm.js.map +1 -0
  351. package/dist/chunks/routes-DH1b-Q2W.js +35 -0
  352. package/dist/chunks/routes-DH1b-Q2W.js.map +1 -0
  353. package/dist/chunks/routes-Dreutj_J.esm.js +36 -0
  354. package/dist/chunks/routes-Dreutj_J.esm.js.map +1 -0
  355. package/dist/chunks/schedule-report-CJGqP8tZ.esm.js +236 -0
  356. package/dist/chunks/schedule-report-CJGqP8tZ.esm.js.map +1 -0
  357. package/dist/chunks/schedule-report-CgjIY66p.js +235 -0
  358. package/dist/chunks/schedule-report-CgjIY66p.js.map +1 -0
  359. package/dist/chunks/schedule-report-modal-0SVNj3s-.js +287 -0
  360. package/dist/chunks/schedule-report-modal-0SVNj3s-.js.map +1 -0
  361. package/dist/chunks/schedule-report-modal-BjVPnuxt.esm.js +288 -0
  362. package/dist/chunks/schedule-report-modal-BjVPnuxt.esm.js.map +1 -0
  363. package/dist/chunks/searchable-select-1icZNvnP.esm.js +5396 -0
  364. package/dist/chunks/searchable-select-1icZNvnP.esm.js.map +1 -0
  365. package/dist/chunks/searchable-select-Blsu4iXR.js +5412 -0
  366. package/dist/chunks/searchable-select-Blsu4iXR.js.map +1 -0
  367. package/dist/chunks/share-modal-Cz_WL8EW.js +217 -0
  368. package/dist/chunks/share-modal-Cz_WL8EW.js.map +1 -0
  369. package/dist/chunks/share-modal-DJ2_JFTx.esm.js +218 -0
  370. package/dist/chunks/share-modal-DJ2_JFTx.esm.js.map +1 -0
  371. package/dist/chunks/share-modal-enhanced-DNHOBVhS.esm.js +270 -0
  372. package/dist/chunks/share-modal-enhanced-DNHOBVhS.esm.js.map +1 -0
  373. package/dist/chunks/share-modal-enhanced-DiPHMaXt.js +269 -0
  374. package/dist/chunks/share-modal-enhanced-DiPHMaXt.js.map +1 -0
  375. package/dist/chunks/sidebar-CMAUcvl9.js +878 -0
  376. package/dist/chunks/sidebar-CMAUcvl9.js.map +1 -0
  377. package/dist/chunks/sidebar-JNFt3JH3.esm.js +879 -0
  378. package/dist/chunks/sidebar-JNFt3JH3.esm.js.map +1 -0
  379. package/dist/chunks/sidebarScreen-DhReSLjB.js +201 -0
  380. package/dist/chunks/sidebarScreen-DhReSLjB.js.map +1 -0
  381. package/dist/chunks/sidebarScreen-ZU78XP7H.esm.js +202 -0
  382. package/dist/chunks/sidebarScreen-ZU78XP7H.esm.js.map +1 -0
  383. package/dist/chunks/store-ClgTK2sV.esm.js +100 -0
  384. package/dist/chunks/store-ClgTK2sV.esm.js.map +1 -0
  385. package/dist/chunks/store-D8N3NY1-.js +99 -0
  386. package/dist/chunks/store-D8N3NY1-.js.map +1 -0
  387. package/dist/chunks/table-C_9RyXid.esm.js +185 -0
  388. package/dist/chunks/table-C_9RyXid.esm.js.map +1 -0
  389. package/dist/chunks/table-V7XmJkmH.js +184 -0
  390. package/dist/chunks/table-V7XmJkmH.js.map +1 -0
  391. package/dist/chunks/table-form-CWUSN_Vo.esm.js +1537 -0
  392. package/dist/chunks/table-form-CWUSN_Vo.esm.js.map +1 -0
  393. package/dist/chunks/table-form-DAYhvUNf.js +1536 -0
  394. package/dist/chunks/table-form-DAYhvUNf.js.map +1 -0
  395. package/dist/chunks/template-editor-router-BrdHuf1M.esm.js +9 -0
  396. package/dist/chunks/template-editor-router-BrdHuf1M.esm.js.map +1 -0
  397. package/dist/chunks/template-editor-router-DLlK7QoQ.js +8 -0
  398. package/dist/chunks/template-editor-router-DLlK7QoQ.js.map +1 -0
  399. package/dist/chunks/template-modal-CaihVS6c.esm.js +769 -0
  400. package/dist/chunks/template-modal-CaihVS6c.esm.js.map +1 -0
  401. package/dist/chunks/template-modal-DR44UCdO.js +768 -0
  402. package/dist/chunks/template-modal-DR44UCdO.js.map +1 -0
  403. package/dist/chunks/templates-BSItbYyn.esm.js +273 -0
  404. package/dist/chunks/templates-BSItbYyn.esm.js.map +1 -0
  405. package/dist/chunks/templates-lQXS-JbW.js +272 -0
  406. package/dist/chunks/templates-lQXS-JbW.js.map +1 -0
  407. package/dist/chunks/text-measurement-CKsi7roR.js +251 -0
  408. package/dist/chunks/text-measurement-CKsi7roR.js.map +1 -0
  409. package/dist/chunks/text-measurement-CzTbKujq.esm.js +252 -0
  410. package/dist/chunks/text-measurement-CzTbKujq.esm.js.map +1 -0
  411. package/dist/chunks/toggle-button-BAzK-F4f.js +54 -0
  412. package/dist/chunks/toggle-button-BAzK-F4f.js.map +1 -0
  413. package/dist/chunks/toggle-button-wxw3vqQm.esm.js +55 -0
  414. package/dist/chunks/toggle-button-wxw3vqQm.esm.js.map +1 -0
  415. package/dist/chunks/toggle-switch-BpYaTgi8.js +80 -0
  416. package/dist/chunks/toggle-switch-BpYaTgi8.js.map +1 -0
  417. package/dist/chunks/toggle-switch-CQSli7Ay.esm.js +81 -0
  418. package/dist/chunks/toggle-switch-CQSli7Ay.esm.js.map +1 -0
  419. package/dist/chunks/translations-BEM7tglD.js +127 -0
  420. package/dist/chunks/translations-BEM7tglD.js.map +1 -0
  421. package/dist/chunks/translations-C1zjzcqi.esm.js +128 -0
  422. package/dist/chunks/translations-C1zjzcqi.esm.js.map +1 -0
  423. package/dist/chunks/uom-field-wrapper-BflzOvzr.js +79 -0
  424. package/dist/chunks/uom-field-wrapper-BflzOvzr.js.map +1 -0
  425. package/dist/chunks/uom-field-wrapper-C9YwPiwb.esm.js +80 -0
  426. package/dist/chunks/uom-field-wrapper-C9YwPiwb.esm.js.map +1 -0
  427. package/dist/chunks/upload-excel-DRZMnZD7.js +360 -0
  428. package/dist/chunks/upload-excel-DRZMnZD7.js.map +1 -0
  429. package/dist/chunks/upload-excel-iZv0_wk0.esm.js +361 -0
  430. package/dist/chunks/upload-excel-iZv0_wk0.esm.js.map +1 -0
  431. package/dist/chunks/use-pages-ChcQwCXQ.js +29 -0
  432. package/dist/chunks/use-pages-ChcQwCXQ.js.map +1 -0
  433. package/dist/chunks/use-pages-Dip08ksi.esm.js +30 -0
  434. package/dist/chunks/use-pages-Dip08ksi.esm.js.map +1 -0
  435. package/dist/chunks/use-translations-Dov2gaPx.js +68 -0
  436. package/dist/chunks/use-translations-Dov2gaPx.js.map +1 -0
  437. package/dist/chunks/use-translations-HClmwwE_.esm.js +69 -0
  438. package/dist/chunks/use-translations-HClmwwE_.esm.js.map +1 -0
  439. package/dist/chunks/useAccountSetting-DPk-tXqj.esm.js +174 -0
  440. package/dist/chunks/useAccountSetting-DPk-tXqj.esm.js.map +1 -0
  441. package/dist/chunks/useAccountSetting-DzYd7M2W.js +173 -0
  442. package/dist/chunks/useAccountSetting-DzYd7M2W.js.map +1 -0
  443. package/dist/chunks/useCheckSkuAndName-CP9L3hQL.esm.js +50 -0
  444. package/dist/chunks/useCheckSkuAndName-CP9L3hQL.esm.js.map +1 -0
  445. package/dist/chunks/useCheckSkuAndName-DE2GEFo6.js +49 -0
  446. package/dist/chunks/useCheckSkuAndName-DE2GEFo6.js.map +1 -0
  447. package/dist/chunks/useCompanyCountryCode-Cv_pe0VV.js +35 -0
  448. package/dist/chunks/useCompanyCountryCode-Cv_pe0VV.js.map +1 -0
  449. package/dist/chunks/useCompanyCountryCode-DdqpAORy.esm.js +36 -0
  450. package/dist/chunks/useCompanyCountryCode-DdqpAORy.esm.js.map +1 -0
  451. package/dist/chunks/useDataFetcher-D0pW_enR.esm.js +80 -0
  452. package/dist/chunks/useDataFetcher-D0pW_enR.esm.js.map +1 -0
  453. package/dist/chunks/useDataFetcher-N1rD6Kfn.js +79 -0
  454. package/dist/chunks/useDataFetcher-N1rD6Kfn.js.map +1 -0
  455. package/dist/chunks/useLangauge-BG9ygywe.esm.js +49 -0
  456. package/dist/chunks/useLangauge-BG9ygywe.esm.js.map +1 -0
  457. package/dist/chunks/useLangauge-XogfBoCI.js +48 -0
  458. package/dist/chunks/useLangauge-XogfBoCI.js.map +1 -0
  459. package/dist/chunks/useReduxIntegration-CfVVtnD7.esm.js +39 -0
  460. package/dist/chunks/useReduxIntegration-CfVVtnD7.esm.js.map +1 -0
  461. package/dist/chunks/useReduxIntegration-D5PrXQel.js +38 -0
  462. package/dist/chunks/useReduxIntegration-D5PrXQel.js.map +1 -0
  463. package/dist/chunks/useSetDefaultConfig-BPluNr91.esm.js +101 -0
  464. package/dist/chunks/useSetDefaultConfig-BPluNr91.esm.js.map +1 -0
  465. package/dist/chunks/useSetDefaultConfig-D7MeVt3h.js +100 -0
  466. package/dist/chunks/useSetDefaultConfig-D7MeVt3h.js.map +1 -0
  467. package/dist/chunks/useUniquenessCheck-C7DJT7Ga.esm.js +39 -0
  468. package/dist/chunks/useUniquenessCheck-C7DJT7Ga.esm.js.map +1 -0
  469. package/dist/chunks/useUniquenessCheck-CrkmkQn9.js +38 -0
  470. package/dist/chunks/useUniquenessCheck-CrkmkQn9.js.map +1 -0
  471. package/dist/chunks/user-menu-D4vfwfEU.esm.js +105 -0
  472. package/dist/chunks/user-menu-D4vfwfEU.esm.js.map +1 -0
  473. package/dist/chunks/user-menu-gPZ-eIhh.js +104 -0
  474. package/dist/chunks/user-menu-gPZ-eIhh.js.map +1 -0
  475. package/dist/chunks/value-editor-CHtw6kdm.esm.js +137 -0
  476. package/dist/chunks/value-editor-CHtw6kdm.esm.js.map +1 -0
  477. package/dist/chunks/value-editor-Nn6CvIU1.js +136 -0
  478. package/dist/chunks/value-editor-Nn6CvIU1.js.map +1 -0
  479. package/dist/components/ERPUIProvider/index.esm.js +1 -1
  480. package/dist/components/ERPUIProvider/index.js +1 -1
  481. package/dist/components/FORMS/index.esm.js +1 -1
  482. package/dist/components/FORMS/index.js +1 -1
  483. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  484. package/dist/components/action-bar/action-bar/index.js +1 -1
  485. package/dist/components/action-bar/index.esm.js +1 -1
  486. package/dist/components/action-bar/index.js +1 -1
  487. package/dist/components/activity-tag/activity-tag/index.esm.js +1 -1
  488. package/dist/components/activity-tag/activity-tag/index.js +1 -1
  489. package/dist/components/activity-tag/index.esm.js +1 -1
  490. package/dist/components/activity-tag/index.js +1 -1
  491. package/dist/components/address-modal/index.esm.js +1 -1
  492. package/dist/components/address-modal/index.js +1 -1
  493. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  494. package/dist/components/ai-summary/ai-summary/index.js +1 -1
  495. package/dist/components/ai-summary/index.esm.js +1 -1
  496. package/dist/components/ai-summary/index.js +1 -1
  497. package/dist/components/appbar/appbar/index.esm.js +1 -1
  498. package/dist/components/appbar/appbar/index.js +1 -1
  499. package/dist/components/appbar/index.esm.js +1 -1
  500. package/dist/components/appbar/index.js +1 -1
  501. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  502. package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
  503. package/dist/components/approval-wrapper/index.esm.js +1 -1
  504. package/dist/components/approval-wrapper/index.js +1 -1
  505. package/dist/components/calculation-summary/calculation-summary/index.esm.js +1 -1
  506. package/dist/components/calculation-summary/calculation-summary/index.js +1 -1
  507. package/dist/components/calculation-summary/index.esm.js +1 -1
  508. package/dist/components/calculation-summary/index.js +1 -1
  509. package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +1 -1
  510. package/dist/components/change-user-password-modal/change-user-password-modal/index.js +1 -1
  511. package/dist/components/change-user-password-modal/index.esm.js +1 -1
  512. package/dist/components/change-user-password-modal/index.js +1 -1
  513. package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
  514. package/dist/components/charts/donutChart/DonutChart/index.js +1 -1
  515. package/dist/components/charts/donutChart/index.esm.js +1 -1
  516. package/dist/components/charts/donutChart/index.js +1 -1
  517. package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
  518. package/dist/components/charts/groupBarChart/GroupBarChart/index.js +1 -1
  519. package/dist/components/charts/groupBarChart/index.esm.js +1 -1
  520. package/dist/components/charts/groupBarChart/index.js +1 -1
  521. package/dist/components/charts/index.esm.js +2 -2
  522. package/dist/components/charts/index.js +2 -2
  523. package/dist/components/chat-bot/index.esm.js +1 -1
  524. package/dist/components/chat-bot/index.js +1 -1
  525. package/dist/components/checkbox/index.esm.js +1 -1
  526. package/dist/components/checkbox/index.js +1 -1
  527. package/dist/components/confirm-modal/confirm-modal/index.esm.js +1 -1
  528. package/dist/components/confirm-modal/confirm-modal/index.js +1 -1
  529. package/dist/components/confirm-modal/index.esm.js +1 -1
  530. package/dist/components/confirm-modal/index.js +1 -1
  531. package/dist/components/contact-modal/index.esm.js +1 -1
  532. package/dist/components/contact-modal/index.js +1 -1
  533. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  534. package/dist/components/custom-forms/FORMS/index.js +1 -1
  535. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  536. package/dist/components/custom-forms/grid-view/grid-view/index.js +1 -1
  537. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  538. package/dist/components/custom-forms/grid-view/index.js +1 -1
  539. package/dist/components/custom-forms/index.esm.js +2 -2
  540. package/dist/components/custom-forms/index.js +2 -2
  541. package/dist/components/date-range-picker/date-range-picker/index.esm.js +1 -1
  542. package/dist/components/date-range-picker/date-range-picker/index.js +1 -1
  543. package/dist/components/date-range-picker/index.esm.js +2 -2
  544. package/dist/components/date-range-picker/index.js +2 -2
  545. package/dist/components/department-add-modal/index.esm.js +1 -1
  546. package/dist/components/department-add-modal/index.js +1 -1
  547. package/dist/components/designation-add-modal/index.esm.js +1 -1
  548. package/dist/components/designation-add-modal/index.js +1 -1
  549. package/dist/components/donutChart/index.esm.js +1 -1
  550. package/dist/components/donutChart/index.js +1 -1
  551. package/dist/components/dropdown-button/dropdown-button/index.esm.js +1 -1
  552. package/dist/components/dropdown-button/dropdown-button/index.js +1 -1
  553. package/dist/components/dropdown-button/index.esm.js +1 -1
  554. package/dist/components/dropdown-button/index.js +1 -1
  555. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +1 -1
  556. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +1 -1
  557. package/dist/components/dynamic-layout-wrapper/index.esm.js +1 -1
  558. package/dist/components/dynamic-layout-wrapper/index.js +1 -1
  559. package/dist/components/dynamic-select/index.esm.js +1 -1
  560. package/dist/components/dynamic-select/index.js +1 -1
  561. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  562. package/dist/components/editor/custom-editor/index.js +1 -1
  563. package/dist/components/editor/index.esm.js +1 -1
  564. package/dist/components/editor/index.js +1 -1
  565. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  566. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  567. package/dist/components/examples/index.esm.js +1 -1
  568. package/dist/components/examples/index.js +1 -1
  569. package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.esm.js +1 -1
  570. package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.js +1 -1
  571. package/dist/components/expandable-summary-wrapper/index.esm.js +1 -1
  572. package/dist/components/expandable-summary-wrapper/index.js +1 -1
  573. package/dist/components/filter/components/index.esm.js +2 -2
  574. package/dist/components/filter/components/index.js +2 -2
  575. package/dist/components/filter/components/remove-action/index.esm.js +1 -1
  576. package/dist/components/filter/components/remove-action/index.js +1 -1
  577. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  578. package/dist/components/filter/components/value-editor/index.js +1 -1
  579. package/dist/components/filter/filter/index.esm.js +1 -1
  580. package/dist/components/filter/filter/index.js +1 -1
  581. package/dist/components/filter/index.esm.js +3 -3
  582. package/dist/components/filter/index.js +3 -3
  583. package/dist/components/footer/footer/index.esm.js +1 -1
  584. package/dist/components/footer/footer/index.js +1 -1
  585. package/dist/components/footer/index.esm.js +1 -1
  586. package/dist/components/footer/index.js +1 -1
  587. package/dist/components/form-builder-element/index.esm.js +9 -9
  588. package/dist/components/form-builder-element/index.js +9 -9
  589. package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.esm.js +1 -1
  590. package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.js +1 -1
  591. package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.esm.js +1 -1
  592. package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.js +1 -1
  593. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  594. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  595. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  596. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  597. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  598. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.js +1 -1
  599. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  600. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  601. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +9 -9
  602. package/dist/components/form-control/form-builder/form-builder-element/index.js +9 -9
  603. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  604. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  605. package/dist/components/form-control/form-builder/form-builder-element/phone/index.esm.js +1 -1
  606. package/dist/components/form-control/form-builder/form-builder-element/phone/index.js +1 -1
  607. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  608. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  609. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  610. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  611. package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.esm.js +1 -1
  612. package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.js +1 -1
  613. package/dist/components/form-control/form-builder/index.esm.js +9 -9
  614. package/dist/components/form-control/form-builder/index.js +9 -9
  615. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  616. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  617. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  618. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  619. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  620. package/dist/components/form-control/form-parser/index.js +2 -2
  621. package/dist/components/form-control/index.esm.js +11 -11
  622. package/dist/components/form-control/index.js +11 -11
  623. package/dist/components/form-parser/index.esm.js +1 -1
  624. package/dist/components/form-parser/index.js +1 -1
  625. package/dist/components/groupBarChart/index.esm.js +1 -1
  626. package/dist/components/groupBarChart/index.js +1 -1
  627. package/dist/components/header/components/global-search/index.esm.js +1 -1
  628. package/dist/components/header/components/global-search/index.js +1 -1
  629. package/dist/components/header/components/index.esm.js +2 -2
  630. package/dist/components/header/components/index.js +2 -2
  631. package/dist/components/header/components/language-switch/index.esm.js +1 -1
  632. package/dist/components/header/components/language-switch/index.js +1 -1
  633. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  634. package/dist/components/header/components/notification-menu/index.js +1 -1
  635. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  636. package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
  637. package/dist/components/header/components/user-menu/index.esm.js +1 -1
  638. package/dist/components/header/components/user-menu/index.js +1 -1
  639. package/dist/components/header/header/index.esm.js +1 -1
  640. package/dist/components/header/header/index.js +1 -1
  641. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  642. package/dist/components/header/header-enhanced/index.js +1 -1
  643. package/dist/components/header/index.esm.js +6 -6
  644. package/dist/components/header/index.js +6 -6
  645. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  646. package/dist/components/header/redux/actionCreator/index.js +1 -1
  647. package/dist/components/header/redux/index.esm.js +2 -2
  648. package/dist/components/header/redux/index.js +2 -2
  649. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  650. package/dist/components/header/redux/reducer/index.js +1 -1
  651. package/dist/components/index.esm.js +59 -59
  652. package/dist/components/index.js +59 -59
  653. package/dist/components/inventory-reports-title-bar/component/index.esm.js +1 -1
  654. package/dist/components/inventory-reports-title-bar/component/index.js +1 -1
  655. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +1 -1
  656. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +1 -1
  657. package/dist/components/inventory-reports-title-bar/index.esm.js +5 -5
  658. package/dist/components/inventory-reports-title-bar/index.js +5 -5
  659. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  660. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  661. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  662. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
  663. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  664. package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
  665. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  666. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  667. package/dist/components/inventory-reports-title-bar/report-buttons/index.esm.js +1 -1
  668. package/dist/components/inventory-reports-title-bar/report-buttons/index.js +1 -1
  669. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
  670. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js +1 -1
  671. package/dist/components/journal-type-add-modal/index.esm.js +1 -1
  672. package/dist/components/journal-type-add-modal/index.js +1 -1
  673. package/dist/components/listing/index.esm.js +1 -1
  674. package/dist/components/listing/index.js +1 -1
  675. package/dist/components/listing/listing/index.esm.js +1 -1
  676. package/dist/components/listing/listing/index.js +1 -1
  677. package/dist/components/location-select/index.esm.js +1 -1
  678. package/dist/components/location-select/index.js +1 -1
  679. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  680. package/dist/components/material-editable-table/components/index.js +1 -1
  681. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  682. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  683. package/dist/components/material-editable-table/index.esm.js +2 -2
  684. package/dist/components/material-editable-table/index.js +2 -2
  685. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  686. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  687. package/dist/components/material-table/components/index.esm.js +1 -1
  688. package/dist/components/material-table/components/index.js +1 -1
  689. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  690. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  691. package/dist/components/material-table/index.esm.js +1 -1
  692. package/dist/components/material-table/index.js +1 -1
  693. package/dist/components/material-table/material-table/index.esm.js +1 -1
  694. package/dist/components/material-table/material-table/index.js +1 -1
  695. package/dist/components/page-navigator/components/index.esm.js +1 -1
  696. package/dist/components/page-navigator/components/index.js +1 -1
  697. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  698. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  699. package/dist/components/page-navigator/index.esm.js +2 -2
  700. package/dist/components/page-navigator/index.js +2 -2
  701. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  702. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  703. package/dist/components/pagination/index.esm.js +1 -1
  704. package/dist/components/pagination/index.js +1 -1
  705. package/dist/components/pagination/pagination/index.esm.js +1 -1
  706. package/dist/components/pagination/pagination/index.js +1 -1
  707. package/dist/components/parties-modal/index.esm.js +1 -1
  708. package/dist/components/parties-modal/index.js +1 -1
  709. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  710. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  711. package/dist/components/phone-input/index.esm.js +1 -1
  712. package/dist/components/phone-input/index.js +1 -1
  713. package/dist/components/phone-input/phone-input/index.esm.js +1 -1
  714. package/dist/components/phone-input/phone-input/index.js +1 -1
  715. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  716. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  717. package/dist/components/providers/index.esm.js +1 -1
  718. package/dist/components/providers/index.js +1 -1
  719. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  720. package/dist/components/quick-approval-modal/index.js +1 -1
  721. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  722. package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
  723. package/dist/components/report-buttons/index.esm.js +1 -1
  724. package/dist/components/report-buttons/index.js +1 -1
  725. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  726. package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
  727. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  728. package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
  729. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  730. package/dist/components/reports/dynamic-report/index.js +2 -2
  731. package/dist/components/reports/index.esm.js +2 -2
  732. package/dist/components/reports/index.js +2 -2
  733. package/dist/components/reports-title-bar/index.esm.js +4 -4
  734. package/dist/components/reports-title-bar/index.js +4 -4
  735. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  736. package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
  737. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  738. package/dist/components/reports-title-bar/redux/index.js +2 -2
  739. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  740. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  741. package/dist/components/reports-title-bar/report-buttons/index.esm.js +1 -1
  742. package/dist/components/reports-title-bar/report-buttons/index.js +1 -1
  743. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
  744. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +1 -1
  745. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  746. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  747. package/dist/components/reset-password-modal/index.esm.js +1 -1
  748. package/dist/components/reset-password-modal/index.js +1 -1
  749. package/dist/components/reset-password-modal/reset-password-modal/index.esm.js +1 -1
  750. package/dist/components/reset-password-modal/reset-password-modal/index.js +1 -1
  751. package/dist/components/rfq-response/index.esm.js +1 -1
  752. package/dist/components/rfq-response/index.js +1 -1
  753. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  754. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  755. package/dist/components/schedule-report/index.esm.js +2 -2
  756. package/dist/components/schedule-report/index.js +2 -2
  757. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  758. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  759. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  760. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  761. package/dist/components/schedule-report-modal/index.esm.js +1 -1
  762. package/dist/components/schedule-report-modal/index.js +1 -1
  763. package/dist/components/searchable-select/index.esm.js +1 -1
  764. package/dist/components/searchable-select/index.js +1 -1
  765. package/dist/components/share-modal/index.esm.js +4 -4
  766. package/dist/components/share-modal/index.js +4 -4
  767. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  768. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  769. package/dist/components/share-modal/redux/index.esm.js +2 -2
  770. package/dist/components/share-modal/redux/index.js +2 -2
  771. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  772. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  773. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  774. package/dist/components/share-modal/share-modal/index.js +1 -1
  775. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  776. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  777. package/dist/components/sidebar/index.esm.js +1 -1
  778. package/dist/components/sidebar/index.js +1 -1
  779. package/dist/components/sidebar/sidebar/index.esm.js +1 -1
  780. package/dist/components/sidebar/sidebar/index.js +1 -1
  781. package/dist/components/team-add-modal/index.esm.js +1 -1
  782. package/dist/components/team-add-modal/index.js +1 -1
  783. package/dist/components/toggle-switch/index.esm.js +1 -1
  784. package/dist/components/toggle-switch/index.js +1 -1
  785. package/dist/components/toggle-switch/toggle-switch/index.esm.js +1 -1
  786. package/dist/components/toggle-switch/toggle-switch/index.js +1 -1
  787. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  788. package/dist/components/uom-field-wrapper/index.js +1 -1
  789. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  790. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  791. package/dist/components/upload-excel/index.esm.js +1 -1
  792. package/dist/components/upload-excel/index.js +1 -1
  793. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  794. package/dist/components/upload-excel/upload-excel/index.js +1 -1
  795. package/dist/constants/pathnames/pathname.crm/index.esm.js +5 -5
  796. package/dist/constants/pathnames/pathname.crm/index.esm.js.map +1 -1
  797. package/dist/constants/pathnames/pathname.crm/index.js +5 -5
  798. package/dist/constants/pathnames/pathname.crm/index.js.map +1 -1
  799. package/dist/contexts/AuthContext/index.esm.js +1 -1
  800. package/dist/contexts/AuthContext/index.js +1 -1
  801. package/dist/contexts/index.esm.js +3 -3
  802. package/dist/contexts/index.js +3 -3
  803. package/dist/contexts/languageContext/index.esm.js +2 -2
  804. package/dist/contexts/languageContext/index.js +1 -1
  805. package/dist/contexts/page-context/index.esm.js +1 -1
  806. package/dist/contexts/page-context/index.js +1 -1
  807. package/dist/hooks/common/index.esm.js +1 -1
  808. package/dist/hooks/common/index.js +1 -1
  809. package/dist/hooks/index.esm.js +10 -10
  810. package/dist/hooks/index.js +10 -10
  811. package/dist/hooks/use-pages/index.esm.js +1 -1
  812. package/dist/hooks/use-pages/index.js +1 -1
  813. package/dist/hooks/use-translations/index.esm.js +1 -1
  814. package/dist/hooks/use-translations/index.js +1 -1
  815. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  816. package/dist/hooks/useAccountSetting/index.js +1 -1
  817. package/dist/hooks/useAuth/index.esm.js +1 -1
  818. package/dist/hooks/useAuth/index.js +1 -1
  819. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  820. package/dist/hooks/useCheckSkuAndName/index.js +1 -1
  821. package/dist/hooks/useCompanyCountryCode/index.esm.js +1 -1
  822. package/dist/hooks/useCompanyCountryCode/index.js +1 -1
  823. package/dist/hooks/useDataFetcher/index.esm.js +1 -1
  824. package/dist/hooks/useDataFetcher/index.js +1 -1
  825. package/dist/hooks/useLangauge/index.esm.js +1 -1
  826. package/dist/hooks/useLangauge/index.js +1 -1
  827. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  828. package/dist/hooks/useReduxIntegration/index.js +1 -1
  829. package/dist/hooks/useSetDefaultConfig/index.esm.js +1 -1
  830. package/dist/hooks/useSetDefaultConfig/index.js +1 -1
  831. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  832. package/dist/hooks/useUniquenessCheck/index.js +1 -1
  833. package/dist/index.esm.js +96 -96
  834. package/dist/index.js +96 -96
  835. package/dist/layout/fullScreen/fullScreen/index.esm.js +1 -1
  836. package/dist/layout/fullScreen/fullScreen/index.js +1 -1
  837. package/dist/layout/fullScreen/index.esm.js +1 -1
  838. package/dist/layout/fullScreen/index.js +1 -1
  839. package/dist/layout/index.esm.js +2 -2
  840. package/dist/layout/index.js +2 -2
  841. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  842. package/dist/layout/sidebarScreen/index.js +1 -1
  843. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +1 -1
  844. package/dist/layout/sidebarScreen/sidebarScreen/index.js +1 -1
  845. package/dist/redux/actionCreator/index.esm.js +1 -1
  846. package/dist/redux/actionCreator/index.js +1 -1
  847. package/dist/redux/index.esm.js +3 -3
  848. package/dist/redux/index.js +3 -3
  849. package/dist/redux/module-reducer/index.esm.js +1 -1
  850. package/dist/redux/module-reducer/index.js +1 -1
  851. package/dist/redux/store/index.esm.js +1 -1
  852. package/dist/redux/store/index.js +1 -1
  853. package/dist/runtime/index.esm.js +5 -5
  854. package/dist/runtime/index.js +5 -5
  855. package/dist/utils/api/index.esm.js +1 -1
  856. package/dist/utils/api/index.js +1 -1
  857. package/dist/utils/common/index.esm.js +1 -1
  858. package/dist/utils/common/index.js +1 -1
  859. package/dist/utils/common-utility/index.esm.js +1 -1
  860. package/dist/utils/common-utility/index.js +1 -1
  861. package/dist/utils/index.esm.js +6 -6
  862. package/dist/utils/index.js +5 -5
  863. package/dist/utils/server/index.esm.js +1 -1
  864. package/dist/utils/server/index.js +1 -1
  865. package/dist/utils/text-measurement/index.esm.js +1 -1
  866. package/dist/utils/text-measurement/index.js +1 -1
  867. package/dist/utils/translations/index.esm.js +1 -1
  868. package/dist/utils/translations/index.js +1 -1
  869. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  870. package/dist/views/afterAuth/dashboard/index.js +1 -1
  871. package/dist/views/afterAuth/index.esm.js +2 -2
  872. package/dist/views/afterAuth/index.js +2 -2
  873. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  874. package/dist/views/afterAuth/page-view/index.js +1 -1
  875. package/dist/views/beforeAuth/change-password/index.esm.js +1 -1
  876. package/dist/views/beforeAuth/change-password/index.js +1 -1
  877. package/dist/views/beforeAuth/forgot-password/index.esm.js +1 -1
  878. package/dist/views/beforeAuth/forgot-password/index.js +1 -1
  879. package/dist/views/beforeAuth/index.esm.js +3 -3
  880. package/dist/views/beforeAuth/index.js +3 -3
  881. package/dist/views/beforeAuth/login/index.esm.js +2 -2
  882. package/dist/views/beforeAuth/login/index.js +2 -2
  883. package/dist/views/beforeAuth/reset-password/index.esm.js +1 -1
  884. package/dist/views/beforeAuth/reset-password/index.js +1 -1
  885. package/dist/views/custom-form/index.esm.js +1 -1
  886. package/dist/views/custom-form/index.js +1 -1
  887. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  888. package/dist/views/form-builder/custom-form/index.js +1 -1
  889. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  890. package/dist/views/form-builder/element-edit-forms/index.js +1 -1
  891. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  892. package/dist/views/form-builder/form-fields/index.js +1 -1
  893. package/dist/views/form-builder/index.esm.js +4 -4
  894. package/dist/views/form-builder/index.js +4 -4
  895. package/dist/views/form-builder/redux/index.esm.js +1 -1
  896. package/dist/views/form-builder/redux/index.js +1 -1
  897. package/dist/views/index.esm.js +17 -17
  898. package/dist/views/index.js +17 -17
  899. package/dist/views/privateRoute/index.esm.js +1 -1
  900. package/dist/views/privateRoute/index.js +1 -1
  901. package/dist/views/routes/index.esm.js +1 -1
  902. package/dist/views/routes/index.js +1 -1
  903. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  904. package/dist/views/template-editor/add-template/index.js +1 -1
  905. package/dist/views/template-editor/components/index.esm.js +1 -1
  906. package/dist/views/template-editor/components/index.js +1 -1
  907. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  908. package/dist/views/template-editor/edit-section-modal/index.js +1 -1
  909. package/dist/views/template-editor/index.esm.js +7 -7
  910. package/dist/views/template-editor/index.js +7 -7
  911. package/dist/views/template-editor/routes/index.esm.js +1 -1
  912. package/dist/views/template-editor/routes/index.js +1 -1
  913. package/dist/views/template-editor/template-editor-router/index.esm.js +1 -1
  914. package/dist/views/template-editor/template-editor-router/index.js +1 -1
  915. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  916. package/dist/views/template-editor/template-modal/index.js +1 -1
  917. package/dist/views/template-editor/templates/index.esm.js +1 -1
  918. package/dist/views/template-editor/templates/index.js +1 -1
  919. package/package.json +2 -2
  920. package/dist/chunks/AuthContext-CItUFhA2.esm.js +0 -306
  921. package/dist/chunks/AuthContext-CItUFhA2.esm.js.map +0 -1
  922. package/dist/chunks/AuthContext-Cs_BXvVj.js +0 -305
  923. package/dist/chunks/AuthContext-Cs_BXvVj.js.map +0 -1
  924. package/dist/chunks/DonutChart-Dr60XGH5.esm.js +0 -95
  925. package/dist/chunks/DonutChart-Dr60XGH5.esm.js.map +0 -1
  926. package/dist/chunks/DonutChart-WB5LIvys.js +0 -111
  927. package/dist/chunks/DonutChart-WB5LIvys.js.map +0 -1
  928. package/dist/chunks/DynamicDependentField-BVqAKO1B.js +0 -127
  929. package/dist/chunks/DynamicDependentField-BVqAKO1B.js.map +0 -1
  930. package/dist/chunks/DynamicDependentField-C6DytUY_.esm.js +0 -128
  931. package/dist/chunks/DynamicDependentField-C6DytUY_.esm.js.map +0 -1
  932. package/dist/chunks/DynamicSearchInput-Ccs5S_-Y.js +0 -194
  933. package/dist/chunks/DynamicSearchInput-Ccs5S_-Y.js.map +0 -1
  934. package/dist/chunks/DynamicSearchInput-u9rb_yyw.esm.js +0 -195
  935. package/dist/chunks/DynamicSearchInput-u9rb_yyw.esm.js.map +0 -1
  936. package/dist/chunks/ERPUIProvider-2S46JHUa.js +0 -132
  937. package/dist/chunks/ERPUIProvider-2S46JHUa.js.map +0 -1
  938. package/dist/chunks/ERPUIProvider-ba7WsKJT.esm.js +0 -133
  939. package/dist/chunks/ERPUIProvider-ba7WsKJT.esm.js.map +0 -1
  940. package/dist/chunks/FORMS-CjfTyARI.esm.js +0 -296
  941. package/dist/chunks/FORMS-CjfTyARI.esm.js.map +0 -1
  942. package/dist/chunks/FORMS-_Fww4MYI.js +0 -295
  943. package/dist/chunks/FORMS-_Fww4MYI.js.map +0 -1
  944. package/dist/chunks/FlexibleReduxExample-BiSBR36q.esm.js +0 -149
  945. package/dist/chunks/FlexibleReduxExample-BiSBR36q.esm.js.map +0 -1
  946. package/dist/chunks/FlexibleReduxExample-D6V3clJh.js +0 -148
  947. package/dist/chunks/FlexibleReduxExample-D6V3clJh.js.map +0 -1
  948. package/dist/chunks/GroupBarChart-DLofFCpW.esm.js +0 -87
  949. package/dist/chunks/GroupBarChart-DLofFCpW.esm.js.map +0 -1
  950. package/dist/chunks/GroupBarChart-pLMPgiFq.js +0 -103
  951. package/dist/chunks/GroupBarChart-pLMPgiFq.js.map +0 -1
  952. package/dist/chunks/SectionFlowEditor-DxHvrDry.js +0 -5460
  953. package/dist/chunks/SectionFlowEditor-DxHvrDry.js.map +0 -1
  954. package/dist/chunks/SectionFlowEditor-sTXTk6Pp.esm.js +0 -5461
  955. package/dist/chunks/SectionFlowEditor-sTXTk6Pp.esm.js.map +0 -1
  956. package/dist/chunks/action-bar-DAkDP8jy.esm.js +0 -637
  957. package/dist/chunks/action-bar-DAkDP8jy.esm.js.map +0 -1
  958. package/dist/chunks/action-bar-ZiKnHLpN.js +0 -636
  959. package/dist/chunks/action-bar-ZiKnHLpN.js.map +0 -1
  960. package/dist/chunks/actionCreator--nyJOZdo.esm.js +0 -94
  961. package/dist/chunks/actionCreator--nyJOZdo.esm.js.map +0 -1
  962. package/dist/chunks/actionCreator-B9RMDke4.esm.js +0 -28
  963. package/dist/chunks/actionCreator-B9RMDke4.esm.js.map +0 -1
  964. package/dist/chunks/actionCreator-BHJND4-K.js +0 -21
  965. package/dist/chunks/actionCreator-BHJND4-K.js.map +0 -1
  966. package/dist/chunks/actionCreator-Bvkp-9kz.js +0 -13
  967. package/dist/chunks/actionCreator-Bvkp-9kz.js.map +0 -1
  968. package/dist/chunks/actionCreator-C6pvyodH.esm.js +0 -22
  969. package/dist/chunks/actionCreator-C6pvyodH.esm.js.map +0 -1
  970. package/dist/chunks/actionCreator-CDyPIbaz.js +0 -79
  971. package/dist/chunks/actionCreator-CDyPIbaz.js.map +0 -1
  972. package/dist/chunks/actionCreator-CuO9Tyc1.esm.js +0 -14
  973. package/dist/chunks/actionCreator-CuO9Tyc1.esm.js.map +0 -1
  974. package/dist/chunks/actionCreator-DEgSg3Sh.js +0 -93
  975. package/dist/chunks/actionCreator-DEgSg3Sh.js.map +0 -1
  976. package/dist/chunks/actionCreator-DhHH6Hfz.js +0 -27
  977. package/dist/chunks/actionCreator-DhHH6Hfz.js.map +0 -1
  978. package/dist/chunks/actionCreator-WaxefxF5.esm.js +0 -80
  979. package/dist/chunks/actionCreator-WaxefxF5.esm.js.map +0 -1
  980. package/dist/chunks/activity-tag-4P5hWkZ0.esm.js +0 -152
  981. package/dist/chunks/activity-tag-4P5hWkZ0.esm.js.map +0 -1
  982. package/dist/chunks/activity-tag-Bb8tcLXo.js +0 -151
  983. package/dist/chunks/activity-tag-Bb8tcLXo.js.map +0 -1
  984. package/dist/chunks/add-template-DMLULyMa.js +0 -10
  985. package/dist/chunks/add-template-DMLULyMa.js.map +0 -1
  986. package/dist/chunks/add-template-DmPewqnt.esm.js +0 -11
  987. package/dist/chunks/add-template-DmPewqnt.esm.js.map +0 -1
  988. package/dist/chunks/address-modal-BBrMcIzB.js +0 -687
  989. package/dist/chunks/address-modal-BBrMcIzB.js.map +0 -1
  990. package/dist/chunks/address-modal-cD-efDDf.esm.js +0 -671
  991. package/dist/chunks/address-modal-cD-efDDf.esm.js.map +0 -1
  992. package/dist/chunks/ai-summary-BKoUOoq6.js +0 -350
  993. package/dist/chunks/ai-summary-BKoUOoq6.js.map +0 -1
  994. package/dist/chunks/ai-summary-C8DZpNz5.esm.js +0 -351
  995. package/dist/chunks/ai-summary-C8DZpNz5.esm.js.map +0 -1
  996. package/dist/chunks/appbar-Bp4faPV6.js +0 -56
  997. package/dist/chunks/appbar-Bp4faPV6.js.map +0 -1
  998. package/dist/chunks/appbar-C0FLygTF.esm.js +0 -57
  999. package/dist/chunks/appbar-C0FLygTF.esm.js.map +0 -1
  1000. package/dist/chunks/approval-wrapper-BygcocPB.esm.js +0 -140
  1001. package/dist/chunks/approval-wrapper-BygcocPB.esm.js.map +0 -1
  1002. package/dist/chunks/approval-wrapper-CF7TX7sM.js +0 -139
  1003. package/dist/chunks/approval-wrapper-CF7TX7sM.js.map +0 -1
  1004. package/dist/chunks/calculation-summary-B6AhRJp6.js +0 -173
  1005. package/dist/chunks/calculation-summary-B6AhRJp6.js.map +0 -1
  1006. package/dist/chunks/calculation-summary-Dho9p-GP.esm.js +0 -174
  1007. package/dist/chunks/calculation-summary-Dho9p-GP.esm.js.map +0 -1
  1008. package/dist/chunks/change-password-BnADMmEw.esm.js +0 -183
  1009. package/dist/chunks/change-password-BnADMmEw.esm.js.map +0 -1
  1010. package/dist/chunks/change-password-DdkfFUPr.js +0 -199
  1011. package/dist/chunks/change-password-DdkfFUPr.js.map +0 -1
  1012. package/dist/chunks/change-user-password-modal-BfVbsGA8.esm.js +0 -119
  1013. package/dist/chunks/change-user-password-modal-BfVbsGA8.esm.js.map +0 -1
  1014. package/dist/chunks/change-user-password-modal-CkFyRcMf.js +0 -135
  1015. package/dist/chunks/change-user-password-modal-CkFyRcMf.js.map +0 -1
  1016. package/dist/chunks/chat-bot-CFuFhsP0.esm.js +0 -1831
  1017. package/dist/chunks/chat-bot-CFuFhsP0.esm.js.map +0 -1
  1018. package/dist/chunks/chat-bot-Da19s5yk.js +0 -1830
  1019. package/dist/chunks/chat-bot-Da19s5yk.js.map +0 -1
  1020. package/dist/chunks/checkbox-C2BeoVnl.js +0 -82
  1021. package/dist/chunks/checkbox-C2BeoVnl.js.map +0 -1
  1022. package/dist/chunks/checkbox-jf_YLLyu.esm.js +0 -83
  1023. package/dist/chunks/checkbox-jf_YLLyu.esm.js.map +0 -1
  1024. package/dist/chunks/common-B57Y6C3m.js +0 -182
  1025. package/dist/chunks/common-B57Y6C3m.js.map +0 -1
  1026. package/dist/chunks/common-BKREMeF3.js +0 -4616
  1027. package/dist/chunks/common-BKREMeF3.js.map +0 -1
  1028. package/dist/chunks/common-DPGU5cvK.esm.js +0 -183
  1029. package/dist/chunks/common-DPGU5cvK.esm.js.map +0 -1
  1030. package/dist/chunks/common-Dx7tnk6m.esm.js +0 -4617
  1031. package/dist/chunks/common-Dx7tnk6m.esm.js.map +0 -1
  1032. package/dist/chunks/common-utility-BArlMUt8.js +0 -305
  1033. package/dist/chunks/common-utility-BArlMUt8.js.map +0 -1
  1034. package/dist/chunks/common-utility-fEu6O9r5.esm.js +0 -305
  1035. package/dist/chunks/common-utility-fEu6O9r5.esm.js.map +0 -1
  1036. package/dist/chunks/confirm-modal-DTmaF3fh.js +0 -97
  1037. package/dist/chunks/confirm-modal-DTmaF3fh.js.map +0 -1
  1038. package/dist/chunks/confirm-modal-Dn6_XVen.esm.js +0 -98
  1039. package/dist/chunks/confirm-modal-Dn6_XVen.esm.js.map +0 -1
  1040. package/dist/chunks/contact-modal-DQZ7sNio.esm.js +0 -169
  1041. package/dist/chunks/contact-modal-DQZ7sNio.esm.js.map +0 -1
  1042. package/dist/chunks/contact-modal-DYgiqXzl.js +0 -185
  1043. package/dist/chunks/contact-modal-DYgiqXzl.js.map +0 -1
  1044. package/dist/chunks/custom-editor-BsGSIut7.js +0 -1257
  1045. package/dist/chunks/custom-editor-BsGSIut7.js.map +0 -1
  1046. package/dist/chunks/custom-editor-U1b8LqMi.esm.js +0 -1257
  1047. package/dist/chunks/custom-editor-U1b8LqMi.esm.js.map +0 -1
  1048. package/dist/chunks/custom-form-BVldaNOk.js +0 -1145
  1049. package/dist/chunks/custom-form-BVldaNOk.js.map +0 -1
  1050. package/dist/chunks/custom-form-vRYQMnnO.esm.js +0 -1146
  1051. package/dist/chunks/custom-form-vRYQMnnO.esm.js.map +0 -1
  1052. package/dist/chunks/dashboard-RdyxLVBz.esm.js +0 -75
  1053. package/dist/chunks/dashboard-RdyxLVBz.esm.js.map +0 -1
  1054. package/dist/chunks/dashboard-WJlAESNI.js +0 -74
  1055. package/dist/chunks/dashboard-WJlAESNI.js.map +0 -1
  1056. package/dist/chunks/date-range-picker-BBWpUuFU.js +0 -61
  1057. package/dist/chunks/date-range-picker-BBWpUuFU.js.map +0 -1
  1058. package/dist/chunks/date-range-picker-Ck43XjEE.esm.js +0 -62
  1059. package/dist/chunks/date-range-picker-Ck43XjEE.esm.js.map +0 -1
  1060. package/dist/chunks/date-range-picker-JBGuBpJi.js +0 -159
  1061. package/dist/chunks/date-range-picker-JBGuBpJi.js.map +0 -1
  1062. package/dist/chunks/date-range-picker-_vgdd2Mj.esm.js +0 -160
  1063. package/dist/chunks/date-range-picker-_vgdd2Mj.esm.js.map +0 -1
  1064. package/dist/chunks/dropdown-button-C6Yjdk-q.esm.js +0 -146
  1065. package/dist/chunks/dropdown-button-C6Yjdk-q.esm.js.map +0 -1
  1066. package/dist/chunks/dropdown-button-ChWNEQO-.js +0 -162
  1067. package/dist/chunks/dropdown-button-ChWNEQO-.js.map +0 -1
  1068. package/dist/chunks/dynamic-layout-wrapper-B-N9TvxZ.js +0 -228
  1069. package/dist/chunks/dynamic-layout-wrapper-B-N9TvxZ.js.map +0 -1
  1070. package/dist/chunks/dynamic-layout-wrapper-CYi-Q4TF.esm.js +0 -229
  1071. package/dist/chunks/dynamic-layout-wrapper-CYi-Q4TF.esm.js.map +0 -1
  1072. package/dist/chunks/dynamic-report-B-tJnqiW.js +0 -588
  1073. package/dist/chunks/dynamic-report-B-tJnqiW.js.map +0 -1
  1074. package/dist/chunks/dynamic-report-C1BLcOcT.esm.js +0 -589
  1075. package/dist/chunks/dynamic-report-C1BLcOcT.esm.js.map +0 -1
  1076. package/dist/chunks/dynamic-rows-3BcmufgN.esm.js +0 -250
  1077. package/dist/chunks/dynamic-rows-3BcmufgN.esm.js.map +0 -1
  1078. package/dist/chunks/dynamic-rows-BVKRmFdW.js +0 -249
  1079. package/dist/chunks/dynamic-rows-BVKRmFdW.js.map +0 -1
  1080. package/dist/chunks/dynamic-text-editor-DNwNCQ41.js +0 -44
  1081. package/dist/chunks/dynamic-text-editor-DNwNCQ41.js.map +0 -1
  1082. package/dist/chunks/dynamic-text-editor-OUcokGgL.esm.js +0 -45
  1083. package/dist/chunks/dynamic-text-editor-OUcokGgL.esm.js.map +0 -1
  1084. package/dist/chunks/edit-section-modal-CxLrKCOU.esm.js +0 -80
  1085. package/dist/chunks/edit-section-modal-CxLrKCOU.esm.js.map +0 -1
  1086. package/dist/chunks/edit-section-modal-xqhmDL66.js +0 -79
  1087. package/dist/chunks/edit-section-modal-xqhmDL66.js.map +0 -1
  1088. package/dist/chunks/expandable-summary-wrapper-BWQYltN_.js +0 -241
  1089. package/dist/chunks/expandable-summary-wrapper-BWQYltN_.js.map +0 -1
  1090. package/dist/chunks/expandable-summary-wrapper-DZsULfLF.esm.js +0 -242
  1091. package/dist/chunks/expandable-summary-wrapper-DZsULfLF.esm.js.map +0 -1
  1092. package/dist/chunks/filter-Co5Up7hd.esm.js +0 -410
  1093. package/dist/chunks/filter-Co5Up7hd.esm.js.map +0 -1
  1094. package/dist/chunks/filter-_ZeZCq8N.js +0 -409
  1095. package/dist/chunks/filter-_ZeZCq8N.js.map +0 -1
  1096. package/dist/chunks/footer-BFio62UN.esm.js +0 -64
  1097. package/dist/chunks/footer-BFio62UN.esm.js.map +0 -1
  1098. package/dist/chunks/footer-Dyu2mKhn.js +0 -63
  1099. package/dist/chunks/footer-Dyu2mKhn.js.map +0 -1
  1100. package/dist/chunks/forgot-password-Ct6Uv_5q.js +0 -194
  1101. package/dist/chunks/forgot-password-Ct6Uv_5q.js.map +0 -1
  1102. package/dist/chunks/forgot-password-DDMLbagX.esm.js +0 -178
  1103. package/dist/chunks/forgot-password-DDMLbagX.esm.js.map +0 -1
  1104. package/dist/chunks/form-fields-D2pcLGqp.esm.js +0 -355
  1105. package/dist/chunks/form-fields-D2pcLGqp.esm.js.map +0 -1
  1106. package/dist/chunks/form-fields-o5mMlVZm.js +0 -354
  1107. package/dist/chunks/form-fields-o5mMlVZm.js.map +0 -1
  1108. package/dist/chunks/form-parser-Dy8hI5vV.esm.js +0 -597
  1109. package/dist/chunks/form-parser-Dy8hI5vV.esm.js.map +0 -1
  1110. package/dist/chunks/form-parser-gVQya70w.js +0 -613
  1111. package/dist/chunks/form-parser-gVQya70w.js.map +0 -1
  1112. package/dist/chunks/form-section-BmLixh5S.js +0 -575
  1113. package/dist/chunks/form-section-BmLixh5S.js.map +0 -1
  1114. package/dist/chunks/form-section-lrISEwWZ.esm.js +0 -576
  1115. package/dist/chunks/form-section-lrISEwWZ.esm.js.map +0 -1
  1116. package/dist/chunks/fullScreen-B3pVmUAN.js +0 -18
  1117. package/dist/chunks/fullScreen-B3pVmUAN.js.map +0 -1
  1118. package/dist/chunks/fullScreen-bvFiiF9s.esm.js +0 -19
  1119. package/dist/chunks/fullScreen-bvFiiF9s.esm.js.map +0 -1
  1120. package/dist/chunks/global-search-9SeBhF5P.esm.js +0 -150
  1121. package/dist/chunks/global-search-9SeBhF5P.esm.js.map +0 -1
  1122. package/dist/chunks/global-search-Dq7FlvS5.js +0 -149
  1123. package/dist/chunks/global-search-Dq7FlvS5.js.map +0 -1
  1124. package/dist/chunks/grid-view-BmG_39gB.js +0 -51
  1125. package/dist/chunks/grid-view-BmG_39gB.js.map +0 -1
  1126. package/dist/chunks/grid-view-DCbDctFE.esm.js +0 -52
  1127. package/dist/chunks/grid-view-DCbDctFE.esm.js.map +0 -1
  1128. package/dist/chunks/header-F4w_8oWo.js +0 -92
  1129. package/dist/chunks/header-F4w_8oWo.js.map +0 -1
  1130. package/dist/chunks/header-IjjjlGPb.esm.js +0 -93
  1131. package/dist/chunks/header-IjjjlGPb.esm.js.map +0 -1
  1132. package/dist/chunks/header-enhanced-DEn3BKBp.esm.js +0 -403
  1133. package/dist/chunks/header-enhanced-DEn3BKBp.esm.js.map +0 -1
  1134. package/dist/chunks/header-enhanced-msUcDfn6.js +0 -402
  1135. package/dist/chunks/header-enhanced-msUcDfn6.js.map +0 -1
  1136. package/dist/chunks/index-BoLOZQo2.js +0 -2019
  1137. package/dist/chunks/index-BoLOZQo2.js.map +0 -1
  1138. package/dist/chunks/index-CmW3Zdrr.esm.js +0 -2020
  1139. package/dist/chunks/index-CmW3Zdrr.esm.js.map +0 -1
  1140. package/dist/chunks/inline-edit-fields-CX85osyU.js +0 -341
  1141. package/dist/chunks/inline-edit-fields-CX85osyU.js.map +0 -1
  1142. package/dist/chunks/inline-edit-fields-tRhdMLp9.esm.js +0 -325
  1143. package/dist/chunks/inline-edit-fields-tRhdMLp9.esm.js.map +0 -1
  1144. package/dist/chunks/inventory-reports-title-bar-BgyeKjXJ.esm.js +0 -733
  1145. package/dist/chunks/inventory-reports-title-bar-BgyeKjXJ.esm.js.map +0 -1
  1146. package/dist/chunks/inventory-reports-title-bar-n55HIJhu.js +0 -732
  1147. package/dist/chunks/inventory-reports-title-bar-n55HIJhu.js.map +0 -1
  1148. package/dist/chunks/item-response-details-CJ-rbzqs.esm.js +0 -79
  1149. package/dist/chunks/item-response-details-CJ-rbzqs.esm.js.map +0 -1
  1150. package/dist/chunks/item-response-details-Cl42lIpK.js +0 -78
  1151. package/dist/chunks/item-response-details-Cl42lIpK.js.map +0 -1
  1152. package/dist/chunks/journal-type-add-modal-CI6q6HqD.js +0 -128
  1153. package/dist/chunks/journal-type-add-modal-CI6q6HqD.js.map +0 -1
  1154. package/dist/chunks/journal-type-add-modal-iXBEPmyH.esm.js +0 -112
  1155. package/dist/chunks/journal-type-add-modal-iXBEPmyH.esm.js.map +0 -1
  1156. package/dist/chunks/language-switch-CDgYeZpu.esm.js +0 -111
  1157. package/dist/chunks/language-switch-CDgYeZpu.esm.js.map +0 -1
  1158. package/dist/chunks/language-switch-CGMB4bwl.js +0 -110
  1159. package/dist/chunks/language-switch-CGMB4bwl.js.map +0 -1
  1160. package/dist/chunks/languageContext-CGFeFANe.js +0 -223
  1161. package/dist/chunks/languageContext-CGFeFANe.js.map +0 -1
  1162. package/dist/chunks/languageContext-NvDBmtCQ.esm.js +0 -224
  1163. package/dist/chunks/languageContext-NvDBmtCQ.esm.js.map +0 -1
  1164. package/dist/chunks/listing-D9CwaU4T.js +0 -276
  1165. package/dist/chunks/listing-D9CwaU4T.js.map +0 -1
  1166. package/dist/chunks/listing-Dyx0Mirh.esm.js +0 -277
  1167. package/dist/chunks/listing-Dyx0Mirh.esm.js.map +0 -1
  1168. package/dist/chunks/location-select-BMJPc3NA.esm.js +0 -86
  1169. package/dist/chunks/location-select-BMJPc3NA.esm.js.map +0 -1
  1170. package/dist/chunks/location-select-dUkE7wln.js +0 -85
  1171. package/dist/chunks/location-select-dUkE7wln.js.map +0 -1
  1172. package/dist/chunks/material-editable-table-BBuW5DLg.esm.js +0 -1448
  1173. package/dist/chunks/material-editable-table-BBuW5DLg.esm.js.map +0 -1
  1174. package/dist/chunks/material-editable-table-CLLJ22hR.js +0 -1464
  1175. package/dist/chunks/material-editable-table-CLLJ22hR.js.map +0 -1
  1176. package/dist/chunks/module-reducer-BGH8lAqY.js +0 -78
  1177. package/dist/chunks/module-reducer-BGH8lAqY.js.map +0 -1
  1178. package/dist/chunks/module-reducer-C0oXjw8G.esm.js +0 -79
  1179. package/dist/chunks/module-reducer-C0oXjw8G.esm.js.map +0 -1
  1180. package/dist/chunks/notification-menu-7JH5abny.js +0 -605
  1181. package/dist/chunks/notification-menu-7JH5abny.js.map +0 -1
  1182. package/dist/chunks/notification-menu-lLUBoCir.esm.js +0 -606
  1183. package/dist/chunks/notification-menu-lLUBoCir.esm.js.map +0 -1
  1184. package/dist/chunks/page-action-CIGGDLKn.esm.js +0 -325
  1185. package/dist/chunks/page-action-CIGGDLKn.esm.js.map +0 -1
  1186. package/dist/chunks/page-action-CUTJzxKo.js +0 -324
  1187. package/dist/chunks/page-action-CUTJzxKo.js.map +0 -1
  1188. package/dist/chunks/page-context-CRlrjYeU.esm.js +0 -389
  1189. package/dist/chunks/page-context-CRlrjYeU.esm.js.map +0 -1
  1190. package/dist/chunks/page-context-sWB9lWkV.js +0 -388
  1191. package/dist/chunks/page-context-sWB9lWkV.js.map +0 -1
  1192. package/dist/chunks/page-navigator-CffhPjmI.esm.js +0 -244
  1193. package/dist/chunks/page-navigator-CffhPjmI.esm.js.map +0 -1
  1194. package/dist/chunks/page-navigator-MmJSpust.js +0 -243
  1195. package/dist/chunks/page-navigator-MmJSpust.js.map +0 -1
  1196. package/dist/chunks/page-view-B5F1_m7T.js +0 -323
  1197. package/dist/chunks/page-view-B5F1_m7T.js.map +0 -1
  1198. package/dist/chunks/page-view-BZ3v52E0.esm.js +0 -324
  1199. package/dist/chunks/page-view-BZ3v52E0.esm.js.map +0 -1
  1200. package/dist/chunks/pagination-Dm9DnsrM.js +0 -135
  1201. package/dist/chunks/pagination-Dm9DnsrM.js.map +0 -1
  1202. package/dist/chunks/pagination-MyUaSjQq.esm.js +0 -136
  1203. package/dist/chunks/pagination-MyUaSjQq.esm.js.map +0 -1
  1204. package/dist/chunks/phone-BpIIryp0.esm.js +0 -59
  1205. package/dist/chunks/phone-BpIIryp0.esm.js.map +0 -1
  1206. package/dist/chunks/phone-D35-eNyG.js +0 -58
  1207. package/dist/chunks/phone-D35-eNyG.js.map +0 -1
  1208. package/dist/chunks/phone-input-Bogr4PHd.js +0 -254
  1209. package/dist/chunks/phone-input-Bogr4PHd.js.map +0 -1
  1210. package/dist/chunks/phone-input-CW81GG_I.esm.js +0 -255
  1211. package/dist/chunks/phone-input-CW81GG_I.esm.js.map +0 -1
  1212. package/dist/chunks/privateRoute-Czv_e-HG.esm.js +0 -13
  1213. package/dist/chunks/privateRoute-Czv_e-HG.esm.js.map +0 -1
  1214. package/dist/chunks/privateRoute-acT0YZUW.js +0 -12
  1215. package/dist/chunks/privateRoute-acT0YZUW.js.map +0 -1
  1216. package/dist/chunks/quick-approval-modal-CJHHFOUg.esm.js +0 -256
  1217. package/dist/chunks/quick-approval-modal-CJHHFOUg.esm.js.map +0 -1
  1218. package/dist/chunks/quick-approval-modal-DjGVpSoa.js +0 -272
  1219. package/dist/chunks/quick-approval-modal-DjGVpSoa.js.map +0 -1
  1220. package/dist/chunks/reducer-5S5_al3O.js +0 -32
  1221. package/dist/chunks/reducer-5S5_al3O.js.map +0 -1
  1222. package/dist/chunks/reducer-B2_uBvEN.esm.js +0 -56
  1223. package/dist/chunks/reducer-B2_uBvEN.esm.js.map +0 -1
  1224. package/dist/chunks/reducer-CaW0CURj.js +0 -148
  1225. package/dist/chunks/reducer-CaW0CURj.js.map +0 -1
  1226. package/dist/chunks/reducer-D23ioWk3.js +0 -55
  1227. package/dist/chunks/reducer-D23ioWk3.js.map +0 -1
  1228. package/dist/chunks/reducer-D4sCikWQ.js +0 -42
  1229. package/dist/chunks/reducer-D4sCikWQ.js.map +0 -1
  1230. package/dist/chunks/reducer-D8APZS-d.esm.js +0 -33
  1231. package/dist/chunks/reducer-D8APZS-d.esm.js.map +0 -1
  1232. package/dist/chunks/reducer-DmccJkiL.esm.js +0 -149
  1233. package/dist/chunks/reducer-DmccJkiL.esm.js.map +0 -1
  1234. package/dist/chunks/reducer-Dt2e90Jo.js +0 -49
  1235. package/dist/chunks/reducer-Dt2e90Jo.js.map +0 -1
  1236. package/dist/chunks/reducer-f_PrcdZ4.esm.js +0 -43
  1237. package/dist/chunks/reducer-f_PrcdZ4.esm.js.map +0 -1
  1238. package/dist/chunks/reducer-kj_mMVhq.esm.js +0 -50
  1239. package/dist/chunks/reducer-kj_mMVhq.esm.js.map +0 -1
  1240. package/dist/chunks/remove-action-C4vk55sF.esm.js +0 -21
  1241. package/dist/chunks/remove-action-C4vk55sF.esm.js.map +0 -1
  1242. package/dist/chunks/remove-action-wgH3tjSh.js +0 -20
  1243. package/dist/chunks/remove-action-wgH3tjSh.js.map +0 -1
  1244. package/dist/chunks/report-buttons-BbPCRSOt.esm.js +0 -46
  1245. package/dist/chunks/report-buttons-BbPCRSOt.esm.js.map +0 -1
  1246. package/dist/chunks/report-buttons-BlgYL2Bm.js +0 -59
  1247. package/dist/chunks/report-buttons-BlgYL2Bm.js.map +0 -1
  1248. package/dist/chunks/report-buttons-D5tjbwgy.esm.js +0 -60
  1249. package/dist/chunks/report-buttons-D5tjbwgy.esm.js.map +0 -1
  1250. package/dist/chunks/report-buttons-DTIsMU6-.js +0 -45
  1251. package/dist/chunks/report-buttons-DTIsMU6-.js.map +0 -1
  1252. package/dist/chunks/reportFilter-B8ANX3ve.esm.js +0 -395
  1253. package/dist/chunks/reportFilter-B8ANX3ve.esm.js.map +0 -1
  1254. package/dist/chunks/reportFilter-CtWt_vKu.js +0 -394
  1255. package/dist/chunks/reportFilter-CtWt_vKu.js.map +0 -1
  1256. package/dist/chunks/reports-title-bar-BggbS-Tb.js +0 -946
  1257. package/dist/chunks/reports-title-bar-BggbS-Tb.js.map +0 -1
  1258. package/dist/chunks/reports-title-bar-CBfcBeWm.esm.js +0 -947
  1259. package/dist/chunks/reports-title-bar-CBfcBeWm.esm.js.map +0 -1
  1260. package/dist/chunks/reset-password-D6fTo7PP.js +0 -32
  1261. package/dist/chunks/reset-password-D6fTo7PP.js.map +0 -1
  1262. package/dist/chunks/reset-password-DHsZ0i0m.esm.js +0 -33
  1263. package/dist/chunks/reset-password-DHsZ0i0m.esm.js.map +0 -1
  1264. package/dist/chunks/reset-password-modal-DhtIlWB5.js +0 -160
  1265. package/dist/chunks/reset-password-modal-DhtIlWB5.js.map +0 -1
  1266. package/dist/chunks/reset-password-modal-pX1e8reV.esm.js +0 -144
  1267. package/dist/chunks/reset-password-modal-pX1e8reV.esm.js.map +0 -1
  1268. package/dist/chunks/routes-BW3ty4u3.js +0 -35
  1269. package/dist/chunks/routes-BW3ty4u3.js.map +0 -1
  1270. package/dist/chunks/routes-CZUhkfnc.esm.js +0 -36
  1271. package/dist/chunks/routes-CZUhkfnc.esm.js.map +0 -1
  1272. package/dist/chunks/schedule-report-CdDcoWCH.js +0 -235
  1273. package/dist/chunks/schedule-report-CdDcoWCH.js.map +0 -1
  1274. package/dist/chunks/schedule-report-D-zLbOxU.esm.js +0 -236
  1275. package/dist/chunks/schedule-report-D-zLbOxU.esm.js.map +0 -1
  1276. package/dist/chunks/schedule-report-modal-CrbeZXpC.js +0 -287
  1277. package/dist/chunks/schedule-report-modal-CrbeZXpC.js.map +0 -1
  1278. package/dist/chunks/schedule-report-modal-DJBMRIwR.esm.js +0 -288
  1279. package/dist/chunks/schedule-report-modal-DJBMRIwR.esm.js.map +0 -1
  1280. package/dist/chunks/searchable-select-B6MUgCdo.js +0 -5412
  1281. package/dist/chunks/searchable-select-B6MUgCdo.js.map +0 -1
  1282. package/dist/chunks/searchable-select-Cp2JQ-ma.esm.js +0 -5396
  1283. package/dist/chunks/searchable-select-Cp2JQ-ma.esm.js.map +0 -1
  1284. package/dist/chunks/share-modal-BQz9DT8w.esm.js +0 -218
  1285. package/dist/chunks/share-modal-BQz9DT8w.esm.js.map +0 -1
  1286. package/dist/chunks/share-modal-DS7uWv8L.js +0 -217
  1287. package/dist/chunks/share-modal-DS7uWv8L.js.map +0 -1
  1288. package/dist/chunks/share-modal-enhanced-ClVTuNyl.esm.js +0 -270
  1289. package/dist/chunks/share-modal-enhanced-ClVTuNyl.esm.js.map +0 -1
  1290. package/dist/chunks/share-modal-enhanced-DDsOmNGE.js +0 -269
  1291. package/dist/chunks/share-modal-enhanced-DDsOmNGE.js.map +0 -1
  1292. package/dist/chunks/sidebar-DDWxJgOI.esm.js +0 -879
  1293. package/dist/chunks/sidebar-DDWxJgOI.esm.js.map +0 -1
  1294. package/dist/chunks/sidebar-DZUrBtkU.js +0 -878
  1295. package/dist/chunks/sidebar-DZUrBtkU.js.map +0 -1
  1296. package/dist/chunks/sidebarScreen-BVehiM72.esm.js +0 -202
  1297. package/dist/chunks/sidebarScreen-BVehiM72.esm.js.map +0 -1
  1298. package/dist/chunks/sidebarScreen-Dyasx_un.js +0 -201
  1299. package/dist/chunks/sidebarScreen-Dyasx_un.js.map +0 -1
  1300. package/dist/chunks/store-0k7BuH6N.esm.js +0 -100
  1301. package/dist/chunks/store-0k7BuH6N.esm.js.map +0 -1
  1302. package/dist/chunks/store-D0UGtNyn.js +0 -99
  1303. package/dist/chunks/store-D0UGtNyn.js.map +0 -1
  1304. package/dist/chunks/table-BFVmn9er.js +0 -184
  1305. package/dist/chunks/table-BFVmn9er.js.map +0 -1
  1306. package/dist/chunks/table-DZ4iT9yr.esm.js +0 -185
  1307. package/dist/chunks/table-DZ4iT9yr.esm.js.map +0 -1
  1308. package/dist/chunks/table-form-BweS8HY4.esm.js +0 -1537
  1309. package/dist/chunks/table-form-BweS8HY4.esm.js.map +0 -1
  1310. package/dist/chunks/table-form-C08FE3l-.js +0 -1536
  1311. package/dist/chunks/table-form-C08FE3l-.js.map +0 -1
  1312. package/dist/chunks/template-editor-router-D99QWgsY.esm.js +0 -9
  1313. package/dist/chunks/template-editor-router-D99QWgsY.esm.js.map +0 -1
  1314. package/dist/chunks/template-editor-router-DslCflw6.js +0 -8
  1315. package/dist/chunks/template-editor-router-DslCflw6.js.map +0 -1
  1316. package/dist/chunks/template-modal-7ED61IRQ.js +0 -768
  1317. package/dist/chunks/template-modal-7ED61IRQ.js.map +0 -1
  1318. package/dist/chunks/template-modal-Pc_7Ko4n.esm.js +0 -769
  1319. package/dist/chunks/template-modal-Pc_7Ko4n.esm.js.map +0 -1
  1320. package/dist/chunks/templates-Z4PvElMl.js +0 -272
  1321. package/dist/chunks/templates-Z4PvElMl.js.map +0 -1
  1322. package/dist/chunks/templates-qd8xCqe3.esm.js +0 -273
  1323. package/dist/chunks/templates-qd8xCqe3.esm.js.map +0 -1
  1324. package/dist/chunks/text-measurement-Blnt6jDd.esm.js +0 -252
  1325. package/dist/chunks/text-measurement-Blnt6jDd.esm.js.map +0 -1
  1326. package/dist/chunks/text-measurement-Cp_YwDdV.js +0 -251
  1327. package/dist/chunks/text-measurement-Cp_YwDdV.js.map +0 -1
  1328. package/dist/chunks/toggle-button-CHNfZ0px.esm.js +0 -55
  1329. package/dist/chunks/toggle-button-CHNfZ0px.esm.js.map +0 -1
  1330. package/dist/chunks/toggle-button-D60s8gEP.js +0 -54
  1331. package/dist/chunks/toggle-button-D60s8gEP.js.map +0 -1
  1332. package/dist/chunks/toggle-switch-BYq0pxMx.js +0 -80
  1333. package/dist/chunks/toggle-switch-BYq0pxMx.js.map +0 -1
  1334. package/dist/chunks/toggle-switch-C5eW7j13.esm.js +0 -81
  1335. package/dist/chunks/toggle-switch-C5eW7j13.esm.js.map +0 -1
  1336. package/dist/chunks/translations-BBu_7rQ3.esm.js +0 -128
  1337. package/dist/chunks/translations-BBu_7rQ3.esm.js.map +0 -1
  1338. package/dist/chunks/translations-DFI0dn0H.js +0 -127
  1339. package/dist/chunks/translations-DFI0dn0H.js.map +0 -1
  1340. package/dist/chunks/uom-field-wrapper-BAtgnuyo.js +0 -79
  1341. package/dist/chunks/uom-field-wrapper-BAtgnuyo.js.map +0 -1
  1342. package/dist/chunks/uom-field-wrapper-E4JPg4cL.esm.js +0 -80
  1343. package/dist/chunks/uom-field-wrapper-E4JPg4cL.esm.js.map +0 -1
  1344. package/dist/chunks/upload-excel-C8lWc-h6.esm.js +0 -361
  1345. package/dist/chunks/upload-excel-C8lWc-h6.esm.js.map +0 -1
  1346. package/dist/chunks/upload-excel-Y1ngDyko.js +0 -360
  1347. package/dist/chunks/upload-excel-Y1ngDyko.js.map +0 -1
  1348. package/dist/chunks/use-pages-CtwNsLRG.esm.js +0 -30
  1349. package/dist/chunks/use-pages-CtwNsLRG.esm.js.map +0 -1
  1350. package/dist/chunks/use-pages-DXVEXNG0.js +0 -29
  1351. package/dist/chunks/use-pages-DXVEXNG0.js.map +0 -1
  1352. package/dist/chunks/use-translations-C8VCxHUP.js +0 -68
  1353. package/dist/chunks/use-translations-C8VCxHUP.js.map +0 -1
  1354. package/dist/chunks/use-translations-GJRyMyMm.esm.js +0 -69
  1355. package/dist/chunks/use-translations-GJRyMyMm.esm.js.map +0 -1
  1356. package/dist/chunks/useAccountSetting-C3j-kzsn.esm.js +0 -174
  1357. package/dist/chunks/useAccountSetting-C3j-kzsn.esm.js.map +0 -1
  1358. package/dist/chunks/useAccountSetting-CVdUkHyh.js +0 -173
  1359. package/dist/chunks/useAccountSetting-CVdUkHyh.js.map +0 -1
  1360. package/dist/chunks/useCheckSkuAndName-DGwsN62c.js +0 -49
  1361. package/dist/chunks/useCheckSkuAndName-DGwsN62c.js.map +0 -1
  1362. package/dist/chunks/useCheckSkuAndName-DkIeUSOy.esm.js +0 -50
  1363. package/dist/chunks/useCheckSkuAndName-DkIeUSOy.esm.js.map +0 -1
  1364. package/dist/chunks/useCompanyCountryCode-D4uxUfQC.esm.js +0 -36
  1365. package/dist/chunks/useCompanyCountryCode-D4uxUfQC.esm.js.map +0 -1
  1366. package/dist/chunks/useCompanyCountryCode-FfjhJ8aJ.js +0 -35
  1367. package/dist/chunks/useCompanyCountryCode-FfjhJ8aJ.js.map +0 -1
  1368. package/dist/chunks/useDataFetcher-CPHhFBB1.js +0 -79
  1369. package/dist/chunks/useDataFetcher-CPHhFBB1.js.map +0 -1
  1370. package/dist/chunks/useDataFetcher-dHGm5XO0.esm.js +0 -80
  1371. package/dist/chunks/useDataFetcher-dHGm5XO0.esm.js.map +0 -1
  1372. package/dist/chunks/useLangauge-CSNpcfX6.js +0 -48
  1373. package/dist/chunks/useLangauge-CSNpcfX6.js.map +0 -1
  1374. package/dist/chunks/useLangauge-CXedllBc.esm.js +0 -49
  1375. package/dist/chunks/useLangauge-CXedllBc.esm.js.map +0 -1
  1376. package/dist/chunks/useReduxIntegration-BcngB5eN.js +0 -38
  1377. package/dist/chunks/useReduxIntegration-BcngB5eN.js.map +0 -1
  1378. package/dist/chunks/useReduxIntegration-BeFIVANA.esm.js +0 -39
  1379. package/dist/chunks/useReduxIntegration-BeFIVANA.esm.js.map +0 -1
  1380. package/dist/chunks/useSetDefaultConfig-B0T1TesA.js +0 -100
  1381. package/dist/chunks/useSetDefaultConfig-B0T1TesA.js.map +0 -1
  1382. package/dist/chunks/useSetDefaultConfig-BGhAQcVv.esm.js +0 -101
  1383. package/dist/chunks/useSetDefaultConfig-BGhAQcVv.esm.js.map +0 -1
  1384. package/dist/chunks/useUniquenessCheck-C39yEqX_.esm.js +0 -39
  1385. package/dist/chunks/useUniquenessCheck-C39yEqX_.esm.js.map +0 -1
  1386. package/dist/chunks/useUniquenessCheck-CHtl6HMF.js +0 -38
  1387. package/dist/chunks/useUniquenessCheck-CHtl6HMF.js.map +0 -1
  1388. package/dist/chunks/user-menu-BFS7gNsI.esm.js +0 -105
  1389. package/dist/chunks/user-menu-BFS7gNsI.esm.js.map +0 -1
  1390. package/dist/chunks/user-menu-BbMEP9w1.js +0 -104
  1391. package/dist/chunks/user-menu-BbMEP9w1.js.map +0 -1
  1392. package/dist/chunks/value-editor-CAfyA4_t.js +0 -136
  1393. package/dist/chunks/value-editor-CAfyA4_t.js.map +0 -1
  1394. package/dist/chunks/value-editor-D5xWqrQa.esm.js +0 -137
  1395. package/dist/chunks/value-editor-D5xWqrQa.esm.js.map +0 -1
@@ -0,0 +1,4617 @@
1
+ "use strict";
2
+ const dayjs = require("dayjs");
3
+ const constants_auth = require("../constants/auth/index.js");
4
+ const _ = require("lodash");
5
+ const api = require("./api-ae4HSNBp.js");
6
+ const notistack = require("notistack");
7
+ const utils_server = require("./index-BQEhOLUH.js");
8
+ const utils_formatText = require("../utils/format-text/index.js");
9
+ const dateFormat = require("./dateFormat-DruK2Qh9.js");
10
+ const utils_exportFilters = require("../utils/export-filters/index.js");
11
+ const parsePhoneNumberFromString = require("libphonenumber-js");
12
+ const moment = require("moment-timezone");
13
+ const api$1 = require("./api-BMtzCXmJ.js");
14
+ const utils_apiConfig = require("../utils/api-config/index.js");
15
+ const utils_constant = require("../utils/constant/index.js");
16
+ let baseUrl$2 = "";
17
+ let defaultHeaders$2 = {};
18
+ const _getV1WorkflowReferences = async (url, request) => {
19
+ const headers = {
20
+ ...defaultHeaders$2
21
+ };
22
+ if (request["x-token"] !== void 0) {
23
+ headers["x-token"] = request["x-token"];
24
+ delete request["x-token"];
25
+ }
26
+ if (request["x-timezone"] !== void 0) {
27
+ headers["x-timezone"] = request["x-timezone"];
28
+ delete request["x-timezone"];
29
+ }
30
+ const response = await fetch(`${url}/v1/workflow-references/`, {
31
+ headers
32
+ });
33
+ if (!response.ok) {
34
+ throw new Error(await response.text());
35
+ }
36
+ return await response.json();
37
+ };
38
+ const getV1WorkflowReferences = async (request) => {
39
+ return await _getV1WorkflowReferences(baseUrl$2, request);
40
+ };
41
+ let baseUrl$1 = "";
42
+ let defaultHeaders$1 = {};
43
+ function sanitizeUrl$1(url) {
44
+ if (url.endsWith("/")) {
45
+ return url.slice(0, -1);
46
+ } else {
47
+ return url;
48
+ }
49
+ }
50
+ const setBaseUrl$1 = (newUrl) => {
51
+ baseUrl$1 = sanitizeUrl$1(newUrl);
52
+ };
53
+ const _getV1DocumentMaster = async (url, request) => {
54
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
55
+ const searchParams = new URLSearchParams();
56
+ queryParameters.forEach((qp) => {
57
+ var _a;
58
+ if (request[qp]) {
59
+ if (Array.isArray(request[qp])) {
60
+ request[qp].forEach((p) => {
61
+ searchParams.append(qp, p);
62
+ });
63
+ } else {
64
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
65
+ }
66
+ }
67
+ delete request[qp];
68
+ });
69
+ const headers = {
70
+ ...defaultHeaders$1
71
+ };
72
+ if (request["x-token"] !== void 0) {
73
+ headers["x-token"] = request["x-token"];
74
+ delete request["x-token"];
75
+ }
76
+ if (request["x-timezone"] !== void 0) {
77
+ headers["x-timezone"] = request["x-timezone"];
78
+ delete request["x-timezone"];
79
+ }
80
+ const response = await fetch(`${url}/v1/document-master/?${searchParams.toString()}`, {
81
+ headers
82
+ });
83
+ if (!response.ok) {
84
+ throw new Error(await response.text());
85
+ }
86
+ return await response.json();
87
+ };
88
+ const getV1DocumentMaster = async (request) => {
89
+ return await _getV1DocumentMaster(baseUrl$1, request);
90
+ };
91
+ const _getV1CompanyCalendar = async (url, request) => {
92
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
93
+ const searchParams = new URLSearchParams();
94
+ queryParameters.forEach((qp) => {
95
+ var _a;
96
+ if (request[qp]) {
97
+ if (Array.isArray(request[qp])) {
98
+ request[qp].forEach((p) => {
99
+ searchParams.append(qp, p);
100
+ });
101
+ } else {
102
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
103
+ }
104
+ }
105
+ delete request[qp];
106
+ });
107
+ const headers = {
108
+ ...defaultHeaders$1
109
+ };
110
+ if (request["x-token"] !== void 0) {
111
+ headers["x-token"] = request["x-token"];
112
+ delete request["x-token"];
113
+ }
114
+ if (request["x-timezone"] !== void 0) {
115
+ headers["x-timezone"] = request["x-timezone"];
116
+ delete request["x-timezone"];
117
+ }
118
+ const response = await fetch(`${url}/v1/company-calendar/?${searchParams.toString()}`, {
119
+ headers
120
+ });
121
+ if (!response.ok) {
122
+ throw new Error(await response.text());
123
+ }
124
+ return await response.json();
125
+ };
126
+ const getV1CompanyCalendar = async (request) => {
127
+ return await _getV1CompanyCalendar(baseUrl$1, request);
128
+ };
129
+ const _getV1LoanMaster = async (url, request) => {
130
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
131
+ const searchParams = new URLSearchParams();
132
+ queryParameters.forEach((qp) => {
133
+ var _a;
134
+ if (request[qp]) {
135
+ if (Array.isArray(request[qp])) {
136
+ request[qp].forEach((p) => {
137
+ searchParams.append(qp, p);
138
+ });
139
+ } else {
140
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
141
+ }
142
+ }
143
+ delete request[qp];
144
+ });
145
+ const headers = {
146
+ ...defaultHeaders$1
147
+ };
148
+ if (request["x-token"] !== void 0) {
149
+ headers["x-token"] = request["x-token"];
150
+ delete request["x-token"];
151
+ }
152
+ if (request["x-timezone"] !== void 0) {
153
+ headers["x-timezone"] = request["x-timezone"];
154
+ delete request["x-timezone"];
155
+ }
156
+ const response = await fetch(`${url}/v1/loan-master/?${searchParams.toString()}`, {
157
+ headers
158
+ });
159
+ if (!response.ok) {
160
+ throw new Error(await response.text());
161
+ }
162
+ return await response.json();
163
+ };
164
+ const getV1LoanMaster = async (request) => {
165
+ return await _getV1LoanMaster(baseUrl$1, request);
166
+ };
167
+ const _getV1LeaveCategory = async (url, request) => {
168
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
169
+ const searchParams = new URLSearchParams();
170
+ queryParameters.forEach((qp) => {
171
+ var _a;
172
+ if (request[qp]) {
173
+ if (Array.isArray(request[qp])) {
174
+ request[qp].forEach((p) => {
175
+ searchParams.append(qp, p);
176
+ });
177
+ } else {
178
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
179
+ }
180
+ }
181
+ delete request[qp];
182
+ });
183
+ const headers = {
184
+ ...defaultHeaders$1
185
+ };
186
+ if (request["x-token"] !== void 0) {
187
+ headers["x-token"] = request["x-token"];
188
+ delete request["x-token"];
189
+ }
190
+ if (request["x-timezone"] !== void 0) {
191
+ headers["x-timezone"] = request["x-timezone"];
192
+ delete request["x-timezone"];
193
+ }
194
+ const response = await fetch(`${url}/v1/leave-category/?${searchParams.toString()}`, {
195
+ headers
196
+ });
197
+ if (!response.ok) {
198
+ throw new Error(await response.text());
199
+ }
200
+ return await response.json();
201
+ };
202
+ const getV1LeaveCategory = async (request) => {
203
+ return await _getV1LeaveCategory(baseUrl$1, request);
204
+ };
205
+ const _getV1AccrualType = async (url, request) => {
206
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
207
+ const searchParams = new URLSearchParams();
208
+ queryParameters.forEach((qp) => {
209
+ var _a;
210
+ if (request[qp]) {
211
+ if (Array.isArray(request[qp])) {
212
+ request[qp].forEach((p) => {
213
+ searchParams.append(qp, p);
214
+ });
215
+ } else {
216
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
217
+ }
218
+ }
219
+ delete request[qp];
220
+ });
221
+ const headers = {
222
+ ...defaultHeaders$1
223
+ };
224
+ if (request["x-token"] !== void 0) {
225
+ headers["x-token"] = request["x-token"];
226
+ delete request["x-token"];
227
+ }
228
+ if (request["x-timezone"] !== void 0) {
229
+ headers["x-timezone"] = request["x-timezone"];
230
+ delete request["x-timezone"];
231
+ }
232
+ const response = await fetch(`${url}/v1/accrual-type/?${searchParams.toString()}`, {
233
+ headers
234
+ });
235
+ if (!response.ok) {
236
+ throw new Error(await response.text());
237
+ }
238
+ return await response.json();
239
+ };
240
+ const getV1AccrualType = async (request) => {
241
+ return await _getV1AccrualType(baseUrl$1, request);
242
+ };
243
+ const _getV1AccrualMaster = async (url, request) => {
244
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
245
+ const searchParams = new URLSearchParams();
246
+ queryParameters.forEach((qp) => {
247
+ var _a;
248
+ if (request[qp]) {
249
+ if (Array.isArray(request[qp])) {
250
+ request[qp].forEach((p) => {
251
+ searchParams.append(qp, p);
252
+ });
253
+ } else {
254
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
255
+ }
256
+ }
257
+ delete request[qp];
258
+ });
259
+ const headers = {
260
+ ...defaultHeaders$1
261
+ };
262
+ if (request["x-token"] !== void 0) {
263
+ headers["x-token"] = request["x-token"];
264
+ delete request["x-token"];
265
+ }
266
+ if (request["x-timezone"] !== void 0) {
267
+ headers["x-timezone"] = request["x-timezone"];
268
+ delete request["x-timezone"];
269
+ }
270
+ const response = await fetch(`${url}/v1/accrual-master/?${searchParams.toString()}`, {
271
+ headers
272
+ });
273
+ if (!response.ok) {
274
+ throw new Error(await response.text());
275
+ }
276
+ return await response.json();
277
+ };
278
+ const getV1AccrualMaster = async (request) => {
279
+ return await _getV1AccrualMaster(baseUrl$1, request);
280
+ };
281
+ const _getV1LeavePolicyMaster = async (url, request) => {
282
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
283
+ const searchParams = new URLSearchParams();
284
+ queryParameters.forEach((qp) => {
285
+ var _a;
286
+ if (request[qp]) {
287
+ if (Array.isArray(request[qp])) {
288
+ request[qp].forEach((p) => {
289
+ searchParams.append(qp, p);
290
+ });
291
+ } else {
292
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
293
+ }
294
+ }
295
+ delete request[qp];
296
+ });
297
+ const headers = {
298
+ ...defaultHeaders$1
299
+ };
300
+ if (request["x-token"] !== void 0) {
301
+ headers["x-token"] = request["x-token"];
302
+ delete request["x-token"];
303
+ }
304
+ if (request["x-timezone"] !== void 0) {
305
+ headers["x-timezone"] = request["x-timezone"];
306
+ delete request["x-timezone"];
307
+ }
308
+ const response = await fetch(`${url}/v1/leave-policy-master/?${searchParams.toString()}`, {
309
+ headers
310
+ });
311
+ if (!response.ok) {
312
+ throw new Error(await response.text());
313
+ }
314
+ return await response.json();
315
+ };
316
+ const getV1LeavePolicyMaster = async (request) => {
317
+ return await _getV1LeavePolicyMaster(baseUrl$1, request);
318
+ };
319
+ const _getV1Grades = async (url, request) => {
320
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
321
+ const searchParams = new URLSearchParams();
322
+ queryParameters.forEach((qp) => {
323
+ var _a;
324
+ if (request[qp]) {
325
+ if (Array.isArray(request[qp])) {
326
+ request[qp].forEach((p) => {
327
+ searchParams.append(qp, p);
328
+ });
329
+ } else {
330
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
331
+ }
332
+ }
333
+ delete request[qp];
334
+ });
335
+ const headers = {
336
+ ...defaultHeaders$1
337
+ };
338
+ if (request["x-token"] !== void 0) {
339
+ headers["x-token"] = request["x-token"];
340
+ delete request["x-token"];
341
+ }
342
+ if (request["x-timezone"] !== void 0) {
343
+ headers["x-timezone"] = request["x-timezone"];
344
+ delete request["x-timezone"];
345
+ }
346
+ const response = await fetch(`${url}/v1/grades/?${searchParams.toString()}`, {
347
+ headers
348
+ });
349
+ if (!response.ok) {
350
+ throw new Error(await response.text());
351
+ }
352
+ return await response.json();
353
+ };
354
+ const getV1Grades = async (request) => {
355
+ return await _getV1Grades(baseUrl$1, request);
356
+ };
357
+ const _getV1Teams = async (url, request) => {
358
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
359
+ const searchParams = new URLSearchParams();
360
+ queryParameters.forEach((qp) => {
361
+ var _a;
362
+ if (request[qp]) {
363
+ if (Array.isArray(request[qp])) {
364
+ request[qp].forEach((p) => {
365
+ searchParams.append(qp, p);
366
+ });
367
+ } else {
368
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
369
+ }
370
+ }
371
+ delete request[qp];
372
+ });
373
+ const headers = {
374
+ ...defaultHeaders$1
375
+ };
376
+ if (request["x-token"] !== void 0) {
377
+ headers["x-token"] = request["x-token"];
378
+ delete request["x-token"];
379
+ }
380
+ if (request["x-timezone"] !== void 0) {
381
+ headers["x-timezone"] = request["x-timezone"];
382
+ delete request["x-timezone"];
383
+ }
384
+ const response = await fetch(`${url}/v1/teams/?${searchParams.toString()}`, {
385
+ headers
386
+ });
387
+ if (!response.ok) {
388
+ throw new Error(await response.text());
389
+ }
390
+ return await response.json();
391
+ };
392
+ const getV1Teams = async (request) => {
393
+ return await _getV1Teams(baseUrl$1, request);
394
+ };
395
+ const _getV1Skills = async (url, request) => {
396
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
397
+ const searchParams = new URLSearchParams();
398
+ queryParameters.forEach((qp) => {
399
+ var _a;
400
+ if (request[qp]) {
401
+ if (Array.isArray(request[qp])) {
402
+ request[qp].forEach((p) => {
403
+ searchParams.append(qp, p);
404
+ });
405
+ } else {
406
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
407
+ }
408
+ }
409
+ delete request[qp];
410
+ });
411
+ const headers = {
412
+ ...defaultHeaders$1
413
+ };
414
+ if (request["x-token"] !== void 0) {
415
+ headers["x-token"] = request["x-token"];
416
+ delete request["x-token"];
417
+ }
418
+ if (request["x-timezone"] !== void 0) {
419
+ headers["x-timezone"] = request["x-timezone"];
420
+ delete request["x-timezone"];
421
+ }
422
+ const response = await fetch(`${url}/v1/skills/?${searchParams.toString()}`, {
423
+ headers
424
+ });
425
+ if (!response.ok) {
426
+ throw new Error(await response.text());
427
+ }
428
+ return await response.json();
429
+ };
430
+ const getV1Skills = async (request) => {
431
+ return await _getV1Skills(baseUrl$1, request);
432
+ };
433
+ const _postV1Designation = async (url, request) => {
434
+ const headers = {
435
+ ...defaultHeaders$1,
436
+ "Content-type": "application/json; charset=utf-8"
437
+ };
438
+ if (request["x-token"] !== void 0) {
439
+ headers["x-token"] = request["x-token"];
440
+ delete request["x-token"];
441
+ }
442
+ if (request["x-timezone"] !== void 0) {
443
+ headers["x-timezone"] = request["x-timezone"];
444
+ delete request["x-timezone"];
445
+ }
446
+ const response = await fetch(`${url}/v1/designation/`, {
447
+ method: "POST",
448
+ body: JSON.stringify(request),
449
+ headers
450
+ });
451
+ if (!response.ok) {
452
+ throw new Error(await response.text());
453
+ }
454
+ return await response.json();
455
+ };
456
+ const postV1Designation = async (request) => {
457
+ return await _postV1Designation(baseUrl$1, request);
458
+ };
459
+ const _getV1Designation = async (url, request) => {
460
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
461
+ const searchParams = new URLSearchParams();
462
+ queryParameters.forEach((qp) => {
463
+ var _a;
464
+ if (request[qp]) {
465
+ if (Array.isArray(request[qp])) {
466
+ request[qp].forEach((p) => {
467
+ searchParams.append(qp, p);
468
+ });
469
+ } else {
470
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
471
+ }
472
+ }
473
+ delete request[qp];
474
+ });
475
+ const headers = {
476
+ ...defaultHeaders$1
477
+ };
478
+ if (request["x-token"] !== void 0) {
479
+ headers["x-token"] = request["x-token"];
480
+ delete request["x-token"];
481
+ }
482
+ if (request["x-timezone"] !== void 0) {
483
+ headers["x-timezone"] = request["x-timezone"];
484
+ delete request["x-timezone"];
485
+ }
486
+ const response = await fetch(`${url}/v1/designation/?${searchParams.toString()}`, {
487
+ headers
488
+ });
489
+ if (!response.ok) {
490
+ throw new Error(await response.text());
491
+ }
492
+ return await response.json();
493
+ };
494
+ const getV1Designation = async (request) => {
495
+ return await _getV1Designation(baseUrl$1, request);
496
+ };
497
+ const _postV1Departments = async (url, request) => {
498
+ const headers = {
499
+ ...defaultHeaders$1,
500
+ "Content-type": "application/json; charset=utf-8"
501
+ };
502
+ if (request["x-token"] !== void 0) {
503
+ headers["x-token"] = request["x-token"];
504
+ delete request["x-token"];
505
+ }
506
+ if (request["x-timezone"] !== void 0) {
507
+ headers["x-timezone"] = request["x-timezone"];
508
+ delete request["x-timezone"];
509
+ }
510
+ const response = await fetch(`${url}/v1/departments/`, {
511
+ method: "POST",
512
+ body: JSON.stringify(request),
513
+ headers
514
+ });
515
+ if (!response.ok) {
516
+ throw new Error(await response.text());
517
+ }
518
+ return await response.json();
519
+ };
520
+ const postV1Departments = async (request) => {
521
+ return await _postV1Departments(baseUrl$1, request);
522
+ };
523
+ const _getV1DepartmentsId = async (url, request) => {
524
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
525
+ const searchParams = new URLSearchParams();
526
+ queryParameters.forEach((qp) => {
527
+ var _a;
528
+ if (request[qp]) {
529
+ if (Array.isArray(request[qp])) {
530
+ request[qp].forEach((p) => {
531
+ searchParams.append(qp, p);
532
+ });
533
+ } else {
534
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
535
+ }
536
+ }
537
+ delete request[qp];
538
+ });
539
+ const headers = {
540
+ ...defaultHeaders$1
541
+ };
542
+ if (request["x-token"] !== void 0) {
543
+ headers["x-token"] = request["x-token"];
544
+ delete request["x-token"];
545
+ }
546
+ if (request["x-timezone"] !== void 0) {
547
+ headers["x-timezone"] = request["x-timezone"];
548
+ delete request["x-timezone"];
549
+ }
550
+ const response = await fetch(`${url}/v1/departments/${request["id"]}?${searchParams.toString()}`, {
551
+ headers
552
+ });
553
+ if (!response.ok) {
554
+ throw new Error(await response.text());
555
+ }
556
+ return await response.json();
557
+ };
558
+ const getV1DepartmentsId = async (request) => {
559
+ return await _getV1DepartmentsId(baseUrl$1, request);
560
+ };
561
+ const _postV1DepartmentsTeams = async (url, request) => {
562
+ const headers = {
563
+ ...defaultHeaders$1,
564
+ "Content-type": "application/json; charset=utf-8"
565
+ };
566
+ if (request["x-token"] !== void 0) {
567
+ headers["x-token"] = request["x-token"];
568
+ delete request["x-token"];
569
+ }
570
+ if (request["x-timezone"] !== void 0) {
571
+ headers["x-timezone"] = request["x-timezone"];
572
+ delete request["x-timezone"];
573
+ }
574
+ const response = await fetch(`${url}/v1/departments/teams`, {
575
+ method: "POST",
576
+ body: JSON.stringify(request),
577
+ headers
578
+ });
579
+ if (!response.ok) {
580
+ throw new Error(await response.text());
581
+ }
582
+ return await response.json();
583
+ };
584
+ const postV1DepartmentsTeams = async (request) => {
585
+ return await _postV1DepartmentsTeams(baseUrl$1, request);
586
+ };
587
+ const _getV1Timezones = async (url, request) => {
588
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
589
+ const searchParams = new URLSearchParams();
590
+ queryParameters.forEach((qp) => {
591
+ var _a;
592
+ if (request[qp]) {
593
+ if (Array.isArray(request[qp])) {
594
+ request[qp].forEach((p) => {
595
+ searchParams.append(qp, p);
596
+ });
597
+ } else {
598
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
599
+ }
600
+ }
601
+ delete request[qp];
602
+ });
603
+ const headers = {
604
+ ...defaultHeaders$1
605
+ };
606
+ if (request["x-token"] !== void 0) {
607
+ headers["x-token"] = request["x-token"];
608
+ delete request["x-token"];
609
+ }
610
+ if (request["x-timezone"] !== void 0) {
611
+ headers["x-timezone"] = request["x-timezone"];
612
+ delete request["x-timezone"];
613
+ }
614
+ const response = await fetch(`${url}/v1/timezones/?${searchParams.toString()}`, {
615
+ headers
616
+ });
617
+ if (!response.ok) {
618
+ throw new Error(await response.text());
619
+ }
620
+ return await response.json();
621
+ };
622
+ const getV1Timezones = async (request) => {
623
+ return await _getV1Timezones(baseUrl$1, request);
624
+ };
625
+ const _getV1SalaryStructureMaster = async (url, request) => {
626
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
627
+ const searchParams = new URLSearchParams();
628
+ queryParameters.forEach((qp) => {
629
+ var _a;
630
+ if (request[qp]) {
631
+ if (Array.isArray(request[qp])) {
632
+ request[qp].forEach((p) => {
633
+ searchParams.append(qp, p);
634
+ });
635
+ } else {
636
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
637
+ }
638
+ }
639
+ delete request[qp];
640
+ });
641
+ const headers = {
642
+ ...defaultHeaders$1
643
+ };
644
+ if (request["x-token"] !== void 0) {
645
+ headers["x-token"] = request["x-token"];
646
+ delete request["x-token"];
647
+ }
648
+ if (request["x-timezone"] !== void 0) {
649
+ headers["x-timezone"] = request["x-timezone"];
650
+ delete request["x-timezone"];
651
+ }
652
+ const response = await fetch(`${url}/v1/salary-structure-master/?${searchParams.toString()}`, {
653
+ headers
654
+ });
655
+ if (!response.ok) {
656
+ throw new Error(await response.text());
657
+ }
658
+ return await response.json();
659
+ };
660
+ const getV1SalaryStructureMaster = async (request) => {
661
+ return await _getV1SalaryStructureMaster(baseUrl$1, request);
662
+ };
663
+ const _getV1Employee = async (url, request) => {
664
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
665
+ const searchParams = new URLSearchParams();
666
+ queryParameters.forEach((qp) => {
667
+ var _a;
668
+ if (request[qp]) {
669
+ if (Array.isArray(request[qp])) {
670
+ request[qp].forEach((p) => {
671
+ searchParams.append(qp, p);
672
+ });
673
+ } else {
674
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
675
+ }
676
+ }
677
+ delete request[qp];
678
+ });
679
+ const headers = {
680
+ ...defaultHeaders$1
681
+ };
682
+ if (request["x-token"] !== void 0) {
683
+ headers["x-token"] = request["x-token"];
684
+ delete request["x-token"];
685
+ }
686
+ if (request["x-timezone"] !== void 0) {
687
+ headers["x-timezone"] = request["x-timezone"];
688
+ delete request["x-timezone"];
689
+ }
690
+ const response = await fetch(`${url}/v1/employee/?${searchParams.toString()}`, {
691
+ headers
692
+ });
693
+ if (!response.ok) {
694
+ throw new Error(await response.text());
695
+ }
696
+ return await response.json();
697
+ };
698
+ const getV1Employee = async (request) => {
699
+ return await _getV1Employee(baseUrl$1, request);
700
+ };
701
+ const _getV1EmployeeContracts = async (url, request) => {
702
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
703
+ const searchParams = new URLSearchParams();
704
+ queryParameters.forEach((qp) => {
705
+ var _a;
706
+ if (request[qp]) {
707
+ if (Array.isArray(request[qp])) {
708
+ request[qp].forEach((p) => {
709
+ searchParams.append(qp, p);
710
+ });
711
+ } else {
712
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
713
+ }
714
+ }
715
+ delete request[qp];
716
+ });
717
+ const headers = {
718
+ ...defaultHeaders$1
719
+ };
720
+ if (request["x-token"] !== void 0) {
721
+ headers["x-token"] = request["x-token"];
722
+ delete request["x-token"];
723
+ }
724
+ if (request["x-timezone"] !== void 0) {
725
+ headers["x-timezone"] = request["x-timezone"];
726
+ delete request["x-timezone"];
727
+ }
728
+ const response = await fetch(`${url}/v1/employee-contracts/?${searchParams.toString()}`, {
729
+ headers
730
+ });
731
+ if (!response.ok) {
732
+ throw new Error(await response.text());
733
+ }
734
+ return await response.json();
735
+ };
736
+ const getV1EmployeeContracts = async (request) => {
737
+ return await _getV1EmployeeContracts(baseUrl$1, request);
738
+ };
739
+ const _getV1HireRequests = async (url, request) => {
740
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
741
+ const searchParams = new URLSearchParams();
742
+ queryParameters.forEach((qp) => {
743
+ var _a;
744
+ if (request[qp]) {
745
+ if (Array.isArray(request[qp])) {
746
+ request[qp].forEach((p) => {
747
+ searchParams.append(qp, p);
748
+ });
749
+ } else {
750
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
751
+ }
752
+ }
753
+ delete request[qp];
754
+ });
755
+ const headers = {
756
+ ...defaultHeaders$1
757
+ };
758
+ if (request["x-token"] !== void 0) {
759
+ headers["x-token"] = request["x-token"];
760
+ delete request["x-token"];
761
+ }
762
+ if (request["x-timezone"] !== void 0) {
763
+ headers["x-timezone"] = request["x-timezone"];
764
+ delete request["x-timezone"];
765
+ }
766
+ const response = await fetch(`${url}/v1/hire-requests/?${searchParams.toString()}`, {
767
+ headers
768
+ });
769
+ if (!response.ok) {
770
+ throw new Error(await response.text());
771
+ }
772
+ return await response.json();
773
+ };
774
+ const getV1HireRequests = async (request) => {
775
+ return await _getV1HireRequests(baseUrl$1, request);
776
+ };
777
+ const _getV1JobPosts = async (url, request) => {
778
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
779
+ const searchParams = new URLSearchParams();
780
+ queryParameters.forEach((qp) => {
781
+ var _a;
782
+ if (request[qp]) {
783
+ if (Array.isArray(request[qp])) {
784
+ request[qp].forEach((p) => {
785
+ searchParams.append(qp, p);
786
+ });
787
+ } else {
788
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
789
+ }
790
+ }
791
+ delete request[qp];
792
+ });
793
+ const headers = {
794
+ ...defaultHeaders$1
795
+ };
796
+ if (request["x-token"] !== void 0) {
797
+ headers["x-token"] = request["x-token"];
798
+ delete request["x-token"];
799
+ }
800
+ if (request["x-timezone"] !== void 0) {
801
+ headers["x-timezone"] = request["x-timezone"];
802
+ delete request["x-timezone"];
803
+ }
804
+ const response = await fetch(`${url}/v1/job-posts/?${searchParams.toString()}`, {
805
+ headers
806
+ });
807
+ if (!response.ok) {
808
+ throw new Error(await response.text());
809
+ }
810
+ return await response.json();
811
+ };
812
+ const getV1JobPosts = async (request) => {
813
+ return await _getV1JobPosts(baseUrl$1, request);
814
+ };
815
+ const _getV1MyAssets = async (url, request) => {
816
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
817
+ const searchParams = new URLSearchParams();
818
+ queryParameters.forEach((qp) => {
819
+ var _a;
820
+ if (request[qp]) {
821
+ if (Array.isArray(request[qp])) {
822
+ request[qp].forEach((p) => {
823
+ searchParams.append(qp, p);
824
+ });
825
+ } else {
826
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
827
+ }
828
+ }
829
+ delete request[qp];
830
+ });
831
+ const headers = {
832
+ ...defaultHeaders$1
833
+ };
834
+ if (request["x-token"] !== void 0) {
835
+ headers["x-token"] = request["x-token"];
836
+ delete request["x-token"];
837
+ }
838
+ if (request["x-timezone"] !== void 0) {
839
+ headers["x-timezone"] = request["x-timezone"];
840
+ delete request["x-timezone"];
841
+ }
842
+ const response = await fetch(`${url}/v1/my-assets/?${searchParams.toString()}`, {
843
+ headers
844
+ });
845
+ if (!response.ok) {
846
+ throw new Error(await response.text());
847
+ }
848
+ return await response.json();
849
+ };
850
+ const getV1MyAssets = async (request) => {
851
+ return await _getV1MyAssets(baseUrl$1, request);
852
+ };
853
+ let baseUrl = "";
854
+ let defaultHeaders = {};
855
+ function sanitizeUrl(url) {
856
+ if (url.endsWith("/")) {
857
+ return url.slice(0, -1);
858
+ } else {
859
+ return url;
860
+ }
861
+ }
862
+ const setBaseUrl = (newUrl) => {
863
+ baseUrl = sanitizeUrl(newUrl);
864
+ };
865
+ async function _getV1Projects(url, request) {
866
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
867
+ const searchParams = new URLSearchParams();
868
+ queryParameters.forEach((qp) => {
869
+ var _a;
870
+ if (request[qp]) {
871
+ if (Array.isArray(request[qp])) {
872
+ request[qp].forEach((p) => {
873
+ searchParams.append(qp, p);
874
+ });
875
+ } else {
876
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
877
+ }
878
+ }
879
+ delete request[qp];
880
+ });
881
+ const headers = {
882
+ ...defaultHeaders
883
+ };
884
+ if (request["x-token"] !== void 0) {
885
+ headers["x-token"] = request["x-token"];
886
+ delete request["x-token"];
887
+ }
888
+ if (request["x-timezone"] !== void 0) {
889
+ headers["x-timezone"] = request["x-timezone"];
890
+ delete request["x-timezone"];
891
+ }
892
+ const response = await fetch(`${url}/v1/projects/?${searchParams.toString()}`, {
893
+ headers
894
+ });
895
+ if (!response.ok) {
896
+ throw new Error(await response.text());
897
+ }
898
+ return await response.json();
899
+ }
900
+ const getV1Projects = async (request) => {
901
+ return await _getV1Projects(baseUrl, request);
902
+ };
903
+ async function _getV1Tasks(url, request) {
904
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
905
+ const searchParams = new URLSearchParams();
906
+ queryParameters.forEach((qp) => {
907
+ var _a;
908
+ if (request[qp]) {
909
+ if (Array.isArray(request[qp])) {
910
+ request[qp].forEach((p) => {
911
+ searchParams.append(qp, p);
912
+ });
913
+ } else {
914
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
915
+ }
916
+ }
917
+ delete request[qp];
918
+ });
919
+ const headers = {
920
+ ...defaultHeaders
921
+ };
922
+ if (request["x-token"] !== void 0) {
923
+ headers["x-token"] = request["x-token"];
924
+ delete request["x-token"];
925
+ }
926
+ if (request["x-timezone"] !== void 0) {
927
+ headers["x-timezone"] = request["x-timezone"];
928
+ delete request["x-timezone"];
929
+ }
930
+ const response = await fetch(`${url}/v1/tasks/?${searchParams.toString()}`, {
931
+ headers
932
+ });
933
+ if (!response.ok) {
934
+ throw new Error(await response.text());
935
+ }
936
+ return await response.json();
937
+ }
938
+ const getV1Tasks = async (request) => {
939
+ return await _getV1Tasks(baseUrl, request);
940
+ };
941
+ async function _getV1CostCodes(url, request) {
942
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
943
+ const searchParams = new URLSearchParams();
944
+ queryParameters.forEach((qp) => {
945
+ var _a;
946
+ if (request[qp]) {
947
+ if (Array.isArray(request[qp])) {
948
+ request[qp].forEach((p) => {
949
+ searchParams.append(qp, p);
950
+ });
951
+ } else {
952
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
953
+ }
954
+ }
955
+ delete request[qp];
956
+ });
957
+ const headers = {
958
+ ...defaultHeaders
959
+ };
960
+ if (request["x-token"] !== void 0) {
961
+ headers["x-token"] = request["x-token"];
962
+ delete request["x-token"];
963
+ }
964
+ if (request["x-timezone"] !== void 0) {
965
+ headers["x-timezone"] = request["x-timezone"];
966
+ delete request["x-timezone"];
967
+ }
968
+ const response = await fetch(`${url}/v1/cost-codes/?${searchParams.toString()}`, {
969
+ headers
970
+ });
971
+ if (!response.ok) {
972
+ throw new Error(await response.text());
973
+ }
974
+ return await response.json();
975
+ }
976
+ const getV1CostCodes = async (request) => {
977
+ return await _getV1CostCodes(baseUrl, request);
978
+ };
979
+ async function _getV1CostElements(url, request) {
980
+ const queryParameters = ["skip", "limit", "order", "filters", "search", "select"];
981
+ const searchParams = new URLSearchParams();
982
+ queryParameters.forEach((qp) => {
983
+ var _a;
984
+ if (request[qp]) {
985
+ if (Array.isArray(request[qp])) {
986
+ request[qp].forEach((p) => {
987
+ searchParams.append(qp, p);
988
+ });
989
+ } else {
990
+ searchParams.append(qp, ((_a = request[qp]) == null ? void 0 : _a.toString()) || "");
991
+ }
992
+ }
993
+ delete request[qp];
994
+ });
995
+ const headers = {
996
+ ...defaultHeaders
997
+ };
998
+ if (request["x-token"] !== void 0) {
999
+ headers["x-token"] = request["x-token"];
1000
+ delete request["x-token"];
1001
+ }
1002
+ if (request["x-timezone"] !== void 0) {
1003
+ headers["x-timezone"] = request["x-timezone"];
1004
+ delete request["x-timezone"];
1005
+ }
1006
+ const response = await fetch(`${url}/v1/cost-elements/?${searchParams.toString()}`, {
1007
+ headers
1008
+ });
1009
+ if (!response.ok) {
1010
+ throw new Error(await response.text());
1011
+ }
1012
+ return await response.json();
1013
+ }
1014
+ const getV1CostElements = async (request) => {
1015
+ return await _getV1CostElements(baseUrl, request);
1016
+ };
1017
+ function initializeApiBaseUrls() {
1018
+ if (!utils_apiConfig.isApiConfigInitialized()) {
1019
+ console.warn("API configuration not initialized yet. Base URLs will be set when configuration is available.");
1020
+ return;
1021
+ }
1022
+ const config = utils_apiConfig.getApiConfig();
1023
+ const baseUrl2 = config.backendBaseUrl;
1024
+ utils_server.setBaseUrl(`${baseUrl2}/rbac`);
1025
+ api.setBaseUrl$1(`${baseUrl2}/inventory`);
1026
+ api.setBaseUrl(`${baseUrl2}/accounting`);
1027
+ api.setBaseUrl$2(`${baseUrl2}/sales`);
1028
+ setBaseUrl$1(`${baseUrl2}/hrms`);
1029
+ api$1.setBaseUrl(`${baseUrl2}/system-feature`);
1030
+ utils_server.setBaseUrl$1(`${baseUrl2}/document`);
1031
+ api.setBaseUrl$3(`${baseUrl2}/rental`);
1032
+ api.setBaseUrl$4(`${baseUrl2}/manufacturing`);
1033
+ api.setBaseUrl$5(`${baseUrl2}/purchase`);
1034
+ setBaseUrl(`${baseUrl2}/pms`);
1035
+ api.setAiFeatureBaseUrl(`${baseUrl2}/ai-feature`);
1036
+ }
1037
+ utils_apiConfig.onApiConfigReady((config) => {
1038
+ const baseUrl2 = config.backendBaseUrl;
1039
+ utils_server.setBaseUrl(`${baseUrl2}/rbac`);
1040
+ api.setBaseUrl$1(`${baseUrl2}/inventory`);
1041
+ api.setBaseUrl(`${baseUrl2}/accounting`);
1042
+ api.setBaseUrl$2(`${baseUrl2}/sales`);
1043
+ setBaseUrl$1(`${baseUrl2}/hrms`);
1044
+ api$1.setBaseUrl(`${baseUrl2}/system-feature`);
1045
+ utils_server.setBaseUrl$1(`${baseUrl2}/document`);
1046
+ api.setBaseUrl$3(`${baseUrl2}/rental`);
1047
+ api.setBaseUrl$4(`${baseUrl2}/manufacturing`);
1048
+ api.setBaseUrl$5(`${baseUrl2}/purchase`);
1049
+ setBaseUrl(`${baseUrl2}/pms`);
1050
+ api.setAiFeatureBaseUrl(`${baseUrl2}/ai-feature`);
1051
+ });
1052
+ const createColumns = (defaultColumn = [], select = []) => {
1053
+ const selectArr = Array.isArray(select) ? select : typeof select === "string" && select.trim().length > 0 ? select.split(",").map((s) => s.trim()).filter(Boolean) : [];
1054
+ const columns = [.../* @__PURE__ */ new Set([...defaultColumn, ...selectArr])];
1055
+ if (columns.length == 0) return "";
1056
+ return `[${columns.join(",")}]`;
1057
+ };
1058
+ function combineFilters(defaultFilter, newFilter) {
1059
+ let updatedQuery = "";
1060
+ const baseFilters = defaultFilter && typeof defaultFilter === "object" ? defaultFilter : {};
1061
+ const filters = { ...baseFilters, ...newFilter || {} };
1062
+ if (Object.keys(filters).length === 0) {
1063
+ return updatedQuery ? `(${updatedQuery})` : "";
1064
+ }
1065
+ Object.keys(filters).forEach(
1066
+ (key) => updatedQuery = `${updatedQuery}${key}=${filters[key]}`
1067
+ );
1068
+ return updatedQuery ? `(${updatedQuery})` : "";
1069
+ }
1070
+ const getOptions = async (apiFunc, filters, dataKey, labelKey, defaultColumn, defaultFilter = "", valueKey = "id") => {
1071
+ var _a;
1072
+ const customeFilter = {
1073
+ ...filters,
1074
+ select: createColumns(defaultColumn, filters.select),
1075
+ filters: combineFilters(defaultFilter, filters.filters),
1076
+ order: (filters == null ? void 0 : filters.order) || `id:-1`
1077
+ };
1078
+ const response = await apiFunc({
1079
+ ...customeFilter,
1080
+ ...getToken()
1081
+ });
1082
+ const resolveListData = (resp, key) => {
1083
+ var _a2;
1084
+ if (key) return (_a2 = resp == null ? void 0 : resp.data) == null ? void 0 : _a2[key];
1085
+ if (Array.isArray(resp == null ? void 0 : resp.data)) return resp.data;
1086
+ if ((resp == null ? void 0 : resp.data) && typeof resp.data === "object") {
1087
+ const values = Object.values(resp.data);
1088
+ const firstArray = values.find((v) => Array.isArray(v));
1089
+ if (Array.isArray(firstArray)) return firstArray;
1090
+ if (values.length && values.every((v) => v && typeof v === "object")) {
1091
+ return values;
1092
+ }
1093
+ }
1094
+ return [];
1095
+ };
1096
+ const listData = resolveListData(response, dataKey);
1097
+ if (!dataKey && Array.isArray(listData)) {
1098
+ return {
1099
+ data: (listData == null ? void 0 : listData.map((item) => ({
1100
+ ...item,
1101
+ label: labelKey instanceof Function ? labelKey(item) : _.get(item, labelKey),
1102
+ value: _.get(item, valueKey)
1103
+ }))) || [],
1104
+ pagination: response == null ? void 0 : response.pagination
1105
+ };
1106
+ } else {
1107
+ return {
1108
+ data: ((_a = Array.isArray(listData) ? listData : []) == null ? void 0 : _a.map((item) => ({
1109
+ ...item,
1110
+ label: labelKey instanceof Function ? labelKey(item) : _.get(item, labelKey),
1111
+ value: _.get(item, valueKey)
1112
+ }))) || [],
1113
+ pagination: response == null ? void 0 : response.pagination
1114
+ };
1115
+ }
1116
+ };
1117
+ const apiConfigurations = {
1118
+ company: {
1119
+ name: "companies/fetch",
1120
+ apiFunc: utils_server.getV1Company,
1121
+ dataKey: "company",
1122
+ labelKey: "company_name",
1123
+ defaultColumn: ["id", "company_name"],
1124
+ defaultFilter: { "is_active.eq": 1 }
1125
+ },
1126
+ items: {
1127
+ name: "items/fetch",
1128
+ apiFunc: api.getV1InventoryItems,
1129
+ dataKey: "inventoryItemsList",
1130
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1131
+ defaultColumn: [
1132
+ "id",
1133
+ "name",
1134
+ "unit_of_measurement",
1135
+ "default_tax_id",
1136
+ "purchase_tax_id",
1137
+ "sales_tax_id",
1138
+ "sales_price",
1139
+ "sales_description",
1140
+ "total_available_quantity",
1141
+ "total_reserved_quantity",
1142
+ "purchase_price",
1143
+ "purchase_description",
1144
+ "cost",
1145
+ "total_on_hand_quantity",
1146
+ "purchase_unit",
1147
+ "sales_unit",
1148
+ "consumption_unit",
1149
+ "stock_unit",
1150
+ "location_wise_quantity",
1151
+ "sku"
1152
+ ],
1153
+ defaultFilter: { "status.eq": 1, "&(is_variant.eq": 1, "|type.eq": "package)" }
1154
+ },
1155
+ notPackageItems: {
1156
+ name: "items/fetch",
1157
+ apiFunc: api.getV1InventoryItems,
1158
+ dataKey: "inventoryItemsList",
1159
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1160
+ defaultColumn: [
1161
+ "id",
1162
+ "name",
1163
+ "unit_of_measurement",
1164
+ "default_tax_id",
1165
+ "sales_price",
1166
+ "sales_description",
1167
+ "total_available_quantity",
1168
+ "total_reserved_quantity",
1169
+ "purchase_price",
1170
+ "purchase_description",
1171
+ "cost",
1172
+ "total_on_hand_quantity",
1173
+ "purchase_unit",
1174
+ "sales_unit",
1175
+ "consumption_unit",
1176
+ "stock_unit",
1177
+ "sku"
1178
+ ],
1179
+ defaultFilter: { "status.eq": 1, "&(is_variant.eq": 1, "&type.ne": "package)" }
1180
+ },
1181
+ rentalItems: {
1182
+ name: "items/fetch",
1183
+ apiFunc: api.getV1InventoryFixedAssetItems,
1184
+ dataKey: "inventoryFixedAssetItems",
1185
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1186
+ defaultColumn: [
1187
+ "id",
1188
+ "name",
1189
+ "unit_of_measurement",
1190
+ "default_tax_id",
1191
+ "sales_tax_id",
1192
+ "purchase_tax_id",
1193
+ "sales_price",
1194
+ "sales_description",
1195
+ "total_available_quantity",
1196
+ "total_reserved_quantity",
1197
+ "purchase_price",
1198
+ "purchase_description",
1199
+ "cost",
1200
+ "rental_replacement_cost",
1201
+ "rental_description",
1202
+ "total_on_hand_quantity",
1203
+ "purchase_unit",
1204
+ "sales_unit",
1205
+ "consumption_unit",
1206
+ "stock_unit",
1207
+ "sku"
1208
+ ],
1209
+ defaultFilter: {
1210
+ "status.eq": 1,
1211
+ "&is_variant.eq": 1,
1212
+ "&is_rental.eq": 1
1213
+ }
1214
+ },
1215
+ salesItems: {
1216
+ name: "items/fetch",
1217
+ apiFunc: api.getV1InventoryItems,
1218
+ dataKey: "inventoryItemsList",
1219
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1220
+ defaultColumn: [
1221
+ "id",
1222
+ "name",
1223
+ "sku",
1224
+ "brand_data",
1225
+ "unit_of_measurement",
1226
+ "default_tax_id",
1227
+ "sales_tax_id",
1228
+ "purchase_tax_id",
1229
+ "sales_price",
1230
+ "sales_description",
1231
+ "total_available_quantity",
1232
+ "total_reserved_quantity",
1233
+ "purchase_price",
1234
+ "purchase_description",
1235
+ "cost",
1236
+ "sales_replacement_cost",
1237
+ "total_on_hand_quantity",
1238
+ "purchase_unit",
1239
+ "sales_unit",
1240
+ "consumption_unit",
1241
+ "stock_unit"
1242
+ ],
1243
+ defaultFilter: {
1244
+ "status.eq": 1,
1245
+ "&(is_variant.eq": 1,
1246
+ "|type.in": "package,inventory-fixed-asset)",
1247
+ "&is_rental.eq": 0
1248
+ }
1249
+ },
1250
+ reportItems: {
1251
+ name: "items/fetch",
1252
+ apiFunc: api.getV1InventoryItems,
1253
+ dataKey: "inventoryItemsList",
1254
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1255
+ defaultColumn: [
1256
+ "id",
1257
+ "name",
1258
+ "sku"
1259
+ ],
1260
+ defaultFilter: { "&is_variant.eq": 1 }
1261
+ },
1262
+ inventoryItems: {
1263
+ name: "inventory-items/fetch",
1264
+ apiFunc: api.getV1InventoryItems,
1265
+ dataKey: "inventoryItemsList",
1266
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1267
+ defaultColumn: [
1268
+ "id",
1269
+ "name",
1270
+ "type",
1271
+ "unit_of_measurement",
1272
+ "default_tax_id",
1273
+ "sales_tax_id",
1274
+ "purchase_tax_id",
1275
+ "sales_price",
1276
+ "sales_description",
1277
+ "total_available_quantity",
1278
+ "total_reserved_quantity",
1279
+ "purchase_price",
1280
+ "purchase_description",
1281
+ "cost",
1282
+ "is_landed_cost",
1283
+ "total_on_hand_quantity",
1284
+ "purchase_unit",
1285
+ "sales_unit",
1286
+ "consumption_unit",
1287
+ "stock_unit",
1288
+ "sku"
1289
+ ],
1290
+ defaultFilter: { "status.eq": 1 }
1291
+ },
1292
+ fixedAssetItems: {
1293
+ name: "fixed-asset-items/fetch",
1294
+ apiFunc: api.getV1InventoryFixedAssetItems,
1295
+ dataKey: "inventoryItemsList",
1296
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1297
+ defaultColumn: [
1298
+ "id",
1299
+ "name",
1300
+ "type",
1301
+ "unit_of_measurement",
1302
+ "default_tax_id",
1303
+ "sales_tax_id",
1304
+ "purchase_tax_id",
1305
+ "sales_price",
1306
+ "sales_description",
1307
+ "total_available_quantity",
1308
+ "total_reserved_quantity",
1309
+ "purchase_price",
1310
+ "purchase_description",
1311
+ "cost",
1312
+ "is_landed_cost",
1313
+ "total_on_hand_quantity",
1314
+ "purchase_unit",
1315
+ "sales_unit",
1316
+ "consumption_unit",
1317
+ "stock_unit",
1318
+ "sku"
1319
+ ],
1320
+ defaultFilter: { "status.eq": 1, "&type.eq": "inventory-fixed-asset" }
1321
+ },
1322
+ currency: {
1323
+ name: "currency/fetch",
1324
+ apiFunc: api.getV1Currency,
1325
+ dataKey: "currencies",
1326
+ labelKey: "currency_name",
1327
+ defaultColumn: ["id", "currency_name", "symbol", "number_format"],
1328
+ // defaultFilter: null,
1329
+ defaultFilter: { "status.eq": 1 }
1330
+ },
1331
+ licenseList: {
1332
+ name: "license-list/fetch",
1333
+ apiFunc: api.getV1EkycLicenseType,
1334
+ dataKey: "ekycLicense",
1335
+ labelKey: "name",
1336
+ defaultColumn: ["id", "name"],
1337
+ defaultFilter: { "status.eq": 1 }
1338
+ },
1339
+ nationality: {
1340
+ name: "nationality/fetch",
1341
+ apiFunc: api.getV1EkycNationality,
1342
+ dataKey: "nationalities",
1343
+ labelKey: "name",
1344
+ defaultColumn: ["id", "name"],
1345
+ defaultFilter: { "status.eq": 1 }
1346
+ },
1347
+ proposalCustomerName: {
1348
+ name: "ekyc/fetch",
1349
+ apiFunc: api.getV1Ekyc,
1350
+ dataKey: "ekyc",
1351
+ labelKey: "lead_company",
1352
+ defaultColumn: ["lead_company"],
1353
+ defaultFilter: {}
1354
+ },
1355
+ companyOfOwnershipStructure: {
1356
+ name: "companyOfOwnershipStructure/fetch",
1357
+ apiFunc: api.getV1CompanyOfOwnershipStructure,
1358
+ dataKey: "company_ownership_structure",
1359
+ labelKey: "name",
1360
+ defaultColumn: ["id", "name"],
1361
+ defaultFilter: { "status.eq": 1 }
1362
+ },
1363
+ investorsLocationList: {
1364
+ name: "investorsLocationList/fetch",
1365
+ apiFunc: api.getV1InvestorsLocation,
1366
+ dataKey: "investors_location",
1367
+ labelKey: "name",
1368
+ defaultColumn: ["id", "name"],
1369
+ defaultFilter: { "status.eq": 1 }
1370
+ },
1371
+ parentCompanyCountry: {
1372
+ name: "parentCompanyCountry/fetch",
1373
+ apiFunc: api.getV1AgreementParentCompanyCountry,
1374
+ dataKey: "parent_company_country",
1375
+ labelKey: "name",
1376
+ defaultColumn: ["id", "name"],
1377
+ defaultFilter: {}
1378
+ },
1379
+ signatoryIdTypeList: {
1380
+ name: "signatoryIdTypeList/fetch",
1381
+ apiFunc: api.getV1AgreementSignatoryIdTypeList,
1382
+ dataKey: "signatory_id_type",
1383
+ labelKey: "name",
1384
+ defaultColumn: ["id", "name"],
1385
+ defaultFilter: { "status.eq": 1 }
1386
+ },
1387
+ investmentLicenseType: {
1388
+ name: "investmentLicenseType/fetch",
1389
+ apiFunc: api.getV1AgreementInvestmentLicenseType,
1390
+ dataKey: "investment_license_type",
1391
+ labelKey: "name",
1392
+ defaultColumn: ["id", "name"],
1393
+ defaultFilter: { "status.eq": 1 }
1394
+ },
1395
+ businessActivity: {
1396
+ name: "businessActivity/fetch",
1397
+ apiFunc: api.getV1AgreementBusinessActivity,
1398
+ dataKey: "business_activity",
1399
+ labelKey: "name",
1400
+ defaultColumn: ["id", "name"],
1401
+ defaultFilter: { "status.eq": 1 }
1402
+ },
1403
+ ksaCapitalCurrency: {
1404
+ name: "businessActivity/fetch",
1405
+ apiFunc: api.getV1ksaCapitalCurrency,
1406
+ dataKey: "ksa_capital_currency",
1407
+ labelKey: "name",
1408
+ defaultColumn: ["id", "name"],
1409
+ defaultFilter: { "status.eq": 1 }
1410
+ },
1411
+ companyTypeKsa: {
1412
+ name: "companyTypeKsa/fetch",
1413
+ apiFunc: api.getV1AgreementCompanyTypeKsa,
1414
+ dataKey: "parent_company_type",
1415
+ labelKey: "name",
1416
+ defaultColumn: ["id", "name"],
1417
+ defaultFilter: { "status.eq": 1 }
1418
+ },
1419
+ parentCompanyList: {
1420
+ name: "parentCompanyList/fetch",
1421
+ apiFunc: api.getV1AgreementParentCompanyList,
1422
+ dataKey: "parent_company_list",
1423
+ labelKey: "name",
1424
+ defaultColumn: ["id", "name"],
1425
+ defaultFilter: { "status.eq": 1 }
1426
+ },
1427
+ activityOfKsaList: {
1428
+ name: "activityOfKsaList/fetch",
1429
+ apiFunc: api.getV1AgreementActivityOfKsaList,
1430
+ dataKey: "activity_of_ksa",
1431
+ labelKey: "name",
1432
+ defaultColumn: ["id", "name"],
1433
+ defaultFilter: { "status.eq": 1 }
1434
+ },
1435
+ roleTypeList: {
1436
+ name: "roleTypeList/fetch",
1437
+ apiFunc: api.getV1AgreementRoleTypeList,
1438
+ dataKey: "role_type",
1439
+ labelKey: "name",
1440
+ defaultColumn: ["id", "name"],
1441
+ defaultFilter: { "status.eq": 1 }
1442
+ },
1443
+ agreementTypeList: {
1444
+ name: "agreementTypeList/fetch",
1445
+ apiFunc: api.getV1AgreementAgreementTypeList,
1446
+ dataKey: "agreement_type_list",
1447
+ labelKey: "name",
1448
+ defaultColumn: ["id", "name"],
1449
+ defaultFilter: { "status.eq": 1 }
1450
+ },
1451
+ agreement: {
1452
+ name: "agreement/fetch",
1453
+ apiFunc: api.getV1Agreement,
1454
+ dataKey: "agreement",
1455
+ labelKey: "name",
1456
+ defaultColumn: ["id", "name"],
1457
+ defaultFilter: { "status.eq": 1 }
1458
+ },
1459
+ salesperson: {
1460
+ name: "salesperson/fetch",
1461
+ apiFunc: utils_server.getV1User,
1462
+ dataKey: "users",
1463
+ // labelKey: "first_name",
1464
+ defaultColumn: ["id", "first_name", "last_name", "role_id"],
1465
+ defaultFilter: { "is_active.eq": 1 },
1466
+ labelKey: getPartyName
1467
+ },
1468
+ users: {
1469
+ name: "users/fetch",
1470
+ apiFunc: utils_server.getV1User,
1471
+ dataKey: "users",
1472
+ // labelKey: "first_name",
1473
+ defaultColumn: ["id", "first_name", "last_name", "role_id"],
1474
+ defaultFilter: { "is_active.eq": 1 },
1475
+ labelKey: getPartyName
1476
+ },
1477
+ party: {
1478
+ name: "party/fetch",
1479
+ apiFunc: api.getV1Parties,
1480
+ dataKey: "parties_list",
1481
+ // labelKey: getPartyName,
1482
+ labelKey: "name",
1483
+ defaultColumn: ["id", "name", "company_name", "first_name", "last_name", "type"],
1484
+ // defaultColumn:[]
1485
+ defaultFilter: { "status.eq": 1 }
1486
+ },
1487
+ department: {
1488
+ name: "department/fetch",
1489
+ apiFunc: utils_server.getV1UserDepartment,
1490
+ dataKey: "department",
1491
+ labelKey: "label",
1492
+ defaultColumn: ["id", "name", "label"],
1493
+ defaultFilter: { "status.eq": 1, "&is_draft.eq": 0 }
1494
+ },
1495
+ location: {
1496
+ name: "location/fetch",
1497
+ apiFunc: api.getV1WarehouseLocation,
1498
+ dataKey: "warehouseLocationList",
1499
+ labelKey: "name",
1500
+ defaultColumn: ["id", "name"],
1501
+ defaultFilter: { "status.eq": 1, "&inventory_available.eq": 1 }
1502
+ },
1503
+ warehouselocation: {
1504
+ name: "location/fetch",
1505
+ apiFunc: api.getV1WarehouseLocation,
1506
+ dataKey: "warehouseLocationList",
1507
+ labelKey: "name",
1508
+ defaultColumn: ["id", "name"],
1509
+ defaultFilter: { "status.eq": 1 }
1510
+ },
1511
+ uom: {
1512
+ name: "uom/fetch",
1513
+ apiFunc: api.getV1Uom,
1514
+ dataKey: "units",
1515
+ labelKey: "uom_name",
1516
+ defaultColumn: ["id", "uom_name", "is_base_unit", "conversation_factor"],
1517
+ defaultFilter: { "template_id.ne": null }
1518
+ },
1519
+ discountedItems: {
1520
+ name: "discountItems/fetch",
1521
+ apiFunc: api.getV1DiscountItems,
1522
+ dataKey: "discountItemsList",
1523
+ labelKey: "name",
1524
+ defaultColumn: ["id", "name", "discount_rate_amount", "discount_category"],
1525
+ defaultFilter: { "status.eq": 1 }
1526
+ },
1527
+ taxTemplate: {
1528
+ name: "taxTemplate/fetch",
1529
+ apiFunc: api.getV1TaxTemplates,
1530
+ dataKey: "templates",
1531
+ labelKey: "name",
1532
+ defaultColumn: ["id", "name", "tax_codes"],
1533
+ defaultFilter: null
1534
+ },
1535
+ paymentTerm: {
1536
+ name: "paymentTerm/fetch",
1537
+ apiFunc: api.getV1PaymentTerms,
1538
+ dataKey: "payment_terms_list",
1539
+ labelKey: "name",
1540
+ defaultColumn: ["id", "name"],
1541
+ defaultFilter: null
1542
+ },
1543
+ incoTerms: {
1544
+ name: "incoTerms/fetch",
1545
+ apiFunc: api.getV1PurchaseInvoicesIncoterms,
1546
+ dataKey: "incoterm",
1547
+ labelKey: "term",
1548
+ defaultColumn: ["id", "term"],
1549
+ defaultFilter: null
1550
+ },
1551
+ shippingRules: {
1552
+ name: "shippingRules/fetch",
1553
+ apiFunc: api.getV1ShippingRules,
1554
+ dataKey: "shippingRules",
1555
+ labelKey: "name",
1556
+ defaultColumn: ["id", "name", "shipping_cost", "handling_cost"],
1557
+ defaultFilter: { "status.ne": "Draft" }
1558
+ },
1559
+ bins: {
1560
+ name: "bins/fetch",
1561
+ apiFunc: api.getV1Bin,
1562
+ dataKey: "binsList",
1563
+ labelKey: "name",
1564
+ defaultColumn: ["id", "name"],
1565
+ defaultFilter: null
1566
+ },
1567
+ purchaseAgreement: {
1568
+ name: "purchaseAgreement/fetch",
1569
+ apiFunc: api.getV1PurchaseAgreements,
1570
+ dataKey: "purchase_agreements",
1571
+ labelKey: "name",
1572
+ defaultColumn: ["id", "name"],
1573
+ defaultFilter: null
1574
+ },
1575
+ invoices: {
1576
+ name: "purchaseInvoices/fetch",
1577
+ apiFunc: api.getV1PurchaseInvoices,
1578
+ dataKey: "invoices",
1579
+ labelKey: "series_number",
1580
+ defaultColumn: ["id", "series_number"],
1581
+ defaultFilter: null
1582
+ },
1583
+ purchaseOrderReceipts: {
1584
+ name: "purchaseGRNs/fetch",
1585
+ apiFunc: api.getV1PurchaseOrdersReceipts,
1586
+ dataKey: "grns",
1587
+ labelKey: "series_number",
1588
+ defaultColumn: ["id", "series_number"],
1589
+ defaultFilter: null
1590
+ },
1591
+ representatives: {
1592
+ name: "representatives/fetch",
1593
+ apiFunc: api.getV1ExpenseReimbursementEmployees,
1594
+ dataKey: "employees_list",
1595
+ // labelKey: "first_name",
1596
+ defaultFilter: { "is_active.eq": 1 },
1597
+ defaultColumn: ["id", "first_name", "last_name"],
1598
+ labelKey: getPartyName
1599
+ },
1600
+ categoryItems: {
1601
+ name: "categoryItems/fetch",
1602
+ apiFunc: api.getV1CategoryItems,
1603
+ dataKey: "categoryItemsList",
1604
+ labelKey: "category_name",
1605
+ defaultColumn: ["id", "category_name"],
1606
+ defaultFilter: { "status.eq": 1 }
1607
+ },
1608
+ customerSegment: {
1609
+ name: "customerSegment/fetch",
1610
+ apiFunc: api.getV1CustomerSegment,
1611
+ dataKey: "customerSegments",
1612
+ labelKey: "name",
1613
+ defaultColumn: ["id", "name", "status"],
1614
+ defaultFilter: { "status.ne": "Draft" }
1615
+ },
1616
+ accounts: {
1617
+ name: "account/fetch",
1618
+ apiFunc: api.getV1ChartOfAccount,
1619
+ dataKey: "coa_list",
1620
+ labelKey: "account_name",
1621
+ defaultColumn: ["id", "account_name", "currency_id", "currency_data", "account_type_id"],
1622
+ defaultFilter: { "is_active.eq": 1 }
1623
+ },
1624
+ account: {
1625
+ name: "account/fetch",
1626
+ apiFunc: api.getV1ChartOfAccount,
1627
+ dataKey: "coa_list",
1628
+ labelKey: "account_name",
1629
+ defaultColumn: ["id", "account_name", "currency_id", "currency_data", "account_type_id"],
1630
+ defaultFilter: { "is_active.eq": 1 }
1631
+ },
1632
+ industry: {
1633
+ name: "inductry/fetch",
1634
+ apiFunc: api.getV1PartiesIndustry,
1635
+ dataKey: "activity_list",
1636
+ labelKey: "name",
1637
+ defaultColumn: ["id", "name"],
1638
+ defaultFilter: null
1639
+ },
1640
+ source: {
1641
+ name: "source/fetch",
1642
+ apiFunc: api.getV1PartiesSource,
1643
+ dataKey: "sources_list",
1644
+ labelKey: "name",
1645
+ defaultColumn: ["id", "name"],
1646
+ defaultFilter: null
1647
+ },
1648
+ bom: {
1649
+ name: "bom/fetch",
1650
+ apiFunc: api.getV1BillsOfMaterials,
1651
+ dataKey: "bom_list",
1652
+ labelKey: "name",
1653
+ defaultColumn: ["id", "name"],
1654
+ defaultFilter: { "is_active.eq": 1, "&status.eq": "Approved" }
1655
+ },
1656
+ routing: {
1657
+ name: "routing/fetch",
1658
+ apiFunc: api.getV1Routing,
1659
+ dataKey: "routings",
1660
+ labelKey: "route_name",
1661
+ defaultColumn: ["id", "route_name"],
1662
+ defaultFilter: { "is_active.eq": 1 }
1663
+ },
1664
+ workCenter: {
1665
+ name: "workCenter/fetch",
1666
+ apiFunc: api.getV1WorkCentre,
1667
+ dataKey: "workCentres",
1668
+ labelKey: "name",
1669
+ defaultColumn: ["id", "name"]
1670
+ },
1671
+ workOrder: {
1672
+ name: "workOrder/fetch",
1673
+ apiFunc: api.getV1WorkOrder,
1674
+ dataKey: "workOrders",
1675
+ labelKey: "series_number",
1676
+ defaultColumn: ["id", "series_number"],
1677
+ defaultFilter: { "is_active.eq": 1, "&status.ne": "Draft" }
1678
+ },
1679
+ vehicleNumbers: {
1680
+ name: "vehicleNumbers/fetch",
1681
+ apiFunc: api.getV1GateRegisterVehicleNumbers,
1682
+ dataKey: "vehicleNumbers",
1683
+ labelKey: "number",
1684
+ defaultColumn: ["id", "number"],
1685
+ defaultFilter: null
1686
+ },
1687
+ vehicleTypes: {
1688
+ name: "vehicleTypes/fetch",
1689
+ apiFunc: api.getV1GateRegisterVehicleTypes,
1690
+ dataKey: "vehicleTypes",
1691
+ labelKey: "name",
1692
+ defaultColumn: ["id", "name"],
1693
+ defaultFilter: null
1694
+ },
1695
+ operations: {
1696
+ name: "operations/fetch",
1697
+ apiFunc: api.getV1Operations,
1698
+ dataKey: "operations",
1699
+ labelKey: "operation_name",
1700
+ defaultColumn: ["id", "operation_name"],
1701
+ defaultFilter: null
1702
+ },
1703
+ assets: {
1704
+ name: "assets/fetch",
1705
+ apiFunc: api.getV1Assets,
1706
+ dataKey: "assets_list",
1707
+ labelKey: "asset_name",
1708
+ defaultColumn: ["id", "asset_name"],
1709
+ defaultFilter: { "status.ne": "cancelled" }
1710
+ },
1711
+ assetsPo: {
1712
+ name: "assets/fetch",
1713
+ apiFunc: api.getV1Assets,
1714
+ dataKey: "assets_list",
1715
+ labelKey: "asset_name",
1716
+ defaultColumn: ["id", "asset_name"]
1717
+ },
1718
+ equipmentCategories: {
1719
+ name: "equipmentCategories/fetch",
1720
+ apiFunc: api.getV1EquipmentsCategories,
1721
+ dataKey: "categories",
1722
+ labelKey: "name",
1723
+ defaultColumn: ["id", "name"],
1724
+ defaultFilter: null
1725
+ },
1726
+ equipment: {
1727
+ name: "equipment/fetch",
1728
+ apiFunc: api.getV1Equipments,
1729
+ dataKey: "equipments",
1730
+ labelKey: "name",
1731
+ defaultColumn: ["id", "name", "equipment_category_data"],
1732
+ defaultFilter: { "status.ne": "Draft" }
1733
+ },
1734
+ workCenterCategories: {
1735
+ name: "workCenterCategories/fetch",
1736
+ apiFunc: api.getV1WorkCentreCategories,
1737
+ dataKey: "work_centre_categories_list",
1738
+ labelKey: "name",
1739
+ defaultColumn: ["id", "name"],
1740
+ defaultFilter: null
1741
+ },
1742
+ rawMaterials: {
1743
+ name: "rawMaterials/fetch",
1744
+ apiFunc: api.getV1BillsOfMaterialsListMaterials,
1745
+ dataKey: "materials_list",
1746
+ labelKey: "item_data.name",
1747
+ defaultColumn: ["id", "item_data"],
1748
+ defaultFilter: null
1749
+ },
1750
+ countries: {
1751
+ name: "countries/fetch",
1752
+ apiFunc: utils_server.getV1LocationsCountries,
1753
+ dataKey: "countries",
1754
+ labelKey: "name",
1755
+ defaultColumn: ["id", "name"],
1756
+ defaultFilter: { "is_active.eq": 1 }
1757
+ },
1758
+ rfqs: {
1759
+ name: "rfqs/fetch",
1760
+ apiFunc: api.getV1Rfq,
1761
+ dataKey: "rfqs",
1762
+ labelKey: "series_number",
1763
+ defaultColumn: ["id", "series_number"],
1764
+ defaultFilter: { "status.ne": "Draft" }
1765
+ },
1766
+ states: {
1767
+ name: "states/fetch",
1768
+ apiFunc: utils_server.getV1LocationsStates,
1769
+ dataKey: "states",
1770
+ labelKey: "name",
1771
+ defaultColumn: ["id", "name"],
1772
+ defaultFilter: null
1773
+ },
1774
+ assemblyItems: {
1775
+ name: "assenmblyItems/fetch",
1776
+ apiFunc: api.getV1AssemblyItems,
1777
+ dataKey: "assemblyItemsList",
1778
+ labelKey: (item) => `${item.sku} - ${item.name}`,
1779
+ defaultColumn: [
1780
+ "id",
1781
+ "name",
1782
+ "type",
1783
+ "unit_of_measurement",
1784
+ "default_tax_id",
1785
+ "sales_price",
1786
+ "sales_description",
1787
+ "total_available_quantity",
1788
+ "total_reserved_quantity",
1789
+ "purchase_price",
1790
+ "purchase_description",
1791
+ "cost",
1792
+ "is_landed_cost",
1793
+ "total_on_hand_quantity",
1794
+ "purchase_unit",
1795
+ "sales_unit",
1796
+ "consumption_unit",
1797
+ "stock_unit",
1798
+ "sku"
1799
+ ],
1800
+ defaultFilter: { "status.eq": 1, "&is_variant.eq": 1 }
1801
+ },
1802
+ journal_type: {
1803
+ name: "journal/fetch",
1804
+ apiFunc: api.getV1AssetsJournalTypes,
1805
+ dataKey: "journal_types",
1806
+ labelKey: "name",
1807
+ defaultColumn: ["id", "series_number", "name"]
1808
+ },
1809
+ journal_entries: {
1810
+ name: "journal-entries/fetch",
1811
+ apiFunc: api.getV1JournalEntries,
1812
+ dataKey: "journal_entries",
1813
+ labelKey: "series_number",
1814
+ defaultColumn: ["id", "series_number"]
1815
+ },
1816
+ reference_types: {
1817
+ name: "referenceTypes/fetch",
1818
+ apiFunc: api.getV1JournalEntriesReferenceType,
1819
+ dataKey: "reference_types",
1820
+ labelKey: "name",
1821
+ defaultColumn: ["id", "name"]
1822
+ },
1823
+ invoice: {
1824
+ name: "invoice/fetch",
1825
+ apiFunc: api.getV1SalesInvoices,
1826
+ dataKey: "invoices",
1827
+ labelKey: "series_number",
1828
+ defaultColumn: ["id", "series_number"]
1829
+ },
1830
+ bills: {
1831
+ name: "bills/fetch",
1832
+ apiFunc: api.getV1PurchaseInvoices,
1833
+ dataKey: "invoices",
1834
+ labelKey: "series_number",
1835
+ defaultColumn: ["id", "series_number"]
1836
+ },
1837
+ notesReasons: {
1838
+ name: "notesReasons/fetch",
1839
+ apiFunc: api.getV1DebitNotesReasons,
1840
+ dataKey: "reasons",
1841
+ labelKey: "reason_name",
1842
+ defaultColumn: ["id", "reason_name"]
1843
+ },
1844
+ expenseCategories: {
1845
+ name: "expenseCategories/fetch",
1846
+ apiFunc: api.getV1ExpenseReimbursementExpenseCategories,
1847
+ dataKey: "expense_category_list",
1848
+ labelKey: "name",
1849
+ defaultColumn: ["id", "name"]
1850
+ },
1851
+ commissionTarget: {
1852
+ name: "commissionTargets/fetch",
1853
+ apiFunc: api.getV1CommissionTargets,
1854
+ dataKey: "commission_targets",
1855
+ labelKey: "series_number",
1856
+ defaultColumn: ["id", "series_number"],
1857
+ defaultFilter: { "is_draft.eq": 0 }
1858
+ },
1859
+ commissionPlan: {
1860
+ name: "commissionPlans/fetch",
1861
+ apiFunc: api.getV1CommissionPlans,
1862
+ dataKey: "commission_plans",
1863
+ labelKey: "title",
1864
+ defaultColumn: ["id", "title", "type"],
1865
+ defaultFilter: { "status.eq": 1 }
1866
+ },
1867
+ assetTypes: {
1868
+ name: "assetTypes/fetch",
1869
+ apiFunc: api.getV1AssetsAssetTypes,
1870
+ dataKey: "asset_types",
1871
+ labelKey: "name",
1872
+ defaultColumn: ["id", "name"],
1873
+ defaultFilter: null
1874
+ },
1875
+ fiscalYear: {
1876
+ name: "fiscalYear/fetch",
1877
+ apiFunc: api.getV1FiscalYear,
1878
+ dataKey: "fiscal",
1879
+ labelKey: "year_name",
1880
+ defaultColumn: ["id", "year_name", "year_start_date", "year_end_date"],
1881
+ defaultFilter: null
1882
+ },
1883
+ budgetMonth: {
1884
+ name: "budgetMonth/fetch",
1885
+ apiFunc: api.getV1BudgetBudgetMonths,
1886
+ dataKey: "budget_months",
1887
+ labelKey: "name",
1888
+ defaultColumn: ["id", "name"],
1889
+ defaultFilter: null
1890
+ },
1891
+ budgetType: {
1892
+ name: "budgetType/fetch",
1893
+ apiFunc: api.getV1BudgetBudgetTypes,
1894
+ dataKey: "budget_types",
1895
+ labelKey: "name",
1896
+ defaultColumn: ["id", "name"],
1897
+ defaultFilter: null
1898
+ },
1899
+ account_types: {
1900
+ name: "accountTypes/fetch",
1901
+ apiFunc: api.getV1ChartOfAccountAccountType,
1902
+ dataKey: "activity_list",
1903
+ labelKey: "type_name",
1904
+ defaultColumn: ["id", "type_name"]
1905
+ },
1906
+ taxCategories: {
1907
+ name: "taxCategories/fetch",
1908
+ apiFunc: api.getV1TaxCategory,
1909
+ dataKey: "tax_category_list",
1910
+ labelKey: "name",
1911
+ defaultColumn: ["id", "name"]
1912
+ },
1913
+ taxCodes: {
1914
+ name: "taxCodes/fetch",
1915
+ apiFunc: api.getV1TaxCode,
1916
+ dataKey: "tax_code",
1917
+ labelKey: "name",
1918
+ defaultColumn: ["id", "name"]
1919
+ },
1920
+ bankAccountType: {
1921
+ name: "bankAccountType/fetch",
1922
+ apiFunc: api.getV1BankAccountsTypes,
1923
+ dataKey: "account_types",
1924
+ labelKey: "name",
1925
+ defaultColumn: ["id", "name"]
1926
+ },
1927
+ bank: {
1928
+ name: "bank/fetch",
1929
+ apiFunc: api.getV1Banks,
1930
+ dataKey: "banks_list",
1931
+ labelKey: "name",
1932
+ defaultColumn: ["id", "name"]
1933
+ },
1934
+ dueDateType: {
1935
+ name: "dueDateType/fetch",
1936
+ apiFunc: api.getV1PaymentTermsDueDateTypes,
1937
+ dataKey: "due_date_list",
1938
+ labelKey: "value",
1939
+ defaultColumn: ["id", "value"]
1940
+ },
1941
+ brand: {
1942
+ name: "brand/fetch",
1943
+ apiFunc: api.getV1Brand,
1944
+ dataKey: "",
1945
+ labelKey: "name",
1946
+ defaultColumn: ["id", "name"]
1947
+ },
1948
+ stockReason: {
1949
+ name: "stockReason/fetch",
1950
+ apiFunc: api.getV1StockReason,
1951
+ dataKey: "",
1952
+ labelKey: "name",
1953
+ defaultColumn: ["id", "name"]
1954
+ },
1955
+ contacts: {
1956
+ name: "contacts/fetch",
1957
+ apiFunc: api.getV1OpportunityContact,
1958
+ dataKey: "",
1959
+ labelKey: "name",
1960
+ defaultColumn: ["id", "name"]
1961
+ },
1962
+ rnTermsConditions: {
1963
+ name: "rnTermsConditions/fetch",
1964
+ apiFunc: api.getV1RentalTermsConditions,
1965
+ dataKey: "terms_and_conditions",
1966
+ labelKey: "name",
1967
+ defaultColumn: ["id", "name"],
1968
+ defaultFilter: { "is_active.eq": 1 }
1969
+ },
1970
+ rnAgreements: {
1971
+ name: "rnAgreements/fetch",
1972
+ apiFunc: api.getV1RentalAgreements,
1973
+ dataKey: "purchase_agreements",
1974
+ labelKey: "name",
1975
+ defaultColumn: ["id", "name"],
1976
+ defaultFilter: { "status.eq": "'In Progress'", "&is_rental.eq": 1 }
1977
+ },
1978
+ rnBillingCycle: {
1979
+ name: "rnTermsConditions/fetch",
1980
+ apiFunc: api.getV1RentalBillingCycles,
1981
+ dataKey: "billing_cycles",
1982
+ labelKey: "name",
1983
+ defaultColumn: ["id", "name"],
1984
+ defaultFilter: null
1985
+ },
1986
+ // priceList:{
1987
+ // name:'priceList/fetch',
1988
+ // apiFunc: getV1PriceLis,
1989
+ // dataKey:'',
1990
+ // labelKey: "name",
1991
+ // defaultColumn:['id','name']
1992
+ // },
1993
+ rnChOrders: {
1994
+ name: "rnChOrders/fetch",
1995
+ apiFunc: api.getV1CrossHireOrders,
1996
+ dataKey: "purchase_orders",
1997
+ labelKey: "series_number",
1998
+ defaultColumn: ["id", "series_number"],
1999
+ defaultFilter: { "&is_rental.eq": 1 }
2000
+ },
2001
+ languages: {
2002
+ name: "languages/fetch",
2003
+ apiFunc: api$1.getV1Languages,
2004
+ dataKey: "languages",
2005
+ labelKey: "name",
2006
+ defaultColumn: ["id", "name", "code"]
2007
+ },
2008
+ roles: {
2009
+ name: "roles/fetch",
2010
+ apiFunc: utils_server.getV1Role,
2011
+ dataKey: "roles",
2012
+ labelKey: "name",
2013
+ defaultColumn: ["id", "name", "code"]
2014
+ },
2015
+ reports: {
2016
+ name: "reports/fetch",
2017
+ apiFunc: api$1.getV1ReportsReportList,
2018
+ dataKey: "reports",
2019
+ labelKey: "name",
2020
+ defaultColumn: ["id", "name"]
2021
+ },
2022
+ uom_templates: {
2023
+ name: "uomTemplate/fetch",
2024
+ apiFunc: api.getV1UomTemplates,
2025
+ dataKey: "templates",
2026
+ labelKey: "name",
2027
+ defaultColumn: ["id", "name"],
2028
+ defaultFilter: { "is_active.eq": 1 }
2029
+ },
2030
+ templates: {
2031
+ name: "templates/fetch",
2032
+ apiFunc: api$1.getV1Templates,
2033
+ labelKey: "subject_id",
2034
+ valueKey: "_id",
2035
+ defaultColumn: ["_id", "subject_id", "name"]
2036
+ },
2037
+ workflow_reference: {
2038
+ name: "workflow_reference/fetch",
2039
+ apiFunc: getV1WorkflowReferences,
2040
+ dataKey: "workflow_reference",
2041
+ labelKey: "name",
2042
+ defaultColumn: ["id", "name"]
2043
+ },
2044
+ grades: {
2045
+ name: "grades/fetch",
2046
+ apiFunc: getV1Grades,
2047
+ dataKey: "grades",
2048
+ labelKey: "grade_name",
2049
+ defaultColumn: ["id", "grade_name"]
2050
+ },
2051
+ useModules: {
2052
+ name: "useModules/fetch",
2053
+ apiFunc: utils_server.getV1UserModules,
2054
+ dataKey: "modules",
2055
+ labelKey: "name",
2056
+ defaultColumn: ["id", "name"]
2057
+ },
2058
+ // HRMS
2059
+ timezone: {
2060
+ name: "timezone/fetch",
2061
+ apiFunc: getV1Timezones,
2062
+ dataKey: "timezones",
2063
+ labelKey: "name",
2064
+ defaultColumn: ["id", "name"]
2065
+ },
2066
+ designation: {
2067
+ name: "designation/fetch",
2068
+ apiFunc: getV1Designation,
2069
+ dataKey: "designations",
2070
+ labelKey: "name",
2071
+ defaultFilter: { "status.eq": 1 },
2072
+ defaultColumn: ["id", "name", "department_id"]
2073
+ },
2074
+ team: {
2075
+ name: "team/fetch",
2076
+ apiFunc: getV1Teams,
2077
+ dataKey: "teams",
2078
+ labelKey: "name",
2079
+ defaultColumn: ["id", "name"]
2080
+ },
2081
+ accural_type: {
2082
+ name: "accural_type/fetch",
2083
+ apiFunc: getV1AccrualType,
2084
+ dataKey: "accural_types",
2085
+ labelKey: "name",
2086
+ defaultColumn: ["id", "name"]
2087
+ },
2088
+ accrual_master: {
2089
+ name: "accrual_master/fetch",
2090
+ apiFunc: getV1AccrualMaster,
2091
+ dataKey: "accrual_master",
2092
+ labelKey: "name",
2093
+ defaultColumn: ["id", "name"]
2094
+ },
2095
+ leave_category: {
2096
+ name: "leave_category/fetch",
2097
+ apiFunc: getV1LeaveCategory,
2098
+ dataKey: "leave_categories",
2099
+ labelKey: "name",
2100
+ defaultColumn: ["id", "name"]
2101
+ },
2102
+ // Leave Policy Master - Manages leave policies and configurations for employees
2103
+ leave_policy_master: {
2104
+ name: "leave_policy_master/fetch",
2105
+ apiFunc: getV1LeavePolicyMaster,
2106
+ dataKey: "leave_policy_masters",
2107
+ labelKey: "leave_type_title",
2108
+ defaultColumn: ["id", "leave_type_title"],
2109
+ defaultFilter: { "status.eq": 1, "&is_draft.eq": 0, "&leave_category_id.isnull": false }
2110
+ },
2111
+ loan_master: {
2112
+ name: "loan_master/fetch",
2113
+ apiFunc: getV1LoanMaster,
2114
+ dataKey: "loan_master",
2115
+ labelKey: "loan_name",
2116
+ defaultColumn: ["id", "loan_name"]
2117
+ },
2118
+ // Document Master - Manages document types and templates for HR processes
2119
+ document_master: {
2120
+ name: "document_master/fetch",
2121
+ apiFunc: getV1DocumentMaster,
2122
+ dataKey: "document_master",
2123
+ labelKey: "document_type_name",
2124
+ defaultColumn: ["id", "document_type_name"],
2125
+ defaultFilter: { "status.eq": 1 }
2126
+ },
2127
+ // Company Calendar - Manages company-wide calendar events, holidays, and schedules
2128
+ company_calendar: {
2129
+ name: "company_calendar/fetch",
2130
+ apiFunc: getV1CompanyCalendar,
2131
+ dataKey: "company_calendars",
2132
+ labelKey: "calendar_name",
2133
+ defaultColumn: ["id", "calendar_name"]
2134
+ },
2135
+ // Employee Contracts - Manages employment contracts and agreements
2136
+ employee_contract: {
2137
+ name: "employee_contract/fetch",
2138
+ apiFunc: getV1EmployeeContracts,
2139
+ dataKey: "employee_contracts",
2140
+ labelKey: "contract_name",
2141
+ defaultColumn: ["id", "contract_name"]
2142
+ },
2143
+ // Employee Management - Core employee data and information management
2144
+ employees: {
2145
+ name: "employees/fetch",
2146
+ apiFunc: getV1Employee,
2147
+ dataKey: "employees",
2148
+ labelKey: "name",
2149
+ defaultColumn: ["id", "name", "account"],
2150
+ customFilter: { "status.ne": "Draft" }
2151
+ },
2152
+ serviceItems: {
2153
+ name: "serviceItems/fetch",
2154
+ apiFunc: api.getV1ServiceManagement,
2155
+ dataKey: "items",
2156
+ labelKey: "service_name",
2157
+ defaultColumn: ["id", "service_name", "phase", "price", "price_note", "details_scope", "vat_type_id", "vat_rate_id", "timeline"]
2158
+ },
2159
+ // Salary Structures - Manages Salary Structures
2160
+ salary_structures: {
2161
+ name: "salary_structures/fetch",
2162
+ apiFunc: getV1SalaryStructureMaster,
2163
+ dataKey: "salary_structure_master",
2164
+ labelKey: "structure_name",
2165
+ defaultColumn: ["id", "structure_name", "min_salary", "max_salary"],
2166
+ defaultFilter: { "is_active.eq": 1, "&is_draft.eq": 0 }
2167
+ },
2168
+ skills: {
2169
+ name: "skills/fetch",
2170
+ apiFunc: getV1Skills,
2171
+ dataKey: "skills",
2172
+ labelKey: "name",
2173
+ defaultColumn: ["id", "name"]
2174
+ },
2175
+ hire_requests: {
2176
+ name: "hire_requests/fetch",
2177
+ apiFunc: getV1HireRequests,
2178
+ dataKey: "hire_requests",
2179
+ labelKey: "series_number",
2180
+ defaultColumn: ["id", "series_number", "designation_id", "designation_data"],
2181
+ defaultFilter: { "status.eq": "Accepted" }
2182
+ },
2183
+ job_posts: {
2184
+ name: "job_posts/fetch",
2185
+ apiFunc: getV1JobPosts,
2186
+ dataKey: "job_posts",
2187
+ labelKey: "title",
2188
+ defaultColumn: ["id", "title"]
2189
+ },
2190
+ budgets_list: {
2191
+ name: "budgets_list/fetch",
2192
+ apiFunc: api.getV1Budget,
2193
+ dataKey: "budgets_list",
2194
+ labelKey: "budget_name",
2195
+ defaultColumn: ["id", "budget_name"],
2196
+ defaultFilter: { "status.eq": "Approved" }
2197
+ },
2198
+ employee_assets: {
2199
+ name: "employee_assets/fetch",
2200
+ apiFunc: getV1MyAssets,
2201
+ dataKey: "assets",
2202
+ labelKey: "asset_name",
2203
+ defaultColumn: ["id", "asset_name"]
2204
+ },
2205
+ // PMS
2206
+ projects: {
2207
+ name: "projects/fetch",
2208
+ apiFunc: getV1Projects,
2209
+ dataKey: "projects",
2210
+ labelKey: "name",
2211
+ defaultColumn: ["id", "name"],
2212
+ defaultFilter: { "status.eq": "Active" }
2213
+ },
2214
+ tasks: {
2215
+ name: "tasks/fetch",
2216
+ apiFunc: getV1Tasks,
2217
+ dataKey: "tasks",
2218
+ labelKey: "name",
2219
+ defaultColumn: ["id", "name", "project_id"],
2220
+ defaultFilter: null
2221
+ },
2222
+ cost_codes: {
2223
+ name: "cost_codes/fetch",
2224
+ apiFunc: getV1CostCodes,
2225
+ dataKey: "cost_codes",
2226
+ labelKey: "name",
2227
+ defaultColumn: ["id", "name"],
2228
+ defaultFilter: { "is_active.eq": 1 }
2229
+ },
2230
+ cost_elements: {
2231
+ name: "cost_elements/fetch",
2232
+ apiFunc: getV1CostElements,
2233
+ dataKey: "cost_elements",
2234
+ labelKey: "name",
2235
+ defaultColumn: ["id", "name"],
2236
+ defaultFilter: { "is_active.eq": 1 }
2237
+ },
2238
+ salesOrder: {
2239
+ name: "sales_order/fetch",
2240
+ apiFunc: api.getV1SalesOrders,
2241
+ dataKey: "sales_orders",
2242
+ labelKey: "series_number",
2243
+ defaultColumn: ["id", "series_number"],
2244
+ defaultFilter: { "status.ne": "Draft" }
2245
+ },
2246
+ sourceType: {
2247
+ name: "source-types/fetch",
2248
+ apiFunc: api.getV1SourceTypes,
2249
+ dataKey: "source_types_list",
2250
+ labelKey: "name",
2251
+ defaultColumn: ["id", "name"],
2252
+ defaultFilter: { "status.eq": 1 }
2253
+ }
2254
+ };
2255
+ function extendApiConfigurations(entries) {
2256
+ Object.assign(apiConfigurations, entries);
2257
+ }
2258
+ const fetchApi = async ({
2259
+ apiKey,
2260
+ filters,
2261
+ labelKey,
2262
+ valueKey
2263
+ }) => {
2264
+ try {
2265
+ const config = apiConfigurations[apiKey];
2266
+ if (!config) {
2267
+ throw `API configuration for key "${apiKey}" not found.`;
2268
+ }
2269
+ const res = await getOptions(
2270
+ config.apiFunc,
2271
+ filters,
2272
+ config.dataKey,
2273
+ labelKey || config.labelKey,
2274
+ config.defaultColumn,
2275
+ config.defaultFilter,
2276
+ valueKey
2277
+ );
2278
+ return res;
2279
+ } catch (error) {
2280
+ const newError = new Error(error);
2281
+ showSnackBar(newError);
2282
+ throw newError;
2283
+ }
2284
+ };
2285
+ const getCurrency = () => {
2286
+ };
2287
+ const getItems = () => {
2288
+ };
2289
+ utils_apiConfig.onApiConfigReady((config) => {
2290
+ const baseUrl2 = config.backendBaseUrl;
2291
+ api.setBaseUrl(`${baseUrl2}/accounting`);
2292
+ api.setBaseUrl$1(`${baseUrl2}/inventory`);
2293
+ utils_server.setBaseUrl(`${baseUrl2}/rbac`);
2294
+ api.setBaseUrl$3(`${baseUrl2}/rental`);
2295
+ api.setBaseUrl$5(`${baseUrl2}/purchase`);
2296
+ setBaseUrl$1(`${baseUrl2}/hrms`);
2297
+ api$1.setBaseUrl(`${baseUrl2}/system-feature`);
2298
+ });
2299
+ const isJsonParse = (jsonString) => {
2300
+ if (!jsonString) return false;
2301
+ try {
2302
+ return JSON.parse(jsonString);
2303
+ } catch (err) {
2304
+ return false;
2305
+ }
2306
+ };
2307
+ const generateRandomId = (concatString = "") => {
2308
+ const uniqueStringId = `${Date.now()}${concatString}${Math.random()}`.replace(
2309
+ ".",
2310
+ ""
2311
+ );
2312
+ const uniqueNumberId = Number(uniqueStringId.replace(concatString, ""));
2313
+ return { uniqueStringId, uniqueNumberId };
2314
+ };
2315
+ const generateAndFormatStringFromObj = (obj = {}, keysInOrder = []) => {
2316
+ let string = "";
2317
+ keysInOrder == null ? void 0 : keysInOrder.forEach((key) => {
2318
+ if (obj == null ? void 0 : obj[key]) {
2319
+ string = string ? string + ` ${obj == null ? void 0 : obj[key]}` : obj == null ? void 0 : obj[key];
2320
+ }
2321
+ });
2322
+ return string;
2323
+ };
2324
+ const generateFields = (fieldsConfig) => {
2325
+ const defaultOperators = [
2326
+ { name: "null", label: "is null" },
2327
+ { name: "notNull", label: "is not null" }
2328
+ ];
2329
+ const textOperators = [
2330
+ { name: "contains", label: "contains" },
2331
+ { name: "beginsWith", label: "begins with" },
2332
+ { name: "endsWith", label: "ends with" },
2333
+ { name: "doesNotContain", label: "does not contain" },
2334
+ { name: "doesNotBeginWith", label: "does not begin with" },
2335
+ { name: "doesNotEndWith", label: "does not end with" },
2336
+ ...defaultOperators
2337
+ ];
2338
+ const numberOperators = [
2339
+ { name: "=", label: "equal to" },
2340
+ { name: "<", label: "less than" },
2341
+ { name: "<=", label: "less than or equal to" },
2342
+ { name: ">", label: "greater than" },
2343
+ { name: ">=", label: "greater than or equal to" },
2344
+ ...defaultOperators
2345
+ ];
2346
+ const selectOperators = [
2347
+ { name: "in", label: "in" },
2348
+ { name: "notIn", label: "not in" },
2349
+ ...defaultOperators
2350
+ ];
2351
+ const dropdownOperators = [{ name: "in", label: "in" }];
2352
+ const dateOperators = [
2353
+ { name: "=", label: "on" },
2354
+ { name: "!=", label: "not on" },
2355
+ { name: "<", label: "before" },
2356
+ { name: "<=", label: "on or before" },
2357
+ { name: ">", label: "after" },
2358
+ { name: ">=", label: "on or after" },
2359
+ ...defaultOperators
2360
+ ];
2361
+ const dateTimeOperators = [
2362
+ { name: "contains", label: "on" },
2363
+ { name: "notContain", label: "not on" },
2364
+ { name: "<", label: "before" },
2365
+ { name: "<=", label: "on or before" },
2366
+ { name: ">", label: "after" },
2367
+ { name: ">=", label: "on or after" },
2368
+ ...defaultOperators
2369
+ ];
2370
+ const getFieldConfig = (field) => {
2371
+ let { type, values } = field;
2372
+ const { is_aggregate = false, table = null } = field;
2373
+ const { key: name, label, fieldType } = field;
2374
+ let operators, valueEditorType, inputType, datatype;
2375
+ if (field == null ? void 0 : field.enum) {
2376
+ type = "select";
2377
+ let fieldArr = field.enum;
2378
+ if (fieldArr && !Array.isArray(fieldArr) && typeof fieldArr === "object") {
2379
+ fieldArr = Object.values(fieldArr);
2380
+ }
2381
+ values = fieldArr.map((value) => ({ name: value, label: value }));
2382
+ }
2383
+ if (fieldType === "select") {
2384
+ type = "select";
2385
+ values = field == null ? void 0 : field.options;
2386
+ }
2387
+ if (field == null ? void 0 : field.boolean) {
2388
+ type = "select";
2389
+ values = (field == null ? void 0 : field.values) || [];
2390
+ }
2391
+ if (field == null ? void 0 : field.table) {
2392
+ type = "table";
2393
+ }
2394
+ switch (type) {
2395
+ case "string":
2396
+ operators = textOperators;
2397
+ valueEditorType = "text";
2398
+ inputType = "text";
2399
+ break;
2400
+ case "number":
2401
+ operators = numberOperators;
2402
+ valueEditorType = "text";
2403
+ inputType = "number";
2404
+ break;
2405
+ case "select":
2406
+ operators = selectOperators;
2407
+ valueEditorType = "select";
2408
+ inputType = "select";
2409
+ break;
2410
+ case "table":
2411
+ operators = dropdownOperators;
2412
+ valueEditorType = "select";
2413
+ inputType = "select";
2414
+ break;
2415
+ case "datetime":
2416
+ operators = dateTimeOperators;
2417
+ valueEditorType = "text";
2418
+ inputType = "date";
2419
+ datatype = "date";
2420
+ break;
2421
+ case "date":
2422
+ operators = dateOperators;
2423
+ valueEditorType = "text";
2424
+ inputType = "date";
2425
+ datatype = "date";
2426
+ break;
2427
+ case "boolean":
2428
+ operators = [...dropdownOperators, ...defaultOperators];
2429
+ valueEditorType = "select";
2430
+ inputType = "select";
2431
+ break;
2432
+ default:
2433
+ operators = textOperators;
2434
+ valueEditorType = "text";
2435
+ inputType = "text";
2436
+ }
2437
+ return {
2438
+ name: name.replace("__replaceKey", ""),
2439
+ // name,
2440
+ label,
2441
+ valueEditorType,
2442
+ operators,
2443
+ inputType,
2444
+ datatype,
2445
+ comparator: "datatype",
2446
+ values,
2447
+ is_aggregate,
2448
+ table
2449
+ };
2450
+ };
2451
+ return fieldsConfig.filter((f) => f.isFilterAllowed && (f == null ? void 0 : f.type)).map(getFieldConfig);
2452
+ };
2453
+ const generateQueryString = (rule) => {
2454
+ const operatorMap = {
2455
+ null: "eq",
2456
+ notNull: "ne",
2457
+ contains: "like",
2458
+ beginsWith: "like",
2459
+ endsWith: "like",
2460
+ doesNotContain: "ne",
2461
+ notContain: "notLike",
2462
+ doesNotBeginWith: "ne",
2463
+ doesNotEndWith: "ne",
2464
+ "<": "lt",
2465
+ "<=": "lte",
2466
+ ">": "gt",
2467
+ ">=": "gte",
2468
+ "=": "eq",
2469
+ "!=": "ne",
2470
+ in: "in",
2471
+ notIn: "nin"
2472
+ };
2473
+ const formatValue = (operator, value) => {
2474
+ if (["in", "notIn"].includes(operator)) {
2475
+ return `[${value}]`;
2476
+ } else if (["like", "ilike", "notLike"].includes(operator)) {
2477
+ if (operator === "beginsWith") return `${value}%`;
2478
+ if (operator === "endsWith") return `%${value}`;
2479
+ return `%${value}%`;
2480
+ } else if (operator === "null" || operator === "notNull") {
2481
+ return "";
2482
+ } else {
2483
+ return value;
2484
+ }
2485
+ };
2486
+ const processRules = (rules) => {
2487
+ return rules.map((rule2) => {
2488
+ let ruleValue = rule2.value;
2489
+ if (Array.isArray(ruleValue)) {
2490
+ ruleValue = ruleValue.map((rv) => {
2491
+ if (typeof rv === "object") {
2492
+ rv = rv.name;
2493
+ }
2494
+ return rv;
2495
+ });
2496
+ }
2497
+ if (rule2.rules) {
2498
+ const combinator2 = rule2.combinator === "or" ? "|" : "&";
2499
+ const nestedRules = processRules(rule2.rules);
2500
+ return `${nestedRules.join(combinator2)}`;
2501
+ } else {
2502
+ let operator = operatorMap[rule2.operator];
2503
+ if ((operator === "in" || operator === "notIn") && typeof ruleValue === "string") {
2504
+ operator = "eq";
2505
+ }
2506
+ if (rule2.operator === "null" || rule2.operator === "notNull") {
2507
+ ruleValue = null;
2508
+ }
2509
+ const value = formatValue(operator, ruleValue);
2510
+ if (operator === "eq" || operator === "ne") {
2511
+ return `${rule2.field}.${operator}=${value}`;
2512
+ }
2513
+ return `${rule2.field}.${operator}=${value}`;
2514
+ }
2515
+ });
2516
+ };
2517
+ const combinator = rule.combinator === "or" ? "|" : "&";
2518
+ const processedRules = processRules(rule.rules);
2519
+ return `(${processedRules.join(combinator)})`.replace(/ /g, "---");
2520
+ };
2521
+ const getOperatorLabel = (rule, filterFields) => {
2522
+ var _a, _b, _c, _d, _e, _f, _g;
2523
+ const defaultOperators = [
2524
+ { name: "null", label: "Is null" },
2525
+ { name: "notNull", label: "Is not null" }
2526
+ ];
2527
+ const textOperators = [
2528
+ { name: "contains", label: "Contains" },
2529
+ { name: "beginsWith", label: "Begins with" },
2530
+ { name: "endsWith", label: "Ends with" },
2531
+ { name: "doesNotContain", label: "Does not contain" },
2532
+ { name: "doesNotBeginWith", label: "Does not begin with" },
2533
+ { name: "doesNotEndWith", label: "Does not end with" },
2534
+ ...defaultOperators
2535
+ ];
2536
+ const numberOperators = [
2537
+ { name: "=", label: "Equal to" },
2538
+ { name: "<", label: "Less than" },
2539
+ { name: "<=", label: "Less than or equal to" },
2540
+ { name: ">", label: "Greater than" },
2541
+ { name: ">=", label: "Greater than or equal to" },
2542
+ ...defaultOperators
2543
+ ];
2544
+ const selectOperators = [
2545
+ { name: "in", label: "In" },
2546
+ { name: "notIn", label: "Not in" },
2547
+ ...defaultOperators
2548
+ ];
2549
+ const dropdownOperators = [{ name: "in", label: "In" }];
2550
+ const dateOperators = [
2551
+ { name: "=", label: "On" },
2552
+ { name: "!=", label: "Not on" },
2553
+ { name: "<", label: "Before" },
2554
+ { name: "<=", label: "On or before" },
2555
+ { name: ">", label: "After" },
2556
+ { name: ">=", label: "On or after" },
2557
+ ...defaultOperators
2558
+ ];
2559
+ const booleanOperators = [{ name: "=", label: "is" }, ...defaultOperators];
2560
+ const { field: rField, operator } = rule;
2561
+ const field = filterFields == null ? void 0 : filterFields.find(
2562
+ (ff) => ff.key.replace("__replaceKey", "") == rField
2563
+ );
2564
+ let operatorLable = "";
2565
+ if (field) {
2566
+ let { type } = field || {};
2567
+ const { fieldType } = field;
2568
+ if (field == null ? void 0 : field.enum) {
2569
+ type = "select";
2570
+ }
2571
+ if (fieldType === "select") {
2572
+ type = "select";
2573
+ }
2574
+ if (field == null ? void 0 : field.boolean) {
2575
+ type = "select";
2576
+ }
2577
+ if (field == null ? void 0 : field.table) {
2578
+ type = "table";
2579
+ }
2580
+ switch (type) {
2581
+ case "string":
2582
+ operatorLable = ((_a = textOperators.find((to) => to.name == operator)) == null ? void 0 : _a.label) || "";
2583
+ break;
2584
+ case "number":
2585
+ operatorLable = ((_b = numberOperators.find((no) => no.name == operator)) == null ? void 0 : _b.label) || "";
2586
+ break;
2587
+ case "select":
2588
+ operatorLable = ((_c = selectOperators.find((so) => so.name == operator)) == null ? void 0 : _c.label) || "";
2589
+ break;
2590
+ case "table":
2591
+ operatorLable = ((_d = dropdownOperators.find((dwo) => dwo.name == operator)) == null ? void 0 : _d.label) || "";
2592
+ break;
2593
+ case "datetime":
2594
+ operatorLable = ((_e = dateOperators.find((dto) => dto.name == operator)) == null ? void 0 : _e.label) || "";
2595
+ break;
2596
+ case "date":
2597
+ operatorLable = ((_f = dateOperators.find((dto) => dto.name == operator)) == null ? void 0 : _f.label) || "";
2598
+ break;
2599
+ case "boolean":
2600
+ operatorLable = ((_g = booleanOperators.find((bo) => bo.name == operator)) == null ? void 0 : _g.label) || "";
2601
+ break;
2602
+ }
2603
+ }
2604
+ return operatorLable;
2605
+ };
2606
+ const formatAmount = (amount = "", format = "", position = "before", symbol, fraction) => {
2607
+ if (amount === "" || amount === null || amount === void 0) {
2608
+ amount = 0;
2609
+ }
2610
+ if (typeof amount === "string") {
2611
+ amount = parseFloat(amount.replace(/[^\d.-]/g, ""));
2612
+ if (isNaN(amount)) return "";
2613
+ }
2614
+ const f = fraction ?? getDefaultFraction();
2615
+ const num = parseFloat(amount.toFixed(f));
2616
+ let formatter;
2617
+ switch (format) {
2618
+ case "#,###.##":
2619
+ formatter = new Intl.NumberFormat("en-US", {
2620
+ minimumFractionDigits: f,
2621
+ maximumFractionDigits: f
2622
+ });
2623
+ break;
2624
+ case "#.###,##":
2625
+ formatter = new Intl.NumberFormat("de-DE", {
2626
+ minimumFractionDigits: f,
2627
+ maximumFractionDigits: f
2628
+ });
2629
+ break;
2630
+ case "# ###.##":
2631
+ formatter = new Intl.NumberFormat("fr-FR", {
2632
+ minimumFractionDigits: f,
2633
+ maximumFractionDigits: f
2634
+ });
2635
+ break;
2636
+ case "# ###,##":
2637
+ formatter = new Intl.NumberFormat("es-ES", {
2638
+ minimumFractionDigits: f,
2639
+ maximumFractionDigits: f
2640
+ });
2641
+ break;
2642
+ case "#’ ###. ##":
2643
+ formatter = new Intl.NumberFormat("de-CH", {
2644
+ minimumFractionDigits: f,
2645
+ maximumFractionDigits: f
2646
+ });
2647
+ break;
2648
+ case "#, ###.##":
2649
+ formatter = new Intl.NumberFormat("en-GB", {
2650
+ minimumFractionDigits: f,
2651
+ maximumFractionDigits: f
2652
+ });
2653
+ break;
2654
+ default:
2655
+ formatter = new Intl.NumberFormat("en-US", {
2656
+ minimumFractionDigits: f,
2657
+ maximumFractionDigits: f
2658
+ });
2659
+ }
2660
+ let formattedAmount = formatter.format(num);
2661
+ if (format === "# ###.##" || format === "# ###,##") {
2662
+ formattedAmount = formattedAmount.replace(/\u00A0/g, " ");
2663
+ }
2664
+ if (format === "#’ ###. ##") {
2665
+ formattedAmount = formattedAmount.replace(/\u00A0/g, " ").replace(/'/g, "’");
2666
+ }
2667
+ if (format === "#, ###.##") {
2668
+ formattedAmount = formattedAmount.replace(/,/g, ", ");
2669
+ }
2670
+ if (symbol) {
2671
+ return position === "after" ? `${formattedAmount} ${symbol}` : `${symbol} ${formattedAmount}`;
2672
+ }
2673
+ return formattedAmount;
2674
+ };
2675
+ const filterCoaByCompanyIdOrNull = (allCoa, { companyId }) => {
2676
+ if (!(allCoa == null ? void 0 : allCoa.length)) return [];
2677
+ return allCoa.filter((coa) => {
2678
+ if (companyId) {
2679
+ const ic = Array.isArray(companyId) ? companyId.map(Number) : [Number(companyId)];
2680
+ return !coa.company_ids || coa.company_ids.some((c) => ic.includes(c.id));
2681
+ }
2682
+ return !coa.company_ids;
2683
+ });
2684
+ };
2685
+ const validateDiscountValidity = (date, discountDueDateBasedOn, discountValidity) => {
2686
+ const currentDate = /* @__PURE__ */ new Date();
2687
+ const dateObj = new Date(date);
2688
+ let discountEndDate;
2689
+ switch (discountDueDateBasedOn) {
2690
+ case "DAYS_AFTER_INVOICE_DATE":
2691
+ discountEndDate = new Date(dateObj);
2692
+ discountEndDate.setDate(
2693
+ discountEndDate.getDate() + parseInt(discountValidity)
2694
+ );
2695
+ break;
2696
+ case "DAYS_AFTER_INVOICE_MONTH":
2697
+ discountEndDate = new Date(
2698
+ dateObj.getFullYear(),
2699
+ dateObj.getMonth() + 1,
2700
+ parseInt(discountValidity)
2701
+ );
2702
+ break;
2703
+ case "MONTHS_AFTER_INVOICE_MONTH":
2704
+ discountEndDate = new Date(dateObj);
2705
+ discountEndDate.setMonth(
2706
+ discountEndDate.getMonth() + parseInt(discountValidity)
2707
+ );
2708
+ discountEndDate = new Date(
2709
+ discountEndDate.getFullYear(),
2710
+ discountEndDate.getMonth() + 1,
2711
+ 0
2712
+ );
2713
+ break;
2714
+ default:
2715
+ throw new Error("Invalid discount_due_date_based_on value");
2716
+ }
2717
+ return currentDate <= discountEndDate;
2718
+ };
2719
+ const token = localStorage.getItem(constants_auth.auth.storageTokenKeyName) || void 0;
2720
+ const postImportSheet = async (request, moduleName) => {
2721
+ let mainModule = window.location.pathname.split("/")[2];
2722
+ const subModuleName = window.location.pathname.split("/")[3];
2723
+ let type = "";
2724
+ if (mainModule == "crm") {
2725
+ mainModule = "sales";
2726
+ }
2727
+ if (mainModule == "procurement") {
2728
+ mainModule = "purchase";
2729
+ }
2730
+ if (mainModule == "rental" && subModuleName == "item") {
2731
+ mainModule = "inventory";
2732
+ }
2733
+ if (mainModule == "rental" && moduleName == "quotation") {
2734
+ moduleName = "rental-quotations";
2735
+ }
2736
+ if (mainModule == "rental" && moduleName == "lead") {
2737
+ moduleName = "rental-lead";
2738
+ }
2739
+ if (mainModule == "rental" && moduleName == "rfq") {
2740
+ mainModule = "purchase";
2741
+ }
2742
+ if (mainModule == "rental" && moduleName == "purchase-orders") {
2743
+ mainModule = "purchase";
2744
+ }
2745
+ if (mainModule == "rental" && moduleName == "opportunity") {
2746
+ moduleName = "rental-opportunity";
2747
+ }
2748
+ if (moduleName == "collection-entries") {
2749
+ moduleName = "payment-entries";
2750
+ type = "receive";
2751
+ }
2752
+ const baseUrl2 = `${utils_apiConfig.getApiConfig().backendBaseUrl}/${mainModule}`;
2753
+ const headers = {};
2754
+ headers["x-token"] = token;
2755
+ const response = await fetch(`${baseUrl2}/v1/${moduleName}/import${type ? `?type=${type}` : ""}`, {
2756
+ method: "POST",
2757
+ body: request,
2758
+ headers
2759
+ });
2760
+ if (!response.ok) {
2761
+ throw new Error(await response.text());
2762
+ }
2763
+ return await response.json();
2764
+ };
2765
+ const getExcelTemplateGenerateTemplate = async (request) => {
2766
+ const baseUrl2 = `${utils_apiConfig.getApiConfig().backendBaseUrl}/accounting`;
2767
+ const headers = {};
2768
+ if (request["x-token"] !== void 0) {
2769
+ headers["x-token"] = request["x-token"];
2770
+ delete request["x-token"];
2771
+ }
2772
+ if (request["Content-Type"] !== void 0) {
2773
+ headers["Content-Type"] = request["Content-Type"];
2774
+ delete request["Content-Type"];
2775
+ }
2776
+ const response = await fetch(
2777
+ `${baseUrl2}/v1/excel-template/generate-template?resource=${request.resource.toString()}`,
2778
+ {
2779
+ headers
2780
+ }
2781
+ );
2782
+ if (!response.ok) {
2783
+ throw new Error(await response.text());
2784
+ }
2785
+ return await response;
2786
+ };
2787
+ const getExcelExportTemplate = async (request) => {
2788
+ const baseUrl2 = `${utils_apiConfig.getApiConfig().backendBaseUrl}`;
2789
+ const headers = {};
2790
+ if (request["x-token"] !== void 0) {
2791
+ headers["x-token"] = request["x-token"];
2792
+ delete request["x-token"];
2793
+ }
2794
+ if (request["Content-Type"] !== void 0) {
2795
+ headers["Content-Type"] = request["Content-Type"];
2796
+ delete request["Content-Type"];
2797
+ }
2798
+ const pathParts = window.location.pathname.split("/");
2799
+ const currentPath = pathParts.pop();
2800
+ const currentModule = pathParts[3];
2801
+ let moduleName = pathParts[2];
2802
+ if (currentPath == "demand-planning") {
2803
+ moduleName = "purchase";
2804
+ }
2805
+ if (moduleName == "crm") {
2806
+ moduleName = "sales";
2807
+ }
2808
+ if (moduleName == "procurement") {
2809
+ moduleName = "purchase";
2810
+ }
2811
+ let combinedFilters = "";
2812
+ const excelpath = "generate-excel";
2813
+ if (currentPath && utils_exportFilters.specificFilters[currentPath]) {
2814
+ combinedFilters = utils_exportFilters.specificFilters[currentPath];
2815
+ }
2816
+ if (currentPath === "items" || currentPath === "item") {
2817
+ if ((request == null ? void 0 : request.title) && (request == null ? void 0 : request.title) == "Non Inventory") {
2818
+ request.title = "non-inventory";
2819
+ } else if ((request == null ? void 0 : request.title) && (request == null ? void 0 : request.title) == "Assembly (Finished product)") {
2820
+ request.title = "assembly";
2821
+ }
2822
+ combinedFilters += `&type.eq=${request == null ? void 0 : request.title.toLowerCase()}`;
2823
+ }
2824
+ if (request.filterQueryString) {
2825
+ const cleanedFilterQueryString = request.filterQueryString.replace(/[{}()]/g, "");
2826
+ if (combinedFilters) {
2827
+ combinedFilters = `(${combinedFilters}&${cleanedFilterQueryString})`;
2828
+ } else {
2829
+ combinedFilters = `(${cleanedFilterQueryString})`;
2830
+ }
2831
+ } else {
2832
+ combinedFilters = `(${combinedFilters})`;
2833
+ }
2834
+ if (combinedFilters === "()") {
2835
+ combinedFilters = "";
2836
+ }
2837
+ if (combinedFilters.includes("is_variant.eq=false|self_variant.eq=true")) {
2838
+ if (moduleName == "rental") {
2839
+ combinedFilters = combinedFilters.replace("is_variant.eq=false|self_variant.eq=true", "(is_variant.eq=false|self_variant.eq=true&is_rental.eq=1)");
2840
+ } else {
2841
+ combinedFilters = combinedFilters.replace("is_variant.eq=false|self_variant.eq=true", "(is_variant.eq=false|self_variant.eq=true)");
2842
+ }
2843
+ }
2844
+ if (currentPath && !utils_exportFilters.specificFilters[currentPath] && !request.filterQueryString) {
2845
+ combinedFilters = "";
2846
+ }
2847
+ let subModuleName = utils_exportFilters.subModuleMappings[currentPath || ""] || currentPath;
2848
+ if (moduleName == "sales" && subModuleName == "quotation") {
2849
+ combinedFilters = "(is_rental.eq=0)";
2850
+ }
2851
+ if (moduleName == "sales" && subModuleName == "sales-orders") {
2852
+ combinedFilters = "(is_rental.eq=0)";
2853
+ }
2854
+ if (moduleName == "rental" && subModuleName == "rental-lead") {
2855
+ combinedFilters = "(is_rental.eq=1)";
2856
+ }
2857
+ if (moduleName == "sales" && subModuleName == "lead") {
2858
+ combinedFilters = "(is_rental.eq=0)";
2859
+ }
2860
+ if (moduleName === "purchase" && (subModuleName === "purchase-requests" || subModuleName === "rfq" || subModuleName === "purchase-orders")) {
2861
+ combinedFilters = "(is_rental.eq=0)";
2862
+ }
2863
+ if (moduleName == "rental" && subModuleName == "quotation") {
2864
+ subModuleName = "rental-quotations";
2865
+ }
2866
+ if (moduleName == "rental" && subModuleName == "opportunity") {
2867
+ subModuleName = "rental-opportunity";
2868
+ }
2869
+ if (moduleName == "rental" && subModuleName == "item") {
2870
+ moduleName = "inventory";
2871
+ subModuleName = "inventory-items";
2872
+ }
2873
+ if (moduleName == "rental" && subModuleName == "category") {
2874
+ moduleName = "inventory";
2875
+ subModuleName = "category-items";
2876
+ }
2877
+ if (moduleName == "rental" && subModuleName == "purchase-requests") {
2878
+ subModuleName = "cross-hire-requests";
2879
+ combinedFilters = "(is_rental.eq=1)";
2880
+ }
2881
+ if (moduleName == "rental" && subModuleName == "rfq" && currentModule != "purchase") {
2882
+ subModuleName = "cross-hire-rfq";
2883
+ combinedFilters = "(is_rental.eq=1)";
2884
+ }
2885
+ if (moduleName == "rental" && subModuleName == "rfq" && currentModule == "purchase") {
2886
+ moduleName = "purchase";
2887
+ combinedFilters = "(is_rental.eq=0)";
2888
+ }
2889
+ if (moduleName == "rental" && subModuleName == "orders" && request.title !== "Rental Orders" && request.title !== "Replacement Orders") {
2890
+ subModuleName = "cross-hire-orders";
2891
+ combinedFilters = "(is_rental.eq=1)";
2892
+ }
2893
+ if (moduleName == "rental" && (subModuleName == "orders" || subModuleName == "cross-hire-orders") && currentModule == "purchase") {
2894
+ moduleName = "purchase";
2895
+ subModuleName = "purchase-orders";
2896
+ combinedFilters = "(is_rental.eq=0)";
2897
+ }
2898
+ if (moduleName == "rental" && subModuleName == "rental-quotations" && request.title == "Quotations") {
2899
+ combinedFilters = "(is_visible.eq=1&is_rental.eq=1&is_replacement.eq=0)";
2900
+ }
2901
+ if (moduleName == "rental" && subModuleName == "rental-quotations" && request.title == "Replacement Quotations") {
2902
+ combinedFilters = "(is_visible.eq=1&is_rental.eq=1&is_replacement.eq=1)";
2903
+ }
2904
+ if (moduleName == "rental" && subModuleName == "orders" && request.title == "Rental Orders") {
2905
+ subModuleName = "rental-orders";
2906
+ combinedFilters = "(is_rental.eq=1&is_replacement.eq=0)";
2907
+ }
2908
+ if (moduleName == "rental" && subModuleName == "orders" && request.title == "Replacement Orders") {
2909
+ subModuleName = "rental-orders";
2910
+ combinedFilters = "(is_rental.eq=1&is_replacement.eq=1)";
2911
+ }
2912
+ const queryParams = {};
2913
+ if (request.selectedIds && combinedFilters) {
2914
+ if (request.selectedIds.length > 0) {
2915
+ combinedFilters = `(${combinedFilters}&id.in=${request.selectedIds})`;
2916
+ }
2917
+ } else if (request.selectedIds) {
2918
+ if (request.selectedIds.length > 0) {
2919
+ combinedFilters = `(id.in=${request.selectedIds})`;
2920
+ }
2921
+ }
2922
+ if (combinedFilters) {
2923
+ queryParams.filters = combinedFilters;
2924
+ }
2925
+ const queryString = new URLSearchParams(queryParams).toString();
2926
+ const response = await fetch(
2927
+ `${baseUrl2}/${moduleName}/v1/${subModuleName}/${excelpath}${queryString ? `?${queryString}` : ""}`,
2928
+ {
2929
+ headers
2930
+ }
2931
+ );
2932
+ if (!response.ok) {
2933
+ throw new Error(await response.text());
2934
+ }
2935
+ return await response;
2936
+ };
2937
+ const getPdfExportTemplate = async (request) => {
2938
+ var _a, _b;
2939
+ const baseUrl2 = `${utils_apiConfig.getApiConfig().backendBaseUrl}`;
2940
+ const headers = {};
2941
+ if (request["x-token"] !== void 0) {
2942
+ headers["x-token"] = request["x-token"];
2943
+ delete request["x-token"];
2944
+ }
2945
+ if (request["Content-Type"] !== void 0) {
2946
+ headers["Content-Type"] = request["Content-Type"];
2947
+ delete request["Content-Type"];
2948
+ }
2949
+ const pathParts = window.location.pathname.split("/");
2950
+ const currentPath = pathParts.pop();
2951
+ const currentModule = pathParts[3];
2952
+ let moduleName = pathParts[2];
2953
+ if (currentPath == "demand-planning") {
2954
+ moduleName = "purchase";
2955
+ }
2956
+ if (moduleName == "crm") {
2957
+ moduleName = "sales";
2958
+ }
2959
+ if (moduleName == "procurement") {
2960
+ moduleName = "purchase";
2961
+ }
2962
+ let combinedFilters = "";
2963
+ const pdfpath = "generate-pdf";
2964
+ if (currentPath && utils_exportFilters.specificFilters[currentPath]) {
2965
+ combinedFilters = utils_exportFilters.specificFilters[currentPath];
2966
+ }
2967
+ if (currentPath === "items" || currentPath === "item") {
2968
+ if ((request == null ? void 0 : request.title) && (request == null ? void 0 : request.title) == "Non Inventory") {
2969
+ request.title = "non-inventory";
2970
+ } else if ((request == null ? void 0 : request.title) && (request == null ? void 0 : request.title) == "Assembly (Finished product)") {
2971
+ request.title = "assembly";
2972
+ }
2973
+ combinedFilters += `&type.eq=${request == null ? void 0 : request.title.toLowerCase()}`;
2974
+ }
2975
+ if (request.filterQueryString) {
2976
+ const cleanedFilterQueryString = request.filterQueryString.replace(/[{}()]/g, "");
2977
+ if (combinedFilters) {
2978
+ combinedFilters = `(${combinedFilters}&${cleanedFilterQueryString})`;
2979
+ } else {
2980
+ combinedFilters = `(${cleanedFilterQueryString})`;
2981
+ }
2982
+ } else {
2983
+ combinedFilters = `(${combinedFilters})`;
2984
+ }
2985
+ if (combinedFilters === "()") {
2986
+ combinedFilters = "";
2987
+ }
2988
+ if (combinedFilters.includes("is_variant.eq=false|self_variant.eq=true")) {
2989
+ if (moduleName == "rental") {
2990
+ combinedFilters = combinedFilters.replace("is_variant.eq=false|self_variant.eq=true", "(is_variant.eq=false|self_variant.eq=true&is_rental.eq=1)");
2991
+ } else {
2992
+ combinedFilters = combinedFilters.replace("is_variant.eq=false|self_variant.eq=true", "(is_variant.eq=false|self_variant.eq=true)");
2993
+ }
2994
+ }
2995
+ if (currentPath && !utils_exportFilters.specificFilters[currentPath] && !request.filterQueryString) {
2996
+ combinedFilters = "";
2997
+ }
2998
+ let subModuleName = utils_exportFilters.subModuleMappings[currentPath || ""] || currentPath;
2999
+ if (moduleName == "sales" && subModuleName == "quotation") {
3000
+ combinedFilters = "(is_rental.eq=0)";
3001
+ }
3002
+ if (moduleName == "sales" && subModuleName == "sales-orders") {
3003
+ combinedFilters = "(is_rental.eq=0)";
3004
+ }
3005
+ if (moduleName == "rental" && subModuleName == "rental-lead") {
3006
+ combinedFilters = "(is_rental.eq=1)";
3007
+ }
3008
+ if (moduleName == "sales" && subModuleName == "lead") {
3009
+ combinedFilters = "(is_rental.eq=0)";
3010
+ }
3011
+ if (moduleName === "purchase" && (subModuleName === "purchase-requests" || subModuleName === "rfq" || subModuleName === "purchase-orders")) {
3012
+ combinedFilters = "(is_rental.eq=0)";
3013
+ }
3014
+ if (moduleName == "rental" && subModuleName == "quotation") {
3015
+ subModuleName = "rental-quotations";
3016
+ }
3017
+ if (moduleName == "rental" && subModuleName == "opportunity") {
3018
+ subModuleName = "rental-opportunity";
3019
+ }
3020
+ if (moduleName == "rental" && subModuleName == "item") {
3021
+ moduleName = "inventory";
3022
+ subModuleName = "inventory-items";
3023
+ }
3024
+ if (moduleName == "rental" && subModuleName == "category") {
3025
+ moduleName = "inventory";
3026
+ subModuleName = "category-items";
3027
+ }
3028
+ if (moduleName == "rental" && subModuleName == "purchase-requests") {
3029
+ subModuleName = "cross-hire-requests";
3030
+ combinedFilters = "(is_rental.eq=1)";
3031
+ }
3032
+ if (moduleName == "rental" && subModuleName == "rfq" && currentModule != "purchase") {
3033
+ subModuleName = "cross-hire-rfq";
3034
+ combinedFilters = "(is_rental.eq=1)";
3035
+ }
3036
+ if (moduleName == "rental" && subModuleName == "rfq" && currentModule == "purchase") {
3037
+ moduleName = "purchase";
3038
+ combinedFilters = "(is_rental.eq=0)";
3039
+ }
3040
+ if (moduleName == "rental" && subModuleName == "orders" && request.title !== "Rental Orders" && request.title !== "Replacement Orders") {
3041
+ subModuleName = "cross-hire-orders";
3042
+ combinedFilters = "(is_rental.eq=1)";
3043
+ }
3044
+ if (moduleName == "rental" && (subModuleName == "orders" || subModuleName == "cross-hire-orders") && currentModule == "purchase") {
3045
+ moduleName = "purchase";
3046
+ subModuleName = "purchase-orders";
3047
+ combinedFilters = "(is_rental.eq=0)";
3048
+ }
3049
+ if (moduleName == "rental" && subModuleName == "rental-quotations" && request.title == "Quotations") {
3050
+ combinedFilters = "(is_visible.eq=1&is_rental.eq=1&is_replacement.eq=0)";
3051
+ }
3052
+ if (moduleName == "rental" && subModuleName == "rental-quotations" && request.title == "Replacement Quotations") {
3053
+ combinedFilters = "(is_visible.eq=1&is_rental.eq=1&is_replacement.eq=1)";
3054
+ }
3055
+ if (moduleName == "rental" && subModuleName == "orders" && request.title == "Rental Orders") {
3056
+ subModuleName = "rental-orders";
3057
+ combinedFilters = "(is_rental.eq=1&is_replacement.eq=0)";
3058
+ }
3059
+ if (moduleName == "rental" && subModuleName == "orders" && request.title == "Replacement Orders") {
3060
+ subModuleName = "rental-orders";
3061
+ combinedFilters = "(is_rental.eq=1&is_replacement.eq=1)";
3062
+ }
3063
+ const queryParams = {};
3064
+ if (request.selectedIds && request.selectedIds.length > 0) {
3065
+ let rowIds = [];
3066
+ if (Array.isArray(request.selectedIds)) {
3067
+ rowIds = request.selectedIds.map((item) => {
3068
+ if (typeof item === "object" && item !== null && "id" in item) {
3069
+ return String(item.id);
3070
+ }
3071
+ return String(item);
3072
+ }).filter((id) => id && id !== "undefined" && id !== "null");
3073
+ } else {
3074
+ rowIds = [String(request.selectedIds)];
3075
+ }
3076
+ if (rowIds.length > 0) {
3077
+ queryParams.selectedRows = rowIds.join(",");
3078
+ console.log("Sending selectedRows:", queryParams.selectedRows);
3079
+ }
3080
+ }
3081
+ if (((_a = request.activePage) == null ? void 0 : _a.visible_columns) && request.activePage.visible_columns.length > 0) {
3082
+ const visibleColumns = request.columns.filter((col) => col.visible !== false).map((col) => {
3083
+ return {
3084
+ key: col.accessorKey || col.key,
3085
+ label: col.header
3086
+ };
3087
+ }).filter((col) => col.key);
3088
+ if (visibleColumns.length > 0) {
3089
+ queryParams.columns = JSON.stringify(visibleColumns);
3090
+ }
3091
+ }
3092
+ if ((_b = request.activePage) == null ? void 0 : _b.sort) {
3093
+ const hasSort = Array.isArray(request.activePage.sort) ? request.activePage.sort.length > 0 : Object.keys(request.activePage.sort).length > 0;
3094
+ if (hasSort) {
3095
+ let orderObject = {};
3096
+ if (Array.isArray(request.activePage.sort) && request.activePage.sort.length > 0) {
3097
+ const sortItem = request.activePage.sort[0];
3098
+ orderObject[sortItem.id] = sortItem.desc ? "desc" : "asc";
3099
+ } else if (typeof request.activePage.sort === "object") {
3100
+ if (request.activePage.sort.id !== void 0 && request.activePage.sort.desc !== void 0) {
3101
+ orderObject[request.activePage.sort.id] = request.activePage.sort.desc ? "desc" : "asc";
3102
+ } else {
3103
+ orderObject = request.activePage.sort;
3104
+ }
3105
+ }
3106
+ queryParams.order = JSON.stringify(orderObject);
3107
+ }
3108
+ }
3109
+ if (combinedFilters) {
3110
+ queryParams.filters = combinedFilters;
3111
+ }
3112
+ const queryString = new URLSearchParams(queryParams).toString();
3113
+ const response = await fetch(
3114
+ `${baseUrl2}/${moduleName}/v1/${subModuleName}/${pdfpath}${queryString ? `?${queryString}` : ""}`,
3115
+ {
3116
+ headers
3117
+ }
3118
+ );
3119
+ if (!response.ok) {
3120
+ throw new Error(await response.text());
3121
+ }
3122
+ return await response;
3123
+ };
3124
+ const removeIdStaticIdsFromMongoObject = (data) => {
3125
+ const newData = data.map((ele) => {
3126
+ if (typeof ele._id === "number") {
3127
+ return { ...ele, _id: null };
3128
+ }
3129
+ return ele;
3130
+ });
3131
+ return newData;
3132
+ };
3133
+ const spliceUploadedLocation = (uploadedlocation) => {
3134
+ const splitLocation = uploadedlocation.split("/");
3135
+ if (splitLocation.length) {
3136
+ splitLocation.splice(0, splitLocation.length - 2);
3137
+ return splitLocation.join("/");
3138
+ }
3139
+ return uploadedlocation;
3140
+ };
3141
+ async function fetchWithRetry(url, options, maxRetries, retryDelay) {
3142
+ let lastError;
3143
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
3144
+ try {
3145
+ const response = await fetch(url, options);
3146
+ if (response.status >= 500 && attempt < maxRetries) {
3147
+ throw new Error(`Server error: ${response.status} ${response.statusText}`);
3148
+ }
3149
+ return response;
3150
+ } catch (error) {
3151
+ lastError = error;
3152
+ if (error.name === "AbortError") {
3153
+ throw error;
3154
+ }
3155
+ if (attempt < maxRetries) {
3156
+ const delay = retryDelay * Math.pow(2, attempt);
3157
+ console.warn(`Attempt ${attempt + 1} failed, retrying in ${delay}ms...`, error.message);
3158
+ await new Promise((resolve) => setTimeout(resolve, delay));
3159
+ }
3160
+ }
3161
+ }
3162
+ throw lastError;
3163
+ }
3164
+ const handleRegularUpload = async (files, controller, module2, options = {}) => {
3165
+ const BASE_URL = `${utils_apiConfig.getApiConfig().backendBaseUrl}/${module2}/v1/file-upload/`;
3166
+ const COMPLETE_BASE_URL = `${utils_apiConfig.getApiConfig().backendBaseUrl}/${module2}/v1/file-upload/mark-complete`;
3167
+ const authToken = localStorage.getItem(constants_auth.auth.storageTokenKeyName);
3168
+ const {
3169
+ onProgress,
3170
+ chunkSize = 5 * 1024 * 1024,
3171
+ // 5MB default chunk size (S3 minimum for multipart)
3172
+ retryAttempts = 3,
3173
+ retryDelay = 1e3
3174
+ } = options;
3175
+ if (!authToken) {
3176
+ throw new Error("Authentication token not found. Please log in again.");
3177
+ }
3178
+ try {
3179
+ const uploaded = [];
3180
+ for (let fileIndex = 0; fileIndex < files.length; fileIndex++) {
3181
+ const file = files[fileIndex];
3182
+ if (controller.signal.aborted) {
3183
+ throw new Error("Upload cancelled by user");
3184
+ }
3185
+ try {
3186
+ const uploadedLocation = await uploadSingleFile(
3187
+ file,
3188
+ fileIndex,
3189
+ files.length,
3190
+ controller,
3191
+ BASE_URL,
3192
+ COMPLETE_BASE_URL,
3193
+ authToken,
3194
+ chunkSize,
3195
+ retryAttempts,
3196
+ retryDelay,
3197
+ onProgress
3198
+ );
3199
+ uploaded.push(uploadedLocation);
3200
+ } catch (fileError) {
3201
+ console.error(`❌ Failed to upload ${file.name}:`, fileError.message);
3202
+ throw new Error(`Failed to upload ${file.name}: ${fileError.message}`);
3203
+ }
3204
+ }
3205
+ return uploaded;
3206
+ } catch (error) {
3207
+ console.error("❌ Upload process failed:", error.message);
3208
+ throw new Error(error.message || "Upload failed");
3209
+ }
3210
+ };
3211
+ const uploadSingleFile = async (file, fileIndex, totalFiles, controller, baseUrl2, completeUrl, authToken, chunkSize, retryAttempts, retryDelay, onProgress) => {
3212
+ var _a, _b;
3213
+ const isMultipart = file.size > chunkSize;
3214
+ const totalParts = isMultipart ? Math.ceil(file.size / chunkSize) : 1;
3215
+ const preSignedResponse = await fetchWithRetry(
3216
+ `${baseUrl2}?key=${encodeURIComponent(file.name)}&partCount=${totalParts}&mimeType=${encodeURIComponent(file.type)}`,
3217
+ {
3218
+ method: "GET",
3219
+ headers: {
3220
+ "Content-Type": "application/json",
3221
+ "file-size": file.size.toString(),
3222
+ "x-token": authToken
3223
+ },
3224
+ signal: controller.signal
3225
+ },
3226
+ retryAttempts,
3227
+ retryDelay
3228
+ );
3229
+ if (!preSignedResponse.ok) {
3230
+ const errorData = await preSignedResponse.json().catch(() => ({}));
3231
+ throw new Error(`Failed to get pre-signed URL: ${errorData.message || preSignedResponse.statusText}`);
3232
+ }
3233
+ const pData = await preSignedResponse.json();
3234
+ const preSignedData = (_a = pData == null ? void 0 : pData.data) == null ? void 0 : _a.preSignedData;
3235
+ if (!preSignedData) {
3236
+ throw new Error("Invalid pre-signed URL response format");
3237
+ }
3238
+ const { uploadId, preSignedUrls, presignedUrl, location } = preSignedData;
3239
+ if (isMultipart) {
3240
+ return await handleMultipartUpload(
3241
+ file,
3242
+ fileIndex,
3243
+ totalFiles,
3244
+ uploadId,
3245
+ preSignedUrls,
3246
+ controller,
3247
+ completeUrl,
3248
+ authToken,
3249
+ chunkSize,
3250
+ retryAttempts,
3251
+ retryDelay,
3252
+ onProgress
3253
+ );
3254
+ } else {
3255
+ return await handleSinglePartUpload(
3256
+ file,
3257
+ fileIndex,
3258
+ totalFiles,
3259
+ presignedUrl || ((_b = preSignedUrls == null ? void 0 : preSignedUrls[0]) == null ? void 0 : _b.presignedUrl),
3260
+ location,
3261
+ controller,
3262
+ onProgress
3263
+ );
3264
+ }
3265
+ };
3266
+ const handleSinglePartUpload = async (file, fileIndex, totalFiles, presignedUrl, location, controller, onProgress) => {
3267
+ if (!presignedUrl) {
3268
+ throw new Error("No presigned URL provided for single part upload");
3269
+ }
3270
+ const response = await fetch(presignedUrl, {
3271
+ method: "PUT",
3272
+ body: file,
3273
+ headers: {
3274
+ "Content-Type": file.type || "application/octet-stream",
3275
+ "Content-Length": file.size.toString()
3276
+ },
3277
+ signal: controller.signal
3278
+ });
3279
+ if (!response.ok) {
3280
+ throw new Error(`Single part upload failed: ${response.statusText}`);
3281
+ }
3282
+ onProgress == null ? void 0 : onProgress({
3283
+ fileName: file.name,
3284
+ progress: 100,
3285
+ bytesUploaded: file.size,
3286
+ totalBytes: file.size,
3287
+ fileIndex: fileIndex + 1,
3288
+ totalFiles
3289
+ });
3290
+ if (!location) {
3291
+ throw new Error("No location provided for single part upload");
3292
+ }
3293
+ return spliceUploadedLocation(location);
3294
+ };
3295
+ const handleMultipartUpload = async (file, fileIndex, totalFiles, uploadId, preSignedUrls, controller, completeUrl, authToken, chunkSize, retryAttempts, retryDelay, onProgress) => {
3296
+ var _a;
3297
+ if (!uploadId || !preSignedUrls || preSignedUrls.length === 0) {
3298
+ throw new Error("Invalid multipart upload data: missing uploadId or preSignedUrls");
3299
+ }
3300
+ const uploadedParts = [];
3301
+ let totalBytesUploaded = 0;
3302
+ for (let i = 0; i < preSignedUrls.length; i++) {
3303
+ if (controller.signal.aborted) {
3304
+ throw new Error("Upload cancelled by user");
3305
+ }
3306
+ const { partNumber, presignedUrl } = preSignedUrls[i];
3307
+ const start = i * chunkSize;
3308
+ const end = Math.min(start + chunkSize, file.size);
3309
+ const chunk = file.slice(start, end);
3310
+ try {
3311
+ const partResponse = await fetchWithRetry(
3312
+ presignedUrl,
3313
+ {
3314
+ method: "PUT",
3315
+ body: chunk,
3316
+ headers: {
3317
+ "Content-Type": "application/octet-stream",
3318
+ "Content-Length": chunk.size.toString()
3319
+ },
3320
+ signal: controller.signal
3321
+ },
3322
+ retryAttempts,
3323
+ retryDelay
3324
+ );
3325
+ if (!partResponse.ok) {
3326
+ throw new Error(`Part ${partNumber} upload failed: ${partResponse.statusText}`);
3327
+ }
3328
+ uploadedParts.push({
3329
+ partNumber
3330
+ });
3331
+ totalBytesUploaded += chunk.size;
3332
+ const progress = Math.round(totalBytesUploaded / file.size * 100);
3333
+ onProgress == null ? void 0 : onProgress({
3334
+ fileName: file.name,
3335
+ progress,
3336
+ bytesUploaded: totalBytesUploaded,
3337
+ totalBytes: file.size,
3338
+ fileIndex: fileIndex + 1,
3339
+ totalFiles
3340
+ });
3341
+ } catch (error) {
3342
+ if (error.name === "AbortError") {
3343
+ throw new Error("Upload cancelled by user");
3344
+ }
3345
+ throw new Error(`Failed to upload part ${partNumber}: ${error.message}`);
3346
+ }
3347
+ }
3348
+ uploadedParts.sort((a, b) => a.partNumber - b.partNumber);
3349
+ const completeResponse = await fetchWithRetry(
3350
+ completeUrl,
3351
+ {
3352
+ method: "POST",
3353
+ headers: {
3354
+ "Content-Type": "application/json",
3355
+ "x-token": authToken
3356
+ },
3357
+ body: JSON.stringify({
3358
+ fileName: file.name,
3359
+ uploadId
3360
+ //parts: uploadedParts // Include the uploaded parts with ETags
3361
+ }),
3362
+ signal: controller.signal
3363
+ },
3364
+ retryAttempts,
3365
+ retryDelay
3366
+ );
3367
+ if (!completeResponse.ok) {
3368
+ const errorData = await completeResponse.json().catch(() => ({}));
3369
+ throw new Error(`Failed to complete multipart upload: ${errorData.message || completeResponse.statusText}`);
3370
+ }
3371
+ const completeData = await completeResponse.json();
3372
+ if (!((_a = completeData.data) == null ? void 0 : _a.location)) {
3373
+ throw new Error("Invalid completion response format - no location received");
3374
+ }
3375
+ return spliceUploadedLocation(completeData.data.location);
3376
+ };
3377
+ const uploadFiles = async (files, module2 = "sales", options = {}) => {
3378
+ var _a, _b, _c;
3379
+ if (Array.isArray(files) && ((_a = files == null ? void 0 : files.filter((i) => i)) == null ? void 0 : _a.length) === 0) return [];
3380
+ try {
3381
+ let uFiles = [];
3382
+ const config = utils_apiConfig.getApiConfig();
3383
+ const bUrl = config.s3BucketUrl;
3384
+ const bUrl2 = bUrl == null ? void 0 : bUrl.replace("https://", "");
3385
+ const controller = new AbortController();
3386
+ const iFiles = files ? Array.isArray(files) ? files : [files] : [];
3387
+ const existingFiles = iFiles.filter((file) => !(file instanceof File));
3388
+ if (iFiles && iFiles.length) {
3389
+ const validFiles = iFiles.filter((file) => file instanceof File);
3390
+ if (validFiles && validFiles.length) {
3391
+ uFiles = await handleRegularUpload(validFiles, controller, module2, options);
3392
+ } else {
3393
+ console.warn("⚠️ No valid File objects found in the provided input");
3394
+ }
3395
+ }
3396
+ return ((_c = (_b = [...uFiles, ...existingFiles]) == null ? void 0 : _b.map((f) => {
3397
+ var _a2, _b2, _c2;
3398
+ return (_c2 = (_b2 = (_a2 = f == null ? void 0 : f.split(bUrl)) == null ? void 0 : _a2.join("")) == null ? void 0 : _b2.split(bUrl2)) == null ? void 0 : _c2.join("");
3399
+ })) == null ? void 0 : _c.filter(Boolean)) || [];
3400
+ } catch (error) {
3401
+ let errorMessage = "Something went wrong during file upload.";
3402
+ if (error instanceof Error) {
3403
+ errorMessage = error.message;
3404
+ }
3405
+ console.error("❌ Upload failed:", errorMessage);
3406
+ throw new Error(errorMessage);
3407
+ }
3408
+ };
3409
+ const formatDateForPayload = (date) => date && dayjs(date).isValid() ? dayjs(date).format("YYYY-MM-DD") : void 0;
3410
+ const formatTimeForPayload = (date) => date && dayjs(date).isValid() ? dayjs(date).format("HH:mm:ss") : void 0;
3411
+ const formatDateTimeForPayload = (date) => date && dayjs(date).isValid() ? dayjs(date).format("YYYY-MM-DD HH:mm:ss") : void 0;
3412
+ function isJSONString(str) {
3413
+ if (!str) return false;
3414
+ try {
3415
+ return JSON.parse(str);
3416
+ } catch (e) {
3417
+ return false;
3418
+ }
3419
+ }
3420
+ const getErrorMessage = (error) => {
3421
+ var _a, _b;
3422
+ if (error instanceof Error) return error.message;
3423
+ else if ((_a = isJSONString(error)) == null ? void 0 : _a.message) return (_b = isJSONString(error)) == null ? void 0 : _b.message;
3424
+ else if (typeof error === "string") return error;
3425
+ else return "Something went wrong";
3426
+ };
3427
+ const InvoiceStatus = {
3428
+ Approved: "Approve",
3429
+ Rejected: "Reject"
3430
+ };
3431
+ const defaultCurrencySymbol = (currencyData) => {
3432
+ var _a;
3433
+ if (currencyData == null ? void 0 : currencyData.symbol) {
3434
+ return currencyData.symbol;
3435
+ }
3436
+ try {
3437
+ const userData = JSON.parse(localStorage.getItem("_u_data") || "{}");
3438
+ return ((_a = userData == null ? void 0 : userData.currency_data) == null ? void 0 : _a.symbol) || "";
3439
+ } catch {
3440
+ return "";
3441
+ }
3442
+ };
3443
+ const getCurrencySymbol = (currencyData) => {
3444
+ var _a;
3445
+ if (currencyData == null ? void 0 : currencyData.symbol) {
3446
+ return currencyData.symbol;
3447
+ }
3448
+ try {
3449
+ const userData = JSON.parse(localStorage.getItem("_u_data") || "{}");
3450
+ if ((currencyData == null ? void 0 : currencyData.company_id) && (userData == null ? void 0 : userData.company_currencies)) {
3451
+ const companyCurrency = userData.company_currencies[currencyData.company_id];
3452
+ if (companyCurrency == null ? void 0 : companyCurrency.symbol) {
3453
+ return companyCurrency.symbol;
3454
+ }
3455
+ }
3456
+ return ((_a = userData == null ? void 0 : userData.currency_data) == null ? void 0 : _a.symbol) || "";
3457
+ } catch {
3458
+ return "";
3459
+ }
3460
+ };
3461
+ const defaultCurrencyFormat = (currencyData) => {
3462
+ var _a;
3463
+ if (currencyData == null ? void 0 : currencyData.number_format) {
3464
+ return currencyData.number_format;
3465
+ }
3466
+ try {
3467
+ const userData = JSON.parse(localStorage.getItem("_u_data") || "{}");
3468
+ return ((_a = userData == null ? void 0 : userData.currency_data) == null ? void 0 : _a.number_format) || "";
3469
+ } catch {
3470
+ return "";
3471
+ }
3472
+ };
3473
+ const getCurrencyFormat = (currencyData) => {
3474
+ var _a;
3475
+ if (currencyData == null ? void 0 : currencyData.number_format) {
3476
+ return currencyData.number_format;
3477
+ }
3478
+ try {
3479
+ const userData = JSON.parse(localStorage.getItem("_u_data") || "{}");
3480
+ if ((currencyData == null ? void 0 : currencyData.company_id) && (userData == null ? void 0 : userData.company_currency_formats)) {
3481
+ const companyCurrencyFormat = userData.company_currencies[currencyData.company_id];
3482
+ if (companyCurrencyFormat == null ? void 0 : companyCurrencyFormat.number_format) {
3483
+ return companyCurrencyFormat.number_format;
3484
+ }
3485
+ }
3486
+ return ((_a = userData == null ? void 0 : userData.currency_data) == null ? void 0 : _a.number_format) || "";
3487
+ } catch {
3488
+ return "";
3489
+ }
3490
+ };
3491
+ const defaultCompany = (userData) => {
3492
+ let user = userData;
3493
+ if (!user) {
3494
+ try {
3495
+ user = JSON.parse(localStorage.getItem("_u_data") || "{}");
3496
+ } catch {
3497
+ return null;
3498
+ }
3499
+ }
3500
+ const accessCompanies = (user == null ? void 0 : user.accessCompanies) || [];
3501
+ const defaultCompanyId = (user == null ? void 0 : user.company_id) || null;
3502
+ let dcId = defaultCompanyId;
3503
+ if (Array.isArray(accessCompanies) && (accessCompanies == null ? void 0 : accessCompanies.length) > 0) {
3504
+ if (!(accessCompanies == null ? void 0 : accessCompanies.includes(defaultCompanyId))) {
3505
+ dcId = accessCompanies == null ? void 0 : accessCompanies[0];
3506
+ }
3507
+ }
3508
+ return dcId ? Number(dcId) : null;
3509
+ };
3510
+ function omitDataKeys(obj, extra) {
3511
+ const defaultOmitKeys = [
3512
+ "created_at",
3513
+ "updated_at",
3514
+ "created_by",
3515
+ "created_user",
3516
+ "updated_by",
3517
+ "updated_user",
3518
+ "is_deleted",
3519
+ "deleted_user",
3520
+ "deleted_by",
3521
+ "deleted_at",
3522
+ ...extra ? extra : []
3523
+ ];
3524
+ if (Array.isArray(obj)) {
3525
+ return obj.map((item) => omitDataKeys(item, extra));
3526
+ }
3527
+ if (_.isObject(obj) && !Array.isArray(obj)) {
3528
+ return _.mapValues(
3529
+ _.omitBy(
3530
+ obj,
3531
+ (_2, key) => defaultOmitKeys.includes(key) || key.endsWith("_data") || key.endsWith("_status")
3532
+ ),
3533
+ (value) => {
3534
+ if (_.isObject(value) && !dayjs.isDayjs(value)) {
3535
+ return omitDataKeys(value, extra);
3536
+ }
3537
+ return value;
3538
+ }
3539
+ );
3540
+ }
3541
+ return obj;
3542
+ }
3543
+ const getLabelValuePairs = (dataArray, fallbackArray, labelKeys, valueKey, labelFormatter) => {
3544
+ return _.map(dataArray, (item) => {
3545
+ const label = labelFormatter ? labelFormatter(item) : _.compact(labelKeys.map((key) => _.get(item, key, ""))).filter((v) => Boolean(v == null ? void 0 : v.trim())).join(", ");
3546
+ return {
3547
+ ...item,
3548
+ label,
3549
+ value: _.get(item, valueKey, null)
3550
+ };
3551
+ }) || fallbackArray;
3552
+ };
3553
+ function formatEmptyDataToNull(obj) {
3554
+ if (Array.isArray(obj)) {
3555
+ return obj.map((item) => formatEmptyDataToNull(item));
3556
+ }
3557
+ if (_.isObject(obj)) {
3558
+ return _.mapValues(obj, (value, key) => {
3559
+ if (Array.isArray(value)) {
3560
+ return value;
3561
+ }
3562
+ if (_.isObject(value) && !dayjs.isDayjs(value) && !(value instanceof File)) {
3563
+ return formatEmptyDataToNull(value);
3564
+ }
3565
+ if (!value && value !== 0 && value !== false) {
3566
+ return null;
3567
+ }
3568
+ if (key.includes("_id") && !key.includes("_ids") || key.includes("_amount")) {
3569
+ return Array.isArray(value) ? value.map(Number) : Number(value);
3570
+ } else if (key.includes("date_time")) {
3571
+ return formatDateTimeForPayload(value);
3572
+ } else if (key.includes("date")) {
3573
+ return formatDateForPayload(value);
3574
+ } else if (key.includes("_time")) {
3575
+ return formatTimeForPayload(value);
3576
+ } else if (Array.isArray(value)) {
3577
+ return value.length ? value : [];
3578
+ }
3579
+ return value;
3580
+ });
3581
+ }
3582
+ return obj;
3583
+ }
3584
+ function downloadFile(fileUrl, fileName = "") {
3585
+ if (!fileUrl || fileUrl === "") return;
3586
+ const a = document.createElement("a");
3587
+ a.target = "_blank";
3588
+ a.href = fileUrl;
3589
+ a.download = fileName;
3590
+ document.body.appendChild(a);
3591
+ a.click();
3592
+ document.body.removeChild(a);
3593
+ }
3594
+ const downloadDoc = async ({
3595
+ api: api2,
3596
+ // fileName,
3597
+ raw
3598
+ }) => {
3599
+ const headers = {
3600
+ "Content-Type": "application/json",
3601
+ ...getToken()
3602
+ };
3603
+ const config = utils_apiConfig.getApiConfig();
3604
+ const response = await fetch(
3605
+ `${config.backendBaseUrl}/${api2}`,
3606
+ {
3607
+ method: "POST",
3608
+ headers,
3609
+ body: raw,
3610
+ redirect: "follow"
3611
+ }
3612
+ );
3613
+ if (!response.ok) {
3614
+ throw new Error(await response.text());
3615
+ }
3616
+ const blob = await response.blob();
3617
+ const url = window.URL.createObjectURL(blob);
3618
+ window.open(url, "_blank");
3619
+ setTimeout(() => window.URL.revokeObjectURL(url), 1e3);
3620
+ };
3621
+ function formatResponseDatesToDayJS(obj) {
3622
+ if (Array.isArray(obj)) {
3623
+ return obj.map((item) => formatResponseDatesToDayJS(item));
3624
+ }
3625
+ if (_.isObject(obj)) {
3626
+ return _.mapValues(obj, (value, key) => {
3627
+ if (_.isObject(value) && !dayjs.isDayjs(value)) {
3628
+ return formatResponseDatesToDayJS(value);
3629
+ }
3630
+ if (key.includes("date") && value) {
3631
+ return dayjs(dateFormat.formatUtcDate(value, "YYYY-MM-DD HH:mm:ss"));
3632
+ }
3633
+ if (key.includes("_time") && value) {
3634
+ return dayjs(`${dayjs().format("YYYY-MM-DD")} ${value}`);
3635
+ }
3636
+ return value;
3637
+ });
3638
+ }
3639
+ return obj;
3640
+ }
3641
+ const toFixedWithNumbers = (num, fraction) => {
3642
+ var _a;
3643
+ let f = fraction ?? getDefaultFraction();
3644
+ let a = num || num === 0 ? (_a = Number(num)) == null ? void 0 : _a.toFixed(f) : num;
3645
+ return a;
3646
+ };
3647
+ const findById = (arr, id) => arr.find((a) => a.id == id);
3648
+ const getTaxAmountFromMultipleTaxCodes = (amount, taxCodes = [], detail = false) => {
3649
+ if (!amount) return 0;
3650
+ let totalTaxAmount = 0;
3651
+ const taxCodeDetail = taxCodes == null ? void 0 : taxCodes.map((code) => {
3652
+ const taxAmount = amount * (code.rate / 100);
3653
+ totalTaxAmount += taxAmount;
3654
+ return {
3655
+ id: code.id,
3656
+ name: code.name,
3657
+ rate: code.rate,
3658
+ tax_amount: taxAmount
3659
+ };
3660
+ });
3661
+ if (detail) {
3662
+ return taxCodeDetail;
3663
+ }
3664
+ return totalTaxAmount;
3665
+ };
3666
+ const getTaxAmountDataFromMultipleTaxCodes = (grossAmount, netAmount, taxCodes = [], detail = false) => {
3667
+ let totalTaxAmount = 0;
3668
+ let totalTaxRate = 0;
3669
+ const taxCodeDetail = taxCodes.map((code) => {
3670
+ const taxBaseAmount = code.applies_to === "Gross" ? netAmount : grossAmount;
3671
+ const taxAmount = taxBaseAmount * (code.rate / 100);
3672
+ totalTaxAmount += taxAmount;
3673
+ totalTaxRate += code.rate;
3674
+ return {
3675
+ id: code.id,
3676
+ name: code.name,
3677
+ rate: code.rate,
3678
+ tax_amount: taxAmount
3679
+ };
3680
+ });
3681
+ if (detail) {
3682
+ return taxCodeDetail;
3683
+ }
3684
+ return {
3685
+ amount: totalTaxAmount,
3686
+ rate: totalTaxRate
3687
+ };
3688
+ };
3689
+ const calculateAmountData = (quantity, rate, discount_rate, discounted_items, taxCodes = [], treatRateAsPercentage = false) => {
3690
+ const amount = quantity * rate;
3691
+ let discountAmount = Number(discount_rate);
3692
+ if ((discounted_items == null ? void 0 : discounted_items.discount_category) === "rate" || treatRateAsPercentage) {
3693
+ discountAmount = discount_rate ? amount * (discount_rate / 100) : 0;
3694
+ }
3695
+ let grossAmount = amount - discountAmount || 0;
3696
+ if (grossAmount < 0) {
3697
+ grossAmount = 0;
3698
+ }
3699
+ const taxData = getTaxAmountDataFromMultipleTaxCodes(
3700
+ grossAmount,
3701
+ amount,
3702
+ taxCodes
3703
+ );
3704
+ const taxAmount = (taxData == null ? void 0 : taxData.amount) || 0;
3705
+ const taxRate = (taxData == null ? void 0 : taxData.rate) || 0;
3706
+ const netAmount = grossAmount + Number(taxAmount) || 0;
3707
+ const totalAmount = grossAmount + Number(taxAmount) || 0;
3708
+ return { grossAmount, taxAmount, taxRate, discountAmount, netAmount, totalAmount };
3709
+ };
3710
+ const hasValue = (object, skipFields = []) => {
3711
+ const checkValue = (value, skipFields2) => {
3712
+ if (_.isArray(value)) {
3713
+ return _.some(value, (item) => checkValue(item, skipFields2));
3714
+ }
3715
+ if (_.isPlainObject(value)) {
3716
+ return _.some(value, (val, key) => {
3717
+ if (skipFields2.includes(key)) return false;
3718
+ return checkValue(val, skipFields2);
3719
+ });
3720
+ }
3721
+ return !_.isNil(value) && !_.isEmpty(value);
3722
+ };
3723
+ return checkValue(object, skipFields);
3724
+ };
3725
+ const formatAmountWithCurrency = (amount, currencySymbol) => {
3726
+ if (!amount) {
3727
+ return `${currencySymbol ? currencySymbol : ""}`;
3728
+ }
3729
+ const defaultSymbol = defaultCurrencySymbol();
3730
+ const symbol = currencySymbol || defaultSymbol;
3731
+ return `${symbol} ${Number(amount).toFixed(2)}`;
3732
+ };
3733
+ const formatAmountWithCurrencyData = (amount, currencySymbol) => {
3734
+ if (!amount) {
3735
+ return "";
3736
+ }
3737
+ const symbol = currencySymbol || "";
3738
+ return `${symbol} ${Number(amount).toFixed(2)}`;
3739
+ };
3740
+ const manageItems = ({
3741
+ key,
3742
+ action,
3743
+ value,
3744
+ items = [],
3745
+ itemIndex
3746
+ }) => {
3747
+ switch (action) {
3748
+ case "add": {
3749
+ return [...items, value];
3750
+ }
3751
+ case "update": {
3752
+ return items.map((item, index) => (itemIndex >= 0 ? itemIndex === index : item[key] === value[key]) ? value : item);
3753
+ }
3754
+ case "delete": {
3755
+ if ((value == null ? void 0 : value.index) !== void 0) {
3756
+ return items.filter((_2, index) => index !== value.index);
3757
+ }
3758
+ return items.filter((item) => item[key] !== value[key]);
3759
+ }
3760
+ default:
3761
+ console.warn(`Unsupported action type: ${action}`);
3762
+ return items;
3763
+ }
3764
+ };
3765
+ function getPartyName(party) {
3766
+ if (!party) return "";
3767
+ const {
3768
+ name = "",
3769
+ first_name = "",
3770
+ middle_name = "",
3771
+ last_name = "",
3772
+ company_name = ""
3773
+ } = party;
3774
+ const trimmedName = (name == null ? void 0 : name.trim()) || "";
3775
+ const trimmedFirstName = (first_name == null ? void 0 : first_name.trim()) || "";
3776
+ const trimmedMiddleName = (middle_name == null ? void 0 : middle_name.trim()) || "";
3777
+ const trimmedLastName = (last_name == null ? void 0 : last_name.trim()) || "";
3778
+ const trimmedCompanyName = (company_name == null ? void 0 : company_name.trim()) || "";
3779
+ if ((party == null ? void 0 : party.account_type) === "Individual") {
3780
+ return [trimmedFirstName, trimmedMiddleName, trimmedLastName].filter(Boolean).join(" ");
3781
+ } else if ((party == null ? void 0 : party.account_type) === "Company") {
3782
+ return trimmedCompanyName;
3783
+ } else {
3784
+ if (trimmedName) return trimmedName;
3785
+ if (trimmedFirstName) {
3786
+ return [trimmedFirstName, trimmedMiddleName, trimmedLastName].filter(Boolean).join(" ");
3787
+ }
3788
+ if (trimmedCompanyName) return trimmedCompanyName;
3789
+ }
3790
+ return "";
3791
+ }
3792
+ const partyEmailIds = (json) => {
3793
+ if (!json) return "";
3794
+ try {
3795
+ const parsed = JSON.parse(json);
3796
+ return Array.isArray(parsed) ? parsed.join(", ") : "";
3797
+ } catch {
3798
+ return json;
3799
+ }
3800
+ };
3801
+ function formatResponseOnlyDatesToDayJS(obj) {
3802
+ if (Array.isArray(obj)) {
3803
+ return obj.map((item) => formatResponseDatesToDayJS(item));
3804
+ }
3805
+ if (_.isObject(obj)) {
3806
+ return _.mapValues(obj, (value, key) => {
3807
+ if (_.isObject(value) && !dayjs.isDayjs(value)) {
3808
+ return formatResponseDatesToDayJS(value);
3809
+ }
3810
+ if (key.includes("date") && value) {
3811
+ return dayjs(value);
3812
+ }
3813
+ return value;
3814
+ });
3815
+ }
3816
+ return obj;
3817
+ }
3818
+ const fetchExchageRate = async (id, type = "Buying") => {
3819
+ try {
3820
+ const response = await api.postV1CurrencyInfo({
3821
+ currancy_id: id,
3822
+ type,
3823
+ ...getToken()
3824
+ });
3825
+ const { exchange_rate = 1, reverse_rate = 1 } = (response == null ? void 0 : response.data) || {};
3826
+ return { exchange_rate, reverse_rate };
3827
+ } catch (error) {
3828
+ return { exchange_rate: 1, reverse_rate: 1 };
3829
+ }
3830
+ };
3831
+ const showSnackBar = (error) => {
3832
+ const message = getErrorMessage(error == null ? void 0 : error.message);
3833
+ notistack.enqueueSnackbar(message, {
3834
+ variant: "error"
3835
+ });
3836
+ };
3837
+ const fetchCompanyLocations = async (companyId) => {
3838
+ const res = await fetchApi(
3839
+ {
3840
+ apiKey: "location",
3841
+ filters: {
3842
+ filters: { "&company_id.in": companyId }
3843
+ }
3844
+ }
3845
+ );
3846
+ return (res == null ? void 0 : res.data) || [];
3847
+ };
3848
+ const fetchItems = async (itemId, attributes) => {
3849
+ const res = await fetchApi(
3850
+ {
3851
+ apiKey: "items",
3852
+ filters: {
3853
+ filters: { "&id.in": itemId },
3854
+ select: attributes
3855
+ }
3856
+ }
3857
+ );
3858
+ return (res == null ? void 0 : res.data) || [];
3859
+ };
3860
+ const getOptionsData = async (key, id, select, isArray = false) => {
3861
+ const res = await fetchApi(
3862
+ {
3863
+ apiKey: key,
3864
+ filters: {
3865
+ filters: { "&id.in": id },
3866
+ select
3867
+ }
3868
+ }
3869
+ );
3870
+ return isArray ? res == null ? void 0 : res.data : Array.isArray(res == null ? void 0 : res.data) ? res == null ? void 0 : res.data[0] : null;
3871
+ };
3872
+ const fetchOptions = async (key, filters, select, isArray = false) => {
3873
+ const res = await fetchApi(
3874
+ {
3875
+ apiKey: key,
3876
+ filters: {
3877
+ filters,
3878
+ select
3879
+ }
3880
+ }
3881
+ );
3882
+ return isArray ? res == null ? void 0 : res.data : Array.isArray(res == null ? void 0 : res.data) ? res == null ? void 0 : res.data[0] : null;
3883
+ };
3884
+ const createdOnAndBy = (data) => {
3885
+ var _a;
3886
+ const { created_at = "", created_user = {}, created_by_data = {} } = data || {};
3887
+ const { first_name = "", last_name = "" } = ((_a = Object.keys(created_user)) == null ? void 0 : _a.length) ? created_user : created_by_data;
3888
+ const fName = (first_name == null ? void 0 : first_name.trim()) || "";
3889
+ const lName = (last_name == null ? void 0 : last_name.trim()) || "";
3890
+ const cAt = (created_at == null ? void 0 : created_at.trim()) || "";
3891
+ const text = `Created on ${dateFormat.formatDate(cAt, "DD MMM, YYYY")}`;
3892
+ if (!(fName || lName)) return text;
3893
+ return `${text} · ${utils_formatText.default(`${fName} ${lName}`)}`;
3894
+ };
3895
+ const getName = (obj, keys) => {
3896
+ if (_.isEmpty(obj)) {
3897
+ return "-";
3898
+ }
3899
+ return keys.map((key) => obj == null ? void 0 : obj[key]).filter((n) => Boolean(n && (n == null ? void 0 : n.trim()))).join(" ");
3900
+ };
3901
+ const getToken = (token2 = null) => {
3902
+ const timezone = moment.tz.guess();
3903
+ const offsetMinutes = moment.tz.zone(timezone).utcOffset(Date.now());
3904
+ const requestToken = {
3905
+ "x-token": token2 ? token2 : localStorage.getItem(constants_auth.auth.storageTokenKeyName) || void 0,
3906
+ "x-timezone": offsetMinutes
3907
+ };
3908
+ return requestToken;
3909
+ };
3910
+ const checkForDuplicate = async (payload) => {
3911
+ try {
3912
+ const response = await api.postV1PartiesCheck({ ...getToken(), ...payload });
3913
+ return (response == null ? void 0 : response.data) || false;
3914
+ } catch (error) {
3915
+ throw new Error("An error occurred while checking for duplicates.");
3916
+ }
3917
+ };
3918
+ const partyDuplicateCheck = async (activeTab, fValues, defaultValues) => {
3919
+ var _a, _b, _c, _d, _e;
3920
+ const values = { ...fValues };
3921
+ console.log("Checking for duplicates with values:", values, "and defaultValues:", defaultValues);
3922
+ if (activeTab !== 0 || !((values == null ? void 0 : values.contact_no) || (values == null ? void 0 : values.company_name) || (values == null ? void 0 : values.email_ids))) {
3923
+ return null;
3924
+ }
3925
+ if (activeTab !== 0 || !(values == null ? void 0 : values.contact_no) && (values == null ? void 0 : values.company_name) && (values == null ? void 0 : values.account_type) !== "Company") {
3926
+ return null;
3927
+ }
3928
+ const rawNo = String((values == null ? void 0 : values.contact_no) || "").replace(/^\+/, "");
3929
+ let phoneNumber = parsePhoneNumberFromString(`+${rawNo}`);
3930
+ if (!(phoneNumber == null ? void 0 : phoneNumber.nationalNumber) && (values == null ? void 0 : values.country_code)) {
3931
+ phoneNumber = parsePhoneNumberFromString(`${values.country_code}${rawNo}`);
3932
+ }
3933
+ values.contact_no = (phoneNumber == null ? void 0 : phoneNumber.nationalNumber) || (values == null ? void 0 : values.contact_no);
3934
+ values.country_code = (phoneNumber == null ? void 0 : phoneNumber.countryCallingCode) ? `+${phoneNumber.countryCallingCode}` : values == null ? void 0 : values.country_code;
3935
+ const normalizePhone = (contactNo2, countryCode2) => {
3936
+ const rNo = String(contactNo2 || "").replace(/^\+/, "");
3937
+ let p = parsePhoneNumberFromString(`+${rNo}`);
3938
+ if (!(p == null ? void 0 : p.nationalNumber) && countryCode2) {
3939
+ p = parsePhoneNumberFromString(`${countryCode2}${rNo}`);
3940
+ }
3941
+ return {
3942
+ contact_no: (p == null ? void 0 : p.nationalNumber) || String(contactNo2 || ""),
3943
+ country_code: (p == null ? void 0 : p.countryCallingCode) ? `+${p.countryCallingCode}` : String(countryCode2 || "")
3944
+ };
3945
+ };
3946
+ const normalizedDefault = normalizePhone(defaultValues == null ? void 0 : defaultValues.contact_no, defaultValues == null ? void 0 : defaultValues.country_code);
3947
+ const isDirtyPhone = !defaultValues || normalizedDefault.contact_no !== values.contact_no || normalizedDefault.country_code !== values.country_code;
3948
+ const isDirtyCompanyName = !defaultValues || ((_a = defaultValues == null ? void 0 : defaultValues.company_name) == null ? void 0 : _a.trim()) !== ((_b = values == null ? void 0 : values.company_name) == null ? void 0 : _b.trim());
3949
+ const isDirtyEmail = !defaultValues || ((_c = defaultValues == null ? void 0 : defaultValues.email_ids) == null ? void 0 : _c.trim()) !== ((_d = values == null ? void 0 : values.email_ids) == null ? void 0 : _d.trim());
3950
+ console.log("isDirtyPhone:", isDirtyPhone, "isDirtyCompanyName:", isDirtyCompanyName, "isDirtyEmail:", isDirtyEmail);
3951
+ if (!isDirtyPhone && !isDirtyCompanyName && !isDirtyEmail) {
3952
+ return null;
3953
+ }
3954
+ const countryCode = (phoneNumber == null ? void 0 : phoneNumber.nationalNumber) ? (phoneNumber == null ? void 0 : phoneNumber.countryCallingCode) ? `+${phoneNumber == null ? void 0 : phoneNumber.countryCallingCode}` : "" : values == null ? void 0 : values.country_code;
3955
+ const contactNo = (phoneNumber == null ? void 0 : phoneNumber.nationalNumber) || (values == null ? void 0 : values.contact_no);
3956
+ const duplicateCheckPayload = {
3957
+ party: {
3958
+ is_ekyc: (values == null ? void 0 : values.is_ekyc) || false,
3959
+ account_type: values == null ? void 0 : values.account_type,
3960
+ // "Individual" or "Company"
3961
+ ...isDirtyPhone && countryCode ? { country_code: countryCode } : {},
3962
+ ...isDirtyPhone && contactNo ? { contact_no: contactNo } : {},
3963
+ ...(values == null ? void 0 : values.account_type) === "Company" && isDirtyCompanyName ? { company_name: values == null ? void 0 : values.company_name } : {},
3964
+ ...isDirtyEmail && (values == null ? void 0 : values.email_ids) ? {
3965
+ email_ids: Array.isArray(values.email_ids) ? values.email_ids : [values.email_ids]
3966
+ } : {}
3967
+ }
3968
+ };
3969
+ try {
3970
+ const response = await checkForDuplicate(duplicateCheckPayload);
3971
+ console.log("Duplicate check response:", response);
3972
+ if ((_e = response == null ? void 0 : response.party_exists) == null ? void 0 : _e.exists) {
3973
+ const duplicateBy = response.party_exists.duplicateBy || "other";
3974
+ const nameLabel = (values == null ? void 0 : values.is_ekyc) ? "Lead name" : "Company name";
3975
+ const duplicateMessageMap = {
3976
+ phone: "Phone number already exists.",
3977
+ email: "Email already exists.",
3978
+ company_name: `${nameLabel} already exists.`,
3979
+ phone_and_email: "Phone number and email already exist.",
3980
+ phone_and_company_name: `Phone number and ${nameLabel.toLowerCase()} already exist.`,
3981
+ email_and_company_name: `Email and ${nameLabel.toLowerCase()} already exist.`,
3982
+ other: "Record with these details already exists."
3983
+ };
3984
+ return duplicateMessageMap[duplicateBy] || "Record with these details already exists.";
3985
+ }
3986
+ } catch (error) {
3987
+ return error.message || "An error occurred while checking for duplicates.";
3988
+ }
3989
+ return null;
3990
+ };
3991
+ const displayPhone = (data) => {
3992
+ const { contact_no = "", country_code = "" } = data || {};
3993
+ if (!contact_no) return "";
3994
+ if (country_code) {
3995
+ if (country_code == null ? void 0 : country_code.includes("+")) {
3996
+ return `${country_code}${contact_no}`;
3997
+ }
3998
+ return `+${country_code}${contact_no}`;
3999
+ }
4000
+ return (contact_no == null ? void 0 : contact_no.includes("+")) ? contact_no : `+${contact_no}`;
4001
+ };
4002
+ const getPartyDependentData = async (id, options) => {
4003
+ var _a, _b, _c;
4004
+ let ad = [], co = [], cr = (options == null ? void 0 : options.currencies) || [], cm = (options == null ? void 0 : options.companies) || [], dsa = null, dba = null, pt = null, sp = null;
4005
+ const res = await api.getV1PartiesId({ id, ...getToken() });
4006
+ const p = ((_c = (_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.parties) == null ? void 0 : _b.party) == null ? void 0 : _c.data) || null;
4007
+ if (p) {
4008
+ const {
4009
+ payment_term = null,
4010
+ party_address_data = [],
4011
+ party_contact_data = [],
4012
+ currencies_data = [],
4013
+ companies_data = [],
4014
+ salesperson = null
4015
+ } = p;
4016
+ ad = party_address_data;
4017
+ co = party_contact_data;
4018
+ cr = currencies_data;
4019
+ cm = companies_data;
4020
+ pt = payment_term;
4021
+ dsa = party_address_data == null ? void 0 : party_address_data.find((addr) => Boolean(addr == null ? void 0 : addr.default_shipping_address));
4022
+ dba = party_address_data == null ? void 0 : party_address_data.find((addr) => Boolean(addr == null ? void 0 : addr.default_billing_address));
4023
+ sp = salesperson;
4024
+ }
4025
+ return {
4026
+ addresses: ad,
4027
+ contacts: co,
4028
+ currencies: cr,
4029
+ currencyIds: cr.map((c) => c.id),
4030
+ companies: cm,
4031
+ companyIds: cm.map((c) => c.id),
4032
+ paymentTerm: pt,
4033
+ defaultShipping: dsa,
4034
+ defaultBilling: dba,
4035
+ salesperson: sp
4036
+ };
4037
+ };
4038
+ const isEmptyValue = (value) => {
4039
+ return _.isNil(value) || value === "" || _.isObject(value) && _.isEmpty(value);
4040
+ };
4041
+ const mapApiPayload = (payloadMapping, values) => {
4042
+ return _.mapValues(payloadMapping, (val) => {
4043
+ if (_.isFunction(val)) {
4044
+ return val(values);
4045
+ }
4046
+ if (_.isArray(val)) {
4047
+ return val.map((key) => _.get(values, key, null));
4048
+ }
4049
+ if (_.isObject(val) && !_.isFunction(val) && !dayjs.isDayjs(val)) {
4050
+ return mapApiPayload(val, values);
4051
+ }
4052
+ const result = _.get(values, val, null);
4053
+ return isEmptyValue(result) ? null : result;
4054
+ });
4055
+ };
4056
+ const mapAsyncApiPayload = async (payloadMapping, values) => {
4057
+ const entries = Object.entries(payloadMapping).map(async ([key, val]) => {
4058
+ if (_.isFunction(val)) {
4059
+ return [key, await val(values)];
4060
+ }
4061
+ if (_.isArray(val)) {
4062
+ const resolvedArray = await Promise.all(val.map(async (key2) => _.get(values, key2, null)));
4063
+ return [key, resolvedArray];
4064
+ }
4065
+ if (_.isObject(val) && !_.isFunction(val) && !dayjs.isDayjs(val)) {
4066
+ return [key, await mapAsyncApiPayload(val, values)];
4067
+ }
4068
+ return [key, _.get(values, val, null)];
4069
+ });
4070
+ return Object.fromEntries(await Promise.all(entries));
4071
+ };
4072
+ const isBetweenTheDates = (startDate, endDate) => {
4073
+ if (!startDate || !endDate) return false;
4074
+ const start = dayjs(startDate).startOf("day");
4075
+ const end = dayjs(endDate).endOf("day");
4076
+ const currentDate = dayjs();
4077
+ return currentDate.isAfter(start) && currentDate.isBefore(end) || currentDate.isSame(start) || currentDate.isSame(end);
4078
+ };
4079
+ const setRateBasedOnPriceRules = (salesPrice, priceRules, addedQuantity) => {
4080
+ let updatedRate = salesPrice;
4081
+ if (priceRules == null ? void 0 : priceRules.length) {
4082
+ const sortedPriceRules = _.orderBy(
4083
+ priceRules,
4084
+ ["minimum_quantity"],
4085
+ ["desc"]
4086
+ );
4087
+ for (const pRules of sortedPriceRules) {
4088
+ if (Number(addedQuantity) >= Number(pRules == null ? void 0 : pRules.minimum_quantity)) {
4089
+ if (isBetweenTheDates(pRules == null ? void 0 : pRules.start_date, pRules == null ? void 0 : pRules.end_date)) {
4090
+ updatedRate = Number(pRules == null ? void 0 : pRules.unit_price) || void 0;
4091
+ break;
4092
+ }
4093
+ }
4094
+ }
4095
+ }
4096
+ return updatedRate;
4097
+ };
4098
+ const uploadAttachments = async (files) => {
4099
+ let existingAttachments = (files == null ? void 0 : files.filter((i) => !(i instanceof File))) || [];
4100
+ const newFiles = (files == null ? void 0 : files.filter((i) => i instanceof File)) || [];
4101
+ const config = utils_apiConfig.getApiConfig();
4102
+ const bUrl = config.s3BucketUrl;
4103
+ existingAttachments = existingAttachments.map(
4104
+ (ea) => ea.replace(bUrl, "")
4105
+ );
4106
+ let uplaodedAttachments = [];
4107
+ if (newFiles.length) {
4108
+ uplaodedAttachments = await uploadFiles(newFiles, "sales");
4109
+ }
4110
+ uplaodedAttachments = [...uplaodedAttachments, ...existingAttachments];
4111
+ if (Array.isArray(uplaodedAttachments) && (uplaodedAttachments == null ? void 0 : uplaodedAttachments.length)) {
4112
+ return uplaodedAttachments.join(",");
4113
+ }
4114
+ return null;
4115
+ };
4116
+ const addOrEditArray = (array = [], data) => {
4117
+ const { itemIndex, ...updatedData } = data;
4118
+ const newArray = [...array];
4119
+ if (newArray[itemIndex]) {
4120
+ newArray[itemIndex] = { ...updatedData };
4121
+ return newArray;
4122
+ }
4123
+ return [...newArray, updatedData];
4124
+ };
4125
+ const getDefaultUserData = () => {
4126
+ const uData = localStorage.getItem("_u_data");
4127
+ const userData = uData ? JSON.parse(uData) : {};
4128
+ return userData;
4129
+ };
4130
+ const getDefaultFraction = () => {
4131
+ const userData = getDefaultUserData();
4132
+ const currencyData = userData == null ? void 0 : userData.currency_data;
4133
+ try {
4134
+ const mapRaw = localStorage.getItem("_module_fraction_map");
4135
+ if (mapRaw && currencyData) {
4136
+ const map = JSON.parse(mapRaw);
4137
+ const pathname = window.location.pathname;
4138
+ for (const moduleName of Object.keys(map)) {
4139
+ if (pathname.includes(`/dashboard/${moduleName}`)) {
4140
+ const fieldName = map[moduleName];
4141
+ const value = currencyData[fieldName];
4142
+ if (value != null) {
4143
+ return Number(value);
4144
+ }
4145
+ break;
4146
+ }
4147
+ }
4148
+ }
4149
+ } catch {
4150
+ }
4151
+ const fractionUnit = currencyData == null ? void 0 : currencyData.fraction_unit;
4152
+ return Number(fractionUnit ?? 2);
4153
+ };
4154
+ const getAccessibleModules = (moduleNames = []) => {
4155
+ const userData = getDefaultUserData();
4156
+ const accessModules = (userData == null ? void 0 : userData.module_access) || [];
4157
+ const findSubModules = accessModules.filter((module2) => moduleNames.includes(module2.module_name)).map((module2) => ({
4158
+ ...module2,
4159
+ sub_modules: [...module2.sub_modules || [], { sub_module_name: "dashboard" }]
4160
+ }));
4161
+ const subModuleNamesSet = new Set(
4162
+ findSubModules.flatMap((module2) => module2.sub_modules.map((subModule) => subModule.sub_module_name))
4163
+ );
4164
+ const permission = JSON.parse(localStorage.getItem("role-permission") || "{}");
4165
+ return Array.from(subModuleNamesSet).filter(
4166
+ (subModule) => Object.keys(permission).some((key) => key.startsWith(subModule.split("/").pop()))
4167
+ );
4168
+ };
4169
+ const filterAccessibleModules = (menu, moduleNames = []) => {
4170
+ const accessibleMenus = new Set(getAccessibleModules(moduleNames));
4171
+ return menu.reduce((filtered, item) => {
4172
+ var _a;
4173
+ const isSubModuleValid = item.bacSubModuleName && accessibleMenus.has(item.bacSubModuleName);
4174
+ const filteredSubmenu = ((_a = item.submenu) == null ? void 0 : _a.length) ? filterAccessibleModules(item.submenu, moduleNames) : [];
4175
+ if (isSubModuleValid || filteredSubmenu.length) {
4176
+ filtered.push({ ...item, submenu: filteredSubmenu });
4177
+ }
4178
+ return filtered;
4179
+ }, []);
4180
+ };
4181
+ const checkDuplicateTracking = (data, typeOfTrcebility, trackRows) => {
4182
+ var _a, _b, _c, _d, _e;
4183
+ let isDuplicate = false;
4184
+ let errorMsg = null;
4185
+ const isSerialTracking = typeOfTrcebility === "Serial Number Tracking";
4186
+ const trackingField = isSerialTracking ? "serial_number" : "lot_number";
4187
+ const inputValue = isSerialTracking ? (_b = (_a = data == null ? void 0 : data.add_stock_transfer) == null ? void 0 : _a.lot_number) == null ? void 0 : _b.serial_number : (_d = (_c = data == null ? void 0 : data.add_stock_transfer) == null ? void 0 : _c.lot_number) == null ? void 0 : _d.lot_number;
4188
+ errorMsg = isSerialTracking ? "This serial Number is already available" : "This lot Number is already available";
4189
+ if (((_e = trackRows[data == null ? void 0 : data.itemIndex]) == null ? void 0 : _e[trackingField]) == inputValue) {
4190
+ return { isDuplicate: false };
4191
+ }
4192
+ if (["Serial Number Tracking", "Lot Tracking"].includes(typeOfTrcebility)) {
4193
+ isDuplicate = trackRows.some(
4194
+ (o) => (o == null ? void 0 : o[trackingField]) === inputValue
4195
+ );
4196
+ }
4197
+ return {
4198
+ isDuplicate,
4199
+ errorMsg
4200
+ };
4201
+ };
4202
+ function getNestedValue(obj, path) {
4203
+ return path.split(".").reduce((acc, key) => acc && acc[key] !== void 0 ? acc[key] : void 0, obj);
4204
+ }
4205
+ const calculatePeriods = (startDateTime, endDateTime, mode = "Month") => {
4206
+ const start = dayjs(startDateTime);
4207
+ const end = dayjs(endDateTime);
4208
+ if (end.isBefore(start)) {
4209
+ return null;
4210
+ }
4211
+ switch (mode) {
4212
+ case "Year": {
4213
+ const years = end.diff(start, "year");
4214
+ const remainingMonths = end.diff(start.add(years, "year"), "month");
4215
+ return `${years} ${years === 1 ? "Year" : "Years"}${remainingMonths > 0 ? `, ${remainingMonths} ${remainingMonths === 1 ? "Month" : "Months"}` : ""}`;
4216
+ }
4217
+ case "Month":
4218
+ case "Calendar Month": {
4219
+ const months = end.diff(start, "month");
4220
+ const remainingDays = end.diff(start.add(months, "month"), "day");
4221
+ return `${months} ${months === 1 ? "Month" : "Months"}${remainingDays > 0 ? `, ${remainingDays} ${remainingDays === 1 ? "Day" : "Days"}` : ""}`;
4222
+ }
4223
+ case "Week": {
4224
+ const weeks = end.diff(start, "week");
4225
+ const remainingDaysWeekly = end.diff(start.add(weeks, "week"), "day");
4226
+ return `${weeks} ${weeks === 1 ? "Week" : "Weeks"}${remainingDaysWeekly > 0 ? `, ${remainingDaysWeekly} ${remainingDaysWeekly === 1 ? "Day" : "Days"}` : ""}`;
4227
+ }
4228
+ case "Day": {
4229
+ const totalHours = end.diff(start, "hour");
4230
+ const days = Math.floor(totalHours / 24);
4231
+ const remainingHours = totalHours % 24;
4232
+ if (remainingHours > 0) {
4233
+ return `${days + 1} ${days + 1 === 1 ? "Day" : "Days"}`;
4234
+ }
4235
+ return `${days} ${days === 1 ? "Day" : "Days"}`;
4236
+ }
4237
+ case "Hour": {
4238
+ const hours = end.diff(start, "hour");
4239
+ return `${hours} ${hours === 1 ? "Hour" : "Hours"}`;
4240
+ }
4241
+ default:
4242
+ return "Invalid mode";
4243
+ }
4244
+ };
4245
+ const removeIdFromObject = (array) => array == null ? void 0 : array.map((i) => ({
4246
+ ...i,
4247
+ id: void 0
4248
+ }));
4249
+ const fetchRentalResponseItems = async (filters) => {
4250
+ var _a;
4251
+ try {
4252
+ const response = await api.getV1CrossHireRfqResponseItems({
4253
+ filters,
4254
+ ...getToken()
4255
+ });
4256
+ return ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.rfq_response_items) ?? [];
4257
+ } catch (error) {
4258
+ throw error;
4259
+ }
4260
+ };
4261
+ const fetchRfqItemsByIdForResponse = async (filters) => {
4262
+ var _a;
4263
+ try {
4264
+ const response = await api.getV1RfqResponseItems({
4265
+ filters,
4266
+ ...getToken()
4267
+ });
4268
+ return ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.rfq_response_items) ?? [];
4269
+ } catch (error) {
4270
+ throw error;
4271
+ }
4272
+ };
4273
+ const appendConditionSafely = (original, newCondition) => {
4274
+ const cleanConditionString = (str) => {
4275
+ return str.trim().replace(/^([^\w(]+)/, "");
4276
+ };
4277
+ const extractConditions = (str) => {
4278
+ return str.trim().replace(/^[(]|[)]$/g, "").split(/[&,]/).map((cond) => cond.trim()).filter(Boolean);
4279
+ };
4280
+ if (!original || typeof original !== "string" || original.trim() === "") {
4281
+ const cleaned = cleanConditionString(newCondition);
4282
+ return `(${cleaned})`;
4283
+ }
4284
+ const existingConditions = new Set(extractConditions(original));
4285
+ const incomingConditions = extractConditions(newCondition);
4286
+ const filteredNew = incomingConditions.filter(
4287
+ (cond) => !existingConditions.has(cond)
4288
+ );
4289
+ const allConditions = [...existingConditions, ...filteredNew];
4290
+ return `(${allConditions.join("&")})`;
4291
+ };
4292
+ const fetchAssemblyItemData = async (itemId) => {
4293
+ var _a;
4294
+ const response = await api.getV1AssemblyItemsId({
4295
+ id: itemId,
4296
+ ...getToken()
4297
+ });
4298
+ return ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data) || null;
4299
+ };
4300
+ const getFileName = (file) => {
4301
+ if (!file) return "";
4302
+ if (file instanceof File) {
4303
+ return file.name;
4304
+ } else if (typeof file === "string") {
4305
+ const parts = file == null ? void 0 : file.split("/");
4306
+ return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
4307
+ } else if (Array.isArray(file) && (file == null ? void 0 : file.length) > 0) {
4308
+ return file.map((f) => {
4309
+ if (f instanceof File) {
4310
+ return f.name;
4311
+ }
4312
+ const parts = f == null ? void 0 : f.split("/");
4313
+ return parts == null ? void 0 : parts[(parts == null ? void 0 : parts.length) - 1];
4314
+ }).join(", ");
4315
+ }
4316
+ };
4317
+ const getFieldFilters = (fields, fieldNames) => {
4318
+ var _a, _b;
4319
+ if (!(fields == null ? void 0 : fields.length)) return Array.isArray(fieldNames) ? /* @__PURE__ */ new Map() : {};
4320
+ const filters = /* @__PURE__ */ new Map();
4321
+ if (Array.isArray(fieldNames) && (fieldNames == null ? void 0 : fieldNames.length)) {
4322
+ fieldNames.forEach((f) => {
4323
+ var _a2, _b2;
4324
+ const filt = ((_b2 = (_a2 = fields.find((fi) => fi.name === f)) == null ? void 0 : _a2.field_properties) == null ? void 0 : _b2.customeFilter) || {};
4325
+ filters.set(f, filt);
4326
+ });
4327
+ return filters;
4328
+ }
4329
+ return ((_b = (_a = fields.find((fi) => fi.name === fieldNames)) == null ? void 0 : _a.field_properties) == null ? void 0 : _b.customeFilter) || {};
4330
+ };
4331
+ const getNextScheduleDate = (currentDate, billingCycle) => {
4332
+ switch (billingCycle == null ? void 0 : billingCycle.duration) {
4333
+ case "Hour":
4334
+ return dayjs(currentDate).add(1, "hour");
4335
+ case "Day":
4336
+ return dayjs(currentDate).add(1, "day");
4337
+ case "Week":
4338
+ return dayjs(currentDate).add(1, "week");
4339
+ case "2 Week":
4340
+ return dayjs(currentDate).add(2, "week");
4341
+ case "Month":
4342
+ return dayjs(currentDate).add(30, "day");
4343
+ case "Calendar Month":
4344
+ return dayjs(currentDate).endOf("month").add(1, "day").startOf("day");
4345
+ case "Quarter":
4346
+ case "3 Month":
4347
+ return dayjs(currentDate).add(3, "month");
4348
+ case "6 Month":
4349
+ return dayjs(currentDate).add(6, "month");
4350
+ case "Year":
4351
+ case "1 Year":
4352
+ return dayjs(currentDate).add(1, "year");
4353
+ case "3 Year":
4354
+ return dayjs(currentDate).add(3, "year");
4355
+ case "5 Year":
4356
+ case "5Year":
4357
+ return dayjs(currentDate).add(5, "year");
4358
+ default:
4359
+ return dayjs(currentDate).add(1, "month");
4360
+ }
4361
+ };
4362
+ const getCountryIdByName = async (name) => {
4363
+ var _a, _b, _c;
4364
+ const response = await utils_server.getV1LocationsCountries({
4365
+ filters: `(name.like=%${name}%)`,
4366
+ ...getToken()
4367
+ });
4368
+ return ((_c = (_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.countries) == null ? void 0 : _b[0]) == null ? void 0 : _c.id) || null;
4369
+ };
4370
+ const getSlicedValue = (value, length) => {
4371
+ if (!value) return "";
4372
+ return value.slice(0, length);
4373
+ };
4374
+ const skuGenerator = ({
4375
+ name,
4376
+ category,
4377
+ sequence = "0001"
4378
+ }) => {
4379
+ const cleanCategory = category.replace(/[^a-zA-Z0-9]/g, "");
4380
+ const cleanName = name.replace(/[^a-zA-Z0-9]/g, "");
4381
+ const categoryPart = getSlicedValue(cleanCategory, 3).toUpperCase();
4382
+ const namePart = getSlicedValue(cleanName, 3).toUpperCase();
4383
+ return `${categoryPart}-${namePart}-${sequence}`;
4384
+ };
4385
+ const checkSkuAndItemName = async (payload) => {
4386
+ var _a;
4387
+ const response = await api.postV1InventoryItemsCheck({
4388
+ ...payload,
4389
+ ...getToken()
4390
+ });
4391
+ return ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.item_exists) || null;
4392
+ };
4393
+ const checkUniqueFields = async (payload) => {
4394
+ var _a;
4395
+ const apiPayload = {
4396
+ ...payload,
4397
+ ...payload.name && {
4398
+ company_name: payload.name
4399
+ },
4400
+ ...getToken()
4401
+ };
4402
+ delete apiPayload.name;
4403
+ const response = await api.postV1LeadCheck(apiPayload);
4404
+ const itemExists = ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.item_exists) || {};
4405
+ const { name, ...rest } = itemExists;
4406
+ return {
4407
+ ...rest,
4408
+ company_name: name
4409
+ };
4410
+ };
4411
+ const processFieldDisabling = (currentFieldValue, valueConfig, fieldsToDisableSet) => {
4412
+ if (currentFieldValue !== null && currentFieldValue !== void 0) {
4413
+ const valueKey = String(currentFieldValue);
4414
+ if (valueConfig[valueKey]) {
4415
+ valueConfig[valueKey].forEach((fieldName) => {
4416
+ fieldsToDisableSet.add(fieldName);
4417
+ });
4418
+ } else if (typeof currentFieldValue === "boolean" && valueConfig[currentFieldValue]) {
4419
+ valueConfig[currentFieldValue].forEach((fieldName) => {
4420
+ fieldsToDisableSet.add(fieldName);
4421
+ });
4422
+ } else if (typeof currentFieldValue === "number" && valueConfig[currentFieldValue]) {
4423
+ valueConfig[currentFieldValue].forEach((fieldName) => {
4424
+ fieldsToDisableSet.add(fieldName);
4425
+ });
4426
+ }
4427
+ } else if (valueConfig == null ? void 0 : valueConfig["NO_VALUE"]) {
4428
+ valueConfig["NO_VALUE"].forEach((fieldName) => {
4429
+ fieldsToDisableSet.add(fieldName);
4430
+ });
4431
+ }
4432
+ };
4433
+ const updateFieldsDisabledState = ({
4434
+ data,
4435
+ materialCostingType,
4436
+ formValues,
4437
+ fieldsConfig = utils_constant.INVENTORY_FIELDS_TO_BE_DISABLED,
4438
+ isEditMode = false,
4439
+ isAddMode = false,
4440
+ alwaysDisabledFields = utils_constant.INVENTORY_ALWAYS_DISABLED_FIELDS,
4441
+ editModeDisabledFields = utils_constant.INVENTORY_EDIT_MODE_DISABLED_FIELDS,
4442
+ addModeDisabledFields = utils_constant.INVENTORY_ADD_MODE_DISABLED_FIELDS,
4443
+ customDisabledFields = []
4444
+ }) => {
4445
+ var _a;
4446
+ const conditionallyDisabledFields = /* @__PURE__ */ new Set();
4447
+ const materialTypeFieldNames = new Set(
4448
+ ((_a = data == null ? void 0 : data.filter((field) => {
4449
+ var _a2;
4450
+ return ((_a2 = field == null ? void 0 : field.field_properties) == null ? void 0 : _a2.type) === materialCostingType;
4451
+ })) == null ? void 0 : _a.map((field) => field == null ? void 0 : field.name)) || []
4452
+ );
4453
+ const allFieldNames = new Set((data == null ? void 0 : data.map((field) => field == null ? void 0 : field.name)) || []);
4454
+ Object.entries(fieldsConfig).forEach(([configKey, valueConfig]) => {
4455
+ if (configKey === materialCostingType) {
4456
+ Object.entries(valueConfig).forEach(([dependentFieldName, nestedValueConfig]) => {
4457
+ if (materialTypeFieldNames.has(dependentFieldName)) {
4458
+ const fieldValue = formValues == null ? void 0 : formValues[dependentFieldName];
4459
+ processFieldDisabling(fieldValue, nestedValueConfig, conditionallyDisabledFields);
4460
+ }
4461
+ });
4462
+ } else if (allFieldNames.has(configKey)) {
4463
+ const currentFieldValue = formValues == null ? void 0 : formValues[configKey];
4464
+ processFieldDisabling(currentFieldValue, valueConfig, conditionallyDisabledFields);
4465
+ }
4466
+ });
4467
+ return data.map((field) => {
4468
+ const isAlwaysDisabled = alwaysDisabledFields.includes(field.name);
4469
+ const isEditModeDisabled = isEditMode && editModeDisabledFields.includes(field.name);
4470
+ const isAddModeDisabled = isAddMode && addModeDisabledFields.includes(field.name);
4471
+ const isConditionallyDisabled = conditionallyDisabledFields.has(field.name);
4472
+ const isCustomDisabled = customDisabledFields.includes(field.name);
4473
+ const isDisabled = isAlwaysDisabled || isEditModeDisabled || isAddModeDisabled || isConditionallyDisabled || isCustomDisabled;
4474
+ return {
4475
+ ...field,
4476
+ disabled: isDisabled,
4477
+ disableTableAddButton: isDisabled,
4478
+ disableDefaultActionColumn: isDisabled || Boolean(field == null ? void 0 : field.disableDefaultActionColumn)
4479
+ };
4480
+ });
4481
+ };
4482
+ const remainingMaterialCostingTypes = (type) => {
4483
+ const types = Array.isArray(type) ? type : [type];
4484
+ return utils_constant.INVENTORY_MATERIAL_COSTING_TYPE_ARR.filter(
4485
+ (mct) => !types.includes(mct)
4486
+ );
4487
+ };
4488
+ const matchedMaterialCostingTypeLabel = (type) => {
4489
+ var _a;
4490
+ const types = Array.isArray(type) ? type : [type];
4491
+ return ((_a = utils_constant.INVENTORY_MATERIAL_COSTING_TYPE_OPTIONS.find(
4492
+ (o) => types.includes(o.value)
4493
+ )) == null ? void 0 : _a.label) || null;
4494
+ };
4495
+ const fetchDataLocally = (params, arr) => {
4496
+ const { search = "", limit = 25, skip = 0 } = params;
4497
+ let filteredData = arr || [];
4498
+ if (search && search.length > 0) {
4499
+ const searchLower = search.toLowerCase();
4500
+ filteredData = filteredData.filter((item) => {
4501
+ const label = (item == null ? void 0 : item.label) || (item == null ? void 0 : item.name) || "";
4502
+ return label.toLowerCase().includes(searchLower);
4503
+ });
4504
+ }
4505
+ const totalCount = filteredData.length;
4506
+ const paginatedData = filteredData.slice(skip, skip + limit).map((item) => ({
4507
+ ...item,
4508
+ label: (item == null ? void 0 : item.label) || (item == null ? void 0 : item.name),
4509
+ value: (item == null ? void 0 : item.value) || (item == null ? void 0 : item.id) || (item == null ? void 0 : item.name)
4510
+ }));
4511
+ return {
4512
+ data: paginatedData,
4513
+ pagination: {
4514
+ totalCount
4515
+ }
4516
+ };
4517
+ };
4518
+ exports.InvoiceStatus = InvoiceStatus;
4519
+ exports.addOrEditArray = addOrEditArray;
4520
+ exports.apiConfigurations = apiConfigurations;
4521
+ exports.appendConditionSafely = appendConditionSafely;
4522
+ exports.calculateAmountData = calculateAmountData;
4523
+ exports.calculatePeriods = calculatePeriods;
4524
+ exports.checkDuplicateTracking = checkDuplicateTracking;
4525
+ exports.checkForDuplicate = checkForDuplicate;
4526
+ exports.checkSkuAndItemName = checkSkuAndItemName;
4527
+ exports.checkUniqueFields = checkUniqueFields;
4528
+ exports.createdOnAndBy = createdOnAndBy;
4529
+ exports.defaultCompany = defaultCompany;
4530
+ exports.defaultCurrencyFormat = defaultCurrencyFormat;
4531
+ exports.defaultCurrencySymbol = defaultCurrencySymbol;
4532
+ exports.displayPhone = displayPhone;
4533
+ exports.downloadDoc = downloadDoc;
4534
+ exports.downloadFile = downloadFile;
4535
+ exports.extendApiConfigurations = extendApiConfigurations;
4536
+ exports.fetchApi = fetchApi;
4537
+ exports.fetchAssemblyItemData = fetchAssemblyItemData;
4538
+ exports.fetchCompanyLocations = fetchCompanyLocations;
4539
+ exports.fetchDataLocally = fetchDataLocally;
4540
+ exports.fetchExchageRate = fetchExchageRate;
4541
+ exports.fetchItems = fetchItems;
4542
+ exports.fetchOptions = fetchOptions;
4543
+ exports.fetchRentalResponseItems = fetchRentalResponseItems;
4544
+ exports.fetchRfqItemsByIdForResponse = fetchRfqItemsByIdForResponse;
4545
+ exports.filterAccessibleModules = filterAccessibleModules;
4546
+ exports.filterCoaByCompanyIdOrNull = filterCoaByCompanyIdOrNull;
4547
+ exports.findById = findById;
4548
+ exports.formatAmount = formatAmount;
4549
+ exports.formatAmountWithCurrency = formatAmountWithCurrency;
4550
+ exports.formatAmountWithCurrencyData = formatAmountWithCurrencyData;
4551
+ exports.formatDateForPayload = formatDateForPayload;
4552
+ exports.formatDateTimeForPayload = formatDateTimeForPayload;
4553
+ exports.formatEmptyDataToNull = formatEmptyDataToNull;
4554
+ exports.formatResponseDatesToDayJS = formatResponseDatesToDayJS;
4555
+ exports.formatResponseOnlyDatesToDayJS = formatResponseOnlyDatesToDayJS;
4556
+ exports.formatTimeForPayload = formatTimeForPayload;
4557
+ exports.generateAndFormatStringFromObj = generateAndFormatStringFromObj;
4558
+ exports.generateFields = generateFields;
4559
+ exports.generateQueryString = generateQueryString;
4560
+ exports.generateRandomId = generateRandomId;
4561
+ exports.getAccessibleModules = getAccessibleModules;
4562
+ exports.getCountryIdByName = getCountryIdByName;
4563
+ exports.getCurrency = getCurrency;
4564
+ exports.getCurrencyFormat = getCurrencyFormat;
4565
+ exports.getCurrencySymbol = getCurrencySymbol;
4566
+ exports.getDefaultFraction = getDefaultFraction;
4567
+ exports.getDefaultUserData = getDefaultUserData;
4568
+ exports.getErrorMessage = getErrorMessage;
4569
+ exports.getExcelExportTemplate = getExcelExportTemplate;
4570
+ exports.getExcelTemplateGenerateTemplate = getExcelTemplateGenerateTemplate;
4571
+ exports.getFieldFilters = getFieldFilters;
4572
+ exports.getFileName = getFileName;
4573
+ exports.getItems = getItems;
4574
+ exports.getLabelValuePairs = getLabelValuePairs;
4575
+ exports.getName = getName;
4576
+ exports.getNestedValue = getNestedValue;
4577
+ exports.getNextScheduleDate = getNextScheduleDate;
4578
+ exports.getOperatorLabel = getOperatorLabel;
4579
+ exports.getOptions = getOptions;
4580
+ exports.getOptionsData = getOptionsData;
4581
+ exports.getPartyDependentData = getPartyDependentData;
4582
+ exports.getPartyName = getPartyName;
4583
+ exports.getPdfExportTemplate = getPdfExportTemplate;
4584
+ exports.getSlicedValue = getSlicedValue;
4585
+ exports.getTaxAmountDataFromMultipleTaxCodes = getTaxAmountDataFromMultipleTaxCodes;
4586
+ exports.getTaxAmountFromMultipleTaxCodes = getTaxAmountFromMultipleTaxCodes;
4587
+ exports.getToken = getToken;
4588
+ exports.getV1DepartmentsId = getV1DepartmentsId;
4589
+ exports.handleRegularUpload = handleRegularUpload;
4590
+ exports.hasValue = hasValue;
4591
+ exports.initializeApiBaseUrls = initializeApiBaseUrls;
4592
+ exports.isBetweenTheDates = isBetweenTheDates;
4593
+ exports.isJSONString = isJSONString;
4594
+ exports.isJsonParse = isJsonParse;
4595
+ exports.manageItems = manageItems;
4596
+ exports.mapApiPayload = mapApiPayload;
4597
+ exports.mapAsyncApiPayload = mapAsyncApiPayload;
4598
+ exports.matchedMaterialCostingTypeLabel = matchedMaterialCostingTypeLabel;
4599
+ exports.omitDataKeys = omitDataKeys;
4600
+ exports.partyDuplicateCheck = partyDuplicateCheck;
4601
+ exports.partyEmailIds = partyEmailIds;
4602
+ exports.postImportSheet = postImportSheet;
4603
+ exports.postV1Departments = postV1Departments;
4604
+ exports.postV1DepartmentsTeams = postV1DepartmentsTeams;
4605
+ exports.postV1Designation = postV1Designation;
4606
+ exports.remainingMaterialCostingTypes = remainingMaterialCostingTypes;
4607
+ exports.removeIdFromObject = removeIdFromObject;
4608
+ exports.removeIdStaticIdsFromMongoObject = removeIdStaticIdsFromMongoObject;
4609
+ exports.setRateBasedOnPriceRules = setRateBasedOnPriceRules;
4610
+ exports.showSnackBar = showSnackBar;
4611
+ exports.skuGenerator = skuGenerator;
4612
+ exports.toFixedWithNumbers = toFixedWithNumbers;
4613
+ exports.updateFieldsDisabledState = updateFieldsDisabledState;
4614
+ exports.uploadAttachments = uploadAttachments;
4615
+ exports.uploadFiles = uploadFiles;
4616
+ exports.validateDiscountValidity = validateDiscountValidity;
4617
+ //# sourceMappingURL=common-DtcSQ2Hw.js.map