@zeniai/web-cockpit-ui 1.14.24-dev → 1.14.25-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-DZv7I3Jm-zPHhT4Vj.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
- package/dist/assets/{AIPerformancePage-DCq95N_N-DO8MzOBI.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
- package/dist/assets/{AccountInfoPage-wfDS5ToF-BkRJ-lxL.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
- package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
- package/dist/assets/{AccountRow-99zfxKet-iP3hUTyF.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
- package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
- package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
- package/dist/assets/{AddToWalletPage-CoW0Ppg4-WAfWgl1v.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
- package/dist/assets/{AgingReportsPage-Dgi5oFl4-Cao6O7NF.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
- package/dist/assets/{AllUserItems-6iESftSq-BBGiJxHd.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-jEL75hOV-BLy4yEPM.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
- package/dist/assets/{AppBasePage-CMHbFdBh-DTT6hgO7.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
- package/dist/assets/{AppDrawerContent-NAyrnDCL-B7ak2Xor.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
- package/dist/assets/{ArAgingChart-DPrIHwSE-ym_zT_Xu.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CdNiD7uR-DccUXEIa.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
- package/dist/assets/{AttachmentView-Cmh726Zl-C82E74gy.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
- package/dist/assets/{BankAccountSection-jRnEB-Ut-BpoXdxMl.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-KznYA-cf-CV3aOKhB.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
- package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
- package/dist/assets/{BillDetailPage-glKjF2MJ-CxnS8ehW.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
- package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
- package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
- package/dist/assets/{BillPaySetUpPage-UfM6FOqW-wZRanfNP.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BfMIxeqM-C_WtlbYK.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
- package/dist/assets/{BoxItem-CIOib-WX-Cvut8WLk.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Czf-y16x-BBZA7C_w.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
- package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
- package/dist/assets/{CashbackDetailPage-BOTxd8DW-CNmZsYqR.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
- package/dist/assets/{ChargeCardListPage-Q1zat_TQ-BbazZeau.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
- package/dist/assets/{ChargeCardListTable-CKH-EZW4-CiPC1KQt.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
- package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
- package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
- package/dist/assets/{ChaseOverlay-IbWtzNzT-CiTCJc7A.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
- package/dist/assets/{CollapsableReportTable-jOFcWQi9-BD7j44zD.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
- package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
- package/dist/assets/{CompanyPassportCard-BbJLMFqe-CAuk2TxY.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
- package/dist/assets/{CompanyPassportPage-BwCMcjB9-C5l65FSQ.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
- package/dist/assets/{CompleteProfile-Dz4laW45-D0LCAfKu.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
- package/dist/assets/{ConfettiBurst-B2j3QxzW-BoOT7g5H.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-moxdaTde.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
- package/dist/assets/{CurrencySelectField-CxNprN2u-CPSD5Bje.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
- package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
- package/dist/assets/{Dashboard-BtcnzaY6-gJck50nw.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
- package/dist/assets/{DashboardReportPage-C6jLfLtF-BPfMWD5H.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
- package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
- package/dist/assets/{DownloadOverlay-BcH72YTL-B8MaexAj.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
- package/dist/assets/{DrawerPage-CzHhh0IP-BIFSEwpr.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
- package/dist/assets/{EditPeoplePage-Z5btEDax-BKTta_xp.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
- package/dist/assets/{EntityDetailPage-Bc4YVpPC-DWs1zPrx.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
- package/dist/assets/{EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
- package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-EjI20a6v-rIac0d4o.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
- package/dist/assets/{ExpressPayPage-562vstqT-BTrZQzDN.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
- package/dist/assets/{FollowStepsSection-D60JM8h_-WgnL9DSD.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
- package/dist/assets/{HelpButton-hflpTkYP-BxxKYxfC.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
- package/dist/assets/{InformationCardStack-BsxmscQq-CSrArWRb.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
- package/dist/assets/{InsightsCardStack-5JDl2mCA-CZ5TshWK.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
- package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
- package/dist/assets/{InviteFormPage-D0QCEMkX-DZr12vmY.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
- package/dist/assets/{InvitePageListView-CVf8HrhY-cBhycZNO.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
- package/dist/assets/{InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BuwWumE2-CTijWOqK.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
- package/dist/assets/{LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DLou-2Lm-30_LmoCw.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
- package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
- package/dist/assets/{LabeledText-D4fC1Hz2-Cxv5m94v.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
- package/dist/assets/{LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
- package/dist/assets/{LowBalancePopup-TCSP5zrD-BmN6CG0D.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
- package/dist/assets/{MailingDetailsSection-DOuPh_kK-CJdFvtR9.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BZadZTcq.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
- package/dist/assets/{Menu-D_vf2LDo-39KwK8wM.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-gPNoKP10-gCIICwqR.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
- package/dist/assets/{NavBarWithPicker-BlYfbDi0-BiD5rNBH.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
- package/dist/assets/{NavigationArrow-CQ_K0Bon-C-8VFiTg.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
- package/dist/assets/{NavigationDots-CI0cjpQA-B6oVaxeu.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
- package/dist/assets/{NoDataChart-Dg1_sU_O-flEThGvM.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
- package/dist/assets/{NoDataTable-qTYBbL2H-BGrSHe_q.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
- package/dist/assets/{NotFoundPage-DYjrSF7l-D7C6Z_Gh.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DZHlnrbH-D8paihJx.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
- package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
- package/dist/assets/{NotificationsPage-QgnztPHs-CnFUIBHp.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
- package/dist/assets/{OpExByVendorPage-_AMvFFwS-DGSt9CNm.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-CI9x-FUu.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
- package/dist/assets/{PeoplePage-DZr3Lusf-M76DhnJE.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
- package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
- package/dist/assets/{PortfolioDetails-BH-sfG9j-CdKUfZw3.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
- package/dist/assets/{ProductsCarousel-C4J19mb--DcgR5jdw.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bj4SLu8_-CC7a127A.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
- package/dist/assets/{QBOSetupSection-BCdoUjwK-BF2gwacX.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
- package/dist/assets/{ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
- package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
- package/dist/assets/{ReloadCard-DxJMY9If-DFVN_BWj.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-lMBROmrI-C57N0Ev_.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
- package/dist/assets/{ReportsPage-DMYLnwc7-C986BuH8.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
- package/dist/assets/{RevenueChart-DD8vb3zi-DI64DZjn.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
- package/dist/assets/{ReviewOverlay-sqbjCjkE-BYmWnWTV.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
- package/dist/assets/{RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
- package/dist/assets/{ScreenRoutes-CG3ALmQe.js → ScreenRoutes-DzY9NZif.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CDXmRiGQ-DykmFmYq.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
- package/dist/assets/{SetUpDefaultSection-VPie4JZS-CUUkgLvy.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
- package/dist/assets/{SignIn-9DfCxy9Q-D5TOW1KJ.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
- package/dist/assets/{SignInScreen-C5ZC9m_8.js → SignInScreen-CYIRNr4n.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
- package/dist/assets/{SpendManagementSection-DGGOMGEz-BERrqLUW.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
- package/dist/assets/{StatementItem-1vBLASxl-Bg-WCzCW.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
- package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
- package/dist/assets/{StatusSwitcher-efLzDuyw-yZjEoNnl.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
- package/dist/assets/{SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
- package/dist/assets/{SummaryCard-BsPejHZG-DSp7yYcI.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
- package/dist/assets/{TaskManagementPage-CkdITpbn-BnN3mtBv.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
- package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BmhH741X-Bq2UrAGM.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
- package/dist/assets/{TopExCard-DBuo1QUF-Bqy_yS0O.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
- package/dist/assets/{TopExDetailPage-CGPgaWRb-BefBmW9C.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
- package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
- package/dist/assets/{TransactionList-DP9cEVya-Dnf5dIML.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
- package/dist/assets/{TransactionListBig-B_s15U1P-DxO9dvuT.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
- package/dist/assets/{TransactionListPage-DpYLFl8A-CtiLL9up.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
- package/dist/assets/{TransferDrawerPage-CxdQzo0m-DrhEn9ys.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
- package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DA26_cse.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
- package/dist/assets/{TreasuryPromoPage-BuxEHMpT-BDwacXK1.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
- package/dist/assets/{TreasurySetupPage-BIfbbeL3-V_YXLN-n.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
- package/dist/assets/{TrendChart-7kPgcETh-CZhHOMVt.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
- package/dist/assets/{TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
- package/dist/assets/{VendorDetailPage-B9pWIvXP-p9O1B1Vq.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
- package/dist/assets/{VendorFirstReviewPage-ANhBsl69-D02KU5IA.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
- package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BclWgEaB-DOMr50bF.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
- package/dist/assets/{VerifyDevice-CRrOo66b-ZlA7gEbg.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
- package/dist/assets/{VideoPopup-qS-ig_U0-VKyag34q.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
- package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
- package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
- package/dist/assets/{ZeniCopyright-rY1T9xhh-Dfov-yky.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
- package/dist/assets/{analyticsHelper-B0L0ncmN.js → analyticsHelper-BxXohuM3.js} +1 -1
- package/dist/assets/{analyticsHelper-BcJgRhqY-D6z677ff.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
- package/dist/assets/{chartTypes-BoblEsVF-BVffEXCf.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
- package/dist/assets/{commonDimensions-CFd7y7qU-C7Jvc2Ks.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
- package/dist/assets/{detailCommon-MYixZ3RD-BFmVTLGA.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
- package/dist/assets/{downloadPdf-CgupyHRa-D9AEGU0d.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
- package/dist/assets/{index-B8OsEhOZ.js → index-B9FgmOrh.js} +1347 -1347
- package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CndsNNsv-CWYFJv_O.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
- package/dist/assets/{toChartData-B9eYLI57-CKqynvrs.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D4iDeX95-DVOhzALi.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
- package/dist/assets/{uploadAttachment-C2I6mBBB-CPoUzWwI.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
- package/dist/assets/{uploadReceipts-dxsKhm9I-YtN4h-4H.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js +0 -27
- package/dist/assets/BillPayPromoPage-DGyWwW1t-B2E2k4g7.js +0 -84
- package/dist/assets/CardNumberSubText-B8CivrXd-CzHZkmhR.js +0 -21
- package/dist/assets/ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js +0 -222
- package/dist/assets/ChargeCardUtils-D4KmVUMt-Bgc7_40s.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +0 -66
- package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +0 -222
- package/dist/assets/InsightsSection-DsO5tfQL-CBUNqXt7.js +0 -27
- package/dist/assets/LabeledDocumentField-By7zV2VD-Deh87JH9.js +0 -41
- package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js +0 -17
- package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js +0 -26
- package/dist/assets/StatementsPage-cCluGN33-CUSb15rA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js +0 -31
- package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +0 -912
- package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js +0 -63
package/dist/assets/{BillDetailPage-glKjF2MJ-CxnS8ehW.js → BillDetailPage-BK_uvtAn-1i2teGn-.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 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`
|
|
1
|
+
import{e as Nn,Y as On,u as Fn,fO as Ln,fP as En,fQ as Wn,fR as Zn,bJ as _n,a2 as Kn,B as Un,C as u,j as t,l as E,cM as it,cN as Vn,o as a,cO as Yn,cP as Gn,$ as b,cQ as Xn,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,p as mt,bB as Te,fZ as sa,f_ as O,q as r,f as da,bx as ca,f$ as pa,a3 as ma,g0 as ua,g1 as ut,d4 as yt,J as ya,cB as ha,bO as ba,am as xa,ao as ga,T as fa,bq as zt,g2 as wa,w as Mt,ac as Ta,ak as va,aP as Da,eL as $a,s as ja}from"./index-B9FgmOrh.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-Ciah5OLh-BrGyf1Jf.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}}}}=Un.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:_,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Lt,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:Zt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:_t,redirectToEditableBillScreen:Kt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Vt,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Xt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Qt,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Le,H]=p.useState(!1),y=e.transactionDetails?.id,tn=Zt?Ln:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,V]=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),V(!1)},[q,V]);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,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ve,Ye]=p.useState(!1),Ge=()=>Ke(!1),rn=()=>Ke(!0),Xe=Kn(e.zeniAssist?.refundStatus.fetchState),Q=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),X())},[e,X,Pe]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),Q())},[Xe,e.zeniAssist?.refundStatus,Q]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&G?.code?G:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G: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}),U(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.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:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(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??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{U(!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(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.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(Vn,{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),L=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,Ve,c)},tt=()=>{Ue(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Gt(),Ue(!1),Ve&&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"),Le===!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(Gn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Xn,{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:Ge})}),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(),V(!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(),V(!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:[Le?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,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,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:[L?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)&&Lt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:L&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),L?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()]})})]}),L||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,L,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,L,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:Vt,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:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Xt,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:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=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(_a,{children:t.jsxs(Xa,{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&&L&&Wt?t.jsx(Z,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?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??"",F?.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(Ga,{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(Ua,{})})}):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(Va,{})})}):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:()=>V(!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})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=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
|
+
`,Ka=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 Wn,fR as Zn,bJ as _n,a2 a
|
|
|
18
18
|
&:hover {
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,Ua=i(Sa)`
|
|
22
22
|
color: ${e=>e.theme.colors.hero};
|
|
23
23
|
width: ${a.sp5};
|
|
24
24
|
height: ${a.sp5};
|
|
@@ -26,7 +26,7 @@ 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 a
|
|
|
26
26
|
&:hover {
|
|
27
27
|
color: ${e=>e.theme.colors.primary};
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Va=i(Da)`
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
color: ${e=>e.theme.colors.hero};
|
|
32
32
|
width: ${a.sp4};
|
|
@@ -42,7 +42,7 @@ 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 a
|
|
|
42
42
|
&:hover {
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,Ga=i.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
@@ -64,7 +64,7 @@ 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 a
|
|
|
64
64
|
border-radius: ${a.sp1};
|
|
65
65
|
right: ${e=>m.right.valuePx(e.windowSize)};
|
|
66
66
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
|
|
67
|
-
`,
|
|
67
|
+
`,Xa=i.div`
|
|
68
68
|
width: auto;
|
|
69
69
|
justify-content: flex-end;
|
|
70
70
|
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import{C as z,q as U,e as O,B as D,a as M,a2 as W,j as o,X,ca as G,aX as Z,F as H,a4 as J,o as c}from"./index-B9FgmOrh.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-DrwqT5qI-DLguenxm.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 z(U[2],U[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=O(),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:B})=>{if(B!=null&&d!=null){const q=X(d);G(()=>V(B,q))}});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
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
|
+
`,oe=h.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${c.sp2};
|
|
14
|
+
`,se=h.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-start;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
`,ie=h.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
25
|
+
min-height: 1px;
|
|
26
|
+
max-height: 1px;
|
|
27
|
+
`;export{Y as D,ve as default,N as uniqueFormName,ge as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,
|
|
1
|
+
import{e as I,B as y,j as t,aX as D,m as H,$ as b,C as r,s as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as q,q as l,ao as V,J as z,an as F,g as S,cu as J,aP as O,v as Q}from"./index-B9FgmOrh.js";import{n as o,b as X}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")},Y=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=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(_,{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,N)=>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,M)=>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}_${M}`)),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))]},N))})}),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]})},_=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,aX as D,n as H,$ as b,C as r,p as B,a0 as j,bV as E,
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,Z=o(
|
|
17
|
+
`,Z=o(V)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -117,7 +117,7 @@ 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,
|
|
|
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
|
+
${Q.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,aX as D,n as H,$ as b,C as r,p as B,a0 as j,bV as E,
|
|
|
141
141
|
`,ae=o.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
gap: ${i.sp5};
|
|
144
|
-
`,ne=o(
|
|
144
|
+
`,ne=o(J)`
|
|
145
145
|
width: ${i.sp3};
|
|
146
146
|
height: ${i.sp3};
|
|
147
147
|
cursor: pointer;
|
|
@@ -157,7 +157,7 @@ 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,
|
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,de=o(
|
|
160
|
+
`,de=o(F)`
|
|
161
161
|
width: ${i.sp4};
|
|
162
162
|
height: ${i.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -170,7 +170,7 @@ 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,
|
|
|
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(Y,{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,aX as D,n as H,$ as b,C as r,p as B,a0 as j,bV as E,
|
|
|
227
227
|
border-color: ${e=>e.theme.colors.primary};
|
|
228
228
|
}
|
|
229
229
|
margin-bottom: ${i.sp6};
|
|
230
|
-
`,we=o(
|
|
230
|
+
`,we=o(q)`
|
|
231
231
|
width: ${i.sp3};
|
|
232
232
|
height: ${i.sp3};
|
|
233
233
|
`,ge=o.div`
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import{Y as _,e as f,a2 as ee,l as g,B as M,j as e,aX as ie,K as B,$ as C,c as x,o as l,r as le,c7 as se,u as U,a6 as L,k as oe,C as re,g as S,c9 as te,a7 as ae,ap as ne,q as de}from"./index-B9FgmOrh.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js";import{m as pe}from"./VideoPopup-BTi1tNaK-DDZF4fDp.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 re(de[5],44)},me=s.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: ${i=>i.theme.colors.grey4};
|
|
7
|
+
`,he=s.div`
|
|
8
|
+
padding: ${i=>i.windowSize==="small"?`${l.sp0} ${l.sp3}`:`${l.sp0} ${l.sp8}`};
|
|
9
|
+
text-align: center;
|
|
10
|
+
`,ge=s(se)`
|
|
11
|
+
max-width: 600px;
|
|
12
|
+
margin: auto;
|
|
13
|
+
padding: ${l.sp7} ${l.sp0};
|
|
14
|
+
color: ${i=>i.theme.colors.primary};
|
|
15
|
+
`,ue=s(le)`
|
|
16
|
+
max-width: 600px;
|
|
17
|
+
margin: auto;
|
|
18
|
+
padding: ${l.sp5} ${l.sp0};
|
|
19
|
+
color: ${i=>i.theme.colors.primary};
|
|
20
|
+
`,I=s.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
margin-bottom: ${i=>xe.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
+
`,we=s.div``,m=s.img``,R=s.div`
|
|
27
|
+
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
`,E=s.div`
|
|
31
|
+
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
max-width: 712px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-content: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
`,q=s.div`
|
|
39
|
+
margin-left: ${i=>i.windowSize==="small"?l.sp0:l.sp6};
|
|
40
|
+
margin-bottom: ${i=>i.windowSize==="small"?l.sp4:l.sp0};
|
|
41
|
+
background: ${i=>i.theme.colors.grey3};
|
|
42
|
+
border-radius: 12px;
|
|
43
|
+
border: ${i=>`1px solid ${i.theme.colors.grey3}`};
|
|
44
|
+
padding: 15px;
|
|
45
|
+
`,n=s.div`
|
|
46
|
+
border-radius: ${l.sp12};
|
|
47
|
+
border: ${i=>`1px solid ${i.theme.colors.grey2}`};
|
|
48
|
+
padding: ${i=>i.windowSize==="small"?`${l.sp2} ${l.sp4} ${l.sp2} ${l.sp0}`:`${l.sp3} ${l.sp5} ${l.sp3} ${l.sp0}`};
|
|
49
|
+
background: ${i=>i.theme.colors.grey5};
|
|
50
|
+
position: relative;
|
|
51
|
+
margin-bottom: ${l.sp3};
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
text-align: start;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
`,w=s(ne)`
|
|
57
|
+
color: ${i=>i.theme.colors.champion};
|
|
58
|
+
`,j=s(ae)`
|
|
59
|
+
color: ${i=>i.theme.colors.champion};
|
|
60
|
+
`,y=s(L)`
|
|
61
|
+
color: ${i=>i.theme.colors.champion};
|
|
62
|
+
`,$=s(te)`
|
|
63
|
+
color: ${i=>i.theme.colors.champion};
|
|
64
|
+
`,d=s.div``,c=s.div`
|
|
65
|
+
padding-left: ${l.sp3};
|
|
66
|
+
`,K=s(z)`
|
|
67
|
+
color: ${S.graphColor16Dark};
|
|
68
|
+
`,V=s(z)`
|
|
69
|
+
color: ${S.graphColor09Dark};
|
|
70
|
+
`,Z=s(z)`
|
|
71
|
+
color: ${S.graphColor28Dark};
|
|
72
|
+
`,je=s(oe)`
|
|
73
|
+
margin: ${l.sp3} auto;
|
|
74
|
+
max-width: 719px;
|
|
75
|
+
color: ${i=>i.theme.colors.hero};
|
|
76
|
+
`,ye=s.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
`,$e=s(L)`
|
|
82
|
+
margin: ${i=>i.windowSize==="small"?l.sp1:`auto ${l.sp5}`};
|
|
83
|
+
color: ${i=>i.theme.colors.grey1};
|
|
84
|
+
`,o=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,De=({billPaySetupView:i,analytics:r,meetingUrl:O,videoUrl:Q,onButtonClick:X,onBackClick:Y,onSetupBillPaySuccess:b,onClickMenuIcon:F})=>{const h=_(),a=f(),{billPayTermsDetails:p}=i,[H,J]=u.useState(!1),[N,k]=u.useState(!1),v=ee(p?.fetchStatus.fetchState);u.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&b?.()},[v,b,p?.fetchStatus]);const G=()=>{r?.trackBillPayPromoScheduleDemo(),k(!0)},W=g.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap),P=g.hasBillPayAccess(h.loggedInUserRoleMap)&&!W,T=P?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(me,{children:[H===!0?e.jsx(pe,{onCancelClick:()=>{J(!1)},videoUrl:Q}):null,N===!0?e.jsx(ce,{onCancelClick:()=>{k(!1)},meetingUrl:O}):null,e.jsx(ie,{title:o.title,onBackClick:Y,showBackButton:!g.hasOnlyBillPayAccess(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:F,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:X,"data-testid":C("billpay-setup-button")})]}),e.jsxs(je,{children:[o.terms.terms1,e.jsx(x,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(x,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(x,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(r?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(x,{href:t.tosUrl,onZeniLinkClick:()=>(r?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,o.terms.terms3]})]}):null]})]})},fe=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsx(E,{windowSize:r,children:e.jsx(q,{windowSize:r,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:r,children:[e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(y,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(y,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(y,{children:o.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsxs(R,{windowSize:r,children:[e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.fullyManagedText.bold}),e.jsx(w,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.multiLevelApprovalText.bold}),e.jsx(w,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.aiPoweredText.bold}),e.jsx(w,{children:o.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:r,children:e.jsx(q,{windowSize:r,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-UfM6FOqW-wZRanfNP.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as De,e as Oe,a2 as E,a as _e,ca as Re,
|
|
1
|
+
import{u as De,e as Oe,a2 as E,a as _e,ca as Re,B as Ue,l as He,a8 as X,j as t,cP as ze,$ as Le,g as qe,C as u,aX as Me,m as Ne,F as Ge,dO as Je,aS as Qe,dE as Ke,bB as Xe,f0 as Ye,a4 as Ze,o as L,q as a,s as et,b6 as tt}from"./index-B9FgmOrh.js";import{b as f,n as g}from"./vendor-rkTZJa59.js";import{D as it}from"./HelpButton-BdkhmROe-Bd84gRvW.js";import"./SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js";import{q as H}from"./SetUpDefaultSection-B3K4uwNR-B18eEgx5.js";import{f as nt}from"./SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.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-Z8cw7xGj-CwGNacrF.js";import"./ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js";import"./ChargeCardUtils-aPC5GoNp-DNIL0uw_.js";import"./CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.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:q,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),M=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),Q=E(D.fetchState),K=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"||Q==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[B,p,P,e,Q,D.fetchState,K,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"&&q()},[q,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:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:qe.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(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,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(Qe,{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(Ke,{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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,e as Ce,a as xe,ca as Pe,a8 as k,
|
|
1
|
+
import{u as fe,e as Ce,a as xe,ca as Pe,a8 as k,B as be,j as t,C as P,aX as Ae,m as Ie,F as ve,aS as je,cb as ke,a4 as $e,o as s,h7 as Be,cD as Ee,cE as Te,q as b,s as Ve,gm as Oe,J as ze,g as De}from"./index-B9FgmOrh.js";import{b as R,n as r}from"./vendor-rkTZJa59.js";import{M as Le,r as F,o as Me}from"./PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js";import{O as He}from"./SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.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-B3K4uwNR-B18eEgx5.js";import"./ChaseOverlay-De4Qu9qP-B6ZR5Jtp.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:q,stripeKey:J,googleAPIKey:K,companyId:N,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:X,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:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,E=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(N)}),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=Ee(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&&G(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(Ge,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(qe,{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:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:E?.code==="require_info"||E?.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}),Je(i,l.headers.billingAddress,ce,K,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:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:J,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]:Be(n,e.subscriptionBillingAddress)[n]}},Fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -28,17 +28,17 @@ 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
|
|
|
28
28
|
justify-content: center;
|
|
29
29
|
align-items: center;
|
|
30
30
|
background-color: ${e=>e.theme.colors.grey4};
|
|
31
|
-
`,
|
|
31
|
+
`,qe=r.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,
|
|
34
|
+
`,Je=(e,a,g,d,I)=>t.jsxs(Ke,{children:[t.jsx(Ne,{windowSize:e,isDisabled:I==="disabled",children:a}),t.jsx(Oe,{googleAPIKey:d??"",addressToEdit:g,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ke=r.div`
|
|
35
35
|
margin-top: ${s.sp3};
|
|
36
36
|
margin-bottom: ${s.sp4};
|
|
37
|
-
`,
|
|
37
|
+
`,Ne=r.div`
|
|
38
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};
|
|
42
|
-
`,
|
|
42
|
+
`,Ge=r.div`
|
|
43
43
|
flex: 1;
|
|
44
44
|
`,U=e=>`${e}_form`;export{lt as default,U as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B as V,j as b,bV as q,bX as M,bY as W,jh as X,l as Y,ab as z}from"./index-B9FgmOrh.js";import{b as _}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-NgbFy65i-DibK2Nxh.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{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const pe=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:p})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[B,w]=_.useState(!1),[s,v]=_.useState(j(t,u)),[c,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&c&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,c,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=G(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,Z(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:$}=J(m,y,R,c),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?p:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?p:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:p,showFooter:t.fetchState==="Completed"&&!c,footerProps:{primaryButton:D,cancelButton:L,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&Y.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(p=>p.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=X([...l,e.isRecurring?"recurring":"one-time"])}),l},G=t=>{const{this_:r,these:l,bill:e,bills:p,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",p)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:p,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:B}=n.texts,w=r>1,s=l>1;let v="",c="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:p),r===0?c=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):c=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),c=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:c}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{pe as default,Z as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,j as s,$ as b,o as r}from"./index-
|
|
1
|
+
import{e as h,j as s,$ as b,o as r}from"./index-B9FgmOrh.js";import{n as p}from"./vendor-rkTZJa59.js";import{o as l}from"./commonDimensions-Btr3Ruk2--EjhN8RD.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|