@zeniai/web-cockpit-ui 1.14.41-dev → 1.14.41-pune
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-DZnFgkJZ-DOQT_66p.js → ACHDetailsPage-MP6kdpXK-BIWqR4TA.js} +1 -1
- package/dist/assets/{AIPerformancePage-DUz4HfZ1-DDsy5T-3.js → AIPerformancePage-BhOaFmfv-n728eNV2.js} +1 -1
- package/dist/assets/{AccountInfoPage-YaZUNWd--O8LSUK2-.js → AccountInfoPage-D9Ft_CT9-B17Rt7-g.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CMDfYWOh-CAywpwvA.js → AccountInfoPageContent-DvWx52e0-BD6yj2u0.js} +10 -10
- package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-Dw0Mzs0S.js → AccountLockedInfoModal-B1_3C1ER-CDd0N92x.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-BHFsM0at.js → AccountReconDetailsDrawerPage-D9e7qhm0-BSjkO2nB.js} +1 -1
- package/dist/assets/{AccountRow-D-CPGejv-3nsIGhlD.js → AccountRow-CiIWoLq3-edEx8OVG.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CnC_JXAV.js → AccountsPromoCardStack-CC72plKm-B_EPEjmc.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-VJaGzpsw.js → AddAddressForCardDrawer-CIj76DoU-xvdtaZy0.js} +1 -1
- package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DCVlRH8r.js → AddToWalletPage-B3vdkyWl-DfJiUX1g.js} +7 -7
- package/dist/assets/{AgingReportsPage-BC3a8enN-B0Ny64tL.js → AgingReportsPage-CbkMxxO_-DreLJO0h.js} +4 -4
- package/dist/assets/{AllUserItems-vM-R7kC6-Hc1XFGoe.js → AllUserItems-DJo9kLSI-7d78MjMn.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-C0soj3QL-D_H568JH.js → ApAgingDetailPage-DcAh6DLg-Cas0gcMn.js} +2 -2
- package/dist/assets/{AppBasePage-vYi6vqB3-DDEcP4KE.js → AppBasePage-DztnPkfs-CNOdLQuR.js} +1 -1
- package/dist/assets/{AppDrawerContent-4OWU2TFD-Bm6VJ4Xc.js → AppDrawerContent-DDmKn21i-Dl3Yj_kj.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-Cs1WdIMU.js → ApprovalRulesSettingsPage-Di8tAJ8K-0Kdg9P7n.js} +1 -1
- package/dist/assets/{ArAgingChart-B_o6w4NZ-BStmZoMY.js → ArAgingChart-tm5ZiNuY-bpLRwx8t.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CBVZytB--DljKmlr-.js → ArAgingDetailPage-B3JQ08nH-CrtMirIR.js} +1 -1
- package/dist/assets/{AttachmentView-B-4i3ruL-Ce5kJ15w.js → AttachmentView-p8mBqYjm-D3GaDDSA.js} +1 -1
- package/dist/assets/{BankAccountSection-BSpqPLea-jcjVQsx0.js → BankAccountSection-AuQLRvdb-gdyFccjw.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-BS0dlrJ3-rFcejIdy.js → BankAccountWarningSection-HvUMABu0-DCgGbiJA.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-Ca35_uKl.js → BankConnectionsSettingsPage-D61w90F9-7LXQWAP0.js} +8 -8
- package/dist/assets/{BillDetailPage-CuVdQqQW-D-MLjbqC.js → BillDetailPage-nqHoph6T-D7VwlDs_.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-BTC8-OQ-.js → BillPayApprovalRuleDetailPage-fZnmOmyN-CmlLJJjy.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-yFgRE--4.js → BillPayApprovalRulesPage-Bd87v4ca-B0mcHI06.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DwiZ7BtU-DTRzJ8nY.js → BillPayPromoPage-CNiTD_mM-Dh5MKcH1.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-qkDjDwA2-DrjQkxCs.js → BillPaySetUpPage-BUSwkzqv-ZP6_2Tw6.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CcAIOY2J-C4wd3CIP.js → BillingSettingsPage-aPRvtlqA-BQZRAF_j.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-DH38bY9u.js → BillsBulkReviewDrawerPage-BU3VuxEm-JvEIeYLR.js} +1 -1
- package/dist/assets/{BoxItem-BebxqupW-HNk0cXZv.js → BoxItem-CZKWkdxd-D45EULBV.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DB134_1e-Dezt9bTI.js → BusinessVerificationPage-CeDGi-RH-DwsAZfqJ.js} +3 -3
- package/dist/assets/{CardNumberSubText-uxqTFnFX-CQWByZuH.js → CardNumberSubText-1BRQQyfd-B6rYIntF.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CCb57-3P-CUiPVvsc.js → CashbackDetailPage-V-W_U5k1-C08AL6Q8.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-C_F0yiZ_.js → ChargeCardDetailPage-BP-zAMYI-DEY2qEfm.js} +40 -40
- package/dist/assets/{ChargeCardListPage-67dSFsMj-DepagcAJ.js → ChargeCardListPage-DORW9YE4-CGJOJetl.js} +27 -27
- package/dist/assets/{ChargeCardListTable-Czriruk3-C77LTuYn.js → ChargeCardListTable-C32mZrwY-CyFa-RzP.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-DV4g1daO.js → ChargeCardPromoPage-CE4kH4Js-BjaGUsOu.js} +4 -4
- package/dist/assets/{ChargeCardSetupPage-D6o-evfw-yIfm7wnj.js → ChargeCardSetupPage-CumpB2GQ-BxEutVnL.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-CjbNdRYn.js → ChargeCardStatementsPage-DPIAjww0-BUElYLlU.js} +1 -1
- package/dist/assets/{ChargeCardUtils-Bptae9Pt-VRxG6j3w.js → ChargeCardUtils-Wp4Ko18L-DTsLlepX.js} +1 -1
- package/dist/assets/{ChaseOverlay-DU98sRYz-CSn5L-_V.js → ChaseOverlay-BGZfbx0H-C7wN1bY9.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-BRJjONky.js → CheckDepositDrawerPage-Bl52b4SW-DYsNIssz.js} +7 -7
- package/dist/assets/{CollapsableReportTable-C3JrOMbA-DTiYeWsA.js → CollapsableReportTable-B0wI9SM1-LqZDOdQu.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-u1CRctkr.js → CompanyOfficerDetailsSection-DyOVRvtQ-HlMDKxIz.js} +12 -12
- package/dist/assets/{CompanyPassportCard-DtaT5LBX-DHjhoLiG.js → CompanyPassportCard-C_YUK3R3-C9vTVBKY.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CYqtLLPi-_mqLwhoZ.js → CompanyPassportPage-QFJ0G7X7-CUHb39E7.js} +1 -1
- package/dist/assets/{CompleteProfile-bz1Sx_Ks-B8mrvwk-.js → CompleteProfile-DVE16v3y-hBzUk_Gy.js} +1 -1
- package/dist/assets/{ConfettiBurst-DmQRRfzl-DBpCHM4T.js → ConfettiBurst-BA8BvtO--TQqeek3y.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-D4Gg8o2e.js → CreateOrEditVendorPage-ncBGwfXK-B8OJlKSL.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-axtSCc88.js → CreditCardPaymentDrawerPage-DqEVQgMx-DHoIiLXN.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-DWikFIfL.js → CreditCardPaymentPlgSection-vmErttTD-9vo8N1WC.js} +1 -1
- package/dist/assets/{CurrencySelectField-DdtldGsv-C_DHy72Q.js → CurrencySelectField-BEb19UaA-C6El5Pin.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-S9U3hOKj.js → CustomerOnboardingActivationPage-L4l1ybmh-zF98qamu.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-Cz-slCxQ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-QlkEepQg.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-C2cudXzH.js} +7 -7
- package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DFojtO8-.js → CustomerOnboardingNoStepsPage-BXsJFpEX-0G3ydnEy.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D3GUyy20-CsL80Cou.js → CustomerOnboardingPage-D3zpI1df-BIo6TdL7.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-BW3RcpAe.js → CustomerOnboardingProductSuitePage-DjVZfC2C-D_Uv8e8f.js} +1 -1
- package/dist/assets/{Dashboard-D19IvfgJ-CqIi77FL.js → Dashboard-wY0FneRs-V_wgDAP8.js} +1 -1
- package/dist/assets/{DashboardReportPage-DucQv3ZE-Bf5wQGY4.js → DashboardReportPage-CMgr0CSc-CJZ40GLi.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CYhwL7bq.js → DashboardSidebarBackgroundAnimation-B73UBY5T-D5kdRGqv.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BlkWgxrw.js → DepositAccTransactionItem-DrqBG940-DmUhrS8P.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-CGESf2Ix.js → DepositAccTransactionListPage-2xDjOUwm-DMmIbUzF.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DH4keptD-DPs2YbvR.js → DomesticWireDetailsPage-vRHD5DmW-HBzUNHyS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DQZd_zyi-DgSvHPf2.js → DownloadOverlay-D_UoB4Xy-CC7gI-hn.js} +1 -1
- package/dist/assets/{DrawerPage-CtDNbXHp-BcVXCh6I.js → DrawerPage-ijHe0bCp-DYncBsQl.js} +1 -1
- package/dist/assets/{EditPeoplePage-ZzjDJoTQ-BpAnOUqT.js → EditPeoplePage-BehcmP1s-DDHc5TZf.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-BJWAWVjR.js → EditReimbursementDetailPage-Cz82Vz26-DPcrqC8q.js} +14 -14
- package/dist/assets/{EntityDetailPage-CuPr64cj-D-dluOpL.js → EntityDetailPage-CN-ewzjy-BcJyCXVM.js} +1 -1
- package/dist/assets/{EntitySummarySection-CX-KbVbj-BmdnGgTg.js → EntitySummarySection-B4ozhtlU-CuhDVVbX.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-CpxChPr7.js → ExpenseAutomationOverviewPage-BmNuSoUs-BMzRB3nc.js} +11 -11
- package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-CYqSG7FC.js +1650 -0
- package/dist/assets/{ExpressPayPage-DWFyq0OM-EYpsZYgz.js → ExpressPayPage-CgrGtZ4F-UTaF4t9H.js} +5 -5
- package/dist/assets/{FeaturePreviewPage-Bdostf75-D83d6wpt.js → FeaturePreviewPage-Dk_c37Rm-C61SZl31.js} +1 -1
- package/dist/assets/{FollowStepsSection-CFs_c9UA-DwJ5Dcso.js → FollowStepsSection-BVi7m38_-BZEw0T-E.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-C6n2w9zr.js → GlobalReviewListPage-DiZGC9B1-DSlfiez8.js} +1 -1
- package/dist/assets/{HelpButton-DJeoop_B-BWwsX5D8.js → HelpButton-DiIoYeXn-Ctwzgsr_.js} +1 -1
- package/dist/assets/{InformationCardStack-DXqbwonQ-Ch0IQdkf.js → InformationCardStack-C8-4dhWR-BAea0hjm.js} +1 -1
- package/dist/assets/{InsightsCardStack-7JsHAYeW-D3r0iuln.js → InsightsCardStack-BKm0dSeJ-tQyIIMQ-.js} +1 -1
- package/dist/assets/{InsightsSection-BkKqEnbT-C5gBUpeX.js → InsightsSection-C9MHOCQd-CQVD8k8O.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DPEUMOD7.js → IntegrationsSettingsPage-4qlL5Dsx-CKoh9_oH.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-DZ7t3PY0.js → InternationalWireSwiftDetailsPage-DqCtPykV-BpfZECRK.js} +10 -10
- package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-DUPDNg6N.js → InternationalWireVerificationPage-Cl-p0inO-VmseixyP.js} +1 -1
- package/dist/assets/{InviteFormPage-1dBkKRKs-CDQVB47W.js → InviteFormPage-L6j0rOBW-DLKkOO8k.js} +8 -8
- package/dist/assets/{InvitePageListView-DhpXrg6S-DiOTLtvA.js → InvitePageListView-KYjMIc4q-C0zPnAaz.js} +11 -11
- package/dist/assets/{InvitePeoplePage-DrHGaYn6-m3npi43j.js → InvitePeoplePage-CbZqVsTp-BS_3fP8d.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-D79UFJii-DdMFEYpH.js → InvoiceUploadSection-DZC4oscG-d9d1dfZw.js} +3 -3
- package/dist/assets/{IssueChargeCardPage-B_O7rJSC-BNC2oqUG.js → IssueChargeCardPage-DMdZCfqA-COBCCjlx.js} +10 -10
- package/dist/assets/{LabeledAddressValue-DWpOvFnM-DdQWoBGa.js → LabeledAddressValue-CBOrzSsG-D6Qyr-Vk.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YuLcra47-CTq3RlNq.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-UitCLVQY.js → LabeledControlledCheckBoxField-BoXsUqpR-DgBItIwu.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-Cv3lgHkM.js → LabeledCreatableSingleSelectField-CQPkrdRe-rvbNjzNv.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BQDoGQsy-CxOUU_-m.js → LabeledDocumentField-DEeeTuVw-urr6JJ8L.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-CdmHAUde.js → LabeledDropDownFormattedTextField-DYRkxlY--7TQiMFql.js} +3 -3
- package/dist/assets/{LabeledText-BRS0e-dG-DDgPnctj.js → LabeledText-DQiR_FIX-B541lmGW.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-Dl62K6kk.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-iw4cLdRr.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-Ua9gPYDx.js → LabeledZeniRolesDropDownField-azPB8idg-DtAOAxQ7.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-VtgdRNhL-DaaUfchT.js → LinkJETransactionPage-Ct0HcxvN-D2JMsVsV.js} +7 -7
- package/dist/assets/{LowBalancePopup-Dg43FP8p-bwHMQG6q.js → LowBalancePopup-Zvy2iURT-MApuMzdY.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-B5RfQ8BO.js → MagicLinkACHDetailsPage-BY6pEieF-CArOjoVa.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-b2zar2tm.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-B4gjxdg2.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Bb5S_u0d.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-DdOsbS3o.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-BcKdcdCb.js → MagicLinkSuccessPage-Drn_p982-CK0hfrVo.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-b4t7XGb8-BMR9XZXP.js → MagicLinkTitleSection-DRMHVOzF-DEkSaohc.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Dk8tP8LP-BVCvW6bo.js → MailingDetailsSection-DgdAYgpS-Fu_811Zm.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-gebcIIpu-BIluNFi_.js → MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js} +1 -1
- package/dist/assets/{Menu-BeDBbRH8-tLhci4E2.js → Menu-bleLgSLu-DhDOH9zk.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-6a-EbmNN.js → MyBankConnectionsSettingsPage-DRxmQCbq-FjgevmOT.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-Bo3iUOWs.js → MyPendingActivationChargeCardListPage-BYLhb47G-B8kCpSAe.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DeYdvPvN.js → MyProfileSettingsPage-eVfCRTfx-HA3kQuse.js} +3 -3
- package/dist/assets/{NavBarWithPicker-XmGu6RQR-BbvdjKwY.js → NavBarWithPicker-BE2MW7hB-CFo0-B41.js} +1 -1
- package/dist/assets/{NavigationArrow-DuEUVDwX-XuiXu7eu.js → NavigationArrow-eEaMttBX-CaVHzVzK.js} +1 -1
- package/dist/assets/{NavigationDots-BcP-rh-K-DgliXtlt.js → NavigationDots-CNwL0a7I-ycY998lH.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DfdTOBf5.js → NewGlobalMerchantPage-CSWqCqAC-IICuGFAC.js} +2 -2
- package/dist/assets/{NoDataChart-Cu34Y6fv-ZwI_dimc.js → NoDataChart-DNmdY5gQ-88rt-13k.js} +1 -1
- package/dist/assets/{NoDataTable-CPWzH0PE-CSbvPnTP.js → NoDataTable-DW2wAX3o-Ev4DYYSH.js} +1 -1
- package/dist/assets/{NotFoundPage-yZOAgP9f-C9ydYh9x.js → NotFoundPage-BMJTG-tj-C_w7KIUM.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-5bXbyP0i-B1Th7YXN.js → NotificationSettingsPage-Vd3UvdLu-BxFVurUR.js} +11 -11
- package/dist/assets/{NotificationsListConfig-DINVh9-P-DriwsKTQ.js → NotificationsListConfig-DbHYPEWZ-C6L3NOwJ.js} +1 -1
- package/dist/assets/{NotificationsPage-CKcEU-jy-BTZ54ha2.js → NotificationsPage-BaekDEw7-D8UaqDZg.js} +1 -1
- package/dist/assets/{OpExByVendorPage-3oQc7n37-DX80HzPe.js → OpExByVendorPage-DNyTA9nx-DMZqXgCr.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo--veNoskc.js → OverlayContainerPage-Bmu909Fo-CB3ZsNzf.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BPcWHQXd-B7xWAJWZ.js → PandLWithForecastPage-DbP4ybN4-D1Uq3N0a.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BjGEY871.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BTDrKQZ5.js} +1 -1
- package/dist/assets/{PeoplePage-AdCHl8Rj-Dbloz6Zr.js → PeoplePage-B3n7ek2h-gYAXMh-L.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-DJVrByWQ-DsV-ltqP.js → PortfolioAllocationFormPage-CzA_c7hR--GR7cVwj.js} +1 -1
- package/dist/assets/{PortfolioDetails-DaiiBOps-H9tSp-Ev.js → PortfolioDetails-Drgv4Osg-BGswE48B.js} +1 -1
- package/dist/assets/{ProductsCarousel--PIp0Wwx-CQ4g-Ayf.js → ProductsCarousel-BnnfJR0o-DuEhjdG1.js} +1 -1
- package/dist/assets/{PromoBaseCards-hEn7m0Ea-DLWKi3td.js → PromoBaseCards-BGHJivI8-Bv4vo0R4.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DByNCCyR-CpV11equ.js → QBOConnectionDialog-uiW9eeZu-Dy2SH6Pc.js} +7 -7
- package/dist/assets/{QBOSetupSection-NdDTo0GG-D9UR0G4X.js → QBOSetupSection-DPb0VAii-EQw2xdj5.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CCTo6kvJ-CrrezfdZ.js → ReimbursementApprovalRuleDetailPage-Cvok7KBA-BEqVqwsu.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-pl4WkdF5.js → ReimbursementApprovalRulesPage-C1AFF_DM-CDJbXtJC.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-BMDs_JfM.js → ReimbursementDetailPage-Du6R1zje-D1YFGaXV.js} +4 -4
- package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CKHGZ1xS.js → ReimbursementPromoPage-CW9eyjp9-B_SyOwLo.js} +2 -2
- package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-bmV_B-LU.js → ReimbursementSetUpPage-CbPwgIqt-B2iO0-rg.js} +3 -3
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-CPdG3QjQ.js → ReimbursementsBulkReviewDrawerPage-DmRIywf6-BZCVgyyR.js} +1 -1
- package/dist/assets/{ReloadCard-K9SGlmus-xxDfRKGg.js → ReloadCard-Dvn17Oxl-DR2ZGl4V.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BVw08xMR-CQWajHIh.js → ReportTableViewSelector-C5_qr5qe-CZbpaUM0.js} +1 -1
- package/dist/assets/{ReportsPage-DrbFSYgn-CA7KXsdI.js → ReportsPage-BNcymVwf-aacXTigB.js} +1 -1
- package/dist/assets/{RevenueChart-mib92BSo-Cc5NrYGu.js → RevenueChart-DILkui6c-DpfzJJzi.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-C5f_GAjv-C0pMwG1h.js → ReviewDetailsPage-ZYzvK95X-D7eFuA9s.js} +1 -1
- package/dist/assets/{ReviewOverlay-CFgWwm-p-D8hMhtS7.js → ReviewOverlay-DhUFI1ES-DFxDvDH0.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C5grx1DM-BwXp973u.js → RoleWithToolTip-_W95JBwt-CxTFR1LS.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-5WvFqXY1.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BNWj5DjJ.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-BSSvoyYH.js → ScheduleDetailsPage-KgHwQGrw-CRlFF6jz.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-CviQlsxi-rcHIY2AS.js → ScheduleSequenceTable-Bixq8Q7W-DWxDGmbt.js} +9 -9
- package/dist/assets/ScreenRoutes-Bkt52uu9.js +206 -0
- package/dist/assets/{SetUpAccountSection-d5HPps92-BumzpJ8H.js → SetUpAccountSection-D8FMVhkL-aEgEWNlh.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-D1OXPM9M-Bq-_twjx.js → SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js} +8 -8
- package/dist/assets/{SignIn-tpfovElQ-BXVSO7aC.js → SignIn-DslenepV-kl9my2IL.js} +1 -1
- package/dist/assets/{SignInScreen-DFen9Hti.js → SignInScreen-Cy-NgVa_.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-gch2vKkU.js → SpendManagementListViewPage-D7SzmCmM-BkfFjMdB.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-5aOLNMGw.js → SpendManagementPerTabPage-DKaDr4mu-DNFKBybs.js} +1 -1
- package/dist/assets/{SpendManagementSection-C8S1zv_Z-Bq5g1RtW.js → SpendManagementSection-Ddfq2u6H-AC-e6rPp.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DbtkgBKN.js → SpendMgmtSetupAccountSection-CPnNzjr--CgZWbJd7.js} +1 -1
- package/dist/assets/{StatementItem-C2VaQMdB-B_bYCc-E.js → StatementItem-B2uPIFUk-B11nZAae.js} +2 -2
- package/dist/assets/{StatementsPage-DD2PvuDv-BNWPUW2T.js → StatementsPage-o7MvNKvd-k8fvcoRU.js} +5 -5
- package/dist/assets/{StatusSwitcher-CI_4NJc0-tOBMLPnh.js → StatusSwitcher-kWLQCCwS-BQBzuvxV.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CKh0fbAL-Da7g1KnT.js → SubTabSwitcher-BKm9FxhL-BBcjNos_.js} +1 -1
- package/dist/assets/{SummaryCard-56XeB7PA-BbL-SU9r.js → SummaryCard-DBMfNfN2-CxrLGKq4.js} +1 -1
- package/dist/assets/{TaskManagementPage-el6vudQA-CXUyOw6Z.js → TaskManagementPage-D_wjK-S2-B0dcD4kA.js} +21 -21
- package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-CYEpjFJY.js → TimeRangeSwitcher-2vDR_AEV-BbQMpJD3.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-TLcNg_CN-DNN75s7g.js → TimeframeSwitcher-BB3_i5V0-DVjpfJ9Q.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-D51e1VCz.js → TimeframeSwitcherWithToggle-CdP0ViK8-CK7bqtK5.js} +1 -1
- package/dist/assets/{TopExCard-BuCdMdGn-DRiAtUxO.js → TopExCard-BGgGFzmK-DnxQur7z.js} +1 -1
- package/dist/assets/{TopExDetailPage-DJwK85mY-BYdD1UbV.js → TopExDetailPage-CbzYG54M-BUNlHIsb.js} +1 -1
- package/dist/assets/TransactionDetailPage-C-CfEtCO-DnX-nEe2.js +912 -0
- package/dist/assets/{TransactionList-vNVcmGH2-DosEnW24.js → TransactionList-C0xK6_zI-DYm4aJPL.js} +1 -1
- package/dist/assets/{TransactionListBig-C_1iHb-m-Bsz-XZMV.js → TransactionListBig-CIX6CdX--D9u9NYfr.js} +1 -1
- package/dist/assets/{TransactionListPage-vE1jowuA-CuFJUNVo.js → TransactionListPage-B7ppBJig-CoaPrddT.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-HgDi-00y.js → TransactionVendorDetailPage---HGdQiZ-C5JQCG_9.js} +3 -3
- package/dist/assets/{TransferDrawerPage-6AaaV1fR-8vGJfXB1.js → TransferDrawerPage-DerGmul8-Bdr4PeOt.js} +20 -20
- package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--B_sHCcY2.js → TreasuryOverviewPage-DW2gZwip-BseT2B7e.js} +33 -33
- package/dist/assets/TreasuryPromoPage-DzqdEmPJ-RU_nI2LH.js +439 -0
- package/dist/assets/{TreasurySetupPage-BietgoUm-3MaRDUuZ.js → TreasurySetupPage-Bo0HQeeU-Dm5lF3MK.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-B4w6Xx4L.js → TreasuryStatementsPage-DS_VK4WN-BS6QMDBS.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-C6PUGs5K.js → TreasuryTaxLetterPage-DgwqyL6v-2VtCTpGq.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-Feh6oxY-.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CmJuP7nJ.js} +25 -25
- package/dist/assets/{TrendChart-CDuKYDbr-BRFmjbUx.js → TrendChart-D07k3uRr-pyZC_7Mp.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CXFGBD3a-smyKZENi.js → TrendWithTransactions-ibwuOssC-CPQagKsz.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-DBL5g7Kh.js → UncategorizedAccountsMappingPage-D1m2Ok2e-D_7IL5Nn.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-Bt3BsIP--je6E2n0g.js → UnitIntegrationPage-BJxRjjfK-VVowRBgS.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-DGG9Ke3q.js → UploadAdditionalDocumentOverlay-DI_GZA8A-TjqXSm1m.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-DmvRVpSh.js → Vendor2FAPopup-80vvc7gE-LbAIArR6.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CDaqOKLr.js → VendorACHDetailsPage-CQcuiNPr-D635l79F.js} +1 -1
- package/dist/assets/{VendorDetailPage--NEui4cR-Dsh5qXEt.js → VendorDetailPage-Dx_yfZDH-DDAcRoLZ.js} +4 -4
- package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-PymBt9QS.js → VendorDomesticWireDetailsPage-DN5x3F_Z-oAoMoL47.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-DAjE_4Pl.js → VendorFiling1099EditablePage-8Jz187lD-DL8SV9bw.js} +5 -5
- package/dist/assets/{VendorFirstReviewPage-F3ufon8s-BSuS_kVY.js → VendorFirstReviewPage-CokvYaRq-IPe_9Yn8.js} +15 -15
- package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-BBGJ9Cio.js → VendorInternationalWireDetailsPage-lo9l2Q88-eTaUd9gI.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-DSXxlPRB.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-k4liJGuO.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DyEqMESi-CrSM-LDL.js → VendorsAccountsSection-BqoW4DlP-DYqIR5DE.js} +1 -1
- package/dist/assets/{VerifyDevice-Cghi40l4-CfyLKZtU.js → VerifyDevice-D8iPRJ3k-BjXCJxq-.js} +1 -1
- package/dist/assets/{VideoPopup-RZCI8_Gx-CHBqyqPM.js → VideoPopup-SdlRHLkM-Zrce0F9x.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-ChJqfUoo-BI-fdXaI.js → WarningsDrawerPage-qYWFsE3s-BM1ljnnI.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DgzxI6rk.js → ZeniAccountDetailPage-BL2a5Dmz-CRL7qZeh.js} +4 -4
- package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-DrB02VR_.js → ZeniAccountListViewPage-CWqzDWcO-BNSEz0L-.js} +6 -6
- package/dist/assets/{ZeniAccountNavBarPieces-BlVvO8S4-C-rnZJlt.js → ZeniAccountNavBarPieces-C0MyICK2-DDdbu8lx.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CbljFu8O.js → ZeniAccountPromoPage-CBm3w0kN-UKTgby87.js} +5 -5
- package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-BLwDLz1Z.js → ZeniAccountSetupPage-C5VzT9lH-CWOELI4p.js} +1 -1
- package/dist/assets/{ZeniCopyright-CpkvfVwM-CIZZBKov.js → ZeniCopyright-BUctH39C-DyFBA7jS.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-H-uhh5z4-D4J4KzZl.js → ZeniTransferAmountSlider-q37z6XvR-CpkNA_dl.js} +1 -1
- package/dist/assets/analytics-B3n5JGPc.js +7 -0
- package/dist/assets/{analyticsHelper-nzXGHX-f-BWACnrlc.js → analyticsHelper-B3uAu0es-D5bv_Tk4.js} +1 -1
- package/dist/assets/{analyticsHelper-DmlEDKWE.js → analyticsHelper-B8BZdghJ.js} +1 -1
- package/dist/assets/{chartTypes-DJwqK5Pl-zX622eWk.js → chartTypes-CJmQ6FtI-Ha5e563Y.js} +1 -1
- package/dist/assets/{commonDimensions-BI8wHGzb-a9YqUB1q.js → commonDimensions-WRL2ZVK_-DQ7f551Y.js} +1 -1
- package/dist/assets/crypto-BDNqpTKX.js +40 -0
- package/dist/assets/{detailCommon-BqVKB773-CqWd3YGb.js → detailCommon-Dfxas1Kf-B-9ceYeB.js} +1 -1
- package/dist/assets/{downloadPdf-BET_DSP9-C3sGc_xm.js → downloadPdf-B1f0mDl2-DZ9St6Zh.js} +1 -1
- package/dist/assets/{index-CAI8M7It.js → index-B3ZVYk1F.js} +15 -15
- package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-DonEuZ88.js → mapLoadingInProgressToTreeNode-BG784RuM-DGZs46wV.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-Cj199IzK.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-D8olWEXo.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-DMuiDG3V.js → mapSpacerToTreeNode-CcgVbOH5-DHPhmOVG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrLN8tKW.js → mapTimeframeBalancesToTreeNode-CU583ICK-D8rCHpI9.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-BJpH6WQn.js → mapTimeframeBalancesToTreeNode-DTlwFauL-CumQVWB0.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-DDASaeZZ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-BfpwOR3K.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CAwHN54Z-_XSCSjh7.js → toCOABalancesWithID-DTfegixr-78ZP1LOH.js} +1 -1
- package/dist/assets/{toChartData-pW2XLZo--xzwvSUvM.js → toChartData-CH5DcWUY-BzD5DRW0.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CdOoL_vC-DNqgoHOS.js → treasuryColorHelper-BdPkQoh7-7gPPrX3_.js} +1 -1
- package/dist/assets/{uploadAttachment-nqQ-JycC-mCCDWYky.js → uploadAttachment-COwu5Mqo-DMKN-lEQ.js} +11 -11
- package/dist/assets/{uploadReceipts-dxsKhm9I-BsqmH2Ug.js → uploadReceipts-dxsKhm9I-BHZQ8cK5.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-BZa4Gjqp.js +0 -1
- package/dist/assets/ExpenseAutomationPage-ugq4J-e3-s17oPPzF.js +0 -1650
- package/dist/assets/LabeledAddressValueField-DxW5wUY3-CQXZCw2q.js +0 -45
- package/dist/assets/ScreenRoutes-BvDw9jhZ.js +0 -206
- package/dist/assets/TransactionDetailPage-fKLOaC53-zxkVC7Oy.js +0 -912
- package/dist/assets/TreasuryPromoPage-BRZCU7u0-D1x2sLRP.js +0 -477
- package/dist/assets/VideoPlayer-BqxR2aZr-B01NlPcO.js +0 -38
- package/dist/assets/analytics-Dr_Q0qi5.js +0 -73
- package/dist/assets/crypto-Ccg-ICil.js +0 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{cn as M,u as N,cv as P,B as H,j as l,cw as L,$ as x,b3 as _,o,dj as z,b_ as B,b4 as g,t as
|
|
1
|
+
import{cn as M,u as N,cv as P,B as H,j as l,cw as L,$ as x,b3 as _,o,dj as z,b_ as B,b4 as g,t as Y,v as w,eY as Z,eZ as Q,e_ as T,w as U,b1 as X,a3 as q,g as m}from"./index-B3ZVYk1F.js";import{b as v,n}from"./vendor-rkTZJa59.js";const fe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[O,C]=v.useState(!1),k=P(f,e??""),I=H.getLocalizedStrings().common.currency,D=s=>{if(!(s==null||!s))return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??I.countryCode}},V={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:y,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const S=R;return v.createElement(_,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:O===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(S.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&S?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:A,Option:G,Input:W,SingleValue:ee,ValueContainer:K,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:J},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},A=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},G=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},J=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(B,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:t[y]})})},K=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),W=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(j,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(j,{children:r.label})})},j=n(Y)`
|
|
2
2
|
color: ${e=>e.theme.colors.primary};
|
|
3
|
-
`,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&
|
|
3
|
+
`,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&Z(e)===!1)return l.jsx(l.Fragment,{});{const r=Q[`${T(e??"")}`];return l.jsx(ie,{children:l.jsx(r,{width:o.sp4,height:o.sp3})})}},te=n.span`
|
|
4
4
|
width: 100%;
|
|
5
5
|
background-color: ${e=>e.hasError?m.importantLight:e.menuIsOpen?e.theme.colors.background:e.controlStyle?.backgroundColor!=null?e.controlStyle?.backgroundColor:e.theme.colors.grey5};
|
|
6
6
|
border-radius: ${o.sp1};
|
|
@@ -105,7 +105,7 @@ import{cn as M,u as N,cv as P,B as H,j as l,cw as L,$ as x,b3 as _,o,dj as z,b_
|
|
|
105
105
|
justify-content: space-between;
|
|
106
106
|
fill: initial;
|
|
107
107
|
color: initial;
|
|
108
|
-
`,ne=n(
|
|
108
|
+
`,ne=n(U)`
|
|
109
109
|
padding-right: 10px;
|
|
110
110
|
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
111
111
|
${e=>e.isSelected&&"cursor: default"};
|
|
@@ -126,7 +126,7 @@ import{cn as M,u as N,cv as P,B as H,j as l,cw as L,$ as x,b3 as _,o,dj as z,b_
|
|
|
126
126
|
}
|
|
127
127
|
`,de=n.div`
|
|
128
128
|
display: flex;
|
|
129
|
-
`,ue=n(
|
|
129
|
+
`,ue=n(X)`
|
|
130
130
|
width: 12px;
|
|
131
131
|
height: 12px;
|
|
132
132
|
margin-right: 2px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,e as b,B as d,a2 as l,$ as p,m as x,o as i,M as g,c7 as h,T as m}from"./index-
|
|
1
|
+
import{j as t,e as b,B as d,a2 as l,$ as p,m as x,o as i,M as g,c7 as h,T as m}from"./index-B3ZVYk1F.js";import{b as u,n as o}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const f=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./index-B3ZVYk1F.js";import o from"./CustomerOnboardingNoStepsPage-BXsJFpEX-0G3ydnEy.js";import i from"./CustomerOnboardingPage-D3zpI1df-BIo6TdL7.js";import"./mui-C42whWwM.js";import"./vendor-rkTZJa59.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./HelpButton-DiIoYeXn-Ctwzgsr_.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import"./PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BTDrKQZ5.js";import"./SetUpAccountSection-D8FMVhkL-aEgEWNlh.js";import"./SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js";import"./ChaseOverlay-BGZfbx0H-C7wN1bY9.js";import"./CustomerOnboardingDetailPageSkeleton-D3Zm658F-C2cudXzH.js";import"./CompanyOfficerDetailsSection-DyOVRvtQ-HlMDKxIz.js";import"./LabeledAddressValueField-YuLcra47-CTq3RlNq.js";import"./LabeledCreatableSingleSelectField-CQPkrdRe-rvbNjzNv.js";import"./LabeledDocumentField-DEeeTuVw-urr6JJ8L.js";import"./QBOSetupSection-DPb0VAii-EQw2xdj5.js";import"./QBOConnectionDialog-uiW9eeZu-Dy2SH6Pc.js";const v=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(i,{...t});export{v as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s,$ as y,aJ as E,u as f,e as T,bh as x,o as t,q as R,C as $,M as I,B as N,g as u,
|
|
1
|
+
import{j as s,$ as y,aJ as E,u as f,e as T,bh as x,o as t,q as R,C as $,M as I,B as N,g as u,eV as P,h9 as U,f4 as L,aD as W,n as O,ha as B}from"./index-B3ZVYk1F.js";import{n as r,f as S}from"./vendor-rkTZJa59.js";const J=r(B)`
|
|
2
2
|
/* Size is controlled by styles.root prop */
|
|
3
3
|
`,M=r.div`
|
|
4
4
|
position: relative;
|
|
@@ -41,31 +41,31 @@ import{j as s,$ as y,aJ as E,u as f,e as T,bh as x,o as t,q as R,C as $,M as I,B
|
|
|
41
41
|
color: ${e=>w({isActive:e.isActive,isCompleted:e.isCompleted,isDisabled:e.isDisabled,isHalfCompleted:e.isHalfCompleted,theme:e.theme})};
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`,
|
|
44
|
+
`,V=r.div`
|
|
45
45
|
margin-right: ${t.sp2};
|
|
46
46
|
margin-top: 2px;
|
|
47
|
-
`,
|
|
47
|
+
`,Y=r(L)`
|
|
48
48
|
width: ${t.sp3};
|
|
49
49
|
height: ${t.sp3};
|
|
50
50
|
color: ${u.success};
|
|
51
|
-
`,
|
|
51
|
+
`,Z=r(P)`
|
|
52
52
|
width: ${t.sp3};
|
|
53
53
|
height: ${t.sp3};
|
|
54
54
|
color: ${u.runwayRed};
|
|
55
|
-
`,
|
|
55
|
+
`,G=r.div`
|
|
56
56
|
height: ${t.sp3};
|
|
57
57
|
width: ${t.sp3};
|
|
58
58
|
border: 1px solid
|
|
59
59
|
${e=>e.isActive?e.theme.colors.primary:e.disabledStep?e.theme.colors.grey2:e.theme.colors.hero};
|
|
60
60
|
border-radius: 50%;
|
|
61
|
-
`,
|
|
61
|
+
`,K=r.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
`,X=r(W)`
|
|
65
65
|
color: ${e=>j({isActive:e.isActive,isCompleted:e.isCompleted,isDisabled:e.disabledStep,isError:e.isError,isHalfCompleted:e.isHalfCompleted,theme:e.theme})};
|
|
66
66
|
`,_=r(O)`
|
|
67
67
|
color: ${e=>w({isActive:e.isActive,isCompleted:e.isCompleted,isDisabled:e.disabledStep,isHalfCompleted:e.isHalfCompleted,theme:e.theme})};
|
|
68
|
-
`;function ee({onboardingStep:e,isActive:i,isCompleted:o,isHalfCompleted:l,isDisabled:d,isError:a,stepText:h,stepSubText:m,onUpdateStep:g,setIsStepClicked:p,disabledSteps:n}){const c=d||n.includes(e)&&i===!1;return s.jsxs(F,{isActive:i,isDisabled:c,isCompleted:o,isHalfCompleted:l,isError:a,onClick:d===!1?()=>{n.includes(e)&&i===!1||(p(!0),g(e))}:void 0,"data-testid":y("step-box",e),children:[s.jsx(
|
|
68
|
+
`;function ee({onboardingStep:e,isActive:i,isCompleted:o,isHalfCompleted:l,isDisabled:d,isError:a,stepText:h,stepSubText:m,onUpdateStep:g,setIsStepClicked:p,disabledSteps:n}){const c=d||n.includes(e)&&i===!1;return s.jsxs(F,{isActive:i,isDisabled:c,isCompleted:o,isHalfCompleted:l,isError:a,onClick:d===!1?()=>{n.includes(e)&&i===!1||(p(!0),g(e))}:void 0,"data-testid":y("step-box",e),children:[s.jsx(V,{children:a?s.jsx(Z,{}):l?s.jsx(q,{}):o?s.jsx(Y,{}):s.jsx(G,{isActive:i,disabledStep:c})}),s.jsxs(K,{children:[s.jsx(X,{className:"step-content-title",isActive:i,isCompleted:o,isHalfCompleted:l,disabledStep:c,isError:a,children:h}),s.jsx(_,{className:"step-content-subtitle",isActive:i,isCompleted:o,isHalfCompleted:l,disabledStep:c,children:m})]})]})}const te=r.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex: 1 1 auto;
|
|
71
71
|
margin-top: 84px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as ie,j as o,e as Ce,u as Pe,a as we,
|
|
1
|
+
import{x as ie,j as o,e as Ce,u as Pe,a as we,h7 as be,B as xe,a2 as ke,ca as Ie,aX as $e,o as s,$ as Ae,F as ve,a4 as Oe,aJ as je,cD as Ve,cE as oe,M as Te,C as J,t as Ee,q as $}from"./index-B3ZVYk1F.js";import{n as c,b as A}from"./vendor-rkTZJa59.js";import{D as Le}from"./HelpButton-DiIoYeXn-Ctwzgsr_.js";import{s as Ue,o as ze}from"./PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BTDrKQZ5.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-D3Zm658F-C2cudXzH.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import"./SetUpAccountSection-D8FMVhkL-aEgEWNlh.js";import"./SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js";import"./ChaseOverlay-BGZfbx0H-C7wN1bY9.js";const q="onboardingPaymentAccountSetupSection",se="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",Q={titleWidth:new J(343,580,726,826),subTitlePaddingTop:new J($[3],$[3]),subTitlePaddingBottom:new J($[3],$[3])},Fe=e=>`${e}_form`,_e=xe.getLocalizedStrings(),De=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:E,handleConfirmCardSetupIntent:L,updateCardPaymentModalState:w,handleAddCardPaymentSource:U,resetCardPaymentViewState:z,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:F,..._})=>{const u=Ce(),D=ie(),{analytics:h}=D,{onFetchLinkTokenClick:M,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:G,handleLogOutClick:N,onZeniLogoClick:W,onAddressEditHandler:x}=_,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=_e,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=ke(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const i=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Ve(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},i.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&i.selectedOption!=null?d={...d,countryCode:oe(i.selectedOption)}:i.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(i.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:i})=>{i!=null&&a!=null&&Ie(()=>ge(i,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,i=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&i||!i&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),i=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!i&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(q);t&&a&&(ye(),T("link_payment_account"),F(me,!1,!0))};A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,Y,b]);const[ae,fe]=A.useState(!1);return o.jsxs(Me,{children:[o.jsxs(Ke,{windowSize:u,children:[o.jsx($e,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:s.sp0,paddingBottom:s.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":Ae("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(ve,{...r,children:o.jsx(Ge,{id:Fe(se),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(Ue,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:q,analytics:h,isValid:ne(),onFetchLinkTokenClick:M,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:G,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:z,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${se}`,leftSideComponent:o.jsx(Ne,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:N})}),style:{width:u==="small"?"auto":"100%",padding:s.sp0,rowGap:s.sp1},helperContainerStyle:{width:"100%",rowGap:s.sp1,marginTop:"12px",marginBottom:s.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:s.sp0,rowGap:s.sp0,textAlign:"center"}})]}),o.jsx(ze,{handleConfirmCardSetupIntent:L,updateCardPaymentModalState:w,handleCreateCardSetupIntent:E,handleAddCardPaymentSource:U,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Me=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{j as r,e as
|
|
1
|
+
import{j as r,e as Me,u as Zt,a as en,ca as me,B as We,a2 as Qe,N as mt,O as He,l as K,aX as tn,o as re,F as nn,q as M,a4 as an,h7 as on,fI as sn,fg as ft,cD as xt,cE as yt,C as fe,fL as ye,cn as rn,t as cn,h8 as gt,R as ht,cl as ln,fK as dn}from"./index-B3ZVYk1F.js";import{b as p,n as P,k as It}from"./vendor-rkTZJa59.js";import{D as pn}from"./HelpButton-DiIoYeXn-Ctwzgsr_.js";import{s as St,o as un}from"./PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BTDrKQZ5.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-D3Zm658F-C2cudXzH.js";import{s as fn,x as yn}from"./CompanyOfficerDetailsSection-DyOVRvtQ-HlMDKxIz.js";import{o as gn}from"./QBOSetupSection-DPb0VAii-EQw2xdj5.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import"./SetUpAccountSection-D8FMVhkL-aEgEWNlh.js";import"./SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js";import"./ChaseOverlay-BGZfbx0H-C7wN1bY9.js";import"./LabeledAddressValueField-YuLcra47-CTq3RlNq.js";import"./LabeledCreatableSingleSelectField-CQPkrdRe-rvbNjzNv.js";import"./LabeledDocumentField-DEeeTuVw-urr6JJ8L.js";import"./QBOConnectionDialog-uiW9eeZu-Dy2SH6Pc.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:A,verifiedPhoneNumber:x,onPhoneVerified:y,...I})=>{const m=Me(),V=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=l,N=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:$,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:N,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:A,...I})})},Sn=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
`,Cn=({fileProps:t,companyDetails:w,companyIndustries:c,sectionId:f,isCompleted:A,isDisabled:x,style:y,onCompanyAddressClick:I,onRegisteredAddressClick:m})=>{const V=
|
|
5
|
+
`,Cn=({fileProps:t,companyDetails:w,companyIndustries:c,sectionId:f,isCompleted:A,isDisabled:x,style:y,onCompanyAddressClick:I,onRegisteredAddressClick:m})=>{const V=Me(),{company_details:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=l;return r.jsx(bn,{children:r.jsx(fn,{fileProps:t,companyDetails:w,sectionId:f,isDisabled:x,style:y,sectionHeader:$,productType:"onboarding",showInfoTooltip:V!=="small",showCompletedIcon:V==="small",isCompleted:A,allIndustries:c,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:I,onRegisteredAddressClick:m})})},bn=P.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@ import{j as r,e as Ke,u as Zt,a as en,ca as me,B as We,a2 as Qe,N as mt,O as He,
|
|
|
10
10
|
display: flex;
|
|
11
11
|
`,xn=P.input`
|
|
12
12
|
display: none;
|
|
13
|
-
`,In=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=rn();return r.jsxs(Pn,{children:[r.jsx(xn,{type:"hidden",...f(`${w}.connected`,{validate:A=>A==="true"}),value:t?"true":"false"}),r.jsx(gn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(K[5],K[9],112),subTitlePaddingTop:new fe(K[3],K[3]),subTitlePaddingBottom:new fe(K[3],K[3])},On=t=>`${t}_form`,ce=We.getLocalizedStrings(),kn=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:A,connectedAccountProvider:x,analytics:y,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:$,updateCardPaymentModalState:F,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:N,...Ae})=>{const L=Ke(),ve=p.useRef(null),Ve=p.useRef(null),W=p.useRef(null),$e=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[le,Pe]=p.useState(!1),[te,Y]=p.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:D,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:v,onEditFileName:Ye,updateFilesEntity:Je,onGetOtp:Ot,onSkipSetupClick:De,onUpdateCustomerView:Ne,updateStepHandler:U,onVerifyOtp:kt,onResendOtp:wt,handleOnConnectClick:At,updateQBOPopupState:vt,onUpdateStep:Fe,onAddressEditHandler:Vt}=Ae,$t=Zt(),s=en({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(f,f.allNationalityCountries),values:Me(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(s.getFieldState(Z).error!=null||s.getFieldState(u).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);p.useEffect(()=>{const e=q();N?.(e)},[q,N]),p.useEffect(()=>{const e=s.watch((n,{name:o,type:i})=>{o!=null&&(i==="change"||i==="blur")&&me(()=>{const d=q();N?.(d)})});return()=>e.unsubscribe()},[s,q,N]);const Xe=e=>{Ge(e)},Oe=p.useRef(""),Dt=e=>{Oe.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,o=n<0?0:n;s.clearErrors(`${C}.${o}.phone`)},Ge=e=>{e!=null&&!ye(e)?s.trigger(`${C}.${X}.phone`):Ot(e)},{companyView:se,companyDetailsLocalData:g,companyOfficerLocalData:Q,currentStep:a,completedSteps:Ze,saveStatus:O,allSteps:h,allRequiredStepsCompleted:Te,paymentAccount:H,paymentAccountStatus:et,externalConnections:_e,plaidConnectionDetails:Ee,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:Nt,officer:Ft},subscriptionBillingAddress:J}=f,X=Object.values(Q).findIndex(e=>e?.isSelectedForVerification===!0)??0,_=`Officer_${X<0?1:X+1}`,Tt=se?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=Q[_]?.userId!=null?Tt?.find(e=>e.user.userId===Q[_]?.userId)?.address:null,tt=Q[_]?.addressStatus?.addressToCreate,ke=se?.companyAddress,nt=g?.addressStatus?.addressToCreate,Re=se?.registeredAddress,at=g?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:_t,common:S}=ce,{footer:Et,steps:jt}=_t,{buttons:ot}=Et,st=jt[a],ze=h.length,ie=Qe(O.fetchState),E=Qe(a);function Lt(){return _e?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Ee).some(d=>d.fetchStatus.fetchState==="Completed"),n=H?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,i=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!H&&o||!o&&!H&&i};function it(){if(s.getFieldState(u).error)return!1;const e=s.getValues(u),n=J?.street.join("").trim(),o=J?.city,i=J?.state,d=J?.country,k=J?.postalCode!=null&&J.postalCode||e.postalCode||S.strings.empty;return!!n&&!!o&&!!i&&!!d&&!!k}const rt=Qe(H?.providerVerificationStatus?.code);p.useEffect(()=>{rt==="pending_manual_verification"&&H?.providerVerificationStatus?.code==="manually_verified"&&y.trackOnboardingBankAccountVerified("manual")},[y,H?.providerVerificationStatus?.code,rt]);const Bt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))D?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=s.getValues(`${u}`).country;let i=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=xt(d?.country);i={street:n[u].street??S.strings.empty,city:d?.locality??S.strings.empty,state:d?.administrativeAreaLevel1??S.strings.empty,country:k,countryCode:d?.countryCode??S.strings.empty,postalCode:d?.postalCode??S.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(i={...i,country:k})}else e===`${u}.country`&&o.selectedOption!=null?i={...i,countryCode:yt(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(i={...i,countryCode:yt(o.selectedOption)});Vt(i)}};p.useEffect(()=>{const e=s.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Bt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{ie==="In-Progress"&&O.fetchState==="Completed"&&(s.reset(Me(f,Le),{keepDirtyValues:!1}),E==="company_details"&&a==="link_payment_account"&&!h.includes("qbo_connection")&&!f.qboConnected&&Se())},[s,f,ie,O.fetchState,Le,E,a,h,Se]),p.useEffect(()=>{Ce&&ie==="In-Progress"&&O.fetchState==="Completed"&&(De(),y.track(mt.Event.onboardingSkipAndSave))},[ie,Ce,O.fetchState,De]),p.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&O.fetchState==="Completed"&&(U(te.fromStep,te.stepDirection,!0),Y(null))},[te,ie,O.fetchState,U]),p.useLayoutEffect(()=>{E!=null&&E!==a&&(h.indexOf(E)===h.indexOf(a)-1||h.indexOf(E)===ze-1&&h.indexOf(a)===0?R!=="next"&&z("next"):(h.indexOf(E)-1===h.indexOf(a)||h.indexOf(E)===0&&h.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[h,a,E,R,ze]);const ct=()=>{const e=Q[_];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Rt=!He(tt!=null?M.getFormattedAddress(tt):null,Be!=null?M.getFormattedAddress(Be):null),zt=!He(nt!=null?M.getFormattedAddress(nt):null,ke!=null?M.getFormattedAddress(ke):null),Ut=!He(at!=null?M.getFormattedAddress(at):null,Re!=null?M.getFormattedAddress(Re):null),qt=s.getFieldState(j).isDirty||zt||Ut||Nt,Ue=s.getFieldState(C).isDirty&&ct()||Rt||Ft,lt=s.getFieldState(`${u}`).isDirty,Qt=g?.primaryContactLocalData,Ht=()=>{U(a,"previous",!0)},Mt=()=>{const e=s.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??S.strings.empty,secondaryInfo:e.secondaryInfo};y.trackOnboardingBillingAddressSave(n)},Kt=()=>{switch(Pe(!1),a){case"link_payment_account":lt?setTimeout(()=>{const e=q();N?.(e),it()&<?(Mt(),Ne(_,!1,!0),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=dt();if(me(()=>{const n=q();N?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=s.formState.errors[C]?.[X<0?0:X],o=n?.phone,i=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!i){Xe(e.phoneNumber);return}}e.isValid&&(Ne(_,!1,!1),y.trackOnboardingCompanyOfficerSave(pt(),{legalName:g?.companyLegalName}),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(it()&&ue()),n=!Lt()&&h.includes("qbo_connection");if(e||n){e&&(s.trigger(`${Z}`),s.trigger(`${u}`)),n&&s.trigger(ge),me(()=>{const o=q();N?.(o)}),e?Fe("link_payment_account"):n&&Fe("qbo_connection");return}}if(qt||Ue||!Qt?.email){const e=Yt(),n=Ue?dt():{isValid:!0};me(()=>{const o=q();N?.(o)}),e&&n.isValid?(Te&&(B(!0),Jt()),Ne(_,!Te,!1),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Fe("company_officer")}else Te?Wt():U(a,"next",!0);break}},Wt=()=>{O.fetchState!=="In-Progress"&&(De(),y.track(mt.Event.onboardingSkipAndSave))},dt=()=>{const e=Q[_],n=e?.email??S.strings.empty,o=e?.phone??S.strings.empty,i=e?.ssn??S.strings.empty,d=e?.ownershipInCompany,k=X<0?0:X,Gt=!!e?.firstName&&!!e?.lastName;let G=!0,ut=!1;return n&&!Gt&&(s.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),G=!1),(!n&&ct()||ht.test(n)===!1)&&(s.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),G=!1),o&&ye(o)===!1&&(s.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),G=!1),o&&ye(o)===!0&&x==="unit"&&(Oe.current!==""&&o===Oe.current||(ut=!0,s.setError(`${C}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),G=!1)),d!=null&&d>100&&(s.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),G=!1),i&&dn.test(i)===!1&&(s.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),G=!1),{isValid:G,needsOtp:ut,phoneNumber:o}},Yt=()=>{const e=g?.website?.toString()??S.strings.empty,n=g?.phone??S.strings.empty,o=g?.taxIdOrEIN??S.strings.empty,i=g?.primaryContactLocalData?.email??S.strings.empty;let d=!0;return e&>.test(e)===!1&&(s.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),gt.lastIndex=0,n&&ye(n)===!1&&(s.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!i||ht.test(i)===!1)&&(s.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&ln.test(o)===!1&&(s.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},pt=()=>{const e=Q[_];return{email:e?.email??S.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Jt=()=>{const e=g?.primaryContactLocalData;y.trackBusinessVerificationSave(pt(),{companyDescription:g?.companyDescription,legalName:g?.companyLegalName,phone:g?.phone,website:g?.website?.toString(),industry:g?.companyIndustry??S.strings.empty,formattedAddress:g?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(g?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Xt]=p.useState(!1);return r.jsxs(vn,{children:[r.jsxs(Vn,{windowSize:L,children:[h.indexOf(a)>=0?r.jsx(tn,{title:st.sectionTitle,showBackButton:!1,backgroundColor:$t.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx($n,{windowSize:L,children:r.jsx(Nn,{windowSize:L,children:r.jsx(Dn,{})})}),r.jsx(nn,{...s,children:r.jsx(Tn,{id:On(Pt),children:h.map(e=>{let n;n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:I,resetCardPaymentViewState:ee,updateCardPaymentModalState:F,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=ve;switch(e){case"link_payment_account":n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,subscriptionBillingAddressSectionId:u,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:F,cardPaymentView:I,resetCardPaymentViewState:ee,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:J});break;case"qbo_connection":n=r.jsx(In,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:c,isValid:_e?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:_e?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:At,updateQBOPopupState:vt}),o=Ve;break;case"company_officer":n=r.jsx(hn,{companyOfficerLocalData:Q,allNationalityCountries:Le,isCompleted:Ze.includes("company_officer"),companyView:se,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:A,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:wt,onOfficerAddressClick:i=>ne(i,Be?.addressId),updateFilesEntity:Je,onEditFileName:Ye,onDeleteFile:v,verifiedPhoneNumber:Oe.current,onPhoneVerified:Dt,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Ge}),o=$e;break;case"company_details":n=r.jsx(Cn,{fileProps:{...t,onEditFileName:Ye,onDeleteFile:v,updateFilesEntity:Je},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:g,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:i=>{const d=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?ne(i,d):ne(i,ke?.addressId)},onRegisteredAddressClick:i=>ne(i,Re?.addressId)}),o=W;break}return r.jsxs(Fn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!T:!0,paddingBottom:e==="company_details"||e==="company_officer"?K[6]:K[0],stepAnimationDirection:R,children:[h.indexOf(a)>=0?r.jsx(_n,{windowSize:L,children:st.sectionSubTitle}):null,n]},e)})})}),r.jsx(an,{formId:`${Pt}`,style:{width:L==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Kt,label:a==="company_details"?S.footer.submit:ot.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Ht,label:ot.back,isDisabled:O.fetchState==="In-Progress"||h.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(un,{handleConfirmCardSetupIntent:$,updateCardPaymentModalState:F,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Xt})]})},wn=It`
|
|
13
|
+
`,In=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=rn();return r.jsxs(Pn,{children:[r.jsx(xn,{type:"hidden",...f(`${w}.connected`,{validate:A=>A==="true"}),value:t?"true":"false"}),r.jsx(gn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(M[5],M[9],112),subTitlePaddingTop:new fe(M[3],M[3]),subTitlePaddingBottom:new fe(M[3],M[3])},On=t=>`${t}_form`,ce=We.getLocalizedStrings(),kn=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:A,connectedAccountProvider:x,analytics:y,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:$,updateCardPaymentModalState:N,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:F,...Ae})=>{const L=Me(),ve=p.useRef(null),Ve=p.useRef(null),W=p.useRef(null),$e=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[le,Pe]=p.useState(!1),[te,Y]=p.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:D,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:v,onEditFileName:Ye,updateFilesEntity:Xe,onGetOtp:Ot,onSkipSetupClick:De,onUpdateCustomerView:Fe,updateStepHandler:U,onVerifyOtp:kt,onResendOtp:wt,handleOnConnectClick:At,updateQBOPopupState:vt,onUpdateStep:Ne,onAddressEditHandler:Vt}=Ae,$t=Zt(),s=en({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Ke(f,f.allNationalityCountries),values:Ke(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(s.getFieldState(Z).error!=null||s.getFieldState(u).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);p.useEffect(()=>{const e=q();F?.(e)},[q,F]),p.useEffect(()=>{const e=s.watch((n,{name:o,type:i})=>{o!=null&&(i==="change"||i==="blur")&&me(()=>{const d=q();F?.(d)})});return()=>e.unsubscribe()},[s,q,F]);const Ge=e=>{Je(e)},Oe=p.useRef(""),Dt=e=>{Oe.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,o=n<0?0:n;s.clearErrors(`${C}.${o}.phone`)},Je=e=>{e!=null&&!ye(e)?s.trigger(`${C}.${G}.phone`):Ot(e)},{companyView:se,companyDetailsLocalData:g,companyOfficerLocalData:Q,currentStep:a,completedSteps:Ze,saveStatus:O,allSteps:h,allRequiredStepsCompleted:Te,paymentAccount:H,paymentAccountStatus:et,externalConnections:_e,plaidConnectionDetails:Ee,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:Ft,officer:Nt},subscriptionBillingAddress:X}=f,G=Object.values(Q).findIndex(e=>e?.isSelectedForVerification===!0)??0,_=`Officer_${G<0?1:G+1}`,Tt=se?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=Q[_]?.userId!=null?Tt?.find(e=>e.user.userId===Q[_]?.userId)?.address:null,tt=Q[_]?.addressStatus?.addressToCreate,ke=se?.companyAddress,nt=g?.addressStatus?.addressToCreate,Re=se?.registeredAddress,at=g?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:_t,common:S}=ce,{footer:Et,steps:jt}=_t,{buttons:ot}=Et,st=jt[a],ze=h.length,ie=Qe(O.fetchState),E=Qe(a);function Lt(){return _e?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Ee).some(d=>d.fetchStatus.fetchState==="Completed"),n=H?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,i=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!H&&o||!o&&!H&&i};function it(){if(s.getFieldState(u).error)return!1;const e=s.getValues(u),n=X?.street.join("").trim(),o=X?.city,i=X?.state,d=X?.country,k=X?.postalCode!=null&&X.postalCode||e.postalCode||S.strings.empty;return!!n&&!!o&&!!i&&!!d&&!!k}const rt=Qe(H?.providerVerificationStatus?.code);p.useEffect(()=>{rt==="pending_manual_verification"&&H?.providerVerificationStatus?.code==="manually_verified"&&y.trackOnboardingBankAccountVerified("manual")},[y,H?.providerVerificationStatus?.code,rt]);const Bt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))D?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=s.getValues(`${u}`).country;let i=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=xt(d?.country);i={street:n[u].street??S.strings.empty,city:d?.locality??S.strings.empty,state:d?.administrativeAreaLevel1??S.strings.empty,country:k,countryCode:d?.countryCode??S.strings.empty,postalCode:d?.postalCode??S.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(i={...i,country:k})}else e===`${u}.country`&&o.selectedOption!=null?i={...i,countryCode:yt(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(i={...i,countryCode:yt(o.selectedOption)});Vt(i)}};p.useEffect(()=>{const e=s.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Bt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{ie==="In-Progress"&&O.fetchState==="Completed"&&(s.reset(Ke(f,Le),{keepDirtyValues:!1}),E==="company_details"&&a==="link_payment_account"&&!h.includes("qbo_connection")&&!f.qboConnected&&Se())},[s,f,ie,O.fetchState,Le,E,a,h,Se]),p.useEffect(()=>{Ce&&ie==="In-Progress"&&O.fetchState==="Completed"&&(De(),y.track(mt.Event.onboardingSkipAndSave))},[ie,Ce,O.fetchState,De]),p.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&O.fetchState==="Completed"&&(U(te.fromStep,te.stepDirection,!0),Y(null))},[te,ie,O.fetchState,U]),p.useLayoutEffect(()=>{E!=null&&E!==a&&(h.indexOf(E)===h.indexOf(a)-1||h.indexOf(E)===ze-1&&h.indexOf(a)===0?R!=="next"&&z("next"):(h.indexOf(E)-1===h.indexOf(a)||h.indexOf(E)===0&&h.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[h,a,E,R,ze]);const ct=()=>{const e=Q[_];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Rt=!He(tt!=null?K.getFormattedAddress(tt):null,Be!=null?K.getFormattedAddress(Be):null),zt=!He(nt!=null?K.getFormattedAddress(nt):null,ke!=null?K.getFormattedAddress(ke):null),Ut=!He(at!=null?K.getFormattedAddress(at):null,Re!=null?K.getFormattedAddress(Re):null),qt=s.getFieldState(j).isDirty||zt||Ut||Ft,Ue=s.getFieldState(C).isDirty&&ct()||Rt||Nt,lt=s.getFieldState(`${u}`).isDirty,Qt=g?.primaryContactLocalData,Ht=()=>{U(a,"previous",!0)},Kt=()=>{const e=s.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??S.strings.empty,secondaryInfo:e.secondaryInfo};y.trackOnboardingBillingAddressSave(n)},Mt=()=>{switch(Pe(!1),a){case"link_payment_account":lt?setTimeout(()=>{const e=q();F?.(e),it()&<?(Kt(),Fe(_,!1,!0),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=dt();if(me(()=>{const n=q();F?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=s.formState.errors[C]?.[G<0?0:G],o=n?.phone,i=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!i){Ge(e.phoneNumber);return}}e.isValid&&(Fe(_,!1,!1),y.trackOnboardingCompanyOfficerSave(pt(),{legalName:g?.companyLegalName}),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(it()&&ue()),n=!Lt()&&h.includes("qbo_connection");if(e||n){e&&(s.trigger(`${Z}`),s.trigger(`${u}`)),n&&s.trigger(ge),me(()=>{const o=q();F?.(o)}),e?Ne("link_payment_account"):n&&Ne("qbo_connection");return}}if(qt||Ue||!Qt?.email){const e=Yt(),n=Ue?dt():{isValid:!0};me(()=>{const o=q();F?.(o)}),e&&n.isValid?(Te&&(B(!0),Xt()),Fe(_,!Te,!1),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Ne("company_officer")}else Te?Wt():U(a,"next",!0);break}},Wt=()=>{O.fetchState!=="In-Progress"&&(De(),y.track(mt.Event.onboardingSkipAndSave))},dt=()=>{const e=Q[_],n=e?.email??S.strings.empty,o=e?.phone??S.strings.empty,i=e?.ssn??S.strings.empty,d=e?.ownershipInCompany,k=G<0?0:G,Jt=!!e?.firstName&&!!e?.lastName;let J=!0,ut=!1;return n&&!Jt&&(s.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),J=!1),(!n&&ct()||ht.test(n)===!1)&&(s.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!1&&(s.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!0&&x==="unit"&&(Oe.current!==""&&o===Oe.current||(ut=!0,s.setError(`${C}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),J=!1)),d!=null&&d>100&&(s.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),J=!1),i&&dn.test(i)===!1&&(s.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),J=!1),{isValid:J,needsOtp:ut,phoneNumber:o}},Yt=()=>{const e=g?.website?.toString()??S.strings.empty,n=g?.phone??S.strings.empty,o=g?.taxIdOrEIN??S.strings.empty,i=g?.primaryContactLocalData?.email??S.strings.empty;let d=!0;return e&>.test(e)===!1&&(s.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),gt.lastIndex=0,n&&ye(n)===!1&&(s.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!i||ht.test(i)===!1)&&(s.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&ln.test(o)===!1&&(s.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},pt=()=>{const e=Q[_];return{email:e?.email??S.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?K.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Xt=()=>{const e=g?.primaryContactLocalData;y.trackBusinessVerificationSave(pt(),{companyDescription:g?.companyDescription,legalName:g?.companyLegalName,phone:g?.phone,website:g?.website?.toString(),industry:g?.companyIndustry??S.strings.empty,formattedAddress:g?.addressStatus?.addressToCreate!=null?K.getFormattedAddress(g?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Gt]=p.useState(!1);return r.jsxs(vn,{children:[r.jsxs(Vn,{windowSize:L,children:[h.indexOf(a)>=0?r.jsx(tn,{title:st.sectionTitle,showBackButton:!1,backgroundColor:$t.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx($n,{windowSize:L,children:r.jsx(Fn,{windowSize:L,children:r.jsx(Dn,{})})}),r.jsx(nn,{...s,children:r.jsx(Tn,{id:On(Pt),children:h.map(e=>{let n;n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:I,resetCardPaymentViewState:ee,updateCardPaymentModalState:N,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=ve;switch(e){case"link_payment_account":n=r.jsx(St,{connectedAccountProvider:x,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,subscriptionBillingAddressSectionId:u,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:N,cardPaymentView:I,resetCardPaymentViewState:ee,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:X});break;case"qbo_connection":n=r.jsx(In,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:c,isValid:_e?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:_e?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:At,updateQBOPopupState:vt}),o=Ve;break;case"company_officer":n=r.jsx(hn,{companyOfficerLocalData:Q,allNationalityCountries:Le,isCompleted:Ze.includes("company_officer"),companyView:se,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:A,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Ge,onVerifyOtp:kt,onResendOtp:wt,onOfficerAddressClick:i=>ne(i,Be?.addressId),updateFilesEntity:Xe,onEditFileName:Ye,onDeleteFile:v,verifiedPhoneNumber:Oe.current,onPhoneVerified:Dt,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Je}),o=$e;break;case"company_details":n=r.jsx(Cn,{fileProps:{...t,onEditFileName:Ye,onDeleteFile:v,updateFilesEntity:Xe},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:g,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:i=>{const d=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?ne(i,d):ne(i,ke?.addressId)},onRegisteredAddressClick:i=>ne(i,Re?.addressId)}),o=W;break}return r.jsxs(Nn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!T:!0,paddingBottom:e==="company_details"||e==="company_officer"?M[6]:M[0],stepAnimationDirection:R,children:[h.indexOf(a)>=0?r.jsx(_n,{windowSize:L,children:st.sectionSubTitle}):null,n]},e)})})}),r.jsx(an,{formId:`${Pt}`,style:{width:L==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Mt,label:a==="company_details"?S.footer.submit:ot.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Ht,label:ot.back,isDisabled:O.fetchState==="In-Progress"||h.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(un,{handleConfirmCardSetupIntent:$,updateCardPaymentModalState:N,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Gt})]})},wn=It`
|
|
14
14
|
from {
|
|
15
15
|
transform: translateY(100%);
|
|
16
16
|
opacity: 0;
|
|
@@ -63,13 +63,13 @@ import{j as r,e as Ke,u as Zt,a as en,ca as me,B as We,a2 as Qe,N as mt,O as He,
|
|
|
63
63
|
align-items: center;
|
|
64
64
|
text-align: center;
|
|
65
65
|
width: ${t=>`calc(100% - ${he.topNavBarLeftRightSpace.valuePx(t.windowSize)})`};
|
|
66
|
-
`,Dn=P.div``,
|
|
66
|
+
`,Dn=P.div``,Fn=P.div`
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: space-between;
|
|
70
70
|
width: 100%;
|
|
71
71
|
min-height: ${t=>he.topNavBarHeight.valuePx(t.windowSize)};
|
|
72
|
-
`,
|
|
72
|
+
`,Nn=P.div`
|
|
73
73
|
min-height: 100%;
|
|
74
74
|
display: ${t=>t.isVisible?"flex":"none"};
|
|
75
75
|
flex-direction: column;
|
|
@@ -94,7 +94,7 @@ import{j as r,e as Ke,u as Zt,a as en,ca as me,B as We,a2 as Qe,N as mt,O as He,
|
|
|
94
94
|
text-align: ${t=>t.windowSize==="small"?"initial":"center"};
|
|
95
95
|
width: 100%;
|
|
96
96
|
white-space: pre-line;
|
|
97
|
-
`,
|
|
97
|
+
`,Ke=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:A}=t,x=ce.commonSetUp.businessVerification,y=ce.companyPassport,I=A?.companyOfficers!=null&&A?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??ce.common.strings.empty,ein:c?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??ce.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:t.companyIndustries.map(m=>m.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:y.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,V)=>{const l=m,$=sn(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${V+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:xt(l?.nationalityCountryCode,w.map(N=>N.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:x.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:ft(!0,l?.userFiles??[],$),back:ft(!1,l?.userFiles??[],$),selectDocumentType:$},isSelectedForVerification:!I&&V===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[u]:on(u,t?.subscriptionBillingAddress)[u],[ge]:{connected:t.externalConnections?.accounting[0]?.isValid??!1}}},ia=t=>{const{onboardingCustomerView:w,cardPaymentView:c,signedInUser:f,currentTenant:A,isOnAddressPage:x,stripeKey:y,googleAPIKey:I,onUpdateStep:m,onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:$,meetingUrl:N,analytics:b,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:F,resetCardPaymentViewState:Ae,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,...Ve}=t,{allSteps:W,completedSteps:$e,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),T=p.useRef(W),[be,le]=p.useState(!1),[Pe,te]=p.useState([]),Y={allSteps:W,isOnAddressPage:x,completedSteps:$e,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:A,onUpdateStep:D=>{m(D)},onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:$,setIsStepClicked:le};p.useEffect(()=>{if(z.current!==B){const D=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,D),le(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{W.length!==T.current.length&&(T.current=W)},[W]);const ne=(D,Ie,de)=>{const ae=T.current.length,pe=T.current.indexOf(D);switch(Ie){case"next":{const oe=(pe+1)%ae,v=T.current[oe];z.current=v,m(v),de===!0?b.trackOnboardingNext(D,v):b.trackOnboardingCurrentStep(v,D);break}case"previous":{const oe=(pe+ae-1)%ae,v=T.current[oe];z.current=v,m(v),de===!0?b.trackOnboardingBack(D,v):b.trackOnboardingCurrentStep(v,D);break}}},xe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:x,children:x?r.jsx(Ct,{...Y}):r.jsxs(jn,{children:[r.jsx(Ct,{...Y}),xe?r.jsx(mn,{isNoStepsPage:!1}):r.jsx(kn,{onboardingCustomerView:w,analytics:b,updateStepHandler:ne,onUpdateStep:m,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:F,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:Ae,stripeKey:y,googleAPIKey:I,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,onFormErrorsChange:te,...Ve}),xe?null:r.jsx(pn,{isFooterRendered:!0,meetingUrl:N,analytics:b,productType:"onboarding"})]})})},En=P.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: ${t=>t.isOnAddressPage?"fit-content":"100%"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as M,x as U,Y as D,u as W,B as _,j as e,aX as A,o as t,$ as y,aJ as H,l as I,t as R,M as V,g as l,v as k,f as J,T as N,c7 as Y,r as Z,af as q}from"./index-
|
|
1
|
+
import{e as M,x as U,Y as D,u as W,B as _,j as e,aX as A,o as t,$ as y,aJ as H,l as I,t as R,M as V,g as l,v as k,f as J,T as N,c7 as Y,r as Z,af as q}from"./index-B3ZVYk1F.js";import{b as n,n as i}from"./vendor-rkTZJa59.js";import Q from"./ConfettiBurst-BA8BvtO--TQqeek3y.js";import{D as X}from"./HelpButton-DiIoYeXn-Ctwzgsr_.js";import{_ as G}from"./ProductsCarousel-BnnfJR0o-DuEhjdG1.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";const K=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=_.getLocalizedStrings(),De=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=D(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=F;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},B=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,I.getProductSettingsString(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(A,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ye,{"data-testid":y("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":y("update-to-payment-address-details"),onClick:()=>B(a),children:[e.jsx(ke,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx($e,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(G,{scale:1,showUpdatePaymentDetailButton:u,stopCarousel:w})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(H,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(X,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:b})]})},te=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as YA,l as uA,j as e,E as kt,H as Dt,I as yt,o as r,L as jt,N as mA,O as Mt,P as _A,Q as vt,S as bt,U as Rt,V as St,W as Lt,X as Ft,Z as J,B as l,e as q,_ as H,$ as f,a0 as U,a1 as Y,q as R,a as Jt,a2 as je,a3 as Pt,F as Ut,a4 as Ot,C as K,a5 as T,a6 as G,n as X,a7 as Me,a8 as S,a9 as F,aa as KA,u as AA,ab as Ht,ac as GA,ad as Tt,g as k,ae as Yt,af as Kt,w as P,ag as bA,r as NA,t as zA,ah as ve,ai as be,aj as Re,ak as WA,J as Gt,y as Nt,al as zt,am as Se,an as Wt,ao as qt,ap as RA,aq as Xt,ar as Vt,as as Zt,at as $t,au as _t,av as Ar,aw as er,ax as tr,m as Le,v as rr,ay as or,az as gr,aA as Fe,aB as Je,k as ar,aC as Cr,f as ir,aD as Pe}from"./index-
|
|
1
|
+
import{Y as YA,l as uA,j as e,E as kt,H as Dt,I as yt,o as r,L as jt,N as mA,O as Mt,P as _A,Q as vt,S as bt,U as Rt,V as St,W as Lt,X as Ft,Z as J,B as l,e as q,_ as H,$ as f,a0 as U,a1 as Y,q as R,a as Jt,a2 as je,a3 as Pt,F as Ut,a4 as Ot,C as K,a5 as T,a6 as G,n as X,a7 as Me,a8 as S,a9 as F,aa as KA,u as AA,ab as Ht,ac as GA,ad as Tt,g as k,ae as Yt,af as Kt,w as P,ag as bA,r as NA,t as zA,ah as ve,ai as be,aj as Re,ak as WA,J as Gt,y as Nt,al as zt,am as Se,an as Wt,ao as qt,ap as RA,aq as Xt,ar as Vt,as as Zt,at as $t,au as _t,av as Ar,aw as er,ax as tr,m as Le,v as rr,ay as or,az as gr,aA as Fe,aB as Je,k as ar,aC as Cr,f as ir,aD as Pe}from"./index-B3ZVYk1F.js";import{b as a,n as C,f as D,k as L,j as pA}from"./vendor-rkTZJa59.js";import{j as nr}from"./DashboardSidebarBackgroundAnimation-B73UBY5T-D5kdRGqv.js";import{L as Er,k as Br}from"./ArAgingChart-tm5ZiNuY-bpLRwx8t.js";import{E as sr,T as qA,I as Ue}from"./ReloadCard-Dvn17Oxl-DR2ZGl4V.js";import{L as Qr,O as wA,c as eA}from"./TopExCard-BGgGFzmK-DnxQur7z.js";import{H as Ir,Y as dr,P as lr,G as cr,N as hr}from"./RevenueChart-DILkui6c-DpfzJJzi.js";import mr from"./InsightsCardStack-BKm0dSeJ-tQyIIMQ-.js";import{a as pr}from"./AccountsPromoCardStack-CC72plKm-B_EPEjmc.js";import{c as N}from"./SummaryCard-DBMfNfN2-CxrLGKq4.js";import{t as ur,o as wr}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{x as iA}from"./NavigationArrow-eEaMttBX-CaVHzVzK.js";import{k as XA}from"./NavigationDots-CNwL0a7I-ycY998lH.js";import xr from"./CompanyPassportCard-C_YUK3R3-C9vTVBKY.js";import{C as fr}from"./gift-box-Cmt9OgIZ-BqWjP_Ex.js";import kr from"./InformationCardStack-C8-4dhWR-BAea0hjm.js";import{p as Oe}from"./chartTypes-CJmQ6FtI-Ha5e563Y.js";import{h as Dr}from"./toCOABalancesWithID-DTfegixr-78ZP1LOH.js";import{V as yr}from"./toChartData-CH5DcWUY-BzD5DRW0.js";import{r as jr,i as Mr}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{N as vr,J as br}from"./PromoBaseCards-BGHJivI8-Bv4vo0R4.js";import Rr from"./ConfettiBurst-BA8BvtO--TQqeek3y.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const Sr=C(G)`
|
|
2
2
|
color: ${A=>A.theme.colors.champion};
|
|
3
3
|
`,Ae=C.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as B,u as q,B as _,Y as Oe,l as D,j as s,aX as Qe,m as Ke,N as Je,aZ as Xe,o as d,C as L,O as X,a_ as et,a$ as tt,w as ae,q as C,aj as st,a8 as ot,b0 as at,a3 as Be,K as Pe,g as T,r as Ne,a7 as nt,ap as it,k as rt,b1 as ct,b2 as lt,b3 as dt,b4 as ie,b5 as pt,aD as ut,n as gt,b6 as mt}from"./index-
|
|
1
|
+
import{e as B,u as q,B as _,Y as Oe,l as D,j as s,aX as Qe,m as Ke,N as Je,aZ as Xe,o as d,C as L,O as X,a_ as et,a$ as tt,w as ae,q as C,aj as st,a8 as ot,b0 as at,a3 as Be,K as Pe,g as T,r as Ne,a7 as nt,ap as it,k as rt,b1 as ct,b2 as lt,b3 as dt,b4 as ie,b5 as pt,aD as ut,n as gt,b6 as mt}from"./index-B3ZVYk1F.js";import{b as y,f as ee,n as u,k as Le}from"./vendor-rkTZJa59.js";import{m as U,l as oe}from"./analyticsHelper-B3uAu0es-D5bv_Tk4.js";import{c as ht,h as ft}from"./ReportTableViewSelector-C5_qr5qe-CZbpaUM0.js";import{B as bt}from"./InsightsSection-C9MHOCQd-CQVD8k8O.js";import{N as _e,k as xt,q as _t,H as te,G as ue}from"./detailCommon-Dfxas1Kf-B-9ceYeB.js";import{N as wt,G as St,H as we,Y as Se,P as ye}from"./RevenueChart-DILkui6c-DpfzJJzi.js";import{C as yt}from"./NoDataChart-DNmdY5gQ-88rt-13k.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as vt}from"./TimeRangeSwitcher-2vDR_AEV-BbQMpJD3.js";import{y as Ie}from"./TimeframeSwitcher-BB3_i5V0-DVjpfJ9Q.js";import{R as $t,W as V,x as jt,l as ge,D as Ct}from"./CollapsableReportTable-B0wI9SM1-LqZDOdQu.js";import{S as kt,M as Ot,g as Bt,L as se,D as Re,T as De,I as Te}from"./mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-D8olWEXo.js";import{d as Pt}from"./NoDataTable-DW2wAX3o-Ev4DYYSH.js";import{d as me,l as he}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-BfpwOR3K.js";import{d as fe}from"./mapLoadingInProgressToTreeNode-BG784RuM-DGZs46wV.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./NavigationDots-CNwL0a7I-ycY998lH.js";import"./chartTypes-CJmQ6FtI-Ha5e563Y.js";import"./toCOABalancesWithID-DTfegixr-78ZP1LOH.js";import"./toChartData-CH5DcWUY-BzD5DRW0.js";import"./AccountRow-CiIWoLq3-edEx8OVG.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const Nt=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Lt=u.div`
|
|
2
2
|
justify-content: center;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ac as h,j as a,ak as m,o as p}from"./index-
|
|
1
|
+
import{ac as h,j as a,ak as m,o as p}from"./index-B3ZVYk1F.js";import{b as s,u,n as x}from"./vendor-rkTZJa59.js";const y=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:t=!1}){const o=u(),l=t?"DashboardNewYearShow":"DashboardChristmasSnow",[i,r]=h(l),[n,d]=s.useState(null);i!=null&&n==null&&!r&&d(i);const c=e&&o.mode==="light"?.7:.2;return(e||t)&&n!=null?a.jsx(b,{contextWiseOpacity:c,newYearAnimationEnabled:t,children:a.jsx(m,{style:{width:"inherit",height:"inherit",display:"block"},animationData:n,play:!0,loop:t?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),b=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a0 as $,
|
|
1
|
+
import{a0 as $,g$ as u,e as y,j as l,o as i,t as d,n as c}from"./index-B3ZVYk1F.js";import{n as t}from"./vendor-rkTZJa59.js";import{g as k}from"./BoxItem-CZKWkdxd-D45EULBV.js";import{o as v}from"./commonDimensions-WRL2ZVK_-DQ7f551Y.js";function F({data:e,boxType:w}){const{counterParty:s,typeName:r,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=s.length>0?s:m,a=$("0,0.00",x),n=u(g),o=y(),h=l.jsxs(N,{children:[l.jsx(B,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(D,{windowSize:o,children:[l.jsx(C,{children:f}),n!=null?l.jsxs(E,{windowSize:o,children:[l.jsx(R,{windowSize:o}),l.jsx(P,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[r!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:r})}):null,l.jsx(A,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as S,e as z,
|
|
1
|
+
import{u as S,e as z,h5 as C,j as e,aX as D,B as Y,aj as B,o as r,g,b_ as F,l as L,C as R,w as A,t as I,q as b,de as T,df as E,d9 as N,dg as P}from"./index-B3ZVYk1F.js";import{b as f,n as a}from"./vendor-rkTZJa59.js";import{$ as V}from"./BoxItem-CZKWkdxd-D45EULBV.js";import{o as q}from"./commonDimensions-WRL2ZVK_-DQ7f551Y.js";import{H}from"./DepositAccTransactionItem-DrqBG940-DmUhrS8P.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const n=Y.getLocalizedStrings(),K={listItemMargin:new R(b[3],b[8])};function O(t){const d=T(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=E(d,o=>o.length>0);return N(m,o=>({date:o[0].transactionDate,transactions:P(o,h=>h.transactionDate,"desc")}))}const X=C(O),mt=({transactionListView:t,onBackClick:d})=>{const m=S(),o=z(),h=f.createRef(),p=f.useRef(null),l=X(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*q.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(U,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(Z,{children:s.transactions.map((M,u)=>e.jsx(H,{data:M,boxType:V(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(_,{children:e.jsx($,{windowSize:o,children:e.jsx(Q,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(G,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
|
|
2
2
|
margin: ${t=>`${r.sp0} ${K.listItemMargin.valuePx(t.windowSize)}`};
|
|
3
3
|
`,_=a.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as
|
|
1
|
+
import{e as U,a as V,B as $,ca as H,O as G,l as B,j as n,bV as X,bX as Y,bY as _,F as J,a4 as K,C as u,eU as Q,o as Z,ao as ee,q as a}from"./index-B3ZVYk1F.js";import{b as N,n as h}from"./vendor-rkTZJa59.js";import{e as ne}from"./BankAccountSection-AuQLRvdb-gdyFccjw.js";import{M as te}from"./MagicLinkTitleSection-DRMHVOzF-DEkSaohc.js";import{W as ae,A as oe}from"./BankAccountWarningSection-HvUMABu0-DCgGbiJA.js";import{T as ie}from"./MailingDetailsSection-DgdAYgpS-Fu_811Zm.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},j="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:D,amount:z,onSaveHandler:P,onWireDetailsUpdated:R,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=U(),c=V({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[W,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,F=$.getLocalizedStrings().common.footer,M=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},q=async(k,m)=>{const d=m[f].bankRoutingNumber;R(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&Q.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&H(()=>q(d,m))});return()=>{k.unsubscribe()}});const O=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&P("wire")}),S=!G(y!=null?B.getFormattedAddress(y):y,r!=null?B.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[W===!0?n.jsx(X,{titleComponent:n.jsx(_,{children:t.discardTitle}),descriptionComponent:n.jsx(Y,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:z??0}):M.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(J,{...c,children:n.jsxs("form",{id:T(j),onSubmit:O,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(K,{formId:T(j),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:F.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
|
|
2
2
|
padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
|
|
3
3
|
padding-right: ${e=>i.paddingRight.valuePx(e.size)};
|
|
4
4
|
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
package/dist/assets/{DownloadOverlay-DQZd_zyi-DgSvHPf2.js → DownloadOverlay-D_UoB4Xy-CC7gI-hn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,bz as Xe,o as a,e as le,bA as et,k as Re,l as d,g as de,C as H,a3 as tt,B as Y,bB as rt,bg as ze,q as z,ao as Be,t as T,bn as we,v as Z,n as ce,K as ee,u as Ne,bp as at,bC as me,bD as pe,m as Ee,bE as Qe,p as fe,bF as q,be as ot,ap as st,bG as it,bH as nt,b6 as lt,bo as dt,r as ct,bI as mt,bv as pt,b2 as ft}from"./index-
|
|
1
|
+
import{j as t,bz as Xe,o as a,e as le,bA as et,k as Re,l as d,g as de,C as H,a3 as tt,B as Y,bB as rt,bg as ze,q as z,ao as Be,t as T,bn as we,v as Z,n as ce,K as ee,u as Ne,bp as at,bC as me,bD as pe,m as Ee,bE as Qe,p as fe,bF as q,be as ot,ap as st,bG as it,bH as nt,b6 as lt,bo as dt,r as ct,bI as mt,bv as pt,b2 as ft}from"./index-B3ZVYk1F.js";import{b as u,n,k as Ve,f as he}from"./vendor-rkTZJa59.js";import{m as ht}from"./analyticsHelper-B3uAu0es-D5bv_Tk4.js";import{c as ut,h as bt}from"./ReportTableViewSelector-C5_qr5qe-CZbpaUM0.js";import{t as gt}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./CollapsableReportTable-B0wI9SM1-LqZDOdQu.js";import"./AccountRow-CiIWoLq3-edEx8OVG.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function X(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return X(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
|
|
2
2
|
padding: ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.borderColor.default};
|
|
4
4
|
border-radius: ${a.sp1};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as a,j as i,bp as y,o,B as h,C as s,by as P,J as c,y as g,a3 as b,q as t,a0 as L,
|
|
1
|
+
import{e as a,j as i,bp as y,o,B as h,C as s,by as P,J as c,y as g,a3 as b,q as t,a0 as L,j9 as k,ja as C,jb as R}from"./index-B3ZVYk1F.js";import{n}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[B(),M(),_({rewardsPlan:e})],d=a();return i.jsx(H,{children:r.map((f,j)=>i.jsxs(E,{children:[i.jsx(J,{children:f}),j<r.length-1?i.jsx(I,{windowSize:d}):null]},`step_${j}`))})},B=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(W,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},M=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(N,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(A,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
|
|
2
2
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
3
3
|
border-radius: ${o.sp2};
|
|
4
4
|
box-shadow: ${e=>`${o.sp0} 1px 2px ${o.sp0} ${e.theme.colors.dropShadowNormal}`};
|
package/dist/assets/{EditPeoplePage-ZzjDJoTQ-BpAnOUqT.js → EditPeoplePage-BehcmP1s-DDHc5TZf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ae,B as de,
|
|
1
|
+
import{e as ae,B as de,fp as pe,u as ce,a as ue,a2 as me,j as t,bV as ge,bW as he,bX as fe,bY as ye,gh as xe,$ as B,c0 as ve,o as r,bp as be,F as $e,a4 as we,C as _,fs as Re,ft as Ce,fu as je,c5 as Oe,l as M,ao as ke,g as Q,cu as Pe,q as c}from"./index-B3ZVYk1F.js";import{b as $,n as o}from"./vendor-rkTZJa59.js";import{x as Ie}from"./AllUserItems-DJo9kLSI-7d78MjMn.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-iw4cLdRr.js";import"./RoleWithToolTip-_W95JBwt-CxTFR1LS.js";import"./LabeledZeniRolesDropDownField-azPB8idg-DtAOAxQ7.js";const j={containerPaddingTop:new _(c[3],c[3]),containerPaddingLeft:new _(c[3],c[6],c[6]),containerPaddingRight:new _(c[3],c[6],c[8]),buttonWidth:new _(85,85)},X="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,He=({peopleDetails:e,managersList:u,classList:R,controllersList:O,mode:d,isZeniTenant:E,onCloseClick:k,onResetClick:P,onSaveClick:m,onDeleteUser:K,onPeopleLocalDataUpdated:Y,analytics:U,isReimbursementDisabled:D,isZeniAccountsDisabled:q,isChargeCardDisabled:N,isTreasuryDisabled:Z,isBankingOnlyTenant:y,isCardsOnlyTenant:x,isLiteRoleDisabled:F})=>{const C=ae(),[G,S]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),T=$.useMemo(()=>pe(D,q,N,y,x,F,Z),[D,q,N,y,x,F,Z]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:J(e.people,u,R,d,T,y,x),values:J(e.people,u,R,d,T,y,x)}),re=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,v)=>{const{role:L,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=L.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${v}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${v}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||x||(l.setError(`${w}.${v}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${v}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:v}=n,L=e.person?.userRole?.userRoleId;v.forEach(i=>{let f={};if(L!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(z=>M.toUserRoleTypeStrict(z.selectedOption?.value)).filter(z=>z!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=M.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),Y(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const oe=()=>{S(!0)},le={onOkClick:()=>{const g=e.person;U?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),K?.(e.person)},onCancelClick:()=>{S(!1)}},W=me(e.person?.update),I=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{I==null&&W==="removeUsers"&&(S(!1),P?.())},[I,W]),t.jsxs(t.Fragment,{children:[G===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:I==="removeUsers",isDisabled:I==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{}),t.jsx(ze,{children:t.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(xe,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:k,isTitleAlignLeft:C==="small"}),t.jsxs(_e,{"data-testid":B("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(Le,{children:[t.jsx(ve,{personBasic:e.person?.user,styles:{height:r.sp6,width:r.sp6}}),t.jsxs(Ee,{children:[t.jsx(Se,{children:e.person?.user?.firstName?t.jsxs(Te,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(qe,{className:"delete-icon-wrapper","data-testid":B("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${X}_form`,onSubmit:re,children:t.jsx(Ie,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:E,classList:R,managersList:u,controllersList:O,customerRoleOptions:T,isBankingOnlyTenant:y,isCardsOnlyTenant:x,isEdit:!0,person:e.person,analytics:U})})})]}),t.jsx(we,{formId:`${X}_form`,"data-testid":B("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:k},separatorStyle:{marginRight:r.sp4}})]})},J=(e,u,R,O,d,E,k)=>{const P=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(E,k)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:P,selectedOption:P.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,_e=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|