@zeniai/web-cockpit-ui 1.14.9-qa → 1.14.10-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-fN9d1vam-D9VxrmPm.js +21 -0
- package/dist/assets/{AIPerformancePage-pQP8EI_S-_s3zsI3R.js → AIPerformancePage-FvDkFQx9-CQyeQIni.js} +49 -49
- package/dist/assets/{AccountInfoPage-DxAa9GD7-DQEyQtK2.js → AccountInfoPage-RM6DvvVS-DCfKlDtS.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-tNTpX5pA-G_drZK6E.js → AccountInfoPageContent-DEG1tMaK-DT5QC51v.js} +17 -17
- package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-UsFY-UZk.js → AccountReconDetailsDrawerPage-CiegEtwy-CoXexcHE.js} +13 -13
- package/dist/assets/{AccountRow-BpBK8mVs-CH_oVWO9.js → AccountRow-DDUdlArT-BoTNNfQY.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-CQcxXnBQ.js → AccountsPromoCardStack-Q7ppOy47-Dg9H-xyI.js} +35 -35
- package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-s44WShyg.js → AddAddressForCardDrawer-C2us9OcV-BBVsfjfG.js} +2 -2
- package/dist/assets/{AddToWalletPage-Dsw1GIbh-dkDhEWMM.js → AddToWalletPage-B75ejfsy-Dz6uPeGO.js} +26 -26
- package/dist/assets/{AgingReportsPage-COC3iACh-CQTcd55z.js → AgingReportsPage-mEhdjkho-CIVInWQJ.js} +8 -8
- package/dist/assets/{AllUserItems-DKoDASKq-D9OsZYXc.js → AllUserItems-o4xGLdQM-o69fCFf4.js} +10 -10
- package/dist/assets/{ApAgingDetailPage-BKAJMyRm-8rJSfYqr.js → ApAgingDetailPage-C0Y88nfk-C5r_ppvI.js} +2 -2
- package/dist/assets/{AppBasePage-6fgXwSBv-BU75fZMe.js → AppBasePage-DKAxmkIN-2kh6tXJn.js} +6 -6
- package/dist/assets/{AppDrawerContent-DnYw60Xv-BYIZi-GQ.js → AppDrawerContent-DLn3w253-kKIdFnR8.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-CpEnMum9.js → ApprovalRulesSettingsPage-vBjp3xy--COVrz9he.js} +5 -5
- package/dist/assets/{ArAgingChart-CNghm3pm-BWPEjjZL.js → ArAgingChart-C3yYcTfo-CLHMQYqc.js} +6 -6
- package/dist/assets/ArAgingDetailPage-DlmXkANV-D8C6NFL-.js +46 -0
- package/dist/assets/{AttachmentView-Bp678glv-DplJLpKV.js → AttachmentView-B4hoO1b8-sqsUZh4A.js} +7 -7
- package/dist/assets/{BankAccountSection-DCHOrv1O-tbPEQ2KM.js → BankAccountSection-CdIpgwVZ-BnTYSS8m.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-CT6FFJx9.js → BankAccountWarningSection-COSdSiAy-BStyOpBA.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Co8la074.js → BankConnectionsSettingsPage-hNpSoqlw-B7Eg16k_.js} +11 -11
- package/dist/assets/{BillDetailPage-D5FyJKQZ-DQLoKFcH.js → BillDetailPage-CJX3QbcW-DVarBugB.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-BWE5dOze.js → BillPayApprovalRuleDetailPage-CUxCgQSj-B-5dPRub.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-7TFrCAGZ.js → BillPayApprovalRulesPage-BAfgqIvl-BhkCJ5l9.js} +10 -10
- package/dist/assets/{BillPayPromoPage-BhbcKNjD-D-OruUi3.js → BillPayPromoPage-D25teFTJ-C_i37lSM.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-DFkYsW2C-DJNYl3eq.js → BillPaySetUpPage-D9ovPwFv-C1hr9AdN.js} +2 -2
- package/dist/assets/{BillingSettingsPage-DQ-GDRoK-BcczfrvH.js → BillingSettingsPage-DBEk-yIg-dgxRKdDq.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-BZKU74HU.js → BillsBulkReviewDrawerPage-CZUNCQ7j-DcLIZ8Sa.js} +1 -1
- package/dist/assets/{BoxItem-a04JWA45-CthCfWYv.js → BoxItem-BtIxBKUQ-CamgFDpr.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-CCJ-3Uzg.js → BusinessVerificationPage-CXeA666i-DDQ4xPVn.js} +12 -12
- package/dist/assets/{CardNumberSubText-B5ejHnml-lgXbHN3q.js → CardNumberSubText-Bakmjdzp-DZ-cA7Dx.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DX_XsNhS-BdIyjObs.js → CashbackDetailPage-yC6NiWvx-BPO3MKaP.js} +25 -25
- package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-DDQWLOEC.js → ChargeCardDetailPage-DD0_CjGJ-Bk6iyPjP.js} +57 -57
- package/dist/assets/{ChargeCardListPage-CglfbPqr-CA5oo4lh.js → ChargeCardListPage-C_Wxtym7-C8RYPQLB.js} +20 -20
- package/dist/assets/{ChargeCardListTable-BxAeA97m-Bubn4K-P.js → ChargeCardListTable-tXjQM1HV-DZXGqDZ-.js} +41 -41
- package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-tEUMLrxo.js → ChargeCardPromoPage-BAovEsQH-BcTKnJLX.js} +31 -31
- package/dist/assets/{ChargeCardSetupPage-Bq953HsV-DVD_WfYM.js → ChargeCardSetupPage-BFjo3XpM-Ciiz1tVr.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-CLyD2f4E.js → ChargeCardStatementsPage-CvC1casY-DgRmilNR.js} +10 -10
- package/dist/assets/ChargeCardUtils-EeXYTubM-BzIGoEJ7.js +1 -0
- package/dist/assets/{ChaseOverlay-LcVAgdoT-CxUFiFZn.js → ChaseOverlay-DONL-nDR-1303yNRD.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-Da9ApPLD-Cr45_f1h.js +206 -0
- package/dist/assets/{CollapsableReportTable-CKmPwC_x-Br5zi5sk.js → CollapsableReportTable-C2cQTlA6-CwmB1eX2.js} +57 -57
- package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-CweBe6Rv.js → CompanyOfficerDetailsSection-ChVkSOtw-Bkqbsw1H.js} +28 -28
- package/dist/assets/{CompanyPassportCard-ElwK6uOD-BIcN0JjM.js → CompanyPassportCard-CLWfLYZT-dc2pMqRv.js} +8 -8
- package/dist/assets/{CompanyPassportPage-B6mGjsJZ-BpEhxrAK.js → CompanyPassportPage-B6_oWdN9-BkWGrSDb.js} +7 -7
- package/dist/assets/CompleteProfile-D_6UvHbF-Buy6AAC6.js +36 -0
- package/dist/assets/{ConfettiBurst-CjhkW_Be-C3dNmHxK.js → ConfettiBurst-CfEQKUn_-xwBqwegz.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-C_685l3E.js → CreateOrEditVendorPage-7mYLNzcH-FyLSW-Ll.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-Jfi2pMUE.js → CreditCardPaymentDrawerPage-DM0awVZu-CMqADZ5j.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-DqrJBSz6.js → CreditCardPaymentPlgSection-C3pH8AzC-DAPxFM0W.js} +12 -12
- package/dist/assets/CurrencySelectField-DuZRNdJ7-Cv8XSbJt.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-SDmojwaB.js → CustomerOnboardingActivationPage-DfQCMxvl-DRp6yq3v.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BuVNUdQ_-Prx4gAY_.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-DmIvY8oj.js → CustomerOnboardingDetailPageSkeleton-m2chMg_F-DuDfcFEG.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-oA8YWJC6.js → CustomerOnboardingNoStepsPage-C4_D_p4k-Dc8uofQ5.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-D8NjvNws.js → CustomerOnboardingPage-XbpuMewL-BPKj5uUR.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-DO2ZOw-9.js → CustomerOnboardingProductSuitePage-DD3ipEqZ-yQHQ-Cas.js} +8 -8
- package/dist/assets/{Dashboard-CQoNm84Z-DgYDLI9w.js → Dashboard-zs5L4G5s-1ug-HoiT.js} +1 -1
- package/dist/assets/{DashboardReportPage-D4BoWobJ-CFBTUY9d.js → DashboardReportPage-BRkeSLqR-DB1CNvyz.js} +13 -13
- package/dist/assets/{DepositAccTransactionItem-C6_OrohL-BGie0JpH.js → DepositAccTransactionItem-DdxEaiop-XRO0k2Pe.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-C-4zU6U_-BMel7elx.js +66 -0
- package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-Cs0ufG6M.js → DocumentSecurityBanner-BmCXnsqt-DgqTK1nO.js} +2 -2
- package/dist/assets/DomesticWireDetailsPage-D3nSUYmr-C8Q-qXAx.js +21 -0
- package/dist/assets/{DownloadOverlay-BoIyiJ9R-DmB8Yj8f.js → DownloadOverlay-D18IYrMS-Ch_NWNsV.js} +25 -25
- package/dist/assets/{DrawerPage-C_kxrXIc-EO54vroQ.js → DrawerPage-EcuR8TES-h-hhHnVA.js} +5 -5
- package/dist/assets/EditPeoplePage-66twBgmc-CNjYkPup.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-DFdYGBde.js → EditReimbursementDetailPage-z7CJ9Vy4-BOvbsxDO.js} +68 -68
- package/dist/assets/{EntityDetailPage-Cqkhzu9O-BvgbxI1O.js → EntityDetailPage-OvuxHiOz-DVhrmWOx.js} +3 -3
- package/dist/assets/{EntitySummarySection-Dqgxknt6-BmPNntbK.js → EntitySummarySection-D5L6gsZR-DNZQ4J50.js} +3 -3
- package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-wGjO8BAG.js → ExpenseAutomationOverviewPage-CM7a5B8w-D-61w10l.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-DQoBcXAL.js → ExpenseAutomationPage-C0HfVK2q-BsQDQgZX.js} +84 -84
- package/dist/assets/{ExpressPayPage-DBWJERD9-30Fdrn3c.js → ExpressPayPage-CeHVuoHN-CZGa7NcH.js} +12 -12
- package/dist/assets/FeaturePreviewPage-FQsE4Qv8-C1JsnzwT.js +11 -0
- package/dist/assets/{FollowStepsSection-BrJecw-e-DzE6Hs1H.js → FollowStepsSection-BazOZlaE-C8JsCCQq.js} +13 -13
- package/dist/assets/{GlobalReviewListPage-Duoi9mD_-phlaJb_v.js → GlobalReviewListPage-B7OzhHDj-DwKKMm7I.js} +8 -8
- package/dist/assets/{HelpButton-C1djo0zO-DvpvoGEo.js → HelpButton-DY1MpMsB-NSbUCSI-.js} +5 -5
- package/dist/assets/{InformationCardStack-BE5eaq-x-DF6n3xvq.js → InformationCardStack-DTZ5U5HN-D5gVpmcs.js} +5 -5
- package/dist/assets/InsightsCardStack-D0wOSPaM-B1061MVO.js +79 -0
- package/dist/assets/{InsightsSection-nzKuS0T9-DDuE3v_a.js → InsightsSection-CLnISnUP-Dxdaecz_.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-DIcKRGOh.js → IntegrationsSettingsPage-_Z5zEjw7-C9k0uLNg.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-Cwrsqmx4.js → InternationalWireSwiftDetailsPage-Dz-fxrmb-BhMUVBgN.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-B221Ct1T.js → InternationalWireVerificationPage-ncEPxfAh-BrDSeTws.js} +17 -17
- package/dist/assets/{InviteFormPage-BNdBP-Mm-CjHF0nLI.js → InviteFormPage-DWlnBCXL-BJ0d3_Rt.js} +25 -25
- package/dist/assets/{InvitePageListView-ChzmK7Rt-DRpj3HnO.js → InvitePageListView-Cmi49FoL-Dmiagjbx.js} +51 -51
- package/dist/assets/InvitePeoplePage-CL18FIeI-BCzQDGtZ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-B8o-l15n-BS-TIgsz.js → InvoiceUploadSection-BYgUZr3e-ppSv-eTX.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-BW0cXQqh-B35Dxtek.js → IssueChargeCardPage-Bmoi1yP8-DoxXOVnL.js} +27 -27
- package/dist/assets/{LabeledAddressValue-BioQUVCV-C1_whpY6.js → LabeledAddressValue-OqCEk1VW-BBNkXZso.js} +1 -1
- package/dist/assets/LabeledAddressValueField-fBxHfsjV-8EnRLxw9.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-DTlw8lP1.js → LabeledControlledCheckBoxField-BZrJseng-75nT77St.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-D8LCX05l.js → LabeledCreatableSingleSelectField-BjjLKIq--BW2m9V-K.js} +3 -3
- package/dist/assets/LabeledDocumentField-54KXTRM_-BUNcwMS4.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-D-OhDhjz.js → LabeledDropDownFormattedTextField-1sZGnKTM-CseYE0ZU.js} +7 -7
- package/dist/assets/{LabeledText-QrjXGWwJ-BNY-0VFx.js → LabeledText-DZTriBfN-ldMke-_p.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-bFvTEIeu.js → LabeledUserSingleSelectWithSubtitlesField-BNPUM7x0-CXhgYAtn.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-DhZj6Fmr.js → LabeledZeniRolesDropDownField-Ce4KKZiS-CqBBOe72.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BF6-BdWE-CCXto4UD.js → LinkJETransactionPage-DoaNWTmr-ZNMHH0Md.js} +8 -8
- package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-BX_yLOEX.js → LowBalancePopup-BOTHNsR0-CltUTAj3.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-BN328Iq7.js → MagicLinkACHDetailsPage-CD76NDYI-C-uF2GNj.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-agu708vC.js → MagicLinkDomesticWireDetailsPage-BsikAXMr-Cs00xKGu.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-Cxv5IRlY.js → MagicLinkInternationalWireDetailsPage-zu3TnX0Y-RjlupNMa.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-BICciyLs-DDU2uulJ.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-SE5XIg5Z.js → MagicLinkTitleSection-CD_v3J8N-rcdTFeK_.js} +4 -4
- package/dist/assets/MailingDetailsSection-Cce0Hg2V-BFRjUzGv.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-COpKcBhx-C3Igd-V1.js → MeetingCalenderPopup-gItmg01b-KkgdFDbQ.js} +1 -1
- package/dist/assets/{Menu-frAXxk4e-BVrtNaKP.js → Menu-vFgR8B3A-BT6OAOpY.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-Cbppw-h4.js → MyBankConnectionsSettingsPage-NhLBy2nV-DGdV60Dz.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-DkXTKFhY.js → MyPendingActivationChargeCardListPage-CNb4v74Q-DPjefQOJ.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BmMskLyK-CL91XtiU.js → MyProfileSettingsPage-CXcH5h3K-lboFLZ0B.js} +8 -8
- package/dist/assets/{NavBarWithPicker-ByLynfu6-DpuPwMmt.js → NavBarWithPicker-B1g4GR8h-BTQ7xdwc.js} +6 -6
- package/dist/assets/{NavigationArrow-D5-YpdfE-CYFnaZ_n.js → NavigationArrow-CKb8oJym-C00B8os7.js} +5 -5
- package/dist/assets/{NavigationDots-MA8SVlUT-DjvrP-SY.js → NavigationDots-Bgh-o0zo-CBPdxtJi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-DjaSItuV.js → NewGlobalMerchantPage-CTavGrPU-uVUTkxSd.js} +21 -21
- package/dist/assets/{NoDataChart-BdzVnx59-Dcb8iagX.js → NoDataChart-CtPlddxs-CnfQyDtm.js} +1 -1
- package/dist/assets/{NoDataTable-B4J5Ou18-Bir_Iwar.js → NoDataTable-Dibdh8Pj-CuACZUfn.js} +1 -1
- package/dist/assets/{NotFoundPage-BeAXQOme-DgzCQySk.js → NotFoundPage-yGvtm3rH-CMpdi5kB.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CRZRet42-BRxa42Rm.js → NotificationSettingsPage-DOmx9OZh-bY0ARSm6.js} +13 -13
- package/dist/assets/{NotificationsListConfig-CkSDaMij-BGruklEe.js → NotificationsListConfig-Bz1-bZtB-DFsX0Euc.js} +1 -1
- package/dist/assets/{NotificationsPage-Dqe96fU8-Md1lm49g.js → NotificationsPage-CQ_3esFr-B-IG9JXC.js} +32 -32
- package/dist/assets/{OpExByVendorPage-CXtkN87m-jdrxiMx1.js → OpExByVendorPage-BjqGlQrk-B7srvp-L.js} +7 -7
- package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-2KGo5iDU.js → OverlayContainerPage-GWXnlbZH-XeZYd_0X.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DTOqkynU-B4brEIVC.js → PandLWithForecastPage-juNL-o7I-BSR50hku.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-BRSh44ZN.js → PaymentAccountSetupBillingAddressSection-BxQrIZmE-B9AcRUzZ.js} +11 -11
- package/dist/assets/{PeoplePage-D-j114xg-CpebkT_B.js → PeoplePage-BfwpGELm-BdY1PML2.js} +1 -1
- package/dist/assets/PortfolioAllocationFormPage-CmUaCrrW-CsnNWvEp.js +207 -0
- package/dist/assets/{PortfolioDetails-Bbfo0XDo-DZIGyI3q.js → PortfolioDetails-BaLVprV9-DhjQAugK.js} +29 -29
- package/dist/assets/{ProductsCarousel-COUx0Xdj-CY1Sd1BH.js → ProductsCarousel-DSwEQiRo-BrOnjV8c.js} +6 -6
- package/dist/assets/{PromoBaseCards-DG1CAZvU-xf-pcVB-.js → PromoBaseCards-CDbwBfld-bqaRHMGs.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-DLVcifji-KDuq_-AV.js → QBOConnectionDialog-BKEVg_Tw-Lgjz3-p9.js} +10 -10
- package/dist/assets/QBOSetupSection-CAtx-T_9-CoNYf7oJ.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D0YkHEiY-DPuD12sR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-YuPFBZZ_.js → ReimbursementApprovalRulesPage-BaI1dJWO-DsmqNYvE.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-BofsP0W--BITd3_Z0.js → ReimbursementDetailPage-CDoMkRc0-De12HsoG.js} +17 -17
- package/dist/assets/ReimbursementPromoPage-DpBahcUT-C8tn75CT.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-xpQYGvkM.js → ReimbursementSetUpPage-C6ZSl21b-B8WJwXSb.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-BY7o-nrI.js → ReimbursementsBulkReviewDrawerPage-DRm_RSSq-DeQfZa5e.js} +1 -1
- package/dist/assets/{ReloadCard-CZ1Ix5em-CIGCvyb9.js → ReloadCard-B1X0QtRR-DKi-eMjg.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BRA3CT_O-W8MrucQl.js → ReportTableViewSelector-2gwwu23O-Dffc4dfy.js} +28 -28
- package/dist/assets/{ReportsPage-CauV3wnZ-DhsHNP71.js → ReportsPage-C4ry6Xjl-DZBMXAeC.js} +5 -5
- package/dist/assets/{RevenueChart-BeM_1hYw-D2KvIvPV.js → RevenueChart--mJZgy8C-DNQW4B8O.js} +12 -12
- package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-Dr3gT8lu.js → ReviewDetailsPage-Dg_NdNMf-CW4kKG-B.js} +16 -16
- package/dist/assets/{ReviewOverlay-DdWa7GLG-BrnOlsr1.js → ReviewOverlay-C-9oLsRU-DbGH6sMH.js} +15 -15
- package/dist/assets/RoleWithToolTip-BPrl2KpS-R9NA17Ei.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-27m3v8tn.js → ScheduleDetailsFixedAssetsPage-DICnGQP9-C5eFpk12.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-Cko_Bdh0.js → ScheduleDetailsPage-BvkYaxXa-mYyDbOuo.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-Cct6COyG.js → ScheduleSequenceTable-Cv62faKa-MDeuMroB.js} +50 -50
- package/dist/assets/{ScreenRoutes-CvUDPDyW.js → ScreenRoutes-DAKdy7NU.js} +35 -35
- package/dist/assets/{SetUpAccountSection-Trj1x2HL-mb3yImZ6.js → SetUpAccountSection-DwkklztZ-BQ9QQ3eR.js} +23 -23
- package/dist/assets/{SetUpDefaultSection-BQzNGjO7-Fxtz2ozg.js → SetUpDefaultSection-Chh_3U0h-B9vxnPiJ.js} +8 -8
- package/dist/assets/{SignIn-Duk9PNwU-DFUIhBT3.js → SignIn-CoM3gLF4-C_1egKDj.js} +12 -12
- package/dist/assets/{SignInScreen-BaYfF0EF.js → SignInScreen-Dg1avkN7.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CREdM633-BPnGO6Pg.js → SpendManagementListViewPage-rf8IhIOU-BYmCKDvl.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe-NSUQmYVp.js → SpendManagementPerTabPage-KLrMZOg6-DIDyAEyj.js} +28 -28
- package/dist/assets/{SpendManagementSection-bMsztUap-Bl_PJtV6.js → SpendManagementSection-CbbqZI-h-qBmB9JQ-.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-CqmCQQeu.js → SpendMgmtSetupAccountSection-BfwEbse9-BEabiv-B.js} +18 -18
- package/dist/assets/{StatementItem-XLqlrHIu-yWvOcemX.js → StatementItem-DEvMOqc4-BaviqNa0.js} +5 -5
- package/dist/assets/{StatementsPage-DWiXiOFU-BSaqqYn6.js → StatementsPage-DNsm7q52-DqcqAutx.js} +4 -4
- package/dist/assets/{StatusSwitcher-D1XZ-pbx-Co1gh17k.js → StatusSwitcher-BdfUDJ2e-C1tw21zv.js} +4 -4
- package/dist/assets/{SubTabSwitcher-Bt3F7ANv-CXuMiM6j.js → SubTabSwitcher-o0RxZAky-Ldu_qmLh.js} +7 -7
- package/dist/assets/{SummaryCard-edbbHOmb-For-9jwt.js → SummaryCard-DQ4ZyfBH-BzHYmkIn.js} +1 -1
- package/dist/assets/{TaskManagementPage-BhtJBdco-K4tnOsNB.js → TaskManagementPage-BVNWrtPC-CQba95zF.js} +26 -26
- package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-UIfxNa_m.js → TimeRangeSwitcher-CD16lox0-CX3eDF4E.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-CbEHKZvd-tt-KvX0B.js → TimeframeSwitcher-C7i0JFHk-DTwRMIeq.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-Dun8neFn.js → TimeframeSwitcherWithToggle-D35sc3g8-DFK7G4Fb.js} +2 -2
- package/dist/assets/{TopExCard-DD9Rf9T6-DnaHVccx.js → TopExCard-bgf-w40u-C_uNYW_E.js} +5 -5
- package/dist/assets/{TopExDetailPage-DaDuwFrj-CH9pN0VD.js → TopExDetailPage-CUiZ2o0r-CyBMg4gJ.js} +16 -16
- package/dist/assets/{TransactionDetailPage-0fIW4o-6-Bz5BXA4d.js → TransactionDetailPage-C50JQjnc-CWzIU1Zc.js} +34 -34
- package/dist/assets/{TransactionList-CLjBadiP-BsFmQ32L.js → TransactionList-nnfPsJZc-BAJrCGK5.js} +8 -8
- package/dist/assets/{TransactionListBig-CwBxP1xB-GCeT7Fhg.js → TransactionListBig-BNanyUhE-aaPtnDIE.js} +24 -24
- package/dist/assets/{TransactionListPage-S1nTM7Yy-B7qsbrmY.js → TransactionListPage-kQOGZBz8-D3fDxnFY.js} +3 -3
- package/dist/assets/TransactionVendorDetailPage-D2OO73Ia-BHB9doPf.js +80 -0
- package/dist/assets/{TransferDrawerPage-BJDNWagE-BIlQVD_e.js → TransferDrawerPage-NOLm9zmx-SsZZDdD7.js} +26 -26
- package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-BnhmZR6N.js → TreasuryOverviewPage-Doo6fmEl-EyBf70hX.js} +31 -31
- package/dist/assets/{TreasuryPromoPage-3MwRPpCt-DhrZr8z8.js → TreasuryPromoPage-CyowAl6A-D4htfcTS.js} +21 -21
- package/dist/assets/{TreasurySetupPage--G4JCzdh-BxyObKos.js → TreasurySetupPage-DZdd0DpR-CKcdkLNP.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-Dfw94h0a-BmcNhHrJ.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D83IlTZG-BaYwb9KX.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-BqK_l_K5.js → TreasuryTransferOrReviewPage-BuL0YxIE-BtNOqi4P.js} +44 -44
- package/dist/assets/{TrendChart-B0CS3MXT-CbB-GoT1.js → TrendChart-C5-sKlos-B0Ahph3o.js} +3 -3
- package/dist/assets/{TrendWithTransactions-D4OAA6yK-BElfkr13.js → TrendWithTransactions-CZx5tt-z-BQaGMOsk.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-DoHvxigx.js → UncategorizedAccountsMappingPage-BVma5qcZ-CCA2MX8b.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-5LOvIFvr-CqyusfTc.js → UnitIntegrationPage-ZRhbEzdQ-B7INC4Jq.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-BKUosbWd.js → UploadAdditionalDocumentOverlay-BpJ_tRy_-Ir3yYWfE.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-BOl520xa-ppAif-Ti.js → Vendor2FAPopup-CQbY2KbX-DZR9-buS.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-CQ6fw4At.js → VendorACHDetailsPage-DcDtOkiR-BY6IlGZW.js} +1 -1
- package/dist/assets/{VendorDetailPage-B0GRXPKg-DpVGPOUS.js → VendorDetailPage-CHhJsnOa-Pomjlqys.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-nN5_uUst.js → VendorDomesticWireDetailsPage-BIwYrLOl-C5tQSQbr.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-DmPeRpgN.js → VendorFiling1099EditablePage-gnNbtQoj-C_iovGiO.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-rZCll1Gn.js → VendorFirstReviewPage-Bj3eqx7P-DMs77Fme.js} +40 -40
- package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--DMdoShD0.js → VendorInternationalWireDetailsPage-B_jwfV7H-B6LDXGfj.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-AjTitKPs.js → VendorInternationalWireSwiftDetailsPage-CvIV-HFr-xCgovJeU.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DBYoP6us-BNxmqurZ.js → VendorsAccountsSection-B2hWDuz0-Cu-WCSfr.js} +8 -8
- package/dist/assets/{WarningsDrawerPage-CZcR7kH4-CU5nIW1x.js → WarningsDrawerPage-BBC1azy1-5BwmdYFI.js} +22 -22
- package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--Cb5OckXw.js → ZeniAccountDetailPage-mfrQO3zP-mQs6-xzM.js} +28 -28
- package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-DlLHoACL.js → ZeniAccountListViewPage-CCurA7tm-2kl9IV1R.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-CV5znR_M-xk3MObci.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-CLAHDnt-.js → ZeniAccountPromoPage-DgGD7ggF-D6I3HQlw.js} +29 -29
- package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-BSP75bb0.js → ZeniAccountSetupPage-D4z2k7G7-B-TjplBp.js} +5 -5
- package/dist/assets/{ZeniCopyright-Bi82glrb-duqZWZnQ.js → ZeniCopyright-BdLzk7SF-YDGrRrzV.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-BN1YPh8H-BhxzwI5G.js +63 -0
- package/dist/assets/{analyticsHelper-DfG7DVPh.js → analyticsHelper-C2NBKIU-.js} +1 -1
- package/dist/assets/{analyticsHelper-D3DK7bgU-BDE_Upvv.js → analyticsHelper-CzlOBCzS-CQTQg7l1.js} +1 -1
- package/dist/assets/{chartTypes-DJY-6KK0-4PHClK89.js → chartTypes-D-nEr9EI-B9VgqNSb.js} +1 -1
- package/dist/assets/{commonDimensions-DRK1vfDX-PluTp760.js → commonDimensions-DtXIXXfP-BDgsLUKt.js} +1 -1
- package/dist/assets/{detailCommon-6K-6m9pv-jkLJTbTr.js → detailCommon-DZhn8ANF-C-3uByQu.js} +9 -9
- package/dist/assets/{downloadPdf-DAA4T-qo-DsRNHgpN.js → downloadPdf-BaFOiUYP-DxRD0Sh_.js} +1 -1
- package/dist/assets/{index-BdyScxbq.js → index-DPgPe6wO.js} +4147 -4247
- package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-BRkRTCaW.js → mapLoadingInProgressToTreeNode-VAL73To4-DUfqJ5Z1.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-WwsJ-E2C.js → mapSectionWithAcOnlyToTreeNode-C-2C7Gbr-3LJ7o-YN.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr-CTPQlHBA.js → mapSpacerToTreeNode-vdqGP9FL-DNsFGVkT.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-CCBdKNH8.js → mapTimeframeBalancesToTreeNode-BFzyitoJ-BCTOadE1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-DazSUAzQ.js → mapTimeframeBalancesToTreeNode-BwlF2Rvj-CEJu0PwI.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-DcE9f1oB.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhkQsZRW-CPa2W8T_.js} +1 -1
- package/dist/assets/{play-icon-DY_hSiAf-iPBPRToH.js → play-icon-Dzfx02ir-D9v788Sm.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-4clUovO3.js → toCOABalancesWithID-DN6cSuKb-Bquc6vq_.js} +1 -1
- package/dist/assets/{toChartData-7MYPev1U-BznULmJv.js → toChartData-Bc3LMl7f-JBzkXmJO.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CDhLDRLr-BOEDM_eh.js → treasuryColorHelper-Cv4RwMTx-CPKgsqqw.js} +1 -1
- package/dist/assets/{uploadAttachment-DqCoxBNU-DL0Vk7r9.js → uploadAttachment-CxtYyGQy-Ct8Hb5gj.js} +24 -24
- package/dist/assets/{uploadReceipts-CU1mDxNv-JwkgKcZE.js → uploadReceipts-D80JLNY4-BE7GOht6.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-D6-Uk4xr-B2LzYHp3.js +0 -21
- package/dist/assets/ArAgingDetailPage-DD4M5tUJ-D6JB-pq2.js +0 -46
- package/dist/assets/ChargeCardUtils-Bivw83fy-C-WoJbl2.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-SpI62oU7-BfpgYkY2.js +0 -206
- package/dist/assets/CompleteProfile-C1PIn6EM-Cc-adujF.js +0 -52
- package/dist/assets/CurrencySelectField-DS-pGcuE-BpFKHUHN.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-BUxNxoDZ.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-C-FTLdcU.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-TYDqEdkx.js +0 -21
- package/dist/assets/EditPeoplePage-auUWC3gB-DSruR2eT.js +0 -55
- package/dist/assets/FeaturePreviewPage-CwGJVCMk-C9tam9PL.js +0 -11
- package/dist/assets/InsightsCardStack-EzAsNm_U-BDHHmNG2.js +0 -79
- package/dist/assets/InvitePeoplePage-DgqE2Y-0-aE1qBB-8.js +0 -12
- package/dist/assets/LabeledAddressValueField-Cw-p18du-RDWTYVMt.js +0 -45
- package/dist/assets/LabeledDocumentField-Y6TKpyZ8--QVPp5Dk.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-IHajRicG-C2W53sTh.js +0 -31
- package/dist/assets/MailingDetailsSection-AiehjqI1-D3JLmM_S.js +0 -21
- package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-wu3AnJ-K.js +0 -207
- package/dist/assets/QBOSetupSection-BeRZZ-Q_-DjjY5-V4.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-DIBrpREw.js +0 -26
- package/dist/assets/ReimbursementPromoPage-CA2cUBsx-C4CK4GgH.js +0 -112
- package/dist/assets/RoleWithToolTip-BP8MTZdU-BujAhA8M.js +0 -22
- package/dist/assets/TransactionVendorDetailPage-CTTTAais-bA1BYkNw.js +0 -80
- package/dist/assets/TreasuryStatementsPage-DBykLGfz-cC2WQ6c9.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-iJym96NM.js +0 -58
- package/dist/assets/VerifyDevice-C-ZVbaIJ-3g8l0R3C.js +0 -67
- package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-CaiImja0.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-CqfBNylr.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-BdyScxbq.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-BS-TIgsz.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-DplJLpKV.js";import"./uploadReceipts-CU1mDxNv-JwkgKcZE.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-DPgPe6wO.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-BYgUZr3e-ppSv-eTX.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-B4hoO1b8-sqsUZh4A.js";import"./uploadReceipts-D80JLNY4-BE7GOht6.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-DPgPe6wO.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-gItmg01b-KkgdFDbQ.js";import{f as ke,C as N}from"./play-icon-Dzfx02ir-D9v788Sm.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-DPgPe6wO.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{D as ut}from"./HelpButton-DY1MpMsB-NSbUCSI-.js";import{K as je}from"./SetUpDefaultSection-Chh_3U0h-B9vxnPiJ.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BfwEbse9-BEabiv-B.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BpJ_tRy_-Ir3yYWfE.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-gItmg01b-KkgdFDbQ.js";import"./ChargeCardUtils-EeXYTubM-BzIGoEJ7.js";import"./CreditCardPaymentPlgSection-C3pH8AzC-DAPxFM0W.js";import"./ChaseOverlay-DONL-nDR-1303yNRD.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-DPgPe6wO.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-C-9oLsRU-DbGH6sMH.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-DPgPe6wO.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};
|