@zeniai/web-cockpit-ui 1.14.11-qa → 1.14.12-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-BQBpkHfF-5WBNzAYc.js +21 -0
- package/dist/assets/{AIPerformancePage-pQP8EI_S-BmqjuJLP.js → AIPerformancePage-C459GJxs-fTjD1LWj.js} +49 -49
- package/dist/assets/{AccountInfoPage-DxAa9GD7-D7apIJBS.js → AccountInfoPage-DWqJj9l6-B6y2ESMc.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-tNTpX5pA-Dq_hVydq.js → AccountInfoPageContent-Ca328DM4-QVdlDPGz.js} +17 -17
- package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-DaawWCL4.js → AccountReconDetailsDrawerPage-BqIo4mya-DvoWQJ-A.js} +13 -13
- package/dist/assets/{AccountRow-BpBK8mVs-CWKKWdc9.js → AccountRow-Bk3xWobY-C3BJwyhC.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-A49ZhRDR.js → AccountsPromoCardStack-Co90dxxm-D8gTFju4.js} +35 -35
- package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-DSB40bVC.js → AddAddressForCardDrawer-XNGsKMvs-D3xdyQox.js} +2 -2
- package/dist/assets/{AddToWalletPage-Dsw1GIbh-BSm9RiLd.js → AddToWalletPage-BiQWQXvz-Db3v8rAa.js} +26 -26
- package/dist/assets/{AgingReportsPage-COC3iACh-C5F0xJIX.js → AgingReportsPage-ClR6ctjm-BIaxAdn5.js} +8 -8
- package/dist/assets/{AllUserItems-DKoDASKq-DdNtnSb4.js → AllUserItems-RFWkNfw--KR4FkXJv.js} +10 -10
- package/dist/assets/{ApAgingDetailPage-BKAJMyRm-BNLhw8rC.js → ApAgingDetailPage-F-pd4-We-CpSc-V5Y.js} +2 -2
- package/dist/assets/{AppBasePage-6fgXwSBv-D_v1hA25.js → AppBasePage-B9-FGKn--2PuIe5q1.js} +6 -6
- package/dist/assets/{AppDrawerContent-DnYw60Xv-B7MgYjtO.js → AppDrawerContent-C6P8rk3y-D4vfBiW2.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-KdnTY675.js → ApprovalRulesSettingsPage-CPNEEGTF-D1-OmKoO.js} +5 -5
- package/dist/assets/{ArAgingChart-CNghm3pm-BgpJccmt.js → ArAgingChart-D9qmMVoC-xX4UMVP_.js} +6 -6
- package/dist/assets/ArAgingDetailPage-DMuZM6P_-BndjVsLP.js +46 -0
- package/dist/assets/{AttachmentView-Bp678glv-q5i7KaEA.js → AttachmentView-B2ZOED0q-BJNMGobn.js} +7 -7
- package/dist/assets/{BankAccountSection-DCHOrv1O-5bvqtg8o.js → BankAccountSection-C8G4yj75-DuLz4nvb.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-D_X_UYgf.js → BankAccountWarningSection-CWXa-X6f-DfZDDQCz.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Bz0yQRf6.js → BankConnectionsSettingsPage-B5IQ5w6f-iwQpc5z9.js} +11 -11
- package/dist/assets/{BillDetailPage-D5FyJKQZ-BDKG0T5L.js → BillDetailPage-B-PMkZ44-BthpQ-iy.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-uDIFTPco.js → BillPayApprovalRuleDetailPage-CdLKENJ--UWgYicIp.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-DhxHdUJx.js → BillPayApprovalRulesPage-BueljBn0-Bfh6hqvA.js} +10 -10
- package/dist/assets/{BillPayPromoPage-BhbcKNjD-CvojuwFp.js → BillPayPromoPage-WXntEliq-BogAEb_N.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-DFkYsW2C-BYQSIQ2q.js → BillPaySetUpPage-By7rYetf-BUuU8LQN.js} +2 -2
- package/dist/assets/{BillingSettingsPage-DQ-GDRoK-DXTBvn4K.js → BillingSettingsPage-D-XtlyVU-DEnOD97y.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-DqYYhO09.js → BillsBulkReviewDrawerPage-P8siJ8lO-Bp2c_793.js} +1 -1
- package/dist/assets/{BoxItem-a04JWA45-C1LNy4lJ.js → BoxItem-Bcy7IYuZ-DautVok3.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-B8FzYlfZ.js → BusinessVerificationPage-BoSLJbyU-BkzAyvoH.js} +12 -12
- package/dist/assets/{CardNumberSubText-B5ejHnml-C3WWdznE.js → CardNumberSubText-VsMOF0Xv-C9_EOnyV.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DX_XsNhS-BZkWZvJX.js → CashbackDetailPage-DNbRs50r--xwa0kLc.js} +25 -25
- package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-DV5ro9Lj.js → ChargeCardDetailPage-BSDS8Kqb-CvvgjUiJ.js} +57 -57
- package/dist/assets/{ChargeCardListPage-CglfbPqr-DkdBMcPW.js → ChargeCardListPage-Bzr8qMC0-COqTxfBS.js} +20 -20
- package/dist/assets/{ChargeCardListTable-BxAeA97m-DhK6iFhq.js → ChargeCardListTable-CTp6TFBR-DoKiJmmd.js} +41 -41
- package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-Dgj-8gSG.js → ChargeCardPromoPage-dIg8OIlx-XWvzHV4l.js} +31 -31
- package/dist/assets/{ChargeCardSetupPage-Bq953HsV-J6EdPALC.js → ChargeCardSetupPage-B1wzJjgH-CBaIBhaa.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-GOsKFOMZ.js → ChargeCardStatementsPage-CePfbLPp-w444eaXi.js} +10 -10
- package/dist/assets/ChargeCardUtils-DC2v2EHU-BFBTkwUP.js +1 -0
- package/dist/assets/{ChaseOverlay-LcVAgdoT-9JR0Zv57.js → ChaseOverlay-B-Sx71yo-C-AskbE-.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BZAFC99F.js +206 -0
- package/dist/assets/{CollapsableReportTable-CKmPwC_x-QhRCql-r.js → CollapsableReportTable-mEqm05fp-D6CvF14n.js} +57 -57
- package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-DFeWFucX.js → CompanyOfficerDetailsSection-BzYsDrr2-CsOvplVx.js} +28 -28
- package/dist/assets/{CompanyPassportCard-ElwK6uOD-F6JuKciR.js → CompanyPassportCard-Ct6tCZqT-Ck2ikxpq.js} +8 -8
- package/dist/assets/{CompanyPassportPage-B6mGjsJZ-D4tm48-a.js → CompanyPassportPage-D9NQ4bXl-sWP3h2Qt.js} +7 -7
- package/dist/assets/CompleteProfile-CN_hAW-2-Cag0kPdJ.js +36 -0
- package/dist/assets/{ConfettiBurst-CjhkW_Be-BI15fZq4.js → ConfettiBurst-DqSwVGBC-DTqMp1Lq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-CxkBhh6M.js → CreateOrEditVendorPage-D27A1926-Dhm0ZELF.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-B7y-9nys.js → CreditCardPaymentDrawerPage-BI37dSwx-62q04GEy.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-BfHxZrsE.js → CreditCardPaymentPlgSection-CAsn4Ae6-BjGYp9i3.js} +12 -12
- package/dist/assets/CurrencySelectField-5uG4FfJ9-BDdfhX8u.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-FLMbZZc8.js → CustomerOnboardingActivationPage-Be-GrAiK-C2g5Nk62.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-DvSZ9aFU.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-C1oSOHVg.js → CustomerOnboardingDetailPageSkeleton-DhGp71bj-DHW9XHps.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-pj30prKU.js → CustomerOnboardingNoStepsPage-CdOGTNXC-k7L31nJ8.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-DNIqvHf3.js → CustomerOnboardingPage-ClPsywa3-CFzRDdjv.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-hGJUPhue.js → CustomerOnboardingProductSuitePage-pnHglqXq-BoMrKg2u.js} +8 -8
- package/dist/assets/{Dashboard-CQoNm84Z-Cs2ZdkxJ.js → Dashboard-avtbjFLf-DvcVqu7f.js} +1 -1
- package/dist/assets/{DashboardReportPage-D4BoWobJ-yZjHxD4A.js → DashboardReportPage-CqJAu5WP-DxhW1pos.js} +13 -13
- package/dist/assets/{DepositAccTransactionItem-C6_OrohL-BGfaLs6w.js → DepositAccTransactionItem-Da0GWYei-DZh1aBKG.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-Db90ITIq-B9ylpAgD.js +66 -0
- package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-rtEtCt6Y.js → DocumentSecurityBanner-Bxg3ctYZ-hOyP50NE.js} +2 -2
- package/dist/assets/DomesticWireDetailsPage-DGcVKriv-H9iyT4_J.js +21 -0
- package/dist/assets/{DownloadOverlay-BoIyiJ9R-DsBfFiz4.js → DownloadOverlay-BdGiqnp7-B--FKXJU.js} +25 -25
- package/dist/assets/{DrawerPage-C_kxrXIc-DVV_RfYu.js → DrawerPage-DCfm1BVs-BnE3GKCd.js} +5 -5
- package/dist/assets/EditPeoplePage-CBPmCcoG-Dv-eYAXF.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-CD5iBKwa.js → EditReimbursementDetailPage-C-nYgUua-657t3H5o.js} +68 -68
- package/dist/assets/{EntityDetailPage-Cqkhzu9O-D4nSYNpc.js → EntityDetailPage-4HX_rHUf-CQIILZS8.js} +3 -3
- package/dist/assets/{EntitySummarySection-Dqgxknt6-BJXynL5O.js → EntitySummarySection-C9VeOBpT-CyjmmYl7.js} +3 -3
- package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-BgjJamdE.js → ExpenseAutomationOverviewPage-8jTkscWa-CSL-Ff0N.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-Bno6HNVc.js → ExpenseAutomationPage-D1wcc9GW-BnW2S6f_.js} +84 -84
- package/dist/assets/{ExpressPayPage-DBWJERD9-C99_7DYc.js → ExpressPayPage-Cj6cvMwQ-B3xsIydY.js} +12 -12
- package/dist/assets/FeaturePreviewPage-BBkfKvIu-BO0Ix0ac.js +11 -0
- package/dist/assets/{FollowStepsSection-BrJecw-e-DxiUX8Lf.js → FollowStepsSection-DjfnVH8N-DC94T1ld.js} +13 -13
- package/dist/assets/{GlobalReviewListPage-Duoi9mD_-xu3W8826.js → GlobalReviewListPage-CEOzc0We-Dzo-H4fB.js} +8 -8
- package/dist/assets/{HelpButton-C1djo0zO-CxYW3QWQ.js → HelpButton-BdhMFvtG-BQoUMZgM.js} +5 -5
- package/dist/assets/{InformationCardStack-BE5eaq-x-jnl5_r_P.js → InformationCardStack-DFOumIBr-DYp-Y1-6.js} +5 -5
- package/dist/assets/InsightsCardStack-rByhzgji-C_39DSFU.js +79 -0
- package/dist/assets/{InsightsSection-nzKuS0T9-DxBuHfNE.js → InsightsSection-jnWJ877y-B7dup9Hm.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-Ceg3xdUn.js → IntegrationsSettingsPage-DF-jcHzr-CezJdw9j.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-DUJjwzMe.js → InternationalWireSwiftDetailsPage-BFMqW1oQ-DTpqOglD.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-ETH-TFJ4.js → InternationalWireVerificationPage-Cq7swzrt-CjhvwwKs.js} +17 -17
- package/dist/assets/{InviteFormPage-BNdBP-Mm-DdF7yrct.js → InviteFormPage-DXl2sEn9-BCdDtuKU.js} +25 -25
- package/dist/assets/{InvitePageListView-ChzmK7Rt-CsxcBmQK.js → InvitePageListView-B5fRPcOg-CSGuFFZf.js} +51 -51
- package/dist/assets/InvitePeoplePage-DvGON1va-CZwxU8KK.js +12 -0
- package/dist/assets/{InvoiceUploadSection-B8o-l15n-DT5xRRC2.js → InvoiceUploadSection-opkVsXZH-CITMTH3B.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-BW0cXQqh-Am6endI_.js → IssueChargeCardPage-CZU1qbHO-Bk0rsSk1.js} +27 -27
- package/dist/assets/{LabeledAddressValue-BioQUVCV-BQVyTN5W.js → LabeledAddressValue-CCd3y8zQ-iyUnGXzQ.js} +1 -1
- package/dist/assets/LabeledAddressValueField-XuFlx-oK-BwOm2urL.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-8Yk74ikH.js → LabeledControlledCheckBoxField-CCQn4-_S-DGlsZAic.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js → LabeledCreatableSingleSelectField-uQKngCdt-D9uymIz_.js} +3 -3
- package/dist/assets/LabeledDocumentField-TFmz23mS-VXex-CEg.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-Bq2gS2Tu.js → LabeledDropDownFormattedTextField-BrUNxsKy-CYES9RG5.js} +7 -7
- package/dist/assets/{LabeledText-QrjXGWwJ-CNRYgiQJ.js → LabeledText-ByqI7uq0-D8BGktgf.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-piBn824J.js → LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0--1MhGerh.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-BazOR2LB.js → LabeledZeniRolesDropDownField-DZL4GZtE-BNEsxcqO.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BF6-BdWE-DwavLRyr.js → LinkJETransactionPage-CJlBllrr-ETCcWTop.js} +8 -8
- package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-8KOv0WBL.js → LowBalancePopup-BEvuAR0Z-Kia1x8I_.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-CO5NrWbz.js → MagicLinkACHDetailsPage-DloX1GWg-CtJ6plz2.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-CLFCWolP.js → MagicLinkDomesticWireDetailsPage-DewjvM4v-DF6PmcFA.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-CH-1IkqQ.js → MagicLinkInternationalWireDetailsPage-CVhazlxQ-B8pL68gZ.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-dxBSlbub-ClJhOXum.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-CdDbl1jW.js → MagicLinkTitleSection-d1edBt3w-BD8o8cwj.js} +4 -4
- package/dist/assets/MailingDetailsSection-CsK09X11-D22aceHc.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js → MeetingCalenderPopup-MtSyJ1AS-Dyh9nazJ.js} +1 -1
- package/dist/assets/{Menu-frAXxk4e-CEl4TWuB.js → Menu-BV79l8xf-CtLHaQYM.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-Du0eSPRF.js → MyBankConnectionsSettingsPage-D-xDtURG-CDD3juRJ.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-Be08cRIN.js → MyPendingActivationChargeCardListPage-VEhml0PW-BbFLOnd_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BmMskLyK-BhR2LYzK.js → MyProfileSettingsPage-DPJ0fJdQ-HGd1_8K1.js} +8 -8
- package/dist/assets/{NavBarWithPicker-ByLynfu6-BwveajND.js → NavBarWithPicker-CuJe05iJ-CEMXAgd3.js} +6 -6
- package/dist/assets/{NavigationArrow-D5-YpdfE-BwY9x4L-.js → NavigationArrow-BwXNdvOg-DB9DQksO.js} +5 -5
- package/dist/assets/{NavigationDots-MA8SVlUT-xHbUxadi.js → NavigationDots-BQfoX9p0-BJMutEpY.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-DMQT2zFb.js → NewGlobalMerchantPage-IeE86L-X-BtZvif-9.js} +21 -21
- package/dist/assets/{NoDataChart-BdzVnx59-oKIht6u7.js → NoDataChart-C9yfE8vY-CyPn8PGK.js} +1 -1
- package/dist/assets/{NoDataTable-B4J5Ou18-Cw0Ivws_.js → NoDataTable-DF9QNT4a-B8P0Ebsk.js} +1 -1
- package/dist/assets/{NotFoundPage-BeAXQOme-CuhCQaCm.js → NotFoundPage-DSaizJve-BYRmXif6.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CRZRet42-ChT5Efdt.js → NotificationSettingsPage-DeAeFHmj-AgKU0y_T.js} +13 -13
- package/dist/assets/{NotificationsListConfig-CkSDaMij-BWI9bnS_.js → NotificationsListConfig-DuzDckh--DIE08d6S.js} +1 -1
- package/dist/assets/{NotificationsPage-Dqe96fU8-B4GRmHU9.js → NotificationsPage-B7ZC7ezP-CzbzVwOm.js} +32 -32
- package/dist/assets/{OpExByVendorPage-CXtkN87m-9RF5RbBE.js → OpExByVendorPage-DzODetHf-C_mWOIaM.js} +7 -7
- package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-Bv7YPFQu.js → OverlayContainerPage-GWXnlbZH-Bzp-AyLZ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DTOqkynU-DcIpR3TG.js → PandLWithForecastPage-FEi5USqF-Dh26joVS.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-JhDc6t0k.js → PaymentAccountSetupBillingAddressSection-BbL4x5pQ-D9T2pc9O.js} +11 -11
- package/dist/assets/{PeoplePage-D-j114xg-BxamB_kT.js → PeoplePage-B35T31YZ-DeAagHOG.js} +1 -1
- package/dist/assets/PortfolioAllocationFormPage-D3FP_MRr-DXcXxyUV.js +207 -0
- package/dist/assets/{PortfolioDetails-Bbfo0XDo-CpIyByD0.js → PortfolioDetails-Dtz3YEPu-CLhPVP_M.js} +29 -29
- package/dist/assets/{ProductsCarousel-COUx0Xdj-C589g0zM.js → ProductsCarousel-DIlEuuqg-DDOJtugP.js} +6 -6
- package/dist/assets/{PromoBaseCards-DG1CAZvU-DDe9HUmw.js → PromoBaseCards-DTsaas8S-vBFc1f2h.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-DLVcifji-0Jo7Zt8G.js → QBOConnectionDialog-Cvt38cmU-D0iq5FNX.js} +10 -10
- package/dist/assets/QBOSetupSection-Dijb03ZX-1HKzJLXv.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-pBLvNKjP.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-P7YlSIWb.js → ReimbursementApprovalRulesPage-BG8uMxNw-Cf6pCIHH.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-BofsP0W--3SXuCoLt.js → ReimbursementDetailPage-Cs7XeZrC-D-NQ4ltb.js} +17 -17
- package/dist/assets/ReimbursementPromoPage-CKITZNUc-2-Ea8pDZ.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-DUaBVZlT.js → ReimbursementSetUpPage-DD5P181p-C0K4OEHu.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-Bbi3QmlG.js → ReimbursementsBulkReviewDrawerPage-C0eORL7o-B8b5o1o8.js} +1 -1
- package/dist/assets/{ReloadCard-CZ1Ix5em-ntwCW2pN.js → ReloadCard-CZ4IXHy1-BJxA7jIu.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BRA3CT_O-5B_3yPmG.js → ReportTableViewSelector-Do0yQJxY-CNf50Tz7.js} +28 -28
- package/dist/assets/{ReportsPage-CauV3wnZ-JaeNla79.js → ReportsPage-BUi475EG-yOqvkhUn.js} +5 -5
- package/dist/assets/{RevenueChart-BeM_1hYw-BC40z0R8.js → RevenueChart-DPNqxQ4n-BN71k4Px.js} +12 -12
- package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-BAevb1zN.js → ReviewDetailsPage-DTCC2C0D-CbWjRazt.js} +16 -16
- package/dist/assets/{ReviewOverlay-DdWa7GLG-BGKsJw6X.js → ReviewOverlay-CPN-RHG--Bk6qHS4b.js} +15 -15
- package/dist/assets/RoleWithToolTip-Bst2IdUy-DGhNj3An.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-ttxCT2nP.js → ScheduleDetailsFixedAssetsPage-BSz5BdJ4-CLAcrRlD.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-Dj0cWygj.js → ScheduleDetailsPage-DKVlaW9e-SKWttzgw.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-6FAFWl-T.js → ScheduleSequenceTable-BhpHoReF-CFX3LJjF.js} +50 -50
- package/dist/assets/{ScreenRoutes-DjRy_uCy.js → ScreenRoutes-B4X7AN4H.js} +62 -62
- package/dist/assets/{SetUpAccountSection-Trj1x2HL-BZyG0FUR.js → SetUpAccountSection-Blh-Vipv-948X1LRE.js} +23 -23
- package/dist/assets/{SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js → SetUpDefaultSection-DsyZbNsv-D0zBNq1O.js} +8 -8
- package/dist/assets/{SignIn-Duk9PNwU-XgHu7-OU.js → SignIn-DehOoUba-DOHewgw9.js} +19 -19
- package/dist/assets/{SignInScreen-BZwFN3GK.js → SignInScreen-CkgAQ_YN.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CREdM633-X97fArWe.js → SpendManagementListViewPage-C23fDDXZ-BPWPXBga.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe--gdxlwsD.js → SpendManagementPerTabPage-Cx0sB3qO-wloMSaZU.js} +28 -28
- package/dist/assets/{SpendManagementSection-bMsztUap-ChI9xiC5.js → SpendManagementSection-DbZYpbtO-DS4pqXC3.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-25hbeX41.js → SpendMgmtSetupAccountSection-BkUIdz9m-BSOUg3BU.js} +18 -18
- package/dist/assets/{StatementItem-XLqlrHIu-VUIrNJz9.js → StatementItem-BF8L0fc_-C244j_B_.js} +5 -5
- package/dist/assets/{StatementsPage-DWiXiOFU-DpX-5t-Y.js → StatementsPage-96e3ZbSU-D7usTGed.js} +4 -4
- package/dist/assets/{StatusSwitcher-D1XZ-pbx-cB_dyto4.js → StatusSwitcher-jwpQ49F7-D9kXIopT.js} +4 -4
- package/dist/assets/{SubTabSwitcher-Bt3F7ANv-HbYWozk_.js → SubTabSwitcher-B8H6McwL-DbChhvTl.js} +7 -7
- package/dist/assets/{SummaryCard-edbbHOmb-BEN1lpgF.js → SummaryCard-Bv4ja9yJ-CEGyY5M9.js} +1 -1
- package/dist/assets/{TaskManagementPage-BhtJBdco-BwmkQiB4.js → TaskManagementPage-D7tD4WRl-CyzvnBh9.js} +26 -26
- package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-CGt3UmvC.js → TimeRangeSwitcher-Cr-ObvZ9-_GLiJwhW.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-CbEHKZvd-BCN5TvqV.js → TimeframeSwitcher-YkFxZedG-D2Jl4z2_.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-DUY2ERxI.js → TimeframeSwitcherWithToggle-4h9WX4z9-DcT4eGJv.js} +2 -2
- package/dist/assets/{TopExCard-DD9Rf9T6-CUD3JVc3.js → TopExCard-DtrsuLFD-CD31vD_h.js} +5 -5
- package/dist/assets/{TopExDetailPage-DaDuwFrj-ClnsDrKm.js → TopExDetailPage-HMRdJt_a-CqlXXHAH.js} +16 -16
- package/dist/assets/{TransactionDetailPage-0fIW4o-6-BtL9d2ga.js → TransactionDetailPage-CkWEdpTW-DkF9a8kj.js} +34 -34
- package/dist/assets/{TransactionList-CLjBadiP-DaI1JPM6.js → TransactionList-8rOZr8BD-BFZ_UeU1.js} +8 -8
- package/dist/assets/{TransactionListBig-CwBxP1xB-Clk1cQcr.js → TransactionListBig-DGx1qy2c-Cj8rID58.js} +24 -24
- package/dist/assets/{TransactionListPage-S1nTM7Yy-BXDsYhyh.js → TransactionListPage-CnbufCaM-BnCVec09.js} +3 -3
- package/dist/assets/TransactionVendorDetailPage-UpZX_EgR-BhFMpvuw.js +80 -0
- package/dist/assets/{TransferDrawerPage-BJDNWagE-ClPD7-YE.js → TransferDrawerPage-cUyg27nq-BRj8U3av.js} +26 -26
- package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-DqpiFB-5.js → TreasuryOverviewPage-DoPe6v4O-CCqccW1l.js} +31 -31
- package/dist/assets/{TreasuryPromoPage-3MwRPpCt-BfvkdVaO.js → TreasuryPromoPage-Db20FO_G-sfhrpc5P.js} +21 -21
- package/dist/assets/{TreasurySetupPage--G4JCzdh-DA6_HWAL.js → TreasurySetupPage-BoVhd65r-CwafywLn.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-BONCF7O1-B0fw544j.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-NCZ0Y4yr-1T7-yG_S.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-Bl3BH8HM.js → TreasuryTransferOrReviewPage-DAmZboLO-20agXPX1.js} +44 -44
- package/dist/assets/{TrendChart-B0CS3MXT-D4ZaQVdh.js → TrendChart-DQXhBbqy-BDomlWCz.js} +3 -3
- package/dist/assets/{TrendWithTransactions-D4OAA6yK-CZGys78m.js → TrendWithTransactions-Du-a-c_9-BQa8Yj73.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-C-92ar8F.js → UncategorizedAccountsMappingPage-mSPC4LpU-BFboIJY0.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-5LOvIFvr-BluS5BB9.js → UnitIntegrationPage-B5O9G4QH-D5ADrdli.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-DY-77k9g.js → UploadAdditionalDocumentOverlay-CnjzAGYo-LBzsfon2.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-BOl520xa-Dt6F8E1q.js → Vendor2FAPopup-CYcCB8tr-CXCRP0gB.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-B4yUV9Ye.js → VendorACHDetailsPage-C6EuQBcH-TUoKo8Rz.js} +1 -1
- package/dist/assets/{VendorDetailPage-B0GRXPKg-CA80qYWU.js → VendorDetailPage-CnSXWVCg-1hnRc8cc.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-B8yONSic.js → VendorDomesticWireDetailsPage-CVTkzHFB-BV1I21DW.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-CyZQ-IxR.js → VendorFiling1099EditablePage-TJb9mpk0-CoXUKsdg.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-Cs4x3rcX.js → VendorFirstReviewPage-gBLVMddY-CjxHy67B.js} +40 -40
- package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--Cvm17HTp.js → VendorInternationalWireDetailsPage-Bhm7j6HC-DsFGzuk8.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-Dga7zQTh.js → VendorInternationalWireSwiftDetailsPage-MgN7VFET-DYSQMIco.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DBYoP6us-DpK6bEzn.js → VendorsAccountsSection-Cn-8Yemv-Ba4x1KCB.js} +8 -8
- package/dist/assets/{WarningsDrawerPage-CZcR7kH4-CIXMQAfX.js → WarningsDrawerPage-Cc_Rty0A-C8AX9SCt.js} +22 -22
- package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--BEYCTo6P.js → ZeniAccountDetailPage-BU2TTiDP-g3X34Mnd.js} +28 -28
- package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-pA8-UWgA.js → ZeniAccountListViewPage-DbcnkYvX-BflkDx8D.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-DAWPUiSq.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-CXHTXM3S.js → ZeniAccountPromoPage-D-5ArrRO-D5w2UaAO.js} +29 -29
- package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-CYEsC3w5.js → ZeniAccountSetupPage-DXYR0Ipo-B3amHFDO.js} +5 -5
- package/dist/assets/{ZeniCopyright-Bi82glrb-BRrA0AqO.js → ZeniCopyright-DPd1ifIT-DgcZx02q.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-di46G5TN-DYM1NSO4.js +63 -0
- package/dist/assets/{analyticsHelper-pUiXW9f6.js → analyticsHelper-3e_AZjy7.js} +1 -1
- package/dist/assets/{analyticsHelper-D3DK7bgU-D0sMi45U.js → analyticsHelper-DrNmU0vn-Br27aA8M.js} +1 -1
- package/dist/assets/{chartTypes-DJY-6KK0-SGOoEyJZ.js → chartTypes-YTQv3tre-G_MCNcTV.js} +1 -1
- package/dist/assets/{commonDimensions-DRK1vfDX-BlL6juoL.js → commonDimensions-BtmBVXgZ-C8cgTp9k.js} +1 -1
- package/dist/assets/{detailCommon-6K-6m9pv-1H1N15Tv.js → detailCommon-hHyz3hj3-Ch-6FqzV.js} +9 -9
- package/dist/assets/{downloadPdf-DAA4T-qo-DGFaMd6S.js → downloadPdf-CDvgLzWC-CPQqckVY.js} +1 -1
- package/dist/assets/{index-CiKxqrxk.js → index-Dhj1_7g2.js} +4147 -4247
- package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-Bu5AjmSW.js → mapLoadingInProgressToTreeNode-BfoqmoAq-CfCX7DmO.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-CmXnWtv4.js → mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-iXp5bvzM.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr-Bo_chRJz.js → mapSpacerToTreeNode-D8o529OP-D7qZ7B73.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-BkPpGHJf.js → mapTimeframeBalancesToTreeNode-BirMnIzY-BLeanjGG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-BVi3Z0h1.js → mapTimeframeBalancesToTreeNode-NA69l84M-B1SJFT_Z.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-DwuR5tyN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-DK4OBREu.js} +1 -1
- package/dist/assets/{play-icon-DY_hSiAf-56dnsDLb.js → play-icon-DyIc5aGx-BmGFKkF-.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-CGRkqNDS.js → toCOABalancesWithID-2jQJLb8S-BXYka2hz.js} +1 -1
- package/dist/assets/{toChartData-7MYPev1U-_Gg3mLDi.js → toChartData-Dsjd8dGe-Igu99-cv.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CDhLDRLr-COVWjAtV.js → treasuryColorHelper-EG8VpBia-BOX0NA6c.js} +1 -1
- package/dist/assets/{uploadAttachment-DqCoxBNU-m18_9GhV.js → uploadAttachment-CVUM4FN--B82Va_J6.js} +24 -24
- package/dist/assets/{uploadReceipts-CU1mDxNv-D_CYTfGX.js → uploadReceipts-D80JLNY4-Cvp7FmYB.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-D6-Uk4xr-jFv1GnoI.js +0 -21
- package/dist/assets/ArAgingDetailPage-DD4M5tUJ-BlYSsYlo.js +0 -46
- package/dist/assets/ChargeCardUtils-Bivw83fy-DoKh_ipP.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-SpI62oU7-ay-ttmIe.js +0 -206
- package/dist/assets/CompleteProfile-C1PIn6EM-Ir6BV2zK.js +0 -52
- package/dist/assets/CurrencySelectField-DS-pGcuE-BGqiVYG1.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-BrVAUFsT.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-CZX95_vZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-C-BExS4G.js +0 -21
- package/dist/assets/EditPeoplePage-auUWC3gB-eVdswl0e.js +0 -55
- package/dist/assets/FeaturePreviewPage-CwGJVCMk-C88NXisE.js +0 -11
- package/dist/assets/InsightsCardStack-EzAsNm_U-DOxieK32.js +0 -79
- package/dist/assets/InvitePeoplePage-DgqE2Y-0-CrbUVUxy.js +0 -12
- package/dist/assets/LabeledAddressValueField-Cw-p18du-ncMTWBsz.js +0 -45
- package/dist/assets/LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-IHajRicG-BibYk803.js +0 -31
- package/dist/assets/MailingDetailsSection-AiehjqI1-DltTuNAp.js +0 -21
- package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-Ckb17xct.js +0 -207
- package/dist/assets/QBOSetupSection-BeRZZ-Q_-sC98B-t_.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-CDL6aFMg.js +0 -26
- package/dist/assets/ReimbursementPromoPage-CA2cUBsx-DTv3uM9b.js +0 -112
- package/dist/assets/RoleWithToolTip-BP8MTZdU-DnEd53cN.js +0 -22
- package/dist/assets/TransactionVendorDetailPage-CTTTAais-D9_4MDSM.js +0 -80
- package/dist/assets/TreasuryStatementsPage-DBykLGfz-C9eS4qdh.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-BEbCeRNe.js +0 -58
- package/dist/assets/VerifyDevice-C-ZVbaIJ-BKz0GUVP.js +0 -67
- package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-BAAXHmSZ.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-Bp4AH9yD.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bR as ze,bT as Ae,bU as Me,_ as y,aV as Re,aJ as _t,dt as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cS as b,cU as x,fS as w,a0 as Ne,cR as Le,v as U,fU as Oe,a4 as Ut,r as Ft,fV as Kt,fW as ae,aS as Vt,fX as Yt,a3 as Gt,Q as Ht,g as Qt,n as et,ao as tt,d as F,M as Xt,bp as qt,$ as Jt,gc as Zt,g8 as ei,s as c,bK as ti,co as ii}from"./index-CiKxqrxk.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-B8o-l15n-DT5xRRC2.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-Bp678glv-q5i7KaEA.js";import"./uploadReceipts-CU1mDxNv-D_CYTfGX.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:K,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[Q,X]=p.useState("approved"),P=p.useRef(null),[j,q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,J=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(X("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Se()):(X("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:J??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ui,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Qe,{windowsSize:o,children:J})}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Je,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:K,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Qe,{windowsSize:o,children:J}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:U.h6Regular.cssObject,decimalStyles:U.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Je,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:U.h6Regular.cssObject,decimalStyles:U.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(wi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Kt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const K=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:K.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{w as At,d2 as Mt,X as Rt,u as Pt,bC as Bt,C as m,M as Ze,l as ie,fI as Nt,fK as Lt,fL as Ot,j as t,bO as ke,bQ as Ae,bR as Me,_ as y,aV as Re,aJ as _t,dq as Wt,fM as Et,fX as Pe,o as a,fN as Be,cP as b,cR as w,fQ as x,a0 as Ne,cO as Le,f as K,fS as Oe,a4 as Kt,p as Ft,fT as Ut,fU as ae,aS as Vt,fV as Gt,a3 as Yt,Q as Ht,h as qt,e as et,ao as tt,g as F,m as Jt,eW as Qt,v as Xt,ga as Zt,g6 as ei,q as c,bH as ti,cl as ii}from"./index-Dhj1_7g2.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-opkVsXZH-CITMTH3B.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-B2ZOED0q-BJNMGobn.js";import"./uploadReceipts-D80JLNY4-Cvp7FmYB.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ft,{onClickAway:()=>Y(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -6,7 +6,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
6
6
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
7
7
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
8
8
|
margin-bottom: ${e=>l.activityBottomMargin.valuePx(e.windowSize)};
|
|
9
|
-
`,mi=r(
|
|
9
|
+
`,mi=r(Jt)`
|
|
10
10
|
padding: ${a.sp2} ${a.sp0} ${a.sp2} ${a.sp4};
|
|
11
11
|
background-color: ${F.alertLight};
|
|
12
12
|
color: ${F.brandColorGoldDark};
|
|
@@ -31,13 +31,13 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
31
31
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
32
32
|
`,Ee=r.div`
|
|
33
33
|
width: 100%;
|
|
34
|
-
`,
|
|
34
|
+
`,Ke=r(et)`
|
|
35
35
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
36
36
|
`,Fe=r(ii)`
|
|
37
37
|
width: ${a.sp4};
|
|
38
38
|
height: ${a.sp4};
|
|
39
39
|
color: ${F.brandColorGoldDark};
|
|
40
|
-
`,
|
|
40
|
+
`,Ue=r(et)`
|
|
41
41
|
margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
|
|
42
42
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
43
43
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
@@ -63,9 +63,9 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
63
63
|
`,bi=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
justify-content: flex-end;
|
|
66
|
-
`,
|
|
66
|
+
`,wi=r.div`
|
|
67
67
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
68
|
-
`,
|
|
68
|
+
`,xi=r(ei)`
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
color: ${e=>e.theme.colors.hero};
|
|
71
71
|
width: ${a.sp5};
|
|
@@ -147,7 +147,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
147
147
|
right: ${e=>l.actionsContainerRight.valuePx(e.windowSize)};
|
|
148
148
|
height: 100%;
|
|
149
149
|
display: flex;
|
|
150
|
-
`,re=r(
|
|
150
|
+
`,re=r(Xt)`
|
|
151
151
|
display: flex;
|
|
152
152
|
align-items: center;
|
|
153
153
|
width: 100%;
|
|
@@ -173,7 +173,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
173
173
|
justify-content: space-between;
|
|
174
174
|
position: fixed;
|
|
175
175
|
z-index: 4;
|
|
176
|
-
`,
|
|
176
|
+
`,zi=r(Vt)`
|
|
177
177
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
178
178
|
cursor: pointer;
|
|
179
179
|
width: ${a.sp4};
|
|
@@ -184,7 +184,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
184
184
|
background-color: ${e=>e.theme.colors.grey3};
|
|
185
185
|
min-height: 1px;
|
|
186
186
|
max-height: 1px;
|
|
187
|
-
`,
|
|
187
|
+
`,ki=r(Yt)`
|
|
188
188
|
cursor: pointer;
|
|
189
189
|
width: ${a.sp4};
|
|
190
190
|
height: ${a.sp4};
|
|
@@ -207,7 +207,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
207
207
|
&:hover {
|
|
208
208
|
color: ${e=>e.theme.colors.primary};
|
|
209
209
|
}
|
|
210
|
-
`,Ri=r(
|
|
210
|
+
`,Ri=r(Gt)`
|
|
211
211
|
display: flex;
|
|
212
212
|
width: ${a.sp4};
|
|
213
213
|
height: ${a.sp4};
|
|
@@ -245,12 +245,12 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
245
245
|
`}
|
|
246
246
|
height: 100vh;
|
|
247
247
|
overflow: scroll;
|
|
248
|
-
`,
|
|
248
|
+
`,Ge=r.div`
|
|
249
249
|
width: 42%;
|
|
250
250
|
`,Ni=r.div`
|
|
251
251
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
252
252
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
253
|
-
`,
|
|
253
|
+
`,Ye=r.div`
|
|
254
254
|
margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
|
|
255
255
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
256
256
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
@@ -262,7 +262,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
262
262
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
263
263
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
264
264
|
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
265
|
-
`,
|
|
265
|
+
`,qe=r(qt)`
|
|
266
266
|
flex-grow: 1;
|
|
267
267
|
${e=>`${li.formTitle.style(e.windowsSize)}`};
|
|
268
268
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -272,7 +272,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
272
272
|
flex-direction: column;
|
|
273
273
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
274
274
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
275
|
-
`,
|
|
275
|
+
`,Je=r.div`
|
|
276
276
|
padding: ${a.sp3};
|
|
277
277
|
display: flex;
|
|
278
278
|
align-items: center;
|
|
@@ -283,7 +283,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
283
283
|
color: ${e=>e.theme.colors.hero};
|
|
284
284
|
margin-bottom: ${e=>l.totalBottomMargin.valuePx(e.windowSize)};
|
|
285
285
|
justify-content: space-between;
|
|
286
|
-
`,
|
|
286
|
+
`,Qe=r(Qt)`
|
|
287
287
|
display: flex;
|
|
288
288
|
width: 176px;
|
|
289
289
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -291,7 +291,7 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
291
291
|
display: flex;
|
|
292
292
|
flex-direction: column;
|
|
293
293
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
294
|
-
`,
|
|
294
|
+
`,Xe=r.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
width: 100%;
|
|
297
297
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -309,6 +309,6 @@ import{y as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,B as Ze,l as ie,fK as Nt
|
|
|
309
309
|
display: flex;
|
|
310
310
|
flex-direction: column;
|
|
311
311
|
height: ${a.sp11};
|
|
312
|
-
`,
|
|
312
|
+
`,Ki=r.div`
|
|
313
313
|
margin-top: 78px;
|
|
314
314
|
`;export{ia as default};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as g,i as m,o as s,Z as xe,c0 as he,a6 as K,m as ue,C as ge,g as j,c2 as we,a7 as je,ap as be,q as fe}from"./index-Dhj1_7g2.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-MtSyJ1AS-Dyh9nazJ.js";import{f as ke,C as N}from"./play-icon-DyIc5aGx-BmGFKkF-.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const X="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: ${i=>i.theme.colors.grey4};
|
|
7
|
+
`,ve=t.div`
|
|
8
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
|
|
9
|
+
text-align: center;
|
|
10
|
+
`,Ce=t(he)`
|
|
11
|
+
max-width: 648px;
|
|
12
|
+
margin: auto;
|
|
13
|
+
padding: ${s.sp7} ${s.sp0};
|
|
14
|
+
color: ${i=>i.theme.colors.primary};
|
|
15
|
+
`,Te=t(xe)`
|
|
16
|
+
max-width: 600px;
|
|
17
|
+
margin: auto;
|
|
18
|
+
padding: ${s.sp5} ${s.sp0};
|
|
19
|
+
color: ${i=>i.theme.colors.primary};
|
|
20
|
+
`,G=t.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
margin-bottom: ${i=>Se.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
+
`,Pe=t.div``,Z=t.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
`,w=t.img``,O=t.div`
|
|
32
|
+
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
`,Re=$e`
|
|
36
|
+
0% {
|
|
37
|
+
transform: scale(100%)
|
|
38
|
+
}
|
|
39
|
+
25% {
|
|
40
|
+
transform: scale(105%)
|
|
41
|
+
}
|
|
42
|
+
50%{
|
|
43
|
+
transform: scale(110%)
|
|
44
|
+
}
|
|
45
|
+
75%{
|
|
46
|
+
transform: scale(105%)
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
transform: scale(100%)
|
|
50
|
+
}
|
|
51
|
+
`,H=t.div`
|
|
52
|
+
width: ${s.sp9};
|
|
53
|
+
height: ${s.sp9};
|
|
54
|
+
background: ${i=>i.theme.colors.playButtonBackGroundColor};
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
position: absolute;
|
|
60
|
+
color: ${j.backgroundThemeLight};
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
animation: ${Re} 1s ease infinite;
|
|
63
|
+
`,J=t.div`
|
|
64
|
+
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
max-width: 712px;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-content: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
`,Q=t.div`
|
|
72
|
+
margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
|
|
73
|
+
margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
|
|
74
|
+
background: ${i=>i.theme.colors.grey3};
|
|
75
|
+
border-radius: 12px;
|
|
76
|
+
border: ${i=>`1px solid ${i.theme.colors.grey3}`};
|
|
77
|
+
padding: 15px;
|
|
78
|
+
`,d=t.div`
|
|
79
|
+
border-radius: ${s.sp12};
|
|
80
|
+
border: ${i=>`1px solid ${i.theme.colors.grey2}`};
|
|
81
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
|
|
82
|
+
background: ${i=>i.theme.colors.grey5};
|
|
83
|
+
position: relative;
|
|
84
|
+
margin-bottom: ${s.sp3};
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
text-align: start;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
`,$=t(be)`
|
|
90
|
+
color: ${i=>i.theme.colors.champion};
|
|
91
|
+
`,y=t(je)`
|
|
92
|
+
color: ${i=>i.theme.colors.champion};
|
|
93
|
+
`,k=t(K)`
|
|
94
|
+
color: ${i=>i.theme.colors.champion};
|
|
95
|
+
`,S=t(we)`
|
|
96
|
+
color: ${i=>i.theme.colors.champion};
|
|
97
|
+
`,p=t.div``,x=t.div`
|
|
98
|
+
padding-left: ${s.sp3};
|
|
99
|
+
`,E=t(K)`
|
|
100
|
+
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
101
|
+
color: ${i=>i.theme.colors.grey1};
|
|
102
|
+
`,W=t(C)`
|
|
103
|
+
color: ${j.graphColor16Dark};
|
|
104
|
+
`,Y=t(C)`
|
|
105
|
+
color: ${j.graphColor09Dark};
|
|
106
|
+
`,_=t(C)`
|
|
107
|
+
color: ${j.success};
|
|
108
|
+
`,V=t(ue)`
|
|
109
|
+
margin: ${s.sp3} auto;
|
|
110
|
+
max-width: 772px;
|
|
111
|
+
color: ${i=>i.theme.colors.hero};
|
|
112
|
+
`,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(J,{windowSize:o,children:[e.jsx(H,{onClick:i,children:e.jsx(N,{})}),e.jsx(Q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(W,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Y,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(W,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Y,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(J,{windowSize:o,children:[e.jsx(H,{onClick:i,children:e.jsx(N,{})}),e.jsx(Q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},qe=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(V,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(V,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{qe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,X as Ve,a2 as N,a as qe,
|
|
1
|
+
import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,cI as Ze,g as K,C as r,aV as Je,c as Qe,F as Xe,c_ as Ye,aR as et,c$ as tt,a4 as it,o as a,q as n,bH as nt,cg as ot,co as at,eY as ve,eZ as ke,fH as lt,K as rt,_ as $e,Q as Pe,bc as st,v as ct,aO as dt}from"./index-Dhj1_7g2.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{D as ut}from"./HelpButton-BdhMFvtG-BQoUMZgM.js";import{K as je}from"./SetUpDefaultSection-DsyZbNsv-D0zBNq1O.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BkUIdz9m-BSOUg3BU.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CnjzAGYo-LBzsfon2.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-MtSyJ1AS-Dyh9nazJ.js";import"./ChargeCardUtils-DC2v2EHU-BFBTkwUP.js";import"./CreditCardPaymentPlgSection-CAsn4Ae6-BjGYp9i3.js";import"./ChaseOverlay-B-Sx71yo-C-AskbE-.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Q}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(J,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -13,7 +13,7 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c6 as Ge,B as Le,l as Je,a8 as be,j as t,
|
|
|
13
13
|
display: flex;
|
|
14
14
|
`,Ct=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
|
-
color: ${e=>e.isError===!0?
|
|
16
|
+
color: ${e=>e.isError===!0?K.important:e.theme.colors.primary};
|
|
17
17
|
`,St=i(ct)`
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
@@ -33,7 +33,7 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c6 as Ge,B as Le,l as Je,a8 as be,j as t,
|
|
|
33
33
|
border-radius: ${a.sp11};
|
|
34
34
|
width: fit-content;
|
|
35
35
|
height: fit-content;
|
|
36
|
-
color: ${e=>e.isDarkMode?
|
|
36
|
+
color: ${e=>e.isDarkMode?K.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
|
|
37
37
|
max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
38
38
|
max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
39
39
|
margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
@@ -82,19 +82,19 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c6 as Ge,B as Le,l as Je,a8 as be,j as t,
|
|
|
82
82
|
height: ${a.sp6};
|
|
83
83
|
width: 100%;
|
|
84
84
|
position: relative;
|
|
85
|
-
`,
|
|
85
|
+
`,Tt=i.label`
|
|
86
86
|
display: flex;
|
|
87
87
|
padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
|
|
88
|
-
color: ${e=>e.hasError===!0?
|
|
88
|
+
color: ${e=>e.hasError===!0?K.important:e.additionalInfoTextColor??e.theme.colors.hero};
|
|
89
89
|
${e=>`${ge.infoLabel.style(e.size)}`};
|
|
90
90
|
margin-top: ${a.sp1};
|
|
91
|
-
`,
|
|
91
|
+
`,It=i.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
position: absolute;
|
|
94
94
|
top: 50%;
|
|
95
95
|
transform: translateY(-50%);
|
|
96
96
|
right: ${a.sp3};
|
|
97
|
-
`,
|
|
97
|
+
`,Lt=i(dt)`
|
|
98
98
|
width: ${a.sp3};
|
|
99
99
|
height: ${a.sp3};
|
|
100
100
|
cursor: ${e=>e.isDisabled==null?"pointer":"default"};
|
|
@@ -103,7 +103,7 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c6 as Ge,B as Le,l as Je,a8 as be,j as t,
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:
|
|
106
|
+
`,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Ce=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),He=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=R[G];C(w)}};o.useEffect(()=>{const P=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ke.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?I(!0):Q?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Je,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{M as N,j as b,bO as z,bQ as V,bR as W,jl as q,ab as G,l as Q}from"./index-Dhj1_7g2.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-CPN-RHG--Bk6qHS4b.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(z,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{u as h,j as r,
|
|
1
|
+
import{u as h,j as r,W as a,_ as m,ai as j,M as C,a5 as l,aY as x,v as g,o as c,aj as f}from"./index-Dhj1_7g2.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function
|
|
3
|
+
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
|
|
5
|
+
`,v=s.div`
|
|
6
6
|
height: ${c.sp10};
|
|
7
7
|
width: ${c.sp10};
|
|
8
8
|
background: ${e=>e.theme.colors.background};
|
|
@@ -21,6 +21,6 @@ import{u as h,j as r,Z as a,_ as m,ai as j,B as C,a5 as l,aY as x,$ as g,o as c,
|
|
|
21
21
|
}
|
|
22
22
|
`,b=s(g)`
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
|
-
|
|
24
|
+
`,$=s(g)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,L=s(y)``;function
|
|
26
|
+
`,L=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs(b,{children:[i??j(o)," "]}),r.jsx(v,{children:r.jsx(L,{})}),r.jsx($,{children:C.getLocalizedStrings().card.failedText})]})})}export{T as E,M as I,S as T};
|