@zeniai/web-cockpit-ui 1.15.17-dev → 1.15.18-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.
Files changed (296) hide show
  1. package/dist/assets/{ACHDetailsPage-cAgIhKJs-bGTsqigs.js → ACHDetailsPage-BrjUad4D-BobK3aVB.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BPwI4kZG-BTP4khzH.js → AIPerformancePage-Dx1ituql-CUuKvJ8n.js} +16 -16
  3. package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js → AccountInfoPageContent-BQxwZcii-DAnRLliM.js} +14 -14
  5. package/dist/assets/{AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js → AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js → AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js} +25 -25
  7. package/dist/assets/{AccountRow-C9lnDVNf-86hTjbuw.js → AccountRow-D3aEGfjh-CGXQQRag.js} +11 -11
  8. package/dist/assets/{AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js → AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js} +23 -23
  9. package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CgCHdO6c-CiVYqd0C.js → AddToWalletPage-DWMdtsY0-CgmcM53j.js} +24 -24
  11. package/dist/assets/{AgingReportsPage-B0NKfFq5-Bk4x7HpE.js → AgingReportsPage-CeFWs8X1-rGaFbgkD.js} +1 -1
  12. package/dist/assets/{AllUserItems-D6uMCcjF-CS_wO3mh.js → AllUserItems-PN_oWzOC-Cfg4W7I4.js} +8 -8
  13. package/dist/assets/{ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js → ApAgingDetailPage-CQtY9j4b-xFY56tWP.js} +5 -5
  14. package/dist/assets/{AppBasePage-BnfCjFJA-CQeMBbMI.js → AppBasePage-D0S7OYzO-CJcI9UYp.js} +13 -13
  15. package/dist/assets/{AppDrawerContent-CwBFjBnr-CKjzuecx.js → AppDrawerContent-TIRPcJoE-BOUb6qnD.js} +6 -6
  16. package/dist/assets/ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js +47 -0
  17. package/dist/assets/{ArAgingChart-6qcRcKoz-MYhKnyKG.js → ArAgingChart-CiNirxU7-C_J23wNp.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-DmUWtQsX-KXzejd7L.js → ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js} +5 -5
  19. package/dist/assets/{AttachmentView-B0oZITps-CNLEqH0L.js → AttachmentView-MqDuu6PB-C1zlk39q.js} +6 -6
  20. package/dist/assets/{BankAccountSection-C8G2PrLh-OgTv2VaB.js → BankAccountSection-DXFRyqzV-Bg8zqqhX.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js → BankAccountWarningSection-DJhHTBuh-D20FRc-x.js} +3 -3
  22. package/dist/assets/{BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js → BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js} +26 -26
  23. package/dist/assets/{BillDetailPage-BuCOe4eB-DBZDvMBw.js → BillDetailPage-B0ajOYxz-CTy3XK0i.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js → BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js → BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js} +14 -14
  26. package/dist/assets/{BillPayPromoPage-Dcly8epm-DNaDxuq-.js → BillPayPromoPage-tUxWWqMY-t6w7JDnT.js} +10 -10
  27. package/dist/assets/{BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js → BillPaySetUpPage-w47HuYkp-CbWSaNcn.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js → BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js} +1 -1
  30. package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +53 -0
  31. package/dist/assets/BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CHr49_cJ-9Ya6XjXp.js → CardNumberSubText-yVfOUJpr-DRIDUYcf.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-BNHzTYwa-BdAtNCNi.js → CashbackDetailPage-DAX8aTFq-CX_nfeg0.js} +9 -9
  34. package/dist/assets/{ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js → ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js → ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DBYEXr_N-7b006WJ7.js → ChargeCardListTable-DEYusOGZ-BR9KGK-S.js} +40 -40
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js → ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js} +40 -40
  38. package/dist/assets/ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js → ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js} +6 -6
  40. package/dist/assets/{ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js → ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js → CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-3luMEAJg-BroWF-FL.js → CollapsableReportTable-BQsDuqwg-D4PksJ7s.js} +60 -60
  43. package/dist/assets/CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-FgYHweiL-B5gr1lJ_.js → CompanyPassportCard-DUX32IvW-wDP-ayWY.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-Cp0oulai-BQFU8qYi.js +574 -0
  46. package/dist/assets/{CompleteProfile-6pDQ6JjU-C7odNMQ5.js → CompleteProfile-BdeEu2dc-DABogw0l.js} +3 -3
  47. package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js → ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js → CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js → CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js} +15 -15
  51. package/dist/assets/{CurrencySelectField-DL4q5vKR-DqpW0Wz5.js → CurrencySelectField-BNcLy0zv-DUL30Rmr.js} +3 -3
  52. package/dist/assets/{CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js → CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js → CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js} +13 -13
  55. package/dist/assets/CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js → CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js} +10 -10
  58. package/dist/assets/{Dashboard-DAP7UzjW-DBsJoK5k.js → Dashboard-DYpE_H2b-WMqZzzuP.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-iAA_QiN2-BfmuWrMe.js → DashboardReportPage-BB6dW8kR-BVA8DQgX.js} +10 -10
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js → DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js → DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js} +6 -6
  62. package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +66 -0
  63. package/dist/assets/{DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js → DomesticWireDetailsPage-CswDexXc-CwmUyTco.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-C8byijvE-DCI_09Q4.js → DownloadOverlay-Ck84lTok-DoSlSguE.js} +1 -1
  65. package/dist/assets/{DrawerPage-DMQ5MoIw-BlXGV-xV.js → DrawerPage-Ctqr9Qke-DbWbSJy7.js} +9 -9
  66. package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js → EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js} +37 -37
  68. package/dist/assets/{EntityDetailPage-20BKV_TK-B5sqJOYK.js → EntityDetailPage-BsCWH1Al-WFaE0WQF.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-6JSSyIPA-K01fPehF.js → EntitySummarySection-ntuao-VM-fobvDD6S.js} +23 -23
  70. package/dist/assets/{ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js → ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js} +14 -14
  71. package/dist/assets/{ExpenseAutomationPage--kONBcsX-DlY4RThk.js → ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js} +53 -53
  72. package/dist/assets/{ExpressPayPage-a31-5Bgz-B-4aw0li.js → ExpressPayPage-3UaLqRo7-BW2LLrbf.js} +14 -14
  73. package/dist/assets/{FeaturePreviewPage-z8BJQeL--ChibcOOA.js → FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-Bl933px0-DXKlKasr.js → FollowStepsSection-BY0dw_SN-iqWfg0Bg.js} +23 -23
  75. package/dist/assets/{GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js → GlobalReviewListPage-CltHFSzG-CQET8EIq.js} +11 -11
  76. package/dist/assets/{InformationCardStack-BTWe4X6t-DdN7cWvp.js → InformationCardStack-CVoS_Bni-DRMXWlfL.js} +4 -4
  77. package/dist/assets/{InsightsCardStack-CoSz_FKI-xRb_a3yi.js → InsightsCardStack-YcKupOZZ-BYS9QdSX.js} +10 -10
  78. package/dist/assets/{InsightsSection-DEnkGYD8-BV7sZQsr.js → InsightsSection-BuCEgcAh-DX4KP6Gi.js} +8 -8
  79. package/dist/assets/{IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js → IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js} +6 -6
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js → InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js} +14 -14
  81. package/dist/assets/InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js +292 -0
  82. package/dist/assets/{InviteFormPage-B2Rl23Qb-D49rnAc4.js → InviteFormPage-CrFWGpJE-DomTNTMP.js} +23 -23
  83. package/dist/assets/{InvitePageListView-E_2j_tF7-BsS6FATD.js → InvitePageListView-BsGwCg5B-DlrJVwFE.js} +39 -39
  84. package/dist/assets/InvitePeoplePage-D0-MjKb2-B1ShEIts.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-drGgAU5w-CP2A3IhR.js → InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js} +8 -8
  86. package/dist/assets/{IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js → IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js} +19 -19
  87. package/dist/assets/{LabeledAddressValue-BjCojNni-CsHQb5xA.js → LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DyHTdGlm-CErilABA.js → LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js} +4 -4
  89. package/dist/assets/{LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js → LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js} +2 -2
  90. package/dist/assets/{LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js → LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js} +4 -8
  91. package/dist/assets/LabeledDocumentField-BwHjf12U-ti56UUdB.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js → LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js} +1 -1
  93. package/dist/assets/{LabeledText-CRJr2zA8-DRZ423PA.js → LabeledText-CVYTNBOt-LIAQJcbl.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js → LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js → LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js} +20 -20
  96. package/dist/assets/{LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js → LinkJETransactionPage-DTU4Piv4-CzTizu8e.js} +14 -14
  97. package/dist/assets/{LockCardPage-CgCv-EKl-CipF6lcu.js → LockCardPage-9rnmj-hG-Dgtzvq-m.js} +49 -49
  98. package/dist/assets/{LowBalancePopup-OUWtUPdo-DRkjFCjE.js → LowBalancePopup-CCl7fzh9-CRJeCFG3.js} +3 -3
  99. package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js → MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js → MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js} +3 -3
  103. package/dist/assets/{MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js → MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js} +4 -4
  104. package/dist/assets/{MailingDetailsSection-Dmq45H_s-CjyySHTi.js → MailingDetailsSection-Dle_aLif-C9MEuFNg.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js → MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js} +12 -12
  106. package/dist/assets/MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js +6 -0
  107. package/dist/assets/{MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js → MyProfileSettingsPage-C70z69ea-CMxdjCdW.js} +9 -9
  108. package/dist/assets/{NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js → NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js} +4 -4
  109. package/dist/assets/{NavigationArrow-CNO4O4XS-DUm9WGAp.js → NavigationArrow-CWRgkV1y-5nUqXc-t.js} +1 -1
  110. package/dist/assets/{NavigationDots-BX9DbCj7-RHGokei7.js → NavigationDots-BDKBgUe6-CeOovYs1.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js → NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js} +13 -13
  112. package/dist/assets/{NoDataChart-JfED3unL-jJumSwoX.js → NoDataChart-CJyaj_wD-Ceo15OJ6.js} +1 -1
  113. package/dist/assets/{NoDataTable-BFpO3ZtS-ubjUd8M_.js → NoDataTable-BroHHbsa-C2KBPOR3.js} +1 -1
  114. package/dist/assets/{NotFoundPage-D_HhIdYv-DyNtigHQ.js → NotFoundPage-B-CdwYLM-04zajBZ5.js} +10 -10
  115. package/dist/assets/{NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js → NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js} +33 -33
  116. package/dist/assets/{NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js → NotificationsListConfig-Cl713fZg-qRofkxh7.js} +1 -1
  117. package/dist/assets/{NotificationsPage-7HqRmokr-0AvCCTrK.js → NotificationsPage-Dh4xulau-_5iAw31w.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-CwD1U9q_-idpf-eH0.js → OpExByVendorPage-BslfnDh3-53j8zSVl.js} +1 -1
  119. package/dist/assets/{OverlayContainerPage-D4QU0p4o-D2c2jURk.js → OverlayContainerPage-D4QU0p4o-CW30kf30.js} +1 -1
  120. package/dist/assets/{PandLWithForecastPage-CRkDr0QK-D1powlVT.js → PandLWithForecastPage-BYnaGvO3-Bs93z5El.js} +1 -1
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js +107 -0
  122. package/dist/assets/{PeoplePage-D5eQETB2-DZx25X-Y.js → PeoplePage-BRC7-Yol-C9rira3P.js} +18 -18
  123. package/dist/assets/{Preview-Bfns_dDG.js → Preview-BY6UeCTa.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BXPXaIWg-Av-oVPlG.js → ProductsCarousel-BgltUKwq-Dj-tP9zJ.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-C-S0ckZq-DcP7gArA.js → PromoBaseCards-DMleWayu-BFTkh-l1.js} +2 -2
  126. package/dist/assets/{QBOConnectionDialog-qqbamtpL-BeJJQ440.js → QBOConnectionDialog-BSKkJDPD-CJILPjk5.js} +6 -6
  127. package/dist/assets/{QBOSetupSection-CZu_mtMP-CZBINdYC.js → QBOSetupSection-YQ4TKOTA-B5TQNN0G.js} +13 -13
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js → ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js} +3 -3
  129. package/dist/assets/{ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js → ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js} +6 -6
  130. package/dist/assets/{ReimbursementDetailPage-DXMDyCop-DlZGIADX.js → ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-DGXHkiBN-DLifue2f.js → ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js} +11 -11
  132. package/dist/assets/{ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js → ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js} +15 -15
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js → ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js} +1 -1
  134. package/dist/assets/{ReloadCard-BJke_yPt-D_L8D7X-.js → ReloadCard-B3OtOvVI-DVK4TeBa.js} +6 -6
  135. package/dist/assets/{ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js → ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js} +28 -28
  136. package/dist/assets/{ReportsPage-bmKftmYF-NgXuxPpu.js → ReportsPage-SWC6uIs--DupC08g-.js} +1 -1
  137. package/dist/assets/{RevenueChart-DjTdsbym-CUUEbo6t.js → RevenueChart-CZlAswBG-DPlV94YS.js} +14 -14
  138. package/dist/assets/{ReviewDetailsPage-NFOdusAU-CVH2L4to.js → ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js} +20 -20
  139. package/dist/assets/{ReviewOverlay-Q8tlLMbm-BLu76gBy.js → ReviewOverlay-BhFwGG6t-C0m5jD2s.js} +14 -14
  140. package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js → ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js} +13 -13
  142. package/dist/assets/{ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js → ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js → ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js} +25 -25
  144. package/dist/assets/{ScreenRoutes-0NyWgCAY.js → ScreenRoutes-D3PxnqOE.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-BCoHzvyG-CzNKWW7X.js → SetUpAccountSection-DM4CvIFN-CPQ8K94t.js} +7 -7
  146. package/dist/assets/{SignIn-k3DDmpFU-BAnREigf.js → SignIn-DU3HuwJr-CXMwOpi4.js} +26 -26
  147. package/dist/assets/SignInScreen-PoBHP4-4.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js → SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js} +11 -11
  149. package/dist/assets/{SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js → SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js} +27 -27
  150. package/dist/assets/{SpendManagementSection-BRp2eDfv-DVKGvM7g.js → SpendManagementSection-C2Uw6UXF-BRw2L3H1.js} +7 -7
  151. package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +31 -0
  152. package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +58 -0
  153. package/dist/assets/{StatusSwitcher-B5nSXHv6-DTMRsMtw.js → StatusSwitcher-RY35Qzlp-DPptYPVp.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-BPSCR7GS-CQQ30d6t.js → SubTabSwitcher-CIhSt1_V-BGyVDCoP.js} +3 -3
  155. package/dist/assets/{SummaryCard-DdYMAiws-C4w7QxN_.js → SummaryCard-iIQISRZL-Cx0NyzVM.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-9OEooDk9-BnhlYqUu.js → TaskManagementPage-CCC1QlZS-BHBkMyad.js} +30 -30
  157. package/dist/assets/{TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js → TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js → TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js → TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js} +2 -2
  160. package/dist/assets/{TopExCard-CDAkgH2B-DQW-zWxw.js → TopExCard-CPsxq74q-662cwF8z.js} +4 -4
  161. package/dist/assets/{TopExDetailPage-BN9IdTkO-DE8PmHT3.js → TopExDetailPage-BGoq66Fs-0PJ8BVQb.js} +9 -9
  162. package/dist/assets/{TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js → TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js} +12 -12
  163. package/dist/assets/{TransactionDetailPage-DSR3itvE-B47s770o.js → TransactionDetailPage-D0tW8GIH-C00b9e62.js} +35 -35
  164. package/dist/assets/{TransactionList-wLBz-A1j-R5pqCBUj.js → TransactionList-T8gAOJc0-Dw9G55NV.js} +5 -5
  165. package/dist/assets/{TransactionListBig-BA00B8Vn-B52eXfHk.js → TransactionListBig-CMjxUKt2-BhSVq9fm.js} +7 -7
  166. package/dist/assets/{TransactionListPage-Dyi4SMpD-Bm97EAJv.js → TransactionListPage-Bx6qszUl-B-5CDbC_.js} +2 -2
  167. package/dist/assets/{TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js → TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js} +16 -16
  168. package/dist/assets/{TransferDrawerPage-GnqDJJ7x-u45NHhBy.js → TransferDrawerPage-DG6q94Ch-Cqord4XL.js} +28 -28
  169. package/dist/assets/{TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js → TreasuryOverviewPage-YNlUL3px-B_35sSeA.js} +32 -32
  170. package/dist/assets/{TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js → TreasuryPromoPage-CBSYXvme-DpMWnl6i.js} +8 -8
  171. package/dist/assets/{TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js → TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js} +1 -1
  172. package/dist/assets/{TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js → TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js} +1 -1
  173. package/dist/assets/{TrendChart-mamZxFEf-DPlJCKYL.js → TrendChart-DjKmnpsm-CS6VXx1C.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-fGuXIDf7-HyuIbA66.js → TrendWithTransactions-D2CSrQJG-DdbpQrSL.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js → UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js} +15 -15
  176. package/dist/assets/{UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js → UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js} +7 -7
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js → UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-BreN6fS3-FjXbhU9D.js → Vendor2FAPopup-BogFaSYy-BlnTHqfY.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DXKn3qSR-Di8ThCGh.js → VendorDetailPage-DRr5ci0V-Du2p3ojh.js} +86 -86
  181. package/dist/assets/{VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js → VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js → VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js} +14 -14
  183. package/dist/assets/{VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js → VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js} +33 -33
  184. package/dist/assets/{VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js → VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js} +10 -10
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js → VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js} +2 -2
  187. package/dist/assets/{VerifyDevice-DxoL8hYf-Cowpahhc.js → VerifyDevice-DrXK_7gG-CEX4QcR9.js} +7 -7
  188. package/dist/assets/{VideoPlayer-ByXKIag5-BZsoWnFe.js → VideoPlayer-BZe4PqnR-CX1XPKSp.js} +2 -2
  189. package/dist/assets/{VideoPopup-DybLGmZL-CNsVI5bc.js → VideoPopup-BaEQAfak-DFKT4R55.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js → WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js} +7 -7
  191. package/dist/assets/{ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js → ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js} +24 -24
  192. package/dist/assets/{ZeniAccountListViewPage-CWvKejM--BPGukJA_.js → ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js} +11 -11
  193. package/dist/assets/{ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js → ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js} +3 -3
  194. package/dist/assets/{ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js → ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js} +16 -16
  195. package/dist/assets/{ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js → ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js} +4 -4
  196. package/dist/assets/{ZeniCopyright-CyBZnbZa-D5SmAZYL.js → ZeniCopyright-k2F7p5Nn-CWJt4f_H.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js → ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-l6e6C-pa.js → add-to-wallet-DgdBD8_G-CNvnwL2z.js} +1 -1
  199. package/dist/assets/{analytics-DGcxWyl6.js → analytics-rms9goNI.js} +1 -1
  200. package/dist/assets/{analyticsHelper-BcBQi1qY.js → analyticsHelper-DTNFmelW.js} +1 -1
  201. package/dist/assets/{analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js → analyticsHelper-e2zBYls0-DsW-gRIg.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-C0A9x354.js → arrow-south-east-round-PEovUgvH-DpZb0ICZ.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CC0rbz99.js → auto-transfer-rule-mbafm5D3-CBISKKCi.js} +1 -1
  204. package/dist/assets/{chartTypes-CnipzTeX-DGSU_TZ0.js → chartTypes-D0t0a86R-VgxTrMCK.js} +1 -1
  205. package/dist/assets/{commonDimensions-DmFc7WqO-CxyyXmLy.js → commonDimensions-BwCds81U-kEodPKRG.js} +1 -1
  206. package/dist/assets/{constants-jbgzJYdx.js → constants-C3kp1fkP.js} +1 -1
  207. package/dist/assets/{core-BMaLzXUJ.js → core-B_30foAD.js} +1 -1
  208. package/dist/assets/{dash.all.min-DmpFQIVa.js → dash.all.min-3-z_MPR8.js} +1 -1
  209. package/dist/assets/{detailCommon-x-UFksNz-DKaz3zHe.js → detailCommon-CFEglqRw-DcI3Dm8c.js} +6 -6
  210. package/dist/assets/{downloadPdf-D1grj9oX-Bei5Wpqc.js → downloadPdf-BfjQscZh-CeCugFTI.js} +1 -1
  211. package/dist/assets/{empty-CxyNypVD.js → empty-BB-5X2tp.js} +1 -1
  212. package/dist/assets/{empty-DJguQx7A.js → empty-DyZfcN1I.js} +1 -1
  213. package/dist/assets/epic-CXeU0a14.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-ZuOwWA2g.js → gift-box-Cmt9OgIZ-tVleHIYS.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js → graphic-no-data-l-DU4J8fDt-CYR0rF_u.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js → graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-DiPOUMao.js → handshake-BPg58FML-DRFlkqA2.js} +1 -1
  218. package/dist/assets/{index-CQmr12-Z.js → index-4xstgUx1.js} +1 -1
  219. package/dist/assets/{index-C3zM8gb6.js → index-BCh0qUkM.js} +1 -1
  220. package/dist/assets/{index-rJQoaAfw.js → index-BR9aIv1A.js} +2758 -2774
  221. package/dist/assets/{index-tuFs6sMC.js → index-BhfvNbOl.js} +1 -1
  222. package/dist/assets/{index-DKka6liW.js → index-BoyomC_-.js} +1 -1
  223. package/dist/assets/{index-Dw_2FdYw.js → index-DVfmIUIY.js} +1 -1
  224. package/dist/assets/{index-DPwk4vO3.js → index-DgHTMbc3.js} +1 -1
  225. package/dist/assets/{lexical-CyZM9SwL.js → lexical-CcL2Fd1i.js} +1 -1
  226. package/dist/assets/{liveblocks-CohL7dW6.js → liveblocks-B8f0lmpe.js} +1 -1
  227. package/dist/assets/{lottie-XKgYVRq1.js → lottie-CbICbNKh.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js → mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +1 -0
  231. package/dist/assets/{mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js → mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js} +1 -1
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js} +1 -1
  234. package/dist/assets/{mui-KNfEk2A1.js → mui-C7Q1opAD.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-BLbwsJjf.js → page-detail-CWX5S47F-DfEuZBUZ.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js → panelSelectedMixin-CzfD5-Zs-Udxivyx_.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-_DAtDxCX.js → radio-default-CiSgisfh-VWYNvRzB.js} +1 -1
  238. package/dist/assets/{react-DOhUJ6O2.js → react-B1skuV78.js} +1 -1
  239. package/dist/assets/{react-KKmCM6TX.js → react-C5VDu1Xe.js} +2 -2
  240. package/dist/assets/{react-CPz-xjGo.js → react-CEhgfqKO.js} +2 -2
  241. package/dist/assets/{react-H0CMmi2N.js → react-D-QPbFx5.js} +1 -1
  242. package/dist/assets/{react-Cbh1mkS2.js → react-DODYMrDc.js} +1 -1
  243. package/dist/assets/{react-wx6Np1L0.js → react-OE6vDDlS.js} +1 -1
  244. package/dist/assets/{react-CX71OnYA.js → react-gaSEjZmU.js} +1 -1
  245. package/dist/assets/{react-CfuDRhRn.js → react-zf2AM5gr.js} +1 -1
  246. package/dist/assets/{recharts-D8Mh9GJw.js → recharts-v_b66Qfi.js} +1 -1
  247. package/dist/assets/{sentry-CGE1ab0x.js → sentry-BwoJfpTa.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-BeHXxYmi.js → shield-DOlUxcFf-DlZ9ml05.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +1 -0
  250. package/dist/assets/{toChartData-VTidOIL7-CTZNeqK0.js → toChartData-BVSCRQYT-CU2W4nbR.js} +1 -1
  251. package/dist/assets/{uploadAttachment-CwSRD9la-Dwn2_OC8.js → uploadAttachment-D3ybtHtR-D84dG_-j.js} +30 -30
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-COPT6pnG.js → uploadReceipts-Dge0cNF1-C6WyXewN.js} +1 -1
  253. package/dist/assets/{url-D3fzoRiq.js → url-BcaeVwpg.js} +1 -1
  254. package/dist/assets/{url-CxS4k21H.js → url-o9j2r9Zq.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-YmFx62lI.js → useLongPress-GCK2COYQ-CM12epgA.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-lvUUHuIi.js → usp-line-BBd1wKwW-Cyu4xp0r.js} +1 -1
  257. package/dist/assets/{utils-Co3Y654K.js → utils-C75CTJHa.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-CiJSQQSe.js → zeni-epic-state-Deo9yJpd.js} +17 -17
  259. package/dist/index.html +1 -1
  260. package/package.json +3 -3
  261. package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +0 -18
  262. package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +0 -6
  263. package/dist/assets/ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js +0 -47
  264. package/dist/assets/BillingSettingsPage-Djx3EUQO-2EyCLMZp.js +0 -44
  265. package/dist/assets/BoxItem-ClRdlCWM-B_aqSV-L.js +0 -53
  266. package/dist/assets/BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js +0 -138
  267. package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +0 -222
  268. package/dist/assets/CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js +0 -331
  269. package/dist/assets/CompanyPassportPage-B8LoE1o9-B6zE-V-E.js +0 -417
  270. package/dist/assets/ConfettiBurst-BAIozwVU-BMA4g7cW.js +0 -1
  271. package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +0 -1
  272. package/dist/assets/CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js +0 -66
  273. package/dist/assets/CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js +0 -107
  274. package/dist/assets/DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js +0 -66
  275. package/dist/assets/EditPeoplePage-D7TQFFBG-Djz1uJLh.js +0 -55
  276. package/dist/assets/InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js +0 -65
  277. package/dist/assets/InvitePeoplePage-CljSsdaM-DHNLTMCH.js +0 -12
  278. package/dist/assets/LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js +0 -237
  279. package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +0 -41
  280. package/dist/assets/LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js +0 -223
  281. package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +0 -1
  282. package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +0 -1
  283. package/dist/assets/MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js +0 -6
  284. package/dist/assets/PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js +0 -107
  285. package/dist/assets/RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js +0 -22
  286. package/dist/assets/SignInScreen-BOrZAIYm.js +0 -1
  287. package/dist/assets/StatementItem-9DHoMBjx-DlzvIjc2.js +0 -31
  288. package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +0 -58
  289. package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +0 -1
  290. package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +0 -1
  291. package/dist/assets/commonTypes-CU0qY6Px-ZdnVolMx.js +0 -1
  292. package/dist/assets/epic-DJmh-RNR.js +0 -2
  293. package/dist/assets/mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js +0 -1
  294. package/dist/assets/mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js +0 -1
  295. package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +0 -1
  296. package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +0 -1
@@ -1,29 +1,29 @@
1
- import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as n,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-rJQoaAfw.js";import{a as u,P as ue}from"./sentry-CGE1ab0x.js";import{n as d}from"./mui-KNfEk2A1.js";import{R as D,I as Te}from"./CollapsableReportTable-3luMEAJg-BroWF-FL.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]="9f1d5e68-e977-46af-a98d-ca9ab5243e29",e._sentryDebugIdIdentifier="sentry-dbid-9f1d5e68-e977-46af-a98d-ca9ab5243e29")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
- padding: 0 ${n.sp3} 0 ${n.sp3};
1
+ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as a,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-BR9aIv1A.js";import{a as u,P as ue}from"./sentry-BwoJfpTa.js";import{n as d}from"./mui-C7Q1opAD.js";import{R as D,I as Te}from"./CollapsableReportTable-BQsDuqwg-D4PksJ7s.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]="b18185d3-f007-4e54-8c6b-363d1e5e7f27",e._sentryDebugIdIdentifier="sentry-dbid-b18185d3-f007-4e54-8c6b-363d1e5e7f27")}catch{}})();const R=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
+ padding: 0 ${a.sp3} 0 ${a.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
5
- border-radius: ${n.sp1};
5
+ border-radius: ${a.sp1};
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
9
  position: relative;
10
- height: ${n.sp8};
10
+ height: ${a.sp8};
11
11
  cursor: pointer;
12
- `,Me=d(Oe)`
12
+ `,Ve=d(Oe)`
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  margin-top: -2px;
15
- `,Re=d(Fe)`
15
+ `,Me=d(Fe)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  width: 12px;
18
18
  height: 12px;
19
- margin: auto ${n.sp0};
19
+ margin: auto ${a.sp0};
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function We({backgroundColor:e,foregroundColor:r,animated:a,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:a,parentNodeIDs:t}){const l=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function Ye(e,r){const a=e.map((t,l)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...a]}}function He(e,r){Object.assign(e.config,r);const a=e.contentNodes;return a.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...a]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(a=>fe(a,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},Ge=d.div`
23
+ `,Re=e=>{const{value:r,onClick:n}=e,t=ee();return o.jsxs(Le,{onClick:n,children:[o.jsx(Ve,{style:{color:t.colors.primary},children:r}),o.jsx(Me,{})]})},ze=ue.memo(Re);function Ye({backgroundColor:e,foregroundColor:r,animated:n,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:n!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:a.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:n,parentNodeIDs:t}){const l=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function He(e,r){const n=e.map((t,l)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...n]}}function We(e,r){Object.assign(e.config,r);const n=e.contentNodes;return n.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...n]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(n=>fe(n,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},Ge=d.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,Je=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:F})=>{const z=ee(),W=de(),[v,j]=u.useState(void 0),[A,w]=u.useState(!1),[L,T]=u.useState({}),[m,M]=u.useState(void 0),[B,k]=u.useState(l),Y="none",E=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),T(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=H(c);for(const b of g.children)F?.(b.classId,i),$(b.classId,i)},H=c=>{let i=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(b=>b.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=H(c.slice(1));let g=!1;for(const b of i.children)if(t.find(J=>J[0]===b.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),T(i.classId)}};u.useEffect(()=>{A&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:Y,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if(v==null||!X(m,a)||!X(B,l)||A===!0){const i=Ye(a,c);M(a),j(i),k(l)}else{const i=He(v,c);j(i),k(l)}},[a,l,t]);const[q,Z]=u.useState(5),K=c=>{const i=c+f[6];Z(i)};return v!=null?o.jsx(Ge,{height:q,children:o.jsx(Te,{backgroundColor:l==="classes"?new De(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(W),right:se.contentPaddingRight.value(W)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:I,onReportTableHeightChanged:K})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},Ue=d.div`
26
+ `,Je=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:F})=>{const z=ee(),Y=de(),[v,j]=u.useState(void 0),[A,w]=u.useState(!1),[L,T]=u.useState({}),[m,V]=u.useState(void 0),[B,k]=u.useState(l),H="none",E=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),T(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=W(c);for(const b of g.children)F?.(b.classId,i),$(b.classId,i)},W=c=>{let i=n.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(b=>b.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=W(c.slice(1));let g=!1;for(const b of i.children)if(t.find(J=>J[0]===b.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),T(i.classId)}};u.useEffect(()=>{A&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:H,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if(v==null||!X(m,n)||!X(B,l)||A===!0){const i=He(n,c);V(n),j(i),k(l)}else{const i=We(v,c);j(i),k(l)}},[n,l,t]);const[q,Z]=u.useState(5),K=c=>{const i=c+f[6];Z(i)};return v!=null?o.jsx(Ge,{height:q,children:o.jsx(Te,{backgroundColor:l==="classes"?new De(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(Y),right:se.contentPaddingRight.value(Y)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:I,onReportTableHeightChanged:K})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},Ue=d.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
29
  `,qe=d.div`
@@ -44,13 +44,13 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
44
44
  color: ${e=>e.theme.colors.primary};
45
45
  }
46
46
  }
47
- gap: ${n.sp2};
47
+ gap: ${a.sp2};
48
48
  margin-top: 12px;
49
49
  align-items: center;
50
50
  `,Ke=d(Ie)`
51
51
  color: ${e=>e.theme.colors.hero};
52
- width: ${n.sp4};
53
- height: ${n.sp4};
52
+ width: ${a.sp4};
53
+ height: ${a.sp4};
54
54
  &:hover {
55
55
  color: ${e=>e.theme.colors.primary};
56
56
  }
@@ -61,12 +61,12 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
61
61
  justify-content: space-between;
62
62
  flex-direction: column;
63
63
  border: 1px solid ${e=>e.theme.colors.grey5};
64
- border-radius: ${n.sp1};
65
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
64
+ border-radius: ${a.sp1};
65
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp2} ${e.theme.colors.dropShadowHover}`};
66
66
  margin-top: 10px;
67
- padding-top: ${n.sp1};
67
+ padding-top: ${a.sp1};
68
68
  background: ${e=>e.theme.colors.grey5};
69
- `,ae=d.div`
69
+ `,ne=d.div`
70
70
  display: flex;
71
71
  align-items: flex-start;
72
72
  justify-content: space-between;
@@ -78,13 +78,13 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
78
78
  -moz-appearance: none;
79
79
  appearance: none;
80
80
  display: inline-block;
81
- width: ${n.sp3};
82
- height: ${n.sp3};
81
+ width: ${a.sp3};
82
+ height: ${a.sp3};
83
83
  padding: 2px;
84
84
  background-clip: content-box;
85
85
  border: 1px solid ${e=>e.theme.colors.primary};
86
86
  border-radius: 50%;
87
- margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
87
+ margin: ${a.sp0} ${a.sp2} ${a.sp0} ${a.sp2};
88
88
  cursor: pointer;
89
89
  }
90
90
 
@@ -99,8 +99,8 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
99
99
  &:hover {
100
100
  background: ${e=>e.theme.colors.background};
101
101
  }
102
- `,ne=d(Ne)`
103
- height: ${n.sp6};
102
+ `,ae=d(Ne)`
103
+ height: ${a.sp6};
104
104
  display: flex;
105
105
  justify-content: center;
106
106
  align-items: center;
@@ -126,8 +126,8 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
126
126
  `,oo=d(he)`
127
127
  display: flex;
128
128
  align-items: center;
129
- column-gap: ${n.sp2};
130
- margin-left: ${n.sp5};
129
+ column-gap: ${a.sp2};
130
+ margin-left: ${a.sp5};
131
131
  color: ${e=>e.theme.colors.hero};
132
132
  &:hover {
133
133
  cursor: pointer;
@@ -141,10 +141,10 @@ import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
141
141
  min-height: 1px;
142
142
  max-height: 1px;
143
143
  `,so=d(Se)`
144
- width: ${n.sp3};
145
- height: ${n.sp3};
146
- `,ao=d(he)`
147
- margin-left: ${n.sp5};
144
+ width: ${a.sp3};
145
+ height: ${a.sp3};
146
+ `,no=d(he)`
147
+ margin-left: ${a.sp5};
148
148
  margin-top: -12px;
149
149
  color: ${e=>e.theme.colors.hero};
150
- `,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:U,downloadPage:F,showAccountGroups:z=!0,onResyncReports:W,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const A=ee(),w=de(),[L,T]=u.useState(!1),[m,M]=u.useState(l),[B,k]=u.useState({}),Y=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=Y(x.children,p)}),p),E=Y(a,[]),[I,$]=u.useState(m==="classes"?h:E),H=t!=="Completed"||m==="classes"&&I.length===E.length,G=u.useRef(!1),[q,Z]=u.useState(!1),K=u.useRef(s=>{s&&!G.current&&(G.current=!0,Z(!0))});xe({componentName:`reports.${e}`,enabled:q});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{T(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),b=s=>{if(M(s),s==="classes")k({}),$([]);else{$(E);let p={};a.forEach(x=>{const S=D("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},J=()=>{L===!0&&Q(),T(!L);let s={};a.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),k(s)},me=(s,p,x)=>{if(x===!0&&(M("classes"),$(E)),p===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,k(B),$(R=>R.filter(be=>be[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{T(!1),M(l),$(h)},ge=()=>{v===!1&&W?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(Ue,{ref:K.current,isDisabled:U??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),J()}}):o.jsxs(qe,{windowSize:w,children:[o.jsxs(Ze,{onClick:s=>{s.preventDefault(),_?.(),J()},children:[o.jsx(Ke,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ae,{checked:m==="account_group",children:o.jsxs(ne,{onClick:()=>m!=="account_group"?b("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>b(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ae,{checked:m==="classes",children:[o.jsxs(ne,{onClick:()=>t==="Completed"?b("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?b(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(ao,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(no,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:B,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(We,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:H,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const no=ue.memo(Je,X);export{ho as g,uo as x};
150
+ `,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:n,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:U,downloadPage:F,showAccountGroups:z=!0,onResyncReports:Y,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const A=ee(),w=de(),[L,T]=u.useState(!1),[m,V]=u.useState(l),[B,k]=u.useState({}),H=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=H(x.children,p)}),p),E=H(n,[]),[I,$]=u.useState(m==="classes"?h:E),W=t!=="Completed"||m==="classes"&&I.length===E.length,G=u.useRef(!1),[q,Z]=u.useState(!1),K=u.useRef(s=>{s&&!G.current&&(G.current=!0,Z(!0))});xe({componentName:`reports.${e}`,enabled:q});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{T(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),b=s=>{if(V(s),s==="classes")k({}),$([]);else{$(E);let p={};n.forEach(x=>{const S=D("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},J=()=>{L===!0&&Q(),T(!L);let s={};n.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),k(s)},me=(s,p,x)=>{if(x===!0&&(V("classes"),$(E)),p===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,k(B),$(M=>M.filter(be=>be[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,I.find(M=>M[0]===s[0])===void 0&&$(M=>[...M,s])}},Q=()=>{T(!1),V(l),$(h)},ge=()=>{v===!1&&Y?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};n.forEach(p=>{const x=D("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(Ue,{ref:K.current,isDisabled:U??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),J()}}):o.jsxs(qe,{windowSize:w,children:[o.jsxs(Ze,{onClick:s=>{s.preventDefault(),_?.(),J()},children:[o.jsx(Ke,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ne,{checked:m==="account_group",children:o.jsxs(ae,{onClick:()=>m!=="account_group"?b("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>b(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ne,{checked:m==="classes",children:[o.jsxs(ae,{onClick:()=>t==="Completed"?b("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?b(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(no,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(ao,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:B,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(Ye,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:a.sp3}})})]})})}):null]})})}const ao=ue.memo(Je,X);export{ho as g,uo as x};
@@ -1,4 +1,4 @@
1
- import{J as W,e as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,D as A,aD as K,U as xe,aV as Oe,as as Re,bL as Ae}from"./index-rJQoaAfw.js";import{a as T,P as X}from"./sentry-CGE1ab0x.js";import{n as _}from"./mui-KNfEk2A1.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-CiJSQQSe.js";import{m as z,l as q}from"./analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js";import{x as Ne}from"./ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js";import{M as Me}from"./TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-C8byijvE-DCI_09Q4.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-3luMEAJg-BroWF-FL.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js";import"./page-detail-CWX5S47F-BLbwsJjf.js";import"./AccountRow-C9lnDVNf-86hTjbuw.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]="fd2dc458-64e9-4123-8ccb-91e08143a208",e._sentryDebugIdIdentifier="sentry-dbid-fd2dc458-64e9-4123-8ccb-91e08143a208")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
1
+ import{J as W,e as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,D as A,aD as K,A as xe,aV as Oe,as as Re,bL as Ae}from"./index-BR9aIv1A.js";import{a as T,P as X}from"./sentry-BwoJfpTa.js";import{n as _}from"./mui-C7Q1opAD.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-Deo9yJpd.js";import{m as z,l as q}from"./analyticsHelper-e2zBYls0-DsW-gRIg.js";import{x as Ne}from"./ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Ck84lTok-DoSlSguE.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-BQsDuqwg-D4PksJ7s.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";import"./TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js";import"./page-detail-CWX5S47F-DfEuZBUZ.js";import"./AccountRow-D3aEGfjh-CGXQQRag.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]="d2554279-83ec-429c-999a-e6d2a06195b3",e._sentryDebugIdIdentifier="sentry-dbid-d2554279-83ec-429c-999a-e6d2a06195b3")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
@@ -1,4 +1,4 @@
1
- import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-rJQoaAfw.js";import{a as P,P as ee}from"./sentry-CGE1ab0x.js";import{n as x}from"./mui-KNfEk2A1.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CnipzTeX-DGSU_TZ0.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BcVCEfwr-D-kim1rY.js";import{V as Q}from"./toChartData-VTidOIL7-CTZNeqK0.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-D8Mh9GJw.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]="0b6af504-0b79-44d2-b978-e84822856f91",e._sentryDebugIdIdentifier="sentry-dbid-0b6af504-0b79-44d2-b978-e84822856f91")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-BR9aIv1A.js";import{a as P,P as ee}from"./sentry-BwoJfpTa.js";import{n as x}from"./mui-C7Q1opAD.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-D0t0a86R-VgxTrMCK.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js";import{V as Q}from"./toChartData-BVSCRQYT-CU2W4nbR.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-v_b66Qfi.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]="349c91e9-ec72-4cbc-ba1f-4e17f797d24f",e._sentryDebugIdIdentifier="sentry-dbid-349c91e9-ec72-4cbc-ba1f-4e17f797d24f")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -29,7 +29,7 @@ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
29
29
  text-align: left;
30
30
  `,Qe=x(R)`
31
31
  text-align: right;
32
- `,Ze=({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(Qe,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Ze({...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?Q(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
32
+ `,Ze=({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(Qe,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Ze({...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 s=b("cash_in","actual"),c=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[f]=h,p!=null?Q(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 D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
42
42
  `,oa=x(ge)`
43
43
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
44
44
  color: ${e=>e.theme.colors.primary};
45
- `;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=[c.colors.graphColor33,c.colors.graphColor36,c.colors.graphColor35],p=(_,w=c.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!s.current;_.push(a.jsx(ce,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};s?.(d[v],r,S)},L=c?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
45
+ `;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],p=(_,w=s.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&&!c.current;_.push(a.jsx(se,{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:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.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}};c?.(d[v],r,S)},L=s?(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(Z,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?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(ce,{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,s?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 D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
51
51
  flex-direction: column;
52
52
  padding: ${m.sp3};
53
53
  background-color: ${e=>e.theme.colors.black};
54
- `,sa=x(R)`
54
+ `,ca=x(R)`
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
- `,ca=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=ca(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(sa,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Q(e,r,o,l):void 0},da=x.div`
60
+ `,sa=({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=sa(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(ca,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Q(e,r,o,l):void 0},da=x.div`
61
61
  width: ${e=>e.width}px;
62
62
  height: ${e=>e.height}px;
63
- `,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!s.current;d.push(a.jsx(ce,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:c.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};s?.(p[k],r,j)},C=c?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
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 s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!c.current;d.push(a.jsx(se,{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:s.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:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!s||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}};c?.(p[k],r,j)},C=s?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?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(ce,{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;
@@ -128,7 +128,7 @@ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
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:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),c=b("cogs","actual"),s=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case c:case s:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],c=[],s=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(c=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:c.length>0?d:s.length>0?y:void 0,C={};return C[p]=h,C[d]=c,C[y]=s,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Q(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const c=b("income","forecast"),s=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[c]=o,d[s]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
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"),s=b("cogs","actual"),c=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 s:case c:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],s=[],c=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(s=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=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:s.length>0?d:c.length>0?y:void 0,C={};return C[p]=h,C[d]=s,C[y]=c,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Q(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 s=b("income","forecast"),c=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[s]=o,d[c]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
132
132
  width: ${e=>e.width}px;
133
133
  height: ${e=>e.height}px;
134
134
 
@@ -141,7 +141,7 @@ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
141
141
  `,Ta=x(ge)`
142
142
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
143
143
  color: ${e=>e.theme.colors.primary};
144
- `;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor36,s.colors.graphColor06,s.colors.graphColor31,s.colors.graphColor12],d=[s.colors.graphColor04,s.colors.graphColor10,s.colors.graphColor32,s.colors.graphColor13,s.colors.graphColor04Dark,s.colors.graphColor10Dark,s.colors.graphColor32Dark,s.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=s.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
144
+ `;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=c.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(se,{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:s,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.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}};c?.(y[v],r,S)},L=s?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?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(ce,{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,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
145
145
  display: flex;
146
146
  `,Ia=x.div`
147
147
  flex: display;
@@ -192,15 +192,15 @@ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
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(c=>c.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let c;if(t.includes("forecast")!==!0){c=l.record[t]!=null?Ha(t,l):void 0;const s={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(s.amount+=l.record[p].amount?.amount??0,s.currencyCode=C!=null?C.currencyCode:s.currencyCode,s.currencySymbol=C!=null?C.currencySymbol:s.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((s?.amount-f?.amount)*100/100),y={...s,amount:d},_=f.amount!==0?Math.floor((s.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:c,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:s,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Qa=ee.memo(Ua),Za=(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?Q(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?Q(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`
195
+ `,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(s=>s.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 s;if(t.includes("forecast")!==!0){s=l.record[t]!=null?Ha(t,l):void 0;const c={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")?(c.amount+=l.record[p].amount?.amount??0,c.currencyCode=C!=null?C.currencyCode:c.currencyCode,c.currencySymbol=C!=null?C.currencySymbol:c.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((c?.amount-f?.amount)*100/100),y={...c,amount:d},_=f.amount!==0?Math.floor((c.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:s,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:c,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Qa=ee.memo(Ua),Za=(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?Q(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 s=G(h.accountGroupName,"actual",h),c=b(h.accountGroupName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const s=G(h.account.accountName,"actual",h.account.balancesInTimeframe),c=b(h.account.accountName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,s=G(h,"actual",t);if(s.length!==0){const c=b(h,"actual");o[c]=s,l=c,n.push(c)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Q(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
196
196
  width: ${e=>e.width}px;
197
197
  height: ${e=>e.height}px;
198
- `,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=P.useRef(!1),[f,p]=P.useState(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):Za(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(Qa,{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(Z,{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`
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:s}){const c=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{c.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):Za(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(se,{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=!c.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(Qa,{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:s,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!s||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}};c?.(d[k],r,j)},C=s?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?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(ce,{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
- `,sr=x.div`
200
+ `,cr=x.div`
201
201
  display: flex;
202
202
  flex-direction: column;
203
- `,cr=x.div`
203
+ `,sr=x.div`
204
204
  display: flex;
205
205
  background-color: ${e=>e.theme.colors.black};
206
206
  opacity: 0.85;
@@ -263,7 +263,7 @@ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
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 c=h.name;if(e===!0){const s=h.payload,f=h.color,p=c!=null&&s.record[c]!=null?s.record[c].amount:void 0;let d;if(c.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=s.record[c]!=null?mr(c,s):void 0),c){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,forecast:d,percent:s.record[c]!=null?s.record[c].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(sr,{children:[a.jsxs(cr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],c=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=oe("gross_margin","actual",l));const s=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?s:h.length>0?f:p,y={};return y[s]=i,y[f]=h,y[p]=c,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Q(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`
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 s=h.name;if(e===!0){const c=h.payload,f=h.color,p=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;if(s.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=c.record[s]!=null?mr(s,c):void 0),s){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(s)],actual:p,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(s)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(cr,{children:[a.jsxs(sr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],s=[];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&&(s=oe("gross_margin","actual",l));const c=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?c:h.length>0?f:p,y={};return y[c]=i,y[f]=h,y[p]=s,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Q(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"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[h]=o,c[s]=l,c},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 D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
277
277
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
278
278
  margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
279
279
  color: ${e=>e.theme.colors.primary};
280
- `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor26,s.colors.graphColor17,s.colors.graphColor12],d=[s.colors.graphColor28,s.colors.graphColor17,s.colors.graphColor10,s.colors.graphColor28Dark,s.colors.graphColor17Dark,s.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=s.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
280
+ `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=c.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(se,{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:s,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.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}};c?.(y[v],r,S)},L=s?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?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(ce,{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,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};