@zeniai/web-cockpit-ui 1.13.90-qa → 1.13.91-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-ppaaVv4t-DerAWpBF.js → ACHDetailsPage---jqahtW-HkPM6iNK.js} +1 -1
- package/dist/assets/{AIPerformancePage-brocrTLA-D-qOCG9N.js → AIPerformancePage-CqtdCyg8-Dj0j3-W5.js} +36 -36
- package/dist/assets/{AccountInfoPage-BkqXbGUJ-CPi6xrFM.js → AccountInfoPage-Bj1CYa-r-6hrIafHf.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-DOrQxiUF-eaKGkCbW.js → AccountInfoPageContent-qqbfRfuR-DLDodhYL.js} +20 -20
- package/dist/assets/{AccountReconDetailsDrawerPage-i6rVi1gY-JXbUROYY.js → AccountReconDetailsDrawerPage-B4UwcNN9-Crki_oBL.js} +18 -18
- package/dist/assets/AccountRow-CPX-627p-B4ZaO0oz.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-BvFE5A3N-ObKkidII.js → AccountsPromoCardStack-DJRAw09x-KYhdIp34.js} +26 -26
- package/dist/assets/{AddAddressForCardDrawer-BV2BSzaD-BdS_xiVp.js → AddAddressForCardDrawer-C16ksTIf-_DtEs9T5.js} +1 -1
- package/dist/assets/{AddToWalletPage-DTEIuDRq-B2C8ipcJ.js → AddToWalletPage-CDP1oPrv-D581H1KG.js} +18 -18
- package/dist/assets/{AgingReportsPage-B8iVxaQX-BHVqW05k.js → AgingReportsPage-BE4plS7V-BI8-4bNE.js} +7 -7
- package/dist/assets/{AllUserItems-BepRyHp7-uJhUuJ3f.js → AllUserItems-hoI2_gnV-BVf131yZ.js} +8 -8
- package/dist/assets/{ApAgingDetailPage-DOObMUqB-PedjJRg4.js → ApAgingDetailPage-Lxprtz8c-v17bsYA_.js} +3 -3
- package/dist/assets/{AppBasePage-Ob8EkU54-B3S_sDum.js → AppBasePage-DNOkJf4q-CMKV9Zw9.js} +1 -1
- package/dist/assets/{AppDrawerContent-CNsKktFP-ClFlv3eL.js → AppDrawerContent-DG2Jr298-DulxRmba.js} +10 -10
- package/dist/assets/{ApprovalRulesSettingsPage-Bn7LOelK-BW8_3MdX.js → ApprovalRulesSettingsPage-DnKXln0A-Dwcdgf1j.js} +6 -6
- package/dist/assets/{ArAgingChart-C0hTtEmV-VmVxz3SE.js → ArAgingChart-BRcy3--o-CqONheoM.js} +7 -7
- package/dist/assets/{ArAgingDetailPage-C_E_xPwf-CIbWz25g.js → ArAgingDetailPage-Djsocm6M-DY45zDqC.js} +3 -3
- package/dist/assets/{AttachmentView-CATl3tNf-bIcN6zuK.js → AttachmentView-C3AzH7cN-Csi7tXqw.js} +8 -8
- package/dist/assets/{BankAccountSection-VSbZyxoY-DFVEfVO4.js → BankAccountSection-6zosSfPV-CL3CT6a1.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-a39s142r-B8eviNRA.js → BankAccountWarningSection-CWeN3me0-QfeSw0RL.js} +6 -6
- package/dist/assets/{BankConnectionsSettingsPage-CBavGNdc-UjtlbwmQ.js → BankConnectionsSettingsPage-C6e0pgD4-B1leagLf.js} +22 -22
- package/dist/assets/{BillDetailPage-uMG3JJPb-DAfvXj70.js → BillDetailPage-DyIokQbf-BaKgZbi4.js} +9 -9
- package/dist/assets/{BillPayApprovalRuleDetailPage-Bmrg1Wxh-2SsyPJ6y.js → BillPayApprovalRuleDetailPage-BOhQfwEj-CAExLIKt.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-BN21qPTb-DE8Fo-0J.js → BillPayApprovalRulesPage-CSua3b4v-Cw1EavO3.js} +7 -7
- package/dist/assets/{BillPayPromoPage-DoP2oC8W-DaX8TRVv.js → BillPayPromoPage-CtenNypw-CjfButz0.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-o-V-9aI5-PJo8w9bW.js → BillPaySetUpPage-CAnvQ_-Q-DJBEmdYy.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CX-rbxzB-rBFZmJ_t.js → BillingSettingsPage-CjSAhEFl-tgXS9QLV.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-_qgURJjv-UExbn0pb.js → BillsBulkReviewDrawerPage-B62rj2kN-BUJLVUNP.js} +1 -1
- package/dist/assets/{BoxItem-CHPfWPEF-D1R-06zc.js → BoxItem-Cqmd_7h4-S5g5H_Jr.js} +1 -1
- package/dist/assets/BusinessVerificationPage-DT24fycp-CWdqg83h.js +140 -0
- package/dist/assets/{CardNumberSubText-dxYfM6ph-DEOIkYXa.js → CardNumberSubText-DszoXtgg-ySKglJLN.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BfTC3IBm-bb4FBcKr.js → CashbackDetailPage-DAwARNZD-3Wx6cNnB.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-npqfreRG-6-EfyUyz.js → ChargeCardDetailPage-BzbR-Z63-7lzvBesN.js} +40 -40
- package/dist/assets/{ChargeCardListPage-Dbx1ymB9-DRDAjXYS.js → ChargeCardListPage-DSOp7sFg-CW3N5mrs.js} +10 -10
- package/dist/assets/{ChargeCardListTable-qk9tQ6Kb-lo8c0x-v.js → ChargeCardListTable-BE4it4le-6GBRyFGt.js} +10 -10
- package/dist/assets/{ChargeCardPromoPage-CsItH2IC-BRai09H4.js → ChargeCardPromoPage-DOibcN9n-8P5nzLqn.js} +4 -4
- package/dist/assets/{ChargeCardSetupPage-D5LWY3-P-BFmdbREo.js → ChargeCardSetupPage-Dm_N5oDM-BxIAhVV2.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-vYbnt2WJ-CviaTt41.js → ChargeCardStatementsPage-Dhqs5CF4-Be58aAaq.js} +2 -2
- package/dist/assets/{ChargeCardUtils-k5Cmi_bM-uT1V7gQT.js → ChargeCardUtils-oF0M6Gmc-CWcylJdd.js} +1 -1
- package/dist/assets/{ChaseOverlay-DQz9r9Pp-DwtAFMH1.js → ChaseOverlay-DPgGIuyV-JigHbzQk.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DaaWfNin-BVXQpqWr.js +206 -0
- package/dist/assets/{CollapsableReportTable-Dp1985is-CGhJR3X0.js → CollapsableReportTable-DMr2UDgH-cuAz2CYU.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-CGewbsKm-0xbi1fnR.js → CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js} +19 -19
- package/dist/assets/{CompanyPassportCard-Dp3a8GH8-B4TBGrw7.js → CompanyPassportCard-CHF83hfN-BGYNkzga.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CS1LPj5f-pnjyNGQL.js → CompanyPassportPage-C5W3KcDY-Bzodetvj.js} +29 -29
- package/dist/assets/CompleteProfile-MP9AF8Iu-CvhmGgEz.js +36 -0
- package/dist/assets/{ConfettiBurst-DX1P5VT_-CsNzn8F8.js → ConfettiBurst-DVT9EpwF-DHA9TDKH.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BL1BXGvy-CsdFpWXr.js → CreateOrEditVendorPage-DVbYQaWM-DGXxCdMQ.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-D6-R3DiA-DUyMEAO8.js → CreditCardPaymentDrawerPage-D2qT7vsE-Bf1M1_AV.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-YcsIIUkG-DrIb0IFd.js → CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js} +6 -6
- package/dist/assets/{CurrencySelectField-CH65s5Fc-Dcp2BQTf.js → CurrencySelectField-ClhIJFVw-Cum1rEqk.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DCHbvIb1-DK5c91dn.js → CustomerOnboardingActivationPage-D-Ihd-H0-BECSi6lI.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DO8DpQlg.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cz40bZgg-CWu3HzYj.js → CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DrbkKOBx-B_LwgpIq.js → CustomerOnboardingNoStepsPage-B9ts3Tla-CfVcbZOI.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-DJbFeXms-BffeJFQv.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DyGs61vw-qL5DHYs8.js → CustomerOnboardingProductSuitePage-iSJtAhvu-CITklSrx.js} +5 -5
- package/dist/assets/{Dashboard-beLswUHx-B_MalOUp.js → Dashboard-SKeHZ5QY-pKKhGZuT.js} +38 -38
- package/dist/assets/DashboardReportPage-3X6wpJL2-lEFYnnKZ.js +349 -0
- package/dist/assets/{DepositAccTransactionItem-CfAjG3HH-D05hSl8p.js → DepositAccTransactionItem-DJNio75H-BszNXL3v.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-Cj1smNoP-BSifWrOr.js → DepositAccTransactionListPage-DTIjlF2l-BqgMCmPb.js} +3 -3
- package/dist/assets/{DocumentSecurityBanner-BRFFDueV-Cy6kVOtz.js → DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-D-qwPVDs--Pww9UWD.js +21 -0
- package/dist/assets/{DownloadOverlay-Ly2ZesqA-CgW2MbtP.js → DownloadOverlay-BLj0xso_-BlktwxlM.js} +1 -1
- package/dist/assets/{DrawerPage-BFIdjtOJ-CoQ0pur4.js → DrawerPage-CEetzMMx-BQrlKpot.js} +3 -3
- package/dist/assets/{EditPeoplePage-BPHt33f5-Bk3dHegk.js → EditPeoplePage-DDUuO0Nh-opJ_tpA8.js} +8 -8
- package/dist/assets/{EditReimbursementDetailPage-DJ_qNQbh-CHb-02Fa.js → EditReimbursementDetailPage-CT8mqYr5-RAkBtvUB.js} +24 -24
- package/dist/assets/{EntityDetailPage-DZ9vXZci-BKxX4N_B.js → EntityDetailPage-DMh6o0bo-D9tSJvlK.js} +1 -1
- package/dist/assets/{EntitySummarySection-kCA6OJs0-BxZntEIq.js → EntitySummarySection-tK_X4uAf-DnZqgJgW.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-B9K2qPQi-CLbWYQAI.js → ExpenseAutomationOverviewPage-CLUiYjKg-Cnf2er5n.js} +18 -18
- package/dist/assets/{ExpenseAutomationPage-LoGHiJzr-f6rmnsys.js → ExpenseAutomationPage-C9biTgak-CwmQJIGr.js} +82 -82
- package/dist/assets/{ExpressPayPage-B12NaLXN-CCtq8Yhl.js → ExpressPayPage-DpAixmcQ-DHNO4VFc.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-D9_aRmPj-kLENX2WT.js → FeaturePreviewPage-BohUqOFz-CnIenXNU.js} +2 -2
- package/dist/assets/{FollowStepsSection-BL8sM4vS-NJEQh7fF.js → FollowStepsSection-BAUXUzTr-DcO_IUEM.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-DONc_BXP-BqymyO9D.js → GlobalReviewListPage-BxYHNkut-De1zroLC.js} +8 -8
- package/dist/assets/{HelpButton-khTPylkl-CC4TQ-Mh.js → HelpButton-8AQIbLQM-Dxn71Y7_.js} +2 -2
- package/dist/assets/{InformationCardStack-BtIMGsaQ-DAEXYJ5W.js → InformationCardStack-76GlZ-Bq-CtLoCld8.js} +4 -4
- package/dist/assets/{InsightsCardStack-lzduh7aO-aPmBS56j.js → InsightsCardStack-CvOFi2Uu-JAhaDMUB.js} +9 -9
- package/dist/assets/{InsightsSection-q1QuO6Z4-BTPE3Xuw.js → InsightsSection-DyF8JZIR-yy37hbXV.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-CpnXcxlz-BHzrWFpH.js → IntegrationsSettingsPage-mys0-i40-D_Td3Eck.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-BXBsK560-Drhj4I3h.js → InternationalWireSwiftDetailsPage-km4qEcXH-BDq6b8VU.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-BrnMNFx7-CYsL9FjR.js → InternationalWireVerificationPage-DauhGM3c-CQuc_5ZL.js} +5 -5
- package/dist/assets/{InviteFormPage-DQTEQazA-D_TlAyX6.js → InviteFormPage-FSL8fEXT-Dygrs-_-.js} +16 -16
- package/dist/assets/{InvitePageListView-C7CaDCYN-DgDyQbel.js → InvitePageListView-zaQ1xEHJ-BmXz06Jr.js} +27 -27
- package/dist/assets/{InvitePeoplePage-Ca0ZnNhV-DhNhdRht.js → InvitePeoplePage-BNB36i8Y-COHEYzwz.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-Cm7WlMIS-CgyB8ePg.js → InvoiceUploadSection-FXrB92T6-JqJ7zAlH.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-B7w3Xky1-CKvMuV4K.js → IssueChargeCardPage-D3cUp2DE-DFSG2B0F.js} +21 -21
- package/dist/assets/{LabeledAddressValue-B5Yv4nig-CNsG-WU7.js → LabeledAddressValue-BF6r800B-CeESX1Hz.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BODlYe8J-CiIDFGvo.js → LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-BBrHodlx-DZSgDuPY.js → LabeledControlledCheckBoxField-B2ATKJBH-CXyWx4Ub.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DBovHkMc-upCPJRUw.js → LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js} +6 -6
- package/dist/assets/LabeledDocumentField-DORRl3DI-WSVu_B_9.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-Tiw-2EM1.js +59 -0
- package/dist/assets/{LabeledText-D0aPaE6r-CDASXomo.js → LabeledText-C34I_iEo-DpYgVuJS.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--BtzlqXjH.js → LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9zCwLzE.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-CcfvYWTB-DW_5XewE.js → LabeledZeniRolesDropDownField-Caj0_1zM-DksZdels.js} +13 -13
- package/dist/assets/{LinkJETransactionPage-w2poqqTD-CVvitekI.js → LinkJETransactionPage-DLmZGscZ-DAJUM85q.js} +12 -12
- package/dist/assets/{LowBalancePopup-BpFvPcb8-CbbQEMsW.js → LowBalancePopup-ll1SesgY-BWe295aL.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DUyr5VX8-DMGL4iMC.js → MagicLinkACHDetailsPage-DXzjYrdU-DXTf7zdI.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTA58UoF-Bkm4wS65.js → MagicLinkDomesticWireDetailsPage-CUwp46Wf-CEU-wofA.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DDQqyw69-BZXPgm29.js → MagicLinkInternationalWireDetailsPage-B_h0EHoZ-5KHyZ3zZ.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CKKAWryZ-BM1EXsJU.js → MagicLinkSuccessPage-BX4E-l5M-DUEIbM10.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CvW_f4xF-CqZNaUJA.js → MagicLinkTitleSection-DHe9TfVe-xOZGBQNN.js} +2 -2
- package/dist/assets/{MailingDetailsSection-Di5KwEqu-B9mhlAae.js → MailingDetailsSection-D8CZart4-D1oBjzV1.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-6yyRBLYC-Bbqtv452.js → MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js} +3 -3
- package/dist/assets/{Menu-BOh_KLZu-CFhi0SIh.js → Menu-C9u3eDJk-Dna4rH8W.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-BBQ0YN9M-DqTc9oHU.js → MyBankConnectionsSettingsPage-DVp3h4c0-Cn5_bOe_.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-DcXCxGj2-C4pJ48Rp.js → MyPendingActivationChargeCardListPage-BTk8mY7B-BbdmJXam.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-D-lTTFuP-hNTZ9JYo.js → MyProfileSettingsPage-BdcDAwKZ-DhDLZRJB.js} +9 -9
- package/dist/assets/{NavBarWithPicker-CNBOk06R-BZD_yWn9.js → NavBarWithPicker-DbSWvh0o-1EJ8HziX.js} +4 -4
- package/dist/assets/{NavigationArrow-B15b66TT-BxpDaopE.js → NavigationArrow-BP8cU19I-DuPgzuQR.js} +1 -1
- package/dist/assets/{NavigationDots-5fxvl-4e-xo_TDt3y.js → NavigationDots-nvOimTil-Do5DUslv.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BeP4W8rj-BBX9UZWo.js → NewGlobalMerchantPage-D-imjD0M-pXdB0gKF.js} +6 -6
- package/dist/assets/{NoDataChart-edFKx0zh-BcXK0tqt.js → NoDataChart-VE4W-RUu-BjJTQpdm.js} +1 -1
- package/dist/assets/{NoDataTable-41nH5trW-pzm1rHwP.js → NoDataTable-d0_62BR0-vyxhk2_b.js} +1 -1
- package/dist/assets/{NotFoundPage-CRVGi6Xn-b9DBQuQL.js → NotFoundPage-BydQGX11-BGoiJNRP.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-CiVAtoGY-B2aR003-.js → NotificationSettingsPage-BIzaZFzy-BGkCXx1m.js} +6 -6
- package/dist/assets/NotificationsListConfig-DVBOQJZq-BcXyCFD3.js +1 -0
- package/dist/assets/{NotificationsPage-DuHUL5V8-l7cXXilr.js → NotificationsPage-BdI4E6uL-DkzIMoYu.js} +29 -29
- package/dist/assets/{OpExByVendorPage-D611nXIC-DhuOhbiX.js → OpExByVendorPage-Dm90CRYi-fVB-9LNX.js} +5 -5
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-BL1aeWOM.js → OverlayContainerPage-nhe7xtoR-BxI5uHKy.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Cqab0euB-BjlrYFkz.js → PandLWithForecastPage-DhbFHH25-DsvGD_Sy.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cvn1adQb-Y7cu298L.js → PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js} +6 -6
- package/dist/assets/{PeoplePage-MCCZAx4z-BY3UpTqg.js → PeoplePage-BACu55RO-BN0ZZ-UI.js} +24 -24
- package/dist/assets/{PortfolioAllocationFormPage-Coa0Y4wN-Biro25bf.js → PortfolioAllocationFormPage-Cjz_E3BK-BKc2XOmG.js} +3 -3
- package/dist/assets/{PortfolioDetails-C9a0p99e-BupBBmbV.js → PortfolioDetails-CS2st-Mx-B7UFy1Ls.js} +8 -8
- package/dist/assets/{ProductsCarousel-B0fHKTa_-DRwb_zg1.js → ProductsCarousel-TB4uKZbg-BDTdHFcB.js} +9 -9
- package/dist/assets/{PromoBaseCards-BuCQJuXH-jJQ9UKvZ.js → PromoBaseCards-BMPp9RNQ-B5wN89Pm.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-D-vB9dbo-BMExMhX5.js → QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js} +9 -9
- package/dist/assets/{QBOSetupSection-CfficE5p-B9jrvkTN.js → QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cg_pVsAh-DD6eBHFP.js → ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BX1qPBal.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Dg1b0lJP-BNSHjAMn.js → ReimbursementApprovalRulesPage-DJlNT4Ov-DKT5YJKy.js} +20 -20
- package/dist/assets/ReimbursementDetailPage-BQiu7Gts-DqYEtmnq.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-MQpz5nNE-B2b8Se26.js → ReimbursementPromoPage-ppaPJby5-CiDmuDvG.js} +16 -16
- package/dist/assets/{ReimbursementSetUpPage-BRjWHns_-hYFlsZc3.js → ReimbursementSetUpPage-B6mZrzQB-38calwmF.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-wPNRkXt8-C2MKAuWk.js → ReimbursementsBulkReviewDrawerPage-DS55QesG-DWNEdEIB.js} +1 -1
- package/dist/assets/{ReloadCard-D5woGDxx-bUwk980b.js → ReloadCard-DDDYlCsI-BiE6_qfW.js} +5 -5
- package/dist/assets/ReportTableViewSelector-Bss4AtF1-D_wRO_1z.js +133 -0
- package/dist/assets/ReportsPage-C-g9588h-XLIvq5EO.js +120 -0
- package/dist/assets/{RevenueChart-CS0JmijO-Cw-uHSTf.js → RevenueChart-DPkxzWaE-ClY8SeJE.js} +25 -25
- package/dist/assets/{ReviewDetailsPage-C7RbpKwU-D2J8IvQH.js → ReviewDetailsPage-CyF2YP3t-B_CfpE0G.js} +14 -14
- package/dist/assets/{ReviewOverlay-BwgzcM9d-BIZud1RE.js → ReviewOverlay-AoSgYufX-BCA64ah8.js} +6 -6
- package/dist/assets/{RoleWithToolTip-DkeT6zjW-DB4n5m2x.js → RoleWithToolTip-aoWU03so-Bag-xDLs.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BzZkVg7T-rhB-3onC.js → ScheduleDetailsFixedAssetsPage-Bfj3vclV-biUqkJSS.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DiXwmlk8-DlOKlput.js → ScheduleDetailsPage-B30aUjKr-VuYOr4oZ.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CSxFNhoR-B0UeYTos.js → ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js} +22 -22
- package/dist/assets/{ScreenRoutes-4bmbtkw-.js → ScreenRoutes-DUx3gCGl.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CdUpAzlt-C1MgYcT-.js → SetUpAccountSection-nul4pyeP-CLCXvV9l.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-D4FafmO5-JKsfeRPT.js → SetUpDefaultSection-ByW3h9zl-9i3uOw78.js} +8 -8
- package/dist/assets/{SignIn-CAmRcuqx-Dg-rTZ6q.js → SignIn-R1Rsh38G-8L0Hp_zM.js} +18 -18
- package/dist/assets/{SignInScreen-DAZJjFZ6.js → SignInScreen-BE18aJB0.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DdpJprAd-B10ZaJRb.js → SpendManagementListViewPage-BqOQ7NY_-DhnClYVW.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-D2Ri2q6S-BMv0UU_O.js → SpendManagementPerTabPage--2EC1Oz4-DclxNVvC.js} +36 -36
- package/dist/assets/{SpendManagementSection-CisJALAC-cZKA8cZE.js → SpendManagementSection-COMVry1E-CYzctw4v.js} +11 -11
- package/dist/assets/{SpendMgmtSetupAccountSection-DcJhhfdt-AlupPqQd.js → SpendMgmtSetupAccountSection-fV4qxxEy-ExRAZ_sL.js} +8 -8
- package/dist/assets/{StatementItem-BOq_DDMZ-CY3Qpt1a.js → StatementItem-BksIBztP-GeqTXxSG.js} +5 -5
- package/dist/assets/{StatementsPage-C9WOCLSj-B-U-sZOJ.js → StatementsPage-DnAoeqze-BOeXA5KM.js} +1 -1
- package/dist/assets/{StatusSwitcher-CofdCR_K-BkGUOxFV.js → StatusSwitcher-b1A9RnRP-B052EzJ9.js} +4 -4
- package/dist/assets/{SubTabSwitcher-BPVG5BHS-DY3CAvRO.js → SubTabSwitcher-CgJW4ZXd-DlWjeTn_.js} +1 -1
- package/dist/assets/{SummaryCard-D-me4TrL-3xZv8xrR.js → SummaryCard-sEKhcIH5-DRp31G9t.js} +1 -1
- package/dist/assets/TaskManagementPage-z5uvcy81-CPykjrgv.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-BK7gGqaa-d24Db5VO.js → TimeRangeSwitcher-DQ-u6pKk-DC1xB5lv.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-SD5_8TCp-DrzKb54r.js → TimeframeSwitcher-B0yxn0SJ-CwNpTd2S.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-CLuOSbn2.js +31 -0
- package/dist/assets/{TopExCard-CDgcQKGp-Bqp10Sn-.js → TopExCard-CTjfWfCk-CAtjOAda.js} +5 -5
- package/dist/assets/{TopExDetailPage-CXiEe14r-DVBrKuWG.js → TopExDetailPage-CdpvcVME-J1pxGIiS.js} +6 -6
- package/dist/assets/{TransactionDetailPage-IJyZF-Z_-C-Z95BQG.js → TransactionDetailPage-DdF9FS4b-aUNjP2MS.js} +46 -46
- package/dist/assets/{TransactionList-C34ivmk5-C5mBiYt3.js → TransactionList-CHq3WONc-CDMTLkl_.js} +13 -13
- package/dist/assets/{TransactionListBig-qruiU0xy-tMMTuqzY.js → TransactionListBig-D-Gxd5n0-BYXDLjRx.js} +18 -18
- package/dist/assets/{TransactionListPage-C31U97xd-CRQaNpPy.js → TransactionListPage-DK9-YK_1-jSebPnQW.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-DZsvH-GM-8MuJaqmu.js → TransactionVendorDetailPage-Cc9pTpTw-dOPSJTMD.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DC5q2Zpv-CmGtL5lc.js → TransferDrawerPage-DoDTECI8-BFP-sFPo.js} +33 -33
- package/dist/assets/{TreasuryOverviewPage-DSBqawrH-DycEi82C.js → TreasuryOverviewPage-wlfReqPJ-Dd6DjTk6.js} +14 -14
- package/dist/assets/{TreasuryPromoPage-D6WSBxgD-BlvVAiRS.js → TreasuryPromoPage-C9WNRb2_-Bv2i8EfH.js} +8 -8
- package/dist/assets/{TreasurySetupPage-BgSq4D0a-ad83A_r3.js → TreasurySetupPage-CjV0cOq9-BmP_R4PT.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Dj9RAujO-DWwk9wCn.js → TreasuryStatementsPage-DqOWNGB_-hAvO09t_.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-Dw6tL_j9-CkIAlhee.js → TreasuryTaxLetterPage-BWGHcQ-i-DCm4xllr.js} +4 -4
- package/dist/assets/{TreasuryTransferOrReviewPage-cBHznYnK-BXVAiiS6.js → TreasuryTransferOrReviewPage-CgL8K7N9-BrTZBU_c.js} +19 -19
- package/dist/assets/TrendChart-76tuu9Dr-DKqkCwBC.js +16 -0
- package/dist/assets/{TrendWithTransactions-BOGQK2Zt-DsTHQyvH.js → TrendWithTransactions-B_fJTS4m-B4jhKCz-.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Ci4VHOLB-BdOVs5yc.js → UncategorizedAccountsMappingPage-DpY1kK_K-CX5FrYpM.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-DSMTzyKA-CoAUeDRa.js → UnitIntegrationPage-BTJI7fx3-B4TaSpvh.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CBpLz-gk-Cn-PxzO4.js → UploadAdditionalDocumentOverlay-BH3bRKoG-Cxr-sGAj.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Be7OBE4e-Dw3MgVFY.js → Vendor2FAPopup-4-XtZDNS-BuVX3Yle.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-LvWgxsF7-CaN7hXyJ.js → VendorACHDetailsPage-B2knDl4H-czLYWWIH.js} +1 -1
- package/dist/assets/{VendorDetailPage-C-qpa1GC-OT8_rieb.js → VendorDetailPage-w-tghGpI-CfkAuWGF.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-Ckoq2I8V-sly11L4e.js → VendorDomesticWireDetailsPage-BXCCdTjh-Di1QWV1S.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-WZMwLILQ-Dvglnl8g.js → VendorFiling1099EditablePage-DGQO9Qqj-CEOM5YEV.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-DNhp59d9-6Npfw6ZQ.js → VendorFirstReviewPage-Lblb6X1V-39fudz_L.js} +40 -40
- package/dist/assets/{VendorInternationalWireDetailsPage-DuP916gU-CFYN39yL.js → VendorInternationalWireDetailsPage-Bi5RBKxI-CtyyMelR.js} +9 -9
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-CTfDKjHB.js → VendorInternationalWireSwiftDetailsPage-CBZmsXnL-B-d0u1XS.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C4q6FPlB-Cdm8bQji.js → VendorsAccountsSection-JI0e3gKo-BI5thaS_.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-C162biV8-CyRcKAFE.js → WarningsDrawerPage-BQzUQ5-l-D1cPDLUy.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-C3NnXuFp-hGf5hhXT.js → ZeniAccountDetailPage-DPJ4mWoO-D2fzjkqw.js} +29 -29
- package/dist/assets/{ZeniAccountListViewPage-Cn7rYnlu-BZ6tC-rC.js → ZeniAccountListViewPage-iHMJ7FU7-UZUihbgS.js} +23 -23
- package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D07e9d9s.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BGyyQP4l-8aRktQCO.js → ZeniAccountPromoPage-OxQ03DtJ-X6atYnaZ.js} +8 -8
- package/dist/assets/{ZeniAccountSetupPage-CIh0isMw-BpYj-zTN.js → ZeniAccountSetupPage-BahzDcmm-B-umC_Qa.js} +1 -1
- package/dist/assets/{ZeniCopyright-B83zWEf0-CbbA3mi5.js → ZeniCopyright-Dpqdxu7f-CHOK6b2K.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CPg3o4xG-Cpl4hegF.js → ZeniTransferAmountSlider-DwC6pXnb-BgJArm45.js} +1 -1
- package/dist/assets/analytics-BSSiLa6f.js +7 -0
- package/dist/assets/{analyticsHelper-Bwye1Yzk.js → analyticsHelper-CPNSDy4Z.js} +1 -1
- package/dist/assets/{analyticsHelper-DlYWxxhD-6PX8-p-s.js → analyticsHelper-CZ8c8du5-Ber0nUBK.js} +1 -1
- package/dist/assets/{chartTypes-DueLK3Wl-BWSykg1r.js → chartTypes-CWLOazD0-BCrBxX2L.js} +1 -1
- package/dist/assets/{commonDimensions-D4uH020E-CzLHHjVa.js → commonDimensions-Cg7EWgSP-ztBpKI_h.js} +1 -1
- package/dist/assets/{detailCommon-D5qKBZdS-BpsfjSiy.js → detailCommon-Cp4eknjq-ClKRuZos.js} +7 -7
- package/dist/assets/{downloadPdf-s4pLtuS_-DfJmhSyn.js → downloadPdf-f3F0OqWf-DUwLrQQm.js} +1 -1
- package/dist/assets/{index-Dc18sb8X.js → index-Dq4DW5h0.js} +3324 -3326
- package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-BUGn2yQ6.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-M0QN8LkC-DSfxQmfa.js → mapLoadingInProgressToTreeNode-DCLD3rcY-_6B85me3.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrtVdHui-qBoPPypE.js → mapSectionWithAcOnlyToTreeNode-C-VOXE5I-ChyvQWp0.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-yPPIJHBw-BXxWoQQn.js → mapSpacerToTreeNode-DlDwFA_F-CYv3KN_2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-px916zpo-CuLGcUKr.js → mapTimeframeBalancesToTreeNode-EEyJwCnX-HEZ0R9-O.js} +1 -1
- package/dist/assets/mui-BgvZYSo0.js +22 -0
- package/dist/assets/{play-icon-Bih37F_s-C6sD6kbP.js → play-icon-CFa9Uibr-CaxUs2iQ.js} +3 -3
- package/dist/assets/{redux-ByjIRbhZ.js → redux-DmDqXYej.js} +1 -1
- package/dist/assets/{routing-Cpaypegg.js → routing-BNz5gZgX.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CAhfOfUa-BLsrlpgK.js → toCOABalancesWithID-DT8-C5u1-CE-3jMAY.js} +1 -1
- package/dist/assets/{toChartData-BicnbT0F-CzNzHCD-.js → toChartData-63e3B91H-DoSBXci0.js} +1 -1
- package/dist/assets/{treasuryColorHelper-A_YlwvaQ-CVHETTwa.js → treasuryColorHelper-BGGfolJy-B6Wl_Wly.js} +1 -1
- package/dist/assets/{uploadAttachment-DVoWdoWD-D5s5ylN5.js → uploadAttachment-YcPIDoZ--DIC1ZEM7.js} +19 -19
- package/dist/assets/{uploadReceipts-Buvz7DfG-DS0aCuAZ.js → uploadReceipts-BH9fi3Vt-CnyK0TMw.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountRow-D9vDRsjv-XcUg9HnZ.js +0 -298
- package/dist/assets/BusinessVerificationPage-YKJ-CZfb-CA1EyVwE.js +0 -140
- package/dist/assets/CheckDepositDrawerPage-B1Qp-xbY-CG1lluPq.js +0 -206
- package/dist/assets/CompleteProfile-CJOsHnBa-CTqixosH.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-DPk_xOir.js +0 -1
- package/dist/assets/CustomerOnboardingPage-CIbBaMcO-D6XARpKC.js +0 -107
- package/dist/assets/DashboardReportPage-BM6TqjrJ-CXS5ZOn0.js +0 -349
- package/dist/assets/DomesticWireDetailsPage-BZ8jSo8r-CvJ1Feba.js +0 -21
- package/dist/assets/LabeledDocumentField-CIlbLPtO-CyOwq3qY.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-Dpt7UG-o-BXwTt2kH.js +0 -59
- package/dist/assets/NotificationsListConfig-BjItJJe9-DzH6eIvg.js +0 -1
- package/dist/assets/ReimbursementDetailPage-CE_jx7cM-NMeD4tV1.js +0 -314
- package/dist/assets/ReportTableViewSelector-Bc5xUtnG-B_lLxJq7.js +0 -150
- package/dist/assets/ReportsPage-J8DrZz78-BDQBNTzo.js +0 -120
- package/dist/assets/TaskManagementPage-BSmG6YR2-DNj3Vzrv.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-BwvVsB_p-D2v3J1KI.js +0 -31
- package/dist/assets/TrendChart-dARoUu-T-DLWmmph8.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-DHYLxQKr-i6WaheRu.js +0 -14
- package/dist/assets/analytics-DThoELaW.js +0 -7
- package/dist/assets/mui-C5LQ0bMa.js +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,X as me,d3 as pe,Y as te,
|
|
1
|
+
import{j as a,X as me,d3 as pe,Y as te,gQ as Je,M as V,_ as Te,K as He,d as et,a7 as Pe,o as t,C as d,a6 as je,k as tt,D as at,u as ze,bu as nt,cO as Ee,Q as W,g as Z,fT as Ce,q as ot,l as E,Z as Me,c0 as it,a5 as be,a as rt,e_ as lt,c3 as ct,F as st,cz as dt,f7 as mt,c8 as pt,fG as ut,p as r,bq as ht,bo as Be,cW as gt,ah as yt,s as Oe,fa as ft,f2 as Ct,aa as bt,fb as xt,cq as St,fc as wt,fl as Dt}from"./index-Dq4DW5h0.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-B2ATKJBH-CXyWx4Ub.js";import{v as kt}from"./ChargeCardUtils-oF0M6Gmc-CWcylJdd.js";import{Z as xe}from"./CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const ae={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new W("h6Regular","h5Regular"),integerAmountInput:new W("h5Regular","h2Regular"),decimalAmountInput:new W("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:vt}},common:{edit:At,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=V.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:$})=>{const m=me(),T=ze(),P=pe().analytics,[M,I]=p.useState(!1);p.useEffect(()=>{e.error!=null?I(!0):I(!1)},[e.error]);const v=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(qt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(Xt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Yt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Wt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{I(!1)},style:{width:t.sp3,height:t.sp3,color:Z.heroLight}})})]})}):null,a.jsx(Zt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:v},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Vt,{}),a.jsx(Ce,{label:{label:Se.amount,width:v},showAdditionalInfoLabel:!0,additionalInfoLabel:`${$?ee.creditLimitReset:ee.creditLimitUpdate} ${E.zeniDate(E.getNextNthWorkingDay(E.dateNow().toDate(),[0,6],3).toDateString()).format(vt)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:At,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Gt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Qt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
|
|
2
2
|
color: ${e=>e.theme.colors.primary};
|
|
3
3
|
padding-top: ${t.sp3};
|
|
4
4
|
`,Pt=o.div`
|
|
@@ -47,11 +47,11 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
47
47
|
`,Nt=o.div`
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: flex-start;
|
|
50
|
-
`,Ut=o.div``,
|
|
50
|
+
`,Ut=o.div``,Yt=o(gt)`
|
|
51
51
|
width: ${t.sp4};
|
|
52
52
|
height: ${t.sp4};
|
|
53
53
|
color: ${Z.important};
|
|
54
|
-
`,
|
|
54
|
+
`,Wt=o(je)`
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
color: ${e=>e.theme.colors.hero};
|
|
57
57
|
width: ${t.sp4};
|
|
@@ -60,7 +60,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
60
60
|
&:hover {
|
|
61
61
|
color: ${e=>e.theme.colors.primary};
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`,Vt=o.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex: 1;
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -71,7 +71,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
padding-top: ${t.sp3};
|
|
73
73
|
padding-bottom: ${e=>`${ae.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
74
|
-
`,
|
|
74
|
+
`,qt=o(ht)`
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
color: ${e=>e.theme.colors.hero};
|
|
77
77
|
width: ${t.sp4};
|
|
@@ -80,7 +80,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
80
80
|
&:hover {
|
|
81
81
|
color: ${e=>e.theme.colors.primary};
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,Kt=o.div`
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: row;
|
|
86
86
|
justify-content: flex-start;
|
|
@@ -90,7 +90,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
90
90
|
padding: ${e=>`${ae.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
91
91
|
z-index: 2;
|
|
92
92
|
background-color: ${e=>e.theme.colors.grey4};
|
|
93
|
-
`,
|
|
93
|
+
`,Xt=o(Me)`
|
|
94
94
|
${e=>`${de.pageTitle.style(e.windowSize)}`};
|
|
95
95
|
color: ${e=>e.theme.colors.primary};
|
|
96
96
|
padding: ${t.sp3} ${t.sp0} ${t.sp3} ${t.sp0};
|
|
@@ -126,7 +126,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
126
126
|
margin-right: 12px;
|
|
127
127
|
margin-left: ${t.sp1};
|
|
128
128
|
color: ${e=>e.theme.colors.hero};
|
|
129
|
-
`,{common:se,spendManagement:{zeniAccounts:{zeniAccountList:aa},billPay:{insufficientFunds:na},chargeCard:{payEarly:U}},commonSetUp:{setUp:{accountsPlg:ie}}}=
|
|
129
|
+
`,{common:se,spendManagement:{zeniAccounts:{zeniAccountList:aa},billPay:{insufficientFunds:na},chargeCard:{payEarly:U}},commonSetUp:{setUp:{accountsPlg:ie}}}=V.getLocalizedStrings(),Ne="amount",oa="withdrawFrom",B="paymentDetails",Ue="creditCardPaymentPage",re=(e,i)=>`${e}.${i}`,Ye=e=>`${e}_form`,S={largeLabelWidth:new d(120,120,160),labelMarginLeftPicker:new d(r[3],r[4]),labelMarginRightPicker:new d(r[3],r[4]),labelMarginTopPicker:new d(r[2],r[2]),labeledFieldPaddingLeft:new d(r[2],r[0]),labeledFieldPaddingRight:new d(r[2],r[2]),labeledFieldPaddingTop:new d(r[2],r[2]),labeledFieldPaddingBottom:new d(r[2],r[2]),infoLabelPaddingRight:new d(r[0],r[3]),infoLabelMarginTop:new d(r[1],r[0]),checkBoxTop:new d(r[1],r[0])},$e={integerAmountInput:new W("h5Regular","h2Regular"),decimalAmountInput:new W("largeSemiBold","h5Medium")};function ia({autoPayThreshold:e,plaidConnectionDetails:i,maxInsuredAmount:h,paymentDetails:n,lowBalanceAdditionalInfo:g,paymentAccount:c,isAccountsEnabled:f,onSaveChangesToLocalStore:L,onUpdatePaymentAccountStatus:y,onEstablishConnectionClick:b,onEstablishConnectionSuccess:x,onFetchLinkTokenClick:C,setShowReviewLoading:$,onSignUpAccountClick:m,onMoveMoneyClick:T,isCashbackInfoFetchStateCompleted:P,isCreditCardInfoFetchStateCompleted:M,isDebitCardInfoFetchStateCompleted:I,controllerEmails:v,productInformation:q,cashbackInformation:K,paymentSourceInformation:X,creditAccountInformation:G,debitAccountInformation:Q}){const s=me(),le=ze(),w=S.largeLabelWidth.value(s),J=pe().analytics,H=p.useRef(null),[j,z]=p.useState(!1),[F,O]=p.useState(void 0),A=i.link_account,oe=i.update_account,k=F==="update_account"?oe:A,[_,ue]=p.useState(k.linkToken??null),he=be(A.updateStatus.fetchState),N=rt({mode:"all",reValidateMode:"onBlur",defaultValues:p.useMemo(()=>ke(n),[n]),values:p.useMemo(()=>ke(n),[n])}),ge=c?.isLoginRequired??!1,D=c?.providerVerificationStatus?.code,ye=be(oe.updateStatus.fetchState),We=p.useCallback((l,u)=>{const R=u.accounts.find(Qe=>Qe.id===c?.providerAccountId)??u.accounts[0];c?.paymentAccountId!=null&&F==="update_account"&&R?.verification_status!=null&&!ge?y(R?.verification_status,c.paymentAccountId,"update_account"):b?.(l,F),O(void 0),z(!1)},[c?.paymentAccountId,c?.providerAccountId,F,ge,y,b]),Ve=p.useCallback((l,u)=>{l!=null&&(l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&c?.paymentAccountId!=null&&y("verification_failed",c.paymentAccountId,"update_account"),console.log("Plaid Connection Error",l,u)),O(void 0),z(!1)},[c?.paymentAccountId,y]),{open:ce,ready:fe}=lt({token:_,onSuccess:We,onExit:Ve});p.useEffect(()=>{(he==="In-Progress"&&A.updateStatus.fetchState==="Completed"||ye==="In-Progress"&&oe.updateStatus.fetchState==="Completed")&&D!=="verified"&&D!=="manually_verified"&&D!=="automatically_verified"&&D!=="database_matched"&&(C?.("link_account"),x())},[A.updateStatus.fetchState,x,C,he,ye,oe.updateStatus.fetchState,D]),p.useEffect(()=>{(E.isVerifiedStatusCode(D??"")||D==="verification_failed")&&!j&&F!=null&&k.linkToken===_&&k.fetchStatus.fetchState==="Completed"&&fe&&z(!0)},[fe,_,k.fetchStatus.fetchState,k.linkToken,D,F,j]),p.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==_&&ue(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,_]),p.useEffect(()=>{j&&ce()},[j,ce]),p.useEffect(()=>{(D==null||D==="verification_failed"||D==="verification_expired"||E.isVerifiedStatusCode(D))&&(E.zeniDate(new Date().toISOString()).isAfter(A.expiration)||A.linkToken==null)&&C?.("link_account")},[]);const{isValid:Ze}=N.formState,qe=async(l,u)=>{if(l!=null){if(l.includes("amount"))return;const R=ve(u,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(R)}},Ke=l=>{if(g!=null)return g;const u=n.transferFromAccounts.find(R=>R.id===l);return u?.accountBalance?.available!=null&&E.checkIfLowBalance(n.chargeCardRepaymentDetailLocalData.amount,u?.accountBalance?.available)?na.addMoney:""};p.useEffect(()=>{const l=N.watch((u,{name:R})=>{R!=null&&u!=null&&ct(()=>qe(R,u))});return()=>{l.unsubscribe()}});const Xe=N.watch("paymentDetails.amount"),Ge=N.handleSubmit(()=>{if(Ze){const l=N.getValues(),u=ve(l,n.transferFromAccounts,n.chargeCardRepaymentDetailLocalData.idempotencyKey);L(u),$(!0),P&&M&&I&&J.trackCardsPayEarlyFormClick(v,q,K,"Review",n.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:n.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:n.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:n.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:n.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},X,G,Q)}});return a.jsxs(a.Fragment,{children:[a.jsx(da,{children:a.jsx(Ee,{amount:{amount:Xe??0,currencyCode:n.chargeCardRepaymentDetailLocalData.amount.currencyCode,currencySymbol:n.chargeCardRepaymentDetailLocalData.amount.currencySymbol},integerStyles:$e.integerAmountInput.styleObject(s),decimalStyles:$e.decimalAmountInput.styleObject(s)})}),a.jsx(st,{...N,children:a.jsx(sa,{id:Ye(Ue),onSubmit:Ge,children:a.jsxs(ma,{children:[a.jsx(dt,{selectRef:H,label:{label:se.labels.transferFrom,width:w,style:{marginLeft:S.labelMarginLeftPicker.valuePx(s),marginTop:S.labelMarginTopPicker.valuePx(s),marginRight:S.labelMarginRightPicker.valuePx(s),width:S.largeLabelWidth.value(s)}},style:{paddingTop:S.labeledFieldPaddingTop.valuePx(s),paddingBottom:S.labeledFieldPaddingBottom.valuePx(s),paddingLeft:S.labeledFieldPaddingLeft.valuePx(s),paddingRight:S.labeledFieldPaddingRight.valuePx(s),border:"none",width:"auto",display:"flex"},infoLabelStyle:{textAlign:"right",paddingRight:S.infoLabelPaddingRight.valuePx(s),marginTop:S.infoLabelMarginTop.valuePx(s),color:Z.brandColorGoldDark},bottomComponent:a.jsx($t,{label:{label:U.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{textAlign:s==="small"?"end":"center",color:le.colors.primary}},style:{width:"unset",marginRight:t.sp3,alignItems:s==="small"?"flex-start":"center"},checkBoxField:{name:re(B,"enableAutoPay"),checkBoxValue:re(B,"enableAutoPay"),defaultChecked:n.chargeCardRepaymentDetailLocalData.isAutoRepayment,style:{top:S.checkBoxTop.valuePx(s)}}}),singleSelectPickerField:{name:re(B,oa),placeholder:pt(se.labels.transferFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(l,u)=>_e(n.transferFromAccounts,l,u),valueToSubLabels:(l,u)=>mt(n.transferFromAccounts,l,u,!0),defaultValue:{selectedOption:n.chargeCardRepaymentDetailLocalData.transferFrom?.id,allOptions:n.transferFromAccounts.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption},showCreateOption:!0,onClickCreateOption:()=>{O("link_account"),A.linkToken==null||E.zeniDate(new Date().toISOString()).isAfter(A.expiration)?C?.("link_account"):_!==A.linkToken?ue(A.linkToken):j?ce():z(!0)}},valueToAdditionalLabel:Ke}),n?.chargeCardRepaymentDetailLocalData.transferFrom==null||n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="paymentAccount"?a.jsx(xe,{maxInsuredAmount:h,heading:a.jsxs(ra,{windowSize:s,children:[U.earn,a.jsx(la,{children:U.percentageCashback.replace("__percentage__",kt)}),U.whenYouPayViaZeniChecking]}),buttonText:f?ie.switchButtonText:ie.signUpButtonText,isAccountsEnabled:f,pageName:U.creditCardPayment,onSignUpClick:m,onSwitchClick:()=>{H.current!=null&&H.current.focus()}}):n?.chargeCardRepaymentDetailLocalData.transferFrom?.accType==="depositAccount"&&n?.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available!=null&&n.chargeCardRepaymentDetailLocalData.transferFrom.accountBalance.available.amount<n.chargeCardRepaymentDetailLocalData.amount.amount?a.jsx(xe,{maxInsuredAmount:h,heading:ie.moveMoneyHeading,buttonText:ie.moveMoneyButtonText,isAccountsEnabled:f,pageName:U.creditCardPayment,onMoveMoneyClick:T}):a.jsx(ca,{}),a.jsx(ut,{showAdditionalInfoLabel:!1,label:{label:se.labels.amount,width:w},formattedTextField:{type:"number",name:re(B,Ne),defaultValue:n.chargeCardRepaymentDetailLocalData.amount.amount===0?void 0:n.chargeCardRepaymentDetailLocalData.amount.amount,placeholder:aa.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto",paddingLeft:S.labeledFieldPaddingLeft.valuePx(s)}})]})})})]})}const ra=o(bt)`
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
width: ${e=>e.windowSize==="small"?"80%":"100%"};
|
|
132
132
|
`,la=o(xt)`
|
|
@@ -154,7 +154,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
154
154
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
155
155
|
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
156
156
|
border-radius: ${t.sp2};
|
|
157
|
-
`,ve=(e,i,h)=>({amount:{amount:e[B].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:i.find(n=>n.id===e[B].withdrawFrom.selectedOption),isAutoRepayment:e[B].enableAutoPay,idempotencyKey:h}),ne={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),successContentMargin:new d(r[3],r[12]),buttonTrayGap:new d(r[4],r[5])},pa={sectionTitle:new
|
|
157
|
+
`,ve=(e,i,h)=>({amount:{amount:e[B].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:i.find(n=>n.id===e[B].withdrawFrom.selectedOption),isAutoRepayment:e[B].enableAutoPay,idempotencyKey:h}),ne={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),successContentMargin:new d(r[3],r[12]),buttonTrayGap:new d(r[4],r[5])},pa={sectionTitle:new W("h6Regular","h5Regular")},Ae=V.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,Y=V.getLocalizedStrings().spendManagement.chargeCard.payEarly,{dateFormat:Le}=V.getLocalizedStrings(),ua=({autoPayThreshold:e,paymentDetails:i,maxInsuredAmount:h,isAccountsEnabled:n,productInformation:g,controllerEmails:c,creditAccountInformation:f,creditAccountSpentAmount:L,debitAccountInformation:y,cashbackInformation:b,paymentSourceInformation:x,isCashbackInfoFetchStateCompleted:C,isCreditCardInfoFetchStateCompleted:$,isDebitCardInfoFetchStateCompleted:m,paymentInitiatedDate:T,onSaveChangesToLocalStore:P,onTransferClick:M,goToCards:I,onDismissClick:v,onEstablishConnectionClick:q,onFetchLinkTokenClick:K,plaidConnectionDetails:X,onSignUpAccountClick:G,onMoveMoneyClick:Q,onUpdatePaymentAccountStatus:s,onEstablishConnectionSuccess:le})=>{const w=me(),J=pe().analytics,[H,j]=p.useState(!1),[z,F]=p.useState(!1);p.useEffect(()=>{z&&setTimeout(()=>{F(!1),j(!0)},1e3)},[z]);const O=i.chargeCardRepaymentDetailLocalData.amount.amount===L;return a.jsx(ha,{windowSize:w,children:i.updateStatus==="Completed"?a.jsxs(Ie,{windowSize:w,isTransferCompleted:!0,children:[a.jsx(Fe,{windowSize:w,children:a.jsx(Re,{"data-testid":te("cross-credit-card-payment-success-close-button"),onClick:()=>{C&&$&&m&&J.trackCardsPayEarlyFormClick(c,g,b,"Cross Icon",i.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:i.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:i.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:i.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:i.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,f,y),v?.()}})}),a.jsxs(Ca,{windowSize:w,children:[a.jsx(Je,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),a.jsx(ga,{children:a.jsxs(a.Fragment,{children:[Y.youvePaid,a.jsx(ya,{children:Te("0,0.[00]",i.chargeCardRepaymentDetailLocalData.amount)}),Ae.transferDrawer.internal.transferSuccessMsgMidfix,`"${i.chargeCardRepaymentDetailLocalData.transferFrom?.label}".`,O?Y.theCreditLimitWillResetWithin23BusinessDays:Y.theCreditLimitWillUpdateWithin23BusinessDays]})}),a.jsx(fa,{windowSize:w,children:a.jsx(He,{variant:"primary",label:Y.goToCards,"data-testid":te("back-to-cards-button"),onClick:I})})]})]}):H?a.jsx(Ft,{paymentDetails:i,setShowReviewContent:j,onTransferClick:M,isCashbackInfoFetchStateCompleted:C,isCreditCardInfoFetchStateCompleted:$,isDebitCardInfoFetchStateCompleted:m,controllerEmails:c,productInformation:g,cashbackInformation:b,paymentSourceInformation:x,creditAccountInformation:f,debitAccountInformation:y,isCompleteOutstandingBalanceBeingPaid:O}):a.jsxs(a.Fragment,{children:[a.jsxs(Ie,{windowSize:w,isTransferCompleted:!1,children:[a.jsx(Fe,{windowSize:w,children:a.jsx(Re,{"data-testid":te("cross-amount-details-close-button"),onClick:()=>{C&&$&&m&&J.trackCardsPayEarlyFormClick(c,g,b,"Cross Icon",i.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:i.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:i.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:i.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:i.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:T?.add(3,"day").format(Le.visual.MMMDCommaYYYYformat),paymentInitiatedDate:T?.format(Le.visual.MMMDCommaYYYYformat)},x,f,y),v?.()}})}),w==="small"?a.jsx(ba,{windowSize:w,children:Y.payCreditCardBalance}):a.jsx(xa,{children:Y.payCreditCardBalance}),i.fetchState==="Completed"?a.jsx(ia,{autoPayThreshold:e,maxInsuredAmount:h,onSaveChangesToLocalStore:P,plaidConnectionDetails:X,paymentDetails:i,setShowReviewLoading:F,onEstablishConnectionSuccess:le,isAccountsEnabled:n,onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:s,onEstablishConnectionClick:q,onSignUpAccountClick:G,onMoveMoneyClick:Q,isCashbackInfoFetchStateCompleted:C,isCreditCardInfoFetchStateCompleted:$,isDebitCardInfoFetchStateCompleted:m,controllerEmails:c,productInformation:g,cashbackInformation:b,paymentSourceInformation:x,creditAccountInformation:f,debitAccountInformation:y}):a.jsx(et,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:Ye(Ue),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:V.getLocalizedStrings().common.review,isLoading:z},cancelBtn:{label:Ae.transferDrawer.cancelBtn,onClick:()=>{C&&$&&m&&J.trackCardsPayEarlyFormClick(c,g,b,"Cancel",i.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:i.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:i.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:i.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:i.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},x,f,y),v?.()}}})]})})},ha=o.div`
|
|
158
158
|
display: flex;
|
|
159
159
|
flex-direction: column;
|
|
160
160
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -214,7 +214,7 @@ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a
|
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
margin-top: ${t.sp3};
|
|
216
216
|
margin-bottom: ${t.sp2};
|
|
217
|
-
`,ja=({autoPayThreshold:e,paymentDetails:i,isZeniAccountSetupEnabled:h,maxInsuredAmount:n,onUpdatePaymentAccountStatus:g,onSaveChangesToLocalStore:c,creditAccountSpentAmount:f,onTransferClick:L,controllerEmails:y,productInformation:b,creditAccountInformation:x,debitAccountInformation:C,cashbackInformation:$,paymentSourceInformation:m,isCashbackInfoFetchStateCompleted:T,isCreditCardInfoFetchStateCompleted:P,isDebitCardInfoFetchStateCompleted:M,goToCards:I,onDismissClick:v,onEstablishConnectionClick:
|
|
217
|
+
`,ja=({autoPayThreshold:e,paymentDetails:i,isZeniAccountSetupEnabled:h,maxInsuredAmount:n,onUpdatePaymentAccountStatus:g,onSaveChangesToLocalStore:c,creditAccountSpentAmount:f,onTransferClick:L,controllerEmails:y,productInformation:b,creditAccountInformation:x,debitAccountInformation:C,cashbackInformation:$,paymentSourceInformation:m,isCashbackInfoFetchStateCompleted:T,isCreditCardInfoFetchStateCompleted:P,isDebitCardInfoFetchStateCompleted:M,goToCards:I,onDismissClick:v,onEstablishConnectionClick:q,onEstablishConnectionSuccess:K,onFetchLinkTokenClick:X,plaidConnectionDetails:G,onSignUpAccountClick:Q,onMoveMoneyClick:s})=>a.jsx(Sa,{children:a.jsx(ua,{autoPayThreshold:e,paymentDetails:i,maxInsuredAmount:n,productInformation:b,controllerEmails:y,creditAccountInformation:x,debitAccountInformation:C,cashbackInformation:$,paymentSourceInformation:m,isCashbackInfoFetchStateCompleted:T,isCreditCardInfoFetchStateCompleted:P,isDebitCardInfoFetchStateCompleted:M,creditAccountSpentAmount:f,onSaveChangesToLocalStore:c,onTransferClick:L,goToCards:I,onDismissClick:v,plaidConnectionDetails:G,isAccountsEnabled:h,onEstablishConnectionClick:q,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:g,onEstablishConnectionSuccess:K,onSignUpAccountClick:Q,onMoveMoneyClick:s})}),Sa=o.div`
|
|
218
218
|
display: flex;
|
|
219
219
|
flex-direction: column;
|
|
220
220
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,
|
|
1
|
+
import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,bD as H,o as l,g as n,C as a,aQ as U,ah as D,ee as G,v as J,p as o}from"./index-Dq4DW5h0.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const r={iconContainerMaxWidthHeight:new a(o[6],o[7]),iconContainerMarginRight:new a(o[3],o[3]),iconWidthHeight:new a(20,o[4]),iconPadding:new a(10,12),containerPaddingTopBottom:new a(o[4],o[4]),containerPaddingLeftRight:new a(o[3],o[4]),buttonLeftMargin:new a(o[8],o[0]),buttonTopMargin:new a(o[4],o[2]),buttonRightMargin:new a(o[0],20)};function V({heading:e,buttonText:c,analytics:g,maxInsuredAmount:u,pageName:h,style:x,onSignUpClick:S,onSwitchClick:y,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,z=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),S?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),y?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},k=R(T(u),u,v.currency.currencySymbol).toUpperCase();return i.jsxs(F,{windowSize:d,width:x?.width,style:x,"data-testid":b("credit-card-payment-plg-section"),children:[i.jsxs(_,{children:[i.jsx(A,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(E,{windowSize:d,children:i.jsx(O,{})})}),i.jsx(N,{children:i.jsxs(Y,{children:[i.jsx(B,{windowSize:d,children:e}),i.jsxs(q,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.two.replace("__amount__",k)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(K,{windowSize:d,children:i.jsx(W,{label:c,"data-testid":b("accounts-plg-button",c),onClick:C=>{C.stopPropagation(),z()},buttonColors:{borderColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},backgroundColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},textColor:{default:n.neutralGrey5Light,hover:n.neutralGrey5Light,disabled:n.neutralGrey5Light}},size:"small",style:{padding:`6px ${l.sp3}`,borderRadius:"6px"},textStyle:{fontWeight:H.regular}})})]})}const _=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
`,
|
|
4
|
+
`,B=t(D)`
|
|
5
5
|
color: ${e=>e.theme.colors.primary};
|
|
6
6
|
width: 100%;
|
|
7
7
|
`,K=t.div`
|
|
@@ -11,14 +11,14 @@ import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,bC as H,o as l,
|
|
|
11
11
|
margin-left: ${e=>r.buttonLeftMargin.valuePx(e.windowSize)};
|
|
12
12
|
margin-top: ${e=>r.buttonTopMargin.valuePx(e.windowSize)};
|
|
13
13
|
margin-right: ${e=>r.buttonRightMargin.valuePx(e.windowSize)};
|
|
14
|
-
`,
|
|
14
|
+
`,E=t.div`
|
|
15
15
|
width: ${e=>r.iconWidthHeight.valuePx(e.windowSize)};
|
|
16
16
|
height: ${e=>r.iconWidthHeight.valuePx(e.windowSize)};
|
|
17
17
|
`,O=t(U)`
|
|
18
18
|
color: ${e=>e.theme.colors.primary};
|
|
19
19
|
width: inherit;
|
|
20
20
|
height: inherit;
|
|
21
|
-
`,
|
|
21
|
+
`,A=t.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
margin-bottom: auto;
|
|
24
24
|
flex-direction: row;
|
|
@@ -67,13 +67,13 @@ import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,bC as H,o as l,
|
|
|
67
67
|
`,p=t.div`
|
|
68
68
|
display: flex;
|
|
69
69
|
align-items: center;
|
|
70
|
-
`,w=t(
|
|
70
|
+
`,w=t(G)`
|
|
71
71
|
width: ${l.sp3};
|
|
72
72
|
height: ${l.sp3};
|
|
73
73
|
vertical-align: middle;
|
|
74
74
|
margin-right: ${l.sp1};
|
|
75
75
|
color: ${n.success};
|
|
76
|
-
`,m=t(
|
|
76
|
+
`,m=t(J)`
|
|
77
77
|
color: ${e=>e.theme.colors.primary};
|
|
78
78
|
white-space: nowrap;
|
|
79
79
|
`;export{V as Z};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{cg as M,u as N,co as P,M as H,j as l,cp as L,Y as x,
|
|
1
|
+
import{cg as M,u as N,co as P,M as H,j as l,cp as L,Y as x,b2 as z,o,dh as _,bS as Y,b3 as g,s as B,q as S,eW as X,eX as q,eY as A,v as K,b0 as T,a6 as U,g as m}from"./index-Dq4DW5h0.js";import{b as w,n}from"./vendor-CnQcJ2Lu.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(),[j,C]=w.useState(!1),k=P(f,e??""),D=H.getLocalizedStrings().common.currency,I=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??D.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 v=R;return w.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:I(v.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:_(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:W,Option:Z,Input:Q,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:G},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},W=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})})},Z=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]})})})},G=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(Y,{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]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),Q=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{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(O,{children:r.label})})},O=n(B)`
|
|
2
2
|
color: ${e=>e.theme.colors.primary};
|
|
3
|
-
`,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&X(e)===!1)return l.jsx(l.Fragment,{});{const r=
|
|
3
|
+
`,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&X(e)===!1)return l.jsx(l.Fragment,{});{const r=q[`${A(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};
|
|
@@ -126,13 +126,13 @@ import{cg as M,u as N,co as P,M as H,j as l,cp as L,Y as x,b1 as z,o,dh as _,bT
|
|
|
126
126
|
}
|
|
127
127
|
`,de=n.div`
|
|
128
128
|
display: flex;
|
|
129
|
-
`,ue=n(
|
|
129
|
+
`,ue=n(T)`
|
|
130
130
|
width: 12px;
|
|
131
131
|
height: 12px;
|
|
132
132
|
margin-right: 2px;
|
|
133
133
|
margin-left: ${o.sp1};
|
|
134
134
|
color: ${e=>e.theme.colors.primary};
|
|
135
|
-
`,pe=n(
|
|
135
|
+
`,pe=n(U)`
|
|
136
136
|
width: ${o.sp3};
|
|
137
137
|
height: ${o.sp3};
|
|
138
138
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,X as b,M as d,a5 as l,Y as p,
|
|
1
|
+
import{j as t,X as b,M as d,a5 as l,Y as p,d as x,o as i,$ as g,c0 as h,k as m}from"./index-Dq4DW5h0.js";import{b as u,n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.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-Dq4DW5h0.js";import o from"./CustomerOnboardingNoStepsPage-B9ts3Tla-CfVcbZOI.js";import i from"./CustomerOnboardingPage-DJbFeXms-BffeJFQv.js";import"./mui-BgvZYSo0.js";import"./vendor-CnQcJ2Lu.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./HelpButton-8AQIbLQM-Dxn71Y7_.js";import"./MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js";import"./PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js";import"./SetUpAccountSection-nul4pyeP-CLCXvV9l.js";import"./SetUpDefaultSection-ByW3h9zl-9i3uOw78.js";import"./ChaseOverlay-DPgGIuyV-JigHbzQk.js";import"./CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js";import"./CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js";import"./LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js";import"./LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js";import"./LabeledDocumentField-DORRl3DI-WSVu_B_9.js";import"./DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js";import"./QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js";import"./QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js";const w=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(i,{...t});export{w as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{j as s,Y as y,aG as
|
|
1
|
+
import{j as s,Y as y,aG as T,u as f,X as E,bh as x,o as t,p as R,C as $,$ as I,M as N,g as u,eT as U,hc as P,f1 as L,b5 as W,f as M,hd as O}from"./index-Dq4DW5h0.js";import{n as r,f as S}from"./vendor-CnQcJ2Lu.js";const X=r(O)`
|
|
2
2
|
/* Size is controlled by styles.root prop */
|
|
3
|
-
`,
|
|
3
|
+
`,Z=r.div`
|
|
4
4
|
position: relative;
|
|
5
5
|
width: ${t.sp3};
|
|
6
6
|
height: ${t.sp3};
|
|
@@ -22,7 +22,7 @@ import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M
|
|
|
22
22
|
pointer-events: none;
|
|
23
23
|
z-index: 1;
|
|
24
24
|
}
|
|
25
|
-
`,F=({valueEnd:e,valueStart:i,children:o})=>{const[l,d]=S.useState(i);return S.useEffect(()=>{const a=setTimeout(()=>{d(e)},100);return()=>clearTimeout(a)},[e]),s.jsx(s.Fragment,{children:o(l)})},G=({valueEnd:e=50})=>{const i=f();return s.jsx(F,{valueStart:0,valueEnd:e,children:o=>s.jsx(
|
|
25
|
+
`,F=({valueEnd:e,valueStart:i,children:o})=>{const[l,d]=S.useState(i);return S.useEffect(()=>{const a=setTimeout(()=>{d(e)},100);return()=>clearTimeout(a)},[e]),s.jsx(s.Fragment,{children:o(l)})},G=({valueEnd:e=50})=>{const i=f();return s.jsx(F,{valueStart:0,valueEnd:e,children:o=>s.jsx(Z,{theme:i,children:s.jsx(X,{value:o,strokeWidth:50,circleRatio:1,styles:{...P({pathColor:u.success,trailColor:"transparent",pathTransitionDuration:1.5,rotation:1,strokeLinecap:"butt"}),root:{width:t.sp3,height:t.sp3,position:"relative",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center"}}})})})},j=({isActive:e,isCompleted:i,isDisabled:o,isError:l,isHalfCompleted:d,theme:a})=>e||i||d||l?l?u.runwayRed:a.colors.primary:o?a.colors.grey1:a.colors.hero,w=({isActive:e,isCompleted:i,isDisabled:o,isHalfCompleted:l,theme:d})=>e||i||l?d.colors.primary:o?d.colors.grey1:d.colors.hero,J=r.div`
|
|
26
26
|
width: 100%;
|
|
27
27
|
display: flex;
|
|
28
28
|
background: ${e=>e.isActive?e.theme.colors.grey5:null};
|
|
@@ -44,28 +44,28 @@ import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M
|
|
|
44
44
|
`,K=r.div`
|
|
45
45
|
margin-right: ${t.sp2};
|
|
46
46
|
margin-top: 2px;
|
|
47
|
-
`,
|
|
47
|
+
`,V=r(L)`
|
|
48
48
|
width: ${t.sp3};
|
|
49
49
|
height: ${t.sp3};
|
|
50
50
|
color: ${u.success};
|
|
51
|
-
`,
|
|
51
|
+
`,Y=r(U)`
|
|
52
52
|
width: ${t.sp3};
|
|
53
53
|
height: ${t.sp3};
|
|
54
54
|
color: ${u.runwayRed};
|
|
55
|
-
`,
|
|
55
|
+
`,q=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
|
+
`,B=r.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
|
-
`,
|
|
64
|
+
`,Q=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(M)`
|
|
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(J,{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(K,{children:a?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(J,{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(K,{children:a?s.jsx(Y,{}):l?s.jsx(G,{}):o?s.jsx(V,{}):s.jsx(q,{isActive:i,disabledStep:c})}),s.jsxs(B,{children:[s.jsx(Q,{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;
|
|
@@ -115,7 +115,7 @@ import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M
|
|
|
115
115
|
color: ${e=>e.theme.colors.primary};
|
|
116
116
|
cursor: pointer;
|
|
117
117
|
flex-shrink: 0;
|
|
118
|
-
`,ue=e=>{const{isOnAddressPage:i,allSteps:o,completedSteps:l,halfCompletedSteps:d,errorSteps:a,currentStep:h,signedInUser:m,currentTenant:g,fetchStatus:p,onUpdateStep:n,onZeniLogoClick:c,handleLogOutClick:k,handleCockpitClick:A,setIsStepClicked:z}=e,D=p.fetchState==="In-Progress"||p.fetchState==="Not-Started",H=[];return s.jsxs(de,{children:[s.jsx(ne,{"data-testid":y("zeni-logo-customer-onboarding-drawer"),onClick:c}),D?s.jsx(le,{}):s.jsx(ie,{allSteps:o,isDisabled:i,disabledSteps:H,completedSteps:l,halfCompletedSteps:d,errorSteps:a,currentStep:h,onUpdateStep:n,setIsStepClicked:z}),s.jsx(ae,{children:s.jsx(
|
|
118
|
+
`,ue=e=>{const{isOnAddressPage:i,allSteps:o,completedSteps:l,halfCompletedSteps:d,errorSteps:a,currentStep:h,signedInUser:m,currentTenant:g,fetchStatus:p,onUpdateStep:n,onZeniLogoClick:c,handleLogOutClick:k,handleCockpitClick:A,setIsStepClicked:z}=e,D=p.fetchState==="In-Progress"||p.fetchState==="Not-Started",H=[];return s.jsxs(de,{children:[s.jsx(ne,{"data-testid":y("zeni-logo-customer-onboarding-drawer"),onClick:c}),D?s.jsx(le,{}):s.jsx(ie,{allSteps:o,isDisabled:i,disabledSteps:H,completedSteps:l,halfCompletedSteps:d,errorSteps:a,currentStep:h,onUpdateStep:n,setIsStepClicked:z}),s.jsx(ae,{children:s.jsx(T,{signedInUser:m,currentTenant:g,onLogOutClick:k,onCockpitClick:A})})]})},C={titleRectangleWidth:new $(250,500,550,600),subTitleRectangleWidth:new $(343,600,700,800)},pe=r.div`
|
|
119
119
|
display: flex;
|
|
120
120
|
flex-direction: column;
|
|
121
121
|
align-items: center;
|
|
@@ -159,4 +159,4 @@ import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M
|
|
|
159
159
|
box-sizing: border-box;
|
|
160
160
|
align-items: center;
|
|
161
161
|
justify-content: center;
|
|
162
|
-
`,xe=({isNoStepsPage:e=!1})=>{const i=f(),o=
|
|
162
|
+
`,xe=({isNoStepsPage:e=!1})=>{const i=f(),o=E();return s.jsx(pe,{isNoStepsPage:e,children:s.jsx(ce,{windowSize:o,children:s.jsxs(he,{children:[s.jsx(v,{children:s.jsx(x,{width:C.titleRectangleWidth.value(o),height:R[6],backgroundColor:i.colors.grey3,style:{borderRadius:t.sp2}})}),s.jsx(v,{children:s.jsx(x,{width:C.subTitleRectangleWidth.value(o),height:27,backgroundColor:i.colors.grey3,style:{borderRadius:t.sp2}})})]})})})};export{b as a,ue as b,xe as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d3 as se,j as o,X as Ce,u as Pe,a as we,
|
|
1
|
+
import{d3 as se,j as o,X as Ce,u as Pe,a as we,h3 as be,M as xe,a5 as ke,c3 as Ie,aW as $e,o as i,Y as Ae,F as ve,a7 as Oe,aG as je,cw as Ve,cx as oe,$ as Te,C as J,s as Le,p as $}from"./index-Dq4DW5h0.js";import{n as c,b as A}from"./vendor-CnQcJ2Lu.js";import{F as Ue}from"./HelpButton-8AQIbLQM-Dxn71Y7_.js";import{t as ze,e as Ee}from"./PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js";import"./SetUpAccountSection-nul4pyeP-CLCXvV9l.js";import"./SetUpDefaultSection-ByW3h9zl-9i3uOw78.js";import"./ChaseOverlay-DPgGIuyV-JigHbzQk.js";const X="onboardingPaymentAccountSetupSection",ie="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(),Ke=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:F,..._})=>{const u=Ce(),K=se(),{analytics:h}=K,{onFetchLinkTokenClick:D,onUpdatePaymentAccountStatus:M,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:Y,uiState:le,allNationalityCountries:q,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 s=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},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,q]);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(Y).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(X);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,q,b]);const[ae,fe]=A.useState(!1);return o.jsxs(De,{children:[o.jsxs(Me,{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:i.sp0,paddingBottom:i.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(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:Y,subscriptionBillingAddressSectionId:n,sectionId:X,analytics:h,isValid:ne(),onFetchLinkTokenClick:D,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:G,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${ie}`,leftSideComponent:o.jsx(Ne,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:N})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.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:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},De=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -40,9 +40,9 @@ import{d3 as se,j as o,X as Ce,u as Pe,a as we,h2 as be,M as xe,a5 as ke,c3 as I
|
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
cursor: default;
|
|
43
|
-
`,
|
|
43
|
+
`,We=c.div`
|
|
44
44
|
display: flex;
|
|
45
|
-
`,
|
|
45
|
+
`,Ze=c(Te)`
|
|
46
46
|
height: ${i.sp4};
|
|
47
47
|
width: 102px;
|
|
48
48
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -58,7 +58,7 @@ import{d3 as se,j as o,X as Ce,u as Pe,a as we,h2 as be,M as xe,a5 as ke,c3 as I
|
|
|
58
58
|
padding-bottom: ${e=>Q.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
59
59
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
60
60
|
width: 100%;
|
|
61
|
-
`,v=e=>({[X]:{account:{allOptions:[],selectedOption:void 0}},[n]:be(n,e?.subscriptionBillingAddress)[n]}),pt=e=>{const{onboardingCustomerView:C,cardPaymentView:y,signedInUser:O,currentTenant:j,isOnAddressPage:P,stripeKey:V,googleAPIKey:T,meetingUrl:L,onUpdateStep:U,onZeniLogoClick:w,handleLogOutClick:z,handleCockpitClick:E,handleCreateCardSetupIntent:B,handleConfirmCardSetupIntent:b,handleFetchPaymentSources:F,updateCardPaymentModalState:_,resetCardPaymentViewState:u,handleResetCardPaymentErrorStatuses:K,redirectToProductSuitePage:h,...D}=e,{allSteps:M,currentStep:R,fetchStatus:S}=C,G=se(),{analytics:N}=G,
|
|
61
|
+
`,v=e=>({[X]:{account:{allOptions:[],selectedOption:void 0}},[n]:be(n,e?.subscriptionBillingAddress)[n]}),pt=e=>{const{onboardingCustomerView:C,cardPaymentView:y,signedInUser:O,currentTenant:j,isOnAddressPage:P,stripeKey:V,googleAPIKey:T,meetingUrl:L,onUpdateStep:U,onZeniLogoClick:w,handleLogOutClick:z,handleCockpitClick:E,handleCreateCardSetupIntent:B,handleConfirmCardSetupIntent:b,handleFetchPaymentSources:F,updateCardPaymentModalState:_,resetCardPaymentViewState:u,handleResetCardPaymentErrorStatuses:K,redirectToProductSuitePage:h,...D}=e,{allSteps:M,currentStep:R,fetchStatus:S}=C,G=se(),{analytics:N}=G,W={allSteps:M,isOnAddressPage:P,currentStep:R,fetchStatus:S,signedInUser:O,currentTenant:j,onUpdateStep:Z=>{U(Z)},onZeniLogoClick:w,handleLogOutClick:z,handleCockpitClick:E,redirectToProductSuitePage:h},x=S.fetchState==="In-Progress"||S.fetchState==="Not-Started";return o.jsxs(Je,{isOnAddressPage:P,children:[x?o.jsx(Be,{isNoStepsPage:!0}):o.jsx(Ke,{...W,onboardingCustomerView:C,handleCreateCardSetupIntent:B,handleConfirmCardSetupIntent:b,updateCardPaymentModalState:_,handleFetchPaymentSources:F,cardPaymentView:y,resetCardPaymentViewState:u,stripeKey:V,googleAPIKey:T,handleResetCardPaymentErrorStatuses:K,redirectToProductSuitePage:h,...D}),x?null:o.jsx(Ue,{isFooterRendered:!0,meetingUrl:L,analytics:N,productType:"onboarding"})]})},Je=c.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
width: ${e=>e.isOnAddressPage?"fit-content":"100%"};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import{j as r,X as Qe,u as Yt,a as Xt,c3 as me,M as Ke,a5 as pt,I as ut,J as He,l as M,aW as en,o as ie,F as tn,p as Q,a7 as nn,h3 as an,fF as on,fd as mt,cw as Pt,cx as ft,C as fe,fI as ye,cg as sn,s as rn,h4 as yt,E as gt,ce as cn,fH as ln}from"./index-Dq4DW5h0.js";import{b as p,n as P,k as xt}from"./vendor-CnQcJ2Lu.js";import{F as dn}from"./HelpButton-8AQIbLQM-Dxn71Y7_.js";import{t as ht,e as pn}from"./PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js";import{b as St,f as un,a as Ct}from"./CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js";import{G as mn,o as fn}from"./CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js";import{o as yn}from"./QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js";import"./SetUpAccountSection-nul4pyeP-CLCXvV9l.js";import"./SetUpDefaultSection-ByW3h9zl-9i3uOw78.js";import"./ChaseOverlay-DPgGIuyV-JigHbzQk.js";import"./LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js";import"./LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js";import"./LabeledDocumentField-DORRl3DI-WSVu_B_9.js";import"./DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js";import"./QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js";const gn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:A,verifiedPhoneNumber:x,onPhoneVerified:S,...I})=>{const m=Qe(),V=t?.companyOfficers.slice(0,10).sort((b,X)=>b.user.createTime?.isAfter(X.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=Ke.getLocalizedStrings().customerOnboardingPage.sections,{title:F}=l,N=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(hn,{children:r.jsx(fn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:F,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:N,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:S,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:A,...I})})},hn=P.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
`,Sn=({fileProps:t,companyDetails:w,companyIndustries:c,sectionId:f,isCompleted:A,isDisabled:x,style:S,onCompanyAddressClick:I,onRegisteredAddressClick:m})=>{const V=Qe(),{company_details:l}=Ke.getLocalizedStrings().customerOnboardingPage.sections,{title:F}=l;return r.jsx(Cn,{children:r.jsx(mn,{fileProps:t,companyDetails:w,sectionId:f,isDisabled:x,style:S,sectionHeader:F,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})})},Cn=P.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
`,bn=P.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
`,Pn=P.input`
|
|
12
|
+
display: none;
|
|
13
|
+
`,xn=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=sn();return r.jsxs(bn,{children:[r.jsx(Pn,{type:"hidden",...f(`${w}.connected`,{validate:A=>A==="true"}),value:t?"true":"false"}),r.jsx(yn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Y="onboardingPaymentAccountSetupSection",bt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},In=t=>`${t}_form`,re=Ke.getLocalizedStrings(),On=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:A,connectedAccountProvider:x,analytics:S,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:F,updateCardPaymentModalState:N,handleAddCardPaymentSource:b,resetCardPaymentViewState:X,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ae})=>{const L=Qe(),ve=p.useRef(null),Ve=p.useRef(null),K=p.useRef(null),Fe=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[ce,Pe]=p.useState(!1),[ee,W]=p.useState(null),{onAddressClick:te,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:$,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ae,onDeleteFile:v,onEditFileName:We,updateFilesEntity:Je,onGetOtp:It,onSkipSetupClick:$e,onUpdateCustomerView:De,updateStepHandler:U,onVerifyOtp:Ot,onResendOtp:kt,handleOnConnectClick:wt,updateQBOPopupState:At,onUpdateStep:Ne,onAddressEditHandler:vt}=Ae,Vt=Yt(),s=Xt({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(Y).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();D?.(e)},[q,D]),p.useEffect(()=>{const e=s.watch((n,{name:o,type:i})=>{o!=null&&(i==="change"||i==="blur")&&me(()=>{const d=q();D?.(d)})});return()=>e.unsubscribe()},[s,q,D]);const Ze=e=>{Ge(e)},Oe=p.useRef(""),Ft=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}.${Z}.phone`):It(e)},{companyView:oe,companyDetailsLocalData:y,companyOfficerLocalData:H,currentStep:a,completedSteps:Ye,saveStatus:O,allSteps:g,allRequiredStepsCompleted:Te,paymentAccount:pe,paymentAccountStatus:Xe,externalConnections:Ee,plaidConnectionDetails:_e,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:$t,officer:Dt},subscriptionBillingAddress:J}=f,Z=Object.values(H).findIndex(e=>e?.isSelectedForVerification===!0)??0,E=`Officer_${Z<0?1:Z+1}`,Nt=oe?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=H[E]?.userId!=null?Nt?.find(e=>e.user.userId===H[E]?.userId)?.address:null,et=H[E]?.addressStatus?.addressToCreate,ke=oe?.companyAddress,tt=y?.addressStatus?.addressToCreate,Re=oe?.registeredAddress,nt=y?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Tt,common:h}=re,{footer:Et,steps:_t}=Tt,{buttons:at}=Et,ot=_t[a],ze=g.length,se=pt(O.fetchState),_=pt(a);function jt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(_e).some(d=>d.fetchStatus.fetchState==="Completed"),n=pe?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,i=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!pe&&o||!o&&!pe&&i};function st(){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||h.strings.empty;return!!n&&!!o&&!!i&&!!d&&!!k}const Lt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))$?.(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=Pt(d?.country);i={street:n[u].street??h.strings.empty,city:d?.locality??h.strings.empty,state:d?.administrativeAreaLevel1??h.strings.empty,country:k,countryCode:d?.countryCode??h.strings.empty,postalCode:d?.postalCode??h.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:ft(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(i={...i,countryCode:ft(o.selectedOption)});vt(i)}};p.useEffect(()=>{const e=s.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Lt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{se==="In-Progress"&&O.fetchState==="Completed"&&(s.reset(Me(f,Le),{keepDirtyValues:!1}),_==="company_details"&&a==="link_payment_account"&&!g.includes("qbo_connection")&&!f.qboConnected&&Se())},[s,f,se,O.fetchState,Le,_,a,g,Se]),p.useEffect(()=>{Ce&&se==="In-Progress"&&O.fetchState==="Completed"&&($e(),S.track(ut.Event.onboardingSkipAndSave))},[se,Ce,O.fetchState,$e]),p.useEffect(()=>{ee?.shouldNavigate===!0&&se==="In-Progress"&&O.fetchState==="Completed"&&(U(ee.fromStep,ee.stepDirection,!0),W(null))},[ee,se,O.fetchState,U]),p.useLayoutEffect(()=>{_!=null&&_!==a&&(g.indexOf(_)===g.indexOf(a)-1||g.indexOf(_)===ze-1&&g.indexOf(a)===0?R!=="next"&&z("next"):(g.indexOf(_)-1===g.indexOf(a)||g.indexOf(_)===0&&g.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[g,a,_,R,ze]);const it=()=>{const e=H[E];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},Bt=!He(et!=null?M.getFormattedAddress(et):null,Be!=null?M.getFormattedAddress(Be):null),Rt=!He(tt!=null?M.getFormattedAddress(tt):null,ke!=null?M.getFormattedAddress(ke):null),zt=!He(nt!=null?M.getFormattedAddress(nt):null,Re!=null?M.getFormattedAddress(Re):null),Ut=s.getFieldState(j).isDirty||Rt||zt||$t,Ue=s.getFieldState(C).isDirty&&it()||Bt||Dt,rt=s.getFieldState(`${u}`).isDirty,qt=y?.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??h.strings.empty,secondaryInfo:e.secondaryInfo};S.trackOnboardingBillingAddressSave(n)},Qt=()=>{switch(Pe(!1),a){case"link_payment_account":rt?setTimeout(()=>{const e=q();D?.(e),st()&&rt?(Mt(),De(E,!1,!0),W({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=ct();if(me(()=>{const n=q();D?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=s.formState.errors[C]?.[Z<0?0:Z],o=n?.phone,i=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!i){Ze(e.phoneNumber);return}}e.isValid&&(De(E,!1,!1),S.trackOnboardingCompanyOfficerSave(lt(),{legalName:y?.companyLegalName}),W({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(st()&&ue()),n=!jt()&&g.includes("qbo_connection");if(e||n){e&&(s.trigger(`${Y}`),s.trigger(`${u}`)),n&&s.trigger(ge),me(()=>{const o=q();D?.(o)}),e?Ne("link_payment_account"):n&&Ne("qbo_connection");return}}if(Ut||Ue||!qt?.email){const e=Wt(),n=Ue?ct():{isValid:!0};me(()=>{const o=q();D?.(o)}),e&&n.isValid?(Te&&(B(!0),Jt()),De(E,!Te,!1),W({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Ne("company_officer")}else Te?Kt():U(a,"next",!0);break}},Kt=()=>{O.fetchState!=="In-Progress"&&($e(),S.track(ut.Event.onboardingSkipAndSave))},ct=()=>{const e=H[E],n=e?.email??h.strings.empty,o=e?.phone??h.strings.empty,i=e?.ssn??h.strings.empty,d=e?.ownershipInCompany,k=Z<0?0:Z,Gt=!!e?.firstName&&!!e?.lastName;let G=!0,dt=!1;return n&&!Gt&&(s.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),G=!1),(!n&&it()||gt.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||(dt=!0,s.setError(`${C}.${k}.phone`,{type:"custom",message:re.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&&ln.test(i)===!1&&(s.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),G=!1),{isValid:G,needsOtp:dt,phoneNumber:o}},Wt=()=>{const e=y?.website?.toString()??h.strings.empty,n=y?.phone??h.strings.empty,o=y?.taxIdOrEIN??h.strings.empty,i=y?.primaryContactLocalData?.email??h.strings.empty;let d=!0;return e&&yt.test(e)===!1&&(s.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),yt.lastIndex=0,n&&ye(n)===!1&&(s.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!i||gt.test(i)===!1)&&(s.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&cn.test(o)===!1&&(s.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},lt=()=>{const e=H[E];return{email:e?.email??h.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=y?.primaryContactLocalData;S.trackBusinessVerificationSave(lt(),{companyDescription:y?.companyDescription,legalName:y?.companyLegalName,phone:y?.phone,website:y?.website?.toString(),industry:y?.companyIndustry??h.strings.empty,formattedAddress:y?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(y?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Zt]=p.useState(!1);return r.jsxs(An,{children:[r.jsxs(vn,{windowSize:L,children:[g.indexOf(a)>=0?r.jsx(en,{title:ot.sectionTitle,showBackButton:!1,backgroundColor:Vt.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:ie.sp0,paddingBottom:ie.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Vn,{windowSize:L,children:r.jsx($n,{windowSize:L,children:r.jsx(Fn,{})})}),r.jsx(tn,{...s,children:r.jsx(Nn,{id:In(bt),children:g.map(e=>{let n;n=r.jsx(ht,{connectedAccountProvider:x,paymentAccount:pe,accountStatus:Xe,plaidConnectionDetails:_e,sectionId:Y,hasError:s.getFieldState(Y).error!=null||ce&&!ue(),isValid:ue(),analytics:S,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionSuccess:ae,cardPaymentView:I,resetCardPaymentViewState:X,updateCardPaymentModalState:N,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=ve;switch(e){case"link_payment_account":n=r.jsx(ht,{connectedAccountProvider:x,paymentAccount:pe,accountStatus:Xe,plaidConnectionDetails:_e,subscriptionBillingAddressSectionId:u,sectionId:Y,hasError:s.getFieldState(Y).error!=null||ce&&!ue(),isValid:ue(),analytics:S,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionSuccess:ae,updateCardPaymentModalState:N,cardPaymentView:I,resetCardPaymentViewState:X,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:J});break;case"qbo_connection":n=r.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:c,isValid:Ee?.accounting[0]?.isValid??!1,companyName:oe?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:wt,updateQBOPopupState:At}),o=Ve;break;case"company_officer":n=r.jsx(gn,{companyOfficerLocalData:H,allNationalityCountries:Le,isCompleted:Ye.includes("company_officer"),companyView:oe,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:A,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Ze,onVerifyOtp:Ot,onResendOtp:kt,onOfficerAddressClick:i=>te(i,Be?.addressId),updateFilesEntity:Je,onEditFileName:We,onDeleteFile:v,verifiedPhoneNumber:Oe.current,onPhoneVerified:Ft,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Ge}),o=Fe;break;case"company_details":n=r.jsx(Sn,{fileProps:{...t,onEditFileName:We,onDeleteFile:v,updateFilesEntity:Je},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:y,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ye.includes("company_details"),onCompanyAddressClick:i=>{const d=oe?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?te(i,d):te(i,ke?.addressId)},onRegisteredAddressClick:i=>te(i,Re?.addressId)}),o=K;break}return r.jsxs(Dn,{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"?Q[6]:Q[0],stepAnimationDirection:R,children:[g.indexOf(a)>=0?r.jsx(Tn,{windowSize:L,children:ot.sectionSubTitle}):null,n]},e)})})}),r.jsx(nn,{formId:`${bt}`,style:{width:L==="small"?"auto":"100%",paddingTop:ie.sp2,paddingBottom:ie.sp2},primaryBtn:{onClick:Qt,label:a==="company_details"?h.footer.submit:at.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Ht,label:at.back,isDisabled:O.fetchState==="In-Progress"||g.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(pn,{handleConfirmCardSetupIntent:F,updateCardPaymentModalState:N,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Zt})]})},kn=xt`
|
|
14
|
+
from {
|
|
15
|
+
transform: translateY(100%);
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
transform: translateY(0);
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
`,wn=xt`
|
|
23
|
+
from {
|
|
24
|
+
transform: translateY(-100%);
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
to {
|
|
28
|
+
transform: translateY(0);
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
`,An=P.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
align-items: center;
|
|
35
|
+
min-width: calc(100% - ${Ct}px);
|
|
36
|
+
padding-left: ${Ct}px;
|
|
37
|
+
flex: 1;
|
|
38
|
+
|
|
39
|
+
${t=>t.theme.breakpoints.down("md")} {
|
|
40
|
+
width: 100%;
|
|
41
|
+
padding-left: ${ie.sp0};
|
|
42
|
+
}
|
|
43
|
+
`,vn=P.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
flex: 1;
|
|
48
|
+
width: 100%;
|
|
49
|
+
min-height: 100vh;
|
|
50
|
+
background-image: ${t=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${t.windowSize==="small"?"m":"w"}-${t.theme.mode==="dark"?"d":"l"}.svg)`};
|
|
51
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
52
|
+
background-size: inherit;
|
|
53
|
+
background-attachment: fixed;
|
|
54
|
+
background-position: ${t=>t.windowSize==="small"?"center center":"right center"};
|
|
55
|
+
background-repeat: no-repeat;
|
|
56
|
+
|
|
57
|
+
${t=>t.theme.breakpoints.down("lg")} {
|
|
58
|
+
background-size: cover;
|
|
59
|
+
}
|
|
60
|
+
`,Vn=P.div`
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
align-items: center;
|
|
64
|
+
text-align: center;
|
|
65
|
+
width: ${t=>`calc(100% - ${he.topNavBarLeftRightSpace.valuePx(t.windowSize)})`};
|
|
66
|
+
`,Fn=P.div``,$n=P.div`
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
width: 100%;
|
|
71
|
+
min-height: ${t=>he.topNavBarHeight.valuePx(t.windowSize)};
|
|
72
|
+
`,Dn=P.div`
|
|
73
|
+
min-height: 100%;
|
|
74
|
+
display: ${t=>t.isVisible?"flex":"none"};
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
padding-bottom: ${t=>t.paddingBottom+"px"};
|
|
77
|
+
animation-name: ${t=>t.stepAnimationDirection==="next"?kn:wn};
|
|
78
|
+
${t=>t.includeAnimation?`
|
|
79
|
+
animation-duration: 0.6s;
|
|
80
|
+
animation-delay: 0s;
|
|
81
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
+
animation-fill-mode: both;
|
|
83
|
+
`:null}
|
|
84
|
+
`,Nn=P.form`
|
|
85
|
+
padding-top: ${ie.sp0};
|
|
86
|
+
flex: 1;
|
|
87
|
+
`,Tn=P(rn)`
|
|
88
|
+
color: ${t=>t.theme.colors.hero};
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
width: ${t=>he.titleWidth.valuePx(t.windowSize)};
|
|
92
|
+
padding-top: ${t=>he.subTitlePaddingTop.valuePx(t.windowSize)};
|
|
93
|
+
padding-bottom: ${t=>he.subTitlePaddingBottom.valuePx(t.windowSize)};
|
|
94
|
+
text-align: ${t=>t.windowSize==="small"?"initial":"center"};
|
|
95
|
+
width: 100%;
|
|
96
|
+
white-space: pre-line;
|
|
97
|
+
`,Me=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:A}=t,x=re.commonSetUp.businessVerification,S=re.companyPassport,I=A?.companyOfficers!=null&&A?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??re.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()??re.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:S.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,V)=>{const l=m,F=on(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:Pt(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:mt(!0,l?.userFiles??[],F),back:mt(!1,l?.userFiles??[],F),selectDocumentType:F},isSelectedForVerification:!I&&V===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Y]:{account:{allOptions:[],selectedOption:void 0}},[u]:an(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:S,googleAPIKey:I,onUpdateStep:m,onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:F,meetingUrl:N,analytics:b,handleCreateCardSetupIntent:X,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:D,resetCardPaymentViewState:Ae,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,...Ve}=t,{allSteps:K,completedSteps:Fe,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),T=p.useRef(K),[be,ce]=p.useState(!1),[Pe,ee]=p.useState([]),W={allSteps:K,isOnAddressPage:x,completedSteps:Fe,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:A,onUpdateStep:$=>{m($)},onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:F,setIsStepClicked:ce};p.useEffect(()=>{if(z.current!==B){const $=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,$),ce(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{K.length!==T.current.length&&(T.current=K)},[K]);const te=($,Ie,le)=>{const ne=T.current.length,de=T.current.indexOf($);switch(Ie){case"next":{const ae=(de+1)%ne,v=T.current[ae];z.current=v,m(v),le===!0?b.trackOnboardingNext($,v):b.trackOnboardingCurrentStep(v,$);break}case"previous":{const ae=(de+ne-1)%ne,v=T.current[ae];z.current=v,m(v),le===!0?b.trackOnboardingBack($,v):b.trackOnboardingCurrentStep(v,$);break}}},xe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:x,children:x?r.jsx(St,{...W}):r.jsxs(_n,{children:[r.jsx(St,{...W}),xe?r.jsx(un,{isNoStepsPage:!1}):r.jsx(On,{onboardingCustomerView:w,analytics:b,updateStepHandler:te,onUpdateStep:m,handleCreateCardSetupIntent:X,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:D,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:Ae,stripeKey:S,googleAPIKey:I,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,onFormErrorsChange:ee,...Ve}),xe?null:r.jsx(dn,{isFooterRendered:!0,meetingUrl:N,analytics:b,productType:"onboarding"})]})})},En=P.div`
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
width: ${t=>t.isOnAddressPage?"fit-content":"100%"};
|
|
101
|
+
height: 100vh;
|
|
102
|
+
`,_n=P.div`
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100vh;
|
|
107
|
+
`;export{ia as default};
|