@zeniai/web-cockpit-ui 1.13.93-prod → 1.13.94-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-B7Osqlyb-D3Sepxj2.js → ACHDetailsPage-C77hriAS-Bp9UERQr.js} +1 -1
- package/dist/assets/{AIPerformancePage-CEGqk2vj-CNJG25HZ.js → AIPerformancePage-DWLZz5fl-xe6YeuvR.js} +23 -23
- package/dist/assets/{AccountInfoPage-Dsi_xY1U-7_4DMl3t.js → AccountInfoPage-CHH8xpX7-OTuTPmWc.js} +5 -5
- package/dist/assets/AccountInfoPageContent-CslCCxyA-CKIHtSb5.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-Bwc-VZmp-Cu4GHIFH.js → AccountReconDetailsDrawerPage-Bg65723V-z_C0MUXO.js} +15 -15
- package/dist/assets/{AccountRow-DMeCdEPJ-B7b4evpB.js → AccountRow-CBhTc-CO-BhHbolQV.js} +24 -24
- package/dist/assets/{AccountsPromoCardStack-NYQHh0uE-Da1s2rL8.js → AccountsPromoCardStack-C1FN6ldb-CTHlY162.js} +28 -28
- package/dist/assets/{AddAddressForCardDrawer-3WPrDfNL-CzhCPxK8.js → AddAddressForCardDrawer-DKbwVrFG-IuCuUpQj.js} +2 -2
- package/dist/assets/{AddToWalletPage-IjvBXyuu-G8xWNrLi.js → AddToWalletPage-BLH7hMIs-p7f4w_jj.js} +11 -11
- package/dist/assets/{AgingReportsPage-CIJTKbrN-BbBSzoJK.js → AgingReportsPage-iXp5N9xa-BuwByTSa.js} +6 -6
- package/dist/assets/{AllUserItems-BuX43aPo-U1E0yUwo.js → AllUserItems-SiwAGR6X-CB3qDmMz.js} +12 -12
- package/dist/assets/{ApAgingDetailPage-02ejdrQy-CDm976fI.js → ApAgingDetailPage-CSv-Yx3u-CQfdnkLR.js} +3 -3
- package/dist/assets/{AppBasePage-CC3bbnnu-BuIp4juj.js → AppBasePage-BVhJh2iM-DhwgHBUl.js} +1 -1
- package/dist/assets/{AppDrawerContent-B_EAPC9w-DaFfTAjg.js → AppDrawerContent-TBHNokFo-a7xFQjLd.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-DmPsbDZd-DdnQZTKs.js +47 -0
- package/dist/assets/ArAgingChart-CPyAljB5-C1xslsyT.js +24 -0
- package/dist/assets/{ArAgingDetailPage-CMUpR-2N-s_DHo5CV.js → ArAgingDetailPage-BLc5FDm2-BOdfR_tV.js} +1 -1
- package/dist/assets/{AttachmentView-sbbFtu9R-CNprakmJ.js → AttachmentView-sMKTopf8-CQuqGqLW.js} +5 -5
- package/dist/assets/{BankAccountSection-BJPkV-qV-Bi2ymq5a.js → BankAccountSection-DoGfRREZ-B2ezqzYk.js} +2 -2
- package/dist/assets/{BankAccountWarningSection-D9R1VhzE-BcW1Ig2b.js → BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js} +8 -8
- package/dist/assets/BankConnectionsSettingsPage-DIKMwQoQ-OeAXgZvH.js +425 -0
- package/dist/assets/{BillDetailPage-C_JDjRL0-B9dc0X1v.js → BillDetailPage-DSYeib0o-BwJVgfN9.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-B_XMuvzZ-CZKHr3XO.js → BillPayApprovalRuleDetailPage-DDFr9CL_-CYlqmWUc.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CyZjNIsQ-Bl5jiyNH.js → BillPayApprovalRulesPage-3Yak-MB--CaAqhGEn.js} +1 -1
- package/dist/assets/{BillPayPromoPage-ByDsqYfw-olV5ce97.js → BillPayPromoPage-nRvSJMZU-aGHL9LIB.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-yTO-xwRJ-DbcBQ_9J.js → BillPaySetUpPage-BWrp4v6b-DQFkIYKy.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BIAy1QHr-DAez9K6t.js → BillingSettingsPage-DtBZmdxq-BCytA-g_.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Cw1XCs0q-CvrweZCr.js → BillsBulkReviewDrawerPage-DCz41OgH-BEoVAqH0.js} +1 -1
- package/dist/assets/{BoxItem-UCX7eqiN-Cs0gCmSK.js → BoxItem-DBi8kqn3-BDAOAuEh.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CSsout2C-Cuas5N4X.js → BusinessVerificationPage-BfPqcCH3-Dr7d8VRo.js} +9 -9
- package/dist/assets/{CardNumberSubText-DuTv0ip1-D_vNbx2G.js → CardNumberSubText-CkmaTF_l-Kwic4R2k.js} +1 -1
- package/dist/assets/{CashbackDetailPage-KdHf-_ZF-DVRN-V1z.js → CashbackDetailPage-BlcEXdet-B9yAfRkP.js} +19 -19
- package/dist/assets/ChargeCardDetailPage-BARovLsv-j69HZx4R.js +1447 -0
- package/dist/assets/ChargeCardListPage-C1XbbZJ2-BE2YBCij.js +355 -0
- package/dist/assets/{ChargeCardListTable-B1a9-RYl-C51ZecJG.js → ChargeCardListTable-HXAc8Lqx-wKEbgM6d.js} +21 -21
- package/dist/assets/ChargeCardPromoPage-B8aTlJ8l-5K-z8G1R.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-DOrs_Bw8-CtSky3U4.js → ChargeCardSetupPage-XI-WplXI-vUgUcPsh.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-xvq2HeEr-D7149w7u.js → ChargeCardStatementsPage-CYopWAg4-fr_o5tML.js} +4 -4
- package/dist/assets/{ChargeCardUtils-Dt303NN_-DVTTAdcW.js → ChargeCardUtils-BEtXxds6-iY4L_brM.js} +1 -1
- package/dist/assets/{ChaseOverlay-BK2ISNjj-D-Cz7Y7g.js → ChaseOverlay-BySoceqB-DYKQzq4d.js} +6 -6
- package/dist/assets/CheckDepositDrawerPage-DOyXGzFg-BAQPRuRk.js +206 -0
- package/dist/assets/{CollapsableReportTable-D5D0ufUn-xK0ZNS8L.js → CollapsableReportTable-FShSCFEn-62FniBRb.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-C7fuDGQk-DEsxh5Ia.js → CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.js} +25 -25
- package/dist/assets/{CompanyPassportCard-DwUqLcAr-DTr4An8c.js → CompanyPassportCard-D2b6Ztes-ot6tMI66.js} +2 -2
- package/dist/assets/{CompanyPassportPage-ClToBIAw-coPGEvt1.js → CompanyPassportPage-Bkd2l8Xj-psAfEsoz.js} +10 -10
- package/dist/assets/{CompleteProfile-CLDWG3QK-BZ-Jjo9y.js → CompleteProfile-DYv1reCa-3AIo6bvw.js} +1 -1
- package/dist/assets/{ConfettiBurst-DoZB9Us7-0l1vmSt-.js → ConfettiBurst-CDUVssuw-hjqW22eh.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-B837xw8A-B7kLvZUp.js → CreateOrEditVendorPage-mlx8B4Jv-DUHw5PtN.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-zGaAOnnB-CrQyVjry.js → CreditCardPaymentDrawerPage-DBTT4Ptu-Dc8GvYzf.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-BLbZFCcL-sU_VxrOi.js → CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js} +7 -7
- package/dist/assets/{CurrencySelectField-DS3dOR3F-DxIA_hXi.js → CurrencySelectField-BpuAi_Wp-COgh-Qif.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-WWVaQenb-DnYElSqS.js → CustomerOnboardingActivationPage-CJn_cLk6-D6OFbgAy.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-BjXolAob.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BSXKMQ77-B7DbwjMu.js → CustomerOnboardingDetailPageSkeleton-Cr10sdrX-B55KDkTQ.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-Dd5kCuRE-XM5KdTkI.js → CustomerOnboardingNoStepsPage-9Jl0VpUx-BiS5ICyP.js} +5 -5
- package/dist/assets/{CustomerOnboardingPage-CGJpD875-4oL39DpQ.js → CustomerOnboardingPage-OCG7AjuD-DJnYkmg8.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-BFmVLk0l-k6btblXq.js → CustomerOnboardingProductSuitePage-vXKRghjP-hldhfPSg.js} +2 -2
- package/dist/assets/Dashboard-BOJNXopc-byUhih3W.js +1253 -0
- package/dist/assets/{DashboardReportPage-BbYtKYEH-DxGGhSLB.js → DashboardReportPage-Cuiynx8W-ac_35yhz.js} +8 -8
- package/dist/assets/{DepositAccTransactionItem-BMXQpKVB-CgDCprOQ.js → DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-bwEdSihi-DJ6W9arj.js → DepositAccTransactionListPage-kkdrU5Mo-3snjZA89.js} +8 -8
- package/dist/assets/{DocumentSecurityBanner-DV9HE3MK-B_XNcfep.js → DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-OI-gqVNE-BlXDs3Ng.js → DomesticWireDetailsPage-BhE0GcbL-CklyzXqp.js} +1 -1
- package/dist/assets/{DownloadOverlay-De5uIGOt-CYqEn0hY.js → DownloadOverlay-LH6MXphu-kt8sJEjY.js} +16 -16
- package/dist/assets/{DrawerPage-n421ewDm-UqOu8atP.js → DrawerPage-C3wbST4Q-CLJNN7bG.js} +8 -8
- package/dist/assets/{EditPeoplePage-sO1qN6Uw-DBLsSyIg.js → EditPeoplePage-C53vRVhe-BSK-mQZ3.js} +15 -15
- package/dist/assets/{EditReimbursementDetailPage-D5iKVGl3-BImnlUf5.js → EditReimbursementDetailPage-BBQIYJrj-a2qRFgyX.js} +60 -60
- package/dist/assets/{EntityDetailPage-CDk-oyYB-D9-wfKOg.js → EntityDetailPage-Ba0fzVNR-DpkKGCO_.js} +1 -1
- package/dist/assets/{EntitySummarySection-C4cC9rOJ-IyIZd6D1.js → EntitySummarySection-DA6Vsjwj-DPw5fEaJ.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-BojhuW5i-BX20nDp9.js → ExpenseAutomationOverviewPage-glEgQT6c-Dj_Wb6rt.js} +19 -19
- package/dist/assets/{ExpenseAutomationPage-D0BViJ7J-aWOZ95v4.js → ExpenseAutomationPage-CsJiE1ap-BnkOrNDa.js} +73 -73
- package/dist/assets/{ExpressPayPage-DdgtFYep-BYqxygnU.js → ExpressPayPage-i9LGeqy_-wmqq-4AX.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-CW0YmOgl-BXdIvflJ.js → FeaturePreviewPage-Bl2C_tQd-DJQ0amFl.js} +2 -2
- package/dist/assets/{FollowStepsSection-BfnTsu_D-DJmarjJC.js → FollowStepsSection-KcgZahKS-BPKITv3B.js} +12 -12
- package/dist/assets/{GlobalReviewListPage-C0U7Y6dI-V3yjpnMa.js → GlobalReviewListPage-D2NH1omi-CTNsB5Nb.js} +11 -11
- package/dist/assets/HelpButton-YqQNv-UM-CruBHlAV.js +28 -0
- package/dist/assets/{InformationCardStack-6BD3n76T-38xJZuo1.js → InformationCardStack-OhjUoNBj-DBwYrPQy.js} +5 -5
- package/dist/assets/{InsightsCardStack-CwxJP-ic-BTrR6wgp.js → InsightsCardStack-CDrOBeoJ-DTHqugyU.js} +10 -10
- package/dist/assets/{InsightsSection-DYyHpcUE-Dv4s6rVF.js → InsightsSection-CBaItqYN-Dz4Ilz30.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-ZkvKZqwD-DROqHfeV.js → IntegrationsSettingsPage-CuPS5otW-BirDKZz3.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-D3nyRM06-CWpciiq5.js → InternationalWireSwiftDetailsPage-DQsW7Uzb-CUGMa7hJ.js} +6 -6
- package/dist/assets/{InternationalWireVerificationPage-BOdAP6dN-DX7VlzR0.js → InternationalWireVerificationPage-BE1xcmQo-s1fsXNah.js} +15 -15
- package/dist/assets/{InviteFormPage-HJMhfa_f-D3AkSj5c.js → InviteFormPage-CUDsc0Y3-BT3er91i.js} +21 -21
- package/dist/assets/{InvitePageListView-CjneWRfJ-Cw4GZPYc.js → InvitePageListView-DJildrs1-BRenHpuK.js} +31 -31
- package/dist/assets/InvitePeoplePage-6upCRZjT-Cy37Dy58.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CfAnZsV9-CYcZU0K-.js → InvoiceUploadSection-CyacFv78-bjw3W0fU.js} +3 -3
- package/dist/assets/{IssueChargeCardPage-pKF4dRNw-B2__1l33.js → IssueChargeCardPage-6iTrYJEM-BjNouHGB.js} +25 -25
- package/dist/assets/{LabeledAddressValue-UYEy_1W0-C6qmSA0Y.js → LabeledAddressValue-CDy1Q4J--CkXQxeFy.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BmSVDTMx-6Qpj6E_O.js → LabeledAddressValueField-DbR_ehJJ-kXFBzBc8.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-BFnLx9E0-CrszShzb.js → LabeledControlledCheckBoxField-CXNDX5oe-Cc00saAR.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bh-cfR9F-DChyCikr.js → LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js} +3 -3
- package/dist/assets/{LabeledDocumentField-YBoeNDoD-CLNSxZu5.js → LabeledDocumentField-CUTXDuQL-CB7-inDg.js} +5 -5
- package/dist/assets/{LabeledDropDownFormattedTextField-jrOUW9Ig-qIpOOsMU.js → LabeledDropDownFormattedTextField-yPu_zrn8-f9OAJ2TU.js} +2 -2
- package/dist/assets/{LabeledText-BqO1wHro-CFTR6iN7.js → LabeledText-gvxUV2ku-Cf06N418.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-DnPoOhZt.js → LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-DTgSGsxS.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-Cgy0v5oD-BDpfZBST.js → LabeledZeniRolesDropDownField-xA0_8wFb-Dd3nBqBN.js} +24 -24
- package/dist/assets/{LinkJETransactionPage-PZAQ79zW-DAfAvYpe.js → LinkJETransactionPage-f4-YwvQe-D8ooeWsr.js} +10 -10
- package/dist/assets/{LowBalancePopup-BYeSnxBp-B4P0Q0TO.js → LowBalancePopup-C7oCDqcx-2Rje4uhG.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-D_FaPCmn-CwsGifxO.js → MagicLinkACHDetailsPage-Bqe3RDsV-CZa4p9hj.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-rnZdulCr-aKJ6N8io.js → MagicLinkDomesticWireDetailsPage-DPU-8FAH-CSBTwaek.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B7ScwCJc-BlIizrt7.js → MagicLinkInternationalWireDetailsPage-DeXZfP0h-D3k-uGEY.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DVhVWuCR-D9krNiEj.js → MagicLinkSuccessPage-CArToNjz-DqyiFP-T.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-CjV-_WEQ-C1naOcbz.js → MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CW6ShqHJ-73CcSLG9.js → MailingDetailsSection-TgN7VRhK-CYe74YT_.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BhC8pSjM-BfX7Nbrw.js → MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js} +3 -3
- package/dist/assets/{Menu-LDwLOgxI-BAC6-j6U.js → Menu-DNn9-W-C-DaYpba-h.js} +4 -4
- package/dist/assets/{MyBankConnectionsSettingsPage-BzxtuXEu-D3e4m74e.js → MyBankConnectionsSettingsPage-TawXQ1Zb-BllmvVI4.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-9jGJWmds-Ds8iUmlp.js → MyPendingActivationChargeCardListPage-CPgV9E8n-BAkl0Cop.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-9yk4H_yu-BhikO1H8.js → MyProfileSettingsPage-DuXTV0pM-5CplCRBg.js} +7 -7
- package/dist/assets/{NavBarWithPicker-DUpJ0EXp-eVqHH6KE.js → NavBarWithPicker-Cdali7jG-B142_aE-.js} +4 -4
- package/dist/assets/{NavigationArrow-lL3Ug8Mk-CTywI3Av.js → NavigationArrow-DaoZtCA8-BHc3euQ9.js} +9 -6
- package/dist/assets/{NavigationDots-6Q5ZVqKl-BVu8rEb8.js → NavigationDots-BhF2AV0Y-DUHF5KEe.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-nrWvsRy4-Cxk9w4rE.js → NewGlobalMerchantPage-BaoJ7yB8-BF04eMSd.js} +8 -8
- package/dist/assets/{NoDataChart-DGbfWo33-BotYKJPz.js → NoDataChart-IPJ1xGPZ-BKJQDDL9.js} +1 -1
- package/dist/assets/{NoDataTable-CsvWc_ok-MqDBJhya.js → NoDataTable-D5U81gbD-BirLBEpp.js} +1 -1
- package/dist/assets/{NotFoundPage-CzfiPkml-CBoedKxV.js → NotFoundPage-C7BswX2A-DQWUyCMU.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Dmfqzy1H-towhjaYy.js → NotificationSettingsPage-BQyqFWby-GjMlWRuD.js} +13 -13
- package/dist/assets/NotificationsListConfig-kLqWFg2Q-DecPdYAb.js +1 -0
- package/dist/assets/{NotificationsPage-BAj5p1zx-CgZXZnGB.js → NotificationsPage-DjRkTZVT-udgcPcnZ.js} +12 -12
- package/dist/assets/{OpExByVendorPage-CRt-VUTi-B80Tbh2Q.js → OpExByVendorPage-CSasi7Uo-CoBJ4a1U.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-YkaPkNJd.js → OverlayContainerPage-C0rUb6-5-CokciX1J.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-lT9GgcG2-YdbrvMVo.js → PandLWithForecastPage-D8YwSYiz-BlQ8i7AP.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DY4eeS5C-CTOGSCHT.js → PaymentAccountSetupBillingAddressSection-BWwcQZfk-DK-YnIzr.js} +7 -7
- package/dist/assets/{PeoplePage-CDQl7HVr-Js2M-ikq.js → PeoplePage-mrXiZ4VG-Cp2NcBr2.js} +14 -14
- package/dist/assets/PortfolioAllocationFormPage-DAFisXnQ-DjoPfEuL.js +207 -0
- package/dist/assets/{PortfolioDetails-Dk_IIRuG-DYkySZiF.js → PortfolioDetails-BBOVIetI-BvRwtbCV.js} +12 -12
- package/dist/assets/{ProductsCarousel-0-ksFQos-BVU1DIhA.js → ProductsCarousel-DpevGHyq-M7sMCRPA.js} +6 -6
- package/dist/assets/{PromoBaseCards-DNSnqS61-Cfuq0-d2.js → PromoBaseCards-BreO0rHq-CmneT-LE.js} +23 -23
- package/dist/assets/{QBOConnectionDialog-BmIUfW_i-CNR2Frv0.js → QBOConnectionDialog-BCWc6AK--ExlTvgR6.js} +7 -7
- package/dist/assets/{QBOSetupSection-BaNFiEPB-Blh3g_tU.js → QBOSetupSection-D_doa7hh-C2_irMwi.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CtTk4HV2-B0a_si5E.js → ReimbursementApprovalRuleDetailPage-BSFxsbcx-5oswA6u0.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-IhKSiGK_-B4EnT7LJ.js → ReimbursementApprovalRulesPage-X9bJFM6L-DS04bVT9.js} +29 -29
- package/dist/assets/{ReimbursementDetailPage-B2rT1dKM-Dl6cSkTv.js → ReimbursementDetailPage-BJmSB65P-B9Io-y6T.js} +11 -11
- package/dist/assets/{ReimbursementPromoPage-d7XBUzip-DuqesQ8S.js → ReimbursementPromoPage-DO7dI9S7-IIxWWc2q.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-DWCUtN5c-D2crwgx8.js → ReimbursementSetUpPage-Wjj6aNpc-BXv92xHK.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-ByNvcTCn-BeXHPHUI.js → ReimbursementsBulkReviewDrawerPage-GPuEjGqi-qY4F19Li.js} +1 -1
- package/dist/assets/{ReloadCard-DZy28iWR-jsSdtSEM.js → ReloadCard-cApojDpl-BTIiWZRj.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-DdZm4cOJ-DLTAUXgU.js → ReportTableViewSelector-BVUqQ9hl-WfosyobX.js} +5 -5
- package/dist/assets/{ReportsPage-CJDkY9FT-akkzjuiU.js → ReportsPage-CdiHHtXH-B1iwxprE.js} +1 -1
- package/dist/assets/{RevenueChart-B_jdFFPm-Dvzvd35h.js → RevenueChart-xoOc_3W3-Dzhhcd2T.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DjPVGzeL-B2dVuWiU.js → ReviewDetailsPage-CF-R6wwN-BMnS8ktk.js} +10 -10
- package/dist/assets/{ReviewOverlay-DGYnF07r-BmF1KLWH.js → ReviewOverlay-Bora7h_H-BkZGLYKt.js} +10 -10
- package/dist/assets/{RoleWithToolTip-VlYG_GPv-HwJfmM_J.js → RoleWithToolTip-k62RaqAZ-Bav1TewG.js} +7 -7
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-oPFQEE8g-CmmNaIvX.js → ScheduleDetailsFixedAssetsPage-Bd6qfpob-BxOEwKtI.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BdBgJEAl-BKn_j94v.js → ScheduleDetailsPage-scOS36lS-CAMrRW5Y.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Ncft3mZN-CRa3CvVA.js → ScheduleSequenceTable-BIhbFnjb-DCpkIU0H.js} +51 -51
- package/dist/assets/{ScreenRoutes-BTcmXKy-.js → ScreenRoutes-C1ZbXccz.js} +35 -35
- package/dist/assets/{SetUpAccountSection-BrYiljyO-pToBK7AQ.js → SetUpAccountSection-ehZfUFEf-BgFNCBNu.js} +17 -17
- package/dist/assets/{SetUpDefaultSection-B361ojb9-DI4MvGmI.js → SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js} +16 -16
- package/dist/assets/{SignIn-B_-FUZwZ-mpvTc0om.js → SignIn-k9MFplB1-eud7vdJb.js} +14 -14
- package/dist/assets/{SignInScreen-BB8vRkAH.js → SignInScreen-CqP6hQef.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-XbjqwHXx-Bh4RdEX-.js → SpendManagementListViewPage-B11exjM8-CE2MaiYn.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-D-4W-Ru9-BWrfido7.js → SpendManagementPerTabPage-ByXU-omE-DWwC2JuF.js} +34 -34
- package/dist/assets/{SpendManagementSection-B7pMvj7Z-CrhIndCK.js → SpendManagementSection-CAewVL0Z-GsJe1fhq.js} +8 -8
- package/dist/assets/{SpendMgmtSetupAccountSection-DdUs96r9-fgeex4tA.js → SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js} +11 -11
- package/dist/assets/StatementItem-BJoMxmJY-BVhb_2i3.js +31 -0
- package/dist/assets/StatementsPage-C_O76V3t-DoehdMaa.js +58 -0
- package/dist/assets/{StatusSwitcher-DGOwA8qO-DXNP0kut.js → StatusSwitcher-39NGxygM-8g3Kr8Ie.js} +5 -5
- package/dist/assets/{SubTabSwitcher-Be-6o_mE-B_jPOUDo.js → SubTabSwitcher-BcL8UKX8-CtPS6-C1.js} +1 -1
- package/dist/assets/{SummaryCard-CD1amg78-Dk5tKXKf.js → SummaryCard-VT7YJ6jy-DeCNM95f.js} +1 -1
- package/dist/assets/{TaskManagementPage-C2UYhTtL-BzgZCvH2.js → TaskManagementPage-p-3BLn0_-TCdTn4Be.js} +30 -30
- package/dist/assets/{TimeRangeSwitcher-DxAmlHGP-DP1d7g2Y.js → TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-ndYSpUa6-BuCFVoL9.js → TimeframeSwitcher-BJrFD5A7-CapG6nwB.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-CrWRqA_S-Bvp4VoyC.js +31 -0
- package/dist/assets/{TopExCard-CcpyunQ3-DB3WOnAr.js → TopExCard-DAwlJbbc-Ch08mChi.js} +5 -5
- package/dist/assets/{TopExDetailPage-C_B0c8iP-CQH4kQCr.js → TopExDetailPage-BgUJytuV-V8CGIoou.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DVPGLobu-fET_zL6B.js → TransactionDetailPage-C8yIuCvF-lo-j_-eB.js} +20 -20
- package/dist/assets/{TransactionList-CvGyadHZ-BRi-y0eq.js → TransactionList-DG-KZUjZ-CV9wox71.js} +12 -12
- package/dist/assets/{TransactionListBig-BeZjYsO0-DVbWoKX3.js → TransactionListBig-iGiOjwVK-Dc9vBqnr.js} +16 -16
- package/dist/assets/{TransactionListPage-C8h-sa3V-Df3cyvuB.js → TransactionListPage-C9Z_z4mC-UBhyOHuK.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-BcV8h3xR-BtCVlvOk.js → TransactionVendorDetailPage-5uo1FPul-BOddX9Sk.js} +5 -5
- package/dist/assets/{TransferDrawerPage-B_AJgZWp-Or_BWSki.js → TransferDrawerPage-BKzo-4Wj-D-t2nTop.js} +32 -32
- package/dist/assets/{TreasuryOverviewPage-kG1jZF28-ti5gMNPt.js → TreasuryOverviewPage-C6kTg0L3-DDk4OCh2.js} +32 -32
- package/dist/assets/{TreasuryPromoPage-Dy3ExIiy-CrAH00F4.js → TreasuryPromoPage-CAS0pdES-D8v7EASC.js} +11 -11
- package/dist/assets/{TreasurySetupPage-Cjr-dp6O-C_f-CjtV.js → TreasurySetupPage-CcLiQWOT-B7yrMsSh.js} +2 -2
- package/dist/assets/TreasuryStatementsPage-Dm-3SPtA-C2bOR_YK.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-CWLf1Zxq-CFKQOpl0.js → TreasuryTaxLetterPage-0RsINpqA-DJWdIr-H.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-C5F3fmoI-DWxfMs49.js → TreasuryTransferOrReviewPage-C_4CQVIe-BOkn6wNn.js} +21 -21
- package/dist/assets/{TrendChart-CtjfgQ9g-pudrZWWi.js → TrendChart-CkPRxjLa-ClAmXRdb.js} +3 -3
- package/dist/assets/{TrendWithTransactions-SmcM2UIp-DgIRBBgY.js → TrendWithTransactions-DJYMqIOI-wnxxIB4C.js} +2 -2
- package/dist/assets/{UncategorizedAccountsMappingPage-CXoadwja-CVCYlnLq.js → UncategorizedAccountsMappingPage-BapLceo--CgdItlB5.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-wYQVQqP7-B9jpBbf5.js → UnitIntegrationPage-C9zNzH3B-gVQYcxZB.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-8_c7UpvB-Da0QQDee.js → UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DtNSOXbK-B54EsOev.js → Vendor2FAPopup-_Cn9FJ7D-cKAPYes9.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-zNbGGe4q-DzTQUGmf.js → VendorACHDetailsPage-B1vHY6rG-VScnw-FL.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cv-MG9iR-DEU59srZ.js → VendorDetailPage-Dkl7AlIZ-5XPeaOqt.js} +9 -9
- package/dist/assets/{VendorDomesticWireDetailsPage-BkqtoYAw-UtRf_Dud.js → VendorDomesticWireDetailsPage-Co8Uc_OS-I5CTiy_-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DYJudj3c-Bsy6K9TF.js → VendorFiling1099EditablePage-M0gQJLkE-DzG8EXIY.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-BNFIAB9n-Ccq-pg0H.js → VendorFirstReviewPage-Bte87pqn-DeG8_h9I.js} +46 -46
- package/dist/assets/{VendorInternationalWireDetailsPage-DHa8JoNl-BIGE19fD.js → VendorInternationalWireDetailsPage-DdfkKEFx-sHwHhQTJ.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-a5nSOMXK-CesNrNHp.js → VendorInternationalWireSwiftDetailsPage-CtQifsRT-BsMO6lfl.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DwDGbjey-CalnRHPb.js → VendorsAccountsSection-CxyObm3T-BgRsSYOY.js} +13 -13
- package/dist/assets/{WarningsDrawerPage-CaSTx_8h-Cf8ziKNm.js → WarningsDrawerPage-D5nPLGJh-5sMWIR75.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-BSOpxKiJ-DL21Ttbi.js → ZeniAccountDetailPage-CKS9mcn3-BBMilYy5.js} +34 -34
- package/dist/assets/{ZeniAccountListViewPage-CZM1ODEE--W6YiFOZ.js → ZeniAccountListViewPage-CORl7azj-By_13T1c.js} +18 -18
- package/dist/assets/{ZeniAccountNavBarPieces-CjNAr1N9-BQQ9e6IA.js → ZeniAccountNavBarPieces-88z7CFPI-kEgSzIRo.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-PcyNGe7A-gml7CwD5.js → ZeniAccountPromoPage-Car62P8Q-Bdd82q-1.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-DhJ2zm6A-Baqq4vI5.js → ZeniAccountSetupPage-B5uOzSDL-B_JyTC9y.js} +5 -5
- package/dist/assets/{ZeniCopyright-CSUSID-7-BWvcGvHW.js → ZeniCopyright-BcMyDAdQ-B3RH4DR7.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DPl7porw-C20rg1A-.js → ZeniTransferAmountSlider-Css3_ojA-DueYRoaC.js} +1 -1
- package/dist/assets/analytics-CBL_L82S.js +7 -0
- package/dist/assets/{analyticsHelper-CrNzPbDQ.js → analyticsHelper-DsBQxHgn.js} +1 -1
- package/dist/assets/{analyticsHelper-Cex5LOMD-BC_YiSN7.js → analyticsHelper-X-GRY9hH-MGNhQKMp.js} +1 -1
- package/dist/assets/{chartTypes-Df8u7la0-ByZ4IuQ1.js → chartTypes-C5XZr0AA-C8J0rp67.js} +1 -1
- package/dist/assets/{commonDimensions-OJhakpB_-BApQ51ib.js → commonDimensions-DBedC6J7-SSiZbAOc.js} +1 -1
- package/dist/assets/{detailCommon-4wAnHr6n-Py5M2PMe.js → detailCommon-CIjWXBC2-K-4pS5u-.js} +6 -6
- package/dist/assets/{downloadPdf-D02UNVHu-DIao_ROf.js → downloadPdf-B21yi0DO-ZMTPTkC7.js} +1 -1
- package/dist/assets/{index-g0nOWR6_.js → index-ji6aa7AC.js} +3296 -3257
- package/dist/assets/{mapLoadingInProgressToTreeNode-HsZI6Bdg-BqYN1UJm.js → mapLoadingInProgressToTreeNode-CPDYMovk-DjQU3oZy.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B9KMXCTi-CwLS3FGS.js → mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BIZ_jwXi-DpTIktgw.js → mapSpacerToTreeNode-CJ13HyFX-D7QAWDUL.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BOFrVlzJ-DjnRzlUT.js → mapTimeframeBalancesToTreeNode-D8UCPznF-C5zbYkry.js} +1 -1
- package/dist/assets/{play-icon-BDRoJBSV-B8UUHRFT.js → play-icon-D7s0M2vV-zKqEqpdy.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-RJhTPgAt-kPvBDP42.js → toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js} +1 -1
- package/dist/assets/{toChartData-K68FB3Iy-DoJRD_du.js → toChartData-BMMsnVqz-Cij6F0sj.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DjASf5JB-Cl6HBn0O.js → treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js} +1 -1
- package/dist/assets/{uploadAttachment-D7Rju7jS-BFpPYv3E.js → uploadAttachment-5FffgOcW-DgFFpcCF.js} +25 -25
- package/dist/assets/{uploadReceipts-Buvz7DfG-CB0sRH1o.js → uploadReceipts-Buvz7DfG-Dl3fgjOi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPageContent-CmRpq4eF-hjvomhOE.js +0 -149
- package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-CXZ2UVYn.js +0 -47
- package/dist/assets/ArAgingChart-UnY648RV-5afZ_IEV.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-BG99PtV_-C8rq5yoG.js +0 -379
- package/dist/assets/ChargeCardDetailPage-DYGcQs0M-B3H4P_U_.js +0 -1447
- package/dist/assets/ChargeCardListPage-CNrRrNbd-BeypcnIV.js +0 -355
- package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-BgIZCds1.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-CbsRUWnx-Cx0Y8PMs.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-TqkMXd0C.js +0 -1
- package/dist/assets/Dashboard-BLIK_ZsD-C-fC9BFZ.js +0 -778
- package/dist/assets/HelpButton-DXFYhUL5-j2rT96Ib.js +0 -28
- package/dist/assets/InvitePeoplePage-By6TWsVZ-CyIcCnmH.js +0 -12
- package/dist/assets/NotificationsListConfig-Cc3hEei0-DLyt_MaK.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-StMDGc2G-B1hVvScq.js +0 -207
- package/dist/assets/StatementItem-B4DJRmwy-BmYREkM-.js +0 -31
- package/dist/assets/StatementsPage-DzFEOmFA-CA1pNdpO.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-B3bxr-_s-DFK8QpY1.js +0 -31
- package/dist/assets/TreasuryStatementsPage-CzOSIKGQ-CaAsFK_4.js +0 -58
- package/dist/assets/analytics-DThoELaW.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as O,u as J,M as f,
|
|
1
|
+
import{X as O,u as J,M as f,t as Ce,l as D,j as s,aW as Ge,d as Ue,D as Ze,aY as qe,o as d,C as R,H as K,aZ as Je,w as oe,n as N,ai as Ke,a7 as Xe,a_ as Qe,a2 as je,K as $e,g as T,Z as ke,a6 as et,ao as tt,r as st,a$ as ot,b0 as at,b1 as nt,b2 as ne,b3 as it,aB as rt,f as ct,b4 as lt}from"./index-ji6aa7AC.js";import{b as _,f as X,n as u,k as Oe}from"./vendor-CnQcJ2Lu.js";import{m as U,l as te}from"./analyticsHelper-X-GRY9hH-MGNhQKMp.js";import{c as dt,h as pt}from"./ReportTableViewSelector-BVUqQ9hl-WfosyobX.js";import{F as ut}from"./InsightsSection-CBaItqYN-Dz4Ilz30.js";import{k as he,q as mt,G as gt,H as Q,N as pe}from"./detailCommon-CIjWXBC2-K-4pS5u-.js";import{N as ht,G as ft,H as fe,Y as be,P as xe}from"./RevenueChart-xoOc_3W3-Dzhhcd2T.js";import{C as bt}from"./NoDataChart-IPJ1xGPZ-BKJQDDL9.js";import{n as I}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as xt}from"./TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js";import{b as Be}from"./TimeframeSwitcher-BJrFD5A7-CapG6nwB.js";import{a as _t,r as V,b as wt,i as ue,D as St}from"./CollapsableReportTable-FShSCFEn-62FniBRb.js";import{S as yt,M as vt,g as Ct,L as ee,D as Pe,T as Le,I as Ne}from"./mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js";import{d as jt}from"./NoDataTable-D5U81gbD-BirLBEpp.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BhF2AV0Y-DUHF5KEe.js";import"./chartTypes-C5XZr0AA-C8J0rp67.js";import"./toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js";import"./toChartData-BMMsnVqz-Cij6F0sj.js";import"./AccountRow-CBhTc-CO-BhHbolQV.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
2
|
justify-content: center;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -31,12 +31,12 @@ import{X as O,u as J,M as f,V as Ce,l as D,j as s,aW as Ge,e as Ue,B as Ze,aY as
|
|
|
31
31
|
`,Vt=u.div`
|
|
32
32
|
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
33
33
|
height: ${d.sp6};
|
|
34
|
-
`;function Wt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o}=e,{selectedAdditionalBalances:n}=t,a=e.sections.expenses.balances??[];if(o==null||o===0||a.length===0)return s.jsx(Vt,{});const r=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent"),p=a.reduce((m,b)=>m+b.balance.amount,0),i=a[a.length-1],c=a[0],l={...i,balance:{...i.balance,amount:p},startDate:c.startDate},g=pe(l,r);return s.jsx(Et,{children:s.jsx(Q,{balance:l,dateText:g,showInfotip:!1})})}const
|
|
34
|
+
`;function Wt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o}=e,{selectedAdditionalBalances:n}=t,a=e.sections.expenses.balances??[];if(o==null||o===0||a.length===0)return s.jsx(Vt,{});const r=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent"),p=a.reduce((m,b)=>m+b.balance.amount,0),i=a[a.length-1],c=a[0],l={...i,balance:{...i.balance,amount:p},startDate:c.startDate},g=pe(l,r);return s.jsx(Et,{children:s.jsx(Q,{balance:l,dateText:g,showInfotip:!1})})}const Ht=u.div`
|
|
35
35
|
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
36
|
-
`,
|
|
36
|
+
`,Yt=u.div`
|
|
37
37
|
padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
|
|
38
38
|
height: ${d.sp6};
|
|
39
|
-
`;function Gt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o,sections:n}=e,{selectedAdditionalBalances:a}=t,r=n.income.balances;if(o==null||o===0||r.length===0)return s.jsx(
|
|
39
|
+
`;function Gt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o,sections:n}=e,{selectedAdditionalBalances:a}=t,r=n.income.balances;if(o==null||o===0||r.length===0)return s.jsx(Yt,{});const p=a.includes("this_period_vs_last_period")||a.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=pe(g,p);return s.jsx(Ht,{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 R(N[3],N[3],N[8]),chartHeight:new R(288,360)},Zt=u.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
flex: 1 1 auto;
|
|
42
42
|
flex-direction: column;
|
|
@@ -306,10 +306,10 @@ import{X as O,u as J,M as f,V as Ce,l as D,j as s,aW as Ge,e as Ue,B as Ze,aY as
|
|
|
306
306
|
`,We=u(oe)`
|
|
307
307
|
color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
|
|
308
308
|
opacity: ${e=>e.isDisabled?.5:1};
|
|
309
|
-
`,
|
|
309
|
+
`,He=({label:e,isOn:t,isToggleDisabled:o,onValueChanged:n})=>s.jsxs(s.Fragment,{children:[s.jsx(We,{isOn:t,isDisabled:o===!0,children:e}),s.jsx(Ee,{checked:t,edge:"end",disabled:o===!0,disableRipple:o===!0,onChange:a=>{n(a.target.checked)}})]});function Ye({isOn:e,isDisabled:t,selectedForecastIndex:o,forecasts:n,isForecastValid:a,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(Fs,{children:[e===!0&&n!=null&&n.length!==0?s.jsx(Is,{selectedForecastIndex:o??0,forecasts:n,isForecastValid:a,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(We,{isOn:e,isDisabled:t===!0,children:f.getLocalizedStrings().reports.forecast.forecast}),s.jsx(Ee,{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(Ve,{windowSize:t,children:s.jsx(Be,{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(He,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})},Vs=e=>{const t=O();return s.jsxs(zs,{children:[s.jsx(Ve,{windowSize:t,children:s.jsx(Be,{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(He,{...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 Hs=u.div`
|
|
310
310
|
display: flex;
|
|
311
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:n,onThisPeriodChanged:a,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:i}=e,c=Ce(),{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,$=C||t.availableNumberOfPeriods===1,W=y=>!!y.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[B,F]=_.useState(!1),H=D.toZeniUrl("https://meetings.hubspot.com/svitlana-grankovska"),E=o.mode,L=o.selectedForecast;_.useEffect(()=>{E==="forecast_mode"&&h==="Completed"&&S?.length===0&&(F(!0),document.body.style.overflow="hidden")},[h,E,S]),_.useEffect(()=>{E==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(I(t.reportId),S[L.index].name)},[L]);const Y=(y,j,G)=>{j===!0&&e.analytics?.trackForecastVsActualMode(I(t.reportId),"",y==="forecast_mode"),e.onForecastToggle?.(y,G)};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),I(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:$?!1:x,isToggleDisabled:$,onValueChanged:y=>{const j=y===!0||o.mode==="forecast_mode"?3:1;n?.trackCompareMode(y,I(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:$,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:W,onForecastSelectionChanged:(y,j)=>Y("forecast_mode",!1,{id:y,index:j}),onForecastToggleChanged:y=>{Y(y===!0?"forecast_mode":"off",!0)}}:void 0})}),B==!0?s.jsx(bs,{meetingUrl:H,reportId:t.reportId,onClose:()=>{F(!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:he(l,g),highlightedOfSelectedTicks:he(l,g)},onClick:(y,j)=>{Se(t.firstMonthOfFY,x,t.reportId,m,j,e.analytics),a(j)},onSelectionChanged:(y,j)=>{const G=mt(l,y.fromEnd),q=gt(l,j);Se(t.firstMonthOfFY,x,t.reportId,m,q.thisPeriod,e.analytics),p(G,q)}})]})})},Se=(e,t,o,n,a,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(I(o),U(n),"range filter",te(e,n,a)),r?.trackDateRangeFilterChange(I(o),"range filter",t,te(e,n,a))};function me({account:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){return{children:[],id:V("ac_report",p,e.accountId),isLastNode:a,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}}}function Zs({acGroup:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){const i=V("ac_group_report",p,e.accountGroupId),c={children:[],id:i,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},l=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return c.children=l.map((g,m)=>me({account:g,sectionType:t,numOfBalances:o,title:g.accountDescription,config:r,isLastNode:m===l.length-1,parentNodeIDs:[...p,i]})),c}function ye({section:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r}){const p=V("section",[],n),i={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},c=St(e,r.displayOrder,o,!1),l=qs(c.balances),g=ue(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)=>me({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 A({balances:e,config:t,nodeId:o}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:o??V("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function Js(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=ye({section:e.cashIn,sectionType:"cash_in",numOfBalances:a,title:n.sections.cashIn,isLastNode:!0,config:t}),c=ye({section:e.cashOut,sectionType:"cash_out",numOfBalances:a,title:n.sections.cashOut,isLastNode:!0,config:t}),l=ee({calculatedSection:e.netCashFlow,numOfBalances:a,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:o?[p]:[],contentNodes:[p,i,c,l]}}function ge({title:e,balances:t,config:o,numOfBalances:n,nodeId:a}){return{children:[],id:a??V("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:o}}}function Ks(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),c=ge({title:f.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:a}),l=V("section",[],n.sections.netCashFlow),g=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((m,b)=>me({account:m,sectionType:"cash_position",numOfBalances:a,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 Xs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function Qs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({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(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeReportViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function eo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=[];l.push(p),l.push(c);const g=V("section",[],n.sections.expenses);return e.sections.expenses.classes.forEach((m,b)=>{l.push(yt({classNode:m,sectionType:"expenses",numOfBalances:a,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 n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=V("section",[],n.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:a,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:a,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 n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections.grossMargin,isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function oo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({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(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function ao(e,t,o,n=!0){Object.assign(e.config,t);const a=no(o),r=A({balances:a,config:t});return{config:t,headerNodes:n?[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[]}},ve={contentPaddingLeft:new R(N[0],N[0],N[0]),contentPaddingRight:new R(N[3],N[3],N[8])},io=u.div`
|
|
312
|
+
`,Ys=u.div``,Gs=u.div``,Us=e=>{const{selectedRangeReport:t,uiState:o,analytics:n,onThisPeriodChanged:a,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:i}=e,c=Ce(),{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,$=C||t.availableNumberOfPeriods===1,W=y=>!!y.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[B,F]=_.useState(!1),Y=D.toZeniUrl("https://meetings.hubspot.com/svitlana-grankovska"),E=o.mode,L=o.selectedForecast;_.useEffect(()=>{E==="forecast_mode"&&h==="Completed"&&S?.length===0&&(F(!0),document.body.style.overflow="hidden")},[h,E,S]),_.useEffect(()=>{E==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(I(t.reportId),S[L.index].name)},[L]);const H=(y,j,G)=>{j===!0&&e.analytics?.trackForecastVsActualMode(I(t.reportId),"",y==="forecast_mode"),e.onForecastToggle?.(y,G)};return s.jsx(Gs,{children:s.jsxs(Ys,{children:[s.jsx(Hs,{children:s.jsx(Ws,{timeframe:{allowedTimeframes:b,selectedTimeframe:m,onTimeframeSelectionChanged:y=>{e.analytics?.trackTimeframeSwitch(U(y),I(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:$?!1:x,isToggleDisabled:$,onValueChanged:y=>{const j=y===!0||o.mode==="forecast_mode"?3:1;n?.trackCompareMode(y,I(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:$,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:W,onForecastSelectionChanged:(y,j)=>H("forecast_mode",!1,{id:y,index:j}),onForecastToggleChanged:y=>{H(y===!0?"forecast_mode":"off",!0)}}:void 0})}),B==!0?s.jsx(bs,{meetingUrl:Y,reportId:t.reportId,onClose:()=>{F(!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:he(l,g),highlightedOfSelectedTicks:he(l,g)},onClick:(y,j)=>{Se(t.firstMonthOfFY,x,t.reportId,m,j,e.analytics),a(j)},onSelectionChanged:(y,j)=>{const G=mt(l,y.fromEnd),q=gt(l,j);Se(t.firstMonthOfFY,x,t.reportId,m,q.thisPeriod,e.analytics),p(G,q)}})]})})},Se=(e,t,o,n,a,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(I(o),U(n),"range filter",te(e,n,a)),r?.trackDateRangeFilterChange(I(o),"range filter",t,te(e,n,a))};function me({account:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){return{children:[],id:V("ac_report",p,e.accountId),isLastNode:a,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}}}function Zs({acGroup:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){const i=V("ac_group_report",p,e.accountGroupId),c={children:[],id:i,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},l=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return c.children=l.map((g,m)=>me({account:g,sectionType:t,numOfBalances:o,title:g.accountDescription,config:r,isLastNode:m===l.length-1,parentNodeIDs:[...p,i]})),c}function ye({section:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r}){const p=V("section",[],n),i={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},c=St(e,r.displayOrder,o,!1),l=qs(c.balances),g=ue(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)=>me({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 A({balances:e,config:t,nodeId:o}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:o??V("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function Js(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=ye({section:e.cashIn,sectionType:"cash_in",numOfBalances:a,title:n.sections.cashIn,isLastNode:!0,config:t}),c=ye({section:e.cashOut,sectionType:"cash_out",numOfBalances:a,title:n.sections.cashOut,isLastNode:!0,config:t}),l=ee({calculatedSection:e.netCashFlow,numOfBalances:a,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:o?[p]:[],contentNodes:[p,i,c,l]}}function ge({title:e,balances:t,config:o,numOfBalances:n,nodeId:a}){return{children:[],id:a??V("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:o}}}function Ks(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),c=ge({title:f.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:a}),l=V("section",[],n.sections.netCashFlow),g=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((m,b)=>me({account:m,sectionType:"cash_position",numOfBalances:a,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 Xs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function Qs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({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(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeReportViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function eo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=[];l.push(p),l.push(c);const g=V("section",[],n.sections.expenses);return e.sections.expenses.classes.forEach((m,b)=>{l.push(yt({classNode:m,sectionType:"expenses",numOfBalances:a,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 n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=V("section",[],n.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:a,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:a,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 n=f.getLocalizedStrings().reports,a=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=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections.grossMargin,isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function oo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=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=A({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(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function ao(e,t,o,n=!0){Object.assign(e.config,t);const a=no(o),r=A({balances:a,config:t});return{config:t,headerNodes:n?[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[]}},ve={contentPaddingLeft:new R(N[0],N[0],N[0]),contentPaddingRight:new R(N[3],N[3],N[8])},io=u.div`
|
|
313
313
|
width: 100%;
|
|
314
314
|
height: calc(100vh - 70px);
|
|
315
315
|
`,ro=u.div`
|
|
@@ -322,7 +322,7 @@ import{X as O,u as J,M as f,V as Ce,l as D,j as s,aW as Ge,e as Ue,B as Ze,aY as
|
|
|
322
322
|
`,co=u.div`
|
|
323
323
|
position: absolute;
|
|
324
324
|
margin-top: ${d.sp3};
|
|
325
|
-
`,lo=e=>{const t=O(),o=J(),{selectedRangeReport:n,selectedClassesViewRangeReport:a,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=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,h=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!h,$=C||r.mode==="forecast_mode"?3:1,W=k=>{e.analytics?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",I(n.reportId),U(r.timeframe),"dropdown");const P=k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[P],x?.numberOfPeriods??$)},[B,F]=_.useState(void 0),[
|
|
325
|
+
`,lo=e=>{const t=O(),o=J(),{selectedRangeReport:n,selectedClassesViewRangeReport:a,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=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,h=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!h,$=C||r.mode==="forecast_mode"?3:1,W=k=>{e.analytics?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",I(n.reportId),U(r.timeframe),"dropdown");const P=k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[P],x?.numberOfPeriods??$)},[B,F]=_.useState(void 0),[Y,E]=_.useState(void 0),L=!(t==="small"||t==="medium-compact"),H=v==="forecast_mode"?"name+balances_forecast":"name+balances_actual",y=uo(r.selectedAdditionalBalances),j=a!==void 0&&a.uiState.accountViewMode==="classes"?a:n,G=v==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",q=n.reportId==="net_burn_or_income"||n.reportId==="operating_expenses"||n.reportId==="revenue",ae=(k,P)=>{k!==a?.uiState.accountViewMode&&m?.(k),P&&b?.(P)};return _.useEffect(()=>{const k={reportId:v==="forecast_mode"&&r.selectedForecast!=null?`${j.reportId}+${r.selectedForecast?.id}`:j.reportId,mode:G,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:Qe(),showClassAccountNumber:i,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:j.dataAvailable};if(B==null||!K(Y,j)){const P=po(j,k,L);E(j),F(P)}else{const P=ao(B,k,j,L);F(P)}},[H,C,j]),s.jsx(ro,{windowSize:t,children:S?s.jsx(jt,{}):B!=null?s.jsxs(io,{children:[s.jsx(_t,{backgroundColor:new Xe(o.colors.grey4),rootNodes:B,type:H,compareMode:y,isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:ve.contentPaddingLeft.value(t),right:ve.contentPaddingRight.value(t)},onAccountClick:g==null?void 0:(k,P)=>{g(k,P)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:W,onScroll:c,onNodeCollapseToggled:l}),q===!0&&a!==void 0?s.jsx(co,{children:s.jsx(pt,{reportId:n.reportId,nodes:a.classHierarchy,classesListFetchState:a.fetchState,selectedView:a.uiState.accountViewMode,showClassAccountNumber:i,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:ae,classesToBeFilteredOut:a.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:a.firstMonthOfFY,onOpenAccountViewMode:w,onResyncReports:e.onResyncReports,reportsResyncFetchState:e.reportsResyncFetchState,lastRefreshSuccessTime:a?.status?.lastRefreshSuccessTime})}):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 Xs(e,t,o);case"revenue":return oo(e,t,o);case"revenue_by_classes":return so(e,t,o);case"cash_position":return Ks(e,t,o);case"cash_in_cash_out":return Js(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
326
|
display: flex;
|
|
327
327
|
flex: 1 1 auto;
|
|
328
328
|
min-height: 100%;
|
|
@@ -346,4 +346,4 @@ import{X as O,u as J,M as f,V as Ce,l as D,j as s,aW as Ge,e as Ue,B as Ze,aY as
|
|
|
346
346
|
align-items: center;
|
|
347
347
|
height: 100vh;
|
|
348
348
|
margin-top: ${d.sp8};
|
|
349
|
-
`,Zo=e=>{const t=O(),o=J(),[n,a]=_.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:$}=l,W=i.availableNumberOfPeriods!=null&&i.availableNumberOfPeriods<2,B=l.mode==="compare_mode"&&!W,F=Ce(),
|
|
349
|
+
`,Zo=e=>{const t=O(),o=J(),[n,a]=_.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:$}=l,W=i.availableNumberOfPeriods!=null&&i.availableNumberOfPeriods<2,B=l.mode==="compare_mode"&&!W,F=Ce(),Y=F.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess(F.loggedInUserRole),E=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";_.useEffect(()=>{async function z(){await Rt({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||E?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),m?.trackDownload(I(i.reportId),U(h),"excel",B),w("Completed")}n&&$!=="In-Progress"&&(a(!1),w("In-Progress"),z())},[g,$,i.filter,n,B,S,i,c,h,m,w,Y,E,e.isZeniCOAUsed]);const L=i.availableNumberOfPeriods==null||i.availableNumberOfPeriods===0||i.allTimeframeTicks.length===0,H=i.fetchState==="In-Progress"||i.fetchState==="Not-Started",y=(e.reportsResyncFetchState==="In-Progress"||c?.fetchState==="In-Progress")&&c?.uiState.accountViewMode==="classes";_.useEffect(()=>{const z=B||l.mode==="forecast_mode"?3:1;x(B,C,z)},[t]);const j=z=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Ze.Event.search,I(i.reportId),z.type,z.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(z)},{autoCompleteData:G,autoCompleteActions:q,scrollPosition:ae,...k}=e,P=s.jsx(qe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:L,isDownloading:$==="In-Progress"}],onDownloadClick:async z=>{if(z==="excel")if($==="In-Progress"){console.log("Download is already in progress!");return}else a(!0)}}}});return s.jsxs(mo,{children:[s.jsx(Ge,{title:p.reportTitle,backgroundColor:o.colors.grey5,onBackClick:b,rightSideComponent:P,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:j}},source:"DashboardReportPage"}),H||y?s.jsx(fo,{children:s.jsx(Ue,{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,{...k}),s.jsx(bo,{highlightedRangeReport:i,uiState:l}),s.jsx(xo,{...k}),s.jsx(ho,{children:s.jsx(ut,{insights:v})})]}),s.jsx(_o,{scrollPosition:ae,...k})]})]})},bo=X.memo(Ut,K),xo=X.memo(Jt,K),_o=X.memo(lo,K),wo=X.memo(Us,K);export{Zo as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as $,
|
|
1
|
+
import{_ as $,gU as u,X as y,j as l,o as i,q as d,f as c}from"./index-ji6aa7AC.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{g as k}from"./BoxItem-DBi8kqn3-BDAOAuEh.js";import{o as v}from"./commonDimensions-DBedC6J7-SSiZbAOc.js";function M({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:f}=e,g=r.length>0?r:m,a=$("0,0.00",x),n=u(f),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(E,{windowSize:o,children:[l.jsx(D,{children:g}),n!=null?l.jsxs(P,{windowSize:o,children:[l.jsx(q,{windowSize:o}),l.jsx(R,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(A,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
@@ -58,7 +58,7 @@ import{_ as $,gW as u,X as y,j as l,o as i,t as d,m as c}from"./index-g0nOWR6_.j
|
|
|
58
58
|
-webkit-box-orient: vertical;
|
|
59
59
|
-webkit-line-clamp: 1;
|
|
60
60
|
display: -webkit-box;
|
|
61
|
-
`,
|
|
61
|
+
`,q=t.div`
|
|
62
62
|
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
63
63
|
width: ${i.sp1};
|
|
64
64
|
height: ${i.sp1};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{u as S,X as z,
|
|
1
|
+
import{u as S,X as z,g_ as C,j as e,aW as D,M as Y,ai as B,o as r,g,bT as F,l as L,C as R,w as T,q as A,n as b,db as I,dc as E,d6 as N,dd as O}from"./index-ji6aa7AC.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as P}from"./BoxItem-DBi8kqn3-BDAOAuEh.js";import{o as V}from"./commonDimensions-DBedC6J7-SSiZbAOc.js";import{H as X}from"./DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const n=Y.getLocalizedStrings(),q={listItemMargin:new R(b[3],b[8])};function H(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=E(d,o=>o.length>0);return N(m,o=>({date:o[0].transactionDate,transactions:O(o,h=>h.transactionDate,"desc")}))}const _=C(H),mt=({transactionListView:t,onBackClick:d})=>{const m=S(),o=z(),h=f.createRef(),p=f.useRef(null),l=_(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*V.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(Q,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(U,{children:s.transactions.map((M,u)=>e.jsx(X,{data:M,boxType:P(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(G,{children:e.jsx($,{windowSize:o,children:e.jsx(K,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(W,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
|
|
2
2
|
margin: ${t=>`${r.sp0} ${q.listItemMargin.valuePx(t.windowSize)}`};
|
|
3
|
-
`,
|
|
3
|
+
`,G=a.div`
|
|
4
4
|
display: flex;
|
|
5
5
|
height: 100%;
|
|
6
6
|
flex: 1 1 auto;
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
justify-content: center;
|
|
9
9
|
align-items: flex-end;
|
|
10
|
-
`,
|
|
10
|
+
`,J=a.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
height: 100%;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
width: 100%;
|
|
15
15
|
padding-bottom: ${r.sp7};
|
|
16
|
-
`,
|
|
16
|
+
`,K=a(A)`
|
|
17
17
|
display: flex;
|
|
18
18
|
color: ${t=>t.theme.colors.grey2};
|
|
19
|
-
`,
|
|
19
|
+
`,Q=a(T)`
|
|
20
20
|
display: flex;
|
|
21
21
|
height: 21px;
|
|
22
22
|
margin-bottom: ${r.sp2};
|
|
@@ -27,14 +27,14 @@ import{u as S,X as z,h0 as C,j as e,aW as D,M as Y,ao as B,o as r,g,bT as F,l as
|
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 100%;
|
|
30
|
-
`,
|
|
30
|
+
`,U=a.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex: 1 1 auto;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
box-shadow: ${t=>`${r.sp0} 2px ${r.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
35
35
|
border-radius: ${r.sp2};
|
|
36
36
|
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`,
|
|
37
|
+
`,W=a(F)`
|
|
38
38
|
scrollbar-width: thin;
|
|
39
39
|
scrollbar-color: transparent transparent;
|
|
40
40
|
&::-webkit-scrollbar {
|
|
@@ -63,4 +63,4 @@ import{u as S,X as z,h0 as C,j as e,aW as D,M as Y,ao as B,o as r,g,bT as F,l as
|
|
|
63
63
|
border-radius: 2px;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`;export{
|
|
66
|
+
`;export{mt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ab as w,X as p,j as i,M as f,C as o,o as n,aj as x,Q as s,h as d,n as a}from"./index-ji6aa7AC.js";import{n as r,b as t}from"./vendor-CnQcJ2Lu.js";const C=e=>t.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),t.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("g",{clipPath:"url(#clip0_1350_23850)"},t.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip1_1350_23850)"},t.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip2_1350_23850)"},t.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip3_1350_23850)"},t.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_1350_23850"},t.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),t.createElement("clipPath",{id:"clip1_1350_23850"},t.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),t.createElement("clipPath",{id:"clip2_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),t.createElement("clipPath",{id:"clip3_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:g}=f.getLocalizedStrings(),{businessVerification:m}=g,c={iconSize:new o(a[6],a[10]),gap:new o(a[2],a[3])},h={title:new s("smallSemiBold","standardSemiBold"),description:new s("smallRegular","standardRegular")},P=()=>{const[e]=w("Secure"),l=p();return i.jsxs(E,{windowSize:l,children:[e!=null?i.jsx(u,{windowSize:l,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):i.jsx(S,{windowSize:l}),i.jsxs(y,{children:[i.jsx(z,{windowSize:l,children:m.securityMessageTitle}),i.jsx(B,{windowSize:l,children:m.securityMessageDescription})]})]})},E=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
4
4
|
gap: ${e=>c.gap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as
|
|
1
|
+
import{X as q,a as U,M as $,c3 as V,H as Q,l as j,j as n,bO as X,bQ as Y,bR as _,F as G,a3 as J,C as u,eP as K,o as Z,an as ee,n as a}from"./index-ji6aa7AC.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-DoGfRREZ-B2ezqzYk.js";import{M as te}from"./MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js";import{W as ae,A as oe}from"./BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js";import{T as ie}from"./MailingDetailsSection-TgN7VRhK-CYe74YT_.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])},B="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:D,amount:P,onSaveHandler:R,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=q(),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)}},H=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(()=>H(d,m))});return()=>{k.unsubscribe()}});const O=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&R("wire")}),S=!Q(y!=null?j.getFormattedAddress(y):y,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(X,{titleComponent:n.jsx(_,{children:t.discardTitle}),descriptionComponent:n.jsx(Y,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount: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(G,{...c,children:n.jsxs("form",{id:T(B),onSubmit:O,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:T(B),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label: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},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
|
|
2
2
|
padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
|
|
3
3
|
padding-right: ${e=>i.paddingRight.valuePx(e.size)};
|
|
4
4
|
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
package/dist/assets/{DownloadOverlay-De5uIGOt-CYqEn0hY.js → DownloadOverlay-LH6MXphu-kt8sJEjY.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,bp as Je,o as a,X as le,bq as et,r as Le,l as d,g as de,C as H,a2 as tt,M as Y,br as rt,be as ze,n as z,an as Be,q as T,bl as we,v as G,f as ce,K as ee,u as Ne,bs as at,bt as me,bu as pe,d as Ee,bv as Qe,m as fe,bw as q,bc as ot,ao as st,bx as it,by as nt,b4 as lt,bz as dt,Z as ct,bA as mt,bB as pt,b0 as ft}from"./index-ji6aa7AC.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-X-GRY9hH-MGNhQKMp.js";import{c as ut,h as bt}from"./ReportTableViewSelector-BVUqQ9hl-WfosyobX.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-FShSCFEn-62FniBRb.js";import"./AccountRow-CBhTc-CO-BhHbolQV.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function J(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return J(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
|
|
2
2
|
padding: ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.borderColor.default};
|
|
4
4
|
border-radius: ${a.sp1};
|
|
@@ -24,17 +24,17 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
24
24
|
&:hover {
|
|
25
25
|
color: ${e=>e.theme.colors.primary};
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,je=n(it)`
|
|
28
28
|
width: ${a.sp4};
|
|
29
29
|
height: ${a.sp4};
|
|
30
|
-
`,
|
|
30
|
+
`,ve=n(nt)`
|
|
31
31
|
width: ${a.sp4};
|
|
32
32
|
height: ${a.sp4};
|
|
33
|
-
`,wt=e=>{const{id:o,disabled:r=!1,checked:s=!1,label:i,showInfoIcon:l,tooltipText:p,style:f={},onClick:b}=e,m=Ne();let F=s?ve
|
|
33
|
+
`,wt=e=>{const{id:o,disabled:r=!1,checked:s=!1,label:i,showInfoIcon:l,tooltipText:p,style:f={},onClick:b}=e,m=Ne();let F=s?je:ve;m.mode==="dark"&&(F=s?je:ve);let $=s?m.colors.primary:m.colors.hero;r&&($=m.colors.grey2);const O=()=>{r||b(o,s)};let w={default:m.colors.background,hover:m.colors.background},h={default:m.colors.hero,hover:m.colors.primary},_={default:m.colors.grey2,hover:m.colors.primary};return s?(w={default:m.colors.grey5,hover:m.colors.grey5},h={default:m.colors.primary,hover:m.colors.primary},_={default:m.colors.primary,hover:m.colors.primary}):r&&(w={default:m.colors.grey4,hover:m.colors.grey4},h={default:m.colors.grey2,hover:m.colors.grey2},_={default:m.colors.grey3,hover:m.colors.grey3}),t.jsxs(yt,{backgroundColor:w,textColor:h,borderColor:_,onClick:O,disabled:r,checked:s,style:{...f},children:[t.jsxs(Oe,{children:[t.jsx(F,{color:s?$:"none"}),i!=null?t.jsx(Ft,{children:i}):null]}),l===!0?t.jsx(Oe,{style:{marginLeft:a.sp3},children:t.jsx(at,{enterDelay:600,title:p,children:t.jsx($t,{width:a.sp3,height:a.sp3})})}):""]})},Yt=he.memo(wt),ue=["year_to_date_total","free_range_total","year_to_date_last_year_total","rolling_12_months","rolling_12_months_average"],Ot=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],jt=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],vt=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue],He={month:Ot,quarter:jt,year:vt},De=n.div`
|
|
34
34
|
padding-top: ${e=>e.space};
|
|
35
35
|
`,Dt=n(T)`
|
|
36
36
|
color: ${e=>e.theme.colors.primary};
|
|
37
|
-
`,kt=(e,o,r)=>{const s=[],i=r.startDate;return d.subtractPeriod(o,e,1,"year").isBefore(i)&&s.push("same_period_last_year","this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","year_to_date_last_year_total"),s},_t=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,disabledAdditionalColumns:s,selectedAdditionalColumns:i,dateRange:l,calendarPeriod:p,dataAvailable:f,selectedFileType:b,onAdditionalColumnsSelectionChanged:m}=e,F=kt(o,l.endDate,f);u.useEffect(()=>{const c=i.filter(y=>!F.includes(y));i.length!==c.length&&m(c)},[F,i,m]);const $=p.numberOfPeriods+i.length<P[b],O=Y.getLocalizedStrings().downloadReport.additionalColumns[r],w=He[r],h=(c,y)=>{if(y){const
|
|
37
|
+
`,kt=(e,o,r)=>{const s=[],i=r.startDate;return d.subtractPeriod(o,e,1,"year").isBefore(i)&&s.push("same_period_last_year","this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","year_to_date_last_year_total"),s},_t=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,disabledAdditionalColumns:s,selectedAdditionalColumns:i,dateRange:l,calendarPeriod:p,dataAvailable:f,selectedFileType:b,onAdditionalColumnsSelectionChanged:m}=e,F=kt(o,l.endDate,f);u.useEffect(()=>{const c=i.filter(y=>!F.includes(y));i.length!==c.length&&m(c)},[F,i,m]);const $=p.numberOfPeriods+i.length<P[b],O=Y.getLocalizedStrings().downloadReport.additionalColumns[r],w=He[r],h=(c,y)=>{if(y){const v=i.indexOf(c),x=[...i];x.splice(v,1),p.maxNumberOfPeriods=P[b]-x.length,m(x)}else p.maxNumberOfPeriods=P[b]-(i.length+1),m([...i,c])},_=(c,y)=>{const{dateFormat:{visual:v}}=Y.getLocalizedStrings();let x=d.formatZeniDate(d.subtractPeriod(l.endDate,y,1,"year"),v.MMMYYFormat,y);return r==="quarter"&&(x=`Q${d.formatZeniDate(d.subtractPeriod(l.endDate,y,1,"year"),v.QYYformat,y)}`),O[c].replace("-same_period_last_year-",x)};return t.jsxs(u.Fragment,{children:[t.jsx(Dt,{children:Y.getLocalizedStrings().downloadReport.addColumns}),t.jsx(De,{space:a.sp3}),w.map(c=>t.jsxs(u.Fragment,{children:[t.jsx(Yt,{checked:i.includes(c),label:_(c,o),disabled:s?.includes(c)===!0||F.includes(c)||!$&&!i.includes(c),id:c,onClick:(y,v)=>h(y,v),showInfoIcon:F.includes(c)&&$,tooltipText:Y.getLocalizedStrings().downloadReport.dataNotAvailable}),t.jsx(De,{space:a.sp3})]},c))]})},Ct=u.memo(_t),ke=n.div``,St=n.div`
|
|
38
38
|
padding: ${a.sp2} ${a.sp3};
|
|
39
39
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
40
40
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -91,7 +91,7 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
91
91
|
`,zt=n.div`
|
|
92
92
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
93
93
|
width: 100%;
|
|
94
|
-
`,Bt=(e,o,r,s)=>{const i=N(e,"month",o).filter(l=>!d.zeniDate(`${l}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]"));return{disabledMonths:oe.filter(l=>{const p=s.startDate.format(S.YYYYformat);return!d.zeniDate(`${l} ${p}`,S.MMMYYYYFormat).isBetween(r.startDate.startOf("month"),r.endDate.endOf("month"),null,"[]")}),disabledYears:i}},Nt=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(r);return s!=null?oe.filter(l=>o.includes(l)===!1&&d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(r.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat))===!1:!0)):[]},Et=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(e);return s!=null?oe.filter(l=>r.includes(l)===!1&&d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(e.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat))===!0:!1)):[]},{reports:Ae,dateFormat:{analytics:K,visual:S}}=Y.getLocalizedStrings(),Qt=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,[l,p]=u.useState(!1),[f,b]=u.useState(o.startDate.format(K.MMMFormat)),[m,F]=u.useState(o.startDate.format(K.YYYYFormat)),$=x=>{b(x),i("month",{startDate:d.zeniDate(`${x} ${m}`,K.MMMYYYYFormat).startOf("month"),endDate:d.zeniDate(`${x} ${m}`,K.MMMYYYYFormat).endOf("month")}),p(!1)},O=x=>{p(x),b(o.startDate.format(S.MMMformat)),F(o.startDate.format(S.YYYYformat))},{disabledMonths:w,disabledYears:h}=Bt(e.firstMonthOfFY,e.dataAvailable,s,{startDate:d.zeniDate(m,S.YYYYformat),endDate:d.zeniDate(m,S.YYYYformat)}),_=N(e.firstMonthOfFY,"month",e.dataAvailable),c=Nt(m,w,s,e.bookCloseDate),y=Et(s,m,w,e.bookCloseDate),
|
|
94
|
+
`,Bt=(e,o,r,s)=>{const i=N(e,"month",o).filter(l=>!d.zeniDate(`${l}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]"));return{disabledMonths:oe.filter(l=>{const p=s.startDate.format(S.YYYYformat);return!d.zeniDate(`${l} ${p}`,S.MMMYYYYFormat).isBetween(r.startDate.startOf("month"),r.endDate.endOf("month"),null,"[]")}),disabledYears:i}},Nt=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(r);return s!=null?oe.filter(l=>o.includes(l)===!1&&d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(r.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat))===!1:!0)):[]},Et=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(e);return s!=null?oe.filter(l=>r.includes(l)===!1&&d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(e.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat))===!0:!1)):[]},{reports:Ae,dateFormat:{analytics:K,visual:S}}=Y.getLocalizedStrings(),Qt=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,[l,p]=u.useState(!1),[f,b]=u.useState(o.startDate.format(K.MMMFormat)),[m,F]=u.useState(o.startDate.format(K.YYYYFormat)),$=x=>{b(x),i("month",{startDate:d.zeniDate(`${x} ${m}`,K.MMMYYYYFormat).startOf("month"),endDate:d.zeniDate(`${x} ${m}`,K.MMMYYYYFormat).endOf("month")}),p(!1)},O=x=>{p(x),b(o.startDate.format(S.MMMformat)),F(o.startDate.format(S.YYYYformat))},{disabledMonths:w,disabledYears:h}=Bt(e.firstMonthOfFY,e.dataAvailable,s,{startDate:d.zeniDate(m,S.YYYYformat),endDate:d.zeniDate(m,S.YYYYformat)}),_=N(e.firstMonthOfFY,"month",e.dataAvailable),c=Nt(m,w,s,e.bookCloseDate),y=Et(s,m,w,e.bookCloseDate),v=e.bookCloseDate!=null?d.getTimeframeTickTag("month",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(fe,{onClickAway:()=>O(!1),children:t.jsxs(It,{children:[t.jsx(be,{value:d.formatZeniDate(o.startDate,S.MMMYYFormat,e.firstMonthOfFY),onClick:()=>O(!l),label:r,timeframeTickTag:v}),l?t.jsx(u.Fragment,{children:t.jsxs(Rt,{children:[t.jsxs(Lt,{children:[_.map(x=>t.jsx(q,{id:x,text:x,disabled:h.includes(x),onClick:j=>{F(j),b("")},checked:x===m},x)),t.jsx(Me,{space:a.sp3}),t.jsx(zt,{}),t.jsx(Me,{space:a.sp3}),oe.map(x=>t.jsx(q,{id:x,text:x,disabled:w.includes(x),onClick:j=>$(j),checked:x===f,starred:c.includes(x)&&!w.includes(x),doubleStarred:y.includes(x)&&!w.includes(x)},x))]}),t.jsx(ge,{starredPeriod:c,doubleStarredPeriod:y,bookCloseIncompleteInfo:Ae.bookCloseIncompleteInfoMonth,bookCloseUnderReviewInfo:Ae.bookCloseUnderReviewInfoMonth})]})}):""]})})},Vt=u.memo(Qt),Ht=n.div`
|
|
95
95
|
position: relative;
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
`,Ut=n.div`
|
|
@@ -114,10 +114,10 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
114
114
|
`,Te=n.div`
|
|
115
115
|
padding-top: ${e=>e.space};
|
|
116
116
|
width: 100%;
|
|
117
|
-
`,
|
|
117
|
+
`,Zt=n.div`
|
|
118
118
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
119
119
|
width: 100%;
|
|
120
|
-
`,
|
|
120
|
+
`,Wt=(e,o,r,s)=>{const i=N(e,"quarter",o).filter(l=>{if(e===1)return!d.zeniDate(`${l}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]");{const{fyYear:p}=d.getFYQuarterAndYear(r.startDate,e),{fyYear:f}=d.getFYQuarterAndYear(r.endDate,e);return!(parseInt(l)>=p&&parseInt(l)<=f)}});return{disabledQuarters:ae.filter(l=>{const p=parseInt(l),f=d.getFYQuarterAndYear(r.startDate,e),b=d.getFYQuarterAndYear(r.endDate,e);return s===f.fyYear&&p<f.fyQuarter||s===b.fyYear&&p>b.fyQuarter?!0:s<f.fyYear||s>b.fyYear}),disabledYears:i}},Gt=(e,o,r,s,i)=>{const l=d.isIncompleteMonthPresentInTimeframeTick(s);if(i!=null){const p=d.getFYQuarterAndYear(i,o),f=d.getFYQuarterAndYear(s.endDate,o);return ae.filter(b=>{const m=parseInt(b);return e.includes(b)===!1&&(l!==!0||f.fyQuarter!==m)&&(r===p.fyYear&&m>=p.fyQuarter&&d.getLastMonthOfFYQuarter(m,o)!==i.month()+1||r>p.fyYear)})}else return[]},Kt=(e,o,r,s,i)=>{const l=d.isIncompleteMonthPresentInTimeframeTick(s);if(i!=null){const p=d.getFYQuarterAndYear(i,e),f=d.getFYQuarterAndYear(s.endDate,e);return ae.filter(b=>{const m=parseInt(b);return r.includes(b)===!1&&(l!==!0||f.fyQuarter===m)&&o===p.fyYear&&m>=p.fyQuarter||o>p.fyYear})}else return[]},Xt=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,{fyQuarter:l,fyYear:p}=d.getFYQuarterAndYear(o.startDate,e.firstMonthOfFY),[f,b]=u.useState(!1),[m,F]=u.useState(`${l}`),[$,O]=u.useState(`${p}`),{reports:w,dateFormat:h}=Y.getLocalizedStrings(),_=g=>{F(g),i("quarter",d.getActualPeriodOfFYQtr(e.firstMonthOfFY,d.toQuarter(parseInt(g)),parseInt($))),b(!1)},c=g=>{b(g);const{fyQuarter:D,fyYear:A}=d.getFYQuarterAndYear(o.startDate,e.firstMonthOfFY);F(`${D}`),O(`${A}`)},{disabledQuarters:y,disabledYears:v}=Wt(e.firstMonthOfFY,e.dataAvailable,s,parseInt($)),x=N(e.firstMonthOfFY,"quarter",e.dataAvailable),j=Gt(y,e.firstMonthOfFY,parseInt($),s,e.bookCloseDate),E=Kt(e.firstMonthOfFY,parseInt($),y,s,e.bookCloseDate),M=e.bookCloseDate!=null?d.getTimeframeTickTag("quarter",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(fe,{onClickAway:()=>c(!1),children:t.jsxs(Ht,{children:[t.jsx(be,{value:`Q${d.formatZeniDate(o.startDate,h.visual.QYYformat,e.firstMonthOfFY)}`,onClick:()=>c(!f),label:r,timeframeTickTag:M}),f?t.jsxs(Ut,{children:[t.jsxs(qt,{children:[x.map(g=>t.jsx(q,{id:g,text:g,disabled:v.includes(g),onClick:D=>{O(D),F("")},checked:g===$},g)),t.jsx(Te,{space:a.sp3}),t.jsx(Zt,{}),t.jsx(Te,{space:a.sp3}),ae.map(g=>t.jsx(q,{id:g,text:`Q${g}`,disabled:y.includes(g),onClick:D=>_(D),checked:g===m,starred:j.includes(g)&&!y.includes(g),doubleStarred:E.includes(g)&&!y.includes(g)},g))]}),t.jsx(ge,{starredPeriod:j,doubleStarredPeriod:E,bookCloseIncompleteInfo:w.bookCloseIncompleteInfoQuarter,bookCloseUnderReviewInfo:w.bookCloseUnderReviewInfoQuarter})]}):""]})})},Jt=u.memo(Xt),er=n.div`
|
|
121
121
|
position: relative;
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
`,tr=n.div`
|
|
@@ -160,7 +160,7 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
160
160
|
color: ${e=>e.theme.colors.primary};
|
|
161
161
|
`,ur=n.div`
|
|
162
162
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
163
|
-
`,br=(e,o,r)=>{const{endOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(o.startDate,e,r),{startOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o.endDate,e,r),l={startDate:o.startDate,endDate:s},p={startDate:i,endDate:o.endDate};return{fromDateRange:l,toDateRange:p}},gr=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,numberOfAdditionalColumns:s,calendarPeriod:i,dateRange:l,selectedOrderBy:p,dataAvailable:f,defaultOptions:b,selectedFileType:m,bookCloseDate:F,onDateRangeChange:$,onSelectedTimeframeChange:O,onNewOrderBySelection:w,onAdditionalColumnsSelectionChanged:h}=e,_=g=>Y.getLocalizedStrings().timeframe[g],c=g=>Y.getLocalizedStrings().downloadReport.orderBy[g],y=Y.getLocalizedStrings().downloadReport.displayColumns,{fromDateRange:
|
|
163
|
+
`,br=(e,o,r)=>{const{endOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(o.startDate,e,r),{startOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o.endDate,e,r),l={startDate:o.startDate,endDate:s},p={startDate:i,endDate:o.endDate};return{fromDateRange:l,toDateRange:p}},gr=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,numberOfAdditionalColumns:s,calendarPeriod:i,dateRange:l,selectedOrderBy:p,dataAvailable:f,defaultOptions:b,selectedFileType:m,bookCloseDate:F,onDateRangeChange:$,onSelectedTimeframeChange:O,onNewOrderBySelection:w,onAdditionalColumnsSelectionChanged:h}=e,_=g=>Y.getLocalizedStrings().timeframe[g],c=g=>Y.getLocalizedStrings().downloadReport.orderBy[g],y=Y.getLocalizedStrings().downloadReport.displayColumns,{fromDateRange:v,toDateRange:x}=br(o,l,r),j=g=>{const D=te(o,g,f,b.balancesFilter.numberOfPeriods);i.timeframe=g,i.maxNumberOfPeriods=P[m]-b.additionalBalances.length,i.updatePeriod(d.subtractPeriod(f.endDate,o,D-1,g),f.endDate),$(i.value.dateRange),O(i.value.timeframe),h(b.additionalBalances)},E=u.useCallback((g,D,A)=>{A==="to"?i.updateEndDate(D.endDate):i.updateStartDate(D.startDate),$(i.value.dateRange)},[i,$]),M=()=>{let g=Vt;return r==="quarter"?g=Jt:r==="year"&&(g=nr),t.jsxs(u.Fragment,{children:[t.jsx(g,{firstMonthOfFY:o,onNewPeriodSelection:(D,A)=>E(D,A,"from"),dataAvailable:f,selectedPeriod:v,label:"From",validPeriod:{startDate:f.startDate,endDate:f.endDate},bookCloseDate:F}),t.jsx(L,{space:a.sp3}),t.jsx(g,{firstMonthOfFY:o,onNewPeriodSelection:(D,A)=>E(D,A,"to"),dataAvailable:f,selectedPeriod:x,label:"To",validPeriod:i.getValidCalendarPeriod(),bookCloseDate:F})]})};return t.jsxs(u.Fragment,{children:[t.jsx(hr,{children:y.title}),t.jsx(L,{space:a.sp2}),t.jsx(fr,{numberOfPeriods:i.numberOfPeriods,numberOfAdditionalColumns:s,selectedFileType:m}),t.jsx(L,{space:a.sp5}),t.jsx(se,{children:y.displayOrderBy}),t.jsx(L,{space:a.sp2}),t.jsx(we,{pickerValues:["ascending_date","descending_date"],valueToLabel:c,selectedValue:p,onPickerSelectionChanged:g=>w(g),optionTextStyle:G.standardRegular,titleTextStyle:G.standardRegular,outlined:!0}),t.jsx(L,{space:a.sp5}),t.jsx(ur,{}),t.jsx(L,{space:a.sp4}),t.jsx(se,{children:"Period"}),t.jsx(L,{space:a.sp2}),t.jsx(we,{pickerValues:["month","quarter","year"],valueToLabel:_,selectedValue:r,onPickerSelectionChanged:g=>j(g),titleTextStyle:G.standardRegular,optionTextStyle:G.standardRegular,outlined:!0}),t.jsx(L,{space:a.sp4}),t.jsx(se,{children:y.periodRange}),t.jsx(L,{space:a.sp2}),M()]})},xr=u.memo(gr),Q=n.div`
|
|
164
164
|
padding-top: ${e=>e.top??0};
|
|
165
165
|
padding-left: ${e=>e.left??0};
|
|
166
166
|
`,yr=n.div`
|
|
@@ -185,7 +185,7 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
185
185
|
width: 1px;
|
|
186
186
|
height: ${a.sp7};
|
|
187
187
|
background: ${e=>e.theme.colors.grey2};
|
|
188
|
-
`,Ie=n.div``,
|
|
188
|
+
`,Ie=n.div``,jr=e=>{const{onContinueWithPDFClick:o,onSwitchToExcelClick:r}=e,s=Y.getLocalizedStrings().downloadReport.fileSwitchDialogue;return t.jsx(dt,{open:!0,children:t.jsxs($r,{children:[t.jsxs(yr,{children:[t.jsx(me,{width:a.sp10,height:a.sp10}),t.jsx(Q,{left:a.sp6}),t.jsx(Or,{}),t.jsx(Q,{left:a.sp6}),t.jsx(pe,{width:a.sp10,height:a.sp10})]}),t.jsx(Q,{top:a.sp6}),t.jsx(wr,{children:s.pdfLimitation}),t.jsx(Q,{top:a.sp3}),t.jsx(Yr,{children:s.excelNoLimitation}),t.jsx(Q,{top:a.sp4}),t.jsxs(Fr,{children:[t.jsxs(Ie,{children:[t.jsx(ee,{label:s.switchToExcel,onClick:r,style:{width:"195px"}}),t.jsx(Q,{top:a.sp1})]}),t.jsx(Q,{left:a.sp4}),t.jsx(Ie,{children:t.jsx(ee,{variant:"primary",label:s.continueWithPDF,onClick:o,style:{width:"195px"}})})]})]})})},Ue=u.memo(jr),re=Y.getLocalizedStrings().downloadReport.footer,vr=n.div`
|
|
189
189
|
display: flex;
|
|
190
190
|
justify-content: center;
|
|
191
191
|
background: ${e=>e.theme.colors.background};
|
|
@@ -247,7 +247,7 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
247
247
|
`,Ir=n(me)`
|
|
248
248
|
width: ${a.sp4};
|
|
249
249
|
height: ${a.sp4};
|
|
250
|
-
`,Rr=[{id:"excel",label:re.downloadExcel,Icon:Ir},{id:"pdf",label:re.downloadPdf,Icon:Tr}],Lr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(kr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Ar,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Sr,{children:o}),t.jsx(l,{})]})})},zr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i,onResetClick:l,isResetDisabled:p}=e,{calendarPeriod:f,onNewFileTypeSelection:b,numberOfAdditionalColumns:m,selectedFileType:F,resetToDefaultOption:$}=i,[O,w]=u.useState(!1),h=c=>{c.stopPropagation(),o()},_=c=>{c==="pdf"&&f.numberOfPeriods+m>P.pdf?w(!0):(f.maxNumberOfPeriods=P[c]-m,b(c))};return t.jsxs(
|
|
250
|
+
`,Rr=[{id:"excel",label:re.downloadExcel,Icon:Ir},{id:"pdf",label:re.downloadPdf,Icon:Tr}],Lr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(kr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Ar,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Sr,{children:o}),t.jsx(l,{})]})})},zr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i,onResetClick:l,isResetDisabled:p}=e,{calendarPeriod:f,onNewFileTypeSelection:b,numberOfAdditionalColumns:m,selectedFileType:F,resetToDefaultOption:$}=i,[O,w]=u.useState(!1),h=c=>{c.stopPropagation(),o()},_=c=>{c==="pdf"&&f.numberOfPeriods+m>P.pdf?w(!0):(f.maxNumberOfPeriods=P[c]-m,b(c))};return t.jsxs(vr,{onClick:c=>c.stopPropagation(),children:[t.jsxs(_r,{isResetDisabled:p,onClick:l,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(Cr,{children:re.resetLabel})]}),t.jsxs(Pr,{children:[t.jsx(Mr,{children:Rr.map(c=>t.jsx(Lr,{...c,onClick:()=>{s||_(c.id)},checked:F===c.id,isLoading:r},c.id))}),t.jsx(Dr,{space:a.sp0,style:{display:"flex",alignItems:"center",height:z[7]},children:re.orLabel}),t.jsx(ee,{variant:"primary",label:Y.getLocalizedStrings().downloadReport.viewReport,onClick:h,style:{width:"160px"}})]}),O?t.jsx(Ue,{onSwitchToExcelClick:()=>w(!1),onContinueWithPDFClick:()=>{w(!1),b("pdf"),$()}}):""]})},Br=u.memo(zr),ne=Y.getLocalizedStrings().downloadReport.footer,Nr=n.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
justify-content: center;
|
|
253
253
|
background: ${e=>e.theme.colors.background};
|
|
@@ -291,13 +291,13 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
291
291
|
position: absolute;
|
|
292
292
|
top: calc(50% - ${e=>e.offset});
|
|
293
293
|
left: calc(50% - ${e=>e.offset});
|
|
294
|
-
`,
|
|
294
|
+
`,Zr=n(pe)`
|
|
295
295
|
width: ${a.sp4};
|
|
296
296
|
height: ${a.sp4};
|
|
297
|
-
`,
|
|
297
|
+
`,Wr=n(me)`
|
|
298
298
|
width: ${a.sp4};
|
|
299
299
|
height: ${a.sp4};
|
|
300
|
-
`,Gr=[{id:"excel",label:ne.downloadExcel,Icon:
|
|
300
|
+
`,Gr=[{id:"excel",label:ne.downloadExcel,Icon:Wr},{id:"pdf",label:ne.downloadPdf,Icon:Zr}],Kr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(Qr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(qr,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:o}),t.jsx(l,{})]})})},Xr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i}=e,{calendarPeriod:l,onNewFileTypeSelection:p,numberOfAdditionalColumns:f,selectedFileType:b,resetToDefaultOption:m}=i,[F,$]=u.useState(!1),O=h=>{h.stopPropagation(),o()},w=h=>{h==="pdf"&&l.numberOfPeriods+f>P.pdf?$(!0):(l.maxNumberOfPeriods=P[h]-f,p(h))};return t.jsxs(Nr,{onClick:h=>h.stopPropagation(),children:[t.jsxs(Hr,{children:[t.jsx(Ur,{children:Gr.map(h=>t.jsx(Kr,{...h,onClick:()=>{s||w(h.id)},checked:b===h.id,isLoading:r},h.id))}),t.jsx(Er,{space:a.sp0,style:{display:"flex",alignItems:"center",height:a.sp4},children:ne.orLabel}),t.jsx(ee,{variant:"primary",label:Y.getLocalizedStrings().downloadReport.viewReport,onClick:O,style:{width:"100%"}})]}),F?t.jsx(Ue,{onSwitchToExcelClick:()=>$(!1),onContinueWithPDFClick:()=>{$(!1),p("pdf"),m()}}):""]})},Jr=u.memo(Xr),ea=e=>le()==="small"?t.jsx(Jr,{...e}):t.jsx(Br,{...e}),ta=e=>u.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{d:"M20.5447 1.65002C21.0182 1.65002 21.4723 1.83811 21.807 2.1729C22.1418 2.5077 22.3299 2.96177 22.3299 3.43524V16.8467C22.3299 18.2612 21.768 19.6177 20.7678 20.6179C19.7676 21.6181 18.4111 22.18 16.9966 22.18H3.58514C3.11168 22.18 2.6576 21.9919 2.3228 21.6571C1.98801 21.3224 1.79993 20.8683 1.79993 20.3948V3.43524C1.79993 2.96177 1.98801 2.5077 2.3228 2.1729C2.6576 1.83811 3.11168 1.65002 3.58514 1.65002H20.5447Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.8671 22.1086V18.6095C17.8671 18.3728 17.9611 18.1458 18.1285 17.9784C18.2959 17.811 18.5229 17.7169 18.7597 17.7169H22.2587",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 6.3999H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 9.97034H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 13.5406H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 17.1112H11.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ra=n.div`
|
|
301
301
|
padding: ${a.sp3};
|
|
302
302
|
border: 1px solid
|
|
303
303
|
${e=>e.disabled?e.theme.colors.grey3:e.checked?e.theme.colors.primary:e.theme.colors.grey2};
|
|
@@ -350,7 +350,7 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
352
352
|
justify-content: space-between;
|
|
353
|
-
`,pa=e=>{const{label:o,id:r,subLabel:s,onClick:i,checked:l,Icon:p,disabled:f}=e;return t.jsxs(ra,{checked:l,disabled:f,onClick:i,id:r,children:[t.jsx(p,{className:"report-format-icon",width:z[7],height:z[7]}),t.jsxs("div",{children:[t.jsx(aa,{children:o}),t.jsx(oa,{children:s})]})]})},fa=e=>{const{reportId:o,firstMonthOfFY:r,selectedFormat:s,disabledFormat:i,selectedView:l,nestedClasses:p,classesToFilterOut:f,classesFetchState:b,showClassAccountNumber:m,showAccountGroups:F,onOpenAccountViewMode:$,onNewFormatSelection:O,onNewViewSelection:w,onResetClick:h,isResetDisabled:_}=e,c=Y.getLocalizedStrings().downloadReport.reportFormats,y=le(),
|
|
353
|
+
`,pa=e=>{const{label:o,id:r,subLabel:s,onClick:i,checked:l,Icon:p,disabled:f}=e;return t.jsxs(ra,{checked:l,disabled:f,onClick:i,id:r,children:[t.jsx(p,{className:"report-format-icon",width:z[7],height:z[7]}),t.jsxs("div",{children:[t.jsx(aa,{children:o}),t.jsx(oa,{children:s})]})]})},fa=e=>{const{reportId:o,firstMonthOfFY:r,selectedFormat:s,disabledFormat:i,selectedView:l,nestedClasses:p,classesToFilterOut:f,classesFetchState:b,showClassAccountNumber:m,showAccountGroups:F,onOpenAccountViewMode:$,onNewFormatSelection:O,onNewViewSelection:w,onResetClick:h,isResetDisabled:_}=e,c=Y.getLocalizedStrings().downloadReport.reportFormats,y=le(),v=[{id:c.summary.id,label:c.summary.label,subLabel:c.summary.subLabel,Icon:rt},{id:c.detailed.id,label:c.detailed.label,subLabel:l==="account_group"?F===!0?c.detailed.subLabelAccountGroups:c.detailed.subLabelAccounts:c.detailed.subLabelClasses,Icon:gt},{id:c.moreDetailed.id,label:c.moreDetailed.label,subLabel:l==="account_group"?F===!0?c.moreDetailed.subLabelAccountGroups:c.moreDetailed.subLabelAccounts:c.moreDetailed.subLabelClasses,Icon:ta}],x=()=>t.jsx(u.Fragment,{children:t.jsx(bt,{reportId:o,firstMonthOfFY:r,nodes:p,classesListFetchState:b,selectedView:l,showAccountGroups:F,downloadPage:!0,onSaveClick:w,classesToBeFilteredOut:f,showClassAccountNumber:m,onOpenAccountViewMode:$})});return t.jsxs(u.Fragment,{children:[y==="small"?t.jsxs(ma,{children:[t.jsx(Re,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsxs(da,{isResetDisabled:_,onClick:h,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(ca,{children:c.resetLabel})]})]}):t.jsx(Re,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsx(U,{space:a.sp4}),t.jsxs(sa,{children:[t.jsx(ia,{children:"View by"}),t.jsx(U,{space:a.sp2}),t.jsx(na,{children:x()})]}),t.jsx(U,{space:a.sp5}),t.jsx(la,{}),t.jsx(U,{space:a.sp5}),v.map(j=>t.jsxs(u.Fragment,{children:[t.jsx(pa,{...j,onClick:()=>{i.includes(j.id)||O(j.id)},checked:s===j.id,disabled:i.includes(j.id)}),t.jsx(U,{space:a.sp4})]},j.id))]})},B={width:new H(z[11],z[11],33),maxWidth:new H(550,550,425),containerPadding:new H(z[3],z[6]),rowItemPadding:new H(0,z[6]),footerHeight:new H(211,133)},ha=n.div`
|
|
354
354
|
position: relative;
|
|
355
355
|
display: flex;
|
|
356
356
|
width: ${a.sp4};
|
|
@@ -436,4 +436,4 @@ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6
|
|
|
436
436
|
justify-content: center;
|
|
437
437
|
color: ${e=>e.theme.colors.hero};
|
|
438
438
|
cursor: pointer;
|
|
439
|
-
`,Ya=e=>({localeId:Y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:e.statementFileType,statements:e.statements,firstMonthOfFY:e.firstMonthOfFY,bookCloseDate:e.defaultOptions.bookCloseDate,timeframe:e.timeframe,additionalBalances:e.additionalBalances,format:e.format,balancesFilter:{thisPeriod:{startDate:e.balancesFilter.thisPeriod.startDate,endDate:e.balancesFilter.thisPeriod.endDate},numberOfPeriods:e.balancesFilter.numberOfPeriods,orderBy:e.balancesFilter.orderBy},accountViewMode:e.accountViewMode,nestedClassHierarchy:e.nestedClassHierarchy,classesToFilterOut:e.classesToFilterOut,dataAvailable:e.dataAvailable,isZeniCOAUsed:e.isZeniCOAUsed}),Oa=e=>{const o=Ya(e);if(o!=null)return ut(e.statementEndPoint,e.authParams,o)},
|
|
439
|
+
`,Ya=e=>({localeId:Y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:e.statementFileType,statements:e.statements,firstMonthOfFY:e.firstMonthOfFY,bookCloseDate:e.defaultOptions.bookCloseDate,timeframe:e.timeframe,additionalBalances:e.additionalBalances,format:e.format,balancesFilter:{thisPeriod:{startDate:e.balancesFilter.thisPeriod.startDate,endDate:e.balancesFilter.thisPeriod.endDate},numberOfPeriods:e.balancesFilter.numberOfPeriods,orderBy:e.balancesFilter.orderBy},accountViewMode:e.accountViewMode,nestedClassHierarchy:e.nestedClassHierarchy,classesToFilterOut:e.classesToFilterOut,dataAvailable:e.dataAvailable,isZeniCOAUsed:e.isZeniCOAUsed}),Oa=e=>{const o=Ya(e);if(o!=null)return ut(e.statementEndPoint,e.authParams,o)},ja=e=>{const{onClose:o,defaultOptions:r,dataAvailable:s,analytics:i,onSaveClickHandler:l,onThisPeriodChanged:p,onAdditionalBalanceSelectionChanged:f,onTimeframeSelectionChanged:b}=e,m=le();et();const[F,$]=u.useState(!1),[O,w]=u.useState(!1),[h,_]=u.useState(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),[c,y]=u.useState(r.statements),[v,x]=u.useState(r.timeframe),[j,E]=u.useState("excel"),[M,g]=u.useState(r.additionalBalances),[D,A]=u.useState(J(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),[Z,qe]=u.useState(e.defaultOptions.accountViewMode),[W,Ze]=u.useState(e.defaultOptions.classesToFilterOut),[V,xe]=u.useState(e.defaultOptions.balancesFilter.orderBy),[ye,Fe]=u.useState(!1),We=()=>{const k=te(r.firstMonthOfFY,v,D),{startOfTimeframeFY:I,endOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(D.endDate,r.firstMonthOfFY,v),R=d.zeniDate(new Date(C.year(),C.month(),C.date()).toISOString());p?.({endDate:R,startDate:I},k,!0)};u.useEffect(()=>{const k=async()=>{const I=h.endDate,{startOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(h.endDate,r.firstMonthOfFY,h.timeframe);await Oa({...e,statements:xt.filter(R=>c.includes(R)),firstMonthOfFY:e.defaultOptions.firstMonthOfFY,timeframe:h.timeframe,additionalBalances:He[h.timeframe].filter(R=>M.includes(R)),format:e.reportFormatProps.selectedFormat,statementFileType:j,accountViewMode:Z,classesToFilterOut:W,balancesFilter:{thisPeriod:{startDate:C,endDate:I},orderBy:V,numberOfPeriods:h.numberOfPeriods},dataAvailable:s,isZeniCOAUsed:e.defaultOptions.isZeniCOAUsed}),e.updateDownloadStateHandler("Completed")};ye&&e.downloadState!=="In-Progress"&&(Fe(!1),e.updateDownloadStateHandler("In-Progress"),k(),i?.trackDownload(e.referrer,ht(h.timeframe),j,!1))},[i,h.endDate,h.numberOfPeriods,h.timeframe,ye,e,s,M,j,e.reportFormatProps.selectedFormat,V,c,Z,W,r.firstMonthOfFY]),u.useEffect(()=>{O?F||$(k=>!k):w(k=>!k)},[M,V,D,e.reportFormatProps.selectedFormat]);const Ge=()=>{g(r.additionalBalances),h.maxNumberOfPeriods=P.pdf-r.additionalBalances.length;const k=te(r.firstMonthOfFY,h.timeframe,s,r.balancesFilter.numberOfPeriods),I=J(r.firstMonthOfFY,h.timeframe,h.endDate,k).dateRange;A(I),h.updatePeriod(I.startDate,I.endDate)},Ke=k=>{k.stopPropagation(),o()},Xe=(k,I)=>{qe(k),e.showAccountGroups===!1&&k==="account_group"?e.reportFormatProps.disabledFormatForRole.push("detailed"):k==="classes"&&e.showAccountGroups===!1&&e.reportFormatProps.disabledFormatForRole.splice(e.reportFormatProps.disabledFormatForRole.indexOf("detailed"),1),k==="classes"?c.includes("profit_and_loss")&&(y(C=>C.filter(R=>R!=="profit_and_loss")),y(C=>[...C,"profit_and_loss_by_classes"])):c.includes("profit_and_loss_by_classes")&&(y(C=>C.filter(R=>R!=="profit_and_loss_by_classes")),y(C=>[...C,"profit_and_loss"])),I!==void 0&&Ze(I)},$e=()=>{_(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),g(r.additionalBalances),e.reportFormatProps.setSelectedFormat(r.accountViewMode==="classes"?e.reportFormatProps.roleBasedClassesSelectedFormat:e.showAccountGroups===!1?"more_detailed":"detailed"),xe("ascending_date"),y(r.statements),x(r.timeframe),A(J(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),$(!1),w(!1)};return t.jsxs(ga,{children:[t.jsx(xa,{role:"presentation",onClick:k=>Ke(k),windowSize:m,children:t.jsx(ya,{})}),t.jsxs(Fa,{windowSize:m,children:[t.jsxs(ie,{windowSize:m,children:[t.jsx(fa,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,reportId:"profit_and_loss_by_classes",selectedFormat:e.reportFormatProps.selectedFormat,disabledFormat:e.reportFormatProps.disabledFormatForRole,selectedView:Z,nestedClasses:e.defaultOptions.nestedClassHierarchy??[],classesToFilterOut:W,classesFetchState:e.classesFetchState,showClassAccountNumber:e.defaultOptions.showClassAccountNumber??!1,showAccountGroups:e.showAccountGroups,onNewFormatSelection:e.reportFormatProps.setSelectedFormat,onNewViewSelection:Xe,onOpenAccountViewMode:e.onOpenAccountViewMode,onResetClick:$e,isResetDisabled:F}),t.jsx($a,{}),m==="small"||m==="medium-compact"?t.jsx(X,{space:a.sp5}):t.jsx(X,{space:a.sp8})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(xr,{firstMonthOfFY:r.firstMonthOfFY,calendarPeriod:h,numberOfAdditionalColumns:M.length,selectedOrderBy:V,dataAvailable:s,dateRange:D,defaultOptions:r,selectedTimeframe:v,bookCloseDate:r.bookCloseDate,onDateRangeChange:A,onSelectedTimeframeChange:x,onNewOrderBySelection:xe,selectedFileType:j,onAdditionalColumnsSelectionChanged:g}),t.jsx(X,{space:a.sp5})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(Ct,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,disabledAdditionalColumns:r.disabledAdditionalColumns,selectedTimeframe:v,dateRange:D,calendarPeriod:h,selectedAdditionalColumns:M,onAdditionalColumnsSelectionChanged:g,dataAvailable:s,selectedFileType:j}),t.jsx(X,{space:a.sp8})]})]}),t.jsx(ea,{onCancelClick:()=>o(),onViewReportClick:()=>{e.onUpdateDisplayOrder(V),e.onUpdateReportFormat(e.reportFormatProps.selectedFormat),l(Z,W),f?.(M,h.numberOfPeriods,!0),b?.(v,!1,!0),We(),o()},downloadingStatement:e.downloadState==="In-Progress",disabledDownloadButton:c.length===0,downloadTypeProps:{selectedFileType:j,calendarPeriod:h,numberOfAdditionalColumns:M.length,onNewFileTypeSelection:k=>{E(k),Fe(!0)},resetToDefaultOption:Ge},onResetClick:$e,isResetDisabled:F})]})},Ba=e=>{const{defaultOptions:o}=e,[r,s]=u.useState(!1),i=o.additionalBalances;return t.jsxs(ha,{onClick:()=>{s(!0)},children:[t.jsx(Je,{visibility:r?"hidden":"visible",style:{cursor:"pointer",width:a.sp4,height:a.sp4}}),r?null:t.jsx(wa,{className:"download-badge",children:o.balancesFilter.numberOfPeriods+i.length}),r?t.jsx(ja,{...e,onClose:()=>s(!1)}):null]})};export{Ba as DownloadOverlayButton,ja as default};
|