@zeniai/web-cockpit-ui 1.15.30-qa → 1.15.31-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-CxpLuJpQ-JKcW_L_F.js +21 -0
- package/dist/assets/{AIPerformancePage-DncCC-Dz-BOvGHscI.js → AIPerformancePage-BtDuOBey-R_FrOwFb.js} +104 -104
- package/dist/assets/AccountInfoPage-DkpBGfrR-CwURNe8d.js +18 -0
- package/dist/assets/{AccountInfoPageContent-D-dwMWkI-D88W2OaR.js → AccountInfoPageContent-BLF92_vF-BcSKCd1r.js} +18 -18
- package/dist/assets/AccountLockedInfoModal-AsMkXu1I-DpSC039N.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BL7C23h8-DzmiVaut.js → AccountReconDetailsDrawerPage-CkaBrm5K-DMOtTL8X.js} +12 -12
- package/dist/assets/AccountRow-aEmcYP8T-BckNDPBQ.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-BqyCa3EH-BhL0cBgw.js → AccountsPromoCardStack-C0At5pn8-DZihjHYv.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-CbjThbsA-Djr5aTMV.js +6 -0
- package/dist/assets/{AddToWalletPage-tRVFR3Rw-C5ubbZea.js → AddToWalletPage-CMJwUbgf-rFPYYVSy.js} +47 -47
- package/dist/assets/{AgingReportsPage-BO9qovKL-CdlQDQIv.js → AgingReportsPage-B_BSfude-DWyamJwj.js} +15 -15
- package/dist/assets/{AllUserItems-C5uzbqu0-Dz7hSnjr.js → AllUserItems-CGlWa60t-EoZjozXY.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-Dw4d844_-BkAKurnC.js → ApAgingDetailPage-DT3vkmLG-BsDDXbrZ.js} +4 -4
- package/dist/assets/AppBasePage-CDy7wPlv-CsB4iu-c.js +71 -0
- package/dist/assets/{AppDrawerContent-C5KqoZ6_-D_png9qE.js → AppDrawerContent-CEsXm_i6-DCe9idAB.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-nEW4hufu-BCL2xSkm.js → ApprovalRulesSettingsPage-CB2_4-2f-JTvT_FnG.js} +6 -6
- package/dist/assets/{ArAgingChart-2eGhMrCs-EqBo0h4i.js → ArAgingChart-qxhWsIQb-D_1Ue9xU.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CE_nDD48-BIHfiXjf.js → ArAgingDetailPage-BbzQryp_-Babiy5ST.js} +4 -4
- package/dist/assets/{AttachmentView-DdX3DEyN-Bw2PxRrG.js → AttachmentView-duTVxc9g-BoSNnqkS.js} +4 -4
- package/dist/assets/{BankAccountSection-Db8KCDjh-iTFbb6-_.js → BankAccountSection-CAwAf9xK-BTGyBjUJ.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-DLKyK-pN-Cdd5qBMX.js → BankAccountWarningSection-CaDnP9_--BOTeyp6n.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-BcMQdf1D-DfqGvpXs.js → BankConnectionsSettingsPage-CDV7O8cl-CQv6ub4_.js} +10 -10
- package/dist/assets/{BillDetailPage-BOoE3r9n-BIPuOuQe.js → BillDetailPage-DJxh2CIc-BeHpC_ZG.js} +13 -13
- package/dist/assets/{BillPayApprovalRuleDetailPage-C-M8i0tF-B9YYzCOC.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-CXCcZzHB.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-cqq9M7pi-BVbvcx0Z.js → BillPayApprovalRulesPage-MM7v8ZMx-B1_OO9dS.js} +15 -15
- package/dist/assets/{BillPayPromoPage-CHu-sh9I-B_sxrL9M.js → BillPayPromoPage-JK-VOx4W-BEeCN8sy.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-ICbZgQZR-CfoTEl08.js → BillPaySetUpPage-h0uoCWMl-D8aqE5Rg.js} +2 -2
- package/dist/assets/BillingSettingsPage-gJG9OxD6-Cdnv1hFG.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-Cr-JmUCA-Ccv-NbDw.js → BillsBulkReviewDrawerPage-CPPDFsZt-C0sV8yKV.js} +1 -1
- package/dist/assets/{BoxItem-ChtGcSH1-MoZYQOAh.js → BoxItem-CYe_gTmA-rmtQXiBP.js} +1 -1
- package/dist/assets/BusinessVerificationPage-Dos8Bnvb-EV3QIoHL.js +138 -0
- package/dist/assets/{CardNumberSubText-Dxhe-tx2-TLAx16j3.js → CardNumberSubText-CFDhtij8-BmUW8oI1.js} +3 -3
- package/dist/assets/{CashbackDetailPage-BTR9tfZP-Jo7Dpa8J.js → CashbackDetailPage-BBGGzKh7-Bts6uMDO.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-D_dF0Nv_-C7o20zm-.js → ChargeCardDetailPage-BQhago53-D_FFt-oF.js} +18 -18
- package/dist/assets/{ChargeCardListPage-wA3_NOPD-DOl_739p.js → ChargeCardListPage-B0E-C3RH-CrU64eoy.js} +23 -23
- package/dist/assets/{ChargeCardListTable-8Bgd9bzh-HEXHQyum.js → ChargeCardListTable-ByGv0xWl-rSJFMbd2.js} +46 -46
- package/dist/assets/{ChargeCardPaymentHistoryPage-mcW9jr2k-BjrB9BAc.js → ChargeCardPaymentHistoryPage-LCY9rFqO-CkY1nhYn.js} +12 -12
- package/dist/assets/ChargeCardPromoPage-CKEnOseD-DuGq7XTO.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BxAJ2HVU-BX-4Vim4.js → ChargeCardSetupPage-BHv2VOdc-Bv0dAghh.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-CZzDSv5y-BXWMC8ei.js → ChargeCardStatementsPage-UpRXyPTS-DcNMglcu.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-iPcp79Wu-CA2AafB8.js → CheckDepositDrawerPage-0zbTQ3Fa-Edy7R6vj.js} +21 -21
- package/dist/assets/{CollapsableReportTable-Ck29YUyD-pECWNLmO.js → CollapsableReportTable-DlYIKSlQ-COjE28P7.js} +93 -93
- package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-C5sOytCr.js +260 -0
- package/dist/assets/{CompanyPassportCard-CCfVNfP0-CrPt14U3.js → CompanyPassportCard-DeVPuuje-B4Kq9zLA.js} +3 -3
- package/dist/assets/CompanyPassportPage-F_GUET9a-DWgtD9ML.js +574 -0
- package/dist/assets/{CompleteProfile-C0Qk6P6p-C3tZC3ME.js → CompleteProfile-Y6HwKtpz-CsUQDLc6.js} +2 -2
- package/dist/assets/ConfettiBurst-BGE3Okwr-B_KCfg_0.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-fIa3khF_.js → ConstrainedInnerElement-BeIpAPjB-Dx2Q69aJ.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CmnpkgTu-DFILJK0S.js → CreateOrEditVendorPage-BlZe6gmh-DxGvfsZR.js} +16 -16
- package/dist/assets/{CreditCardPaymentDrawerPage-wPiHCF7z-DO8qxsK-.js → CreditCardPaymentDrawerPage-flPmyCaF-D3mVRIQk.js} +11 -11
- package/dist/assets/{CurrencySelectField-CxIflyKX-BkVKHW7P.js → CurrencySelectField-RiKAivD8-Dz6NASLd.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CE5B6BET-BSoJNJvi.js → CustomerOnboardingActivationPage-B7dLMk4g-D_eaYsMZ.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-BBqvBSFY.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton--jL1SUOo-CBYeHto3.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Df3wynLD.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-CmXil69t.js +66 -0
- package/dist/assets/CustomerOnboardingPage-B5LrMzZS-Bw_YjaWD.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-IUm6QKOQ-7Xb_cC54.js → CustomerOnboardingProductSuitePage-DqgoBLWp-D2XUuLJm.js} +6 -6
- package/dist/assets/{Dashboard-CeBbTIiJ-CjYF6swU.js → Dashboard-D0KlujCx-D0HvooTT.js} +66 -66
- package/dist/assets/{DashboardReportPage-DVIwO5-L-Jzf6CQjM.js → DashboardReportPage-bxKyMsG7-Bb1y4PVD.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-CbEVCb1f.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-B7ErTe-9-IiBwcqn_.js → DepositAccTransactionItem-BdZVCAx--BEQtPnX0.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-Czm5uOxb-CsvUWB2Z.js → DepositAccTransactionListPage-LU0QMdSV-Bfh4B_mk.js} +6 -6
- package/dist/assets/{DomesticWireDetailsPage-B3Cib987-Bpr9YIbH.js → DomesticWireDetailsPage-CFt5GgZ1-Co98r5Ek.js} +1 -1
- package/dist/assets/{DownloadOverlay-CS_4lZDV-Bj-tFxKl.js → DownloadOverlay-CH_bA3On-bfSkm5Nl.js} +11 -11
- package/dist/assets/{DrawerPage-CrCkJ_bE-4OdrvmR8.js → DrawerPage-Cpdp-IFb-BRc12KLa.js} +14 -14
- package/dist/assets/EditPeoplePage-BYnuNojX-B1GcGpQ9.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DisSqLai-DgqcVW3v.js → EditReimbursementDetailPage-DnyyPZ26-CeObB7v0.js} +67 -67
- package/dist/assets/EntityDetailPage-DSfZZ1JW-Dd0uW0uD.js +18 -0
- package/dist/assets/{EntitySummarySection-CmVlq7pY-ClR4v434.js → EntitySummarySection-BFpgAYAM-D1hJybsA.js} +8 -8
- package/dist/assets/{ExpenseAutomationOverviewPage-DuWbC5EZ-MQAQvJgp.js → ExpenseAutomationOverviewPage-YjOVm_Bw-p-cnIw4N.js} +56 -56
- package/dist/assets/ExpenseAutomationPage-DlhH-R-e-C1M6QNQ4.js +1700 -0
- package/dist/assets/{ExpressPayPage-DZHOM942-C3TqtMLa.js → ExpressPayPage-CKqPEfbR-CGYA64IG.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-DHomR4Oi-BUxEkmDY.js → FeaturePreviewPage-Cs1Y3nP0-IoYZsFaa.js} +2 -2
- package/dist/assets/{FollowStepsSection-C8Zv_X5E-CbGu5Ubj.js → FollowStepsSection-BCyL8Jdr-B2UM5UTK.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BFR_WZdE-DGzcSSRg.js → GlobalReviewListPage-CBQFcVHd-Cv9-dFGG.js} +16 -16
- package/dist/assets/{InformationCardStack-C39QsHiY-BFHNROWc.js → InformationCardStack-nFMetrAy-CQVo7xoK.js} +6 -6
- package/dist/assets/{InsightsCardStack-Bi2tusdE-tu5bOLaK.js → InsightsCardStack-CEMeGJXy-CBEUbPAA.js} +7 -7
- package/dist/assets/InsightsSection-BYiN2xB7-DRSyBaKY.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-Bj9lE3dy-BoquOG18.js → IntegrationsSettingsPage-BQ7g3a3K-BolFhxmH.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-HPxS_eP2-CXu6WZDB.js → InternationalWireSwiftDetailsPage-BHRYsZgm-D9-8cqjd.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CBXNZ9Tt.js +292 -0
- package/dist/assets/{InviteFormPage-DyUgmNt6-DbKce1qR.js → InviteFormPage-BVXte8w8-LmKOVXja.js} +23 -23
- package/dist/assets/{InvitePageListView-PbTTJA74-Bz3RohnK.js → InvitePageListView-DFPyLLrA-8Qu-82aZ.js} +55 -55
- package/dist/assets/InvitePeoplePage-B-uxjkke-hqYTwKtm.js +12 -0
- package/dist/assets/InvoiceUploadSection-B9q7nIs0-DaXZuZIR.js +140 -0
- package/dist/assets/{IssueChargeCardPage-WeFAdE9k-BwCdMfjt.js → IssueChargeCardPage-BuLj1bOl-CrhI2RvS.js} +19 -19
- package/dist/assets/{LabeledAddressValue-BEiVNwJh-B1AetA9A.js → LabeledAddressValue-D2t8ti-C-DZj4ysSt.js} +2 -2
- package/dist/assets/LabeledAddressValueField-DMcor_I8-1VjKhx0I.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-UqsSfRFN.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-B-KMzhH--DUvTQCE0.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPCw1so2.js} +13 -17
- package/dist/assets/LabeledDocumentField-Bx1u7vv_-CXDoMBrK.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-DZkQmKIJ.js +59 -0
- package/dist/assets/{LabeledText-B1BxC4mo-Cud6m7nr.js → LabeledText-zjKn4Cw--KApo6LBw.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-DV_bhuhP.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-DSUwJJwR.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-DruyoV6I-DsPwqNC4.js → LabeledZeniRolesDropDownField-DiBtAWQ3-CBaCEhEP.js} +38 -38
- package/dist/assets/{LinkJETransactionPage-_GJ-x5FQ-CpZcMkUO.js → LinkJETransactionPage-D66bzDh_-CkE3r5Fj.js} +14 -14
- package/dist/assets/{LockCardPage-BiembyjL-o0APbzNc.js → LockCardPage-B1g2TZWL-BB9OEQ3a.js} +23 -23
- package/dist/assets/{LowBalancePopup-DF0W3ZsB-BL8lxWid.js → LowBalancePopup-DbtHeVY--C1kZvBgV.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BwbjH03_.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-CowCmii0.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BohPD43K-C9uNU_-f.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-Cz_o6Fdm.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-BkxuITX--Dm_WsIEN.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-Dlvzbcxc-DASQrA7S.js → MagicLinkTitleSection-CqkZ9wOf-Bw_OwXxB.js} +4 -4
- package/dist/assets/{MailingDetailsSection-BT5P_beR-B4cpXc_i.js → MailingDetailsSection-DRFGCM2W-BZiRRBi6.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BSErzm4Y-C-MWTdNj.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-BgvQaaTM.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-CC02lTyz-BJnd3ofq.js → MyPendingActivationChargeCardListPage-BffxXDZg-ByY1n8i6.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-DrsAlesY-hN8LUcXX.js +85 -0
- package/dist/assets/{NavBarWithPicker-BsrNGnWt-BlQqabt1.js → NavBarWithPicker-C4VfP_Kw-CBhRZ97T.js} +5 -5
- package/dist/assets/{NavigationArrow-BXIVh8h9-D7IH5yMo.js → NavigationArrow-DCCxx6H7-W7U95qs4.js} +7 -7
- package/dist/assets/{NavigationDots-CqAMUVd8-BXhLjOxS.js → NavigationDots-tWCw6Bpk-CuIUDxge.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-BJ5efhOX-ClQiHLq9.js → NewGlobalMerchantPage-UIA8zAjd-D8vToc6n.js} +36 -36
- package/dist/assets/{NoDataChart-YIESVuNz-DpSXAqlW.js → NoDataChart-Bvetk9za-0wt6JdBt.js} +2 -2
- package/dist/assets/NoDataTable-9xF1_3XS-DsLBD4Qa.js +8 -0
- package/dist/assets/{NotFoundPage-DsvOs3ie-C-4MxVNW.js → NotFoundPage-CdH-3upl-C_fcZJin.js} +5 -5
- package/dist/assets/{NotificationSettingsPage-DVfgPnm5-BvgqO3jt.js → NotificationSettingsPage-DP2gGIz1-CLjjU0Sc.js} +17 -17
- package/dist/assets/{NotificationsListConfig-DpYbR8ec-DqDCfeTP.js → NotificationsListConfig-DG-DH2Aj-CKXowXh2.js} +1 -1
- package/dist/assets/{NotificationsPage-DvWc70qe-VWTqaRJg.js → NotificationsPage-CgFMmR2X-Be5cEQ7m.js} +24 -24
- package/dist/assets/{OpExByVendorPage-H76M8qaf-BQH2QQSj.js → OpExByVendorPage-eUvIAWzt-PZY_Xas_.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-3r3Bw7Lg.js +11 -0
- package/dist/assets/{PandLWithForecastPage-sw9N690f-DXwOGKkt.js → PandLWithForecastPage-8S06Nyi5-BhQGG0da.js} +11 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-9ZSRDZH6.js +107 -0
- package/dist/assets/PeoplePage-D1BLHtO0-sla4AS_t.js +675 -0
- package/dist/assets/{Preview-CTKmuGb_.js → Preview-CU8d2zan.js} +1 -1
- package/dist/assets/{ProductsCarousel-BcFZaXQq-CAcJ2P5M.js → ProductsCarousel-BKSXWnFR-DXZOy7zR.js} +5 -5
- package/dist/assets/{PromoBaseCards-BglIl0tN-Buak4qY9.js → PromoBaseCards-BYT9nEJT-CqAOmcFY.js} +17 -17
- package/dist/assets/{QBOConnectionDialog-D9BGyyB3-C_3987E6.js → QBOConnectionDialog-C2-omQMZ-zbiv02JV.js} +3 -3
- package/dist/assets/{QBOSetupSection-C6L-OXzd-C71uj0xQ.js → QBOSetupSection-lgv5wVlg-y58Hyzd-.js} +16 -16
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-tKu15I_o-BFCP9Tbv.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-D3aK08AA.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-r2WRV6kv-C9GzIbw-.js → ReimbursementApprovalRulesPage-BuNt-Bmb-C78e8kMC.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-jJxS8CSo-DjnZk067.js → ReimbursementDetailPage-CK3-Jqkd-CgZiOEYV.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CrKB_OxS-3EkO-wL1.js → ReimbursementPromoPage-fptOAJna-IPM14XMn.js} +20 -20
- package/dist/assets/{ReimbursementSetUpPage-COWnzuHW-CLMx95-b.js → ReimbursementSetUpPage-CidrpT2g-Ln_h8FTr.js} +12 -12
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-_Bcfji9w.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DgBEVXGU.js} +1 -1
- package/dist/assets/{ReloadCard-Dl1P55OC-zZUvCa72.js → ReloadCard-C81rGzOp-DJ3imZKo.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-CPU5qvuC-2zZIaHx7.js → ReportTableViewSelector-neRSjrhV-Ren0yuJI.js} +9 -9
- package/dist/assets/{ReportsPage-FhO_9i3v-DNezkReN.js → ReportsPage-BhzQVaer-_PFG_SDT.js} +5 -5
- package/dist/assets/{RevenueChart-Bju5kT8K-oXD-rW-y.js → RevenueChart-x7uTbFlm-De__t5uZ.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-CaEI-TGi-BctO-qMF.js → ReviewDetailsPage-jXZCylzg-CxWQeENN.js} +52 -52
- package/dist/assets/{ReviewOverlay-l69rpwr7-CL2MzHR0.js → ReviewOverlay-nlm2HnGw-CrtXVWUE.js} +18 -18
- package/dist/assets/RoleWithToolTip-C29QOzxS-Flc5rF91.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BRsO23kh-Bd6jJjXE.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-DIX9LFTM.js} +8 -8
- package/dist/assets/ScheduleDetailsPage-BSZefKOh-8kI1Do_y.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-CeHDyMVV-BDB0daT6.js → ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js} +42 -42
- package/dist/assets/{ScreenRoutes-BQy3VYdc.js → ScreenRoutes-CLhWgWVO.js} +1 -1
- package/dist/assets/{SetUpAccountSection-rRjmVlU7-DwMfeFsK.js → SetUpAccountSection-C703iFL6-CB7BMbY7.js} +5 -5
- package/dist/assets/SignIn-D9K5FklU-DoHIITb_.js +491 -0
- package/dist/assets/SignInScreen-BUCf8qGW.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-B452IhbL-DeBmV72o.js → SpendManagementListViewPage-CBNtC74m-BtgixD4n.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-BDYtqf0E-DyNuQ-pi.js → SpendManagementPerTabPage-D_sa7WRd-BkE5ihPf.js} +23 -23
- package/dist/assets/{SpendManagementSection-BBotB3Xj-CCF7KJv2.js → SpendManagementSection-DpZUTV6m-Dxy1NGgK.js} +25 -25
- package/dist/assets/{StatementItem-hqxspUme-sh_LlOTp.js → StatementItem-DvdSsb8I-Yc2t3LwG.js} +6 -6
- package/dist/assets/{StatementsPage-CL35o_9R-ReR2nu-n.js → StatementsPage-73jGj5P2-39XE15IE.js} +1 -1
- package/dist/assets/{StatusSwitcher-LSy5NlOs-B-twulWz.js → StatusSwitcher-hKYgwNLC-CdIzFF5N.js} +2 -2
- package/dist/assets/{SubTabSwitcher-BB80NFhP-CfbWDFoA.js → SubTabSwitcher-aeDd9xiF-cMszftZd.js} +2 -2
- package/dist/assets/{SummaryCard-wJqTtNFt-C_twlvBD.js → SummaryCard-CK8Gxbiu-D9gdCQ60.js} +1 -1
- package/dist/assets/TaskManagementPage-D2Ooq8DR-BCLu8T25.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-B1jJf76U-DhK9j_RI.js → TimeRangeSwitcher-DEqlZxa6-CbVp5G_Z.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-CTyaOUPX-CbY24_cZ.js → TimeframeSwitcher-BppC6giF-B4vl7lp6.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-CKuHpWeL.js +31 -0
- package/dist/assets/{TopExCard-D-0SNihe-DbAMEJsc.js → TopExCard-Cy6tPVSx-DoueUq-S.js} +6 -6
- package/dist/assets/{TopExDetailPage-2Wo3VpBY-CQB6lP8u.js → TopExDetailPage-Rtrcdkcp-Bee2kIbH.js} +11 -11
- package/dist/assets/{TransactionActivityLogPage-Bh3D2NmZ-D3qvKicV.js → TransactionActivityLogPage-DbwSsjPJ-Duhd9ppW.js} +15 -15
- package/dist/assets/TransactionDetailPage-D-vXAAB7-K9QSYBJd.js +903 -0
- package/dist/assets/{TransactionList-DUgCrZWV-BvVKtqdG.js → TransactionList-BruCNjQg-Bs3Zye0k.js} +16 -16
- package/dist/assets/{TransactionListBig-BXR8xSqt-DaiA8bG9.js → TransactionListBig-bp7q3prH-DtAaFzgB.js} +13 -13
- package/dist/assets/TransactionListPage-ZfJsaVb8-DDRcg9yh.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-D0ZIWPbx-Cn6y3WJt.js → TransactionVendorDetailPage-CldkuO2--BwneqCS_.js} +15 -15
- package/dist/assets/{TransferDrawerPage-BP4KhD5c-BrSTdfTz.js → TransferDrawerPage-DswS6KZf-lfQEHAd_.js} +35 -35
- package/dist/assets/{TreasuryOverviewPage-CrYY5MJP-C0AmvEQV.js → TreasuryOverviewPage-DWo7iRpO-DwVZc_ol.js} +15 -15
- package/dist/assets/{TreasuryPromoPage-DZ4Kyqzq-D_pEn2EG.js → TreasuryPromoPage-DQxCF3-4-CSmOO24g.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-BaId882i-D75gB9l5.js → TreasuryStatementsPage-CYkPtmaT-DN6XWXk4.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-BD36dset-gxrB031E.js → TreasuryTaxLetterPage-DH3su_rX-KVvmjWUc.js} +2 -2
- package/dist/assets/{TrendChart-CS2cE4wE-9GYHRUaO.js → TrendChart-BMHDaOeh-Buv1h9ol.js} +3 -3
- package/dist/assets/{TrendWithTransactions-BNti0lYr-DivQSKL6.js → TrendWithTransactions-DDLrmIrt-fNUGa6rL.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BsRepV5l-DlPkehZf.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-BU7ZjTMQ.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-DqzH4Opa-SO4FcuGi.js → UnitIntegrationPage-DPMy8dXP-BZ-cXQsX.js} +7 -7
- package/dist/assets/{UploadAdditionalDocumentOverlay-BIzKt99W-Th7W6jYz.js → UploadAdditionalDocumentOverlay-BHpT2al--BnkxVa5e.js} +1 -1
- package/dist/assets/Vendor2FAPopup-C6gEOhUv-evnz1t4i.js +1 -0
- package/dist/assets/VendorACHDetailsPage-LNCcubjL-C8VaJhNx.js +1 -0
- package/dist/assets/{VendorDetailPage-C9YSL-3_-BF0fdd2j.js → VendorDetailPage-BC1FhaQA-CueuZtdN.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-CqnTEv1M-CgJRLwZn.js → VendorDomesticWireDetailsPage-CLudahOt-Y_vODi9v.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CmnR7Dwc-DZxsZ_RS.js → VendorFiling1099EditablePage-DYyPOA8D-CMg58Qh3.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-CAjuo6H2-BffNSToW.js → VendorFirstReviewPage-Cpmk7rDk-DktpXCT6.js} +8 -8
- package/dist/assets/{VendorInternationalWireDetailsPage-Ca1voldE-BbjAc52w.js → VendorInternationalWireDetailsPage-CWAWq6kq-vjVbUdxz.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-ChJiB8Jl.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BY-jWDwa-60HtC92w.js → VendorsAccountsSection-CGQ35Mhp-Bs7nzLpL.js} +2 -2
- package/dist/assets/{VerifyDevice-DSN3CxFh-da41a_-g.js → VerifyDevice-CfMJW1Vh-pAakXHUa.js} +9 -9
- package/dist/assets/{VideoPlayer-BzBvO4D1-CGFIyDTJ.js → VideoPlayer-BNBpjXJk-CNvH9RBW.js} +2 -2
- package/dist/assets/{VideoPopup-BB6qYshg-ZG_r-hRa.js → VideoPopup-BF6lmB7l-BYaaNsYn.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B4NIhdau-Bru4kwPQ.js → WarningsDrawerPage-Crj70lnR-KEtM2APc.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-CbMnZZXn-DLFDNJ9i.js → ZeniAccountDetailPage-CaA6m3tQ-CEYZpiUC.js} +10 -10
- package/dist/assets/{ZeniAccountListViewPage-DuuiC_LT-jT3VVTcG.js → ZeniAccountListViewPage-x_51gDs1-Avk4qZ_6.js} +9 -9
- package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-DksQYhl9.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-Bce5rHc6-m6-ECwyb.js → ZeniAccountPromoPage-lxKBk2r5-B5zalg2W.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-Cwr7kLE1-DplcqBsj.js → ZeniAccountSetupPage-DUI4-2Zw-DRlq62qF.js} +3 -3
- package/dist/assets/{ZeniCopyright-CPV8cCJj-D08CfMJu.js → ZeniCopyright-DxEZ4DiK-hTA8S1dS.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CSJnweYQ-bsaYWF1B.js → ZeniTransferAmountSlider-4Nq4Sm9J-DVwizo2l.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bh5GmIs8.js → add-to-wallet-DgdBD8_G-DYxovDvY.js} +1 -1
- package/dist/assets/{analytics-C7qRceeD.js → analytics-Cmcqa01V.js} +1 -1
- package/dist/assets/{analyticsHelper-CeIe3crh-AsfAm_i9.js → analyticsHelper-CL-t3Y2i-BWhNt6sH.js} +1 -1
- package/dist/assets/analyticsHelper-DVKjUmRh.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DKJtOEDh.js → arrow-south-east-round-PEovUgvH-Cg10bY7L.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BtLYBoTe.js → auto-transfer-rule-mbafm5D3-BzGzQRiq.js} +1 -1
- package/dist/assets/{chartTypes-Cpjk7Uyr-Cx7FiySP.js → chartTypes-B3501CSI-EaJM1gmS.js} +1 -1
- package/dist/assets/{commonDimensions-BiY7_JPE-DCs4Mvgg.js → commonDimensions-YcBBlmYP-Djn7MvQY.js} +1 -1
- package/dist/assets/{constants-BSSpHQLd.js → constants-CO0CvGHR.js} +1 -1
- package/dist/assets/{core-BdfL-uia.js → core-MmJvanAX.js} +1 -1
- package/dist/assets/{dash.all.min-BHbNWZhu.js → dash.all.min-BtkViWW9.js} +1 -1
- package/dist/assets/{detailCommon-C7usWt5l-BPTKb5an.js → detailCommon-C19MYPnq-K0CC_UYn.js} +2 -2
- package/dist/assets/downloadPdf-DPAqxw6u-DNPeICgY.js +1 -0
- package/dist/assets/{empty-B_wp4jbR.js → empty-B8yNMhy_.js} +1 -1
- package/dist/assets/{empty-BfoY8avI.js → empty-wbHL4fCk.js} +1 -1
- package/dist/assets/epic-cC-V8fqP.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CTA3oEEm.js → gift-box-Cmt9OgIZ-mKGEn6_z.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-BNuWuf.js → graphic-no-data-l-DU4J8fDt-DL4eASZx.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js → graphic-no-data-net-burn-l-CzmycA0m-CPdXbVAf.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BspGwKvx.js → handshake-BPg58FML-D9DqrV5o.js} +1 -1
- package/dist/assets/{index-DQGwrG6i.js → index-B2COPa4J.js} +1 -1
- package/dist/assets/{index-97wdo8qZ.js → index-BALzBmnK.js} +1 -1
- package/dist/assets/{index-CLP97b5b.js → index-BMz5TN4Z.js} +1 -1
- package/dist/assets/{index-2U9XpSIT.js → index-BZrvYCMV.js} +1 -1
- package/dist/assets/{index-BE47hrTe.js → index-Bj85L4uf.js} +1 -1
- package/dist/assets/{index-Blb3rESX.js → index-BmeBEa4W.js} +1 -1
- package/dist/assets/{index-Bkm6Mxfx.js → index-DK3PYuee.js} +4083 -4077
- package/dist/assets/{lexical-CNiclLj0.js → lexical-DyUba00B.js} +1 -1
- package/dist/assets/{liveblocks-Lf8LVeH9.js → liveblocks-DzWLGwR5.js} +1 -1
- package/dist/assets/{lottie-BAIk2ri4.js → lottie-C8IpdMqp.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--B6CSGc2J.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-COWbEMKO-DeIvL42p.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BZO45bNY.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Blr3egSm-BptZuVYf.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-BTUA7CSo.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-DSTIJ2iA.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-DKkBp9K3.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Dqp5HT1g.js} +1 -1
- package/dist/assets/{mui-Dg-yyLd1.js → mui-CgqbPqeT.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C9V7NZCx.js → page-detail-CWX5S47F-CWr90kJa.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DRCw2iu0.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-7Dm34YkL.js → radio-default-CiSgisfh-BEZqUVYK.js} +1 -1
- package/dist/assets/{react-afxvtM8P.js → react-BE0WbgXK.js} +2 -2
- package/dist/assets/{react-BYCJSJzc.js → react-BWJsSx2R.js} +2 -2
- package/dist/assets/{react-XQWanSnz.js → react-BgXIf4f3.js} +1 -1
- package/dist/assets/{react-CmD2oDdV.js → react-C4LlJL88.js} +1 -1
- package/dist/assets/{react-CLIsPthr.js → react-CMcqnen6.js} +1 -1
- package/dist/assets/{react-CK1-HLiI.js → react-COyNmpZ3.js} +1 -1
- package/dist/assets/{react-CXimFM-A.js → react-DsUgK5BV.js} +1 -1
- package/dist/assets/{react-RbEMA7cG.js → react-DzUY3cKk.js} +1 -1
- package/dist/assets/{recharts-DVyIhUUu.js → recharts-CcfvjpA4.js} +1 -1
- package/dist/assets/{sentry-nVlxguQq.js → sentry-DS5py-mq.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DoCKBSgZ.js → shield-DOlUxcFf-BF58Ag0p.js} +1 -1
- package/dist/assets/toCOABalancesWithID-D35Fk0m2-B_xF911W.js +1 -0
- package/dist/assets/toChartData-DzatRnt8-DoRfMwGl.js +1 -0
- package/dist/assets/{uploadAttachment-B3eC-lyz-geS_kP_o.js → uploadAttachment-Bq8dk-Sm-D_5FZVYa.js} +18 -18
- package/dist/assets/{uploadReceipts-Dge0cNF1-CY10Jpnu.js → uploadReceipts-Dge0cNF1-v2Zp1kxY.js} +1 -1
- package/dist/assets/{url-3XfBQAPr.js → url-B1m04Aj9.js} +1 -1
- package/dist/assets/{url-A_ZszWlu.js → url-rEq3bn1J.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BmH9C_mp.js → useLongPress-GCK2COYQ-BbRZopJb.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-iPZVfl3G.js → usp-line-BBd1wKwW-C_HT3NYA.js} +1 -1
- package/dist/assets/{utils-Bn_xI0qf.js → utils-C5WTobSB.js} +1 -1
- package/dist/assets/{zeni-epic-state-DwXlACp-.js → zeni-epic-state-QRf7TPA6.js} +18 -18
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BR3rG--e-kSCtv-NB.js +0 -21
- package/dist/assets/AccountInfoPage-CD5N14l8-Cj9mMftg.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Bu3jEa0r-B0qvTV9d.js +0 -59
- package/dist/assets/AccountRow-B5Gqqqtn-CIBZjEoF.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BwmafnJT-Bmncy62v.js +0 -6
- package/dist/assets/AppBasePage-BMHvSY21-DvkLzmdG.js +0 -71
- package/dist/assets/BillingSettingsPage-DYdJ7J5w-Dpj9oE-s.js +0 -44
- package/dist/assets/BusinessVerificationPage-CyDHfWqO-DZAPmAGn.js +0 -138
- package/dist/assets/ChargeCardPromoPage-BPyHy6jq-BKhW8ZTA.js +0 -222
- package/dist/assets/CompanyOfficerDetailsSection-CEpMwx3h-CtZ35yMq.js +0 -331
- package/dist/assets/CompanyPassportPage-S00SGN0f-daLbEDp8.js +0 -417
- package/dist/assets/ConfettiBurst-BFSc4yf1-Cmp5Smtr.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-CpRK_yh3.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-DtAEP0LR-Cj2h9iOe.js +0 -66
- package/dist/assets/CustomerOnboardingPage-8fLLsJWV-CvrWaaS9.js +0 -107
- package/dist/assets/DashboardSidebarBackgroundAnimation-CntzllmW-4doWKP65.js +0 -12
- package/dist/assets/EditPeoplePage-CbH2FQwr-Dwdc6XuJ.js +0 -55
- package/dist/assets/EntityDetailPage-CPfVH0Qx-Bbq5VGjF.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DBW9Urqw-CdNZdY6H.js +0 -1794
- package/dist/assets/InsightsSection-CKYv2Mnk-DfsYpI8T.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-0DjZSpXZ-BZd7iT9O.js +0 -65
- package/dist/assets/InvitePeoplePage-CD1AM3Js-Coy9qSK8.js +0 -12
- package/dist/assets/InvoiceUploadSection-DPN2hpHj-Le_Nue4w.js +0 -140
- package/dist/assets/LabeledAddressValueField-CeyT4xDd-CsZJNIxr.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-9wqNy7sL-DXrYHBBD.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-S16_1kXP-x8HeIlI2.js +0 -237
- package/dist/assets/LabeledDocumentField-9m7Nhuth-BMfR8g3v.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-B_jJYbeK-CTMDj_vU.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-D5bMLjso.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-B_wnHSrq-CpgplOKq.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-RJUcSgy8-CVLM8P-e.js +0 -31
- package/dist/assets/MyProfileSettingsPage-BM5j8vuZ-DC0wslST.js +0 -85
- package/dist/assets/NoDataTable-CHeZXDKw-D3EaccW5.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-DOJMQyvQ.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-D_rfYltd-BxAOPNlU.js +0 -107
- package/dist/assets/PeoplePage-D0ePO3d9-Bb5tMyL7.js +0 -727
- package/dist/assets/RoleWithToolTip-C4vCwcT8-C5FDPwWf.js +0 -22
- package/dist/assets/ScheduleDetailsPage-pKJSKheu-3-MzjHkZ.js +0 -37
- package/dist/assets/SignIn-zX3S7vuf-CwAOg_w9.js +0 -491
- package/dist/assets/SignInScreen-CpVpLRgx.js +0 -1
- package/dist/assets/TaskManagementPage-CnB395ci-lpQsi4e6.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-D48PqfUX-D2nr0MDh.js +0 -31
- package/dist/assets/TransactionDetailPage-NZEjiM1T-0AsyLNKc.js +0 -903
- package/dist/assets/TransactionListPage-BhY1YX8v-Shvm7Elv.js +0 -35
- package/dist/assets/Vendor2FAPopup-BzQXTs0l-C90qWU_9.js +0 -1
- package/dist/assets/VendorACHDetailsPage-D1DvwT9e-CTgO1cQ9.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-__uNZA7s.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-CLNviNEx-CPY4QhCF.js +0 -14
- package/dist/assets/analyticsHelper-C4Qu-lAN.js +0 -1
- package/dist/assets/commonTypes-B1ylXa_P-Cc0VFSjp.js +0 -1
- package/dist/assets/downloadPdf-DRVFJQsk-BTOjeNSN.js +0 -1
- package/dist/assets/epic-BcpbmT-B.js +0 -2
- package/dist/assets/helper-Bwr_8pRi-tqcy2Ple.js +0 -223
- package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BcQQ_ng7.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BBc-Z9-B.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--hXoargkz.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-Bx1KZ8Tg.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BcWH15GY.js +0 -3
- package/dist/assets/toCOABalancesWithID-BOdn6oVS-D2aQDAmk.js +0 -1
- package/dist/assets/toChartData--znXzhow-CuORq1Y-.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as be,J as je,a9 as Xe,cG as Qe,V as t,bD as Ze,o as i,F as re,y as P,am as et,al as W,T as se,cn as tt,ac as nt,bU as it,u as v,ba as ot,b as Ne,N as at,a8 as ze,cT as ct,aR as J,aW as fe,fB as Te,c$ as lt,bx as He,fC as _e,fD as st,fE as qe,c0 as Oe,fF as rt,fG as dt,fH as ge,fI as we,fJ as Ie,aO as Se,cf as xe,aQ as ut,bL as pt,dP as Je,p as ne,ai as B,fK as ht,fL as mt,fM as ft,bj as gt,fN as wt}from"./index-DK3PYuee.js";import{a as r}from"./sentry-DS5py-mq.js";import{n}from"./mui-CgqbPqeT.js";import{r as Pe}from"./core-MmJvanAX.js";import{bJ as St,bK as ie,bL as Ee}from"./zeni-epic-state-QRf7TPA6.js";import{a as xt}from"./SetUpAccountSection-C703iFL6-CB7BMbY7.js";import"./liveblocks-DzWLGwR5.js";import"./recharts-CcfvjpA4.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="95724f2f-b985-4782-8b64-93ed942d1f61",e._sentryDebugIdIdentifier="sentry-dbid-95724f2f-b985-4782-8b64-93ed942d1f61")}catch{}})();const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,yt={value:de.productType,width:new P(100,19)},bt={value:de.primaryAccount,width:new P(100,36)},vt={value:de.linkAccount,width:new P(100,22)},kt={value:de.status,width:new P(12,12)},$t={value:de.balance,width:new P(12,13)},N=[yt,bt,vt,kt,$t],{common:{settings:Fe,strings:{hyphen:ve}},commonSetUp:{setUp:Be}}=re.getLocalizedStrings(),T={containerPadding:new P(v[3],v[4]),containerRightPadding:new P(v[3],v[8]),iconContainerMaxWidthHeight:new P(v[6],v[7]),iconWidthHeight:new P(20,v[4]),iconPadding:new P(v[1],12),productTypeContainerMarginBottom:new P(v[3],v[0]),linkAccountContainerMarginTop:new P(v[3],v[0]),productTypeIconSize:new P(v[3],v[4])},At="bankConnectionsSettingsPage",Ct=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Ht,{windowSize:d,children:t.jsx(gt,{})});case"reimbursement":return t.jsx(qt,{windowSize:d,children:t.jsx(ft,{})});case"zeni_accounts":return t.jsx(Jt,{windowSize:d,children:t.jsx(He,{})});case"zeni_treasury":return t.jsx(Kt,{windowSize:d,children:t.jsx(mt,{})});case"charge_cards":default:return t.jsx(Gt,{windowSize:d,children:t.jsx(ht,{})})}},jt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:I,onEstablishConnectionSuccess:D})=>{const A=be(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:U}}=ct(),{plaidConnectionDetails:M,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=d,m=M.link_account,k=M.update_account,[p,C]=r.useState(void 0),[q,b]=r.useState(!1),V=()=>{b(!0)},u=p==="update_account"?k:m,[S,L]=r.useState(u.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let h,O,s,j=!1;o!=null&&(o.accType==="depositAccount"?h={code:"verified",name:"Verified"}:(h=o.providerVerificationStatus,O=o?.institutionDetails,s=h?.code,j=o?.isLoginRequired??!1));const Y=J(m.updateStatus.fetchState),X=J(k.updateStatus.fetchState),Z=J(k.fetchStatus.fetchState),E=A.mode==="light"?new fe(A.colors.brandColorJadeLight):new fe(A.colors.brandColorJadeDark),G=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Ye=>Ye.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&p==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):I(x,y(l),l),C(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,p,j,_,I]),ee=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),C(void 0),z(!1)},[f,l,o?.id,_]),{open:Q,ready:ue}=Te({token:S,onSuccess:G,onExit:ee});r.useEffect(()=>{(Y==="In-Progress"&&m.updateStatus.fetchState==="Completed"||X==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(St(s??"")||(R("link_account",y(l)),D(y(l),l)))},[m.updateStatus.fetchState,D,R,o?.providerVerificationStatus?.code,o?.id,Y,X,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(ie(s??"")||s==="verification_failed")&&!$&&p!=null&&u.linkToken===S&&u.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,u.fetchStatus.fetchState,u.linkToken,s,p,$]);const oe=$e(At,"primaryAccountSection"),F=lt(U,oe);r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==S&&L(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,S]),r.useEffect(()=>{$&&Q()},[$,Q]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||ie(s))&&(Ee(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const te=()=>{f.trackConnectBankGetBalance(l,"Settings"),C("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=O?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Ke={element:t.jsx(He,{width:T.iconWidthHeight.valuePx(c)}),color:E};return t.jsxs(zt,{windowSize:c,children:[q===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:H,action:{onBackClick:()=>b(!1)}}),document.body):null,t.jsxs(Tt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(It,{windowSize:c,isDarkMode:A.mode==="dark",children:t.jsx(Ct,{productType:l,windowSize:c})}),t.jsx(_t,{children:Fe.productNameByType[l]})]}),t.jsx(Pt,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Rt,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Bt,{isDisabled:j,children:st(Ke,c,A.mode==="dark",o,Ge,!1)}):null,t.jsxs(Dt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:A.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:v[4],fontWeight:Oe.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:A.colors.hero,weight:Oe.medium},name:$e(l,"primaryAccountSection"),placeholder:Be.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>dt(a,x,K),valueToSubLabels:(x,K)=>rt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),C("link_account"),m.linkToken==null||Ee(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Q():z(!0)}}),t.jsxs(Lt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ft,{}):null]}):null,c==="small"&&h!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:h.name,textColor:we(h.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:p==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:Z,prevUpdateState:X},onUpdateLinkTokenClick:te,onChaseInfoClick:V}):null]})]}),c==="small"?t.jsxs(Mt,{children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(De,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Wt,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":ut("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Et,{children:Fe.bankConnectionHeader.linkAccount}):null,t.jsx(Nt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Be.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Vt,{windowSize:c,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:h.name,textColor:we(h.code)}):t.jsx(ke,{children:ve})}):null,c!=="small"?t.jsxs(Ut,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(De,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},zt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
@@ -48,7 +48,7 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
48
48
|
`,Re=n(W)`
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: flex-end;
|
|
51
|
-
`,
|
|
51
|
+
`,De=n(B)`
|
|
52
52
|
color: ${e=>e.theme.colors.hero};
|
|
53
53
|
`,Et=n(B)`
|
|
54
54
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -67,11 +67,11 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
67
67
|
`,Rt=n.div`
|
|
68
68
|
display: flex;
|
|
69
69
|
justify-content: flex-start;
|
|
70
|
-
`,
|
|
70
|
+
`,Dt=n.div`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
width: ${e=>e.windowSize==="small"?"64%":"100%"};
|
|
74
|
-
`,
|
|
74
|
+
`,Ut=n.div`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
justify-content: center;
|
|
@@ -146,7 +146,7 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
146
146
|
width: 100%;
|
|
147
147
|
height: 100%;
|
|
148
148
|
}
|
|
149
|
-
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ae,strings:{empty:Yt,hyphen:Xt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new P(v[6],v[7])},Qt=()=>null,Zt=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:
|
|
149
|
+
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ae,strings:{empty:Yt,hyphen:Xt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new P(v[6],v[7])},Qt=()=>null,Zt=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:D,onEstablishConnectionSuccess:A,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=je(),U=ze().analytics,[M,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},k=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[C,q]=r.useState(void 0),b=C==="update_account"?p:k,[V,u]=r.useState(b.linkToken??null),[S,L]=r.useState(!1),$=J(k.updateStatus.fetchState),z=J(p.updateStatus.fetchState),g=J(p.fetchStatus.fetchState),h=e?.providerVerificationStatus,O=e?.isLoginRequired??!1,s="other_connection",j=h?.code,Y=r.useCallback((F,te)=>{U.trackConnectBankSuccess(s,"Settings");const ae=te.accounts.find(pe=>pe.id===e.providerAccountId)??te.accounts[0];e.paymentAccountId!=null&&C==="update_account"&&ae?.verification_status!=null&&!O?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):D(F,y(s),s),q(void 0),L(!1)},[U,s,e.paymentAccountId,e.providerAccountId,C,O,c,D]),X=r.useCallback((F,te)=>{F!=null&&(U.trackConnectBankFailure(s,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",F,te)),q(void 0),L(!1)},[U,s,e.paymentAccountId,c]),{open:Z,ready:E}=Te({token:V,onSuccess:Y,onExit:X});r.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==V&&u(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,V]),r.useEffect(()=>{S&&Z()},[S,Z]),r.useEffect(()=>{($==="In-Progress"&&k.updateStatus.fetchState==="Completed"||z==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ie(j??"")||(I("link_account",y(s)),A(y(s),s)))},[k.updateStatus.fetchState,A,I,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,p.updateStatus.fetchState,j,s]),r.useEffect(()=>{(ie(j??"")||j==="verification_failed")&&!S&&C!=null&&b.linkToken===V&&b.fetchStatus.fetchState==="Completed"&&E&&L(!0)},[E,V,b.fetchStatus.fetchState,b.linkToken,j,C,S]);const G=()=>{U.trackConnectBankGetBalance(s,"Settings"),q("update_account"),I("update_account",y(s),e.paymentAccountId)},ee=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Q={element:t.jsx(pn,{windowSize:w,children:t.jsx(wt,{})}),color:ee},ue=d.find(F=>F.accountId===e.zeniAccountId),oe=()=>{a(F=>!F)};return t.jsxs(en,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:R,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(tn,{windowSize:w,wrapperWidth:N[0].width,children:[t.jsx(nn,{children:Ae.otherAccount.title}),t.jsx(on,{children:Ae.otherAccount.subTitle})]}),t.jsxs(an,{windowSize:w,wrapperWidth:N[1].width,children:[xt(Q,w,f.mode==="dark",e,!0),t.jsxs(hn,{children:[t.jsx(mn,{children:t.jsx(Sn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(fn,{windowSize:w,children:[t.jsxs(xn,{children:[t.jsx(gn,{children:e.accountSubType?.name}),t.jsx(wn,{children:e.maskedAccountNumber}),O&&t.jsx(yn,{})]}),O&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:C==="update_account",isLoginRequired:O,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:k.fetchStatus,linkUpdateStatus:k.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:G,onChaseInfoClick:m})]})]})]}),t.jsx(cn,{windowSize:w,wrapperWidth:N[2].width,children:ue?.accountName??Yt}),t.jsx(ln,{windowSize:w,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:h.name,textColor:we(h.code)}):Xt}),t.jsxs(sn,{windowSize:w,wrapperWidth:N[4].width,children:[t.jsx(rn,{className:"balanceLabel",isRemoveHovered:M,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(dn,{className:"balanceLabel",isRemoveHovered:M,children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,M&&t.jsx(un,{children:t.jsx(Je,{moreIconType:"plain",options:[{label:Ae.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ne.important,":hover":{color:ne.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:Qt})})]})]})},en=n.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
padding: ${i.sp4};
|
|
152
152
|
padding-right: ${i.sp8};
|
|
@@ -230,7 +230,7 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
230
230
|
height: ${i.sp1};
|
|
231
231
|
cursor: inherit;
|
|
232
232
|
background-color: ${e=>e.theme.colors.grey1};
|
|
233
|
-
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:
|
|
233
|
+
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:D,onEstablishConnectionSuccess:A,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=ze().analytics,[U,M]=r.useState(!1),a=()=>{M(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,k]=r.useState(void 0),p=m==="update_account"?l:o,[C,q]=r.useState(p.linkToken??null),[b,V]=r.useState(!1),u=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",h=$?.code,O=r.useCallback((E,G)=>{w.trackConnectBankSuccess(g,"Settings");const ee=G.accounts.find(Q=>Q.id===e.providerAccountId)??G.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&ee?.verification_status!=null&&!z?c(ee?.verification_status,e.paymentAccountId,"update_account",y(g),g):D(E,y(g),g),k(void 0),V(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,D]),s=r.useCallback((E,G)=>{E!=null&&(w.trackConnectBankFailure(g,E.error_code+" "+E.error_message,"Settings"),E.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",E,G)),k(void 0),V(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:Y}=Te({token:C,onSuccess:O,onExit:s});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==C&&q(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,C]),r.useEffect(()=>{b&&j()},[b,j]),r.useEffect(()=>{(u==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(ie(h??"")||(I("link_account",y(g)),A(y(g),g)))},[o.updateStatus.fetchState,A,I,e?.providerVerificationStatus?.code,e?.paymentAccountId,u,S,l.updateStatus.fetchState,h,g]),r.useEffect(()=>{(ie(h??"")||h==="verification_failed")&&!b&&m!=null&&p.linkToken===C&&p.fetchStatus.fetchState==="Completed"&&Y&&V(!0)},[Y,C,p.fetchStatus.fetchState,p.linkToken,h,m,b]);const X=()=>{w.trackConnectBankGetBalance(g,"Settings"),k("update_account"),I("update_account",y(g),e.paymentAccountId)},Z=d.find(E=>E.accountId===e.zeniAccountId);return t.jsxs($n,{children:[U===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:R,action:{onBackClick:()=>M(!1)}}),document.body):null,t.jsxs(An,{children:[t.jsx(Cn,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(Je,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:E=>{E==="remove"&&_(e.paymentAccountId)},valueToIcon:vn})]}),t.jsxs(jn,{children:[t.jsxs(En,{children:[t.jsx(Fn,{children:t.jsx(Dn,{children:e.institutionDetails.institutionName})}),t.jsxs(Un,{children:[t.jsx(Bn,{children:e.accountSubType?.name}),t.jsx(Rn,{children:e.maskedAccountNumber}),t.jsx(In,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:X,onChaseInfoClick:a})]})]}),t.jsxs(Pn,{children:[t.jsx(Ln,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(On,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(zn,{children:[t.jsx(Tn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(_n,{children:Z?.accountName??bn})]})]})},$n=n.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
flex-direction: column;
|
|
236
236
|
padding: ${i.sp3};
|
|
@@ -281,17 +281,17 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
281
281
|
text-transform: capitalize;
|
|
282
282
|
`,Rn=n(B)`
|
|
283
283
|
margin-left: ${i.sp1};
|
|
284
|
-
`,
|
|
284
|
+
`,Dn=n(W)`
|
|
285
285
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
286
286
|
text-transform: capitalize;
|
|
287
287
|
overflow: hidden;
|
|
288
|
-
`,
|
|
288
|
+
`,Un=n.div`
|
|
289
289
|
color: ${e=>e.theme.colors.hero};
|
|
290
290
|
display: flex;
|
|
291
291
|
align-items: center;
|
|
292
292
|
flex-wrap: wrap;
|
|
293
293
|
gap: ${i.sp2};
|
|
294
|
-
`,{settings:{bankConnectionListHeader:Ce,title:Mn,infoText:Vn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new P(v[4],v[8]),subtitleSectionWidth:new P(343,580,1200),subTitleBottomMargin:new P(v[0],v[5])},Wn={qboLinkAcc:new at("smallRegular","standardRegular")},Nn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Hn="bill_pay",qn="reimbursement",Jn="zeni_accounts",Gn="charge_cards",Kn="zeni_treasury",
|
|
294
|
+
`,{settings:{bankConnectionListHeader:Ce,title:Mn,infoText:Vn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new P(v[4],v[8]),subtitleSectionWidth:new P(343,580,1200),subTitleBottomMargin:new P(v[0],v[5])},Wn={qboLinkAcc:new at("smallRegular","standardRegular")},Nn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Hn="bill_pay",qn="reimbursement",Jn="zeni_accounts",Gn="charge_cards",Kn="zeni_treasury",Ue=e=>t.jsx(Qn,{children:N.map(d=>t.jsx(Zn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(ei,{children:d.value})},d.value))}),vi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:R,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:I,onUpdatePaymentAccountLoginStatus:D,onEstablishConnectionClick:A,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:U})=>{const M=be(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Xe({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),k=m.handleSubmit(u=>{}),p=async(u,S)=>{const L=u.split("."),$=L[0],z=L[1],g=l.find(h=>h.productType===$);if($!=null&&z!=null){const h=S[$][z];if(z==="primaryAccountSection"){const O=o.find(s=>s.id===h.selectedOption)?.accType;h.selectedOption!=null&&O!=null&&w(h.selectedOption,y($),O)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&h.selectedOption!=null){const O=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;O!=null&&s!=null&&R(h.selectedOption,O,$,y($),s)}}};r.useEffect(()=>{const u=m.watch((S,{name:L})=>{L!=null&&S!=null&&Qe(()=>p(L,S))});return()=>{u.unsubscribe()}});const C=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",q=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,b=a==="small"?kn:Zt,V=()=>C?t.jsx(ii,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):q?t.jsx(tt,{message:"No bank connections added."}):t.jsxs(Yn,{windowSize:a,children:[t.jsx(Ve,{children:Ce.primary}),a!=="small"?Ue(a):null,t.jsx(nt,{...m,children:t.jsx("form",{id:ri(Nn),onSubmit:k,children:t.jsx(oi,{windowSize:a,children:e.primaryConnection.map(u=>u!=null?t.jsx(Me,{windowSize:a,children:t.jsx(jt,{allBankAccounts:e.allBankAccounts,setupView:u,connectedAccountProvider:d,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:I,onUpdatePaymentAccountLoginStatus:D,onEstablishConnectionClick:A,onEstablishConnectionSuccess:c})},u.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(ti,{children:[t.jsx(Ve,{children:Ce.other}),t.jsx(li,{children:t.jsx(it,{display:"flex",placement:"right",maxWidth:"340px",title:Ce.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(si,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?Ue(a):null,e.otherPaymentAccounts.map(u=>{const S=o.find(L=>L.id===u.paymentAccountId)?.balanceFetchStatus;return t.jsx(Me,{windowSize:a,children:t.jsx(b,{paymentAccount:u,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:d,onRemoveConnection:U,onFetchLinkTokenClick:_,onEstablishConnectionClick:A,onUpdatePaymentAccountStatus:I,onEstablishConnectionSuccess:c})},u.paymentAccountId)})]});return t.jsxs(Xn,{children:[t.jsx(Ze,{source:"BankConnectionsSettingsPage",title:Mn.bankConnections,backgroundColor:M.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ni,{windowSize:a,children:[t.jsx(ai,{windowSize:a,children:t.jsx(ci,{windowSize:a,children:Vn.bankConnections})}),V()]})]})},Yn=n.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
width: 100%;
|
|
@@ -422,4 +422,4 @@ import{d as be,J as je,a9 as Xe,cH as Qe,V as t,bD as Ze,o as i,F as re,y as P,a
|
|
|
422
422
|
width: ${i.sp3};
|
|
423
423
|
height: ${i.sp3};
|
|
424
424
|
color: ${e=>e.theme.colors.hero};
|
|
425
|
-
`,We=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:R}=e,_=H.map(a=>({label:a.accountName,value:a.accountId})),I=R.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),
|
|
425
|
+
`,We=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:R}=e,_=H.map(a=>({label:a.accountName,value:a.accountId})),I=R.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),D=d.find(a=>a.productType==="bill_pay"),A=d.find(a=>a.productType==="reimbursement"),c=d.find(a=>a.productType==="zeni_accounts"),f=d.find(a=>a.productType==="charge_cards"),w=d.find(a=>a.productType==="zeni_treasury"),U=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],M=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Hn]:{[ce]:{selectedOption:D?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:D?.primaryFundingAccount?.id,allOptions:I}},[qn]:{[ce]:{selectedOption:A?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:A?.primaryFundingAccount?.id,allOptions:I}},[Jn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:U}},[Kn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:M}},[Gn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:I}}}},ri=e=>`${e}_form`;export{vi as default,ri as formUniqueName};
|
package/dist/assets/{BillDetailPage-BOoE3r9n-BIPuOuQe.js → BillDetailPage-DJxh2CIc-BeHpC_ZG.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR as Yn,y,V as t,fc as ct,fd as Qn,o as a,fe as Jn,ff as ea,fg as ta,aP as Se,fh as na,ab as b,bD as pt,bp as mt,dw as ut,cr as yt,cs as ht,ct as bt,gp as aa,gq as ia,gr as la,gs as oa,fm as j,gt as A,fo as $,fp as k,fl as ra,b as gt,p as oe,fn as Ot,fv as sa,fq as da,fr as ca,gu as pa,gv as ma,aS as ua,ap as ft,bU as ve,gw as ya,gx as L,F as ha,u as s,ah as ba,c3 as ga,gy as fa,x as xa,gz as wa,fw as xt,H as Ta,d5 as va,cj as Da,gA as wt,b8 as Ia,ba as ja,c as Aa,bW as Ft,d6 as $a,gB as ka,aj as Et,aw as Sa,b6 as Ca,bu as Pa,gC as Ba,am as Ra}from"./index-Bkm6Mxfx.js";import{a as p}from"./sentry-nVlxguQq.js";import{n as i}from"./mui-Dg-yyLd1.js";import{a as za}from"./liveblocks-Lf8LVeH9.js";import{bO as Ma,bL as Na,bP as La,FT as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-DwXlACp-.js";import{o as Wa,t as Za}from"./LowBalancePopup-DF0W3ZsB-BL8lxWid.js";import"./core-BdfL-uia.js";import"./lottie-BAIk2ri4.js";import"./recharts-DVyIhUUu.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="14411724-a128-4a23-be80-32932931a33d",e._sentryDebugIdIdentifier="sentry-dbid-14411724-a128-4a23-be80-32932931a33d")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Ga,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Xa}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Gt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&G.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,G,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Ge]=p.useState(!1),[qe,Xe]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",An=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,$n=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?$a(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Qt(),Ge(!1),qe&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(gi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",u)}`},children:t.jsx(A,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",u)}`},children:t.jsx(A,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",u)}`},children:t.jsx(A,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",u)}`},children:t.jsx(A,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",u)}`},children:t.jsx(A,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",u)}`},children:t.jsx(A,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?An:d.paymentToPI!=null?d.paymentToPI.displayText:$n,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs($i,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
1
|
+
import{J as Zn,aw as Un,e as Kn,gi as Vn,gj as Hn,gk as Xn,gl as qn,ce as Gn,aR as Yn,y,V as t,f9 as ct,fa as Qn,o as a,fb as Jn,fc as ea,fd as ta,aO as Se,fe as na,aQ as b,bD as pt,bp as mt,dx as ut,cq as yt,cr as ht,cs as bt,gm as aa,gn as ia,go as la,gp as oa,fj as I,gq as $,fl as A,fm as k,fi as ra,b as gt,p as oe,fk as Ot,fs as sa,fn as da,fo as ca,gr as pa,gs as ma,aS as ua,ao as ft,bU as ve,gt as ya,gu as L,F as ha,u as s,ag as ba,c3 as ga,gv as fa,c as xa,gw as wa,ft as xt,N as Ta,d5 as va,cj as Da,gx as wt,b8 as ja,ba as Ia,d as $a,bW as Ft,d6 as Aa,gy as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gz as Ba,al as Ra}from"./index-DK3PYuee.js";import{a as p}from"./sentry-DS5py-mq.js";import{n as i}from"./mui-CgqbPqeT.js";import{a as za}from"./liveblocks-DzWLGwR5.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-QRf7TPA6.js";import{o as Wa,t as Za}from"./LowBalancePopup-DbtHeVY--C1kZvBgV.js";import"./core-MmJvanAX.js";import"./lottie-C8IpdMqp.js";import"./recharts-CcfvjpA4.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="77cbbdba-f11a-4039-ada6-a5c6193040ff",e._sentryDebugIdIdentifier="sentry-dbid-77cbbdba-f11a-4039-ada6-a5c6193040ff")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),Xe(!1),qe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,li=i(Ba)`
|
|
@@ -10,7 +10,7 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
10
10
|
&:hover {
|
|
11
11
|
color: ${e=>e.theme.colors.primary};
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,It=i.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
|
|
16
16
|
cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
|
|
@@ -46,7 +46,7 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
49
|
-
|
|
49
|
+
`,$t=i.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
width: max-content;
|
|
52
52
|
align-items: center;
|
|
@@ -82,7 +82,7 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
82
82
|
&:hover {
|
|
83
83
|
background-color: ${e=>e.theme.colors.background};
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
`,At=i(ga)`
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
color: ${e=>e.theme.colors.hero};
|
|
88
88
|
width: 20px;
|
|
@@ -116,7 +116,7 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
116
116
|
`,pi=i.div`
|
|
117
117
|
height: 100%;
|
|
118
118
|
overflow: scroll;
|
|
119
|
-
`,
|
|
119
|
+
`,Ie=i.div`
|
|
120
120
|
display: flex;
|
|
121
121
|
flex-direction: column;
|
|
122
122
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -124,11 +124,11 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
124
124
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
125
125
|
border-radius: ${a.sp2};
|
|
126
126
|
margin: ${a.sp3} 0;
|
|
127
|
-
|
|
127
|
+
`,$e=i.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
padding-top: ${a.sp3};
|
|
131
|
-
`,mi=i.div
|
|
131
|
+
`,mi=i.div``,Ae=i(ja)`
|
|
132
132
|
color: ${e=>e.theme.colors.primary};
|
|
133
133
|
`,z=i.div`
|
|
134
134
|
display: flex;
|
|
@@ -136,14 +136,14 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
136
136
|
background-color: ${e=>e.theme.colors.grey3};
|
|
137
137
|
min-height: 1px;
|
|
138
138
|
max-height: 1px;
|
|
139
|
-
`,ui=i(
|
|
139
|
+
`,ui=i(Ia)`
|
|
140
140
|
display: flex;
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: space-between;
|
|
143
143
|
color: ${e=>e.theme.colors.champion};
|
|
144
144
|
margin-top: ${a.sp2};
|
|
145
145
|
height: 31px;
|
|
146
|
-
`,yi=i(
|
|
146
|
+
`,yi=i($a)`
|
|
147
147
|
color: ${e=>e.theme.colors.champion};
|
|
148
148
|
`,hi=i.div`
|
|
149
149
|
display: flex;
|
|
@@ -209,11 +209,11 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-direction: column;
|
|
211
211
|
height: ${a.sp11};
|
|
212
|
-
`,
|
|
212
|
+
`,ji=i(ba)`
|
|
213
213
|
height: ${a.sp3};
|
|
214
214
|
width: ${a.sp3};
|
|
215
215
|
color: ${e=>e.theme.colors.hero};
|
|
216
|
-
`,
|
|
216
|
+
`,Ii=i.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
margin-left: ${a.sp2};
|
|
@@ -222,7 +222,7 @@ import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR
|
|
|
222
222
|
`,ke=i(wa)`
|
|
223
223
|
margin-left: ${a.sp2};
|
|
224
224
|
color: ${e=>e.theme.colors.hero};
|
|
225
|
-
|
|
225
|
+
`,$i=i.div``,Ai=i.div`
|
|
226
226
|
display: flex;
|
|
227
227
|
flex-direction: column;
|
|
228
228
|
gap: ${a.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,u as
|
|
1
|
+
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,g8 as Y}from"./index-DK3PYuee.js";import{a as T}from"./sentry-DS5py-mq.js";import{n as h}from"./mui-CgqbPqeT.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BCyL8Jdr-B2UM5UTK.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./zeni-epic-state-QRf7TPA6.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="37539478-22d3-4563-8a6b-1ea9a7b2c0cd",e._sentryDebugIdIdentifier="sentry-dbid-37539478-22d3-4563-8a6b-1ea9a7b2c0cd")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=G(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=M({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=W(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=p.length>1?p.length-1:0,v=p.length>0?p[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=p.findIndex(d=>d.approvalRuleId===i),v=m>0?p[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const q=J(d);K(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,F as S,V as t,bD as G,
|
|
1
|
+
import{J as W,F as S,V as t,bD as G,T as V,aQ as f,y as r,al as N,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d1 as K,u as l,ba as J,N as T,b9 as Q,p as j,c_ as X,bu as Y,b as Z}from"./index-DK3PYuee.js";import{n as o}from"./mui-CgqbPqeT.js";import{a as ee}from"./sentry-DS5py-mq.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./zeni-epic-state-QRf7TPA6.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d869069e-da18-4e52-a3fb-63d67cf9f96e",e._sentryDebugIdIdentifier="sentry-dbid-d869069e-da18-4e52-a3fb-63d67cf9f96e")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},U={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:b,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},_={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:M,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{b(x)},"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,H)=>t.jsxs(A,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${H}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},E))})}),v?t.jsx(q,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:_}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,7 +14,7 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
14
14
|
border-color: ${e=>e.isUpdatingApprovalRules===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,ie=o(
|
|
17
|
+
`,ie=o(J)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -30,7 +30,7 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
30
30
|
width: ${i.sp8};
|
|
31
31
|
height: 2px;
|
|
32
32
|
background-color: ${e=>e.theme.colors.primary};
|
|
33
|
-
`,
|
|
33
|
+
`,k=o.div`
|
|
34
34
|
width: 6px;
|
|
35
35
|
height: 6px;
|
|
36
36
|
border-radius: 3px;
|
|
@@ -57,7 +57,7 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
57
57
|
box-sizing: border-box;
|
|
58
58
|
position: relative;
|
|
59
59
|
`,ae=o.ul`
|
|
60
|
-
${e=>`${
|
|
60
|
+
${e=>`${U.stepper.style(e.windowSize)}`};
|
|
61
61
|
position: relative;
|
|
62
62
|
padding-left: ${i.sp6};
|
|
63
63
|
list-style: none;
|
|
@@ -172,10 +172,10 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
172
172
|
display: inherit;
|
|
173
173
|
gap: inherit;
|
|
174
174
|
`,L=o.span`
|
|
175
|
-
${e=>`${
|
|
175
|
+
${e=>`${U.amount.style(e.windowSize)}`};
|
|
176
176
|
color: ${e=>e.theme.colors.primary};
|
|
177
177
|
word-break: break-word;
|
|
178
|
-
`,
|
|
178
|
+
`,y={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const b=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(G,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:b,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(V,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:b,onClick:()=>{w()},"data-testid":f("add-approval-rule-bill-pay"),children:[t.jsx(fe,{}),t.jsx(ye,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
|
|
179
179
|
display: flex;
|
|
180
180
|
min-height: 100%;
|
|
181
181
|
flex-direction: column;
|
|
@@ -197,23 +197,23 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
197
197
|
align-items: center;
|
|
198
198
|
gap: ${i.sp3};
|
|
199
199
|
background-color: ${e=>e.theme.colors.grey4};
|
|
200
|
-
`,ge=o(
|
|
200
|
+
`,ge=o(N)`
|
|
201
201
|
color: ${e=>e.theme.colors.hero};
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
|
-
width: ${e=>
|
|
205
|
-
padding-top: ${e=>
|
|
206
|
-
padding-bottom: ${e=>
|
|
207
|
-
`,$e=o(
|
|
204
|
+
width: ${e=>y.titleWidth.valuePx(e.windowSize)};
|
|
205
|
+
padding-top: ${e=>y.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
206
|
+
padding-bottom: ${e=>y.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
207
|
+
`,$e=o(N)`
|
|
208
208
|
cursor: pointer;
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-direction: row;
|
|
211
211
|
justify-content: center;
|
|
212
212
|
align-items: center;
|
|
213
213
|
padding: ${i.sp3} ${i.sp4};
|
|
214
|
-
gap: ${e=>
|
|
214
|
+
gap: ${e=>y.addApprovalGap.valuePx(e.windowSize)};
|
|
215
215
|
|
|
216
|
-
width: ${e=>
|
|
216
|
+
width: ${e=>y.width.valuePx(e.windowSize)};
|
|
217
217
|
height: ${i.sp8};
|
|
218
218
|
|
|
219
219
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -233,9 +233,9 @@ import{J as W,F as S,V as t,bD as G,m as V,ab as b,y as r,am as U,o as i,aP as z
|
|
|
233
233
|
border-color: ${e=>e.theme.colors.primary};
|
|
234
234
|
}
|
|
235
235
|
margin-bottom: ${i.sp6};
|
|
236
|
-
`,
|
|
236
|
+
`,fe=o(K)`
|
|
237
237
|
width: ${i.sp3};
|
|
238
238
|
height: ${i.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,ye=o.div`
|
|
240
240
|
color: ${e=>e.theme.colors.hero};
|
|
241
241
|
`;export{Ce as default};
|