@zeniai/web-components 3.16.96 → 3.16.98

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 (906) hide show
  1. package/dist/ACHDetailsPage-BBq7KpbY.js +160 -0
  2. package/dist/ACHDetailsPage-DylADZcq.cjs +21 -0
  3. package/dist/AIPerformancePage-49rMQNo8.cjs +539 -0
  4. package/dist/AIPerformancePage-Djq6mgKa.js +1345 -0
  5. package/dist/AccountInfoPage-CxWBk_t_.js +78 -0
  6. package/dist/AccountInfoPage-cukiTOdI.cjs +18 -0
  7. package/dist/AccountInfoPageContent-DO6aVqBW.js +428 -0
  8. package/dist/AccountInfoPageContent-DSMEqHaQ.cjs +149 -0
  9. package/dist/AccountLockedInfoModal-DVvzKHJQ.js +125 -0
  10. package/dist/AccountLockedInfoModal-DvX5eBDW.cjs +59 -0
  11. package/dist/AccountReconDetailsDrawerPage-Bj4ePvzO.cjs +239 -0
  12. package/dist/AccountReconDetailsDrawerPage-DEKzSPCP.js +687 -0
  13. package/dist/AccountRow-B-Kuiktt.cjs +298 -0
  14. package/dist/AccountRow-Ck53DDbT.js +1014 -0
  15. package/dist/AccountsPromoCardStack-BTOTy7eB.cjs +207 -0
  16. package/dist/AccountsPromoCardStack-BYjuB-4I.js +664 -0
  17. package/dist/AddAddressForCardDrawer-Ce64KTjv.cjs +6 -0
  18. package/dist/AddAddressForCardDrawer-e8qbO2Y5.js +82 -0
  19. package/dist/AddToWalletPage-BY-DAvC2.cjs +344 -0
  20. package/dist/AddToWalletPage-DA6AmuaY.js +642 -0
  21. package/dist/AgingReportsPage-B_Hhl_Is.js +827 -0
  22. package/dist/AgingReportsPage-DmpRRl5V.cjs +79 -0
  23. package/dist/AllUserItems-BV22Ibpn.js +979 -0
  24. package/dist/AllUserItems-Cl0cj8xs.cjs +192 -0
  25. package/dist/ApAgingDetailPage-DqV1vOVH.js +239 -0
  26. package/dist/ApAgingDetailPage-edphWNmX.cjs +46 -0
  27. package/dist/AppBasePage-LrgCcvIv.js +120 -0
  28. package/dist/AppBasePage-j4WCu85K.cjs +71 -0
  29. package/dist/AppDrawerContent-DeMCaqUx.cjs +91 -0
  30. package/dist/AppDrawerContent-aZG5Qc_X.js +379 -0
  31. package/dist/ApprovalRulesSettingsPage-DQQw30S5.js +145 -0
  32. package/dist/ApprovalRulesSettingsPage-ls39AdMl.cjs +47 -0
  33. package/dist/ArAgingChart-Am7LTkqG.js +530 -0
  34. package/dist/ArAgingChart-DJUDSziJ.cjs +24 -0
  35. package/dist/ArAgingDetailPage-BEKsyA9Q.js +243 -0
  36. package/dist/ArAgingDetailPage-HFFxDp0T.cjs +46 -0
  37. package/dist/AttachmentView-B8MFTkMA.cjs +101 -0
  38. package/dist/AttachmentView-Bujbmx1d.js +260 -0
  39. package/dist/BankAccountSection-C5rYUW3V.js +398 -0
  40. package/dist/BankAccountSection-DQqm2nIv.cjs +79 -0
  41. package/dist/BankAccountWarningSection-CfMw0F65.cjs +51 -0
  42. package/dist/BankAccountWarningSection-DakysSbk.js +110 -0
  43. package/dist/BankConnectionsSettingsPage-BjZDNgZG.js +1694 -0
  44. package/dist/BankConnectionsSettingsPage-DCQRpHyj.cjs +425 -0
  45. package/dist/BillDetailPage-DYc_nZRU.js +1801 -0
  46. package/dist/BillDetailPage-DtaH6tub.cjs +266 -0
  47. package/dist/BillPayApprovalRuleDetailPage-Dp8ly8F1.cjs +27 -0
  48. package/dist/BillPayApprovalRuleDetailPage-ppU1Epmy.js +247 -0
  49. package/dist/BillPayApprovalRulesPage-79sb698D.cjs +235 -0
  50. package/dist/BillPayApprovalRulesPage-UblNi2mR.js +415 -0
  51. package/dist/BillPayPromoPage-BK2J56U5.js +292 -0
  52. package/dist/BillPayPromoPage-n8du33ng.cjs +84 -0
  53. package/dist/BillPaySetUpPage-C-nFLRcj.cjs +42 -0
  54. package/dist/BillPaySetUpPage-Jic5E25q.js +408 -0
  55. package/dist/BillingSettingsPage-CKZVChEm.js +336 -0
  56. package/dist/BillingSettingsPage-DJm80nVu.cjs +44 -0
  57. package/dist/BillsBulkReviewDrawerPage-BM_gjRot.cjs +1 -0
  58. package/dist/BillsBulkReviewDrawerPage-C4Ra5e82.js +216 -0
  59. package/dist/BoxItem-8PfNfaHq.js +118 -0
  60. package/dist/BoxItem-DN9NERdh.cjs +53 -0
  61. package/dist/BusinessVerificationPage-DrVjUk4E.cjs +138 -0
  62. package/dist/BusinessVerificationPage-JGge-Iiw.js +716 -0
  63. package/dist/BusyIndication-DIixeGba.js +19 -0
  64. package/dist/BusyIndication-czfiajib.cjs +9 -0
  65. package/dist/CardNumberSubText-W81SQ4GF.js +59 -0
  66. package/dist/CardNumberSubText-nyLZYdhp.cjs +21 -0
  67. package/dist/CashbackDetailPage-D99nDD3F.cjs +285 -0
  68. package/dist/CashbackDetailPage-DnOcmx2i.js +825 -0
  69. package/dist/ChargeCardDetailPage-CD76sERW.cjs +1462 -0
  70. package/dist/ChargeCardDetailPage-DNVMsxzE.js +5454 -0
  71. package/dist/ChargeCardListPage-B0HJ7jOc.cjs +412 -0
  72. package/dist/ChargeCardListPage-Dgj-WWWI.js +1797 -0
  73. package/dist/ChargeCardListTable-Cm_Sybbp.cjs +711 -0
  74. package/dist/ChargeCardListTable-uJZKWoh7.js +2901 -0
  75. package/dist/ChargeCardPromoPage-CVjvjet5.cjs +222 -0
  76. package/dist/ChargeCardPromoPage-uqT96W3_.js +816 -0
  77. package/dist/ChargeCardSetupPage-BDbJU-vm.js +359 -0
  78. package/dist/ChargeCardSetupPage-BdEaIjSl.cjs +36 -0
  79. package/dist/ChargeCardStatementsPage-4sx_h-VB.cjs +60 -0
  80. package/dist/ChargeCardStatementsPage-DImRqpH1.js +243 -0
  81. package/dist/CheckDepositDrawerPage-BVtOOPoa.js +726 -0
  82. package/dist/CheckDepositDrawerPage-D_pzsIlA.cjs +206 -0
  83. package/dist/CollapsableReportTable-Crihcv_z.js +11659 -0
  84. package/dist/CollapsableReportTable-DTQ7wWOL.cjs +2844 -0
  85. package/dist/CompanyOfficerDetailsSection-CNxtAkKM.js +1633 -0
  86. package/dist/CompanyOfficerDetailsSection-D1pyNgrZ.cjs +260 -0
  87. package/dist/CompanyPassportCard-D6gvCsuL.cjs +42 -0
  88. package/dist/CompanyPassportCard-DMRQkRPb.js +146 -0
  89. package/dist/CompanyPassportPage-CPR3oNmu.cjs +574 -0
  90. package/dist/CompanyPassportPage-D3XvbSF_.js +2160 -0
  91. package/dist/CompleteProfile-BNPSitvB.cjs +52 -0
  92. package/dist/CompleteProfile-BqjXO5ze.js +301 -0
  93. package/dist/ConfettiBurst-C__szpPs.cjs +1 -0
  94. package/dist/ConfettiBurst-DtwLo4WZ.js +37 -0
  95. package/dist/CreateOrEditVendorPage-DEQxYGRZ.cjs +281 -0
  96. package/dist/CreateOrEditVendorPage-FrGRJxMy.js +763 -0
  97. package/dist/CreditCardPaymentDrawerPage-BvifQpD3.js +1170 -0
  98. package/dist/CreditCardPaymentDrawerPage-DlpMv_02.cjs +224 -0
  99. package/dist/CurrencySelectField-ClOg6nnS.js +348 -0
  100. package/dist/CurrencySelectField-Dh4jJSEe.cjs +139 -0
  101. package/dist/CustomerOnboardingActivationPage-7Lb6WO5j.cjs +88 -0
  102. package/dist/CustomerOnboardingActivationPage-Du-zzeL2.js +143 -0
  103. package/dist/CustomerOnboardingContainerPage-BPIOQbSf.cjs +1 -0
  104. package/dist/CustomerOnboardingContainerPage-DMZOvVMM.js +7 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-BgY95XeU.js +434 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-CL6IbUe_.cjs +162 -0
  107. package/dist/CustomerOnboardingNoStepsPage-BsKoqUta.js +424 -0
  108. package/dist/CustomerOnboardingNoStepsPage-_omqOQbk.cjs +66 -0
  109. package/dist/CustomerOnboardingPage-DUMQKVfM.js +1059 -0
  110. package/dist/CustomerOnboardingPage-DjX0ib1H.cjs +107 -0
  111. package/dist/CustomerOnboardingProductSuitePage-DGVV8Tkk.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-lfUbZoLt.cjs +202 -0
  113. package/dist/Dashboard-C4ZjdROu.cjs +1551 -0
  114. package/dist/Dashboard-CdYlvep-.js +5540 -0
  115. package/dist/DashboardReportPage-Dk__DFMC.cjs +371 -0
  116. package/dist/DashboardReportPage-c6q027Qp.js +2536 -0
  117. package/dist/DashboardSidebarBackgroundAnimation-BdDVYK19.js +53 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-CteYZ9wI.cjs +12 -0
  119. package/dist/DepositAccTransactionItem-CHjUd-fP.cjs +76 -0
  120. package/dist/DepositAccTransactionItem-D8kL8enp.js +112 -0
  121. package/dist/DepositAccTransactionListPage-BS-OReem.js +152 -0
  122. package/dist/DepositAccTransactionListPage-CWsobl9d.cjs +66 -0
  123. package/dist/DomesticWireDetailsPage-CjM1DXnn.js +189 -0
  124. package/dist/DomesticWireDetailsPage-aFdjeYJO.cjs +21 -0
  125. package/dist/DownloadOverlay-Dr4uLNpZ.js +2148 -0
  126. package/dist/DownloadOverlay-jDZDDFUO.cjs +439 -0
  127. package/dist/DrawerPage-3R3ybTo3.cjs +118 -0
  128. package/dist/DrawerPage-CbKBsc7w.js +208 -0
  129. package/dist/EditPeoplePage-BgsR09q8.js +392 -0
  130. package/dist/EditPeoplePage-Pe0tOsye.cjs +55 -0
  131. package/dist/EditReimbursementDetailPage-BTrwOX_s.js +4531 -0
  132. package/dist/EditReimbursementDetailPage-Be_kKDOZ.cjs +865 -0
  133. package/dist/EmptySearchResults-B5X9y8_q.cjs +46 -0
  134. package/dist/EmptySearchResults-qwax-SmD.js +70 -0
  135. package/dist/EntityDetailPage-2Nnk9mTU.cjs +18 -0
  136. package/dist/EntityDetailPage-Cvd4MG0F.js +82 -0
  137. package/dist/EntitySummarySection-BIV9aAq2.js +530 -0
  138. package/dist/EntitySummarySection-CHjHKVll.cjs +149 -0
  139. package/dist/ExpenseAutomationOverviewPage-B5MtjO2p.js +807 -0
  140. package/dist/ExpenseAutomationOverviewPage-CkNya7lJ.cjs +281 -0
  141. package/dist/ExpenseAutomationPage-D6uDoWaZ.cjs +1650 -0
  142. package/dist/ExpenseAutomationPage-DW6Pxoah.js +11583 -0
  143. package/dist/ExpressPayPage-D0WoXfIn.cjs +168 -0
  144. package/dist/ExpressPayPage-DnpQuDmt.js +1136 -0
  145. package/dist/FeaturePreviewPage-BmwBZ7ZP.js +114 -0
  146. package/dist/FeaturePreviewPage-Gad3U017.cjs +11 -0
  147. package/dist/FollowStepsSection-B2I9SddL.js +1313 -0
  148. package/dist/FollowStepsSection-BBIEiql0.cjs +390 -0
  149. package/dist/GlobalReviewListPage-CnRrwAay.cjs +291 -0
  150. package/dist/GlobalReviewListPage-D3GCP5Xd.js +1674 -0
  151. package/dist/InformationCardStack-CbGor6Zl.cjs +31 -0
  152. package/dist/InformationCardStack-mEhasBqu.js +219 -0
  153. package/dist/InsightsCardStack-Mj7QcQnH.js +305 -0
  154. package/dist/InsightsCardStack-ZekNgDre.cjs +79 -0
  155. package/dist/InsightsSection-B3xD0SZ9.js +97 -0
  156. package/dist/InsightsSection-Cj0EBe4e.cjs +27 -0
  157. package/dist/IntegrationsSettingsPage-3nw1F82-.cjs +57 -0
  158. package/dist/IntegrationsSettingsPage-CsI_agJB.js +136 -0
  159. package/dist/InternationalWireSwiftDetailsPage-B3HuO4ub.cjs +171 -0
  160. package/dist/InternationalWireSwiftDetailsPage-Dszmi69h.js +753 -0
  161. package/dist/InternationalWireVerificationPage-B-shGAxd.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-DG9Enrpo.js +877 -0
  163. package/dist/InviteFormPage-Be1JlNUV.cjs +312 -0
  164. package/dist/InviteFormPage-DK6X9Zwi.js +873 -0
  165. package/dist/InvitePageListView-CJ_rd6_c.cjs +739 -0
  166. package/dist/InvitePageListView-CwKbcKlM.js +1764 -0
  167. package/dist/InvitePeoplePage-BqzJOjVI.js +286 -0
  168. package/dist/InvitePeoplePage-Dp2BFTTo.cjs +12 -0
  169. package/dist/InvoiceUploadSection-CokNNkKu.js +465 -0
  170. package/dist/InvoiceUploadSection-J7BP8nKp.cjs +140 -0
  171. package/dist/IssueChargeCardPage-CRtJDmrZ.js +2875 -0
  172. package/dist/IssueChargeCardPage-DoxhAYym.cjs +532 -0
  173. package/dist/LabeledAddressValue-BhwrrtZX.js +115 -0
  174. package/dist/LabeledAddressValue-Dpax2OL-.cjs +49 -0
  175. package/dist/LabeledAddressValueField-Bls7DkDl.cjs +45 -0
  176. package/dist/LabeledAddressValueField-DzmwP7hP.js +130 -0
  177. package/dist/LabeledControlledCheckBoxField-B6ndrF2e.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-CyI7Zoy7.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-BQIiTIeZ.cjs +204 -0
  180. package/dist/LabeledCreatableSingleSelectField-CfzLlkho.js +515 -0
  181. package/dist/LabeledDocumentField-B1pUmFdK.cjs +41 -0
  182. package/dist/LabeledDocumentField-p3pI5qLu.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-Cl4riSnX.cjs +59 -0
  184. package/dist/LabeledDropDownFormattedTextField-oQX33Fim.js +163 -0
  185. package/dist/LabeledEmailInputField-CnHEm8Qx.js +425 -0
  186. package/dist/LabeledEmailInputField-DrkByNUJ.cjs +182 -0
  187. package/dist/LabeledItemWithButton-BqdMQUnO.cjs +21 -0
  188. package/dist/LabeledItemWithButton-CRe8E9_S.js +74 -0
  189. package/dist/LabeledNameField-CfZMtHcM.js +293 -0
  190. package/dist/LabeledNameField-iOi_J8vT.cjs +141 -0
  191. package/dist/LabeledSingleSelectField-6VSFDx2q.js +372 -0
  192. package/dist/LabeledSingleSelectField-BDPxfl4m.cjs +136 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-CrRRRHZU.cjs +38 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-D6hB_fCL.js +103 -0
  195. package/dist/LabeledText-DOdydDC4.cjs +42 -0
  196. package/dist/LabeledText-Db46hFZY.js +103 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn.js +572 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-P_wGSd90.cjs +229 -0
  199. package/dist/LabeledZeniRolesDropDownField-C3df-yT7.cjs +297 -0
  200. package/dist/LabeledZeniRolesDropDownField-Docjgj8Y.js +975 -0
  201. package/dist/LinkJETransactionPage-BZSRaZqY.js +406 -0
  202. package/dist/LinkJETransactionPage-DwxPwwMt.cjs +98 -0
  203. package/dist/LockCardPage-DfymD0AX.cjs +623 -0
  204. package/dist/LockCardPage-KTyESoXL.js +2032 -0
  205. package/dist/LowBalancePopup-9klSPqiR.cjs +34 -0
  206. package/dist/LowBalancePopup-B0BDCEui.js +219 -0
  207. package/dist/MagicLinkACHDetailsPage-CIGc-C5b.cjs +1 -0
  208. package/dist/MagicLinkACHDetailsPage-DwFvuGwG.js +39 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-CDB2igue.js +44 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-D358AxHH.cjs +1 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage---tTCxNy.cjs +1 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-C2kxncrD.js +43 -0
  213. package/dist/MagicLinkSuccessPage-DKNHLKR6.cjs +31 -0
  214. package/dist/MagicLinkSuccessPage-DNVe2qMu.js +59 -0
  215. package/dist/MagicLinkTitleSection-CWw516D8.js +40 -0
  216. package/dist/MagicLinkTitleSection-DasMF4Hn.cjs +17 -0
  217. package/dist/MailingDetailsSection-CugAM90r.js +74 -0
  218. package/dist/MailingDetailsSection-TzM7Llcl.cjs +21 -0
  219. package/dist/MatchingOperatorDropdown-COTipLwY.js +572 -0
  220. package/dist/MatchingOperatorDropdown-JXD3HOT_.cjs +130 -0
  221. package/dist/Menu-9KBkg_CS.cjs +17 -0
  222. package/dist/Menu-CGN2qO6T.js +110 -0
  223. package/dist/MoreMenuButton-CUZ5HW9b.cjs +167 -0
  224. package/dist/MoreMenuButton-p0Mf3mX-.js +569 -0
  225. package/dist/MyBankConnectionsSettingsPage-CQUfVa0r.js +297 -0
  226. package/dist/MyBankConnectionsSettingsPage-DtWjJVMX.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-B5i4E76H.cjs +6 -0
  228. package/dist/MyPendingActivationChargeCardListPage-TOQWRGjp.js +168 -0
  229. package/dist/MyProfileSettingsPage-BhpQ_Oe_.cjs +85 -0
  230. package/dist/MyProfileSettingsPage-lCG03Uoh.js +641 -0
  231. package/dist/NavBarWithPicker-DLLvivn4.js +106 -0
  232. package/dist/NavBarWithPicker-DOPYL1Qq.cjs +30 -0
  233. package/dist/NavigationArrow-B4j2t8Qu.js +88 -0
  234. package/dist/NavigationArrow-CgPs6NnM.cjs +47 -0
  235. package/dist/NavigationDots-CCddEFw0.cjs +15 -0
  236. package/dist/NavigationDots-DyMqwpgy.js +44 -0
  237. package/dist/NewGlobalMerchantPage-Bx7iBsCP.js +543 -0
  238. package/dist/NewGlobalMerchantPage-D-SCiTKW.cjs +160 -0
  239. package/dist/NoDataChart-Ce1_TZ5w.js +58 -0
  240. package/dist/NoDataChart-_WwwCbpc.cjs +26 -0
  241. package/dist/NoDataTable-DNZz_we3.cjs +8 -0
  242. package/dist/NoDataTable-l2T5Hw3t.js +27 -0
  243. package/dist/NotFoundPage-DtHSpUtX.cjs +46 -0
  244. package/dist/NotFoundPage-msdN-Eu6.js +71 -0
  245. package/dist/NotificationSettingsPage-BKhb2W9e.cjs +163 -0
  246. package/dist/NotificationSettingsPage-_ovcjr8E.js +541 -0
  247. package/dist/NotificationsListConfig-BJm7A9Mz.js +10 -0
  248. package/dist/NotificationsListConfig-DuhGZzwW.cjs +1 -0
  249. package/dist/NotificationsPage-Ddxb5kE0.js +2664 -0
  250. package/dist/NotificationsPage-T7DQHM7Z.cjs +685 -0
  251. package/dist/OpExByVendorPage-BLAHey0l.js +1058 -0
  252. package/dist/OpExByVendorPage-BmkEuJoA.cjs +100 -0
  253. package/dist/PandLWithForecastPage-B7Z73Sq-.js +563 -0
  254. package/dist/PandLWithForecastPage-D_hXxNXd.cjs +107 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-DVA84Fal.cjs +106 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-pL7omrJk.js +623 -0
  257. package/dist/PeoplePage-BHRFiM0D.js +1994 -0
  258. package/dist/PeoplePage-I0VU4tWW.cjs +675 -0
  259. package/dist/ProductsCarousel-CUESnjDE.cjs +142 -0
  260. package/dist/ProductsCarousel-D2bf_6Gb.js +309 -0
  261. package/dist/PromoBaseCards-BX0gGJ4r.cjs +218 -0
  262. package/dist/PromoBaseCards-CI7UOpeY.js +356 -0
  263. package/dist/QBOConnectionDialog-Ciwc0tK8.cjs +51 -0
  264. package/dist/QBOConnectionDialog-D7MeKn1t.js +115 -0
  265. package/dist/QBOSetupSection-BR_vZgeY.cjs +79 -0
  266. package/dist/QBOSetupSection-DWhfA4Xv.js +167 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-CQnt8305.cjs +26 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-C_dTOk5P.js +247 -0
  269. package/dist/ReimbursementApprovalRulesPage-B5lca4qx.js +410 -0
  270. package/dist/ReimbursementApprovalRulesPage-BZHg5ZZE.cjs +237 -0
  271. package/dist/ReimbursementDetailPage-COIRwy7i.js +1514 -0
  272. package/dist/ReimbursementDetailPage-LHQzgoP0.cjs +314 -0
  273. package/dist/ReimbursementPromoPage-Bjm0UHcm.js +363 -0
  274. package/dist/ReimbursementPromoPage-Bv-j3PRg.cjs +84 -0
  275. package/dist/ReimbursementSetUpPage-BAzYYu7z.cjs +140 -0
  276. package/dist/ReimbursementSetUpPage-CMYR8CcH.js +663 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-BDdhVfaz.js +204 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-Dvejaa27.cjs +1 -0
  279. package/dist/ReloadCard-B2sJR97f.js +137 -0
  280. package/dist/ReloadCard-BsD8z_iV.cjs +26 -0
  281. package/dist/ReloadContainer-CGM4sC6N.cjs +596 -0
  282. package/dist/ReloadContainer-YLibakqE.js +2165 -0
  283. package/dist/ReportTableViewSelector-C-fde-UF.cjs +150 -0
  284. package/dist/ReportTableViewSelector-_IO343vS.js +679 -0
  285. package/dist/ReportsPage-C-aQ1bdd.js +1315 -0
  286. package/dist/ReportsPage-zEOZ8YKZ.cjs +121 -0
  287. package/dist/RevenueChart-Bgq6My4J.js +2240 -0
  288. package/dist/RevenueChart-D3iV-Esn.cjs +280 -0
  289. package/dist/ReviewDetailsPage-COx9R71r.js +1073 -0
  290. package/dist/ReviewDetailsPage-DagSp_-Q.cjs +290 -0
  291. package/dist/ReviewOverlay-CJ3qO1d1.cjs +152 -0
  292. package/dist/ReviewOverlay-CPU7RPiJ.js +299 -0
  293. package/dist/RoleWithToolTip-DSSGBzvw.js +72 -0
  294. package/dist/RoleWithToolTip-xbW61W6W.cjs +22 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-DKGBfhAM.js +806 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-woMhGSmD.cjs +37 -0
  297. package/dist/ScheduleDetailsPage-B-fKJ7Ct.js +726 -0
  298. package/dist/ScheduleDetailsPage-CfvE9sZa.cjs +37 -0
  299. package/dist/ScheduleSequenceTable-BbtC1ECd.cjs +324 -0
  300. package/dist/ScheduleSequenceTable-Dh_aT47H.js +1261 -0
  301. package/dist/SetUpAccountSection-C18cvVI9.cjs +378 -0
  302. package/dist/SetUpAccountSection-DrMCC1IY.js +1469 -0
  303. package/dist/SignIn-C7GzFQCP.cjs +448 -0
  304. package/dist/SignIn-Ij6tlYI5.js +1075 -0
  305. package/dist/SpendManagementListViewPage-AI676Urw.js +627 -0
  306. package/dist/SpendManagementListViewPage-BlZRbxP2.cjs +122 -0
  307. package/dist/SpendManagementPerTabPage-D79c3Xqh.js +2735 -0
  308. package/dist/SpendManagementPerTabPage-DGDYSMkA.cjs +754 -0
  309. package/dist/SpendManagementSection-BqWbsmBW.js +1043 -0
  310. package/dist/SpendManagementSection-o95uXO25.cjs +230 -0
  311. package/dist/StatementItem-Aal79YaO.js +81 -0
  312. package/dist/StatementItem-Wc36TYnm.cjs +31 -0
  313. package/dist/StatementsPage-BG_pNQzc.js +130 -0
  314. package/dist/StatementsPage-BYtn4TpV.cjs +58 -0
  315. package/dist/StatusSwitcher-Bczeuf4b.cjs +120 -0
  316. package/dist/StatusSwitcher-DYRXaLvx.js +319 -0
  317. package/dist/SubTabSwitcher-C75XU1EG.js +113 -0
  318. package/dist/SubTabSwitcher-DpmFI2cH.cjs +58 -0
  319. package/dist/SuccessAnimation-B19FvyB5.cjs +13 -0
  320. package/dist/SuccessAnimation-Dz3rG1oR.js +52 -0
  321. package/dist/SummaryCard-DEnzgi31.js +25 -0
  322. package/dist/SummaryCard-Dhedhq6Z.cjs +1 -0
  323. package/dist/TaskDetailPage-CUnMDU4x.cjs +775 -0
  324. package/dist/TaskDetailPage-Rh40uaSP.js +2533 -0
  325. package/dist/TaskListRow-BWFHObLD.cjs +556 -0
  326. package/dist/TaskListRow-D0_ed1eH.js +1950 -0
  327. package/dist/TaskManagementPage-BacWm0wS.js +1935 -0
  328. package/dist/TaskManagementPage-CrcLtV2i.cjs +508 -0
  329. package/dist/TimeRangeSwitcher-BOzR-0O6.js +265 -0
  330. package/dist/TimeRangeSwitcher-CPkZ2U1J.cjs +64 -0
  331. package/dist/TimeframeSwitcher-BVgI_VZw.js +103 -0
  332. package/dist/TimeframeSwitcher-Dlrg-aON.cjs +31 -0
  333. package/dist/TimeframeSwitcherWithToggle-CPVSAvFa.js +157 -0
  334. package/dist/TimeframeSwitcherWithToggle-TL2wYAPj.cjs +31 -0
  335. package/dist/TopExCard-CRng72UX.cjs +38 -0
  336. package/dist/TopExCard-ImUx-vXr.js +569 -0
  337. package/dist/TopExDetailPage-Dg_8DQk8.js +318 -0
  338. package/dist/TopExDetailPage-vQ6X99kL.cjs +132 -0
  339. package/dist/TransactionDetailPage-BzaDB50S.js +5238 -0
  340. package/dist/TransactionDetailPage-bJmvRggD.cjs +912 -0
  341. package/dist/TransactionList-DMd3dgoK.js +558 -0
  342. package/dist/TransactionList-FQ2cIiEQ.cjs +147 -0
  343. package/dist/TransactionListBig-BxHqh8u6.js +658 -0
  344. package/dist/TransactionListBig-DzLyDnJo.cjs +284 -0
  345. package/dist/TransactionListPage-BXeoc0zo.cjs +35 -0
  346. package/dist/TransactionListPage-CN9fZznd.js +145 -0
  347. package/dist/TransactionVendorDetailPage-CykcquSh.js +425 -0
  348. package/dist/TransactionVendorDetailPage-DYXoPlu7.cjs +80 -0
  349. package/dist/TransferDrawerPage-Cbw9Wb6G.cjs +362 -0
  350. package/dist/TransferDrawerPage-oV7ickRP.js +1436 -0
  351. package/dist/TreasuryOverviewPage-CECDKjNn.js +1890 -0
  352. package/dist/TreasuryOverviewPage-LPAaZSqL.cjs +708 -0
  353. package/dist/TreasuryPromoPage-BOLyX-Ph.cjs +505 -0
  354. package/dist/TreasuryPromoPage-Bgt7uGAE.js +1123 -0
  355. package/dist/TreasuryStatementsPage-BZblAyPW.cjs +58 -0
  356. package/dist/TreasuryStatementsPage-QyWxshsI.js +131 -0
  357. package/dist/TreasuryTaxLetterPage-BLmfU0VD.js +131 -0
  358. package/dist/TreasuryTaxLetterPage-D1yLiou2.cjs +58 -0
  359. package/dist/TrendChart-C_6ob-SX.js +334 -0
  360. package/dist/TrendChart-R93qbJOi.cjs +16 -0
  361. package/dist/TrendWithTransactions--BDnLr0y.cjs +116 -0
  362. package/dist/TrendWithTransactions-lMD2sZ-C.js +346 -0
  363. package/dist/UncategorizedAccountsMappingPage-BlXVLQb6.cjs +244 -0
  364. package/dist/UncategorizedAccountsMappingPage-DEgz17_R.js +1159 -0
  365. package/dist/UnitIntegrationPage-D9Pzxqju.js +405 -0
  366. package/dist/UnitIntegrationPage-DJIl1Muk.cjs +67 -0
  367. package/dist/UploadAdditionalDocumentOverlay-BEAIP2qX.cjs +38 -0
  368. package/dist/UploadAdditionalDocumentOverlay-CJYvOjh0.js +211 -0
  369. package/dist/Vendor2FAPopup-D-r0NVE-.js +69 -0
  370. package/dist/Vendor2FAPopup-D7YK-9TM.cjs +1 -0
  371. package/dist/VendorACHDetailsPage-D2yVoVCo.cjs +1 -0
  372. package/dist/VendorACHDetailsPage-Dv6bTD6Y.js +43 -0
  373. package/dist/VendorDetailPage-BhfawsBd.js +1236 -0
  374. package/dist/VendorDetailPage-qNE7YaXg.cjs +257 -0
  375. package/dist/VendorDomesticWireDetailsPage-BjmlrfTQ.js +53 -0
  376. package/dist/VendorDomesticWireDetailsPage-CHAtWjo1.cjs +1 -0
  377. package/dist/VendorFiling1099EditablePage-8Ps3bC17.cjs +175 -0
  378. package/dist/VendorFiling1099EditablePage-glvi0GTU.js +842 -0
  379. package/dist/VendorFirstReviewPage-DUuUM8ZT.js +2748 -0
  380. package/dist/VendorFirstReviewPage-oY0z6YRM.cjs +730 -0
  381. package/dist/VendorInternationalWireDetailsPage--Lb-TviQ.js +968 -0
  382. package/dist/VendorInternationalWireDetailsPage-BGqHJ8Fy.cjs +152 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-C6KviV2Z.js +52 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-Ch2E5Xdc.cjs +1 -0
  385. package/dist/VendorsAccountsSection-4F0h643h.cjs +68 -0
  386. package/dist/VendorsAccountsSection-EmHO3wQ0.js +279 -0
  387. package/dist/VerifyDevice-CJfSFWIq.cjs +112 -0
  388. package/dist/VerifyDevice-DE3UbLEe.js +298 -0
  389. package/dist/VideoPlayer-B9gJRMd7.cjs +77 -0
  390. package/dist/VideoPlayer-Gw_PLr8F.js +170 -0
  391. package/dist/VideoPopup-C9CXCxok.cjs +31 -0
  392. package/dist/VideoPopup-DPZYhLgy.js +60 -0
  393. package/dist/WarningsDrawerPage-CA_8oK-L.cjs +92 -0
  394. package/dist/WarningsDrawerPage-CZvToguS.js +228 -0
  395. package/dist/ZeniAccountDetailPage-CQhqngBz.js +908 -0
  396. package/dist/ZeniAccountDetailPage-Ft8Xj8AO.cjs +300 -0
  397. package/dist/ZeniAccountListViewPage-CnRanTwP.cjs +441 -0
  398. package/dist/ZeniAccountListViewPage-CpX8vqYa.js +1078 -0
  399. package/dist/ZeniAccountNavBarPieces-D7E1IDCs.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-DsUwG15z.js +89 -0
  401. package/dist/ZeniAccountPromoPage-DA611IgH.js +522 -0
  402. package/dist/ZeniAccountPromoPage-DMAi7dCU.cjs +184 -0
  403. package/dist/ZeniAccountSetupPage-C6H2vJ5W.cjs +36 -0
  404. package/dist/ZeniAccountSetupPage-CJv2Fk1i.js +309 -0
  405. package/dist/ZeniAvatar-BMylobnL.cjs +13 -0
  406. package/dist/ZeniAvatar-CkImYzre.js +34 -0
  407. package/dist/ZeniCopyright-BKhkH3TE.cjs +1 -0
  408. package/dist/ZeniCopyright-FFqiWypL.js +9 -0
  409. package/dist/ZeniDatePicker-_0QaSUGM.cjs +187 -0
  410. package/dist/ZeniDatePicker-dUVeQUvW.js +386 -0
  411. package/dist/ZeniTransferAmountSlider-CQJITDk_.cjs +63 -0
  412. package/dist/ZeniTransferAmountSlider-DSrBZUbA.js +215 -0
  413. package/dist/analyticsHelper-CczQLvkM.js +65 -0
  414. package/dist/analyticsHelper-DfesZvQ9.cjs +1 -0
  415. package/dist/calculateSize-BrrrU0G8.cjs +1 -0
  416. package/dist/calculateSize-CjJdhSIv.js +22 -0
  417. package/dist/chartTypes-CwQl8aoN.js +47 -0
  418. package/dist/chartTypes-PNYGcuDD.cjs +1 -0
  419. package/dist/cockpit.cjs.js +2 -2
  420. package/dist/cockpit.esm.js +15 -15
  421. package/dist/common-DQluF0kK.js +22 -0
  422. package/dist/common-Do_mcjtQ.cjs +1 -0
  423. package/dist/commonDimensions-B1u_MhON.js +13 -0
  424. package/dist/commonDimensions-BlQqW7ac.cjs +1 -0
  425. package/dist/components/companyPassport/sections/companyInfo/CompanyInfoSection.d.ts +1 -1
  426. package/dist/detailCommon-Drh5W6zg.cjs +38 -0
  427. package/dist/detailCommon-nYxvvV_i.js +124 -0
  428. package/dist/downloadPdf-CVhMuZWQ.cjs +1 -0
  429. package/dist/downloadPdf-yGlKpV2-.js +32 -0
  430. package/dist/index-C65jHl_B.js +92167 -0
  431. package/dist/index-CQwLnHSI.cjs +21111 -0
  432. package/dist/index.cjs.js +1 -1
  433. package/dist/index.esm.js +1 -1
  434. package/dist/mapLoadingInProgressToTreeNode-CTtduHaM.cjs +1 -0
  435. package/dist/mapLoadingInProgressToTreeNode-DIAuL28N.js +25 -0
  436. package/dist/mapSectionWithAcOnlyToTreeNode-Crbf12_0.cjs +1 -0
  437. package/dist/mapSectionWithAcOnlyToTreeNode-DRSmQ56_.js +387 -0
  438. package/dist/mapSpacerToTreeNode-BCeyqr6q.cjs +1 -0
  439. package/dist/mapSpacerToTreeNode-DOEVwUIo.js +25 -0
  440. package/dist/mapTimeframeBalancesToTreeNode-BEV5ga38.cjs +1 -0
  441. package/dist/mapTimeframeBalancesToTreeNode-C2qUcud8.cjs +1 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-DbnAvW1M.js +24 -0
  443. package/dist/mapTimeframeBalancesToTreeNode-DkrEWOxt.js +24 -0
  444. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BbE8tcza.cjs +1 -0
  445. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN.js +32 -0
  446. package/dist/sectionColor-C6SPrs0I.cjs +1 -0
  447. package/dist/sectionColor-sdMEkCYk.js +32 -0
  448. package/dist/toCOABalancesWithID-CoStCBs5.cjs +1 -0
  449. package/dist/toCOABalancesWithID-rZFEkHuM.js +8 -0
  450. package/dist/toChartData-C-dHC-Oz.js +76 -0
  451. package/dist/toChartData-uAkAql9c.cjs +1 -0
  452. package/dist/uploadAttachment-C8uqoUGC.cjs +286 -0
  453. package/dist/uploadAttachment-D3clfqPu.js +952 -0
  454. package/dist/zeniDatePicker.helpers-B8ruZOv3.cjs +1 -0
  455. package/dist/zeniDatePicker.helpers-BrdcuC6f.js +14 -0
  456. package/package.json +3 -3
  457. package/dist/ACHDetailsPage-B_ueB3mz.cjs +0 -21
  458. package/dist/ACHDetailsPage-DxAYkVTx.js +0 -160
  459. package/dist/AIPerformancePage-Dmg2zq4G.cjs +0 -539
  460. package/dist/AIPerformancePage-lj5jXrSz.js +0 -1345
  461. package/dist/AccountInfoPage-BbnWkzfN.cjs +0 -18
  462. package/dist/AccountInfoPage-aCUotKnY.js +0 -78
  463. package/dist/AccountInfoPageContent-CMH2w5L-.cjs +0 -149
  464. package/dist/AccountInfoPageContent-oVi66qwJ.js +0 -428
  465. package/dist/AccountLockedInfoModal-DF-ipB9m.js +0 -125
  466. package/dist/AccountLockedInfoModal-tR5NGqfo.cjs +0 -59
  467. package/dist/AccountReconDetailsDrawerPage-1J6LhMo8.js +0 -687
  468. package/dist/AccountReconDetailsDrawerPage-vrCIHLp2.cjs +0 -239
  469. package/dist/AccountRow-BCLhEasL.cjs +0 -298
  470. package/dist/AccountRow-DLToQ1mR.js +0 -1014
  471. package/dist/AccountsPromoCardStack-BpYimr6r.js +0 -664
  472. package/dist/AccountsPromoCardStack-DXUavIIh.cjs +0 -207
  473. package/dist/AddAddressForCardDrawer-CFxUriSF.cjs +0 -6
  474. package/dist/AddAddressForCardDrawer-DQMvande.js +0 -82
  475. package/dist/AddToWalletPage-BsQ8aUfZ.js +0 -642
  476. package/dist/AddToWalletPage-WkJ53mpO.cjs +0 -344
  477. package/dist/AgingReportsPage-BuXroHT_.js +0 -827
  478. package/dist/AgingReportsPage-CHy6KsfN.cjs +0 -79
  479. package/dist/AllUserItems-8uuw94hp.cjs +0 -192
  480. package/dist/AllUserItems-DdTg07bG.js +0 -979
  481. package/dist/ApAgingDetailPage-C8G0NsZF.js +0 -239
  482. package/dist/ApAgingDetailPage-lCivERNE.cjs +0 -46
  483. package/dist/AppBasePage-ByS-fDF8.cjs +0 -71
  484. package/dist/AppBasePage-DwwY7uvE.js +0 -120
  485. package/dist/AppDrawerContent-8ksV39BF.cjs +0 -91
  486. package/dist/AppDrawerContent-BUpt243i.js +0 -379
  487. package/dist/ApprovalRulesSettingsPage-Dr4I5OBY.js +0 -145
  488. package/dist/ApprovalRulesSettingsPage-Dz2ajTK1.cjs +0 -47
  489. package/dist/ArAgingChart-CU5eVMzh.cjs +0 -24
  490. package/dist/ArAgingChart-QIvdNisb.js +0 -530
  491. package/dist/ArAgingDetailPage-CRfykc3u.js +0 -243
  492. package/dist/ArAgingDetailPage-DGquyTXZ.cjs +0 -46
  493. package/dist/AttachmentView-BqNj27V0.js +0 -260
  494. package/dist/AttachmentView-D456h8Eu.cjs +0 -101
  495. package/dist/BankAccountSection-BarBhIDB.cjs +0 -79
  496. package/dist/BankAccountSection-CntsWSde.js +0 -398
  497. package/dist/BankAccountWarningSection-D3phbtam.cjs +0 -51
  498. package/dist/BankAccountWarningSection-Y-1YgLMk.js +0 -110
  499. package/dist/BankConnectionsSettingsPage-CoK_yj3G.cjs +0 -425
  500. package/dist/BankConnectionsSettingsPage-DmSmZSdR.js +0 -1694
  501. package/dist/BillDetailPage-D1HAl_ZE.js +0 -1801
  502. package/dist/BillDetailPage-DKJHX_MM.cjs +0 -266
  503. package/dist/BillPayApprovalRuleDetailPage-BDeNplMv.js +0 -247
  504. package/dist/BillPayApprovalRuleDetailPage-sW4ejl59.cjs +0 -27
  505. package/dist/BillPayApprovalRulesPage-COZduu54.js +0 -415
  506. package/dist/BillPayApprovalRulesPage-DNHhWm9f.cjs +0 -235
  507. package/dist/BillPayPromoPage-7L0mRnc6.cjs +0 -84
  508. package/dist/BillPayPromoPage-BcMOG5FB.js +0 -292
  509. package/dist/BillPaySetUpPage-J0lFi72Z.js +0 -408
  510. package/dist/BillPaySetUpPage-o6-2Hmi2.cjs +0 -42
  511. package/dist/BillingSettingsPage-dvQnWO4S.cjs +0 -44
  512. package/dist/BillingSettingsPage-uTbxV3rm.js +0 -336
  513. package/dist/BillsBulkReviewDrawerPage-BN2lIqM5.cjs +0 -1
  514. package/dist/BillsBulkReviewDrawerPage-BfoKSL2Z.js +0 -216
  515. package/dist/BoxItem-Cq6ERoK9.cjs +0 -53
  516. package/dist/BoxItem-DzdS8ol9.js +0 -118
  517. package/dist/BusinessVerificationPage-B47su-4m.cjs +0 -138
  518. package/dist/BusinessVerificationPage-NqCFCrF9.js +0 -716
  519. package/dist/BusyIndication-1b-tGyYs.cjs +0 -9
  520. package/dist/BusyIndication-BqO5GnlW.js +0 -19
  521. package/dist/CardNumberSubText-B4Asy7gx.cjs +0 -21
  522. package/dist/CardNumberSubText-CGk4CKVa.js +0 -59
  523. package/dist/CashbackDetailPage-CqmNUnR8.js +0 -825
  524. package/dist/CashbackDetailPage-bA64Sx6k.cjs +0 -285
  525. package/dist/ChargeCardDetailPage-EGdxTfzJ.cjs +0 -1462
  526. package/dist/ChargeCardDetailPage-IsEuCesW.js +0 -5454
  527. package/dist/ChargeCardListPage-DjpR0jcU.cjs +0 -412
  528. package/dist/ChargeCardListPage-DlcM8IYR.js +0 -1797
  529. package/dist/ChargeCardListTable-CKpQFb2Y.cjs +0 -711
  530. package/dist/ChargeCardListTable-DK57zaH0.js +0 -2901
  531. package/dist/ChargeCardPromoPage-BLWJ8RLg.js +0 -816
  532. package/dist/ChargeCardPromoPage-Bv_8m06D.cjs +0 -222
  533. package/dist/ChargeCardSetupPage-CDbltKkw.js +0 -359
  534. package/dist/ChargeCardSetupPage-h4TPLOyv.cjs +0 -36
  535. package/dist/ChargeCardStatementsPage-CqCywTa9.js +0 -243
  536. package/dist/ChargeCardStatementsPage-DzPdTvcu.cjs +0 -60
  537. package/dist/CheckDepositDrawerPage-B0Ysfr6r.js +0 -726
  538. package/dist/CheckDepositDrawerPage-DZ-lZThq.cjs +0 -206
  539. package/dist/CollapsableReportTable-B3DvCjrf.js +0 -11659
  540. package/dist/CollapsableReportTable-CaIfiE4m.cjs +0 -2844
  541. package/dist/CompanyOfficerDetailsSection-CgUBAx9k.js +0 -1633
  542. package/dist/CompanyOfficerDetailsSection-kueOfHt0.cjs +0 -260
  543. package/dist/CompanyPassportCard-D_zJiIxR.js +0 -146
  544. package/dist/CompanyPassportCard-ZoYTFsOh.cjs +0 -42
  545. package/dist/CompanyPassportPage-59Z1Z5Wb.cjs +0 -574
  546. package/dist/CompanyPassportPage-cARt-8O2.js +0 -2160
  547. package/dist/CompleteProfile-BLZHz9XU.cjs +0 -52
  548. package/dist/CompleteProfile-DJXjzXJ2.js +0 -301
  549. package/dist/ConfettiBurst-CmDLmWR5.cjs +0 -1
  550. package/dist/ConfettiBurst-uqOIcfIb.js +0 -37
  551. package/dist/CreateOrEditVendorPage-CKZXOdvo.js +0 -763
  552. package/dist/CreateOrEditVendorPage-DgPFD2HH.cjs +0 -281
  553. package/dist/CreditCardPaymentDrawerPage-BXs2Utrw.cjs +0 -224
  554. package/dist/CreditCardPaymentDrawerPage-wlwDt64z.js +0 -1170
  555. package/dist/CurrencySelectField-B-jGM7Ly.cjs +0 -139
  556. package/dist/CurrencySelectField-CoT5cDnu.js +0 -348
  557. package/dist/CustomerOnboardingActivationPage-Dc2zLN8A.cjs +0 -88
  558. package/dist/CustomerOnboardingActivationPage-xceQqLdH.js +0 -143
  559. package/dist/CustomerOnboardingContainerPage-AoTp4Xkg.js +0 -7
  560. package/dist/CustomerOnboardingContainerPage-WRwvVSCx.cjs +0 -1
  561. package/dist/CustomerOnboardingDetailPageSkeleton-BHvA_rwd.js +0 -434
  562. package/dist/CustomerOnboardingDetailPageSkeleton-e7wjyZCY.cjs +0 -162
  563. package/dist/CustomerOnboardingNoStepsPage-BGRMCZg7.js +0 -424
  564. package/dist/CustomerOnboardingNoStepsPage-g-UvZYTD.cjs +0 -66
  565. package/dist/CustomerOnboardingPage-1A2BzrIy.cjs +0 -107
  566. package/dist/CustomerOnboardingPage-CIk9-4tD.js +0 -1094
  567. package/dist/CustomerOnboardingProductSuitePage-DHTetqVW.js +0 -348
  568. package/dist/CustomerOnboardingProductSuitePage-DKpqkfV5.cjs +0 -202
  569. package/dist/Dashboard-BGPeiHXf.cjs +0 -1551
  570. package/dist/Dashboard-DI8Vp3GK.js +0 -5540
  571. package/dist/DashboardReportPage-BrEFqxCI.cjs +0 -371
  572. package/dist/DashboardReportPage-CqWPyBiF.js +0 -2536
  573. package/dist/DashboardSidebarBackgroundAnimation-BUSDIUf8.cjs +0 -12
  574. package/dist/DashboardSidebarBackgroundAnimation-DLjvVUhj.js +0 -53
  575. package/dist/DepositAccTransactionItem-DY37Jj8K.cjs +0 -76
  576. package/dist/DepositAccTransactionItem-FLrWLngR.js +0 -112
  577. package/dist/DepositAccTransactionListPage-BdSnuh9e.cjs +0 -66
  578. package/dist/DepositAccTransactionListPage-yKl8K2GW.js +0 -152
  579. package/dist/DomesticWireDetailsPage-CdPaOCgD.cjs +0 -21
  580. package/dist/DomesticWireDetailsPage-OYsRODlB.js +0 -189
  581. package/dist/DownloadOverlay-Be5qF4aB.js +0 -2148
  582. package/dist/DownloadOverlay-ReLRSjqQ.cjs +0 -439
  583. package/dist/DrawerPage-B03YyX-1.js +0 -208
  584. package/dist/DrawerPage-D3RWmgZD.cjs +0 -118
  585. package/dist/EditPeoplePage-7WxYIZtN.js +0 -392
  586. package/dist/EditPeoplePage-DP6yZ6Im.cjs +0 -55
  587. package/dist/EditReimbursementDetailPage-Bi-oJmsa.js +0 -4531
  588. package/dist/EditReimbursementDetailPage-DRVKo5v9.cjs +0 -865
  589. package/dist/EmptySearchResults-Bmhutnhi.js +0 -70
  590. package/dist/EmptySearchResults-DXBEzc_6.cjs +0 -46
  591. package/dist/EntityDetailPage-DrujBLhG.cjs +0 -18
  592. package/dist/EntityDetailPage-FnfLBtv4.js +0 -82
  593. package/dist/EntitySummarySection-DxgrTMxJ.cjs +0 -149
  594. package/dist/EntitySummarySection-TiDHIhi1.js +0 -530
  595. package/dist/ExpenseAutomationOverviewPage-BhuFij7p.js +0 -807
  596. package/dist/ExpenseAutomationOverviewPage-DDb2YKML.cjs +0 -281
  597. package/dist/ExpenseAutomationPage-BXEGfDmB.cjs +0 -1650
  598. package/dist/ExpenseAutomationPage-Dp-NfabL.js +0 -11583
  599. package/dist/ExpressPayPage-BOgbAiNu.js +0 -1136
  600. package/dist/ExpressPayPage-C4p3wb97.cjs +0 -168
  601. package/dist/FeaturePreviewPage-DRUIu_Q5.js +0 -114
  602. package/dist/FeaturePreviewPage-DUTwiIsE.cjs +0 -11
  603. package/dist/FollowStepsSection-D0u2Uk4x.cjs +0 -390
  604. package/dist/FollowStepsSection-TluKa3_U.js +0 -1313
  605. package/dist/GlobalReviewListPage-CfuGruWk.js +0 -1674
  606. package/dist/GlobalReviewListPage-Di_4KD2J.cjs +0 -291
  607. package/dist/InformationCardStack-CVZeNM6S.cjs +0 -31
  608. package/dist/InformationCardStack-D8TmtD3M.js +0 -219
  609. package/dist/InsightsCardStack-BdM67cxp.js +0 -305
  610. package/dist/InsightsCardStack-C-ltTAGX.cjs +0 -79
  611. package/dist/InsightsSection-Dg5wZ03v.cjs +0 -27
  612. package/dist/InsightsSection-hXMyp9Qt.js +0 -97
  613. package/dist/IntegrationsSettingsPage-C5KHLHfi.cjs +0 -57
  614. package/dist/IntegrationsSettingsPage-K-r-CanD.js +0 -136
  615. package/dist/InternationalWireSwiftDetailsPage-CUkwy81G.cjs +0 -171
  616. package/dist/InternationalWireSwiftDetailsPage-QX6u5ovZ.js +0 -753
  617. package/dist/InternationalWireVerificationPage-BQlrmNSs.js +0 -877
  618. package/dist/InternationalWireVerificationPage-Da-h1KJV.cjs +0 -292
  619. package/dist/InviteFormPage-CZ88injF.cjs +0 -312
  620. package/dist/InviteFormPage-Zhm-e_07.js +0 -873
  621. package/dist/InvitePageListView-BX-7CXgq.cjs +0 -739
  622. package/dist/InvitePageListView-C3u3G9We.js +0 -1764
  623. package/dist/InvitePeoplePage-BBbAxUo2.js +0 -286
  624. package/dist/InvitePeoplePage-HrCZTiBg.cjs +0 -12
  625. package/dist/InvoiceUploadSection-BopX3cmS.js +0 -465
  626. package/dist/InvoiceUploadSection-CQWyGU7d.cjs +0 -140
  627. package/dist/IssueChargeCardPage-DJbGSWQA.js +0 -2875
  628. package/dist/IssueChargeCardPage-DhBK6kLV.cjs +0 -532
  629. package/dist/LabeledAddressValue-BG9ahwtT.cjs +0 -49
  630. package/dist/LabeledAddressValue-BhvTqETt.js +0 -115
  631. package/dist/LabeledAddressValueField-BlUPORKq.js +0 -130
  632. package/dist/LabeledAddressValueField-D515GrYo.cjs +0 -45
  633. package/dist/LabeledControlledCheckBoxField-CT8ghVvc.cjs +0 -16
  634. package/dist/LabeledControlledCheckBoxField-cs13RiB6.js +0 -73
  635. package/dist/LabeledCreatableSingleSelectField-BKpYvKn_.js +0 -515
  636. package/dist/LabeledCreatableSingleSelectField-CSpeS8Hq.cjs +0 -204
  637. package/dist/LabeledDocumentField-CJzvaQqh.cjs +0 -41
  638. package/dist/LabeledDocumentField-jiTCYMHc.js +0 -147
  639. package/dist/LabeledDropDownFormattedTextField-CWy1ziMp.cjs +0 -59
  640. package/dist/LabeledDropDownFormattedTextField-rkr-VTNQ.js +0 -163
  641. package/dist/LabeledEmailInputField-BH00Cr9W.cjs +0 -182
  642. package/dist/LabeledEmailInputField-BLZm_eyu.js +0 -425
  643. package/dist/LabeledItemWithButton-1d9ZKM_4.js +0 -74
  644. package/dist/LabeledItemWithButton-DfyL3r6l.cjs +0 -21
  645. package/dist/LabeledNameField-DVMaowdk.cjs +0 -141
  646. package/dist/LabeledNameField-Y2eZGyOo.js +0 -293
  647. package/dist/LabeledSingleSelectField-BBpAh9DR.js +0 -372
  648. package/dist/LabeledSingleSelectField-BV7Fh77G.cjs +0 -136
  649. package/dist/LabeledSingleSelectWithoutClearableField-B4uWLC9P.cjs +0 -38
  650. package/dist/LabeledSingleSelectWithoutClearableField-CFLDS-kA.js +0 -103
  651. package/dist/LabeledText-BQ7mCdvJ.cjs +0 -42
  652. package/dist/LabeledText-Cmj3hRmz.js +0 -103
  653. package/dist/LabeledUserSingleSelectWithSubtitlesField-BxaW3rki.cjs +0 -229
  654. package/dist/LabeledUserSingleSelectWithSubtitlesField-D0-SGB2k.js +0 -572
  655. package/dist/LabeledZeniRolesDropDownField-CNnwJw-U.cjs +0 -297
  656. package/dist/LabeledZeniRolesDropDownField-CYk_2Qk3.js +0 -975
  657. package/dist/LinkJETransactionPage-B1Hx8eY_.cjs +0 -98
  658. package/dist/LinkJETransactionPage-D-lqKiu5.js +0 -406
  659. package/dist/LockCardPage-9IpNKs7J.js +0 -2032
  660. package/dist/LockCardPage-tliMdYjJ.cjs +0 -623
  661. package/dist/LowBalancePopup-BMVGojUi.cjs +0 -34
  662. package/dist/LowBalancePopup-mXLazXyP.js +0 -219
  663. package/dist/MagicLinkACHDetailsPage-CLB2mtmx.js +0 -39
  664. package/dist/MagicLinkACHDetailsPage-D9qsNZNn.cjs +0 -1
  665. package/dist/MagicLinkDomesticWireDetailsPage-AEhFtTe_.js +0 -44
  666. package/dist/MagicLinkDomesticWireDetailsPage-iUXS3e9x.cjs +0 -1
  667. package/dist/MagicLinkInternationalWireDetailsPage-BHdVPhRz.js +0 -43
  668. package/dist/MagicLinkInternationalWireDetailsPage-CX_IyPHh.cjs +0 -1
  669. package/dist/MagicLinkSuccessPage-DXOh2BBF.js +0 -59
  670. package/dist/MagicLinkSuccessPage-gcKXEyxV.cjs +0 -31
  671. package/dist/MagicLinkTitleSection-87U3Q1_O.js +0 -40
  672. package/dist/MagicLinkTitleSection-DRqrDvsf.cjs +0 -17
  673. package/dist/MailingDetailsSection-BpZFbUTd.js +0 -74
  674. package/dist/MailingDetailsSection-Dv5EjRQM.cjs +0 -21
  675. package/dist/MatchingOperatorDropdown-Bpklqi0N.js +0 -572
  676. package/dist/MatchingOperatorDropdown-DCsSOyPN.cjs +0 -130
  677. package/dist/Menu-BH6SEfsf.cjs +0 -17
  678. package/dist/Menu-vIDp-IuX.js +0 -110
  679. package/dist/MoreMenuButton-BZAXJ2D2.cjs +0 -167
  680. package/dist/MoreMenuButton-BqoX16j9.js +0 -569
  681. package/dist/MyBankConnectionsSettingsPage-BKaYNcbw.js +0 -297
  682. package/dist/MyBankConnectionsSettingsPage-DhIMUAij.cjs +0 -110
  683. package/dist/MyPendingActivationChargeCardListPage-CUCSNlG4.cjs +0 -6
  684. package/dist/MyPendingActivationChargeCardListPage-DQ0F73Ba.js +0 -168
  685. package/dist/MyProfileSettingsPage-Cs_YBq8Z.cjs +0 -85
  686. package/dist/MyProfileSettingsPage-iN9ggsKz.js +0 -641
  687. package/dist/NavBarWithPicker-CPqiwvR-.cjs +0 -30
  688. package/dist/NavBarWithPicker-f0MdMvuk.js +0 -106
  689. package/dist/NavigationArrow-BxRPfMa4.js +0 -88
  690. package/dist/NavigationArrow-DsN_95Bc.cjs +0 -47
  691. package/dist/NavigationDots-BMB75pBV.cjs +0 -15
  692. package/dist/NavigationDots-DoS3Ajsj.js +0 -44
  693. package/dist/NewGlobalMerchantPage-DogAkM1j.cjs +0 -160
  694. package/dist/NewGlobalMerchantPage-NwqJtzDu.js +0 -543
  695. package/dist/NoDataChart-DMeYhDTW.js +0 -58
  696. package/dist/NoDataChart-DsR8dJRf.cjs +0 -26
  697. package/dist/NoDataTable-BkAaFm-b.cjs +0 -8
  698. package/dist/NoDataTable-CdvCaPgz.js +0 -27
  699. package/dist/NotFoundPage-1fuMavn4.js +0 -71
  700. package/dist/NotFoundPage-BDojvVou.cjs +0 -46
  701. package/dist/NotificationSettingsPage-BrtZ-Ffy.js +0 -541
  702. package/dist/NotificationSettingsPage-DUK2emA0.cjs +0 -163
  703. package/dist/NotificationsListConfig-BFgGdgrw.cjs +0 -1
  704. package/dist/NotificationsListConfig-DQ2aFH49.js +0 -10
  705. package/dist/NotificationsPage-CjL2jCXB.cjs +0 -685
  706. package/dist/NotificationsPage-CvmMV8P6.js +0 -2664
  707. package/dist/OpExByVendorPage-DSyQ-DYG.cjs +0 -100
  708. package/dist/OpExByVendorPage-DTdSwAxM.js +0 -1058
  709. package/dist/PandLWithForecastPage-BvplqJzQ.cjs +0 -107
  710. package/dist/PandLWithForecastPage-w0W5-gKf.js +0 -563
  711. package/dist/PaymentAccountSetupBillingAddressSection-CZ3cPaZm.cjs +0 -106
  712. package/dist/PaymentAccountSetupBillingAddressSection-DtSf6JnR.js +0 -623
  713. package/dist/PeoplePage-BWHU2aU2.cjs +0 -675
  714. package/dist/PeoplePage-DaDvO16y.js +0 -1994
  715. package/dist/ProductsCarousel-BaqoMzFB.cjs +0 -142
  716. package/dist/ProductsCarousel-eskidrn2.js +0 -309
  717. package/dist/PromoBaseCards-CEt3D6UT.cjs +0 -218
  718. package/dist/PromoBaseCards-JcpbwqKu.js +0 -356
  719. package/dist/QBOConnectionDialog-CsM12vNk.js +0 -115
  720. package/dist/QBOConnectionDialog-DLmcB2K0.cjs +0 -51
  721. package/dist/QBOSetupSection-DD_10Uqv.js +0 -167
  722. package/dist/QBOSetupSection-DJzL6Oi0.cjs +0 -79
  723. package/dist/ReimbursementApprovalRuleDetailPage-PPBAmwjB.js +0 -247
  724. package/dist/ReimbursementApprovalRuleDetailPage-smvSYAvY.cjs +0 -26
  725. package/dist/ReimbursementApprovalRulesPage-DHMGxKpA.cjs +0 -237
  726. package/dist/ReimbursementApprovalRulesPage-ZV22Nk0i.js +0 -410
  727. package/dist/ReimbursementDetailPage-BIorm0AF.js +0 -1514
  728. package/dist/ReimbursementDetailPage-C3IAs2aZ.cjs +0 -314
  729. package/dist/ReimbursementPromoPage-CXwmgafF.js +0 -363
  730. package/dist/ReimbursementPromoPage-JfbSn6iK.cjs +0 -84
  731. package/dist/ReimbursementSetUpPage-C54QsKWi.cjs +0 -140
  732. package/dist/ReimbursementSetUpPage-Cs5j28Ct.js +0 -663
  733. package/dist/ReimbursementsBulkReviewDrawerPage-D7AqtWJm.js +0 -204
  734. package/dist/ReimbursementsBulkReviewDrawerPage-D7yICCf6.cjs +0 -1
  735. package/dist/ReloadCard-MBFvDgOX.cjs +0 -26
  736. package/dist/ReloadCard-YqZOIqkY.js +0 -137
  737. package/dist/ReloadContainer-CHDFSJTB.cjs +0 -596
  738. package/dist/ReloadContainer-Du0xMA3R.js +0 -2165
  739. package/dist/ReportTableViewSelector-CfiZCrxa.cjs +0 -150
  740. package/dist/ReportTableViewSelector-DPpgjhvJ.js +0 -679
  741. package/dist/ReportsPage-B0Zz6x29.cjs +0 -121
  742. package/dist/ReportsPage-BEZY4Vrm.js +0 -1315
  743. package/dist/RevenueChart-BZ-TLcMK.cjs +0 -280
  744. package/dist/RevenueChart-Dt7B-K4e.js +0 -2240
  745. package/dist/ReviewDetailsPage-BwrwAKsl.cjs +0 -290
  746. package/dist/ReviewDetailsPage-IFzQbjc-.js +0 -1073
  747. package/dist/ReviewOverlay-Bmj4B3mk.js +0 -299
  748. package/dist/ReviewOverlay-DYgPgoZF.cjs +0 -152
  749. package/dist/RoleWithToolTip-Bw63Yfm8.cjs +0 -22
  750. package/dist/RoleWithToolTip-Ct0hfqtb.js +0 -72
  751. package/dist/ScheduleDetailsFixedAssetsPage-Biv21_Sf.cjs +0 -37
  752. package/dist/ScheduleDetailsFixedAssetsPage-CvEsMr1-.js +0 -806
  753. package/dist/ScheduleDetailsPage--e_yqFnk.js +0 -726
  754. package/dist/ScheduleDetailsPage-Cy32WaZD.cjs +0 -37
  755. package/dist/ScheduleSequenceTable-BjEdSHV0.js +0 -1261
  756. package/dist/ScheduleSequenceTable-BrHJIhYU.cjs +0 -324
  757. package/dist/SetUpAccountSection-67YzP2AH.js +0 -1469
  758. package/dist/SetUpAccountSection-BCC6W1xD.cjs +0 -378
  759. package/dist/SignIn-BK_AvY_u.js +0 -1075
  760. package/dist/SignIn-ChSyNKu1.cjs +0 -448
  761. package/dist/SpendManagementListViewPage-Cul7QoMf.js +0 -627
  762. package/dist/SpendManagementListViewPage-DwceuLpJ.cjs +0 -122
  763. package/dist/SpendManagementPerTabPage-C-JlVSGv.js +0 -2735
  764. package/dist/SpendManagementPerTabPage-D7JcU7Tr.cjs +0 -754
  765. package/dist/SpendManagementSection-CWCmAROJ.cjs +0 -230
  766. package/dist/SpendManagementSection-mOX52Tcd.js +0 -1043
  767. package/dist/StatementItem-CyquAxoo.cjs +0 -31
  768. package/dist/StatementItem-DDlNo6C2.js +0 -81
  769. package/dist/StatementsPage-CAoy77bd.js +0 -130
  770. package/dist/StatementsPage-Cu4BGOkf.cjs +0 -58
  771. package/dist/StatusSwitcher-C4wmXLVG.js +0 -319
  772. package/dist/StatusSwitcher-oOBFHsdg.cjs +0 -120
  773. package/dist/SubTabSwitcher-B5yEfamo.js +0 -113
  774. package/dist/SubTabSwitcher-DLjLO6Vg.cjs +0 -58
  775. package/dist/SuccessAnimation-DTZm0vOK.js +0 -52
  776. package/dist/SuccessAnimation-K8FLBs6J.cjs +0 -13
  777. package/dist/SummaryCard-C1HnVyeN.js +0 -25
  778. package/dist/SummaryCard-aRtztlZ0.cjs +0 -1
  779. package/dist/TaskDetailPage-BQn4kAcD.js +0 -2533
  780. package/dist/TaskDetailPage-DUt7qGLn.cjs +0 -775
  781. package/dist/TaskListRow-BjCg8TG3.js +0 -1950
  782. package/dist/TaskListRow-D9nKn5tM.cjs +0 -556
  783. package/dist/TaskManagementPage-CUBc04Te.cjs +0 -508
  784. package/dist/TaskManagementPage-cBvS_o-6.js +0 -1935
  785. package/dist/TimeRangeSwitcher-BNXFCKCK.js +0 -265
  786. package/dist/TimeRangeSwitcher-C9JXC02P.cjs +0 -64
  787. package/dist/TimeframeSwitcher-LcKdZdPF.cjs +0 -31
  788. package/dist/TimeframeSwitcher-WRVTrfWd.js +0 -103
  789. package/dist/TimeframeSwitcherWithToggle-Bg9A1hI3.js +0 -157
  790. package/dist/TimeframeSwitcherWithToggle-qUGBBtBC.cjs +0 -31
  791. package/dist/TopExCard-BBJbbcha.cjs +0 -38
  792. package/dist/TopExCard-p5f2hTNX.js +0 -569
  793. package/dist/TopExDetailPage-BMq3Yx1a.cjs +0 -132
  794. package/dist/TopExDetailPage-DYM-Sxwc.js +0 -318
  795. package/dist/TransactionDetailPage-BOWYOnve.cjs +0 -912
  796. package/dist/TransactionDetailPage-BWMqrB7U.js +0 -5238
  797. package/dist/TransactionList-BEt8-ftC.js +0 -558
  798. package/dist/TransactionList-tzxJZ8Nh.cjs +0 -147
  799. package/dist/TransactionListBig-B7ofzsH3.js +0 -658
  800. package/dist/TransactionListBig-CUQErooL.cjs +0 -284
  801. package/dist/TransactionListPage-CNBvc6iu.js +0 -145
  802. package/dist/TransactionListPage-h5Q-SRZU.cjs +0 -35
  803. package/dist/TransactionVendorDetailPage-DpqKYsGV.js +0 -425
  804. package/dist/TransactionVendorDetailPage-XnuwmpYf.cjs +0 -80
  805. package/dist/TransferDrawerPage-CKOYTSz8.js +0 -1436
  806. package/dist/TransferDrawerPage-XHTn55TK.cjs +0 -362
  807. package/dist/TreasuryOverviewPage-QR5T-8mj.js +0 -1890
  808. package/dist/TreasuryOverviewPage-nb7iL1IK.cjs +0 -708
  809. package/dist/TreasuryPromoPage-BRlVjY_a.cjs +0 -505
  810. package/dist/TreasuryPromoPage-D-l_uhH3.js +0 -1123
  811. package/dist/TreasuryStatementsPage-Bp9nDv3e.cjs +0 -58
  812. package/dist/TreasuryStatementsPage-ImPOFqYW.js +0 -131
  813. package/dist/TreasuryTaxLetterPage-BeEoVJ_x.cjs +0 -58
  814. package/dist/TreasuryTaxLetterPage-eVVd6b0w.js +0 -131
  815. package/dist/TrendChart-CELOHQha.cjs +0 -16
  816. package/dist/TrendChart-DUVejr51.js +0 -334
  817. package/dist/TrendWithTransactions-BRzMHEZL.js +0 -346
  818. package/dist/TrendWithTransactions-DpWpPnBS.cjs +0 -116
  819. package/dist/UncategorizedAccountsMappingPage-7deAPT94.js +0 -1159
  820. package/dist/UncategorizedAccountsMappingPage-D2rjPpn6.cjs +0 -244
  821. package/dist/UnitIntegrationPage-2nqrSERH.js +0 -405
  822. package/dist/UnitIntegrationPage-Bj_eXYSP.cjs +0 -67
  823. package/dist/UploadAdditionalDocumentOverlay-BaO6AlpP.js +0 -211
  824. package/dist/UploadAdditionalDocumentOverlay-ccypxPv8.cjs +0 -38
  825. package/dist/Vendor2FAPopup-DQJlJFQb.js +0 -69
  826. package/dist/Vendor2FAPopup-PNa9fj0A.cjs +0 -1
  827. package/dist/VendorACHDetailsPage-CuRT_KRD.js +0 -43
  828. package/dist/VendorACHDetailsPage-wz_e4DQM.cjs +0 -1
  829. package/dist/VendorDetailPage-5kIcc-U5.js +0 -1236
  830. package/dist/VendorDetailPage-BKs7zOf2.cjs +0 -257
  831. package/dist/VendorDomesticWireDetailsPage-BuOXugHj.js +0 -53
  832. package/dist/VendorDomesticWireDetailsPage-DwCdQK6y.cjs +0 -1
  833. package/dist/VendorFiling1099EditablePage-CapQu_El.js +0 -842
  834. package/dist/VendorFiling1099EditablePage-P3UXWb75.cjs +0 -175
  835. package/dist/VendorFirstReviewPage-Clm3Ozjn.js +0 -2748
  836. package/dist/VendorFirstReviewPage-czyikE6-.cjs +0 -730
  837. package/dist/VendorInternationalWireDetailsPage-DbpbG-ZX.js +0 -968
  838. package/dist/VendorInternationalWireDetailsPage-aYCX0HWR.cjs +0 -152
  839. package/dist/VendorInternationalWireSwiftDetailsPage-Bj56gWvZ.js +0 -52
  840. package/dist/VendorInternationalWireSwiftDetailsPage-Ds1wGHHW.cjs +0 -1
  841. package/dist/VendorsAccountsSection-YqcXLI0F.js +0 -279
  842. package/dist/VendorsAccountsSection-rLdggzyq.cjs +0 -68
  843. package/dist/VerifyDevice-CEEdbbdN.cjs +0 -112
  844. package/dist/VerifyDevice-Ko8aRvaT.js +0 -298
  845. package/dist/VideoPlayer-1qTHk7Yw.js +0 -170
  846. package/dist/VideoPlayer-DNsbWeei.cjs +0 -77
  847. package/dist/VideoPopup-DEda71c4.cjs +0 -31
  848. package/dist/VideoPopup-Dn6cWRHX.js +0 -60
  849. package/dist/WarningsDrawerPage-BWP5Zy1U.js +0 -228
  850. package/dist/WarningsDrawerPage-Bx0XpIyu.cjs +0 -92
  851. package/dist/ZeniAccountDetailPage-BjVj8CyC.cjs +0 -300
  852. package/dist/ZeniAccountDetailPage-D4Fk5L7J.js +0 -908
  853. package/dist/ZeniAccountListViewPage-BmBDya-j.js +0 -1078
  854. package/dist/ZeniAccountListViewPage-CZH3d3B6.cjs +0 -441
  855. package/dist/ZeniAccountNavBarPieces-D52hi7kI.cjs +0 -14
  856. package/dist/ZeniAccountNavBarPieces-L0SC7nSH.js +0 -89
  857. package/dist/ZeniAccountPromoPage-BLuhHrH2.js +0 -522
  858. package/dist/ZeniAccountPromoPage-Dj6bNL2k.cjs +0 -184
  859. package/dist/ZeniAccountSetupPage-C27AtRX4.cjs +0 -36
  860. package/dist/ZeniAccountSetupPage-DEsVlrHZ.js +0 -309
  861. package/dist/ZeniAvatar-By2vD7Tr.cjs +0 -13
  862. package/dist/ZeniAvatar-DxFYtfEv.js +0 -34
  863. package/dist/ZeniCopyright-CIknqEpx.cjs +0 -1
  864. package/dist/ZeniCopyright-qKJsK67q.js +0 -9
  865. package/dist/ZeniDatePicker-BZj6BWGd.cjs +0 -187
  866. package/dist/ZeniDatePicker-Bi65vEo7.js +0 -386
  867. package/dist/ZeniTransferAmountSlider-D3v1YHoZ.js +0 -215
  868. package/dist/ZeniTransferAmountSlider-dzeybUL8.cjs +0 -63
  869. package/dist/analyticsHelper-BiFK0qHs.js +0 -65
  870. package/dist/analyticsHelper-C-bVGOpB.cjs +0 -1
  871. package/dist/calculateSize-ByyyhD-z.js +0 -22
  872. package/dist/calculateSize-Zb2ZiQ1W.cjs +0 -1
  873. package/dist/chartTypes-CICcT8k1.cjs +0 -1
  874. package/dist/chartTypes-DAaoDq3E.js +0 -47
  875. package/dist/common-Dc4uk-Co.cjs +0 -1
  876. package/dist/common-Dng3FoLT.js +0 -22
  877. package/dist/commonDimensions-CLKymR-v.js +0 -13
  878. package/dist/commonDimensions-D-lFURw4.cjs +0 -1
  879. package/dist/detailCommon-BFECcDxj.js +0 -124
  880. package/dist/detailCommon-DwoFeMdC.cjs +0 -38
  881. package/dist/downloadPdf-DZMrQl1H.js +0 -32
  882. package/dist/downloadPdf-_0l18yid.cjs +0 -1
  883. package/dist/index-B0vG0HCL.cjs +0 -21111
  884. package/dist/index-CQQUoxL8.js +0 -92167
  885. package/dist/mapLoadingInProgressToTreeNode-B_2g9jpt.cjs +0 -1
  886. package/dist/mapLoadingInProgressToTreeNode-DUD6OQ2n.js +0 -25
  887. package/dist/mapSectionWithAcOnlyToTreeNode-0cd-S2-H.js +0 -387
  888. package/dist/mapSectionWithAcOnlyToTreeNode-C2ClgzEV.cjs +0 -1
  889. package/dist/mapSpacerToTreeNode-79EopZsh.cjs +0 -1
  890. package/dist/mapSpacerToTreeNode-B0KecpoV.js +0 -25
  891. package/dist/mapTimeframeBalancesToTreeNode-BL2dNoLF.cjs +0 -1
  892. package/dist/mapTimeframeBalancesToTreeNode-CQoz1ed-.cjs +0 -1
  893. package/dist/mapTimeframeBalancesToTreeNode-CTM-6gur.js +0 -24
  894. package/dist/mapTimeframeBalancesToTreeNode-Du15TpQf.js +0 -24
  895. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CcQNcXII.js +0 -32
  896. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-D3tM2TRf.cjs +0 -1
  897. package/dist/sectionColor-ByENRI0m.cjs +0 -1
  898. package/dist/sectionColor-CIFB7vXb.js +0 -32
  899. package/dist/toCOABalancesWithID-B9MBvmfd.cjs +0 -1
  900. package/dist/toCOABalancesWithID-CnsjPZSm.js +0 -8
  901. package/dist/toChartData-BYF9mE3d.cjs +0 -1
  902. package/dist/toChartData-DpmbrwAf.js +0 -76
  903. package/dist/uploadAttachment-DyCT4nzN.js +0 -952
  904. package/dist/uploadAttachment-KAUJ1ZTN.cjs +0 -286
  905. package/dist/zeniDatePicker.helpers-DTAeaaEZ.js +0 -14
  906. package/dist/zeniDatePicker.helpers-kbrjQI4J.cjs +0 -1
@@ -0,0 +1,4531 @@
1
+ import { u as $t, d as at, m as Pe, j as t, X as zt, C as cn, k as dn, o as cr, g as un, h as dr, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-B2klaOGU.js";
2
+ import It, { useEffect as ye, useState as Q, useRef as bt, useCallback as pn, useMemo as xt, useContext as ur } from "react";
3
+ import n from "@emotion/styled";
4
+ import { RoomProvider as mr } from "@liveblocks/react";
5
+ import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as pr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
6
+ import { u as ze, dB as St, iz as Wt, a as we, R as s, hw as $e, hy as Se, aH as yn, ij as Mo, fj as rt, aS as ho, iA as fn, S as o, iB as uo, gK as Ye, D as r, e as U, fR as hr, n as xn, aB as gr, C as I, A as vt, aw as go, Z as bn, F as yo, ag as yr, iC as Et, a2 as fr, aA as fo, B as Ro, it as wn, at as zo, k as Vt, o as xo, x as xr, E as br, im as wr, hv as $n, t as Ft, fn as Sn, fv as $r, hC as Sr, _ as _t, e_ as vn, J as Cn, y as Tn, iD as Ue, hj as bo, aP as wo, aQ as kn, aR as jn, hI as vr, eP as Cr, ao as In, aX as Tr, w as kr, aD as mo, iE as jr, b as On, V as $o, bc as Ir, bd as Or, T as Pr, d as Br, N as Ar, iF as Lr, aE as Fo, h as Mr, ae as Rr, il as zr, ir as No, i as Fr, eQ as Nr, l as Wr, aG as Er, iG as Vr, X as _r } from "./index-C65jHl_B.js";
7
+ import Pn from "./InvoiceUploadSection-CokNNkKu.js";
8
+ import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as Dr } from "./types-DyvtCprH.js";
9
+ import { L as qr } from "./LabeledCreatableSingleSelectField-CfzLlkho.js";
10
+ import { C as Ur } from "./CurrencySelectField-ClOg6nnS.js";
11
+ import { usePlaidLink as Hr } from "react-plaid-link";
12
+ import { B as Kr } from "./BankAccountSection-C5rYUW3V.js";
13
+ import { B as Gr, a as Yr } from "./BankAccountWarningSection-DakysSbk.js";
14
+ import { S as Jr } from "./radio-default-CiSgisfh.js";
15
+ const We = (e, i) => `${e}.${i}`, Eo = {
16
+ largeLabelWidth: new s(120, 120, 160),
17
+ paddingBottom: new s(r[3], r[2]),
18
+ paddingLeft: new s(r[3], r[4])
19
+ }, {
20
+ spendManagement: {
21
+ reimbursement: { reimbursementDetail: je }
22
+ },
23
+ dateFormat: Xr,
24
+ common: Qr
25
+ } = we.getLocalizedStrings(), Zr = ({
26
+ lineIndex: e,
27
+ mileage: i,
28
+ classList: a,
29
+ defaultCurrency: d,
30
+ sectionId: p,
31
+ isReimbursementCommentingEnabled: v,
32
+ isDisabled: m,
33
+ isAddReimbursementDisabled: S,
34
+ companyMileageConfigInfo: x,
35
+ reimbursementId: l,
36
+ classHierarchyList: C
37
+ }) => {
38
+ const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
39
+ formState: { errors: T },
40
+ getValues: P,
41
+ trigger: H
42
+ } = at(), B = Qr.strings.empty, k = P(
43
+ We(p, "distanceInMiles")
44
+ ), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
45
+ (L) => L.classId === te?.selectedOption
46
+ ), re = We(p, "class"), Y = Pe(T, re);
47
+ ye(() => {
48
+ te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
49
+ }, [
50
+ te?.selectedOption,
51
+ ne?.isDeleted,
52
+ a,
53
+ re,
54
+ H
55
+ ]);
56
+ const K = {
57
+ application: "dashboard",
58
+ companyId: c.currentTenant?.companyId,
59
+ tab: "reimbursement",
60
+ entityId: l
61
+ }, F = (L) => a.filter((X) => X.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
62
+ valueContainer: (L) => ({
63
+ ...L,
64
+ padding: `2px ${o.sp3} !important`,
65
+ overflow: "unset"
66
+ }),
67
+ singleValue: () => ({
68
+ margin: 0
69
+ })
70
+ };
71
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
72
+ /* @__PURE__ */ t.jsx(
73
+ $e,
74
+ {
75
+ isThreadAllowed: v && l != null,
76
+ dashboardTabKey: Se({
77
+ type: "details",
78
+ key: `${e}.mileage.transactionDate`
79
+ }),
80
+ roomId: $,
81
+ companyId: c.currentTenant?.companyId ?? B,
82
+ companyName: c.currentTenant?.companyName ?? B,
83
+ entityId: l,
84
+ dashboardOptionType: "reimbursement",
85
+ filterMetaData: {
86
+ ...K,
87
+ entityType: `reimbursement.details.${Ie(
88
+ "transactionDate",
89
+ e,
90
+ "mileage"
91
+ )}`
92
+ },
93
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
94
+ children: /* @__PURE__ */ t.jsx(
95
+ yn,
96
+ {
97
+ isDisabled: m,
98
+ label: {
99
+ label: je.transactionDate,
100
+ width: M
101
+ },
102
+ style: {
103
+ paddingBottom: Eo.paddingBottom.valuePx(b),
104
+ width: "auto"
105
+ },
106
+ dateField: {
107
+ name: We(p, "transactionDate"),
108
+ placeholder: je.datePlaceholder,
109
+ defaultValue: i?.transactionDate,
110
+ dateFormat: Xr.visual.defaultInput,
111
+ autoComplete: "off",
112
+ maxDate: po(),
113
+ registerOptions: {
114
+ required: !0,
115
+ validate: (L) => !!L
116
+ }
117
+ }
118
+ }
119
+ )
120
+ }
121
+ ),
122
+ /* @__PURE__ */ t.jsx(Ot, {}),
123
+ /* @__PURE__ */ t.jsx(
124
+ $e,
125
+ {
126
+ isThreadAllowed: v && l != null,
127
+ dashboardTabKey: Se({
128
+ type: "details",
129
+ key: `${e}.mileage.distanceInMiles`
130
+ }),
131
+ roomId: $,
132
+ companyId: c.currentTenant?.companyId ?? B,
133
+ companyName: c.currentTenant?.companyName ?? B,
134
+ entityId: l,
135
+ dashboardOptionType: "reimbursement",
136
+ filterMetaData: {
137
+ ...K,
138
+ entityType: `reimbursement.details.${Ie(
139
+ "distanceInMiles",
140
+ e,
141
+ "mileage"
142
+ )}`
143
+ },
144
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
145
+ children: /* @__PURE__ */ t.jsx(
146
+ Mo,
147
+ {
148
+ isDisabled: S ? "disabled" : void 0,
149
+ style: { width: "auto" },
150
+ label: { label: je.distanceInMiles, width: M },
151
+ formattedTextField: {
152
+ type: "number",
153
+ name: We(p, "distanceInMiles"),
154
+ placeholder: je.addMiles,
155
+ defaultValue: i.distanceInMiles,
156
+ registerOptions: {
157
+ required: !0,
158
+ validate: (L) => L != null ? L > 0 : !0,
159
+ min: 0.01
160
+ },
161
+ returnValueType: "floatValue",
162
+ allowNegative: !1,
163
+ isNumericString: !1,
164
+ decimalScale: 2
165
+ }
166
+ }
167
+ )
168
+ }
169
+ ),
170
+ /* @__PURE__ */ t.jsx(Ot, {}),
171
+ /* @__PURE__ */ t.jsx(
172
+ $e,
173
+ {
174
+ isThreadAllowed: v && l != null,
175
+ dashboardTabKey: Se({
176
+ type: "details",
177
+ key: `${e}.mileage.amount`
178
+ }),
179
+ roomId: $,
180
+ companyId: c.currentTenant?.companyId ?? B,
181
+ companyName: c.currentTenant?.companyName ?? B,
182
+ entityId: l,
183
+ dashboardOptionType: "reimbursement",
184
+ filterMetaData: {
185
+ ...K,
186
+ entityType: `reimbursement.details.${Ie(
187
+ "amount",
188
+ e,
189
+ "mileage"
190
+ )}`
191
+ },
192
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
193
+ children: /* @__PURE__ */ t.jsx(
194
+ Mo,
195
+ {
196
+ isDisabled: "disabled",
197
+ label: {
198
+ label: je.amount,
199
+ width: M
200
+ },
201
+ formattedTextField: {
202
+ type: "number",
203
+ name: We(`${p}.amount`, "amount"),
204
+ defaultValue: i.amount?.amount,
205
+ placeholder: rt(je.amount),
206
+ returnValueType: "floatValue",
207
+ prefix: i.amount?.currencySymbol,
208
+ allowNegative: !1,
209
+ isNumericString: !1,
210
+ registerOptions: {
211
+ required: !0,
212
+ validate: (L) => L != null ? L > 0 : !0
213
+ },
214
+ autoComplete: "off",
215
+ decimalSeparator: ".",
216
+ decimalScale: 2,
217
+ fixedDecimalScale: !1,
218
+ thousandSeparator: !0
219
+ },
220
+ style: { width: "auto" },
221
+ additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
222
+ }
223
+ )
224
+ }
225
+ ),
226
+ /* @__PURE__ */ t.jsx(Ot, {}),
227
+ /* @__PURE__ */ t.jsx(
228
+ $e,
229
+ {
230
+ isThreadAllowed: v && l != null,
231
+ dashboardTabKey: Se({
232
+ type: "details",
233
+ key: `${e}.mileage.memo`
234
+ }),
235
+ roomId: $,
236
+ companyId: c.currentTenant?.companyId ?? B,
237
+ companyName: c.currentTenant?.companyName ?? B,
238
+ entityId: l,
239
+ dashboardOptionType: "reimbursement",
240
+ filterMetaData: {
241
+ ...K,
242
+ entityType: `reimbursement.details.${Ie(
243
+ "memo",
244
+ e,
245
+ "mileage"
246
+ )}`
247
+ },
248
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
249
+ children: /* @__PURE__ */ t.jsx(
250
+ ho,
251
+ {
252
+ isDisabled: m,
253
+ label: {
254
+ label: je.memo,
255
+ width: M
256
+ },
257
+ style: { width: "auto" },
258
+ text: {
259
+ type: "text",
260
+ name: We(p, "memo"),
261
+ placeholder: rt(je.memo),
262
+ defaultValue: i.memo,
263
+ autoComplete: "off",
264
+ options: {
265
+ pattern: fn
266
+ }
267
+ }
268
+ }
269
+ )
270
+ }
271
+ ),
272
+ /* @__PURE__ */ t.jsx(Ot, {}),
273
+ /* @__PURE__ */ t.jsx(
274
+ $e,
275
+ {
276
+ isThreadAllowed: v && l != null,
277
+ dashboardTabKey: Se({
278
+ type: "details",
279
+ key: `${e}.mileage.class`
280
+ }),
281
+ roomId: $,
282
+ companyId: c.currentTenant?.companyId ?? B,
283
+ companyName: c.currentTenant?.companyName ?? B,
284
+ entityId: l,
285
+ dashboardOptionType: "reimbursement",
286
+ filterMetaData: {
287
+ ...K,
288
+ entityType: `reimbursement.details.${Ie(
289
+ "class",
290
+ e,
291
+ "mileage"
292
+ )}`
293
+ },
294
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
295
+ style: {
296
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
297
+ },
298
+ children: /* @__PURE__ */ t.jsx(
299
+ uo,
300
+ {
301
+ isLoading: !1,
302
+ label: {
303
+ label: je.department,
304
+ width: M
305
+ },
306
+ additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
307
+ groupedSingleSelectField: {
308
+ shouldShowChevronIcon: !1,
309
+ name: We(p, "class"),
310
+ placeholder: rt(je.department),
311
+ valueToId: (L) => F(L),
312
+ defaultValue: {
313
+ selectedOption: J?.classId,
314
+ allOptions: Ye(C, [])
315
+ },
316
+ style: {
317
+ width: "100%"
318
+ },
319
+ customStyleConfig: q,
320
+ registerOptions: {
321
+ required: !0,
322
+ validate: (L) => L?.selectedOption == null ? !1 : a.find(
323
+ (X) => X.classId === L?.selectedOption
324
+ )?.isDeleted === !0 ? je.deletedClassError : !0
325
+ }
326
+ },
327
+ style: {
328
+ borderBottom: `1px solid ${O.colors.grey3}`,
329
+ borderBottomLeftRadius: o.sp2,
330
+ borderBottomRightRadius: o.sp2
331
+ },
332
+ fullWidthSelect: !0
333
+ },
334
+ We(p, "class")
335
+ )
336
+ }
337
+ )
338
+ ] });
339
+ }, Ot = n.div`
340
+ display: flex;
341
+ flex: 1;
342
+ background-color: ${(e) => e.theme.colors.grey3};
343
+ min-height: 1px;
344
+ max-height: 1px;
345
+ `, Vo = {
346
+ amounWidth: new s(50, 30),
347
+ currencyWidth: new s(50, 70)
348
+ };
349
+ function ei({
350
+ name: e,
351
+ placeHolder: i,
352
+ defaultValue: a,
353
+ isDisabled: d,
354
+ showAmountCurrencyError: p,
355
+ style: v,
356
+ allCurrencies: m
357
+ }) {
358
+ const [S, x] = Q(!1), {
359
+ getValues: l,
360
+ formState: { errors: C }
361
+ } = 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;
362
+ return ye(() => {
363
+ B === !1 && x(!0);
364
+ }, [B]), /* @__PURE__ */ t.jsx(
365
+ cn,
366
+ {
367
+ onClickAway: () => y === !1 && !H && x(!1),
368
+ children: /* @__PURE__ */ t.jsx(
369
+ oi,
370
+ {
371
+ style: v,
372
+ isDisabled: y,
373
+ tabIndex: B && !y ? 0 : void 0,
374
+ onClick: () => y === !1 && x(!0),
375
+ "data-testid": U("currency-amount-field", e),
376
+ children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
377
+ $?.amount != null ? /* @__PURE__ */ t.jsx(
378
+ _o,
379
+ {
380
+ className: "amount-field",
381
+ isVisible: B,
382
+ children: O
383
+ }
384
+ ) : /* @__PURE__ */ t.jsx(
385
+ _o,
386
+ {
387
+ className: "amount-field amount-placeholder",
388
+ isVisible: B,
389
+ children: i?.name
390
+ }
391
+ ),
392
+ /* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
393
+ /* @__PURE__ */ t.jsx(
394
+ hr,
395
+ {
396
+ type: "number",
397
+ name: `${e}.amount`,
398
+ defaultValue: a?.amount,
399
+ placeholder: i?.amount,
400
+ returnValueType: "floatValue",
401
+ allowNegative: !1,
402
+ isNumericString: !1,
403
+ registerOptions: {
404
+ required: !0,
405
+ validate: (k) => k != null ? k > 0 : !0
406
+ },
407
+ autoComplete: "off",
408
+ decimalSeparator: ".",
409
+ decimalScale: 2,
410
+ fixedDecimalScale: !1,
411
+ thousandSeparator: !0,
412
+ isDisabled: d,
413
+ style: {
414
+ display: "flex",
415
+ flexGrow: 1,
416
+ width: Vo.amounWidth.valuePercentage(c),
417
+ cursor: "inherit"
418
+ },
419
+ bgColor: b.colors.background,
420
+ isFieldError: T,
421
+ shouldHighlightZeroAmount: !0
422
+ }
423
+ ),
424
+ B ? null : /* @__PURE__ */ t.jsx(ni, {}),
425
+ /* @__PURE__ */ t.jsx(
426
+ Ur,
427
+ {
428
+ name: `${e}.currency`,
429
+ registerOptions: {
430
+ validate: (k) => k != null && k.selectedOption != null
431
+ },
432
+ defaultValue: {
433
+ allOptions: m.map((k) => ({
434
+ label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
435
+ value: k.currencyCode,
436
+ countryCode: k.countryCode
437
+ })),
438
+ selectedOption: a?.currencyCode
439
+ },
440
+ controlStyle: {
441
+ justifyContent: "flex-start",
442
+ backgroundColor: b.colors.background
443
+ },
444
+ isDisabled: d,
445
+ style: {
446
+ width: Vo.currencyWidth.valuePercentage(c),
447
+ flexGrow: 1
448
+ },
449
+ isOptionRemovable: !1
450
+ }
451
+ )
452
+ ] })
453
+ ] })
454
+ }
455
+ )
456
+ }
457
+ );
458
+ }
459
+ const ti = n.div`
460
+ display: ${(e) => e.isVisible ? "flex" : "none"};
461
+ width: 100%;
462
+ input {
463
+ text-align: left;
464
+ }
465
+ `, oi = n.div`
466
+ display: flex;
467
+ align-items: center;
468
+ justify-content: flex-end;
469
+ position: relative;
470
+ width: 100%;
471
+ background-color: ${(e) => e.theme.colors.grey5};
472
+ outline: none;
473
+ outline-width: 0;
474
+ input {
475
+ text-align: right;
476
+ }
477
+ `, ni = n.div`
478
+ background-color: ${(e) => e.theme.colors.grey5};
479
+ min-width: ${o.sp3};
480
+ `, _o = n(xn)`
481
+ display: ${(e) => e.isVisible ? "flex" : "none"};
482
+ padding: 0 ${o.sp3};
483
+ border-radius: ${o.sp1};
484
+ height: 100%;
485
+ align-items: center;
486
+ width: 100%;
487
+ justify-content: flex-end;
488
+ color: ${(e) => e.theme.colors.primary};
489
+ &.amount-placeholder {
490
+ color: ${(e) => e.theme.colors.grey1};
491
+ }
492
+ `, De = {
493
+ width: new s(343, 580, 726),
494
+ height: new s(r[6], r[6]),
495
+ controlHeight: new s(r[6], r[6]),
496
+ paddingTopBottom: new s(r[2], r[2]),
497
+ marginTop: new s(r[2], r[2]),
498
+ marginBottom: new s(r[2], r[2]),
499
+ marginRight: new s(r[2], r[2]),
500
+ labelMarginLeft: new s(r[3], r[4]),
501
+ labelMarginRight: new s(r[3], r[4]),
502
+ labelMarginTop: new s(r[2], r[2])
503
+ }, Bn = {
504
+ infoLabel: new go("extraSmallRegular", "smallRegular")
505
+ };
506
+ function ri({
507
+ isDisabled: e,
508
+ label: i,
509
+ currencyAmountField: a,
510
+ style: d,
511
+ errorInfoLabel: p,
512
+ isAdditionalInfoLabelLoading: v,
513
+ showAdditionalLabelTooltip: m = !1,
514
+ additionalLabelTooltip: S,
515
+ additionalInfoLabel: x,
516
+ showAdditionalInfoLabel: l = !0
517
+ }) {
518
+ const C = ze(), {
519
+ formState: { errors: b }
520
+ } = 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 = () => {
521
+ if (v === !0)
522
+ return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
523
+ if (l && x || $) {
524
+ let P = null;
525
+ return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
526
+ bn,
527
+ {
528
+ placement: C === "small" ? "bottom" : "right",
529
+ maxWidth: "364px",
530
+ title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
531
+ children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
532
+ }
533
+ )), /* @__PURE__ */ t.jsxs(
534
+ di,
535
+ {
536
+ size: C,
537
+ isError: $,
538
+ hasToolTip: m,
539
+ children: [
540
+ P,
541
+ x
542
+ ]
543
+ }
544
+ );
545
+ }
546
+ };
547
+ return /* @__PURE__ */ t.jsxs(
548
+ ii,
549
+ {
550
+ size: C,
551
+ style: d,
552
+ isDisabled: e != null,
553
+ isAmountError: c,
554
+ isCurrencyError: y,
555
+ "data-testid": U(
556
+ "labeled-currency-amount-field",
557
+ a.name
558
+ ),
559
+ children: [
560
+ /* @__PURE__ */ t.jsx(
561
+ gr,
562
+ {
563
+ isDisabled: e,
564
+ label: i.label,
565
+ htmlFor: a.name,
566
+ style: {
567
+ marginLeft: De.labelMarginLeft.value(C),
568
+ marginRight: De.labelMarginRight.value(C),
569
+ marginTop: De.labelMarginTop.value(C),
570
+ width: i.width ?? "auto"
571
+ }
572
+ }
573
+ ),
574
+ /* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
575
+ /* @__PURE__ */ t.jsx(
576
+ ei,
577
+ {
578
+ ...a,
579
+ isDisabled: e,
580
+ style: {
581
+ flexGrow: 1,
582
+ height: De.controlHeight.value(C)
583
+ }
584
+ }
585
+ ),
586
+ O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
587
+ T()
588
+ ] })
589
+ ]
590
+ }
591
+ );
592
+ }
593
+ const ii = n.div`
594
+ display: flex;
595
+ flex-direction: row;
596
+ align-items: flex-start;
597
+ background-color: ${(e) => e.theme.colors.grey5};
598
+ width: ${(e) => De.width.valuePx(e.size)};
599
+ min-height: ${(e) => De.height.valuePx(e.size)};
600
+ padding-right: ${(e) => De.marginRight.valuePx(e.size)};
601
+ padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
602
+ padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
603
+
604
+ :first-of-type {
605
+ border-top-left-radius: inherit;
606
+ border-top-right-radius: inherit;
607
+ }
608
+
609
+ :last-of-type {
610
+ border-bottom-left-radius: inherit;
611
+ border-bottom-right-radius: inherit;
612
+ }
613
+
614
+ &:focus-within {
615
+ z-index: 2;
616
+ outline: 1px solid ${(e) => e.theme.colors.primary};
617
+
618
+ .amount-field {
619
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
620
+ }
621
+
622
+ input:nth-of-type(1) {
623
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
624
+ }
625
+
626
+ input:nth-of-type(2) {
627
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
628
+ }
629
+ }
630
+ input {
631
+ text-align: left;
632
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
633
+ }
634
+
635
+ input:nth-of-type(1) {
636
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
637
+ }
638
+
639
+ input:nth-of-type(2) {
640
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
641
+ }
642
+
643
+ &:hover {
644
+ z-index: 1;
645
+ outline: 1px solid
646
+ ${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
647
+ input,
648
+ .amount-field {
649
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
650
+ }
651
+
652
+ input:nth-of-type(1) {
653
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
654
+ }
655
+
656
+ input:nth-of-type(2) {
657
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
658
+ }
659
+ }
660
+ `, ai = n.label`
661
+ color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
662
+ width: auto;
663
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
664
+ padding-right: ${o.sp3};
665
+ text-align: right;
666
+ `, li = n.div`
667
+ display: flex;
668
+ width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
669
+ justify-content: flex-end;
670
+ flex-direction: column;
671
+ position: relative;
672
+ `, si = n(yo)`
673
+ padding: 12px;
674
+ color: ${(e) => e.theme.colors.grey1};
675
+ background: ${(e) => e.theme.colors.overlayColor};
676
+ border-radius: ${o.sp1};
677
+ `, ci = n.div`
678
+ padding-right: ${o.sp3};
679
+ padding-top: ${o.sp1};
680
+ display: flex;
681
+ justify-content: flex-end;
682
+ `, di = n.label`
683
+ display: flex;
684
+ justify-content: flex-end;
685
+ color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
686
+ &:hover {
687
+ color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
688
+ }
689
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
690
+ padding-right: ${o.sp3};
691
+ text-align: right;
692
+ margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
693
+ `, ui = n.div`
694
+ display: flex;
695
+ margin-right: ${o.sp2};
696
+ margin-top: 2px;
697
+ align-items: center;
698
+ `, mi = n(yr)`
699
+ width: ${o.sp3};
700
+ height: ${o.sp3};
701
+ color: inherit;
702
+ `, ge = (e, i) => `${e}.${i}`, Mt = {
703
+ largeLabelWidth: new s(120, 120, 160),
704
+ smallLabelWidth: new s(85, 85, 160),
705
+ paddingBottom: new s(r[3], r[2]),
706
+ paddingLeft: new s(r[3], r[4]),
707
+ autoFillIconLeft: new s(-r[2], -r[4])
708
+ }, {
709
+ dateFormat: pi,
710
+ common: An,
711
+ spendManagement: {
712
+ reimbursement: { reimbursementDetail: oe }
713
+ }
714
+ } = we.getLocalizedStrings(), {
715
+ strings: { empty: ae }
716
+ } = An, hi = (e, i) => {
717
+ const a = e.slice(1);
718
+ let d = !1;
719
+ return a.forEach((p) => {
720
+ p.account?.qboId != null && p.account?.qboId === i && (d = !0);
721
+ }), d;
722
+ }, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
723
+ lineIndex: e,
724
+ outOfPocket: i,
725
+ accountList: a,
726
+ classList: d,
727
+ merchantList: p,
728
+ isAddReimbursementDisabled: v,
729
+ sectionId: m,
730
+ isReimbursementCommentingEnabled: S,
731
+ isDisabled: x,
732
+ autoFields: l = [],
733
+ accountsHierarchyList: C,
734
+ classHierarchyList: b,
735
+ reimbursementId: c,
736
+ tentativeMerchantName: y,
737
+ allCurrencies: $,
738
+ uncategorizedAccounts: O
739
+ }) => {
740
+ const T = ze(), P = St(), H = Wt(), B = $t(), {
741
+ formState: { errors: k },
742
+ getValues: M,
743
+ trigger: te
744
+ } = at(), ne = M(ge(m, "class")), re = d.find(
745
+ (h) => h.classId === ne?.selectedOption
746
+ ), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
747
+ (h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
748
+ ), q = ge(m, "account"), L = Pe(k, q);
749
+ ye(() => {
750
+ ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
751
+ }, [
752
+ ne?.selectedOption,
753
+ re?.isDeleted,
754
+ d,
755
+ Y,
756
+ te
757
+ ]), ye(() => {
758
+ F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
759
+ }, [
760
+ F?.selectedOption,
761
+ J?.isDeleted,
762
+ a,
763
+ q,
764
+ te
765
+ ]);
766
+ const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
767
+ !i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
768
+ !hi(
769
+ i.recommendations,
770
+ i.account
771
+ ), X = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
772
+ (h) => h.id ?? ae
773
+ ), ue = {
774
+ application: "dashboard",
775
+ companyId: P.currentTenant?.companyId,
776
+ tab: "reimbursement",
777
+ entityId: c
778
+ }, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
779
+ (h) => h.qboId === i.account
780
+ ), Ae = (h) => [
781
+ O.expense?.qboId,
782
+ O.income?.qboId
783
+ ].includes(h), Le = d.find((h) => h.classId === i.class), me = {
784
+ valueContainer: (h) => ({
785
+ ...h,
786
+ padding: `2px ${o.sp3} !important`,
787
+ overflow: "unset"
788
+ }),
789
+ singleValue: () => ({
790
+ margin: 0
791
+ })
792
+ }, 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(
793
+ "__based__",
794
+ gi(i?.recommendedAccount?.reason ?? ae)
795
+ ), Je = Et(
796
+ C,
797
+ i.recommendations
798
+ );
799
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
800
+ y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
801
+ /* @__PURE__ */ t.jsx(
802
+ $e,
803
+ {
804
+ isThreadAllowed: S && c != null,
805
+ dashboardTabKey: Se({
806
+ type: "details",
807
+ key: `${e}.out_of_pocket.merchant`
808
+ }),
809
+ roomId: fe,
810
+ companyId: P.currentTenant?.companyId ?? ae,
811
+ companyName: P.currentTenant?.companyName ?? ae,
812
+ entityId: c,
813
+ dashboardOptionType: "reimbursement",
814
+ filterMetaData: {
815
+ ...ue,
816
+ entityType: `reimbursement.details.${Ie(
817
+ "merchant",
818
+ e,
819
+ "out_of_pocket"
820
+ )}`
821
+ },
822
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
823
+ children: /* @__PURE__ */ t.jsx(
824
+ qr,
825
+ {
826
+ isDisabled: x != null || v ? "disabled" : void 0,
827
+ label: {
828
+ label: oe.merchant,
829
+ width: V
830
+ },
831
+ style: {
832
+ width: "auto"
833
+ },
834
+ creatableSingleSelectField: {
835
+ name: ge(m, "merchant"),
836
+ placeholder: oe.merchantPlaceholder,
837
+ defaultValue: {
838
+ selectedOption: i.merchant ?? ae,
839
+ allOptions: _e
840
+ },
841
+ registerOptions: {
842
+ required: !0,
843
+ validate: (h) => !!h.selectedOption
844
+ }
845
+ },
846
+ isOptionRemovable: !0,
847
+ addIconInCreateLabel: !0,
848
+ getLabelForId: le
849
+ }
850
+ )
851
+ }
852
+ ),
853
+ /* @__PURE__ */ t.jsx(Pt, {}),
854
+ l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
855
+ /* @__PURE__ */ t.jsx(
856
+ $e,
857
+ {
858
+ isThreadAllowed: S && c != null,
859
+ dashboardTabKey: Se({
860
+ type: "details",
861
+ key: `${e}.out_of_pocket.transactionDate`
862
+ }),
863
+ roomId: fe,
864
+ companyId: P.currentTenant?.companyId ?? ae,
865
+ companyName: P.currentTenant?.companyName ?? ae,
866
+ entityId: c,
867
+ dashboardOptionType: "reimbursement",
868
+ filterMetaData: {
869
+ ...ue,
870
+ entityType: `reimbursement.details.${Ie(
871
+ "transactionDate",
872
+ e,
873
+ "out_of_pocket"
874
+ )}`
875
+ },
876
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
877
+ children: /* @__PURE__ */ t.jsx(
878
+ yn,
879
+ {
880
+ isDisabled: x,
881
+ label: {
882
+ label: oe.transactionDate,
883
+ width: V
884
+ },
885
+ style: {
886
+ paddingBottom: Mt.paddingBottom.valuePx(T),
887
+ width: "auto"
888
+ },
889
+ dateField: {
890
+ name: ge(m, "transactionDate"),
891
+ placeholder: oe.datePlaceholder,
892
+ defaultValue: i?.transactionDate,
893
+ dateFormat: pi.visual.defaultInput,
894
+ autoComplete: "off",
895
+ maxDate: po(),
896
+ registerOptions: {
897
+ required: !0,
898
+ validate: (h) => !!h
899
+ }
900
+ }
901
+ }
902
+ )
903
+ }
904
+ ),
905
+ /* @__PURE__ */ t.jsx(Pt, {}),
906
+ l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
907
+ /* @__PURE__ */ t.jsx(
908
+ $e,
909
+ {
910
+ isThreadAllowed: S && c != null,
911
+ dashboardTabKey: Se({
912
+ type: "details",
913
+ key: `${e}.out_of_pocket.amount`
914
+ }),
915
+ roomId: fe,
916
+ companyId: P.currentTenant?.companyId ?? ae,
917
+ companyName: P.currentTenant?.companyName ?? ae,
918
+ entityId: c,
919
+ dashboardOptionType: "reimbursement",
920
+ filterMetaData: {
921
+ ...ue,
922
+ entityType: `reimbursement.details.${Ie(
923
+ "amount",
924
+ e,
925
+ "out_of_pocket"
926
+ )}`
927
+ },
928
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
929
+ children: /* @__PURE__ */ t.jsx(
930
+ ri,
931
+ {
932
+ isDisabled: x != null || v ? "disabled" : void 0,
933
+ label: { label: oe.amount, width: de },
934
+ style: { width: "auto" },
935
+ currencyAmountField: {
936
+ style: { height: o.sp6 },
937
+ name: `${m}.amount`,
938
+ defaultValue: {
939
+ amount: i.amount.amount,
940
+ currencyCode: i.amount.currencyCode,
941
+ currencySymbol: i.amount.currencySymbol
942
+ },
943
+ placeHolder: {
944
+ amount: oe.addAmount,
945
+ name: oe.addAmount
946
+ },
947
+ allCurrencies: $,
948
+ showAmountCurrencyError: !0
949
+ },
950
+ showAdditionalInfoLabel: !0,
951
+ showAdditionalLabelTooltip: !0,
952
+ additionalLabelTooltip: oe.amountExchangeRateTooltip,
953
+ isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
954
+ additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${fr(
955
+ "0,0[.]00",
956
+ i.homeCurrencyDetails
957
+ )} ${i.homeCurrencyDetails?.currencyCode}` : void 0
958
+ }
959
+ )
960
+ }
961
+ ),
962
+ /* @__PURE__ */ t.jsx(Pt, {}),
963
+ l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
964
+ /* @__PURE__ */ t.jsx(
965
+ $e,
966
+ {
967
+ isThreadAllowed: S && c != null,
968
+ dashboardTabKey: Se({
969
+ type: "details",
970
+ key: `${e}.out_of_pocket.memo`
971
+ }),
972
+ roomId: fe,
973
+ companyId: P.currentTenant?.companyId ?? ae,
974
+ companyName: P.currentTenant?.companyName ?? ae,
975
+ entityId: c,
976
+ dashboardOptionType: "reimbursement",
977
+ filterMetaData: {
978
+ ...ue,
979
+ entityType: `reimbursement.details.${Ie(
980
+ "memo",
981
+ e,
982
+ "out_of_pocket"
983
+ )}`
984
+ },
985
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
986
+ children: /* @__PURE__ */ t.jsx(
987
+ ho,
988
+ {
989
+ isDisabled: x,
990
+ label: {
991
+ label: oe.memo,
992
+ width: V
993
+ },
994
+ style: { width: "auto" },
995
+ text: {
996
+ type: "text",
997
+ name: ge(m, "memo"),
998
+ placeholder: rt(oe.memo),
999
+ defaultValue: i.memo,
1000
+ autoComplete: "off",
1001
+ options: {
1002
+ pattern: fn
1003
+ }
1004
+ }
1005
+ }
1006
+ )
1007
+ }
1008
+ ),
1009
+ /* @__PURE__ */ t.jsx(Pt, {}),
1010
+ l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1011
+ /* @__PURE__ */ t.jsx(
1012
+ $e,
1013
+ {
1014
+ isThreadAllowed: S && c != null,
1015
+ dashboardTabKey: Se({
1016
+ type: "details",
1017
+ key: `${e}.out_of_pocket.account`
1018
+ }),
1019
+ roomId: fe,
1020
+ companyId: P.currentTenant?.companyId ?? ae,
1021
+ companyName: P.currentTenant?.companyName ?? ae,
1022
+ entityId: c,
1023
+ dashboardOptionType: "reimbursement",
1024
+ filterMetaData: {
1025
+ ...ue,
1026
+ entityType: `reimbursement.details.${Ie(
1027
+ "account",
1028
+ e,
1029
+ "out_of_pocket"
1030
+ )}`
1031
+ },
1032
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1033
+ children: /* @__PURE__ */ t.jsx(
1034
+ uo,
1035
+ {
1036
+ label: {
1037
+ label: oe.category,
1038
+ width: V
1039
+ },
1040
+ additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
1041
+ groupedSingleSelectField: {
1042
+ shouldShowChevronIcon: ce || X,
1043
+ name: ge(m, "account"),
1044
+ placeholder: oe.categoryPlaceholder,
1045
+ valueToId: (h) => Me(h),
1046
+ defaultValue: {
1047
+ selectedOption: Be?.qboId ?? Be?.accountId,
1048
+ allOptions: Je
1049
+ },
1050
+ style: {
1051
+ width: "100%"
1052
+ },
1053
+ customStyleConfig: me,
1054
+ registerOptions: {
1055
+ required: !0,
1056
+ validate: (h) => h?.selectedOption == null ? !1 : a.find(
1057
+ (he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
1058
+ )?.isDeleted === !0 ? oe.deletedCategoryError : !0
1059
+ }
1060
+ },
1061
+ disableCurrentOption: Ae,
1062
+ style: {
1063
+ borderBottom: `1px solid ${B.colors.grey3}`,
1064
+ minHeight: o.sp6,
1065
+ boxSizing: "initial"
1066
+ },
1067
+ fullWidthSelect: !0,
1068
+ isLoading: i.isRecommendationLoading,
1069
+ recommendationCheckboxField: ce ? {
1070
+ tooltipProps: { text: ve },
1071
+ label: {
1072
+ label: i.recommendedAccount?.accountName ?? ae
1073
+ },
1074
+ checkBoxField: {
1075
+ name: ge(m, "isCategoryUpdateSelected"),
1076
+ defaultChecked: !!i.isCategoryUpdateSelected
1077
+ }
1078
+ } : void 0,
1079
+ retainCheckboxField: X ? {
1080
+ label: {
1081
+ label: i.retainedAccount?.accountName ?? ae
1082
+ },
1083
+ checkBoxField: {
1084
+ name: ge(m, "isRetainedCategorySelected"),
1085
+ defaultChecked: !!i.isRetainedCategorySelected
1086
+ }
1087
+ } : void 0
1088
+ },
1089
+ ge(m, "account")
1090
+ )
1091
+ }
1092
+ ),
1093
+ l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1094
+ /* @__PURE__ */ t.jsx(
1095
+ $e,
1096
+ {
1097
+ isThreadAllowed: S && c != null,
1098
+ dashboardTabKey: Se({
1099
+ type: "details",
1100
+ key: `${e}.out_of_pocket.class`
1101
+ }),
1102
+ roomId: fe,
1103
+ companyId: P.currentTenant?.companyId ?? ae,
1104
+ companyName: P.currentTenant?.companyName ?? ae,
1105
+ entityId: c,
1106
+ dashboardOptionType: "reimbursement",
1107
+ filterMetaData: {
1108
+ ...ue,
1109
+ entityType: `reimbursement.details.${Ie(
1110
+ "class",
1111
+ e,
1112
+ "out_of_pocket"
1113
+ )}`
1114
+ },
1115
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1116
+ style: {
1117
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
1118
+ },
1119
+ children: /* @__PURE__ */ t.jsx(
1120
+ uo,
1121
+ {
1122
+ isLoading: !1,
1123
+ label: {
1124
+ label: oe.department,
1125
+ width: V
1126
+ },
1127
+ additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
1128
+ groupedSingleSelectField: {
1129
+ shouldShowChevronIcon: !1,
1130
+ name: ge(m, "class"),
1131
+ placeholder: rt(oe.department),
1132
+ valueToId: (h) => pe(h),
1133
+ defaultValue: {
1134
+ selectedOption: Le?.classId,
1135
+ allOptions: Ye(b, [])
1136
+ },
1137
+ style: {
1138
+ width: "100%"
1139
+ },
1140
+ customStyleConfig: me,
1141
+ registerOptions: {
1142
+ required: !0,
1143
+ validate: (h) => h?.selectedOption == null ? !1 : d.find(
1144
+ (he) => he.classId === h?.selectedOption
1145
+ )?.isDeleted === !0 ? oe.deletedClassError : !0
1146
+ }
1147
+ },
1148
+ style: {
1149
+ borderBottom: `1px solid ${B.colors.grey3}`,
1150
+ borderBottomLeftRadius: o.sp2,
1151
+ borderBottomRightRadius: o.sp2
1152
+ },
1153
+ fullWidthSelect: !0
1154
+ },
1155
+ ge(m, "class")
1156
+ )
1157
+ }
1158
+ )
1159
+ ] });
1160
+ }, ct = n.span`
1161
+ position: relative;
1162
+ `, dt = n(fo)`
1163
+ color: ${(e) => e.theme.colors.primary};
1164
+ width: ${o.sp3};
1165
+ height: ${o.sp3};
1166
+ `, ut = n.div`
1167
+ z-index: 2;
1168
+ left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
1169
+ position: absolute;
1170
+ top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
1171
+ `, Pt = n.div`
1172
+ display: flex;
1173
+ flex: 1;
1174
+ background-color: ${(e) => e.theme.colors.grey3};
1175
+ min-height: 1px;
1176
+ max-height: 1px;
1177
+ `, ot = (e, i) => `${e}.${i}`, qe = {
1178
+ paddingTop: new s(r[5], r[4]),
1179
+ marginBottom: new s(r[3], r[3]),
1180
+ labelPaddingLeft: new s(r[3], r[4]),
1181
+ buttonWidth: new s(70, 70),
1182
+ containerRightMargin: new s(r[3], r[8]),
1183
+ containerLeftMargin: new s(r[3], r[6]),
1184
+ deleteConfirmationTextMarginBottom: new s(r[2], r[0])
1185
+ }, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
1186
+ lineData: e,
1187
+ currencyConversionState: i,
1188
+ recommendationFetchState: a,
1189
+ remiStage: d,
1190
+ lineIndex: p,
1191
+ accountList: v,
1192
+ classList: m,
1193
+ merchantList: S,
1194
+ hasFile: x,
1195
+ defaultCurrency: l,
1196
+ hasMultipleLineItems: C,
1197
+ fileRequiredLineIds: b,
1198
+ duplicateLineDetails: c,
1199
+ remiStatus: y,
1200
+ sectionId: $,
1201
+ isDisabled: O,
1202
+ isReimbursementCommentingEnabled: T,
1203
+ isAddReimbursementDisabled: P,
1204
+ style: H,
1205
+ autoFields: B = [],
1206
+ analytics: k,
1207
+ reimbursementId: M,
1208
+ tentativeMerchantName: te,
1209
+ companyMileageConfigInfo: ne,
1210
+ uncategorizedAccounts: re,
1211
+ removeDuplicateReimbursementForLine: Y,
1212
+ scrollToSection: K,
1213
+ onDuplicateLineClick: F,
1214
+ onRemoveReimbursement: J,
1215
+ clearTentativeNameForLine: q,
1216
+ allCurrencies: L,
1217
+ accountsHierarchyList: ce,
1218
+ classHierarchyList: X
1219
+ }) => {
1220
+ const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
1221
+ application: "dashboard",
1222
+ companyId: de.currentTenant?.companyId,
1223
+ tab: "reimbursement",
1224
+ entityId: M
1225
+ }, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = Q(!1), me = Be(
1226
+ ot($, "reimbursementType")
1227
+ );
1228
+ return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
1229
+ /* @__PURE__ */ t.jsxs(
1230
+ bi,
1231
+ {
1232
+ hasFile: x,
1233
+ windowSize: V,
1234
+ showDeleteConfirmation: Ae,
1235
+ children: [
1236
+ /* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
1237
+ Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
1238
+ /* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
1239
+ /* @__PURE__ */ t.jsxs(xi, { children: [
1240
+ /* @__PURE__ */ t.jsx(
1241
+ Ro,
1242
+ {
1243
+ label: G.buttons.cancel,
1244
+ onClick: () => Le(!1),
1245
+ style: {
1246
+ width: qe.buttonWidth.value(V),
1247
+ marginLeft: V === "small" ? o.sp0 : o.sp4,
1248
+ marginRight: o.sp3
1249
+ },
1250
+ size: "small",
1251
+ variant: "secondary",
1252
+ "data-testid": U(
1253
+ "delete-remi-button",
1254
+ G.buttons.cancel
1255
+ )
1256
+ }
1257
+ ),
1258
+ /* @__PURE__ */ t.jsx(
1259
+ Ro,
1260
+ {
1261
+ label: G.buttons.remove,
1262
+ onClick: () => {
1263
+ k?.trackReimbursementDeleteReimbursementLine(
1264
+ e.lineId,
1265
+ M
1266
+ ), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
1267
+ },
1268
+ style: { width: qe.buttonWidth.value(V) },
1269
+ size: "small",
1270
+ variant: "danger",
1271
+ "data-testid": U(
1272
+ "delete-remi-button",
1273
+ G.buttons.remove
1274
+ )
1275
+ }
1276
+ )
1277
+ ] })
1278
+ ] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
1279
+ wi,
1280
+ {
1281
+ className: "deleteIconWrapper",
1282
+ windowSize: V,
1283
+ onClick: () => Le(!0),
1284
+ "data-testid": U(
1285
+ "delete-remi-button",
1286
+ e.lineId
1287
+ ),
1288
+ children: /* @__PURE__ */ t.jsx(
1289
+ bn,
1290
+ {
1291
+ enterDelay: 600,
1292
+ title: G.deleteReimbursement,
1293
+ placement: "top-end",
1294
+ children: /* @__PURE__ */ t.jsx($i, {})
1295
+ }
1296
+ )
1297
+ }
1298
+ ) : null
1299
+ ]
1300
+ }
1301
+ ),
1302
+ b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
1303
+ wn,
1304
+ {
1305
+ title: G.missingReceipt,
1306
+ description: G.missingReceiptDescription,
1307
+ style: { marginBottom: o.sp3 }
1308
+ }
1309
+ ) : null,
1310
+ /* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
1311
+ c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
1312
+ G.thisExpense,
1313
+ " ",
1314
+ c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
1315
+ Do,
1316
+ {
1317
+ "data-testid": U(
1318
+ "view-duplicate-transaction-expense"
1319
+ ),
1320
+ onClick: () => (k?.trackReimbursementViewDuplicateExpense(
1321
+ !0,
1322
+ M
1323
+ ), K(
1324
+ c.duplicateLineId
1325
+ )),
1326
+ children: G.viewOriginalExpense
1327
+ }
1328
+ ) : /* @__PURE__ */ t.jsx(
1329
+ Do,
1330
+ {
1331
+ "data-testid": U("view-duplicate-expense"),
1332
+ onClick: () => {
1333
+ c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
1334
+ !1,
1335
+ M
1336
+ ), F(
1337
+ c.duplicateTransactionId,
1338
+ c.duplicateLineId
1339
+ ));
1340
+ },
1341
+ children: G.viewOriginalExpense
1342
+ }
1343
+ )
1344
+ ] }) : null,
1345
+ /* @__PURE__ */ t.jsx(
1346
+ $e,
1347
+ {
1348
+ isThreadAllowed: T && M != null,
1349
+ dashboardTabKey: Se({
1350
+ type: "details",
1351
+ key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
1352
+ }),
1353
+ roomId: le,
1354
+ companyId: de.currentTenant?.companyId ?? ue,
1355
+ companyName: de.currentTenant?.companyName ?? ue,
1356
+ entityId: M,
1357
+ dashboardOptionType: "reimbursement",
1358
+ filterMetaData: {
1359
+ ...fe,
1360
+ entityType: `reimbursement.details.${Ie(
1361
+ "reimbursementType",
1362
+ p,
1363
+ me === G.mileageKey ? "mileage" : "out_of_pocket"
1364
+ )}`
1365
+ },
1366
+ fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
1367
+ style: {
1368
+ borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
1369
+ },
1370
+ children: /* @__PURE__ */ t.jsxs(
1371
+ Oi,
1372
+ {
1373
+ isDisabled: O != null,
1374
+ haveBorderRadius: c?.duplicateLineId == null,
1375
+ children: [
1376
+ /* @__PURE__ */ t.jsx(
1377
+ zo,
1378
+ {
1379
+ isDisabled: O != null || P ? "disabled" : void 0,
1380
+ isContainerClickable: !0,
1381
+ label: {
1382
+ label: G.outOfPocket
1383
+ },
1384
+ style: {
1385
+ padding: `${o.sp3} ${o.sp0}`,
1386
+ paddingLeft: qe.labelPaddingLeft.value(V),
1387
+ borderTopLeftRadius: "inherit"
1388
+ },
1389
+ showOutline: !(T && M != null),
1390
+ radioField: {
1391
+ name: ot($, "reimbursementType"),
1392
+ id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
1393
+ value: G.outOfPocketKey
1394
+ }
1395
+ }
1396
+ ),
1397
+ /* @__PURE__ */ t.jsx(Ii, {}),
1398
+ /* @__PURE__ */ t.jsx(
1399
+ zo,
1400
+ {
1401
+ isDisabled: O != null || P ? "disabled" : void 0,
1402
+ isContainerClickable: !0,
1403
+ label: {
1404
+ label: G.mileage
1405
+ },
1406
+ style: {
1407
+ padding: `${o.sp3} ${o.sp0}`,
1408
+ paddingLeft: qe.labelPaddingLeft.value(V),
1409
+ borderTopRightRadius: "inherit"
1410
+ },
1411
+ showOutline: !(T && M != null),
1412
+ radioField: {
1413
+ name: ot($, "reimbursementType"),
1414
+ id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
1415
+ value: G.mileageKey
1416
+ }
1417
+ }
1418
+ )
1419
+ ]
1420
+ }
1421
+ )
1422
+ }
1423
+ ),
1424
+ /* @__PURE__ */ t.jsx(Pi, {}),
1425
+ me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
1426
+ yi,
1427
+ {
1428
+ lineIndex: p,
1429
+ reimbursementId: M,
1430
+ uncategorizedAccounts: re,
1431
+ isReimbursementCommentingEnabled: T,
1432
+ isDisabled: O,
1433
+ outOfPocket: {
1434
+ transactionDate: e.outOfPocket.transactionDate != null ? it(
1435
+ e.outOfPocket.transactionDate.toDateString()
1436
+ ) : void 0,
1437
+ account: e.outOfPocket.account.selectedOption,
1438
+ isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
1439
+ isRecommendationLoading: a === "In-Progress",
1440
+ homeCurrencyDetails: e.homeCurrencyConversions,
1441
+ class: e.outOfPocket.class.selectedOption,
1442
+ amount: {
1443
+ amount: e.outOfPocket.amount?.amount ?? 0,
1444
+ currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
1445
+ currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
1446
+ },
1447
+ memo: e.outOfPocket.memo,
1448
+ merchant: e.outOfPocket.merchant.selectedOption,
1449
+ recommendations: e.outOfPocket.recommendations,
1450
+ recommendedAccount: e.outOfPocket.recommendedAccount,
1451
+ //account to show in update to checkbox
1452
+ isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
1453
+ //update to checkbox is ticked
1454
+ isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
1455
+ retainedAccount: e.outOfPocket.retainedAccount,
1456
+ //account to show in retain checkbox
1457
+ isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
1458
+ //retain checkbox is selected
1459
+ },
1460
+ sectionId: ot($, "outOfPocket"),
1461
+ accountList: v,
1462
+ classList: m,
1463
+ autoFields: B,
1464
+ merchantList: S,
1465
+ tentativeMerchantName: te,
1466
+ allCurrencies: L,
1467
+ isAddReimbursementDisabled: P,
1468
+ accountsHierarchyList: ce,
1469
+ classHierarchyList: X
1470
+ }
1471
+ ) : /* @__PURE__ */ t.jsx(
1472
+ Zr,
1473
+ {
1474
+ lineIndex: p,
1475
+ reimbursementId: M,
1476
+ isReimbursementCommentingEnabled: T,
1477
+ isDisabled: O,
1478
+ mileage: {
1479
+ transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
1480
+ class: e.mileage.class.selectedOption,
1481
+ distanceInMiles: e.mileage.distanceInMiles,
1482
+ amount: {
1483
+ amount: e.mileage.amount?.amount ?? 0,
1484
+ currencyCode: e.mileage.amount?.currencyCode ?? "USD",
1485
+ currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
1486
+ },
1487
+ memo: e.mileage.memo
1488
+ },
1489
+ classList: m,
1490
+ sectionId: ot($, "mileage"),
1491
+ companyMileageConfigInfo: ne,
1492
+ defaultCurrency: l,
1493
+ isAddReimbursementDisabled: P,
1494
+ classHierarchyList: X
1495
+ }
1496
+ )
1497
+ ] })
1498
+ ] });
1499
+ }, xi = n.div``, bi = n.div`
1500
+ //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
1501
+ //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
1502
+ display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
1503
+ justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
1504
+ margin-bottom: ${o.sp3};
1505
+ align-items: center;
1506
+ `, wi = n.div`
1507
+ width: ${o.sp3};
1508
+ height: ${o.sp3};
1509
+ cursor: pointer;
1510
+ display: none;
1511
+ color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
1512
+ &:hover {
1513
+ color: ${I.important};
1514
+ }
1515
+ `, Do = n.span`
1516
+ border-bottom: 1px solid currentColor;
1517
+ cursor: pointer;
1518
+ `, $i = n(xr)`
1519
+ width: ${o.sp3};
1520
+ height: ${o.sp3};
1521
+ cursor: pointer;
1522
+ `, Si = n.div`
1523
+ margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
1524
+ `, vi = n(xo)`
1525
+ color: ${(e) => e.theme.colors.hero};
1526
+ display: flex;
1527
+ align-items: center;
1528
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
1529
+ `, Ci = n.div`
1530
+ display: flex;
1531
+ flex-direction: column;
1532
+ padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
1533
+ margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
1534
+ margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
1535
+ .deleteIconWrapper {
1536
+ ${(e) => e.windowSize === "small" && `
1537
+ display: block;
1538
+ `}
1539
+ }
1540
+ &:hover {
1541
+ .deleteIconWrapper {
1542
+ display: block;
1543
+ }
1544
+ }
1545
+ `, Ti = n(br)`
1546
+ padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
1547
+ background-color: ${I.alertLight};
1548
+ color: ${I.brandColorGoldDark};
1549
+ border-top-left-radius: inherit;
1550
+ border-top-right-radius: inherit;
1551
+ `, ki = n(Vt)`
1552
+ color: ${(e) => e.theme.colors.primary};
1553
+ display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
1554
+ `, ji = n.div`
1555
+ display: flex;
1556
+ flex-direction: column;
1557
+ background-color: ${(e) => e.theme.colors.grey5};
1558
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1559
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1560
+ border-radius: ${o.sp2};
1561
+ margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
1562
+ `, Ii = n.div`
1563
+ background-color: ${(e) => e.theme.colors.grey3};
1564
+ min-width: 1px;
1565
+ max-width: 1px;
1566
+ `, Oi = n.div`
1567
+ display: flex;
1568
+ flex-direction: row;
1569
+ border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1570
+ border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1571
+ `, Pi = n.div`
1572
+ display: flex;
1573
+ flex: 1;
1574
+ background-color: ${(e) => e.theme.colors.grey3};
1575
+ min-height: 1px;
1576
+ max-height: 1px;
1577
+ `, Bi = (e, i) => `${e}.${i}`, mt = {
1578
+ labelWidth: new s(120, 160, 160),
1579
+ paddingBottom: new s(r[3], r[3]),
1580
+ paddingTop: new s(12, r[3]),
1581
+ marginBottom: new s(12, r[3]),
1582
+ containerRightMargin: new s(r[3], r[8]),
1583
+ containerLeftMargin: new s(r[3], r[6])
1584
+ }, Ln = ({
1585
+ isReimbursementCommentingEnabled: e,
1586
+ sectionId: i,
1587
+ isDisabled: a,
1588
+ reportTitle: d,
1589
+ reimbursementId: p,
1590
+ style: v
1591
+ }) => {
1592
+ 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);
1593
+ return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
1594
+ /* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
1595
+ /* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
1596
+ $e,
1597
+ {
1598
+ isThreadAllowed: e && p != null,
1599
+ dashboardTabKey: Se({
1600
+ type: "details",
1601
+ key: "whatFor"
1602
+ }),
1603
+ roomId: l,
1604
+ companyId: S.currentTenant?.companyId ?? c,
1605
+ companyName: S.currentTenant?.companyName ?? c,
1606
+ entityId: p,
1607
+ dashboardOptionType: "reimbursement",
1608
+ filterMetaData: {
1609
+ application: "dashboard",
1610
+ companyId: S.currentTenant?.companyId,
1611
+ tab: "reimbursement",
1612
+ entityId: p,
1613
+ entityType: "reimbursement.details.whatFor"
1614
+ },
1615
+ fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
1616
+ style: {
1617
+ borderRadius: o.sp2
1618
+ },
1619
+ children: /* @__PURE__ */ t.jsx(
1620
+ ho,
1621
+ {
1622
+ isDisabled: a,
1623
+ label: {
1624
+ label: b.reportTitle,
1625
+ width: y
1626
+ },
1627
+ text: {
1628
+ type: "text",
1629
+ name: Bi(i, "reportTitle"),
1630
+ placeholder: b.lunchWithClient,
1631
+ defaultValue: d,
1632
+ autoComplete: "off",
1633
+ options: {
1634
+ required: !0,
1635
+ validate: ($) => !!$
1636
+ }
1637
+ },
1638
+ style: { width: "auto", borderRadius: o.sp2 }
1639
+ }
1640
+ )
1641
+ }
1642
+ ) })
1643
+ ] });
1644
+ }, Ai = n.div`
1645
+ display: flex;
1646
+ flex-direction: column;
1647
+ padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
1648
+ padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
1649
+ margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
1650
+ margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
1651
+ `, Li = n.div`
1652
+ display: flex;
1653
+ flex-direction: column;
1654
+ background-color: ${(e) => e.theme.colors.grey5};
1655
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1656
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1657
+ border-radius: ${o.sp2};
1658
+ `, Mi = n(Vt)`
1659
+ color: ${(e) => e.theme.colors.primary};
1660
+ margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
1661
+ `, N = {
1662
+ largeLabelWidth: new s(120, 120, 220),
1663
+ marginTop: new s(28, 8),
1664
+ paymentToMarginTop: new s(0, r[4]),
1665
+ marginBottom: new s(r[5], r[4]),
1666
+ paymentToMarginBottom: new s(12, r[3]),
1667
+ totalMarginBottom: new s(r[3], r[3]),
1668
+ reimbursementSectionLeftMargin: new s(r[3], r[6]),
1669
+ reimbursementSectionRightMargin: new s(r[3], r[8]),
1670
+ invoiceSectionLeftMargin: new s(r[3], r[8]),
1671
+ invoiceSectionRightMargin: new s(r[3], r[6]),
1672
+ rightSectionWidth: new s(100, 58),
1673
+ firstOrLastItemHeight: new s(390, 760),
1674
+ itemHeight: new s(390, 459),
1675
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
1676
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
1677
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
1678
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
1679
+ }, Ri = {
1680
+ total: new go("largeMedium", "h6Medium")
1681
+ }, {
1682
+ spendManagement: {
1683
+ reimbursement: { reimbursementDetail: D },
1684
+ billPay: {
1685
+ vendorCreation: { achDetails: Bt }
1686
+ }
1687
+ },
1688
+ common: {
1689
+ currency: { currencyCode: At }
1690
+ }
1691
+ } = we.getLocalizedStrings(), Mn = (e) => {
1692
+ let i = 0, a = At;
1693
+ if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
1694
+ const d = e;
1695
+ i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
1696
+ } else {
1697
+ const d = e;
1698
+ i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
1699
+ }
1700
+ return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
1701
+ }, zi = ({
1702
+ remiUploadStatus: e,
1703
+ progressSectionObj: i,
1704
+ reimbursementId: a,
1705
+ createDate: d,
1706
+ scheduleDate: p,
1707
+ paymentDate: v,
1708
+ hasDuplicateLine: m,
1709
+ approvedDate: S,
1710
+ isFirstOrLastListItem: x,
1711
+ index: l,
1712
+ reimbursementSectionRef: C,
1713
+ showSkipAutoFill: b,
1714
+ lineData: c,
1715
+ currencyConversionState: y,
1716
+ authParams: $,
1717
+ uploadInvoiceEndPoint: O,
1718
+ accountList: T,
1719
+ classList: P,
1720
+ merchantList: H,
1721
+ remiStage: B,
1722
+ autoFieldsByLineId: k,
1723
+ isReimbursementCommentingEnabled: M,
1724
+ isAutoFieldsExist: te,
1725
+ totalAmount: ne,
1726
+ showTotalAmountLoader: re,
1727
+ totalNumberOfLines: Y,
1728
+ defaultCurrency: K,
1729
+ bankAccounts: F,
1730
+ fileRequiredLineIds: J,
1731
+ isAddReimbursementDisabled: q,
1732
+ duplicateLineByLineId: L,
1733
+ remiStatus: ce,
1734
+ file: X,
1735
+ uncategorizedAccounts: V,
1736
+ reportTitle: de,
1737
+ recommendationFetchState: _e,
1738
+ tentativeMerchantName: ue,
1739
+ paymentTo: fe,
1740
+ analytics: le,
1741
+ companyMileageConfigInfo: Be,
1742
+ loggedInUserDepartmentId: Ae,
1743
+ isSignedInUserReimbursementCreator: Le,
1744
+ setShowBankAccountPage: me,
1745
+ setRefByLineId: Me,
1746
+ setCurrentLineIdForUpload: pe,
1747
+ onDuplicateLineClick: ve,
1748
+ setUploadedReceiptPayload: Je,
1749
+ removeDuplicateReimbursementForLine: h,
1750
+ onReceiptsUpload: Ce,
1751
+ scrollToSection: he,
1752
+ onRemoveReimbursement: He,
1753
+ onAddReimbursement: Re,
1754
+ clearTentativeNameForLine: Xe,
1755
+ onReplaceClick: Fe,
1756
+ onDeleteBankAccount: Ke,
1757
+ updateInvoiceUploadFetchState: Ge,
1758
+ removeFileFromLine: Qe,
1759
+ allCurrencies: Ze,
1760
+ accountsHierarchyList: ie,
1761
+ classHierarchyList: lt
1762
+ }) => {
1763
+ const {
1764
+ formState: { errors: pt }
1765
+ } = at(), et = bt(null);
1766
+ ye(() => (Me((R) => ({
1767
+ ...R,
1768
+ [`L${c.lineId}`]: et.current
1769
+ })), () => {
1770
+ Me((R) => ({
1771
+ ...R,
1772
+ [`L${c.lineId}`]: null
1773
+ }));
1774
+ }), [c.lineId, Me]);
1775
+ 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 && X == null;
1776
+ return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
1777
+ /* @__PURE__ */ t.jsx(
1778
+ oa,
1779
+ {
1780
+ ref: (R) => {
1781
+ R != null && (et.current = R);
1782
+ },
1783
+ windowSize: _,
1784
+ bottomSeperator: Y !== 1,
1785
+ showSkipAutoFill: b,
1786
+ isFirstItem: l === 0,
1787
+ children: /* @__PURE__ */ t.jsx(
1788
+ Pn,
1789
+ {
1790
+ customError: Te ? D.requireReceipt : void 0,
1791
+ analytics: le,
1792
+ showAutofill: !1,
1793
+ uploadInvoiceEndPoint: O,
1794
+ authParams: $,
1795
+ entityId: q ? "" : void 0,
1796
+ file: X,
1797
+ style: {
1798
+ width: "auto",
1799
+ padding: 0,
1800
+ height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
1801
+ margin: _ === "small" ? o.sp0 : void 0
1802
+ },
1803
+ updateInvoiceUploadFetchState: Ge,
1804
+ onInvoiceUpload: (R) => {
1805
+ c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
1806
+ R
1807
+ ), Fe?.()) : Ce(
1808
+ R,
1809
+ Number(c.lineId),
1810
+ !0
1811
+ );
1812
+ },
1813
+ dropFilePlaceholder: {
1814
+ upload: D.dropReceipt.upload,
1815
+ receipt: D.dropReceipt.receipt
1816
+ },
1817
+ showInfoText: !1,
1818
+ showTitlebar: !0,
1819
+ showTitlebarIcon: !q,
1820
+ pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
1821
+ onDeleteClick: () => {
1822
+ Ge?.("In-Progress"), setTimeout(() => Qe?.(Number(c.lineId)));
1823
+ },
1824
+ onReplaceClick: () => {
1825
+ pe(Number(c.lineId)), Fe?.();
1826
+ },
1827
+ allowMultiFiles: Y === l + 1,
1828
+ type: "reimbursement"
1829
+ }
1830
+ )
1831
+ }
1832
+ ),
1833
+ /* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
1834
+ l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1835
+ /* @__PURE__ */ t.jsx(Ui, { children: ht }),
1836
+ /* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
1837
+ wr,
1838
+ {
1839
+ progressSectionObj: i,
1840
+ createDate: d,
1841
+ paymentDate: v,
1842
+ scheduleDate: p,
1843
+ approvedDate: S,
1844
+ isBillUploaded: a != null ? !0 : e === "Completed"
1845
+ }
1846
+ ) }),
1847
+ te && /* @__PURE__ */ t.jsxs(Wi, { children: [
1848
+ /* @__PURE__ */ t.jsx(Fi, {}),
1849
+ /* @__PURE__ */ t.jsx(qi, { children: D.banner })
1850
+ ] }),
1851
+ m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
1852
+ /* @__PURE__ */ t.jsx(Ni, {}),
1853
+ /* @__PURE__ */ t.jsxs(_i, { children: [
1854
+ /* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
1855
+ /* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
1856
+ ] })
1857
+ ] }),
1858
+ /* @__PURE__ */ t.jsx(
1859
+ Ln,
1860
+ {
1861
+ isReimbursementCommentingEnabled: M,
1862
+ sectionId: Nt,
1863
+ reportTitle: de,
1864
+ reimbursementId: a
1865
+ }
1866
+ )
1867
+ ] }) : null,
1868
+ /* @__PURE__ */ t.jsx(
1869
+ fi,
1870
+ {
1871
+ analytics: le,
1872
+ reimbursementId: a,
1873
+ onDuplicateLineClick: ve,
1874
+ uncategorizedAccounts: V,
1875
+ sectionId: `${So}.${l}`,
1876
+ scrollToSection: he,
1877
+ lineIndex: l,
1878
+ lineData: c,
1879
+ accountList: T,
1880
+ classList: P,
1881
+ merchantList: H,
1882
+ autoFields: c.lineId != null ? k[c.lineId] : [],
1883
+ currencyConversionState: y,
1884
+ recommendationFetchState: _e,
1885
+ onRemoveReimbursement: He,
1886
+ hasMultipleLineItems: Y > 1,
1887
+ clearTentativeNameForLine: Xe,
1888
+ tentativeMerchantName: ue,
1889
+ hasFile: X != null,
1890
+ companyMileageConfigInfo: Be,
1891
+ defaultCurrency: K,
1892
+ remiStage: B,
1893
+ remiStatus: ce,
1894
+ fileRequiredLineIds: J,
1895
+ allCurrencies: Ze,
1896
+ isReimbursementCommentingEnabled: M,
1897
+ isAddReimbursementDisabled: q,
1898
+ accountsHierarchyList: ie,
1899
+ classHierarchyList: lt,
1900
+ duplicateLineDetails: L[c.lineId],
1901
+ removeDuplicateReimbursementForLine: h
1902
+ }
1903
+ ),
1904
+ Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1905
+ /* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
1906
+ /* @__PURE__ */ t.jsx(Gi, { children: D.total }),
1907
+ re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
1908
+ vt,
1909
+ {
1910
+ size: "Standard",
1911
+ start: !0,
1912
+ style: { display: "flex" }
1913
+ }
1914
+ ) }) }) : /* @__PURE__ */ t.jsx(
1915
+ $n,
1916
+ {
1917
+ amount: hn(ne, "USD", "$"),
1918
+ integerStyles: Ft.h6Regular.cssObject,
1919
+ decimalStyles: Ft.standardRegular.cssObject
1920
+ }
1921
+ )
1922
+ ] }),
1923
+ /* @__PURE__ */ t.jsxs(
1924
+ Qi,
1925
+ {
1926
+ windowSize: _,
1927
+ onClick: () => {
1928
+ q === !1 && Re();
1929
+ },
1930
+ isDisabled: q,
1931
+ "data-testid": U("add-reimbursement-row"),
1932
+ children: [
1933
+ /* @__PURE__ */ t.jsx(Uo, {}),
1934
+ /* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
1935
+ ]
1936
+ }
1937
+ ),
1938
+ Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1939
+ /* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
1940
+ /* @__PURE__ */ t.jsx(
1941
+ Xi,
1942
+ {
1943
+ windowSize: _,
1944
+ shouldDisplay: F.length > 0,
1945
+ children: /* @__PURE__ */ t.jsx(
1946
+ Sn,
1947
+ {
1948
+ label: {
1949
+ label: D.yourBankAccount,
1950
+ width: W
1951
+ },
1952
+ style: {
1953
+ width: "auto"
1954
+ },
1955
+ singleSelectField: {
1956
+ singleSelect: {
1957
+ name: wt,
1958
+ placeholder: rt(
1959
+ D.yourBankAccount
1960
+ ),
1961
+ showValueEyeIcon: !q,
1962
+ menuPlacement: "top",
1963
+ maxMenuHeight: 308,
1964
+ showEyeIconOnSelect: !1,
1965
+ onDelete: Ke,
1966
+ getTooltipInfo: (R) => Rn(F, R),
1967
+ onClickCreateBankAccount: () => me(!0),
1968
+ getLabelForId: (R) => Fn(F, R),
1969
+ isOptionRemovable: !1,
1970
+ showDeleteIcon: !0,
1971
+ showAddBankAccountOption: !0,
1972
+ isDisabled: q ? "readonly" : void 0,
1973
+ showTickMark: !1,
1974
+ alwaysShowEyeTooltip: !0
1975
+ },
1976
+ defaultValue: {
1977
+ selectedOption: fe,
1978
+ allOptions: Ct
1979
+ },
1980
+ registerOptions: {
1981
+ required: !0,
1982
+ validate: (R) => !!R.selectedOption
1983
+ }
1984
+ },
1985
+ isFunctional: !0
1986
+ }
1987
+ )
1988
+ }
1989
+ ),
1990
+ /* @__PURE__ */ t.jsxs(
1991
+ Zi,
1992
+ {
1993
+ shouldDisplay: F.length === 0,
1994
+ windowSize: _,
1995
+ hasError: Pe(pt, wt),
1996
+ onClick: () => {
1997
+ q === !1 && me(!0);
1998
+ },
1999
+ isDisabled: q,
2000
+ "data-testid": U(
2001
+ "remi-add-bank-account-container"
2002
+ ),
2003
+ children: [
2004
+ /* @__PURE__ */ t.jsx(Uo, {}),
2005
+ /* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
2006
+ ]
2007
+ }
2008
+ )
2009
+ ] }) : null
2010
+ ] })
2011
+ ] })
2012
+ ] });
2013
+ }, Rn = (e, i) => {
2014
+ const a = zn(e, i);
2015
+ return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
2016
+ ${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
2017
+ ${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
2018
+ }, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
2019
+ const a = zn(e, i);
2020
+ return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
2021
+ a.bankAccountNumber.length - 4
2022
+ )}` : D.selectBankAccount;
2023
+ }, Fi = n(fo)`
2024
+ color: ${(e) => e.theme.colors.primary};
2025
+ width: ${o.sp3};
2026
+ height: ${o.sp3};
2027
+ `, Ni = n(Sr)`
2028
+ width: ${o.sp4};
2029
+ height: ${o.sp4};
2030
+ color: ${I.brandColorGoldDark};
2031
+ `, Wi = n.div`
2032
+ display: flex;
2033
+ gap: ${o.sp2};
2034
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2035
+ padding: ${o.sp3};
2036
+ border-radius: ${o.sp2};
2037
+ align-items: center;
2038
+ margin: 0 ${o.sp8} 0 ${o.sp6};
2039
+ `, Ei = n.div`
2040
+ display: flex;
2041
+ gap: ${o.sp2};
2042
+ padding: ${o.sp3};
2043
+ border-radius: ${o.sp2};
2044
+ align-items: start;
2045
+ margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
2046
+ margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
2047
+ margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
2048
+ margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
2049
+ background-color: ${I.alertLight};
2050
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
2051
+ `, Vi = n(_t)`
2052
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2053
+ `, _i = n.div`
2054
+ width: 100%;
2055
+ `, Di = n(xo)`
2056
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2057
+ `, qi = n.span`
2058
+ color: ${(e) => e.theme.colors.hero};
2059
+ `, Ui = n($r)`
2060
+ letter-spacing: -0.02em;
2061
+ color: ${(e) => e.theme.colors.primary};
2062
+ margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
2063
+ `, Hi = n(Vt)`
2064
+ letter-spacing: -0.02em;
2065
+ color: ${(e) => e.theme.colors.primary};
2066
+ margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
2067
+ margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
2068
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2069
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2070
+ `, Ki = n.div`
2071
+ padding: ${o.sp3};
2072
+ display: flex;
2073
+ align-items: center;
2074
+ justify-content: space-between;
2075
+ background-color: ${(e) => e.theme.colors.grey3};
2076
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2077
+ border-radius: ${o.sp2};
2078
+ color: ${(e) => e.theme.colors.hero};
2079
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2080
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2081
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2082
+ margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2083
+ justify-content: space-between;
2084
+ `, Gi = n(vn)`
2085
+ display: flex;
2086
+ width: 176px;
2087
+ color: ${(e) => e.theme.colors.primary};
2088
+ `, Yi = n(Cn)`
2089
+ display: flex;
2090
+ width: calc(100% - 176px);
2091
+ justify-content: flex-end;
2092
+ color: ${(e) => e.theme.colors.primary};
2093
+ ${(e) => `${Ri.total.style(e.windowSize)}`};
2094
+ `, Ji = n.div`
2095
+ padding-right: ${o.sp3};
2096
+ height: 30px;
2097
+ display: flex;
2098
+ justify-content: flex-end;
2099
+ `, Xi = n.div`
2100
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2101
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2102
+ margin-bottom: ${o.sp3};
2103
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2104
+ border-radius: ${o.sp2};
2105
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2106
+ display: ${(e) => e.shouldDisplay ? "unset" : "none"};
2107
+ `, Qi = n.div`
2108
+ padding: ${o.sp3};
2109
+ display: flex;
2110
+ align-items: center;
2111
+ justify-content: center;
2112
+ border: 1px solid
2113
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2114
+ border-radius: ${o.sp2};
2115
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2116
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2117
+ &:hover {
2118
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2119
+ border: 1px solid
2120
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2121
+ }
2122
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2123
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2124
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2125
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2126
+ `, Zi = n.div`
2127
+ padding: ${o.sp3};
2128
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2129
+ align-items: center;
2130
+ justify-content: center;
2131
+ border: 1px solid
2132
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2133
+ border-radius: ${o.sp2};
2134
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2135
+ cursor: pointer;
2136
+ &:hover {
2137
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2138
+ border: 1px solid
2139
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2140
+ }
2141
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2142
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2143
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2144
+ `, qo = n(_t)`
2145
+ color: inherit;
2146
+ `, Uo = n(Tn)`
2147
+ margin-right: ${o.sp2};
2148
+ width: ${o.sp3};
2149
+ height: ${o.sp3};
2150
+ `, ea = n.div`
2151
+ display: flex;
2152
+ flex-direction: column;
2153
+ width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
2154
+ `, ta = n.div`
2155
+ display: flex;
2156
+ width: 100%;
2157
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
2158
+ `, oa = n.div`
2159
+ height: 100%;
2160
+ background: ${(e) => e.theme.colors.grey3};
2161
+ border-radius: ${o.sp2};
2162
+ width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
2163
+ margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
2164
+ margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
2165
+ visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
2166
+ margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
2167
+ margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
2168
+ `, na = n.div`
2169
+ padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
2170
+ `, ra = {
2171
+ total: new go("largeMedium", "h6Medium")
2172
+ }, Z = {
2173
+ largeLabelWidth: new s(120, 120, 220),
2174
+ marginBottom: new s(r[5], r[4]),
2175
+ addBankAccountMarginBottom: new s(r[5], r[5]),
2176
+ marginTop: new s(r[0], 78),
2177
+ paymentToMarginTop: new s(0, r[4]),
2178
+ totalMarginBottom: new s(r[3], r[3]),
2179
+ rightMargin: new s(r[3], r[8]),
2180
+ leftMargin: new s(r[3], r[6]),
2181
+ paymentToMarginBottom: new s(12, r[3])
2182
+ }, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
2183
+ remiDetails: e,
2184
+ isUserAdmin: i,
2185
+ authParams: a,
2186
+ uploadInvoiceEndPoint: d,
2187
+ showSkipAutoFill: p,
2188
+ isReimbursementCommentingEnabled: v,
2189
+ isAutoFieldsExist: m,
2190
+ totalAmount: S,
2191
+ defaultCurrency: x,
2192
+ hasDuplicateLine: l,
2193
+ bankAccounts: C,
2194
+ fileRequiredLineIds: b,
2195
+ companyMileageConfigInfo: c,
2196
+ analytics: y,
2197
+ reimbursementId: $,
2198
+ currencyConversionStatus: O,
2199
+ setShowSkipAutoFill: T,
2200
+ setShowBankAccountPage: P,
2201
+ removeDuplicateReimbursementForLine: H,
2202
+ onReceiptsUpload: B,
2203
+ setCurrentLineIdForUpload: k,
2204
+ onDuplicateLineClick: M,
2205
+ setUploadedReceiptPayload: te,
2206
+ removeFileFromLine: ne,
2207
+ onReplaceClick: re,
2208
+ updateInvoiceUploadFetchState: Y,
2209
+ clearTentativeNameForLine: K,
2210
+ onDeleteBankAccount: F,
2211
+ uncategorizedAccounts: J,
2212
+ isSignedInUserReimbursementCreator: q,
2213
+ duplicateLineByLineId: L,
2214
+ showTotalAmountLoader: ce,
2215
+ scrollContainerRef: X
2216
+ }) => {
2217
+ const {
2218
+ control: V,
2219
+ formState: { errors: de }
2220
+ } = at(), { fields: _e, append: ue, remove: fe } = cr({
2221
+ name: So,
2222
+ control: V
2223
+ }), le = _e, Be = bt(null), Ae = (W) => {
2224
+ setTimeout(() => {
2225
+ fe(W);
2226
+ });
2227
+ }, { 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, Xe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Qe = Math.max(
2228
+ ...Object.keys(
2229
+ e.editRemiInitialDetails?.lineDetailSection ?? {}
2230
+ ).map((W) => Number(W)),
2231
+ 0
2232
+ ), Ze = () => {
2233
+ const W = le[le.length - 1], se = Nn(
2234
+ le.length,
2235
+ Number(W.lineId) > Qe ? String(Number(W.lineId) + 1) : String(Qe + 1),
2236
+ Re,
2237
+ Xe,
2238
+ Ke,
2239
+ x,
2240
+ e.allCurrencies,
2241
+ e.loggedInUserDepartmentId
2242
+ );
2243
+ setTimeout(() => {
2244
+ ue(se, { shouldFocus: !1 });
2245
+ }), k(Number(se.lineId)), T(!0), setTimeout(
2246
+ () => Wo(
2247
+ Be.current,
2248
+ X?.current
2249
+ ),
2250
+ 50
2251
+ );
2252
+ }, [ie, lt] = Q({}), pt = pn(
2253
+ (W) => {
2254
+ const se = ie[`L${W}`];
2255
+ se != null && Wo(se, X?.current);
2256
+ },
2257
+ [ie, X]
2258
+ ), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
2259
+ gn(
2260
+ e.reimbursementInfo.paymentDate.toDate(),
2261
+ [0, 6],
2262
+ e.achSameDayMaxDays
2263
+ ).toDateString()
2264
+ ) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
2265
+ return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
2266
+ le.map((W, se) => /* @__PURE__ */ t.jsx(
2267
+ zi,
2268
+ {
2269
+ removeDuplicateReimbursementForLine: H,
2270
+ onDuplicateLineClick: M,
2271
+ scrollToSection: pt,
2272
+ setRefByLineId: lt,
2273
+ duplicateLineByLineId: L,
2274
+ reimbursementId: $,
2275
+ remiUploadStatus: e.uploadStatus,
2276
+ uncategorizedAccounts: J,
2277
+ progressSectionObj: et,
2278
+ createDate: e.createTime,
2279
+ paymentDate: ht,
2280
+ scheduleDate: e.reimbursementInfo?.paymentDate,
2281
+ approvedDate: e.latestApprovedDate,
2282
+ isFirstOrLastListItem: le.length - 1 === se || se === 0,
2283
+ index: se,
2284
+ reimbursementSectionRef: Be,
2285
+ remiStage: me,
2286
+ remiStatus: Me,
2287
+ authParams: a,
2288
+ file: W.file,
2289
+ uploadInvoiceEndPoint: d,
2290
+ showSkipAutoFill: p,
2291
+ lineData: W,
2292
+ currencyConversionState: O[W.lineId],
2293
+ recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
2294
+ setCurrentLineIdForUpload: k,
2295
+ setUploadedReceiptPayload: te,
2296
+ onReplaceClick: re,
2297
+ onReceiptsUpload: B,
2298
+ removeFileFromLine: ne,
2299
+ isReimbursementCommentingEnabled: v,
2300
+ isAutoFieldsExist: m,
2301
+ reportTitle: he,
2302
+ accountList: He,
2303
+ classList: Fe,
2304
+ merchantList: Ke,
2305
+ autoFieldsByLineId: Ge,
2306
+ onRemoveReimbursement: Ae,
2307
+ onAddReimbursement: Ze,
2308
+ totalAmount: S,
2309
+ showTotalAmountLoader: ce,
2310
+ hasDuplicateLine: l,
2311
+ totalNumberOfLines: le.length,
2312
+ updateInvoiceUploadFetchState: Y,
2313
+ clearTentativeNameForLine: K,
2314
+ tentativeMerchantName: Le[W.lineId],
2315
+ companyMileageConfigInfo: c,
2316
+ defaultCurrency: x,
2317
+ setShowBankAccountPage: P,
2318
+ paymentTo: e.paymentTo,
2319
+ bankAccounts: ve,
2320
+ onDeleteBankAccount: F,
2321
+ analytics: y,
2322
+ fileRequiredLineIds: b,
2323
+ allCurrencies: e.allCurrencies,
2324
+ loggedInUserDepartmentId: e.loggedInUserDepartmentId,
2325
+ isAddReimbursementDisabled: pe,
2326
+ accountsHierarchyList: Re,
2327
+ classHierarchyList: Xe,
2328
+ isSignedInUserReimbursementCreator: q
2329
+ },
2330
+ W.lineId
2331
+ )),
2332
+ le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2333
+ /* @__PURE__ */ t.jsxs(to, { children: [
2334
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2335
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
2336
+ /* @__PURE__ */ t.jsx(ua, { children: nt.total }),
2337
+ ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
2338
+ vt,
2339
+ {
2340
+ size: "Standard",
2341
+ start: !0,
2342
+ style: { display: "flex" }
2343
+ }
2344
+ ) }) }) : /* @__PURE__ */ t.jsx(
2345
+ $n,
2346
+ {
2347
+ amount: hn(
2348
+ S,
2349
+ Ao.currencyCode,
2350
+ Ao.currencySymbol
2351
+ ),
2352
+ integerStyles: Ft.h6Regular.cssObject,
2353
+ decimalStyles: Ft.standardRegular.cssObject
2354
+ }
2355
+ )
2356
+ ] }) })
2357
+ ] }),
2358
+ /* @__PURE__ */ t.jsxs(to, { children: [
2359
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2360
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
2361
+ ga,
2362
+ {
2363
+ windowSize: h,
2364
+ onClick: () => {
2365
+ pe === !1 && Ze();
2366
+ },
2367
+ isDisabled: pe,
2368
+ "data-testid": U("add-reimbursement-container"),
2369
+ children: [
2370
+ /* @__PURE__ */ t.jsx(Ko, {}),
2371
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
2372
+ ]
2373
+ }
2374
+ ) })
2375
+ ] }),
2376
+ /* @__PURE__ */ t.jsxs(to, { children: [
2377
+ h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2378
+ q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
2379
+ /* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
2380
+ /* @__PURE__ */ t.jsx(
2381
+ sa,
2382
+ {
2383
+ windowSize: h,
2384
+ shouldDisplay: ve.length > 0,
2385
+ children: /* @__PURE__ */ t.jsx(
2386
+ Sn,
2387
+ {
2388
+ label: {
2389
+ label: nt.yourBankAccount,
2390
+ width: Ce
2391
+ },
2392
+ style: {
2393
+ width: "auto"
2394
+ },
2395
+ singleSelectField: {
2396
+ singleSelect: {
2397
+ name: wt,
2398
+ placeholder: rt(
2399
+ nt.yourBankAccount
2400
+ ),
2401
+ showValueEyeIcon: !pe,
2402
+ menuPlacement: "top",
2403
+ maxMenuHeight: 308,
2404
+ showEyeIconOnSelect: !1,
2405
+ onDelete: F,
2406
+ getTooltipInfo: (W) => Rn(ve, W),
2407
+ onClickCreateBankAccount: () => P(!0),
2408
+ getLabelForId: (W) => Fn(ve, W),
2409
+ isOptionRemovable: !1,
2410
+ showDeleteIcon: !0,
2411
+ showAddBankAccountOption: !0,
2412
+ isDisabled: pe ? "readonly" : void 0,
2413
+ showTickMark: !1,
2414
+ alwaysShowEyeTooltip: !0
2415
+ },
2416
+ defaultValue: {
2417
+ selectedOption: e.paymentTo,
2418
+ allOptions: Je
2419
+ },
2420
+ registerOptions: {
2421
+ required: !0,
2422
+ validate: (W) => !!W.selectedOption
2423
+ }
2424
+ },
2425
+ isFunctional: !0
2426
+ }
2427
+ )
2428
+ }
2429
+ ),
2430
+ /* @__PURE__ */ t.jsxs(
2431
+ ya,
2432
+ {
2433
+ shouldDisplay: ve.length === 0,
2434
+ windowSize: h,
2435
+ onClick: () => {
2436
+ pe === !1 && P(!0);
2437
+ },
2438
+ hasError: Pe(de, wt),
2439
+ isDisabled: pe,
2440
+ "data-testid": U(
2441
+ "remi-add-bank-account-container"
2442
+ ),
2443
+ children: [
2444
+ /* @__PURE__ */ t.jsx(Ko, {}),
2445
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
2446
+ ]
2447
+ }
2448
+ )
2449
+ ] }) : null
2450
+ ] })
2451
+ ] })
2452
+ ] });
2453
+ }, Nn = (e, i, a, d, p, v, m, S) => {
2454
+ const x = aa(
2455
+ a,
2456
+ d,
2457
+ p,
2458
+ v,
2459
+ m,
2460
+ S
2461
+ );
2462
+ return {
2463
+ lineIndex: e,
2464
+ lineId: i,
2465
+ reimbursementType: nt.outOfPocketKey,
2466
+ file: void 0,
2467
+ outOfPocket: x,
2468
+ mileage: la(
2469
+ d,
2470
+ v,
2471
+ S
2472
+ )
2473
+ };
2474
+ }, aa = (e, i, a, d, p, v) => ({
2475
+ transactionDate: void 0,
2476
+ class: {
2477
+ allOptions: Ue(
2478
+ Ye(i, [])
2479
+ ),
2480
+ selectedOption: v
2481
+ },
2482
+ account: {
2483
+ allOptions: Ue(
2484
+ Et(e, [])
2485
+ ),
2486
+ selectedOption: void 0
2487
+ },
2488
+ amount: {
2489
+ amount: 0,
2490
+ currencyCode: d.currencyCode,
2491
+ currencySymbol: d.currencySymbol,
2492
+ currency: {
2493
+ allOptions: p.map((m) => ({
2494
+ label: `${m.currencyCode} - ${m.currency}`,
2495
+ value: m.currencyCode,
2496
+ countryCode: bo(
2497
+ m.countryCode
2498
+ )
2499
+ })),
2500
+ selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
2501
+ }
2502
+ },
2503
+ memo: void 0,
2504
+ merchant: {
2505
+ allOptions: a.map((m) => m.id).filter((m) => !!m),
2506
+ selectedOption: void 0
2507
+ },
2508
+ recommendations: [],
2509
+ isCategoryUpdateSelected: !1,
2510
+ isCategoryFirstTimeAutofilled: !1,
2511
+ isRetainedCategorySelected: !1
2512
+ }), la = (e, i, a) => ({
2513
+ transactionDate: void 0,
2514
+ class: {
2515
+ allOptions: Ue(
2516
+ Ye(e, [])
2517
+ ),
2518
+ selectedOption: a
2519
+ },
2520
+ distanceInMiles: void 0,
2521
+ amount: {
2522
+ amount: 0,
2523
+ currencyCode: i.currencyCode,
2524
+ currencySymbol: i.currencySymbol
2525
+ },
2526
+ memo: void 0
2527
+ }), sa = n.div`
2528
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2529
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2530
+ margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2531
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2532
+ border-radius: ${o.sp2};
2533
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2534
+ display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
2535
+ `, Zt = n.div`
2536
+ width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
2537
+ `, eo = n.div`
2538
+ width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
2539
+ `, ca = n.div`
2540
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
2541
+ flex-direction: column;
2542
+ margin-top: ${(e) => Z.marginTop.valuePx(e.windowSize)};
2543
+ `, da = n.div`
2544
+ padding: ${o.sp3};
2545
+ display: flex;
2546
+ align-items: center;
2547
+ justify-content: space-between;
2548
+ background-color: ${(e) => e.theme.colors.grey3};
2549
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2550
+ border-radius: ${o.sp2};
2551
+ color: ${(e) => e.theme.colors.hero};
2552
+ margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2553
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2554
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2555
+ margin-bottom: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2556
+ `, ua = n(vn)`
2557
+ display: flex;
2558
+ width: 176px;
2559
+ color: ${(e) => e.theme.colors.primary};
2560
+ `, ma = n(Vt)`
2561
+ color: ${(e) => e.theme.colors.primary};
2562
+ margin-top: ${(e) => Z.paymentToMarginTop.valuePx(e.windowSize)};
2563
+ margin-bottom: ${(e) => Z.paymentToMarginBottom.valuePx(e.windowSize)};
2564
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2565
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2566
+ `, pa = n(Cn)`
2567
+ display: flex;
2568
+ width: calc(100% - 176px);
2569
+ justify-content: flex-end;
2570
+ color: ${(e) => e.theme.colors.primary};
2571
+ ${(e) => `${ra.total.style(e.windowSize)}`};
2572
+ `, ha = n.div`
2573
+ padding-right: ${o.sp3};
2574
+ height: 30px;
2575
+ display: flex;
2576
+ justify-content: flex-end;
2577
+ `, ga = n.div`
2578
+ padding: ${o.sp3};
2579
+ display: flex;
2580
+ align-items: center;
2581
+ justify-content: center;
2582
+ border: 1px solid
2583
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2584
+ border-radius: ${o.sp2};
2585
+
2586
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2587
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2588
+ &:hover {
2589
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2590
+ border: 1px solid
2591
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2592
+ }
2593
+ margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2594
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2595
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2596
+ margin-bottom: ${(e) => Z.marginBottom.valuePx(e.windowSize)};
2597
+ `, ya = n.div`
2598
+ padding: ${o.sp3};
2599
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2600
+ align-items: center;
2601
+ justify-content: center;
2602
+ border: 1px solid
2603
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2604
+ border-radius: ${o.sp2};
2605
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2606
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2607
+ &:hover {
2608
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2609
+ border: 1px solid
2610
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2611
+ }
2612
+ margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2613
+ margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2614
+ margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2615
+ `, Ho = n(_t)`
2616
+ color: inherit;
2617
+ `, Ko = n(Tn)`
2618
+ margin-right: ${o.sp2};
2619
+ width: ${o.sp3};
2620
+ height: ${o.sp3};
2621
+ `, to = n.div`
2622
+ display: flex;
2623
+ width: 100%;
2624
+ `, Ve = {
2625
+ buttonWidth: new s(140, 140),
2626
+ paddingLeft: new s(r[3], r[6]),
2627
+ paddingRight: new s(r[3], r[8]),
2628
+ marginbottom: new s(r[4], r[5]),
2629
+ subTitleMarginbottom: new s(r[2], r[3]),
2630
+ orSeperatorTopBottomMargin: new s(r[6], 44),
2631
+ iconWidthHeight: new s(20, r[4])
2632
+ }, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
2633
+ [Rt]: {
2634
+ bankRoutingNumber: e?.bankRoutingNumber,
2635
+ bankName: e?.bankName,
2636
+ bankAccountNumber: e?.bankAccountNumber,
2637
+ confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
2638
+ bankAccountName: e?.bankAccountName
2639
+ }
2640
+ }), Yo = (e) => `${e}_form`, xa = ({
2641
+ bankAccountCreationState: e,
2642
+ setShowBankAccountPage: i,
2643
+ plaidConnectionDetails: a,
2644
+ onFetchLinkTokenClick: d,
2645
+ onEstablishConnectionClick: p,
2646
+ bankAccountToCreate: v,
2647
+ fetchBankNameByRoutingStatus: m,
2648
+ isDisabled: S,
2649
+ onSaveHandler: x,
2650
+ onUserBankDetailsUpdated: l,
2651
+ onFetchBankName: C,
2652
+ onBackClick: b
2653
+ }) => {
2654
+ const c = $t(), y = ze(), $ = un({
2655
+ mode: "onBlur",
2656
+ reValidateMode: "onChange",
2657
+ defaultValues: xt(
2658
+ () => fa(v),
2659
+ [v]
2660
+ )
2661
+ }), O = pn(
2662
+ (K) => {
2663
+ p?.(K), b();
2664
+ },
2665
+ [b, p]
2666
+ ), T = a.link_account_no_microdeposit, { open: P } = Hr({
2667
+ token: T.linkToken ?? null,
2668
+ onSuccess: O
2669
+ });
2670
+ ye(() => {
2671
+ (it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
2672
+ }, []);
2673
+ const [H, B] = Q(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
2674
+ onOkClick: () => {
2675
+ B(!1), $.reset(), b();
2676
+ },
2677
+ onCancelClick: () => {
2678
+ B(!1);
2679
+ }
2680
+ }, ne = async (K, F) => {
2681
+ const J = F[Rt].bankRoutingNumber;
2682
+ l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && Tr.test(J) === !0 && C?.(J);
2683
+ };
2684
+ ye(() => {
2685
+ const K = $.watch((F, { name: J }) => {
2686
+ J != null && F != null && dr(() => ne(J, F));
2687
+ });
2688
+ return () => {
2689
+ K.unsubscribe();
2690
+ };
2691
+ }), ye(() => {
2692
+ e?.fetchState === "Completed" && b();
2693
+ }, [
2694
+ e?.fetchState,
2695
+ b,
2696
+ i
2697
+ ]);
2698
+ const re = $.handleSubmit((K) => {
2699
+ m.fetchState !== "In-Progress" && x();
2700
+ }), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
2701
+ return /* @__PURE__ */ t.jsxs(ba, { children: [
2702
+ /* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
2703
+ H === !0 ? /* @__PURE__ */ t.jsx(
2704
+ wo,
2705
+ {
2706
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
2707
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
2708
+ primaryButtonText: k.buttons.delete,
2709
+ secondaryButtonText: k.buttons.cancel,
2710
+ action: te
2711
+ }
2712
+ ) : null,
2713
+ /* @__PURE__ */ t.jsx(
2714
+ Gr,
2715
+ {
2716
+ header: k.addBankAccount,
2717
+ isDirty: $.formState.isDirty,
2718
+ onBackClick: b,
2719
+ setShowConfirmationPopup: B
2720
+ }
2721
+ ),
2722
+ /* @__PURE__ */ t.jsx(wa, {}),
2723
+ /* @__PURE__ */ t.jsxs(ja, { size: y, children: [
2724
+ /* @__PURE__ */ t.jsx(
2725
+ vr,
2726
+ {
2727
+ onClick: () => {
2728
+ $.reset(), P();
2729
+ },
2730
+ title: k.connectYourBank,
2731
+ subTitle: k.loginToBank,
2732
+ header: k.setupAchPayments,
2733
+ icon: {
2734
+ element: /* @__PURE__ */ t.jsx(
2735
+ Cr,
2736
+ {
2737
+ width: Ve.iconWidthHeight.valuePx(y),
2738
+ height: Ve.iconWidthHeight.valuePx(y)
2739
+ }
2740
+ ),
2741
+ color: Y
2742
+ },
2743
+ style: {
2744
+ width: "unset",
2745
+ rowGap: y === "small" ? o.sp2 : void 0
2746
+ }
2747
+ }
2748
+ ),
2749
+ /* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
2750
+ /* @__PURE__ */ t.jsx(Sa, {}),
2751
+ /* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
2752
+ ] }),
2753
+ /* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
2754
+ ] }),
2755
+ /* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
2756
+ e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
2757
+ Yr,
2758
+ {
2759
+ warningText: k.accountExistWarning
2760
+ }
2761
+ ) : null,
2762
+ /* @__PURE__ */ t.jsx(
2763
+ Kr,
2764
+ {
2765
+ bankAccountToCreate: v,
2766
+ fetchBankNameByRoutingStatus: m,
2767
+ sectionId: Rt
2768
+ }
2769
+ )
2770
+ ] }) }) })
2771
+ ] }),
2772
+ /* @__PURE__ */ t.jsx(
2773
+ In,
2774
+ {
2775
+ formId: Yo(Go),
2776
+ primaryBtn: {
2777
+ label: k.saveAccount,
2778
+ isLoading: e.fetchState === "In-Progress",
2779
+ style: { width: Ve.buttonWidth.value(y) },
2780
+ isDisabled: S != null
2781
+ },
2782
+ cancelBtn: {
2783
+ label: M.cancel,
2784
+ style: { width: Ve.buttonWidth.value(y) },
2785
+ shouldResetOnCancel: !1,
2786
+ onClick: () => {
2787
+ $.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
2788
+ }
2789
+ }
2790
+ }
2791
+ )
2792
+ ] });
2793
+ }, ba = n.div`
2794
+ display: flex;
2795
+ flex-direction: column;
2796
+ width: 100%;
2797
+ height: 100%;
2798
+ `, wa = n.div`
2799
+ margin: ${o.sp2} 0;
2800
+ position: relative;
2801
+ `, $a = n.div`
2802
+ margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
2803
+ position: relative;
2804
+ `, Sa = n.div`
2805
+ background: ${(e) => e.theme.colors.grey2};
2806
+ height: 1px;
2807
+ `, va = n(kr)`
2808
+ color: ${(e) => e.theme.colors.primary};
2809
+ margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
2810
+ `, Ca = n.div`
2811
+ display: flex;
2812
+ justify-content: center;
2813
+ `, Ta = n(yo)`
2814
+ background: ${(e) => e.theme.colors.background};
2815
+ border: 1px solid ${(e) => e.theme.colors.grey2};
2816
+ border-radius: ${o.sp5};
2817
+ width: 43px;
2818
+ height: 25px;
2819
+ display: flex;
2820
+ align-items: center;
2821
+ justify-content: center;
2822
+ color: ${(e) => e.theme.colors.grey1};
2823
+ top: -11px;
2824
+ position: absolute;
2825
+ `, ka = n.div`
2826
+ display: flex;
2827
+ flex-direction: column;
2828
+ flex-grow: 1;
2829
+ `, ja = n.div`
2830
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2831
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2832
+ `, Ia = n.div`
2833
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2834
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2835
+ padding-bottom: ${o.sp3};
2836
+ `, Oe = {
2837
+ containerWidth: new s(343, 544),
2838
+ confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
2839
+ confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
2840
+ submitButtonWidth: new s(145, 156),
2841
+ cancelButtonWidth: new s(121, 121),
2842
+ errorLineItemGap: new s(r[2], 12),
2843
+ styledCloseIconRight: new s(r[3], r[8])
2844
+ }, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Xo = ({ fetchState: e }) => {
2845
+ switch (e) {
2846
+ case "Not-Started":
2847
+ return /* @__PURE__ */ t.jsx(Zo, {});
2848
+ case "In-Progress":
2849
+ return /* @__PURE__ */ t.jsx(
2850
+ vt,
2851
+ {
2852
+ size: "Small",
2853
+ start: !0,
2854
+ style: {
2855
+ alignItems: "center",
2856
+ display: "flex"
2857
+ }
2858
+ }
2859
+ );
2860
+ case "Completed":
2861
+ return /* @__PURE__ */ t.jsx(Wn, {});
2862
+ default:
2863
+ return /* @__PURE__ */ t.jsx(Zo, {});
2864
+ }
2865
+ }, Oa = (e) => {
2866
+ switch (e) {
2867
+ case "Not-Started":
2868
+ return be.detectDuplicates;
2869
+ case "In-Progress":
2870
+ return be.detectingDuplicates;
2871
+ case "Completed":
2872
+ return be.noDuplicatesFound;
2873
+ default:
2874
+ return be.detectDuplicates;
2875
+ }
2876
+ }, Pa = ({
2877
+ submitFetchState: e,
2878
+ duplicateReimbursementStatus: i,
2879
+ hasDuplicateLine: a,
2880
+ numberOfDuplicateLines: d,
2881
+ setShowDuplicatePopup: p,
2882
+ analytics: v,
2883
+ reimbursementId: m,
2884
+ submitReport: S,
2885
+ fetchDuplicateReimbursement: x,
2886
+ clearDuplicateReimbursementDetail: l,
2887
+ clearRemiSaveStatus: C
2888
+ }) => {
2889
+ const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
2890
+ i
2891
+ );
2892
+ It.useEffect(() => {
2893
+ setTimeout(() => {
2894
+ c && (y(!1), i === "Not-Started" && x());
2895
+ }, 2e3);
2896
+ }, [
2897
+ i,
2898
+ x,
2899
+ c
2900
+ ]), It.useEffect(() => {
2901
+ $ === "In-Progress" && e === "Completed" && (l(), p(!1));
2902
+ }, [
2903
+ e,
2904
+ $,
2905
+ p,
2906
+ l
2907
+ ]), It.useEffect(() => {
2908
+ O === "In-Progress" && i === "Completed" && !a && S();
2909
+ }, [
2910
+ O,
2911
+ i,
2912
+ a,
2913
+ S
2914
+ ]);
2915
+ const T = i === "Error" || e === "Error";
2916
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2917
+ T ? (
2918
+ //onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
2919
+ /* @__PURE__ */ t.jsx(Ba, { size: b })
2920
+ ) : null,
2921
+ /* @__PURE__ */ t.jsx(
2922
+ wo,
2923
+ {
2924
+ action: {
2925
+ onOkClick: () => {
2926
+ T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
2927
+ d,
2928
+ m
2929
+ ), p(!1), jr());
2930
+ },
2931
+ onCancelClick: () => {
2932
+ T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
2933
+ d,
2934
+ m
2935
+ ), S());
2936
+ }
2937
+ },
2938
+ shouldClickAway: T,
2939
+ isSecondaryLoading: e === "In-Progress",
2940
+ secondaryButtonVariant: "secondary",
2941
+ primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
2942
+ secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
2943
+ primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2944
+ secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2945
+ descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
2946
+ Aa,
2947
+ {
2948
+ hasDuplicate: a,
2949
+ duplicateReimbursementStatus: i,
2950
+ children: [
2951
+ /* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
2952
+ c ? /* @__PURE__ */ t.jsx(
2953
+ vt,
2954
+ {
2955
+ size: "Small",
2956
+ start: !0,
2957
+ style: {
2958
+ alignItems: "center",
2959
+ display: "flex"
2960
+ }
2961
+ }
2962
+ ) : /* @__PURE__ */ t.jsx(Wn, {}),
2963
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
2964
+ ] }),
2965
+ a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2966
+ /* @__PURE__ */ t.jsx(Qo, {}),
2967
+ /* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
2968
+ ] }) : /* @__PURE__ */ t.jsxs(
2969
+ no,
2970
+ {
2971
+ isDisabled: i === "Not-Started",
2972
+ isSuccess: i === "Completed" && d === 0,
2973
+ children: [
2974
+ /* @__PURE__ */ t.jsx(Xo, { fetchState: i }),
2975
+ /* @__PURE__ */ t.jsx(
2976
+ oo,
2977
+ {
2978
+ isDisabled: i === "Not-Started",
2979
+ children: Oa(i)
2980
+ }
2981
+ )
2982
+ ]
2983
+ }
2984
+ ),
2985
+ e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2986
+ /* @__PURE__ */ t.jsx(Qo, {}),
2987
+ /* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
2988
+ ] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
2989
+ no,
2990
+ {
2991
+ isDisabled: e === "Not-Started",
2992
+ isSuccess: e === "Completed",
2993
+ children: [
2994
+ /* @__PURE__ */ t.jsx(Xo, { fetchState: e }),
2995
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
2996
+ ]
2997
+ }
2998
+ )
2999
+ ]
3000
+ }
3001
+ ) }),
3002
+ titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
3003
+ showFooter: a || T,
3004
+ containerStyle: {
3005
+ width: Oe.containerWidth.value(b),
3006
+ maxWidth: "unset"
3007
+ }
3008
+ }
3009
+ )
3010
+ ] });
3011
+ }, Ba = n(On)`
3012
+ width: ${o.sp4};
3013
+ height: ${o.sp4};
3014
+ color: ${(e) => e.theme.colors.hero};
3015
+ position: fixed;
3016
+ top: 19px;
3017
+ right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
3018
+ z-index: 11;
3019
+ cursor: pointer;
3020
+ &:hover {
3021
+ color: ${(e) => e.theme.colors.primary};
3022
+ }
3023
+ `, Qo = n(Or)`
3024
+ width: ${o.sp4};
3025
+ height: ${o.sp4};
3026
+ min-width: ${o.sp4};
3027
+ color: ${I.brandColorGoldDark};
3028
+ `, Zo = n(Jr)`
3029
+ width: ${o.sp3};
3030
+ height: ${o.sp3};
3031
+ min-width: ${o.sp3};
3032
+ color: ${(e) => e.theme.colors.grey3};
3033
+ `, oo = n.div`
3034
+ color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
3035
+ text-align: left;
3036
+ `, en = n.div`
3037
+ color: ${I.brandColorGoldDark};
3038
+ `, no = n.div`
3039
+ display: flex;
3040
+ align-items: center;
3041
+ gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
3042
+ border: 1px solid
3043
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
3044
+ padding: ${o.sp3};
3045
+ border-radius: ${o.sp2};
3046
+ `, Aa = n.div`
3047
+ display: flex;
3048
+ flex-direction: column;
3049
+ gap: ${o.sp3};
3050
+ margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
3051
+ `, tn = n.div`
3052
+ display: flex;
3053
+ align-items: center;
3054
+ gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
3055
+ border: 1px solid ${(e) => e.theme.colors.brandColorGold};
3056
+ background-color: ${I.alertLight};
3057
+ padding: ${o.sp3};
3058
+ border-radius: ${o.sp2};
3059
+ text-align: left;
3060
+ `, La = n($o)`
3061
+ margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
3062
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3063
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3064
+ color: ${(e) => e.theme.colors.primary};
3065
+ word-break: break-word;
3066
+ width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
3067
+ `, Ma = n(xn)`
3068
+ color: ${(e) => e.theme.colors.hero};
3069
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3070
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3071
+ margin-bottom: ${o.sp5};
3072
+ margin-top: ${o.sp4};
3073
+ white-space: pre-line;
3074
+ width: -webkit-fill-available;
3075
+ `, Wn = n(Ir)`
3076
+ width: ${o.sp4};
3077
+ height: ${o.sp4};
3078
+ min-width: ${o.sp4};
3079
+ color: ${I.success};
3080
+ `, ee = {
3081
+ rightMargin: new s(r[3], r[8]),
3082
+ leftMargin: new s(r[3], r[6]),
3083
+ bottomMargin: new s(56, 56),
3084
+ closeMarginTop: new s(0, 19),
3085
+ closeMarginRight: new s(r[3], r[8]),
3086
+ rightSectionWidth: new s(100, 58),
3087
+ leftSectionWidth: new s(100, 42),
3088
+ footerButtonWidth: new s(120, 165),
3089
+ right: new s(r[3], r[0]),
3090
+ actionsContainerRight: new s(r[0], r[6]),
3091
+ otherActionsContainerBottom: new s(58, 44),
3092
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
3093
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
3094
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
3095
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
3096
+ navBarWidth: new s(100, 58)
3097
+ }, {
3098
+ spendManagement: {
3099
+ reimbursement: { reimbursementDetail: f, bulkActions: on }
3100
+ },
3101
+ common: {
3102
+ currency: { currencyCode: Ee, currencySymbol: Lt },
3103
+ texts: { comments: Ra },
3104
+ strings: { empty: za }
3105
+ },
3106
+ collaboration: {
3107
+ threads: {
3108
+ placeholder: { addANewComment: Fa, replyAComment: Na },
3109
+ tooltip: { resolveComment: Wa, unResolveComment: Ea }
3110
+ }
3111
+ },
3112
+ dateFormat: nn
3113
+ } = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
3114
+ const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
3115
+ return {
3116
+ lineIndex: v,
3117
+ lineId: e?.lineId ?? String(v + 1),
3118
+ reimbursementType: e?.type ?? f.outOfPocketKey,
3119
+ file: e?.file,
3120
+ homeCurrencyConversions: {
3121
+ amount: e?.homeCurrencyConversions?.amount ?? 0,
3122
+ currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
3123
+ currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
3124
+ },
3125
+ outOfPocket: {
3126
+ recommendedAccount: l.recommendedAccount,
3127
+ //account to show in update to checkbox
3128
+ isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
3129
+ //update to checkbox is ticked
3130
+ isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
3131
+ retainedAccount: l.retainedAccount,
3132
+ //account to show in retain checkbox
3133
+ isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
3134
+ //retain checkbox is selected
3135
+ recommendations: c ?? [],
3136
+ transactionDate: l?.transactionDate?.toDate() ?? void 0,
3137
+ class: {
3138
+ allOptions: Ue(
3139
+ Ye(a, [])
3140
+ ),
3141
+ selectedOption: l?.lineDetail?.class?.classId ?? x
3142
+ },
3143
+ account: {
3144
+ allOptions: Ue(
3145
+ Et(i, c)
3146
+ ),
3147
+ selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
3148
+ },
3149
+ amount: {
3150
+ amount: l?.amount ?? 0,
3151
+ currencyCode: l?.currencyCode ?? m.currencyCode,
3152
+ currencySymbol: l?.currencySymbol ?? m.currencySymbol,
3153
+ currency: {
3154
+ allOptions: S.map((y) => ({
3155
+ label: `${y.currencyCode} - ${y.currency}`,
3156
+ value: y.currencyCode,
3157
+ countryCode: bo(
3158
+ y.countryCode
3159
+ )
3160
+ })),
3161
+ selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
3162
+ }
3163
+ },
3164
+ memo: l?.description ?? void 0,
3165
+ merchant: {
3166
+ allOptions: d.map((y) => y.id).filter((y) => !!y),
3167
+ selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
3168
+ }
3169
+ },
3170
+ mileage: {
3171
+ transactionDate: C?.transactionDate?.toDate(),
3172
+ class: {
3173
+ allOptions: Ue(
3174
+ Ye(a, [])
3175
+ ),
3176
+ selectedOption: C?.lineDetail?.class?.classId
3177
+ },
3178
+ distanceInMiles: C?.distanceMileage?.value,
3179
+ amount: {
3180
+ amount: C?.amount ?? 0,
3181
+ currencyCode: C?.currencyCode ?? m.currencyCode,
3182
+ currencySymbol: C?.currencySymbol ?? m.currencySymbol
3183
+ },
3184
+ memo: C?.description
3185
+ }
3186
+ };
3187
+ }, ro = (e, i, a) => {
3188
+ const d = [];
3189
+ return Object.values(e.lineDetailSection).forEach(
3190
+ (p, v) => {
3191
+ p?.lineId != null && d.push(
3192
+ Va(
3193
+ p,
3194
+ e.accountsHierarchyList,
3195
+ e.classHierarchyList,
3196
+ e.merchantList.merchants,
3197
+ e.tentativeMerchantNameByLineId,
3198
+ v,
3199
+ i,
3200
+ e.allCurrencies,
3201
+ e.loggedInUserDepartmentId
3202
+ )
3203
+ );
3204
+ }
3205
+ ), d.length === 0 && d.push(
3206
+ Nn(
3207
+ 0,
3208
+ "1",
3209
+ e.accountsHierarchyList,
3210
+ e.classHierarchyList,
3211
+ e.merchantList.merchants,
3212
+ i,
3213
+ e.allCurrencies,
3214
+ e.loggedInUserDepartmentId
3215
+ )
3216
+ ), {
3217
+ [Nt]: {
3218
+ reportTitle: e.whatForSection.reportTitle
3219
+ },
3220
+ [So]: d,
3221
+ [wt]: {
3222
+ selectedOption: e.paymentTo,
3223
+ allOptions: a.map((p) => p.bankAccountId)
3224
+ }
3225
+ };
3226
+ }, io = (e, i) => {
3227
+ 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);
3228
+ return Object.values(e).reduce((d, p) => d + a(p), 0);
3229
+ }, ao = (e, i, a, d, p, v, m, S) => {
3230
+ const x = {};
3231
+ return e.lineInfo.forEach((l) => {
3232
+ const C = S.find(
3233
+ (O) => O.classId === l.mileage.class.selectedOption
3234
+ ), b = m.find(
3235
+ (O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
3236
+ ), c = S.find(
3237
+ (O) => O.classId === l.outOfPocket.class.selectedOption
3238
+ ), y = i.find(
3239
+ (O) => O.id === l.outOfPocket.merchant.selectedOption
3240
+ ), $ = v.find(
3241
+ (O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
3242
+ )?.currencySymbol;
3243
+ x[l.lineId] = {
3244
+ fileId: l.file?.fileId,
3245
+ lineId: l.lineId,
3246
+ type: l.reimbursementType,
3247
+ homeCurrencyConversions: l.homeCurrencyConversions ?? {
3248
+ amount: 0,
3249
+ currencyCode: "USD",
3250
+ currencySymbol: "$"
3251
+ },
3252
+ mileage: {
3253
+ description: l.mileage.memo ?? "",
3254
+ lineDetail: {
3255
+ class: C
3256
+ },
3257
+ transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
3258
+ amount: l.mileage.amount?.amount ?? 0,
3259
+ currencyCode: l.mileage.amount?.currencyCode ?? $,
3260
+ currencySymbol: l.mileage.amount?.currencySymbol ?? $,
3261
+ distanceMileage: {
3262
+ unit: "miles",
3263
+ value: l.mileage.distanceInMiles ?? 0
3264
+ }
3265
+ },
3266
+ outOfPocket: {
3267
+ description: l.outOfPocket.memo ?? "",
3268
+ lineDetail: {
3269
+ class: c,
3270
+ account: b
3271
+ },
3272
+ transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
3273
+ amount: l.outOfPocket.amount?.amount ?? 0,
3274
+ currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
3275
+ currencySymbol: $,
3276
+ merchant: l.outOfPocket.merchant.selectedOption != null ? {
3277
+ id: y?.id ?? "",
3278
+ name: y?.name ?? l.outOfPocket.merchant.selectedOption
3279
+ } : void 0,
3280
+ recommendations: l.outOfPocket.recommendations,
3281
+ recommendedAccount: l.outOfPocket.recommendedAccount,
3282
+ isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
3283
+ isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
3284
+ isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
3285
+ retainedAccount: l.outOfPocket.retainedAccount
3286
+ }
3287
+ };
3288
+ }), {
3289
+ whatForSection: {
3290
+ reportTitle: e.whatFor.reportTitle
3291
+ },
3292
+ updatesByLineId: x,
3293
+ totalAmount: {
3294
+ amount: d,
3295
+ ...a
3296
+ },
3297
+ currencyConversionStateByLineId: p,
3298
+ paymentTo: e.paymentTo.selectedOption
3299
+ };
3300
+ }, Nl = ({
3301
+ remiDetails: e,
3302
+ authParams: i,
3303
+ defaultCurrency: a,
3304
+ companyMileageConfigInfo: d,
3305
+ uploadInvoiceEndPoint: p,
3306
+ isReimbursementCommentingEnabled: v,
3307
+ isUserAdmin: m,
3308
+ analytics: S,
3309
+ reimbursementId: x,
3310
+ plaidConnectionDetails: l,
3311
+ bankAccountCreationState: C,
3312
+ bankNameByRouting: b,
3313
+ bankAccounts: c,
3314
+ isSignedInUserReimbursementCreator: y,
3315
+ uncategorizedAccounts: $,
3316
+ bankAccountToCreate: O,
3317
+ fetchBankNameByRoutingStatus: T,
3318
+ onUserBankDetailsUpdated: P,
3319
+ onFetchBankName: H,
3320
+ onSaveBankAccount: B,
3321
+ fetchDuplicateReimbursement: k,
3322
+ clearDuplicateReimbursementDetail: M,
3323
+ clearRemiSaveStatus: te,
3324
+ removeDuplicateReimbursementForLine: ne,
3325
+ onDuplicateLineClick: re,
3326
+ onExistingMerchantChange: Y,
3327
+ onNewMerchantChange: K,
3328
+ onReceiptsUpload: F,
3329
+ saveRemiDetails: J,
3330
+ submitRemiDetails: q,
3331
+ discardReimbursementDetailsFromLocalStore: L,
3332
+ onReimbursementDetailsChanged: ce,
3333
+ updateReimbursementType: X,
3334
+ onHomeCurrencyConversionUpdate: V,
3335
+ redirectToReimbursementListScreen: de,
3336
+ redirectToReimbursementDetailScreen: _e,
3337
+ deleteReimbursement: ue,
3338
+ removeFileFromLine: fe,
3339
+ onZeniLogoClick: le,
3340
+ onAmountChanged: Be,
3341
+ updateInvoiceUploadFetchState: Ae,
3342
+ clearTentativeNameForLine: Le,
3343
+ onAddNewRule: me,
3344
+ onFetchLinkTokenClick: Me,
3345
+ onEstablishConnectionClick: pe,
3346
+ deleteBankAccount: ve,
3347
+ onBackClickFromBankAccountPage: Je
3348
+ }) => {
3349
+ const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Xe, Fe] = Q(!1), [Ke, Ge] = Q(!1), [Qe, Ze] = Q("save"), [ie, lt] = Q(
3350
+ io(
3351
+ e.lineDetailSection,
3352
+ e.currencyConversionStatus
3353
+ )
3354
+ ), [pt, et] = Q(!1), [_, ht] = Q(
3355
+ null
3356
+ ), [W, se] = Q(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
3357
+ mode: "all",
3358
+ reValidateMode: "onChange",
3359
+ defaultValues: xt(
3360
+ () => ro(e, a, c),
3361
+ [e, a, c]
3362
+ ),
3363
+ values: xt(
3364
+ () => ro(e, a, c),
3365
+ [e, a, c]
3366
+ ),
3367
+ resetOptions: {
3368
+ keepErrors: !0
3369
+ },
3370
+ shouldFocusError: !0
3371
+ }), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
3372
+ const { lineInfo: u } = j, w = Number(g.split(".")[1]);
3373
+ if (g.includes("reportTitle") || g.includes("memo"))
3374
+ return;
3375
+ if (g.includes("reimbursementType")) {
3376
+ const z = u[w].mileage, E = u[w].outOfPocket;
3377
+ u[w] = {
3378
+ ...u[w],
3379
+ outOfPocket: {
3380
+ transactionDate: E.transactionDate ?? void 0,
3381
+ class: {
3382
+ allOptions: E.class.allOptions ?? Ue(
3383
+ Ye(e.classHierarchyList, [])
3384
+ ),
3385
+ selectedOption: E.class.selectedOption ?? void 0
3386
+ },
3387
+ account: {
3388
+ allOptions: E.account.allOptions ?? Ue(
3389
+ Et(e.accountsHierarchyList, [])
3390
+ ),
3391
+ selectedOption: E.account.selectedOption ?? void 0
3392
+ },
3393
+ amount: E.amount ?? {
3394
+ amount: 0,
3395
+ currencyCode: a.currencyCode,
3396
+ currencySymbol: a.currencySymbol,
3397
+ currency: {
3398
+ allOptions: e.allCurrencies.map((ke) => ({
3399
+ label: `${ke.currencyCode} - ${ke.currency}`,
3400
+ value: ke.currencyCode,
3401
+ countryCode: bo(
3402
+ ke.countryCode
3403
+ )
3404
+ })),
3405
+ selectedOption: a.currencyCode ?? Ee
3406
+ }
3407
+ },
3408
+ memo: E.memo ?? void 0,
3409
+ merchant: E.merchant ?? void 0,
3410
+ recommendations: E.recommendations ?? [],
3411
+ recommendedAccount: E.recommendedAccount ?? void 0,
3412
+ isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
3413
+ isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
3414
+ retainedAccount: E.retainedAccount ?? void 0,
3415
+ isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
3416
+ },
3417
+ mileage: {
3418
+ transactionDate: z.transactionDate ?? void 0,
3419
+ class: {
3420
+ allOptions: z.class.allOptions ?? Ue(
3421
+ Ye(e.classHierarchyList, [])
3422
+ ),
3423
+ selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
3424
+ },
3425
+ distanceInMiles: z.distanceInMiles,
3426
+ amount: {
3427
+ amount: z?.amount?.amount ?? 0,
3428
+ currencyCode: z?.amount?.currencyCode ?? Ee,
3429
+ currencySymbol: z?.amount?.currencySymbol ?? Lt
3430
+ },
3431
+ memo: z.memo ?? void 0
3432
+ }
3433
+ };
3434
+ } else if (g.includes("mileage.distanceInMiles")) {
3435
+ const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
3436
+ u[w].mileage = {
3437
+ ...u[w].mileage,
3438
+ amount: {
3439
+ amount: z != null ? z * E : 0,
3440
+ currencyCode: a.currencyCode,
3441
+ currencySymbol: a.currencySymbol
3442
+ }
3443
+ };
3444
+ } else if (g.includes("outOfPocket.amount") && u[w].lineId) {
3445
+ const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
3446
+ (ke) => ke.currencyCode === z?.currency.selectedOption
3447
+ )?.currencySymbol;
3448
+ if (z?.currencyCode !== z?.currency.selectedOption) {
3449
+ const ke = z?.currency?.allOptions || [];
3450
+ u[w].outOfPocket.amount = {
3451
+ currency: {
3452
+ allOptions: ke,
3453
+ selectedOption: z?.currency?.selectedOption
3454
+ },
3455
+ amount: u[w].outOfPocket?.amount?.amount ?? 0,
3456
+ currencyCode: z?.currency.selectedOption ?? Ee,
3457
+ currencySymbol: E ?? Lt
3458
+ };
3459
+ }
3460
+ if (z?.currency.selectedOption !== Ee)
3461
+ et(!0), Yn(u[w].lineId, Ee);
3462
+ else {
3463
+ const ke = {};
3464
+ u.forEach((Qt) => {
3465
+ ke[Qt.lineId] = {
3466
+ lineId: Qt.lineId,
3467
+ homeCurrencyConversions: Qt.homeCurrencyConversions
3468
+ };
3469
+ }), u[w].homeCurrencyConversions = {
3470
+ amount: z.amount ?? 0,
3471
+ currencyCode: z?.currency.selectedOption ?? Ee,
3472
+ currencySymbol: E ?? Lt
3473
+ };
3474
+ const jt = io(
3475
+ ke,
3476
+ e.currencyConversionStatus
3477
+ );
3478
+ ie !== jt && lt(jt);
3479
+ }
3480
+ } else if (g.includes("outOfPocket.isRetainedCategorySelected"))
3481
+ //retain checkbox is true
3482
+ u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
3483
+ else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
3484
+ if (
3485
+ //update to checkbox is true
3486
+ u[w].outOfPocket.isCategoryUpdateSelected === !0
3487
+ )
3488
+ u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
3489
+ else {
3490
+ const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
3491
+ u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
3492
+ }
3493
+ 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
3494
+ 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
3495
+ 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);
3496
+ const kt = ao(
3497
+ { ...j, lineInfo: u },
3498
+ e.merchantList.merchants,
3499
+ a,
3500
+ ie,
3501
+ e.currencyConversionStatus,
3502
+ e.allCurrencies,
3503
+ e.accountList.accounts,
3504
+ e.classList.classes
3505
+ );
3506
+ if (ce?.(kt), g.includes("outOfPocket.merchant")) {
3507
+ const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
3508
+ u[w].outOfPocket.merchant.allOptions.find(
3509
+ (jt) => jt === E
3510
+ ) != null ? Y(E, z) : K(E, z);
3511
+ }
3512
+ }, vo = xt(
3513
+ () => Bo((g, j) => Vn(g, j), 300),
3514
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3515
+ [
3516
+ //these needs to be added because these fetchState were coming as "In-Progress" because of debounce
3517
+ e.accountList.fetchState,
3518
+ e.classList.fetchState,
3519
+ e.merchantList.fetchState
3520
+ ]
3521
+ );
3522
+ ye(() => {
3523
+ const g = Te.watch((j, { name: u }) => {
3524
+ u != null && j != null && vo(u, j);
3525
+ });
3526
+ return () => {
3527
+ g.unsubscribe();
3528
+ };
3529
+ }, [vo, Te]), ye(() => {
3530
+ const g = pr(
3531
+ Object.values(e.currencyConversionStatus)
3532
+ ), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
3533
+ et(j);
3534
+ }, [e.currencyConversionStatus]), ye(() => {
3535
+ for (const j in e.currencyConversionStatus) {
3536
+ const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
3537
+ e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
3538
+ u?.homeCurrencyConversions,
3539
+ w.homeCurrencyConversions
3540
+ ) && V(
3541
+ {
3542
+ amount: u?.homeCurrencyConversions?.amount ?? 0,
3543
+ currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
3544
+ currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
3545
+ },
3546
+ j,
3547
+ x
3548
+ );
3549
+ }
3550
+ const g = io(
3551
+ e.lineDetailSection,
3552
+ e.currencyConversionStatus
3553
+ );
3554
+ ie !== g && lt(g);
3555
+ }, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
3556
+ (e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
3557
+ }, [
3558
+ e.saveStatus?.fetchState,
3559
+ e.deleteStatus.fetchState,
3560
+ x,
3561
+ L,
3562
+ de
3563
+ ]);
3564
+ const A = ze(), [Ne, gt] = Q(
3565
+ x == null
3566
+ ), [yt, _n] = Q(1), [Dn, Dt] = Q(!1), [qn, Un] = Q(""), [qt, Hn] = Q(null), [Kn, st] = Q(!1), [Gn, Co] = Q(!1), [Ut, Ht] = Q([]), [xe, Tt] = Q({
3567
+ title: "",
3568
+ description: "",
3569
+ primaryButtonText: "",
3570
+ secondaryButtonText: ""
3571
+ }), Yn = bt(
3572
+ Bo(
3573
+ (g, j) => Be(g, j),
3574
+ 500,
3575
+ {
3576
+ trailing: !0
3577
+ }
3578
+ )
3579
+ ).current;
3580
+ ye(() => {
3581
+ he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
3582
+ ro(e, a, c),
3583
+ { keepDefaultValues: !0 }
3584
+ ), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
3585
+ }, [
3586
+ he,
3587
+ e.uploadStatus,
3588
+ Te,
3589
+ e,
3590
+ Xe,
3591
+ Fe,
3592
+ Ne,
3593
+ a,
3594
+ c,
3595
+ S
3596
+ ]), ye(() => {
3597
+ e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
3598
+ }, [e.uploadStatus, Fe, Ne]);
3599
+ const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
3600
+ onOkClick: () => {
3601
+ if (st(!1), xe.primaryButtonText === f.buttons.discard)
3602
+ L(x), e.remiStage === "draft" ? de?.() : _e?.();
3603
+ else if (xe.primaryButtonText === f.buttons.delete)
3604
+ xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
3605
+ else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
3606
+ const g = Ut.filter(
3607
+ (j) => j !== yt.toString()
3608
+ );
3609
+ Ht(
3610
+ g
3611
+ ), F(qt, yt, !0);
3612
+ }
3613
+ },
3614
+ onCancelClick: () => {
3615
+ if (st(!1), xe.secondaryButtonText === f.buttons.no) {
3616
+ const g = Ut.filter(
3617
+ (j) => j !== yt.toString()
3618
+ );
3619
+ Ht(
3620
+ g
3621
+ ), F(
3622
+ qt,
3623
+ yt,
3624
+ !1
3625
+ );
3626
+ }
3627
+ }
3628
+ }, To = () => {
3629
+ R || Er(En) ? (Tt({
3630
+ title: f.discardTitle,
3631
+ description: f.discardDescription,
3632
+ primaryButtonText: f.buttons.discard,
3633
+ secondaryButtonText: f.buttons.cancel
3634
+ }), st(!0)) : (L(x), de?.());
3635
+ }, Xn = () => {
3636
+ Tt({
3637
+ title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
3638
+ description: f.deleteAlertDescription,
3639
+ primaryButtonText: f.buttons.delete,
3640
+ secondaryButtonText: f.buttons.cancel
3641
+ }), st(!0);
3642
+ }, Qn = (g) => {
3643
+ Un(g), Tt({
3644
+ title: f.deleteBankAccountTitle,
3645
+ description: f.deleteBankAccountDescription,
3646
+ primaryButtonText: f.buttons.delete,
3647
+ secondaryButtonText: f.buttons.cancel
3648
+ }), st(!0);
3649
+ }, Zn = () => {
3650
+ Tt({
3651
+ title: f.overwriteTitle,
3652
+ description: f.overwriteDescription,
3653
+ primaryButtonText: f.buttons.yes,
3654
+ secondaryButtonText: f.buttons.no
3655
+ }), st(!0);
3656
+ }, er = () => {
3657
+ let g = !0;
3658
+ const j = [];
3659
+ return Object.values(e.lineDetailSection).forEach((u, w) => {
3660
+ u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
3661
+ }), Ht(j), g;
3662
+ }, ko = () => {
3663
+ if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
3664
+ To();
3665
+ else {
3666
+ Ze("save");
3667
+ const g = Te.getValues(), j = ao(
3668
+ g,
3669
+ e.merchantList.merchants,
3670
+ a,
3671
+ ie,
3672
+ e.currencyConversionStatus,
3673
+ e.allCurrencies,
3674
+ e.accountList.accounts,
3675
+ e.classList.classes
3676
+ );
3677
+ ce?.(j);
3678
+ const u = j.whatForSection?.reportTitle;
3679
+ u != null && u.length > 0 ? J(
3680
+ e.remiStatus === "rejected" ? "pending_approval" : "draft"
3681
+ ) : Te.trigger(`${Nt}.reportTitle`, {
3682
+ shouldFocus: !0
3683
+ });
3684
+ }
3685
+ };
3686
+ let Gt = !1;
3687
+ Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
3688
+ g.length > 0 && (Gt = !0);
3689
+ });
3690
+ let jo = [];
3691
+ if (e.remiId == null) {
3692
+ const g = ie ?? 0;
3693
+ g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
3694
+ const u = j.criteria[0].range;
3695
+ if (u.max != null) {
3696
+ if (u.min.amount < g && u.max.amount >= g)
3697
+ return j;
3698
+ } else if (u.min.amount < g)
3699
+ return j;
3700
+ return null;
3701
+ }).map((j) => ({
3702
+ ...j,
3703
+ stepsWithStatus: j.steps.map((u) => ({
3704
+ ...u,
3705
+ actorsActivity: [],
3706
+ isOriginalApprovalStep: !0
3707
+ })),
3708
+ isRealTimeApprovalEnabled: !1
3709
+ })));
3710
+ }
3711
+ const tr = (g) => {
3712
+ const j = er();
3713
+ return Te.handleSubmit(() => {
3714
+ j && (Ze("submit"), S?.trackReimbursementSubmitReimbursement(
3715
+ e.createTime?.format(
3716
+ nn.analytics.MMMDashDDDashYYYYFormat
3717
+ ) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
3718
+ a.currencyCode,
3719
+ ie,
3720
+ x
3721
+ ), M(), Co(!0));
3722
+ })(g);
3723
+ }, or = () => {
3724
+ const g = Te.getValues(), j = ao(
3725
+ g,
3726
+ e.merchantList.merchants,
3727
+ a,
3728
+ ie,
3729
+ e.currencyConversionStatus,
3730
+ e.allCurrencies,
3731
+ e.accountList.accounts,
3732
+ e.classList.classes
3733
+ );
3734
+ ce?.(j), q();
3735
+ }, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
3736
+ gn(
3737
+ e.reimbursementInfo.paymentDate.toDate(),
3738
+ [0, 6],
3739
+ e.achSameDayMaxDays
3740
+ ).toDateString()
3741
+ ) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = Dr(
3742
+ e.duplicateLineByLineId
3743
+ ), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Xt } = ur(Pr), { threads: ft, isLoading: tt } = Br(
3744
+ {
3745
+ application: "dashboard",
3746
+ companyId: Re.currentTenant?.companyId,
3747
+ tab: "reimbursement",
3748
+ entityId: x,
3749
+ // Use remiId here
3750
+ isGlobalComment: !1
3751
+ },
3752
+ "both",
3753
+ !1
3754
+ );
3755
+ ye(() => {
3756
+ Jt?.threadId != null && ft.length > 0 && !tt && (Xt(Jt.threadId), Oo(null));
3757
+ }, [
3758
+ Jt,
3759
+ ft,
3760
+ tt,
3761
+ Xt,
3762
+ Oo
3763
+ ]);
3764
+ const lr = xt(() => x == null ? [] : ft.filter(
3765
+ (g) => g.resolved === !1 && !g.id.includes(Ar)
3766
+ ), [ft, x]).length, sr = (g, j) => {
3767
+ Xt(j);
3768
+ const u = g.entityType.split("."), w = parseInt(u[2]);
3769
+ if (isNaN(w)) {
3770
+ se(!1);
3771
+ return;
3772
+ }
3773
+ const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
3774
+ u.includes(f.mileageKey) && z === f.outOfPocketKey ? X(
3775
+ Lo(f.mileageKey),
3776
+ kt,
3777
+ x
3778
+ ) : u.includes(f.outOfPocketKey) && z === f.mileageKey && X(
3779
+ Lo(f.outOfPocketKey),
3780
+ kt,
3781
+ x
3782
+ ), se(!1);
3783
+ };
3784
+ return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
3785
+ Lr,
3786
+ {
3787
+ sharedItems: {
3788
+ sharedFunctions: void 0,
3789
+ sharedRef: { contentWrapperRef: Ce.current ?? null }
3790
+ },
3791
+ children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
3792
+ /* @__PURE__ */ t.jsx(
3793
+ "form",
3794
+ {
3795
+ id: an(rn),
3796
+ onSubmit: (g) => tr(g),
3797
+ children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
3798
+ Kn ? /* @__PURE__ */ t.jsx(
3799
+ wo,
3800
+ {
3801
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
3802
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
3803
+ primaryButtonText: xe.primaryButtonText,
3804
+ secondaryButtonText: xe.secondaryButtonText,
3805
+ action: Jn,
3806
+ proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
3807
+ isEditPopup: xe.title === f.deleteBankAccountTitle
3808
+ }
3809
+ ) : null,
3810
+ Gn ? /* @__PURE__ */ t.jsx(
3811
+ Pa,
3812
+ {
3813
+ reimbursementId: x,
3814
+ submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
3815
+ duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
3816
+ hasDuplicateLine: Yt,
3817
+ numberOfDuplicateLines: Io,
3818
+ setShowDuplicatePopup: Co,
3819
+ submitReport: or,
3820
+ fetchDuplicateReimbursement: k,
3821
+ clearDuplicateReimbursementDetail: M,
3822
+ clearRemiSaveStatus: te,
3823
+ analytics: S
3824
+ }
3825
+ ) : null,
3826
+ Xe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
3827
+ Ne ? /* @__PURE__ */ t.jsxs(
3828
+ sn,
3829
+ {
3830
+ windowSize: A,
3831
+ "data-testid": U("skip-autofill-section"),
3832
+ children: [
3833
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3834
+ /* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
3835
+ co,
3836
+ {
3837
+ partOfSkipAutoFill: !0,
3838
+ size: A,
3839
+ onClick: () => gt(!1),
3840
+ "data-testid": U(
3841
+ "close-invoice-upload"
3842
+ ),
3843
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3844
+ }
3845
+ ) }),
3846
+ /* @__PURE__ */ t.jsx(nl, { children: Kt })
3847
+ ] }) : null,
3848
+ /* @__PURE__ */ t.jsx(
3849
+ Pn,
3850
+ {
3851
+ showAutofill: Ne,
3852
+ analytics: S,
3853
+ onSkipAutofill: () => {
3854
+ S?.trackReimbursementSkipAutofill(), gt(!1);
3855
+ },
3856
+ uploadInvoiceEndPoint: p,
3857
+ authParams: i,
3858
+ style: {
3859
+ width: ee.leftSectionWidth.valuePercentage(A),
3860
+ boxSizing: "border-box",
3861
+ backgroundColor: A === "small" ? He.colors.grey4 : "unset",
3862
+ padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
3863
+ margin: A === "small" ? o.sp0 : void 0
3864
+ },
3865
+ onInvoiceUpload: (g) => F(
3866
+ g,
3867
+ yt,
3868
+ !0
3869
+ ),
3870
+ dropFilePlaceholder: {
3871
+ upload: f.dropReceipt.upload,
3872
+ single: f.dropReceipt.single,
3873
+ or: f.dropReceipt.or,
3874
+ multiple: f.dropReceipt.multiple,
3875
+ receipts: f.dropReceipt.receipts
3876
+ },
3877
+ updateInvoiceUploadFetchState: Ae,
3878
+ showInfoText: !1,
3879
+ allowMultiFiles: Ne,
3880
+ type: "reimbursement"
3881
+ }
3882
+ ),
3883
+ A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
3884
+ co,
3885
+ {
3886
+ partOfSkipAutoFill: !0,
3887
+ onClick: () => gt(!1),
3888
+ "data-testid": U(
3889
+ "close-invoice-upload"
3890
+ ),
3891
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3892
+ }
3893
+ ) }) : null
3894
+ ]
3895
+ }
3896
+ ) : null,
3897
+ /* @__PURE__ */ t.jsxs(
3898
+ pl,
3899
+ {
3900
+ windowSize: A,
3901
+ "data-testid": U(
3902
+ "edit-reimbursement-detail-page-nav-bar-container"
3903
+ ),
3904
+ children: [
3905
+ A !== "small" ? /* @__PURE__ */ t.jsx(
3906
+ Fo,
3907
+ {
3908
+ style: { width: "42%" },
3909
+ "data-testid": U(
3910
+ "edit-reimbursement-detail-page-left-nav-bar"
3911
+ ),
3912
+ title: "",
3913
+ leftSideComponent: /* @__PURE__ */ t.jsx(
3914
+ hl,
3915
+ {
3916
+ "data-testid": U(
3917
+ "zeni-logo-spend-management-reimbursement-detail-page"
3918
+ ),
3919
+ onClick: le
3920
+ }
3921
+ ),
3922
+ enableTitleOnScroll: !1,
3923
+ scrollableContent: h,
3924
+ backgroundColor: He.colors.background,
3925
+ keepBackgroundOnScroll: !0,
3926
+ source: "EditReimbursementDetailPage"
3927
+ }
3928
+ ) : null,
3929
+ A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
3930
+ /* @__PURE__ */ t.jsx(
3931
+ Fo,
3932
+ {
3933
+ style: { width: ee.navBarWidth.valuePercentage(A) },
3934
+ "data-testid": U(
3935
+ "edit-reimbursement-detail-page-right-nav-bar"
3936
+ ),
3937
+ source: "EditReimbursementDetailPage",
3938
+ title: Kt,
3939
+ leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
3940
+ rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
3941
+ v && x != null ? /* @__PURE__ */ t.jsxs(
3942
+ yl,
3943
+ {
3944
+ isDisabled: tt,
3945
+ "data-testid": U(
3946
+ "remi-comment-button"
3947
+ ),
3948
+ onClick: tt ? () => null : (g) => {
3949
+ g.preventDefault(), g.stopPropagation(), ht({
3950
+ roomId: Ct,
3951
+ companyId: Re.currentTenant?.companyId ?? "",
3952
+ companyName: Re.currentTenant?.companyName ?? "",
3953
+ entityType: "reimbursement.details",
3954
+ entityId: x
3955
+ }), se(!0), S?.trackCommentActivity(
3956
+ "reimbursement",
3957
+ // pageName
3958
+ "clicked",
3959
+ // activityType
3960
+ Re.currentTenant?.companyName ?? "",
3961
+ // tenantName
3962
+ Re.controllersList.controllers.map(
3963
+ (j) => Rr(j)
3964
+ ),
3965
+ // controllerName
3966
+ void 0,
3967
+ // status
3968
+ void 0,
3969
+ // createdBy
3970
+ "page icon"
3971
+ // source
3972
+ );
3973
+ },
3974
+ children: [
3975
+ /* @__PURE__ */ t.jsx(
3976
+ Mr,
3977
+ {
3978
+ count: tt ? void 0 : lr,
3979
+ isLoading: tt,
3980
+ style: { left: "12px" }
3981
+ }
3982
+ ),
3983
+ /* @__PURE__ */ t.jsx(fl, {})
3984
+ ]
3985
+ }
3986
+ ) : null,
3987
+ /* @__PURE__ */ t.jsx(
3988
+ co,
3989
+ {
3990
+ size: A,
3991
+ onClick: () => To(),
3992
+ "data-testid": U("close-nav-bar"),
3993
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
3994
+ }
3995
+ )
3996
+ ] }) : null,
3997
+ enableTitleOnScroll: A !== "small",
3998
+ scrollThreshold: 64,
3999
+ scrollableContent: h,
4000
+ backgroundColor: He.colors.grey4
4001
+ }
4002
+ )
4003
+ ]
4004
+ }
4005
+ ),
4006
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4007
+ /* @__PURE__ */ t.jsx(ml, { children: Kt }),
4008
+ /* @__PURE__ */ t.jsx(
4009
+ zr,
4010
+ {
4011
+ progressSectionObj: nr,
4012
+ createDate: e.createTime,
4013
+ paymentDate: ir,
4014
+ scheduleDate: e.reimbursementInfo?.paymentDate,
4015
+ approvedDate: e.latestApprovedDate,
4016
+ isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
4017
+ }
4018
+ ),
4019
+ Gt && /* @__PURE__ */ t.jsxs(al, { children: [
4020
+ /* @__PURE__ */ t.jsx(il, {}),
4021
+ /* @__PURE__ */ t.jsx(ll, { children: f.banner })
4022
+ ] }),
4023
+ e.isProcessing ? /* @__PURE__ */ t.jsx(
4024
+ wn,
4025
+ {
4026
+ variant: "warning",
4027
+ style: {
4028
+ margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
4029
+ },
4030
+ title: on.duplicateWarning.title,
4031
+ description: on.duplicateWarning.description
4032
+ }
4033
+ ) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
4034
+ /* @__PURE__ */ t.jsx(Ga, {}),
4035
+ /* @__PURE__ */ t.jsxs(dl, { children: [
4036
+ /* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
4037
+ /* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
4038
+ ] })
4039
+ ] }) : null,
4040
+ /* @__PURE__ */ t.jsx(
4041
+ Ln,
4042
+ {
4043
+ isReimbursementCommentingEnabled: v,
4044
+ sectionId: Nt,
4045
+ reimbursementId: e.remiId,
4046
+ reportTitle: e.whatForSection.reportTitle
4047
+ }
4048
+ )
4049
+ ] }) : null,
4050
+ /* @__PURE__ */ t.jsx(
4051
+ ia,
4052
+ {
4053
+ onDuplicateLineClick: re,
4054
+ reimbursementId: x,
4055
+ remiDetails: e,
4056
+ uploadInvoiceEndPoint: p,
4057
+ authParams: i,
4058
+ showSkipAutoFill: Ne,
4059
+ setShowSkipAutoFill: gt,
4060
+ isReimbursementCommentingEnabled: v,
4061
+ isAutoFieldsExist: Gt,
4062
+ totalAmount: ie,
4063
+ removeFileFromLine: fe,
4064
+ onReplaceClick: Zn,
4065
+ onReceiptsUpload: F,
4066
+ currencyConversionStatus: e.currencyConversionStatus,
4067
+ setCurrentLineIdForUpload: _n,
4068
+ setUploadedReceiptPayload: Hn,
4069
+ updateInvoiceUploadFetchState: Ae,
4070
+ clearTentativeNameForLine: Le,
4071
+ defaultCurrency: a,
4072
+ companyMileageConfigInfo: d,
4073
+ isUserAdmin: m,
4074
+ setShowBankAccountPage: Dt,
4075
+ bankAccounts: c,
4076
+ onDeleteBankAccount: Qn,
4077
+ analytics: S,
4078
+ fileRequiredLineIds: Ut,
4079
+ isSignedInUserReimbursementCreator: y,
4080
+ uncategorizedAccounts: $,
4081
+ showTotalAmountLoader: pt,
4082
+ duplicateLineByLineId: e.duplicateLineByLineId,
4083
+ hasDuplicateLine: Yt,
4084
+ removeDuplicateReimbursementForLine: ne,
4085
+ scrollContainerRef: h
4086
+ }
4087
+ ),
4088
+ /* @__PURE__ */ t.jsxs(
4089
+ bl,
4090
+ {
4091
+ showSkipAutoFill: Ne,
4092
+ windowSize: A,
4093
+ children: [
4094
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4095
+ /* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
4096
+ e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
4097
+ No,
4098
+ {
4099
+ amount: ie ?? 0,
4100
+ activities: e.remiActivities,
4101
+ stage: e.remiStage ?? "draft",
4102
+ onAddNewRule: me,
4103
+ entity: "reimbursement",
4104
+ historicActivities: e.remiHistory.activities
4105
+ }
4106
+ ),
4107
+ e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
4108
+ No,
4109
+ {
4110
+ amount: ie ?? 0,
4111
+ activities: jo,
4112
+ stage: "draft",
4113
+ entity: "reimbursement",
4114
+ historicActivities: e.remiHistory.activities
4115
+ }
4116
+ ) : null
4117
+ ] }) })
4118
+ ]
4119
+ }
4120
+ ),
4121
+ /* @__PURE__ */ t.jsx(Sl, {}),
4122
+ /* @__PURE__ */ t.jsxs(
4123
+ rl,
4124
+ {
4125
+ showSkipAutoFill: Ne,
4126
+ windowSize: A,
4127
+ children: [
4128
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4129
+ /* @__PURE__ */ t.jsx(
4130
+ Ua,
4131
+ {
4132
+ windowSize: A,
4133
+ onClick: (g) => {
4134
+ g.stopPropagation(), Ke === !0 && Ge(!1);
4135
+ },
4136
+ children: /* @__PURE__ */ t.jsx(
4137
+ In,
4138
+ {
4139
+ formId: an(rn),
4140
+ separatorStyle: { marginRight: o.sp4 },
4141
+ showCancel: y,
4142
+ cancelBtn: {
4143
+ 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,
4144
+ isLoading: Qe === "save" && e.saveStatus?.fetchState === "In-Progress",
4145
+ onClick: ko,
4146
+ style: { width: ee.footerButtonWidth.value(A) },
4147
+ reverseSpinnerColor: !1
4148
+ },
4149
+ primaryBtn: {
4150
+ label: _a(
4151
+ y,
4152
+ m,
4153
+ e,
4154
+ A
4155
+ ),
4156
+ isDisabled: !y,
4157
+ style: {
4158
+ width: y ? ee.footerButtonWidth.value(A) : "auto"
4159
+ },
4160
+ type: y ? "submit" : "button",
4161
+ onClick: y ? () => null : ko,
4162
+ isLoading: !y && Qe === "save" && e.saveStatus?.fetchState === "In-Progress"
4163
+ },
4164
+ rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Qa, { windowSize: A, children: [
4165
+ Ke ? /* @__PURE__ */ t.jsx(
4166
+ cn,
4167
+ {
4168
+ onClickAway: () => Ge(!1),
4169
+ children: /* @__PURE__ */ t.jsx(
4170
+ Xa,
4171
+ {
4172
+ windowSize: A,
4173
+ "data-testid": U(
4174
+ "remi-other-actions-container"
4175
+ ),
4176
+ children: /* @__PURE__ */ t.jsx(
4177
+ Za,
4178
+ {
4179
+ onClick: Xn,
4180
+ "data-testid": U(
4181
+ "delete-report-action"
4182
+ ),
4183
+ children: f.buttons.deleteReport
4184
+ }
4185
+ )
4186
+ }
4187
+ )
4188
+ }
4189
+ ) : null,
4190
+ /* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
4191
+ Ya,
4192
+ {
4193
+ windowSize: A,
4194
+ "data-testid": U(
4195
+ "more-details-button"
4196
+ ),
4197
+ children: /* @__PURE__ */ t.jsx(
4198
+ Ka,
4199
+ {
4200
+ onClick: () => Ge(!Ke)
4201
+ }
4202
+ )
4203
+ }
4204
+ ) : null })
4205
+ ] }) }),
4206
+ style: {
4207
+ minHeight: 62
4208
+ }
4209
+ }
4210
+ )
4211
+ }
4212
+ )
4213
+ ]
4214
+ }
4215
+ ),
4216
+ v && x != null ? /* @__PURE__ */ t.jsx(mr, { id: Ct, children: /* @__PURE__ */ t.jsx(
4217
+ Fr,
4218
+ {
4219
+ isDrawerOpen: W,
4220
+ allowComposer: !0,
4221
+ drawerTitle: Ra,
4222
+ threads: ft,
4223
+ autoExpand: !0,
4224
+ autoFocus: !1,
4225
+ filter: {
4226
+ application: "dashboard",
4227
+ companyId: _?.companyId ?? za,
4228
+ isGlobalComment: !1,
4229
+ tab: "reimbursement"
4230
+ },
4231
+ isLoading: tt,
4232
+ threadMetadata: _ ? {
4233
+ companyName: _.companyName,
4234
+ companyId: _.companyId,
4235
+ entityId: _.entityId,
4236
+ entityType: _.entityType,
4237
+ isGlobalComment: !1,
4238
+ application: "dashboard",
4239
+ tab: "reimbursement",
4240
+ url: window.location.href
4241
+ } : void 0,
4242
+ textOverrides: {
4243
+ composerPlaceholder: Fa,
4244
+ replyComposerPlaceholder: Na,
4245
+ threadResolve: Wa,
4246
+ threadUnResolve: Ea
4247
+ },
4248
+ onThreadClick: (g, j) => sr(g, j),
4249
+ onCloseAllThreadsDrawer: () => se(!1),
4250
+ drawerSectionStyle: {
4251
+ width: "400px",
4252
+ backgroundColor: He.colors.background
4253
+ }
4254
+ }
4255
+ ) }) : null
4256
+ ] })
4257
+ }
4258
+ ),
4259
+ Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
4260
+ xa,
4261
+ {
4262
+ bankAccountCreationState: C,
4263
+ setShowBankAccountPage: Dt,
4264
+ plaidConnectionDetails: l,
4265
+ onFetchLinkTokenClick: Me,
4266
+ onEstablishConnectionClick: pe,
4267
+ onSaveHandler: B,
4268
+ bankAccountToCreate: O,
4269
+ bankNameByRouting: b,
4270
+ fetchBankNameByRoutingStatus: T,
4271
+ onUserBankDetailsUpdated: P,
4272
+ onFetchBankName: H,
4273
+ onBackClick: () => {
4274
+ Je(), Dt(!1);
4275
+ }
4276
+ }
4277
+ ) }) : null
4278
+ ] })
4279
+ }
4280
+ ) });
4281
+ }, _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`
4282
+ position: relative;
4283
+ height: 100vh;
4284
+ overflow-y: scroll;
4285
+ `, qa = n.div`
4286
+ position: fixed;
4287
+ top: 0;
4288
+ left: 42vw;
4289
+ width: 100%;
4290
+ height: 100vh;
4291
+ background: transparent;
4292
+ box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
4293
+ pointer-events: none;
4294
+ z-index: 3;
4295
+ `, Ua = n.div`
4296
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4297
+ `, Ha = n.div`
4298
+ display: flex;
4299
+ justify-content: flex-end;
4300
+ `, Ka = n(Vr)`
4301
+ cursor: pointer;
4302
+ color: ${(e) => e.theme.colors.hero};
4303
+ width: ${o.sp5};
4304
+ height: ${o.sp5};
4305
+ &:hover {
4306
+ color: ${(e) => e.theme.colors.primary};
4307
+ }
4308
+ `, Ga = n(_r)`
4309
+ width: ${o.sp4};
4310
+ height: ${o.sp4};
4311
+ color: ${I.brandColorGoldDark};
4312
+ `, Ya = n.div`
4313
+ display: flex;
4314
+ margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
4315
+ cursor: pointer;
4316
+ color: ${(e) => e.theme.colors.grey1};
4317
+ &:hover {
4318
+ color: ${(e) => e.theme.colors.primary};
4319
+ }
4320
+ `, Ja = n.div`
4321
+ display: flex;
4322
+ justify-content: center;
4323
+ align-items: center;
4324
+ `, Xa = n.div`
4325
+ display: flex;
4326
+ width: auto;
4327
+ align-items: center;
4328
+ justify-content: center;
4329
+ flex-direction: column;
4330
+ background-color: ${(e) => e.theme.colors.grey5};
4331
+ color: ${(e) => e.theme.colors.hero};
4332
+ cursor: pointer;
4333
+ padding-top: ${o.sp1};
4334
+ padding-bottom: ${o.sp1};
4335
+ position: absolute;
4336
+ bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
4337
+ z-index: 3;
4338
+ border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
4339
+ border-radius: ${o.sp1};
4340
+ right: ${(e) => ee.right.valuePx(e.windowSize)};
4341
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
4342
+ `, Qa = n.div`
4343
+ width: 100%;
4344
+ justify-content: flex-end;
4345
+ position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
4346
+ right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
4347
+ height: 100%;
4348
+ display: flex;
4349
+ `, Za = n(yo)`
4350
+ display: flex;
4351
+ align-items: center;
4352
+ width: -webkit-fill-available;
4353
+ padding-left: ${o.sp3};
4354
+ padding-right: ${o.sp3};
4355
+ height: ${o.sp6};
4356
+ box-sizing: border-box;
4357
+ &:hover {
4358
+ background-color: ${(e) => e.theme.colors.background};
4359
+ }
4360
+ `, el = n.div`
4361
+ overflow-y: auto;
4362
+ z-index: 5;
4363
+ height: 100vh;
4364
+ position: fixed;
4365
+ background: ${(e) => e.theme.colors.grey4};
4366
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4367
+ right: 0;
4368
+ top: 0;
4369
+ `, tl = n.div`
4370
+ background: ${(e) => e.theme.colors.grey4};
4371
+ height: 44px;
4372
+ display: flex;
4373
+ align-items: center;
4374
+ justify-content: end;
4375
+ `, ol = n.div`
4376
+ width: 58%;
4377
+ `, nl = n($o)`
4378
+ padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
4379
+ background: ${(e) => e.theme.colors.grey4};
4380
+ color: ${(e) => e.theme.colors.primary};
4381
+ `, rl = n.div`
4382
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4383
+ width: 100%;
4384
+ position: fixed;
4385
+ bottom: 0;
4386
+ z-index: 3;
4387
+ `, ln = n.div`
4388
+ width: 42%;
4389
+ `, il = n(fo)`
4390
+ color: ${(e) => e.theme.colors.primary};
4391
+ width: ${o.sp3};
4392
+ height: ${o.sp3};
4393
+ `, al = n.div`
4394
+ display: flex;
4395
+ gap: ${o.sp2};
4396
+ border: 1px solid ${(e) => e.theme.colors.grey3};
4397
+ padding: ${o.sp3};
4398
+ border-radius: ${o.sp2};
4399
+ align-items: center;
4400
+ margin: ${o.sp3};
4401
+ `, ll = n.span`
4402
+ color: ${(e) => e.theme.colors.hero};
4403
+ `, sl = n.div`
4404
+ display: flex;
4405
+ gap: ${o.sp2};
4406
+ padding: ${o.sp3};
4407
+ border-radius: ${o.sp2};
4408
+ align-items: start;
4409
+ margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
4410
+ margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
4411
+ margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
4412
+ margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
4413
+ background-color: ${I.alertLight};
4414
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
4415
+ `, cl = n(_t)`
4416
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4417
+ `, dl = n.div`
4418
+ width: 100%;
4419
+ `, ul = n(xo)`
4420
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4421
+ `, ml = n($o)`
4422
+ letter-spacing: -0.02em;
4423
+ color: ${(e) => e.theme.colors.primary};
4424
+ margin: ${o.sp3};
4425
+ `, sn = n.div`
4426
+ display: flex;
4427
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
4428
+ height: 100vh;
4429
+ visibility: inherit;
4430
+ width: 100%;
4431
+ background-color: ${I.overlayDark};
4432
+ z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
4433
+ position: fixed;
4434
+ `, pl = n.div`
4435
+ z-index: 3;
4436
+ min-height: 62px;
4437
+ height: 62px;
4438
+ display: flex;
4439
+ align-items: center;
4440
+ width: 100%;
4441
+ justify-content: space-between;
4442
+ position: fixed;
4443
+ `, hl = n(Nr)`
4444
+ display: flex;
4445
+ color: ${(e) => e.theme.colors.brandColorJade};
4446
+ cursor: pointer;
4447
+ width: ${o.sp4};
4448
+ height: ${o.sp4};
4449
+ `, lo = n(On)`
4450
+ cursor: pointer;
4451
+ width: ${o.sp4};
4452
+ height: ${o.sp4};
4453
+ float: right;
4454
+ color: inherit;
4455
+ `, so = n.div`
4456
+ color: ${(e) => e.theme.colors.hero};
4457
+ &:hover {
4458
+ color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
4459
+ }
4460
+ `, gl = n.div`
4461
+ margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
4462
+ display: flex;
4463
+ float: right;
4464
+ `, yl = n.div`
4465
+ display: flex;
4466
+ align-items: center;
4467
+ justify-content: center;
4468
+ position: relative;
4469
+ float: right;
4470
+ cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
4471
+ color: ${(e) => e.theme.colors.hero};
4472
+ &:hover {
4473
+ color: ${(e) => e.theme.colors.primary};
4474
+ }
4475
+ `, fl = n(Wr)`
4476
+ display: flex;
4477
+ width: ${o.sp4};
4478
+ height: ${o.sp4};
4479
+ align-items: center;
4480
+ justify-content: center;
4481
+ `, co = n.div`
4482
+ margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
4483
+ margin-left: ${o.sp5};
4484
+ margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
4485
+ `, xl = n.div`
4486
+ display: flex;
4487
+ flex-direction: column;
4488
+ width: 100vw;
4489
+ overflow-x: hidden;
4490
+ background: -webkit-linear-gradient(
4491
+ to right,
4492
+ ${(e) => e.theme.colors.background} 42%,
4493
+ ${(e) => e.theme.colors.grey4} 42%
4494
+ );
4495
+ background: -moz-linear-gradient(
4496
+ to right,
4497
+ ${(e) => e.theme.colors.background} 42%,
4498
+ ${(e) => e.theme.colors.grey4} 42%
4499
+ );
4500
+ background: -o-linear-gradient(
4501
+ to right,
4502
+ ${(e) => e.theme.colors.background} 42%,
4503
+ ${(e) => e.theme.colors.grey4} 42%
4504
+ );
4505
+ background: linear-gradient(
4506
+ to right,
4507
+ ${(e) => e.theme.colors.background} 42%,
4508
+ ${(e) => e.theme.colors.grey4} 42%
4509
+ );
4510
+ ${(e) => e.windowSize === "small" && `
4511
+ background: ${e.theme.colors.grey4};
4512
+ `}
4513
+ min-height: 100vh;
4514
+ `, bl = n.div`
4515
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4516
+ width: 100%;
4517
+ margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
4518
+ `, wl = n.div`
4519
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4520
+ `, $l = n.div`
4521
+ margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
4522
+ margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
4523
+ `, Sl = n.div`
4524
+ display: flex;
4525
+ flex-direction: column;
4526
+ height: ${o.sp11};
4527
+ `;
4528
+ export {
4529
+ Nl as default,
4530
+ an as uniqueName
4531
+ };