@zeniai/web-cockpit-ui 1.15.6-qa → 1.15.7-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-DDuW5spI-ugZGssMG.js → ACHDetailsPage-CGG2Hx4v-BW7Ihkof.js} +1 -1
- package/dist/assets/{AIPerformancePage-Bbk-pUwz-BlxRToKD.js → AIPerformancePage-XDCygRgj-CEqrEuBs.js} +32 -32
- package/dist/assets/AccountInfoPage-CSf3J58F-DCyXpiFs.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BA3WBfD4-S2IoqbBC.js → AccountInfoPageContent-wjaeVokT-CiNOfJ02.js} +9 -9
- package/dist/assets/{AccountLockedInfoModal-Bs1ImO2L-Cd1E5lWq.js → AccountLockedInfoModal-DJnj--uc-BJgnvrcM.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-Ci_Eb0_d-BTFVE0QR.js → AccountReconDetailsDrawerPage-a2stjcsR-Ds8R_X-n.js} +19 -19
- package/dist/assets/{AccountRow-BWclqiQh-ChNK56Ur.js → AccountRow-DlccmtgU-foUdbmvG.js} +24 -24
- package/dist/assets/{AccountsPromoCardStack-BHgGIeBG-BvmrVWEy.js → AccountsPromoCardStack-BE0vjkiK-DEN0OmWn.js} +14 -14
- package/dist/assets/AddAddressForCardDrawer-D3mMFgO8-8PMwaa8Q.js +6 -0
- package/dist/assets/{AddToWalletPage-Dllxg_0u-Cin7qPiV.js → AddToWalletPage-6OCJaNcg-EoATwn7j.js} +19 -19
- package/dist/assets/{AgingReportsPage-CBHhfTKI-XOHkAEGk.js → AgingReportsPage-hgg1L3pv-DEJ_mF4m.js} +1 -1
- package/dist/assets/{AllUserItems-Bdv9AIQ9-AUnGqfQg.js → AllUserItems-BmNtc-69-BsLa0Y8T.js} +14 -14
- package/dist/assets/{ApAgingDetailPage-EE3MrY5l-DjneR2md.js → ApAgingDetailPage-DAZAnfcs-zxr1sXnX.js} +5 -5
- package/dist/assets/{AppBasePage-02I6V3Np-B6lYTPsK.js → AppBasePage-D7_krMlm-D-9wFTdh.js} +9 -9
- package/dist/assets/{AppDrawerContent-DbBd9m20-ns8GH0Pa.js → AppDrawerContent-DWL57wUk-DZ6AAyNy.js} +6 -6
- package/dist/assets/ApprovalRulesSettingsPage-CiX2Xx3--YCvl1YZm.js +47 -0
- package/dist/assets/{ArAgingChart-BqBx1Gj1-B1AT15np.js → ArAgingChart-CeaYIqlX-BUR2NiTJ.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-D9rI5yue-C7eLkZEj.js → ArAgingDetailPage-Is5kv2-P-CDH0tn0m.js} +1 -1
- package/dist/assets/{AttachmentView-CeblaMyI-DBGFvosS.js → AttachmentView-BsNhULL3-C-ca695p.js} +4 -4
- package/dist/assets/{BankAccountSection-B3v3BDPK-B_DOigwY.js → BankAccountSection-ZWR_hXjD-mYMACSQd.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-DCi9o7_J-w-3jN6e4.js → BankAccountWarningSection-C-2eE9pL-BhkH4zkd.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-Csbc7IYe-dwO5wQN1.js → BankConnectionsSettingsPage-CjbaVbou-BNqlym9z.js} +17 -17
- package/dist/assets/{BillDetailPage-ByPP2r-L-DYJrFGG4.js → BillDetailPage-B_zbQLLp-Dsf72rKA.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-GDOnscxH-wu_5dYsT.js → BillPayApprovalRuleDetailPage-CtJLn_JO-BVtB6sJH.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-BqDyhnz3-B_wXxPzU.js → BillPayApprovalRulesPage-vvgGBmoM-C7iW15VO.js} +5 -5
- package/dist/assets/{BillPayPromoPage-B1_ugFQw-DrmfvS7a.js → BillPayPromoPage-DkyMRquU-6vAZUzNc.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-Cx2vQIL8-ngc-DjEe.js → BillPaySetUpPage-m15SlV0c-C_W7-nyr.js} +9 -9
- package/dist/assets/BillingSettingsPage-C4P_B31U-Dbv-0XdG.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-B8KhD0xH-CKIRXjIs.js → BillsBulkReviewDrawerPage-C_Nmv34F-s0EetHC0.js} +1 -1
- package/dist/assets/{BoxItem-CqsCCOrk-Dekq2mMN.js → BoxItem-Cmrt_yxF-Cr2cxrKm.js} +1 -1
- package/dist/assets/BusinessVerificationPage-Dr_YFkLN-5SYND8JY.js +138 -0
- package/dist/assets/{CardNumberSubText-ByPbO0F8-BLrI1gTW.js → CardNumberSubText-B6Fprh6S-CEzRIr67.js} +8 -8
- package/dist/assets/{CashbackDetailPage-Ve3JZpeP-D5oSvHQU.js → CashbackDetailPage-CWExYaIT-BmImExjs.js} +20 -20
- package/dist/assets/{ChargeCardDetailPage-D7zLKDQo-DG3fl-Wi.js → ChargeCardDetailPage-B3hr0WBI-X68NSBCl.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Cnm7GqIj-Fc3uHPEU.js → ChargeCardListPage-g9gCfpoh-BTqPP-pZ.js} +15 -15
- package/dist/assets/{ChargeCardListTable-bTR8Mmj4-CI38yG68.js → ChargeCardListTable-BoDSmzn_-CpSnyHh2.js} +38 -38
- package/dist/assets/{ChargeCardPaymentHistoryPage-Cufm-hgn-Cqrd5ERh.js → ChargeCardPaymentHistoryPage-xs346JMC-CvFrTbeZ.js} +28 -28
- package/dist/assets/ChargeCardPromoPage-DwiDNiRF-BfEfjZd3.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-B-jcdCNM-ernLwEHq.js → ChargeCardSetupPage-Dbz_GdRL-ClxdYJ_F.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CyVlO8hd-CIP5xUta.js → ChargeCardStatementsPage-Da9NY51a-ChevXKmL.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-BmG5ma6K-DHrUrYJa.js → CheckDepositDrawerPage-CcSRXOv7-DM7Ey8xT.js} +8 -8
- package/dist/assets/{CollapsableReportTable-LB-wYzj1-DaCyOKB5.js → CollapsableReportTable-D1b80h2R-CMeyXG6i.js} +41 -41
- package/dist/assets/CompanyOfficerDetailsSection-BMYQ8Qcq-vyiocP81.js +260 -0
- package/dist/assets/{CompanyPassportCard-BwHjmTyn-CWXWGUYt.js → CompanyPassportCard-vAocVa7X-Bg4vrJh5.js} +4 -4
- package/dist/assets/CompanyPassportPage-Dva5Le3j-D1jREPm8.js +574 -0
- package/dist/assets/{CompleteProfile-H7UexvAo-sZKr-j3R.js → CompleteProfile-B-Hhosch-DRCiMIXe.js} +1 -1
- package/dist/assets/ConfettiBurst-BV8M1GTR-DJjoIhlI.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-Bt2itRHK-CCLBzSRT.js → CreateOrEditVendorPage-Bgc7zC_D-CfO9iUSb.js} +11 -11
- package/dist/assets/{CreditCardPaymentDrawerPage-B8eb8Q0G-D7xI54mJ.js → CreditCardPaymentDrawerPage-Bs5RpFes-CgklXCqv.js} +11 -11
- package/dist/assets/{CurrencySelectField-DIh7_ile-Ch5w8ptc.js → CurrencySelectField-BC9QkDwI-BEtmNe90.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-B3t4tiur-DzW0AY2p.js → CustomerOnboardingActivationPage-Br4RFzGo-DgY7VWoB.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BRs0LPZ0-y5fJ25mS.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-JE_MoyoU-BqMNWAeW.js → CustomerOnboardingDetailPageSkeleton-DLKJINnV-B2tg0XBT.js} +18 -18
- package/dist/assets/CustomerOnboardingNoStepsPage-CjvQ3PFZ-BN9B2AZm.js +66 -0
- package/dist/assets/CustomerOnboardingPage-3ECCqY1a-CL7QxZ3D.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZLKr3qq-ClvLyM4I.js → CustomerOnboardingProductSuitePage-Dx3FU6Fe-CAm2edHR.js} +4 -4
- package/dist/assets/{Dashboard-z7EuNcjw-wBhbzCb7.js → Dashboard-EWWj1Uby-C8-SPpUF.js} +21 -21
- package/dist/assets/{DashboardReportPage-BX2xSgwt-BTs5yweV.js → DashboardReportPage-D4kzdnvI-BKOw_sqx.js} +10 -10
- package/dist/assets/{DashboardSidebarBackgroundAnimation-fiNmHYV3-CEwDJ7_M.js → DashboardSidebarBackgroundAnimation-BSwRgXFk-CJAI0MPE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CmlUJZgz-LioQcDUg.js → DepositAccTransactionItem-xvCtIj9v-7jCouOnq.js} +2 -2
- package/dist/assets/DepositAccTransactionListPage-B8UpFh_9-DlvHxyY3.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-D-SBQqbR-C8ovHvyA.js → DomesticWireDetailsPage-DF8bLeDL-Be0QfLbt.js} +1 -1
- package/dist/assets/{DownloadOverlay-DznbXeUZ-Cp9A0E8f.js → DownloadOverlay-wlAXZwF0-B68SEe8G.js} +30 -30
- package/dist/assets/{DrawerPage-8d8mdD3v-DOGRNriH.js → DrawerPage-DroW95LB-DgRu7-up.js} +18 -18
- package/dist/assets/{EditPeoplePage-CTwY7ePr-BHVb3TK3.js → EditPeoplePage-CgUM9UYI-_7L-v32x.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-DVg6dH7p-p4ImlM0s.js → EditReimbursementDetailPage-BgcII79s-qEpt9Cs6.js} +61 -61
- package/dist/assets/EntityDetailPage-ByHvXL2c-DbNraeh4.js +18 -0
- package/dist/assets/{EntitySummarySection-CloCPwyO-BkWlGttQ.js → EntitySummarySection-D6HekhK7-CEx8SebE.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-dHZEdK4L-Cfk-AEiv.js → ExpenseAutomationOverviewPage-VN-P6f2z-D9XayAVC.js} +16 -16
- package/dist/assets/{ExpenseAutomationPage-CWyP8ETl-Buoi-mX4.js → ExpenseAutomationPage-CvnkIuMf-BzVTKngy.js} +66 -66
- package/dist/assets/{ExpressPayPage-liflPa6J-d_gsBVue.js → ExpressPayPage-C_yRTeDh-CXT1jZ8h.js} +15 -15
- package/dist/assets/{FeaturePreviewPage-DhSoy4IL-BFzihstG.js → FeaturePreviewPage-BLRhajFn-BfH5LrVG.js} +1 -1
- package/dist/assets/{FollowStepsSection-DW5HuzRR-C2pFSUm_.js → FollowStepsSection-DhiGIylh-dcsWOGAc.js} +49 -49
- package/dist/assets/{GlobalReviewListPage-CGCdgQFw-2bH6uNqV.js → GlobalReviewListPage-Tg986b2s-BcraUWMG.js} +6 -6
- package/dist/assets/{InformationCardStack-D6xiRsRy-DeDzkULA.js → InformationCardStack-3Lmn6LJr-BzzpUQZE.js} +1 -1
- package/dist/assets/{InsightsCardStack-D1eIlMkU-DAOP4NpT.js → InsightsCardStack-Dc6OL9Od-D89joaRU.js} +2 -2
- package/dist/assets/InsightsSection-Drr3r1BL-BjPy8A4H.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CRZfnPIT-CqWmWxBy.js → IntegrationsSettingsPage-DACHBlEm-DaFs14XG.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-DouGaVny-Dv_WELpr.js → InternationalWireSwiftDetailsPage-BaqSqvWh-BwJgPcJE.js} +17 -17
- package/dist/assets/InternationalWireVerificationPage-Daxni4YY-BKNsaA95.js +292 -0
- package/dist/assets/{InviteFormPage-dCGpLoBC-B7oqyaD4.js → InviteFormPage-CXcHy9Sz-C3-iU8eM.js} +24 -24
- package/dist/assets/{InvitePageListView-DhV6Pw56-C4-16sSD.js → InvitePageListView-tu82Q2y6-CzjWJAgY.js} +54 -54
- package/dist/assets/{InvitePeoplePage-J-HYw9MC-UjYYlzHC.js → InvitePeoplePage-Bbv2pjhR-BZJHvIvS.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BJLLf4x5-DFydS2Od.js → InvoiceUploadSection-CO34IhU8-1rxbAjFS.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-hEaegmyi-D821vf9d.js → IssueChargeCardPage-DuqGEs5b-DVXuxnuF.js} +23 -23
- package/dist/assets/{LabeledAddressValue-PXtKo31O-p0vkJLZ_.js → LabeledAddressValue-D0Gu5Mgp-CuHBod6j.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-D0Ow_UPE-D2ZZ_G49.js → LabeledAddressValueField-DPisU2iY-3oGO3c9v.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-DVOeaKu0-CpyOiqej.js → LabeledControlledCheckBoxField-BKqCiNdy-CKGxo72C.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Dqt1M07c-DY3asbo7.js → LabeledCreatableSingleSelectField-DLVxVffe-RkcfyIgp.js} +5 -5
- package/dist/assets/{LabeledDocumentField-D2n9ry_0-D2DNLpw5.js → LabeledDocumentField-DtOCNiEg-DdNet_Ri.js} +5 -5
- package/dist/assets/{LabeledDropDownFormattedTextField-BfpPbI2T-BknUycVk.js → LabeledDropDownFormattedTextField-CsbwG9At-Cie_r1vg.js} +6 -6
- package/dist/assets/{LabeledText-BHQeQs6Z-DYOqW74l.js → LabeledText-C4GeOHM8-ChfVujh4.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnwVXq2g-BfCQlTRV.js → LabeledUserSingleSelectWithSubtitlesField-gwRpED7x-BzoJSlO5.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-Dpdlc1DB-aTk_GR-I.js → LabeledZeniRolesDropDownField-Bj8qcvuK-mHT__PRC.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-CWOfaAhz-sHHDjXdg.js → LinkJETransactionPage-CdWWV_7u-CTynd4m9.js} +3 -3
- package/dist/assets/{LockCardPage-BMt1zujT-Ch-0yiFY.js → LockCardPage-BTxCWQ6_-bPbvvlRf.js} +65 -65
- package/dist/assets/{LowBalancePopup-BN2RBNOV-CkWXHs8U.js → LowBalancePopup-Dt9KCWOU-CfGVa0nY.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-C2z4VD4x-yC-7xafy.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dxd73sj8-Dnp7p7eT.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-Ct-REVbS-CPUlXtmL.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DQbdgFhH-acLMYQDQ.js → MagicLinkSuccessPage-D45Lu2cc-Co6kTR8X.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-BYkzInkY-HyU6V8sj.js → MagicLinkTitleSection-BdiSVi0V-B1KEw-n6.js} +3 -3
- package/dist/assets/{MailingDetailsSection-DiSohByM-B0LpnqFx.js → MailingDetailsSection-CjO5OVZN-CsIdvq8c.js} +1 -1
- package/dist/assets/{Menu-TzNY4ajT-CMR-yX-w.js → Menu-C_kotivE-FvhfNRdu.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-Bk4Hdapv-vgoL826T.js → MyBankConnectionsSettingsPage-CN9EKlOy-B7KFdOdn.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-C5Q5p5zq-HjmaMbpp.js → MyPendingActivationChargeCardListPage-rmpT6HFS-CAP6sOzW.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BxiofsK0-BXkFCNOu.js → MyProfileSettingsPage-CTmDuFNJ-KfiZ2ouo.js} +5 -5
- package/dist/assets/{NavBarWithPicker-DX31nlvR-iKhmwyP2.js → NavBarWithPicker-VzNJnXX3-D_mYpcQU.js} +4 -4
- package/dist/assets/{NavigationArrow-BDdBEJFM-ByEm_T8f.js → NavigationArrow-B9ZEhJdg-DZDpNuL-.js} +1 -1
- package/dist/assets/{NavigationDots-BZOdXVhR-J922kz3s.js → NavigationDots-C_N16I15-CgfbbWpb.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-qOuBGJ6w-PqI-s75M.js → NewGlobalMerchantPage-DICWFjCu-B9FIBlfd.js} +8 -8
- package/dist/assets/NoDataChart-CCCkzfa4-CZ1VHThr.js +26 -0
- package/dist/assets/NoDataTable-DVW_simO-CiETBp14.js +8 -0
- package/dist/assets/{NotFoundPage-B31SyO4w-DnMJV9Nw.js → NotFoundPage-BHrUY910-CB4emWh9.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-3GoJDHjY-CmERm1Eo.js → NotificationSettingsPage-alUKfWWf-BIIzsf_j.js} +12 -12
- package/dist/assets/NotificationsListConfig-QOeX1KBS-BXuzGZYq.js +1 -0
- package/dist/assets/{NotificationsPage-Cuz_KDD8-Br1syqiZ.js → NotificationsPage-BjhHCUzl-CL_1S-pu.js} +22 -22
- package/dist/assets/{OpExByVendorPage-B2CQ-hT1-DgzOnglp.js → OpExByVendorPage-h_QozoZk-rvk-4kbQ.js} +20 -20
- package/dist/assets/OverlayContainerPage-Daz3A7cI-DZnbS2el.js +11 -0
- package/dist/assets/{PandLWithForecastPage-Dkcy07sC-HdbdrtMY.js → PandLWithForecastPage-DdiEIHC--BvKI5oME.js} +4 -4
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CIlQ-MgM-D9smrX3o.js +107 -0
- package/dist/assets/{PeoplePage-yzYfizds-CxYPe3s5.js → PeoplePage-BaOppi8Y-C-YATJdW.js} +34 -34
- package/dist/assets/{Preview-CoWxE6yB.js → Preview-yiJBApzl.js} +1 -1
- package/dist/assets/{ProductsCarousel-DRfZ_sZ_-CLK0bly7.js → ProductsCarousel-E65X4lGB-DH2SteEv.js} +9 -9
- package/dist/assets/{PromoBaseCards-CbPywvj2-cL15_Lku.js → PromoBaseCards-O66NGGWD-BKbCdKhK.js} +4 -4
- package/dist/assets/{QBOConnectionDialog-DLuBxOXr-ChTwBVFO.js → QBOConnectionDialog-BrMv7xjB-DlUN7Kz1.js} +2 -2
- package/dist/assets/{QBOSetupSection-CxLynYFq-BCq79mPl.js → QBOSetupSection-B5D4uUOv-CGhKBwg7.js} +16 -16
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDK4q7B4-K_MvSiez.js → ReimbursementApprovalRuleDetailPage-DJNl2oqj-B4OdqkFs.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DFmZm1Qr-KN8xudqI.js → ReimbursementApprovalRulesPage-tnc2z3Es-yyigySmO.js} +17 -17
- package/dist/assets/ReimbursementDetailPage-CO8Wv5-c-qlCsVXqq.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-DENI6dAX-B3ip0p99.js → ReimbursementPromoPage-04Cqe8zH--NCi_DFM.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-BJoFNAQR-COWxA7Kg.js → ReimbursementSetUpPage-2VrhpV75-Bv2sY3Y4.js} +6 -6
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0a107hB-2TKc5O3B.js → ReimbursementsBulkReviewDrawerPage-CEZlRH0_-CC2d3Iit.js} +1 -1
- package/dist/assets/{ReloadCard-BCuJkAqw-CDSljNn0.js → ReloadCard-BakyoznA-DmnMlohL.js} +6 -6
- package/dist/assets/{ReportTableViewSelector-CEo0z4A2-DOQ_EfJ4.js → ReportTableViewSelector-C7w_WVnY-C6Okt0Gv.js} +4 -4
- package/dist/assets/{ReportsPage-gMt_l_Aa-C-pMgAcv.js → ReportsPage-BeZqGQ2i-2BlXIjgp.js} +5 -5
- package/dist/assets/{RevenueChart-JLdzi3aQ-CYETDjQg.js → RevenueChart-BcRkSSWz-D5XPPSEX.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-WBKwpVad-ChCuaJ93.js → ReviewDetailsPage-CA5CBeB7-DN9fIS4d.js} +52 -52
- package/dist/assets/{ReviewOverlay-DqOXHkMM-1Yn1edNo.js → ReviewOverlay-DNjbv6Ir-BYUbQDSw.js} +12 -12
- package/dist/assets/RoleWithToolTip-CSoHoT3u-vTwGI01K.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-CLjpednn-81YU8z_r.js +37 -0
- package/dist/assets/{ScheduleDetailsPage-_Ag36lXG-j5tYZL01.js → ScheduleDetailsPage-MEVdw-l_-gtCnaFgw.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-axweBiV5-DG58qOyk.js → ScheduleSequenceTable-BGx2un0o-CTi3pu3D.js} +52 -52
- package/dist/assets/{ScreenRoutes-DfcN59qq.js → ScreenRoutes-DUbNYmu4.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CerAAia_-BHtxUnyV.js → SetUpAccountSection-Blriup16-W2fx2DgC.js} +14 -14
- package/dist/assets/{SignIn-B1yQ5XWH-B0qhoH5M.js → SignIn-DqVQU08d-BerCpw9H.js} +15 -15
- package/dist/assets/{SignInScreen-Cqy7lnQW.js → SignInScreen-B5Y03mpU.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BL77zVeL-B2bOM6nq.js → SpendManagementListViewPage-Cd88asmE-CB759VbW.js} +8 -8
- package/dist/assets/{SpendManagementPerTabPage-B82q9yMk-DhUjeST3.js → SpendManagementPerTabPage-DyPyPQjh-CeHpfSNV.js} +26 -26
- package/dist/assets/{SpendManagementSection-Bcex-9e7-BSKprzB6.js → SpendManagementSection-C5fvFmdh-D7vZlQqH.js} +21 -21
- package/dist/assets/StatementItem-CBGi9f9C-DW_QCJ6P.js +31 -0
- package/dist/assets/StatementsPage-De1wPDzS-BpyLzEUf.js +58 -0
- package/dist/assets/{StatusSwitcher-Cw0Sq3bY-Dbm7BDCm.js → StatusSwitcher-BS4h8SJh-CcRGAnPy.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DmGRgMQe-DIYYgIi-.js → SubTabSwitcher-vsehXtEO-aHnk9ME_.js} +3 -3
- package/dist/assets/SummaryCard-gehzCCsW-cRlcrWMR.js +1 -0
- package/dist/assets/{TaskManagementPage-CAX0yrep-CSjDDqkF.js → TaskManagementPage-DlzHdHSu-DMSrvQ05.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-2AXHoZ8f-Cgeq5dRL.js → TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DJiKd_tL-BdEO97Xk.js → TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-5W1Xu4QM-CuZ3Yom9.js → TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js} +1 -1
- package/dist/assets/{TopExCard-8RRaMY7F-1AcJ6ae5.js → TopExCard-BQIHsi_z-CJAyN5Zr.js} +10 -10
- package/dist/assets/{TopExDetailPage-D2KlaBXx-CrnYkF9C.js → TopExDetailPage-BYCn9hZ2-DC2P4FKF.js} +2 -2
- package/dist/assets/{TransactionDetailPage-DdyFRxld-DnZZ8KzJ.js → TransactionDetailPage-BMYeFZH7-BFKwH-pD.js} +34 -34
- package/dist/assets/{TransactionList-CLVkETBe-C6Sys-PQ.js → TransactionList-BMfwxUes-i8oCJgrA.js} +12 -12
- package/dist/assets/{TransactionListBig-BRCiFBKB-BqQRPoZI.js → TransactionListBig-CSjliLzH-5P3TN04x.js} +6 -6
- package/dist/assets/{TransactionListPage-D0OgwsUo-LU1vJ-Dw.js → TransactionListPage-C2Iz7CDJ-CDbQhMhs.js} +2 -2
- package/dist/assets/TransactionVendorDetailPage-OXcpSTxA-ogeFkWo8.js +80 -0
- package/dist/assets/{TransferDrawerPage-DdDRqsyR-DMAPk7th.js → TransferDrawerPage-4lrBrmvC-BzHEhXmo.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BcIRsLLj-DCm6-KYB.js → TreasuryOverviewPage-DNUrwQ-l-CtbTN09Y.js} +37 -37
- package/dist/assets/{TreasuryPromoPage-qbltxtYj-CW-CYLuB.js → TreasuryPromoPage-CjjmLEyR-Jw9_r6c2.js} +16 -16
- package/dist/assets/TreasuryStatementsPage-CGax-FVg-CB9f88VO.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-C2-SmkNZ-D-j8G4aE.js → TreasuryTaxLetterPage-DapKFecA-Ckfl6mTT.js} +2 -2
- package/dist/assets/{TrendChart-Cot9LFNh-kn3CmpPt.js → TrendChart-t_2mlnuR-C3EpG69G.js} +2 -2
- package/dist/assets/{TrendWithTransactions-BKxxRKGE-IUCrWYsQ.js → TrendWithTransactions-BjQX1uvO-CXSH8SoK.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-C7Z3q75s-CkVCyXIl.js → UncategorizedAccountsMappingPage-C9DJ4P_n-Da3On2ZP.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-DV9q3Nzs-B6vgPVOV.js → UnitIntegrationPage-CzfmBBVs-ea0q-ics.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-BJiBj5mg-Cktdlkx4.js +38 -0
- package/dist/assets/Vendor2FAPopup-Jhuzv3Fs-CDaFjIcb.js +1 -0
- package/dist/assets/VendorACHDetailsPage-BRmIiet8-C_w2yQJy.js +1 -0
- package/dist/assets/{VendorDetailPage-CH1L4UZF-BsVioyb_.js → VendorDetailPage-D_ia0GnG-EjDxeWPl.js} +10 -10
- package/dist/assets/VendorDomesticWireDetailsPage-DTx8HL4V-ypi2AXXw.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-BaX4ACXz-2JAer4Dh.js → VendorFiling1099EditablePage-6mV7WBuT-BWwNGaDM.js} +9 -9
- package/dist/assets/{VendorFirstReviewPage-DAZJMUR3-DNxGnCTD.js → VendorFirstReviewPage-BIh28s7e-DSbo4VGu.js} +20 -20
- package/dist/assets/{VendorInternationalWireDetailsPage-CPnjLrDQ-DMs_PuTr.js → VendorInternationalWireDetailsPage-CXmAXDcB-BBI1eBRw.js} +25 -25
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DITo3td6-DtabXm0e.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DsgK37WB-aox7OqvX.js → VendorsAccountsSection-kJAKmxCN-DLYMQH1s.js} +3 -3
- package/dist/assets/{VerifyDevice-BPAsHKLY-Cz_qYix0.js → VerifyDevice-Cclxcvod-LionuPr6.js} +6 -6
- package/dist/assets/{VideoPlayer-Bwg_8KIq-BdYMo354.js → VideoPlayer-B0jJK498-Bbxsuaup.js} +2 -2
- package/dist/assets/{VideoPopup-CxjbzbjP-BNEaMqCr.js → VideoPopup-BUq4CaWy-BN4RkIzc.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-BBc3-y8F-BZEfDhck.js → WarningsDrawerPage-B7Pmv7_n-DMtwZsM9.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-VB4JoNYE-BFAmjkJH.js → ZeniAccountDetailPage-l5IuVidF-9qcHcEDf.js} +14 -14
- package/dist/assets/{ZeniAccountListViewPage-CMjCtqT0-DlchsqGp.js → ZeniAccountListViewPage-CtOCukoi-BrJGMSMd.js} +14 -14
- package/dist/assets/{ZeniAccountNavBarPieces-C89nBJ6j--_uql9Y3.js → ZeniAccountNavBarPieces-DHpWht7s-DoN45Kif.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-C1_qLOdH-DnXsp_Yv.js → ZeniAccountPromoPage-DhuZowvX-C0CMafiM.js} +6 -6
- package/dist/assets/{ZeniAccountSetupPage-DWEVvvHh-FILqo9Qu.js → ZeniAccountSetupPage-DXmdPnU2-Od8qQEgW.js} +1 -1
- package/dist/assets/{ZeniCopyright-COx-CtZK-D8sb71fE.js → ZeniCopyright-CxIm7c5S-BQ5EemJ1.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DfOF_MH1-CdGJRA77.js → ZeniTransferAmountSlider-7nRSeYbl-qFHjxePx.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-0XGXXyET.js → add-to-wallet-DgdBD8_G-DTqFjlvW.js} +1 -1
- package/dist/assets/{analytics-DKo_M1pl.js → analytics-nCDopMZa.js} +1 -1
- package/dist/assets/{analyticsHelper-CcmV6wHp-Ds3S8ZrP.js → analyticsHelper-BXN2EdPH-DXUFohOz.js} +1 -1
- package/dist/assets/{analyticsHelper-CIahkACa.js → analyticsHelper-DFj-3TWh.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BXV4c0YJ.js → arrow-south-east-round-PEovUgvH-C9v2daeL.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CaqR_Fs7.js → auto-transfer-rule-mbafm5D3-C9ojomBW.js} +1 -1
- package/dist/assets/{chartTypes-YlZX4WLs-vwClst_9.js → chartTypes-qqLvT6t1-BAzagmMG.js} +1 -1
- package/dist/assets/{commonDimensions-IG4iGJ-6-COy8LjzW.js → commonDimensions-CDU138wy-0KaFqMmK.js} +1 -1
- package/dist/assets/{constants-fG1bibDB.js → constants-CiSoUYAy.js} +1 -1
- package/dist/assets/{core-CpHpZW9N.js → core-B8o5Jj6O.js} +1 -1
- package/dist/assets/{dash.all.min-CVRHLeuD.js → dash.all.min-D-Z5Ee1V.js} +1 -1
- package/dist/assets/{detailCommon-lUFqcp_3-D6_iWrpG.js → detailCommon-DP02lgW9-DwZYcDAj.js} +5 -5
- package/dist/assets/{downloadPdf-DYME892p-CFdivUKB.js → downloadPdf-Dl5UuOv_-DcSCv9vJ.js} +1 -1
- package/dist/assets/{empty-BHQsFmmb.js → empty-CGwQB5sP.js} +1 -1
- package/dist/assets/{empty-_FQjEKMH.js → empty-dVLDjrZY.js} +1 -1
- package/dist/assets/epic-gk6U9kCP.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-Dy2FFAHX.js → gift-box-Cmt9OgIZ-C7uoRs4g.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BYD1Ec66.js → graphic-no-data-l-DU4J8fDt-DxQEyL6u.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DyCtYJXL.js → graphic-no-data-net-burn-l-CzmycA0m-BeDfyPz6.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Ck4T6x8r.js → handshake-BPg58FML-C6I69X2f.js} +1 -1
- package/dist/assets/{index-DMxZ-F2f.js → index-2UT2PoLz.js} +1 -1
- package/dist/assets/{index-snZI7Ejp.js → index-B62kMDsj.js} +1 -1
- package/dist/assets/{index-gQkYKWh4.js → index-BlhMiimg.js} +1 -1
- package/dist/assets/{index-CdjgwxSA.js → index-CJSgchrb.js} +1 -1
- package/dist/assets/{index-CXEWvwRf.js → index-CofZqiyy.js} +1 -1
- package/dist/assets/{index-B_cddanf.js → index-l9FViNoO.js} +1044 -1048
- package/dist/assets/{index--v5kH7eI.js → index-mRKAcklk.js} +1 -1
- package/dist/assets/{lexical-DVClH-hg.js → lexical-B19SDutg.js} +1 -1
- package/dist/assets/{liveblocks-DKD_-8rq.js → liveblocks-BKCvXoiA.js} +1 -1
- package/dist/assets/{lottie-DPQlys-3.js → lottie-CTuuushW.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BNXHaV-x-8h6T4NE0.js → mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Bl4MSBc9-DsaOHsUd.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-LxIEmBdX-Bxr9xNOi.js → mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cx4O7W7V-C8qea7Z2.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-B7P1WFjn.js +1 -0
- package/dist/assets/{mui-vQToN2qW.js → mui-cKt0zt2w.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BDbvQ5nZ.js → page-detail-CWX5S47F-hDrW8rOj.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-n0U7H3Pg.js → radio-default-CiSgisfh-D4wl_ybJ.js} +1 -1
- package/dist/assets/{react-Hb_TE8am.js → react-3b8QVeng.js} +1 -1
- package/dist/assets/{react-D4TXMxQv.js → react-85WN45Y4.js} +1 -1
- package/dist/assets/{react-DSNCIi97.js → react-BcpaDQXf.js} +1 -1
- package/dist/assets/{react-BP7HcSTu.js → react-CUDeH5fw.js} +1 -1
- package/dist/assets/{react-DkBDh8Z0.js → react-D2QCQuEO.js} +1 -1
- package/dist/assets/{react-DoQr6jZT.js → react-D811AKIl.js} +3 -3
- package/dist/assets/{react-BoeZM2US.js → react-Drezwue3.js} +1 -1
- package/dist/assets/{react-4R0im3o1.js → react-DycPsf8e.js} +1 -1
- package/dist/assets/{recharts-jo6oNEJ1.js → recharts-DKlDhqpA.js} +1 -1
- package/dist/assets/{sentry-CiC6rduJ.js → sentry-DWELwT5u.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-B-y5Gt68.js → shield-DOlUxcFf-DcDDcztl.js} +1 -1
- package/dist/assets/toCOABalancesWithID-BM2RMkm6-8ztVlUAS.js +1 -0
- package/dist/assets/{toChartData-CuSN9vUZ-CBCyKcms.js → toChartData-xURa2wgf-D5Tvqegg.js} +1 -1
- package/dist/assets/{uploadAttachment-CRI5U1f4-BNbLH2xC.js → uploadAttachment-DfTOIWsX-DQL7CPp6.js} +17 -17
- package/dist/assets/{uploadReceipts-CPw64UYa-rrnBgQHD.js → uploadReceipts-CPw64UYa-BXgFs59O.js} +1 -1
- package/dist/assets/{url-Cptp4ROd.js → url-BO73xRx2.js} +1 -1
- package/dist/assets/{url-D2MARgat.js → url-dLu3i57y.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DI7_2uJq.js → useLongPress-GCK2COYQ-BJatk2tg.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-COeXcH05.js → usp-line-BBd1wKwW-DG080FPi.js} +1 -1
- package/dist/assets/{utils-CM3T2Iks.js → utils-Db67jZaM.js} +1 -1
- package/dist/assets/{zeni-epic-state-Ce8CP8e3.js → zeni-epic-state-atBaoFS-.js} +17 -17
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AccountInfoPage-D0Kzx5mY-4RCW-gma.js +0 -18
- package/dist/assets/AddAddressForCardDrawer-C_QsOhGT-sPCk5dFw.js +0 -6
- package/dist/assets/ApprovalRulesSettingsPage-5bJIKss7-Y9SQffD9.js +0 -47
- package/dist/assets/BillingSettingsPage-BiKaSV4T-Clmey8ds.js +0 -44
- package/dist/assets/BusinessVerificationPage-8tFxbXGC-u7kE13ru.js +0 -138
- package/dist/assets/ChargeCardPromoPage-BUGGPnco-B8DmSz9X.js +0 -222
- package/dist/assets/CompanyOfficerDetailsSection-CMl5cDNs-ClxHSaX5.js +0 -330
- package/dist/assets/CompanyPassportPage-BlDBD5EG-Ms4tKiHb.js +0 -347
- package/dist/assets/ConfettiBurst-nOkNOTPr-BBZuvmiJ.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dq7dnrBC-CLzw6d0Z.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-D1XU-7jk-U96sx-zJ.js +0 -66
- package/dist/assets/CustomerOnboardingPage-DFky4iQx-DXMpG3E5.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-MLQJ9urd-DG1x-GzH.js +0 -66
- package/dist/assets/EntityDetailPage-Bj5lQ0PH-DoSc2vhw.js +0 -18
- package/dist/assets/InsightsSection-BT0lHMo3-BUbRW235.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-B0ha4dEA-C8DDegxT.js +0 -65
- package/dist/assets/LabeledCountryMultiSelectField-CJud_Lwc-CMmFxHh7.js +0 -234
- package/dist/assets/LabeledMultiSelectField-DH6iG4SR-Dp-VUwax.js +0 -220
- package/dist/assets/MagicLinkACHDetailsPage-CRVp5zpz-Bv9MRMFe.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Cc9jW4rg-CJBdK_v_.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-COHy_2Nv-CRrVgpWZ.js +0 -1
- package/dist/assets/NoDataChart-DxwqqeoI-DkdOoSHp.js +0 -26
- package/dist/assets/NoDataTable-DOZy5UAM-CLNkMXvt.js +0 -8
- package/dist/assets/NotificationsListConfig-C-OlC5S6-DRk_Uldo.js +0 -1
- package/dist/assets/OverlayContainerPage-Daz3A7cI-DMUnjjcT.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-Dnw0APJu-4xS9nSQN.js +0 -107
- package/dist/assets/ReimbursementDetailPage-DOCRkpPT-AvgWK7pn.js +0 -314
- package/dist/assets/RoleWithToolTip-BYuFXi4d-CSVDcI3W.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-BU--t7Cu-DFGGgkNo.js +0 -37
- package/dist/assets/StatementItem-CL4KzNeN-CTh4IsrB.js +0 -31
- package/dist/assets/StatementsPage-ECVGrRXi-Dgi1qAAg.js +0 -58
- package/dist/assets/SummaryCard-OvE5BRYP-lMLGP1wc.js +0 -1
- package/dist/assets/TransactionVendorDetailPage-BLCUqZvL-V1txeeOu.js +0 -80
- package/dist/assets/TreasuryStatementsPage-CLFal4Qu-Bi5NNgyx.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-B37gdjRF-D7Y_EFQG.js +0 -38
- package/dist/assets/Vendor2FAPopup-BZQXt_G4-B9AtIVBH.js +0 -1
- package/dist/assets/VendorACHDetailsPage-WS3d8TF6-BTnrLXkh.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-Brom_Sf_-Bln1Phsj.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-C4XEeSs2-CiauNbGU.js +0 -1
- package/dist/assets/commonTypes-ByC4Sd87-BqJ29CNI.js +0 -1
- package/dist/assets/epic-DRq35BIa.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-B7Tq4sxB-DXX1rvvB.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DpgQIqP_-d7FgPe5u.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-fxn51zxe-ArPj_MwE.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-opvjldHo-DvfSG3SI.js +0 -1
- package/dist/assets/toCOABalancesWithID-BAw7mDDs-4dn7cu8D.js +0 -1
package/dist/assets/{BillDetailPage-ByPP2r-L-DYJrFGG4.js → BillDetailPage-B_zbQLLp-Dsf72rKA.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,dq as ut,cn as yt,co as ht,cp as bt,gj as aa,gk as ia,gl as la,gm as oa,fe as j,gn as I,fg as A,fh as k,fd as ra,b as ft,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,go as pa,gp as ma,aP as ua,ao as gt,bR as ve,gq as ya,gr as L,F as ha,c as s,ag as ba,c0 as fa,gs as ga,L as xa,gt as wa,fo as xt,R as Ta,c$ as va,cg as Da,gu as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d0 as Aa,gv as ka,ai as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-B_cddanf.js";import{a as p}from"./sentry-CiC6rduJ.js";import{n as i}from"./mui-vQToN2qW.js";import{a as za}from"./liveblocks-DKD_-8rq.js";import{bO as Ma,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-Ce8CP8e3.js";import{o as Wa,t as Za}from"./LowBalancePopup-BN2RBNOV-CkWXHs8U.js";import"./core-CpHpZW9N.js";import"./lottie-DPQlys-3.js";import"./analytics-DKo_M1pl.js";import"./recharts-jo6oNEJ1.js";import"./lexical-DVClH-hg.js";import"./utils-CM3T2Iks.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="d2f499f2-fc63-4e6f-b6c0-7fed4223f3ef",e._sentryDebugIdIdentifier="sentry-dbid-d2f499f2-fc63-4e6f-b6c0-7fed4223f3ef")}catch{}})();const Ka=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"})))),Ua={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:qa,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Va,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=qa.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:f,showApproveRejectBtns:g,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ut,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:qt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Vt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Gt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:U})=>{const l=Zn(),o=Kn(),Fe=Un(),[an,q]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=qt?qn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:V,isLoading:P}=Vn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:V.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[V,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&V.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,V,P,ee,Q]);const Ke=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ke.current&&(Ke.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,qe]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Ve]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Vt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),q(!0)},fn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},gn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{q(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{q(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,fe=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",In=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx($i,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Ut&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||g&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Ge,r)},rt=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Jt(),Ve(!1),Ge&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{qe("approved"),We===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{qe("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(f.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format($e)??"",paymentType:nt,amount:Se("0,0.[00]",fe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ja(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(gi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ie,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(I,{label:{label:n.invoiceNumber,width:$},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:$},text:ie.invoiceDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:$},text:ie.billDueDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:$},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{children:[t.jsx(fi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:$},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:$},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:$},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:$},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:$},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:$},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:fe!=null?t.jsx(ra,{amount:fe,integerStyles:ft.h6Medium.cssObject,decimalStyles:ft.standardMedium.cssObject}):C})]}),t.jsxs(Ie,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(I,{label:{label:n.withdrawFrom,width:$},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:$},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentTo,width:$},text:d.paymentToBankAccount!=null?In:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentType,width:$},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ii,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||g,showCancel:!K&&g,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ue==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(K,ot),isLoading:Ue==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?rt:()=>{_!=null?J(!0):st()},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(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(gt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:fn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:gn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(gt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&ge===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Va,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:V,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:$t.resolveComment,threadUnResolve:$t.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,f)=>{const g=e?.code;if(e!=null&&g!=null)return f?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&f?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[g].color,bgColor:L[g].bgColor,borderColor:L[g].borderColor}},Ja=(e,f)=>{const g=f.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:f.withdrawFrom!=null?Ot(f.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:g!=null?Se("0,0[.]00",g):C})]})]})},Qa=(e,f)=>e?n.paymentOutsideZeni.markAsPaid:f?n.buttons.approve:n.buttons.approveBill,ei=e=>{const f=e.paymentMode,g=n.paymentOutsideZeni.offline;if(f==null||f==="other")return g;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===f)?.label;return`${g} ${Ha} ${Z}`},ti=(e,f,g)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(g!=null){const Z=`${f.withdrawFrom?.label??""} ${f.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:g.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
1
|
+
import{q as Zn,aw as Un,e as Kn,gd as Vn,ge as qn,gf as Gn,gg as Hn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,ds as ut,cn as yt,co as ht,cp as bt,gh as aa,gi as ia,gj as la,gk as oa,fe as j,gl as I,fg as A,fh as k,fd as ra,b as gt,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,gm as pa,gn as ma,aP as ua,ao as ft,bR as ve,go as ya,gp as L,F as ha,d as s,ag as ba,c0 as ga,gq as fa,_ as xa,gr as wa,fo as xt,M as Ta,d1 as va,cg as Da,gs as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d2 as Aa,gt as ka,ai as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-l9FViNoO.js";import{a as p}from"./sentry-DWELwT5u.js";import{n as i}from"./mui-cKt0zt2w.js";import{a as za}from"./liveblocks-BKCvXoiA.js";import{bO as Ma,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-atBaoFS-.js";import{o as Wa,t as Za}from"./LowBalancePopup-Dt9KCWOU-CfGVa0nY.js";import"./core-B8o5Jj6O.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./recharts-DKlDhqpA.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="e4114264-e3d4-4d22-87b9-ba1a125e8a02",e._sentryDebugIdIdentifier="sentry-dbid-e4114264-e3d4-4d22-87b9-ba1a125e8a02")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:qa,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:qt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Ht,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:qn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),q(!1)},[ee,q]);p.useEffect(()=>{ue?.threadId!=null&&G.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,G,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,qe]=p.useState(!1),[un,Ge]=p.useState(!1),[He,Xe]=p.useState(!1),Ye=()=>qe(!1),yn=()=>qe(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&H?.code?H:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:H?.code!=null&&(ae?.code=="approved"||H.code==="mark_as_paid")?H:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",In=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx($i,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,He,r)},rt=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Jt(),Ge(!1),He&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=qt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format($e)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ja(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ie,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(I,{label:{label:n.invoiceNumber,width:$},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:$},text:ie.invoiceDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:$},text:ie.billDueDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:$},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:$},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:$},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:$},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:$},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:$},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:$},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs(Ie,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(I,{label:{label:n.withdrawFrom,width:$},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:$},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentTo,width:$},text:d.paymentToBankAccount!=null?In:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentType,width:$},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ii,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:$t.resolveComment,threadUnResolve:$t.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${qa} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,li=i(Ba)`
|
|
@@ -18,7 +18,7 @@ import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO
|
|
|
18
18
|
&:hover {
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
|
-
`,oi=i(
|
|
21
|
+
`,oi=i(Ua)`
|
|
22
22
|
color: ${e=>e.theme.colors.hero};
|
|
23
23
|
width: ${a.sp5};
|
|
24
24
|
height: ${a.sp5};
|
|
@@ -82,7 +82,7 @@ import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO
|
|
|
82
82
|
&:hover {
|
|
83
83
|
background-color: ${e=>e.theme.colors.background};
|
|
84
84
|
}
|
|
85
|
-
`,At=i(
|
|
85
|
+
`,At=i(ga)`
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
color: ${e=>e.theme.colors.hero};
|
|
88
88
|
width: 20px;
|
|
@@ -156,12 +156,12 @@ import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO
|
|
|
156
156
|
padding-right: ${e=>m.containerPaddingRight.valuePx(e.windowSize)};
|
|
157
157
|
overflow-x: hidden;
|
|
158
158
|
margin-top: ${e=>m.navBarHeight.valuePx(e.windowSize)};
|
|
159
|
-
`,
|
|
159
|
+
`,gi=i.div`
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
162
162
|
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
163
163
|
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
164
|
-
`,
|
|
164
|
+
`,fi=i.div`
|
|
165
165
|
display: flex;
|
|
166
166
|
margin-bottom: ${a.sp3};
|
|
167
167
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -171,7 +171,7 @@ import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO
|
|
|
171
171
|
display: flex;
|
|
172
172
|
align-items: center;
|
|
173
173
|
flex-grow: 1;
|
|
174
|
-
${e=>`${
|
|
174
|
+
${e=>`${Ka.formTitle.style(e.windowSize)}`};
|
|
175
175
|
color: ${e=>e.theme.colors.primary};
|
|
176
176
|
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
177
177
|
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
@@ -249,7 +249,7 @@ import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO
|
|
|
249
249
|
&:hover {
|
|
250
250
|
color: ${e=>e.theme.colors.primary};
|
|
251
251
|
}
|
|
252
|
-
`,Lt=i(
|
|
252
|
+
`,Lt=i(fa)`
|
|
253
253
|
display: flex;
|
|
254
254
|
width: ${a.sp4};
|
|
255
255
|
height: ${a.sp4};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{y as O,
|
|
1
|
+
import{y as O,d as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as c,g3 as Y}from"./index-l9FViNoO.js";import{a as T}from"./sentry-DWELwT5u.js";import{n as h}from"./mui-cKt0zt2w.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-DhiGIylh-dcsWOGAc.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./zeni-epic-state-atBaoFS-.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d86dc387-6777-40c4-ac67-1d6c906fadd2",e._sentryDebugIdIdentifier="sentry-dbid-d86dc387-6777-40c4-ac67-1d6c906fadd2")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:$}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),v=m>0?d[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:D})=>{if(D!=null&&p!=null){const z=H(p);X(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&I()},[B,u?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:R(k),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:R(k),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:C},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),R=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
box-shadow: ${e=>`${
|
|
7
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
8
|
`,ie=h.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
-
box-shadow: ${e=>`${
|
|
13
|
-
border-radius: ${
|
|
12
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${c.sp2};
|
|
14
14
|
`,ne=h.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as L,F as v,V as t,bA as
|
|
1
|
+
import{q as L,F as v,V as t,bA as N,A as _,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cZ as V,d as l,b8 as G,M as k,b7 as q,p as z,cW as F,bs as Z,b as J}from"./index-l9FViNoO.js";import{n as i}from"./mui-cKt0zt2w.js";import{a as K}from"./sentry-DWELwT5u.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./zeni-epic-state-atBaoFS-.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="eef3d168-cfe6-450e-a0ec-71f6d94aeb2d",e._sentryDebugIdIdentifier="sentry-dbid-eef3d168-cfe6-450e-a0ec-71f6d94aeb2d")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=K.useState(!1),n=L(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},W={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:h,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Y,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(B,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,D)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${M}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),x?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,7 +14,7 @@ import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn a
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,X=i(G)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -22,7 +22,7 @@ import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn a
|
|
|
22
22
|
text-align: center;
|
|
23
23
|
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
24
|
gap: ${o.sp2};
|
|
25
|
-
`,
|
|
25
|
+
`,Y=i.div`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
@@ -149,7 +149,7 @@ import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn a
|
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${z.important};
|
|
151
151
|
}
|
|
152
|
-
`,pe=i(
|
|
152
|
+
`,pe=i(Z)`
|
|
153
153
|
width: ${o.sp3};
|
|
154
154
|
height: ${o.sp3};
|
|
155
155
|
cursor: pointer;
|
|
@@ -170,7 +170,7 @@ import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn a
|
|
|
170
170
|
${e=>`${A.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,f={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])},Re=({approvalView:e,onBackClick:h,onEditRuleClick:d,onDeleteRuleClick:b})=>{const w=L(),{fetchState:x,deleteStatus:g}=e,n=v.getLocalizedStrings().commonSetUp.approval,u=v.getLocalizedStrings().spendManagement.billPay.billPayApproval,$=g.fetchState,m=e.listeningToPusherEvent;return t.jsxs(ce,{children:[t.jsx(
|
|
173
|
+
`,f={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])},Re=({approvalView:e,onBackClick:h,onEditRuleClick:d,onDeleteRuleClick:b})=>{const w=L(),{fetchState:x,deleteStatus:g}=e,n=v.getLocalizedStrings().commonSetUp.approval,u=v.getLocalizedStrings().spendManagement.billPay.billPayApproval,$=g.fetchState,m=e.listeningToPusherEvent;return t.jsxs(ce,{children:[t.jsx(N,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{h()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(me,{windowSize:w,children:u.approvalPageSubTitle}),x==="In-Progress"||x==="Not-Started"||$==="In-Progress"||m===!0?t.jsxs(ue,{children:[t.jsx(_,{size:m===!0?"Large":"ExtraLarge",start:!0}),m===!0&&t.jsx(we,{windowSize:w,children:n.updatingApprovalRules.replace("__entity__","bills")})]}):x==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,y)=>t.jsx(O,{showDeleteBtn:y!==0,approvalRule:a,isLastSection:y===e.allApprovalRules.length-1,onEditRuleClick:d,onDeleteRuleClick:b},a.approvalRuleId)),t.jsxs(xe,{windowSize:w,onClick:()=>{d()},"data-testid":S("add-approval-rule-bill-pay"),children:[t.jsx(ge,{}),t.jsx($e,{children:n.addApprovalText})]})]}):null]})]})},ce=i.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
package/dist/assets/{BillPayPromoPage-B1_ugFQw-DrmfvS7a.js → BillPayPromoPage-DkyMRquU-6vAZUzNc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,
|
|
1
|
+
import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,c as se,e as M,aR as U,am as oe,y as te,p as b,cB as re,aS as ae,b9 as ne,d as de}from"./index-l9FViNoO.js";import{a as g}from"./sentry-DWELwT5u.js";import{n as s}from"./mui-cKt0zt2w.js";import{Fw as ce,bS as pe,Fx as me}from"./zeni-epic-state-atBaoFS-.js";import{f as xe}from"./VideoPopup-BUq4CaWy-BN4RkIzc.js";import{M as $}from"./usp-line-BBd1wKwW-DG080FPi.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./VideoPlayer-B0jJK498-Bbxsuaup.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="b0a8894a-6da3-455d-b1ec-b73bdf69b098",i._sentryDebugIdIdentifier="sentry-dbid-b0a8894a-6da3-455d-b1ec-b73bdf69b098")}catch{}})();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",he={midContainerMarginBottom:new te(de[5],44)},ge=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -23,11 +23,11 @@ import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>he.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,je=s.div``,x=s.img``,
|
|
26
|
+
`,je=s.div``,x=s.img``,R=s.div`
|
|
27
27
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
|
-
`,
|
|
30
|
+
`,F=s.div`
|
|
31
31
|
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
max-width: 712px;
|
|
@@ -63,11 +63,11 @@ import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
64
|
`,d=s.div``,c=s.div`
|
|
65
65
|
padding-left: ${l.sp3};
|
|
66
|
-
`,_=s($)`
|
|
67
|
-
color: ${b.graphColor16Dark};
|
|
68
66
|
`,E=s($)`
|
|
67
|
+
color: ${b.graphColor16Dark};
|
|
68
|
+
`,_=s($)`
|
|
69
69
|
color: ${b.graphColor09Dark};
|
|
70
|
-
`,
|
|
70
|
+
`,q=s($)`
|
|
71
71
|
color: ${b.graphColor28Dark};
|
|
72
72
|
`,fe=s(oe)`
|
|
73
73
|
margin: ${l.sp3} auto;
|
|
@@ -81,4 +81,4 @@ import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
81
81
|
`,$e=s(U)`
|
|
82
82
|
margin: ${i=>i.windowSize==="small"?l.sp1:`auto ${l.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ve=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:
|
|
84
|
+
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ve=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:N,onButtonClick:O,onBackClick:H,onSetupBillPaySuccess:z,onClickMenuIcon:Z})=>{const h=W(),a=f(),{billPayTermsDetails:p}=i,[J,K]=g.useState(!1),[Q,k]=g.useState(!1),v=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const X=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},G=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!G,T=P?t.setupNonAccessableUsersPromoText:t.promoText;return e.jsxs(ge,{children:[J===!0?e.jsx(xe,{onCancelClick:()=>{K(!1)},videoUrl:N}):null,Q===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ie,{title:t.title,onBackClick:H,showBackButton:!me(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:Z,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(Se,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs(be,{windowSize:a,children:[e.jsx(B,{variant:"secondary",label:t.scheduleDemoButton,onClick:X,"data-testid":C("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:t.orText}),e.jsx(B,{variant:"primary",label:t.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:O,"data-testid":C("billpay-setup-button")})]}),e.jsxs(fe,{children:[t.terms.terms1,e.jsx(m,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(m,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(m,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(m,{href:r.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,t.terms.terms3]})]}):null]})]})},Se=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(F,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(R,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.fullyManagedText.bold}),e.jsx(y,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(R,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.fullyManagedText.bold}),e.jsx(u,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.multiLevelApprovalText.bold}),e.jsx(u,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.aiPoweredText.bold}),e.jsx(u,{children:t.aiPoweredText.regular})]})]})]}),e.jsx(F,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ve as default};
|
package/dist/assets/{BillPaySetUpPage-Cx2vQIL8-ngc-DjEe.js → BillPaySetUpPage-m15SlV0c-C_W7-nyr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as ze,aN as Le,y as u,bA as Ne,A as qe,ac as Me,fq as H,dN as Ge,fr as Je,bv as Ze,dD as Ke,bR as Xe,fs as Ye,aP as Qe,o as L,ft as et,d as a,al as tt,bI as it}from"./index-l9FViNoO.js";import{a as m}from"./sentry-DWELwT5u.js";import{n as b}from"./mui-cKt0zt2w.js";import{bJ as nt}from"./zeni-epic-state-atBaoFS-.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BJiBj5mg-Cktdlkx4.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="7b3217ff-3d94-4f33-b41a-11aca9a493c1",e._sentryDebugIdIdentifier="sentry-dbid-7b3217ff-3d94-4f33-b41a-11aca9a493c1")}catch{}})();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",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:N,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const A=De(),i=Oe(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:Ae,plaidConnectionDetails:_,allBankAccounts:ke,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,B=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,D.fetchState,K,O.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&N()},[N,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=A.mode==="light"?new X(A.colors.brandColorJadeLight):new X(A.colors.brandColorJadeDark),_e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:A.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:ke,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?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:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?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:I}):null]})]}),$&&!R&&j.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -6,14 +6,14 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
|
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
7
|
height: 100vh;
|
|
8
8
|
overflow-y: auto;
|
|
9
|
-
`,ct=
|
|
10
|
-
width: ${
|
|
11
|
-
height: ${
|
|
9
|
+
`,ct=b(it)`
|
|
10
|
+
width: ${L.sp3};
|
|
11
|
+
height: ${L.sp3};
|
|
12
12
|
color: ${e=>e.theme.colors.hero};
|
|
13
13
|
&:hover {
|
|
14
14
|
color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
|
-
`,st=
|
|
16
|
+
`,st=b(tt)`
|
|
17
17
|
color: ${e=>e.theme.colors.hero};
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
@@ -21,13 +21,13 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
|
|
|
21
21
|
padding-top: ${e=>n.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
22
22
|
padding-bottom: ${e=>n.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
23
23
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
24
|
-
`,dt=
|
|
24
|
+
`,dt=b.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: flex-start;
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
align-items: center;
|
|
29
29
|
row-gap: ${e=>n.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
30
|
-
`,rt=
|
|
30
|
+
`,rt=b.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: calc(100vh - 110px);
|
|
@@ -35,8 +35,8 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
|
|
|
35
35
|
justify-content: center;
|
|
36
36
|
align-items: center;
|
|
37
37
|
background-color: ${e=>e.theme.colors.grey4};
|
|
38
|
-
`,ut=
|
|
38
|
+
`,ut=b.div`
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
|
|
42
|
-
`,
|
|
42
|
+
`,z=e=>{const{allBankAccounts:p,allFundingAccounts:v,primaryFundingAccount:C}=e;return{[W]:{fundingAccount:{selectedOption:C?.id,allOptions:v.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:C?.zeniAccountId,allOptions:p.map(s=>({label:s.accountName,value:s.accountId}))}}}},Q=e=>`${e}_form`;export{Ct as default,Q as uniqueName};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{e as Se,q as we,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ae,A as Ie,ac as ve,bv as ke,cD as je,aP as $e,o as s,hG as De,eV as Te,eW as Ve,d as x,al as Be,gP as Ee,p as ze,M as Le}from"./index-l9FViNoO.js";import{a as W}from"./sentry-DWELwT5u.js";import{n as r}from"./mui-cKt0zt2w.js";import{M as Me,r as F,o as Oe}from"./PaymentAccountSetupBillingAddressSection-CIlQ-MgM-D9smrX3o.js";import{F as _e}from"./SetUpAccountSection-Blriup16-W2fx2DgC.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./zeni-epic-state-atBaoFS-.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="6d12cf0a-8323-4e83-b526-fb35ccb4bfb1",e._sentryDebugIdIdentifier="sentry-dbid-6d12cf0a-8323-4e83-b526-fb35ccb4bfb1")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},We={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:q,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=Se(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:D},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=D.fetchState==="In-Progress"||D.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:R(i),values:R(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),V=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[A];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:S}=a[n].street,k=Te(S?.country);u={street:a[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ve(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};W.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=w.mode==="light"?new j(w.colors.brandColorJadeLight):new j(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:b}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",M=h?.addCardPaymentSourceStatus.fetchState,C=Me(b.header,b.titleText,b.protectedCardNo,h);let O;z&&(O={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new j(B)},showCompletedIcon:!1,isError:M==="Error",isLoading:M==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,be]=W.useState(!1);return t.jsxs(He,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(Re,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:b.header,sectionTitle:b.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:T?.code==="require_info"||T?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:O,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),qe(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:U(H),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Oe,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:q,cardSetupInProgress:_,setCardSetupInProgress:be})]})},R=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[A]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},Fe=r.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
9
|
+
`,He=r.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
min-height: 100%;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
width: 100%;
|
|
14
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
15
|
+
`,Re=r(Be)`
|
|
16
|
+
color: ${e=>e.theme.colors.hero};
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
width: ${e=>p.titleWidth.valuePx(e.windowSize)};
|
|
20
|
+
padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
21
|
+
padding-bottom: ${s.sp3};
|
|
22
|
+
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
23
|
+
`,Ue=r.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: calc(100vh - 110px);
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
31
|
+
`,Ke=r.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
`,qe=(e,i,m,d,I)=>t.jsxs(Ne,{children:[t.jsx(Ge,{windowSize:e,isDisabled:I==="disabled",children:i}),t.jsx(Ee,{googleAPIKey:d??"",addressToEdit:m,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ne=r.div`
|
|
35
|
+
margin-top: ${s.sp3};
|
|
36
|
+
margin-bottom: ${s.sp4};
|
|
37
|
+
`,Ge=r.div`
|
|
38
|
+
${e=>`${We.title.style(e.windowSize)}`};
|
|
39
|
+
margin-bottom: ${s.sp3};
|
|
40
|
+
margin-top: ${s.sp4};
|
|
41
|
+
color: ${e=>e.isError===!0?ze.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
|
|
42
|
+
`,Je=r.div`
|
|
43
|
+
flex: 1;
|
|
44
|
+
`,U=e=>`${e}_form`;export{lt as default,U as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as v,cn as V,co as W,cp as M,k2 as q,aW as z,F as G}from"./index-l9FViNoO.js";import{a as f}from"./sentry-DWELwT5u.js";import{Gd as K}from"./zeni-epic-state-atBaoFS-.js";import{u as Q}from"./ReviewOverlay-DNjbv6Ir-BYUbQDSw.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./mui-cKt0zt2w.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e2cfb057-b944-4ee3-b0ae-ac5fb20d887f",e._sentryDebugIdIdentifier="sentry-dbid-e2cfb057-b944-4ee3-b0ae-ac5fb20d887f")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=f.useState(!1),[n,b]=f.useState(P(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[w,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:T?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(M,{children:w.title}),descriptionComponent:v.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,y=r>1,n=l>1;let b="",p="";return e==="Completed"&&!t?(b=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?g:_)}`):(b=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:b,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as l,V as s,aN as b,o as e}from"./index-
|
|
1
|
+
import{q as l,V as s,aN as b,o as e}from"./index-l9FViNoO.js";import{n as a}from"./mui-cKt0zt2w.js";import{o as p}from"./commonDimensions-CDU138wy-0KaFqMmK.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="428834d0-a773-4229-85bf-7f28568e8522",o._sentryDebugIdIdentifier="sentry-dbid-428834d0-a773-4229-85bf-7f28568e8522")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|