@erpsquad/common 2.0.7 → 2.0.9

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 (1272) hide show
  1. package/dist/api-client/index.esm.js +2 -2
  2. package/dist/chunks/AuthContext-DofdH_qH.esm.js +304 -0
  3. package/dist/chunks/AuthContext-DofdH_qH.esm.js.map +1 -0
  4. package/dist/chunks/AuthContext-kcLshbDN.js +303 -0
  5. package/dist/chunks/AuthContext-kcLshbDN.js.map +1 -0
  6. package/dist/chunks/DonutChart-C6riky4l.esm.js +95 -0
  7. package/dist/chunks/DonutChart-C6riky4l.esm.js.map +1 -0
  8. package/dist/chunks/DonutChart-tepcDaIS.js +111 -0
  9. package/dist/chunks/DonutChart-tepcDaIS.js.map +1 -0
  10. package/dist/chunks/DynamicDependentField-CGdGWk5x.js +127 -0
  11. package/dist/chunks/DynamicDependentField-CGdGWk5x.js.map +1 -0
  12. package/dist/chunks/DynamicDependentField-DTmcCvr7.esm.js +128 -0
  13. package/dist/chunks/DynamicDependentField-DTmcCvr7.esm.js.map +1 -0
  14. package/dist/chunks/DynamicSearchInput-MbezEgV9.esm.js +195 -0
  15. package/dist/chunks/DynamicSearchInput-MbezEgV9.esm.js.map +1 -0
  16. package/dist/chunks/ERPUIProvider-BTLDtZWH.esm.js +133 -0
  17. package/dist/chunks/ERPUIProvider-BTLDtZWH.esm.js.map +1 -0
  18. package/dist/chunks/ERPUIProvider-JvxT4YBI.js +132 -0
  19. package/dist/chunks/ERPUIProvider-JvxT4YBI.js.map +1 -0
  20. package/dist/chunks/FORMS-D0B8kHGO.esm.js +296 -0
  21. package/dist/chunks/FORMS-D0B8kHGO.esm.js.map +1 -0
  22. package/dist/chunks/FORMS-DcWtwXeA.js +295 -0
  23. package/dist/chunks/FORMS-DcWtwXeA.js.map +1 -0
  24. package/dist/chunks/FlexibleReduxExample-B9lUXUtM.js +148 -0
  25. package/dist/chunks/FlexibleReduxExample-B9lUXUtM.js.map +1 -0
  26. package/dist/chunks/FlexibleReduxExample-BfAZ0NS1.esm.js +149 -0
  27. package/dist/chunks/FlexibleReduxExample-BfAZ0NS1.esm.js.map +1 -0
  28. package/dist/chunks/GroupBarChart-4SPyvviH.js +103 -0
  29. package/dist/chunks/GroupBarChart-4SPyvviH.js.map +1 -0
  30. package/dist/chunks/GroupBarChart-DARqXm97.esm.js +87 -0
  31. package/dist/chunks/GroupBarChart-DARqXm97.esm.js.map +1 -0
  32. package/dist/chunks/SectionFlowEditor-8U0IkGBG.esm.js +5461 -0
  33. package/dist/chunks/SectionFlowEditor-8U0IkGBG.esm.js.map +1 -0
  34. package/dist/chunks/SectionFlowEditor-CJVzv4-f.js +5460 -0
  35. package/dist/chunks/SectionFlowEditor-CJVzv4-f.js.map +1 -0
  36. package/dist/chunks/action-bar-1Rquyokn.esm.js +637 -0
  37. package/dist/chunks/action-bar-1Rquyokn.esm.js.map +1 -0
  38. package/dist/chunks/action-bar-BQu4SgTj.js +636 -0
  39. package/dist/chunks/action-bar-BQu4SgTj.js.map +1 -0
  40. package/dist/chunks/actionCreator-6vnQNdPW.esm.js +14 -0
  41. package/dist/chunks/actionCreator-6vnQNdPW.esm.js.map +1 -0
  42. package/dist/chunks/actionCreator-CRjzdA2F.esm.js +22 -0
  43. package/dist/chunks/actionCreator-CRjzdA2F.esm.js.map +1 -0
  44. package/dist/chunks/actionCreator-CfzbTvPB.esm.js +94 -0
  45. package/dist/chunks/actionCreator-CfzbTvPB.esm.js.map +1 -0
  46. package/dist/chunks/actionCreator-jQ2zgNcg.esm.js +80 -0
  47. package/dist/chunks/actionCreator-jQ2zgNcg.esm.js.map +1 -0
  48. package/dist/chunks/actionCreator-yZ3mD8R2.esm.js +28 -0
  49. package/dist/chunks/actionCreator-yZ3mD8R2.esm.js.map +1 -0
  50. package/dist/chunks/activity-tag-BPE6sv6e.js +151 -0
  51. package/dist/chunks/activity-tag-BPE6sv6e.js.map +1 -0
  52. package/dist/chunks/activity-tag-Bk13Lwtt.esm.js +152 -0
  53. package/dist/chunks/activity-tag-Bk13Lwtt.esm.js.map +1 -0
  54. package/dist/chunks/add-template-DGMGVpCT.esm.js +11 -0
  55. package/dist/chunks/add-template-DGMGVpCT.esm.js.map +1 -0
  56. package/dist/chunks/add-template-s1Vr9sdq.js +10 -0
  57. package/dist/chunks/add-template-s1Vr9sdq.js.map +1 -0
  58. package/dist/chunks/address-modal-BEo9bfzo.esm.js +671 -0
  59. package/dist/chunks/address-modal-BEo9bfzo.esm.js.map +1 -0
  60. package/dist/chunks/address-modal-DGAqvsPa.js +687 -0
  61. package/dist/chunks/address-modal-DGAqvsPa.js.map +1 -0
  62. package/dist/chunks/ai-summary-VG2I3n99.esm.js +351 -0
  63. package/dist/chunks/ai-summary-VG2I3n99.esm.js.map +1 -0
  64. package/dist/chunks/api-B6GkxQYG.esm.js +2219 -0
  65. package/dist/chunks/api-B6GkxQYG.esm.js.map +1 -0
  66. package/dist/chunks/api-BbjtLtS_.esm.js +4682 -0
  67. package/dist/chunks/api-BbjtLtS_.esm.js.map +1 -0
  68. package/dist/chunks/appbar-Dol8xdCz.js +56 -0
  69. package/dist/chunks/appbar-Dol8xdCz.js.map +1 -0
  70. package/dist/chunks/appbar-kCY0xo1q.esm.js +57 -0
  71. package/dist/chunks/appbar-kCY0xo1q.esm.js.map +1 -0
  72. package/dist/chunks/approval-wrapper-BIi2og8G.esm.js +140 -0
  73. package/dist/chunks/approval-wrapper-BIi2og8G.esm.js.map +1 -0
  74. package/dist/chunks/approval-wrapper-Cgweuhjx.js +139 -0
  75. package/dist/chunks/approval-wrapper-Cgweuhjx.js.map +1 -0
  76. package/dist/chunks/calculation-summary-BwBud3iV.esm.js +174 -0
  77. package/dist/chunks/calculation-summary-BwBud3iV.esm.js.map +1 -0
  78. package/dist/chunks/calculation-summary-pLuBD594.js +173 -0
  79. package/dist/chunks/calculation-summary-pLuBD594.js.map +1 -0
  80. package/dist/chunks/change-password-BqSHR0wx.js +199 -0
  81. package/dist/chunks/change-password-BqSHR0wx.js.map +1 -0
  82. package/dist/chunks/change-password-DJwwMZ29.esm.js +183 -0
  83. package/dist/chunks/change-password-DJwwMZ29.esm.js.map +1 -0
  84. package/dist/chunks/change-user-password-modal-DP_wbT8i.esm.js +119 -0
  85. package/dist/chunks/change-user-password-modal-DP_wbT8i.esm.js.map +1 -0
  86. package/dist/chunks/change-user-password-modal-VR98mGW6.js +135 -0
  87. package/dist/chunks/change-user-password-modal-VR98mGW6.js.map +1 -0
  88. package/dist/chunks/chat-bot-B1SWhIFL.esm.js +1831 -0
  89. package/dist/chunks/chat-bot-B1SWhIFL.esm.js.map +1 -0
  90. package/dist/chunks/chat-bot-CdiKFNgT.js +1830 -0
  91. package/dist/chunks/chat-bot-CdiKFNgT.js.map +1 -0
  92. package/dist/chunks/checkbox-Bp-_K3Uq.esm.js +83 -0
  93. package/dist/chunks/checkbox-Bp-_K3Uq.esm.js.map +1 -0
  94. package/dist/chunks/checkbox-D8p_Y3nz.js +82 -0
  95. package/dist/chunks/checkbox-D8p_Y3nz.js.map +1 -0
  96. package/dist/chunks/common-CrTFa-wo.js +182 -0
  97. package/dist/chunks/common-CrTFa-wo.js.map +1 -0
  98. package/dist/chunks/common-D6QyHh2n.esm.js +183 -0
  99. package/dist/chunks/common-D6QyHh2n.esm.js.map +1 -0
  100. package/dist/chunks/common-utility-Cab11rUm.js +305 -0
  101. package/dist/chunks/common-utility-Cab11rUm.js.map +1 -0
  102. package/dist/chunks/common-utility-DhJfepcc.esm.js +305 -0
  103. package/dist/chunks/common-utility-DhJfepcc.esm.js.map +1 -0
  104. package/dist/chunks/confirm-modal-D4bLzEGf.js +97 -0
  105. package/dist/chunks/confirm-modal-D4bLzEGf.js.map +1 -0
  106. package/dist/chunks/confirm-modal-nCdT1-Zb.esm.js +98 -0
  107. package/dist/chunks/confirm-modal-nCdT1-Zb.esm.js.map +1 -0
  108. package/dist/chunks/contact-modal-5rG_qnX7.js +185 -0
  109. package/dist/chunks/contact-modal-5rG_qnX7.js.map +1 -0
  110. package/dist/chunks/contact-modal-XTsjG2P2.esm.js +169 -0
  111. package/dist/chunks/contact-modal-XTsjG2P2.esm.js.map +1 -0
  112. package/dist/chunks/custom-editor-B0tdyVUd.esm.js +1257 -0
  113. package/dist/chunks/custom-editor-B0tdyVUd.esm.js.map +1 -0
  114. package/dist/chunks/custom-form-DJ9vNxTp.js +1145 -0
  115. package/dist/chunks/custom-form-DJ9vNxTp.js.map +1 -0
  116. package/dist/chunks/custom-form-M6YTLQfx.esm.js +1146 -0
  117. package/dist/chunks/custom-form-M6YTLQfx.esm.js.map +1 -0
  118. package/dist/chunks/dashboard-BMR-mYzQ.js +74 -0
  119. package/dist/chunks/dashboard-BMR-mYzQ.js.map +1 -0
  120. package/dist/chunks/dashboard-y9pGL53r.esm.js +75 -0
  121. package/dist/chunks/dashboard-y9pGL53r.esm.js.map +1 -0
  122. package/dist/chunks/date-range-picker-D6a4i6w_.js +61 -0
  123. package/dist/chunks/date-range-picker-D6a4i6w_.js.map +1 -0
  124. package/dist/chunks/date-range-picker-DIssi8qZ.js +159 -0
  125. package/dist/chunks/date-range-picker-DIssi8qZ.js.map +1 -0
  126. package/dist/chunks/date-range-picker-DqcAOo8B.esm.js +160 -0
  127. package/dist/chunks/date-range-picker-DqcAOo8B.esm.js.map +1 -0
  128. package/dist/chunks/date-range-picker-OOZXiyKI.esm.js +62 -0
  129. package/dist/chunks/date-range-picker-OOZXiyKI.esm.js.map +1 -0
  130. package/dist/chunks/dropdown-button-DYSlETL1.esm.js +146 -0
  131. package/dist/chunks/dropdown-button-DYSlETL1.esm.js.map +1 -0
  132. package/dist/chunks/dropdown-button-DeiOY_oP.js +162 -0
  133. package/dist/chunks/dropdown-button-DeiOY_oP.js.map +1 -0
  134. package/dist/chunks/dynamic-layout-wrapper-B6O3hR3Y.esm.js +229 -0
  135. package/dist/chunks/dynamic-layout-wrapper-B6O3hR3Y.esm.js.map +1 -0
  136. package/dist/chunks/dynamic-layout-wrapper-BtHbs1Zj.js +228 -0
  137. package/dist/chunks/dynamic-layout-wrapper-BtHbs1Zj.js.map +1 -0
  138. package/dist/chunks/dynamic-report-BAOTGuEk.esm.js +589 -0
  139. package/dist/chunks/dynamic-report-BAOTGuEk.esm.js.map +1 -0
  140. package/dist/chunks/dynamic-report-CynjfYJy.js +588 -0
  141. package/dist/chunks/dynamic-report-CynjfYJy.js.map +1 -0
  142. package/dist/chunks/dynamic-rows-C75GZFAm.esm.js +250 -0
  143. package/dist/chunks/dynamic-rows-C75GZFAm.esm.js.map +1 -0
  144. package/dist/chunks/dynamic-rows-CvqwiJje.js +249 -0
  145. package/dist/chunks/dynamic-rows-CvqwiJje.js.map +1 -0
  146. package/dist/chunks/dynamic-text-editor-btqFFT1t.esm.js +45 -0
  147. package/dist/chunks/dynamic-text-editor-btqFFT1t.esm.js.map +1 -0
  148. package/dist/chunks/edit-section-modal-DMH6owAz.esm.js +80 -0
  149. package/dist/chunks/edit-section-modal-DMH6owAz.esm.js.map +1 -0
  150. package/dist/chunks/expandable-summary-wrapper-DMQc4D4R.js +241 -0
  151. package/dist/chunks/expandable-summary-wrapper-DMQc4D4R.js.map +1 -0
  152. package/dist/chunks/expandable-summary-wrapper-t86b6oNE.esm.js +242 -0
  153. package/dist/chunks/expandable-summary-wrapper-t86b6oNE.esm.js.map +1 -0
  154. package/dist/chunks/filter-B4OpmXRQ.esm.js +410 -0
  155. package/dist/chunks/filter-B4OpmXRQ.esm.js.map +1 -0
  156. package/dist/chunks/filter-DJegmeDz.js +409 -0
  157. package/dist/chunks/filter-DJegmeDz.js.map +1 -0
  158. package/dist/chunks/footer-Bue8F5jc.js +63 -0
  159. package/dist/chunks/footer-Bue8F5jc.js.map +1 -0
  160. package/dist/chunks/footer-cys2uVXJ.esm.js +64 -0
  161. package/dist/chunks/footer-cys2uVXJ.esm.js.map +1 -0
  162. package/dist/chunks/forgot-password-C-_Vt8Ld.js +194 -0
  163. package/dist/chunks/forgot-password-C-_Vt8Ld.js.map +1 -0
  164. package/dist/chunks/forgot-password-DaYwd5uW.esm.js +178 -0
  165. package/dist/chunks/forgot-password-DaYwd5uW.esm.js.map +1 -0
  166. package/dist/chunks/form-fields-CvI9yo74.js +354 -0
  167. package/dist/chunks/form-fields-CvI9yo74.js.map +1 -0
  168. package/dist/chunks/form-fields-Dp-8zIrT.esm.js +355 -0
  169. package/dist/chunks/form-fields-Dp-8zIrT.esm.js.map +1 -0
  170. package/dist/chunks/form-parser-BNVZ-OsN.js +613 -0
  171. package/dist/chunks/form-parser-BNVZ-OsN.js.map +1 -0
  172. package/dist/chunks/form-parser-DgaV_u_G.esm.js +597 -0
  173. package/dist/chunks/form-parser-DgaV_u_G.esm.js.map +1 -0
  174. package/dist/chunks/form-section-CCQ5Grq5.js +575 -0
  175. package/dist/chunks/form-section-CCQ5Grq5.js.map +1 -0
  176. package/dist/chunks/form-section-D6OLrE7M.esm.js +576 -0
  177. package/dist/chunks/form-section-D6OLrE7M.esm.js.map +1 -0
  178. package/dist/chunks/fullScreen-Bar5e4Zd.esm.js +19 -0
  179. package/dist/chunks/fullScreen-Bar5e4Zd.esm.js.map +1 -0
  180. package/dist/chunks/fullScreen-DJR7qbF5.js +18 -0
  181. package/dist/chunks/fullScreen-DJR7qbF5.js.map +1 -0
  182. package/dist/chunks/global-search-Bn_3kWNW.esm.js +150 -0
  183. package/dist/chunks/global-search-Bn_3kWNW.esm.js.map +1 -0
  184. package/dist/chunks/grid-view-DQ481EM1.esm.js +52 -0
  185. package/dist/chunks/grid-view-DQ481EM1.esm.js.map +1 -0
  186. package/dist/chunks/header-266dLUMg.js +92 -0
  187. package/dist/chunks/header-266dLUMg.js.map +1 -0
  188. package/dist/chunks/header-BCMW9ctt.esm.js +93 -0
  189. package/dist/chunks/header-BCMW9ctt.esm.js.map +1 -0
  190. package/dist/chunks/header-enhanced-Cf44TMZf.js +402 -0
  191. package/dist/chunks/header-enhanced-Cf44TMZf.js.map +1 -0
  192. package/dist/chunks/header-enhanced-DDG6COKM.esm.js +403 -0
  193. package/dist/chunks/header-enhanced-DDG6COKM.esm.js.map +1 -0
  194. package/dist/chunks/i18n-B7RX2ZZ6.js +95 -0
  195. package/dist/chunks/i18n-B7RX2ZZ6.js.map +1 -0
  196. package/dist/chunks/i18n-IaT9E8wF.esm.js +94 -0
  197. package/dist/chunks/i18n-IaT9E8wF.esm.js.map +1 -0
  198. package/dist/chunks/index-DWPfPC9k.esm.js +2024 -0
  199. package/dist/chunks/index-DWPfPC9k.esm.js.map +1 -0
  200. package/dist/chunks/inline-edit-fields-C1ya5MlP.js +341 -0
  201. package/dist/chunks/inline-edit-fields-C1ya5MlP.js.map +1 -0
  202. package/dist/chunks/inline-edit-fields-DeepjF9W.esm.js +325 -0
  203. package/dist/chunks/inline-edit-fields-DeepjF9W.esm.js.map +1 -0
  204. package/dist/chunks/inventory-reports-title-bar-C7HQ0Rz0.esm.js +733 -0
  205. package/dist/chunks/inventory-reports-title-bar-C7HQ0Rz0.esm.js.map +1 -0
  206. package/dist/chunks/inventory-reports-title-bar-DrIkl093.js +732 -0
  207. package/dist/chunks/inventory-reports-title-bar-DrIkl093.js.map +1 -0
  208. package/dist/chunks/item-response-details-B0LkBlox.esm.js +79 -0
  209. package/dist/chunks/item-response-details-B0LkBlox.esm.js.map +1 -0
  210. package/dist/chunks/item-response-details-tn_93JWx.js +78 -0
  211. package/dist/chunks/item-response-details-tn_93JWx.js.map +1 -0
  212. package/dist/chunks/journal-type-add-modal-CQ7ik88w.js +128 -0
  213. package/dist/chunks/journal-type-add-modal-CQ7ik88w.js.map +1 -0
  214. package/dist/chunks/journal-type-add-modal-CubGUsiW.esm.js +112 -0
  215. package/dist/chunks/journal-type-add-modal-CubGUsiW.esm.js.map +1 -0
  216. package/dist/chunks/language-switch-B8Vo3as8.js +110 -0
  217. package/dist/chunks/language-switch-B8Vo3as8.js.map +1 -0
  218. package/dist/chunks/language-switch-JqR_jZoX.esm.js +111 -0
  219. package/dist/chunks/language-switch-JqR_jZoX.esm.js.map +1 -0
  220. package/dist/chunks/languageContext-JTb2yZmF.js +218 -0
  221. package/dist/chunks/languageContext-JTb2yZmF.js.map +1 -0
  222. package/dist/chunks/languageContext-aT4pFMI3.esm.js +219 -0
  223. package/dist/chunks/languageContext-aT4pFMI3.esm.js.map +1 -0
  224. package/dist/chunks/listing-BE07Zp5g.esm.js +277 -0
  225. package/dist/chunks/listing-BE07Zp5g.esm.js.map +1 -0
  226. package/dist/chunks/listing-Cp0b_XGM.js +276 -0
  227. package/dist/chunks/listing-Cp0b_XGM.js.map +1 -0
  228. package/dist/chunks/location-select-BoXNL7DP.js +85 -0
  229. package/dist/chunks/location-select-BoXNL7DP.js.map +1 -0
  230. package/dist/chunks/location-select-CCQueueQ.esm.js +86 -0
  231. package/dist/chunks/location-select-CCQueueQ.esm.js.map +1 -0
  232. package/dist/chunks/material-editable-table-DOrp18Fk.js +1464 -0
  233. package/dist/chunks/material-editable-table-DOrp18Fk.js.map +1 -0
  234. package/dist/chunks/material-editable-table-rLDq1Htx.esm.js +1448 -0
  235. package/dist/chunks/material-editable-table-rLDq1Htx.esm.js.map +1 -0
  236. package/dist/chunks/module-reducer-DODlFqlX.esm.js +79 -0
  237. package/dist/chunks/module-reducer-DODlFqlX.esm.js.map +1 -0
  238. package/dist/chunks/notification-menu-CPFPIlav.esm.js +606 -0
  239. package/dist/chunks/notification-menu-CPFPIlav.esm.js.map +1 -0
  240. package/dist/chunks/page-action-BB9ZfBqs.js +324 -0
  241. package/dist/chunks/page-action-BB9ZfBqs.js.map +1 -0
  242. package/dist/chunks/page-action-BVBfQPuy.esm.js +325 -0
  243. package/dist/chunks/page-action-BVBfQPuy.esm.js.map +1 -0
  244. package/dist/chunks/page-context-C6GLxzPF.js +387 -0
  245. package/dist/chunks/page-context-C6GLxzPF.js.map +1 -0
  246. package/dist/chunks/page-context-CZVCQsx4.esm.js +388 -0
  247. package/dist/chunks/page-context-CZVCQsx4.esm.js.map +1 -0
  248. package/dist/chunks/page-navigator-BtT7FvgA.js +243 -0
  249. package/dist/chunks/page-navigator-BtT7FvgA.js.map +1 -0
  250. package/dist/chunks/page-navigator-DhZSbWM-.esm.js +244 -0
  251. package/dist/chunks/page-navigator-DhZSbWM-.esm.js.map +1 -0
  252. package/dist/chunks/page-view-BS0vDfet.esm.js +324 -0
  253. package/dist/chunks/page-view-BS0vDfet.esm.js.map +1 -0
  254. package/dist/chunks/page-view-DQh8QJIi.js +323 -0
  255. package/dist/chunks/page-view-DQh8QJIi.js.map +1 -0
  256. package/dist/chunks/pagination-DF8mY5Wg.esm.js +136 -0
  257. package/dist/chunks/pagination-DF8mY5Wg.esm.js.map +1 -0
  258. package/dist/chunks/pagination-ytCCM6x5.js +135 -0
  259. package/dist/chunks/pagination-ytCCM6x5.js.map +1 -0
  260. package/dist/chunks/phone-CORnEyRe.esm.js +59 -0
  261. package/dist/chunks/phone-CORnEyRe.esm.js.map +1 -0
  262. package/dist/chunks/phone-CsXmANY1.js +58 -0
  263. package/dist/chunks/phone-CsXmANY1.js.map +1 -0
  264. package/dist/chunks/phone-input-3p8jy0VZ.esm.js +255 -0
  265. package/dist/chunks/phone-input-3p8jy0VZ.esm.js.map +1 -0
  266. package/dist/chunks/phone-input-cDVGHShY.js +254 -0
  267. package/dist/chunks/phone-input-cDVGHShY.js.map +1 -0
  268. package/dist/chunks/privateRoute-Cm2hqDeK.js +12 -0
  269. package/dist/chunks/privateRoute-Cm2hqDeK.js.map +1 -0
  270. package/dist/chunks/privateRoute-D5cMrsfo.esm.js +13 -0
  271. package/dist/chunks/privateRoute-D5cMrsfo.esm.js.map +1 -0
  272. package/dist/chunks/quick-approval-modal-DaSlNlcT.esm.js +256 -0
  273. package/dist/chunks/quick-approval-modal-DaSlNlcT.esm.js.map +1 -0
  274. package/dist/chunks/reducer-BVmCliuv.esm.js +50 -0
  275. package/dist/chunks/reducer-BVmCliuv.esm.js.map +1 -0
  276. package/dist/chunks/reducer-Ce33BbuU.esm.js +149 -0
  277. package/dist/chunks/reducer-Ce33BbuU.esm.js.map +1 -0
  278. package/dist/chunks/reducer-CqWixCbD.esm.js +33 -0
  279. package/dist/chunks/reducer-CqWixCbD.esm.js.map +1 -0
  280. package/dist/chunks/reducer-DJLJl8jC.esm.js +43 -0
  281. package/dist/chunks/reducer-DJLJl8jC.esm.js.map +1 -0
  282. package/dist/chunks/reducer-DhF7Zh6Q.esm.js +56 -0
  283. package/dist/chunks/reducer-DhF7Zh6Q.esm.js.map +1 -0
  284. package/dist/chunks/remove-action-BrwzXFnw.esm.js +21 -0
  285. package/dist/chunks/remove-action-BrwzXFnw.esm.js.map +1 -0
  286. package/dist/chunks/remove-action-DuOSbzq_.js +20 -0
  287. package/dist/chunks/remove-action-DuOSbzq_.js.map +1 -0
  288. package/dist/chunks/report-buttons-B2eLIpL8.esm.js +46 -0
  289. package/dist/chunks/report-buttons-B2eLIpL8.esm.js.map +1 -0
  290. package/dist/chunks/report-buttons-C5-b6TSy.esm.js +60 -0
  291. package/dist/chunks/report-buttons-C5-b6TSy.esm.js.map +1 -0
  292. package/dist/chunks/report-buttons-CZk6F9qW.js +59 -0
  293. package/dist/chunks/report-buttons-CZk6F9qW.js.map +1 -0
  294. package/dist/chunks/report-buttons-DOMCk_6C.js +45 -0
  295. package/dist/chunks/report-buttons-DOMCk_6C.js.map +1 -0
  296. package/dist/chunks/reportFilter-CYHe2E_K.esm.js +395 -0
  297. package/dist/chunks/reportFilter-CYHe2E_K.esm.js.map +1 -0
  298. package/dist/chunks/reportFilter-DxVLL73i.js +394 -0
  299. package/dist/chunks/reportFilter-DxVLL73i.js.map +1 -0
  300. package/dist/chunks/reports-title-bar-C4PU6UBg.js +946 -0
  301. package/dist/chunks/reports-title-bar-C4PU6UBg.js.map +1 -0
  302. package/dist/chunks/reports-title-bar-cKPM1sTK.esm.js +947 -0
  303. package/dist/chunks/reports-title-bar-cKPM1sTK.esm.js.map +1 -0
  304. package/dist/chunks/reset-password-C-9K23dJ.js +32 -0
  305. package/dist/chunks/reset-password-C-9K23dJ.js.map +1 -0
  306. package/dist/chunks/reset-password-D-KmDrEy.esm.js +33 -0
  307. package/dist/chunks/reset-password-D-KmDrEy.esm.js.map +1 -0
  308. package/dist/chunks/reset-password-modal-B6IEx0RP.esm.js +144 -0
  309. package/dist/chunks/reset-password-modal-B6IEx0RP.esm.js.map +1 -0
  310. package/dist/chunks/reset-password-modal-D8eQYA1o.js +160 -0
  311. package/dist/chunks/reset-password-modal-D8eQYA1o.js.map +1 -0
  312. package/dist/chunks/routes-DCfUJ0-V.js +35 -0
  313. package/dist/chunks/routes-DCfUJ0-V.js.map +1 -0
  314. package/dist/chunks/routes-d4lHZsSq.esm.js +36 -0
  315. package/dist/chunks/routes-d4lHZsSq.esm.js.map +1 -0
  316. package/dist/chunks/schedule-report-BDsU9z1g.esm.js +236 -0
  317. package/dist/chunks/schedule-report-BDsU9z1g.esm.js.map +1 -0
  318. package/dist/chunks/schedule-report-D3B_npRM.js +235 -0
  319. package/dist/chunks/schedule-report-D3B_npRM.js.map +1 -0
  320. package/dist/chunks/schedule-report-modal-BaUN50kn.esm.js +288 -0
  321. package/dist/chunks/schedule-report-modal-BaUN50kn.esm.js.map +1 -0
  322. package/dist/chunks/schedule-report-modal-HkWvhGzM.js +287 -0
  323. package/dist/chunks/schedule-report-modal-HkWvhGzM.js.map +1 -0
  324. package/dist/chunks/searchable-select-Bkza656F.esm.js +5396 -0
  325. package/dist/chunks/searchable-select-Bkza656F.esm.js.map +1 -0
  326. package/dist/chunks/searchable-select-Ce-Cfh7e.js +5412 -0
  327. package/dist/chunks/searchable-select-Ce-Cfh7e.js.map +1 -0
  328. package/dist/chunks/share-modal-c_hne4V-.esm.js +218 -0
  329. package/dist/chunks/share-modal-c_hne4V-.esm.js.map +1 -0
  330. package/dist/chunks/share-modal-enhanced-BNXVPBE7.esm.js +270 -0
  331. package/dist/chunks/share-modal-enhanced-BNXVPBE7.esm.js.map +1 -0
  332. package/dist/chunks/share-modal-enhanced-D2DkJKv8.js +269 -0
  333. package/dist/chunks/share-modal-enhanced-D2DkJKv8.js.map +1 -0
  334. package/dist/chunks/share-modal-wRSXhat1.js +217 -0
  335. package/dist/chunks/share-modal-wRSXhat1.js.map +1 -0
  336. package/dist/chunks/sidebar-B0_wJDLu.esm.js +879 -0
  337. package/dist/chunks/sidebar-B0_wJDLu.esm.js.map +1 -0
  338. package/dist/chunks/sidebar-DBIBqPwf.js +878 -0
  339. package/dist/chunks/sidebar-DBIBqPwf.js.map +1 -0
  340. package/dist/chunks/sidebarScreen-CVeGcSx7.esm.js +202 -0
  341. package/dist/chunks/sidebarScreen-CVeGcSx7.esm.js.map +1 -0
  342. package/dist/chunks/sidebarScreen-ym9GJarW.js +201 -0
  343. package/dist/chunks/sidebarScreen-ym9GJarW.js.map +1 -0
  344. package/dist/chunks/store-B_mh-yKT.esm.js +100 -0
  345. package/dist/chunks/store-B_mh-yKT.esm.js.map +1 -0
  346. package/dist/chunks/table-CE4hRFxy.esm.js +185 -0
  347. package/dist/chunks/table-CE4hRFxy.esm.js.map +1 -0
  348. package/dist/chunks/table-Do6LnNLm.js +184 -0
  349. package/dist/chunks/table-Do6LnNLm.js.map +1 -0
  350. package/dist/chunks/table-form-BBXjhFbT.esm.js +1537 -0
  351. package/dist/chunks/table-form-BBXjhFbT.esm.js.map +1 -0
  352. package/dist/chunks/template-editor-router-B5oqycyc.js +8 -0
  353. package/dist/chunks/template-editor-router-B5oqycyc.js.map +1 -0
  354. package/dist/chunks/template-editor-router-DzayMRL1.esm.js +9 -0
  355. package/dist/chunks/template-editor-router-DzayMRL1.esm.js.map +1 -0
  356. package/dist/chunks/template-modal-CpfMuiYf.js +768 -0
  357. package/dist/chunks/template-modal-CpfMuiYf.js.map +1 -0
  358. package/dist/chunks/template-modal-QGa_PiIZ.esm.js +769 -0
  359. package/dist/chunks/template-modal-QGa_PiIZ.esm.js.map +1 -0
  360. package/dist/chunks/template-name-modal-CfghZygq.esm.js +101 -0
  361. package/dist/chunks/template-name-modal-CfghZygq.esm.js.map +1 -0
  362. package/dist/chunks/templates-B7OX97K8.esm.js +273 -0
  363. package/dist/chunks/templates-B7OX97K8.esm.js.map +1 -0
  364. package/dist/chunks/templates-DSlPpza9.js +272 -0
  365. package/dist/chunks/templates-DSlPpza9.js.map +1 -0
  366. package/dist/chunks/text-measurement-bcIgRcxS.esm.js +252 -0
  367. package/dist/chunks/text-measurement-bcIgRcxS.esm.js.map +1 -0
  368. package/dist/chunks/three-dot-icon-8YrrMzuw.js +37 -0
  369. package/dist/chunks/three-dot-icon-8YrrMzuw.js.map +1 -0
  370. package/dist/chunks/three-dot-icon-CjJdOPo9.esm.js +38 -0
  371. package/dist/chunks/three-dot-icon-CjJdOPo9.esm.js.map +1 -0
  372. package/dist/chunks/toggle-button-C-1TQjtd.esm.js +55 -0
  373. package/dist/chunks/toggle-button-C-1TQjtd.esm.js.map +1 -0
  374. package/dist/chunks/toggle-button-DAhGk0ML.js +54 -0
  375. package/dist/chunks/toggle-button-DAhGk0ML.js.map +1 -0
  376. package/dist/chunks/toggle-switch-B8IqxoPK.js +80 -0
  377. package/dist/chunks/toggle-switch-B8IqxoPK.js.map +1 -0
  378. package/dist/chunks/toggle-switch-Bs5VnHNu.esm.js +81 -0
  379. package/dist/chunks/toggle-switch-Bs5VnHNu.esm.js.map +1 -0
  380. package/dist/chunks/translations-BWFkwxf-.esm.js +121 -0
  381. package/dist/chunks/translations-BWFkwxf-.esm.js.map +1 -0
  382. package/dist/chunks/translations-Bp8XT7gX.js +120 -0
  383. package/dist/chunks/translations-Bp8XT7gX.js.map +1 -0
  384. package/dist/chunks/uom-field-wrapper-CFunGH8W.js +79 -0
  385. package/dist/chunks/uom-field-wrapper-CFunGH8W.js.map +1 -0
  386. package/dist/chunks/uom-field-wrapper-CqOa0C9G.esm.js +80 -0
  387. package/dist/chunks/uom-field-wrapper-CqOa0C9G.esm.js.map +1 -0
  388. package/dist/chunks/upload-excel-Vtcnj7cc.esm.js +361 -0
  389. package/dist/chunks/upload-excel-Vtcnj7cc.esm.js.map +1 -0
  390. package/dist/chunks/use-pages-C30_LQ3n.esm.js +30 -0
  391. package/dist/chunks/use-pages-C30_LQ3n.esm.js.map +1 -0
  392. package/dist/chunks/use-pages-WkAi3E4W.js +29 -0
  393. package/dist/chunks/use-pages-WkAi3E4W.js.map +1 -0
  394. package/dist/chunks/use-translations-CjXYG4SW.esm.js +69 -0
  395. package/dist/chunks/use-translations-CjXYG4SW.esm.js.map +1 -0
  396. package/dist/chunks/use-translations-DpZR71i0.js +68 -0
  397. package/dist/chunks/use-translations-DpZR71i0.js.map +1 -0
  398. package/dist/chunks/useAccountSetting-w9Xa-7w_.esm.js +174 -0
  399. package/dist/chunks/useAccountSetting-w9Xa-7w_.esm.js.map +1 -0
  400. package/dist/chunks/useCheckSkuAndName-DZnJSqwy.esm.js +50 -0
  401. package/dist/chunks/useCheckSkuAndName-DZnJSqwy.esm.js.map +1 -0
  402. package/dist/chunks/useCompanyCountryCode-ByMHnqxy.esm.js +36 -0
  403. package/dist/chunks/useCompanyCountryCode-ByMHnqxy.esm.js.map +1 -0
  404. package/dist/chunks/useCompanyCountryCode-DqloXwtG.js +35 -0
  405. package/dist/chunks/useCompanyCountryCode-DqloXwtG.js.map +1 -0
  406. package/dist/chunks/useDataFetcher-Cq-WKcll.js +79 -0
  407. package/dist/chunks/useDataFetcher-Cq-WKcll.js.map +1 -0
  408. package/dist/chunks/useDataFetcher-DDlv9bYl.esm.js +80 -0
  409. package/dist/chunks/useDataFetcher-DDlv9bYl.esm.js.map +1 -0
  410. package/dist/chunks/useLangauge-DE_pDKAr.esm.js +49 -0
  411. package/dist/chunks/useLangauge-DE_pDKAr.esm.js.map +1 -0
  412. package/dist/chunks/useLangauge-pT1jJDfy.js +48 -0
  413. package/dist/chunks/useLangauge-pT1jJDfy.js.map +1 -0
  414. package/dist/chunks/useReduxIntegration-Bh_3eVGW.js +38 -0
  415. package/dist/chunks/useReduxIntegration-Bh_3eVGW.js.map +1 -0
  416. package/dist/chunks/useReduxIntegration-DzUPNavJ.esm.js +39 -0
  417. package/dist/chunks/useReduxIntegration-DzUPNavJ.esm.js.map +1 -0
  418. package/dist/chunks/useSetDefaultConfig-BD1RgDdR.js +100 -0
  419. package/dist/chunks/useSetDefaultConfig-BD1RgDdR.js.map +1 -0
  420. package/dist/chunks/useSetDefaultConfig-DYgXuA-O.esm.js +101 -0
  421. package/dist/chunks/useSetDefaultConfig-DYgXuA-O.esm.js.map +1 -0
  422. package/dist/chunks/useUniquenessCheck-CpUWTYur.esm.js +39 -0
  423. package/dist/chunks/useUniquenessCheck-CpUWTYur.esm.js.map +1 -0
  424. package/dist/chunks/user-menu-C4Ud-8Q3.js +104 -0
  425. package/dist/chunks/user-menu-C4Ud-8Q3.js.map +1 -0
  426. package/dist/chunks/user-menu-jAjQfkq3.esm.js +105 -0
  427. package/dist/chunks/user-menu-jAjQfkq3.esm.js.map +1 -0
  428. package/dist/chunks/value-editor-Be7rTjjR.esm.js +137 -0
  429. package/dist/chunks/value-editor-Be7rTjjR.esm.js.map +1 -0
  430. package/dist/chunks/value-editor-DX-JwgIC.js +136 -0
  431. package/dist/chunks/value-editor-DX-JwgIC.js.map +1 -0
  432. package/dist/components/ERPUIProvider/index.esm.js +1 -1
  433. package/dist/components/ERPUIProvider/index.js +1 -1
  434. package/dist/components/FORMS/index.esm.js +1 -1
  435. package/dist/components/FORMS/index.js +1 -1
  436. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  437. package/dist/components/action-bar/action-bar/index.js +1 -1
  438. package/dist/components/action-bar/index.esm.js +1 -1
  439. package/dist/components/action-bar/index.js +1 -1
  440. package/dist/components/activity-tag/activity-tag/index.esm.js +1 -1
  441. package/dist/components/activity-tag/activity-tag/index.js +1 -1
  442. package/dist/components/activity-tag/index.esm.js +1 -1
  443. package/dist/components/activity-tag/index.js +1 -1
  444. package/dist/components/address-modal/index.esm.js +1 -1
  445. package/dist/components/address-modal/index.js +1 -1
  446. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  447. package/dist/components/ai-summary/index.esm.js +1 -1
  448. package/dist/components/appbar/appbar/index.esm.js +1 -1
  449. package/dist/components/appbar/appbar/index.js +1 -1
  450. package/dist/components/appbar/index.esm.js +1 -1
  451. package/dist/components/appbar/index.js +1 -1
  452. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  453. package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
  454. package/dist/components/approval-wrapper/index.esm.js +1 -1
  455. package/dist/components/approval-wrapper/index.js +1 -1
  456. package/dist/components/calculation-summary/calculation-summary/index.esm.js +1 -1
  457. package/dist/components/calculation-summary/calculation-summary/index.js +1 -1
  458. package/dist/components/calculation-summary/index.esm.js +1 -1
  459. package/dist/components/calculation-summary/index.js +1 -1
  460. package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +1 -1
  461. package/dist/components/change-user-password-modal/change-user-password-modal/index.js +1 -1
  462. package/dist/components/change-user-password-modal/index.esm.js +1 -1
  463. package/dist/components/change-user-password-modal/index.js +1 -1
  464. package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
  465. package/dist/components/charts/donutChart/DonutChart/index.js +1 -1
  466. package/dist/components/charts/donutChart/index.esm.js +1 -1
  467. package/dist/components/charts/donutChart/index.js +1 -1
  468. package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
  469. package/dist/components/charts/groupBarChart/GroupBarChart/index.js +1 -1
  470. package/dist/components/charts/groupBarChart/index.esm.js +1 -1
  471. package/dist/components/charts/groupBarChart/index.js +1 -1
  472. package/dist/components/charts/index.esm.js +2 -2
  473. package/dist/components/charts/index.js +2 -2
  474. package/dist/components/chat-bot/index.esm.js +1 -1
  475. package/dist/components/chat-bot/index.js +1 -1
  476. package/dist/components/checkbox/index.esm.js +1 -1
  477. package/dist/components/checkbox/index.js +1 -1
  478. package/dist/components/confirm-modal/confirm-modal/index.esm.js +1 -1
  479. package/dist/components/confirm-modal/confirm-modal/index.js +1 -1
  480. package/dist/components/confirm-modal/index.esm.js +1 -1
  481. package/dist/components/confirm-modal/index.js +1 -1
  482. package/dist/components/contact-modal/index.esm.js +1 -1
  483. package/dist/components/contact-modal/index.js +1 -1
  484. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  485. package/dist/components/custom-forms/FORMS/index.js +1 -1
  486. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  487. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  488. package/dist/components/custom-forms/index.esm.js +2 -2
  489. package/dist/components/custom-forms/index.js +1 -1
  490. package/dist/components/date-range-picker/date-range-picker/index.esm.js +1 -1
  491. package/dist/components/date-range-picker/date-range-picker/index.js +1 -1
  492. package/dist/components/date-range-picker/index.esm.js +2 -2
  493. package/dist/components/date-range-picker/index.js +2 -2
  494. package/dist/components/department-add-modal/index.esm.js +1 -1
  495. package/dist/components/department-add-modal/index.js +1 -1
  496. package/dist/components/designation-add-modal/index.esm.js +1 -1
  497. package/dist/components/designation-add-modal/index.js +1 -1
  498. package/dist/components/donutChart/index.esm.js +1 -1
  499. package/dist/components/donutChart/index.js +1 -1
  500. package/dist/components/dropdown-button/dropdown-button/index.esm.js +1 -1
  501. package/dist/components/dropdown-button/dropdown-button/index.js +1 -1
  502. package/dist/components/dropdown-button/index.esm.js +1 -1
  503. package/dist/components/dropdown-button/index.js +1 -1
  504. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +1 -1
  505. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +1 -1
  506. package/dist/components/dynamic-layout-wrapper/index.esm.js +1 -1
  507. package/dist/components/dynamic-layout-wrapper/index.js +1 -1
  508. package/dist/components/dynamic-select/index.esm.js +1 -1
  509. package/dist/components/dynamic-select/index.js +1 -1
  510. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  511. package/dist/components/editor/index.esm.js +1 -1
  512. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  513. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  514. package/dist/components/examples/index.esm.js +1 -1
  515. package/dist/components/examples/index.js +1 -1
  516. package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.esm.js +1 -1
  517. package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.js +1 -1
  518. package/dist/components/expandable-summary-wrapper/index.esm.js +1 -1
  519. package/dist/components/expandable-summary-wrapper/index.js +1 -1
  520. package/dist/components/filter/components/index.esm.js +2 -2
  521. package/dist/components/filter/components/index.js +2 -2
  522. package/dist/components/filter/components/remove-action/index.esm.js +1 -1
  523. package/dist/components/filter/components/remove-action/index.js +1 -1
  524. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  525. package/dist/components/filter/components/value-editor/index.js +1 -1
  526. package/dist/components/filter/filter/index.esm.js +1 -1
  527. package/dist/components/filter/filter/index.js +1 -1
  528. package/dist/components/filter/index.esm.js +3 -3
  529. package/dist/components/filter/index.js +3 -3
  530. package/dist/components/footer/footer/index.esm.js +1 -1
  531. package/dist/components/footer/footer/index.js +1 -1
  532. package/dist/components/footer/index.esm.js +1 -1
  533. package/dist/components/footer/index.js +1 -1
  534. package/dist/components/form-builder-element/index.esm.js +9 -9
  535. package/dist/components/form-builder-element/index.js +7 -7
  536. package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.esm.js +1 -1
  537. package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.js +1 -1
  538. package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.esm.js +1 -1
  539. package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.js +1 -1
  540. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  541. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  542. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  543. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  544. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  545. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  546. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  547. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +9 -9
  548. package/dist/components/form-control/form-builder/form-builder-element/index.js +7 -7
  549. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  550. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  551. package/dist/components/form-control/form-builder/form-builder-element/phone/index.esm.js +1 -1
  552. package/dist/components/form-control/form-builder/form-builder-element/phone/index.js +1 -1
  553. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  554. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  555. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  556. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  557. package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.esm.js +1 -1
  558. package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.js +1 -1
  559. package/dist/components/form-control/form-builder/index.esm.js +9 -9
  560. package/dist/components/form-control/form-builder/index.js +7 -7
  561. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  562. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  563. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  564. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  565. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  566. package/dist/components/form-control/form-parser/index.js +2 -2
  567. package/dist/components/form-control/index.esm.js +11 -11
  568. package/dist/components/form-control/index.js +9 -9
  569. package/dist/components/form-parser/index.esm.js +1 -1
  570. package/dist/components/form-parser/index.js +1 -1
  571. package/dist/components/groupBarChart/index.esm.js +1 -1
  572. package/dist/components/groupBarChart/index.js +1 -1
  573. package/dist/components/header/components/global-search/index.esm.js +1 -1
  574. package/dist/components/header/components/index.esm.js +2 -2
  575. package/dist/components/header/components/index.js +1 -1
  576. package/dist/components/header/components/language-switch/index.esm.js +1 -1
  577. package/dist/components/header/components/language-switch/index.js +1 -1
  578. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  579. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  580. package/dist/components/header/components/user-menu/index.esm.js +1 -1
  581. package/dist/components/header/components/user-menu/index.js +1 -1
  582. package/dist/components/header/header/index.esm.js +1 -1
  583. package/dist/components/header/header/index.js +1 -1
  584. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  585. package/dist/components/header/header-enhanced/index.js +1 -1
  586. package/dist/components/header/index.esm.js +6 -6
  587. package/dist/components/header/index.js +3 -3
  588. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  589. package/dist/components/header/redux/index.esm.js +2 -2
  590. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  591. package/dist/components/index.esm.js +60 -60
  592. package/dist/components/index.js +53 -53
  593. package/dist/components/inventory-reports-title-bar/component/index.esm.js +1 -1
  594. package/dist/components/inventory-reports-title-bar/component/index.js +1 -1
  595. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +1 -1
  596. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +1 -1
  597. package/dist/components/inventory-reports-title-bar/index.esm.js +5 -5
  598. package/dist/components/inventory-reports-title-bar/index.js +3 -3
  599. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  600. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  601. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  602. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  603. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  604. package/dist/components/inventory-reports-title-bar/report-buttons/index.esm.js +1 -1
  605. package/dist/components/inventory-reports-title-bar/report-buttons/index.js +1 -1
  606. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
  607. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js +1 -1
  608. package/dist/components/journal-type-add-modal/index.esm.js +1 -1
  609. package/dist/components/journal-type-add-modal/index.js +1 -1
  610. package/dist/components/listing/index.esm.js +1 -1
  611. package/dist/components/listing/index.js +1 -1
  612. package/dist/components/listing/listing/index.esm.js +1 -1
  613. package/dist/components/listing/listing/index.js +1 -1
  614. package/dist/components/location-select/index.esm.js +1 -1
  615. package/dist/components/location-select/index.js +1 -1
  616. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  617. package/dist/components/material-editable-table/components/index.js +1 -1
  618. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  619. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  620. package/dist/components/material-editable-table/index.esm.js +2 -2
  621. package/dist/components/material-editable-table/index.js +2 -2
  622. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  623. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  624. package/dist/components/material-table/components/index.esm.js +1 -1
  625. package/dist/components/material-table/components/index.js +1 -1
  626. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  627. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  628. package/dist/components/material-table/index.esm.js +1 -1
  629. package/dist/components/material-table/index.js +1 -1
  630. package/dist/components/material-table/material-table/index.esm.js +1 -1
  631. package/dist/components/material-table/material-table/index.js +1 -1
  632. package/dist/components/page-navigator/components/index.esm.js +1 -1
  633. package/dist/components/page-navigator/components/index.js +1 -1
  634. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  635. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  636. package/dist/components/page-navigator/index.esm.js +2 -2
  637. package/dist/components/page-navigator/index.js +2 -2
  638. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  639. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  640. package/dist/components/pagination/index.esm.js +1 -1
  641. package/dist/components/pagination/index.js +1 -1
  642. package/dist/components/pagination/pagination/index.esm.js +1 -1
  643. package/dist/components/pagination/pagination/index.js +1 -1
  644. package/dist/components/parties-modal/index.esm.js +1 -1
  645. package/dist/components/parties-modal/index.js +1 -1
  646. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  647. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  648. package/dist/components/phone-input/index.esm.js +1 -1
  649. package/dist/components/phone-input/index.js +1 -1
  650. package/dist/components/phone-input/phone-input/index.esm.js +1 -1
  651. package/dist/components/phone-input/phone-input/index.js +1 -1
  652. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  653. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  654. package/dist/components/providers/index.esm.js +1 -1
  655. package/dist/components/providers/index.js +1 -1
  656. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  657. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  658. package/dist/components/report-buttons/index.esm.js +1 -1
  659. package/dist/components/report-buttons/index.js +1 -1
  660. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  661. package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
  662. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  663. package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
  664. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  665. package/dist/components/reports/dynamic-report/index.js +2 -2
  666. package/dist/components/reports/index.esm.js +2 -2
  667. package/dist/components/reports/index.js +2 -2
  668. package/dist/components/reports-title-bar/index.esm.js +4 -4
  669. package/dist/components/reports-title-bar/index.js +2 -2
  670. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  671. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  672. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  673. package/dist/components/reports-title-bar/report-buttons/index.esm.js +1 -1
  674. package/dist/components/reports-title-bar/report-buttons/index.js +1 -1
  675. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
  676. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +1 -1
  677. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  678. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  679. package/dist/components/reset-password-modal/index.esm.js +1 -1
  680. package/dist/components/reset-password-modal/index.js +1 -1
  681. package/dist/components/reset-password-modal/reset-password-modal/index.esm.js +1 -1
  682. package/dist/components/reset-password-modal/reset-password-modal/index.js +1 -1
  683. package/dist/components/rfq-response/index.esm.js +1 -1
  684. package/dist/components/rfq-response/index.js +1 -1
  685. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  686. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  687. package/dist/components/schedule-report/index.esm.js +2 -2
  688. package/dist/components/schedule-report/index.js +2 -2
  689. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  690. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  691. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  692. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  693. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  694. package/dist/components/schedule-report-modal/index.esm.js +1 -1
  695. package/dist/components/schedule-report-modal/index.js +1 -1
  696. package/dist/components/searchable-select/index.esm.js +1 -1
  697. package/dist/components/searchable-select/index.js +1 -1
  698. package/dist/components/share-modal/index.esm.js +4 -4
  699. package/dist/components/share-modal/index.js +2 -2
  700. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  701. package/dist/components/share-modal/redux/index.esm.js +2 -2
  702. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  703. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  704. package/dist/components/share-modal/share-modal/index.js +1 -1
  705. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  706. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  707. package/dist/components/sidebar/index.esm.js +1 -1
  708. package/dist/components/sidebar/index.js +1 -1
  709. package/dist/components/sidebar/sidebar/index.esm.js +1 -1
  710. package/dist/components/sidebar/sidebar/index.js +1 -1
  711. package/dist/components/team-add-modal/index.esm.js +1 -1
  712. package/dist/components/team-add-modal/index.js +1 -1
  713. package/dist/components/toggle-switch/index.esm.js +1 -1
  714. package/dist/components/toggle-switch/index.js +1 -1
  715. package/dist/components/toggle-switch/toggle-switch/index.esm.js +1 -1
  716. package/dist/components/toggle-switch/toggle-switch/index.js +1 -1
  717. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  718. package/dist/components/uom-field-wrapper/index.js +1 -1
  719. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  720. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  721. package/dist/components/upload-excel/index.esm.js +1 -1
  722. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  723. package/dist/contexts/AuthContext/index.esm.js +1 -1
  724. package/dist/contexts/AuthContext/index.js +1 -1
  725. package/dist/contexts/index.esm.js +3 -3
  726. package/dist/contexts/index.js +3 -3
  727. package/dist/contexts/languageContext/index.esm.js +2 -2
  728. package/dist/contexts/languageContext/index.js +1 -1
  729. package/dist/contexts/page-context/index.esm.js +1 -1
  730. package/dist/contexts/page-context/index.js +1 -1
  731. package/dist/hooks/common/index.esm.js +1 -1
  732. package/dist/hooks/common/index.js +1 -1
  733. package/dist/hooks/index.esm.js +10 -10
  734. package/dist/hooks/index.js +7 -7
  735. package/dist/hooks/use-pages/index.esm.js +1 -1
  736. package/dist/hooks/use-pages/index.js +1 -1
  737. package/dist/hooks/use-translations/index.esm.js +1 -1
  738. package/dist/hooks/use-translations/index.js +1 -1
  739. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  740. package/dist/hooks/useAuth/index.esm.js +1 -1
  741. package/dist/hooks/useAuth/index.js +1 -1
  742. package/dist/hooks/useAuth.d.ts +2 -3
  743. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  744. package/dist/hooks/useCompanyCountryCode/index.esm.js +1 -1
  745. package/dist/hooks/useCompanyCountryCode/index.js +1 -1
  746. package/dist/hooks/useDataFetcher/index.esm.js +1 -1
  747. package/dist/hooks/useDataFetcher/index.js +1 -1
  748. package/dist/hooks/useLangauge/index.esm.js +1 -1
  749. package/dist/hooks/useLangauge/index.js +1 -1
  750. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  751. package/dist/hooks/useReduxIntegration/index.js +1 -1
  752. package/dist/hooks/useSetDefaultConfig/index.esm.js +1 -1
  753. package/dist/hooks/useSetDefaultConfig/index.js +1 -1
  754. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  755. package/dist/icons/index.esm.js +1 -1
  756. package/dist/icons/index.js +1 -1
  757. package/dist/icons/three-dot-icon/index.esm.js +1 -1
  758. package/dist/icons/three-dot-icon/index.js +1 -1
  759. package/dist/index.esm.js +100 -100
  760. package/dist/index.js +79 -79
  761. package/dist/layout/fullScreen/fullScreen/index.esm.js +1 -1
  762. package/dist/layout/fullScreen/fullScreen/index.js +1 -1
  763. package/dist/layout/fullScreen/index.esm.js +1 -1
  764. package/dist/layout/fullScreen/index.js +1 -1
  765. package/dist/layout/index.esm.js +2 -2
  766. package/dist/layout/index.js +2 -2
  767. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  768. package/dist/layout/sidebarScreen/index.js +1 -1
  769. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +1 -1
  770. package/dist/layout/sidebarScreen/sidebarScreen/index.js +1 -1
  771. package/dist/redux/actionCreator/index.esm.js +1 -1
  772. package/dist/redux/index.esm.js +3 -3
  773. package/dist/redux/module-reducer/index.esm.js +1 -1
  774. package/dist/redux/store/index.esm.js +1 -1
  775. package/dist/runtime/index.esm.js +5 -5
  776. package/dist/runtime/index.js +5 -5
  777. package/dist/utils/api/index.esm.js +1 -1
  778. package/dist/utils/api-config/index.esm.js +6 -0
  779. package/dist/utils/api-config/index.esm.js.map +1 -1
  780. package/dist/utils/api-config/index.js +6 -0
  781. package/dist/utils/api-config/index.js.map +1 -1
  782. package/dist/utils/api-config.d.ts +3 -3
  783. package/dist/utils/common/index.esm.js +1 -1
  784. package/dist/utils/common-utility/index.esm.js +1 -1
  785. package/dist/utils/common-utility/index.js +1 -1
  786. package/dist/utils/i18n/index.esm.js +1 -1
  787. package/dist/utils/i18n/index.js +1 -1
  788. package/dist/utils/index.esm.js +9 -9
  789. package/dist/utils/index.js +3 -3
  790. package/dist/utils/server/index.esm.js +2 -2
  791. package/dist/utils/text-measurement/index.esm.js +1 -1
  792. package/dist/utils/translations/index.esm.js +1 -1
  793. package/dist/utils/translations/index.js +1 -1
  794. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  795. package/dist/views/afterAuth/dashboard/index.js +1 -1
  796. package/dist/views/afterAuth/index.esm.js +2 -2
  797. package/dist/views/afterAuth/index.js +2 -2
  798. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  799. package/dist/views/afterAuth/page-view/index.js +1 -1
  800. package/dist/views/beforeAuth/change-password/index.esm.js +1 -1
  801. package/dist/views/beforeAuth/change-password/index.js +1 -1
  802. package/dist/views/beforeAuth/forgot-password/index.esm.js +1 -1
  803. package/dist/views/beforeAuth/forgot-password/index.js +1 -1
  804. package/dist/views/beforeAuth/index.esm.js +3 -3
  805. package/dist/views/beforeAuth/index.js +3 -3
  806. package/dist/views/beforeAuth/login/index.esm.js +2 -2
  807. package/dist/views/beforeAuth/login/index.js +2 -2
  808. package/dist/views/beforeAuth/reset-password/index.esm.js +1 -1
  809. package/dist/views/beforeAuth/reset-password/index.js +1 -1
  810. package/dist/views/custom-form/index.esm.js +1 -1
  811. package/dist/views/custom-form/index.js +1 -1
  812. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  813. package/dist/views/form-builder/custom-form/index.js +1 -1
  814. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  815. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  816. package/dist/views/form-builder/form-fields/index.js +1 -1
  817. package/dist/views/form-builder/index.esm.js +4 -4
  818. package/dist/views/form-builder/index.js +2 -2
  819. package/dist/views/form-builder/redux/index.esm.js +1 -1
  820. package/dist/views/index.esm.js +18 -18
  821. package/dist/views/index.js +14 -14
  822. package/dist/views/privateRoute/index.esm.js +1 -1
  823. package/dist/views/privateRoute/index.js +1 -1
  824. package/dist/views/routes/index.esm.js +1 -1
  825. package/dist/views/routes/index.js +1 -1
  826. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  827. package/dist/views/template-editor/add-template/index.js +1 -1
  828. package/dist/views/template-editor/components/index.esm.js +1 -1
  829. package/dist/views/template-editor/components/index.js +1 -1
  830. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  831. package/dist/views/template-editor/index.esm.js +8 -8
  832. package/dist/views/template-editor/index.js +6 -6
  833. package/dist/views/template-editor/routes/index.esm.js +1 -1
  834. package/dist/views/template-editor/routes/index.js +1 -1
  835. package/dist/views/template-editor/template-editor-router/index.esm.js +1 -1
  836. package/dist/views/template-editor/template-editor-router/index.js +1 -1
  837. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  838. package/dist/views/template-editor/template-modal/index.js +1 -1
  839. package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
  840. package/dist/views/template-editor/templates/index.esm.js +1 -1
  841. package/dist/views/template-editor/templates/index.js +1 -1
  842. package/package.json +2 -2
  843. package/dist/chunks/AuthContext-Bqy3zlq_.js +0 -305
  844. package/dist/chunks/AuthContext-Bqy3zlq_.js.map +0 -1
  845. package/dist/chunks/AuthContext-eGXp567d.esm.js +0 -306
  846. package/dist/chunks/AuthContext-eGXp567d.esm.js.map +0 -1
  847. package/dist/chunks/DonutChart-9GlP0tGi.esm.js +0 -95
  848. package/dist/chunks/DonutChart-9GlP0tGi.esm.js.map +0 -1
  849. package/dist/chunks/DonutChart-BamIDLHj.js +0 -111
  850. package/dist/chunks/DonutChart-BamIDLHj.js.map +0 -1
  851. package/dist/chunks/DynamicDependentField-DM-pXiRb.esm.js +0 -128
  852. package/dist/chunks/DynamicDependentField-DM-pXiRb.esm.js.map +0 -1
  853. package/dist/chunks/DynamicDependentField-RWjHJa1S.js +0 -127
  854. package/dist/chunks/DynamicDependentField-RWjHJa1S.js.map +0 -1
  855. package/dist/chunks/DynamicSearchInput-xvamctT5.esm.js +0 -195
  856. package/dist/chunks/DynamicSearchInput-xvamctT5.esm.js.map +0 -1
  857. package/dist/chunks/ERPUIProvider-CcbU8Jhs.esm.js +0 -133
  858. package/dist/chunks/ERPUIProvider-CcbU8Jhs.esm.js.map +0 -1
  859. package/dist/chunks/ERPUIProvider-CkA346Bx.js +0 -132
  860. package/dist/chunks/ERPUIProvider-CkA346Bx.js.map +0 -1
  861. package/dist/chunks/FORMS-6k86P7kx.esm.js +0 -296
  862. package/dist/chunks/FORMS-6k86P7kx.esm.js.map +0 -1
  863. package/dist/chunks/FORMS-BOxezXrE.js +0 -295
  864. package/dist/chunks/FORMS-BOxezXrE.js.map +0 -1
  865. package/dist/chunks/FlexibleReduxExample-BU7eNVSq.js +0 -148
  866. package/dist/chunks/FlexibleReduxExample-BU7eNVSq.js.map +0 -1
  867. package/dist/chunks/FlexibleReduxExample-BV7TsUhl.esm.js +0 -149
  868. package/dist/chunks/FlexibleReduxExample-BV7TsUhl.esm.js.map +0 -1
  869. package/dist/chunks/GroupBarChart-dsNa125r.js +0 -103
  870. package/dist/chunks/GroupBarChart-dsNa125r.js.map +0 -1
  871. package/dist/chunks/GroupBarChart-jsNqFjC-.esm.js +0 -87
  872. package/dist/chunks/GroupBarChart-jsNqFjC-.esm.js.map +0 -1
  873. package/dist/chunks/SectionFlowEditor-DvnZFi2e.js +0 -5460
  874. package/dist/chunks/SectionFlowEditor-DvnZFi2e.js.map +0 -1
  875. package/dist/chunks/SectionFlowEditor-Ehnll99q.esm.js +0 -5461
  876. package/dist/chunks/SectionFlowEditor-Ehnll99q.esm.js.map +0 -1
  877. package/dist/chunks/action-bar-BE-TNuCe.esm.js +0 -637
  878. package/dist/chunks/action-bar-BE-TNuCe.esm.js.map +0 -1
  879. package/dist/chunks/action-bar-CP01wien.js +0 -636
  880. package/dist/chunks/action-bar-CP01wien.js.map +0 -1
  881. package/dist/chunks/actionCreator-BlBxlh2l.esm.js +0 -28
  882. package/dist/chunks/actionCreator-BlBxlh2l.esm.js.map +0 -1
  883. package/dist/chunks/actionCreator-CHUmAB4_.esm.js +0 -14
  884. package/dist/chunks/actionCreator-CHUmAB4_.esm.js.map +0 -1
  885. package/dist/chunks/actionCreator-DCgwFst3.esm.js +0 -80
  886. package/dist/chunks/actionCreator-DCgwFst3.esm.js.map +0 -1
  887. package/dist/chunks/actionCreator-DzPzUn_7.esm.js +0 -94
  888. package/dist/chunks/actionCreator-DzPzUn_7.esm.js.map +0 -1
  889. package/dist/chunks/actionCreator-RfaAAG4X.esm.js +0 -22
  890. package/dist/chunks/actionCreator-RfaAAG4X.esm.js.map +0 -1
  891. package/dist/chunks/activity-tag-B_HyUR6v.js +0 -151
  892. package/dist/chunks/activity-tag-B_HyUR6v.js.map +0 -1
  893. package/dist/chunks/activity-tag-Bl99UBhT.esm.js +0 -152
  894. package/dist/chunks/activity-tag-Bl99UBhT.esm.js.map +0 -1
  895. package/dist/chunks/add-template-BMXnJyg4.esm.js +0 -11
  896. package/dist/chunks/add-template-BMXnJyg4.esm.js.map +0 -1
  897. package/dist/chunks/add-template-Cuwv_toK.js +0 -10
  898. package/dist/chunks/add-template-Cuwv_toK.js.map +0 -1
  899. package/dist/chunks/address-modal-CHBvA7Wz.js +0 -687
  900. package/dist/chunks/address-modal-CHBvA7Wz.js.map +0 -1
  901. package/dist/chunks/address-modal-DTm-EnU1.esm.js +0 -671
  902. package/dist/chunks/address-modal-DTm-EnU1.esm.js.map +0 -1
  903. package/dist/chunks/ai-summary-CxtEHJw9.esm.js +0 -351
  904. package/dist/chunks/ai-summary-CxtEHJw9.esm.js.map +0 -1
  905. package/dist/chunks/api-C4WZctJf.esm.js +0 -4682
  906. package/dist/chunks/api-C4WZctJf.esm.js.map +0 -1
  907. package/dist/chunks/api-Csn_qx_a.esm.js +0 -2219
  908. package/dist/chunks/api-Csn_qx_a.esm.js.map +0 -1
  909. package/dist/chunks/appbar-BSjQ7IAj.js +0 -56
  910. package/dist/chunks/appbar-BSjQ7IAj.js.map +0 -1
  911. package/dist/chunks/appbar-CIbFF779.esm.js +0 -57
  912. package/dist/chunks/appbar-CIbFF779.esm.js.map +0 -1
  913. package/dist/chunks/approval-wrapper-CAjch4Mf.js +0 -139
  914. package/dist/chunks/approval-wrapper-CAjch4Mf.js.map +0 -1
  915. package/dist/chunks/approval-wrapper-DmB_NzBg.esm.js +0 -140
  916. package/dist/chunks/approval-wrapper-DmB_NzBg.esm.js.map +0 -1
  917. package/dist/chunks/calculation-summary-DmM2nsnY.esm.js +0 -174
  918. package/dist/chunks/calculation-summary-DmM2nsnY.esm.js.map +0 -1
  919. package/dist/chunks/calculation-summary-K2rC_toI.js +0 -173
  920. package/dist/chunks/calculation-summary-K2rC_toI.js.map +0 -1
  921. package/dist/chunks/change-password-ABSrNtI8.esm.js +0 -183
  922. package/dist/chunks/change-password-ABSrNtI8.esm.js.map +0 -1
  923. package/dist/chunks/change-password-DkeDrR5Y.js +0 -199
  924. package/dist/chunks/change-password-DkeDrR5Y.js.map +0 -1
  925. package/dist/chunks/change-user-password-modal-BytpWtdj.esm.js +0 -119
  926. package/dist/chunks/change-user-password-modal-BytpWtdj.esm.js.map +0 -1
  927. package/dist/chunks/change-user-password-modal-IAsUvfpF.js +0 -135
  928. package/dist/chunks/change-user-password-modal-IAsUvfpF.js.map +0 -1
  929. package/dist/chunks/chat-bot-B9wlHU4B.js +0 -1830
  930. package/dist/chunks/chat-bot-B9wlHU4B.js.map +0 -1
  931. package/dist/chunks/chat-bot-DBwAlw7T.esm.js +0 -1831
  932. package/dist/chunks/chat-bot-DBwAlw7T.esm.js.map +0 -1
  933. package/dist/chunks/checkbox-BVkAOFmt.js +0 -82
  934. package/dist/chunks/checkbox-BVkAOFmt.js.map +0 -1
  935. package/dist/chunks/checkbox-CKDbaXzi.esm.js +0 -83
  936. package/dist/chunks/checkbox-CKDbaXzi.esm.js.map +0 -1
  937. package/dist/chunks/common-CmnUWtgz.esm.js +0 -183
  938. package/dist/chunks/common-CmnUWtgz.esm.js.map +0 -1
  939. package/dist/chunks/common-DoIQU98P.js +0 -182
  940. package/dist/chunks/common-DoIQU98P.js.map +0 -1
  941. package/dist/chunks/common-utility-DVezzQMe.js +0 -305
  942. package/dist/chunks/common-utility-DVezzQMe.js.map +0 -1
  943. package/dist/chunks/common-utility-ppCGJWGv.esm.js +0 -305
  944. package/dist/chunks/common-utility-ppCGJWGv.esm.js.map +0 -1
  945. package/dist/chunks/confirm-modal-BHn6ByuG.js +0 -97
  946. package/dist/chunks/confirm-modal-BHn6ByuG.js.map +0 -1
  947. package/dist/chunks/confirm-modal-CQFU3pec.esm.js +0 -98
  948. package/dist/chunks/confirm-modal-CQFU3pec.esm.js.map +0 -1
  949. package/dist/chunks/contact-modal-BVzokAWh.js +0 -185
  950. package/dist/chunks/contact-modal-BVzokAWh.js.map +0 -1
  951. package/dist/chunks/contact-modal-Bh1hsSUl.esm.js +0 -169
  952. package/dist/chunks/contact-modal-Bh1hsSUl.esm.js.map +0 -1
  953. package/dist/chunks/custom-editor-CAcqS40E.esm.js +0 -1257
  954. package/dist/chunks/custom-editor-CAcqS40E.esm.js.map +0 -1
  955. package/dist/chunks/custom-form-BKan6xKs.js +0 -1145
  956. package/dist/chunks/custom-form-BKan6xKs.js.map +0 -1
  957. package/dist/chunks/custom-form-M2yaxAU-.esm.js +0 -1146
  958. package/dist/chunks/custom-form-M2yaxAU-.esm.js.map +0 -1
  959. package/dist/chunks/dashboard-BLIoRhZz.js +0 -74
  960. package/dist/chunks/dashboard-BLIoRhZz.js.map +0 -1
  961. package/dist/chunks/dashboard-DaAOQfw-.esm.js +0 -75
  962. package/dist/chunks/dashboard-DaAOQfw-.esm.js.map +0 -1
  963. package/dist/chunks/date-range-picker-BrBrrpNr.esm.js +0 -160
  964. package/dist/chunks/date-range-picker-BrBrrpNr.esm.js.map +0 -1
  965. package/dist/chunks/date-range-picker-C_1ZpdRG.js +0 -61
  966. package/dist/chunks/date-range-picker-C_1ZpdRG.js.map +0 -1
  967. package/dist/chunks/date-range-picker-CvtalCUN.js +0 -159
  968. package/dist/chunks/date-range-picker-CvtalCUN.js.map +0 -1
  969. package/dist/chunks/date-range-picker-DKQsu_dk.esm.js +0 -62
  970. package/dist/chunks/date-range-picker-DKQsu_dk.esm.js.map +0 -1
  971. package/dist/chunks/dropdown-button-5Yq1wX-f.esm.js +0 -146
  972. package/dist/chunks/dropdown-button-5Yq1wX-f.esm.js.map +0 -1
  973. package/dist/chunks/dropdown-button-CGrcSsw4.js +0 -162
  974. package/dist/chunks/dropdown-button-CGrcSsw4.js.map +0 -1
  975. package/dist/chunks/dynamic-layout-wrapper-D0MlkFpa.js +0 -228
  976. package/dist/chunks/dynamic-layout-wrapper-D0MlkFpa.js.map +0 -1
  977. package/dist/chunks/dynamic-layout-wrapper-DvYlPKbc.esm.js +0 -229
  978. package/dist/chunks/dynamic-layout-wrapper-DvYlPKbc.esm.js.map +0 -1
  979. package/dist/chunks/dynamic-report-BfUbkDtu.esm.js +0 -589
  980. package/dist/chunks/dynamic-report-BfUbkDtu.esm.js.map +0 -1
  981. package/dist/chunks/dynamic-report-DBxqcE2b.js +0 -588
  982. package/dist/chunks/dynamic-report-DBxqcE2b.js.map +0 -1
  983. package/dist/chunks/dynamic-rows-B_dhcWuK.js +0 -249
  984. package/dist/chunks/dynamic-rows-B_dhcWuK.js.map +0 -1
  985. package/dist/chunks/dynamic-rows-Ey-yitNr.esm.js +0 -250
  986. package/dist/chunks/dynamic-rows-Ey-yitNr.esm.js.map +0 -1
  987. package/dist/chunks/dynamic-text-editor-GWbqgyUt.esm.js +0 -45
  988. package/dist/chunks/dynamic-text-editor-GWbqgyUt.esm.js.map +0 -1
  989. package/dist/chunks/edit-section-modal-CeBTvtMV.esm.js +0 -80
  990. package/dist/chunks/edit-section-modal-CeBTvtMV.esm.js.map +0 -1
  991. package/dist/chunks/expandable-summary-wrapper-CT8lYwm1.js +0 -241
  992. package/dist/chunks/expandable-summary-wrapper-CT8lYwm1.js.map +0 -1
  993. package/dist/chunks/expandable-summary-wrapper-z6v-k0wd.esm.js +0 -242
  994. package/dist/chunks/expandable-summary-wrapper-z6v-k0wd.esm.js.map +0 -1
  995. package/dist/chunks/filter-CvPa_POj.esm.js +0 -410
  996. package/dist/chunks/filter-CvPa_POj.esm.js.map +0 -1
  997. package/dist/chunks/filter-ZNZbXdD7.js +0 -409
  998. package/dist/chunks/filter-ZNZbXdD7.js.map +0 -1
  999. package/dist/chunks/footer-BZJkANB2.esm.js +0 -64
  1000. package/dist/chunks/footer-BZJkANB2.esm.js.map +0 -1
  1001. package/dist/chunks/footer-DO0bhJxT.js +0 -63
  1002. package/dist/chunks/footer-DO0bhJxT.js.map +0 -1
  1003. package/dist/chunks/forgot-password-DR1x4IbJ.esm.js +0 -178
  1004. package/dist/chunks/forgot-password-DR1x4IbJ.esm.js.map +0 -1
  1005. package/dist/chunks/forgot-password-su6siPVc.js +0 -194
  1006. package/dist/chunks/forgot-password-su6siPVc.js.map +0 -1
  1007. package/dist/chunks/form-fields-BC-5qhhm.esm.js +0 -355
  1008. package/dist/chunks/form-fields-BC-5qhhm.esm.js.map +0 -1
  1009. package/dist/chunks/form-fields-czqYUNw3.js +0 -354
  1010. package/dist/chunks/form-fields-czqYUNw3.js.map +0 -1
  1011. package/dist/chunks/form-parser-DvI-a1ha.esm.js +0 -597
  1012. package/dist/chunks/form-parser-DvI-a1ha.esm.js.map +0 -1
  1013. package/dist/chunks/form-parser-DxuycTXi.js +0 -613
  1014. package/dist/chunks/form-parser-DxuycTXi.js.map +0 -1
  1015. package/dist/chunks/form-section-D8zpeEi0.esm.js +0 -576
  1016. package/dist/chunks/form-section-D8zpeEi0.esm.js.map +0 -1
  1017. package/dist/chunks/form-section-W3f6MVU5.js +0 -575
  1018. package/dist/chunks/form-section-W3f6MVU5.js.map +0 -1
  1019. package/dist/chunks/fullScreen-B-rNqQXY.esm.js +0 -19
  1020. package/dist/chunks/fullScreen-B-rNqQXY.esm.js.map +0 -1
  1021. package/dist/chunks/fullScreen-DOtkOiq5.js +0 -18
  1022. package/dist/chunks/fullScreen-DOtkOiq5.js.map +0 -1
  1023. package/dist/chunks/global-search-DJrjNJ7H.esm.js +0 -150
  1024. package/dist/chunks/global-search-DJrjNJ7H.esm.js.map +0 -1
  1025. package/dist/chunks/grid-view-DmRlpcuu.esm.js +0 -52
  1026. package/dist/chunks/grid-view-DmRlpcuu.esm.js.map +0 -1
  1027. package/dist/chunks/header-Be9klul2.js +0 -92
  1028. package/dist/chunks/header-Be9klul2.js.map +0 -1
  1029. package/dist/chunks/header-BgcU15Q9.esm.js +0 -93
  1030. package/dist/chunks/header-BgcU15Q9.esm.js.map +0 -1
  1031. package/dist/chunks/header-enhanced-BIYQ3ToY.esm.js +0 -403
  1032. package/dist/chunks/header-enhanced-BIYQ3ToY.esm.js.map +0 -1
  1033. package/dist/chunks/header-enhanced-_RVJbWQd.js +0 -402
  1034. package/dist/chunks/header-enhanced-_RVJbWQd.js.map +0 -1
  1035. package/dist/chunks/i18n-C_6nRHMf.esm.js +0 -46
  1036. package/dist/chunks/i18n-C_6nRHMf.esm.js.map +0 -1
  1037. package/dist/chunks/i18n-GoZr_KAX.js +0 -47
  1038. package/dist/chunks/i18n-GoZr_KAX.js.map +0 -1
  1039. package/dist/chunks/index-BmU7fNjb.esm.js +0 -2024
  1040. package/dist/chunks/index-BmU7fNjb.esm.js.map +0 -1
  1041. package/dist/chunks/inline-edit-fields-BeSPpSZT.js +0 -341
  1042. package/dist/chunks/inline-edit-fields-BeSPpSZT.js.map +0 -1
  1043. package/dist/chunks/inline-edit-fields-CfqP1mWE.esm.js +0 -325
  1044. package/dist/chunks/inline-edit-fields-CfqP1mWE.esm.js.map +0 -1
  1045. package/dist/chunks/inventory-reports-title-bar-CXYcllW7.esm.js +0 -733
  1046. package/dist/chunks/inventory-reports-title-bar-CXYcllW7.esm.js.map +0 -1
  1047. package/dist/chunks/inventory-reports-title-bar-D9Zv4QWt.js +0 -732
  1048. package/dist/chunks/inventory-reports-title-bar-D9Zv4QWt.js.map +0 -1
  1049. package/dist/chunks/item-response-details-B9amHUMJ.esm.js +0 -79
  1050. package/dist/chunks/item-response-details-B9amHUMJ.esm.js.map +0 -1
  1051. package/dist/chunks/item-response-details-Dw7UyWq9.js +0 -78
  1052. package/dist/chunks/item-response-details-Dw7UyWq9.js.map +0 -1
  1053. package/dist/chunks/journal-type-add-modal-CHBKAU5b.esm.js +0 -112
  1054. package/dist/chunks/journal-type-add-modal-CHBKAU5b.esm.js.map +0 -1
  1055. package/dist/chunks/journal-type-add-modal-q-GwGzzf.js +0 -128
  1056. package/dist/chunks/journal-type-add-modal-q-GwGzzf.js.map +0 -1
  1057. package/dist/chunks/language-switch-C4G0r5eu.esm.js +0 -111
  1058. package/dist/chunks/language-switch-C4G0r5eu.esm.js.map +0 -1
  1059. package/dist/chunks/language-switch-Cp1Nrrs4.js +0 -110
  1060. package/dist/chunks/language-switch-Cp1Nrrs4.js.map +0 -1
  1061. package/dist/chunks/languageContext-CwkQHvuG.esm.js +0 -224
  1062. package/dist/chunks/languageContext-CwkQHvuG.esm.js.map +0 -1
  1063. package/dist/chunks/languageContext-o3WqMVq_.js +0 -223
  1064. package/dist/chunks/languageContext-o3WqMVq_.js.map +0 -1
  1065. package/dist/chunks/listing-C9yO9SAd.js +0 -276
  1066. package/dist/chunks/listing-C9yO9SAd.js.map +0 -1
  1067. package/dist/chunks/listing-DIK1VmjA.esm.js +0 -277
  1068. package/dist/chunks/listing-DIK1VmjA.esm.js.map +0 -1
  1069. package/dist/chunks/location-select-BgtvHBw3.esm.js +0 -86
  1070. package/dist/chunks/location-select-BgtvHBw3.esm.js.map +0 -1
  1071. package/dist/chunks/location-select-CEBaNXeK.js +0 -85
  1072. package/dist/chunks/location-select-CEBaNXeK.js.map +0 -1
  1073. package/dist/chunks/material-editable-table-B13Kh-dv.esm.js +0 -1448
  1074. package/dist/chunks/material-editable-table-B13Kh-dv.esm.js.map +0 -1
  1075. package/dist/chunks/material-editable-table-CFYlu4SQ.js +0 -1464
  1076. package/dist/chunks/material-editable-table-CFYlu4SQ.js.map +0 -1
  1077. package/dist/chunks/module-reducer-BF5bPega.esm.js +0 -79
  1078. package/dist/chunks/module-reducer-BF5bPega.esm.js.map +0 -1
  1079. package/dist/chunks/notification-menu-exP13DDH.esm.js +0 -606
  1080. package/dist/chunks/notification-menu-exP13DDH.esm.js.map +0 -1
  1081. package/dist/chunks/page-action-BwYdhajb.esm.js +0 -325
  1082. package/dist/chunks/page-action-BwYdhajb.esm.js.map +0 -1
  1083. package/dist/chunks/page-action-D0cYsBbl.js +0 -324
  1084. package/dist/chunks/page-action-D0cYsBbl.js.map +0 -1
  1085. package/dist/chunks/page-context-Bq41DQcz.js +0 -388
  1086. package/dist/chunks/page-context-Bq41DQcz.js.map +0 -1
  1087. package/dist/chunks/page-context-DRRyOB69.esm.js +0 -389
  1088. package/dist/chunks/page-context-DRRyOB69.esm.js.map +0 -1
  1089. package/dist/chunks/page-navigator-D9xKfQ1_.js +0 -243
  1090. package/dist/chunks/page-navigator-D9xKfQ1_.js.map +0 -1
  1091. package/dist/chunks/page-navigator-i8qQR766.esm.js +0 -244
  1092. package/dist/chunks/page-navigator-i8qQR766.esm.js.map +0 -1
  1093. package/dist/chunks/page-view-D8VGZbHd.js +0 -323
  1094. package/dist/chunks/page-view-D8VGZbHd.js.map +0 -1
  1095. package/dist/chunks/page-view-DghcAtNn.esm.js +0 -324
  1096. package/dist/chunks/page-view-DghcAtNn.esm.js.map +0 -1
  1097. package/dist/chunks/pagination-BnH9day1.js +0 -135
  1098. package/dist/chunks/pagination-BnH9day1.js.map +0 -1
  1099. package/dist/chunks/pagination-DTtXsesx.esm.js +0 -136
  1100. package/dist/chunks/pagination-DTtXsesx.esm.js.map +0 -1
  1101. package/dist/chunks/phone-Dy--Zv0Z.esm.js +0 -59
  1102. package/dist/chunks/phone-Dy--Zv0Z.esm.js.map +0 -1
  1103. package/dist/chunks/phone-gdY6annL.js +0 -58
  1104. package/dist/chunks/phone-gdY6annL.js.map +0 -1
  1105. package/dist/chunks/phone-input-CeSnil37.js +0 -254
  1106. package/dist/chunks/phone-input-CeSnil37.js.map +0 -1
  1107. package/dist/chunks/phone-input-XRLBCFtF.esm.js +0 -255
  1108. package/dist/chunks/phone-input-XRLBCFtF.esm.js.map +0 -1
  1109. package/dist/chunks/privateRoute-B5FS0k3Y.js +0 -12
  1110. package/dist/chunks/privateRoute-B5FS0k3Y.js.map +0 -1
  1111. package/dist/chunks/privateRoute-Bu4cOvLU.esm.js +0 -13
  1112. package/dist/chunks/privateRoute-Bu4cOvLU.esm.js.map +0 -1
  1113. package/dist/chunks/quick-approval-modal-g87dyO8k.esm.js +0 -256
  1114. package/dist/chunks/quick-approval-modal-g87dyO8k.esm.js.map +0 -1
  1115. package/dist/chunks/reducer-BEB6cGK7.esm.js +0 -33
  1116. package/dist/chunks/reducer-BEB6cGK7.esm.js.map +0 -1
  1117. package/dist/chunks/reducer-BjtGMJms.esm.js +0 -43
  1118. package/dist/chunks/reducer-BjtGMJms.esm.js.map +0 -1
  1119. package/dist/chunks/reducer-Bz_r_05x.esm.js +0 -56
  1120. package/dist/chunks/reducer-Bz_r_05x.esm.js.map +0 -1
  1121. package/dist/chunks/reducer-DkhymUSb.esm.js +0 -50
  1122. package/dist/chunks/reducer-DkhymUSb.esm.js.map +0 -1
  1123. package/dist/chunks/reducer-cUAFzhbU.esm.js +0 -149
  1124. package/dist/chunks/reducer-cUAFzhbU.esm.js.map +0 -1
  1125. package/dist/chunks/remove-action-B4vV6QLb.esm.js +0 -21
  1126. package/dist/chunks/remove-action-B4vV6QLb.esm.js.map +0 -1
  1127. package/dist/chunks/remove-action-BcjT4Ovp.js +0 -20
  1128. package/dist/chunks/remove-action-BcjT4Ovp.js.map +0 -1
  1129. package/dist/chunks/report-buttons-Bgo3X6NV.js +0 -59
  1130. package/dist/chunks/report-buttons-Bgo3X6NV.js.map +0 -1
  1131. package/dist/chunks/report-buttons-BwiGvh_a.esm.js +0 -60
  1132. package/dist/chunks/report-buttons-BwiGvh_a.esm.js.map +0 -1
  1133. package/dist/chunks/report-buttons-CROwSFWV.js +0 -45
  1134. package/dist/chunks/report-buttons-CROwSFWV.js.map +0 -1
  1135. package/dist/chunks/report-buttons-DZmTnUaC.esm.js +0 -46
  1136. package/dist/chunks/report-buttons-DZmTnUaC.esm.js.map +0 -1
  1137. package/dist/chunks/reportFilter-CsFmE0Vh.esm.js +0 -395
  1138. package/dist/chunks/reportFilter-CsFmE0Vh.esm.js.map +0 -1
  1139. package/dist/chunks/reportFilter-DHTGX5Di.js +0 -394
  1140. package/dist/chunks/reportFilter-DHTGX5Di.js.map +0 -1
  1141. package/dist/chunks/reports-title-bar-DCrnhE1i.js +0 -946
  1142. package/dist/chunks/reports-title-bar-DCrnhE1i.js.map +0 -1
  1143. package/dist/chunks/reports-title-bar-_177KGhZ.esm.js +0 -947
  1144. package/dist/chunks/reports-title-bar-_177KGhZ.esm.js.map +0 -1
  1145. package/dist/chunks/reset-password-B3RgeMda.esm.js +0 -33
  1146. package/dist/chunks/reset-password-B3RgeMda.esm.js.map +0 -1
  1147. package/dist/chunks/reset-password-BF38k5jv.js +0 -32
  1148. package/dist/chunks/reset-password-BF38k5jv.js.map +0 -1
  1149. package/dist/chunks/reset-password-modal-BTbJT7Eu.js +0 -160
  1150. package/dist/chunks/reset-password-modal-BTbJT7Eu.js.map +0 -1
  1151. package/dist/chunks/reset-password-modal-C7x7cxqZ.esm.js +0 -144
  1152. package/dist/chunks/reset-password-modal-C7x7cxqZ.esm.js.map +0 -1
  1153. package/dist/chunks/routes-BkIdmebk.esm.js +0 -36
  1154. package/dist/chunks/routes-BkIdmebk.esm.js.map +0 -1
  1155. package/dist/chunks/routes-DZwVNuAM.js +0 -35
  1156. package/dist/chunks/routes-DZwVNuAM.js.map +0 -1
  1157. package/dist/chunks/schedule-report-QmPH1Wjc.esm.js +0 -236
  1158. package/dist/chunks/schedule-report-QmPH1Wjc.esm.js.map +0 -1
  1159. package/dist/chunks/schedule-report-modal-2548Cnw1.esm.js +0 -288
  1160. package/dist/chunks/schedule-report-modal-2548Cnw1.esm.js.map +0 -1
  1161. package/dist/chunks/schedule-report-modal-x928D6nA.js +0 -287
  1162. package/dist/chunks/schedule-report-modal-x928D6nA.js.map +0 -1
  1163. package/dist/chunks/schedule-report-rQYnxps-.js +0 -235
  1164. package/dist/chunks/schedule-report-rQYnxps-.js.map +0 -1
  1165. package/dist/chunks/searchable-select-C4NlAvAY.js +0 -5412
  1166. package/dist/chunks/searchable-select-C4NlAvAY.js.map +0 -1
  1167. package/dist/chunks/searchable-select-CndbCRaF.esm.js +0 -5396
  1168. package/dist/chunks/searchable-select-CndbCRaF.esm.js.map +0 -1
  1169. package/dist/chunks/share-modal-CSpRfSmH.js +0 -217
  1170. package/dist/chunks/share-modal-CSpRfSmH.js.map +0 -1
  1171. package/dist/chunks/share-modal-D9Oowg3p.esm.js +0 -218
  1172. package/dist/chunks/share-modal-D9Oowg3p.esm.js.map +0 -1
  1173. package/dist/chunks/share-modal-enhanced-BeQwZmEu.js +0 -269
  1174. package/dist/chunks/share-modal-enhanced-BeQwZmEu.js.map +0 -1
  1175. package/dist/chunks/share-modal-enhanced-jVP0v7It.esm.js +0 -270
  1176. package/dist/chunks/share-modal-enhanced-jVP0v7It.esm.js.map +0 -1
  1177. package/dist/chunks/sidebar-D0hF4H3m.js +0 -878
  1178. package/dist/chunks/sidebar-D0hF4H3m.js.map +0 -1
  1179. package/dist/chunks/sidebar-DvML8Jbp.esm.js +0 -879
  1180. package/dist/chunks/sidebar-DvML8Jbp.esm.js.map +0 -1
  1181. package/dist/chunks/sidebarScreen-C0G0gM42.esm.js +0 -202
  1182. package/dist/chunks/sidebarScreen-C0G0gM42.esm.js.map +0 -1
  1183. package/dist/chunks/sidebarScreen-CkwJ1ue3.js +0 -201
  1184. package/dist/chunks/sidebarScreen-CkwJ1ue3.js.map +0 -1
  1185. package/dist/chunks/store-Dmz-DgYy.esm.js +0 -100
  1186. package/dist/chunks/store-Dmz-DgYy.esm.js.map +0 -1
  1187. package/dist/chunks/table-B_s-mIXn.esm.js +0 -185
  1188. package/dist/chunks/table-B_s-mIXn.esm.js.map +0 -1
  1189. package/dist/chunks/table-C5u4p3T_.js +0 -184
  1190. package/dist/chunks/table-C5u4p3T_.js.map +0 -1
  1191. package/dist/chunks/table-form-CufpQulG.esm.js +0 -1537
  1192. package/dist/chunks/table-form-CufpQulG.esm.js.map +0 -1
  1193. package/dist/chunks/template-editor-router-D7bqb67d.esm.js +0 -9
  1194. package/dist/chunks/template-editor-router-D7bqb67d.esm.js.map +0 -1
  1195. package/dist/chunks/template-editor-router-DRN5gx5w.js +0 -8
  1196. package/dist/chunks/template-editor-router-DRN5gx5w.js.map +0 -1
  1197. package/dist/chunks/template-modal-Ca8NM9xP.esm.js +0 -769
  1198. package/dist/chunks/template-modal-Ca8NM9xP.esm.js.map +0 -1
  1199. package/dist/chunks/template-modal-ScshCqGl.js +0 -768
  1200. package/dist/chunks/template-modal-ScshCqGl.js.map +0 -1
  1201. package/dist/chunks/template-name-modal-BbeUUs8-.esm.js +0 -101
  1202. package/dist/chunks/template-name-modal-BbeUUs8-.esm.js.map +0 -1
  1203. package/dist/chunks/templates-CPW4Brw5.js +0 -272
  1204. package/dist/chunks/templates-CPW4Brw5.js.map +0 -1
  1205. package/dist/chunks/templates-CZA7B97W.esm.js +0 -273
  1206. package/dist/chunks/templates-CZA7B97W.esm.js.map +0 -1
  1207. package/dist/chunks/text-measurement-B1c79w3_.esm.js +0 -252
  1208. package/dist/chunks/text-measurement-B1c79w3_.esm.js.map +0 -1
  1209. package/dist/chunks/three-dot-icon-BFKqMnLf.js +0 -40
  1210. package/dist/chunks/three-dot-icon-BFKqMnLf.js.map +0 -1
  1211. package/dist/chunks/three-dot-icon-Dq1ptGgl.esm.js +0 -41
  1212. package/dist/chunks/three-dot-icon-Dq1ptGgl.esm.js.map +0 -1
  1213. package/dist/chunks/toggle-button-CVeo1waU.js +0 -54
  1214. package/dist/chunks/toggle-button-CVeo1waU.js.map +0 -1
  1215. package/dist/chunks/toggle-button-itOKhrc0.esm.js +0 -55
  1216. package/dist/chunks/toggle-button-itOKhrc0.esm.js.map +0 -1
  1217. package/dist/chunks/toggle-switch-BM70h5jL.js +0 -80
  1218. package/dist/chunks/toggle-switch-BM70h5jL.js.map +0 -1
  1219. package/dist/chunks/toggle-switch-Be_pTc_l.esm.js +0 -81
  1220. package/dist/chunks/toggle-switch-Be_pTc_l.esm.js.map +0 -1
  1221. package/dist/chunks/translations-BBP_sDHA.esm.js +0 -128
  1222. package/dist/chunks/translations-BBP_sDHA.esm.js.map +0 -1
  1223. package/dist/chunks/translations-DJj06YLO.js +0 -127
  1224. package/dist/chunks/translations-DJj06YLO.js.map +0 -1
  1225. package/dist/chunks/uom-field-wrapper-DmFBym9X.js +0 -79
  1226. package/dist/chunks/uom-field-wrapper-DmFBym9X.js.map +0 -1
  1227. package/dist/chunks/uom-field-wrapper-QeMbOh1z.esm.js +0 -80
  1228. package/dist/chunks/uom-field-wrapper-QeMbOh1z.esm.js.map +0 -1
  1229. package/dist/chunks/upload-excel-FvuJguoD.esm.js +0 -361
  1230. package/dist/chunks/upload-excel-FvuJguoD.esm.js.map +0 -1
  1231. package/dist/chunks/use-pages-BjXaTIsn.esm.js +0 -30
  1232. package/dist/chunks/use-pages-BjXaTIsn.esm.js.map +0 -1
  1233. package/dist/chunks/use-pages-CfOuWUhZ.js +0 -29
  1234. package/dist/chunks/use-pages-CfOuWUhZ.js.map +0 -1
  1235. package/dist/chunks/use-translations-C6akE0rW.js +0 -68
  1236. package/dist/chunks/use-translations-C6akE0rW.js.map +0 -1
  1237. package/dist/chunks/use-translations-PaBQxwx7.esm.js +0 -69
  1238. package/dist/chunks/use-translations-PaBQxwx7.esm.js.map +0 -1
  1239. package/dist/chunks/useAccountSetting-D58MKAOM.esm.js +0 -174
  1240. package/dist/chunks/useAccountSetting-D58MKAOM.esm.js.map +0 -1
  1241. package/dist/chunks/useCheckSkuAndName-D5VNk0T7.esm.js +0 -50
  1242. package/dist/chunks/useCheckSkuAndName-D5VNk0T7.esm.js.map +0 -1
  1243. package/dist/chunks/useCompanyCountryCode-BFOhrIEg.esm.js +0 -36
  1244. package/dist/chunks/useCompanyCountryCode-BFOhrIEg.esm.js.map +0 -1
  1245. package/dist/chunks/useCompanyCountryCode-NA-dpRoG.js +0 -35
  1246. package/dist/chunks/useCompanyCountryCode-NA-dpRoG.js.map +0 -1
  1247. package/dist/chunks/useDataFetcher-CwfzNyTb.js +0 -79
  1248. package/dist/chunks/useDataFetcher-CwfzNyTb.js.map +0 -1
  1249. package/dist/chunks/useDataFetcher-DrtqG3CG.esm.js +0 -80
  1250. package/dist/chunks/useDataFetcher-DrtqG3CG.esm.js.map +0 -1
  1251. package/dist/chunks/useLangauge-3NKJDL3U.esm.js +0 -49
  1252. package/dist/chunks/useLangauge-3NKJDL3U.esm.js.map +0 -1
  1253. package/dist/chunks/useLangauge-B7MUoWt1.js +0 -48
  1254. package/dist/chunks/useLangauge-B7MUoWt1.js.map +0 -1
  1255. package/dist/chunks/useReduxIntegration-BlZTSHKV.esm.js +0 -39
  1256. package/dist/chunks/useReduxIntegration-BlZTSHKV.esm.js.map +0 -1
  1257. package/dist/chunks/useReduxIntegration-Dv1kXNL3.js +0 -38
  1258. package/dist/chunks/useReduxIntegration-Dv1kXNL3.js.map +0 -1
  1259. package/dist/chunks/useSetDefaultConfig-DXu44f_j.js +0 -100
  1260. package/dist/chunks/useSetDefaultConfig-DXu44f_j.js.map +0 -1
  1261. package/dist/chunks/useSetDefaultConfig-DhCePm1v.esm.js +0 -101
  1262. package/dist/chunks/useSetDefaultConfig-DhCePm1v.esm.js.map +0 -1
  1263. package/dist/chunks/useUniquenessCheck-CEITes-f.esm.js +0 -39
  1264. package/dist/chunks/useUniquenessCheck-CEITes-f.esm.js.map +0 -1
  1265. package/dist/chunks/user-menu-CFjgWPOM.js +0 -104
  1266. package/dist/chunks/user-menu-CFjgWPOM.js.map +0 -1
  1267. package/dist/chunks/user-menu-DwQk2A7L.esm.js +0 -105
  1268. package/dist/chunks/user-menu-DwQk2A7L.esm.js.map +0 -1
  1269. package/dist/chunks/value-editor-C-5t5OUu.js +0 -136
  1270. package/dist/chunks/value-editor-C-5t5OUu.js.map +0 -1
  1271. package/dist/chunks/value-editor-CTm7pEMf.esm.js +0 -137
  1272. package/dist/chunks/value-editor-CTm7pEMf.esm.js.map +0 -1
@@ -0,0 +1,1831 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import React__default, { useState, useRef, useCallback, useEffect, useMemo } from "react";
3
+ import { marked } from "marked";
4
+ import { u as useAuth } from "./AuthContext-DofdH_qH.esm.js";
5
+ import { getApiConfigSafe } from "../utils/api-config/index.esm.js";
6
+ import { ab as getToken, V as getDefaultUserData, aI as getV1DepartmentsId } from "./api-BbjtLtS_.esm.js";
7
+ import "notistack";
8
+ import { aR as setAiFeatureBaseUrl, a$ as getV1CopilotQuestions, b0 as uploadDocument, b1 as getDocumentStatus, b2 as streamV1CopilotChat, b3 as uploadDocuments, b4 as startV1CopilotAgent, b5 as formAssistV1Copilot, b6 as resetV1CopilotSession, b7 as getV1ChartOfAccountId, b8 as getV1TaxCodeId, b9 as getV1InventoryItemsId, aw as getV1Uom, z as getV1PartiesId, ba as getV1PaymentTermsId, bb as getV1CurrencyId, bc as getV1WarehouseLocationId } from "./api-txaILyQB.esm.js";
9
+ import { k as getV1CompanyId, r as getV1LocationsStates } from "./index-DWPfPC9k.esm.js";
10
+ import { Add, OpenInFullRounded, Close, DeleteOutlineRounded, ArrowUpwardRounded, ImageRounded, ArticleRounded, DescriptionRounded, TableChartRounded, PictureAsPdfRounded, InsertDriveFileRounded, CloudUploadRounded, CheckCircleRounded, ErrorRounded, HourglassBottomRounded } from "@mui/icons-material";
11
+ import { B as Button } from "./button-BtdpXmjA.esm.js";
12
+ import { S as Save } from "./save-CgMN3zzT.esm.js";
13
+ const FORM_TYPE_LABELS = {
14
+ sales_invoice: "Sales Invoice",
15
+ purchase_invoice: "Purchase Invoice"
16
+ };
17
+ const ACCEPTED_FILE_EXTENSIONS = {
18
+ pdf: [".pdf"],
19
+ excel: [".xls", ".xlsx"],
20
+ doc: [".doc", ".docx"],
21
+ md: [".md"],
22
+ image: [".png", ".jpg", ".jpeg"]
23
+ };
24
+ const ACCEPT_ATTR = Object.values(ACCEPTED_FILE_EXTENSIONS).flat().join(",");
25
+ const getFileCategory = (filename) => {
26
+ const lower = filename.toLowerCase();
27
+ return Object.keys(ACCEPTED_FILE_EXTENSIONS).find(
28
+ (category) => ACCEPTED_FILE_EXTENSIONS[category].some((ext) => lower.endsWith(ext))
29
+ ) || null;
30
+ };
31
+ const getTime = () => (/* @__PURE__ */ new Date()).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
32
+ const getGreeting = () => {
33
+ const h = (/* @__PURE__ */ new Date()).getHours();
34
+ if (h < 12) return "Good morning";
35
+ if (h < 17) return "Good afternoon";
36
+ return "Good evening";
37
+ };
38
+ const IcWarning = ({ size = 14 }) => /* @__PURE__ */ jsxs(
39
+ "svg",
40
+ {
41
+ viewBox: "0 0 24 24",
42
+ stroke: "currentColor",
43
+ fill: "none",
44
+ strokeWidth: "2",
45
+ style: { width: size, height: size, flexShrink: 0 },
46
+ children: [
47
+ /* @__PURE__ */ jsx("path", { d: "M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z" }),
48
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
49
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
50
+ ]
51
+ }
52
+ );
53
+ const IcBox = ({ size = 14 }) => /* @__PURE__ */ jsxs(
54
+ "svg",
55
+ {
56
+ viewBox: "0 0 24 24",
57
+ stroke: "currentColor",
58
+ fill: "none",
59
+ strokeWidth: "2",
60
+ style: { width: size, height: size, flexShrink: 0 },
61
+ children: [
62
+ /* @__PURE__ */ jsx("path", { d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }),
63
+ /* @__PURE__ */ jsx("polyline", { points: "3.3 7 12 12 20.7 7" }),
64
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "22", x2: "12", y2: "12" })
65
+ ]
66
+ }
67
+ );
68
+ const IcCalendar = ({ size = 14 }) => /* @__PURE__ */ jsxs(
69
+ "svg",
70
+ {
71
+ viewBox: "0 0 24 24",
72
+ stroke: "currentColor",
73
+ fill: "none",
74
+ strokeWidth: "2",
75
+ style: { width: size, height: size, flexShrink: 0 },
76
+ children: [
77
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" }),
78
+ /* @__PURE__ */ jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
79
+ /* @__PURE__ */ jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
80
+ /* @__PURE__ */ jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
81
+ ]
82
+ }
83
+ );
84
+ const IcChevR = ({ size = 14 }) => /* @__PURE__ */ jsx(
85
+ "svg",
86
+ {
87
+ viewBox: "0 0 24 24",
88
+ stroke: "currentColor",
89
+ fill: "none",
90
+ strokeWidth: "2",
91
+ style: { width: size, height: size, flexShrink: 0 },
92
+ children: /* @__PURE__ */ jsx("polyline", { points: "9 6 15 12 9 18" })
93
+ }
94
+ );
95
+ const IcSearch = ({ size = 14 }) => /* @__PURE__ */ jsxs(
96
+ "svg",
97
+ {
98
+ viewBox: "0 0 24 24",
99
+ stroke: "currentColor",
100
+ fill: "none",
101
+ strokeWidth: "2",
102
+ style: { width: size, height: size, flexShrink: 0 },
103
+ children: [
104
+ /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
105
+ /* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
106
+ ]
107
+ }
108
+ );
109
+ const IcTarget = ({ size = 14 }) => /* @__PURE__ */ jsxs(
110
+ "svg",
111
+ {
112
+ viewBox: "0 0 24 24",
113
+ stroke: "currentColor",
114
+ fill: "none",
115
+ strokeWidth: "2",
116
+ style: { width: size, height: size, flexShrink: 0 },
117
+ children: [
118
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
119
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "5" }),
120
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
121
+ ]
122
+ }
123
+ );
124
+ const IcBolt = ({ size = 14 }) => /* @__PURE__ */ jsx(
125
+ "svg",
126
+ {
127
+ viewBox: "0 0 24 24",
128
+ fill: "currentColor",
129
+ stroke: "none",
130
+ style: { width: size, height: size, flexShrink: 0 },
131
+ children: /* @__PURE__ */ jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" })
132
+ }
133
+ );
134
+ const IcFlame = ({ size = 14 }) => /* @__PURE__ */ jsx(
135
+ "svg",
136
+ {
137
+ viewBox: "0 0 24 24",
138
+ stroke: "currentColor",
139
+ fill: "none",
140
+ strokeWidth: "1.8",
141
+ style: { width: size, height: size, flexShrink: 0 },
142
+ children: /* @__PURE__ */ jsx("path", { d: "M8.5 14.5A2.5 2.5 0 0 0 11 17c1.4 0 2-1 2-2 0-1-.6-2-2-2-1 0-1.5.5-1.5 1zM12 2c0 4-3 5-3 9a5 5 0 0 0 10 0c0-2-1-3-2-4 0-1 0-2-1-3-1.5-1.5-3-2-4-2z" })
143
+ }
144
+ );
145
+ const SparkMark = ({ size = 20 }) => /* @__PURE__ */ jsx(
146
+ "span",
147
+ {
148
+ className: "chatBot--spark-mark",
149
+ style: { width: size, height: size, borderRadius: Math.round(size * 0.3) },
150
+ children: /* @__PURE__ */ jsxs(
151
+ "svg",
152
+ {
153
+ viewBox: "0 0 24 24",
154
+ stroke: "currentColor",
155
+ fill: "none",
156
+ strokeWidth: "2",
157
+ style: { width: "58%", height: "58%" },
158
+ children: [
159
+ /* @__PURE__ */ jsx("path", { d: "M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z" }),
160
+ /* @__PURE__ */ jsx("path", { d: "M19 3l.6 1.8L21 5.4l-1.4.6L19 7.8l-.6-1.8L17 5.4l1.4-.6z" })
161
+ ]
162
+ }
163
+ )
164
+ }
165
+ );
166
+ const IcInvoice = ({ size = 14 }) => /* @__PURE__ */ jsxs(
167
+ "svg",
168
+ {
169
+ viewBox: "0 0 24 24",
170
+ stroke: "currentColor",
171
+ fill: "none",
172
+ strokeWidth: "2",
173
+ style: { width: size, height: size, flexShrink: 0 },
174
+ children: [
175
+ /* @__PURE__ */ jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
176
+ /* @__PURE__ */ jsx("polyline", { points: "14 2 14 8 20 8" }),
177
+ /* @__PURE__ */ jsx("line", { x1: "8", y1: "13", x2: "16", y2: "13" }),
178
+ /* @__PURE__ */ jsx("line", { x1: "8", y1: "17", x2: "14", y2: "17" })
179
+ ]
180
+ }
181
+ );
182
+ const SparkSvg = ({ size = 12 }) => /* @__PURE__ */ jsxs(
183
+ "svg",
184
+ {
185
+ viewBox: "0 0 24 24",
186
+ stroke: "currentColor",
187
+ fill: "none",
188
+ strokeWidth: "2",
189
+ style: { width: size, height: size, flexShrink: 0 },
190
+ children: [
191
+ /* @__PURE__ */ jsx("path", { d: "M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z" }),
192
+ /* @__PURE__ */ jsx("path", { d: "M19 3l.6 1.8L21 5.4l-1.4.6L19 7.8l-.6-1.8L17 5.4l1.4-.6z" })
193
+ ]
194
+ }
195
+ );
196
+ const SLASH_COMMANDS = [
197
+ {
198
+ id: "conversation",
199
+ label: "Conversation",
200
+ description: "Chat with the ERP AI assistant"
201
+ },
202
+ {
203
+ id: "agent",
204
+ label: "Agent",
205
+ description: "Let AI take actions in your ERP"
206
+ },
207
+ {
208
+ id: "doc_qa",
209
+ label: "Document",
210
+ description: "Upload a document and ask questions about it"
211
+ }
212
+ ];
213
+ const INSIGHTS = [
214
+ { icon: IcWarning, kind: "red", title: "Overdue invoices need attention", sub: "Review receivables aging for payment follow-up" },
215
+ { icon: IcBox, kind: "amber", title: "Items below reorder level detected", sub: "Check inventory before the next purchase order cycle" },
216
+ { icon: IcCalendar, kind: "blue", title: "Pending leave requests awaiting approval", sub: "Some requests are past the standard SLA" }
217
+ ];
218
+ const SUGGEST_TILES = [
219
+ { icon: IcSearch, kind: "", cat: "ASK", mode: "conversation", prompt: "List the 5 most recent purchase orders" },
220
+ { icon: IcSearch, kind: "", cat: "ASK", mode: "conversation", prompt: "Show me journal entries from last month" },
221
+ { icon: IcBolt, kind: "amber", cat: "AGENT", mode: "agent", formType: "sales_invoice", prompt: "Create a sales invoice" },
222
+ { icon: IcBolt, kind: "amber", cat: "AGENT", mode: "agent", formType: "purchase_invoice", prompt: "Create a purchase invoice" },
223
+ { icon: IcSearch, kind: "blue", cat: "DOC", mode: "doc_qa", prompt: "Upload a document to get started" },
224
+ { icon: IcTarget, kind: "blue", cat: "DOC", mode: "doc_qa", prompt: "Ask questions about any uploaded document" }
225
+ ];
226
+ const ChatBotHeader = ({ onClose, onNewChat }) => /* @__PURE__ */ jsxs(Fragment, { children: [
227
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--header", children: [
228
+ /* @__PURE__ */ jsx(SparkMark, { size: 34 }),
229
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--hd-info", children: [
230
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--hd-name", children: [
231
+ "NovaForce",
232
+ /* @__PURE__ */ jsx("span", { className: "chatBot--hd-beta", children: "Beta" })
233
+ ] }),
234
+ /* @__PURE__ */ jsx("div", { className: "chatBot--hd-sub", children: "AI-powered ERP assistant" })
235
+ ] }),
236
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--hd-actions", children: [
237
+ /* @__PURE__ */ jsx("button", { title: "New chat", onClick: onNewChat, children: /* @__PURE__ */ jsx(Add, { style: { fontSize: 18 } }) }),
238
+ /* @__PURE__ */ jsx("button", { title: "Expand", children: /* @__PURE__ */ jsx(OpenInFullRounded, { style: { fontSize: 16 } }) }),
239
+ /* @__PURE__ */ jsx("button", { title: "Close", onClick: onClose, children: /* @__PURE__ */ jsx(Close, { style: { fontSize: 18 } }) })
240
+ ] })
241
+ ] }),
242
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--ctx-bar", children: [
243
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--ctx-chip", children: [
244
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ctx-dot" }),
245
+ "ERP Data"
246
+ ] }),
247
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ctx-label", children: "All modules · Live data" })
248
+ ] })
249
+ ] });
250
+ const ChatBotWelcome = ({ firstName, onSuggestion, dynamicQuestions = [], mode }) => {
251
+ const greeting = getGreeting();
252
+ const dynamicTiles = dynamicQuestions.map((dq) => ({
253
+ icon: IcSearch,
254
+ kind: dq.kind || "blue",
255
+ cat: dq.cat,
256
+ mode: dq.mode,
257
+ formType: dq.formType,
258
+ prompt: dq.prompt
259
+ }));
260
+ const askTiles = dynamicQuestions.length > 0 ? dynamicTiles : SUGGEST_TILES.filter((t) => t.cat === "ASK");
261
+ const agentTiles = SUGGEST_TILES.filter((t) => t.cat === "AGENT");
262
+ const docTiles = SUGGEST_TILES.filter((t) => t.cat === "DOC");
263
+ const displayTiles = mode === "conversation" ? askTiles : mode === "agent" ? agentTiles : docTiles;
264
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--welcome", children: [
265
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--greeting", children: [
266
+ greeting,
267
+ firstName && /* @__PURE__ */ jsxs(Fragment, { children: [
268
+ ", ",
269
+ /* @__PURE__ */ jsx("span", { className: "chatBot--grad", children: firstName })
270
+ ] })
271
+ ] }),
272
+ /* @__PURE__ */ jsx("div", { className: "chatBot--greeting-sub", children: "NovaForce is watching your ERP data. Here's what stands out today." }),
273
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--section-lbl", children: [
274
+ /* @__PURE__ */ jsx("span", { children: "Try asking" }),
275
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ln" })
276
+ ] }),
277
+ /* @__PURE__ */ jsx("div", { className: "chatBot--suggest-grid", children: displayTiles.map((tile, i) => /* @__PURE__ */ jsxs(
278
+ "button",
279
+ {
280
+ className: "chatBot--suggest-tile",
281
+ onClick: () => onSuggestion(tile.prompt, tile.mode, tile.formType),
282
+ children: [
283
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--suggest-head", children: [
284
+ /* @__PURE__ */ jsx("span", { className: `chatBot--ic chatBot--ic--${tile.kind}`, children: /* @__PURE__ */ jsx(tile.icon, { size: 13 }) }),
285
+ /* @__PURE__ */ jsx("span", { className: "chatBot--suggest-cat", children: tile.cat })
286
+ ] }),
287
+ /* @__PURE__ */ jsx("div", { className: "chatBot--suggest-prompt", children: tile.prompt })
288
+ ]
289
+ },
290
+ i
291
+ )) })
292
+ ] });
293
+ };
294
+ const ChatBotMessages = ({ messages, isTyping, bodyRef, footer }) => /* @__PURE__ */ jsxs("div", { ref: bodyRef, className: "chatBot--body", children: [
295
+ messages.map((msg) => /* @__PURE__ */ jsxs("div", { className: `chatBot--msg-row chatBot--msg-row--${msg.role}`, children: [
296
+ msg.role === "user" && /* @__PURE__ */ jsx("div", { className: "chatBot--user-bubble", children: msg.text }),
297
+ msg.role === "ai" && /* @__PURE__ */ jsxs("div", { className: "chatBot--ai-msg", children: [
298
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--ai-sender", children: [
299
+ /* @__PURE__ */ jsx(SparkMark, { size: 22 }),
300
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ai-name", children: "NovaForce" }),
301
+ msg.time && /* @__PURE__ */ jsxs("span", { className: "chatBot--ai-time", children: [
302
+ "· ",
303
+ msg.time
304
+ ] })
305
+ ] }),
306
+ /* @__PURE__ */ jsx(
307
+ "div",
308
+ {
309
+ className: "chatBot--ai-text",
310
+ dangerouslySetInnerHTML: { __html: marked.parse(msg.text) }
311
+ }
312
+ )
313
+ ] })
314
+ ] }, msg.id)),
315
+ isTyping && /* @__PURE__ */ jsxs("div", { className: "chatBot--ai-msg", children: [
316
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--ai-sender", children: [
317
+ /* @__PURE__ */ jsx(SparkMark, { size: 22 }),
318
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ai-name", children: "NovaForce" })
319
+ ] }),
320
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--typing-dots", children: [
321
+ /* @__PURE__ */ jsx("span", {}),
322
+ /* @__PURE__ */ jsx("span", {}),
323
+ /* @__PURE__ */ jsx("span", {})
324
+ ] })
325
+ ] }),
326
+ footer
327
+ ] });
328
+ const FORM_TYPES = ["sales_invoice", "purchase_invoice"];
329
+ const ChatBotInput = ({
330
+ inputValue,
331
+ isTyping,
332
+ mode,
333
+ formType,
334
+ showSlashMenu,
335
+ filteredCommands,
336
+ slashIndex,
337
+ textareaRef,
338
+ onChange,
339
+ onKeyDown,
340
+ onSend,
341
+ onSlashHover,
342
+ onSlashSelect,
343
+ onModeChange,
344
+ onFormTypeChange,
345
+ activeDocument,
346
+ activeDocuments,
347
+ onDocDelete,
348
+ onDocUpload,
349
+ onMultiDocDelete
350
+ }) => {
351
+ const canSend = mode === "agent" ? formType !== null && !isTyping : mode === "doc_qa" ? activeDocuments && activeDocuments.length > 0 ? activeDocuments.every((d) => d.status === "ready") && !!inputValue.trim() && !isTyping : (activeDocument == null ? void 0 : activeDocument.status) === "ready" && !!inputValue.trim() && !isTyping : !!inputValue.trim() && !isTyping;
352
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--input-area", children: [
353
+ showSlashMenu && filteredCommands.length > 0 && /* @__PURE__ */ jsxs("div", { className: "chatBot--slash-menu", children: [
354
+ /* @__PURE__ */ jsx("div", { className: "chatBot--slash-menu-label", children: "Commands" }),
355
+ filteredCommands.map((cmd, idx) => /* @__PURE__ */ jsxs(
356
+ "button",
357
+ {
358
+ className: `chatBot--slash-item${idx === slashIndex ? " chatBot--slash-item--active" : ""}`,
359
+ onMouseEnter: () => onSlashHover(idx),
360
+ onClick: () => onSlashSelect(cmd.id),
361
+ children: [
362
+ /* @__PURE__ */ jsx(SparkMark, { size: 28 }),
363
+ /* @__PURE__ */ jsxs("div", { children: [
364
+ /* @__PURE__ */ jsx("div", { className: "chatBot--slash-item-label", children: cmd.label }),
365
+ /* @__PURE__ */ jsx("div", { className: "chatBot--slash-item-desc", children: cmd.description })
366
+ ] })
367
+ ]
368
+ },
369
+ cmd.id
370
+ ))
371
+ ] }),
372
+ mode === "agent" && /* @__PURE__ */ jsxs("div", { className: "chatBot--form-type-bar", children: [
373
+ /* @__PURE__ */ jsx("span", { className: "chatBot--form-type-label", children: "Form type" }),
374
+ /* @__PURE__ */ jsx("div", { className: "chatBot--form-type-options", children: FORM_TYPES.map((ft) => /* @__PURE__ */ jsx(
375
+ "button",
376
+ {
377
+ className: `chatBot--form-type-btn${formType === ft ? " chatBot--form-type-btn--active" : ""}`,
378
+ onClick: () => onFormTypeChange(ft),
379
+ children: FORM_TYPE_LABELS[ft]
380
+ },
381
+ ft
382
+ )) })
383
+ ] }),
384
+ mode === "doc_qa" && activeDocument && (!activeDocuments || activeDocuments.length === 0) && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-chip-bar", children: /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-chip", children: [
385
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-dot", style: {
386
+ background: activeDocument.status === "ready" ? "#2EB273" : activeDocument.status === "failed" ? "#C62828" : "#2EB273"
387
+ } }),
388
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-name", children: activeDocument.filename }),
389
+ activeDocument.status === "ready" && /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-badge", children: "Ready" })
390
+ ] }) }),
391
+ mode === "doc_qa" && activeDocuments && activeDocuments.length > 0 && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-chip-bar", children: activeDocuments.map((doc) => /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-chip", children: [
392
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-dot", style: {
393
+ background: doc.status === "ready" ? "#2EB273" : doc.status === "failed" ? "#C62828" : "#2EB273"
394
+ } }),
395
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-name", title: doc.filename, children: doc.filename }),
396
+ doc.status === "ready" && /* @__PURE__ */ jsx("span", { className: "chatBot--doc-chip-badge", children: "Ready" }),
397
+ /* @__PURE__ */ jsx("button", { className: "chatBot--doc-chip-action chatBot--doc-chip-action--danger", onClick: () => onMultiDocDelete == null ? void 0 : onMultiDocDelete(doc.doc_id), title: "Remove document", children: /* @__PURE__ */ jsx(DeleteOutlineRounded, { sx: { fontSize: 15 } }) })
398
+ ] }, doc.doc_id)) }),
399
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--input-wrap", children: [
400
+ /* @__PURE__ */ jsx(
401
+ "textarea",
402
+ {
403
+ ref: textareaRef,
404
+ className: "chatBot--textarea",
405
+ rows: 2,
406
+ placeholder: mode === "doc_qa" ? activeDocuments && activeDocuments.length > 0 ? activeDocuments.every((d) => d.status === "ready") ? "Ask a question about the document(s)…" : "Documents are processing…" : (activeDocument == null ? void 0 : activeDocument.status) === "ready" ? "Ask a question about this document…" : activeDocument ? "Document is still processing…" : "Upload PDF(s) above, then ask questions…" : mode === "agent" ? "Add any context for the agent…" : "Ask anything, or describe an action…",
407
+ value: inputValue,
408
+ onChange,
409
+ onKeyDown,
410
+ disabled: isTyping || mode === "doc_qa" && !!activeDocument && activeDocument.status !== "ready" || mode === "doc_qa" && !!activeDocuments && activeDocuments.length > 0 && activeDocuments.some((d) => d.status !== "ready")
411
+ }
412
+ ),
413
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--ctrls", children: [
414
+ /* @__PURE__ */ jsx("div", { className: "chatBot--mode-tabs", children: SLASH_COMMANDS.map((cmd) => /* @__PURE__ */ jsxs(
415
+ "button",
416
+ {
417
+ className: `chatBot--mode-tab${mode === cmd.id ? " chatBot--mode-tab--active" : ""}`,
418
+ onClick: () => onModeChange(cmd.id),
419
+ title: cmd.description,
420
+ children: [
421
+ mode === cmd.id && /* @__PURE__ */ jsx(SparkSvg, { size: 11 }),
422
+ cmd.label
423
+ ]
424
+ },
425
+ cmd.id
426
+ )) }),
427
+ /* @__PURE__ */ jsx("span", { className: "chatBot--ctrls-grow" }),
428
+ /* @__PURE__ */ jsx(
429
+ "button",
430
+ {
431
+ className: `chatBot--send-btn${canSend ? " active" : ""}`,
432
+ onClick: onSend,
433
+ disabled: !canSend,
434
+ title: "Send",
435
+ children: /* @__PURE__ */ jsx(ArrowUpwardRounded, { style: { fontSize: 15 } })
436
+ }
437
+ )
438
+ ] })
439
+ ] }),
440
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--hints", children: [
441
+ /* @__PURE__ */ jsxs("span", { children: [
442
+ /* @__PURE__ */ jsx("kbd", { children: "↵" }),
443
+ " send · ",
444
+ /* @__PURE__ */ jsx("kbd", { children: "⇧" }),
445
+ /* @__PURE__ */ jsx("kbd", { children: "↵" }),
446
+ " new line · ",
447
+ /* @__PURE__ */ jsx("kbd", { children: "/" }),
448
+ " commands"
449
+ ] }),
450
+ /* @__PURE__ */ jsx("span", { className: "chatBot--hints-right", children: mode === "doc_qa" ? "Document Q&A mode" : "Replies use ERP data only" })
451
+ ] })
452
+ ] });
453
+ };
454
+ const ChatBotLauncher = ({ onOpen }) => /* @__PURE__ */ jsxs("button", { className: "chatBot--launcher", onClick: onOpen, children: [
455
+ /* @__PURE__ */ jsx("span", { className: "chatBot--launcher-icon", children: /* @__PURE__ */ jsxs(
456
+ "svg",
457
+ {
458
+ viewBox: "0 0 24 24",
459
+ stroke: "currentColor",
460
+ fill: "none",
461
+ strokeWidth: "2",
462
+ style: { width: 22, height: 22, flexShrink: 0 },
463
+ children: [
464
+ /* @__PURE__ */ jsx("path", { d: "M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z" }),
465
+ /* @__PURE__ */ jsx("path", { d: "M19 3l.6 1.8L21 5.4l-1.4.6L19 7.8l-.6-1.8L17 5.4l1.4-.6z" })
466
+ ]
467
+ }
468
+ ) }),
469
+ /* @__PURE__ */ jsx("span", { className: "chatBot--launcher-label", children: "Ask NovaForce" })
470
+ ] });
471
+ const ItemEntryTable = ({ fieldUpdates, resolvedLabels }) => {
472
+ const prefix = fieldUpdates["sales_item_entries.items.name"] ? "sales_item_entries" : fieldUpdates["purchase_item_entries.items.name"] ? "purchase_item_entries" : null;
473
+ if (!prefix) return null;
474
+ const names = fieldUpdates[`${prefix}.items.name`];
475
+ const quantities = fieldUpdates[`${prefix}.quantity`];
476
+ const rates = fieldUpdates[`${prefix}.rate`];
477
+ const discountAmounts = fieldUpdates[`${prefix}.discount_amount`];
478
+ const taxAmounts = fieldUpdates[`${prefix}.tax_amount`];
479
+ const totalAmounts = fieldUpdates[`${prefix}.total_amount`];
480
+ if (!Array.isArray(names) || names.length === 0) return null;
481
+ const rows = names.map((_, i) => {
482
+ const itemId = names[i];
483
+ const qty = parseFloat(quantities == null ? void 0 : quantities[i]) || 0;
484
+ const rate = parseFloat(rates == null ? void 0 : rates[i]) || 0;
485
+ const gross = qty * rate;
486
+ const discount = parseFloat(discountAmounts == null ? void 0 : discountAmounts[i]) || 0;
487
+ const tax = parseFloat(taxAmounts == null ? void 0 : taxAmounts[i]) || 0;
488
+ const total = parseFloat(totalAmounts == null ? void 0 : totalAmounts[i]) || 0;
489
+ const resolvedKey = `${prefix}.items.name:${itemId}`;
490
+ const itemName = resolvedLabels[resolvedKey] || `Item #${itemId}`;
491
+ return { itemName, qty, rate, gross, discount, tax, total };
492
+ });
493
+ const subtotal = rows.reduce((sum, r) => sum + r.gross, 0);
494
+ const totalDiscount = rows.reduce((sum, r) => sum + r.discount, 0);
495
+ rows.reduce((sum, r) => sum + r.tax, 0);
496
+ const totalDue = rows.reduce((sum, r) => sum + r.total, 0);
497
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
498
+ /* @__PURE__ */ jsx("div", { style: { overflowX: "auto" }, children: /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-li", style: { gridTemplateColumns: "1fr repeat(6, 85px)" }, children: [
499
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h", children: "Item" }),
500
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Qty" }),
501
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Rate" }),
502
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Gross" }),
503
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Discount" }),
504
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Tax" }),
505
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Total" }),
506
+ rows.map((r, i) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
507
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c", children: r.itemName }),
508
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.qty }),
509
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.rate.toFixed(2) }),
510
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.gross.toFixed(2) }),
511
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.discount.toFixed(2) }),
512
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.tax.toFixed(2) }),
513
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.total.toFixed(2) })
514
+ ] }, i))
515
+ ] }) }),
516
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot", children: [
517
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
518
+ /* @__PURE__ */ jsx("span", { children: "Subtotal" }),
519
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: subtotal.toFixed(2) })
520
+ ] }),
521
+ totalDiscount > 0 && /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
522
+ /* @__PURE__ */ jsx("span", { children: "Discount" }),
523
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--preview-tot-row-val", children: [
524
+ "-",
525
+ totalDiscount.toFixed(2)
526
+ ] })
527
+ ] }),
528
+ rows.filter((r) => r.tax).map((r, i) => /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
529
+ /* @__PURE__ */ jsx("span", { children: "Tax" }),
530
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: r.tax.toFixed(2) })
531
+ ] }, i)),
532
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row total", children: [
533
+ /* @__PURE__ */ jsx("span", { children: "Total due (items)" }),
534
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: totalDue.toFixed(2) })
535
+ ] })
536
+ ] })
537
+ ] });
538
+ };
539
+ const ExpenseEntryTable = ({ fieldUpdates, resolvedLabels }) => {
540
+ const accountIds = fieldUpdates["purchase_expense_entries.accounts.account_name"];
541
+ const rates = fieldUpdates["purchase_expense_entries.rate"];
542
+ const discountAmounts = fieldUpdates["purchase_expense_entries.discount_amount"];
543
+ const taxAmounts = fieldUpdates["purchase_expense_entries.tax_amount"];
544
+ const totalAmounts = fieldUpdates["purchase_expense_entries.total_amount"];
545
+ if (!Array.isArray(accountIds) || accountIds.length === 0) return null;
546
+ const rows = accountIds.map((_, i) => {
547
+ const accountId = accountIds[i];
548
+ const rate = parseFloat(rates == null ? void 0 : rates[i]) || 0;
549
+ const gross = rate;
550
+ const discount = parseFloat(discountAmounts == null ? void 0 : discountAmounts[i]) || 0;
551
+ const tax = parseFloat(taxAmounts == null ? void 0 : taxAmounts[i]) || 0;
552
+ const total = parseFloat(totalAmounts == null ? void 0 : totalAmounts[i]) || 0;
553
+ const resolvedKey = `purchase_expense_entries.accounts.account_name:${accountId}`;
554
+ const accountName = resolvedLabels[resolvedKey] || `Account #${accountId}`;
555
+ return { accountName, rate, gross, discount, tax, total };
556
+ });
557
+ const subtotal = rows.reduce((sum, r) => sum + r.gross, 0);
558
+ const totalDiscount = rows.reduce((sum, r) => sum + r.discount, 0);
559
+ const totalTax = rows.reduce((sum, r) => sum + r.tax, 0);
560
+ const totalDue = rows.reduce((sum, r) => sum + r.total, 0);
561
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
562
+ /* @__PURE__ */ jsx("div", { style: { overflowX: "auto" }, children: /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-li", style: { gridTemplateColumns: "1fr repeat(5, 85px)" }, children: [
563
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h", children: "Account" }),
564
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Rate" }),
565
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Gross" }),
566
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Discount" }),
567
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Tax" }),
568
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-h right", children: "Total" }),
569
+ rows.map((r, i) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
570
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c", children: r.accountName }),
571
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.rate.toFixed(2) }),
572
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.gross.toFixed(2) }),
573
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.discount.toFixed(2) }),
574
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.tax.toFixed(2) }),
575
+ /* @__PURE__ */ jsx("div", { className: "chatBot--preview-li-c right", children: r.total.toFixed(2) })
576
+ ] }, i))
577
+ ] }) }),
578
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot", children: [
579
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
580
+ /* @__PURE__ */ jsx("span", { children: "Subtotal" }),
581
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: subtotal.toFixed(2) })
582
+ ] }),
583
+ totalDiscount > 0 && /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
584
+ /* @__PURE__ */ jsx("span", { children: "Discount" }),
585
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--preview-tot-row-val", children: [
586
+ "-",
587
+ totalDiscount.toFixed(2)
588
+ ] })
589
+ ] }),
590
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row", children: [
591
+ /* @__PURE__ */ jsx("span", { children: "Total Tax" }),
592
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: totalTax.toFixed(2) })
593
+ ] }),
594
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row total", children: [
595
+ /* @__PURE__ */ jsx("span", { children: "Total due (expenses)" }),
596
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: totalDue.toFixed(2) })
597
+ ] })
598
+ ] })
599
+ ] });
600
+ };
601
+ const sumField = (updates, key) => (updates[key] || []).reduce((s, v) => s + (parseFloat(v) || 0), 0);
602
+ const FIELD_LABELS = {
603
+ customer_id: "Customer",
604
+ vendor_id: "Vendor",
605
+ date: "Date",
606
+ bill_date: "Bill Date",
607
+ invoice_date: "Invoice Date",
608
+ due_date: "Due Date",
609
+ posting_time: "Posting Time",
610
+ payment_term_id: "Payment Term",
611
+ company_id: "Company",
612
+ exchange_rate: "Exchange Rate",
613
+ account_payable_id: "Account Payable",
614
+ account_receivable_id: "Account Receivable",
615
+ currency_id: "Currency",
616
+ supplier_currency_id: "Supplier Currency",
617
+ supplier_invoice_number: "Supplier Invoice #",
618
+ supplier_invoice_date: "Supplier Invoice Date",
619
+ transaction_type: "Transaction Type",
620
+ narration: "Narration",
621
+ department: "Department",
622
+ department_id: "Department",
623
+ location: "Location",
624
+ incoterm_id: "Incoterm",
625
+ region_id: "Region",
626
+ series_number: "Series Number",
627
+ attachment_url: "Attachment",
628
+ additional_discount_on: "Discount On",
629
+ additional_discount_percentage: "Discount Percentage",
630
+ additional_discount_amount: "Discount Amount",
631
+ round_off: "Round Off",
632
+ round_off_option: "Round Off Option",
633
+ is_cash: "Cash Transaction",
634
+ discount_amount: "Discount Amount",
635
+ total_invoice_amount: "Total Amount",
636
+ supplier_address: "Supplier Address",
637
+ contact_person: "Contact Person",
638
+ shipping_address: "Shipping Address",
639
+ billing_address: "Billing Address",
640
+ place_of_supply: "Place of Supply"
641
+ };
642
+ const InvoicePreview = ({ fieldUpdates, resolvedLabels, onSave, onSubmit, onDiscard }) => {
643
+ const itemTotalKey = fieldUpdates["purchase_item_entries.total_amount"] ? "purchase_item_entries.total_amount" : fieldUpdates["sales_item_entries.total_amount"] ? "sales_item_entries.total_amount" : null;
644
+ const itemTotal = itemTotalKey ? sumField(fieldUpdates, itemTotalKey) : 0;
645
+ const expenseTotal = sumField(fieldUpdates, "purchase_expense_entries.total_amount");
646
+ const grandTotal = itemTotal + expenseTotal;
647
+ const displayKey = (key) => {
648
+ const shortKey = key.startsWith("invoice_addresses.") ? key.slice("invoice_addresses.".length) : key;
649
+ return FIELD_LABELS[shortKey] || FIELD_LABELS[key] || key;
650
+ };
651
+ const entries = Object.entries(fieldUpdates).filter(([key]) => {
652
+ if (key.startsWith("sales_item_entries.") || key.startsWith("purchase_item_entries.") || key.startsWith("purchase_expense_entries.")) return false;
653
+ return true;
654
+ });
655
+ if (Object.keys(fieldUpdates).length === 0) return null;
656
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-card", children: [
657
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-head", children: [
658
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-head-ic", children: /* @__PURE__ */ jsx(IcInvoice, { size: 14 }) }),
659
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-head-ttl", children: [
660
+ "Draft Invoice",
661
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--preview-head-sub", children: [
662
+ "AI-prepared · ",
663
+ entries.length,
664
+ " fields locked"
665
+ ] })
666
+ ] }),
667
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-badge", children: "DRAFT" })
668
+ ] }),
669
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-body", children: [
670
+ entries.map(([key, value]) => /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-row", children: [
671
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-row-key", children: displayKey(key) }),
672
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-row-val", children: resolvedLabels[key] || String(value ?? "") })
673
+ ] }, key)),
674
+ /* @__PURE__ */ jsx(ItemEntryTable, { fieldUpdates, resolvedLabels }),
675
+ /* @__PURE__ */ jsx(ExpenseEntryTable, { fieldUpdates, resolvedLabels }),
676
+ (itemTotal > 0 || expenseTotal > 0) && /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-tot-row total", style: { marginTop: 8 }, children: [
677
+ /* @__PURE__ */ jsx("span", { children: "Grand Total" }),
678
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-tot-row-val", children: grandTotal.toFixed(2) })
679
+ ] })
680
+ ] }),
681
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--preview-foot", children: [
682
+ /* @__PURE__ */ jsx("span", { className: "chatBot--preview-foot-grow" }),
683
+ /* @__PURE__ */ jsx(Button, { variant: "contained", startIcon: /* @__PURE__ */ jsx(Save, { fontSize: "small", sx: { stroke: "currentColor", strokeWidth: 0.5 } }), onClick: onSave, children: "Save" })
684
+ ] })
685
+ ] });
686
+ };
687
+ const ICON_BY_CATEGORY = {
688
+ pdf: { Icon: PictureAsPdfRounded, color: "#C62828" },
689
+ excel: { Icon: TableChartRounded, color: "#1E7E34" },
690
+ doc: { Icon: DescriptionRounded, color: "#1B5FBD" },
691
+ md: { Icon: ArticleRounded, color: "#5C5C5C" },
692
+ image: { Icon: ImageRounded, color: "#8E24AA" }
693
+ };
694
+ const DocFileIcon = ({ filename, fontSize = 16 }) => {
695
+ const category = getFileCategory(filename);
696
+ const { Icon, color } = category ? ICON_BY_CATEGORY[category] : { Icon: InsertDriveFileRounded, color: "#9E9E9E" };
697
+ return /* @__PURE__ */ jsx(Icon, { sx: { fontSize, color } });
698
+ };
699
+ const DocUpload = ({ onUploadComplete, onUploadError, uploadDocument: uploadDocument2, uploadDocuments: uploadDocuments2 }) => {
700
+ const [isDragging, setIsDragging] = useState(false);
701
+ const [progress, setProgress] = useState(null);
702
+ const [fileNames, setFileNames] = useState([]);
703
+ const fileInputRef = useRef(null);
704
+ const handleFiles = useCallback(async (files) => {
705
+ if (files.length === 0) return;
706
+ if (files.length > 10) {
707
+ onUploadError("Maximum 10 files allowed per request.");
708
+ return;
709
+ }
710
+ for (const file of files) {
711
+ if (!getFileCategory(file.name)) {
712
+ onUploadError("Unsupported file type. Accepted: PDF, Word, Excel, Markdown, image.");
713
+ return;
714
+ }
715
+ if (file.size > 50 * 1024 * 1024) {
716
+ onUploadError(`File too large (${file.name}). Maximum 50MB.`);
717
+ return;
718
+ }
719
+ }
720
+ setFileNames(files.map((f) => f.name));
721
+ setProgress(0);
722
+ try {
723
+ if (files.length === 1) {
724
+ const doc = await uploadDocument2(files[0], (pct) => setProgress(pct));
725
+ onUploadComplete([doc]);
726
+ } else {
727
+ const docs = await uploadDocuments2(files, (pct) => setProgress(pct));
728
+ onUploadComplete(docs);
729
+ }
730
+ } catch (err) {
731
+ onUploadError(err.message || "Upload failed");
732
+ } finally {
733
+ setProgress(null);
734
+ setFileNames([]);
735
+ }
736
+ }, [uploadDocument2, uploadDocuments2, onUploadComplete, onUploadError]);
737
+ const handleDrop = useCallback((e) => {
738
+ e.preventDefault();
739
+ setIsDragging(false);
740
+ const files = Array.from(e.dataTransfer.files);
741
+ if (files.length) handleFiles(files);
742
+ }, [handleFiles]);
743
+ const handleDragOver = useCallback((e) => {
744
+ e.preventDefault();
745
+ setIsDragging(true);
746
+ }, []);
747
+ const handleDragLeave = useCallback(() => setIsDragging(false), []);
748
+ const handleClick = () => {
749
+ var _a;
750
+ return (_a = fileInputRef.current) == null ? void 0 : _a.click();
751
+ };
752
+ const handleChange = (e) => {
753
+ const files = Array.from(e.target.files || []);
754
+ if (files.length) handleFiles(files);
755
+ e.target.value = "";
756
+ };
757
+ if (progress !== null) {
758
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-progress-wrap", children: [
759
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-progress-info", children: [
760
+ /* @__PURE__ */ jsx(DocFileIcon, { filename: fileNames[0] || "", fontSize: 16 }),
761
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-progress-name", children: fileNames.length === 1 ? fileNames[0] : `${fileNames.length} files uploading...` }),
762
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--doc-progress-pct", children: [
763
+ progress,
764
+ "%"
765
+ ] })
766
+ ] }),
767
+ /* @__PURE__ */ jsx("div", { className: "chatBot--doc-progress-bar", children: /* @__PURE__ */ jsx("div", { className: "chatBot--doc-progress-fill", style: { width: `${progress}%` } }) })
768
+ ] });
769
+ }
770
+ return /* @__PURE__ */ jsxs(
771
+ "div",
772
+ {
773
+ className: `chatBot--doc-dropzone${isDragging ? " chatBot--doc-dropzone--active" : ""}`,
774
+ onDrop: handleDrop,
775
+ onDragOver: handleDragOver,
776
+ onDragLeave: handleDragLeave,
777
+ onClick: handleClick,
778
+ children: [
779
+ /* @__PURE__ */ jsx(
780
+ "input",
781
+ {
782
+ ref: fileInputRef,
783
+ type: "file",
784
+ accept: ACCEPT_ATTR,
785
+ multiple: true,
786
+ style: { display: "none" },
787
+ onChange: handleChange
788
+ }
789
+ ),
790
+ /* @__PURE__ */ jsx(CloudUploadRounded, { sx: { fontSize: 28, color: "#2EB273", mb: 0.5 } }),
791
+ /* @__PURE__ */ jsx("div", { className: "chatBot--doc-drop-label", children: "Drop files here or click to browse" }),
792
+ /* @__PURE__ */ jsx("div", { className: "chatBot--doc-drop-sub", children: "Max 50MB per file · PDF, Word, Excel, Markdown, image · Up to 10 files" })
793
+ ]
794
+ }
795
+ );
796
+ };
797
+ const STATUS_LABELS = {
798
+ uploading: "Uploading…",
799
+ pending: "Queued",
800
+ processing: "Processing",
801
+ parsing: "Extracting text",
802
+ embedding: "Generating embeddings",
803
+ indexing: "Indexing",
804
+ ready: "Ready",
805
+ failed: "Failed"
806
+ };
807
+ const ACTIVE_STATUSES = ["pending", "processing", "parsing", "embedding", "indexing"];
808
+ const DocStatus = ({ document, onReady, onError, getStatus }) => {
809
+ const [doc, setDoc] = useState(document);
810
+ const [pollCount, setPollCount] = useState(0);
811
+ const mountedRef = useRef(true);
812
+ const pollDocIdRef = useRef(doc.doc_id);
813
+ pollDocIdRef.current = doc.doc_id;
814
+ useEffect(() => {
815
+ mountedRef.current = true;
816
+ return () => {
817
+ mountedRef.current = false;
818
+ };
819
+ }, []);
820
+ useEffect(() => {
821
+ if (!ACTIVE_STATUSES.includes(doc.status)) return;
822
+ const interval = setInterval(async () => {
823
+ try {
824
+ const updated = await getStatus(doc.doc_id);
825
+ if (!mountedRef.current || updated.doc_id !== pollDocIdRef.current) return;
826
+ setDoc(updated);
827
+ setPollCount((c) => c + 1);
828
+ if (updated.status === "ready") {
829
+ clearInterval(interval);
830
+ onReady(updated);
831
+ } else if (updated.status === "failed") {
832
+ clearInterval(interval);
833
+ onError(updated);
834
+ }
835
+ } catch {
836
+ setPollCount((c) => c + 1);
837
+ }
838
+ }, 3e3);
839
+ return () => clearInterval(interval);
840
+ }, [doc.doc_id, doc.status]);
841
+ const isActive = ACTIVE_STATUSES.includes(doc.status);
842
+ const isReady = doc.status === "ready";
843
+ const isFailed = doc.status === "failed";
844
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-status-card", children: [
845
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-status-head", children: [
846
+ isReady && /* @__PURE__ */ jsx(CheckCircleRounded, { sx: { fontSize: 18, color: "#2EB273" } }),
847
+ isFailed && /* @__PURE__ */ jsx(ErrorRounded, { sx: { fontSize: 18, color: "#C62828" } }),
848
+ isActive && /* @__PURE__ */ jsx(HourglassBottomRounded, { sx: { fontSize: 18, color: "#2EB273" }, className: "chatBot--doc-status-spin" }),
849
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-status-info", children: [
850
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-status-name", children: doc.filename }),
851
+ /* @__PURE__ */ jsxs("span", { className: "chatBot--doc-status-label", children: [
852
+ STATUS_LABELS[doc.status],
853
+ doc.pages ? ` · ${doc.pages} pages` : "",
854
+ doc.category ? ` · ${doc.category}` : ""
855
+ ] })
856
+ ] })
857
+ ] }),
858
+ isActive && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-progress-bar", children: /* @__PURE__ */ jsx("div", { className: "chatBot--doc-progress-fill chatBot--doc-progress-fill--indeterminate" }) }),
859
+ isFailed && /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-status-error", children: [
860
+ doc.error || "Document processing failed",
861
+ doc.error_code && /* @__PURE__ */ jsx("span", { className: "chatBot--doc-status-error-code", children: doc.error_code })
862
+ ] }),
863
+ isReady && /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-status-ready", children: [
864
+ doc.chunk_count,
865
+ " chunks indexed · Ready to chat"
866
+ ] })
867
+ ] });
868
+ };
869
+ const DocIntro = ({ document, documents, suggestedQuestions, onSuggestion }) => {
870
+ const docsToRender = documents && documents.length > 0 ? documents : document ? [document] : [];
871
+ const questionsToRender = suggestedQuestions && suggestedQuestions.length > 0 ? suggestedQuestions : document == null ? void 0 : document.suggested_questions;
872
+ if (docsToRender.length === 0) return null;
873
+ if (!docsToRender.some((d) => d.summary) && !(questionsToRender == null ? void 0 : questionsToRender.length)) return null;
874
+ return /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-intro-card", children: [
875
+ docsToRender.map((doc, idx) => /* @__PURE__ */ jsxs("div", { style: { borderBottom: idx < docsToRender.length - 1 && docsToRender.length > 1 ? "1px solid #F2F3F4" : "none" }, children: [
876
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-intro-head", children: [
877
+ /* @__PURE__ */ jsx(DocFileIcon, { filename: doc.filename, fontSize: 16 }),
878
+ /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-intro-head-info", children: [
879
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-intro-filename", children: doc.filename }),
880
+ /* @__PURE__ */ jsx("span", { className: "chatBot--doc-intro-meta", children: doc.category && /* @__PURE__ */ jsxs(Fragment, { children: [
881
+ doc.category,
882
+ doc.sub_category ? ` · ${doc.sub_category}` : ""
883
+ ] }) })
884
+ ] })
885
+ ] }),
886
+ doc.summary && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-intro-summary", children: doc.summary })
887
+ ] }, doc.doc_id || idx)),
888
+ questionsToRender && questionsToRender.length > 0 && /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-intro-questions", children: [
889
+ /* @__PURE__ */ jsx("div", { className: "chatBot--doc-intro-q-label", children: "Suggested questions" }),
890
+ questionsToRender.map((q, i) => /* @__PURE__ */ jsx("button", { className: "chatBot--doc-intro-q-btn", onClick: () => onSuggestion(q), children: q }, i))
891
+ ] })
892
+ ] });
893
+ };
894
+ marked.use({ breaks: true, gfm: true });
895
+ const ChatBot = () => {
896
+ var _a;
897
+ const isAiEnabled = ((_a = getApiConfigSafe()) == null ? void 0 : _a.aiFeatureEnabled) === "true";
898
+ if (!isAiEnabled) return null;
899
+ const uData = JSON.parse(localStorage.getItem("_u_data") || "{}");
900
+ if (uData.role_type !== "Admin") return null;
901
+ const { user } = useAuth();
902
+ const [isOpen, setIsOpen] = useState(false);
903
+ const [messages, setMessages] = useState([]);
904
+ const [isTyping, setIsTyping] = useState(false);
905
+ const [inputValue, setInputValue] = useState("");
906
+ const [mode, setMode] = useState("conversation");
907
+ const [formType, setFormType] = useState(null);
908
+ const [currentFieldUpdates, setCurrentFieldUpdates] = useState(null);
909
+ const [resolvedLabels, setResolvedLabels] = useState({});
910
+ const [dynamicQuestions, setDynamicQuestions] = useState([]);
911
+ const [showSlashMenu, setShowSlashMenu] = useState(false);
912
+ const [slashIndex, setSlashIndex] = useState(0);
913
+ const labelCacheRef = useRef({});
914
+ const bodyRef = useRef(null);
915
+ const textareaRef = useRef(null);
916
+ const userScrolledUp = useRef(false);
917
+ const agentStarted = useRef(false);
918
+ const [activeDocument, setActiveDocument] = useState(null);
919
+ const [docIntroSent, setDocIntroSent] = useState(false);
920
+ const [docError, setDocError] = useState(null);
921
+ const [activeDocuments, setActiveDocuments] = useState([]);
922
+ const [suggestedQuestions, setSuggestedQuestions] = useState([]);
923
+ const fetchedMultiDocIntroIds = useRef("");
924
+ const firstName = (user == null ? void 0 : user.first_name) || "";
925
+ const filteredMessages = useMemo(
926
+ () => messages.filter((m) => !m.mode || m.mode === mode),
927
+ [messages, mode]
928
+ );
929
+ useEffect(() => {
930
+ const config = getApiConfigSafe();
931
+ if (config == null ? void 0 : config.backendBaseUrl) {
932
+ setAiFeatureBaseUrl(`${config.backendBaseUrl}/ai-feature`);
933
+ }
934
+ }, []);
935
+ const slashQuery = inputValue.startsWith("/") ? inputValue.slice(1).toLowerCase() : "";
936
+ const filteredCommands = SLASH_COMMANDS.filter(
937
+ (cmd) => cmd.label.toLowerCase().startsWith(slashQuery)
938
+ );
939
+ const fetchQuestions = useCallback(async () => {
940
+ try {
941
+ const { "x-token": token } = getToken();
942
+ const uData2 = getDefaultUserData();
943
+ const mapLocalToApiModule = (localName) => {
944
+ switch (localName) {
945
+ case "accounts-and-finance":
946
+ return "Accounting";
947
+ case "inventory":
948
+ return "Inventory";
949
+ case "manufacturing":
950
+ return "Manufacturing";
951
+ case "purchase":
952
+ return "Procurement";
953
+ case "sales":
954
+ return "CRM";
955
+ case "hrms":
956
+ return "HRMS";
957
+ case "rental":
958
+ return "Rental";
959
+ case "rbac":
960
+ case "user":
961
+ return "Users";
962
+ default:
963
+ return null;
964
+ }
965
+ };
966
+ const mappedModules = ((uData2 == null ? void 0 : uData2.module_access) || []).map((m) => mapLocalToApiModule(m.module_name)).filter(Boolean);
967
+ const uniqueModules = Array.from(new Set(mappedModules));
968
+ if (uniqueModules.length === 0) {
969
+ setDynamicQuestions([]);
970
+ return;
971
+ }
972
+ const modules = [...uniqueModules].sort(() => Math.random() - 0.5).slice(0, 4);
973
+ const res = await getV1CopilotQuestions(modules, token);
974
+ if (res && res.modules) {
975
+ const questions = [];
976
+ res.modules.forEach((mod) => {
977
+ if (mod.questions) {
978
+ mod.questions.forEach((q) => {
979
+ questions.push({
980
+ prompt: q,
981
+ cat: mod.module.toUpperCase(),
982
+ mode: "conversation",
983
+ kind: "blue"
984
+ });
985
+ });
986
+ }
987
+ });
988
+ setDynamicQuestions(questions);
989
+ }
990
+ } catch (e) {
991
+ console.error("Failed to fetch copilot questions", e);
992
+ }
993
+ }, []);
994
+ useEffect(() => {
995
+ if (isOpen) {
996
+ setTimeout(() => {
997
+ var _a2;
998
+ return (_a2 = textareaRef.current) == null ? void 0 : _a2.focus();
999
+ }, 100);
1000
+ if (dynamicQuestions.length === 0) {
1001
+ fetchQuestions();
1002
+ }
1003
+ }
1004
+ }, [isOpen, dynamicQuestions.length, fetchQuestions]);
1005
+ useEffect(() => {
1006
+ const container = bodyRef.current;
1007
+ if (!container) return;
1008
+ const onScroll = () => {
1009
+ const atBottom = container.scrollHeight - container.scrollTop - container.clientHeight < 40;
1010
+ userScrolledUp.current = !atBottom;
1011
+ };
1012
+ container.addEventListener("scroll", onScroll);
1013
+ return () => container.removeEventListener("scroll", onScroll);
1014
+ }, []);
1015
+ useEffect(() => {
1016
+ if (!userScrolledUp.current && bodyRef.current) {
1017
+ bodyRef.current.scrollTop = bodyRef.current.scrollHeight;
1018
+ }
1019
+ }, [messages, isTyping, currentFieldUpdates, resolvedLabels, activeDocument, activeDocuments, suggestedQuestions]);
1020
+ const selectCommand = (id) => {
1021
+ setMode(id);
1022
+ setShowSlashMenu(false);
1023
+ setSlashIndex(0);
1024
+ if (id === "conversation") {
1025
+ setFormType(null);
1026
+ agentStarted.current = false;
1027
+ } else if (id === "agent" && !formType) {
1028
+ setFormType("sales_invoice");
1029
+ }
1030
+ setTimeout(() => {
1031
+ var _a2;
1032
+ return (_a2 = textareaRef.current) == null ? void 0 : _a2.focus();
1033
+ }, 0);
1034
+ };
1035
+ const handleModeChange = (id) => {
1036
+ selectCommand(id);
1037
+ };
1038
+ const handleInputChange = (e) => {
1039
+ const val = e.target.value;
1040
+ setInputValue(val);
1041
+ if (val.startsWith("/")) {
1042
+ setShowSlashMenu(true);
1043
+ setSlashIndex(0);
1044
+ } else {
1045
+ setShowSlashMenu(false);
1046
+ }
1047
+ };
1048
+ const handleSuggestion = (prompt, suggestionMode, suggestionFormType) => {
1049
+ setMode(suggestionMode);
1050
+ if (suggestionFormType) setFormType(suggestionFormType);
1051
+ setInputValue(prompt);
1052
+ setTimeout(() => {
1053
+ const ta = textareaRef.current;
1054
+ if (ta) {
1055
+ ta.focus();
1056
+ ta.selectionStart = ta.selectionEnd = prompt.length;
1057
+ }
1058
+ }, 0);
1059
+ };
1060
+ const handleDocUpload = useCallback(async (file, onProgress) => {
1061
+ const { "x-token": token } = getToken();
1062
+ setDocError(null);
1063
+ const result = await uploadDocument(file, token, void 0, onProgress);
1064
+ const doc = {
1065
+ doc_id: result.doc_id,
1066
+ filename: result.filename,
1067
+ status: result.status,
1068
+ pages: result.pages
1069
+ };
1070
+ setActiveDocument(doc);
1071
+ if (result.deduplicated && result.status === "ready") {
1072
+ const fullStatus = await getDocumentStatus(result.doc_id, token);
1073
+ const fullDoc = {
1074
+ doc_id: fullStatus.doc_id,
1075
+ filename: fullStatus.filename || result.filename,
1076
+ status: fullStatus.status,
1077
+ pages: fullStatus.pages || result.pages,
1078
+ category: fullStatus.category || void 0,
1079
+ sub_category: fullStatus.sub_category || void 0,
1080
+ chunk_count: fullStatus.chunk_count || void 0
1081
+ };
1082
+ setActiveDocument(fullDoc);
1083
+ setDocIntroSent(false);
1084
+ streamV1CopilotChat(
1085
+ { ...getToken(), query: "", doc_id: fullDoc.doc_id, doc_intro: true },
1086
+ () => {
1087
+ },
1088
+ () => {
1089
+ },
1090
+ () => {
1091
+ },
1092
+ () => {
1093
+ },
1094
+ (data) => {
1095
+ if (data == null ? void 0 : data.found) {
1096
+ setActiveDocument((prev) => prev && prev.doc_id === fullDoc.doc_id ? {
1097
+ ...prev,
1098
+ summary: data.summary,
1099
+ suggested_questions: data.suggested_questions,
1100
+ category: data.category || prev.category,
1101
+ sub_category: data.sub_category || prev.sub_category
1102
+ } : prev);
1103
+ }
1104
+ }
1105
+ ).catch(() => {
1106
+ });
1107
+ return fullDoc;
1108
+ }
1109
+ return doc;
1110
+ }, []);
1111
+ const handleDocUploadComplete = useCallback((doc) => {
1112
+ setDocIntroSent(false);
1113
+ }, []);
1114
+ const handleDocUploadError = useCallback((msg) => {
1115
+ setDocError(msg);
1116
+ }, []);
1117
+ const handleDocReady = useCallback((doc) => {
1118
+ setActiveDocument(doc);
1119
+ setDocIntroSent(false);
1120
+ const onDocIntro = (data) => {
1121
+ if (data == null ? void 0 : data.found) {
1122
+ setActiveDocument((prev) => prev && prev.doc_id === doc.doc_id ? {
1123
+ ...prev,
1124
+ summary: data.summary,
1125
+ suggested_questions: data.suggested_questions,
1126
+ category: data.category || prev.category,
1127
+ sub_category: data.sub_category || prev.sub_category
1128
+ } : prev);
1129
+ }
1130
+ };
1131
+ streamV1CopilotChat(
1132
+ { ...getToken(), query: "", doc_id: doc.doc_id, doc_intro: true },
1133
+ () => {
1134
+ },
1135
+ () => {
1136
+ },
1137
+ () => {
1138
+ },
1139
+ () => {
1140
+ },
1141
+ onDocIntro
1142
+ ).catch(() => {
1143
+ });
1144
+ }, []);
1145
+ const handleDocError = useCallback((doc) => {
1146
+ setActiveDocument(null);
1147
+ setDocError(doc.error || "Document processing failed");
1148
+ }, []);
1149
+ const handleDocDelete = useCallback(async () => {
1150
+ if (!activeDocument) return;
1151
+ const docId = activeDocument.doc_id;
1152
+ try {
1153
+ const { "x-token": token } = getToken();
1154
+ const { deleteDocument } = await import("./api-txaILyQB.esm.js").then((n) => n.b);
1155
+ await deleteDocument(docId, token);
1156
+ setActiveDocument(
1157
+ (current) => (current == null ? void 0 : current.doc_id) === docId ? null : current
1158
+ );
1159
+ setDocIntroSent(false);
1160
+ setDocError(null);
1161
+ } catch {
1162
+ setDocError("Failed to delete document. Please try again.");
1163
+ }
1164
+ }, [activeDocument]);
1165
+ const checkAndSendMultiDocIntro = useCallback((docs) => {
1166
+ if (docs.length === 0) return;
1167
+ if (docs.some((d) => d.status !== "ready")) return;
1168
+ const currentIds = docs.map((d) => d.doc_id).sort().join(",");
1169
+ if (fetchedMultiDocIntroIds.current === currentIds) return;
1170
+ fetchedMultiDocIntroIds.current = currentIds;
1171
+ streamV1CopilotChat(
1172
+ { ...getToken(), query: "", doc_ids: docs.map((d) => d.doc_id), doc_intro: true },
1173
+ () => {
1174
+ },
1175
+ () => {
1176
+ },
1177
+ () => {
1178
+ },
1179
+ () => {
1180
+ },
1181
+ (data) => {
1182
+ if (data == null ? void 0 : data.found) {
1183
+ if (data.suggested_questions) {
1184
+ setSuggestedQuestions(data.suggested_questions);
1185
+ }
1186
+ setActiveDocuments((prev) => prev.map((p) => {
1187
+ if (docs.length === 1) {
1188
+ return {
1189
+ ...p,
1190
+ summary: data.summary,
1191
+ category: data.category || p.category,
1192
+ sub_category: data.sub_category || p.sub_category
1193
+ };
1194
+ } else if (data.docs && Array.isArray(data.docs)) {
1195
+ const dData = data.docs.find((d) => d.doc_id === p.doc_id);
1196
+ if (dData) {
1197
+ return {
1198
+ ...p,
1199
+ summary: dData.summary,
1200
+ category: dData.category || p.category,
1201
+ sub_category: dData.sub_category || p.sub_category
1202
+ };
1203
+ }
1204
+ }
1205
+ return p;
1206
+ }));
1207
+ }
1208
+ }
1209
+ ).catch(() => {
1210
+ });
1211
+ }, [docIntroSent]);
1212
+ const handleMultiDocUpload = useCallback(async (files, onProgress) => {
1213
+ const { "x-token": token } = getToken();
1214
+ setDocError(null);
1215
+ const result = await uploadDocuments(files, token, void 0, onProgress);
1216
+ const items = Array.isArray(result) ? result : result.items || [];
1217
+ const docs = items.map((r) => ({
1218
+ doc_id: r.doc_id,
1219
+ filename: r.filename,
1220
+ status: r.status,
1221
+ pages: r.pages,
1222
+ error: r.error
1223
+ }));
1224
+ setActiveDocuments((prev) => {
1225
+ const newDocs = [...prev];
1226
+ docs.forEach((d) => {
1227
+ if (!newDocs.find((x) => x.doc_id === d.doc_id)) newDocs.push(d);
1228
+ });
1229
+ return newDocs;
1230
+ });
1231
+ setDocIntroSent(false);
1232
+ const readyDocs = items.filter((r) => r.deduplicated && r.status === "ready");
1233
+ if (readyDocs.length > 0) {
1234
+ const fullStatuses = await Promise.all(readyDocs.map((r) => getDocumentStatus(r.doc_id, token)));
1235
+ setActiveDocuments((prev) => {
1236
+ const updated = prev.map((p) => {
1237
+ const full = fullStatuses.find((fs) => fs.doc_id === p.doc_id);
1238
+ if (full) {
1239
+ return {
1240
+ ...p,
1241
+ filename: full.filename || p.filename,
1242
+ status: full.status,
1243
+ pages: full.pages || p.pages,
1244
+ category: full.category || p.category,
1245
+ sub_category: full.sub_category || p.sub_category,
1246
+ chunk_count: full.chunk_count || p.chunk_count
1247
+ };
1248
+ }
1249
+ return p;
1250
+ });
1251
+ setTimeout(() => checkAndSendMultiDocIntro(updated), 0);
1252
+ return updated;
1253
+ });
1254
+ }
1255
+ return docs;
1256
+ }, [checkAndSendMultiDocIntro]);
1257
+ const handleMultiDocUploadComplete = useCallback((docs) => {
1258
+ setDocIntroSent(false);
1259
+ }, []);
1260
+ useCallback((msg) => {
1261
+ setDocError(msg);
1262
+ }, []);
1263
+ const handleMultiDocReady = useCallback((doc) => {
1264
+ setActiveDocuments((prev) => {
1265
+ const updated = prev.map((p) => p.doc_id === doc.doc_id ? doc : p);
1266
+ setTimeout(() => checkAndSendMultiDocIntro(updated), 0);
1267
+ return updated;
1268
+ });
1269
+ }, [checkAndSendMultiDocIntro]);
1270
+ const handleMultiDocError = useCallback((doc) => {
1271
+ setActiveDocuments((prev) => prev.filter((p) => p.doc_id !== doc.doc_id));
1272
+ setDocError(doc.error || "Document processing failed");
1273
+ }, []);
1274
+ const handleMultiDocDelete = useCallback(async (docId) => {
1275
+ if (activeDocuments.length === 0) return;
1276
+ const docsToDelete = docId ? activeDocuments.filter((d) => d.doc_id === docId) : activeDocuments;
1277
+ try {
1278
+ const { "x-token": token } = getToken();
1279
+ const { deleteDocument } = await import("./api-txaILyQB.esm.js").then((n) => n.b);
1280
+ await Promise.all(docsToDelete.map((d) => deleteDocument(d.doc_id, token)));
1281
+ setActiveDocuments((current) => docId ? current.filter((c) => c.doc_id !== docId) : []);
1282
+ setDocIntroSent(false);
1283
+ setDocError(null);
1284
+ setSuggestedQuestions([]);
1285
+ fetchedMultiDocIntroIds.current = "";
1286
+ } catch {
1287
+ setDocError("Failed to delete document(s). Please try again.");
1288
+ }
1289
+ }, [activeDocuments]);
1290
+ const sendMessage = useCallback(
1291
+ async (text) => {
1292
+ if (isTyping) return;
1293
+ if (mode === "conversation" && !text.trim()) return;
1294
+ if (mode === "agent" && !formType) return;
1295
+ if (mode === "doc_qa" && !activeDocument && activeDocuments.length === 0) return;
1296
+ const userText = text;
1297
+ setMessages((prev) => [
1298
+ ...prev,
1299
+ { id: Date.now(), role: "user", text: userText, mode }
1300
+ ]);
1301
+ setInputValue("");
1302
+ setIsTyping(true);
1303
+ let aiMsgId = null;
1304
+ const startTime = Date.now();
1305
+ const appendToken = (chunk) => {
1306
+ if (aiMsgId === null) {
1307
+ aiMsgId = Date.now() + 1;
1308
+ const responseTime = `${((Date.now() - startTime) / 1e3).toFixed(1)}s`;
1309
+ setIsTyping(false);
1310
+ setMessages((prev) => [
1311
+ ...prev,
1312
+ { id: aiMsgId, role: "ai", text: chunk, time: responseTime, mode }
1313
+ ]);
1314
+ } else {
1315
+ setMessages(
1316
+ (prev) => prev.map((m) => m.id === aiMsgId ? { ...m, text: m.text + chunk } : m)
1317
+ );
1318
+ }
1319
+ };
1320
+ const onDone = () => {
1321
+ setIsTyping(false);
1322
+ };
1323
+ const onError = (message) => {
1324
+ setIsTyping(false);
1325
+ const errorText = message || "Sorry, something went wrong. Please try again.";
1326
+ if (aiMsgId !== null) {
1327
+ setMessages((prev) => prev.map(
1328
+ (m) => m.id === aiMsgId ? { ...m, text: m.text + "\n\n⚠️ " + errorText } : m
1329
+ ));
1330
+ } else {
1331
+ setMessages((prev) => [
1332
+ ...prev,
1333
+ { id: Date.now() + 1, role: "ai", text: errorText, time: getTime(), mode }
1334
+ ]);
1335
+ }
1336
+ };
1337
+ const onOffTopic = () => {
1338
+ setIsTyping(false);
1339
+ if (aiMsgId === null) {
1340
+ setMessages((prev) => [
1341
+ ...prev,
1342
+ { id: Date.now() + 1, role: "ai", text: "That question is outside the scope of ERP data.", time: getTime(), mode }
1343
+ ]);
1344
+ }
1345
+ };
1346
+ const resolveFieldLabel = async (key, value) => {
1347
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
1348
+ const cacheKey = `${key}:${value}`;
1349
+ if (labelCacheRef.current[cacheKey]) return labelCacheRef.current[cacheKey];
1350
+ let label = String(value ?? "");
1351
+ try {
1352
+ if (key === "customer_id" || key === "vendor_id") {
1353
+ const res = await getV1PartiesId({ ...getToken(), id: value });
1354
+ const p = ((_c = (_b = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.parties) == null ? void 0 : _b.party) == null ? void 0 : _c.data) || ((_e = (_d = res == null ? void 0 : res.data) == null ? void 0 : _d.parties) == null ? void 0 : _e.party) || {};
1355
+ label = p.company_name || `${p.first_name || ""} ${p.last_name || ""}`.trim() || label;
1356
+ } else if (key === "payment_term_id") {
1357
+ const res = await getV1PaymentTermsId({ ...getToken(), id: value });
1358
+ const pt = ((_h = (_g = (_f = res == null ? void 0 : res.data) == null ? void 0 : _f.payment_term) == null ? void 0 : _g.payment_term) == null ? void 0 : _h.data) || {};
1359
+ label = pt.name || label;
1360
+ } else if (key === "account_payable_id" || key === "account_receivable_id") {
1361
+ const res = await getV1ChartOfAccountId({ ...getToken(), id: value });
1362
+ const c = ((_k = (_j = (_i = res == null ? void 0 : res.data) == null ? void 0 : _i.chart_of_account) == null ? void 0 : _j.account) == null ? void 0 : _k.data) || {};
1363
+ label = c.account_name || label;
1364
+ } else if (key === "company_id") {
1365
+ const res = await getV1CompanyId({ ...getToken(), id: value });
1366
+ const c = ((_m = (_l = res == null ? void 0 : res.data) == null ? void 0 : _l.company) == null ? void 0 : _m.data) || {};
1367
+ label = c.company_name || label;
1368
+ } else if (key === "currency_id" || key === "supplier_currency_id") {
1369
+ const res = await getV1CurrencyId({ ...getToken(), id: value });
1370
+ const c = ((_o = (_n = res == null ? void 0 : res.data) == null ? void 0 : _n.currency) == null ? void 0 : _o.data) || {};
1371
+ label = c.currency_name || label;
1372
+ } else if (key === "region_id") {
1373
+ const res = await getV1LocationsStates({ ...getToken(), id: Number(value) });
1374
+ const r = ((_p = res == null ? void 0 : res.data) == null ? void 0 : _p.state) || (res == null ? void 0 : res.data) || {};
1375
+ label = r.name || r.state_name || label;
1376
+ } else if (key === "location" || key.startsWith("invoice_addresses.shipping_address") || key.startsWith("invoice_addresses.billing_address") || key.startsWith("invoice_addresses.place_of_supply")) {
1377
+ const res = await getV1WarehouseLocationId({ ...getToken(), id: value });
1378
+ const wl = ((_s = (_r = (_q = res == null ? void 0 : res.data) == null ? void 0 : _q.warehouse_location) == null ? void 0 : _r.warehouse_location) == null ? void 0 : _s.data) || {};
1379
+ label = wl.name || label;
1380
+ } else if (key === "department" || key === "department_id") {
1381
+ const res = await getV1DepartmentsId({ ...getToken(), id: value });
1382
+ const d = ((_v = (_u = (_t = res == null ? void 0 : res.data) == null ? void 0 : _t.department) == null ? void 0 : _u.department) == null ? void 0 : _v.data) || {};
1383
+ label = d.name || label;
1384
+ } else if (key.startsWith("invoice_addresses.supplier_address") || key.startsWith("invoice_addresses.contact_person")) {
1385
+ const res = await getV1PartiesId({ ...getToken(), id: value });
1386
+ const p = ((_y = (_x = (_w = res == null ? void 0 : res.data) == null ? void 0 : _w.parties) == null ? void 0 : _x.party) == null ? void 0 : _y.data) || ((_A = (_z = res == null ? void 0 : res.data) == null ? void 0 : _z.parties) == null ? void 0 : _A.party) || {};
1387
+ label = p.company_name || `${p.first_name || ""} ${p.last_name || ""}`.trim() || label;
1388
+ }
1389
+ } catch {
1390
+ }
1391
+ labelCacheRef.current[cacheKey] = label;
1392
+ return label;
1393
+ };
1394
+ const onFieldUpdates = async (updates) => {
1395
+ setCurrentFieldUpdates(updates);
1396
+ const newLabels = {};
1397
+ const expenseAccountIds = updates["purchase_expense_entries.accounts.account_name"];
1398
+ if (Array.isArray(expenseAccountIds)) {
1399
+ const accountPromises = expenseAccountIds.map(async (accountId) => {
1400
+ var _a2, _b, _c;
1401
+ const cacheKey = `purchase_expense_entries.accounts.account_name:${accountId}`;
1402
+ if (labelCacheRef.current[cacheKey]) {
1403
+ newLabels[cacheKey] = labelCacheRef.current[cacheKey];
1404
+ return;
1405
+ }
1406
+ try {
1407
+ const res = await getV1ChartOfAccountId({ ...getToken(), id: accountId });
1408
+ const c = ((_c = (_b = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.chart_of_account) == null ? void 0 : _b.account) == null ? void 0 : _c.data) || {};
1409
+ const label = c.account_name || `Account #${accountId}`;
1410
+ labelCacheRef.current[cacheKey] = label;
1411
+ newLabels[cacheKey] = label;
1412
+ } catch {
1413
+ newLabels[cacheKey] = `Account #${accountId}`;
1414
+ }
1415
+ });
1416
+ await Promise.all(accountPromises);
1417
+ }
1418
+ const expenseTaxCodes = updates["purchase_expense_entries.tax_codes"];
1419
+ if (Array.isArray(expenseTaxCodes)) {
1420
+ const uniqueTaxIds = [...new Set(expenseTaxCodes.filter(Boolean))];
1421
+ const taxPromises = uniqueTaxIds.map(async (taxId) => {
1422
+ var _a2, _b;
1423
+ const cacheKey = `tax_code_data:${taxId}`;
1424
+ if (labelCacheRef.current[cacheKey]) {
1425
+ newLabels[cacheKey] = labelCacheRef.current[cacheKey];
1426
+ return;
1427
+ }
1428
+ try {
1429
+ const res = await getV1TaxCodeId({ ...getToken(), id: taxId });
1430
+ const taxCode = ((_b = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.taxCode) == null ? void 0 : _b.data) || {};
1431
+ const taxRate = Number(taxCode.rate) || 0;
1432
+ const taxName = taxCode.name || `Tax #${taxId}`;
1433
+ const label = JSON.stringify({ name: `${taxName} (${taxRate}%)`, rate: taxRate });
1434
+ labelCacheRef.current[cacheKey] = label;
1435
+ newLabels[cacheKey] = label;
1436
+ } catch {
1437
+ newLabels[cacheKey] = JSON.stringify({ name: `Tax #${taxId}`, rate: 0 });
1438
+ }
1439
+ });
1440
+ await Promise.all(taxPromises);
1441
+ }
1442
+ const itemNames = updates["sales_item_entries.items.name"] || updates["purchase_item_entries.items.name"];
1443
+ const itemPrefix = updates["sales_item_entries.items.name"] ? "sales_item_entries" : "purchase_item_entries";
1444
+ if (Array.isArray(itemNames)) {
1445
+ const itemPromises = itemNames.map(async (itemId) => {
1446
+ var _a2;
1447
+ const cacheKey = `${itemPrefix}.items.name:${itemId}`;
1448
+ if (labelCacheRef.current[cacheKey]) {
1449
+ newLabels[cacheKey] = labelCacheRef.current[cacheKey];
1450
+ return;
1451
+ }
1452
+ try {
1453
+ const res = await getV1InventoryItemsId({ ...getToken(), id: itemId });
1454
+ const item = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) || {};
1455
+ const label = item.name || `Item #${itemId}`;
1456
+ labelCacheRef.current[cacheKey] = label;
1457
+ newLabels[cacheKey] = label;
1458
+ } catch {
1459
+ newLabels[cacheKey] = `Item #${itemId}`;
1460
+ }
1461
+ });
1462
+ await Promise.all(itemPromises);
1463
+ }
1464
+ const taxCodes = updates["sales_item_entries.tax_codes"] || updates["purchase_item_entries.tax_codes"];
1465
+ if (Array.isArray(taxCodes)) {
1466
+ const uniqueTaxIds = [...new Set(taxCodes.filter(Boolean))];
1467
+ const taxPromises = uniqueTaxIds.map(async (taxId) => {
1468
+ var _a2, _b;
1469
+ const cacheKey = `tax_code_data:${taxId}`;
1470
+ if (labelCacheRef.current[cacheKey]) {
1471
+ newLabels[cacheKey] = labelCacheRef.current[cacheKey];
1472
+ return;
1473
+ }
1474
+ try {
1475
+ const res = await getV1TaxCodeId({ ...getToken(), id: taxId });
1476
+ const taxCode = ((_b = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.taxCode) == null ? void 0 : _b.data) || {};
1477
+ const taxRate = Number(taxCode.rate) || 0;
1478
+ const taxName = taxCode.name || `Tax #${taxId}`;
1479
+ const label = JSON.stringify({ name: `${taxName} (${taxRate}%)`, rate: taxRate });
1480
+ labelCacheRef.current[cacheKey] = label;
1481
+ newLabels[cacheKey] = label;
1482
+ } catch {
1483
+ newLabels[cacheKey] = JSON.stringify({ name: `Tax #${taxId}`, rate: 0 });
1484
+ }
1485
+ });
1486
+ await Promise.all(taxPromises);
1487
+ }
1488
+ const uomKeys = ["sales_item_entries.units_of_measurement.uom_name", "sales_item_entries.units_of_measurement.name", "purchase_item_entries.units_of_measurement.uom_name"];
1489
+ const uomIdsForKey = uomKeys.find((k) => Array.isArray(updates[k]));
1490
+ if (uomIdsForKey) {
1491
+ const uomIds = updates[uomIdsForKey];
1492
+ const uomPrefix = uomIdsForKey.startsWith("sales") ? "sales_item_entries" : "purchase_item_entries";
1493
+ const uomPromises = uomIds.map(async (uomId) => {
1494
+ var _a2, _b;
1495
+ const cacheKey = `${uomPrefix}.units_of_measurement:${uomId}`;
1496
+ if (labelCacheRef.current[cacheKey]) {
1497
+ newLabels[cacheKey] = labelCacheRef.current[cacheKey];
1498
+ return;
1499
+ }
1500
+ try {
1501
+ const res = await getV1Uom({ ...getToken(), filters: JSON.stringify({ id: uomId }) });
1502
+ const uomList = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2["uom"]) || ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.data) || [];
1503
+ const uom = Array.isArray(uomList) ? uomList[0] : uomList;
1504
+ const label = (uom == null ? void 0 : uom.name) || (uom == null ? void 0 : uom.uom_name) || `UOM #${uomId}`;
1505
+ labelCacheRef.current[cacheKey] = label;
1506
+ newLabels[cacheKey] = label;
1507
+ } catch {
1508
+ newLabels[cacheKey] = `UOM #${uomId}`;
1509
+ }
1510
+ });
1511
+ await Promise.all(uomPromises);
1512
+ }
1513
+ const promises = Object.entries(updates).map(async ([key, value]) => {
1514
+ if (value !== void 0 && value !== null && value !== "") {
1515
+ if (key === "sales_item_entries.items.name" || key === "purchase_item_entries.items.name" || key === "purchase_expense_entries.accounts.account_name") return;
1516
+ if (uomKeys.includes(key)) return;
1517
+ newLabels[key] = await resolveFieldLabel(key, value);
1518
+ }
1519
+ });
1520
+ await Promise.all(promises);
1521
+ setResolvedLabels((prev) => ({ ...prev, ...newLabels }));
1522
+ };
1523
+ try {
1524
+ if (mode === "doc_qa") {
1525
+ if (activeDocuments && activeDocuments.length > 0) {
1526
+ await streamV1CopilotChat(
1527
+ { ...getToken(), query: text, doc_ids: activeDocuments.map((d) => d.doc_id) },
1528
+ appendToken,
1529
+ onDone,
1530
+ onError,
1531
+ onOffTopic
1532
+ );
1533
+ } else if (activeDocument) {
1534
+ await streamV1CopilotChat(
1535
+ { ...getToken(), query: text, doc_id: activeDocument.doc_id },
1536
+ appendToken,
1537
+ onDone,
1538
+ onError,
1539
+ onOffTopic
1540
+ );
1541
+ }
1542
+ } else if (mode === "agent" && formType) {
1543
+ if (!agentStarted.current) {
1544
+ await startV1CopilotAgent(
1545
+ { ...getToken(), form_type: formType },
1546
+ appendToken,
1547
+ () => {
1548
+ agentStarted.current = true;
1549
+ },
1550
+ onError,
1551
+ onOffTopic
1552
+ );
1553
+ }
1554
+ await formAssistV1Copilot(
1555
+ { ...getToken(), message: text },
1556
+ appendToken,
1557
+ onDone,
1558
+ onError,
1559
+ onFieldUpdates,
1560
+ (action) => {
1561
+ if (["save_draft", "submit_form", "discard_form"].includes(action)) {
1562
+ agentStarted.current = false;
1563
+ setCurrentFieldUpdates(null);
1564
+ setResolvedLabels({});
1565
+ labelCacheRef.current = {};
1566
+ const token = getToken()["x-token"];
1567
+ resetV1CopilotSession(token);
1568
+ }
1569
+ }
1570
+ );
1571
+ } else {
1572
+ await streamV1CopilotChat(
1573
+ { ...getToken(), query: text, "x-timezone": (/* @__PURE__ */ new Date()).getTimezoneOffset() },
1574
+ appendToken,
1575
+ onDone,
1576
+ onError,
1577
+ onOffTopic
1578
+ );
1579
+ }
1580
+ } catch {
1581
+ setIsTyping(false);
1582
+ if (aiMsgId === null) {
1583
+ setMessages((prev) => [
1584
+ ...prev,
1585
+ { id: Date.now() + 1, role: "ai", text: "Connection error. Please try again.", time: getTime(), mode }
1586
+ ]);
1587
+ }
1588
+ }
1589
+ },
1590
+ [isTyping, mode, formType, activeDocument, activeDocuments]
1591
+ );
1592
+ const handleKeyDown = (e) => {
1593
+ if (showSlashMenu && filteredCommands.length > 0) {
1594
+ if (e.key === "ArrowDown") {
1595
+ e.preventDefault();
1596
+ setSlashIndex((i) => (i + 1) % filteredCommands.length);
1597
+ return;
1598
+ }
1599
+ if (e.key === "ArrowUp") {
1600
+ e.preventDefault();
1601
+ setSlashIndex((i) => (i - 1 + filteredCommands.length) % filteredCommands.length);
1602
+ return;
1603
+ }
1604
+ if (e.key === "Enter" || e.key === "Tab") {
1605
+ e.preventDefault();
1606
+ const cmdId = filteredCommands[slashIndex].id;
1607
+ setInputValue("");
1608
+ selectCommand(cmdId);
1609
+ return;
1610
+ }
1611
+ if (e.key === "Escape") {
1612
+ setShowSlashMenu(false);
1613
+ setInputValue("");
1614
+ return;
1615
+ }
1616
+ }
1617
+ if (e.key === "Enter" && !e.shiftKey) {
1618
+ e.preventDefault();
1619
+ sendMessage(inputValue);
1620
+ }
1621
+ };
1622
+ const handleSave = useCallback(async () => {
1623
+ await sendMessage("Save the draft");
1624
+ }, [sendMessage]);
1625
+ const handleDiscard = useCallback(async () => {
1626
+ await sendMessage("Discard this form");
1627
+ }, [sendMessage]);
1628
+ const handleSubmit = useCallback(async () => {
1629
+ await sendMessage("Submit this form");
1630
+ }, [sendMessage]);
1631
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1632
+ isOpen && /* @__PURE__ */ jsxs("div", { className: "chatBot--panel", children: [
1633
+ /* @__PURE__ */ jsx(
1634
+ ChatBotHeader,
1635
+ {
1636
+ onClose: () => setIsOpen(false),
1637
+ onNewChat: async () => {
1638
+ const { "x-token": token } = getToken();
1639
+ await resetV1CopilotSession(token);
1640
+ setIsTyping(false);
1641
+ setFormType(null);
1642
+ agentStarted.current = false;
1643
+ setCurrentFieldUpdates(null);
1644
+ setResolvedLabels({});
1645
+ labelCacheRef.current = {};
1646
+ setActiveDocument(null);
1647
+ setDocIntroSent(false);
1648
+ setDocError(null);
1649
+ setActiveDocuments([]);
1650
+ setSuggestedQuestions([]);
1651
+ setMessages([]);
1652
+ fetchedMultiDocIntroIds.current = "";
1653
+ fetchQuestions();
1654
+ }
1655
+ }
1656
+ ),
1657
+ filteredMessages.length === 0 && !activeDocument && activeDocuments.length === 0 ? /* @__PURE__ */ jsx("div", { ref: bodyRef, className: "chatBot--body", children: /* @__PURE__ */ jsx(ChatBotWelcome, { firstName, onSuggestion: handleSuggestion, dynamicQuestions, mode }) }) : /* @__PURE__ */ jsx(
1658
+ ChatBotMessages,
1659
+ {
1660
+ messages: filteredMessages,
1661
+ isTyping,
1662
+ bodyRef,
1663
+ footer: /* @__PURE__ */ jsxs(Fragment, { children: [
1664
+ activeDocument && activeDocuments.length === 0 && mode === "doc_qa" && activeDocument.status === "ready" && !docIntroSent && filteredMessages.length === 0 && /* @__PURE__ */ jsx(
1665
+ DocIntro,
1666
+ {
1667
+ document: activeDocument,
1668
+ onSuggestion: (q) => {
1669
+ setDocIntroSent(true);
1670
+ setInputValue(q);
1671
+ setTimeout(() => sendMessage(q), 0);
1672
+ }
1673
+ }
1674
+ ),
1675
+ activeDocuments.length > 0 && mode === "doc_qa" && activeDocuments.every((d) => d.status === "ready") && !docIntroSent && filteredMessages.length === 0 && /* @__PURE__ */ jsx(
1676
+ DocIntro,
1677
+ {
1678
+ documents: activeDocuments,
1679
+ suggestedQuestions: suggestedQuestions.length > 0 ? suggestedQuestions : activeDocuments[0].suggested_questions,
1680
+ onSuggestion: (q) => {
1681
+ setDocIntroSent(true);
1682
+ setInputValue(q);
1683
+ setTimeout(() => sendMessage(q), 0);
1684
+ }
1685
+ }
1686
+ ),
1687
+ currentFieldUpdates && mode === "agent" && /* @__PURE__ */ jsx(
1688
+ InvoicePreview,
1689
+ {
1690
+ fieldUpdates: currentFieldUpdates,
1691
+ resolvedLabels,
1692
+ onSave: handleSave,
1693
+ onDiscard: handleDiscard,
1694
+ onSubmit: handleSubmit
1695
+ }
1696
+ )
1697
+ ] })
1698
+ }
1699
+ ),
1700
+ mode === "doc_qa" && !activeDocument && activeDocuments.length === 0 && /* @__PURE__ */ jsxs("div", { className: "chatBot--doc-upload-area", children: [
1701
+ /* @__PURE__ */ jsx(
1702
+ DocUpload,
1703
+ {
1704
+ onUploadComplete: (docs) => {
1705
+ if (docs.length === 1 && (!activeDocuments || activeDocuments.length === 0)) {
1706
+ handleDocUploadComplete(docs[0]);
1707
+ } else {
1708
+ handleMultiDocUploadComplete(docs);
1709
+ }
1710
+ },
1711
+ onUploadError: handleDocUploadError,
1712
+ uploadDocument: handleDocUpload,
1713
+ uploadDocuments: handleMultiDocUpload
1714
+ }
1715
+ ),
1716
+ docError && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-error", children: docError })
1717
+ ] }),
1718
+ activeDocument && activeDocuments.length === 0 && mode === "doc_qa" && ["pending", "processing", "parsing", "embedding", "indexing"].includes(activeDocument.status) && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-status-area", children: /* @__PURE__ */ jsx(
1719
+ DocStatus,
1720
+ {
1721
+ document: activeDocument,
1722
+ onReady: handleDocReady,
1723
+ onError: handleDocError,
1724
+ getStatus: async (docId) => {
1725
+ const { "x-token": token } = getToken();
1726
+ const res = await getDocumentStatus(docId, token);
1727
+ return {
1728
+ doc_id: res.doc_id,
1729
+ filename: res.filename || activeDocument.filename,
1730
+ status: res.status,
1731
+ pages: res.pages || activeDocument.pages,
1732
+ category: res.category || void 0,
1733
+ sub_category: res.sub_category || void 0,
1734
+ chunk_count: res.chunk_count || void 0,
1735
+ error: res.error || void 0,
1736
+ error_code: res.error_code || void 0
1737
+ };
1738
+ }
1739
+ },
1740
+ activeDocument.doc_id
1741
+ ) }),
1742
+ mode === "doc_qa" && activeDocuments.length > 0 && activeDocuments.some((d) => ["pending", "processing", "parsing", "embedding", "indexing"].includes(d.status)) && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-status-area chatBot--doc-status-area--multiple", children: activeDocuments.filter((d) => ["pending", "processing", "parsing", "embedding", "indexing"].includes(d.status)).map((doc) => /* @__PURE__ */ jsx(
1743
+ DocStatus,
1744
+ {
1745
+ document: doc,
1746
+ onReady: handleMultiDocReady,
1747
+ onError: handleMultiDocError,
1748
+ getStatus: async (docId) => {
1749
+ const { "x-token": token } = getToken();
1750
+ const res = await getDocumentStatus(docId, token);
1751
+ return {
1752
+ doc_id: res.doc_id,
1753
+ filename: res.filename || doc.filename,
1754
+ status: res.status,
1755
+ pages: res.pages || doc.pages,
1756
+ category: res.category || void 0,
1757
+ sub_category: res.sub_category || void 0,
1758
+ chunk_count: res.chunk_count || void 0,
1759
+ error: res.error || void 0,
1760
+ error_code: res.error_code || void 0
1761
+ };
1762
+ }
1763
+ },
1764
+ doc.doc_id
1765
+ )) }),
1766
+ docError && mode === "doc_qa" && !!(activeDocument || activeDocuments.length > 0) && /* @__PURE__ */ jsx("div", { className: "chatBot--doc-error-floating", onClick: () => setDocError(null), children: docError }),
1767
+ /* @__PURE__ */ jsx(
1768
+ ChatBotInput,
1769
+ {
1770
+ inputValue,
1771
+ isTyping,
1772
+ mode,
1773
+ formType,
1774
+ showSlashMenu,
1775
+ filteredCommands,
1776
+ slashIndex,
1777
+ textareaRef,
1778
+ onChange: handleInputChange,
1779
+ onKeyDown: handleKeyDown,
1780
+ onSend: () => sendMessage(inputValue),
1781
+ onSlashHover: setSlashIndex,
1782
+ onSlashSelect: selectCommand,
1783
+ onModeChange: handleModeChange,
1784
+ onFormTypeChange: setFormType,
1785
+ activeDocument,
1786
+ activeDocuments,
1787
+ onDocDelete: handleDocDelete,
1788
+ onDocUpload: () => {
1789
+ },
1790
+ onMultiDocDelete: handleMultiDocDelete
1791
+ }
1792
+ )
1793
+ ] }),
1794
+ !isOpen && /* @__PURE__ */ jsx(ChatBotLauncher, { onOpen: () => setIsOpen(true) })
1795
+ ] });
1796
+ };
1797
+ export {
1798
+ ACCEPTED_FILE_EXTENSIONS as A,
1799
+ ChatBot as C,
1800
+ DocIntro as D,
1801
+ ExpenseEntryTable as E,
1802
+ FORM_TYPE_LABELS as F,
1803
+ INSIGHTS as I,
1804
+ SLASH_COMMANDS as S,
1805
+ ACCEPT_ATTR as a,
1806
+ ChatBotHeader as b,
1807
+ ChatBotInput as c,
1808
+ ChatBotLauncher as d,
1809
+ ChatBotMessages as e,
1810
+ ChatBotWelcome as f,
1811
+ DocStatus as g,
1812
+ DocUpload as h,
1813
+ IcBolt as i,
1814
+ IcBox as j,
1815
+ IcCalendar as k,
1816
+ IcChevR as l,
1817
+ IcFlame as m,
1818
+ IcInvoice as n,
1819
+ IcSearch as o,
1820
+ IcTarget as p,
1821
+ IcWarning as q,
1822
+ InvoicePreview as r,
1823
+ ItemEntryTable as s,
1824
+ SUGGEST_TILES as t,
1825
+ SparkMark as u,
1826
+ SparkSvg as v,
1827
+ getFileCategory as w,
1828
+ getGreeting as x,
1829
+ getTime as y
1830
+ };
1831
+ //# sourceMappingURL=chat-bot-B1SWhIFL.esm.js.map