@zeniai/web-components 3.16.79 → 3.16.80

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 (908) hide show
  1. package/dist/ACHDetailsPage-BDOLuL0J.cjs +21 -0
  2. package/dist/ACHDetailsPage-CgSAnexf.js +160 -0
  3. package/dist/AIPerformancePage-C9EQ3p87.js +1344 -0
  4. package/dist/AIPerformancePage-CBzXfx3R.cjs +539 -0
  5. package/dist/AccountInfoPage-B6qngQDQ.cjs +18 -0
  6. package/dist/AccountInfoPage-C239tsDp.js +78 -0
  7. package/dist/AccountInfoPageContent-CBP5bVyK.cjs +149 -0
  8. package/dist/AccountInfoPageContent-CgDFcQqY.js +428 -0
  9. package/dist/AccountLockedInfoModal-CQzFFcuJ.js +125 -0
  10. package/dist/AccountLockedInfoModal-DcLuFlwR.cjs +59 -0
  11. package/dist/AccountReconDetailsDrawerPage-xtmSIQ0k.js +686 -0
  12. package/dist/AccountReconDetailsDrawerPage-yFhhBFJd.cjs +239 -0
  13. package/dist/AccountRow-BrRxbza5.js +1012 -0
  14. package/dist/AccountRow-eq87qv8l.cjs +298 -0
  15. package/dist/AccountsPromoCardStack-BT8bJkMM.cjs +207 -0
  16. package/dist/AccountsPromoCardStack-CqXbhSj4.js +664 -0
  17. package/dist/AddAddressForCardDrawer-CtCpnPqT.cjs +6 -0
  18. package/dist/AddAddressForCardDrawer-fgjjFlrb.js +82 -0
  19. package/dist/AddToWalletPage-DfB7hWI1.js +642 -0
  20. package/dist/AddToWalletPage-dUSx2NQq.cjs +344 -0
  21. package/dist/AgingReportsPage-BFv-HInL.cjs +79 -0
  22. package/dist/AgingReportsPage-DHYj512r.js +827 -0
  23. package/dist/AllUserItems-DA0CGjrP.cjs +192 -0
  24. package/dist/AllUserItems-DeSMFizX.js +979 -0
  25. package/dist/ApAgingDetailPage-B0euWKgK.cjs +46 -0
  26. package/dist/ApAgingDetailPage-DU0hQxT3.js +239 -0
  27. package/dist/AppBasePage-BR-YhSR_.js +120 -0
  28. package/dist/AppBasePage-CUXB-p9Q.cjs +71 -0
  29. package/dist/AppDrawerContent-B80zy-Gz.js +379 -0
  30. package/dist/AppDrawerContent-CQc1vn5l.cjs +91 -0
  31. package/dist/ApprovalRulesSettingsPage-By648tCr.js +145 -0
  32. package/dist/ApprovalRulesSettingsPage-DSrQCnei.cjs +47 -0
  33. package/dist/ArAgingChart-Bk8lFGmh.cjs +24 -0
  34. package/dist/ArAgingChart-TzANw6Zm.js +529 -0
  35. package/dist/ArAgingDetailPage-Be3k5wNj.cjs +46 -0
  36. package/dist/ArAgingDetailPage-C2rcOePe.js +243 -0
  37. package/dist/AttachmentView-CQLayY1e.cjs +101 -0
  38. package/dist/AttachmentView-jMWZdYNa.js +260 -0
  39. package/dist/BankAccountSection-SGI34h8u.js +398 -0
  40. package/dist/BankAccountSection-adfnI5Ry.cjs +79 -0
  41. package/dist/BankAccountWarningSection-BYhi53r4.js +110 -0
  42. package/dist/BankAccountWarningSection-BiC_ntA-.cjs +51 -0
  43. package/dist/BankConnectionsSettingsPage-BiAincYp.cjs +425 -0
  44. package/dist/BankConnectionsSettingsPage-ChDwYCek.js +1693 -0
  45. package/dist/BillDetailPage-BKwvFJHx.cjs +266 -0
  46. package/dist/BillDetailPage-CDcMpkQh.js +1798 -0
  47. package/dist/BillPayApprovalRuleDetailPage-BKogyEEg.cjs +27 -0
  48. package/dist/BillPayApprovalRuleDetailPage-CEPY5Pk4.js +247 -0
  49. package/dist/BillPayApprovalRulesPage-CL2A3R9R.js +415 -0
  50. package/dist/BillPayApprovalRulesPage-egrm_02p.cjs +235 -0
  51. package/dist/BillPayPromoPage-B7yJFb-u.cjs +84 -0
  52. package/dist/BillPayPromoPage-B9Tz3jBR.js +292 -0
  53. package/dist/BillPaySetUpPage-BBoK3gyY.cjs +42 -0
  54. package/dist/BillPaySetUpPage-Dt_bfrGH.js +409 -0
  55. package/dist/BillingSettingsPage-BWRAOscO.cjs +44 -0
  56. package/dist/BillingSettingsPage-DS50kMjn.js +336 -0
  57. package/dist/BillsBulkReviewDrawerPage-BU5zQJUR.cjs +1 -0
  58. package/dist/BillsBulkReviewDrawerPage-Btt7v1Mg.js +216 -0
  59. package/dist/BoxItem-BFUJgt2x.js +118 -0
  60. package/dist/BoxItem-CLcjkePo.cjs +53 -0
  61. package/dist/BusinessVerificationPage-CF3ZLtzs.js +716 -0
  62. package/dist/BusinessVerificationPage-WAQ4_Zk-.cjs +138 -0
  63. package/dist/BusyIndication-DoZyArpZ.cjs +9 -0
  64. package/dist/BusyIndication-vjGLS9OL.js +19 -0
  65. package/dist/CardNumberSubText-B1MkRWES.js +59 -0
  66. package/dist/CardNumberSubText-B32azsgx.cjs +21 -0
  67. package/dist/CashbackDetailPage-CCNz_alZ.cjs +285 -0
  68. package/dist/CashbackDetailPage-CPSsS7-h.js +824 -0
  69. package/dist/ChargeCardDetailPage-BDqTbXzY.js +5453 -0
  70. package/dist/ChargeCardDetailPage-BEvTqHvt.cjs +1462 -0
  71. package/dist/ChargeCardListPage-CcguXqaw.cjs +412 -0
  72. package/dist/ChargeCardListPage-yj0mhqgF.js +1797 -0
  73. package/dist/ChargeCardListTable-BxztlVb2.cjs +711 -0
  74. package/dist/ChargeCardListTable-DM6dYuPz.js +2901 -0
  75. package/dist/ChargeCardPromoPage-1mHDq9O7.cjs +222 -0
  76. package/dist/ChargeCardPromoPage-DSoQsDJK.js +816 -0
  77. package/dist/ChargeCardSetupPage--MCO7xts.cjs +36 -0
  78. package/dist/ChargeCardSetupPage-DhEITB5H.js +359 -0
  79. package/dist/ChargeCardStatementsPage-D4IFnxBa.cjs +60 -0
  80. package/dist/ChargeCardStatementsPage-tCXt7AVZ.js +243 -0
  81. package/dist/CheckDepositDrawerPage-6PfNZ8GG.js +726 -0
  82. package/dist/CheckDepositDrawerPage-Da0Jfs9X.cjs +206 -0
  83. package/dist/CollapsableReportTable-CJaoumi2.cjs +2932 -0
  84. package/dist/CollapsableReportTable-DERfLf9A.js +11758 -0
  85. package/dist/CompanyOfficerDetailsSection-CmMDQgui.js +1633 -0
  86. package/dist/CompanyOfficerDetailsSection-jidswPu0.cjs +260 -0
  87. package/dist/CompanyPassportCard-Djeo77l1.cjs +42 -0
  88. package/dist/CompanyPassportCard-ki3cq_A3.js +146 -0
  89. package/dist/CompanyPassportPage-C9UW7mV8.js +2160 -0
  90. package/dist/CompanyPassportPage-a724m52X.cjs +574 -0
  91. package/dist/CompleteProfile-BUOJ5upE.cjs +52 -0
  92. package/dist/CompleteProfile-CcjiEAtN.js +301 -0
  93. package/dist/ConfettiBurst-DSIMO4bv.cjs +1 -0
  94. package/dist/ConfettiBurst-Dq3DwwfS.js +37 -0
  95. package/dist/CreateOrEditVendorPage-CsYVqUf8.js +755 -0
  96. package/dist/CreateOrEditVendorPage-dhDqaIdB.cjs +281 -0
  97. package/dist/CreditCardPaymentDrawerPage-C1QUtunc.js +1169 -0
  98. package/dist/CreditCardPaymentDrawerPage-DRmI_lZ_.cjs +224 -0
  99. package/dist/CurrencySelectField-BiO3gap1.cjs +139 -0
  100. package/dist/CurrencySelectField-PjVnHOPO.js +348 -0
  101. package/dist/CustomerOnboardingActivationPage-BEz1pkPV.js +143 -0
  102. package/dist/CustomerOnboardingActivationPage-DG1Mq_xp.cjs +88 -0
  103. package/dist/CustomerOnboardingContainerPage-BoQBdIuG.js +7 -0
  104. package/dist/CustomerOnboardingContainerPage-Xlmo6rhF.cjs +1 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-3S6lsaCB.js +434 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-CzqwPvJJ.cjs +162 -0
  107. package/dist/CustomerOnboardingNoStepsPage-C7EvOlnr.js +424 -0
  108. package/dist/CustomerOnboardingNoStepsPage-ukkolLvi.cjs +66 -0
  109. package/dist/CustomerOnboardingPage-Clo_UlCC.js +1059 -0
  110. package/dist/CustomerOnboardingPage-DoJEHCN0.cjs +107 -0
  111. package/dist/CustomerOnboardingProductSuitePage-BEy5gk3x.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-pEtxl4_o.cjs +202 -0
  113. package/dist/Dashboard-B1tMJ_lT.js +5539 -0
  114. package/dist/Dashboard-s2xK_C8l.cjs +1551 -0
  115. package/dist/DashboardReportPage-BO1GX61I.cjs +371 -0
  116. package/dist/DashboardReportPage-CoFYSDIH.js +2536 -0
  117. package/dist/DashboardSidebarBackgroundAnimation--RYQLHEu.cjs +12 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-4ckOdfXR.js +53 -0
  119. package/dist/DepositAccTransactionItem-D_hE5qf0.cjs +76 -0
  120. package/dist/DepositAccTransactionItem-tQvZegVN.js +112 -0
  121. package/dist/DepositAccTransactionListPage-CwXktzEW.js +152 -0
  122. package/dist/DepositAccTransactionListPage-DpYChZIH.cjs +66 -0
  123. package/dist/DomesticWireDetailsPage-CoLVCZNg.cjs +21 -0
  124. package/dist/DomesticWireDetailsPage-W6hOjjFW.js +189 -0
  125. package/dist/DownloadOverlay-BSUE9cHx.js +2148 -0
  126. package/dist/DownloadOverlay-Bup1fa24.cjs +439 -0
  127. package/dist/DrawerPage-CgdtPYXN.js +208 -0
  128. package/dist/DrawerPage-D-psY9xc.cjs +118 -0
  129. package/dist/EditPeoplePage-DIj7SItK.js +392 -0
  130. package/dist/EditPeoplePage-DYv9a2Dg.cjs +55 -0
  131. package/dist/EditReimbursementDetailPage-CwFwNxA8.cjs +865 -0
  132. package/dist/EditReimbursementDetailPage-Q2e7iDtu.js +4530 -0
  133. package/dist/EmptySearchResults-9RiVaS4w.js +70 -0
  134. package/dist/EmptySearchResults-SViOfGA0.cjs +46 -0
  135. package/dist/EntityDetailPage-B4Lud2ZO.cjs +18 -0
  136. package/dist/EntityDetailPage-XsEIg05w.js +82 -0
  137. package/dist/EntitySummarySection-CapY7fEV.cjs +149 -0
  138. package/dist/EntitySummarySection-CsXlmDFx.js +530 -0
  139. package/dist/ExpenseAutomationOverviewPage-BovRxNWZ.cjs +281 -0
  140. package/dist/ExpenseAutomationOverviewPage-CVe0vhrD.js +806 -0
  141. package/dist/ExpenseAutomationPage-D6r_A_CD.js +11544 -0
  142. package/dist/ExpenseAutomationPage-DkGh4HXn.cjs +1650 -0
  143. package/dist/ExpressPayPage-C6b1fiyD.js +1136 -0
  144. package/dist/ExpressPayPage-DdgL3DZR.cjs +168 -0
  145. package/dist/FeaturePreviewPage-09ijSJHv.cjs +11 -0
  146. package/dist/FeaturePreviewPage-DOebdPqb.js +114 -0
  147. package/dist/FollowStepsSection-C3_WN8WD.cjs +390 -0
  148. package/dist/FollowStepsSection-jmyNE2Fl.js +1313 -0
  149. package/dist/GlobalReviewListPage-1uTAZ1Dm.cjs +291 -0
  150. package/dist/GlobalReviewListPage-Cx1Km5fu.js +1674 -0
  151. package/dist/InformationCardStack-BXcVAO_R.cjs +31 -0
  152. package/dist/InformationCardStack-C5bKx9vg.js +219 -0
  153. package/dist/InsightsCardStack-DIQmfbpx.cjs +79 -0
  154. package/dist/InsightsCardStack-EFoc_EWA.js +305 -0
  155. package/dist/InsightsSection-B0Rg5beY.js +97 -0
  156. package/dist/InsightsSection-CoRShOsz.cjs +27 -0
  157. package/dist/IntegrationsSettingsPage-BQmjM8Np.js +136 -0
  158. package/dist/IntegrationsSettingsPage-Bg2gxvTp.cjs +57 -0
  159. package/dist/InternationalWireSwiftDetailsPage-ChSGHFzT.js +753 -0
  160. package/dist/InternationalWireSwiftDetailsPage-D_J8le9Y.cjs +171 -0
  161. package/dist/InternationalWireVerificationPage-D1v_9qoO.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-D41gWYDb.js +877 -0
  163. package/dist/InviteFormPage-CltJ2XYv.js +873 -0
  164. package/dist/InviteFormPage-DOAkNoFY.cjs +312 -0
  165. package/dist/InvitePageListView-C5h5ATcQ.cjs +739 -0
  166. package/dist/InvitePageListView-D5OdkeEV.js +1764 -0
  167. package/dist/InvitePeoplePage-BbhhG3F9.cjs +12 -0
  168. package/dist/InvitePeoplePage-CyXnulj0.js +286 -0
  169. package/dist/InvoiceUploadSection-B2ePrdY8.js +465 -0
  170. package/dist/InvoiceUploadSection-w5FQkOQw.cjs +140 -0
  171. package/dist/IssueChargeCardPage-BCfMS2Zu.js +2875 -0
  172. package/dist/IssueChargeCardPage-BbF7838B.cjs +532 -0
  173. package/dist/LabeledAddressValue-CjmNgBCh.cjs +49 -0
  174. package/dist/LabeledAddressValue-D7udvbin.js +115 -0
  175. package/dist/LabeledAddressValueField-DMGxD86L.cjs +45 -0
  176. package/dist/LabeledAddressValueField-jlDhqmgU.js +130 -0
  177. package/dist/LabeledControlledCheckBoxField-DNmJFVpZ.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-DijvQx4w.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-B0rA7QEm.cjs +204 -0
  180. package/dist/LabeledCreatableSingleSelectField-B6Vit6ZA.js +515 -0
  181. package/dist/LabeledDocumentField-BKutugIL.cjs +41 -0
  182. package/dist/LabeledDocumentField-CbTN9aAs.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-CD6Bs8EU.js +163 -0
  184. package/dist/LabeledDropDownFormattedTextField-CHMnZgr-.cjs +59 -0
  185. package/dist/LabeledEmailInputField-B-EZ5X-H.cjs +182 -0
  186. package/dist/LabeledEmailInputField-WYlPi4tD.js +425 -0
  187. package/dist/LabeledItemWithButton-BCTGxq-B.js +74 -0
  188. package/dist/LabeledItemWithButton-BPH0PAkL.cjs +21 -0
  189. package/dist/LabeledNameField-BFj1WDtB.cjs +141 -0
  190. package/dist/LabeledNameField-CNRVWsUt.js +293 -0
  191. package/dist/LabeledSingleSelectField-BOSQLREG.cjs +136 -0
  192. package/dist/LabeledSingleSelectField-Cv0x-kLA.js +372 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-B6doSWkR.js +103 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-BJmYFVsA.cjs +38 -0
  195. package/dist/LabeledText-DRMtSE9S.cjs +42 -0
  196. package/dist/LabeledText-aSB1WzCl.js +103 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-JM_qck7n.cjs +229 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-Y99F7D2f.js +572 -0
  199. package/dist/LabeledZeniRolesDropDownField-BJePp4f_.js +975 -0
  200. package/dist/LabeledZeniRolesDropDownField-iZPuiWuU.cjs +297 -0
  201. package/dist/LinkJETransactionPage-CNbLCYzA.js +406 -0
  202. package/dist/LinkJETransactionPage-CbZn8y8T.cjs +98 -0
  203. package/dist/LockCardPage-DMB-6EyM.js +2032 -0
  204. package/dist/LockCardPage-PG0fnzql.cjs +623 -0
  205. package/dist/LowBalancePopup-B1-uxtO-.cjs +34 -0
  206. package/dist/LowBalancePopup-D8MLLJa7.js +219 -0
  207. package/dist/MagicLinkACHDetailsPage-BdS3aAWw.js +39 -0
  208. package/dist/MagicLinkACHDetailsPage-CtlgHeY1.cjs +1 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-CG0a1drB.js +44 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-OhUWsT9x.cjs +1 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage-C9-ZvcKN.js +43 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-D6EeUNi3.cjs +1 -0
  213. package/dist/MagicLinkSuccessPage-BBQLFLJ9.js +59 -0
  214. package/dist/MagicLinkSuccessPage-Bor-js7x.cjs +31 -0
  215. package/dist/MagicLinkTitleSection-BVR_lDfw.js +40 -0
  216. package/dist/MagicLinkTitleSection-DwUPdMgG.cjs +17 -0
  217. package/dist/MailingDetailsSection-CKGnAeNh.cjs +21 -0
  218. package/dist/MailingDetailsSection-DZi-O94-.js +74 -0
  219. package/dist/MatchingOperatorDropdown-LP5jSrgx.js +572 -0
  220. package/dist/MatchingOperatorDropdown-MHsV1Y_J.cjs +130 -0
  221. package/dist/Menu-DGwHJlS-.js +110 -0
  222. package/dist/Menu-Dq15cEqB.cjs +17 -0
  223. package/dist/MoreMenuButton-CSF5sy4N.cjs +167 -0
  224. package/dist/MoreMenuButton-DvFN0Xmg.js +569 -0
  225. package/dist/MyBankConnectionsSettingsPage-BYTxFTOW.js +296 -0
  226. package/dist/MyBankConnectionsSettingsPage-BkqbFgNn.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-CUvKbnux.js +168 -0
  228. package/dist/MyPendingActivationChargeCardListPage-D-KO706d.cjs +6 -0
  229. package/dist/MyProfileSettingsPage-BHnImAny.js +641 -0
  230. package/dist/MyProfileSettingsPage-DgrEN3jW.cjs +85 -0
  231. package/dist/NavBarWithPicker-Q739fT8-.js +106 -0
  232. package/dist/NavBarWithPicker-dbjxmktu.cjs +30 -0
  233. package/dist/NavigationArrow-DQfX85VC.js +88 -0
  234. package/dist/NavigationArrow-u9BZL-PW.cjs +47 -0
  235. package/dist/NavigationDots-CyCjbpW-.js +44 -0
  236. package/dist/NavigationDots-CyU9vxMk.cjs +15 -0
  237. package/dist/NewGlobalMerchantPage-CzT7wrsy.js +543 -0
  238. package/dist/NewGlobalMerchantPage-Dm0Gq8_6.cjs +160 -0
  239. package/dist/NoDataChart-BAQ_MEb9.cjs +26 -0
  240. package/dist/NoDataChart-BnAshBnb.js +58 -0
  241. package/dist/NoDataTable-BhokhW6d.js +27 -0
  242. package/dist/NoDataTable-D6jBtC0O.cjs +8 -0
  243. package/dist/NotFoundPage-oMc3GnH2.cjs +46 -0
  244. package/dist/NotFoundPage-uFZMkf3D.js +71 -0
  245. package/dist/NotificationSettingsPage-BE1_MgJM.js +541 -0
  246. package/dist/NotificationSettingsPage-CFWLWyIZ.cjs +163 -0
  247. package/dist/NotificationsListConfig-C20DLOJ0.cjs +1 -0
  248. package/dist/NotificationsListConfig-CUWNEUCL.js +10 -0
  249. package/dist/NotificationsPage-BMZvKV7t.js +2664 -0
  250. package/dist/NotificationsPage-CukoXArU.cjs +685 -0
  251. package/dist/OpExByVendorPage-BuHAApyT.js +1057 -0
  252. package/dist/OpExByVendorPage-IySRmzQu.cjs +100 -0
  253. package/dist/PandLWithForecastPage-B0IiVx6D.js +563 -0
  254. package/dist/PandLWithForecastPage-CCPB3Bao.cjs +107 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-BGaLVoPy.cjs +106 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-BkfPpFae.js +623 -0
  257. package/dist/PeoplePage-Bq_f_X_P.cjs +675 -0
  258. package/dist/PeoplePage-Cj9mjcMw.js +1994 -0
  259. package/dist/ProductsCarousel-CeghhlpY.cjs +142 -0
  260. package/dist/ProductsCarousel-_jYEgpxl.js +309 -0
  261. package/dist/PromoBaseCards-8tkwl6GI.js +356 -0
  262. package/dist/PromoBaseCards-Cp9Aqy7f.cjs +218 -0
  263. package/dist/QBOConnectionDialog-CJz2SlfE.js +115 -0
  264. package/dist/QBOConnectionDialog-Cp41pVFd.cjs +51 -0
  265. package/dist/QBOSetupSection-CpfryKtp.js +167 -0
  266. package/dist/QBOSetupSection-TQy_3iFm.cjs +79 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-B8CBB3JI.js +247 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-CPW4qILD.cjs +26 -0
  269. package/dist/ReimbursementApprovalRulesPage-BsLmDz25.js +410 -0
  270. package/dist/ReimbursementApprovalRulesPage-Che6DzU5.cjs +237 -0
  271. package/dist/ReimbursementDetailPage-BMhMmoRJ.cjs +314 -0
  272. package/dist/ReimbursementDetailPage-DiG34Vur.js +1514 -0
  273. package/dist/ReimbursementPromoPage-CNZdwAl-.js +363 -0
  274. package/dist/ReimbursementPromoPage-D9q93dxx.cjs +84 -0
  275. package/dist/ReimbursementSetUpPage-CJ6TiPY2.cjs +140 -0
  276. package/dist/ReimbursementSetUpPage-Ccc4qnNZ.js +663 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-B4fLy19i.cjs +1 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-Cza64yGU.js +204 -0
  279. package/dist/ReloadCard-Cnz9ywvF.js +137 -0
  280. package/dist/ReloadCard-DrkujtlZ.cjs +26 -0
  281. package/dist/ReloadContainer-C9_UXxjN.cjs +596 -0
  282. package/dist/ReloadContainer-D5ESetpN.js +2144 -0
  283. package/dist/ReportTableViewSelector-B70dJfTV.js +679 -0
  284. package/dist/ReportTableViewSelector-CgqiQJVH.cjs +150 -0
  285. package/dist/ReportsPage-DdvNbMAj.js +1315 -0
  286. package/dist/ReportsPage-JTIWfZNj.cjs +121 -0
  287. package/dist/RevenueChart-B0CcrRHw.js +2239 -0
  288. package/dist/RevenueChart-Bj575292.cjs +280 -0
  289. package/dist/ReviewDetailsPage-BVebc63A.js +1073 -0
  290. package/dist/ReviewDetailsPage-CMqsyP49.cjs +290 -0
  291. package/dist/ReviewOverlay-BkD5aDoc.cjs +152 -0
  292. package/dist/ReviewOverlay-Dm9GTjwu.js +299 -0
  293. package/dist/RoleWithToolTip-CIwY43qH.cjs +22 -0
  294. package/dist/RoleWithToolTip-CqLSnFDx.js +72 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-BWwDY16q.js +806 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-RbJeWdKL.cjs +37 -0
  297. package/dist/ScheduleDetailsPage-CqFbh9HE.js +726 -0
  298. package/dist/ScheduleDetailsPage-DEGq1FPw.cjs +37 -0
  299. package/dist/ScheduleSequenceTable-DDYFTEg4.js +1261 -0
  300. package/dist/ScheduleSequenceTable-Oz1cLtO8.cjs +324 -0
  301. package/dist/SetUpAccountSection-BuF3A3dP.js +1468 -0
  302. package/dist/SetUpAccountSection-COOG7m_m.cjs +378 -0
  303. package/dist/SignIn-Bti0cUAH.cjs +448 -0
  304. package/dist/SignIn-CyGyU8wg.js +1075 -0
  305. package/dist/SpendManagementListViewPage-BsemI6W4.cjs +122 -0
  306. package/dist/SpendManagementListViewPage-DPUhOVZl.js +627 -0
  307. package/dist/SpendManagementPerTabPage-CP2F4USD.cjs +754 -0
  308. package/dist/SpendManagementPerTabPage-CeYdMTbj.js +2735 -0
  309. package/dist/SpendManagementSection--_I3zIcF.cjs +230 -0
  310. package/dist/SpendManagementSection--vF9XUYO.js +1043 -0
  311. package/dist/StatementItem-CiYj7XWK.js +81 -0
  312. package/dist/StatementItem-UwaQcyfk.cjs +31 -0
  313. package/dist/StatementsPage-CzNDowTB.cjs +58 -0
  314. package/dist/StatementsPage-SLgIPcxl.js +130 -0
  315. package/dist/StatusSwitcher-B8cjLZdJ.cjs +120 -0
  316. package/dist/StatusSwitcher-CAMXea4Z.js +319 -0
  317. package/dist/SubTabSwitcher-BFezBmcr.js +113 -0
  318. package/dist/SubTabSwitcher-D9nsPbyI.cjs +58 -0
  319. package/dist/SuccessAnimation-SodAlkqs.cjs +13 -0
  320. package/dist/SuccessAnimation-Z2j3IbbW.js +52 -0
  321. package/dist/SummaryCard-Bk5Eh2IR.js +25 -0
  322. package/dist/SummaryCard-D_E64uuK.cjs +1 -0
  323. package/dist/TaskDetailPage-46SC9nD8.cjs +775 -0
  324. package/dist/TaskDetailPage-CMnqRaYx.js +2533 -0
  325. package/dist/TaskListRow-DicwGMt5.js +1950 -0
  326. package/dist/TaskListRow-pGxlwla_.cjs +556 -0
  327. package/dist/TaskManagementPage-ClL2snRe.js +1935 -0
  328. package/dist/TaskManagementPage-DHcEx3jA.cjs +508 -0
  329. package/dist/TimeRangeSwitcher-Bmjn_Cby.cjs +64 -0
  330. package/dist/TimeRangeSwitcher-fGI52XTc.js +265 -0
  331. package/dist/TimeframeSwitcher-6mLqGAST.cjs +31 -0
  332. package/dist/TimeframeSwitcher-CV-bryv5.js +103 -0
  333. package/dist/TimeframeSwitcherWithToggle-CI0QhFgL.cjs +31 -0
  334. package/dist/TimeframeSwitcherWithToggle-kmZOYJwI.js +157 -0
  335. package/dist/TopExCard-B5LgmSip.cjs +38 -0
  336. package/dist/TopExCard-DeYN3ImD.js +568 -0
  337. package/dist/TopExDetailPage-BmyFCtzb.js +318 -0
  338. package/dist/TopExDetailPage-C5EkNz_-.cjs +132 -0
  339. package/dist/TransactionDetailPage-BFpvUUmz.js +5238 -0
  340. package/dist/TransactionDetailPage-CTtAj8fp.cjs +912 -0
  341. package/dist/TransactionList-CAAoJMn7.cjs +147 -0
  342. package/dist/TransactionList-JHbSuP08.js +558 -0
  343. package/dist/TransactionListBig-Bv8CEpUf.cjs +284 -0
  344. package/dist/TransactionListBig-FzOmuwBP.js +658 -0
  345. package/dist/TransactionListPage-Kkxkkd_A.js +144 -0
  346. package/dist/TransactionListPage-V5J1zsur.cjs +35 -0
  347. package/dist/TransactionVendorDetailPage-BPnC6_1C.cjs +80 -0
  348. package/dist/TransactionVendorDetailPage-m1wxsTyn.js +425 -0
  349. package/dist/TransferDrawerPage-BqfA7Kvc.cjs +362 -0
  350. package/dist/TransferDrawerPage-obzTPCDc.js +1435 -0
  351. package/dist/TreasuryOverviewPage-Bvg1wNJd.cjs +708 -0
  352. package/dist/TreasuryOverviewPage-DW68UR3w.js +1889 -0
  353. package/dist/TreasuryPromoPage-BW76YUSB.js +1123 -0
  354. package/dist/TreasuryPromoPage-ChcTUzOQ.cjs +505 -0
  355. package/dist/TreasuryStatementsPage-BDD4VO8n.js +131 -0
  356. package/dist/TreasuryStatementsPage-CKiPpsS0.cjs +58 -0
  357. package/dist/TreasuryTaxLetterPage-B2NDIt_Q.js +131 -0
  358. package/dist/TreasuryTaxLetterPage-CA6t-0oY.cjs +58 -0
  359. package/dist/TrendChart-D5CYCZnh.js +333 -0
  360. package/dist/TrendChart-DtUobSnj.cjs +16 -0
  361. package/dist/TrendWithTransactions-ClfQ9JiI.cjs +116 -0
  362. package/dist/TrendWithTransactions-DoCnDpHm.js +346 -0
  363. package/dist/UncategorizedAccountsMappingPage-DX_TBAhJ.js +1159 -0
  364. package/dist/UncategorizedAccountsMappingPage-R-xlI3qJ.cjs +244 -0
  365. package/dist/UnitIntegrationPage-DZfp553j.js +405 -0
  366. package/dist/UnitIntegrationPage-TUwrKu67.cjs +67 -0
  367. package/dist/UploadAdditionalDocumentOverlay-BqO1S9_p.js +211 -0
  368. package/dist/UploadAdditionalDocumentOverlay-vDRkXkit.cjs +38 -0
  369. package/dist/Vendor2FAPopup-BIXcUkPb.cjs +1 -0
  370. package/dist/Vendor2FAPopup-BmT-gcIz.js +69 -0
  371. package/dist/VendorACHDetailsPage-CQ7Hq4OS.js +43 -0
  372. package/dist/VendorACHDetailsPage-DPFSpFx8.cjs +1 -0
  373. package/dist/VendorDetailPage-Cs6xk6eD.js +1236 -0
  374. package/dist/VendorDetailPage-VG3ufiR9.cjs +257 -0
  375. package/dist/VendorDomesticWireDetailsPage-8mY07nVg.js +53 -0
  376. package/dist/VendorDomesticWireDetailsPage-C0Cmjbhz.cjs +1 -0
  377. package/dist/VendorFiling1099EditablePage-CAFeI80I.js +842 -0
  378. package/dist/VendorFiling1099EditablePage-DIiK_SIJ.cjs +175 -0
  379. package/dist/VendorFirstReviewPage-ACNdg13I.js +2748 -0
  380. package/dist/VendorFirstReviewPage-Cpc6nErU.cjs +730 -0
  381. package/dist/VendorInternationalWireDetailsPage-B-mAH-5D.cjs +152 -0
  382. package/dist/VendorInternationalWireDetailsPage-BpkamVMK.js +968 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-BQnjn6to.cjs +1 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-Gvr65ujG.js +52 -0
  385. package/dist/VendorsAccountsSection-AmC5VwVD.js +279 -0
  386. package/dist/VendorsAccountsSection-CeLH5bow.cjs +68 -0
  387. package/dist/VerifyDevice-CIm8-ynJ.cjs +112 -0
  388. package/dist/VerifyDevice-PHsuiYk_.js +298 -0
  389. package/dist/VideoPlayer-Bv-k0Uzs.cjs +77 -0
  390. package/dist/VideoPlayer-DSqyhtMK.js +169 -0
  391. package/dist/VideoPopup-BcGkTYtT.js +60 -0
  392. package/dist/VideoPopup-Bd9NRBYw.cjs +31 -0
  393. package/dist/WarningsDrawerPage-BMxsT694.js +228 -0
  394. package/dist/WarningsDrawerPage-DGljv0kz.cjs +92 -0
  395. package/dist/ZeniAccountDetailPage-Cscoqmqs.cjs +300 -0
  396. package/dist/ZeniAccountDetailPage-CvVIdc-T.js +907 -0
  397. package/dist/ZeniAccountListViewPage-C9gvRMVk.cjs +441 -0
  398. package/dist/ZeniAccountListViewPage-D8RyYP_F.js +1078 -0
  399. package/dist/ZeniAccountNavBarPieces-DDhtuK0w.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-DN7XGX4V.js +89 -0
  401. package/dist/ZeniAccountPromoPage-CEKTsHq2.cjs +184 -0
  402. package/dist/ZeniAccountPromoPage-DtkPkWS_.js +522 -0
  403. package/dist/ZeniAccountSetupPage-Bh2Axmqo.cjs +36 -0
  404. package/dist/ZeniAccountSetupPage-NDzdHEb2.js +309 -0
  405. package/dist/ZeniAvatar-Cw7Vb9gd.js +34 -0
  406. package/dist/ZeniAvatar-DZ1su6A4.cjs +13 -0
  407. package/dist/ZeniCopyright-B7ZHNhS8.cjs +1 -0
  408. package/dist/ZeniCopyright-C2Et8K0x.js +9 -0
  409. package/dist/ZeniDatePicker-BVrXDRQt.cjs +187 -0
  410. package/dist/ZeniDatePicker-DeFMZ71M.js +386 -0
  411. package/dist/ZeniTransferAmountSlider-CqmP6evP.cjs +63 -0
  412. package/dist/ZeniTransferAmountSlider-D7NLq8nU.js +215 -0
  413. package/dist/analyticsHelper-CaFa35yP.js +65 -0
  414. package/dist/analyticsHelper-DAXMzR87.cjs +1 -0
  415. package/dist/calculateSize-CSC3t2E9.js +22 -0
  416. package/dist/calculateSize-DELeQrMR.cjs +1 -0
  417. package/dist/chartTypes-D3stzk-w.js +47 -0
  418. package/dist/chartTypes-DaaB6jXU.cjs +1 -0
  419. package/dist/cockpit.cjs.js +2 -2
  420. package/dist/cockpit.esm.js +15 -15
  421. package/dist/common-CZHHGTEB.cjs +1 -0
  422. package/dist/common-DcGszA_P.js +22 -0
  423. package/dist/commonDimensions-DP_SFwFq.js +13 -0
  424. package/dist/commonDimensions-Zp3mvcjt.cjs +1 -0
  425. package/dist/components/spendManagement/treasury/TreasuryListTable.d.ts +1 -2
  426. package/dist/components/spendManagement/treasury/TreasurySetupPage.d.ts +1 -2
  427. package/dist/components/spendManagement/treasury/TreasuryTransactionItem.d.ts +1 -1
  428. package/dist/detailCommon-4QGRPasa.cjs +38 -0
  429. package/dist/detailCommon-Cz5amAEd.js +124 -0
  430. package/dist/downloadPdf-BEpDZsHw.js +32 -0
  431. package/dist/downloadPdf-XYrPc-qn.cjs +1 -0
  432. package/dist/index-CTjYJrsF.js +92110 -0
  433. package/dist/index-DyoGf8RV.cjs +21096 -0
  434. package/dist/index.cjs.js +1 -1
  435. package/dist/index.esm.js +1 -1
  436. package/dist/mapLoadingInProgressToTreeNode-9Bg2UmOc.js +25 -0
  437. package/dist/mapLoadingInProgressToTreeNode-euai2FIW.cjs +1 -0
  438. package/dist/mapSectionWithAcOnlyToTreeNode-CX_eX5d0.cjs +1 -0
  439. package/dist/mapSectionWithAcOnlyToTreeNode-CrGK4Cl1.js +388 -0
  440. package/dist/mapSpacerToTreeNode-BeWjPZB6.cjs +1 -0
  441. package/dist/mapSpacerToTreeNode-Dpahky1g.js +25 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-CMWoLq42.cjs +1 -0
  443. package/dist/mapTimeframeBalancesToTreeNode-CsP3EcMf.cjs +1 -0
  444. package/dist/mapTimeframeBalancesToTreeNode-DD94NO-L.js +24 -0
  445. package/dist/mapTimeframeBalancesToTreeNode-DGNk2hE1.js +24 -0
  446. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CJYVSL83.js +32 -0
  447. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-vYBN38aN.cjs +1 -0
  448. package/dist/sectionColor-BDE0jHZn.cjs +1 -0
  449. package/dist/sectionColor-hMLA_-ac.js +32 -0
  450. package/dist/toCOABalancesWithID-DgTeUCXd.cjs +1 -0
  451. package/dist/toCOABalancesWithID-iOGWxWc5.js +8 -0
  452. package/dist/toChartData-BEJwj1pL.js +76 -0
  453. package/dist/toChartData-CwpfKte5.cjs +1 -0
  454. package/dist/uploadAttachment-CWYfEvOg.cjs +286 -0
  455. package/dist/uploadAttachment-Cs4cwF3u.js +952 -0
  456. package/dist/zeniDatePicker.helpers-C3dm3u9_.js +14 -0
  457. package/dist/zeniDatePicker.helpers-CtxQVVUk.cjs +1 -0
  458. package/package.json +3 -3
  459. package/dist/ACHDetailsPage-BRSlJwqs.js +0 -160
  460. package/dist/ACHDetailsPage-XII7n7dI.cjs +0 -21
  461. package/dist/AIPerformancePage-C31XiKdz.cjs +0 -539
  462. package/dist/AIPerformancePage-XNqYcF29.js +0 -1344
  463. package/dist/AccountInfoPage-BnvX9jdy.js +0 -78
  464. package/dist/AccountInfoPage-DDEY9iOc.cjs +0 -18
  465. package/dist/AccountInfoPageContent-B4UkyTIz.cjs +0 -149
  466. package/dist/AccountInfoPageContent-CAyORE5U.js +0 -428
  467. package/dist/AccountLockedInfoModal-DZLGadJK.cjs +0 -59
  468. package/dist/AccountLockedInfoModal-DjE43fjJ.js +0 -125
  469. package/dist/AccountReconDetailsDrawerPage-BT0_jWUQ.js +0 -686
  470. package/dist/AccountReconDetailsDrawerPage-BzhY_w0o.cjs +0 -239
  471. package/dist/AccountRow-CfcZslZQ.js +0 -1012
  472. package/dist/AccountRow-OG1stskK.cjs +0 -298
  473. package/dist/AccountsPromoCardStack-71Z1ShCr.js +0 -664
  474. package/dist/AccountsPromoCardStack-DqYGMWJp.cjs +0 -207
  475. package/dist/AddAddressForCardDrawer-J6QJe65T.cjs +0 -6
  476. package/dist/AddAddressForCardDrawer-mIhyKbfP.js +0 -82
  477. package/dist/AddToWalletPage-C3Fft8ID.cjs +0 -344
  478. package/dist/AddToWalletPage-DpI703gV.js +0 -642
  479. package/dist/AgingReportsPage-DZ1ItBFo.js +0 -827
  480. package/dist/AgingReportsPage-jmTucheg.cjs +0 -79
  481. package/dist/AllUserItems-BTi5ltiz.cjs +0 -192
  482. package/dist/AllUserItems-DQJIZnFB.js +0 -979
  483. package/dist/ApAgingDetailPage-B73yWZ3r.cjs +0 -46
  484. package/dist/ApAgingDetailPage-Ss6FyxZs.js +0 -239
  485. package/dist/AppBasePage-BR9PMQS3.cjs +0 -71
  486. package/dist/AppBasePage-QrV7bdjK.js +0 -120
  487. package/dist/AppDrawerContent-BfqVdsaO.cjs +0 -91
  488. package/dist/AppDrawerContent-DRXpxI_0.js +0 -379
  489. package/dist/ApprovalRulesSettingsPage-D6Q1ch1G.js +0 -145
  490. package/dist/ApprovalRulesSettingsPage-rUJXQ61c.cjs +0 -47
  491. package/dist/ArAgingChart-CsWLLzcA.cjs +0 -24
  492. package/dist/ArAgingChart-DIRyNEOD.js +0 -529
  493. package/dist/ArAgingDetailPage-C_UUT1-H.js +0 -243
  494. package/dist/ArAgingDetailPage-CalO2Pt3.cjs +0 -46
  495. package/dist/AttachmentView-74ZUOMyL.cjs +0 -101
  496. package/dist/AttachmentView-DXkfcGVj.js +0 -260
  497. package/dist/BankAccountSection-C6CMi36-.cjs +0 -79
  498. package/dist/BankAccountSection-DmA4hLBj.js +0 -398
  499. package/dist/BankAccountWarningSection-BV04UTXU.js +0 -110
  500. package/dist/BankAccountWarningSection-DZwBWIjN.cjs +0 -51
  501. package/dist/BankConnectionsSettingsPage-A7Npbvuz.js +0 -1693
  502. package/dist/BankConnectionsSettingsPage-D0XyaD7S.cjs +0 -425
  503. package/dist/BillDetailPage-BpH5T6KD.cjs +0 -266
  504. package/dist/BillDetailPage-DBrOeCD-.js +0 -1798
  505. package/dist/BillPayApprovalRuleDetailPage-CTgi_oS1.cjs +0 -27
  506. package/dist/BillPayApprovalRuleDetailPage-yenDI8CJ.js +0 -247
  507. package/dist/BillPayApprovalRulesPage-BZSAF9Ec.cjs +0 -235
  508. package/dist/BillPayApprovalRulesPage-Bb2Djeta.js +0 -415
  509. package/dist/BillPayPromoPage-BnZ7Nhe4.cjs +0 -84
  510. package/dist/BillPayPromoPage-DwtuiBll.js +0 -292
  511. package/dist/BillPaySetUpPage-BkIqCRXV.cjs +0 -42
  512. package/dist/BillPaySetUpPage-Bycc2vl6.js +0 -409
  513. package/dist/BillingSettingsPage-7ZwrvmyR.js +0 -336
  514. package/dist/BillingSettingsPage-BxcB91z-.cjs +0 -44
  515. package/dist/BillsBulkReviewDrawerPage-BDUphV1w.cjs +0 -1
  516. package/dist/BillsBulkReviewDrawerPage-BYSH34dH.js +0 -216
  517. package/dist/BoxItem-D_MPdUZN.cjs +0 -53
  518. package/dist/BoxItem-DaDiWKc1.js +0 -118
  519. package/dist/BusinessVerificationPage-XKSqjr7B.js +0 -716
  520. package/dist/BusinessVerificationPage-_SHrdD5r.cjs +0 -138
  521. package/dist/BusyIndication-CRBxoLLD.js +0 -19
  522. package/dist/BusyIndication-CvgOXDZd.cjs +0 -9
  523. package/dist/CardNumberSubText-CMSzxXOT.js +0 -59
  524. package/dist/CardNumberSubText-UtiiNraN.cjs +0 -21
  525. package/dist/CashbackDetailPage-0ew99HXA.cjs +0 -285
  526. package/dist/CashbackDetailPage-d3Mt7Ots.js +0 -824
  527. package/dist/ChargeCardDetailPage-BcJ8QWGe.js +0 -5453
  528. package/dist/ChargeCardDetailPage-BqOea0fd.cjs +0 -1462
  529. package/dist/ChargeCardListPage-3WCS7ebq.js +0 -1797
  530. package/dist/ChargeCardListPage-BDSA2Y4_.cjs +0 -412
  531. package/dist/ChargeCardListTable-E2CDI6Hd.js +0 -2901
  532. package/dist/ChargeCardListTable-wVvRzXvF.cjs +0 -711
  533. package/dist/ChargeCardPromoPage-BrmlP5KB.js +0 -816
  534. package/dist/ChargeCardPromoPage-BztGpz2_.cjs +0 -222
  535. package/dist/ChargeCardSetupPage-CmlDYdr7.cjs +0 -36
  536. package/dist/ChargeCardSetupPage-DKbEWcV-.js +0 -359
  537. package/dist/ChargeCardStatementsPage-BVPpCjEY.cjs +0 -60
  538. package/dist/ChargeCardStatementsPage-COowwmie.js +0 -243
  539. package/dist/CheckDepositDrawerPage-Dd0x5XjG.js +0 -726
  540. package/dist/CheckDepositDrawerPage-DptEp5Ev.cjs +0 -206
  541. package/dist/CollapsableReportTable-CgQNqBlJ.cjs +0 -2932
  542. package/dist/CollapsableReportTable-uZ5BMmAT.js +0 -11758
  543. package/dist/CompanyOfficerDetailsSection-0jdaykB9.js +0 -1633
  544. package/dist/CompanyOfficerDetailsSection-DFZvHlS0.cjs +0 -260
  545. package/dist/CompanyPassportCard-Cn1ILdmY.js +0 -146
  546. package/dist/CompanyPassportCard-gKM9j5LJ.cjs +0 -42
  547. package/dist/CompanyPassportPage-8c9_cBCN.cjs +0 -574
  548. package/dist/CompanyPassportPage-Db-VCLfG.js +0 -2160
  549. package/dist/CompleteProfile-B5jAltvl.cjs +0 -52
  550. package/dist/CompleteProfile-BYRtAaTM.js +0 -301
  551. package/dist/ConfettiBurst-BLDHX6QF.js +0 -37
  552. package/dist/ConfettiBurst-Bc3UM9Mb.cjs +0 -1
  553. package/dist/CreateOrEditVendorPage-BPJrcvdK.js +0 -755
  554. package/dist/CreateOrEditVendorPage-CCeoE_qt.cjs +0 -281
  555. package/dist/CreditCardPaymentDrawerPage-B4PvI5CC.js +0 -1169
  556. package/dist/CreditCardPaymentDrawerPage-D53tPJ2g.cjs +0 -224
  557. package/dist/CurrencySelectField-4WS2G9Uz.js +0 -348
  558. package/dist/CurrencySelectField-DFV6sLDp.cjs +0 -139
  559. package/dist/CustomerOnboardingActivationPage-1oErYRMd.cjs +0 -88
  560. package/dist/CustomerOnboardingActivationPage-BwlM3VcA.js +0 -143
  561. package/dist/CustomerOnboardingContainerPage-8R8UVNCb.js +0 -7
  562. package/dist/CustomerOnboardingContainerPage-hOox9Qtm.cjs +0 -1
  563. package/dist/CustomerOnboardingDetailPageSkeleton-BqvOl0zG.js +0 -434
  564. package/dist/CustomerOnboardingDetailPageSkeleton-CLOYVz0c.cjs +0 -162
  565. package/dist/CustomerOnboardingNoStepsPage-BXr2ZxxB.js +0 -424
  566. package/dist/CustomerOnboardingNoStepsPage-C7OdheZW.cjs +0 -66
  567. package/dist/CustomerOnboardingPage-DOv_WLRc.js +0 -1059
  568. package/dist/CustomerOnboardingPage-DpSaH5bV.cjs +0 -107
  569. package/dist/CustomerOnboardingProductSuitePage-20m5lt1g.js +0 -348
  570. package/dist/CustomerOnboardingProductSuitePage-BxrHf36N.cjs +0 -202
  571. package/dist/Dashboard-BsvJ3_qQ.cjs +0 -1551
  572. package/dist/Dashboard-CyYFv0eB.js +0 -5539
  573. package/dist/DashboardReportPage-CXCCzzge.js +0 -2536
  574. package/dist/DashboardReportPage-DIO7N-kw.cjs +0 -371
  575. package/dist/DashboardSidebarBackgroundAnimation-BiHIa2uM.js +0 -53
  576. package/dist/DashboardSidebarBackgroundAnimation-cClEyyz2.cjs +0 -12
  577. package/dist/DepositAccTransactionItem-5q6G3XBs.js +0 -112
  578. package/dist/DepositAccTransactionItem-BmKcPAYj.cjs +0 -76
  579. package/dist/DepositAccTransactionListPage-Btpq3OiZ.js +0 -152
  580. package/dist/DepositAccTransactionListPage-CBsSeDm7.cjs +0 -66
  581. package/dist/DomesticWireDetailsPage-DdrFtIxa.cjs +0 -21
  582. package/dist/DomesticWireDetailsPage-_t5REvZu.js +0 -189
  583. package/dist/DownloadOverlay-CdL2QgEs.cjs +0 -439
  584. package/dist/DownloadOverlay-W_u0WkWw.js +0 -2148
  585. package/dist/DrawerPage-Boc65ulB.cjs +0 -118
  586. package/dist/DrawerPage-D2V4bqD8.js +0 -208
  587. package/dist/EditPeoplePage-BMzrd6lx.cjs +0 -55
  588. package/dist/EditPeoplePage-DtV-tZNP.js +0 -392
  589. package/dist/EditReimbursementDetailPage-C4hGoLeX.cjs +0 -865
  590. package/dist/EditReimbursementDetailPage-CN5YeWsm.js +0 -4530
  591. package/dist/EmptySearchResults-CeJCqogF.cjs +0 -46
  592. package/dist/EmptySearchResults-IkaWNeVE.js +0 -70
  593. package/dist/EntityDetailPage-CPUr6u5S.cjs +0 -18
  594. package/dist/EntityDetailPage-u4GL_8zb.js +0 -82
  595. package/dist/EntitySummarySection-BoDYPm3S.js +0 -530
  596. package/dist/EntitySummarySection-D2UWs4-I.cjs +0 -149
  597. package/dist/ExpenseAutomationOverviewPage-BKb9sCsq.js +0 -806
  598. package/dist/ExpenseAutomationOverviewPage-DUJOK1om.cjs +0 -281
  599. package/dist/ExpenseAutomationPage-CAX-bkyw.cjs +0 -1650
  600. package/dist/ExpenseAutomationPage-ZNHzc7We.js +0 -11544
  601. package/dist/ExpressPayPage-3IeNyZ-z.js +0 -1136
  602. package/dist/ExpressPayPage-sDMeC78S.cjs +0 -168
  603. package/dist/FeaturePreviewPage-CHziLMRx.js +0 -114
  604. package/dist/FeaturePreviewPage-joLQvy70.cjs +0 -11
  605. package/dist/FollowStepsSection-CXmmtF6B.cjs +0 -390
  606. package/dist/FollowStepsSection-Q2HNlLlC.js +0 -1313
  607. package/dist/GlobalReviewListPage-CIXxXvKY.js +0 -1674
  608. package/dist/GlobalReviewListPage-DcYUUyJ5.cjs +0 -291
  609. package/dist/InformationCardStack-BIfyASu2.cjs +0 -31
  610. package/dist/InformationCardStack-BdzTFqan.js +0 -219
  611. package/dist/InsightsCardStack-DhpA8zwt.js +0 -305
  612. package/dist/InsightsCardStack-gwFoouvr.cjs +0 -79
  613. package/dist/InsightsSection-Cu3OZwEV.js +0 -97
  614. package/dist/InsightsSection-DyxEehoG.cjs +0 -27
  615. package/dist/IntegrationsSettingsPage-CAMVWjWL.js +0 -136
  616. package/dist/IntegrationsSettingsPage-VSAwogce.cjs +0 -57
  617. package/dist/InternationalWireSwiftDetailsPage-B2nB0tbZ.js +0 -753
  618. package/dist/InternationalWireSwiftDetailsPage-DbenHGBx.cjs +0 -171
  619. package/dist/InternationalWireVerificationPage-Vk7KLnvv.js +0 -877
  620. package/dist/InternationalWireVerificationPage-sSzdRkOG.cjs +0 -292
  621. package/dist/InviteFormPage-BnJyi7yJ.js +0 -873
  622. package/dist/InviteFormPage-CTV9Fn8_.cjs +0 -312
  623. package/dist/InvitePageListView-Bgln3fWR.js +0 -1764
  624. package/dist/InvitePageListView-CIzKZ2CI.cjs +0 -739
  625. package/dist/InvitePeoplePage-DpPY8mNL.js +0 -286
  626. package/dist/InvitePeoplePage-w61Rimh4.cjs +0 -12
  627. package/dist/InvoiceUploadSection-D3Fnj-DV.js +0 -465
  628. package/dist/InvoiceUploadSection-Do8tG-ED.cjs +0 -140
  629. package/dist/IssueChargeCardPage-Dfr0PYMQ.cjs +0 -532
  630. package/dist/IssueChargeCardPage-pV-NYTs7.js +0 -2875
  631. package/dist/LabeledAddressValue-9gapQbYb.cjs +0 -49
  632. package/dist/LabeledAddressValue-nluQZoVk.js +0 -115
  633. package/dist/LabeledAddressValueField-BtuOQdDr.js +0 -130
  634. package/dist/LabeledAddressValueField-DKgB-mmU.cjs +0 -45
  635. package/dist/LabeledControlledCheckBoxField-Cr9GKUHm.cjs +0 -16
  636. package/dist/LabeledControlledCheckBoxField-HXeFjyq4.js +0 -73
  637. package/dist/LabeledCreatableSingleSelectField-BsMpafeG.js +0 -515
  638. package/dist/LabeledCreatableSingleSelectField-CerB8qA7.cjs +0 -204
  639. package/dist/LabeledDocumentField-CiD49cqr.js +0 -147
  640. package/dist/LabeledDocumentField-DxRpeoiK.cjs +0 -41
  641. package/dist/LabeledDropDownFormattedTextField-3f5LykCS.cjs +0 -59
  642. package/dist/LabeledDropDownFormattedTextField-DGbQvQYL.js +0 -163
  643. package/dist/LabeledEmailInputField-CTkt-60N.cjs +0 -182
  644. package/dist/LabeledEmailInputField-Di01G2RS.js +0 -425
  645. package/dist/LabeledItemWithButton-Bx7rQe6M.js +0 -74
  646. package/dist/LabeledItemWithButton-I6KjHvEJ.cjs +0 -21
  647. package/dist/LabeledNameField-BfcgDUq3.js +0 -293
  648. package/dist/LabeledNameField-CgCQv1qZ.cjs +0 -141
  649. package/dist/LabeledSingleSelectField-Blwl-u55.js +0 -372
  650. package/dist/LabeledSingleSelectField-Dv3BuBLJ.cjs +0 -136
  651. package/dist/LabeledSingleSelectWithoutClearableField-CSPVrhho.js +0 -103
  652. package/dist/LabeledSingleSelectWithoutClearableField-DzhTeXAa.cjs +0 -38
  653. package/dist/LabeledText-C-h3Ch3J.cjs +0 -42
  654. package/dist/LabeledText-CLFVhS8U.js +0 -103
  655. package/dist/LabeledUserSingleSelectWithSubtitlesField-D6GtpFVG.js +0 -572
  656. package/dist/LabeledUserSingleSelectWithSubtitlesField-Duzp76Uf.cjs +0 -229
  657. package/dist/LabeledZeniRolesDropDownField-9vM8fIga.cjs +0 -297
  658. package/dist/LabeledZeniRolesDropDownField-CaU_eCdv.js +0 -975
  659. package/dist/LinkJETransactionPage-BTBY-mWE.cjs +0 -98
  660. package/dist/LinkJETransactionPage-Dv7SAeKn.js +0 -406
  661. package/dist/LockCardPage-CHQNJ-I8.cjs +0 -623
  662. package/dist/LockCardPage-jcel2qg3.js +0 -2032
  663. package/dist/LowBalancePopup-EkhA_6AT.js +0 -219
  664. package/dist/LowBalancePopup-Fn4VhNEf.cjs +0 -34
  665. package/dist/MagicLinkACHDetailsPage-DXhVt8Nr.cjs +0 -1
  666. package/dist/MagicLinkACHDetailsPage-T1Ni85Us.js +0 -39
  667. package/dist/MagicLinkDomesticWireDetailsPage-BicfXn6V.js +0 -44
  668. package/dist/MagicLinkDomesticWireDetailsPage-DJ3fOXkc.cjs +0 -1
  669. package/dist/MagicLinkInternationalWireDetailsPage-BK6GxeV3.cjs +0 -1
  670. package/dist/MagicLinkInternationalWireDetailsPage-Db6Vhv-8.js +0 -43
  671. package/dist/MagicLinkSuccessPage-DjPQZKJf.js +0 -59
  672. package/dist/MagicLinkSuccessPage-DnKvcZuS.cjs +0 -31
  673. package/dist/MagicLinkTitleSection-4LOJFgjO.js +0 -40
  674. package/dist/MagicLinkTitleSection-CkOT2-16.cjs +0 -17
  675. package/dist/MailingDetailsSection-Cjw0GKb0.cjs +0 -21
  676. package/dist/MailingDetailsSection-Yq8Z8hjT.js +0 -74
  677. package/dist/MatchingOperatorDropdown-D7kmsKyK.cjs +0 -130
  678. package/dist/MatchingOperatorDropdown-_ru9jFsB.js +0 -572
  679. package/dist/Menu-B6pG1Xch.cjs +0 -17
  680. package/dist/Menu-DD-nSjFN.js +0 -110
  681. package/dist/MoreMenuButton-C2eaqAdH.js +0 -569
  682. package/dist/MoreMenuButton-WpY-7Pck.cjs +0 -167
  683. package/dist/MyBankConnectionsSettingsPage--IgzBV4B.cjs +0 -110
  684. package/dist/MyBankConnectionsSettingsPage-CFgr9N1f.js +0 -296
  685. package/dist/MyPendingActivationChargeCardListPage-Cu3UCVxD.js +0 -168
  686. package/dist/MyPendingActivationChargeCardListPage-D-wO0lVJ.cjs +0 -6
  687. package/dist/MyProfileSettingsPage-6hEui0ge.js +0 -641
  688. package/dist/MyProfileSettingsPage-D79mjo6H.cjs +0 -85
  689. package/dist/NavBarWithPicker-BUPQR0oq.js +0 -106
  690. package/dist/NavBarWithPicker-DV41YaN7.cjs +0 -30
  691. package/dist/NavigationArrow-CDgtzbGP.cjs +0 -47
  692. package/dist/NavigationArrow-Pirvgg4c.js +0 -88
  693. package/dist/NavigationDots-BQBKzoo5.js +0 -44
  694. package/dist/NavigationDots-wO34f3Do.cjs +0 -15
  695. package/dist/NewGlobalMerchantPage-BVQwhPsq.js +0 -543
  696. package/dist/NewGlobalMerchantPage-bEoQllTY.cjs +0 -160
  697. package/dist/NoDataChart-BqucMYZV.cjs +0 -26
  698. package/dist/NoDataChart-CEyalznh.js +0 -58
  699. package/dist/NoDataTable-BHN0tGDO.cjs +0 -8
  700. package/dist/NoDataTable-DI8NFwzp.js +0 -27
  701. package/dist/NotFoundPage-BhTG82UU.cjs +0 -46
  702. package/dist/NotFoundPage-DntE35f-.js +0 -71
  703. package/dist/NotificationSettingsPage-B1i_AvwO.cjs +0 -163
  704. package/dist/NotificationSettingsPage-tmB0Jwr0.js +0 -541
  705. package/dist/NotificationsListConfig-CZVwC_nF.cjs +0 -1
  706. package/dist/NotificationsListConfig-DAsuSdhn.js +0 -10
  707. package/dist/NotificationsPage-CNfFzY0D.js +0 -2664
  708. package/dist/NotificationsPage-aLsJeN-_.cjs +0 -685
  709. package/dist/OpExByVendorPage-BxISyLQR.cjs +0 -100
  710. package/dist/OpExByVendorPage-CeEmugLn.js +0 -1057
  711. package/dist/PandLWithForecastPage-DSr7PnzO.cjs +0 -107
  712. package/dist/PandLWithForecastPage-DwGV6Q5D.js +0 -563
  713. package/dist/PaymentAccountSetupBillingAddressSection-BBEyCX7r.js +0 -623
  714. package/dist/PaymentAccountSetupBillingAddressSection-CflnJtGi.cjs +0 -106
  715. package/dist/PeoplePage-CDkxVH7j.cjs +0 -675
  716. package/dist/PeoplePage-CTPqx82H.js +0 -1994
  717. package/dist/ProductsCarousel-Bir9xhT1.cjs +0 -142
  718. package/dist/ProductsCarousel-DWzjb2Kp.js +0 -309
  719. package/dist/PromoBaseCards-BjtA6m47.js +0 -356
  720. package/dist/PromoBaseCards-w-L8QK3A.cjs +0 -218
  721. package/dist/QBOConnectionDialog-C60QiQQJ.js +0 -115
  722. package/dist/QBOConnectionDialog-DYf3IkoC.cjs +0 -51
  723. package/dist/QBOSetupSection-BdWmiRaH.cjs +0 -79
  724. package/dist/QBOSetupSection-C-QGWbc5.js +0 -167
  725. package/dist/ReimbursementApprovalRuleDetailPage-Bl--Vxwc.cjs +0 -26
  726. package/dist/ReimbursementApprovalRuleDetailPage-C_wwZeW4.js +0 -247
  727. package/dist/ReimbursementApprovalRulesPage-B_aS-O0q.cjs +0 -237
  728. package/dist/ReimbursementApprovalRulesPage-CgwhGzQs.js +0 -410
  729. package/dist/ReimbursementDetailPage-CF8_FxVd.cjs +0 -314
  730. package/dist/ReimbursementDetailPage-DtQzo40o.js +0 -1514
  731. package/dist/ReimbursementPromoPage-DXft_4w3.cjs +0 -84
  732. package/dist/ReimbursementPromoPage-DfRPTkW6.js +0 -363
  733. package/dist/ReimbursementSetUpPage-CA61LFHk.cjs +0 -140
  734. package/dist/ReimbursementSetUpPage-DFS2g2Kn.js +0 -663
  735. package/dist/ReimbursementsBulkReviewDrawerPage-D1IxDP8f.cjs +0 -1
  736. package/dist/ReimbursementsBulkReviewDrawerPage-r0MZyy7I.js +0 -204
  737. package/dist/ReloadCard-gyd0aB63.js +0 -137
  738. package/dist/ReloadCard-hX3bIayG.cjs +0 -26
  739. package/dist/ReloadContainer-ClfGrdpk.cjs +0 -596
  740. package/dist/ReloadContainer-CsWSzHLQ.js +0 -2144
  741. package/dist/ReportTableViewSelector-BkrgRW_a.js +0 -679
  742. package/dist/ReportTableViewSelector-sQrKWzBm.cjs +0 -150
  743. package/dist/ReportsPage-0wKN1yR-.cjs +0 -121
  744. package/dist/ReportsPage-Dhhh2cQ6.js +0 -1315
  745. package/dist/RevenueChart-BOL_4_hu.cjs +0 -280
  746. package/dist/RevenueChart-BPtwYYUq.js +0 -2239
  747. package/dist/ReviewDetailsPage-B2nyASyg.js +0 -1073
  748. package/dist/ReviewDetailsPage-CB-lxJ7k.cjs +0 -290
  749. package/dist/ReviewOverlay-CIv0FETD.js +0 -299
  750. package/dist/ReviewOverlay-DcuFLyab.cjs +0 -152
  751. package/dist/RoleWithToolTip-DM_CcztP.js +0 -72
  752. package/dist/RoleWithToolTip-DZNa9vyn.cjs +0 -22
  753. package/dist/ScheduleDetailsFixedAssetsPage-B8XzbFHF.cjs +0 -37
  754. package/dist/ScheduleDetailsFixedAssetsPage-DQc_BIB6.js +0 -806
  755. package/dist/ScheduleDetailsPage-CmnbFO_S.js +0 -726
  756. package/dist/ScheduleDetailsPage-DtuqdUn-.cjs +0 -37
  757. package/dist/ScheduleSequenceTable-DsVCNTOD.js +0 -1261
  758. package/dist/ScheduleSequenceTable-Dtzc36PS.cjs +0 -324
  759. package/dist/SetUpAccountSection-BPNDuKEo.cjs +0 -378
  760. package/dist/SetUpAccountSection-BUalo7Tq.js +0 -1468
  761. package/dist/SignIn-BA8WHru1.js +0 -1075
  762. package/dist/SignIn-EoCgLjq4.cjs +0 -448
  763. package/dist/SpendManagementListViewPage-BrZt1mqc.cjs +0 -122
  764. package/dist/SpendManagementListViewPage-DXuqaDjH.js +0 -627
  765. package/dist/SpendManagementPerTabPage-CDFrlwkR.js +0 -2735
  766. package/dist/SpendManagementPerTabPage-DSdklui1.cjs +0 -754
  767. package/dist/SpendManagementSection-Bdq6p62S.cjs +0 -230
  768. package/dist/SpendManagementSection-zODv0xes.js +0 -1043
  769. package/dist/StatementItem-BsdMEaO-.cjs +0 -31
  770. package/dist/StatementItem-Dj_J9ndE.js +0 -81
  771. package/dist/StatementsPage-BPTKSeNZ.js +0 -130
  772. package/dist/StatementsPage-DT14Titr.cjs +0 -58
  773. package/dist/StatusSwitcher-COzzoXsT.cjs +0 -120
  774. package/dist/StatusSwitcher-DlzqqqVF.js +0 -319
  775. package/dist/SubTabSwitcher-ChsyHIvd.js +0 -113
  776. package/dist/SubTabSwitcher-DWRkWEH7.cjs +0 -58
  777. package/dist/SuccessAnimation-BocfjumG.js +0 -52
  778. package/dist/SuccessAnimation-DLyA-39B.cjs +0 -13
  779. package/dist/SummaryCard-CVqRh9b3.js +0 -25
  780. package/dist/SummaryCard-D-InceN3.cjs +0 -1
  781. package/dist/TaskDetailPage-BVyVMGbo.cjs +0 -775
  782. package/dist/TaskDetailPage-BuKU_O0S.js +0 -2533
  783. package/dist/TaskListRow-C2eddxen.js +0 -1950
  784. package/dist/TaskListRow-DjgSyduE.cjs +0 -556
  785. package/dist/TaskManagementPage-BNMndHVN.cjs +0 -508
  786. package/dist/TaskManagementPage-CTudz_Vk.js +0 -1935
  787. package/dist/TimeRangeSwitcher-CmBVPOr2.cjs +0 -64
  788. package/dist/TimeRangeSwitcher-DWm6TkQ4.js +0 -265
  789. package/dist/TimeframeSwitcher-2ewGz-_l.cjs +0 -31
  790. package/dist/TimeframeSwitcher-C6UQHuWn.js +0 -103
  791. package/dist/TimeframeSwitcherWithToggle-BnWOinMF.cjs +0 -31
  792. package/dist/TimeframeSwitcherWithToggle-DmQK2XGf.js +0 -157
  793. package/dist/TopExCard-BCaOe3p9.js +0 -568
  794. package/dist/TopExCard-DlZrCuqT.cjs +0 -38
  795. package/dist/TopExDetailPage-DhK8c8kf.cjs +0 -132
  796. package/dist/TopExDetailPage-DhUFtaiJ.js +0 -318
  797. package/dist/TransactionDetailPage-Cql-Hr3x.cjs +0 -912
  798. package/dist/TransactionDetailPage-DSKZHna6.js +0 -5238
  799. package/dist/TransactionList-DDZQpuc4.js +0 -558
  800. package/dist/TransactionList-DaGmNl6h.cjs +0 -147
  801. package/dist/TransactionListBig-B6fhhSHD.js +0 -658
  802. package/dist/TransactionListBig-Bi3T2e59.cjs +0 -284
  803. package/dist/TransactionListPage-DEuxHkmw.cjs +0 -35
  804. package/dist/TransactionListPage-DMg9OyWQ.js +0 -144
  805. package/dist/TransactionVendorDetailPage-M025Cxh6.cjs +0 -80
  806. package/dist/TransactionVendorDetailPage-XIWkQY0V.js +0 -425
  807. package/dist/TransferDrawerPage-BcLb-9Ef.cjs +0 -362
  808. package/dist/TransferDrawerPage-WRim2kkj.js +0 -1435
  809. package/dist/TreasuryOverviewPage-BDNqPwfc.js +0 -1889
  810. package/dist/TreasuryOverviewPage-DzwfjK3s.cjs +0 -708
  811. package/dist/TreasuryPromoPage-BM9ZiHv0.cjs +0 -505
  812. package/dist/TreasuryPromoPage-C3D3K9K8.js +0 -1123
  813. package/dist/TreasuryStatementsPage-4xH5chpf.js +0 -131
  814. package/dist/TreasuryStatementsPage-CK0jfMLs.cjs +0 -58
  815. package/dist/TreasuryTaxLetterPage-BkQwGTIk.cjs +0 -58
  816. package/dist/TreasuryTaxLetterPage-CT1960GT.js +0 -131
  817. package/dist/TrendChart-BwlRBlN6.cjs +0 -16
  818. package/dist/TrendChart-XPJKLPpy.js +0 -333
  819. package/dist/TrendWithTransactions-CgcyjGme.js +0 -346
  820. package/dist/TrendWithTransactions-DnrRm8Pk.cjs +0 -116
  821. package/dist/UncategorizedAccountsMappingPage-S5XGFZ75.cjs +0 -244
  822. package/dist/UncategorizedAccountsMappingPage-iEga9DX1.js +0 -1159
  823. package/dist/UnitIntegrationPage-DleewZ7R.js +0 -405
  824. package/dist/UnitIntegrationPage-Vkj2F1Nz.cjs +0 -67
  825. package/dist/UploadAdditionalDocumentOverlay-CIAs9khE.cjs +0 -38
  826. package/dist/UploadAdditionalDocumentOverlay-CtzdkHBS.js +0 -211
  827. package/dist/Vendor2FAPopup-CO-FHaEn.js +0 -69
  828. package/dist/Vendor2FAPopup-CpmJuUN3.cjs +0 -1
  829. package/dist/VendorACHDetailsPage-D1YqGbwb.js +0 -43
  830. package/dist/VendorACHDetailsPage-DjF1JhuY.cjs +0 -1
  831. package/dist/VendorDetailPage-BBafq9Ip.js +0 -1236
  832. package/dist/VendorDetailPage-C3IcdKog.cjs +0 -257
  833. package/dist/VendorDomesticWireDetailsPage-CpXzydR0.cjs +0 -1
  834. package/dist/VendorDomesticWireDetailsPage-D5u3WUYv.js +0 -53
  835. package/dist/VendorFiling1099EditablePage-BKxhNzwZ.cjs +0 -175
  836. package/dist/VendorFiling1099EditablePage-CiZuQYmG.js +0 -842
  837. package/dist/VendorFirstReviewPage-BRtrFwRm.js +0 -2748
  838. package/dist/VendorFirstReviewPage-DvDlIgzj.cjs +0 -730
  839. package/dist/VendorInternationalWireDetailsPage-DYcT9Jx_.cjs +0 -152
  840. package/dist/VendorInternationalWireDetailsPage-xOMyRJwt.js +0 -968
  841. package/dist/VendorInternationalWireSwiftDetailsPage-BMOulCAU.cjs +0 -1
  842. package/dist/VendorInternationalWireSwiftDetailsPage-JWO3bCD0.js +0 -52
  843. package/dist/VendorsAccountsSection-B0BO5QGN.js +0 -279
  844. package/dist/VendorsAccountsSection-BMo-hznr.cjs +0 -68
  845. package/dist/VerifyDevice-BQgQIcea.cjs +0 -112
  846. package/dist/VerifyDevice-Bo_F_c4A.js +0 -298
  847. package/dist/VideoPlayer-CUGS3m6H.js +0 -169
  848. package/dist/VideoPlayer-CrQUoCC0.cjs +0 -77
  849. package/dist/VideoPopup-BMWnA-dU.js +0 -60
  850. package/dist/VideoPopup-BPpNHkiR.cjs +0 -31
  851. package/dist/WarningsDrawerPage-BWRweAhn.cjs +0 -92
  852. package/dist/WarningsDrawerPage-D7zCdGyN.js +0 -228
  853. package/dist/ZeniAccountDetailPage-C_NLHDiC.cjs +0 -300
  854. package/dist/ZeniAccountDetailPage-lCp7_rJa.js +0 -907
  855. package/dist/ZeniAccountListViewPage-18eRf4k5.js +0 -1078
  856. package/dist/ZeniAccountListViewPage-BzgtyLAQ.cjs +0 -441
  857. package/dist/ZeniAccountNavBarPieces-6eoFY_qi.js +0 -89
  858. package/dist/ZeniAccountNavBarPieces-B4SXxOl2.cjs +0 -14
  859. package/dist/ZeniAccountPromoPage-BWIi9iJ9.js +0 -522
  860. package/dist/ZeniAccountPromoPage-_TGpFEb8.cjs +0 -184
  861. package/dist/ZeniAccountSetupPage-5oNJ6U2w.js +0 -309
  862. package/dist/ZeniAccountSetupPage-LPKTHbPJ.cjs +0 -36
  863. package/dist/ZeniAvatar-C5d2n0-x.cjs +0 -13
  864. package/dist/ZeniAvatar-DJ9v4lOs.js +0 -34
  865. package/dist/ZeniCopyright-BB1UYztl.js +0 -9
  866. package/dist/ZeniCopyright-CAokCttG.cjs +0 -1
  867. package/dist/ZeniDatePicker-DfA_XDMD.cjs +0 -187
  868. package/dist/ZeniDatePicker-Dw-vzcZq.js +0 -386
  869. package/dist/ZeniTransferAmountSlider-872fSuti.js +0 -215
  870. package/dist/ZeniTransferAmountSlider-CfaDoHU-.cjs +0 -63
  871. package/dist/analyticsHelper-CEM7tfat.js +0 -65
  872. package/dist/analyticsHelper-D5i8Rv-8.cjs +0 -1
  873. package/dist/calculateSize-BKd2z8Aj.js +0 -22
  874. package/dist/calculateSize-C-6zKZRy.cjs +0 -1
  875. package/dist/chartTypes-BV2ny_rx.cjs +0 -1
  876. package/dist/chartTypes-Dz8ojXdE.js +0 -47
  877. package/dist/common-BdJyLqK-.js +0 -22
  878. package/dist/common-DMN3TlXE.cjs +0 -1
  879. package/dist/commonDimensions-BtE6vh4Q.cjs +0 -1
  880. package/dist/commonDimensions-DSgdlzCn.js +0 -13
  881. package/dist/detailCommon-BgmRn4V2.cjs +0 -38
  882. package/dist/detailCommon-D3hf_VK9.js +0 -124
  883. package/dist/downloadPdf-B2zgg9c9.cjs +0 -1
  884. package/dist/downloadPdf-Cp8KkOdZ.js +0 -32
  885. package/dist/index-B_9e_5dM.cjs +0 -21096
  886. package/dist/index-D8643Kw5.js +0 -92103
  887. package/dist/mapLoadingInProgressToTreeNode-BwbhpX-m.js +0 -25
  888. package/dist/mapLoadingInProgressToTreeNode-HPakM3Kj.cjs +0 -1
  889. package/dist/mapSectionWithAcOnlyToTreeNode-BvnLuN78.cjs +0 -1
  890. package/dist/mapSectionWithAcOnlyToTreeNode-XbEZifU-.js +0 -388
  891. package/dist/mapSpacerToTreeNode-DBXk4Rww.js +0 -25
  892. package/dist/mapSpacerToTreeNode-DJqrrf8A.cjs +0 -1
  893. package/dist/mapTimeframeBalancesToTreeNode-DTJ4TAq9.cjs +0 -1
  894. package/dist/mapTimeframeBalancesToTreeNode-DqbAiwu3.js +0 -24
  895. package/dist/mapTimeframeBalancesToTreeNode-DvSdmNrN.js +0 -24
  896. package/dist/mapTimeframeBalancesToTreeNode-yqafXqys.cjs +0 -1
  897. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BA2rvjPB.js +0 -32
  898. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BJ6sGRZH.cjs +0 -1
  899. package/dist/sectionColor-C5ctH2jK.cjs +0 -1
  900. package/dist/sectionColor-CRwTbf7t.js +0 -32
  901. package/dist/toCOABalancesWithID-FOjlxab6.cjs +0 -1
  902. package/dist/toCOABalancesWithID-aRfbdmZ0.js +0 -8
  903. package/dist/toChartData-BwdO5uBz.cjs +0 -1
  904. package/dist/toChartData-D_vcEUWD.js +0 -76
  905. package/dist/uploadAttachment-CWH7stRW.js +0 -952
  906. package/dist/uploadAttachment-DKONNM0z.cjs +0 -286
  907. package/dist/zeniDatePicker.helpers-SYKlW-K1.cjs +0 -1
  908. package/dist/zeniDatePicker.helpers-mkX-5vEt.js +0 -14
@@ -0,0 +1,4530 @@
1
+ import { u as $t, d as at, m as Pe, j as t, an as zt, C as cn, k as dn, o as cr, g as un, aD as dr, h as ur, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-DtFedGku.js";
2
+ import It, { useEffect as ye, useState as X, useRef as bt, useCallback as pn, useMemo as xt, useContext as mr } from "react";
3
+ import n from "@emotion/styled";
4
+ import { RoomProvider as pr } from "@liveblocks/react";
5
+ import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as hr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
6
+ import { u as ze, dB as St, iy as Wt, a as we, R as s, hv as $e, hx as Se, aH as yn, ii as Mo, fj as rt, aS as ho, iz as fn, S as o, iA as uo, gJ as Ye, D as r, j as U, fQ as gr, o as xn, aB as yr, C as I, A as vt, av as go, Z as bn, G as yo, ag as fr, iB as Et, a5 as xr, az as fo, B as Ro, is as wn, at as zo, L as Vt, p as xo, z as br, E as wr, il as $r, hu as $n, t as Ft, fn as Sn, fu as Sr, hB as vr, _ as _t, e_ as vn, K as Cn, w as Tn, iC as Ue, hi as bo, aP as wo, aQ as kn, aR as jn, hH as Cr, eP as Tr, ap as In, aX as kr, y as jr, aD as mo, iD as Ir, b as On, V as $o, bc as Or, be as Pr, T as Br, i as Ar, N as Lr, iE as Mr, aE as Fo, k as Rr, ae as zr, ik as Fr, iq as No, m as Nr, eQ as Wr, e as Er, aG as Vr, iF as _r, X as Dr } from "./index-CTjYJrsF.js";
7
+ import Pn from "./InvoiceUploadSection-B2ePrdY8.js";
8
+ import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as qr } from "./types-DyvtCprH.js";
9
+ import { L as Ur } from "./LabeledCreatableSingleSelectField-B6Vit6ZA.js";
10
+ import { C as Hr } from "./CurrencySelectField-PjVnHOPO.js";
11
+ import { B as Kr } from "./BankAccountSection-SGI34h8u.js";
12
+ import { B as Gr, a as Yr } from "./BankAccountWarningSection-BYhi53r4.js";
13
+ import { S as Jr } from "./radio-default-CiSgisfh.js";
14
+ const We = (e, i) => `${e}.${i}`, Eo = {
15
+ largeLabelWidth: new s(120, 120, 160),
16
+ paddingBottom: new s(r[3], r[2]),
17
+ paddingLeft: new s(r[3], r[4])
18
+ }, {
19
+ spendManagement: {
20
+ reimbursement: { reimbursementDetail: je }
21
+ },
22
+ dateFormat: Qr,
23
+ common: Xr
24
+ } = we.getLocalizedStrings(), Zr = ({
25
+ lineIndex: e,
26
+ mileage: i,
27
+ classList: a,
28
+ defaultCurrency: d,
29
+ sectionId: p,
30
+ isReimbursementCommentingEnabled: v,
31
+ isDisabled: m,
32
+ isAddReimbursementDisabled: S,
33
+ companyMileageConfigInfo: x,
34
+ reimbursementId: l,
35
+ classHierarchyList: C
36
+ }) => {
37
+ const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
38
+ formState: { errors: T },
39
+ getValues: P,
40
+ trigger: H
41
+ } = at(), B = Xr.strings.empty, k = P(
42
+ We(p, "distanceInMiles")
43
+ ), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
44
+ (L) => L.classId === te?.selectedOption
45
+ ), re = We(p, "class"), Y = Pe(T, re);
46
+ ye(() => {
47
+ te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
48
+ }, [
49
+ te?.selectedOption,
50
+ ne?.isDeleted,
51
+ a,
52
+ re,
53
+ H
54
+ ]);
55
+ const K = {
56
+ application: "dashboard",
57
+ companyId: c.currentTenant?.companyId,
58
+ tab: "reimbursement",
59
+ entityId: l
60
+ }, F = (L) => a.filter((Q) => Q.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
61
+ valueContainer: (L) => ({
62
+ ...L,
63
+ padding: `2px ${o.sp3} !important`,
64
+ overflow: "unset"
65
+ }),
66
+ singleValue: () => ({
67
+ margin: 0
68
+ })
69
+ };
70
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
71
+ /* @__PURE__ */ t.jsx(
72
+ $e,
73
+ {
74
+ isThreadAllowed: v && l != null,
75
+ dashboardTabKey: Se({
76
+ type: "details",
77
+ key: `${e}.mileage.transactionDate`
78
+ }),
79
+ roomId: $,
80
+ companyId: c.currentTenant?.companyId ?? B,
81
+ companyName: c.currentTenant?.companyName ?? B,
82
+ entityId: l,
83
+ dashboardOptionType: "reimbursement",
84
+ filterMetaData: {
85
+ ...K,
86
+ entityType: `reimbursement.details.${Ie(
87
+ "transactionDate",
88
+ e,
89
+ "mileage"
90
+ )}`
91
+ },
92
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
93
+ children: /* @__PURE__ */ t.jsx(
94
+ yn,
95
+ {
96
+ isDisabled: m,
97
+ label: {
98
+ label: je.transactionDate,
99
+ width: M
100
+ },
101
+ style: {
102
+ paddingBottom: Eo.paddingBottom.valuePx(b),
103
+ width: "auto"
104
+ },
105
+ dateField: {
106
+ name: We(p, "transactionDate"),
107
+ placeholder: je.datePlaceholder,
108
+ defaultValue: i?.transactionDate,
109
+ dateFormat: Qr.visual.defaultInput,
110
+ autoComplete: "off",
111
+ maxDate: po(),
112
+ registerOptions: {
113
+ required: !0,
114
+ validate: (L) => !!L
115
+ }
116
+ }
117
+ }
118
+ )
119
+ }
120
+ ),
121
+ /* @__PURE__ */ t.jsx(Ot, {}),
122
+ /* @__PURE__ */ t.jsx(
123
+ $e,
124
+ {
125
+ isThreadAllowed: v && l != null,
126
+ dashboardTabKey: Se({
127
+ type: "details",
128
+ key: `${e}.mileage.distanceInMiles`
129
+ }),
130
+ roomId: $,
131
+ companyId: c.currentTenant?.companyId ?? B,
132
+ companyName: c.currentTenant?.companyName ?? B,
133
+ entityId: l,
134
+ dashboardOptionType: "reimbursement",
135
+ filterMetaData: {
136
+ ...K,
137
+ entityType: `reimbursement.details.${Ie(
138
+ "distanceInMiles",
139
+ e,
140
+ "mileage"
141
+ )}`
142
+ },
143
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
144
+ children: /* @__PURE__ */ t.jsx(
145
+ Mo,
146
+ {
147
+ isDisabled: S ? "disabled" : void 0,
148
+ style: { width: "auto" },
149
+ label: { label: je.distanceInMiles, width: M },
150
+ formattedTextField: {
151
+ type: "number",
152
+ name: We(p, "distanceInMiles"),
153
+ placeholder: je.addMiles,
154
+ defaultValue: i.distanceInMiles,
155
+ registerOptions: {
156
+ required: !0,
157
+ validate: (L) => L != null ? L > 0 : !0,
158
+ min: 0.01
159
+ },
160
+ returnValueType: "floatValue",
161
+ allowNegative: !1,
162
+ isNumericString: !1,
163
+ decimalScale: 2
164
+ }
165
+ }
166
+ )
167
+ }
168
+ ),
169
+ /* @__PURE__ */ t.jsx(Ot, {}),
170
+ /* @__PURE__ */ t.jsx(
171
+ $e,
172
+ {
173
+ isThreadAllowed: v && l != null,
174
+ dashboardTabKey: Se({
175
+ type: "details",
176
+ key: `${e}.mileage.amount`
177
+ }),
178
+ roomId: $,
179
+ companyId: c.currentTenant?.companyId ?? B,
180
+ companyName: c.currentTenant?.companyName ?? B,
181
+ entityId: l,
182
+ dashboardOptionType: "reimbursement",
183
+ filterMetaData: {
184
+ ...K,
185
+ entityType: `reimbursement.details.${Ie(
186
+ "amount",
187
+ e,
188
+ "mileage"
189
+ )}`
190
+ },
191
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
192
+ children: /* @__PURE__ */ t.jsx(
193
+ Mo,
194
+ {
195
+ isDisabled: "disabled",
196
+ label: {
197
+ label: je.amount,
198
+ width: M
199
+ },
200
+ formattedTextField: {
201
+ type: "number",
202
+ name: We(`${p}.amount`, "amount"),
203
+ defaultValue: i.amount?.amount,
204
+ placeholder: rt(je.amount),
205
+ returnValueType: "floatValue",
206
+ prefix: i.amount?.currencySymbol,
207
+ allowNegative: !1,
208
+ isNumericString: !1,
209
+ registerOptions: {
210
+ required: !0,
211
+ validate: (L) => L != null ? L > 0 : !0
212
+ },
213
+ autoComplete: "off",
214
+ decimalSeparator: ".",
215
+ decimalScale: 2,
216
+ fixedDecimalScale: !1,
217
+ thousandSeparator: !0
218
+ },
219
+ style: { width: "auto" },
220
+ additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
221
+ }
222
+ )
223
+ }
224
+ ),
225
+ /* @__PURE__ */ t.jsx(Ot, {}),
226
+ /* @__PURE__ */ t.jsx(
227
+ $e,
228
+ {
229
+ isThreadAllowed: v && l != null,
230
+ dashboardTabKey: Se({
231
+ type: "details",
232
+ key: `${e}.mileage.memo`
233
+ }),
234
+ roomId: $,
235
+ companyId: c.currentTenant?.companyId ?? B,
236
+ companyName: c.currentTenant?.companyName ?? B,
237
+ entityId: l,
238
+ dashboardOptionType: "reimbursement",
239
+ filterMetaData: {
240
+ ...K,
241
+ entityType: `reimbursement.details.${Ie(
242
+ "memo",
243
+ e,
244
+ "mileage"
245
+ )}`
246
+ },
247
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
248
+ children: /* @__PURE__ */ t.jsx(
249
+ ho,
250
+ {
251
+ isDisabled: m,
252
+ label: {
253
+ label: je.memo,
254
+ width: M
255
+ },
256
+ style: { width: "auto" },
257
+ text: {
258
+ type: "text",
259
+ name: We(p, "memo"),
260
+ placeholder: rt(je.memo),
261
+ defaultValue: i.memo,
262
+ autoComplete: "off",
263
+ options: {
264
+ pattern: fn
265
+ }
266
+ }
267
+ }
268
+ )
269
+ }
270
+ ),
271
+ /* @__PURE__ */ t.jsx(Ot, {}),
272
+ /* @__PURE__ */ t.jsx(
273
+ $e,
274
+ {
275
+ isThreadAllowed: v && l != null,
276
+ dashboardTabKey: Se({
277
+ type: "details",
278
+ key: `${e}.mileage.class`
279
+ }),
280
+ roomId: $,
281
+ companyId: c.currentTenant?.companyId ?? B,
282
+ companyName: c.currentTenant?.companyName ?? B,
283
+ entityId: l,
284
+ dashboardOptionType: "reimbursement",
285
+ filterMetaData: {
286
+ ...K,
287
+ entityType: `reimbursement.details.${Ie(
288
+ "class",
289
+ e,
290
+ "mileage"
291
+ )}`
292
+ },
293
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
294
+ style: {
295
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
296
+ },
297
+ children: /* @__PURE__ */ t.jsx(
298
+ uo,
299
+ {
300
+ isLoading: !1,
301
+ label: {
302
+ label: je.department,
303
+ width: M
304
+ },
305
+ additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
306
+ groupedSingleSelectField: {
307
+ shouldShowChevronIcon: !1,
308
+ name: We(p, "class"),
309
+ placeholder: rt(je.department),
310
+ valueToId: (L) => F(L),
311
+ defaultValue: {
312
+ selectedOption: J?.classId,
313
+ allOptions: Ye(C, [])
314
+ },
315
+ style: {
316
+ width: "100%"
317
+ },
318
+ customStyleConfig: q,
319
+ registerOptions: {
320
+ required: !0,
321
+ validate: (L) => L?.selectedOption == null ? !1 : a.find(
322
+ (Q) => Q.classId === L?.selectedOption
323
+ )?.isDeleted === !0 ? je.deletedClassError : !0
324
+ }
325
+ },
326
+ style: {
327
+ borderBottom: `1px solid ${O.colors.grey3}`,
328
+ borderBottomLeftRadius: o.sp2,
329
+ borderBottomRightRadius: o.sp2
330
+ },
331
+ fullWidthSelect: !0
332
+ },
333
+ We(p, "class")
334
+ )
335
+ }
336
+ )
337
+ ] });
338
+ }, Ot = n.div`
339
+ display: flex;
340
+ flex: 1;
341
+ background-color: ${(e) => e.theme.colors.grey3};
342
+ min-height: 1px;
343
+ max-height: 1px;
344
+ `, Vo = {
345
+ amounWidth: new s(50, 30),
346
+ currencyWidth: new s(50, 70)
347
+ };
348
+ function ei({
349
+ name: e,
350
+ placeHolder: i,
351
+ defaultValue: a,
352
+ isDisabled: d,
353
+ showAmountCurrencyError: p,
354
+ style: v,
355
+ allCurrencies: m
356
+ }) {
357
+ const [S, x] = X(!1), {
358
+ getValues: l,
359
+ formState: { errors: C }
360
+ } = at(), b = $t(), c = ze(), y = d != null, $ = l(e), O = `${$?.amount} ${$?.currency?.selectedOption}`, T = Pe(C, e) && zt(C, `${e}.amount`) != null, P = Pe(C, e) && zt(C, `${e}.currency`) != null, H = p === !0 ? T || P : !1, B = !H && S === !1;
361
+ return ye(() => {
362
+ B === !1 && x(!0);
363
+ }, [B]), /* @__PURE__ */ t.jsx(
364
+ cn,
365
+ {
366
+ onClickAway: () => y === !1 && !H && x(!1),
367
+ children: /* @__PURE__ */ t.jsx(
368
+ oi,
369
+ {
370
+ style: v,
371
+ isDisabled: y,
372
+ tabIndex: B && !y ? 0 : void 0,
373
+ onClick: () => y === !1 && x(!0),
374
+ "data-testid": U("currency-amount-field", e),
375
+ children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
376
+ $?.amount != null ? /* @__PURE__ */ t.jsx(
377
+ _o,
378
+ {
379
+ className: "amount-field",
380
+ isVisible: B,
381
+ children: O
382
+ }
383
+ ) : /* @__PURE__ */ t.jsx(
384
+ _o,
385
+ {
386
+ className: "amount-field amount-placeholder",
387
+ isVisible: B,
388
+ children: i?.name
389
+ }
390
+ ),
391
+ /* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
392
+ /* @__PURE__ */ t.jsx(
393
+ gr,
394
+ {
395
+ type: "number",
396
+ name: `${e}.amount`,
397
+ defaultValue: a?.amount,
398
+ placeholder: i?.amount,
399
+ returnValueType: "floatValue",
400
+ allowNegative: !1,
401
+ isNumericString: !1,
402
+ registerOptions: {
403
+ required: !0,
404
+ validate: (k) => k != null ? k > 0 : !0
405
+ },
406
+ autoComplete: "off",
407
+ decimalSeparator: ".",
408
+ decimalScale: 2,
409
+ fixedDecimalScale: !1,
410
+ thousandSeparator: !0,
411
+ isDisabled: d,
412
+ style: {
413
+ display: "flex",
414
+ flexGrow: 1,
415
+ width: Vo.amounWidth.valuePercentage(c),
416
+ cursor: "inherit"
417
+ },
418
+ bgColor: b.colors.background,
419
+ isFieldError: T,
420
+ shouldHighlightZeroAmount: !0
421
+ }
422
+ ),
423
+ B ? null : /* @__PURE__ */ t.jsx(ni, {}),
424
+ /* @__PURE__ */ t.jsx(
425
+ Hr,
426
+ {
427
+ name: `${e}.currency`,
428
+ registerOptions: {
429
+ validate: (k) => k != null && k.selectedOption != null
430
+ },
431
+ defaultValue: {
432
+ allOptions: m.map((k) => ({
433
+ label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
434
+ value: k.currencyCode,
435
+ countryCode: k.countryCode
436
+ })),
437
+ selectedOption: a?.currencyCode
438
+ },
439
+ controlStyle: {
440
+ justifyContent: "flex-start",
441
+ backgroundColor: b.colors.background
442
+ },
443
+ isDisabled: d,
444
+ style: {
445
+ width: Vo.currencyWidth.valuePercentage(c),
446
+ flexGrow: 1
447
+ },
448
+ isOptionRemovable: !1
449
+ }
450
+ )
451
+ ] })
452
+ ] })
453
+ }
454
+ )
455
+ }
456
+ );
457
+ }
458
+ const ti = n.div`
459
+ display: ${(e) => e.isVisible ? "flex" : "none"};
460
+ width: 100%;
461
+ input {
462
+ text-align: left;
463
+ }
464
+ `, oi = n.div`
465
+ display: flex;
466
+ align-items: center;
467
+ justify-content: flex-end;
468
+ position: relative;
469
+ width: 100%;
470
+ background-color: ${(e) => e.theme.colors.grey5};
471
+ outline: none;
472
+ outline-width: 0;
473
+ input {
474
+ text-align: right;
475
+ }
476
+ `, ni = n.div`
477
+ background-color: ${(e) => e.theme.colors.grey5};
478
+ min-width: ${o.sp3};
479
+ `, _o = n(xn)`
480
+ display: ${(e) => e.isVisible ? "flex" : "none"};
481
+ padding: 0 ${o.sp3};
482
+ border-radius: ${o.sp1};
483
+ height: 100%;
484
+ align-items: center;
485
+ width: 100%;
486
+ justify-content: flex-end;
487
+ color: ${(e) => e.theme.colors.primary};
488
+ &.amount-placeholder {
489
+ color: ${(e) => e.theme.colors.grey1};
490
+ }
491
+ `, De = {
492
+ width: new s(343, 580, 726),
493
+ height: new s(r[6], r[6]),
494
+ controlHeight: new s(r[6], r[6]),
495
+ paddingTopBottom: new s(r[2], r[2]),
496
+ marginTop: new s(r[2], r[2]),
497
+ marginBottom: new s(r[2], r[2]),
498
+ marginRight: new s(r[2], r[2]),
499
+ labelMarginLeft: new s(r[3], r[4]),
500
+ labelMarginRight: new s(r[3], r[4]),
501
+ labelMarginTop: new s(r[2], r[2])
502
+ }, Bn = {
503
+ infoLabel: new go("extraSmallRegular", "smallRegular")
504
+ };
505
+ function ri({
506
+ isDisabled: e,
507
+ label: i,
508
+ currencyAmountField: a,
509
+ style: d,
510
+ errorInfoLabel: p,
511
+ isAdditionalInfoLabelLoading: v,
512
+ showAdditionalLabelTooltip: m = !1,
513
+ additionalLabelTooltip: S,
514
+ additionalInfoLabel: x,
515
+ showAdditionalInfoLabel: l = !0
516
+ }) {
517
+ const C = ze(), {
518
+ formState: { errors: b }
519
+ } = at(), c = Pe(b, a.name) && zt(b, `${a.name}.amount`) != null, y = Pe(b, a.name) && zt(b, `${a.name}.currency`) != null, $ = a.showAmountCurrencyError === !0 ? c || y : !1, O = c || y || $, T = () => {
520
+ if (v === !0)
521
+ return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
522
+ if (l && x || $) {
523
+ let P = null;
524
+ return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
525
+ bn,
526
+ {
527
+ placement: C === "small" ? "bottom" : "right",
528
+ maxWidth: "364px",
529
+ title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
530
+ children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
531
+ }
532
+ )), /* @__PURE__ */ t.jsxs(
533
+ di,
534
+ {
535
+ size: C,
536
+ isError: $,
537
+ hasToolTip: m,
538
+ children: [
539
+ P,
540
+ x
541
+ ]
542
+ }
543
+ );
544
+ }
545
+ };
546
+ return /* @__PURE__ */ t.jsxs(
547
+ ii,
548
+ {
549
+ size: C,
550
+ style: d,
551
+ isDisabled: e != null,
552
+ isAmountError: c,
553
+ isCurrencyError: y,
554
+ "data-testid": U(
555
+ "labeled-currency-amount-field",
556
+ a.name
557
+ ),
558
+ children: [
559
+ /* @__PURE__ */ t.jsx(
560
+ yr,
561
+ {
562
+ isDisabled: e,
563
+ label: i.label,
564
+ htmlFor: a.name,
565
+ style: {
566
+ marginLeft: De.labelMarginLeft.value(C),
567
+ marginRight: De.labelMarginRight.value(C),
568
+ marginTop: De.labelMarginTop.value(C),
569
+ width: i.width ?? "auto"
570
+ }
571
+ }
572
+ ),
573
+ /* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
574
+ /* @__PURE__ */ t.jsx(
575
+ ei,
576
+ {
577
+ ...a,
578
+ isDisabled: e,
579
+ style: {
580
+ flexGrow: 1,
581
+ height: De.controlHeight.value(C)
582
+ }
583
+ }
584
+ ),
585
+ O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
586
+ T()
587
+ ] })
588
+ ]
589
+ }
590
+ );
591
+ }
592
+ const ii = n.div`
593
+ display: flex;
594
+ flex-direction: row;
595
+ align-items: flex-start;
596
+ background-color: ${(e) => e.theme.colors.grey5};
597
+ width: ${(e) => De.width.valuePx(e.size)};
598
+ min-height: ${(e) => De.height.valuePx(e.size)};
599
+ padding-right: ${(e) => De.marginRight.valuePx(e.size)};
600
+ padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
601
+ padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
602
+
603
+ :first-of-type {
604
+ border-top-left-radius: inherit;
605
+ border-top-right-radius: inherit;
606
+ }
607
+
608
+ :last-of-type {
609
+ border-bottom-left-radius: inherit;
610
+ border-bottom-right-radius: inherit;
611
+ }
612
+
613
+ &:focus-within {
614
+ z-index: 2;
615
+ outline: 1px solid ${(e) => e.theme.colors.primary};
616
+
617
+ .amount-field {
618
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
619
+ }
620
+
621
+ input:nth-of-type(1) {
622
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
623
+ }
624
+
625
+ input:nth-of-type(2) {
626
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
627
+ }
628
+ }
629
+ input {
630
+ text-align: left;
631
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
632
+ }
633
+
634
+ input:nth-of-type(1) {
635
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
636
+ }
637
+
638
+ input:nth-of-type(2) {
639
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
640
+ }
641
+
642
+ &:hover {
643
+ z-index: 1;
644
+ outline: 1px solid
645
+ ${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
646
+ input,
647
+ .amount-field {
648
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
649
+ }
650
+
651
+ input:nth-of-type(1) {
652
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
653
+ }
654
+
655
+ input:nth-of-type(2) {
656
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
657
+ }
658
+ }
659
+ `, ai = n.label`
660
+ color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
661
+ width: auto;
662
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
663
+ padding-right: ${o.sp3};
664
+ text-align: right;
665
+ `, li = n.div`
666
+ display: flex;
667
+ width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
668
+ justify-content: flex-end;
669
+ flex-direction: column;
670
+ position: relative;
671
+ `, si = n(yo)`
672
+ padding: 12px;
673
+ color: ${(e) => e.theme.colors.grey1};
674
+ background: ${(e) => e.theme.colors.overlayColor};
675
+ border-radius: ${o.sp1};
676
+ `, ci = n.div`
677
+ padding-right: ${o.sp3};
678
+ padding-top: ${o.sp1};
679
+ display: flex;
680
+ justify-content: flex-end;
681
+ `, di = n.label`
682
+ display: flex;
683
+ justify-content: flex-end;
684
+ color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
685
+ &:hover {
686
+ color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
687
+ }
688
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
689
+ padding-right: ${o.sp3};
690
+ text-align: right;
691
+ margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
692
+ `, ui = n.div`
693
+ display: flex;
694
+ margin-right: ${o.sp2};
695
+ margin-top: 2px;
696
+ align-items: center;
697
+ `, mi = n(fr)`
698
+ width: ${o.sp3};
699
+ height: ${o.sp3};
700
+ color: inherit;
701
+ `, ge = (e, i) => `${e}.${i}`, Mt = {
702
+ largeLabelWidth: new s(120, 120, 160),
703
+ smallLabelWidth: new s(85, 85, 160),
704
+ paddingBottom: new s(r[3], r[2]),
705
+ paddingLeft: new s(r[3], r[4]),
706
+ autoFillIconLeft: new s(-r[2], -r[4])
707
+ }, {
708
+ dateFormat: pi,
709
+ common: An,
710
+ spendManagement: {
711
+ reimbursement: { reimbursementDetail: oe }
712
+ }
713
+ } = we.getLocalizedStrings(), {
714
+ strings: { empty: ae }
715
+ } = An, hi = (e, i) => {
716
+ const a = e.slice(1);
717
+ let d = !1;
718
+ return a.forEach((p) => {
719
+ p.account?.qboId != null && p.account?.qboId === i && (d = !0);
720
+ }), d;
721
+ }, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
722
+ lineIndex: e,
723
+ outOfPocket: i,
724
+ accountList: a,
725
+ classList: d,
726
+ merchantList: p,
727
+ isAddReimbursementDisabled: v,
728
+ sectionId: m,
729
+ isReimbursementCommentingEnabled: S,
730
+ isDisabled: x,
731
+ autoFields: l = [],
732
+ accountsHierarchyList: C,
733
+ classHierarchyList: b,
734
+ reimbursementId: c,
735
+ tentativeMerchantName: y,
736
+ allCurrencies: $,
737
+ uncategorizedAccounts: O
738
+ }) => {
739
+ const T = ze(), P = St(), H = Wt(), B = $t(), {
740
+ formState: { errors: k },
741
+ getValues: M,
742
+ trigger: te
743
+ } = at(), ne = M(ge(m, "class")), re = d.find(
744
+ (h) => h.classId === ne?.selectedOption
745
+ ), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
746
+ (h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
747
+ ), q = ge(m, "account"), L = Pe(k, q);
748
+ ye(() => {
749
+ ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
750
+ }, [
751
+ ne?.selectedOption,
752
+ re?.isDeleted,
753
+ d,
754
+ Y,
755
+ te
756
+ ]), ye(() => {
757
+ F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
758
+ }, [
759
+ F?.selectedOption,
760
+ J?.isDeleted,
761
+ a,
762
+ q,
763
+ te
764
+ ]);
765
+ const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
766
+ !i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
767
+ !hi(
768
+ i.recommendations,
769
+ i.account
770
+ ), Q = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
771
+ (h) => h.id ?? ae
772
+ ), ue = {
773
+ application: "dashboard",
774
+ companyId: P.currentTenant?.companyId,
775
+ tab: "reimbursement",
776
+ entityId: c
777
+ }, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
778
+ (h) => h.qboId === i.account
779
+ ), Ae = (h) => [
780
+ O.expense?.qboId,
781
+ O.income?.qboId
782
+ ].includes(h), Le = d.find((h) => h.classId === i.class), me = {
783
+ valueContainer: (h) => ({
784
+ ...h,
785
+ padding: `2px ${o.sp3} !important`,
786
+ overflow: "unset"
787
+ }),
788
+ singleValue: () => ({
789
+ margin: 0
790
+ })
791
+ }, Me = (h) => a.filter((he) => he.qboId === h)[0]?.qboId, pe = (h) => d.filter((he) => he.classId === h)[0]?.accountingClassNumber, ve = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace(
792
+ "__based__",
793
+ gi(i?.recommendedAccount?.reason ?? ae)
794
+ ), Je = Et(
795
+ C,
796
+ i.recommendations
797
+ );
798
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
799
+ y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
800
+ /* @__PURE__ */ t.jsx(
801
+ $e,
802
+ {
803
+ isThreadAllowed: S && c != null,
804
+ dashboardTabKey: Se({
805
+ type: "details",
806
+ key: `${e}.out_of_pocket.merchant`
807
+ }),
808
+ roomId: fe,
809
+ companyId: P.currentTenant?.companyId ?? ae,
810
+ companyName: P.currentTenant?.companyName ?? ae,
811
+ entityId: c,
812
+ dashboardOptionType: "reimbursement",
813
+ filterMetaData: {
814
+ ...ue,
815
+ entityType: `reimbursement.details.${Ie(
816
+ "merchant",
817
+ e,
818
+ "out_of_pocket"
819
+ )}`
820
+ },
821
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
822
+ children: /* @__PURE__ */ t.jsx(
823
+ Ur,
824
+ {
825
+ isDisabled: x != null || v ? "disabled" : void 0,
826
+ label: {
827
+ label: oe.merchant,
828
+ width: V
829
+ },
830
+ style: {
831
+ width: "auto"
832
+ },
833
+ creatableSingleSelectField: {
834
+ name: ge(m, "merchant"),
835
+ placeholder: oe.merchantPlaceholder,
836
+ defaultValue: {
837
+ selectedOption: i.merchant ?? ae,
838
+ allOptions: _e
839
+ },
840
+ registerOptions: {
841
+ required: !0,
842
+ validate: (h) => !!h.selectedOption
843
+ }
844
+ },
845
+ isOptionRemovable: !0,
846
+ addIconInCreateLabel: !0,
847
+ getLabelForId: le
848
+ }
849
+ )
850
+ }
851
+ ),
852
+ /* @__PURE__ */ t.jsx(Pt, {}),
853
+ l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
854
+ /* @__PURE__ */ t.jsx(
855
+ $e,
856
+ {
857
+ isThreadAllowed: S && c != null,
858
+ dashboardTabKey: Se({
859
+ type: "details",
860
+ key: `${e}.out_of_pocket.transactionDate`
861
+ }),
862
+ roomId: fe,
863
+ companyId: P.currentTenant?.companyId ?? ae,
864
+ companyName: P.currentTenant?.companyName ?? ae,
865
+ entityId: c,
866
+ dashboardOptionType: "reimbursement",
867
+ filterMetaData: {
868
+ ...ue,
869
+ entityType: `reimbursement.details.${Ie(
870
+ "transactionDate",
871
+ e,
872
+ "out_of_pocket"
873
+ )}`
874
+ },
875
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
876
+ children: /* @__PURE__ */ t.jsx(
877
+ yn,
878
+ {
879
+ isDisabled: x,
880
+ label: {
881
+ label: oe.transactionDate,
882
+ width: V
883
+ },
884
+ style: {
885
+ paddingBottom: Mt.paddingBottom.valuePx(T),
886
+ width: "auto"
887
+ },
888
+ dateField: {
889
+ name: ge(m, "transactionDate"),
890
+ placeholder: oe.datePlaceholder,
891
+ defaultValue: i?.transactionDate,
892
+ dateFormat: pi.visual.defaultInput,
893
+ autoComplete: "off",
894
+ maxDate: po(),
895
+ registerOptions: {
896
+ required: !0,
897
+ validate: (h) => !!h
898
+ }
899
+ }
900
+ }
901
+ )
902
+ }
903
+ ),
904
+ /* @__PURE__ */ t.jsx(Pt, {}),
905
+ l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
906
+ /* @__PURE__ */ t.jsx(
907
+ $e,
908
+ {
909
+ isThreadAllowed: S && c != null,
910
+ dashboardTabKey: Se({
911
+ type: "details",
912
+ key: `${e}.out_of_pocket.amount`
913
+ }),
914
+ roomId: fe,
915
+ companyId: P.currentTenant?.companyId ?? ae,
916
+ companyName: P.currentTenant?.companyName ?? ae,
917
+ entityId: c,
918
+ dashboardOptionType: "reimbursement",
919
+ filterMetaData: {
920
+ ...ue,
921
+ entityType: `reimbursement.details.${Ie(
922
+ "amount",
923
+ e,
924
+ "out_of_pocket"
925
+ )}`
926
+ },
927
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
928
+ children: /* @__PURE__ */ t.jsx(
929
+ ri,
930
+ {
931
+ isDisabled: x != null || v ? "disabled" : void 0,
932
+ label: { label: oe.amount, width: de },
933
+ style: { width: "auto" },
934
+ currencyAmountField: {
935
+ style: { height: o.sp6 },
936
+ name: `${m}.amount`,
937
+ defaultValue: {
938
+ amount: i.amount.amount,
939
+ currencyCode: i.amount.currencyCode,
940
+ currencySymbol: i.amount.currencySymbol
941
+ },
942
+ placeHolder: {
943
+ amount: oe.addAmount,
944
+ name: oe.addAmount
945
+ },
946
+ allCurrencies: $,
947
+ showAmountCurrencyError: !0
948
+ },
949
+ showAdditionalInfoLabel: !0,
950
+ showAdditionalLabelTooltip: !0,
951
+ additionalLabelTooltip: oe.amountExchangeRateTooltip,
952
+ isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
953
+ additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${xr(
954
+ "0,0[.]00",
955
+ i.homeCurrencyDetails
956
+ )} ${i.homeCurrencyDetails?.currencyCode}` : void 0
957
+ }
958
+ )
959
+ }
960
+ ),
961
+ /* @__PURE__ */ t.jsx(Pt, {}),
962
+ l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
963
+ /* @__PURE__ */ t.jsx(
964
+ $e,
965
+ {
966
+ isThreadAllowed: S && c != null,
967
+ dashboardTabKey: Se({
968
+ type: "details",
969
+ key: `${e}.out_of_pocket.memo`
970
+ }),
971
+ roomId: fe,
972
+ companyId: P.currentTenant?.companyId ?? ae,
973
+ companyName: P.currentTenant?.companyName ?? ae,
974
+ entityId: c,
975
+ dashboardOptionType: "reimbursement",
976
+ filterMetaData: {
977
+ ...ue,
978
+ entityType: `reimbursement.details.${Ie(
979
+ "memo",
980
+ e,
981
+ "out_of_pocket"
982
+ )}`
983
+ },
984
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
985
+ children: /* @__PURE__ */ t.jsx(
986
+ ho,
987
+ {
988
+ isDisabled: x,
989
+ label: {
990
+ label: oe.memo,
991
+ width: V
992
+ },
993
+ style: { width: "auto" },
994
+ text: {
995
+ type: "text",
996
+ name: ge(m, "memo"),
997
+ placeholder: rt(oe.memo),
998
+ defaultValue: i.memo,
999
+ autoComplete: "off",
1000
+ options: {
1001
+ pattern: fn
1002
+ }
1003
+ }
1004
+ }
1005
+ )
1006
+ }
1007
+ ),
1008
+ /* @__PURE__ */ t.jsx(Pt, {}),
1009
+ l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1010
+ /* @__PURE__ */ t.jsx(
1011
+ $e,
1012
+ {
1013
+ isThreadAllowed: S && c != null,
1014
+ dashboardTabKey: Se({
1015
+ type: "details",
1016
+ key: `${e}.out_of_pocket.account`
1017
+ }),
1018
+ roomId: fe,
1019
+ companyId: P.currentTenant?.companyId ?? ae,
1020
+ companyName: P.currentTenant?.companyName ?? ae,
1021
+ entityId: c,
1022
+ dashboardOptionType: "reimbursement",
1023
+ filterMetaData: {
1024
+ ...ue,
1025
+ entityType: `reimbursement.details.${Ie(
1026
+ "account",
1027
+ e,
1028
+ "out_of_pocket"
1029
+ )}`
1030
+ },
1031
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1032
+ children: /* @__PURE__ */ t.jsx(
1033
+ uo,
1034
+ {
1035
+ label: {
1036
+ label: oe.category,
1037
+ width: V
1038
+ },
1039
+ additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
1040
+ groupedSingleSelectField: {
1041
+ shouldShowChevronIcon: ce || Q,
1042
+ name: ge(m, "account"),
1043
+ placeholder: oe.categoryPlaceholder,
1044
+ valueToId: (h) => Me(h),
1045
+ defaultValue: {
1046
+ selectedOption: Be?.qboId ?? Be?.accountId,
1047
+ allOptions: Je
1048
+ },
1049
+ style: {
1050
+ width: "100%"
1051
+ },
1052
+ customStyleConfig: me,
1053
+ registerOptions: {
1054
+ required: !0,
1055
+ validate: (h) => h?.selectedOption == null ? !1 : a.find(
1056
+ (he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
1057
+ )?.isDeleted === !0 ? oe.deletedCategoryError : !0
1058
+ }
1059
+ },
1060
+ disableCurrentOption: Ae,
1061
+ style: {
1062
+ borderBottom: `1px solid ${B.colors.grey3}`,
1063
+ minHeight: o.sp6,
1064
+ boxSizing: "initial"
1065
+ },
1066
+ fullWidthSelect: !0,
1067
+ isLoading: i.isRecommendationLoading,
1068
+ recommendationCheckboxField: ce ? {
1069
+ tooltipProps: { text: ve },
1070
+ label: {
1071
+ label: i.recommendedAccount?.accountName ?? ae
1072
+ },
1073
+ checkBoxField: {
1074
+ name: ge(m, "isCategoryUpdateSelected"),
1075
+ defaultChecked: !!i.isCategoryUpdateSelected
1076
+ }
1077
+ } : void 0,
1078
+ retainCheckboxField: Q ? {
1079
+ label: {
1080
+ label: i.retainedAccount?.accountName ?? ae
1081
+ },
1082
+ checkBoxField: {
1083
+ name: ge(m, "isRetainedCategorySelected"),
1084
+ defaultChecked: !!i.isRetainedCategorySelected
1085
+ }
1086
+ } : void 0
1087
+ },
1088
+ ge(m, "account")
1089
+ )
1090
+ }
1091
+ ),
1092
+ l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1093
+ /* @__PURE__ */ t.jsx(
1094
+ $e,
1095
+ {
1096
+ isThreadAllowed: S && c != null,
1097
+ dashboardTabKey: Se({
1098
+ type: "details",
1099
+ key: `${e}.out_of_pocket.class`
1100
+ }),
1101
+ roomId: fe,
1102
+ companyId: P.currentTenant?.companyId ?? ae,
1103
+ companyName: P.currentTenant?.companyName ?? ae,
1104
+ entityId: c,
1105
+ dashboardOptionType: "reimbursement",
1106
+ filterMetaData: {
1107
+ ...ue,
1108
+ entityType: `reimbursement.details.${Ie(
1109
+ "class",
1110
+ e,
1111
+ "out_of_pocket"
1112
+ )}`
1113
+ },
1114
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1115
+ style: {
1116
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
1117
+ },
1118
+ children: /* @__PURE__ */ t.jsx(
1119
+ uo,
1120
+ {
1121
+ isLoading: !1,
1122
+ label: {
1123
+ label: oe.department,
1124
+ width: V
1125
+ },
1126
+ additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
1127
+ groupedSingleSelectField: {
1128
+ shouldShowChevronIcon: !1,
1129
+ name: ge(m, "class"),
1130
+ placeholder: rt(oe.department),
1131
+ valueToId: (h) => pe(h),
1132
+ defaultValue: {
1133
+ selectedOption: Le?.classId,
1134
+ allOptions: Ye(b, [])
1135
+ },
1136
+ style: {
1137
+ width: "100%"
1138
+ },
1139
+ customStyleConfig: me,
1140
+ registerOptions: {
1141
+ required: !0,
1142
+ validate: (h) => h?.selectedOption == null ? !1 : d.find(
1143
+ (he) => he.classId === h?.selectedOption
1144
+ )?.isDeleted === !0 ? oe.deletedClassError : !0
1145
+ }
1146
+ },
1147
+ style: {
1148
+ borderBottom: `1px solid ${B.colors.grey3}`,
1149
+ borderBottomLeftRadius: o.sp2,
1150
+ borderBottomRightRadius: o.sp2
1151
+ },
1152
+ fullWidthSelect: !0
1153
+ },
1154
+ ge(m, "class")
1155
+ )
1156
+ }
1157
+ )
1158
+ ] });
1159
+ }, ct = n.span`
1160
+ position: relative;
1161
+ `, dt = n(fo)`
1162
+ color: ${(e) => e.theme.colors.primary};
1163
+ width: ${o.sp3};
1164
+ height: ${o.sp3};
1165
+ `, ut = n.div`
1166
+ z-index: 2;
1167
+ left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
1168
+ position: absolute;
1169
+ top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
1170
+ `, Pt = n.div`
1171
+ display: flex;
1172
+ flex: 1;
1173
+ background-color: ${(e) => e.theme.colors.grey3};
1174
+ min-height: 1px;
1175
+ max-height: 1px;
1176
+ `, ot = (e, i) => `${e}.${i}`, qe = {
1177
+ paddingTop: new s(r[5], r[4]),
1178
+ marginBottom: new s(r[3], r[3]),
1179
+ labelPaddingLeft: new s(r[3], r[4]),
1180
+ buttonWidth: new s(70, 70),
1181
+ containerRightMargin: new s(r[3], r[8]),
1182
+ containerLeftMargin: new s(r[3], r[6]),
1183
+ deleteConfirmationTextMarginBottom: new s(r[2], r[0])
1184
+ }, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
1185
+ lineData: e,
1186
+ currencyConversionState: i,
1187
+ recommendationFetchState: a,
1188
+ remiStage: d,
1189
+ lineIndex: p,
1190
+ accountList: v,
1191
+ classList: m,
1192
+ merchantList: S,
1193
+ hasFile: x,
1194
+ defaultCurrency: l,
1195
+ hasMultipleLineItems: C,
1196
+ fileRequiredLineIds: b,
1197
+ duplicateLineDetails: c,
1198
+ remiStatus: y,
1199
+ sectionId: $,
1200
+ isDisabled: O,
1201
+ isReimbursementCommentingEnabled: T,
1202
+ isAddReimbursementDisabled: P,
1203
+ style: H,
1204
+ autoFields: B = [],
1205
+ analytics: k,
1206
+ reimbursementId: M,
1207
+ tentativeMerchantName: te,
1208
+ companyMileageConfigInfo: ne,
1209
+ uncategorizedAccounts: re,
1210
+ removeDuplicateReimbursementForLine: Y,
1211
+ scrollToSection: K,
1212
+ onDuplicateLineClick: F,
1213
+ onRemoveReimbursement: J,
1214
+ clearTentativeNameForLine: q,
1215
+ allCurrencies: L,
1216
+ accountsHierarchyList: ce,
1217
+ classHierarchyList: Q
1218
+ }) => {
1219
+ const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
1220
+ application: "dashboard",
1221
+ companyId: de.currentTenant?.companyId,
1222
+ tab: "reimbursement",
1223
+ entityId: M
1224
+ }, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = X(!1), me = Be(
1225
+ ot($, "reimbursementType")
1226
+ );
1227
+ return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
1228
+ /* @__PURE__ */ t.jsxs(
1229
+ bi,
1230
+ {
1231
+ hasFile: x,
1232
+ windowSize: V,
1233
+ showDeleteConfirmation: Ae,
1234
+ children: [
1235
+ /* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
1236
+ Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
1237
+ /* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
1238
+ /* @__PURE__ */ t.jsxs(xi, { children: [
1239
+ /* @__PURE__ */ t.jsx(
1240
+ Ro,
1241
+ {
1242
+ label: G.buttons.cancel,
1243
+ onClick: () => Le(!1),
1244
+ style: {
1245
+ width: qe.buttonWidth.value(V),
1246
+ marginLeft: V === "small" ? o.sp0 : o.sp4,
1247
+ marginRight: o.sp3
1248
+ },
1249
+ size: "small",
1250
+ variant: "secondary",
1251
+ "data-testid": U(
1252
+ "delete-remi-button",
1253
+ G.buttons.cancel
1254
+ )
1255
+ }
1256
+ ),
1257
+ /* @__PURE__ */ t.jsx(
1258
+ Ro,
1259
+ {
1260
+ label: G.buttons.remove,
1261
+ onClick: () => {
1262
+ k?.trackReimbursementDeleteReimbursementLine(
1263
+ e.lineId,
1264
+ M
1265
+ ), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
1266
+ },
1267
+ style: { width: qe.buttonWidth.value(V) },
1268
+ size: "small",
1269
+ variant: "danger",
1270
+ "data-testid": U(
1271
+ "delete-remi-button",
1272
+ G.buttons.remove
1273
+ )
1274
+ }
1275
+ )
1276
+ ] })
1277
+ ] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
1278
+ wi,
1279
+ {
1280
+ className: "deleteIconWrapper",
1281
+ windowSize: V,
1282
+ onClick: () => Le(!0),
1283
+ "data-testid": U(
1284
+ "delete-remi-button",
1285
+ e.lineId
1286
+ ),
1287
+ children: /* @__PURE__ */ t.jsx(
1288
+ bn,
1289
+ {
1290
+ enterDelay: 600,
1291
+ title: G.deleteReimbursement,
1292
+ placement: "top-end",
1293
+ children: /* @__PURE__ */ t.jsx($i, {})
1294
+ }
1295
+ )
1296
+ }
1297
+ ) : null
1298
+ ]
1299
+ }
1300
+ ),
1301
+ b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
1302
+ wn,
1303
+ {
1304
+ title: G.missingReceipt,
1305
+ description: G.missingReceiptDescription,
1306
+ style: { marginBottom: o.sp3 }
1307
+ }
1308
+ ) : null,
1309
+ /* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
1310
+ c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
1311
+ G.thisExpense,
1312
+ " ",
1313
+ c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
1314
+ Do,
1315
+ {
1316
+ "data-testid": U(
1317
+ "view-duplicate-transaction-expense"
1318
+ ),
1319
+ onClick: () => (k?.trackReimbursementViewDuplicateExpense(
1320
+ !0,
1321
+ M
1322
+ ), K(
1323
+ c.duplicateLineId
1324
+ )),
1325
+ children: G.viewOriginalExpense
1326
+ }
1327
+ ) : /* @__PURE__ */ t.jsx(
1328
+ Do,
1329
+ {
1330
+ "data-testid": U("view-duplicate-expense"),
1331
+ onClick: () => {
1332
+ c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
1333
+ !1,
1334
+ M
1335
+ ), F(
1336
+ c.duplicateTransactionId,
1337
+ c.duplicateLineId
1338
+ ));
1339
+ },
1340
+ children: G.viewOriginalExpense
1341
+ }
1342
+ )
1343
+ ] }) : null,
1344
+ /* @__PURE__ */ t.jsx(
1345
+ $e,
1346
+ {
1347
+ isThreadAllowed: T && M != null,
1348
+ dashboardTabKey: Se({
1349
+ type: "details",
1350
+ key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
1351
+ }),
1352
+ roomId: le,
1353
+ companyId: de.currentTenant?.companyId ?? ue,
1354
+ companyName: de.currentTenant?.companyName ?? ue,
1355
+ entityId: M,
1356
+ dashboardOptionType: "reimbursement",
1357
+ filterMetaData: {
1358
+ ...fe,
1359
+ entityType: `reimbursement.details.${Ie(
1360
+ "reimbursementType",
1361
+ p,
1362
+ me === G.mileageKey ? "mileage" : "out_of_pocket"
1363
+ )}`
1364
+ },
1365
+ fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
1366
+ style: {
1367
+ borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
1368
+ },
1369
+ children: /* @__PURE__ */ t.jsxs(
1370
+ Oi,
1371
+ {
1372
+ isDisabled: O != null,
1373
+ haveBorderRadius: c?.duplicateLineId == null,
1374
+ children: [
1375
+ /* @__PURE__ */ t.jsx(
1376
+ zo,
1377
+ {
1378
+ isDisabled: O != null || P ? "disabled" : void 0,
1379
+ isContainerClickable: !0,
1380
+ label: {
1381
+ label: G.outOfPocket
1382
+ },
1383
+ style: {
1384
+ padding: `${o.sp3} ${o.sp0}`,
1385
+ paddingLeft: qe.labelPaddingLeft.value(V),
1386
+ borderTopLeftRadius: "inherit"
1387
+ },
1388
+ showOutline: !(T && M != null),
1389
+ radioField: {
1390
+ name: ot($, "reimbursementType"),
1391
+ id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
1392
+ value: G.outOfPocketKey
1393
+ }
1394
+ }
1395
+ ),
1396
+ /* @__PURE__ */ t.jsx(Ii, {}),
1397
+ /* @__PURE__ */ t.jsx(
1398
+ zo,
1399
+ {
1400
+ isDisabled: O != null || P ? "disabled" : void 0,
1401
+ isContainerClickable: !0,
1402
+ label: {
1403
+ label: G.mileage
1404
+ },
1405
+ style: {
1406
+ padding: `${o.sp3} ${o.sp0}`,
1407
+ paddingLeft: qe.labelPaddingLeft.value(V),
1408
+ borderTopRightRadius: "inherit"
1409
+ },
1410
+ showOutline: !(T && M != null),
1411
+ radioField: {
1412
+ name: ot($, "reimbursementType"),
1413
+ id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
1414
+ value: G.mileageKey
1415
+ }
1416
+ }
1417
+ )
1418
+ ]
1419
+ }
1420
+ )
1421
+ }
1422
+ ),
1423
+ /* @__PURE__ */ t.jsx(Pi, {}),
1424
+ me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
1425
+ yi,
1426
+ {
1427
+ lineIndex: p,
1428
+ reimbursementId: M,
1429
+ uncategorizedAccounts: re,
1430
+ isReimbursementCommentingEnabled: T,
1431
+ isDisabled: O,
1432
+ outOfPocket: {
1433
+ transactionDate: e.outOfPocket.transactionDate != null ? it(
1434
+ e.outOfPocket.transactionDate.toDateString()
1435
+ ) : void 0,
1436
+ account: e.outOfPocket.account.selectedOption,
1437
+ isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
1438
+ isRecommendationLoading: a === "In-Progress",
1439
+ homeCurrencyDetails: e.homeCurrencyConversions,
1440
+ class: e.outOfPocket.class.selectedOption,
1441
+ amount: {
1442
+ amount: e.outOfPocket.amount?.amount ?? 0,
1443
+ currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
1444
+ currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
1445
+ },
1446
+ memo: e.outOfPocket.memo,
1447
+ merchant: e.outOfPocket.merchant.selectedOption,
1448
+ recommendations: e.outOfPocket.recommendations,
1449
+ recommendedAccount: e.outOfPocket.recommendedAccount,
1450
+ //account to show in update to checkbox
1451
+ isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
1452
+ //update to checkbox is ticked
1453
+ isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
1454
+ retainedAccount: e.outOfPocket.retainedAccount,
1455
+ //account to show in retain checkbox
1456
+ isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
1457
+ //retain checkbox is selected
1458
+ },
1459
+ sectionId: ot($, "outOfPocket"),
1460
+ accountList: v,
1461
+ classList: m,
1462
+ autoFields: B,
1463
+ merchantList: S,
1464
+ tentativeMerchantName: te,
1465
+ allCurrencies: L,
1466
+ isAddReimbursementDisabled: P,
1467
+ accountsHierarchyList: ce,
1468
+ classHierarchyList: Q
1469
+ }
1470
+ ) : /* @__PURE__ */ t.jsx(
1471
+ Zr,
1472
+ {
1473
+ lineIndex: p,
1474
+ reimbursementId: M,
1475
+ isReimbursementCommentingEnabled: T,
1476
+ isDisabled: O,
1477
+ mileage: {
1478
+ transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
1479
+ class: e.mileage.class.selectedOption,
1480
+ distanceInMiles: e.mileage.distanceInMiles,
1481
+ amount: {
1482
+ amount: e.mileage.amount?.amount ?? 0,
1483
+ currencyCode: e.mileage.amount?.currencyCode ?? "USD",
1484
+ currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
1485
+ },
1486
+ memo: e.mileage.memo
1487
+ },
1488
+ classList: m,
1489
+ sectionId: ot($, "mileage"),
1490
+ companyMileageConfigInfo: ne,
1491
+ defaultCurrency: l,
1492
+ isAddReimbursementDisabled: P,
1493
+ classHierarchyList: Q
1494
+ }
1495
+ )
1496
+ ] })
1497
+ ] });
1498
+ }, xi = n.div``, bi = n.div`
1499
+ //when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
1500
+ //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
1501
+ display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
1502
+ justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
1503
+ margin-bottom: ${o.sp3};
1504
+ align-items: center;
1505
+ `, wi = n.div`
1506
+ width: ${o.sp3};
1507
+ height: ${o.sp3};
1508
+ cursor: pointer;
1509
+ display: none;
1510
+ color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
1511
+ &:hover {
1512
+ color: ${I.important};
1513
+ }
1514
+ `, Do = n.span`
1515
+ border-bottom: 1px solid currentColor;
1516
+ cursor: pointer;
1517
+ `, $i = n(br)`
1518
+ width: ${o.sp3};
1519
+ height: ${o.sp3};
1520
+ cursor: pointer;
1521
+ `, Si = n.div`
1522
+ margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
1523
+ `, vi = n(xo)`
1524
+ color: ${(e) => e.theme.colors.hero};
1525
+ display: flex;
1526
+ align-items: center;
1527
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
1528
+ `, Ci = n.div`
1529
+ display: flex;
1530
+ flex-direction: column;
1531
+ padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
1532
+ margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
1533
+ margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
1534
+ .deleteIconWrapper {
1535
+ ${(e) => e.windowSize === "small" && `
1536
+ display: block;
1537
+ `}
1538
+ }
1539
+ &:hover {
1540
+ .deleteIconWrapper {
1541
+ display: block;
1542
+ }
1543
+ }
1544
+ `, Ti = n(wr)`
1545
+ padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
1546
+ background-color: ${I.alertLight};
1547
+ color: ${I.brandColorGoldDark};
1548
+ border-top-left-radius: inherit;
1549
+ border-top-right-radius: inherit;
1550
+ `, ki = n(Vt)`
1551
+ color: ${(e) => e.theme.colors.primary};
1552
+ display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
1553
+ `, ji = n.div`
1554
+ display: flex;
1555
+ flex-direction: column;
1556
+ background-color: ${(e) => e.theme.colors.grey5};
1557
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1558
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1559
+ border-radius: ${o.sp2};
1560
+ margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
1561
+ `, Ii = n.div`
1562
+ background-color: ${(e) => e.theme.colors.grey3};
1563
+ min-width: 1px;
1564
+ max-width: 1px;
1565
+ `, Oi = n.div`
1566
+ display: flex;
1567
+ flex-direction: row;
1568
+ border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1569
+ border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1570
+ `, Pi = n.div`
1571
+ display: flex;
1572
+ flex: 1;
1573
+ background-color: ${(e) => e.theme.colors.grey3};
1574
+ min-height: 1px;
1575
+ max-height: 1px;
1576
+ `, Bi = (e, i) => `${e}.${i}`, mt = {
1577
+ labelWidth: new s(120, 160, 160),
1578
+ paddingBottom: new s(r[3], r[3]),
1579
+ paddingTop: new s(12, r[3]),
1580
+ marginBottom: new s(12, r[3]),
1581
+ containerRightMargin: new s(r[3], r[8]),
1582
+ containerLeftMargin: new s(r[3], r[6])
1583
+ }, Ln = ({
1584
+ isReimbursementCommentingEnabled: e,
1585
+ sectionId: i,
1586
+ isDisabled: a,
1587
+ reportTitle: d,
1588
+ reimbursementId: p,
1589
+ style: v
1590
+ }) => {
1591
+ const m = ze(), S = St(), x = Wt(), l = `dashboard_${S.currentTenant?.companyId}`, C = we.getLocalizedStrings(), b = C.spendManagement.reimbursement.reimbursementDetail, c = C.common.strings.empty, y = mt.labelWidth.value(m);
1592
+ return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
1593
+ /* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
1594
+ /* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
1595
+ $e,
1596
+ {
1597
+ isThreadAllowed: e && p != null,
1598
+ dashboardTabKey: Se({
1599
+ type: "details",
1600
+ key: "whatFor"
1601
+ }),
1602
+ roomId: l,
1603
+ companyId: S.currentTenant?.companyId ?? c,
1604
+ companyName: S.currentTenant?.companyName ?? c,
1605
+ entityId: p,
1606
+ dashboardOptionType: "reimbursement",
1607
+ filterMetaData: {
1608
+ application: "dashboard",
1609
+ companyId: S.currentTenant?.companyId,
1610
+ tab: "reimbursement",
1611
+ entityId: p,
1612
+ entityType: "reimbursement.details.whatFor"
1613
+ },
1614
+ fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
1615
+ style: {
1616
+ borderRadius: o.sp2
1617
+ },
1618
+ children: /* @__PURE__ */ t.jsx(
1619
+ ho,
1620
+ {
1621
+ isDisabled: a,
1622
+ label: {
1623
+ label: b.reportTitle,
1624
+ width: y
1625
+ },
1626
+ text: {
1627
+ type: "text",
1628
+ name: Bi(i, "reportTitle"),
1629
+ placeholder: b.lunchWithClient,
1630
+ defaultValue: d,
1631
+ autoComplete: "off",
1632
+ options: {
1633
+ required: !0,
1634
+ validate: ($) => !!$
1635
+ }
1636
+ },
1637
+ style: { width: "auto", borderRadius: o.sp2 }
1638
+ }
1639
+ )
1640
+ }
1641
+ ) })
1642
+ ] });
1643
+ }, Ai = n.div`
1644
+ display: flex;
1645
+ flex-direction: column;
1646
+ padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
1647
+ padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
1648
+ margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
1649
+ margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
1650
+ `, Li = n.div`
1651
+ display: flex;
1652
+ flex-direction: column;
1653
+ background-color: ${(e) => e.theme.colors.grey5};
1654
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1655
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1656
+ border-radius: ${o.sp2};
1657
+ `, Mi = n(Vt)`
1658
+ color: ${(e) => e.theme.colors.primary};
1659
+ margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
1660
+ `, N = {
1661
+ largeLabelWidth: new s(120, 120, 220),
1662
+ marginTop: new s(28, 8),
1663
+ paymentToMarginTop: new s(0, r[4]),
1664
+ marginBottom: new s(r[5], r[4]),
1665
+ paymentToMarginBottom: new s(12, r[3]),
1666
+ totalMarginBottom: new s(r[3], r[3]),
1667
+ reimbursementSectionLeftMargin: new s(r[3], r[6]),
1668
+ reimbursementSectionRightMargin: new s(r[3], r[8]),
1669
+ invoiceSectionLeftMargin: new s(r[3], r[8]),
1670
+ invoiceSectionRightMargin: new s(r[3], r[6]),
1671
+ rightSectionWidth: new s(100, 58),
1672
+ firstOrLastItemHeight: new s(390, 760),
1673
+ itemHeight: new s(390, 459),
1674
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
1675
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
1676
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
1677
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
1678
+ }, Ri = {
1679
+ total: new go("largeMedium", "h6Medium")
1680
+ }, {
1681
+ spendManagement: {
1682
+ reimbursement: { reimbursementDetail: D },
1683
+ billPay: {
1684
+ vendorCreation: { achDetails: Bt }
1685
+ }
1686
+ },
1687
+ common: {
1688
+ currency: { currencyCode: At }
1689
+ }
1690
+ } = we.getLocalizedStrings(), Mn = (e) => {
1691
+ let i = 0, a = At;
1692
+ if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
1693
+ const d = e;
1694
+ i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
1695
+ } else {
1696
+ const d = e;
1697
+ i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
1698
+ }
1699
+ return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
1700
+ }, zi = ({
1701
+ remiUploadStatus: e,
1702
+ progressSectionObj: i,
1703
+ reimbursementId: a,
1704
+ createDate: d,
1705
+ scheduleDate: p,
1706
+ paymentDate: v,
1707
+ hasDuplicateLine: m,
1708
+ approvedDate: S,
1709
+ isFirstOrLastListItem: x,
1710
+ index: l,
1711
+ reimbursementSectionRef: C,
1712
+ showSkipAutoFill: b,
1713
+ lineData: c,
1714
+ currencyConversionState: y,
1715
+ authParams: $,
1716
+ uploadInvoiceEndPoint: O,
1717
+ accountList: T,
1718
+ classList: P,
1719
+ merchantList: H,
1720
+ remiStage: B,
1721
+ autoFieldsByLineId: k,
1722
+ isReimbursementCommentingEnabled: M,
1723
+ isAutoFieldsExist: te,
1724
+ totalAmount: ne,
1725
+ showTotalAmountLoader: re,
1726
+ totalNumberOfLines: Y,
1727
+ defaultCurrency: K,
1728
+ bankAccounts: F,
1729
+ fileRequiredLineIds: J,
1730
+ isAddReimbursementDisabled: q,
1731
+ duplicateLineByLineId: L,
1732
+ remiStatus: ce,
1733
+ file: Q,
1734
+ uncategorizedAccounts: V,
1735
+ reportTitle: de,
1736
+ recommendationFetchState: _e,
1737
+ tentativeMerchantName: ue,
1738
+ paymentTo: fe,
1739
+ analytics: le,
1740
+ companyMileageConfigInfo: Be,
1741
+ loggedInUserDepartmentId: Ae,
1742
+ isSignedInUserReimbursementCreator: Le,
1743
+ setShowBankAccountPage: me,
1744
+ setRefByLineId: Me,
1745
+ setCurrentLineIdForUpload: pe,
1746
+ onDuplicateLineClick: ve,
1747
+ setUploadedReceiptPayload: Je,
1748
+ removeDuplicateReimbursementForLine: h,
1749
+ onReceiptsUpload: Ce,
1750
+ scrollToSection: he,
1751
+ onRemoveReimbursement: He,
1752
+ onAddReimbursement: Re,
1753
+ clearTentativeNameForLine: Qe,
1754
+ onReplaceClick: Fe,
1755
+ onDeleteBankAccount: Ke,
1756
+ updateInvoiceUploadFetchState: Ge,
1757
+ removeFileFromLine: Xe,
1758
+ allCurrencies: Ze,
1759
+ accountsHierarchyList: ie,
1760
+ classHierarchyList: lt
1761
+ }) => {
1762
+ const {
1763
+ formState: { errors: pt }
1764
+ } = at(), et = bt(null);
1765
+ ye(() => (Me((R) => ({
1766
+ ...R,
1767
+ [`L${c.lineId}`]: et.current
1768
+ })), () => {
1769
+ Me((R) => ({
1770
+ ...R,
1771
+ [`L${c.lineId}`]: null
1772
+ }));
1773
+ }), [c.lineId, Me]);
1774
+ const _ = ze(), ht = B === "draft" ? D.newReimbursementTitle : D.editReimbursementTitle, W = N.largeLabelWidth.value(_), se = (R) => R.outOfPocket.account.selectedOption == null && (R.outOfPocket.amount == null || R.outOfPocket.amount.amount == 0) && (R.outOfPocket.class.selectedOption == null || R.outOfPocket.class.selectedOption === Ae) && (R.outOfPocket.memo === "" || R.outOfPocket.memo == null) && R.outOfPocket.merchant.selectedOption == null && R.outOfPocket.transactionDate == null, Ct = F.map((R) => R.bankAccountId), Te = c.reimbursementType === D.outOfPocketKey && Mn(c) >= 75 && Q == null;
1775
+ return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
1776
+ /* @__PURE__ */ t.jsx(
1777
+ oa,
1778
+ {
1779
+ ref: (R) => {
1780
+ R != null && (et.current = R);
1781
+ },
1782
+ windowSize: _,
1783
+ bottomSeperator: Y !== 1,
1784
+ showSkipAutoFill: b,
1785
+ isFirstItem: l === 0,
1786
+ children: /* @__PURE__ */ t.jsx(
1787
+ Pn,
1788
+ {
1789
+ customError: Te ? D.requireReceipt : void 0,
1790
+ analytics: le,
1791
+ showAutofill: !1,
1792
+ uploadInvoiceEndPoint: O,
1793
+ authParams: $,
1794
+ entityId: q ? "" : void 0,
1795
+ file: Q,
1796
+ style: {
1797
+ width: "auto",
1798
+ padding: 0,
1799
+ height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
1800
+ margin: _ === "small" ? o.sp0 : void 0
1801
+ },
1802
+ updateInvoiceUploadFetchState: Ge,
1803
+ onInvoiceUpload: (R) => {
1804
+ c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
1805
+ R
1806
+ ), Fe?.()) : Ce(
1807
+ R,
1808
+ Number(c.lineId),
1809
+ !0
1810
+ );
1811
+ },
1812
+ dropFilePlaceholder: {
1813
+ upload: D.dropReceipt.upload,
1814
+ receipt: D.dropReceipt.receipt
1815
+ },
1816
+ showInfoText: !1,
1817
+ showTitlebar: !0,
1818
+ showTitlebarIcon: !q,
1819
+ pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
1820
+ onDeleteClick: () => {
1821
+ Ge?.("In-Progress"), setTimeout(() => Xe?.(Number(c.lineId)));
1822
+ },
1823
+ onReplaceClick: () => {
1824
+ pe(Number(c.lineId)), Fe?.();
1825
+ },
1826
+ allowMultiFiles: Y === l + 1,
1827
+ type: "reimbursement"
1828
+ }
1829
+ )
1830
+ }
1831
+ ),
1832
+ /* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
1833
+ l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1834
+ /* @__PURE__ */ t.jsx(Ui, { children: ht }),
1835
+ /* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
1836
+ $r,
1837
+ {
1838
+ progressSectionObj: i,
1839
+ createDate: d,
1840
+ paymentDate: v,
1841
+ scheduleDate: p,
1842
+ approvedDate: S,
1843
+ isBillUploaded: a != null ? !0 : e === "Completed"
1844
+ }
1845
+ ) }),
1846
+ te && /* @__PURE__ */ t.jsxs(Wi, { children: [
1847
+ /* @__PURE__ */ t.jsx(Fi, {}),
1848
+ /* @__PURE__ */ t.jsx(qi, { children: D.banner })
1849
+ ] }),
1850
+ m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
1851
+ /* @__PURE__ */ t.jsx(Ni, {}),
1852
+ /* @__PURE__ */ t.jsxs(_i, { children: [
1853
+ /* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
1854
+ /* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
1855
+ ] })
1856
+ ] }),
1857
+ /* @__PURE__ */ t.jsx(
1858
+ Ln,
1859
+ {
1860
+ isReimbursementCommentingEnabled: M,
1861
+ sectionId: Nt,
1862
+ reportTitle: de,
1863
+ reimbursementId: a
1864
+ }
1865
+ )
1866
+ ] }) : null,
1867
+ /* @__PURE__ */ t.jsx(
1868
+ fi,
1869
+ {
1870
+ analytics: le,
1871
+ reimbursementId: a,
1872
+ onDuplicateLineClick: ve,
1873
+ uncategorizedAccounts: V,
1874
+ sectionId: `${So}.${l}`,
1875
+ scrollToSection: he,
1876
+ lineIndex: l,
1877
+ lineData: c,
1878
+ accountList: T,
1879
+ classList: P,
1880
+ merchantList: H,
1881
+ autoFields: c.lineId != null ? k[c.lineId] : [],
1882
+ currencyConversionState: y,
1883
+ recommendationFetchState: _e,
1884
+ onRemoveReimbursement: He,
1885
+ hasMultipleLineItems: Y > 1,
1886
+ clearTentativeNameForLine: Qe,
1887
+ tentativeMerchantName: ue,
1888
+ hasFile: Q != null,
1889
+ companyMileageConfigInfo: Be,
1890
+ defaultCurrency: K,
1891
+ remiStage: B,
1892
+ remiStatus: ce,
1893
+ fileRequiredLineIds: J,
1894
+ allCurrencies: Ze,
1895
+ isReimbursementCommentingEnabled: M,
1896
+ isAddReimbursementDisabled: q,
1897
+ accountsHierarchyList: ie,
1898
+ classHierarchyList: lt,
1899
+ duplicateLineDetails: L[c.lineId],
1900
+ removeDuplicateReimbursementForLine: h
1901
+ }
1902
+ ),
1903
+ Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1904
+ /* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
1905
+ /* @__PURE__ */ t.jsx(Gi, { children: D.total }),
1906
+ re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
1907
+ vt,
1908
+ {
1909
+ size: "Standard",
1910
+ start: !0,
1911
+ style: { display: "flex" }
1912
+ }
1913
+ ) }) }) : /* @__PURE__ */ t.jsx(
1914
+ $n,
1915
+ {
1916
+ amount: hn(ne, "USD", "$"),
1917
+ integerStyles: Ft.h6Regular.cssObject,
1918
+ decimalStyles: Ft.standardRegular.cssObject
1919
+ }
1920
+ )
1921
+ ] }),
1922
+ /* @__PURE__ */ t.jsxs(
1923
+ Xi,
1924
+ {
1925
+ windowSize: _,
1926
+ onClick: () => {
1927
+ q === !1 && Re();
1928
+ },
1929
+ isDisabled: q,
1930
+ "data-testid": U("add-reimbursement-row"),
1931
+ children: [
1932
+ /* @__PURE__ */ t.jsx(Uo, {}),
1933
+ /* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
1934
+ ]
1935
+ }
1936
+ ),
1937
+ Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1938
+ /* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
1939
+ /* @__PURE__ */ t.jsx(
1940
+ Qi,
1941
+ {
1942
+ windowSize: _,
1943
+ shouldDisplay: F.length > 0,
1944
+ children: /* @__PURE__ */ t.jsx(
1945
+ Sn,
1946
+ {
1947
+ label: {
1948
+ label: D.yourBankAccount,
1949
+ width: W
1950
+ },
1951
+ style: {
1952
+ width: "auto"
1953
+ },
1954
+ singleSelectField: {
1955
+ singleSelect: {
1956
+ name: wt,
1957
+ placeholder: rt(
1958
+ D.yourBankAccount
1959
+ ),
1960
+ showValueEyeIcon: !q,
1961
+ menuPlacement: "top",
1962
+ maxMenuHeight: 308,
1963
+ showEyeIconOnSelect: !1,
1964
+ onDelete: Ke,
1965
+ getTooltipInfo: (R) => Rn(F, R),
1966
+ onClickCreateBankAccount: () => me(!0),
1967
+ getLabelForId: (R) => Fn(F, R),
1968
+ isOptionRemovable: !1,
1969
+ showDeleteIcon: !0,
1970
+ showAddBankAccountOption: !0,
1971
+ isDisabled: q ? "readonly" : void 0,
1972
+ showTickMark: !1,
1973
+ alwaysShowEyeTooltip: !0
1974
+ },
1975
+ defaultValue: {
1976
+ selectedOption: fe,
1977
+ allOptions: Ct
1978
+ },
1979
+ registerOptions: {
1980
+ required: !0,
1981
+ validate: (R) => !!R.selectedOption
1982
+ }
1983
+ },
1984
+ isFunctional: !0
1985
+ }
1986
+ )
1987
+ }
1988
+ ),
1989
+ /* @__PURE__ */ t.jsxs(
1990
+ Zi,
1991
+ {
1992
+ shouldDisplay: F.length === 0,
1993
+ windowSize: _,
1994
+ hasError: Pe(pt, wt),
1995
+ onClick: () => {
1996
+ q === !1 && me(!0);
1997
+ },
1998
+ isDisabled: q,
1999
+ "data-testid": U(
2000
+ "remi-add-bank-account-container"
2001
+ ),
2002
+ children: [
2003
+ /* @__PURE__ */ t.jsx(Uo, {}),
2004
+ /* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
2005
+ ]
2006
+ }
2007
+ )
2008
+ ] }) : null
2009
+ ] })
2010
+ ] })
2011
+ ] });
2012
+ }, Rn = (e, i) => {
2013
+ const a = zn(e, i);
2014
+ return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
2015
+ ${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
2016
+ ${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
2017
+ }, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
2018
+ const a = zn(e, i);
2019
+ return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
2020
+ a.bankAccountNumber.length - 4
2021
+ )}` : D.selectBankAccount;
2022
+ }, Fi = n(fo)`
2023
+ color: ${(e) => e.theme.colors.primary};
2024
+ width: ${o.sp3};
2025
+ height: ${o.sp3};
2026
+ `, Ni = n(vr)`
2027
+ width: ${o.sp4};
2028
+ height: ${o.sp4};
2029
+ color: ${I.brandColorGoldDark};
2030
+ `, Wi = n.div`
2031
+ display: flex;
2032
+ gap: ${o.sp2};
2033
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2034
+ padding: ${o.sp3};
2035
+ border-radius: ${o.sp2};
2036
+ align-items: center;
2037
+ margin: 0 ${o.sp8} 0 ${o.sp6};
2038
+ `, Ei = n.div`
2039
+ display: flex;
2040
+ gap: ${o.sp2};
2041
+ padding: ${o.sp3};
2042
+ border-radius: ${o.sp2};
2043
+ align-items: start;
2044
+ margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
2045
+ margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
2046
+ margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
2047
+ margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
2048
+ background-color: ${I.alertLight};
2049
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
2050
+ `, Vi = n(_t)`
2051
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2052
+ `, _i = n.div`
2053
+ width: 100%;
2054
+ `, Di = n(xo)`
2055
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2056
+ `, qi = n.span`
2057
+ color: ${(e) => e.theme.colors.hero};
2058
+ `, Ui = n(Sr)`
2059
+ letter-spacing: -0.02em;
2060
+ color: ${(e) => e.theme.colors.primary};
2061
+ margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
2062
+ `, Hi = n(Vt)`
2063
+ letter-spacing: -0.02em;
2064
+ color: ${(e) => e.theme.colors.primary};
2065
+ margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
2066
+ margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
2067
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2068
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2069
+ `, Ki = n.div`
2070
+ padding: ${o.sp3};
2071
+ display: flex;
2072
+ align-items: center;
2073
+ justify-content: space-between;
2074
+ background-color: ${(e) => e.theme.colors.grey3};
2075
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2076
+ border-radius: ${o.sp2};
2077
+ color: ${(e) => e.theme.colors.hero};
2078
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2079
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2080
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2081
+ margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2082
+ justify-content: space-between;
2083
+ `, Gi = n(vn)`
2084
+ display: flex;
2085
+ width: 176px;
2086
+ color: ${(e) => e.theme.colors.primary};
2087
+ `, Yi = n(Cn)`
2088
+ display: flex;
2089
+ width: calc(100% - 176px);
2090
+ justify-content: flex-end;
2091
+ color: ${(e) => e.theme.colors.primary};
2092
+ ${(e) => `${Ri.total.style(e.windowSize)}`};
2093
+ `, Ji = n.div`
2094
+ padding-right: ${o.sp3};
2095
+ height: 30px;
2096
+ display: flex;
2097
+ justify-content: flex-end;
2098
+ `, Qi = n.div`
2099
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2100
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2101
+ margin-bottom: ${o.sp3};
2102
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2103
+ border-radius: ${o.sp2};
2104
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2105
+ display: ${(e) => e.shouldDisplay ? "unset" : "none"};
2106
+ `, Xi = n.div`
2107
+ padding: ${o.sp3};
2108
+ display: flex;
2109
+ align-items: center;
2110
+ justify-content: center;
2111
+ border: 1px solid
2112
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2113
+ border-radius: ${o.sp2};
2114
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2115
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2116
+ &:hover {
2117
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2118
+ border: 1px solid
2119
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2120
+ }
2121
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2122
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2123
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2124
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2125
+ `, Zi = n.div`
2126
+ padding: ${o.sp3};
2127
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2128
+ align-items: center;
2129
+ justify-content: center;
2130
+ border: 1px solid
2131
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2132
+ border-radius: ${o.sp2};
2133
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2134
+ cursor: pointer;
2135
+ &:hover {
2136
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2137
+ border: 1px solid
2138
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2139
+ }
2140
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2141
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2142
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2143
+ `, qo = n(_t)`
2144
+ color: inherit;
2145
+ `, Uo = n(Tn)`
2146
+ margin-right: ${o.sp2};
2147
+ width: ${o.sp3};
2148
+ height: ${o.sp3};
2149
+ `, ea = n.div`
2150
+ display: flex;
2151
+ flex-direction: column;
2152
+ width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
2153
+ `, ta = n.div`
2154
+ display: flex;
2155
+ width: 100%;
2156
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
2157
+ `, oa = n.div`
2158
+ height: 100%;
2159
+ background: ${(e) => e.theme.colors.grey3};
2160
+ border-radius: ${o.sp2};
2161
+ width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
2162
+ margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
2163
+ margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
2164
+ visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
2165
+ margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
2166
+ margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
2167
+ `, na = n.div`
2168
+ padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
2169
+ `, ra = {
2170
+ total: new go("largeMedium", "h6Medium")
2171
+ }, Z = {
2172
+ largeLabelWidth: new s(120, 120, 220),
2173
+ marginBottom: new s(r[5], r[4]),
2174
+ addBankAccountMarginBottom: new s(r[5], r[5]),
2175
+ marginTop: new s(r[0], 78),
2176
+ paymentToMarginTop: new s(0, r[4]),
2177
+ totalMarginBottom: new s(r[3], r[3]),
2178
+ rightMargin: new s(r[3], r[8]),
2179
+ leftMargin: new s(r[3], r[6]),
2180
+ paymentToMarginBottom: new s(12, r[3])
2181
+ }, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
2182
+ remiDetails: e,
2183
+ isUserAdmin: i,
2184
+ authParams: a,
2185
+ uploadInvoiceEndPoint: d,
2186
+ showSkipAutoFill: p,
2187
+ isReimbursementCommentingEnabled: v,
2188
+ isAutoFieldsExist: m,
2189
+ totalAmount: S,
2190
+ defaultCurrency: x,
2191
+ hasDuplicateLine: l,
2192
+ bankAccounts: C,
2193
+ fileRequiredLineIds: b,
2194
+ companyMileageConfigInfo: c,
2195
+ analytics: y,
2196
+ reimbursementId: $,
2197
+ currencyConversionStatus: O,
2198
+ setShowSkipAutoFill: T,
2199
+ setShowBankAccountPage: P,
2200
+ removeDuplicateReimbursementForLine: H,
2201
+ onReceiptsUpload: B,
2202
+ setCurrentLineIdForUpload: k,
2203
+ onDuplicateLineClick: M,
2204
+ setUploadedReceiptPayload: te,
2205
+ removeFileFromLine: ne,
2206
+ onReplaceClick: re,
2207
+ updateInvoiceUploadFetchState: Y,
2208
+ clearTentativeNameForLine: K,
2209
+ onDeleteBankAccount: F,
2210
+ uncategorizedAccounts: J,
2211
+ isSignedInUserReimbursementCreator: q,
2212
+ duplicateLineByLineId: L,
2213
+ showTotalAmountLoader: ce,
2214
+ scrollContainerRef: Q
2215
+ }) => {
2216
+ const {
2217
+ control: V,
2218
+ formState: { errors: de }
2219
+ } = at(), { fields: _e, append: ue, remove: fe } = cr({
2220
+ name: So,
2221
+ control: V
2222
+ }), le = _e, Be = bt(null), Ae = (W) => {
2223
+ setTimeout(() => {
2224
+ fe(W);
2225
+ });
2226
+ }, { tentativeMerchantNameByLineId: Le, remiStage: me, remiStatus: Me } = e, pe = !q || me === "pending_approval" && Me !== "rejected" && i || me === "pending_approval" && Me === "rejected", ve = pe ? e.paymentToBankAccountDetail != null ? [e.paymentToBankAccountDetail] : [] : C, Je = ve.map((W) => W.bankAccountId), h = ze(), Ce = Z.largeLabelWidth.value(h), he = e.whatForSection.reportTitle, He = e.accountList.accounts, Re = e.accountsHierarchyList, Qe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Xe = Math.max(
2227
+ ...Object.keys(
2228
+ e.editRemiInitialDetails?.lineDetailSection ?? {}
2229
+ ).map((W) => Number(W)),
2230
+ 0
2231
+ ), Ze = () => {
2232
+ const W = le[le.length - 1], se = Nn(
2233
+ le.length,
2234
+ Number(W.lineId) > Xe ? String(Number(W.lineId) + 1) : String(Xe + 1),
2235
+ Re,
2236
+ Qe,
2237
+ Ke,
2238
+ x,
2239
+ e.allCurrencies,
2240
+ e.loggedInUserDepartmentId
2241
+ );
2242
+ setTimeout(() => {
2243
+ ue(se, { shouldFocus: !1 });
2244
+ }), k(Number(se.lineId)), T(!0), setTimeout(
2245
+ () => Wo(
2246
+ Be.current,
2247
+ Q?.current
2248
+ ),
2249
+ 50
2250
+ );
2251
+ }, [ie, lt] = X({}), pt = pn(
2252
+ (W) => {
2253
+ const se = ie[`L${W}`];
2254
+ se != null && Wo(se, Q?.current);
2255
+ },
2256
+ [ie, Q]
2257
+ ), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
2258
+ gn(
2259
+ e.reimbursementInfo.paymentDate.toDate(),
2260
+ [0, 6],
2261
+ e.achSameDayMaxDays
2262
+ ).toDateString()
2263
+ ) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
2264
+ return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
2265
+ le.map((W, se) => /* @__PURE__ */ t.jsx(
2266
+ zi,
2267
+ {
2268
+ removeDuplicateReimbursementForLine: H,
2269
+ onDuplicateLineClick: M,
2270
+ scrollToSection: pt,
2271
+ setRefByLineId: lt,
2272
+ duplicateLineByLineId: L,
2273
+ reimbursementId: $,
2274
+ remiUploadStatus: e.uploadStatus,
2275
+ uncategorizedAccounts: J,
2276
+ progressSectionObj: et,
2277
+ createDate: e.createTime,
2278
+ paymentDate: ht,
2279
+ scheduleDate: e.reimbursementInfo?.paymentDate,
2280
+ approvedDate: e.latestApprovedDate,
2281
+ isFirstOrLastListItem: le.length - 1 === se || se === 0,
2282
+ index: se,
2283
+ reimbursementSectionRef: Be,
2284
+ remiStage: me,
2285
+ remiStatus: Me,
2286
+ authParams: a,
2287
+ file: W.file,
2288
+ uploadInvoiceEndPoint: d,
2289
+ showSkipAutoFill: p,
2290
+ lineData: W,
2291
+ currencyConversionState: O[W.lineId],
2292
+ recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
2293
+ setCurrentLineIdForUpload: k,
2294
+ setUploadedReceiptPayload: te,
2295
+ onReplaceClick: re,
2296
+ onReceiptsUpload: B,
2297
+ removeFileFromLine: ne,
2298
+ isReimbursementCommentingEnabled: v,
2299
+ isAutoFieldsExist: m,
2300
+ reportTitle: he,
2301
+ accountList: He,
2302
+ classList: Fe,
2303
+ merchantList: Ke,
2304
+ autoFieldsByLineId: Ge,
2305
+ onRemoveReimbursement: Ae,
2306
+ onAddReimbursement: Ze,
2307
+ totalAmount: S,
2308
+ showTotalAmountLoader: ce,
2309
+ hasDuplicateLine: l,
2310
+ totalNumberOfLines: le.length,
2311
+ updateInvoiceUploadFetchState: Y,
2312
+ clearTentativeNameForLine: K,
2313
+ tentativeMerchantName: Le[W.lineId],
2314
+ companyMileageConfigInfo: c,
2315
+ defaultCurrency: x,
2316
+ setShowBankAccountPage: P,
2317
+ paymentTo: e.paymentTo,
2318
+ bankAccounts: ve,
2319
+ onDeleteBankAccount: F,
2320
+ analytics: y,
2321
+ fileRequiredLineIds: b,
2322
+ allCurrencies: e.allCurrencies,
2323
+ loggedInUserDepartmentId: e.loggedInUserDepartmentId,
2324
+ isAddReimbursementDisabled: pe,
2325
+ accountsHierarchyList: Re,
2326
+ classHierarchyList: Qe,
2327
+ isSignedInUserReimbursementCreator: q
2328
+ },
2329
+ W.lineId
2330
+ )),
2331
+ le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2332
+ /* @__PURE__ */ t.jsxs(to, { children: [
2333
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2334
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
2335
+ /* @__PURE__ */ t.jsx(ua, { children: nt.total }),
2336
+ ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
2337
+ vt,
2338
+ {
2339
+ size: "Standard",
2340
+ start: !0,
2341
+ style: { display: "flex" }
2342
+ }
2343
+ ) }) }) : /* @__PURE__ */ t.jsx(
2344
+ $n,
2345
+ {
2346
+ amount: hn(
2347
+ S,
2348
+ Ao.currencyCode,
2349
+ Ao.currencySymbol
2350
+ ),
2351
+ integerStyles: Ft.h6Regular.cssObject,
2352
+ decimalStyles: Ft.standardRegular.cssObject
2353
+ }
2354
+ )
2355
+ ] }) })
2356
+ ] }),
2357
+ /* @__PURE__ */ t.jsxs(to, { children: [
2358
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2359
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
2360
+ ga,
2361
+ {
2362
+ windowSize: h,
2363
+ onClick: () => {
2364
+ pe === !1 && Ze();
2365
+ },
2366
+ isDisabled: pe,
2367
+ "data-testid": U("add-reimbursement-container"),
2368
+ children: [
2369
+ /* @__PURE__ */ t.jsx(Ko, {}),
2370
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
2371
+ ]
2372
+ }
2373
+ ) })
2374
+ ] }),
2375
+ /* @__PURE__ */ t.jsxs(to, { children: [
2376
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2377
+ q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
2378
+ /* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
2379
+ /* @__PURE__ */ t.jsx(
2380
+ sa,
2381
+ {
2382
+ windowSize: h,
2383
+ shouldDisplay: ve.length > 0,
2384
+ children: /* @__PURE__ */ t.jsx(
2385
+ Sn,
2386
+ {
2387
+ label: {
2388
+ label: nt.yourBankAccount,
2389
+ width: Ce
2390
+ },
2391
+ style: {
2392
+ width: "auto"
2393
+ },
2394
+ singleSelectField: {
2395
+ singleSelect: {
2396
+ name: wt,
2397
+ placeholder: rt(
2398
+ nt.yourBankAccount
2399
+ ),
2400
+ showValueEyeIcon: !pe,
2401
+ menuPlacement: "top",
2402
+ maxMenuHeight: 308,
2403
+ showEyeIconOnSelect: !1,
2404
+ onDelete: F,
2405
+ getTooltipInfo: (W) => Rn(ve, W),
2406
+ onClickCreateBankAccount: () => P(!0),
2407
+ getLabelForId: (W) => Fn(ve, W),
2408
+ isOptionRemovable: !1,
2409
+ showDeleteIcon: !0,
2410
+ showAddBankAccountOption: !0,
2411
+ isDisabled: pe ? "readonly" : void 0,
2412
+ showTickMark: !1,
2413
+ alwaysShowEyeTooltip: !0
2414
+ },
2415
+ defaultValue: {
2416
+ selectedOption: e.paymentTo,
2417
+ allOptions: Je
2418
+ },
2419
+ registerOptions: {
2420
+ required: !0,
2421
+ validate: (W) => !!W.selectedOption
2422
+ }
2423
+ },
2424
+ isFunctional: !0
2425
+ }
2426
+ )
2427
+ }
2428
+ ),
2429
+ /* @__PURE__ */ t.jsxs(
2430
+ ya,
2431
+ {
2432
+ shouldDisplay: ve.length === 0,
2433
+ windowSize: h,
2434
+ onClick: () => {
2435
+ pe === !1 && P(!0);
2436
+ },
2437
+ hasError: Pe(de, wt),
2438
+ isDisabled: pe,
2439
+ "data-testid": U(
2440
+ "remi-add-bank-account-container"
2441
+ ),
2442
+ children: [
2443
+ /* @__PURE__ */ t.jsx(Ko, {}),
2444
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
2445
+ ]
2446
+ }
2447
+ )
2448
+ ] }) : null
2449
+ ] })
2450
+ ] })
2451
+ ] });
2452
+ }, Nn = (e, i, a, d, p, v, m, S) => {
2453
+ const x = aa(
2454
+ a,
2455
+ d,
2456
+ p,
2457
+ v,
2458
+ m,
2459
+ S
2460
+ );
2461
+ return {
2462
+ lineIndex: e,
2463
+ lineId: i,
2464
+ reimbursementType: nt.outOfPocketKey,
2465
+ file: void 0,
2466
+ outOfPocket: x,
2467
+ mileage: la(
2468
+ d,
2469
+ v,
2470
+ S
2471
+ )
2472
+ };
2473
+ }, aa = (e, i, a, d, p, v) => ({
2474
+ transactionDate: void 0,
2475
+ class: {
2476
+ allOptions: Ue(
2477
+ Ye(i, [])
2478
+ ),
2479
+ selectedOption: v
2480
+ },
2481
+ account: {
2482
+ allOptions: Ue(
2483
+ Et(e, [])
2484
+ ),
2485
+ selectedOption: void 0
2486
+ },
2487
+ amount: {
2488
+ amount: 0,
2489
+ currencyCode: d.currencyCode,
2490
+ currencySymbol: d.currencySymbol,
2491
+ currency: {
2492
+ allOptions: p.map((m) => ({
2493
+ label: `${m.currencyCode} - ${m.currency}`,
2494
+ value: m.currencyCode,
2495
+ countryCode: bo(
2496
+ m.countryCode
2497
+ )
2498
+ })),
2499
+ selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
2500
+ }
2501
+ },
2502
+ memo: void 0,
2503
+ merchant: {
2504
+ allOptions: a.map((m) => m.id).filter((m) => !!m),
2505
+ selectedOption: void 0
2506
+ },
2507
+ recommendations: [],
2508
+ isCategoryUpdateSelected: !1,
2509
+ isCategoryFirstTimeAutofilled: !1,
2510
+ isRetainedCategorySelected: !1
2511
+ }), la = (e, i, a) => ({
2512
+ transactionDate: void 0,
2513
+ class: {
2514
+ allOptions: Ue(
2515
+ Ye(e, [])
2516
+ ),
2517
+ selectedOption: a
2518
+ },
2519
+ distanceInMiles: void 0,
2520
+ amount: {
2521
+ amount: 0,
2522
+ currencyCode: i.currencyCode,
2523
+ currencySymbol: i.currencySymbol
2524
+ },
2525
+ memo: void 0
2526
+ }), sa = n.div`
2527
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2528
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2529
+ margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2530
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2531
+ border-radius: ${o.sp2};
2532
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2533
+ display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
2534
+ `, Zt = n.div`
2535
+ width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
2536
+ `, eo = n.div`
2537
+ width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
2538
+ `, ca = n.div`
2539
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
2540
+ flex-direction: column;
2541
+ margin-top: ${(e) => Z.marginTop.valuePx(e.windowSize)};
2542
+ `, da = n.div`
2543
+ padding: ${o.sp3};
2544
+ display: flex;
2545
+ align-items: center;
2546
+ justify-content: space-between;
2547
+ background-color: ${(e) => e.theme.colors.grey3};
2548
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2549
+ border-radius: ${o.sp2};
2550
+ color: ${(e) => e.theme.colors.hero};
2551
+ margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2552
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2553
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2554
+ margin-bottom: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2555
+ `, ua = n(vn)`
2556
+ display: flex;
2557
+ width: 176px;
2558
+ color: ${(e) => e.theme.colors.primary};
2559
+ `, ma = n(Vt)`
2560
+ color: ${(e) => e.theme.colors.primary};
2561
+ margin-top: ${(e) => Z.paymentToMarginTop.valuePx(e.windowSize)};
2562
+ margin-bottom: ${(e) => Z.paymentToMarginBottom.valuePx(e.windowSize)};
2563
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2564
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2565
+ `, pa = n(Cn)`
2566
+ display: flex;
2567
+ width: calc(100% - 176px);
2568
+ justify-content: flex-end;
2569
+ color: ${(e) => e.theme.colors.primary};
2570
+ ${(e) => `${ra.total.style(e.windowSize)}`};
2571
+ `, ha = n.div`
2572
+ padding-right: ${o.sp3};
2573
+ height: 30px;
2574
+ display: flex;
2575
+ justify-content: flex-end;
2576
+ `, ga = n.div`
2577
+ padding: ${o.sp3};
2578
+ display: flex;
2579
+ align-items: center;
2580
+ justify-content: center;
2581
+ border: 1px solid
2582
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2583
+ border-radius: ${o.sp2};
2584
+
2585
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2586
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2587
+ &:hover {
2588
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2589
+ border: 1px solid
2590
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2591
+ }
2592
+ margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2593
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2594
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2595
+ margin-bottom: ${(e) => Z.marginBottom.valuePx(e.windowSize)};
2596
+ `, ya = n.div`
2597
+ padding: ${o.sp3};
2598
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2599
+ align-items: center;
2600
+ justify-content: center;
2601
+ border: 1px solid
2602
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2603
+ border-radius: ${o.sp2};
2604
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2605
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2606
+ &:hover {
2607
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2608
+ border: 1px solid
2609
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2610
+ }
2611
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2612
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2613
+ margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2614
+ `, Ho = n(_t)`
2615
+ color: inherit;
2616
+ `, Ko = n(Tn)`
2617
+ margin-right: ${o.sp2};
2618
+ width: ${o.sp3};
2619
+ height: ${o.sp3};
2620
+ `, to = n.div`
2621
+ display: flex;
2622
+ width: 100%;
2623
+ `, Ve = {
2624
+ buttonWidth: new s(140, 140),
2625
+ paddingLeft: new s(r[3], r[6]),
2626
+ paddingRight: new s(r[3], r[8]),
2627
+ marginbottom: new s(r[4], r[5]),
2628
+ subTitleMarginbottom: new s(r[2], r[3]),
2629
+ orSeperatorTopBottomMargin: new s(r[6], 44),
2630
+ iconWidthHeight: new s(20, r[4])
2631
+ }, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
2632
+ [Rt]: {
2633
+ bankRoutingNumber: e?.bankRoutingNumber,
2634
+ bankName: e?.bankName,
2635
+ bankAccountNumber: e?.bankAccountNumber,
2636
+ confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
2637
+ bankAccountName: e?.bankAccountName
2638
+ }
2639
+ }), Yo = (e) => `${e}_form`, xa = ({
2640
+ bankAccountCreationState: e,
2641
+ setShowBankAccountPage: i,
2642
+ plaidConnectionDetails: a,
2643
+ onFetchLinkTokenClick: d,
2644
+ onEstablishConnectionClick: p,
2645
+ bankAccountToCreate: v,
2646
+ fetchBankNameByRoutingStatus: m,
2647
+ isDisabled: S,
2648
+ onSaveHandler: x,
2649
+ onUserBankDetailsUpdated: l,
2650
+ onFetchBankName: C,
2651
+ onBackClick: b
2652
+ }) => {
2653
+ const c = $t(), y = ze(), $ = un({
2654
+ mode: "onBlur",
2655
+ reValidateMode: "onChange",
2656
+ defaultValues: xt(
2657
+ () => fa(v),
2658
+ [v]
2659
+ )
2660
+ }), O = pn(
2661
+ (K) => {
2662
+ p?.(K), b();
2663
+ },
2664
+ [b, p]
2665
+ ), T = a.link_account_no_microdeposit, { open: P } = dr({
2666
+ token: T.linkToken ?? null,
2667
+ onSuccess: O
2668
+ });
2669
+ ye(() => {
2670
+ (it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
2671
+ }, []);
2672
+ const [H, B] = X(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
2673
+ onOkClick: () => {
2674
+ B(!1), $.reset(), b();
2675
+ },
2676
+ onCancelClick: () => {
2677
+ B(!1);
2678
+ }
2679
+ }, ne = async (K, F) => {
2680
+ const J = F[Rt].bankRoutingNumber;
2681
+ l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && kr.test(J) === !0 && C?.(J);
2682
+ };
2683
+ ye(() => {
2684
+ const K = $.watch((F, { name: J }) => {
2685
+ J != null && F != null && ur(() => ne(J, F));
2686
+ });
2687
+ return () => {
2688
+ K.unsubscribe();
2689
+ };
2690
+ }), ye(() => {
2691
+ e?.fetchState === "Completed" && b();
2692
+ }, [
2693
+ e?.fetchState,
2694
+ b,
2695
+ i
2696
+ ]);
2697
+ const re = $.handleSubmit((K) => {
2698
+ m.fetchState !== "In-Progress" && x();
2699
+ }), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
2700
+ return /* @__PURE__ */ t.jsxs(ba, { children: [
2701
+ /* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
2702
+ H === !0 ? /* @__PURE__ */ t.jsx(
2703
+ wo,
2704
+ {
2705
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
2706
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
2707
+ primaryButtonText: k.buttons.delete,
2708
+ secondaryButtonText: k.buttons.cancel,
2709
+ action: te
2710
+ }
2711
+ ) : null,
2712
+ /* @__PURE__ */ t.jsx(
2713
+ Gr,
2714
+ {
2715
+ header: k.addBankAccount,
2716
+ isDirty: $.formState.isDirty,
2717
+ onBackClick: b,
2718
+ setShowConfirmationPopup: B
2719
+ }
2720
+ ),
2721
+ /* @__PURE__ */ t.jsx(wa, {}),
2722
+ /* @__PURE__ */ t.jsxs(ja, { size: y, children: [
2723
+ /* @__PURE__ */ t.jsx(
2724
+ Cr,
2725
+ {
2726
+ onClick: () => {
2727
+ $.reset(), P();
2728
+ },
2729
+ title: k.connectYourBank,
2730
+ subTitle: k.loginToBank,
2731
+ header: k.setupAchPayments,
2732
+ icon: {
2733
+ element: /* @__PURE__ */ t.jsx(
2734
+ Tr,
2735
+ {
2736
+ width: Ve.iconWidthHeight.valuePx(y),
2737
+ height: Ve.iconWidthHeight.valuePx(y)
2738
+ }
2739
+ ),
2740
+ color: Y
2741
+ },
2742
+ style: {
2743
+ width: "unset",
2744
+ rowGap: y === "small" ? o.sp2 : void 0
2745
+ }
2746
+ }
2747
+ ),
2748
+ /* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
2749
+ /* @__PURE__ */ t.jsx(Sa, {}),
2750
+ /* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
2751
+ ] }),
2752
+ /* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
2753
+ ] }),
2754
+ /* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
2755
+ e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
2756
+ Yr,
2757
+ {
2758
+ warningText: k.accountExistWarning
2759
+ }
2760
+ ) : null,
2761
+ /* @__PURE__ */ t.jsx(
2762
+ Kr,
2763
+ {
2764
+ bankAccountToCreate: v,
2765
+ fetchBankNameByRoutingStatus: m,
2766
+ sectionId: Rt
2767
+ }
2768
+ )
2769
+ ] }) }) })
2770
+ ] }),
2771
+ /* @__PURE__ */ t.jsx(
2772
+ In,
2773
+ {
2774
+ formId: Yo(Go),
2775
+ primaryBtn: {
2776
+ label: k.saveAccount,
2777
+ isLoading: e.fetchState === "In-Progress",
2778
+ style: { width: Ve.buttonWidth.value(y) },
2779
+ isDisabled: S != null
2780
+ },
2781
+ cancelBtn: {
2782
+ label: M.cancel,
2783
+ style: { width: Ve.buttonWidth.value(y) },
2784
+ shouldResetOnCancel: !1,
2785
+ onClick: () => {
2786
+ $.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
2787
+ }
2788
+ }
2789
+ }
2790
+ )
2791
+ ] });
2792
+ }, ba = n.div`
2793
+ display: flex;
2794
+ flex-direction: column;
2795
+ width: 100%;
2796
+ height: 100%;
2797
+ `, wa = n.div`
2798
+ margin: ${o.sp2} 0;
2799
+ position: relative;
2800
+ `, $a = n.div`
2801
+ margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
2802
+ position: relative;
2803
+ `, Sa = n.div`
2804
+ background: ${(e) => e.theme.colors.grey2};
2805
+ height: 1px;
2806
+ `, va = n(jr)`
2807
+ color: ${(e) => e.theme.colors.primary};
2808
+ margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
2809
+ `, Ca = n.div`
2810
+ display: flex;
2811
+ justify-content: center;
2812
+ `, Ta = n(yo)`
2813
+ background: ${(e) => e.theme.colors.background};
2814
+ border: 1px solid ${(e) => e.theme.colors.grey2};
2815
+ border-radius: ${o.sp5};
2816
+ width: 43px;
2817
+ height: 25px;
2818
+ display: flex;
2819
+ align-items: center;
2820
+ justify-content: center;
2821
+ color: ${(e) => e.theme.colors.grey1};
2822
+ top: -11px;
2823
+ position: absolute;
2824
+ `, ka = n.div`
2825
+ display: flex;
2826
+ flex-direction: column;
2827
+ flex-grow: 1;
2828
+ `, ja = n.div`
2829
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2830
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2831
+ `, Ia = n.div`
2832
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2833
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2834
+ padding-bottom: ${o.sp3};
2835
+ `, Oe = {
2836
+ containerWidth: new s(343, 544),
2837
+ confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
2838
+ confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
2839
+ submitButtonWidth: new s(145, 156),
2840
+ cancelButtonWidth: new s(121, 121),
2841
+ errorLineItemGap: new s(r[2], 12),
2842
+ styledCloseIconRight: new s(r[3], r[8])
2843
+ }, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Qo = ({ fetchState: e }) => {
2844
+ switch (e) {
2845
+ case "Not-Started":
2846
+ return /* @__PURE__ */ t.jsx(Zo, {});
2847
+ case "In-Progress":
2848
+ return /* @__PURE__ */ t.jsx(
2849
+ vt,
2850
+ {
2851
+ size: "Small",
2852
+ start: !0,
2853
+ style: {
2854
+ alignItems: "center",
2855
+ display: "flex"
2856
+ }
2857
+ }
2858
+ );
2859
+ case "Completed":
2860
+ return /* @__PURE__ */ t.jsx(Wn, {});
2861
+ default:
2862
+ return /* @__PURE__ */ t.jsx(Zo, {});
2863
+ }
2864
+ }, Oa = (e) => {
2865
+ switch (e) {
2866
+ case "Not-Started":
2867
+ return be.detectDuplicates;
2868
+ case "In-Progress":
2869
+ return be.detectingDuplicates;
2870
+ case "Completed":
2871
+ return be.noDuplicatesFound;
2872
+ default:
2873
+ return be.detectDuplicates;
2874
+ }
2875
+ }, Pa = ({
2876
+ submitFetchState: e,
2877
+ duplicateReimbursementStatus: i,
2878
+ hasDuplicateLine: a,
2879
+ numberOfDuplicateLines: d,
2880
+ setShowDuplicatePopup: p,
2881
+ analytics: v,
2882
+ reimbursementId: m,
2883
+ submitReport: S,
2884
+ fetchDuplicateReimbursement: x,
2885
+ clearDuplicateReimbursementDetail: l,
2886
+ clearRemiSaveStatus: C
2887
+ }) => {
2888
+ const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
2889
+ i
2890
+ );
2891
+ It.useEffect(() => {
2892
+ setTimeout(() => {
2893
+ c && (y(!1), i === "Not-Started" && x());
2894
+ }, 2e3);
2895
+ }, [
2896
+ i,
2897
+ x,
2898
+ c
2899
+ ]), It.useEffect(() => {
2900
+ $ === "In-Progress" && e === "Completed" && (l(), p(!1));
2901
+ }, [
2902
+ e,
2903
+ $,
2904
+ p,
2905
+ l
2906
+ ]), It.useEffect(() => {
2907
+ O === "In-Progress" && i === "Completed" && !a && S();
2908
+ }, [
2909
+ O,
2910
+ i,
2911
+ a,
2912
+ S
2913
+ ]);
2914
+ const T = i === "Error" || e === "Error";
2915
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2916
+ T ? (
2917
+ //onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
2918
+ /* @__PURE__ */ t.jsx(Ba, { size: b })
2919
+ ) : null,
2920
+ /* @__PURE__ */ t.jsx(
2921
+ wo,
2922
+ {
2923
+ action: {
2924
+ onOkClick: () => {
2925
+ T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
2926
+ d,
2927
+ m
2928
+ ), p(!1), Ir());
2929
+ },
2930
+ onCancelClick: () => {
2931
+ T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
2932
+ d,
2933
+ m
2934
+ ), S());
2935
+ }
2936
+ },
2937
+ shouldClickAway: T,
2938
+ isSecondaryLoading: e === "In-Progress",
2939
+ secondaryButtonVariant: "secondary",
2940
+ primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
2941
+ secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
2942
+ primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2943
+ secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2944
+ descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
2945
+ Aa,
2946
+ {
2947
+ hasDuplicate: a,
2948
+ duplicateReimbursementStatus: i,
2949
+ children: [
2950
+ /* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
2951
+ c ? /* @__PURE__ */ t.jsx(
2952
+ vt,
2953
+ {
2954
+ size: "Small",
2955
+ start: !0,
2956
+ style: {
2957
+ alignItems: "center",
2958
+ display: "flex"
2959
+ }
2960
+ }
2961
+ ) : /* @__PURE__ */ t.jsx(Wn, {}),
2962
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
2963
+ ] }),
2964
+ a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2965
+ /* @__PURE__ */ t.jsx(Xo, {}),
2966
+ /* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
2967
+ ] }) : /* @__PURE__ */ t.jsxs(
2968
+ no,
2969
+ {
2970
+ isDisabled: i === "Not-Started",
2971
+ isSuccess: i === "Completed" && d === 0,
2972
+ children: [
2973
+ /* @__PURE__ */ t.jsx(Qo, { fetchState: i }),
2974
+ /* @__PURE__ */ t.jsx(
2975
+ oo,
2976
+ {
2977
+ isDisabled: i === "Not-Started",
2978
+ children: Oa(i)
2979
+ }
2980
+ )
2981
+ ]
2982
+ }
2983
+ ),
2984
+ e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2985
+ /* @__PURE__ */ t.jsx(Xo, {}),
2986
+ /* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
2987
+ ] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
2988
+ no,
2989
+ {
2990
+ isDisabled: e === "Not-Started",
2991
+ isSuccess: e === "Completed",
2992
+ children: [
2993
+ /* @__PURE__ */ t.jsx(Qo, { fetchState: e }),
2994
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
2995
+ ]
2996
+ }
2997
+ )
2998
+ ]
2999
+ }
3000
+ ) }),
3001
+ titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
3002
+ showFooter: a || T,
3003
+ containerStyle: {
3004
+ width: Oe.containerWidth.value(b),
3005
+ maxWidth: "unset"
3006
+ }
3007
+ }
3008
+ )
3009
+ ] });
3010
+ }, Ba = n(On)`
3011
+ width: ${o.sp4};
3012
+ height: ${o.sp4};
3013
+ color: ${(e) => e.theme.colors.hero};
3014
+ position: fixed;
3015
+ top: 19px;
3016
+ right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
3017
+ z-index: 11;
3018
+ cursor: pointer;
3019
+ &:hover {
3020
+ color: ${(e) => e.theme.colors.primary};
3021
+ }
3022
+ `, Xo = n(Pr)`
3023
+ width: ${o.sp4};
3024
+ height: ${o.sp4};
3025
+ min-width: ${o.sp4};
3026
+ color: ${I.brandColorGoldDark};
3027
+ `, Zo = n(Jr)`
3028
+ width: ${o.sp3};
3029
+ height: ${o.sp3};
3030
+ min-width: ${o.sp3};
3031
+ color: ${(e) => e.theme.colors.grey3};
3032
+ `, oo = n.div`
3033
+ color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
3034
+ text-align: left;
3035
+ `, en = n.div`
3036
+ color: ${I.brandColorGoldDark};
3037
+ `, no = n.div`
3038
+ display: flex;
3039
+ align-items: center;
3040
+ gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
3041
+ border: 1px solid
3042
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
3043
+ padding: ${o.sp3};
3044
+ border-radius: ${o.sp2};
3045
+ `, Aa = n.div`
3046
+ display: flex;
3047
+ flex-direction: column;
3048
+ gap: ${o.sp3};
3049
+ margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
3050
+ `, tn = n.div`
3051
+ display: flex;
3052
+ align-items: center;
3053
+ gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
3054
+ border: 1px solid ${(e) => e.theme.colors.brandColorGold};
3055
+ background-color: ${I.alertLight};
3056
+ padding: ${o.sp3};
3057
+ border-radius: ${o.sp2};
3058
+ text-align: left;
3059
+ `, La = n($o)`
3060
+ margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
3061
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3062
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3063
+ color: ${(e) => e.theme.colors.primary};
3064
+ word-break: break-word;
3065
+ width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
3066
+ `, Ma = n(xn)`
3067
+ color: ${(e) => e.theme.colors.hero};
3068
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3069
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3070
+ margin-bottom: ${o.sp5};
3071
+ margin-top: ${o.sp4};
3072
+ white-space: pre-line;
3073
+ width: -webkit-fill-available;
3074
+ `, Wn = n(Or)`
3075
+ width: ${o.sp4};
3076
+ height: ${o.sp4};
3077
+ min-width: ${o.sp4};
3078
+ color: ${I.success};
3079
+ `, ee = {
3080
+ rightMargin: new s(r[3], r[8]),
3081
+ leftMargin: new s(r[3], r[6]),
3082
+ bottomMargin: new s(56, 56),
3083
+ closeMarginTop: new s(0, 19),
3084
+ closeMarginRight: new s(r[3], r[8]),
3085
+ rightSectionWidth: new s(100, 58),
3086
+ leftSectionWidth: new s(100, 42),
3087
+ footerButtonWidth: new s(120, 165),
3088
+ right: new s(r[3], r[0]),
3089
+ actionsContainerRight: new s(r[0], r[6]),
3090
+ otherActionsContainerBottom: new s(58, 44),
3091
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
3092
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
3093
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
3094
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
3095
+ navBarWidth: new s(100, 58)
3096
+ }, {
3097
+ spendManagement: {
3098
+ reimbursement: { reimbursementDetail: f, bulkActions: on }
3099
+ },
3100
+ common: {
3101
+ currency: { currencyCode: Ee, currencySymbol: Lt },
3102
+ texts: { comments: Ra },
3103
+ strings: { empty: za }
3104
+ },
3105
+ collaboration: {
3106
+ threads: {
3107
+ placeholder: { addANewComment: Fa, replyAComment: Na },
3108
+ tooltip: { resolveComment: Wa, unResolveComment: Ea }
3109
+ }
3110
+ },
3111
+ dateFormat: nn
3112
+ } = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
3113
+ const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
3114
+ return {
3115
+ lineIndex: v,
3116
+ lineId: e?.lineId ?? String(v + 1),
3117
+ reimbursementType: e?.type ?? f.outOfPocketKey,
3118
+ file: e?.file,
3119
+ homeCurrencyConversions: {
3120
+ amount: e?.homeCurrencyConversions?.amount ?? 0,
3121
+ currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
3122
+ currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
3123
+ },
3124
+ outOfPocket: {
3125
+ recommendedAccount: l.recommendedAccount,
3126
+ //account to show in update to checkbox
3127
+ isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
3128
+ //update to checkbox is ticked
3129
+ isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
3130
+ retainedAccount: l.retainedAccount,
3131
+ //account to show in retain checkbox
3132
+ isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
3133
+ //retain checkbox is selected
3134
+ recommendations: c ?? [],
3135
+ transactionDate: l?.transactionDate?.toDate() ?? void 0,
3136
+ class: {
3137
+ allOptions: Ue(
3138
+ Ye(a, [])
3139
+ ),
3140
+ selectedOption: l?.lineDetail?.class?.classId ?? x
3141
+ },
3142
+ account: {
3143
+ allOptions: Ue(
3144
+ Et(i, c)
3145
+ ),
3146
+ selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
3147
+ },
3148
+ amount: {
3149
+ amount: l?.amount ?? 0,
3150
+ currencyCode: l?.currencyCode ?? m.currencyCode,
3151
+ currencySymbol: l?.currencySymbol ?? m.currencySymbol,
3152
+ currency: {
3153
+ allOptions: S.map((y) => ({
3154
+ label: `${y.currencyCode} - ${y.currency}`,
3155
+ value: y.currencyCode,
3156
+ countryCode: bo(
3157
+ y.countryCode
3158
+ )
3159
+ })),
3160
+ selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
3161
+ }
3162
+ },
3163
+ memo: l?.description ?? void 0,
3164
+ merchant: {
3165
+ allOptions: d.map((y) => y.id).filter((y) => !!y),
3166
+ selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
3167
+ }
3168
+ },
3169
+ mileage: {
3170
+ transactionDate: C?.transactionDate?.toDate(),
3171
+ class: {
3172
+ allOptions: Ue(
3173
+ Ye(a, [])
3174
+ ),
3175
+ selectedOption: C?.lineDetail?.class?.classId
3176
+ },
3177
+ distanceInMiles: C?.distanceMileage?.value,
3178
+ amount: {
3179
+ amount: C?.amount ?? 0,
3180
+ currencyCode: C?.currencyCode ?? m.currencyCode,
3181
+ currencySymbol: C?.currencySymbol ?? m.currencySymbol
3182
+ },
3183
+ memo: C?.description
3184
+ }
3185
+ };
3186
+ }, ro = (e, i, a) => {
3187
+ const d = [];
3188
+ return Object.values(e.lineDetailSection).forEach(
3189
+ (p, v) => {
3190
+ p?.lineId != null && d.push(
3191
+ Va(
3192
+ p,
3193
+ e.accountsHierarchyList,
3194
+ e.classHierarchyList,
3195
+ e.merchantList.merchants,
3196
+ e.tentativeMerchantNameByLineId,
3197
+ v,
3198
+ i,
3199
+ e.allCurrencies,
3200
+ e.loggedInUserDepartmentId
3201
+ )
3202
+ );
3203
+ }
3204
+ ), d.length === 0 && d.push(
3205
+ Nn(
3206
+ 0,
3207
+ "1",
3208
+ e.accountsHierarchyList,
3209
+ e.classHierarchyList,
3210
+ e.merchantList.merchants,
3211
+ i,
3212
+ e.allCurrencies,
3213
+ e.loggedInUserDepartmentId
3214
+ )
3215
+ ), {
3216
+ [Nt]: {
3217
+ reportTitle: e.whatForSection.reportTitle
3218
+ },
3219
+ [So]: d,
3220
+ [wt]: {
3221
+ selectedOption: e.paymentTo,
3222
+ allOptions: a.map((p) => p.bankAccountId)
3223
+ }
3224
+ };
3225
+ }, io = (e, i) => {
3226
+ const a = (d) => d.lineId == null || i[d.lineId]?.fetchState === "In-Progress" ? 0 : (i[d.lineId]?.fetchState === "Completed", d.type === f.mileageKey ? d?.mileage?.amount ?? 0 : d?.outOfPocket?.currencyCode !== Ee && d.homeCurrencyConversions?.amount !== d?.outOfPocket?.amount ? d.homeCurrencyConversions?.amount ?? 0 : d?.outOfPocket?.amount ?? 0);
3227
+ return Object.values(e).reduce((d, p) => d + a(p), 0);
3228
+ }, ao = (e, i, a, d, p, v, m, S) => {
3229
+ const x = {};
3230
+ return e.lineInfo.forEach((l) => {
3231
+ const C = S.find(
3232
+ (O) => O.classId === l.mileage.class.selectedOption
3233
+ ), b = m.find(
3234
+ (O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
3235
+ ), c = S.find(
3236
+ (O) => O.classId === l.outOfPocket.class.selectedOption
3237
+ ), y = i.find(
3238
+ (O) => O.id === l.outOfPocket.merchant.selectedOption
3239
+ ), $ = v.find(
3240
+ (O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
3241
+ )?.currencySymbol;
3242
+ x[l.lineId] = {
3243
+ fileId: l.file?.fileId,
3244
+ lineId: l.lineId,
3245
+ type: l.reimbursementType,
3246
+ homeCurrencyConversions: l.homeCurrencyConversions ?? {
3247
+ amount: 0,
3248
+ currencyCode: "USD",
3249
+ currencySymbol: "$"
3250
+ },
3251
+ mileage: {
3252
+ description: l.mileage.memo ?? "",
3253
+ lineDetail: {
3254
+ class: C
3255
+ },
3256
+ transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
3257
+ amount: l.mileage.amount?.amount ?? 0,
3258
+ currencyCode: l.mileage.amount?.currencyCode ?? $,
3259
+ currencySymbol: l.mileage.amount?.currencySymbol ?? $,
3260
+ distanceMileage: {
3261
+ unit: "miles",
3262
+ value: l.mileage.distanceInMiles ?? 0
3263
+ }
3264
+ },
3265
+ outOfPocket: {
3266
+ description: l.outOfPocket.memo ?? "",
3267
+ lineDetail: {
3268
+ class: c,
3269
+ account: b
3270
+ },
3271
+ transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
3272
+ amount: l.outOfPocket.amount?.amount ?? 0,
3273
+ currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
3274
+ currencySymbol: $,
3275
+ merchant: l.outOfPocket.merchant.selectedOption != null ? {
3276
+ id: y?.id ?? "",
3277
+ name: y?.name ?? l.outOfPocket.merchant.selectedOption
3278
+ } : void 0,
3279
+ recommendations: l.outOfPocket.recommendations,
3280
+ recommendedAccount: l.outOfPocket.recommendedAccount,
3281
+ isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
3282
+ isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
3283
+ isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
3284
+ retainedAccount: l.outOfPocket.retainedAccount
3285
+ }
3286
+ };
3287
+ }), {
3288
+ whatForSection: {
3289
+ reportTitle: e.whatFor.reportTitle
3290
+ },
3291
+ updatesByLineId: x,
3292
+ totalAmount: {
3293
+ amount: d,
3294
+ ...a
3295
+ },
3296
+ currencyConversionStateByLineId: p,
3297
+ paymentTo: e.paymentTo.selectedOption
3298
+ };
3299
+ }, Fl = ({
3300
+ remiDetails: e,
3301
+ authParams: i,
3302
+ defaultCurrency: a,
3303
+ companyMileageConfigInfo: d,
3304
+ uploadInvoiceEndPoint: p,
3305
+ isReimbursementCommentingEnabled: v,
3306
+ isUserAdmin: m,
3307
+ analytics: S,
3308
+ reimbursementId: x,
3309
+ plaidConnectionDetails: l,
3310
+ bankAccountCreationState: C,
3311
+ bankNameByRouting: b,
3312
+ bankAccounts: c,
3313
+ isSignedInUserReimbursementCreator: y,
3314
+ uncategorizedAccounts: $,
3315
+ bankAccountToCreate: O,
3316
+ fetchBankNameByRoutingStatus: T,
3317
+ onUserBankDetailsUpdated: P,
3318
+ onFetchBankName: H,
3319
+ onSaveBankAccount: B,
3320
+ fetchDuplicateReimbursement: k,
3321
+ clearDuplicateReimbursementDetail: M,
3322
+ clearRemiSaveStatus: te,
3323
+ removeDuplicateReimbursementForLine: ne,
3324
+ onDuplicateLineClick: re,
3325
+ onExistingMerchantChange: Y,
3326
+ onNewMerchantChange: K,
3327
+ onReceiptsUpload: F,
3328
+ saveRemiDetails: J,
3329
+ submitRemiDetails: q,
3330
+ discardReimbursementDetailsFromLocalStore: L,
3331
+ onReimbursementDetailsChanged: ce,
3332
+ updateReimbursementType: Q,
3333
+ onHomeCurrencyConversionUpdate: V,
3334
+ redirectToReimbursementListScreen: de,
3335
+ redirectToReimbursementDetailScreen: _e,
3336
+ deleteReimbursement: ue,
3337
+ removeFileFromLine: fe,
3338
+ onZeniLogoClick: le,
3339
+ onAmountChanged: Be,
3340
+ updateInvoiceUploadFetchState: Ae,
3341
+ clearTentativeNameForLine: Le,
3342
+ onAddNewRule: me,
3343
+ onFetchLinkTokenClick: Me,
3344
+ onEstablishConnectionClick: pe,
3345
+ deleteBankAccount: ve,
3346
+ onBackClickFromBankAccountPage: Je
3347
+ }) => {
3348
+ const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Qe, Fe] = X(!1), [Ke, Ge] = X(!1), [Xe, Ze] = X("save"), [ie, lt] = X(
3349
+ io(
3350
+ e.lineDetailSection,
3351
+ e.currencyConversionStatus
3352
+ )
3353
+ ), [pt, et] = X(!1), [_, ht] = X(
3354
+ null
3355
+ ), [W, se] = X(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
3356
+ mode: "all",
3357
+ reValidateMode: "onChange",
3358
+ defaultValues: xt(
3359
+ () => ro(e, a, c),
3360
+ [e, a, c]
3361
+ ),
3362
+ values: xt(
3363
+ () => ro(e, a, c),
3364
+ [e, a, c]
3365
+ ),
3366
+ resetOptions: {
3367
+ keepErrors: !0
3368
+ },
3369
+ shouldFocusError: !0
3370
+ }), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
3371
+ const { lineInfo: u } = j, w = Number(g.split(".")[1]);
3372
+ if (g.includes("reportTitle") || g.includes("memo"))
3373
+ return;
3374
+ if (g.includes("reimbursementType")) {
3375
+ const z = u[w].mileage, E = u[w].outOfPocket;
3376
+ u[w] = {
3377
+ ...u[w],
3378
+ outOfPocket: {
3379
+ transactionDate: E.transactionDate ?? void 0,
3380
+ class: {
3381
+ allOptions: E.class.allOptions ?? Ue(
3382
+ Ye(e.classHierarchyList, [])
3383
+ ),
3384
+ selectedOption: E.class.selectedOption ?? void 0
3385
+ },
3386
+ account: {
3387
+ allOptions: E.account.allOptions ?? Ue(
3388
+ Et(e.accountsHierarchyList, [])
3389
+ ),
3390
+ selectedOption: E.account.selectedOption ?? void 0
3391
+ },
3392
+ amount: E.amount ?? {
3393
+ amount: 0,
3394
+ currencyCode: a.currencyCode,
3395
+ currencySymbol: a.currencySymbol,
3396
+ currency: {
3397
+ allOptions: e.allCurrencies.map((ke) => ({
3398
+ label: `${ke.currencyCode} - ${ke.currency}`,
3399
+ value: ke.currencyCode,
3400
+ countryCode: bo(
3401
+ ke.countryCode
3402
+ )
3403
+ })),
3404
+ selectedOption: a.currencyCode ?? Ee
3405
+ }
3406
+ },
3407
+ memo: E.memo ?? void 0,
3408
+ merchant: E.merchant ?? void 0,
3409
+ recommendations: E.recommendations ?? [],
3410
+ recommendedAccount: E.recommendedAccount ?? void 0,
3411
+ isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
3412
+ isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
3413
+ retainedAccount: E.retainedAccount ?? void 0,
3414
+ isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
3415
+ },
3416
+ mileage: {
3417
+ transactionDate: z.transactionDate ?? void 0,
3418
+ class: {
3419
+ allOptions: z.class.allOptions ?? Ue(
3420
+ Ye(e.classHierarchyList, [])
3421
+ ),
3422
+ selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
3423
+ },
3424
+ distanceInMiles: z.distanceInMiles,
3425
+ amount: {
3426
+ amount: z?.amount?.amount ?? 0,
3427
+ currencyCode: z?.amount?.currencyCode ?? Ee,
3428
+ currencySymbol: z?.amount?.currencySymbol ?? Lt
3429
+ },
3430
+ memo: z.memo ?? void 0
3431
+ }
3432
+ };
3433
+ } else if (g.includes("mileage.distanceInMiles")) {
3434
+ const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
3435
+ u[w].mileage = {
3436
+ ...u[w].mileage,
3437
+ amount: {
3438
+ amount: z != null ? z * E : 0,
3439
+ currencyCode: a.currencyCode,
3440
+ currencySymbol: a.currencySymbol
3441
+ }
3442
+ };
3443
+ } else if (g.includes("outOfPocket.amount") && u[w].lineId) {
3444
+ const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
3445
+ (ke) => ke.currencyCode === z?.currency.selectedOption
3446
+ )?.currencySymbol;
3447
+ if (z?.currencyCode !== z?.currency.selectedOption) {
3448
+ const ke = z?.currency?.allOptions || [];
3449
+ u[w].outOfPocket.amount = {
3450
+ currency: {
3451
+ allOptions: ke,
3452
+ selectedOption: z?.currency?.selectedOption
3453
+ },
3454
+ amount: u[w].outOfPocket?.amount?.amount ?? 0,
3455
+ currencyCode: z?.currency.selectedOption ?? Ee,
3456
+ currencySymbol: E ?? Lt
3457
+ };
3458
+ }
3459
+ if (z?.currency.selectedOption !== Ee)
3460
+ et(!0), Yn(u[w].lineId, Ee);
3461
+ else {
3462
+ const ke = {};
3463
+ u.forEach((Xt) => {
3464
+ ke[Xt.lineId] = {
3465
+ lineId: Xt.lineId,
3466
+ homeCurrencyConversions: Xt.homeCurrencyConversions
3467
+ };
3468
+ }), u[w].homeCurrencyConversions = {
3469
+ amount: z.amount ?? 0,
3470
+ currencyCode: z?.currency.selectedOption ?? Ee,
3471
+ currencySymbol: E ?? Lt
3472
+ };
3473
+ const jt = io(
3474
+ ke,
3475
+ e.currencyConversionStatus
3476
+ );
3477
+ ie !== jt && lt(jt);
3478
+ }
3479
+ } else if (g.includes("outOfPocket.isRetainedCategorySelected"))
3480
+ //retain checkbox is true
3481
+ u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
3482
+ else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
3483
+ if (
3484
+ //update to checkbox is true
3485
+ u[w].outOfPocket.isCategoryUpdateSelected === !0
3486
+ )
3487
+ u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
3488
+ else {
3489
+ const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
3490
+ u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
3491
+ }
3492
+ else g.includes("outOfPocket.account") && (u[w].outOfPocket.recommendations.length > 0 && (u[w].outOfPocket.recommendedAccount = u[w].outOfPocket.recommendations[0].account), //account value is same as update to checkbox
3493
+ u[w].outOfPocket.recommendedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.recommendedAccount?.qboId ? u[w].outOfPocket.isCategoryUpdateSelected = !0 : u[w].outOfPocket.isCategoryUpdateSelected = !1, //account value is same as retain to checkbox
3494
+ u[w].outOfPocket.retainedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.retainedAccount?.qboId ? u[w].outOfPocket.isRetainedCategorySelected = !0 : u[w].outOfPocket.isRetainedCategorySelected = !1, u[w].outOfPocket.isCategoryFirstTimeAutofilled = !1);
3495
+ const kt = ao(
3496
+ { ...j, lineInfo: u },
3497
+ e.merchantList.merchants,
3498
+ a,
3499
+ ie,
3500
+ e.currencyConversionStatus,
3501
+ e.allCurrencies,
3502
+ e.accountList.accounts,
3503
+ e.classList.classes
3504
+ );
3505
+ if (ce?.(kt), g.includes("outOfPocket.merchant")) {
3506
+ const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
3507
+ u[w].outOfPocket.merchant.allOptions.find(
3508
+ (jt) => jt === E
3509
+ ) != null ? Y(E, z) : K(E, z);
3510
+ }
3511
+ }, vo = xt(
3512
+ () => Bo((g, j) => Vn(g, j), 300),
3513
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3514
+ [
3515
+ //these needs to be added because these fetchState were coming as "In-Progress" because of debounce
3516
+ e.accountList.fetchState,
3517
+ e.classList.fetchState,
3518
+ e.merchantList.fetchState
3519
+ ]
3520
+ );
3521
+ ye(() => {
3522
+ const g = Te.watch((j, { name: u }) => {
3523
+ u != null && j != null && vo(u, j);
3524
+ });
3525
+ return () => {
3526
+ g.unsubscribe();
3527
+ };
3528
+ }, [vo, Te]), ye(() => {
3529
+ const g = hr(
3530
+ Object.values(e.currencyConversionStatus)
3531
+ ), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
3532
+ et(j);
3533
+ }, [e.currencyConversionStatus]), ye(() => {
3534
+ for (const j in e.currencyConversionStatus) {
3535
+ const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
3536
+ e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
3537
+ u?.homeCurrencyConversions,
3538
+ w.homeCurrencyConversions
3539
+ ) && V(
3540
+ {
3541
+ amount: u?.homeCurrencyConversions?.amount ?? 0,
3542
+ currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
3543
+ currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
3544
+ },
3545
+ j,
3546
+ x
3547
+ );
3548
+ }
3549
+ const g = io(
3550
+ e.lineDetailSection,
3551
+ e.currencyConversionStatus
3552
+ );
3553
+ ie !== g && lt(g);
3554
+ }, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
3555
+ (e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
3556
+ }, [
3557
+ e.saveStatus?.fetchState,
3558
+ e.deleteStatus.fetchState,
3559
+ x,
3560
+ L,
3561
+ de
3562
+ ]);
3563
+ const A = ze(), [Ne, gt] = X(
3564
+ x == null
3565
+ ), [yt, _n] = X(1), [Dn, Dt] = X(!1), [qn, Un] = X(""), [qt, Hn] = X(null), [Kn, st] = X(!1), [Gn, Co] = X(!1), [Ut, Ht] = X([]), [xe, Tt] = X({
3566
+ title: "",
3567
+ description: "",
3568
+ primaryButtonText: "",
3569
+ secondaryButtonText: ""
3570
+ }), Yn = bt(
3571
+ Bo(
3572
+ (g, j) => Be(g, j),
3573
+ 500,
3574
+ {
3575
+ trailing: !0
3576
+ }
3577
+ )
3578
+ ).current;
3579
+ ye(() => {
3580
+ he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
3581
+ ro(e, a, c),
3582
+ { keepDefaultValues: !0 }
3583
+ ), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
3584
+ }, [
3585
+ he,
3586
+ e.uploadStatus,
3587
+ Te,
3588
+ e,
3589
+ Qe,
3590
+ Fe,
3591
+ Ne,
3592
+ a,
3593
+ c,
3594
+ S
3595
+ ]), ye(() => {
3596
+ e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
3597
+ }, [e.uploadStatus, Fe, Ne]);
3598
+ const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
3599
+ onOkClick: () => {
3600
+ if (st(!1), xe.primaryButtonText === f.buttons.discard)
3601
+ L(x), e.remiStage === "draft" ? de?.() : _e?.();
3602
+ else if (xe.primaryButtonText === f.buttons.delete)
3603
+ xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
3604
+ else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
3605
+ const g = Ut.filter(
3606
+ (j) => j !== yt.toString()
3607
+ );
3608
+ Ht(
3609
+ g
3610
+ ), F(qt, yt, !0);
3611
+ }
3612
+ },
3613
+ onCancelClick: () => {
3614
+ if (st(!1), xe.secondaryButtonText === f.buttons.no) {
3615
+ const g = Ut.filter(
3616
+ (j) => j !== yt.toString()
3617
+ );
3618
+ Ht(
3619
+ g
3620
+ ), F(
3621
+ qt,
3622
+ yt,
3623
+ !1
3624
+ );
3625
+ }
3626
+ }
3627
+ }, To = () => {
3628
+ R || Vr(En) ? (Tt({
3629
+ title: f.discardTitle,
3630
+ description: f.discardDescription,
3631
+ primaryButtonText: f.buttons.discard,
3632
+ secondaryButtonText: f.buttons.cancel
3633
+ }), st(!0)) : (L(x), de?.());
3634
+ }, Qn = () => {
3635
+ Tt({
3636
+ title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
3637
+ description: f.deleteAlertDescription,
3638
+ primaryButtonText: f.buttons.delete,
3639
+ secondaryButtonText: f.buttons.cancel
3640
+ }), st(!0);
3641
+ }, Xn = (g) => {
3642
+ Un(g), Tt({
3643
+ title: f.deleteBankAccountTitle,
3644
+ description: f.deleteBankAccountDescription,
3645
+ primaryButtonText: f.buttons.delete,
3646
+ secondaryButtonText: f.buttons.cancel
3647
+ }), st(!0);
3648
+ }, Zn = () => {
3649
+ Tt({
3650
+ title: f.overwriteTitle,
3651
+ description: f.overwriteDescription,
3652
+ primaryButtonText: f.buttons.yes,
3653
+ secondaryButtonText: f.buttons.no
3654
+ }), st(!0);
3655
+ }, er = () => {
3656
+ let g = !0;
3657
+ const j = [];
3658
+ return Object.values(e.lineDetailSection).forEach((u, w) => {
3659
+ u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
3660
+ }), Ht(j), g;
3661
+ }, ko = () => {
3662
+ if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
3663
+ To();
3664
+ else {
3665
+ Ze("save");
3666
+ const g = Te.getValues(), j = ao(
3667
+ g,
3668
+ e.merchantList.merchants,
3669
+ a,
3670
+ ie,
3671
+ e.currencyConversionStatus,
3672
+ e.allCurrencies,
3673
+ e.accountList.accounts,
3674
+ e.classList.classes
3675
+ );
3676
+ ce?.(j);
3677
+ const u = j.whatForSection?.reportTitle;
3678
+ u != null && u.length > 0 ? J(
3679
+ e.remiStatus === "rejected" ? "pending_approval" : "draft"
3680
+ ) : Te.trigger(`${Nt}.reportTitle`, {
3681
+ shouldFocus: !0
3682
+ });
3683
+ }
3684
+ };
3685
+ let Gt = !1;
3686
+ Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
3687
+ g.length > 0 && (Gt = !0);
3688
+ });
3689
+ let jo = [];
3690
+ if (e.remiId == null) {
3691
+ const g = ie ?? 0;
3692
+ g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
3693
+ const u = j.criteria[0].range;
3694
+ if (u.max != null) {
3695
+ if (u.min.amount < g && u.max.amount >= g)
3696
+ return j;
3697
+ } else if (u.min.amount < g)
3698
+ return j;
3699
+ return null;
3700
+ }).map((j) => ({
3701
+ ...j,
3702
+ stepsWithStatus: j.steps.map((u) => ({
3703
+ ...u,
3704
+ actorsActivity: [],
3705
+ isOriginalApprovalStep: !0
3706
+ })),
3707
+ isRealTimeApprovalEnabled: !1
3708
+ })));
3709
+ }
3710
+ const tr = (g) => {
3711
+ const j = er();
3712
+ return Te.handleSubmit(() => {
3713
+ j && (Ze("submit"), S?.trackReimbursementSubmitReimbursement(
3714
+ e.createTime?.format(
3715
+ nn.analytics.MMMDashDDDashYYYYFormat
3716
+ ) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
3717
+ a.currencyCode,
3718
+ ie,
3719
+ x
3720
+ ), M(), Co(!0));
3721
+ })(g);
3722
+ }, or = () => {
3723
+ const g = Te.getValues(), j = ao(
3724
+ g,
3725
+ e.merchantList.merchants,
3726
+ a,
3727
+ ie,
3728
+ e.currencyConversionStatus,
3729
+ e.allCurrencies,
3730
+ e.accountList.accounts,
3731
+ e.classList.classes
3732
+ );
3733
+ ce?.(j), q();
3734
+ }, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
3735
+ gn(
3736
+ e.reimbursementInfo.paymentDate.toDate(),
3737
+ [0, 6],
3738
+ e.achSameDayMaxDays
3739
+ ).toDateString()
3740
+ ) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = qr(
3741
+ e.duplicateLineByLineId
3742
+ ), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Qt } = mr(Br), { threads: ft, isLoading: tt } = Ar(
3743
+ {
3744
+ application: "dashboard",
3745
+ companyId: Re.currentTenant?.companyId,
3746
+ tab: "reimbursement",
3747
+ entityId: x,
3748
+ // Use remiId here
3749
+ isGlobalComment: !1
3750
+ },
3751
+ "both",
3752
+ !1
3753
+ );
3754
+ ye(() => {
3755
+ Jt?.threadId != null && ft.length > 0 && !tt && (Qt(Jt.threadId), Oo(null));
3756
+ }, [
3757
+ Jt,
3758
+ ft,
3759
+ tt,
3760
+ Qt,
3761
+ Oo
3762
+ ]);
3763
+ const lr = xt(() => x == null ? [] : ft.filter(
3764
+ (g) => g.resolved === !1 && !g.id.includes(Lr)
3765
+ ), [ft, x]).length, sr = (g, j) => {
3766
+ Qt(j);
3767
+ const u = g.entityType.split("."), w = parseInt(u[2]);
3768
+ if (isNaN(w)) {
3769
+ se(!1);
3770
+ return;
3771
+ }
3772
+ const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
3773
+ u.includes(f.mileageKey) && z === f.outOfPocketKey ? Q(
3774
+ Lo(f.mileageKey),
3775
+ kt,
3776
+ x
3777
+ ) : u.includes(f.outOfPocketKey) && z === f.mileageKey && Q(
3778
+ Lo(f.outOfPocketKey),
3779
+ kt,
3780
+ x
3781
+ ), se(!1);
3782
+ };
3783
+ return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
3784
+ Mr,
3785
+ {
3786
+ sharedItems: {
3787
+ sharedFunctions: void 0,
3788
+ sharedRef: { contentWrapperRef: Ce.current ?? null }
3789
+ },
3790
+ children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
3791
+ /* @__PURE__ */ t.jsx(
3792
+ "form",
3793
+ {
3794
+ id: an(rn),
3795
+ onSubmit: (g) => tr(g),
3796
+ children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
3797
+ Kn ? /* @__PURE__ */ t.jsx(
3798
+ wo,
3799
+ {
3800
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
3801
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
3802
+ primaryButtonText: xe.primaryButtonText,
3803
+ secondaryButtonText: xe.secondaryButtonText,
3804
+ action: Jn,
3805
+ proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
3806
+ isEditPopup: xe.title === f.deleteBankAccountTitle
3807
+ }
3808
+ ) : null,
3809
+ Gn ? /* @__PURE__ */ t.jsx(
3810
+ Pa,
3811
+ {
3812
+ reimbursementId: x,
3813
+ submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
3814
+ duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
3815
+ hasDuplicateLine: Yt,
3816
+ numberOfDuplicateLines: Io,
3817
+ setShowDuplicatePopup: Co,
3818
+ submitReport: or,
3819
+ fetchDuplicateReimbursement: k,
3820
+ clearDuplicateReimbursementDetail: M,
3821
+ clearRemiSaveStatus: te,
3822
+ analytics: S
3823
+ }
3824
+ ) : null,
3825
+ Qe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
3826
+ Ne ? /* @__PURE__ */ t.jsxs(
3827
+ sn,
3828
+ {
3829
+ windowSize: A,
3830
+ "data-testid": U("skip-autofill-section"),
3831
+ children: [
3832
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3833
+ /* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
3834
+ co,
3835
+ {
3836
+ partOfSkipAutoFill: !0,
3837
+ size: A,
3838
+ onClick: () => gt(!1),
3839
+ "data-testid": U(
3840
+ "close-invoice-upload"
3841
+ ),
3842
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3843
+ }
3844
+ ) }),
3845
+ /* @__PURE__ */ t.jsx(nl, { children: Kt })
3846
+ ] }) : null,
3847
+ /* @__PURE__ */ t.jsx(
3848
+ Pn,
3849
+ {
3850
+ showAutofill: Ne,
3851
+ analytics: S,
3852
+ onSkipAutofill: () => {
3853
+ S?.trackReimbursementSkipAutofill(), gt(!1);
3854
+ },
3855
+ uploadInvoiceEndPoint: p,
3856
+ authParams: i,
3857
+ style: {
3858
+ width: ee.leftSectionWidth.valuePercentage(A),
3859
+ boxSizing: "border-box",
3860
+ backgroundColor: A === "small" ? He.colors.grey4 : "unset",
3861
+ padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
3862
+ margin: A === "small" ? o.sp0 : void 0
3863
+ },
3864
+ onInvoiceUpload: (g) => F(
3865
+ g,
3866
+ yt,
3867
+ !0
3868
+ ),
3869
+ dropFilePlaceholder: {
3870
+ upload: f.dropReceipt.upload,
3871
+ single: f.dropReceipt.single,
3872
+ or: f.dropReceipt.or,
3873
+ multiple: f.dropReceipt.multiple,
3874
+ receipts: f.dropReceipt.receipts
3875
+ },
3876
+ updateInvoiceUploadFetchState: Ae,
3877
+ showInfoText: !1,
3878
+ allowMultiFiles: Ne,
3879
+ type: "reimbursement"
3880
+ }
3881
+ ),
3882
+ A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
3883
+ co,
3884
+ {
3885
+ partOfSkipAutoFill: !0,
3886
+ onClick: () => gt(!1),
3887
+ "data-testid": U(
3888
+ "close-invoice-upload"
3889
+ ),
3890
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3891
+ }
3892
+ ) }) : null
3893
+ ]
3894
+ }
3895
+ ) : null,
3896
+ /* @__PURE__ */ t.jsxs(
3897
+ pl,
3898
+ {
3899
+ windowSize: A,
3900
+ "data-testid": U(
3901
+ "edit-reimbursement-detail-page-nav-bar-container"
3902
+ ),
3903
+ children: [
3904
+ A !== "small" ? /* @__PURE__ */ t.jsx(
3905
+ Fo,
3906
+ {
3907
+ style: { width: "42%" },
3908
+ "data-testid": U(
3909
+ "edit-reimbursement-detail-page-left-nav-bar"
3910
+ ),
3911
+ title: "",
3912
+ leftSideComponent: /* @__PURE__ */ t.jsx(
3913
+ hl,
3914
+ {
3915
+ "data-testid": U(
3916
+ "zeni-logo-spend-management-reimbursement-detail-page"
3917
+ ),
3918
+ onClick: le
3919
+ }
3920
+ ),
3921
+ enableTitleOnScroll: !1,
3922
+ scrollableContent: h,
3923
+ backgroundColor: He.colors.background,
3924
+ keepBackgroundOnScroll: !0,
3925
+ source: "EditReimbursementDetailPage"
3926
+ }
3927
+ ) : null,
3928
+ A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
3929
+ /* @__PURE__ */ t.jsx(
3930
+ Fo,
3931
+ {
3932
+ style: { width: ee.navBarWidth.valuePercentage(A) },
3933
+ "data-testid": U(
3934
+ "edit-reimbursement-detail-page-right-nav-bar"
3935
+ ),
3936
+ source: "EditReimbursementDetailPage",
3937
+ title: Kt,
3938
+ leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
3939
+ rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
3940
+ v && x != null ? /* @__PURE__ */ t.jsxs(
3941
+ yl,
3942
+ {
3943
+ isDisabled: tt,
3944
+ "data-testid": U(
3945
+ "remi-comment-button"
3946
+ ),
3947
+ onClick: tt ? () => null : (g) => {
3948
+ g.preventDefault(), g.stopPropagation(), ht({
3949
+ roomId: Ct,
3950
+ companyId: Re.currentTenant?.companyId ?? "",
3951
+ companyName: Re.currentTenant?.companyName ?? "",
3952
+ entityType: "reimbursement.details",
3953
+ entityId: x
3954
+ }), se(!0), S?.trackCommentActivity(
3955
+ "reimbursement",
3956
+ // pageName
3957
+ "clicked",
3958
+ // activityType
3959
+ Re.currentTenant?.companyName ?? "",
3960
+ // tenantName
3961
+ Re.controllersList.controllers.map(
3962
+ (j) => zr(j)
3963
+ ),
3964
+ // controllerName
3965
+ void 0,
3966
+ // status
3967
+ void 0,
3968
+ // createdBy
3969
+ "page icon"
3970
+ // source
3971
+ );
3972
+ },
3973
+ children: [
3974
+ /* @__PURE__ */ t.jsx(
3975
+ Rr,
3976
+ {
3977
+ count: tt ? void 0 : lr,
3978
+ isLoading: tt,
3979
+ style: { left: "12px" }
3980
+ }
3981
+ ),
3982
+ /* @__PURE__ */ t.jsx(fl, {})
3983
+ ]
3984
+ }
3985
+ ) : null,
3986
+ /* @__PURE__ */ t.jsx(
3987
+ co,
3988
+ {
3989
+ size: A,
3990
+ onClick: () => To(),
3991
+ "data-testid": U("close-nav-bar"),
3992
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
3993
+ }
3994
+ )
3995
+ ] }) : null,
3996
+ enableTitleOnScroll: A !== "small",
3997
+ scrollThreshold: 64,
3998
+ scrollableContent: h,
3999
+ backgroundColor: He.colors.grey4
4000
+ }
4001
+ )
4002
+ ]
4003
+ }
4004
+ ),
4005
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4006
+ /* @__PURE__ */ t.jsx(ml, { children: Kt }),
4007
+ /* @__PURE__ */ t.jsx(
4008
+ Fr,
4009
+ {
4010
+ progressSectionObj: nr,
4011
+ createDate: e.createTime,
4012
+ paymentDate: ir,
4013
+ scheduleDate: e.reimbursementInfo?.paymentDate,
4014
+ approvedDate: e.latestApprovedDate,
4015
+ isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
4016
+ }
4017
+ ),
4018
+ Gt && /* @__PURE__ */ t.jsxs(al, { children: [
4019
+ /* @__PURE__ */ t.jsx(il, {}),
4020
+ /* @__PURE__ */ t.jsx(ll, { children: f.banner })
4021
+ ] }),
4022
+ e.isProcessing ? /* @__PURE__ */ t.jsx(
4023
+ wn,
4024
+ {
4025
+ variant: "warning",
4026
+ style: {
4027
+ margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
4028
+ },
4029
+ title: on.duplicateWarning.title,
4030
+ description: on.duplicateWarning.description
4031
+ }
4032
+ ) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
4033
+ /* @__PURE__ */ t.jsx(Ga, {}),
4034
+ /* @__PURE__ */ t.jsxs(dl, { children: [
4035
+ /* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
4036
+ /* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
4037
+ ] })
4038
+ ] }) : null,
4039
+ /* @__PURE__ */ t.jsx(
4040
+ Ln,
4041
+ {
4042
+ isReimbursementCommentingEnabled: v,
4043
+ sectionId: Nt,
4044
+ reimbursementId: e.remiId,
4045
+ reportTitle: e.whatForSection.reportTitle
4046
+ }
4047
+ )
4048
+ ] }) : null,
4049
+ /* @__PURE__ */ t.jsx(
4050
+ ia,
4051
+ {
4052
+ onDuplicateLineClick: re,
4053
+ reimbursementId: x,
4054
+ remiDetails: e,
4055
+ uploadInvoiceEndPoint: p,
4056
+ authParams: i,
4057
+ showSkipAutoFill: Ne,
4058
+ setShowSkipAutoFill: gt,
4059
+ isReimbursementCommentingEnabled: v,
4060
+ isAutoFieldsExist: Gt,
4061
+ totalAmount: ie,
4062
+ removeFileFromLine: fe,
4063
+ onReplaceClick: Zn,
4064
+ onReceiptsUpload: F,
4065
+ currencyConversionStatus: e.currencyConversionStatus,
4066
+ setCurrentLineIdForUpload: _n,
4067
+ setUploadedReceiptPayload: Hn,
4068
+ updateInvoiceUploadFetchState: Ae,
4069
+ clearTentativeNameForLine: Le,
4070
+ defaultCurrency: a,
4071
+ companyMileageConfigInfo: d,
4072
+ isUserAdmin: m,
4073
+ setShowBankAccountPage: Dt,
4074
+ bankAccounts: c,
4075
+ onDeleteBankAccount: Xn,
4076
+ analytics: S,
4077
+ fileRequiredLineIds: Ut,
4078
+ isSignedInUserReimbursementCreator: y,
4079
+ uncategorizedAccounts: $,
4080
+ showTotalAmountLoader: pt,
4081
+ duplicateLineByLineId: e.duplicateLineByLineId,
4082
+ hasDuplicateLine: Yt,
4083
+ removeDuplicateReimbursementForLine: ne,
4084
+ scrollContainerRef: h
4085
+ }
4086
+ ),
4087
+ /* @__PURE__ */ t.jsxs(
4088
+ bl,
4089
+ {
4090
+ showSkipAutoFill: Ne,
4091
+ windowSize: A,
4092
+ children: [
4093
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4094
+ /* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
4095
+ e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
4096
+ No,
4097
+ {
4098
+ amount: ie ?? 0,
4099
+ activities: e.remiActivities,
4100
+ stage: e.remiStage ?? "draft",
4101
+ onAddNewRule: me,
4102
+ entity: "reimbursement",
4103
+ historicActivities: e.remiHistory.activities
4104
+ }
4105
+ ),
4106
+ e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
4107
+ No,
4108
+ {
4109
+ amount: ie ?? 0,
4110
+ activities: jo,
4111
+ stage: "draft",
4112
+ entity: "reimbursement",
4113
+ historicActivities: e.remiHistory.activities
4114
+ }
4115
+ ) : null
4116
+ ] }) })
4117
+ ]
4118
+ }
4119
+ ),
4120
+ /* @__PURE__ */ t.jsx(Sl, {}),
4121
+ /* @__PURE__ */ t.jsxs(
4122
+ rl,
4123
+ {
4124
+ showSkipAutoFill: Ne,
4125
+ windowSize: A,
4126
+ children: [
4127
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4128
+ /* @__PURE__ */ t.jsx(
4129
+ Ua,
4130
+ {
4131
+ windowSize: A,
4132
+ onClick: (g) => {
4133
+ g.stopPropagation(), Ke === !0 && Ge(!1);
4134
+ },
4135
+ children: /* @__PURE__ */ t.jsx(
4136
+ In,
4137
+ {
4138
+ formId: an(rn),
4139
+ separatorStyle: { marginRight: o.sp4 },
4140
+ showCancel: y,
4141
+ cancelBtn: {
4142
+ label: m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected" ? A === "small" ? f.buttons.discard : f.buttons.discardChanges : A === "small" ? f.buttons.save : f.buttons.saveChanges,
4143
+ isLoading: Xe === "save" && e.saveStatus?.fetchState === "In-Progress",
4144
+ onClick: ko,
4145
+ style: { width: ee.footerButtonWidth.value(A) },
4146
+ reverseSpinnerColor: !1
4147
+ },
4148
+ primaryBtn: {
4149
+ label: _a(
4150
+ y,
4151
+ m,
4152
+ e,
4153
+ A
4154
+ ),
4155
+ isDisabled: !y,
4156
+ style: {
4157
+ width: y ? ee.footerButtonWidth.value(A) : "auto"
4158
+ },
4159
+ type: y ? "submit" : "button",
4160
+ onClick: y ? () => null : ko,
4161
+ isLoading: !y && Xe === "save" && e.saveStatus?.fetchState === "In-Progress"
4162
+ },
4163
+ rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Xa, { windowSize: A, children: [
4164
+ Ke ? /* @__PURE__ */ t.jsx(
4165
+ cn,
4166
+ {
4167
+ onClickAway: () => Ge(!1),
4168
+ children: /* @__PURE__ */ t.jsx(
4169
+ Qa,
4170
+ {
4171
+ windowSize: A,
4172
+ "data-testid": U(
4173
+ "remi-other-actions-container"
4174
+ ),
4175
+ children: /* @__PURE__ */ t.jsx(
4176
+ Za,
4177
+ {
4178
+ onClick: Qn,
4179
+ "data-testid": U(
4180
+ "delete-report-action"
4181
+ ),
4182
+ children: f.buttons.deleteReport
4183
+ }
4184
+ )
4185
+ }
4186
+ )
4187
+ }
4188
+ ) : null,
4189
+ /* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
4190
+ Ya,
4191
+ {
4192
+ windowSize: A,
4193
+ "data-testid": U(
4194
+ "more-details-button"
4195
+ ),
4196
+ children: /* @__PURE__ */ t.jsx(
4197
+ Ka,
4198
+ {
4199
+ onClick: () => Ge(!Ke)
4200
+ }
4201
+ )
4202
+ }
4203
+ ) : null })
4204
+ ] }) }),
4205
+ style: {
4206
+ minHeight: 62
4207
+ }
4208
+ }
4209
+ )
4210
+ }
4211
+ )
4212
+ ]
4213
+ }
4214
+ ),
4215
+ v && x != null ? /* @__PURE__ */ t.jsx(pr, { id: Ct, children: /* @__PURE__ */ t.jsx(
4216
+ Nr,
4217
+ {
4218
+ isDrawerOpen: W,
4219
+ allowComposer: !0,
4220
+ drawerTitle: Ra,
4221
+ threads: ft,
4222
+ autoExpand: !0,
4223
+ autoFocus: !1,
4224
+ filter: {
4225
+ application: "dashboard",
4226
+ companyId: _?.companyId ?? za,
4227
+ isGlobalComment: !1,
4228
+ tab: "reimbursement"
4229
+ },
4230
+ isLoading: tt,
4231
+ threadMetadata: _ ? {
4232
+ companyName: _.companyName,
4233
+ companyId: _.companyId,
4234
+ entityId: _.entityId,
4235
+ entityType: _.entityType,
4236
+ isGlobalComment: !1,
4237
+ application: "dashboard",
4238
+ tab: "reimbursement",
4239
+ url: window.location.href
4240
+ } : void 0,
4241
+ textOverrides: {
4242
+ composerPlaceholder: Fa,
4243
+ replyComposerPlaceholder: Na,
4244
+ threadResolve: Wa,
4245
+ threadUnResolve: Ea
4246
+ },
4247
+ onThreadClick: (g, j) => sr(g, j),
4248
+ onCloseAllThreadsDrawer: () => se(!1),
4249
+ drawerSectionStyle: {
4250
+ width: "400px",
4251
+ backgroundColor: He.colors.background
4252
+ }
4253
+ }
4254
+ ) }) : null
4255
+ ] })
4256
+ }
4257
+ ),
4258
+ Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
4259
+ xa,
4260
+ {
4261
+ bankAccountCreationState: C,
4262
+ setShowBankAccountPage: Dt,
4263
+ plaidConnectionDetails: l,
4264
+ onFetchLinkTokenClick: Me,
4265
+ onEstablishConnectionClick: pe,
4266
+ onSaveHandler: B,
4267
+ bankAccountToCreate: O,
4268
+ bankNameByRouting: b,
4269
+ fetchBankNameByRoutingStatus: T,
4270
+ onUserBankDetailsUpdated: P,
4271
+ onFetchBankName: H,
4272
+ onBackClick: () => {
4273
+ Je(), Dt(!1);
4274
+ }
4275
+ }
4276
+ ) }) : null
4277
+ ] })
4278
+ }
4279
+ ) });
4280
+ }, _a = (e, i, a, d) => e ? a.reimbursementId != null && a.remiStage === "pending_approval" ? f.buttons.resubmit : f.buttons.submit : i && a.remiStage === "pending_approval" && a.remiStatus !== "rejected" ? d === "small" ? f.buttons.discard : f.buttons.discardChanges : d === "small" ? f.buttons.save : f.buttons.saveChanges, Da = n.div`
4281
+ position: relative;
4282
+ height: 100vh;
4283
+ overflow-y: scroll;
4284
+ `, qa = n.div`
4285
+ position: fixed;
4286
+ top: 0;
4287
+ left: 42vw;
4288
+ width: 100%;
4289
+ height: 100vh;
4290
+ background: transparent;
4291
+ box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
4292
+ pointer-events: none;
4293
+ z-index: 3;
4294
+ `, Ua = n.div`
4295
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4296
+ `, Ha = n.div`
4297
+ display: flex;
4298
+ justify-content: flex-end;
4299
+ `, Ka = n(_r)`
4300
+ cursor: pointer;
4301
+ color: ${(e) => e.theme.colors.hero};
4302
+ width: ${o.sp5};
4303
+ height: ${o.sp5};
4304
+ &:hover {
4305
+ color: ${(e) => e.theme.colors.primary};
4306
+ }
4307
+ `, Ga = n(Dr)`
4308
+ width: ${o.sp4};
4309
+ height: ${o.sp4};
4310
+ color: ${I.brandColorGoldDark};
4311
+ `, Ya = n.div`
4312
+ display: flex;
4313
+ margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
4314
+ cursor: pointer;
4315
+ color: ${(e) => e.theme.colors.grey1};
4316
+ &:hover {
4317
+ color: ${(e) => e.theme.colors.primary};
4318
+ }
4319
+ `, Ja = n.div`
4320
+ display: flex;
4321
+ justify-content: center;
4322
+ align-items: center;
4323
+ `, Qa = n.div`
4324
+ display: flex;
4325
+ width: auto;
4326
+ align-items: center;
4327
+ justify-content: center;
4328
+ flex-direction: column;
4329
+ background-color: ${(e) => e.theme.colors.grey5};
4330
+ color: ${(e) => e.theme.colors.hero};
4331
+ cursor: pointer;
4332
+ padding-top: ${o.sp1};
4333
+ padding-bottom: ${o.sp1};
4334
+ position: absolute;
4335
+ bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
4336
+ z-index: 3;
4337
+ border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
4338
+ border-radius: ${o.sp1};
4339
+ right: ${(e) => ee.right.valuePx(e.windowSize)};
4340
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
4341
+ `, Xa = n.div`
4342
+ width: 100%;
4343
+ justify-content: flex-end;
4344
+ position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
4345
+ right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
4346
+ height: 100%;
4347
+ display: flex;
4348
+ `, Za = n(yo)`
4349
+ display: flex;
4350
+ align-items: center;
4351
+ width: -webkit-fill-available;
4352
+ padding-left: ${o.sp3};
4353
+ padding-right: ${o.sp3};
4354
+ height: ${o.sp6};
4355
+ box-sizing: border-box;
4356
+ &:hover {
4357
+ background-color: ${(e) => e.theme.colors.background};
4358
+ }
4359
+ `, el = n.div`
4360
+ overflow-y: auto;
4361
+ z-index: 5;
4362
+ height: 100vh;
4363
+ position: fixed;
4364
+ background: ${(e) => e.theme.colors.grey4};
4365
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4366
+ right: 0;
4367
+ top: 0;
4368
+ `, tl = n.div`
4369
+ background: ${(e) => e.theme.colors.grey4};
4370
+ height: 44px;
4371
+ display: flex;
4372
+ align-items: center;
4373
+ justify-content: end;
4374
+ `, ol = n.div`
4375
+ width: 58%;
4376
+ `, nl = n($o)`
4377
+ padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
4378
+ background: ${(e) => e.theme.colors.grey4};
4379
+ color: ${(e) => e.theme.colors.primary};
4380
+ `, rl = n.div`
4381
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4382
+ width: 100%;
4383
+ position: fixed;
4384
+ bottom: 0;
4385
+ z-index: 3;
4386
+ `, ln = n.div`
4387
+ width: 42%;
4388
+ `, il = n(fo)`
4389
+ color: ${(e) => e.theme.colors.primary};
4390
+ width: ${o.sp3};
4391
+ height: ${o.sp3};
4392
+ `, al = n.div`
4393
+ display: flex;
4394
+ gap: ${o.sp2};
4395
+ border: 1px solid ${(e) => e.theme.colors.grey3};
4396
+ padding: ${o.sp3};
4397
+ border-radius: ${o.sp2};
4398
+ align-items: center;
4399
+ margin: ${o.sp3};
4400
+ `, ll = n.span`
4401
+ color: ${(e) => e.theme.colors.hero};
4402
+ `, sl = n.div`
4403
+ display: flex;
4404
+ gap: ${o.sp2};
4405
+ padding: ${o.sp3};
4406
+ border-radius: ${o.sp2};
4407
+ align-items: start;
4408
+ margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
4409
+ margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
4410
+ margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
4411
+ margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
4412
+ background-color: ${I.alertLight};
4413
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
4414
+ `, cl = n(_t)`
4415
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4416
+ `, dl = n.div`
4417
+ width: 100%;
4418
+ `, ul = n(xo)`
4419
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4420
+ `, ml = n($o)`
4421
+ letter-spacing: -0.02em;
4422
+ color: ${(e) => e.theme.colors.primary};
4423
+ margin: ${o.sp3};
4424
+ `, sn = n.div`
4425
+ display: flex;
4426
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
4427
+ height: 100vh;
4428
+ visibility: inherit;
4429
+ width: 100%;
4430
+ background-color: ${I.overlayDark};
4431
+ z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
4432
+ position: fixed;
4433
+ `, pl = n.div`
4434
+ z-index: 3;
4435
+ min-height: 62px;
4436
+ height: 62px;
4437
+ display: flex;
4438
+ align-items: center;
4439
+ width: 100%;
4440
+ justify-content: space-between;
4441
+ position: fixed;
4442
+ `, hl = n(Wr)`
4443
+ display: flex;
4444
+ color: ${(e) => e.theme.colors.brandColorJade};
4445
+ cursor: pointer;
4446
+ width: ${o.sp4};
4447
+ height: ${o.sp4};
4448
+ `, lo = n(On)`
4449
+ cursor: pointer;
4450
+ width: ${o.sp4};
4451
+ height: ${o.sp4};
4452
+ float: right;
4453
+ color: inherit;
4454
+ `, so = n.div`
4455
+ color: ${(e) => e.theme.colors.hero};
4456
+ &:hover {
4457
+ color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
4458
+ }
4459
+ `, gl = n.div`
4460
+ margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
4461
+ display: flex;
4462
+ float: right;
4463
+ `, yl = n.div`
4464
+ display: flex;
4465
+ align-items: center;
4466
+ justify-content: center;
4467
+ position: relative;
4468
+ float: right;
4469
+ cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
4470
+ color: ${(e) => e.theme.colors.hero};
4471
+ &:hover {
4472
+ color: ${(e) => e.theme.colors.primary};
4473
+ }
4474
+ `, fl = n(Er)`
4475
+ display: flex;
4476
+ width: ${o.sp4};
4477
+ height: ${o.sp4};
4478
+ align-items: center;
4479
+ justify-content: center;
4480
+ `, co = n.div`
4481
+ margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
4482
+ margin-left: ${o.sp5};
4483
+ margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
4484
+ `, xl = n.div`
4485
+ display: flex;
4486
+ flex-direction: column;
4487
+ width: 100vw;
4488
+ overflow-x: hidden;
4489
+ background: -webkit-linear-gradient(
4490
+ to right,
4491
+ ${(e) => e.theme.colors.background} 42%,
4492
+ ${(e) => e.theme.colors.grey4} 42%
4493
+ );
4494
+ background: -moz-linear-gradient(
4495
+ to right,
4496
+ ${(e) => e.theme.colors.background} 42%,
4497
+ ${(e) => e.theme.colors.grey4} 42%
4498
+ );
4499
+ background: -o-linear-gradient(
4500
+ to right,
4501
+ ${(e) => e.theme.colors.background} 42%,
4502
+ ${(e) => e.theme.colors.grey4} 42%
4503
+ );
4504
+ background: linear-gradient(
4505
+ to right,
4506
+ ${(e) => e.theme.colors.background} 42%,
4507
+ ${(e) => e.theme.colors.grey4} 42%
4508
+ );
4509
+ ${(e) => e.windowSize === "small" && `
4510
+ background: ${e.theme.colors.grey4};
4511
+ `}
4512
+ min-height: 100vh;
4513
+ `, bl = n.div`
4514
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4515
+ width: 100%;
4516
+ margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
4517
+ `, wl = n.div`
4518
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4519
+ `, $l = n.div`
4520
+ margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
4521
+ margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
4522
+ `, Sl = n.div`
4523
+ display: flex;
4524
+ flex-direction: column;
4525
+ height: ${o.sp11};
4526
+ `;
4527
+ export {
4528
+ Fl as default,
4529
+ an as uniqueName
4530
+ };