@zeniai/web-cockpit-ui 1.15.33-qa → 1.15.34-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-tTJc_EMP-caRMekFL.js → ACHDetailsPage-DSufuSEI-BugcK5ko.js} +3 -3
- package/dist/assets/{AIPerformancePage-ByUb4gCe-DnyMWJRD.js → AIPerformancePage-Df0tJkyd-C5l4T96t.js} +104 -104
- package/dist/assets/AccountInfoPage-CwOgUpjY-CG0ESFTT.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BHD9tOzB-Uj2_GKGo.js → AccountInfoPageContent-C7Xs6ju3-CvFu_KWB.js} +23 -23
- package/dist/assets/AccountLockedInfoModal-D5rAyYPe-cRoXMFrB.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BEfA1bsG-C2Js1Jvp.js → AccountReconDetailsDrawerPage-BvnBJmol-BxGJXQpl.js} +19 -19
- package/dist/assets/AccountRow-DtE1mQFq-sRlcgWT1.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-CaTnaSn3-DsNszPEx.js → AccountsPromoCardStack-D14FDzTY-CAlFlxNB.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-C9_gjvsQ-xMzrtCOD.js +6 -0
- package/dist/assets/{AddToWalletPage-BSzuByT6-CYM78gIb.js → AddToWalletPage-B_7pqvLH-CAYlL9WC.js} +18 -18
- package/dist/assets/{AgingReportsPage-D2gPAJKw-Dy3mQZBS.js → AgingReportsPage-CRFlM3H1-DhYuRisV.js} +15 -15
- package/dist/assets/{AllUserItems-BIf1v0a5-Bm00AqDS.js → AllUserItems-LlhM8bBU-N-OwUUn2.js} +10 -10
- package/dist/assets/ApAgingDetailPage-CTxNOPhD-DrGk4MjA.js +46 -0
- package/dist/assets/{AppBasePage-BGPY0zrb-DlmkLc3V.js → AppBasePage-DRQ76rXe-BbmVnMJF.js} +4 -4
- package/dist/assets/{AppDrawerContent-6AX5Y5tK-Cu3-m-Sw.js → AppDrawerContent-CIXhnJBJ-DkcT-gQA.js} +4 -4
- package/dist/assets/ApprovalRulesSettingsPage-DYrcZm5--Di4DgXFx.js +47 -0
- package/dist/assets/{ArAgingChart-Dx8jVL0O-Cgykn0Lt.js → ArAgingChart-BwEspm7G-DNjHaENA.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BcrHD5zT-jubV7JhU.js → ArAgingDetailPage-Dy9woFr0-Dwalts78.js} +6 -6
- package/dist/assets/{AttachmentView-CdIA5zLk-DSnv4ijm.js → AttachmentView-CF6Tiq1u-ScD4RZ91.js} +5 -5
- package/dist/assets/{BankAccountSection-Qe9eRUmE-Bn_DzMKl.js → BankAccountSection-DyPS4RZK-Bc2VKdEG.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-BfN1KiTF-EK89qrtq.js → BankAccountWarningSection-Dr8XVfsN-Bh1VpxWI.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-Dmub7xxp-CxXqCMiF.js → BankConnectionsSettingsPage-h7ZnZhy5-EKV1mb1Z.js} +12 -12
- package/dist/assets/{BillDetailPage-DHCP-PUd-DOIZox9o.js → BillDetailPage-KSkeLjtu-DDizjGfx.js} +2 -2
- package/dist/assets/BillPayApprovalRuleDetailPage-C3VQacD2-ndVmYW9Y.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-Cc3wkV9k-D4lNrc1G.js → BillPayApprovalRulesPage-DMmnARE3-BHk6XaxH.js} +11 -11
- package/dist/assets/{BillPayPromoPage-DslCxm8f-BojuKuTk.js → BillPayPromoPage-CZ34fQRr-h45OCD6V.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-DnabCnSI-B95-H6hC.js → BillPaySetUpPage-DF-cMiJC-Ccb6fwyP.js} +2 -2
- package/dist/assets/BillingSettingsPage-DNmOo0mj-BgBv8nRa.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-BOulFH2M-BrY_zcFs.js → BillsBulkReviewDrawerPage-CM1RYrRS-7XSi35in.js} +1 -1
- package/dist/assets/{BoxItem-Dhk2kQlB-DGHihy-b.js → BoxItem-Dy41mKN9-CZiGGLPk.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BU2b5oF1-DDgS913g.js → BusinessVerificationPage-BSL5f5yW-Ccd_M7Ux.js} +2 -2
- package/dist/assets/{CardNumberSubText-CRjU8jZf-DScDbHaS.js → CardNumberSubText--wffxyL2-Dzc9wag1.js} +8 -8
- package/dist/assets/{CashbackDetailPage-GNwtsA01-CtZrxwJV.js → CashbackDetailPage-BuywSIvA-Dj0FTjqV.js} +15 -15
- package/dist/assets/{ChargeCardDetailPage-DspeEPRm-BfTzI1rp.js → ChargeCardDetailPage-Fx1upN8E-BfETR_eB.js} +36 -36
- package/dist/assets/{ChargeCardListPage-C4N76196-B9kR7T8Y.js → ChargeCardListPage-CkqWU4gN-CkHuHVFN.js} +23 -23
- package/dist/assets/{ChargeCardListTable-ObawcMuP-BOdm2f4H.js → ChargeCardListTable-lwxY_gLZ-DZ2VoxeT.js} +46 -46
- package/dist/assets/{ChargeCardPaymentHistoryPage-NBxH70YE-CMrKxZA5.js → ChargeCardPaymentHistoryPage-CvTW120H-ByJ1xGtA.js} +34 -34
- package/dist/assets/ChargeCardPromoPage-CSx0tLTh-BsQndE31.js +222 -0
- package/dist/assets/ChargeCardSetupPage-D_LWSQOa-BwUtTkP2.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-DSUakLyb-BH8qt4Dj.js → ChargeCardStatementsPage-B7qX0zl3-C66Fu0LS.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-BK6iLLEA-DIHMuA3p.js → CheckDepositDrawerPage-oWf5X7rL-5KpdpyEY.js} +17 -17
- package/dist/assets/{CollapsableReportTable-vwzu1AgW-DuMTLVG4.js → CollapsableReportTable-Cfh-EfEQ-CKv-H0OC.js} +93 -93
- package/dist/assets/{CompanyOfficerDetailsSection-CtptCfIN-E-ghNZwQ.js → CompanyOfficerDetailsSection-CFg0p5uA-CJ156x7J.js} +12 -12
- package/dist/assets/{CompanyPassportCard-DyasR99R-Bjmhc2hR.js → CompanyPassportCard-C5j_KoZL-CPJCD4ZW.js} +2 -2
- package/dist/assets/{CompanyPassportPage-Xp8Bn6ev-AJr1CYjl.js → CompanyPassportPage-DtEQ7a68-BZL6spEi.js} +34 -34
- package/dist/assets/{CompleteProfile-CyoPiiWR-Byv8MIAx.js → CompleteProfile-DLNtc5N7-B7HW7ybq.js} +1 -1
- package/dist/assets/ConfettiBurst-B4gz9uC9-BhJEyb5s.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CQqzwvu_.js → ConstrainedInnerElement-BeIpAPjB-C3jCz_Fx.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CecROHGm-BZLYQbR8.js → CreateOrEditVendorPage-Bd61yH0G-DpW83MJ2.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-C6Tx5HFf-BMs8YRTm.js → CreditCardPaymentDrawerPage-NtnEWUdG-DLELauiu.js} +15 -15
- package/dist/assets/CurrencySelectField-CaQgbP8P-Cqqb_KBc.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CsBXicnS-D_30tSZo.js → CustomerOnboardingActivationPage-BnBFEWaX-Dn3wQumA.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-BRmWV-NF-CTVp5vU-.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BrWGFePj-D9A4KVB4.js → CustomerOnboardingDetailPageSkeleton-Deaz4PM6-BDZvJWDz.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-EIhXr3Tb-ht8ezlDG.js → CustomerOnboardingNoStepsPage-C8cmsaOC-BJyq1bJL.js} +5 -5
- package/dist/assets/{CustomerOnboardingPage-DXoS8Lvh-BvBWTMTM.js → CustomerOnboardingPage-CSSgj26J-N4cabpr0.js} +9 -9
- package/dist/assets/{CustomerOnboardingProductSuitePage-BRXSZWKm-CVZJxXfP.js → CustomerOnboardingProductSuitePage-DU7qzP1f-2w9ZQcUU.js} +6 -6
- package/dist/assets/{Dashboard-Bd774Cwk-CPneZsx_.js → Dashboard-DPXzM2TM-6t8lQHvd.js} +66 -66
- package/dist/assets/{DashboardReportPage-CdyFzIwd-CCBZJf2V.js → DashboardReportPage-CWgH0Bn9-BvMXyb8g.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-DL2Awq0k-CURcbn_K.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-DZk4h7x--XEEIsEL6.js → DepositAccTransactionItem-CuWxNHSp-Da2H1v88.js} +5 -5
- package/dist/assets/{DepositAccTransactionListPage-CKgbbZOW-BAUa4FHC.js → DepositAccTransactionListPage-BHs8-LpV-C7V5-8Rf.js} +7 -7
- package/dist/assets/{DomesticWireDetailsPage-CY2Pv6jd-DtTjZ_4V.js → DomesticWireDetailsPage-CRfm0oqJ-C4r-lW_y.js} +2 -2
- package/dist/assets/{DownloadOverlay-BflHtA84-BO7fMgnW.js → DownloadOverlay--ICWviQz-Q6tZiS37.js} +24 -24
- package/dist/assets/{DrawerPage-5Q_xvjmz-BOmiDfaX.js → DrawerPage-DoJkjp69-BGpDDN7R.js} +10 -10
- package/dist/assets/EditPeoplePage-B-zEdQqt-BrFyNgmY.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CYnqM-2--_UDSzYfF.js → EditReimbursementDetailPage-BdfJj8-u-BwPuRwof.js} +72 -72
- package/dist/assets/EntityDetailPage-C6UdR7oJ-COx1heor.js +18 -0
- package/dist/assets/{EntitySummarySection-BUjGJmFT-Dha8JbEH.js → EntitySummarySection-BYP9LNlh-CHZV8J2r.js} +19 -19
- package/dist/assets/{ExpenseAutomationOverviewPage-D7_-NOLq-C2FHNQ42.js → ExpenseAutomationOverviewPage-UKPGezFZ-ynbYpvOr.js} +60 -60
- package/dist/assets/ExpenseAutomationPage-5qqhqwjY-BNjM9KYY.js +1803 -0
- package/dist/assets/{ExpressPayPage-gyFQBzLO-DD1bcU9s.js → ExpressPayPage-BaLCnmxC-DyZ_NbAE.js} +15 -15
- package/dist/assets/{FeaturePreviewPage-BT-WJozX-BmNFqaDN.js → FeaturePreviewPage-DJvcim4v-B-0y2hox.js} +2 -2
- package/dist/assets/{FollowStepsSection-Du2gzmC6-ITy1BuM4.js → FollowStepsSection-DiAM2oU9-DVhX1hhq.js} +42 -42
- package/dist/assets/{GlobalReviewListPage-B0MxdV0g-ByEyisM3.js → GlobalReviewListPage-DFhcVK4y-DV_nZHys.js} +14 -14
- package/dist/assets/{InformationCardStack-rAU0N5_N-18U34zdq.js → InformationCardStack-bDJV8MEl-DKR8Zvn9.js} +7 -7
- package/dist/assets/{InsightsCardStack-CEkmuCB6-CogwYtZb.js → InsightsCardStack-Ba7C5_Ql-1E6nbw33.js} +7 -7
- package/dist/assets/InsightsSection-BFviX80K-CRFJKeH_.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-Do41V6J0-drB79PfG.js → IntegrationsSettingsPage--kXCS3f1-HcQyCW82.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-BnsnrM3q-BIaoCuMc.js → InternationalWireSwiftDetailsPage-DfKrYbaB-DwvyB1Uq.js} +28 -28
- package/dist/assets/InternationalWireVerificationPage-DU6447M_-YLqWsFbY.js +65 -0
- package/dist/assets/{InviteFormPage-x40AE2Pw-DB6GwgFB.js → InviteFormPage-D3FNgm9B-BwvxtcvY.js} +1 -1
- package/dist/assets/{InvitePageListView-CiVNaN8z-VSoPDSqk.js → InvitePageListView-D4wRSwJW-DPbFsvfR.js} +35 -35
- package/dist/assets/InvitePeoplePage-DSFk8lEF-DpuHc0lh.js +12 -0
- package/dist/assets/InvoiceUploadSection-DaS4D1em-CK_Ayuq4.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BVmxvrlx-CM3PsR0k.js → IssueChargeCardPage-CrbIqdSx-Bp9X1BXe.js} +20 -20
- package/dist/assets/{LabeledAddressValue-aejn380k-9KAs-vw8.js → LabeledAddressValue-CUr2BnHq-DfiyDPyB.js} +2 -2
- package/dist/assets/LabeledAddressValueField-DL3wJoZC-CMggf1RU.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-DQUXZSFS-CPn0l33X.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-D1bMiaZj-ColeHqz7.js → LabeledCountryMultiSelectField-C6IWrKo4-CcQcxFW7.js} +3 -3
- package/dist/assets/{LabeledCreatableSingleSelectField-amXDv508-6VO0EsbY.js → LabeledCreatableSingleSelectField-m_D3aJpG-DPOvsRA4.js} +6 -6
- package/dist/assets/{LabeledDocumentField-2_VcrmJN-BD9gdLcR.js → LabeledDocumentField-B19zNNVZ-Du4OcR6Y.js} +2 -2
- package/dist/assets/{LabeledDropDownFormattedTextField-C6sW-5j7-DoZ1Clel.js → LabeledDropDownFormattedTextField-D4cHrsba-DGjSp6HD.js} +5 -5
- package/dist/assets/{LabeledText-CrAhx4_P-mWwgzY-e.js → LabeledText-H1pSTEtd-BHLnDTFr.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BVZg_rlX-DQAVipT_.js → LabeledUserSingleSelectWithSubtitlesField-C0bJoy6U-CBE1zspu.js} +12 -12
- package/dist/assets/{LabeledZeniRolesDropDownField-DS1icRVA-DRmTnd0N.js → LabeledZeniRolesDropDownField-D0KIAWFW-CQ1uXRKO.js} +23 -23
- package/dist/assets/{LinkJETransactionPage-VdBxLFQc-DSmzcgL3.js → LinkJETransactionPage-LfkM9DYO-CSpsV_Z3.js} +9 -9
- package/dist/assets/{LockCardPage-Bs8xkpNa-BH5dabGf.js → LockCardPage-lTzQY_pw-BYsKWV6j.js} +34 -34
- package/dist/assets/{LowBalancePopup-B0-WExEI-BnZMJ9oZ.js → LowBalancePopup-DXPPHYS1-CB0hADnS.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-DhFoinUr-BKHQrprB.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BUX5Ve2X-CKqNdN5U.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BmtqDOUO-CMDMqnYA.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DRcOlHnh-PPiAarWW.js → MagicLinkSuccessPage-BrQk5kYZ-Dws1_rIA.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-vMBVJSVF-BDFTafOR.js → MagicLinkTitleSection-vHYX92L1-B1QKRjFr.js} +4 -4
- package/dist/assets/MailingDetailsSection-vydT4UOr-DSxQiRSi.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-D6Gjqgv2-tzV_zUUq.js → MyBankConnectionsSettingsPage-BtT9OQ_b-D1PjSf7q.js} +6 -6
- package/dist/assets/{MyPendingActivationChargeCardListPage-y9U4DJm9-kjsb7Oyt.js → MyPendingActivationChargeCardListPage-5E28yAfQ-DZoHwB3h.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-DQBSh-S5-C_KLZ_rh.js +85 -0
- package/dist/assets/NavBarWithPicker-1UPJ_fiE-iY8P9Wot.js +30 -0
- package/dist/assets/{NavigationArrow-suk7KbA1-Bl28QDCF.js → NavigationArrow-CeYvXgly-CXWFEDMQ.js} +1 -1
- package/dist/assets/{NavigationDots-Dqcv5rrC-wx3TUAOM.js → NavigationDots-CXAszOHQ-HtQg6iz5.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-CRg1E4PG-BbGF32Sj.js → NewGlobalMerchantPage-DXSlGPbc-DidlOClT.js} +33 -33
- package/dist/assets/NoDataChart-BQdJyfHh-BLmune73.js +26 -0
- package/dist/assets/{NoDataTable-B2CS7NPq-DRIt6CHH.js → NoDataTable-B__TVPte-CetA5lza.js} +1 -1
- package/dist/assets/{NotFoundPage-DGMaZUli-B_ZJJm7V.js → NotFoundPage-Cs25xsWz-DnZv-DIM.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-CMkB3Lv2-C-VPd7Lp.js → NotificationSettingsPage-Dm3zOscr-DKDyywX2.js} +19 -19
- package/dist/assets/NotificationsListConfig-D0knaijJ-NyDzwfbC.js +1 -0
- package/dist/assets/{NotificationsPage-D7bHfgsd-HWWWcHyi.js → NotificationsPage-czQmfW2r-DksNFGUv.js} +31 -31
- package/dist/assets/{OpExByVendorPage-PfMkiQRt-D6dvXvh-.js → OpExByVendorPage-D1ehVVFD-Dc7GFqIq.js} +20 -20
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-2A5VsoQR.js → OverlayContainerPage-D4QU0p4o-li8hzYjf.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CtFnhBki-8h68Lmy6.js → PandLWithForecastPage-B7cwWwMK-BW6yjf-v.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-gaNLv-zU-C5-av3XE.js → PaymentAccountSetupBillingAddressSection-CkYtTRY5-DMMQt9qf.js} +13 -13
- package/dist/assets/PeoplePage-DNTbzljs-Bfp0W5JF.js +727 -0
- package/dist/assets/{Preview-DnmPaacA.js → Preview-BsIYoVSv.js} +1 -1
- package/dist/assets/{ProductsCarousel-BPUh4FO7-C-quXntD.js → ProductsCarousel-CTiD9zA7-D7cEl2bl.js} +3 -3
- package/dist/assets/{PromoBaseCards-Dmg5PtKw-Cdh1PPvI.js → PromoBaseCards-BmtlcPBm-DdDmICph.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-CLBqmpI8-DKi8GIOA.js → QBOConnectionDialog-B1y3hDGT-B8UGOz7A.js} +4 -4
- package/dist/assets/QBOSetupSection-DevcmmCv-C2NxYIUb.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BrfP2xcW-CD61A2zN.js → ReimbursementApprovalRuleDetailPage-BRUlJa_D-yH6i72Z5.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-BmVVfYZD-DSikDWDV.js → ReimbursementApprovalRulesPage-CvFHaDmE-Bk4uKO7k.js} +5 -5
- package/dist/assets/{ReimbursementDetailPage-j-kNxeWY-DMAXhIU9.js → ReimbursementDetailPage-CMplGhml--7oTvGch.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-D2kh5AHM-DnfYr255.js → ReimbursementPromoPage-0d-lo-ve-BFl3c8SE.js} +20 -20
- package/dist/assets/{ReimbursementSetUpPage-D2890NEZ-C42V01mT.js → ReimbursementSetUpPage-T3ErpIj4-BkNsUy2n.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-qXtPaXjg-BcU2vD5u.js → ReimbursementsBulkReviewDrawerPage-CnyiYR81-D8NoJfkg.js} +1 -1
- package/dist/assets/{ReloadCard-IEyjck4Y-Bx172wbs.js → ReloadCard-CI-iJa1w-CU7osnQb.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-CQjyJkzR-BMiZfuRK.js → ReportTableViewSelector-CM11mXKF-DKJl505X.js} +31 -31
- package/dist/assets/{ReportsPage-Bzz6If8N-CRC9kTRL.js → ReportsPage-DzuQNoMA-ORn4o7l_.js} +5 -5
- package/dist/assets/{RevenueChart-B00OufPH-BQ-fm7T5.js → RevenueChart-iDdrXSzX-BD1q5u9E.js} +22 -22
- package/dist/assets/{ReviewDetailsPage-NnD1LDcO-oQteze57.js → ReviewDetailsPage-DdS8Ssmq-CpId9CQp.js} +52 -52
- package/dist/assets/{ReviewOverlay-CFouRoKn-Bx0_gW0Y.js → ReviewOverlay-D39FMx3p-DPQk54i4.js} +24 -24
- package/dist/assets/RoleWithToolTip-BMEgXHWf-CYv1exk7.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-B5gQXUI9-D6BCK7Im.js → ScheduleDetailsFixedAssetsPage-YdBRhUc0-1nXwHDMr.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-B1Kb9usK-B8mUNpar.js → ScheduleDetailsPage-OCqSWMz4-Dg0s24kG.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-OEJBqdqG-CB3cYmnz.js +324 -0
- package/dist/assets/{ScreenRoutes-DKxBGhTW.js → ScreenRoutes-Bkl-MWfY.js} +1 -1
- package/dist/assets/{SetUpAccountSection-D6dn2jSD-30yvmE7W.js → SetUpAccountSection-o86ErvD_-Celwp-jA.js} +5 -5
- package/dist/assets/SignIn-BEJNYyp4-O46sF-k3.js +491 -0
- package/dist/assets/SignInScreen-Dm8Ez_qK.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-DOkp7pHa-CRzzuy9l.js → SpendManagementListViewPage-BTQU2jwO-CQyGDfX4.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-D_LO55uU-BNZNJM2O.js → SpendManagementPerTabPage-BtUS4aqA-vNlgv2e5.js} +25 -25
- package/dist/assets/{SpendManagementSection-CEMNFPRO-CJtpae8W.js → SpendManagementSection-DiQ2QBwA-CGsThSZ0.js} +11 -11
- package/dist/assets/StatementItem-DGRjrvUi-C8hx1_Sf.js +31 -0
- package/dist/assets/{StatementsPage-CgbyzDo5-BBvhOOcU.js → StatementsPage-QqtqM0qv-BBLWtN99.js} +6 -6
- package/dist/assets/{StatusSwitcher-BjvUftXD-DSbt2dze.js → StatusSwitcher-CfZOeqZf-Bq7fUYSl.js} +4 -4
- package/dist/assets/{SubTabSwitcher-CqTYhJ6K-Cc8NgEnD.js → SubTabSwitcher-Be1lLunR-CsxeYIuC.js} +4 -4
- package/dist/assets/SummaryCard-DgBWIctW-CRmTCkt0.js +1 -0
- package/dist/assets/TaskManagementPage-CpjN2Ver-BJrGG5WR.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-BR-bT1hY-CwHrTBmo.js → TimeRangeSwitcher-B7KdhPH9-Djft8PYe.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-B7EXKmdi-B7wC4ZTm.js → TimeframeSwitcher-C26tc1sm-Eg22Wb7g.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-DEjdiR9x-CpK-qiop.js +31 -0
- package/dist/assets/{TopExCard-l-xo9Vzj-CzV3ots3.js → TopExCard-Do6O7snc-DLvwuAod.js} +6 -6
- package/dist/assets/{TopExDetailPage-DJlHcjKS-B7xZPI_B.js → TopExDetailPage-DFil6Qwx-BWbjM88A.js} +13 -13
- package/dist/assets/{TransactionActivityLogPage-HLwrGJCG-jOI5M6vb.js → TransactionActivityLogPage-C49lAwDF-BGLm3dPj.js} +14 -14
- package/dist/assets/TransactionDetailPage-CyTyj91G-B7vb07HE.js +903 -0
- package/dist/assets/{TransactionList-BFD8ZfJ--B_2P6NgX.js → TransactionList-BFDau1I7-BXGXYBFK.js} +15 -15
- package/dist/assets/{TransactionListBig-Cd05cE1H-DHIWBrzi.js → TransactionListBig-CVBiekZl-DrGGpH9X.js} +13 -13
- package/dist/assets/TransactionListPage-LGgMtr7O-CsGWQiN-.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-D93V6PtT-ASEgt-oH.js → TransactionVendorDetailPage-3p4MoiV3-DA73bE6t.js} +16 -16
- package/dist/assets/{TransferDrawerPage-B_Hy3gOY-CZNjh4dq.js → TransferDrawerPage-BCr2Qlvp-BIuuD9Kn.js} +26 -26
- package/dist/assets/{TreasuryOverviewPage-CJrfTwBd-DGoUzRq5.js → TreasuryOverviewPage-CEnHQlwT-Cp9jfBpw.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-BRwTbEqr-DD0NB9Np.js → TreasuryPromoPage-oQKxGxSx-CJpdFyVJ.js} +12 -12
- package/dist/assets/{TreasuryStatementsPage-CpVaxZhO-D8_pdQ6V.js → TreasuryStatementsPage-DKCFzvzb-D5fkSJdQ.js} +1 -1
- package/dist/assets/TreasuryTaxLetterPage-D3pc6Eyc-DWhE-bsu.js +58 -0
- package/dist/assets/{TrendChart-DLex57el-D9IGJHV4.js → TrendChart-JHlBVwXJ-p0u3PrEr.js} +3 -3
- package/dist/assets/{TrendWithTransactions-CwB4wDSN-Ci246WOZ.js → TrendWithTransactions-Bh619hxZ-B7JEOzSv.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CO7p4-Kx-CKzXNOia.js → UncategorizedAccountsMappingPage-BuM9GG4e-DMx8_LFD.js} +10 -10
- package/dist/assets/{UnitIntegrationPage-BDUTrQY0-BeNpWs1d.js → UnitIntegrationPage-D4BoW10T-IfJ4B9AI.js} +10 -10
- package/dist/assets/UploadAdditionalDocumentOverlay-CMqblFXF-CGuab5Cf.js +38 -0
- package/dist/assets/Vendor2FAPopup-ANEIs-J6-BItEW5IN.js +1 -0
- package/dist/assets/VendorACHDetailsPage-BNcSYRzd-Kp1xh3I0.js +1 -0
- package/dist/assets/{VendorDetailPage-DRgwiRee-F7uBXNWL.js → VendorDetailPage-BLZ1wOuB-t2P37a0b.js} +28 -28
- package/dist/assets/VendorDomesticWireDetailsPage-KZSt69vF-CigCqUX0.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CtReDQX3-ZEq2UHS3.js → VendorFiling1099EditablePage-BtU7EZH1-Cdwalb8n.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-BGVFKcId-HzfS-8-K.js → VendorFirstReviewPage-DJap4HA2-DP0KML1b.js} +8 -8
- package/dist/assets/{VendorInternationalWireDetailsPage-DtFlzIWc-BSJvfDFE.js → VendorInternationalWireDetailsPage-BbCN0JV0-Wsg-mPRx.js} +14 -14
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CDShInCp-CKPYmRJ2.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DlCCF8w7-B2R9WWyu.js → VendorsAccountsSection-lmuNbtLw-BehIg0cT.js} +3 -3
- package/dist/assets/{VerifyDevice-CDChzTa5-Dn7AcZPE.js → VerifyDevice-vhZNITmO-B_CyFx_O.js} +3 -3
- package/dist/assets/{VideoPlayer-D6snpLby-DtDMVXQN.js → VideoPlayer-DIXs3y0r-C0i3s9oa.js} +2 -2
- package/dist/assets/{VideoPopup-SylQ4T6l-CTWGJick.js → VideoPopup-CYL6r3Cb-B0pmnpWo.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-D67GprmZ-IPWpf2-0.js → WarningsDrawerPage-CJ9a931n-DAFMV5EF.js} +6 -6
- package/dist/assets/{ZeniAccountDetailPage-BfYIZPob-6XUVvcAt.js → ZeniAccountDetailPage-P86nU628-RfL02yuR.js} +14 -14
- package/dist/assets/{ZeniAccountListViewPage-B5luRVEl-CVXVmDiV.js → ZeniAccountListViewPage-GYsnktmQ-DlegmFE9.js} +23 -23
- package/dist/assets/ZeniAccountNavBarPieces-Cz7DjDo7-avwd16fX.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CHCmIfff-DyZFPn28.js → ZeniAccountPromoPage-iCmw1i20-lqXeJDxF.js} +12 -12
- package/dist/assets/{ZeniAccountSetupPage-BzCqTug2-b7-ybj6-.js → ZeniAccountSetupPage-B42Dq1gO-oMRu-INk.js} +3 -3
- package/dist/assets/{ZeniCopyright-CiZTMpf7-BZTmiNMr.js → ZeniCopyright-Baiyxesc-CHFltgTl.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-C--qNr-a-B80xXrhL.js → ZeniTransferAmountSlider-9-2DcdrJ-q0SmjKL2.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-D09GVq9M.js → add-to-wallet-DgdBD8_G-DdT9Rn3y.js} +1 -1
- package/dist/assets/{analytics-Df2mJ1lX.js → analytics-Dm6Rdmk5.js} +1 -1
- package/dist/assets/{analyticsHelper-DEOt00qX-DLlhyFKe.js → analyticsHelper-B32z3Cdy-Dk9sCdyO.js} +1 -1
- package/dist/assets/analyticsHelper-DPMmqDhf.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DzQV9eJa.js → arrow-south-east-round-PEovUgvH-Cy4oQH64.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-D4yr6H5z.js → auto-transfer-rule-mbafm5D3-B6gY8maM.js} +1 -1
- package/dist/assets/{chartTypes-BqKhmkSG-CgQV-TUL.js → chartTypes-DL1AC5R1-CSQ4LZOa.js} +1 -1
- package/dist/assets/commonDimensions-BNYeCJ44-DwWQhbOM.js +1 -0
- package/dist/assets/{commonTypes-TAIHQ3fk-DQoSEEvg.js → commonTypes-DwuUdRAc-CVoF2D5n.js} +1 -1
- package/dist/assets/{constants-DG7AuAVl.js → constants-MHF6sRcJ.js} +1 -1
- package/dist/assets/{core-BE_Z31V1.js → core-XAP_yXKl.js} +1 -1
- package/dist/assets/{dash.all.min-DDJXzvDP.js → dash.all.min-DatMhMWc.js} +1 -1
- package/dist/assets/{detailCommon-BEEE23XQ-BD_Mk7je.js → detailCommon-CzjlHNNr-OLPVPNMD.js} +7 -7
- package/dist/assets/downloadPdf-CPfBtFli-C5o4QyFD.js +1 -0
- package/dist/assets/{empty-M69JX_rT.js → empty-Cs2gdmIo.js} +1 -1
- package/dist/assets/{empty-CRPcZP1j.js → empty-vcyFM9nz.js} +1 -1
- package/dist/assets/epic-B8nKq-i6.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-Deoc5oar.js → gift-box-Cmt9OgIZ-RzjSa1iy.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DdDmkNr4.js → graphic-no-data-l-DU4J8fDt-CQ6Ol9_s.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-fmWTttVF.js → graphic-no-data-net-burn-l-CzmycA0m-CI6u9HfU.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-B0P5ObqQ.js → handshake-BPg58FML-FDeEnKd2.js} +1 -1
- package/dist/assets/{helper-Cl1NuKS2-GEpi-XmM.js → helper-T710NLca-BU35xGXS.js} +2 -2
- package/dist/assets/{index-DQj8IFZB.js → index-C9hDAJ7o.js} +4039 -4061
- package/dist/assets/{index-Qi-3x-ZJ.js → index-CrlTOcjY.js} +1 -1
- package/dist/assets/{index-B1UWDNYH.js → index-D9vmx-FC.js} +1 -1
- package/dist/assets/{index-CtuKpkPR.js → index-DIT7C2zP.js} +1 -1
- package/dist/assets/{index-CuuLV5Ja.js → index-DSJ6HKL8.js} +1 -1
- package/dist/assets/{index-5swzSU-P.js → index-LuFlN8FP.js} +1 -1
- package/dist/assets/{index-DV0An2Zv.js → index-t-uTuAYw.js} +1 -1
- package/dist/assets/{lexical-aqmLQuMS.js → lexical-CgNStNGD.js} +1 -1
- package/dist/assets/{liveblocks-C1mHPmJS.js → liveblocks-NP7ye8lf.js} +1 -1
- package/dist/assets/{lottie-DyTfNQDx.js → lottie-DhXcx4Hv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-CBq8hzRN-fxI2JqXr.js → mapLoadingInProgressToTreeNode-DWJx3AOd-DyMnZ_nG.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtYXgw-F-oAphex73.js → mapSectionWithAcOnlyToTreeNode-Co9d6d-V-n_IPqL-W.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CKbbOrFj-B8jOHJ4H.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BpaMuUED-DrbIaTMF.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-jq979PpH-D251JRiH.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-6A-QxQzl-WsH6ynl8.js +1 -0
- package/dist/assets/{mui-BU7efdfo.js → mui-BQR0Ruo4.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CtnTIFRc.js → page-detail-CWX5S47F-BBbQvoIw.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-V1yMMv-q.js +3 -0
- package/dist/assets/{radio-default-CiSgisfh-4z6Camq9.js → radio-default-CiSgisfh-OYLDx768.js} +1 -1
- package/dist/assets/{react-3qpqyaOU.js → react-72w_Kluy.js} +1 -1
- package/dist/assets/{react-CWsZgXSV.js → react-BL2s-aF_.js} +1 -1
- package/dist/assets/{react-BemuwBnj.js → react-CUdUBRF6.js} +1 -1
- package/dist/assets/{react-Bom9bczX.js → react-CX9OzKa9.js} +1 -1
- package/dist/assets/{react-B4itwZHV.js → react-Cp-6oWln.js} +1 -1
- package/dist/assets/{react-CN_MK9F3.js → react-CvT9aEmE.js} +1 -1
- package/dist/assets/{react-ctGSvN4G.js → react-DcMbwERn.js} +2 -2
- package/dist/assets/{react-BFU7EV8v.js → react-Du36QLI3.js} +1 -1
- package/dist/assets/{recharts-wrfDO0AQ.js → recharts-DkFolWRg.js} +1 -1
- package/dist/assets/{sentry-CmSZxGiC.js → sentry-Ckvw8Zf1.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DkXtzp4a.js → shield-DOlUxcFf-rM_NpNHL.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CxmuqRLi-BeWRvmKl.js +1 -0
- package/dist/assets/toChartData-8r0AvOIP-Dhy8B0ZL.js +1 -0
- package/dist/assets/{uploadAttachment-CLjjVoJ0-G44pYEnV.js → uploadAttachment-CTXeI85v-BVATkq8k.js} +25 -25
- package/dist/assets/uploadReceipts-Dge0cNF1-nRZK_a0M.js +1 -0
- package/dist/assets/{url-Dh6RHozD.js → url-D8pFj_Ts.js} +1 -1
- package/dist/assets/{url-Y0e70W7v.js → url-DCwOBFCk.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-CTF1V7Dp.js → useLongPress-GCK2COYQ-BkrNXw3e.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-CAUsjG1o.js → usp-line-BBd1wKwW-54Q8nh58.js} +1 -1
- package/dist/assets/{utils-4HiCQfG5.js → utils-B4eJ0QQL.js} +1 -1
- package/dist/assets/{zeni-epic-state-4hreDbys.js → zeni-epic-state-BnsQ52n7.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-VLhd4vnL-I5Lr2n0M.js +0 -18
- package/dist/assets/AccountLockedInfoModal-DNjLeZYt-LNUXwZM-.js +0 -59
- package/dist/assets/AccountRow-CK5HLVrf-DXJZ_sEO.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-DmajBqRK-nxIYPo1E.js +0 -6
- package/dist/assets/ApAgingDetailPage-pfP6vTc2-BpIJBEds.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-BurRfT7n-DRTxj05J.js +0 -47
- package/dist/assets/BillPayApprovalRuleDetailPage-DS31MPI0-4xXvJcm0.js +0 -27
- package/dist/assets/BillingSettingsPage-B91NuvxJ-D_FEm3L1.js +0 -44
- package/dist/assets/ChargeCardPromoPage-CN9d98ht-CvggjDIQ.js +0 -222
- package/dist/assets/ChargeCardSetupPage-Cie4HjPR-DCzfspb8.js +0 -36
- package/dist/assets/ConfettiBurst-BWYsiO3O-4BlId3h5.js +0 -1
- package/dist/assets/CurrencySelectField-DAmYUy85-DMDmUadH.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-CNJZIVlJ-BJUaNX44.js +0 -1
- package/dist/assets/DashboardSidebarBackgroundAnimation-NYtLjb5A-C_ZMV7U-.js +0 -12
- package/dist/assets/EditPeoplePage-Dq02jvsi-1vFBiR26.js +0 -55
- package/dist/assets/EntityDetailPage-s91tl4Wk-D9-Khkld.js +0 -18
- package/dist/assets/ExpenseAutomationPage-CFxbvTbd-BAfLqXb6.js +0 -1700
- package/dist/assets/InsightsSection-CK6L0ggh-CEIo4wru.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-C3EEqPT--C-SNZ09B.js +0 -65
- package/dist/assets/InvitePeoplePage-DGTYEet3-ww7dc8Ap.js +0 -12
- package/dist/assets/InvoiceUploadSection-C4K602QO-DQ0TMvgE.js +0 -140
- package/dist/assets/LabeledAddressValueField-DSU3b6xx-Do3zHmCW.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CKE6Nln6-D3D8TfOs.js +0 -16
- package/dist/assets/MagicLinkACHDetailsPage-BitHcc3I-DPdZjBrF.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BFfxbnHp-DgnH4Uml.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BncWaxsb-D5zfuNtc.js +0 -1
- package/dist/assets/MailingDetailsSection-CKtLfBik-B4Pa39ev.js +0 -21
- package/dist/assets/MyProfileSettingsPage-D7btjvQI-D2DR3yb7.js +0 -85
- package/dist/assets/NavBarWithPicker-B_vr1zc6-CdH-de-A.js +0 -30
- package/dist/assets/NoDataChart-CGab-TiT-BBfAYwSH.js +0 -26
- package/dist/assets/NotificationsListConfig-8zpkH26L-DDuzcyo-.js +0 -1
- package/dist/assets/PeoplePage-3Fux2UtP-DZR4BINj.js +0 -675
- package/dist/assets/QBOSetupSection-DwqXfi9i-Dmc0UPaw.js +0 -79
- package/dist/assets/RoleWithToolTip-BBbrv_x_-B3Cv90ZD.js +0 -22
- package/dist/assets/ScheduleSequenceTable-B973PTTc-DWRrpKit.js +0 -324
- package/dist/assets/SignIn-CUOfBh48-wGxg0FBZ.js +0 -491
- package/dist/assets/SignInScreen-Cwd6Qtqw.js +0 -1
- package/dist/assets/StatementItem-BDCdJuBz-C-uwkj2X.js +0 -31
- package/dist/assets/SummaryCard-BrsOKcrF-DrLZV6Qo.js +0 -1
- package/dist/assets/TaskManagementPage-C5vXcK0R-CZ850Y5X.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-D265f15Y-_axA0W9R.js +0 -31
- package/dist/assets/TransactionDetailPage-63dqDjgt-D8KEE6zE.js +0 -903
- package/dist/assets/TransactionListPage-klQ0oBzv-e1BZ0UAD.js +0 -35
- package/dist/assets/TreasuryTaxLetterPage-CUHNWUy--DhNnA2rA.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-DID6dcux-D1ONPT0t.js +0 -38
- package/dist/assets/Vendor2FAPopup-DySyuG4R-BF3S6gEn.js +0 -1
- package/dist/assets/VendorACHDetailsPage-CS0fu-kk-Cuvu_0OU.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-B3mJqOdK-BNC9Fid9.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CfWP7ILx-BiRtjzPd.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-BQXOnqhc-6j8hLlJi.js +0 -14
- package/dist/assets/analyticsHelper-Dri1zWcx.js +0 -1
- package/dist/assets/commonDimensions-DbvjFx29-D9IHQgGS.js +0 -1
- package/dist/assets/downloadPdf-CDTl_Ev--DcUV3a6w.js +0 -1
- package/dist/assets/epic-DitwVTZc.js +0 -2
- package/dist/assets/mapSpacerToTreeNode-ycecmJKa-DGUz2Bon.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ByLaAQOt-DvcBmYb-.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-C8E1dOPs-CX71VW8Z.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-v8qXI-n8-DBxf8ZEY.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-DuSq5GIk.js +0 -4
- package/dist/assets/toCOABalancesWithID-DKhXdLyk-DNK_OJ2b.js +0 -1
- package/dist/assets/toChartData-B3G_wqcy-WplUF94r.js +0 -1
- package/dist/assets/uploadReceipts-Dge0cNF1-OrsZovci.js +0 -1
package/dist/assets/{BillDetailPage-DHCP-PUd-DOIZox9o.js → BillDetailPage-KSkeLjtu-DDizjGfx.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{J as Zn,aw as Un,d as Kn,gk as Vn,gl as Hn,gm as qn,gn as Xn,ce as Gn,aR as Yn,y,V as t,fb as ct,fc as Qn,o as a,fd as Jn,fe as ea,ff as ta,aO as Se,fg as na,aQ as b,bD as pt,bp as mt,dw as ut,cq as yt,cr as ht,cs as bt,go as aa,gp as ia,gq as la,gr as oa,fl as j,gs as A,fn as $,fo as k,fk as ra,b as gt,p as oe,fm as Ot,fu as sa,fp as da,fq as ca,gt as pa,gu as ma,aS as ua,ao as ft,bU as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c3 as ga,gx as fa,x as xa,gy as wa,fv as xt,H as Ta,d4 as va,cj as Da,gz as wt,b8 as Ia,ba as ja,c as Aa,bW as Ft,d5 as $a,gA as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gB as Ba,al as Ra}from"./index-DQj8IFZB.js";import{a as p}from"./sentry-CmSZxGiC.js";import{n as i}from"./mui-BU7efdfo.js";import{a as za}from"./liveblocks-C1mHPmJS.js";import{bO as Ma,bL as Na,bP as La,FR as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-4hreDbys.js";import{o as Wa,t as Za}from"./LowBalancePopup-B0-WExEI-BnZMJ9oZ.js";import"./core-BE_Z31V1.js";import"./lottie-DyTfNQDx.js";import"./recharts-wrfDO0AQ.js";import"./analytics-Df2mJ1lX.js";import"./lexical-aqmLQuMS.js";import"./utils-4HiCQfG5.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]="ae8f3988-d68a-42c6-b6ed-a983af14bd9e",e._sentryDebugIdIdentifier="sentry-dbid-ae8f3988-d68a-42c6-b6ed-a983af14bd9e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:qa,edit:Xa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:qt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Xn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,q,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,qe]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&X?.code?X:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:X?.code!=null&&(ae?.code=="approved"||X.code==="mark_as_paid")?X:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&qt(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?Xt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",An=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,$n=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?$a(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Xe,r)},rt=()=>{qe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),qe(!1),Xe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(gi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",u)}`},children:t.jsx(A,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",u)}`},children:t.jsx(A,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",u)}`},children:t.jsx(A,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",u)}`},children:t.jsx(A,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",u)}`},children:t.jsx(A,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",u)}`},children:t.jsx(A,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?An:d.paymentToPI!=null?d.paymentToPI.displayText:$n,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,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:Ga,threads:q,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs($i,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
1
|
+
import{J as Zn,ax as Un,y as Kn,gl as Vn,gm as Hn,gn as Gn,go as qn,ce as Xn,aR as Yn,x as y,V as t,fc as ct,fd as Qn,o as a,fe as Jn,ff as ea,fg as ta,aP as Se,fh as na,ab as b,bD as pt,bp as mt,dw as ut,cr as yt,cs as ht,ct as bt,gp as aa,gq as ia,gr as la,gs as oa,fm as j,gt as A,fo as $,fp as k,fl as ra,w as gt,p as oe,fn as Ot,fv as sa,fq as da,fr as ca,gu as pa,gv as ma,aS as ua,ap as ft,bU as ve,gw as ya,gx as L,F as ha,u as s,ah as ba,c3 as ga,gy as fa,b as xa,gz as wa,fw as xt,H as Ta,d5 as va,cj as Da,gA as wt,b8 as Ia,ba as ja,c as Aa,bW as Ft,d6 as $a,gB as ka,aj as Et,aw as Sa,b6 as Ca,bu as Pa,gC as Ba,am as Ra}from"./index-C9hDAJ7o.js";import{a as p}from"./sentry-Ckvw8Zf1.js";import{n as i}from"./mui-BQR0Ruo4.js";import{a as za}from"./liveblocks-NP7ye8lf.js";import{bO as Ma,bL as Na,bP as La,FT as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BnsQ52n7.js";import{o as Wa,t as Za}from"./LowBalancePopup-DXPPHYS1-CB0hADnS.js";import"./core-XAP_yXKl.js";import"./lottie-DhXcx4Hv.js";import"./recharts-DkFolWRg.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.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]="ea95acf1-1552-45c9-812d-4a832fafd65e",e._sentryDebugIdIdentifier="sentry-dbid-ea95acf1-1552-45c9-812d-4a832fafd65e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Ga,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Xa}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Gt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&G.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,G,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Ge]=p.useState(!1),[qe,Xe]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",An=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,$n=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?$a(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Qt(),Ge(!1),qe&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(gi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",u)}`},children:t.jsx(A,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",u)}`},children:t.jsx(A,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",u)}`},children:t.jsx(A,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",u)}`},children:t.jsx(A,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",u)}`},children:t.jsx(A,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",u)}`},children:t.jsx(A,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?An:d.paymentToPI!=null?d.paymentToPI.displayText:$n,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs($i,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,li=i(Ba)`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import{x as O,u as L,J as M,F as U,a9 as W,aR as G,aL as H,cH as J,V as o,bD as X,ad as K,aS as Q,o as c,gb as Y}from"./index-C9hDAJ7o.js";import{a as T}from"./sentry-Ckvw8Zf1.js";import{n as h}from"./mui-BQR0Ruo4.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-DiAM2oU9-DVhX1hhq.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./zeni-epic-state-BnsQ52n7.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.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]="5f8c51ce-2f8c-4c44-b19c-bc3ff9f5d89b",e._sentryDebugIdIdentifier="sentry-dbid-5f8c51ce-2f8c-4c44-b19c-bc3ff9f5d89b")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ae(e,l==="approval_create"&&!r),y=W({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=x,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=y.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=y.watch((d,{name:$})=>{if($!=null&&d!=null){const z=H(d);J(()=>q($,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&I()},[B,u?.fetchState,I]),o.jsxs(se,{children:[o.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...y,children:[o.jsx(ne,{children:o.jsx("form",{id:k(j),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>r?!0:i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),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:x[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:R},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
|
+
`,ie=h.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
+
box-shadow: ${e=>`${c.sp0} 2px ${c.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${c.sp2};
|
|
14
|
+
`,ne=h.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-start;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
`,pe=h.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
25
|
+
min-height: 1px;
|
|
26
|
+
max-height: 1px;
|
|
27
|
+
`;export{le as D,Ae as default,k as uniqueFormName,Ie as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,F as S,V as t,bD as G,
|
|
1
|
+
import{J as W,F as S,V as t,bD as G,k as V,ab as b,x as r,am as U,o as i,aP as z,bU as P,cr as q,cs as F,ct as J,d1 as O,u as l,ba as K,H as k,b9 as Q,p as j,d0 as X,bu as Y,w as Z}from"./index-C9hDAJ7o.js";import{n as o}from"./mui-BQR0Ruo4.js";import{a as ee}from"./sentry-Ckvw8Zf1.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./zeni-epic-state-BnsQ52n7.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="9388b58d-9283-4b88-8010-3f7a1f218733",e._sentryDebugIdIdentifier="sentry-dbid-9388b58d-9283-4b88-8010-3f7a1f218733")}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)},M={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,H=()=>{h(!0)},N={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:H,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},E))})}),v?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:N}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,7 +14,7 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
14
14
|
border-color: ${e=>e.isUpdatingApprovalRules===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,ie=o(
|
|
17
|
+
`,ie=o(K)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -30,7 +30,7 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
30
30
|
width: ${i.sp8};
|
|
31
31
|
height: 2px;
|
|
32
32
|
background-color: ${e=>e.theme.colors.primary};
|
|
33
|
-
`,
|
|
33
|
+
`,T=o.div`
|
|
34
34
|
width: 6px;
|
|
35
35
|
height: 6px;
|
|
36
36
|
border-radius: 3px;
|
|
@@ -175,7 +175,7 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
175
175
|
${e=>`${M.amount.style(e.windowSize)}`};
|
|
176
176
|
color: ${e=>e.theme.colors.primary};
|
|
177
177
|
word-break: break-word;
|
|
178
|
-
`,
|
|
178
|
+
`,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])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const y=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(G,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:y,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(V,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:y,onClick:()=>{w()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(be,{}),t.jsx(fe,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
|
|
179
179
|
display: flex;
|
|
180
180
|
min-height: 100%;
|
|
181
181
|
flex-direction: column;
|
|
@@ -201,9 +201,9 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
201
201
|
color: ${e=>e.theme.colors.hero};
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
|
-
width: ${e=>
|
|
205
|
-
padding-top: ${e=>
|
|
206
|
-
padding-bottom: ${e=>
|
|
204
|
+
width: ${e=>f.titleWidth.valuePx(e.windowSize)};
|
|
205
|
+
padding-top: ${e=>f.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
206
|
+
padding-bottom: ${e=>f.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
207
207
|
`,$e=o(U)`
|
|
208
208
|
cursor: pointer;
|
|
209
209
|
display: flex;
|
|
@@ -211,9 +211,9 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
211
211
|
justify-content: center;
|
|
212
212
|
align-items: center;
|
|
213
213
|
padding: ${i.sp3} ${i.sp4};
|
|
214
|
-
gap: ${e=>
|
|
214
|
+
gap: ${e=>f.addApprovalGap.valuePx(e.windowSize)};
|
|
215
215
|
|
|
216
|
-
width: ${e=>
|
|
216
|
+
width: ${e=>f.width.valuePx(e.windowSize)};
|
|
217
217
|
height: ${i.sp8};
|
|
218
218
|
|
|
219
219
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -233,9 +233,9 @@ import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z
|
|
|
233
233
|
border-color: ${e=>e.theme.colors.primary};
|
|
234
234
|
}
|
|
235
235
|
margin-bottom: ${i.sp6};
|
|
236
|
-
`,
|
|
236
|
+
`,be=o(O)`
|
|
237
237
|
width: ${i.sp3};
|
|
238
238
|
height: ${i.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,fe=o.div`
|
|
240
240
|
color: ${e=>e.theme.colors.hero};
|
|
241
241
|
`;export{Ce as default};
|
package/dist/assets/{BillPayPromoPage-DslCxm8f-BojuKuTk.js → BillPayPromoPage-CZ34fQRr-h45OCD6V.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ax as q,J as j,aR as Y,V as e,fx as ee,bD as ie,i as C,ab as B,af as x,F as I,o as s,ar as se,R as le,y as U,aU as D,an as oe,x as re,p as $,cG as te,aV as ae,bb as ne,u as de}from"./index-C9hDAJ7o.js";import{a as g}from"./sentry-Ckvw8Zf1.js";import{n as l}from"./mui-BQR0Ruo4.js";import{FI as ce,bS as pe,FJ as xe}from"./zeni-epic-state-BnsQ52n7.js";import{C as me}from"./VideoPopup-CYL6r3Cb-B0pmnpWo.js";import{M as b}from"./usp-line-BBd1wKwW-54Q8nh58.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";import"./VideoPlayer-DIXs3y0r-C0i3s9oa.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]="19af053e-7e6c-4fcd-a008-37d6e2c4fd2b",i._sentryDebugIdIdentifier="sentry-dbid-19af053e-7e6c-4fcd-a008-37d6e2c4fd2b")}catch{}})();const M="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -12,7 +12,7 @@ import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F
|
|
|
12
12
|
margin: auto;
|
|
13
13
|
padding: ${s.sp7} ${s.sp0};
|
|
14
14
|
color: ${i=>i.theme.colors.primary};
|
|
15
|
-
`,
|
|
15
|
+
`,ye=l(se)`
|
|
16
16
|
max-width: 600px;
|
|
17
17
|
margin: auto;
|
|
18
18
|
padding: ${s.sp5} ${s.sp0};
|
|
@@ -23,7 +23,7 @@ import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,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
|
-
`,
|
|
26
|
+
`,fe=l.div``,m=l.img``,R=l.div`
|
|
27
27
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
@@ -57,9 +57,9 @@ import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F
|
|
|
57
57
|
color: ${i=>i.theme.colors.champion};
|
|
58
58
|
`,w=l(ae)`
|
|
59
59
|
color: ${i=>i.theme.colors.champion};
|
|
60
|
-
`,
|
|
60
|
+
`,y=l(D)`
|
|
61
61
|
color: ${i=>i.theme.colors.champion};
|
|
62
|
-
`,
|
|
62
|
+
`,f=l(te)`
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
64
|
`,d=l.div``,c=l.div`
|
|
65
65
|
padding-left: ${s.sp3};
|
|
@@ -67,7 +67,7 @@ import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F
|
|
|
67
67
|
color: ${$.graphColor16Dark};
|
|
68
68
|
`,E=l(b)`
|
|
69
69
|
color: ${$.graphColor09Dark};
|
|
70
|
-
`,
|
|
70
|
+
`,J=l(b)`
|
|
71
71
|
color: ${$.graphColor28Dark};
|
|
72
72
|
`,je=l(oe)`
|
|
73
73
|
margin: ${s.sp3} auto;
|
|
@@ -81,4 +81,4 @@ import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F
|
|
|
81
81
|
`,be=l(D)`
|
|
82
82
|
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,r=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:Z,onButtonClick:G,onBackClick:
|
|
84
|
+
`,r=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:Z,onButtonClick:G,onBackClick:H,onSetupBillPaySuccess:z,onClickMenuIcon:O})=>{const h=q(),a=j(),{billPayTermsDetails:p}=i,[K,N]=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 W=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},X=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!X,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(ge,{children:[K===!0?e.jsx(me,{onCancelClick:()=>{N(!1)},videoUrl:Z}):null,Q===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ie,{title:r.title,onBackClick:H,showBackButton:!xe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:O,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(fe,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:W,"data-testid":B("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:G,"data-testid":B("billpay-setup-button")})]}),e.jsxs(je,{children:[r.terms.terms1,e.jsx(x,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(x,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(x,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(x,{href:t.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},Se=()=>{const i=U(),o=j();return e.jsxs(L,{windowSize:o,children:[e.jsx(V,{windowSize:o,children:e.jsx(F,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:M,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(J,{})}),e.jsxs(c,{children:[e.jsx(f,{children:r.fullyManagedText.bold}),e.jsx(y,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=U(),o=j();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(J,{})}),e.jsxs(c,{children:[e.jsx(w,{children:r.fullyManagedText.bold}),e.jsx(u,{children:r.fullyManagedText.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:r.multiLevelApprovalText.bold}),e.jsx(u,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(w,{children:r.aiPoweredText.bold}),e.jsx(u,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(V,{windowSize:o,children:e.jsx(F,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:M,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};
|
package/dist/assets/{BillPaySetUpPage-DnabCnSI-B95-H6hC.js → BillPaySetUpPage-DF-cMiJC-Ccb6fwyP.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{y as _e,J as $e,aR as E,a9 as Oe,cH as Re,F as Ue,aW as K,V as t,ff as He,p as ze,ab as Le,x as u,bD as qe,k as Me,ad as Ne,fy as H,dR as Je,fz as Ge,bx as Ye,dH as Ze,bU as Ke,fA as Qe,aS as Xe,o as L,fB as et,u as a,am as tt,bL as it}from"./index-C9hDAJ7o.js";import{a as m}from"./sentry-Ckvw8Zf1.js";import{n as b}from"./mui-BQR0Ruo4.js";import{bJ as nt}from"./zeni-epic-state-BnsQ52n7.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CMqblFXF-CGuab5Cf.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.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]="ac19391b-4112-4ec5-80fd-a483459a5591",e._sentryDebugIdIdentifier="sentry-dbid-ac19391b-4112-4ec5-80fd-a483459a5591")}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)},Q="billPaySetUpPage",D="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:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=_e(),i=$e(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:J,allApprovalRules:V,approvalRulesStatus:Ie}=v,_=W.link_account.updateStatus,$=W.update_account.updateStatus,B=E(f),G=E(P.fetchState),Y=E(_.fetchState),Z=E($.fetchState),x=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Y==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&$.fetchState==="Completed")&&x.reset(z(e))},[B,f,x,e,Y,_.fetchState,Z,$.fetchState]);const Ve=x.handleSubmit(w=>{y.trackEnableBillPay(),me()}),Be=async(w,F)=>{const o=F[D];if(w.includes(D)){if(w.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.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 w=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{w.unsubscribe()}}),m.useEffect(()=>{G==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,G,P.fetchState]);const{commonSetUp:je,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=je,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=O?r.setupVerifiedSubTitle:l.setupSubTitle,De=f==="In-Progress"||f==="Not-Started"||J==="In-Progress"||J==="Not-Started",j=k.mode==="light"?new K(k.colors.brandColorJadeLight):new K(k.colors.brandColorJadeDark),We=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,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:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),De?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:X(Q),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:We,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:D,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.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(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},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(Ke,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(Q),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!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;
|
|
@@ -39,4 +39,4 @@ import{d as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fe as ze
|
|
|
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{[D]:{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}))}}}},X=e=>`${e}_form`;export{Ct as default,X as uniqueName};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{y as we,J as be,a9 as xe,cH as Pe,aW as j,F as Ce,V as t,x as P,bD as Ie,k as Ae,ad as ve,bx as ke,cI as je,aS as $e,o as s,hP as Te,f1 as De,f2 as Ve,u as C,am as Be,gY as Ee,p as ze,H as Le}from"./index-C9hDAJ7o.js";import{a as H}from"./sentry-Ckvw8Zf1.js";import{n as r}from"./mui-BQR0Ruo4.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-CkYtTRY5-DMMQt9qf.js";import{F as _e}from"./SetUpAccountSection-o86ErvD_-Celwp-jA.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./zeni-epic-state-BnsQ52n7.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";import"./commonTypes-DwuUdRAc-CVoF2D5n.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]="bc0e446e-2d26-4cc6-8582-92c1a7e39a30",e._sentryDebugIdIdentifier="sentry-dbid-bc0e446e-2d26-4cc6-8582-92c1a7e39a30")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,C[5],C[5]),iconWidthHeight:new P(20,C[4]),subTitlePaddingTop:new P(12,C[3])},He={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:J,stripeKey:K,googleAPIKey:N,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:X,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,D=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:R(i),values:R(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),V=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];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:w}=a[n].street,k=De(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.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(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=Ce.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,x=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(Fe,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(Re,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Y,onEstablishConnectionClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:D?.code==="require_info"||D?.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:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:U(F),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(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:J.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},R=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=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
|
+
`,Fe=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
|
+
`,Je=r.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
`,Ke=(e,i,m,d,A)=>t.jsxs(Ne,{children:[t.jsx(qe,{windowSize:e,isDisabled:A==="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
|
+
`,qe=r.div`
|
|
38
|
+
${e=>`${He.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
|
+
`,Ge=r.div`
|
|
43
|
+
flex: 1;
|
|
44
|
+
`,U=e=>`${e}_form`;export{ct as default,U as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as b,cr as V,cs as M,ct as W,kb as Z,aZ as q,F as z}from"./index-C9hDAJ7o.js";import{a as f}from"./sentry-Ckvw8Zf1.js";import{Gp as G}from"./zeni-epic-state-BnsQ52n7.js";import{u as K}from"./ReviewOverlay-D39FMx3p-DPQk54i4.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./mui-BQR0Ruo4.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.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]="63b926c6-f60d-4a0a-a00f-9825dcd85bd3",e._sentryDebugIdIdentifier="sentry-dbid-63b926c6-f60d-4a0a-a00f-9825dcd85bd3")}catch{}})();const{common:s,spendManagement:{billPay:I}}=z.getLocalizedStrings(),o=I.bulkActions;let x;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,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(x)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(x)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:F,description:N}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?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:P?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:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:F,description:{content:N,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:I.billDetails.newBillTitle,subTitle:`${I.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:q("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(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=Z([...l,t.isRecurring?"recurring":"one-time"])}),l},Y=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,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?I.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_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,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{J as l,V as s,
|
|
1
|
+
import{J as l,V as s,ab as b,o as e}from"./index-C9hDAJ7o.js";import{n as a}from"./mui-BQR0Ruo4.js";import{o as p}from"./commonDimensions-BNYeCJ44-DwWQhbOM.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]="14ecd7b8-f16a-427d-8e01-b24e36bd3d49",o._sentryDebugIdIdentifier="sentry-dbid-14ecd7b8-f16a-427d-8e01-b24e36bd3d49")}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)};
|