@zeniai/web-cockpit-ui 1.14.83-dev → 1.14.83-qa
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-StkGXn1c-DnerZ6yw.js → ACHDetailsPage-StkGXn1c-QVuWqUed.js} +1 -1
- package/dist/assets/{AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js → AIPerformancePage-cGtd6TYJ-QRKa4AxL.js} +1 -1
- package/dist/assets/{AccountInfoPage-BnHC_Y3E-ByMcEeMx.js → AccountInfoPage-BnHC_Y3E-B72E7e0X.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-9hQV-QKt-DIbr8exN.js → AccountInfoPageContent-9hQV-QKt-R-xf6NE9.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js → AccountLockedInfoModal-BS5pz9ze-vd3nemno.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js → AccountReconDetailsDrawerPage-D_348I-1-BgIx6Bmu.js} +1 -1
- package/dist/assets/{AccountRow-DbyUdPZG-D3G-oWRQ.js → AccountRow-DbyUdPZG-kPApYWvO.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js → AccountsPromoCardStack-CeGcTU8h-nrGLKwQX.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D5EnX225-LqDDXshB.js → AddAddressForCardDrawer-D5EnX225-DlgrCRko.js} +1 -1
- package/dist/assets/{AddToWalletPage-D45TGyNS-FyEeS4ax.js → AddToWalletPage-D45TGyNS-DpxcbTMf.js} +1 -1
- package/dist/assets/{AgingReportsPage-Cxe-3oBx-BYtw6E86.js → AgingReportsPage-Cxe-3oBx-BdtauDu4.js} +1 -1
- package/dist/assets/{AllUserItems-Cc_-o3gE-BoV9oLkk.js → AllUserItems-Cc_-o3gE-Dj-vsTnw.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DoaKW48m-OHK-ezBl.js → ApAgingDetailPage-DoaKW48m-B9QImbCC.js} +1 -1
- package/dist/assets/{AppBasePage-BUE60uZt-eqCd5DKr.js → AppBasePage-BUE60uZt-C6OIIfvZ.js} +1 -1
- package/dist/assets/{AppDrawerContent-P20acbi4-B9KrqH0V.js → AppDrawerContent-P20acbi4-DSZQpDPf.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js → ApprovalRulesSettingsPage-C5KUTjie-BG0_ZC6k.js} +1 -1
- package/dist/assets/{ArAgingChart-DIABTV5P-DnLiVsos.js → ArAgingChart-DIABTV5P-D3hRykT_.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js → ArAgingDetailPage-CA4JP8HZ-DzwzorRb.js} +1 -1
- package/dist/assets/{Area-Sl30rGq6-WMXLxt2t.js → Area-Sl30rGq6-CogxmVvt.js} +1 -1
- package/dist/assets/{AreaChart-2AgE74bB-juQGB2-h.js → AreaChart-2AgE74bB-DgDnH-B0.js} +1 -1
- package/dist/assets/{AttachmentView-DRBK6aiE-DxR-B_-8.js → AttachmentView-DRBK6aiE-C1Ruc-VW.js} +1 -1
- package/dist/assets/{BankAccountSection-CwPIXA5w-DE6FMEHD.js → BankAccountSection-CwPIXA5w-DDDsPYwm.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js → BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js → BankConnectionsSettingsPage-bk8eOcuj-DxzeQDqg.js} +1 -1
- package/dist/assets/{BillDetailPage-CQ8iqo9y-D1hvEdQD.js → BillDetailPage-CQ8iqo9y-Tp3WmchS.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js → BillPayApprovalRuleDetailPage-B8LMww_O-CRWeyw0Q.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BCoXLnmv-DCVONktr.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js → BillPayPromoPage-CIUhDNjJ-Cwqxzge6.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CrfwREgO-oxkPqY3f.js → BillPaySetUpPage-CrfwREgO-CJ9_P2PZ.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CitBvGaR-nwEc2ngU.js → BillingSettingsPage-CitBvGaR-DZa8FJ6b.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js → BillsBulkReviewDrawerPage-Cal9oN8I-D6VU0QwP.js} +1 -1
- package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-B6Qj2tSj-J1Dptt9x.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-aj1YPi-U-D08S06Tj.js → BusinessVerificationPage-aj1YPi-U-D4YVlN1d.js} +1 -1
- package/dist/assets/{CardNumberSubText-COZ0PEHK-CGMTIPNh.js → CardNumberSubText-COZ0PEHK-DfX-_Vv0.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BloaeO12-DkRvSRPk.js → CashbackDetailPage-BloaeO12-CKXrQ4pr.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CjW48x_w-DZEJnmps.js → ChargeCardDetailPage-CjW48x_w-CYCiZNdX.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js → ChargeCardListPage-CiUoFBZq-fokUM1Ml.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BGdEyXLV-BJk1B__-.js → ChargeCardListTable-BGdEyXLV-i14Xe5Xy.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js → ChargeCardPromoPage-BYgvGdtQ-BP8Ml7dN.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-B0L57e-5-DfN8lydv.js → ChargeCardSetupPage-B0L57e-5-g-QFSpA6.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js → ChargeCardStatementsPage-CB76MDoV-DzuODTlT.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js → CheckDepositDrawerPage-Cr_oz-BZ-COLf_Spm.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B3_in9eE-D8gjZt8q.js → CollapsableReportTable-B3_in9eE-DAO-TPrY.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js → CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js} +1 -1
- package/dist/assets/{CompanyPassportCard-Bn50f4y5-D-A9Krsj.js → CompanyPassportCard-Bn50f4y5-DOiZtliu.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CamFfvAV-lyA9J8un.js → CompanyPassportPage-CamFfvAV-Dh23xkTd.js} +1 -1
- package/dist/assets/{CompleteProfile-2jFR92oO-DA0X1epS.js → CompleteProfile-2jFR92oO-Dv25uofO.js} +1 -1
- package/dist/assets/{ComposedChart-Cot0K7Et-DQrzoGG2.js → ComposedChart-Cot0K7Et-Cs0IcUoo.js} +1 -1
- package/dist/assets/{ConfettiBurst-D34cviSS-Z_WPGmrN.js → ConfettiBurst-D34cviSS---m1oxyT.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js → CreateOrEditVendorPage-Abz0ijRD-Wxr0ruoD.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js → CreditCardPaymentDrawerPage-BRcbxJYU-BrdaibUh.js} +1 -1
- package/dist/assets/{CurrencySelectField-DR8cDrIS-TTiuldkA.js → CurrencySelectField-DR8cDrIS-BWQqgMWL.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DPghXiES-BYZrYsLp.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BfS6D7SD.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js → CustomerOnboardingNoStepsPage-B0y5uw1X-CpWrxFy5.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js → CustomerOnboardingPage-BheJqVUY-gSyXgh3g.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js → CustomerOnboardingProductSuitePage-BaYYKqZ9-Cjiy9Y20.js} +1 -1
- package/dist/assets/{Dashboard-DJs11vgV-CqS9vdTt.js → Dashboard-DJs11vgV-KI7JNzAI.js} +1 -1
- package/dist/assets/{DashboardReportPage-CL0RrJ4A-FEfXS09v.js → DashboardReportPage-CL0RrJ4A-CMyxRLdL.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js → DashboardSidebarBackgroundAnimation-DHlKExbg-2TSvr-F-.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-C36JnddA-BuRFl8Tj.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js → DepositAccTransactionListPage-Db5EpWjl-fYOiHNFH.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js → DomesticWireDetailsPage-C_flRkmQ-D2Y9zL_T.js} +1 -1
- package/dist/assets/{DownloadOverlay-CLWNXGnb-DS0DZTJ1.js → DownloadOverlay-CLWNXGnb-CzOVbqqI.js} +1 -1
- package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BdYS_9Mt-Bc1McCUH.js} +1 -1
- package/dist/assets/{EditPeoplePage-B7bjXrqC-Bm6qgPK0.js → EditPeoplePage-B7bjXrqC-OL09v3a6.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js → EditReimbursementDetailPage-BRYd6JMC-F9QPl0Ac.js} +1 -1
- package/dist/assets/{EntityDetailPage-B1aKw_1J-DOXQOxN6.js → EntityDetailPage-B1aKw_1J-CWSa9OE7.js} +1 -1
- package/dist/assets/{EntitySummarySection-Cp-CFb9j-NVB6pHEa.js → EntitySummarySection-Cp-CFb9j-DWbzDu3x.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js → ExpenseAutomationOverviewPage-C7tY6mua-CIo35h3r.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js → ExpenseAutomationPage-CeP8I1tB-DHQpDifW.js} +1 -1
- package/dist/assets/{ExpressPayPage-DYUtczg7-BDKERlx3.js → ExpressPayPage-DYUtczg7-Cb7gdmam.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-Brau5064-B6gubfR5.js} +1 -1
- package/dist/assets/{FollowStepsSection-Dhf67oqf-CptFWIJS.js → FollowStepsSection-Dhf67oqf-C9-DQpEq.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js → GlobalReviewListPage-C89Tsajc-C8QIbpaJ.js} +1 -1
- package/dist/assets/{InformationCardStack-BLD4XmMT-Dp1BbBqU.js → InformationCardStack-BLD4XmMT-CaIFPHpb.js} +1 -1
- package/dist/assets/{InsightsCardStack-CAwTWreO-DWsXatY7.js → InsightsCardStack-CAwTWreO-DMHtrXvo.js} +1 -1
- package/dist/assets/{InsightsSection-DJrMi3DN-DUYhJ5vl.js → InsightsSection-DJrMi3DN-BZzGhpNe.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js → IntegrationsSettingsPage-LAjqcDLQ-CwsnsoHn.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js → InternationalWireSwiftDetailsPage-_4BMP68N-D2TibYHD.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js → InternationalWireVerificationPage-BiDh0ost-DRFXu-Md.js} +1 -1
- package/dist/assets/{InviteFormPage-DN2uvROT-Dfc30Liy.js → InviteFormPage-DN2uvROT-D-pHqBtv.js} +1 -1
- package/dist/assets/{InvitePageListView-DDi1bLaG-BIsQyZAc.js → InvitePageListView-DDi1bLaG-CWBEJEz9.js} +1 -1
- package/dist/assets/{InvitePeoplePage-D4bsu9K1-CnzfbNDf.js → InvitePeoplePage-D4bsu9K1-K8YB3huJ.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BducuHAy-CwGoLvBS.js → InvoiceUploadSection-BducuHAy-DP3yW3zT.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js → IssueChargeCardPage-C2I9mUTD-Dk0ZH0_P.js} +1 -1
- package/dist/assets/{LabeledAddressValue-mLMacnQu-BhboedQp.js → LabeledAddressValue-mLMacnQu-Bs8h4KYU.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js → LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js → LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js → LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js → LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js → LabeledDropDownFormattedTextField-B4_WiAaD-C8oOx3AR.js} +1 -1
- package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-iHeu8MCf-GFbIBet5.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js → LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-90UTcRc3.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js → LabeledZeniRolesDropDownField-DoF6cXd_-DT1LbBkc.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C1FL0hR6-BhDC9P29.js → LinkJETransactionPage-C1FL0hR6-Bp0Um_Sm.js} +1 -1
- package/dist/assets/{LockCardPage-Do7WCHaW-DegBv6L_.js → LockCardPage-Do7WCHaW-ZupVtZLk.js} +1 -1
- package/dist/assets/{LowBalancePopup-CEiTKqxT-F00svkBR.js → LowBalancePopup-CEiTKqxT-DJVUP8TV.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js → MagicLinkACHDetailsPage-C7xvzxN5-pg2IguPb.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js → MagicLinkDomesticWireDetailsPage-D8iNxVu6-Boex5dqe.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js → MagicLinkInternationalWireDetailsPage-DNmvv77I-C23EkFxR.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js → MagicLinkSuccessPage-BO-k4XK1-QkgOmsPy.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js → MagicLinkTitleSection-CzGvBYzB-B3pEwVq_.js} +1 -1
- package/dist/assets/{MailingDetailsSection-C_TtoLpj-DODfBmzp.js → MailingDetailsSection-C_TtoLpj-DxhbJD-R.js} +1 -1
- package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-pyYbFxsT-BjDDhfv4.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js → MyBankConnectionsSettingsPage-BP6RBO_Y-BFwv-Z-d.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js → MyPendingActivationChargeCardListPage-CBwy21Ec-CDRbSeBl.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js → MyProfileSettingsPage-yHoOgEgo-daGXrnbi.js} +1 -1
- package/dist/assets/{NavBarWithPicker-FYZ2a05o-CmU_pgV6.js → NavBarWithPicker-FYZ2a05o-B8iO0ddX.js} +1 -1
- package/dist/assets/{NavigationArrow-DlO0Lww9-Ct543iDt.js → NavigationArrow-DlO0Lww9-C_GP4JM3.js} +1 -1
- package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-DO5y6mdV-CX8opgkb.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js → NewGlobalMerchantPage-FW6_Vbee-GgZoUq7l.js} +1 -1
- package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-C0lCeeVH-DA9wYEab.js} +1 -1
- package/dist/assets/{NoDataTable-Mkdamra1-CCnSaZtC.js → NoDataTable-Mkdamra1-C4lxq944.js} +1 -1
- package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DGkjOhKP-_tY2chCo.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js → NotificationSettingsPage-BhlKl9Ll-DUhiPe-6.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DsgxTfdY-t5wE01Ro.js → NotificationsListConfig-DsgxTfdY-Bf7tXkyY.js} +1 -1
- package/dist/assets/{NotificationsPage-ZeNj-N6e-Bg1RwKL7.js → NotificationsPage-ZeNj-N6e-BTrejAUV.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BFHzD656-CkhDsmtK.js → OpExByVendorPage-BFHzD656-CtmebRpb.js} +1 -1
- package/dist/assets/{OverlayContainerPage-C0a1XRUE-Coei_22L.js → OverlayContainerPage-C0a1XRUE-V98nAOZV.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js → PandLWithForecastPage-Ccd2Dj3E-CdBcqIm3.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js → PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js} +1 -1
- package/dist/assets/{PeoplePage-Dzl5Uh33-C_9NQRDZ.js → PeoplePage-Dzl5Uh33-BdlH9bSI.js} +1 -1
- package/dist/assets/{ProductsCarousel-B7wcRg4N-MgqN7eQE.js → ProductsCarousel-B7wcRg4N-CnpQ0WOo.js} +1 -1
- package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-38oPeuBR-B0H8TJQa.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js → QBOConnectionDialog-Bn425Vnl-BbJL04ac.js} +1 -1
- package/dist/assets/{QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js → QBOSetupSection-BqbiJ_dk-32r8g9xi.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js → ReimbursementApprovalRuleDetailPage-DmhPPX4d-D9mrhM9N.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js → ReimbursementApprovalRulesPage-DwaZeT8t-Dv8_jFtg.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js → ReimbursementDetailPage-D2tg-yOT-BzN7qc1_.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js → ReimbursementPromoPage-kn4Die2q-CKqS3hXc.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js → ReimbursementSetUpPage-D4FP9co3-CEmWCDyN.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js → ReimbursementsBulkReviewDrawerPage-hhvxZzxC-DWqEVSUF.js} +1 -1
- package/dist/assets/{ReloadCard-CreyuBvN-CLMqgpFk.js → ReloadCard-CreyuBvN-DjNwhyuW.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js → ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js} +1 -1
- package/dist/assets/{ReportsPage-CZpFSu1Y-DlpOcAya.js → ReportsPage-CZpFSu1Y-CZ0qiQOk.js} +1 -1
- package/dist/assets/{RevenueChart-CI7LXu5--DgnFQndd.js → RevenueChart-CI7LXu5--C_eMlqa_.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DaTETUBT-PWso5Dab.js → ReviewDetailsPage-DaTETUBT-BNZWzAUG.js} +1 -1
- package/dist/assets/{ReviewOverlay-De5_nrll-D6fwtyEd.js → ReviewOverlay-De5_nrll-UZnD0Wrb.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CWH-iJqI-DmzPBpda.js → RoleWithToolTip-CWH-iJqI-1DRRWE9G.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js → ScheduleDetailsFixedAssetsPage-Bq9TnStX-BBlEeAEF.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CkpwjK55-BLiF70NF.js → ScheduleDetailsPage-CkpwjK55-CdEJvs9J.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js → ScheduleSequenceTable-3IZuZOPj-CpD5-K5M.js} +1 -1
- package/dist/assets/{ScreenRoutes-B29orzq3.js → ScreenRoutes-OiTPRoV-.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DQMufunh-CK9nyz6l.js} +1 -1
- package/dist/assets/{SignIn-xXGNpo08-CUzVPK00.js → SignIn-xXGNpo08-BfJajWh7.js} +1 -1
- package/dist/assets/{SignInScreen-CDr9y3Na.js → SignInScreen-C1mSw17d.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js → SpendManagementListViewPage-BnfCoW19-KBHNQHIP.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js → SpendManagementPerTabPage-CqbhJrUj-kkilMuTU.js} +1 -1
- package/dist/assets/{SpendManagementSection-ajHIu1O8-Cq9RGBsG.js → SpendManagementSection-ajHIu1O8-DADkbXE-.js} +1 -1
- package/dist/assets/{StatementItem-GE_8ctAq-DDQXsDRX.js → StatementItem-GE_8ctAq-DrycMqry.js} +1 -1
- package/dist/assets/{StatementsPage-C3NFPx6M-jgAzPQMr.js → StatementsPage-C3NFPx6M-DxRvU8jY.js} +1 -1
- package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-BFs1Anoq-DpyTt46Q.js} +1 -1
- package/dist/assets/{SubTabSwitcher-D66ATBlk-cmQvyV1w.js → SubTabSwitcher-D66ATBlk-DOhgjMp3.js} +1 -1
- package/dist/assets/{SummaryCard-Bm1IRZgD-Bll-orHR.js → SummaryCard-Bm1IRZgD-91ZI-22I.js} +1 -1
- package/dist/assets/{Switch-0GHq7mOt-Dq45hGqf.js → Switch-0GHq7mOt-DbAV4YYH.js} +1 -1
- package/dist/assets/{TaskManagementPage-BGrBiImq-E6_WY2ZU.js → TaskManagementPage-BGrBiImq-BfzNLv5E.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js → TimeRangeSwitcher-BLZFMJtQ-DGm3ShK1.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js → TimeframeSwitcher-BsjH-yMO-BPnsY2-U.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js → TimeframeSwitcherWithToggle-Cu3G5WXl-DA09Uj2K.js} +1 -1
- package/dist/assets/{TopExCard-ZSEsgTG--BNm-M2ne.js → TopExCard-ZSEsgTG--CATJC-Xk.js} +1 -1
- package/dist/assets/{TopExDetailPage-0MGEdNiZ-CVCWUWVh.js → TopExDetailPage-0MGEdNiZ-zdtgEwyG.js} +1 -1
- package/dist/assets/{TransactionDetailPage-C7wPASNo-BTqu7QgN.js → TransactionDetailPage-C7wPASNo-DbosApC9.js} +1 -1
- package/dist/assets/{TransactionList-Brm_EWed-DwQzznTi.js → TransactionList-Brm_EWed-Cq3RVCVg.js} +1 -1
- package/dist/assets/{TransactionListBig-Br5XrVkF-BW7DnMvS.js → TransactionListBig-Br5XrVkF-CTCHs4ax.js} +1 -1
- package/dist/assets/{TransactionListPage-BE_E_82V-SHPPjUOF.js → TransactionListPage-BE_E_82V-nYGMiY-b.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js → TransactionVendorDetailPage-CtVIgF01-wm39V-7s.js} +1 -1
- package/dist/assets/{TransferDrawerPage-CCKQSH2d-21ckGGxB.js → TransferDrawerPage-CCKQSH2d-C1fxF28H.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js → TreasuryOverviewPage-D7OhHT_I-CJSivn-m.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-ssGWinby-BKoFmxRZ.js → TreasuryPromoPage-ssGWinby-7M6uQ6F0.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js → TreasuryStatementsPage-CB4g45eo-FvCbZGLY.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js → TreasuryTaxLetterPage-CixtQrG2-CdrNDE0k.js} +1 -1
- package/dist/assets/{TrendChart-ZXja3Lv--B4yGBgeP.js → TrendChart-ZXja3Lv--DjXJyQYi.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Bacaqvbc-CDzpSeHr.js → TrendWithTransactions-Bacaqvbc-CuLqX3Nb.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js → UncategorizedAccountsMappingPage-DgSFpzWV-DQ46RXxs.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js → UnitIntegrationPage-B2KxkPGT-UD1zrCcb.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js → UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DyQl5kF8-BPyop29n.js → Vendor2FAPopup-DyQl5kF8-DEaADgAn.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js → VendorACHDetailsPage-NEsVAzoZ-Bc_YmJ7L.js} +1 -1
- package/dist/assets/{VendorDetailPage-gDnCoaGz-Bq_C256n.js → VendorDetailPage-gDnCoaGz-DnPFm_s9.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js → VendorDomesticWireDetailsPage-BeqPYONY-DWVhQVkv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js → VendorFiling1099EditablePage-UIV2Tn2v-IWBkVx3W.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js → VendorFirstReviewPage-DiNHrTKs-dMUj2lfg.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js → VendorInternationalWireDetailsPage-X2xViJmq-1IEQyhex.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js → VendorInternationalWireSwiftDetailsPage-DUjY1sSV-7mNdGNdo.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-tcJAh1A7-Dj7jjfw5.js} +1 -1
- package/dist/assets/{VerifyDevice-BpRkPdzL-DdjhGhQl.js → VerifyDevice-BpRkPdzL-B5ybgDmP.js} +1 -1
- package/dist/assets/{VideoPlayer-DVIeTdLq-CMw9Re6n.js → VideoPlayer-DVIeTdLq-C7AoMVy0.js} +1 -1
- package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-CPW65Ljn-DMNmv8U3.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DmT71mwN-DESwOtN_.js → WarningsDrawerPage-DmT71mwN-Di-UIPop.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js → ZeniAccountDetailPage-BDnKHtXx-_4OD2XSq.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js → ZeniAccountListViewPage-D1I68D9x-Bvus0P_k.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js → ZeniAccountNavBarPieces-2a3O6Mrv-Bn4VbLw2.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C0xo5aaW-D7P5Lhzj.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js → ZeniAccountSetupPage-BfUwEF_n-Bwo0JfQm.js} +1 -1
- package/dist/assets/{ZeniCopyright-DPuPyAW5-BSJS_xPn.js → ZeniCopyright-DPuPyAW5-Bnt6ioyH.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js → ZeniTransferAmountSlider-CPHnjZJx-BGffL5pM.js} +1 -1
- package/dist/assets/{_baseUnset-WRwI4F7w-C17FI5GR.js → _baseUnset-WRwI4F7w-SKv6CaOr.js} +1 -1
- package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-C19sEVMv.js} +1 -1
- package/dist/assets/{analyticsHelper-QM8g-I4_-BsSO6wHs.js → analyticsHelper-QM8g-I4_-D8fsuugi.js} +1 -1
- package/dist/assets/{chartTypes-BADtYh4F-X-tWlUJq.js → chartTypes-BADtYh4F-B1Z_E0y8.js} +1 -1
- package/dist/assets/{commonDimensions-B2oTTz3C-DxkHqcKn.js → commonDimensions-B2oTTz3C-BcwGbjhJ.js} +1 -1
- package/dist/assets/{detailCommon-B2986coM-C1gDOjW1.js → detailCommon-B2986coM-NlrX1KrH.js} +1 -1
- package/dist/assets/{downloadPdf-C0_jxUh_-bREzf3Cq.js → downloadPdf-C0_jxUh_-xl909S0g.js} +1 -1
- package/dist/assets/{flatten-CIVR5K8J-DvOZeE7b.js → flatten-CIVR5K8J-D-QSFstn.js} +1 -1
- package/dist/assets/{groupBy-LtwzERV9-C02NtlDV.js → groupBy-LtwzERV9-DfsHYWjt.js} +1 -1
- package/dist/assets/{index-2CdI-B2B.js → index-OJbFNHch.js} +4 -4
- package/dist/assets/map-CnboTxlt-iF8o7Kja.js +1 -0
- package/dist/assets/{mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js → mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js → mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-BBvkWVpb.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js → mapSpacerToTreeNode-D35gt6vK-Dg4nN-DB.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-CreSrgeo-DJ7qRU6g.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js → mapTimeframeBalancesToTreeNode-Cv8OFsQz-BQTTe1de.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-B-rBOsE2.js} +1 -1
- package/dist/assets/{omit-5LZGrM3q-cCGLyNB9.js → omit-5LZGrM3q-Dkas3Ge8.js} +1 -1
- package/dist/assets/{orderBy-D3W4CDe6-BoPe-dQB.js → orderBy-D3W4CDe6-C2Pj0hxa.js} +1 -1
- package/dist/assets/{remove-ADLCpWJf-CcDvT7jc.js → remove-ADLCpWJf-C_kUyMnr.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C_Swao_b-2UkzUVnC.js → toCOABalancesWithID-C_Swao_b-UbAQtm0o.js} +1 -1
- package/dist/assets/{toChartData-DfujfQ7D-nillWsTs.js → toChartData-DfujfQ7D-DwlIUYBD.js} +1 -1
- package/dist/assets/{uploadAttachment-Wnp0PZFn-CVVetHUv.js → uploadAttachment-Wnp0PZFn-BWKvLRtm.js} +1 -1
- package/dist/assets/{uploadReceipts-BkHrFC8j-DevoCqHx.js → uploadReceipts-BkHrFC8j-BKjYP7lf.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
- package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as x,j as a,bm as $,cH as w,a as S,b as i,R as t,cS as v,d as b,e as f,C as s,S as k,ah as z,s as o}from"./index-
|
|
1
|
+
import{u as x,j as a,bm as $,cH as w,a as S,b as i,R as t,cS as v,d as b,e as f,C as s,S as k,ah as z,s as o}from"./index-OJbFNHch.js";import{n}from"./mui-kiGMfX4-.js";const{common:{navBar:{back:j}}}=S.getLocalizedStrings(),l={navBarContainerPadding:new t(10,o[3]),customTitleMarginBottom:new t(o[0],o[3]),customTitleMarginLeft:new t(o[3],o[6]),customTitleMarginRight:new t(o[5],o[8])},y={formTitle:new b("h6Medium","h5Medium")},G=({header:e,isDirty:d,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const r=x();return a.jsxs(a.Fragment,{children:[r==="small"?a.jsxs(P,{windowSize:r,children:[g?null:a.jsx(u,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),a.jsx(h,{windowSize:r,children:e})]}):a.jsx(C,{children:g?null:a.jsx(w,{title:j,enterDelay:600,placement:"bottom",children:a.jsx(u,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),r!=="small"?a.jsx(h,{windowSize:r,children:e}):null]})},h=n(f)`
|
|
2
2
|
${e=>`${y.formTitle.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.primary};
|
|
4
4
|
margin-bottom: ${e=>l.customTitleMarginBottom.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as xe,u as Ce,a8 as Ye,dt as Qe,j as t,cf as Xe,a as re,A as se,da as Ke,aa as Ze,cH as et,b as i,R as _,ai as tt,ah as U,bJ as nt,t as Me,d as it,a7 as Ae,dF as ot,bB as Y,bs as he,gV as je,dN as at,ca as Ue,gW as ze,gX as ct,gY as Ve,gZ as lt,g_ as st,cP as Ie,s as b,g$ as me,h0 as ge,h1 as Te,bn as fe,d5 as Se,bm as rt,cq as dt,f3 as He,C as Z,af as F,h2 as ut,h3 as pt,h4 as ht,bX as mt,h5 as gt}from"./index-
|
|
1
|
+
import{i as xe,u as Ce,a8 as Ye,dt as Qe,j as t,cf as Xe,a as re,A as se,da as Ke,aa as Ze,cH as et,b as i,R as _,ai as tt,ah as U,bJ as nt,t as Me,d as it,a7 as Ae,dF as ot,bB as Y,bs as he,gV as je,dN as at,ca as Ue,gW as ze,gX as ct,gY as Ve,gZ as lt,g_ as st,cP as Ie,s as b,g$ as me,h0 as ge,h1 as Te,bn as fe,d5 as Se,bm as rt,cq as dt,f3 as He,C as Z,af as F,h2 as ut,h3 as pt,h4 as ht,bX as mt,h5 as gt}from"./index-OJbFNHch.js";import{a as r,d as _e}from"./core-tlHkQPPu.js";import{n}from"./mui-kiGMfX4-.js";import{bM as ft,bN as ee,bO as Le}from"./zeni-epic-state-Bo1aGezX.js";import{o as St}from"./SetUpAccountSection-DQMufunh-CK9nyz6l.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const{settings:{bankConnectionHeader:ae}}=re.getLocalizedStrings().common,V=[{value:ae.productType,width:new _(100,19)},{value:ae.primaryAccount,width:new _(100,36)},{value:ae.linkAccount,width:new _(100,22)},{value:ae.status,width:new _(12,12)},{value:ae.balance,width:new _(12,13)}],{common:{settings:Oe,strings:{hyphen:ye}},commonSetUp:{setUp:Ee}}=re.getLocalizedStrings(),j={containerPadding:new _(b[3],b[4]),containerRightPadding:new _(b[3],b[8]),iconContainerMaxWidthHeight:new _(b[6],b[7]),iconWidthHeight:new _(20,b[4]),iconPadding:new _(b[1],12),productTypeContainerMarginBottom:new _(b[3],b[0]),linkAccountContainerMarginTop:new _(b[3],b[0]),productTypeIconSize:new _(b[3],b[4])},wt=({productType:e,windowSize:h})=>{switch(e){case"bill_pay":return t.jsx(Bt,{windowSize:h,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Rt,{windowSize:h,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Wt,{windowSize:h,children:t.jsx(Ue,{})});case"zeni_treasury":return t.jsx(Nt,{windowSize:h,children:t.jsx(pt,{})});default:return t.jsx(Dt,{windowSize:h,children:t.jsx(ut,{})})}},xt=({allBankAccounts:e,setupView:h,connectedAccountProvider:q,onFetchLinkTokenClick:B,onUpdatePaymentAccountStatus:z,onEstablishConnectionClick:T,onEstablishConnectionSuccess:R})=>{const A=xe(),c=Ce(),m=Ae().analytics,{trigger:S,formState:{errors:W}}=ot(),{plaidConnectionDetails:D,allFundingAccounts:o,primaryFundingAccount:a,productType:s}=h,d=D.link_account,u=D.update_account,[v,M]=r.useState(void 0),[$,w]=r.useState(!1),k=v==="update_account"?u:d,[C,H]=r.useState(k.linkToken??null),[O,P]=r.useState(!1),p=d.fetchStatus.fetchState==="In-Progress"||d.updateStatus.fetchState==="In-Progress";let g,E,l,f=!1;a!=null&&(a.accType==="depositAccount"?g={code:"verified",name:"Verified"}:(g=a.providerVerificationStatus,E=a?.institutionDetails,l=g?.code,f=a?.isLoginRequired??!1));const N=Y(d.updateStatus.fetchState),J=Y(u.updateStatus.fetchState),I=Y(u.fetchStatus.fetchState),G=A.mode==="light"?new he(A.colors.brandColorJadeLight):new he(A.colors.brandColorJadeDark),X=r.useCallback((x,Q)=>{m.trackConnectBankSuccess(s,"Settings");const Pe=Q.accounts.find(Ge=>Ge.id===a?.providerAccountId)??Q.accounts[0];a?.id==null||v!=="update_account"||Pe?.verification_status==null||f?T(x,y(s),s):z(Pe?.verification_status,a.id,"update_account",y(s),s),M(void 0),P(!1)},[m,s,a?.id,a?.providerAccountId,v,f,z,T]),te=r.useCallback((x,Q)=>{x!=null&&(m.trackConnectBankFailure(s,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&a?.id!=null&&z("verification_failed",a.id,"update_account",y(s),s),console.log("Plaid Connection Error",x,Q)),M(void 0),P(!1)},[m,s,a?.id,z]),{open:ne,ready:ie}=je({token:C,onSuccess:X,onExit:te});r.useEffect(()=>{(N==="In-Progress"&&d.updateStatus.fetchState==="Completed"||J==="In-Progress"&&u.updateStatus.fetchState==="Completed")&&(ft(l??"")||(B("link_account",y(s)),R(y(s),s)))},[d.updateStatus.fetchState,R,B,a?.providerVerificationStatus?.code,a?.id,N,J,u.updateStatus.fetchState,l,s]),r.useEffect(()=>{!ee(l??"")&&l!=="verification_failed"||O||v==null||k.linkToken!==C||k.fetchStatus.fetchState!=="Completed"||!ie||P(!0)},[ie,C,k.fetchStatus.fetchState,k.linkToken,l,v,O]);const L=ke("bankConnectionsSettingsPage","primaryAccountSection"),K=at(W,L);r.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==C&&H(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,C]),r.useEffect(()=>{O&&ne()},[O,ne]),r.useEffect(()=>{a?.zeniAccountId||K||S(L)},[a?.id]),r.useEffect(()=>{l!=null&&l!=="verification_failed"&&l!=="verification_expired"&&!ee(l)||!Le(new Date().toISOString()).isAfter(d.expiration)&&d.linkToken!=null||B("link_account",y(s))},[]);const oe=`${a?.accountSubType?.name!=null?a?.accountSubType?.name.substring(0,1).toUpperCase().concat(a?.accountSubType?.name.substring(1)):""} ${a?.maskedAccountNumber??""}`.trim(),de=E?.zeniInstitutionId.toLowerCase()==="chase",qe=o.findIndex(x=>x.id===a?.id),Je={element:t.jsx(Ue,{width:j.iconWidthHeight.valuePx(c)}),color:G};return t.jsxs(yt,{windowSize:c,children:[$===!0?_e.createPortal(t.jsx(ze,{connectedAccountProvider:q,action:{onBackClick:()=>w(!1)}}),document.body):null,t.jsxs(vt,{windowSize:c,wrapperWidth:V[0].width,children:[t.jsx(bt,{windowSize:c,isDarkMode:A.mode==="dark",children:t.jsx(wt,{productType:s,windowSize:c})}),t.jsx(kt,{children:Oe.productNameByType[s]})]}),t.jsx($t,{windowSize:c,wrapperWidth:V[1].width,children:t.jsxs(_t,{windowSize:c,children:[a!=null&&c!=="small"?t.jsx(Tt,{isDisabled:f,children:ct(Je,c,A.mode==="dark",a,qe,!1)}):null,t.jsxs(Pt,{windowSize:c,className:"fundingAccount",children:[t.jsx(Ve,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:A.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:b[4],fontWeight:Ie.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:A.colors.hero,weight:Ie.medium},name:ke(s,"primaryAccountSection"),placeholder:Ee.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Q)=>st(o,x,Q),valueToSubLabels:(x,Q)=>lt(o,x,Q,!1),defaultValue:{selectedOption:a?.id,allOptions:o.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:p?"disabled":void 0,showLoadingIcon:p,onClickCreateOption:()=>{m.trackConnectBank(s,"Settings"),M("link_account"),d.linkToken==null||Le(new Date().toISOString()).isAfter(d.expiration)?B("link_account",y(s)):C!==d.linkToken?H(d.linkToken):O?ne():P(!0)}}),t.jsxs(Ct,{isDisabled:f,children:[oe?t.jsxs(t.Fragment,{children:[t.jsx(At,{children:oe}),c!=="small"&&(l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de)?t.jsx(zt,{}):null]}):null,c==="small"&&g!=null?t.jsx(me,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):null,l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de?t.jsx(Te,{productType:s,isUpdateLinkClicked:v==="update_account",isLoginRequired:f,isPendingVerification:l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:u.fetchStatus,updateStatus:u.updateStatus,linkFetchStatus:d.fetchStatus,linkUpdateStatus:d.updateStatus,prevFetchState:I,prevUpdateState:J},onUpdateLinkTokenClick:()=>{m.trackConnectBankGetBalance(s,"Settings"),M("update_account"),B("update_account",y(s),a?.id)},onChaseInfoClick:()=>{w(!0)}}):null]})]}),c==="small"?t.jsxs(Lt,{children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:Se(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Et,{windowSize:c,isDisabled:f,wrapperWidth:V[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",s),className:"qboLinkAcc",children:[c==="small"?t.jsx(jt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Ft,{isDisabled:f?"disabled":void 0,name:ke(s,"bankAccountSection"),placeholder:Ee.zeniCashAccountPlaceholder,defaultValue:{selectedOption:a?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Ot,{windowSize:c,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:g.name,textColor:ge(g.code)}):t.jsx(ve,{children:ye})}):null,c!=="small"?t.jsxs(It,{windowSize:c,wrapperWidth:V[4].width,children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:Se(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},yt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
package/dist/assets/{BillDetailPage-CQ8iqo9y-D1hvEdQD.js → BillDetailPage-CQ8iqo9y-Tp3WmchS.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as An,a$ as Sn,i as $n,hC as kn,hD as Cn,hE as Pn,hF as Bn,d4 as Rn,bB as Mn,a as zn,R as u,j as t,gt as st,gu as Nn,b as a,gv as Ln,gw as Fn,bm as b,gx as En,bn as Se,gy as On,cf as ct,c1 as dt,eR as pt,dc as mt,dd as ut,de as yt,hG as Wn,hH as _n,hI as Kn,hJ as Zn,gD as j,gE as A,gF as S,hK as $,gC as Un,t as ht,C as ie,gG as Nt,gH as Vn,hL as Gn,gI as Hn,gJ as Xn,hM as Yn,hN as Jn,bC as qn,ak as bt,cH as Te,gK as gt,hO as Qn,hP as N,s as r,ag as ea,cS as ta,hQ as na,f as aa,hR as ia,hS as xt,d as la,dT as oa,d6 as ra,bH as sa,bJ as ca,L as da,cJ as Lt,af as Ft,bw as pa,bE as ma,c6 as ua,g3 as ya,ah as ha}from"./index-2CdI-B2B.js";import{a as p}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{a as ba}from"./liveblocks-BrzOBACZ.js";import{bS as ga,bO as xa,bT as fa,fI as wa,bQ as Ta,bK as va,bj as Da}from"./zeni-epic-state-Bo1aGezX.js";import{k as Ia,D as ja}from"./LowBalancePopup-CEiTKqxT-F00svkBR.js";import"./sentry-Dhk5jNhq.js";import"./analytics-CeQu-r45.js";import"./utils-BLUF9kAp.js";const Aa={formTitle:new la("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:Sa,common:{noText:k,strings:{empty:c},currency:ft,via:$a,more:ka,edit:Ca},spendManagement:{billPay:{billDetails:n,billsByTabs:$e,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Pa}}}}=zn.getLocalizedStrings(),ve=Sa.visual.MMMDCommaYYYYformat,wi=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Ce,isZeniUser:Zt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Vt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:Re,approveOrRejectBill:Me,onAddNewRule:Ht,onAttachmentClick:ze,saveBillDetails:Xt,discardOutsideZeniPaymentData:Yt,onBackClick:Ne,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:en})=>{const l=An(),o=Sn(),Le=$n(),[tn,U]=p.useState(!1),[Fe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Ee,ce]=p.useState(!1),[nn,de]=p.useState(!1),[Oe,J]=p.useState(!1),h=e.transactionDetails?.id,an=Zt?kn:Cn,{requestToOpenThread:pe,setRequestToOpenThread:We,setOpenThread:q}=p.useContext(an),[ln,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:C}=Pn(T,"both",!1),f=Ce&&h!=null,_e=p.useMemo(()=>h==null?[]:G.filter(d=>d.resolved===!1&&!d.id.includes(Bn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((d,y)=>{q(y),V(!1)},[q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!C&&(q(pe.threadId),We(null))},[pe,G,C,q,We]),Rn({componentName:"bill.details"});const[z,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ze]=p.useState("approved"),[rn,Ue]=p.useState(!1),[sn,Ve]=p.useState(!1),[Ge,He]=p.useState(!1),Xe=()=>Ue(!1),Ye=Mn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{e.deleteStatus.fetchState!=="Completed"&&e.approvalUpdateStatus.fetchState!=="Completed"&&e.cancelAndDeleteStatus.fetchState!=="Completed"&&e.billSaveStatus!=="Completed"||(Be(),Y())},[e,Y,Be]),p.useEffect(()=>{Ye!=="In-Progress"||e.zeniAssist?.refundStatus.fetchState!=="Completed"&&e.zeniAssist?.refundStatus.fetchState!=="Error"||(se(!1),ee())},[Ye,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,L=Ba(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code==null||te?.code!="approved"&&H.code!=="mark_as_paid"?te:H,ue=e.transactionDetails?.vendor?.name,P=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Vt(e.transactionDetails?.id??"")},dn={onOkClick:()=>{U(!1),z.primaryButtonText===n.delete?Gt?.(e.isRecurring):z.title===n.cancelBillTitle?Re?.(e.isRecurring):z.title===n.cancelAndDeleteBillTitle||z.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):z.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{U(!1),se(!1)}},pn={onOkClick:d=>{de(!1),Me({billId:e.transactionDetails?.id??"",type:"rejected",description:d})},onCancelClick:()=>{de(!1)}},mn=()=>{const[d]=pa("ZeniAssist");return d!=null?t.jsx(ma,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Ee),M.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:d,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},ye=e.transactionDetails?.lines?.map((d,y)=>{const B=d;return{lineIndex:y,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],un=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),yn=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):"",hn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${yn}`,bn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ri,{windowSize:l,children:t.jsx(oi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),ae=e.transactionDetails?.billPayInfo!=null?ga(e.transactionDetails?.billPayInfo):void 0,gn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?xa(fa(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??gn,et=st(s?.paymentType?.method??"").replace("Same Day",""),xn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Nn,{paymentTypeLabel:et,onClick:()=>Ue(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,tt=e.transactionDetails?.lines?.some(d=>{const y=d.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(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,xe=e.zeniAssist?.isEligibleForRefund===!0,fn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",wn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||xe)&&fn===!1,fe=ge||xe,Tn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,O=D?.code,vn=!Tn&&(!qe||D?.code==="processing"&&!P),at=!qe,it=["small","medium-compact","medium-regular"].includes(l),X=wa(e.transactionDetails?.bulkProcessingDetail?.type),E=Ta(e.paymentMethodType?.method),Dn=!X&&(O!=="processing"&&nt||O==="processing"&&!P||O==="processing"&&at||g&&E&&ke),lt=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},In=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Ln(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ze("approved"),Oe===!0&&J(!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"),Me({billId:e.transactionDetails?.id??"",type:"approved"})},rt=p.useRef(null);return t.jsxs(Va,{windowSize:l,ref:rt,children:[t.jsx(Fn,{anchor:"right",open:rn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(En,{companyName:On(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Se("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(Ya,{windowSize:l,children:[t.jsx(di,{windowSize:l,children:l==="small"?t.jsx(ct,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:d=>{d.preventDefault(),d.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:C?void 0:_e,isLoading:C,style:{left:"12px"}}),t.jsx(zt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(St,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Pe?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(ct,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:d=>{d.preventDefault(),d.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:C?void 0:_e,isLoading:C,style:{left:"12px"}}),t.jsx(zt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(St,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Pe?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(Ja,{windowSize:l,children:[Oe?t.jsx(Ia,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{J(!1),Je()},onClickAway:()=>{J(!1)}}):null,sn?t.jsx(ja,{onCancel:()=>{Yt(),Ve(!1),Ge&&He(!1)},onProceedForMarkAsPaid:d=>{M.trackBillPayMarkAsPaidSubmit(d.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ge,d)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,tn||re?t.jsx(mt,{titleComponent:t.jsx(yt,{children:z.title}),descriptionComponent:t.jsx(ut,{children:z.description}),primaryButtonText:z.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:z.secondaryButtonText,action:dn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Ra(l,e):null}):null,nn?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:pn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(Qa,{windowSize:l,children:[l!=="small"?t.jsxs(ei,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ae,{height:a.sp5,width:a.sp5}):null]}):null,K&&L!=null&&L.code==="deleted"||L?.value===$e.tabsById.overdue?t.jsx(ii,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Wn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(_n,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Na(X,e,W),t.jsx(Kn,{sectionId:Zn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(Ie,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ne.invoiceNumber??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ne.invoiceDate?.format(ve)??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ne.billDueDate?.format(ve)??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ne.memo??k,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{children:[t.jsx(qa,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((d,y)=>{const B=e?.transactionDetails?.lines?.find(jn=>jn.id===d.lineId)?.recipientAmount;return t.jsxs(Ga,{children:[ye.length>1?t.jsx(Ha,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",y)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",y)}`},children:t.jsx($,{label:{label:n.description,width:I},text:d.lineDescription??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",y)}`},children:t.jsx($,{label:{label:n.category,width:I},text:d.account?.accountName??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",y)}`},children:t.jsx($,{label:{label:n.class,width:I},text:d.class?.className??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",y)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:d.billable!=null?(we=d.billable,we==="billable"||we==="has_been_billed"?n.yes:n.no):k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",y)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:d.customer?.name??k,style:{width:"auto"}})})]})]},y);var we}):null]}),t.jsxs(ti,{windowSize:l,children:[t.jsx(ni,{children:n.total}),t.jsx(ai,{children:he!=null?t.jsx(Un,{amount:he,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):k})]}),t.jsxs(Ie,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Nt(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(va)&&_t&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Fa,{children:Vn(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:E&&e.outsideZeniPaymentInfo!=null?za(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:s.paymentToBankAccount!=null?hn:s.paymentToPI!=null?s.paymentToPI.displayText:bn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{u as An,a$ as Sn,i as $n,hC as kn,hD as Cn,hE as Pn,hF as Bn,d4 as Rn,bB as Mn,a as zn,R as u,j as t,gt as st,gu as Nn,b as a,gv as Ln,gw as Fn,bm as b,gx as En,bn as Se,gy as On,cf as ct,c1 as dt,eR as pt,dc as mt,dd as ut,de as yt,hG as Wn,hH as _n,hI as Kn,hJ as Zn,gD as j,gE as A,gF as S,hK as $,gC as Un,t as ht,C as ie,gG as Nt,gH as Vn,hL as Gn,gI as Hn,gJ as Xn,hM as Yn,hN as Jn,bC as qn,ak as bt,cH as Te,gK as gt,hO as Qn,hP as N,s as r,ag as ea,cS as ta,hQ as na,f as aa,hR as ia,hS as xt,d as la,dT as oa,d6 as ra,bH as sa,bJ as ca,L as da,cJ as Lt,af as Ft,bw as pa,bE as ma,c6 as ua,g3 as ya,ah as ha}from"./index-OJbFNHch.js";import{a as p}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{a as ba}from"./liveblocks-BrzOBACZ.js";import{bS as ga,bO as xa,bT as fa,fI as wa,bQ as Ta,bK as va,bj as Da}from"./zeni-epic-state-Bo1aGezX.js";import{k as Ia,D as ja}from"./LowBalancePopup-CEiTKqxT-DJVUP8TV.js";import"./sentry-Dhk5jNhq.js";import"./analytics-CeQu-r45.js";import"./utils-BLUF9kAp.js";const Aa={formTitle:new la("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:Sa,common:{noText:k,strings:{empty:c},currency:ft,via:$a,more:ka,edit:Ca},spendManagement:{billPay:{billDetails:n,billsByTabs:$e,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Pa}}}}=zn.getLocalizedStrings(),ve=Sa.visual.MMMDCommaYYYYformat,wi=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Ce,isZeniUser:Zt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Vt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:Re,approveOrRejectBill:Me,onAddNewRule:Ht,onAttachmentClick:ze,saveBillDetails:Xt,discardOutsideZeniPaymentData:Yt,onBackClick:Ne,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:en})=>{const l=An(),o=Sn(),Le=$n(),[tn,U]=p.useState(!1),[Fe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Ee,ce]=p.useState(!1),[nn,de]=p.useState(!1),[Oe,J]=p.useState(!1),h=e.transactionDetails?.id,an=Zt?kn:Cn,{requestToOpenThread:pe,setRequestToOpenThread:We,setOpenThread:q}=p.useContext(an),[ln,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:C}=Pn(T,"both",!1),f=Ce&&h!=null,_e=p.useMemo(()=>h==null?[]:G.filter(d=>d.resolved===!1&&!d.id.includes(Bn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((d,y)=>{q(y),V(!1)},[q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!C&&(q(pe.threadId),We(null))},[pe,G,C,q,We]),Rn({componentName:"bill.details"});const[z,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ze]=p.useState("approved"),[rn,Ue]=p.useState(!1),[sn,Ve]=p.useState(!1),[Ge,He]=p.useState(!1),Xe=()=>Ue(!1),Ye=Mn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{e.deleteStatus.fetchState!=="Completed"&&e.approvalUpdateStatus.fetchState!=="Completed"&&e.cancelAndDeleteStatus.fetchState!=="Completed"&&e.billSaveStatus!=="Completed"||(Be(),Y())},[e,Y,Be]),p.useEffect(()=>{Ye!=="In-Progress"||e.zeniAssist?.refundStatus.fetchState!=="Completed"&&e.zeniAssist?.refundStatus.fetchState!=="Error"||(se(!1),ee())},[Ye,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,L=Ba(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code==null||te?.code!="approved"&&H.code!=="mark_as_paid"?te:H,ue=e.transactionDetails?.vendor?.name,P=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Vt(e.transactionDetails?.id??"")},dn={onOkClick:()=>{U(!1),z.primaryButtonText===n.delete?Gt?.(e.isRecurring):z.title===n.cancelBillTitle?Re?.(e.isRecurring):z.title===n.cancelAndDeleteBillTitle||z.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):z.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{U(!1),se(!1)}},pn={onOkClick:d=>{de(!1),Me({billId:e.transactionDetails?.id??"",type:"rejected",description:d})},onCancelClick:()=>{de(!1)}},mn=()=>{const[d]=pa("ZeniAssist");return d!=null?t.jsx(ma,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Ee),M.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:d,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},ye=e.transactionDetails?.lines?.map((d,y)=>{const B=d;return{lineIndex:y,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],un=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),yn=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):"",hn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${yn}`,bn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ri,{windowSize:l,children:t.jsx(oi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),ae=e.transactionDetails?.billPayInfo!=null?ga(e.transactionDetails?.billPayInfo):void 0,gn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?xa(fa(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??gn,et=st(s?.paymentType?.method??"").replace("Same Day",""),xn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Nn,{paymentTypeLabel:et,onClick:()=>Ue(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,tt=e.transactionDetails?.lines?.some(d=>{const y=d.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(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,xe=e.zeniAssist?.isEligibleForRefund===!0,fn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",wn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||xe)&&fn===!1,fe=ge||xe,Tn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,O=D?.code,vn=!Tn&&(!qe||D?.code==="processing"&&!P),at=!qe,it=["small","medium-compact","medium-regular"].includes(l),X=wa(e.transactionDetails?.bulkProcessingDetail?.type),E=Ta(e.paymentMethodType?.method),Dn=!X&&(O!=="processing"&&nt||O==="processing"&&!P||O==="processing"&&at||g&&E&&ke),lt=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},In=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Ln(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ze("approved"),Oe===!0&&J(!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"),Me({billId:e.transactionDetails?.id??"",type:"approved"})},rt=p.useRef(null);return t.jsxs(Va,{windowSize:l,ref:rt,children:[t.jsx(Fn,{anchor:"right",open:rn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(En,{companyName:On(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Se("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(Ya,{windowSize:l,children:[t.jsx(di,{windowSize:l,children:l==="small"?t.jsx(ct,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:d=>{d.preventDefault(),d.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:C?void 0:_e,isLoading:C,style:{left:"12px"}}),t.jsx(zt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(St,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Pe?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(ct,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:d=>{d.preventDefault(),d.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:C?void 0:_e,isLoading:C,style:{left:"12px"}}),t.jsx(zt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(St,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Pe?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(Ja,{windowSize:l,children:[Oe?t.jsx(Ia,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{J(!1),Je()},onClickAway:()=>{J(!1)}}):null,sn?t.jsx(ja,{onCancel:()=>{Yt(),Ve(!1),Ge&&He(!1)},onProceedForMarkAsPaid:d=>{M.trackBillPayMarkAsPaidSubmit(d.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ge,d)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,tn||re?t.jsx(mt,{titleComponent:t.jsx(yt,{children:z.title}),descriptionComponent:t.jsx(ut,{children:z.description}),primaryButtonText:z.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:z.secondaryButtonText,action:dn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Ra(l,e):null}):null,nn?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:pn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(Qa,{windowSize:l,children:[l!=="small"?t.jsxs(ei,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ae,{height:a.sp5,width:a.sp5}):null]}):null,K&&L!=null&&L.code==="deleted"||L?.value===$e.tabsById.overdue?t.jsx(ii,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Wn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(_n,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Na(X,e,W),t.jsx(Kn,{sectionId:Zn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(Ie,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ne.invoiceNumber??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ne.invoiceDate?.format(ve)??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ne.billDueDate?.format(ve)??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ne.memo??k,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{children:[t.jsx(qa,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((d,y)=>{const B=e?.transactionDetails?.lines?.find(jn=>jn.id===d.lineId)?.recipientAmount;return t.jsxs(Ga,{children:[ye.length>1?t.jsx(Ha,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",y)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",y)}`},children:t.jsx($,{label:{label:n.description,width:I},text:d.lineDescription??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",y)}`},children:t.jsx($,{label:{label:n.category,width:I},text:d.account?.accountName??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",y)}`},children:t.jsx($,{label:{label:n.class,width:I},text:d.class?.className??k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",y)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:d.billable!=null?(we=d.billable,we==="billable"||we==="has_been_billed"?n.yes:n.no):k,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",y)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:d.customer?.name??k,style:{width:"auto"}})})]})]},y);var we}):null]}),t.jsxs(ti,{windowSize:l,children:[t.jsx(ni,{children:n.total}),t.jsx(ai,{children:he!=null?t.jsx(Un,{amount:he,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):k})]}),t.jsxs(Ie,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Nt(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(va)&&_t&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Fa,{children:Vn(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:E&&e.outsideZeniPaymentInfo!=null?za(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:s.paymentToBankAccount!=null?hn:s.paymentToPI!=null?s.paymentToPI.displayText:bn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,additionalInfoLabel:t.jsx(La,{children:xn})}),s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Gn,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:S({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Xn(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Hn(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(si,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(Yn,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(Jn,{amount:un,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(li,{})]}),e.transactionDetails?.vendor==null||me||e.transactionDetails.isDeleted?null:t.jsx(qn,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:Z||g,showCancel:!Z&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ze("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"),de(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ma(Z,it),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Z?lt:()=>{W!=null?J(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:Z?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ea,{children:t.jsxs(Ua,{windowSize:l,children:[!X&&Fe?t.jsx(bt,{onClickAway:()=>{oe(!1),ce(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[O!=="processing"&&nt?t.jsx(_,{onClick:()=>{Q({title:P?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:P?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,O!=="processing"||P?null:t.jsx(_,{onClick:()=>{Q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}),O==="processing"&&at?t.jsx(_,{onClick:()=>{Q({title:P?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:P?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&E&&ke?t.jsx(_,{onClick:()=>{He(!0),lt()},"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Ee?t.jsx(bt,{onClickAway:()=>{oe(!1),ce(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(_,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,xe?t.jsx(_,{onClick:()=>{M.trackRefundClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Za,{windowSize:l,children:[wn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(mn,{}):t.jsx(Wa,{})})}):null,X||be!==!0?null:t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ca,placement:"top",children:t.jsx(Ka,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(_a,{})})}),!X&&vn===!0&&Dn?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ka,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Oa,{onClick:()=>oe(!Fe)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ba,{id:v,children:t.jsx(Qn,{isDrawerOpen:ln,allowComposer:!0,drawerTitle:Pa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:In,onThreadClick:on,onCloseAllThreadsDrawer:()=>V(!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]})},Ba=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:$e.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(Da(),"date")===!0?{value:$e.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[g].color,bgColor:N[g].bgColor,borderColor:N[g].borderColor}},Ra=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(ci,{windowSize:e,children:[t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Nt(x.withdrawFrom,e):c})]}),t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?Se("0,0[.]00",g):k})]})]})},Ma=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,za=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===x)?.label;return`${g} ${$a} ${K}`},Na=(e,x,g)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}return null},La=i.div``,Fa=i.div``,Ea=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as q,s as R,u as O,a as D,a8 as W,bB as M,j as o,bj as G,dt as X,cf as H,aa as K,bC as J,b as d}from"./index-
|
|
1
|
+
import{R as q,s as R,u as O,a as D,a8 as W,bB as M,j as o,bj as G,dt as X,cf as H,aa as K,bC as J,b as d}from"./index-OJbFNHch.js";import{a as L}from"./core-tlHkQPPu.js";import{n as h}from"./mui-kiGMfX4-.js";import{K as Q,D as Y,u as U,h as $}from"./FollowStepsSection-Dhf67oqf-C9-DQpEq.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const j="billPayApprovalRuleDetailPage",N="lowerBound",T="upperBound",y="steps",Z={footerPadding:new q(R[2],R[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:k,onSaveRuleSuccess:A}){const P=O(),l=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=W({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=M(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let m=p.length>1?p.length-1:0,g=p.length>0?p[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=p.findIndex(f=>f.approvalRuleId===i),g=m>0?p[m-1].criteria[0].range.min.amount:0}const _=v.handleSubmit(()=>{k()});return L.useEffect(()=>{const i=v.watch((f,{name:F})=>{if(F!=null&&f!=null){const z=G(f);X(()=>(async(ne,V)=>{r(V)})(0,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(H,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(K,{...v,children:o.jsx("form",{id:C(j),onSubmit:_,children:o.jsxs(oe,{children:[o.jsx(Q,{label:{label:S?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:N,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:g,validate:i=>!!n||i!=null&&i>g},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Y,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:C(j),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:Z.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),U(e.allAttributes),U(e.filteredAttributes),r??[])??[],[N]:t?void 0:a!=null?a.range.min.amount??0:0,[T]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,t,a,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:$},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),C=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{u as I,a as y,j as t,cf as M,A as N,bm as S,R as r,ah as B,bn as j,dc as E,dd as U,de as H,b as i,dP as G,s as l,bJ as q,d as z,bI as V,C as b,dM as _,c6 as F,t as J}from"./index-
|
|
1
|
+
import{u as I,a as y,j as t,cf as M,A as N,bm as S,R as r,ah as B,bn as j,dc as E,dd as U,de as H,b as i,dP as G,s as l,bJ as q,d as z,bI as V,C as b,dM as _,c6 as F,t as J}from"./index-OJbFNHch.js";import{n as o}from"./mui-kiGMfX4-.js";import{a as O}from"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.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:v=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:$})=>{const[m,x]=O.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:v,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(le,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Y,{children:[t.jsx(P,{}),t.jsx(Z,{}),t.jsx(P,{})]}),h.max==null?t.jsx(pe,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(se,{className:"icons",children:[e&&t.jsx(ae,{onClick:()=>{x(!0)},"data-testid":S("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(ne,{onClick:()=>{f(w)},"data-testid":S("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(ee,{windowSize:n,children:t.jsx(te,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,W)=>t.jsxs(oe,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(ie,{children:a.requireText}):t.jsx(re,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>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}_${D}`)),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))]},W))})}),m?t.jsx(E,{titleComponent:t.jsx(H,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Q=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js → BillPayPromoPage-CIUhDNjJ-Cwqxzge6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a$ as X,u as f,bB as Y,a as T,j as e,gO as _,cf as ee,B,bm as C,ac as m,b as l,as as ie,H as le,i as M,bq as U,ai as se,R as oe,C as S,ds as re,br as te,bM as ae,s as ne}from"./index-
|
|
1
|
+
import{a$ as X,u as f,bB as Y,a as T,j as e,gO as _,cf as ee,B,bm as C,ac as m,b as l,as as ie,H as le,i as M,bq as U,ai as se,R as oe,C as S,ds as re,br as te,bM as ae,s as ne}from"./index-OJbFNHch.js";import{a as g}from"./core-tlHkQPPu.js";import{n as s}from"./mui-kiGMfX4-.js";import{fx as de,bW as ce,fy as pe}from"./zeni-epic-state-Bo1aGezX.js";import{w as me}from"./VideoPopup-CPW65Ljn-DMNmv8U3.js";import{V as $}from"./usp-line-4JsxsMjK-mCxwNowe.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./VideoPlayer-DVIeTdLq-C7AoMVy0.js";const L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",R="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new oe(ne[5],44)},he=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CrfwREgO-oxkPqY3f.js → BillPaySetUpPage-CrfwREgO-CJ9_P2PZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as $e,u as Oe,bB as j,a8 as Ue,dt as _e,a as ze,bs as Y,j as t,gw as He,bm as Le,C as qe,R as u,cf as Me,A as Ne,aa as Ge,gP as U,f6 as Je,gQ as Qe,ca as Xe,eX as Ke,cH as Ze,gR as Ye,bC as et,b as z,gS as tt,s as o,ah as it,cq as nt}from"./index-
|
|
1
|
+
import{i as $e,u as Oe,bB as j,a8 as Ue,dt as _e,a as ze,bs as Y,j as t,gw as He,bm as Le,C as qe,R as u,cf as Me,A as Ne,aa as Ge,gP as U,f6 as Je,gQ as Qe,ca as Xe,eX as Ke,cH as Ze,gR as Ye,bC as et,b as z,gS as tt,s as o,ah as it,cq as nt}from"./index-OJbFNHch.js";import{a as f}from"./core-tlHkQPPu.js";import{n as m}from"./mui-kiGMfX4-.js";import{bM as ot}from"./zeni-epic-state-Bo1aGezX.js";import{v as at}from"./UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",vt=({billPaySetupView:e,isDisabled:x,billpayApprovalView:E,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:S,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:re,onSetupApprovalRulesSectionClick:de,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:he,onUpdatePrimaryFundingAccount:ge,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:Se,onEnableBillPayClick:ye,onEnableBillPaySuccess:H,onClickMenuIcon:be,onInternationPaymentSetUpClick:Pe,onEditFileName:xe,onDeleteFile:ve,updateFilesEntity:we,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:Ae,onSignUpClick:ke})=>{const w=$e(),i=Oe(),[C,y]=f.useState(!1),L=f.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:Te,plaidConnectionDetails:V,allBankAccounts:Be,companyBillPayInfo:A,isRefreshingViewInBackground:Ie,selectedCompanyOfficer:l,primaryFundingAccount:r,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,k=h==null||h.code==="onboarding_status_not_started",{fetchState:M,allApprovalRules:T,approvalRulesStatus:je}=E,W=V.link_account.updateStatus,D=V.update_account.updateStatus,B=j(p),N=j(b.fetchState),G=j(W.fetchState),J=j(D.fetchState),P=Ue({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>_(e),[e]),values:_(e)});f.useEffect(()=>{C||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"||y(!0),C&&B==="In-Progress"&&p==="Completed"&&y(!1)},[l,p,B]),f.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||G==="In-Progress"&&W.fetchState==="Completed"||J==="In-Progress"&&D.fetchState==="Completed")&&P.reset(_(e))},[B,p,P,e,G,W.fetchState,J,D.fetchState]);const Fe=P.handleSubmit(Q=>{S.trackEnableBillPay(),ye()});f.useEffect(()=>{const Q=P.watch((X,{name:K})=>{K!=null&&X!=null&&_e(()=>(async(Z,Re)=>{const c=Re[F];if(Z.includes(F)){if(Z.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&r?.id!=c.fundingAccount.selectedOption){const g=q.find(O=>O.id===c.fundingAccount.selectedOption);g!=null&&ge(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(O=>O.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&S.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(c.account.selectedOption,r.id,r.accType)}}})(K,X))});return()=>{Q.unsubscribe()}}),f.useEffect(()=>{N==="In-Progress"&&b.fetchState==="Completed"&&H()},[H,N,b.fetchState]);const{commonSetUp:Ee,spendManagement:Ve}=ze.getLocalizedStrings(),{setUp:d}=Ee,{billPaySetup:a}=Ve.billPay,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||ot(r?.providerVerificationStatus?.code??"")),$=A?.isBillPayEnabled===!0,We=R?d.setupVerifiedSubTitle:a.setupSubTitle,De=p==="In-Progress"||p==="Not-Started"||M==="In-Progress"||M==="Not-Started",I=w.mode==="light"?new Y(w.colors.brandColorJadeLight):new Y(w.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:C,onClose:()=>y(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:b,onEditFileName:xe,onDeleteFile:ve,updateFilesEntity:we,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:Ae})}),t.jsx(Me,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!$&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:L,backgroundColor:w.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(rt,{windowSize:i,children:We}),De?t.jsx(ut,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Fe,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(U,{onClick:()=>{C||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?re?.():y(!0)},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:Ie,isActiveWhileLoading:!0}),t.jsx(Qe,{connectedAccountProvider:ie,primaryFundingAccount:r,allFundingAccounts:q,plaidConnectionDetails:V,allBankAccounts:Be,sectionId:F,isDisabled:x,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:Se,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:S,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:ke,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(U,{title:T.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:a.approvalSubTitle,header:T.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:de,status:T.length>0?je:void 0})]})})}),s===!0?t.jsx(U,{title:k?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.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:()=>{k&&S.trackEnableIntlWire(oe),Pe?.()},status:k?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:k}):null]})]}),R&&!$&&T.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:R&&!$,meetingUrl:v,analytics:S,productType:"bill_pay"})]})},lt=m.div``,ct=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as xe,u as be,a8 as Pe,dt as Ae,gi as ve,a as Ie,gj as je,bs as $,j as t,R as x,cf as $e,A as ke,aa as Be,ca as Te,du as Ve,bC as ze,b as a,j5 as Ee,s as b,ah as De,ib as Le,d as Oe,C as Re}from"./index-
|
|
1
|
+
import{i as xe,u as be,a8 as Pe,dt as Ae,gi as ve,a as Ie,gj as je,bs as $,j as t,R as x,cf as $e,A as ke,aa as Be,ca as Te,du as Ve,bC as ze,b as a,j5 as Ee,s as b,ah as De,ib as Le,d as Oe,C as Re}from"./index-OJbFNHch.js";import{a as H}from"./core-tlHkQPPu.js";import{n as r}from"./mui-kiGMfX4-.js";import{T as Fe,_ as U,A as Me}from"./PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js";import{n as We}from"./SetUpAccountSection-DQMufunh-CK9nyz6l.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const u={titleWidth:new x(343,580,726,826),setupDetailsRowGap:new x(12,b[5],b[5]),iconWidthHeight:new x(20,b[4]),subTitlePaddingTop:new x(12,b[3])},_e={title:new Oe("standardSemiBold","largeSemiBold")},N="billingSetupPage",P="payAccountSectionId",n="subscriptionBillingAddressSectionId",dt=({analytics:e,billingSetupView:o,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:G,stripeKey:J,googleAPIKey:Z,companyId:Q,onUpdateAccountClick:Y,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:k,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=xe(),i=be(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:B},cardPaymentView:p}=o,me=o.subscriptionBillingAddress,T=h?.providerVerificationStatus,he=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",g=Pe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:K(o),values:K(o),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(M=>{le(Q)}),V=o.subscriptionBillingAddressSaveStatus;H.useEffect(()=>{const M=g.watch((W,{name:_})=>{_!=null&&W!=null&&Ae(()=>(async(C,s)=>{const v=s[P];if(C.includes(n)&&s[n]!=null){const I=g.getValues(`${n}`).country;let c=s[n];if(C.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},I.selectedOption!==j.selectedOption&&(c={...c,country:j})}else C===`${n}.country`&&I.selectedOption!=null&&(c={...c,countryCode:je(I.selectedOption)});c!=null&&ce(c)}else C.includes(P)&&v.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==v.account.selectedOption&&Y(v.account.selectedOption,h.paymentAccountId)})(_,W))});return()=>{M.unsubscribe()}});const z=f.mode==="light"?new $(f.colors.brandColorJadeLight):new $(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ie.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,D=p.cardsList.length>0,L=p?.cardsList[0]?.brand??"other",O=p?.addCardPaymentSourceStatus.fetchState,w=Fe(y.header,y.titleText,y.protectedCardNo,p);let R;D&&(R={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:D===!0,icon:{element:t.jsx("img",{src:U(L).iconURL,width:u.iconWidthHeight.valuePx(i),height:u.iconWidthHeight.valuePx(i),alt:U(L).name}),color:new $(z)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,Ce]=H.useState(!1);return t.jsxs(Ue,{children:[t.jsx($e,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:A}),t.jsxs(He,{windowSize:i,children:[t.jsx(Ne,{windowSize:i,children:Se}),he?t.jsx(Ke,{children:t.jsx(ke,{size:"ExtraLarge",start:!0})}):t.jsx(Be,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:q(N),onSubmit:ge,children:t.jsxs(qe,{windowSize:i,children:[t.jsx(We,{connectedAccountProvider:m,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:P,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:T?.code==="require_info"||T?.code==="failed",icon:{element:t.jsx(Te,{width:u.iconWidthHeight.valuePx(i),height:u.iconWidthHeight.valuePx(i)}),color:z},analytics:e,productType:"billing",updateCardPaymentModalState:k,cardPaymentSectionValues:R,cardPaymentView:p,resetCardPaymentViewState:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ge(i,l.headers.billingAddress,me,Z,d)]})})})}),Ve(g.formState.dirtyFields)?t.jsx(ze,{formId:q(N),style:{width:i==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:k,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:p,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:J,cardSetupInProgress:F,setCardSetupInProgress:Ce})]})},K=e=>{const{paymentAccount:o,allBankAccounts:m}=e.setupView;return{[P]:{account:{selectedOption:o?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ee(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,j as b,dc as q,dd as z,de as M,b2 as W,bv as G,lr as H}from"./index-
|
|
1
|
+
import{a as V,j as b,dc as q,dd as z,de as M,b2 as W,bv as G,lr as H}from"./index-OJbFNHch.js";import{a as g}from"./core-tlHkQPPu.js";import{gb as J}from"./zeni-epic-state-Bo1aGezX.js";import{S as K}from"./ReviewOverlay-De5_nrll-UZnD0Wrb.js";import"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";var I,j;const Q=W(function(){if(j)return I;j=1;var r=H();return I=function(e){return e&&e.length?r(e):[]}}()),{common:a,spendManagement:{billPay:x}}=V.getLocalizedStrings(),o=x.bulkActions;let C;const pe=({billsReviewView:r,analytics:e,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:s,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=r,u=i==="review",[P,w]=g.useState(!1),[n,v]=g.useState(E(r,u)),[d,k]=g.useState(u),[B,R]=g.useState(0),[h,$]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(C=setInterval(()=>{v(p=>p.map((S,O)=>(clearInterval(C),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),R(p=>p+1)},1e3)),B===n.length&&d&&(k(!1),clearInterval(C)),u||r.fetchState!=="Completed"||v(E(r,!1)),()=>{clearInterval(C)}),[n.length,B,d,r.fetchState,u,r]);const F=n.length,y=n.filter(p=>p.reviewStatus.code!=="error").length,U={onOkClick:p=>{w(!1),e.trackBillPayBulkPopupConfirm(i,_,f,X(r)),l("reject",p)},onCancelClick:()=>{w(!1)}},{title:A,description:N}=Z(m,y,F,d),T=r.fetchState==="Completed"&&y===0,D={label:T?a.texts.close:i==="send_for_approval"?a.footer.submit:a.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&s==="In-Progress",isLoading:s==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:T?c:()=>{e.trackBillPayBulkSubmit(i,_,f),l(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:i!=="reject"&&s==="In-Progress",isLoading:i==="reject"&&s==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=Y(y);$({type:"reject",title:p,description:S,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),e.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[P?b.jsx(q,{titleComponent:b.jsx(M,{children:h.title}),descriptionComponent:b.jsx(z,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:A,description:{content:N,isError:r.fetchState==="Completed"&&y===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:r.fetchState==="Completed"&&!d,footerProps:{primaryButton:D,cancelButton:L,hideCancel:T}})]})},E=(r,e)=>{const l=r.fetchState==="In-Progress";return r.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:a.strings.hyphen}`},rightSideText:{title:G("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:ee(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!e||l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=r=>{const e=r.billsForReview;let l=[];return e.forEach(t=>{l=Q([...l,t.isRecurring?"recurring":"one-time"])}),l},Y=r=>{const{this_:e,these:l,bill:t,bills:c,payment:m,payments:s}=a.texts;return r>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",e).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},Z=(r,e,l,t)=>{const{has:c,have:m,bill:s,bills:i,are:_,is:f,do_:u,does:P}=a.texts,w=e>1,n=l>1;let v="",d="";return r!=="Completed"||t?(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:s),d=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:s)):(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),d=e===0?o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:s).replace("<_do_>",n?u:P):`${e}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:s).replace("<_is_>",w?_:f)}`),{title:v,description:d}},ee=(r,e)=>{if(e?.length!=null){if(e.length>1)return e.join(` ${a.strings.dividerDot} `);if(e.length===1)return r?e[0]+`${a.strings.colon} ${o.reviewPage.removeOrProceed}`:e[0]}return""};export{pe as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as s,bm as b,b as r}from"./index-
|
|
1
|
+
import{u as h,j as s,bm as b,b as r}from"./index-OJbFNHch.js";import{n as p}from"./mui-kiGMfX4-.js";import{e as l}from"./commonDimensions-B2oTTz3C-BcwGbjhJ.js";const f=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function $({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{i as rt,u as lt,bB as Ie,j as t,a as Le,ac as q,a8 as ct,dG as dt,a_ as mt,dt as ut,bv as $e,bo as Be,hv as pt,B as ft,cf as yt,bm as ht,du as gt,dc as xt,dd as St,de as wt,A as Ct,aa as vt,bC as Tt,b as l,R as F,ai as Ve,hw as Dt,gT as ke,gi as bt,H as It,f as $t,ah as Ae,d as Bt,e as kt,s as $}from"./index-2CdI-B2B.js";import{a as O}from"./core-tlHkQPPu.js";import{n as d}from"./mui-kiGMfX4-.js";import{eK as Nt,bi as K}from"./zeni-epic-state-Bo1aGezX.js";import{y as jt,E as Pt}from"./CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js";import"./LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js";import"./LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js";const w={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,$[3]),subTitlePaddingBottom:new F($[3],$[3]),verificationDetailsRowGap:new F(12,$[5],$[5]),termsPaddingLeftRight:new F($[0],$[3])},Ft={stepTitle:new Bt("h6Regular","h5Regular")},Ne="businessVerificationPage",T="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:Ot,currency:je,footer:Pe,strings:{empty:Lt}}}=Le.getLocalizedStrings(),pa=({businessVerificationDetails:e,allNationalityCountries:_,verficationDetailsFetchState:L,isRefreshingViewInBackground:z,filesEndPoint:o,authParams:R,productType:h,allIndustries:E,companyTitles:U,maxInsuredAmount:f,isDisabled:B,isSettings:i=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:J=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:V,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:Ge,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:He,saveNewAddressInLocalStore:me,onSaveDetailsClick:We,onClickMenuIcon:Xe,onExecuteTreasuryTransfer:qe})=>{const Ke=rt(),m=lt(),{updateStatus:G,companyView:A,companyDetailsLocalData:c,companyOfficerLocalData:v}=e,Je=Ie(G.fetchState),Z=A?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(Gt,{children:[a.terms.term1,t.jsx(q,{href:a.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,t.jsx(q,{href:a.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,t.jsx(q,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,t.jsx(q,{href:a.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=O.useState(!1),[H,ue]=O.useState("save"),[Y,et]=O.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:Vt(e,E,U,_)}),{isValid:tt}=u.formState,ee=A?.company.company.companyBillPayInfo,te=A?.company.company.companyTreasuryInfo,k=h==="zeni_treasury"?te?.companyVerificationStatus:ee?.companyVerificationStatus,b=Object.values(v).findIndex(s=>s?.isSelectedForVerification===!0),I=`Officer_${b<0?1:b+1}`,at=u.handleSubmit(()=>{if(H!=="verification"&&ue("verification"),Z==="unit"&&v[I]?.isPhoneVerified!==!0)return void u.setError(`${D}.${b}.phone`,{type:"custom"});const s=dt(Object.values(v).map(n=>Object.values(n?.deleteFileStatusById??{}).filter(g=>g!=null))),p=Object.values(c?.deleteFileStatusById??{}).filter(n=>n!=null);Nt(s.concat(p)).fetchState!=="In-Progress"&&tt&&((()=>{const n=v[I],g=n?.email,N=n?.birthday?.toString(),r=n?.ownershipInCompany,y=n?.firstName,j=n?.lastName,P=n?.titleAtCompany,W=n?.documentTypeSelectedForVerification,X=n?.phone,he=n?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=c?.companyDescription,se=c?.companyLegalName,Se=c?.companyIndustry,we=c?.phone,Ce=c?.website,ve=c?.addressStatus?.addressToCreate!=null?K(c?.addressStatus?.addressToCreate):void 0,ne=c?.primaryContactLocalData,Te=ne?.firstName,De=ne?.lastName,be=ne?.email;g!=null&&r!=null&&y!=null&&j!=null&&N!=null&&P!=null&&X!=null&&ge!=null&&W!=null&&xe!=null&&se!=null&&we!=null&&Ce!=null&&Se!=null&&se!=null&&ve!=null&&Te!=null&&De!=null&&be!=null&&S?.trackBusinessVerificationSend({email:g,birthday:N.toString(),companyOwnership:r,firstName:y,lastName:j,companyRole:P,phone:X,formattedAddress:ge,documentTypeForVerification:W},{companyDescription:xe,legalName:se,phone:we,website:Ce.toString(),industry:Se,formattedAddress:ve},{firstName:Te,lastName:De,email:be},h,i?"Settings":void 0)})(),Me?.(I),J===!0&&qe?.())}),it=O.useCallback(mt((s,p)=>{(async(n,g)=>{n.includes(T)?Ge?.(g[T]):n.includes(D)&&He?.(g[D])})(s,p)},300),[]);O.useEffect(()=>{const s=u.watch((p,{name:n})=>{n!=null&&p!=null&&ut(()=>it(n,p))});return()=>{s.unsubscribe()}});const pe=Ie(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&pe==null&&(me?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,pe,me,u]);const fe=A?.companyOfficers.slice(0,10).sort((s,p)=>s.user.createTime?.isAfter(p.user.createTime)===!0?1:-1),ae=fe?.map(s=>s.user),st=fe?.map(s=>s.role),nt={onOkClick:()=>{Q(!1),V();const s=[],p=A?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(n=>{p.includes(n)||s.push(n)}),st?.forEach((n,g)=>{const N=n?.fileIds??[];u.getValues(`${D}.${g}.fileIds`).forEach(r=>{N.includes(r)||s.push(r)})}),s.length!==0&&Ze?.(s)},onCancelClick:()=>{Q(!1)}},ot=$e(Be(f),f,je.currencySymbol).toUpperCase(),ie=k?.code==="pending_review"||k?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&k?.code==="pending_review"&&Je==="In-Progress"&&G.fetchState==="Completed"?t.jsxs(Jt,{children:[t.jsxs(Qt,{children:[t.jsx(pt,{}),t.jsx(Yt,{windowSize:m,children:J===!0?a.submittedTitleWithTransfer:a.submittedTitle}),t.jsx(Kt,{isReadonly:!1,children:J===!0?a.submittedDescriptionWithTransfer.replace("__amount__",$e(Be(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),t.jsx(ft,{label:a.submittedButton,onClick:()=>{V(),oe?.()},variant:"primary"})]}):t.jsxs(At,{isSettings:i,children:[t.jsx(yt,{title:x&&C===!0?Lt:a.header,backgroundColor:Ke.colors.grey5,style:{zIndex:Y?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!i&&!x,showMenuIcon:!!i&&(m==="medium-compact"||m==="small"),onClickMenuIcon:Xe,rightSideComponent:x?t.jsx(ea,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:a.discardTitle}),descriptionComponent:t.jsx(St,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:nt}):null,t.jsxs(Rt,{windowSize:m,children:[(!x||C===!1)&&t.jsx(zt,{windowSize:m,children:i?Ot.infoText.businessVerification:a.title}),L==="In-Progress"||L==="Not-Started"?t.jsx(Et,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):t.jsx(vt,{...u,children:t.jsxs("form",{id:Fe(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(_t,{children:[t.jsxs(Zt,{windowSize:m,children:[t.jsx(Ht,{windowSize:m,children:ie?a.businessVerificationDetails:ye?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Wt,{children:t.jsxs(Xt,{children:[t.jsx(Oe,{}),ye&&t.jsx(Oe,{}),t.jsx(qt,{})]})})]}),t.jsx(_e,{isReadonly:ie,children:a.verifyBusinessDetailsDescription})]}),t.jsxs(Ut,{children:[t.jsx(jt,{companyOfficerData:v,allNationalityCountries:_,allOfficers:ae??[],sectionId:D,isRefreshingViewInBackground:z,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:B,filesEndPoint:o,authParams:R,isPopupOpen:Y,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Pt,{companyDetails:c,businessVerificationProps:{companyVerificationStatus:k,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",sectionId:T,isDisabled:k?.code==="pending_review"||k?.code==="verified"?"readonly":B,fileProps:{authParams:R,filesEndPoint:o,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:E})]}),h==="zeni_accounts"?t.jsx(Mt,{windowSize:m,children:a.threadText.replace("__amount__",ot)}):null]})})]}),L==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":ee?.businessVerificationStatus?.code!=="pending_review"&&ee?.businessVerificationStatus?.code!=="verified")?t.jsx(Tt,{formId:Fe(Ne),primaryBtn:{label:C?Pe.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":C?"83px":"181px"},isLoading:H==="verification"&&G.fetchState==="In-Progress",isDisabled:B!=null},containerStyle:{width:m==="small"?w.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?w.width.valuePx(m):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(m),paddingRight:w.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:a.saveDetailsButton,style:{width:m==="small"?"auto":C?"83px":"181px"},isLoading:H==="save"&&G.fetchState==="In-Progress",onClick:()=>{if(C)V();else{const s=v[I],p=c?.primaryContactLocalData;H!=="save"&&ue("save");const n=s?.email??"",g=(()=>{const r=v[I],y=c?.primaryContactLocalData,j=r?.email??"",P=!!r?.firstName&&!!r?.lastName,W=y?.email??"",X=!!y?.firstName&&!!y?.lastName;return!j||P?!(W&&!X&&(y?.firstName&&y?.lastName||u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),1)):(r?.firstName&&r?.lastName||u.trigger(`${D}.${b<0?0:b}.name`,{shouldFocus:!0}),!1)})(),N=(()=>{const r=v[I],y=c?.primaryContactLocalData,j=r?.email,P=y?.email;if(j){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${T}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(r?.firstName||r?.lastName||r?.birthday||r?.nationalityCountryCode||r?.ownershipInCompany||r?.phone||r?.ssn||r?.titleAtCompany||r?.addressStatus?.addressToCreate||r?.fileIds!=null&&r?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${D}.${b<0?0:b}.email`,{shouldFocus:!0}),!1;return!0})();g&&N&&(S?.trackBusinessVerificationSave({email:n,birthday:s?.birthday?.toString(),companyOwnership:s?.ownershipInCompany,firstName:s?.firstName,lastName:s?.lastName,companyRole:s?.titleAtCompany,phone:s?.phone,formattedAddress:s?.addressStatus?.addressToCreate!=null?K(s?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:s?.documentTypeSelectedForVerification},{companyDescription:c?.companyDescription,legalName:c?.companyLegalName,phone:c?.phone,website:c?.website?.toString(),industry:c?.companyIndustry??"",formattedAddress:c?.addressStatus?.addressToCreate!=null?K(c?.addressStatus?.addressToCreate):void 0},{firstName:p?.firstName,lastName:p?.lastName,email:p?.email},h,i?"Settings":void 0),We?.(I))}}},helperText:Qe,style:{padding:`12px ${l.sp3}`,zIndex:Y?0:4}}):null]})},Vt=(e,_,L,z)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:R,companyView:h}=e,E=Le.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[T]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:_?.map(f=>f.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)}},[D]:Object.values(R).map((f,B)=>{const i=f,x=Dt(i?.documentTypeSelectedForVerification);return{userId:i?.userId,officerType:i?.officerType??`Officer_${B+1}`,name:{firstName:i?.firstName,lastName:i?.lastName},email:i?.email,fileIds:i?.fileIds??[],dob:i?.birthday?.toDate(),nationalityCountryCode:bt(i?.nationalityCountryCode,z.map(S=>S.countryCode)),ssn:i?.ssn,role:{selectedOption:i?.titleAtCompany,allOptions:L?.map(S=>S.code)},phone:i?.phone??"",ownership:i?.ownershipInCompany,officerAddress:i?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,i?.userFiles??[],x),back:ke(!1,i?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&B===0||(i?.isSelectedForVerification??!1),userVerificationStatus:i?.userVerificationStatus,treasuryUserVerificationStatus:i?.treasuryUserVerificationStatus,syncToken:i?.syncToken,isPhoneVerified:i?.isPhoneVerified,otpChallenge:i?.otpChallenge}})}},Fe=e=>`${e}_form`,At=d.div`
|
|
1
|
+
import{i as rt,u as lt,bB as Ie,j as t,a as Le,ac as q,a8 as ct,dG as dt,a_ as mt,dt as ut,bv as $e,bo as Be,hv as pt,B as ft,cf as yt,bm as ht,du as gt,dc as xt,dd as St,de as wt,A as Ct,aa as vt,bC as Tt,b as l,R as F,ai as Ve,hw as Dt,gT as ke,gi as bt,H as It,f as $t,ah as Ae,d as Bt,e as kt,s as $}from"./index-OJbFNHch.js";import{a as O}from"./core-tlHkQPPu.js";import{n as d}from"./mui-kiGMfX4-.js";import{eK as Nt,bi as K}from"./zeni-epic-state-Bo1aGezX.js";import{y as jt,E as Pt}from"./CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js";import"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";const w={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,$[3]),subTitlePaddingBottom:new F($[3],$[3]),verificationDetailsRowGap:new F(12,$[5],$[5]),termsPaddingLeftRight:new F($[0],$[3])},Ft={stepTitle:new Bt("h6Regular","h5Regular")},Ne="businessVerificationPage",T="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:Ot,currency:je,footer:Pe,strings:{empty:Lt}}}=Le.getLocalizedStrings(),pa=({businessVerificationDetails:e,allNationalityCountries:_,verficationDetailsFetchState:L,isRefreshingViewInBackground:z,filesEndPoint:o,authParams:R,productType:h,allIndustries:E,companyTitles:U,maxInsuredAmount:f,isDisabled:B,isSettings:i=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:J=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:V,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:Ge,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:He,saveNewAddressInLocalStore:me,onSaveDetailsClick:We,onClickMenuIcon:Xe,onExecuteTreasuryTransfer:qe})=>{const Ke=rt(),m=lt(),{updateStatus:G,companyView:A,companyDetailsLocalData:c,companyOfficerLocalData:v}=e,Je=Ie(G.fetchState),Z=A?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(Gt,{children:[a.terms.term1,t.jsx(q,{href:a.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,t.jsx(q,{href:a.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,t.jsx(q,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,t.jsx(q,{href:a.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=O.useState(!1),[H,ue]=O.useState("save"),[Y,et]=O.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:Vt(e,E,U,_)}),{isValid:tt}=u.formState,ee=A?.company.company.companyBillPayInfo,te=A?.company.company.companyTreasuryInfo,k=h==="zeni_treasury"?te?.companyVerificationStatus:ee?.companyVerificationStatus,b=Object.values(v).findIndex(s=>s?.isSelectedForVerification===!0),I=`Officer_${b<0?1:b+1}`,at=u.handleSubmit(()=>{if(H!=="verification"&&ue("verification"),Z==="unit"&&v[I]?.isPhoneVerified!==!0)return void u.setError(`${D}.${b}.phone`,{type:"custom"});const s=dt(Object.values(v).map(n=>Object.values(n?.deleteFileStatusById??{}).filter(g=>g!=null))),p=Object.values(c?.deleteFileStatusById??{}).filter(n=>n!=null);Nt(s.concat(p)).fetchState!=="In-Progress"&&tt&&((()=>{const n=v[I],g=n?.email,N=n?.birthday?.toString(),r=n?.ownershipInCompany,y=n?.firstName,j=n?.lastName,P=n?.titleAtCompany,W=n?.documentTypeSelectedForVerification,X=n?.phone,he=n?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=c?.companyDescription,se=c?.companyLegalName,Se=c?.companyIndustry,we=c?.phone,Ce=c?.website,ve=c?.addressStatus?.addressToCreate!=null?K(c?.addressStatus?.addressToCreate):void 0,ne=c?.primaryContactLocalData,Te=ne?.firstName,De=ne?.lastName,be=ne?.email;g!=null&&r!=null&&y!=null&&j!=null&&N!=null&&P!=null&&X!=null&&ge!=null&&W!=null&&xe!=null&&se!=null&&we!=null&&Ce!=null&&Se!=null&&se!=null&&ve!=null&&Te!=null&&De!=null&&be!=null&&S?.trackBusinessVerificationSend({email:g,birthday:N.toString(),companyOwnership:r,firstName:y,lastName:j,companyRole:P,phone:X,formattedAddress:ge,documentTypeForVerification:W},{companyDescription:xe,legalName:se,phone:we,website:Ce.toString(),industry:Se,formattedAddress:ve},{firstName:Te,lastName:De,email:be},h,i?"Settings":void 0)})(),Me?.(I),J===!0&&qe?.())}),it=O.useCallback(mt((s,p)=>{(async(n,g)=>{n.includes(T)?Ge?.(g[T]):n.includes(D)&&He?.(g[D])})(s,p)},300),[]);O.useEffect(()=>{const s=u.watch((p,{name:n})=>{n!=null&&p!=null&&ut(()=>it(n,p))});return()=>{s.unsubscribe()}});const pe=Ie(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&pe==null&&(me?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,pe,me,u]);const fe=A?.companyOfficers.slice(0,10).sort((s,p)=>s.user.createTime?.isAfter(p.user.createTime)===!0?1:-1),ae=fe?.map(s=>s.user),st=fe?.map(s=>s.role),nt={onOkClick:()=>{Q(!1),V();const s=[],p=A?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(n=>{p.includes(n)||s.push(n)}),st?.forEach((n,g)=>{const N=n?.fileIds??[];u.getValues(`${D}.${g}.fileIds`).forEach(r=>{N.includes(r)||s.push(r)})}),s.length!==0&&Ze?.(s)},onCancelClick:()=>{Q(!1)}},ot=$e(Be(f),f,je.currencySymbol).toUpperCase(),ie=k?.code==="pending_review"||k?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&k?.code==="pending_review"&&Je==="In-Progress"&&G.fetchState==="Completed"?t.jsxs(Jt,{children:[t.jsxs(Qt,{children:[t.jsx(pt,{}),t.jsx(Yt,{windowSize:m,children:J===!0?a.submittedTitleWithTransfer:a.submittedTitle}),t.jsx(Kt,{isReadonly:!1,children:J===!0?a.submittedDescriptionWithTransfer.replace("__amount__",$e(Be(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),t.jsx(ft,{label:a.submittedButton,onClick:()=>{V(),oe?.()},variant:"primary"})]}):t.jsxs(At,{isSettings:i,children:[t.jsx(yt,{title:x&&C===!0?Lt:a.header,backgroundColor:Ke.colors.grey5,style:{zIndex:Y?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!i&&!x,showMenuIcon:!!i&&(m==="medium-compact"||m==="small"),onClickMenuIcon:Xe,rightSideComponent:x?t.jsx(ea,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:a.discardTitle}),descriptionComponent:t.jsx(St,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:nt}):null,t.jsxs(Rt,{windowSize:m,children:[(!x||C===!1)&&t.jsx(zt,{windowSize:m,children:i?Ot.infoText.businessVerification:a.title}),L==="In-Progress"||L==="Not-Started"?t.jsx(Et,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):t.jsx(vt,{...u,children:t.jsxs("form",{id:Fe(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(_t,{children:[t.jsxs(Zt,{windowSize:m,children:[t.jsx(Ht,{windowSize:m,children:ie?a.businessVerificationDetails:ye?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Wt,{children:t.jsxs(Xt,{children:[t.jsx(Oe,{}),ye&&t.jsx(Oe,{}),t.jsx(qt,{})]})})]}),t.jsx(_e,{isReadonly:ie,children:a.verifyBusinessDetailsDescription})]}),t.jsxs(Ut,{children:[t.jsx(jt,{companyOfficerData:v,allNationalityCountries:_,allOfficers:ae??[],sectionId:D,isRefreshingViewInBackground:z,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:B,filesEndPoint:o,authParams:R,isPopupOpen:Y,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Pt,{companyDetails:c,businessVerificationProps:{companyVerificationStatus:k,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",sectionId:T,isDisabled:k?.code==="pending_review"||k?.code==="verified"?"readonly":B,fileProps:{authParams:R,filesEndPoint:o,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:E})]}),h==="zeni_accounts"?t.jsx(Mt,{windowSize:m,children:a.threadText.replace("__amount__",ot)}):null]})})]}),L==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":ee?.businessVerificationStatus?.code!=="pending_review"&&ee?.businessVerificationStatus?.code!=="verified")?t.jsx(Tt,{formId:Fe(Ne),primaryBtn:{label:C?Pe.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":C?"83px":"181px"},isLoading:H==="verification"&&G.fetchState==="In-Progress",isDisabled:B!=null},containerStyle:{width:m==="small"?w.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?w.width.valuePx(m):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(m),paddingRight:w.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:a.saveDetailsButton,style:{width:m==="small"?"auto":C?"83px":"181px"},isLoading:H==="save"&&G.fetchState==="In-Progress",onClick:()=>{if(C)V();else{const s=v[I],p=c?.primaryContactLocalData;H!=="save"&&ue("save");const n=s?.email??"",g=(()=>{const r=v[I],y=c?.primaryContactLocalData,j=r?.email??"",P=!!r?.firstName&&!!r?.lastName,W=y?.email??"",X=!!y?.firstName&&!!y?.lastName;return!j||P?!(W&&!X&&(y?.firstName&&y?.lastName||u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),1)):(r?.firstName&&r?.lastName||u.trigger(`${D}.${b<0?0:b}.name`,{shouldFocus:!0}),!1)})(),N=(()=>{const r=v[I],y=c?.primaryContactLocalData,j=r?.email,P=y?.email;if(j){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${T}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(r?.firstName||r?.lastName||r?.birthday||r?.nationalityCountryCode||r?.ownershipInCompany||r?.phone||r?.ssn||r?.titleAtCompany||r?.addressStatus?.addressToCreate||r?.fileIds!=null&&r?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${D}.${b<0?0:b}.email`,{shouldFocus:!0}),!1;return!0})();g&&N&&(S?.trackBusinessVerificationSave({email:n,birthday:s?.birthday?.toString(),companyOwnership:s?.ownershipInCompany,firstName:s?.firstName,lastName:s?.lastName,companyRole:s?.titleAtCompany,phone:s?.phone,formattedAddress:s?.addressStatus?.addressToCreate!=null?K(s?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:s?.documentTypeSelectedForVerification},{companyDescription:c?.companyDescription,legalName:c?.companyLegalName,phone:c?.phone,website:c?.website?.toString(),industry:c?.companyIndustry??"",formattedAddress:c?.addressStatus?.addressToCreate!=null?K(c?.addressStatus?.addressToCreate):void 0},{firstName:p?.firstName,lastName:p?.lastName,email:p?.email},h,i?"Settings":void 0),We?.(I))}}},helperText:Qe,style:{padding:`12px ${l.sp3}`,zIndex:Y?0:4}}):null]})},Vt=(e,_,L,z)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:R,companyView:h}=e,E=Le.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[T]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:_?.map(f=>f.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)}},[D]:Object.values(R).map((f,B)=>{const i=f,x=Dt(i?.documentTypeSelectedForVerification);return{userId:i?.userId,officerType:i?.officerType??`Officer_${B+1}`,name:{firstName:i?.firstName,lastName:i?.lastName},email:i?.email,fileIds:i?.fileIds??[],dob:i?.birthday?.toDate(),nationalityCountryCode:bt(i?.nationalityCountryCode,z.map(S=>S.countryCode)),ssn:i?.ssn,role:{selectedOption:i?.titleAtCompany,allOptions:L?.map(S=>S.code)},phone:i?.phone??"",ownership:i?.ownershipInCompany,officerAddress:i?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,i?.userFiles??[],x),back:ke(!1,i?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&B===0||(i?.isSelectedForVerification??!1),userVerificationStatus:i?.userVerificationStatus,treasuryUserVerificationStatus:i?.treasuryUserVerificationStatus,syncToken:i?.syncToken,isPhoneVerified:i?.isPhoneVerified,otpChallenge:i?.otpChallenge}})}},Fe=e=>`${e}_form`,At=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as x,a as w,j as r,t as y,d as C,b as s,e as $}from"./index-
|
|
1
|
+
import{u as x,a as w,j as r,t as y,d as C,b as s,e as $}from"./index-OJbFNHch.js";import{n as l}from"./mui-kiGMfX4-.js";import{a as d}from"./core-tlHkQPPu.js";const{common:n,spendManagement:{chargeCard:a}}=w.getLocalizedStrings(),f={subText:new C("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:t,styles:h})=>{const u=x(),m=e.type.code.includes("credit")?a.chargeCardsPromo.credit:a.chargeCardsPromo.debit;let o=e.type.code.includes("physical")?a.cardList.physicalCard:a.cardList.virtualCard;const i=n.strings.space+a.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,g=e.status.code!=="request_on_hold"&&t?i:o,c=e.type.code.includes("physical");return r.jsxs(S,{style:h,windowSize:u,forDetailPage:t,className:"cardName",title:`${g}`,children:[m,r.jsx(v,{}),o,c&&!t?r.jsx(p,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&t?i:null,c&&t?r.jsx(p,{}):null]})},S=l($)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.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{i as j,u as f,j as i,cf as ee,a as u,gC as z,t as w,bG as q,cP as ie,b as t,C as T,R as h,ah as v,s as d,ct as te,cu as oe,bS as re,bR as ae,bv as se,cv as ne,cs as le,bn as B,cF as de,bm as L,af as $,kF as ce,kh as he,di as pe,dq as ge,kG as X,kH as Z,kj as me,kk as xe,ai as R}from"./index-
|
|
1
|
+
import{i as j,u as f,j as i,cf as ee,a as u,gC as z,t as w,bG as q,cP as ie,b as t,C as T,R as h,ah as v,s as d,ct as te,cu as oe,bS as re,bR as ae,bv as se,cv as ne,cs as le,bn as B,cF as de,bm as L,af as $,kF as ce,kh as he,di as pe,dq as ge,kG as X,kH as Z,kj as me,kk as xe,ai as R}from"./index-OJbFNHch.js";import{n as o}from"./mui-kiGMfX4-.js";import{i as ue}from"./orderBy-D3W4CDe6-C2Pj0hxa.js";import{g3 as b,bj as we}from"./zeni-epic-state-Bo1aGezX.js";import{o as O,a as K}from"./core-tlHkQPPu.js";import{k as ye}from"./InsightsSection-DJrMi3DN-BZzGhpNe.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./NavigationDots-DO5y6mdV-CX8opgkb.js";const fe=({x:e,y:s,width:n,height:a,payload:r})=>{const c=j();return i.jsx(ce,{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})},V=u.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,be=u.getLocalizedStrings().dateFormat.visual.MMMMFormat,W=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${t.sp1};
|
|
4
4
|
`,$e=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as Qe,u as ke,a$ as Lt,a7 as It,ig as wr,iY as wi,bs as Xe,a as be,ih as xr,bB as Je,j as t,ij as xi,cf as Si,s as l,he as Sr,bn as _e,bm as X,b as a,cH as Qt,C as d,ko as yr,t as W,dc as yi,kp as bi,gw as $i,i6 as vi,kq as ki,cm as ji,cz as br,bq as ea,kr as Li,ks as $r,kt as at,R,cq as vr,bM as ta,S as Ii,br as kr,bz as Di,ku as Ti,kv as Ai,bH as aa,af as pe,fU as Ri,kc as Fi,g as mt,ii as jr,A as ut,bG as Ei,eC as zi,dj as Pi,dd as Mi,dU as Vi,iV as Oi,ah as Pe,cJ as Hi,bw as Wt,kw as Ut,kx as Ea,ky as Ni,d as za,e as Lr,bJ as Bi,kz as Wi,k6 as ht,km as Ui,kn as _i,ki as Zi,eR as Pa,ge as Gi,B as Ir,di as Dr,kf as Yi,cM as qi,L as Tr,kA as Ki,ax as vt,cP as Ma,cb as Xi,ep as Ji,ai as it,iQ as Qi,as as eo,f as to,cn as ao,kB as Dt,gL as ro,cF as io,kC as Ar,kD as Rr,hT as Fr,kE as jt,jD as Er,kh as oo,dq as no,fz as so,d2 as co,d3 as lo,kj as ho,kk as po,f6 as uo,dP as mo}from"./index-
|
|
1
|
+
import{i as Qe,u as ke,a$ as Lt,a7 as It,ig as wr,iY as wi,bs as Xe,a as be,ih as xr,bB as Je,j as t,ij as xi,cf as Si,s as l,he as Sr,bn as _e,bm as X,b as a,cH as Qt,C as d,ko as yr,t as W,dc as yi,kp as bi,gw as $i,i6 as vi,kq as ki,cm as ji,cz as br,bq as ea,kr as Li,ks as $r,kt as at,R,cq as vr,bM as ta,S as Ii,br as kr,bz as Di,ku as Ti,kv as Ai,bH as aa,af as pe,fU as Ri,kc as Fi,g as mt,ii as jr,A as ut,bG as Ei,eC as zi,dj as Pi,dd as Mi,dU as Vi,iV as Oi,ah as Pe,cJ as Hi,bw as Wt,kw as Ut,kx as Ea,ky as Ni,d as za,e as Lr,bJ as Bi,kz as Wi,k6 as ht,km as Ui,kn as _i,ki as Zi,eR as Pa,ge as Gi,B as Ir,di as Dr,kf as Yi,cM as qi,L as Tr,kA as Ki,ax as vt,cP as Ma,cb as Xi,ep as Ji,ai as it,iQ as Qi,as as eo,f as to,cn as ao,kB as Dt,gL as ro,cF as io,kC as Ar,kD as Rr,hT as Fr,kE as jt,jD as Er,kh as oo,dq as no,fz as so,d2 as co,d3 as lo,kj as ho,kk as po,f6 as uo,dP as mo}from"./index-OJbFNHch.js";import{a as o,o as go,d as zr}from"./core-tlHkQPPu.js";import{n as r,c as ge,k as Pr}from"./mui-kiGMfX4-.js";import{eI as Tt,bj as Co,bg as fo}from"./zeni-epic-state-Bo1aGezX.js";import{n as wo}from"./NavigationDots-DO5y6mdV-CX8opgkb.js";import{i as xo,r as So,l as yo,a as bo,n as $o,C as vo,t as ko}from"./add-to-wallet-D7W5Y5Hm-zBGkMLf1.js";import{h as jo}from"./CardNumberSubText-COZ0PEHK-DfX-_Vv0.js";import{u as Mr}from"./remove-ADLCpWJf-C_kUyMnr.js";import{e as Vr}from"./uploadReceipts-BkHrFC8j-BKjYP7lf.js";import{E as Lo,O as Io,r as Do,u as To}from"./LockCardPage-Do7WCHaW-ZupVtZLk.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-SKv6CaOr.js";import"./RoleWithToolTip-CWH-iJqI-1DRRWE9G.js";const Or=be.getLocalizedStrings().spendManagement.chargeCard,Ao=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:x,chargeCardDetailView:p,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:E,setWalletType:y,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const k=It().analytics,{isIPadScreen:Z}=Ti(),{isAndroidScreen:J}=Ai(),_=Lt(),T=Tt(_.loggedInUserRoleMap);return t.jsx(Ro,{style:u,children:Z===!0?t.jsx(Jt,{onClick:()=>{at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:f,creditAccountInformation:g,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:c,creditAccountRepayment:n}),window.open(j,"_blank")}}):J===!0?t.jsx(Xt,{onClick:()=>{at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:f,creditAccountInformation:g,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:c,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{onClick:()=>{y("apple"),E.current="slide-in-right-to-left-add-to-wallet",at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{y("google"),E.current="slide-in-right-to-left-add-to-wallet",at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=Qe();return t.jsx(Ir,{prefixIcon:t.jsx(Fo,{}),label:Or.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":X("add-to-google-wallet-button")})},Jt=({onClick:e})=>{const i=Qe();return t.jsx(Ir,{prefixIcon:t.jsx(Eo,{}),label:Or.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":X("add-to-apple-wallet-button")})},Ro=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a7 as Ha,bB as D,a$ as Ba,hd as qa,k6 as W,u as Pe,a as Ee,b as a,i as ta,j as t,cf as Ja,hr as Ka,gC as ee,t as T,cH as ot,C as m,bn as le,bv as nt,bm as dt,R as z,af as H,d as Za,e as Qa,dK as Xa,av as aa,cq as Ya,bz as ct,bq as er,ai as lt,a8 as tr,i9 as ar,dN as rr,ak as ir,aa as or,hx as nr,B as _t,s as _,dW as ra,as as sr,ah as dr,H as cr,dJ as lr,c9 as ur,cJ as hr}from"./index-
|
|
1
|
+
import{a7 as Ha,bB as D,a$ as Ba,hd as qa,k6 as W,u as Pe,a as Ee,b as a,i as ta,j as t,cf as Ja,hr as Ka,gC as ee,t as T,cH as ot,C as m,bn as le,bv as nt,bm as dt,R as z,af as H,d as Za,e as Qa,dK as Xa,av as aa,cq as Ya,bz as ct,bq as er,ai as lt,a8 as tr,i9 as ar,dN as rr,ak as ir,aa as or,hx as nr,B as _t,s as _,dW as ra,as as sr,ah as dr,H as cr,dJ as lr,c9 as ur,cJ as hr}from"./index-OJbFNHch.js";import{a as c}from"./core-tlHkQPPu.js";import{n as r,c as ut,k as mr}from"./mui-kiGMfX4-.js";import{eI as pr,g2 as Cr,bj as Nt,bO as gr,bT as br}from"./zeni-epic-state-Bo1aGezX.js";import{G as xr}from"./SpendManagementSection-ajHIu1O8-DADkbXE-.js";import{_ as te,K as fr,P as Sr}from"./ChargeCardListTable-BGdEyXLV-i14Xe5Xy.js";import{ChargeCardPromoUserContent as yr}from"./ChargeCardPromoPage-BYgvGdtQ-BP8Ml7dN.js";import{m as wr,u as kr}from"./PromoBaseCards-38oPeuBR-B0H8TJQa.js";import{O as Wt,E as zt,r as $r,u as vr}from"./LockCardPage-Do7WCHaW-ZupVtZLk.js";import{r as Ir,e as jr}from"./graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js";import{t as Ar,r as Lr}from"./arrow-south-east-round-D5pI7KCC-DyTRFc-f.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./Menu-pyYbFxsT-BjDDhfv4.js";import"./RoleWithToolTip-CWH-iJqI-1DRRWE9G.js";import"./CardNumberSubText-COZ0PEHK-DfX-_Vv0.js";import"./NavigationDots-DO5y6mdV-CX8opgkb.js";import"./usp-line-4JsxsMjK-mCxwNowe.js";const ht={infoSubheadingTextMarginTop:new z(_[0],_[0]),cardsMinWidth:new z(343,353)},Le=Ee.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Vt=({cardPromoType:e,cardText:p,header:l,title:d,subTitle:n,slidingTextList:u,onClick:N,status:k,statusMessage:B})=>{const V=Pe(),j=k!==void 0,G=k==="rejected"?Le.status.requestRejected:k==="under_review"?Le.status.requestUnderReview:"";return t.jsxs(Pr,{windowSize:V,cardPromoType:e,"data-testid":dt("list-page-promo-card",e),onClick:()=>N(e),children:[t.jsxs(ia,{isStatusMode:j,children:[t.jsxs(na,{children:[j?t.jsx(Tr,{children:G}):t.jsx(oa,{children:l}),t.jsx(Mr,{children:d}),j?null:t.jsx(_r,{children:n})]}),!j&&t.jsxs(Nr,{children:[t.jsx(Wr,{}),u.length>0&&t.jsx(st,{slideUpCount:u.length,children:u.map((ae,re)=>t.jsx(sa,{children:ae},`card-promo-${re.toString()}`))}),t.jsx(zr,{})]}),B!=null&&j?t.jsx(Rr,{status:k,children:B}):null]}),t.jsx(Vr,{isStatusMode:j,children:t.jsx(wr,{cardPromoType:e,cardText:p,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Gr,{isStatusMode:j,children:t.jsx(kr,{cardPromoType:e,cardText:p,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Gt=({cardType:e,header:p,title:l,creditLimit:d,onCreateNowClick:n})=>{const u=Pe();return t.jsx(Er,{windowSize:u,cardType:e,children:t.jsxs(Fr,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:p}),t.jsx(Or,{children:t.jsx(Dr,{children:l})}),t.jsx(Ur,{windowSize:u,children:t.jsxs(Hr,{windowSize:u,onClick:()=>n(e),"data-testid":dt("total-cashback-info"),children:[t.jsx(sa,{children:Le.createNow}),t.jsx(Br,{})]})})]}),e==="creditCard"?t.jsxs(qr,{children:[t.jsx(Jr,{children:Le.creditLimit}),t.jsx(Kr,{children:d})]}):null]})})},Pr=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: center;
|