@zeniai/web-components 3.16.71 → 3.16.72

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 (909) hide show
  1. package/dist/ACHDetailsPage-B17xK64u.cjs +21 -0
  2. package/dist/ACHDetailsPage-jtxZ_DGW.js +160 -0
  3. package/dist/AIPerformancePage-5omR8KfP.cjs +534 -0
  4. package/dist/AIPerformancePage-UhNHLQQ_.js +1337 -0
  5. package/dist/AccountInfoPage-B0JdHbjg.cjs +18 -0
  6. package/dist/AccountInfoPage-BAjpqlnt.js +78 -0
  7. package/dist/AccountInfoPageContent-BFHVHLUm.js +428 -0
  8. package/dist/AccountInfoPageContent-D2EDDBl9.cjs +149 -0
  9. package/dist/AccountLockedInfoModal-BQAhy2Q5.cjs +59 -0
  10. package/dist/AccountLockedInfoModal-DZwOxcXA.js +125 -0
  11. package/dist/AccountReconDetailsDrawerPage-BIY2oG4F.cjs +239 -0
  12. package/dist/AccountReconDetailsDrawerPage-Fe6WMR1q.js +686 -0
  13. package/dist/AccountRow-CZXZ0mXs.cjs +298 -0
  14. package/dist/AccountRow-q6YpI4V0.js +1012 -0
  15. package/dist/AccountsPromoCardStack-BZhAU4__.cjs +207 -0
  16. package/dist/AccountsPromoCardStack-YjJ_3oTq.js +664 -0
  17. package/dist/AddAddressForCardDrawer-BTFmYLDe.js +82 -0
  18. package/dist/AddAddressForCardDrawer-BaP32-TD.cjs +6 -0
  19. package/dist/AddToWalletPage-D1HnFe1J.cjs +344 -0
  20. package/dist/AddToWalletPage-sXBz7HJk.js +642 -0
  21. package/dist/AgingReportsPage-Bo7RcOxE.cjs +79 -0
  22. package/dist/AgingReportsPage-DnrmPx8u.js +827 -0
  23. package/dist/AllUserItems-C5c1C_fJ.js +979 -0
  24. package/dist/AllUserItems-DGK9kvUP.cjs +192 -0
  25. package/dist/ApAgingDetailPage-CRkFGPEW.cjs +46 -0
  26. package/dist/ApAgingDetailPage-Dh8__8qK.js +239 -0
  27. package/dist/AppBasePage-7QIvbEdI.js +120 -0
  28. package/dist/AppBasePage-D-LQYnZX.cjs +71 -0
  29. package/dist/AppDrawerContent-B42kc_7r.cjs +91 -0
  30. package/dist/AppDrawerContent-DjAq7ehw.js +375 -0
  31. package/dist/ApprovalRulesSettingsPage-CFkgsKVP.cjs +47 -0
  32. package/dist/ApprovalRulesSettingsPage-fEDHmMDv.js +145 -0
  33. package/dist/ArAgingChart-BKi-1Dyo.js +529 -0
  34. package/dist/ArAgingChart-qUqQsdfD.cjs +24 -0
  35. package/dist/ArAgingDetailPage-DmyW4iai.js +243 -0
  36. package/dist/ArAgingDetailPage-F89ogm5j.cjs +46 -0
  37. package/dist/AttachmentView-BkrHgQ-8.js +260 -0
  38. package/dist/AttachmentView-C4DC5TGv.cjs +101 -0
  39. package/dist/BankAccountSection-CeCHIgPx.cjs +79 -0
  40. package/dist/BankAccountSection-DL7eRy10.js +398 -0
  41. package/dist/BankAccountWarningSection-B9AaOZjv.js +110 -0
  42. package/dist/BankAccountWarningSection-a1C1ndPD.cjs +51 -0
  43. package/dist/BankConnectionsSettingsPage-D17cPwfK.js +1693 -0
  44. package/dist/BankConnectionsSettingsPage-KntivDe4.cjs +425 -0
  45. package/dist/BillDetailPage-B5va3yHk.js +1798 -0
  46. package/dist/BillDetailPage-ChH6X6Fw.cjs +266 -0
  47. package/dist/BillPayApprovalRuleDetailPage-BVg9UXiG.js +247 -0
  48. package/dist/BillPayApprovalRuleDetailPage-CwI8TXmh.cjs +27 -0
  49. package/dist/BillPayApprovalRulesPage-DS6IMx7q.cjs +235 -0
  50. package/dist/BillPayApprovalRulesPage-DbXE_jU_.js +415 -0
  51. package/dist/BillPayPromoPage-CrzJcYwc.cjs +84 -0
  52. package/dist/BillPayPromoPage-DdDa6Yyf.js +292 -0
  53. package/dist/BillPaySetUpPage-BuuWqWcV.cjs +42 -0
  54. package/dist/BillPaySetUpPage-CwtuGWxb.js +409 -0
  55. package/dist/BillingSettingsPage-D6RX3FEd.cjs +44 -0
  56. package/dist/BillingSettingsPage-DMPrc0Sc.js +336 -0
  57. package/dist/BillsBulkReviewDrawerPage-Ddt8aOYW.js +216 -0
  58. package/dist/BillsBulkReviewDrawerPage-gpQDottr.cjs +1 -0
  59. package/dist/BoxItem-BaudR0WD.cjs +53 -0
  60. package/dist/BoxItem-UAja6M6T.js +118 -0
  61. package/dist/BusinessVerificationPage-B36xK_S8.cjs +138 -0
  62. package/dist/BusinessVerificationPage-CFvsxsYL.js +716 -0
  63. package/dist/BusyIndication-C6G5Xdis.js +19 -0
  64. package/dist/BusyIndication-I4T_UBRv.cjs +9 -0
  65. package/dist/CardNumberSubText-B9o7bL_p.cjs +21 -0
  66. package/dist/CardNumberSubText-DUiuxKHL.js +59 -0
  67. package/dist/CashbackDetailPage-CZo70JjN.cjs +285 -0
  68. package/dist/CashbackDetailPage-UB0PkwKZ.js +824 -0
  69. package/dist/ChargeCardDetailPage-Bmr1wTmh.js +5453 -0
  70. package/dist/ChargeCardDetailPage-Cd0yHejT.cjs +1462 -0
  71. package/dist/ChargeCardListPage-BO1CMV4x.cjs +406 -0
  72. package/dist/ChargeCardListPage-C172pZ6b.js +1775 -0
  73. package/dist/ChargeCardListTable-Bu_HO3vj.cjs +711 -0
  74. package/dist/ChargeCardListTable-r8ZrQYcl.js +2871 -0
  75. package/dist/ChargeCardPromoPage-CC-rXZCv.js +813 -0
  76. package/dist/ChargeCardPromoPage-Do1Kz-TJ.cjs +222 -0
  77. package/dist/ChargeCardSetupPage-Cc7B4x7w.js +359 -0
  78. package/dist/ChargeCardSetupPage-DF6wPuC7.cjs +36 -0
  79. package/dist/ChargeCardStatementsPage-Cd0OR-8e.js +243 -0
  80. package/dist/ChargeCardStatementsPage-D8HrAiyG.cjs +60 -0
  81. package/dist/CheckDepositDrawerPage-BRaLcotL.cjs +206 -0
  82. package/dist/CheckDepositDrawerPage-DF5ae4_W.js +726 -0
  83. package/dist/CollapsableReportTable-BelE1x-8.js +11758 -0
  84. package/dist/CollapsableReportTable-CwlCXFMB.cjs +2932 -0
  85. package/dist/CompanyOfficerDetailsSection-Dmbji7li.js +1633 -0
  86. package/dist/CompanyOfficerDetailsSection-Dnmi-Xka.cjs +260 -0
  87. package/dist/CompanyPassportCard-CuZgaxgm.js +146 -0
  88. package/dist/CompanyPassportCard-sDt4o9NA.cjs +42 -0
  89. package/dist/CompanyPassportPage-C-Bp8Dsz.cjs +574 -0
  90. package/dist/CompanyPassportPage-DrtvbNih.js +2160 -0
  91. package/dist/CompleteProfile-B6e1Remx.js +301 -0
  92. package/dist/CompleteProfile-D5jdLjtf.cjs +52 -0
  93. package/dist/ConfettiBurst-D5EuA3W3.cjs +1 -0
  94. package/dist/ConfettiBurst-g3fpXQNw.js +37 -0
  95. package/dist/CreateOrEditVendorPage-CTk0FoEG.cjs +281 -0
  96. package/dist/CreateOrEditVendorPage-FkkXM5Md.js +755 -0
  97. package/dist/CreditCardPaymentDrawerPage-BCLwVeuB.cjs +224 -0
  98. package/dist/CreditCardPaymentDrawerPage-DUM3eaVh.js +1169 -0
  99. package/dist/CurrencySelectField-YszWK6th.js +348 -0
  100. package/dist/CurrencySelectField-ir4IUojg.cjs +139 -0
  101. package/dist/CustomerOnboardingActivationPage-Bu14oDNR.js +143 -0
  102. package/dist/CustomerOnboardingActivationPage-DL4O_TgV.cjs +88 -0
  103. package/dist/CustomerOnboardingContainerPage-C-McydBJ.js +7 -0
  104. package/dist/CustomerOnboardingContainerPage-CloNpIgy.cjs +1 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-BAFYO_BW.cjs +162 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-TX38pSi4.js +434 -0
  107. package/dist/CustomerOnboardingNoStepsPage-BvC6kQ3j.cjs +66 -0
  108. package/dist/CustomerOnboardingNoStepsPage-C1VR2XrZ.js +424 -0
  109. package/dist/CustomerOnboardingPage-BQVt5mx8.js +1059 -0
  110. package/dist/CustomerOnboardingPage-DLx5USMN.cjs +107 -0
  111. package/dist/CustomerOnboardingProductSuitePage-B-R2uNo_.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-_e4MrU4t.cjs +202 -0
  113. package/dist/Dashboard-BLlXIJaf.js +5539 -0
  114. package/dist/Dashboard-Cv8Dv8fJ.cjs +1551 -0
  115. package/dist/DashboardReportPage-DOstR6GB.cjs +371 -0
  116. package/dist/DashboardReportPage-VTIYO2VK.js +2536 -0
  117. package/dist/DashboardSidebarBackgroundAnimation-BtNvUZhA.js +50 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-DsYEcw5l.cjs +12 -0
  119. package/dist/DepositAccTransactionItem-CSPYPk-l.cjs +76 -0
  120. package/dist/DepositAccTransactionItem-UAZUexYX.js +112 -0
  121. package/dist/DepositAccTransactionListPage-CIBcVyWr.cjs +66 -0
  122. package/dist/DepositAccTransactionListPage-DuDkDLd0.js +152 -0
  123. package/dist/DomesticWireDetailsPage-C8y6yRX5.cjs +21 -0
  124. package/dist/DomesticWireDetailsPage-DCs7uzMf.js +189 -0
  125. package/dist/DownloadOverlay-BbmtUbg4.cjs +439 -0
  126. package/dist/DownloadOverlay-CUfgoLn-.js +2148 -0
  127. package/dist/DrawerPage-B92hXes5.cjs +118 -0
  128. package/dist/DrawerPage-CSmhLQuS.js +208 -0
  129. package/dist/EditPeoplePage-BNPS4LMM.cjs +55 -0
  130. package/dist/EditPeoplePage-nN5h-WDq.js +392 -0
  131. package/dist/EditReimbursementDetailPage-B6CiWJrN.cjs +865 -0
  132. package/dist/EditReimbursementDetailPage-DPdha6J2.js +4530 -0
  133. package/dist/EmptySearchResults-0yClifV8.cjs +46 -0
  134. package/dist/EmptySearchResults-BRExA1Zo.js +70 -0
  135. package/dist/EntityDetailPage-BUCtJhNe.cjs +18 -0
  136. package/dist/EntityDetailPage-CyfpiK0W.js +82 -0
  137. package/dist/EntitySummarySection-B33_heGd.cjs +149 -0
  138. package/dist/EntitySummarySection-BCdNPb6R.js +530 -0
  139. package/dist/ExpenseAutomationOverviewPage-Bkfujb3Z.cjs +281 -0
  140. package/dist/ExpenseAutomationOverviewPage-CXwM7lTF.js +806 -0
  141. package/dist/ExpenseAutomationPage-DeNbpiHf.js +11544 -0
  142. package/dist/ExpenseAutomationPage-ib1vuGW0.cjs +1650 -0
  143. package/dist/ExpressPayPage-C3b_vMWc.js +1136 -0
  144. package/dist/ExpressPayPage-GuCVJw-D.cjs +168 -0
  145. package/dist/FeaturePreviewPage-BNef3T23.js +114 -0
  146. package/dist/FeaturePreviewPage-VUKUjlbI.cjs +11 -0
  147. package/dist/FollowStepsSection-DI_sXnws.cjs +390 -0
  148. package/dist/FollowStepsSection-jBJk955j.js +1313 -0
  149. package/dist/GlobalReviewListPage-1uPrLnGX.js +1674 -0
  150. package/dist/GlobalReviewListPage-BHHoA3ro.cjs +291 -0
  151. package/dist/InformationCardStack-Coui7WOl.js +219 -0
  152. package/dist/InformationCardStack-Cv0XP4tu.cjs +31 -0
  153. package/dist/InsightsCardStack-Dg8qidqu.js +305 -0
  154. package/dist/InsightsCardStack-DwOQ8_Wu.cjs +79 -0
  155. package/dist/InsightsSection-BD1IbZX4.cjs +27 -0
  156. package/dist/InsightsSection-BvcgCWVQ.js +97 -0
  157. package/dist/IntegrationsSettingsPage-Bqt0f7Ok.js +136 -0
  158. package/dist/IntegrationsSettingsPage-DHkJ9Ed6.cjs +57 -0
  159. package/dist/InternationalWireSwiftDetailsPage-BzR8LCwO.cjs +171 -0
  160. package/dist/InternationalWireSwiftDetailsPage-CpUlDAw1.js +753 -0
  161. package/dist/InternationalWireVerificationPage-Du3UQAUh.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-wtnL3BFi.js +877 -0
  163. package/dist/InviteFormPage-BO9eisip.js +873 -0
  164. package/dist/InviteFormPage-BjSR9Db6.cjs +312 -0
  165. package/dist/InvitePageListView-BFZgfPZi.cjs +739 -0
  166. package/dist/InvitePageListView-BVTL80Be.js +1764 -0
  167. package/dist/InvitePeoplePage-BKQdd2HW.cjs +12 -0
  168. package/dist/InvitePeoplePage-YKH8e6dT.js +286 -0
  169. package/dist/InvoiceUploadSection-DBwpUGKh.js +465 -0
  170. package/dist/InvoiceUploadSection-M7RgA-Ob.cjs +140 -0
  171. package/dist/IssueChargeCardPage-CHq3RXcO.js +2875 -0
  172. package/dist/IssueChargeCardPage-D4DRrTFw.cjs +532 -0
  173. package/dist/LabeledAddressValue-BzVIAKUO.js +115 -0
  174. package/dist/LabeledAddressValue-CzyvYUiY.cjs +49 -0
  175. package/dist/LabeledAddressValueField-CxhxPN8x.cjs +45 -0
  176. package/dist/LabeledAddressValueField-DOHkQbWx.js +130 -0
  177. package/dist/LabeledControlledCheckBoxField-D6a4jcXf.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-TWIgVR70.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-Bk-DqnyO.cjs +204 -0
  180. package/dist/LabeledCreatableSingleSelectField-CIUJXI2r.js +515 -0
  181. package/dist/LabeledDocumentField-CP0XxUQp.cjs +41 -0
  182. package/dist/LabeledDocumentField-CtEmwO1Z.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-CzIQPN5Z.cjs +59 -0
  184. package/dist/LabeledDropDownFormattedTextField-DAiWjmCw.js +163 -0
  185. package/dist/LabeledEmailInputField-CIBUAA-t.js +425 -0
  186. package/dist/LabeledEmailInputField-D5pqCSTL.cjs +182 -0
  187. package/dist/LabeledItemWithButton-DCMdGOIy.cjs +21 -0
  188. package/dist/LabeledItemWithButton-d6jm5Bkf.js +74 -0
  189. package/dist/LabeledNameField-BiAMKrrW.js +293 -0
  190. package/dist/LabeledNameField-CumyD8EW.cjs +141 -0
  191. package/dist/LabeledSingleSelectField-Bj6DZZCU.cjs +136 -0
  192. package/dist/LabeledSingleSelectField-CoSXd5eG.js +372 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-C-AdlPB2.js +103 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-DwjAuGuW.cjs +38 -0
  195. package/dist/LabeledText-BiCd6TR2.cjs +42 -0
  196. package/dist/LabeledText-Dxw7UArs.js +103 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-CmsSoDo_.cjs +229 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-hSiIDmve.js +572 -0
  199. package/dist/LabeledZeniRolesDropDownField-Bkr13Lth.js +975 -0
  200. package/dist/LabeledZeniRolesDropDownField-l9I3xOpk.cjs +297 -0
  201. package/dist/LinkJETransactionPage-D7d8s_2A.cjs +98 -0
  202. package/dist/LinkJETransactionPage-DIxKZUMx.js +406 -0
  203. package/dist/LockCardPage-B2mhH8dJ.cjs +623 -0
  204. package/dist/LockCardPage-D7l5E7IR.js +2032 -0
  205. package/dist/LowBalancePopup-B0ABNtNx.js +219 -0
  206. package/dist/LowBalancePopup-MdfTDepl.cjs +34 -0
  207. package/dist/MagicLinkACHDetailsPage-C5-e9m8t.js +39 -0
  208. package/dist/MagicLinkACHDetailsPage-CxuaJKlM.cjs +1 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-E3BBNQAy.cjs +1 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-cZTQERZO.js +44 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage-CoDe1ClX.js +43 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-DgoLPAz1.cjs +1 -0
  213. package/dist/MagicLinkSuccessPage-BTWFHqRG.js +59 -0
  214. package/dist/MagicLinkSuccessPage-vNXuTVlP.cjs +31 -0
  215. package/dist/MagicLinkTitleSection-BnipBY3z.js +40 -0
  216. package/dist/MagicLinkTitleSection-Cq60ry6I.cjs +17 -0
  217. package/dist/MailingDetailsSection-BNY0GB3G.js +74 -0
  218. package/dist/MailingDetailsSection-BfYYAsna.cjs +21 -0
  219. package/dist/MatchingOperatorDropdown-BIB5bYgo.js +572 -0
  220. package/dist/MatchingOperatorDropdown-N99f3ViH.cjs +130 -0
  221. package/dist/Menu-DMdfWLWB.cjs +17 -0
  222. package/dist/Menu-XeONraf7.js +110 -0
  223. package/dist/MoreMenuButton-B5WKh2om.js +569 -0
  224. package/dist/MoreMenuButton-mHEKRO3S.cjs +167 -0
  225. package/dist/MyBankConnectionsSettingsPage-CI_2lmql.js +296 -0
  226. package/dist/MyBankConnectionsSettingsPage-CjUb--Kw.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-CXCxv9VB.cjs +6 -0
  228. package/dist/MyPendingActivationChargeCardListPage-D4DnX3_m.js +168 -0
  229. package/dist/MyProfileSettingsPage-Bp7BeGr7.cjs +85 -0
  230. package/dist/MyProfileSettingsPage-C0SmhF27.js +641 -0
  231. package/dist/NavBarWithPicker-CAk3jp6F.js +106 -0
  232. package/dist/NavBarWithPicker-Tc7WI39u.cjs +30 -0
  233. package/dist/NavigationArrow-B6mctO6H.js +88 -0
  234. package/dist/NavigationArrow-Dtvfb5aC.cjs +47 -0
  235. package/dist/NavigationDots-BE95TGY0.cjs +15 -0
  236. package/dist/NavigationDots-D65sZzmZ.js +44 -0
  237. package/dist/NewGlobalMerchantPage-COIVJmx6.cjs +160 -0
  238. package/dist/NewGlobalMerchantPage-SAnHcdm2.js +543 -0
  239. package/dist/NoDataChart-Btr5Rt37.cjs +26 -0
  240. package/dist/NoDataChart-DXxZ6Voj.js +58 -0
  241. package/dist/NoDataTable-Bz_Et1Sn.js +27 -0
  242. package/dist/NoDataTable-o32fVKXO.cjs +8 -0
  243. package/dist/NotFoundPage-B-4WpUQa.js +71 -0
  244. package/dist/NotFoundPage-D1PIrW6G.cjs +46 -0
  245. package/dist/NotificationSettingsPage-BOYL_NAv.js +541 -0
  246. package/dist/NotificationSettingsPage-pmK7TaD3.cjs +163 -0
  247. package/dist/NotificationsListConfig-B9MErmDx.cjs +1 -0
  248. package/dist/NotificationsListConfig-D7QOePou.js +10 -0
  249. package/dist/NotificationsPage-BkvXIfOi.js +2664 -0
  250. package/dist/NotificationsPage-DtLLEHUr.cjs +685 -0
  251. package/dist/OpExByVendorPage-BS_jOKCR.cjs +100 -0
  252. package/dist/OpExByVendorPage-C8RRnsqn.js +1057 -0
  253. package/dist/PandLWithForecastPage-DaNFF6eB.js +563 -0
  254. package/dist/PandLWithForecastPage-DsYRjjYQ.cjs +107 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-B36pslNr.cjs +106 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-BSZks86U.js +623 -0
  257. package/dist/PeoplePage-CPLECJBe.cjs +675 -0
  258. package/dist/PeoplePage-Dl4BuloT.js +1994 -0
  259. package/dist/ProductsCarousel-BvAZCLnv.cjs +142 -0
  260. package/dist/ProductsCarousel-CJ_mH7Yw.js +309 -0
  261. package/dist/PromoBaseCards-C5OBODMx.js +356 -0
  262. package/dist/PromoBaseCards-CbCPSU-o.cjs +218 -0
  263. package/dist/QBOConnectionDialog-Buk7Bhpr.cjs +51 -0
  264. package/dist/QBOConnectionDialog-CtJw28p8.js +115 -0
  265. package/dist/QBOSetupSection-CPZ4uSMK.js +167 -0
  266. package/dist/QBOSetupSection-CxKKBwI4.cjs +79 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-C54Cz5js.cjs +26 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-CoLvBcuL.js +247 -0
  269. package/dist/ReimbursementApprovalRulesPage-CTdqMR56.js +410 -0
  270. package/dist/ReimbursementApprovalRulesPage-DWoeO6NB.cjs +237 -0
  271. package/dist/ReimbursementDetailPage-B_QrR5X2.js +1514 -0
  272. package/dist/ReimbursementDetailPage-CmvdZaT0.cjs +314 -0
  273. package/dist/ReimbursementPromoPage-BXQ4dll8.cjs +84 -0
  274. package/dist/ReimbursementPromoPage-CGjtAhvO.js +363 -0
  275. package/dist/ReimbursementSetUpPage--HKwvqri.cjs +140 -0
  276. package/dist/ReimbursementSetUpPage-CdvWwA-2.js +663 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-DY2MUhZx.cjs +1 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-DigPjYVZ.js +204 -0
  279. package/dist/ReloadCard-BV-L8K8R.cjs +26 -0
  280. package/dist/ReloadCard-BynnqWa_.js +137 -0
  281. package/dist/ReloadContainer-Cf9i_1q1.cjs +596 -0
  282. package/dist/ReloadContainer-CxPg7Q22.js +2144 -0
  283. package/dist/ReportTableViewSelector-Bah6YACx.js +679 -0
  284. package/dist/ReportTableViewSelector-Fnx0WdQR.cjs +150 -0
  285. package/dist/ReportsPage-2bkf_Qdd.js +1315 -0
  286. package/dist/ReportsPage-DiQ2vylA.cjs +121 -0
  287. package/dist/RevenueChart-Ba-P9SPC.js +2239 -0
  288. package/dist/RevenueChart-CwluvauV.cjs +280 -0
  289. package/dist/ReviewDetailsPage-BFKZRVL5.cjs +290 -0
  290. package/dist/ReviewDetailsPage-Bv63bETg.js +1073 -0
  291. package/dist/ReviewOverlay-CI9VsjXb.cjs +152 -0
  292. package/dist/ReviewOverlay-CdbR5B8T.js +299 -0
  293. package/dist/RoleWithToolTip-BxtpyU1Z.js +72 -0
  294. package/dist/RoleWithToolTip-CdOJAYnR.cjs +22 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-BFKGVNiR.cjs +37 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-BZhKe4Cc.js +806 -0
  297. package/dist/ScheduleDetailsPage-COhFVmrA.cjs +37 -0
  298. package/dist/ScheduleDetailsPage-CzpfrQF_.js +726 -0
  299. package/dist/ScheduleSequenceTable-CBybgBEz.js +1261 -0
  300. package/dist/ScheduleSequenceTable-_EnoQZKb.cjs +324 -0
  301. package/dist/SetUpAccountSection-4MHP9Xax.cjs +378 -0
  302. package/dist/SetUpAccountSection-CB0g-Acy.js +1468 -0
  303. package/dist/SignIn-3L-NJt22.js +1075 -0
  304. package/dist/SignIn-BDbFohFn.cjs +448 -0
  305. package/dist/SpendManagementListViewPage-KWDgK7DY.js +627 -0
  306. package/dist/SpendManagementListViewPage-Oh9hc9m1.cjs +122 -0
  307. package/dist/SpendManagementPerTabPage-DaQhHrxN.js +2735 -0
  308. package/dist/SpendManagementPerTabPage-_kABUPHb.cjs +754 -0
  309. package/dist/SpendManagementSection-BBZG0ioh.cjs +230 -0
  310. package/dist/SpendManagementSection-CivJygIF.js +1043 -0
  311. package/dist/StatementItem-BJVfV7Wm.js +81 -0
  312. package/dist/StatementItem-M1oEsANC.cjs +31 -0
  313. package/dist/StatementsPage-CTJywl6b.js +130 -0
  314. package/dist/StatementsPage-DyMRmXBl.cjs +58 -0
  315. package/dist/StatusSwitcher-Mzj0pBts.cjs +120 -0
  316. package/dist/StatusSwitcher-eZf9eTGn.js +319 -0
  317. package/dist/SubTabSwitcher--JsxD49f.cjs +58 -0
  318. package/dist/SubTabSwitcher-C1u2CKEv.js +113 -0
  319. package/dist/SuccessAnimation-BHMpjtKq.cjs +13 -0
  320. package/dist/SuccessAnimation-CFgpqM89.js +52 -0
  321. package/dist/SummaryCard-BczhTy7G.js +25 -0
  322. package/dist/SummaryCard-CKJ8wdxr.cjs +1 -0
  323. package/dist/TaskDetailPage-Blp8WrEa.js +2533 -0
  324. package/dist/TaskDetailPage-oAANkKv2.cjs +775 -0
  325. package/dist/TaskListRow-BYmdJx1D.js +1950 -0
  326. package/dist/TaskListRow-mafdDrWf.cjs +556 -0
  327. package/dist/TaskManagementPage-BL05HqbN.js +1935 -0
  328. package/dist/TaskManagementPage-gjNI0Wzj.cjs +508 -0
  329. package/dist/TimeRangeSwitcher-BFXH7evz.js +265 -0
  330. package/dist/TimeRangeSwitcher-DHifrAMN.cjs +64 -0
  331. package/dist/TimeframeSwitcher-B6BTynr0.cjs +31 -0
  332. package/dist/TimeframeSwitcher-Dxm__iFX.js +103 -0
  333. package/dist/TimeframeSwitcherWithToggle-BtOpwdyF.cjs +31 -0
  334. package/dist/TimeframeSwitcherWithToggle-CIsS_s-d.js +157 -0
  335. package/dist/TopExCard-BCat20qj.cjs +38 -0
  336. package/dist/TopExCard-BYr_Q1w_.js +568 -0
  337. package/dist/TopExDetailPage-BAjJz7Rt.js +318 -0
  338. package/dist/TopExDetailPage-BKMBBM8a.cjs +132 -0
  339. package/dist/TransactionDetailPage-BkLv3rrK.cjs +912 -0
  340. package/dist/TransactionDetailPage-JlN9n27d.js +5238 -0
  341. package/dist/TransactionList-CHyVD1uY.cjs +147 -0
  342. package/dist/TransactionList-D0CVEtSV.js +558 -0
  343. package/dist/TransactionListBig-DN2lP7C6.js +658 -0
  344. package/dist/TransactionListBig-bijKeurV.cjs +284 -0
  345. package/dist/TransactionListPage-BFfl1uN6.js +144 -0
  346. package/dist/TransactionListPage-DxBbzFQX.cjs +35 -0
  347. package/dist/TransactionVendorDetailPage-2jiQMLMK.cjs +80 -0
  348. package/dist/TransactionVendorDetailPage-DLsIH-Vp.js +425 -0
  349. package/dist/TransferDrawerPage-D04TV2-j.cjs +362 -0
  350. package/dist/TransferDrawerPage-gBr-xYMr.js +1435 -0
  351. package/dist/TreasuryOverviewPage-BTN18ttV.cjs +708 -0
  352. package/dist/TreasuryOverviewPage-VliObRV8.js +1889 -0
  353. package/dist/TreasuryPromoPage-C7MAOzg2.js +1123 -0
  354. package/dist/TreasuryPromoPage-GUwd5yxt.cjs +505 -0
  355. package/dist/TreasuryStatementsPage-Bv29XtSe.cjs +58 -0
  356. package/dist/TreasuryStatementsPage-sePrmdfT.js +131 -0
  357. package/dist/TreasuryTaxLetterPage-CEtwxy83.js +131 -0
  358. package/dist/TreasuryTaxLetterPage-Dqfse3bJ.cjs +58 -0
  359. package/dist/TrendChart-D5RHKNAf.cjs +16 -0
  360. package/dist/TrendChart-fVbElyRu.js +333 -0
  361. package/dist/TrendWithTransactions-BzqLY79S.js +346 -0
  362. package/dist/TrendWithTransactions-CnqpvgdC.cjs +116 -0
  363. package/dist/UncategorizedAccountsMappingPage-DkT312P9.cjs +244 -0
  364. package/dist/UncategorizedAccountsMappingPage-wOp9ijaI.js +1159 -0
  365. package/dist/UnitIntegrationPage-C6BGENXE.js +405 -0
  366. package/dist/UnitIntegrationPage-CaMKPBOY.cjs +67 -0
  367. package/dist/UploadAdditionalDocumentOverlay-CNabFS85.cjs +38 -0
  368. package/dist/UploadAdditionalDocumentOverlay-u5FLV4N4.js +211 -0
  369. package/dist/Vendor2FAPopup-BxNzlz_O.cjs +1 -0
  370. package/dist/Vendor2FAPopup-Cer6lmOS.js +69 -0
  371. package/dist/VendorACHDetailsPage-BDhS3WdI.js +43 -0
  372. package/dist/VendorACHDetailsPage-XmV87fAH.cjs +1 -0
  373. package/dist/VendorDetailPage-CIQ9vLkh.cjs +257 -0
  374. package/dist/VendorDetailPage-DwQRO1Io.js +1236 -0
  375. package/dist/VendorDomesticWireDetailsPage-Bl1LMYXV.cjs +1 -0
  376. package/dist/VendorDomesticWireDetailsPage-CxF79upV.js +53 -0
  377. package/dist/VendorFiling1099EditablePage-Bl2xnyez.cjs +175 -0
  378. package/dist/VendorFiling1099EditablePage-CIXDshYq.js +842 -0
  379. package/dist/VendorFirstReviewPage--Ouyk52r.js +2748 -0
  380. package/dist/VendorFirstReviewPage-BrvGBxRP.cjs +730 -0
  381. package/dist/VendorInternationalWireDetailsPage-Cjmrpyka.cjs +152 -0
  382. package/dist/VendorInternationalWireDetailsPage-CppXKaeK.js +968 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-DLFEEaFW.cjs +1 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-Dkq3jmtM.js +52 -0
  385. package/dist/VendorsAccountsSection-Biee3gnM.cjs +68 -0
  386. package/dist/VendorsAccountsSection-b1J8hSBU.js +279 -0
  387. package/dist/VerifyDevice-BDSftYEl.cjs +112 -0
  388. package/dist/VerifyDevice-DpTvuHf5.js +298 -0
  389. package/dist/VideoPlayer-Ds5h1bee.js +169 -0
  390. package/dist/VideoPlayer-HgAetC2t.cjs +77 -0
  391. package/dist/VideoPopup-BtHImbkM.cjs +31 -0
  392. package/dist/VideoPopup-DG6kgH6M.js +60 -0
  393. package/dist/WarningsDrawerPage-DOuRd4BK.js +228 -0
  394. package/dist/WarningsDrawerPage-a8BCGexG.cjs +92 -0
  395. package/dist/ZeniAccountDetailPage-9MppacfT.js +907 -0
  396. package/dist/ZeniAccountDetailPage-CxcaKtxW.cjs +300 -0
  397. package/dist/ZeniAccountListViewPage-BwhhsGiJ.cjs +441 -0
  398. package/dist/ZeniAccountListViewPage-CzioqVDx.js +1078 -0
  399. package/dist/ZeniAccountNavBarPieces-CqcCKdFw.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-pEB3RflI.js +89 -0
  401. package/dist/ZeniAccountPromoPage-DHIpkTsA.cjs +184 -0
  402. package/dist/ZeniAccountPromoPage-pqAPQn1E.js +522 -0
  403. package/dist/ZeniAccountSetupPage-BqIHbGAF.js +309 -0
  404. package/dist/ZeniAccountSetupPage-T6tWtNWR.cjs +36 -0
  405. package/dist/ZeniAvatar-BWuGAA65.cjs +13 -0
  406. package/dist/ZeniAvatar-Dq-eaqia.js +34 -0
  407. package/dist/ZeniCopyright-CAJdj3P9.js +9 -0
  408. package/dist/ZeniCopyright-CnByx_Uf.cjs +1 -0
  409. package/dist/ZeniDatePicker-CkMEv7E2.js +386 -0
  410. package/dist/ZeniDatePicker-DbEZt-Lw.cjs +187 -0
  411. package/dist/ZeniTransferAmountSlider--z-UHYrL.cjs +63 -0
  412. package/dist/ZeniTransferAmountSlider-TFajf0IE.js +215 -0
  413. package/dist/analyticsHelper-CO_Y5tx4.js +65 -0
  414. package/dist/analyticsHelper-UlxDNGzr.cjs +1 -0
  415. package/dist/appLocale.d.ts +2 -0
  416. package/dist/calculateSize-C4pfakMz.cjs +1 -0
  417. package/dist/calculateSize-D4zYjXJm.js +22 -0
  418. package/dist/chartTypes-B7879aa1.cjs +1 -0
  419. package/dist/chartTypes-BMnBH70G.js +47 -0
  420. package/dist/cockpit.cjs.js +2 -2
  421. package/dist/cockpit.esm.js +15 -15
  422. package/dist/common-COyZ_fjc.cjs +1 -0
  423. package/dist/common-DZGSaqWt.js +22 -0
  424. package/dist/commonDimensions-BPHmUyRY.cjs +1 -0
  425. package/dist/commonDimensions-CS-tYlPq.js +13 -0
  426. package/dist/components/transactionDetail/transactionDetail.helpers.d.ts +1 -0
  427. package/dist/detailCommon-DM_jXuem.cjs +38 -0
  428. package/dist/detailCommon-mKL0_utu.js +124 -0
  429. package/dist/downloadPdf-BcaIC3zY.js +32 -0
  430. package/dist/downloadPdf-DmVEoPh5.cjs +1 -0
  431. package/dist/index-DLKZoZ-i.js +92072 -0
  432. package/dist/index-DaOROfUT.cjs +21096 -0
  433. package/dist/index.cjs.js +1 -1
  434. package/dist/index.esm.js +1 -1
  435. package/dist/mapLoadingInProgressToTreeNode-C537X-yF.js +25 -0
  436. package/dist/mapLoadingInProgressToTreeNode-CPFhloAY.cjs +1 -0
  437. package/dist/mapSectionWithAcOnlyToTreeNode-YLvbQcpB.cjs +1 -0
  438. package/dist/mapSectionWithAcOnlyToTreeNode-tjYYcewB.js +388 -0
  439. package/dist/mapSpacerToTreeNode-CnGcfvZd.js +25 -0
  440. package/dist/mapSpacerToTreeNode-uqR8f3ei.cjs +1 -0
  441. package/dist/mapTimeframeBalancesToTreeNode-4dNewxM4.js +24 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-B4K3jm4L.cjs +1 -0
  443. package/dist/mapTimeframeBalancesToTreeNode-DkUNdvpp.js +24 -0
  444. package/dist/mapTimeframeBalancesToTreeNode-Dte3VTtN.cjs +1 -0
  445. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-D2th9a3T.js +32 -0
  446. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-D9ggVMJD.cjs +1 -0
  447. package/dist/sectionColor-D1_Mxfkv.js +32 -0
  448. package/dist/sectionColor-DMGDV4b1.cjs +1 -0
  449. package/dist/strings/strings-en-in.d.ts +2 -0
  450. package/dist/strings/strings.d.ts +2 -0
  451. package/dist/toCOABalancesWithID-B_Dsuro3.js +8 -0
  452. package/dist/toCOABalancesWithID-DkBaTpAm.cjs +1 -0
  453. package/dist/toChartData-CjzQgRDh.js +76 -0
  454. package/dist/toChartData-D44PJxxk.cjs +1 -0
  455. package/dist/uploadAttachment-0QLQC79q.cjs +286 -0
  456. package/dist/uploadAttachment-C107xiM7.js +952 -0
  457. package/dist/zeniDatePicker.helpers-CgYeW5cm.js +14 -0
  458. package/dist/zeniDatePicker.helpers-DIXaHmXP.cjs +1 -0
  459. package/package.json +3 -3
  460. package/dist/ACHDetailsPage-BAkalqUF.cjs +0 -21
  461. package/dist/ACHDetailsPage-C4mW_6ah.js +0 -160
  462. package/dist/AIPerformancePage-CPNbaO21.cjs +0 -534
  463. package/dist/AIPerformancePage-D340k3cD.js +0 -1337
  464. package/dist/AccountInfoPage-COMdH8Vc.cjs +0 -18
  465. package/dist/AccountInfoPage-CxHOmu8J.js +0 -78
  466. package/dist/AccountInfoPageContent-BACjTyW3.cjs +0 -149
  467. package/dist/AccountInfoPageContent-piyQPGxR.js +0 -428
  468. package/dist/AccountLockedInfoModal-B-RdObr_.js +0 -125
  469. package/dist/AccountLockedInfoModal-DvelHR6e.cjs +0 -59
  470. package/dist/AccountReconDetailsDrawerPage-C9we0gwP.cjs +0 -239
  471. package/dist/AccountReconDetailsDrawerPage-DSTRaH9L.js +0 -686
  472. package/dist/AccountRow-0aCtZvU4.js +0 -1012
  473. package/dist/AccountRow-Bpb8kQQD.cjs +0 -298
  474. package/dist/AccountsPromoCardStack-DnWb-9rH.js +0 -664
  475. package/dist/AccountsPromoCardStack-xsrY1SgY.cjs +0 -207
  476. package/dist/AddAddressForCardDrawer-CHNkIaSM.cjs +0 -6
  477. package/dist/AddAddressForCardDrawer-CXACYbPO.js +0 -82
  478. package/dist/AddToWalletPage-C4sRJBul.js +0 -642
  479. package/dist/AddToWalletPage-Dl2rVenE.cjs +0 -344
  480. package/dist/AgingReportsPage-BKBrbEp6.js +0 -827
  481. package/dist/AgingReportsPage-Bpu5ESgZ.cjs +0 -79
  482. package/dist/AllUserItems-CBTBwImK.cjs +0 -192
  483. package/dist/AllUserItems-YQA0TTW5.js +0 -979
  484. package/dist/ApAgingDetailPage-BVFOkU1c.js +0 -239
  485. package/dist/ApAgingDetailPage-D_PhPYL-.cjs +0 -46
  486. package/dist/AppBasePage-D7bLHqQ3.js +0 -120
  487. package/dist/AppBasePage-vo5wTjuz.cjs +0 -71
  488. package/dist/AppDrawerContent-BL0Ov_41.js +0 -375
  489. package/dist/AppDrawerContent-DpXvKzu6.cjs +0 -91
  490. package/dist/ApprovalRulesSettingsPage-CEmSNIeQ.cjs +0 -47
  491. package/dist/ApprovalRulesSettingsPage-DWuIZMvM.js +0 -145
  492. package/dist/ArAgingChart-BKiRjMOW.cjs +0 -24
  493. package/dist/ArAgingChart-DhNRyKZ4.js +0 -529
  494. package/dist/ArAgingDetailPage-CerxqR8b.cjs +0 -46
  495. package/dist/ArAgingDetailPage-DAXNd3Un.js +0 -243
  496. package/dist/AttachmentView-B6_HWM-N.js +0 -260
  497. package/dist/AttachmentView-Dkye5C9q.cjs +0 -101
  498. package/dist/BankAccountSection-BFVGx5LI.cjs +0 -79
  499. package/dist/BankAccountSection-CXwFMtqi.js +0 -398
  500. package/dist/BankAccountWarningSection-BdC0joXN.js +0 -110
  501. package/dist/BankAccountWarningSection-DYIaV_Ot.cjs +0 -51
  502. package/dist/BankConnectionsSettingsPage-BvYgof7b.cjs +0 -425
  503. package/dist/BankConnectionsSettingsPage-D_TyZMym.js +0 -1693
  504. package/dist/BillDetailPage-BK2oSoHp.js +0 -1798
  505. package/dist/BillDetailPage-BfC4rpvv.cjs +0 -266
  506. package/dist/BillPayApprovalRuleDetailPage-Cgqr4DPs.cjs +0 -27
  507. package/dist/BillPayApprovalRuleDetailPage-DnhfBkGF.js +0 -247
  508. package/dist/BillPayApprovalRulesPage-BNGn2rWa.js +0 -415
  509. package/dist/BillPayApprovalRulesPage-C-f7EbDe.cjs +0 -235
  510. package/dist/BillPayPromoPage-BR2HUX9q.js +0 -292
  511. package/dist/BillPayPromoPage-CiKYuis5.cjs +0 -84
  512. package/dist/BillPaySetUpPage-CF1wBGUG.js +0 -409
  513. package/dist/BillPaySetUpPage-OLbrurNT.cjs +0 -42
  514. package/dist/BillingSettingsPage-BwS4mUax.js +0 -336
  515. package/dist/BillingSettingsPage-Cecic4XG.cjs +0 -44
  516. package/dist/BillsBulkReviewDrawerPage-CXSLb5CN.cjs +0 -1
  517. package/dist/BillsBulkReviewDrawerPage-D1MBWo1c.js +0 -216
  518. package/dist/BoxItem-BPwFzk70.js +0 -118
  519. package/dist/BoxItem-BRT9b9xs.cjs +0 -53
  520. package/dist/BusinessVerificationPage-CFYwM_Ev.cjs +0 -138
  521. package/dist/BusinessVerificationPage-DBK52xwc.js +0 -716
  522. package/dist/BusyIndication-CYF89U8W.js +0 -19
  523. package/dist/BusyIndication-DjiCtZ3v.cjs +0 -9
  524. package/dist/CardNumberSubText-IPptmZiK.cjs +0 -21
  525. package/dist/CardNumberSubText-dZ1irCW_.js +0 -59
  526. package/dist/CashbackDetailPage-CINKGHf7.cjs +0 -285
  527. package/dist/CashbackDetailPage-C_JqzxlJ.js +0 -824
  528. package/dist/ChargeCardDetailPage-DQ7OFxSG.cjs +0 -1462
  529. package/dist/ChargeCardDetailPage-zLGKbNXp.js +0 -5453
  530. package/dist/ChargeCardListPage-BOiovXcX.js +0 -1775
  531. package/dist/ChargeCardListPage-DpT621yQ.cjs +0 -406
  532. package/dist/ChargeCardListTable-B4rMq1dZ.js +0 -2871
  533. package/dist/ChargeCardListTable-Drg-0cCb.cjs +0 -711
  534. package/dist/ChargeCardPromoPage-BJINiZYC.js +0 -813
  535. package/dist/ChargeCardPromoPage-PHZoM6HE.cjs +0 -222
  536. package/dist/ChargeCardSetupPage-CClkuaEC.js +0 -359
  537. package/dist/ChargeCardSetupPage-Chjv5Dvp.cjs +0 -36
  538. package/dist/ChargeCardStatementsPage-DAw9vEOC.cjs +0 -60
  539. package/dist/ChargeCardStatementsPage-DnnVjc0s.js +0 -243
  540. package/dist/CheckDepositDrawerPage-B6eWlnjq.cjs +0 -206
  541. package/dist/CheckDepositDrawerPage-v_SCMxCz.js +0 -726
  542. package/dist/CollapsableReportTable-CW5RhQW9.cjs +0 -2932
  543. package/dist/CollapsableReportTable-CcJXUhk5.js +0 -11758
  544. package/dist/CompanyOfficerDetailsSection-CZ2_Bxab.js +0 -1633
  545. package/dist/CompanyOfficerDetailsSection-Cc_yZp8T.cjs +0 -260
  546. package/dist/CompanyPassportCard-DZkuDI3D.js +0 -146
  547. package/dist/CompanyPassportCard-vqL84lFX.cjs +0 -42
  548. package/dist/CompanyPassportPage-BdP_gm7U.js +0 -2160
  549. package/dist/CompanyPassportPage-CPxq3YVL.cjs +0 -574
  550. package/dist/CompleteProfile-CkhMf6cB.cjs +0 -52
  551. package/dist/CompleteProfile-DRK_kLAe.js +0 -301
  552. package/dist/ConfettiBurst-BrCmqpgN.js +0 -37
  553. package/dist/ConfettiBurst-DlJ_MtVa.cjs +0 -1
  554. package/dist/CreateOrEditVendorPage-BwLI03T8.js +0 -755
  555. package/dist/CreateOrEditVendorPage-CNhH7QQT.cjs +0 -281
  556. package/dist/CreditCardPaymentDrawerPage-BSYOs8-l.js +0 -1169
  557. package/dist/CreditCardPaymentDrawerPage-CNcFqB3F.cjs +0 -224
  558. package/dist/CurrencySelectField-B_4B_9aF.js +0 -348
  559. package/dist/CurrencySelectField-tRpK0B6R.cjs +0 -139
  560. package/dist/CustomerOnboardingActivationPage-BB4aRAkA.cjs +0 -88
  561. package/dist/CustomerOnboardingActivationPage-BZFkFSTw.js +0 -143
  562. package/dist/CustomerOnboardingContainerPage-BXJQUW7p.js +0 -7
  563. package/dist/CustomerOnboardingContainerPage-DQm5lSlg.cjs +0 -1
  564. package/dist/CustomerOnboardingDetailPageSkeleton-CBEaQT2M.cjs +0 -162
  565. package/dist/CustomerOnboardingDetailPageSkeleton-DYvcKHG6.js +0 -434
  566. package/dist/CustomerOnboardingNoStepsPage-CPdbP4la.cjs +0 -66
  567. package/dist/CustomerOnboardingNoStepsPage-KYTPP6tX.js +0 -424
  568. package/dist/CustomerOnboardingPage-C1o855J_.js +0 -1059
  569. package/dist/CustomerOnboardingPage-CNXHfa4Y.cjs +0 -107
  570. package/dist/CustomerOnboardingProductSuitePage-B6_XfRee.js +0 -348
  571. package/dist/CustomerOnboardingProductSuitePage-CpNLbic9.cjs +0 -202
  572. package/dist/Dashboard-CEwgHC7X.cjs +0 -1551
  573. package/dist/Dashboard-FTTHWU9i.js +0 -5539
  574. package/dist/DashboardReportPage-DwizIVSN.cjs +0 -371
  575. package/dist/DashboardReportPage-bJB_ZM-P.js +0 -2536
  576. package/dist/DashboardSidebarBackgroundAnimation-Bd0zh-Pv.js +0 -50
  577. package/dist/DashboardSidebarBackgroundAnimation-D-XlaSkH.cjs +0 -12
  578. package/dist/DepositAccTransactionItem-Cm8NQHtu.cjs +0 -76
  579. package/dist/DepositAccTransactionItem-a9hm23uZ.js +0 -112
  580. package/dist/DepositAccTransactionListPage-BHoIdlzJ.js +0 -152
  581. package/dist/DepositAccTransactionListPage-BdeUhdEm.cjs +0 -66
  582. package/dist/DomesticWireDetailsPage-B2SuQIfN.cjs +0 -21
  583. package/dist/DomesticWireDetailsPage-CR2NWUDZ.js +0 -189
  584. package/dist/DownloadOverlay-CGIlEzcv.js +0 -2148
  585. package/dist/DownloadOverlay-cNF-PSAN.cjs +0 -439
  586. package/dist/DrawerPage-BRWcrpdu.cjs +0 -118
  587. package/dist/DrawerPage-C4L7rhLd.js +0 -208
  588. package/dist/EditPeoplePage-BijQ1Ec5.cjs +0 -55
  589. package/dist/EditPeoplePage-W_bqhMGG.js +0 -392
  590. package/dist/EditReimbursementDetailPage-MYiSJ04b.js +0 -4460
  591. package/dist/EditReimbursementDetailPage-mIkWKkyI.cjs +0 -865
  592. package/dist/EmptySearchResults-CPS75aus.cjs +0 -46
  593. package/dist/EmptySearchResults-kJVK_DWn.js +0 -70
  594. package/dist/EntityDetailPage-0fAk2iLE.js +0 -82
  595. package/dist/EntityDetailPage-D_BnjnCF.cjs +0 -18
  596. package/dist/EntitySummarySection-Cl-xJolg.js +0 -530
  597. package/dist/EntitySummarySection-DaJlwbvx.cjs +0 -149
  598. package/dist/ExpenseAutomationOverviewPage-BzVUSpUz.js +0 -806
  599. package/dist/ExpenseAutomationOverviewPage-CeqSDEbJ.cjs +0 -281
  600. package/dist/ExpenseAutomationPage-B2DkM256.cjs +0 -1650
  601. package/dist/ExpenseAutomationPage-CzuKvnw8.js +0 -11544
  602. package/dist/ExpressPayPage-C55b5McJ.cjs +0 -168
  603. package/dist/ExpressPayPage-CXpbDpcG.js +0 -1136
  604. package/dist/FeaturePreviewPage-BdWRpRXX.js +0 -114
  605. package/dist/FeaturePreviewPage-C6nAPkjv.cjs +0 -11
  606. package/dist/FollowStepsSection-Bde_Ajhn.cjs +0 -390
  607. package/dist/FollowStepsSection-Ck49QYUi.js +0 -1313
  608. package/dist/GlobalReviewListPage-CXLtd59T.cjs +0 -291
  609. package/dist/GlobalReviewListPage-tl64OC_D.js +0 -1674
  610. package/dist/InformationCardStack-BSLnJhVh.js +0 -219
  611. package/dist/InformationCardStack-Dvmyy4tC.cjs +0 -31
  612. package/dist/InsightsCardStack-D2XayNzL.cjs +0 -79
  613. package/dist/InsightsCardStack-upFCkt0d.js +0 -305
  614. package/dist/InsightsSection-B2f8NB4o.js +0 -97
  615. package/dist/InsightsSection-DiLZRjRq.cjs +0 -27
  616. package/dist/IntegrationsSettingsPage-ApEA3NDk.js +0 -136
  617. package/dist/IntegrationsSettingsPage-DD0nRaIE.cjs +0 -57
  618. package/dist/InternationalWireSwiftDetailsPage-C6GCC_xb.cjs +0 -171
  619. package/dist/InternationalWireSwiftDetailsPage-pRXnBX8-.js +0 -753
  620. package/dist/InternationalWireVerificationPage-Bi9Nk0Ew.cjs +0 -292
  621. package/dist/InternationalWireVerificationPage-C-SQJS8P.js +0 -877
  622. package/dist/InviteFormPage-D0DAXYlY.js +0 -873
  623. package/dist/InviteFormPage-Dl2GEurf.cjs +0 -312
  624. package/dist/InvitePageListView-BFVisGwy.js +0 -1764
  625. package/dist/InvitePageListView-Br70XSRJ.cjs +0 -739
  626. package/dist/InvitePeoplePage-B3cz9F3Z.cjs +0 -12
  627. package/dist/InvitePeoplePage-BEzryxFQ.js +0 -286
  628. package/dist/InvoiceUploadSection-COAgTH-x.cjs +0 -140
  629. package/dist/InvoiceUploadSection-DKXMH9_f.js +0 -465
  630. package/dist/IssueChargeCardPage-B7tV0V3q.cjs +0 -532
  631. package/dist/IssueChargeCardPage-BARWK3sa.js +0 -2875
  632. package/dist/LabeledAddressValue-C5kVdEPO.cjs +0 -49
  633. package/dist/LabeledAddressValue-eVBoTtqn.js +0 -115
  634. package/dist/LabeledAddressValueField-CfAQarzo.cjs +0 -45
  635. package/dist/LabeledAddressValueField-DF2XP6wZ.js +0 -130
  636. package/dist/LabeledControlledCheckBoxField-BC_DiNfE.cjs +0 -16
  637. package/dist/LabeledControlledCheckBoxField-DEYSYf-J.js +0 -73
  638. package/dist/LabeledCreatableSingleSelectField-C8jonNVF.cjs +0 -204
  639. package/dist/LabeledCreatableSingleSelectField-CSfLkVof.js +0 -515
  640. package/dist/LabeledDocumentField-DdVw-K0-.js +0 -147
  641. package/dist/LabeledDocumentField-SStNcGAb.cjs +0 -41
  642. package/dist/LabeledDropDownFormattedTextField-6_OAT7xy.js +0 -163
  643. package/dist/LabeledDropDownFormattedTextField-b_K0nzNv.cjs +0 -59
  644. package/dist/LabeledEmailInputField-BD7PAhuO.cjs +0 -182
  645. package/dist/LabeledEmailInputField-CnJfmgOQ.js +0 -425
  646. package/dist/LabeledItemWithButton-BRgj-HYA.js +0 -74
  647. package/dist/LabeledItemWithButton-BY7Lcc5B.cjs +0 -21
  648. package/dist/LabeledNameField-CX9dWuSC.js +0 -293
  649. package/dist/LabeledNameField-Cgp7vJtT.cjs +0 -141
  650. package/dist/LabeledSingleSelectField-CQuw8fby.js +0 -372
  651. package/dist/LabeledSingleSelectField-DpAT5WnT.cjs +0 -136
  652. package/dist/LabeledSingleSelectWithoutClearableField-Bg6sePOW.js +0 -103
  653. package/dist/LabeledSingleSelectWithoutClearableField-DhnOm5PB.cjs +0 -38
  654. package/dist/LabeledText-C22OIr4w.cjs +0 -42
  655. package/dist/LabeledText-R8i6QoET.js +0 -103
  656. package/dist/LabeledUserSingleSelectWithSubtitlesField-BMJT6dfe.js +0 -572
  657. package/dist/LabeledUserSingleSelectWithSubtitlesField-HbNzo4Bn.cjs +0 -229
  658. package/dist/LabeledZeniRolesDropDownField-BNytFxUn.js +0 -975
  659. package/dist/LabeledZeniRolesDropDownField-CvbGrr3w.cjs +0 -297
  660. package/dist/LinkJETransactionPage-C1rB7cmC.cjs +0 -98
  661. package/dist/LinkJETransactionPage-DNhlMdQ7.js +0 -406
  662. package/dist/LockCardPage-BPxf870Z.cjs +0 -623
  663. package/dist/LockCardPage-CxKPs84u.js +0 -2032
  664. package/dist/LowBalancePopup-CDBRPfl0.cjs +0 -34
  665. package/dist/LowBalancePopup-pumriZyO.js +0 -219
  666. package/dist/MagicLinkACHDetailsPage-DE2SLqVq.cjs +0 -1
  667. package/dist/MagicLinkACHDetailsPage-DmnrTJMS.js +0 -39
  668. package/dist/MagicLinkDomesticWireDetailsPage-CLBWijcR.js +0 -44
  669. package/dist/MagicLinkDomesticWireDetailsPage-DhEC_MtU.cjs +0 -1
  670. package/dist/MagicLinkInternationalWireDetailsPage-Cu4Cjs7_.cjs +0 -1
  671. package/dist/MagicLinkInternationalWireDetailsPage-DnZ1xXH_.js +0 -43
  672. package/dist/MagicLinkSuccessPage-CzWtXlBo.js +0 -59
  673. package/dist/MagicLinkSuccessPage-CzitfEj0.cjs +0 -31
  674. package/dist/MagicLinkTitleSection-B7L3P3Ac.js +0 -40
  675. package/dist/MagicLinkTitleSection-BsUy2K8f.cjs +0 -17
  676. package/dist/MailingDetailsSection-Cfv-fCHk.cjs +0 -21
  677. package/dist/MailingDetailsSection-XEIU22Nu.js +0 -74
  678. package/dist/MatchingOperatorDropdown-BNTJZCAd.cjs +0 -130
  679. package/dist/MatchingOperatorDropdown-C3wuA6dZ.js +0 -572
  680. package/dist/Menu-6F194E28.js +0 -110
  681. package/dist/Menu-Bp1pE8xS.cjs +0 -17
  682. package/dist/MoreMenuButton-BzrzGrFw.js +0 -569
  683. package/dist/MoreMenuButton-txBqXBJ1.cjs +0 -167
  684. package/dist/MyBankConnectionsSettingsPage-BsX2kPTH.cjs +0 -110
  685. package/dist/MyBankConnectionsSettingsPage-ClYTuULD.js +0 -296
  686. package/dist/MyPendingActivationChargeCardListPage-CGdernIl.js +0 -168
  687. package/dist/MyPendingActivationChargeCardListPage-QSbZVVlY.cjs +0 -6
  688. package/dist/MyProfileSettingsPage-BiUcDLvo.js +0 -641
  689. package/dist/MyProfileSettingsPage-Bl4OuR21.cjs +0 -85
  690. package/dist/NavBarWithPicker-2D-3l4dg.cjs +0 -30
  691. package/dist/NavBarWithPicker-_-ZjAFN_.js +0 -106
  692. package/dist/NavigationArrow-BCYWy8H_.cjs +0 -47
  693. package/dist/NavigationArrow-_y8iIetO.js +0 -88
  694. package/dist/NavigationDots-CLIto8Du.js +0 -44
  695. package/dist/NavigationDots-DhEoWTum.cjs +0 -15
  696. package/dist/NewGlobalMerchantPage-BGfrNvje.cjs +0 -160
  697. package/dist/NewGlobalMerchantPage-Dw82QzKG.js +0 -543
  698. package/dist/NoDataChart-Bjw9yyz2.cjs +0 -26
  699. package/dist/NoDataChart-CGJiBbL5.js +0 -58
  700. package/dist/NoDataTable-CNHHgqYt.cjs +0 -8
  701. package/dist/NoDataTable-DXI7pAwU.js +0 -27
  702. package/dist/NotFoundPage-Cfz7No5c.cjs +0 -46
  703. package/dist/NotFoundPage-aQvWSBB4.js +0 -71
  704. package/dist/NotificationSettingsPage-CeqIrjpc.cjs +0 -163
  705. package/dist/NotificationSettingsPage-UWPLoqAx.js +0 -541
  706. package/dist/NotificationsListConfig-BxBkY23o.cjs +0 -1
  707. package/dist/NotificationsListConfig-CcVmJLd9.js +0 -10
  708. package/dist/NotificationsPage-E1LFhFQV.cjs +0 -685
  709. package/dist/NotificationsPage-WOiZ6P2a.js +0 -2664
  710. package/dist/OpExByVendorPage-CMmzkUic.cjs +0 -100
  711. package/dist/OpExByVendorPage-Czuf3hUD.js +0 -1057
  712. package/dist/PandLWithForecastPage-CpXse4ZT.cjs +0 -107
  713. package/dist/PandLWithForecastPage-u3LxSAUm.js +0 -563
  714. package/dist/PaymentAccountSetupBillingAddressSection-B5FWynxq.cjs +0 -106
  715. package/dist/PaymentAccountSetupBillingAddressSection-KH90MNZj.js +0 -623
  716. package/dist/PeoplePage-CjTM8kZN.cjs +0 -675
  717. package/dist/PeoplePage-QTZMkkM6.js +0 -1994
  718. package/dist/ProductsCarousel-B07klWkb.cjs +0 -142
  719. package/dist/ProductsCarousel-B41eMd74.js +0 -309
  720. package/dist/PromoBaseCards-B0u8ZQyU.cjs +0 -218
  721. package/dist/PromoBaseCards-y3l9Sc__.js +0 -356
  722. package/dist/QBOConnectionDialog-CRHlDQYb.js +0 -115
  723. package/dist/QBOConnectionDialog-CxBP6GzL.cjs +0 -51
  724. package/dist/QBOSetupSection-C-OSo7SU.cjs +0 -79
  725. package/dist/QBOSetupSection-CpGkp1OV.js +0 -167
  726. package/dist/ReimbursementApprovalRuleDetailPage-DZqbsPgv.js +0 -247
  727. package/dist/ReimbursementApprovalRuleDetailPage-DeHsn9jU.cjs +0 -26
  728. package/dist/ReimbursementApprovalRulesPage-BbMRRChu.js +0 -410
  729. package/dist/ReimbursementApprovalRulesPage-Cjoa-vLj.cjs +0 -237
  730. package/dist/ReimbursementDetailPage-Ba1kWwpx.cjs +0 -314
  731. package/dist/ReimbursementDetailPage-QdocM_vT.js +0 -1511
  732. package/dist/ReimbursementPromoPage-D9WxVDF-.js +0 -363
  733. package/dist/ReimbursementPromoPage-zQWOc_N4.cjs +0 -84
  734. package/dist/ReimbursementSetUpPage-BkjvoOYH.js +0 -663
  735. package/dist/ReimbursementSetUpPage-CpsR6FE3.cjs +0 -140
  736. package/dist/ReimbursementsBulkReviewDrawerPage-DSSj0aF8.js +0 -204
  737. package/dist/ReimbursementsBulkReviewDrawerPage-G4_qM7iq.cjs +0 -1
  738. package/dist/ReloadCard-Dg3vfc18.js +0 -137
  739. package/dist/ReloadCard-NY7fyoMm.cjs +0 -26
  740. package/dist/ReloadContainer-CoGe4MVM.js +0 -2144
  741. package/dist/ReloadContainer-aC9Q5jy_.cjs +0 -596
  742. package/dist/ReportTableViewSelector-7fjnfeAW.js +0 -679
  743. package/dist/ReportTableViewSelector-94SaRl2u.cjs +0 -150
  744. package/dist/ReportsPage-BBH_fSYL.cjs +0 -121
  745. package/dist/ReportsPage-BNN-qVnT.js +0 -1315
  746. package/dist/RevenueChart-CID2pdtf.cjs +0 -280
  747. package/dist/RevenueChart-CMaNRfRM.js +0 -2239
  748. package/dist/ReviewDetailsPage-CGs0NDrV.js +0 -1073
  749. package/dist/ReviewDetailsPage-zsDOM1D_.cjs +0 -290
  750. package/dist/ReviewOverlay-6pQmyHvk.cjs +0 -152
  751. package/dist/ReviewOverlay-CwU0ZK5O.js +0 -299
  752. package/dist/RoleWithToolTip-DmAYuJGo.js +0 -72
  753. package/dist/RoleWithToolTip-IIpARWZI.cjs +0 -22
  754. package/dist/ScheduleDetailsFixedAssetsPage-BNCTSMUN.cjs +0 -37
  755. package/dist/ScheduleDetailsFixedAssetsPage-TI2uKcec.js +0 -806
  756. package/dist/ScheduleDetailsPage-BZwoFX7Q.js +0 -726
  757. package/dist/ScheduleDetailsPage-Bn8GVWq3.cjs +0 -37
  758. package/dist/ScheduleSequenceTable-BPZu87Hl.cjs +0 -324
  759. package/dist/ScheduleSequenceTable-Bjc3OMeM.js +0 -1261
  760. package/dist/SetUpAccountSection-Cz90Cp7X.cjs +0 -378
  761. package/dist/SetUpAccountSection-MjL7GjKE.js +0 -1468
  762. package/dist/SignIn-BAh_EEoN.js +0 -1075
  763. package/dist/SignIn-Cup_WES0.cjs +0 -448
  764. package/dist/SpendManagementListViewPage-Bjvv_rMV.js +0 -627
  765. package/dist/SpendManagementListViewPage-DGmbJIEl.cjs +0 -122
  766. package/dist/SpendManagementPerTabPage-Bg_bB06V.js +0 -2735
  767. package/dist/SpendManagementPerTabPage-DFUNQZYm.cjs +0 -754
  768. package/dist/SpendManagementSection-BR8QYszb.js +0 -1043
  769. package/dist/SpendManagementSection-DIMlvBeo.cjs +0 -230
  770. package/dist/StatementItem-ekHIUzOl.cjs +0 -31
  771. package/dist/StatementItem-u8ZKTmXX.js +0 -81
  772. package/dist/StatementsPage-6Fba2JtL.js +0 -130
  773. package/dist/StatementsPage-DUzOVZ3A.cjs +0 -58
  774. package/dist/StatusSwitcher-DRCQk8Cv.cjs +0 -120
  775. package/dist/StatusSwitcher-Dv2SgIW0.js +0 -319
  776. package/dist/SubTabSwitcher-BOphKmVH.js +0 -113
  777. package/dist/SubTabSwitcher-V-Q_rM4i.cjs +0 -58
  778. package/dist/SuccessAnimation-BsIYLVMK.js +0 -52
  779. package/dist/SuccessAnimation-D-sUK0CP.cjs +0 -13
  780. package/dist/SummaryCard-Cu63Ml3e.js +0 -25
  781. package/dist/SummaryCard-Dzwlil0-.cjs +0 -1
  782. package/dist/TaskDetailPage-BDnMMl_v.js +0 -2533
  783. package/dist/TaskDetailPage-Cf9M_CzL.cjs +0 -775
  784. package/dist/TaskListRow-BZukkJPS.js +0 -1950
  785. package/dist/TaskListRow-CKkwpsVq.cjs +0 -556
  786. package/dist/TaskManagementPage-BsVKOwvY.js +0 -1935
  787. package/dist/TaskManagementPage-C0kXiQWC.cjs +0 -508
  788. package/dist/TimeRangeSwitcher-Bp1_pTol.js +0 -265
  789. package/dist/TimeRangeSwitcher-Wjo3iZmU.cjs +0 -64
  790. package/dist/TimeframeSwitcher-DpKiEyub.cjs +0 -31
  791. package/dist/TimeframeSwitcher-rTLFqHH2.js +0 -103
  792. package/dist/TimeframeSwitcherWithToggle-B-xFxFtp.cjs +0 -31
  793. package/dist/TimeframeSwitcherWithToggle-D-S1ltHl.js +0 -157
  794. package/dist/TopExCard-BHc2xYbP.js +0 -568
  795. package/dist/TopExCard-DisJitzq.cjs +0 -38
  796. package/dist/TopExDetailPage-1AHPEx8G.cjs +0 -132
  797. package/dist/TopExDetailPage-CHl6A0K6.js +0 -318
  798. package/dist/TransactionDetailPage-BCd0982f.js +0 -5238
  799. package/dist/TransactionDetailPage-BxuCXcNK.cjs +0 -912
  800. package/dist/TransactionList-0867BAwL.js +0 -558
  801. package/dist/TransactionList-ClH2--c3.cjs +0 -147
  802. package/dist/TransactionListBig-BFvk5By8.js +0 -658
  803. package/dist/TransactionListBig-CJQRfuoU.cjs +0 -284
  804. package/dist/TransactionListPage-CVso3-Sq.js +0 -144
  805. package/dist/TransactionListPage-Dyq-0uwd.cjs +0 -35
  806. package/dist/TransactionVendorDetailPage-CFBouGmI.js +0 -425
  807. package/dist/TransactionVendorDetailPage-Yre0aDz0.cjs +0 -80
  808. package/dist/TransferDrawerPage-Bwy8yQcL.js +0 -1435
  809. package/dist/TransferDrawerPage-rIL8yaRr.cjs +0 -362
  810. package/dist/TreasuryOverviewPage-CrBGDHGH.js +0 -1889
  811. package/dist/TreasuryOverviewPage-DV5amMjp.cjs +0 -708
  812. package/dist/TreasuryPromoPage-BJNoMR_d.js +0 -1123
  813. package/dist/TreasuryPromoPage-DpGpaoxN.cjs +0 -505
  814. package/dist/TreasuryStatementsPage-BzhOeW1p.js +0 -131
  815. package/dist/TreasuryStatementsPage-COjgHc50.cjs +0 -58
  816. package/dist/TreasuryTaxLetterPage-CRx4YBxQ.js +0 -131
  817. package/dist/TreasuryTaxLetterPage-tT2DqRU_.cjs +0 -58
  818. package/dist/TrendChart-CQY1hfDF.cjs +0 -16
  819. package/dist/TrendChart-_yBtvLU9.js +0 -333
  820. package/dist/TrendWithTransactions-BVUlOyyl.cjs +0 -116
  821. package/dist/TrendWithTransactions-CGfGoz_E.js +0 -346
  822. package/dist/UncategorizedAccountsMappingPage-BmRsiyhx.js +0 -1159
  823. package/dist/UncategorizedAccountsMappingPage-CuCCNmZf.cjs +0 -244
  824. package/dist/UnitIntegrationPage-DXwy0NZm.js +0 -405
  825. package/dist/UnitIntegrationPage-RKgBL2E6.cjs +0 -67
  826. package/dist/UploadAdditionalDocumentOverlay-DsDLbaGz.js +0 -211
  827. package/dist/UploadAdditionalDocumentOverlay-XzVSy8Rk.cjs +0 -38
  828. package/dist/Vendor2FAPopup-CPEAYcom.js +0 -69
  829. package/dist/Vendor2FAPopup-CqE8VuFu.cjs +0 -1
  830. package/dist/VendorACHDetailsPage-7hEYYM-c.cjs +0 -1
  831. package/dist/VendorACHDetailsPage-Cz7BK4T9.js +0 -43
  832. package/dist/VendorDetailPage-BJZuKt4M.js +0 -1236
  833. package/dist/VendorDetailPage-CHhXwQ2u.cjs +0 -257
  834. package/dist/VendorDomesticWireDetailsPage-CHYZpMzE.cjs +0 -1
  835. package/dist/VendorDomesticWireDetailsPage-CTkPAcfP.js +0 -53
  836. package/dist/VendorFiling1099EditablePage-B3mRsD_0.js +0 -842
  837. package/dist/VendorFiling1099EditablePage-TejNGHVl.cjs +0 -175
  838. package/dist/VendorFirstReviewPage-BF93R-7q.cjs +0 -730
  839. package/dist/VendorFirstReviewPage-CxzqIMuY.js +0 -2748
  840. package/dist/VendorInternationalWireDetailsPage-BB80LBMJ.cjs +0 -152
  841. package/dist/VendorInternationalWireDetailsPage-DX-yi7u1.js +0 -968
  842. package/dist/VendorInternationalWireSwiftDetailsPage-BJxv2ph6.cjs +0 -1
  843. package/dist/VendorInternationalWireSwiftDetailsPage-CLdDD8_B.js +0 -52
  844. package/dist/VendorsAccountsSection-By72DjJa.cjs +0 -68
  845. package/dist/VendorsAccountsSection-Di1ktFd-.js +0 -279
  846. package/dist/VerifyDevice-BVaWBX-g.js +0 -298
  847. package/dist/VerifyDevice-D_SUXvsw.cjs +0 -112
  848. package/dist/VideoPlayer-BVktA9zm.js +0 -169
  849. package/dist/VideoPlayer-BVw0r1ZL.cjs +0 -77
  850. package/dist/VideoPopup-Ci3MxG6r.cjs +0 -31
  851. package/dist/VideoPopup-Dd2qSy6d.js +0 -60
  852. package/dist/WarningsDrawerPage-BqVdaV-3.cjs +0 -92
  853. package/dist/WarningsDrawerPage-C3Uqokew.js +0 -228
  854. package/dist/ZeniAccountDetailPage-I8HXJKWC.js +0 -907
  855. package/dist/ZeniAccountDetailPage-hN0-xDA5.cjs +0 -300
  856. package/dist/ZeniAccountListViewPage-CbhNQfzc.cjs +0 -441
  857. package/dist/ZeniAccountListViewPage-DOEc0490.js +0 -1078
  858. package/dist/ZeniAccountNavBarPieces-CpFq6HPl.js +0 -89
  859. package/dist/ZeniAccountNavBarPieces-DsDIXD1t.cjs +0 -14
  860. package/dist/ZeniAccountPromoPage-BZyIcGdq.js +0 -522
  861. package/dist/ZeniAccountPromoPage-Bdf6cSCJ.cjs +0 -184
  862. package/dist/ZeniAccountSetupPage-DfWkFoYj.js +0 -309
  863. package/dist/ZeniAccountSetupPage-wQ6SR8Vb.cjs +0 -36
  864. package/dist/ZeniAvatar-DK0ZVwxS.cjs +0 -13
  865. package/dist/ZeniAvatar-DoDXPdFp.js +0 -34
  866. package/dist/ZeniCopyright-BXrMFMW9.js +0 -9
  867. package/dist/ZeniCopyright-MNKfUg4n.cjs +0 -1
  868. package/dist/ZeniDatePicker-Cb_Nybmu.js +0 -386
  869. package/dist/ZeniDatePicker-Ddlsz1gR.cjs +0 -187
  870. package/dist/ZeniTransferAmountSlider-18UKmEvn.cjs +0 -63
  871. package/dist/ZeniTransferAmountSlider-CnQJYowS.js +0 -215
  872. package/dist/analyticsHelper-B4DXRki4.js +0 -65
  873. package/dist/analyticsHelper-BtQRSSoq.cjs +0 -1
  874. package/dist/calculateSize-DTE1z4m9.cjs +0 -1
  875. package/dist/calculateSize-Pese86sN.js +0 -22
  876. package/dist/chartTypes--g8kFQlL.cjs +0 -1
  877. package/dist/chartTypes-COSgAHt0.js +0 -47
  878. package/dist/common-D6D0ynKd.cjs +0 -1
  879. package/dist/common-DCwgdoQQ.js +0 -22
  880. package/dist/commonDimensions-BKhS6mTi.js +0 -13
  881. package/dist/commonDimensions-n1ab669E.cjs +0 -1
  882. package/dist/detailCommon-CJQExMa7.js +0 -124
  883. package/dist/detailCommon-D6tI1StY.cjs +0 -38
  884. package/dist/downloadPdf-Bru9fczY.js +0 -32
  885. package/dist/downloadPdf-DsPqt0wC.cjs +0 -1
  886. package/dist/index-Bf5SMwBT.cjs +0 -21096
  887. package/dist/index-Dw5qKKzZ.js +0 -92062
  888. package/dist/mapLoadingInProgressToTreeNode-CTwY2DsK.cjs +0 -1
  889. package/dist/mapLoadingInProgressToTreeNode-DV8vIRaP.js +0 -25
  890. package/dist/mapSectionWithAcOnlyToTreeNode-DCJ__ek0.js +0 -388
  891. package/dist/mapSectionWithAcOnlyToTreeNode-NBPvWQyv.cjs +0 -1
  892. package/dist/mapSpacerToTreeNode-CA9dSVnx.js +0 -25
  893. package/dist/mapSpacerToTreeNode-m2SAwpsw.cjs +0 -1
  894. package/dist/mapTimeframeBalancesToTreeNode-BO_g8R5Q.js +0 -24
  895. package/dist/mapTimeframeBalancesToTreeNode-Be9Kacde.js +0 -24
  896. package/dist/mapTimeframeBalancesToTreeNode-CLJK_mU6.cjs +0 -1
  897. package/dist/mapTimeframeBalancesToTreeNode-D7QGS4hI.cjs +0 -1
  898. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A.js +0 -32
  899. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-g-p1sbdd.cjs +0 -1
  900. package/dist/sectionColor-BtccpyBr.cjs +0 -1
  901. package/dist/sectionColor-CYBlpRzU.js +0 -32
  902. package/dist/toCOABalancesWithID-DTZGQ336.js +0 -8
  903. package/dist/toCOABalancesWithID-moyyrvsJ.cjs +0 -1
  904. package/dist/toChartData-0R396wZQ.cjs +0 -1
  905. package/dist/toChartData-Dqwt7ax6.js +0 -76
  906. package/dist/uploadAttachment-6mcNX-M3.js +0 -952
  907. package/dist/uploadAttachment-D43jBbEB.cjs +0 -286
  908. package/dist/zeniDatePicker.helpers-Bd8d6N7M.cjs +0 -1
  909. package/dist/zeniDatePicker.helpers-DcKG3VR-.js +0 -14
@@ -0,0 +1,4530 @@
1
+ import { u as $t, d as at, m as Pe, j as t, an as zt, C as cn, k as dn, o as cr, g as un, aD as dr, h as ur, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-DtFedGku.js";
2
+ import It, { useEffect as ye, useState as Z, useRef as bt, useCallback as pn, useMemo as xt, useContext as mr } from "react";
3
+ import n from "@emotion/styled";
4
+ import { RoomProvider as pr } from "@liveblocks/react";
5
+ import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as hr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
6
+ import { u as ze, dz as St, iy as Wt, a as we, R as s, hv as $e, hx as Se, aH as yn, ii as Mo, fj as rt, aQ as ho, iz as fn, S as o, iA as uo, gJ as Ye, D as r, j as U, fQ as gr, o as xn, aB as yr, C as I, A as vt, av as go, Z as bn, G as yo, ag as fr, iB as Et, a5 as xr, az as fo, B as Ro, is as wn, at as zo, L as Vt, p as xo, z as br, E as wr, il as $r, hu as $n, t as Ft, fn as Sn, fu as Sr, hB as vr, _ as _t, e_ as vn, K as Cn, w as Tn, iC as Ue, hi as bo, aN as wo, aO as kn, aP as jn, hH as Cr, eP as Tr, ap as In, aV as kr, y as jr, aD as mo, iD as Ir, b as On, V as $o, ba as Or, bc as Pr, T as Br, i as Ar, N as Lr, iE as Mr, aE as Fo, k as Rr, ae as zr, ik as Fr, iq as No, m as Nr, eQ as Wr, e as Er, aG as Vr, iF as _r, X as Dr } from "./index-DLKZoZ-i.js";
7
+ import Pn from "./InvoiceUploadSection-DBwpUGKh.js";
8
+ import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as qr } from "./types-DyvtCprH.js";
9
+ import { L as Ur } from "./LabeledCreatableSingleSelectField-CIUJXI2r.js";
10
+ import { C as Hr } from "./CurrencySelectField-YszWK6th.js";
11
+ import { B as Kr } from "./BankAccountSection-DL7eRy10.js";
12
+ import { B as Gr, a as Yr } from "./BankAccountWarningSection-B9AaOZjv.js";
13
+ import { S as Jr } from "./radio-default-CiSgisfh.js";
14
+ const We = (e, i) => `${e}.${i}`, Eo = {
15
+ largeLabelWidth: new s(120, 120, 160),
16
+ paddingBottom: new s(r[3], r[2]),
17
+ paddingLeft: new s(r[3], r[4])
18
+ }, {
19
+ spendManagement: {
20
+ reimbursement: { reimbursementDetail: je }
21
+ },
22
+ dateFormat: Qr,
23
+ common: Zr
24
+ } = we.getLocalizedStrings(), Xr = ({
25
+ lineIndex: e,
26
+ mileage: i,
27
+ classList: a,
28
+ defaultCurrency: d,
29
+ sectionId: p,
30
+ isReimbursementCommentingEnabled: v,
31
+ isDisabled: m,
32
+ isAddReimbursementDisabled: S,
33
+ companyMileageConfigInfo: x,
34
+ reimbursementId: l,
35
+ classHierarchyList: C
36
+ }) => {
37
+ const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
38
+ formState: { errors: T },
39
+ getValues: P,
40
+ trigger: H
41
+ } = at(), B = Zr.strings.empty, k = P(
42
+ We(p, "distanceInMiles")
43
+ ), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
44
+ (L) => L.classId === te?.selectedOption
45
+ ), re = We(p, "class"), Y = Pe(T, re);
46
+ ye(() => {
47
+ te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
48
+ }, [
49
+ te?.selectedOption,
50
+ ne?.isDeleted,
51
+ a,
52
+ re,
53
+ H
54
+ ]);
55
+ const K = {
56
+ application: "dashboard",
57
+ companyId: c.currentTenant?.companyId,
58
+ tab: "reimbursement",
59
+ entityId: l
60
+ }, F = (L) => a.filter((Q) => Q.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
61
+ valueContainer: (L) => ({
62
+ ...L,
63
+ padding: `2px ${o.sp3} !important`,
64
+ overflow: "unset"
65
+ }),
66
+ singleValue: () => ({
67
+ margin: 0
68
+ })
69
+ };
70
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
71
+ /* @__PURE__ */ t.jsx(
72
+ $e,
73
+ {
74
+ isThreadAllowed: v && l != null,
75
+ dashboardTabKey: Se({
76
+ type: "details",
77
+ key: `${e}.mileage.transactionDate`
78
+ }),
79
+ roomId: $,
80
+ companyId: c.currentTenant?.companyId ?? B,
81
+ companyName: c.currentTenant?.companyName ?? B,
82
+ entityId: l,
83
+ dashboardOptionType: "reimbursement",
84
+ filterMetaData: {
85
+ ...K,
86
+ entityType: `reimbursement.details.${Ie(
87
+ "transactionDate",
88
+ e,
89
+ "mileage"
90
+ )}`
91
+ },
92
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
93
+ children: /* @__PURE__ */ t.jsx(
94
+ yn,
95
+ {
96
+ isDisabled: m,
97
+ label: {
98
+ label: je.transactionDate,
99
+ width: M
100
+ },
101
+ style: {
102
+ paddingBottom: Eo.paddingBottom.valuePx(b),
103
+ width: "auto"
104
+ },
105
+ dateField: {
106
+ name: We(p, "transactionDate"),
107
+ placeholder: je.datePlaceholder,
108
+ defaultValue: i?.transactionDate,
109
+ dateFormat: Qr.visual.defaultInput,
110
+ autoComplete: "off",
111
+ maxDate: po(),
112
+ registerOptions: {
113
+ required: !0,
114
+ validate: (L) => !!L
115
+ }
116
+ }
117
+ }
118
+ )
119
+ }
120
+ ),
121
+ /* @__PURE__ */ t.jsx(Ot, {}),
122
+ /* @__PURE__ */ t.jsx(
123
+ $e,
124
+ {
125
+ isThreadAllowed: v && l != null,
126
+ dashboardTabKey: Se({
127
+ type: "details",
128
+ key: `${e}.mileage.distanceInMiles`
129
+ }),
130
+ roomId: $,
131
+ companyId: c.currentTenant?.companyId ?? B,
132
+ companyName: c.currentTenant?.companyName ?? B,
133
+ entityId: l,
134
+ dashboardOptionType: "reimbursement",
135
+ filterMetaData: {
136
+ ...K,
137
+ entityType: `reimbursement.details.${Ie(
138
+ "distanceInMiles",
139
+ e,
140
+ "mileage"
141
+ )}`
142
+ },
143
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
144
+ children: /* @__PURE__ */ t.jsx(
145
+ Mo,
146
+ {
147
+ isDisabled: S ? "disabled" : void 0,
148
+ style: { width: "auto" },
149
+ label: { label: je.distanceInMiles, width: M },
150
+ formattedTextField: {
151
+ type: "number",
152
+ name: We(p, "distanceInMiles"),
153
+ placeholder: je.addMiles,
154
+ defaultValue: i.distanceInMiles,
155
+ registerOptions: {
156
+ required: !0,
157
+ validate: (L) => L != null ? L > 0 : !0,
158
+ min: 0.01
159
+ },
160
+ returnValueType: "floatValue",
161
+ allowNegative: !1,
162
+ isNumericString: !1,
163
+ decimalScale: 2
164
+ }
165
+ }
166
+ )
167
+ }
168
+ ),
169
+ /* @__PURE__ */ t.jsx(Ot, {}),
170
+ /* @__PURE__ */ t.jsx(
171
+ $e,
172
+ {
173
+ isThreadAllowed: v && l != null,
174
+ dashboardTabKey: Se({
175
+ type: "details",
176
+ key: `${e}.mileage.amount`
177
+ }),
178
+ roomId: $,
179
+ companyId: c.currentTenant?.companyId ?? B,
180
+ companyName: c.currentTenant?.companyName ?? B,
181
+ entityId: l,
182
+ dashboardOptionType: "reimbursement",
183
+ filterMetaData: {
184
+ ...K,
185
+ entityType: `reimbursement.details.${Ie(
186
+ "amount",
187
+ e,
188
+ "mileage"
189
+ )}`
190
+ },
191
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
192
+ children: /* @__PURE__ */ t.jsx(
193
+ Mo,
194
+ {
195
+ isDisabled: "disabled",
196
+ label: {
197
+ label: je.amount,
198
+ width: M
199
+ },
200
+ formattedTextField: {
201
+ type: "number",
202
+ name: We(`${p}.amount`, "amount"),
203
+ defaultValue: i.amount?.amount,
204
+ placeholder: rt(je.amount),
205
+ returnValueType: "floatValue",
206
+ prefix: i.amount?.currencySymbol,
207
+ allowNegative: !1,
208
+ isNumericString: !1,
209
+ registerOptions: {
210
+ required: !0,
211
+ validate: (L) => L != null ? L > 0 : !0
212
+ },
213
+ autoComplete: "off",
214
+ decimalSeparator: ".",
215
+ decimalScale: 2,
216
+ fixedDecimalScale: !1,
217
+ thousandSeparator: !0
218
+ },
219
+ style: { width: "auto" },
220
+ additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
221
+ }
222
+ )
223
+ }
224
+ ),
225
+ /* @__PURE__ */ t.jsx(Ot, {}),
226
+ /* @__PURE__ */ t.jsx(
227
+ $e,
228
+ {
229
+ isThreadAllowed: v && l != null,
230
+ dashboardTabKey: Se({
231
+ type: "details",
232
+ key: `${e}.mileage.memo`
233
+ }),
234
+ roomId: $,
235
+ companyId: c.currentTenant?.companyId ?? B,
236
+ companyName: c.currentTenant?.companyName ?? B,
237
+ entityId: l,
238
+ dashboardOptionType: "reimbursement",
239
+ filterMetaData: {
240
+ ...K,
241
+ entityType: `reimbursement.details.${Ie(
242
+ "memo",
243
+ e,
244
+ "mileage"
245
+ )}`
246
+ },
247
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
248
+ children: /* @__PURE__ */ t.jsx(
249
+ ho,
250
+ {
251
+ isDisabled: m,
252
+ label: {
253
+ label: je.memo,
254
+ width: M
255
+ },
256
+ style: { width: "auto" },
257
+ text: {
258
+ type: "text",
259
+ name: We(p, "memo"),
260
+ placeholder: rt(je.memo),
261
+ defaultValue: i.memo,
262
+ autoComplete: "off",
263
+ options: {
264
+ pattern: fn
265
+ }
266
+ }
267
+ }
268
+ )
269
+ }
270
+ ),
271
+ /* @__PURE__ */ t.jsx(Ot, {}),
272
+ /* @__PURE__ */ t.jsx(
273
+ $e,
274
+ {
275
+ isThreadAllowed: v && l != null,
276
+ dashboardTabKey: Se({
277
+ type: "details",
278
+ key: `${e}.mileage.class`
279
+ }),
280
+ roomId: $,
281
+ companyId: c.currentTenant?.companyId ?? B,
282
+ companyName: c.currentTenant?.companyName ?? B,
283
+ entityId: l,
284
+ dashboardOptionType: "reimbursement",
285
+ filterMetaData: {
286
+ ...K,
287
+ entityType: `reimbursement.details.${Ie(
288
+ "class",
289
+ e,
290
+ "mileage"
291
+ )}`
292
+ },
293
+ fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
294
+ style: {
295
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
296
+ },
297
+ children: /* @__PURE__ */ t.jsx(
298
+ uo,
299
+ {
300
+ isLoading: !1,
301
+ label: {
302
+ label: je.department,
303
+ width: M
304
+ },
305
+ additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
306
+ groupedSingleSelectField: {
307
+ shouldShowChevronIcon: !1,
308
+ name: We(p, "class"),
309
+ placeholder: rt(je.department),
310
+ valueToId: (L) => F(L),
311
+ defaultValue: {
312
+ selectedOption: J?.classId,
313
+ allOptions: Ye(C, [])
314
+ },
315
+ style: {
316
+ width: "100%"
317
+ },
318
+ customStyleConfig: q,
319
+ registerOptions: {
320
+ required: !0,
321
+ validate: (L) => L?.selectedOption == null ? !1 : a.find(
322
+ (Q) => Q.classId === L?.selectedOption
323
+ )?.isDeleted === !0 ? je.deletedClassError : !0
324
+ }
325
+ },
326
+ style: {
327
+ borderBottom: `1px solid ${O.colors.grey3}`,
328
+ borderBottomLeftRadius: o.sp2,
329
+ borderBottomRightRadius: o.sp2
330
+ },
331
+ fullWidthSelect: !0
332
+ },
333
+ We(p, "class")
334
+ )
335
+ }
336
+ )
337
+ ] });
338
+ }, Ot = n.div`
339
+ display: flex;
340
+ flex: 1;
341
+ background-color: ${(e) => e.theme.colors.grey3};
342
+ min-height: 1px;
343
+ max-height: 1px;
344
+ `, Vo = {
345
+ amounWidth: new s(50, 30),
346
+ currencyWidth: new s(50, 70)
347
+ };
348
+ function ei({
349
+ name: e,
350
+ placeHolder: i,
351
+ defaultValue: a,
352
+ isDisabled: d,
353
+ showAmountCurrencyError: p,
354
+ style: v,
355
+ allCurrencies: m
356
+ }) {
357
+ const [S, x] = Z(!1), {
358
+ getValues: l,
359
+ formState: { errors: C }
360
+ } = at(), b = $t(), c = ze(), y = d != null, $ = l(e), O = `${$?.amount} ${$?.currency?.selectedOption}`, T = Pe(C, e) && zt(C, `${e}.amount`) != null, P = Pe(C, e) && zt(C, `${e}.currency`) != null, H = p === !0 ? T || P : !1, B = !H && S === !1;
361
+ return ye(() => {
362
+ B === !1 && x(!0);
363
+ }, [B]), /* @__PURE__ */ t.jsx(
364
+ cn,
365
+ {
366
+ onClickAway: () => y === !1 && !H && x(!1),
367
+ children: /* @__PURE__ */ t.jsx(
368
+ oi,
369
+ {
370
+ style: v,
371
+ isDisabled: y,
372
+ tabIndex: B && !y ? 0 : void 0,
373
+ onClick: () => y === !1 && x(!0),
374
+ "data-testid": U("currency-amount-field", e),
375
+ children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
376
+ $?.amount != null ? /* @__PURE__ */ t.jsx(
377
+ _o,
378
+ {
379
+ className: "amount-field",
380
+ isVisible: B,
381
+ children: O
382
+ }
383
+ ) : /* @__PURE__ */ t.jsx(
384
+ _o,
385
+ {
386
+ className: "amount-field amount-placeholder",
387
+ isVisible: B,
388
+ children: i?.name
389
+ }
390
+ ),
391
+ /* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
392
+ /* @__PURE__ */ t.jsx(
393
+ gr,
394
+ {
395
+ type: "number",
396
+ name: `${e}.amount`,
397
+ defaultValue: a?.amount,
398
+ placeholder: i?.amount,
399
+ returnValueType: "floatValue",
400
+ allowNegative: !1,
401
+ isNumericString: !1,
402
+ registerOptions: {
403
+ required: !0,
404
+ validate: (k) => k != null ? k > 0 : !0
405
+ },
406
+ autoComplete: "off",
407
+ decimalSeparator: ".",
408
+ decimalScale: 2,
409
+ fixedDecimalScale: !1,
410
+ thousandSeparator: !0,
411
+ isDisabled: d,
412
+ style: {
413
+ display: "flex",
414
+ flexGrow: 1,
415
+ width: Vo.amounWidth.valuePercentage(c),
416
+ cursor: "inherit"
417
+ },
418
+ bgColor: b.colors.background,
419
+ isFieldError: T,
420
+ shouldHighlightZeroAmount: !0
421
+ }
422
+ ),
423
+ B ? null : /* @__PURE__ */ t.jsx(ni, {}),
424
+ /* @__PURE__ */ t.jsx(
425
+ Hr,
426
+ {
427
+ name: `${e}.currency`,
428
+ registerOptions: {
429
+ validate: (k) => k != null && k.selectedOption != null
430
+ },
431
+ defaultValue: {
432
+ allOptions: m.map((k) => ({
433
+ label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
434
+ value: k.currencyCode,
435
+ countryCode: k.countryCode
436
+ })),
437
+ selectedOption: a?.currencyCode
438
+ },
439
+ controlStyle: {
440
+ justifyContent: "flex-start",
441
+ backgroundColor: b.colors.background
442
+ },
443
+ isDisabled: d,
444
+ style: {
445
+ width: Vo.currencyWidth.valuePercentage(c),
446
+ flexGrow: 1
447
+ },
448
+ isOptionRemovable: !1
449
+ }
450
+ )
451
+ ] })
452
+ ] })
453
+ }
454
+ )
455
+ }
456
+ );
457
+ }
458
+ const ti = n.div`
459
+ display: ${(e) => e.isVisible ? "flex" : "none"};
460
+ width: 100%;
461
+ input {
462
+ text-align: left;
463
+ }
464
+ `, oi = n.div`
465
+ display: flex;
466
+ align-items: center;
467
+ justify-content: flex-end;
468
+ position: relative;
469
+ width: 100%;
470
+ background-color: ${(e) => e.theme.colors.grey5};
471
+ outline: none;
472
+ outline-width: 0;
473
+ input {
474
+ text-align: right;
475
+ }
476
+ `, ni = n.div`
477
+ background-color: ${(e) => e.theme.colors.grey5};
478
+ min-width: ${o.sp3};
479
+ `, _o = n(xn)`
480
+ display: ${(e) => e.isVisible ? "flex" : "none"};
481
+ padding: 0 ${o.sp3};
482
+ border-radius: ${o.sp1};
483
+ height: 100%;
484
+ align-items: center;
485
+ width: 100%;
486
+ justify-content: flex-end;
487
+ color: ${(e) => e.theme.colors.primary};
488
+ &.amount-placeholder {
489
+ color: ${(e) => e.theme.colors.grey1};
490
+ }
491
+ `, De = {
492
+ width: new s(343, 580, 726),
493
+ height: new s(r[6], r[6]),
494
+ controlHeight: new s(r[6], r[6]),
495
+ paddingTopBottom: new s(r[2], r[2]),
496
+ marginTop: new s(r[2], r[2]),
497
+ marginBottom: new s(r[2], r[2]),
498
+ marginRight: new s(r[2], r[2]),
499
+ labelMarginLeft: new s(r[3], r[4]),
500
+ labelMarginRight: new s(r[3], r[4]),
501
+ labelMarginTop: new s(r[2], r[2])
502
+ }, Bn = {
503
+ infoLabel: new go("extraSmallRegular", "smallRegular")
504
+ };
505
+ function ri({
506
+ isDisabled: e,
507
+ label: i,
508
+ currencyAmountField: a,
509
+ style: d,
510
+ errorInfoLabel: p,
511
+ isAdditionalInfoLabelLoading: v,
512
+ showAdditionalLabelTooltip: m = !1,
513
+ additionalLabelTooltip: S,
514
+ additionalInfoLabel: x,
515
+ showAdditionalInfoLabel: l = !0
516
+ }) {
517
+ const C = ze(), {
518
+ formState: { errors: b }
519
+ } = at(), c = Pe(b, a.name) && zt(b, `${a.name}.amount`) != null, y = Pe(b, a.name) && zt(b, `${a.name}.currency`) != null, $ = a.showAmountCurrencyError === !0 ? c || y : !1, O = c || y || $, T = () => {
520
+ if (v === !0)
521
+ return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
522
+ if (l && x || $) {
523
+ let P = null;
524
+ return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
525
+ bn,
526
+ {
527
+ placement: C === "small" ? "bottom" : "right",
528
+ maxWidth: "364px",
529
+ title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
530
+ children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
531
+ }
532
+ )), /* @__PURE__ */ t.jsxs(
533
+ di,
534
+ {
535
+ size: C,
536
+ isError: $,
537
+ hasToolTip: m,
538
+ children: [
539
+ P,
540
+ x
541
+ ]
542
+ }
543
+ );
544
+ }
545
+ };
546
+ return /* @__PURE__ */ t.jsxs(
547
+ ii,
548
+ {
549
+ size: C,
550
+ style: d,
551
+ isDisabled: e != null,
552
+ isAmountError: c,
553
+ isCurrencyError: y,
554
+ "data-testid": U(
555
+ "labeled-currency-amount-field",
556
+ a.name
557
+ ),
558
+ children: [
559
+ /* @__PURE__ */ t.jsx(
560
+ yr,
561
+ {
562
+ isDisabled: e,
563
+ label: i.label,
564
+ htmlFor: a.name,
565
+ style: {
566
+ marginLeft: De.labelMarginLeft.value(C),
567
+ marginRight: De.labelMarginRight.value(C),
568
+ marginTop: De.labelMarginTop.value(C),
569
+ width: i.width ?? "auto"
570
+ }
571
+ }
572
+ ),
573
+ /* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
574
+ /* @__PURE__ */ t.jsx(
575
+ ei,
576
+ {
577
+ ...a,
578
+ isDisabled: e,
579
+ style: {
580
+ flexGrow: 1,
581
+ height: De.controlHeight.value(C)
582
+ }
583
+ }
584
+ ),
585
+ O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
586
+ T()
587
+ ] })
588
+ ]
589
+ }
590
+ );
591
+ }
592
+ const ii = n.div`
593
+ display: flex;
594
+ flex-direction: row;
595
+ align-items: flex-start;
596
+ background-color: ${(e) => e.theme.colors.grey5};
597
+ width: ${(e) => De.width.valuePx(e.size)};
598
+ min-height: ${(e) => De.height.valuePx(e.size)};
599
+ padding-right: ${(e) => De.marginRight.valuePx(e.size)};
600
+ padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
601
+ padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
602
+
603
+ :first-of-type {
604
+ border-top-left-radius: inherit;
605
+ border-top-right-radius: inherit;
606
+ }
607
+
608
+ :last-of-type {
609
+ border-bottom-left-radius: inherit;
610
+ border-bottom-right-radius: inherit;
611
+ }
612
+
613
+ &:focus-within {
614
+ z-index: 2;
615
+ outline: 1px solid ${(e) => e.theme.colors.primary};
616
+
617
+ .amount-field {
618
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
619
+ }
620
+
621
+ input:nth-of-type(1) {
622
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
623
+ }
624
+
625
+ input:nth-of-type(2) {
626
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
627
+ }
628
+ }
629
+ input {
630
+ text-align: left;
631
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
632
+ }
633
+
634
+ input:nth-of-type(1) {
635
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
636
+ }
637
+
638
+ input:nth-of-type(2) {
639
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
640
+ }
641
+
642
+ &:hover {
643
+ z-index: 1;
644
+ outline: 1px solid
645
+ ${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
646
+ input,
647
+ .amount-field {
648
+ background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
649
+ }
650
+
651
+ input:nth-of-type(1) {
652
+ background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
653
+ }
654
+
655
+ input:nth-of-type(2) {
656
+ background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
657
+ }
658
+ }
659
+ `, ai = n.label`
660
+ color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
661
+ width: auto;
662
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
663
+ padding-right: ${o.sp3};
664
+ text-align: right;
665
+ `, li = n.div`
666
+ display: flex;
667
+ width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
668
+ justify-content: flex-end;
669
+ flex-direction: column;
670
+ position: relative;
671
+ `, si = n(yo)`
672
+ padding: 12px;
673
+ color: ${(e) => e.theme.colors.grey1};
674
+ background: ${(e) => e.theme.colors.overlayColor};
675
+ border-radius: ${o.sp1};
676
+ `, ci = n.div`
677
+ padding-right: ${o.sp3};
678
+ padding-top: ${o.sp1};
679
+ display: flex;
680
+ justify-content: flex-end;
681
+ `, di = n.label`
682
+ display: flex;
683
+ justify-content: flex-end;
684
+ color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
685
+ &:hover {
686
+ color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
687
+ }
688
+ ${(e) => `${Bn.infoLabel.style(e.size)}`};
689
+ padding-right: ${o.sp3};
690
+ text-align: right;
691
+ margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
692
+ `, ui = n.div`
693
+ display: flex;
694
+ margin-right: ${o.sp2};
695
+ margin-top: 2px;
696
+ align-items: center;
697
+ `, mi = n(fr)`
698
+ width: ${o.sp3};
699
+ height: ${o.sp3};
700
+ color: inherit;
701
+ `, ge = (e, i) => `${e}.${i}`, Mt = {
702
+ largeLabelWidth: new s(120, 120, 160),
703
+ smallLabelWidth: new s(85, 85, 160),
704
+ paddingBottom: new s(r[3], r[2]),
705
+ paddingLeft: new s(r[3], r[4]),
706
+ autoFillIconLeft: new s(-r[2], -r[4])
707
+ }, {
708
+ dateFormat: pi,
709
+ common: An,
710
+ spendManagement: {
711
+ reimbursement: { reimbursementDetail: oe }
712
+ }
713
+ } = we.getLocalizedStrings(), {
714
+ strings: { empty: ae }
715
+ } = An, hi = (e, i) => {
716
+ const a = e.slice(1);
717
+ let d = !1;
718
+ return a.forEach((p) => {
719
+ p.account?.qboId != null && p.account?.qboId === i && (d = !0);
720
+ }), d;
721
+ }, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
722
+ lineIndex: e,
723
+ outOfPocket: i,
724
+ accountList: a,
725
+ classList: d,
726
+ merchantList: p,
727
+ isAddReimbursementDisabled: v,
728
+ sectionId: m,
729
+ isReimbursementCommentingEnabled: S,
730
+ isDisabled: x,
731
+ autoFields: l = [],
732
+ accountsHierarchyList: C,
733
+ classHierarchyList: b,
734
+ reimbursementId: c,
735
+ tentativeMerchantName: y,
736
+ allCurrencies: $,
737
+ uncategorizedAccounts: O
738
+ }) => {
739
+ const T = ze(), P = St(), H = Wt(), B = $t(), {
740
+ formState: { errors: k },
741
+ getValues: M,
742
+ trigger: te
743
+ } = at(), ne = M(ge(m, "class")), re = d.find(
744
+ (h) => h.classId === ne?.selectedOption
745
+ ), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
746
+ (h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
747
+ ), q = ge(m, "account"), L = Pe(k, q);
748
+ ye(() => {
749
+ ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
750
+ }, [
751
+ ne?.selectedOption,
752
+ re?.isDeleted,
753
+ d,
754
+ Y,
755
+ te
756
+ ]), ye(() => {
757
+ F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
758
+ }, [
759
+ F?.selectedOption,
760
+ J?.isDeleted,
761
+ a,
762
+ q,
763
+ te
764
+ ]);
765
+ const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
766
+ !i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
767
+ !hi(
768
+ i.recommendations,
769
+ i.account
770
+ ), Q = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
771
+ (h) => h.id ?? ae
772
+ ), ue = {
773
+ application: "dashboard",
774
+ companyId: P.currentTenant?.companyId,
775
+ tab: "reimbursement",
776
+ entityId: c
777
+ }, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
778
+ (h) => h.qboId === i.account
779
+ ), Ae = (h) => [
780
+ O.expense?.qboId,
781
+ O.income?.qboId
782
+ ].includes(h), Le = d.find((h) => h.classId === i.class), me = {
783
+ valueContainer: (h) => ({
784
+ ...h,
785
+ padding: `2px ${o.sp3} !important`,
786
+ overflow: "unset"
787
+ }),
788
+ singleValue: () => ({
789
+ margin: 0
790
+ })
791
+ }, Me = (h) => a.filter((he) => he.qboId === h)[0]?.qboId, pe = (h) => d.filter((he) => he.classId === h)[0]?.accountingClassNumber, ve = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace(
792
+ "__based__",
793
+ gi(i?.recommendedAccount?.reason ?? ae)
794
+ ), Je = Et(
795
+ C,
796
+ i.recommendations
797
+ );
798
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
799
+ y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
800
+ /* @__PURE__ */ t.jsx(
801
+ $e,
802
+ {
803
+ isThreadAllowed: S && c != null,
804
+ dashboardTabKey: Se({
805
+ type: "details",
806
+ key: `${e}.out_of_pocket.merchant`
807
+ }),
808
+ roomId: fe,
809
+ companyId: P.currentTenant?.companyId ?? ae,
810
+ companyName: P.currentTenant?.companyName ?? ae,
811
+ entityId: c,
812
+ dashboardOptionType: "reimbursement",
813
+ filterMetaData: {
814
+ ...ue,
815
+ entityType: `reimbursement.details.${Ie(
816
+ "merchant",
817
+ e,
818
+ "out_of_pocket"
819
+ )}`
820
+ },
821
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
822
+ children: /* @__PURE__ */ t.jsx(
823
+ Ur,
824
+ {
825
+ isDisabled: x != null || v ? "disabled" : void 0,
826
+ label: {
827
+ label: oe.merchant,
828
+ width: V
829
+ },
830
+ style: {
831
+ width: "auto"
832
+ },
833
+ creatableSingleSelectField: {
834
+ name: ge(m, "merchant"),
835
+ placeholder: oe.merchantPlaceholder,
836
+ defaultValue: {
837
+ selectedOption: i.merchant ?? ae,
838
+ allOptions: _e
839
+ },
840
+ registerOptions: {
841
+ required: !0,
842
+ validate: (h) => !!h.selectedOption
843
+ }
844
+ },
845
+ isOptionRemovable: !0,
846
+ addIconInCreateLabel: !0,
847
+ getLabelForId: le
848
+ }
849
+ )
850
+ }
851
+ ),
852
+ /* @__PURE__ */ t.jsx(Pt, {}),
853
+ l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
854
+ /* @__PURE__ */ t.jsx(
855
+ $e,
856
+ {
857
+ isThreadAllowed: S && c != null,
858
+ dashboardTabKey: Se({
859
+ type: "details",
860
+ key: `${e}.out_of_pocket.transactionDate`
861
+ }),
862
+ roomId: fe,
863
+ companyId: P.currentTenant?.companyId ?? ae,
864
+ companyName: P.currentTenant?.companyName ?? ae,
865
+ entityId: c,
866
+ dashboardOptionType: "reimbursement",
867
+ filterMetaData: {
868
+ ...ue,
869
+ entityType: `reimbursement.details.${Ie(
870
+ "transactionDate",
871
+ e,
872
+ "out_of_pocket"
873
+ )}`
874
+ },
875
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
876
+ children: /* @__PURE__ */ t.jsx(
877
+ yn,
878
+ {
879
+ isDisabled: x,
880
+ label: {
881
+ label: oe.transactionDate,
882
+ width: V
883
+ },
884
+ style: {
885
+ paddingBottom: Mt.paddingBottom.valuePx(T),
886
+ width: "auto"
887
+ },
888
+ dateField: {
889
+ name: ge(m, "transactionDate"),
890
+ placeholder: oe.datePlaceholder,
891
+ defaultValue: i?.transactionDate,
892
+ dateFormat: pi.visual.defaultInput,
893
+ autoComplete: "off",
894
+ maxDate: po(),
895
+ registerOptions: {
896
+ required: !0,
897
+ validate: (h) => !!h
898
+ }
899
+ }
900
+ }
901
+ )
902
+ }
903
+ ),
904
+ /* @__PURE__ */ t.jsx(Pt, {}),
905
+ l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
906
+ /* @__PURE__ */ t.jsx(
907
+ $e,
908
+ {
909
+ isThreadAllowed: S && c != null,
910
+ dashboardTabKey: Se({
911
+ type: "details",
912
+ key: `${e}.out_of_pocket.amount`
913
+ }),
914
+ roomId: fe,
915
+ companyId: P.currentTenant?.companyId ?? ae,
916
+ companyName: P.currentTenant?.companyName ?? ae,
917
+ entityId: c,
918
+ dashboardOptionType: "reimbursement",
919
+ filterMetaData: {
920
+ ...ue,
921
+ entityType: `reimbursement.details.${Ie(
922
+ "amount",
923
+ e,
924
+ "out_of_pocket"
925
+ )}`
926
+ },
927
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
928
+ children: /* @__PURE__ */ t.jsx(
929
+ ri,
930
+ {
931
+ isDisabled: x != null || v ? "disabled" : void 0,
932
+ label: { label: oe.amount, width: de },
933
+ style: { width: "auto" },
934
+ currencyAmountField: {
935
+ style: { height: o.sp6 },
936
+ name: `${m}.amount`,
937
+ defaultValue: {
938
+ amount: i.amount.amount,
939
+ currencyCode: i.amount.currencyCode,
940
+ currencySymbol: i.amount.currencySymbol
941
+ },
942
+ placeHolder: {
943
+ amount: oe.addAmount,
944
+ name: oe.addAmount
945
+ },
946
+ allCurrencies: $,
947
+ showAmountCurrencyError: !0
948
+ },
949
+ showAdditionalInfoLabel: !0,
950
+ showAdditionalLabelTooltip: !0,
951
+ additionalLabelTooltip: oe.amountExchangeRateTooltip,
952
+ isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
953
+ additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${xr(
954
+ "0,0[.]00",
955
+ i.homeCurrencyDetails
956
+ )} ${i.homeCurrencyDetails?.currencyCode}` : void 0
957
+ }
958
+ )
959
+ }
960
+ ),
961
+ /* @__PURE__ */ t.jsx(Pt, {}),
962
+ l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
963
+ /* @__PURE__ */ t.jsx(
964
+ $e,
965
+ {
966
+ isThreadAllowed: S && c != null,
967
+ dashboardTabKey: Se({
968
+ type: "details",
969
+ key: `${e}.out_of_pocket.memo`
970
+ }),
971
+ roomId: fe,
972
+ companyId: P.currentTenant?.companyId ?? ae,
973
+ companyName: P.currentTenant?.companyName ?? ae,
974
+ entityId: c,
975
+ dashboardOptionType: "reimbursement",
976
+ filterMetaData: {
977
+ ...ue,
978
+ entityType: `reimbursement.details.${Ie(
979
+ "memo",
980
+ e,
981
+ "out_of_pocket"
982
+ )}`
983
+ },
984
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
985
+ children: /* @__PURE__ */ t.jsx(
986
+ ho,
987
+ {
988
+ isDisabled: x,
989
+ label: {
990
+ label: oe.memo,
991
+ width: V
992
+ },
993
+ style: { width: "auto" },
994
+ text: {
995
+ type: "text",
996
+ name: ge(m, "memo"),
997
+ placeholder: rt(oe.memo),
998
+ defaultValue: i.memo,
999
+ autoComplete: "off",
1000
+ options: {
1001
+ pattern: fn
1002
+ }
1003
+ }
1004
+ }
1005
+ )
1006
+ }
1007
+ ),
1008
+ /* @__PURE__ */ t.jsx(Pt, {}),
1009
+ l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1010
+ /* @__PURE__ */ t.jsx(
1011
+ $e,
1012
+ {
1013
+ isThreadAllowed: S && c != null,
1014
+ dashboardTabKey: Se({
1015
+ type: "details",
1016
+ key: `${e}.out_of_pocket.account`
1017
+ }),
1018
+ roomId: fe,
1019
+ companyId: P.currentTenant?.companyId ?? ae,
1020
+ companyName: P.currentTenant?.companyName ?? ae,
1021
+ entityId: c,
1022
+ dashboardOptionType: "reimbursement",
1023
+ filterMetaData: {
1024
+ ...ue,
1025
+ entityType: `reimbursement.details.${Ie(
1026
+ "account",
1027
+ e,
1028
+ "out_of_pocket"
1029
+ )}`
1030
+ },
1031
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1032
+ children: /* @__PURE__ */ t.jsx(
1033
+ uo,
1034
+ {
1035
+ label: {
1036
+ label: oe.category,
1037
+ width: V
1038
+ },
1039
+ additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
1040
+ groupedSingleSelectField: {
1041
+ shouldShowChevronIcon: ce || Q,
1042
+ name: ge(m, "account"),
1043
+ placeholder: oe.categoryPlaceholder,
1044
+ valueToId: (h) => Me(h),
1045
+ defaultValue: {
1046
+ selectedOption: Be?.qboId ?? Be?.accountId,
1047
+ allOptions: Je
1048
+ },
1049
+ style: {
1050
+ width: "100%"
1051
+ },
1052
+ customStyleConfig: me,
1053
+ registerOptions: {
1054
+ required: !0,
1055
+ validate: (h) => h?.selectedOption == null ? !1 : a.find(
1056
+ (he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
1057
+ )?.isDeleted === !0 ? oe.deletedCategoryError : !0
1058
+ }
1059
+ },
1060
+ disableCurrentOption: Ae,
1061
+ style: {
1062
+ borderBottom: `1px solid ${B.colors.grey3}`,
1063
+ minHeight: o.sp6,
1064
+ boxSizing: "initial"
1065
+ },
1066
+ fullWidthSelect: !0,
1067
+ isLoading: i.isRecommendationLoading,
1068
+ recommendationCheckboxField: ce ? {
1069
+ tooltipProps: { text: ve },
1070
+ label: {
1071
+ label: i.recommendedAccount?.accountName ?? ae
1072
+ },
1073
+ checkBoxField: {
1074
+ name: ge(m, "isCategoryUpdateSelected"),
1075
+ defaultChecked: !!i.isCategoryUpdateSelected
1076
+ }
1077
+ } : void 0,
1078
+ retainCheckboxField: Q ? {
1079
+ label: {
1080
+ label: i.retainedAccount?.accountName ?? ae
1081
+ },
1082
+ checkBoxField: {
1083
+ name: ge(m, "isRetainedCategorySelected"),
1084
+ defaultChecked: !!i.isRetainedCategorySelected
1085
+ }
1086
+ } : void 0
1087
+ },
1088
+ ge(m, "account")
1089
+ )
1090
+ }
1091
+ ),
1092
+ l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1093
+ /* @__PURE__ */ t.jsx(
1094
+ $e,
1095
+ {
1096
+ isThreadAllowed: S && c != null,
1097
+ dashboardTabKey: Se({
1098
+ type: "details",
1099
+ key: `${e}.out_of_pocket.class`
1100
+ }),
1101
+ roomId: fe,
1102
+ companyId: P.currentTenant?.companyId ?? ae,
1103
+ companyName: P.currentTenant?.companyName ?? ae,
1104
+ entityId: c,
1105
+ dashboardOptionType: "reimbursement",
1106
+ filterMetaData: {
1107
+ ...ue,
1108
+ entityType: `reimbursement.details.${Ie(
1109
+ "class",
1110
+ e,
1111
+ "out_of_pocket"
1112
+ )}`
1113
+ },
1114
+ fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1115
+ style: {
1116
+ borderRadius: `0 0 ${o.sp2} ${o.sp2}`
1117
+ },
1118
+ children: /* @__PURE__ */ t.jsx(
1119
+ uo,
1120
+ {
1121
+ isLoading: !1,
1122
+ label: {
1123
+ label: oe.department,
1124
+ width: V
1125
+ },
1126
+ additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
1127
+ groupedSingleSelectField: {
1128
+ shouldShowChevronIcon: !1,
1129
+ name: ge(m, "class"),
1130
+ placeholder: rt(oe.department),
1131
+ valueToId: (h) => pe(h),
1132
+ defaultValue: {
1133
+ selectedOption: Le?.classId,
1134
+ allOptions: Ye(b, [])
1135
+ },
1136
+ style: {
1137
+ width: "100%"
1138
+ },
1139
+ customStyleConfig: me,
1140
+ registerOptions: {
1141
+ required: !0,
1142
+ validate: (h) => h?.selectedOption == null ? !1 : d.find(
1143
+ (he) => he.classId === h?.selectedOption
1144
+ )?.isDeleted === !0 ? oe.deletedClassError : !0
1145
+ }
1146
+ },
1147
+ style: {
1148
+ borderBottom: `1px solid ${B.colors.grey3}`,
1149
+ borderBottomLeftRadius: o.sp2,
1150
+ borderBottomRightRadius: o.sp2
1151
+ },
1152
+ fullWidthSelect: !0
1153
+ },
1154
+ ge(m, "class")
1155
+ )
1156
+ }
1157
+ )
1158
+ ] });
1159
+ }, ct = n.span`
1160
+ position: relative;
1161
+ `, dt = n(fo)`
1162
+ color: ${(e) => e.theme.colors.primary};
1163
+ width: ${o.sp3};
1164
+ height: ${o.sp3};
1165
+ `, ut = n.div`
1166
+ z-index: 2;
1167
+ left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
1168
+ position: absolute;
1169
+ top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
1170
+ `, Pt = n.div`
1171
+ display: flex;
1172
+ flex: 1;
1173
+ background-color: ${(e) => e.theme.colors.grey3};
1174
+ min-height: 1px;
1175
+ max-height: 1px;
1176
+ `, ot = (e, i) => `${e}.${i}`, qe = {
1177
+ paddingTop: new s(r[5], r[4]),
1178
+ marginBottom: new s(r[3], r[3]),
1179
+ labelPaddingLeft: new s(r[3], r[4]),
1180
+ buttonWidth: new s(70, 70),
1181
+ containerRightMargin: new s(r[3], r[8]),
1182
+ containerLeftMargin: new s(r[3], r[6]),
1183
+ deleteConfirmationTextMarginBottom: new s(r[2], r[0])
1184
+ }, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
1185
+ lineData: e,
1186
+ currencyConversionState: i,
1187
+ recommendationFetchState: a,
1188
+ remiStage: d,
1189
+ lineIndex: p,
1190
+ accountList: v,
1191
+ classList: m,
1192
+ merchantList: S,
1193
+ hasFile: x,
1194
+ defaultCurrency: l,
1195
+ hasMultipleLineItems: C,
1196
+ fileRequiredLineIds: b,
1197
+ duplicateLineDetails: c,
1198
+ remiStatus: y,
1199
+ sectionId: $,
1200
+ isDisabled: O,
1201
+ isReimbursementCommentingEnabled: T,
1202
+ isAddReimbursementDisabled: P,
1203
+ style: H,
1204
+ autoFields: B = [],
1205
+ analytics: k,
1206
+ reimbursementId: M,
1207
+ tentativeMerchantName: te,
1208
+ companyMileageConfigInfo: ne,
1209
+ uncategorizedAccounts: re,
1210
+ removeDuplicateReimbursementForLine: Y,
1211
+ scrollToSection: K,
1212
+ onDuplicateLineClick: F,
1213
+ onRemoveReimbursement: J,
1214
+ clearTentativeNameForLine: q,
1215
+ allCurrencies: L,
1216
+ accountsHierarchyList: ce,
1217
+ classHierarchyList: Q
1218
+ }) => {
1219
+ const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
1220
+ application: "dashboard",
1221
+ companyId: de.currentTenant?.companyId,
1222
+ tab: "reimbursement",
1223
+ entityId: M
1224
+ }, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = Z(!1), me = Be(
1225
+ ot($, "reimbursementType")
1226
+ );
1227
+ return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
1228
+ /* @__PURE__ */ t.jsxs(
1229
+ bi,
1230
+ {
1231
+ hasFile: x,
1232
+ windowSize: V,
1233
+ showDeleteConfirmation: Ae,
1234
+ children: [
1235
+ /* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
1236
+ Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
1237
+ /* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
1238
+ /* @__PURE__ */ t.jsxs(xi, { children: [
1239
+ /* @__PURE__ */ t.jsx(
1240
+ Ro,
1241
+ {
1242
+ label: G.buttons.cancel,
1243
+ onClick: () => Le(!1),
1244
+ style: {
1245
+ width: qe.buttonWidth.value(V),
1246
+ marginLeft: V === "small" ? o.sp0 : o.sp4,
1247
+ marginRight: o.sp3
1248
+ },
1249
+ size: "small",
1250
+ variant: "secondary",
1251
+ "data-testid": U(
1252
+ "delete-remi-button",
1253
+ G.buttons.cancel
1254
+ )
1255
+ }
1256
+ ),
1257
+ /* @__PURE__ */ t.jsx(
1258
+ Ro,
1259
+ {
1260
+ label: G.buttons.remove,
1261
+ onClick: () => {
1262
+ k?.trackReimbursementDeleteReimbursementLine(
1263
+ e.lineId,
1264
+ M
1265
+ ), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
1266
+ },
1267
+ style: { width: qe.buttonWidth.value(V) },
1268
+ size: "small",
1269
+ variant: "danger",
1270
+ "data-testid": U(
1271
+ "delete-remi-button",
1272
+ G.buttons.remove
1273
+ )
1274
+ }
1275
+ )
1276
+ ] })
1277
+ ] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
1278
+ wi,
1279
+ {
1280
+ className: "deleteIconWrapper",
1281
+ windowSize: V,
1282
+ onClick: () => Le(!0),
1283
+ "data-testid": U(
1284
+ "delete-remi-button",
1285
+ e.lineId
1286
+ ),
1287
+ children: /* @__PURE__ */ t.jsx(
1288
+ bn,
1289
+ {
1290
+ enterDelay: 600,
1291
+ title: G.deleteReimbursement,
1292
+ placement: "top-end",
1293
+ children: /* @__PURE__ */ t.jsx($i, {})
1294
+ }
1295
+ )
1296
+ }
1297
+ ) : null
1298
+ ]
1299
+ }
1300
+ ),
1301
+ b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
1302
+ wn,
1303
+ {
1304
+ title: G.missingReceipt,
1305
+ description: G.missingReceiptDescription,
1306
+ style: { marginBottom: o.sp3 }
1307
+ }
1308
+ ) : null,
1309
+ /* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
1310
+ c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
1311
+ G.thisExpense,
1312
+ " ",
1313
+ c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
1314
+ Do,
1315
+ {
1316
+ "data-testid": U(
1317
+ "view-duplicate-transaction-expense"
1318
+ ),
1319
+ onClick: () => (k?.trackReimbursementViewDuplicateExpense(
1320
+ !0,
1321
+ M
1322
+ ), K(
1323
+ c.duplicateLineId
1324
+ )),
1325
+ children: G.viewOriginalExpense
1326
+ }
1327
+ ) : /* @__PURE__ */ t.jsx(
1328
+ Do,
1329
+ {
1330
+ "data-testid": U("view-duplicate-expense"),
1331
+ onClick: () => {
1332
+ c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
1333
+ !1,
1334
+ M
1335
+ ), F(
1336
+ c.duplicateTransactionId,
1337
+ c.duplicateLineId
1338
+ ));
1339
+ },
1340
+ children: G.viewOriginalExpense
1341
+ }
1342
+ )
1343
+ ] }) : null,
1344
+ /* @__PURE__ */ t.jsx(
1345
+ $e,
1346
+ {
1347
+ isThreadAllowed: T && M != null,
1348
+ dashboardTabKey: Se({
1349
+ type: "details",
1350
+ key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
1351
+ }),
1352
+ roomId: le,
1353
+ companyId: de.currentTenant?.companyId ?? ue,
1354
+ companyName: de.currentTenant?.companyName ?? ue,
1355
+ entityId: M,
1356
+ dashboardOptionType: "reimbursement",
1357
+ filterMetaData: {
1358
+ ...fe,
1359
+ entityType: `reimbursement.details.${Ie(
1360
+ "reimbursementType",
1361
+ p,
1362
+ me === G.mileageKey ? "mileage" : "out_of_pocket"
1363
+ )}`
1364
+ },
1365
+ fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
1366
+ style: {
1367
+ borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
1368
+ },
1369
+ children: /* @__PURE__ */ t.jsxs(
1370
+ Oi,
1371
+ {
1372
+ isDisabled: O != null,
1373
+ haveBorderRadius: c?.duplicateLineId == null,
1374
+ children: [
1375
+ /* @__PURE__ */ t.jsx(
1376
+ zo,
1377
+ {
1378
+ isDisabled: O != null || P ? "disabled" : void 0,
1379
+ isContainerClickable: !0,
1380
+ label: {
1381
+ label: G.outOfPocket
1382
+ },
1383
+ style: {
1384
+ padding: `${o.sp3} ${o.sp0}`,
1385
+ paddingLeft: qe.labelPaddingLeft.value(V),
1386
+ borderTopLeftRadius: "inherit"
1387
+ },
1388
+ showOutline: !(T && M != null),
1389
+ radioField: {
1390
+ name: ot($, "reimbursementType"),
1391
+ id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
1392
+ value: G.outOfPocketKey
1393
+ }
1394
+ }
1395
+ ),
1396
+ /* @__PURE__ */ t.jsx(Ii, {}),
1397
+ /* @__PURE__ */ t.jsx(
1398
+ zo,
1399
+ {
1400
+ isDisabled: O != null || P ? "disabled" : void 0,
1401
+ isContainerClickable: !0,
1402
+ label: {
1403
+ label: G.mileage
1404
+ },
1405
+ style: {
1406
+ padding: `${o.sp3} ${o.sp0}`,
1407
+ paddingLeft: qe.labelPaddingLeft.value(V),
1408
+ borderTopRightRadius: "inherit"
1409
+ },
1410
+ showOutline: !(T && M != null),
1411
+ radioField: {
1412
+ name: ot($, "reimbursementType"),
1413
+ id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
1414
+ value: G.mileageKey
1415
+ }
1416
+ }
1417
+ )
1418
+ ]
1419
+ }
1420
+ )
1421
+ }
1422
+ ),
1423
+ /* @__PURE__ */ t.jsx(Pi, {}),
1424
+ me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
1425
+ yi,
1426
+ {
1427
+ lineIndex: p,
1428
+ reimbursementId: M,
1429
+ uncategorizedAccounts: re,
1430
+ isReimbursementCommentingEnabled: T,
1431
+ isDisabled: O,
1432
+ outOfPocket: {
1433
+ transactionDate: e.outOfPocket.transactionDate != null ? it(
1434
+ e.outOfPocket.transactionDate.toDateString()
1435
+ ) : void 0,
1436
+ account: e.outOfPocket.account.selectedOption,
1437
+ isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
1438
+ isRecommendationLoading: a === "In-Progress",
1439
+ homeCurrencyDetails: e.homeCurrencyConversions,
1440
+ class: e.outOfPocket.class.selectedOption,
1441
+ amount: {
1442
+ amount: e.outOfPocket.amount?.amount ?? 0,
1443
+ currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
1444
+ currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
1445
+ },
1446
+ memo: e.outOfPocket.memo,
1447
+ merchant: e.outOfPocket.merchant.selectedOption,
1448
+ recommendations: e.outOfPocket.recommendations,
1449
+ recommendedAccount: e.outOfPocket.recommendedAccount,
1450
+ //account to show in update to checkbox
1451
+ isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
1452
+ //update to checkbox is ticked
1453
+ isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
1454
+ retainedAccount: e.outOfPocket.retainedAccount,
1455
+ //account to show in retain checkbox
1456
+ isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
1457
+ //retain checkbox is selected
1458
+ },
1459
+ sectionId: ot($, "outOfPocket"),
1460
+ accountList: v,
1461
+ classList: m,
1462
+ autoFields: B,
1463
+ merchantList: S,
1464
+ tentativeMerchantName: te,
1465
+ allCurrencies: L,
1466
+ isAddReimbursementDisabled: P,
1467
+ accountsHierarchyList: ce,
1468
+ classHierarchyList: Q
1469
+ }
1470
+ ) : /* @__PURE__ */ t.jsx(
1471
+ Xr,
1472
+ {
1473
+ lineIndex: p,
1474
+ reimbursementId: M,
1475
+ isReimbursementCommentingEnabled: T,
1476
+ isDisabled: O,
1477
+ mileage: {
1478
+ transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
1479
+ class: e.mileage.class.selectedOption,
1480
+ distanceInMiles: e.mileage.distanceInMiles,
1481
+ amount: {
1482
+ amount: e.mileage.amount?.amount ?? 0,
1483
+ currencyCode: e.mileage.amount?.currencyCode ?? "USD",
1484
+ currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
1485
+ },
1486
+ memo: e.mileage.memo
1487
+ },
1488
+ classList: m,
1489
+ sectionId: ot($, "mileage"),
1490
+ companyMileageConfigInfo: ne,
1491
+ defaultCurrency: l,
1492
+ isAddReimbursementDisabled: P,
1493
+ classHierarchyList: Q
1494
+ }
1495
+ )
1496
+ ] })
1497
+ ] });
1498
+ }, xi = n.div``, bi = n.div`
1499
+ //when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
1500
+ //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
1501
+ display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
1502
+ justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
1503
+ margin-bottom: ${o.sp3};
1504
+ align-items: center;
1505
+ `, wi = n.div`
1506
+ width: ${o.sp3};
1507
+ height: ${o.sp3};
1508
+ cursor: pointer;
1509
+ display: none;
1510
+ color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
1511
+ &:hover {
1512
+ color: ${I.important};
1513
+ }
1514
+ `, Do = n.span`
1515
+ border-bottom: 1px solid currentColor;
1516
+ cursor: pointer;
1517
+ `, $i = n(br)`
1518
+ width: ${o.sp3};
1519
+ height: ${o.sp3};
1520
+ cursor: pointer;
1521
+ `, Si = n.div`
1522
+ margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
1523
+ `, vi = n(xo)`
1524
+ color: ${(e) => e.theme.colors.hero};
1525
+ display: flex;
1526
+ align-items: center;
1527
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
1528
+ `, Ci = n.div`
1529
+ display: flex;
1530
+ flex-direction: column;
1531
+ padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
1532
+ margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
1533
+ margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
1534
+ .deleteIconWrapper {
1535
+ ${(e) => e.windowSize === "small" && `
1536
+ display: block;
1537
+ `}
1538
+ }
1539
+ &:hover {
1540
+ .deleteIconWrapper {
1541
+ display: block;
1542
+ }
1543
+ }
1544
+ `, Ti = n(wr)`
1545
+ padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
1546
+ background-color: ${I.alertLight};
1547
+ color: ${I.brandColorGoldDark};
1548
+ border-top-left-radius: inherit;
1549
+ border-top-right-radius: inherit;
1550
+ `, ki = n(Vt)`
1551
+ color: ${(e) => e.theme.colors.primary};
1552
+ display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
1553
+ `, ji = n.div`
1554
+ display: flex;
1555
+ flex-direction: column;
1556
+ background-color: ${(e) => e.theme.colors.grey5};
1557
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1558
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1559
+ border-radius: ${o.sp2};
1560
+ margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
1561
+ `, Ii = n.div`
1562
+ background-color: ${(e) => e.theme.colors.grey3};
1563
+ min-width: 1px;
1564
+ max-width: 1px;
1565
+ `, Oi = n.div`
1566
+ display: flex;
1567
+ flex-direction: row;
1568
+ border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1569
+ border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1570
+ `, Pi = n.div`
1571
+ display: flex;
1572
+ flex: 1;
1573
+ background-color: ${(e) => e.theme.colors.grey3};
1574
+ min-height: 1px;
1575
+ max-height: 1px;
1576
+ `, Bi = (e, i) => `${e}.${i}`, mt = {
1577
+ labelWidth: new s(120, 160, 160),
1578
+ paddingBottom: new s(r[3], r[3]),
1579
+ paddingTop: new s(12, r[3]),
1580
+ marginBottom: new s(12, r[3]),
1581
+ containerRightMargin: new s(r[3], r[8]),
1582
+ containerLeftMargin: new s(r[3], r[6])
1583
+ }, Ln = ({
1584
+ isReimbursementCommentingEnabled: e,
1585
+ sectionId: i,
1586
+ isDisabled: a,
1587
+ reportTitle: d,
1588
+ reimbursementId: p,
1589
+ style: v
1590
+ }) => {
1591
+ const m = ze(), S = St(), x = Wt(), l = `dashboard_${S.currentTenant?.companyId}`, C = we.getLocalizedStrings(), b = C.spendManagement.reimbursement.reimbursementDetail, c = C.common.strings.empty, y = mt.labelWidth.value(m);
1592
+ return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
1593
+ /* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
1594
+ /* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
1595
+ $e,
1596
+ {
1597
+ isThreadAllowed: e && p != null,
1598
+ dashboardTabKey: Se({
1599
+ type: "details",
1600
+ key: "whatFor"
1601
+ }),
1602
+ roomId: l,
1603
+ companyId: S.currentTenant?.companyId ?? c,
1604
+ companyName: S.currentTenant?.companyName ?? c,
1605
+ entityId: p,
1606
+ dashboardOptionType: "reimbursement",
1607
+ filterMetaData: {
1608
+ application: "dashboard",
1609
+ companyId: S.currentTenant?.companyId,
1610
+ tab: "reimbursement",
1611
+ entityId: p,
1612
+ entityType: "reimbursement.details.whatFor"
1613
+ },
1614
+ fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
1615
+ style: {
1616
+ borderRadius: o.sp2
1617
+ },
1618
+ children: /* @__PURE__ */ t.jsx(
1619
+ ho,
1620
+ {
1621
+ isDisabled: a,
1622
+ label: {
1623
+ label: b.reportTitle,
1624
+ width: y
1625
+ },
1626
+ text: {
1627
+ type: "text",
1628
+ name: Bi(i, "reportTitle"),
1629
+ placeholder: b.lunchWithClient,
1630
+ defaultValue: d,
1631
+ autoComplete: "off",
1632
+ options: {
1633
+ required: !0,
1634
+ validate: ($) => !!$
1635
+ }
1636
+ },
1637
+ style: { width: "auto", borderRadius: o.sp2 }
1638
+ }
1639
+ )
1640
+ }
1641
+ ) })
1642
+ ] });
1643
+ }, Ai = n.div`
1644
+ display: flex;
1645
+ flex-direction: column;
1646
+ padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
1647
+ padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
1648
+ margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
1649
+ margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
1650
+ `, Li = n.div`
1651
+ display: flex;
1652
+ flex-direction: column;
1653
+ background-color: ${(e) => e.theme.colors.grey5};
1654
+ border: 1px solid ${(e) => e.theme.colors.grey3};
1655
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1656
+ border-radius: ${o.sp2};
1657
+ `, Mi = n(Vt)`
1658
+ color: ${(e) => e.theme.colors.primary};
1659
+ margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
1660
+ `, N = {
1661
+ largeLabelWidth: new s(120, 120, 220),
1662
+ marginTop: new s(28, 8),
1663
+ paymentToMarginTop: new s(0, r[4]),
1664
+ marginBottom: new s(r[5], r[4]),
1665
+ paymentToMarginBottom: new s(12, r[3]),
1666
+ totalMarginBottom: new s(r[3], r[3]),
1667
+ reimbursementSectionLeftMargin: new s(r[3], r[6]),
1668
+ reimbursementSectionRightMargin: new s(r[3], r[8]),
1669
+ invoiceSectionLeftMargin: new s(r[3], r[8]),
1670
+ invoiceSectionRightMargin: new s(r[3], r[6]),
1671
+ rightSectionWidth: new s(100, 58),
1672
+ firstOrLastItemHeight: new s(390, 760),
1673
+ itemHeight: new s(390, 459),
1674
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
1675
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
1676
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
1677
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
1678
+ }, Ri = {
1679
+ total: new go("largeMedium", "h6Medium")
1680
+ }, {
1681
+ spendManagement: {
1682
+ reimbursement: { reimbursementDetail: D },
1683
+ billPay: {
1684
+ vendorCreation: { achDetails: Bt }
1685
+ }
1686
+ },
1687
+ common: {
1688
+ currency: { currencyCode: At }
1689
+ }
1690
+ } = we.getLocalizedStrings(), Mn = (e) => {
1691
+ let i = 0, a = At;
1692
+ if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
1693
+ const d = e;
1694
+ i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
1695
+ } else {
1696
+ const d = e;
1697
+ i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
1698
+ }
1699
+ return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
1700
+ }, zi = ({
1701
+ remiUploadStatus: e,
1702
+ progressSectionObj: i,
1703
+ reimbursementId: a,
1704
+ createDate: d,
1705
+ scheduleDate: p,
1706
+ paymentDate: v,
1707
+ hasDuplicateLine: m,
1708
+ approvedDate: S,
1709
+ isFirstOrLastListItem: x,
1710
+ index: l,
1711
+ reimbursementSectionRef: C,
1712
+ showSkipAutoFill: b,
1713
+ lineData: c,
1714
+ currencyConversionState: y,
1715
+ authParams: $,
1716
+ uploadInvoiceEndPoint: O,
1717
+ accountList: T,
1718
+ classList: P,
1719
+ merchantList: H,
1720
+ remiStage: B,
1721
+ autoFieldsByLineId: k,
1722
+ isReimbursementCommentingEnabled: M,
1723
+ isAutoFieldsExist: te,
1724
+ totalAmount: ne,
1725
+ showTotalAmountLoader: re,
1726
+ totalNumberOfLines: Y,
1727
+ defaultCurrency: K,
1728
+ bankAccounts: F,
1729
+ fileRequiredLineIds: J,
1730
+ isAddReimbursementDisabled: q,
1731
+ duplicateLineByLineId: L,
1732
+ remiStatus: ce,
1733
+ file: Q,
1734
+ uncategorizedAccounts: V,
1735
+ reportTitle: de,
1736
+ recommendationFetchState: _e,
1737
+ tentativeMerchantName: ue,
1738
+ paymentTo: fe,
1739
+ analytics: le,
1740
+ companyMileageConfigInfo: Be,
1741
+ loggedInUserDepartmentId: Ae,
1742
+ isSignedInUserReimbursementCreator: Le,
1743
+ setShowBankAccountPage: me,
1744
+ setRefByLineId: Me,
1745
+ setCurrentLineIdForUpload: pe,
1746
+ onDuplicateLineClick: ve,
1747
+ setUploadedReceiptPayload: Je,
1748
+ removeDuplicateReimbursementForLine: h,
1749
+ onReceiptsUpload: Ce,
1750
+ scrollToSection: he,
1751
+ onRemoveReimbursement: He,
1752
+ onAddReimbursement: Re,
1753
+ clearTentativeNameForLine: Qe,
1754
+ onReplaceClick: Fe,
1755
+ onDeleteBankAccount: Ke,
1756
+ updateInvoiceUploadFetchState: Ge,
1757
+ removeFileFromLine: Ze,
1758
+ allCurrencies: Xe,
1759
+ accountsHierarchyList: ie,
1760
+ classHierarchyList: lt
1761
+ }) => {
1762
+ const {
1763
+ formState: { errors: pt }
1764
+ } = at(), et = bt(null);
1765
+ ye(() => (Me((R) => ({
1766
+ ...R,
1767
+ [`L${c.lineId}`]: et.current
1768
+ })), () => {
1769
+ Me((R) => ({
1770
+ ...R,
1771
+ [`L${c.lineId}`]: null
1772
+ }));
1773
+ }), [c.lineId, Me]);
1774
+ const _ = ze(), ht = B === "draft" ? D.newReimbursementTitle : D.editReimbursementTitle, W = N.largeLabelWidth.value(_), se = (R) => R.outOfPocket.account.selectedOption == null && (R.outOfPocket.amount == null || R.outOfPocket.amount.amount == 0) && (R.outOfPocket.class.selectedOption == null || R.outOfPocket.class.selectedOption === Ae) && (R.outOfPocket.memo === "" || R.outOfPocket.memo == null) && R.outOfPocket.merchant.selectedOption == null && R.outOfPocket.transactionDate == null, Ct = F.map((R) => R.bankAccountId), Te = c.reimbursementType === D.outOfPocketKey && Mn(c) >= 75 && Q == null;
1775
+ return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
1776
+ /* @__PURE__ */ t.jsx(
1777
+ oa,
1778
+ {
1779
+ ref: (R) => {
1780
+ R != null && (et.current = R);
1781
+ },
1782
+ windowSize: _,
1783
+ bottomSeperator: Y !== 1,
1784
+ showSkipAutoFill: b,
1785
+ isFirstItem: l === 0,
1786
+ children: /* @__PURE__ */ t.jsx(
1787
+ Pn,
1788
+ {
1789
+ customError: Te ? D.requireReceipt : void 0,
1790
+ analytics: le,
1791
+ showAutofill: !1,
1792
+ uploadInvoiceEndPoint: O,
1793
+ authParams: $,
1794
+ entityId: q ? "" : void 0,
1795
+ file: Q,
1796
+ style: {
1797
+ width: "auto",
1798
+ padding: 0,
1799
+ height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
1800
+ margin: _ === "small" ? o.sp0 : void 0
1801
+ },
1802
+ updateInvoiceUploadFetchState: Ge,
1803
+ onInvoiceUpload: (R) => {
1804
+ c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
1805
+ R
1806
+ ), Fe?.()) : Ce(
1807
+ R,
1808
+ Number(c.lineId),
1809
+ !0
1810
+ );
1811
+ },
1812
+ dropFilePlaceholder: {
1813
+ upload: D.dropReceipt.upload,
1814
+ receipt: D.dropReceipt.receipt
1815
+ },
1816
+ showInfoText: !1,
1817
+ showTitlebar: !0,
1818
+ showTitlebarIcon: !q,
1819
+ pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
1820
+ onDeleteClick: () => {
1821
+ Ge?.("In-Progress"), setTimeout(() => Ze?.(Number(c.lineId)));
1822
+ },
1823
+ onReplaceClick: () => {
1824
+ pe(Number(c.lineId)), Fe?.();
1825
+ },
1826
+ allowMultiFiles: Y === l + 1,
1827
+ type: "reimbursement"
1828
+ }
1829
+ )
1830
+ }
1831
+ ),
1832
+ /* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
1833
+ l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1834
+ /* @__PURE__ */ t.jsx(Ui, { children: ht }),
1835
+ /* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
1836
+ $r,
1837
+ {
1838
+ progressSectionObj: i,
1839
+ createDate: d,
1840
+ paymentDate: v,
1841
+ scheduleDate: p,
1842
+ approvedDate: S,
1843
+ isBillUploaded: a != null ? !0 : e === "Completed"
1844
+ }
1845
+ ) }),
1846
+ te && /* @__PURE__ */ t.jsxs(Wi, { children: [
1847
+ /* @__PURE__ */ t.jsx(Fi, {}),
1848
+ /* @__PURE__ */ t.jsx(qi, { children: D.banner })
1849
+ ] }),
1850
+ m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
1851
+ /* @__PURE__ */ t.jsx(Ni, {}),
1852
+ /* @__PURE__ */ t.jsxs(_i, { children: [
1853
+ /* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
1854
+ /* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
1855
+ ] })
1856
+ ] }),
1857
+ /* @__PURE__ */ t.jsx(
1858
+ Ln,
1859
+ {
1860
+ isReimbursementCommentingEnabled: M,
1861
+ sectionId: Nt,
1862
+ reportTitle: de,
1863
+ reimbursementId: a
1864
+ }
1865
+ )
1866
+ ] }) : null,
1867
+ /* @__PURE__ */ t.jsx(
1868
+ fi,
1869
+ {
1870
+ analytics: le,
1871
+ reimbursementId: a,
1872
+ onDuplicateLineClick: ve,
1873
+ uncategorizedAccounts: V,
1874
+ sectionId: `${So}.${l}`,
1875
+ scrollToSection: he,
1876
+ lineIndex: l,
1877
+ lineData: c,
1878
+ accountList: T,
1879
+ classList: P,
1880
+ merchantList: H,
1881
+ autoFields: c.lineId != null ? k[c.lineId] : [],
1882
+ currencyConversionState: y,
1883
+ recommendationFetchState: _e,
1884
+ onRemoveReimbursement: He,
1885
+ hasMultipleLineItems: Y > 1,
1886
+ clearTentativeNameForLine: Qe,
1887
+ tentativeMerchantName: ue,
1888
+ hasFile: Q != null,
1889
+ companyMileageConfigInfo: Be,
1890
+ defaultCurrency: K,
1891
+ remiStage: B,
1892
+ remiStatus: ce,
1893
+ fileRequiredLineIds: J,
1894
+ allCurrencies: Xe,
1895
+ isReimbursementCommentingEnabled: M,
1896
+ isAddReimbursementDisabled: q,
1897
+ accountsHierarchyList: ie,
1898
+ classHierarchyList: lt,
1899
+ duplicateLineDetails: L[c.lineId],
1900
+ removeDuplicateReimbursementForLine: h
1901
+ }
1902
+ ),
1903
+ Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1904
+ /* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
1905
+ /* @__PURE__ */ t.jsx(Gi, { children: D.total }),
1906
+ re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
1907
+ vt,
1908
+ {
1909
+ size: "Standard",
1910
+ start: !0,
1911
+ style: { display: "flex" }
1912
+ }
1913
+ ) }) }) : /* @__PURE__ */ t.jsx(
1914
+ $n,
1915
+ {
1916
+ amount: hn(ne, "USD", "$"),
1917
+ integerStyles: Ft.h6Regular.cssObject,
1918
+ decimalStyles: Ft.standardRegular.cssObject
1919
+ }
1920
+ )
1921
+ ] }),
1922
+ /* @__PURE__ */ t.jsxs(
1923
+ Zi,
1924
+ {
1925
+ windowSize: _,
1926
+ onClick: () => {
1927
+ q === !1 && Re();
1928
+ },
1929
+ isDisabled: q,
1930
+ "data-testid": U("add-reimbursement-row"),
1931
+ children: [
1932
+ /* @__PURE__ */ t.jsx(Uo, {}),
1933
+ /* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
1934
+ ]
1935
+ }
1936
+ ),
1937
+ Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1938
+ /* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
1939
+ /* @__PURE__ */ t.jsx(
1940
+ Qi,
1941
+ {
1942
+ windowSize: _,
1943
+ shouldDisplay: F.length > 0,
1944
+ children: /* @__PURE__ */ t.jsx(
1945
+ Sn,
1946
+ {
1947
+ label: {
1948
+ label: D.yourBankAccount,
1949
+ width: W
1950
+ },
1951
+ style: {
1952
+ width: "auto"
1953
+ },
1954
+ singleSelectField: {
1955
+ singleSelect: {
1956
+ name: wt,
1957
+ placeholder: rt(
1958
+ D.yourBankAccount
1959
+ ),
1960
+ showValueEyeIcon: !q,
1961
+ menuPlacement: "top",
1962
+ maxMenuHeight: 308,
1963
+ showEyeIconOnSelect: !1,
1964
+ onDelete: Ke,
1965
+ getTooltipInfo: (R) => Rn(F, R),
1966
+ onClickCreateBankAccount: () => me(!0),
1967
+ getLabelForId: (R) => Fn(F, R),
1968
+ isOptionRemovable: !1,
1969
+ showDeleteIcon: !0,
1970
+ showAddBankAccountOption: !0,
1971
+ isDisabled: q ? "readonly" : void 0,
1972
+ showTickMark: !1,
1973
+ alwaysShowEyeTooltip: !0
1974
+ },
1975
+ defaultValue: {
1976
+ selectedOption: fe,
1977
+ allOptions: Ct
1978
+ },
1979
+ registerOptions: {
1980
+ required: !0,
1981
+ validate: (R) => !!R.selectedOption
1982
+ }
1983
+ },
1984
+ isFunctional: !0
1985
+ }
1986
+ )
1987
+ }
1988
+ ),
1989
+ /* @__PURE__ */ t.jsxs(
1990
+ Xi,
1991
+ {
1992
+ shouldDisplay: F.length === 0,
1993
+ windowSize: _,
1994
+ hasError: Pe(pt, wt),
1995
+ onClick: () => {
1996
+ q === !1 && me(!0);
1997
+ },
1998
+ isDisabled: q,
1999
+ "data-testid": U(
2000
+ "remi-add-bank-account-container"
2001
+ ),
2002
+ children: [
2003
+ /* @__PURE__ */ t.jsx(Uo, {}),
2004
+ /* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
2005
+ ]
2006
+ }
2007
+ )
2008
+ ] }) : null
2009
+ ] })
2010
+ ] })
2011
+ ] });
2012
+ }, Rn = (e, i) => {
2013
+ const a = zn(e, i);
2014
+ return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
2015
+ ${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
2016
+ ${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
2017
+ }, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
2018
+ const a = zn(e, i);
2019
+ return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
2020
+ a.bankAccountNumber.length - 4
2021
+ )}` : D.selectBankAccount;
2022
+ }, Fi = n(fo)`
2023
+ color: ${(e) => e.theme.colors.primary};
2024
+ width: ${o.sp3};
2025
+ height: ${o.sp3};
2026
+ `, Ni = n(vr)`
2027
+ width: ${o.sp4};
2028
+ height: ${o.sp4};
2029
+ color: ${I.brandColorGoldDark};
2030
+ `, Wi = n.div`
2031
+ display: flex;
2032
+ gap: ${o.sp2};
2033
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2034
+ padding: ${o.sp3};
2035
+ border-radius: ${o.sp2};
2036
+ align-items: center;
2037
+ margin: 0 ${o.sp8} 0 ${o.sp6};
2038
+ `, Ei = n.div`
2039
+ display: flex;
2040
+ gap: ${o.sp2};
2041
+ padding: ${o.sp3};
2042
+ border-radius: ${o.sp2};
2043
+ align-items: start;
2044
+ margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
2045
+ margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
2046
+ margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
2047
+ margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
2048
+ background-color: ${I.alertLight};
2049
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
2050
+ `, Vi = n(_t)`
2051
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2052
+ `, _i = n.div`
2053
+ width: 100%;
2054
+ `, Di = n(xo)`
2055
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
2056
+ `, qi = n.span`
2057
+ color: ${(e) => e.theme.colors.hero};
2058
+ `, Ui = n(Sr)`
2059
+ letter-spacing: -0.02em;
2060
+ color: ${(e) => e.theme.colors.primary};
2061
+ margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
2062
+ `, Hi = n(Vt)`
2063
+ letter-spacing: -0.02em;
2064
+ color: ${(e) => e.theme.colors.primary};
2065
+ margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
2066
+ margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
2067
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2068
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2069
+ `, Ki = n.div`
2070
+ padding: ${o.sp3};
2071
+ display: flex;
2072
+ align-items: center;
2073
+ justify-content: space-between;
2074
+ background-color: ${(e) => e.theme.colors.grey3};
2075
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2076
+ border-radius: ${o.sp2};
2077
+ color: ${(e) => e.theme.colors.hero};
2078
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2079
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2080
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2081
+ margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2082
+ justify-content: space-between;
2083
+ `, Gi = n(vn)`
2084
+ display: flex;
2085
+ width: 176px;
2086
+ color: ${(e) => e.theme.colors.primary};
2087
+ `, Yi = n(Cn)`
2088
+ display: flex;
2089
+ width: calc(100% - 176px);
2090
+ justify-content: flex-end;
2091
+ color: ${(e) => e.theme.colors.primary};
2092
+ ${(e) => `${Ri.total.style(e.windowSize)}`};
2093
+ `, Ji = n.div`
2094
+ padding-right: ${o.sp3};
2095
+ height: 30px;
2096
+ display: flex;
2097
+ justify-content: flex-end;
2098
+ `, Qi = n.div`
2099
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2100
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2101
+ margin-bottom: ${o.sp3};
2102
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2103
+ border-radius: ${o.sp2};
2104
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2105
+ display: ${(e) => e.shouldDisplay ? "unset" : "none"};
2106
+ `, Zi = n.div`
2107
+ padding: ${o.sp3};
2108
+ display: flex;
2109
+ align-items: center;
2110
+ justify-content: center;
2111
+ border: 1px solid
2112
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2113
+ border-radius: ${o.sp2};
2114
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2115
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2116
+ &:hover {
2117
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2118
+ border: 1px solid
2119
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2120
+ }
2121
+ margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2122
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2123
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2124
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2125
+ `, Xi = n.div`
2126
+ padding: ${o.sp3};
2127
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2128
+ align-items: center;
2129
+ justify-content: center;
2130
+ border: 1px solid
2131
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2132
+ border-radius: ${o.sp2};
2133
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2134
+ cursor: pointer;
2135
+ &:hover {
2136
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2137
+ border: 1px solid
2138
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2139
+ }
2140
+ margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2141
+ margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2142
+ margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2143
+ `, qo = n(_t)`
2144
+ color: inherit;
2145
+ `, Uo = n(Tn)`
2146
+ margin-right: ${o.sp2};
2147
+ width: ${o.sp3};
2148
+ height: ${o.sp3};
2149
+ `, ea = n.div`
2150
+ display: flex;
2151
+ flex-direction: column;
2152
+ width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
2153
+ `, ta = n.div`
2154
+ display: flex;
2155
+ width: 100%;
2156
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
2157
+ `, oa = n.div`
2158
+ height: 100%;
2159
+ background: ${(e) => e.theme.colors.grey3};
2160
+ border-radius: ${o.sp2};
2161
+ width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
2162
+ margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
2163
+ margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
2164
+ visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
2165
+ margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
2166
+ margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
2167
+ `, na = n.div`
2168
+ padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
2169
+ `, ra = {
2170
+ total: new go("largeMedium", "h6Medium")
2171
+ }, X = {
2172
+ largeLabelWidth: new s(120, 120, 220),
2173
+ marginBottom: new s(r[5], r[4]),
2174
+ addBankAccountMarginBottom: new s(r[5], r[5]),
2175
+ marginTop: new s(r[0], 78),
2176
+ paymentToMarginTop: new s(0, r[4]),
2177
+ totalMarginBottom: new s(r[3], r[3]),
2178
+ rightMargin: new s(r[3], r[8]),
2179
+ leftMargin: new s(r[3], r[6]),
2180
+ paymentToMarginBottom: new s(12, r[3])
2181
+ }, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
2182
+ remiDetails: e,
2183
+ isUserAdmin: i,
2184
+ authParams: a,
2185
+ uploadInvoiceEndPoint: d,
2186
+ showSkipAutoFill: p,
2187
+ isReimbursementCommentingEnabled: v,
2188
+ isAutoFieldsExist: m,
2189
+ totalAmount: S,
2190
+ defaultCurrency: x,
2191
+ hasDuplicateLine: l,
2192
+ bankAccounts: C,
2193
+ fileRequiredLineIds: b,
2194
+ companyMileageConfigInfo: c,
2195
+ analytics: y,
2196
+ reimbursementId: $,
2197
+ currencyConversionStatus: O,
2198
+ setShowSkipAutoFill: T,
2199
+ setShowBankAccountPage: P,
2200
+ removeDuplicateReimbursementForLine: H,
2201
+ onReceiptsUpload: B,
2202
+ setCurrentLineIdForUpload: k,
2203
+ onDuplicateLineClick: M,
2204
+ setUploadedReceiptPayload: te,
2205
+ removeFileFromLine: ne,
2206
+ onReplaceClick: re,
2207
+ updateInvoiceUploadFetchState: Y,
2208
+ clearTentativeNameForLine: K,
2209
+ onDeleteBankAccount: F,
2210
+ uncategorizedAccounts: J,
2211
+ isSignedInUserReimbursementCreator: q,
2212
+ duplicateLineByLineId: L,
2213
+ showTotalAmountLoader: ce,
2214
+ scrollContainerRef: Q
2215
+ }) => {
2216
+ const {
2217
+ control: V,
2218
+ formState: { errors: de }
2219
+ } = at(), { fields: _e, append: ue, remove: fe } = cr({
2220
+ name: So,
2221
+ control: V
2222
+ }), le = _e, Be = bt(null), Ae = (W) => {
2223
+ setTimeout(() => {
2224
+ fe(W);
2225
+ });
2226
+ }, { tentativeMerchantNameByLineId: Le, remiStage: me, remiStatus: Me } = e, pe = !q || me === "pending_approval" && Me !== "rejected" && i || me === "pending_approval" && Me === "rejected", ve = pe ? e.paymentToBankAccountDetail != null ? [e.paymentToBankAccountDetail] : [] : C, Je = ve.map((W) => W.bankAccountId), h = ze(), Ce = X.largeLabelWidth.value(h), he = e.whatForSection.reportTitle, He = e.accountList.accounts, Re = e.accountsHierarchyList, Qe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Ze = Math.max(
2227
+ ...Object.keys(
2228
+ e.editRemiInitialDetails?.lineDetailSection ?? {}
2229
+ ).map((W) => Number(W)),
2230
+ 0
2231
+ ), Xe = () => {
2232
+ const W = le[le.length - 1], se = Nn(
2233
+ le.length,
2234
+ Number(W.lineId) > Ze ? String(Number(W.lineId) + 1) : String(Ze + 1),
2235
+ Re,
2236
+ Qe,
2237
+ Ke,
2238
+ x,
2239
+ e.allCurrencies,
2240
+ e.loggedInUserDepartmentId
2241
+ );
2242
+ setTimeout(() => {
2243
+ ue(se, { shouldFocus: !1 });
2244
+ }), k(Number(se.lineId)), T(!0), setTimeout(
2245
+ () => Wo(
2246
+ Be.current,
2247
+ Q?.current
2248
+ ),
2249
+ 50
2250
+ );
2251
+ }, [ie, lt] = Z({}), pt = pn(
2252
+ (W) => {
2253
+ const se = ie[`L${W}`];
2254
+ se != null && Wo(se, Q?.current);
2255
+ },
2256
+ [ie, Q]
2257
+ ), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
2258
+ gn(
2259
+ e.reimbursementInfo.paymentDate.toDate(),
2260
+ [0, 6],
2261
+ e.achSameDayMaxDays
2262
+ ).toDateString()
2263
+ ) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
2264
+ return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
2265
+ le.map((W, se) => /* @__PURE__ */ t.jsx(
2266
+ zi,
2267
+ {
2268
+ removeDuplicateReimbursementForLine: H,
2269
+ onDuplicateLineClick: M,
2270
+ scrollToSection: pt,
2271
+ setRefByLineId: lt,
2272
+ duplicateLineByLineId: L,
2273
+ reimbursementId: $,
2274
+ remiUploadStatus: e.uploadStatus,
2275
+ uncategorizedAccounts: J,
2276
+ progressSectionObj: et,
2277
+ createDate: e.createTime,
2278
+ paymentDate: ht,
2279
+ scheduleDate: e.reimbursementInfo?.paymentDate,
2280
+ approvedDate: e.latestApprovedDate,
2281
+ isFirstOrLastListItem: le.length - 1 === se || se === 0,
2282
+ index: se,
2283
+ reimbursementSectionRef: Be,
2284
+ remiStage: me,
2285
+ remiStatus: Me,
2286
+ authParams: a,
2287
+ file: W.file,
2288
+ uploadInvoiceEndPoint: d,
2289
+ showSkipAutoFill: p,
2290
+ lineData: W,
2291
+ currencyConversionState: O[W.lineId],
2292
+ recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
2293
+ setCurrentLineIdForUpload: k,
2294
+ setUploadedReceiptPayload: te,
2295
+ onReplaceClick: re,
2296
+ onReceiptsUpload: B,
2297
+ removeFileFromLine: ne,
2298
+ isReimbursementCommentingEnabled: v,
2299
+ isAutoFieldsExist: m,
2300
+ reportTitle: he,
2301
+ accountList: He,
2302
+ classList: Fe,
2303
+ merchantList: Ke,
2304
+ autoFieldsByLineId: Ge,
2305
+ onRemoveReimbursement: Ae,
2306
+ onAddReimbursement: Xe,
2307
+ totalAmount: S,
2308
+ showTotalAmountLoader: ce,
2309
+ hasDuplicateLine: l,
2310
+ totalNumberOfLines: le.length,
2311
+ updateInvoiceUploadFetchState: Y,
2312
+ clearTentativeNameForLine: K,
2313
+ tentativeMerchantName: Le[W.lineId],
2314
+ companyMileageConfigInfo: c,
2315
+ defaultCurrency: x,
2316
+ setShowBankAccountPage: P,
2317
+ paymentTo: e.paymentTo,
2318
+ bankAccounts: ve,
2319
+ onDeleteBankAccount: F,
2320
+ analytics: y,
2321
+ fileRequiredLineIds: b,
2322
+ allCurrencies: e.allCurrencies,
2323
+ loggedInUserDepartmentId: e.loggedInUserDepartmentId,
2324
+ isAddReimbursementDisabled: pe,
2325
+ accountsHierarchyList: Re,
2326
+ classHierarchyList: Qe,
2327
+ isSignedInUserReimbursementCreator: q
2328
+ },
2329
+ W.lineId
2330
+ )),
2331
+ le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2332
+ /* @__PURE__ */ t.jsxs(to, { children: [
2333
+ h !== "small" ? /* @__PURE__ */ t.jsx(Xt, { windowSize: h }) : null,
2334
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
2335
+ /* @__PURE__ */ t.jsx(ua, { children: nt.total }),
2336
+ ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
2337
+ vt,
2338
+ {
2339
+ size: "Standard",
2340
+ start: !0,
2341
+ style: { display: "flex" }
2342
+ }
2343
+ ) }) }) : /* @__PURE__ */ t.jsx(
2344
+ $n,
2345
+ {
2346
+ amount: hn(
2347
+ S,
2348
+ Ao.currencyCode,
2349
+ Ao.currencySymbol
2350
+ ),
2351
+ integerStyles: Ft.h6Regular.cssObject,
2352
+ decimalStyles: Ft.standardRegular.cssObject
2353
+ }
2354
+ )
2355
+ ] }) })
2356
+ ] }),
2357
+ /* @__PURE__ */ t.jsxs(to, { children: [
2358
+ h !== "small" ? /* @__PURE__ */ t.jsx(Xt, { windowSize: h }) : null,
2359
+ /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
2360
+ ga,
2361
+ {
2362
+ windowSize: h,
2363
+ onClick: () => {
2364
+ pe === !1 && Xe();
2365
+ },
2366
+ isDisabled: pe,
2367
+ "data-testid": U("add-reimbursement-container"),
2368
+ children: [
2369
+ /* @__PURE__ */ t.jsx(Ko, {}),
2370
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
2371
+ ]
2372
+ }
2373
+ ) })
2374
+ ] }),
2375
+ /* @__PURE__ */ t.jsxs(to, { children: [
2376
+ h !== "small" ? /* @__PURE__ */ t.jsx(Xt, { windowSize: h }) : null,
2377
+ q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
2378
+ /* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
2379
+ /* @__PURE__ */ t.jsx(
2380
+ sa,
2381
+ {
2382
+ windowSize: h,
2383
+ shouldDisplay: ve.length > 0,
2384
+ children: /* @__PURE__ */ t.jsx(
2385
+ Sn,
2386
+ {
2387
+ label: {
2388
+ label: nt.yourBankAccount,
2389
+ width: Ce
2390
+ },
2391
+ style: {
2392
+ width: "auto"
2393
+ },
2394
+ singleSelectField: {
2395
+ singleSelect: {
2396
+ name: wt,
2397
+ placeholder: rt(
2398
+ nt.yourBankAccount
2399
+ ),
2400
+ showValueEyeIcon: !pe,
2401
+ menuPlacement: "top",
2402
+ maxMenuHeight: 308,
2403
+ showEyeIconOnSelect: !1,
2404
+ onDelete: F,
2405
+ getTooltipInfo: (W) => Rn(ve, W),
2406
+ onClickCreateBankAccount: () => P(!0),
2407
+ getLabelForId: (W) => Fn(ve, W),
2408
+ isOptionRemovable: !1,
2409
+ showDeleteIcon: !0,
2410
+ showAddBankAccountOption: !0,
2411
+ isDisabled: pe ? "readonly" : void 0,
2412
+ showTickMark: !1,
2413
+ alwaysShowEyeTooltip: !0
2414
+ },
2415
+ defaultValue: {
2416
+ selectedOption: e.paymentTo,
2417
+ allOptions: Je
2418
+ },
2419
+ registerOptions: {
2420
+ required: !0,
2421
+ validate: (W) => !!W.selectedOption
2422
+ }
2423
+ },
2424
+ isFunctional: !0
2425
+ }
2426
+ )
2427
+ }
2428
+ ),
2429
+ /* @__PURE__ */ t.jsxs(
2430
+ ya,
2431
+ {
2432
+ shouldDisplay: ve.length === 0,
2433
+ windowSize: h,
2434
+ onClick: () => {
2435
+ pe === !1 && P(!0);
2436
+ },
2437
+ hasError: Pe(de, wt),
2438
+ isDisabled: pe,
2439
+ "data-testid": U(
2440
+ "remi-add-bank-account-container"
2441
+ ),
2442
+ children: [
2443
+ /* @__PURE__ */ t.jsx(Ko, {}),
2444
+ /* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
2445
+ ]
2446
+ }
2447
+ )
2448
+ ] }) : null
2449
+ ] })
2450
+ ] })
2451
+ ] });
2452
+ }, Nn = (e, i, a, d, p, v, m, S) => {
2453
+ const x = aa(
2454
+ a,
2455
+ d,
2456
+ p,
2457
+ v,
2458
+ m,
2459
+ S
2460
+ );
2461
+ return {
2462
+ lineIndex: e,
2463
+ lineId: i,
2464
+ reimbursementType: nt.outOfPocketKey,
2465
+ file: void 0,
2466
+ outOfPocket: x,
2467
+ mileage: la(
2468
+ d,
2469
+ v,
2470
+ S
2471
+ )
2472
+ };
2473
+ }, aa = (e, i, a, d, p, v) => ({
2474
+ transactionDate: void 0,
2475
+ class: {
2476
+ allOptions: Ue(
2477
+ Ye(i, [])
2478
+ ),
2479
+ selectedOption: v
2480
+ },
2481
+ account: {
2482
+ allOptions: Ue(
2483
+ Et(e, [])
2484
+ ),
2485
+ selectedOption: void 0
2486
+ },
2487
+ amount: {
2488
+ amount: 0,
2489
+ currencyCode: d.currencyCode,
2490
+ currencySymbol: d.currencySymbol,
2491
+ currency: {
2492
+ allOptions: p.map((m) => ({
2493
+ label: `${m.currencyCode} - ${m.currency}`,
2494
+ value: m.currencyCode,
2495
+ countryCode: bo(
2496
+ m.countryCode
2497
+ )
2498
+ })),
2499
+ selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
2500
+ }
2501
+ },
2502
+ memo: void 0,
2503
+ merchant: {
2504
+ allOptions: a.map((m) => m.id).filter((m) => !!m),
2505
+ selectedOption: void 0
2506
+ },
2507
+ recommendations: [],
2508
+ isCategoryUpdateSelected: !1,
2509
+ isCategoryFirstTimeAutofilled: !1,
2510
+ isRetainedCategorySelected: !1
2511
+ }), la = (e, i, a) => ({
2512
+ transactionDate: void 0,
2513
+ class: {
2514
+ allOptions: Ue(
2515
+ Ye(e, [])
2516
+ ),
2517
+ selectedOption: a
2518
+ },
2519
+ distanceInMiles: void 0,
2520
+ amount: {
2521
+ amount: 0,
2522
+ currencyCode: i.currencyCode,
2523
+ currencySymbol: i.currencySymbol
2524
+ },
2525
+ memo: void 0
2526
+ }), sa = n.div`
2527
+ margin-left: ${(e) => X.leftMargin.valuePx(e.windowSize)};
2528
+ margin-right: ${(e) => X.rightMargin.valuePx(e.windowSize)};
2529
+ margin-bottom: ${(e) => X.addBankAccountMarginBottom.valuePx(e.windowSize)};
2530
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2531
+ border-radius: ${o.sp2};
2532
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2533
+ display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
2534
+ `, Xt = n.div`
2535
+ width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
2536
+ `, eo = n.div`
2537
+ width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
2538
+ `, ca = n.div`
2539
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
2540
+ flex-direction: column;
2541
+ margin-top: ${(e) => X.marginTop.valuePx(e.windowSize)};
2542
+ `, da = n.div`
2543
+ padding: ${o.sp3};
2544
+ display: flex;
2545
+ align-items: center;
2546
+ justify-content: space-between;
2547
+ background-color: ${(e) => e.theme.colors.grey3};
2548
+ border: 1px solid ${(e) => e.theme.colors.grey3};
2549
+ border-radius: ${o.sp2};
2550
+ color: ${(e) => e.theme.colors.hero};
2551
+ margin-top: ${(e) => X.totalMarginBottom.valuePx(e.windowSize)};
2552
+ margin-left: ${(e) => X.leftMargin.valuePx(e.windowSize)};
2553
+ margin-right: ${(e) => X.rightMargin.valuePx(e.windowSize)};
2554
+ margin-bottom: ${(e) => X.totalMarginBottom.valuePx(e.windowSize)};
2555
+ `, ua = n(vn)`
2556
+ display: flex;
2557
+ width: 176px;
2558
+ color: ${(e) => e.theme.colors.primary};
2559
+ `, ma = n(Vt)`
2560
+ color: ${(e) => e.theme.colors.primary};
2561
+ margin-top: ${(e) => X.paymentToMarginTop.valuePx(e.windowSize)};
2562
+ margin-bottom: ${(e) => X.paymentToMarginBottom.valuePx(e.windowSize)};
2563
+ margin-left: ${(e) => X.leftMargin.valuePx(e.windowSize)};
2564
+ margin-right: ${(e) => X.rightMargin.valuePx(e.windowSize)};
2565
+ `, pa = n(Cn)`
2566
+ display: flex;
2567
+ width: calc(100% - 176px);
2568
+ justify-content: flex-end;
2569
+ color: ${(e) => e.theme.colors.primary};
2570
+ ${(e) => `${ra.total.style(e.windowSize)}`};
2571
+ `, ha = n.div`
2572
+ padding-right: ${o.sp3};
2573
+ height: 30px;
2574
+ display: flex;
2575
+ justify-content: flex-end;
2576
+ `, ga = n.div`
2577
+ padding: ${o.sp3};
2578
+ display: flex;
2579
+ align-items: center;
2580
+ justify-content: center;
2581
+ border: 1px solid
2582
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2583
+ border-radius: ${o.sp2};
2584
+
2585
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2586
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2587
+ &:hover {
2588
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2589
+ border: 1px solid
2590
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2591
+ }
2592
+ margin-top: ${(e) => X.totalMarginBottom.valuePx(e.windowSize)};
2593
+ margin-left: ${(e) => X.leftMargin.valuePx(e.windowSize)};
2594
+ margin-right: ${(e) => X.rightMargin.valuePx(e.windowSize)};
2595
+ margin-bottom: ${(e) => X.marginBottom.valuePx(e.windowSize)};
2596
+ `, ya = n.div`
2597
+ padding: ${o.sp3};
2598
+ display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2599
+ align-items: center;
2600
+ justify-content: center;
2601
+ border: 1px solid
2602
+ ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2603
+ border-radius: ${o.sp2};
2604
+ color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2605
+ cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2606
+ &:hover {
2607
+ color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2608
+ border: 1px solid
2609
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2610
+ }
2611
+ margin-left: ${(e) => X.leftMargin.valuePx(e.windowSize)};
2612
+ margin-right: ${(e) => X.rightMargin.valuePx(e.windowSize)};
2613
+ margin-bottom: ${(e) => X.addBankAccountMarginBottom.valuePx(e.windowSize)};
2614
+ `, Ho = n(_t)`
2615
+ color: inherit;
2616
+ `, Ko = n(Tn)`
2617
+ margin-right: ${o.sp2};
2618
+ width: ${o.sp3};
2619
+ height: ${o.sp3};
2620
+ `, to = n.div`
2621
+ display: flex;
2622
+ width: 100%;
2623
+ `, Ve = {
2624
+ buttonWidth: new s(140, 140),
2625
+ paddingLeft: new s(r[3], r[6]),
2626
+ paddingRight: new s(r[3], r[8]),
2627
+ marginbottom: new s(r[4], r[5]),
2628
+ subTitleMarginbottom: new s(r[2], r[3]),
2629
+ orSeperatorTopBottomMargin: new s(r[6], 44),
2630
+ iconWidthHeight: new s(20, r[4])
2631
+ }, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
2632
+ [Rt]: {
2633
+ bankRoutingNumber: e?.bankRoutingNumber,
2634
+ bankName: e?.bankName,
2635
+ bankAccountNumber: e?.bankAccountNumber,
2636
+ confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
2637
+ bankAccountName: e?.bankAccountName
2638
+ }
2639
+ }), Yo = (e) => `${e}_form`, xa = ({
2640
+ bankAccountCreationState: e,
2641
+ setShowBankAccountPage: i,
2642
+ plaidConnectionDetails: a,
2643
+ onFetchLinkTokenClick: d,
2644
+ onEstablishConnectionClick: p,
2645
+ bankAccountToCreate: v,
2646
+ fetchBankNameByRoutingStatus: m,
2647
+ isDisabled: S,
2648
+ onSaveHandler: x,
2649
+ onUserBankDetailsUpdated: l,
2650
+ onFetchBankName: C,
2651
+ onBackClick: b
2652
+ }) => {
2653
+ const c = $t(), y = ze(), $ = un({
2654
+ mode: "onBlur",
2655
+ reValidateMode: "onChange",
2656
+ defaultValues: xt(
2657
+ () => fa(v),
2658
+ [v]
2659
+ )
2660
+ }), O = pn(
2661
+ (K) => {
2662
+ p?.(K), b();
2663
+ },
2664
+ [b, p]
2665
+ ), T = a.link_account_no_microdeposit, { open: P } = dr({
2666
+ token: T.linkToken ?? null,
2667
+ onSuccess: O
2668
+ });
2669
+ ye(() => {
2670
+ (it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
2671
+ }, []);
2672
+ const [H, B] = Z(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
2673
+ onOkClick: () => {
2674
+ B(!1), $.reset(), b();
2675
+ },
2676
+ onCancelClick: () => {
2677
+ B(!1);
2678
+ }
2679
+ }, ne = async (K, F) => {
2680
+ const J = F[Rt].bankRoutingNumber;
2681
+ l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && kr.test(J) === !0 && C?.(J);
2682
+ };
2683
+ ye(() => {
2684
+ const K = $.watch((F, { name: J }) => {
2685
+ J != null && F != null && ur(() => ne(J, F));
2686
+ });
2687
+ return () => {
2688
+ K.unsubscribe();
2689
+ };
2690
+ }), ye(() => {
2691
+ e?.fetchState === "Completed" && b();
2692
+ }, [
2693
+ e?.fetchState,
2694
+ b,
2695
+ i
2696
+ ]);
2697
+ const re = $.handleSubmit((K) => {
2698
+ m.fetchState !== "In-Progress" && x();
2699
+ }), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
2700
+ return /* @__PURE__ */ t.jsxs(ba, { children: [
2701
+ /* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
2702
+ H === !0 ? /* @__PURE__ */ t.jsx(
2703
+ wo,
2704
+ {
2705
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
2706
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
2707
+ primaryButtonText: k.buttons.delete,
2708
+ secondaryButtonText: k.buttons.cancel,
2709
+ action: te
2710
+ }
2711
+ ) : null,
2712
+ /* @__PURE__ */ t.jsx(
2713
+ Gr,
2714
+ {
2715
+ header: k.addBankAccount,
2716
+ isDirty: $.formState.isDirty,
2717
+ onBackClick: b,
2718
+ setShowConfirmationPopup: B
2719
+ }
2720
+ ),
2721
+ /* @__PURE__ */ t.jsx(wa, {}),
2722
+ /* @__PURE__ */ t.jsxs(ja, { size: y, children: [
2723
+ /* @__PURE__ */ t.jsx(
2724
+ Cr,
2725
+ {
2726
+ onClick: () => {
2727
+ $.reset(), P();
2728
+ },
2729
+ title: k.connectYourBank,
2730
+ subTitle: k.loginToBank,
2731
+ header: k.setupAchPayments,
2732
+ icon: {
2733
+ element: /* @__PURE__ */ t.jsx(
2734
+ Tr,
2735
+ {
2736
+ width: Ve.iconWidthHeight.valuePx(y),
2737
+ height: Ve.iconWidthHeight.valuePx(y)
2738
+ }
2739
+ ),
2740
+ color: Y
2741
+ },
2742
+ style: {
2743
+ width: "unset",
2744
+ rowGap: y === "small" ? o.sp2 : void 0
2745
+ }
2746
+ }
2747
+ ),
2748
+ /* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
2749
+ /* @__PURE__ */ t.jsx(Sa, {}),
2750
+ /* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
2751
+ ] }),
2752
+ /* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
2753
+ ] }),
2754
+ /* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
2755
+ e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
2756
+ Yr,
2757
+ {
2758
+ warningText: k.accountExistWarning
2759
+ }
2760
+ ) : null,
2761
+ /* @__PURE__ */ t.jsx(
2762
+ Kr,
2763
+ {
2764
+ bankAccountToCreate: v,
2765
+ fetchBankNameByRoutingStatus: m,
2766
+ sectionId: Rt
2767
+ }
2768
+ )
2769
+ ] }) }) })
2770
+ ] }),
2771
+ /* @__PURE__ */ t.jsx(
2772
+ In,
2773
+ {
2774
+ formId: Yo(Go),
2775
+ primaryBtn: {
2776
+ label: k.saveAccount,
2777
+ isLoading: e.fetchState === "In-Progress",
2778
+ style: { width: Ve.buttonWidth.value(y) },
2779
+ isDisabled: S != null
2780
+ },
2781
+ cancelBtn: {
2782
+ label: M.cancel,
2783
+ style: { width: Ve.buttonWidth.value(y) },
2784
+ shouldResetOnCancel: !1,
2785
+ onClick: () => {
2786
+ $.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
2787
+ }
2788
+ }
2789
+ }
2790
+ )
2791
+ ] });
2792
+ }, ba = n.div`
2793
+ display: flex;
2794
+ flex-direction: column;
2795
+ width: 100%;
2796
+ height: 100%;
2797
+ `, wa = n.div`
2798
+ margin: ${o.sp2} 0;
2799
+ position: relative;
2800
+ `, $a = n.div`
2801
+ margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
2802
+ position: relative;
2803
+ `, Sa = n.div`
2804
+ background: ${(e) => e.theme.colors.grey2};
2805
+ height: 1px;
2806
+ `, va = n(jr)`
2807
+ color: ${(e) => e.theme.colors.primary};
2808
+ margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
2809
+ `, Ca = n.div`
2810
+ display: flex;
2811
+ justify-content: center;
2812
+ `, Ta = n(yo)`
2813
+ background: ${(e) => e.theme.colors.background};
2814
+ border: 1px solid ${(e) => e.theme.colors.grey2};
2815
+ border-radius: ${o.sp5};
2816
+ width: 43px;
2817
+ height: 25px;
2818
+ display: flex;
2819
+ align-items: center;
2820
+ justify-content: center;
2821
+ color: ${(e) => e.theme.colors.grey1};
2822
+ top: -11px;
2823
+ position: absolute;
2824
+ `, ka = n.div`
2825
+ display: flex;
2826
+ flex-direction: column;
2827
+ flex-grow: 1;
2828
+ `, ja = n.div`
2829
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2830
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2831
+ `, Ia = n.div`
2832
+ padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2833
+ padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2834
+ padding-bottom: ${o.sp3};
2835
+ `, Oe = {
2836
+ containerWidth: new s(343, 544),
2837
+ confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
2838
+ confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
2839
+ submitButtonWidth: new s(145, 156),
2840
+ cancelButtonWidth: new s(121, 121),
2841
+ errorLineItemGap: new s(r[2], 12),
2842
+ styledCloseIconRight: new s(r[3], r[8])
2843
+ }, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Qo = ({ fetchState: e }) => {
2844
+ switch (e) {
2845
+ case "Not-Started":
2846
+ return /* @__PURE__ */ t.jsx(Xo, {});
2847
+ case "In-Progress":
2848
+ return /* @__PURE__ */ t.jsx(
2849
+ vt,
2850
+ {
2851
+ size: "Small",
2852
+ start: !0,
2853
+ style: {
2854
+ alignItems: "center",
2855
+ display: "flex"
2856
+ }
2857
+ }
2858
+ );
2859
+ case "Completed":
2860
+ return /* @__PURE__ */ t.jsx(Wn, {});
2861
+ default:
2862
+ return /* @__PURE__ */ t.jsx(Xo, {});
2863
+ }
2864
+ }, Oa = (e) => {
2865
+ switch (e) {
2866
+ case "Not-Started":
2867
+ return be.detectDuplicates;
2868
+ case "In-Progress":
2869
+ return be.detectingDuplicates;
2870
+ case "Completed":
2871
+ return be.noDuplicatesFound;
2872
+ default:
2873
+ return be.detectDuplicates;
2874
+ }
2875
+ }, Pa = ({
2876
+ submitFetchState: e,
2877
+ duplicateReimbursementStatus: i,
2878
+ hasDuplicateLine: a,
2879
+ numberOfDuplicateLines: d,
2880
+ setShowDuplicatePopup: p,
2881
+ analytics: v,
2882
+ reimbursementId: m,
2883
+ submitReport: S,
2884
+ fetchDuplicateReimbursement: x,
2885
+ clearDuplicateReimbursementDetail: l,
2886
+ clearRemiSaveStatus: C
2887
+ }) => {
2888
+ const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
2889
+ i
2890
+ );
2891
+ It.useEffect(() => {
2892
+ setTimeout(() => {
2893
+ c && (y(!1), i === "Not-Started" && x());
2894
+ }, 2e3);
2895
+ }, [
2896
+ i,
2897
+ x,
2898
+ c
2899
+ ]), It.useEffect(() => {
2900
+ $ === "In-Progress" && e === "Completed" && (l(), p(!1));
2901
+ }, [
2902
+ e,
2903
+ $,
2904
+ p,
2905
+ l
2906
+ ]), It.useEffect(() => {
2907
+ O === "In-Progress" && i === "Completed" && !a && S();
2908
+ }, [
2909
+ O,
2910
+ i,
2911
+ a,
2912
+ S
2913
+ ]);
2914
+ const T = i === "Error" || e === "Error";
2915
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2916
+ T ? (
2917
+ //onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
2918
+ /* @__PURE__ */ t.jsx(Ba, { size: b })
2919
+ ) : null,
2920
+ /* @__PURE__ */ t.jsx(
2921
+ wo,
2922
+ {
2923
+ action: {
2924
+ onOkClick: () => {
2925
+ T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
2926
+ d,
2927
+ m
2928
+ ), p(!1), Ir());
2929
+ },
2930
+ onCancelClick: () => {
2931
+ T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
2932
+ d,
2933
+ m
2934
+ ), S());
2935
+ }
2936
+ },
2937
+ shouldClickAway: T,
2938
+ isSecondaryLoading: e === "In-Progress",
2939
+ secondaryButtonVariant: "secondary",
2940
+ primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
2941
+ secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
2942
+ primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2943
+ secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2944
+ descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
2945
+ Aa,
2946
+ {
2947
+ hasDuplicate: a,
2948
+ duplicateReimbursementStatus: i,
2949
+ children: [
2950
+ /* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
2951
+ c ? /* @__PURE__ */ t.jsx(
2952
+ vt,
2953
+ {
2954
+ size: "Small",
2955
+ start: !0,
2956
+ style: {
2957
+ alignItems: "center",
2958
+ display: "flex"
2959
+ }
2960
+ }
2961
+ ) : /* @__PURE__ */ t.jsx(Wn, {}),
2962
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
2963
+ ] }),
2964
+ a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2965
+ /* @__PURE__ */ t.jsx(Zo, {}),
2966
+ /* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
2967
+ ] }) : /* @__PURE__ */ t.jsxs(
2968
+ no,
2969
+ {
2970
+ isDisabled: i === "Not-Started",
2971
+ isSuccess: i === "Completed" && d === 0,
2972
+ children: [
2973
+ /* @__PURE__ */ t.jsx(Qo, { fetchState: i }),
2974
+ /* @__PURE__ */ t.jsx(
2975
+ oo,
2976
+ {
2977
+ isDisabled: i === "Not-Started",
2978
+ children: Oa(i)
2979
+ }
2980
+ )
2981
+ ]
2982
+ }
2983
+ ),
2984
+ e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2985
+ /* @__PURE__ */ t.jsx(Zo, {}),
2986
+ /* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
2987
+ ] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
2988
+ no,
2989
+ {
2990
+ isDisabled: e === "Not-Started",
2991
+ isSuccess: e === "Completed",
2992
+ children: [
2993
+ /* @__PURE__ */ t.jsx(Qo, { fetchState: e }),
2994
+ /* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
2995
+ ]
2996
+ }
2997
+ )
2998
+ ]
2999
+ }
3000
+ ) }),
3001
+ titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
3002
+ showFooter: a || T,
3003
+ containerStyle: {
3004
+ width: Oe.containerWidth.value(b),
3005
+ maxWidth: "unset"
3006
+ }
3007
+ }
3008
+ )
3009
+ ] });
3010
+ }, Ba = n(On)`
3011
+ width: ${o.sp4};
3012
+ height: ${o.sp4};
3013
+ color: ${(e) => e.theme.colors.hero};
3014
+ position: fixed;
3015
+ top: 19px;
3016
+ right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
3017
+ z-index: 11;
3018
+ cursor: pointer;
3019
+ &:hover {
3020
+ color: ${(e) => e.theme.colors.primary};
3021
+ }
3022
+ `, Zo = n(Pr)`
3023
+ width: ${o.sp4};
3024
+ height: ${o.sp4};
3025
+ min-width: ${o.sp4};
3026
+ color: ${I.brandColorGoldDark};
3027
+ `, Xo = n(Jr)`
3028
+ width: ${o.sp3};
3029
+ height: ${o.sp3};
3030
+ min-width: ${o.sp3};
3031
+ color: ${(e) => e.theme.colors.grey3};
3032
+ `, oo = n.div`
3033
+ color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
3034
+ text-align: left;
3035
+ `, en = n.div`
3036
+ color: ${I.brandColorGoldDark};
3037
+ `, no = n.div`
3038
+ display: flex;
3039
+ align-items: center;
3040
+ gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
3041
+ border: 1px solid
3042
+ ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
3043
+ padding: ${o.sp3};
3044
+ border-radius: ${o.sp2};
3045
+ `, Aa = n.div`
3046
+ display: flex;
3047
+ flex-direction: column;
3048
+ gap: ${o.sp3};
3049
+ margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
3050
+ `, tn = n.div`
3051
+ display: flex;
3052
+ align-items: center;
3053
+ gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
3054
+ border: 1px solid ${(e) => e.theme.colors.brandColorGold};
3055
+ background-color: ${I.alertLight};
3056
+ padding: ${o.sp3};
3057
+ border-radius: ${o.sp2};
3058
+ text-align: left;
3059
+ `, La = n($o)`
3060
+ margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
3061
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3062
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3063
+ color: ${(e) => e.theme.colors.primary};
3064
+ word-break: break-word;
3065
+ width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
3066
+ `, Ma = n(xn)`
3067
+ color: ${(e) => e.theme.colors.hero};
3068
+ padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3069
+ padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3070
+ margin-bottom: ${o.sp5};
3071
+ margin-top: ${o.sp4};
3072
+ white-space: pre-line;
3073
+ width: -webkit-fill-available;
3074
+ `, Wn = n(Or)`
3075
+ width: ${o.sp4};
3076
+ height: ${o.sp4};
3077
+ min-width: ${o.sp4};
3078
+ color: ${I.success};
3079
+ `, ee = {
3080
+ rightMargin: new s(r[3], r[8]),
3081
+ leftMargin: new s(r[3], r[6]),
3082
+ bottomMargin: new s(56, 56),
3083
+ closeMarginTop: new s(0, 19),
3084
+ closeMarginRight: new s(r[3], r[8]),
3085
+ rightSectionWidth: new s(100, 58),
3086
+ leftSectionWidth: new s(100, 42),
3087
+ footerButtonWidth: new s(120, 165),
3088
+ right: new s(r[3], r[0]),
3089
+ actionsContainerRight: new s(r[0], r[6]),
3090
+ otherActionsContainerBottom: new s(58, 44),
3091
+ duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
3092
+ duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
3093
+ duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
3094
+ duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
3095
+ navBarWidth: new s(100, 58)
3096
+ }, {
3097
+ spendManagement: {
3098
+ reimbursement: { reimbursementDetail: f, bulkActions: on }
3099
+ },
3100
+ common: {
3101
+ currency: { currencyCode: Ee, currencySymbol: Lt },
3102
+ texts: { comments: Ra },
3103
+ strings: { empty: za }
3104
+ },
3105
+ collaboration: {
3106
+ threads: {
3107
+ placeholder: { addANewComment: Fa, replyAComment: Na },
3108
+ tooltip: { resolveComment: Wa, unResolveComment: Ea }
3109
+ }
3110
+ },
3111
+ dateFormat: nn
3112
+ } = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
3113
+ const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
3114
+ return {
3115
+ lineIndex: v,
3116
+ lineId: e?.lineId ?? String(v + 1),
3117
+ reimbursementType: e?.type ?? f.outOfPocketKey,
3118
+ file: e?.file,
3119
+ homeCurrencyConversions: {
3120
+ amount: e?.homeCurrencyConversions?.amount ?? 0,
3121
+ currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
3122
+ currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
3123
+ },
3124
+ outOfPocket: {
3125
+ recommendedAccount: l.recommendedAccount,
3126
+ //account to show in update to checkbox
3127
+ isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
3128
+ //update to checkbox is ticked
3129
+ isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
3130
+ retainedAccount: l.retainedAccount,
3131
+ //account to show in retain checkbox
3132
+ isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
3133
+ //retain checkbox is selected
3134
+ recommendations: c ?? [],
3135
+ transactionDate: l?.transactionDate?.toDate() ?? void 0,
3136
+ class: {
3137
+ allOptions: Ue(
3138
+ Ye(a, [])
3139
+ ),
3140
+ selectedOption: l?.lineDetail?.class?.classId ?? x
3141
+ },
3142
+ account: {
3143
+ allOptions: Ue(
3144
+ Et(i, c)
3145
+ ),
3146
+ selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
3147
+ },
3148
+ amount: {
3149
+ amount: l?.amount ?? 0,
3150
+ currencyCode: l?.currencyCode ?? m.currencyCode,
3151
+ currencySymbol: l?.currencySymbol ?? m.currencySymbol,
3152
+ currency: {
3153
+ allOptions: S.map((y) => ({
3154
+ label: `${y.currencyCode} - ${y.currency}`,
3155
+ value: y.currencyCode,
3156
+ countryCode: bo(
3157
+ y.countryCode
3158
+ )
3159
+ })),
3160
+ selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
3161
+ }
3162
+ },
3163
+ memo: l?.description ?? void 0,
3164
+ merchant: {
3165
+ allOptions: d.map((y) => y.id).filter((y) => !!y),
3166
+ selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
3167
+ }
3168
+ },
3169
+ mileage: {
3170
+ transactionDate: C?.transactionDate?.toDate(),
3171
+ class: {
3172
+ allOptions: Ue(
3173
+ Ye(a, [])
3174
+ ),
3175
+ selectedOption: C?.lineDetail?.class?.classId
3176
+ },
3177
+ distanceInMiles: C?.distanceMileage?.value,
3178
+ amount: {
3179
+ amount: C?.amount ?? 0,
3180
+ currencyCode: C?.currencyCode ?? m.currencyCode,
3181
+ currencySymbol: C?.currencySymbol ?? m.currencySymbol
3182
+ },
3183
+ memo: C?.description
3184
+ }
3185
+ };
3186
+ }, ro = (e, i, a) => {
3187
+ const d = [];
3188
+ return Object.values(e.lineDetailSection).forEach(
3189
+ (p, v) => {
3190
+ p?.lineId != null && d.push(
3191
+ Va(
3192
+ p,
3193
+ e.accountsHierarchyList,
3194
+ e.classHierarchyList,
3195
+ e.merchantList.merchants,
3196
+ e.tentativeMerchantNameByLineId,
3197
+ v,
3198
+ i,
3199
+ e.allCurrencies,
3200
+ e.loggedInUserDepartmentId
3201
+ )
3202
+ );
3203
+ }
3204
+ ), d.length === 0 && d.push(
3205
+ Nn(
3206
+ 0,
3207
+ "1",
3208
+ e.accountsHierarchyList,
3209
+ e.classHierarchyList,
3210
+ e.merchantList.merchants,
3211
+ i,
3212
+ e.allCurrencies,
3213
+ e.loggedInUserDepartmentId
3214
+ )
3215
+ ), {
3216
+ [Nt]: {
3217
+ reportTitle: e.whatForSection.reportTitle
3218
+ },
3219
+ [So]: d,
3220
+ [wt]: {
3221
+ selectedOption: e.paymentTo,
3222
+ allOptions: a.map((p) => p.bankAccountId)
3223
+ }
3224
+ };
3225
+ }, io = (e, i) => {
3226
+ const a = (d) => d.lineId == null || i[d.lineId]?.fetchState === "In-Progress" ? 0 : (i[d.lineId]?.fetchState === "Completed", d.type === f.mileageKey ? d?.mileage?.amount ?? 0 : d?.outOfPocket?.currencyCode !== Ee && d.homeCurrencyConversions?.amount !== d?.outOfPocket?.amount ? d.homeCurrencyConversions?.amount ?? 0 : d?.outOfPocket?.amount ?? 0);
3227
+ return Object.values(e).reduce((d, p) => d + a(p), 0);
3228
+ }, ao = (e, i, a, d, p, v, m, S) => {
3229
+ const x = {};
3230
+ return e.lineInfo.forEach((l) => {
3231
+ const C = S.find(
3232
+ (O) => O.classId === l.mileage.class.selectedOption
3233
+ ), b = m.find(
3234
+ (O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
3235
+ ), c = S.find(
3236
+ (O) => O.classId === l.outOfPocket.class.selectedOption
3237
+ ), y = i.find(
3238
+ (O) => O.id === l.outOfPocket.merchant.selectedOption
3239
+ ), $ = v.find(
3240
+ (O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
3241
+ )?.currencySymbol;
3242
+ x[l.lineId] = {
3243
+ fileId: l.file?.fileId,
3244
+ lineId: l.lineId,
3245
+ type: l.reimbursementType,
3246
+ homeCurrencyConversions: l.homeCurrencyConversions ?? {
3247
+ amount: 0,
3248
+ currencyCode: "USD",
3249
+ currencySymbol: "$"
3250
+ },
3251
+ mileage: {
3252
+ description: l.mileage.memo ?? "",
3253
+ lineDetail: {
3254
+ class: C
3255
+ },
3256
+ transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
3257
+ amount: l.mileage.amount?.amount ?? 0,
3258
+ currencyCode: l.mileage.amount?.currencyCode ?? $,
3259
+ currencySymbol: l.mileage.amount?.currencySymbol ?? $,
3260
+ distanceMileage: {
3261
+ unit: "miles",
3262
+ value: l.mileage.distanceInMiles ?? 0
3263
+ }
3264
+ },
3265
+ outOfPocket: {
3266
+ description: l.outOfPocket.memo ?? "",
3267
+ lineDetail: {
3268
+ class: c,
3269
+ account: b
3270
+ },
3271
+ transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
3272
+ amount: l.outOfPocket.amount?.amount ?? 0,
3273
+ currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
3274
+ currencySymbol: $,
3275
+ merchant: l.outOfPocket.merchant.selectedOption != null ? {
3276
+ id: y?.id ?? "",
3277
+ name: y?.name ?? l.outOfPocket.merchant.selectedOption
3278
+ } : void 0,
3279
+ recommendations: l.outOfPocket.recommendations,
3280
+ recommendedAccount: l.outOfPocket.recommendedAccount,
3281
+ isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
3282
+ isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
3283
+ isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
3284
+ retainedAccount: l.outOfPocket.retainedAccount
3285
+ }
3286
+ };
3287
+ }), {
3288
+ whatForSection: {
3289
+ reportTitle: e.whatFor.reportTitle
3290
+ },
3291
+ updatesByLineId: x,
3292
+ totalAmount: {
3293
+ amount: d,
3294
+ ...a
3295
+ },
3296
+ currencyConversionStateByLineId: p,
3297
+ paymentTo: e.paymentTo.selectedOption
3298
+ };
3299
+ }, Fl = ({
3300
+ remiDetails: e,
3301
+ authParams: i,
3302
+ defaultCurrency: a,
3303
+ companyMileageConfigInfo: d,
3304
+ uploadInvoiceEndPoint: p,
3305
+ isReimbursementCommentingEnabled: v,
3306
+ isUserAdmin: m,
3307
+ analytics: S,
3308
+ reimbursementId: x,
3309
+ plaidConnectionDetails: l,
3310
+ bankAccountCreationState: C,
3311
+ bankNameByRouting: b,
3312
+ bankAccounts: c,
3313
+ isSignedInUserReimbursementCreator: y,
3314
+ uncategorizedAccounts: $,
3315
+ bankAccountToCreate: O,
3316
+ fetchBankNameByRoutingStatus: T,
3317
+ onUserBankDetailsUpdated: P,
3318
+ onFetchBankName: H,
3319
+ onSaveBankAccount: B,
3320
+ fetchDuplicateReimbursement: k,
3321
+ clearDuplicateReimbursementDetail: M,
3322
+ clearRemiSaveStatus: te,
3323
+ removeDuplicateReimbursementForLine: ne,
3324
+ onDuplicateLineClick: re,
3325
+ onExistingMerchantChange: Y,
3326
+ onNewMerchantChange: K,
3327
+ onReceiptsUpload: F,
3328
+ saveRemiDetails: J,
3329
+ submitRemiDetails: q,
3330
+ discardReimbursementDetailsFromLocalStore: L,
3331
+ onReimbursementDetailsChanged: ce,
3332
+ updateReimbursementType: Q,
3333
+ onHomeCurrencyConversionUpdate: V,
3334
+ redirectToReimbursementListScreen: de,
3335
+ redirectToReimbursementDetailScreen: _e,
3336
+ deleteReimbursement: ue,
3337
+ removeFileFromLine: fe,
3338
+ onZeniLogoClick: le,
3339
+ onAmountChanged: Be,
3340
+ updateInvoiceUploadFetchState: Ae,
3341
+ clearTentativeNameForLine: Le,
3342
+ onAddNewRule: me,
3343
+ onFetchLinkTokenClick: Me,
3344
+ onEstablishConnectionClick: pe,
3345
+ deleteBankAccount: ve,
3346
+ onBackClickFromBankAccountPage: Je
3347
+ }) => {
3348
+ const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Qe, Fe] = Z(!1), [Ke, Ge] = Z(!1), [Ze, Xe] = Z("save"), [ie, lt] = Z(
3349
+ io(
3350
+ e.lineDetailSection,
3351
+ e.currencyConversionStatus
3352
+ )
3353
+ ), [pt, et] = Z(!1), [_, ht] = Z(
3354
+ null
3355
+ ), [W, se] = Z(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
3356
+ mode: "all",
3357
+ reValidateMode: "onChange",
3358
+ defaultValues: xt(
3359
+ () => ro(e, a, c),
3360
+ [e, a, c]
3361
+ ),
3362
+ values: xt(
3363
+ () => ro(e, a, c),
3364
+ [e, a, c]
3365
+ ),
3366
+ resetOptions: {
3367
+ keepErrors: !0
3368
+ },
3369
+ shouldFocusError: !0
3370
+ }), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
3371
+ const { lineInfo: u } = j, w = Number(g.split(".")[1]);
3372
+ if (g.includes("reportTitle") || g.includes("memo"))
3373
+ return;
3374
+ if (g.includes("reimbursementType")) {
3375
+ const z = u[w].mileage, E = u[w].outOfPocket;
3376
+ u[w] = {
3377
+ ...u[w],
3378
+ outOfPocket: {
3379
+ transactionDate: E.transactionDate ?? void 0,
3380
+ class: {
3381
+ allOptions: E.class.allOptions ?? Ue(
3382
+ Ye(e.classHierarchyList, [])
3383
+ ),
3384
+ selectedOption: E.class.selectedOption ?? void 0
3385
+ },
3386
+ account: {
3387
+ allOptions: E.account.allOptions ?? Ue(
3388
+ Et(e.accountsHierarchyList, [])
3389
+ ),
3390
+ selectedOption: E.account.selectedOption ?? void 0
3391
+ },
3392
+ amount: E.amount ?? {
3393
+ amount: 0,
3394
+ currencyCode: a.currencyCode,
3395
+ currencySymbol: a.currencySymbol,
3396
+ currency: {
3397
+ allOptions: e.allCurrencies.map((ke) => ({
3398
+ label: `${ke.currencyCode} - ${ke.currency}`,
3399
+ value: ke.currencyCode,
3400
+ countryCode: bo(
3401
+ ke.countryCode
3402
+ )
3403
+ })),
3404
+ selectedOption: a.currencyCode ?? Ee
3405
+ }
3406
+ },
3407
+ memo: E.memo ?? void 0,
3408
+ merchant: E.merchant ?? void 0,
3409
+ recommendations: E.recommendations ?? [],
3410
+ recommendedAccount: E.recommendedAccount ?? void 0,
3411
+ isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
3412
+ isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
3413
+ retainedAccount: E.retainedAccount ?? void 0,
3414
+ isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
3415
+ },
3416
+ mileage: {
3417
+ transactionDate: z.transactionDate ?? void 0,
3418
+ class: {
3419
+ allOptions: z.class.allOptions ?? Ue(
3420
+ Ye(e.classHierarchyList, [])
3421
+ ),
3422
+ selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
3423
+ },
3424
+ distanceInMiles: z.distanceInMiles,
3425
+ amount: {
3426
+ amount: z?.amount?.amount ?? 0,
3427
+ currencyCode: z?.amount?.currencyCode ?? Ee,
3428
+ currencySymbol: z?.amount?.currencySymbol ?? Lt
3429
+ },
3430
+ memo: z.memo ?? void 0
3431
+ }
3432
+ };
3433
+ } else if (g.includes("mileage.distanceInMiles")) {
3434
+ const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
3435
+ u[w].mileage = {
3436
+ ...u[w].mileage,
3437
+ amount: {
3438
+ amount: z != null ? z * E : 0,
3439
+ currencyCode: a.currencyCode,
3440
+ currencySymbol: a.currencySymbol
3441
+ }
3442
+ };
3443
+ } else if (g.includes("outOfPocket.amount") && u[w].lineId) {
3444
+ const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
3445
+ (ke) => ke.currencyCode === z?.currency.selectedOption
3446
+ )?.currencySymbol;
3447
+ if (z?.currencyCode !== z?.currency.selectedOption) {
3448
+ const ke = z?.currency?.allOptions || [];
3449
+ u[w].outOfPocket.amount = {
3450
+ currency: {
3451
+ allOptions: ke,
3452
+ selectedOption: z?.currency?.selectedOption
3453
+ },
3454
+ amount: u[w].outOfPocket?.amount?.amount ?? 0,
3455
+ currencyCode: z?.currency.selectedOption ?? Ee,
3456
+ currencySymbol: E ?? Lt
3457
+ };
3458
+ }
3459
+ if (z?.currency.selectedOption !== Ee)
3460
+ et(!0), Yn(u[w].lineId, Ee);
3461
+ else {
3462
+ const ke = {};
3463
+ u.forEach((Zt) => {
3464
+ ke[Zt.lineId] = {
3465
+ lineId: Zt.lineId,
3466
+ homeCurrencyConversions: Zt.homeCurrencyConversions
3467
+ };
3468
+ }), u[w].homeCurrencyConversions = {
3469
+ amount: z.amount ?? 0,
3470
+ currencyCode: z?.currency.selectedOption ?? Ee,
3471
+ currencySymbol: E ?? Lt
3472
+ };
3473
+ const jt = io(
3474
+ ke,
3475
+ e.currencyConversionStatus
3476
+ );
3477
+ ie !== jt && lt(jt);
3478
+ }
3479
+ } else if (g.includes("outOfPocket.isRetainedCategorySelected"))
3480
+ //retain checkbox is true
3481
+ u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
3482
+ else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
3483
+ if (
3484
+ //update to checkbox is true
3485
+ u[w].outOfPocket.isCategoryUpdateSelected === !0
3486
+ )
3487
+ u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
3488
+ else {
3489
+ const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
3490
+ u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
3491
+ }
3492
+ else g.includes("outOfPocket.account") && (u[w].outOfPocket.recommendations.length > 0 && (u[w].outOfPocket.recommendedAccount = u[w].outOfPocket.recommendations[0].account), //account value is same as update to checkbox
3493
+ u[w].outOfPocket.recommendedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.recommendedAccount?.qboId ? u[w].outOfPocket.isCategoryUpdateSelected = !0 : u[w].outOfPocket.isCategoryUpdateSelected = !1, //account value is same as retain to checkbox
3494
+ u[w].outOfPocket.retainedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.retainedAccount?.qboId ? u[w].outOfPocket.isRetainedCategorySelected = !0 : u[w].outOfPocket.isRetainedCategorySelected = !1, u[w].outOfPocket.isCategoryFirstTimeAutofilled = !1);
3495
+ const kt = ao(
3496
+ { ...j, lineInfo: u },
3497
+ e.merchantList.merchants,
3498
+ a,
3499
+ ie,
3500
+ e.currencyConversionStatus,
3501
+ e.allCurrencies,
3502
+ e.accountList.accounts,
3503
+ e.classList.classes
3504
+ );
3505
+ if (ce?.(kt), g.includes("outOfPocket.merchant")) {
3506
+ const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
3507
+ u[w].outOfPocket.merchant.allOptions.find(
3508
+ (jt) => jt === E
3509
+ ) != null ? Y(E, z) : K(E, z);
3510
+ }
3511
+ }, vo = xt(
3512
+ () => Bo((g, j) => Vn(g, j), 300),
3513
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3514
+ [
3515
+ //these needs to be added because these fetchState were coming as "In-Progress" because of debounce
3516
+ e.accountList.fetchState,
3517
+ e.classList.fetchState,
3518
+ e.merchantList.fetchState
3519
+ ]
3520
+ );
3521
+ ye(() => {
3522
+ const g = Te.watch((j, { name: u }) => {
3523
+ u != null && j != null && vo(u, j);
3524
+ });
3525
+ return () => {
3526
+ g.unsubscribe();
3527
+ };
3528
+ }, [vo, Te]), ye(() => {
3529
+ const g = hr(
3530
+ Object.values(e.currencyConversionStatus)
3531
+ ), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
3532
+ et(j);
3533
+ }, [e.currencyConversionStatus]), ye(() => {
3534
+ for (const j in e.currencyConversionStatus) {
3535
+ const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
3536
+ e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
3537
+ u?.homeCurrencyConversions,
3538
+ w.homeCurrencyConversions
3539
+ ) && V(
3540
+ {
3541
+ amount: u?.homeCurrencyConversions?.amount ?? 0,
3542
+ currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
3543
+ currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
3544
+ },
3545
+ j,
3546
+ x
3547
+ );
3548
+ }
3549
+ const g = io(
3550
+ e.lineDetailSection,
3551
+ e.currencyConversionStatus
3552
+ );
3553
+ ie !== g && lt(g);
3554
+ }, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
3555
+ (e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
3556
+ }, [
3557
+ e.saveStatus?.fetchState,
3558
+ e.deleteStatus.fetchState,
3559
+ x,
3560
+ L,
3561
+ de
3562
+ ]);
3563
+ const A = ze(), [Ne, gt] = Z(
3564
+ x == null
3565
+ ), [yt, _n] = Z(1), [Dn, Dt] = Z(!1), [qn, Un] = Z(""), [qt, Hn] = Z(null), [Kn, st] = Z(!1), [Gn, Co] = Z(!1), [Ut, Ht] = Z([]), [xe, Tt] = Z({
3566
+ title: "",
3567
+ description: "",
3568
+ primaryButtonText: "",
3569
+ secondaryButtonText: ""
3570
+ }), Yn = bt(
3571
+ Bo(
3572
+ (g, j) => Be(g, j),
3573
+ 500,
3574
+ {
3575
+ trailing: !0
3576
+ }
3577
+ )
3578
+ ).current;
3579
+ ye(() => {
3580
+ he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
3581
+ ro(e, a, c),
3582
+ { keepDefaultValues: !0 }
3583
+ ), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
3584
+ }, [
3585
+ he,
3586
+ e.uploadStatus,
3587
+ Te,
3588
+ e,
3589
+ Qe,
3590
+ Fe,
3591
+ Ne,
3592
+ a,
3593
+ c,
3594
+ S
3595
+ ]), ye(() => {
3596
+ e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
3597
+ }, [e.uploadStatus, Fe, Ne]);
3598
+ const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
3599
+ onOkClick: () => {
3600
+ if (st(!1), xe.primaryButtonText === f.buttons.discard)
3601
+ L(x), e.remiStage === "draft" ? de?.() : _e?.();
3602
+ else if (xe.primaryButtonText === f.buttons.delete)
3603
+ xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
3604
+ else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
3605
+ const g = Ut.filter(
3606
+ (j) => j !== yt.toString()
3607
+ );
3608
+ Ht(
3609
+ g
3610
+ ), F(qt, yt, !0);
3611
+ }
3612
+ },
3613
+ onCancelClick: () => {
3614
+ if (st(!1), xe.secondaryButtonText === f.buttons.no) {
3615
+ const g = Ut.filter(
3616
+ (j) => j !== yt.toString()
3617
+ );
3618
+ Ht(
3619
+ g
3620
+ ), F(
3621
+ qt,
3622
+ yt,
3623
+ !1
3624
+ );
3625
+ }
3626
+ }
3627
+ }, To = () => {
3628
+ R || Vr(En) ? (Tt({
3629
+ title: f.discardTitle,
3630
+ description: f.discardDescription,
3631
+ primaryButtonText: f.buttons.discard,
3632
+ secondaryButtonText: f.buttons.cancel
3633
+ }), st(!0)) : (L(x), de?.());
3634
+ }, Qn = () => {
3635
+ Tt({
3636
+ title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
3637
+ description: f.deleteAlertDescription,
3638
+ primaryButtonText: f.buttons.delete,
3639
+ secondaryButtonText: f.buttons.cancel
3640
+ }), st(!0);
3641
+ }, Zn = (g) => {
3642
+ Un(g), Tt({
3643
+ title: f.deleteBankAccountTitle,
3644
+ description: f.deleteBankAccountDescription,
3645
+ primaryButtonText: f.buttons.delete,
3646
+ secondaryButtonText: f.buttons.cancel
3647
+ }), st(!0);
3648
+ }, Xn = () => {
3649
+ Tt({
3650
+ title: f.overwriteTitle,
3651
+ description: f.overwriteDescription,
3652
+ primaryButtonText: f.buttons.yes,
3653
+ secondaryButtonText: f.buttons.no
3654
+ }), st(!0);
3655
+ }, er = () => {
3656
+ let g = !0;
3657
+ const j = [];
3658
+ return Object.values(e.lineDetailSection).forEach((u, w) => {
3659
+ u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
3660
+ }), Ht(j), g;
3661
+ }, ko = () => {
3662
+ if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
3663
+ To();
3664
+ else {
3665
+ Xe("save");
3666
+ const g = Te.getValues(), j = ao(
3667
+ g,
3668
+ e.merchantList.merchants,
3669
+ a,
3670
+ ie,
3671
+ e.currencyConversionStatus,
3672
+ e.allCurrencies,
3673
+ e.accountList.accounts,
3674
+ e.classList.classes
3675
+ );
3676
+ ce?.(j);
3677
+ const u = j.whatForSection?.reportTitle;
3678
+ u != null && u.length > 0 ? J(
3679
+ e.remiStatus === "rejected" ? "pending_approval" : "draft"
3680
+ ) : Te.trigger(`${Nt}.reportTitle`, {
3681
+ shouldFocus: !0
3682
+ });
3683
+ }
3684
+ };
3685
+ let Gt = !1;
3686
+ Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
3687
+ g.length > 0 && (Gt = !0);
3688
+ });
3689
+ let jo = [];
3690
+ if (e.remiId == null) {
3691
+ const g = ie ?? 0;
3692
+ g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
3693
+ const u = j.criteria[0].range;
3694
+ if (u.max != null) {
3695
+ if (u.min.amount < g && u.max.amount >= g)
3696
+ return j;
3697
+ } else if (u.min.amount < g)
3698
+ return j;
3699
+ return null;
3700
+ }).map((j) => ({
3701
+ ...j,
3702
+ stepsWithStatus: j.steps.map((u) => ({
3703
+ ...u,
3704
+ actorsActivity: [],
3705
+ isOriginalApprovalStep: !0
3706
+ })),
3707
+ isRealTimeApprovalEnabled: !1
3708
+ })));
3709
+ }
3710
+ const tr = (g) => {
3711
+ const j = er();
3712
+ return Te.handleSubmit(() => {
3713
+ j && (Xe("submit"), S?.trackReimbursementSubmitReimbursement(
3714
+ e.createTime?.format(
3715
+ nn.analytics.MMMDashDDDashYYYYFormat
3716
+ ) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
3717
+ a.currencyCode,
3718
+ ie,
3719
+ x
3720
+ ), M(), Co(!0));
3721
+ })(g);
3722
+ }, or = () => {
3723
+ const g = Te.getValues(), j = ao(
3724
+ g,
3725
+ e.merchantList.merchants,
3726
+ a,
3727
+ ie,
3728
+ e.currencyConversionStatus,
3729
+ e.allCurrencies,
3730
+ e.accountList.accounts,
3731
+ e.classList.classes
3732
+ );
3733
+ ce?.(j), q();
3734
+ }, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
3735
+ gn(
3736
+ e.reimbursementInfo.paymentDate.toDate(),
3737
+ [0, 6],
3738
+ e.achSameDayMaxDays
3739
+ ).toDateString()
3740
+ ) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = qr(
3741
+ e.duplicateLineByLineId
3742
+ ), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Qt } = mr(Br), { threads: ft, isLoading: tt } = Ar(
3743
+ {
3744
+ application: "dashboard",
3745
+ companyId: Re.currentTenant?.companyId,
3746
+ tab: "reimbursement",
3747
+ entityId: x,
3748
+ // Use remiId here
3749
+ isGlobalComment: !1
3750
+ },
3751
+ "both",
3752
+ !1
3753
+ );
3754
+ ye(() => {
3755
+ Jt?.threadId != null && ft.length > 0 && !tt && (Qt(Jt.threadId), Oo(null));
3756
+ }, [
3757
+ Jt,
3758
+ ft,
3759
+ tt,
3760
+ Qt,
3761
+ Oo
3762
+ ]);
3763
+ const lr = xt(() => x == null ? [] : ft.filter(
3764
+ (g) => g.resolved === !1 && !g.id.includes(Lr)
3765
+ ), [ft, x]).length, sr = (g, j) => {
3766
+ Qt(j);
3767
+ const u = g.entityType.split("."), w = parseInt(u[2]);
3768
+ if (isNaN(w)) {
3769
+ se(!1);
3770
+ return;
3771
+ }
3772
+ const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
3773
+ u.includes(f.mileageKey) && z === f.outOfPocketKey ? Q(
3774
+ Lo(f.mileageKey),
3775
+ kt,
3776
+ x
3777
+ ) : u.includes(f.outOfPocketKey) && z === f.mileageKey && Q(
3778
+ Lo(f.outOfPocketKey),
3779
+ kt,
3780
+ x
3781
+ ), se(!1);
3782
+ };
3783
+ return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
3784
+ Mr,
3785
+ {
3786
+ sharedItems: {
3787
+ sharedFunctions: void 0,
3788
+ sharedRef: { contentWrapperRef: Ce.current ?? null }
3789
+ },
3790
+ children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
3791
+ /* @__PURE__ */ t.jsx(
3792
+ "form",
3793
+ {
3794
+ id: an(rn),
3795
+ onSubmit: (g) => tr(g),
3796
+ children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
3797
+ Kn ? /* @__PURE__ */ t.jsx(
3798
+ wo,
3799
+ {
3800
+ titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
3801
+ descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
3802
+ primaryButtonText: xe.primaryButtonText,
3803
+ secondaryButtonText: xe.secondaryButtonText,
3804
+ action: Jn,
3805
+ proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
3806
+ isEditPopup: xe.title === f.deleteBankAccountTitle
3807
+ }
3808
+ ) : null,
3809
+ Gn ? /* @__PURE__ */ t.jsx(
3810
+ Pa,
3811
+ {
3812
+ reimbursementId: x,
3813
+ submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
3814
+ duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
3815
+ hasDuplicateLine: Yt,
3816
+ numberOfDuplicateLines: Io,
3817
+ setShowDuplicatePopup: Co,
3818
+ submitReport: or,
3819
+ fetchDuplicateReimbursement: k,
3820
+ clearDuplicateReimbursementDetail: M,
3821
+ clearRemiSaveStatus: te,
3822
+ analytics: S
3823
+ }
3824
+ ) : null,
3825
+ Qe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
3826
+ Ne ? /* @__PURE__ */ t.jsxs(
3827
+ sn,
3828
+ {
3829
+ windowSize: A,
3830
+ "data-testid": U("skip-autofill-section"),
3831
+ children: [
3832
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3833
+ /* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
3834
+ co,
3835
+ {
3836
+ partOfSkipAutoFill: !0,
3837
+ size: A,
3838
+ onClick: () => gt(!1),
3839
+ "data-testid": U(
3840
+ "close-invoice-upload"
3841
+ ),
3842
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3843
+ }
3844
+ ) }),
3845
+ /* @__PURE__ */ t.jsx(nl, { children: Kt })
3846
+ ] }) : null,
3847
+ /* @__PURE__ */ t.jsx(
3848
+ Pn,
3849
+ {
3850
+ showAutofill: Ne,
3851
+ analytics: S,
3852
+ onSkipAutofill: () => {
3853
+ S?.trackReimbursementSkipAutofill(), gt(!1);
3854
+ },
3855
+ uploadInvoiceEndPoint: p,
3856
+ authParams: i,
3857
+ style: {
3858
+ width: ee.leftSectionWidth.valuePercentage(A),
3859
+ boxSizing: "border-box",
3860
+ backgroundColor: A === "small" ? He.colors.grey4 : "unset",
3861
+ padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
3862
+ margin: A === "small" ? o.sp0 : void 0
3863
+ },
3864
+ onInvoiceUpload: (g) => F(
3865
+ g,
3866
+ yt,
3867
+ !0
3868
+ ),
3869
+ dropFilePlaceholder: {
3870
+ upload: f.dropReceipt.upload,
3871
+ single: f.dropReceipt.single,
3872
+ or: f.dropReceipt.or,
3873
+ multiple: f.dropReceipt.multiple,
3874
+ receipts: f.dropReceipt.receipts
3875
+ },
3876
+ updateInvoiceUploadFetchState: Ae,
3877
+ showInfoText: !1,
3878
+ allowMultiFiles: Ne,
3879
+ type: "reimbursement"
3880
+ }
3881
+ ),
3882
+ A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
3883
+ co,
3884
+ {
3885
+ partOfSkipAutoFill: !0,
3886
+ onClick: () => gt(!1),
3887
+ "data-testid": U(
3888
+ "close-invoice-upload"
3889
+ ),
3890
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3891
+ }
3892
+ ) }) : null
3893
+ ]
3894
+ }
3895
+ ) : null,
3896
+ /* @__PURE__ */ t.jsxs(
3897
+ pl,
3898
+ {
3899
+ windowSize: A,
3900
+ "data-testid": U(
3901
+ "edit-reimbursement-detail-page-nav-bar-container"
3902
+ ),
3903
+ children: [
3904
+ A !== "small" ? /* @__PURE__ */ t.jsx(
3905
+ Fo,
3906
+ {
3907
+ style: { width: "42%" },
3908
+ "data-testid": U(
3909
+ "edit-reimbursement-detail-page-left-nav-bar"
3910
+ ),
3911
+ title: "",
3912
+ leftSideComponent: /* @__PURE__ */ t.jsx(
3913
+ hl,
3914
+ {
3915
+ "data-testid": U(
3916
+ "zeni-logo-spend-management-reimbursement-detail-page"
3917
+ ),
3918
+ onClick: le
3919
+ }
3920
+ ),
3921
+ enableTitleOnScroll: !1,
3922
+ scrollableContent: h,
3923
+ backgroundColor: He.colors.background,
3924
+ keepBackgroundOnScroll: !0,
3925
+ source: "EditReimbursementDetailPage"
3926
+ }
3927
+ ) : null,
3928
+ A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
3929
+ /* @__PURE__ */ t.jsx(
3930
+ Fo,
3931
+ {
3932
+ style: { width: ee.navBarWidth.valuePercentage(A) },
3933
+ "data-testid": U(
3934
+ "edit-reimbursement-detail-page-right-nav-bar"
3935
+ ),
3936
+ source: "EditReimbursementDetailPage",
3937
+ title: Kt,
3938
+ leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
3939
+ rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
3940
+ v && x != null ? /* @__PURE__ */ t.jsxs(
3941
+ yl,
3942
+ {
3943
+ isDisabled: tt,
3944
+ "data-testid": U(
3945
+ "remi-comment-button"
3946
+ ),
3947
+ onClick: tt ? () => null : (g) => {
3948
+ g.preventDefault(), g.stopPropagation(), ht({
3949
+ roomId: Ct,
3950
+ companyId: Re.currentTenant?.companyId ?? "",
3951
+ companyName: Re.currentTenant?.companyName ?? "",
3952
+ entityType: "reimbursement.details",
3953
+ entityId: x
3954
+ }), se(!0), S?.trackCommentActivity(
3955
+ "reimbursement",
3956
+ // pageName
3957
+ "clicked",
3958
+ // activityType
3959
+ Re.currentTenant?.companyName ?? "",
3960
+ // tenantName
3961
+ Re.controllersList.controllers.map(
3962
+ (j) => zr(j)
3963
+ ),
3964
+ // controllerName
3965
+ void 0,
3966
+ // status
3967
+ void 0,
3968
+ // createdBy
3969
+ "page icon"
3970
+ // source
3971
+ );
3972
+ },
3973
+ children: [
3974
+ /* @__PURE__ */ t.jsx(
3975
+ Rr,
3976
+ {
3977
+ count: tt ? void 0 : lr,
3978
+ isLoading: tt,
3979
+ style: { left: "12px" }
3980
+ }
3981
+ ),
3982
+ /* @__PURE__ */ t.jsx(fl, {})
3983
+ ]
3984
+ }
3985
+ ) : null,
3986
+ /* @__PURE__ */ t.jsx(
3987
+ co,
3988
+ {
3989
+ size: A,
3990
+ onClick: () => To(),
3991
+ "data-testid": U("close-nav-bar"),
3992
+ children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
3993
+ }
3994
+ )
3995
+ ] }) : null,
3996
+ enableTitleOnScroll: A !== "small",
3997
+ scrollThreshold: 64,
3998
+ scrollableContent: h,
3999
+ backgroundColor: He.colors.grey4
4000
+ }
4001
+ )
4002
+ ]
4003
+ }
4004
+ ),
4005
+ A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4006
+ /* @__PURE__ */ t.jsx(ml, { children: Kt }),
4007
+ /* @__PURE__ */ t.jsx(
4008
+ Fr,
4009
+ {
4010
+ progressSectionObj: nr,
4011
+ createDate: e.createTime,
4012
+ paymentDate: ir,
4013
+ scheduleDate: e.reimbursementInfo?.paymentDate,
4014
+ approvedDate: e.latestApprovedDate,
4015
+ isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
4016
+ }
4017
+ ),
4018
+ Gt && /* @__PURE__ */ t.jsxs(al, { children: [
4019
+ /* @__PURE__ */ t.jsx(il, {}),
4020
+ /* @__PURE__ */ t.jsx(ll, { children: f.banner })
4021
+ ] }),
4022
+ e.isProcessing ? /* @__PURE__ */ t.jsx(
4023
+ wn,
4024
+ {
4025
+ variant: "warning",
4026
+ style: {
4027
+ margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
4028
+ },
4029
+ title: on.duplicateWarning.title,
4030
+ description: on.duplicateWarning.description
4031
+ }
4032
+ ) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
4033
+ /* @__PURE__ */ t.jsx(Ga, {}),
4034
+ /* @__PURE__ */ t.jsxs(dl, { children: [
4035
+ /* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
4036
+ /* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
4037
+ ] })
4038
+ ] }) : null,
4039
+ /* @__PURE__ */ t.jsx(
4040
+ Ln,
4041
+ {
4042
+ isReimbursementCommentingEnabled: v,
4043
+ sectionId: Nt,
4044
+ reimbursementId: e.remiId,
4045
+ reportTitle: e.whatForSection.reportTitle
4046
+ }
4047
+ )
4048
+ ] }) : null,
4049
+ /* @__PURE__ */ t.jsx(
4050
+ ia,
4051
+ {
4052
+ onDuplicateLineClick: re,
4053
+ reimbursementId: x,
4054
+ remiDetails: e,
4055
+ uploadInvoiceEndPoint: p,
4056
+ authParams: i,
4057
+ showSkipAutoFill: Ne,
4058
+ setShowSkipAutoFill: gt,
4059
+ isReimbursementCommentingEnabled: v,
4060
+ isAutoFieldsExist: Gt,
4061
+ totalAmount: ie,
4062
+ removeFileFromLine: fe,
4063
+ onReplaceClick: Xn,
4064
+ onReceiptsUpload: F,
4065
+ currencyConversionStatus: e.currencyConversionStatus,
4066
+ setCurrentLineIdForUpload: _n,
4067
+ setUploadedReceiptPayload: Hn,
4068
+ updateInvoiceUploadFetchState: Ae,
4069
+ clearTentativeNameForLine: Le,
4070
+ defaultCurrency: a,
4071
+ companyMileageConfigInfo: d,
4072
+ isUserAdmin: m,
4073
+ setShowBankAccountPage: Dt,
4074
+ bankAccounts: c,
4075
+ onDeleteBankAccount: Zn,
4076
+ analytics: S,
4077
+ fileRequiredLineIds: Ut,
4078
+ isSignedInUserReimbursementCreator: y,
4079
+ uncategorizedAccounts: $,
4080
+ showTotalAmountLoader: pt,
4081
+ duplicateLineByLineId: e.duplicateLineByLineId,
4082
+ hasDuplicateLine: Yt,
4083
+ removeDuplicateReimbursementForLine: ne,
4084
+ scrollContainerRef: h
4085
+ }
4086
+ ),
4087
+ /* @__PURE__ */ t.jsxs(
4088
+ bl,
4089
+ {
4090
+ showSkipAutoFill: Ne,
4091
+ windowSize: A,
4092
+ children: [
4093
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4094
+ /* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
4095
+ e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
4096
+ No,
4097
+ {
4098
+ amount: ie ?? 0,
4099
+ activities: e.remiActivities,
4100
+ stage: e.remiStage ?? "draft",
4101
+ onAddNewRule: me,
4102
+ entity: "reimbursement",
4103
+ historicActivities: e.remiHistory.activities
4104
+ }
4105
+ ),
4106
+ e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
4107
+ No,
4108
+ {
4109
+ amount: ie ?? 0,
4110
+ activities: jo,
4111
+ stage: "draft",
4112
+ entity: "reimbursement",
4113
+ historicActivities: e.remiHistory.activities
4114
+ }
4115
+ ) : null
4116
+ ] }) })
4117
+ ]
4118
+ }
4119
+ ),
4120
+ /* @__PURE__ */ t.jsx(Sl, {}),
4121
+ /* @__PURE__ */ t.jsxs(
4122
+ rl,
4123
+ {
4124
+ showSkipAutoFill: Ne,
4125
+ windowSize: A,
4126
+ children: [
4127
+ A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4128
+ /* @__PURE__ */ t.jsx(
4129
+ Ua,
4130
+ {
4131
+ windowSize: A,
4132
+ onClick: (g) => {
4133
+ g.stopPropagation(), Ke === !0 && Ge(!1);
4134
+ },
4135
+ children: /* @__PURE__ */ t.jsx(
4136
+ In,
4137
+ {
4138
+ formId: an(rn),
4139
+ separatorStyle: { marginRight: o.sp4 },
4140
+ showCancel: y,
4141
+ cancelBtn: {
4142
+ label: m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected" ? A === "small" ? f.buttons.discard : f.buttons.discardChanges : A === "small" ? f.buttons.save : f.buttons.saveChanges,
4143
+ isLoading: Ze === "save" && e.saveStatus?.fetchState === "In-Progress",
4144
+ onClick: ko,
4145
+ style: { width: ee.footerButtonWidth.value(A) },
4146
+ reverseSpinnerColor: !1
4147
+ },
4148
+ primaryBtn: {
4149
+ label: _a(
4150
+ y,
4151
+ m,
4152
+ e,
4153
+ A
4154
+ ),
4155
+ isDisabled: !y,
4156
+ style: {
4157
+ width: y ? ee.footerButtonWidth.value(A) : "auto"
4158
+ },
4159
+ type: y ? "submit" : "button",
4160
+ onClick: y ? () => null : ko,
4161
+ isLoading: !y && Ze === "save" && e.saveStatus?.fetchState === "In-Progress"
4162
+ },
4163
+ rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Za, { windowSize: A, children: [
4164
+ Ke ? /* @__PURE__ */ t.jsx(
4165
+ cn,
4166
+ {
4167
+ onClickAway: () => Ge(!1),
4168
+ children: /* @__PURE__ */ t.jsx(
4169
+ Qa,
4170
+ {
4171
+ windowSize: A,
4172
+ "data-testid": U(
4173
+ "remi-other-actions-container"
4174
+ ),
4175
+ children: /* @__PURE__ */ t.jsx(
4176
+ Xa,
4177
+ {
4178
+ onClick: Qn,
4179
+ "data-testid": U(
4180
+ "delete-report-action"
4181
+ ),
4182
+ children: f.buttons.deleteReport
4183
+ }
4184
+ )
4185
+ }
4186
+ )
4187
+ }
4188
+ ) : null,
4189
+ /* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
4190
+ Ya,
4191
+ {
4192
+ windowSize: A,
4193
+ "data-testid": U(
4194
+ "more-details-button"
4195
+ ),
4196
+ children: /* @__PURE__ */ t.jsx(
4197
+ Ka,
4198
+ {
4199
+ onClick: () => Ge(!Ke)
4200
+ }
4201
+ )
4202
+ }
4203
+ ) : null })
4204
+ ] }) }),
4205
+ style: {
4206
+ minHeight: 62
4207
+ }
4208
+ }
4209
+ )
4210
+ }
4211
+ )
4212
+ ]
4213
+ }
4214
+ ),
4215
+ v && x != null ? /* @__PURE__ */ t.jsx(pr, { id: Ct, children: /* @__PURE__ */ t.jsx(
4216
+ Nr,
4217
+ {
4218
+ isDrawerOpen: W,
4219
+ allowComposer: !0,
4220
+ drawerTitle: Ra,
4221
+ threads: ft,
4222
+ autoExpand: !0,
4223
+ autoFocus: !1,
4224
+ filter: {
4225
+ application: "dashboard",
4226
+ companyId: _?.companyId ?? za,
4227
+ isGlobalComment: !1,
4228
+ tab: "reimbursement"
4229
+ },
4230
+ isLoading: tt,
4231
+ threadMetadata: _ ? {
4232
+ companyName: _.companyName,
4233
+ companyId: _.companyId,
4234
+ entityId: _.entityId,
4235
+ entityType: _.entityType,
4236
+ isGlobalComment: !1,
4237
+ application: "dashboard",
4238
+ tab: "reimbursement",
4239
+ url: window.location.href
4240
+ } : void 0,
4241
+ textOverrides: {
4242
+ composerPlaceholder: Fa,
4243
+ replyComposerPlaceholder: Na,
4244
+ threadResolve: Wa,
4245
+ threadUnResolve: Ea
4246
+ },
4247
+ onThreadClick: (g, j) => sr(g, j),
4248
+ onCloseAllThreadsDrawer: () => se(!1),
4249
+ drawerSectionStyle: {
4250
+ width: "400px",
4251
+ backgroundColor: He.colors.background
4252
+ }
4253
+ }
4254
+ ) }) : null
4255
+ ] })
4256
+ }
4257
+ ),
4258
+ Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
4259
+ xa,
4260
+ {
4261
+ bankAccountCreationState: C,
4262
+ setShowBankAccountPage: Dt,
4263
+ plaidConnectionDetails: l,
4264
+ onFetchLinkTokenClick: Me,
4265
+ onEstablishConnectionClick: pe,
4266
+ onSaveHandler: B,
4267
+ bankAccountToCreate: O,
4268
+ bankNameByRouting: b,
4269
+ fetchBankNameByRoutingStatus: T,
4270
+ onUserBankDetailsUpdated: P,
4271
+ onFetchBankName: H,
4272
+ onBackClick: () => {
4273
+ Je(), Dt(!1);
4274
+ }
4275
+ }
4276
+ ) }) : null
4277
+ ] })
4278
+ }
4279
+ ) });
4280
+ }, _a = (e, i, a, d) => e ? a.reimbursementId != null && a.remiStage === "pending_approval" ? f.buttons.resubmit : f.buttons.submit : i && a.remiStage === "pending_approval" && a.remiStatus !== "rejected" ? d === "small" ? f.buttons.discard : f.buttons.discardChanges : d === "small" ? f.buttons.save : f.buttons.saveChanges, Da = n.div`
4281
+ position: relative;
4282
+ height: 100vh;
4283
+ overflow-y: scroll;
4284
+ `, qa = n.div`
4285
+ position: fixed;
4286
+ top: 0;
4287
+ left: 42vw;
4288
+ width: 100%;
4289
+ height: 100vh;
4290
+ background: transparent;
4291
+ box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
4292
+ pointer-events: none;
4293
+ z-index: 3;
4294
+ `, Ua = n.div`
4295
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4296
+ `, Ha = n.div`
4297
+ display: flex;
4298
+ justify-content: flex-end;
4299
+ `, Ka = n(_r)`
4300
+ cursor: pointer;
4301
+ color: ${(e) => e.theme.colors.hero};
4302
+ width: ${o.sp5};
4303
+ height: ${o.sp5};
4304
+ &:hover {
4305
+ color: ${(e) => e.theme.colors.primary};
4306
+ }
4307
+ `, Ga = n(Dr)`
4308
+ width: ${o.sp4};
4309
+ height: ${o.sp4};
4310
+ color: ${I.brandColorGoldDark};
4311
+ `, Ya = n.div`
4312
+ display: flex;
4313
+ margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
4314
+ cursor: pointer;
4315
+ color: ${(e) => e.theme.colors.grey1};
4316
+ &:hover {
4317
+ color: ${(e) => e.theme.colors.primary};
4318
+ }
4319
+ `, Ja = n.div`
4320
+ display: flex;
4321
+ justify-content: center;
4322
+ align-items: center;
4323
+ `, Qa = n.div`
4324
+ display: flex;
4325
+ width: auto;
4326
+ align-items: center;
4327
+ justify-content: center;
4328
+ flex-direction: column;
4329
+ background-color: ${(e) => e.theme.colors.grey5};
4330
+ color: ${(e) => e.theme.colors.hero};
4331
+ cursor: pointer;
4332
+ padding-top: ${o.sp1};
4333
+ padding-bottom: ${o.sp1};
4334
+ position: absolute;
4335
+ bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
4336
+ z-index: 3;
4337
+ border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
4338
+ border-radius: ${o.sp1};
4339
+ right: ${(e) => ee.right.valuePx(e.windowSize)};
4340
+ box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
4341
+ `, Za = n.div`
4342
+ width: 100%;
4343
+ justify-content: flex-end;
4344
+ position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
4345
+ right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
4346
+ height: 100%;
4347
+ display: flex;
4348
+ `, Xa = n(yo)`
4349
+ display: flex;
4350
+ align-items: center;
4351
+ width: -webkit-fill-available;
4352
+ padding-left: ${o.sp3};
4353
+ padding-right: ${o.sp3};
4354
+ height: ${o.sp6};
4355
+ box-sizing: border-box;
4356
+ &:hover {
4357
+ background-color: ${(e) => e.theme.colors.background};
4358
+ }
4359
+ `, el = n.div`
4360
+ overflow-y: auto;
4361
+ z-index: 5;
4362
+ height: 100vh;
4363
+ position: fixed;
4364
+ background: ${(e) => e.theme.colors.grey4};
4365
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4366
+ right: 0;
4367
+ top: 0;
4368
+ `, tl = n.div`
4369
+ background: ${(e) => e.theme.colors.grey4};
4370
+ height: 44px;
4371
+ display: flex;
4372
+ align-items: center;
4373
+ justify-content: end;
4374
+ `, ol = n.div`
4375
+ width: 58%;
4376
+ `, nl = n($o)`
4377
+ padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
4378
+ background: ${(e) => e.theme.colors.grey4};
4379
+ color: ${(e) => e.theme.colors.primary};
4380
+ `, rl = n.div`
4381
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4382
+ width: 100%;
4383
+ position: fixed;
4384
+ bottom: 0;
4385
+ z-index: 3;
4386
+ `, ln = n.div`
4387
+ width: 42%;
4388
+ `, il = n(fo)`
4389
+ color: ${(e) => e.theme.colors.primary};
4390
+ width: ${o.sp3};
4391
+ height: ${o.sp3};
4392
+ `, al = n.div`
4393
+ display: flex;
4394
+ gap: ${o.sp2};
4395
+ border: 1px solid ${(e) => e.theme.colors.grey3};
4396
+ padding: ${o.sp3};
4397
+ border-radius: ${o.sp2};
4398
+ align-items: center;
4399
+ margin: ${o.sp3};
4400
+ `, ll = n.span`
4401
+ color: ${(e) => e.theme.colors.hero};
4402
+ `, sl = n.div`
4403
+ display: flex;
4404
+ gap: ${o.sp2};
4405
+ padding: ${o.sp3};
4406
+ border-radius: ${o.sp2};
4407
+ align-items: start;
4408
+ margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
4409
+ margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
4410
+ margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
4411
+ margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
4412
+ background-color: ${I.alertLight};
4413
+ border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
4414
+ `, cl = n(_t)`
4415
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4416
+ `, dl = n.div`
4417
+ width: 100%;
4418
+ `, ul = n(xo)`
4419
+ color: ${(e) => e.theme.colors.brandColorGoldDark};
4420
+ `, ml = n($o)`
4421
+ letter-spacing: -0.02em;
4422
+ color: ${(e) => e.theme.colors.primary};
4423
+ margin: ${o.sp3};
4424
+ `, sn = n.div`
4425
+ display: flex;
4426
+ flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
4427
+ height: 100vh;
4428
+ visibility: inherit;
4429
+ width: 100%;
4430
+ background-color: ${I.overlayDark};
4431
+ z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
4432
+ position: fixed;
4433
+ `, pl = n.div`
4434
+ z-index: 3;
4435
+ min-height: 62px;
4436
+ height: 62px;
4437
+ display: flex;
4438
+ align-items: center;
4439
+ width: 100%;
4440
+ justify-content: space-between;
4441
+ position: fixed;
4442
+ `, hl = n(Wr)`
4443
+ display: flex;
4444
+ color: ${(e) => e.theme.colors.brandColorJade};
4445
+ cursor: pointer;
4446
+ width: ${o.sp4};
4447
+ height: ${o.sp4};
4448
+ `, lo = n(On)`
4449
+ cursor: pointer;
4450
+ width: ${o.sp4};
4451
+ height: ${o.sp4};
4452
+ float: right;
4453
+ color: inherit;
4454
+ `, so = n.div`
4455
+ color: ${(e) => e.theme.colors.hero};
4456
+ &:hover {
4457
+ color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
4458
+ }
4459
+ `, gl = n.div`
4460
+ margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
4461
+ display: flex;
4462
+ float: right;
4463
+ `, yl = n.div`
4464
+ display: flex;
4465
+ align-items: center;
4466
+ justify-content: center;
4467
+ position: relative;
4468
+ float: right;
4469
+ cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
4470
+ color: ${(e) => e.theme.colors.hero};
4471
+ &:hover {
4472
+ color: ${(e) => e.theme.colors.primary};
4473
+ }
4474
+ `, fl = n(Er)`
4475
+ display: flex;
4476
+ width: ${o.sp4};
4477
+ height: ${o.sp4};
4478
+ align-items: center;
4479
+ justify-content: center;
4480
+ `, co = n.div`
4481
+ margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
4482
+ margin-left: ${o.sp5};
4483
+ margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
4484
+ `, xl = n.div`
4485
+ display: flex;
4486
+ flex-direction: column;
4487
+ width: 100vw;
4488
+ overflow-x: hidden;
4489
+ background: -webkit-linear-gradient(
4490
+ to right,
4491
+ ${(e) => e.theme.colors.background} 42%,
4492
+ ${(e) => e.theme.colors.grey4} 42%
4493
+ );
4494
+ background: -moz-linear-gradient(
4495
+ to right,
4496
+ ${(e) => e.theme.colors.background} 42%,
4497
+ ${(e) => e.theme.colors.grey4} 42%
4498
+ );
4499
+ background: -o-linear-gradient(
4500
+ to right,
4501
+ ${(e) => e.theme.colors.background} 42%,
4502
+ ${(e) => e.theme.colors.grey4} 42%
4503
+ );
4504
+ background: linear-gradient(
4505
+ to right,
4506
+ ${(e) => e.theme.colors.background} 42%,
4507
+ ${(e) => e.theme.colors.grey4} 42%
4508
+ );
4509
+ ${(e) => e.windowSize === "small" && `
4510
+ background: ${e.theme.colors.grey4};
4511
+ `}
4512
+ min-height: 100vh;
4513
+ `, bl = n.div`
4514
+ display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4515
+ width: 100%;
4516
+ margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
4517
+ `, wl = n.div`
4518
+ width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4519
+ `, $l = n.div`
4520
+ margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
4521
+ margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
4522
+ `, Sl = n.div`
4523
+ display: flex;
4524
+ flex-direction: column;
4525
+ height: ${o.sp11};
4526
+ `;
4527
+ export {
4528
+ Fl as default,
4529
+ an as uniqueName
4530
+ };