@zeniai/web-cockpit-ui 1.14.22-dev → 1.14.22-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-Csc8UPGK-C5DTl14D.js → ACHDetailsPage-Csc8UPGK-3Hzrt8sv.js} +1 -1
- package/dist/assets/{AIPerformancePage-BNK1zghX-CXpkKBhu.js → AIPerformancePage-BNK1zghX-BOagkgDU.js} +1 -1
- package/dist/assets/{AccountInfoPage-WoQj1Knu-Cxdf_g3B.js → AccountInfoPage-WoQj1Knu-C0NqBhcm.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BsiMZrTm-DfeZwew1.js → AccountInfoPageContent-BsiMZrTm-CTTq-Yc2.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-DUBexURk.js → AccountLockedInfoModal-CaIpZQOZ-CNfkV6iH.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-bRUuCvDt.js → AccountReconDetailsDrawerPage-BQTm9Igh-DHBcdmQI.js} +1 -1
- package/dist/assets/{AccountRow-mHhwnvVT-61DHuT3I.js → AccountRow-mHhwnvVT-DlSD5_cv.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-jk87J-uY-CYM3oaB-.js → AccountsPromoCardStack-jk87J-uY-BgOkj47K.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C1fgvotd.js → AddAddressForCardDrawer-BY-ABNiB-C2mfRuV9.js} +1 -1
- package/dist/assets/{AddToWalletPage-BmaqhQ_z-fr9KNRwo.js → AddToWalletPage-BmaqhQ_z-CCkQvzoH.js} +1 -1
- package/dist/assets/{AgingReportsPage-B2tfefId-BY1ufaPI.js → AgingReportsPage-B2tfefId-BASbPXl4.js} +1 -1
- package/dist/assets/{AllUserItems-C5jB4yc_-bcEnXv8A.js → AllUserItems-C5jB4yc_-CbjMIbTC.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-Dm0NOaoH.js → ApAgingDetailPage-B-ZHX3JJ-BApKFP0l.js} +1 -1
- package/dist/assets/{AppBasePage-DOXcrTCE-BU2ssx1Y.js → AppBasePage-DOXcrTCE-gk9eXfPv.js} +1 -1
- package/dist/assets/{AppDrawerContent-Cav4Sy09-XmmoSBRe.js → AppDrawerContent-Cav4Sy09-DQ-THdyv.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BhZWVqKA.js → ApprovalRulesSettingsPage-rzr9k2jA-BmNSi22b.js} +1 -1
- package/dist/assets/{ArAgingChart-B3NtEWh--G5H5BTO1.js → ArAgingChart-B3NtEWh--BOlmxwm1.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-uX2oVxj4-B2CH08AV.js → ArAgingDetailPage-uX2oVxj4-C7e2SNBe.js} +1 -1
- package/dist/assets/{AttachmentView-BQMzs_UT-DjbZBXs7.js → AttachmentView-BQMzs_UT-BMIgc-Op.js} +1 -1
- package/dist/assets/{BankAccountSection-MWGcLsKa-DYMEitGJ.js → BankAccountSection-MWGcLsKa-Dl-WZeBC.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CBlOG9xN-KyoF0Xjl.js → BankAccountWarningSection-CBlOG9xN-Bzq_eEtP.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CnNwI2lQ.js → BankConnectionsSettingsPage-PagAlxUn-CiGjimFc.js} +1 -1
- package/dist/assets/{BillDetailPage-DU3KKWCI-Dgx7cNS3.js → BillDetailPage-DU3KKWCI-BZd_KVnK.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-0k3Mkm1z.js → BillPayApprovalRuleDetailPage-DzfhQmLn-CV1bwFpI.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-Bz466D-_.js → BillPayApprovalRulesPage-B051t9Mv-B6BIB1S2.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DvBp9dFZ-DT65a4C3.js → BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-D7335PCo-lcC21Rm6.js → BillPaySetUpPage-D7335PCo-DjOfSrPK.js} +1 -1
- package/dist/assets/{BillingSettingsPage-PsWVXatK-Df6MXAqh.js → BillingSettingsPage-PsWVXatK-GSxyAYxr.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-QfTbq_6Y.js → BillsBulkReviewDrawerPage-Dkq-bCpf-Dsb-J7KQ.js} +1 -1
- package/dist/assets/{BoxItem-Bf9DDBGl-B4tzyane.js → BoxItem-Bf9DDBGl-CQKtUhxk.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DZpS0b_1-DhH_xv3P.js → BusinessVerificationPage-DZpS0b_1-CT7CCzj9.js} +1 -1
- package/dist/assets/{CardNumberSubText-8FNDlBHV-xefYK_FQ.js → CardNumberSubText-8FNDlBHV-CNyFCSaC.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CUc07auE-CayGCDQt.js → CashbackDetailPage-CUc07auE-C19Doku1.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-Drf4gFgi.js → ChargeCardDetailPage-D84v0WwQ-DhVPYQn7.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BFssQAQg-Dr6YIgl1.js → ChargeCardListPage-BFssQAQg-DEX46cKA.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BuI0T0Bn-DXKO7Y7U.js → ChargeCardListTable-BuI0T0Bn-D8Xh4Bma.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CRqyciNL-FrtjBhKN.js → ChargeCardPromoPage-CRqyciNL-BVrnHPJ6.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BzqdaEET-j6EBeAK_.js → ChargeCardSetupPage-BzqdaEET-DBBXZ-n5.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-D6s-jUZ3.js → ChargeCardStatementsPage-BtImi0Pc-o0pjefqQ.js} +1 -1
- package/dist/assets/{ChargeCardUtils-DQztOSYJ-DZxY6wV1.js → ChargeCardUtils-DQztOSYJ-CLG3pIYt.js} +1 -1
- package/dist/assets/{ChaseOverlay-BaGgoJZk-L4zZNkyz.js → ChaseOverlay-BaGgoJZk-DWWls_0t.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-90KwCes_-BFVP9Xnd.js → CheckDepositDrawerPage-90KwCes_-CnbI6CmC.js} +1 -1
- package/dist/assets/{CollapsableReportTable-dCUjgg1X-DLs7OVqc.js → CollapsableReportTable-dCUjgg1X-Djm0gH1n.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-shOCzvZi.js → CompanyOfficerDetailsSection-B5d06n1B-D-gHI0TC.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BOuhptIV-CVEQtf9Q.js → CompanyPassportCard-BOuhptIV-BgTFJUhX.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CPxR1IKu-B6sc0yZA.js → CompanyPassportPage-CPxR1IKu-C3d76QPp.js} +1 -1
- package/dist/assets/{CompleteProfile-BIN-sI3M-1L7bxHe9.js → CompleteProfile-BIN-sI3M-DNy4fSuu.js} +1 -1
- package/dist/assets/{ConfettiBurst-nTrV9Xfw-D3DkhcOF.js → ConfettiBurst-nTrV9Xfw-Dk9LJSUX.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-DBGaDkEf.js → CreateOrEditVendorPage-CQH4Gfy0-1OZpFxN1.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-amz8Ne7l.js → CreditCardPaymentDrawerPage-C3PvfNmm-DcQwewDZ.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DO4yi827.js → CreditCardPaymentPlgSection-Cz-CSdKg-DXgZPZoJ.js} +1 -1
- package/dist/assets/{CurrencySelectField-ltt1zExP-D2omcj4n.js → CurrencySelectField-ltt1zExP-DAkE7-Ko.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-ejyq0w3C.js → CustomerOnboardingActivationPage-Cst56yLP-B_YzYJ6X.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-BcEPhc3o.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-KBQed5cV.js → CustomerOnboardingDetailPageSkeleton-H59MLCwU-BgPsJzDd.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-B8cf9wWc-DoeA9g-j.js → CustomerOnboardingNoStepsPage-B8cf9wWc-C5L0Tki4.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-DIOBtRSu.js → CustomerOnboardingPage-1o2R-ghV-Dhqb3SU1.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Dfv86gVc-xcmudBbw.js → CustomerOnboardingProductSuitePage-Dfv86gVc-09rPr3CW.js} +1 -1
- package/dist/assets/{Dashboard-CptSiho6-CYuyH4KA.js → Dashboard-CptSiho6-BwvD4p7k.js} +1 -1
- package/dist/assets/{DashboardReportPage-G32NOQFe-BOVMH67u.js → DashboardReportPage-G32NOQFe-CKy1nC1v.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DTkdczBR-Dm25xp1J.js → DashboardSidebarBackgroundAnimation-DTkdczBR-v_i9-lwP.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CQX9MBK--x7S3np6v.js → DepositAccTransactionItem-CQX9MBK--CWCsAg_Q.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C6lB4Qyv-67Okcjlq.js → DepositAccTransactionListPage-C6lB4Qyv-CuZ8nnnO.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-C2zlQj9Q.js → DomesticWireDetailsPage-Bgm_YYHM-DgP66AFx.js} +1 -1
- package/dist/assets/{DownloadOverlay-DN4zwFl5-BWBizCPI.js → DownloadOverlay-DN4zwFl5-BEzbatXT.js} +1 -1
- package/dist/assets/{DrawerPage-B-jrvyA1-D5alUPyS.js → DrawerPage-B-jrvyA1-CKA5TJxq.js} +1 -1
- package/dist/assets/{EditPeoplePage-BTXEd5bm-DPBckywd.js → EditPeoplePage-BTXEd5bm-_7IRpStx.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-BRw6nxEw.js → EditReimbursementDetailPage-5-BeM3DC-Dvvb6wio.js} +1 -1
- package/dist/assets/{EntityDetailPage-CCTwe1iu-DAg47Prp.js → EntityDetailPage-CCTwe1iu-C-sJ83i-.js} +1 -1
- package/dist/assets/{EntitySummarySection-B7uoP2ou-DZ_drzmW.js → EntitySummarySection-B7uoP2ou-CTFdZL_q.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Bz-2JPdW-DaIoHdOM.js → ExpenseAutomationOverviewPage-Bz-2JPdW-Do3fJYNG.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-W0eDJCTN.js → ExpenseAutomationPage-o8ox1q0R-CHZ8rQmT.js} +1 -1
- package/dist/assets/{ExpressPayPage-BdUERste-C5P04O3w.js → ExpressPayPage-BdUERste-DCzQgqA4.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-B6_exSoS-Do4_f9l1.js → FeaturePreviewPage-B6_exSoS-BqYYdx51.js} +1 -1
- package/dist/assets/{FollowStepsSection-BoA-EzkO-CtKbn8f6.js → FollowStepsSection-BoA-EzkO-d1Bp0uLs.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BRiHcGuf.js → GlobalReviewListPage-CYjobk5Y-BAd8-MIV.js} +1 -1
- package/dist/assets/{HelpButton-DEwtg0Ez-BLNCXJFp.js → HelpButton-DEwtg0Ez-DdlPkijU.js} +1 -1
- package/dist/assets/{InformationCardStack-Dvu4sQsc-BlKJwxKC.js → InformationCardStack-Dvu4sQsc-C3V_rhfP.js} +1 -1
- package/dist/assets/{InsightsCardStack-DffcRWuM-BTqxOdqS.js → InsightsCardStack-DffcRWuM-DdMPB19q.js} +1 -1
- package/dist/assets/{InsightsSection-C8Oi6wcZ-D3wuyBHx.js → InsightsSection-C8Oi6wcZ-BTvSiRSk.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-ks1Gh_uy.js → IntegrationsSettingsPage-C0VZQfG_-DdjKQOAK.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-BCh0Bmwt.js → InternationalWireSwiftDetailsPage-SAcvo9BB-DcOwGqfC.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-BQsNCeNp.js → InternationalWireVerificationPage-8Ff3v4gu-Cv5Opxe0.js} +1 -1
- package/dist/assets/{InviteFormPage-CRRvruND-BlSp_6On.js → InviteFormPage-CRRvruND-CnzFaBAu.js} +1 -1
- package/dist/assets/{InvitePageListView-DG91-L1w-HUdilJLK.js → InvitePageListView-DG91-L1w-Ccb2SPnd.js} +1 -1
- package/dist/assets/{InvitePeoplePage-6ANmf4z2-D3l-3sjy.js → InvitePeoplePage-6ANmf4z2-Gjpd5Nlk.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DEO_7ppT.js → InvoiceUploadSection-C4O7GGrv-DmRrXww6.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-gohjPIRu-KdDkWZ0o.js → IssueChargeCardPage-gohjPIRu-CyjyM7F6.js} +1 -1
- package/dist/assets/{LabeledAddressValue-C6EUPzNB-f8CKs718.js → LabeledAddressValue-C6EUPzNB-QLBvt6jx.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CC4nYBb8-CmuRvhjZ.js → LabeledAddressValueField-CC4nYBb8-CaZARfW3.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-DL54XhuW.js → LabeledControlledCheckBoxField-TB_2rc3R-D1lghLfJ.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-CwOMlXoT.js → LabeledCreatableSingleSelectField-CdgNcgTu-BM53pRh3.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CzTqgS97-CVWMa21M.js → LabeledDocumentField-CzTqgS97-DgW-cOWG.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-D5_Y7iWl.js → LabeledDropDownFormattedTextField-CVzL0J5a-CG2mVZcx.js} +1 -1
- package/dist/assets/{LabeledText-BICN3vpf-Lk4PuYrJ.js → LabeledText-BICN3vpf-j9xXYGac.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-tP0CG0Iv.js → LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-5ZbgY5UP.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-SyZHoQyC.js → LabeledZeniRolesDropDownField--Jr1KizL-C9drclxV.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BNWOmBHj-C6dNtx3m.js → LinkJETransactionPage-BNWOmBHj-7bLiUwjm.js} +1 -1
- package/dist/assets/{LowBalancePopup-Dhrtsv_E-B0rnJzet.js → LowBalancePopup-Dhrtsv_E-CHi-1sQp.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-ByLyPANb.js → MagicLinkACHDetailsPage-Brt9q6YZ-BF1Po-XI.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-DxqY0_R2.js → MagicLinkDomesticWireDetailsPage-CkSEgmKP-CnsVUDeG.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CV88Q6h1.js → MagicLinkInternationalWireDetailsPage-CqYC7uu7-CBxvvvyS.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-DUCuiXm5.js → MagicLinkSuccessPage-VR-HSAYZ-ekYBsb2w.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-C4uTRZc1.js → MagicLinkTitleSection-T6m2zH4A-BfT3nCUx.js} +1 -1
- package/dist/assets/{MailingDetailsSection-B6ZCAac5-CjQ8hXZb.js → MailingDetailsSection-B6ZCAac5-cPG_LVX_.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js → MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js} +1 -1
- package/dist/assets/{Menu-DOJJ_REW-BwD6B3Nk.js → Menu-DOJJ_REW-BCRwc2vM.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-BjsWlM7P.js → MyBankConnectionsSettingsPage-C_NrRV7T-Q0JyO2hZ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--fg7FpZSk.js → MyPendingActivationChargeCardListPage-CNHCZPs--CWT-l6Ro.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CIfFufvo-uBNLzBNw.js → MyProfileSettingsPage-CIfFufvo-DTHqDNHT.js} +1 -1
- package/dist/assets/{NavBarWithPicker-CvhnGryh-CauN1w5W.js → NavBarWithPicker-CvhnGryh-DdhjHjGJ.js} +1 -1
- package/dist/assets/{NavigationArrow-CXkUidH6-fqvGvSGZ.js → NavigationArrow-CXkUidH6-2_3iCUtc.js} +1 -1
- package/dist/assets/{NavigationDots-hBq7kHVj-Vj1p5Rqn.js → NavigationDots-hBq7kHVj-BCo98sBw.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-CYDIdofb.js → NewGlobalMerchantPage-DORHvz4D-BRtrbYV8.js} +1 -1
- package/dist/assets/{NoDataChart-C4KqN3ua-6H0vHNsB.js → NoDataChart-C4KqN3ua-9QC86ow3.js} +1 -1
- package/dist/assets/{NoDataTable-DaX07HI0-B6ZwwCAM.js → NoDataTable-DaX07HI0-DUwVgUQv.js} +1 -1
- package/dist/assets/{NotFoundPage-BIh20jzm-BXLRcjFX.js → NotFoundPage-BIh20jzm-sVTg_rO_.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Au_WueGH.js → NotificationSettingsPage-gU3g8rJ2-Dg6_eEe0.js} +1 -1
- package/dist/assets/{NotificationsListConfig-C14JCaD1-cAHM1Kht.js → NotificationsListConfig-C14JCaD1-htQ299sQ.js} +1 -1
- package/dist/assets/{NotificationsPage-oy3LHVU2-C0LKRRGq.js → NotificationsPage-oy3LHVU2-JTZhFwYV.js} +1 -1
- package/dist/assets/{OpExByVendorPage-D8jXzTd6-CpwZHxBM.js → OpExByVendorPage-D8jXzTd6-OW9DyZtS.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-Drnebvl5.js → OverlayContainerPage-Bmu909Fo-BNCWaeLU.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BQW2_QDB-BVhcDW_t.js → PandLWithForecastPage-BQW2_QDB-jLVVbQw5.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-ByBDQvaD.js → PaymentAccountSetupBillingAddressSection-CY9QJXXs-DuCBh-5g.js} +1 -1
- package/dist/assets/{PeoplePage-B7s3mjRX-BNB49xB2.js → PeoplePage-B7s3mjRX-C_HkK47k.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-eonsRKDg-CW4TIBlU.js → PortfolioAllocationFormPage-eonsRKDg-D0R6dTFQ.js} +1 -1
- package/dist/assets/{PortfolioDetails-BFqRNjFs-DdtIdWXw.js → PortfolioDetails-BFqRNjFs-B16IZ_Hj.js} +1 -1
- package/dist/assets/{ProductsCarousel-BaTq9uMB-DT3_7m1I.js → ProductsCarousel-BaTq9uMB-BdtwLLGf.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bf3Dizji-DFvWixK1.js → PromoBaseCards-Bf3Dizji-CUuhVAFC.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-BcCZx_dG.js → QBOConnectionDialog-DhOSSZ5O-Cmx6oO5C.js} +1 -1
- package/dist/assets/{QBOSetupSection-BWJoUKzu-DC5g6xXu.js → QBOSetupSection-BWJoUKzu-D4FI2JWK.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-B0xwHjcZ.js → ReimbursementApprovalRuleDetailPage-CiebC6vq-7wS_9PV2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-DxnMuJiA.js → ReimbursementApprovalRulesPage-gKLkrIyV-Ct61U8sq.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-A5yNZHmb.js → ReimbursementDetailPage-BF4vlfIm-CveG64HT.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BFwztEak-CceCs1UK.js → ReimbursementPromoPage-BFwztEak-DRUSiKPZ.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-CKntMkOU.js → ReimbursementSetUpPage-D1AVnqd4-Bl9OuMjF.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-B3Pgz4a_.js → ReimbursementsBulkReviewDrawerPage-BsqdpOS_-C8Evgmpl.js} +1 -1
- package/dist/assets/{ReloadCard-BmYf1NZf-DhNr8urp.js → ReloadCard-BmYf1NZf-CKjtyagc.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-yTxheyC3-CSqeEY6U.js → ReportTableViewSelector-yTxheyC3-DiW7eeSj.js} +1 -1
- package/dist/assets/{ReportsPage-DZtCp9CP-GUEOyiOt.js → ReportsPage-DZtCp9CP-CW3zHRvy.js} +1 -1
- package/dist/assets/{RevenueChart-CXSh5l_p-dQ5RnZTk.js → RevenueChart-CXSh5l_p-Cvtb1pE9.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DG7ms5Hy-bXyI7cqb.js → ReviewDetailsPage-DG7ms5Hy-CwXT2Ca2.js} +1 -1
- package/dist/assets/{ReviewOverlay-B2jf6tfG-D_9vNPuM.js → ReviewOverlay-B2jf6tfG-DrMTBexr.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DHdLJcWR-GnlXHGj6.js → RoleWithToolTip-DHdLJcWR-BIiBiCaf.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-9GRv9Sh2.js → ScheduleDetailsFixedAssetsPage-CY0i2n7i-Dy9Fl63v.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BcDI1QHR.js → ScheduleDetailsPage-CVh8-Sc9-BWH1TrGv.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-COgow_cL.js → ScheduleSequenceTable-8qqeMhAk-DxeA_i7k.js} +1 -1
- package/dist/assets/{ScreenRoutes-HggFEvBU.js → ScreenRoutes-Dmbs-WC7.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CKdSkMBO-Dgf4iucH.js → SetUpAccountSection-CKdSkMBO-RvUBOtno.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BM57n5BV-BGP1G39B.js → SetUpDefaultSection-BM57n5BV-DVG6pZDR.js} +1 -1
- package/dist/assets/{SignIn-BMjCrrGx-DVM_TdnN.js → SignIn-BMjCrrGx-B6jW8hme.js} +1 -1
- package/dist/assets/{SignInScreen-BP8BTBPi.js → SignInScreen-D9xxiCVL.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BphSarNr-olaU5e62.js → SpendManagementListViewPage-BphSarNr-Cl92vHkt.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BoJws23h.js → SpendManagementPerTabPage-DCkS4HuZ-BBuwXYWk.js} +1 -1
- package/dist/assets/{SpendManagementSection-DKqHikhq-CsTWl7zh.js → SpendManagementSection-DKqHikhq-hB-bTkoV.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-DSPc6rRK.js → SpendMgmtSetupAccountSection-BF7bb5O_-CZUZZ_7E.js} +1 -1
- package/dist/assets/{StatementItem-Ki_Mzpf9-D38JqRpj.js → StatementItem-Ki_Mzpf9-FWP9W3D7.js} +1 -1
- package/dist/assets/{StatementsPage-B6XMWWpt-Dr9BGLnN.js → StatementsPage-B6XMWWpt-CfSSyoxA.js} +1 -1
- package/dist/assets/{StatusSwitcher-BkAnAbyd-DQZA1a3w.js → StatusSwitcher-BkAnAbyd-DhZFTaVL.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Au3snima-DElPxhu-.js → SubTabSwitcher-Au3snima-KoDMUDJP.js} +1 -1
- package/dist/assets/{SummaryCard-B-IXQpJ7-Dg8CCNrn.js → SummaryCard-B-IXQpJ7-Bb42YLKq.js} +1 -1
- package/dist/assets/{TaskManagementPage-BPNEy-p0-BIbh7B8y.js → TaskManagementPage-BPNEy-p0-BA-MVkpi.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-CoKhjSY7.js → TimeRangeSwitcher-DpDC0FGn-BeYaJEn7.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1cuigpc-D9PCDoa0.js → TimeframeSwitcher-D1cuigpc-Cz5nqZB9.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-Cc6NrQTz.js → TimeframeSwitcherWithToggle-_2U17Wg0-DGs87cY3.js} +1 -1
- package/dist/assets/{TopExCard-BWOozDK3-GMojpRJp.js → TopExCard-BWOozDK3-DDnX9T6b.js} +1 -1
- package/dist/assets/{TopExDetailPage-DpYLakrO-vsCGpsy3.js → TopExDetailPage-DpYLakrO-DvZBg7fP.js} +1 -1
- package/dist/assets/{TransactionDetailPage-Bxzam_ho-gn2TcHkj.js → TransactionDetailPage-Bxzam_ho-ytwgKMhn.js} +1 -1
- package/dist/assets/{TransactionList-CEfjoVPA-DR1uAuMl.js → TransactionList-CEfjoVPA-Fnrm73eH.js} +1 -1
- package/dist/assets/{TransactionListBig-CefZbd83-D9G3vxbN.js → TransactionListBig-CefZbd83-DMzncjPA.js} +1 -1
- package/dist/assets/{TransactionListPage-CM319tsV-DkNHohDS.js → TransactionListPage-CM319tsV-zDExAxeI.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-D3T9JsrE.js → TransactionVendorDetailPage-Z7O-juRN-BW7z7Azf.js} +1 -1
- package/dist/assets/{TransferDrawerPage-0vQtF6ID-fpHDlHlf.js → TransferDrawerPage-0vQtF6ID-D9OzOZ5A.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-BtE7UAml.js → TreasuryOverviewPage-DaCuL9FX-DYMVFkUe.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-DpBYobqK.js → TreasuryPromoPage-BQ6Cuqoa-BaiGRfzl.js} +1 -1
- package/dist/assets/{TreasurySetupPage-BJRBNCvY-DTKYqc-u.js → TreasurySetupPage-BJRBNCvY-D5jIb5sO.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-B6xE_NLh.js → TreasuryStatementsPage-z6cg-MO_-CmmWNkYy.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-DJ913yYo.js → TreasuryTaxLetterPage-DP-c4Sqo-C_l8Gxih.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-DSEBAJOM.js → TreasuryTransferOrReviewPage-BGfIlPXx-BehP5Xwy.js} +1 -1
- package/dist/assets/{TrendChart-BAMRDfp7-BazRtItt.js → TrendChart-BAMRDfp7-C3XYi6nw.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CgbouMHP-BeJkYy2u.js → TrendWithTransactions-CgbouMHP-DZBB4tt9.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2--ZQ9jdii.js → UncategorizedAccountsMappingPage-DUVjNpg2-BHgtmgBi.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DSWbn8gm-BF5pvmYs.js → UnitIntegrationPage-DSWbn8gm-B4Ou25f_.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-TNCvf1wH.js → UploadAdditionalDocumentOverlay-BFn9gixM-BNf1qOT4.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CA-cVVNX-Br4ikl9I.js → Vendor2FAPopup-CA-cVVNX-if5nT9kw.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-D1EJLe9f.js → VendorACHDetailsPage-Hdw6gHNB-Dbljblmv.js} +1 -1
- package/dist/assets/{VendorDetailPage-CceVHonS-DTF5QB-w.js → VendorDetailPage-CceVHonS-Pq3jkMrt.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-CRNdIBeH.js → VendorDomesticWireDetailsPage-ChF-hj1o-BZmPD8iA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-D-QjmAYA.js → VendorFiling1099EditablePage-BnMmu8g4-BrMoF3qX.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-iubpjCjr.js → VendorFirstReviewPage-C9LNBxKs-F-MIWQgi.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-CehAU7df.js → VendorInternationalWireDetailsPage-B8F_1TYL-Bsx2kP_t.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-DolPnQw8.js → VendorInternationalWireSwiftDetailsPage-HuCjhvn4-Cqo_E_R0.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-B9ouaYU2.js → VendorsAccountsSection-Cj3NFdKN-CZGZ3lbp.js} +1 -1
- package/dist/assets/{VerifyDevice-dg83_W2W-DmiPoszu.js → VerifyDevice-dg83_W2W-db8vxgEO.js} +1 -1
- package/dist/assets/{VideoPopup-0LSxcyRX-CeJLs_Z5.js → VideoPopup-0LSxcyRX-Dg1obuHI.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DR9oeIuj-B1HHe12t.js → WarningsDrawerPage-DR9oeIuj-BGAzKYV3.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-D4m750Dj.js → ZeniAccountDetailPage-DHl0vyQ0-QUKSLtDI.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DA-thvu8.js → ZeniAccountListViewPage-BC1yUQbd-DvE1_-3Q.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-CQBSadEV.js → ZeniAccountNavBarPieces-CpKh4Vxw-C7ZAIazr.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-DDgMDs51.js → ZeniAccountPromoPage-BaRzPlIW-KoQmtnm_.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CveI2__B-BL7QVBOR.js → ZeniAccountSetupPage-CveI2__B-D63zX7um.js} +1 -1
- package/dist/assets/{ZeniCopyright-D6e3OekQ-3nIDquq3.js → ZeniCopyright-D6e3OekQ-DUr2raAa.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-DOVMp_BS.js → ZeniTransferAmountSlider-BqyHxYBn-BeVNGkCh.js} +1 -1
- package/dist/assets/{analyticsHelper-CYiy63P3-BIFQ1l_N.js → analyticsHelper-CYiy63P3-ZsDfu10l.js} +1 -1
- package/dist/assets/{analyticsHelper-q5gZKv1q.js → analyticsHelper-kBY_WnuZ.js} +1 -1
- package/dist/assets/{chartTypes-sx4859ds-GbS6VOEl.js → chartTypes-sx4859ds-DQIhaauj.js} +1 -1
- package/dist/assets/{commonDimensions-DbTYS1hy-sQ0jQuuT.js → commonDimensions-DbTYS1hy-q1OJGzej.js} +1 -1
- package/dist/assets/{detailCommon-BeqWtSZF-C3x-L6T7.js → detailCommon-BeqWtSZF-DN5q8hn4.js} +1 -1
- package/dist/assets/{downloadPdf-CLTp2aZt-DDw4mfQ_.js → downloadPdf-CLTp2aZt-ev2v3-yy.js} +1 -1
- package/dist/assets/{index-P_4M6V8j.js → index-NilHeiJu.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Dr2U1vob.js → mapLoadingInProgressToTreeNode-Dl_IFb2l-Cq8XhJtM.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-BvR2g837.js → mapSectionWithAcOnlyToTreeNode-BAhSN9Et-CnYxsg0R.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-3b46l63c-C8ssHh5s.js → mapSpacerToTreeNode-3b46l63c-CMjlOqUe.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-CgCBO3AW.js → mapTimeframeBalancesToTreeNode-3pTXOISe-UJZDjMX_.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-s-wMhKIa.js → mapTimeframeBalancesToTreeNode-DJqcH4tL-dBteZqAP.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-Buokl7Z0.js → mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-B3XLpQv_.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-D49XFhoj-DjL9meL6.js → toCOABalancesWithID-D49XFhoj-p77KsEJK.js} +1 -1
- package/dist/assets/{toChartData-C9pHl0xA-CKVc0-Yj.js → toChartData-C9pHl0xA-peeaxrwr.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CkjbPhqI-PraXB90r.js → treasuryColorHelper-CkjbPhqI-DTu39-tM.js} +1 -1
- package/dist/assets/{uploadAttachment-BniS82zn-BreMBxbN.js → uploadAttachment-BniS82zn-CRjJ8eJB.js} +1 -1
- package/dist/assets/{uploadReceipts-dxsKhm9I-wO4Dla2j.js → uploadReceipts-dxsKhm9I-D4Vuwibk.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-C9nb1PSk.js +0 -1
package/dist/assets/{BillDetailPage-DU3KKWCI-Dgx7cNS3.js → BillDetailPage-DU3KKWCI-BZd_KVnK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as _n,fR as Wn,bI as Zn,a1 as Kn,M as Vn,C as u,j as t,l as E,cL as it,cM as Un,o as a,cN as Yn,cO as Xn,_ as b,cP as Gn,$ as Ae,cQ as Hn,aW as lt,aJ as ot,dt as rt,bU as st,bW as dt,bX as ct,fS as qn,fT as Jn,fU as Qn,fV as ea,cV as $,cW as j,cX as I,fW as A,cU as ta,v as pt,g as ie,cY as Rt,cZ as na,c_ as aa,c$ as ia,fX as la,fY as oa,a3 as ra,p as mt,bA as Te,fZ as sa,f_ as O,q as r,x as da,bw as ca,f$ as pa,a2 as ma,g0 as ua,g1 as ut,d3 as yt,X as ya,cA as ha,bN as ba,al as xa,an as ga,L as fa,bp as zt,g2 as wa,i as Mt,ab as Ta,aj as va,aO as Da,eL as $a,n as ja}from"./index-P_4M6V8j.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Ia}from"./liveblocks-CP09Cz-7.js";import{o as Aa,t as ka}from"./LowBalancePopup-Dhrtsv_E-B0rnJzet.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Lt,isInternationalPaymentShaVsOurEnabled:Ft,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Xt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Ln(),[Qt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Le,de]=p.useState(!1),[en,ce]=p.useState(!1),[Fe,H]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Fn:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(q(pe.threadId),Ee(null))},[pe,Y,P,q,Ee]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ye]=p.useState(!1),Xe=()=>Ke(!1),rn=()=>Ke(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),Q=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),Q())},[Ge,e.zeniAssist?.refundStatus,Q]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&X?.code?X:ee,S=Na(v,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:X?.code!=null&&(ee?.code=="approved"||X.code==="mark_as_paid")?X:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Le),z.trackZeniAssistClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{e as Nn,Y as On,u as Ln,fO as Fn,fP as En,fQ as _n,fR as Wn,bI as Zn,a1 as Kn,M as Vn,C as u,j as t,l as E,cL as it,cM as Un,o as a,cN as Yn,cO as Xn,_ as b,cP as Gn,$ as Ae,cQ as Hn,aW as lt,aJ as ot,dt as rt,bU as st,bW as dt,bX as ct,fS as qn,fT as Jn,fU as Qn,fV as ea,cV as $,cW as j,cX as I,fW as A,cU as ta,v as pt,g as ie,cY as Rt,cZ as na,c_ as aa,c$ as ia,fX as la,fY as oa,a3 as ra,p as mt,bA as Te,fZ as sa,f_ as O,q as r,x as da,bw as ca,f$ as pa,a2 as ma,g0 as ua,g1 as ut,d3 as yt,X as ya,cA as ha,bN as ba,al as xa,an as ga,L as fa,bp as zt,g2 as wa,i as Mt,ab as Ta,aj as va,aO as Da,eL as $a,n as ja}from"./index-NilHeiJu.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Ia}from"./liveblocks-CP09Cz-7.js";import{o as Aa,t as ka}from"./LowBalancePopup-Dhrtsv_E-CHi-1sQp.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Lt,isInternationalPaymentShaVsOurEnabled:Ft,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Xt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Ln(),[Qt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Le,de]=p.useState(!1),[en,ce]=p.useState(!1),[Fe,H]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Fn:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(q(pe.threadId),Ee(null))},[pe,Y,P,q,Ee]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ye]=p.useState(!1),Xe=()=>Ke(!1),rn=()=>Ke(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),Q=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),Q())},[Ge,e.zeniAssist?.refundStatus,Q]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&X?.code?X:ee,S=Na(v,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:X?.code!=null&&(ee?.code=="approved"||X.code==="mark_as_paid")?X:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Le),z.trackZeniAssistClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Qe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Qe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,jn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",In=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&jn===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Xt(),Ve(!1),Ue&&Ye(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Yn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Fe===!0&&H(!1),_!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ha,{windowSize:l,ref:at,children:[t.jsx(Xn,{anchor:"right",open:ln,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Gn,{companyName:Hn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Qe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>Q(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Fe?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{H(!1),He()},onClickAway:()=>{H(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Qt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(qn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,_),t.jsx(Qn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Qa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&k?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Ft&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wa,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Fa(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Lt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Gt,onSaveRealTimeApprovals:Ht},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:La(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?H(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ga,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&F&&_t?t.jsx(W,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Le?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",L?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[In===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ya,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ia,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:Y,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},La=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Fa=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Wa=i.div``,Za=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,q as B,e as O,M as D,a as M,a1 as W,j as o,V as G,c9 as X,aW as Z,F as H,a3 as J,o as c}from"./index-
|
|
1
|
+
import{C as z,q as B,e as O,M as D,a as M,a1 as W,j as o,V as G,c9 as X,aW as Z,F as H,a3 as J,o as c}from"./index-NilHeiJu.js";import{b as L,n as h}from"./vendor-rkTZJa59.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-BoA-EzkO-d1Bp0uLs.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const C="billPayApprovalRuleDetailPage",E="lowerBound",T="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=O(),l=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const q=G(d);X(()=>V(U,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:E,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[E]: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:R},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,bW as U,bX as G,o as i,cw as q,q as l,an as X,X as z,am as O,g as S,ct as V,aO as _,v as F}from"./index-
|
|
1
|
+
import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,$ as j,bU as E,bW as U,bX as G,o as i,cw as q,q as l,an as X,X as z,am as O,g as S,ct as V,aO as _,v as F}from"./index-NilHeiJu.js";import{n as o,b as J}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},Y=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=J.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{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}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DvBp9dFZ-DT65a4C3.js → BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as _,e as f,a1 as ee,l as g,M,j as e,aW as ie,J as B,_ as C,c as x,o as l,s as le,c6 as se,u as U,a5 as L,B as oe,C as te,g as S,c8 as re,a6 as ae,ao as ne,q as de}from"./index-
|
|
1
|
+
import{Y as _,e as f,a1 as ee,l as g,M,j as e,aW as ie,J as B,_ as C,c as x,o as l,s as le,c6 as se,u as U,a5 as L,B as oe,C as te,g as S,c8 as re,a6 as ae,ao as ne,q as de}from"./index-NilHeiJu.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js";import{m as pe}from"./VideoPopup-0LSxcyRX-Dg1obuHI.js";import{M as z}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new te(de[5],44)},me=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-D7335PCo-lcC21Rm6.js → BillPaySetUpPage-D7335PCo-DjOfSrPK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as _e,e as $e,a1 as E,a as De,c9 as Re,M as Ue,l as He,a7 as Q,j as t,cO as ze,_ as Le,g as Me,C as u,aW as qe,m as Ne,F as Ge,dO as Je,aR as Ye,dE as Ke,bA as Qe,f0 as Ze,a3 as Xe,o as L,q as a,n as et,b5 as tt}from"./index-
|
|
1
|
+
import{u as _e,e as $e,a1 as E,a as De,c9 as Re,M as Ue,l as He,a7 as Q,j as t,cO as ze,_ as Le,g as Me,C as u,aW as qe,m as Ne,F as Ge,dO as Je,aR as Ye,dE as Ke,bA as Qe,f0 as Ze,a3 as Xe,o as L,q as a,n as et,b5 as tt}from"./index-NilHeiJu.js";import{b as f,n as g}from"./vendor-rkTZJa59.js";import{F as it}from"./HelpButton-DEwtg0Ez-DdlPkijU.js";import"./SetUpAccountSection-CKdSkMBO-RvUBOtno.js";import{Y as H}from"./SetUpDefaultSection-BM57n5BV-DVG6pZDR.js";import{f as nt}from"./SpendMgmtSetupAccountSection-BF7bb5O_-CZUZZ_7E.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BFn9gixM-BNf1qOT4.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js";import"./ChaseOverlay-BaGgoJZk-DWWls_0t.js";import"./ChargeCardUtils-DQztOSYJ-CLG3pIYt.js";import"./CreditCardPaymentPlgSection-Cz-CSdKg-DXgZPZoJ.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Z="billPaySetUpPage",V="billPayAccount",Bt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=_e(),i=$e(),[k,S]=f.useState(!1),q=f.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:O,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,_=O.link_account.updateStatus,$=O.update_account.updateStatus,F=E(p),J=E(b.fetchState),Y=E(_.fetchState),K=E($.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>z(e),[e]),values:z(e)});f.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),f.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||Y==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&$.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,Y,_.fetchState,K,$.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Be=async(P,I)=>{const o=I[V];if(P.includes(V)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const m=N.find(U=>U.id===o.fundingAccount.selectedOption);m!=null&&pe(o.fundingAccount.selectedOption,m.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const m=o.account.allOptions.find(U=>U.value===o.account.selectedOption);m!=null&&typeof m.label=="string"&&y.trackConnectBankLink(m.value,m.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};f.useEffect(()=>{const P=x.watch((I,{name:o})=>{o!=null&&I!=null&&Re(()=>Be(o,I))});return()=>{P.unsubscribe()}}),f.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ee.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ve=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),Oe=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ve}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:X(Z),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:Oe,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:O,allBankAccounts:Ae,sectionId:V,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Xe,{formId:X(Z),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,e as Ce,a as xe,c9 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,m as Ie,F as ve,aR as je,ca as ke,a3 as $e,o as s,h7 as Be,cC as Ee,cD as Te,q as b,n as Ve,gm as Oe,X as ze,g as De}from"./index-
|
|
1
|
+
import{u as fe,e as Ce,a as xe,c9 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,m as Ie,F as ve,aR as je,ca as ke,a3 as $e,o as s,h7 as Be,cC as Ee,cD as Te,q as b,n as Ve,gm as Oe,X as ze,g as De}from"./index-NilHeiJu.js";import{b as H,n as r}from"./vendor-rkTZJa59.js";import{M as Le,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-CY9QJXXs-DuCBh-5g.js";import{O as Re}from"./SetUpAccountSection-CKdSkMBO-RvUBOtno.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./SetUpDefaultSection-BM57n5BV-DVG6pZDR.js";import"./ChaseOverlay-BaGgoJZk-DWWls_0t.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},F="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,E=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),T=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ee(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:O}=be.getLocalizedStrings(),ge=O.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",L=m?.addCardPaymentSourceStatus.fetchState,x=Le(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(D).name}),color:new k(V)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(Fe,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:O.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(_e,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:E?.code==="require_info"||E?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ke(i,l.headers.billingAddress,ce,N,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(F),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:R,setCardSetupInProgress:we})]})},_=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Be(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as V,j as b,bU as q,bW as M,bX as W,jh as X,l as z,aa as H}from"./index-
|
|
1
|
+
import{M as V,j as b,bU as q,bW as M,bX as W,jh as X,l as z,aa as H}from"./index-NilHeiJu.js";import{b as _}from"./vendor-rkTZJa59.js";import{m as Y}from"./ReviewOverlay-B2jf6tfG-DrMTBexr.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:f}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[w,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=G(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,f),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,f,Z(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:U}=J(m,y,R,p),I=t.fetchState==="Completed"&&y===0,$=()=>{r.trackBillPayBulkSubmit(i,g,f),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:N,description:{content:U,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:L,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:H("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=X([...l,e.isRecurring?"recurring":"one-time"])}),l},G=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:f,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:f)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Z as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,j as s,_ as b,o as r}from"./index-
|
|
1
|
+
import{e as h,j as s,_ as b,o as r}from"./index-NilHeiJu.js";import{n as p}from"./vendor-rkTZJa59.js";import{o as l}from"./commonDimensions-DbTYS1hy-q1OJGzej.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,e as tt,a1 as we,j as a,M as Te,c as W,a as at,cn as it,l as L,A as st,c9 as nt,aa as rt,a0 as ot,J as lt,aW as ct,_ as dt,ca as mt,bU as pt,bW as ut,bX as ft,m as yt,F as ht,a3 as gt,o,C as N,B as ke,fI as xt,fg as Ce,cC as St,c6 as wt,a2 as Ct,n as Ie,X as bt,h as vt,q as I}from"./index-P_4M6V8j.js";import{b as P,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-B5d06n1B-shOCzvZi.js";import{r as kt}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./LabeledAddressValueField-CC4nYBb8-CmuRvhjZ.js";import"./LabeledCreatableSingleSelectField-CdgNcgTu-CwOMlXoT.js";import"./LabeledDocumentField-CzTqgS97-CVWMa21M.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,I[3]),subTitlePaddingBottom:new N(I[3],I[3]),verificationDetailsRowGap:new N(12,I[5],I[5]),termsPaddingLeftRight:new N(I[0],I[3])},It={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:_,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:Y,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:Be,onClickMenuIcon:_e})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(zt,{children:[s.terms.term1,a.jsx(W,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(W,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(W,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(W,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,X]=P.useState(!1),[M,se]=P.useState("save"),[G,Me]=P.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,z,E,A)}),{isValid:We}=p.formState,Z=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?q?.companyVerificationStatus:Z?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Xe=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,k=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,K=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Q=l?.primaryContactLocalData,ge=Q?.firstName,xe=Q?.lastName,Se=Q?.email;i!=null&&f!=null&&C!=null&&k!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&K!=null&&fe!=null&&ye!=null&&ue!=null&&K!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:K,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ge=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",k=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ze=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&We&&(Xe(),Ve?.(T))}),Je=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},He=P.useCallback(st((e,i)=>{Je(e,i)},300),[]);P.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>He(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),J=re?.map(e=>e.user),Ke=re?.map(e=>e.role),Qe={onOkClick:()=>{X(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Ke?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{X(!1)}},Ye=rt(ot(u),u,jt.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(qt,{children:[a.jsx(kt,{}),a.jsx(Jt,{windowSize:m,children:s.submittedTitle}),a.jsx(Gt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Nt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:G?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?X(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:_e,rightSideComponent:h?a.jsx(Ht,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Qe}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(Et,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:H?s.businessVerificationDetails:s.verifyBusinessDetails}),!H&&a.jsx(Ut,{children:a.jsxs(Mt,{children:[a.jsx(Wt,{}),a.jsx(Xt,{})]})})]}),a.jsx($e,{isReadonly:H,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Bt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:J??[],sectionId:v,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:Y,onDeleteFile:ae,isDisabled:$,filesEndPoint:r,authParams:_,isPopupOpen:G,openPopup:Me,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:Y,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?a.jsx(_t,{windowSize:m,children:s.threadText.replace("__amount__",Ye)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":Z?.businessVerificationStatus?.code!=="pending_review"&&Z?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ge(),C=Ze();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),Be?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:G?0:4}}):null]})},Pt=(t,A,F,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=t,z=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(_).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,e as tt,a1 as we,j as a,M as Te,c as W,a as at,cn as it,l as L,A as st,c9 as nt,aa as rt,a0 as ot,J as lt,aW as ct,_ as dt,ca as mt,bU as pt,bW as ut,bX as ft,m as yt,F as ht,a3 as gt,o,C as N,B as ke,fI as xt,fg as Ce,cC as St,c6 as wt,a2 as Ct,n as Ie,X as bt,h as vt,q as I}from"./index-NilHeiJu.js";import{b as P,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-B5d06n1B-D-gHI0TC.js";import{r as kt}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./LabeledAddressValueField-CC4nYBb8-CaZARfW3.js";import"./LabeledCreatableSingleSelectField-CdgNcgTu-BM53pRh3.js";import"./LabeledDocumentField-CzTqgS97-DgW-cOWG.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,I[3]),subTitlePaddingBottom:new N(I[3],I[3]),verificationDetailsRowGap:new N(12,I[5],I[5]),termsPaddingLeftRight:new N(I[0],I[3])},It={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:_,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:Y,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:Be,onClickMenuIcon:_e})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(zt,{children:[s.terms.term1,a.jsx(W,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(W,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(W,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(W,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,X]=P.useState(!1),[M,se]=P.useState("save"),[G,Me]=P.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,z,E,A)}),{isValid:We}=p.formState,Z=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?q?.companyVerificationStatus:Z?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Xe=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,k=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,K=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Q=l?.primaryContactLocalData,ge=Q?.firstName,xe=Q?.lastName,Se=Q?.email;i!=null&&f!=null&&C!=null&&k!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&K!=null&&fe!=null&&ye!=null&&ue!=null&&K!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:K,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ge=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",k=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ze=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&We&&(Xe(),Ve?.(T))}),Je=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},He=P.useCallback(st((e,i)=>{Je(e,i)},300),[]);P.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>He(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),J=re?.map(e=>e.user),Ke=re?.map(e=>e.role),Qe={onOkClick:()=>{X(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Ke?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{X(!1)}},Ye=rt(ot(u),u,jt.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(qt,{children:[a.jsx(kt,{}),a.jsx(Jt,{windowSize:m,children:s.submittedTitle}),a.jsx(Gt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Nt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:G?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?X(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:_e,rightSideComponent:h?a.jsx(Ht,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Qe}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(Et,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:H?s.businessVerificationDetails:s.verifyBusinessDetails}),!H&&a.jsx(Ut,{children:a.jsxs(Mt,{children:[a.jsx(Wt,{}),a.jsx(Xt,{})]})})]}),a.jsx($e,{isReadonly:H,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Bt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:J??[],sectionId:v,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:Y,onDeleteFile:ae,isDisabled:$,filesEndPoint:r,authParams:_,isPopupOpen:G,openPopup:Me,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:Y,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?a.jsx(_t,{windowSize:m,children:s.threadText.replace("__amount__",Ye)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":Z?.businessVerificationStatus?.code!=="pending_review"&&Z?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ge(),C=Ze();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),Be?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:G?0:4}}):null]})},Pt=(t,A,F,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=t,z=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(_).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as g,M as w,j as t,v as x,X as $,o as s,h as C}from"./index-
|
|
1
|
+
import{e as g,M as w,j as t,v as x,X as $,o as s,h as C}from"./index-NilHeiJu.js";import{n as o,b as d}from"./vendor-rkTZJa59.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,e as f,j as t,aW as te,M as w,cU as P,v as u,ai as N,bt as ie,o as i,g as B,C as h,n as v,dg as oe,l as y,q as l,b6 as re,b7 as ae,av as se,au as ne,aa as de,b8 as le,ba as ce,iu as he,$ as T,bm as pe,_ as z,i as $,iv as q,iw as _,ic as me,c2 as ge,c5 as xe,B as O,id as we,ie as ue}from"./index-
|
|
1
|
+
import{u as k,e as f,j as t,aW as te,M as w,cU as P,v as u,ai as N,bt as ie,o as i,g as B,C as h,n as v,dg as oe,l as y,q as l,b6 as re,b7 as ae,av as se,au as ne,aa as de,b8 as le,ba as ce,iu as he,$ as T,bm as pe,_ as z,i as $,iv as q,iw as _,ic as me,c2 as ge,c5 as xe,B as O,id as we,ie as ue}from"./index-NilHeiJu.js";import{n as o,f as R,b as V}from"./vendor-rkTZJa59.js";import{F as ye}from"./InsightsSection-C8Oi6wcZ-BTvSiRSk.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./NavigationDots-hBq7kHVj-BCo98sBw.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(G,{children:W.month})," ",t.jsx(A,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(A,{children:T("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,e as fe,Y as nt,d5 as st,fi as Ka,l as Ne,h1 as qr,a7 as He,M as pe,fj as Xa,j as t,gr as Gr,aW as Kr,q as c,fr as Ja,$ as ye,_ as Z,o as a,bA as Pt,g as p,ig as Qa,v as _,bU as Xr,ih as Jr,cO as Qr,gh as ei,a as ti,gk as ai,cu as ri,C as D,p as ii,F as oi,fJ as ni,J as Ct,a_ as si,bf as er,a5 as Mt,ii as di,ij as tr,b5 as ar,ao as Ot,eV as ci,a6 as rr,ae as li,ik as hi,il as pi,al as Vt,i as ge,ez as ui,ib as mi,ay as dt,fk as ir,m as ot,ai as gi,dl as Ci,bZ as fi,bW as wi,cB as xi,g_ as yi,n as be,bp as or,im as bi,fl as je,dt as ft,d3 as Si,X as ha,h as nr,an as $i,io as vi,eT as ki,c2 as sr,ip as Li,w as ut,bt as pa,aS as ji,dd as Di,eE as Ii,B as et,ff as Ai,s as Ti,L as Ri,a2 as Fi,b0 as Ei,iq as xt,d0 as zi,bm as Pi,ir as dr,is as cr,g3 as lr,it as wt,hD as hr,ic as Mi,c5 as Oi,ef as pr,id as Vi,ie as Hi,dO as Ni,cw as Bi,el as Wi,bL as Ui,bM as _i}from"./index-
|
|
1
|
+
import{u as Be,e as fe,Y as nt,d5 as st,fi as Ka,l as Ne,h1 as qr,a7 as He,M as pe,fj as Xa,j as t,gr as Gr,aW as Kr,q as c,fr as Ja,$ as ye,_ as Z,o as a,bA as Pt,g as p,ig as Qa,v as _,bU as Xr,ih as Jr,cO as Qr,gh as ei,a as ti,gk as ai,cu as ri,C as D,p as ii,F as oi,fJ as ni,J as Ct,a_ as si,bf as er,a5 as Mt,ii as di,ij as tr,b5 as ar,ao as Ot,eV as ci,a6 as rr,ae as li,ik as hi,il as pi,al as Vt,i as ge,ez as ui,ib as mi,ay as dt,fk as ir,m as ot,ai as gi,dl as Ci,bZ as fi,bW as wi,cB as xi,g_ as yi,n as be,bp as or,im as bi,fl as je,dt as ft,d3 as Si,X as ha,h as nr,an as $i,io as vi,eT as ki,c2 as sr,ip as Li,w as ut,bt as pa,aS as ji,dd as Di,eE as Ii,B as et,ff as Ai,s as Ti,L as Ri,a2 as Fi,b0 as Ei,iq as xt,d0 as zi,bm as Pi,ir as dr,is as cr,g3 as lr,it as wt,hD as hr,ic as Mi,c5 as Oi,ef as pr,id as Vi,ie as Hi,dO as Ni,cw as Bi,el as Wi,bL as Ui,bM as _i}from"./index-NilHeiJu.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-rkTZJa59.js";import{k as Yi}from"./NavigationDots-hBq7kHVj-BCo98sBw.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-DQztOSYJ-CLG3pIYt.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-y8nGTHEa.js";import{R as ao}from"./CardNumberSubText-8FNDlBHV-CNyFCSaC.js";import{r as fr}from"./mui-C42whWwM.js";import{l as wr}from"./uploadReceipts-dxsKhm9I-D4Vuwibk.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d5 as St,Y as jt,fq as vt,l as M,fl as v,e as pe,M as Oe,o as a,u as _e,j as t,aW as kt,fE as Pt,cU as A,v as C,bA as de,g as n,$ as Tt,aa as ce,_ as me,C as O,i as E,X as It,h as Mt,cr as At,aC as Fe,b5 as Et,ae as ue,a5 as Lt,B as ge,q as T,d6 as Rt,s as Dt,n as zt,c6 as Bt,cq as Nt,aQ as Ot}from"./index-
|
|
1
|
+
import{d5 as St,Y as jt,fq as vt,l as M,fl as v,e as pe,M as Oe,o as a,u as _e,j as t,aW as kt,fE as Pt,cU as A,v as C,bA as de,g as n,$ as Tt,aa as ce,_ as me,C as O,i as E,X as It,h as Mt,cr as At,aC as Fe,b5 as Et,ae as ue,a5 as Lt,B as ge,q as T,d6 as Rt,s as Dt,n as zt,c6 as Bt,cq as Nt,aQ as Ot}from"./index-NilHeiJu.js";import{b as N,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-DKqHikhq-hB-bTkoV.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-CRqyciNL-BVrnHPJ6.js";import{N as Ut,J as Yt}from"./PromoBaseCards-Bf3Dizji-CUuhVAFC.js";import{M as Gt}from"./ChargeCardListTable-BuI0T0Bn-D8Xh4Bma.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as qt,o as Vt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js";import"./NavigationDots-hBq7kHVj-BCo98sBw.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-DOJJ_REW-BCRwc2vM.js";import"./RoleWithToolTip-DHdLJcWR-BIiBiCaf.js";import"./CardNumberSubText-8FNDlBHV-CNyFCSaC.js";import"./ChargeCardUtils-DQztOSYJ-CLG3pIYt.js";const be={infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ve=Oe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=pe();return t.jsxs(Xt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:d}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(la,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Qt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:d})}),t.jsx(da,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Zt=e=>{const s=e-1;let d=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,bI as $i,e as _,Y as ee,d5 as fi,u as de,fi as vi,i6 as Ci,i7 as yi,i8 as ji,_ as b,M,bR as bi,v as re,g as y,ai as ki,bZ as Si,i9 as Ii,ia as zi,o as t,bf as Li,a5 as Ri,C as p,ez as Pi,ao as Di,ib as Ui,a6 as Ni,ay as Ti,i as F,fk as _i,q as a,dt as Mi,$ as T,b$ as De,m as Ue,bA as le,bm as Vi,B as k,c2 as we,n as U,i0 as ue,b5 as Ne,bd as Te,ic as Ei,c5 as Oi,a7 as X,id as Fi,ie as Wi}from"./index-
|
|
1
|
+
import{j as i,bI as $i,e as _,Y as ee,d5 as fi,u as de,fi as vi,i6 as Ci,i7 as yi,i8 as ji,_ as b,M,bR as bi,v as re,g as y,ai as ki,bZ as Si,i9 as Ii,ia as zi,o as t,bf as Li,a5 as Ri,C as p,ez as Pi,ao as Di,ib as Ui,a6 as Ni,ay as Ti,i as F,fk as _i,q as a,dt as Mi,$ as T,b$ as De,m as Ue,bA as le,bm as Vi,B as k,c2 as we,n as U,i0 as ue,b5 as Ne,bd as Te,ic as Ei,c5 as Oi,a7 as X,id as Fi,ie as Wi}from"./index-NilHeiJu.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-DOJJ_REW-BCRwc2vM.js";import{T as Me}from"./RoleWithToolTip-DHdLJcWR-BIiBiCaf.js";import{R as ce}from"./CardNumberSubText-8FNDlBHV-CNyFCSaC.js";import{_ as Ve}from"./ChargeCardUtils-DQztOSYJ-CLG3pIYt.js";const W=M.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Hi=M.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...fe,width:new p(0,0),value:Hi},ve,Ce,ye,je,be]:[fe,ve,Ce,ye,je,be],z={containerPaddingLeft:t.sp2,containerPaddingRight:t.sp3,containerPaddingTop:t.sp3,containerPaddingBottom:t.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Fi,Wi)};function Bi({companyNameSticky:e,sortConfig:o,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===o.sortKey?g.sortOrder=o.sortOrder:g.sortOrder="ascending";w(s)},[o.sortKey,o.sortOrder]);const u=(s,g)=>{let f=g;o.sortKey===s&&(f=g==="ascending"?"descending":"ascending"),h(s,f)},$=c.find(s=>s.key===o.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=M.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Zi,{children:[i.jsx(et,{children:i.jsx(Gi,{})}),i.jsx(Vi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:re.extraSmallRegular,titleTextStyle:re.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rt,{onClick:()=>u($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Yi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Qi,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(tt,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(it,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Xi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",o.sortKey)})})]},s.key))})})}const Ki=Ai.memo(Bi),qi=r.div`
|
|
2
2
|
top: ${t.sp0};
|
|
3
3
|
left: ${t.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as b,M as oe,j as r,u as G,Y as $e,d5 as ye,a1 as be,$ as je,l as Se,fq as Te,aW as ze,J as Q,_ as ee,o as t,c6 as ve,L as O,c7 as Pe,s as ke,C as x,bV as Ae,bA as Be,i4 as Ie,i as Le,q as g,X as j,g as $,ao as Me,a6 as Re,i5 as _e}from"./index-P_4M6V8j.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js";import{k as Ue}from"./NavigationDots-hBq7kHVj-Vj1p5Rqn.js";import{J as H,N as J}from"./PromoBaseCards-Bf3Dizji-DFvWixK1.js";import{M}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const h={containerPaddingTopBottom:new x(g[0],g[0]),uspContainerMarginX:new x(g[6],g[0]),midContainerGap:new x(g[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(g[6],43),navigationBottom:new x(g[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,g[4]),carouselMarginLeft:new x(120,g[12]),buttonTrayGap:new x(g[3],g[5]),termsOfAgreementMarginTop:new x(g[5],g[10]),contactAdminContainerMarginTop:new x(g[0],g[10]),contactAdminContainerMarginBottom:new x(g[4],g[0]),contactAdminContainerMarginLeftRight:new x(g[3],g[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const ge=G(),X=$e(),z=b(),q=ye().analytics,{chargeCardTermsDetails:R,companyChargeCardInfo:C,companyLocaleInfo:_}=i,W=be(R?.fetchStatus.fetchState),[he,Z]=S.useState(!1),xe=()=>{q.trackCardsPromoPageClicked("schedule demo"),q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Z(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{W==="In-Progress"&&R?.fetchStatus.fetchState==="Completed"&&V()},[W,V,R?.fetchStatus]);const Y=Se.hasChargeCardAdminLevelAccess(X.loggedInUserRoleMap),we=Te(X),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,K=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ve,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:ge.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Z(!1)},meetingUrl:e}):null,r.jsx(Ze,{windowSize:z,children:Y===!0?r.jsxs(We,{children:[r.jsxs(qe,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Je,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Y&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Q,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Xe,{windowSize:z,children:o.orText}),r.jsx(Q,{variant:"primary",label:K,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:K===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Be,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ke,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Qe,{windowSize:c,children:f})]})]})},Je=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Ae},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(J,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(B,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(B,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(B,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(B,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(J,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(J,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Ve=a.div`
|
|
1
|
+
import{e as b,M as oe,j as r,u as G,Y as $e,d5 as ye,a1 as be,$ as je,l as Se,fq as Te,aW as ze,J as Q,_ as ee,o as t,c6 as ve,L as O,c7 as Pe,s as ke,C as x,bV as Ae,bA as Be,i4 as Ie,i as Le,q as g,X as j,g as $,ao as Me,a6 as Re,i5 as _e}from"./index-NilHeiJu.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js";import{k as Ue}from"./NavigationDots-hBq7kHVj-BCo98sBw.js";import{J as H,N as J}from"./PromoBaseCards-Bf3Dizji-CUuhVAFC.js";import{M}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const h={containerPaddingTopBottom:new x(g[0],g[0]),uspContainerMarginX:new x(g[6],g[0]),midContainerGap:new x(g[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(g[6],43),navigationBottom:new x(g[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,g[4]),carouselMarginLeft:new x(120,g[12]),buttonTrayGap:new x(g[3],g[5]),termsOfAgreementMarginTop:new x(g[5],g[10]),contactAdminContainerMarginTop:new x(g[0],g[10]),contactAdminContainerMarginBottom:new x(g[4],g[0]),contactAdminContainerMarginLeftRight:new x(g[3],g[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const ge=G(),X=$e(),z=b(),q=ye().analytics,{chargeCardTermsDetails:R,companyChargeCardInfo:C,companyLocaleInfo:_}=i,W=be(R?.fetchStatus.fetchState),[he,Z]=S.useState(!1),xe=()=>{q.trackCardsPromoPageClicked("schedule demo"),q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Z(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{W==="In-Progress"&&R?.fetchStatus.fetchState==="Completed"&&V()},[W,V,R?.fetchStatus]);const Y=Se.hasChargeCardAdminLevelAccess(X.loggedInUserRoleMap),we=Te(X),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,K=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ve,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:ge.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Z(!1)},meetingUrl:e}):null,r.jsx(Ze,{windowSize:z,children:Y===!0?r.jsxs(We,{children:[r.jsxs(qe,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Je,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Y&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Q,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Xe,{windowSize:z,children:o.orText}),r.jsx(Q,{variant:"primary",label:K,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:K===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Be,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ke,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Qe,{windowSize:c,children:f})]})]})},Je=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Ae},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(J,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(B,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(B,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(B,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(A,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(B,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(J,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(J,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Ve=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|