@zeniai/web-cockpit-ui 1.13.91-prod → 1.13.92-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---jqahtW-DnJlZXJA.js → ACHDetailsPage-DSxVnTLA-DXaPhpBb.js} +1 -1
- package/dist/assets/{AIPerformancePage-CqtdCyg8-CEIQfHdy.js → AIPerformancePage-DpJmdFIS-DdYjoAnf.js} +36 -36
- package/dist/assets/{AccountInfoPage-Bj1CYa-r-C5F-Leu2.js → AccountInfoPage-UxE6vaxM-CTCDVeHj.js} +2 -2
- package/dist/assets/AccountInfoPageContent-B8luWP8D-BvO-xoVa.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-B4UwcNN9-DTaBhUge.js → AccountReconDetailsDrawerPage-CRuSLa04-C6RSAAh5.js} +18 -18
- package/dist/assets/AccountRow-DVnBiB7_-BUb357r1.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-DJRAw09x-CDwLvvA4.js → AccountsPromoCardStack-oPvi6hmo-Cb1NCYmc.js} +26 -26
- package/dist/assets/{AddAddressForCardDrawer-C16ksTIf-B6JjehbJ.js → AddAddressForCardDrawer-Bl8FShie-B0Exe6lR.js} +1 -1
- package/dist/assets/{AddToWalletPage-CDP1oPrv-CxCKIfKE.js → AddToWalletPage-BykgUTfa-Cb4sl07y.js} +22 -22
- package/dist/assets/{AgingReportsPage-BE4plS7V-3TKSPA3a.js → AgingReportsPage-CtpuS77Y-CRkQ2tHo.js} +7 -7
- package/dist/assets/{AllUserItems-hoI2_gnV-BLP0YBON.js → AllUserItems-zqRosy03-ampV7sMY.js} +8 -8
- package/dist/assets/{ApAgingDetailPage-Lxprtz8c-BEC8jKJb.js → ApAgingDetailPage-B4dHhJE1-DX7CQmyB.js} +2 -2
- package/dist/assets/{AppBasePage-DNOkJf4q--8-X2sXp.js → AppBasePage-ntAldChd-Da_5AGnO.js} +1 -1
- package/dist/assets/{AppDrawerContent-DG2Jr298-CbWkIlEM.js → AppDrawerContent-LRG0OW3a-BgVe2pK0.js} +11 -11
- package/dist/assets/{ApprovalRulesSettingsPage-DnKXln0A-Zj5-kWYr.js → ApprovalRulesSettingsPage-CFCbNOcB-CE0uOkBi.js} +1 -1
- package/dist/assets/ArAgingChart-BmfMCB8_-Bg3m3QlY.js +24 -0
- package/dist/assets/{ArAgingDetailPage-Djsocm6M-C26Jn884.js → ArAgingDetailPage-C2lhYsGV-BhHfiwwM.js} +3 -3
- package/dist/assets/{AttachmentView-C3AzH7cN-BUOusCJ1.js → AttachmentView-CQlsMYN3-DG4dPEyp.js} +8 -8
- package/dist/assets/{BankAccountSection-6zosSfPV-_bfleBk6.js → BankAccountSection-D1tQzNSO-piXQT6-V.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CWeN3me0-CDpqfTVJ.js → BankAccountWarningSection-Dj_S6brX-2DYBSMY8.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-C6e0pgD4-0H1TdsJc.js → BankConnectionsSettingsPage-UQAJXShM-C8thl88u.js} +22 -22
- package/dist/assets/{BillDetailPage-DyIokQbf-DgpBGeoJ.js → BillDetailPage-BOy1MkMT-CTieBS_0.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-BOhQfwEj-BCMyOQcf.js → BillPayApprovalRuleDetailPage-C7c04fyW-D_3vBsw2.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-CSua3b4v-BNVDIyiJ.js → BillPayApprovalRulesPage-D7vn36vA-CcaFc_r3.js} +7 -7
- package/dist/assets/{BillPayPromoPage-CtenNypw-BC9LkoWX.js → BillPayPromoPage-VCQ0v0Ko-_chCPS2P.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-CAnvQ_-Q-CbyucZLN.js → BillPaySetUpPage-MD1PbTMB-DAVLcuLh.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CjSAhEFl-BzqmoSoH.js → BillingSettingsPage-B0U9RKLC-CSDiDt5p.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-B62rj2kN-DhbxqMjq.js → BillsBulkReviewDrawerPage-CStmvhgL-CRjbCjmC.js} +1 -1
- package/dist/assets/{BoxItem-Cqmd_7h4-Dv6Gxo6e.js → BoxItem-D3v5T6bP-DCh7smhZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-BIba2-zs-BbKHm-00.js +140 -0
- package/dist/assets/{CardNumberSubText-DszoXtgg-DZyC1JnT.js → CardNumberSubText-DoWj5vAy-CUdY7eYA.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DAwARNZD-7CF1-wWW.js → CashbackDetailPage-CPz0J2HA-mlCo9BqT.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-BzbR-Z63-B8EROlnT.js → ChargeCardDetailPage-DxE5h1S5-_Ar3evhS.js} +29 -29
- package/dist/assets/{ChargeCardListPage-DSOp7sFg-BUxYEe2Y.js → ChargeCardListPage-fXayrykw-DfSXe2y4.js} +10 -10
- package/dist/assets/{ChargeCardListTable-BE4it4le-DayjC6nz.js → ChargeCardListTable-C-WxFg6W-ZTAQI24j.js} +103 -103
- package/dist/assets/ChargeCardPromoPage-CiwWzvym-CQS1Kn9Z.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-Dm_N5oDM-Dwe310b8.js → ChargeCardSetupPage-ByLkUH5I-CAqoYnxa.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-Dhqs5CF4-De2hPf6C.js → ChargeCardStatementsPage-Dsv5AXrZ-DLsXp3ds.js} +2 -2
- package/dist/assets/{ChargeCardUtils-oF0M6Gmc-C7CbDHyH.js → ChargeCardUtils-CVC43_6w-DTPKdzGf.js} +1 -1
- package/dist/assets/{ChaseOverlay-DPgGIuyV-CJPjKqgA.js → ChaseOverlay-CHWBgNa9-BGn2Q_2a.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DySu5_BH-zAFSAP0i.js +206 -0
- package/dist/assets/{CollapsableReportTable-DMr2UDgH-BRQiHTxy.js → CollapsableReportTable-ZObwzBbY-BfOvomCm.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-B_cIues7-Cxl-k5rk.js → CompanyOfficerDetailsSection-DVG0lvX--Dfy9v0Wy.js} +19 -19
- package/dist/assets/{CompanyPassportCard-CHF83hfN-Co_424o0.js → CompanyPassportCard-DBZRV0g0-BA5CzU7Q.js} +2 -2
- package/dist/assets/{CompanyPassportPage-C5W3KcDY-9FetRhxp.js → CompanyPassportPage-BoaNol0L-DnxxOJfB.js} +17 -17
- package/dist/assets/CompleteProfile-nkRKLJTF-D06O2tPg.js +36 -0
- package/dist/assets/{ConfettiBurst-DVT9EpwF-DojTLrIM.js → ConfettiBurst-BYoGZ66F-DY-7GLNq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DVbYQaWM-CbAPJPq5.js → CreateOrEditVendorPage-C1Yx8t4M-BzNtZfYl.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-D2qT7vsE-6HiNR28B.js → CreditCardPaymentDrawerPage-DlnR16jr-Cp09nlhb.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-7cmMRTQm-ByUK3A64.js → CreditCardPaymentPlgSection-CZ2vyMiF-CAkrDs6q.js} +9 -9
- package/dist/assets/{CurrencySelectField-ClhIJFVw-Cuj7jFbB.js → CurrencySelectField-vH1oB0K8-B5AHvAUJ.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-D-Ihd-H0-C2bq2dEV.js → CustomerOnboardingActivationPage-rpZmgNZo-CwICpwxp.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-a_kK-7zZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CUxNOK4z-DK4_uIa1.js → CustomerOnboardingDetailPageSkeleton-CFIeHxxw-SHM_Ui8B.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-B9ts3Tla-DKUZswXj.js → CustomerOnboardingNoStepsPage-BueMiyFl-46-BK9fl.js} +7 -7
- package/dist/assets/CustomerOnboardingPage-CmHXtB9v-BJU0moTi.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-iSJtAhvu-BHz78EGH.js → CustomerOnboardingProductSuitePage-I9pftf_j-DOK-Bf5L.js} +5 -5
- package/dist/assets/{Dashboard-SKeHZ5QY-DF211AQA.js → Dashboard-DcfkiicK-D3UJUCYb.js} +38 -38
- package/dist/assets/DashboardReportPage-B7J8yZR6-B09J8zzA.js +349 -0
- package/dist/assets/{DepositAccTransactionItem-DJNio75H-Dxf2gNvA.js → DepositAccTransactionItem-CP_2AL3M-BdaPu6PV.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DTIjlF2l-BfQK5oMo.js → DepositAccTransactionListPage-C4o1y1mJ-KyIyoawm.js} +4 -4
- package/dist/assets/{DocumentSecurityBanner-CVNWDvAg-BtG0xkpK.js → DocumentSecurityBanner-C5w0d_S8-DMiwYsyK.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-t0Ebo518-CZtrAoDV.js +21 -0
- package/dist/assets/{DownloadOverlay-BLj0xso_-C6DwpnXr.js → DownloadOverlay-CPW9ebxu-B84vZ8Vf.js} +1 -1
- package/dist/assets/{DrawerPage-CEetzMMx-IRv71ZvX.js → DrawerPage-Xc2rQipJ-CbzWMzby.js} +1 -1
- package/dist/assets/{EditPeoplePage-DDUuO0Nh-DqRnFx-k.js → EditPeoplePage-CF5UleI0-DHfURipS.js} +8 -8
- package/dist/assets/{EditReimbursementDetailPage-CT8mqYr5-BidGZIIe.js → EditReimbursementDetailPage-DGCkOykv-BxliJYVA.js} +24 -24
- package/dist/assets/{EntityDetailPage-DMh6o0bo-pHSPNKBZ.js → EntityDetailPage-BykQZo8S-TLciQOdt.js} +1 -1
- package/dist/assets/{EntitySummarySection-tK_X4uAf-Dp0ODS-o.js → EntitySummarySection-Dw4PBcg_-D8XPKjkN.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CLUiYjKg-29WBaTXV.js → ExpenseAutomationOverviewPage-BwAaZVq3-DULdspcH.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-C9biTgak-CqBGDzCQ.js → ExpenseAutomationPage-Cqiyk-AY-Cbn2hM3p.js} +82 -82
- package/dist/assets/{ExpressPayPage-DpAixmcQ-DRJERqMh.js → ExpressPayPage-D0lCczvw-DeekuCPU.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-BohUqOFz-C7UREL2T.js → FeaturePreviewPage-CxZIUB8l-xGc8umN-.js} +1 -1
- package/dist/assets/{FollowStepsSection-BAUXUzTr-Bt6EnCL_.js → FollowStepsSection-CILr1_vc-DOHzLCEi.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-BxYHNkut-YQAMqbD_.js → GlobalReviewListPage-DL6H7PZG-CcFAQ4Jd.js} +8 -8
- package/dist/assets/{HelpButton-8AQIbLQM-BGmSYuu4.js → HelpButton-CkSfhBfN-BCuT-w0J.js} +2 -2
- package/dist/assets/{InformationCardStack-76GlZ-Bq-D2NuF640.js → InformationCardStack-i76c5dym-B_ZpROXq.js} +2 -2
- package/dist/assets/{InsightsCardStack-CvOFi2Uu-CMXkT3ON.js → InsightsCardStack-wcWhovKK-DSw729j8.js} +9 -9
- package/dist/assets/{InsightsSection-DyF8JZIR-Ba4Edr3x.js → InsightsSection-CCzgI0uK-wk2msd_s.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-mys0-i40-D6hpCjXM.js → IntegrationsSettingsPage-B2CDE2Xd-D7F50RmA.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-km4qEcXH-BNeowmSn.js → InternationalWireSwiftDetailsPage-DNT75nXv-Ugsofr3W.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-DauhGM3c-FV1PNbfL.js → InternationalWireVerificationPage-BDxujQK--CFeRgIkU.js} +5 -5
- package/dist/assets/{InviteFormPage-FSL8fEXT-DcCB77N5.js → InviteFormPage-BnLBPR7X-QQpB8eQo.js} +16 -16
- package/dist/assets/{InvitePageListView-zaQ1xEHJ-bdUJ0_yl.js → InvitePageListView-7mhz_Fyy-D6doua_f.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BNB36i8Y-fBOLcBoL.js → InvitePeoplePage-B8gb9N_8-DX1GZlvh.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-FXrB92T6-Ee1Ti_S1.js → InvoiceUploadSection-Bes1nCJn-Be4DogKt.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-D3cUp2DE-BtI5RGZ7.js → IssueChargeCardPage-DC3yIsQd-D0BAohGU.js} +21 -21
- package/dist/assets/{LabeledAddressValue-BF6r800B-_Leb_eWa.js → LabeledAddressValue-Dtw8vM0g-D81z6ltq.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DYelJL4d-B8hx-xCL.js → LabeledAddressValueField-D72yUpQl-C0ZR7mu4.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-B2ATKJBH-BJtdB2bJ.js → LabeledControlledCheckBoxField-BFaru2xf-AfZiR_o0.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B9zUAA6L-D7rl6n6N.js → LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js} +6 -6
- package/dist/assets/LabeledDocumentField-aYYBY16j-D9fngETw.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-Co7u6hHL-Cpugeu34.js +59 -0
- package/dist/assets/{LabeledText-C34I_iEo-CF4V70ja.js → LabeledText-BrOLGzO5-CQVuQAJd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-Ce6EEFHl.js → LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-B8_Gy80w.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-Caj0_1zM-C242ITAr.js → LabeledZeniRolesDropDownField-WXH8xLJq-Bz0_UVs1.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-DLmZGscZ-zCMuKt6w.js → LinkJETransactionPage-NFV4Vo3i-Dh75sd9Q.js} +12 -12
- package/dist/assets/{LowBalancePopup-ll1SesgY-B6jGvSbo.js → LowBalancePopup-Bxkd2pBR-DnLeMaGm.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DXzjYrdU-Bp3Pui0J.js → MagicLinkACHDetailsPage-BJFlUq7i-CR2iAlWE.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CUwp46Wf-D6GYUui4.js → MagicLinkDomesticWireDetailsPage-CTuaNol6-CwHBeiVQ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B_h0EHoZ-CNTurwbH.js → MagicLinkInternationalWireDetailsPage-L2dPsfWM-jS2Sj2EL.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BX4E-l5M-DcLhDo6l.js → MagicLinkSuccessPage-DutanrSJ-BcHGJ4_T.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DHe9TfVe-BOSN41pz.js → MagicLinkTitleSection-5B8jYoBn-ChnkNHHY.js} +2 -2
- package/dist/assets/MailingDetailsSection-DwWeiSC0-CYpVyPYc.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-D4tz-H5i-DRJag4hu.js → MeetingCalenderPopup-rC3PQdjG-DZoBtMzd.js} +3 -3
- package/dist/assets/{Menu-C9u3eDJk-B6BTFoM9.js → Menu-CrSQ1yNo-Cx3bEBb1.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-DVp3h4c0-DektOgAW.js → MyBankConnectionsSettingsPage-CJjW9ymP-BqJ36Kdj.js} +8 -8
- package/dist/assets/{MyPendingActivationChargeCardListPage-BTk8mY7B-C0Py-Esb.js → MyPendingActivationChargeCardListPage-CvxqOjc7-DSUp87U3.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BdcDAwKZ-CUpx3w30.js → MyProfileSettingsPage-BX5dXulH-rLCsz38p.js} +9 -9
- package/dist/assets/{NavBarWithPicker-DbSWvh0o-CjlAab2L.js → NavBarWithPicker-CuVAj7o5-QRyCYrfU.js} +4 -4
- package/dist/assets/{NavigationArrow-BP8cU19I-B-iknftj.js → NavigationArrow-BPQ9vRqR-CA2ua3KM.js} +1 -1
- package/dist/assets/{NavigationDots-nvOimTil-DT9B51FC.js → NavigationDots-Toh5TKEv-D4TuvGNx.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D-imjD0M-DTBK5g17.js → NewGlobalMerchantPage-B4r1haCm-V82_isUI.js} +6 -6
- package/dist/assets/NoDataChart-CVM-QPHf-C-oyhVAy.js +26 -0
- package/dist/assets/{NoDataTable-d0_62BR0-CxXAVuhp.js → NoDataTable-CM-tApqo-CD71WwmK.js} +1 -1
- package/dist/assets/{NotFoundPage-BydQGX11-Dq8fbiEG.js → NotFoundPage-I-EBmx2b-H5l_OBUP.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BIzaZFzy-JxZ4N9IZ.js → NotificationSettingsPage-CtZ7hdMN-D-_tIuJn.js} +6 -6
- package/dist/assets/NotificationsListConfig-BAKipCDG-DNDbmhPU.js +1 -0
- package/dist/assets/{NotificationsPage-BdI4E6uL-Dtdtsrxb.js → NotificationsPage-xyLmK3l7-D0WoPK5r.js} +21 -21
- package/dist/assets/{OpExByVendorPage-Dm90CRYi-CRnxfwgA.js → OpExByVendorPage-B63DEuJM-BARCJc78.js} +5 -5
- package/dist/assets/{OverlayContainerPage-nhe7xtoR-B2VuCGmE.js → OverlayContainerPage-C0rUb6-5-BDWmQRwQ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DhbFHH25-B_jOsETc.js → PandLWithForecastPage-uY-ajYp4-Lez30LQU.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Debi_lWf-DgZH-stN.js → PaymentAccountSetupBillingAddressSection-DM9NYbmX-C_WC5GD-.js} +6 -6
- package/dist/assets/{PeoplePage-BACu55RO-Pf-QB0XE.js → PeoplePage-DPZj6XeQ-87NclcP_.js} +24 -24
- package/dist/assets/{PortfolioAllocationFormPage-Cjz_E3BK-0agDNn7e.js → PortfolioAllocationFormPage-De56plDa-D_5OdoiP.js} +3 -3
- package/dist/assets/{PortfolioDetails-CS2st-Mx-CqOAHDDP.js → PortfolioDetails-DiITguNZ-C9ff3dxU.js} +9 -9
- package/dist/assets/{ProductsCarousel-TB4uKZbg-jHCmwr3_.js → ProductsCarousel-BojgZxY7-C7ixhh1B.js} +9 -9
- package/dist/assets/{PromoBaseCards-BMPp9RNQ-CfCVTYBz.js → PromoBaseCards-DPAkjdDp-BSbN47iG.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-B1b1wGeq-Bv09ZJ5Q.js → QBOConnectionDialog-CzuH4c1o-CmxBeQPY.js} +9 -9
- package/dist/assets/{QBOSetupSection-Bj_y0Lo2-i5olJfVN.js → QBOSetupSection-DJBfLeXn-CaDVg5Hs.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BkpvBSQs.js → ReimbursementApprovalRuleDetailPage-CAcLCt68-CHZOZjbd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DJlNT4Ov-Bl6ySL6S.js → ReimbursementApprovalRulesPage-edz_6MDX-C6mJ2DuI.js} +43 -43
- package/dist/assets/ReimbursementDetailPage-DD_GbfiV-DO_TXxDc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-ppaPJby5-COCfOhRQ.js → ReimbursementPromoPage-B_HZWdXi-ujWpRxU3.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-B6mZrzQB-Fiw0qBGy.js → ReimbursementSetUpPage-C0SNbg5D-CMixW-_k.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DS55QesG-B74D85P7.js → ReimbursementsBulkReviewDrawerPage-NOK5jPjr-DI2xKDYj.js} +1 -1
- package/dist/assets/{ReloadCard-DDDYlCsI-uet9tXMw.js → ReloadCard-CqyGWGqs-B2pPTz9i.js} +3 -3
- package/dist/assets/ReportTableViewSelector-B8ZW0kxU-_1sW9OpN.js +150 -0
- package/dist/assets/ReportsPage-DdqQgvJt-pEgVGJHX.js +120 -0
- package/dist/assets/{RevenueChart-DPkxzWaE-DuQQfz8T.js → RevenueChart-QoBLII7z-Brgj42T7.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-CyF2YP3t-qsNy7OU7.js → ReviewDetailsPage-BVoI7xF7--oTVBYBc.js} +14 -14
- package/dist/assets/{ReviewOverlay-AoSgYufX-dwAI_sdq.js → ReviewOverlay-CbpylyCx-CRT_fGNL.js} +10 -10
- package/dist/assets/{RoleWithToolTip-aoWU03so-Dwlqauj8.js → RoleWithToolTip-TxLTa63q-S46u0htc.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bfj3vclV-Bh0VQjus.js → ScheduleDetailsFixedAssetsPage-CuwxZJjj-CbljEJHF.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-B30aUjKr-yo5UZBZa.js → ScheduleDetailsPage-u0VNz7hA-DBA6XeYX.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CStdRSyQ-DoVYhvfX.js → ScheduleSequenceTable-usJjTfAn-CsILXb5x.js} +19 -19
- package/dist/assets/{ScreenRoutes-BUy9Iwzd.js → ScreenRoutes-DfucM-A_.js} +1 -1
- package/dist/assets/{SetUpAccountSection-nul4pyeP-DU6cZy0a.js → SetUpAccountSection-DDe06VBR--XDyyAq7.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-ByW3h9zl-DGn4f3RC.js → SetUpDefaultSection-B6pcOXMO-DgPwbXlv.js} +8 -8
- package/dist/assets/{SignIn-R1Rsh38G-F9AuCIeN.js → SignIn-BdhV8PbY-BEcS89H3.js} +16 -16
- package/dist/assets/{SignInScreen-Zt_tSoMj.js → SignInScreen-CQe6jUnb.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BqOQ7NY_-b4Sdc3rB.js → SpendManagementListViewPage-DNgC__pX-CtNBT1Yc.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage--2EC1Oz4-h4ycN1O9.js → SpendManagementPerTabPage-BkiWOMch-DNxdfM54.js} +36 -36
- package/dist/assets/{SpendManagementSection-COMVry1E-BWp0dXiq.js → SpendManagementSection-DuR3sx7V-wtusVJD4.js} +9 -9
- package/dist/assets/{SpendMgmtSetupAccountSection-fV4qxxEy-CCp-swkD.js → SpendMgmtSetupAccountSection-DoUKX4Sf-BWt9unUe.js} +8 -8
- package/dist/assets/{StatementItem-BksIBztP-B831iK9_.js → StatementItem-VYK0Vtgt-CDJF9Bdy.js} +8 -8
- package/dist/assets/{StatementsPage-DnAoeqze-DA62l4Hk.js → StatementsPage-CLxned7l-kbRne1uO.js} +1 -1
- package/dist/assets/{StatusSwitcher-b1A9RnRP-DAlRwEN4.js → StatusSwitcher-Jqpvk1VX-KiHu5pz2.js} +2 -2
- package/dist/assets/{SubTabSwitcher-CgJW4ZXd-DJMKxW1_.js → SubTabSwitcher-C7_JB54g-TfIjK1e4.js} +1 -1
- package/dist/assets/{SummaryCard-sEKhcIH5-5V5OHe0n.js → SummaryCard-oqK_zyxl-DP8NWbIJ.js} +1 -1
- package/dist/assets/TaskManagementPage-BDOhB7Ny-0hkaxI_I.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-DQ-u6pKk-C9r3FAYu.js → TimeRangeSwitcher-AWKZ7PNb-CoqhGH2B.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-B0yxn0SJ-BcwixCzj.js → TimeframeSwitcher-BlL5woGb-Cmk__EzQ.js} +1 -1
- package/dist/assets/TimeframeSwitcherWithToggle-CRnWI6xW-CcO9Smot.js +31 -0
- package/dist/assets/{TopExCard-CTjfWfCk-C3i8kmEM.js → TopExCard-B4T3kqhZ-Boo9L6AS.js} +4 -4
- package/dist/assets/{TopExDetailPage-CdpvcVME-2JDis9q2.js → TopExDetailPage-Cx9T3i9O-Dego-R-_.js} +11 -11
- package/dist/assets/{TransactionDetailPage-DdF9FS4b-DZnceplN.js → TransactionDetailPage-CAGxHcQ9-D2MX0HZx.js} +46 -46
- package/dist/assets/{TransactionList-CHq3WONc-6OKHlFEQ.js → TransactionList-CVrK_-YB-DNCdrvzR.js} +5 -5
- package/dist/assets/{TransactionListBig-D-Gxd5n0-DanPN3il.js → TransactionListBig-BnI6EofP-_rQrLZ8Q.js} +12 -12
- package/dist/assets/{TransactionListPage-DK9-YK_1-BXggWvxO.js → TransactionListPage-vK6DdhrP-BFxBj0Xu.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-Cc9pTpTw-B-XpZb7b.js → TransactionVendorDetailPage-IyAfkyMv-DMgJng31.js} +6 -6
- package/dist/assets/{TransferDrawerPage-DoDTECI8-BIlT9f80.js → TransferDrawerPage-Bp0TG8fm-BrYG-dvh.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-wlfReqPJ-COqPP-C6.js → TreasuryOverviewPage-Cr1liTpc-DUvbI9m6.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C9WNRb2_-D68uCH9T.js → TreasuryPromoPage-Da7l7gv8-BI2e-RBa.js} +7 -7
- package/dist/assets/{TreasurySetupPage-CjV0cOq9-Dj6kRagu.js → TreasurySetupPage-DLNsPnS8-CsV7YDNa.js} +2 -2
- package/dist/assets/TreasuryStatementsPage-CNXxykvB-Xo9bsOcj.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BWGHcQ-i-BKMewaZO.js → TreasuryTaxLetterPage-DUbt8ItG-Bx6VQjMk.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-CgL8K7N9-BU_JpBeT.js → TreasuryTransferOrReviewPage-qxabbCrK-Cn6E59-e.js} +19 -19
- package/dist/assets/TrendChart-SOAxSpv2-C2I66UL7.js +16 -0
- package/dist/assets/{TrendWithTransactions-B_fJTS4m-DhL_ksp6.js → TrendWithTransactions-BSQ2TJvu-CXRyOB__.js} +2 -2
- package/dist/assets/{UncategorizedAccountsMappingPage-DpY1kK_K-Tyh7I9oQ.js → UncategorizedAccountsMappingPage-Caf242zp-C8p8QWva.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-BTJI7fx3-ArXBm5Pc.js → UnitIntegrationPage-Bvc4wx_r-CxpS2DzG.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BH3bRKoG-BcpVEL9h.js → UploadAdditionalDocumentOverlay-BTEhwmVL-Bv1cJYiQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-4-XtZDNS-yXogm4Uf.js → Vendor2FAPopup-DimcegQ_-DbqY7M5C.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B2knDl4H-C8LDkjOw.js → VendorACHDetailsPage-BOIRRgCy-3ls1AaMO.js} +1 -1
- package/dist/assets/{VendorDetailPage-w-tghGpI-COTucAdG.js → VendorDetailPage-CWcqMMpT-CUN694wM.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-BXCCdTjh-D1sSssE6.js → VendorDomesticWireDetailsPage-9C2CIkhB-CIWMgQrd.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DGQO9Qqj-doeBi57Q.js → VendorFiling1099EditablePage-Crz_WLRG-C1B5bpoY.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-Lblb6X1V-DDX-EnPi.js → VendorFirstReviewPage-hQ0U61KD-DXRFO6yh.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-Bi5RBKxI-d7yVndnc.js → VendorInternationalWireDetailsPage-mm1qIXTf-CIqQKpow.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CBZmsXnL-oKquyl5C.js → VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DJWhQcKK.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-JI0e3gKo-DV7qAVgA.js → VendorsAccountsSection-CGbDIAMd-CpNcTh0l.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BQzUQ5-l-eGPm8ckX.js → WarningsDrawerPage-7DzlUfv7-BkCPq2fE.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-DPJ4mWoO-CDV8kX3d.js → ZeniAccountDetailPage-B_U4d2iv-CeotXzaF.js} +32 -32
- package/dist/assets/{ZeniAccountListViewPage-iHMJ7FU7-DsSrfvmu.js → ZeniAccountListViewPage-C2Yej3tG-5nEB_ziW.js} +23 -23
- package/dist/assets/ZeniAccountNavBarPieces-DsWyZL7N-DfzfZF8w.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-OxQ03DtJ-DuTzzMXB.js → ZeniAccountPromoPage-D6S3o6xA-Bi4N8dmb.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-BahzDcmm-CkQD3H0K.js → ZeniAccountSetupPage-YpW9LEB1-BJ2MLgxE.js} +1 -1
- package/dist/assets/{ZeniCopyright-Dpqdxu7f-DENyHxGI.js → ZeniCopyright-Buv4_0jF-CqCj0NE5.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwC6pXnb-D2__V8HO.js → ZeniTransferAmountSlider-CvuOgkEg-CuXG6PC2.js} +1 -1
- package/dist/assets/analytics-DThoELaW.js +7 -0
- package/dist/assets/{analyticsHelper-CZ8c8du5-BYQerWlM.js → analyticsHelper-B3QVnfWf-Ii66sXHH.js} +1 -1
- package/dist/assets/{analyticsHelper-BqDRiuen.js → analyticsHelper-ej1xHeXQ.js} +1 -1
- package/dist/assets/{chartTypes-CWLOazD0-DQIU7DHt.js → chartTypes-DYAHlgKd-DnqAO3Rp.js} +1 -1
- package/dist/assets/{commonDimensions-Cg7EWgSP-CvVryzw_.js → commonDimensions-Pkc8qIrn-B-bjjlb8.js} +1 -1
- package/dist/assets/{detailCommon-Cp4eknjq-BH10rVqU.js → detailCommon-CsukAL3T-lIItUxyr.js} +7 -7
- package/dist/assets/{downloadPdf-f3F0OqWf-BOFdFlm6.js → downloadPdf-DlKRXI5W-DoYYMEWD.js} +1 -1
- package/dist/assets/{index-Bh_1R5Ob.js → index-DEtloYMb.js} +3142 -3141
- package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DCLD3rcY-DQE4Fmbr.js → mapLoadingInProgressToTreeNode-KYsp1YPe-CdYtsyMK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C-VOXE5I-IEIwZ2Vf.js → mapSectionWithAcOnlyToTreeNode-t5fK12Uc-CbMkSgtE.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DlDwFA_F-adHbwg_D.js → mapSpacerToTreeNode-1YBqnFwa-K_d13sRq.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-EEyJwCnX-DL3MQtPA.js → mapTimeframeBalancesToTreeNode-DD1v-gTG-9n0fkm_w.js} +1 -1
- package/dist/assets/mui-C5LQ0bMa.js +25 -0
- package/dist/assets/{play-icon-CFa9Uibr-CFpLGFU1.js → play-icon-19dLaWkG-CvLTbZAK.js} +3 -3
- package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
- package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DT8-C5u1-B1FoouwO.js → toCOABalancesWithID-B8NxsLlK-741DYvDg.js} +1 -1
- package/dist/assets/{toChartData-63e3B91H-ZtR5NJvP.js → toChartData-CxZEcdj_-B9fAXWHm.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BGGfolJy-CWl7jTQi.js → treasuryColorHelper-BqwCUN2u-C54KKUXs.js} +1 -1
- package/dist/assets/{uploadAttachment-YcPIDoZ--toOwAw7L.js → uploadAttachment-CHFo3qZI-fjIbqTID.js} +21 -21
- package/dist/assets/{uploadReceipts-BH9fi3Vt-CMw2oH6c.js → uploadReceipts-Buvz7DfG-BUbqoJXB.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountInfoPageContent-qqbfRfuR-C7-_5sOr.js +0 -149
- package/dist/assets/AccountRow-CPX-627p-DXjzC4oo.js +0 -298
- package/dist/assets/ArAgingChart-BRcy3--o-CVhUhHyt.js +0 -24
- package/dist/assets/BusinessVerificationPage-DT24fycp-C-SVysZz.js +0 -140
- package/dist/assets/ChargeCardPromoPage-DOibcN9n-CE5UscbC.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-DaaWfNin-DQUFbJAl.js +0 -206
- package/dist/assets/CompleteProfile-MP9AF8Iu-Dltf62Ac.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DZXeTXsZ.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DJbFeXms-uTvDgNTn.js +0 -107
- package/dist/assets/DashboardReportPage-3X6wpJL2-BK7Yd62F.js +0 -349
- package/dist/assets/DomesticWireDetailsPage-D-qwPVDs-YqgObZaE.js +0 -21
- package/dist/assets/LabeledDocumentField-DORRl3DI-BiJSEJu5.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-D495n-7f.js +0 -59
- package/dist/assets/MailingDetailsSection-D8CZart4-Bbi4CmcC.js +0 -21
- package/dist/assets/NoDataChart-VE4W-RUu-D223toQY.js +0 -26
- package/dist/assets/NotificationsListConfig-DVBOQJZq-DD4o-ZVG.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BQiu7Gts-zt4bAw_Z.js +0 -314
- package/dist/assets/ReportTableViewSelector-Bss4AtF1-Y5yDfA7f.js +0 -133
- package/dist/assets/ReportsPage-C-g9588h-CalWBFdb.js +0 -120
- package/dist/assets/TaskManagementPage-z5uvcy81-DXWG5Ln7.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-bVTDjcsV.js +0 -31
- package/dist/assets/TreasuryStatementsPage-DqOWNGB_-CL_O8Dxf.js +0 -58
- package/dist/assets/TrendChart-76tuu9Dr-CtZTTvAn.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D5-Eit3W.js +0 -14
- package/dist/assets/analytics-BSSiLa6f.js +0 -7
- package/dist/assets/mui-BgvZYSo0.js +0 -22
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import{j as r,X as Qe,u as Yt,a as Xt,c3 as me,M as Ke,a5 as pt,I as ut,J as He,l as M,aW as en,o as ie,F as tn,p as Q,a7 as nn,h3 as an,fF as on,fd as mt,cw as Pt,cx as ft,C as fe,fI as ye,cg as sn,s as rn,h4 as yt,E as gt,ce as cn,fH as ln}from"./index-Bh_1R5Ob.js";import{b as p,n as P,k as xt}from"./vendor-CnQcJ2Lu.js";import{F as dn}from"./HelpButton-8AQIbLQM-BGmSYuu4.js";import{t as ht,e as pn}from"./PaymentAccountSetupBillingAddressSection-Debi_lWf-DgZH-stN.js";import{b as St,f as un,a as Ct}from"./CustomerOnboardingDetailPageSkeleton-CUxNOK4z-DK4_uIa1.js";import{G as mn,o as fn}from"./CompanyOfficerDetailsSection-B_cIues7-Cxl-k5rk.js";import{o as yn}from"./QBOSetupSection-Bj_y0Lo2-i5olJfVN.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-D4tz-H5i-DRJag4hu.js";import"./SetUpAccountSection-nul4pyeP-DU6cZy0a.js";import"./SetUpDefaultSection-ByW3h9zl-DGn4f3RC.js";import"./ChaseOverlay-DPgGIuyV-CJPjKqgA.js";import"./LabeledAddressValueField-DYelJL4d-B8hx-xCL.js";import"./LabeledCreatableSingleSelectField-B9zUAA6L-D7rl6n6N.js";import"./LabeledDocumentField-DORRl3DI-BiJSEJu5.js";import"./DocumentSecurityBanner-CVNWDvAg-BtG0xkpK.js";import"./QBOConnectionDialog-B1b1wGeq-Bv09ZJ5Q.js";const gn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:A,verifiedPhoneNumber:x,onPhoneVerified:S,...I})=>{const m=Qe(),V=t?.companyOfficers.slice(0,10).sort((b,X)=>b.user.createTime?.isAfter(X.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=Ke.getLocalizedStrings().customerOnboardingPage.sections,{title:F}=l,N=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(hn,{children:r.jsx(fn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:F,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:N,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:S,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:A,...I})})},hn=P.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
`,Sn=({fileProps:t,companyDetails:w,companyIndustries:c,sectionId:f,isCompleted:A,isDisabled:x,style:S,onCompanyAddressClick:I,onRegisteredAddressClick:m})=>{const V=Qe(),{company_details:l}=Ke.getLocalizedStrings().customerOnboardingPage.sections,{title:F}=l;return r.jsx(Cn,{children:r.jsx(mn,{fileProps:t,companyDetails:w,sectionId:f,isDisabled:x,style:S,sectionHeader:F,productType:"onboarding",showInfoTooltip:V!=="small",showCompletedIcon:V==="small",isCompleted:A,allIndustries:c,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:I,onRegisteredAddressClick:m})})},Cn=P.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
`,bn=P.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
`,Pn=P.input`
|
|
12
|
-
display: none;
|
|
13
|
-
`,xn=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=sn();return r.jsxs(bn,{children:[r.jsx(Pn,{type:"hidden",...f(`${w}.connected`,{validate:A=>A==="true"}),value:t?"true":"false"}),r.jsx(yn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Y="onboardingPaymentAccountSetupSection",bt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(Q[5],Q[9],112),subTitlePaddingTop:new fe(Q[3],Q[3]),subTitlePaddingBottom:new fe(Q[3],Q[3])},In=t=>`${t}_form`,re=Ke.getLocalizedStrings(),On=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:A,connectedAccountProvider:x,analytics:S,cardPaymentView:I,stripeKey:m,googleAPIKey:V,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:F,updateCardPaymentModalState:N,handleAddCardPaymentSource:b,resetCardPaymentViewState:X,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ae})=>{const L=Qe(),ve=p.useRef(null),Ve=p.useRef(null),K=p.useRef(null),Fe=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[T,be]=p.useState(!1),[ce,Pe]=p.useState(!1),[ee,W]=p.useState(null),{onAddressClick:te,onCompanyDetailsChanged:xe,onCompanyOfficerUpdated:$,onFetchLinkTokenClick:Ie,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ae,onDeleteFile:v,onEditFileName:We,updateFilesEntity:Je,onGetOtp:It,onSkipSetupClick:$e,onUpdateCustomerView:De,updateStepHandler:U,onVerifyOtp:Ot,onResendOtp:kt,handleOnConnectClick:wt,updateQBOPopupState:At,onUpdateStep:Ne,onAddressEditHandler:vt}=Ae,Vt=Yt(),s=Xt({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(f,f.allNationalityCountries),values:Me(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(s.getFieldState(Y).error!=null||s.getFieldState(u).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);p.useEffect(()=>{const e=q();D?.(e)},[q,D]),p.useEffect(()=>{const e=s.watch((n,{name:o,type:i})=>{o!=null&&(i==="change"||i==="blur")&&me(()=>{const d=q();D?.(d)})});return()=>e.unsubscribe()},[s,q,D]);const Ze=e=>{Ge(e)},Oe=p.useRef(""),Ft=e=>{Oe.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,o=n<0?0:n;s.clearErrors(`${C}.${o}.phone`)},Ge=e=>{e!=null&&!ye(e)?s.trigger(`${C}.${Z}.phone`):It(e)},{companyView:oe,companyDetailsLocalData:y,companyOfficerLocalData:H,currentStep:a,completedSteps:Ye,saveStatus:O,allSteps:g,allRequiredStepsCompleted:Te,paymentAccount:pe,paymentAccountStatus:Xe,externalConnections:Ee,plaidConnectionDetails:_e,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:$t,officer:Dt},subscriptionBillingAddress:J}=f,Z=Object.values(H).findIndex(e=>e?.isSelectedForVerification===!0)??0,E=`Officer_${Z<0?1:Z+1}`,Nt=oe?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=H[E]?.userId!=null?Nt?.find(e=>e.user.userId===H[E]?.userId)?.address:null,et=H[E]?.addressStatus?.addressToCreate,ke=oe?.companyAddress,tt=y?.addressStatus?.addressToCreate,Re=oe?.registeredAddress,nt=y?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Tt,common:h}=re,{footer:Et,steps:_t}=Tt,{buttons:at}=Et,ot=_t[a],ze=g.length,se=pt(O.fetchState),_=pt(a);function jt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(_e).some(d=>d.fetchStatus.fetchState==="Completed"),n=pe?.providerVerificationStatus?.code?.includes("verified")??!1,o=I.cardsList.length>0,i=I.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!pe&&o||!o&&!pe&&i};function st(){if(s.getFieldState(u).error)return!1;const e=s.getValues(u),n=J?.street.join("").trim(),o=J?.city,i=J?.state,d=J?.country,k=J?.postalCode!=null&&J.postalCode||e.postalCode||h.strings.empty;return!!n&&!!o&&!!i&&!!d&&!!k}const Lt=async(e,n)=>{if(e.includes(j))xe?.(n[j]);else if(e.includes(C))$?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=s.getValues(`${u}`).country;let i=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=Pt(d?.country);i={street:n[u].street??h.strings.empty,city:d?.locality??h.strings.empty,state:d?.administrativeAreaLevel1??h.strings.empty,country:k,countryCode:d?.countryCode??h.strings.empty,postalCode:d?.postalCode??h.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(i={...i,country:k})}else e===`${u}.country`&&o.selectedOption!=null?i={...i,countryCode:ft(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(i={...i,countryCode:ft(o.selectedOption)});vt(i)}};p.useEffect(()=>{const e=s.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Lt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{se==="In-Progress"&&O.fetchState==="Completed"&&(s.reset(Me(f,Le),{keepDirtyValues:!1}),_==="company_details"&&a==="link_payment_account"&&!g.includes("qbo_connection")&&!f.qboConnected&&Se())},[s,f,se,O.fetchState,Le,_,a,g,Se]),p.useEffect(()=>{Ce&&se==="In-Progress"&&O.fetchState==="Completed"&&($e(),S.track(ut.Event.onboardingSkipAndSave))},[se,Ce,O.fetchState,$e]),p.useEffect(()=>{ee?.shouldNavigate===!0&&se==="In-Progress"&&O.fetchState==="Completed"&&(U(ee.fromStep,ee.stepDirection,!0),W(null))},[ee,se,O.fetchState,U]),p.useLayoutEffect(()=>{_!=null&&_!==a&&(g.indexOf(_)===g.indexOf(a)-1||g.indexOf(_)===ze-1&&g.indexOf(a)===0?R!=="next"&&z("next"):(g.indexOf(_)-1===g.indexOf(a)||g.indexOf(_)===0&&g.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[g,a,_,R,ze]);const it=()=>{const e=H[E];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Bt=!He(et!=null?M.getFormattedAddress(et):null,Be!=null?M.getFormattedAddress(Be):null),Rt=!He(tt!=null?M.getFormattedAddress(tt):null,ke!=null?M.getFormattedAddress(ke):null),zt=!He(nt!=null?M.getFormattedAddress(nt):null,Re!=null?M.getFormattedAddress(Re):null),Ut=s.getFieldState(j).isDirty||Rt||zt||$t,Ue=s.getFieldState(C).isDirty&&it()||Bt||Dt,rt=s.getFieldState(`${u}`).isDirty,qt=y?.primaryContactLocalData,Ht=()=>{U(a,"previous",!0)},Mt=()=>{const e=s.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??h.strings.empty,secondaryInfo:e.secondaryInfo};S.trackOnboardingBillingAddressSave(n)},Qt=()=>{switch(Pe(!1),a){case"link_payment_account":rt?setTimeout(()=>{const e=q();D?.(e),st()&&rt?(Mt(),De(E,!1,!0),W({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=ct();if(me(()=>{const n=q();D?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=s.formState.errors[C]?.[Z<0?0:Z],o=n?.phone,i=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!i){Ze(e.phoneNumber);return}}e.isValid&&(De(E,!1,!1),S.trackOnboardingCompanyOfficerSave(lt(),{legalName:y?.companyLegalName}),W({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(st()&&ue()),n=!jt()&&g.includes("qbo_connection");if(e||n){e&&(s.trigger(`${Y}`),s.trigger(`${u}`)),n&&s.trigger(ge),me(()=>{const o=q();D?.(o)}),e?Ne("link_payment_account"):n&&Ne("qbo_connection");return}}if(Ut||Ue||!qt?.email){const e=Wt(),n=Ue?ct():{isValid:!0};me(()=>{const o=q();D?.(o)}),e&&n.isValid?(Te&&(B(!0),Jt()),De(E,!Te,!1),W({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Ne("company_officer")}else Te?Kt():U(a,"next",!0);break}},Kt=()=>{O.fetchState!=="In-Progress"&&($e(),S.track(ut.Event.onboardingSkipAndSave))},ct=()=>{const e=H[E],n=e?.email??h.strings.empty,o=e?.phone??h.strings.empty,i=e?.ssn??h.strings.empty,d=e?.ownershipInCompany,k=Z<0?0:Z,Gt=!!e?.firstName&&!!e?.lastName;let G=!0,dt=!1;return n&&!Gt&&(s.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),G=!1),(!n&&it()||gt.test(n)===!1)&&(s.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),G=!1),o&&ye(o)===!1&&(s.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),G=!1),o&&ye(o)===!0&&x==="unit"&&(Oe.current!==""&&o===Oe.current||(dt=!0,s.setError(`${C}.${k}.phone`,{type:"custom",message:re.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),G=!1)),d!=null&&d>100&&(s.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),G=!1),i&&ln.test(i)===!1&&(s.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),G=!1),{isValid:G,needsOtp:dt,phoneNumber:o}},Wt=()=>{const e=y?.website?.toString()??h.strings.empty,n=y?.phone??h.strings.empty,o=y?.taxIdOrEIN??h.strings.empty,i=y?.primaryContactLocalData?.email??h.strings.empty;let d=!0;return e&&yt.test(e)===!1&&(s.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),yt.lastIndex=0,n&&ye(n)===!1&&(s.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!i||gt.test(i)===!1)&&(s.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&cn.test(o)===!1&&(s.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},lt=()=>{const e=H[E];return{email:e?.email??h.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Jt=()=>{const e=y?.primaryContactLocalData;S.trackBusinessVerificationSave(lt(),{companyDescription:y?.companyDescription,legalName:y?.companyLegalName,phone:y?.phone,website:y?.website?.toString(),industry:y?.companyIndustry??h.strings.empty,formattedAddress:y?.addressStatus?.addressToCreate!=null?M.getFormattedAddress(y?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Zt]=p.useState(!1);return r.jsxs(An,{children:[r.jsxs(vn,{windowSize:L,children:[g.indexOf(a)>=0?r.jsx(en,{title:ot.sectionTitle,showBackButton:!1,backgroundColor:Vt.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:ie.sp0,paddingBottom:ie.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Vn,{windowSize:L,children:r.jsx($n,{windowSize:L,children:r.jsx(Fn,{})})}),r.jsx(tn,{...s,children:r.jsx(Nn,{id:In(bt),children:g.map(e=>{let n;n=r.jsx(ht,{connectedAccountProvider:x,paymentAccount:pe,accountStatus:Xe,plaidConnectionDetails:_e,sectionId:Y,hasError:s.getFieldState(Y).error!=null||ce&&!ue(),isValid:ue(),analytics:S,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionSuccess:ae,cardPaymentView:I,resetCardPaymentViewState:X,updateCardPaymentModalState:N,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=ve;switch(e){case"link_payment_account":n=r.jsx(ht,{connectedAccountProvider:x,paymentAccount:pe,accountStatus:Xe,plaidConnectionDetails:_e,subscriptionBillingAddressSectionId:u,sectionId:Y,hasError:s.getFieldState(Y).error!=null||ce&&!ue(),isValid:ue(),analytics:S,onFetchLinkTokenClick:Ie,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:ne,onEstablishConnectionSuccess:ae,updateCardPaymentModalState:N,cardPaymentView:I,resetCardPaymentViewState:X,cardSetupInProgress:qe,googleAPIKey:V,subscriptionBillingAddress:J});break;case"qbo_connection":n=r.jsx(xn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:c,isValid:Ee?.accounting[0]?.isValid??!1,companyName:oe?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:wt,updateQBOPopupState:At}),o=Ve;break;case"company_officer":n=r.jsx(gn,{companyOfficerLocalData:H,allNationalityCountries:Le,isCompleted:Ye.includes("company_officer"),companyView:oe,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:A,isVerificationPopupOpen:T,setIsVerificationPopupOpen:be,onGetOtp:Ze,onVerifyOtp:Ot,onResendOtp:kt,onOfficerAddressClick:i=>te(i,Be?.addressId),updateFilesEntity:Je,onEditFileName:We,onDeleteFile:v,verifiedPhoneNumber:Oe.current,onPhoneVerified:Ft,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,triggerError:Ge}),o=Fe;break;case"company_details":n=r.jsx(Sn,{fileProps:{...t,onEditFileName:We,onDeleteFile:v,updateFilesEntity:Je},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:y,isDisabled:O.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ye.includes("company_details"),onCompanyAddressClick:i=>{const d=oe?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?te(i,d):te(i,ke?.addressId)},onRegisteredAddressClick:i=>te(i,Re?.addressId)}),o=K;break}return r.jsxs(Dn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!T:!0,paddingBottom:e==="company_details"||e==="company_officer"?Q[6]:Q[0],stepAnimationDirection:R,children:[g.indexOf(a)>=0?r.jsx(Tn,{windowSize:L,children:ot.sectionSubTitle}):null,n]},e)})})}),r.jsx(nn,{formId:`${bt}`,style:{width:L==="small"?"auto":"100%",paddingTop:ie.sp2,paddingBottom:ie.sp2},primaryBtn:{onClick:Qt,label:a==="company_details"?h.footer.submit:at.next,isLoading:O.fetchState==="In-Progress",isDisabled:O.fetchState==="In-Progress"},cancelBtn:{onClick:Ht,label:at.back,isDisabled:O.fetchState==="In-Progress"||g.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(pn,{handleConfirmCardSetupIntent:F,updateCardPaymentModalState:N,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:I,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Zt})]})},kn=xt`
|
|
14
|
-
from {
|
|
15
|
-
transform: translateY(100%);
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
to {
|
|
19
|
-
transform: translateY(0);
|
|
20
|
-
opacity: 1;
|
|
21
|
-
}
|
|
22
|
-
`,wn=xt`
|
|
23
|
-
from {
|
|
24
|
-
transform: translateY(-100%);
|
|
25
|
-
opacity: 0;
|
|
26
|
-
}
|
|
27
|
-
to {
|
|
28
|
-
transform: translateY(0);
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
`,An=P.div`
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
min-width: calc(100% - ${Ct}px);
|
|
36
|
-
padding-left: ${Ct}px;
|
|
37
|
-
flex: 1;
|
|
38
|
-
|
|
39
|
-
${t=>t.theme.breakpoints.down("md")} {
|
|
40
|
-
width: 100%;
|
|
41
|
-
padding-left: ${ie.sp0};
|
|
42
|
-
}
|
|
43
|
-
`,vn=P.div`
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
flex: 1;
|
|
48
|
-
width: 100%;
|
|
49
|
-
min-height: 100vh;
|
|
50
|
-
background-image: ${t=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${t.windowSize==="small"?"m":"w"}-${t.theme.mode==="dark"?"d":"l"}.svg)`};
|
|
51
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
52
|
-
background-size: inherit;
|
|
53
|
-
background-attachment: fixed;
|
|
54
|
-
background-position: ${t=>t.windowSize==="small"?"center center":"right center"};
|
|
55
|
-
background-repeat: no-repeat;
|
|
56
|
-
|
|
57
|
-
${t=>t.theme.breakpoints.down("lg")} {
|
|
58
|
-
background-size: cover;
|
|
59
|
-
}
|
|
60
|
-
`,Vn=P.div`
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
align-items: center;
|
|
64
|
-
text-align: center;
|
|
65
|
-
width: ${t=>`calc(100% - ${he.topNavBarLeftRightSpace.valuePx(t.windowSize)})`};
|
|
66
|
-
`,Fn=P.div``,$n=P.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: space-between;
|
|
70
|
-
width: 100%;
|
|
71
|
-
min-height: ${t=>he.topNavBarHeight.valuePx(t.windowSize)};
|
|
72
|
-
`,Dn=P.div`
|
|
73
|
-
min-height: 100%;
|
|
74
|
-
display: ${t=>t.isVisible?"flex":"none"};
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
padding-bottom: ${t=>t.paddingBottom+"px"};
|
|
77
|
-
animation-name: ${t=>t.stepAnimationDirection==="next"?kn:wn};
|
|
78
|
-
${t=>t.includeAnimation?`
|
|
79
|
-
animation-duration: 0.6s;
|
|
80
|
-
animation-delay: 0s;
|
|
81
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
-
animation-fill-mode: both;
|
|
83
|
-
`:null}
|
|
84
|
-
`,Nn=P.form`
|
|
85
|
-
padding-top: ${ie.sp0};
|
|
86
|
-
flex: 1;
|
|
87
|
-
`,Tn=P(rn)`
|
|
88
|
-
color: ${t=>t.theme.colors.hero};
|
|
89
|
-
display: flex;
|
|
90
|
-
justify-content: center;
|
|
91
|
-
width: ${t=>he.titleWidth.valuePx(t.windowSize)};
|
|
92
|
-
padding-top: ${t=>he.subTitlePaddingTop.valuePx(t.windowSize)};
|
|
93
|
-
padding-bottom: ${t=>he.subTitlePaddingBottom.valuePx(t.windowSize)};
|
|
94
|
-
text-align: ${t=>t.windowSize==="small"?"initial":"center"};
|
|
95
|
-
width: 100%;
|
|
96
|
-
white-space: pre-line;
|
|
97
|
-
`,Me=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:A}=t,x=re.commonSetUp.businessVerification,S=re.companyPassport,I=A?.companyOfficers!=null&&A?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??re.common.strings.empty,ein:c?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??re.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:t.companyIndustries.map(m=>m.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:S.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,V)=>{const l=m,F=on(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${V+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:Pt(l?.nationalityCountryCode,w.map(N=>N.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:x.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:mt(!0,l?.userFiles??[],F),back:mt(!1,l?.userFiles??[],F),selectDocumentType:F},isSelectedForVerification:!I&&V===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Y]:{account:{allOptions:[],selectedOption:void 0}},[u]:an(u,t?.subscriptionBillingAddress)[u],[ge]:{connected:t.externalConnections?.accounting[0]?.isValid??!1}}},ia=t=>{const{onboardingCustomerView:w,cardPaymentView:c,signedInUser:f,currentTenant:A,isOnAddressPage:x,stripeKey:S,googleAPIKey:I,onUpdateStep:m,onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:F,meetingUrl:N,analytics:b,handleCreateCardSetupIntent:X,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:D,resetCardPaymentViewState:Ae,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,...Ve}=t,{allSteps:K,completedSteps:Fe,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),T=p.useRef(K),[be,ce]=p.useState(!1),[Pe,ee]=p.useState([]),W={allSteps:K,isOnAddressPage:x,completedSteps:Fe,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:A,onUpdateStep:$=>{m($)},onZeniLogoClick:V,handleLogOutClick:l,handleCockpitClick:F,setIsStepClicked:ce};p.useEffect(()=>{if(z.current!==B){const $=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,$),ce(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{K.length!==T.current.length&&(T.current=K)},[K]);const te=($,Ie,le)=>{const ne=T.current.length,de=T.current.indexOf($);switch(Ie){case"next":{const ae=(de+1)%ne,v=T.current[ae];z.current=v,m(v),le===!0?b.trackOnboardingNext($,v):b.trackOnboardingCurrentStep(v,$);break}case"previous":{const ae=(de+ne-1)%ne,v=T.current[ae];z.current=v,m(v),le===!0?b.trackOnboardingBack($,v):b.trackOnboardingCurrentStep(v,$);break}}},xe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:x,children:x?r.jsx(St,{...W}):r.jsxs(_n,{children:[r.jsx(St,{...W}),xe?r.jsx(un,{isNoStepsPage:!1}):r.jsx(On,{onboardingCustomerView:w,analytics:b,updateStepHandler:te,onUpdateStep:m,handleCreateCardSetupIntent:X,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:D,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:Ae,stripeKey:S,googleAPIKey:I,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:ve,onFormErrorsChange:ee,...Ve}),xe?null:r.jsx(dn,{isFooterRendered:!0,meetingUrl:N,analytics:b,productType:"onboarding"})]})})},En=P.div`
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
width: ${t=>t.isOnAddressPage?"fit-content":"100%"};
|
|
101
|
-
height: 100vh;
|
|
102
|
-
`,_n=P.div`
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 100vh;
|
|
107
|
-
`;export{ia as default};
|
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
import{X as O,u as X,M as f,w as ve,l as D,j as s,aW as He,d as Ge,I as Ue,aY as Ze,o as d,C as I,J,aZ as qe,v as oe,p as N,ao as Xe,ab as Je,a_ as Ke,a6 as Ce,K as je,g as T,Z as $e,a$ as Qe,aa as et,av as tt,n as st,b0 as ot,b1 as at,b2 as nt,b3 as ae,b4 as it,b5 as rt,f as ct,b6 as lt}from"./index-Bh_1R5Ob.js";import{b as _,f as K,n as u,k as ke}from"./vendor-CnQcJ2Lu.js";import{m as U,l as te}from"./analyticsHelper-CZ8c8du5-BYQerWlM.js";import{X as dt,e as pt}from"./ReportTableViewSelector-Bss4AtF1-Y5yDfA7f.js";import{F as ut}from"./InsightsSection-DyF8JZIR-Ba4Edr3x.js";import{N as ge,k as mt,q as gt,H as Q,G as de}from"./detailCommon-Cp4eknjq-BH10rVqU.js";import{N as ht,G as ft,H as he,Y as fe,P as be}from"./RevenueChart-DPkxzWaE-DuQQfz8T.js";import{C as bt}from"./NoDataChart-VE4W-RUu-D223toQY.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as xt}from"./TimeRangeSwitcher-DQ-u6pKk-C9r3FAYu.js";import{b as Oe}from"./TimeframeSwitcher-B0yxn0SJ-BcwixCzj.js";import{a as _t,r as E,b as wt,i as pe,D as St}from"./CollapsableReportTable-DMr2UDgH-BRQiHTxy.js";import{S as yt,M as vt,g as Ct,L as ee,D as Be,T as Pe,I as Le}from"./mapSectionWithAcOnlyToTreeNode-C-VOXE5I-IEIwZ2Vf.js";import{d as jt}from"./NoDataTable-d0_62BR0-CxXAVuhp.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-nvOimTil-DT9B51FC.js";import"./chartTypes-CWLOazD0-DQIU7DHt.js";import"./toCOABalancesWithID-DT8-C5u1-B1FoouwO.js";import"./toChartData-63e3B91H-ZtR5NJvP.js";import"./AccountRow-CPX-627p-DXjzC4oo.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const $t=e=>_.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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"}),_.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"}),_.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.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"}),_.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"}),_.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.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"})),kt=u.div`
|
|
2
|
-
justify-content: center;
|
|
3
|
-
align-items: center;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
height: ${e=>`calc(100vh - ${qe.valuePx(e.windowSize)})`};
|
|
7
|
-
gap: ${d.sp6};
|
|
8
|
-
color: ${e=>e.theme.colors.grey2};
|
|
9
|
-
`,Ot=u.div`
|
|
10
|
-
width: ${d.sp12};
|
|
11
|
-
height: ${d.sp12};
|
|
12
|
-
flex-shrink: 0;
|
|
13
|
-
`,Bt=u(oe)`
|
|
14
|
-
color: ${e=>e.theme.colors.hero};
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
margin-top: ${d.sp3};
|
|
20
|
-
`,Pt=({style:e,emptyContentText:t,EmptyContentImage:o})=>{const a=O();return s.jsxs(kt,{windowSize:a,style:{...e},children:[s.jsx(Ot,{children:s.jsx(o,{})}),s.jsx(Bt,{children:t})]})};function Lt(e){const{reportId:t}=e.report,o=e.filter.balancesRange.orderBy;let a,n,r=0;switch(t){case"cash_in_cash_out":{const p=e.report,{cashIn:i,cashOut:c}=p,l=i.balances.length>0?i:c;l.balances.length>0&&(o==="ascending_date"&&(r=l.balances.length-1),a=l.balances[r]);break}case"cash_position":{const p=e.report,{cashPosition:i}=p;i.balances.length>0&&(o==="ascending_date"&&(r=i.balances.length-1),a=i.balances[r]);break}case"net_burn_or_income":{const p=e.report,{expenses:i,income:c}=p.sections,l=i?.balances.length>0?i:c;l?.balances!=null&&l.balances.length>0&&(o==="ascending_date"&&(r=l.balances.length-1),a=l.balances[r]);break}case"net_burn_or_income_by_classes":{const p=e.report,{expenses:i,income:c,cogs:l}=p.sections,g=c.balances.length>0?c:l,m=i.balances.length>0?i:g;m.balances.length>0&&(o==="ascending_date"&&(r=m.balances.length-1),a=m.balances[r]);break}case"operating_expenses":{const p=e.report,{expenses:i}=p.sections;i.balances.length>0&&(o==="ascending_date"&&(r=i.balances.length-1),a=i.balances[r]);break}case"operating_expenses_by_classes":{const p=e.report,{expenses:i}=p.sections;i.balances.length>0&&(o==="ascending_date"&&(r=i.balances.length-1),a=i.balances[r]);break}case"revenue":{const p=e.report,{income:i,cogs:c}=p.sections,l=i.balances.length>0?i:c;l?.balances!=null&&l.balances.length>0&&(o==="ascending_date"&&(r=l.balances.length-1),a=l.balances[r]);break}case"revenue_by_classes":{const p=e.report,{income:i,cogs:c}=p.sections,l=i.balances.length>0?i:c;l.balances.length>0&&(o==="ascending_date"&&(r=l.balances.length-1),a=l.balances[r]);break}}return a!=null&&(n={startDate:a.startDate,endDate:a.endDate}),n}function Nt(e){const{isCompareModeOn:t,filter:o,coaBalancesRange:a,report:n,currentTenantCompanyName:r,reportView:p,classesToFilterOut:i}=e,{reportId:c}=n;let l=o.balancesRange.thisPeriod;l==null&&(l=Lt({report:n,filter:o}));const g=[];if(t?(g.push("this_period_vs_last_period_percent"),g.push("this_period_vs_last_period")):!t&&c!=="cash_position"&&g.push("free_range_total"),n.reportId!=="cash_position"&&g.push("year_to_date_total"),l!=null)return{localeId:f.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!1,companyName:r,statementFileType:"excel",statements:[c],firstMonthOfFY:e.report.firstMonthOfFY,bookCloseDate:e.report.bookCloseDate,timeframe:o.timeframe,additionalBalances:g,format:e.reportType,balancesFilter:{thisPeriod:l,numberOfPeriods:t?o.balancesRange.numberOfPeriods:a.numberOfPeriods,orderBy:a.orderBy},accountViewMode:p,classesToFilterOut:i,isZeniCOAUsed:e.isZeniCOAUsed}}function It(e){const t=Nt(e);if(t!=null)return dt(e.statementEndPoint,e.authParams,t)}const Rt=u.div`
|
|
21
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
22
|
-
`;function Tt({highlightedRangeReport:e}){const{availableNumberOfPeriods:t,netCashFlow:o}=e,a=o.balances;if(t==null||t===0||a.length===0)return null;const n=a.reduce((c,l)=>c+l.balance.amount,0),r=a[a.length-1],p={...r,balance:{...r.balance,amount:n}},i=f.getLocalizedStrings().chartCard.cashInCashOut.net_cash_flow;return s.jsx(Rt,{children:s.jsx(Q,{balance:p,dateText:i,showInfotip:!1})})}const Dt=u.div`
|
|
23
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
24
|
-
`;function zt({highlightedRangeReport:e}){const{dateFormat:{visual:t}}=f.getLocalizedStrings(),{availableNumberOfPeriods:o,cashPosition:a}=e,n=a.balances;if(o==null||o===0||n.length===0)return null;const r=n[n.length-1],p=`in ${r.endDate.format(t.MMMYYFormat)}`;return s.jsx(Dt,{children:s.jsx(Q,{balance:r,dateText:p,showInfotip:!1})})}const Mt=u.div`
|
|
25
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
26
|
-
`,At=u.div`
|
|
27
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
28
|
-
height: ${d.sp6};
|
|
29
|
-
`;function Ft({highlightedRangeReport:e,uiState:t}){const{selectedAdditionalBalances:o}=t,{availableNumberOfPeriods:a,calculatedSections:n}=e,r=n.netBurnOrIncome.balances;if(a==null||a===0||r.length===0)return s.jsx(At,{});const p=o.includes("this_period_vs_last_period")||o.includes("this_period_vs_last_period_percent"),i=r.reduce((b,w)=>b+w.balance.amount,0),c=r[r.length-1],l=r[0],g={...c,balance:{...c.balance,amount:i},startDate:l.startDate},m=de(g,p);return s.jsx(Mt,{children:s.jsx(Q,{balance:g,dateText:m,showInfotip:!1})})}const Et=u.div`
|
|
30
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
31
|
-
`,Vt=u.div`
|
|
32
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
33
|
-
height: ${d.sp6};
|
|
34
|
-
`;function Wt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o}=e,{selectedAdditionalBalances:a}=t,n=e.sections.expenses.balances??[];if(o==null||o===0||n.length===0)return s.jsx(Vt,{});const r=a.includes("this_period_vs_last_period")||a.includes("this_period_vs_last_period_percent"),p=n.reduce((m,b)=>m+b.balance.amount,0),i=n[n.length-1],c=n[0],l={...i,balance:{...i.balance,amount:p},startDate:c.startDate},g=de(l,r);return s.jsx(Et,{children:s.jsx(Q,{balance:l,dateText:g,showInfotip:!1})})}const Yt=u.div`
|
|
35
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
36
|
-
`,Ht=u.div`
|
|
37
|
-
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
38
|
-
height: ${d.sp6};
|
|
39
|
-
`;function Gt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o,sections:a}=e,{selectedAdditionalBalances:n}=t,r=a.income.balances;if(o==null||o===0||r.length===0)return s.jsx(Ht,{});const p=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent"),i=r.reduce((b,w)=>b+w.balance.amount,0),c=r[r.length-1],l=r[0],g={...c,balance:{...c.balance,amount:i},startDate:l.startDate},m=de(g,p);return s.jsx(Yt,{children:s.jsx(Q,{balance:g,dateText:m,showInfotip:!1})})}const Ut=({highlightedRangeReport:e,uiState:t})=>{switch(e.reportId){case"net_burn_or_income":return s.jsx(Ft,{highlightedRangeReport:e,uiState:t});case"revenue":return s.jsx(Gt,{highlightedRangeReport:e,uiState:t});case"operating_expenses":return s.jsx(Wt,{highlightedRangeReport:e,uiState:t});case"cash_position":return s.jsx(zt,{highlightedRangeReport:e});case"cash_in_cash_out":return s.jsx(Tt,{highlightedRangeReport:e});default:return null}},se={wrapperPadding:new I(N[3],N[3],N[8]),chartHeight:new I(288,360)},Zt=u.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
flex: 1 1 auto;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
height: ${e=>se.chartHeight.valuePx(e.windowSize)};
|
|
44
|
-
`,qt=u.div`
|
|
45
|
-
display: flex;
|
|
46
|
-
`,Xt=e=>{const t=O(),{selectedRangeReport:o,selectedClassesViewRangeReport:a,uiState:n,onCOABalancesRangeChanged:r}=e,p=o.availableNumberOfPeriods==null||o.availableNumberOfPeriods===0,{selectedCOABalancesRange:i,selectedAdditionalBalances:c,highlightedCOABalancesRange:l,timeframe:g}=n,m=a!==void 0&&a.uiState.accountViewMode==="classes"?a:o;return p?s.jsx(qt,{children:s.jsx(bt,{title:f.getLocalizedStrings().chartCard.no_data_available})}):s.jsx(Zt,{windowSize:t,children:s.jsx(Xe,{children:({height:b,width:w})=>{const x={showBarHoverBackground:!0,onCOABalancesRangeChanged:(v,S,h)=>{Jt(o.firstMonthOfFY,c,o.reportId,S,v,e.analytics),r(i,h)},highlightedRange:l,isDetailPage:!0,timeframe:g,width:w,height:b};switch(m.reportId){case"net_burn_or_income":return s.jsx(be,{selectedRangeReport:o,...x,mode:e.uiState.mode});case"net_burn_or_income_by_classes":return s.jsx(be,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"revenue":return s.jsx(fe,{selectedRangeReport:o,...x,mode:e.uiState.mode});case"revenue_by_classes":return s.jsx(fe,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"operating_expenses":return s.jsx(he,{selectedRangeReport:o,...x,mode:e.uiState.mode});case"operating_expenses_by_classes":return s.jsx(he,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"cash_position":return s.jsx(ft,{selectedRangeReport:o,...x});case"cash_in_cash_out":return s.jsx(ht,{selectedRangeReport:o,...x});default:return null}}})})},Jt=(e,t,o,a,n,r)=>{const p=t.includes("this_period_vs_last_period")||t.includes("this_period_vs_last_period_percent");p===!0&&r?.trackCompareFilterTimeFrame(R(o),U(a),"bar",te(e,a,n)),r?.trackDateRangeFilterChange(R(o),"bar",p,void 0,te(e,a,n))},Ne={net_burn_or_income:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast-dark.png"},revenue:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast-dark.png"},operating_expenses:{light:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast.png",dark:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast-dark.png"}},Ie=ke`
|
|
47
|
-
0% {
|
|
48
|
-
transform: translateY(100%)
|
|
49
|
-
}
|
|
50
|
-
100% {
|
|
51
|
-
transform: translateY(0)
|
|
52
|
-
}
|
|
53
|
-
`,Kt=ke`
|
|
54
|
-
0% {
|
|
55
|
-
opacity: 0
|
|
56
|
-
}
|
|
57
|
-
90% {
|
|
58
|
-
opacity: 0
|
|
59
|
-
}
|
|
60
|
-
100% {
|
|
61
|
-
opacity: 1
|
|
62
|
-
}
|
|
63
|
-
`,Qt=u.div`
|
|
64
|
-
position: fixed;
|
|
65
|
-
top: 0;
|
|
66
|
-
left: 0;
|
|
67
|
-
width: 100%;
|
|
68
|
-
z-index: 10;
|
|
69
|
-
height: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
align-items: center;
|
|
73
|
-
background: ${T.overlayDark};
|
|
74
|
-
`,es=u.div`
|
|
75
|
-
position: fixed;
|
|
76
|
-
top: 0;
|
|
77
|
-
left: 0;
|
|
78
|
-
width: 100%;
|
|
79
|
-
z-index: 10;
|
|
80
|
-
height: 100%;
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
align-items: center;
|
|
84
|
-
overflow: auto;
|
|
85
|
-
background: ${T.blackColor}E6;
|
|
86
|
-
`,Re=u.div`
|
|
87
|
-
padding: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?d.sp0:`${d.sp0} ${d.sp8}`};
|
|
88
|
-
margin-top: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?d.sp0:d.sp7};
|
|
89
|
-
width: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"100%":"620px"};
|
|
90
|
-
height: 544px;
|
|
91
|
-
text-align: center;
|
|
92
|
-
`,Te=u.div`
|
|
93
|
-
display: flex;
|
|
94
|
-
justify-content: flex-end;
|
|
95
|
-
width: 100%;
|
|
96
|
-
padding: ${d.sp3} ${d.sp4};
|
|
97
|
-
`,De=u.div`
|
|
98
|
-
color: ${e=>e.theme.colors.hero};
|
|
99
|
-
width: ${d.sp3};
|
|
100
|
-
height: ${d.sp3};
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
line-height: ${d.sp0};
|
|
103
|
-
&:hover {
|
|
104
|
-
color: ${e=>e.theme.colors.primary};
|
|
105
|
-
}
|
|
106
|
-
animation: ${Kt} 0.4s;
|
|
107
|
-
`,ts=u.div`
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
justify-content: space-between;
|
|
111
|
-
flex-wrap: wrap;
|
|
112
|
-
align-items: center;
|
|
113
|
-
text-align: center;
|
|
114
|
-
height: 640px;
|
|
115
|
-
width: 700px;
|
|
116
|
-
background: ${e=>e.theme.colors.grey5};
|
|
117
|
-
border-radius: ${d.sp2};
|
|
118
|
-
animation: ${Ie} 0.4s;
|
|
119
|
-
position: relative;
|
|
120
|
-
`,ss=u.div`
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
justify-content: space-between;
|
|
124
|
-
flex-wrap: wrap;
|
|
125
|
-
align-items: center;
|
|
126
|
-
text-align: center;
|
|
127
|
-
height: 640px;
|
|
128
|
-
width: 100%;
|
|
129
|
-
animation: ${Ie} 0.4s;
|
|
130
|
-
position: relative;
|
|
131
|
-
`,os=u.div`
|
|
132
|
-
position: absolute;
|
|
133
|
-
left: 0;
|
|
134
|
-
margin-top: 130px;
|
|
135
|
-
`,as=u.div`
|
|
136
|
-
position: absolute;
|
|
137
|
-
left: 0;
|
|
138
|
-
margin-top: 500px;
|
|
139
|
-
`,ns=u.div`
|
|
140
|
-
position: absolute;
|
|
141
|
-
right: 30px;
|
|
142
|
-
margin-top: 200px;
|
|
143
|
-
`,is=u.div`
|
|
144
|
-
width: 140px;
|
|
145
|
-
transform: rotate(-22.31deg);
|
|
146
|
-
`,rs=u.div`
|
|
147
|
-
position: absolute;
|
|
148
|
-
width: 130px;
|
|
149
|
-
height: ${d.sp0};
|
|
150
|
-
margin-top: ${d.sp2};
|
|
151
|
-
border: none;
|
|
152
|
-
border-top: 3px dotted ${e=>e.theme.colors.grey3};
|
|
153
|
-
float: left;
|
|
154
|
-
`,cs=u.div`
|
|
155
|
-
width: 0;
|
|
156
|
-
height: 0;
|
|
157
|
-
border-top: 10px solid transparent;
|
|
158
|
-
border-bottom: 10px solid transparent;
|
|
159
|
-
border-left: ${d.sp3} solid ${e=>e.theme.colors.grey3};
|
|
160
|
-
float: right;
|
|
161
|
-
`,ls=u($e)`
|
|
162
|
-
max-width: 496px;
|
|
163
|
-
margin-top: ${d.sp7};
|
|
164
|
-
margin: auto;
|
|
165
|
-
color: ${e=>e.theme.colors.primary};
|
|
166
|
-
`,ds=u($e)`
|
|
167
|
-
max-width: 330px;
|
|
168
|
-
margin: auto;
|
|
169
|
-
color: ${T.primaryDark};
|
|
170
|
-
`,ze=u.div``,Me=u(oe)`
|
|
171
|
-
margin: ${d.sp3} auto;
|
|
172
|
-
max-width: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"330px":"422px"};
|
|
173
|
-
color: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?T.heroDark:e.theme.colors.hero};
|
|
174
|
-
`,ps=u.div`
|
|
175
|
-
display: flex;
|
|
176
|
-
flex-direction: column;
|
|
177
|
-
align-items: center;
|
|
178
|
-
justify-content: center;
|
|
179
|
-
margin-top: 22px;
|
|
180
|
-
margin-bottom: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?d.sp3:d.sp4};
|
|
181
|
-
`,us=u.ul`
|
|
182
|
-
display: flex;
|
|
183
|
-
flex-direction: column;
|
|
184
|
-
text-align: left;
|
|
185
|
-
width: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"350px":"620px"};
|
|
186
|
-
color: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?T.heroDark:e.theme.colors.hero};
|
|
187
|
-
margin-top: 22px;
|
|
188
|
-
list-style-position: outside;
|
|
189
|
-
padding-left: ${d.sp3};
|
|
190
|
-
`,ne=u(tt)``,ie=u(et)``,re=u.li``,ms=u.div`
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
max-width: 712px;
|
|
193
|
-
display: flex;
|
|
194
|
-
`,gs=u.div`
|
|
195
|
-
margin-bottom: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?d.sp4:d.sp0};
|
|
196
|
-
background: ${e=>e.theme.colors.grey3};
|
|
197
|
-
border-radius: 12px;
|
|
198
|
-
border: ${e=>`1px solid ${e.theme.colors.grey5}`};
|
|
199
|
-
padding: ${d.sp2};
|
|
200
|
-
`,ce=()=>s.jsxs(is,{children:[s.jsx(rs,{}),s.jsx(cs,{})]}),Ae=({imgSrc:e})=>{const t=O();return s.jsxs(ps,{windowSize:t,children:[s.jsx(ms,{windowSize:t,children:s.jsx(gs,{windowSize:t,children:s.jsx("img",{src:e,alt:"forecast-promo",style:{width:"343px",height:"220px",borderRadius:d.sp2,display:"block"}})})}),s.jsxs(us,{windowSize:t,children:[s.jsxs(re,{children:[s.jsx(ie,{children:f.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),s.jsx(ne,{children:f.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]}),s.jsxs(re,{children:[s.jsx(ie,{children:f.getLocalizedStrings().forecastPromoPage.trackText.bold}),s.jsx(ne,{children:f.getLocalizedStrings().forecastPromoPage.trackText.regular})]}),s.jsxs(re,{children:[s.jsx(ie,{children:f.getLocalizedStrings().forecastPromoPage.preciseText.bold}),s.jsx(ne,{children:f.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})},hs=e=>{const{onClose:t,reportId:o,meetingUrl:a}=e,n=O(),r=X(),p=l=>{l.stopPropagation(),t()},i=()=>{window.open(a.toString(),"_blank")},c=Ne[o][r.mode];return s.jsxs(es,{role:"presentation",onClick:l=>p(l),children:[s.jsx(Te,{children:s.jsx(De,{children:s.jsx(Ce,{style:{width:"18px",height:"18px"}})})}),s.jsx(ss,{onClick:l=>l.stopPropagation(),children:s.jsxs(Re,{windowSize:n,children:[s.jsx(ds,{children:f.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(Ae,{imgSrc:c}),s.jsxs(ze,{children:[s.jsx(je,{variant:"primary",label:f.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:i,style:{backgroundColor:T.primaryDark,borderColor:T.primaryDark,color:T.neutralGrey5Dark}}),s.jsx(Me,{windowSize:n,children:f.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})})]})},fs=e=>{const{onClose:t,reportId:o,meetingUrl:a}=e,n=O(),r=X(),p=l=>{l.stopPropagation(),t()},i=()=>{window.open(a.toString(),"_blank")},c=Ne[o][r.mode];return s.jsxs(Qt,{role:"presentation",onClick:l=>p(l),children:[s.jsx(Te,{children:s.jsx(De,{children:s.jsx(Ce,{style:{width:"18px",height:"18px"}})})}),s.jsxs(ts,{onClick:l=>l.stopPropagation(),children:[s.jsxs(Re,{windowSize:n,children:[s.jsx(ls,{children:f.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(Ae,{imgSrc:c}),s.jsxs(ze,{children:[s.jsx(je,{variant:"primary",label:f.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:i}),s.jsx(Me,{windowSize:n,children:f.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]}),s.jsx(os,{children:s.jsx(ce,{})}),s.jsx(as,{children:s.jsx(ce,{})}),s.jsx(ns,{children:s.jsx(ce,{})})]})]})};function bs(e){const t=O();return t==="small"||t==="medium-compact"?s.jsx(hs,{...e}):s.jsx(fs,{...e})}const le="ZeniSwitch",z={root:`${le}-root`,switchBase:`${le}-switchBase`,track:`${le}-track`},xs=({className:e,...t})=>s.jsx(it,{...t,className:e,classes:{...z}}),_s=Qe(xs)(({theme:e})=>({[`& .${z.switchBase}`]:{color:e.colors.grey2},[`& .${z.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${z.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${z.switchBase}.Mui-checked + .${z.track}`]:{backgroundColor:e.colors.grey1},[`& .${z.switchBase}.Mui-disabled`]:{color:e.colors.grey4},[`& .${z.switchBase}.Mui-disabled + .${z.track}`]:{opacity:.5,backgroundColor:e.colors.background}})),Fe=e=>s.jsx(_s,{...e}),Z={containerMaxWidth:new I(124,154),forecastNameInnerWidth:new I(75,105),forecastNameOuterWidth:new I(90,120),tooltipTopPosition:new I(51,51),tooltipWidth:new I(180,150)},xe=u.div``,ws=u.div`
|
|
201
|
-
min-width: ${e=>Z.forecastNameInnerWidth.valuePx(e.windowSize)};
|
|
202
|
-
&:hover {
|
|
203
|
-
.info-tooltip {
|
|
204
|
-
display: flex;
|
|
205
|
-
flex-direction: row;
|
|
206
|
-
justify-content: center;
|
|
207
|
-
align-items: center;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
`,Ss=u.div`
|
|
211
|
-
display: flex;
|
|
212
|
-
flex-direction: column;
|
|
213
|
-
width: 315px;
|
|
214
|
-
white-space: normal;
|
|
215
|
-
`,ys=u(rt)`
|
|
216
|
-
display: flex;
|
|
217
|
-
justify-content: space-between;
|
|
218
|
-
color: ${e=>e.isValid===!0?e.theme.colors.primary:e.theme.colors.grey1};
|
|
219
|
-
margin-bottom: ${d.sp1};
|
|
220
|
-
align-items: center;
|
|
221
|
-
`,vs=u(oe)`
|
|
222
|
-
display: flex;
|
|
223
|
-
color: ${e=>e.isValid===!0?e.theme.colors.primary:e.theme.colors.grey1};
|
|
224
|
-
margin-bottom: ${d.sp1};
|
|
225
|
-
`,Cs=u.div``,js=u.div``,$s=u(ct)`
|
|
226
|
-
display: flex;
|
|
227
|
-
color: ${T.alert};
|
|
228
|
-
`,ks=u(lt)`
|
|
229
|
-
color: ${T.alert};
|
|
230
|
-
width: ${d.sp4};
|
|
231
|
-
height: ${d.sp4};
|
|
232
|
-
margin-right: ${d.sp1};
|
|
233
|
-
`,Os=u.span`
|
|
234
|
-
overflow: hidden;
|
|
235
|
-
white-space: nowrap;
|
|
236
|
-
text-overflow: ellipsis;
|
|
237
|
-
max-width: ${e=>Z.forecastNameOuterWidth.valuePx(e.windowSize)};
|
|
238
|
-
text-align: right;
|
|
239
|
-
`,Bs=u.div`
|
|
240
|
-
display: flex;
|
|
241
|
-
flex-direction: row;
|
|
242
|
-
align-items: center;
|
|
243
|
-
justify-content: end;
|
|
244
|
-
`,Ps=u.div`
|
|
245
|
-
background-color: ${e=>e.isValid===!0?e.theme.colors.primary:e.theme.colors.grey1};
|
|
246
|
-
border-radius: 3px;
|
|
247
|
-
border-width: 1px;
|
|
248
|
-
border-style: solid;
|
|
249
|
-
width: 3px;
|
|
250
|
-
height: 3px;
|
|
251
|
-
align-self: center;
|
|
252
|
-
margin-left: ${d.sp2};
|
|
253
|
-
margin-right: ${d.sp2};
|
|
254
|
-
`,Ls=u.div``,Ns=u.div`
|
|
255
|
-
display: none;
|
|
256
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
257
|
-
position: absolute;
|
|
258
|
-
padding: 2px 5px;
|
|
259
|
-
border: 1px solid ${e=>e.theme.colors.primary};
|
|
260
|
-
border-radius: ${d.sp1};
|
|
261
|
-
z-index: 1;
|
|
262
|
-
width: ${e=>Z.tooltipWidth.valuePx(e.windowSize)};
|
|
263
|
-
top: ${e=>Z.tooltipTopPosition.valuePx(e.windowSize)};
|
|
264
|
-
`,Is=u(st)`
|
|
265
|
-
color: ${e=>e.theme.colors.grey5};
|
|
266
|
-
`;function Rs({selectedForecastIndex:e,forecasts:t,isDisabled:o,isForecastValid:a,onForecastSelectionChanged:n}){const r=O(),{dateFormat:{visual:p}}=f.getLocalizedStrings(),i=m=>`${m.startDate.format(p.MMMYYYYFormat)} - ${m.endDate.format(p.MMMYYYYFormat)}`,c=m=>m.map((b,w)=>({label:b.name,value:w,forecastId:b.id,timeframeLabel:i(b.forecastPeriod),isValid:a(b)})),[l,g]=_.useState(c(t));return K.useEffect(()=>{g(c(t))},[t]),s.jsxs(ws,{windowSize:r,children:[s.jsx(Ls,{children:s.jsx(Ns,{className:"info-tooltip",windowSize:r,children:s.jsx(Is,{children:l[e]!=null?l[e].label:""})})}),s.jsx(Ts,{selectedForecast:l[e],forecastOptions:l,isDisabled:o,onForecastSelectionChanged:n})]})}const Ts=({selectedForecast:e,forecastOptions:t,isDisabled:o,onForecastSelectionChanged:a})=>{const n=X(),r=O(),[p,i]=_.useState(e),c=n.colors.grey5,l=n.colors.grey5,g=n.colors.grey3;_.useEffect(()=>{i(e)},[e]);const m=u(ot)`
|
|
267
|
-
height: ${d.sp3};
|
|
268
|
-
width: ${d.sp3};
|
|
269
|
-
`,b=u(at)`
|
|
270
|
-
height: 12px;
|
|
271
|
-
width: 12px;
|
|
272
|
-
margin-left: 6px;
|
|
273
|
-
`,w=({children:h,...C})=>s.jsx(ae.SingleValue,{...C,children:s.jsxs(Bs,{children:[s.jsx(Os,{windowSize:r,children:h}),s.jsx(b,{})]})}),x=h=>s.jsx(ae.DropdownIndicator,{...h,children:s.jsx(xe,{})}),v=h=>s.jsx(xe,{children:s.jsx(ae.Option,{...h,children:s.jsxs(Ss,{children:[s.jsxs(ys,{isValid:h.data.isValid,children:[h.label,h.isSelected?s.jsx(m,{}):null]}),s.jsxs(vs,{isValid:h.data.isValid,children:[s.jsx(Cs,{children:h.data.timeframeLabel}),s.jsx(Ps,{isValid:h.data.isValid}),s.jsx(js,{children:f.getLocalizedStrings().chartCard.forecast_dropdown.forecast_source})]}),h.data.isValid===!1?s.jsxs($s,{children:[s.jsx(ks,{}),f.getLocalizedStrings().chartCard.forecast_dropdown.forecast_invalid_issue]}):null]})})}),S={control:(h,C)=>({...h,border:0,backgroundColor:l,color:C.selectProps.menuIsOpen===!0?n.colors.primary:n.colors.hero,boxShadow:l,":active":{backgroundColor:l},":hover":{color:n.colors.primary},"span::after":{content:"''",display:"block"},minHeight:"auto",cursor:"pointer"}),container:h=>({...h,backgroundColor:l,maxWidth:Z.containerMaxWidth.valuePx(r),minWidth:Z.containerMaxWidth.valuePx(r)}),singleValue:(h,C)=>({...h,color:C.selectProps.menuIsOpen===!0?n.colors.primary:n.colors.champion,maxWidth:"100%",minWidth:"100%",overflow:"auto",":hover":{color:n.colors.primary},marginLeft:0,position:"inherit",transform:"none",top:0,marginRight:0,opacity:"1"}),menu:h=>({...h,backgroundColor:c,borderRadius:N[1],boxShadow:`${d.sp0} 2px ${d.sp2} ${n.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:20}),menuList:h=>({...h,borderRadius:N[1],maxWidth:"350px"}),option:(h,{isDisabled:C,isSelected:k,isFocused:V})=>({...h,color:k?n.colors.champion:n.colors.hero,backgroundColor:k===!0?g:V===!0&&C!==!0?n.colors.background:c,cursor:C===!0?"not-allowed":"pointer",padding:`11px ${d.sp3}`,":hover":{backgroundColor:C===!1?k===!0?g:n.colors.background:c,color:n.colors.primary},borderBottom:"1px solid "+n.colors.grey3}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({})};return s.jsx(nt,{options:t,components:{SingleValue:w,DropdownIndicator:x,Option:v},styles:S,defaultValue:p,onChange:h=>{const C=h;i(C),a(C.forecastId,C.value)},isSearchable:!1,isClearable:!1,isOptionDisabled:h=>h.isValid===!1,theme:h=>({...h,colors:{...h.colors,primary:c}}),isDisabled:o})},_e={timeframePaddingLeft:new I(0,0,245),timeframePaddingBottom:new I(8,8,0)},Ds=u.div`
|
|
274
|
-
display: flex;
|
|
275
|
-
width: 100%;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
`,zs=u.div`
|
|
278
|
-
display: flex;
|
|
279
|
-
width: 100%;
|
|
280
|
-
flex-direction: row;
|
|
281
|
-
`,Ee=u.div`
|
|
282
|
-
display: flex;
|
|
283
|
-
flex-direction: row;
|
|
284
|
-
flex: 1 1 auto;
|
|
285
|
-
justify-content: center;
|
|
286
|
-
padding-left: ${e=>_e.timeframePaddingLeft.valuePx(e.windowSize)};
|
|
287
|
-
padding-bottom: ${e=>_e.timeframePaddingBottom.valuePx(e.windowSize)};
|
|
288
|
-
`,Ms=u.div`
|
|
289
|
-
display: flex;
|
|
290
|
-
width: 100%;
|
|
291
|
-
flex-direction: row;
|
|
292
|
-
align-items: center;
|
|
293
|
-
justify-content: center;
|
|
294
|
-
`,As=u.div`
|
|
295
|
-
display: flex;
|
|
296
|
-
flex-direction: row;
|
|
297
|
-
align-items: center;
|
|
298
|
-
justify-self: flex-end;
|
|
299
|
-
justify-content: flex-end;
|
|
300
|
-
min-width: 315px;
|
|
301
|
-
`,Fs=u.div`
|
|
302
|
-
display: flex;
|
|
303
|
-
flex-direction: row;
|
|
304
|
-
align-items: center;
|
|
305
|
-
margin-right: ${d.sp5};
|
|
306
|
-
`,Ve=u(oe)`
|
|
307
|
-
color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
|
|
308
|
-
opacity: ${e=>e.isDisabled?.5:1};
|
|
309
|
-
`,We=({label:e,isOn:t,isToggleDisabled:o,onValueChanged:a})=>s.jsxs(s.Fragment,{children:[s.jsx(Ve,{isOn:t,isDisabled:o===!0,children:e}),s.jsx(Fe,{checked:t,edge:"end",disabled:o===!0,disableRipple:o===!0,onChange:n=>{a(n.target.checked)}})]});function Ye({isOn:e,isDisabled:t,selectedForecastIndex:o,forecasts:a,isForecastValid:n,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(Fs,{children:[e===!0&&a!=null&&a.length!==0?s.jsx(Rs,{selectedForecastIndex:o??0,forecasts:a,isForecastValid:n,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(Ve,{isOn:e,isDisabled:t===!0,children:f.getLocalizedStrings().reports.forecast.forecast}),s.jsx(Fe,{checked:e,edge:"end",disabled:t===!0,disableRipple:t===!0,onChange:i=>{r(i.target.checked)}})]})}const Es=e=>{const t=O();return s.jsxs(Ds,{children:[s.jsx(Ee,{windowSize:t,children:s.jsx(Oe,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(Ms,{children:[e.forecastListWithToggle!=null&&s.jsx(Ye,{...e.forecastListWithToggle}),s.jsx(We,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})},Vs=e=>{const t=O();return s.jsxs(zs,{children:[s.jsx(Ee,{windowSize:t,children:s.jsx(Oe,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(As,{children:[e.forecastListWithToggle!=null&&s.jsx(Ye,{...e.forecastListWithToggle}),s.jsx(We,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})};function Ws(e){const t=O();return t==="small"||t==="medium-compact"?s.jsx(Es,{...e}):s.jsx(Vs,{...e})}const Ys=u.div`
|
|
310
|
-
display: flex;
|
|
311
|
-
padding: ${d.sp2} ${d.sp0} ${d.sp4} ${d.sp0};
|
|
312
|
-
`,Hs=u.div``,Gs=u.div``,Us=e=>{const{selectedRangeReport:t,uiState:o,analytics:a,onThisPeriodChanged:n,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:i}=e,c=ve(),{allTimeframeTicks:l}=t,{selectedCOABalancesRange:g,timeframe:m}=o,b=t.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],w=t.availableNumberOfPeriods!=null&&t.availableNumberOfPeriods<2,x=o.mode==="compare_mode"&&!w,v=c.connectionName!=="netsuite"&&(t.reportId==="net_burn_or_income"||t.reportId==="operating_expenses"||t.reportId==="revenue");let S,h;switch(t.reportId){case"revenue":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"net_burn_or_income":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"operating_expenses":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;default:S=void 0}const C=t.availableNumberOfPeriods==null||t.availableNumberOfPeriods===0,k=C||t.availableNumberOfPeriods===1,V=y=>!!y.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[B,A]=_.useState(!1),Y=D.toZeniUrl("https://meetings.hubspot.com/svitlana-grankovska"),F=o.mode,L=o.selectedForecast;_.useEffect(()=>{F==="forecast_mode"&&h==="Completed"&&S?.length===0&&(A(!0),document.body.style.overflow="hidden")},[h,F,S]),_.useEffect(()=>{F==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(R(t.reportId),S[L.index].name)},[L]);const W=(y,j,H)=>{j===!0&&e.analytics?.trackForecastVsActualMode(R(t.reportId),"",y==="forecast_mode"),e.onForecastToggle?.(y,H)};return s.jsx(Gs,{children:s.jsxs(Hs,{children:[s.jsx(Ys,{children:s.jsx(Ws,{timeframe:{allowedTimeframes:b,selectedTimeframe:m,onTimeframeSelectionChanged:y=>{e.analytics?.trackTimeframeSwitch(U(y),R(t.reportId)),r?.(y),e.uiState.mode==="compare_mode"&&!x&&i(x,x?["this_period_vs_last_period_percent"]:[],x?3:1)}},compareToggle:{label:f.getLocalizedStrings().compareSwitchLabel,isOn:k?!1:x,isToggleDisabled:k,onValueChanged:y=>{const j=y===!0||o.mode==="forecast_mode"?3:1;a?.trackCompareMode(y,R(t.reportId),U(m)),i(y,y?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],j)}},forecastListWithToggle:v===!0?{isOn:o.mode==="forecast_mode",isToggleDisabled:k,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:V,onForecastSelectionChanged:(y,j)=>W("forecast_mode",!1,{id:y,index:j}),onForecastToggleChanged:y=>{W(y===!0?"forecast_mode":"off",!0)}}:void 0})}),B==!0?s.jsx(bs,{meetingUrl:Y,reportId:t.reportId,onClose:()=>{A(!1),e.onForecastToggle?.("off");const y=1;document.body.style.overflow="auto",i(x,x?["this_period_vs_last_period_percent"]:[],y)}}):null,C?null:s.jsx(xt,{firstMonthOfFY:t.firstMonthOfFY,timeframe:m,timeframeTicks:l,selection:{selectedTicks:ge(l,g),highlightedOfSelectedTicks:ge(l,g)},onClick:(y,j)=>{we(t.firstMonthOfFY,x,t.reportId,m,j,e.analytics),n(j)},onSelectionChanged:(y,j)=>{const H=mt(l,y.fromEnd),G=gt(l,j);we(t.firstMonthOfFY,x,t.reportId,m,G.thisPeriod,e.analytics),p(H,G)}})]})})},we=(e,t,o,a,n,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(R(o),U(a),"range filter",te(e,a,n)),r?.trackDateRangeFilterChange(R(o),"range filter",t,te(e,a,n))};function ue({account:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:r,parentNodeIDs:p}){return{children:[],id:E("ac_report",p,e.accountId),isLastNode:n,reportElementData:{element:{kind:"ac_report",title:a,sectionType:t,data:e,numOfBalances:o},config:r}}}function Zs({acGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:r,parentNodeIDs:p}){const i=E("ac_group_report",p,e.accountGroupId),c={children:[],id:i,isLastNode:n,reportElementData:{element:{kind:"ac_group_report",title:a,sectionType:t,data:e,numOfBalances:o},config:r}},l=pe(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return c.children=l.map((g,m)=>ue({account:g,sectionType:t,numOfBalances:o,title:g.accountDescription,config:r,isLastNode:m===l.length-1,parentNodeIDs:[...p,i]})),c}function Se({section:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:r}){const p=E("section",[],a),i={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:r}},c=St(e,r.displayOrder,o,!1),l=qs(c.balances),g=pe(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances),m=g.compactedAccountsSelectorVariant(e.accountsOrdered),b=g.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(l===!0&&(b.length>0||e.accountsOrdered.length>0)){const w=b.map((v,S)=>Zs({acGroup:v,sectionType:t,numOfBalances:o,title:v.accountGroupName,isLastNode:S===b.length-1,config:r,parentNodeIDs:[p]})),x=m.map((v,S)=>ue({account:v,sectionType:t,numOfBalances:o,title:v.accountDescription,isLastNode:S===e.accountsOrdered.length-1,config:r,parentNodeIDs:[p]}));i.children.push(...w),i.children.push(...x)}return i}function qs(e){let t=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){t=!0;break}}return t}function M({balances:e,config:t,nodeId:o}){let a="timeframe_headers";return t.mode==="actual_vs_forecast"&&(a="timeframe_headers_with_forecast"),{children:[],id:o??E("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:a,title:"",data:e,numOfBalances:e.length},config:t}}}function Xs(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.cashIn.balances?[...e.cashIn.balances,...e.cashIn.additionalBalances]:e.cashOut.balances?[...e.cashOut.balances,...e.cashOut.additionalBalances]:[],p=M({balances:r,config:t}),i=Se({section:e.cashIn,sectionType:"cash_in",numOfBalances:n,title:a.sections.cashIn,isLastNode:!0,config:t}),c=Se({section:e.cashOut,sectionType:"cash_out",numOfBalances:n,title:a.sections.cashOut,isLastNode:!0,config:t}),l=ee({calculatedSection:e.netCashFlow,numOfBalances:n,title:a.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:o?[p]:[],contentNodes:[p,i,c,l]}}function me({title:e,balances:t,config:o,numOfBalances:a,nodeId:n}){return{children:[],id:n??E("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:a},config:o}}}function Js(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.cashPosition.balances,...e.cashPosition.additionalBalances],p=e.cashPosition,i=M({balances:r,config:t}),c=me({title:f.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:n}),l=E("section",[],a.sections.netCashFlow),g=pe("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((m,b)=>ue({account:m,sectionType:"cash_position",numOfBalances:n,title:m.accountDescription,isLastNode:b===e.cashPosition.accountsOrdered.length-1,config:t,parentNodeIDs:[l]}));return{config:t,headerNodes:o?[i]:[],contentNodes:[i,c,...g]}}function Ks(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=M({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeClassesViewSectionID(c)===!0?i.push(Be({section:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:n,title:c==="netBurnOrIncome"?e.reportTitle:a.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function Qs(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=M({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeReportViewSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):i.push(Le({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeReportViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:n,title:c==="netBurnOrIncome"?e.reportTitle:a.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function eo(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=M({balances:r,config:t}),i=e.sections.expenses,c=me({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:n}),l=[];l.push(p),l.push(c);const g=E("section",[],a.sections.expenses);return e.sections.expenses.classes.forEach((m,b)=>{l.push(yt({classNode:m,sectionType:"expenses",numOfBalances:n,title:m.class.className,isLastNode:m.isLeafClass,config:t,parentNodeIDs:[g],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:m.id.length-1,hasSibling:!1,hasChildren:m.children.length>0,isLastNode:b===e.sections.expenses.classes.length-1,name:m.class.className}]}}))}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}function to(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=M({balances:r,config:t}),i=e.sections.expenses,c=me({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:n}),l=E("section",[],a.sections.expenses),g=wt("no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances),m=[];m.push(p),m.push(c);const b=g.compactedAccountGroupsSelector(e.sections.expenses.accountGroups);if(b.length!=0){const w=b.map((x,v)=>vt({acGroup:x,sectionType:"expenses",numOfBalances:n,title:x.accountGroupName,isLastNode:v===b.length-1,config:t,parentNodeIDs:[l]}));m.push(...w)}else if(e.sections.expenses.accounts?.length!==0){const w=g.compactedAccountsSelectorVariant(e.sections.expenses.accounts),x=w.map((v,S)=>Ct({account:v,sectionType:"expenses",numOfBalances:n,title:v.account.accountName,isLastNode:S===w.length-1,config:t,parentNodeIDs:[l],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:w.length>1,hasChildren:v.children.length>0,isLastNode:S===w.length-1}]}}));m.push(...x)}return{config:t,headerNodes:o?[p]:[],contentNodes:m}}function so(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=M({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueClassesViewSectionID(c)===!0?i.push(Be({section:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):D.isRevenueClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:n,title:a.sections.grossMargin,isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function oo(e,t,o=!0){const a=f.getLocalizedStrings().reports,n=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=M({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):i.push(Le({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t})):D.isRevenueCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:n,title:a.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function ao(e,t,o,a=!0){Object.assign(e.config,t);const n=no(o),r=M({balances:n,config:t});return{config:t,headerNodes:a?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const no=e=>{switch(e.reportId){case"net_burn_or_income":{const t=e;return 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]:[]}case"net_burn_or_income_by_classes":{const t=e;return 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]:[]}case"revenue":{const t=e;return 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]:[]}case"revenue_by_classes":{const t=e;return 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]:[]}case"cash_position":{const t=e;return[...t.cashPosition.balances,...t.cashPosition.additionalBalances]}case"cash_in_cash_out":{const t=e;return t.cashIn.balances.length>0?[...t.cashIn.balances,...t.cashIn.additionalBalances]:[...t.cashOut.balances,...t.cashOut.additionalBalances]}case"operating_expenses":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}default:return[]}},ye={contentPaddingLeft:new I(N[0],N[0],N[0]),contentPaddingRight:new I(N[3],N[3],N[8])},io=u.div`
|
|
313
|
-
width: 100%;
|
|
314
|
-
height: calc(100vh - 70px);
|
|
315
|
-
`,ro=u.div`
|
|
316
|
-
display: flex;
|
|
317
|
-
position: sticky;
|
|
318
|
-
justify-content: center;
|
|
319
|
-
padding-top: ${d.sp6};
|
|
320
|
-
padding-left: ${e=>se.wrapperPadding.valuePx(e.windowSize)};
|
|
321
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
322
|
-
`,co=u.div`
|
|
323
|
-
position: absolute;
|
|
324
|
-
margin-top: ${d.sp3};
|
|
325
|
-
`,lo=e=>{const t=O(),o=X(),{selectedRangeReport:a,selectedClassesViewRangeReport:n,uiState:r,scrollPosition:p,isZeniUser:i,onTableScroll:c,onElementCollapseStateChanged:l,onAccountBalanceClick:g,onUpdateAccountViewMode:m,onUpdateClassesToFilterOut:b,onOpenAccountViewMode:w}=e,{highlightedCOABalancesRange:x,mode:v}=r,S=a.availableNumberOfPeriods==null||a.availableNumberOfPeriods===0,h=a.availableNumberOfPeriods!=null&&a.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!h,k=C||r.mode==="forecast_mode"?3:1,V=P=>{e.analytics?.trackCompareFilterChange(P==="compare_mode_percent"?"percentage":"amount",R(a.reportId),U(r.timeframe),"dropdown");const $=P==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[$],x?.numberOfPeriods??k)},[B,A]=_.useState(void 0),[Y,F]=_.useState(void 0),L=!(t==="small"||t==="medium-compact"),W=v==="forecast_mode"?"name+balances_forecast":"name+balances_actual",y=uo(r.selectedAdditionalBalances),j=n!==void 0&&n.uiState.accountViewMode==="classes"?n:a,H=v==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",G=a.reportId==="net_burn_or_income"||a.reportId==="operating_expenses"||a.reportId==="revenue",q=(P,$)=>{P!==n?.uiState.accountViewMode&&m?.(P),$&&b?.($)};return _.useEffect(()=>{const P={reportId:v==="forecast_mode"&&r.selectedForecast!=null?`${j.reportId}+${r.selectedForecast?.id}`:j.reportId,mode:H,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:j.bookCloseDate,firstMonthOfFY:j.firstMonthOfFY,filterAccountsWithNilBalances:v==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:Ke(),showClassAccountNumber:i,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:j.dataAvailable};if(B==null||!J(Y,j)){const $=po(j,P,L);F(j),A($)}else{const $=ao(B,P,j,L);A($)}},[W,C,j]),s.jsx(ro,{windowSize:t,children:S?s.jsx(jt,{}):B!=null?s.jsxs(io,{children:[s.jsx(_t,{backgroundColor:new Je(o.colors.grey4),rootNodes:B,type:W,compareMode:y,isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:ye.contentPaddingLeft.value(t),right:ye.contentPaddingRight.value(t)},onAccountClick:g==null?void 0:(P,$)=>{g(P,$)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:V,onScroll:c,onNodeCollapseToggled:l}),G===!0&&n!==void 0?s.jsx(co,{children:s.jsx(pt,{reportId:a.reportId,nodes:n.classHierarchy,classesListFetchState:n.fetchState,selectedView:n.uiState.accountViewMode,showClassAccountNumber:i,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:q,classesToBeFilteredOut:n.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:n.firstMonthOfFY,onOpenAccountViewMode:w})}):null]}):null})},po=(e,t,o=!0)=>{switch(e.reportId){case"net_burn_or_income":return Qs(e,t,o);case"net_burn_or_income_by_classes":return Ks(e,t,o);case"revenue":return oo(e,t,o);case"revenue_by_classes":return so(e,t,o);case"cash_position":return Js(e,t,o);case"cash_in_cash_out":return Xs(e,t,o);case"operating_expenses":return to(e,t,o);case"operating_expenses_by_classes":return eo(e,t,o);default:return}},uo=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",mo=u.div`
|
|
326
|
-
display: flex;
|
|
327
|
-
flex: 1 1 auto;
|
|
328
|
-
min-height: 100%;
|
|
329
|
-
flex-direction: column;
|
|
330
|
-
width: 100%;
|
|
331
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
332
|
-
`,go=u.div`
|
|
333
|
-
position: relative;
|
|
334
|
-
box-shadow: ${e=>`2px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
335
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
336
|
-
padding-left: ${e=>se.wrapperPadding.valuePx(e.windowSize)};
|
|
337
|
-
padding-right: ${e=>se.wrapperPadding.valuePx(e.windowSize)};
|
|
338
|
-
`,ho=u.div`
|
|
339
|
-
display: flex;
|
|
340
|
-
justify-content: center;
|
|
341
|
-
padding: ${d.sp6} ${d.sp0};
|
|
342
|
-
`,fo=u.div`
|
|
343
|
-
display: flex;
|
|
344
|
-
flex-direction: column;
|
|
345
|
-
justify-content: center;
|
|
346
|
-
align-items: center;
|
|
347
|
-
height: 100vh;
|
|
348
|
-
margin-top: ${d.sp8};
|
|
349
|
-
`,Zo=e=>{const t=O(),o=X(),[a,n]=_.useState(!1),r=f.getLocalizedStrings(),{reportLabels:p,selectedRangeReport:i,selectedClassesViewRangeReport:c,uiState:l,downloadParams:g,analytics:m,onBackClick:b,updateDownloadStateHandler:w,onAdditionalBalanceSelectionChanged:x}=e,{insights:v}=i,{selectedCOABalancesRange:S,timeframe:h,selectedAdditionalBalances:C,downloadState:k}=l,V=i.availableNumberOfPeriods!=null&&i.availableNumberOfPeriods<2,B=l.mode==="compare_mode"&&!V,A=ve(),Y=A.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess(A.loggedInUserRole),F=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";_.useEffect(()=>{async function $(){await It({report:c!==void 0&&c.uiState.accountViewMode==="classes"?c:i,filter:i.filter,coaBalancesRange:S,isCompareModeOn:B,reportView:c!==void 0?c.uiState.accountViewMode:"account_group",classesToFilterOut:c!==void 0?c.uiState.classesToFilterOut:[],...g,reportType:Y||F?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),m?.trackDownload(R(i.reportId),U(h),"excel",B),w("Completed")}a&&k!=="In-Progress"&&(n(!1),w("In-Progress"),$())},[g,k,i.filter,a,B,S,i,c,h,m,w,Y,F,e.isZeniCOAUsed]);const L=i.availableNumberOfPeriods==null||i.availableNumberOfPeriods===0||i.allTimeframeTicks.length===0,W=i.fetchState==="In-Progress"||i.fetchState==="Not-Started";_.useEffect(()=>{const $=B||l.mode==="forecast_mode"?3:1;x(B,C,$)},[t]);const y=$=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Ue.Event.search,R(i.reportId),$.type,$.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.($)},{autoCompleteData:j,autoCompleteActions:H,scrollPosition:G,...q}=e,P=s.jsx(Ze,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:L,isDownloading:k==="In-Progress"}],onDownloadClick:async $=>{if($==="excel")if(k==="In-Progress"){console.log("Download is already in progress!");return}else n(!0)}}}});return s.jsxs(mo,{children:[s.jsx(He,{title:p.reportTitle,backgroundColor:o.colors.grey5,onBackClick:b,rightSideComponent:P,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:y}},source:"DashboardReportPage"}),W===!0?s.jsx(fo,{children:s.jsx(Ge,{size:"Standard",start:!0})}):L?s.jsx(Pt,{style:{background:o.colors.grey5},emptyContentText:r.common.noReport.replace("_item-name_",`${r.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:$t}):s.jsxs(s.Fragment,{children:[s.jsxs(go,{windowSize:t,children:[s.jsx(wo,{...q}),s.jsx(bo,{highlightedRangeReport:i,uiState:l}),s.jsx(xo,{...q}),s.jsx(ho,{children:s.jsx(ut,{insights:v})})]}),s.jsx(_o,{scrollPosition:G,...q})]})]})},bo=K.memo(Ut,J),xo=K.memo(Xt,J),_o=K.memo(lo,J),wo=K.memo(Us,J);export{Zo as default};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{X as O,a as U,M as $,c3 as V,J,l as j,j as n,bN as Q,bP as X,bQ as Y,F as _,a7 as G,C as u,eS as K,o as Z,as as ee,p as a}from"./index-Bh_1R5Ob.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-6zosSfPV-_bfleBk6.js";import{M as te}from"./MagicLinkTitleSection-DHe9TfVe-BOSN41pz.js";import{W as ae,A as oe}from"./BankAccountWarningSection-CWeN3me0-CDpqfTVJ.js";import{T as ie}from"./MailingDetailsSection-D8CZart4-Bbi4CmcC.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},w="domesticWireDetailsPage",f="bankAccountSection",T="mailingAddressSection",B=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:A,isDisabled:y,companyName:v,isMagicLink:g,currencySymbol:D,amount:P,onSaveHandler:R,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[M,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=$.getLocalizedStrings().common.footer,F=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},q=async(k,m)=>{const d=m[f].bankRoutingNumber;z(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&V(()=>q(d,m))});return()=>{k.unsubscribe()}});const H=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&R("wire")}),S=!J(A!=null?j.getFormattedAddress(A):A,r!=null?j.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[M===!0?n.jsx(Q,{titleComponent:n.jsx(Y,{children:t.discardTitle}),descriptionComponent:n.jsx(X,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:P??0}):F.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(_,{...c,children:n.jsxs("form",{id:B(w),onSubmit:H,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:y})}),n.jsx(ie,{sectionId:T,isDisabled:y,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(G,{formId:B(w),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:y!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[T]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
|
|
2
|
-
padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
|
|
3
|
-
padding-right: ${e=>i.paddingRight.valuePx(e.size)};
|
|
4
|
-
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
|
5
|
-
padding-bottom: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
|
6
|
-
background: ${e=>e.theme.colors.grey4};
|
|
7
|
-
`,de=h(ee)`
|
|
8
|
-
color: ${e=>e.theme.colors.champion};
|
|
9
|
-
margin-left: ${e=>i.marginLeft.valuePx(e.size)};
|
|
10
|
-
margin-top: ${Z.sp3};
|
|
11
|
-
`,le=h.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
flex-grow: 1;
|
|
15
|
-
`,me=h.div`
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
`;export{he as D};
|