@zeniai/web-cockpit-ui 1.14.22-qa → 1.14.23-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-Csc8UPGK-3Hzrt8sv.js → ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js} +3 -3
- package/dist/assets/{AIPerformancePage-BNK1zghX-BOagkgDU.js → AIPerformancePage-DCq95N_N-DO8MzOBI.js} +26 -26
- package/dist/assets/{AccountInfoPage-WoQj1Knu-C0NqBhcm.js → AccountInfoPage-wfDS5ToF-BkRJ-lxL.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BsiMZrTm-CTTq-Yc2.js → AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-CNfkV6iH.js → AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-DHBcdmQI.js → AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js} +11 -11
- package/dist/assets/{AccountRow-mHhwnvVT-DlSD5_cv.js → AccountRow-99zfxKet-iP3hUTyF.js} +19 -19
- package/dist/assets/{AccountsPromoCardStack-jk87J-uY-BgOkj47K.js → AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C2mfRuV9.js → AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js} +2 -2
- package/dist/assets/{AddToWalletPage-BmaqhQ_z-CCkQvzoH.js → AddToWalletPage-CoW0Ppg4-WAfWgl1v.js} +14 -14
- package/dist/assets/{AgingReportsPage-B2tfefId-BASbPXl4.js → AgingReportsPage-Dgi5oFl4-Cao6O7NF.js} +10 -10
- package/dist/assets/{AllUserItems-C5jB4yc_-CbjMIbTC.js → AllUserItems-6iESftSq-BBGiJxHd.js} +9 -9
- package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-BApKFP0l.js → ApAgingDetailPage-jEL75hOV-BLy4yEPM.js} +3 -3
- package/dist/assets/{AppBasePage-DOXcrTCE-gk9eXfPv.js → AppBasePage-CMHbFdBh-DTT6hgO7.js} +3 -3
- package/dist/assets/{AppDrawerContent-Cav4Sy09-DQ-THdyv.js → AppDrawerContent-NAyrnDCL-B7ak2Xor.js} +40 -19
- package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BmNSi22b.js → ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js} +5 -5
- package/dist/assets/{ArAgingChart-B3NtEWh--BOlmxwm1.js → ArAgingChart-DPrIHwSE-ym_zT_Xu.js} +9 -9
- package/dist/assets/{ArAgingDetailPage-uX2oVxj4-C7e2SNBe.js → ArAgingDetailPage-CdNiD7uR-DccUXEIa.js} +4 -4
- package/dist/assets/{AttachmentView-BQMzs_UT-BMIgc-Op.js → AttachmentView-Cmh726Zl-C82E74gy.js} +3 -3
- package/dist/assets/{BankAccountSection-MWGcLsKa-Dl-WZeBC.js → BankAccountSection-jRnEB-Ut-BpoXdxMl.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CBlOG9xN-Bzq_eEtP.js → BankAccountWarningSection-KznYA-cf-CV3aOKhB.js} +3 -3
- package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CiGjimFc.js → BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js} +15 -15
- package/dist/assets/{BillDetailPage-DU3KKWCI-BZd_KVnK.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-CV1bwFpI.js → BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-B6BIB1S2.js → BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js} +11 -11
- package/dist/assets/{BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js} +32 -32
- package/dist/assets/{BillPaySetUpPage-D7335PCo-DjOfSrPK.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js} +2 -2
- package/dist/assets/{BillingSettingsPage-PsWVXatK-GSxyAYxr.js → BillingSettingsPage-BfMIxeqM-C_WtlbYK.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-Dsb-J7KQ.js → BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js} +1 -1
- package/dist/assets/{BoxItem-Bf9DDBGl-CQKtUhxk.js → BoxItem-CIOib-WX-Cvut8WLk.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DZpS0b_1-CT7CCzj9.js → BusinessVerificationPage-Czf-y16x-BBZA7C_w.js} +14 -14
- package/dist/assets/{CardNumberSubText-8FNDlBHV-CNyFCSaC.js → CardNumberSubText-B8CivrXd-CzHZkmhR.js} +2 -2
- package/dist/assets/{CashbackDetailPage-CUc07auE-C19Doku1.js → CashbackDetailPage-BOTxd8DW-CNmZsYqR.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-DhVPYQn7.js → ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js} +40 -40
- package/dist/assets/{ChargeCardListPage-BFssQAQg-DEX46cKA.js → ChargeCardListPage-Q1zat_TQ-BbazZeau.js} +18 -18
- package/dist/assets/{ChargeCardListTable-BuI0T0Bn-D8Xh4Bma.js → ChargeCardListTable-CKH-EZW4-CiPC1KQt.js} +28 -28
- package/dist/assets/{ChargeCardPromoPage-CRqyciNL-BVrnHPJ6.js → ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js} +30 -30
- package/dist/assets/ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-o0pjefqQ.js → ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js} +7 -7
- package/dist/assets/{ChargeCardUtils-DQztOSYJ-CLG3pIYt.js → ChargeCardUtils-D4KmVUMt-Bgc7_40s.js} +1 -1
- package/dist/assets/{ChaseOverlay-BaGgoJZk-DWWls_0t.js → ChaseOverlay-IbWtzNzT-CiTCJc7A.js} +10 -10
- package/dist/assets/{CheckDepositDrawerPage-90KwCes_-CnbI6CmC.js → CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js} +6 -6
- package/dist/assets/{CollapsableReportTable-dCUjgg1X-Djm0gH1n.js → CollapsableReportTable-jOFcWQi9-BD7j44zD.js} +109 -109
- package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-D-gHI0TC.js → CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js} +20 -20
- package/dist/assets/{CompanyPassportCard-BOuhptIV-BgTFJUhX.js → CompanyPassportCard-BbJLMFqe-CAuk2TxY.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CPxR1IKu-C3d76QPp.js → CompanyPassportPage-BwCMcjB9-C5l65FSQ.js} +25 -25
- package/dist/assets/{CompleteProfile-BIN-sI3M-DNy4fSuu.js → CompleteProfile-Dz4laW45-D0LCAfKu.js} +1 -1
- package/dist/assets/{ConfettiBurst-nTrV9Xfw-Dk9LJSUX.js → ConfettiBurst-B2j3QxzW-BoOT7g5H.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-1OZpFxN1.js → CreateOrEditVendorPage-z2chPZUl-moxdaTde.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-DcQwewDZ.js → CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js} +17 -17
- package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DXgZPZoJ.js → CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js} +10 -10
- package/dist/assets/{CurrencySelectField-ltt1zExP-DAkE7-Ko.js → CurrencySelectField-CxNprN2u-CPSD5Bje.js} +2 -2
- package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-B_YzYJ6X.js → CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js} +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-BgPsJzDd.js → CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js} +11 -11
- package/dist/assets/CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-Dhqb3SU1.js → CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js} +6 -6
- package/dist/assets/CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js +202 -0
- package/dist/assets/{Dashboard-CptSiho6-BwvD4p7k.js → Dashboard-BtcnzaY6-gJck50nw.js} +230 -230
- package/dist/assets/{DashboardReportPage-G32NOQFe-CKy1nC1v.js → DashboardReportPage-C6jLfLtF-BPfMWD5H.js} +9 -8
- package/dist/assets/DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-CQX9MBK--CWCsAg_Q.js → DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-DgP66AFx.js → DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js} +1 -1
- package/dist/assets/{DownloadOverlay-DN4zwFl5-BEzbatXT.js → DownloadOverlay-BcH72YTL-B8MaexAj.js} +1 -1
- package/dist/assets/{DrawerPage-B-jrvyA1-CKA5TJxq.js → DrawerPage-CzHhh0IP-BIFSEwpr.js} +10 -10
- package/dist/assets/{EditPeoplePage-BTXEd5bm-_7IRpStx.js → EditPeoplePage-Z5btEDax-BKTta_xp.js} +7 -7
- package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-Dvvb6wio.js → EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js} +74 -74
- package/dist/assets/{EntityDetailPage-CCTwe1iu-C-sJ83i-.js → EntityDetailPage-Bc4YVpPC-DWs1zPrx.js} +3 -3
- package/dist/assets/{EntitySummarySection-B7uoP2ou-CTFdZL_q.js → EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js} +4 -4
- package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-CHZ8rQmT.js → ExpenseAutomationPage-EjI20a6v-rIac0d4o.js} +90 -90
- package/dist/assets/{ExpressPayPage-BdUERste-DCzQgqA4.js → ExpressPayPage-562vstqT-BTrZQzDN.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-B6_exSoS-BqYYdx51.js → FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js} +1 -1
- package/dist/assets/{FollowStepsSection-BoA-EzkO-d1Bp0uLs.js → FollowStepsSection-D60JM8h_-WgnL9DSD.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BAd8-MIV.js → GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js} +6 -6
- package/dist/assets/HelpButton-hflpTkYP-BxxKYxfC.js +28 -0
- package/dist/assets/{InformationCardStack-Dvu4sQsc-C3V_rhfP.js → InformationCardStack-BsxmscQq-CSrArWRb.js} +3 -3
- package/dist/assets/{InsightsCardStack-DffcRWuM-DdMPB19q.js → InsightsCardStack-5JDl2mCA-CZ5TshWK.js} +7 -7
- package/dist/assets/{InsightsSection-C8Oi6wcZ-BTvSiRSk.js → InsightsSection-DsO5tfQL-CBUNqXt7.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-DdjKQOAK.js → IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-DcOwGqfC.js → InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-Cv5Opxe0.js → InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js} +5 -5
- package/dist/assets/InviteFormPage-D0QCEMkX-DZr12vmY.js +312 -0
- package/dist/assets/{InvitePageListView-DG91-L1w-Ccb2SPnd.js → InvitePageListView-CVf8HrhY-cBhycZNO.js} +24 -24
- package/dist/assets/{InvitePeoplePage-6ANmf4z2-Gjpd5Nlk.js → InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DmRrXww6.js → InvoiceUploadSection-BuwWumE2-CTijWOqK.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-gohjPIRu-CyjyM7F6.js → IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js} +26 -26
- package/dist/assets/{LabeledAddressValue-C6EUPzNB-QLBvt6jx.js → LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js} +1 -1
- package/dist/assets/LabeledAddressValueField-DLou-2Lm-30_LmoCw.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-D1lghLfJ.js → LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-BM53pRh3.js → LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js} +8 -8
- package/dist/assets/{LabeledDocumentField-CzTqgS97-DgW-cOWG.js → LabeledDocumentField-By7zV2VD-Deh87JH9.js} +4 -4
- package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-CG2mVZcx.js → LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js} +6 -6
- package/dist/assets/{LabeledText-BICN3vpf-j9xXYGac.js → LabeledText-D4fC1Hz2-Cxv5m94v.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-5ZbgY5UP.js → LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-C9drclxV.js → LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-BNWOmBHj-7bLiUwjm.js → LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js} +5 -5
- package/dist/assets/{LowBalancePopup-Dhrtsv_E-CHi-1sQp.js → LowBalancePopup-TCSP5zrD-BmN6CG0D.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-BF1Po-XI.js → MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-CnsVUDeG.js → MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CBxvvvyS.js → MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-ekYBsb2w.js → MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-BfT3nCUx.js → MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js} +4 -4
- package/dist/assets/{MailingDetailsSection-B6ZCAac5-cPG_LVX_.js → MailingDetailsSection-DOuPh_kK-CJdFvtR9.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js → MeetingCalenderPopup-Bn5picNg-BZadZTcq.js} +1 -1
- package/dist/assets/{Menu-DOJJ_REW-BCRwc2vM.js → Menu-D_vf2LDo-39KwK8wM.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-Q0JyO2hZ.js → MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--CWT-l6Ro.js → MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CIfFufvo-DTHqDNHT.js → MyProfileSettingsPage-gPNoKP10-gCIICwqR.js} +10 -10
- package/dist/assets/{NavBarWithPicker-CvhnGryh-DdhjHjGJ.js → NavBarWithPicker-BlYfbDi0-BiD5rNBH.js} +5 -5
- package/dist/assets/{NavigationArrow-CXkUidH6-2_3iCUtc.js → NavigationArrow-CQ_K0Bon-C-8VFiTg.js} +1 -1
- package/dist/assets/{NavigationDots-hBq7kHVj-BCo98sBw.js → NavigationDots-CI0cjpQA-B6oVaxeu.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-BRtrbYV8.js → NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js} +6 -6
- package/dist/assets/{NoDataChart-C4KqN3ua-9QC86ow3.js → NoDataChart-Dg1_sU_O-flEThGvM.js} +1 -1
- package/dist/assets/{NoDataTable-DaX07HI0-DUwVgUQv.js → NoDataTable-qTYBbL2H-BGrSHe_q.js} +1 -1
- package/dist/assets/{NotFoundPage-BIh20jzm-sVTg_rO_.js → NotFoundPage-DYjrSF7l-D7C6Z_Gh.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Dg6_eEe0.js → NotificationSettingsPage-DZHlnrbH-D8paihJx.js} +13 -13
- package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +1 -0
- package/dist/assets/{NotificationsPage-oy3LHVU2-JTZhFwYV.js → NotificationsPage-QgnztPHs-CnFUIBHp.js} +35 -35
- package/dist/assets/{OpExByVendorPage-D8jXzTd6-OW9DyZtS.js → OpExByVendorPage-_AMvFFwS-DGSt9CNm.js} +7 -7
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-BNCWaeLU.js → OverlayContainerPage-Bmu909Fo-CI9x-FUu.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BQW2_QDB-jLVVbQw5.js → PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-DuCBh-5g.js → PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js} +5 -5
- package/dist/assets/{PeoplePage-B7s3mjRX-C_HkK47k.js → PeoplePage-DZr3Lusf-M76DhnJE.js} +23 -23
- package/dist/assets/PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js +207 -0
- package/dist/assets/{PortfolioDetails-BFqRNjFs-B16IZ_Hj.js → PortfolioDetails-BH-sfG9j-CdKUfZw3.js} +19 -19
- package/dist/assets/{ProductsCarousel-BaTq9uMB-BdtwLLGf.js → ProductsCarousel-C4J19mb--DcgR5jdw.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bf3Dizji-CUuhVAFC.js → PromoBaseCards-Bj4SLu8_-CC7a127A.js} +7 -7
- package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-Cmx6oO5C.js → QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js} +7 -7
- package/dist/assets/{QBOSetupSection-BWJoUKzu-D4FI2JWK.js → QBOSetupSection-BCdoUjwK-BF2gwacX.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-7wS_9PV2.js → ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-Ct61U8sq.js → ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js} +9 -9
- package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-CveG64HT.js → ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js} +11 -11
- package/dist/assets/{ReimbursementPromoPage-BFwztEak-DRUSiKPZ.js → ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js} +14 -14
- package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-Bl9OuMjF.js → ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-C8Evgmpl.js → ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js} +1 -1
- package/dist/assets/{ReloadCard-BmYf1NZf-CKjtyagc.js → ReloadCard-DxJMY9If-DFVN_BWj.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-yTxheyC3-DiW7eeSj.js → ReportTableViewSelector-lMBROmrI-C57N0Ev_.js} +11 -11
- package/dist/assets/{ReportsPage-DZtCp9CP-CW3zHRvy.js → ReportsPage-DMYLnwc7-C986BuH8.js} +10 -10
- package/dist/assets/{RevenueChart-CXSh5l_p-Cvtb1pE9.js → RevenueChart-DD8vb3zi-DI64DZjn.js} +1 -1
- package/dist/assets/ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js +290 -0
- package/dist/assets/{ReviewOverlay-B2jf6tfG-DrMTBexr.js → ReviewOverlay-sqbjCjkE-BYmWnWTV.js} +10 -10
- package/dist/assets/{RoleWithToolTip-DHdLJcWR-BIiBiCaf.js → RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-Dy9Fl63v.js → ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BWH1TrGv.js → ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-DxeA_i7k.js → ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js} +50 -50
- package/dist/assets/{ScreenRoutes-Dmbs-WC7.js → ScreenRoutes-CG3ALmQe.js} +1 -1
- package/dist/assets/SetUpAccountSection-CDXmRiGQ-DykmFmYq.js +378 -0
- package/dist/assets/{SetUpDefaultSection-BM57n5BV-DVG6pZDR.js → SetUpDefaultSection-VPie4JZS-CUUkgLvy.js} +6 -6
- package/dist/assets/SignIn-9DfCxy9Q-D5TOW1KJ.js +407 -0
- package/dist/assets/{SignInScreen-D9xxiCVL.js → SignInScreen-C5ZC9m_8.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BphSarNr-Cl92vHkt.js → SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BBuwXYWk.js → SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js} +26 -26
- package/dist/assets/{SpendManagementSection-DKqHikhq-hB-bTkoV.js → SpendManagementSection-DGGOMGEz-BERrqLUW.js} +6 -6
- package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-CZUZZ_7E.js → SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js} +21 -21
- package/dist/assets/{StatementItem-Ki_Mzpf9-FWP9W3D7.js → StatementItem-1vBLASxl-Bg-WCzCW.js} +4 -4
- package/dist/assets/{StatementsPage-B6XMWWpt-CfSSyoxA.js → StatementsPage-cCluGN33-CUSb15rA.js} +1 -1
- package/dist/assets/{StatusSwitcher-BkAnAbyd-DhZFTaVL.js → StatusSwitcher-efLzDuyw-yZjEoNnl.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Au3snima-KoDMUDJP.js → SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js} +1 -1
- package/dist/assets/{SummaryCard-B-IXQpJ7-Bb42YLKq.js → SummaryCard-BsPejHZG-DSp7yYcI.js} +1 -1
- package/dist/assets/{TaskManagementPage-BPNEy-p0-BA-MVkpi.js → TaskManagementPage-CkdITpbn-BnN3mtBv.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-BeYaJEn7.js → TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-D1cuigpc-Cz5nqZB9.js → TimeframeSwitcher-BmhH741X-Bq2UrAGM.js} +2 -2
- package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-DGs87cY3.js → TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js} +1 -1
- package/dist/assets/{TopExCard-BWOozDK3-DDnX9T6b.js → TopExCard-DBuo1QUF-Bqy_yS0O.js} +6 -6
- package/dist/assets/{TopExDetailPage-DpYLakrO-DvZBg7fP.js → TopExDetailPage-CGPgaWRb-BefBmW9C.js} +20 -20
- package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +912 -0
- package/dist/assets/TransactionList-DP9cEVya-Dnf5dIML.js +147 -0
- package/dist/assets/{TransactionListBig-CefZbd83-DMzncjPA.js → TransactionListBig-B_s15U1P-DxO9dvuT.js} +15 -15
- package/dist/assets/{TransactionListPage-CM319tsV-zDExAxeI.js → TransactionListPage-DpYLFl8A-CtiLL9up.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-BW7z7Azf.js → TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js} +4 -4
- package/dist/assets/{TransferDrawerPage-0vQtF6ID-D9OzOZ5A.js → TransferDrawerPage-CxdQzo0m-DrhEn9ys.js} +79 -79
- package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-DYMVFkUe.js → TreasuryOverviewPage-D7vqj60i-DA26_cse.js} +22 -22
- package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-BaiGRfzl.js → TreasuryPromoPage-BuxEHMpT-BDwacXK1.js} +12 -12
- package/dist/assets/{TreasurySetupPage-BJRBNCvY-D5jIb5sO.js → TreasurySetupPage-BIfbbeL3-V_YXLN-n.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-CmmWNkYy.js → TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-C_l8Gxih.js → TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-BehP5Xwy.js → TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js} +27 -27
- package/dist/assets/{TrendChart-BAMRDfp7-C3XYi6nw.js → TrendChart-7kPgcETh-CZhHOMVt.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CgbouMHP-DZBB4tt9.js → TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2-BHgtmgBi.js → UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-DSWbn8gm-B4Ou25f_.js → UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-BNf1qOT4.js → UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-CA-cVVNX-if5nT9kw.js → Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-Dbljblmv.js → VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js} +1 -1
- package/dist/assets/{VendorDetailPage-CceVHonS-Pq3jkMrt.js → VendorDetailPage-B9pWIvXP-p9O1B1Vq.js} +21 -21
- package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-BZmPD8iA.js → VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-BrMoF3qX.js → VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-F-MIWQgi.js → VendorFirstReviewPage-ANhBsl69-D02KU5IA.js} +63 -63
- package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-Bsx2kP_t.js → VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js} +31 -31
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-Cqo_E_R0.js → VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-CZGZ3lbp.js → VendorsAccountsSection-BclWgEaB-DOMr50bF.js} +4 -4
- package/dist/assets/VerifyDevice-CRrOo66b-ZlA7gEbg.js +97 -0
- package/dist/assets/{VideoPopup-0LSxcyRX-Dg1obuHI.js → VideoPopup-qS-ig_U0-VKyag34q.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DR9oeIuj-BGAzKYV3.js → WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js} +2 -2
- package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-QUKSLtDI.js → ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js} +21 -21
- package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DvE1_-3Q.js → ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js} +10 -10
- package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-C7ZAIazr.js → ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-KoQmtnm_.js → ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js} +16 -16
- package/dist/assets/{ZeniAccountSetupPage-CveI2__B-D63zX7um.js → ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js} +4 -4
- package/dist/assets/{ZeniCopyright-D6e3OekQ-DUr2raAa.js → ZeniCopyright-rY1T9xhh-Dfov-yky.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-BeVNGkCh.js → ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js} +1 -1
- package/dist/assets/analytics-B3n5JGPc.js +7 -0
- package/dist/assets/{analyticsHelper-kBY_WnuZ.js → analyticsHelper-B0L0ncmN.js} +1 -1
- package/dist/assets/{analyticsHelper-CYiy63P3-ZsDfu10l.js → analyticsHelper-BcJgRhqY-D6z677ff.js} +1 -1
- package/dist/assets/chartTypes-BoblEsVF-BVffEXCf.js +1 -0
- package/dist/assets/{commonDimensions-DbTYS1hy-q1OJGzej.js → commonDimensions-CFd7y7qU-C7Jvc2Ks.js} +1 -1
- package/dist/assets/{detailCommon-BeqWtSZF-DN5q8hn4.js → detailCommon-MYixZ3RD-BFmVTLGA.js} +6 -6
- package/dist/assets/{downloadPdf-CLTp2aZt-ev2v3-yy.js → downloadPdf-CgupyHRa-D9AEGU0d.js} +1 -1
- package/dist/assets/{index-NilHeiJu.js → index-B8OsEhOZ.js} +753 -749
- package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Cq8XhJtM.js → mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-CnYxsg0R.js → mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-3b46l63c-CMjlOqUe.js → mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-UJZDjMX_.js → mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-dBteZqAP.js → mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-B3XLpQv_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-D49XFhoj-p77KsEJK.js → toCOABalancesWithID-CndsNNsv-CWYFJv_O.js} +1 -1
- package/dist/assets/{toChartData-C9pHl0xA-peeaxrwr.js → toChartData-B9eYLI57-CKqynvrs.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CkjbPhqI-DTu39-tM.js → treasuryColorHelper-D4iDeX95-DVOhzALi.js} +1 -1
- package/dist/assets/{uploadAttachment-BniS82zn-CRjJ8eJB.js → uploadAttachment-C2I6mBBB-CPoUzWwI.js} +14 -14
- package/dist/assets/{uploadReceipts-dxsKhm9I-D4Vuwibk.js → uploadReceipts-dxsKhm9I-YtN4h-4H.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ChargeCardSetupPage-BzqdaEET-DBBXZ-n5.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-BcEPhc3o.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-B8cf9wWc-C5L0Tki4.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-Dfv86gVc-09rPr3CW.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-DTkdczBR-v_i9-lwP.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-C6lB4Qyv-CuZ8nnnO.js +0 -66
- package/dist/assets/ExpenseAutomationOverviewPage-Bz-2JPdW-Do3fJYNG.js +0 -222
- package/dist/assets/HelpButton-DEwtg0Ez-DdlPkijU.js +0 -28
- package/dist/assets/InviteFormPage-CRRvruND-CnzFaBAu.js +0 -312
- package/dist/assets/LabeledAddressValueField-CC4nYBb8-CaZARfW3.js +0 -45
- package/dist/assets/NotificationsListConfig-C14JCaD1-htQ299sQ.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-eonsRKDg-D0R6dTFQ.js +0 -207
- package/dist/assets/ReviewDetailsPage-DG7ms5Hy-CwXT2Ca2.js +0 -290
- package/dist/assets/SetUpAccountSection-CKdSkMBO-RvUBOtno.js +0 -378
- package/dist/assets/SignIn-BMjCrrGx-B6jW8hme.js +0 -407
- package/dist/assets/TransactionDetailPage-Bxzam_ho-ytwgKMhn.js +0 -878
- package/dist/assets/TransactionList-CEfjoVPA-Fnrm73eH.js +0 -147
- package/dist/assets/VerifyDevice-dg83_W2W-db8vxgEO.js +0 -96
- package/dist/assets/analytics-CBL_L82S.js +0 -7
- package/dist/assets/chartTypes-sx4859ds-DQIhaauj.js +0 -1
package/dist/assets/{BillDetailPage-DU3KKWCI-BZd_KVnK.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as _n,fR as Wn,bI as Zn,a1 as Kn,M as Vn,C as u,j as t,l as E,cL as it,cM as Un,o as a,cN as Yn,cO as Xn,_ as b,cP as Gn,$ as Ae,cQ as Hn,aW as lt,aJ as ot,dt as rt,bU as st,bW as dt,bX as ct,fS as qn,fT as Jn,fU as Qn,fV as ea,cV as $,cW as j,cX as I,fW as A,cU as ta,v as pt,g as ie,cY as Rt,cZ as na,c_ as aa,c$ as ia,fX as la,fY as oa,a3 as ra,p as mt,bA as Te,fZ as sa,f_ as O,q as r,x as da,bw as ca,f$ as pa,a2 as ma,g0 as ua,g1 as ut,d3 as yt,X as ya,cA as ha,bN as ba,al as xa,an as ga,L as fa,bp as zt,g2 as wa,i as Mt,ab as Ta,aj as va,aO as Da,eL as $a,n as ja}from"./index-NilHeiJu.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Ia}from"./liveblocks-CP09Cz-7.js";import{o as Aa,t as ka}from"./LowBalancePopup-Dhrtsv_E-CHi-1sQp.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Lt,isInternationalPaymentShaVsOurEnabled:Ft,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Xt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Ln(),[Qt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Le,de]=p.useState(!1),[en,ce]=p.useState(!1),[Fe,H]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Fn:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(q(pe.threadId),Ee(null))},[pe,Y,P,q,Ee]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ye]=p.useState(!1),Xe=()=>Ke(!1),rn=()=>Ke(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),Q=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),Q())},[Ge,e.zeniAssist?.refundStatus,Q]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&X?.code?X:ee,S=Na(v,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:X?.code!=null&&(ee?.code=="approved"||X.code==="mark_as_paid")?X:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Le),z.trackZeniAssistClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
-
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Qe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Qe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,jn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",In=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&jn===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Xt(),Ve(!1),Ue&&Ye(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Yn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Fe===!0&&H(!1),_!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ha,{windowSize:l,ref:at,children:[t.jsx(Xn,{anchor:"right",open:ln,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Gn,{companyName:Hn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Qe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Fe?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{H(!1),He()},onClickAway:()=>{H(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Qt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(qn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,_),t.jsx(Qn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Qa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&k?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Ft&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wa,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Fa(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(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(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Lt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Gt,onSaveRealTimeApprovals:Ht},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:La(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?H(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ga,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&F&&_t?t.jsx(W,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Le?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[In===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ya,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ia,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:Y,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},La=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Fa=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Wa=i.div``,Za=i.div`
|
|
1
|
+
import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as Wn,fR as Zn,bJ as _n,a2 as Vn,M as Kn,C as u,j as t,m as E,cM as it,cN as Un,o as a,cO as Yn,cP as Xn,$ as b,cQ as Gn,a0 as Ae,cR as Hn,aX as lt,aK as ot,dt as rt,bV as st,bX as dt,bY as ct,fS as qn,fT as Jn,fU as Qn,fV as ea,cW as $,cX as j,cY as I,fW as A,cV as ta,v as pt,g as ie,cZ as Rt,c_ as na,c$ as aa,d0 as ia,fX as la,fY as oa,a4 as ra,q as mt,bB as Te,fZ as sa,f_ as O,s as r,k as da,bx as ca,f$ as pa,a3 as ma,g0 as ua,g1 as ut,d4 as yt,X as ya,cB as ha,bO as ba,am as xa,ao as ga,L as fa,bq as zt,g2 as wa,i as Mt,ac as Ta,ak as va,aP as Da,eL as $a,p as ja}from"./index-B8OsEhOZ.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Ia}from"./liveblocks-CP09Cz-7.js";import{o as Aa,t as ka}from"./LowBalancePopup-TCSP5zrD-BmN6CG0D.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Kn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:_,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Lt,isInternationalPaymentShaVsOurEnabled:Ft,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:Zt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:_t,redirectToEditableBillScreen:Vt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Kt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Xt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Ln(),[Qt,K]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Le,de]=p.useState(!1),[en,ce]=p.useState(!1),[Fe,H]=p.useState(!1),y=e.transactionDetails?.id,tn=Zt?Fn:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Zn)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(q(pe.threadId),Ee(null))},[pe,Y,P,q,Ee]),_n({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,_e]=p.useState("approved"),[ln,Ve]=p.useState(!1),[on,Ke]=p.useState(!1),[Ue,Ye]=p.useState(!1),Xe=()=>Ve(!1),rn=()=>Ve(!0),Ge=Vn(e.zeniAssist?.refundStatus.fetchState),Q=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),Q())},[Ge,e.zeniAssist?.refundStatus,Q]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&X?.code?X:ee,S=Na(v,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:X?.code!=null&&(ee?.code=="approved"||X.code==="mark_as_paid")?X:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Vt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),K(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),K(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),K(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{K(!1),N.primaryButtonText===n.delete?Kt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{K(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Le),z.trackZeniAssistClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
+
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Qe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Qe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,jn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",In=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&jn===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,Ue,c)},tt=()=>{Ke(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Xt(),Ke(!1),Ue&&Ye(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=_t&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Yn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{_e("approved"),Fe===!0&&H(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{_e("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ha,{windowSize:l,ref:at,children:[t.jsx(Xn,{anchor:"right",open:ln,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Gn,{companyName:Hn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Qe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Fe?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{H(!1),He()},onClickAway:()=>{H(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Qt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,_&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(qn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,W),t.jsx(Qn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Qa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Ft&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Fa(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(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(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Lt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Gt,onSaveRealTimeApprovals:Ht},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||x,showCancel:!V&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:La(V,et),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?tt:()=>{W!=null?H(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(_a,{children:t.jsxs(Ga,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(Z,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(Z,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(Z,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&F&&Wt?t.jsx(Z,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Le?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(Z,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[In===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Ka,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ya,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Va,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ia,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:Y,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},La=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Fa=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const _=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${_}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const _=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",_)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,Za=i.div``,_a=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
|
-
`,
|
|
5
|
+
`,Va=i($a)`
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
color: ${e=>e.theme.colors.hero};
|
|
8
8
|
width: ${a.sp4};
|
|
@@ -18,7 +18,7 @@ import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as _n,fR as Wn,bI as Zn,a1 a
|
|
|
18
18
|
&:hover {
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,Ka=i(Sa)`
|
|
22
22
|
color: ${e=>e.theme.colors.hero};
|
|
23
23
|
width: ${a.sp5};
|
|
24
24
|
height: ${a.sp5};
|
|
@@ -71,7 +71,7 @@ import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as _n,fR as Wn,bI as Zn,a1 a
|
|
|
71
71
|
right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
|
|
72
72
|
height: 100%;
|
|
73
73
|
display: flex;
|
|
74
|
-
`,
|
|
74
|
+
`,Z=i(Mt)`
|
|
75
75
|
display: flex;
|
|
76
76
|
align-items: center;
|
|
77
77
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as
|
|
1
|
+
import{C as O,s as B,e as q,M as D,a as M,a2 as W,j as o,W as G,ca as X,aX as Z,F as H,a4 as J,o as c}from"./index-B8OsEhOZ.js";import{b as L,n as h}from"./vendor-rkTZJa59.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-D60JM8h_-WgnL9DSD.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new O(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=q(),l=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const z=G(d);X(()=>V(U,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?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}},ae=(e,t,a,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,M as y,j as t,
|
|
1
|
+
import{e as I,M as y,j as t,aX as D,n as H,$ as b,C as r,p as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as V,s as l,ao as X,X as z,an as q,g as S,cu as F,aP as O,v as Y}from"./index-B8OsEhOZ.js";import{n as o,b as _}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";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)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:f,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(K,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(R,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(R,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Q=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{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Z=o(X)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -22,7 +22,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
22
22
|
text-align: center;
|
|
23
23
|
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
24
|
gap: ${i.sp2};
|
|
25
|
-
`,
|
|
25
|
+
`,K=o.div`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
@@ -117,7 +117,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
117
117
|
height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
118
118
|
top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
|
|
119
119
|
left: -${i.sp6};
|
|
120
|
-
${
|
|
120
|
+
${Y.standardMedium.css};
|
|
121
121
|
text-align: center;
|
|
122
122
|
color: ${e=>e.theme.colors.grey1};
|
|
123
123
|
border: 2px solid ${e=>e.theme.colors.grey1};
|
|
@@ -141,7 +141,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
141
141
|
`,ae=o.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
gap: ${i.sp5};
|
|
144
|
-
`,ne=o(
|
|
144
|
+
`,ne=o(F)`
|
|
145
145
|
width: ${i.sp3};
|
|
146
146
|
height: ${i.sp3};
|
|
147
147
|
cursor: pointer;
|
|
@@ -149,7 +149,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${S.important};
|
|
151
151
|
}
|
|
152
|
-
`,pe=o(
|
|
152
|
+
`,pe=o(O)`
|
|
153
153
|
width: ${i.sp3};
|
|
154
154
|
height: ${i.sp3};
|
|
155
155
|
cursor: pointer;
|
|
@@ -157,20 +157,20 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,de=o(
|
|
160
|
+
`,de=o(q)`
|
|
161
161
|
width: ${i.sp4};
|
|
162
162
|
height: ${i.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
164
164
|
`,T=o.span`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
166
|
-
`,
|
|
166
|
+
`,R=o.div`
|
|
167
167
|
display: inherit;
|
|
168
168
|
gap: inherit;
|
|
169
|
-
`,
|
|
169
|
+
`,C=o.span`
|
|
170
170
|
${e=>`${L.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,g={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])},ke=({approvalView:e,onBackClick:f,onEditRuleClick:c,onDeleteRuleClick:v})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=y.getLocalizedStrings().commonSetUp.approval,h=y.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{f()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(H,{size:"ExtraLarge",start:!0})}):m==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((w,a)=>t.jsx(
|
|
173
|
+
`,g={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])},ke=({approvalView:e,onBackClick:f,onEditRuleClick:c,onDeleteRuleClick:v})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=y.getLocalizedStrings().commonSetUp.approval,h=y.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{f()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(H,{size:"ExtraLarge",start:!0})}):m==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((w,a)=>t.jsx(J,{showDeleteBtn:a!==0,approvalRule:w,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:c,onDeleteRuleClick:v},w.approvalRuleId)),t.jsxs(ue,{windowSize:$,onClick:()=>{c()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(we,{}),t.jsx(ge,{children:n.addApprovalText})]})]}):null]})]})},ce=o.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
|
@@ -227,7 +227,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,b
|
|
|
227
227
|
border-color: ${e=>e.theme.colors.primary};
|
|
228
228
|
}
|
|
229
229
|
margin-bottom: ${i.sp6};
|
|
230
|
-
`,we=o(
|
|
230
|
+
`,we=o(V)`
|
|
231
231
|
width: ${i.sp3};
|
|
232
232
|
height: ${i.sp3};
|
|
233
233
|
`,ge=o.div`
|
package/dist/assets/{BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import{Y as _,e as f,
|
|
1
|
+
import{Y as _,e as f,a2 as ee,m as g,M,j as e,aX as ie,J as B,$ as C,c as x,o as s,t as se,c7 as le,u as U,a6 as L,B as oe,C as te,g as S,c9 as re,a7 as ae,ap as ne,s as de}from"./index-B8OsEhOZ.js";import{b as u,n as l}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-Bn5picNg-BZadZTcq.js";import{m as pe}from"./VideoPopup-qS-ig_U0-VKyag34q.js";import{M as z}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new te(de[5],44)},me=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
background-color: ${i=>i.theme.colors.grey4};
|
|
7
|
-
`,he=
|
|
8
|
-
padding: ${i=>i.windowSize==="small"?`${
|
|
7
|
+
`,he=l.div`
|
|
8
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
|
|
9
9
|
text-align: center;
|
|
10
|
-
`,ge=
|
|
10
|
+
`,ge=l(le)`
|
|
11
11
|
max-width: 600px;
|
|
12
12
|
margin: auto;
|
|
13
|
-
padding: ${
|
|
13
|
+
padding: ${s.sp7} ${s.sp0};
|
|
14
14
|
color: ${i=>i.theme.colors.primary};
|
|
15
|
-
`,ue=
|
|
15
|
+
`,ue=l(se)`
|
|
16
16
|
max-width: 600px;
|
|
17
17
|
margin: auto;
|
|
18
|
-
padding: ${
|
|
18
|
+
padding: ${s.sp5} ${s.sp0};
|
|
19
19
|
color: ${i=>i.theme.colors.primary};
|
|
20
|
-
`,I=
|
|
20
|
+
`,I=l.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>xe.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,we=
|
|
26
|
+
`,we=l.div``,m=l.img``,R=l.div`
|
|
27
27
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
|
-
`,E=
|
|
30
|
+
`,E=l.div`
|
|
31
31
|
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
max-width: 712px;
|
|
@@ -35,50 +35,50 @@ import{Y as _,e as f,a1 as ee,l as g,M,j as e,aW as ie,J as B,_ as C,c as x,o as
|
|
|
35
35
|
align-content: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
align-items: center;
|
|
38
|
-
`,J=
|
|
39
|
-
margin-left: ${i=>i.windowSize==="small"?
|
|
40
|
-
margin-bottom: ${i=>i.windowSize==="small"?
|
|
38
|
+
`,J=l.div`
|
|
39
|
+
margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
|
|
40
|
+
margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
|
|
41
41
|
background: ${i=>i.theme.colors.grey3};
|
|
42
42
|
border-radius: 12px;
|
|
43
43
|
border: ${i=>`1px solid ${i.theme.colors.grey3}`};
|
|
44
44
|
padding: 15px;
|
|
45
|
-
`,n=
|
|
46
|
-
border-radius: ${
|
|
45
|
+
`,n=l.div`
|
|
46
|
+
border-radius: ${s.sp12};
|
|
47
47
|
border: ${i=>`1px solid ${i.theme.colors.grey2}`};
|
|
48
|
-
padding: ${i=>i.windowSize==="small"?`${
|
|
48
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
|
|
49
49
|
background: ${i=>i.theme.colors.grey5};
|
|
50
50
|
position: relative;
|
|
51
|
-
margin-bottom: ${
|
|
51
|
+
margin-bottom: ${s.sp3};
|
|
52
52
|
display: flex;
|
|
53
53
|
align-items: center;
|
|
54
54
|
text-align: start;
|
|
55
55
|
box-sizing: border-box;
|
|
56
|
-
`,w=
|
|
56
|
+
`,w=l(ne)`
|
|
57
57
|
color: ${i=>i.theme.colors.champion};
|
|
58
|
-
`,j=
|
|
58
|
+
`,j=l(ae)`
|
|
59
59
|
color: ${i=>i.theme.colors.champion};
|
|
60
|
-
`,y=
|
|
60
|
+
`,y=l(L)`
|
|
61
61
|
color: ${i=>i.theme.colors.champion};
|
|
62
|
-
`,$=
|
|
62
|
+
`,$=l(re)`
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
|
-
`,d=
|
|
65
|
-
padding-left: ${
|
|
66
|
-
`,V=
|
|
64
|
+
`,d=l.div``,c=l.div`
|
|
65
|
+
padding-left: ${s.sp3};
|
|
66
|
+
`,V=l(z)`
|
|
67
67
|
color: ${S.graphColor16Dark};
|
|
68
|
-
`,
|
|
68
|
+
`,Z=l(z)`
|
|
69
69
|
color: ${S.graphColor09Dark};
|
|
70
|
-
`,
|
|
70
|
+
`,q=l(z)`
|
|
71
71
|
color: ${S.graphColor28Dark};
|
|
72
|
-
`,je=
|
|
73
|
-
margin: ${
|
|
72
|
+
`,je=l(oe)`
|
|
73
|
+
margin: ${s.sp3} auto;
|
|
74
74
|
max-width: 719px;
|
|
75
75
|
color: ${i=>i.theme.colors.hero};
|
|
76
|
-
`,ye=
|
|
76
|
+
`,ye=l.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
79
79
|
align-items: center;
|
|
80
80
|
justify-content: center;
|
|
81
|
-
`,$e=
|
|
82
|
-
margin: ${i=>i.windowSize==="small"?
|
|
81
|
+
`,$e=l(L)`
|
|
82
|
+
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,o=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=M.getLocalizedStrings().commonSetUp.businessVerification.terms,De=({billPaySetupView:i,analytics:t,meetingUrl:O,videoUrl:
|
|
84
|
+
`,o=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=M.getLocalizedStrings().commonSetUp.businessVerification.terms,De=({billPaySetupView:i,analytics:t,meetingUrl:O,videoUrl:X,onButtonClick:Y,onBackClick:F,onSetupBillPaySuccess:b,onClickMenuIcon:H})=>{const h=_(),a=f(),{billPayTermsDetails:p}=i,[K,N]=u.useState(!1),[Q,v]=u.useState(!1),k=ee(p?.fetchStatus.fetchState);u.useEffect(()=>{k==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&b?.()},[k,b,p?.fetchStatus]);const G=()=>{t?.trackBillPayPromoScheduleDemo(),v(!0)},W=g.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap),P=g.hasBillPayAccess(h.loggedInUserRoleMap)&&!W,T=P?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(me,{children:[K===!0?e.jsx(pe,{onCancelClick:()=>{N(!1)},videoUrl:X}):null,Q===!0?e.jsx(ce,{onCancelClick:()=>{v(!1)},meetingUrl:O}):null,e.jsx(ie,{title:o.title,onBackClick:F,showBackButton:!g.hasOnlyBillPayAccess(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:H,source:"BillPayPromoPage"}),e.jsxs(he,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(ge,{children:T}),a==="small"?e.jsx(fe,{}):e.jsx(Se,{}),P===!1?e.jsxs(we,{children:[e.jsxs(ye,{windowSize:a,children:[e.jsx(B,{variant:"secondary",label:o.scheduleDemoButton,onClick:G,"data-testid":C("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:o.orText}),e.jsx(B,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:Y,"data-testid":C("billpay-setup-button")})]}),e.jsxs(je,{children:[o.terms.terms1,e.jsx(x,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(x,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(x,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(t?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(t?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,o.terms.terms3]})]}):null]})]})},fe=()=>{const i=U(),t=f();return e.jsxs(I,{windowSize:t,children:[e.jsx(E,{windowSize:t,children:e.jsx(J,{windowSize:t,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(R,{windowSize:t,children:[e.jsxs(n,{windowSize:t,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(y,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:t,children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(y,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:t,children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(y,{children:o.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=U(),t=f();return e.jsxs(I,{windowSize:t,children:[e.jsxs(R,{windowSize:t,children:[e.jsxs(n,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.fullyManagedText.bold}),e.jsx(w,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.multiLevelApprovalText.bold}),e.jsx(w,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.aiPoweredText.bold}),e.jsx(w,{children:o.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:t,children:e.jsx(J,{windowSize:t,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{De as default};
|
package/dist/assets/{BillPaySetUpPage-D7335PCo-DjOfSrPK.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as De,e as Oe,a2 as E,a as _e,ca as Re,M as Ue,m as He,a8 as X,j as t,cP as ze,$ as Le,g as Me,C as u,aX as qe,n as Ne,F as Ge,dO as Je,aS as Ke,dE as Qe,bB as Xe,f0 as Ye,a4 as Ze,o as L,s as a,p as et,b6 as tt}from"./index-B8OsEhOZ.js";import{b as f,n as g}from"./vendor-rkTZJa59.js";import{D as it}from"./HelpButton-hflpTkYP-BxxKYxfC.js";import"./SetUpAccountSection-CDXmRiGQ-DykmFmYq.js";import{q as H}from"./SetUpDefaultSection-VPie4JZS-CUUkgLvy.js";import{f as nt}from"./SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-Bn5picNg-BZadZTcq.js";import"./ChaseOverlay-IbWtzNzT-CiTCJc7A.js";import"./ChargeCardUtils-D4KmVUMt-Bgc7_40s.js";import"./CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",V="billPayAccount",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=De(),i=Oe(),[k,S]=f.useState(!1),q=f.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,D=$.link_account.updateStatus,O=$.update_account.updateStatus,B=E(p),J=E(b.fetchState),K=E(D.fetchState),Q=E(O.fetchState),P=_e({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>z(e),[e]),values:z(e)});f.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,B]),f.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Q==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[B,p,P,e,K,D.fetchState,Q,O.fetchState]);const Be=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Fe=async(x,I)=>{const o=I[V];if(x.includes(V)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const m=N.find(U=>U.id===o.fundingAccount.selectedOption);m!=null&&pe(o.fundingAccount.selectedOption,m.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const m=o.account.allOptions.find(U=>U.value===o.account.selectedOption);m!=null&&typeof m.label=="string"&&y.trackConnectBankLink(m.value,m.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};f.useEffect(()=>{const x=P.watch((I,{name:o})=>{o!=null&&I!=null&&Re(()=>Fe(o,I))});return()=>{x.unsubscribe()}}),f.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ee.billPay,_=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ve=_?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",F=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ve}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:Z(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:V,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),_&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:_&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -39,4 +39,4 @@ import{u as _e,e as $e,a1 as E,a as De,c9 as Re,M as Ue,l as He,a7 as Q,j as t,c
|
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
|
|
42
|
-
`,z=e=>{const{allBankAccounts:w,allFundingAccounts:W,primaryFundingAccount:v}=e;return{[V]:{fundingAccount:{selectedOption:v?.id,allOptions:W.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:v?.zeniAccountId,allOptions:w.map(s=>({label:s.accountName,value:s.accountId}))}}}},
|
|
42
|
+
`,z=e=>{const{allBankAccounts:w,allFundingAccounts:W,primaryFundingAccount:v}=e;return{[V]:{fundingAccount:{selectedOption:v?.id,allOptions:W.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:v?.zeniAccountId,allOptions:w.map(s=>({label:s.accountName,value:s.accountId}))}}}},Z=e=>`${e}_form`;export{Ft as default,Z as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,e as Ce,a as xe,
|
|
1
|
+
import{u as fe,e as Ce,a as xe,ca as Pe,a8 as k,M as be,j as t,C as P,aX as Ae,n as Ie,F as ve,aS as je,cb as ke,a4 as $e,o as s,h7 as Ee,cD as Be,cE as Te,s as b,p as Ve,gm as Oe,X as ze,g as De}from"./index-B8OsEhOZ.js";import{b as R,n as r}from"./vendor-rkTZJa59.js";import{M as Le,r as F,o as Me}from"./PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js";import{O as He}from"./SetUpAccountSection-CDXmRiGQ-DykmFmYq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./SetUpDefaultSection-VPie4JZS-CUUkgLvy.js";import"./ChaseOverlay-IbWtzNzT-CiTCJc7A.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new ze("standardSemiBold","largeSemiBold")},W="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:E},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=E.fetchState==="In-Progress"||E.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),T=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:O}=be.getLocalizedStrings(),ge=O.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",L=m?.addCardPaymentSourceStatus.fetchState,x=Le(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:F(D).name}),color:new k(V)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[H,we]=R.useState(!1);return t.jsxs(We,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:O.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:i,children:[t.jsx(_e,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(He,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:H}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:H,setCardSetupInProgress:we})]})},_=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ee(n,e.subscriptionBillingAddress)[n]}},Fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -6,7 +6,7 @@ import{u as fe,e as Ce,a as xe,c9 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,m
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
9
|
-
`,
|
|
9
|
+
`,We=r.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
@@ -28,14 +28,14 @@ import{u as fe,e as Ce,a as xe,c9 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,m
|
|
|
28
28
|
justify-content: center;
|
|
29
29
|
align-items: center;
|
|
30
30
|
background-color: ${e=>e.theme.colors.grey4};
|
|
31
|
-
`,
|
|
31
|
+
`,Ke=r.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,
|
|
34
|
+
`,Ne=(e,a,g,d,I)=>t.jsxs(qe,{children:[t.jsx(Ge,{windowSize:e,isDisabled:I==="disabled",children:a}),t.jsx(Oe,{googleAPIKey:d??"",addressToEdit:g,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),qe=r.div`
|
|
35
35
|
margin-top: ${s.sp3};
|
|
36
36
|
margin-bottom: ${s.sp4};
|
|
37
37
|
`,Ge=r.div`
|
|
38
|
-
${e=>`${
|
|
38
|
+
${e=>`${Re.title.style(e.windowSize)}`};
|
|
39
39
|
margin-bottom: ${s.sp3};
|
|
40
40
|
margin-top: ${s.sp4};
|
|
41
41
|
color: ${e=>e.isError===!0?De.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
|