@zeniai/web-cockpit-ui 1.14.90-qa → 1.14.91-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-B6sY0jN6-B0gf8H4B.js +21 -0
- package/dist/assets/{AIPerformancePage-DHF_70JI-Byb0JaRY.js → AIPerformancePage-BWK9fXrz-DKsZ1mo0.js} +43 -43
- package/dist/assets/AccountInfoPage-DfT5DDiZ-fWZyYCg5.js +18 -0
- package/dist/assets/AccountInfoPageContent-nUi26Aww-BYypek4H.js +149 -0
- package/dist/assets/AccountLockedInfoModal-BROj4bmE-BVM1T1YI.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-C-3FFCQZ-sRbxt9OR.js +239 -0
- package/dist/assets/{AccountRow-D2Ypckgj-BVuVsxAI.js → AccountRow-BM2kGWyR-T6iB2hx_.js} +24 -24
- package/dist/assets/AccountsPromoCardStack-CNCG5uPJ-CVvmiGCx.js +207 -0
- package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-BFBt3SFQ.js +6 -0
- package/dist/assets/{AddToWalletPage-CmT5jSb5-BtE7INh2.js → AddToWalletPage-DyrcWdBZ-CvPiU8kF.js} +32 -32
- package/dist/assets/{AgingReportsPage-BeUGvj3b-BnHb3lWK.js → AgingReportsPage-CmluxKG3-A44UbSFN.js} +9 -9
- package/dist/assets/{AllUserItems-CmlMyz-f-BE3QXVOa.js → AllUserItems-CVZZU-J3-TfKbUj2d.js} +9 -9
- package/dist/assets/ApAgingDetailPage-CoNxqskm-DFDFQfze.js +46 -0
- package/dist/assets/AppBasePage-CTGNzUtN-DSfPwIJw.js +71 -0
- package/dist/assets/AppDrawerContent-59dQVUxu-C64nAWzc.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-XEW5sdNg-BbhudnSk.js +47 -0
- package/dist/assets/ArAgingChart-D3Ym4gVE-BqVBnPwY.js +24 -0
- package/dist/assets/ArAgingDetailPage-BLEJSLJJ-DwMAtZnW.js +46 -0
- package/dist/assets/AttachmentView-DSP80cjm-UNIl1Ai8.js +101 -0
- package/dist/assets/{BankAccountSection-BVZK5jmO-CjTZMznk.js → BankAccountSection-DRrNcA79-hP-Vs5m_.js} +8 -8
- package/dist/assets/BankAccountWarningSection-Ub-gsfhE-CrMug0PW.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-BN3lAARB-B0yEFHuK.js → BankConnectionsSettingsPage-BcTtJTbg-algC_RED.js} +29 -29
- package/dist/assets/BillDetailPage-D7AQyxwr-Cr5mMjBH.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-BQWGENO8-OS81cubl.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-B8HbVvc9-CNKY0-NR.js → BillPayApprovalRulesPage-BbA1Nwqe-BwMbtGVn.js} +17 -17
- package/dist/assets/BillPayPromoPage-DSTS_vBW-BNfdixF0.js +84 -0
- package/dist/assets/BillPaySetUpPage-CvlVPVCA-C-Yq8DpY.js +42 -0
- package/dist/assets/BillingSettingsPage-nKpHtd4C-Bnbrb4t9.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-DNHAoceL-Dw8wGAVZ.js +1 -0
- package/dist/assets/BoxItem-Bjv3WNXO-DVhc5wWw.js +53 -0
- package/dist/assets/BusinessVerificationPage-Bj4D9bX2-BIO97DuN.js +138 -0
- package/dist/assets/CardNumberSubText-BYY-Inxd-BdlFsn4_.js +21 -0
- package/dist/assets/{CashbackDetailPage-D3WylWVP-D9Vs2ft8.js → CashbackDetailPage-D9UiTqp9-zR6MfAmm.js} +23 -23
- package/dist/assets/{ChargeCardDetailPage-BUsGBwBf-B-LmCTsN.js → ChargeCardDetailPage-C5EdiIyl-DLQH13JM.js} +24 -24
- package/dist/assets/{ChargeCardListPage-Jhx05dVV-CgbSqG5e.js → ChargeCardListPage-DZwz1qoD-C4LK4t_r.js} +17 -17
- package/dist/assets/{ChargeCardListTable-D-eYWaxh-OyS_l2le.js → ChargeCardListTable-D5B05Z1F-BFq9lu6-.js} +21 -21
- package/dist/assets/ChargeCardPromoPage-CDJMtGJb-BonChypf.js +222 -0
- package/dist/assets/ChargeCardSetupPage-CVV24gS9-Bz9Vbd0f.js +36 -0
- package/dist/assets/ChargeCardStatementsPage-CmjBoi5e-CP137h_S.js +60 -0
- package/dist/assets/CheckDepositDrawerPage-CYOhT5Qz-Ctri9wNN.js +206 -0
- package/dist/assets/{CollapsableReportTable-I40BZv7o-d2_h6r8O.js → CollapsableReportTable-hL_Ycouc-B8J7Q_nq.js} +81 -81
- package/dist/assets/{CompanyOfficerDetailsSection-ChsNKXbx-BF5MOIbR.js → CompanyOfficerDetailsSection-DR_6TlQa-eD8A7jcO.js} +23 -23
- package/dist/assets/CompanyPassportCard-B4chn7-Q-D5SPmBv_.js +42 -0
- package/dist/assets/{CompanyPassportPage-DG1Fa_Uw-Dkbt-nxV.js → CompanyPassportPage-oT9HnnPQ-SX0lC40Z.js} +136 -136
- package/dist/assets/CompleteProfile-BgH4v76Z-8UAVvvgt.js +52 -0
- package/dist/assets/ConfettiBurst-Cl6jHJ8H-LC2meCe-.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DVzMO96w-D2_PioHE.js → CreateOrEditVendorPage-CW-u7pJU-p324jU3k.js} +16 -16
- package/dist/assets/CreditCardPaymentDrawerPage-D30M7ol4-DoXJ5bDN.js +224 -0
- package/dist/assets/CurrencySelectField-DOCEstMc-DZU689ma.js +139 -0
- package/dist/assets/CustomerOnboardingActivationPage-DMPNjFL_-ku4Vuy0S.js +88 -0
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTgF2r26.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-BqoeEQuE.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-Dn7fU-s8.js} +20 -20
- package/dist/assets/CustomerOnboardingNoStepsPage-EBVRCYfJ-CfvYqECa.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-C3FgZjAN-BMoiiOVQ.js → CustomerOnboardingPage-TJK6s-LM-BKRL2lJB.js} +10 -10
- package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-PR2itKHa.js +202 -0
- package/dist/assets/{Dashboard-D_oTtu1--DmU_Kxzw.js → Dashboard-WiE9IRrh-Cv0kOt8p.js} +63 -63
- package/dist/assets/{DashboardReportPage-Dprj3eUQ-BvCOtKTf.js → DashboardReportPage-BKHl_IVD-C4Ea2qys.js} +21 -21
- package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-BrrhB9xn.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C2oP415b-fO_vukRP.js → DepositAccTransactionItem-C8tChaJS-DUssbHtI.js} +12 -12
- package/dist/assets/DepositAccTransactionListPage-B6px7upV-CeIhvwtb.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-RX-JpFy3.js +21 -0
- package/dist/assets/{DownloadOverlay-BwddFmV2-TXwTh2dm.js → DownloadOverlay-DB-qx46O-j8z4pSob.js} +90 -90
- package/dist/assets/DrawerPage-Bha9ElcW-B8Be3mMf.js +118 -0
- package/dist/assets/EditPeoplePage-B6QD5Vld-jl0Ywq6s.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DwCiVkeu-CHb4Vx_R.js → EditReimbursementDetailPage-EplOf2mP-0BJtsB6D.js} +20 -20
- package/dist/assets/EntityDetailPage-5Cu1qehd-DbU14HUf.js +18 -0
- package/dist/assets/EntitySummarySection-D6z6-dM7-CxR6H9p6.js +149 -0
- package/dist/assets/{ExpenseAutomationOverviewPage-hl_3Pc0g-DYxAAMa6.js → ExpenseAutomationOverviewPage-DkoxczRc-Nhh5EsPg.js} +27 -27
- package/dist/assets/ExpenseAutomationPage-Na3XKgcg-v_T_dNPC.js +1650 -0
- package/dist/assets/{ExpressPayPage-BpfkmJ_I-Cr6J8360.js → ExpressPayPage-DWGl_gml-BK4q9z9-.js} +19 -19
- package/dist/assets/FeaturePreviewPage-BgkpUPMm-CjuE-Vy6.js +11 -0
- package/dist/assets/{FollowStepsSection-Bu3RG_GH-1o9BWCUV.js → FollowStepsSection-64oy2OLD-mYi4qCkY.js} +23 -23
- package/dist/assets/{GlobalReviewListPage-D4BD7q-I-IVn_04O3.js → GlobalReviewListPage-DHfTyj2C-jQOPvWvS.js} +48 -48
- package/dist/assets/{InformationCardStack-B9wnkR3p-InW9f_7k.js → InformationCardStack-Dw3lhl2I-7einUDdd.js} +8 -8
- package/dist/assets/InsightsCardStack-BiEswY1Z-B0ppu_rT.js +79 -0
- package/dist/assets/InsightsSection-DvqCilqy-J94KiGaL.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-DzVYf5ff-EFzWzTcS.js +57 -0
- package/dist/assets/InternationalWireSwiftDetailsPage-DTHcuQsH-DCnTBpNn.js +171 -0
- package/dist/assets/{InternationalWireVerificationPage-B8AOwcSX-O5d4_jx5.js → InternationalWireVerificationPage-BzyRqd-m-CtMekcQE.js} +13 -13
- package/dist/assets/InviteFormPage-CaJB3ss1-BX5i7EqT.js +312 -0
- package/dist/assets/{InvitePageListView-Dw8kwEFd-BOBOJq-T.js → InvitePageListView-8Ltt8tHx-CtYoDyrk.js} +49 -49
- package/dist/assets/InvitePeoplePage-A7oKAD7M-BQc_PdIV.js +12 -0
- package/dist/assets/InvoiceUploadSection-DomquLut-e92SA0tf.js +140 -0
- package/dist/assets/{IssueChargeCardPage-fumweN4Y-CbGa-1Sy.js → IssueChargeCardPage-DtIQ1Buk-DjM4t17X.js} +8 -8
- package/dist/assets/LabeledAddressValue-B_9lh-_a-DIizmhzb.js +49 -0
- package/dist/assets/LabeledAddressValueField-CC7T3qZQ-m9gvzhHo.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-mZLzoQGL.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js → LabeledCreatableSingleSelectField-DKD0oEl8-gq-eDRMt.js} +12 -12
- package/dist/assets/LabeledDocumentField-Dy3jwAiL-49YAoImC.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-DDzM3r6s-ECrfBFdw.js +59 -0
- package/dist/assets/LabeledText-axaAGyUS-Dng_AeMD.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-DUVObrd4.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-Bns3vXLL.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-CS_oKjBG-BYrCH7sg.js → LabeledZeniRolesDropDownField-dpz7g9jK-BS9FUIQq.js} +26 -26
- package/dist/assets/LinkJETransactionPage-CJniqVcu-DlmRVmek.js +98 -0
- package/dist/assets/{LockCardPage-DqQGGac2-DNRrTsHA.js → LockCardPage-CjO8cr2a-_f0132IP.js} +42 -42
- package/dist/assets/LowBalancePopup-DVS-w3b7-DP0lgN2T.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-B4JK6Tsk.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-CjkHVZHo.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BFgoRuDp.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-DAAoq3iT-c3oKtr_f.js +31 -0
- package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-BOWrScDm.js +17 -0
- package/dist/assets/MailingDetailsSection-CiJ5JLA6-DddwOxAo.js +21 -0
- package/dist/assets/Menu-wpP8R1br-CxnIQs8p.js +17 -0
- package/dist/assets/MyBankConnectionsSettingsPage-DIIFgnkE-CogNLqVY.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-Di_KYRgS-DRNBLhDG.js +6 -0
- package/dist/assets/MyProfileSettingsPage-m6vaeGgZ-chnTYzOu.js +85 -0
- package/dist/assets/NavBarWithPicker-C_qO8mgD-DUpFfabv.js +30 -0
- package/dist/assets/{NavigationArrow-Z9PgxZ-c-2tqZ4Fw-.js → NavigationArrow-BXYIj6Wz-DziJLhPd.js} +7 -7
- package/dist/assets/NavigationDots-BvKSgdgh-LQiuRx4x.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-YsnX4uQU-D0h-bx1p.js → NewGlobalMerchantPage-Dc3xEoiZ-C2aDiu95.js} +19 -19
- package/dist/assets/NoDataChart-C5ZP32zB-Co6FSXzL.js +26 -0
- package/dist/assets/NoDataTable-BnBYE8p_-CiELOEE2.js +8 -0
- package/dist/assets/NotFoundPage-CZ25GWwU-BIBXUzqs.js +46 -0
- package/dist/assets/{NotificationSettingsPage-DlU2NxiC-Dm2QaTZo.js → NotificationSettingsPage-DHvgj7Hu-D3suXG--.js} +28 -28
- package/dist/assets/NotificationsListConfig-BBLSv0sd-C4KCM8pw.js +1 -0
- package/dist/assets/{NotificationsPage-q0bK_5gs-jK6e_Uyw.js → NotificationsPage-CGVEC-Zc-C8fq9c_9.js} +34 -34
- package/dist/assets/{OpExByVendorPage-Boc7U8eu-CVJq9vF2.js → OpExByVendorPage-D55JZne--D9xmj7rz.js} +24 -24
- package/dist/assets/OverlayContainerPage-Daz3A7cI-D6qPPmeQ.js +11 -0
- package/dist/assets/{PandLWithForecastPage-B2eGvFPp-BaY0fBnf.js → PandLWithForecastPage-fVmttEKP-D6Evs_k0.js} +12 -12
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BP-_59EO-hGRsM6bI.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-4Kl9uXwr.js} +22 -22
- package/dist/assets/{PeoplePage-YMfZIga6-BEib8XAV.js → PeoplePage-QuuuX2AS-CUwuNLCQ.js} +13 -13
- package/dist/assets/Preview-D0lKYz6_.js +1 -0
- package/dist/assets/ProductsCarousel-zdZkfaiY-CKycG9Wt.js +142 -0
- package/dist/assets/{PromoBaseCards-CmOYEhSO-bExxN6kp.js → PromoBaseCards-flFtcbIg-iLyc6jwq.js} +14 -14
- package/dist/assets/QBOConnectionDialog-DNB2C1vQ-B6h7mZJt.js +51 -0
- package/dist/assets/QBOSetupSection-B59etoGz-Dx4Hkrje.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D7do3o0A-DaR0xdJA.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BkuYJ6qb-7dFuSzMb.js → ReimbursementApprovalRulesPage-BJ6GewQ2-D7efVmkv.js} +33 -33
- package/dist/assets/ReimbursementDetailPage-DKAtYSOy-C-uqjyM_.js +314 -0
- package/dist/assets/ReimbursementPromoPage-DKcSHlHp-XcrUKScH.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-Y1e_hna--rh2VyUST.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-fgz8s4w9-CzZAxGly.js +1 -0
- package/dist/assets/ReloadCard-DjtdPHq5-BoSxtWCb.js +26 -0
- package/dist/assets/ReportTableViewSelector-C8e6IEWt-BJN3fro7.js +150 -0
- package/dist/assets/{ReportsPage-iJDifG6q-CYAyIPrv.js → ReportsPage-BIe0eDLC-D5ygJVqP.js} +12 -12
- package/dist/assets/{RevenueChart-BbOK-HCB-C8qpvMvb.js → RevenueChart-Cc0XrxLL-BB6kfchw.js} +35 -35
- package/dist/assets/ReviewDetailsPage-CU1AYWgR--SOiatSS.js +290 -0
- package/dist/assets/ReviewOverlay-CruJ9O84-BdMFQyaH.js +152 -0
- package/dist/assets/RoleWithToolTip-fC3byzzv-DteZC2-q.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-CE3tUYhk-Aj3mnuFr.js +37 -0
- package/dist/assets/ScheduleDetailsPage-BhAqJ1Of-BNYzMpaE.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js → ScheduleSequenceTable-NSt1juSD-BtySotUK.js} +21 -21
- package/dist/assets/ScreenRoutes-Ofrn7XPK.js +201 -0
- package/dist/assets/SetUpAccountSection-C1EnJv1V-nWkvB51T.js +378 -0
- package/dist/assets/SignIn-BhIof_Cm-Stp0fHNQ.js +463 -0
- package/dist/assets/SignInScreen-ApNcuhAj.js +1 -0
- package/dist/assets/SpendManagementListViewPage-BEWNNX_Z-Qf8TDCkQ.js +123 -0
- package/dist/assets/{SpendManagementPerTabPage-HzCmGr0--xZeoOzCY.js → SpendManagementPerTabPage-Vs1Eoxgd-DGhcXeqs.js} +43 -43
- package/dist/assets/{SpendManagementSection-LzT-Bnhy-7KIDrHzn.js → SpendManagementSection-C38Zpi1z-Hvu4v5m7.js} +16 -16
- package/dist/assets/StatementItem-bHInVThd-BfGU3kqj.js +31 -0
- package/dist/assets/StatementsPage-CGQhmaXx-CVtkQqM2.js +58 -0
- package/dist/assets/{StatusSwitcher-BPKr5BUW-iZy1SY4R.js → StatusSwitcher-7fiKLb5g-cQtYU__8.js} +10 -10
- package/dist/assets/{SubTabSwitcher-4dvyyQSv-B0aTRMDP.js → SubTabSwitcher-9AnfZiNy-CobTdTqd.js} +8 -8
- package/dist/assets/SummaryCard-DOycYLs1-BLeRuOD7.js +1 -0
- package/dist/assets/{TaskManagementPage-BiyyDIWi-DOn8-w1u.js → TaskManagementPage-CehyMnY0-BwJtO-U4.js} +29 -29
- package/dist/assets/TimeRangeSwitcher-Dq2FEgFR-DmMi5La_.js +64 -0
- package/dist/assets/{TimeframeSwitcher-u606tI8Z-CLiEbUCN.js → TimeframeSwitcher-By3xz_-m-1CBF6COV.js} +4 -4
- package/dist/assets/TimeframeSwitcherWithToggle-a3fmbzNR-B9R7QlVw.js +31 -0
- package/dist/assets/TopExCard-GEQpp_KY-74e79UYx.js +38 -0
- package/dist/assets/{TopExDetailPage-Cla8Hd-1-DK-xuoZs.js → TopExDetailPage-hid1dQYl-WgHXC6hE.js} +31 -31
- package/dist/assets/{TransactionDetailPage-BbjtQvBr-FXHAHiFr.js → TransactionDetailPage-CX4JW9WM-DyZTJ1bq.js} +44 -44
- package/dist/assets/TransactionList-BixeXh4Y-Il163hc_.js +147 -0
- package/dist/assets/{TransactionListBig-BOeu4-R4-o6UH9k2V.js → TransactionListBig-CGMMJQBd-KQNhkGbE.js} +25 -25
- package/dist/assets/TransactionListPage-CBVUTX4y-DWsla1LN.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-CEbHH_0r-CS6QQqEG.js +80 -0
- package/dist/assets/{TransferDrawerPage-BTqCR3Hb-BWfDRvEr.js → TransferDrawerPage-BFd7uQnF-AGu3EQB7.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-CDJtsQsC-BAM2Gg0T.js → TreasuryOverviewPage-Bd58hOy8-P3TIcDYG.js} +50 -50
- package/dist/assets/{TreasuryPromoPage-Bqt6DcqL-CXIyIitA.js → TreasuryPromoPage-BvArufHi-B6OSOn5z.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-YLCEBbRh-BeAedV0-.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D_6mgQqi-CO3HXioV.js +58 -0
- package/dist/assets/TrendChart-D3dT6hUb-CRyvw86n.js +16 -0
- package/dist/assets/TrendWithTransactions-Gj-u5KXi-CpckXM1N.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-CFx4P194-BZZ4iMs4.js → UncategorizedAccountsMappingPage-B3eRYolj-D-Jwo7-l.js} +10 -10
- package/dist/assets/UnitIntegrationPage-DpjR9hUu-BIdCIf5k.js +67 -0
- package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-DBj80beJ.js +38 -0
- package/dist/assets/Vendor2FAPopup-C85mhuSb-SCWhQlz7.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-CvETHK8j.js +1 -0
- package/dist/assets/{VendorDetailPage-Dy9McuGu-d-ZpZ6aU.js → VendorDetailPage-BrbKfsL4-BYuDBwtU.js} +100 -100
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-4iWeRYsC.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Y0hGO4RH-BToJSlm-.js → VendorFiling1099EditablePage-DgBLn3fd-DyXTQ39Q.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-C-pT1M36-D4-Nv1Fg.js → VendorFirstReviewPage-jc7-OExI-CcNlKzIr.js} +66 -66
- package/dist/assets/{VendorInternationalWireDetailsPage-CCMramET-BwYsNdGo.js → VendorInternationalWireDetailsPage-c6isgwH2-CfXEdhbK.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BWyYdePs.js +1 -0
- package/dist/assets/VendorsAccountsSection--VfdAF3H-aooc9xax.js +68 -0
- package/dist/assets/VerifyDevice-CaifjdR8-CqDImdvA.js +112 -0
- package/dist/assets/VideoPlayer-BVR9LPmm-Cf1X7mgb.js +78 -0
- package/dist/assets/VideoPopup-BEXc8o78-CxvDyO3n.js +31 -0
- package/dist/assets/WarningsDrawerPage-CboqfxzC-BsdL63Q1.js +92 -0
- package/dist/assets/{ZeniAccountDetailPage-BF8cg2oa-Df5W17bc.js → ZeniAccountDetailPage-Dujj0-XC-Bs0_mCxO.js} +33 -33
- package/dist/assets/{ZeniAccountListViewPage-BkdkYY8j-Bvi6PCOk.js → ZeniAccountListViewPage--SMJDGvC-B9VB-g9k.js} +18 -18
- package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-B6EqVL37.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-COAOIU03-B_FVyXMi.js → ZeniAccountPromoPage-BVjJvWsA-D_izrQ3u.js} +29 -29
- package/dist/assets/ZeniAccountSetupPage-Dvxst8RT-Dw_0q67c.js +36 -0
- package/dist/assets/ZeniCopyright-B88k3pkr-D_GBhPtz.js +1 -0
- package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-D_vM8ORb.js +63 -0
- package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +1 -0
- package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +1 -0
- package/dist/assets/{analytics-DGBWhVbe.js → analytics-CHPpxU3b.js} +2 -2
- package/dist/assets/analyticsHelper-D88-Oppk.js +1 -0
- package/dist/assets/analyticsHelper-DmujELNG-B2_5NV-p.js +1 -0
- package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +1 -0
- package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +1 -0
- package/dist/assets/chartTypes-DRiSljvE-CN4L62GH.js +1 -0
- package/dist/assets/commonDimensions-BDftm0gJ-DyUDFvZC.js +1 -0
- package/dist/assets/constants-B4Ak6U9p.js +1 -0
- package/dist/assets/{core-B-FNbYlu.js → core-CA3j8Axi.js} +13 -13
- package/dist/assets/{dash.all.min-BBsvkPzr.js → dash.all.min-Bzta_mrR.js} +11 -11
- package/dist/assets/detailCommon-BGgE4mE3-D-w4kHC7.js +38 -0
- package/dist/assets/downloadPdf-DCQ9vVZs-Be80rXL-.js +1 -0
- package/dist/assets/empty-CrPfQgao.js +1 -0
- package/dist/assets/empty-Dn000SHy.js +1 -0
- package/dist/assets/epic-C_I3d-Sx.js +2 -0
- package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +1 -0
- package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +1 -0
- package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +1 -0
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +1 -0
- package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +1 -0
- package/dist/assets/{hls-BA0yQjS5.js → hls-SyH7Grr1.js} +1 -1
- package/dist/assets/{index-piC0sJHK.js → index-BG_bOyH4.js} +57 -57
- package/dist/assets/index-BWZriWwb.js +1 -0
- package/dist/assets/index-BiiqfeFx.js +39 -0
- package/dist/assets/index-C-ypGNlB.js +1 -0
- package/dist/assets/index-C4-PHmb9.js +1 -0
- package/dist/assets/index-C5fdNIhc.js +1 -0
- package/dist/assets/{index-Dm9r1f6s.js → index-DJLrbf0F.js} +4190 -4191
- package/dist/assets/lexical-dZFDzIA1.js +21 -0
- package/dist/assets/{liveblocks-BBTLClA6.js → liveblocks-C2I4vRCJ.js} +15 -15
- package/dist/assets/{lottie-gmZDfwf4.js → lottie-B7mXQ-R-.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CXP8ZZTG-DkaL-N2A.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BZSP-VcP-BuUbTOqM.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-Bc1S_1ej-BOT7FVTB.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-ClgcHX26-Cs9gyyXd.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cwp98PMa-tz5P0V5W.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-Bmf8af15.js +1 -0
- package/dist/assets/{mixin-D3UDm--6.js → mixin-BPAPQfSE.js} +3 -3
- package/dist/assets/{mui-DLNyBjYF.js → mui-DpJXlk4t.js} +5 -5
- package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +1 -0
- package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +1 -0
- package/dist/assets/react-B2Dtpj08.js +29 -0
- package/dist/assets/react-B7zczQTC.js +17 -0
- package/dist/assets/react-BuuImry8.js +44 -0
- package/dist/assets/react-C5CamjHm.js +16 -0
- package/dist/assets/react-CurU10nF.js +37 -0
- package/dist/assets/{react-BiH01iGK.js → react-D9gRIIQJ.js} +3 -3
- package/dist/assets/react-KsUvriAa.js +31 -0
- package/dist/assets/{react-2VG2yH4x.js → react-PdDuKQQV.js} +2 -2
- package/dist/assets/{recharts-Cnl2EvUV.js → recharts-BGdJnVo5.js} +1 -1
- package/dist/assets/{sentry-EYLV4XmG.js → sentry-BA4piVNf.js} +19 -19
- package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +1 -0
- package/dist/assets/toCOABalancesWithID--oEGymMJ-DrPkDPTu.js +1 -0
- package/dist/assets/toChartData-CavJzP6f-B2iIF7nP.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +1 -0
- package/dist/assets/types-DyvtCprH-NFPm5TaG.js +1 -0
- package/dist/assets/{uploadAttachment-CeUHLpzO-C_J8w5W4.js → uploadAttachment-BuVCsq0Q-BB-5S1Qg.js} +12 -12
- package/dist/assets/uploadReceipts-CPw64UYa-DU-gRzOR.js +1 -0
- package/dist/assets/url-Bq2XNMnM.js +1 -0
- package/dist/assets/url-RUB1rBsd.js +6 -0
- package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +1 -0
- package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +1 -0
- package/dist/assets/{utils-D1zwltK3.js → utils-DUsHM-Uc.js} +1 -1
- package/dist/assets/{zeni-epic-state-HWtMOH-U.js → zeni-epic-state-CQt4n3Xe.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +15 -13
- package/dist/assets/ACHDetailsPage-BUP-_2-W-gKUKs0Pb.js +0 -21
- package/dist/assets/AccountInfoPage-pmUIckJ9-CAlO-FHB.js +0 -18
- package/dist/assets/AccountInfoPageContent-DLSL1NNm-CTMQNQY3.js +0 -149
- package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-Caep-eEi.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-CGcZO_qz-DphTR8AG.js +0 -239
- package/dist/assets/AccountsPromoCardStack-BVVDCW1H-CHjSEilj.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-C8aENofu-_B3noxtJ.js +0 -6
- package/dist/assets/ApAgingDetailPage-Dz1_N0Yw-TUc4-BfW.js +0 -46
- package/dist/assets/AppBasePage-DX4EGGcT-CA5JIcq8.js +0 -71
- package/dist/assets/AppDrawerContent-Brg3Rw4K-Du3ev71U.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-C_CZXQYN.js +0 -47
- package/dist/assets/ArAgingChart-DQZtCsHS-zcjxKJqm.js +0 -24
- package/dist/assets/ArAgingDetailPage-BtF6K5dA-CM34YcdM.js +0 -46
- package/dist/assets/AttachmentView-DgPySmB8-B41pIkR9.js +0 -101
- package/dist/assets/BankAccountWarningSection-DHdeDi15-M9LQMU5u.js +0 -51
- package/dist/assets/BillDetailPage-BuUm6vdf-BEfZuL72.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-BZdDia51.js +0 -27
- package/dist/assets/BillPayPromoPage-DkoqXDNt-Jx7NR9vs.js +0 -84
- package/dist/assets/BillPaySetUpPage-BommXkLS-CxAPQ6nt.js +0 -42
- package/dist/assets/BillingSettingsPage-gHbc5Kq3-6eOgIWo-.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-C541rBnx-CpMaFNun.js +0 -1
- package/dist/assets/BoxItem-usHxaONy-yqmV2_EE.js +0 -53
- package/dist/assets/BusinessVerificationPage-CLsxXy9d-ThEm2-hv.js +0 -138
- package/dist/assets/CardNumberSubText-D_fWhc_K-C63mXt5C.js +0 -21
- package/dist/assets/ChargeCardPromoPage-CzR82VtA-C4AU7pmq.js +0 -222
- package/dist/assets/ChargeCardSetupPage-Ctz8PCuu-CQ_qZ7MK.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-EUtRTAX2-C_GDwTRC.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-B7DC0HAi-p07KcTOW.js +0 -206
- package/dist/assets/CompanyPassportCard-82bbFwk--CB88G7Qo.js +0 -42
- package/dist/assets/CompleteProfile-B7bQqLQH-3BvSCHX1.js +0 -52
- package/dist/assets/ConfettiBurst-DUyIBnw4-Bzth-g3m.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-CNfSxnSZ.js +0 -224
- package/dist/assets/CurrencySelectField-2hU3oIp_-C4bLV2kj.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-Dt-Nml2t-B6WqU8lr.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-UhKf7bOm.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CwI8nL61-fFJJ4fRN.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-BOYu-82S-CVVsk6ik.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-C6SQaB7q-Dxl5QlMk.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-B_wb_nSG.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-Da_3EveP-BRE1nKx5.js +0 -21
- package/dist/assets/DrawerPage-CGrnrvf2-C0F2USa4.js +0 -118
- package/dist/assets/EditPeoplePage-DMgxG2Gd-CCtVDE58.js +0 -55
- package/dist/assets/EntityDetailPage-BcRVEfi5-CepotlTP.js +0 -18
- package/dist/assets/EntitySummarySection-BaHHLLkE-Drrfo_tg.js +0 -149
- package/dist/assets/ExpenseAutomationPage-D70ghitX-sSwqGXv6.js +0 -1650
- package/dist/assets/FeaturePreviewPage-Bzi8Bpk3-Drk_uxAx.js +0 -11
- package/dist/assets/InsightsCardStack-C1_rd2Sb-Dhs19DDG.js +0 -79
- package/dist/assets/InsightsSection-7-T67WeF-R1I0UTTj.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-C9YpvDgg-q-aOCVtI.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-C5mI8dEh-B0sOCS9F.js +0 -171
- package/dist/assets/InviteFormPage-DuBhhnre-BDO1iW13.js +0 -312
- package/dist/assets/InvitePeoplePage-BI_vd7xw-BK1DYXv5.js +0 -12
- package/dist/assets/InvoiceUploadSection-9DaovMq8-nY-DuZwJ.js +0 -140
- package/dist/assets/LabeledAddressValue-cNf6hI1l-BswrPJcJ.js +0 -49
- package/dist/assets/LabeledAddressValueField-CoTtV0RQ-oEM2MjQO.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DQwUvKR2-CCQx34pM.js +0 -16
- package/dist/assets/LabeledDocumentField-MkryOLQ8-DH1KAWxk.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-B-yUtgxR-Svg2dZ6s.js +0 -59
- package/dist/assets/LabeledText-BJ3Zvb5p-ndTmW7U8.js +0 -42
- package/dist/assets/LinkJETransactionPage-BsszwFNq-CVlh2hC9.js +0 -98
- package/dist/assets/LowBalancePopup-BFo5zRk3-mdHe1dcy.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-tz2BvffR.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-CtiYd2c1.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CX9SeCLl-HVNLuX22.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-Dipq1-St-CbeB13LZ.js +0 -31
- package/dist/assets/MagicLinkTitleSection-DnN52Uwb-Cs_fy5V9.js +0 -17
- package/dist/assets/MailingDetailsSection-DwNF-L2Y-DrhhdeyV.js +0 -21
- package/dist/assets/Menu-D0jF6uaE-063ttLpF.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-DpM6MKBq-E1-nhC0K.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BaT55Pwg-Ag6G6vZu.js +0 -6
- package/dist/assets/MyProfileSettingsPage-kD1dY6P6-BfZFNoxD.js +0 -85
- package/dist/assets/NavBarWithPicker-D-WQJ-tG-Cy7zBv5q.js +0 -30
- package/dist/assets/NavigationDots-BT-m0FmS-COkqBkfX.js +0 -15
- package/dist/assets/NoDataChart-DMivligx-CY99ibCB.js +0 -26
- package/dist/assets/NoDataTable-DwOJY23X-0CWxLk-0.js +0 -8
- package/dist/assets/NotFoundPage-DuKXpHos-CG3u4rQy.js +0 -46
- package/dist/assets/NotificationsListConfig-BQCb9x9X-CKZiM7oL.js +0 -1
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-CY2cJwH_.js +0 -11
- package/dist/assets/Preview-BszQHI_F.js +0 -1
- package/dist/assets/ProductsCarousel-CUaU5-V7-DTCkPx2F.js +0 -142
- package/dist/assets/QBOConnectionDialog-BNiXUEAk-O1EeGUUa.js +0 -51
- package/dist/assets/QBOSetupSection-CjjNFfgF-hqHet92Q.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-47DORnA2.js +0 -26
- package/dist/assets/ReimbursementDetailPage-D5IzqJS5-B19mA4vu.js +0 -314
- package/dist/assets/ReimbursementPromoPage-D7n6lZNo-CgdMqXow.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-E1elWU5Z-D7O-pf9b.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-HzYNji-G-BjLwNAB4.js +0 -1
- package/dist/assets/ReloadCard-DMWwNZ1z-D31XYoZn.js +0 -26
- package/dist/assets/ReportTableViewSelector-EU36E1lv-CLM26q4e.js +0 -150
- package/dist/assets/ReviewDetailsPage-Bk2vvBn3-CMASDCWv.js +0 -290
- package/dist/assets/ReviewOverlay-CJlk2MNH-DksHT3Bn.js +0 -152
- package/dist/assets/RoleWithToolTip-B7woUKhj-tuSqaaK3.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-B-WjqQN_-lrt0yIGR.js +0 -37
- package/dist/assets/ScheduleDetailsPage-ocFBINM3-BDslid8Y.js +0 -37
- package/dist/assets/ScreenRoutes-DoE2zy1N.js +0 -201
- package/dist/assets/SetUpAccountSection-9zELif-q-jAntwqfL.js +0 -378
- package/dist/assets/SignIn-BHHUcLal-B9B7yu5c.js +0 -448
- package/dist/assets/SignInScreen-Czg-Wlkz.js +0 -1
- package/dist/assets/SpendManagementListViewPage-BAdSW-49-Cy3aFFuZ.js +0 -123
- package/dist/assets/StatementItem-BnxTFgdM-BUy1CSEA.js +0 -31
- package/dist/assets/StatementsPage-B8X2un5p-Ao0DiWwm.js +0 -58
- package/dist/assets/SummaryCard-CiNkV7uy-CyUPIfT8.js +0 -1
- package/dist/assets/TimeRangeSwitcher-DEEhq2Us-DC70llJC.js +0 -64
- package/dist/assets/TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js +0 -31
- package/dist/assets/TopExCard-DbPlohSJ-Dhp9OZxf.js +0 -38
- package/dist/assets/TransactionList-BRiHadkm-DPpaSQ1Y.js +0 -147
- package/dist/assets/TransactionListPage-ByVvx6ON-CwQjGljA.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-DMweGn3b-Dq7toltd.js +0 -80
- package/dist/assets/TreasuryStatementsPage-2PsC-PWa-D70yhjS2.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-DmesESI8.js +0 -58
- package/dist/assets/TrendChart-DiutckSt-D94T5IZh.js +0 -16
- package/dist/assets/TrendWithTransactions-rPwZKHfV-Dtp5jwDW.js +0 -116
- package/dist/assets/UnitIntegrationPage-DO8dMzVg-Cd3rb01x.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-DKI6OhwV.js +0 -38
- package/dist/assets/Vendor2FAPopup-BdG-Ywma-CO_da9UG.js +0 -1
- package/dist/assets/VendorACHDetailsPage-BUNmE_s6-DPSp4E23.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DvACrh7C-BLzpieuI.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-lxD_Z5W--961yvZRp.js +0 -1
- package/dist/assets/VendorsAccountsSection-D-3fhQvy-CbP2SER5.js +0 -68
- package/dist/assets/VerifyDevice-DDZdWfa8-H5PbdKsY.js +0 -112
- package/dist/assets/VideoPlayer-D0GZ_Yml-gee9OAo-.js +0 -78
- package/dist/assets/VideoPopup-CEdhfU31-8qrMVIxi.js +0 -31
- package/dist/assets/WarningsDrawerPage-CIK9lkT2-D5cDBgQm.js +0 -92
- package/dist/assets/ZeniAccountNavBarPieces-FAxN1QDY-C5pMry9_.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-QMBiVius-DueIhJzT.js +0 -36
- package/dist/assets/ZeniCopyright-CgfP-kcy-DUMhOisg.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-B1fmc3f9-DSYZgQje.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-BctcirlU.js +0 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +0 -1
- package/dist/assets/analyticsHelper-BKtlFOJm-CcPLbTK6.js +0 -1
- package/dist/assets/analyticsHelper-BV9ovV44.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-DFZl4BUT.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-BCnmjSj0.js +0 -1
- package/dist/assets/chartTypes-BZYC5y5J-CVmMioA0.js +0 -1
- package/dist/assets/commonDimensions-B-aZt-hB-CP54iB8v.js +0 -1
- package/dist/assets/detailCommon-DCtkwfR8-Dr2vx6ZY.js +0 -38
- package/dist/assets/downloadPdf-BhQlJMh0-DeqZGQ39.js +0 -1
- package/dist/assets/empty-CnIz-OQ7.js +0 -1
- package/dist/assets/empty-TjEo4rDg.js +0 -1
- package/dist/assets/epic-DMZtehrN.js +0 -2
- package/dist/assets/getReferrerType-DjPOy76W-Cm31g4vJ.js +0 -1
- package/dist/assets/gift-box-Cmt9OgIZ-aujv_noX.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-DTSR9TM8.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js +0 -1
- package/dist/assets/handshake-BPg58FML-BjSDfVm7.js +0 -1
- package/dist/assets/index-CFi0iD-l.js +0 -1
- package/dist/assets/index-CL_7G35J.js +0 -1
- package/dist/assets/index-DdJI4MMd.js +0 -1
- package/dist/assets/index-dPPP2cWo.js +0 -1
- package/dist/assets/lexical-DPEnH3HH.js +0 -21
- package/dist/assets/mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BPbkmHFY-BZPeecIF.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-B-kK0AfR-0kzYcFSC.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js +0 -1
- package/dist/assets/page-detail-CWX5S47F-Dn7FEY9U.js +0 -1
- package/dist/assets/radio-default-CiSgisfh-B6CtarQ8.js +0 -1
- package/dist/assets/react-Bqj7JUF5.js +0 -29
- package/dist/assets/react-CeCWo9lx.js +0 -44
- package/dist/assets/react-CwPTei9W.js +0 -17
- package/dist/assets/react-CxPSrq5B.js +0 -16
- package/dist/assets/react-VfkIuzgx.js +0 -37
- package/dist/assets/react-sPv488Z5.js +0 -31
- package/dist/assets/shield-DOlUxcFf-DYYbm8md.js +0 -1
- package/dist/assets/toCOABalancesWithID-ChMShONK-Cq-mLDe3.js +0 -1
- package/dist/assets/toChartData-BUweupH8-sZruIW4t.js +0 -1
- package/dist/assets/transaction-placeholder-CpOwZAMG-R9RAntKW.js +0 -1
- package/dist/assets/types-DyvtCprH-BcZYcgaq.js +0 -1
- package/dist/assets/uploadReceipts-Bkf_PaOH-qo0cBRii.js +0 -1
- package/dist/assets/url-DzcuVjHh.js +0 -6
- package/dist/assets/url-dmxYLsoS.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-BC43nxgO.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-_aHpaGit.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as Ce,bM as ye,d as S,E as R,aA as K,T as xe,aS as Oe,as as Ae,bD as Re}from"./index-Dm9r1f6s.js";import{a as T,S as X}from"./core-B-FNbYlu.js";import{n as _}from"./mui-DLNyBjYF.js";import{bh as Z,Et as Be,EC as ve,ED as E,EE as Le,EF as Te,EG as Pe,EH as ke,EI as Ne,EJ as ee,EK as te}from"./zeni-epic-state-HWtMOH-U.js";import{m as z,l as q}from"./analyticsHelper-BKtlFOJm-CcPLbTK6.js";import{u as Ie}from"./ReportTableViewSelector-EU36E1lv-CLM26q4e.js";import{a as se,p as Me}from"./TimeRangeSwitcher-DEEhq2Us-DC70llJC.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BwddFmV2-TXwTh2dm.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-I40BZv7o-d2_h6r8O.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-u606tI8Z-CLiEbUCN.js";import"./page-detail-CWX5S47F-Dn7FEY9U.js";import"./AccountRow-D2Ypckgj-BVuVsxAI.js";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=M("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??M("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=H({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=C.getLocalizedStrings().reports.sections,n=C.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=M("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(Le(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 Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.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=M("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 ke(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push(j({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=C.getLocalizedStrings().reports,d=C.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 y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}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=H({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($e({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(j({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=C.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=H({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as ye,bM as Ce,c as S,C as A,aA as K,O as xe,aS as Oe,as as Re,bD as Ae}from"./index-DJLrbf0F.js";import{a as T,S as X}from"./core-CA3j8Axi.js";import{n as _}from"./mui-DpJXlk4t.js";import{bh as H,EI as Be,ER as ve,ES as E,ET as Le,EU as Te,EV as Pe,EW as Ie,EX as ke,EY as ee,EZ as te}from"./zeni-epic-state-CQt4n3Xe.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-B2_5NV-p.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt-BJN3fro7.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-DmMi5La_.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-B9R7QlVw.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-j8z4pSob.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-B8J7Q_nq.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-BuUbTOqM.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-Cs9gyyXd.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-Bmf8af15.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-DkaL-N2A.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";import"./TimeframeSwitcher-By3xz_-m-1CBF6COV.js";import"./page-detail-CWX5S47F-Byx36A1h.js";import"./AccountRow-BM2kGWyR-T6iB2hx_.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]="8efcad77-b69d-4b6d-94ac-ca8d61fbaac6",e._sentryDebugIdIdentifier="sentry-dbid-8efcad77-b69d-4b6d-94ac-ca8d61fbaac6")}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=M("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??M("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=M("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(Le(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 Te(s)===!0&&i.push(j({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:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(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=M("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(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(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($e({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(j({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,
|
|
6
|
+
`;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,Z=D??fe;Z?.additionalBalances!=null&&(m=Z.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const f=Ke(e,m,v,g);$(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(h),right:Q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return He(e,t,o,a);case"cash_flow":return Ze(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -13,7 +13,7 @@ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
13
13
|
`,tt=_.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
position: relative;
|
|
16
|
-
`,st=_(
|
|
16
|
+
`,st=_(Re)`
|
|
17
17
|
padding: 12px;
|
|
18
18
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
19
19
|
cursor: ${e=>e.isSelected?"default":"pointer"};
|
|
@@ -49,7 +49,7 @@ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
49
49
|
width: 160px;
|
|
50
50
|
left: 63%;
|
|
51
51
|
}
|
|
52
|
-
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return
|
|
52
|
+
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1 1 auto;
|
|
55
55
|
min-height: 100%;
|
|
@@ -60,7 +60,7 @@ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
60
60
|
flex: 1 1 auto;
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
height: calc(100vh - ${w.sp10});
|
|
63
|
-
margin: ${e=>`${w.sp2} ${w.sp0} ${w.sp0} ${
|
|
63
|
+
margin: ${e=>`${w.sp2} ${w.sp0} ${w.sp0} ${I.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
|
|
64
64
|
`,pt=_.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
width: 100%;
|
|
@@ -98,14 +98,14 @@ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
98
98
|
`,mt=_(we)`
|
|
99
99
|
margin-top: ${w.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(Ce,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=C.getLocalizedStrings().reports.common,c=ge(),y=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:y,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,I)=>{d(l,A,N,I)},onTimeframeSelectionChanged:(A,N,I)=>{p?.(A,N,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:C.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const y=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,y,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(Ct,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:C.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(ye,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(yt,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(At,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ie,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:C.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=X.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),Ct=_.div`
|
|
102
|
-
padding-right: ${e=>
|
|
103
|
-
`,
|
|
101
|
+
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&H(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&H(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
|
+
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|
|
105
|
-
padding-right: ${e=>
|
|
105
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
106
106
|
`,xt=_.div`
|
|
107
107
|
margin-top: ${w.sp3};
|
|
108
|
-
padding-right: ${e=>
|
|
108
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
109
109
|
`,Ot=_.div`
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: row;
|
|
@@ -115,7 +115,7 @@ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
115
115
|
width: 100%;
|
|
116
116
|
align-items: center;
|
|
117
117
|
justify-content: center;
|
|
118
|
-
`,
|
|
118
|
+
`,Rt=_.div`
|
|
119
119
|
margin-top: ${w.sp4};
|
|
120
|
-
padding-right: ${e=>
|
|
120
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
121
121
|
`;export{Qt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as A,V as a,F as D,q as de,aK as Ae,b1 as Q,c as I,b as M,aV as J,o as m,p as g,aA as Ve,y as xe,bJ as ge,ak as T,bK as V,b8 as F}from"./index-DJLrbf0F.js";import{a as P,S as ee}from"./core-CA3j8Axi.js";import{n as x}from"./mui-DpJXlk4t.js";import{p as b,d as ae,y as W,b as N,g as re,u as R}from"./chartTypes-DRiSljvE-CN4L62GH.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID--oEGymMJ-DrPkDPTu.js";import{V as Z}from"./toChartData-CavJzP6f-B2iIF7nP.js";import{B as Re,C as te,X as le,Y as ne,T as se,L as pe,b as ce,c as me,d as fe}from"./recharts-BGdJnVo5.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]="3733e26a-9575-4941-99f0-4116b64efcd7",e._sentryDebugIdIdentifier="sentry-dbid-3733e26a-9575-4941-99f0-4116b64efcd7")}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};
|
|
@@ -13,23 +13,23 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
padding: ${m.sp3};
|
|
15
15
|
background-color: ${e=>e.theme.colors.black};
|
|
16
|
-
`,Xe=x(
|
|
16
|
+
`,Xe=x(T)`
|
|
17
17
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
18
18
|
text-align: left;
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: space-between;
|
|
22
|
-
`,qe=x(
|
|
22
|
+
`,qe=x(T)`
|
|
23
23
|
background-color: ${e=>e.color};
|
|
24
24
|
height: 12px;
|
|
25
25
|
width: 12px;
|
|
26
26
|
display: inline-block;
|
|
27
27
|
margin-right: ${m.sp2};
|
|
28
|
-
`,Ue=x(
|
|
28
|
+
`,Ue=x(T)`
|
|
29
29
|
text-align: left;
|
|
30
|
-
`,Ze=x(
|
|
30
|
+
`,Ze=x(T)`
|
|
31
31
|
text-align: right;
|
|
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:
|
|
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:`${R(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{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
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
|
|
45
|
+
`;function Rr({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(Re,{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;
|
|
@@ -51,16 +51,16 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: ${m.sp3};
|
|
53
53
|
background-color: ${e=>e.theme.colors.black};
|
|
54
|
-
`,
|
|
54
|
+
`,sa=x(T)`
|
|
55
55
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
56
56
|
text-align: left;
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: space-between;
|
|
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}: ${R(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
|
|
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(Re,{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;
|
|
@@ -98,21 +98,21 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
98
98
|
flex-direction: column;
|
|
99
99
|
padding: ${m.sp3};
|
|
100
100
|
background-color: ${e=>e.theme.colors.black};
|
|
101
|
-
`,Ne=x(
|
|
101
|
+
`,Ne=x(T)`
|
|
102
102
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
103
103
|
text-align: left;
|
|
104
104
|
display: flex;
|
|
105
105
|
justify-content: space-between;
|
|
106
106
|
${e=>e.showPercent?"flex-start":"center"};
|
|
107
|
-
`,
|
|
107
|
+
`,Ie=x(T)`
|
|
108
108
|
background-color: ${e=>e.color};
|
|
109
109
|
height: 12px;
|
|
110
110
|
width: 12px;
|
|
111
111
|
display: inline-block;
|
|
112
112
|
margin-right: ${m.sp2};
|
|
113
|
-
`,Ca=x(
|
|
113
|
+
`,Ca=x(T)`
|
|
114
114
|
text-align: left;
|
|
115
|
-
`,ja=x(
|
|
115
|
+
`,ja=x(T)`
|
|
116
116
|
text-align: left;
|
|
117
117
|
width: 120px;
|
|
118
118
|
`,va=x.div`
|
|
@@ -128,7 +128,7 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
128
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:
|
|
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:`${R(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?`${R(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?`${R(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:`${R(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")],Ta=x.div`
|
|
132
132
|
width: ${e=>e.width}px;
|
|
133
133
|
height: ${e=>e.height}px;
|
|
134
134
|
|
|
@@ -138,32 +138,32 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
138
138
|
margin-right: ${m.sp0} !important;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Ra=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:
|
|
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(Ta,{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(Ra,{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;
|
|
148
148
|
opacity: 0.85;
|
|
149
149
|
border-radius: ${m.sp1};
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
padding: ${m.sp3};
|
|
152
152
|
background-color: ${e=>e.theme.colors.black};
|
|
153
|
-
`,_e=x(
|
|
153
|
+
`,_e=x(T)`
|
|
154
154
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
155
155
|
text-align: left;
|
|
156
156
|
`,ue=x.div`
|
|
157
157
|
flex: 1;
|
|
158
158
|
text-align: right;
|
|
159
|
-
`,
|
|
159
|
+
`,Ea=x.div`
|
|
160
160
|
width: 162px;
|
|
161
|
-
`,
|
|
161
|
+
`,Ee=x.div`
|
|
162
162
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
163
163
|
width: 100%;
|
|
164
164
|
height: 1px;
|
|
165
165
|
background-color: ${g.neutralGrey3Dark};
|
|
166
|
-
`,
|
|
166
|
+
`,Ga=x(T)`
|
|
167
167
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
168
168
|
text-align: left;
|
|
169
169
|
display: flex;
|
|
@@ -186,21 +186,21 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
186
186
|
flex-direction: column;
|
|
187
187
|
padding: ${m.sp3};
|
|
188
188
|
background-color: ${e=>e.theme.colors.black};
|
|
189
|
-
`,Va=x(
|
|
189
|
+
`,Va=x(T)`
|
|
190
190
|
text-align: left;
|
|
191
191
|
width: 162px;
|
|
192
192
|
`,q=x(F)`
|
|
193
193
|
text-align: right;
|
|
194
194
|
flex: 1;
|
|
195
|
-
`,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(
|
|
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?`${R(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${R(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${R(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}: ${R(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${R(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
|
|
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;
|
|
202
202
|
flex-direction: column;
|
|
203
|
-
`,
|
|
203
|
+
`,cr=x.div`
|
|
204
204
|
display: flex;
|
|
205
205
|
background-color: ${e=>e.theme.colors.black};
|
|
206
206
|
opacity: 0.85;
|
|
@@ -220,10 +220,10 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
220
220
|
flex-direction: column;
|
|
221
221
|
padding: ${m.sp3};
|
|
222
222
|
background-color: ${e=>e.theme.colors.black};
|
|
223
|
-
`,hr=x(
|
|
223
|
+
`,hr=x(T)`
|
|
224
224
|
text-align: left;
|
|
225
225
|
width: 120px;
|
|
226
|
-
`,
|
|
226
|
+
`,Ge=x.div`
|
|
227
227
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
228
228
|
width: 100%;
|
|
229
229
|
height: 1px;
|
|
@@ -236,25 +236,25 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
236
236
|
flex-direction: column;
|
|
237
237
|
padding: ${m.sp3};
|
|
238
238
|
background-color: ${e=>e.theme.colors.black};
|
|
239
|
-
`,Me=x(
|
|
239
|
+
`,Me=x(T)`
|
|
240
240
|
color: ${e=>e.color??g.neutralGrey2Light};
|
|
241
241
|
text-align: left;
|
|
242
242
|
display: flex;
|
|
243
243
|
justify-content: space-between;
|
|
244
244
|
${e=>e.showPercent?"flex-start":"center"};
|
|
245
|
-
`,Ke=x(
|
|
245
|
+
`,Ke=x(T)`
|
|
246
246
|
background-color: ${e=>e.color};
|
|
247
247
|
height: 12px;
|
|
248
248
|
width: 12px;
|
|
249
249
|
display: inline-block;
|
|
250
250
|
margin-right: ${m.sp2};
|
|
251
|
-
`,gr=x(
|
|
251
|
+
`,gr=x(T)`
|
|
252
252
|
text-align: left;
|
|
253
253
|
`,pr=x.div`
|
|
254
254
|
display: flex;
|
|
255
255
|
flex-direction: column;
|
|
256
256
|
text-align: right;
|
|
257
|
-
`,
|
|
257
|
+
`,Se=x(F)`
|
|
258
258
|
text-align: right;
|
|
259
259
|
`,U=x(F)`
|
|
260
260
|
text-align: right;
|
|
@@ -263,7 +263,7 @@ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
263
263
|
`,Be=x(F)`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
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
|
|
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:`${R(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?`${R(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?`${R(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:`${R(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),Te=(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{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as
|
|
|
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
|
|
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"?Te(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Te(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{Rr as G,Nr as H,Wr as P,Ir as X,Er as Y};
|