@zeniai/web-app-ui 4.14.35-qa → 4.14.36-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.
- package/dist/assets/{ACHDetailsPage-B5qIuZya-XLBuNVCw.js → ACHDetailsPage-fOu5grd7-Cs2K4DRV.js} +3 -3
- package/dist/assets/{AIPerformancePage-BHB45mP--CD0rNUAY.js → AIPerformancePage-Da3gFo8A-CVIvereU.js} +25 -25
- package/dist/assets/AccountInfoPage-o7hTXtgZ-Dc6Hg6aE.js +18 -0
- package/dist/assets/AccountInfoPageContent-DqErO8FH-XBjSorHo.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-Dox7IuAX-DnRhVaKQ.js → AccountLockedInfoModal-BJjCuLHa-Uk-DVT8_.js} +9 -9
- package/dist/assets/{AccountReconDetailsDrawerPage-Bqty08m0-D31h8ST6.js → AccountReconDetailsDrawerPage-CVjH1p0d-qMdLytVA.js} +16 -16
- package/dist/assets/AccountRow-CpftykFx-DRMa7L7I.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Bs3naJHM-C-Pd028T.js → AccountsPromoCardStack-D7xvgmOH-L4LUQiMM.js} +28 -28
- package/dist/assets/AddAddressForCardDrawer-vecchYEf-Dm_7GZaw.js +6 -0
- package/dist/assets/{AddToWalletPage-CyRfqVDB-qKY-OwRf.js → AddToWalletPage-zJy9QCjx-BhPNLvBn.js} +13 -13
- package/dist/assets/AddressRoutes-CN9yzNia.js +1 -0
- package/dist/assets/AddressScreen-DawlCEed.js +9 -0
- package/dist/assets/AgingReportsPage-wAvQb1d8-BNi2RWcU.js +79 -0
- package/dist/assets/AiCfoScreen-gLF8Y46q.js +11 -0
- package/dist/assets/AllUserItems-DEv_CXOA-BczB69YE.js +192 -0
- package/dist/assets/ApAgingDetailPage-BOV1WFVF-DjxtNuTC.js +46 -0
- package/dist/assets/{AppBasePage-CqDm-hnV-CPv5pyhL.js → AppBasePage-DMlomvFS-DAPyVzw3.js} +16 -16
- package/dist/assets/AppDrawerContent-Dc2sHnR3-DkcYif08.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-BkoyF3U2.js +47 -0
- package/dist/assets/ArAgingChart-m-Xp3HAW-2E3yf3w6.js +24 -0
- package/dist/assets/ArAgingDetailPage-b_NpDpWj-D8K0oGBL.js +46 -0
- package/dist/assets/{AttachmentView-CzC4skJ3-9WHG58G4.js → AttachmentView-DB_V1qT1-YRFnSBmh.js} +7 -7
- package/dist/assets/{BankAccountSection-Di4sF52j-DrSj0XXO.js → BankAccountSection-BabhrBM7-BRSx6sCU.js} +5 -5
- package/dist/assets/BankAccountWarningSection-yT2UAd12-hc4ZMuSF.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-Ccnzq7st-CFZ_2GOy.js → BankConnectionsSettingsPage-CbxXykMM-BcHLkw6J.js} +14 -14
- package/dist/assets/BillDetailPage-7TMkWo3V-D6W3VN4G.js +266 -0
- package/dist/assets/{BillPayApprovalRoutes-BmuSeG_D.js → BillPayApprovalRoutes-DPHRxesZ.js} +1 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-COyDRpaF-CLsNCUw0.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-COCypDcS-lT3PW8bQ.js → BillPayApprovalRulesPage-9pxkgFAT-DlJyrfvK.js} +5 -5
- package/dist/assets/{BillPayPromoPage-DOE2YIqC-CKwELSu-.js → BillPayPromoPage-AGffhbY3-DpLl9nyC.js} +10 -10
- package/dist/assets/{BillPayRoutes-C3UXklWn.js → BillPayRoutes-JOylN2BD.js} +13 -13
- package/dist/assets/BillPaySetUpPage-Cs5rkWBu-BP5ujh9A.js +42 -0
- package/dist/assets/{BillingSettingsPage-iImtlEmO-BW--jBw3.js → BillingSettingsPage-CQ117tT9-TA2HK-aX.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-B11GWM_0-DpWN7a3R.js → BillsBulkReviewDrawerPage-DRkGQQAe-DNA3NRzL.js} +1 -1
- package/dist/assets/{BoxItem-Bxa1M4QU-dUcjlF36.js → BoxItem-DRwx0M5a-D-Rn9DzO.js} +2 -2
- package/dist/assets/BusinessVerificationPage-1h0z3N9u-XjZx6gHS.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-sFaQye-W.js +9 -0
- package/dist/assets/BusyIndication-DizZe0Gu-Ui3yaqtY.js +9 -0
- package/dist/assets/{CardNumberSubText-_ZZbaz_k-DQXZlwGH.js → CardNumberSubText-DqtLT1w5-Bzgrrztr.js} +10 -10
- package/dist/assets/{CashbackDetailPage-DAZXitLt-DHuiCggG.js → CashbackDetailPage-ChdQcvkC-m-ebT8pi.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-B1VIpASk-DDp9chEw.js → ChargeCardDetailPage-DFOKlPNG-DQYHVV4_.js} +31 -31
- package/dist/assets/{ChargeCardListPage-BOBepN-x-CCDeCgkz.js → ChargeCardListPage-DhLUsUhd-CoIm3KwH.js} +19 -19
- package/dist/assets/ChargeCardListTable-DE72YU_i-DgEVI1AC.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage--jOwsMla--R4xqtT2.js → ChargeCardPaymentHistoryPage-CbGR18s--Df_3JGQc.js} +15 -15
- package/dist/assets/ChargeCardPromoPage-CPpNh89o-52aj5A04.js +222 -0
- package/dist/assets/{ChargeCardRoutes-Bv9hqdZo.js → ChargeCardRoutes-V_6E2iyX.js} +12 -12
- package/dist/assets/ChargeCardSetupPage-ITi25kUD-D__xDb9M.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-ChWyQlw6-aZT3JIEZ.js → ChargeCardStatementsPage-CTJc1BCc-CZlTL24v.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-BrzeSj-3-mEHRp2-B.js +206 -0
- package/dist/assets/CollapsableReportTable-CDEe9s_E-B6-yHAq0.js +2844 -0
- package/dist/assets/{CompanyOfficerDetailsSection-CrOIN4IW-NHMPrEUt.js → CompanyOfficerDetailsSection-BaPhFsLx-B_RPGIU9.js} +92 -92
- package/dist/assets/CompanyPassportCard-B9ymV6Az-jkfRIvZo.js +42 -0
- package/dist/assets/{CompanyPassportPage-FE6yli6h-DpU12PlJ.js → CompanyPassportPage-BQ68t7oK-IkltRNSS.js} +16 -16
- package/dist/assets/{CompanyPassportScreen-myO-14Tx.js → CompanyPassportScreen-dLVakYjm.js} +1 -1
- package/dist/assets/{CompleteProfile-Cb8i1XgZ-DxvSbQ10.js → CompleteProfile-C5n9b8gQ-CNOkIDDD.js} +1 -1
- package/dist/assets/ConfettiBurst-BizTW0hz-BB_7e0py.js +1 -0
- package/dist/assets/ConnectionAuthScreen-BOPjadvo.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-OjPt0E9I.js → ConstrainedInnerElement-BeIpAPjB-Cxh5xHax.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CzpSgxbO-3aKCwvlv.js → CreateOrEditVendorPage-BIfOA5Nr-AtyF4p8I.js} +19 -19
- package/dist/assets/{CreditCardPaymentDrawerPage-c_q0MsSO-C8Sv6LkU.js → CreditCardPaymentDrawerPage-CCpS-31h-B6o-4EgY.js} +21 -21
- package/dist/assets/CurrencySelectField-KvKyemY6-rYSOJjSm.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-f3Aa6E5r-jXI67T90.js → CustomerOnboardingActivationPage-6VlMI4oY-C5HWnW_e.js} +3 -3
- package/dist/assets/CustomerOnboardingAuthScreen-xza8qbxh.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DbqRfwbf.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYuiWn8s-By6QXlft.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-C4bWipAx.js} +9 -9
- package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-EPt0RonD.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-B9hSO88_-WoQ55K0l.js → CustomerOnboardingPage-DkW66A-p-BsqCLn06.js} +8 -8
- package/dist/assets/{CustomerOnboardingProductSuitePage-CG0HKCpQ-Dj7dtYI-.js → CustomerOnboardingProductSuitePage-Ba0yotpP-DIrnT1SJ.js} +10 -10
- package/dist/assets/CustomerOnboardingRoutes-yXJnudqI.js +23 -0
- package/dist/assets/{Dashboard-BJ_oIHab-CcR3gZ1R.js → Dashboard-bX3cWkmP-CJSja88C.js} +45 -45
- package/dist/assets/{DashboardReportPage-BemzMw2e-BivRzupC.js → DashboardReportPage-DuZ4d4CE-CEa_ZsnB.js} +39 -39
- package/dist/assets/DashboardRoutes-BcGPSKnY.js +21 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-Dar8E4GV.js +12 -0
- package/dist/assets/{DefaultTenantHome-BM2eKD4k.js → DefaultTenantHome-BeZ76hjE.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-BY_OvuKg-CegBl9NF.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-a__bpCOB-3CdtwLcn.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-D5m_2Yo0.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-BumMT4QM-BqgDBN3V.js +21 -0
- package/dist/assets/DownloadOverlay-DqiL3-FB-EoMZNE21.js +439 -0
- package/dist/assets/{DrawerPage-DesxXhZk-BSBqQ0E6.js → DrawerPage-CaG-xx5d-Cp5tt9QJ.js} +12 -12
- package/dist/assets/DrawerScreen-CTG5ybiX.js +1 -0
- package/dist/assets/EditPeoplePage-BcsdEp_d-D-PC_KrM.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-Bq2nc6vp.js +865 -0
- package/dist/assets/EntityDetailPage-DtX5TjBc-BPO5XePN.js +18 -0
- package/dist/assets/EntityDetailRoutes-B5R1QZWM.js +1 -0
- package/dist/assets/{EntitySummarySection-BwX0a4JL-DBtHTJw5.js → EntitySummarySection-LEA5m6mN-DSNa9_6d.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-EdyHjbff-EOTef8II.js → ExpenseAutomationOverviewPage-Dmhn7gfp-Bq4zhd1r.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-B8C4BxoV-CRrIGE9L.js +2323 -0
- package/dist/assets/ExpenseAutomationRoutes-CQ8o1Ut2.js +20 -0
- package/dist/assets/{ExpressPayPage-EMP6inpX-ByDfOb19.js → ExpressPayPage-C-nqret2-DYj2m0J-.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-SYJm-3aR-BN_q0ETO.js → FeaturePreviewPage-BHjUZ7s6-DFBfCFGy.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-7DbZ3Lx9.js +1 -0
- package/dist/assets/{FollowStepsSection-BxESVqJD-D-o2E0Jp.js → FollowStepsSection-0eFMS0c5-CUs8ilzU.js} +11 -11
- package/dist/assets/GlobalReviewListPage-4eiopkzw-CbQC9oAb.js +291 -0
- package/dist/assets/{InformationCardStack-B_qQUEYD-Dxp2Ew45.js → InformationCardStack-C7XJCUlh-CelR5zDw.js} +1 -1
- package/dist/assets/InsightsCardStack-fBAbQwhK-DPzZunDi.js +79 -0
- package/dist/assets/InsightsSection-De9zu_me-DIydVhgU.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-DP6fAccq-Ho7Qlw2p.js → IntegrationsSettingsPage-BD5jqAv8-hrz650GM.js} +5 -5
- package/dist/assets/InternationalWireSwiftDetailsPage-BftrE612-CtP2y88l.js +171 -0
- package/dist/assets/{InternationalWireVerificationPage-COC6lZml-CGJDlFxp.js → InternationalWireVerificationPage-CDf7equc-BXBU6F90.js} +10 -10
- package/dist/assets/{InviteFormPage-DN02jRy5-DHTLPGCE.js → InviteFormPage-E2igwKEh-wVoOBHVT.js} +7 -7
- package/dist/assets/{InvitePageListView-CP4K9tJi--rk4yubU.js → InvitePageListView-Cuq9dlgu-CIGWi2Uo.js} +75 -75
- package/dist/assets/InvitePeoplePage-Db4P4ZEq-DViNv_LG.js +12 -0
- package/dist/assets/InvoiceUploadSection-DYCjz9CI-6zrHw8Gx.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CVfuvGey-DsE7CChF.js → IssueChargeCardPage-CK6fnO24-CgQfD7TJ.js} +23 -23
- package/dist/assets/{LabeledAddressValue-DDrQcHIE-7f3DV4Ir.js → LabeledAddressValue-Ma1WURjK-BQ7yXCyt.js} +2 -2
- package/dist/assets/LabeledAddressValueField-C6-hVsPb-2b15Jv_o.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-BjnMYuFb.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-BYYjzwUG-DFrMExfh.js → LabeledCountryMultiSelectField-sj8p7Rne-bfsTKOeq.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-CISYMojq-uDdZESj4.js → LabeledCreatableSingleSelectField-DUTQh416-TJ_Bq1qn.js} +6 -6
- package/dist/assets/LabeledDocumentField-Bp9m-OrP-C4maUk83.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-ScGGCap8-DS9Ia8KW.js → LabeledDropDownFormattedTextField-3-KekP79-2bA1-mcm.js} +4 -4
- package/dist/assets/{LabeledEmailInputField-BppuWRbl-CiTokODP.js → LabeledEmailInputField-BRJyFvVd-Bs2EgRoq.js} +11 -11
- package/dist/assets/{LabeledNameField-mxSNQk3k-plaK5ktD.js → LabeledNameField--saAep-_-GEbqq-XX.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-C6ctNzkA-jFhVySOx.js → LabeledSingleSelectField-Ul4tlTiO-C7eur4tW.js} +7 -7
- package/dist/assets/LabeledText-DvzVOku6-BIWW9LkN.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-C31niF0q.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-D3Nd6Mp3.js} +12 -12
- package/dist/assets/{LabeledZeniRolesDropDownField-BZtreVpj-HZcFXQuM.js → LabeledZeniRolesDropDownField-kWC0ShEy-B-6CgYA7.js} +25 -25
- package/dist/assets/{LinkJETransactionPage-CKq4oiX9-FlcdN5Cn.js → LinkJETransactionPage-WufhDGDQ-hOiRNbpI.js} +11 -11
- package/dist/assets/{LockCardPage-CZENNby7-DAN8QPfp.js → LockCardPage-BBIVLYVD-CWfnMAuT.js} +17 -17
- package/dist/assets/{LowBalancePopup-1727S1ri-DfD9U0P5.js → LowBalancePopup-ScEqPY9J-BDVRhmW5.js} +5 -5
- package/dist/assets/MagicLinkACHDetailsPage-C494txw0-C9zbj8xn.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-BTU1HWRn.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-fSY3JGpz-DTKuj6lk.js +1 -0
- package/dist/assets/MagicLinkRoutes-CBkc9ANU.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-DVW3BRZl.js +12 -0
- package/dist/assets/{MagicLinkSuccessPage-QMkZgQLG-SmTRytlp.js → MagicLinkSuccessPage-BDRXSAO4-BPK2tnCV.js} +6 -6
- package/dist/assets/{MagicLinkTitleSection-CARU1oLQ-Cc0bAwCn.js → MagicLinkTitleSection-ZnbKPIvJ-C4BiwnoA.js} +9 -9
- package/dist/assets/MailingDetailsSection-DZT7JPlI-B_BKxUqb.js +21 -0
- package/dist/assets/MobileAppDrawer-SRxQ4nyi.js +1 -0
- package/dist/assets/{MoreMenuButton-BsBKwXvk-B-OabREv.js → MoreMenuButton-CJue6xR9-DxdJkjEQ.js} +23 -23
- package/dist/assets/{MyBankConnectionsSettingsPage-BdgIIhL1-sxo7GzB7.js → MyBankConnectionsSettingsPage-aQDVaEG1-CRobqj27.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-CX38bDdq-BSRy7gxL.js → MyPendingActivationChargeCardListPage-BJrk56oA-CKxLYlt8.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DYu0Fx6I-2xpkKTK_.js → MyProfileSettingsPage-L9WuP6HZ-DBau4C6u.js} +6 -6
- package/dist/assets/NavBarWithPicker-zmvBmWS1-Dq59pkcT.js +30 -0
- package/dist/assets/{NavigationArrow-CTNkKUtV-BOWAFzvJ.js → NavigationArrow-D26UG3p--CJBJ0QVX.js} +2 -2
- package/dist/assets/NavigationDots-Bv4tBDN3-C3q3rN5Z.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-D_f7z47T-bzcY5fN6.js → NewGlobalMerchantPage-vOn2O6B9-Dn0MDdJM.js} +4 -4
- package/dist/assets/NoDataChart-CgT19fV7-BHysrTfh.js +26 -0
- package/dist/assets/{NoDataTable-4vPXmPYF-DNHPtvzK.js → NoDataTable-CPjJmo4s-Cw98-IiW.js} +1 -1
- package/dist/assets/{NotFoundPage-BLWPU1wU-sT7v4kMd.js → NotFoundPage-CP2i3FTm-bZ8NYti5.js} +6 -6
- package/dist/assets/NotFoundScreen-LuCzwVbP.js +1 -0
- package/dist/assets/NotificationRoutes-DAiqyeoY.js +1 -0
- package/dist/assets/{NotificationSettingsPage-CDiDLX3A-_aoQxT7d.js → NotificationSettingsPage-CT9Dnb03-avWp6uik.js} +16 -16
- package/dist/assets/NotificationsListConfig-Bn1zmx6b-D4fKYTYM.js +1 -0
- package/dist/assets/NotificationsPage-DDwdR_Jq-CoOhM2dl.js +685 -0
- package/dist/assets/OpExByVendorPage-DukFYlqO-DRlZ9cev.js +100 -0
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-BzKAGxet.js → OverlayContainerPage-D4QU0p4o-tcmQyJCw.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bgflh9Om-CSmTsNHv.js +107 -0
- package/dist/assets/PandLWithForecastRoutes-C-17dXbC.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-9ma8SpIa-B9DSsC2j.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-BENOl58h.js} +7 -7
- package/dist/assets/PeoplePage-CDvKreQl-BHMfiaC4.js +720 -0
- package/dist/assets/PeopleRoutes-DkWBrchL.js +22 -0
- package/dist/assets/PerformanceRoutes-BfVGXw_c.js +1 -0
- package/dist/assets/{Preview-7kwKilUJ.js → Preview-B59RrC-D.js} +1 -1
- package/dist/assets/{ProductsCarousel-C3M0ocdF-Bk6zo5Ng.js → ProductsCarousel-7R3cvGiS-DzOMZ0OK.js} +8 -8
- package/dist/assets/{PromoBaseCards-BOGJI2ws-C9Pe7t33.js → PromoBaseCards-DdCMZIc7-B4qYL3sb.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CmpnnuzP-C7S2tuEZ.js → QBOConnectionDialog-Ca36jKz2-CdHpLyZs.js} +13 -13
- package/dist/assets/{QBOConnectionScreen-CBL_c_ZS.js → QBOConnectionScreen-CJqEVXmb.js} +22 -4
- package/dist/assets/{QBOSetupSection-DjnN9dgv-DuelT8Xn.js → QBOSetupSection-CzBfIVqR-DDJCICP1.js} +10 -10
- package/dist/assets/ReferralListScreen--Li0yAbv.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-By0X6th0.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D5NXjrO9-BrVg7MWi.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-BLIwxZQV.js} +4 -4
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CiFU9_Ue.js → ReimbursementApprovalRuleDetailScreen-BTqwtaaL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BsCTIqUJ-SkgewgOo.js → ReimbursementApprovalRulesPage-B48x1gPM-BostsSOa.js} +27 -27
- package/dist/assets/ReimbursementDetailPage-oIC9QEyF-BywJ2Ma5.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-CyEgwqcf-SmbgqnUO.js → ReimbursementPromoPage-BKgsJieE-C8z1p7x-.js} +14 -14
- package/dist/assets/ReimbursementRoutes-CgHILlr6.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-RETPkEQd-X6NMArZG.js → ReimbursementSetUpPage-B_c-ZgFT-CEFcuF5y.js} +5 -5
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-DNjVjDW0.js +1 -0
- package/dist/assets/ReloadCard-DKGn1uxF-BoCqNia8.js +26 -0
- package/dist/assets/ReportTableViewSelector-CXDvZEbR-C7-vFnMM.js +150 -0
- package/dist/assets/ReportsPage-BoUyXSBC-Bpcr9t0g.js +121 -0
- package/dist/assets/ReportsRoutes-BiPwCg8q.js +1 -0
- package/dist/assets/{RevenueChart-DvyZ3aO7-Cq5-UpCu.js → RevenueChart-SvdhwBcE-Dxn52ow-.js} +12 -12
- package/dist/assets/ReviewDetailsPage-tT1l4R2r-RmP2wBK5.js +290 -0
- package/dist/assets/{ReviewOverlay-CxwoiOLC-D5lX05io.js → ReviewOverlay-BoM41t8W-CTSAEiQG.js} +7 -7
- package/dist/assets/RewardsRoutes-E5CnWJ-f.js +1 -0
- package/dist/assets/RoleWithToolTip-C8x5yXaK-Dmelwbqx.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DiL5Dozk-nJBgIa-D.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DSmZf7Qv.js} +8 -8
- package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-DllnnP3n.js +37 -0
- package/dist/assets/ScheduleSequenceTable-J6Eja8XA-Du9cL0M5.js +324 -0
- package/dist/assets/ScreenRoutes-IRYzg1I8.js +2 -0
- package/dist/assets/{SetUpAccountSection-CctbMmoK-dkot7n04.js → SetUpAccountSection-sfIB1h4i-5Qx4_bh2.js} +15 -15
- package/dist/assets/{SettingsRoutes-B6iEqR3w.js → SettingsRoutes-DcfqDJnj.js} +7 -7
- package/dist/assets/{SetupPagesScreen-BnPwIkkt.js → SetupPagesScreen-CKIcjKt5.js} +6 -6
- package/dist/assets/{SignIn-CmgmnRm4-B0na7eQY.js → SignIn-Cu2nzuEC-Bp_oT71c.js} +75 -75
- package/dist/assets/SignInScreen-Ct79gq1E.js +1 -0
- package/dist/assets/SignOutScreen-CZ3i17sZ.js +9 -0
- package/dist/assets/SpendManagementListViewPage-9V9u1jPF-impkLVzs.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-COvEPq7V-9dexPOGi.js +754 -0
- package/dist/assets/SpendManagementSection-dT-N4bSQ-zSvxEGhY.js +375 -0
- package/dist/assets/StatementItem-g5tfNBjV-TtkHAa_E.js +31 -0
- package/dist/assets/StatementsPage-DaFrVUeK-BKmugpaZ.js +58 -0
- package/dist/assets/{StatusSwitcher-Bv-ozN6U-quMddV-t.js → StatusSwitcher-CaoFw0cf-DekkCuBN.js} +1 -1
- package/dist/assets/{SubTabSwitcher-D7QeM6nb-BFMiA24p.js → SubTabSwitcher-zrkVj1aP-DzJ74MSf.js} +9 -9
- package/dist/assets/SuccessAnimation-oz7yQ6H3-CuxEvbYZ.js +13 -0
- package/dist/assets/{SummaryCard-C2qoTsAY-CaaNnBJl.js → SummaryCard-B9wqNSwM-CfbafqaP.js} +1 -1
- package/dist/assets/{TaskDetailPage-QMk4DTDK-D2hPuZdA.js → TaskDetailPage-044JwAvz-Dbz-j4Qe.js} +41 -41
- package/dist/assets/TaskListScreen-D2hgfbUK.js +9 -0
- package/dist/assets/TaskManagementPage-dAK9tl2b-VU_G-rkO.js +1063 -0
- package/dist/assets/TaskRoutes-JZtbl56L.js +9 -0
- package/dist/assets/TimeRangeSwitcher-r1TNqVRb-BuKa7qNu.js +64 -0
- package/dist/assets/TimeframeSwitcher-DHfHCTa4-BPyXAgbc.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-81Smo1q6.js +31 -0
- package/dist/assets/{TopExCard-Z1WabZ8c-CKf1GX94.js → TopExCard-BUjnGDUB-310z6unt.js} +6 -6
- package/dist/assets/{TopExDetailPage-CzHG4f9E-B4TmK8gG.js → TopExDetailPage-CNDkfc3u-BceOPcNG.js} +14 -14
- package/dist/assets/{TransactionActivityLogPage-CGKnjNfU-Ci16gpvR.js → TransactionActivityLogPage-kSQqJVpX-D70Ebwxd.js} +9 -9
- package/dist/assets/TransactionDetailPage-f7vWtXWL-DszE4Lqv.js +903 -0
- package/dist/assets/TransactionDetailRoutes-TOpy1uKa.js +1 -0
- package/dist/assets/{TransactionDetailScreen-B-Yj_UhL.js → TransactionDetailScreen-Bl43zCpG.js} +2 -2
- package/dist/assets/TransactionList-3-mUZOsw-BQQrTUgt.js +153 -0
- package/dist/assets/{TransactionListBig-C5Sf5Xh--DbwL40CX.js → TransactionListBig-Bx_Rm9ho-KpaUS-0g.js} +20 -20
- package/dist/assets/TransactionListPage-q6x4_jni-BCTSngWR.js +35 -0
- package/dist/assets/{TransactionListRoutes-QxUiu8mw.js → TransactionListRoutes-CMLh_lHF.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-SsrSOk3O-D_eszV6l.js → TransactionVendorDetailPage-MjSH5hfq-C0iHLHKf.js} +4 -4
- package/dist/assets/{TransferDrawerPage-BvKZ7vHF-BsH4I_GA.js → TransferDrawerPage-BayVa6po-DlkdYqMW.js} +32 -32
- package/dist/assets/TreasuryOverviewPage-CuqWmrO5-BZ_bPirD.js +708 -0
- package/dist/assets/{TreasuryPromoPage-CtTFvSQW-C3HG6vUb.js → TreasuryPromoPage-BCjz1EKX-DryQkob1.js} +26 -26
- package/dist/assets/TreasuryRoutes-Uv2Q4-px.js +45 -0
- package/dist/assets/{TreasuryStatementsPage-Catz8shX-DYVsQNkR.js → TreasuryStatementsPage-CGr00SXF-BI3wmSNl.js} +3 -3
- package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-BJVe4ICp.js +58 -0
- package/dist/assets/{TrendChart-Bnp4Pcdf-BEiDyalf.js → TrendChart-JTOG0a7B-DWRNXuz6.js} +2 -2
- package/dist/assets/TrendWithTransactions-CTJhTpAM-BLYcqVCK.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-DbyY-dYB-CRm0o4w4.js → UncategorizedAccountsMappingPage-TGKYpC5A-CSRo9cGj.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-CTzme1te-Dnhdwg-S.js → UnitIntegrationPage-mt2IjA5X-HULL3VCR.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-Cm7mweqJ.js +38 -0
- package/dist/assets/Vendor2FAPopup-DAOf5cJD-foKceGQ2.js +1 -0
- package/dist/assets/VendorACHDetailsPage-CCOupiSZ-aPYjuiNm.js +1 -0
- package/dist/assets/VendorDetailPage-DufNphGD-angvVXfL.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-dHdeqKnp.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-himC7iD3-COlhEhfI.js → VendorFiling1099EditablePage-CRnO7Ubw-C0qN_xq7.js} +16 -16
- package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-CiwNSvUn.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-CS595Xgc-B8BwDoGh.js → VendorInternationalWireDetailsPage-HUtNyn9Z-Ccax-820.js} +7 -7
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-BDnM6T3H.js +1 -0
- package/dist/assets/{VendorsAccountsSection-CgSJu8wq-By2iaDf4.js → VendorsAccountsSection-D6Qa1zf9-OD2ANcpQ.js} +4 -4
- package/dist/assets/{VendorsRoutes-Bih_aLlI.js → VendorsRoutes-BTXTUssE.js} +21 -21
- package/dist/assets/VerifyDevice-B6B_nk3v-BfzLjpGJ.js +112 -0
- package/dist/assets/VideoPlayer-BRAgZThr-Bcaasp-U.js +77 -0
- package/dist/assets/{VideoPopup-BqvZ-XIh-C4S2l4Qt.js → VideoPopup-C_SkBI9U-xDIm2hVu.js} +2 -2
- package/dist/assets/WiseConfirmationScreen-DSWFe61l.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-DUr2L7qz.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-CGRw402N.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-obkuSya3.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-JrcedQYB-pQRwMLaX.js → ZeniAccountPromoPage-BgYCHYLO-B5ynGf7u.js} +24 -24
- package/dist/assets/ZeniAccountRoutes-ZzewLkL8.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-TKBfbgzJ-PLHUlE4Q.js → ZeniAccountSetupPage-CvnIMdcY-BIOUi-Do.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-8454IT-f.js +9 -0
- package/dist/assets/{ZeniAvatar-Bzhq25CU-DDubJB3t.js → ZeniAvatar-CwHVUcMc-BJ8AyUay.js} +3 -3
- package/dist/assets/{ZeniCopyright-DglqrTpl-0ipdHCKB.js → ZeniCopyright-BlLvlGZV-PtfyMNGF.js} +1 -1
- package/dist/assets/{ZeniDatePicker-BHXPxPnI-jqtqgUDK.js → ZeniDatePicker-DCurorsW-jSixMxUp.js} +5 -5
- package/dist/assets/ZeniTransferAmountSlider-BNYgPwHs-BLgZWrKb.js +63 -0
- package/dist/assets/{accountMappingHelper-dpnZZ5LV.js → accountMappingHelper-S5pr6xme.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bm_Y0yNs.js → add-to-wallet-DgdBD8_G-BxcaFQ_E.js} +1 -1
- package/dist/assets/{analytics-CkXlMwul.js → analytics-BZz0SPy3.js} +1 -1
- package/dist/assets/{analyticsHelper-CgnSazAa.js → analyticsHelper-CRAJfei1.js} +1 -1
- package/dist/assets/{analyticsHelper-CAYdbjhS-CriW5LYb.js → analyticsHelper-CYr5V2MV-D47W16kx.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BOEOiatb.js → arrow-south-east-round-PEovUgvH-CyfpwaWH.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-TAKOnqtH.js → auto-transfer-rule-mbafm5D3-Dm3PoOP-.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-Gywr7K0t.js → avatar-Dz7aEm3d-B59e782o.js} +1 -1
- package/dist/assets/{calculateSize-B2w5JPEU-mwJnN95U.js → calculateSize-Bn1NnCzV-CbPGQ475.js} +1 -1
- package/dist/assets/{chartTypes-CD3vrBsI-CvW9Chyr.js → chartTypes-40RenddT-C7uxWjgM.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-COoJTe6x.js → clock-CJkylEKt-DGRbc2He.js} +1 -1
- package/dist/assets/common-DEB71I4X-BRhAN_mv.js +1 -0
- package/dist/assets/commonDimensions-BMnB1-xU-CcNkFk9x.js +1 -0
- package/dist/assets/{commonTypes-5tEXwrX4-DyDjh_w6.js → commonTypes-DsWS6Ccc-DgEYQkuk.js} +1 -1
- package/dist/assets/{core-C_Me9Mw3.js → core-BSWMBnrJ.js} +38 -3
- package/dist/assets/{dash.all.min-Bp2m9Ydo.js → dash.all.min-ByV77lf8.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-ZgCb2Iy4.js → decodeURIComponentSafe-B2RLRrdt.js} +1 -1
- package/dist/assets/detailCommon-CrcyqWtZ-s9USgEEF.js +38 -0
- package/dist/assets/{dnd-BRZ99wCN.js → dnd-DJrh3JTW.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-B1-gS13v.js → dollar-round-D18u7nlm-qWQy8tOr.js} +1 -1
- package/dist/assets/downloadPdf-CUUx8PWn-Z4ddkC82.js +1 -0
- package/dist/assets/{empty-DHCuSR9N.js → empty-BcmJSfoQ.js} +1 -1
- package/dist/assets/{index-3k8vVfR8.js → empty-Ink6PjPr.js} +1 -1
- package/dist/assets/epic-C8YaW2BC.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-D8Km46fj.js → filter-cZIFUNvj-CBGTjKNF.js} +1 -1
- package/dist/assets/getLocaleForTenant-CeTv0_64.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-Caqrj8S3.js → gift-box-Cmt9OgIZ-Dw9Bntj7.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DcLpxdkP.js → graphic-no-data-l-DU4J8fDt-hCWvJzzH.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CHRRaCEh.js → graphic-no-data-net-burn-l-CzmycA0m-DLhWQ7Y3.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CZMITs4k.js → handshake-BPg58FML-DcpKXQqd.js} +1 -1
- package/dist/assets/{helper-Ckm10Uko-B3ENCgge.js → helper-BMiMbXMj-BqD7TDgt.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-gaj5d9Ss.js → hyperlink-DQyCeXx2-DgnccV5_.js} +1 -1
- package/dist/assets/{index-CUMBQ0kS.js → index-4TmfhDJk.js} +8 -2
- package/dist/assets/{index-SxFZwWsO.js → index-B5VyyyEM.js} +1 -1
- package/dist/assets/{index-B2upy5zm.js → index-B9LViB8R.js} +1 -1
- package/dist/assets/index-ByhS5XEB.js +1 -0
- package/dist/assets/index-De4FUH-D.js +1 -0
- package/dist/assets/{index-C-nTPjDF.js → index-T6cemxxv.js} +4300 -4238
- package/dist/assets/{lexical-itr5JGCy.js → lexical-CdVAcKo7.js} +1 -1
- package/dist/assets/{liveblocks-WO1k1bbB.js → liveblocks--WiFaeN0.js} +8 -3
- package/dist/assets/{lottie-DyM2Y4mu.js → lottie-DOxhyevU.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-5SZShw59.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cgyt68f3-DDmSwPfi.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-8acLvja0.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-BRhv3XRJ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-BW4YLdJu.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-BuwKfIYt.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-u2sPQG8-.js +1 -0
- package/dist/assets/{media-player-CF7xBLjT.js → media-player-2gWGctcr.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-G-AmTEM-.js → money-2cg1MuG4-ZZWEE1BS.js} +1 -1
- package/dist/assets/{mui-BOwjqiG-.js → mui-GaW5Gk_e.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-apfmAYex.js → page-detail-CWX5S47F-KCA2hl3j.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-BnBlbKgB.js → page-summary-D7_VQHwN-C4mva4td.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DWsrfnbc.js +4 -0
- package/dist/assets/{pathToGoBack-HOzfv7dJ.js → pathToGoBack-C0wXThmF.js} +1 -1
- package/dist/assets/{pdf-BrZAvZ1o.js → pdf-DWoGjGSw.js} +4 -4
- package/dist/assets/{pdf-lib-i0Zp6hBX.js → pdf-lib-CU3tv6Hj.js} +1 -1
- package/dist/assets/{plaid-CyY87P8r.js → plaid-CNcdZ4gc.js} +1 -1
- package/dist/assets/{pusher-BNpOKQkJ.js → pusher-_Mkhq734.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Ca1mizvg.js → radio-default-CiSgisfh-CkW2sMb1.js} +1 -1
- package/dist/assets/react-BO8sqwy5.js +37 -0
- package/dist/assets/{react-BX_gWWIU.js → react-C4isuCpp.js} +12 -2
- package/dist/assets/{react-DhXnYBTa.js → react-CKfk9tDS.js} +12 -2
- package/dist/assets/{react-Duxg__b3.js → react-CNYdj_E0.js} +12 -2
- package/dist/assets/{react-CCEU-gQt.js → react-COkkiwUG.js} +12 -2
- package/dist/assets/{react-D2mjxCly.js → react-CgpHxMDb.js} +12 -2
- package/dist/assets/{react-l1PGvjrb.js → react-DnPZ1Xhy.js} +13 -3
- package/dist/assets/{react-BGvBjcei.js → react-XuqF4K_l.js} +12 -2
- package/dist/assets/{recharts-B22vzlMp.js → recharts-BQ8VH5gX.js} +1 -1
- package/dist/assets/{routePaths-DWpG5fXY.js → routePaths-BCoYK2N6.js} +1 -1
- package/dist/assets/{sentry-Dd2vHz0L.js → sentry-BoIfGJBF.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CgU6m3s0.js → shield-DOlUxcFf-C_2cYUuc.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-vqGyghnL.js → spend-limit-D6SyboD4-D6KSyTVe.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DkMGvlEt-R8kfnDme.js +1 -0
- package/dist/assets/toChartData-C6s-eBzE-hyCfo1sK.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-DdciVPZG.js → transaction-placeholder-CpOwZAMG-DpSw-x8s.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-DR3nJT2M.js → undo-b_3XZ5CX-CsWxipxr.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-1yegyXps.js → unlock-BPWn2I5L-C7FVhrTq.js} +1 -1
- package/dist/assets/{uploadAttachment-Ck4wivBR-Cq_QQznk.js → uploadAttachment-BlLqRIXe-CWI7Q5hT.js} +29 -29
- package/dist/assets/{uploadReceipts-CIgkuVpu-CvG-u27y.js → uploadReceipts-Dge0cNF1-CQe0GGy5.js} +1 -1
- package/dist/assets/{url-BDW7KPoG.js → url-BGCwBSI6.js} +1 -1
- package/dist/assets/{url-DB9sjAVf.js → url-uuiUYH_k.js} +1 -1
- package/dist/assets/{useDeviceId-sqx37YoD.js → useDeviceId-0-eUuQR6.js} +1 -1
- package/dist/assets/useInitialThreadRequest-c5K33_u9.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-C_AhMW7V.js → useLongPress-GCK2COYQ-CkGyzLnK.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-iHFFix1h.js → usp-line-BBd1wKwW-BDy8G8EG.js} +1 -1
- package/dist/assets/{utils-CInzYuJw.js → utils-BGRwbgi2.js} +20 -7
- package/dist/assets/withTransactionSidePanel-BYXSUWst.js +8 -0
- package/dist/assets/zeni-epic-state-BtVcBgvu.js +122 -0
- package/dist/assets/{zeni-icon-only--k3HSUel.js → zeni-icon-only-BOcJS42c.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +8 -16
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-Cd5xYT1g-Ai_0FLE3.js +0 -18
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-DkOvC174.js +0 -149
- package/dist/assets/AccountRow-D1cjRJJD-BMyrgPuA.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-DcB1j4vY.js +0 -6
- package/dist/assets/AddressRoutes-BtKujLBV.js +0 -1
- package/dist/assets/AddressScreen-C2pdVITK.js +0 -9
- package/dist/assets/AgingReportsPage-xBFff3BM-qv6H7lp3.js +0 -79
- package/dist/assets/AiCfoScreen-CS7LOF-g.js +0 -11
- package/dist/assets/AllUserItems-BJf6WPDo-BM8-bXR0.js +0 -192
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-Cp4IdB_e.js +0 -46
- package/dist/assets/AppDrawerContent-CVVWj66i-B2ZBo3py.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-Dpozweq8.js +0 -47
- package/dist/assets/ArAgingChart-CBsqOd-4-B5F9H9K-.js +0 -24
- package/dist/assets/ArAgingDetailPage-i7JObt60-Fc_EOjuD.js +0 -46
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-DfnZIkVc.js +0 -38
- package/dist/assets/BankAccountWarningSection-Cled-2cR-Cw7HtoK0.js +0 -51
- package/dist/assets/BillDetailPage-XXOwBfO1-CJELKaQK.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-B4s_RfTN.js +0 -27
- package/dist/assets/BillPaySetUpPage-BCJbZDsV-DcKA47B8.js +0 -42
- package/dist/assets/BusinessVerificationPage-DSuJFoW1-CS7pQP2Z.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-B2ubg6bo.js +0 -9
- package/dist/assets/BusyIndication-9zDqSKBP-ChOc_zhb.js +0 -9
- package/dist/assets/ChargeCardListTable-YznzSsJo-CtUoYDrk.js +0 -711
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-DfvCk3tp.js +0 -222
- package/dist/assets/ChargeCardSetupPage-0bpVkeJs-Df1sOrZm.js +0 -36
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-B2ArvDGb.js +0 -206
- package/dist/assets/CollapsableReportTable-DNfFkAts-Dc4f25sP.js +0 -2982
- package/dist/assets/CompanyPassportCard-CkzYFTrp-v_Yi1D3S.js +0 -42
- package/dist/assets/ConfettiBurst-BZCXEGYA-C3NYdom7.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BJLM2bFw.js +0 -11
- package/dist/assets/CurrencySelectField-BAh7SHrG-ZI7IxMyb.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-BvfQ6Bly.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-mCuydIQY.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-3DxoMDqE.js +0 -66
- package/dist/assets/CustomerOnboardingRoutes-DXDqjA2k.js +0 -23
- package/dist/assets/DashboardRoutes-DN0OxjOX.js +0 -21
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-Xyr-RGrR.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-BTaaJjC4.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-3p6ZbDz1.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-BwhlL4tC.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-CMQw3On6.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-CZPsN-JO.js +0 -439
- package/dist/assets/DrawerScreen-DafCGXWd.js +0 -1
- package/dist/assets/EditPeoplePage-QvPy_Six-CR3o2wGZ.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-jLfpxCgG.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-BKeztON8.js +0 -18
- package/dist/assets/EntityDetailRoutes-BON-ncUX.js +0 -1
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-I7XV9QD1.js +0 -3614
- package/dist/assets/ExpenseAutomationRoutes-CveEotWX.js +0 -20
- package/dist/assets/FeaturePreviewScreen-DQcCElpb.js +0 -1
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-D1KBOMbn.js +0 -291
- package/dist/assets/InsightsCardStack-BsQzoVzj-hf0eh54W.js +0 -79
- package/dist/assets/InsightsSection-B6CNlTNH-CeDe9GJf.js +0 -27
- package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-BRGKMiE5.js +0 -171
- package/dist/assets/InvitePeoplePage-VTM6kM1u-BfjLud0v.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-u-Ok--50.js +0 -140
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-DQJWYcjN.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-BMfkV-71.js +0 -16
- package/dist/assets/LabeledDocumentField-C_bcFxdY-B4Wto7A4.js +0 -41
- package/dist/assets/LabeledText-C8Y7EOsX-_3NO_Gw0.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-CqwSWs_b.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-BhZpjuNN.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BiZ2NpqK.js +0 -1
- package/dist/assets/MagicLinkRoutes-D2admDSA.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-Ct1R8j_F.js +0 -12
- package/dist/assets/MailingDetailsSection-ByOPaJ05-B05tb0k3.js +0 -21
- package/dist/assets/MobileAppDrawer-C3iQUfEm.js +0 -1
- package/dist/assets/NavBarWithPicker-CGGEvLwe-De1uupkf.js +0 -30
- package/dist/assets/NavigationDots-Dvce3gHt-BdG8xiHP.js +0 -15
- package/dist/assets/NoDataChart-CrKeqWSr-BgjE0oDl.js +0 -26
- package/dist/assets/NotFoundScreen-BqSwug0q.js +0 -1
- package/dist/assets/NotificationRoutes-DJ7czIvh.js +0 -1
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-FC6OqnHW.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-CqJX9kkt.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-DVRHWB5n.js +0 -100
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-BCBJHX7k.js +0 -123
- package/dist/assets/PandLWithForecastRoutes-BP0LFlHk.js +0 -1
- package/dist/assets/PeoplePage-b5_I0qOw-0ggO8pCY.js +0 -772
- package/dist/assets/PeopleRoutes-DY3VOBfU.js +0 -22
- package/dist/assets/PerformanceRoutes-Bbocm9pp.js +0 -1
- package/dist/assets/ReferralListScreen-DlI85iPs.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CxEK4FbL.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-C9YPslYM.js +0 -314
- package/dist/assets/ReimbursementRoutes-j6vN9fxC.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-BK0-Ltoq.js +0 -1
- package/dist/assets/ReloadCard-Bdoo0XiI-c_bctmsP.js +0 -26
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-NWopA-LT.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-DzPOeISi.js +0 -269
- package/dist/assets/ReportsRoutes-uLdNywov.js +0 -1
- package/dist/assets/ReviewDetailsPage-BIMg1n2e-paoxwJM_.js +0 -290
- package/dist/assets/RewardsRoutes-DGFLjNEy.js +0 -1
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-mN0zapH2.js +0 -22
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-4Q1Vsr07.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-B0y3giRJ.js +0 -326
- package/dist/assets/ScreenRoutes-DEwLetNK.js +0 -2
- package/dist/assets/SignInScreen-DeVXckwv.js +0 -1
- package/dist/assets/SignOutScreen-Cdtz7yJy.js +0 -9
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-DX09eRyT.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-C-kqNTci-D-FlbY8m.js +0 -754
- package/dist/assets/SpendManagementSection-CIz4nE_w-jzb-dw8b.js +0 -375
- package/dist/assets/StatementItem-vVtoBN2w-DLRHPtma.js +0 -31
- package/dist/assets/StatementsPage-As5WOnMR-DbPIrOc7.js +0 -58
- package/dist/assets/SuccessAnimation-hijccO_0-BqkqT4v4.js +0 -13
- package/dist/assets/TaskListScreen-C4D7gvsM.js +0 -9
- package/dist/assets/TaskManagementPage-BJwp32Ph-THnLzgmA.js +0 -1067
- package/dist/assets/TaskRoutes-JhaoisDP.js +0 -9
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-DCNS2OFM.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-BcrVnS01.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-Bh7uACpy.js +0 -53
- package/dist/assets/TransactionDetailPage-1-mLOWSz-DfnCUdxX.js +0 -903
- package/dist/assets/TransactionDetailRoutes-Q2XWLHIy.js +0 -1
- package/dist/assets/TransactionList-BB-xoIGm-BSpWh9dC.js +0 -153
- package/dist/assets/TransactionListPage-Cj7h1Ros-Pq-a-5tQ.js +0 -35
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-WTn3yo79.js +0 -725
- package/dist/assets/TreasuryRoutes-BSNm8ukU.js +0 -45
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-CFbhhHa6.js +0 -58
- package/dist/assets/TrendWithTransactions-3D1FvM8G-BaOlWQi6.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-SaNef-9h.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-C8gaYTWa.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DiTm9Ff5.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-UzHXbr7R.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-cmrtzlCJ.js +0 -1
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-CFkeR-vJ.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-B29B7nyw.js +0 -1
- package/dist/assets/VerifyDevice-Dvf0JsNN-BoMtboD9.js +0 -112
- package/dist/assets/VideoPlayer-VAzOGCDL-DK8XBhcD.js +0 -77
- package/dist/assets/WiseConfirmationScreen-CQr6ZXBs.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-jRcxdfCk.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-B_Bfz13h.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-DX590vcc.js +0 -33
- package/dist/assets/ZeniAccountRoutes-ChcgZrUL.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-CnphzAy3.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-SPoOR9Qx.js +0 -63
- package/dist/assets/bank-letter-BOcVjN6J-Dkoy6rTp.js +0 -1
- package/dist/assets/common-BpxEACHl-HdN5Sbj2.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-DG9eYXSN.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-CaRLShge.js +0 -1
- package/dist/assets/empty-DHQ-fT1Z.js +0 -1
- package/dist/assets/epic-Bvkh2Xun.js +0 -2
- package/dist/assets/getLocaleForTenant-DSHteTEt.js +0 -1
- package/dist/assets/index-BuqfI2Vr.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-bVioMH0m.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-COcUQ0p-.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-9SqRPSs3.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-5ej1SpjB.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-8hGqXIxp.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-Cvi1pi7-.js +0 -3
- package/dist/assets/react-C4vvP0Jv.js +0 -19
- package/dist/assets/toCOABalancesWithID-aLNB35t7-CE6_d7nv.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-CEwEqfdb.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-C8EH3odl.js +0 -1
- package/dist/assets/useInitialThreadRequest-BVrIa_dM.js +0 -1
- package/dist/assets/withTransactionSidePanel-hI4VijtT.js +0 -8
- package/dist/assets/zeni-epic-state-ChDcaYf9.js +0 -14
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{a7 as di,y as St,t as vt,T as rn,z as Di,Q as ln,J as Le,fy as Xn,fA as eo,fB as to,V as t,fW as io,A as sn,bK as ui,bL as dn,bM as cn,a6 as G,o as i,b as s,a_ as ji,aM as no,cK as oo,fC as ao,fN as un,fI as Oi,a9 as mn,m as pn,fJ as ro,fX as He,dT as Ze,eo as mi,fY as Ft,O as we,f as $t,fZ as lo,e as P,a8 as hn,I as pi,u as a,aV as so,fL as co,c0 as uo,d$ as hi,f_ as Nt,eD as Ce,c4 as gi,eG as ke,c3 as rt,dD as mo,eC as gn,j as zt,c7 as yn,c6 as ot,dL as Oe,x as yi,f$ as po,b$ as ho,ad as Pi,eP as go,aU as yo,au as bn,aA as bo,dC as fo,ar as Et,fD as xo,bi as fn,H as bi,B as xn,ch as wn,bB as Wt,ee as wo,at as So,cl as vo,eJ as $o,s as fi,i as Ri,bg as Sn,al as Li,cg as Co,W as ko,c9 as vn,a4 as Io,g0 as $n,g1 as ci,ft as Ai,ec as Bt,bZ as To,fx as Do,b6 as jo,cf as Oo}from"./index-T6cemxxv.js";import{a as w,b as Tt}from"./sentry-BoIfGJBF.js";import{n}from"./mui-GaW5Gk_e.js";import{_ as Po}from"./liveblocks--WiFaeN0.js";import{Fm as Ro,bG as at,b_ as Cn,cp as kn,ck as zi,Fn as Bi,bs as xi}from"./zeni-epic-state-BtVcBgvu.js";import In from"./InvoiceUploadSection-DYCjz9CI-6zrHw8Gx.js";import{r as Lo,f as Mt,d as wt,p as wi,u as Mi,h as De}from"./types-DyvtCprH-VF9iATMs.js";import{I as Ao}from"./LabeledCreatableSingleSelectField-DUTQh416-TJ_Bq1qn.js";import{S as zo}from"./CurrencySelectField-KvKyemY6-rYSOJjSm.js";import{u as Bo}from"./plaid-CNcdZ4gc.js";import{e as Mo}from"./BankAccountSection-BabhrBM7-BRSx6sCU.js";import{W as Fo,A as No}from"./BankAccountWarningSection-yT2UAd12-hc4ZMuSF.js";import{o as Eo}from"./radio-default-CiSgisfh-CkW2sMb1.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./recharts-BQ8VH5gX.js";import"./utils-BGRwbgi2.js";import"./AttachmentView-DB_V1qT1-YRFnSBmh.js";import"./uploadReceipts-Dge0cNF1-CQe0GGy5.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]="322af73b-996f-4515-a64b-0b491f7ef6bd",e._sentryDebugIdIdentifier="sentry-dbid-322af73b-996f-4515-a64b-0b491f7ef6bd")}catch{}})();const Ne=(e,o)=>`${e}.${o}`,Fi={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Te}},dateFormat:Wo,common:Uo}=we.getLocalizedStrings(),Vo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:h,sectionId:u,isReimbursementCommentingEnabled:j,isDisabled:c,isAddReimbursementDisabled:$,companyMileageConfigInfo:p,reimbursementId:d,classHierarchyList:R})=>{const S=Le(),l=vt(),y=Nt(),x=`dashboard_${l.currentTenant?.companyId}`,g=St(),{formState:{errors:b},getValues:O,trigger:V}=rt(),k=Uo.strings.empty,T=O(Ne(u,"distanceInMiles")),B=Fi.largeLabelWidth.value(S),ie=O(Ne(u,"class")),ae=r.find(D=>D.classId===ie?.selectedOption),re=Ne(u,"class"),M=Oe(b,re);w.useEffect(()=>{ie?.selectedOption!=null&&(ae?.isDeleted===!0||M)&&V(re)},[ie?.selectedOption,ae?.isDeleted,r,re,V]);const ne={application:"dashboard",companyId:l.currentTenant?.companyId,tab:"reimbursement",entityId:d},_=r.find(D=>D.classId===o.class),me={valueContainer:D=>({...D,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(vn,{isDisabled:c,label:{label:Te.transactionDate,width:B},style:{paddingBottom:Fi.paddingBottom.valuePx(S),width:"auto"},dateField:{name:Ne(u,"transactionDate"),placeholder:Te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Wo.visual.defaultInput,autoComplete:"off",maxDate:xi(),registerOptions:{required:!0,validate:D=>!!D}}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ai,{isDisabled:$?"disabled":void 0,style:{width:"auto"},label:{label:Te.distanceInMiles,width:B},formattedTextField:{type:"number",name:Ne(u,"distanceInMiles"),placeholder:Te.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:D=>D==null||D>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ai,{isDisabled:"disabled",label:{label:Te.amount,width:B},formattedTextField:{type:"number",name:Ne(`${u}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:ot(Te.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D==null||D>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&p?.mileageUnitAmount!=null?`${h.currencySymbol}${p?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(gi,{isDisabled:c,label:{label:Te.memo,width:B},style:{width:"auto"},text:{type:"text",name:Ne(u,"memo"),placeholder:ot(Te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(Dt,{}),t.jsx(Ce,{isThreadAllowed:j&&d!=null,dashboardTabKey:ke({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${De("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ci,{isLoading:!1,label:{label:Te.department,width:B},additionalLabelInfo:ae?.isDeleted===!0&&Oe(b,Ne(u,"class"))?Te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Ne(u,"class"),placeholder:ot(Te.department),valueToId:D=>(J=>r.filter(pe=>pe.classId===J)[0]?.accountingClassNumber)(D),defaultValue:{selectedOption:_?.classId,allOptions:Ze(R,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:D=>D?.selectedOption!=null&&(r.find(J=>J.classId===D?.selectedOption)?.isDeleted!==!0||Te.deletedClassError)}},style:{borderBottom:`1px solid ${g.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Ne(u,"class"))})]})},Dt=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
5
|
+
min-height: 1px;
|
|
6
|
+
max-height: 1px;
|
|
7
|
+
`,Ni={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function _o({name:e,placeHolder:o,defaultValue:r,isDisabled:h,showAmountCurrencyError:u,style:j,allCurrencies:c}){const[$,p]=w.useState(!1),{getValues:d,formState:{errors:R}}=rt(),S=St(),l=Le(),y=h!=null,x=d(e),g=`${x?.amount} ${x?.currency?.selectedOption}`,b=Oe(R,e)&&Bt(R,`${e}.amount`)!=null,O=Oe(R,e)&&Bt(R,`${e}.currency`)!=null,V=u===!0&&(b||O),k=!V&&$===!1;return w.useEffect(()=>{k===!1&&p(!0)},[k]),t.jsx(pn,{onClickAway:()=>y===!1&&!V&&p(!1),children:t.jsx(Ho,{style:j,isDisabled:y,tabIndex:k&&!y?0:void 0,onClick:()=>y===!1&&p(!0),"data-testid":G("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[x?.amount!=null?t.jsx(Ei,{className:"amount-field",isVisible:k,children:g}):t.jsx(Ei,{className:"amount-field amount-placeholder",isVisible:k,children:o?.name}),t.jsxs(qo,{isVisible:!k,children:[t.jsx(Do,{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},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:h,style:{display:"flex",flexGrow:1,width:Ni.amounWidth.valuePercentage(l),cursor:"inherit"},bgColor:S.colors.background,isFieldError:b,shouldHighlightZeroAmount:!0}),k?null:t.jsx(Ko,{}),t.jsx(zo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:c.map(T=>({label:l==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:S.colors.background},isDisabled:h,style:{width:Ni.currencyWidth.valuePercentage(l),flexGrow:1},isOptionRemovable:!1})]})]})})})}const qo=n.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Ho=n.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
20
|
+
outline: none;
|
|
21
|
+
outline-width: 0;
|
|
22
|
+
input {
|
|
23
|
+
text-align: right;
|
|
24
|
+
}
|
|
25
|
+
`,Ko=n.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${i.sp3};
|
|
28
|
+
`,Ei=n(bn)`
|
|
29
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
30
|
+
padding: 0 ${i.sp3};
|
|
31
|
+
border-radius: ${i.sp1};
|
|
32
|
+
height: 100%;
|
|
33
|
+
align-items: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
&.amount-placeholder {
|
|
38
|
+
color: ${e=>e.theme.colors.grey1};
|
|
39
|
+
}
|
|
40
|
+
`,_e={width:new s(343,580,726),height:new s(a[6],a[6]),controlHeight:new s(a[6],a[6]),paddingTopBottom:new s(a[2],a[2]),marginRight:new s(a[2],a[2]),labelMarginLeft:new s(a[3],a[4]),labelMarginRight:new s(a[3],a[4]),labelMarginTop:new s(a[2],a[2])},Tn={infoLabel:new bi("extraSmallRegular","smallRegular")};function Go({isDisabled:e,label:o,currencyAmountField:r,style:h,errorInfoLabel:u,isAdditionalInfoLabelLoading:j,showAdditionalLabelTooltip:c=!1,additionalLabelTooltip:$,additionalInfoLabel:p,showAdditionalInfoLabel:d=!0}){const R=Le(),{formState:{errors:S}}=rt(),l=Oe(S,r.name)&&Bt(S,`${r.name}.amount`)!=null,y=Oe(S,r.name)&&Bt(S,`${r.name}.currency`)!=null,x=r.showAmountCurrencyError===!0&&(l||y),g=l||y||x;return t.jsxs(Yo,{size:R,style:h,isDisabled:e!=null,isAmountError:l,isCurrencyError:y,"data-testid":G("labeled-currency-amount-field",r.name),children:[t.jsx(To,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:_e.labelMarginLeft.value(R),marginRight:_e.labelMarginRight.value(R),marginTop:_e.labelMarginTop.value(R),width:o.width??"auto"}}),t.jsxs(Zo,{labelWidth:o.width,children:[t.jsx(_o,{...r,isDisabled:e,style:{flexGrow:1,height:_e.controlHeight.value(R)}}),g?t.jsx(Jo,{size:R,hasError:g,children:u}):null,(()=>{if(j===!0)return t.jsx(Xo,{children:t.jsx($t,{size:"Small",start:!0})});if(d&&p||x){let b=null;return c===!0&&d&&p&&(b=t.jsx(Sn,{placement:R==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Qo,{children:$??""}),children:t.jsx(ta,{children:t.jsx(ia,{})})})),t.jsxs(ea,{size:R,isError:x,hasToolTip:c,children:[b,p]})}})()]})]})}const Yo=n.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
45
|
+
width: ${e=>_e.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>_e.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>_e.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>_e.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>_e.paddingTopBottom.valuePx(e.size)};
|
|
50
|
+
|
|
51
|
+
:first-of-type {
|
|
52
|
+
border-top-left-radius: inherit;
|
|
53
|
+
border-top-right-radius: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:last-of-type {
|
|
57
|
+
border-bottom-left-radius: inherit;
|
|
58
|
+
border-bottom-right-radius: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus-within {
|
|
62
|
+
z-index: 2;
|
|
63
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
64
|
+
|
|
65
|
+
.amount-field {
|
|
66
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input:nth-of-type(1) {
|
|
70
|
+
background-color: ${e=>e.isAmountError?P.importantLight:e.theme.colors.background};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:nth-of-type(2) {
|
|
74
|
+
background-color: ${e=>e.isCurrencyError?P.importantLight:e.theme.colors.background};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
input {
|
|
78
|
+
text-align: left;
|
|
79
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
input:nth-of-type(1) {
|
|
83
|
+
background-color: ${e=>e.isAmountError?P.importantLight:e.theme.colors.background};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input:nth-of-type(2) {
|
|
87
|
+
background-color: ${e=>e.isCurrencyError?P.importantLight:e.theme.colors.background};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
z-index: 1;
|
|
92
|
+
outline: 1px solid
|
|
93
|
+
${e=>e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
94
|
+
input,
|
|
95
|
+
.amount-field {
|
|
96
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input:nth-of-type(1) {
|
|
100
|
+
background-color: ${e=>e.isAmountError?P.importantLight:e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input:nth-of-type(2) {
|
|
104
|
+
background-color: ${e=>e.isCurrencyError?P.importantLight:e.theme.colors.background};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,Jo=n.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?P.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${Tn.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${i.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,Zo=n.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
116
|
+
justify-content: flex-end;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
position: relative;
|
|
119
|
+
`,Qo=n(yi)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${i.sp1};
|
|
124
|
+
`,Xo=n.div`
|
|
125
|
+
padding-right: ${i.sp3};
|
|
126
|
+
padding-top: ${i.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,ea=n.label`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: flex-end;
|
|
132
|
+
color: ${e=>e.isError?P.important:e.theme.colors.hero};
|
|
133
|
+
&:hover {
|
|
134
|
+
color: ${e=>e.isError?P.importantDark:e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
${e=>`${Tn.infoLabel.style(e.size)}`};
|
|
137
|
+
padding-right: ${i.sp3};
|
|
138
|
+
text-align: right;
|
|
139
|
+
margin-top: ${e=>e.hasToolTip===!0?i.sp1:i.sp0};
|
|
140
|
+
`,ta=n.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${i.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,ia=n(jo)`
|
|
146
|
+
width: ${i.sp3};
|
|
147
|
+
height: ${i.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,ye=(e,o)=>`${e}.${o}`,At={largeLabelWidth:new s(120,120,160),smallLabelWidth:new s(85,85,160),paddingBottom:new s(a[3],a[2]),autoFillIconLeft:new s(-8,-24)},{dateFormat:na,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:oe}}}=we.getLocalizedStrings(),{strings:{empty:se}}=Dn,oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:h,merchantList:u,isAddReimbursementDisabled:j,sectionId:c,isReimbursementCommentingEnabled:$,isDisabled:p,autoFields:d=[],accountsHierarchyList:R,classHierarchyList:S,reimbursementId:l,tentativeMerchantName:y,allCurrencies:x,uncategorizedAccounts:g})=>{const b=Le(),O=vt(),V=Nt(),k=St(),{formState:{errors:T},getValues:B,trigger:ie}=rt(),ae=B(ye(c,"class")),re=h.find(v=>v.classId===ae?.selectedOption),M=ye(c,"class"),ne=Oe(T,M),_=B(ye(c,"account")),me=r.find(v=>v.qboId===_?.selectedOption||v.accountId===_?.selectedOption),D=ye(c,"account"),J=Oe(T,D);w.useEffect(()=>{ae?.selectedOption!=null&&(re?.isDeleted===!0||ne)&&ie(M)},[ae?.selectedOption,re?.isDeleted,h,M,ie]),w.useEffect(()=>{_?.selectedOption!=null&&(me?.isDeleted===!0||J)&&ie(D)},[_?.selectedOption,me?.isDeleted,r,D,ie]);const pe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!((v,U)=>{const ce=v.slice(1);let Ke=!1;return ce.forEach(N=>{N.account?.qboId!=null&&N.account?.qboId===U&&(Ke=!0)}),Ke})(o.recommendations,o.account),de=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,H=At.largeLabelWidth.value(b),he=At.smallLabelWidth.value(b),We=u.map(v=>v.id??se),ge={application:"dashboard",companyId:O.currentTenant?.companyId,tab:"reimbursement",entityId:l},be=`dashboard_${O.currentTenant?.companyId}`,le=r.find(v=>v.qboId===o.account),Ae=h.find(v=>v.classId===o.class),Ie={valueContainer:v=>({...v,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",(v=>v.charAt(0).toLowerCase()+v.slice(1))(o?.recommendedAccount?.reason??se)),fe=Ft(R,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||d.includes("merchant")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,children:t.jsx(Ao,{isDisabled:p!=null||j?"disabled":void 0,label:{label:oe.merchant,width:H},style:{width:"auto"},creatableSingleSelectField:{name:ye(c,"merchant"),placeholder:oe.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??se,allOptions:We},registerOptions:{required:!0,validate:v=>!!v.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:v=>u.find(U=>U.id===v)?.name??v})}),t.jsx(jt,{}),d.includes("transactionDate")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,children:t.jsx(vn,{isDisabled:p,label:{label:oe.transactionDate,width:H},style:{paddingBottom:At.paddingBottom.valuePx(b),width:"auto"},dateField:{name:ye(c,"transactionDate"),placeholder:oe.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:na.visual.defaultInput,autoComplete:"off",maxDate:xi(),registerOptions:{required:!0,validate:v=>!!v}}})}),t.jsx(jt,{}),d.includes("amount")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,isTwoLined:!0,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,children:t.jsx(Go,{isDisabled:p!=null||j?"disabled":void 0,label:{label:oe.amount,width:he},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${c}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:oe.addAmount,name:oe.addAmount},allCurrencies:x,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:oe.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:ln(o.homeCurrencyDetails,o.amount)||o.amount.currencyCode===Dn.currency.currencyCode||o.homeCurrencyDetails?.amount===0?void 0:`${Io("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`})}),t.jsx(jt,{}),d.includes("memo")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,children:t.jsx(gi,{isDisabled:p,label:{label:oe.memo,width:H},style:{width:"auto"},text:{type:"text",name:ye(c,"memo"),placeholder:ot(oe.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(jt,{}),d.includes("account")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.account`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("account",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,children:t.jsx(ci,{label:{label:oe.category,width:H},additionalLabelInfo:me?.isDeleted===!0&&Oe(T,ye(c,"account"))?oe.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:pe||de,name:ye(c,"account"),placeholder:oe.categoryPlaceholder,valueToId:v=>(U=>r.filter(ce=>ce.qboId===U)[0]?.qboId)(v),defaultValue:{selectedOption:le?.qboId??le?.accountId,allOptions:fe},style:{width:"100%"},customStyleConfig:Ie,registerOptions:{required:!0,validate:v=>v?.selectedOption!=null&&(r.find(U=>U.qboId===v?.selectedOption||U.accountId===v?.selectedOption)?.isDeleted!==!0||oe.deletedCategoryError)}},disableCurrentOption:v=>[g.expense?.qboId,g.income?.qboId].includes(v),style:{borderBottom:`1px solid ${k.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:pe?{tooltipProps:{text:Pe},label:{label:o.recommendedAccount?.accountName??se},checkBoxField:{name:ye(c,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:de?{label:{label:o.retainedAccount?.accountName??se},checkBoxField:{name:ye(c,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ye(c,"account"))}),d.includes("class")?t.jsx(pt,{children:t.jsx(gt,{windowSize:b,children:t.jsx(ht,{})})}):null,t.jsx(Ce,{isThreadAllowed:$&&l!=null,dashboardTabKey:ke({type:"details",key:`${e}.out_of_pocket.class`}),roomId:be,companyId:O.currentTenant?.companyId??se,companyName:O.currentTenant?.companyName??se,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${De("class",e,"out_of_pocket")}`},fieldThreadTargetElement:V?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ci,{isLoading:!1,label:{label:oe.department,width:H},additionalLabelInfo:re?.isDeleted===!0&&Oe(T,ye(c,"class"))?oe.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ye(c,"class"),placeholder:ot(oe.department),valueToId:v=>(U=>h.filter(ce=>ce.classId===U)[0]?.accountingClassNumber)(v),defaultValue:{selectedOption:Ae?.classId,allOptions:Ze(S,[])},style:{width:"100%"},customStyleConfig:Ie,registerOptions:{required:!0,validate:v=>v?.selectedOption!=null&&(h.find(U=>U.classId===v?.selectedOption)?.isDeleted!==!0||oe.deletedClassError)}},style:{borderBottom:`1px solid ${k.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ye(c,"class"))})]})},pt=n.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,ht=n(hi)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${i.sp3};
|
|
154
|
+
height: ${i.sp3};
|
|
155
|
+
`,gt=n.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>At.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
+
`,jt=n.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex: 1;
|
|
163
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
+
min-height: 1px;
|
|
165
|
+
max-height: 1px;
|
|
166
|
+
`,it=(e,o)=>`${e}.${o}`,qe={paddingTop:new s(a[5],a[4]),marginBottom:new s(a[3],a[3]),labelPaddingLeft:new s(a[3],a[4]),buttonWidth:new s(70,70),containerRightMargin:new s(a[3],a[8]),containerLeftMargin:new s(a[3],a[6]),deleteConfirmationTextMarginBottom:new s(a[2],a[0])},Y=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:h,lineIndex:u,accountList:j,classList:c,merchantList:$,hasFile:p,defaultCurrency:d,hasMultipleLineItems:R,fileRequiredLineIds:S,duplicateLineDetails:l,remiStatus:y,sectionId:x,isDisabled:g,isReimbursementCommentingEnabled:b,isAddReimbursementDisabled:O,style:V,autoFields:k=[],analytics:T,reimbursementId:B,tentativeMerchantName:ie,companyMileageConfigInfo:ae,uncategorizedAccounts:re,removeDuplicateReimbursementForLine:M,scrollToSection:ne,onDuplicateLineClick:_,onRemoveReimbursement:me,clearTentativeNameForLine:D,allCurrencies:J,accountsHierarchyList:pe,classHierarchyList:de})=>{const H=Le(),he=vt(),We=Nt(),ge=we.getLocalizedStrings().common.strings.empty,be={application:"dashboard",companyId:he.currentTenant?.companyId,tab:"reimbursement",entityId:B},le=`dashboard_${he.currentTenant?.companyId}`,{getValues:Ae}=rt(),[Ie,Pe]=w.useState(!1),fe=Ae(it(x,"reimbursementType"));return t.jsxs(ma,{style:V,windowSize:H,children:[t.jsxs(la,{hasFile:p,windowSize:H,showDeleteConfirmation:Ie,children:[t.jsx(ha,{windowSize:H,children:R?`#${u+1} ${Y.reimbursement}`:Y.reimbursement}),Ie?t.jsxs(ua,{windowSize:H,children:[t.jsx(ca,{windowSize:H,children:Y.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ri,{label:Y.buttons.cancel,onClick:()=>Pe(!1),style:{width:qe.buttonWidth.value(H),marginLeft:H==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":G("delete-remi-button",Y.buttons.cancel)}),t.jsx(Ri,{label:Y.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),D?.(e.lineId??"1"),Pe(!1),M(e.lineId),me(u)},style:{width:qe.buttonWidth.value(H)},size:"small",variant:"danger","data-testid":G("delete-remi-button",Y.buttons.remove)})]})]}):!R||h!=="draft"&&y!=="rejected"?null:t.jsx(sa,{className:"deleteIconWrapper",windowSize:H,onClick:()=>Pe(!0),"data-testid":G("delete-remi-button",e.lineId),children:t.jsx(Sn,{enterDelay:600,title:Y.deleteReimbursement,placement:"top-end",children:t.jsx(da,{})})})]}),S.includes(e.lineId)?t.jsx(un,{title:Y.missingReceipt,description:Y.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:H,children:[l?.duplicateLineId!=null?t.jsxs(pa,{children:[Y.thisExpense," ",l.isDuplicateWithinTransaction?t.jsx(Wi,{"data-testid":G("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),ne(l.duplicateLineId)),children:Y.viewOriginalExpense}):t.jsx(Wi,{"data-testid":G("view-duplicate-expense"),onClick:()=>{l.duplicateTransactionId!=null&&l.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),_(l.duplicateTransactionId,l.duplicateLineId))},children:Y.viewOriginalExpense})]}):null,t.jsx(Ce,{isThreadAllowed:b&&B!=null,dashboardTabKey:ke({type:"details",key:fe===Y.mileageKey?`${u}.mileage.reimbursementType`:`${u}.out_of_pocket.reimbursementType`}),roomId:le,companyId:he.currentTenant?.companyId??ge,companyName:he.currentTenant?.companyName??ge,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...be,entityType:`reimbursement.details.${De("reimbursementType",u,fe===Y.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:We?.sharedRef?.contentWrapperRef,style:{borderRadius:l?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:g!=null,haveBorderRadius:l?.duplicateLineId==null,children:[t.jsx(Li,{isDisabled:g!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:Y.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:qe.labelPaddingLeft.value(H),borderTopLeftRadius:"inherit"},showOutline:!(b&&B!=null),radioField:{name:it(x,"reimbursementType"),id:`${it(x,"reimbursementType")}.${Y.outOfPocketKey}`,value:Y.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(Li,{isDisabled:g!=null||O?"disabled":void 0,isContainerClickable:!0,label:{label:Y.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:qe.labelPaddingLeft.value(H),borderTopRightRadius:"inherit"},showOutline:!(b&&B!=null),radioField:{name:it(x,"reimbursementType"),id:`${it(x,"reimbursementType")}.${Y.mileageKey}`,value:Y.mileageKey}})]})}),t.jsx(fa,{}),fe===Y.outOfPocketKey?t.jsx(oa,{lineIndex:u,reimbursementId:B,uncategorizedAccounts:re,isReimbursementCommentingEnabled:b,isDisabled:g,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?at(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:it(x,"outOfPocket"),accountList:j,classList:c,autoFields:k,merchantList:$,tentativeMerchantName:ie,allCurrencies:J,isAddReimbursementDisabled:O,accountsHierarchyList:pe,classHierarchyList:de}):t.jsx(Vo,{lineIndex:u,reimbursementId:B,isReimbursementCommentingEnabled:b,isDisabled:g,mileage:{transactionDate:e.mileage.transactionDate!=null?at(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:c,sectionId:it(x,"mileage"),companyMileageConfigInfo:ae,defaultCurrency:d,isAddReimbursementDisabled:O,classHierarchyList:de})]})]})},ra=n.div``,la=n.div`
|
|
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
|
+
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
|
+
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
170
|
+
justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
|
|
171
|
+
margin-bottom: ${i.sp3};
|
|
172
|
+
align-items: center;
|
|
173
|
+
`,sa=n.div`
|
|
174
|
+
width: ${i.sp3};
|
|
175
|
+
height: ${i.sp3};
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
display: none;
|
|
178
|
+
color: ${e=>e.windowSize==="small"?P.important:e.theme.colors.hero};
|
|
179
|
+
&:hover {
|
|
180
|
+
color: ${P.important};
|
|
181
|
+
}
|
|
182
|
+
`,Wi=n.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,da=n(Co)`
|
|
186
|
+
width: ${i.sp3};
|
|
187
|
+
height: ${i.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,ca=n.div`
|
|
190
|
+
margin-bottom: ${e=>qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,ua=n(fi)`
|
|
192
|
+
color: ${e=>e.theme.colors.hero};
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
+
`,ma=n.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
padding-top: ${e=>qe.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>qe.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>qe.containerLeftMargin.valuePx(e.windowSize)};
|
|
202
|
+
.deleteIconWrapper {
|
|
203
|
+
${e=>e.windowSize==="small"&&`
|
|
204
|
+
display: block;
|
|
205
|
+
`}
|
|
206
|
+
}
|
|
207
|
+
&:hover {
|
|
208
|
+
.deleteIconWrapper {
|
|
209
|
+
display: block;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`,pa=n(ko)`
|
|
213
|
+
padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
|
|
214
|
+
background-color: ${P.alertLight};
|
|
215
|
+
color: ${P.brandColorGoldDark};
|
|
216
|
+
border-top-left-radius: inherit;
|
|
217
|
+
border-top-right-radius: inherit;
|
|
218
|
+
`,ha=n(Et)`
|
|
219
|
+
color: ${e=>e.theme.colors.primary};
|
|
220
|
+
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
+
`,ga=n.div`
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
225
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
226
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
227
|
+
border-radius: ${i.sp2};
|
|
228
|
+
margin-bottom: ${e=>qe.marginBottom.valuePx(e.windowSize)};
|
|
229
|
+
`,ya=n.div`
|
|
230
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
+
min-width: 1px;
|
|
232
|
+
max-width: 1px;
|
|
233
|
+
`,ba=n.div`
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
237
|
+
border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
|
|
238
|
+
`,fa=n.div`
|
|
239
|
+
display: flex;
|
|
240
|
+
flex: 1;
|
|
241
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
242
|
+
min-height: 1px;
|
|
243
|
+
max-height: 1px;
|
|
244
|
+
`,xa=(e,o)=>`${e}.${o}`,yt={labelWidth:new s(120,160,160),paddingBottom:new s(a[3],a[3]),paddingTop:new s(12,a[3]),marginBottom:new s(12,a[3]),containerRightMargin:new s(a[3],a[8]),containerLeftMargin:new s(a[3],a[6])},jn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:h,reimbursementId:u,style:j})=>{const c=Le(),$=vt(),p=Nt(),d=`dashboard_${$.currentTenant?.companyId}`,R=we.getLocalizedStrings(),S=R.spendManagement.reimbursement.reimbursementDetail,l=R.common.strings.empty,y=yt.labelWidth.value(c);return t.jsxs(wa,{style:j,windowSize:c,children:[t.jsx(va,{windowSize:c,children:S.whatFor}),t.jsx(Sa,{children:t.jsx(Ce,{isThreadAllowed:e&&u!=null,dashboardTabKey:ke({type:"details",key:"whatFor"}),roomId:d,companyId:$.currentTenant?.companyId??l,companyName:$.currentTenant?.companyName??l,entityId:u,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:$.currentTenant?.companyId,tab:"reimbursement",entityId:u,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(gi,{isDisabled:r,label:{label:S.reportTitle,width:y},text:{type:"text",name:xa(o,"reportTitle"),placeholder:S.lunchWithClient,defaultValue:h,autoComplete:"off",options:{required:!0,validate:x=>!!x}},style:{width:"auto",borderRadius:i.sp2}})})})]})},wa=n.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
padding-top: ${e=>yt.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>yt.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>yt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>yt.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
+
`,Sa=n.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
255
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
257
|
+
border-radius: ${i.sp2};
|
|
258
|
+
`,va=n(Et)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>yt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,E={largeLabelWidth:new s(120,120,220),marginTop:new s(28,8),paymentToMarginTop:new s(0,a[4]),marginBottom:new s(a[5],a[4]),paymentToMarginBottom:new s(12,a[3]),totalMarginBottom:new s(a[3],a[3]),reimbursementSectionLeftMargin:new s(a[3],a[6]),reimbursementSectionRightMargin:new s(a[3],a[8]),invoiceSectionLeftMargin:new s(a[3],a[8]),invoiceSectionRightMargin:new s(a[3],a[6]),rightSectionWidth:new s(100,58),firstOrLastItemHeight:new s(390,760),itemHeight:new s(390,459),duplicateBannerWrapperMarginTop:new s(a[5],a[3]),duplicateBannerWrapperMarginRight:new s(a[3],a[8]),duplicateBannerWrapperMarginBottom:new s(a[5],a[3]),duplicateBannerWrapperMarginLeft:new s(a[3],a[6])},$a={total:new bi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:K},billPay:{vendorCreation:{achDetails:Ot}}},common:{currency:{currencyCode:Pt}}}=we.getLocalizedStrings(),On=e=>{let o=0,r=Pt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const h=e;o=h.outOfPocket.amount??0,r=h.outOfPocket.currencyCode??Pt}else{const h=e;o=h.outOfPocket.amount?.amount??0,r=h.outOfPocket.amount?.currencyCode??Pt}return(e.homeCurrencyConversions?.currencyCode??Pt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ca=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:h,scheduleDate:u,paymentDate:j,hasDuplicateLine:c,approvedDate:$,isFirstOrLastListItem:p,index:d,reimbursementSectionRef:R,showSkipAutoFill:S,lineData:l,currencyConversionState:y,authParams:x,uploadInvoiceEndPoint:g,accountList:b,classList:O,merchantList:V,remiStage:k,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:ie,totalAmount:ae,showTotalAmountLoader:re,totalNumberOfLines:M,defaultCurrency:ne,bankAccounts:_,fileRequiredLineIds:me,isAddReimbursementDisabled:D,duplicateLineByLineId:J,remiStatus:pe,file:de,uncategorizedAccounts:H,reportTitle:he,recommendationFetchState:We,tentativeMerchantName:ge,paymentTo:be,analytics:le,companyMileageConfigInfo:Ae,loggedInUserDepartmentId:Ie,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:fe,setRefByLineId:v,setCurrentLineIdForUpload:U,onDuplicateLineClick:ce,setUploadedReceiptPayload:Ke,removeDuplicateReimbursementForLine:N,onReceiptsUpload:Ge,scrollToSection:lt,onRemoveReimbursement:st,onAddReimbursement:Ue,clearTentativeNameForLine:Re,onReplaceClick:Qe,onDeleteBankAccount:ze,updateInvoiceUploadFetchState:Ye,removeFileFromLine:Je,allCurrencies:Xe,accountsHierarchyList:et,classHierarchyList:ue})=>{const{formState:{errors:dt}}=rt(),ct=w.useRef(null);w.useEffect(()=>(v(Q=>({...Q,[`L${l.lineId}`]:ct.current})),()=>{v(Q=>({...Q,[`L${l.lineId}`]:null}))}),[l.lineId,v]);const Z=Le(),Be=k==="draft"?K.newReimbursementTitle:K.editReimbursementTitle,W=E.largeLabelWidth.value(Z),Se=_.map(Q=>Q.bankAccountId),ut=l.reimbursementType===K.outOfPocketKey&&On(l)>=75&&de==null;return t.jsxs(Va,{ref:R,windowSize:Z,children:[t.jsx(_a,{ref:Q=>{Q!=null&&(ct.current=Q)},windowSize:Z,bottomSeperator:M!==1,showSkipAutoFill:S,isFirstItem:d===0,children:t.jsx(In,{customError:ut?K.requireReceipt:void 0,analytics:le,showAutofill:!1,uploadInvoiceEndPoint:g,authParams:x,entityId:D?"":void 0,file:de,style:{width:"auto",padding:0,height:p?E.firstOrLastItemHeight.valuePx(Z):E.itemHeight.valuePx(Z),margin:Z==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ye,onInvoiceUpload:Q=>{l.reimbursementType!==K.outOfPocketKey||(X=>!(X.outOfPocket.account.selectedOption!=null||X.outOfPocket.amount!=null&&X.outOfPocket.amount.amount!=0||X.outOfPocket.class.selectedOption!=null&&X.outOfPocket.class.selectedOption!==Ie||X.outOfPocket.memo!==""&&X.outOfPocket.memo!=null||X.outOfPocket.merchant.selectedOption!=null||X.outOfPocket.transactionDate!=null))(l)?Ge(Q,Number(l.lineId),!0):(U(Number(l.lineId)),Ke(Q),Qe?.())},dropFilePlaceholder:{upload:K.dropReceipt.upload,receipt:K.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!D,pdfTitle:M>1?`#${d+1} Receipt`:"Receipt",onDeleteClick:()=>{Ye?.("In-Progress"),setTimeout(()=>Je?.(Number(l.lineId)))},onReplaceClick:()=>{U(Number(l.lineId)),Qe?.()},allowMultiFiles:M===d+1,type:"reimbursement"})}),t.jsxs(Ua,{windowSize:Z,children:[d===0&&Z!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(La,{children:Be}),t.jsx(qa,{children:t.jsx(xo,{progressSectionObj:o,createDate:h,paymentDate:j,scheduleDate:u,approvedDate:$,isBillUploaded:r!=null||e==="Completed"})}),ie&&t.jsxs(Ta,{children:[t.jsx(ka,{}),t.jsx(Ra,{children:K.banner})]}),c&&t.jsxs(Da,{size:Z,children:[t.jsx(Ia,{}),t.jsxs(Oa,{children:[t.jsx(ja,{children:K.thereSeems}),t.jsx(Pa,{children:K.pleaseFind})]})]}),t.jsx(jn,{isReimbursementCommentingEnabled:B,sectionId:Mt,reportTitle:he,reimbursementId:r})]}):null,t.jsx(aa,{analytics:le,reimbursementId:r,onDuplicateLineClick:ce,uncategorizedAccounts:H,sectionId:`${wi}.${d}`,scrollToSection:lt,lineIndex:d,lineData:l,accountList:b,classList:O,merchantList:V,autoFields:l.lineId!=null?T[l.lineId]:[],currencyConversionState:y,recommendationFetchState:We,onRemoveReimbursement:st,hasMultipleLineItems:M>1,clearTentativeNameForLine:Re,tentativeMerchantName:ge,hasFile:de!=null,companyMileageConfigInfo:Ae,defaultCurrency:ne,remiStage:k,remiStatus:pe,fileRequiredLineIds:me,allCurrencies:Xe,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:D,accountsHierarchyList:et,classHierarchyList:ue,duplicateLineDetails:J[l.lineId],removeDuplicateReimbursementForLine:N}),M!==1&&M===d+1&&t.jsxs(t.Fragment,{children:[t.jsxs(za,{windowSize:Z,children:[t.jsx(Ba,{children:K.total}),re?t.jsx(Ma,{windowSize:Z,children:t.jsx(Fa,{children:t.jsx($t,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn(ae,"USD","$"),integerStyles:zt.h6Regular.cssObject,decimalStyles:zt.standardRegular.cssObject})]}),t.jsxs(Ea,{windowSize:Z,onClick:()=>{D===!1&&Ue()},isDisabled:D,"data-testid":G("add-reimbursement-row"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:K.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Aa,{windowSize:Z,children:K.receivePaymentTo}),t.jsx(Na,{windowSize:Z,shouldDisplay:_.length>0,children:t.jsx(yn,{label:{label:K.yourBankAccount,width:W},style:{width:"auto"},singleSelectField:{singleSelect:{name:wt,placeholder:ot(K.yourBankAccount),showValueEyeIcon:!D,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:ze,getTooltipInfo:Q=>Pn(_,Q),onClickCreateBankAccount:()=>fe(!0),getLabelForId:Q=>Ln(_,Q),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:D?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:be,allOptions:Se},registerOptions:{required:!0,validate:Q=>!!Q.selectedOption}},isFunctional:!0})}),t.jsxs(Wa,{shouldDisplay:_.length===0,windowSize:Z,hasError:Oe(dt,wt),onClick:()=>{D===!1&&fe(!0)},isDisabled:D,"data-testid":G("remi-add-bank-account-container"),children:[t.jsx(Vi,{}),t.jsx(Ui,{children:K.addBankAccount})]})]}):null]})]})]})},Pn=(e,o)=>{const r=Rn(e,o);return r==null?`${Ot.bankRoutingNumber} ${K.emptyValue}
|
|
262
|
+
${Ot.bankAccountNumber} ${K.emptyValue}`:`${Ot.bankRoutingNumber} ${r.bankRoutingNumberAch??K.emptyValue}, ${r.bankName??K.emptyValue}
|
|
263
|
+
${Ot.bankAccountNumber} ${r.bankAccountNumber??K.emptyValue}`},Rn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Rn(e,o);return r==null?K.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${K.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:K.selectBankAccount},ka=n(hi)`
|
|
264
|
+
color: ${e=>e.theme.colors.primary};
|
|
265
|
+
width: ${i.sp3};
|
|
266
|
+
height: ${i.sp3};
|
|
267
|
+
`,Ia=n($o)`
|
|
268
|
+
width: ${i.sp4};
|
|
269
|
+
height: ${i.sp4};
|
|
270
|
+
color: ${P.brandColorGoldDark};
|
|
271
|
+
`,Ta=n.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
gap: ${i.sp2};
|
|
274
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
275
|
+
padding: ${i.sp3};
|
|
276
|
+
border-radius: ${i.sp2};
|
|
277
|
+
align-items: center;
|
|
278
|
+
margin: 0 ${i.sp8} 0 ${i.sp6};
|
|
279
|
+
`,Da=n.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
gap: ${i.sp2};
|
|
282
|
+
padding: ${i.sp3};
|
|
283
|
+
border-radius: ${i.sp2};
|
|
284
|
+
align-items: start;
|
|
285
|
+
margin-top: ${e=>E.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
+
margin-right: ${e=>E.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
+
margin-bottom: ${e=>E.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
+
margin-left: ${e=>E.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
+
background-color: ${P.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,ja=n(Wt)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Oa=n.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Pa=n(fi)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Ra=n.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,La=n(vo)`
|
|
300
|
+
letter-spacing: -0.02em;
|
|
301
|
+
color: ${e=>e.theme.colors.primary};
|
|
302
|
+
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
+
`,Aa=n(Et)`
|
|
304
|
+
letter-spacing: -0.02em;
|
|
305
|
+
color: ${e=>e.theme.colors.primary};
|
|
306
|
+
margin-top: ${e=>E.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
+
margin-bottom: ${e=>E.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
+
`,za=n.div`
|
|
311
|
+
padding: ${i.sp3};
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: space-between;
|
|
315
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
316
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
317
|
+
border-radius: ${i.sp2};
|
|
318
|
+
color: ${e=>e.theme.colors.hero};
|
|
319
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
+
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
`,Ba=n(fn)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,Ma=n(xn)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${$a.total.style(e.windowSize)}`};
|
|
334
|
+
`,Fa=n.div`
|
|
335
|
+
padding-right: ${i.sp3};
|
|
336
|
+
height: 30px;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
`,Na=n.div`
|
|
340
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
342
|
+
margin-bottom: ${i.sp3};
|
|
343
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
344
|
+
border-radius: ${i.sp2};
|
|
345
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
346
|
+
display: ${e=>e.shouldDisplay?"unset":"none"};
|
|
347
|
+
`,Ea=n.div`
|
|
348
|
+
padding: ${i.sp3};
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
border: 1px solid
|
|
353
|
+
${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
354
|
+
border-radius: ${i.sp2};
|
|
355
|
+
color: ${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
356
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
357
|
+
&:hover {
|
|
358
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
359
|
+
border: 1px solid
|
|
360
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
361
|
+
}
|
|
362
|
+
margin-top: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
366
|
+
`,Wa=n.div`
|
|
367
|
+
padding: ${i.sp3};
|
|
368
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
369
|
+
align-items: center;
|
|
370
|
+
justify-content: center;
|
|
371
|
+
border: 1px solid
|
|
372
|
+
${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
373
|
+
border-radius: ${i.sp2};
|
|
374
|
+
color: ${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
378
|
+
border: 1px solid
|
|
379
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
380
|
+
}
|
|
381
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
384
|
+
`,Ui=n(Wt)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,Vi=n(wn)`
|
|
387
|
+
margin-right: ${i.sp2};
|
|
388
|
+
width: ${i.sp3};
|
|
389
|
+
height: ${i.sp3};
|
|
390
|
+
`,Ua=n.div`
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
+
`,Va=n.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
width: 100%;
|
|
397
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
+
`,_a=n.div`
|
|
399
|
+
height: 100%;
|
|
400
|
+
background: ${e=>e.theme.colors.grey3};
|
|
401
|
+
border-radius: ${i.sp2};
|
|
402
|
+
width: ${e=>e.windowSize==="small"?"auto":"42%"};
|
|
403
|
+
margin-left: ${e=>E.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
+
margin-right: ${e=>E.invoiceSectionRightMargin.valuePx(e.windowSize)};
|
|
405
|
+
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
|
+
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
|
|
407
|
+
margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
|
|
408
|
+
`,qa=n.div`
|
|
409
|
+
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
+
`,Ha={total:new bi("largeMedium","h6Medium")},ee={largeLabelWidth:new s(120,120,220),marginBottom:new s(a[5],a[4]),addBankAccountMarginBottom:new s(a[5],a[5]),marginTop:new s(a[0],78),paymentToMarginTop:new s(0,a[4]),totalMarginBottom:new s(a[3],a[3]),rightMargin:new s(a[3],a[8]),leftMargin:new s(a[3],a[6]),paymentToMarginBottom:new s(12,a[3])},nt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:h,showSkipAutoFill:u,isReimbursementCommentingEnabled:j,isAutoFieldsExist:c,totalAmount:$,defaultCurrency:p,hasDuplicateLine:d,bankAccounts:R,fileRequiredLineIds:S,companyMileageConfigInfo:l,analytics:y,reimbursementId:x,currencyConversionStatus:g,setShowSkipAutoFill:b,setShowBankAccountPage:O,removeDuplicateReimbursementForLine:V,onReceiptsUpload:k,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:ie,removeFileFromLine:ae,onReplaceClick:re,updateInvoiceUploadFetchState:M,clearTentativeNameForLine:ne,onDeleteBankAccount:_,uncategorizedAccounts:me,isSignedInUserReimbursementCreator:D,duplicateLineByLineId:J,showTotalAmountLoader:pe,scrollContainerRef:de})=>{const{control:H,formState:{errors:he}}=rt(),{fields:We,append:ge,remove:be}=mo({name:wi,control:H}),le=We,Ae=w.useRef(null),Ie=W=>{setTimeout(()=>{be(W)})},{tentativeMerchantNameByLineId:Pe,remiStage:fe,remiStatus:v}=e,U=!D||fe==="pending_approval"&&v!=="rejected"&&o||fe==="pending_approval"&&v==="rejected",ce=U?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:R,Ke=ce.map(W=>W.bankAccountId),N=Le(),Ge=ee.largeLabelWidth.value(N),lt=e.whatForSection.reportTitle,st=e.accountList.accounts,Ue=e.accountsHierarchyList,Re=e.classHierarchyList,Qe=e.classList.classes,ze=e.merchantList.merchants,Ye=e.addRemiAutoFieldsByLineId,Je=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(W=>Number(W)),0),Xe=()=>{const W=le[le.length-1],Se=An(le.length,Number(W.lineId)>Je?String(Number(W.lineId)+1):String(Je+1),Ue,Re,ze,p,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ge(Se,{shouldFocus:!1})}),T(Number(Se.lineId)),b(!0),setTimeout(()=>Mi(Ae.current,de?.current),50)},[et,ue]=w.useState({}),dt=w.useCallback(W=>{const Se=et[`L${W}`];Se!=null&&Mi(Se,de?.current)},[et,de]),ct=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Z=e.reimbursementInfo?.paymentDate!=null?at(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Be=e.reimbursementInfo?.expectedDepositDate??Z;return t.jsxs(Za,{windowSize:N,showSkipAutoFill:u,children:[le.map((W,Se)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:V,onDuplicateLineClick:B,scrollToSection:dt,setRefByLineId:ue,duplicateLineByLineId:J,reimbursementId:x,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:me,progressSectionObj:ct,createDate:e.createTime,paymentDate:Be,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:le.length-1===Se||Se===0,index:Se,reimbursementSectionRef:Ae,remiStage:fe,remiStatus:v,authParams:r,file:W.file,uploadInvoiceEndPoint:h,showSkipAutoFill:u,lineData:W,currencyConversionState:g[W.lineId],recommendationFetchState:e.lineDetailSection[W.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:ie,onReplaceClick:re,onReceiptsUpload:k,removeFileFromLine:ae,isReimbursementCommentingEnabled:j,isAutoFieldsExist:c,reportTitle:lt,accountList:st,classList:Qe,merchantList:ze,autoFieldsByLineId:Ye,onRemoveReimbursement:Ie,onAddReimbursement:Xe,totalAmount:$,showTotalAmountLoader:pe,hasDuplicateLine:d,totalNumberOfLines:le.length,updateInvoiceUploadFetchState:M,clearTentativeNameForLine:ne,tentativeMerchantName:Pe[W.lineId],companyMileageConfigInfo:l,defaultCurrency:p,setShowBankAccountPage:O,paymentTo:e.paymentTo,bankAccounts:ce,onDeleteBankAccount:_,analytics:y,fileRequiredLineIds:S,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:U,accountsHierarchyList:Ue,classHierarchyList:Re,isSignedInUserReimbursementCreator:D},W.lineId)),le.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,t.jsx(Xt,{windowSize:N,children:t.jsxs(Qa,{windowSize:N,children:[t.jsx(Xa,{children:nt.total}),pe?t.jsx(tr,{windowSize:N,children:t.jsx(ir,{children:t.jsx($t,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(gn,{amount:kn($,zi.currencyCode,zi.currencySymbol),integerStyles:zt.h6Regular.cssObject,decimalStyles:zt.standardRegular.cssObject})]})})]}),t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,t.jsx(Xt,{windowSize:N,children:t.jsxs(nr,{windowSize:N,onClick:()=>{U===!1&&Xe()},isDisabled:U,"data-testid":G("add-reimbursement-container"),children:[t.jsx(qi,{}),t.jsx(_i,{children:nt.addReimbursement})]})})]}),t.jsxs(ei,{children:[N!=="small"?t.jsx(Qt,{windowSize:N}):null,D?t.jsxs(Xt,{windowSize:N,children:[t.jsx(er,{windowSize:N,children:nt.receivePaymentTo}),t.jsx(Ja,{windowSize:N,shouldDisplay:ce.length>0,children:t.jsx(yn,{label:{label:nt.yourBankAccount,width:Ge},style:{width:"auto"},singleSelectField:{singleSelect:{name:wt,placeholder:ot(nt.yourBankAccount),showValueEyeIcon:!U,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:_,getTooltipInfo:W=>Pn(ce,W),onClickCreateBankAccount:()=>O(!0),getLabelForId:W=>Ln(ce,W),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:U?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ke},registerOptions:{required:!0,validate:W=>!!W.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:ce.length===0,windowSize:N,onClick:()=>{U===!1&&O(!0)},hasError:Oe(he,wt),isDisabled:U,"data-testid":G("remi-add-bank-account-container"),children:[t.jsx(qi,{}),t.jsx(_i,{children:nt.addBankAccount})]})]}):null]})]})]})},An=(e,o,r,h,u,j,c,$)=>{const p=Ga(r,h,u,j,c,$);return{lineIndex:e,lineId:o,reimbursementType:nt.outOfPocketKey,file:void 0,outOfPocket:p,mileage:Ya(h,j,$)}},Ga=(e,o,r,h,u,j)=>({transactionDate:void 0,class:{allOptions:He(Ze(o,[])),selectedOption:j},account:{allOptions:He(Ft(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:h.currencyCode,currencySymbol:h.currencySymbol,currency:{allOptions:u.map(c=>({label:`${c.currencyCode} - ${c.currency}`,value:c.currencyCode,countryCode:mi(c.countryCode)})),selectedOption:h.currencyCode??we.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(c=>c.id).filter(c=>!!c),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:He(Ze(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Ja=n.div`
|
|
411
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>ee.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
|
+
border-radius: ${i.sp2};
|
|
416
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
417
|
+
display: ${e=>e.shouldDisplay?"inherit":"none"};
|
|
418
|
+
`,Qt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Xt=n.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,Za=n.div`
|
|
423
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
margin-top: ${e=>ee.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,Qa=n.div`
|
|
427
|
+
padding: ${i.sp3};
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: space-between;
|
|
431
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
432
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
|
+
border-radius: ${i.sp2};
|
|
434
|
+
color: ${e=>e.theme.colors.hero};
|
|
435
|
+
margin-top: ${e=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
+
`,Xa=n(fn)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,er=n(Et)`
|
|
444
|
+
color: ${e=>e.theme.colors.primary};
|
|
445
|
+
margin-top: ${e=>ee.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>ee.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
449
|
+
`,tr=n(xn)`
|
|
450
|
+
display: flex;
|
|
451
|
+
width: calc(100% - 176px);
|
|
452
|
+
justify-content: flex-end;
|
|
453
|
+
color: ${e=>e.theme.colors.primary};
|
|
454
|
+
${e=>`${Ha.total.style(e.windowSize)}`};
|
|
455
|
+
`,ir=n.div`
|
|
456
|
+
padding-right: ${i.sp3};
|
|
457
|
+
height: 30px;
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
`,nr=n.div`
|
|
461
|
+
padding: ${i.sp3};
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
border: 1px solid
|
|
466
|
+
${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
467
|
+
border-radius: ${i.sp2};
|
|
468
|
+
|
|
469
|
+
color: ${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
470
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
471
|
+
&:hover {
|
|
472
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
473
|
+
border: 1px solid
|
|
474
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
475
|
+
}
|
|
476
|
+
margin-top: ${e=>ee.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>ee.marginBottom.valuePx(e.windowSize)};
|
|
480
|
+
`,or=n.div`
|
|
481
|
+
padding: ${i.sp3};
|
|
482
|
+
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
border: 1px solid
|
|
486
|
+
${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
487
|
+
border-radius: ${i.sp2};
|
|
488
|
+
color: ${e=>e.hasError===!0?P.important:e.theme.colors.hero};
|
|
489
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
490
|
+
&:hover {
|
|
491
|
+
color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
492
|
+
border: 1px solid
|
|
493
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?P.important:e.theme.colors.primary};
|
|
494
|
+
}
|
|
495
|
+
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>ee.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
+
`,_i=n(Wt)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,qi=n(wn)`
|
|
501
|
+
margin-right: ${i.sp2};
|
|
502
|
+
width: ${i.sp3};
|
|
503
|
+
height: ${i.sp3};
|
|
504
|
+
`,ei=n.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Ee={buttonWidth:new s(140,140),paddingLeft:new s(a[3],a[6]),paddingRight:new s(a[3],a[8]),subTitleMarginbottom:new s(a[2],a[3]),orSeperatorTopBottomMargin:new s(a[6],44),iconWidthHeight:new s(20,a[4])},Hi="userBankAccountPage",Rt="bankAccountSection",Ki=e=>`${e}_form`,ar=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:h,onEstablishConnectionClick:u,bankAccountToCreate:j,fetchBankNameByRoutingStatus:c,isDisabled:$,onSaveHandler:p,onUserBankDetailsUpdated:d,onFetchBankName:R,onBackClick:S})=>{const l=St(),y=Le(),x=rn({mode:"onBlur",reValidateMode:"onChange",defaultValues:w.useMemo(()=>(M=>({[Rt]:{bankRoutingNumber:M?.bankRoutingNumber,bankName:M?.bankName,bankAccountNumber:M?.bankAccountNumber,confirmedBankAccountNumber:M?.confirmedBankAccountNumber,bankAccountName:M?.bankAccountName}}))(j),[j])}),g=w.useCallback(M=>{u?.(M),S()},[S,u]),b=r.link_account_no_microdeposit,{open:O}=Bo({token:b.linkToken??null,onSuccess:g});w.useEffect(()=>{(at(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]);const[V,k]=w.useState(!1),T=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=we.getLocalizedStrings().common.footer,ie={onOkClick:()=>{k(!1),x.reset(),S()},onCancelClick:()=>{k(!1)}};w.useEffect(()=>{const M=x.watch((ne,{name:_})=>{_!=null&&ne!=null&&ho(()=>(async(me,D)=>{const J=D[Rt].bankRoutingNumber;d(D),me===`${Rt}.bankRoutingNumber`&&J?.length===9&&wo.test(J)===!0&&R?.(J)})(_,ne))});return()=>{M.unsubscribe()}}),w.useEffect(()=>{e?.fetchState==="Completed"&&S()},[e?.fetchState,S,o]);const ae=x.handleSubmit(M=>{c.fetchState!=="In-Progress"&&p()}),re=l.mode==="light"?new Pi(l.colors.brandColorJadeLight):new Pi(l.colors.brandColorJadeDark);return t.jsxs(rr,{children:[t.jsxs(pr,{windowSize:y,children:[V===!0?t.jsx(ui,{titleComponent:t.jsx(cn,{children:T.discardTitle}),descriptionComponent:t.jsx(dn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:ie}):null,t.jsx(Fo,{header:T.addBankAccount,isDirty:x.formState.isDirty,onBackClick:S,setShowConfirmationPopup:k}),t.jsx(lr,{}),t.jsxs(hr,{size:y,children:[t.jsx(go,{onClick:()=>{x.reset(),O()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(yo,{width:Ee.iconWidthHeight.valuePx(y),height:Ee.iconWidthHeight.valuePx(y)}),color:re},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(sr,{windowSize:y,children:[t.jsx(dr,{}),t.jsx(ur,{children:t.jsx(mr,{children:T.or})})]}),t.jsx(cr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(gr,{size:y,children:t.jsx(sn,{...x,children:t.jsxs("form",{id:Ki(Hi),onSubmit:ae,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(No,{warningText:T.accountExistWarning}):null,t.jsx(Mo,{bankAccountToCreate:j,fetchBankNameByRoutingStatus:c,sectionId:Rt})]})})})]}),t.jsx(mn,{formId:Ki(Hi),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ee.buttonWidth.value(y)},isDisabled:$!=null},cancelBtn:{label:B.cancel,style:{width:Ee.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{x.formState.isDirty?k(!0):(k(!1),x.reset(),S())}}})]})},rr=n.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,lr=n.div`
|
|
513
|
+
margin: ${i.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,sr=n.div`
|
|
516
|
+
margin: ${e=>Ee.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,dr=n.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,cr=n(So)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Ee.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,ur=n.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,mr=n(yi)`
|
|
528
|
+
background: ${e=>e.theme.colors.background};
|
|
529
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
530
|
+
border-radius: ${i.sp5};
|
|
531
|
+
width: 43px;
|
|
532
|
+
height: 25px;
|
|
533
|
+
display: flex;
|
|
534
|
+
align-items: center;
|
|
535
|
+
justify-content: center;
|
|
536
|
+
color: ${e=>e.theme.colors.grey1};
|
|
537
|
+
top: -11px;
|
|
538
|
+
position: absolute;
|
|
539
|
+
`,pr=n.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,hr=n.div`
|
|
544
|
+
padding-left: ${e=>Ee.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Ee.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,gr=n.div`
|
|
547
|
+
padding-left: ${e=>Ee.paddingLeft.valuePx(e.size)};
|
|
548
|
+
padding-right: ${e=>Ee.paddingRight.valuePx(e.size)};
|
|
549
|
+
padding-bottom: ${i.sp3};
|
|
550
|
+
`,je={containerWidth:new s(343,544),confirmationPopUpTitleMarginTop:new s(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new s(a[5],a[8]),submitButtonWidth:new s(145,156),cancelButtonWidth:new s(121,121),errorLineItemGap:new s(a[2],12),styledCloseIconRight:new s(a[3],a[8])},{footer:Gi}=we.getLocalizedStrings().common,$e=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Yi=({fetchState:e})=>{switch(e){case"Not-Started":default:return t.jsx(xr,{});case"In-Progress":return t.jsx($t,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(zn,{})}},yr=e=>{switch(e){case"Not-Started":default:return $e.detectDuplicates;case"In-Progress":return $e.detectingDuplicates;case"Completed":return $e.noDuplicatesFound}},br=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:h,setShowDuplicatePopup:u,analytics:j,reimbursementId:c,submitReport:$,fetchDuplicateReimbursement:p,clearDuplicateReimbursementDetail:d,clearRemiSaveStatus:R})=>{const S=Le(),[l,y]=Tt.useState(!0),x=di(e),g=di(o);Tt.useEffect(()=>{setTimeout(()=>{l&&(y(!1),o==="Not-Started"&&p())},2e3)},[o,p,l]),Tt.useEffect(()=>{x==="In-Progress"&&e==="Completed"&&(d(),u(!1))},[e,x,u,d]),Tt.useEffect(()=>{g==="In-Progress"&&o==="Completed"&&!r&&$()},[g,o,r,$]);const b=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[b?t.jsx(fr,{size:S}):null,t.jsx(ui,{action:{onOkClick:()=>{b?(d(),e==="Error"&&R(),y(!0)):(j?.trackReimbursementReviewDuplicateReportReimbursement(h,c),u(!1),lo())},onCancelClick:()=>{b?(d(),e==="Error"&&R(),u(!1)):(j?.trackReimbursementSubmitAnywayDuplicateReimbursement(h,c),$())}},shouldClickAway:b,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:b?Gi.resubmit:$e.primaryButtonText,secondaryButtonText:b?Gi.cancel:$e.secondaryButtonText,primaryButtonWidth:b?je.cancelButtonWidth.value(S):je.submitButtonWidth.value(S),secondaryButtonWidth:b?je.cancelButtonWidth.value(S):je.submitButtonWidth.value(S),descriptionComponent:t.jsx(vr,{size:S,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(ii,{isDisabled:!1,isSuccess:!l,children:[l?t.jsx($t,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(zn,{}),t.jsx(ti,{isDisabled:!1,children:l?$e.reviewingExpenses:$e.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Qi,{size:S,children:[t.jsx(Ji,{}),t.jsx(Zi,{children:o==="Error"?$e.failedToDetect:`${h} ${$e.duplicateExpensesFound}`})]}):t.jsxs(ii,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&h===0,children:[t.jsx(Yi,{fetchState:o}),t.jsx(ti,{isDisabled:o==="Not-Started",children:yr(o)})]}),e==="Error"?t.jsxs(Qi,{size:S,children:[t.jsx(Ji,{}),t.jsx(Zi,{children:$e.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(ii,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Yi,{fetchState:e}),t.jsx(ti,{isDisabled:e==="Not-Started",children:e==="Not-Started"?$e.submitReport:$e.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:S,children:$e.title}),showFooter:r||b,containerStyle:{width:je.containerWidth.value(S),maxWidth:"unset"}})]})},fr=n(hn)`
|
|
551
|
+
width: ${i.sp4};
|
|
552
|
+
height: ${i.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>je.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,Ji=n(fo)`
|
|
563
|
+
width: ${i.sp4};
|
|
564
|
+
height: ${i.sp4};
|
|
565
|
+
min-width: ${i.sp4};
|
|
566
|
+
color: ${P.brandColorGoldDark};
|
|
567
|
+
`,xr=n(Eo)`
|
|
568
|
+
width: ${i.sp3};
|
|
569
|
+
height: ${i.sp3};
|
|
570
|
+
min-width: ${i.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,ti=n.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,Zi=n.div`
|
|
576
|
+
color: ${P.brandColorGoldDark};
|
|
577
|
+
`,ii=n.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
gap: ${e=>e.isSuccess?i.sp2:i.sp3};
|
|
581
|
+
border: 1px solid
|
|
582
|
+
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
|
+
padding: ${i.sp3};
|
|
584
|
+
border-radius: ${i.sp2};
|
|
585
|
+
`,wr=n.div`
|
|
586
|
+
display: flex;
|
|
587
|
+
flex-direction: column;
|
|
588
|
+
gap: ${i.sp3};
|
|
589
|
+
margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:i.sp3};
|
|
590
|
+
`,Qi=n.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>je.errorLineItemGap.valuePx(e.size)};
|
|
594
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGold};
|
|
595
|
+
background-color: ${P.alertLight};
|
|
596
|
+
padding: ${i.sp3};
|
|
597
|
+
border-radius: ${i.sp2};
|
|
598
|
+
text-align: left;
|
|
599
|
+
`,Sr=n(pi)`
|
|
600
|
+
margin-top: ${e=>je.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
603
|
+
color: ${e=>e.theme.colors.primary};
|
|
604
|
+
word-break: break-word;
|
|
605
|
+
width: ${e=>e.size==="small"?"max-content":"-webkit-fill-available"};
|
|
606
|
+
`,vr=n(bn)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>je.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
610
|
+
margin-bottom: ${i.sp5};
|
|
611
|
+
margin-top: ${i.sp4};
|
|
612
|
+
white-space: pre-line;
|
|
613
|
+
width: -webkit-fill-available;
|
|
614
|
+
`,zn=n(bo)`
|
|
615
|
+
width: ${i.sp4};
|
|
616
|
+
height: ${i.sp4};
|
|
617
|
+
min-width: ${i.sp4};
|
|
618
|
+
color: ${P.success};
|
|
619
|
+
`,te={rightMargin:new s(a[3],a[8]),leftMargin:new s(a[3],a[6]),bottomMargin:new s(56,56),closeMarginTop:new s(0,19),closeMarginRight:new s(a[3],a[8]),rightSectionWidth:new s(100,58),leftSectionWidth:new s(100,42),footerButtonWidth:new s(120,165),right:new s(a[3],a[0]),actionsContainerRight:new s(a[0],a[6]),otherActionsContainerBottom:new s(58,44),duplicateBannerWrapperMarginTop:new s(a[5],a[3]),duplicateBannerWrapperMarginRight:new s(a[3],a[8]),duplicateBannerWrapperMarginBottom:new s(a[5],a[3]),duplicateBannerWrapperMarginLeft:new s(a[3],a[6]),navBarWidth:new s(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:m,bulkActions:Xi}},common:{currency:{currencyCode:Ve,currencySymbol:Lt},texts:{comments:$r},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Tr,unResolveComment:Dr}}},dateFormat:en}=we.getLocalizedStrings(),tn="editReimbursementDetailPage",nn=e=>`${e}_form`,ni=(e,o,r)=>{const h=[];return Object.values(e.lineDetailSection).forEach((u,j)=>{u?.lineId!=null&&h.push(((c,$,p,d,R,S,l,y,x)=>{const g=c.outOfPocket,b=c.mileage,O=g.merchant,V=g.recommendations;return{lineIndex:S,lineId:c?.lineId??String(S+1),reimbursementType:c?.type??m.outOfPocketKey,file:c?.file,homeCurrencyConversions:{amount:c?.homeCurrencyConversions?.amount??0,currencyCode:c?.homeCurrencyConversions?.currencyCode??l.currencyCode,currencySymbol:c?.homeCurrencyConversions?.currencySymbol??l.currencySymbol},outOfPocket:{recommendedAccount:g.recommendedAccount,isCategoryUpdateSelected:g.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:g.isCategoryFirstTimeAutofilled??!1,retainedAccount:g.retainedAccount,isRetainedCategorySelected:g.isRetainedCategorySelected??!1,recommendations:V??[],transactionDate:g?.transactionDate?.toDate()??void 0,class:{allOptions:He(Ze(p,[])),selectedOption:g?.lineDetail?.class?.classId??x},account:{allOptions:He(Ft($,V)),selectedOption:g.lineDetail?.account?.qboId??g.lineDetail?.account?.accountId},amount:{amount:g?.amount??0,currencyCode:g?.currencyCode??l.currencyCode,currencySymbol:g?.currencySymbol??l.currencySymbol,currency:{allOptions:y.map(k=>({label:`${k.currencyCode} - ${k.currency}`,value:k.currencyCode,countryCode:mi(k.countryCode)})),selectedOption:g?.currencyCode??l.currencyCode??Ve}},memo:g?.description??void 0,merchant:{allOptions:d.map(k=>k.id).filter(k=>!!k),selectedOption:O?.id?O?.id:O?.name?O?.name:c?.lineId!=null?R[c?.lineId]:void 0}},mileage:{transactionDate:b?.transactionDate?.toDate(),class:{allOptions:He(Ze(p,[])),selectedOption:b?.lineDetail?.class?.classId},distanceInMiles:b?.distanceMileage?.value,amount:{amount:b?.amount??0,currencyCode:b?.currencyCode??l.currencyCode,currencySymbol:b?.currencySymbol??l.currencySymbol},memo:b?.description}}})(u,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,j,o,e.allCurrencies,e.loggedInUserDepartmentId))}),h.length===0&&h.push(An(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Mt]:{reportTitle:e.whatForSection.reportTitle},[wi]:h,[wt]:{selectedOption:e.paymentTo,allOptions:r.map(u=>u.bankAccountId)}}},oi=(e,o)=>Object.values(e).reduce((r,h)=>r+(u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId],u.type===m.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Ve&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0))(h),0),ai=(e,o,r,h,u,j,c,$)=>{const p={};return e.lineInfo.forEach(d=>{const R=$.find(g=>g.classId===d.mileage.class.selectedOption),S=c.find(g=>g.qboId===d.outOfPocket.account.selectedOption||g.accountId===d.outOfPocket.account.selectedOption),l=$.find(g=>g.classId===d.outOfPocket.class.selectedOption),y=o.find(g=>g.id===d.outOfPocket.merchant.selectedOption),x=j.find(g=>g.currencyCode===d.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;p[d.lineId]={fileId:d.file?.fileId,lineId:d.lineId,type:d.reimbursementType,homeCurrencyConversions:d.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:d.mileage.memo??"",lineDetail:{class:R},transactionDate:d.mileage.transactionDate!=null?at(d.mileage.transactionDate.toDateString()):void 0,amount:d.mileage.amount?.amount??0,currencyCode:d.mileage.amount?.currencyCode??x,currencySymbol:d.mileage.amount?.currencySymbol??x,distanceMileage:{unit:"miles",value:d.mileage.distanceInMiles??0}},outOfPocket:{description:d.outOfPocket.memo??"",lineDetail:{class:l,account:S},transactionDate:d.outOfPocket.transactionDate!=null?at(d.outOfPocket.transactionDate.toDateString()):void 0,amount:d.outOfPocket.amount?.amount??0,currencyCode:d.outOfPocket.amount?.currency.selectedOption??x,currencySymbol:x,merchant:d.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??d.outOfPocket.merchant.selectedOption}:void 0,recommendations:d.outOfPocket.recommendations,recommendedAccount:d.outOfPocket.recommendedAccount,isCategoryUpdateSelected:d.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:d.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:d.outOfPocket.isRetainedCategorySelected,retainedAccount:d.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:p,totalAmount:{amount:h,...r},currencyConversionStateByLineId:u,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:h,uploadInvoiceEndPoint:u,isReimbursementCommentingEnabled:j,isUserAdmin:c,analytics:$,reimbursementId:p,plaidConnectionDetails:d,bankAccountCreationState:R,bankNameByRouting:S,bankAccounts:l,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:x,bankAccountToCreate:g,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:O,onFetchBankName:V,onSaveBankAccount:k,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:ie,removeDuplicateReimbursementForLine:ae,onDuplicateLineClick:re,onExistingMerchantChange:M,onNewMerchantChange:ne,onReceiptsUpload:_,saveRemiDetails:me,submitRemiDetails:D,discardReimbursementDetailsFromLocalStore:J,onReimbursementDetailsChanged:pe,updateReimbursementType:de,onHomeCurrencyConversionUpdate:H,redirectToReimbursementListScreen:he,redirectToReimbursementDetailScreen:We,deleteReimbursement:ge,removeFileFromLine:be,onZeniLogoClick:le,onAmountChanged:Ae,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:Pe,onAddNewRule:fe,onFetchLinkTokenClick:v,onEstablishConnectionClick:U,deleteBankAccount:ce,onBackClickFromBankAccountPage:Ke,initialOpenThreadRequest:N})=>{const Ge=w.useRef(null),lt=w.useRef(null),st=di(e.uploadStatus),Ue=St(),Re=vt(),[Qe,ze]=w.useState(!1),[Ye,Je]=w.useState(!1),[Xe,et]=w.useState("save"),[ue,dt]=w.useState(oi(e.lineDetailSection,e.currencyConversionStatus)),[ct,Z]=w.useState(!1),[Be,W]=w.useState(null),[Se,ut]=w.useState(!1),Q=`dashboard_${Re.currentTenant?.companyId}`,X=rn({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>ni(e,r,l),[e,r,l]),values:w.useMemo(()=>ni(e,r,l),[e,r,l]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:Bn,dirtyFields:Mn}=X.formState,Si=w.useMemo(()=>Di((I,A)=>(async(z,Fe)=>{const{lineInfo:f}=Fe,C=Number(z.split(".")[1]);if(z.includes("reportTitle")||z.includes("memo"))return;if(z.includes("reimbursementType")){const F=f[C].mileage,q=f[C].outOfPocket;f[C]={...f[C],outOfPocket:{transactionDate:q.transactionDate??void 0,class:{allOptions:q.class.allOptions??He(Ze(e.classHierarchyList,[])),selectedOption:q.class.selectedOption??void 0},account:{allOptions:q.account.allOptions??He(Ft(e.accountsHierarchyList,[])),selectedOption:q.account.selectedOption??void 0},amount:q.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ve=>({label:`${ve.currencyCode} - ${ve.currency}`,value:ve.currencyCode,countryCode:mi(ve.countryCode)})),selectedOption:r.currencyCode??Ve}},memo:q.memo??void 0,merchant:q.merchant??void 0,recommendations:q.recommendations??[],recommendedAccount:q.recommendedAccount??void 0,isCategoryUpdateSelected:q.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:q.isCategoryFirstTimeAutofilled??!1,retainedAccount:q.retainedAccount??void 0,isRetainedCategorySelected:q.isRetainedCategorySelected??!1},mileage:{transactionDate:F.transactionDate??void 0,class:{allOptions:F.class.allOptions??He(Ze(e.classHierarchyList,[])),selectedOption:F.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:F.distanceInMiles,amount:{amount:F?.amount?.amount??0,currencyCode:F?.amount?.currencyCode??Ve,currencySymbol:F?.amount?.currencySymbol??Lt},memo:F.memo??void 0}}}else if(z.includes("mileage.distanceInMiles")){const{distanceInMiles:F}=f[C].mileage,q=h?.mileageUnitAmount??0;f[C].mileage={...f[C].mileage,amount:{amount:F!=null?F*q:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(z.includes("outOfPocket.amount")&&f[C].lineId){const F=f[C].outOfPocket.amount,q=e.allCurrencies.find(ve=>ve.currencyCode===F?.currency.selectedOption)?.currencySymbol;if(F?.currencyCode!==F?.currency.selectedOption){const ve=F?.currency?.allOptions||[];f[C].outOfPocket.amount={currency:{allOptions:ve,selectedOption:F?.currency?.selectedOption},amount:f[C].outOfPocket?.amount?.amount??0,currencyCode:F?.currency.selectedOption??Ve,currencySymbol:q??Lt}}if(F?.currency.selectedOption!==Ve)Z(!0),qn(f[C].lineId,Ve);else{const ve={};f.forEach(Zt=>{ve[Zt.lineId]={lineId:Zt.lineId,homeCurrencyConversions:Zt.homeCurrencyConversions}}),f[C].homeCurrencyConversions={amount:F.amount??0,currencyCode:F?.currency.selectedOption??Ve,currencySymbol:q??Lt};const Ti=oi(ve,e.currencyConversionStatus);ue!==Ti&&dt(Ti)}}else if(z.includes("outOfPocket.isRetainedCategorySelected"))f[C].outOfPocket.isRetainedCategorySelected===!0&&(f[C].outOfPocket.isCategoryUpdateSelected=!1,f[C].outOfPocket.account.selectedOption=f[C].outOfPocket.retainedAccount?.qboId);else if(z.includes("outOfPocket.isCategoryUpdateSelected"))if(f[C].outOfPocket.isCategoryUpdateSelected===!0)f[C].outOfPocket.account.selectedOption=f[C].outOfPocket.recommendedAccount?.qboId,f[C].outOfPocket.isRetainedCategorySelected=!1;else{const F=f[C].lineId,q=e.editRemiInitialDetails.lineDetailSection[F]?.lineDetail?.account?.qboId;f[C].outOfPocket.account.selectedOption=q,f[C].outOfPocket.isRetainedCategorySelected=!1}else z.includes("outOfPocket.account")&&(f[C].outOfPocket.recommendations.length>0&&(f[C].outOfPocket.recommendedAccount=f[C].outOfPocket.recommendations[0].account),f[C].outOfPocket.recommendedAccount?.qboId!=null&&f[C].outOfPocket.account.selectedOption===f[C].outOfPocket.recommendedAccount?.qboId?f[C].outOfPocket.isCategoryUpdateSelected=!0:f[C].outOfPocket.isCategoryUpdateSelected=!1,f[C].outOfPocket.retainedAccount?.qboId!=null&&f[C].outOfPocket.account.selectedOption===f[C].outOfPocket.retainedAccount?.qboId?f[C].outOfPocket.isRetainedCategorySelected=!0:f[C].outOfPocket.isRetainedCategorySelected=!1,f[C].outOfPocket.isCategoryFirstTimeAutofilled=!1);const It=ai({...Fe,lineInfo:f},e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(pe?.(It),z.includes("outOfPocket.merchant")){const F=f[C].lineId,q=f[C].outOfPocket.merchant.selectedOption??"";f[C].outOfPocket.merchant.allOptions.find(ve=>ve===q)!=null?M(q,F):ne(q,F)}})(I,A),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);w.useEffect(()=>{const I=X.watch((A,{name:z})=>{z!=null&&A!=null&&Si(z,A)});return()=>{I.unsubscribe()}},[Si,X]),w.useEffect(()=>{const I=Ro(Object.values(e.currencyConversionStatus)),A=I.fetchState==="In-Progress"||I.fetchState==="Error";Z(A)},[e.currencyConversionStatus]),w.useEffect(()=>{for(const A in e.currencyConversionStatus){const z=e.lineDetailSection[A],Fe=e.lineDetailSection[A];e.currencyConversionStatus[A].fetchState==="Completed"&&Fe!=null&&z.type!==m.mileageKey&&!ln(z?.homeCurrencyConversions,Fe.homeCurrencyConversions)&&H({amount:z?.homeCurrencyConversions?.amount??0,currencyCode:z?.homeCurrencyConversions?.currencyCode??Ve,currencySymbol:z?.homeCurrencyConversions?.currencySymbol??Lt},A,p)}const I=oi(e.lineDetailSection,e.currencyConversionStatus);ue!==I&&dt(I)},[e.currencyConversionStatus,e.lineDetailSection]),w.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(J(p),he?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,p,J,he]);const L=Le(),[Me,bt]=w.useState(p==null),[ft,Fn]=w.useState(1),[Nn,Ut]=w.useState(!1),[En,Wn]=w.useState(""),[Vt,Un]=w.useState(null),[Vn,mt]=w.useState(!1),[_n,vi]=w.useState(!1),[_t,qt]=w.useState([]),[xe,Ct]=w.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),qn=w.useRef(Di((I,A)=>Ae(I,A),500,{trailing:!0})).current;w.useEffect(()=>{st==="In-Progress"&&(e.uploadStatus==="Completed"?(X.reset(ni(e,r,l),{keepDefaultValues:!0}),ze(!1),bt(!1)):e.uploadStatus==="Error"&&ze(!1))},[st,e.uploadStatus,X,e,Qe,ze,Me,r,l,$]),w.useEffect(()=>{e.uploadStatus==="In-Progress"&&Me===!1&&ze(!0)},[e.uploadStatus,ze,Me]);const Ht=e.remiStage==="draft"?m.newReimbursementTitle:m.editReimbursementTitle,Hn={onOkClick:()=>{if(mt(!1),xe.primaryButtonText===m.buttons.discard)J(p),e.remiStage==="draft"?he?.():We?.();else if(xe.primaryButtonText===m.buttons.delete)xe.title===m.deleteBankAccountTitle?ce?.(En):ge?.();else if(xe.primaryButtonText===m.buttons.yes&&Vt!=null){const I=_t.filter(A=>A!==ft.toString());qt(I),_(Vt,ft,!0)}},onCancelClick:()=>{if(mt(!1),xe.secondaryButtonText===m.buttons.no){const I=_t.filter(A=>A!==ft.toString());qt(I),_(Vt,ft,!1)}}},$i=()=>{Bn||uo(Mn)?(Ct({title:m.discardTitle,description:m.discardDescription,primaryButtonText:m.buttons.discard,secondaryButtonText:m.buttons.cancel}),mt(!0)):(J(p),he?.())},Ci=()=>{if(c&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")$i();else{et("save");const I=X.getValues(),A=ai(I,e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);pe?.(A);const z=A.whatForSection?.reportTitle;z!=null&&z.length>0?me(e.remiStatus==="rejected"?"pending_approval":"draft"):X.trigger(`${Mt}.reportTitle`,{shouldFocus:!0})}};let Kt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(I=>{I.length>0&&(Kt=!0)});let ki=[];if(e.remiId==null){const I=ue??0;I>0&&(ki=e.approvalRules.allApprovalRules?.filter(A=>{const z=A.criteria[0].range;if(z.max!=null){if(z.min.amount<I&&z.max.amount>=I)return A}else if(z.min.amount<I)return A;return null}).map(A=>({...A,stepsWithStatus:A.steps.map(z=>({...z,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Kn=I=>{const A=(()=>{let z=!0;const Fe=[];return Object.values(e.lineDetailSection).forEach((f,C)=>{f.type===m.outOfPocketKey&&On(f)>=75&&f.file==null&&(Fe.push(f.lineId),z=!1)}),qt(Fe),z})();return X.handleSubmit(()=>{A&&(et("submit"),$?.trackReimbursementSubmitReimbursement(e.createTime?.format(en.analytics.MMMDashDDDashYYYYFormat)??xi().format(en.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ue,p),B(),vi(!0))})(I)},Gn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Yn=e.reimbursementInfo?.paymentDate!=null?at(Cn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Jn=e.reimbursementInfo?.expectedDepositDate??Yn,Zn=p!=null&&e.remiStage==="draft",Ii=Lo(e.duplicateLineByLineId),Gt=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ii>0,{requestToOpenThread:Yt,setRequestToOpenThread:kt,setOpenThread:Jt}=w.useContext(Xn);w.useEffect(()=>{N?.threadId!=null&&N?.companyId!=null&&N?.entityType!=null&&kt(N)},[N,kt]);const{threads:xt,isLoading:tt}=eo({application:"dashboard",companyId:Re.currentTenant?.companyId,tab:"reimbursement",entityId:p,isGlobalComment:!1},"both",!1);w.useEffect(()=>{Yt?.threadId!=null&&xt.length>0&&!tt&&(Jt(Yt.threadId),kt(null))},[Yt,xt,tt,Jt,kt]);const Qn=w.useMemo(()=>p==null?[]:xt.filter(I=>I.resolved===!1&&!I.id.includes(to)),[xt,p]).length;return t.jsx(Or,{ref:Ge,children:t.jsx(io,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:lt.current??null}},children:t.jsxs(sn,{...X,children:[t.jsx("form",{id:nn(tn),onSubmit:I=>Kn(I),children:t.jsxs(al,{windowSize:L,ref:lt,children:[Vn?t.jsx(ui,{titleComponent:t.jsx(cn,{children:xe.title}),descriptionComponent:t.jsx(dn,{children:xe.description}),primaryButtonText:xe.primaryButtonText,secondaryButtonText:xe.secondaryButtonText,action:Hn,proceedButtonVariant:xe.title===m.deleteBankAccountTitle||xe.title===m.deleteDraftTitle||xe.title===m.deleteReportTitle||xe.title===m.discardTitle?"danger":"primary",isEditPopup:xe.title===m.deleteBankAccountTitle}):null,_n?t.jsx(br,{reimbursementId:p,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Gt,numberOfDuplicateLines:Ii,setShowDuplicatePopup:vi,submitReport:()=>{const I=X.getValues(),A=ai(I,e.merchantList.merchants,r,ue,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);pe?.(A),D()},fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:ie,analytics:$}):null,Qe?t.jsx(an,{windowSize:L}):null,Me?t.jsxs(an,{windowSize:L,"data-testid":G("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ur,{children:t.jsx(si,{partOfSkipAutoFill:!0,size:L,onClick:()=>bt(!1),"data-testid":G("close-invoice-upload"),children:t.jsx(li,{withOverlay:!0,children:t.jsx(ri,{})})})}),t.jsx(_r,{children:Ht})]}):null,t.jsx(In,{showAutofill:Me,analytics:$,onSkipAutofill:()=>{$?.trackReimbursementSkipAutofill(),bt(!1)},uploadInvoiceEndPoint:u,authParams:o,style:{width:te.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?Ue.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:I=>_(I,ft,!0),dropFilePlaceholder:{upload:m.dropReceipt.upload,single:m.dropReceipt.single,or:m.dropReceipt.or,multiple:m.dropReceipt.multiple,receipts:m.dropReceipt.receipts},updateInvoiceUploadFetchState:Ie,showInfoText:!1,allowMultiFiles:Me,type:"reimbursement"}),L!=="small"?t.jsx(Vr,{children:t.jsx(si,{partOfSkipAutoFill:!0,onClick:()=>bt(!1),"data-testid":G("close-invoice-upload"),children:t.jsx(li,{withOverlay:!0,children:t.jsx(ri,{})})})}):null]}):null,t.jsxs(el,{windowSize:L,"data-testid":G("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(ji,{style:{width:"42%"},"data-testid":G("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(tl,{"data-testid":G("zeni-logo-spend-management-reimbursement-detail-page"),onClick:le}),enableTitleOnScroll:!1,scrollableContent:Ge,backgroundColor:Ue.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Pr,{}):null,t.jsx(ji,{style:{width:te.navBarWidth.valuePercentage(L)},"data-testid":G("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ht,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Me!=1?t.jsxs(il,{children:[j&&p!=null?t.jsxs(nl,{isDisabled:tt,"data-testid":G("remi-comment-button"),onClick:tt?()=>null:I=>{I.preventDefault(),I.stopPropagation(),W({roomId:Q,companyId:Re.currentTenant?.companyId??"",companyName:Re.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:p}),ut(!0),$?.trackCommentActivity("reimbursement","clicked",Re.currentTenant?.companyName??"",Re.controllersList.controllers.map(A=>oo(A)),void 0,void 0,"page icon")},children:[t.jsx(no,{count:tt?void 0:Qn,isLoading:tt,style:{left:"12px"}}),t.jsx(ol,{})]}):null,t.jsx(si,{size:L,onClick:()=>$i(),"data-testid":G("close-nav-bar"),children:t.jsx(li,{withOverlay:!1,children:t.jsx(ri,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:Ge,backgroundColor:Ue.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Xr,{children:Ht}),t.jsx(ao,{progressSectionObj:Gn,createDate:e.createTime,paymentDate:Jn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:p!=null||e.uploadStatus==="Completed"}),Kt&&t.jsxs(Kr,{children:[t.jsx(Hr,{}),t.jsx(Gr,{children:m.banner})]}),e.isProcessing?t.jsx(un,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Xi.duplicateWarning.title,description:Xi.duplicateWarning.description}):Gt?t.jsxs(Yr,{size:L,children:[t.jsx(zr,{}),t.jsxs(Zr,{children:[t.jsx(Jr,{children:m.thereSeems}),t.jsx(Qr,{children:m.pleaseFind})]})]}):null,t.jsx(jn,{isReimbursementCommentingEnabled:j,sectionId:Mt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:re,reimbursementId:p,remiDetails:e,uploadInvoiceEndPoint:u,authParams:o,showSkipAutoFill:Me,setShowSkipAutoFill:bt,isReimbursementCommentingEnabled:j,isAutoFieldsExist:Kt,totalAmount:ue,removeFileFromLine:be,onReplaceClick:()=>{Ct({title:m.overwriteTitle,description:m.overwriteDescription,primaryButtonText:m.buttons.yes,secondaryButtonText:m.buttons.no}),mt(!0)},onReceiptsUpload:_,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:Ie,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:h,isUserAdmin:c,setShowBankAccountPage:Ut,bankAccounts:l,onDeleteBankAccount:I=>{Wn(I),Ct({title:m.deleteBankAccountTitle,description:m.deleteBankAccountDescription,primaryButtonText:m.buttons.delete,secondaryButtonText:m.buttons.cancel}),mt(!0)},analytics:$,fileRequiredLineIds:_t,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:x,showTotalAmountLoader:ct,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Gt,removeDuplicateReimbursementForLine:ae,scrollContainerRef:Ge}),t.jsxs(rl,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(on,{}):null,t.jsx(ll,{windowSize:L,children:t.jsxs(sl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Oi,{amount:ue??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:fe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ue!=null&&ue>0?t.jsx(Oi,{amount:ue??0,activities:ki,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:Me,windowSize:L,children:[L!=="small"?t.jsx(on,{}):null,t.jsx(Rr,{windowSize:L,onClick:I=>{I.stopPropagation(),Ye===!0&&Je(!1)},children:t.jsx(mn,{formId:nn(tn),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:c&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?m.buttons.discard:m.buttons.discardChanges:L==="small"?m.buttons.save:m.buttons.saveChanges,isLoading:Xe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Ci,style:{width:te.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:jr(y,c,e,L),isDisabled:!y,style:{width:y?te.footerButtonWidth.value(L):"auto"},type:y?"submit":"button",onClick:y?()=>null:Ci,isLoading:!y&&Xe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Lr,{children:t.jsxs(Nr,{windowSize:L,children:[Ye?t.jsx(pn,{onClickAway:()=>Je(!1),children:t.jsx(Fr,{windowSize:L,"data-testid":G("remi-other-actions-container"),children:t.jsx(Er,{onClick:()=>{Ct({title:e.remiStage==="draft"?m.deleteDraftTitle:m.deleteReportTitle,description:m.deleteAlertDescription,primaryButtonText:m.buttons.delete,secondaryButtonText:m.buttons.cancel}),mt(!0)},"data-testid":G("delete-report-action"),children:m.buttons.deleteReport})})}):null,t.jsx(Mr,{windowSize:L,children:Zn===!0?t.jsx(Br,{windowSize:L,"data-testid":G("more-details-button"),children:t.jsx(Ar,{onClick:()=>Je(!Ye)})}):null})]})}),style:{minHeight:62}})})]}),j&&p!=null?t.jsx(Po,{id:Q,children:t.jsx(ro,{isDrawerOpen:Se,allowComposer:!0,drawerTitle:$r,threads:xt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:Be?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:tt,threadMetadata:Be?{companyName:Be.companyName,companyId:Be.companyId,entityId:Be.entityId,entityType:Be.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Tr,threadUnResolve:Dr},onThreadClick:(I,A)=>((z,Fe)=>{Jt(Fe);const f=z.entityType.split("."),C=parseInt(f[2]);if(isNaN(C))return void ut(!1);const It=`${C+1}`,F=e.lineDetailSection[C+1].type;f.includes(m.mileageKey)&&F===m.outOfPocketKey?de(Bi(m.mileageKey),It,p):f.includes(m.outOfPocketKey)&&F===m.mileageKey&&de(Bi(m.outOfPocketKey),It,p),ut(!1)})(I,A),onCloseAllThreadsDrawer:()=>ut(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ue.colors.background}})}):null]})}),Nn?t.jsx(Wr,{windowSize:L,children:t.jsx(ar,{bankAccountCreationState:R,setShowBankAccountPage:Ut,plaidConnectionDetails:d,onFetchLinkTokenClick:v,onEstablishConnectionClick:U,onSaveHandler:k,bankAccountToCreate:g,bankNameByRouting:S,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:O,onFetchBankName:V,onBackClick:()=>{Ke(),Ut(!1)}})}):null]})})})},jr=(e,o,r,h)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?m.buttons.resubmit:m.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?h==="small"?m.buttons.discard:m.buttons.discardChanges:h==="small"?m.buttons.save:m.buttons.saveChanges,Or=n.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Pr=n.div`
|
|
624
|
+
position: fixed;
|
|
625
|
+
top: 0;
|
|
626
|
+
left: 42vw;
|
|
627
|
+
width: 100%;
|
|
628
|
+
height: 100vh;
|
|
629
|
+
background: transparent;
|
|
630
|
+
box-shadow: 0 2px ${i.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
|
|
631
|
+
pointer-events: none;
|
|
632
|
+
z-index: 3;
|
|
633
|
+
`,Rr=n.div`
|
|
634
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Lr=n.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,Ar=n(po)`
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
color: ${e=>e.theme.colors.hero};
|
|
641
|
+
width: ${i.sp5};
|
|
642
|
+
height: ${i.sp5};
|
|
643
|
+
&:hover {
|
|
644
|
+
color: ${e=>e.theme.colors.primary};
|
|
645
|
+
}
|
|
646
|
+
`,zr=n(Oo)`
|
|
647
|
+
width: ${i.sp4};
|
|
648
|
+
height: ${i.sp4};
|
|
649
|
+
color: ${P.brandColorGoldDark};
|
|
650
|
+
`,Br=n.div`
|
|
651
|
+
display: flex;
|
|
652
|
+
margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
color: ${e=>e.theme.colors.grey1};
|
|
655
|
+
&:hover {
|
|
656
|
+
color: ${e=>e.theme.colors.primary};
|
|
657
|
+
}
|
|
658
|
+
`,Mr=n.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,Fr=n.div`
|
|
663
|
+
display: flex;
|
|
664
|
+
width: auto;
|
|
665
|
+
align-items: center;
|
|
666
|
+
justify-content: center;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
669
|
+
color: ${e=>e.theme.colors.hero};
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
padding-top: ${i.sp1};
|
|
672
|
+
padding-bottom: ${i.sp1};
|
|
673
|
+
position: absolute;
|
|
674
|
+
bottom: ${e=>te.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
|
+
z-index: 3;
|
|
676
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
|
+
border-radius: ${i.sp1};
|
|
678
|
+
right: ${e=>te.right.valuePx(e.windowSize)};
|
|
679
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
+
`,Nr=n.div`
|
|
681
|
+
width: 100%;
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
+
right: ${e=>te.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
+
height: 100%;
|
|
686
|
+
display: flex;
|
|
687
|
+
`,Er=n(yi)`
|
|
688
|
+
display: flex;
|
|
689
|
+
align-items: center;
|
|
690
|
+
width: -webkit-fill-available;
|
|
691
|
+
padding-left: ${i.sp3};
|
|
692
|
+
padding-right: ${i.sp3};
|
|
693
|
+
height: ${i.sp6};
|
|
694
|
+
box-sizing: border-box;
|
|
695
|
+
&:hover {
|
|
696
|
+
background-color: ${e=>e.theme.colors.background};
|
|
697
|
+
}
|
|
698
|
+
`,Wr=n.div`
|
|
699
|
+
overflow-y: auto;
|
|
700
|
+
z-index: 5;
|
|
701
|
+
height: 100vh;
|
|
702
|
+
position: fixed;
|
|
703
|
+
background: ${e=>e.theme.colors.grey4};
|
|
704
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
+
right: 0;
|
|
706
|
+
top: 0;
|
|
707
|
+
`,Ur=n.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,Vr=n.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,_r=n(pi)`
|
|
716
|
+
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,qr=n.div`
|
|
720
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
|
+
width: 100%;
|
|
722
|
+
position: fixed;
|
|
723
|
+
bottom: 0;
|
|
724
|
+
z-index: 3;
|
|
725
|
+
`,on=n.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,Hr=n(hi)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${i.sp3};
|
|
730
|
+
height: ${i.sp3};
|
|
731
|
+
`,Kr=n.div`
|
|
732
|
+
display: flex;
|
|
733
|
+
gap: ${i.sp2};
|
|
734
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
735
|
+
padding: ${i.sp3};
|
|
736
|
+
border-radius: ${i.sp2};
|
|
737
|
+
align-items: center;
|
|
738
|
+
margin: ${i.sp3};
|
|
739
|
+
`,Gr=n.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,Yr=n.div`
|
|
742
|
+
display: flex;
|
|
743
|
+
gap: ${i.sp2};
|
|
744
|
+
padding: ${i.sp3};
|
|
745
|
+
border-radius: ${i.sp2};
|
|
746
|
+
align-items: start;
|
|
747
|
+
margin-top: ${e=>te.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>te.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>te.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>te.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
+
background-color: ${P.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,Jr=n(Wt)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,Zr=n.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,Qr=n(fi)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,Xr=n(pi)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${i.sp3};
|
|
763
|
+
`,an=n.div`
|
|
764
|
+
display: flex;
|
|
765
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
766
|
+
height: 100vh;
|
|
767
|
+
visibility: inherit;
|
|
768
|
+
width: 100%;
|
|
769
|
+
background-color: ${P.overlayDark};
|
|
770
|
+
z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
|
|
771
|
+
position: fixed;
|
|
772
|
+
`,el=n.div`
|
|
773
|
+
z-index: 3;
|
|
774
|
+
min-height: 62px;
|
|
775
|
+
height: 62px;
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
width: 100%;
|
|
779
|
+
justify-content: space-between;
|
|
780
|
+
position: fixed;
|
|
781
|
+
`,tl=n(so)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${i.sp4};
|
|
786
|
+
height: ${i.sp4};
|
|
787
|
+
`,ri=n(hn)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${i.sp4};
|
|
790
|
+
height: ${i.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,li=n.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?P.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,il=n.div`
|
|
799
|
+
margin-top: ${e=>te.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,nl=n.div`
|
|
803
|
+
display: flex;
|
|
804
|
+
align-items: center;
|
|
805
|
+
justify-content: center;
|
|
806
|
+
position: relative;
|
|
807
|
+
float: right;
|
|
808
|
+
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
809
|
+
color: ${e=>e.theme.colors.hero};
|
|
810
|
+
&:hover {
|
|
811
|
+
color: ${e=>e.theme.colors.primary};
|
|
812
|
+
}
|
|
813
|
+
`,ol=n(co)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${i.sp4};
|
|
816
|
+
height: ${i.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,si=n.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${i.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?te.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,al=n.div`
|
|
824
|
+
display: flex;
|
|
825
|
+
flex-direction: column;
|
|
826
|
+
width: 100vw;
|
|
827
|
+
overflow-x: hidden;
|
|
828
|
+
background: -webkit-linear-gradient(
|
|
829
|
+
to right,
|
|
830
|
+
${e=>e.theme.colors.background} 42%,
|
|
831
|
+
${e=>e.theme.colors.grey4} 42%
|
|
832
|
+
);
|
|
833
|
+
background: -moz-linear-gradient(
|
|
834
|
+
to right,
|
|
835
|
+
${e=>e.theme.colors.background} 42%,
|
|
836
|
+
${e=>e.theme.colors.grey4} 42%
|
|
837
|
+
);
|
|
838
|
+
background: -o-linear-gradient(
|
|
839
|
+
to right,
|
|
840
|
+
${e=>e.theme.colors.background} 42%,
|
|
841
|
+
${e=>e.theme.colors.grey4} 42%
|
|
842
|
+
);
|
|
843
|
+
background: linear-gradient(
|
|
844
|
+
to right,
|
|
845
|
+
${e=>e.theme.colors.background} 42%,
|
|
846
|
+
${e=>e.theme.colors.grey4} 42%
|
|
847
|
+
);
|
|
848
|
+
${e=>e.windowSize==="small"&&`
|
|
849
|
+
background: ${e.theme.colors.grey4};
|
|
850
|
+
`}
|
|
851
|
+
min-height: 100vh;
|
|
852
|
+
`,rl=n.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>te.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,ll=n.div`
|
|
857
|
+
width: ${e=>te.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,sl=n.div`
|
|
859
|
+
margin-left: ${e=>te.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>te.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,dl=n.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${i.sp11};
|
|
865
|
+
`;export{Rl as default,nn as uniqueName};
|