@zeniai/web-app-ui 4.14.38-dev → 4.14.39-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-BShpKoIj-D1Wy32uO.js → ACHDetailsPage-B5qIuZya-Dqn8ZaVl.js} +6 -6
- package/dist/assets/{AIPerformancePage-CFErwUsE-DcUypqs6.js → AIPerformancePage-BHB45mP--CWtWN8JR.js} +23 -23
- package/dist/assets/AccountInfoPage-Cd5xYT1g-BylH1aam.js +18 -0
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-3aE5KJwU.js +149 -0
- package/dist/assets/{AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js → AccountLockedInfoModal-Dox7IuAX-C5qPLBPz.js} +6 -6
- package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js → AccountReconDetailsDrawerPage-Bqty08m0-Dbr-jmu7.js} +5 -5
- package/dist/assets/{AccountRow-BrW_eEjE-Cmf0Jids.js → AccountRow-D1cjRJJD-Dsnq1o4t.js} +9 -9
- package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js → AccountsPromoCardStack-Bs3naJHM-DvbUMPbJ.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-DwU9s4jD.js +6 -0
- package/dist/assets/{AddToWalletPage-CsOmzC7v-S49ZGsCa.js → AddToWalletPage-CyRfqVDB-DtRghMSs.js} +12 -12
- package/dist/assets/AddressRoutes-DbIoDD0z.js +1 -0
- package/dist/assets/AddressScreen-Duz_V-eF.js +9 -0
- package/dist/assets/AgingReportsPage-xBFff3BM-B936IQ2N.js +79 -0
- package/dist/assets/{AiCfoScreen-D5N0hxeG.js → AiCfoScreen-DkKXC6Fw.js} +2 -2
- package/dist/assets/{AllUserItems-Dq7NcP-o-Da1Zo4z6.js → AllUserItems-BJf6WPDo-D0H1tMjG.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js → ApAgingDetailPage-CjBrPyi8-Dy0hX-gn.js} +5 -5
- package/dist/assets/{AppBasePage-B5sDynhi-CeUmBhIQ.js → AppBasePage-CqDm-hnV-DluaESRo.js} +9 -9
- package/dist/assets/{AppDrawerContent-D9Q8ir0T-DZmwUW8c.js → AppDrawerContent-CVVWj66i-D4zioU_X.js} +6 -6
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-Bu-mEOHu.js +47 -0
- package/dist/assets/ArAgingChart-CBsqOd-4-CVCl4d59.js +24 -0
- package/dist/assets/{ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js → ArAgingDetailPage-i7JObt60-CsyQx3rL.js} +1 -1
- package/dist/assets/{AttachmentView-CiYfninr-DZhIwWMR.js → AttachmentView-CzC4skJ3-D2ObdnK2.js} +6 -6
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B94s6jgr.js +38 -0
- package/dist/assets/{BankAccountSection-EZtscP2z-C2fUrA1M.js → BankAccountSection-Di4sF52j-BobhPzIF.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js → BankAccountWarningSection-Cled-2cR-CypxFFmY.js} +10 -10
- package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js → BankConnectionsSettingsPage-Ccnzq7st-DGOhp4FX.js} +52 -52
- package/dist/assets/{BillDetailPage-pt1k5AQf-C_HrCJfS.js → BillDetailPage-XXOwBfO1-DauaxUA2.js} +9 -9
- package/dist/assets/BillPayApprovalRoutes-S9Y_fMTz.js +1 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js → BillPayApprovalRuleDetailPage-DFZ0csaT-1KbX_IY6.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js → BillPayApprovalRulesPage-COCypDcS-BjGZEACH.js} +9 -9
- package/dist/assets/{BillPayPromoPage-Dgpz2TLG-BwKkDBie.js → BillPayPromoPage-DOE2YIqC-C8ApdrdB.js} +7 -7
- package/dist/assets/{BillPayRoutes-aVWMd64J.js → BillPayRoutes-Bz92yFGI.js} +18 -18
- package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js → BillPaySetUpPage-BCJbZDsV-BF2fTyNr.js} +7 -7
- package/dist/assets/{BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js → BillingSettingsPage-iImtlEmO-CBp1rdfh.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js → BillsBulkReviewDrawerPage-B11GWM_0-Crsw24X2.js} +1 -1
- package/dist/assets/{BoxItem-B06DK4G--C4opawya.js → BoxItem-Bxa1M4QU-BEQbjRW-.js} +4 -4
- package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js → BusinessVerificationPage-DSuJFoW1-mYZPYqnm.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-D9PxWQrU.js → BusinessVerificationPageScreen-BlaiKu4I.js} +2 -2
- package/dist/assets/{BusyIndication-Cd67eHX6-C7aB5h-1.js → BusyIndication-9zDqSKBP-WSsX6_uU.js} +1 -1
- package/dist/assets/{CardNumberSubText-CcH9jUoZ-HppogTjx.js → CardNumberSubText-_ZZbaz_k-D2s6-wsQ.js} +8 -8
- package/dist/assets/{CashbackDetailPage-5eysaHGf-CZA31npt.js → CashbackDetailPage-DAZXitLt-Dn6UduwT.js} +24 -24
- package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js → ChargeCardDetailPage-B1VIpASk-D0l4y1IR.js} +20 -20
- package/dist/assets/{ChargeCardListPage-C-RTGkKK-Cc1az4M9.js → ChargeCardListPage-BOBepN-x-BtfglwWz.js} +36 -36
- package/dist/assets/{ChargeCardListTable-B-bNbtZQ-BuEumynS.js → ChargeCardListTable-YznzSsJo-KwncCUaT.js} +31 -31
- package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js → ChargeCardPaymentHistoryPage--jOwsMla-DQFHZBZ2.js} +19 -19
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-CUSVcG-Z.js +222 -0
- package/dist/assets/{ChargeCardRoutes-CKV_cGg2.js → ChargeCardRoutes-PKJBtykP.js} +9 -9
- package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js → ChargeCardSetupPage-0bpVkeJs-yW1xF9DG.js} +4 -4
- package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js → ChargeCardStatementsPage-ChWyQlw6-BDnJUrTu.js} +2 -2
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-C-RoPs-w.js +206 -0
- package/dist/assets/{CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js → CollapsableReportTable-DNfFkAts-CoCUKzx3.js} +40 -40
- package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js → CompanyOfficerDetailsSection-CrOIN4IW-wL1QY22J.js} +23 -23
- package/dist/assets/{CompanyPassportCard-DF9LFrFD-DPvP8c2P.js → CompanyPassportCard-CkzYFTrp-DRHCWpeb.js} +4 -4
- package/dist/assets/{CompanyPassportPage-BtAopyLq-CG1Jq4C9.js → CompanyPassportPage-FE6yli6h-Dd4_9uh3.js} +14 -14
- package/dist/assets/CompanyPassportScreen-BxfK5qi-.js +1 -0
- package/dist/assets/CompleteProfile-Cb8i1XgZ-BjB2Cj8T.js +52 -0
- package/dist/assets/ConfettiBurst-BZCXEGYA-2D0_Pemr.js +1 -0
- package/dist/assets/ConnectionAuthScreen-Wp_pgh6b.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js → ConstrainedInnerElement-CgdnMeoA-CE1VZ_Vz.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js → CreateOrEditVendorPage-CzpSgxbO-k7E9cu5j.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js → CreditCardPaymentDrawerPage-c_q0MsSO-dQfGXEwP.js} +7 -7
- package/dist/assets/{CurrencySelectField-B8EoF2aF-DHzUxLL4.js → CurrencySelectField-BAh7SHrG-BY-wwlD4.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js → CustomerOnboardingActivationPage-f3Aa6E5r-CsLUjIve.js} +6 -6
- package/dist/assets/CustomerOnboardingAuthScreen-CTK0e_jx.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CHM5gdzL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-Cjt3eU6d.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-wTFuOqC8.js} +12 -12
- package/dist/assets/{CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js → CustomerOnboardingPage-B9hSO88_-DWmXd-Uc.js} +7 -7
- package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-GHwnhZEx.js} +7 -7
- package/dist/assets/CustomerOnboardingRoutes-liI38PH4.js +23 -0
- package/dist/assets/{Dashboard-DReG_aaf-B9cmSG7e.js → Dashboard-BJ_oIHab-R3_sy9De.js} +1 -1
- package/dist/assets/{DashboardReportPage-BXSlwsR7-CjT08Tnm.js → DashboardReportPage-BemzMw2e-DvGvflyG.js} +11 -11
- package/dist/assets/{DashboardRoutes-Cr_y84hZ.js → DashboardRoutes-C7dEIbTS.js} +3 -3
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-DP44-3NB.js +12 -0
- package/dist/assets/{DefaultTenantHome-Bp9gU4vX.js → DefaultTenantHome-CkG7rrVy.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-VEy51_-P.js +76 -0
- package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js → DepositAccTransactionListPage-DvBRRUdZ-FPrNb8c2.js} +6 -6
- package/dist/assets/DomesticWireDetailScreen-CgfzlsVD.js +18 -0
- package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js → DomesticWireDetailsPage-DCDo3aHI-DZy_Auc2.js} +4 -4
- package/dist/assets/{DownloadOverlay-BpRKCn-0-Ceuu4G9V.js → DownloadOverlay-D_lL1sPW-DBEVtdkQ.js} +18 -18
- package/dist/assets/{DrawerPage-DQ3Xuekx-osFrzw_b.js → DrawerPage-DesxXhZk-qxdDcPRN.js} +10 -10
- package/dist/assets/DrawerScreen-IScn_gPb.js +1 -0
- package/dist/assets/EditPeoplePage-QvPy_Six-pqhLCmsP.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js → EditReimbursementDetailPage-C0ZDkboO-Ds7tBMbu.js} +17 -17
- package/dist/assets/EntityDetailPage-l7nXIsyF-D-OEpTX_.js +18 -0
- package/dist/assets/EntityDetailRoutes-DCBMx6-C.js +1 -0
- package/dist/assets/{EntitySummarySection-vsEMiXYh-xFy88yRd.js → EntitySummarySection-BwX0a4JL-CYDWshdA.js} +12 -12
- package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js → ExpenseAutomationOverviewPage-EdyHjbff-QECZrSJL.js} +13 -13
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-QWboM4Rp.js +3614 -0
- package/dist/assets/ExpenseAutomationRoutes-DVcJr4np.js +20 -0
- package/dist/assets/{ExpressPayPage-BH7oCW_F-DgICn4el.js → ExpressPayPage-EMP6inpX-C812vhu_.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-DSv61BhF-BsdnfTlO.js → FeaturePreviewPage-SYJm-3aR-BnuhMtuP.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-C3Y9pgiz.js +1 -0
- package/dist/assets/{FollowStepsSection-Bgy9MpO4-CvIWpdyW.js → FollowStepsSection-BxESVqJD-BFhnhk7r.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-VRq_gimm-BpVLghA7.js → GlobalReviewListPage-D5_ACa-q-DZo6UglL.js} +7 -7
- package/dist/assets/{InformationCardStack-rx0fypl3-OYwqii2C.js → InformationCardStack-B_qQUEYD-DRekqbq_.js} +4 -4
- package/dist/assets/InsightsCardStack-BsQzoVzj-BI_nQIXQ.js +79 -0
- package/dist/assets/{InsightsSection-ByFf2oGn-ChvKOP1F.js → InsightsSection-B6CNlTNH-BFr6MnTG.js} +9 -9
- package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js → IntegrationsSettingsPage-DP6fAccq-CigqZ0SM.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js → InternationalWireSwiftDetailsPage-VdG7bDZi-Rlu68XJQ.js} +11 -11
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-CR1f2JQF.js +65 -0
- package/dist/assets/{InviteFormPage-dsMpScvq-pwPoaIw-.js → InviteFormPage-DN02jRy5-UECY6Ai9.js} +6 -6
- package/dist/assets/{InvitePageListView-e7vGSbFa-BfSD0kcH.js → InvitePageListView-CP4K9tJi-CrsR5dUL.js} +42 -42
- package/dist/assets/InvitePeoplePage-VTM6kM1u-DEUyoj-n.js +12 -0
- package/dist/assets/{InvoiceUploadSection-Dg1-uunA-1cshMTVc.js → InvoiceUploadSection-it-ZYl1N-gndqObmu.js} +12 -12
- package/dist/assets/{IssueChargeCardPage-CyF9wrb0-CWwHqex_.js → IssueChargeCardPage-CVfuvGey-DLZauQU0.js} +20 -20
- package/dist/assets/{LabeledAddressValue-3l0Bv00--Bw_81ZJz.js → LabeledAddressValue-DDrQcHIE-CrQXufeN.js} +2 -2
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-BjdQu4oY.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js → LabeledControlledCheckBoxField-CcPO1k23-wgZTidrw.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js → LabeledCountryMultiSelectField-BYYjzwUG-Dh1nhUsB.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js → LabeledCreatableSingleSelectField-CISYMojq-C0CA90PE.js} +6 -6
- package/dist/assets/{LabeledDocumentField-rriEcsdr-CcDZw3QZ.js → LabeledDocumentField-C_bcFxdY-rxfuitkN.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js → LabeledDropDownFormattedTextField-ScGGCap8-5XDDElAU.js} +5 -5
- package/dist/assets/{LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js → LabeledEmailInputField-BppuWRbl-BqM5ToGw.js} +7 -7
- package/dist/assets/{LabeledNameField-yaSRe5Vt-cnDt7eal.js → LabeledNameField-mxSNQk3k-DSUzbE3j.js} +1 -1
- package/dist/assets/{LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js → LabeledSingleSelectField-C6ctNzkA-DJY2_gU-.js} +2 -2
- package/dist/assets/{LabeledText-DGZ7hxY4-BBOC0Eln.js → LabeledText-C8Y7EOsX-BG8Z0MTH.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-eV0BTiQT.js} +11 -11
- package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js → LabeledZeniRolesDropDownField-BZtreVpj-BQKcvtGQ.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-Bvbqpltz-BZhW34oI.js → LinkJETransactionPage-CKq4oiX9-BMq1iE01.js} +10 -10
- package/dist/assets/{LockCardPage-DyEQBJYx-DksW1-ZG.js → LockCardPage-CZENNby7-fCE1WXTx.js} +14 -14
- package/dist/assets/{LowBalancePopup-C2vHKMNF-CMEceag2.js → LowBalancePopup-1727S1ri-CiFxrWZ6.js} +5 -5
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-C5Jji5Bc.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DNJbU9wA.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BDPVvMNI.js +1 -0
- package/dist/assets/MagicLinkRoutes-BBf-u6YU.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-BGYMIMGW.js +12 -0
- package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js → MagicLinkSuccessPage-QMkZgQLG-0gaJkIUo.js} +6 -6
- package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js → MagicLinkTitleSection-CARU1oLQ-D-x2cYul.js} +9 -9
- package/dist/assets/MailingDetailsSection-ByOPaJ05-C__aFJd6.js +21 -0
- package/dist/assets/MobileAppDrawer-TF-9OTZ8.js +1 -0
- package/dist/assets/{MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js → MoreMenuButton-BsBKwXvk-DeCIVX9G.js} +18 -18
- package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js → MyBankConnectionsSettingsPage-BdgIIhL1-DSKnFya9.js} +6 -6
- package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js → MyPendingActivationChargeCardListPage-CX38bDdq-CKY6khDW.js} +1 -1
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-MQ1Uu5yx.js +85 -0
- package/dist/assets/{NavBarWithPicker-CbjFNysh-Ck578WIs.js → NavBarWithPicker-CGGEvLwe-xLu9BDbC.js} +8 -8
- package/dist/assets/{NavigationArrow-Dpc7u6y4-CiTKhYeI.js → NavigationArrow-CTNkKUtV-Cv--eO3H.js} +1 -1
- package/dist/assets/NavigationDots-Dvce3gHt-B5IBT8ql.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js → NewGlobalMerchantPage-D_f7z47T-DZeAHBD8.js} +12 -12
- package/dist/assets/NoDataChart-CrKeqWSr-aTXx8C4D.js +26 -0
- package/dist/assets/{NoDataTable-C6Q2Anpz-BqTI2GFx.js → NoDataTable-4vPXmPYF-MAxQ6k5D.js} +1 -1
- package/dist/assets/{NotFoundPage-4mPhXD5--pWqZwF3K.js → NotFoundPage-BLWPU1wU-BDFevjLh.js} +4 -4
- package/dist/assets/NotFoundScreen-BOQb1xUE.js +1 -0
- package/dist/assets/NotificationRoutes-CHyP48D4.js +1 -0
- package/dist/assets/{NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js → NotificationSettingsPage-CDiDLX3A-CdiPU3_w.js} +30 -30
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-C0GWEb8S.js +1 -0
- package/dist/assets/{NotificationsPage-D41h0mS6-lOcsglza.js → NotificationsPage-Ccl7Dny1-CsnU2sZr.js} +18 -18
- package/dist/assets/{OpExByVendorPage-BV_uJSCh-ClxLsbjb.js → OpExByVendorPage-spd-nKV4-Cz37eGG7.js} +9 -9
- package/dist/assets/OverlayContainerPage-BG9y5C0t-DvO1fY_N.js +11 -0
- package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-C0webWAA.js → PandLWithForecastPage-TSoe4Z7F-xn1jaFoi.js} +11 -11
- package/dist/assets/PandLWithForecastRoutes-DWeIYgqG.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-BDBHBe3a.js} +10 -10
- package/dist/assets/{PeoplePage-DcGqWtAP-kL10xLdE.js → PeoplePage-b5_I0qOw-lWi2XLJ6.js} +16 -16
- package/dist/assets/PeopleRoutes-D96ZRShY.js +22 -0
- package/dist/assets/PerformanceRoutes-w_Iip8ae.js +1 -0
- package/dist/assets/{Preview-Bd0e5eLk.js → Preview-C2zvk1tu.js} +1 -1
- package/dist/assets/{ProductsCarousel-C9JoJQeH-y7_emSya.js → ProductsCarousel-C3M0ocdF-2raBZnNq.js} +3 -3
- package/dist/assets/{PromoBaseCards-mFk7SsOr-B_0Pg0f0.js → PromoBaseCards-BOGJI2ws-Cm4e0wPQ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js → QBOConnectionDialog-CmpnnuzP-BhhJabU7.js} +4 -4
- package/dist/assets/{QBOConnectionScreen-1Q56jIZw.js → QBOConnectionScreen-CCeXLrlB.js} +1 -1
- package/dist/assets/{QBOSetupSection-C_fqHza_-B72ZoKWs.js → QBOSetupSection-DjnN9dgv-6umyaC6d.js} +14 -14
- package/dist/assets/ReferralListScreen-DY8vZLmY.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-kgV17rI7.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-Bjrjwfbm.js} +2 -2
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CrQlcAIE.js +1 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js → ReimbursementApprovalRulesPage-BsCTIqUJ-CQyWyznw.js} +5 -5
- package/dist/assets/{ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js → ReimbursementDetailPage-BbyxE2uL-DAWO6MN3.js} +16 -16
- package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js → ReimbursementPromoPage-CyEgwqcf-D5kNu4r7.js} +10 -10
- package/dist/assets/{ReimbursementRoutes-RM0BTfix.js → ReimbursementRoutes-9PVCls-1.js} +3 -3
- package/dist/assets/{ReimbursementSetUpPage-D450RVsP-XThkQYrn.js → ReimbursementSetUpPage-RETPkEQd-zKPq6P2O.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Cp5RXmHi.js} +1 -1
- package/dist/assets/{ReloadCard-D5cvzWxe-BiXLC8Nt.js → ReloadCard-Bdoo0XiI-CgAT4eqC.js} +4 -4
- package/dist/assets/{ReportTableViewSelector-Ig41fOPb-DWudlBCf.js → ReportTableViewSelector-Bc1K7mU_-CRH7B2Xe.js} +9 -9
- package/dist/assets/{ReportsPage-CRAVAUTO-B8oVNLjt.js → ReportsPage-BOTHMLWh-DYARtx-l.js} +7 -7
- package/dist/assets/ReportsRoutes-DAq_Kk7t.js +1 -0
- package/dist/assets/{RevenueChart-DtQu0KAn-8Nxk30mB.js → RevenueChart-DvyZ3aO7-D41DyD4f.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-vui4TqeA-BHywFcJg.js → ReviewDetailsPage-BIMg1n2e-w51F2KtJ.js} +19 -19
- package/dist/assets/{ReviewOverlay-CUnL7H-a-C2Hax1dX.js → ReviewOverlay-CxwoiOLC-C8uqNFMN.js} +9 -9
- package/dist/assets/RewardsRoutes-2CDMw_SM.js +1 -0
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-zYFjvA-a.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DjOTIJE4.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js → ScheduleDetailsPage-5FWpLRtd-DdkQQcuL.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js → ScheduleSequenceTable-R3-PsXES-F_YuqAKO.js} +8 -8
- package/dist/assets/{ScreenRoutes-Ckyy2m-9.js → ScreenRoutes-D-VUXgUA.js} +2 -2
- package/dist/assets/{SetUpAccountSection-DYRWWXcL-BJMCbqBu.js → SetUpAccountSection-CctbMmoK-BIwzDeUn.js} +16 -16
- package/dist/assets/{SettingsRoutes-HPPA3EWU.js → SettingsRoutes-BCFW0mUs.js} +7 -7
- package/dist/assets/{SetupPagesScreen-Cz2ybo_2.js → SetupPagesScreen-D_H5m3yT.js} +6 -6
- package/dist/assets/{SignIn-CUJkZb3S-Cj2EgQsz.js → SignIn-CmgmnRm4-BefvH7_D.js} +16 -16
- package/dist/assets/{SignInScreen-BSE9oghj.js → SignInScreen-DNDiNfUZ.js} +1 -1
- package/dist/assets/SignOutScreen-CGgsrBqm.js +9 -0
- package/dist/assets/{SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js → SpendManagementListViewPage-CFUxCqkU-DWVJ8T34.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js → SpendManagementPerTabPage-C-kqNTci-61EpQHHf.js} +55 -55
- package/dist/assets/{SpendManagementSection-DKZNTYXT-D04hpJmz.js → SpendManagementSection-CIz4nE_w-CLtvB3Jo.js} +24 -24
- package/dist/assets/{StatementItem-Dyt5Q0eR-jB2YMdu5.js → StatementItem-vVtoBN2w-CGfe2rf-.js} +3 -3
- package/dist/assets/StatementsPage-As5WOnMR-C07ZcwWR.js +58 -0
- package/dist/assets/{StatusSwitcher-BfQ9VbBH-C2uXiIL4.js → StatusSwitcher-Bv-ozN6U-BMGDezKv.js} +4 -4
- package/dist/assets/{SubTabSwitcher-CzGiuhk3-C7cKUv_v.js → SubTabSwitcher-D7QeM6nb-C5vo1QLg.js} +3 -3
- package/dist/assets/SuccessAnimation-hijccO_0-CXGCZdn9.js +13 -0
- package/dist/assets/SummaryCard-C2qoTsAY-LkZgmc3l.js +1 -0
- package/dist/assets/{TaskDetailPage-CyZxZdJB-DrITidSC.js → TaskDetailPage-QMk4DTDK-DuNonnMy.js} +39 -39
- package/dist/assets/TaskListScreen-DXCPcaMg.js +9 -0
- package/dist/assets/{TaskManagementPage-ucVAdv7x-Msj3UnnC.js → TaskManagementPage-BJwp32Ph-D-u68mRD.js} +64 -64
- package/dist/assets/TaskRoutes-Biii2LFo.js +9 -0
- package/dist/assets/{TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js → TimeRangeSwitcher-D00bDDhP-BG1zi2IK.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-DfqszobX.js → TimeframeSwitcher-DA99HdHt-BQziHQmj.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js → TimeframeSwitcherWithToggle-DyggDIQj-BfhUUfrK.js} +2 -2
- package/dist/assets/{TopExCard-D2PRxvFc-3B8t-gu0.js → TopExCard-Z1WabZ8c-CBwSMJxd.js} +6 -6
- package/dist/assets/{TopExDetailPage-C0uHdU7N-CImodBfZ.js → TopExDetailPage-CzHG4f9E-gwAj-hq_.js} +18 -18
- package/dist/assets/{TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js → TransactionActivityLogPage-CGKnjNfU-BApvDmwN.js} +1 -1
- package/dist/assets/TransactionDetailPage-1-mLOWSz-rzQ235mE.js +903 -0
- package/dist/assets/TransactionDetailRoutes-C36yIgf5.js +1 -0
- package/dist/assets/TransactionDetailScreen-B9QxqSWW.js +5 -0
- package/dist/assets/TransactionList-BB-xoIGm-Cfa3U35Q.js +153 -0
- package/dist/assets/{TransactionListBig-BrDWayQS-BY28Hg37.js → TransactionListBig-C5Sf5Xh--ILOBUs5F.js} +14 -14
- package/dist/assets/TransactionListPage-Cj7h1Ros-C0trpcRO.js +35 -0
- package/dist/assets/TransactionListRoutes-DYDLTelW.js +1 -0
- package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js → TransactionVendorDetailPage-SsrSOk3O-DvVZeIE6.js} +13 -13
- package/dist/assets/{TransferDrawerPage-DfFm-1-3-BhX0O4LO.js → TransferDrawerPage-BvKZ7vHF-gusMX693.js} +21 -21
- package/dist/assets/{TreasuryOverviewPage-CKSanlUG-CXaeORdV.js → TreasuryOverviewPage-DwvjMR4_-v_PwtYfB.js} +15 -15
- package/dist/assets/{TreasuryPromoPage-Dyip3H10-C2tUOOp5.js → TreasuryPromoPage-CtTFvSQW-CBUcln_7.js} +14 -14
- package/dist/assets/TreasuryRoutes-BL7M49IT.js +45 -0
- package/dist/assets/TreasuryStatementsPage-Catz8shX-B10cgIs5.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js → TreasuryTaxLetterPage-D8hzCL5o-8bU6d1vy.js} +4 -4
- package/dist/assets/TrendChart-Bnp4Pcdf-CsoTufL2.js +16 -0
- package/dist/assets/{TrendWithTransactions-It4KDov3-DY_vu1lx.js → TrendWithTransactions-3D1FvM8G-Dwn_v3ES.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js → UncategorizedAccountsMappingPage-DbyY-dYB-DJ-xU1nq.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-gVgsk2ji-D4-73jRv.js → UnitIntegrationPage-CTzme1te-Kzmir-JV.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-vi85vqk-.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js → Vendor2FAPopup-D0zYKkIv-Corqbsks.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DWmocppw.js +1 -0
- package/dist/assets/{VendorDetailPage-jci1LqX3-BHXhYJF0.js → VendorDetailPage-Br9wIOnI-D1eJIjzb.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BpbupYob.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js → VendorFiling1099EditablePage-himC7iD3-DuTr9_9d.js} +24 -24
- package/dist/assets/{VendorFirstReviewPage-CafakxA1-DGimiBs4.js → VendorFirstReviewPage-BbknTCBD-DB1g9Qot.js} +15 -15
- package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js → VendorInternationalWireDetailsPage-CS595Xgc-CmEESHX6.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-D43LaVfJ.js +1 -0
- package/dist/assets/{VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js → VendorsAccountsSection-CgSJu8wq-CW2zmnnP.js} +4 -4
- package/dist/assets/{VendorsRoutes-n5RcX0Vf.js → VendorsRoutes-C4N6gRBp.js} +23 -23
- package/dist/assets/{VerifyDevice-DeHW4GAi-ejYUh2le.js → VerifyDevice-Dvf0JsNN-CSGpw0v_.js} +2 -2
- package/dist/assets/VideoPlayer-VAzOGCDL-BYL37uoQ.js +77 -0
- package/dist/assets/{VideoPopup-CUP7ctgS-Cy6Bpggh.js → VideoPopup-BqvZ-XIh-DBw1PWZ3.js} +5 -5
- package/dist/assets/WiseConfirmationScreen-DNU9Mqxk.js +12 -0
- package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js → ZeniAccountDetailPage-GcwTJdB8-_6oIn_wc.js} +19 -19
- package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js → ZeniAccountListViewPage-CdwO0Duy-G5U6kbnQ.js} +35 -35
- package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js → ZeniAccountNavBarPieces-BrSIfL36-CgdxCVoA.js} +5 -5
- package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js → ZeniAccountPromoPage-JrcedQYB-BtfY6t2a.js} +20 -20
- package/dist/assets/{ZeniAccountRoutes-BdqNU648.js → ZeniAccountRoutes-uUgaZh13.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js → ZeniAccountSetupPage-TKBfbgzJ-Ovrdcrt5.js} +1 -1
- package/dist/assets/ZeniAccountStatementScreen-CPFcfx6A.js +9 -0
- package/dist/assets/{ZeniAvatar-pjdoqfWE-DmYSRpHD.js → ZeniAvatar-Bzhq25CU-DO1x3yqH.js} +1 -1
- package/dist/assets/{ZeniCopyright-DDGvdmLF-CPeY3qcE.js → ZeniCopyright-DglqrTpl-iRqjfc19.js} +1 -1
- package/dist/assets/{ZeniDatePicker-K3F-G3-0-pGSyeWuf.js → ZeniDatePicker-BHXPxPnI-CRe89Wst.js} +6 -6
- package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js → ZeniTransferAmountSlider-BcaZZuAw-BeVI8Qc_.js} +2 -2
- package/dist/assets/{accountMappingHelper-CMy_dzCB.js → accountMappingHelper-BVO1DeGB.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DZDSR_90.js → add-to-wallet-DgdBD8_G-CV8RMwhX.js} +1 -1
- package/dist/assets/{analytics-Buyhprzd.js → analytics-CZ3wLx3P.js} +1 -1
- package/dist/assets/{analyticsHelper-D9xdJK4b-DkISjLhy.js → analyticsHelper-CAYdbjhS-CB8PHHr8.js} +1 -1
- package/dist/assets/{analyticsHelper-CTH_kB-0.js → analyticsHelper-RqmdZ4w4.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CxvC0Cnw.js → arrow-south-east-round-PEovUgvH-DB6pjtdO.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BXD0aAHO.js → auto-transfer-rule-mbafm5D3-CrxycPHV.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-tC3a4UX-.js → avatar-Dz7aEm3d-B1h__iIh.js} +1 -1
- package/dist/assets/{bank-letter-BOcVjN6J-B3HKnrvN.js → bank-letter-BOcVjN6J-B0RfZgcz.js} +1 -1
- package/dist/assets/{calculateSize-zPet_z9g-UKcDxIjM.js → calculateSize-B2w5JPEU-BqvYgtxt.js} +1 -1
- package/dist/assets/{chartTypes-Dq3hUz_T-DlStt0to.js → chartTypes-CD3vrBsI-4eICteeW.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-BFtrn8ev.js → clock-CJkylEKt-o4osYW2f.js} +1 -1
- package/dist/assets/common-BpxEACHl-SqfXrkK_.js +1 -0
- package/dist/assets/{commonDimensions-CGHIQ2To-BVJ-7SGP.js → commonDimensions-Oz1tdAcx-Cf4qEJmU.js} +1 -1
- package/dist/assets/{commonTypes-BAJPaPYg-qcmBeNCl.js → commonTypes-5tEXwrX4-F6mC0EfI.js} +1 -1
- package/dist/assets/{core-5sxMy3sZ.js → core-CVVdXRky.js} +1 -1
- package/dist/assets/{dash.all.min-CTYaOyx7.js → dash.all.min-C2vle8BQ.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BXr_Lgnt.js → decodeURIComponentSafe-Da8IsQO4.js} +1 -1
- package/dist/assets/{dnd-Cfx_ai1S.js → dnd-CcRW__D6.js} +3 -3
- package/dist/assets/{dollar-round-D18u7nlm-BAPPb_YV.js → dollar-round-D18u7nlm-BkHqkGHG.js} +1 -1
- package/dist/assets/{downloadPdf-BI2Y41h2-C3b-r1N_.js → downloadPdf-Dsuxeias-CPZEuUrl.js} +1 -1
- package/dist/assets/{empty-CDKH4CBD.js → empty-BHbH22vT.js} +1 -1
- package/dist/assets/{empty-DLdEFiEn.js → empty-M26y6UyA.js} +1 -1
- package/dist/assets/epic-CiCSO3K5.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-DR0oScp6.js → filter-cZIFUNvj-BeqNUW3e.js} +1 -1
- package/dist/assets/getLocaleForTenant-DBVI4ovb.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CLkhO8vB.js → gift-box-Cmt9OgIZ-CR0qdQnT.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXfLioW6.js → graphic-no-data-l-DU4J8fDt-CslJm2fU.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js → graphic-no-data-net-burn-l-CzmycA0m-Cj977U7E.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Cw8-rpU_.js → handshake-BPg58FML-tq0X0Kiz.js} +1 -1
- package/dist/assets/{helper-z5-P4a-y-DRvyDGbW.js → helper-Ckm10Uko-U81O1HXL.js} +1 -1
- package/dist/assets/{hyperlink-DQyCeXx2-DiF-LRfD.js → hyperlink-DQyCeXx2-D504LM2b.js} +1 -1
- package/dist/assets/{index-XrFKA72B.js → index-BZOQWoRX.js} +1 -1
- package/dist/assets/{index-BocbTmE1.js → index-BngCC-zG.js} +2513 -2513
- package/dist/assets/{index-a2iFhnhM.js → index-ClO_SXUU.js} +1 -1
- package/dist/assets/{index-Bsc8ZpcH.js → index-DiKwyzh3.js} +1 -1
- package/dist/assets/{index-DCFJ_6wy.js → index-jI4vB8VC.js} +1 -1
- package/dist/assets/{index-B6cTzWKI.js → index-uxYir9Bm.js} +1 -1
- package/dist/assets/{lexical-BAlvZZhY.js → lexical-DPtIv0jk.js} +1 -1
- package/dist/assets/{liveblocks-BsQBjN-0.js → liveblocks-CHs9GmLG.js} +17 -17
- package/dist/assets/{lottie-C2R6rGxS.js → lottie-D68Xb3aQ.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-cRyD83dc.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-C2AYKRBA.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js → mapSpacerToTreeNode-XgUp1xUb-VRJ6un-L.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-XT9mQqpQ.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-CGvd2Wmc.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-BVVmyoym.js +1 -0
- package/dist/assets/{media-player-BX2lrCiw.js → media-player-D-MhIu5T.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-C1UnGCa2.js → money-2cg1MuG4-DZxnWrWu.js} +1 -1
- package/dist/assets/{mui-C_CXevf3.js → mui-DyGc7Pg8.js} +3 -3
- package/dist/assets/{page-detail-CWX5S47F-DCvximFz.js → page-detail-CWX5S47F-CXX81aXy.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-BBMfUdRp.js → page-summary-D7_VQHwN-V_V9hbFl.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js → panelSelectedMixin-Cddsb26L-bdcPTs-R.js} +1 -1
- package/dist/assets/{pathToGoBack-D5dFRCuJ.js → pathToGoBack-CsNBJVc2.js} +1 -1
- package/dist/assets/pdf-BxqSCr4b.js +13 -0
- package/dist/assets/{pdf-lib-BLLlynNv.js → pdf-lib-jHogAi_2.js} +1 -1
- package/dist/assets/{plaid-Yyr3DBd8.js → plaid-xWfKHEqu.js} +1 -1
- package/dist/assets/{pusher-CQAuuZH-.js → pusher-pngVK7xY.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-HLL7c7Ix.js → radio-default-CiSgisfh-sLqGTxQv.js} +1 -1
- package/dist/assets/{react-CEO525cE.js → react-B3z4onjT.js} +1 -1
- package/dist/assets/{react-B9pn5zl_.js → react-BC4BTRLG.js} +1 -1
- package/dist/assets/{react-COI-5ihT.js → react-BElDOWJc.js} +1 -1
- package/dist/assets/{react-BFykbpKw.js → react-BuoJ-wtg.js} +1 -1
- package/dist/assets/{react-YbLjyGgM.js → react-CuUL9Ybl.js} +1 -1
- package/dist/assets/{react-D7RjW9MW.js → react-DpxbyLPn.js} +1 -1
- package/dist/assets/{react-BmJ9wc4M.js → react-DyZ9MM_3.js} +3 -3
- package/dist/assets/{react-BEZA9UfV.js → react-mv5GPJR4.js} +1 -1
- package/dist/assets/{recharts-CTWfsY-L.js → recharts-CMjB5mmq.js} +36 -36
- package/dist/assets/{routePaths-_EQ7HBkZ.js → routePaths-B2Ez8xiG.js} +1 -1
- package/dist/assets/{sentry-DINNQYpi.js → sentry-CHlUi953.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DFaW8QSC.js → shield-DOlUxcFf-u1WG480f.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-05QrBanM.js → spend-limit-D6SyboD4-DKcfJ6au.js} +1 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-DBx2vR3D.js +1 -0
- package/dist/assets/{toChartData-BUf5HHim-BMyIU8Hn.js → toChartData-DUL6vnzJ-CHvhrhF4.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-kO6lyet9.js → transaction-placeholder-CpOwZAMG-BRNI97Lv.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-CAOnjxt9.js → undo-b_3XZ5CX-CHRencVP.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-fA9hPtxv.js → unlock-BPWn2I5L-BfuVrsIJ.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js → upload-reimbursement-receipt-O2N8vcO7-vYnAE0FP.js} +1 -1
- package/dist/assets/{uploadAttachment-DJA30WSD-Mme28mRP.js → uploadAttachment-Ck4wivBR-D3iFmRh8.js} +18 -18
- package/dist/assets/{uploadReceipts-CqDftTRt-DnJMDyN6.js → uploadReceipts-CIgkuVpu-DQDaRUPe.js} +1 -1
- package/dist/assets/{url-dGBmezhj.js → url-7B3Yv5Zc.js} +1 -1
- package/dist/assets/{url-BnrMVJye.js → url-CDjIygfF.js} +1 -1
- package/dist/assets/{useDeviceId-Dhw-GVYT.js → useDeviceId-CPhY1yO5.js} +1 -1
- package/dist/assets/useInitialThreadRequest-D3BmEojQ.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-CI59nlOM.js → useLongPress-GCK2COYQ-C-ro8Pxu.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Bi23t2Q-.js → usp-line-BBd1wKwW-BHKdiO38.js} +1 -1
- package/dist/assets/{utils-DmE88LS_.js → utils-BpkJZQMI.js} +12 -12
- package/dist/assets/withTransactionSidePanel-D4jXMzEn.js +8 -0
- package/dist/assets/{zeni-epic-state-a7Sj5mjO.js → zeni-epic-state-D8D2Skiq.js} +6 -6
- package/dist/assets/{zeni-icon-only-COM3FcNM.js → zeni-icon-only-BUIVMYdQ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-B8upbXj9-Cm42EUIq.js +0 -18
- package/dist/assets/AccountInfoPageContent-CKpeDot5-CwoUlvIm.js +0 -149
- package/dist/assets/AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js +0 -6
- package/dist/assets/AddressRoutes-CO2FKDgK.js +0 -1
- package/dist/assets/AddressScreen-DsuZFaVf.js +0 -9
- package/dist/assets/AgingReportsPage-D9I9afnB-Df3hrLUY.js +0 -79
- package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js +0 -47
- package/dist/assets/ArAgingChart-Tcu0Lja_-BWNKgMZE.js +0 -24
- package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js +0 -38
- package/dist/assets/BillPayApprovalRoutes-5Y0msu-c.js +0 -1
- package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js +0 -206
- package/dist/assets/CompanyPassportScreen-Dl29U7F0.js +0 -1
- package/dist/assets/CompleteProfile-CsbsHQ0p-DmLd2177.js +0 -52
- package/dist/assets/ConfettiBurst-duD341Gp-CKS6HfNq.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CtmFWvaS.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-DtvN_x2S.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-C_QLwzau.js +0 -23
- package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js +0 -12
- package/dist/assets/DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js +0 -76
- package/dist/assets/DomesticWireDetailScreen-CV-2twy7.js +0 -18
- package/dist/assets/DrawerScreen-0WDRSJz6.js +0 -1
- package/dist/assets/EditPeoplePage-8DalSMWH-CybAz5BL.js +0 -55
- package/dist/assets/EntityDetailPage-fmWuxHTZ-zOCr7HwT.js +0 -18
- package/dist/assets/EntityDetailRoutes-r6uNQDsF.js +0 -1
- package/dist/assets/ExpenseAutomationPage-4LJefgNh-n1--5-UE.js +0 -3628
- package/dist/assets/ExpenseAutomationRoutes-Dd80KoVV.js +0 -20
- package/dist/assets/FeaturePreviewScreen-D2Pa-R10.js +0 -1
- package/dist/assets/InsightsCardStack-uJWMkIZL-BDZTXUwm.js +0 -79
- package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js +0 -65
- package/dist/assets/InvitePeoplePage-BT_YVCP4-CQRb2c-r.js +0 -12
- package/dist/assets/LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js +0 -45
- package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js +0 -1
- package/dist/assets/MagicLinkRoutes-DAnRUF47.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BRdR8FPq.js +0 -12
- package/dist/assets/MailingDetailsSection-9_XLl4bT-Bq5v10Od.js +0 -21
- package/dist/assets/MobileAppDrawer-DXy0Oi_h.js +0 -1
- package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js +0 -85
- package/dist/assets/NavigationDots-DCpslVnm-D-4SKVAz.js +0 -15
- package/dist/assets/NoDataChart-9-bhq204-BNHp8Nld.js +0 -26
- package/dist/assets/NotFoundScreen-MU1vvTl3.js +0 -1
- package/dist/assets/NotificationRoutes-CiTIiIjp.js +0 -1
- package/dist/assets/NotificationsListConfig-CylnViXd-DEcj9I_Q.js +0 -1
- package/dist/assets/OverlayContainerPage-CkUYOhlh-C1amAlX0.js +0 -11
- package/dist/assets/PandLWithForecastRoutes-t6sqNQ0M.js +0 -1
- package/dist/assets/PeopleRoutes-DvMa0FHX.js +0 -22
- package/dist/assets/PerformanceRoutes-C97G2NlX.js +0 -1
- package/dist/assets/ReferralListScreen-DJHg0qdR.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-5hvNi1ri.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CE15OHBL.js +0 -1
- package/dist/assets/ReportsRoutes-yGE_MThE.js +0 -1
- package/dist/assets/RewardsRoutes-BLdquuw-.js +0 -1
- package/dist/assets/RoleWithToolTip-x2rnvWn9-CndfBCzZ.js +0 -22
- package/dist/assets/SignOutScreen-CDL-h93X.js +0 -9
- package/dist/assets/StatementsPage-CbtnJM5y-y3-8Ovdn.js +0 -58
- package/dist/assets/SuccessAnimation-DA3343II-B6vDBJ0_.js +0 -13
- package/dist/assets/SummaryCard-D61xzK3a-CfR23TFg.js +0 -1
- package/dist/assets/TaskListScreen-DwAEl1NC.js +0 -9
- package/dist/assets/TaskRoutes-Bz1uRNCx.js +0 -9
- package/dist/assets/TransactionDetailPage-D-NR_yZG-CxUKWZX4.js +0 -921
- package/dist/assets/TransactionDetailRoutes-CpDSsFwB.js +0 -1
- package/dist/assets/TransactionDetailScreen-DfuoY_gg.js +0 -5
- package/dist/assets/TransactionList-f6yB-byH-FETk5Iif.js +0 -157
- package/dist/assets/TransactionListPage-C-Z62y2d-DONuCLTJ.js +0 -35
- package/dist/assets/TransactionListRoutes-Bw5edFOJ.js +0 -1
- package/dist/assets/TreasuryRoutes-j5E27301.js +0 -45
- package/dist/assets/TreasuryStatementsPage-mljf2Van-DcI9l-or.js +0 -58
- package/dist/assets/TrendChart-fFlHCvNx-QKskVgw6.js +0 -16
- package/dist/assets/VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js +0 -1
- package/dist/assets/VideoPlayer-DxIfGrPu-C3cW7OOT.js +0 -77
- package/dist/assets/WiseConfirmationScreen-CJyMiRdY.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-DVjRkXeL.js +0 -9
- package/dist/assets/common-kiEGPQ33-BvLj55nP.js +0 -1
- package/dist/assets/epic-Bn4m6PJ6.js +0 -2
- package/dist/assets/getLocaleForTenant-BPL6tSgt.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js +0 -1
- package/dist/assets/pdf-DyB_VHQx.js +0 -13
- package/dist/assets/toCOABalancesWithID-P7keEtAg-CVzjqCh4.js +0 -1
- package/dist/assets/useInitialThreadRequest-GWflkp6K.js +0 -1
- package/dist/assets/withTransactionSidePanel-D4o5a7Hq.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{V as l,
|
|
1
|
+
import{V as l,f0 as Qt,e as Ye,y as Wt,T as Yt,c8 as ye,a7 as Me,J as ft,S as Qe,a_ as Gt,o as ce,A as Zt,m as Y,a9 as Jt,ha as Xt,fC as en,f1 as gt,eu as Ot,O as Ge,ev as tn,x as fe,fF as ge,cc as nn,l as an,hb as ht,W as St,ck as on,fE as sn}from"./index-BngCC-zG.js";import{a as m}from"./sentry-CHlUi953.js";import{n as x,k as xt}from"./mui-DyGc7Pg8.js";import{bQ as B,FH as rn,FI as cn}from"./zeni-epic-state-D8D2Skiq.js";import{r as Ct,t as ln}from"./PaymentAccountSetupBillingAddressSection-9ma8SpIa-BDBHBe3a.js";import{b as bt,f as dn,a as It}from"./CustomerOnboardingDetailPageSkeleton-DYuiWn8s-Cjt3eU6d.js";import{z as pn,r as un}from"./CompanyOfficerDetailsSection-CrOIN4IW-wL1QY22J.js";import{t as mn}from"./QBOSetupSection-DjnN9dgv-6umyaC6d.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-5tEXwrX4-F6mC0EfI.js";import"./SetUpAccountSection-CctbMmoK-BIwzDeUn.js";import"./helper-Ckm10Uko-U81O1HXL.js";import"./LabeledAddressValueField-BgWwd5Gw-BjdQu4oY.js";import"./LabeledCountryMultiSelectField-BYYjzwUG-Dh1nhUsB.js";import"./LabeledCreatableSingleSelectField-CISYMojq-C0CA90PE.js";import"./LabeledDocumentField-C_bcFxdY-rxfuitkN.js";import"./LabeledNameField-mxSNQk3k-DSUzbE3j.js";import"./avatar-Dz7aEm3d-B1h__iIh.js";import"./QBOConnectionDialog-CmpnnuzP-BhhJabU7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new a.Error().stack;C&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[C]="1242df8c-759c-4c20-bcc0-543fda310934",a._sentryDebugIdIdentifier="sentry-dbid-1242df8c-759c-4c20-bcc0-543fda310934")}catch{}})();const yn=({companyView:a,companyOfficerLocalData:C,allNationalityCountries:r,isVerificationPopupOpen:g,setIsVerificationPopupOpen:_,verifiedPhoneNumber:w,onPhoneVerified:h,...k})=>{const f=Ye(),T=a?.companyOfficers.slice(0,10).sort((I,te)=>I.user.createTime?.isAfter(te.user.createTime)===!0?1:-1)?.map(I=>I.user),{company_officer:d}=Ge.getLocalizedStrings().customerOnboardingPage.sections,{title:N}=d,V=a?.company.company.featuresActivationInfo.connectedAccountProvider;return l.jsx(fn,{children:l.jsx(un,{companyOfficerData:C,allOfficers:T??[],allNationalityCountries:r,sectionHeader:N,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:V,showInfoTooltip:f!=="small",showCompletedIcon:f==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:w,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:_,...k})})},fn=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
`,gn=({allNationalityCountries:a,fileProps:C,companyDetails:r,companyIndustries:g,sectionId:_,isCompleted:w,isDisabled:h,style:k,onCompanyAddressClick:f,onRegisteredAddressClick:T})=>{const d=Ye(),{company_details:
|
|
5
|
+
`,gn=({allNationalityCountries:a,fileProps:C,companyDetails:r,companyIndustries:g,sectionId:_,isCompleted:w,isDisabled:h,style:k,onCompanyAddressClick:f,onRegisteredAddressClick:T})=>{const d=Ye(),{company_details:N}=Ge.getLocalizedStrings().customerOnboardingPage.sections,{title:V}=N;return l.jsx(hn,{children:l.jsx(pn,{fileProps:C,companyDetails:r,sectionId:_,isDisabled:h,style:k,sectionHeader:V,productType:"onboarding",showInfoTooltip:d!=="small",showCompletedIcon:d==="small",isCompleted:w,allIndustries:g,allNationalityCountries:a,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","stateOfIncorporation","countriesOfOperations","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:f,onRegisteredAddressClick:T})})},hn=x.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@ import{V as l,fa as Ht,X as Ye,y as Wt,P as Yt,c8 as ye,a7 as Qe,K as ft,S as He
|
|
|
10
10
|
display: flex;
|
|
11
11
|
`,Cn=x.input`
|
|
12
12
|
display: none;
|
|
13
|
-
`,bn=({isValid:a,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=nn();return l.jsxs(Sn,{children:[l.jsx(Cn,{type:"hidden",...g(`${C}.connected`,{validate:_=>_==="true"}),value:a?"true":"false"}),l.jsx(mn,{isValid:a,...r})]})},R="companyDetails",b="companyOfficer",ee="onboardingPaymentAccountSetupSection",Ot="customerOnboardingDetailPage",y="onboardingSubscriptionBillingAddress",he="onboardingQboConnection",Se={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Y[5],Y[9],112),subTitlePaddingTop:new fe(Y[3],Y[3]),subTitlePaddingBottom:new fe(Y[3],Y[3])},In=a=>`${a}_form`,le=Ze.getLocalizedStrings(),On=({fileProps:a,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:_,connectedAccountProvider:w,analytics:h,cardPaymentView:k,stripeKey:f,googleAPIKey:T,handleCreateCardSetupIntent:d,handleConfirmCardSetupIntent:D,updateCardPaymentModalState:V,handleAddCardPaymentSource:I,resetCardPaymentViewState:te,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Ce,onFormErrorsChange:F,..._e})=>{const U=Ye(),Ne=m.useRef(null),De=m.useRef(null),Z=m.useRef(null),Ve=m.useRef(null),[be,z]=m.useState(!1),[K,q]=m.useState("next"),[E,Ie]=m.useState(!1),[de,Oe]=m.useState(!1),[ne,G]=m.useState(null),{onAddressClick:ae,onCompanyDetailsChanged:A,onCompanyOfficerUpdated:Ae,onFetchLinkTokenClick:pe,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionClick:ie,onEstablishConnectionSuccess:N,onDeleteFile:Ge,onEditFileName:Xe,updateFilesEntity:Je,onGetOtp:wt,onSkipSetupClick:Te,onUpdateCustomerView:Fe,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:_t,updateQBOPopupState:Nt,onUpdateStep:$e,onAddressEditHandler:Dt}=_e,Vt=Wt(),s=Yt({mode:"onSubmit",reValidateMode:"onChange",defaultValues:We(g,g.allNationalityCountries),values:We(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),Q=m.useCallback(()=>{const e=[];return(s.getFieldState(ee).error!=null||s.getFieldState(y).error!=null)&&e.push("link_payment_account"),s.getFieldState(he).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=Q();F?.(e)},[Q,F]),m.useEffect(()=>{const e=s.watch((t,{name:n,type:o})=>{n!=null&&(o==="change"||o==="blur")&&ye(()=>{const c=Q();F?.(c)})});return()=>e.unsubscribe()},[s,Q,F]);const et=e=>{at(e)},{companyView:se,companyDetailsLocalData:p,companyOfficerLocalData:L,currentStep:i,completedSteps:tt,saveStatus:v,allSteps:S,allRequiredStepsCompleted:Ee,paymentAccount:H,paymentAccountStatus:nt,externalConnections:Le,plaidConnectionDetails:je,uiState:Be,allNationalityCountries:Pe,pendingSaveDetails:{companyDetails:At,officer:Tt},subscriptionBillingAddress:X}=g,xe=m.useRef(""),Ft=e=>{xe.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(o=>o?.isSelectedForVerification===!0)??0,n=t<0?0:t;s.clearErrors(`${b}.${n}.phone`)},at=e=>{e==null||ge(e)?wt(e):s.trigger(`${b}.${J}.phone`)},J=Object.values(L).findIndex(e=>e?.isSelectedForVerification===!0)??0,$=`Officer_${J<0?1:J+1}`,$t=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),Re=L[$]?.userId!=null?$t?.find(e=>e.user.userId===L[$]?.userId)?.address:null,ot=L[$]?.addressStatus?.addressToCreate,we=se?.companyAddress,it=p?.addressStatus?.addressToCreate,Ue=se?.registeredAddress,st=p?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:u}=le,{footer:Lt,steps:jt}=Et,{buttons:rt}=Lt,ct=jt[i],ze=S.length,re=Qe(v.fetchState),j=Qe(i),me=()=>{const e=Object.values(je).some(c=>c.fetchStatus.fetchState==="Completed"),t=H?.providerVerificationStatus?.code?.includes("verified")??!1,n=k.cardsList.length>0,o=k.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!H&&n||!n&&!H&&o};function lt(){if(s.getFieldState(y).error)return!1;const e=s.getValues(y),t=X?.street.join("").trim(),n=X?.city,o=X?.state,c=X?.country,O=X?.postalCode!=null&&X.postalCode||e.postalCode||u.strings.empty;return!!(t&&n&&o&&c&&O)}const dt=Qe(H?.providerVerificationStatus?.code);m.useEffect(()=>{dt==="pending_manual_verification"&&H?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,H?.providerVerificationStatus?.code,dt]),m.useEffect(()=>{const e=s.watch((t,{name:n})=>{n!=null&&t!=null&&ye(()=>(async(o,c)=>{if(o.includes(R))A?.(c[R]);else if(o.includes(b))Ae?.(c[b]);else if(o.includes(y)&&c[y]!=null){const O=s.getValues(`${y}`).country;let P=c[y];if(o.includes(`${y}.street`)&&c[y].street!=null){const{addressValue:W}=c[y].street,Me=Pt(W?.country);P={street:c[y].street??u.strings.empty,city:W?.locality??u.strings.empty,state:W?.administrativeAreaLevel1??u.strings.empty,country:Me,countryCode:W?.countryCode??u.strings.empty,postalCode:W?.postalCode??u.strings.empty,secondaryInfo:c[y].secondaryInfo,suite:c[y].suite},O.selectedOption!==Me.selectedOption&&(P={...P,country:Me})}else(o===`${y}.country`&&O.selectedOption!=null||O.selectedOption!=null&&o.includes(`${y}.street`)===!1)&&(P={...P,countryCode:tn(O.selectedOption)});Dt(P)}})(n,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{re==="In-Progress"&&v.fetchState==="Completed"&&(s.reset(We(g,Pe),{keepDirtyValues:!1}),j==="company_details"&&i==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Ce())},[s,g,re,v.fetchState,Pe,j,i,S,Ce]),m.useEffect(()=>{be&&re==="In-Progress"&&v.fetchState==="Completed"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},[re,be,v.fetchState,Te]),m.useEffect(()=>{ne?.shouldNavigate===!0&&re==="In-Progress"&&v.fetchState==="Completed"&&(G(null),M(ne.fromStep,ne.stepDirection,!0))},[ne,re,v.fetchState,M]),m.useLayoutEffect(()=>{j!=null&&j!==i&&(S.indexOf(j)===S.indexOf(i)-1||S.indexOf(j)===ze-1&&S.indexOf(i)===0?K!=="next"&&q("next"):(S.indexOf(j)-1===S.indexOf(i)||S.indexOf(j)===0&&S.indexOf(i)===ze-1)&&K!=="previous"&&q("previous"))},[S,i,j,K,ze]);const pt=()=>{const e=L[$];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(ot!=null?B(ot):null,Re!=null?B(Re):null),Rt=!He(it!=null?B(it):null,we!=null?B(we):null),Ut=!He(st!=null?B(st):null,Ue!=null?B(Ue):null),zt=s.getFieldState(R).isDirty||Rt||Ut||At,Ke=s.getFieldState(b).isDirty&&pt()||Bt||Tt,ut=s.getFieldState(`${y}`).isDirty,ke=p?.primaryContactLocalData,Kt=()=>{v.fetchState!=="In-Progress"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},mt=()=>{const e=L[$],t=e?.email??u.strings.empty,n=e?.phone??u.strings.empty,o=e?.ssn??u.strings.empty,c=e?.ownershipInCompany,O=J<0?0:J;let P=!0,W=!1;return t&&!(e?.firstName&&e?.lastName)&&(s.trigger([`${b}.${O}.name.firstName`,`${b}.${O}.name.lastName`],{shouldFocus:i==="company_officer"}),P=!1),(!t&&pt()||St.test(t)===!1)&&(s.trigger(`${b}.${O}.email`,{shouldFocus:i==="company_officer"}),P=!1),n&&ge(n)===!1&&(s.trigger(`${b}.${O}.phone`,{shouldFocus:i==="company_officer"}),P=!1),n&&ge(n)===!0&&w==="unit"&&(xe.current!==""&&n===xe.current||(W=!0,s.setError(`${b}.${O}.phone`,{type:"custom",message:le.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:i==="company_officer"}),P=!1)),c!=null&&c>100&&(s.trigger(`${b}.${O}.ownership`,{shouldFocus:i==="company_officer"}),P=!1),o&&sn.test(o)===!1&&(s.trigger(`${b}.${O}.ssn`,{shouldFocus:i==="company_officer"}),P=!1),{isValid:P,needsOtp:W,phoneNumber:n}},qt=()=>{const e=p?.website?.toString()??u.strings.empty,t=p?.phone??u.strings.empty,n=p?.taxIdOrEIN??u.strings.empty,o=p?.primaryContactLocalData?.email??u.strings.empty;let c=!0;return e&&ht.test(e)===!1&&(s.trigger(`${R}.companyWebsite`,{shouldFocus:i==="company_details"}),c=!1),ht.lastIndex=0,t&&ge(t)===!1&&(s.trigger(`${R}.companyPhone`,{shouldFocus:i==="company_details"}),c=!1),(!o||St.test(o)===!1)&&(s.trigger(`${R}.primaryContactEmail`,{shouldFocus:i==="company_details"}),c=!1),n&&on.test(n)===!1&&(s.trigger(`${R}.companyTaxId`,{shouldFocus:i==="company_details"}),c=!1),c},yt=()=>{const e=L[$];return{email:e?.email??u.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?B(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Mt=()=>{const e=p?.primaryContactLocalData;h.trackBusinessVerificationSave(yt(),{companyDescription:p?.companyDescription,legalName:p?.companyLegalName,phone:p?.phone,website:p?.website?.toString(),industry:p?.companyIndustry??u.strings.empty,formattedAddress:p?.addressStatus?.addressToCreate!=null?B(p?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Qt]=m.useState(!1);return l.jsxs(wn,{children:[l.jsxs(kn,{windowSize:U,children:[S.indexOf(i)>=0?l.jsx(Zt,{title:ct.sectionTitle,showBackButton:!1,backgroundColor:Vt.colors.grey4,style:{zIndex:4},showLeftSection:U!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:ce.sp0,paddingBottom:ce.sp0},source:"CustomerOnboardingDetailPage"}):l.jsx(vn,{windowSize:U,children:l.jsx(Nn,{windowSize:U,children:l.jsx(_n,{})})}),l.jsx(Gt,{...s,children:l.jsx(Vn,{id:In(Ot),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:w,paymentAccount:H,accountStatus:nt,plaidConnectionDetails:je,sectionId:ee,hasError:s.getFieldState(ee).error!=null||de&&!me(),isValid:me(),analytics:h,onFetchLinkTokenClick:pe,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionSuccess:N,cardPaymentView:k,resetCardPaymentViewState:te,updateCardPaymentModalState:V,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:y});let n=Ne;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:w,paymentAccount:H,accountStatus:nt,plaidConnectionDetails:je,subscriptionBillingAddressSectionId:y,sectionId:ee,hasError:s.getFieldState(ee).error!=null||de&&!me(),isValid:me(),analytics:h,onFetchLinkTokenClick:pe,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionSuccess:N,updateCardPaymentModalState:V,cardPaymentView:k,resetCardPaymentViewState:te,cardSetupInProgress:qe,googleAPIKey:T,subscriptionBillingAddress:X});break;case"qbo_connection":t=l.jsx(bn,{sectionId:he,hasError:s.getFieldState(he).error!=null,isAdmin:r,isValid:Le?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Le?.saveConnectionState,isQBOPopupOpen:Be.isQBOPopupOpen,handleOnConnectClick:_t,updateQBOPopupState:Nt}),n=De;break;case"company_officer":t=l.jsx(yn,{companyOfficerLocalData:L,allNationalityCountries:Pe,isCompleted:tt.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:a.filesEndPoint,authParams:a.authParams,isRefreshingViewInBackground:C,companyTitles:_,isVerificationPopupOpen:E,setIsVerificationPopupOpen:Ie,onGetOtp:et,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:o=>ae(o,Re?.addressId),updateFilesEntity:Je,onEditFileName:Xe,onDeleteFile:Ge,verifiedPhoneNumber:xe.current,onPhoneVerified:Ft,isDisabled:v.fetchState==="In-Progress"?"readonly":void 0,triggerError:at}),n=Ve;break;case"company_details":t=l.jsx(gn,{fileProps:{...a,onEditFileName:Xe,onDeleteFile:Ge,updateFilesEntity:Je},allNationalityCountries:Pe,sectionId:R,companyIndustries:g.companyIndustries,companyDetails:p,isDisabled:v.fetchState==="In-Progress"?"readonly":void 0,isCompleted:tt.includes("company_details"),onCompanyAddressClick:o=>{const c=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ae(o,we?.addressId==null&&c!=null?c:we?.addressId)},onRegisteredAddressClick:o=>ae(o,Ue?.addressId)}),n=Z}return l.jsxs(Dn,{ref:n,isVisible:i===e,includeAnimation:i==="link_payment_account"||i==="qbo_connection"?!Be.isQBOPopupOpen:i!=="company_officer"||!E,paddingBottom:e==="company_details"||e==="company_officer"?Y[6]:Y[0],stepAnimationDirection:K,children:[S.indexOf(i)>=0?l.jsx(An,{windowSize:U,children:ct.sectionSubTitle}):null,t]},e)})})}),l.jsx(Xt,{formId:`${Ot}`,style:{width:U==="small"?"auto":"100%",paddingTop:ce.sp2,paddingBottom:ce.sp2},primaryBtn:{onClick:()=>{switch(Oe(!1),i){case"link_payment_account":ut?setTimeout(()=>{const e=Q();F?.(e),lt()&&ut?((()=>{const t=s.getValues(y),n={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??u.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(n)})(),Fe($,!1,!0),G({fromStep:i,shouldNavigate:!0,stepDirection:"next"})):M(i,"next",!0)},200):M(i,"next",!0);break;case"qbo_connection":M(i,"next",!0);break;case"company_officer":if(Ke){const e=mt();if(ye(()=>{const t=Q();F?.(t)}),e.needsOtp&&e.phoneNumber&&ge(e.phoneNumber)){const t=s.formState.errors[b]?.[J<0?0:J],n=t?.phone,o=t!=null&&Object.keys(t).some(c=>c!=="phone"&&t[c]!=null);if(n!=null&&!o)return void et(e.phoneNumber)}e.isValid&&(Fe($,!1,!1),h.trackOnboardingCompanyOfficerSave(yt(),{legalName:p?.companyLegalName},(()=>{const t=L[$],n=[];return t?.firstName!=null&&t.firstName!==u.strings.empty&&n.push("first_name"),t?.lastName!=null&&t.lastName!==u.strings.empty&&n.push("last_name"),t?.birthday!=null&&n.push("dob"),t?.nationalityCountryCode!=null&&n.push("nationality"),t?.addressStatus?.addressToCreate!=null&&n.push("address"),t?.phone!=null&&t.phone!==u.strings.empty&&t.isPhoneVerified===!0&&n.push("phone"),t?.titleAtCompany!=null&&t.titleAtCompany!==u.strings.empty&&n.push("company_role"),t?.ownershipInCompany!=null&&n.push("ownership"),t?.ssn!=null&&t.ssn!==u.strings.empty&&n.push("ssn"),t?.documentTypeSelectedForVerification!=null&&n.push("document_type"),t?.fileIds!=null&&t.fileIds.length>0&&n.push("document_uploaded"),{completedFields:n,status:n.length===11?"complete":n.length>0?"partially_complete":"incomplete"}})()),G({fromStep:i,shouldNavigate:!0,stepDirection:"next"}))}else M(i,"next",!0);break;case"company_details":Oe(!0);{const e=!(lt()&&me()),t=!Le?.accounting[0]?.isValid&&S.includes("qbo_connection");if(e||t)return e&&(s.trigger(`${ee}`),s.trigger(`${y}`)),t&&s.trigger(he),ye(()=>{const n=Q();F?.(n)}),void(e?$e("link_payment_account"):t&&$e("qbo_connection"))}if(zt||Ke||!ke?.email){const e=qt(),t=Ke?mt():{isValid:!0};ye(()=>{const n=Q();F?.(n)}),e&&t.isValid?(Ee&&(z(!0),Mt()),Fe($,!Ee,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:p?.companyDescription,legalName:p?.companyLegalName,industry:p?.companyIndustry??u.strings.empty,incDate:p?.incDate?.toString(),phone:p?.phone,website:p?.website?.toString(),formattedAddress:p?.addressStatus?.addressToCreate!=null?B(p?.addressStatus?.addressToCreate):void 0},(()=>{const n=p,o=[];return n?.companyLegalName!=null&&o.push("legal_name"),n?.companyDescription!=null&&n?.companyDescription!==u.strings.empty&&o.push("company_description"),n?.addressStatus?.addressToCreate!=null&&o.push("company_address"),n?.registeredAddressStatus?.addressToCreate!=null&&o.push("registered_address"),n?.website!=null&&o.push("website"),n?.companyIndustry!=null&&n?.companyIndustry!==u.strings.empty&&o.push("industry"),n?.typeOfIncorporation!=null&&n?.typeOfIncorporation!==u.strings.empty&&o.push("type_of_incorporation"),n?.incDate!=null&&o.push("inc_date"),n?.phone!=null&&o.push("phone"),n?.primaryContactLocalData?.firstName!=null&&n?.primaryContactLocalData?.lastName!=null&&o.push("primary_contact_name"),n?.primaryContactLocalData?.email!=null&&o.push("primary_contact_email"),n?.taxIdOrEIN!=null&&o.push("tax_id_or_ein"),n?.companyFiles.find(c=>c.documentType==="certificate_of_incorporation")!=null&&o.push("certificate_of_incorporation"),n?.companyFiles.find(c=>c.documentType==="tax_ein")!=null&&o.push("ein"),{completedFields:o,status:o.length===14?"complete":o.length>0?"partially_complete":"incomplete"}})(),{firstName:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),G({fromStep:i,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Ee?Kt():M(i,"next",!0)}},label:i==="company_details"?u.footer.submit:rt.next,isLoading:v.fetchState==="In-Progress",isDisabled:v.fetchState==="In-Progress"},cancelBtn:{onClick:()=>{M(i,"previous",!0)},label:rt.back,isDisabled:v.fetchState==="In-Progress"||S.indexOf(i)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(ln,{handleConfirmCardSetupIntent:D,updateCardPaymentModalState:V,handleCreateCardSetupIntent:d,handleAddCardPaymentSource:I,cardPaymentView:k,stripeKey:f,isCardPaymentOpen:Be.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:qe,setCardSetupInProgress:Qt})]})},Pn=xt`
|
|
13
|
+
`,bn=({isValid:a,sectionId:C="onboardingQboConnection",...r})=>{const{register:g}=nn();return l.jsxs(Sn,{children:[l.jsx(Cn,{type:"hidden",...g(`${C}.connected`,{validate:_=>_==="true"}),value:a?"true":"false"}),l.jsx(mn,{isValid:a,...r})]})},z="companyDetails",b="companyOfficer",ee="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",y="onboardingSubscriptionBillingAddress",he="onboardingQboConnection",Se={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Y[5],Y[9],112),subTitlePaddingTop:new fe(Y[3],Y[3]),subTitlePaddingBottom:new fe(Y[3],Y[3])},In=a=>`${a}_form`,le=Ge.getLocalizedStrings(),Pn=({fileProps:a,isRefreshingViewInBackground:C,isAdmin:r,onboardingCustomerView:g,companyTitles:_,connectedAccountProvider:w,analytics:h,cardPaymentView:k,stripeKey:f,googleAPIKey:T,handleCreateCardSetupIntent:d,handleConfirmCardSetupIntent:N,updateCardPaymentModalState:V,handleAddCardPaymentSource:I,resetCardPaymentViewState:te,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Ce,onFormErrorsChange:F,..._e})=>{const U=Ye(),De=m.useRef(null),Ne=m.useRef(null),G=m.useRef(null),Ve=m.useRef(null),[be,R]=m.useState(!1),[q,K]=m.useState("next"),[E,Ie]=m.useState(!1),[de,Pe]=m.useState(!1),[ne,Z]=m.useState(null),{onAddressClick:ae,onCompanyDetailsChanged:A,onCompanyOfficerUpdated:Ae,onFetchLinkTokenClick:pe,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionClick:ie,onEstablishConnectionSuccess:D,onDeleteFile:Ze,onEditFileName:Je,updateFilesEntity:Xe,onGetOtp:wt,onSkipSetupClick:Te,onUpdateCustomerView:Fe,updateStepHandler:H,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:_t,updateQBOPopupState:Dt,onUpdateStep:$e,onAddressEditHandler:Nt}=_e,Vt=Wt(),s=Yt({mode:"onSubmit",reValidateMode:"onChange",defaultValues:We(g,g.allNationalityCountries),values:We(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),M=m.useCallback(()=>{const e=[];return(s.getFieldState(ee).error!=null||s.getFieldState(y).error!=null)&&e.push("link_payment_account"),s.getFieldState(he).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=M();F?.(e)},[M,F]),m.useEffect(()=>{const e=s.watch((t,{name:n,type:o})=>{n!=null&&(o==="change"||o==="blur")&&ye(()=>{const c=M();F?.(c)})});return()=>e.unsubscribe()},[s,M,F]);const et=e=>{at(e)},{companyView:se,companyDetailsLocalData:p,companyOfficerLocalData:L,currentStep:i,completedSteps:tt,saveStatus:v,allSteps:S,allRequiredStepsCompleted:Ee,paymentAccount:Q,paymentAccountStatus:nt,externalConnections:Le,plaidConnectionDetails:je,uiState:Be,allNationalityCountries:Oe,pendingSaveDetails:{companyDetails:At,officer:Tt},subscriptionBillingAddress:J}=g,xe=m.useRef(""),Ft=e=>{xe.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(o=>o?.isSelectedForVerification===!0)??0,n=t<0?0:t;s.clearErrors(`${b}.${n}.phone`)},at=e=>{e==null||ge(e)?wt(e):s.trigger(`${b}.${X}.phone`)},X=Object.values(L).findIndex(e=>e?.isSelectedForVerification===!0)??0,$=`Officer_${X<0?1:X+1}`,$t=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),ze=L[$]?.userId!=null?$t?.find(e=>e.user.userId===L[$]?.userId)?.address:null,ot=L[$]?.addressStatus?.addressToCreate,we=se?.companyAddress,it=p?.addressStatus?.addressToCreate,Ue=se?.registeredAddress,st=p?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:u}=le,{footer:Lt,steps:jt}=Et,{buttons:rt}=Lt,ct=jt[i],Re=S.length,re=Me(v.fetchState),j=Me(i),me=()=>{const e=Object.values(je).some(c=>c.fetchStatus.fetchState==="Completed"),t=Q?.providerVerificationStatus?.code?.includes("verified")??!1,n=k.cardsList.length>0,o=k.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!Q&&n||!n&&!Q&&o};function lt(){if(s.getFieldState(y).error)return!1;const e=s.getValues(y),t=J?.street.join("").trim(),n=J?.city,o=J?.state,c=J?.country,P=J?.postalCode!=null&&J.postalCode||e.postalCode||u.strings.empty;return!!(t&&n&&o&&c&&P)}const dt=Me(Q?.providerVerificationStatus?.code);m.useEffect(()=>{dt==="pending_manual_verification"&&Q?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,Q?.providerVerificationStatus?.code,dt]),m.useEffect(()=>{const e=s.watch((t,{name:n})=>{n!=null&&t!=null&&ye(()=>(async(o,c)=>{if(o.includes(z))A?.(c[z]);else if(o.includes(b))Ae?.(c[b]);else if(o.includes(y)&&c[y]!=null){const P=s.getValues(`${y}`).country;let O=c[y];if(o.includes(`${y}.street`)&&c[y].street!=null){const{addressValue:W}=c[y].street,He=Ot(W?.country);O={street:c[y].street??u.strings.empty,city:W?.locality??u.strings.empty,state:W?.administrativeAreaLevel1??u.strings.empty,country:He,countryCode:W?.countryCode??u.strings.empty,postalCode:W?.postalCode??u.strings.empty,secondaryInfo:c[y].secondaryInfo,suite:c[y].suite},P.selectedOption!==He.selectedOption&&(O={...O,country:He})}else(o===`${y}.country`&&P.selectedOption!=null||P.selectedOption!=null&&o.includes(`${y}.street`)===!1)&&(O={...O,countryCode:tn(P.selectedOption)});Nt(O)}})(n,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{re==="In-Progress"&&v.fetchState==="Completed"&&(s.reset(We(g,Oe),{keepDirtyValues:!1}),j==="company_details"&&i==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Ce())},[s,g,re,v.fetchState,Oe,j,i,S,Ce]),m.useEffect(()=>{be&&re==="In-Progress"&&v.fetchState==="Completed"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},[re,be,v.fetchState,Te]),m.useEffect(()=>{ne?.shouldNavigate===!0&&re==="In-Progress"&&v.fetchState==="Completed"&&(Z(null),H(ne.fromStep,ne.stepDirection,!0))},[ne,re,v.fetchState,H]),m.useLayoutEffect(()=>{j!=null&&j!==i&&(S.indexOf(j)===S.indexOf(i)-1||S.indexOf(j)===Re-1&&S.indexOf(i)===0?q!=="next"&&K("next"):(S.indexOf(j)-1===S.indexOf(i)||S.indexOf(j)===0&&S.indexOf(i)===Re-1)&&q!=="previous"&&K("previous"))},[S,i,j,q,Re]);const pt=()=>{const e=L[$];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=!Qe(ot!=null?B(ot):null,ze!=null?B(ze):null),zt=!Qe(it!=null?B(it):null,we!=null?B(we):null),Ut=!Qe(st!=null?B(st):null,Ue!=null?B(Ue):null),Rt=s.getFieldState(z).isDirty||zt||Ut||At,qe=s.getFieldState(b).isDirty&&pt()||Bt||Tt,ut=s.getFieldState(`${y}`).isDirty,ke=p?.primaryContactLocalData,qt=()=>{v.fetchState!=="In-Progress"&&(Te(),h.track(ft.Event.onboardingSkipAndSave))},mt=()=>{const e=L[$],t=e?.email??u.strings.empty,n=e?.phone??u.strings.empty,o=e?.ssn??u.strings.empty,c=e?.ownershipInCompany,P=X<0?0:X;let O=!0,W=!1;return t&&!(e?.firstName&&e?.lastName)&&(s.trigger([`${b}.${P}.name.firstName`,`${b}.${P}.name.lastName`],{shouldFocus:i==="company_officer"}),O=!1),(!t&&pt()||St.test(t)===!1)&&(s.trigger(`${b}.${P}.email`,{shouldFocus:i==="company_officer"}),O=!1),n&&ge(n)===!1&&(s.trigger(`${b}.${P}.phone`,{shouldFocus:i==="company_officer"}),O=!1),n&&ge(n)===!0&&w==="unit"&&(xe.current!==""&&n===xe.current||(W=!0,s.setError(`${b}.${P}.phone`,{type:"custom",message:le.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:i==="company_officer"}),O=!1)),c!=null&&c>100&&(s.trigger(`${b}.${P}.ownership`,{shouldFocus:i==="company_officer"}),O=!1),o&&sn.test(o)===!1&&(s.trigger(`${b}.${P}.ssn`,{shouldFocus:i==="company_officer"}),O=!1),{isValid:O,needsOtp:W,phoneNumber:n}},Kt=()=>{const e=p?.website?.toString()??u.strings.empty,t=p?.phone??u.strings.empty,n=p?.taxIdOrEIN??u.strings.empty,o=p?.primaryContactLocalData?.email??u.strings.empty;let c=!0;return e&&ht.test(e)===!1&&(s.trigger(`${z}.companyWebsite`,{shouldFocus:i==="company_details"}),c=!1),ht.lastIndex=0,t&&ge(t)===!1&&(s.trigger(`${z}.companyPhone`,{shouldFocus:i==="company_details"}),c=!1),(!o||St.test(o)===!1)&&(s.trigger(`${z}.primaryContactEmail`,{shouldFocus:i==="company_details"}),c=!1),n&&on.test(n)===!1&&(s.trigger(`${z}.companyTaxId`,{shouldFocus:i==="company_details"}),c=!1),c},yt=()=>{const e=L[$];return{email:e?.email??u.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?B(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Ht=()=>{const e=p?.primaryContactLocalData;h.trackBusinessVerificationSave(yt(),{companyDescription:p?.companyDescription,legalName:p?.companyLegalName,phone:p?.phone,website:p?.website?.toString(),industry:p?.companyIndustry??u.strings.empty,formattedAddress:p?.addressStatus?.addressToCreate!=null?B(p?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[Ke,Mt]=m.useState(!1);return l.jsxs(wn,{children:[l.jsxs(kn,{windowSize:U,children:[S.indexOf(i)>=0?l.jsx(Gt,{title:ct.sectionTitle,showBackButton:!1,backgroundColor:Vt.colors.grey4,style:{zIndex:4},showLeftSection:U!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:ce.sp0,paddingBottom:ce.sp0},source:"CustomerOnboardingDetailPage"}):l.jsx(vn,{windowSize:U,children:l.jsx(Dn,{windowSize:U,children:l.jsx(_n,{})})}),l.jsx(Zt,{...s,children:l.jsx(Vn,{id:In(Pt),children:S.map(e=>{let t;t=l.jsx(Ct,{connectedAccountProvider:w,paymentAccount:Q,accountStatus:nt,plaidConnectionDetails:je,sectionId:ee,hasError:s.getFieldState(ee).error!=null||de&&!me(),isValid:me(),analytics:h,onFetchLinkTokenClick:pe,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionSuccess:D,cardPaymentView:k,resetCardPaymentViewState:te,updateCardPaymentModalState:V,cardSetupInProgress:Ke,subscriptionBillingAddressSectionId:y});let n=De;switch(e){case"link_payment_account":t=l.jsx(Ct,{connectedAccountProvider:w,paymentAccount:Q,accountStatus:nt,plaidConnectionDetails:je,subscriptionBillingAddressSectionId:y,sectionId:ee,hasError:s.getFieldState(ee).error!=null||de&&!me(),isValid:me(),analytics:h,onFetchLinkTokenClick:pe,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:oe,onUpdatePaymentAccountLoginStatus:ue,onEstablishConnectionSuccess:D,updateCardPaymentModalState:V,cardPaymentView:k,resetCardPaymentViewState:te,cardSetupInProgress:Ke,googleAPIKey:T,subscriptionBillingAddress:J});break;case"qbo_connection":t=l.jsx(bn,{sectionId:he,hasError:s.getFieldState(he).error!=null,isAdmin:r,isValid:Le?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Le?.saveConnectionState,isQBOPopupOpen:Be.isQBOPopupOpen,handleOnConnectClick:_t,updateQBOPopupState:Dt}),n=Ne;break;case"company_officer":t=l.jsx(yn,{companyOfficerLocalData:L,allNationalityCountries:Oe,isCompleted:tt.includes("company_officer"),companyView:se,sectionId:b,filesEndPoint:a.filesEndPoint,authParams:a.authParams,isRefreshingViewInBackground:C,companyTitles:_,isVerificationPopupOpen:E,setIsVerificationPopupOpen:Ie,onGetOtp:et,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:o=>ae(o,ze?.addressId),updateFilesEntity:Xe,onEditFileName:Je,onDeleteFile:Ze,verifiedPhoneNumber:xe.current,onPhoneVerified:Ft,isDisabled:v.fetchState==="In-Progress"?"readonly":void 0,triggerError:at}),n=Ve;break;case"company_details":t=l.jsx(gn,{fileProps:{...a,onEditFileName:Je,onDeleteFile:Ze,updateFilesEntity:Xe},allNationalityCountries:Oe,sectionId:z,companyIndustries:g.companyIndustries,companyDetails:p,isDisabled:v.fetchState==="In-Progress"?"readonly":void 0,isCompleted:tt.includes("company_details"),onCompanyAddressClick:o=>{const c=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ae(o,we?.addressId==null&&c!=null?c:we?.addressId)},onRegisteredAddressClick:o=>ae(o,Ue?.addressId)}),n=G}return l.jsxs(Nn,{ref:n,isVisible:i===e,includeAnimation:i==="link_payment_account"||i==="qbo_connection"?!Be.isQBOPopupOpen:i!=="company_officer"||!E,paddingBottom:e==="company_details"||e==="company_officer"?Y[6]:Y[0],stepAnimationDirection:q,children:[S.indexOf(i)>=0?l.jsx(An,{windowSize:U,children:ct.sectionSubTitle}):null,t]},e)})})}),l.jsx(Jt,{formId:`${Pt}`,style:{width:U==="small"?"auto":"100%",paddingTop:ce.sp2,paddingBottom:ce.sp2},primaryBtn:{onClick:()=>{switch(Pe(!1),i){case"link_payment_account":ut?setTimeout(()=>{const e=M();F?.(e),lt()&&ut?((()=>{const t=s.getValues(y),n={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??u.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(n)})(),Fe($,!1,!0),Z({fromStep:i,shouldNavigate:!0,stepDirection:"next"})):H(i,"next",!0)},200):H(i,"next",!0);break;case"qbo_connection":H(i,"next",!0);break;case"company_officer":if(qe){const e=mt();if(ye(()=>{const t=M();F?.(t)}),e.needsOtp&&e.phoneNumber&&ge(e.phoneNumber)){const t=s.formState.errors[b]?.[X<0?0:X],n=t?.phone,o=t!=null&&Object.keys(t).some(c=>c!=="phone"&&t[c]!=null);if(n!=null&&!o)return void et(e.phoneNumber)}e.isValid&&(Fe($,!1,!1),h.trackOnboardingCompanyOfficerSave(yt(),{legalName:p?.companyLegalName},(()=>{const t=L[$],n=[];return t?.firstName!=null&&t.firstName!==u.strings.empty&&n.push("first_name"),t?.lastName!=null&&t.lastName!==u.strings.empty&&n.push("last_name"),t?.birthday!=null&&n.push("dob"),t?.nationalityCountryCode!=null&&n.push("nationality"),t?.addressStatus?.addressToCreate!=null&&n.push("address"),t?.phone!=null&&t.phone!==u.strings.empty&&t.isPhoneVerified===!0&&n.push("phone"),t?.titleAtCompany!=null&&t.titleAtCompany!==u.strings.empty&&n.push("company_role"),t?.ownershipInCompany!=null&&n.push("ownership"),t?.ssn!=null&&t.ssn!==u.strings.empty&&n.push("ssn"),t?.documentTypeSelectedForVerification!=null&&n.push("document_type"),t?.fileIds!=null&&t.fileIds.length>0&&n.push("document_uploaded"),{completedFields:n,status:n.length===11?"complete":n.length>0?"partially_complete":"incomplete"}})()),Z({fromStep:i,shouldNavigate:!0,stepDirection:"next"}))}else H(i,"next",!0);break;case"company_details":Pe(!0);{const e=!(lt()&&me()),t=!Le?.accounting[0]?.isValid&&S.includes("qbo_connection");if(e||t)return e&&(s.trigger(`${ee}`),s.trigger(`${y}`)),t&&s.trigger(he),ye(()=>{const n=M();F?.(n)}),void(e?$e("link_payment_account"):t&&$e("qbo_connection"))}if(Rt||qe||!ke?.email){const e=Kt(),t=qe?mt():{isValid:!0};ye(()=>{const n=M();F?.(n)}),e&&t.isValid?(Ee&&(R(!0),Ht()),Fe($,!Ee,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:p?.companyDescription,legalName:p?.companyLegalName,industry:p?.companyIndustry??u.strings.empty,incDate:p?.incDate?.toString(),phone:p?.phone,website:p?.website?.toString(),formattedAddress:p?.addressStatus?.addressToCreate!=null?B(p?.addressStatus?.addressToCreate):void 0},(()=>{const n=p,o=[];return n?.companyLegalName!=null&&o.push("legal_name"),n?.companyDescription!=null&&n?.companyDescription!==u.strings.empty&&o.push("company_description"),n?.addressStatus?.addressToCreate!=null&&o.push("company_address"),n?.registeredAddressStatus?.addressToCreate!=null&&o.push("registered_address"),n?.website!=null&&o.push("website"),n?.companyIndustry!=null&&n?.companyIndustry!==u.strings.empty&&o.push("industry"),n?.typeOfIncorporation!=null&&n?.typeOfIncorporation!==u.strings.empty&&o.push("type_of_incorporation"),n?.incDate!=null&&o.push("inc_date"),n?.phone!=null&&o.push("phone"),n?.primaryContactLocalData?.firstName!=null&&n?.primaryContactLocalData?.lastName!=null&&o.push("primary_contact_name"),n?.primaryContactLocalData?.email!=null&&o.push("primary_contact_email"),n?.taxIdOrEIN!=null&&o.push("tax_id_or_ein"),n?.companyFiles.find(c=>c.documentType==="certificate_of_incorporation")!=null&&o.push("certificate_of_incorporation"),n?.companyFiles.find(c=>c.documentType==="tax_ein")!=null&&o.push("ein"),{completedFields:o,status:o.length===14?"complete":o.length>0?"partially_complete":"incomplete"}})(),{firstName:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Z({fromStep:i,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Ee?qt():H(i,"next",!0)}},label:i==="company_details"?u.footer.submit:rt.next,isLoading:v.fetchState==="In-Progress",isDisabled:v.fetchState==="In-Progress"},cancelBtn:{onClick:()=>{H(i,"previous",!0)},label:rt.back,isDisabled:v.fetchState==="In-Progress"||S.indexOf(i)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),l.jsx(ln,{handleConfirmCardSetupIntent:N,updateCardPaymentModalState:V,handleCreateCardSetupIntent:d,handleAddCardPaymentSource:I,cardPaymentView:k,stripeKey:f,isCardPaymentOpen:Be.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Ke,setCardSetupInProgress:Mt})]})},On=xt`
|
|
14
14
|
from {
|
|
15
15
|
transform: translateY(100%);
|
|
16
16
|
opacity: 0;
|
|
@@ -63,18 +63,18 @@ import{V as l,fa as Ht,X as Ye,y as Wt,P as Yt,c8 as ye,a7 as Qe,K as ft,S as He
|
|
|
63
63
|
align-items: center;
|
|
64
64
|
text-align: center;
|
|
65
65
|
width: ${a=>`calc(100% - ${Se.topNavBarLeftRightSpace.valuePx(a.windowSize)})`};
|
|
66
|
-
`,_n=x.div``,
|
|
66
|
+
`,_n=x.div``,Dn=x.div`
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: space-between;
|
|
70
70
|
width: 100%;
|
|
71
71
|
min-height: ${a=>Se.topNavBarHeight.valuePx(a.windowSize)};
|
|
72
|
-
`,
|
|
72
|
+
`,Nn=x.div`
|
|
73
73
|
min-height: 100%;
|
|
74
74
|
display: ${a=>a.isVisible?"flex":"none"};
|
|
75
75
|
flex-direction: column;
|
|
76
76
|
padding-bottom: ${a=>a.paddingBottom+"px"};
|
|
77
|
-
animation-name: ${a=>a.stepAnimationDirection==="next"?
|
|
77
|
+
animation-name: ${a=>a.stepAnimationDirection==="next"?On:xn};
|
|
78
78
|
${a=>a.includeAnimation?`
|
|
79
79
|
animation-duration: 0.6s;
|
|
80
80
|
animation-delay: 0s;
|
|
@@ -94,7 +94,7 @@ import{V as l,fa as Ht,X as Ye,y as Wt,P as Yt,c8 as ye,a7 as Qe,K as ft,S as He
|
|
|
94
94
|
text-align: ${a=>a.windowSize==="small"?"initial":"center"};
|
|
95
95
|
width: 100%;
|
|
96
96
|
white-space: pre-line;
|
|
97
|
-
`,We=(a,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:_}=a,w=le.commonSetUp.businessVerification,h=le.companyPassport,k=_?.companyOfficers!=null&&_?.companyOfficers.length>0;return{[
|
|
97
|
+
`,We=(a,C)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:g,companyView:_}=a,w=le.commonSetUp.businessVerification,h=le.companyPassport,k=_?.companyOfficers!=null&&_?.companyOfficers.length>0;return{[z]:{companyDescription:r?.companyDescription??le.common.strings.empty,ein:r?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:r?.companyId,syncToken:r?.syncToken,companyLegalName:r?.companyLegalName,companyWebsite:r?.website?.toString()??le.common.strings.empty,companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:a.companyIndustries.map(f=>f.code)},companyIndustryType:{selectedOption:r?.companyIndustryType,allOptions:[...rn]},companySubIndustry:{selectedOption:r?.companySubIndustry,allOptions:cn(r?.companyIndustryType)},companyPhone:r?.phone,companyTaxId:r?.taxIdOrEIN,primaryContactName:{firstName:r?.primaryContactLocalData?.firstName,lastName:r?.primaryContactLocalData?.lastName},primaryContactEmail:r?.primaryContactLocalData?.email,primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[b]:Object.values(g).map((f,T)=>{const d=f,N=en(d?.documentTypeSelectedForVerification);return{userId:d?.userId,officerType:d?.officerType??`Officer_${T+1}`,name:{firstName:d?.firstName,lastName:d?.lastName},email:d?.email,fileIds:d?.fileIds??[],dob:d?.birthday?.toDate(),nationalityCountryCode:Ot(d?.nationalityCountryCode,C.map(V=>V.countryCode)),ssn:d?.ssn,role:{selectedOption:d?.titleAtCompany,allOptions:w.allTypesOfRoles},phone:d?.phone,ownership:d?.ownershipInCompany,officerAddress:d?.addressStatus?.addressToCreate,selectDocument:{front:gt(!0,d?.userFiles??[],N),back:gt(!1,d?.userFiles??[],N),selectDocumentType:N},isSelectedForVerification:!k&&T===0||(d?.isSelectedForVerification??!1),userVerificationStatus:d?.userVerificationStatus,syncToken:d?.syncToken,isPhoneVerified:d?.isPhoneVerified,otpChallenge:d?.otpChallenge}}),[ee]:{account:{allOptions:[],selectedOption:void 0}},[y]:Xt(y,a?.subscriptionBillingAddress)[y],[he]:{connected:a.externalConnections?.accounting[0]?.isValid??!1}}},la=a=>{const{onboardingCustomerView:C,cardPaymentView:r,signedInUser:g,currentTenant:_,isOnAddressPage:w,stripeKey:h,googleAPIKey:k,onUpdateStep:f,onZeniLogoClick:T,handleLogOutClick:d,handleCockpitClick:N,meetingUrl:V,analytics:I,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ve,handleFetchPaymentSources:Ce,updateCardPaymentModalState:F,resetCardPaymentViewState:_e,handleResetCardPaymentErrorStatuses:U,redirectToProductSuitePage:De,...Ne}=a,{allSteps:G,completedSteps:Ve,halfCompletedSteps:be,currentStep:R,fetchStatus:q}=C,K=m.useRef(R),E=m.useRef(G),[Ie,de]=m.useState(!1),[Pe,ne]=m.useState([]),Z={allSteps:G,isOnAddressPage:w,completedSteps:Ve,halfCompletedSteps:be,errorSteps:Pe,currentStep:R,fetchStatus:q,signedInUser:g,currentTenant:_,onUpdateStep:A=>{f(A)},onZeniLogoClick:T,handleLogOutClick:d,handleCockpitClick:N,setIsStepClicked:de};m.useEffect(()=>{if(K.current!==R){const A=K.current;Ie===!0&&(I?.trackOnboardingCurrentStep(R,A),de(!1)),K.current=R}},[R,Ie,I]),m.useEffect(()=>{G.length!==E.current.length&&(E.current=G)},[G]);const ae=q.fetchState==="In-Progress"||q.fetchState==="Not-Started";return l.jsx(Tn,{isOnAddressPage:w,children:w?l.jsx(bt,{...Z}):l.jsxs(Fn,{children:[l.jsx(bt,{...Z}),ae?l.jsx(dn,{isNoStepsPage:!1}):l.jsx(Pn,{onboardingCustomerView:C,analytics:I,updateStepHandler:(A,Ae,pe)=>{const oe=E.current.length,ue=E.current.indexOf(A);switch(Ae){case"next":{const ie=(ue+1)%oe,D=E.current[ie];K.current=D,f(D),pe===!0?I.trackOnboardingNext(A,D):I.trackOnboardingCurrentStep(D,A);break}case"previous":{const ie=(ue+oe-1)%oe,D=E.current[ie];K.current=D,f(D),pe===!0?I.trackOnboardingBack(A,D):I.trackOnboardingCurrentStep(D,A);break}}},onUpdateStep:f,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ve,updateCardPaymentModalState:F,handleFetchPaymentSources:Ce,cardPaymentView:r,resetCardPaymentViewState:_e,stripeKey:h,googleAPIKey:k,handleResetCardPaymentErrorStatuses:U,redirectToProductSuitePage:De,onFormErrorsChange:ne,...Ne}),ae?null:l.jsx(Qt,{isFooterRendered:!0,meetingUrl:V,analytics:I,productType:"onboarding"})]})})},Tn=x.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
width: ${a=>a.isOnAddressPage?"fit-content":"100%"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as _,h as B,_ as F,y as I,V as e,a_ as U,o as t,b as k,aL as M,f0 as W,O as A,l as V,r as H,f as l,w as b,u as N,n as R,c2 as J,D as Z,aj as G}from"./index-BngCC-zG.js";import{a as n}from"./sentry-CHlUi953.js";import{n as o}from"./mui-DyGc7Pg8.js";import{Gk as q}from"./zeni-epic-state-D8D2Skiq.js";import K from"./ConfettiBurst-BZCXEGYA-2D0_Pemr.js";import{T as Q}from"./ProductsCarousel-C3M0ocdF-2raBZnNq.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new i.Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="84fc9b4e-ef90-462c-ad15-427d358e5d83",i._sentryDebugIdIdentifier="sentry-dbid-84fc9b4e-ef90-462c-ad15-427d358e5d83")}catch{}})();const X=A.getLocalizedStrings(),Ie=({hasVerifiedBankAccount:i,meetingUrl:p,showUpdatePaymentDetailButton:x=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...L})=>{const d=_(),f=B().analytics,w=F(),S=w.loggedInUser,a=w.currentTenant,[y,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=L,O=I(),{customerOnboardingPage:c}=X,h=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:D}=s,{isPayrollEnabled:g,isCfoEnabled:u,isTaxEnabled:m}=D;return g&&u&&m?[r.withTaxAndPayroll,r.withCFO]:g&&u?[r.withPayroll,r.withCFO]:g&&m?[r.taxAndPayroll]:u&&m?[r.withTax,r.withCFO]:g?[r.onlyPayroll]:u?[r.onlyCFO]:m?[r.onlyTax]:[r.default]};return e.jsxs(e.Fragment,{children:[e.jsx(Y,{children:e.jsxs(ee,{windowSize:d,children:[e.jsx(te,{windowSize:d,children:e.jsx(U,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(xe,{children:e.jsx(fe,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:x?e.jsxs(ye,{"data-testid":k("update-to-payment-address-details"),onClick:()=>(s=>{if(v(),!s)return;let r="";r=i?"bank_account":"credit_card",f.trackOnboardingClickUpdatePaymentDetails(r,q(s.productSettings))})(a),children:[e.jsx(we,{}),e.jsx(ke,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(be,{})})}),e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{style:{gap:h(a).length>1?t.sp2:t.sp1,padding:h(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(re,{children:[e.jsxs(C,{children:[e.jsx(ne,{children:e.jsx(se,{})}),e.jsx(j,{children:h(a)[0]})]}),e.jsx(C,{children:h(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(ae,{children:e.jsx(le,{children:c.productSuite.sectionTitle})}),e.jsx(de,{children:e.jsx(Q,{scale:1,showUpdatePaymentDetailButton:x,stopCarousel:y})}),e.jsxs(ce,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(pe,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(he,{className:"discover-class"})]})]}),e.jsx(ge,{children:e.jsxs(ue,{children:[e.jsx(me,{windowSize:d,children:e.jsx(M,{signedInUser:S,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(W,{isFooterRendered:!1,meetingUrl:p,analytics:f,productType:"onboarding_interim",showPopup:y,setShowPopup:P})]})})]})}),e.jsx(K,{showConfetti:$})]})},Y=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -75,7 +75,7 @@ import{X as B,m as F,v as I,y as _,V as e,a_ as U,o as t,E as k,aL as M,fa as W,
|
|
|
75
75
|
justify-content: center;
|
|
76
76
|
width: 100%;
|
|
77
77
|
height: 100%;
|
|
78
|
-
`,
|
|
78
|
+
`,C=o.div`
|
|
79
79
|
display: flex;
|
|
80
80
|
align-items: flex-start;
|
|
81
81
|
justify-content: center;
|
|
@@ -83,8 +83,8 @@ import{X as B,m as F,v as I,y as _,V as e,a_ as U,o as t,E as k,aL as M,fa as W,
|
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
|
-
width: ${
|
|
87
|
-
height: ${
|
|
86
|
+
width: ${b.largeRegular.lineHeight};
|
|
87
|
+
height: ${b.largeRegular.lineHeight};
|
|
88
88
|
border-radius: 50%;
|
|
89
89
|
outline: 1px solid ${l.brandColorJadeDark};
|
|
90
90
|
background-color: ${l.brandColorPearl};
|
|
@@ -132,7 +132,7 @@ import{X as B,m as F,v as I,y as _,V as e,a_ as U,o as t,E as k,aL as M,fa as W,
|
|
|
132
132
|
`,pe=o(Z)`
|
|
133
133
|
color: inherit;
|
|
134
134
|
text-align: center;
|
|
135
|
-
`,he=o(
|
|
135
|
+
`,he=o(G)`
|
|
136
136
|
width: ${t.sp3};
|
|
137
137
|
height: ${t.sp3};
|
|
138
138
|
color: inherit;
|
|
@@ -196,7 +196,7 @@ import{X as B,m as F,v as I,y as _,V as e,a_ as U,o as t,E as k,aL as M,fa as W,
|
|
|
196
196
|
margin-right: ${t.sp2};
|
|
197
197
|
`,ke=o(V)`
|
|
198
198
|
margin-left: ${t.sp2};
|
|
199
|
-
`,
|
|
199
|
+
`,be=o.div`
|
|
200
200
|
width: 200px;
|
|
201
201
|
height: ${t.sp4};
|
|
202
|
-
`;export{
|
|
202
|
+
`;export{Ie as CustomerOnboardingProductSuitePage,Ie as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{j as a}from"./pdf-BxqSCr4b.js";import{t as $e,A as Ce}from"./AddressScreen-Duz_V-eF.js";import ze from"./NotFoundScreen-BOQb1xUE.js";import{a as g}from"./sentry-CHlUi953.js";import{j as oe,h as se,i as ie,l as re,u as P,N as E,k as ce,g as Qe,R as Me,m as Q}from"./core-CVVdXRky.js";import{N as de,_ as le,js as B,aE as ue,y as qe,aG as _,jO as V,bk as J,jz as N,jQ as we,J as X,ks as Ke,e as Ze,a7 as Ie,jD as te,kt as He,ku as ke,o as Je,kv as We,ev as Ee,kw as Xe}from"./index-BngCC-zG.js";import{bm as Ye,ct as ee,cV as et,cA as pe,cy as me,bt as tt,jA as at,cQ as nt,G7 as ot,gp as ae,gs as ve,Hi as st,F3 as it,bE as ge,oR as he,oC as rt,I0 as Y,oS as _e,Dv as ct,hr as Ue,I1 as Ve,I2 as dt,I3 as lt,I4 as ut,gn as pt,gq as mt,oE as Be,oQ as gt,bG as Te,bJ as ht,p2 as xe,mK as yt,my as ft,hj as St,dj as bt,di as Ct,dh as It,I5 as kt,ow as Et,p3 as Tt,p6 as xt,p9 as Ot,pf as At,Gk as Dt}from"./zeni-epic-state-D8D2Skiq.js";import{n as ye}from"./mui-DyGc7Pg8.js";import{g as Pt,h as Ft,q as ne}from"./QBOConnectionScreen-CCeXLrlB.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./empty-BHbH22vT.js";import"./pdf-lib-jHogAi_2.js";import"./index-ClO_SXUU.js";import"./url-7B3Yv5Zc.js";import"./index-uxYir9Bm.js";import"./decodeURIComponentSafe-Da8IsQO4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="769e9de8-ee45-4754-a0ed-2384ecaa384d",t._sentryDebugIdIdentifier="sentry-dbid-769e9de8-ee45-4754-a0ed-2384ecaa384d")}catch{}})();const jt=ce(function(t,o){const s=[];o.isApAgingFeatureEnabled===!1&&s.push("accounts_payable_aging"),o.isArAgingFeatureEnabled===!1&&s.push("accounts_receivable_aging"),o.shouldFetchZeniAccountsPromoCard===!1&&s.push("zeni_accounts_promo_card"),o.shouldFetchRewardsPlanCard===!1&&s.push("rewards_card"),o.isExpenseAutomationEnabledForUser===!1&&s.push("expense_automation_card");const u=nt(t,s,o.signedInUser,o.isExpenseAutomationFeatureEnabledV2,o.isExpenseAutomationEnabledForUser,o.isTreasuryEnabled);return{dashboardFetchState:ot(u.reportsInOrder.map(d=>({fetchState:d.fetchState,error:d.error}))).fetchState}},function(t,o){const{themeState:s,navigate:u,location:d}=o;return{onZeniLogoClick:()=>{s.toggle()},onDashboardFetchDone:()=>{const r=V(d.state?.pathnameStackToGoBack,d.pathname);u("../../dashboard",{state:{pathnameStackToGoBack:r,message:"activation"}})}}})(Ke),wt=()=>{const t=oe(),o=se(),s=ie(),u=de(),[d,r]=g.useState(!1),[p,S]=g.useState(!1),{tenantEmailDomain:e}=re(),n=le(),i=B.getSignedInUser(),h=Ye(i),{useFeatureGate:m}=ue(),k=qe(),{isFeatureEnabled:T}=m(_.isApAgingFeatureEnabled),{isFeatureEnabled:x}=m(_.isArAgingFeatureEnabled),{isFeatureEnabled:I}=m(_.isDepositAccountsFeatureEnabled),{isFeatureEnabled:y}=m(_.isReferralFeatureEnabled),{isFeatureEnabled:U}=m(_.isExpenseAutomationEnabled),{isFeatureEnabled:C}=m(_.isExpenseAutomationEnabledV2),{isFeatureEnabled:F}=m(_.isDebitCardFeatureEnabled),$=C||U&&h,c=P(l=>ee(l)),{isFeatureEnabled:G}=m(_.isTreasuryEnabled),j=c.company!=null&&et(c.company),L=G&&j,O=P(l=>l.onboardingCustomerViewState.fetchState),b=c.excludedResources,R=c.companyId??B.getSignedInUserTenant(e)?.companyId;if(i==null)throw Error("Can't access onboarding flow without signing in...");const w=pe(F,c),A=me(c),D=[],K=b?.resources?.find(l=>l.resource==="/reports/top_expenses")==null,z=b?.resources?.find(l=>l.resource==="/reports/task_card")==null,M=c?.userRole!=null&&tt(c?.userRole),v=b?.resources?.find(l=>l.resource==="/bills")==null&&!M,q=b?.resources?.find(l=>l.resource==="/reimbursements")==null;if(K===!1&&D.push("top_expenses"),z===!1&&D.push("task_card"),v===!1&&D.push("bill_pay_card","bill_pay_promo_card"),q===!1&&D.push("reimbursement_card","reimbursement_promo_card"),I===!1&&D.push("zeni_accounts_promo_card"),y===!1&&D.push("rewards_card"),g.useEffect(()=>{O!=="Completed"||d||w||A||(r(!0),s(at(i.userId,R,c.tenantId,!0,!1,D)))},[d,O,w,A,i,c.tenantId,s]),g.useEffect(()=>{(w||A)&&setTimeout(()=>{S(!0)},5e3)},[w,A]),O!=="Completed")return a.jsx(E,{to:"../"});if(O==="Completed"&&p){const l=V(o.state?.pathnameStackToGoBack,o.pathname);if(w)return a.jsx(E,{to:"../../checking",state:{...o.state,pathnameStackToGoBack:l,message:"activation"}});if(A)return a.jsx(E,{to:"../../cards",state:{...o.state,pathnameStackToGoBack:l,message:"activation"}})}return n?.loggedInUserRoleMap!=null?a.jsxs(a.Fragment,{children:[a.jsx(J,{analytics:N,onLoad:l=>(Z=>Z.trackPageLoaded(X.Event.onboardingDashboardActivation))(l)}),a.jsx(jt,{navigate:t,location:o,themeState:u,signedInUser:i,isApAgingFeatureEnabled:T,isArAgingFeatureEnabled:x,shouldFetchZeniAccountsPromoCard:I,shouldFetchRewardsPlanCard:y,isExpenseAutomationEnabledForUser:$,isExpenseAutomationFeatureEnabledV2:C,isTreasuryEnabled:L,loggedInUserRoleMap:n?.loggedInUserRoleMap})]}):a.jsx(we,{fetchState:"In-Progress",style:{backgroundColor:k.colors.grey5}})},Oe=ye.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
5
|
+
`,Ae=ye.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
min-width: calc(100% - ${ke}px);
|
|
10
|
+
padding-left: ${ke}px;
|
|
11
|
+
flex: 1;
|
|
12
|
+
|
|
13
|
+
${t=>t.theme.breakpoints.down("md")} {
|
|
14
|
+
width: 100%;
|
|
15
|
+
padding-left: ${Je.sp0};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
${t=>t.windowSize!=="small"?"overflow: auto;":""}
|
|
19
|
+
`,De=ce(function(t,o){const{companyId:s,isAdmin:u,currentTenant:d,isOnAddressPage:r}=o,p=B.getSignedInUser(),S=d.tenantId,e={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:S??""},n=ee(t),i=he(t,s),h=Ve(t),m=ge(d?.userRole??[])&&i.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",k=dt(t.userRoleConfigState);return{onboardingCustomerView:i,analytics:N,isRefreshingViewInBackground:!1,isDisabled:m,companyTitles:k.companyTitles,connectedAccountProvider:n.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:We.fileMicroServiceBaseUrl,authParams:e},signedInUser:B.getSignedInUser(),currentTenant:d,isAdmin:u,isOnAddressPage:r,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:h,isCardPaymentPopupOpen:!1,stripeKey:te.stripeKey}},function(t,o){const{companyId:s,currentTenant:u,themeState:d,navigate:r,location:p}=o,{tenantEmailDomain:S}=u;return{onFetchLinkTokenClick:(e,n)=>{t(At(e,n))},onEstablishConnectionClick:(e,n)=>{t(Ot(e,n))},onUpdatePaymentAccountStatus:(e,n,i)=>{t(xt(e,n,i))},onUpdatePaymentAccountLoginStatus:(e,n)=>{t(Tt(!1,e,n))},onEstablishConnectionSuccess:()=>{t(Et(s,!0,!1))},handleOnConnectClick:()=>{N.trackOnboardingConnectQBO(),ne.handleClick()},updateQBOPopupState:e=>{t(Y({isQBOPopupOpen:e}))},onCompanyOfficerUpdated:e=>{const n=e.map(i=>{const{officerType:h,userId:m,name:k,email:T,ssn:x,nationalityCountryCode:I,dob:y,phone:U,syncToken:C,selectDocument:F,role:$,ownership:c,isSelectedForVerification:G,userVerificationStatus:j,fileIds:L,isPhoneVerified:O}=i;let b;return F.selectDocumentType==="driverLicense"?b="driving_license":F.selectDocumentType==="passport"?b="passport":F.selectDocumentType==="stateId"?b="id_document":F.selectDocumentType==="ssnCard"&&(b="social_security_card"),{officerType:h,userId:m,firstName:k.firstName,lastName:k.lastName,email:T,ssn:x,nationalityCountryCode:I?.selectedOption!=null?Ee(I.selectedOption):void 0,phone:U,birthday:y!=null?Te(y?.toString()):y,syncToken:C,titleAtCompany:$.selectedOption,ownershipInCompany:c,documentTypeSelectedForVerification:b,isSelectedForVerification:G,userVerificationStatus:j,fileIds:L,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:O}});t(xe({officers:n}))},onGetOtp:(e,n)=>{t(It(e,"CustomerOnboarding")),n!=null&&t(kt({officerType:n,phone:e}))},onResendOtp:e=>{t(Ct(e,"CustomerOnboarding"))},onVerifyOtp:(e,n)=>{t(bt(e,n,"CustomerOnboarding"))},updateFilesEntity:e=>{t(St({files:e}))},onDeleteFile:e=>{t(ft(e))},onEditFileName:(e,n)=>{t(yt(e,n.split(".")[0]))},onCompanyDetailsChanged:e=>{const{companyDescription:n,companyIndustry:i,companyIndustryType:h,companyLegalName:m,companyTaxId:k,companyWebsite:T,companyPhone:x,primaryContactEmail:I,primaryContactName:y,primaryContactUserId:U,primaryContactSyncToken:C,syncToken:F,fileIds:$,typeOfIncorporation:c,stateOfIncorporation:G,incDate:j,companySourceOfFunds:L,companySourceOfFundsDescription:O,companySubIndustry:b,countriesOfOperations:R,purposeOfAccount:w,purposeOfAccountDescription:A,regulatedStatus:D,regulatedStatusDescription:K,transactionVolume:z,transactionVolumeDescription:M,usNexus:v,usNexusTypes:q}=e,l={companyId:s,companyDescription:n,companyIndustry:i.selectedOption,companyIndustryType:h?.selectedOption??"",companyLegalName:m,taxIdOrEIN:k,website:T!=""&&T!=null?ht(T):void 0,phone:x,syncToken:F,fileIds:$,incDate:j!=null?Te(j?.toString()):j,typeOfIncorporation:c?.selectedOption??"",stateOfIncorporation:G?.selectedOption??"",companySourceOfFunds:L?.selectedOption??"",companySourceOfFundsDescription:O,companySubIndustry:b?.selectedOption??"",countriesOfOperations:R?.selectedOptions.map(H=>H.length===2?H:Ee(H))??[],purposeOfAccount:w?.selectedOption??"",purposeOfAccountDescription:A,regulatedStatus:D??"",regulatedStatusDescription:K,transactionVolume:z?.selectedOption??"",transactionVolumeDescription:M,usNexus:v,usNexusTypes:q?.selectedOptions??[]},Z={userId:U,firstName:y.firstName,lastName:y.lastName,email:I,syncToken:C};t(xe({companyDetails:l,primaryContactDetails:Z}))},onAddressClick:(e,n)=>{const i=Pe(S,e,n),h=V(p.state?.pathnameStackToGoBack,p.pathname);r(i,{state:{pathnameStackToGoBack:h}})},onRegisteredAddressClick:(e,n)=>{const i=Pe(S,e,n),h=V(p.state?.pathnameStackToGoBack,p.pathname);r(i,{state:{pathnameStackToGoBack:h}})},onUpdateCustomerView:(e,n,i)=>{t(gt(s,!1,n,i,e))},onAddressEditHandler:e=>{if(e!=null){const n=$e(e);t(Ue({addressType:"subscription_billing_address",addressToCreate:n}))}},onSkipSetupClick:()=>{const e=V(p.state?.pathnameStackToGoBack,p.pathname);t(Be(s,!1,!1)),r("./activation",{state:{pathnameStackToGoBack:e}})},onUpdateStep:e=>{t(_e({step:e}))},onZeniLogoClick:()=>{d.toggle()},handleLogOutClick:()=>{const e=V(p.state?.pathnameStackToGoBack,p.pathname);r("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleCreateCardSetupIntent:e=>{t(ve(e))},handleConfirmCardSetupIntent:e=>{t(mt(e))},updateCardPaymentModalState:e=>{t(Y({isCardPaymentPopupOpen:e}))},handleAddCardPaymentSource:(e,n,i)=>{t(pt(e,n,i))},handleFetchPaymentSources:()=>{t(ae())},resetCardPaymentViewState:()=>{t(ut())},handleResetCardPaymentErrorStatuses:()=>{t(lt())},redirectToProductSuitePage:()=>{const e=V(p.state?.pathnameStackToGoBack,p.pathname);r(`/${S}/onboarding/thankyou`,{state:{pathnameStackToGoBack:e,message:"OnboardingThankyou"},replace:!0})}}})(He),W=({taxCFOCustomer:t=!1,isOnAddressPage:o=!1,appContent:s})=>{const u=oe(),d=se(),r=ie(),p=Ze(),S=de(),[e,n]=g.useState(!1),[i,h]=g.useState(!1),[m,k]=g.useState(!1),{tenantEmailDomain:T}=re(),x=le(),{useFeatureGate:I}=ue(),{isFeatureEnabled:y}=I(_.isDebitCardFeatureEnabled),U=Qe("/:tenantEmailDomain/onboarding")!==null&&d.search?.includes("code"),C=P(f=>f.onboardingCustomerViewState.fetchState),F=P(f=>f.onboardingCustomerViewState.currentStep),$=P(f=>f.onboardingCustomerViewState.uiState),c=P(f=>ee(f)),G=P(f=>f.userRoleConfigState.fetchState),j=P(f=>f.cardPaymentViewState),L=Ie(j.addCardPaymentSourceStatus.fetchState),O=j.addCardPaymentSourceStatus.fetchState,{code:b,realmId:R,state:w}=Pt(d.search),A=c.externalConnections?.accounting[0],D=A?.connectionType,K=A?.connectionName,z=A?.connectionId??"",M=B.getSignedInUser()?.userId??"";g.useEffect(()=>{i||(h(!0),r(ae()))},[i,r]),g.useEffect(()=>{m||(ve(["card"]),k(!0))},[m]),g.useEffect(()=>{L==="In-Progress"&&O==="Completed"&&r(ae())},[L,O]),g.useEffect(()=>{Ft(b,R,w,z,M)===!0&&c.externalConnections?.saveConnectionState!=="In-Progress"&&C==="Completed"&&(r(st(c.tenantId,{connection_type:D??"accounting",connection_name:K??"quickbooks_online",authorization_code:b,realm_id:R,connection_id:z,user_id:M},it(window.location.origin+"/onboarding/auth"))),N.trackOnboardingSaveQBOConnection(R,z),u(d.pathname))},[b,R,w,d.pathname,C]),g.useEffect(()=>{ne.isInitiated===!1&&C==="Completed"&&ne.init("/onboarding/auth",c.tenantEmailDomain)},[C]);const v=c.companyId??B.getSignedInUserTenant(T)?.companyId,q=ge(c?.userRole??[]),l=P(f=>he(f,v));g.useEffect(()=>{e||C!=="Not-Started"||v==null||(n(!0),r(rt(v,!0,!U)))},[e,C,v]),g.useEffect(()=>{c.externalConnections?.saveConnectionState!=="Completed"&&c.externalConnections?.saveConnectionState!=="Error"||!$.isQBOPopupOpen||F!=="qbo_connection"||r(Y({isQBOPopupOpen:!1}))},[c.externalConnections?.saveConnectionState]),g.useEffect(()=>{C==="Completed"&&U&&(r(_e({step:"qbo_connection"})),r(Y({isQBOPopupOpen:!0})))},[U,C]),g.useEffect(()=>{G==="Not-Started"&&r(ct(!0))},[G,r]);const Z=Ie(l.companyDetailsLocalData?.addressStatus);g.useEffect(()=>{l.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&l.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&Z==null&&r(Ue({addressType:"company_registered_address",addressToCreate:l.companyDetailsLocalData?.addressStatus?.addressToCreate}))},[l.companyDetailsLocalData?.addressStatus?.addressToCreate,l.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const H=l.isInterimEmailSent;if(B.getSignedInUser()==null)throw Error("Can't access onboarding flow without signing in...");const Ge=pe(y,c),Le=me(c),fe=c.company?.companyOnboardingInfo.isOnboardingCompleted,Se=f=>f.trackPageLoaded(X.Event.onboardingPage),be=c.productSettings.isOtherProductsEnabled,Re=c.productSettings.isTreasuryEnabled;if(fe===!0){if(!be)return Re?a.jsx(E,{to:"../../treasury"}):Ge?a.jsx(E,{to:"../../checking"}):Le?a.jsx(E,{to:"../../cards"}):a.jsx(E,{to:"../../dashboard"});const f=l.updateStatus.fetchState==="In-Progress";if(be&&!f)return t?a.jsxs(Oe,{children:[a.jsx(J,{analytics:N,onLoad:Ne=>Se(Ne)}),a.jsx(De,{navigate:u,location:d,companyId:v,currentTenant:c,isAdmin:q,isOnAddressPage:o,themeState:S,googleAPIKey:te.googleMapsAPIKey}),s!=null?a.jsx(Ae,{windowSize:p,children:s}):null]}):a.jsx(E,{to:"../../onboarding/thankyou"})}else if(fe===!1&&x?.loggedInUserRoleMap!=null)return H===!0?a.jsx(E,{to:"../../onboarding/thankyou"}):a.jsxs(Oe,{children:[a.jsx(J,{analytics:N,onLoad:f=>Se(f)}),a.jsx(De,{navigate:u,location:d,companyId:v,currentTenant:c,isAdmin:q,isOnAddressPage:o,themeState:S,googleAPIKey:te.googleMapsAPIKey}),s!=null?a.jsx(Ae,{windowSize:p,children:s}):null]});return null};function Pe(t,o,s){let u=`/${t}/onboarding/address`;return u=s!=null?u.concat(`/edit/${o}/${encodeURIComponent(s)}`):u.concat(`/new/${o}`),u}const Fe=ye.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
height: 100vh;
|
|
22
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
23
|
+
`,je=ce(function(t,o){const{companyId:s,currentTenant:u}=o,d=he(t,s),r=Ve(t);return{hasVerifiedBankAccount:(d.paymentAccount?.providerVerificationStatus?.code?.includes("verified")??!1)||(r.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1),isDisabled:ge(u?.userRole??[])&&d.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",signedInUser:B.getSignedInUser(),currentTenant:u,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}},function(t,o){const{currentTenant:s,themeState:u,navigate:d,location:r}=o,{tenantEmailDomain:p}=s;return{onZeniLogoClick:()=>{u.toggle()},handleLogOutClick:()=>{const S=V(r.state?.pathnameStackToGoBack,r.pathname);d("/signout",{replace:!0,state:{pathnameStackToGoBack:S,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleUpdatePaymentAddressDetailClick:()=>{const S=V(r.state?.pathnameStackToGoBack,r.pathname);d(`/${p}/onboarding/billing/edit`,{state:{pathnameStackToGoBack:S,message:"UpdatePaymentAddressDetail"}})}}})(Xe),vt=()=>{const t=oe(),o=ie(),s=se(),u=de(),{useFeatureGate:d}=ue(),{isFeatureEnabled:r}=d(_.isDebitCardFeatureEnabled),{tenantEmailDomain:p}=re(),S=le(),[e,n]=g.useState(!1);g.useEffect(()=>{e===!1&&s.state?.message==="OnboardingThankyou"&&n(!0)},[s.state]);const i=P(y=>ee(y)),h=i.productSettings.isOtherProductsEnabled;g.useEffect(()=>{o(Be(m,!1,!h))},[]);const m=i.companyId??B.getSignedInUserTenant(p)?.companyId;if(S.loggedInUser==null)throw Error("Can't access onboarding flow without signing in...");const k=pe(r,i),T=me(i),x=P(y=>y.onboardingCustomerViewState.updateStatus.fetchState),I=i.company?.companyOnboardingInfo.isOnboardingCompleted;return I!==!0||h?x==="Completed"&&I===!0&&h&&S?.loggedInUserRoleMap!=null?a.jsxs(Fe,{children:[a.jsx(J,{analytics:N,onLoad:y=>{y.trackPageLoaded(X.Event.onboardingLandingPage,"Onboarding",Dt(i.productSettings))}}),a.jsx(je,{navigate:t,showUpdatePaymentDetailButton:h,location:s,companyId:m,currentTenant:i,themeState:u,isVisitingFirstTime:e})]}):x==="Completed"&&I===!1&&S?.loggedInUserRoleMap!=null?a.jsxs(Fe,{children:[a.jsx(J,{analytics:N,onLoad:y=>{y.trackPageLoaded(X.Event.onboardingInterimPage)}}),a.jsx(je,{navigate:t,showUpdatePaymentDetailButton:h,location:s,companyId:m,currentTenant:i,themeState:u,isVisitingFirstTime:e})]}):a.jsx(we,{fetchState:x}):k?a.jsx(E,{to:"../../checking"}):T?a.jsx(E,{to:"../../cards"}):a.jsx(E,{to:"../../dashboard"})};function aa(){return a.jsxs(Me,{children:[a.jsx(Q,{path:"/",element:a.jsx(W,{})}),a.jsx(Q,{path:"/billing/edit",element:a.jsx(W,{taxCFOCustomer:!0})}),a.jsx(Q,{path:"/thankyou",element:a.jsx(vt,{})}),a.jsx(Q,{path:"/activation",element:a.jsx(wt,{})}),a.jsx(Q,{path:"/address/edit/:addressType/:addressId",element:a.jsx(W,{isOnAddressPage:!0,appContent:a.jsx(Ce,{})})}),a.jsx(Q,{path:"/address/new/:addressType",element:a.jsx(W,{isOnAddressPage:!0,appContent:a.jsx(Ce,{})})}),a.jsx(Q,{path:"*",element:a.jsx(ze,{})})]})}export{aa as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{z as OA,e as AA,_ as se,V as e,K as Ut,O as Q,B as Ot,F as Tt,o as r,G as Ht,I as Yt,J as UA,f as x,P as Kt,Q as Nt,S as zt,U as Ee,X as Gt,Y as Wt,Z as qt,a0 as Xt,a1 as Vt,a2 as Zt,a3 as P,a4 as G,a5 as K,a6 as _,b as k,T as $t,a7 as Ye,a8 as Ke,A as _t,a9 as Ar,x as tA,aa as W,ab as rA,H as oA,ac as Ne,ad as J,ae as U,af as XA,k as er,y as sA,ag as tr,ah as rr,ai as or,aj as ar,C as R,ak as TA,m as v,D as VA,l as HA,al as ze,am as Ge,an as We,ao as ir,ap as ZA,d as gr,M as nr,aq as Cr,ar as qe,as as sr,at as dr,au as $A,av as Er,aw as Br,ax as lr,ay as Qr,L as Xe,w as Ir,az as cr,aA as hr,aB as Ve,aC as Ze,j as pr,aD as mr,u as ur,t as $e}from"./index-BngCC-zG.js";import{a as t,b as f}from"./sentry-CHlUi953.js";import{n as g,d as xr,c as kA,k as b}from"./mui-DyGc7Pg8.js";import{L as wr}from"./lottie-D68Xb3aQ.js";import{bt as fr,bs as _e,F4 as At}from"./zeni-epic-state-D8D2Skiq.js";import{v as kr}from"./DashboardSidebarBackgroundAnimation-BtA5oEGG-DP44-3NB.js";import{L as Dr,k as yr}from"./ArAgingChart-CBsqOd-4-CVCl4d59.js";import{E as jr,T as de,I as et}from"./ReloadCard-Bdoo0XiI-CgAT4eqC.js";import{L as vr,O as YA,c as cA}from"./TopExCard-Z1WabZ8c-CBwSMJxd.js";import{Y as br,X as Mr,H as Sr,P as Rr,G as Fr}from"./RevenueChart-DvyZ3aO7-D41DyD4f.js";import Lr from"./InsightsCardStack-BsQzoVzj-BI_nQIXQ.js";import{a as Jr}from"./AccountsPromoCardStack-Bs3naJHM-DvbUMPbJ.js";import{c as eA}from"./SummaryCard-C2qoTsAY-LkZgmc3l.js";import{t as Pr,o as Ur}from"./arrow-south-east-round-PEovUgvH-DB6pjtdO.js";import{N as CA}from"./NavigationArrow-CTNkKUtV-Cv--eO3H.js";import{x as _A}from"./NavigationDots-Dvce3gHt-B5IBT8ql.js";import Or from"./CompanyPassportCard-CkzYFTrp-DRHCWpeb.js";import{C as Tr}from"./gift-box-Cmt9OgIZ-CR0qdQnT.js";import Hr from"./InformationCardStack-B_qQUEYD-DRekqbq_.js";import{p as tt}from"./chartTypes-CD3vrBsI-4eICteeW.js";import{h as Yr}from"./toCOABalancesWithID-aLNB35t7-DBx2vR3D.js";import{V as Kr}from"./toChartData-DUL6vnzJ-CHvhrhF4.js";import{r as Nr,i as zr}from"./graphic-no-data-net-burn-l-CzmycA0m-Cj977U7E.js";import{N as Gr,J as Wr}from"./PromoBaseCards-BOGJI2ws-Cm4e0wPQ.js";import{r as qr}from"./core-CVVdXRky.js";import{N as Xr,I as Vr}from"./VideoPlayer-VAzOGCDL-BYL37uoQ.js";import Zr from"./ConfettiBurst-BZCXEGYA-2D0_Pemr.js";import{N as $r,O as _r,Y as Ao,X as eo,Q as to}from"./recharts-CMjB5mmq.js";import"./pdf-BxqSCr4b.js";import"./liveblocks-CHs9GmLG.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./graphic-no-data-l-DU4J8fDt-CslJm2fU.js";import"./media-player-D-MhIu5T.js";(function(){try{var A=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new A.Error().stack;a&&(A._sentryDebugIds=A._sentryDebugIds||{},A._sentryDebugIds[a]="1bc79965-b864-429b-a1a8-6ecc04b9c326",A._sentryDebugIdIdentifier="sentry-dbid-1bc79965-b864-429b-a1a8-6ecc04b9c326")}catch{}})();const ro=g(rA)`
|
|
2
2
|
color: ${A=>A.theme.colors.champion};
|
|
3
3
|
`,Be=g.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as I,y as Z,O as y,_ as Pe,V as a,a_ as Xe,L as Ke,J as Qe,a$ as et,o as i,x as D,S as K,b0 as tt,b1 as st,C as ae,m as L,an as at,ad as ot,a8 as Le,a as Ne,f as M,D as Ie,ac as nt,au as it,j as rt,b2 as ct,$ as lt,b3 as dt,b4 as oe,b5 as pt,t as gt,H as ht,b6 as mt,b7 as ut}from"./index-BngCC-zG.js";import{a as k,b as ee}from"./sentry-CHlUi953.js";import{n as p,k as Re}from"./mui-DyGc7Pg8.js";import{bt as ft,F6 as bt,F3 as xt,F7 as _t,F8 as wt,F9 as yt,Fa as St,Fb as vt,Fc as jt,Fd as Ct,Fe as kt}from"./zeni-epic-state-D8D2Skiq.js";import{m as G,l as se}from"./analyticsHelper-CAYdbjhS-CB8PHHr8.js";import{x as $t,b as Ot}from"./ReportTableViewSelector-Bc1K7mU_-CRH7B2Xe.js";import{F as Bt}from"./InsightsSection-B6CNlTNH-BFr6MnTG.js";import{H as te}from"./BalancesInsightWithToolTip-B6umvmgL-B94s6jgr.js";import{y as Pt,$ as Lt,v as Nt,M as xe,b as fe}from"./TimeRangeSwitcher-D00bDDhP-BG1zi2IK.js";import{G as It,P as Rt,Y as _e,X as we,H as ye}from"./RevenueChart-DvyZ3aO7-D41DyD4f.js";import{C as Tt}from"./NoDataChart-CrKeqWSr-aTXx8C4D.js";import{n as F}from"./getReferrerType-DjPOy76W-BckJ1MnT.js";import{T as Te}from"./TimeframeSwitcher-DA99HdHt-BQziHQmj.js";import{n as Dt,t as W,j as zt,h as me,D as At}from"./CollapsableReportTable-DNfFkAts-CoCUKzx3.js";import{S as Ft,M as Mt,g as Et,C as J,L as Se,D as ve,T as je}from"./mapSectionWithAcOnlyToTreeNode-Cgyt68f3-C2AYKRBA.js";import{d as Vt}from"./NoDataTable-4vPXmPYF-MAxQ6k5D.js";import{d as ne,l as ie}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-BVVmyoym.js";import{d as re}from"./mapLoadingInProgressToTreeNode-jcHEi-mv-cRyD83dc.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./filter-cZIFUNvj-BeqNUW3e.js";import"./NavigationDots-Dvce3gHt-B5IBT8ql.js";import"./chartTypes-CD3vrBsI-4eICteeW.js";import"./toCOABalancesWithID-aLNB35t7-DBx2vR3D.js";import"./toChartData-DUL6vnzJ-CHvhrhF4.js";import"./AccountRow-D1cjRJJD-Dsnq1o4t.js";import"./clock-CJkylEKt-o4osYW2f.js";import"./graphic-no-data-l-DU4J8fDt-CslJm2fU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0e8c50ff-7c91-4fbd-bb21-eb0e31c0f946",e._sentryDebugIdIdentifier="sentry-dbid-0e8c50ff-7c91-4fbd-bb21-eb0e31c0f946")}catch{}})();const Wt=e=>k.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),k.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),k.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Ht=p.div`
|
|
2
2
|
justify-content: center;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -17,11 +17,11 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
17
17
|
justify-content: center;
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
margin-top: ${i.sp3};
|
|
20
|
-
`,Ut=({style:e,emptyContentText:s,EmptyContentImage:r})=>{const l=I();return a.jsxs(Ht,{windowSize:l,style:{...e},children:[a.jsx(Yt,{children:a.jsx(r,{})}),a.jsx(Gt,{children:s})]})};function Zt(e){const s=function(r){const{isCompareModeOn:l,filter:t,coaBalancesRange:o,report:u,currentTenantCompanyName:d,reportView:g,classesToFilterOut:f}=r,{reportId:x}=u;let n=t.balancesRange.thisPeriod;n==null&&(n=function(b){const{reportId:c}=b.report,h=b.filter.balancesRange.orderBy;let m,v,w=0;switch(c){case"cash_in_cash_out":{const j=b.report,{cashIn:S,cashOut:$}=j,C=S.balances.length>0?S:$;C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"cash_position":{const j=b.report,{cashPosition:S}=j;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"net_burn_or_income":{const j=b.report,{expenses:S,income:$}=j.sections,C=S?.balances.length>0?S:$;C?.balances!=null&&C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"net_burn_or_income_by_classes":{const j=b.report,{expenses:S,income:$,cogs:C}=j.sections,R=$.balances.length>0?$:C,P=S.balances.length>0?S:R;P.balances.length>0&&(h==="ascending_date"&&(w=P.balances.length-1),m=P.balances[w]);break}case"operating_expenses":{const j=b.report,{expenses:S}=j.sections;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"operating_expenses_by_classes":{const j=b.report,{expenses:S}=j.sections;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"revenue":{const j=b.report,{income:S,cogs:$}=j.sections,C=S.balances.length>0?S:$;C?.balances!=null&&C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"revenue_by_classes":{const j=b.report,{income:S,cogs:$}=j.sections,C=S.balances.length>0?S:$;C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}}return m!=null&&(v={startDate:m.startDate,endDate:m.endDate}),v}({report:u,filter:t}));const _=[];if(l?(_.push("this_period_vs_last_period_percent"),_.push("this_period_vs_last_period")):!l&&x!=="cash_position"&&_.push("free_range_total"),u.reportId!=="cash_position"&&_.push("year_to_date_total"),n!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!1,companyName:d,statementFileType:"excel",statements:[x],firstMonthOfFY:r.report.firstMonthOfFY,bookCloseDate:r.report.bookCloseDate,timeframe:t.timeframe,additionalBalances:_,format:r.reportType,balancesFilter:{thisPeriod:n,numberOfPeriods:l?t.balancesRange.numberOfPeriods:o.numberOfPeriods,orderBy:o.orderBy},accountViewMode:g,classesToFilterOut:f,isZeniCOAUsed:r.isZeniCOAUsed}}(e);if(s!=null)return $t(e.statementEndPoint,e.authParams,s)}const
|
|
20
|
+
`,Ut=({style:e,emptyContentText:s,EmptyContentImage:r})=>{const l=I();return a.jsxs(Ht,{windowSize:l,style:{...e},children:[a.jsx(Yt,{children:a.jsx(r,{})}),a.jsx(Gt,{children:s})]})};function Zt(e){const s=function(r){const{isCompareModeOn:l,filter:t,coaBalancesRange:o,report:u,currentTenantCompanyName:d,reportView:g,classesToFilterOut:f}=r,{reportId:x}=u;let n=t.balancesRange.thisPeriod;n==null&&(n=function(b){const{reportId:c}=b.report,h=b.filter.balancesRange.orderBy;let m,v,w=0;switch(c){case"cash_in_cash_out":{const j=b.report,{cashIn:S,cashOut:$}=j,C=S.balances.length>0?S:$;C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"cash_position":{const j=b.report,{cashPosition:S}=j;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"net_burn_or_income":{const j=b.report,{expenses:S,income:$}=j.sections,C=S?.balances.length>0?S:$;C?.balances!=null&&C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"net_burn_or_income_by_classes":{const j=b.report,{expenses:S,income:$,cogs:C}=j.sections,R=$.balances.length>0?$:C,P=S.balances.length>0?S:R;P.balances.length>0&&(h==="ascending_date"&&(w=P.balances.length-1),m=P.balances[w]);break}case"operating_expenses":{const j=b.report,{expenses:S}=j.sections;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"operating_expenses_by_classes":{const j=b.report,{expenses:S}=j.sections;S.balances.length>0&&(h==="ascending_date"&&(w=S.balances.length-1),m=S.balances[w]);break}case"revenue":{const j=b.report,{income:S,cogs:$}=j.sections,C=S.balances.length>0?S:$;C?.balances!=null&&C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}case"revenue_by_classes":{const j=b.report,{income:S,cogs:$}=j.sections,C=S.balances.length>0?S:$;C.balances.length>0&&(h==="ascending_date"&&(w=C.balances.length-1),m=C.balances[w]);break}}return m!=null&&(v={startDate:m.startDate,endDate:m.endDate}),v}({report:u,filter:t}));const _=[];if(l?(_.push("this_period_vs_last_period_percent"),_.push("this_period_vs_last_period")):!l&&x!=="cash_position"&&_.push("free_range_total"),u.reportId!=="cash_position"&&_.push("year_to_date_total"),n!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!1,companyName:d,statementFileType:"excel",statements:[x],firstMonthOfFY:r.report.firstMonthOfFY,bookCloseDate:r.report.bookCloseDate,timeframe:t.timeframe,additionalBalances:_,format:r.reportType,balancesFilter:{thisPeriod:n,numberOfPeriods:l?t.balancesRange.numberOfPeriods:o.numberOfPeriods,orderBy:o.orderBy},accountViewMode:g,classesToFilterOut:f,isZeniCOAUsed:r.isZeniCOAUsed}}(e);if(s!=null)return $t(e.statementEndPoint,e.authParams,s)}const qt=p.div`
|
|
21
21
|
padding: ${i.sp4} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
22
|
-
`;function
|
|
22
|
+
`;function Jt({highlightedRangeReport:e}){const{availableNumberOfPeriods:s,netCashFlow:r}=e,l=r.balances;if(s==null||s===0||l.length===0)return null;const t=l.reduce((g,f)=>g+f.balance.amount,0),o=l[l.length-1],u={...o,balance:{...o.balance,amount:t}},d=y.getLocalizedStrings().chartCard.cashInCashOut.net_cash_flow;return a.jsx(qt,{children:a.jsx(te,{balance:u,dateText:d,showInfotip:!1})})}const Xt=p.div`
|
|
23
23
|
padding: ${i.sp4} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
24
|
-
`;function
|
|
24
|
+
`;function Kt({highlightedRangeReport:e}){const{dateFormat:{visual:s}}=y.getLocalizedStrings(),{availableNumberOfPeriods:r,cashPosition:l}=e,t=l.balances;if(r==null||r===0||t.length===0)return null;const o=t[t.length-1],u=`in ${o.endDate.format(s.MMMYYFormat)}`;return a.jsx(Xt,{children:a.jsx(te,{balance:o,dateText:u,showInfotip:!1})})}const Qt=p.div`
|
|
25
25
|
padding: ${i.sp4} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
26
26
|
`,es=p.div`
|
|
27
27
|
padding: ${i.sp4} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
@@ -274,7 +274,7 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
274
274
|
display: flex;
|
|
275
275
|
width: 100%;
|
|
276
276
|
flex-direction: column;
|
|
277
|
-
`,
|
|
277
|
+
`,qs=p.div`
|
|
278
278
|
display: flex;
|
|
279
279
|
width: 100%;
|
|
280
280
|
flex-direction: row;
|
|
@@ -285,20 +285,20 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
285
285
|
justify-content: center;
|
|
286
286
|
padding-left: ${e=>ke.timeframePaddingLeft.valuePx(e.windowSize)};
|
|
287
287
|
padding-bottom: ${e=>ke.timeframePaddingBottom.valuePx(e.windowSize)};
|
|
288
|
-
`,
|
|
288
|
+
`,Js=p.div`
|
|
289
289
|
display: flex;
|
|
290
290
|
width: 100%;
|
|
291
291
|
flex-direction: row;
|
|
292
292
|
align-items: center;
|
|
293
293
|
justify-content: center;
|
|
294
|
-
`,
|
|
294
|
+
`,Xs=p.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: row;
|
|
297
297
|
align-items: center;
|
|
298
298
|
justify-self: flex-end;
|
|
299
299
|
justify-content: flex-end;
|
|
300
300
|
min-width: 315px;
|
|
301
|
-
`,
|
|
301
|
+
`,Ks=p.div`
|
|
302
302
|
display: flex;
|
|
303
303
|
flex-direction: row;
|
|
304
304
|
align-items: center;
|
|
@@ -306,7 +306,7 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
306
306
|
`,Ge=p(ae)`
|
|
307
307
|
color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
|
|
308
308
|
opacity: ${e=>e.isDisabled?.5:1};
|
|
309
|
-
`,Ue=({label:e,isOn:s,isToggleDisabled:r,onValueChanged:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Ge,{isOn:s,isDisabled:r===!0,children:e}),a.jsx(He,{checked:s,edge:"end",disabled:r===!0,disableRipple:r===!0,onChange:t=>{l(t.target.checked)}})]});function Ze({isOn:e,isDisabled:s,selectedForecastIndex:r,forecasts:l,isForecastValid:t,onForecastToggleChanged:o,onForecastSelectionChanged:u}){return a.jsxs(
|
|
309
|
+
`,Ue=({label:e,isOn:s,isToggleDisabled:r,onValueChanged:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Ge,{isOn:s,isDisabled:r===!0,children:e}),a.jsx(He,{checked:s,edge:"end",disabled:r===!0,disableRipple:r===!0,onChange:t=>{l(t.target.checked)}})]});function Ze({isOn:e,isDisabled:s,selectedForecastIndex:r,forecasts:l,isForecastValid:t,onForecastToggleChanged:o,onForecastSelectionChanged:u}){return a.jsxs(Ks,{children:[e===!0&&l!=null&&l.length!==0?a.jsx(Gs,{selectedForecastIndex:r??0,forecasts:l,isForecastValid:t,onForecastSelectionChanged:u,isDisabled:!1}):a.jsx(Ge,{isOn:e,isDisabled:s===!0,children:y.getLocalizedStrings().reports.forecast.forecast}),a.jsx(He,{checked:e,edge:"end",disabled:s===!0,disableRipple:s===!0,onChange:d=>{o(d.target.checked)}})]})}const Qs=e=>{const s=I();return a.jsxs(Zs,{children:[a.jsx(Ye,{windowSize:s,children:a.jsx(Te,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),a.jsxs(Js,{children:[e.forecastListWithToggle!=null&&a.jsx(Ze,{...e.forecastListWithToggle}),a.jsx(Ue,{...e.compareToggle,label:y.getLocalizedStrings().compareSwitchLabel})]})]})},ea=e=>{const s=I();return a.jsxs(qs,{children:[a.jsx(Ye,{windowSize:s,children:a.jsx(Te,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),a.jsxs(Xs,{children:[e.forecastListWithToggle!=null&&a.jsx(Ze,{...e.forecastListWithToggle}),a.jsx(Ue,{...e.compareToggle,label:y.getLocalizedStrings().compareSwitchLabel})]})]})};function ta(e){const s=I();return s==="small"||s==="medium-compact"?a.jsx(Qs,{...e}):a.jsx(ea,{...e})}const sa=p.div`
|
|
310
310
|
display: flex;
|
|
311
311
|
padding: ${i.sp2} ${i.sp0} ${i.sp4} ${i.sp0};
|
|
312
312
|
`,aa=p.div``,oa=p.div``,$e=(e,s,r,l,t,o)=>{s===!0&&o?.trackCompareFilterTimeFrame(F(r),G(l),"range filter",se(e,l,t)),o?.trackDateRangeFilterChange(F(r),"range filter",s,se(e,l,t))};function ue({account:e,sectionType:s,numOfBalances:r,title:l,isLastNode:t,config:o,parentNodeIDs:u}){return{children:[],id:W("ac_report",u,e.accountId),isLastNode:t,reportElementData:{element:{kind:"ac_report",title:l,sectionType:s,data:e,numOfBalances:r},config:o}}}function Oe({section:e,sectionType:s,numOfBalances:r,title:l,isLastNode:t,config:o}){const u=W("section",[],l),d={children:[],id:u,isLastNode:t,reportElementData:{element:{kind:"section",title:l,sectionType:s,data:e,numOfBalances:r},config:o}},g=function(_){let b=!1;if(_!=null){for(const c of _)if(c!=null&&c.balance.amount!==0){b=!0;break}}return b}(At(e,o.displayOrder,r,!1).balances),f=me(s,"no_filter",o.filterAccountsWithNilBalances,o.filterAccountGroupsWithNilBalances),x=f.compactedAccountsSelectorVariant(e.accountsOrdered),n=f.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(g===!0&&(n.length>0||e.accountsOrdered.length>0)){const _=n.map((c,h)=>function({acGroup:m,sectionType:v,numOfBalances:w,title:j,isLastNode:S,config:$,parentNodeIDs:C}){const R=W("ac_group_report",C,m.accountGroupId),P={children:[],id:R,isLastNode:S,reportElementData:{element:{kind:"ac_group_report",title:j,sectionType:v,data:m,numOfBalances:w},config:$}},z=me(v,"no_filter",$.filterAccountsWithNilBalances,$.filterAccountGroupsWithNilBalances).compactedAccountsSelector(m);return P.children=z.map((O,B)=>ue({account:O,sectionType:v,numOfBalances:w,title:O.accountDescription,config:$,isLastNode:B===z.length-1,parentNodeIDs:[...C,R]})),P}({acGroup:c,sectionType:s,numOfBalances:r,title:c.accountGroupName,isLastNode:h===n.length-1,config:o,parentNodeIDs:[u]})),b=x.map((c,h)=>ue({account:c,sectionType:s,numOfBalances:r,title:c.accountDescription,isLastNode:h===e.accountsOrdered.length-1,config:o,parentNodeIDs:[u]}));d.children.push(..._),d.children.push(...b)}return d}function V({balances:e,config:s,nodeId:r}){let l="timeframe_headers";return s.mode==="actual_vs_forecast"&&(l="timeframe_headers_with_forecast"),{children:[],id:r??W("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:l,title:"",data:e,numOfBalances:e.length},config:s}}}function he({title:e,balances:s,config:r,numOfBalances:l,nodeId:t}){return{children:[],id:t??W("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:l},config:r}}}const na=e=>{switch(e.reportId){case"net_burn_or_income":{const s=e;return s.sections.income.balances.length>0?[...s.sections.income.balances,...s.sections.income.additionalBalances]:s.sections.expenses.balances.length>0?[...s.sections.expenses.balances,...s.sections.expenses.additionalBalances]:s.sections.cogs.balances.length>0?[...s.sections.cogs.balances,...s.sections.cogs.additionalBalances]:[]}case"net_burn_or_income_by_classes":{const s=e;return s.sections.income.balances.length>0?[...s.sections.income.balances,...s.sections.income.additionalBalances]:s.sections.expenses.balances.length>0?[...s.sections.expenses.balances,...s.sections.expenses.additionalBalances]:s.sections.cogs.balances.length>0?[...s.sections.cogs.balances,...s.sections.cogs.additionalBalances]:[]}case"revenue":{const s=e;return s.sections.income.balances.length>0?[...s.sections.income.balances,...s.sections.income.additionalBalances]:s.sections.cogs.balances.length>0?[...s.sections.cogs.balances,...s.sections.cogs.additionalBalances]:s.calculatedSections.grossMargin.balances.length>0?[...s.calculatedSections.grossMargin.balances,...s.calculatedSections.grossMargin.additionalBalances]:[]}case"revenue_by_classes":{const s=e;return s.sections.income.balances.length>0?[...s.sections.income.balances,...s.sections.income.additionalBalances]:s.sections.cogs.balances.length>0?[...s.sections.cogs.balances,...s.sections.cogs.additionalBalances]:s.calculatedSections.grossMargin.balances.length>0?[...s.calculatedSections.grossMargin.balances,...s.calculatedSections.grossMargin.additionalBalances]:[]}case"cash_position":{const s=e;return[...s.cashPosition.balances,...s.cashPosition.additionalBalances]}case"cash_in_cash_out":{const s=e;return s.cashIn.balances.length>0?[...s.cashIn.balances,...s.cashIn.additionalBalances]:[...s.cashOut.balances,...s.cashOut.additionalBalances]}case"operating_expenses":{const s=e;return[...s.sections.expenses.balances,...s.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const s=e;return[...s.sections.expenses.balances,...s.sections.expenses.additionalBalances]}default:return[]}},Be={contentPaddingLeft:new D(L[0],L[0],L[0]),contentPaddingRight:new D(L[3],L[3],L[8])},ia=p.div`
|
|
@@ -323,7 +323,7 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
323
323
|
position: absolute;
|
|
324
324
|
padding-top: ${i.sp3};
|
|
325
325
|
background-color: ${e=>e.theme.colors.grey4};
|
|
326
|
-
`,la=(e,s,r=!0,l=!1)=>{switch(e.reportId){case"net_burn_or_income":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[],config:o}),x=[];return x.push(f),t.idsInOrder.forEach(n=>{Ct(n)===!0?t.sections[n].accountGroups.length>0?x.push(ve({section:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):x.push(je({sectionWithAcOnly:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):kt(n)===!0&&x.push(q({calculatedSection:t.calculatedSections[n],numOfBalances:g,title:n==="netBurnOrIncome"?t.reportTitle:d.sections[n],isLastNode:!0,config:o}))}),{config:o,headerNodes:u?[f]:[],contentNodes:x}}(e,s,r);case"net_burn_or_income_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});u&&(b.reportElementData.element.numOfBalances=7,_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=7,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[],config:o});n.push(c),u&&(_=[c]),t.idsInOrder.forEach(h=>{if(vt(h)===!0){const m=t.sections[h];m!=null&&n.push(Se({section:m,sectionType:h,numOfBalances:b,title:g.sections[h],isLastNode:!0,config:o}))}else if(jt(h)===!0){const m=t.calculatedSections[h];m!=null&&n.push(q({calculatedSection:m,numOfBalances:b,title:h==="netBurnOrIncome"?t.reportTitle:g.sections[h],isLastNode:!0,config:o}))}})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);case"revenue":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[],config:o}),x=[];return x.push(f),t.idsInOrder.forEach(n=>{yt(n)===!0?t.sections[n].accountGroups.length>0?x.push(ve({section:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):x.push(je({sectionWithAcOnly:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):St(n)===!0&&x.push(q({calculatedSection:t.calculatedSections[n],numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o}))}),{config:o,headerNodes:u?[f]:[],contentNodes:x}}(e,s,r);case"revenue_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});b.reportElementData.element.numOfBalances=7,u&&(_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=7,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[],config:o});n.push(c),u&&(_=[c]),t.idsInOrder.forEach(h=>{if(_t(h)===!0){const m=t.sections[h];m!=null&&n.push(Se({section:m,sectionType:h,numOfBalances:b,title:g.sections[h],isLastNode:!0,config:o}))}else if(wt(h)===!0){const m=t.calculatedSections[h];m!=null&&n.push(q({calculatedSection:m,numOfBalances:b,title:g.sections.grossMargin,isLastNode:!0,config:o}))}})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);case"cash_position":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=[...t.cashPosition.balances,...t.cashPosition.additionalBalances],x=t.cashPosition,n=V({balances:f,config:o}),_=he({title:y.getLocalizedStrings().chartCard.total,balances:x,config:o,numOfBalances:g}),b=W("section",[],d.sections.netCashFlow),c=me("cash_position","no_filter",o.filterAccountsWithNilBalances,o.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(t.cashPosition.accountsOrdered).map((h,m)=>ue({account:h,sectionType:"cash_position",numOfBalances:g,title:h.accountDescription,isLastNode:m===t.cashPosition.accountsOrdered.length-1,config:o,parentNodeIDs:[b]}));return{config:o,headerNodes:u?[n]:[],contentNodes:[n,_,...c]}}(e,s,r);case"cash_in_cash_out":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.cashIn.balances?[...t.cashIn.balances,...t.cashIn.additionalBalances]:t.cashOut.balances?[...t.cashOut.balances,...t.cashOut.additionalBalances]:[],config:o});return{config:o,headerNodes:u?[f]:[],contentNodes:[f,Oe({section:t.cashIn,sectionType:"cash_in",numOfBalances:g,title:d.sections.cashIn,isLastNode:!0,config:o}),Oe({section:t.cashOut,sectionType:"cash_out",numOfBalances:g,title:d.sections.cashOut,isLastNode:!0,config:o}),q({calculatedSection:t.netCashFlow,numOfBalances:g,title:d.sections.netCashFlow,isLastNode:!0,config:o})]}}(e,s,r);case"operating_expenses":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances],config:o}),x=t.sections.expenses,n=he({title:y.getLocalizedStrings().chartCard.total,balances:x,config:o,numOfBalances:g}),_=W("section",[],d.sections.expenses),b=zt("no_filter",o.filterAccountsWithNilBalances,o.filterAccountGroupsWithNilBalances),c=[];c.push(f),c.push(n);const h=b.compactedAccountGroupsSelector(t.sections.expenses.accountGroups);if(h.length!=0){const m=h.map((v,w)=>Mt({acGroup:v,sectionType:"expenses",numOfBalances:g,title:v.accountGroupName,isLastNode:w===h.length-1,config:o,parentNodeIDs:[_]}));c.push(...m)}else if(t.sections.expenses.accounts?.length!==0){const m=b.compactedAccountsSelectorVariant(t.sections.expenses.accounts),v=m.map((w,j)=>Et({account:w,sectionType:"expenses",numOfBalances:g,title:w.account.accountName,isLastNode:j===m.length-1,config:o,parentNodeIDs:[_],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:m.length>1,hasChildren:w.children.length>0,isLastNode:j===m.length-1}]}}));c.push(...v)}return{config:o,headerNodes:u?[f]:[],contentNodes:c}}(e,s,r);case"operating_expenses_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});b.reportElementData.element.numOfBalances=10,u&&(_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=10,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances],config:o}),h=t.sections.expenses,m=he({title:y.getLocalizedStrings().chartCard.total,balances:h,config:o,numOfBalances:b});n.push(c),n.push(m),u&&(_=[c]);const v=W("section",[],g.sections.expenses);t.sections.expenses.classes.forEach((w,j)=>{n.push(Ft({classNode:w,sectionType:"expenses",numOfBalances:b,title:w.class.className,isLastNode:w.isLeafClass,config:o,parentNodeIDs:[v],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:w.id.length-1,hasSibling:!1,hasChildren:w.children.length>0,isLastNode:j===t.sections.expenses.classes.length-1,name:w.class.className}]}}))})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);default:return}},da=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",K={chartWidth:"100%",barCount:8,barWidth:new D(L[6],L[8],L[10]),maxBarHeight:1},pa=({customStyle:e,chartDefaultHeight:s,chartDefaultWidth:r=K.chartWidth,barCount:l=K.barCount,barHeights:t=[.4,.5,.6,1,.3,.5,.2,.7],backgroundColor:o})=>{const u=Z(),d=I(),g=s??Q.chartHeight.value(d),f=g-L[5],x=[...Array(l)].map((n,_)=>({height:(t?.[_]||K.maxBarHeight)*g,width:K.barWidth}));return a.jsx(ga,{style:{...e,width:r,height:g,backgroundColor:o},children:a.jsx(ha,{children:x.map((n,_)=>a.jsx(ma,{children:a.jsx(tt,{speed:2,width:K.barWidth.value(d),height:f,viewBox:`0 0 100 ${f}`,preserveAspectRatio:"none",animate:!0,backgroundColor:u.colors.grey3,foregroundColor:u.colors.grey4,children:a.jsx("rect",{x:"0",y:f-n.height-20,width:"100%",height:n.height,rx:"4",ry:"4"})})},`bar-loader-${_}-${n.height}`))})})},ga=p.div`
|
|
326
|
+
`,la=(e,s,r=!0,l=!1)=>{switch(e.reportId){case"net_burn_or_income":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[],config:o}),x=[];return x.push(f),t.idsInOrder.forEach(n=>{Ct(n)===!0?t.sections[n].accountGroups.length>0?x.push(ve({section:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):x.push(je({sectionWithAcOnly:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):kt(n)===!0&&x.push(J({calculatedSection:t.calculatedSections[n],numOfBalances:g,title:n==="netBurnOrIncome"?t.reportTitle:d.sections[n],isLastNode:!0,config:o}))}),{config:o,headerNodes:u?[f]:[],contentNodes:x}}(e,s,r);case"net_burn_or_income_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});u&&(b.reportElementData.element.numOfBalances=7,_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=7,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[],config:o});n.push(c),u&&(_=[c]),t.idsInOrder.forEach(h=>{if(vt(h)===!0){const m=t.sections[h];m!=null&&n.push(Se({section:m,sectionType:h,numOfBalances:b,title:g.sections[h],isLastNode:!0,config:o}))}else if(jt(h)===!0){const m=t.calculatedSections[h];m!=null&&n.push(J({calculatedSection:m,numOfBalances:b,title:h==="netBurnOrIncome"?t.reportTitle:g.sections[h],isLastNode:!0,config:o}))}})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);case"revenue":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[],config:o}),x=[];return x.push(f),t.idsInOrder.forEach(n=>{yt(n)===!0?t.sections[n].accountGroups.length>0?x.push(ve({section:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):x.push(je({sectionWithAcOnly:t.sections[n],sectionType:n,numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o})):St(n)===!0&&x.push(J({calculatedSection:t.calculatedSections[n],numOfBalances:g,title:d.sections[n],isLastNode:!0,config:o}))}),{config:o,headerNodes:u?[f]:[],contentNodes:x}}(e,s,r);case"revenue_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});b.reportElementData.element.numOfBalances=7,u&&(_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=7,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[],config:o});n.push(c),u&&(_=[c]),t.idsInOrder.forEach(h=>{if(_t(h)===!0){const m=t.sections[h];m!=null&&n.push(Se({section:m,sectionType:h,numOfBalances:b,title:g.sections[h],isLastNode:!0,config:o}))}else if(wt(h)===!0){const m=t.calculatedSections[h];m!=null&&n.push(J({calculatedSection:m,numOfBalances:b,title:g.sections.grossMargin,isLastNode:!0,config:o}))}})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);case"cash_position":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=[...t.cashPosition.balances,...t.cashPosition.additionalBalances],x=t.cashPosition,n=V({balances:f,config:o}),_=he({title:y.getLocalizedStrings().chartCard.total,balances:x,config:o,numOfBalances:g}),b=W("section",[],d.sections.netCashFlow),c=me("cash_position","no_filter",o.filterAccountsWithNilBalances,o.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(t.cashPosition.accountsOrdered).map((h,m)=>ue({account:h,sectionType:"cash_position",numOfBalances:g,title:h.accountDescription,isLastNode:m===t.cashPosition.accountsOrdered.length-1,config:o,parentNodeIDs:[b]}));return{config:o,headerNodes:u?[n]:[],contentNodes:[n,_,...c]}}(e,s,r);case"cash_in_cash_out":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:t.cashIn.balances?[...t.cashIn.balances,...t.cashIn.additionalBalances]:t.cashOut.balances?[...t.cashOut.balances,...t.cashOut.additionalBalances]:[],config:o});return{config:o,headerNodes:u?[f]:[],contentNodes:[f,Oe({section:t.cashIn,sectionType:"cash_in",numOfBalances:g,title:d.sections.cashIn,isLastNode:!0,config:o}),Oe({section:t.cashOut,sectionType:"cash_out",numOfBalances:g,title:d.sections.cashOut,isLastNode:!0,config:o}),J({calculatedSection:t.netCashFlow,numOfBalances:g,title:d.sections.netCashFlow,isLastNode:!0,config:o})]}}(e,s,r);case"operating_expenses":return function(t,o,u=!0){const d=y.getLocalizedStrings().reports,g=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,f=V({balances:[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances],config:o}),x=t.sections.expenses,n=he({title:y.getLocalizedStrings().chartCard.total,balances:x,config:o,numOfBalances:g}),_=W("section",[],d.sections.expenses),b=zt("no_filter",o.filterAccountsWithNilBalances,o.filterAccountGroupsWithNilBalances),c=[];c.push(f),c.push(n);const h=b.compactedAccountGroupsSelector(t.sections.expenses.accountGroups);if(h.length!=0){const m=h.map((v,w)=>Mt({acGroup:v,sectionType:"expenses",numOfBalances:g,title:v.accountGroupName,isLastNode:w===h.length-1,config:o,parentNodeIDs:[_]}));c.push(...m)}else if(t.sections.expenses.accounts?.length!==0){const m=b.compactedAccountsSelectorVariant(t.sections.expenses.accounts),v=m.map((w,j)=>Et({account:w,sectionType:"expenses",numOfBalances:g,title:w.account.accountName,isLastNode:j===m.length-1,config:o,parentNodeIDs:[_],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:m.length>1,hasChildren:w.children.length>0,isLastNode:j===m.length-1}]}}));c.push(...v)}return{config:o,headerNodes:u?[f]:[],contentNodes:c}}(e,s,r);case"operating_expenses_by_classes":return function(t,o,u=!0,d=!1){const g=y.getLocalizedStrings().reports,f=y.getLocalizedStrings().common;let x=[];const n=[];let _=[];if(d===!0){const b=ne({title:f.loading,balances:[],config:o});b.reportElementData.element.numOfBalances=10,u&&(_=[b]),n.push(b),[...Array(8)].forEach((c,h)=>{let m=ie[h%4];const v=re({title:`${h}+${m}`,balances:x,config:o});v.reportElementData.element.numOfBalances=10,n.push(v)})}else{const b=o.mode==="this_period_vs_period_before"?t.filter.balancesRange.numberOfPeriods+2:t.filter.balancesRange.numberOfPeriods+1,c=V({balances:[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances],config:o}),h=t.sections.expenses,m=he({title:y.getLocalizedStrings().chartCard.total,balances:h,config:o,numOfBalances:b});n.push(c),n.push(m),u&&(_=[c]);const v=W("section",[],g.sections.expenses);t.sections.expenses.classes.forEach((w,j)=>{n.push(Ft({classNode:w,sectionType:"expenses",numOfBalances:b,title:w.class.className,isLastNode:w.isLeafClass,config:o,parentNodeIDs:[v],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:w.id.length-1,hasSibling:!1,hasChildren:w.children.length>0,isLastNode:j===t.sections.expenses.classes.length-1,name:w.class.className}]}}))})}return{config:o,headerNodes:_,contentNodes:n}}(e,s,r,l);default:return}},da=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",X={chartWidth:"100%",barCount:8,barWidth:new D(L[6],L[8],L[10]),maxBarHeight:1},pa=({customStyle:e,chartDefaultHeight:s,chartDefaultWidth:r=X.chartWidth,barCount:l=X.barCount,barHeights:t=[.4,.5,.6,1,.3,.5,.2,.7],backgroundColor:o})=>{const u=Z(),d=I(),g=s??Q.chartHeight.value(d),f=g-L[5],x=[...Array(l)].map((n,_)=>({height:(t?.[_]||X.maxBarHeight)*g,width:X.barWidth}));return a.jsx(ga,{style:{...e,width:r,height:g,backgroundColor:o},children:a.jsx(ha,{children:x.map((n,_)=>a.jsx(ma,{children:a.jsx(tt,{speed:2,width:X.barWidth.value(d),height:f,viewBox:`0 0 100 ${f}`,preserveAspectRatio:"none",animate:!0,backgroundColor:u.colors.grey3,foregroundColor:u.colors.grey4,children:a.jsx("rect",{x:"0",y:f-n.height-20,width:"100%",height:n.height,rx:"4",ry:"4"})})},`bar-loader-${_}-${n.height}`))})})},ga=p.div`
|
|
327
327
|
width: 100%;
|
|
328
328
|
height: 100%;
|
|
329
329
|
border-radius: ${i.sp2};
|
|
@@ -368,4 +368,4 @@ import{X as I,y as Z,O as y,v as Pe,V as a,a_ as Ke,L as Je,K as Qe,a$ as et,o a
|
|
|
368
368
|
align-items: center;
|
|
369
369
|
height: 100vh;
|
|
370
370
|
margin-top: ${i.sp8};
|
|
371
|
-
`,oo=e=>{const s=I(),r=Z(),[l,t]=k.useState(!1),o=y.getLocalizedStrings(),{reportLabels:u,selectedRangeReport:d,selectedClassesViewRangeReport:g,uiState:f,downloadParams:x,analytics:n,onBackClick:_,updateDownloadStateHandler:b,onAdditionalBalanceSelectionChanged:c}=e,{insights:h}=d,{selectedCOABalancesRange:m,timeframe:v,selectedAdditionalBalances:w,downloadState:j}=f,S=d.availableNumberOfPeriods!=null&&d.availableNumberOfPeriods<2,$=f.mode==="compare_mode"&&!S,C=Pe(),R=C.loggedInUserRole!=null&&!ft(C.loggedInUserRole),P=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";k.useEffect(()=>{l&&j!=="In-Progress"&&(t(!1),b("In-Progress"),async function(){await Zt({report:g!==void 0&&g.uiState.accountViewMode==="classes"?g:d,filter:d.filter,coaBalancesRange:m,isCompareModeOn:$,reportView:g!==void 0?g.uiState.accountViewMode:"account_group",classesToFilterOut:g!==void 0?g.uiState.classesToFilterOut:[],...x,reportType:R||P?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),n?.trackDownload(F(d.reportId),G(v),"excel",$),b("Completed")}())},[x,j,d.filter,l,$,m,d,g,v,n,b,R,P,e.isZeniCOAUsed]);const z=d.availableNumberOfPeriods==null||d.availableNumberOfPeriods===0||d.allTimeframeTicks.length===0,O=d.fetchState==="In-Progress"||d.fetchState==="Not-Started",B=bt([e?.reportsResyncFetchState??{fetchState:"Not-Started"},g??{fetchState:"Not-Started"}]).fetchState==="In-Progress"&&g?.uiState.accountViewMode==="classes";k.useEffect(()=>{const A=$||f.mode==="forecast_mode"?3:1;c($,w,A)},[s]);const{autoCompleteData:H,autoCompleteActions:X,scrollPosition:T,...N}=e,Y=a.jsx(et,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:z,isDownloading:j==="In-Progress"}],onDownloadClick:async A=>{if(A==="excel"){if(j==="In-Progress")return void console.log("Download is already in progress!");t(!0)}}}}});return a.jsxs(ua,{children:[a.jsx(Ke,{title:u.reportTitle,backgroundColor:r.colors.grey5,onBackClick:_,rightSideComponent:Y,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:A=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Qe.Event.search,F(d.reportId),A.type,A.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(A)}}},source:"DashboardReportPage",style:{zIndex:2}}),O?a.jsx(xa,{children:a.jsx(Je,{size:"Standard",start:!0})}):z?a.jsx(Ut,{style:{background:r.colors.grey5},emptyContentText:o.common.noReport.replace("_item-name_",`${o.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:Wt}):a.jsxs(a.Fragment,{children:[a.jsxs(fa,{windowSize:s,children:[a.jsx(Sa,{...N}),a.jsx(_a,{highlightedRangeReport:d,uiState:f}),B?a.jsx(pa,{}):a.jsx(wa,{...N}),a.jsx(ba,{children:a.jsx(Bt,{insights:h})})]}),a.jsx(ya,{scrollPosition:T,isPageFetchInProgress:B,...N})]})]})},_a=ee.memo(({highlightedRangeReport:e,uiState:s})=>{switch(e.reportId){case"net_burn_or_income":return a.jsx(ts,{highlightedRangeReport:e,uiState:s});case"revenue":return a.jsx(rs,{highlightedRangeReport:e,uiState:s});case"operating_expenses":return a.jsx(os,{highlightedRangeReport:e,uiState:s});case"cash_position":return a.jsx(Jt,{highlightedRangeReport:e});case"cash_in_cash_out":return a.jsx(qt,{highlightedRangeReport:e});default:return null}},J),wa=ee.memo(e=>{const s=I(),{selectedRangeReport:r,selectedClassesViewRangeReport:l,uiState:t,onCOABalancesRangeChanged:o}=e,u=r.availableNumberOfPeriods==null||r.availableNumberOfPeriods===0,{selectedCOABalancesRange:d,selectedAdditionalBalances:g,highlightedCOABalancesRange:f,timeframe:x}=t,n=l!==void 0&&l.uiState.accountViewMode==="classes"?l:r;return u?a.jsx(ls,{children:a.jsx(Tt,{title:y.getLocalizedStrings().chartCard.no_data_available})}):a.jsx(cs,{windowSize:s,children:a.jsx(at,{children:({height:_,width:b})=>{const c={showBarHoverBackground:!0,onCOABalancesRangeChanged:(h,m,v)=>{ds(r.firstMonthOfFY,g,r.reportId,m,h,e.analytics),o(d,v)},highlightedRange:f,isDetailPage:!0,timeframe:x,width:b,height:_};switch(n.reportId){case"net_burn_or_income":return a.jsx(ye,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"net_burn_or_income_by_classes":return a.jsx(ye,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"revenue":return a.jsx(we,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"revenue_by_classes":return a.jsx(we,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"operating_expenses":return a.jsx(_e,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"operating_expenses_by_classes":return a.jsx(_e,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"cash_position":return a.jsx(Rt,{selectedRangeReport:r,...c});case"cash_in_cash_out":return a.jsx(It,{selectedRangeReport:r,...c});default:return null}}})})},J),ya=ee.memo(e=>{const s=I(),r=Z(),{selectedRangeReport:l,selectedClassesViewRangeReport:t,uiState:o,scrollPosition:u,isZeniUser:d,onTableScroll:g,onElementCollapseStateChanged:f,onAccountBalanceClick:x,onUpdateAccountViewMode:n,onUpdateClassesToFilterOut:_,onOpenAccountViewMode:b}=e,{highlightedCOABalancesRange:c,mode:h}=o,m=l.availableNumberOfPeriods==null||l.availableNumberOfPeriods===0,v=l.availableNumberOfPeriods!=null&&l.availableNumberOfPeriods<2,w=o.mode==="compare_mode"&&!v,j=w||o.mode==="forecast_mode"?3:1,[S,$]=k.useState(void 0),[C,R]=k.useState(void 0),P=!(s==="small"||s==="medium-compact"),z=h==="forecast_mode"?"name+balances_forecast":"name+balances_actual",O=da(o.selectedAdditionalBalances),B=t!==void 0&&t.uiState.accountViewMode==="classes"?t:l,H=h==="forecast_mode"?"actual_vs_forecast":w===!0?"this_period_vs_period_before":"none",X=l.reportId==="net_burn_or_income"||l.reportId==="operating_expenses"||l.reportId==="revenue";return k.useEffect(()=>{const T={reportId:h==="forecast_mode"&&o.selectedForecast!=null?`${B.reportId}+${o.selectedForecast?.id}`:B.reportId,mode:H,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:B.bookCloseDate,firstMonthOfFY:B.firstMonthOfFY,filterAccountsWithNilBalances:h==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:ut(),showClassAccountNumber:d,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:B.dataAvailable};if(S!=null&&J(C,B)&&e.isPageFetchInProgress!==!0){const N=function(Y,A,Xe,qe=!0){Object.assign(Y.config,A);const be=V({balances:na(Xe),config:A});return{config:A,headerNodes:qe?[be]:[],contentNodes:[be,...Y.contentNodes.slice(1)]}}(S,T,B,P);$(N)}else{const N=la(B,T,P,e.isPageFetchInProgress);R(B),$(N)}},[z,w,B,e.isPageFetchInProgress]),a.jsx(ra,{windowSize:s,children:m?a.jsx(Vt,{}):S!=null?a.jsxs(ia,{children:[a.jsx(Dt,{backgroundColor:new ot(r.colors.grey4),rootNodes:S,type:z,compareMode:O,isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:Be.contentPaddingLeft.value(s),right:Be.contentPaddingRight.value(s)},onAccountClick:x==null?void 0:(T,N,Y)=>{x(T,N,Y)},nodeOpenStatus:o.nodeCollapseState,scrollPosition:u,onCompareModeChanged:T=>{e.analytics?.trackCompareFilterChange(T==="compare_mode_percent"?"percentage":"amount",F(l.reportId),G(o.timeframe),"dropdown");const N=T==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(w,[N],c?.numberOfPeriods??j)},onScroll:g,onNodeCollapseToggled:f}),X===!0&&t!==void 0?a.jsx(ca,{children:a.jsx(Ot,{reportId:l.reportId,nodes:t.classHierarchy,classesListFetchState:t.fetchState,selectedView:t.uiState.accountViewMode,showClassAccountNumber:d,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:(T,N)=>{T!==t?.uiState.accountViewMode&&n?.(T),N&&_?.(N)},classesToBeFilteredOut:t.classesToFilterOut,isClassViewDisabled:o.mode==="forecast_mode",firstMonthOfFY:t.firstMonthOfFY,onOpenAccountViewMode:b,onResyncReports:e.onResyncReports,isPageFetchInProgress:e.isPageFetchInProgress,lastRefreshSuccessTime:t?.status?.lastRefreshSuccessTime})}):null]}):null})},J),Sa=ee.memo(e=>{const{selectedRangeReport:s,uiState:r,analytics:l,onThisPeriodChanged:t,onTimeframeSelectionChanged:o,onCOABalancesRangeChanged:u,onAdditionalBalanceSelectionChanged:d}=e,g=Pe(),{allTimeframeTicks:f}=s,{selectedCOABalancesRange:x,timeframe:n}=r,_=s.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],b=s.availableNumberOfPeriods!=null&&s.availableNumberOfPeriods<2,c=r.mode==="compare_mode"&&!b,h=g.connectionName!=="netsuite"&&(s.reportId==="net_burn_or_income"||s.reportId==="operating_expenses"||s.reportId==="revenue");let m,v;switch(s.reportId){case"revenue":case"net_burn_or_income":case"operating_expenses":m=s.forecastList?.forecasts,v=s.forecastList?.fetchState;break;default:m=void 0}const w=s.availableNumberOfPeriods==null||s.availableNumberOfPeriods===0,j=w||s.availableNumberOfPeriods===1,[S,$]=k.useState(!1),C=xt("https://meetings.hubspot.com/svitlana-grankovska"),R=r.mode,P=r.selectedForecast;k.useEffect(()=>{R==="forecast_mode"&&v==="Completed"&&m?.length===0&&($(!0),document.body.style.overflow="hidden")},[v,R,m]),k.useEffect(()=>{R==="forecast_mode"&&P!=null&&m!=null&&m.length>0&&e.analytics?.trackForecastSwitch(F(s.reportId),m[P.index].name)},[P]);const z=(O,B,H)=>{B===!0&&e.analytics?.trackForecastVsActualMode(F(s.reportId),"",O==="forecast_mode"),e.onForecastToggle?.(O,H)};return a.jsx(oa,{children:a.jsxs(aa,{children:[a.jsx(sa,{children:a.jsx(ta,{timeframe:{allowedTimeframes:_,selectedTimeframe:n,onTimeframeSelectionChanged:O=>{e.analytics?.trackTimeframeSwitch(G(O),F(s.reportId)),o?.(O),e.uiState.mode==="compare_mode"&&!c&&d(c,c?["this_period_vs_last_period_percent"]:[],c?3:1)}},compareToggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:!j&&c,isToggleDisabled:j,onValueChanged:O=>{const B=O===!0||r.mode==="forecast_mode"?3:1;l?.trackCompareMode(O,F(s.reportId),G(n)),d(O,O?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],B)}},forecastListWithToggle:h===!0?{isOn:r.mode==="forecast_mode",isToggleDisabled:j,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:m,isForecastValid:O=>!!O.forecastPeriod.startDate.isBefore(s.dataAvailable?.endDate),onForecastSelectionChanged:(O,B)=>z("forecast_mode",!1,{id:O,index:B}),onForecastToggleChanged:O=>{z(O===!0?"forecast_mode":"off",!0)}}:void 0})}),S==1?a.jsx(Ps,{meetingUrl:C,reportId:s.reportId,onClose:()=>{$(!1),e.onForecastToggle?.("off"),document.body.style.overflow="auto",d(c,c?["this_period_vs_last_period_percent"]:[],1)}}):null,w?null:a.jsx(Pt,{firstMonthOfFY:s.firstMonthOfFY,timeframe:n,timeframeTicks:f,selection:{selectedTicks:xe(f,x),highlightedOfSelectedTicks:xe(f,x)},onClick:(O,B)=>{$e(s.firstMonthOfFY,c,s.reportId,n,B,e.analytics),t(B)},onSelectionChanged:(O,B)=>{const H=Lt(f,O.fromEnd),X=Nt(f,B);$e(s.firstMonthOfFY,c,s.reportId,n,X.thisPeriod,e.analytics),u(H,X)}})]})})},J);export{oo as default};
|
|
371
|
+
`,oo=e=>{const s=I(),r=Z(),[l,t]=k.useState(!1),o=y.getLocalizedStrings(),{reportLabels:u,selectedRangeReport:d,selectedClassesViewRangeReport:g,uiState:f,downloadParams:x,analytics:n,onBackClick:_,updateDownloadStateHandler:b,onAdditionalBalanceSelectionChanged:c}=e,{insights:h}=d,{selectedCOABalancesRange:m,timeframe:v,selectedAdditionalBalances:w,downloadState:j}=f,S=d.availableNumberOfPeriods!=null&&d.availableNumberOfPeriods<2,$=f.mode==="compare_mode"&&!S,C=Pe(),R=C.loggedInUserRole!=null&&!ft(C.loggedInUserRole),P=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";k.useEffect(()=>{l&&j!=="In-Progress"&&(t(!1),b("In-Progress"),async function(){await Zt({report:g!==void 0&&g.uiState.accountViewMode==="classes"?g:d,filter:d.filter,coaBalancesRange:m,isCompareModeOn:$,reportView:g!==void 0?g.uiState.accountViewMode:"account_group",classesToFilterOut:g!==void 0?g.uiState.classesToFilterOut:[],...x,reportType:R||P?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),n?.trackDownload(F(d.reportId),G(v),"excel",$),b("Completed")}())},[x,j,d.filter,l,$,m,d,g,v,n,b,R,P,e.isZeniCOAUsed]);const z=d.availableNumberOfPeriods==null||d.availableNumberOfPeriods===0||d.allTimeframeTicks.length===0,O=d.fetchState==="In-Progress"||d.fetchState==="Not-Started",B=bt([e?.reportsResyncFetchState??{fetchState:"Not-Started"},g??{fetchState:"Not-Started"}]).fetchState==="In-Progress"&&g?.uiState.accountViewMode==="classes";k.useEffect(()=>{const A=$||f.mode==="forecast_mode"?3:1;c($,w,A)},[s]);const{autoCompleteData:H,autoCompleteActions:q,scrollPosition:T,...N}=e,Y=a.jsx(et,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:z,isDownloading:j==="In-Progress"}],onDownloadClick:async A=>{if(A==="excel"){if(j==="In-Progress")return void console.log("Download is already in progress!");t(!0)}}}}});return a.jsxs(ua,{children:[a.jsx(Xe,{title:u.reportTitle,backgroundColor:r.colors.grey5,onBackClick:_,rightSideComponent:Y,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:A=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Qe.Event.search,F(d.reportId),A.type,A.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(A)}}},source:"DashboardReportPage",style:{zIndex:2}}),O?a.jsx(xa,{children:a.jsx(Ke,{size:"Standard",start:!0})}):z?a.jsx(Ut,{style:{background:r.colors.grey5},emptyContentText:o.common.noReport.replace("_item-name_",`${o.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:Wt}):a.jsxs(a.Fragment,{children:[a.jsxs(fa,{windowSize:s,children:[a.jsx(Sa,{...N}),a.jsx(_a,{highlightedRangeReport:d,uiState:f}),B?a.jsx(pa,{}):a.jsx(wa,{...N}),a.jsx(ba,{children:a.jsx(Bt,{insights:h})})]}),a.jsx(ya,{scrollPosition:T,isPageFetchInProgress:B,...N})]})]})},_a=ee.memo(({highlightedRangeReport:e,uiState:s})=>{switch(e.reportId){case"net_burn_or_income":return a.jsx(ts,{highlightedRangeReport:e,uiState:s});case"revenue":return a.jsx(rs,{highlightedRangeReport:e,uiState:s});case"operating_expenses":return a.jsx(os,{highlightedRangeReport:e,uiState:s});case"cash_position":return a.jsx(Kt,{highlightedRangeReport:e});case"cash_in_cash_out":return a.jsx(Jt,{highlightedRangeReport:e});default:return null}},K),wa=ee.memo(e=>{const s=I(),{selectedRangeReport:r,selectedClassesViewRangeReport:l,uiState:t,onCOABalancesRangeChanged:o}=e,u=r.availableNumberOfPeriods==null||r.availableNumberOfPeriods===0,{selectedCOABalancesRange:d,selectedAdditionalBalances:g,highlightedCOABalancesRange:f,timeframe:x}=t,n=l!==void 0&&l.uiState.accountViewMode==="classes"?l:r;return u?a.jsx(ls,{children:a.jsx(Tt,{title:y.getLocalizedStrings().chartCard.no_data_available})}):a.jsx(cs,{windowSize:s,children:a.jsx(at,{children:({height:_,width:b})=>{const c={showBarHoverBackground:!0,onCOABalancesRangeChanged:(h,m,v)=>{ds(r.firstMonthOfFY,g,r.reportId,m,h,e.analytics),o(d,v)},highlightedRange:f,isDetailPage:!0,timeframe:x,width:b,height:_};switch(n.reportId){case"net_burn_or_income":return a.jsx(ye,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"net_burn_or_income_by_classes":return a.jsx(ye,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"revenue":return a.jsx(we,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"revenue_by_classes":return a.jsx(we,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"operating_expenses":return a.jsx(_e,{selectedRangeReport:r,...c,mode:e.uiState.mode});case"operating_expenses_by_classes":return a.jsx(_e,{selectedRangeReport:l,...c,mode:e.uiState.mode});case"cash_position":return a.jsx(Rt,{selectedRangeReport:r,...c});case"cash_in_cash_out":return a.jsx(It,{selectedRangeReport:r,...c});default:return null}}})})},K),ya=ee.memo(e=>{const s=I(),r=Z(),{selectedRangeReport:l,selectedClassesViewRangeReport:t,uiState:o,scrollPosition:u,isZeniUser:d,onTableScroll:g,onElementCollapseStateChanged:f,onAccountBalanceClick:x,onUpdateAccountViewMode:n,onUpdateClassesToFilterOut:_,onOpenAccountViewMode:b}=e,{highlightedCOABalancesRange:c,mode:h}=o,m=l.availableNumberOfPeriods==null||l.availableNumberOfPeriods===0,v=l.availableNumberOfPeriods!=null&&l.availableNumberOfPeriods<2,w=o.mode==="compare_mode"&&!v,j=w||o.mode==="forecast_mode"?3:1,[S,$]=k.useState(void 0),[C,R]=k.useState(void 0),P=!(s==="small"||s==="medium-compact"),z=h==="forecast_mode"?"name+balances_forecast":"name+balances_actual",O=da(o.selectedAdditionalBalances),B=t!==void 0&&t.uiState.accountViewMode==="classes"?t:l,H=h==="forecast_mode"?"actual_vs_forecast":w===!0?"this_period_vs_period_before":"none",q=l.reportId==="net_burn_or_income"||l.reportId==="operating_expenses"||l.reportId==="revenue";return k.useEffect(()=>{const T={reportId:h==="forecast_mode"&&o.selectedForecast!=null?`${B.reportId}+${o.selectedForecast?.id}`:B.reportId,mode:H,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:B.bookCloseDate,firstMonthOfFY:B.firstMonthOfFY,filterAccountsWithNilBalances:h==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:ut(),showClassAccountNumber:d,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:B.dataAvailable};if(S!=null&&K(C,B)&&e.isPageFetchInProgress!==!0){const N=function(Y,A,qe,Je=!0){Object.assign(Y.config,A);const be=V({balances:na(qe),config:A});return{config:A,headerNodes:Je?[be]:[],contentNodes:[be,...Y.contentNodes.slice(1)]}}(S,T,B,P);$(N)}else{const N=la(B,T,P,e.isPageFetchInProgress);R(B),$(N)}},[z,w,B,e.isPageFetchInProgress]),a.jsx(ra,{windowSize:s,children:m?a.jsx(Vt,{}):S!=null?a.jsxs(ia,{children:[a.jsx(Dt,{backgroundColor:new ot(r.colors.grey4),rootNodes:S,type:z,compareMode:O,isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:Be.contentPaddingLeft.value(s),right:Be.contentPaddingRight.value(s)},onAccountClick:x==null?void 0:(T,N,Y)=>{x(T,N,Y)},nodeOpenStatus:o.nodeCollapseState,scrollPosition:u,onCompareModeChanged:T=>{e.analytics?.trackCompareFilterChange(T==="compare_mode_percent"?"percentage":"amount",F(l.reportId),G(o.timeframe),"dropdown");const N=T==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(w,[N],c?.numberOfPeriods??j)},onScroll:g,onNodeCollapseToggled:f}),q===!0&&t!==void 0?a.jsx(ca,{children:a.jsx(Ot,{reportId:l.reportId,nodes:t.classHierarchy,classesListFetchState:t.fetchState,selectedView:t.uiState.accountViewMode,showClassAccountNumber:d,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:(T,N)=>{T!==t?.uiState.accountViewMode&&n?.(T),N&&_?.(N)},classesToBeFilteredOut:t.classesToFilterOut,isClassViewDisabled:o.mode==="forecast_mode",firstMonthOfFY:t.firstMonthOfFY,onOpenAccountViewMode:b,onResyncReports:e.onResyncReports,isPageFetchInProgress:e.isPageFetchInProgress,lastRefreshSuccessTime:t?.status?.lastRefreshSuccessTime})}):null]}):null})},K),Sa=ee.memo(e=>{const{selectedRangeReport:s,uiState:r,analytics:l,onThisPeriodChanged:t,onTimeframeSelectionChanged:o,onCOABalancesRangeChanged:u,onAdditionalBalanceSelectionChanged:d}=e,g=Pe(),{allTimeframeTicks:f}=s,{selectedCOABalancesRange:x,timeframe:n}=r,_=s.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],b=s.availableNumberOfPeriods!=null&&s.availableNumberOfPeriods<2,c=r.mode==="compare_mode"&&!b,h=g.connectionName!=="netsuite"&&(s.reportId==="net_burn_or_income"||s.reportId==="operating_expenses"||s.reportId==="revenue");let m,v;switch(s.reportId){case"revenue":case"net_burn_or_income":case"operating_expenses":m=s.forecastList?.forecasts,v=s.forecastList?.fetchState;break;default:m=void 0}const w=s.availableNumberOfPeriods==null||s.availableNumberOfPeriods===0,j=w||s.availableNumberOfPeriods===1,[S,$]=k.useState(!1),C=xt("https://meetings.hubspot.com/svitlana-grankovska"),R=r.mode,P=r.selectedForecast;k.useEffect(()=>{R==="forecast_mode"&&v==="Completed"&&m?.length===0&&($(!0),document.body.style.overflow="hidden")},[v,R,m]),k.useEffect(()=>{R==="forecast_mode"&&P!=null&&m!=null&&m.length>0&&e.analytics?.trackForecastSwitch(F(s.reportId),m[P.index].name)},[P]);const z=(O,B,H)=>{B===!0&&e.analytics?.trackForecastVsActualMode(F(s.reportId),"",O==="forecast_mode"),e.onForecastToggle?.(O,H)};return a.jsx(oa,{children:a.jsxs(aa,{children:[a.jsx(sa,{children:a.jsx(ta,{timeframe:{allowedTimeframes:_,selectedTimeframe:n,onTimeframeSelectionChanged:O=>{e.analytics?.trackTimeframeSwitch(G(O),F(s.reportId)),o?.(O),e.uiState.mode==="compare_mode"&&!c&&d(c,c?["this_period_vs_last_period_percent"]:[],c?3:1)}},compareToggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:!j&&c,isToggleDisabled:j,onValueChanged:O=>{const B=O===!0||r.mode==="forecast_mode"?3:1;l?.trackCompareMode(O,F(s.reportId),G(n)),d(O,O?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],B)}},forecastListWithToggle:h===!0?{isOn:r.mode==="forecast_mode",isToggleDisabled:j,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:m,isForecastValid:O=>!!O.forecastPeriod.startDate.isBefore(s.dataAvailable?.endDate),onForecastSelectionChanged:(O,B)=>z("forecast_mode",!1,{id:O,index:B}),onForecastToggleChanged:O=>{z(O===!0?"forecast_mode":"off",!0)}}:void 0})}),S==1?a.jsx(Ps,{meetingUrl:C,reportId:s.reportId,onClose:()=>{$(!1),e.onForecastToggle?.("off"),document.body.style.overflow="auto",d(c,c?["this_period_vs_last_period_percent"]:[],1)}}):null,w?null:a.jsx(Pt,{firstMonthOfFY:s.firstMonthOfFY,timeframe:n,timeframeTicks:f,selection:{selectedTicks:xe(f,x),highlightedOfSelectedTicks:xe(f,x)},onClick:(O,B)=>{$e(s.firstMonthOfFY,c,s.reportId,n,B,e.analytics),t(B)},onSelectionChanged:(O,B)=>{const H=Lt(f,O.fromEnd),q=Nt(f,B);$e(s.firstMonthOfFY,c,s.reportId,n,q.thisPeriod,e.analytics),u(H,q)}})]})})},K);export{oo as default};
|