@zeniai/web-app-ui 4.14.31-dev → 4.14.32-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-CFhoboVe-JodbwPsQ.js → ACHDetailsPage-BO7lxW8c-CaH7vfBB.js} +2 -2
- package/dist/assets/{AIPerformancePage-DB-fTWME-CgGQsnV1.js → AIPerformancePage-SF-quMkk-CZFFBw1a.js} +1 -1
- package/dist/assets/AccountInfoPage-v8-NT3FJ-Bw3uGZG4.js +18 -0
- package/dist/assets/{AccountInfoPageContent-eYEsv7ac-vCK7G4bh.js → AccountInfoPageContent-DIWh6VaI-HqDSQPfy.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-jYWr_8TD-q_Ikf2Tn.js → AccountLockedInfoModal-DloPB9vd-BSxEQO_S.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-3Q0EPYhL-BH4of7uu.js → AccountReconDetailsDrawerPage-BAgQsFiF-CyK6H2le.js} +4 -4
- package/dist/assets/{AccountRow-CdgvnPG8-Cz30EYLJ.js → AccountRow-Dczx5rSu-CwZA98Uy.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DHo59LLN-SJuuNn3m.js → AccountsPromoCardStack-Ywhto4lV-cevnOXMT.js} +11 -11
- package/dist/assets/{AddAddressForCardDrawer-BzO1FXUa-Fyg_NOS1.js → AddAddressForCardDrawer-B8srmVT6-DsXtVyAN.js} +1 -1
- package/dist/assets/{AddToWalletPage-BfXFbHjk-CMzYyYW2.js → AddToWalletPage-k__RW699-BSoFKwS5.js} +1 -1
- package/dist/assets/{AddressRoutes-B6KyTWyT.js → AddressRoutes-Bnm4H7bD.js} +1 -1
- package/dist/assets/{AddressScreen-ZPcySSaO.js → AddressScreen-INYb_JGl.js} +2 -2
- package/dist/assets/{AgingReportsPage-C1hFq4KH-Zi5GTQ1z.js → AgingReportsPage-BuIXjljE-DwSwkj0s.js} +5 -5
- package/dist/assets/{AiCfoScreen-C7jQo3LZ.js → AiCfoScreen-Dg31g97F.js} +1 -1
- package/dist/assets/{AllUserItems-B6pnKByY-z-llp8Ld.js → AllUserItems-BdgTe4WF-H7QxO-h-.js} +7 -7
- package/dist/assets/ApAgingDetailPage-6F47t31h-BJY-Gjjh.js +46 -0
- package/dist/assets/{AppBasePage-DiVxF606-DEIAJtmX.js → AppBasePage-DaTueT-x-Db3mer79.js} +1 -1
- package/dist/assets/{AppDrawerContent-B_EWsf8O-nCzxlMlY.js → AppDrawerContent-CtCI6jpp-B-tHPrrL.js} +3 -3
- package/dist/assets/{ApprovalRulesSettingsPage-HHjDp_NQ-Dk_su188.js → ApprovalRulesSettingsPage-BVxu4soW-Nu7LfFuU.js} +1 -1
- package/dist/assets/{ArAgingChart-Ba4A-i2N-DVKxnxLC.js → ArAgingChart-BK-JyW2V-CpKqA7Z3.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-prgcvsS4-B6KvY1N_.js → ArAgingDetailPage-CvqLu3q8-DFRtVqyv.js} +3 -3
- package/dist/assets/{AttachmentView-SsWJw4A8-CiFA7Mtk.js → AttachmentView-DQdb3v_e-BgOMzST7.js} +1 -1
- package/dist/assets/{BalancesInsightWithToolTip-DE6gDjGA-CuriAdQu.js → BalancesInsightWithToolTip-D4q45w1q-CBufZlsy.js} +4 -4
- package/dist/assets/{BankAccountSection-B4jmT0lb-D2VaI5gJ.js → BankAccountSection-DgbfU8F--DERufWYy.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Bz2itMx0-EQdFts4P.js → BankAccountWarningSection-litL0o_Z-YNoMxnsQ.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-BcVk7bTt-CcJ2zW2K.js → BankConnectionsSettingsPage-bAj9uB9k-D373ilzg.js} +1 -1
- package/dist/assets/{BillDetailPage-Dkqmi4H1-BFTmBvTz.js → BillDetailPage-CiHal44n-DIfTrfpQ.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CB_WVdNG.js → BillPayApprovalRoutes-BILiu13g.js} +1 -1
- package/dist/assets/BillPayApprovalRuleDetailPage-CRBli7lk-Cp1ol6-S.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-B_QwggJS-Csxvsi8z.js → BillPayApprovalRulesPage-BTOmSLcs-D3SM4r7K.js} +7 -7
- package/dist/assets/{BillPayPromoPage-Bx2AXpWe-DWku5Qhm.js → BillPayPromoPage-B5gkQjT2-D9lr-mmz.js} +9 -9
- package/dist/assets/{BillPayRoutes-9FjXpkgQ.js → BillPayRoutes-BIHt-HL2.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-CM7_DkHC-B8MycdyA.js → BillPaySetUpPage-DM3r09by-BlBEwtA1.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DM0OIfxa-B3DQmXkS.js → BillingSettingsPage-CiTKyJeG-BkRQgSD8.js} +2 -2
- package/dist/assets/{BillsBulkReviewDrawerPage-C3xmQ7wz-DgU-ZFK3.js → BillsBulkReviewDrawerPage-B6ofRDkg-B-xdke4y.js} +1 -1
- package/dist/assets/{BoxItem-CvCo0wr6-QhJ82HMO.js → BoxItem-C39hQSVg-B9WMvkwI.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BAZmkR4a-DKUcO_Rf.js → BusinessVerificationPage-BiWEnJET-BPuB56i7.js} +2 -2
- package/dist/assets/{BusinessVerificationPageScreen-BKBP5CJh.js → BusinessVerificationPageScreen-C9kI0BR_.js} +2 -2
- package/dist/assets/{BusyIndication-Cp8KWKB2-C3oZ8Ini.js → BusyIndication-DmApVsF7-DQl3VYqH.js} +1 -1
- package/dist/assets/{CardNumberSubText-DHtSIcZZ-kHFdQu5S.js → CardNumberSubText-FNfrozX6-tv8Brnnn.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CNS1FA6b-Clcw1gL0.js → CashbackDetailPage-DaLICa_v-BHzYFFJ0.js} +7 -7
- package/dist/assets/{ChargeCardDetailPage-C4NeG7IM-CcgpSGTB.js → ChargeCardDetailPage-B0Aq7zO5-40fQ7jsk.js} +28 -28
- package/dist/assets/{ChargeCardListPage-DNYiWaEf-BZBAcxPe.js → ChargeCardListPage-CfRto2rQ-ClyjE_iT.js} +16 -16
- package/dist/assets/{ChargeCardListTable-DdnyzdFf-D27zGMD0.js → ChargeCardListTable-DMdC4lxo-KnHyTkme.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-CXlqzaUt-Cw-q5fHs.js → ChargeCardPaymentHistoryPage-BYTmtF_y-i9mylyuZ.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-AI5bladj-BDPOfxSx.js +222 -0
- package/dist/assets/{ChargeCardRoutes-B9ifIaPD.js → ChargeCardRoutes-CUAUmOPf.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BtikPFOq-B1Q5Q-k4.js → ChargeCardSetupPage-BjhqdubL-u9TM5_mu.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-RepWBbvJ-BeTG3xG9.js → ChargeCardStatementsPage-DCM92s6v-CAUZgBlq.js} +2 -2
- package/dist/assets/{CheckDepositDrawerPage-BCqg3irO-LJQj-9cr.js → CheckDepositDrawerPage-CkIxEqHU-B7qz4vrp.js} +1 -1
- package/dist/assets/{CollapsableReportTable-gy7Ue_fk-xkuj86hA.js → CollapsableReportTable-ClHwXtCj-BfwfqIOK.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BsCx7q-g-C5hfQprP.js → CompanyOfficerDetailsSection-BY8hFQnp-DJfNkZb4.js} +16 -16
- package/dist/assets/{CompanyPassportCard-BbUWOs1U-Dw1HMrsN.js → CompanyPassportCard-B3rZE3pg-CtuQmTD5.js} +2 -2
- package/dist/assets/{CompanyPassportPage-BnP2oA1U-BahIQeuB.js → CompanyPassportPage-4FXVf3EP-DhUTHw6y.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-CT9c7lvA.js → CompanyPassportScreen-m_gXhHG_.js} +1 -1
- package/dist/assets/{CompleteProfile-TiRsm2Fm-fE1NUszo.js → CompleteProfile-B1BoilWd-LUJNszjE.js} +1 -1
- package/dist/assets/{ConfettiBurst-D7J36hZf-CSVT9V2q.js → ConfettiBurst-CsbAGF65-C9KfsdE7.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-D6BkdM1l.js → ConnectionAuthScreen-Zn6jvlmq.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-vBI13ZbI.js → ConstrainedInnerElement-CgdnMeoA-Dc3P_0OR.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Dihzr1D5-BUR2QFLa.js → CreateOrEditVendorPage-C50eYOFo-D8POwrMQ.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CZGzDuxC-BUIdND4_.js → CreditCardPaymentDrawerPage-Dxz_SY7N-D8up_BJ4.js} +1 -1
- package/dist/assets/{CurrencySelectField-BTAmIqPa-rlZjvsTh.js → CurrencySelectField-D2Ogwvbr-B4ftuyL3.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-MVI7kqIh-JD8ZqQ1I.js → CustomerOnboardingActivationPage-5Sh7hmI9-DpPsiuW1.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BhtVN8fo.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-B5kVGk_V-DpOBarI8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CaI_0pCb-D_9R8ntI.js → CustomerOnboardingDetailPageSkeleton-CL-mOSUp-Crb7CsXj.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CO_c2COV-CTf7zsp5.js → CustomerOnboardingNoStepsPage-CyL1AK78-Dsu24NnA.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-BF0vuYaJ-DB-M7FrJ.js → CustomerOnboardingPage-C8nxJPwo-UENXO6qW.js} +16 -16
- package/dist/assets/{CustomerOnboardingProductSuitePage-BGFdLX1i-C8cOT0zx.js → CustomerOnboardingProductSuitePage-C7FbnHpU-C2FaoJHQ.js} +3 -3
- package/dist/assets/{CustomerOnboardingRoutes-BiogvBuq.js → CustomerOnboardingRoutes-DbUQBREw.js} +1 -1
- package/dist/assets/{Dashboard-Qjedd4r--CRbsfODt.js → Dashboard-Bpu-6Sm5-CcAT-BJw.js} +1 -1
- package/dist/assets/{DashboardReportPage-Deith_ON-D8fEi8Zc.js → DashboardReportPage-B1aAikQG-BWThnMBB.js} +1 -1
- package/dist/assets/{DashboardRoutes-BQeGUCAH.js → DashboardRoutes-aFJ2Gmek.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C7DfUDio-C16c7XTp.js → DashboardSidebarBackgroundAnimation-C6xm-p2j-BW7a7KRi.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DDgedZUJ.js → DefaultTenantHome-D-V97ZoE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-7kYotKov-QpJvWZ45.js → DepositAccTransactionItem-DEU0DgtI-DX-mlAdm.js} +7 -7
- package/dist/assets/{DepositAccTransactionListPage-Bop4Uj5w-oeif2Id9.js → DepositAccTransactionListPage-Bh0dIkE9-CF_bG5NL.js} +4 -4
- package/dist/assets/{DomesticWireDetailScreen-6HCK_7TE.js → DomesticWireDetailScreen-DBNwn4TO.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-_TyXsqEx-BYHoiTtM.js → DomesticWireDetailsPage-2WyD73c9-B2JWW3fS.js} +1 -1
- package/dist/assets/{DownloadOverlay-Cmd727bN-C-PzxP5F.js → DownloadOverlay-B7M2VI7K-93vOHyTt.js} +14 -14
- package/dist/assets/{DrawerPage-DmGwfnGp-soZmQNN_.js → DrawerPage-DsQTxXa8-D8CWGNJU.js} +4 -4
- package/dist/assets/{DrawerScreen-C_1QezB2.js → DrawerScreen-DDmYCdH3.js} +1 -1
- package/dist/assets/{EditPeoplePage-YyluIC6R-B0i1VKsb.js → EditPeoplePage-fY0HXvVS-C62IbLj9.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-DeMid2Ko-B5ltV9Cy.js → EditReimbursementDetailPage-D7RUWSTZ-DVOazN97.js} +18 -18
- package/dist/assets/EntityDetailPage-BDyO7iLI-DsywTSaM.js +18 -0
- package/dist/assets/{EntityDetailRoutes--mZVfECz.js → EntityDetailRoutes-BGXfmx5_.js} +1 -1
- package/dist/assets/{EntitySummarySection-5NbutA8l-DL6jpdFo.js → EntitySummarySection-0rRkC5V6-BD_Ykbrq.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CQ_3WluW-CCAAzH1q.js → ExpenseAutomationOverviewPage-DOGAdZXV-Bv58nG4M.js} +8 -8
- package/dist/assets/{ExpenseAutomationPage-VuU4acYd-BNMHy7wa.js → ExpenseAutomationPage-DOsIzX0P-X4utEwdy.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DyeVLVvz.js → ExpenseAutomationRoutes-eS-fi8G6.js} +1 -1
- package/dist/assets/{ExpressPayPage-DhoNmyC2-BM7D8t94.js → ExpressPayPage-CIi6jM8Y-zeultZzf.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-GSwhPxgP-CknFQRpv.js → FeaturePreviewPage-BVn6ZUOB-QQqfkJ8p.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DcXxWeeZ.js → FeaturePreviewScreen-D5VxTq6D.js} +1 -1
- package/dist/assets/{FollowStepsSection-DaueHRo4-R5WhFSRV.js → FollowStepsSection-CvWPHXDW-CX31cI67.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DG7_1HOT-BY_P61_d.js → GlobalReviewListPage-CS_11bx0-BWWUBfxL.js} +1 -1
- package/dist/assets/{InformationCardStack-zc-BxR7F-Dc1qaC3e.js → InformationCardStack-B9g7W7Xx-BMa0JHtx.js} +3 -3
- package/dist/assets/{InsightsCardStack-DxCA5sFh-BcClR9fT.js → InsightsCardStack-mvzIc2uY-FQWyC3NM.js} +1 -1
- package/dist/assets/{InsightsSection-BdFG3j3R-D7JeFV31.js → InsightsSection-rGyA4lY9-ztCddwYb.js} +8 -8
- package/dist/assets/{IntegrationsSettingsPage-CaiL3kqS-BK30afn3.js → IntegrationsSettingsPage-Dwz4ukHF-I8L8bnwJ.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-BrQVSzeS-BpNTGybF.js → InternationalWireSwiftDetailsPage-Cm0H9oyf-Dq6HjvzW.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-NaLnhW9C-xEbEY4G_.js → InternationalWireVerificationPage-woIoME3I-Dczyy-qA.js} +10 -10
- package/dist/assets/{InviteFormPage-fjqv2l7h-CN7vzCNz.js → InviteFormPage-DaZ-sJYV-B1D96lar.js} +13 -13
- package/dist/assets/{InvitePageListView-CQecQhxr-D7nG5RDJ.js → InvitePageListView-Do7EVQrj-CnaoEv-w.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DAEBuOnk-etA_btSE.js → InvitePeoplePage-CpD7YoC2-CAkwuWqR.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-58l6ePuH-DGEZcLC_.js → InvoiceUploadSection-DOuTQPee-DNxyr3cj.js} +11 -11
- package/dist/assets/{IssueChargeCardPage-Bkxqsgax-BZ-SKXi3.js → IssueChargeCardPage-ClMhr27d-m0kTf6sc.js} +9 -9
- package/dist/assets/{LabeledAddressValue-CZfFV97h-Bb57sB9z.js → LabeledAddressValue-B6_PZDTO-xVytB-P9.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D66XOhMx-DAzGEgKS.js → LabeledAddressValueField-Cz6tRMoW-C7dop0k-.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BtnsqE4D-pO3EStbM.js → LabeledControlledCheckBoxField-BEpAlnvo-BRLqoAnU.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-kopByxLB-CVmx734o.js → LabeledCountryMultiSelectField-1kTcZMQW-Cq5wOhkQ.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B6An-cwq-ZwV4dPE-.js → LabeledCreatableSingleSelectField-PiLB1S77-CXLJARhZ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-D_ZD8JTn-EgNCcbbj.js → LabeledDocumentField-Cicw8ABs-CehJpiD9.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CJ7ncCzH-yHUhBReW.js → LabeledDropDownFormattedTextField-BEVVgIGK-ByxutmzB.js} +7 -7
- package/dist/assets/{LabeledEmailInputField-CSfzMDYO-Ccf6Bxv0.js → LabeledEmailInputField-C6gk3B5x-DQKZx3MY.js} +1 -1
- package/dist/assets/{LabeledNameField-DZJXGYR9-C9Z5T7ep.js → LabeledNameField-BpfxLnfN-Dp4_3qSf.js} +1 -1
- package/dist/assets/{LabeledSingleSelectField-D_LoOMiZ-CAsbCcep.js → LabeledSingleSelectField-Utmk8KVy-Cxr5xWDf.js} +1 -1
- package/dist/assets/{LabeledText-A1h_ionS-CcjmiFmI.js → LabeledText-C56xvYuX-BYR-B_G0.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-EIyuSMIG.js → LabeledUserSingleSelectWithSubtitlesField-CF4oVI17-C2nSJ6yS.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DmynBXbJ-DglcXxDL.js → LabeledZeniRolesDropDownField-B5rxYfam-qcmbm9V-.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-D6-fL4a6-DlR8vjGO.js → LinkJETransactionPage-DbnaYlRA-UFjDu7p8.js} +10 -10
- package/dist/assets/{LockCardPage-BDlnh_zf-64lzFlF5.js → LockCardPage-XHbTmzq8-CizhFaVR.js} +8 -8
- package/dist/assets/{LowBalancePopup-CBPl_udd-Nqllub28.js → LowBalancePopup-IF7NG9aL-DyQqJJ_L.js} +5 -5
- package/dist/assets/MagicLinkACHDetailsPage-DbhqYo7W-C6hltO5g.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D0JDLfbz-Nd5n74ys.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DChqrJN7-d6t2QZpk.js +1 -0
- package/dist/assets/{MagicLinkRoutes-B4rSGEA5.js → MagicLinkRoutes-D4nTqNcw.js} +18 -18
- package/dist/assets/{MagicLinkSignInScreen-DL54w9kv.js → MagicLinkSignInScreen-DhnaHV0D.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Cl461HWp-DrFI3SFX.js → MagicLinkSuccessPage-Cyr3p_8a-CVhCJtyQ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DoIMYrRv-BmkYYs3S.js → MagicLinkTitleSection-A4zyF5bg-B40bJuh0.js} +1 -1
- package/dist/assets/{MailingDetailsSection-NdwWGQ88-M0GYvrro.js → MailingDetailsSection-DqSOlu2t-CyUaZRam.js} +1 -1
- package/dist/assets/{MobileAppDrawer-D4KAg1N8.js → MobileAppDrawer-BRK9r0e2.js} +1 -1
- package/dist/assets/{MoreMenuButton-CkkW1atP-BhjeSlOV.js → MoreMenuButton-B1OKwXLg-CUWjb2Vn.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BU6TBzI1-D2Qaudqr.js → MyBankConnectionsSettingsPage-DtTjhna--DTBZyR2y.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DcunCDU6-NjjjBd7F.js → MyPendingActivationChargeCardListPage-CKSWf7I4-5HMiO4ol.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DF7ahyXE-BjXkIrz2.js → MyProfileSettingsPage-WF1pNlyU-DCBVPnlL.js} +1 -1
- package/dist/assets/NavBarWithPicker-DiCaJ8Qy-BnNZsOl6.js +30 -0
- package/dist/assets/{NavigationArrow-CWUL-6kN-DVve579d.js → NavigationArrow-f4Z3TuXg-UuhH1nBa.js} +7 -7
- package/dist/assets/{NavigationDots-c-XSrFzE-eujVKwdH.js → NavigationDots-WiVjbUsC-Crp3ArrF.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-FGEO68I8-XZyzhNzP.js → NewGlobalMerchantPage-kvjjwV8d-C2-dLqkh.js} +1 -1
- package/dist/assets/{NoDataChart-DJhSgtLu-BSak9fMr.js → NoDataChart-DlSLTzZl-FuGU3dm-.js} +1 -1
- package/dist/assets/{NoDataTable-BZiwo2qK-Cb8q0aH6.js → NoDataTable-9vLoRpsR-CqXldB2y.js} +1 -1
- package/dist/assets/{NotFoundPage-BN5unYX8-CqJlv_oy.js → NotFoundPage-CFlNCHFs-HVhDj2Ia.js} +5 -5
- package/dist/assets/{NotFoundScreen-DxyQKnff.js → NotFoundScreen-YeCuKQy4.js} +1 -1
- package/dist/assets/{NotificationRoutes-DqG-dvkw.js → NotificationRoutes-Dd09Cbi8.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-d8kHDj0M-Beqgksyi.js → NotificationSettingsPage-KJzE9v4p-DOQO6pCa.js} +4 -4
- package/dist/assets/{NotificationsListConfig-ThKLok_w-B2H6cGPA.js → NotificationsListConfig-6sXXtF_E-BS4C2OAr.js} +1 -1
- package/dist/assets/{NotificationsPage-Uvu6XESA-B1Rgn8VW.js → NotificationsPage-D4AmPdo9-BPnTsbgm.js} +1 -1
- package/dist/assets/{OpExByVendorPage-QyqRkD2_-D5R40Gs5.js → OpExByVendorPage-B5Wtu3ww-DQg4-jJ4.js} +6 -6
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-C7rxXRm5.js → OverlayContainerPage-BG9y5C0t-COHi_UQx.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DJ2v5qbE-BEs_yDo8.js → PandLWithForecastPage-CjkaxTx7-DQmjDDak.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-C4ljq3MB.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-q5z8XZFC-DgyJWqIO.js → PaymentAccountSetupBillingAddressSection-eeLSg7xb-CRk9dKLv.js} +1 -1
- package/dist/assets/{PeoplePage-C5ZdpVyR-DYtjpv4S.js → PeoplePage-CQREy6SW-aaRJEBLV.js} +1 -1
- package/dist/assets/{PeopleRoutes-BODLG-b6.js → PeopleRoutes-ChdDR42u.js} +3 -3
- package/dist/assets/{PerformanceRoutes-BqLOjKSO.js → PerformanceRoutes-C9_QucnY.js} +1 -1
- package/dist/assets/{Preview-C2UYzTeJ.js → Preview-CQ45ZFEO.js} +1 -1
- package/dist/assets/{ProductsCarousel-CXjLTOLy-BLUY71s0.js → ProductsCarousel-COZZMTcH-Bzu55dWw.js} +1 -1
- package/dist/assets/{PromoBaseCards-CN9uZfG4-BbNgX9Bb.js → PromoBaseCards-Bmn6TN2k-Bz52UdXc.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CXSi1Pd9-dALyjXGw.js → QBOConnectionDialog-DYxoiSkA-BahHoGsk.js} +4 -4
- package/dist/assets/{QBOConnectionScreen-Ac9DU04j.js → QBOConnectionScreen-CvnGX6ip.js} +1 -1
- package/dist/assets/{QBOSetupSection-BrtLMvEP-DHfwqwJo.js → QBOSetupSection-Cdz2PDxV-3UdpeU-_.js} +7 -7
- package/dist/assets/ReferralListScreen-rNybuoN2.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-B3As-zjk.js → ReimbursementApprovalRoutes-CoADYXXE.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CS1BQ7pL-DnepdUba.js → ReimbursementApprovalRuleDetailPage-C-QEoqCw-nwX6DLtF.js} +5 -5
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-gUYecGxU.js → ReimbursementApprovalRuleDetailScreen-Bqm6EOL1.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-aLRkhkZB-BEmJZKcM.js → ReimbursementApprovalRulesPage-Ch2sxTFV-tKNtb0zE.js} +26 -26
- package/dist/assets/{ReimbursementDetailPage-Dr5BTvEq-mnlxt9h1.js → ReimbursementDetailPage-DSF6SfKn--PtdBuMK.js} +5 -5
- package/dist/assets/{ReimbursementPromoPage-C5Z0mVhQ-nERw0M4a.js → ReimbursementPromoPage-F1ROFd63-BFHAhlMX.js} +11 -11
- package/dist/assets/{ReimbursementRoutes-vASJxFJ_.js → ReimbursementRoutes-DGj3kepc.js} +3 -3
- package/dist/assets/{ReimbursementSetUpPage-CXhOBErm-CR6Shq7r.js → ReimbursementSetUpPage-l2mhLFuo-DfOuAAr0.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CA0n0mau-Dwnq8e4l.js → ReimbursementsBulkReviewDrawerPage-DyPxPnlu-BmJ-UskM.js} +1 -1
- package/dist/assets/{ReloadCard-Bjp8ygC2-fExG7Dij.js → ReloadCard-CDcJMl9F-DmOo4rMc.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DTk1dNWC-tS3w4hoK.js → ReportTableViewSelector-DvCk55Hn-DU86kKFX.js} +5 -5
- package/dist/assets/ReportsPage-DfqqKSt3-DjEpZpYh.js +269 -0
- package/dist/assets/{ReportsRoutes-DYYeCY0N.js → ReportsRoutes-DrS0PfFL.js} +1 -1
- package/dist/assets/{RevenueChart-CqGvXDr4-BYM89H6k.js → RevenueChart-BONT9upM-Wgu_yKns.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CWBP7FBN-D5XTlGGP.js → ReviewDetailsPage-857bVurA-DISEdilE.js} +6 -6
- package/dist/assets/{ReviewOverlay-Cxkp85Kw-DWi1LLwl.js → ReviewOverlay-ClQg7d2j-DMLhTFSB.js} +1 -1
- package/dist/assets/RewardsRoutes-BI3CFx__.js +1 -0
- package/dist/assets/RoleWithToolTip-C0G1Hgp_-C6OnScGb.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CYvlB3Nf-BjmGalLA.js → ScheduleDetailsFixedAssetsPage-CJ_JBtxS-BI5TWCkt.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-CZXJ15tN-Cvz9LjHh.js → ScheduleDetailsPage-B1aEwPL--CmKbMEkF.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DNPID_7F-Dpy7XGsr.js → ScheduleSequenceTable-DhU7PI91-B_rwqPJI.js} +1 -1
- package/dist/assets/{ScreenRoutes-DMiG7sGl.js → ScreenRoutes-BEfnlKLo.js} +2 -2
- package/dist/assets/{SetUpAccountSection-_WPR-q2V-D1in60I8.js → SetUpAccountSection-C8dulq9s-NOviRS6G.js} +20 -20
- package/dist/assets/{SettingsRoutes-Cq0IT0xM.js → SettingsRoutes-Cv3I5FcH.js} +1 -1
- package/dist/assets/{SetupPagesScreen-By_64UnM.js → SetupPagesScreen-DXJ1IvhH.js} +1 -1
- package/dist/assets/{SignIn-CDEsZw_T-CdZG3KKx.js → SignIn-wDe7lbGR-CsMJoTy9.js} +4 -4
- package/dist/assets/{SignInScreen-BbMIUMVO.js → SignInScreen-TFIvhVsE.js} +1 -1
- package/dist/assets/{SignOutScreen-D0CN7EZM.js → SignOutScreen-DNlfKKyW.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-MOCWuROI-B6XDQZbP.js → SpendManagementListViewPage-BdddUHrW-DddaRnSk.js} +8 -8
- package/dist/assets/{SpendManagementPerTabPage-BeK0SCeE-uu94FLdi.js → SpendManagementPerTabPage-BBJm3884-BFVFYDTY.js} +1 -1
- package/dist/assets/{SpendManagementSection-DZFPfKNi-a6NNMz0d.js → SpendManagementSection-6R5y0Hy4-BDNcg1eM.js} +9 -9
- package/dist/assets/StatementItem-qsoXKx_p-B1TzdTRA.js +31 -0
- package/dist/assets/{StatementsPage-DYLp_e7W-DQJFRbex.js → StatementsPage-Cn7WG5-S-RUted-8P.js} +2 -2
- package/dist/assets/{StatusSwitcher-jxaonB4S-BRWCrppB.js → StatusSwitcher-D3qCg5J1-CR1Mcm2E.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CudjNlsi-B0ZvqQ02.js → SubTabSwitcher-BXajy75j-Dc5sli1z.js} +1 -1
- package/dist/assets/{SuccessAnimation-DE_x1Zz_-CSRw6QzL.js → SuccessAnimation-CSblamOQ-Bn7t6Lwt.js} +1 -1
- package/dist/assets/SummaryCard-B1d4_5lE-Dcb38d7W.js +1 -0
- package/dist/assets/{TaskDetailPage-CXexRKAY-PJYd8Hc8.js → TaskDetailPage-CrsQnhu1-DqJUU9CD.js} +1 -1
- package/dist/assets/{TaskListScreen-D5r5oVZW.js → TaskListScreen-DQaj367P.js} +1 -1
- package/dist/assets/{TaskManagementPage-CTMoHv0R-DqoYVk-e.js → TaskManagementPage-h3Rb49Jj-CiFXDTcp.js} +1 -1
- package/dist/assets/TaskRoutes-DcIHRznV.js +9 -0
- package/dist/assets/{TimeRangeSwitcher-SqY2MHGs-vaeYYQAs.js → TimeRangeSwitcher-DpUOmqiR-D_tIz1xP.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BlJ2fuHy-C0bwk8vS.js → TimeframeSwitcher-BKEtsv_r-CS6zQ4bX.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Dgc1odUH-6AO25YrU.js → TimeframeSwitcherWithToggle-DECnQIMT-DCOsHatx.js} +10 -10
- package/dist/assets/{TopExCard-CG8YLsYe-Dhi0dyPE.js → TopExCard-leQR29Sq-DG9ySZIm.js} +1 -1
- package/dist/assets/{TopExDetailPage-TvYCbzSP-CwBViHGc.js → TopExDetailPage-Dgg7Do6D-B22efZAA.js} +3 -3
- package/dist/assets/{TransactionActivityLogPage-BL3vEAdU-CS7vD3qG.js → TransactionActivityLogPage-CU2pUJQL-CgftV9ye.js} +5 -5
- package/dist/assets/{TransactionDetailPage-DUouBL0o-BaXoqvey.js → TransactionDetailPage-FT2IPLH7-DAfWSPCG.js} +32 -32
- package/dist/assets/{TransactionDetailRoutes-B-UBtWLp.js → TransactionDetailRoutes-l4cqdz7w.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-B7XWRVbF.js → TransactionDetailScreen-BxZ1AvRI.js} +1 -1
- package/dist/assets/{TransactionList-B16NONME-CRFiM4VM.js → TransactionList-C2MGkQYM-CPp22oMb.js} +8 -8
- package/dist/assets/{TransactionListBig-CItPbTRV-UNSverIa.js → TransactionListBig-CZ3jIxzR-BG5pwJlw.js} +6 -6
- package/dist/assets/TransactionListPage-PCa4exLO-uM7mJD-y.js +35 -0
- package/dist/assets/{TransactionListRoutes-CMu9kV3q.js → TransactionListRoutes-veIGR3tC.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DpqisXN8-D2bHcxtn.js → TransactionVendorDetailPage-BgcqndCu-BSSs2Jcd.js} +1 -1
- package/dist/assets/{TransferDrawerPage-Dsmbswu0-uDwjyCTF.js → TransferDrawerPage-SirvPH4z-DtzIcgDc.js} +10 -10
- package/dist/assets/{TreasuryOverviewPage-BcRpcYmB-OKQJLbcE.js → TreasuryOverviewPage-B_WK1aOv-Bqerf9ct.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DOO_OMRa-8BGrxptq.js → TreasuryPromoPage-B_D63Dr2-Di08g28n.js} +6 -6
- package/dist/assets/{TreasuryRoutes-Cb-myn_k.js → TreasuryRoutes-BDfDMqyl.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-A_U7bEy5-CYr3tH5Z.js → TreasuryStatementsPage-BGe0fhBe-D_xnH4qk.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-BsJn-BgX-D1G4s_HP.js → TreasuryTaxLetterPage-9gNdkQZp-CGVWuYY2.js} +2 -2
- package/dist/assets/{TrendChart-GMMat-NG-DkIjx5iX.js → TrendChart-COItOWPp-Bqzu2MgM.js} +2 -2
- package/dist/assets/{TrendWithTransactions-CrA4opNV-BCS_tNQW.js → TrendWithTransactions-DgAw_8CI-MC8wGnO9.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-CrzbFGOi-7c9nQkHm.js → UncategorizedAccountsMappingPage-B9EziB6Q-gv_x6dec.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-XZY6zJa7-Bog6bLZs.js → UnitIntegrationPage-DGWNyWV1-Dx2SNOLo.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-eqwSLigx-Cfv8NRXy.js → UploadAdditionalDocumentOverlay-DWmMz_8y-Dm_NzTDF.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BHDivuPB-CB8oiip3.js → Vendor2FAPopup-dh2g8kqu-tmyn1K6T.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-C0vIRpRW-DV0u5MUr.js +1 -0
- package/dist/assets/{VendorDetailPage-DEu-yS8w-BHxBRvla.js → VendorDetailPage-CGqoIODq-DATvkiT-.js} +13 -13
- package/dist/assets/VendorDomesticWireDetailsPage-BVXSOMiH-DLIihksm.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C461SzO0-Cw1duzzR.js → VendorFiling1099EditablePage-CsnlHrCl-DrSHAjrS.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-klbCHS04-yDjeltgT.js → VendorFirstReviewPage-DC1j2sO_-BShWc2PZ.js} +7 -7
- package/dist/assets/{VendorInternationalWireDetailsPage-DY0V-VbO-BJcPP-gp.js → VendorInternationalWireDetailsPage-Drr00a6C-B8ypeLTf.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CZ5N8G2o-Cr3Iymam.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Cqcr-ArD-BIHA7sqx.js → VendorsAccountsSection-BtdwR8u4-CH_AUGJD.js} +1 -1
- package/dist/assets/{VendorsRoutes-CgJOnYMS.js → VendorsRoutes-DTveFO9E.js} +11 -11
- package/dist/assets/{VerifyDevice-Dhu5iywf-CpE-kgrB.js → VerifyDevice-Bhr_yHpE-BmXUueZN.js} +4 -4
- package/dist/assets/{VideoPlayer-ZGjx_Hp7-BHgQYkml.js → VideoPlayer-wlJX6lEq-BRAB9bV0.js} +1 -1
- package/dist/assets/VideoPopup-BPptwR51-Dm-cn-KD.js +31 -0
- package/dist/assets/{WiseConfirmationScreen-BTkxegx5.js → WiseConfirmationScreen-Be5nRHHx.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DQB7sXU9-ZmSVhLSw.js → ZeniAccountDetailPage-CSsu44ls-2H7-YqPq.js} +12 -12
- package/dist/assets/{ZeniAccountListViewPage-BwXKgf6g-Ctizh7he.js → ZeniAccountListViewPage-BZwGCrzx-Hl1cOwI1.js} +32 -32
- package/dist/assets/{ZeniAccountNavBarPieces-CHUTFAWG-BmLRxXwk.js → ZeniAccountNavBarPieces-CrNjnkNS-CNki38NN.js} +5 -5
- package/dist/assets/{ZeniAccountPromoPage-BkfJuMNV-Ckl9m4pN.js → ZeniAccountPromoPage-CahV-Rmf-Dvz1FwqA.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-D71bZRux.js → ZeniAccountRoutes-BMxuBylQ.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-C3drM4Zs-B_sQz9qJ.js → ZeniAccountSetupPage-DSNDNKZr-CwYlMf2d.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BI6AQKJr.js → ZeniAccountStatementScreen-BJVQBUGi.js} +1 -1
- package/dist/assets/{ZeniAvatar-C38T0-5--BSN8GGLN.js → ZeniAvatar-De0hFvIm-DzjTiqNz.js} +1 -1
- package/dist/assets/{ZeniCopyright-CznSgVJF-B8RRSTgM.js → ZeniCopyright-BNGdkMOa-Cl7T_xPz.js} +1 -1
- package/dist/assets/{ZeniDatePicker-Bw9RlgoL-BmT27weB.js → ZeniDatePicker-CYNEE0pM-DG-NDcrF.js} +4 -4
- package/dist/assets/{ZeniTransferAmountSlider-C77DEl-C-CruP3RMa.js → ZeniTransferAmountSlider-DuD1JtSv-DhSBAK_q.js} +1 -1
- package/dist/assets/{accountMappingHelper-B1SwIfFo.js → accountMappingHelper-FrhvxzcW.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-2vbkyqzY.js → add-to-wallet-DgdBD8_G-BqBidt5n.js} +1 -1
- package/dist/assets/{analytics-Qgv3Fhaa.js → analytics-CVqRc8fh.js} +1 -1
- package/dist/assets/{analyticsHelper-BtB7CtC3.js → analyticsHelper-DJS6x-LZ.js} +1 -1
- package/dist/assets/{analyticsHelper-Bh8o1v3y-DbxZaMDt.js → analyticsHelper-DjQYjslY-BxoS4N1f.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CHgaZ-yo.js → arrow-south-east-round-PEovUgvH-B3QTzBHA.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BdBsn5Ol.js → auto-transfer-rule-mbafm5D3-de_8OjuK.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-CxU8IzEu.js → avatar-Dz7aEm3d-B-3VAvb3.js} +1 -1
- package/dist/assets/{bank-letter-BOcVjN6J-DhC6VHDB.js → bank-letter-BOcVjN6J-KdddOmyc.js} +1 -1
- package/dist/assets/{calculateSize-QoQyn_Ku-BQL_mWcG.js → calculateSize-i9QGr8q0-Dp5VSL_N.js} +1 -1
- package/dist/assets/{chartTypes-C14YY2Rq--XZc2xV6.js → chartTypes-BGl-YMiu-DyUWLIfR.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-BBrb7jeK.js → clock-CJkylEKt-CB7HCMZv.js} +1 -1
- package/dist/assets/common-Cws59IN1-fneKv-li.js +1 -0
- package/dist/assets/{commonDimensions-CVpc-NCw-CA0m656N.js → commonDimensions-CuKo3wam-D08uyy0o.js} +1 -1
- package/dist/assets/{commonTypes-Ec-PxfpT-DzRDGsuT.js → commonTypes-CfAg6Jvv-C_Qjl0Ts.js} +1 -1
- package/dist/assets/{core-CaikJZHD.js → core-AYNw6kyJ.js} +1 -1
- package/dist/assets/{dash.all.min-CteFsaah.js → dash.all.min-Dq_dQY1I.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DcEFJStp.js → decodeURIComponentSafe-E-sgiudi.js} +1 -1
- package/dist/assets/{dnd-CzsffKNn.js → dnd-Dw-riVE4.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-BF4Thvjs.js → dollar-round-D18u7nlm-CvsBoEut.js} +1 -1
- package/dist/assets/{downloadPdf-BuPJ6cfr-Bn04BzVs.js → downloadPdf-Dcd8BY_9--BaRfov1.js} +1 -1
- package/dist/assets/{empty-B5B-FKq1.js → empty-C9c-cai_.js} +1 -1
- package/dist/assets/{empty-CTO6rJhq.js → empty-CX0U2Ty5.js} +1 -1
- package/dist/assets/{epic-DtTDCbBB.js → epic-B6fOiqme.js} +1 -1
- package/dist/assets/{filter-cZIFUNvj-CWbeOwgA.js → filter-cZIFUNvj-lFkn5gVk.js} +1 -1
- package/dist/assets/{getLocaleForTenant-dwEXf4rX.js → getLocaleForTenant-x8J8_kQc.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-BfzCBGHZ.js → gift-box-Cmt9OgIZ-BPwbjUGz.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DEuKmvBU.js → graphic-no-data-l-DU4J8fDt-CaJy2HdS.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js → graphic-no-data-net-burn-l-CzmycA0m-C9pmzSAL.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Z_I5plJl.js → handshake-BPg58FML-BSOSNqUk.js} +1 -1
- package/dist/assets/{helper-AgH8nJln-BDBxe9FK.js → helper-DkzA3y2L-CVdrHzZT.js} +1 -1
- package/dist/assets/{hyperlink-DQyCeXx2-Bwqrw7ES.js → hyperlink-DQyCeXx2-CVVb97aA.js} +1 -1
- package/dist/assets/{index-CuxRoVvZ.js → index-CilRLucN.js} +6 -6
- package/dist/assets/{index-BL34svil.js → index-Dm85Hu6Z.js} +1 -1
- package/dist/assets/{index-B7wRNic7.js → index-DqcXLX0N.js} +1 -1
- package/dist/assets/{index-B9eknY8q.js → index-DubSD1fb.js} +1 -1
- package/dist/assets/{index-CLf01Vy8.js → index-NZat51vK.js} +1 -1
- package/dist/assets/{index-B9myuWEH.js → index-wicPWwlB.js} +1 -1
- package/dist/assets/{lexical-CXNTSpM4.js → lexical-B-dyW3-4.js} +1 -1
- package/dist/assets/{liveblocks--AdozwCz.js → liveblocks-DJcRPJQh.js} +1 -1
- package/dist/assets/{lottie-D86WIi_0.js → lottie-DdLBMmzp.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DTyQHWMc-tj_AEx0m.js → mapLoadingInProgressToTreeNode-lABm-2N9-Chsh4dr_.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D7pjBGp6-bV4CDhWS.js → mapSectionWithAcOnlyToTreeNode-COcUb2pF-DXYL2e9L.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BDjo5N-i-D6CiBSSk.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CvVUjW74-CI8ETEqs.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CwHF76sn-CrCtE0Hw.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-Dr2IrdLd.js +1 -0
- package/dist/assets/{media-player-OnsEq_AY.js → media-player-V7uSzi45.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-CfgKOIyt.js → money-2cg1MuG4-B7YE6t0I.js} +1 -1
- package/dist/assets/{mui-G2MlMTlr.js → mui-Ckdcx_YE.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CWJ8fnGp.js → page-detail-CWX5S47F-NqWvakND.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-CaK_VLEF.js → page-summary-D7_VQHwN-BvkWkaoT.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-XfdQwEMM.js → panelSelectedMixin-Cddsb26L-CROMd__p.js} +1 -1
- package/dist/assets/{pathToGoBack-Dh6AhADv.js → pathToGoBack-C_2xxQDe.js} +1 -1
- package/dist/assets/{pdf-DwfifS04.js → pdf-CwWlK-Dr.js} +3 -3
- package/dist/assets/{pdf-lib-CuGtb6jg.js → pdf-lib-DhaWOBih.js} +1 -1
- package/dist/assets/{plaid-CcxzSXZd.js → plaid-BhP6n1uc.js} +1 -1
- package/dist/assets/{pusher-BNSVRSP_.js → pusher-8DhjdTCA.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CF7OSKL1.js → radio-default-CiSgisfh-BoUlFA9D.js} +1 -1
- package/dist/assets/{react-BEcxr4nX.js → react-BHDcRwxI.js} +1 -1
- package/dist/assets/{react-V3TERlfD.js → react-BwCmpEw6.js} +1 -1
- package/dist/assets/{react-Cobj-_wp.js → react-CB4dPBRZ.js} +3 -3
- package/dist/assets/{react-DOvM9ag3.js → react-CE6422aE.js} +1 -1
- package/dist/assets/{react-Chqt_ss-.js → react-CGVKTtsW.js} +1 -1
- package/dist/assets/{react-BUDcsgZo.js → react-D-APY71d.js} +1 -1
- package/dist/assets/{react-C0Whd_8a.js → react-D4pZVe2B.js} +1 -1
- package/dist/assets/{react-WpjiT9jD.js → react-D_0srhsg.js} +1 -1
- package/dist/assets/{recharts-3tylCZU1.js → recharts-Dr1JzI4y.js} +1 -1
- package/dist/assets/{routePaths-CkO80-xL.js → routePaths-DqRhLReO.js} +1 -1
- package/dist/assets/{sentry-Cm8I7E9J.js → sentry-D-LCra2M.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-tt-dORuJ.js → shield-DOlUxcFf-D5PHf2Tj.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-d-tIWfnn.js → spend-limit-D6SyboD4-D85B38gI.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CGYYTIjt-Cbihktyj.js +1 -0
- package/dist/assets/{toChartData-G5y-N82I-CpDZEMyX.js → toChartData-B4ligi4c-CgbG1qSk.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-CXIruzlf.js → transaction-placeholder-CpOwZAMG-Ca0HZ2W6.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-5VNbpbUY.js → undo-b_3XZ5CX-CSQ0fDLS.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-8UNw8MhM.js → unlock-BPWn2I5L-DDdPB9QU.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js → upload-reimbursement-receipt-O2N8vcO7-DNsQOTk3.js} +1 -1
- package/dist/assets/{uploadAttachment-RbkIBMGO-DWkpV7gc.js → uploadAttachment-DgPDimcm-gkAtAf5q.js} +1 -1
- package/dist/assets/{uploadReceipts-CIgkuVpu-BxCHb2mc.js → uploadReceipts-CIgkuVpu-CPDGmbPp.js} +1 -1
- package/dist/assets/{url-CvhemPUG.js → url-BK92KGZc.js} +1 -1
- package/dist/assets/{url-BMzuxPwA.js → url-DUid0IO0.js} +1 -1
- package/dist/assets/{useDeviceId-BzlY8kf5.js → useDeviceId-BCros22l.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CtiCksTW.js → useInitialThreadRequest-Wj3ao3U4.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BgmUYGJ7.js → useLongPress-GCK2COYQ-Bs4IMufW.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BqojtCEK.js → usp-line-BBd1wKwW-BBaxYQlT.js} +1 -1
- package/dist/assets/{utils-BhOlvYO8.js → utils-CI1RvLss.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DXYKCsTM.js → withTransactionSidePanel-CEBXOpSa.js} +1 -1
- package/dist/assets/{zeni-epic-state-lC5X-sam.js → zeni-epic-state-B1zsDZZ4.js} +3 -3
- package/dist/assets/{zeni-icon-only-DZ6h0uLr.js → zeni-icon-only-Bb7XRMgX.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-pEEhPqOb-BzcKyQfW.js +0 -18
- package/dist/assets/ApAgingDetailPage-CxLVGnpY-BrZpRxc6.js +0 -46
- package/dist/assets/BillPayApprovalRuleDetailPage-Blxlv3pa-NuWc5jPY.js +0 -27
- package/dist/assets/ChargeCardPromoPage-D4canPX9-B2gMZ94L.js +0 -222
- package/dist/assets/CustomerOnboardingAuthScreen-DsZqZ3Im.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--zNlFTkjO.js +0 -1
- package/dist/assets/EntityDetailPage-DPTSSZdS-CPjJOO2E.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-DwBTA9or.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-M9e4wRPN.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-BKUO0J46.js +0 -1
- package/dist/assets/NavBarWithPicker-D2v1fhLS-CH1wdNXM.js +0 -30
- package/dist/assets/PandLWithForecastRoutes-CRImnf0E.js +0 -1
- package/dist/assets/ReferralListScreen-BaUv0jQW.js +0 -5
- package/dist/assets/ReportsPage-DrjOGopt-CEvm9-2-.js +0 -258
- package/dist/assets/RewardsRoutes-BcQjimjg.js +0 -1
- package/dist/assets/RoleWithToolTip-CqLxmtj6-BxFgYmxI.js +0 -22
- package/dist/assets/StatementItem-DjvU5wiI-BbvkEOCR.js +0 -31
- package/dist/assets/SummaryCard-DPOhBmkr-Bkvd2_eX.js +0 -1
- package/dist/assets/TaskRoutes-ByOGwdlB.js +0 -9
- package/dist/assets/TransactionListPage-DNecYY8M-BHlckINI.js +0 -35
- package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-ChbQ_fot.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-0MxyPK7N.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-CFJY5gem.js +0 -1
- package/dist/assets/VideoPopup-R3u0N_if-SR7jlWFi.js +0 -31
- package/dist/assets/common-Cu5K0AJk-Cxd55kqL.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-9PB61B4X.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Drhl_lnP-DCqw81Fp.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-CPc-fd5T.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BaY2mTy_.js +0 -1
- package/dist/assets/toCOABalancesWithID-wh35N3no-D_L2t0iR.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,g1 as li,ba as si,fJ as ci,fK as di,g2 as ui,A as ho,bR as gn,bS as go,bT as yo,b as Y,o as n,x as s,a_ as Ln,aM as mi,cR as pi,fL as hi,fU as bo,fR as An,a9 as fo,k as xo,be as gi,g3 as Ge,e3 as
|
|
1
|
+
import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,g1 as li,ba as si,fJ as ci,fK as di,g2 as ui,A as ho,bR as gn,bS as go,bT as yo,b as Y,o as n,x as s,a_ as Ln,aM as mi,cR as pi,fL as hi,fU as bo,fR as An,a9 as fo,k as xo,be as gi,g3 as Ge,e3 as Qe,eA as yn,g4 as Et,O as $e,L as It,g5 as yi,f as R,a8 as wo,D as bn,m as a,aV as bi,bf as fi,c9 as xi,eb as fn,g6 as Nt,c$ as be,cd as xn,d5 as fe,cc as ct,dP as wi,eO as So,w as Bt,cg as vo,cf as lt,dX as Re,C as wn,g7 as Si,c8 as vi,ad as zn,eZ as $i,aU as Ci,g8 as Bn,au as $o,aA as ki,dO as Ii,ar as Wt,fM as Ti,bq as Co,d as Sn,M as ko,cq as Io,bH as Ut,eq as Di,at as ji,cu as Oi,eT as Pi,l as vn,a as Mn,bo as To,al as Fn,cp as Ri,H as Li,ci as Do,a5 as Ai,g9 as jo,ga as hn,gb as Oo,fD as En,eo as Mt,c6 as zi,fH as Bi,b6 as Mi,co as Fi}from"./index-CilRLucN.js";import{a as w,b as Ot}from"./sentry-D-LCra2M.js";import{n as o}from"./mui-Ckdcx_YE.js";import{G7 as Ei,bG as st,c6 as Po,cp as Ro,cj as Nn,G8 as Wn,bs as $n}from"./zeni-epic-state-B1zsDZZ4.js";import Lo from"./InvoiceUploadSection-DOuTQPee-DNxyr3cj.js";import{r as Ni,f as Ft,d as Ct,p as Cn,u as Un,h as ve}from"./types-DyvtCprH-VF9iATMs.js";import{D as Wi}from"./LabeledCreatableSingleSelectField-PiLB1S77-CXLJARhZ.js";import{S as Ui}from"./CurrencySelectField-D2Ogwvbr-B4ftuyL3.js";import{u as _i}from"./plaid-BhP6n1uc.js";import{e as Vi}from"./BankAccountSection-DgbfU8F--DERufWYy.js";import{W as Hi,A as qi}from"./BankAccountWarningSection-litL0o_Z-YNoMxnsQ.js";import{o as Ki}from"./radio-default-CiSgisfh-BoUlFA9D.js";import"./pdf-CwWlK-Dr.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./utils-CI1RvLss.js";import"./AttachmentView-DQdb3v_e-BgOMzST7.js";import"./uploadReceipts-CIgkuVpu-CPDGmbPp.js";import"./upload-reimbursement-receipt-O2N8vcO7-DNsQOTk3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="36612367-6802-4df8-afdd-f89c568a5c5f",e._sentryDebugIdIdentifier="sentry-dbid-36612367-6802-4df8-afdd-f89c568a5c5f")}catch{}})();const Oe=(e,i)=>`${e}.${i}`,_n={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Se}},dateFormat:Gi,common:Yi}=$e.getLocalizedStrings(),Zi=({lineIndex:e,mileage:i,classList:r,defaultCurrency:m,sectionId:u,isReimbursementCommentingEnabled:O,isDisabled:d,isAddReimbursementDisabled:D,companyMileageConfigInfo:j,customerSearchAutoComplete:C,reimbursementId:l,classHierarchyList:k})=>{const c=ze(),f=ft(),y=Nt(),p=`dashboard_${f.currentTenant?.companyId}`,v=kt(),{formState:{errors:P},getValues:b,trigger:$}=ct(),h=Yi.strings.empty,z=b(Oe(u,"distanceInMiles")),ne=_n.largeLabelWidth.value(c),oe=b(Oe(u,"class")),le=r.find(M=>M.classId===oe?.selectedOption),E=Oe(u,"class"),ue=Re(P,E);w.useEffect(()=>{oe?.selectedOption!=null&&(le?.isDeleted===!0||ue)&&$(E)},[oe?.selectedOption,le?.isDeleted,r,E,$]);const G={application:"dashboard",companyId:f.currentTenant?.companyId,tab:"reimbursement",entityId:l},se=r.find(M=>M.classId===i.class),U={valueContainer:M=>({...M,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},ie={valueContainer:M=>({...M,padding:`2px ${n.sp3} !important`,overflow:"unset"})};return t.jsxs(t.Fragment,{children:[t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Do,{isDisabled:d,label:{label:Se.transactionDate,width:ne},style:{paddingBottom:_n.paddingBottom.valuePx(c),width:"auto"},dateField:{name:Oe(u,"transactionDate"),placeholder:Se.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:Gi.visual.defaultInput,autoComplete:"off",maxDate:$n(),registerOptions:{required:!0,validate:M=>!!M}}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(En,{isDisabled:D?"disabled":void 0,style:{width:"auto"},label:{label:Se.distanceInMiles,width:ne},formattedTextField:{type:"number",name:Oe(u,"distanceInMiles"),placeholder:Se.addMiles,defaultValue:i.distanceInMiles,registerOptions:{required:!0,validate:M=>M==null||M>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.amount`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(En,{isDisabled:"disabled",label:{label:Se.amount,width:ne},formattedTextField:{type:"number",name:Oe(`${u}.amount`,"amount"),defaultValue:i.amount?.amount,placeholder:lt(Se.amount),returnValueType:"floatValue",prefix:i.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:M=>M==null||M>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:z!=null&&j?.mileageUnitAmount!=null?`${m.currencySymbol}${j?.mileageUnitAmount} per mile x ${z}`:void 0})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.memo`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(xn,{isDisabled:d,label:{label:Se.memo,width:ne},style:{width:"auto"},text:{type:"text",name:Oe(u,"memo"),placeholder:lt(Se.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:jo}}})}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.class`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{isLoading:!1,label:{label:Se.department,width:ne},additionalLabelInfo:le?.isDeleted===!0&&Re(P,Oe(u,"class"))?Se.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Oe(u,"class"),placeholder:lt(Se.department),valueToId:M=>(X=>r.filter(ce=>ce.classId===X)[0]?.accountingClassNumber)(M),defaultValue:{selectedOption:se?.classId,allOptions:Qe(k,[])},style:{width:"100%"},customStyleConfig:U,registerOptions:{required:!0,validate:M=>M?.selectedOption!=null&&(r.find(X=>X.classId===M?.selectedOption)?.isDeleted!==!0||Se.deletedClassError)}},style:{borderBottom:`1px solid ${v.colors.grey3}`},fullWidthSelect:!0},Oe(u,"class"))}),t.jsx(vt,{}),t.jsx(be,{isThreadAllowed:O&&l!=null,dashboardTabKey:fe({type:"details",key:`${e}.mileage.customer`}),roomId:p,companyId:f.currentTenant?.companyId??h,companyName:f.currentTenant?.companyName??h,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${ve("customer",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Oo,{label:{label:Se.customer,width:ne},isDisabled:d,autoCompleteSingleSelectField:{name:Oe(u,"customer"),placeholder:Se.customerPlaceholder,isDisabled:d,valueToId:M=>M,defaultValue:{selectedOption:i.customer?.selectedOption,defaultOptions:i.customer?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:ie,loadOptions:C?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},Oe(u,"customer"))})]})},vt=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
5
5
|
min-height: 1px;
|
|
6
6
|
max-height: 1px;
|
|
7
|
-
`,Vn={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function Ji({name:e,placeHolder:i,defaultValue:r,isDisabled:m,showAmountCurrencyError:u,style:O,allCurrencies:d}){const[
|
|
7
|
+
`,Vn={amounWidth:new s(50,30),currencyWidth:new s(50,70)};function Ji({name:e,placeHolder:i,defaultValue:r,isDisabled:m,showAmountCurrencyError:u,style:O,allCurrencies:d}){const[D,j]=w.useState(!1),{getValues:C,formState:{errors:l}}=ct(),k=kt(),c=ze(),f=m!=null,y=C(e),p=`${y?.amount} ${y?.currency?.selectedOption}`,v=Re(l,e)&&Mt(l,`${e}.amount`)!=null,P=Re(l,e)&&Mt(l,`${e}.currency`)!=null,b=u===!0&&(v||P),$=!b&&D===!1;return w.useEffect(()=>{$===!1&&j(!0)},[$]),t.jsx(xo,{onClickAway:()=>f===!1&&!b&&j(!1),children:t.jsx(Qi,{style:O,isDisabled:f,tabIndex:$&&!f?0:void 0,onClick:()=>f===!1&&j(!0),"data-testid":Y("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[y?.amount!=null?t.jsx(Hn,{className:"amount-field",isVisible:$,children:p}):t.jsx(Hn,{className:"amount-field amount-placeholder",isVisible:$,children:i?.name}),t.jsxs(Xi,{isVisible:!$,children:[t.jsx(Bi,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:i?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:h=>h==null||h>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:m,style:{display:"flex",flexGrow:1,width:Vn.amounWidth.valuePercentage(c),cursor:"inherit"},bgColor:k.colors.background,isFieldError:v,shouldHighlightZeroAmount:!0}),$?null:t.jsx(ea,{}),t.jsx(Ui,{name:`${e}.currency`,registerOptions:{validate:h=>h!=null&&h.selectedOption!=null},defaultValue:{allOptions:d.map(h=>({label:c==="small"?h.currencyCode:`${h.currencyCode} - ${h.currency}`,value:h.currencyCode,countryCode:h.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:k.colors.background},isDisabled:m,style:{width:Vn.currencyWidth.valuePercentage(c),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Xi=o.div`
|
|
8
8
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
9
|
width: 100%;
|
|
10
10
|
input {
|
|
11
11
|
text-align: left;
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,Qi=o.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: flex-end;
|
|
@@ -37,7 +37,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
37
37
|
&.amount-placeholder {
|
|
38
38
|
color: ${e=>e.theme.colors.grey1};
|
|
39
39
|
}
|
|
40
|
-
`,qe={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])},Ao={infoLabel:new Sn("extraSmallRegular","smallRegular")};function ta({isDisabled:e,label:i,currencyAmountField:r,style:m,errorInfoLabel:u,isAdditionalInfoLabelLoading:O,showAdditionalLabelTooltip:d=!1,additionalLabelTooltip:
|
|
40
|
+
`,qe={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])},Ao={infoLabel:new Sn("extraSmallRegular","smallRegular")};function ta({isDisabled:e,label:i,currencyAmountField:r,style:m,errorInfoLabel:u,isAdditionalInfoLabelLoading:O,showAdditionalLabelTooltip:d=!1,additionalLabelTooltip:D,additionalInfoLabel:j,showAdditionalInfoLabel:C=!0}){const l=ze(),{formState:{errors:k}}=ct(),c=Re(k,r.name)&&Mt(k,`${r.name}.amount`)!=null,f=Re(k,r.name)&&Mt(k,`${r.name}.currency`)!=null,y=r.showAmountCurrencyError===!0&&(c||f),p=c||f||y;return t.jsxs(na,{size:l,style:m,isDisabled:e!=null,isAmountError:c,isCurrencyError:f,"data-testid":Y("labeled-currency-amount-field",r.name),children:[t.jsx(zi,{isDisabled:e,label:i.label,htmlFor:r.name,style:{marginLeft:qe.labelMarginLeft.value(l),marginRight:qe.labelMarginRight.value(l),marginTop:qe.labelMarginTop.value(l),width:i.width??"auto"}}),t.jsxs(ia,{labelWidth:i.width,children:[t.jsx(Ji,{...r,isDisabled:e,style:{flexGrow:1,height:qe.controlHeight.value(l)}}),p?t.jsx(oa,{size:l,hasError:p,children:u}):null,(()=>{if(O===!0)return t.jsx(ra,{children:t.jsx(It,{size:"Small",start:!0})});if(C&&j||y){let v=null;return d===!0&&C&&j&&(v=t.jsx(To,{placement:l==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(aa,{children:D??""}),children:t.jsx(sa,{children:t.jsx(ca,{})})})),t.jsxs(la,{size:l,isError:y,hasToolTip:d,children:[v,j]})}})()]})]})}const na=o.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
align-items: flex-start;
|
|
@@ -146,7 +146,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
146
146
|
width: ${n.sp3};
|
|
147
147
|
height: ${n.sp3};
|
|
148
148
|
color: inherit;
|
|
149
|
-
`,de=(e,i)=>`${e}.${i}`,zt={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:da,common:zo,spendManagement:{reimbursement:{reimbursementDetail:
|
|
149
|
+
`,de=(e,i)=>`${e}.${i}`,zt={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:da,common:zo,spendManagement:{reimbursement:{reimbursementDetail:Q}}}=$e.getLocalizedStrings(),ua={valueContainer:e=>({...e,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},{strings:{empty:re}}=zo,ma=({lineIndex:e,outOfPocket:i,accountList:r,classList:m,merchantList:u,isAddReimbursementDisabled:O,sectionId:d,isReimbursementCommentingEnabled:D,isDisabled:j,autoFields:C=[],accountsHierarchyList:l,classHierarchyList:k,reimbursementId:c,tentativeMerchantName:f,allCurrencies:y,uncategorizedAccounts:p,customerSearchAutoComplete:v})=>{const P=ze(),b=ft(),$=Nt(),h=kt(),{formState:{errors:z},getValues:ne,trigger:oe}=ct(),le=ne(de(d,"class")),E=m.find(S=>S.classId===le?.selectedOption),ue=de(d,"class"),G=Re(z,ue),se=ne(de(d,"account")),U=r.find(S=>S.qboId===se?.selectedOption||S.accountId===se?.selectedOption),ie=de(d,"account"),M=Re(z,ie);w.useEffect(()=>{le?.selectedOption!=null&&(E?.isDeleted===!0||G)&&oe(ue)},[le?.selectedOption,E?.isDeleted,m,ue,oe]),w.useEffect(()=>{se?.selectedOption!=null&&(U?.isDeleted===!0||M)&&oe(ie)},[se?.selectedOption,U?.isDeleted,r,ie,oe]);const X=i.isCategoryUpdateSelected!=null&&i.recommendedAccount!=null&&!i.isCategoryFirstTimeAutofilled&&!((S,V)=>{const ge=S.slice(1);let Ye=!1;return ge.forEach(q=>{q.account?.qboId!=null&&q.account?.qboId===V&&(Ye=!0)}),Ye})(i.recommendations,i.account),ce=i.isRetainedCategorySelected!=null&&i.retainedAccount!=null,_=zt.largeLabelWidth.value(P),Te=zt.smallLabelWidth.value(P),De=u.map(S=>S.id??re),me={application:"dashboard",companyId:b.currentTenant?.companyId,tab:"reimbursement",entityId:c},pe=`dashboard_${b.currentTenant?.companyId}`,he=r.find(S=>S.qboId===i.account),Be=m.find(S=>S.classId===i.class),Le={valueContainer:S=>({...S,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},je=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",(S=>S.charAt(0).toLowerCase()+S.slice(1))(i?.recommendedAccount?.reason??re)),xe=Et(l,i.recommendations);return t.jsxs(t.Fragment,{children:[f!=null||C.includes("merchant")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(Wi,{isDisabled:j!=null||O?"disabled":void 0,label:{label:Q.merchant,width:_},style:{width:"auto"},creatableSingleSelectField:{name:de(d,"merchant"),placeholder:Q.merchantPlaceholder,defaultValue:{selectedOption:i.merchant??re,allOptions:De},registerOptions:{required:!0,validate:S=>!!S.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:S=>u.find(V=>V.id===S)?.name??S})}),t.jsx($t,{}),C.includes("transactionDate")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(Do,{isDisabled:j,label:{label:Q.transactionDate,width:_},style:{paddingBottom:zt.paddingBottom.valuePx(P),width:"auto"},dateField:{name:de(d,"transactionDate"),placeholder:Q.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:da.visual.defaultInput,autoComplete:"off",maxDate:$n(),registerOptions:{required:!0,validate:S=>!!S}}})}),t.jsx($t,{}),C.includes("amount")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,isTwoLined:!0,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(ta,{isDisabled:j!=null||O?"disabled":void 0,label:{label:Q.amount,width:Te},style:{width:"auto"},currencyAmountField:{style:{height:n.sp6},name:`${d}.amount`,defaultValue:{amount:i.amount.amount,currencyCode:i.amount.currencyCode,currencySymbol:i.amount.currencySymbol},placeHolder:{amount:Q.addAmount,name:Q.addAmount},allCurrencies:y,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:Q.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:i.isConvertedCurrencyLoading===!0,additionalInfoLabel:po(i.homeCurrencyDetails,i.amount)||i.amount.currencyCode===zo.currency.currencyCode||i.homeCurrencyDetails?.amount===0?void 0:`${Ai("0,0[.]00",i.homeCurrencyDetails)} ${i.homeCurrencyDetails?.currencyCode}`})}),t.jsx($t,{}),C.includes("memo")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(xn,{isDisabled:j,label:{label:Q.memo,width:_},style:{width:"auto"},text:{type:"text",name:de(d,"memo"),placeholder:lt(Q.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:jo}}})}),t.jsx($t,{}),C.includes("account")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.account`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("account",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{label:{label:Q.category,width:_},additionalLabelInfo:U?.isDeleted===!0&&Re(z,de(d,"account"))?Q.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:X||ce,name:de(d,"account"),placeholder:Q.categoryPlaceholder,valueToId:S=>(V=>r.filter(ge=>ge.qboId===V)[0]?.qboId)(S),defaultValue:{selectedOption:he?.qboId??he?.accountId,allOptions:xe},style:{width:"100%"},customStyleConfig:Le,registerOptions:{required:!0,validate:S=>S?.selectedOption!=null&&(r.find(V=>V.qboId===S?.selectedOption||V.accountId===S?.selectedOption)?.isDeleted!==!0||Q.deletedCategoryError)}},disableCurrentOption:S=>[p.expense?.qboId,p.income?.qboId].includes(S),style:{borderBottom:`1px solid ${h.colors.grey3}`,minHeight:n.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:i.isRecommendationLoading,recommendationCheckboxField:X?{tooltipProps:{text:je},label:{label:i.recommendedAccount?.accountName??re},checkBoxField:{name:de(d,"isCategoryUpdateSelected"),defaultChecked:!!i.isCategoryUpdateSelected}}:void 0,retainCheckboxField:ce?{label:{label:i.retainedAccount?.accountName??re},checkBoxField:{name:de(d,"isRetainedCategorySelected"),defaultChecked:!!i.isRetainedCategorySelected}}:void 0},de(d,"account"))}),C.includes("class")?t.jsx(ht,{children:t.jsx(yt,{windowSize:P,children:t.jsx(gt,{})})}):null,t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.class`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("class",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,children:t.jsx(hn,{isLoading:!1,label:{label:Q.department,width:_},additionalLabelInfo:E?.isDeleted===!0&&Re(z,de(d,"class"))?Q.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:de(d,"class"),placeholder:lt(Q.department),valueToId:S=>(V=>m.filter(ge=>ge.classId===V)[0]?.accountingClassNumber)(S),defaultValue:{selectedOption:Be?.classId,allOptions:Qe(k,[])},style:{width:"100%"},customStyleConfig:Le,registerOptions:{required:!0,validate:S=>S?.selectedOption!=null&&(m.find(V=>V.classId===S?.selectedOption)?.isDeleted!==!0||Q.deletedClassError)}},style:{borderBottom:`1px solid ${h.colors.grey3}`},fullWidthSelect:!0},de(d,"class"))}),t.jsx($t,{}),t.jsx(be,{isThreadAllowed:D&&c!=null,dashboardTabKey:fe({type:"details",key:`${e}.out_of_pocket.customer`}),roomId:pe,companyId:b.currentTenant?.companyId??re,companyName:b.currentTenant?.companyName??re,entityId:c,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${ve("customer",e,"out_of_pocket")}`},fieldThreadTargetElement:$?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(Oo,{label:{label:Q.customer,width:_},isDisabled:j,autoCompleteSingleSelectField:{name:de(d,"customer"),placeholder:Q.customerPlaceholder,isDisabled:j,valueToId:S=>S,defaultValue:{selectedOption:i.customerAutoCompleteData?.selectedOption,defaultOptions:i.customerAutoCompleteData?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:ua,loadOptions:v?.loadOptions},style:{justifyContent:"space-between"},fullWidthSelect:!0},de(d,"customer"))})]})},ht=o.span`
|
|
150
150
|
position: relative;
|
|
151
151
|
`,gt=o(fn)`
|
|
152
152
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -163,7 +163,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
163
163
|
background-color: ${e=>e.theme.colors.grey3};
|
|
164
164
|
min-height: 1px;
|
|
165
165
|
max-height: 1px;
|
|
166
|
-
`,at=(e,i)=>`${e}.${i}`,Ke={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])},J=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:i,recommendationFetchState:r,remiStage:m,lineIndex:u,accountList:O,classList:d,merchantList:
|
|
166
|
+
`,at=(e,i)=>`${e}.${i}`,Ke={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])},J=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:i,recommendationFetchState:r,remiStage:m,lineIndex:u,accountList:O,classList:d,merchantList:D,hasFile:j,defaultCurrency:C,hasMultipleLineItems:l,fileRequiredLineIds:k,duplicateLineDetails:c,remiStatus:f,sectionId:y,isDisabled:p,isReimbursementCommentingEnabled:v,isAddReimbursementDisabled:P,style:b,autoFields:$=[],analytics:h,reimbursementId:z,tentativeMerchantName:ne,companyMileageConfigInfo:oe,customerSearchAutoComplete:le,uncategorizedAccounts:E,removeDuplicateReimbursementForLine:ue,scrollToSection:G,onDuplicateLineClick:se,onRemoveReimbursement:U,clearTentativeNameForLine:ie,allCurrencies:M,accountsHierarchyList:X,classHierarchyList:ce})=>{const _=ze(),Te=ft(),De=Nt(),me=$e.getLocalizedStrings().common.strings.empty,pe={application:"dashboard",companyId:Te.currentTenant?.companyId,tab:"reimbursement",entityId:z},he=`dashboard_${Te.currentTenant?.companyId}`,{getValues:Be}=ct(),[Le,je]=w.useState(!1),xe=Be(at(y,"reimbursementType"));return t.jsxs(wa,{style:b,windowSize:_,children:[t.jsxs(ga,{hasFile:j,windowSize:_,showDeleteConfirmation:Le,children:[t.jsx(va,{windowSize:_,children:l?`#${u+1} ${J.reimbursement}`:J.reimbursement}),Le?t.jsxs(xa,{windowSize:_,children:[t.jsx(fa,{windowSize:_,children:J.deleteConfirmation}),t.jsxs(ha,{children:[t.jsx(Mn,{label:J.buttons.cancel,onClick:()=>je(!1),style:{width:Ke.buttonWidth.value(_),marginLeft:_==="small"?n.sp0:n.sp4,marginRight:n.sp3},size:"small",variant:"secondary","data-testid":Y("delete-remi-button",J.buttons.cancel)}),t.jsx(Mn,{label:J.buttons.remove,onClick:()=>{h?.trackReimbursementDeleteReimbursementLine(e.lineId,z),ie?.(e.lineId??"1"),je(!1),ue(e.lineId),U(u)},style:{width:Ke.buttonWidth.value(_)},size:"small",variant:"danger","data-testid":Y("delete-remi-button",J.buttons.remove)})]})]}):!l||m!=="draft"&&f!=="rejected"?null:t.jsx(ya,{className:"deleteIconWrapper",windowSize:_,onClick:()=>je(!0),"data-testid":Y("delete-remi-button",e.lineId),children:t.jsx(To,{enterDelay:600,title:J.deleteReimbursement,placement:"top-end",children:t.jsx(ba,{})})})]}),k.includes(e.lineId)?t.jsx(bo,{title:J.missingReceipt,description:J.missingReceiptDescription,style:{marginBottom:n.sp3}}):null,t.jsxs($a,{windowSize:_,children:[c?.duplicateLineId!=null?t.jsxs(Sa,{children:[J.thisExpense," ",c.isDuplicateWithinTransaction?t.jsx(qn,{"data-testid":Y("view-duplicate-transaction-expense"),onClick:()=>(h?.trackReimbursementViewDuplicateExpense(!0,z),G(c.duplicateLineId)),children:J.viewOriginalExpense}):t.jsx(qn,{"data-testid":Y("view-duplicate-expense"),onClick:()=>{c.duplicateTransactionId!=null&&c.duplicateLineId!=null&&(h?.trackReimbursementViewDuplicateExpense(!1,z),se(c.duplicateTransactionId,c.duplicateLineId))},children:J.viewOriginalExpense})]}):null,t.jsx(be,{isThreadAllowed:v&&z!=null,dashboardTabKey:fe({type:"details",key:xe===J.mileageKey?`${u}.mileage.reimbursementType`:`${u}.out_of_pocket.reimbursementType`}),roomId:he,companyId:Te.currentTenant?.companyId??me,companyName:Te.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${ve("reimbursementType",u,xe===J.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:De?.sharedRef?.contentWrapperRef,style:{borderRadius:c?.duplicateLineId!=null?"0 0 0 0":`${n.sp2} ${n.sp2} 0 0`},children:t.jsxs(ka,{isDisabled:p!=null,haveBorderRadius:c?.duplicateLineId==null,children:[t.jsx(Fn,{isDisabled:p!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.outOfPocket},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ke.labelPaddingLeft.value(_),borderTopLeftRadius:"inherit"},showOutline:!(v&&z!=null),radioField:{name:at(y,"reimbursementType"),id:`${at(y,"reimbursementType")}.${J.outOfPocketKey}`,value:J.outOfPocketKey}}),t.jsx(Ca,{}),t.jsx(Fn,{isDisabled:p!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.mileage},style:{padding:`${n.sp3} ${n.sp0}`,paddingLeft:Ke.labelPaddingLeft.value(_),borderTopRightRadius:"inherit"},showOutline:!(v&&z!=null),radioField:{name:at(y,"reimbursementType"),id:`${at(y,"reimbursementType")}.${J.mileageKey}`,value:J.mileageKey}})]})}),t.jsx(Ia,{}),xe===J.outOfPocketKey?t.jsx(ma,{lineIndex:u,reimbursementId:z,uncategorizedAccounts:E,isReimbursementCommentingEnabled:v,isDisabled:p,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?st(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:i?.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,customerAutoCompleteData:e.outOfPocket.customer},sectionId:at(y,"outOfPocket"),accountList:O,classList:d,autoFields:$,merchantList:D,tentativeMerchantName:ne,allCurrencies:M,isAddReimbursementDisabled:P,accountsHierarchyList:X,classHierarchyList:ce,customerSearchAutoComplete:le}):t.jsx(Zi,{lineIndex:u,reimbursementId:z,isReimbursementCommentingEnabled:v,isDisabled:p,mileage:{transactionDate:e.mileage.transactionDate!=null?st(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,customer:e.mileage.customer,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:d,sectionId:at(y,"mileage"),companyMileageConfigInfo:oe,defaultCurrency:C,isAddReimbursementDisabled:P,classHierarchyList:ce,customerSearchAutoComplete:le})]})]})},ha=o.div``,ga=o.div`
|
|
167
167
|
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
168
|
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
169
|
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
@@ -241,7 +241,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
241
241
|
background-color: ${e=>e.theme.colors.grey3};
|
|
242
242
|
min-height: 1px;
|
|
243
243
|
max-height: 1px;
|
|
244
|
-
`,
|
|
244
|
+
`,Ta=(e,i)=>`${e}.${i}`,bt={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])},Bo=({isReimbursementCommentingEnabled:e,sectionId:i,isDisabled:r,reportTitle:m,reimbursementId:u,style:O})=>{const d=ze(),D=ft(),j=Nt(),C=`dashboard_${D.currentTenant?.companyId}`,l=$e.getLocalizedStrings(),k=l.spendManagement.reimbursement.reimbursementDetail,c=l.common.strings.empty,f=bt.labelWidth.value(d);return t.jsxs(Da,{style:O,windowSize:d,children:[t.jsx(Oa,{windowSize:d,children:k.whatFor}),t.jsx(ja,{children:t.jsx(be,{isThreadAllowed:e&&u!=null,dashboardTabKey:fe({type:"details",key:"whatFor"}),roomId:C,companyId:D.currentTenant?.companyId??c,companyName:D.currentTenant?.companyName??c,entityId:u,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:D.currentTenant?.companyId,tab:"reimbursement",entityId:u,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:j?.sharedRef?.contentWrapperRef,style:{borderRadius:n.sp2},children:t.jsx(xn,{isDisabled:r,label:{label:k.reportTitle,width:f},text:{type:"text",name:Ta(i,"reportTitle"),placeholder:k.lunchWithClient,defaultValue:m,autoComplete:"off",options:{required:!0,validate:y=>!!y}},style:{width:"auto",borderRadius:n.sp2}})})})]})},Da=o.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
flex-direction: column;
|
|
247
247
|
padding-top: ${e=>bt.paddingTop.valuePx(e.windowSize)};
|
|
@@ -258,7 +258,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
258
258
|
`,Oa=o(Wt)`
|
|
259
259
|
color: ${e=>e.theme.colors.primary};
|
|
260
260
|
margin-bottom: ${e=>bt.marginBottom.valuePx(e.windowSize)};
|
|
261
|
-
`,W={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])},Pa={total:new Sn("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:K},billPay:{vendorCreation:{achDetails:Pt}}},common:{currency:{currencyCode:Rt}}}=$e.getLocalizedStrings(),Mo=e=>{let i=0,r=Rt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const m=e;i=m.outOfPocket.amount??0,r=m.outOfPocket.currencyCode??Rt}else{const m=e;i=m.outOfPocket.amount?.amount??0,r=m.outOfPocket.amount?.currencyCode??Rt}return(e.homeCurrencyConversions?.currencyCode??Rt)!==r&&(i=e.homeCurrencyConversions?.amount??0),i},Ra=({remiUploadStatus:e,progressSectionObj:i,reimbursementId:r,createDate:m,scheduleDate:u,paymentDate:O,hasDuplicateLine:d,approvedDate:
|
|
261
|
+
`,W={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])},Pa={total:new Sn("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:K},billPay:{vendorCreation:{achDetails:Pt}}},common:{currency:{currencyCode:Rt}}}=$e.getLocalizedStrings(),Mo=e=>{let i=0,r=Rt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const m=e;i=m.outOfPocket.amount??0,r=m.outOfPocket.currencyCode??Rt}else{const m=e;i=m.outOfPocket.amount?.amount??0,r=m.outOfPocket.amount?.currencyCode??Rt}return(e.homeCurrencyConversions?.currencyCode??Rt)!==r&&(i=e.homeCurrencyConversions?.amount??0),i},Ra=({remiUploadStatus:e,progressSectionObj:i,reimbursementId:r,createDate:m,scheduleDate:u,paymentDate:O,hasDuplicateLine:d,approvedDate:D,isFirstOrLastListItem:j,index:C,reimbursementSectionRef:l,showSkipAutoFill:k,lineData:c,currencyConversionState:f,authParams:y,uploadInvoiceEndPoint:p,accountList:v,classList:P,merchantList:b,remiStage:$,autoFieldsByLineId:h,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ne,totalAmount:oe,showTotalAmountLoader:le,totalNumberOfLines:E,defaultCurrency:ue,bankAccounts:G,fileRequiredLineIds:se,isAddReimbursementDisabled:U,duplicateLineByLineId:ie,remiStatus:M,file:X,uncategorizedAccounts:ce,reportTitle:_,recommendationFetchState:Te,tentativeMerchantName:De,paymentTo:me,analytics:pe,companyMileageConfigInfo:he,customerSearchAutoComplete:Be,loggedInUserDepartmentId:Le,isSignedInUserReimbursementCreator:je,setShowBankAccountPage:xe,setRefByLineId:S,setCurrentLineIdForUpload:V,onDuplicateLineClick:ge,setUploadedReceiptPayload:Ye,removeDuplicateReimbursementForLine:q,onReceiptsUpload:_e,scrollToSection:Ze,onRemoveReimbursement:dt,onAddReimbursement:et,clearTentativeNameForLine:Ve,onReplaceClick:Me,onDeleteBankAccount:tt,updateInvoiceUploadFetchState:Fe,removeFileFromLine:Je,allCurrencies:Xe,accountsHierarchyList:nt,classHierarchyList:ut})=>{const{formState:{errors:ye}}=ct(),ot=w.useRef(null);w.useEffect(()=>(S(Z=>({...Z,[`L${c.lineId}`]:ot.current})),()=>{S(Z=>({...Z,[`L${c.lineId}`]:null}))}),[c.lineId,S]);const ae=ze(),mt=$==="draft"?K.newReimbursementTitle:K.editReimbursementTitle,F=W.largeLabelWidth.value(ae),Ce=G.map(Z=>Z.bankAccountId),_t=c.reimbursementType===K.outOfPocketKey&&Mo(c)>=75&&X==null;return t.jsxs(Ja,{ref:l,windowSize:ae,children:[t.jsx(Xa,{ref:Z=>{Z!=null&&(ot.current=Z)},windowSize:ae,bottomSeperator:E!==1,showSkipAutoFill:k,isFirstItem:C===0,children:t.jsx(Lo,{customError:_t?K.requireReceipt:void 0,analytics:pe,showAutofill:!1,uploadInvoiceEndPoint:p,authParams:y,entityId:U?"":void 0,file:X,style:{width:"auto",padding:0,height:j?W.firstOrLastItemHeight.valuePx(ae):W.itemHeight.valuePx(ae),margin:ae==="small"?n.sp0:void 0},updateInvoiceUploadFetchState:Fe,onInvoiceUpload:Z=>{c.reimbursementType!==K.outOfPocketKey||(Ae=>!(Ae.outOfPocket.account.selectedOption!=null||Ae.outOfPocket.amount!=null&&Ae.outOfPocket.amount.amount!=0||Ae.outOfPocket.class.selectedOption!=null&&Ae.outOfPocket.class.selectedOption!==Le||Ae.outOfPocket.memo!==""&&Ae.outOfPocket.memo!=null||Ae.outOfPocket.merchant.selectedOption!=null||Ae.outOfPocket.transactionDate!=null))(c)?_e(Z,Number(c.lineId),!0):(V(Number(c.lineId)),Ye(Z),Me?.())},dropFilePlaceholder:{upload:K.dropReceipt.upload,receipt:K.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!U,pdfTitle:E>1?`#${C+1} Receipt`:"Receipt",onDeleteClick:()=>{Fe?.("In-Progress"),setTimeout(()=>Je?.(Number(c.lineId)))},onReplaceClick:()=>{V(Number(c.lineId)),Me?.()},allowMultiFiles:E===C+1,type:"reimbursement"})}),t.jsxs(Za,{windowSize:ae,children:[C===0&&ae!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{children:mt}),t.jsx(Qa,{children:t.jsx(Ti,{progressSectionObj:i,createDate:m,paymentDate:O,scheduleDate:u,approvedDate:D,isBillUploaded:r!=null||e==="Completed"})}),ne&&t.jsxs(za,{children:[t.jsx(La,{}),t.jsx(Na,{children:K.banner})]}),d&&t.jsxs(Ba,{size:ae,children:[t.jsx(Aa,{}),t.jsxs(Fa,{children:[t.jsx(Ma,{children:K.thereSeems}),t.jsx(Ea,{children:K.pleaseFind})]})]}),t.jsx(Bo,{isReimbursementCommentingEnabled:z,sectionId:Ft,reportTitle:_,reimbursementId:r})]}):null,t.jsx(pa,{analytics:pe,reimbursementId:r,onDuplicateLineClick:ge,uncategorizedAccounts:ce,sectionId:`${Cn}.${C}`,scrollToSection:Ze,lineIndex:C,lineData:c,accountList:v,classList:P,merchantList:b,autoFields:c.lineId!=null?h[c.lineId]:[],currencyConversionState:f,recommendationFetchState:Te,onRemoveReimbursement:dt,hasMultipleLineItems:E>1,clearTentativeNameForLine:Ve,tentativeMerchantName:De,hasFile:X!=null,companyMileageConfigInfo:he,defaultCurrency:ue,remiStage:$,remiStatus:M,fileRequiredLineIds:se,allCurrencies:Xe,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:U,accountsHierarchyList:nt,classHierarchyList:ut,customerSearchAutoComplete:Be,duplicateLineDetails:ie[c.lineId],removeDuplicateReimbursementForLine:q}),E!==1&&E===C+1&&t.jsxs(t.Fragment,{children:[t.jsxs(_a,{windowSize:ae,children:[t.jsx(Va,{children:K.total}),le?t.jsx(Ha,{windowSize:ae,children:t.jsx(qa,{children:t.jsx(It,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(So,{amount:Ro(oe,"USD","$"),integerStyles:Bt.h6Regular.cssObject,decimalStyles:Bt.standardRegular.cssObject})]}),t.jsxs(Ga,{windowSize:ae,onClick:()=>{U===!1&&et()},isDisabled:U,"data-testid":Y("add-reimbursement-row"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:K.addReimbursement})]}),je?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{windowSize:ae,children:K.receivePaymentTo}),t.jsx(Ka,{windowSize:ae,shouldDisplay:G.length>0,children:t.jsx(vo,{label:{label:K.yourBankAccount,width:F},style:{width:"auto"},singleSelectField:{singleSelect:{name:Ct,placeholder:lt(K.yourBankAccount),showValueEyeIcon:!U,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:tt,getTooltipInfo:Z=>Fo(G,Z),onClickCreateBankAccount:()=>xe(!0),getLabelForId:Z=>No(G,Z),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:U?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:me,allOptions:Ce},registerOptions:{required:!0,validate:Z=>!!Z.selectedOption}},isFunctional:!0})}),t.jsxs(Ya,{shouldDisplay:G.length===0,windowSize:ae,hasError:Re(ye,Ct),onClick:()=>{U===!1&&xe(!0)},isDisabled:U,"data-testid":Y("remi-add-bank-account-container"),children:[t.jsx(Gn,{}),t.jsx(Kn,{children:K.addBankAccount})]})]}):null]})]})]})},Fo=(e,i)=>{const r=Eo(e,i);return r==null?`${Pt.bankRoutingNumber} ${K.emptyValue}
|
|
262
262
|
${Pt.bankAccountNumber} ${K.emptyValue}`:`${Pt.bankRoutingNumber} ${r.bankRoutingNumberAch??K.emptyValue}, ${r.bankName??K.emptyValue}
|
|
263
263
|
${Pt.bankAccountNumber} ${r.bankAccountNumber??K.emptyValue}`},Eo=(e,i)=>e.find(r=>r.bankAccountId===i),No=(e,i)=>{const r=Eo(e,i);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},La=o(fn)`
|
|
264
264
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -395,7 +395,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
395
395
|
display: flex;
|
|
396
396
|
width: 100%;
|
|
397
397
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
-
`,
|
|
398
|
+
`,Xa=o.div`
|
|
399
399
|
height: 100%;
|
|
400
400
|
background: ${e=>e.theme.colors.grey3};
|
|
401
401
|
border-radius: ${n.sp2};
|
|
@@ -405,9 +405,9 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
405
405
|
visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
|
|
406
406
|
margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":n.sp10:0};
|
|
407
407
|
margin-top: ${e=>W.marginTop.valuePx(e.windowSize)};
|
|
408
|
-
`,
|
|
408
|
+
`,Qa=o.div`
|
|
409
409
|
padding: ${n.sp2} ${n.sp8} ${n.sp0} ${n.sp6};
|
|
410
|
-
`,er={total:new Sn("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])},rt=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:i,authParams:r,uploadInvoiceEndPoint:m,showSkipAutoFill:u,isReimbursementCommentingEnabled:O,isAutoFieldsExist:d,totalAmount:
|
|
410
|
+
`,er={total:new Sn("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])},rt=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:i,authParams:r,uploadInvoiceEndPoint:m,showSkipAutoFill:u,isReimbursementCommentingEnabled:O,isAutoFieldsExist:d,totalAmount:D,defaultCurrency:j,hasDuplicateLine:C,bankAccounts:l,fileRequiredLineIds:k,companyMileageConfigInfo:c,analytics:f,reimbursementId:y,currencyConversionStatus:p,setShowSkipAutoFill:v,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:b,onReceiptsUpload:$,setCurrentLineIdForUpload:h,onDuplicateLineClick:z,setUploadedReceiptPayload:ne,removeFileFromLine:oe,onReplaceClick:le,updateInvoiceUploadFetchState:E,clearTentativeNameForLine:ue,customerSearchAutoComplete:G,onDeleteBankAccount:se,uncategorizedAccounts:U,isSignedInUserReimbursementCreator:ie,duplicateLineByLineId:M,showTotalAmountLoader:X,scrollContainerRef:ce})=>{const{control:_,formState:{errors:Te}}=ct(),{fields:De,append:me,remove:pe}=wi({name:Cn,control:_}),he=De,Be=w.useRef(null),Le=F=>{setTimeout(()=>{pe(F)})},{tentativeMerchantNameByLineId:je,remiStage:xe,remiStatus:S}=e,V=!ie||xe==="pending_approval"&&S!=="rejected"&&i||xe==="pending_approval"&&S==="rejected",ge=V?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:l,Ye=ge.map(F=>F.bankAccountId),q=ze(),_e=ee.largeLabelWidth.value(q),Ze=e.whatForSection.reportTitle,dt=e.accountList.accounts,et=e.accountsHierarchyList,Ve=e.classHierarchyList,Me=e.classList.classes,tt=e.merchantList.merchants,Fe=e.addRemiAutoFieldsByLineId,Je=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(F=>Number(F)),0),Xe=()=>{const F=he[he.length-1],Ce=Wo(he.length,Number(F.lineId)>Je?String(Number(F.lineId)+1):String(Je+1),et,Ve,tt,j,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(Ce,{shouldFocus:!1})}),h(Number(Ce.lineId)),v(!0),setTimeout(()=>Un(Be.current,ce?.current),50)},[nt,ut]=w.useState({}),ye=w.useCallback(F=>{const Ce=nt[`L${F}`];Ce!=null&&Un(Ce,ce?.current)},[nt,ce]),ot=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,ae=e.reimbursementInfo?.paymentDate!=null?st(Po(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??ae;return t.jsxs(ar,{windowSize:q,showSkipAutoFill:u,children:[he.map((F,Ce)=>t.jsx(Ra,{removeDuplicateReimbursementForLine:b,onDuplicateLineClick:z,scrollToSection:ye,setRefByLineId:ut,duplicateLineByLineId:M,reimbursementId:y,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:U,progressSectionObj:ot,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:he.length-1===Ce||Ce===0,index:Ce,reimbursementSectionRef:Be,remiStage:xe,remiStatus:S,authParams:r,file:F.file,uploadInvoiceEndPoint:m,showSkipAutoFill:u,lineData:F,currencyConversionState:p[F.lineId],recommendationFetchState:e.lineDetailSection[F.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:h,setUploadedReceiptPayload:ne,onReplaceClick:le,onReceiptsUpload:$,removeFileFromLine:oe,isReimbursementCommentingEnabled:O,isAutoFieldsExist:d,reportTitle:Ze,accountList:dt,classList:Me,merchantList:tt,autoFieldsByLineId:Fe,onRemoveReimbursement:Le,onAddReimbursement:Xe,totalAmount:D,showTotalAmountLoader:X,hasDuplicateLine:C,totalNumberOfLines:he.length,updateInvoiceUploadFetchState:E,clearTentativeNameForLine:ue,customerSearchAutoComplete:G,tentativeMerchantName:je[F.lineId],companyMileageConfigInfo:c,defaultCurrency:j,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ge,onDeleteBankAccount:se,analytics:f,fileRequiredLineIds:k,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:V,accountsHierarchyList:et,classHierarchyList:Ve,isSignedInUserReimbursementCreator:ie},F.lineId)),he.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,t.jsx(nn,{windowSize:q,children:t.jsxs(rr,{windowSize:q,children:[t.jsx(lr,{children:rt.total}),X?t.jsx(cr,{windowSize:q,children:t.jsx(dr,{children:t.jsx(It,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(So,{amount:Ro(D,Nn.currencyCode,Nn.currencySymbol),integerStyles:Bt.h6Regular.cssObject,decimalStyles:Bt.standardRegular.cssObject})]})})]}),t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,t.jsx(nn,{windowSize:q,children:t.jsxs(ur,{windowSize:q,onClick:()=>{V===!1&&Xe()},isDisabled:V,"data-testid":Y("add-reimbursement-container"),children:[t.jsx(Zn,{}),t.jsx(Yn,{children:rt.addReimbursement})]})})]}),t.jsxs(on,{children:[q!=="small"?t.jsx(tn,{windowSize:q}):null,ie?t.jsxs(nn,{windowSize:q,children:[t.jsx(sr,{windowSize:q,children:rt.receivePaymentTo}),t.jsx(ir,{windowSize:q,shouldDisplay:ge.length>0,children:t.jsx(vo,{label:{label:rt.yourBankAccount,width:_e},style:{width:"auto"},singleSelectField:{singleSelect:{name:Ct,placeholder:lt(rt.yourBankAccount),showValueEyeIcon:!V,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:se,getTooltipInfo:F=>Fo(ge,F),onClickCreateBankAccount:()=>P(!0),getLabelForId:F=>No(ge,F),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:V?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ye},registerOptions:{required:!0,validate:F=>!!F.selectedOption}},isFunctional:!0})}),t.jsxs(mr,{shouldDisplay:ge.length===0,windowSize:q,onClick:()=>{V===!1&&P(!0)},hasError:Re(Te,Ct),isDisabled:V,"data-testid":Y("remi-add-bank-account-container"),children:[t.jsx(Zn,{}),t.jsx(Yn,{children:rt.addBankAccount})]})]}):null]})]})]})},Wo=(e,i,r,m,u,O,d,D)=>{const j=nr(r,m,u,O,d,D);return{lineIndex:e,lineId:i,reimbursementType:rt.outOfPocketKey,file:void 0,outOfPocket:j,mileage:or(m,O,D)}},nr=(e,i,r,m,u,O)=>({transactionDate:void 0,class:{allOptions:Ge(Qe(i,[])),selectedOption:O},account:{allOptions:Ge(Et(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:m.currencyCode,currencySymbol:m.currencySymbol,currency:{allOptions:u.map(d=>({label:`${d.currencyCode} - ${d.currency}`,value:d.currencyCode,countryCode:yn(d.countryCode)})),selectedOption:m.currencyCode??$e.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(d=>d.id).filter(d=>!!d),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),or=(e,i,r)=>({transactionDate:void 0,class:{allOptions:Ge(Qe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:i.currencyCode,currencySymbol:i.currencySymbol},memo:void 0}),ir=o.div`
|
|
411
411
|
margin-left: ${e=>ee.leftMargin.valuePx(e.windowSize)};
|
|
412
412
|
margin-right: ${e=>ee.rightMargin.valuePx(e.windowSize)};
|
|
413
413
|
margin-bottom: ${e=>ee.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
@@ -504,7 +504,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
504
504
|
`,on=o.div`
|
|
505
505
|
display: flex;
|
|
506
506
|
width: 100%;
|
|
507
|
-
`,Ue={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])},Jn="userBankAccountPage",Lt="bankAccountSection",
|
|
507
|
+
`,Ue={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])},Jn="userBankAccountPage",Lt="bankAccountSection",Xn=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:i,plaidConnectionDetails:r,onFetchLinkTokenClick:m,onEstablishConnectionClick:u,bankAccountToCreate:O,fetchBankNameByRoutingStatus:d,isDisabled:D,onSaveHandler:j,onUserBankDetailsUpdated:C,onFetchBankName:l,onBackClick:k})=>{const c=kt(),f=ze(),y=mo({mode:"onBlur",reValidateMode:"onChange",defaultValues:w.useMemo(()=>(E=>({[Lt]:{bankRoutingNumber:E?.bankRoutingNumber,bankName:E?.bankName,bankAccountNumber:E?.bankAccountNumber,confirmedBankAccountNumber:E?.confirmedBankAccountNumber,bankAccountName:E?.bankAccountName}}))(O),[O])}),p=w.useCallback(E=>{u?.(E),k()},[k,u]),v=r.link_account_no_microdeposit,{open:P}=_i({token:v.linkToken??null,onSuccess:p});w.useEffect(()=>{(st(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&m?.("link_account_no_microdeposit")},[]);const[b,$]=w.useState(!1),h=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=$e.getLocalizedStrings().common.footer,ne={onOkClick:()=>{$(!1),y.reset(),k()},onCancelClick:()=>{$(!1)}};w.useEffect(()=>{const E=y.watch((ue,{name:G})=>{G!=null&&ue!=null&&vi(()=>(async(se,U)=>{const ie=U[Lt].bankRoutingNumber;C(U),se===`${Lt}.bankRoutingNumber`&&ie?.length===9&&Di.test(ie)===!0&&l?.(ie)})(G,ue))});return()=>{E.unsubscribe()}}),w.useEffect(()=>{e?.fetchState==="Completed"&&k()},[e?.fetchState,k,i]);const oe=y.handleSubmit(E=>{d.fetchState!=="In-Progress"&&j()}),le=c.mode==="light"?new zn(c.colors.brandColorJadeLight):new zn(c.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:f,children:[b===!0?t.jsx(gn,{titleComponent:t.jsx(yo,{children:h.discardTitle}),descriptionComponent:t.jsx(go,{children:h.discardDescription}),primaryButtonText:h.buttons.delete,secondaryButtonText:h.buttons.cancel,action:ne}):null,t.jsx(Hi,{header:h.addBankAccount,isDirty:y.formState.isDirty,onBackClick:k,setShowConfirmationPopup:$}),t.jsx(gr,{}),t.jsxs(vr,{size:f,children:[t.jsx($i,{onClick:()=>{y.reset(),P()},title:h.connectYourBank,subTitle:h.loginToBank,header:h.setupAchPayments,icon:{element:t.jsx(Ci,{width:Ue.iconWidthHeight.valuePx(f),height:Ue.iconWidthHeight.valuePx(f)}),color:le},style:{width:"unset",rowGap:f==="small"?n.sp2:void 0}}),t.jsxs(yr,{windowSize:f,children:[t.jsx(br,{}),t.jsx(xr,{children:t.jsx(wr,{children:h.or})})]}),t.jsx(fr,{windowSize:f,children:h.saveAccountManually})]}),t.jsx($r,{size:f,children:t.jsx(ho,{...y,children:t.jsxs("form",{id:Xn(Jn),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(qi,{warningText:h.accountExistWarning}):null,t.jsx(Vi,{bankAccountToCreate:O,fetchBankNameByRoutingStatus:d,sectionId:Lt})]})})})]}),t.jsx(fo,{formId:Xn(Jn),primaryBtn:{label:h.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Ue.buttonWidth.value(f)},isDisabled:D!=null},cancelBtn:{label:z.cancel,style:{width:Ue.buttonWidth.value(f)},shouldResetOnCancel:!1,onClick:()=>{y.formState.isDirty?$(!0):($(!1),y.reset(),k())}}})]})},hr=o.div`
|
|
508
508
|
display: flex;
|
|
509
509
|
flex-direction: column;
|
|
510
510
|
width: 100%;
|
|
@@ -547,7 +547,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
547
547
|
padding-left: ${e=>Ue.paddingLeft.valuePx(e.size)};
|
|
548
548
|
padding-right: ${e=>Ue.paddingRight.valuePx(e.size)};
|
|
549
549
|
padding-bottom: ${n.sp3};
|
|
550
|
-
`,Pe={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:
|
|
550
|
+
`,Pe={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:Qn}=$e.getLocalizedStrings().common,Ie=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,eo=({fetchState:e})=>{switch(e){case"Not-Started":default:return t.jsx(Tr,{});case"In-Progress":return t.jsx(It,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Uo,{})}},Cr=e=>{switch(e){case"Not-Started":default:return Ie.detectDuplicates;case"In-Progress":return Ie.detectingDuplicates;case"Completed":return Ie.noDuplicatesFound}},kr=({submitFetchState:e,duplicateReimbursementStatus:i,hasDuplicateLine:r,numberOfDuplicateLines:m,setShowDuplicatePopup:u,analytics:O,reimbursementId:d,submitReport:D,fetchDuplicateReimbursement:j,clearDuplicateReimbursementDetail:C,clearRemiSaveStatus:l})=>{const k=ze(),[c,f]=Ot.useState(!0),y=pn(e),p=pn(i);Ot.useEffect(()=>{setTimeout(()=>{c&&(f(!1),i==="Not-Started"&&j())},2e3)},[i,j,c]),Ot.useEffect(()=>{y==="In-Progress"&&e==="Completed"&&(C(),u(!1))},[e,y,u,C]),Ot.useEffect(()=>{p==="In-Progress"&&i==="Completed"&&!r&&D()},[p,i,r,D]);const v=i==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[v?t.jsx(Ir,{size:k}):null,t.jsx(gn,{action:{onOkClick:()=>{v?(C(),e==="Error"&&l(),f(!0)):(O?.trackReimbursementReviewDuplicateReportReimbursement(m,d),u(!1),yi())},onCancelClick:()=>{v?(C(),e==="Error"&&l(),u(!1)):(O?.trackReimbursementSubmitAnywayDuplicateReimbursement(m,d),D())}},shouldClickAway:v,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:v?Qn.resubmit:Ie.primaryButtonText,secondaryButtonText:v?Qn.cancel:Ie.secondaryButtonText,primaryButtonWidth:v?Pe.cancelButtonWidth.value(k):Pe.submitButtonWidth.value(k),secondaryButtonWidth:v?Pe.cancelButtonWidth.value(k):Pe.submitButtonWidth.value(k),descriptionComponent:t.jsx(Or,{size:k,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:i,children:[t.jsxs(rn,{isDisabled:!1,isSuccess:!c,children:[c?t.jsx(It,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Uo,{}),t.jsx(an,{isDisabled:!1,children:c?Ie.reviewingExpenses:Ie.reviewedAllExpenses})]}),r||i==="Error"?t.jsxs(oo,{size:k,children:[t.jsx(to,{}),t.jsx(no,{children:i==="Error"?Ie.failedToDetect:`${m} ${Ie.duplicateExpensesFound}`})]}):t.jsxs(rn,{isDisabled:i==="Not-Started",isSuccess:i==="Completed"&&m===0,children:[t.jsx(eo,{fetchState:i}),t.jsx(an,{isDisabled:i==="Not-Started",children:Cr(i)})]}),e==="Error"?t.jsxs(oo,{size:k,children:[t.jsx(to,{}),t.jsx(no,{children:Ie.failedToSubmit})]}):r||i==="Error"?null:t.jsxs(rn,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(eo,{fetchState:e}),t.jsx(an,{isDisabled:e==="Not-Started",children:e==="Not-Started"?Ie.submitReport:Ie.submittingReport})]})]})}),titleComponent:t.jsx(jr,{size:k,children:Ie.title}),showFooter:r||v,containerStyle:{width:Pe.containerWidth.value(k),maxWidth:"unset"}})]})},Ir=o(wo)`
|
|
551
551
|
width: ${n.sp4};
|
|
552
552
|
height: ${n.sp4};
|
|
553
553
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -564,7 +564,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
564
564
|
height: ${n.sp4};
|
|
565
565
|
min-width: ${n.sp4};
|
|
566
566
|
color: ${R.brandColorGoldDark};
|
|
567
|
-
`,
|
|
567
|
+
`,Tr=o(Ki)`
|
|
568
568
|
width: ${n.sp3};
|
|
569
569
|
height: ${n.sp3};
|
|
570
570
|
min-width: ${n.sp3};
|
|
@@ -582,7 +582,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
582
582
|
${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
583
583
|
padding: ${n.sp3};
|
|
584
584
|
border-radius: ${n.sp2};
|
|
585
|
-
`,
|
|
585
|
+
`,Dr=o.div`
|
|
586
586
|
display: flex;
|
|
587
587
|
flex-direction: column;
|
|
588
588
|
gap: ${n.sp3};
|
|
@@ -616,7 +616,7 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
616
616
|
height: ${n.sp4};
|
|
617
617
|
min-width: ${n.sp4};
|
|
618
618
|
color: ${R.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:g,bulkActions:io}},common:{currency:{currencyCode:He,currencySymbol:At},texts:{comments:Pr},strings:{empty:Rr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:ao}=$e.getLocalizedStrings(),ro="editReimbursementDetailPage",lo=e=>`${e}_form`,ln=(e,i,r)=>{const m=[];return Object.values(e.lineDetailSection).forEach((u,O)=>{u?.lineId!=null&&m.push(((d,T,j,C,l,k,c,f,y)=>{const p=d.outOfPocket,v=d.mileage,P=p.merchant,b=p.recommendations;return{lineIndex:k,lineId:d?.lineId??String(k+1),reimbursementType:d?.type??g.outOfPocketKey,file:d?.file,homeCurrencyConversions:{amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??c.currencyCode,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??c.currencySymbol},outOfPocket:{recommendedAccount:p.recommendedAccount,isCategoryUpdateSelected:p.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:p.isCategoryFirstTimeAutofilled??!1,retainedAccount:p.retainedAccount,isRetainedCategorySelected:p.isRetainedCategorySelected??!1,recommendations:b??[],transactionDate:p?.transactionDate?.toDate()??void 0,class:{allOptions:Ge(Xe(j,[])),selectedOption:p?.lineDetail?.class?.classId??y},account:{allOptions:Ge(Et(T,b)),selectedOption:p.lineDetail?.account?.qboId??p.lineDetail?.account?.accountId},customer:{defaultOptions:Bn(p?.lineDetail?.customer),selectedOption:p?.lineDetail?.customer?.id},amount:{amount:p?.amount??0,currencyCode:p?.currencyCode??c.currencyCode,currencySymbol:p?.currencySymbol??c.currencySymbol,currency:{allOptions:f.map($=>({label:`${$.currencyCode} - ${$.currency}`,value:$.currencyCode,countryCode:yn($.countryCode)})),selectedOption:p?.currencyCode??c.currencyCode??He}},memo:p?.description??void 0,merchant:{allOptions:C.map($=>$.id).filter($=>!!$),selectedOption:P?.id?P?.id:P?.name?P?.name:d?.lineId!=null?l[d?.lineId]:void 0}},mileage:{transactionDate:v?.transactionDate?.toDate(),class:{allOptions:Ge(Xe(j,[])),selectedOption:v?.lineDetail?.class?.classId},customer:{defaultOptions:Bn(v?.lineDetail?.customer),selectedOption:v?.lineDetail?.customer?.id},distanceInMiles:v?.distanceMileage?.value,amount:{amount:v?.amount??0,currencyCode:v?.currencyCode??c.currencyCode,currencySymbol:v?.currencySymbol??c.currencySymbol},memo:v?.description}}})(u,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,O,i,e.allCurrencies,e.loggedInUserDepartmentId))}),m.length===0&&m.push(Wo(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,i,e.allCurrencies,e.loggedInUserDepartmentId)),{[Ft]:{reportTitle:e.whatForSection.reportTitle},[Cn]:m,[Ct]:{selectedOption:e.paymentTo,allOptions:r.map(u=>u.bankAccountId)}}},sn=(e,i)=>Object.values(e).reduce((r,m)=>r+(u=>u.lineId==null||i[u.lineId]?.fetchState==="In-Progress"?0:(i[u.lineId],u.type===g.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==He&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0))(m),0),cn=(e,i,r,m,u,O,d,T,j)=>{const C={};return e.lineInfo.forEach(l=>{const k=T.find(b=>b.classId===l.mileage.class.selectedOption),c=(()=>{const b=l.mileage.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.mileage.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),f=d.find(b=>b.qboId===l.outOfPocket.account.selectedOption||b.accountId===l.outOfPocket.account.selectedOption),y=T.find(b=>b.classId===l.outOfPocket.class.selectedOption),p=(()=>{const b=l.outOfPocket.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.outOfPocket.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),v=i.find(b=>b.id===l.outOfPocket.merchant.selectedOption),P=O.find(b=>b.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;C[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k,customer:c},transactionDate:l.mileage.transactionDate!=null?st(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??P,currencySymbol:l.mileage.amount?.currencySymbol??P,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:y,account:f,customer:p},transactionDate:l.outOfPocket.transactionDate!=null?st(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??P,currencySymbol:P,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:v?.id??"",name:v?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:C,totalAmount:{amount:m,...r},currencyConversionStateByLineId:u,paymentTo:e.paymentTo.selectedOption}},so=({remiDetails:e,authParams:i,defaultCurrency:r,customerSearchAutoCompleteData:m,customerSearchAutoCompleteActions:u,companyMileageConfigInfo:O,uploadInvoiceEndPoint:d,isReimbursementCommentingEnabled:T,isUserAdmin:j,analytics:C,reimbursementId:l,plaidConnectionDetails:k,bankAccountCreationState:c,bankNameByRouting:f,bankAccounts:y,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,bankAccountToCreate:P,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onSaveBankAccount:z,fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,removeDuplicateReimbursementForLine:E,onDuplicateLineClick:ue,onExistingMerchantChange:G,onNewMerchantChange:se,onReceiptsUpload:U,saveRemiDetails:ie,submitRemiDetails:M,discardReimbursementDetailsFromLocalStore:Q,onReimbursementDetailsChanged:ce,updateReimbursementType:_,onHomeCurrencyConversionUpdate:De,redirectToReimbursementListScreen:Te,redirectToReimbursementDetailScreen:me,deleteReimbursement:pe,removeFileFromLine:he,onZeniLogoClick:Be,onAmountChanged:Le,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,onAddNewRule:S,onFetchLinkTokenClick:V,onEstablishConnectionClick:ge,deleteBankAccount:Ye,onBackClickFromBankAccountPage:q,initialOpenThreadRequest:_e})=>{const Ze=w.useRef(null),dt=w.useRef(null),et=pn(e.uploadStatus),Ve=kt(),Me=ft(),[tt,Fe]=w.useState(!1),[Je,Qe]=w.useState(!1),[nt,ut]=w.useState("save"),[ye,ot]=w.useState(sn(e.lineDetailSection,e.currencyConversionStatus)),[ae,mt]=w.useState(!1),[F,Ce]=w.useState(null),[_t,Z]=w.useState(!1),Ae=`dashboard_${Me.currentTenant?.companyId}`,Ee=mo({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>ln(e,r,y),[e,r,y]),values:w.useMemo(()=>ln(e,r,y),[e,r,y]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:_o,dirtyFields:Vo}=Ee.formState,kn=w.useMemo(()=>Rn((I,L)=>(async(B,We)=>{const{lineInfo:x}=We,D=Number(B.split(".")[1]);if(B.includes("reportTitle")||B.includes("memo"))return;if(B.includes("reimbursementType")){const N=x[D].mileage,H=x[D].outOfPocket;x[D]={...x[D],outOfPocket:{transactionDate:H.transactionDate??void 0,class:{allOptions:H.class.allOptions??Ge(Xe(e.classHierarchyList,[])),selectedOption:H.class.selectedOption??void 0},account:{allOptions:H.account.allOptions??Ge(Et(e.accountsHierarchyList,[])),selectedOption:H.account.selectedOption??void 0},amount:H.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ke=>({label:`${ke.currencyCode} - ${ke.currency}`,value:ke.currencyCode,countryCode:yn(ke.countryCode)})),selectedOption:r.currencyCode??He}},memo:H.memo??void 0,merchant:H.merchant??void 0,recommendations:H.recommendations??[],recommendedAccount:H.recommendedAccount??void 0,isCategoryUpdateSelected:H.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:H.isCategoryFirstTimeAutofilled??!1,retainedAccount:H.retainedAccount??void 0,isRetainedCategorySelected:H.isRetainedCategorySelected??!1,customer:H.customer??void 0},mileage:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??Ge(Xe(e.classHierarchyList,[])),selectedOption:N.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:N.distanceInMiles,amount:{amount:N?.amount?.amount??0,currencyCode:N?.amount?.currencyCode??He,currencySymbol:N?.amount?.currencySymbol??At},memo:N.memo??void 0,customer:N.customer??void 0}}}else if(B.includes("mileage.distanceInMiles")){const{distanceInMiles:N}=x[D].mileage,H=O?.mileageUnitAmount??0;x[D].mileage={...x[D].mileage,amount:{amount:N!=null?N*H:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(B.includes("outOfPocket.amount")&&x[D].lineId){const N=x[D].outOfPocket.amount,H=e.allCurrencies.find(ke=>ke.currencyCode===N?.currency.selectedOption)?.currencySymbol;if(N?.currencyCode!==N?.currency.selectedOption){const ke=N?.currency?.allOptions||[];x[D].outOfPocket.amount={currency:{allOptions:ke,selectedOption:N?.currency?.selectedOption},amount:x[D].outOfPocket?.amount?.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At}}if(N?.currency.selectedOption!==He)mt(!0),Qo(x[D].lineId,He);else{const ke={};x.forEach(en=>{ke[en.lineId]={lineId:en.lineId,homeCurrencyConversions:en.homeCurrencyConversions}}),x[D].homeCurrencyConversions={amount:N.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At};const Pn=sn(ke,e.currencyConversionStatus);ye!==Pn&&ot(Pn)}}else if(B.includes("outOfPocket.isRetainedCategorySelected"))x[D].outOfPocket.isRetainedCategorySelected===!0&&(x[D].outOfPocket.isCategoryUpdateSelected=!1,x[D].outOfPocket.account.selectedOption=x[D].outOfPocket.retainedAccount?.qboId);else if(B.includes("outOfPocket.isCategoryUpdateSelected"))if(x[D].outOfPocket.isCategoryUpdateSelected===!0)x[D].outOfPocket.account.selectedOption=x[D].outOfPocket.recommendedAccount?.qboId,x[D].outOfPocket.isRetainedCategorySelected=!1;else{const N=x[D].lineId,H=e.editRemiInitialDetails.lineDetailSection[N]?.lineDetail?.account?.qboId;x[D].outOfPocket.account.selectedOption=H,x[D].outOfPocket.isRetainedCategorySelected=!1}else B.includes("outOfPocket.account")&&(x[D].outOfPocket.recommendations.length>0&&(x[D].outOfPocket.recommendedAccount=x[D].outOfPocket.recommendations[0].account),x[D].outOfPocket.recommendedAccount?.qboId!=null&&x[D].outOfPocket.account.selectedOption===x[D].outOfPocket.recommendedAccount?.qboId?x[D].outOfPocket.isCategoryUpdateSelected=!0:x[D].outOfPocket.isCategoryUpdateSelected=!1,x[D].outOfPocket.retainedAccount?.qboId!=null&&x[D].outOfPocket.account.selectedOption===x[D].outOfPocket.retainedAccount?.qboId?x[D].outOfPocket.isRetainedCategorySelected=!0:x[D].outOfPocket.isRetainedCategorySelected=!1,x[D].outOfPocket.isCategoryFirstTimeAutofilled=!1);const jt=cn({...We,lineInfo:x},e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);if(ce?.(jt),B.includes("outOfPocket.merchant")){const N=x[D].lineId,H=x[D].outOfPocket.merchant.selectedOption??"";x[D].outOfPocket.merchant.allOptions.find(ke=>ke===H)!=null?G(H,N):se(H,N)}})(I,L),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);w.useEffect(()=>{const I=Ee.watch((L,{name:B})=>{B!=null&&L!=null&&kn(B,L)});return()=>{I.unsubscribe()}},[kn,Ee]),w.useEffect(()=>{const I=Ei(Object.values(e.currencyConversionStatus)),L=I.fetchState==="In-Progress"||I.fetchState==="Error";mt(L)},[e.currencyConversionStatus]),w.useEffect(()=>{for(const L in e.currencyConversionStatus){const B=e.lineDetailSection[L],We=e.lineDetailSection[L];e.currencyConversionStatus[L].fetchState==="Completed"&&We!=null&&B.type!==g.mileageKey&&!po(B?.homeCurrencyConversions,We.homeCurrencyConversions)&&De({amount:B?.homeCurrencyConversions?.amount??0,currencyCode:B?.homeCurrencyConversions?.currencyCode??He,currencySymbol:B?.homeCurrencyConversions?.currencySymbol??At},L,l)}const I=sn(e.lineDetailSection,e.currencyConversionStatus);ye!==I&&ot(I)},[e.currencyConversionStatus,e.lineDetailSection]),w.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(Q(l),Te?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,l,Q,Te]);const A=ze(),[Ne,xt]=w.useState(l==null),[wt,Ho]=w.useState(1),[qo,Vt]=w.useState(!1),[Ko,Go]=w.useState(""),[Ht,Yo]=w.useState(null),[Zo,pt]=w.useState(!1),[Jo,In]=w.useState(!1),[qt,Kt]=w.useState([]),[we,Dt]=w.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Gt=w.useRef(),Qo=w.useRef(Rn((I,L)=>Le(I,L),500,{trailing:!0})).current;w.useEffect(()=>{m?.entityAutoCompleteView.fetchState==="Completed"&&(Gt.current?.(li(m.entityAutoCompleteView)),Gt.current=void 0)},[m]),w.useEffect(()=>{et==="In-Progress"&&(e.uploadStatus==="Completed"?(Ee.reset(ln(e,r,y),{keepDefaultValues:!0}),Fe(!1),xt(!1)):e.uploadStatus==="Error"&&Fe(!1))},[et,e.uploadStatus,Ee,e,tt,Fe,Ne,r,y,C]),w.useEffect(()=>{e.uploadStatus==="In-Progress"&&Ne===!1&&Fe(!0)},[e.uploadStatus,Fe,Ne]);const Yt=e.remiStage==="draft"?g.newReimbursementTitle:g.editReimbursementTitle,Xo={onOkClick:()=>{if(pt(!1),we.primaryButtonText===g.buttons.discard)Q(l),e.remiStage==="draft"?Te?.():me?.();else if(we.primaryButtonText===g.buttons.delete)we.title===g.deleteBankAccountTitle?Ye?.(Ko):pe?.();else if(we.primaryButtonText===g.buttons.yes&&Ht!=null){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!0)}},onCancelClick:()=>{if(pt(!1),we.secondaryButtonText===g.buttons.no){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!1)}}},Dn=()=>{_o||xi(Vo)?(Dt({title:g.discardTitle,description:g.discardDescription,primaryButtonText:g.buttons.discard,secondaryButtonText:g.buttons.cancel}),pt(!0)):(Q(l),Te?.())},Tn=()=>{if(j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Dn();else{ut("save");const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L);const B=L.whatForSection?.reportTitle;B!=null&&B.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):Ee.trigger(`${Ft}.reportTitle`,{shouldFocus:!0})}};let Zt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(I=>{I.length>0&&(Zt=!0)});let jn=[];if(e.remiId==null){const I=ye??0;I>0&&(jn=e.approvalRules.allApprovalRules?.filter(L=>{const B=L.criteria[0].range;if(B.max!=null){if(B.min.amount<I&&B.max.amount>=I)return L}else if(B.min.amount<I)return L;return null}).map(L=>({...L,stepsWithStatus:L.steps.map(B=>({...B,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const ei=I=>{const L=(()=>{let B=!0;const We=[];return Object.values(e.lineDetailSection).forEach((x,D)=>{x.type===g.outOfPocketKey&&Mo(x)>=75&&x.file==null&&(We.push(x.lineId),B=!1)}),Kt(We),B})();return Ee.handleSubmit(()=>{L&&(ut("submit"),C?.trackReimbursementSubmitReimbursement(e.createTime?.format(ao.analytics.MMMDashDDDashYYYYFormat)??$n().format(ao.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ye,l),oe(),In(!0))})(I)},ti=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,ni=e.reimbursementInfo?.paymentDate!=null?st(Po(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,oi=e.reimbursementInfo?.expectedDepositDate??ni,ii=l!=null&&e.remiStage==="draft",On=Ni(e.duplicateLineByLineId),Jt=e.duplicateReimbursementStatus.fetchState==="Completed"&&On>0,{requestToOpenThread:Qt,setRequestToOpenThread:Tt,setOpenThread:Xt}=w.useContext(si);w.useEffect(()=>{_e?.threadId!=null&&_e?.companyId!=null&&_e?.entityType!=null&&Tt(_e)},[_e,Tt]);const{threads:St,isLoading:it}=ci();w.useEffect(()=>{Qt?.threadId!=null&&St.length>0&&!it&&(Xt(Qt.threadId),Tt(null))},[Qt,St,it,Xt,Tt]);const ai=w.useMemo(()=>l==null?[]:St.filter(I=>I.resolved===!1&&!I.id.includes(di)),[St,l]).length;return t.jsx(Fr,{ref:Ze,children:t.jsx(ui,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:dt.current??null}},children:t.jsxs(ho,{...Ee,children:[t.jsx("form",{id:lo(ro),onSubmit:I=>ei(I),children:t.jsxs(pl,{windowSize:A,ref:dt,children:[Zo?t.jsx(gn,{titleComponent:t.jsx(yo,{children:we.title}),descriptionComponent:t.jsx(go,{children:we.description}),primaryButtonText:we.primaryButtonText,secondaryButtonText:we.secondaryButtonText,action:Xo,proceedButtonVariant:we.title===g.deleteBankAccountTitle||we.title===g.deleteDraftTitle||we.title===g.deleteReportTitle||we.title===g.discardTitle?"danger":"primary",isEditPopup:we.title===g.deleteBankAccountTitle}):null,Jo?t.jsx(kr,{reimbursementId:l,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Jt,numberOfDuplicateLines:On,setShowDuplicatePopup:In,submitReport:()=>{const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L),M()},fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,analytics:C}):null,tt?t.jsx(uo,{windowSize:A}):null,Ne?t.jsxs(uo,{windowSize:A,"data-testid":Y("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Zr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,size:A,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}),t.jsx(Qr,{children:Yt})]}):null,t.jsx(Lo,{showAutofill:Ne,analytics:C,onSkipAutofill:()=>{C?.trackReimbursementSkipAutofill(),xt(!1)},uploadInvoiceEndPoint:d,authParams:i,style:{width:te.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ve.colors.grey4:"unset",padding:A==="small"?`${n.sp5} ${n.sp3}`:`78px ${n.sp6} 15px ${n.sp8}`,margin:A==="small"?n.sp0:void 0},onInvoiceUpload:I=>U(I,wt,!0),dropFilePlaceholder:{upload:g.dropReceipt.upload,single:g.dropReceipt.single,or:g.dropReceipt.or,multiple:g.dropReceipt.multiple,receipts:g.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Ne,type:"reimbursement"}),A!=="small"?t.jsx(Jr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}):null]}):null,t.jsxs(sl,{windowSize:A,"data-testid":Y("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ln,{style:{width:"42%"},"data-testid":Y("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":Y("zeni-logo-spend-management-reimbursement-detail-page"),onClick:Be}),enableTitleOnScroll:!1,scrollableContent:Ze,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Er,{}):null,t.jsx(Ln,{style:{width:te.navBarWidth.valuePercentage(A)},"data-testid":Y("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Yt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Ne!=1?t.jsxs(dl,{children:[T&&l!=null?t.jsxs(ul,{isDisabled:it,"data-testid":Y("remi-comment-button"),onClick:it?()=>null:I=>{I.preventDefault(),I.stopPropagation(),Ce({roomId:Ae,companyId:Me.currentTenant?.companyId??"",companyName:Me.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:l}),Z(!0),C?.trackCommentActivity("reimbursement","clicked",Me.currentTenant?.companyName??"",Me.controllersList.controllers.map(L=>pi(L)),void 0,void 0,"page icon")},children:[t.jsx(mi,{count:it?void 0:ai,isLoading:it,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(mn,{size:A,onClick:()=>Dn(),"data-testid":Y("close-nav-bar"),children:t.jsx(un,{withOverlay:!1,children:t.jsx(dn,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:Ze,backgroundColor:Ve.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:Yt}),t.jsx(hi,{progressSectionObj:ti,createDate:e.createTime,paymentDate:oi,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:l!=null||e.uploadStatus==="Completed"}),Zt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(nl,{children:g.banner})]}),e.isProcessing?t.jsx(bo,{variant:"warning",style:{margin:A==="small"?`${n.sp5} ${n.sp3}`:`${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6}`},title:io.duplicateWarning.title,description:io.duplicateWarning.description}):Jt?t.jsxs(ol,{size:A,children:[t.jsx(_r,{}),t.jsxs(al,{children:[t.jsx(il,{children:g.thereSeems}),t.jsx(rl,{children:g.pleaseFind})]})]}):null,t.jsx(Bo,{isReimbursementCommentingEnabled:T,sectionId:Ft,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:ue,reimbursementId:l,remiDetails:e,uploadInvoiceEndPoint:d,authParams:i,showSkipAutoFill:Ne,setShowSkipAutoFill:xt,isReimbursementCommentingEnabled:T,isAutoFieldsExist:Zt,totalAmount:ye,removeFileFromLine:he,onReplaceClick:()=>{Dt({title:g.overwriteTitle,description:g.overwriteDescription,primaryButtonText:g.buttons.yes,secondaryButtonText:g.buttons.no}),pt(!0)},onReceiptsUpload:U,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Ho,setUploadedReceiptPayload:Yo,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,defaultCurrency:r,companyMileageConfigInfo:O,isUserAdmin:j,setShowBankAccountPage:Vt,bankAccounts:y,onDeleteBankAccount:I=>{Go(I),Dt({title:g.deleteBankAccountTitle,description:g.deleteBankAccountDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},analytics:C,fileRequiredLineIds:qt,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,showTotalAmountLoader:ae,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Jt,removeDuplicateReimbursementForLine:E,scrollContainerRef:Ze,customerSearchAutoComplete:m!=null?{customerSearchAutoCompleteData:m,loadOptions:(I,L)=>{u?.onAutoCompleteInputChange?.(I,"customer"),Gt.current=L}}:void 0}),t.jsxs(hl,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(gl,{windowSize:A,children:t.jsxs(yl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(An,{amount:ye??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:S,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ye!=null&&ye>0?t.jsx(An,{amount:ye??0,activities:jn,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(Nr,{windowSize:A,onClick:I=>{I.stopPropagation(),Je===!0&&Qe(!1)},children:t.jsx(fo,{formId:lo(ro),separatorStyle:{marginRight:n.sp4},showCancel:p,cancelBtn:{label:j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?g.buttons.discard:g.buttons.discardChanges:A==="small"?g.buttons.save:g.buttons.saveChanges,isLoading:nt==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Tn,style:{width:te.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(p,j,e,A),isDisabled:!p,style:{width:p?te.footerButtonWidth.value(A):"auto"},type:p?"submit":"button",onClick:p?()=>null:Tn,isLoading:!p&&nt==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(Kr,{windowSize:A,children:[Je?t.jsx(xo,{onClickAway:()=>Qe(!1),children:t.jsx(qr,{windowSize:A,"data-testid":Y("remi-other-actions-container"),children:t.jsx(Gr,{onClick:()=>{Dt({title:e.remiStage==="draft"?g.deleteDraftTitle:g.deleteReportTitle,description:g.deleteAlertDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},"data-testid":Y("delete-report-action"),children:g.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:A,children:ii===!0?t.jsx(Vr,{windowSize:A,"data-testid":Y("more-details-button"),children:t.jsx(Ur,{onClick:()=>Qe(!Je)})}):null})]})}),style:{minHeight:62}})})]}),T&&l!=null?t.jsx(gi,{isDrawerOpen:_t,allowComposer:!0,drawerTitle:Pr,threads:St,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:F?.companyId??Rr,isGlobalComment:!1,tab:"reimbursement"},isLoading:it,threadMetadata:F?{companyName:F.companyName,companyId:F.companyId,entityId:F.entityId,entityType:F.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(I,L)=>((B,We)=>{Xt(We);const x=B.entityType.split("."),D=parseInt(x[2]);if(isNaN(D))return void Z(!1);const jt=`${D+1}`,N=e.lineDetailSection[D+1].type;x.includes(g.mileageKey)&&N===g.outOfPocketKey?_(Wn(g.mileageKey),jt,l):x.includes(g.outOfPocketKey)&&N===g.mileageKey&&_(Wn(g.outOfPocketKey),jt,l),Z(!1)})(I,L),onCloseAllThreadsDrawer:()=>Z(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}}):null]})}),qo?t.jsx(Yr,{windowSize:A,children:t.jsx(pr,{bankAccountCreationState:c,setShowBankAccountPage:Vt,plaidConnectionDetails:k,onFetchLinkTokenClick:V,onEstablishConnectionClick:ge,onSaveHandler:z,bankAccountToCreate:P,bankNameByRouting:f,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onBackClick:()=>{q(),Vt(!1)}})}):null]})})})},Wl=e=>{const i=ft().currentTenant?.companyId,{isReimbursementCommentingEnabled:r,reimbursementId:m}=e;if(!r||m==null||i==null)return t.jsx(so,{...e});const u=`dashboard_${i}`;return t.jsx(ri,{roomId:u,filter:{application:"dashboard",companyId:i,entityId:m,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(so,{...e})})},Mr=(e,i,r,m)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?g.buttons.resubmit:g.buttons.submit:i&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?m==="small"?g.buttons.discard:g.buttons.discardChanges:m==="small"?g.buttons.save:g.buttons.saveChanges,Fr=o.div`
|
|
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:g,bulkActions:io}},common:{currency:{currencyCode:He,currencySymbol:At},texts:{comments:Pr},strings:{empty:Rr}},collaboration:{threads:{placeholder:{addANewComment:Lr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:ao}=$e.getLocalizedStrings(),ro="editReimbursementDetailPage",lo=e=>`${e}_form`,ln=(e,i,r)=>{const m=[];return Object.values(e.lineDetailSection).forEach((u,O)=>{u?.lineId!=null&&m.push(((d,D,j,C,l,k,c,f,y)=>{const p=d.outOfPocket,v=d.mileage,P=p.merchant,b=p.recommendations;return{lineIndex:k,lineId:d?.lineId??String(k+1),reimbursementType:d?.type??g.outOfPocketKey,file:d?.file,homeCurrencyConversions:{amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??c.currencyCode,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??c.currencySymbol},outOfPocket:{recommendedAccount:p.recommendedAccount,isCategoryUpdateSelected:p.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:p.isCategoryFirstTimeAutofilled??!1,retainedAccount:p.retainedAccount,isRetainedCategorySelected:p.isRetainedCategorySelected??!1,recommendations:b??[],transactionDate:p?.transactionDate?.toDate()??void 0,class:{allOptions:Ge(Qe(j,[])),selectedOption:p?.lineDetail?.class?.classId??y},account:{allOptions:Ge(Et(D,b)),selectedOption:p.lineDetail?.account?.qboId??p.lineDetail?.account?.accountId},customer:{defaultOptions:Bn(p?.lineDetail?.customer),selectedOption:p?.lineDetail?.customer?.id},amount:{amount:p?.amount??0,currencyCode:p?.currencyCode??c.currencyCode,currencySymbol:p?.currencySymbol??c.currencySymbol,currency:{allOptions:f.map($=>({label:`${$.currencyCode} - ${$.currency}`,value:$.currencyCode,countryCode:yn($.countryCode)})),selectedOption:p?.currencyCode??c.currencyCode??He}},memo:p?.description??void 0,merchant:{allOptions:C.map($=>$.id).filter($=>!!$),selectedOption:P?.id?P?.id:P?.name?P?.name:d?.lineId!=null?l[d?.lineId]:void 0}},mileage:{transactionDate:v?.transactionDate?.toDate(),class:{allOptions:Ge(Qe(j,[])),selectedOption:v?.lineDetail?.class?.classId},customer:{defaultOptions:Bn(v?.lineDetail?.customer),selectedOption:v?.lineDetail?.customer?.id},distanceInMiles:v?.distanceMileage?.value,amount:{amount:v?.amount??0,currencyCode:v?.currencyCode??c.currencyCode,currencySymbol:v?.currencySymbol??c.currencySymbol},memo:v?.description}}})(u,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,O,i,e.allCurrencies,e.loggedInUserDepartmentId))}),m.length===0&&m.push(Wo(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,i,e.allCurrencies,e.loggedInUserDepartmentId)),{[Ft]:{reportTitle:e.whatForSection.reportTitle},[Cn]:m,[Ct]:{selectedOption:e.paymentTo,allOptions:r.map(u=>u.bankAccountId)}}},sn=(e,i)=>Object.values(e).reduce((r,m)=>r+(u=>u.lineId==null||i[u.lineId]?.fetchState==="In-Progress"?0:(i[u.lineId],u.type===g.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==He&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0))(m),0),cn=(e,i,r,m,u,O,d,D,j)=>{const C={};return e.lineInfo.forEach(l=>{const k=D.find(b=>b.classId===l.mileage.class.selectedOption),c=(()=>{const b=l.mileage.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.mileage.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),f=d.find(b=>b.qboId===l.outOfPocket.account.selectedOption||b.accountId===l.outOfPocket.account.selectedOption),y=D.find(b=>b.classId===l.outOfPocket.class.selectedOption),p=(()=>{const b=l.outOfPocket.customer?.selectedOption;if(b==null)return;const $=j?.customer.find(z=>z.id===b);if($!=null)return $;const h=l.outOfPocket.customer?.defaultOptions?.find(z=>z.value===b);return h!=null?{id:h.value,name:h.label}:void 0})(),v=i.find(b=>b.id===l.outOfPocket.merchant.selectedOption),P=O.find(b=>b.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;C[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k,customer:c},transactionDate:l.mileage.transactionDate!=null?st(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??P,currencySymbol:l.mileage.amount?.currencySymbol??P,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:y,account:f,customer:p},transactionDate:l.outOfPocket.transactionDate!=null?st(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??P,currencySymbol:P,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:v?.id??"",name:v?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:C,totalAmount:{amount:m,...r},currencyConversionStateByLineId:u,paymentTo:e.paymentTo.selectedOption}},so=({remiDetails:e,authParams:i,defaultCurrency:r,customerSearchAutoCompleteData:m,customerSearchAutoCompleteActions:u,companyMileageConfigInfo:O,uploadInvoiceEndPoint:d,isReimbursementCommentingEnabled:D,isUserAdmin:j,analytics:C,reimbursementId:l,plaidConnectionDetails:k,bankAccountCreationState:c,bankNameByRouting:f,bankAccounts:y,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,bankAccountToCreate:P,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onSaveBankAccount:z,fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,removeDuplicateReimbursementForLine:E,onDuplicateLineClick:ue,onExistingMerchantChange:G,onNewMerchantChange:se,onReceiptsUpload:U,saveRemiDetails:ie,submitRemiDetails:M,discardReimbursementDetailsFromLocalStore:X,onReimbursementDetailsChanged:ce,updateReimbursementType:_,onHomeCurrencyConversionUpdate:Te,redirectToReimbursementListScreen:De,redirectToReimbursementDetailScreen:me,deleteReimbursement:pe,removeFileFromLine:he,onZeniLogoClick:Be,onAmountChanged:Le,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,onAddNewRule:S,onFetchLinkTokenClick:V,onEstablishConnectionClick:ge,deleteBankAccount:Ye,onBackClickFromBankAccountPage:q,initialOpenThreadRequest:_e})=>{const Ze=w.useRef(null),dt=w.useRef(null),et=pn(e.uploadStatus),Ve=kt(),Me=ft(),[tt,Fe]=w.useState(!1),[Je,Xe]=w.useState(!1),[nt,ut]=w.useState("save"),[ye,ot]=w.useState(sn(e.lineDetailSection,e.currencyConversionStatus)),[ae,mt]=w.useState(!1),[F,Ce]=w.useState(null),[_t,Z]=w.useState(!1),Ae=`dashboard_${Me.currentTenant?.companyId}`,Ee=mo({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>ln(e,r,y),[e,r,y]),values:w.useMemo(()=>ln(e,r,y),[e,r,y]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:_o,dirtyFields:Vo}=Ee.formState,kn=w.useMemo(()=>Rn((I,L)=>(async(B,We)=>{const{lineInfo:x}=We,T=Number(B.split(".")[1]);if(B.includes("reportTitle")||B.includes("memo"))return;if(B.includes("reimbursementType")){const N=x[T].mileage,H=x[T].outOfPocket;x[T]={...x[T],outOfPocket:{transactionDate:H.transactionDate??void 0,class:{allOptions:H.class.allOptions??Ge(Qe(e.classHierarchyList,[])),selectedOption:H.class.selectedOption??void 0},account:{allOptions:H.account.allOptions??Ge(Et(e.accountsHierarchyList,[])),selectedOption:H.account.selectedOption??void 0},amount:H.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ke=>({label:`${ke.currencyCode} - ${ke.currency}`,value:ke.currencyCode,countryCode:yn(ke.countryCode)})),selectedOption:r.currencyCode??He}},memo:H.memo??void 0,merchant:H.merchant??void 0,recommendations:H.recommendations??[],recommendedAccount:H.recommendedAccount??void 0,isCategoryUpdateSelected:H.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:H.isCategoryFirstTimeAutofilled??!1,retainedAccount:H.retainedAccount??void 0,isRetainedCategorySelected:H.isRetainedCategorySelected??!1,customer:H.customer??void 0},mileage:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??Ge(Qe(e.classHierarchyList,[])),selectedOption:N.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:N.distanceInMiles,amount:{amount:N?.amount?.amount??0,currencyCode:N?.amount?.currencyCode??He,currencySymbol:N?.amount?.currencySymbol??At},memo:N.memo??void 0,customer:N.customer??void 0}}}else if(B.includes("mileage.distanceInMiles")){const{distanceInMiles:N}=x[T].mileage,H=O?.mileageUnitAmount??0;x[T].mileage={...x[T].mileage,amount:{amount:N!=null?N*H:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(B.includes("outOfPocket.amount")&&x[T].lineId){const N=x[T].outOfPocket.amount,H=e.allCurrencies.find(ke=>ke.currencyCode===N?.currency.selectedOption)?.currencySymbol;if(N?.currencyCode!==N?.currency.selectedOption){const ke=N?.currency?.allOptions||[];x[T].outOfPocket.amount={currency:{allOptions:ke,selectedOption:N?.currency?.selectedOption},amount:x[T].outOfPocket?.amount?.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At}}if(N?.currency.selectedOption!==He)mt(!0),Xo(x[T].lineId,He);else{const ke={};x.forEach(en=>{ke[en.lineId]={lineId:en.lineId,homeCurrencyConversions:en.homeCurrencyConversions}}),x[T].homeCurrencyConversions={amount:N.amount??0,currencyCode:N?.currency.selectedOption??He,currencySymbol:H??At};const Pn=sn(ke,e.currencyConversionStatus);ye!==Pn&&ot(Pn)}}else if(B.includes("outOfPocket.isRetainedCategorySelected"))x[T].outOfPocket.isRetainedCategorySelected===!0&&(x[T].outOfPocket.isCategoryUpdateSelected=!1,x[T].outOfPocket.account.selectedOption=x[T].outOfPocket.retainedAccount?.qboId);else if(B.includes("outOfPocket.isCategoryUpdateSelected"))if(x[T].outOfPocket.isCategoryUpdateSelected===!0)x[T].outOfPocket.account.selectedOption=x[T].outOfPocket.recommendedAccount?.qboId,x[T].outOfPocket.isRetainedCategorySelected=!1;else{const N=x[T].lineId,H=e.editRemiInitialDetails.lineDetailSection[N]?.lineDetail?.account?.qboId;x[T].outOfPocket.account.selectedOption=H,x[T].outOfPocket.isRetainedCategorySelected=!1}else B.includes("outOfPocket.account")&&(x[T].outOfPocket.recommendations.length>0&&(x[T].outOfPocket.recommendedAccount=x[T].outOfPocket.recommendations[0].account),x[T].outOfPocket.recommendedAccount?.qboId!=null&&x[T].outOfPocket.account.selectedOption===x[T].outOfPocket.recommendedAccount?.qboId?x[T].outOfPocket.isCategoryUpdateSelected=!0:x[T].outOfPocket.isCategoryUpdateSelected=!1,x[T].outOfPocket.retainedAccount?.qboId!=null&&x[T].outOfPocket.account.selectedOption===x[T].outOfPocket.retainedAccount?.qboId?x[T].outOfPocket.isRetainedCategorySelected=!0:x[T].outOfPocket.isRetainedCategorySelected=!1,x[T].outOfPocket.isCategoryFirstTimeAutofilled=!1);const jt=cn({...We,lineInfo:x},e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);if(ce?.(jt),B.includes("outOfPocket.merchant")){const N=x[T].lineId,H=x[T].outOfPocket.merchant.selectedOption??"";x[T].outOfPocket.merchant.allOptions.find(ke=>ke===H)!=null?G(H,N):se(H,N)}})(I,L),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);w.useEffect(()=>{const I=Ee.watch((L,{name:B})=>{B!=null&&L!=null&&kn(B,L)});return()=>{I.unsubscribe()}},[kn,Ee]),w.useEffect(()=>{const I=Ei(Object.values(e.currencyConversionStatus)),L=I.fetchState==="In-Progress"||I.fetchState==="Error";mt(L)},[e.currencyConversionStatus]),w.useEffect(()=>{for(const L in e.currencyConversionStatus){const B=e.lineDetailSection[L],We=e.lineDetailSection[L];e.currencyConversionStatus[L].fetchState==="Completed"&&We!=null&&B.type!==g.mileageKey&&!po(B?.homeCurrencyConversions,We.homeCurrencyConversions)&&Te({amount:B?.homeCurrencyConversions?.amount??0,currencyCode:B?.homeCurrencyConversions?.currencyCode??He,currencySymbol:B?.homeCurrencyConversions?.currencySymbol??At},L,l)}const I=sn(e.lineDetailSection,e.currencyConversionStatus);ye!==I&&ot(I)},[e.currencyConversionStatus,e.lineDetailSection]),w.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(X(l),De?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,l,X,De]);const A=ze(),[Ne,xt]=w.useState(l==null),[wt,Ho]=w.useState(1),[qo,Vt]=w.useState(!1),[Ko,Go]=w.useState(""),[Ht,Yo]=w.useState(null),[Zo,pt]=w.useState(!1),[Jo,In]=w.useState(!1),[qt,Kt]=w.useState([]),[we,Tt]=w.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Gt=w.useRef(),Xo=w.useRef(Rn((I,L)=>Le(I,L),500,{trailing:!0})).current;w.useEffect(()=>{m?.entityAutoCompleteView.fetchState==="Completed"&&(Gt.current?.(li(m.entityAutoCompleteView)),Gt.current=void 0)},[m]),w.useEffect(()=>{et==="In-Progress"&&(e.uploadStatus==="Completed"?(Ee.reset(ln(e,r,y),{keepDefaultValues:!0}),Fe(!1),xt(!1)):e.uploadStatus==="Error"&&Fe(!1))},[et,e.uploadStatus,Ee,e,tt,Fe,Ne,r,y,C]),w.useEffect(()=>{e.uploadStatus==="In-Progress"&&Ne===!1&&Fe(!0)},[e.uploadStatus,Fe,Ne]);const Yt=e.remiStage==="draft"?g.newReimbursementTitle:g.editReimbursementTitle,Qo={onOkClick:()=>{if(pt(!1),we.primaryButtonText===g.buttons.discard)X(l),e.remiStage==="draft"?De?.():me?.();else if(we.primaryButtonText===g.buttons.delete)we.title===g.deleteBankAccountTitle?Ye?.(Ko):pe?.();else if(we.primaryButtonText===g.buttons.yes&&Ht!=null){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!0)}},onCancelClick:()=>{if(pt(!1),we.secondaryButtonText===g.buttons.no){const I=qt.filter(L=>L!==wt.toString());Kt(I),U(Ht,wt,!1)}}},Tn=()=>{_o||xi(Vo)?(Tt({title:g.discardTitle,description:g.discardDescription,primaryButtonText:g.buttons.discard,secondaryButtonText:g.buttons.cancel}),pt(!0)):(X(l),De?.())},Dn=()=>{if(j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Tn();else{ut("save");const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L);const B=L.whatForSection?.reportTitle;B!=null&&B.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):Ee.trigger(`${Ft}.reportTitle`,{shouldFocus:!0})}};let Zt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(I=>{I.length>0&&(Zt=!0)});let jn=[];if(e.remiId==null){const I=ye??0;I>0&&(jn=e.approvalRules.allApprovalRules?.filter(L=>{const B=L.criteria[0].range;if(B.max!=null){if(B.min.amount<I&&B.max.amount>=I)return L}else if(B.min.amount<I)return L;return null}).map(L=>({...L,stepsWithStatus:L.steps.map(B=>({...B,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const ei=I=>{const L=(()=>{let B=!0;const We=[];return Object.values(e.lineDetailSection).forEach((x,T)=>{x.type===g.outOfPocketKey&&Mo(x)>=75&&x.file==null&&(We.push(x.lineId),B=!1)}),Kt(We),B})();return Ee.handleSubmit(()=>{L&&(ut("submit"),C?.trackReimbursementSubmitReimbursement(e.createTime?.format(ao.analytics.MMMDashDDDashYYYYFormat)??$n().format(ao.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ye,l),oe(),In(!0))})(I)},ti=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,ni=e.reimbursementInfo?.paymentDate!=null?st(Po(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,oi=e.reimbursementInfo?.expectedDepositDate??ni,ii=l!=null&&e.remiStage==="draft",On=Ni(e.duplicateLineByLineId),Jt=e.duplicateReimbursementStatus.fetchState==="Completed"&&On>0,{requestToOpenThread:Xt,setRequestToOpenThread:Dt,setOpenThread:Qt}=w.useContext(si);w.useEffect(()=>{_e?.threadId!=null&&_e?.companyId!=null&&_e?.entityType!=null&&Dt(_e)},[_e,Dt]);const{threads:St,isLoading:it}=ci();w.useEffect(()=>{Xt?.threadId!=null&&St.length>0&&!it&&(Qt(Xt.threadId),Dt(null))},[Xt,St,it,Qt,Dt]);const ai=w.useMemo(()=>l==null?[]:St.filter(I=>I.resolved===!1&&!I.id.includes(di)),[St,l]).length;return t.jsx(Fr,{ref:Ze,children:t.jsx(ui,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:dt.current??null}},children:t.jsxs(ho,{...Ee,children:[t.jsx("form",{id:lo(ro),onSubmit:I=>ei(I),children:t.jsxs(pl,{windowSize:A,ref:dt,children:[Zo?t.jsx(gn,{titleComponent:t.jsx(yo,{children:we.title}),descriptionComponent:t.jsx(go,{children:we.description}),primaryButtonText:we.primaryButtonText,secondaryButtonText:we.secondaryButtonText,action:Qo,proceedButtonVariant:we.title===g.deleteBankAccountTitle||we.title===g.deleteDraftTitle||we.title===g.deleteReportTitle||we.title===g.discardTitle?"danger":"primary",isEditPopup:we.title===g.deleteBankAccountTitle}):null,Jo?t.jsx(kr,{reimbursementId:l,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Jt,numberOfDuplicateLines:On,setShowDuplicatePopup:In,submitReport:()=>{const I=Ee.getValues(),L=cn(I,e.merchantList.merchants,r,ye,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes,m?.entityAutoCompleteView);ce?.(L),M()},fetchDuplicateReimbursement:ne,clearDuplicateReimbursementDetail:oe,clearRemiSaveStatus:le,analytics:C}):null,tt?t.jsx(uo,{windowSize:A}):null,Ne?t.jsxs(uo,{windowSize:A,"data-testid":Y("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Zr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,size:A,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}),t.jsx(Xr,{children:Yt})]}):null,t.jsx(Lo,{showAutofill:Ne,analytics:C,onSkipAutofill:()=>{C?.trackReimbursementSkipAutofill(),xt(!1)},uploadInvoiceEndPoint:d,authParams:i,style:{width:te.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ve.colors.grey4:"unset",padding:A==="small"?`${n.sp5} ${n.sp3}`:`78px ${n.sp6} 15px ${n.sp8}`,margin:A==="small"?n.sp0:void 0},onInvoiceUpload:I=>U(I,wt,!0),dropFilePlaceholder:{upload:g.dropReceipt.upload,single:g.dropReceipt.single,or:g.dropReceipt.or,multiple:g.dropReceipt.multiple,receipts:g.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Ne,type:"reimbursement"}),A!=="small"?t.jsx(Jr,{children:t.jsx(mn,{partOfSkipAutoFill:!0,onClick:()=>xt(!1),"data-testid":Y("close-invoice-upload"),children:t.jsx(un,{withOverlay:!0,children:t.jsx(dn,{})})})}):null]}):null,t.jsxs(sl,{windowSize:A,"data-testid":Y("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ln,{style:{width:"42%"},"data-testid":Y("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":Y("zeni-logo-spend-management-reimbursement-detail-page"),onClick:Be}),enableTitleOnScroll:!1,scrollableContent:Ze,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Er,{}):null,t.jsx(Ln,{style:{width:te.navBarWidth.valuePercentage(A)},"data-testid":Y("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Yt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Ne!=1?t.jsxs(dl,{children:[D&&l!=null?t.jsxs(ul,{isDisabled:it,"data-testid":Y("remi-comment-button"),onClick:it?()=>null:I=>{I.preventDefault(),I.stopPropagation(),Ce({roomId:Ae,companyId:Me.currentTenant?.companyId??"",companyName:Me.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:l}),Z(!0),C?.trackCommentActivity("reimbursement","clicked",Me.currentTenant?.companyName??"",Me.controllersList.controllers.map(L=>pi(L)),void 0,void 0,"page icon")},children:[t.jsx(mi,{count:it?void 0:ai,isLoading:it,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(mn,{size:A,onClick:()=>Tn(),"data-testid":Y("close-nav-bar"),children:t.jsx(un,{withOverlay:!1,children:t.jsx(dn,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:Ze,backgroundColor:Ve.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:Yt}),t.jsx(hi,{progressSectionObj:ti,createDate:e.createTime,paymentDate:oi,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:l!=null||e.uploadStatus==="Completed"}),Zt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(nl,{children:g.banner})]}),e.isProcessing?t.jsx(bo,{variant:"warning",style:{margin:A==="small"?`${n.sp5} ${n.sp3}`:`${n.sp3} ${n.sp8} ${n.sp3} ${n.sp6}`},title:io.duplicateWarning.title,description:io.duplicateWarning.description}):Jt?t.jsxs(ol,{size:A,children:[t.jsx(_r,{}),t.jsxs(al,{children:[t.jsx(il,{children:g.thereSeems}),t.jsx(rl,{children:g.pleaseFind})]})]}):null,t.jsx(Bo,{isReimbursementCommentingEnabled:D,sectionId:Ft,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:ue,reimbursementId:l,remiDetails:e,uploadInvoiceEndPoint:d,authParams:i,showSkipAutoFill:Ne,setShowSkipAutoFill:xt,isReimbursementCommentingEnabled:D,isAutoFieldsExist:Zt,totalAmount:ye,removeFileFromLine:he,onReplaceClick:()=>{Tt({title:g.overwriteTitle,description:g.overwriteDescription,primaryButtonText:g.buttons.yes,secondaryButtonText:g.buttons.no}),pt(!0)},onReceiptsUpload:U,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Ho,setUploadedReceiptPayload:Yo,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:xe,defaultCurrency:r,companyMileageConfigInfo:O,isUserAdmin:j,setShowBankAccountPage:Vt,bankAccounts:y,onDeleteBankAccount:I=>{Go(I),Tt({title:g.deleteBankAccountTitle,description:g.deleteBankAccountDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},analytics:C,fileRequiredLineIds:qt,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:v,showTotalAmountLoader:ae,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Jt,removeDuplicateReimbursementForLine:E,scrollContainerRef:Ze,customerSearchAutoComplete:m!=null?{customerSearchAutoCompleteData:m,loadOptions:(I,L)=>{u?.onAutoCompleteInputChange?.(I,"customer"),Gt.current=L}}:void 0}),t.jsxs(hl,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(gl,{windowSize:A,children:t.jsxs(yl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(An,{amount:ye??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:S,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ye!=null&&ye>0?t.jsx(An,{amount:ye??0,activities:jn,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Qr,{showSkipAutoFill:Ne,windowSize:A,children:[A!=="small"?t.jsx(co,{}):null,t.jsx(Nr,{windowSize:A,onClick:I=>{I.stopPropagation(),Je===!0&&Xe(!1)},children:t.jsx(fo,{formId:lo(ro),separatorStyle:{marginRight:n.sp4},showCancel:p,cancelBtn:{label:j&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?g.buttons.discard:g.buttons.discardChanges:A==="small"?g.buttons.save:g.buttons.saveChanges,isLoading:nt==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Dn,style:{width:te.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(p,j,e,A),isDisabled:!p,style:{width:p?te.footerButtonWidth.value(A):"auto"},type:p?"submit":"button",onClick:p?()=>null:Dn,isLoading:!p&&nt==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(Kr,{windowSize:A,children:[Je?t.jsx(xo,{onClickAway:()=>Xe(!1),children:t.jsx(qr,{windowSize:A,"data-testid":Y("remi-other-actions-container"),children:t.jsx(Gr,{onClick:()=>{Tt({title:e.remiStage==="draft"?g.deleteDraftTitle:g.deleteReportTitle,description:g.deleteAlertDescription,primaryButtonText:g.buttons.delete,secondaryButtonText:g.buttons.cancel}),pt(!0)},"data-testid":Y("delete-report-action"),children:g.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:A,children:ii===!0?t.jsx(Vr,{windowSize:A,"data-testid":Y("more-details-button"),children:t.jsx(Ur,{onClick:()=>Xe(!Je)})}):null})]})}),style:{minHeight:62}})})]}),D&&l!=null?t.jsx(gi,{isDrawerOpen:_t,allowComposer:!0,drawerTitle:Pr,threads:St,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:F?.companyId??Rr,isGlobalComment:!1,tab:"reimbursement"},isLoading:it,threadMetadata:F?{companyName:F.companyName,companyId:F.companyId,entityId:F.entityId,entityType:F.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Lr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(I,L)=>((B,We)=>{Qt(We);const x=B.entityType.split("."),T=parseInt(x[2]);if(isNaN(T))return void Z(!1);const jt=`${T+1}`,N=e.lineDetailSection[T+1].type;x.includes(g.mileageKey)&&N===g.outOfPocketKey?_(Wn(g.mileageKey),jt,l):x.includes(g.outOfPocketKey)&&N===g.mileageKey&&_(Wn(g.outOfPocketKey),jt,l),Z(!1)})(I,L),onCloseAllThreadsDrawer:()=>Z(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}}):null]})}),qo?t.jsx(Yr,{windowSize:A,children:t.jsx(pr,{bankAccountCreationState:c,setShowBankAccountPage:Vt,plaidConnectionDetails:k,onFetchLinkTokenClick:V,onEstablishConnectionClick:ge,onSaveHandler:z,bankAccountToCreate:P,bankNameByRouting:f,fetchBankNameByRoutingStatus:b,onUserBankDetailsUpdated:$,onFetchBankName:h,onBackClick:()=>{q(),Vt(!1)}})}):null]})})})},Wl=e=>{const i=ft().currentTenant?.companyId,{isReimbursementCommentingEnabled:r,reimbursementId:m}=e;if(!r||m==null||i==null)return t.jsx(so,{...e});const u=`dashboard_${i}`;return t.jsx(ri,{roomId:u,filter:{application:"dashboard",companyId:i,entityId:m,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(so,{...e})})},Mr=(e,i,r,m)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?g.buttons.resubmit:g.buttons.submit:i&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?m==="small"?g.buttons.discard:g.buttons.discardChanges:m==="small"?g.buttons.save:g.buttons.saveChanges,Fr=o.div`
|
|
620
620
|
position: relative;
|
|
621
621
|
height: 100vh;
|
|
622
622
|
overflow-y: scroll;
|
|
@@ -712,11 +712,11 @@ import{_ as ft,V as t,fI as ri,a7 as pn,y as kt,T as mo,B as Rn,S as po,e as ze,
|
|
|
712
712
|
justify-content: end;
|
|
713
713
|
`,Jr=o.div`
|
|
714
714
|
width: 58%;
|
|
715
|
-
`,
|
|
715
|
+
`,Xr=o(bn)`
|
|
716
716
|
padding: ${n.sp3} ${n.sp3} 0 ${n.sp3};
|
|
717
717
|
background: ${e=>e.theme.colors.grey4};
|
|
718
718
|
color: ${e=>e.theme.colors.primary};
|
|
719
|
-
`,
|
|
719
|
+
`,Qr=o.div`
|
|
720
720
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
721
721
|
width: 100%;
|
|
722
722
|
position: fixed;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{y as T,O as v,ad as w,V as o,aZ as x,K as D,o as i,J as p}from"./index-CilRLucN.js";import{n as a}from"./mui-Ckdcx_YE.js";import{R as I}from"./TrendWithTransactions-DgAw_8CI-MC8wGnO9.js";import"./sentry-D-LCra2M.js";import"./pdf-CwWlK-Dr.js";import"./zeni-epic-state-B1zsDZZ4.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.js";import"./TrendChart-COItOWPp-Bqzu2MgM.js";import"./chartTypes-BGl-YMiu-DyUWLIfR.js";import"./toCOABalancesWithID-CGYYTIjt-Cbihktyj.js";import"./toChartData-B4ligi4c-CgbG1qSk.js";import"./NoDataChart-DlSLTzZl-FuGU3dm-.js";import"./InsightsSection-rGyA4lY9-ztCddwYb.js";import"./NavigationDots-WiVjbUsC-Crp3ArrF.js";import"./TransactionList-C2MGkQYM-CPp22oMb.js";import"./ConstrainedInnerElement-CgdnMeoA-Dc3P_0OR.js";import"./BoxItem-C39hQSVg-B9WMvkwI.js";import"./commonDimensions-CuKo3wam-D08uyy0o.js";import"./panelSelectedMixin-Cddsb26L-CROMd__p.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="89232f12-f5b5-4b7d-a079-a828f5a3acb2",t._sentryDebugIdIdentifier="sentry-dbid-89232f12-f5b5-4b7d-a079-a828f5a3acb2")}catch{}})();const k=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
margin: ${i.sp0} ${i.sp0} ${i.sp0} ${i.sp0};
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
8
|
+
`,P=a.div`
|
|
9
|
+
padding-left: ${i.sp0};
|
|
10
|
+
position: fixed;
|
|
11
|
+
width: 100%;
|
|
12
|
+
z-index: 20;
|
|
13
|
+
position: -webkit-sticky;
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: ${i.sp0};
|
|
16
|
+
`,$=a.div`
|
|
17
|
+
flex: 1 1 auto;
|
|
18
|
+
`;function et({firstMonthOfFY:t,selectedEntity:e,trendWithTransactionsReport:n,autoCompleteData:l,autoCompleteActions:m,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:f,panelContent:u,sidePanelIsFullView:h,sidePanelIsOpen:y}){const g=T(),{dateFormat:{analytics:b}}=v.getLocalizedStrings(),C=new w(g.colors.graphColor12);return o.jsx(x,{isOpen:y??!1,isFullView:h??!1,panelContent:u,headerContent:o.jsx(P,{children:o.jsx(D,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:l,autoCompleteActions:m},source:"EntityDetailPage"})}),listContent:o.jsx(k,{children:e!=null&&n!=null?o.jsx($,{children:o.jsx(I,{firstMonthOfFY:t,trendWithTransactionsReport:n,isDetailPage:!1,graphColor:C,page:"EntityDetailPage",onTransactionItemClick:c,onTimePeriodChange:(d,r)=>{d==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?p.Event.spendTrend:p.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(b.MMMYYFormat)),d==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),f?.(r)}})}):null})})}export{et as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./pdf-
|
|
1
|
+
import{j as s}from"./pdf-CwWlK-Dr.js";import{a as d}from"./sentry-D-LCra2M.js";import{j as B,i as A,h as F,l as q,u as l,N as M,k as O,R as N,m as _}from"./core-AYNw6kyJ.js";import{Jh as z,ct as R,IG as J,hL as L,Dn as k,Jm as W,I9 as Y,Do as I,IL as $,IM as Q,Ib as V,Ia as H}from"./zeni-epic-state-B1zsDZZ4.js";import{kQ as K,jz as U,jM as X,jO as Z}from"./index-CilRLucN.js";import"./mui-Ckdcx_YE.js";import{d as S}from"./decodeURIComponentSafe-E-sgiudi.js";import{w as tt}from"./withTransactionSidePanel-CEBXOpSa.js";import{e as et,b as at}from"./routePaths-DqRhLReO.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.js";import"./TransactionDetailScreen-BxZ1AvRI.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="fe26e8ed-a60e-4c47-9144-a1d35d3c6e5f",a._sentryDebugIdIdentifier="sentry-dbid-fe26e8ed-a60e-4c47-9144-a1d35d3c6e5f")}catch{}})();const nt=O(function(a,t){const e=t.entity,o=W(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:Y(a,"common")},trendWithTransactionsReport:o,analytics:U}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,c=Z(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(V({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(H("common"))},onAutoCompleteEntity:e=>{const o=et(e,t.tenantEmailDomain);a($()),a(Q()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=X(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(I(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(K),ot=tt(function({entityType:a,...t}){const e=B(),o=A(),c=F(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:v}=q(),r=S(j??""),f=S(v??""),u=it(r,f),w=[r,f].filter(n=>n!=null),i={name:f,id:r,type:a,zeniId:r,qboId:r},P=l(n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),x=l(n=>R(n).company?.companyInfo.firstMonthOfFY??1),p=l(n=>J(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(h(!0),o(L(i)))},[m,u,i]);const g=l(n=>n.trendState.fetchState),E=p?.selectedPeriod?.timePeriod??P,G=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(p?.selectedPeriod?.timePeriod,P);return d.useEffect(()=>{m===!0&&T===!1&&g==="Completed"&&(D(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:p?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))},[m,T,g]),u?s.jsx(nt,{firstMonthOfFY:x,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:G,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(M,{to:b(w.length)})}),it=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function St({entityType:a}){return s.jsx(N,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{St as EntityDetailRoutes,St as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as C,x as s,V as i,an as R,bV as B,O as k,cQ as V,cs as N,o as d,E as S,a5 as z,df as D,m as a,c2 as E,H as F,l as Y,at as U,C as I,b_ as G,f as M,c1 as Q}from"./index-
|
|
1
|
+
import{e as C,x as s,V as i,an as R,bV as B,O as k,cQ as V,cs as N,o as d,E as S,a5 as z,df as D,m as a,c2 as E,H as F,l as Y,at as U,C as I,b_ as G,f as M,c1 as Q}from"./index-CilRLucN.js";import{a as p}from"./sentry-D-LCra2M.js";import{n}from"./mui-Ckdcx_YE.js";import{l as q}from"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="3ec20a94-9c9b-4b19-899f-8a199237a90a",e._sentryDebugIdIdentifier="sentry-dbid-3ec20a94-9c9b-4b19-899f-8a199237a90a")}catch{}})();const y=k.getLocalizedStrings().reports.aging.agingDetail.header,g=[{key:"date",value:y.date,sortOrder:"ascending",width:new s(212,212),compressedWidth:new s(300,300)},{key:"invoiceNumber",value:y.invoiceNumber,sortOrder:"ascending",width:new s(188,188)},{key:"dueDate",value:y.dueDate,sortOrder:"ascending",width:new s(188,188)},{key:"daysPastDue",value:y.daysPastDue,sortOrder:"ascending",width:new s(188,188)},{key:"amount",value:y.amount,sortOrder:"ascending",width:new s(188,188),compressedWidth:new s(100,100)},{key:"balance",value:y.balance,sortOrder:"ascending",width:new s(120,120)}],T={headerHeight:new s(45,58)},J=n.div`
|
|
2
2
|
top: ${d.sp0};
|
|
3
3
|
left: ${d.sp0};
|
|
4
4
|
min-height: ${e=>T.headerHeight.valuePx(e.windowSize)};
|