@zeniai/web-cockpit-ui 1.14.47-dev → 1.14.48-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-aTYc51Xr-C1F1HPVq.js → ACHDetailsPage-DyCm1KQw-vKnnuhta.js} +1 -1
- package/dist/assets/{AIPerformancePage-X0jCYtM_-Dajj_PUo.js → AIPerformancePage-bKIoJH7f-CNYpBESS.js} +1 -1
- package/dist/assets/{AccountInfoPage-Dx3Y3u7a-DzyPx_IW.js → AccountInfoPage-DDxMvhwL-CJRXvNjC.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-9hyxOyvj-BSsUU_yS.js → AccountInfoPageContent-BaPZW-_d-DwGAITk8.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DJOB_sAg-fll74mil.js → AccountLockedInfoModal-CkAT2hBq-VRbOYqsl.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CBLBMUVT-6EGS8S_h.js → AccountReconDetailsDrawerPage-DedeLwj_-BXSpf89p.js} +1 -1
- package/dist/assets/{AccountRow-COkMC9z6-D4dAraic.js → AccountRow-C6U80qgq-CeoSbA52.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-B0TKA_rE-CcQXvAsM.js → AccountsPromoCardStack-CLE7E1xa-BYg26kEA.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DBBW_ygt-CoqgvC6m.js → AddAddressForCardDrawer-EnZ6q0Ew-B20MvL2M.js} +1 -1
- package/dist/assets/{AddToWalletPage-Cy7qqaHF-C300FvQZ.js → AddToWalletPage-8KMSvV7o-0g2AZGww.js} +1 -1
- package/dist/assets/{AgingReportsPage-LJTYoktZ-DWTTYjjO.js → AgingReportsPage-BZupKJ04-BCu-rLVK.js} +1 -1
- package/dist/assets/{AllUserItems-Cq-nSZod-B3AaUERo.js → AllUserItems-Dv0G23Mr-Bz8Hsj_y.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CxsG8tgq-CJg8VezM.js → ApAgingDetailPage-DqMOEMxg-1rNDkgnp.js} +1 -1
- package/dist/assets/{AppBasePage-DiHP_N5e-BY10VeqW.js → AppBasePage-D95DYMVe-jB-eqEbr.js} +1 -1
- package/dist/assets/{AppDrawerContent-07l8bnfq-CSKvqfQD.js → AppDrawerContent-B8ZyVnnO-CBRi7jrC.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cx1rLjH9-C_Ltncv_.js → ApprovalRulesSettingsPage-BqW6DQ5c-7fZnBWHM.js} +1 -1
- package/dist/assets/{ArAgingChart-BPvPNszV-a8CSz8Qb.js → ArAgingChart-DtZYZyIm-BLF-TSek.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-B27i7hBz-CCjYIiM-.js → ArAgingDetailPage-CmVZGTP7-DR0kl0Rf.js} +1 -1
- package/dist/assets/{AttachmentView-Ce-rZfQk-BSlqSlr9.js → AttachmentView-prEy7ZSI-Bhc7p_B0.js} +1 -1
- package/dist/assets/{BankAccountSection-Bn4tVnuF-BKifB-w4.js → BankAccountSection-DzwRYQwp-BY9F-ajB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-GKmK6rZN-DZACD48w.js → BankAccountWarningSection-BTUTTFCj-BC7XAoAl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-efLHWQFe-D589XB_U.js → BankConnectionsSettingsPage-B9aRwhfw-DiRRWRqD.js} +1 -1
- package/dist/assets/{BillDetailPage-DKkpAZMG-SeTIAYUC.js → BillDetailPage-Br-G6Xvi-Crrosyps.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-MbH1c3C8-DXwAxfQY.js → BillPayApprovalRuleDetailPage-BmMFCmIJ-BuQ0Wjy0.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BH3upfB1-BAVEAnCw.js → BillPayApprovalRulesPage-Cc8suhYp-DN7uFk6e.js} +1 -1
- package/dist/assets/{BillPayPromoPage-WDhvRVxp-DSooRHTy.js → BillPayPromoPage-K1PR5HwL-DNrs5EJc.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-C3rhKamR-BVMPCEUL.js → BillPaySetUpPage-C613-SXo-CO76RoXW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-YJAdgtZ_-CbVZ2CKz.js → BillingSettingsPage-n4nlsUn1-Z3_DOJ5O.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BrM9CWC2-B4iCDTat.js → BillsBulkReviewDrawerPage-D4-2BUj_-DLC6XEN9.js} +1 -1
- package/dist/assets/{BoxItem-ulH3Bhgp-DoyWtJ5-.js → BoxItem-BV33yH6i-C0sy1OXS.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-0d5CYwdO-B5hjAZ-i.js → BusinessVerificationPage-D-scSniH-Djmb2WxN.js} +1 -1
- package/dist/assets/{CardNumberSubText-BvkAu7UB-D1Do5tQm.js → CardNumberSubText-AKyMT95b-DCed0_W-.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BZJd6XyW-BRY1mTOL.js → CashbackDetailPage-C6hPQm-Z-CBaKpwl0.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CKjUyK_7-EI63_C3b.js → ChargeCardDetailPage-tW0k5ZIc-fFkA3Ibb.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DODdNODU-DHkaajl5.js → ChargeCardListPage-vAnKR6Xv-B6WykTvg.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Mbqi4H1P-Bd7Ft3vS.js → ChargeCardListTable-B6yByjDG-BZLXrh5S.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DeR-3iTY-BT7OIJwp.js → ChargeCardPromoPage-qqkFzI3U-CGO1jSgB.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DVELUCoe-DIyl4fXM.js → ChargeCardSetupPage-CFytQSWq-Cv09U-ty.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Bld_eKmb-CNg19ZEZ.js → ChargeCardStatementsPage-0EyzQ2Ew-f1zWZL9S.js} +1 -1
- package/dist/assets/{ChargeCardUtils-fW7FfpSb-AR10z9iH.js → ChargeCardUtils-D6NpoGcY-DUOumYyo.js} +1 -1
- package/dist/assets/{ChaseOverlay-2Otdlf5E-Bh5L7UAs.js → ChaseOverlay-mR5F-VwA-BmdISHW7.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B-qJ1mrW-3gQ6znM_.js → CheckDepositDrawerPage-qmSagF0C-Dt_ViMTZ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BTikLMZy-CPq5VhR3.js → CollapsableReportTable-h83bbBqH-znYyQNxD.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-zZO2eh1J-D-xmt2b-.js → CompanyOfficerDetailsSection-BfUknZ4p-DBnDNVV2.js} +1 -1
- package/dist/assets/{CompanyPassportCard-0UAE79rI-B-jdvG0J.js → CompanyPassportCard-nPHVMG8C-C-MIa05R.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DrmWGWPZ-B_z4gdKB.js → CompanyPassportPage-Br9FkEek-BmlA_eeU.js} +1 -1
- package/dist/assets/{CompleteProfile-CluRzr-W-DDAiXIRE.js → CompleteProfile-Dq3g8Glc-CvbtOaet.js} +1 -1
- package/dist/assets/{ConfettiBurst-EJvT8IrQ-BwgaF0zX.js → ConfettiBurst-DDEhvs48-BFM91xI5.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DAD4YSrh-CoagSebS.js → CreateOrEditVendorPage-noczXv97-B5skaSWp.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BBNlpaft-6J9PqQGU.js → CreditCardPaymentDrawerPage-RpPJQ6yC-Cu28JrlG.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CktjAGdd-C02SMba-.js → CreditCardPaymentPlgSection-C_AemOvd-zGNETkKA.js} +1 -1
- package/dist/assets/{CurrencySelectField-Z_T4BQhi-COxN-MYU.js → CurrencySelectField-at0ftH93-DCHdAGDQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BI46q3Bq-DESxo0H8.js → CustomerOnboardingActivationPage-BgrZWtyF-D9OOwR59.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BTb45YzR-CAZ0J0PA.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CGIUVfAE-3AAWT_zJ.js → CustomerOnboardingDetailPageSkeleton-DCS6hHcm-bS5DC55_.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-zFHqt8vr-B2yOewHT.js → CustomerOnboardingNoStepsPage-fkT5w9JI-DEgn2TDO.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DRbQY2yr-n277D7g_.js → CustomerOnboardingPage-BYDCBwUS-BSPLC0sS.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BglzxmIP-BaPH02Kn.js → CustomerOnboardingProductSuitePage-B87wPwps-BciiWyn-.js} +1 -1
- package/dist/assets/{Dashboard-BJc01Zrg-RgvACYSo.js → Dashboard-DA26FitL-P859QIWe.js} +1 -1
- package/dist/assets/{DashboardReportPage-C1d8VK5i-vurlF4lW.js → DashboardReportPage-Bxn0wWgq-DC-rtVoB.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DC1VJk0J-CysWCHBf.js → DashboardSidebarBackgroundAnimation-CyDCgoPr-NFcrv8yU.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BN0dT4ca-oNctEtSy.js → DepositAccTransactionItem-Bk9e8PAr-C1XBXKfI.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-D4CLQ2zV-RbwqLCB9.js → DepositAccTransactionListPage-DnJeD1EF-IVQgpxNX.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-ai0YkB93-DkaYERr9.js → DomesticWireDetailsPage-Du7Vx5LJ-BytqGkUm.js} +1 -1
- package/dist/assets/{DownloadOverlay-eNiRhovl-B_Sb3dth.js → DownloadOverlay-I5QLTQmV-Oibtf0ne.js} +1 -1
- package/dist/assets/{DrawerPage-_cA3LH2A-DGpoKTPP.js → DrawerPage-6fxpk2xF-5o3oJnrh.js} +1 -1
- package/dist/assets/{EditPeoplePage-Bhh_BxeV-C4ip55LV.js → EditPeoplePage-vpqgUHrS-C7O-m1jq.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-C5aA5obB-BZuBmnJY.js → EditReimbursementDetailPage-Bj6Bfiwn-DO5QzcDP.js} +1 -1
- package/dist/assets/{EntityDetailPage-CxzSbzv5-BR9vPhQJ.js → EntityDetailPage-97oJAXtx-BJyV3YBw.js} +1 -1
- package/dist/assets/{EntitySummarySection-Jt-Bgbwl-CUCvjOOE.js → EntitySummarySection-pd7ZjDP--BwmW-Fqs.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BnBfGZyF-D_f_8gWD.js → ExpenseAutomationOverviewPage-1Q7y69P7-rQ1BTlHa.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CPINGlg8-Bux2Zal8.js → ExpenseAutomationPage-DRpPMH9S-DR6d5KgN.js} +225 -225
- package/dist/assets/{ExpressPayPage-nwL5UiPT-UG3SN8TA.js → ExpressPayPage-KdI3P4qf-B7W_7lG8.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C3ESvF_G-w9uey7NE.js → FeaturePreviewPage-BkwCkLNL-D8kHraR4.js} +1 -1
- package/dist/assets/{FollowStepsSection-B5affvdS-CC4gaZne.js → FollowStepsSection-CmNPc7L7-BDPhFSNz.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CsF47R3F-BKOuzhvv.js → GlobalReviewListPage-CdJjnDgL-dPY_p86w.js} +1 -1
- package/dist/assets/{HelpButton-COQrt2oX-DzMCGDGr.js → HelpButton-Q541XR8l-BSrpuFYl.js} +1 -1
- package/dist/assets/{InformationCardStack-CzXjj7b8-z72c_jEO.js → InformationCardStack-Bp3d5prY-DhqyRFzM.js} +1 -1
- package/dist/assets/{InsightsCardStack-D97A5lvB-CqZqEGIc.js → InsightsCardStack-D8p-vEZB-DJ-Wx_Om.js} +1 -1
- package/dist/assets/{InsightsSection-2ILqXih8-DVpA5MVZ.js → InsightsSection-BnINWGoM-BjOeo3qP.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-C02GIm78-D9a98bnd.js → IntegrationsSettingsPage-BR13AIA5-ZrSqtSxK.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-cwqfeYWq-AgZ26n0O.js → InternationalWireSwiftDetailsPage-DlZE1lSt-B-EMJhXH.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BsM0qJMD-DG-IvkPp.js → InternationalWireVerificationPage-db1F4bn4-Dsfly5TK.js} +1 -1
- package/dist/assets/{InviteFormPage-Cvvuts9_-CH1n1zwG.js → InviteFormPage-DFlM2leL-DfaYNy-6.js} +1 -1
- package/dist/assets/{InvitePageListView-C7bghm-Q-D_JwlgXA.js → InvitePageListView-DnRZpjBQ-BhczM3Rt.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CZim2-oS-BCgwCbc_.js → InvitePeoplePage-lMy3RYPE-CZ2A1AoD.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DQpy2cRB-BYO7pkZD.js → InvoiceUploadSection-AgzvOKI4-EX8HbVsf.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DA0W292g-0Yrqnetr.js → IssueChargeCardPage-KvRHBOa0-CGtBgazJ.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BBqoyIwz-BuZPP0kB.js → LabeledAddressValue-CsrGQYwu-CArjFxjA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-l0XKNlaq-BRSM9eKo.js → LabeledAddressValueField-DfpU2h4D-Bn_QNbyf.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CN6vZqSm-Cr0v_HbC.js → LabeledControlledCheckBoxField-EDM75_1I-Brdio73F.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DZIsQevy-9hx4zlye.js → LabeledCreatableSingleSelectField-B3Xae4zM-B8vmi2NV.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DMEWdfq0-BSsFK7UP.js → LabeledDocumentField-VB0WwnTG-BgD9uIsc.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CSUZIpw4-Bj9OQgXE.js → LabeledDropDownFormattedTextField-t5V8VhMU-DgZ4G-IA.js} +1 -1
- package/dist/assets/{LabeledText-DyhIUdFx-DYQI7Oj4.js → LabeledText-D2MwukKe-BmTg8oMN.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CC89oZ_u-Du0GRcAB.js → LabeledUserSingleSelectWithSubtitlesField-ss1_ZJbJ-yS2eLN2J.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DXi_2I5i-BVMMAxfm.js → LabeledZeniRolesDropDownField-DOlIObpD-BHFRzio9.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BF4Qmfk0-BeEgKLJh.js → LinkJETransactionPage-CzOZTube-UWgFpuNt.js} +1 -1
- package/dist/assets/{LowBalancePopup-B1SB0L70-DRs6_4Ad.js → LowBalancePopup-DxY9_xxa-B_F4Y7zw.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Bx62Lvrk-Too4gNiU.js → MagicLinkACHDetailsPage-DiuuLW90-DlbruB-Y.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dqqn9-Cd-VhclluXr.js → MagicLinkDomesticWireDetailsPage-DZNJdhtE-BsDKQJgy.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-l7z62GSc-CdFDNaqX.js → MagicLinkInternationalWireDetailsPage-CRZBCR1_-DhZbViv1.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BLW5WloR-qHEmcZ_C.js → MagicLinkSuccessPage-B43qbo_H-BAGJTCwk.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-C_Y0_Q8g-B7RA5zb8.js → MagicLinkTitleSection-u1m5lvjA-GqGT2wic.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CWCOpN4f-D0dxYO1r.js → MailingDetailsSection-DMtiDDSS-DQEjAMVZ.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CaAA-95e-B1U6_EBk.js → MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js} +1 -1
- package/dist/assets/{Menu-r5aBVcPX-CEDXfgVi.js → Menu-Ctk9nNVM-BxyIpAsx.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DxEZLt-N-DNiOVJQY.js → MyBankConnectionsSettingsPage-CIrf_slB-DViS_Vbs.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BuKZsRFM-Bu1K6iX8.js → MyPendingActivationChargeCardListPage-DbfQTsy_-ajD_JWyd.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CifOm8vx-BI0OeT7v.js → MyProfileSettingsPage-FJrH6afA-Dg7CgCAK.js} +1 -1
- package/dist/assets/{NavBarWithPicker-ecFrLzuG-CUnQdZn0.js → NavBarWithPicker-ygNMEvS3-LG0yX504.js} +1 -1
- package/dist/assets/{NavigationArrow-1zbfgcmE-BdLBhx7f.js → NavigationArrow-BVKBNfEn-Cu7Uey4x.js} +1 -1
- package/dist/assets/{NavigationDots-2bNAi48B-k0PWrc4i.js → NavigationDots-DYwxSHEm-CJDFcaPa.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B0O8iQck-CUVnFtbB.js → NewGlobalMerchantPage-Bpm-tBAW-DlRNwU1w.js} +1 -1
- package/dist/assets/{NoDataChart-DVB1FTW8-JpcfKKlk.js → NoDataChart-C9Blhafx-nChSCx-l.js} +1 -1
- package/dist/assets/{NoDataTable-DWOVpAfA-u0_L5l-r.js → NoDataTable-DQ6n8pLc-xDthso8v.js} +1 -1
- package/dist/assets/{NotFoundPage-BlhK0DnR-DnZMB0hX.js → NotFoundPage-BEPdu2vh-CaDkbBnT.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-D9h-cv_3-Api--9_4.js → NotificationSettingsPage-DZqtHEvz-CA0yN11c.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CJzqBbvL-fegqpP2o.js → NotificationsListConfig-BC8mhJcI-bPg1TEX0.js} +1 -1
- package/dist/assets/{NotificationsPage-Bb8jGE88--EHNFTsZ.js → NotificationsPage-BJwFOE4d-CKiihY31.js} +1 -1
- package/dist/assets/{OpExByVendorPage-cCbrLj0D-BbAQMT2y.js → OpExByVendorPage-M_Qkm6sd-1ZCdusEr.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-t16DnFNE.js → OverlayContainerPage-B8Rk53Fe-CCXYn42o.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-G4lWjG0f-DxlqIkQq.js → PandLWithForecastPage-B-MSSXbg-BtmE02nA.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DsnTCd1g-BBg0xXgD.js → PaymentAccountSetupBillingAddressSection-DA-yP5eE-BeXTRuNI.js} +1 -1
- package/dist/assets/{PeoplePage-BFbEsxCG-BzoOFAW0.js → PeoplePage-CoFiMjdA-Dr0q89lY.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-D1uHtLe7-CW4366Mc.js → PortfolioAllocationFormPage-CRmrcCX0-B5snsAsZ.js} +1 -1
- package/dist/assets/{PortfolioDetails-t8bIGJXx-CBmzVPci.js → PortfolioDetails-BJzQy2wr-Bj-CnqzJ.js} +1 -1
- package/dist/assets/{ProductsCarousel-BddjVme9-zQtZpwKJ.js → ProductsCarousel-B2J6Uqy0-Bn6QDbLq.js} +1 -1
- package/dist/assets/{PromoBaseCards-D3KJDpH5-BzOCd7MM.js → PromoBaseCards-BIR1VU56-C4Y3qtQN.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CXXyWMRA-D3LphS3j.js → QBOConnectionDialog-BHA56W22-CpYACUMJ.js} +1 -1
- package/dist/assets/{QBOSetupSection-8vr753O6-BoaoMamx.js → QBOSetupSection-yAxVE54s-B642dEMU.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-4DxF-bsn-JReeMtWG.js → ReimbursementApprovalRuleDetailPage-BvUzSSgG-CJ_99xUH.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B8VB00Ys-C_GNgoO8.js → ReimbursementApprovalRulesPage-DuvuhNpT-ZmNlObAI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-B3eXWVu_-C0b-9wxm.js → ReimbursementDetailPage-I8Mi1b-i-BVuK6o0n.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CZSp2B03-C2qo1ech.js → ReimbursementPromoPage-DNEHD7Vn-DJtIEmEu.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B2xoCrQQ-DP82ecwV.js → ReimbursementSetUpPage-BKPN-jTi-DqOb0dAq.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CP0GBWSz-CnJViZkd.js → ReimbursementsBulkReviewDrawerPage-ODIYnErO-CugZiISp.js} +1 -1
- package/dist/assets/{ReloadCard-BgQhOfRW-Bs85GxaN.js → ReloadCard-D5G3143M-BhrgzSyb.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-lD-WdOy3-sXP4nlcM.js → ReportTableViewSelector-DwrFflka-B_yC1F2e.js} +1 -1
- package/dist/assets/{ReportsPage-SBj5iXie-B3niN5Xn.js → ReportsPage-BRh9wTIB-BRdvrfcZ.js} +1 -1
- package/dist/assets/{RevenueChart-Bt1neNVP-DXNXYEd6.js → RevenueChart-1FqnSQwm-DbcU_06Q.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CpQj99Qb-DXbRhEAO.js → ReviewDetailsPage-lLLKbhN0-BT0wsk-V.js} +1 -1
- package/dist/assets/{ReviewOverlay-ByJYZZ8h-XZfyr2Ra.js → ReviewOverlay-DpKT4WCT-DsGxeF5N.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DC3qy-Pk-DGTPKSil.js → RoleWithToolTip-C1XhL3lB-B7Qf3yy-.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CZSXWRtp-BWv6aA2z.js → ScheduleDetailsFixedAssetsPage-CvvlLzCQ-CqLVHK0X.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DV-UMy5n-BaRWQ19W.js → ScheduleDetailsPage-CGVqHmP_-BMOoi2ZX.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-g4vqQpwx-C0rIDRSk.js → ScheduleSequenceTable-CJuQ9Amk--y7yCkhs.js} +1 -1
- package/dist/assets/{ScreenRoutes-DeQfzDJz.js → ScreenRoutes-DxB8WJje.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CTBtO2N2-CrkO9OG6.js → SetUpAccountSection-BOVDEhzr-C3wqEw_b.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-CXIQhQdd-BS_7M4GT.js → SetUpDefaultSection-BUW8sK0W-D8WfjaRL.js} +1 -1
- package/dist/assets/{SignIn-8Qzfb-ML-CX78tjCb.js → SignIn-BGaDad3o-nbFdNqNt.js} +1 -1
- package/dist/assets/{SignInScreen-DZCziuLm.js → SignInScreen-mCHxhTLP.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-XRKpo66r-CCzHLMuc.js → SpendManagementListViewPage-CXb9GA0u-0PXiPZOV.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DCzaAg5_-DnT0Jh7b.js → SpendManagementPerTabPage-LIcVgCrR-CxyZtUS0.js} +1 -1
- package/dist/assets/{SpendManagementSection-CIGWntD1-8Y2KgQKW.js → SpendManagementSection-D3rquaEv-BJI1sMDC.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-EFLwpIsc-BS9VwuhA.js → SpendMgmtSetupAccountSection-34NSLgnB-BhuQEN-2.js} +1 -1
- package/dist/assets/{StatementItem-DBrH7VxB-Cxbw2Xyx.js → StatementItem-CKQIDNI0-Cbhakppi.js} +1 -1
- package/dist/assets/{StatementsPage-14W8QRuc-DFQGe88D.js → StatementsPage-CA5-PHfq-3kTldJxW.js} +1 -1
- package/dist/assets/{StatusSwitcher-Bc1YjzA2-C6Ge3kUi.js → StatusSwitcher-ClAXD4Hk-B8efgoPk.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CYkqW6KU-DnYIhzYl.js → SubTabSwitcher-YdGYWzl6-BSrIDfo2.js} +1 -1
- package/dist/assets/{SummaryCard-BCWWc9ky-mfm8GuQR.js → SummaryCard-D0Oq-6sw-pfSDr-fs.js} +1 -1
- package/dist/assets/{TaskManagementPage-ByiGVOvO-F-1AS2Wy.js → TaskManagementPage-DeLRiSg9-FcYdsAtz.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DAv5fZf9-DTJgtu4j.js → TimeRangeSwitcher-uHZviz8F-nSd1JBe1.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DuE5Ij9a-D_56OGW7.js → TimeframeSwitcher-BbQBhmOL-BLQyoFS3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D2bWFmv2-BT6zUtfo.js → TimeframeSwitcherWithToggle-BiR6K3hf-DJkmMLYN.js} +1 -1
- package/dist/assets/{TopExCard-D2XGVr9A-vnGCIOut.js → TopExCard-C1z-jYgO-DYP_Y4B3.js} +1 -1
- package/dist/assets/{TopExDetailPage-CW72OuYz-yNd1QGKY.js → TopExDetailPage-BIdKONzR-JT-RJ9XI.js} +1 -1
- package/dist/assets/{TransactionDetailPage-9UkwTR4Z-BiqGsF3z.js → TransactionDetailPage-CZmZZTeC-ClLcA3tN.js} +1 -1
- package/dist/assets/{TransactionList-ietybHPX-0QOU9e6b.js → TransactionList-DP-otHAk-CsCQ-Q-g.js} +1 -1
- package/dist/assets/{TransactionListBig-CImw-DuN-DO2JqFEj.js → TransactionListBig-yrdHHIm_-DI6W3NPr.js} +1 -1
- package/dist/assets/{TransactionListPage-Wf8pCEet-DXiF_-U2.js → TransactionListPage-Dtedz_bT-Duc-EmUS.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-De43f8hV-CkP49sAb.js → TransactionVendorDetailPage-D53fCXVj-BeB5zgEQ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DWZIGvKV-WkXRZpoX.js → TransferDrawerPage-BG43cMhe-kCWSey3B.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DqY6cLQK-CHUh1TwA.js → TreasuryOverviewPage-Cu-vAyTv-UvlkXMsa.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-860OBCJZ-D8WtLOki.js → TreasuryPromoPage-D29YDIIf-Byx0FEvz.js} +1 -1
- package/dist/assets/{TreasurySetupPage-qx5Bkp8D-X1VexfCR.js → TreasurySetupPage-CNZVlm4A-CUQCH228.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BBLe40p3-XC6taSRD.js → TreasuryStatementsPage-BKv8xhNL-2p6txoaf.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-g5az8RTF-CAWpZCVs.js → TreasuryTaxLetterPage-p1VodgTu-DTqfoRB1.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BoFF-bna-BXaJiZaF.js → TreasuryTransferOrReviewPage-Jq9Ongix-CqWM2M_9.js} +1 -1
- package/dist/assets/{TrendChart-wr5WIfKD-DWjGFRlo.js → TrendChart-Ct0sYmKc-XE1GbnMp.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D2zxfMK6-BJSA0eIu.js → TrendWithTransactions-DPmohk2J-B7i7ZC1s.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-C6r6V08i-B4Y6tV6L.js → UncategorizedAccountsMappingPage-HQvUtoDk-BINh_Nac.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D1x3v9Gk-CniCEPEh.js → UnitIntegrationPage-CkrA1R1C-CQEI1r0Z.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CkmIxQkI-f-1wilOs.js → UploadAdditionalDocumentOverlay-B2o-n3Qj-ARY5BkVh.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Db3DMkcT-Bdm6QnJ6.js → Vendor2FAPopup-Fu7VJKKS-BQ8nEZhC.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DR3LqsST-DUNpzOnV.js → VendorACHDetailsPage--WHeSayP-De2li3ds.js} +1 -1
- package/dist/assets/{VendorDetailPage-D3QGr-pz-Dv17YPRy.js → VendorDetailPage-Crtkf-yx-CX957gfZ.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage--bOPCKsx-BRy04Sfv.js → VendorDomesticWireDetailsPage-Ch7iPqiC-BoSJwxjj.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BCHuhF3x-CzwpyxaJ.js → VendorFiling1099EditablePage-CZHK9ax6-B56lmcDt.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-7lNoCtJd-Cvkxy8dv.js → VendorFirstReviewPage-BVsy-fN1-Dw5I5AOu.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BKja_BeQ-BPOkDQ6L.js → VendorInternationalWireDetailsPage-DH_mt3Gf-DtesDAA8.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BU7akKA7-DBGOtvjW.js → VendorInternationalWireSwiftDetailsPage-M_qkrLdF-OGEjB3_Q.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DUUeE27C-BJ2NLWkJ.js → VendorsAccountsSection-DNSqfGkP-DAweHKu0.js} +1 -1
- package/dist/assets/{VerifyDevice-Bq2JQdFQ-DRISKGyV.js → VerifyDevice-Dmsi0iEc-Daw7xnOL.js} +1 -1
- package/dist/assets/{VideoPlayer-BO44yY9I-DkIU-YXX.js → VideoPlayer-DwQsg64H-FOZjYnYW.js} +1 -1
- package/dist/assets/{VideoPopup-CGxCsA2n-CF7e4Ztp.js → VideoPopup-CuNygbO8-CXsOFM5P.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DQe1wYJx-qPZptyKF.js → WarningsDrawerPage-QjvzOmR3-CbqmO5iT.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-PvGx4G0J-CSnqNKB9.js → ZeniAccountDetailPage-9V5NIEBx-BBa2xIp6.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CjFOZU7z-DvvaM5D2.js → ZeniAccountListViewPage-DzqDZ_Z6-1pOR05Cj.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Bl2KSpG4-CCHLm23i.js → ZeniAccountNavBarPieces-BLgOV9Pq-C34LPs6K.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Bq8_AYTZ-Cx1MlikB.js → ZeniAccountPromoPage-DHUtp7bN-Cp__aG_E.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B11NHszy-DinsHxS3.js → ZeniAccountSetupPage-COwDEzfT-BCuQrLrl.js} +1 -1
- package/dist/assets/{ZeniCopyright-D-Hzee6E-BDkHmM8g.js → ZeniCopyright-CoFE0iPF-BjUZD7x4.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-D7vxmkxJ-BQHPCJmW.js → ZeniTransferAmountSlider-D1yxK_Sg-CUfIK7Up.js} +1 -1
- package/dist/assets/{analyticsHelper-BIQ9L-EI.js → analyticsHelper-Cq_mVjpc.js} +1 -1
- package/dist/assets/{analyticsHelper-BuFK9-t2-CjaWnvpX.js → analyticsHelper-DEFjt4_V-CXHphihM.js} +1 -1
- package/dist/assets/{chartTypes-BeWpEHsD-0DeNHMwF.js → chartTypes-Ctp63e1t-D7RTR7R4.js} +1 -1
- package/dist/assets/{commonDimensions-BXTyBb11-BJ8JxG1r.js → commonDimensions-B2-svr35-l1Ftseew.js} +1 -1
- package/dist/assets/{detailCommon-D8YHBhNW-DknXRRJp.js → detailCommon-BxfvlXzM-c4cCQDRO.js} +1 -1
- package/dist/assets/{downloadPdf-QmjxILNp-xDI--zpN.js → downloadPdf-CucUGwli-ClL5bwSo.js} +1 -1
- package/dist/assets/{index-BrOecDhr.js → index-CUSLlYOQ.js} +584 -584
- package/dist/assets/{mapLoadingInProgressToTreeNode-UTrwHX36-nq5vNdK7.js → mapLoadingInProgressToTreeNode-DTBUZrdP-D5TcLSii.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-uMOefjfH-MTjwhTlY.js → mapSectionWithAcOnlyToTreeNode-BOKkTsvJ-Cms3yElL.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DSldUxM--BA669Oip.js → mapSpacerToTreeNode-Dd3puFJ--CHeKXNVr.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CJT0f_FX-jeWaKZOo.js → mapTimeframeBalancesToTreeNode-B63w1caj-BMDpEpul.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B0VWLas7-B3sZcJLM.js → mapTimeframeBalancesToTreeNode-CnOw6q7B-Dcw-h1Fj.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BgH8fPhv-BXLJTSDz.js → mapTimeframeHeaderLoadingInProgressToTreeNode-pKsXYgAP-2MnGaBAN.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BC4hEk4v-dX5CNbOR.js → toCOABalancesWithID-Bt5Spech-DOUBXaKt.js} +1 -1
- package/dist/assets/{toChartData-Dn6RzL-C-A4ExOcdY.js → toChartData-Cd7l-J03-CrmSmVWc.js} +1 -1
- package/dist/assets/{treasuryColorHelper-0WRygmI_-CyLBFH1A.js → treasuryColorHelper-BoBqhzD1-BdwMaD5C.js} +1 -1
- package/dist/assets/{uploadAttachment-DYn7wkG0-CaiTD7a3.js → uploadAttachment-xLjLDGt--VDf2MRl-.js} +1 -1
- package/dist/assets/{uploadReceipts-dxsKhm9I-DWEBKo-0.js → uploadReceipts-CPeNTSex-CwQeEyUV.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CZAm4G7W-ByW6mtsb.js +0 -1
package/dist/assets/{BillDetailPage-DKkpAZMG-SeTIAYUC.js → BillDetailPage-Br-G6Xvi-Crrosyps.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Fn,Y as En,u as _n,fP as Wn,fQ as Zn,fR as Kn,fS as Vn,bJ as Xn,a2 as Yn,R as Un,C as u,j as t,l as E,cM as st,cN as Hn,o as a,cO as Gn,cP as Qn,W as b,cQ as qn,a0 as Ae,cR as Jn,aX as dt,aK as ct,dt as pt,bV as mt,bX as ut,bY as yt,fT as ea,fU as ta,fV as na,fW as aa,cW as $,cX as I,cY as A,fX as k,cV as ia,v as ht,f as le,cZ as Lt,c_ as la,c$ as oa,d0 as ra,fY as sa,fZ as da,a4 as ca,p as bt,bp as Te,f_ as pa,f$ as L,q as r,y as ma,by as ua,g0 as ya,a3 as ha,g1 as ba,g2 as xt,d4 as gt,X as xa,cB as ga,bO as fa,am as wa,ao as Ta,T as va,br as Ot,g3 as Da,w as Ft,ac as ja,ak as $a,aP as Ia,eM as Aa,x as ka}from"./index-BrOecDhr.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Sa}from"./liveblocks-CP09Cz-7.js";import{o as Ca,t as Pa}from"./LowBalancePopup-B1SB0L70-DRs6_4Ad.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ba=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"})))),Ra={formTitle:new xa("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:za,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Un.getLocalizedStrings(),ve=za.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:Q,discardBillDetailsFromLocalStore:Be,deleteBill:Ut,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Gt,discardOutsideZeniPaymentData:Qt,onBackClick:Ne,updateEditRealTimeApproverClicked:qt,onSaveRealTimeApprovals:Jt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,X]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:J}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:U,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:U.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[U,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{J(y),Y(!1)},[J,Y]);p.useEffect(()=>{me?.threadId!=null&&U.length>0&&!P&&(J(me.threadId),_e(null))},[me,U,P,J,_e]),Xn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Xe]=p.useState(!1),[Ye,Ue]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Ge=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{Q()},[Q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),Q())},[e,Q,Be]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Ge,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{X(!1),de(!1)}},xn={onOkClick:c=>{pe(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},gn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),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:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const R=c;return{lineIndex:y,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}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{e as Fn,Y as En,u as _n,fP as Wn,fQ as Zn,fR as Kn,fS as Vn,bJ as Xn,a2 as Yn,R as Un,C as u,j as t,l as E,cM as st,cN as Hn,o as a,cO as Gn,cP as Qn,W as b,cQ as qn,a0 as Ae,cR as Jn,aX as dt,aK as ct,dt as pt,bV as mt,bX as ut,bY as yt,fT as ea,fU as ta,fV as na,fW as aa,cW as $,cX as I,cY as A,fX as k,cV as ia,v as ht,f as le,cZ as Lt,c_ as la,c$ as oa,d0 as ra,fY as sa,fZ as da,a4 as ca,p as bt,bp as Te,f_ as pa,f$ as L,q as r,y as ma,by as ua,g0 as ya,a3 as ha,g1 as ba,g2 as xt,d4 as gt,X as xa,cB as ga,bO as fa,am as wa,ao as Ta,T as va,br as Ot,g3 as Da,w as Ft,ac as ja,ak as $a,aP as Ia,eM as Aa,x as ka}from"./index-CUSLlYOQ.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Sa}from"./liveblocks-CP09Cz-7.js";import{o as Ca,t as Pa}from"./LowBalancePopup-DxY9_xxa-B_F4Y7zw.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ba=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"})))),Ra={formTitle:new xa("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:za,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Un.getLocalizedStrings(),ve=za.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:Q,discardBillDetailsFromLocalStore:Be,deleteBill:Ut,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Gt,discardOutsideZeniPaymentData:Qt,onBackClick:Ne,updateEditRealTimeApproverClicked:qt,onSaveRealTimeApprovals:Jt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,X]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:J}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:U,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:U.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[U,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{J(y),Y(!1)},[J,Y]);p.useEffect(()=>{me?.threadId!=null&&U.length>0&&!P&&(J(me.threadId),_e(null))},[me,U,P,J,_e]),Xn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Xe]=p.useState(!1),[Ye,Ue]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Ge=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{Q()},[Q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),Q())},[e,Q,Be]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Ge,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{X(!1),de(!1)}},xn={onOkClick:c=>{pe(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},gn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),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:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const R=c;return{lineIndex:y,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}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,$n=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??$n,et=st(s?.paymentType?.method??"").replace("Same Day",""),In=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,An=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Sn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||fe)&&kn===!1,we=ge||fe,Cn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Cn&&(!qe||D?.code==="processing"&&!B),at=!qe,it=["small","medium-compact","medium-regular"].includes(l),G=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!G&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||x&&F&&Se),Rn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Gt(!0,Ye,c)},lt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},zn=()=>{Ue(!0),lt()},Mn=()=>{Qt(),Xe(!1),Ye&&Ue(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&q(!1),W!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},Ln=()=>{Ke("rejected"),W!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),pe(!0)},rt=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:rt,children:[t.jsx(Qn,{anchor:"right",open:sn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(qn,{companyName:Jn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{q(!1),Qe()},onClickAway:()=>{q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:Rn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:xn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,K&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(G,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const R=e?.transactionDetails?.lines?.find(On=>On.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(z,{})]}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:In})}),An()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(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(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,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:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:qt,onSaveRealTimeApprovals:Jt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||x,showCancel:!V&&x,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Ln,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Xa,{children:t.jsxs(qa,{windowSize:l,children:[!G&&Oe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&F&&Se?t.jsx(Z,{onClick:zn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Qa,{windowSize:l,children:[Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(gn,{}):t.jsx(Ua,{})})}):null,!G&&xe===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:La,placement:"top",children:t.jsx(Ga,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ha,{})})}):null,!G&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ya,{onClick:()=>re(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:Oa,threads:U,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[x].color,bgColor:L[x].bgColor,borderColor:L[x].borderColor}},Ea=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},_a=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===g)?.label;return`${x} ${Ma} ${K}`},Za=(e,g,x)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(x!=null){const K=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:x.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Xa=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,q as B,e as O,R,a as M,a2 as W,j as o,U as G,ca as X,aX as Z,F as H,a4 as J,o as c}from"./index-
|
|
1
|
+
import{C as z,q as B,e as O,R,a as M,a2 as W,j as o,U as G,ca as X,aX as Z,F as H,a4 as J,o as c}from"./index-CUSLlYOQ.js";import{b as D,n as h}from"./vendor-rkTZJa59.js";import{b as K,f as Q,l as L,o as j}from"./FollowStepsSection-CmNPc7L7-BDPhFSNz.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=O(),a=R.getLocalizedStrings().commonSetUp.approval,P=R.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return D.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const q=G(d);X(()=>V(U,q))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:L},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,x as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as V,q as l,ao as X,X as z,an as q,f as S,cu as F,aP as Y,v as _}from"./index-
|
|
1
|
+
import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,x as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as V,q as l,ao as X,X as z,an as q,f as S,cu as F,aP as Y,v as _}from"./index-CUSLlYOQ.js";import{n as o,b as J}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=J.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:f,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(R,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-WDhvRVxp-DSooRHTy.js → BillPayPromoPage-K1PR5HwL-DNrs5EJc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x,o as l,r as le,c7 as se,u as U,a6 as L,n as oe,C as re,f as S,c9 as te,a7 as ae,ap as ne,q as de}from"./index-
|
|
1
|
+
import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x,o as l,r as le,c7 as se,u as U,a6 as L,n as oe,C as re,f as S,c9 as te,a7 as ae,ap as ne,q as de}from"./index-CUSLlYOQ.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js";import{C as pe}from"./VideoPopup-CuNygbO8-CXsOFM5P.js";import{M as z}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./VideoPlayer-DwQsg64H-FOZjYnYW.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-C3rhKamR-BVMPCEUL.js → BillPaySetUpPage-C613-SXo-CO76RoXW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as De,e as _e,a2 as E,a as $e,ca as Re,R as Ue,l as He,a8 as X,j as t,cP as ze,W as Le,f as qe,C as u,aX as Me,m as Ne,F as Ge,dO as Je,aS as Ke,dE as Qe,bp as Xe,f1 as Ye,a4 as Ze,o as L,q as a,x as et,b6 as tt}from"./index-
|
|
1
|
+
import{u as De,e as _e,a2 as E,a as $e,ca as Re,R as Ue,l as He,a8 as X,j as t,cP as ze,W as Le,f as qe,C as u,aX as Me,m as Ne,F as Ge,dO as Je,aS as Ke,dE as Qe,bp as Xe,f1 as Ye,a4 as Ze,o as L,q as a,x as et,b6 as tt}from"./index-CUSLlYOQ.js";import{b as m,n as g}from"./vendor-rkTZJa59.js";import{D as it}from"./HelpButton-Q541XR8l-BSrpuFYl.js";import"./SetUpAccountSection-BOVDEhzr-C3wqEw_b.js";import{q as H}from"./SetUpDefaultSection-BUW8sK0W-D8WfjaRL.js";import{f as nt}from"./SpendMgmtSetupAccountSection-34NSLgnB-BhuQEN-2.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-B2o-n3Qj-ARY5BkVh.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js";import"./ChaseOverlay-mR5F-VwA-BmdISHW7.js";import"./ChargeCardUtils-D6NpoGcY-DUOumYyo.js";import"./CreditCardPaymentPlgSection-C_AemOvd-zGNETkKA.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",V="billPayAccount",It=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:S,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:Se,onInternationPaymentSetUpClick:ye,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=De(),i=_e(),[k,y]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:O,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,D=O.link_account.updateStatus,_=O.update_account.updateStatus,F=E(p),J=E(b.fetchState),K=E(D.fetchState),Q=E(_.fetchState),x=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&y(!0),k&&F==="In-Progress"&&p==="Completed"&&y(!1)},[c,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,K,D.fetchState,Q,_.fetchState]);const Fe=x.handleSubmit(P=>{S.trackEnableBillPay(),ge()}),Ie=async(P,B)=>{const o=B[V];if(P.includes(V)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&S.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((B,{name:o})=>{o!=null&&B!=null&&Re(()=>Ie(o,B))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Be,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:d}=Be,{billPaySetup:l}=Ee.billPay,$=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ve=$?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),Oe=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>y(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>y(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ve}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:Oe,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:O,allBankAccounts:Ae,sectionId:V,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:S,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&S.trackEnableIntlWire(ie),ye?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),$&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:$&&!R,meetingUrl:v,analytics:S,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,e as Ce,a as xe,ca as Pe,a8 as k,R as be,j as t,C as P,aX as Ae,m as Ie,F as ve,aS as je,cb as ke,a4 as $e,o as s,h8 as Ee,cD as Be,cE as Te,q as b,x as Ve,gn as Oe,X as ze,f as De}from"./index-
|
|
1
|
+
import{u as fe,e as Ce,a as xe,ca as Pe,a8 as k,R as be,j as t,C as P,aX as Ae,m as Ie,F as ve,aS as je,cb as ke,a4 as $e,o as s,h8 as Ee,cD as Be,cE as Te,q as b,x as Ve,gn as Oe,X as ze,f as De}from"./index-CUSLlYOQ.js";import{b as H,n as r}from"./vendor-rkTZJa59.js";import{M as Le,r as F,o as Me}from"./PaymentAccountSetupBillingAddressSection-DA-yP5eE-BeXTRuNI.js";import{O as Re}from"./SetUpAccountSection-BOVDEhzr-C3wqEw_b.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SetUpDefaultSection-BUW8sK0W-D8WfjaRL.js";import"./ChaseOverlay-mR5F-VwA-BmdISHW7.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},W="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:E},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=E.fetchState==="In-Progress"||E.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),T=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:O}=be.getLocalizedStrings(),ge=O.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",L=m?.addCardPaymentSourceStatus.fetchState,x=Le(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:F(D).name}),color:new k(V)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(We,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:O.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:i,children:[t.jsx(_e,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(qe,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ke(i,l.headers.billingAddress,ce,N,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:R,setCardSetupInProgress:we})]})},_=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ee(n,e.subscriptionBillingAddress)[n]}},Fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as V,j as b,bV as q,bX as M,bY as W,ji as X,l as Y,ab as z}from"./index-
|
|
1
|
+
import{R as V,j as b,bV as q,bX as M,bY as W,ji as X,l as Y,ab as z}from"./index-CUSLlYOQ.js";import{b as _}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-DpKT4WCT-DsGxeF5N.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[B,w]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,K(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:$}=G(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:L,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&Y.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},K=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=X([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},G=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:B}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,K as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,j as s,W as b,o as r}from"./index-
|
|
1
|
+
import{e as h,j as s,W as b,o as r}from"./index-CUSLlYOQ.js";import{n as p}from"./vendor-rkTZJa59.js";import{o as l}from"./commonDimensions-B2-svr35-l1Ftseew.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,e as tt,a2 as we,j as a,R as Te,d as M,a as at,co as it,l as L,B as st,ca as nt,ab as rt,a1 as ot,Q as lt,aX as ct,W as dt,cb as mt,bV as pt,bX as ut,bY as ft,m as yt,F as ht,a4 as gt,o,C as P,n as Ie,fJ as xt,fh as Ce,cD as St,c7 as wt,a3 as Ct,x as ke,X as bt,g as vt,q as k}from"./index-BrOecDhr.js";import{b as j,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-zZO2eh1J-D-xmt2b-.js";import{r as It}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-l0XKNlaq-BRSM9eKo.js";import"./LabeledCreatableSingleSelectField-DZIsQevy-9hx4zlye.js";import"./LabeledDocumentField-DMEWdfq0-BSsFK7UP.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:z,productType:y,allIndustries:E,companyTitles:_,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:V,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:Be,onClickMenuIcon:ze})=>{const Ee=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,_e=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(Et,{children:[s.terms.term1,a.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,G]=j.useState(!1),[X,se]=j.useState("save"),[W,Xe]=j.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,E,_,A)}),{isValid:Me}=p.formState,Z=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?q?.companyVerificationStatus:Z?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ge=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,K=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,Se=Y?.email;i!=null&&f!=null&&C!=null&&I!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&K!=null&&fe!=null&&ye!=null&&ue!=null&&K!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:K,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},We=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",I=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ze=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(X!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&Me&&(Ge(),Ve?.(T))}),Je=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},Qe=j.useCallback(st((e,i)=>{Je(e,i)},300),[]);j.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>Qe(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),J=re?.map(e=>e.user),Ke=re?.map(e=>e.role),Ye={onOkClick:()=>{G(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Ke?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{G(!1)}},He=rt(ot(u),u,Nt.currencySymbol).toUpperCase(),Q=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&_e==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(qt,{children:[a.jsx(It,{}),a.jsx(Jt,{windowSize:m,children:s.submittedTitle}),a.jsx(Wt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:Ee.colors.grey5,style:{zIndex:W?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?G(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?a.jsx(Qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:Q?s.businessVerificationDetails:s.verifyBusinessDetails}),!Q&&a.jsx(Ut,{children:a.jsxs(Xt,{children:[a.jsx(Mt,{}),a.jsx(Gt,{})]})})]}),a.jsx($e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Bt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:J??[],sectionId:v,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ae,isDisabled:$,filesEndPoint:r,authParams:z,isPopupOpen:W,openPopup:Xe,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,companyTitles:_,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":Z?.businessVerificationStatus?.code!=="pending_review"&&Z?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:X==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:X==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;X!=="save"&&se("save");const c=e?.email??"",f=We(),C=Ze();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),Be?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:W?0:4}}):null]})},jt=(t,A,F,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:z,companyView:y}=t,E=Te.getLocalizedStrings().companyPassport,_=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(z).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!_&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,e as tt,a2 as we,j as a,R as Te,d as M,a as at,co as it,l as L,B as st,ca as nt,ab as rt,a1 as ot,Q as lt,aX as ct,W as dt,cb as mt,bV as pt,bX as ut,bY as ft,m as yt,F as ht,a4 as gt,o,C as P,n as Ie,fJ as xt,fh as Ce,cD as St,c7 as wt,a3 as Ct,x as ke,X as bt,g as vt,q as k}from"./index-CUSLlYOQ.js";import{b as j,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-BfUknZ4p-DBnDNVV2.js";import{r as It}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-DfpU2h4D-Bn_QNbyf.js";import"./LabeledCreatableSingleSelectField-B3Xae4zM-B8vmi2NV.js";import"./LabeledDocumentField-VB0WwnTG-BgD9uIsc.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:z,productType:y,allIndustries:E,companyTitles:_,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:V,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:Be,onClickMenuIcon:ze})=>{const Ee=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,_e=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(Et,{children:[s.terms.term1,a.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,G]=j.useState(!1),[X,se]=j.useState("save"),[W,Xe]=j.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,E,_,A)}),{isValid:Me}=p.formState,Z=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?q?.companyVerificationStatus:Z?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ge=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,K=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,Se=Y?.email;i!=null&&f!=null&&C!=null&&I!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&K!=null&&fe!=null&&ye!=null&&ue!=null&&K!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:K,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},We=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",I=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ze=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(X!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&Me&&(Ge(),Ve?.(T))}),Je=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},Qe=j.useCallback(st((e,i)=>{Je(e,i)},300),[]);j.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>Qe(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),J=re?.map(e=>e.user),Ke=re?.map(e=>e.role),Ye={onOkClick:()=>{G(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Ke?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{G(!1)}},He=rt(ot(u),u,Nt.currencySymbol).toUpperCase(),Q=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&_e==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(qt,{children:[a.jsx(It,{}),a.jsx(Jt,{windowSize:m,children:s.submittedTitle}),a.jsx(Wt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:Ee.colors.grey5,style:{zIndex:W?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?G(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?a.jsx(Qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:Q?s.businessVerificationDetails:s.verifyBusinessDetails}),!Q&&a.jsx(Ut,{children:a.jsxs(Xt,{children:[a.jsx(Mt,{}),a.jsx(Gt,{})]})})]}),a.jsx($e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Bt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:J??[],sectionId:v,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ae,isDisabled:$,filesEndPoint:r,authParams:z,isPopupOpen:W,openPopup:Xe,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,companyTitles:_,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":Z?.businessVerificationStatus?.code!=="pending_review"&&Z?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:X==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:X==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;X!=="save"&&se("save");const c=e?.email??"",f=We(),C=Ze();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),Be?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:W?0:4}}):null]})},jt=(t,A,F,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:z,companyView:y}=t,E=Te.getLocalizedStrings().companyPassport,_=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(z).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!_&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as m,R as w,j as t,v as x,X as $,o as s,g as C}from"./index-
|
|
1
|
+
import{e as m,R as w,j as t,v as x,X as $,o as s,g as C}from"./index-CUSLlYOQ.js";import{n as o,b as d}from"./vendor-rkTZJa59.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,u=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${u}`,children:[g,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,e as f,j as t,aX as te,R as w,cV as P,v as u,aj as U,bv as ie,o as i,f as B,C as h,x as v,dg as oe,l as y,q as l,b7 as re,b8 as ae,aw as se,av as ne,ab as de,b9 as le,bb as ce,iv as he,a0 as R,bn as pe,W as z,w as $,iw as q,ix as X,id as ge,c3 as me,c6 as xe,n as T,ie as we,ig as ue}from"./index-
|
|
1
|
+
import{u as k,e as f,j as t,aX as te,R as w,cV as P,v as u,aj as U,bv as ie,o as i,f as B,C as h,x as v,dg as oe,l as y,q as l,b7 as re,b8 as ae,aw as se,av as ne,ab as de,b9 as le,bb as ce,iv as he,a0 as R,bn as pe,W as z,w as $,iw as q,ix as X,id as ge,c3 as me,c6 as xe,n as T,ie as we,ig as ue}from"./index-CUSLlYOQ.js";import{n as o,f as O,b as V}from"./vendor-rkTZJa59.js";import{B as ye}from"./InsightsSection-BnINWGoM-BjOeo3qP.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./NavigationDots-DYwxSHEm-CJDFcaPa.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:R("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,e as fe,Y as nt,b as st,fj as Xa,l as Ne,h2 as Gr,a8 as He,R as pe,fk as Ka,j as t,gs as qr,aX as Xr,q as c,fs as Ja,a0 as ye,W as Z,o as a,bp as Pt,f as p,ih as Qa,v as _,bV as Kr,ii as Jr,cP as Qr,gi as ei,a as ti,gl as ai,cv as ri,C as D,p as ii,F as oi,fK as ni,Q as Ct,a$ as si,bg as er,a6 as Mt,ij as di,ik as tr,b6 as ar,ap as Ot,eW as ci,a7 as rr,af as li,il as hi,im as pi,am as Vt,w as ge,eA as ui,ic as mi,az as dt,fl as ir,m as ot,aj as gi,dl as Ci,b_ as fi,bX as wi,cC as xi,g$ as yi,x as be,br as or,io as bi,fm as Le,dt as ft,d4 as Si,X as ha,g as nr,ao as $i,ip as vi,eU as ki,c3 as sr,iq as ji,z as ut,bv as pa,aT as Li,dd as Di,eF as Ii,n as et,fg as Ai,r as Ti,T as Ri,a3 as Fi,b1 as Ei,ir as xt,d1 as zi,bn as Pi,is as dr,it as cr,g4 as lr,iu as wt,hE as hr,id as Mi,c6 as Oi,eg as pr,ie as Vi,ig as Hi,dO as Ni,cx as Bi,em as Wi,bM as Ui,bN as _i}from"./index-
|
|
1
|
+
import{u as Be,e as fe,Y as nt,b as st,fj as Xa,l as Ne,h2 as Gr,a8 as He,R as pe,fk as Ka,j as t,gs as qr,aX as Xr,q as c,fs as Ja,a0 as ye,W as Z,o as a,bp as Pt,f as p,ih as Qa,v as _,bV as Kr,ii as Jr,cP as Qr,gi as ei,a as ti,gl as ai,cv as ri,C as D,p as ii,F as oi,fK as ni,Q as Ct,a$ as si,bg as er,a6 as Mt,ij as di,ik as tr,b6 as ar,ap as Ot,eW as ci,a7 as rr,af as li,il as hi,im as pi,am as Vt,w as ge,eA as ui,ic as mi,az as dt,fl as ir,m as ot,aj as gi,dl as Ci,b_ as fi,bX as wi,cC as xi,g$ as yi,x as be,br as or,io as bi,fm as Le,dt as ft,d4 as Si,X as ha,g as nr,ao as $i,ip as vi,eU as ki,c3 as sr,iq as ji,z as ut,bv as pa,aT as Li,dd as Di,eF as Ii,n as et,fg as Ai,r as Ti,T as Ri,a3 as Fi,b1 as Ei,ir as xt,d1 as zi,bn as Pi,is as dr,it as cr,g4 as lr,iu as wt,hE as hr,id as Mi,c6 as Oi,eg as pr,ie as Vi,ig as Hi,dO as Ni,cx as Bi,em as Wi,bM as Ui,bN as _i}from"./index-CUSLlYOQ.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-rkTZJa59.js";import{k as Yi}from"./NavigationDots-DYwxSHEm-CJDFcaPa.js";import{L as Gi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-D6NpoGcY-DUOumYyo.js";import{A as qi,i as Xi,a as Ki,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-y8nGTHEa.js";import{f as ao}from"./CardNumberSubText-AKyMT95b-DCed0_W-.js";import{r as fr}from"./mui-C42whWwM.js";import{l as wr}from"./uploadReceipts-CPeNTSex-CwQeEyUV.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:K}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):K===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as St,Y as jt,fr as vt,l as M,fm as v,e as pe,R as Be,o as a,u as _e,j as t,aX as kt,fF as Pt,cV as A,v as C,bp as le,f as n,a0 as Tt,ab as ce,W as me,C as B,w as R,X as It,g as Mt,cs as At,aD as Fe,b6 as Rt,af as ue,a6 as Et,n as ge,q as T,d6 as Lt,r as Dt,x as zt,c7 as Nt,cr as Ot,aR as Bt}from"./index-
|
|
1
|
+
import{b as St,Y as jt,fr as vt,l as M,fm as v,e as pe,R as Be,o as a,u as _e,j as t,aX as kt,fF as Pt,cV as A,v as C,bp as le,f as n,a0 as Tt,ab as ce,W as me,C as B,w as R,X as It,g as Mt,cs as At,aD as Fe,b6 as Rt,af as ue,a6 as Et,n as ge,q as T,d6 as Lt,r as Dt,x as zt,c7 as Nt,cr as Ot,aR as Bt}from"./index-CUSLlYOQ.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-D3rquaEv-BJI1sMDC.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-qqkFzI3U-CGO1jSgB.js";import{N as Ut,J as Yt}from"./PromoBaseCards-BIR1VU56-C4Y3qtQN.js";import{O as Gt}from"./ChargeCardListTable-B6yByjDG-BZLXrh5S.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as Vt,o as qt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js";import"./NavigationDots-DYwxSHEm-CJDFcaPa.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-Ctk9nNVM-BxyIpAsx.js";import"./RoleWithToolTip-C1XhL3lB-B7Qf3yy-.js";import"./CardNumberSubText-AKyMT95b-DCed0_W-.js";import"./ChargeCardUtils-D6NpoGcY-DUOumYyo.js";const be={infoSubheadingTextMarginTop:new B(T[0],T[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Xt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Qt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Zt=e=>{const s=e-1;let l=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,bJ as $i,e as _,Y as ee,b as fi,u as de,fj as vi,i7 as Ci,i8 as yi,i9 as ji,W as b,R as V,bS as bi,v as re,f as y,aj as ki,b_ as Si,ia as Ii,ib as zi,o as t,bg as Li,a6 as Ri,C as p,eA as Pi,ap as Di,ic as Ui,a7 as Ni,az as Ti,w as F,fl as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,n as k,c3 as we,x as U,i1 as ue,b6 as Ne,be as Te,id as Ei,c6 as Wi,a8 as G,ie as Fi,ig as Mi}from"./index-
|
|
1
|
+
import{j as i,bJ as $i,e as _,Y as ee,b as fi,u as de,fj as vi,i7 as Ci,i8 as yi,i9 as ji,W as b,R as V,bS as bi,v as re,f as y,aj as ki,b_ as Si,ia as Ii,ib as zi,o as t,bg as Li,a6 as Ri,C as p,eA as Pi,ap as Di,ic as Ui,a7 as Ni,az as Ti,w as F,fl as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,n as k,c3 as we,x as U,i1 as ue,b6 as Ne,be as Te,id as Ei,c6 as Wi,a8 as G,ie as Fi,ig as Mi}from"./index-CUSLlYOQ.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-Ctk9nNVM-BxyIpAsx.js";import{T as Ve}from"./RoleWithToolTip-C1XhL3lB-B7Qf3yy-.js";import{f as ce}from"./CardNumberSubText-AKyMT95b-DCed0_W-.js";import{_ as Oe}from"./ChargeCardUtils-D6NpoGcY-DUOumYyo.js";const M=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Hi=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:M.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:M.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:M.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:M.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:M.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:M.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...fe,width:new p(0,0),value:Hi},ve,Ce,ye,je,be]:[fe,ve,Ce,ye,je,be],z={containerPaddingLeft:t.sp2,containerPaddingRight:t.sp3,containerPaddingTop:t.sp3,containerPaddingBottom:t.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Fi,Mi)};function Ki({companyNameSticky:e,sortConfig:o,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===o.sortKey?g.sortOrder=o.sortOrder:g.sortOrder="ascending";w(s)},[o.sortKey,o.sortOrder]);const u=(s,g)=>{let f=g;o.sortKey===s&&(f=g==="ascending"?"descending":"ascending"),h(s,f)},$=c.find(s=>s.key===o.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Yi,{windowSize:l,children:[i.jsxs(Xi,{children:[i.jsx(et,{children:i.jsx(Zi,{})}),i.jsx(Oi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:re.extraSmallRegular,titleTextStyle:re.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rt,{onClick:()=>u($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(Bi,{windowSize:l,children:i.jsx(Ji,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Qi,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(tt,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(it,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",o.sortKey)})})]},s.key))})})}const qi=Ai.memo(Ki),Bi=r.div`
|
|
2
2
|
top: ${t.sp0};
|
|
3
3
|
left: ${t.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as b,R as oe,j as r,u as X,Y as $e,b as ye,a2 as be,a0 as je,l as Se,fr as Te,aX as ze,Q as K,W as ee,o as t,c7 as ve,T as J,c8 as Pe,r as ke,C as x,bW as Be,bp as Ae,i5 as Ie,w as Re,q as g,X as j,f as $,ap as Le,a7 as Me,i6 as _e}from"./index-BrOecDhr.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-CaAA-95e-B1U6_EBk.js";import{k as Ue}from"./NavigationDots-2bNAi48B-k0PWrc4i.js";import{J as H,N as G}from"./PromoBaseCards-D3KJDpH5-BzOCd7MM.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const h={containerPaddingTopBottom:new x(g[0],g[0]),uspContainerMarginX:new x(g[6],g[0]),midContainerGap:new x(g[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(g[6],43),navigationBottom:new x(g[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,g[4]),carouselMarginLeft:new x(120,g[12]),buttonTrayGap:new x(g[3],g[5]),termsOfAgreementMarginTop:new x(g[5],g[10]),contactAdminContainerMarginTop:new x(g[0],g[10]),contactAdminContainerMarginBottom:new x(g[4],g[0]),contactAdminContainerMarginLeftRight:new x(g[3],g[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:O,onExpressInterestClick:me})=>{const ge=X(),W=$e(),z=b(),V=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,q=be(M?.fetchStatus.fetchState),[he,Q]=S.useState(!1),xe=()=>{V.trackCardsPromoPageClicked("schedule demo"),V.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{q==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&O()},[q,O,M?.fetchStatus]);const Z=Se.hasChargeCardAdminLevelAccess(W.loggedInUserRoleMap),we=Te(W),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Oe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:ge.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(Qe,{windowSize:z,children:Z===!0?r.jsxs(qe,{children:[r.jsxs(Ve,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Z&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(K,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(We,{windowSize:z,children:o.orText}),r.jsx(K,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ke,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Xe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Xe=({cards:e,companyLegalName:s})=>{const i=X(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=X(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Oe=a.div`
|
|
1
|
+
import{e as b,R as oe,j as r,u as X,Y as $e,b as ye,a2 as be,a0 as je,l as Se,fr as Te,aX as ze,Q as K,W as ee,o as t,c7 as ve,T as J,c8 as Pe,r as ke,C as x,bW as Be,bp as Ae,i5 as Ie,w as Re,q as g,X as j,f as $,ap as Le,a7 as Me,i6 as _e}from"./index-CUSLlYOQ.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js";import{k as Ue}from"./NavigationDots-DYwxSHEm-CJDFcaPa.js";import{J as H,N as G}from"./PromoBaseCards-BIR1VU56-C4Y3qtQN.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const h={containerPaddingTopBottom:new x(g[0],g[0]),uspContainerMarginX:new x(g[6],g[0]),midContainerGap:new x(g[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(g[6],43),navigationBottom:new x(g[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,g[4]),carouselMarginLeft:new x(120,g[12]),buttonTrayGap:new x(g[3],g[5]),termsOfAgreementMarginTop:new x(g[5],g[10]),contactAdminContainerMarginTop:new x(g[0],g[10]),contactAdminContainerMarginBottom:new x(g[4],g[0]),contactAdminContainerMarginLeftRight:new x(g[3],g[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:O,onExpressInterestClick:me})=>{const ge=X(),W=$e(),z=b(),V=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,q=be(M?.fetchStatus.fetchState),[he,Q]=S.useState(!1),xe=()=>{V.trackCardsPromoPageClicked("schedule demo"),V.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{q==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&O()},[q,O,M?.fetchStatus]);const Z=Se.hasChargeCardAdminLevelAccess(W.loggedInUserRoleMap),we=Te(W),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Oe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:ge.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(Qe,{windowSize:z,children:Z===!0?r.jsxs(qe,{children:[r.jsxs(Ve,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Z&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(K,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(We,{windowSize:z,children:o.orText}),r.jsx(K,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ke,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Xe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Xe=({cards:e,companyLegalName:s})=>{const i=X(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=X(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Oe=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|