@zeniai/web-cockpit-ui 1.15.6-qa → 1.15.7-dev

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 (304) hide show
  1. package/dist/assets/{ACHDetailsPage-DDuW5spI-ugZGssMG.js → ACHDetailsPage-CGG2Hx4v-BW7Ihkof.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Bbk-pUwz-BlxRToKD.js → AIPerformancePage-XDCygRgj-CEqrEuBs.js} +32 -32
  3. package/dist/assets/AccountInfoPage-CSf3J58F-DCyXpiFs.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BA3WBfD4-S2IoqbBC.js → AccountInfoPageContent-wjaeVokT-CiNOfJ02.js} +9 -9
  5. package/dist/assets/{AccountLockedInfoModal-Bs1ImO2L-Cd1E5lWq.js → AccountLockedInfoModal-DJnj--uc-BJgnvrcM.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Ci_Eb0_d-BTFVE0QR.js → AccountReconDetailsDrawerPage-a2stjcsR-Ds8R_X-n.js} +19 -19
  7. package/dist/assets/{AccountRow-BWclqiQh-ChNK56Ur.js → AccountRow-DlccmtgU-foUdbmvG.js} +24 -24
  8. package/dist/assets/{AccountsPromoCardStack-BHgGIeBG-BvmrVWEy.js → AccountsPromoCardStack-BE0vjkiK-DEN0OmWn.js} +14 -14
  9. package/dist/assets/AddAddressForCardDrawer-D3mMFgO8-8PMwaa8Q.js +6 -0
  10. package/dist/assets/{AddToWalletPage-Dllxg_0u-Cin7qPiV.js → AddToWalletPage-6OCJaNcg-EoATwn7j.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-CBHhfTKI-XOHkAEGk.js → AgingReportsPage-hgg1L3pv-DEJ_mF4m.js} +1 -1
  12. package/dist/assets/{AllUserItems-Bdv9AIQ9-AUnGqfQg.js → AllUserItems-BmNtc-69-BsLa0Y8T.js} +14 -14
  13. package/dist/assets/{ApAgingDetailPage-EE3MrY5l-DjneR2md.js → ApAgingDetailPage-DAZAnfcs-zxr1sXnX.js} +5 -5
  14. package/dist/assets/{AppBasePage-02I6V3Np-B6lYTPsK.js → AppBasePage-D7_krMlm-D-9wFTdh.js} +9 -9
  15. package/dist/assets/{AppDrawerContent-DbBd9m20-ns8GH0Pa.js → AppDrawerContent-DWL57wUk-DZ6AAyNy.js} +6 -6
  16. package/dist/assets/ApprovalRulesSettingsPage-CiX2Xx3--YCvl1YZm.js +47 -0
  17. package/dist/assets/{ArAgingChart-BqBx1Gj1-B1AT15np.js → ArAgingChart-CeaYIqlX-BUR2NiTJ.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-D9rI5yue-C7eLkZEj.js → ArAgingDetailPage-Is5kv2-P-CDH0tn0m.js} +1 -1
  19. package/dist/assets/{AttachmentView-CeblaMyI-DBGFvosS.js → AttachmentView-BsNhULL3-C-ca695p.js} +4 -4
  20. package/dist/assets/{BankAccountSection-B3v3BDPK-B_DOigwY.js → BankAccountSection-ZWR_hXjD-mYMACSQd.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DCi9o7_J-w-3jN6e4.js → BankAccountWarningSection-C-2eE9pL-BhkH4zkd.js} +5 -5
  22. package/dist/assets/{BankConnectionsSettingsPage-Csbc7IYe-dwO5wQN1.js → BankConnectionsSettingsPage-CjbaVbou-BNqlym9z.js} +17 -17
  23. package/dist/assets/{BillDetailPage-ByPP2r-L-DYJrFGG4.js → BillDetailPage-B_zbQLLp-Dsf72rKA.js} +8 -8
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-GDOnscxH-wu_5dYsT.js → BillPayApprovalRuleDetailPage-CtJLn_JO-BVtB6sJH.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-BqDyhnz3-B_wXxPzU.js → BillPayApprovalRulesPage-vvgGBmoM-C7iW15VO.js} +5 -5
  26. package/dist/assets/{BillPayPromoPage-B1_ugFQw-DrmfvS7a.js → BillPayPromoPage-DkyMRquU-6vAZUzNc.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-Cx2vQIL8-ngc-DjEe.js → BillPaySetUpPage-m15SlV0c-C_W7-nyr.js} +9 -9
  28. package/dist/assets/BillingSettingsPage-C4P_B31U-Dbv-0XdG.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B8KhD0xH-CKIRXjIs.js → BillsBulkReviewDrawerPage-C_Nmv34F-s0EetHC0.js} +1 -1
  30. package/dist/assets/{BoxItem-CqsCCOrk-Dekq2mMN.js → BoxItem-Cmrt_yxF-Cr2cxrKm.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dr_YFkLN-5SYND8JY.js +138 -0
  32. package/dist/assets/{CardNumberSubText-ByPbO0F8-BLrI1gTW.js → CardNumberSubText-B6Fprh6S-CEzRIr67.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-Ve3JZpeP-D5oSvHQU.js → CashbackDetailPage-CWExYaIT-BmImExjs.js} +20 -20
  34. package/dist/assets/{ChargeCardDetailPage-D7zLKDQo-DG3fl-Wi.js → ChargeCardDetailPage-B3hr0WBI-X68NSBCl.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Cnm7GqIj-Fc3uHPEU.js → ChargeCardListPage-g9gCfpoh-BTqPP-pZ.js} +15 -15
  36. package/dist/assets/{ChargeCardListTable-bTR8Mmj4-CI38yG68.js → ChargeCardListTable-BoDSmzn_-CpSnyHh2.js} +38 -38
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Cufm-hgn-Cqrd5ERh.js → ChargeCardPaymentHistoryPage-xs346JMC-CvFrTbeZ.js} +28 -28
  38. package/dist/assets/ChargeCardPromoPage-DwiDNiRF-BfEfjZd3.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-B-jcdCNM-ernLwEHq.js → ChargeCardSetupPage-Dbz_GdRL-ClxdYJ_F.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CyVlO8hd-CIP5xUta.js → ChargeCardStatementsPage-Da9NY51a-ChevXKmL.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-BmG5ma6K-DHrUrYJa.js → CheckDepositDrawerPage-CcSRXOv7-DM7Ey8xT.js} +8 -8
  42. package/dist/assets/{CollapsableReportTable-LB-wYzj1-DaCyOKB5.js → CollapsableReportTable-D1b80h2R-CMeyXG6i.js} +41 -41
  43. package/dist/assets/CompanyOfficerDetailsSection-BMYQ8Qcq-vyiocP81.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-BwHjmTyn-CWXWGUYt.js → CompanyPassportCard-vAocVa7X-Bg4vrJh5.js} +4 -4
  45. package/dist/assets/CompanyPassportPage-Dva5Le3j-D1jREPm8.js +574 -0
  46. package/dist/assets/{CompleteProfile-H7UexvAo-sZKr-j3R.js → CompleteProfile-B-Hhosch-DRCiMIXe.js} +1 -1
  47. package/dist/assets/ConfettiBurst-BV8M1GTR-DJjoIhlI.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-Bt2itRHK-CCLBzSRT.js → CreateOrEditVendorPage-Bgc7zC_D-CfO9iUSb.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-B8eb8Q0G-D7xI54mJ.js → CreditCardPaymentDrawerPage-Bs5RpFes-CgklXCqv.js} +11 -11
  50. package/dist/assets/{CurrencySelectField-DIh7_ile-Ch5w8ptc.js → CurrencySelectField-BC9QkDwI-BEtmNe90.js} +5 -5
  51. package/dist/assets/{CustomerOnboardingActivationPage-B3t4tiur-DzW0AY2p.js → CustomerOnboardingActivationPage-Br4RFzGo-DgY7VWoB.js} +5 -5
  52. package/dist/assets/CustomerOnboardingContainerPage-BRs0LPZ0-y5fJ25mS.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-JE_MoyoU-BqMNWAeW.js → CustomerOnboardingDetailPageSkeleton-DLKJINnV-B2tg0XBT.js} +18 -18
  54. package/dist/assets/CustomerOnboardingNoStepsPage-CjvQ3PFZ-BN9B2AZm.js +66 -0
  55. package/dist/assets/CustomerOnboardingPage-3ECCqY1a-CL7QxZ3D.js +107 -0
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-DZLKr3qq-ClvLyM4I.js → CustomerOnboardingProductSuitePage-Dx3FU6Fe-CAm2edHR.js} +4 -4
  57. package/dist/assets/{Dashboard-z7EuNcjw-wBhbzCb7.js → Dashboard-EWWj1Uby-C8-SPpUF.js} +21 -21
  58. package/dist/assets/{DashboardReportPage-BX2xSgwt-BTs5yweV.js → DashboardReportPage-D4kzdnvI-BKOw_sqx.js} +10 -10
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-fiNmHYV3-CEwDJ7_M.js → DashboardSidebarBackgroundAnimation-BSwRgXFk-CJAI0MPE.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-CmlUJZgz-LioQcDUg.js → DepositAccTransactionItem-xvCtIj9v-7jCouOnq.js} +2 -2
  61. package/dist/assets/DepositAccTransactionListPage-B8UpFh_9-DlvHxyY3.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-D-SBQqbR-C8ovHvyA.js → DomesticWireDetailsPage-DF8bLeDL-Be0QfLbt.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-DznbXeUZ-Cp9A0E8f.js → DownloadOverlay-wlAXZwF0-B68SEe8G.js} +30 -30
  64. package/dist/assets/{DrawerPage-8d8mdD3v-DOGRNriH.js → DrawerPage-DroW95LB-DgRu7-up.js} +18 -18
  65. package/dist/assets/{EditPeoplePage-CTwY7ePr-BHVb3TK3.js → EditPeoplePage-CgUM9UYI-_7L-v32x.js} +3 -3
  66. package/dist/assets/{EditReimbursementDetailPage-DVg6dH7p-p4ImlM0s.js → EditReimbursementDetailPage-BgcII79s-qEpt9Cs6.js} +61 -61
  67. package/dist/assets/EntityDetailPage-ByHvXL2c-DbNraeh4.js +18 -0
  68. package/dist/assets/{EntitySummarySection-CloCPwyO-BkWlGttQ.js → EntitySummarySection-D6HekhK7-CEx8SebE.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-dHZEdK4L-Cfk-AEiv.js → ExpenseAutomationOverviewPage-VN-P6f2z-D9XayAVC.js} +16 -16
  70. package/dist/assets/{ExpenseAutomationPage-CWyP8ETl-Buoi-mX4.js → ExpenseAutomationPage-CvnkIuMf-BzVTKngy.js} +66 -66
  71. package/dist/assets/{ExpressPayPage-liflPa6J-d_gsBVue.js → ExpressPayPage-C_yRTeDh-CXT1jZ8h.js} +15 -15
  72. package/dist/assets/{FeaturePreviewPage-DhSoy4IL-BFzihstG.js → FeaturePreviewPage-BLRhajFn-BfH5LrVG.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DW5HuzRR-C2pFSUm_.js → FollowStepsSection-DhiGIylh-dcsWOGAc.js} +49 -49
  74. package/dist/assets/{GlobalReviewListPage-CGCdgQFw-2bH6uNqV.js → GlobalReviewListPage-Tg986b2s-BcraUWMG.js} +6 -6
  75. package/dist/assets/{InformationCardStack-D6xiRsRy-DeDzkULA.js → InformationCardStack-3Lmn6LJr-BzzpUQZE.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-D1eIlMkU-DAOP4NpT.js → InsightsCardStack-Dc6OL9Od-D89joaRU.js} +2 -2
  77. package/dist/assets/InsightsSection-Drr3r1BL-BjPy8A4H.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CRZfnPIT-CqWmWxBy.js → IntegrationsSettingsPage-DACHBlEm-DaFs14XG.js} +8 -8
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DouGaVny-Dv_WELpr.js → InternationalWireSwiftDetailsPage-BaqSqvWh-BwJgPcJE.js} +17 -17
  80. package/dist/assets/InternationalWireVerificationPage-Daxni4YY-BKNsaA95.js +292 -0
  81. package/dist/assets/{InviteFormPage-dCGpLoBC-B7oqyaD4.js → InviteFormPage-CXcHy9Sz-C3-iU8eM.js} +24 -24
  82. package/dist/assets/{InvitePageListView-DhV6Pw56-C4-16sSD.js → InvitePageListView-tu82Q2y6-CzjWJAgY.js} +54 -54
  83. package/dist/assets/{InvitePeoplePage-J-HYw9MC-UjYYlzHC.js → InvitePeoplePage-Bbv2pjhR-BZJHvIvS.js} +2 -2
  84. package/dist/assets/{InvoiceUploadSection-BJLLf4x5-DFydS2Od.js → InvoiceUploadSection-CO34IhU8-1rxbAjFS.js} +4 -4
  85. package/dist/assets/{IssueChargeCardPage-hEaegmyi-D821vf9d.js → IssueChargeCardPage-DuqGEs5b-DVXuxnuF.js} +23 -23
  86. package/dist/assets/{LabeledAddressValue-PXtKo31O-p0vkJLZ_.js → LabeledAddressValue-D0Gu5Mgp-CuHBod6j.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-D0Ow_UPE-D2ZZ_G49.js → LabeledAddressValueField-DPisU2iY-3oGO3c9v.js} +3 -3
  88. package/dist/assets/{LabeledControlledCheckBoxField-DVOeaKu0-CpyOiqej.js → LabeledControlledCheckBoxField-BKqCiNdy-CKGxo72C.js} +1 -1
  89. package/dist/assets/{LabeledCreatableSingleSelectField-Dqt1M07c-DY3asbo7.js → LabeledCreatableSingleSelectField-DLVxVffe-RkcfyIgp.js} +5 -5
  90. package/dist/assets/{LabeledDocumentField-D2n9ry_0-D2DNLpw5.js → LabeledDocumentField-DtOCNiEg-DdNet_Ri.js} +5 -5
  91. package/dist/assets/{LabeledDropDownFormattedTextField-BfpPbI2T-BknUycVk.js → LabeledDropDownFormattedTextField-CsbwG9At-Cie_r1vg.js} +6 -6
  92. package/dist/assets/{LabeledText-BHQeQs6Z-DYOqW74l.js → LabeledText-C4GeOHM8-ChfVujh4.js} +3 -3
  93. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnwVXq2g-BfCQlTRV.js → LabeledUserSingleSelectWithSubtitlesField-gwRpED7x-BzoJSlO5.js} +15 -15
  94. package/dist/assets/{LabeledZeniRolesDropDownField-Dpdlc1DB-aTk_GR-I.js → LabeledZeniRolesDropDownField-Bj8qcvuK-mHT__PRC.js} +12 -12
  95. package/dist/assets/{LinkJETransactionPage-CWOfaAhz-sHHDjXdg.js → LinkJETransactionPage-CdWWV_7u-CTynd4m9.js} +3 -3
  96. package/dist/assets/{LockCardPage-BMt1zujT-Ch-0yiFY.js → LockCardPage-BTxCWQ6_-bPbvvlRf.js} +65 -65
  97. package/dist/assets/{LowBalancePopup-BN2RBNOV-CkWXHs8U.js → LowBalancePopup-Dt9KCWOU-CfGVa0nY.js} +1 -1
  98. package/dist/assets/MagicLinkACHDetailsPage-C2z4VD4x-yC-7xafy.js +1 -0
  99. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dxd73sj8-Dnp7p7eT.js +1 -0
  100. package/dist/assets/MagicLinkInternationalWireDetailsPage-Ct-REVbS-CPUlXtmL.js +1 -0
  101. package/dist/assets/{MagicLinkSuccessPage-DQbdgFhH-acLMYQDQ.js → MagicLinkSuccessPage-D45Lu2cc-Co6kTR8X.js} +4 -4
  102. package/dist/assets/{MagicLinkTitleSection-BYkzInkY-HyU6V8sj.js → MagicLinkTitleSection-BdiSVi0V-B1KEw-n6.js} +3 -3
  103. package/dist/assets/{MailingDetailsSection-DiSohByM-B0LpnqFx.js → MailingDetailsSection-CjO5OVZN-CsIdvq8c.js} +1 -1
  104. package/dist/assets/{Menu-TzNY4ajT-CMR-yX-w.js → Menu-C_kotivE-FvhfNRdu.js} +2 -2
  105. package/dist/assets/{MyBankConnectionsSettingsPage-Bk4Hdapv-vgoL826T.js → MyBankConnectionsSettingsPage-CN9EKlOy-B7KFdOdn.js} +4 -4
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-C5Q5p5zq-HjmaMbpp.js → MyPendingActivationChargeCardListPage-rmpT6HFS-CAP6sOzW.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-BxiofsK0-BXkFCNOu.js → MyProfileSettingsPage-CTmDuFNJ-KfiZ2ouo.js} +5 -5
  108. package/dist/assets/{NavBarWithPicker-DX31nlvR-iKhmwyP2.js → NavBarWithPicker-VzNJnXX3-D_mYpcQU.js} +4 -4
  109. package/dist/assets/{NavigationArrow-BDdBEJFM-ByEm_T8f.js → NavigationArrow-B9ZEhJdg-DZDpNuL-.js} +1 -1
  110. package/dist/assets/{NavigationDots-BZOdXVhR-J922kz3s.js → NavigationDots-C_N16I15-CgfbbWpb.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-qOuBGJ6w-PqI-s75M.js → NewGlobalMerchantPage-DICWFjCu-B9FIBlfd.js} +8 -8
  112. package/dist/assets/NoDataChart-CCCkzfa4-CZ1VHThr.js +26 -0
  113. package/dist/assets/NoDataTable-DVW_simO-CiETBp14.js +8 -0
  114. package/dist/assets/{NotFoundPage-B31SyO4w-DnMJV9Nw.js → NotFoundPage-BHrUY910-CB4emWh9.js} +8 -8
  115. package/dist/assets/{NotificationSettingsPage-3GoJDHjY-CmERm1Eo.js → NotificationSettingsPage-alUKfWWf-BIIzsf_j.js} +12 -12
  116. package/dist/assets/NotificationsListConfig-QOeX1KBS-BXuzGZYq.js +1 -0
  117. package/dist/assets/{NotificationsPage-Cuz_KDD8-Br1syqiZ.js → NotificationsPage-BjhHCUzl-CL_1S-pu.js} +22 -22
  118. package/dist/assets/{OpExByVendorPage-B2CQ-hT1-DgzOnglp.js → OpExByVendorPage-h_QozoZk-rvk-4kbQ.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-Daz3A7cI-DZnbS2el.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-Dkcy07sC-HdbdrtMY.js → PandLWithForecastPage-DdiEIHC--BvKI5oME.js} +4 -4
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-CIlQ-MgM-D9smrX3o.js +107 -0
  122. package/dist/assets/{PeoplePage-yzYfizds-CxYPe3s5.js → PeoplePage-BaOppi8Y-C-YATJdW.js} +34 -34
  123. package/dist/assets/{Preview-CoWxE6yB.js → Preview-yiJBApzl.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-DRfZ_sZ_-CLK0bly7.js → ProductsCarousel-E65X4lGB-DH2SteEv.js} +9 -9
  125. package/dist/assets/{PromoBaseCards-CbPywvj2-cL15_Lku.js → PromoBaseCards-O66NGGWD-BKbCdKhK.js} +4 -4
  126. package/dist/assets/{QBOConnectionDialog-DLuBxOXr-ChTwBVFO.js → QBOConnectionDialog-BrMv7xjB-DlUN7Kz1.js} +2 -2
  127. package/dist/assets/{QBOSetupSection-CxLynYFq-BCq79mPl.js → QBOSetupSection-B5D4uUOv-CGhKBwg7.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDK4q7B4-K_MvSiez.js → ReimbursementApprovalRuleDetailPage-DJNl2oqj-B4OdqkFs.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-DFmZm1Qr-KN8xudqI.js → ReimbursementApprovalRulesPage-tnc2z3Es-yyigySmO.js} +17 -17
  130. package/dist/assets/ReimbursementDetailPage-CO8Wv5-c-qlCsVXqq.js +314 -0
  131. package/dist/assets/{ReimbursementPromoPage-DENI6dAX-B3ip0p99.js → ReimbursementPromoPage-04Cqe8zH--NCi_DFM.js} +6 -6
  132. package/dist/assets/{ReimbursementSetUpPage-BJoFNAQR-COWxA7Kg.js → ReimbursementSetUpPage-2VrhpV75-Bv2sY3Y4.js} +6 -6
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0a107hB-2TKc5O3B.js → ReimbursementsBulkReviewDrawerPage-CEZlRH0_-CC2d3Iit.js} +1 -1
  134. package/dist/assets/{ReloadCard-BCuJkAqw-CDSljNn0.js → ReloadCard-BakyoznA-DmnMlohL.js} +6 -6
  135. package/dist/assets/{ReportTableViewSelector-CEo0z4A2-DOQ_EfJ4.js → ReportTableViewSelector-C7w_WVnY-C6Okt0Gv.js} +4 -4
  136. package/dist/assets/{ReportsPage-gMt_l_Aa-C-pMgAcv.js → ReportsPage-BeZqGQ2i-2BlXIjgp.js} +5 -5
  137. package/dist/assets/{RevenueChart-JLdzi3aQ-CYETDjQg.js → RevenueChart-BcRkSSWz-D5XPPSEX.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-WBKwpVad-ChCuaJ93.js → ReviewDetailsPage-CA5CBeB7-DN9fIS4d.js} +52 -52
  139. package/dist/assets/{ReviewOverlay-DqOXHkMM-1Yn1edNo.js → ReviewOverlay-DNjbv6Ir-BYUbQDSw.js} +12 -12
  140. package/dist/assets/RoleWithToolTip-CSoHoT3u-vTwGI01K.js +22 -0
  141. package/dist/assets/ScheduleDetailsFixedAssetsPage-CLjpednn-81YU8z_r.js +37 -0
  142. package/dist/assets/{ScheduleDetailsPage-_Ag36lXG-j5tYZL01.js → ScheduleDetailsPage-MEVdw-l_-gtCnaFgw.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-axweBiV5-DG58qOyk.js → ScheduleSequenceTable-BGx2un0o-CTi3pu3D.js} +52 -52
  144. package/dist/assets/{ScreenRoutes-DfcN59qq.js → ScreenRoutes-DUbNYmu4.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-CerAAia_-BHtxUnyV.js → SetUpAccountSection-Blriup16-W2fx2DgC.js} +14 -14
  146. package/dist/assets/{SignIn-B1yQ5XWH-B0qhoH5M.js → SignIn-DqVQU08d-BerCpw9H.js} +15 -15
  147. package/dist/assets/{SignInScreen-Cqy7lnQW.js → SignInScreen-B5Y03mpU.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-BL77zVeL-B2bOM6nq.js → SpendManagementListViewPage-Cd88asmE-CB759VbW.js} +8 -8
  149. package/dist/assets/{SpendManagementPerTabPage-B82q9yMk-DhUjeST3.js → SpendManagementPerTabPage-DyPyPQjh-CeHpfSNV.js} +26 -26
  150. package/dist/assets/{SpendManagementSection-Bcex-9e7-BSKprzB6.js → SpendManagementSection-C5fvFmdh-D7vZlQqH.js} +21 -21
  151. package/dist/assets/StatementItem-CBGi9f9C-DW_QCJ6P.js +31 -0
  152. package/dist/assets/StatementsPage-De1wPDzS-BpyLzEUf.js +58 -0
  153. package/dist/assets/{StatusSwitcher-Cw0Sq3bY-Dbm7BDCm.js → StatusSwitcher-BS4h8SJh-CcRGAnPy.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-DmGRgMQe-DIYYgIi-.js → SubTabSwitcher-vsehXtEO-aHnk9ME_.js} +3 -3
  155. package/dist/assets/SummaryCard-gehzCCsW-cRlcrWMR.js +1 -0
  156. package/dist/assets/{TaskManagementPage-CAX0yrep-CSjDDqkF.js → TaskManagementPage-DlzHdHSu-DMSrvQ05.js} +31 -31
  157. package/dist/assets/{TimeRangeSwitcher-2AXHoZ8f-Cgeq5dRL.js → TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-DJiKd_tL-BdEO97Xk.js → TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-5W1Xu4QM-CuZ3Yom9.js → TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js} +1 -1
  160. package/dist/assets/{TopExCard-8RRaMY7F-1AcJ6ae5.js → TopExCard-BQIHsi_z-CJAyN5Zr.js} +10 -10
  161. package/dist/assets/{TopExDetailPage-D2KlaBXx-CrnYkF9C.js → TopExDetailPage-BYCn9hZ2-DC2P4FKF.js} +2 -2
  162. package/dist/assets/{TransactionDetailPage-DdyFRxld-DnZZ8KzJ.js → TransactionDetailPage-BMYeFZH7-BFKwH-pD.js} +34 -34
  163. package/dist/assets/{TransactionList-CLVkETBe-C6Sys-PQ.js → TransactionList-BMfwxUes-i8oCJgrA.js} +12 -12
  164. package/dist/assets/{TransactionListBig-BRCiFBKB-BqQRPoZI.js → TransactionListBig-CSjliLzH-5P3TN04x.js} +6 -6
  165. package/dist/assets/{TransactionListPage-D0OgwsUo-LU1vJ-Dw.js → TransactionListPage-C2Iz7CDJ-CDbQhMhs.js} +2 -2
  166. package/dist/assets/TransactionVendorDetailPage-OXcpSTxA-ogeFkWo8.js +80 -0
  167. package/dist/assets/{TransferDrawerPage-DdDRqsyR-DMAPk7th.js → TransferDrawerPage-4lrBrmvC-BzHEhXmo.js} +1 -1
  168. package/dist/assets/{TreasuryOverviewPage-BcIRsLLj-DCm6-KYB.js → TreasuryOverviewPage-DNUrwQ-l-CtbTN09Y.js} +37 -37
  169. package/dist/assets/{TreasuryPromoPage-qbltxtYj-CW-CYLuB.js → TreasuryPromoPage-CjjmLEyR-Jw9_r6c2.js} +16 -16
  170. package/dist/assets/TreasuryStatementsPage-CGax-FVg-CB9f88VO.js +58 -0
  171. package/dist/assets/{TreasuryTaxLetterPage-C2-SmkNZ-D-j8G4aE.js → TreasuryTaxLetterPage-DapKFecA-Ckfl6mTT.js} +2 -2
  172. package/dist/assets/{TrendChart-Cot9LFNh-kn3CmpPt.js → TrendChart-t_2mlnuR-C3EpG69G.js} +2 -2
  173. package/dist/assets/{TrendWithTransactions-BKxxRKGE-IUCrWYsQ.js → TrendWithTransactions-BjQX1uvO-CXSH8SoK.js} +6 -6
  174. package/dist/assets/{UncategorizedAccountsMappingPage-C7Z3q75s-CkVCyXIl.js → UncategorizedAccountsMappingPage-C9DJ4P_n-Da3On2ZP.js} +11 -11
  175. package/dist/assets/{UnitIntegrationPage-DV9q3Nzs-B6vgPVOV.js → UnitIntegrationPage-CzfmBBVs-ea0q-ics.js} +11 -11
  176. package/dist/assets/UploadAdditionalDocumentOverlay-BJiBj5mg-Cktdlkx4.js +38 -0
  177. package/dist/assets/Vendor2FAPopup-Jhuzv3Fs-CDaFjIcb.js +1 -0
  178. package/dist/assets/VendorACHDetailsPage-BRmIiet8-C_w2yQJy.js +1 -0
  179. package/dist/assets/{VendorDetailPage-CH1L4UZF-BsVioyb_.js → VendorDetailPage-D_ia0GnG-EjDxeWPl.js} +10 -10
  180. package/dist/assets/VendorDomesticWireDetailsPage-DTx8HL4V-ypi2AXXw.js +1 -0
  181. package/dist/assets/{VendorFiling1099EditablePage-BaX4ACXz-2JAer4Dh.js → VendorFiling1099EditablePage-6mV7WBuT-BWwNGaDM.js} +9 -9
  182. package/dist/assets/{VendorFirstReviewPage-DAZJMUR3-DNxGnCTD.js → VendorFirstReviewPage-BIh28s7e-DSbo4VGu.js} +20 -20
  183. package/dist/assets/{VendorInternationalWireDetailsPage-CPnjLrDQ-DMs_PuTr.js → VendorInternationalWireDetailsPage-CXmAXDcB-BBI1eBRw.js} +25 -25
  184. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DITo3td6-DtabXm0e.js +1 -0
  185. package/dist/assets/{VendorsAccountsSection-DsgK37WB-aox7OqvX.js → VendorsAccountsSection-kJAKmxCN-DLYMQH1s.js} +3 -3
  186. package/dist/assets/{VerifyDevice-BPAsHKLY-Cz_qYix0.js → VerifyDevice-Cclxcvod-LionuPr6.js} +6 -6
  187. package/dist/assets/{VideoPlayer-Bwg_8KIq-BdYMo354.js → VideoPlayer-B0jJK498-Bbxsuaup.js} +2 -2
  188. package/dist/assets/{VideoPopup-CxjbzbjP-BNEaMqCr.js → VideoPopup-BUq4CaWy-BN4RkIzc.js} +2 -2
  189. package/dist/assets/{WarningsDrawerPage-BBc3-y8F-BZEfDhck.js → WarningsDrawerPage-B7Pmv7_n-DMtwZsM9.js} +5 -5
  190. package/dist/assets/{ZeniAccountDetailPage-VB4JoNYE-BFAmjkJH.js → ZeniAccountDetailPage-l5IuVidF-9qcHcEDf.js} +14 -14
  191. package/dist/assets/{ZeniAccountListViewPage-CMjCtqT0-DlchsqGp.js → ZeniAccountListViewPage-CtOCukoi-BrJGMSMd.js} +14 -14
  192. package/dist/assets/{ZeniAccountNavBarPieces-C89nBJ6j--_uql9Y3.js → ZeniAccountNavBarPieces-DHpWht7s-DoN45Kif.js} +2 -2
  193. package/dist/assets/{ZeniAccountPromoPage-C1_qLOdH-DnXsp_Yv.js → ZeniAccountPromoPage-DhuZowvX-C0CMafiM.js} +6 -6
  194. package/dist/assets/{ZeniAccountSetupPage-DWEVvvHh-FILqo9Qu.js → ZeniAccountSetupPage-DXmdPnU2-Od8qQEgW.js} +1 -1
  195. package/dist/assets/{ZeniCopyright-COx-CtZK-D8sb71fE.js → ZeniCopyright-CxIm7c5S-BQ5EemJ1.js} +1 -1
  196. package/dist/assets/{ZeniTransferAmountSlider-DfOF_MH1-CdGJRA77.js → ZeniTransferAmountSlider-7nRSeYbl-qFHjxePx.js} +1 -1
  197. package/dist/assets/{add-to-wallet-DgdBD8_G-0XGXXyET.js → add-to-wallet-DgdBD8_G-DTqFjlvW.js} +1 -1
  198. package/dist/assets/{analytics-DKo_M1pl.js → analytics-nCDopMZa.js} +1 -1
  199. package/dist/assets/{analyticsHelper-CcmV6wHp-Ds3S8ZrP.js → analyticsHelper-BXN2EdPH-DXUFohOz.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CIahkACa.js → analyticsHelper-DFj-3TWh.js} +1 -1
  201. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXV4c0YJ.js → arrow-south-east-round-PEovUgvH-C9v2daeL.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-mbafm5D3-CaqR_Fs7.js → auto-transfer-rule-mbafm5D3-C9ojomBW.js} +1 -1
  203. package/dist/assets/{chartTypes-YlZX4WLs-vwClst_9.js → chartTypes-qqLvT6t1-BAzagmMG.js} +1 -1
  204. package/dist/assets/{commonDimensions-IG4iGJ-6-COy8LjzW.js → commonDimensions-CDU138wy-0KaFqMmK.js} +1 -1
  205. package/dist/assets/{constants-fG1bibDB.js → constants-CiSoUYAy.js} +1 -1
  206. package/dist/assets/{core-CpHpZW9N.js → core-B8o5Jj6O.js} +1 -1
  207. package/dist/assets/{dash.all.min-CVRHLeuD.js → dash.all.min-D-Z5Ee1V.js} +1 -1
  208. package/dist/assets/{detailCommon-lUFqcp_3-D6_iWrpG.js → detailCommon-DP02lgW9-DwZYcDAj.js} +5 -5
  209. package/dist/assets/{downloadPdf-DYME892p-CFdivUKB.js → downloadPdf-Dl5UuOv_-DcSCv9vJ.js} +1 -1
  210. package/dist/assets/{empty-BHQsFmmb.js → empty-CGwQB5sP.js} +1 -1
  211. package/dist/assets/{empty-_FQjEKMH.js → empty-dVLDjrZY.js} +1 -1
  212. package/dist/assets/epic-gk6U9kCP.js +2 -0
  213. package/dist/assets/{gift-box-Cmt9OgIZ-Dy2FFAHX.js → gift-box-Cmt9OgIZ-C7uoRs4g.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BYD1Ec66.js → graphic-no-data-l-DU4J8fDt-DxQEyL6u.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DyCtYJXL.js → graphic-no-data-net-burn-l-CzmycA0m-BeDfyPz6.js} +1 -1
  216. package/dist/assets/{handshake-BPg58FML-Ck4T6x8r.js → handshake-BPg58FML-C6I69X2f.js} +1 -1
  217. package/dist/assets/{index-DMxZ-F2f.js → index-2UT2PoLz.js} +1 -1
  218. package/dist/assets/{index-snZI7Ejp.js → index-B62kMDsj.js} +1 -1
  219. package/dist/assets/{index-gQkYKWh4.js → index-BlhMiimg.js} +1 -1
  220. package/dist/assets/{index-CdjgwxSA.js → index-CJSgchrb.js} +1 -1
  221. package/dist/assets/{index-CXEWvwRf.js → index-CofZqiyy.js} +1 -1
  222. package/dist/assets/{index-B_cddanf.js → index-l9FViNoO.js} +1044 -1048
  223. package/dist/assets/{index--v5kH7eI.js → index-mRKAcklk.js} +1 -1
  224. package/dist/assets/{lexical-DVClH-hg.js → lexical-B19SDutg.js} +1 -1
  225. package/dist/assets/{liveblocks-DKD_-8rq.js → liveblocks-BKCvXoiA.js} +1 -1
  226. package/dist/assets/{lottie-DPQlys-3.js → lottie-CTuuushW.js} +1 -1
  227. package/dist/assets/mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js +1 -0
  228. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BNXHaV-x-8h6T4NE0.js → mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js} +1 -1
  229. package/dist/assets/mapSpacerToTreeNode-Bl4MSBc9-DsaOHsUd.js +1 -0
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-LxIEmBdX-Bxr9xNOi.js → mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js} +1 -1
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-Cx4O7W7V-C8qea7Z2.js +1 -0
  232. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-B7P1WFjn.js +1 -0
  233. package/dist/assets/{mui-vQToN2qW.js → mui-cKt0zt2w.js} +1 -1
  234. package/dist/assets/{page-detail-CWX5S47F-BDbvQ5nZ.js → page-detail-CWX5S47F-hDrW8rOj.js} +1 -1
  235. package/dist/assets/{radio-default-CiSgisfh-n0U7H3Pg.js → radio-default-CiSgisfh-D4wl_ybJ.js} +1 -1
  236. package/dist/assets/{react-Hb_TE8am.js → react-3b8QVeng.js} +1 -1
  237. package/dist/assets/{react-D4TXMxQv.js → react-85WN45Y4.js} +1 -1
  238. package/dist/assets/{react-DSNCIi97.js → react-BcpaDQXf.js} +1 -1
  239. package/dist/assets/{react-BP7HcSTu.js → react-CUDeH5fw.js} +1 -1
  240. package/dist/assets/{react-DkBDh8Z0.js → react-D2QCQuEO.js} +1 -1
  241. package/dist/assets/{react-DoQr6jZT.js → react-D811AKIl.js} +3 -3
  242. package/dist/assets/{react-BoeZM2US.js → react-Drezwue3.js} +1 -1
  243. package/dist/assets/{react-4R0im3o1.js → react-DycPsf8e.js} +1 -1
  244. package/dist/assets/{recharts-jo6oNEJ1.js → recharts-DKlDhqpA.js} +1 -1
  245. package/dist/assets/{sentry-CiC6rduJ.js → sentry-DWELwT5u.js} +1 -1
  246. package/dist/assets/{shield-DOlUxcFf-B-y5Gt68.js → shield-DOlUxcFf-DcDDcztl.js} +1 -1
  247. package/dist/assets/toCOABalancesWithID-BM2RMkm6-8ztVlUAS.js +1 -0
  248. package/dist/assets/{toChartData-CuSN9vUZ-CBCyKcms.js → toChartData-xURa2wgf-D5Tvqegg.js} +1 -1
  249. package/dist/assets/{uploadAttachment-CRI5U1f4-BNbLH2xC.js → uploadAttachment-DfTOIWsX-DQL7CPp6.js} +17 -17
  250. package/dist/assets/{uploadReceipts-CPw64UYa-rrnBgQHD.js → uploadReceipts-CPw64UYa-BXgFs59O.js} +1 -1
  251. package/dist/assets/{url-Cptp4ROd.js → url-BO73xRx2.js} +1 -1
  252. package/dist/assets/{url-D2MARgat.js → url-dLu3i57y.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DI7_2uJq.js → useLongPress-GCK2COYQ-BJatk2tg.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-COeXcH05.js → usp-line-BBd1wKwW-DG080FPi.js} +1 -1
  255. package/dist/assets/{utils-CM3T2Iks.js → utils-Db67jZaM.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-Ce8CP8e3.js → zeni-epic-state-atBaoFS-.js} +17 -17
  257. package/dist/index.html +1 -1
  258. package/package.json +3 -3
  259. package/dist/assets/AccountInfoPage-D0Kzx5mY-4RCW-gma.js +0 -18
  260. package/dist/assets/AddAddressForCardDrawer-C_QsOhGT-sPCk5dFw.js +0 -6
  261. package/dist/assets/ApprovalRulesSettingsPage-5bJIKss7-Y9SQffD9.js +0 -47
  262. package/dist/assets/BillingSettingsPage-BiKaSV4T-Clmey8ds.js +0 -44
  263. package/dist/assets/BusinessVerificationPage-8tFxbXGC-u7kE13ru.js +0 -138
  264. package/dist/assets/ChargeCardPromoPage-BUGGPnco-B8DmSz9X.js +0 -222
  265. package/dist/assets/CompanyOfficerDetailsSection-CMl5cDNs-ClxHSaX5.js +0 -330
  266. package/dist/assets/CompanyPassportPage-BlDBD5EG-Ms4tKiHb.js +0 -347
  267. package/dist/assets/ConfettiBurst-nOkNOTPr-BBZuvmiJ.js +0 -1
  268. package/dist/assets/CustomerOnboardingContainerPage-Dq7dnrBC-CLzw6d0Z.js +0 -1
  269. package/dist/assets/CustomerOnboardingNoStepsPage-D1XU-7jk-U96sx-zJ.js +0 -66
  270. package/dist/assets/CustomerOnboardingPage-DFky4iQx-DXMpG3E5.js +0 -107
  271. package/dist/assets/DepositAccTransactionListPage-MLQJ9urd-DG1x-GzH.js +0 -66
  272. package/dist/assets/EntityDetailPage-Bj5lQ0PH-DoSc2vhw.js +0 -18
  273. package/dist/assets/InsightsSection-BT0lHMo3-BUbRW235.js +0 -27
  274. package/dist/assets/InternationalWireVerificationPage-B0ha4dEA-C8DDegxT.js +0 -65
  275. package/dist/assets/LabeledCountryMultiSelectField-CJud_Lwc-CMmFxHh7.js +0 -234
  276. package/dist/assets/LabeledMultiSelectField-DH6iG4SR-Dp-VUwax.js +0 -220
  277. package/dist/assets/MagicLinkACHDetailsPage-CRVp5zpz-Bv9MRMFe.js +0 -1
  278. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cc9jW4rg-CJBdK_v_.js +0 -1
  279. package/dist/assets/MagicLinkInternationalWireDetailsPage-COHy_2Nv-CRrVgpWZ.js +0 -1
  280. package/dist/assets/NoDataChart-DxwqqeoI-DkdOoSHp.js +0 -26
  281. package/dist/assets/NoDataTable-DOZy5UAM-CLNkMXvt.js +0 -8
  282. package/dist/assets/NotificationsListConfig-C-OlC5S6-DRk_Uldo.js +0 -1
  283. package/dist/assets/OverlayContainerPage-Daz3A7cI-DMUnjjcT.js +0 -11
  284. package/dist/assets/PaymentAccountSetupBillingAddressSection-Dnw0APJu-4xS9nSQN.js +0 -107
  285. package/dist/assets/ReimbursementDetailPage-DOCRkpPT-AvgWK7pn.js +0 -314
  286. package/dist/assets/RoleWithToolTip-BYuFXi4d-CSVDcI3W.js +0 -22
  287. package/dist/assets/ScheduleDetailsFixedAssetsPage-BU--t7Cu-DFGGgkNo.js +0 -37
  288. package/dist/assets/StatementItem-CL4KzNeN-CTh4IsrB.js +0 -31
  289. package/dist/assets/StatementsPage-ECVGrRXi-Dgi1qAAg.js +0 -58
  290. package/dist/assets/SummaryCard-OvE5BRYP-lMLGP1wc.js +0 -1
  291. package/dist/assets/TransactionVendorDetailPage-BLCUqZvL-V1txeeOu.js +0 -80
  292. package/dist/assets/TreasuryStatementsPage-CLFal4Qu-Bi5NNgyx.js +0 -58
  293. package/dist/assets/UploadAdditionalDocumentOverlay-B37gdjRF-D7Y_EFQG.js +0 -38
  294. package/dist/assets/Vendor2FAPopup-BZQXt_G4-B9AtIVBH.js +0 -1
  295. package/dist/assets/VendorACHDetailsPage-WS3d8TF6-BTnrLXkh.js +0 -1
  296. package/dist/assets/VendorDomesticWireDetailsPage-Brom_Sf_-Bln1Phsj.js +0 -1
  297. package/dist/assets/VendorInternationalWireSwiftDetailsPage-C4XEeSs2-CiauNbGU.js +0 -1
  298. package/dist/assets/commonTypes-ByC4Sd87-BqJ29CNI.js +0 -1
  299. package/dist/assets/epic-DRq35BIa.js +0 -2
  300. package/dist/assets/mapLoadingInProgressToTreeNode-B7Tq4sxB-DXX1rvvB.js +0 -1
  301. package/dist/assets/mapSpacerToTreeNode-DpgQIqP_-d7FgPe5u.js +0 -1
  302. package/dist/assets/mapTimeframeBalancesToTreeNode-fxn51zxe-ArPj_MwE.js +0 -1
  303. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-opvjldHo-DvfSG3SI.js +0 -1
  304. package/dist/assets/toCOABalancesWithID-BAw7mDDs-4dn7cu8D.js +0 -1
@@ -1,16 +1,16 @@
1
- import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh as ro,gi as lo,V as t,gC as so,ac as ln,cn as di,co as sn,cp as dn,aN as q,o as i,y as d,bA as Ti,bn as co,dq as uo,gj as mo,gu as cn,gp as Di,aP as un,ao as mn,gq as po,gD as Ve,ew as Ke,e$ as ci,gE as Bt,F as fe,k as xt,gF as ho,p as j,L as pn,aq as ui,c as a,bw as go,gs as yo,cD as bo,eE as mi,gG as Mt,fe as Se,cF as pi,fh as $e,cP as nt,eg as fo,fd as hn,b as Lt,cI as gn,cH as tt,eo as Te,ai as hi,gH as wo,fw as xo,cC as So,aT as ji,fq as $o,bv as vo,b9 as yn,u as Co,ef as ko,b6 as Ft,gk as Io,bT as bn,R as gi,M as fn,cX as wn,cg as Et,eS as To,b8 as Do,c$ as jo,fk as Oo,al as yi,n as Oi,bR as xn,b0 as Pi,cW as Po,am as Ro,cL as Sn,aL as Lo,gI as $n,gJ as si,g8 as Ri,gK as At,cV as Ao,ge as zo,bI as Bo,cU as Mo}from"./index-B_cddanf.js";import{a as S,S as kt}from"./sentry-CiC6rduJ.js";import{n}from"./mui-vQToN2qW.js";import{a as Fo}from"./liveblocks-DKD_-8rq.js";import{FI as Eo,bL as it,bP as vn,bo as Cn,bm as Li,FJ as Ai,bh as bi}from"./zeni-epic-state-Ce8CP8e3.js";import kn from"./InvoiceUploadSection-BJLLf4x5-DFydS2Od.js";import{r as No,f as zt,d as bt,p as fi,u as zi,h as ke}from"./types-DyvtCprH-NFPm5TaG.js";import{I as Wo}from"./LabeledCreatableSingleSelectField-Dqt1M07c-DY3asbo7.js";import{S as Uo}from"./CurrencySelectField-DIh7_ile-Ch5w8ptc.js";import{e as _o}from"./BankAccountSection-B3v3BDPK-B_DOigwY.js";import{W as Vo,A as qo}from"./BankAccountWarningSection-DCi9o7_J-w-3jN6e4.js";import{o as Ho}from"./radio-default-CiSgisfh-n0U7H3Pg.js";import"./core-CpHpZW9N.js";import"./lottie-DPQlys-3.js";import"./analytics-DKo_M1pl.js";import"./recharts-jo6oNEJ1.js";import"./lexical-DVClH-hg.js";import"./utils-CM3T2Iks.js";import"./AttachmentView-CeblaMyI-DBGFvosS.js";import"./uploadReceipts-CPw64UYa-rrnBgQHD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a841391d-1201-4d6d-ac84-472b5030dadb",e._sentryDebugIdIdentifier="sentry-dbid-a841391d-1201-4d6d-ac84-472b5030dadb")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ce}},dateFormat:Ko,common:Go}=fe.getLocalizedStrings(),Yo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Le(),s=wt(),y=Mt(),$=`dashboard_${s.currentTenant?.companyId}`,P=ft(),{formState:{errors:I},getValues:R,trigger:H}=nt(),L=Go.strings.empty,T=R(Me(p,"distanceInMiles")),B=Bi.largeLabelWidth.value(w),te=R(Me(p,"class")),ne=r.find(z=>z.classId===te?.selectedOption),oe=Me(p,"class"),Y=Te(I,oe);S.useEffect(()=>{te?.selectedOption!=null&&(ne?.isDeleted===!0||Y)&&H(oe)},[te?.selectedOption,ne?.isDeleted,r,oe,H]);const K={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=z=>r.filter(ae=>ae.classId===z)[0]?.accountingClassNumber,Z=r.find(z=>z.classId===o.class),V={valueContainer:z=>({...z,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:Ce.transactionDate,width:B},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:Ce.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:z=>!!z}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:Ce.distanceInMiles,width:B},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:Ce.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Ce.amount,width:B},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:tt(Ce.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:m,label:{label:Ce.memo,width:B},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:tt(Ce.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:$,companyId:s.currentTenant?.companyId??L,companyName:s.currentTenant?.companyName??L,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:Ce.department,width:B},additionalLabelInfo:ne?.isDeleted===!0&&Te(I,Me(p,"class"))?Ce.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:tt(Ce.department),valueToId:z=>F(z),defaultValue:{selectedOption:Z?.classId,allOptions:Ke(k,[])},style:{width:"100%"},customStyleConfig:V,registerOptions:{required:!0,validate:z=>z?.selectedOption==null?!1:r.find(ae=>ae.classId===z?.selectedOption)?.isDeleted===!0?Ce.deletedClassError:!0}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},It=n.div`
1
+ import{aO as li,e as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Re,gd as ao,gf as ro,gg as lo,V as t,gA as so,ac as ln,cn as di,co as sn,cp as dn,aN as H,o as i,y as d,bA as Ti,bn as co,ds as uo,gh as mo,gs as cn,gn as Di,aP as un,ao as mn,go as po,gB as Ve,ex as Ke,e$ as ci,gC as Bt,F as fe,A as xt,gD as ho,p as j,_ as pn,aq as ui,d as a,bw as go,gq as yo,cD as bo,eE as mi,gE as Mt,fe as Se,cF as pi,fh as $e,cP as nt,ei as fo,fd as hn,b as Rt,cI as gn,cH as tt,cX as Te,ai as hi,gF as wo,fw as xo,cC as So,aT as ji,fq as $o,bv as vo,b9 as yn,u as Co,eh as ko,b6 as Ft,gi as Io,bT as bn,M as gi,a as fn,cZ as wn,cg as Et,eS as To,b8 as Do,d1 as jo,fk as Oo,al as yi,n as Oi,bR as xn,b0 as Pi,cW as Po,am as Lo,cL as Sn,aL as Ro,gG as $n,gH as si,g8 as Li,gI as At,cV as Ao,gc as zo,bI as Bo,cU as Mo}from"./index-l9FViNoO.js";import{a as S,S as kt}from"./sentry-DWELwT5u.js";import{n}from"./mui-cKt0zt2w.js";import{a as Fo}from"./liveblocks-BKCvXoiA.js";import{FI as Eo,bL as it,bP as vn,bo as Cn,bm as Ri,FJ as Ai,bh as bi}from"./zeni-epic-state-atBaoFS-.js";import kn from"./InvoiceUploadSection-CO34IhU8-1rxbAjFS.js";import{r as No,f as zt,d as bt,p as fi,u as zi,h as ke}from"./types-DyvtCprH-NFPm5TaG.js";import{I as Wo}from"./LabeledCreatableSingleSelectField-DLVxVffe-RkcfyIgp.js";import{S as Uo}from"./CurrencySelectField-BC9QkDwI-BEtmNe90.js";import{e as _o}from"./BankAccountSection-ZWR_hXjD-mYMACSQd.js";import{W as Vo,A as Ho}from"./BankAccountWarningSection-C-2eE9pL-BhkH4zkd.js";import{o as qo}from"./radio-default-CiSgisfh-D4wl_ybJ.js";import"./core-B8o5Jj6O.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./recharts-DKlDhqpA.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./AttachmentView-BsNhULL3-C-ca695p.js";import"./uploadReceipts-CPw64UYa-BXgFs59O.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5f576099-f829-4ddd-9816-70201059c848",e._sentryDebugIdIdentifier="sentry-dbid-5f576099-f829-4ddd-9816-70201059c848")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ce}},dateFormat:Ko,common:Go}=fe.getLocalizedStrings(),Yo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Re(),s=wt(),y=Mt(),$=`dashboard_${s.currentTenant?.companyId}`,P=ft(),{formState:{errors:I},getValues:L,trigger:q}=nt(),R=Go.strings.empty,T=L(Me(p,"distanceInMiles")),B=Bi.largeLabelWidth.value(w),te=L(Me(p,"class")),ne=r.find(z=>z.classId===te?.selectedOption),oe=Me(p,"class"),Y=Te(I,oe);S.useEffect(()=>{te?.selectedOption!=null&&(ne?.isDeleted===!0||Y)&&q(oe)},[te?.selectedOption,ne?.isDeleted,r,oe,q]);const K={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=z=>r.filter(ae=>ae.classId===z)[0]?.accountingClassNumber,Z=r.find(z=>z.classId===o.class),V={valueContainer:z=>({...z,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:Ce.transactionDate,width:B},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:Ce.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:z=>!!z}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:Ce.distanceInMiles,width:B},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:Ce.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:"disabled",label:{label:Ce.amount,width:B},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:tt(Ce.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:m,label:{label:Ce.memo,width:B},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:tt(Ce.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:Ce.department,width:B},additionalLabelInfo:ne?.isDeleted===!0&&Te(I,Me(p,"class"))?Ce.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:tt(Ce.department),valueToId:z=>F(z),defaultValue:{selectedOption:Z?.classId,allOptions:Ke(k,[])},style:{width:"100%"},customStyleConfig:V,registerOptions:{required:!0,validate:z=>z?.selectedOption==null?!1:r.find(ae=>ae.classId===z?.selectedOption)?.isDeleted===!0?Ce.deletedClassError:!0}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},It=n.div`
2
2
  display: flex;
3
3
  flex: 1;
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  min-height: 1px;
6
6
  max-height: 1px;
7
- `,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Zo({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=S.useState(!1),{getValues:l,formState:{errors:k}}=nt(),w=ft(),s=Le(),y=c!=null,$=l(e),P=`${$?.amount} ${$?.currency?.selectedOption}`,I=Te(k,e)&&At(k,`${e}.amount`)!=null,R=Te(k,e)&&At(k,`${e}.currency`)!=null,H=p===!0?I||R:!1,L=!H&&v===!1;return S.useEffect(()=>{L===!1&&f(!0)},[L]),t.jsx(mn,{onClickAway:()=>y===!1&&!H&&f(!1),children:t.jsx(Xo,{style:C,isDisabled:y,tabIndex:L&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[$?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:L,children:P}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Jo,{isVisible:!L,children:[t.jsx(zo,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:T=>T!=null?T>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),L?null:t.jsx(Qo,{}),t.jsx(Uo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:m.map(T=>({label:s==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:c,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Jo=n.div`
7
+ `,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Zo({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=S.useState(!1),{getValues:l,formState:{errors:k}}=nt(),w=ft(),s=Re(),y=c!=null,$=l(e),P=`${$?.amount} ${$?.currency?.selectedOption}`,I=Te(k,e)&&At(k,`${e}.amount`)!=null,L=Te(k,e)&&At(k,`${e}.currency`)!=null,q=p===!0?I||L:!1,R=!q&&v===!1;return S.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Qo,{style:C,isDisabled:y,tabIndex:R&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":H("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[$?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:R,children:P}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(Jo,{isVisible:!R,children:[t.jsx(zo,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:T=>T!=null?T>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(Xo,{}),t.jsx(Uo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:m.map(T=>({label:s==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:c,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Jo=n.div`
8
8
  display: ${e=>e.isVisible?"flex":"none"};
9
9
  width: 100%;
10
10
  input {
11
11
  text-align: left;
12
12
  }
13
- `,Xo=n.div`
13
+ `,Qo=n.div`
14
14
  display: flex;
15
15
  align-items: center;
16
16
  justify-content: flex-end;
@@ -22,7 +22,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
22
22
  input {
23
23
  text-align: right;
24
24
  }
25
- `,Qo=n.div`
25
+ `,Xo=n.div`
26
26
  background-color: ${e=>e.theme.colors.grey5};
27
27
  min-width: ${i.sp3};
28
28
  `,Fi=n(yn)`
@@ -37,7 +37,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
37
37
  &.amount-placeholder {
38
38
  color: ${e=>e.theme.colors.grey1};
39
39
  }
40
- `,Ue={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},In={infoLabel:new gi("extraSmallRegular","smallRegular")};function ea({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Le(),{formState:{errors:w}}=nt(),s=Te(w,r.name)&&At(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&At(w,`${r.name}.currency`)!=null,$=r.showAmountCurrencyError===!0?s||y:!1,P=s||y||$,I=()=>{if(C===!0)return t.jsx(aa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||$){let R=null;return m===!0&&l&&f&&(R=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(oa,{children:v??""}),children:t.jsx(la,{children:t.jsx(sa,{})})})),t.jsxs(ra,{size:k,isError:$,hasToolTip:m,children:[R,f]})}};return t.jsxs(ta,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Ao,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Ue.labelMarginLeft.value(k),marginRight:Ue.labelMarginRight.value(k),marginTop:Ue.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(na,{labelWidth:o.width,children:[t.jsx(Zo,{...r,isDisabled:e,style:{flexGrow:1,height:Ue.controlHeight.value(k)}}),P?t.jsx(ia,{size:k,hasError:P,children:p}):null,I()]})]})}const ta=n.div`
40
+ `,Ue={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},In={infoLabel:new gi("extraSmallRegular","smallRegular")};function ea({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Re(),{formState:{errors:w}}=nt(),s=Te(w,r.name)&&At(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&At(w,`${r.name}.currency`)!=null,$=r.showAmountCurrencyError===!0?s||y:!1,P=s||y||$,I=()=>{if(C===!0)return t.jsx(aa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||$){let L=null;return m===!0&&l&&f&&(L=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(oa,{children:v??""}),children:t.jsx(la,{children:t.jsx(sa,{})})})),t.jsxs(ra,{size:k,isError:$,hasToolTip:m,children:[L,f]})}};return t.jsxs(ta,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":H("labeled-currency-amount-field",r.name),children:[t.jsx(Ao,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Ue.labelMarginLeft.value(k),marginRight:Ue.labelMarginRight.value(k),marginTop:Ue.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(na,{labelWidth:o.width,children:[t.jsx(Zo,{...r,isDisabled:e,style:{flexGrow:1,height:Ue.controlHeight.value(k)}}),P?t.jsx(ia,{size:k,hasError:P,children:p}):null,I()]})]})}const ta=n.div`
41
41
  display: flex;
42
42
  flex-direction: row;
43
43
  align-items: flex-start;
@@ -146,7 +146,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
146
146
  width: ${i.sp3};
147
147
  height: ${i.sp3};
148
148
  color: inherit;
149
- `,he=(e,o)=>`${e}.${o}`,Pt={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(a[3],a[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:da,common:Tn,spendManagement:{reimbursement:{reimbursementDetail:ie}}}=fe.getLocalizedStrings(),{strings:{empty:re}}=Tn,ca=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},ua=e=>e.charAt(0).toLowerCase()+e.slice(1),ma=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:$,uncategorizedAccounts:P})=>{const I=Le(),R=wt(),H=Mt(),L=ft(),{formState:{errors:T},getValues:B,trigger:te}=nt(),ne=B(he(m,"class")),oe=c.find(h=>h.classId===ne?.selectedOption),Y=he(m,"class"),K=Te(T,Y),F=B(he(m,"account")),Z=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),V=he(m,"account"),z=Te(T,V);S.useEffect(()=>{ne?.selectedOption!=null&&(oe?.isDeleted===!0||K)&&te(Y)},[ne?.selectedOption,oe?.isDeleted,c,Y,te]),S.useEffect(()=>{F?.selectedOption!=null&&(Z?.isDeleted===!0||z)&&te(V)},[F?.selectedOption,Z?.isDeleted,r,V,te]);const ae=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),le=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Pt.largeLabelWidth.value(I),ce=Pt.smallLabelWidth.value(I),Ee=p.map(h=>h.id??re),ue={application:"dashboard",companyId:R.currentTenant?.companyId,tab:"reimbursement",entityId:s},ge=`dashboard_${R.currentTenant?.companyId}`,se=h=>p.find(ee=>ee.id===h)?.name??h,De=r.find(h=>h.qboId===o.account),je=h=>[P.expense?.qboId,P.income?.qboId].includes(h),Oe=c.find(h=>h.classId===o.class),me={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=h=>r.filter(ee=>ee.qboId===h)[0]?.qboId,pe=h=>c.filter(ee=>ee.classId===h)[0]?.accountingClassNumber,ve=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",ua(o?.recommendedAccount?.reason??re)),Ge=Bt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(Wo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:he(m,"merchant"),placeholder:ie.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??re,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:se})}),t.jsx(Tt,{}),l.includes("transactionDate")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:ie.transactionDate,width:U},style:{paddingBottom:Pt.paddingBottom.valuePx(I),width:"auto"},dateField:{name:he(m,"transactionDate"),placeholder:ie.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:da.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(Tt,{}),l.includes("amount")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,isTwoLined:!0,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(ea,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.amount,width:ce},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:ie.addAmount,name:ie.addAmount},allCurrencies:$,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:ie.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Tn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Lo("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(Tt,{}),l.includes("memo")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:f,label:{label:ie.memo,width:U},style:{width:"auto"},text:{type:"text",name:he(m,"memo"),placeholder:tt(ie.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(Tt,{}),l.includes("account")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("account",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,children:t.jsx(si,{label:{label:ie.category,width:U},additionalLabelInfo:Z?.isDeleted===!0&&Te(T,he(m,"account"))?ie.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ae||le,name:he(m,"account"),placeholder:ie.categoryPlaceholder,valueToId:h=>Pe(h),defaultValue:{selectedOption:De?.qboId??De?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ee=>ee.qboId===h?.selectedOption||ee.accountId===h?.selectedOption)?.isDeleted===!0?ie.deletedCategoryError:!0}},disableCurrentOption:je,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ae?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??re},checkBoxField:{name:he(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:le?{label:{label:o.retainedAccount?.accountName??re},checkBoxField:{name:he(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},he(m,"account"))}),l.includes("class")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ge,companyId:R.currentTenant?.companyId??re,companyName:R.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("class",e,"out_of_pocket")}`},fieldThreadTargetElement:H?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:ie.department,width:U},additionalLabelInfo:oe?.isDeleted===!0&&Te(T,he(m,"class"))?ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:he(m,"class"),placeholder:tt(ie.department),valueToId:h=>pe(h),defaultValue:{selectedOption:Oe?.classId,allOptions:Ke(w,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:c.find(ee=>ee.classId===h?.selectedOption)?.isDeleted===!0?ie.deletedClassError:!0}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},he(m,"class"))})]})},ct=n.span`
149
+ `,he=(e,o)=>`${e}.${o}`,Pt={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(a[3],a[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:da,common:Tn,spendManagement:{reimbursement:{reimbursementDetail:ie}}}=fe.getLocalizedStrings(),{strings:{empty:re}}=Tn,ca=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},ua=e=>e.charAt(0).toLowerCase()+e.slice(1),ma=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:$,uncategorizedAccounts:P})=>{const I=Re(),L=wt(),q=Mt(),R=ft(),{formState:{errors:T},getValues:B,trigger:te}=nt(),ne=B(he(m,"class")),oe=c.find(h=>h.classId===ne?.selectedOption),Y=he(m,"class"),K=Te(T,Y),F=B(he(m,"account")),Z=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),V=he(m,"account"),z=Te(T,V);S.useEffect(()=>{ne?.selectedOption!=null&&(oe?.isDeleted===!0||K)&&te(Y)},[ne?.selectedOption,oe?.isDeleted,c,Y,te]),S.useEffect(()=>{F?.selectedOption!=null&&(Z?.isDeleted===!0||z)&&te(V)},[F?.selectedOption,Z?.isDeleted,r,V,te]);const ae=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),le=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Pt.largeLabelWidth.value(I),ce=Pt.smallLabelWidth.value(I),Ee=p.map(h=>h.id??re),ue={application:"dashboard",companyId:L.currentTenant?.companyId,tab:"reimbursement",entityId:s},ge=`dashboard_${L.currentTenant?.companyId}`,se=h=>p.find(ee=>ee.id===h)?.name??h,De=r.find(h=>h.qboId===o.account),je=h=>[P.expense?.qboId,P.income?.qboId].includes(h),Oe=c.find(h=>h.classId===o.class),me={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=h=>r.filter(ee=>ee.qboId===h)[0]?.qboId,pe=h=>c.filter(ee=>ee.classId===h)[0]?.accountingClassNumber,ve=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",ua(o?.recommendedAccount?.reason??re)),Ge=Bt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Wo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:he(m,"merchant"),placeholder:ie.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??re,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:se})}),t.jsx(Tt,{}),l.includes("transactionDate")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:ie.transactionDate,width:U},style:{paddingBottom:Pt.paddingBottom.valuePx(I),width:"auto"},dateField:{name:he(m,"transactionDate"),placeholder:ie.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:da.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(Tt,{}),l.includes("amount")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,isTwoLined:!0,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(ea,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.amount,width:ce},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:ie.addAmount,name:ie.addAmount},allCurrencies:$,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:ie.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Tn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Ro("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(Tt,{}),l.includes("memo")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:f,label:{label:ie.memo,width:U},style:{width:"auto"},text:{type:"text",name:he(m,"memo"),placeholder:tt(ie.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(Tt,{}),l.includes("account")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(si,{label:{label:ie.category,width:U},additionalLabelInfo:Z?.isDeleted===!0&&Te(T,he(m,"account"))?ie.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ae||le,name:he(m,"account"),placeholder:ie.categoryPlaceholder,valueToId:h=>Pe(h),defaultValue:{selectedOption:De?.qboId??De?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ee=>ee.qboId===h?.selectedOption||ee.accountId===h?.selectedOption)?.isDeleted===!0?ie.deletedCategoryError:!0}},disableCurrentOption:je,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ae?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??re},checkBoxField:{name:he(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:le?{label:{label:o.retainedAccount?.accountName??re},checkBoxField:{name:he(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},he(m,"account"))}),l.includes("class")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:ie.department,width:U},additionalLabelInfo:oe?.isDeleted===!0&&Te(T,he(m,"class"))?ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:he(m,"class"),placeholder:tt(ie.department),valueToId:h=>pe(h),defaultValue:{selectedOption:Oe?.classId,allOptions:Ke(w,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:c.find(ee=>ee.classId===h?.selectedOption)?.isDeleted===!0?ie.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},he(m,"class"))})]})},ct=n.span`
150
150
  position: relative;
151
151
  `,ut=n(mi)`
152
152
  color: ${e=>e.theme.colors.primary};
@@ -163,7 +163,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
163
163
  background-color: ${e=>e.theme.colors.grey3};
164
164
  min-height: 1px;
165
165
  max-height: 1px;
166
- `,Qe=(e,o)=>`${e}.${o}`,_e={paddingTop:new d(a[5],a[4]),marginBottom:new d(a[3],a[3]),labelPaddingLeft:new d(a[3],a[4]),buttonWidth:new d(70,70),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6]),deleteConfirmationTextMarginBottom:new d(a[2],a[0])},G=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:$,isDisabled:P,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:R,style:H,autoFields:L=[],analytics:T,reimbursementId:B,tentativeMerchantName:te,companyMileageConfigInfo:ne,uncategorizedAccounts:oe,removeDuplicateReimbursementForLine:Y,scrollToSection:K,onDuplicateLineClick:F,onRemoveReimbursement:Z,clearTentativeNameForLine:V,allCurrencies:z,accountsHierarchyList:ae,classHierarchyList:le})=>{const U=Le(),ce=wt(),Ee=Mt(),ue=fe.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:ce.currentTenant?.companyId,tab:"reimbursement",entityId:B},se=`dashboard_${ce.currentTenant?.companyId}`,{getValues:De}=nt(),[je,Oe]=S.useState(!1),me=De(Qe($,"reimbursementType"));return t.jsxs(xa,{style:H,windowSize:U,children:[t.jsxs(ga,{hasFile:f,windowSize:U,showDeleteConfirmation:je,children:[t.jsx($a,{windowSize:U,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),je?t.jsxs(wa,{windowSize:U,children:[t.jsx(fa,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ha,{children:[t.jsx(Oi,{label:G.buttons.cancel,onClick:()=>Oe(!1),style:{width:_e.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Oi,{label:G.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),V?.(e.lineId??"1"),Oe(!1),Y(e.lineId),Z(p)},style:{width:_e.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||y==="rejected")?t.jsx(ya,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Oe(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ba,{})})}):null]}),w.includes(e.lineId)?t.jsx(cn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(va,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(Sa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),K(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(Ei,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&B!=null,dashboardTabKey:$e({type:"details",key:me===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:ce.currentTenant?.companyId??ue,companyName:ce.currentTenant?.companyName??ue,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ke("reimbursementType",p,me===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ka,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:P!=null||R?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Qe($,"reimbursementType"),id:`${Qe($,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(Ca,{}),t.jsx(Pi,{isDisabled:P!=null||R?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Qe($,"reimbursementType"),id:`${Qe($,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(Ia,{}),me===G.outOfPocketKey?t.jsx(ma,{lineIndex:p,reimbursementId:B,uncategorizedAccounts:oe,isReimbursementCommentingEnabled:I,isDisabled:P,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?it(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Qe($,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:v,tentativeMerchantName:te,allCurrencies:z,isAddReimbursementDisabled:R,accountsHierarchyList:ae,classHierarchyList:le}):t.jsx(Yo,{lineIndex:p,reimbursementId:B,isReimbursementCommentingEnabled:I,isDisabled:P,mileage:{transactionDate:e.mileage.transactionDate!=null?it(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Qe($,"mileage"),companyMileageConfigInfo:ne,defaultCurrency:l,isAddReimbursementDisabled:R,classHierarchyList:le})]})]})},ha=n.div``,ga=n.div`
166
+ `,Xe=(e,o)=>`${e}.${o}`,_e={paddingTop:new d(a[5],a[4]),marginBottom:new d(a[3],a[3]),labelPaddingLeft:new d(a[3],a[4]),buttonWidth:new d(70,70),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6]),deleteConfirmationTextMarginBottom:new d(a[2],a[0])},G=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:$,isDisabled:P,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:L,style:q,autoFields:R=[],analytics:T,reimbursementId:B,tentativeMerchantName:te,companyMileageConfigInfo:ne,uncategorizedAccounts:oe,removeDuplicateReimbursementForLine:Y,scrollToSection:K,onDuplicateLineClick:F,onRemoveReimbursement:Z,clearTentativeNameForLine:V,allCurrencies:z,accountsHierarchyList:ae,classHierarchyList:le})=>{const U=Re(),ce=wt(),Ee=Mt(),ue=fe.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:ce.currentTenant?.companyId,tab:"reimbursement",entityId:B},se=`dashboard_${ce.currentTenant?.companyId}`,{getValues:De}=nt(),[je,Oe]=S.useState(!1),me=De(Xe($,"reimbursementType"));return t.jsxs(xa,{style:q,windowSize:U,children:[t.jsxs(ga,{hasFile:f,windowSize:U,showDeleteConfirmation:je,children:[t.jsx($a,{windowSize:U,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),je?t.jsxs(wa,{windowSize:U,children:[t.jsx(fa,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ha,{children:[t.jsx(Oi,{label:G.buttons.cancel,onClick:()=>Oe(!1),style:{width:_e.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":H("delete-remi-button",G.buttons.cancel)}),t.jsx(Oi,{label:G.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),V?.(e.lineId??"1"),Oe(!1),Y(e.lineId),Z(p)},style:{width:_e.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":H("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||y==="rejected")?t.jsx(ya,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Oe(!0),"data-testid":H("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ba,{})})}):null]}),w.includes(e.lineId)?t.jsx(cn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(va,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(Sa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":H("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),K(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(Ei,{"data-testid":H("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&B!=null,dashboardTabKey:$e({type:"details",key:me===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:ce.currentTenant?.companyId??ue,companyName:ce.currentTenant?.companyName??ue,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ke("reimbursementType",p,me===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ka,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:P!=null||L?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Xe($,"reimbursementType"),id:`${Xe($,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(Ca,{}),t.jsx(Pi,{isDisabled:P!=null||L?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Xe($,"reimbursementType"),id:`${Xe($,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(Ia,{}),me===G.outOfPocketKey?t.jsx(ma,{lineIndex:p,reimbursementId:B,uncategorizedAccounts:oe,isReimbursementCommentingEnabled:I,isDisabled:P,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?it(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Xe($,"outOfPocket"),accountList:C,classList:m,autoFields:R,merchantList:v,tentativeMerchantName:te,allCurrencies:z,isAddReimbursementDisabled:L,accountsHierarchyList:ae,classHierarchyList:le}):t.jsx(Yo,{lineIndex:p,reimbursementId:B,isReimbursementCommentingEnabled:I,isDisabled:P,mileage:{transactionDate:e.mileage.transactionDate!=null?it(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Xe($,"mileage"),companyMileageConfigInfo:ne,defaultCurrency:l,isAddReimbursementDisabled:L,classHierarchyList:le})]})]})},ha=n.div``,ga=n.div`
167
167
  //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
168
168
  //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
169
169
  display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
@@ -209,7 +209,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
209
209
  display: block;
210
210
  }
211
211
  }
212
- `,Sa=n(Ro)`
212
+ `,Sa=n(Lo)`
213
213
  padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
214
214
  background-color: ${j.alertLight};
215
215
  color: ${j.brandColorGoldDark};
@@ -241,7 +241,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
241
241
  background-color: ${e=>e.theme.colors.grey3};
242
242
  min-height: 1px;
243
243
  max-height: 1px;
244
- `,Ta=(e,o)=>`${e}.${o}`,pt={labelWidth:new d(120,160,160),paddingBottom:new d(a[3],a[3]),paddingTop:new d(12,a[3]),marginBottom:new d(12,a[3]),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6])},Dn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:p,style:C})=>{const m=Le(),v=wt(),f=Mt(),l=`dashboard_${v.currentTenant?.companyId}`,k=fe.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=pt.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(Oa,{windowSize:m,children:w.whatFor}),t.jsx(ja,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(pi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ta(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:$=>!!$}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
244
+ `,Ta=(e,o)=>`${e}.${o}`,pt={labelWidth:new d(120,160,160),paddingBottom:new d(a[3],a[3]),paddingTop:new d(12,a[3]),marginBottom:new d(12,a[3]),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6])},Dn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:p,style:C})=>{const m=Re(),v=wt(),f=Mt(),l=`dashboard_${v.currentTenant?.companyId}`,k=fe.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=pt.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(Oa,{windowSize:m,children:w.whatFor}),t.jsx(ja,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(pi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ta(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:$=>!!$}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
245
245
  display: flex;
246
246
  flex-direction: column;
247
247
  padding-top: ${e=>pt.paddingTop.valuePx(e.windowSize)};
@@ -258,9 +258,9 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
258
258
  `,Oa=n(Ft)`
259
259
  color: ${e=>e.theme.colors.primary};
260
260
  margin-bottom: ${e=>pt.marginBottom.valuePx(e.windowSize)};
261
- `,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,a[4]),marginBottom:new d(a[5],a[4]),paymentToMarginBottom:new d(12,a[3]),totalMarginBottom:new d(a[3],a[3]),reimbursementSectionLeftMargin:new d(a[3],a[6]),reimbursementSectionRightMargin:new d(a[3],a[8]),invoiceSectionLeftMargin:new d(a[3],a[8]),invoiceSectionRightMargin:new d(a[3],a[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6])},Pa={total:new gi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:_},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:jt}}}=fe.getLocalizedStrings(),jn=e=>{let o=0,r=jt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??jt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??jt}return(e.homeCurrencyConversions?.currencyCode??jt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ra=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:$,uploadInvoiceEndPoint:P,accountList:I,classList:R,merchantList:H,remiStage:L,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:te,totalAmount:ne,showTotalAmountLoader:oe,totalNumberOfLines:Y,defaultCurrency:K,bankAccounts:F,fileRequiredLineIds:Z,isAddReimbursementDisabled:V,duplicateLineByLineId:z,remiStatus:ae,file:le,uncategorizedAccounts:U,reportTitle:ce,recommendationFetchState:Ee,tentativeMerchantName:ue,paymentTo:ge,analytics:se,companyMileageConfigInfo:De,loggedInUserDepartmentId:je,isSignedInUserReimbursementCreator:Oe,setShowBankAccountPage:me,setRefByLineId:Pe,setCurrentLineIdForUpload:pe,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ee,scrollToSection:ot,onRemoveReimbursement:at,onAddReimbursement:Ne,clearTentativeNameForLine:Re,onReplaceClick:Ye,onDeleteBankAccount:Ae,updateInvoiceUploadFetchState:qe,removeFileFromLine:He,allCurrencies:Ze,accountsHierarchyList:Je,classHierarchyList:de})=>{const{formState:{errors:rt}}=nt(),lt=S.useRef(null);S.useEffect(()=>(Pe(O=>({...O,[`L${s.lineId}`]:lt.current})),()=>{Pe(O=>({...O,[`L${s.lineId}`]:null}))}),[s.lineId,Pe]);const J=Le(),ze=L==="draft"?_.newReimbursementTitle:_.editReimbursementTitle,N=E.largeLabelWidth.value(J),we=O=>O.outOfPocket.account.selectedOption==null&&(O.outOfPocket.amount==null||O.outOfPocket.amount.amount==0)&&(O.outOfPocket.class.selectedOption==null||O.outOfPocket.class.selectedOption===je)&&(O.outOfPocket.memo===""||O.outOfPocket.memo==null)&&O.outOfPocket.merchant.selectedOption==null&&O.outOfPocket.transactionDate==null,st=F.map(O=>O.bankAccountId),St=s.reimbursementType===_.outOfPocketKey&&jn(s)>=75&&le==null;return t.jsxs(Ja,{ref:k,windowSize:J,children:[t.jsx(Xa,{ref:O=>{O!=null&&(lt.current=O)},windowSize:J,bottomSeperator:Y!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:St?_.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:$,entityId:V?"":void 0,file:le,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(J):E.itemHeight.valuePx(J),margin:J==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:qe,onInvoiceUpload:O=>{s.reimbursementType===_.outOfPocketKey&&!we(s)?(pe(Number(s.lineId)),Ge(O),Ye?.()):ee(O,Number(s.lineId),!0)},dropFilePlaceholder:{upload:_.dropReceipt.upload,receipt:_.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!V,pdfTitle:Y>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{qe?.("In-Progress"),setTimeout(()=>He?.(Number(s.lineId)))},onReplaceClick:()=>{pe(Number(s.lineId)),Ye?.()},allowMultiFiles:Y===l+1,type:"reimbursement"})}),t.jsxs(Za,{windowSize:J,children:[l===0&&J!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{children:ze}),t.jsx(Qa,{children:t.jsx(Io,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(za,{children:[t.jsx(La,{}),t.jsx(Na,{children:_.banner})]}),m&&t.jsxs(Ba,{size:J,children:[t.jsx(Aa,{}),t.jsxs(Fa,{children:[t.jsx(Ma,{children:_.thereSeems}),t.jsx(Ea,{children:_.pleaseFind})]})]}),t.jsx(Dn,{isReimbursementCommentingEnabled:B,sectionId:zt,reportTitle:ce,reimbursementId:r})]}):null,t.jsx(pa,{analytics:se,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${fi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:R,merchantList:H,autoFields:s.lineId!=null?T[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:at,hasMultipleLineItems:Y>1,clearTentativeNameForLine:Re,tentativeMerchantName:ue,hasFile:le!=null,companyMileageConfigInfo:De,defaultCurrency:K,remiStage:L,remiStatus:ae,fileRequiredLineIds:Z,allCurrencies:Ze,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:V,accountsHierarchyList:Je,classHierarchyList:de,duplicateLineDetails:z[s.lineId],removeDuplicateReimbursementForLine:h}),Y!==1&&Y===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(_a,{windowSize:J,children:[t.jsx(Va,{children:_.total}),oe?t.jsx(qa,{windowSize:J,children:t.jsx(Ha,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ne,"USD","$"),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]}),t.jsxs(Ga,{windowSize:J,onClick:()=>{V===!1&&Ne()},isDisabled:V,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addReimbursement})]}),Oe?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{windowSize:J,children:_.receivePaymentTo}),t.jsx(Ka,{windowSize:J,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:_.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(_.yourBankAccount),showValueEyeIcon:!V,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ae,getTooltipInfo:O=>On(F,O),onClickCreateBankAccount:()=>me(!0),getLabelForId:O=>Rn(F,O),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:V?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:st},registerOptions:{required:!0,validate:O=>!!O.selectedOption}},isFunctional:!0})}),t.jsxs(Ya,{shouldDisplay:F.length===0,windowSize:J,hasError:Te(rt,bt),onClick:()=>{V===!1&&me(!0)},isDisabled:V,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${_.emptyValue}
261
+ `,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,a[4]),marginBottom:new d(a[5],a[4]),paymentToMarginBottom:new d(12,a[3]),totalMarginBottom:new d(a[3],a[3]),reimbursementSectionLeftMargin:new d(a[3],a[6]),reimbursementSectionRightMargin:new d(a[3],a[8]),invoiceSectionLeftMargin:new d(a[3],a[8]),invoiceSectionRightMargin:new d(a[3],a[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6])},Pa={total:new gi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:_},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:jt}}}=fe.getLocalizedStrings(),jn=e=>{let o=0,r=jt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??jt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??jt}return(e.homeCurrencyConversions?.currencyCode??jt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},La=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:$,uploadInvoiceEndPoint:P,accountList:I,classList:L,merchantList:q,remiStage:R,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:te,totalAmount:ne,showTotalAmountLoader:oe,totalNumberOfLines:Y,defaultCurrency:K,bankAccounts:F,fileRequiredLineIds:Z,isAddReimbursementDisabled:V,duplicateLineByLineId:z,remiStatus:ae,file:le,uncategorizedAccounts:U,reportTitle:ce,recommendationFetchState:Ee,tentativeMerchantName:ue,paymentTo:ge,analytics:se,companyMileageConfigInfo:De,loggedInUserDepartmentId:je,isSignedInUserReimbursementCreator:Oe,setShowBankAccountPage:me,setRefByLineId:Pe,setCurrentLineIdForUpload:pe,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ee,scrollToSection:ot,onRemoveReimbursement:at,onAddReimbursement:Ne,clearTentativeNameForLine:Le,onReplaceClick:Ye,onDeleteBankAccount:Ae,updateInvoiceUploadFetchState:He,removeFileFromLine:qe,allCurrencies:Ze,accountsHierarchyList:Je,classHierarchyList:de})=>{const{formState:{errors:rt}}=nt(),lt=S.useRef(null);S.useEffect(()=>(Pe(O=>({...O,[`L${s.lineId}`]:lt.current})),()=>{Pe(O=>({...O,[`L${s.lineId}`]:null}))}),[s.lineId,Pe]);const J=Re(),ze=R==="draft"?_.newReimbursementTitle:_.editReimbursementTitle,N=E.largeLabelWidth.value(J),we=O=>O.outOfPocket.account.selectedOption==null&&(O.outOfPocket.amount==null||O.outOfPocket.amount.amount==0)&&(O.outOfPocket.class.selectedOption==null||O.outOfPocket.class.selectedOption===je)&&(O.outOfPocket.memo===""||O.outOfPocket.memo==null)&&O.outOfPocket.merchant.selectedOption==null&&O.outOfPocket.transactionDate==null,st=F.map(O=>O.bankAccountId),St=s.reimbursementType===_.outOfPocketKey&&jn(s)>=75&&le==null;return t.jsxs(Ja,{ref:k,windowSize:J,children:[t.jsx(Qa,{ref:O=>{O!=null&&(lt.current=O)},windowSize:J,bottomSeperator:Y!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:St?_.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:$,entityId:V?"":void 0,file:le,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(J):E.itemHeight.valuePx(J),margin:J==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:He,onInvoiceUpload:O=>{s.reimbursementType===_.outOfPocketKey&&!we(s)?(pe(Number(s.lineId)),Ge(O),Ye?.()):ee(O,Number(s.lineId),!0)},dropFilePlaceholder:{upload:_.dropReceipt.upload,receipt:_.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!V,pdfTitle:Y>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{He?.("In-Progress"),setTimeout(()=>qe?.(Number(s.lineId)))},onReplaceClick:()=>{pe(Number(s.lineId)),Ye?.()},allowMultiFiles:Y===l+1,type:"reimbursement"})}),t.jsxs(Za,{windowSize:J,children:[l===0&&J!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{children:ze}),t.jsx(Xa,{children:t.jsx(Io,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(za,{children:[t.jsx(Ra,{}),t.jsx(Na,{children:_.banner})]}),m&&t.jsxs(Ba,{size:J,children:[t.jsx(Aa,{}),t.jsxs(Fa,{children:[t.jsx(Ma,{children:_.thereSeems}),t.jsx(Ea,{children:_.pleaseFind})]})]}),t.jsx(Dn,{isReimbursementCommentingEnabled:B,sectionId:zt,reportTitle:ce,reimbursementId:r})]}):null,t.jsx(pa,{analytics:se,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${fi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:L,merchantList:q,autoFields:s.lineId!=null?T[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:at,hasMultipleLineItems:Y>1,clearTentativeNameForLine:Le,tentativeMerchantName:ue,hasFile:le!=null,companyMileageConfigInfo:De,defaultCurrency:K,remiStage:R,remiStatus:ae,fileRequiredLineIds:Z,allCurrencies:Ze,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:V,accountsHierarchyList:Je,classHierarchyList:de,duplicateLineDetails:z[s.lineId],removeDuplicateReimbursementForLine:h}),Y!==1&&Y===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(_a,{windowSize:J,children:[t.jsx(Va,{children:_.total}),oe?t.jsx(Ha,{windowSize:J,children:t.jsx(qa,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ne,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Ga,{windowSize:J,onClick:()=>{V===!1&&Ne()},isDisabled:V,"data-testid":H("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addReimbursement})]}),Oe?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{windowSize:J,children:_.receivePaymentTo}),t.jsx(Ka,{windowSize:J,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:_.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(_.yourBankAccount),showValueEyeIcon:!V,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ae,getTooltipInfo:O=>On(F,O),onClickCreateBankAccount:()=>me(!0),getLabelForId:O=>Ln(F,O),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:V?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:st},registerOptions:{required:!0,validate:O=>!!O.selectedOption}},isFunctional:!0})}),t.jsxs(Ya,{shouldDisplay:F.length===0,windowSize:J,hasError:Te(rt,bt),onClick:()=>{V===!1&&me(!0)},isDisabled:V,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${_.emptyValue}
262
262
  ${Dt.bankAccountNumber} ${_.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??_.emptyValue}, ${r.bankName??_.emptyValue}
263
- ${Dt.bankAccountNumber} ${r.bankAccountNumber??_.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Rn=(e,o)=>{const r=Pn(e,o);return r==null?_.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${_.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:_.selectBankAccount},La=n(mi)`
263
+ ${Dt.bankAccountNumber} ${r.bankAccountNumber??_.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Pn(e,o);return r==null?_.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${_.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:_.selectBankAccount},Ra=n(mi)`
264
264
  color: ${e=>e.theme.colors.primary};
265
265
  width: ${i.sp3};
266
266
  height: ${i.sp3};
@@ -325,13 +325,13 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
325
325
  display: flex;
326
326
  width: 176px;
327
327
  color: ${e=>e.theme.colors.primary};
328
- `,qa=n(fn)`
328
+ `,Ha=n(fn)`
329
329
  display: flex;
330
330
  width: calc(100% - 176px);
331
331
  justify-content: flex-end;
332
332
  color: ${e=>e.theme.colors.primary};
333
333
  ${e=>`${Pa.total.style(e.windowSize)}`};
334
- `,Ha=n.div`
334
+ `,qa=n.div`
335
335
  padding-right: ${i.sp3};
336
336
  height: 30px;
337
337
  display: flex;
@@ -395,7 +395,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
395
395
  display: flex;
396
396
  width: 100%;
397
397
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
398
- `,Xa=n.div`
398
+ `,Qa=n.div`
399
399
  height: 100%;
400
400
  background: ${e=>e.theme.colors.grey3};
401
401
  border-radius: ${i.sp2};
@@ -405,12 +405,12 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
405
405
  visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
406
406
  margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
407
407
  margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
408
- `,Qa=n.div`
408
+ `,Xa=n.div`
409
409
  padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
410
- `,er={total:new gi("largeMedium","h6Medium")},X={largeLabelWidth:new d(120,120,220),marginBottom:new d(a[5],a[4]),addBankAccountMarginBottom:new d(a[5],a[5]),marginTop:new d(a[0],78),paymentToMarginTop:new d(0,a[4]),totalMarginBottom:new d(a[3],a[3]),rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),paymentToMarginBottom:new d(12,a[3])},et=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:$,currencyConversionStatus:P,setShowSkipAutoFill:I,setShowBankAccountPage:R,removeDuplicateReimbursementForLine:H,onReceiptsUpload:L,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:te,removeFileFromLine:ne,onReplaceClick:oe,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,onDeleteBankAccount:F,uncategorizedAccounts:Z,isSignedInUserReimbursementCreator:V,duplicateLineByLineId:z,showTotalAmountLoader:ae,scrollContainerRef:le})=>{const{control:U,formState:{errors:ce}}=nt(),{fields:Ee,append:ue,remove:ge}=fo({name:fi,control:U}),se=Ee,De=S.useRef(null),je=N=>{setTimeout(()=>{ge(N)})},{tentativeMerchantNameByLineId:Oe,remiStage:me,remiStatus:Pe}=e,pe=!V||me==="pending_approval"&&Pe!=="rejected"&&o||me==="pending_approval"&&Pe==="rejected",ve=pe?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Le(),ee=X.largeLabelWidth.value(h),ot=e.whatForSection.reportTitle,at=e.accountList.accounts,Ne=e.accountsHierarchyList,Re=e.classHierarchyList,Ye=e.classList.classes,Ae=e.merchantList.merchants,qe=e.addRemiAutoFieldsByLineId,He=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ze=()=>{const N=se[se.length-1],we=Ln(se.length,Number(N.lineId)>He?String(Number(N.lineId)+1):String(He+1),Ne,Re,Ae,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ue(we,{shouldFocus:!1})}),T(Number(we.lineId)),I(!0),setTimeout(()=>zi(De.current,le?.current),50)},[Je,de]=S.useState({}),rt=S.useCallback(N=>{const we=Je[`L${N}`];we!=null&&zi(we,le?.current)},[Je,le]),lt=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,J=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ze=e.reimbursementInfo?.expectedDepositDate??J;return t.jsxs(ar,{windowSize:h,showSkipAutoFill:p,children:[se.map((N,we)=>t.jsx(Ra,{removeDuplicateReimbursementForLine:H,onDuplicateLineClick:B,scrollToSection:rt,setRefByLineId:de,duplicateLineByLineId:z,reimbursementId:$,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Z,progressSectionObj:lt,createDate:e.createTime,paymentDate:ze,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===we||we===0,index:we,reimbursementSectionRef:De,remiStage:me,remiStatus:Pe,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:N,currencyConversionState:P[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:te,onReplaceClick:oe,onReceiptsUpload:L,removeFileFromLine:ne,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:ot,accountList:at,classList:Ye,merchantList:Ae,autoFieldsByLineId:qe,onRemoveReimbursement:je,onAddReimbursement:Ze,totalAmount:v,showTotalAmountLoader:ae,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,tentativeMerchantName:Oe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:R,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:pe,accountsHierarchyList:Ne,classHierarchyList:Re,isSignedInUserReimbursementCreator:V},N.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Xt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(rr,{windowSize:h,children:[t.jsx(lr,{children:et.total}),ae?t.jsx(dr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Li.currencyCode,Li.currencySymbol),integerStyles:Lt.h6Regular.cssObject,decimalStyles:Lt.standardRegular.cssObject})]})})]}),t.jsxs(Xt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(ur,{windowSize:h,onClick:()=>{pe===!1&&Ze()},isDisabled:pe,"data-testid":q("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addReimbursement})]})})]}),t.jsxs(Xt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,V?t.jsxs(Jt,{windowSize:h,children:[t.jsx(sr,{windowSize:h,children:et.receivePaymentTo}),t.jsx(or,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:et.yourBankAccount,width:ee},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(et.yourBankAccount),showValueEyeIcon:!pe,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>R(!0),getLabelForId:N=>Rn(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:pe?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(mr,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{pe===!1&&R(!0)},hasError:Te(ce,bt),isDisabled:pe,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addBankAccount})]})]}):null]})]})]})},Ln=(e,o,r,c,p,C,m,v)=>{const f=ir(r,c,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:et.outOfPocketKey,file:void 0,outOfPocket:f,mileage:nr(c,C,v)}},ir=(e,o,r,c,p,C)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(o,[])),selectedOption:C},account:{allOptions:Ve(Bt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:c.currencyCode??fe.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),nr=(e,o,r)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),or=n.div`
411
- margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
412
- margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
413
- margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
410
+ `,er={total:new gi("largeMedium","h6Medium")},Q={largeLabelWidth:new d(120,120,220),marginBottom:new d(a[5],a[4]),addBankAccountMarginBottom:new d(a[5],a[5]),marginTop:new d(a[0],78),paymentToMarginTop:new d(0,a[4]),totalMarginBottom:new d(a[3],a[3]),rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),paymentToMarginBottom:new d(12,a[3])},et=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:$,currencyConversionStatus:P,setShowSkipAutoFill:I,setShowBankAccountPage:L,removeDuplicateReimbursementForLine:q,onReceiptsUpload:R,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:te,removeFileFromLine:ne,onReplaceClick:oe,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,onDeleteBankAccount:F,uncategorizedAccounts:Z,isSignedInUserReimbursementCreator:V,duplicateLineByLineId:z,showTotalAmountLoader:ae,scrollContainerRef:le})=>{const{control:U,formState:{errors:ce}}=nt(),{fields:Ee,append:ue,remove:ge}=fo({name:fi,control:U}),se=Ee,De=S.useRef(null),je=N=>{setTimeout(()=>{ge(N)})},{tentativeMerchantNameByLineId:Oe,remiStage:me,remiStatus:Pe}=e,pe=!V||me==="pending_approval"&&Pe!=="rejected"&&o||me==="pending_approval"&&Pe==="rejected",ve=pe?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Re(),ee=Q.largeLabelWidth.value(h),ot=e.whatForSection.reportTitle,at=e.accountList.accounts,Ne=e.accountsHierarchyList,Le=e.classHierarchyList,Ye=e.classList.classes,Ae=e.merchantList.merchants,He=e.addRemiAutoFieldsByLineId,qe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ze=()=>{const N=se[se.length-1],we=Rn(se.length,Number(N.lineId)>qe?String(Number(N.lineId)+1):String(qe+1),Ne,Le,Ae,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ue(we,{shouldFocus:!1})}),T(Number(we.lineId)),I(!0),setTimeout(()=>zi(De.current,le?.current),50)},[Je,de]=S.useState({}),rt=S.useCallback(N=>{const we=Je[`L${N}`];we!=null&&zi(we,le?.current)},[Je,le]),lt=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,J=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ze=e.reimbursementInfo?.expectedDepositDate??J;return t.jsxs(ar,{windowSize:h,showSkipAutoFill:p,children:[se.map((N,we)=>t.jsx(La,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:B,scrollToSection:rt,setRefByLineId:de,duplicateLineByLineId:z,reimbursementId:$,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Z,progressSectionObj:lt,createDate:e.createTime,paymentDate:ze,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===we||we===0,index:we,reimbursementSectionRef:De,remiStage:me,remiStatus:Pe,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:N,currencyConversionState:P[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:te,onReplaceClick:oe,onReceiptsUpload:R,removeFileFromLine:ne,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:ot,accountList:at,classList:Ye,merchantList:Ae,autoFieldsByLineId:He,onRemoveReimbursement:je,onAddReimbursement:Ze,totalAmount:v,showTotalAmountLoader:ae,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,tentativeMerchantName:Oe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:L,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:pe,accountsHierarchyList:Ne,classHierarchyList:Le,isSignedInUserReimbursementCreator:V},N.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(rr,{windowSize:h,children:[t.jsx(lr,{children:et.total}),ae?t.jsx(dr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Ri.currencyCode,Ri.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Qt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Jt,{windowSize:h,children:t.jsxs(ur,{windowSize:h,onClick:()=>{pe===!1&&Ze()},isDisabled:pe,"data-testid":H("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addReimbursement})]})})]}),t.jsxs(Qt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,V?t.jsxs(Jt,{windowSize:h,children:[t.jsx(sr,{windowSize:h,children:et.receivePaymentTo}),t.jsx(or,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:et.yourBankAccount,width:ee},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(et.yourBankAccount),showValueEyeIcon:!pe,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>L(!0),getLabelForId:N=>Ln(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:pe?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(mr,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{pe===!1&&L(!0)},hasError:Te(ce,bt),isDisabled:pe,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addBankAccount})]})]}):null]})]})]})},Rn=(e,o,r,c,p,C,m,v)=>{const f=ir(r,c,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:et.outOfPocketKey,file:void 0,outOfPocket:f,mileage:nr(c,C,v)}},ir=(e,o,r,c,p,C)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(o,[])),selectedOption:C},account:{allOptions:Ve(Bt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:c.currencyCode??fe.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),nr=(e,o,r)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),or=n.div`
411
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
412
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
413
+ margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
414
414
  border: 1px solid ${e=>e.theme.colors.grey3};
415
415
  border-radius: ${i.sp2};
416
416
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
@@ -422,7 +422,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
422
422
  `,ar=n.div`
423
423
  display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
424
424
  flex-direction: column;
425
- margin-top: ${e=>X.marginTop.valuePx(e.windowSize)};
425
+ margin-top: ${e=>Q.marginTop.valuePx(e.windowSize)};
426
426
  `,rr=n.div`
427
427
  padding: ${i.sp3};
428
428
  display: flex;
@@ -432,20 +432,20 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
432
432
  border: 1px solid ${e=>e.theme.colors.grey3};
433
433
  border-radius: ${i.sp2};
434
434
  color: ${e=>e.theme.colors.hero};
435
- margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
436
- margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
437
- margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
438
- margin-bottom: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
435
+ margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
436
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
437
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
438
+ margin-bottom: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
439
439
  `,lr=n(bn)`
440
440
  display: flex;
441
441
  width: 176px;
442
442
  color: ${e=>e.theme.colors.primary};
443
443
  `,sr=n(Ft)`
444
444
  color: ${e=>e.theme.colors.primary};
445
- margin-top: ${e=>X.paymentToMarginTop.valuePx(e.windowSize)};
446
- margin-bottom: ${e=>X.paymentToMarginBottom.valuePx(e.windowSize)};
447
- margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
448
- margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
445
+ margin-top: ${e=>Q.paymentToMarginTop.valuePx(e.windowSize)};
446
+ margin-bottom: ${e=>Q.paymentToMarginBottom.valuePx(e.windowSize)};
447
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
448
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
449
449
  `,dr=n(fn)`
450
450
  display: flex;
451
451
  width: calc(100% - 176px);
@@ -473,10 +473,10 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
473
473
  border: 1px solid
474
474
  ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
475
475
  }
476
- margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
477
- margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
478
- margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
479
- margin-bottom: ${e=>X.marginBottom.valuePx(e.windowSize)};
476
+ margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
477
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
478
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
479
+ margin-bottom: ${e=>Q.marginBottom.valuePx(e.windowSize)};
480
480
  `,mr=n.div`
481
481
  padding: ${i.sp3};
482
482
  display: ${e=>e.shouldDisplay?"flex":"none"};
@@ -492,19 +492,19 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
492
492
  border: 1px solid
493
493
  ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
494
494
  }
495
- margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
496
- margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
497
- margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
495
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
496
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
497
+ margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
498
498
  `,Ui=n(Et)`
499
499
  color: inherit;
500
500
  `,_i=n(wn)`
501
501
  margin-right: ${i.sp2};
502
502
  width: ${i.sp3};
503
503
  height: ${i.sp3};
504
- `,Xt=n.div`
504
+ `,Qt=n.div`
505
505
  display: flex;
506
506
  width: 100%;
507
- `,Fe={buttonWidth:new d(140,140),paddingLeft:new d(a[3],a[6]),paddingRight:new d(a[3],a[8]),subTitleMarginbottom:new d(a[2],a[3]),orSeperatorTopBottomMargin:new d(a[6],44),iconWidthHeight:new d(20,a[4])},Vi="userBankAccountPage",Rt="bankAccountSection",pr=e=>({[Rt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),qi=e=>`${e}_form`,hr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Le(),$=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:S.useMemo(()=>pr(C),[C])}),P=S.useCallback(K=>{p?.(K),w()},[w,p]),I=r.link_account_no_microdeposit,{open:R}=xo({token:I.linkToken??null,onSuccess:P});S.useEffect(()=>{(it(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[H,L]=S.useState(!1),T=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=fe.getLocalizedStrings().common.footer,te={onOkClick:()=>{L(!1),$.reset(),w()},onCancelClick:()=>{L(!1)}},ne=async(K,F)=>{const Z=F[Rt].bankRoutingNumber;l(F),K===`${Rt}.bankRoutingNumber`&&Z?.length===9&&To.test(Z)===!0&&k?.(Z)};S.useEffect(()=>{const K=$.watch((F,{name:Z})=>{Z!=null&&F!=null&&So(()=>ne(Z,F))});return()=>{K.unsubscribe()}}),S.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const oe=$.handleSubmit(K=>{m.fetchState!=="In-Progress"&&f()}),Y=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(gr,{children:[t.jsxs($r,{windowSize:y,children:[H===!0?t.jsx(di,{titleComponent:t.jsx(dn,{children:T.discardTitle}),descriptionComponent:t.jsx(sn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:te}):null,t.jsx(Vo,{header:T.addBankAccount,isDirty:$.formState.isDirty,onBackClick:w,setShowConfirmationPopup:L}),t.jsx(yr,{}),t.jsxs(vr,{size:y,children:[t.jsx($o,{onClick:()=>{$.reset(),R()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(vo,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Y},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(br,{windowSize:y,children:[t.jsx(fr,{}),t.jsx(xr,{children:t.jsx(Sr,{children:T.or})})]}),t.jsx(wr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(Cr,{size:y,children:t.jsx(ln,{...$,children:t.jsxs("form",{id:qi(Vi),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(qo,{warningText:T.accountExistWarning}):null,t.jsx(_o,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Rt})]})})})]}),t.jsx(un,{formId:qi(Vi),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:B.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{$.formState.isDirty?L(!0):(L(!1),$.reset(),w())}}})]})},gr=n.div`
507
+ `,Fe={buttonWidth:new d(140,140),paddingLeft:new d(a[3],a[6]),paddingRight:new d(a[3],a[8]),subTitleMarginbottom:new d(a[2],a[3]),orSeperatorTopBottomMargin:new d(a[6],44),iconWidthHeight:new d(20,a[4])},Vi="userBankAccountPage",Lt="bankAccountSection",pr=e=>({[Lt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,hr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Re(),$=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:S.useMemo(()=>pr(C),[C])}),P=S.useCallback(K=>{p?.(K),w()},[w,p]),I=r.link_account_no_microdeposit,{open:L}=xo({token:I.linkToken??null,onSuccess:P});S.useEffect(()=>{(it(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[q,R]=S.useState(!1),T=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=fe.getLocalizedStrings().common.footer,te={onOkClick:()=>{R(!1),$.reset(),w()},onCancelClick:()=>{R(!1)}},ne=async(K,F)=>{const Z=F[Lt].bankRoutingNumber;l(F),K===`${Lt}.bankRoutingNumber`&&Z?.length===9&&To.test(Z)===!0&&k?.(Z)};S.useEffect(()=>{const K=$.watch((F,{name:Z})=>{Z!=null&&F!=null&&So(()=>ne(Z,F))});return()=>{K.unsubscribe()}}),S.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const oe=$.handleSubmit(K=>{m.fetchState!=="In-Progress"&&f()}),Y=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(gr,{children:[t.jsxs($r,{windowSize:y,children:[q===!0?t.jsx(di,{titleComponent:t.jsx(dn,{children:T.discardTitle}),descriptionComponent:t.jsx(sn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:te}):null,t.jsx(Vo,{header:T.addBankAccount,isDirty:$.formState.isDirty,onBackClick:w,setShowConfirmationPopup:R}),t.jsx(yr,{}),t.jsxs(vr,{size:y,children:[t.jsx($o,{onClick:()=>{$.reset(),L()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(vo,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Y},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(br,{windowSize:y,children:[t.jsx(fr,{}),t.jsx(xr,{children:t.jsx(Sr,{children:T.or})})]}),t.jsx(wr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(Cr,{size:y,children:t.jsx(ln,{...$,children:t.jsxs("form",{id:Hi(Vi),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Ho,{warningText:T.accountExistWarning}):null,t.jsx(_o,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Lt})]})})})]}),t.jsx(un,{formId:Hi(Vi),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:B.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{$.formState.isDirty?R(!0):(R(!1),$.reset(),w())}}})]})},gr=n.div`
508
508
  display: flex;
509
509
  flex-direction: column;
510
510
  width: 100%;
@@ -547,7 +547,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
547
547
  padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
548
548
  padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
549
549
  padding-bottom: ${i.sp3};
550
- `,Ie={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new d(a[5],a[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(a[2],12),styledCloseIconRight:new d(a[3],a[8])},{footer:Hi}=fe.getLocalizedStrings().common,be=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Ki=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Yi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Yi,{})}},kr=e=>{switch(e){case"Not-Started":return be.detectDuplicates;case"In-Progress":return be.detectingDuplicates;case"Completed":return be.noDuplicatesFound;default:return be.detectDuplicates}},Ir=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Le(),[s,y]=kt.useState(!0),$=li(e),P=li(o);kt.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),kt.useEffect(()=>{$==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,$,p,l]),kt.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!r&&v()},[P,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Tr,{size:w}):null,t.jsx(di,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),ho())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Hi.resubmit:be.primaryButtonText,secondaryButtonText:I?Hi.cancel:be.secondaryButtonText,primaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),secondaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),descriptionComponent:t.jsx(Or,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(ei,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?be.reviewingExpenses:be.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ji,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:o==="Error"?be.failedToDetect:`${c} ${be.duplicateExpensesFound}`})]}):t.jsxs(ei,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Ki,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:kr(o)})]}),e==="Error"?t.jsxs(Ji,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:be.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(ei,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Ki,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?be.submitReport:be.submittingReport})]})]})}),titleComponent:t.jsx(jr,{size:w,children:be.title}),showFooter:r||I,containerStyle:{width:Ie.containerWidth.value(w),maxWidth:"unset"}})]})},Tr=n(pn)`
550
+ `,Ie={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new d(a[5],a[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(a[2],12),styledCloseIconRight:new d(a[3],a[8])},{footer:qi}=fe.getLocalizedStrings().common,be=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Ki=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Yi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Yi,{})}},kr=e=>{switch(e){case"Not-Started":return be.detectDuplicates;case"In-Progress":return be.detectingDuplicates;case"Completed":return be.noDuplicatesFound;default:return be.detectDuplicates}},Ir=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Re(),[s,y]=kt.useState(!0),$=li(e),P=li(o);kt.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),kt.useEffect(()=>{$==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,$,p,l]),kt.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!r&&v()},[P,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Tr,{size:w}):null,t.jsx(di,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),ho())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?qi.resubmit:be.primaryButtonText,secondaryButtonText:I?qi.cancel:be.secondaryButtonText,primaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),secondaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),descriptionComponent:t.jsx(Or,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(ei,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Xt,{isDisabled:!1,children:s?be.reviewingExpenses:be.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ji,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:o==="Error"?be.failedToDetect:`${c} ${be.duplicateExpensesFound}`})]}):t.jsxs(ei,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Ki,{fetchState:o}),t.jsx(Xt,{isDisabled:o==="Not-Started",children:kr(o)})]}),e==="Error"?t.jsxs(Ji,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:be.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(ei,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Ki,{fetchState:e}),t.jsx(Xt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?be.submitReport:be.submittingReport})]})]})}),titleComponent:t.jsx(jr,{size:w,children:be.title}),showFooter:r||I,containerStyle:{width:Ie.containerWidth.value(w),maxWidth:"unset"}})]})},Tr=n(pn)`
551
551
  width: ${i.sp4};
552
552
  height: ${i.sp4};
553
553
  color: ${e=>e.theme.colors.hero};
@@ -564,12 +564,12 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
564
564
  height: ${i.sp4};
565
565
  min-width: ${i.sp4};
566
566
  color: ${j.brandColorGoldDark};
567
- `,Yi=n(Ho)`
567
+ `,Yi=n(qo)`
568
568
  width: ${i.sp3};
569
569
  height: ${i.sp3};
570
570
  min-width: ${i.sp3};
571
571
  color: ${e=>e.theme.colors.grey3};
572
- `,Qt=n.div`
572
+ `,Xt=n.div`
573
573
  color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
574
574
  text-align: left;
575
575
  `,Zi=n.div`
@@ -616,7 +616,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
616
616
  height: ${i.sp4};
617
617
  min-width: ${i.sp4};
618
618
  color: ${j.success};
619
- `,Q={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Xi}},common:{currency:{currencyCode:We,currencySymbol:Ot},texts:{comments:Pr},strings:{empty:Rr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:Qi}=fe.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Mr=(e,o,r,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:Ve(Ke(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:Ve(Bt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ve(Ke(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ti=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Mr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Ln(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[zt]:{reportTitle:e.whatForSection.reportTitle},[fi]:c,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ii=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+r(p),0)},ni=(e,o,r,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(P=>P.classId===l.mileage.class.selectedOption),w=m.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=v.find(P=>P.classId===l.outOfPocket.class.selectedOption),y=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),$=C.find(P=>P.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?it(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??$,currencySymbol:l.mileage.amount?.currencySymbol??$,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??$,currencySymbol:$,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},El=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,bankAccountToCreate:P,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onSaveBankAccount:L,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:ne,onDuplicateLineClick:oe,onExistingMerchantChange:Y,onNewMerchantChange:K,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:V,discardReimbursementDetailsFromLocalStore:z,onReimbursementDetailsChanged:ae,updateReimbursementType:le,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ce,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:ue,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:De,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,onAddNewRule:me,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge,initialOpenThreadRequest:h})=>{const ee=S.useRef(null),ot=S.useRef(null),at=li(e.uploadStatus),Ne=ft(),Re=wt(),[Ye,Ae]=S.useState(!1),[qe,He]=S.useState(!1),[Ze,Je]=S.useState("save"),[de,rt]=S.useState(ii(e.lineDetailSection,e.currencyConversionStatus)),[lt,J]=S.useState(!1),[ze,N]=S.useState(null),[we,st]=S.useState(!1),St=`dashboard_${Re.currentTenant?.companyId}`,O=an({mode:"all",reValidateMode:"onChange",defaultValues:S.useMemo(()=>ti(e,r,s),[e,r,s]),values:S.useMemo(()=>ti(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:zn,dirtyFields:Bn}=O.formState,Mn=async(g,D)=>{const{lineInfo:u}=D,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ve(Ke(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??Ve(Bt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??We}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??Ve(Ke(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??Ot},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=c?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot}}if(M?.currency.selectedOption!==We)J(!0),qn(u[x].lineId,We);else{const xe={};u.forEach(Yt=>{xe[Yt.lineId]={lineId:Yt.lineId,homeCurrencyConversions:Yt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot};const ki=ii(xe,e.currencyConversionStatus);de!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const Ct=ni({...D,lineInfo:u},e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ae?.(Ct),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Y(W,M):K(W,M)}},wi=S.useMemo(()=>Ii((g,D)=>Mn(g,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);S.useEffect(()=>{const g=O.watch((D,{name:u})=>{u!=null&&D!=null&&wi(u,D)});return()=>{g.unsubscribe()}},[wi,O]),S.useEffect(()=>{const g=Eo(Object.values(e.currencyConversionStatus)),D=g.fetchState==="In-Progress"||g.fetchState==="Error";J(D)},[e.currencyConversionStatus]),S.useEffect(()=>{for(const D in e.currencyConversionStatus){const u=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??We,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??Ot},D,f)}const g=ii(e.lineDetailSection,e.currencyConversionStatus);de!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),S.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(z(f),ce?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,z,ce]);const A=Le(),[Be,ht]=S.useState(f==null),[gt,Fn]=S.useState(1),[En,Nt]=S.useState(!1),[Nn,Wn]=S.useState(""),[Wt,Un]=S.useState(null),[_n,dt]=S.useState(!1),[Vn,xi]=S.useState(!1),[Ut,_t]=S.useState([]),[ye,$t]=S.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),qn=S.useRef(Ii((g,D)=>De(g,D),500,{trailing:!0})).current;S.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(O.reset(ti(e,r,s),{keepDefaultValues:!0}),Ae(!1),ht(!1)):e.uploadStatus==="Error"&&Ae(!1))},[at,e.uploadStatus,O,e,Ye,Ae,Be,r,s,v]),S.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&Ae(!0)},[e.uploadStatus,Ae,Be]);const Vt=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(dt(!1),ye.primaryButtonText===b.buttons.discard)z(f),e.remiStage==="draft"?ce?.():Ee?.();else if(ye.primaryButtonText===b.buttons.delete)ye.title===b.deleteBankAccountTitle?ve?.(Nn):ue?.();else if(ye.primaryButtonText===b.buttons.yes&&Wt!=null){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!0)}},onCancelClick:()=>{if(dt(!1),ye.secondaryButtonText===b.buttons.no){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!1)}}},Si=()=>{zn||bo(Bn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),dt(!0)):(z(f),ce?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Gn=g=>{Wn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Yn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),dt(!0)},Zn=()=>{let g=!0;const D=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(D.push(u.lineId),g=!1)}),_t(D),g},$i=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Si();else{Je("save");const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D);const u=D.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):O.trigger(`${zt}.reportTitle`,{shouldFocus:!0})}};let qt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(qt=!0)});let vi=[];if(e.remiId==null){const g=de??0;g>0&&(vi=e.approvalRules.allApprovalRules?.filter(D=>{const u=D.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return D}else if(u.min.amount<g)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Jn=g=>{const D=Zn();return O.handleSubmit(()=>{D&&(Je("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Qi.analytics.MMMDashDDDashYYYYFormat)??bi().format(Qi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,de,f),B(),xi(!0))})(g)},Xn=()=>{const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D),V()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,eo=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,to=e.reimbursementInfo?.expectedDepositDate??eo,io=f!=null&&e.remiStage==="draft",Ci=No(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ci>0,{requestToOpenThread:Kt,setRequestToOpenThread:vt,setOpenThread:Gt}=S.useContext(ao);S.useEffect(()=>{h?.threadId!=null&&h?.companyId!=null&&h?.entityType!=null&&vt(h)},[h,vt]);const{threads:yt,isLoading:Xe}=ro({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);S.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(Gt(Kt.threadId),vt(null))},[Kt,yt,Xe,Gt,vt]);const no=S.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(lo)),[yt,f]).length,oo=(g,D)=>{Gt(D);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){st(!1);return}const Ct=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?le(Ai(b.mileageKey),Ct,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&le(Ai(b.outOfPocketKey),Ct,f),st(!1)};return t.jsx(Er,{ref:ee,children:t.jsx(so,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ot.current??null}},children:t.jsxs(ln,{...O,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Jn(g),children:t.jsxs(hl,{windowSize:A,ref:ot,children:[_n?t.jsx(di,{titleComponent:t.jsx(dn,{children:ye.title}),descriptionComponent:t.jsx(sn,{children:ye.description}),primaryButtonText:ye.primaryButtonText,secondaryButtonText:ye.secondaryButtonText,action:Hn,proceedButtonVariant:ye.title===b.deleteBankAccountTitle||ye.title===b.deleteDraftTitle||ye.title===b.deleteReportTitle||ye.title===b.discardTitle?"danger":"primary",isEditPopup:ye.title===b.deleteBankAccountTitle}):null,Vn?t.jsx(Ir,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:Ci,setShowDuplicatePopup:xi,submitReport:Xn,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,analytics:v}):null,Ye?t.jsx(on,{windowSize:A}):null,Be?t.jsxs(on,{windowSize:A,"data-testid":q("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Jr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,size:A,onClick:()=>ht(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}),t.jsx(Qr,{children:Vt})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Q.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ne.colors.grey4:"unset",padding:A==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:A==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),A!=="small"?t.jsx(Xr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}):null]}):null,t.jsxs(dl,{windowSize:A,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ti,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:ee,backgroundColor:Ne.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Nr,{}):null,t.jsx(Ti,{style:{width:Q.navBarWidth.valuePercentage(A)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Vt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(ul,{children:[C&&f!=null?t.jsxs(ml,{isDisabled:Xe,"data-testid":q("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),N({roomId:St,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),st(!0),v?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(D=>uo(D)),void 0,void 0,"page icon")},children:[t.jsx(co,{count:Xe?void 0:no,isLoading:Xe,style:{left:"12px"}}),t.jsx(pl,{})]}):null,t.jsx(ri,{size:A,onClick:()=>Si(),"data-testid":q("close-nav-bar"),children:t.jsx(ai,{withOverlay:!1,children:t.jsx(oi,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:ee,backgroundColor:Ne.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(sl,{children:Vt}),t.jsx(mo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:to,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),qt&&t.jsxs(il,{children:[t.jsx(tl,{}),t.jsx(nl,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:A==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Xi.duplicateWarning.title,description:Xi.duplicateWarning.description}):Ht?t.jsxs(ol,{size:A,children:[t.jsx(Vr,{}),t.jsxs(rl,{children:[t.jsx(al,{children:b.thereSeems}),t.jsx(ll,{children:b.pleaseFind})]})]}):null,t.jsx(Dn,{isReimbursementCommentingEnabled:C,sectionId:zt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:oe,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:qt,totalAmount:de,removeFileFromLine:ge,onReplaceClick:Yn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Nt,bankAccounts:s,onDeleteBankAccount:Gn,analytics:v,fileRequiredLineIds:Ut,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,showTotalAmountLoader:lt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ne,scrollContainerRef:ee}),t.jsxs(gl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(yl,{windowSize:A,children:t.jsxs(bl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(Di,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:me,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Di,{amount:de??0,activities:vi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(fl,{}),t.jsxs(el,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(Wr,{windowSize:A,onClick:g=>{g.stopPropagation(),qe===!0&&He(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?b.buttons.discard:b.buttons.discardChanges:A==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ze==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:$i,style:{width:Q.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Fr(y,m,e,A),isDisabled:!y,style:{width:y?Q.footerButtonWidth.value(A):"auto"},type:y?"submit":"button",onClick:y?()=>null:$i,isLoading:!y&&Ze==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ur,{children:t.jsxs(Gr,{windowSize:A,children:[qe?t.jsx(mn,{onClickAway:()=>He(!1),children:t.jsx(Kr,{windowSize:A,"data-testid":q("remi-other-actions-container"),children:t.jsx(Yr,{onClick:Kn,"data-testid":q("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:A,children:io===!0?t.jsx(qr,{windowSize:A,"data-testid":q("more-details-button"),children:t.jsx(_r,{onClick:()=>He(!qe)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Fo,{id:St,children:t.jsx(po,{isDrawerOpen:we,allowComposer:!0,drawerTitle:Pr,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:ze?.companyId??Rr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:ze?{companyName:ze.companyName,companyId:ze.companyId,entityId:ze.entityId,entityType:ze.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(g,D)=>oo(g,D),onCloseAllThreadsDrawer:()=>st(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ne.colors.background}})}):null]})}),En?t.jsx(Zr,{windowSize:A,children:t.jsx(hr,{bankAccountCreationState:k,setShowBankAccountPage:Nt,plaidConnectionDetails:l,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onSaveHandler:L,bankAccountToCreate:P,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:R,onFetchBankName:H,onBackClick:()=>{Ge(),Nt(!1)}})}):null]})})})},Fr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Er=n.div`
619
+ `,X={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Qi}},common:{currency:{currencyCode:We,currencySymbol:Ot},texts:{comments:Pr},strings:{empty:Lr}},collaboration:{threads:{placeholder:{addANewComment:Rr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:Xi}=fe.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Mr=(e,o,r,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:Ve(Ke(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:Ve(Bt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ve(Ke(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ti=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Mr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Rn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[zt]:{reportTitle:e.whatForSection.reportTitle},[fi]:c,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ii=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+r(p),0)},ni=(e,o,r,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(P=>P.classId===l.mileage.class.selectedOption),w=m.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=v.find(P=>P.classId===l.outOfPocket.class.selectedOption),y=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),$=C.find(P=>P.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?it(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??$,currencySymbol:l.mileage.amount?.currencySymbol??$,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??$,currencySymbol:$,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},El=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,bankAccountToCreate:P,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:L,onFetchBankName:q,onSaveBankAccount:R,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:ne,onDuplicateLineClick:oe,onExistingMerchantChange:Y,onNewMerchantChange:K,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:V,discardReimbursementDetailsFromLocalStore:z,onReimbursementDetailsChanged:ae,updateReimbursementType:le,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ce,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:ue,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:De,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,onAddNewRule:me,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge,initialOpenThreadRequest:h})=>{const ee=S.useRef(null),ot=S.useRef(null),at=li(e.uploadStatus),Ne=ft(),Le=wt(),[Ye,Ae]=S.useState(!1),[He,qe]=S.useState(!1),[Ze,Je]=S.useState("save"),[de,rt]=S.useState(ii(e.lineDetailSection,e.currencyConversionStatus)),[lt,J]=S.useState(!1),[ze,N]=S.useState(null),[we,st]=S.useState(!1),St=`dashboard_${Le.currentTenant?.companyId}`,O=an({mode:"all",reValidateMode:"onChange",defaultValues:S.useMemo(()=>ti(e,r,s),[e,r,s]),values:S.useMemo(()=>ti(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:zn,dirtyFields:Bn}=O.formState,Mn=async(g,D)=>{const{lineInfo:u}=D,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ve(Ke(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??Ve(Bt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??We}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??Ve(Ke(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??Ot},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=c?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot}}if(M?.currency.selectedOption!==We)J(!0),Hn(u[x].lineId,We);else{const xe={};u.forEach(Yt=>{xe[Yt.lineId]={lineId:Yt.lineId,homeCurrencyConversions:Yt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot};const ki=ii(xe,e.currencyConversionStatus);de!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const Ct=ni({...D,lineInfo:u},e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ae?.(Ct),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Y(W,M):K(W,M)}},wi=S.useMemo(()=>Ii((g,D)=>Mn(g,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);S.useEffect(()=>{const g=O.watch((D,{name:u})=>{u!=null&&D!=null&&wi(u,D)});return()=>{g.unsubscribe()}},[wi,O]),S.useEffect(()=>{const g=Eo(Object.values(e.currencyConversionStatus)),D=g.fetchState==="In-Progress"||g.fetchState==="Error";J(D)},[e.currencyConversionStatus]),S.useEffect(()=>{for(const D in e.currencyConversionStatus){const u=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??We,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??Ot},D,f)}const g=ii(e.lineDetailSection,e.currencyConversionStatus);de!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),S.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(z(f),ce?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,z,ce]);const A=Re(),[Be,ht]=S.useState(f==null),[gt,Fn]=S.useState(1),[En,Nt]=S.useState(!1),[Nn,Wn]=S.useState(""),[Wt,Un]=S.useState(null),[_n,dt]=S.useState(!1),[Vn,xi]=S.useState(!1),[Ut,_t]=S.useState([]),[ye,$t]=S.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Hn=S.useRef(Ii((g,D)=>De(g,D),500,{trailing:!0})).current;S.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(O.reset(ti(e,r,s),{keepDefaultValues:!0}),Ae(!1),ht(!1)):e.uploadStatus==="Error"&&Ae(!1))},[at,e.uploadStatus,O,e,Ye,Ae,Be,r,s,v]),S.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&Ae(!0)},[e.uploadStatus,Ae,Be]);const Vt=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,qn={onOkClick:()=>{if(dt(!1),ye.primaryButtonText===b.buttons.discard)z(f),e.remiStage==="draft"?ce?.():Ee?.();else if(ye.primaryButtonText===b.buttons.delete)ye.title===b.deleteBankAccountTitle?ve?.(Nn):ue?.();else if(ye.primaryButtonText===b.buttons.yes&&Wt!=null){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!0)}},onCancelClick:()=>{if(dt(!1),ye.secondaryButtonText===b.buttons.no){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!1)}}},Si=()=>{zn||bo(Bn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),dt(!0)):(z(f),ce?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Gn=g=>{Wn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Yn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),dt(!0)},Zn=()=>{let g=!0;const D=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(D.push(u.lineId),g=!1)}),_t(D),g},$i=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Si();else{Je("save");const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D);const u=D.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):O.trigger(`${zt}.reportTitle`,{shouldFocus:!0})}};let Ht=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Ht=!0)});let vi=[];if(e.remiId==null){const g=de??0;g>0&&(vi=e.approvalRules.allApprovalRules?.filter(D=>{const u=D.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return D}else if(u.min.amount<g)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Jn=g=>{const D=Zn();return O.handleSubmit(()=>{D&&(Je("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??bi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,de,f),B(),xi(!0))})(g)},Qn=()=>{const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D),V()},Xn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,eo=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,to=e.reimbursementInfo?.expectedDepositDate??eo,io=f!=null&&e.remiStage==="draft",Ci=No(e.duplicateLineByLineId),qt=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ci>0,{requestToOpenThread:Kt,setRequestToOpenThread:vt,setOpenThread:Gt}=S.useContext(ao);S.useEffect(()=>{h?.threadId!=null&&h?.companyId!=null&&h?.entityType!=null&&vt(h)},[h,vt]);const{threads:yt,isLoading:Qe}=ro({application:"dashboard",companyId:Le.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);S.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Qe&&(Gt(Kt.threadId),vt(null))},[Kt,yt,Qe,Gt,vt]);const no=S.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(lo)),[yt,f]).length,oo=(g,D)=>{Gt(D);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){st(!1);return}const Ct=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?le(Ai(b.mileageKey),Ct,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&le(Ai(b.outOfPocketKey),Ct,f),st(!1)};return t.jsx(Er,{ref:ee,children:t.jsx(so,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ot.current??null}},children:t.jsxs(ln,{...O,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Jn(g),children:t.jsxs(hl,{windowSize:A,ref:ot,children:[_n?t.jsx(di,{titleComponent:t.jsx(dn,{children:ye.title}),descriptionComponent:t.jsx(sn,{children:ye.description}),primaryButtonText:ye.primaryButtonText,secondaryButtonText:ye.secondaryButtonText,action:qn,proceedButtonVariant:ye.title===b.deleteBankAccountTitle||ye.title===b.deleteDraftTitle||ye.title===b.deleteReportTitle||ye.title===b.discardTitle?"danger":"primary",isEditPopup:ye.title===b.deleteBankAccountTitle}):null,Vn?t.jsx(Ir,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:qt,numberOfDuplicateLines:Ci,setShowDuplicatePopup:xi,submitReport:Qn,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,analytics:v}):null,Ye?t.jsx(on,{windowSize:A}):null,Be?t.jsxs(on,{windowSize:A,"data-testid":H("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Jr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,size:A,onClick:()=>ht(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}),t.jsx(Xr,{children:Vt})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ne.colors.grey4:"unset",padding:A==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:A==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),A!=="small"?t.jsx(Qr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}):null]}):null,t.jsxs(dl,{windowSize:A,"data-testid":H("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ti,{style:{width:"42%"},"data-testid":H("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":H("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:ee,backgroundColor:Ne.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Nr,{}):null,t.jsx(Ti,{style:{width:X.navBarWidth.valuePercentage(A)},"data-testid":H("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Vt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(ul,{children:[C&&f!=null?t.jsxs(ml,{isDisabled:Qe,"data-testid":H("remi-comment-button"),onClick:Qe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),N({roomId:St,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),st(!0),v?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(D=>uo(D)),void 0,void 0,"page icon")},children:[t.jsx(co,{count:Qe?void 0:no,isLoading:Qe,style:{left:"12px"}}),t.jsx(pl,{})]}):null,t.jsx(ri,{size:A,onClick:()=>Si(),"data-testid":H("close-nav-bar"),children:t.jsx(ai,{withOverlay:!1,children:t.jsx(oi,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:ee,backgroundColor:Ne.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(sl,{children:Vt}),t.jsx(mo,{progressSectionObj:Xn,createDate:e.createTime,paymentDate:to,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Ht&&t.jsxs(il,{children:[t.jsx(tl,{}),t.jsx(nl,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:A==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):qt?t.jsxs(ol,{size:A,children:[t.jsx(Vr,{}),t.jsxs(rl,{children:[t.jsx(al,{children:b.thereSeems}),t.jsx(ll,{children:b.pleaseFind})]})]}):null,t.jsx(Dn,{isReimbursementCommentingEnabled:C,sectionId:zt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:oe,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Ht,totalAmount:de,removeFileFromLine:ge,onReplaceClick:Yn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Nt,bankAccounts:s,onDeleteBankAccount:Gn,analytics:v,fileRequiredLineIds:Ut,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,showTotalAmountLoader:lt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:qt,removeDuplicateReimbursementForLine:ne,scrollContainerRef:ee}),t.jsxs(gl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(yl,{windowSize:A,children:t.jsxs(bl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(Di,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:me,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Di,{amount:de??0,activities:vi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(fl,{}),t.jsxs(el,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(Wr,{windowSize:A,onClick:g=>{g.stopPropagation(),He===!0&&qe(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?b.buttons.discard:b.buttons.discardChanges:A==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ze==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:$i,style:{width:X.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Fr(y,m,e,A),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(A):"auto"},type:y?"submit":"button",onClick:y?()=>null:$i,isLoading:!y&&Ze==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ur,{children:t.jsxs(Gr,{windowSize:A,children:[He?t.jsx(mn,{onClickAway:()=>qe(!1),children:t.jsx(Kr,{windowSize:A,"data-testid":H("remi-other-actions-container"),children:t.jsx(Yr,{onClick:Kn,"data-testid":H("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(qr,{windowSize:A,children:io===!0?t.jsx(Hr,{windowSize:A,"data-testid":H("more-details-button"),children:t.jsx(_r,{onClick:()=>qe(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Fo,{id:St,children:t.jsx(po,{isDrawerOpen:we,allowComposer:!0,drawerTitle:Pr,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:ze?.companyId??Lr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Qe,threadMetadata:ze?{companyName:ze.companyName,companyId:ze.companyId,entityId:ze.entityId,entityType:ze.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Rr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(g,D)=>oo(g,D),onCloseAllThreadsDrawer:()=>st(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ne.colors.background}})}):null]})}),En?t.jsx(Zr,{windowSize:A,children:t.jsx(hr,{bankAccountCreationState:k,setShowBankAccountPage:Nt,plaidConnectionDetails:l,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onSaveHandler:R,bankAccountToCreate:P,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:L,onFetchBankName:q,onBackClick:()=>{Ge(),Nt(!1)}})}):null]})})})},Fr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Er=n.div`
620
620
  position: relative;
621
621
  height: 100vh;
622
622
  overflow-y: scroll;
@@ -631,7 +631,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
631
631
  pointer-events: none;
632
632
  z-index: 3;
633
633
  `,Wr=n.div`
634
- width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
634
+ width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
635
635
  `,Ur=n.div`
636
636
  display: flex;
637
637
  justify-content: flex-end;
@@ -647,7 +647,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
647
647
  width: ${i.sp4};
648
648
  height: ${i.sp4};
649
649
  color: ${j.brandColorGoldDark};
650
- `,qr=n.div`
650
+ `,Hr=n.div`
651
651
  display: flex;
652
652
  margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
653
653
  cursor: pointer;
@@ -655,7 +655,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
655
655
  &:hover {
656
656
  color: ${e=>e.theme.colors.primary};
657
657
  }
658
- `,Hr=n.div`
658
+ `,qr=n.div`
659
659
  display: flex;
660
660
  justify-content: center;
661
661
  align-items: center;
@@ -671,17 +671,17 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
671
671
  padding-top: ${i.sp1};
672
672
  padding-bottom: ${i.sp1};
673
673
  position: absolute;
674
- bottom: ${e=>Q.otherActionsContainerBottom.valuePx(e.windowSize)};
674
+ bottom: ${e=>X.otherActionsContainerBottom.valuePx(e.windowSize)};
675
675
  z-index: 3;
676
676
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
677
677
  border-radius: ${i.sp1};
678
- right: ${e=>Q.right.valuePx(e.windowSize)};
678
+ right: ${e=>X.right.valuePx(e.windowSize)};
679
679
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
680
680
  `,Gr=n.div`
681
681
  width: 100%;
682
682
  justify-content: flex-end;
683
683
  position: ${e=>e.windowSize==="small"?"static":"relative"};
684
- right: ${e=>Q.actionsContainerRight.valuePx(e.windowSize)};
684
+ right: ${e=>X.actionsContainerRight.valuePx(e.windowSize)};
685
685
  height: 100%;
686
686
  display: flex;
687
687
  `,Yr=n(hi)`
@@ -701,7 +701,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
701
701
  height: 100vh;
702
702
  position: fixed;
703
703
  background: ${e=>e.theme.colors.grey4};
704
- width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
704
+ width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
705
705
  right: 0;
706
706
  top: 0;
707
707
  `,Jr=n.div`
@@ -710,9 +710,9 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
710
710
  display: flex;
711
711
  align-items: center;
712
712
  justify-content: end;
713
- `,Xr=n.div`
713
+ `,Qr=n.div`
714
714
  width: 58%;
715
- `,Qr=n(ui)`
715
+ `,Xr=n(ui)`
716
716
  padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
717
717
  background: ${e=>e.theme.colors.grey4};
718
718
  color: ${e=>e.theme.colors.primary};
@@ -744,10 +744,10 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
744
744
  padding: ${i.sp3};
745
745
  border-radius: ${i.sp2};
746
746
  align-items: start;
747
- margin-top: ${e=>Q.duplicateBannerWrapperMarginTop.valuePx(e.size)};
748
- margin-right: ${e=>Q.duplicateBannerWrapperMarginRight.valuePx(e.size)};
749
- margin-bottom: ${e=>Q.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
750
- margin-left: ${e=>Q.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
747
+ margin-top: ${e=>X.duplicateBannerWrapperMarginTop.valuePx(e.size)};
748
+ margin-right: ${e=>X.duplicateBannerWrapperMarginRight.valuePx(e.size)};
749
+ margin-bottom: ${e=>X.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
750
+ margin-left: ${e=>X.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
751
751
  background-color: ${j.alertLight};
752
752
  border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
753
753
  `,al=n(Et)`
@@ -796,7 +796,7 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
796
796
  color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
797
797
  }
798
798
  `,ul=n.div`
799
- margin-top: ${e=>Q.closeMarginTop.valuePx(e.windowSize)};
799
+ margin-top: ${e=>X.closeMarginTop.valuePx(e.windowSize)};
800
800
  display: flex;
801
801
  float: right;
802
802
  `,ml=n.div`
@@ -817,9 +817,9 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
817
817
  align-items: center;
818
818
  justify-content: center;
819
819
  `,ri=n.div`
820
- margin-top: ${e=>e.partOfSkipAutoFill===!0?Q.closeMarginTop.valuePx(e.size):0};
820
+ margin-top: ${e=>e.partOfSkipAutoFill===!0?X.closeMarginTop.valuePx(e.size):0};
821
821
  margin-left: ${i.sp5};
822
- margin-right: ${e=>e.partOfSkipAutoFill===!0?Q.closeMarginRight.valuePx(e.size):0};
822
+ margin-right: ${e=>e.partOfSkipAutoFill===!0?X.closeMarginRight.valuePx(e.size):0};
823
823
  `,hl=n.div`
824
824
  display: flex;
825
825
  flex-direction: column;
@@ -852,12 +852,12 @@ import{aO as li,d as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Le,gf as ao,gh
852
852
  `,gl=n.div`
853
853
  display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
854
854
  width: 100%;
855
- margin-bottom: ${e=>Q.bottomMargin.valuePx(e.windowSize)};
855
+ margin-bottom: ${e=>X.bottomMargin.valuePx(e.windowSize)};
856
856
  `,yl=n.div`
857
- width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
857
+ width: ${e=>X.rightSectionWidth.valuePercentage(e.windowSize)};
858
858
  `,bl=n.div`
859
- margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
860
- margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
859
+ margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
860
+ margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
861
861
  `,fl=n.div`
862
862
  display: flex;
863
863
  flex-direction: column;