@zeniai/web-cockpit-ui 1.15.25-dev → 1.15.26-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-CxpLuJpQ-oljmG-aN.js +21 -0
- package/dist/assets/{AIPerformancePage-BXF0kUqR-BgyTM2y7.js → AIPerformancePage-BtDuOBey-B5mBQCVW.js} +104 -104
- package/dist/assets/AccountInfoPage-DkpBGfrR-BAuNBIod.js +18 -0
- package/dist/assets/{AccountInfoPageContent-QMyPHCdY-DP0akuHx.js → AccountInfoPageContent-BLF92_vF-CW7wtofP.js} +15 -15
- package/dist/assets/AccountLockedInfoModal-AsMkXu1I-CUepwrH5.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-CoXPQka7-DFQZksfD.js → AccountReconDetailsDrawerPage-CkaBrm5K-KV-fem_5.js} +10 -10
- package/dist/assets/AccountRow-aEmcYP8T-NzxiJ7E0.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Dkz2VyEk-BJf7WrAq.js → AccountsPromoCardStack-C0At5pn8-BVyntxD9.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-CbjThbsA-DCBhdPbu.js +6 -0
- package/dist/assets/{AddToWalletPage-p0T8VFfo-WTTL1b0G.js → AddToWalletPage-CMJwUbgf-CbZx4F8y.js} +47 -47
- package/dist/assets/{AgingReportsPage-CTzjRkV2-CkKYMdrC.js → AgingReportsPage-B_BSfude-DZk6eQ7D.js} +15 -15
- package/dist/assets/{AllUserItems-Dt9rMGJk-D2oOTLOS.js → AllUserItems-CGlWa60t-Bsvj0Bul.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-71VQk7px-BPdIn6ZS.js → ApAgingDetailPage-DT3vkmLG-hWexPQ-R.js} +7 -7
- package/dist/assets/AppBasePage-CDy7wPlv-BdtLe6Er.js +71 -0
- package/dist/assets/{AppDrawerContent-ULUH1WZ3-CblzrDc2.js → AppDrawerContent-CEsXm_i6-DvQRPFBq.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-Ciz-iaE5-ghG5WVzt.js → ApprovalRulesSettingsPage-CB2_4-2f-DqEewSSN.js} +1 -1
- package/dist/assets/{ArAgingChart-DcwM2rpv-C36SsOV8.js → ArAgingChart-qxhWsIQb-BR0MyGhc.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-eGCSFdAM-BJk9vCxH.js → ArAgingDetailPage-BbzQryp_-si9TyFWf.js} +4 -4
- package/dist/assets/{AttachmentView-CA6PRg4p-DDr9TCOl.js → AttachmentView-duTVxc9g-Cx51cWLo.js} +4 -4
- package/dist/assets/{BankAccountSection-mWUT-G8y-2k5xTeyX.js → BankAccountSection-CAwAf9xK-dEu3iigm.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-IMtILLfL-BhKJ6bLn.js → BankAccountWarningSection-CaDnP9_--B_s5lRpF.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-COyH3rdC-Be8G7lph.js → BankConnectionsSettingsPage-CDV7O8cl-CKVB9msh.js} +10 -10
- package/dist/assets/{BillDetailPage-BR_9uHRC-mLWBTrh1.js → BillDetailPage-DJxh2CIc-BDq5xtCx.js} +13 -13
- package/dist/assets/{BillPayApprovalRuleDetailPage-cRAudMvm-CWVbYb1D.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-DoqAcsu7.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Cd0aJtip-BTxbg4yL.js → BillPayApprovalRulesPage-MM7v8ZMx-BqexuGBp.js} +8 -8
- package/dist/assets/{BillPayPromoPage-BYW097HT-D4YnpN75.js → BillPayPromoPage-JK-VOx4W-CHt5RuWY.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BahrLUn4-CqC29kIw.js → BillPaySetUpPage-h0uoCWMl-B3vp9xYH.js} +2 -2
- package/dist/assets/BillingSettingsPage-gJG9OxD6-sAZcxvhc.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-CJ-GbBhL-B7DfrKfl.js → BillsBulkReviewDrawerPage-CPPDFsZt-D7n_HeTo.js} +1 -1
- package/dist/assets/{BoxItem-CvhcNreT-DxmoznPD.js → BoxItem-CYe_gTmA-3TpRGAgq.js} +1 -1
- package/dist/assets/BusinessVerificationPage-Dos8Bnvb-tV078-eh.js +138 -0
- package/dist/assets/{CardNumberSubText-CfoSPAZU-BdVhRiwJ.js → CardNumberSubText-CFDhtij8-Dsv6kEZQ.js} +3 -3
- package/dist/assets/{CashbackDetailPage-CWlaZrqz-DvIAxVRW.js → CashbackDetailPage-BBGGzKh7-DUHJlZVl.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-BNNbd3G1-BtUCuJum.js → ChargeCardDetailPage-BQhago53-wjHuLhkC.js} +35 -35
- package/dist/assets/{ChargeCardListPage-BzIvl8RY-Ncd3QF6u.js → ChargeCardListPage-B0E-C3RH-B7k2t4T5.js} +16 -16
- package/dist/assets/{ChargeCardListTable-D-uQKI4t-lkMdiYYu.js → ChargeCardListTable-ByGv0xWl-DMSCDnKA.js} +46 -46
- package/dist/assets/{ChargeCardPaymentHistoryPage-DmzlfD-l-OAmKFjuL.js → ChargeCardPaymentHistoryPage-LCY9rFqO-BkZDtpLS.js} +12 -12
- package/dist/assets/{ChargeCardPromoPage-DOYqOs6K-xBYShKSz.js → ChargeCardPromoPage-CKEnOseD-C5Oe_CBA.js} +11 -11
- package/dist/assets/{ChargeCardSetupPage-CSnLMycu-BkjYVqCn.js → ChargeCardSetupPage-BHv2VOdc-7YAt9Um1.js} +3 -3
- package/dist/assets/ChargeCardStatementsPage-UpRXyPTS-DMihpC1F.js +60 -0
- package/dist/assets/{CheckDepositDrawerPage-DN5Ok0Y6-DOjKYa5p.js → CheckDepositDrawerPage-0zbTQ3Fa-BLYoChOi.js} +21 -21
- package/dist/assets/{CollapsableReportTable-CncMWpFI-CnBbDhbn.js → CollapsableReportTable-DlYIKSlQ-CcB96aJz.js} +93 -93
- package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-BRXSA5bv.js +260 -0
- package/dist/assets/{CompanyPassportCard-Ccw8l9iz-CwNj32nj.js → CompanyPassportCard-DeVPuuje-pYw0P8-e.js} +3 -3
- package/dist/assets/CompanyPassportPage-F_GUET9a-DyWAWfST.js +574 -0
- package/dist/assets/{CompleteProfile-CQUDJ-nI-DJVg2OT2.js → CompleteProfile-Y6HwKtpz-CAD13Y73.js} +2 -2
- package/dist/assets/ConfettiBurst-BGE3Okwr-BH3P6Vot.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js → ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DM90rr4S-BcABoxWR.js → CreateOrEditVendorPage-BlZe6gmh-CQZW25xI.js} +16 -16
- package/dist/assets/{CreditCardPaymentDrawerPage-Bh0QdxXh-Dti2BnoN.js → CreditCardPaymentDrawerPage-flPmyCaF-BN_zrabq.js} +11 -11
- package/dist/assets/{CurrencySelectField-BDfEzwpU-4zlCOdOf.js → CurrencySelectField-RiKAivD8-Men9-Qs8.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CJGtq19l-BpCso2Fz.js → CustomerOnboardingActivationPage-B7dLMk4g-9XWjuxWa.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-CAVfCCXg.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CATYZXta.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Dm9ock3U.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-1Q4j5GPR.js +66 -0
- package/dist/assets/CustomerOnboardingPage-B5LrMzZS-C9Fs1CgW.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-CZDipU2j-BbQ2Iy2J.js → CustomerOnboardingProductSuitePage-DqgoBLWp-CqOyrhHJ.js} +6 -6
- package/dist/assets/{Dashboard-DyQZQS2X-mxU1Jkng.js → Dashboard-D0KlujCx-DnjbaQQd.js} +66 -66
- package/dist/assets/{DashboardReportPage-Dn7pVdG9-DtcRvxDO.js → DashboardReportPage-bxKyMsG7-D9LgF6Vc.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-8bPW9HsA.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-DDdkQsmn-B5pGW8gX.js → DepositAccTransactionItem-BdZVCAx--B5mbkfQv.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-BHdmR6m5-7yonpKjA.js → DepositAccTransactionListPage-LU0QMdSV-BPGsYfzN.js} +7 -7
- package/dist/assets/{DomesticWireDetailsPage-CpwSOc_0-CElrVONi.js → DomesticWireDetailsPage-CFt5GgZ1-DPIozVv0.js} +1 -1
- package/dist/assets/{DownloadOverlay-Dhib22Hz-D3Lt9Smx.js → DownloadOverlay-CH_bA3On-JFXgpsko.js} +11 -11
- package/dist/assets/{DrawerPage-nxxj86nQ-CJOa9BEO.js → DrawerPage-Cpdp-IFb-6O8ALZwh.js} +14 -14
- package/dist/assets/EditPeoplePage-BYnuNojX-COJTJTYl.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C2kqq9QP-Bbzp1pVf.js → EditReimbursementDetailPage-DnyyPZ26-CW_m0PAT.js} +73 -73
- package/dist/assets/EntityDetailPage-DSfZZ1JW-NbMT0IAK.js +18 -0
- package/dist/assets/{EntitySummarySection-C29GLBzF-CWqpKadr.js → EntitySummarySection-BFpgAYAM-CKlhnXLV.js} +8 -8
- package/dist/assets/{ExpenseAutomationOverviewPage-B4kcx-VG-CGPR3A1h.js → ExpenseAutomationOverviewPage-YjOVm_Bw-BDJuPgHE.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-DNwnoyPg-DCSz-PUa.js → ExpenseAutomationPage-DlhH-R-e-DCW88pdW.js} +285 -295
- package/dist/assets/{ExpressPayPage-K-InpYtZ-DIVfrk0c.js → ExpressPayPage-CKqPEfbR-pk0o4BxB.js} +21 -21
- package/dist/assets/{FeaturePreviewPage-IsRBHkoD-e3f7mixU.js → FeaturePreviewPage-Cs1Y3nP0-BgQT4DqF.js} +2 -2
- package/dist/assets/{FollowStepsSection-ClyCs5f_-Dx038WgT.js → FollowStepsSection-BCyL8Jdr-CPpGgHn-.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-n8XrBXXp-BZl-OsOG.js → GlobalReviewListPage-CBQFcVHd-XH4CFBRM.js} +16 -16
- package/dist/assets/{InformationCardStack-BnOF2kCh-C7gNsonq.js → InformationCardStack-nFMetrAy-CMfT3sbg.js} +6 -6
- package/dist/assets/{InsightsCardStack-Bgzkang3-CA8GAaRZ.js → InsightsCardStack-CEMeGJXy-DkdJ-vVc.js} +9 -9
- package/dist/assets/InsightsSection-BYiN2xB7-Tq3IZNKc.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-D1QWrVQw-BXx7A_Fv.js → IntegrationsSettingsPage-BQ7g3a3K-BdOaL4VS.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-DNNEqdWS-B78a52iW.js → InternationalWireSwiftDetailsPage-BHRYsZgm-DSuBLSD4.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CQvYGebF.js +292 -0
- package/dist/assets/{InviteFormPage-C-Io8wxr-DZ679TjD.js → InviteFormPage-BVXte8w8-MDAVTXGi.js} +21 -21
- package/dist/assets/{InvitePageListView-B1PLdKSn-3WJcdIb9.js → InvitePageListView-DFPyLLrA-CONqmQCs.js} +55 -55
- package/dist/assets/InvitePeoplePage-B-uxjkke-6b_Qz0Yf.js +12 -0
- package/dist/assets/InvoiceUploadSection-B9q7nIs0-DhF51Ukp.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CC6D-uPl-dzV4_AJm.js → IssueChargeCardPage-BuLj1bOl-DtlAMUV4.js} +15 -15
- package/dist/assets/{LabeledAddressValue-CKZJgaV5-cxiw5XUU.js → LabeledAddressValue-D2t8ti-C-Z0RI74Eh.js} +2 -2
- package/dist/assets/LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-N1wb0l0p-Dc3bkr-e.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPIIBKMF.js} +13 -17
- package/dist/assets/LabeledDocumentField-Bx1u7vv_-DaqPO373.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js +59 -0
- package/dist/assets/{LabeledText-DiJE8avC-CseM5wCJ.js → LabeledText-zjKn4Cw--WpJNibWz.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLup6THe-B8wjUmse.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-l_A9LTk7.js} +20 -20
- package/dist/assets/{LabeledZeniRolesDropDownField-CVg9PTpl-CmXvnZ1S.js → LabeledZeniRolesDropDownField-DiBtAWQ3-_N52HAlB.js} +33 -33
- package/dist/assets/{LinkJETransactionPage-DaGHGCIJ-ZPmKuaes.js → LinkJETransactionPage-D66bzDh_-B4JreFf6.js} +8 -8
- package/dist/assets/{LockCardPage-CGYlmPkB-BpMPFgRW.js → LockCardPage-B1g2TZWL-hWz0sEAN.js} +22 -22
- package/dist/assets/{LowBalancePopup-YJW7eKud-C5-4WX6d.js → LowBalancePopup-DbtHeVY--8cU4w1E0.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-7knh_ltw.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-ESO2QI-z.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-COXCHYYI-DrkXHgBT.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-J3sKHPD3.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-BkxuITX--B7psstiC.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CCF7Ahgh-BraYyP_S.js → MagicLinkTitleSection-CqkZ9wOf-BR_t9OGm.js} +4 -4
- package/dist/assets/MailingDetailsSection-DRFGCM2W-D_ajBet8.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-BJi0owDl-C6fsBM4C.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-DRRK16jW.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-BWIla-hh-BQ4ym9Ei.js → MyPendingActivationChargeCardListPage-BffxXDZg-DDMywOmd.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-DrsAlesY-CW5UQDbf.js +85 -0
- package/dist/assets/{NavBarWithPicker-BGZvvByA-4hcBX9YX.js → NavBarWithPicker-C4VfP_Kw-BlN6D07W.js} +5 -5
- package/dist/assets/{NavigationArrow-C3pN6F3u-tAd2nukx.js → NavigationArrow-DCCxx6H7-HhnIS8HH.js} +7 -7
- package/dist/assets/{NavigationDots-D1rJnVkZ-DI_AwSe8.js → NavigationDots-tWCw6Bpk-Mo0z1mhF.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-DU2Z_NYb-CczYC_Cy.js → NewGlobalMerchantPage-UIA8zAjd-D_Ilslhf.js} +12 -12
- package/dist/assets/{NoDataChart-DuEsebs4-BQTTXvg9.js → NoDataChart-Bvetk9za-Dz6Kgiua.js} +2 -2
- package/dist/assets/NoDataTable-9xF1_3XS-gmK0ApJv.js +8 -0
- package/dist/assets/{NotFoundPage-DLtikmoi-CJn1LsuA.js → NotFoundPage-CdH-3upl-BWvfv-me.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-DwsCKyVM-AIL1SOh9.js → NotificationSettingsPage-DP2gGIz1-CAx-Ob95.js} +12 -12
- package/dist/assets/{NotificationsListConfig-CMtBeX4D-Dg29H_7b.js → NotificationsListConfig-DG-DH2Aj-B1EWk1B7.js} +1 -1
- package/dist/assets/{NotificationsPage-CZrXzWli-9C2iwOMz.js → NotificationsPage-CgFMmR2X-DW2MYafR.js} +24 -24
- package/dist/assets/{OpExByVendorPage-0PLAOQu5-DLLDMhgS.js → OpExByVendorPage-eUvIAWzt-J9dFs64l.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-CRh-4TRn.js +11 -0
- package/dist/assets/{PandLWithForecastPage-PkrBqcAR-Djqg6ntv.js → PandLWithForecastPage-8S06Nyi5-Bs1OiKUY.js} +11 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-CgW6kWBO.js +107 -0
- package/dist/assets/PeoplePage-D1BLHtO0-Cm2cmSqy.js +675 -0
- package/dist/assets/{Preview-DaDKYAzg.js → Preview-CyX-vurX.js} +1 -1
- package/dist/assets/{ProductsCarousel-fMS3PJAc-r1K9Xxoj.js → ProductsCarousel-BKSXWnFR-BT4vvSaJ.js} +5 -5
- package/dist/assets/{PromoBaseCards-HY42c1kU-DSpx7Fy3.js → PromoBaseCards-BYT9nEJT-1c2PW57m.js} +17 -17
- package/dist/assets/{QBOConnectionDialog-B_AOC_hG-BSWcu79k.js → QBOConnectionDialog-C2-omQMZ-CW3-Jgl1.js} +3 -3
- package/dist/assets/{QBOSetupSection-CQHdqpJF-CH_S6Ewi.js → QBOSetupSection-lgv5wVlg-Db43UmDc.js} +16 -16
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D0oeO5MZ-95x-7hZW.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-DEQyVs-F.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-Beg7ljMA-Cr4MOQVc.js → ReimbursementApprovalRulesPage-BuNt-Bmb-qkoyA-iD.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-DBxKNhum-DE3tfEga.js → ReimbursementDetailPage-CK3-Jqkd-ComGCWG4.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-DxZeTOQW-CNGgL2HL.js → ReimbursementPromoPage-fptOAJna-UPQyz9k9.js} +20 -20
- package/dist/assets/{ReimbursementSetUpPage-CN4LhFrS-BfRZlJ5w.js → ReimbursementSetUpPage-CidrpT2g-C4LYSo0t.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage--6OUmjzW-D3GoPfdC.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DbKZBLTq.js} +1 -1
- package/dist/assets/{ReloadCard-BluhBNO--D0eilzgR.js → ReloadCard-C81rGzOp-DY4k84ea.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-8KYimU0G-YYB33_Xu.js → ReportTableViewSelector-neRSjrhV-C6WBlOcq.js} +9 -9
- package/dist/assets/{ReportsPage-D-UfdQ34-CNx_b_ly.js → ReportsPage-BhzQVaer-B4A4M4e5.js} +1 -1
- package/dist/assets/{RevenueChart-C9EztEKi-BbW9YFNy.js → RevenueChart-x7uTbFlm-CNwMod8g.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-B6SYtYUA-d0bXCGW4.js → ReviewDetailsPage-jXZCylzg-BIFUDhZH.js} +31 -31
- package/dist/assets/{ReviewOverlay-C2enVZqt-C_vH9CpL.js → ReviewOverlay-nlm2HnGw-9bQU05T1.js} +18 -18
- package/dist/assets/RoleWithToolTip-C29QOzxS-BIz3hnmq.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DmBVVX79-6-1NS4t6.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-BgCHEx2z.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-Bp3d9tdD-Ct_0Fci8.js → ScheduleDetailsPage-BSZefKOh-6HOYgX85.js} +8 -8
- package/dist/assets/ScheduleSequenceTable-BW5M7Zfq-Cc7Psi6L.js +324 -0
- package/dist/assets/{ScreenRoutes-CvjimsD0.js → ScreenRoutes-DOxgrmyz.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DiEFZwFL-DC1aQ-pj.js → SetUpAccountSection-C703iFL6-DWHc95vH.js} +5 -5
- package/dist/assets/SignIn-D9K5FklU-C-Fq_guN.js +491 -0
- package/dist/assets/SignInScreen-pGoo9woj.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BoWIPx5V-DXR-HLOL.js → SpendManagementListViewPage-CBNtC74m-DqpxdGQ6.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-DRrECrxC-dCEqiObE.js → SpendManagementPerTabPage-D_sa7WRd-CzMD5xEZ.js} +25 -25
- package/dist/assets/{SpendManagementSection-xoH8d-PB-6nPhw1xu.js → SpendManagementSection-DpZUTV6m-Dyv3RP83.js} +23 -23
- package/dist/assets/StatementItem-DvdSsb8I-4NJSevH0.js +31 -0
- package/dist/assets/StatementsPage-73jGj5P2-DfWSq1-t.js +58 -0
- package/dist/assets/{StatusSwitcher-C-2QxP_3-DVOlvAn4.js → StatusSwitcher-hKYgwNLC-CE1foddz.js} +2 -2
- package/dist/assets/{SubTabSwitcher-D3iTZY-F-CSjMFn8K.js → SubTabSwitcher-aeDd9xiF-D4uOjs0t.js} +2 -2
- package/dist/assets/{SummaryCard-BbzDLzif-jCXiXuPT.js → SummaryCard-CK8Gxbiu-DemkEVCq.js} +1 -1
- package/dist/assets/{TaskManagementPage-DI_lMbra-CdUdFSOY.js → TaskManagementPage-D2Ooq8DR-DrMY4gdr.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js → TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-C8iVJfJz-B35AQLzW.js → TimeframeSwitcher-BppC6giF-D-wC9bQx.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js +31 -0
- package/dist/assets/{TopExCard-DlberdWy-AXYKUOGt.js → TopExCard-Cy6tPVSx-B-keVDu8.js} +6 -6
- package/dist/assets/{TopExDetailPage-DZyUPQ9i-kejvgUv1.js → TopExDetailPage-Rtrcdkcp-BJDfbujg.js} +11 -11
- package/dist/assets/{TransactionActivityLogPage-Bpdbc21v-DQ1FP9jB.js → TransactionActivityLogPage-DbwSsjPJ-BIwIVqy-.js} +15 -15
- package/dist/assets/TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js +903 -0
- package/dist/assets/TransactionList-BruCNjQg-CPy3bOrg.js +153 -0
- package/dist/assets/{TransactionListBig-D6Q9QimF-DjvcRG58.js → TransactionListBig-bp7q3prH-B3o9La4k.js} +13 -13
- package/dist/assets/TransactionListPage-ZfJsaVb8--vXsSJCl.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-B4A4amjV-rbnaqzN7.js → TransactionVendorDetailPage-CldkuO2--QReUEWYz.js} +7 -7
- package/dist/assets/{TransferDrawerPage-Dfhpu5Yd-D-lZQHfG.js → TransferDrawerPage-DswS6KZf-BpK3RBCC.js} +27 -27
- package/dist/assets/{TreasuryOverviewPage-B6WhqRDb-BYZSOn3C.js → TreasuryOverviewPage-DWo7iRpO-gYNjYUSH.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-C5DXueHJ-DvuJR2wv.js → TreasuryPromoPage-DQxCF3-4-BI9m1Cpo.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-8qXJLq1U-C7VbrxO2.js → TreasuryStatementsPage-CYkPtmaT-BgyV-fq7.js} +2 -2
- package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-Dyk_wpPB.js +58 -0
- package/dist/assets/{TrendChart-FPLC1aMv-BpKn1lA4.js → TrendChart-BMHDaOeh-DUFeSEwp.js} +3 -3
- package/dist/assets/{TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js → TrendWithTransactions-DDLrmIrt-D7YkaYJE.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-rdMygvxx-CB5luTSv.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-DxcmP_9M.js} +22 -22
- package/dist/assets/{UnitIntegrationPage-WfFukh9_-Db1kSxll.js → UnitIntegrationPage-DPMy8dXP-Ds2V7iqZ.js} +11 -11
- package/dist/assets/{UploadAdditionalDocumentOverlay-xiqklxM_-C-ghpumD.js → UploadAdditionalDocumentOverlay-BHpT2al--Bh-cR8rL.js} +1 -1
- package/dist/assets/Vendor2FAPopup-C6gEOhUv-DnLG0jax.js +1 -0
- package/dist/assets/VendorACHDetailsPage-LNCcubjL-BnzYtLeS.js +1 -0
- package/dist/assets/{VendorDetailPage-Cexet52V-fximdJ6Q.js → VendorDetailPage-BC1FhaQA-BTYI8FHa.js} +25 -25
- package/dist/assets/{VendorDomesticWireDetailsPage-DbhChvIp-Cn8HKuB3.js → VendorDomesticWireDetailsPage-CLudahOt-DWedRRGC.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Bnwp2JiZ-B1voyhYV.js → VendorFiling1099EditablePage-DYyPOA8D-SaXokDu7.js} +38 -38
- package/dist/assets/{VendorFirstReviewPage-C_xSf47L-YlGbjVwi.js → VendorFirstReviewPage-Cpmk7rDk-CLDuk2Z1.js} +37 -37
- package/dist/assets/{VendorInternationalWireDetailsPage-DVuenbq8-CpmeIHQG.js → VendorInternationalWireDetailsPage-CWAWq6kq-BqWv0FEj.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Cnhhvl1i.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js → VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js} +2 -2
- package/dist/assets/{VerifyDevice-MbuunHNJ-0NsL1ICM.js → VerifyDevice-CfMJW1Vh-CQyEdsek.js} +9 -9
- package/dist/assets/{VideoPlayer-B-oV4gcS-IlmjYyud.js → VideoPlayer-BNBpjXJk-S1NV6cBn.js} +2 -2
- package/dist/assets/{VideoPopup-DFfn4tne-e-69xGLM.js → VideoPopup-BF6lmB7l-C8AjwQYx.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-C_nKfBpS-CgVWLVpY.js → WarningsDrawerPage-Crj70lnR-CqPc_yNz.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-jYwDoLiN-C9ExO4Jo.js → ZeniAccountDetailPage-CaA6m3tQ-BxjiYTPx.js} +12 -12
- package/dist/assets/{ZeniAccountListViewPage-CWiWh2ld-BsZ-NitY.js → ZeniAccountListViewPage-x_51gDs1-BURzAUSX.js} +9 -9
- package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-Dtq04dNH.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-DPab5PDZ-CdBoWbQ6.js → ZeniAccountPromoPage-lxKBk2r5-B3car8p6.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-Dbqa1LpU-DR-JNx31.js → ZeniAccountSetupPage-DUI4-2Zw-CqTcY3yC.js} +1 -1
- package/dist/assets/{ZeniCopyright-SDIPg48K-6zG7DJUz.js → ZeniCopyright-DxEZ4DiK-Bx5L4V4v.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bg59KBt9-PXMuIYqh.js → ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-4MTVGYLk.js → add-to-wallet-DgdBD8_G-Ckn7-tS3.js} +1 -1
- package/dist/assets/{analytics-DkApCpAh.js → analytics-DgE91yP9.js} +1 -1
- package/dist/assets/{analyticsHelper-DfCXurTN-CSH8s8BS.js → analyticsHelper-CL-t3Y2i-DqLgDKAm.js} +1 -1
- package/dist/assets/analyticsHelper-qCgSbR3t.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-sjXlUHVP.js → arrow-south-east-round-PEovUgvH-6_ok8u4n.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-8P5UKTjR.js → auto-transfer-rule-mbafm5D3-DaMjzKK3.js} +1 -1
- package/dist/assets/{chartTypes-H306f0ce-DSh0OTeZ.js → chartTypes-B3501CSI-Eia1dEGg.js} +1 -1
- package/dist/assets/{commonDimensions-CWffpElu-DyTXC1xY.js → commonDimensions-YcBBlmYP-HRUAmifl.js} +1 -1
- package/dist/assets/{constants-42un7CRh.js → constants-DU2Tv8MD.js} +1 -1
- package/dist/assets/{core-DQ8U4CJb.js → core-CEu4PzGb.js} +1 -1
- package/dist/assets/{dash.all.min-xDoItceu.js → dash.all.min-wN4tXsVF.js} +1 -1
- package/dist/assets/{detailCommon-CfrL4ryy-K2hvWKyD.js → detailCommon-C19MYPnq-B5eEk_1Z.js} +2 -2
- package/dist/assets/downloadPdf-DPAqxw6u-DccTm81d.js +1 -0
- package/dist/assets/{empty-DBMIDect.js → empty-CarmpCiV.js} +1 -1
- package/dist/assets/{empty-DMdKDWd5.js → empty-SBaJLmT7.js} +1 -1
- package/dist/assets/epic-jB8ji6P2.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CKZgCX5V.js → gift-box-Cmt9OgIZ-Cfao5pzw.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-B74xUk4A.js → graphic-no-data-l-DU4J8fDt-CtMgv3E2.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js → graphic-no-data-net-burn-l-CzmycA0m-CxhhGXfI.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-ci6EVnAm.js → handshake-BPg58FML-Cr0KvGET.js} +1 -1
- package/dist/assets/{index-DlHdI3-w.js → index-C65pc_ms.js} +1 -1
- package/dist/assets/{index-Ci8_ElRT.js → index-CM4tXRl_.js} +1 -1
- package/dist/assets/{index-uFwLgEj2.js → index-CTIRcS5n.js} +1 -1
- package/dist/assets/{index-CP7n6qbn.js → index-DdSqYqAO.js} +1 -1
- package/dist/assets/{index-MLR605z1.js → index-DotN2qpo.js} +1 -1
- package/dist/assets/{index-BIYLqgct.js → index-GSKpJ8ET.js} +4076 -4065
- package/dist/assets/{index-C-yZdmSC.js → index-qEET5oej.js} +1 -1
- package/dist/assets/{lexical-CvUIM9vD.js → lexical-CnqcqOEB.js} +1 -1
- package/dist/assets/{liveblocks-DXGUxn7J.js → liveblocks-D1OOExFG.js} +1 -1
- package/dist/assets/{lottie-C1yptpVV.js → lottie-fNTw06NH.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Blr3egSm-C65_6eW3.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-D-fvMaDb.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js +1 -0
- package/dist/assets/{mui-rLvQ8A4a.js → mui-DenpH-hx.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DxBKGqnW.js → page-detail-CWX5S47F-CMu9po0A.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-D50TMWyl.js → radio-default-CiSgisfh--A7TRB5H.js} +1 -1
- package/dist/assets/{react-CD-rvAYw.js → react-B5LP5NK7.js} +1 -1
- package/dist/assets/{react-XCvfp0dN.js → react-BGO_hhif.js} +1 -1
- package/dist/assets/{react-BGRcEI9e.js → react-BNXAqjdV.js} +1 -1
- package/dist/assets/{react-CeXW-10t.js → react-BbEkWrBm.js} +1 -1
- package/dist/assets/{react-D5l7wk4q.js → react-BbsHWhNi.js} +2 -2
- package/dist/assets/{react-CKPzfXiX.js → react-CX4zcxjw.js} +1 -1
- package/dist/assets/{react-CaPJ_R38.js → react-D97zLppZ.js} +2 -2
- package/dist/assets/{react-BFvwO_Qx.js → react-DvuAhc__.js} +1 -1
- package/dist/assets/{recharts-BYppTjSs.js → recharts-9NtTDQfo.js} +1 -1
- package/dist/assets/{sentry-DhNwX3jk.js → sentry-BZBky1_g.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-1dcmCA6e.js → shield-DOlUxcFf-DnxNebOP.js} +1 -1
- package/dist/assets/toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js +1 -0
- package/dist/assets/{toChartData-ILqaSUrn-x9ixmlfa.js → toChartData-DzatRnt8-Cq2-M4CL.js} +1 -1
- package/dist/assets/{uploadAttachment-BO1VJaKW-DrgLpT8c.js → uploadAttachment-Bq8dk-Sm-DirS4o1A.js} +18 -18
- package/dist/assets/{uploadReceipts-Dge0cNF1-BX-9R6_Z.js → uploadReceipts-Dge0cNF1-BKdcUL2b.js} +1 -1
- package/dist/assets/{url-DrmuGGE4.js → url-0W_uXmZ-.js} +1 -1
- package/dist/assets/{url-C7FJoqre.js → url-Z1gMB4SW.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-nce713S8.js → useLongPress-GCK2COYQ-B8bxkfF-.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BIn3NV9C.js → usp-line-BBd1wKwW-BPsPtX_C.js} +1 -1
- package/dist/assets/{utils-BdIPH7k8.js → utils-CHibiken.js} +1 -1
- package/dist/assets/{zeni-epic-state-DwkN4IvA.js → zeni-epic-state-BKgIzPpM.js} +18 -18
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-Davpg8eW-BWDILC-H.js +0 -21
- package/dist/assets/AccountInfoPage-Cefnidcc-Bp5rUTr8.js +0 -18
- package/dist/assets/AccountLockedInfoModal-BdFY6p56-RTWbIB_l.js +0 -59
- package/dist/assets/AccountRow-DHB-ETil-0INUiG8Z.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CnCLxax6.js +0 -6
- package/dist/assets/AppBasePage-tDs92z31-B3gR6k96.js +0 -71
- package/dist/assets/BillingSettingsPage-BjMeQKM0-CpnNOiGS.js +0 -44
- package/dist/assets/BusinessVerificationPage-LKrdd6Ej-BKb49OWB.js +0 -138
- package/dist/assets/ChargeCardStatementsPage-C82CsaNY-DzvzbShn.js +0 -60
- package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-mf8toy40.js +0 -331
- package/dist/assets/CompanyPassportPage-IjpU53y_-BF5RjsoV.js +0 -417
- package/dist/assets/ConfettiBurst-C_6Uy7eR-Np_3vQFo.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-CnaDFGWF.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-BSZV9BI0.js +0 -66
- package/dist/assets/CustomerOnboardingPage-Bl2oAvin-B7GmsFRo.js +0 -107
- package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-y0LRofZR.js +0 -12
- package/dist/assets/EditPeoplePage-CG5gmNTR-CH2Xt3X8.js +0 -55
- package/dist/assets/EntityDetailPage-CL0FCU_m-BGtD2JCX.js +0 -18
- package/dist/assets/InsightsSection-C16f1RZL-BLvjZ1kW.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-DwVwtiyi.js +0 -65
- package/dist/assets/InvitePeoplePage-BArxsNxE-BXI3n59t.js +0 -12
- package/dist/assets/InvoiceUploadSection-Eo7dq75t-C9QkPoGX.js +0 -140
- package/dist/assets/LabeledAddressValueField-DNGOSAvq-BXE6xS8k.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DgWr30M7.js +0 -237
- package/dist/assets/LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DrhnwOAX.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-ByYEbu_t.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bvcp-odv.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-CSa0Vcf2.js +0 -31
- package/dist/assets/MailingDetailsSection-WMvjKFiS-C1_EkXyZ.js +0 -21
- package/dist/assets/MyProfileSettingsPage-B0uYhezS-DbNVKwps.js +0 -85
- package/dist/assets/NoDataTable-B7LkfAQX-CdTNbZgo.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-D2G-CVv7.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-Du1LULBI.js +0 -107
- package/dist/assets/PeoplePage-PyWOVc5M-DILaV4hT.js +0 -727
- package/dist/assets/RoleWithToolTip-DA3BIg5j-DG-Lih0N.js +0 -22
- package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js +0 -324
- package/dist/assets/SignIn-T74bkrxk-ptxkK8PP.js +0 -491
- package/dist/assets/SignInScreen-BYcec7re.js +0 -1
- package/dist/assets/StatementItem-BthXwXFQ-j2l7jY5v.js +0 -31
- package/dist/assets/StatementsPage-FmjXzQ3g-oWNeSYKv.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js +0 -31
- package/dist/assets/TransactionDetailPage-CaRcJukf-CnifEZvn.js +0 -903
- package/dist/assets/TransactionList-BAziC6eS-6qNOgl8E.js +0 -153
- package/dist/assets/TransactionListPage-Ce_lSS6C-YqGl74XY.js +0 -35
- package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-xsnS5RHz.js +0 -58
- package/dist/assets/Vendor2FAPopup-DK98Bntc-CHLdTtz5.js +0 -1
- package/dist/assets/VendorACHDetailsPage-Bxo11l9N-DiVKko5M.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-CvXAX7v6.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BhUfl-Q9.js +0 -14
- package/dist/assets/analyticsHelper-DAh0LrcL.js +0 -1
- package/dist/assets/commonTypes-DP3nDhtI-D-fLD29s.js +0 -1
- package/dist/assets/downloadPdf-C1zKY9Rq-Bj2M-x0n.js +0 -1
- package/dist/assets/epic-av5bi8Jm.js +0 -2
- package/dist/assets/helper-Byvbf3nO-BTmT7Zux.js +0 -223
- package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BCRaNO17-Byu958vH.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +0 -3
- package/dist/assets/toCOABalancesWithID-BDzeodcz-CM7cQRcs.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as ee,J as de,ce as xe,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-GSKpJ8ET.js";import{a as u,P as ue}from"./sentry-BZBky1_g.js";import{n as d}from"./mui-DenpH-hx.js";import{R as D,I as Te}from"./CollapsableReportTable-DlYIKSlQ-CcB96aJz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="36bba480-ad87-4ffb-8814-c8f9afe07f35",e._sentryDebugIdIdentifier="sentry-dbid-36bba480-ad87-4ffb-8814-c8f9afe07f35")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -9,10 +9,10 @@ import{d as ee,J as de,ce as be,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as
|
|
|
9
9
|
position: relative;
|
|
10
10
|
height: ${n.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
|
-
`,Me=d(
|
|
12
|
+
`,Me=d(Oe)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
14
14
|
margin-top: -2px;
|
|
15
|
-
`,Re=d(
|
|
15
|
+
`,Re=d(Fe)`
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
width: 12px;
|
|
18
18
|
height: 12px;
|
|
@@ -20,17 +20,17 @@ import{d as ee,J as de,ce as be,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as
|
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function
|
|
23
|
+
`,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function Ye({backgroundColor:e,foregroundColor:r,animated:a,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:a,parentNodeIDs:t}){const l=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function We(e,r){const a=e.map((t,l)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...a]}}function He(e,r){Object.assign(e.config,r);const a=e.contentNodes;return a.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...a]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(a=>fe(a,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},Ge=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,
|
|
26
|
+
`,Ue=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:F})=>{const z=ee(),Y=de(),[v,j]=u.useState(void 0),[A,w]=u.useState(!1),[L,T]=u.useState({}),[m,M]=u.useState(void 0),[B,k]=u.useState(l),W="none",E=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),T(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=H(c);for(const b of g.children)F?.(b.classId,i),$(b.classId,i)},H=c=>{let i=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(b=>b.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=H(c.slice(1));let g=!1;for(const b of i.children)if(t.find(U=>U[0]===b.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),T(i.classId)}};u.useEffect(()=>{A&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:W,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if(v==null||!X(m,a)||!X(B,l)||A===!0){const i=We(a,c);M(a),j(i),k(l)}else{const i=He(v,c);j(i),k(l)}},[a,l,t]);const[J,K]=u.useState(5),Z=c=>{const i=c+f[6];K(i)};return v!=null?o.jsx(Ge,{height:J,children:o.jsx(Te,{backgroundColor:l==="classes"?new De(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(Y),right:se.contentPaddingRight.value(Y)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:I,onReportTableHeightChanged:Z})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},qe=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
|
-
`,
|
|
29
|
+
`,Je=d.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
width: ${e=>C.containerWidth.valuePx(e.windowSize)};
|
|
33
|
-
`,
|
|
33
|
+
`,Ke=d(je)`
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: row;
|
|
36
36
|
width: fit-content;
|
|
@@ -47,7 +47,7 @@ import{d as ee,J as de,ce as be,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as
|
|
|
47
47
|
gap: ${n.sp2};
|
|
48
48
|
margin-top: 12px;
|
|
49
49
|
align-items: center;
|
|
50
|
-
`,
|
|
50
|
+
`,Ze=d(Ie)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
52
52
|
width: ${n.sp4};
|
|
53
53
|
height: ${n.sp4};
|
|
@@ -147,4 +147,4 @@ import{d as ee,J as de,ce as be,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as
|
|
|
147
147
|
margin-left: ${n.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:
|
|
150
|
+
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:q,downloadPage:F,showAccountGroups:z=!0,onResyncReports:Y,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const A=ee(),w=de(),[L,T]=u.useState(!1),[m,M]=u.useState(l),[B,k]=u.useState({}),W=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=W(x.children,p)}),p),E=W(a,[]),[I,$]=u.useState(m==="classes"?h:E),H=t!=="Completed"||m==="classes"&&I.length===E.length,G=u.useRef(!1),[J,K]=u.useState(!1),Z=u.useRef(s=>{s&&!G.current&&(G.current=!0,K(!0))});xe({componentName:`reports.${e}`,enabled:J});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{T(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),b=s=>{if(M(s),s==="classes")k({}),$([]);else{$(E);let p={};a.forEach(x=>{const S=D("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},U=()=>{L===!0&&Q(),T(!L);let s={};a.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),k(s)},me=(s,p,x)=>{if(x===!0&&(M("classes"),$(E)),p===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,k(B),$(R=>R.filter(be=>be[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{T(!1),M(l),$(h)},ge=()=>{v===!1&&Y?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(qe,{ref:Z.current,isDisabled:q??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),U()}}):o.jsxs(Je,{windowSize:w,children:[o.jsxs(Ke,{onClick:s=>{s.preventDefault(),_?.(),U()},children:[o.jsx(Ze,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ae,{checked:m==="account_group",children:o.jsxs(ne,{onClick:()=>m!=="account_group"?b("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>b(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ae,{checked:m==="classes",children:[o.jsxs(ne,{onClick:()=>t==="Completed"?b("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?b(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(ao,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(no,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:B,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(Ye,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:H,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const no=ue.memo(Ue,X);export{ho as g,uo as x};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,d as G,F as y,ax as ge,V as r,bP as _e,ab as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,w as A,aF as K,O as xe,aW as Oe,at as Re,bM as Ae}from"./index-BIYLqgct.js";import{a as L,P as X}from"./sentry-DhNwX3jk.js";import{n as _}from"./mui-rLvQ8A4a.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Te,F1 as Le,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-DwkN4IvA.js";import{m as z,l as q}from"./analyticsHelper-DfCXurTN-CSH8s8BS.js";import{x as Ne}from"./ReportTableViewSelector-8KYimU0G-YYB33_Xu.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Dhib22Hz-D3Lt9Smx.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-CncMWpFI-CnBbDhbn.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";import"./TimeframeSwitcher-C8iVJfJz-B35AQLzW.js";import"./page-detail-CWX5S47F-DxBKGqnW.js";import"./AccountRow-DHB-ETil-0INUiG8Z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cd720657-418e-4817-b701-003792329703",e._sentryDebugIdIdentifier="sentry-dbid-cd720657-418e-4817-b701-003792329703")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]: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.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,e as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,x as A,aE as K,w as xe,aW as Oe,as as Re,bM as Ae}from"./index-GSKpJ8ET.js";import{a as L,P as X}from"./sentry-BZBky1_g.js";import{n as _}from"./mui-DenpH-hx.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Te,F1 as Le,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-BKgIzPpM.js";import{m as z,l as q}from"./analyticsHelper-CL-t3Y2i-DqLgDKAm.js";import{x as Ne}from"./ReportTableViewSelector-neRSjrhV-C6WBlOcq.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-CH_bA3On-JFXgpsko.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-DlYIKSlQ-CcB96aJz.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./TimeframeSwitcher-BppC6giF-D-wC9bQx.js";import"./page-detail-CWX5S47F-CMu9po0A.js";import"./AccountRow-aEmcYP8T-NzxiJ7E0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="96c11478-8e62-4faa-be1d-1820211a4364",e._sentryDebugIdIdentifier="sentry-dbid-96c11478-8e62-4faa-be1d-1820211a4364")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]: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.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-GSKpJ8ET.js";import{a as P,P as ee}from"./sentry-BZBky1_g.js";import{n as x}from"./mui-DenpH-hx.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-B3501CSI-Eia1dEGg.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js";import{V as Z}from"./toChartData-DzatRnt8-Cq2-M4CL.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-9NtTDQfo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3fff1f3b-a767-4306-bfd6-52a19bc61952",e._sentryDebugIdIdentifier="sentry-dbid-3fff1f3b-a767-4306-bfd6-52a19bc61952")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -29,7 +29,7 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
29
29
|
text-align: left;
|
|
30
30
|
`,Ze=x(R)`
|
|
31
31
|
text-align: right;
|
|
32
|
-
`,
|
|
32
|
+
`,Qe=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const c=b("cash_in","actual"),s=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?c:i.length>0?s:void 0,d={};return d[c]=l,d[s]=i,d[f]=h,p!=null?Z(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
|
|
33
33
|
width: ${e=>e.width}px;
|
|
34
34
|
height: ${e=>e.height}px;
|
|
35
35
|
|
|
@@ -42,7 +42,7 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
42
42
|
`,oa=x(ge)`
|
|
43
43
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
|
-
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=[c.colors.graphColor33,c.colors.graphColor36,c.colors.graphColor35],p=(_,w=c.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!s.current;_.push(a.jsx(ce,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};s?.(d[v],r,S)},L=c?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(
|
|
45
|
+
`;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=[c.colors.graphColor33,c.colors.graphColor36,c.colors.graphColor35],p=(_,w=c.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!s.current;_.push(a.jsx(ce,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};s?.(d[v],r,S)},L=c?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
`,na=x.div`
|
|
48
48
|
flex: display;
|
|
@@ -60,7 +60,7 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
60
60
|
`,ca=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=ca(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(sa,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Z(e,r,o,l):void 0},da=x.div`
|
|
61
61
|
width: ${e=>e.width}px;
|
|
62
62
|
height: ${e=>e.height}px;
|
|
63
|
-
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!s.current;d.push(a.jsx(ce,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:c.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};s?.(p[k],r,j)},C=c?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(
|
|
63
|
+
`,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!s.current;d.push(a.jsx(ce,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:c.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};s?.(p[k],r,j)},C=c?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
`,ma=x.div`
|
|
66
66
|
display: flex;
|
|
@@ -119,16 +119,16 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
119
119
|
display: flex;
|
|
120
120
|
flex-direction: column;
|
|
121
121
|
text-align: right;
|
|
122
|
-
`,je=x(
|
|
122
|
+
`,je=x(F)`
|
|
123
123
|
text-align: right;
|
|
124
|
-
`,H=x(
|
|
124
|
+
`,H=x(F)`
|
|
125
125
|
text-align: right;
|
|
126
126
|
flex: 1;
|
|
127
127
|
color: ${e=>e.isChange!=null&&e.isChange===!0?g.important:null};
|
|
128
|
-
`,ve=x(
|
|
128
|
+
`,ve=x(F)`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
|
-
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),c=b("cogs","actual"),s=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case c:case s:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:
|
|
131
|
+
`,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),c=b("cogs","actual"),s=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case c:case s:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],c=[],s=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(c=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:c.length>0?d:s.length>0?y:void 0,C={};return C[p]=h,C[d]=c,C[y]=s,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Z(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const c=b("income","forecast"),s=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[c]=o,d[s]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
|
|
132
132
|
width: ${e=>e.width}px;
|
|
133
133
|
height: ${e=>e.height}px;
|
|
134
134
|
|
|
@@ -141,7 +141,7 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
141
141
|
`,Ta=x(ge)`
|
|
142
142
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
143
143
|
color: ${e=>e.theme.colors.primary};
|
|
144
|
-
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor36,s.colors.graphColor06,s.colors.graphColor31,s.colors.graphColor12],d=[s.colors.graphColor04,s.colors.graphColor10,s.colors.graphColor32,s.colors.graphColor13,s.colors.graphColor04Dark,s.colors.graphColor10Dark,s.colors.graphColor32Dark,s.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=s.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(
|
|
144
|
+
`;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor36,s.colors.graphColor06,s.colors.graphColor31,s.colors.graphColor12],d=[s.colors.graphColor04,s.colors.graphColor10,s.colors.graphColor32,s.colors.graphColor13,s.colors.graphColor04Dark,s.colors.graphColor10Dark,s.colors.graphColor32Dark,s.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=s.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
`,Ia=x.div`
|
|
147
147
|
flex: display;
|
|
@@ -186,16 +186,16 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
186
186
|
flex-direction: column;
|
|
187
187
|
padding: ${m.sp3};
|
|
188
188
|
background-color: ${e=>e.theme.colors.black};
|
|
189
|
-
`,
|
|
189
|
+
`,Va=x(R)`
|
|
190
190
|
text-align: left;
|
|
191
191
|
width: 162px;
|
|
192
|
-
`,q=x(
|
|
192
|
+
`,q=x(F)`
|
|
193
193
|
text-align: right;
|
|
194
194
|
flex: 1;
|
|
195
|
-
`,
|
|
195
|
+
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(c=>c.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let c;if(t.includes("forecast")!==!0){c=l.record[t]!=null?Ha(t,l):void 0;const s={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(s.amount+=l.record[p].amount?.amount??0,s.currencyCode=C!=null?C.currencyCode:s.currencyCode,s.currencySymbol=C!=null?C.currencySymbol:s.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((s?.amount-f?.amount)*100/100),y={...s,amount:d},_=f.amount!==0?Math.floor((s.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:c,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:s,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Za=ee.memo(Ua),Qa=(e,r)=>{const t=[],n={};let o;return r!=null&&r.classes.length!=0&&r.classes.forEach(l=>{const i=G(l.class.className,"actual",l.childrenBalancesTotal),h=b(l.class.className,"actual");n[h]=i,t.push(h),o==null&&i.length>0&&(o=b(l.class.className,"actual"))}),o!=null?Z(e,t,o,n):void 0},De=[g.graphColor34,g.graphColor05,g.graphColor08,g.graphColor11,g.graphColor13,g.graphColor19,g.graphColor29,g.graphColor28,g.graphColor20,g.graphColor21,g.graphColor22,g.graphColor14,g.graphColor35,g.graphColor31,g.graphColor33,g.graphColor32,g.graphColor36,g.graphColor02,g.graphColor06,g.graphColor04,g.graphColor10,g.graphColor12,g.graphColor15,g.graphColor18,g.graphColor17,g.graphColor07,g.graphColor34Dark,g.graphColor05Dark,g.graphColor08Dark,g.graphColor11Dark,g.graphColor13Dark,g.graphColor19Dark,g.graphColor29Dark,g.graphColor28Dark,g.graphColor20Dark,g.graphColor21Dark,g.graphColor22Dark,g.graphColor14Dark,g.graphColor35Dark,g.graphColor31Dark,g.graphColor33Dark,g.graphColor32Dark,g.graphColor36Dark,g.graphColor02Dark,g.graphColor06Dark,g.graphColor04Dark,g.graphColor10Dark,g.graphColor12Dark,g.graphColor15Dark,g.graphColor18Dark,g.graphColor17Dark,g.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=g.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(r){const t=Y.instance();return t._barColorsKeyWise.has(r)||(t._barColors.length===0&&(t._barColors=De.slice()),t._barColorsKeyWise.set(r,t._barColors.shift()??t._defaultColor)),t._barColorsKeyWise.get(r)}shouldUpdate(r){const t=Y.instance(),n=Array.from(t._barColorsKeyWise.keys()).sort();return!Ve(n,r)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Ja=Y.instance(),er=(e,r,t)=>{const n=[],o={};let l,i=!1;if(t!=null&&t.accountGroups.length!=0?t.accountGroups.forEach(h=>{const c=G(h.accountGroupName,"actual",h),s=b(h.accountGroupName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const c=G(h.account.accountName,"actual",h.account.balancesInTimeframe),s=b(h.account.accountName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,c=G(h,"actual",t);if(c.length!==0){const s=b(h,"actual");o[s]=c,l=s,n.push(s)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Z(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
|
|
196
196
|
width: ${e=>e.width}px;
|
|
197
197
|
height: ${e=>e.height}px;
|
|
198
|
-
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=P.useRef(!1),[f,p]=P.useState(
|
|
198
|
+
`,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{s.current=!0},[]),P.useEffect(()=>{f.shouldUpdate(w.current)===!0&&p(Y.init())},[]),P.useEffect(()=>{let k=[];if(e.reportId==="operating_expenses"){const v=e.sections.expenses;v.accountGroups.length===0&&v.accounts.length===0?k.push(D.getLocalizedStrings().chartCard.total):v.accountGroups.length!=0?k=v.accountGroups.map(O=>O.accountGroupName).sort():k=v.accounts.map(O=>O.account).map(O=>O.accountName).sort()}else k=e.sections.expenses.classes.map(v=>v.class.className).sort();w.current=k},[e,f]);const C=P.useMemo(()=>e.reportId==="operating_expenses"?er(e.firstMonthOfFY,h,e.sections.expenses):Qa(e.firstMonthOfFY,e.sections.expenses),[e,h]),L=P.useCallback(()=>{const k=u=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(or,{}),activeDot:a.jsx(tr,{}),dataKey:j=>{const S=j.record;let B,z;for(z in S)if(z.endsWith("_forecast")){const E=S[z].amount;E!=null&&(B==null?B={...E}:B.amount+=E.amount)}return B?.amount},stroke:_.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j)=>a.jsx(ce,{name:u,animationDuration:j?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount??0},stackId:"a",fill:f.getBarColor(N(u)),onMouseEnter:()=>{d!==u&&y(u)},onMouseLeave:()=>{d!=null&&y(void 0)}},u),O=[];return C?.orderedKeys.forEach(u=>{const j=!s.current;u.endsWith("_forecast")?O.push(k(u)):O.push(v(u,j))}),O},[C]),$=({active:k,payload:v})=>v?.find(O=>O.name===d)!=null&&d!=null&&k===!0?a.jsx(Za,{active:k,payload:v,mode:h,barName:d}):null;return C==null?null:a.jsx(lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:L(),customToolTipContent:a.jsx($,{}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:d[u].startDate,endDate:d[u].endDate}};s?.(d[k],r,j)},C=c?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Q,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,p)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeWidth:($-60)/W.operating_expenses,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},nr=x.div`
|
|
199
199
|
display: flex;
|
|
200
200
|
`,sr=x.div`
|
|
201
201
|
display: flex;
|
|
@@ -254,16 +254,16 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
254
254
|
display: flex;
|
|
255
255
|
flex-direction: column;
|
|
256
256
|
text-align: right;
|
|
257
|
-
`,Se=x(
|
|
257
|
+
`,Se=x(F)`
|
|
258
258
|
text-align: right;
|
|
259
|
-
`,U=x(
|
|
259
|
+
`,U=x(F)`
|
|
260
260
|
text-align: right;
|
|
261
261
|
flex: 1;
|
|
262
262
|
color: ${e=>e.isChange!=null&&e.isChange===!0?g.important:null};
|
|
263
|
-
`,Be=x(
|
|
263
|
+
`,Be=x(F)`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`,Oe=x(
|
|
266
|
+
`,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const c=h.name;if(e===!0){const s=h.payload,f=h.color,p=c!=null&&s.record[c]!=null?s.record[c].amount:void 0;let d;if(c.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=s.record[c]!=null?mr(c,s):void 0),c){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,forecast:d,percent:s.record[c]!=null?s.record[c].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(sr,{children:[a.jsxs(cr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],c=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=oe("gross_margin","actual",l));const s=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?s:h.length>0?f:p,y={};return y[s]=i,y[f]=h,y[p]=c,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Z(e,r,d,y):void 0},vr=(e,r,t)=>{let n=[],o=[],l=[];e!=null&&e.balances.length>0&&(n=K("income","forecast",e)),r!=null&&r.balances.length>0&&(o=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(l=oe("gross_margin","forecast",t));const i=b("income","forecast"),h=b("cogs","forecast"),c=b("gross_margin","forecast"),s={};return s[i]=n,s[h]=o,s[c]=l,s},kr=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],$r=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],wr=x.div`
|
|
267
267
|
width: ${e=>e.width}px;
|
|
268
268
|
height: ${e=>e.height}px;
|
|
269
269
|
|
|
@@ -277,4 +277,4 @@ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as A
|
|
|
277
277
|
margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
|
|
278
278
|
margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
|
|
279
279
|
color: ${e=>e.theme.colors.primary};
|
|
280
|
-
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor26,s.colors.graphColor17,s.colors.graphColor12],d=[s.colors.graphColor28,s.colors.graphColor17,s.colors.graphColor10,s.colors.graphColor28Dark,s.colors.graphColor17Dark,s.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=s.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(
|
|
280
|
+
`;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor26,s.colors.graphColor17,s.colors.graphColor12],d=[s.colors.graphColor28,s.colors.graphColor17,s.colors.graphColor10,s.colors.graphColor28Dark,s.colors.graphColor17Dark,s.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=s.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
|