@zeniai/web-cockpit-ui 1.14.41-qa → 1.14.42-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 (243) hide show
  1. package/dist/assets/ACHDetailsPage-C0Ys2JJm-CSmQeh3x.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DUz4HfZ1-Dw16_h1i.js → AIPerformancePage-CsR8PRb9-DlWAPyY5.js} +32 -32
  3. package/dist/assets/{AccountInfoPage-YaZUNWd--C7mX1TUK.js → AccountInfoPage-GuppZ3vX-ybOuy1Kd.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMDfYWOh-2t3Y-Tgi.js → AccountInfoPageContent-BLKO0eIw-B7kvUMt5.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-B5gNUsGD.js → AccountLockedInfoModal-DxcSHNgE-BkMfAWj6.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-wdhiO3so.js → AccountReconDetailsDrawerPage-BoS3J4pw-C7qNHT6H.js} +15 -15
  7. package/dist/assets/{AccountRow-D-CPGejv-C0MkYOn9.js → AccountRow-Dj74AzIh-BbDAUA8T.js} +22 -22
  8. package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CknZDmQk.js → AccountsPromoCardStack-MQ_e8aZu-DokMp7Fc.js} +28 -28
  9. package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-ZERwnczq.js → AddAddressForCardDrawer-LpGynQhq-BiZdAWgh.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DS4otSje.js → AddToWalletPage-wtm2Oua5-x0zhdZBl.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-BC3a8enN-CH94puRQ.js → AgingReportsPage-e98Qmrut-DEPFVdEb.js} +14 -14
  12. package/dist/assets/{AllUserItems-vM-R7kC6-dC4XnH-i.js → AllUserItems-Cyr74U6h-DLHOl5bM.js} +10 -10
  13. package/dist/assets/{ApAgingDetailPage-C0soj3QL-CIKu7KMh.js → ApAgingDetailPage-Kjz7NPLx-Bf3lvNxo.js} +4 -4
  14. package/dist/assets/{AppBasePage-vYi6vqB3-CUCnltWx.js → AppBasePage-DrR3bM5Z-CWPfvLBQ.js} +17 -17
  15. package/dist/assets/{AppDrawerContent-4OWU2TFD-hU4F7Wlo.js → AppDrawerContent-C2GlTktJ-DMFov52N.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-eXBjf9wx.js → ApprovalRulesSettingsPage-Cy9uHg-R-Lb5cY5kU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B_o6w4NZ-eMi5HTRp.js → ArAgingChart-CtxyhI9X-mEADLb4-.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CBVZytB--DpqLoVCo.js → ArAgingDetailPage-GX7S1gNm-CGPsvsX3.js} +1 -1
  19. package/dist/assets/{AttachmentView-B-4i3ruL-Coezd-6G.js → AttachmentView-C8CksG-9-RpLYPFoP.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BSpqPLea-DnHvULrV.js → BankAccountSection-8JPKANMP-DuTpIyau.js} +4 -4
  21. package/dist/assets/BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-BrJkpQBD.js → BankConnectionsSettingsPage-C_jyBPLn-CLp_uRqW.js} +31 -31
  23. package/dist/assets/BillDetailPage-BwuHMPBb-CWwzJCXe.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-DlkJNyRo.js → BillPayApprovalRuleDetailPage-9RqkaWf2-BU5jdCnL.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-CP9d39U-.js → BillPayApprovalRulesPage-CZmACduz-93oNGY5M.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DwiZ7BtU-fiyE_zkg.js → BillPayPromoPage-C2m0GTw3-CZokQfrc.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-qkDjDwA2-BVCc21N3.js → BillPaySetUpPage-C71BRWUw-VI3bvPN6.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CcAIOY2J-REyIPWiq.js → BillingSettingsPage-Gc3cUKmE-DleW0m9X.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-qDHExLn5.js → BillsBulkReviewDrawerPage-CO1oJuvH-DO4MY9I-.js} +1 -1
  30. package/dist/assets/{BoxItem-BebxqupW-BdoD_mmi.js → BoxItem-D09XMKDc-dcEB3ro9.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DB134_1e-CZY_8hSF.js → BusinessVerificationPage-Ef4KSPWc-CGQqBH2S.js} +9 -9
  32. package/dist/assets/CardNumberSubText-Chba_z2--BgVxGcnT.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-CCb57-3P-p_PVDcq5.js → CashbackDetailPage-DAM-IJ8V-GMcbY1v3.js} +20 -20
  34. package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-CVscm9WX.js → ChargeCardDetailPage-U_ZuntGp-Bifm6uRw.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-67dSFsMj-BER-SYIw.js → ChargeCardListPage-DJ5TbLO--IUEMfPwT.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-Czriruk3-DeRl2C1o.js → ChargeCardListTable-D7BV3Iv9-CvArKgFC.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-Dd7MlnjV.js → ChargeCardPromoPage-CMqzRnza-BLyUSFwI.js} +26 -26
  38. package/dist/assets/{ChargeCardSetupPage-D6o-evfw-2pOurEiq.js → ChargeCardSetupPage-dOz2soLF-Bc9pTyfy.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-k4U6YJ8h.js → ChargeCardStatementsPage-S2JH9s6i-BXX6utVL.js} +11 -11
  40. package/dist/assets/ChargeCardUtils-Bv0OpE88-D5Y-HOpD.js +1 -0
  41. package/dist/assets/{ChaseOverlay-DU98sRYz-NBdZIJp3.js → ChaseOverlay-4Rv__bdV-G7KHiWVk.js} +7 -7
  42. package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-2Xs20KLS.js → CheckDepositDrawerPage-BKogbkJv-CWQTz4_P.js} +15 -15
  43. package/dist/assets/{CollapsableReportTable-C3JrOMbA-C8RANxS5.js → CollapsableReportTable-B_qvVX0p-B7sAIIqY.js} +85 -85
  44. package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-UGnVN2eW.js → CompanyOfficerDetailsSection-aAwv9WfC-B4p0BPWe.js} +22 -22
  45. package/dist/assets/{CompanyPassportCard-DtaT5LBX-sjzIwivo.js → CompanyPassportCard-DchSKG4l-bx1QGbPl.js} +4 -4
  46. package/dist/assets/{CompanyPassportPage-CYqtLLPi-BZvETxjP.js → CompanyPassportPage-DLIJn7Fp-oxmh8Pcm.js} +14 -14
  47. package/dist/assets/{CompleteProfile-bz1Sx_Ks-eJUFer6h.js → CompleteProfile-Bf5sNhdg-Bo2AvDlJ.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DmQRRfzl-CENtoeqN.js → ConfettiBurst-BPWFB4Ty-0v38oqti.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-B9baa0jh.js → CreateOrEditVendorPage-BTWihvJ--DUStbYOW.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-WcUeJ00Z.js → CreditCardPaymentDrawerPage-B5p_onzw-DCjutv5C.js} +11 -11
  51. package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-CMaSHERV.js → CreditCardPaymentPlgSection-CTpwe7CS-BcL1YjIs.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-DdtldGsv-C812lF_Y.js → CurrencySelectField-Dn9EcyiE-BQIfFGfi.js} +7 -7
  53. package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-Jb-LTm9b.js → CustomerOnboardingActivationPage--C7Nj5oq-JR3YGMUS.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BDHp6tYk-BLNEL0qV.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-FqYSR0lJ.js → CustomerOnboardingDetailPageSkeleton-BEldzNUC-BEL3C00x.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DBupGUX6.js → CustomerOnboardingNoStepsPage-BWPx0oGa-CDRjdq54.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingPage-D3GUyy20-COjJdfeN.js → CustomerOnboardingPage-CQsXgrSi-DMAOHFB2.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-GA6RVDjg.js → CustomerOnboardingProductSuitePage-Ba-hBJDr-D6bzZxGx.js} +4 -4
  59. package/dist/assets/{Dashboard-D19IvfgJ--DOQVvlB.js → Dashboard-D9a8ZSVk-r42V_isI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DucQv3ZE-CMnuoHmh.js → DashboardReportPage-DC7almyE-DPo9kVmb.js} +18 -18
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CJFT1DkV.js → DashboardSidebarBackgroundAnimation-BZPfkv0W-C5DTnalV.js} +3 -3
  62. package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BCT3hCg7.js → DepositAccTransactionItem-D6Pxnskx-DNWsx-r8.js} +5 -5
  63. package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-DzTp8c-j.js → DepositAccTransactionListPage-RPv15wO3-g2ti0qw6.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-DH4keptD-D01iyx2r.js → DomesticWireDetailsPage-C7SMSdym-4FSz7OmR.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DQZd_zyi-B9VMhe_d.js → DownloadOverlay-DSuuIFd2-BOmkiO4Q.js} +18 -18
  66. package/dist/assets/{DrawerPage-CtDNbXHp-C2cmEeEY.js → DrawerPage-G3indLUm-BloVVmDh.js} +12 -12
  67. package/dist/assets/EditPeoplePage-B3OUzvId-mGEO8i8C.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-COHPUQv7.js → EditReimbursementDetailPage-BDtXtGDU-C7db0ozx.js} +51 -51
  69. package/dist/assets/{EntityDetailPage-CuPr64cj-DyxVHR3_.js → EntityDetailPage-Duk7QFjU-4fI6-YD5.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-CX-KbVbj-CNqoxowU.js → EntitySummarySection-Cr7WMJ8D-CxAoWGpH.js} +7 -7
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-B4CXhi6d.js → ExpenseAutomationOverviewPage-hpARiJiY-Cl3fyuZ_.js} +55 -55
  72. package/dist/assets/{ExpenseAutomationPage-ugq4J-e3-Cq8XKeSo.js → ExpenseAutomationPage-BC5qS_i3-B_dfKUDn.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DWFyq0OM-Xap9PWuy.js → ExpressPayPage-I-QL4uh--CR8ltLbL.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Bdostf75-Co3kb8i2.js → FeaturePreviewPage-BHb59Q7j-BMGHbQAr.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-CFs_c9UA-C2ivxTgB.js → FollowStepsSection-DONqc9yn-DTdIc25n.js} +9 -9
  76. package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-ucxhv7FU.js → GlobalReviewListPage-BFAgZIJv-pSG93cS5.js} +11 -11
  77. package/dist/assets/{HelpButton-DJeoop_B-BbsNSnSE.js → HelpButton-DoSu6q8h-w0fElDGQ.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DXqbwonQ-D-8qMtbR.js → InformationCardStack-JtvRODJe-BAk9iE1O.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-7JsHAYeW-ug-71Tgc.js → InsightsCardStack-BEceNZZE-_pfKOcnL.js} +9 -9
  80. package/dist/assets/{InsightsSection-BkKqEnbT-p9XkPAwR.js → InsightsSection-KsnkYRQw-CjzvB6rM.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DceBqihU.js → IntegrationsSettingsPage-D4cEY5iJ-Ct8U8ddA.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-Cn8QyFOw.js → InternationalWireSwiftDetailsPage-Tf_vaD2v-Bx9cBAe-.js} +15 -15
  83. package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-CjYCUXS4.js → InternationalWireVerificationPage-qIIqh0iv-Dla3dOLs.js} +15 -15
  84. package/dist/assets/{InviteFormPage-1dBkKRKs-DciMQTpm.js → InviteFormPage-ByA4uyh2-CUZJDn4x.js} +22 -22
  85. package/dist/assets/{InvitePageListView-DhpXrg6S-iVD2f3Qa.js → InvitePageListView-0_dBCqFt-HjR3qPdd.js} +44 -44
  86. package/dist/assets/{InvitePeoplePage-DrHGaYn6-cG76tknZ.js → InvitePeoplePage-C4d-Ov5z-CPj8BOmp.js} +3 -3
  87. package/dist/assets/InvoiceUploadSection-MEPQPiCt-C4G2s06g.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-B_O7rJSC-DBAUNHK1.js → IssueChargeCardPage-C77SyJR9-CUKH1f59.js} +21 -21
  89. package/dist/assets/{LabeledAddressValue-DWpOvFnM-MVu54lHC.js → LabeledAddressValue-DKKL0jnt-DbFZZVFw.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-BvgQqmxU.js → LabeledControlledCheckBoxField-BYk2-ixd-B_p740LF.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-toELldV7.js → LabeledCreatableSingleSelectField-DMhTj1GM-Cqe5AURU.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DX4zVKkz-CS1LiAul.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js → LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js} +5 -5
  95. package/dist/assets/{LabeledText-BRS0e-dG-BZq4VrX9.js → LabeledText-4NNrEynJ-BDzeNgnU.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-BC3kyZqP.js → LabeledUserSingleSelectWithSubtitlesField-DaXDpM0N-DYtP0MFC.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-CULldLpx.js → LabeledZeniRolesDropDownField-zRamZWIQ-oWeJ0wbt.js} +10 -10
  98. package/dist/assets/{LinkJETransactionPage-VtgdRNhL-D7ndfEzz.js → LinkJETransactionPage-FMYLsvT_-IUHBR-RO.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dg43FP8p-BLvbua8r.js → LowBalancePopup-Ig5iJGIg-BisR1D9G.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-DOK_VceA.js → MagicLinkACHDetailsPage-Cf-TvH4n-BBkkCR2W.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-BfpKCTOv.js → MagicLinkDomesticWireDetailsPage-CLJo-rez-MDjP3aI7.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Dk7a13qP.js → MagicLinkInternationalWireDetailsPage-C-cD6L4u-Z9qBkl5z.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-8jc-eo0M.js → MagicLinkSuccessPage-cJ0PjYEe-DY9yZh-d.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-Dk8tP8LP-YFImgirq.js → MailingDetailsSection-BD9QWumq-Bo7ZhKA-.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-gebcIIpu-DuyM5Ce0.js → MeetingCalenderPopup-D10SioCO-Sv9k3aJ6.js} +1 -1
  107. package/dist/assets/{Menu-BeDBbRH8-NbbFIuDT.js → Menu-DV3oFAip-BjpENrFA.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-4X9R_NQE.js → MyBankConnectionsSettingsPage-jrPeCDe3-C_FxZh14.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-CijMZlz_.js → MyPendingActivationChargeCardListPage-CpaPeIYq-Ckzf1YTL.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DSUbYEGm.js → MyProfileSettingsPage-DLj2PeG9-d2LNa8rI.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-XmGu6RQR-C9BXxiKA.js → NavBarWithPicker-CilKdL1D-Z1krBpRG.js} +4 -4
  112. package/dist/assets/{NavigationArrow-DuEUVDwX-DfD0NIdE.js → NavigationArrow-DvGjNVsn-C-QNklxa.js} +1 -1
  113. package/dist/assets/{NavigationDots-BcP-rh-K-DS8oU4Qg.js → NavigationDots-BZNvrGBo-CvNSDZNv.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DWKnTzMp.js → NewGlobalMerchantPage-D5ESBBO5-CiqJ8Tsp.js} +7 -7
  115. package/dist/assets/{NoDataChart-Cu34Y6fv-CDediDtZ.js → NoDataChart-D9tQhnyu-C94gJNvj.js} +3 -3
  116. package/dist/assets/{NoDataTable-CPWzH0PE-DkDzGQpn.js → NoDataTable-8FGbkVty-RgNhnWfj.js} +1 -1
  117. package/dist/assets/{NotFoundPage-yZOAgP9f-BvtMauqa.js → NotFoundPage-D8qvMFgl-BJxrGtQd.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-5bXbyP0i-Dn4CCfRt.js → NotificationSettingsPage-BSJTBlX6-Dh8E-2JN.js} +14 -14
  119. package/dist/assets/{NotificationsListConfig-DINVh9-P-Cr5z8nJ2.js → NotificationsListConfig-EynMAcn9-B66CEzXh.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CKcEU-jy-D9LjSHYu.js → NotificationsPage-d4HJEE7S-DignNo6N.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-3oQc7n37-ie-HlsGj.js → OpExByVendorPage-CmuEz33W-DHZbqMQl.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-c3kkjLHu.js → OverlayContainerPage-Bmu909Fo-BEKpfYXF.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BPcWHQXd-CtN-h80b.js → PandLWithForecastPage-C7WaIZ8e-AKi0ejYh.js} +11 -11
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BRRsi8Cn.js → PaymentAccountSetupBillingAddressSection-B3m8zs_b-ShdTy6dm.js} +9 -9
  125. package/dist/assets/{PeoplePage-AdCHl8Rj-GGNGd1tU.js → PeoplePage-BN8tiBew-SMy3y22T.js} +33 -33
  126. package/dist/assets/PortfolioAllocationFormPage-BD1u1-Or-BP5X7l75.js +207 -0
  127. package/dist/assets/{PortfolioDetails-DaiiBOps-RHi4PLpn.js → PortfolioDetails-fLO6-kOh-CadDK_zj.js} +14 -14
  128. package/dist/assets/{ProductsCarousel--PIp0Wwx-1HYPMREY.js → ProductsCarousel-RHO5BWU--BaB4l4pQ.js} +3 -3
  129. package/dist/assets/{PromoBaseCards-hEn7m0Ea-Dc9Lc6Jd.js → PromoBaseCards-Bm6GGzhn-7qUEmgGZ.js} +2 -2
  130. package/dist/assets/{QBOConnectionDialog-DByNCCyR-xe7LeSrJ.js → QBOConnectionDialog-Dp_Zkpup-B6ThY6EF.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-NdDTo0GG-op77rVCs.js → QBOSetupSection-C1hBKDG3-D4_IOTse.js} +13 -13
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DFUyL8tS-CjazMZUR.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-zFGSLUlG.js → ReimbursementApprovalRulesPage-CGb7oMjB-DRxFMpGG.js} +11 -11
  134. package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-Hi7ghCPV.js → ReimbursementDetailPage-ByD43ffh-CS-2jIxA.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CMdRmwjh.js → ReimbursementPromoPage-CPFAYaW8-Tc6w3wrG.js} +20 -20
  136. package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-DKvqAEBO.js → ReimbursementSetUpPage-B_jUtf6N-CH4GgWXW.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-BKjafGKk.js → ReimbursementsBulkReviewDrawerPage-DU-QA2n3-CKhaAS5r.js} +1 -1
  138. package/dist/assets/{ReloadCard-K9SGlmus-DZ7vYKCw.js → ReloadCard-HsDGbgTn-BsloOU08.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-BVw08xMR-S2k8-vyd.js → ReportTableViewSelector-BzFUam8T-BhACNwXr.js} +6 -6
  140. package/dist/assets/{ReportsPage-DrbFSYgn-Dhzyn189.js → ReportsPage-MQSNDA98-DYJWfk_K.js} +10 -10
  141. package/dist/assets/{RevenueChart-mib92BSo-vb-0BYYz.js → RevenueChart-BzYEiXeP-CL_U7QVF.js} +29 -29
  142. package/dist/assets/{ReviewDetailsPage-C5f_GAjv-rA6jgu-n.js → ReviewDetailsPage-w2tTvIFQ-DFmBHsAk.js} +5 -5
  143. package/dist/assets/ReviewOverlay-DbYrvPld-BPButrhP.js +152 -0
  144. package/dist/assets/{RoleWithToolTip-C5grx1DM-Bhnk8KKY.js → RoleWithToolTip-B_Ivheco-R8i0Qg5c.js} +6 -6
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-CwYQjSQh.js → ScheduleDetailsFixedAssetsPage-CSiXckiF-snYrLXiT.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-Dw4BBNuN.js → ScheduleDetailsPage-BUprw9Sk-CY06UcmD.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-CviQlsxi-BixaGSYy.js → ScheduleSequenceTable-DnIgU9m6-CTOQUShp.js} +18 -18
  148. package/dist/assets/{ScreenRoutes-BOEZc6DS.js → ScreenRoutes-Df5fPQoi.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-d5HPps92-DZbUJeeo.js → SetUpAccountSection-DDxjcjeg-CBwjkDjl.js} +10 -10
  150. package/dist/assets/{SetUpDefaultSection-D1OXPM9M-2zaSn3KY.js → SetUpDefaultSection-BSWh5Hvi-BrKOFekt.js} +14 -14
  151. package/dist/assets/{SignIn-tpfovElQ-C4991EnD.js → SignIn-CImCEnZS-CTfoa2RW.js} +23 -23
  152. package/dist/assets/{SignInScreen-DgNycLfV.js → SignInScreen-DOATVkIe.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-GWfzNKhc.js → SpendManagementListViewPage-B61K65wh-DBswKLKE.js} +6 -6
  154. package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-sNIcyb2f.js → SpendManagementPerTabPage-Bxo7BTP3-BTpFLD01.js} +11 -11
  155. package/dist/assets/{SpendManagementSection-C8S1zv_Z-D1UddAHC.js → SpendManagementSection-Ddoo9sSg-BrfWcTur.js} +11 -11
  156. package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DgPqGmio.js → SpendMgmtSetupAccountSection-GjJmiN01-CfomDHm3.js} +19 -19
  157. package/dist/assets/{StatementItem-C2VaQMdB-GityFkee.js → StatementItem-D_ctLWr0-D0j_MHXQ.js} +5 -5
  158. package/dist/assets/StatementsPage-D1M95WeY-CnAx-9oR.js +58 -0
  159. package/dist/assets/{StatusSwitcher-CI_4NJc0-D3kMd2Ls.js → StatusSwitcher-ZC7lyTov-GCiWQPGY.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-CKh0fbAL-CZyzUbuM.js → SubTabSwitcher-BNFnbB_T-DaWGnnx_.js} +1 -1
  161. package/dist/assets/{SummaryCard-56XeB7PA-B87JqDih.js → SummaryCard-CSo1L2R4-Biw8Izdi.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-el6vudQA-DkYDl2e-.js → TaskManagementPage-CAcMcS83-D_9dscfp.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-D3i-wisc.js → TimeRangeSwitcher-CNdJhUPl-Lk4TfGUR.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-TLcNg_CN-98HiGYj7.js → TimeframeSwitcher-B7t79hiQ-DXBKb0F7.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-BVr6cN7Q.js → TimeframeSwitcherWithToggle-gywVFoaK-CKJ0rtbC.js} +1 -1
  166. package/dist/assets/{TopExCard-BuCdMdGn-DzugoAzP.js → TopExCard-D_LHVo5q-kM42LZ8h.js} +4 -4
  167. package/dist/assets/{TopExDetailPage-DJwK85mY-BLlAa0Mx.js → TopExDetailPage-DuiVBT_3--4JswmJo.js} +13 -13
  168. package/dist/assets/{TransactionDetailPage-fKLOaC53-B4PLnewq.js → TransactionDetailPage-BWbWafDA-BA5tAQ-_.js} +33 -33
  169. package/dist/assets/{TransactionList-vNVcmGH2-B0OTKj50.js → TransactionList-Xd2JupaK-ME3jRgkK.js} +7 -7
  170. package/dist/assets/{TransactionListBig-C_1iHb-m-7xzK-ehO.js → TransactionListBig-CnJaFkxR-rlrfsVcy.js} +19 -19
  171. package/dist/assets/{TransactionListPage-vE1jowuA-CVyTABcH.js → TransactionListPage-DJXFQaro-6w510avL.js} +2 -2
  172. package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-DnpJgf-D.js → TransactionVendorDetailPage-Yd_VuyUP-3bCwp_zG.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-6AaaV1fR-CcXij2fb.js → TransferDrawerPage-DAQ23FUW-Zp14Y_jD.js} +27 -27
  174. package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--0GGyt5L1.js → TreasuryOverviewPage-D7PkIffG-CctuefA8.js} +26 -26
  175. package/dist/assets/{TreasuryPromoPage-BRZCU7u0-YXB-IJNp.js → TreasuryPromoPage-BjVUBF-M-CeyEfLuA.js} +33 -33
  176. package/dist/assets/{TreasurySetupPage-BietgoUm-DuvVLyjQ.js → TreasurySetupPage-CTwhrB6V-Bbh2Nemp.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-CuYVtjaG.js → TreasuryStatementsPage-jvmgqTxl-bbGSjEnB.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-D-bqdUc-.js → TreasuryTaxLetterPage-CtKw-_Ab-DpqHDLut.js} +2 -2
  179. package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-CGMzbTrq.js → TreasuryTransferOrReviewPage-HDfVKjSA-D8yPiIy_.js} +37 -37
  180. package/dist/assets/{TrendChart-CDuKYDbr-Bn9DvEcA.js → TrendChart-BqU6zv7L-wkRyWRpL.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CXFGBD3a-COfDIjjP.js → TrendWithTransactions-CbzZEtLk-CdMXYj1c.js} +4 -4
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-CzRmIywg.js → UncategorizedAccountsMappingPage-BqfWXEzv-Cz9H5I4W.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-Bt3BsIP--CS7__SGc.js → UnitIntegrationPage-DOt0PQxi-x_I9Vs5M.js} +4 -4
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-B-MuYA3T.js → UploadAdditionalDocumentOverlay-DCG_biA8-DwZNYXuq.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-drhI-HQb.js → Vendor2FAPopup-AFJ4ji6z-DAWxFDI5.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CWjco5Dp.js → VendorACHDetailsPage-CMZezqhj-omVFdTVD.js} +1 -1
  187. package/dist/assets/{VendorDetailPage--NEui4cR-CjVNfg_w.js → VendorDetailPage-iMWNwLtE-B5NQ34jt.js} +16 -16
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-C61aUqHr.js → VendorDomesticWireDetailsPage-LLQSi6rq-JFMiqG0a.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-D4s1kmxT.js → VendorFiling1099EditablePage-BFWuxMl8-CXYevD1L.js} +16 -16
  190. package/dist/assets/{VendorFirstReviewPage-F3ufon8s-De09Hv60.js → VendorFirstReviewPage-G_Cr6q5s-qjW-FU9s.js} +18 -18
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-lseeqNrB.js → VendorInternationalWireDetailsPage-DReuPGpX-J63QxGJH.js} +10 -10
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-Cxyk29cs.js → VendorInternationalWireSwiftDetailsPage-CmAzQ-7v-D44Jz7aO.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DyEqMESi-D9e9kicf.js → VendorsAccountsSection-Cjwpb7Ej-Cx7NEKJj.js} +2 -2
  194. package/dist/assets/{VerifyDevice-Cghi40l4-ThU6PIgT.js → VerifyDevice-CvJ2zJdk-DMGMblcz.js} +10 -10
  195. package/dist/assets/{VideoPlayer-BqxR2aZr-C4HSzI7g.js → VideoPlayer-9UKbocWs-CskDssHe.js} +1 -1
  196. package/dist/assets/{VideoPopup-RZCI8_Gx-CwtDMYFf.js → VideoPopup-DfQxE-EQ-DMlN8l45.js} +4 -4
  197. package/dist/assets/{WarningsDrawerPage-ChJqfUoo-C8vzQoCW.js → WarningsDrawerPage-2QsB6DYE-SQ5KLE5P.js} +9 -9
  198. package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DcQoIUQu.js → ZeniAccountDetailPage-gFXGgRzS-DY2FypIA.js} +18 -18
  199. package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-D_F8pojL.js → ZeniAccountListViewPage-Daboqhbe-C9ys4A5t.js} +12 -12
  200. package/dist/assets/ZeniAccountNavBarPieces-DhpbtWHu-gWttgZ20.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CAY8oVsD.js → ZeniAccountPromoPage-Df5MahOc-B26r14Mi.js} +21 -21
  202. package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-63QHHhU4.js → ZeniAccountSetupPage-DLlRCOCj-ChweJElI.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-CpkvfVwM-CpIzcf5N.js → ZeniCopyright-D-Z193Re-BzgSGNSq.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-D8dT_-Hq-BM5AfJxY.js +63 -0
  205. package/dist/assets/{analytics-Dr_Q0qi5.js → analytics-CcevxdRy.js} +19 -19
  206. package/dist/assets/{analyticsHelper-B29pAXmB.js → analyticsHelper-HFa4L7zM.js} +1 -1
  207. package/dist/assets/{analyticsHelper-nzXGHX-f-DDF_mzG5.js → analyticsHelper-c9SRwhe3-rKFHsE9O.js} +1 -1
  208. package/dist/assets/{chartTypes-DJwqK5Pl-BjORIfWQ.js → chartTypes-C2jC2nzT-B64Jl2-O.js} +1 -1
  209. package/dist/assets/{commonDimensions-BI8wHGzb-vF0LFeSK.js → commonDimensions-CtVQ1dPI-BWfVCzLH.js} +1 -1
  210. package/dist/assets/{crypto-Ccg-ICil.js → crypto-CK3r1iTV.js} +1 -1
  211. package/dist/assets/{detailCommon-BqVKB773-C2U67xrp.js → detailCommon-BBImn49A-BK4c1Pxj.js} +6 -6
  212. package/dist/assets/{downloadPdf-BET_DSP9-DmgSWYo3.js → downloadPdf-BvdzZp_S-DQnizCwq.js} +1 -1
  213. package/dist/assets/{index-IgYBqF_x.js → index-DESjn-8d.js} +3503 -3503
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-CqsUk4Uv.js → mapLoadingInProgressToTreeNode-CKsE235C-BIU8Mfd7.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-BqLpmvIL.js → mapSectionWithAcOnlyToTreeNode-D1DheCOl-DwSkrZHk.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-CjubQCh8.js → mapSpacerToTreeNode-DkIeEOlL-Pn1zCywK.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrsNT2yx.js → mapTimeframeBalancesToTreeNode-BhmM7oKt-BQL5w7UJ.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-TNhDDil7.js → mapTimeframeBalancesToTreeNode-Vy-w7j2m-DzRWaem3.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-D9cTp9HM.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGrrLYwc-B0qlbSf3.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-CAwHN54Z-Dl4_Ib5c.js → toCOABalancesWithID-BdeWiors-BqeL9v71.js} +1 -1
  221. package/dist/assets/{toChartData-pW2XLZo--pfboHwjV.js → toChartData-BCFss2y_-DT7ekoOJ.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-CdOoL_vC-BdLikaU-.js → treasuryColorHelper-BJcGoSGt-CBJKPFpW.js} +1 -1
  223. package/dist/assets/{uploadAttachment-nqQ-JycC-9pV7MrnE.js → uploadAttachment-PMsRrXUz-BBJRkZzC.js} +20 -20
  224. package/dist/assets/{uploadReceipts-dxsKhm9I-2_GAIK6m.js → uploadReceipts-dxsKhm9I-Bda3Op9y.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +4 -4
  227. package/dist/assets/ACHDetailsPage-DZnFgkJZ-DDsy2m6t.js +0 -21
  228. package/dist/assets/BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js +0 -51
  229. package/dist/assets/BillDetailPage-CuVdQqQW-IOfqi65V.js +0 -266
  230. package/dist/assets/CardNumberSubText-uxqTFnFX--LrYHxfC.js +0 -21
  231. package/dist/assets/ChargeCardUtils-Bptae9Pt-CYq-MsYY.js +0 -1
  232. package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-DZh0ZsS1.js +0 -1
  233. package/dist/assets/EditPeoplePage-ZzjDJoTQ-DidkWXNI.js +0 -55
  234. package/dist/assets/InvoiceUploadSection-D79UFJii-FhgETgPb.js +0 -140
  235. package/dist/assets/LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js +0 -45
  236. package/dist/assets/LabeledDocumentField-BQDoGQsy-DjCrwjKi.js +0 -41
  237. package/dist/assets/MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js +0 -17
  238. package/dist/assets/PortfolioAllocationFormPage-DJVrByWQ-MfVlBQJr.js +0 -207
  239. package/dist/assets/ReimbursementApprovalRuleDetailPage-CCTo6kvJ-BhsLlWsu.js +0 -26
  240. package/dist/assets/ReviewOverlay-CFgWwm-p-BrjMlpfM.js +0 -152
  241. package/dist/assets/StatementsPage-DD2PvuDv-CJO0D7Zd.js +0 -58
  242. package/dist/assets/ZeniAccountNavBarPieces-BlVvO8S4-Bu0wNDog.js +0 -14
  243. package/dist/assets/ZeniTransferAmountSlider-H-uhh5z4-DVStaopp.js +0 -63
@@ -1,11 +1,11 @@
1
- import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,e as M,O as ui,H as fo,dk as pi,dl as xo,l as A,B as W,q as w,dm as Vi,dn as Ot,a8 as _,dp as Mt,bH as Nt,dq as It,C as D,cz as Pt,Y as Di,b as Je,dr as Ne,bh as K,m as mo,u as ce,af as Ri,ds as Gi,a9 as V,k as Ae,dt as wo,du as se,bG as zt,bv as gi,w as yo,n as ye,dv as Xe,dw as Be,dx as tt,t as C,bO as ne,dy as bo,v as Ft,dz as Re,dA as fi,dB as xi,dC as ko,dD as jo,ao as Ei,al as So,c3 as Tt,c2 as Vt,dE as Co,am as Hi,c6 as Ki,bn as vo,dF as $o,dG as mi,dH as wi,dI as _o,dJ as Lo,bp as Ao,b6 as Bo,dK as Wo}from"./index-IgYBqF_x.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-rkTZJa59.js";import{L as it,N as Mo,D as No,B as be,u as $}from"./AccountRow-D-CPGejv-C0MkYOn9.js";function Z(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
1
+ import{j as t,aj as po,W as m,bf as fe,a0 as q,dj as go,o as c,f as ee,a2 as hi,e as M,J as ui,D as fo,dk as pi,dl as xo,l as A,R as W,q as w,dm as Vi,dn as Ot,a8 as _,dp as Mt,bH as Nt,dq as It,C as D,cz as Pt,Y as Di,_ as Je,dr as Ne,bh as K,m as mo,u as ce,af as Ri,ds as Gi,a9 as V,s as Ae,dt as wo,du as se,bG as zt,bv as gi,w as yo,n as ye,dv as Xe,dw as Be,dx as tt,y as C,bO as ne,dy as bo,v as Ft,dz as Re,dA as fi,dB as xi,dC as ko,dD as jo,ao as Ei,al as So,c3 as Tt,c2 as Vt,dE as Co,am as Hi,c6 as Ki,bn as $o,dF as vo,dG as mi,dH as wi,dI as _o,dJ as Lo,bp as Ao,b6 as Bo,dK as Wo}from"./index-DESjn-8d.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-rkTZJa59.js";import{L as it,N as Mo,D as No,B as be,u as v}from"./AccountRow-Dj74AzIh-BbDAUA8T.js";function Z(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
5
5
  height: ${e=>e.heightValue}px;
6
6
  justify-content: flex-start;
7
7
  align-items: center;
8
- padding-right: ${$.wrapperPadding}px;
8
+ padding-right: ${v.wrapperPadding}px;
9
9
  `,Po=a.div`
10
10
  cursor: default;
11
11
  user-select: none;
@@ -19,7 +19,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
19
19
  justify-content: flex-start;
20
20
  align-items: center;
21
21
  gap: ${c.sp2};
22
- width: ${$.leftHeadingWidth}px;
22
+ width: ${v.leftHeadingWidth}px;
23
23
  `,Fo=a.div`
24
24
  display: flex;
25
25
  flex: 1 1 auto;
@@ -27,29 +27,29 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
27
27
  align-items: center;
28
28
  gap: ${c.sp4};
29
29
  `,To=a(ne)`
30
- width: ${$.bankBalanceWidth}px;
31
- min-width: ${$.bankBalanceWidth}px;
30
+ width: ${v.bankBalanceWidth}px;
31
+ min-width: ${v.bankBalanceWidth}px;
32
32
  text-align: right;
33
33
  `,Vo=a(ne)`
34
- width: ${$.clearedBalanceWidth}px;
35
- min-width: ${$.clearedBalanceWidth}px;
34
+ width: ${v.clearedBalanceWidth}px;
35
+ min-width: ${v.clearedBalanceWidth}px;
36
36
  text-align: right;
37
37
  `,Do=a(ne)`
38
- width: ${$.statusWidth}px;
39
- min-width: ${$.statusWidth}px;
38
+ width: ${v.statusWidth}px;
39
+ min-width: ${v.statusWidth}px;
40
40
  `,Ro=a.div`
41
41
  display: flex;
42
42
  flex-shrink: 0;
43
43
  gap: ${c.sp3};
44
- width: ${$.varianceWidth}px;
45
- min-width: ${$.varianceWidth}px;
44
+ width: ${v.varianceWidth}px;
45
+ min-width: ${v.varianceWidth}px;
46
46
  flex-direction: row;
47
47
  justify-content: flex-end;
48
48
  align-items: center;
49
49
  text-align: center;
50
50
  `,Go=a.div`
51
- width: ${$.variancePercentageWidth}px;
52
- min-width: ${$.variancePercentageWidth}px;
51
+ width: ${v.variancePercentageWidth}px;
52
+ min-width: ${v.variancePercentageWidth}px;
53
53
  text-align: right;
54
54
  margin-right: ${c.sp2};
55
55
  `,Eo=a.div`
@@ -60,11 +60,11 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
60
60
  display: flex;
61
61
  justify-content: center;
62
62
  align-items: center;
63
- `;function Ko({height:e}){const i=M();return t.jsx(Io,{heightValue:e,windowSize:i,children:t.jsxs(Po,{children:[t.jsxs(zo,{children:[t.jsx(Eo,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,maxWidth:c.sp4,width:c.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Ho,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:$.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(Fo,{children:[t.jsx(To,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:$.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Vo,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:$.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Ro,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:$.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Go,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:$.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Do,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:$.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Yo=a.div`
63
+ `;function Ko({height:e}){const i=M();return t.jsx(Io,{heightValue:e,windowSize:i,children:t.jsxs(Po,{children:[t.jsxs(zo,{children:[t.jsx(Eo,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,maxWidth:c.sp4,width:c.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Ho,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(Fo,{children:[t.jsx(To,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Vo,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Ro,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Go,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Do,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const Yo=a.div`
64
64
  display: flex;
65
65
  flex-direction: row;
66
66
  height: ${e=>e.heightValue}px;
67
- padding-right: ${$.wrapperPadding}px;
67
+ padding-right: ${v.wrapperPadding}px;
68
68
  `;function Uo({height:e}){return t.jsx(Yo,{heightValue:e})}const qo=a.div`
69
69
  user-select: none;
70
70
  display: flex;
@@ -72,7 +72,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
72
72
  height: ${e=>e.height}px;
73
73
  background-color: ${e=>e.bgColor?.hex()};
74
74
  flex-direction: column;
75
- padding-right: ${$.wrapperPadding}px;
75
+ padding-right: ${v.wrapperPadding}px;
76
76
  `,Zo=a.div`
77
77
  flex: 1 1 auto;
78
78
  display: flex;
@@ -84,7 +84,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
84
84
  display: flex;
85
85
  flex-direction: row;
86
86
  justify-content: flex-end;
87
- width: ${$.leftHeadingWidth}px;
87
+ width: ${v.leftHeadingWidth}px;
88
88
  `,Jo=a.div`
89
89
  display: flex;
90
90
  flex: 1 1 auto;
@@ -93,8 +93,8 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
93
93
  `,Xo=a(Hi)`
94
94
  user-select: none;
95
95
  color: ${e=>e.theme.colors.primary};
96
- width: ${$.leftTimeframeWidth}px;
97
- min-width: ${$.leftTimeframeWidth}px;
96
+ width: ${v.leftTimeframeWidth}px;
97
+ min-width: ${v.leftTimeframeWidth}px;
98
98
  flex: 1 1 auto;
99
99
  `,er=a(C)`
100
100
  user-select: none;
@@ -112,25 +112,25 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
112
112
  color: ${e=>e.theme.colors.primary};
113
113
  margin-right: ${e=>e.marginRight===!0?c.sp2:c.sp0};
114
114
  `,ir=a.div`
115
- width: ${$.bankBalanceWidth}px;
115
+ width: ${v.bankBalanceWidth}px;
116
116
  `,nr=a.div`
117
- width: ${$.bankBalanceRightTimeframeWidth}px;
117
+ width: ${v.bankBalanceRightTimeframeWidth}px;
118
118
  `,or=a.div`
119
- width: ${$.clearedBalanceWidth}px;
120
- margin-right: ${$.tickLeftMargin}px;
119
+ width: ${v.clearedBalanceWidth}px;
120
+ margin-right: ${v.tickLeftMargin}px;
121
121
  `,rr=a.div`
122
- width: ${$.varianceTimeframeWidth}px;
122
+ width: ${v.varianceTimeframeWidth}px;
123
123
  align-self: flex-end;
124
124
  `,ar=a.div`
125
- width: ${$.spacerLineWidth}px;
125
+ width: ${v.spacerLineWidth}px;
126
126
  `,lr=a.div`
127
- width: ${$.statusWidth}px;
128
- `,Ge=({title:e,type:i})=>t.jsx(tr,{widthValue:$[i],children:t.jsx(er,{children:e})});function sr({sectionTitle:e,height:i,isLoading:n}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(qo,{height:i,children:t.jsxs(Zo,{children:[t.jsx(Qo,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp4,width:$.leftLabelWidth},children:t.jsx(Xo,{children:e})})}),t.jsxs(Jo,{children:[t.jsx(ir,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:$.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(nr,{}),t.jsx(or,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:$.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(rr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:$.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(ar,{}),t.jsx(lr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:$.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const cr=a.div`
127
+ width: ${v.statusWidth}px;
128
+ `,Ge=({title:e,type:i})=>t.jsx(tr,{widthValue:v[i],children:t.jsx(er,{children:e})});function sr({sectionTitle:e,height:i,isLoading:n}){const o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(qo,{height:i,children:t.jsxs(Zo,{children:[t.jsx(Qo,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp4,width:v.leftLabelWidth},children:t.jsx(Xo,{children:e})})}),t.jsxs(Jo,{children:[t.jsx(ir,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(nr,{}),t.jsx(or,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(rr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(ar,{}),t.jsx(lr,{children:t.jsx(se,{isLoading:n,customStyle:{height:c.sp7,width:v.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const cr=a.div`
129
129
  display: flex;
130
130
  flex-direction: row;
131
131
  height: ${e=>e.heightValue}px;
132
132
  align-items: center;
133
- padding-right: ${$.wrapperPadding}px;
133
+ padding-right: ${v.wrapperPadding}px;
134
134
  `,dr=a(Hi)`
135
135
  user-select: none;
136
136
  color: ${e=>e.theme.colors.primary};
@@ -141,7 +141,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
141
141
  height: ${e=>e.heightValue}px;
142
142
  justify-content: flex-start;
143
143
  align-items: center;
144
- padding-right: ${$.wrapperPadding}px;
144
+ padding-right: ${v.wrapperPadding}px;
145
145
  `,pr=a.div`
146
146
  cursor: default;
147
147
  user-select: none;
@@ -166,31 +166,31 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
166
166
  text-overflow: ellipsis;
167
167
  text-align: left;
168
168
  color: ${e=>e.theme.colors.primary};
169
- width: ${$.leftLabelWidth}px;
170
- min-width: ${$.leftLabelWidth}px;
169
+ width: ${v.leftLabelWidth}px;
170
+ min-width: ${v.leftLabelWidth}px;
171
171
  `,xr=a.div`
172
172
  display: flex;
173
173
  flex: 1 1 auto;
174
174
  justify-content: flex-end;
175
175
  align-items: center;
176
176
  `,mr=a(ne)`
177
- width: ${$.bankBalanceWidth}px;
178
- min-width: ${$.bankBalanceWidth}px;
177
+ width: ${v.bankBalanceWidth}px;
178
+ min-width: ${v.bankBalanceWidth}px;
179
179
  text-align: right;
180
180
  `,wr=a(ne)`
181
- width: ${$.clearedBalanceWidth}px;
182
- min-width: ${$.clearedBalanceWidth}px;
181
+ width: ${v.clearedBalanceWidth}px;
182
+ min-width: ${v.clearedBalanceWidth}px;
183
183
  text-align: right;
184
- margin-left: ${$.tickLeftMargin}px;
184
+ margin-left: ${v.tickLeftMargin}px;
185
185
  `,yr=a(ne)`
186
- width: ${$.statusWidth}px;
187
- min-width: ${$.statusWidth}px;
186
+ width: ${v.statusWidth}px;
187
+ min-width: ${v.statusWidth}px;
188
188
  height: 1px;
189
189
  `,br=a.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
- min-width: ${$.spacerLineWidth}px;
193
- width: ${$.spacerLineWidth}px;
192
+ min-width: ${v.spacerLineWidth}px;
193
+ width: ${v.spacerLineWidth}px;
194
194
  align-items: center;
195
195
  `,kr=a.div`
196
196
  width: 1px;
@@ -200,17 +200,17 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
200
200
  `,jr=a.div`
201
201
  display: flex;
202
202
  flex-shrink: 0;
203
- width: ${$.varianceTimeframeWidth}px;
204
- min-width: ${$.varianceTimeframeWidth}px;
203
+ width: ${v.varianceTimeframeWidth}px;
204
+ min-width: ${v.varianceTimeframeWidth}px;
205
205
  flex-direction: row;
206
206
  justify-content: flex-end;
207
207
  align-items: center;
208
208
  text-align: center;
209
- margin-left: ${$.tickLeftMargin}px;
209
+ margin-left: ${v.tickLeftMargin}px;
210
210
  `,Sr=a(ne)`
211
211
  border-radius: ${c.sp1};
212
212
  color: ${e=>e.textColor.hex()};
213
- min-width: ${$.varianceNumberWidth}px;
213
+ min-width: ${v.varianceNumberWidth}px;
214
214
  text-align: right;
215
215
  margin-right: ${c.sp2};
216
216
  `,Cr=a(ne)`
@@ -220,8 +220,8 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
220
220
  text-align: center;
221
221
  color: ${e=>e.textColor.hex()};
222
222
  background-color: ${e=>e.bgColor.hex()};
223
- min-width: ${$.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:yi}}},common:{strings:{percentage:vr,hyphen:et}}}=W.getLocalizedStrings();function $r({height:e,sectionData:i}){const n=M(),o=i.totalVariance,r=i.totalVariancePercentage,l=ce();return t.jsx(ur,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:n,children:t.jsxs(pr,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(gr,{children:[t.jsx(be,{firstLetter:yi.section[i.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(fr,{children:yi.section[i.sectionId].subTitle})]}),t.jsxs(xr,{children:[t.jsx(mr,{children:i.totalBankBalance!=null?q("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?q("0,0",i.totalClearedBalance):et}),t.jsx(_r,{variance:o,variancePercentage:r}),t.jsx(br,{children:t.jsx(kr,{heightValue:e})}),t.jsx(yr,{})]})]})})}const _r=({variance:e,variancePercentage:i})=>{const n=ce(),o=new _(n.colors.hero),r=new _(n.colors.hero),l=new _(n.colors.background),s=e!=null&&e.amount===0?"0%":i!=null?i===0?"0%":`${i.toFixed(2)}${vr}`:et;return t.jsxs(jr,{children:[t.jsx(Sr,{textColor:o,children:e!=null?q("0,0",e):et}),t.jsx(Cr,{textColor:r,bgColor:l,children:s})]})};function Lr(){return t.jsx(Uo,{height:it("section")})}function Ar(){return t.jsx(Ko,{height:it("loading_in_progress")})}function Br(e,i){if(e.element.kind!=="timeframe_headers")return null;const n=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(sr,{sectionTitle:n.section[o.sectionId].title,isLoading:r,isSticky:i,height:it("timeframe_headers")})}const Wr=(e,i,n)=>{const o=e.element.data;return t.jsx($r,{isSticky:n,height:i,sectionData:o})},Or=(e,i)=>{const n=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:i,title:o.section[n.sectionId].title})},Mr=(e,i,n)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(No,{height:i,accountRecon:o,isLastRow:n,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Nr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Ir(e,i,n=0){const o=["summary"];switch(e){case"section":return!o.includes(i);case"section_with_ac_only":return!o.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(i)||i==="detailed"&&n>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(i)||i==="detailed"&&n>0);case"title_string_only":return!o.includes(i);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(i==="detailed"&&n>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Zi={emptyLeftContainer:new D(w[0],w[5])},Pr=a(C)`
223
+ min-width: ${v.variancePercentageWidth}px;
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:yi}}},common:{strings:{percentage:$r,hyphen:et}}}=W.getLocalizedStrings();function vr({height:e,sectionData:i}){const n=M(),o=i.totalVariance,r=i.totalVariancePercentage,l=ce();return t.jsx(ur,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:n,children:t.jsxs(pr,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(gr,{children:[t.jsx(be,{firstLetter:yi.section[i.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(fr,{children:yi.section[i.sectionId].subTitle})]}),t.jsxs(xr,{children:[t.jsx(mr,{children:i.totalBankBalance!=null?q("0,0",i.totalBankBalance):et}),t.jsx(wr,{children:i.totalClearedBalance!=null?q("0,0",i.totalClearedBalance):et}),t.jsx(_r,{variance:o,variancePercentage:r}),t.jsx(br,{children:t.jsx(kr,{heightValue:e})}),t.jsx(yr,{})]})]})})}const _r=({variance:e,variancePercentage:i})=>{const n=ce(),o=new _(n.colors.hero),r=new _(n.colors.hero),l=new _(n.colors.background),s=e!=null&&e.amount===0?"0%":i!=null?i===0?"0%":`${i.toFixed(2)}${$r}`:et;return t.jsxs(jr,{children:[t.jsx(Sr,{textColor:o,children:e!=null?q("0,0",e):et}),t.jsx(Cr,{textColor:r,bgColor:l,children:s})]})};function Lr(){return t.jsx(Uo,{height:it("section")})}function Ar(){return t.jsx(Ko,{height:it("loading_in_progress")})}function Br(e,i){if(e.element.kind!=="timeframe_headers")return null;const n=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(sr,{sectionTitle:n.section[o.sectionId].title,isLoading:r,isSticky:i,height:it("timeframe_headers")})}const Wr=(e,i,n)=>{const o=e.element.data;return t.jsx(vr,{isSticky:n,height:i,sectionData:o})},Or=(e,i)=>{const n=e.element.data,o=W.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:i,title:o.section[n.sectionId].title})},Mr=(e,i,n)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(No,{height:i,accountRecon:o,isLastRow:n,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Nr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Ir(e,i,n=0){const o=["summary"];switch(e){case"section":return!o.includes(i);case"section_with_ac_only":return!o.includes(i);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(i)||i==="detailed"&&n>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(i)||i==="detailed"&&n>0);case"title_string_only":return!o.includes(i);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(i==="detailed"&&n>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Zi={emptyLeftContainer:new D(w[0],w[5])},Pr=a(C)`
225
225
  margin-left: ${e=>!e.hasChildren&&e.depth!==0?c.sp3:c.sp2};
226
226
  overflow: hidden;
227
227
  white-space: nowrap;
@@ -249,7 +249,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
249
249
  height: ${c.sp1};
250
250
  `,We=a.div`
251
251
  display: flex;
252
- `,Rr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return t.jsxs(We,{children:[r.depth===0?t.jsx(xi,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(xi,{depth:r.depth}):null]},n+o)}):null}),Ji=({ancestorMetadata:e,depth:i,name:n})=>{const o=M();return i===0?e[i].hasChildren===!1?t.jsx(Qi,{windowSize:o}):t.jsxs(We,{children:[t.jsx(Re,{depth:i}),t.jsx(Be,{}),t.jsx(Re,{depth:i+1})]}):t.jsxs(t.Fragment,{children:[[...Array(i+1).keys()].map(r=>{const l=e[r],s=r!==i?e[r+1]:void 0;return t.jsxs(We,{children:[l.depth===0?t.jsx(Re,{depth:l.depth}):null,r>=2||r===1&&(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?i===1?t.jsx(fi,{index:1}):t.jsx(fi,{index:2}):null,(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Be,{},r):t.jsx(tt,{}),t.jsx(Re,{depth:l.depth+1})]},n+r)}),i===1&&e[i].hasChildren!=!0?t.jsx(Dr,{}):null]})},Xi=({ancestorMetadata:e,depth:i,name:n})=>i===0?t.jsx(Vr,{}):t.jsx(t.Fragment,{children:[...Array(i).keys()].map(o=>{const r=e[o],l=o!==i?e[o+1]:void 0;return t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}),t.jsx(Xe,{depth:r.depth+1})]},n+o)})}),Gr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(Xe,{depth:r.depth}):null]},n+o)}):null}),Er=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(Tr,{});return e===0&&r&&(d=t.jsx($o,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),n&&o&&i&&(d=t.jsx(wi,{})),n&&o&&!i&&(d=t.jsx(_o,{})),r&&o&&!i&&(d=t.jsx(Lo,{collapsed:l,onIconClick:s})),r&&o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),i&&n&&(d=t.jsx(wi,{}))),d},Hr=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(Fr,{children:t.jsx(Er,{depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function en(e){const{displayName:i}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const n=M();return t.jsxs(zr,{children:[e.classDepth!=null?t.jsx(Ji,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Qi,{windowSize:n}):null,t.jsx(Gr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Hr,{...e}),t.jsx(Pr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:n,title:i,children:i})]})}const E={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function Kr(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function Yr(){return!0}const Ee=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Ur=a.div`
252
+ `,Rr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return t.jsxs(We,{children:[r.depth===0?t.jsx(xi,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(xi,{depth:r.depth}):null]},n+o)}):null}),Ji=({ancestorMetadata:e,depth:i,name:n})=>{const o=M();return i===0?e[i].hasChildren===!1?t.jsx(Qi,{windowSize:o}):t.jsxs(We,{children:[t.jsx(Re,{depth:i}),t.jsx(Be,{}),t.jsx(Re,{depth:i+1})]}):t.jsxs(t.Fragment,{children:[[...Array(i+1).keys()].map(r=>{const l=e[r],s=r!==i?e[r+1]:void 0;return t.jsxs(We,{children:[l.depth===0?t.jsx(Re,{depth:l.depth}):null,r>=2||r===1&&(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?i===1?t.jsx(fi,{index:1}):t.jsx(fi,{index:2}):null,(i===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Be,{},r):t.jsx(tt,{}),t.jsx(Re,{depth:l.depth+1})]},n+r)}),i===1&&e[i].hasChildren!=!0?t.jsx(Dr,{}):null]})},Xi=({ancestorMetadata:e,depth:i,name:n})=>i===0?t.jsx(Vr,{}):t.jsx(t.Fragment,{children:[...Array(i).keys()].map(o=>{const r=e[o],l=o!==i?e[o+1]:void 0;return t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}),t.jsx(Xe,{depth:r.depth+1})]},n+o)})}),Gr=({ancestorMetadata:e,depth:i,name:n})=>t.jsx(t.Fragment,{children:i>0?[...Array(i).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(We,{children:[r.depth===0?t.jsx(Xe,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Be,{},o):t.jsx(tt,{}):null,r.depth>=1?t.jsx(Xe,{depth:r.depth}):null]},n+o)}):null}),Er=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(Tr,{});return e===0&&r&&(d=t.jsx(vo,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),n&&o&&i&&(d=t.jsx(wi,{})),n&&o&&!i&&(d=t.jsx(_o,{})),r&&o&&!i&&(d=t.jsx(Lo,{collapsed:l,onIconClick:s})),r&&o&&i&&(d=t.jsx(mi,{collapsed:l,onIconClick:s})),i&&n&&(d=t.jsx(wi,{}))),d},Hr=({depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(Fr,{children:t.jsx(Er,{depth:e,isLastNode:i,isLeaf:n,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function en(e){const{displayName:i}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const n=M();return t.jsxs(zr,{children:[e.classDepth!=null?t.jsx(Ji,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Qi,{windowSize:n}):null,t.jsx(Gr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Hr,{...e}),t.jsx(Pr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:n,title:i,children:i})]})}const E={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function Kr(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function Yr(){return!0}const Ee=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Ur=a.div`
253
253
  display: flex;
254
254
  flex: 1 1 auto;
255
255
  max-height: 1px;
@@ -360,7 +360,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
360
360
  &:hover {
361
361
  color: ${e=>e.theme.colors.primary};
362
362
  }
363
- `,sn=({balance:e,isOpen:i})=>{const n=i?e?.balance:e?.totalBalance;return t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",n)})})},cn=({total:e})=>t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function ta({isSticky:e,height:i,isScrolling:n,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=M(),g="default",p=s?.name??"";return t.jsxs(tn,{"data-testid":m("ap-aging-report-row-root-container",p),containerHeight:i,bgColor:d,windowSize:u,children:[t.jsxs(nn,{"data-testid":m("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:i-1,children:[t.jsxs(ln,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:i-1,children:[s?.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Pt,{name:p??"",size:c.sp4}),t.jsx(ea,{children:p})]}),t.jsxs(on,{"data-testid":m("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(sn,{balance:f,isOpen:!0},f?.period)),t.jsx(cn,{total:l})]})]}),t.jsx(dn,{isScrolling:n,isLastNode:o})]})}function ia({treeNodeId:e,isSticky:i,height:n,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:x}){const b=M(),y=g,v=u?.customer.name??"",S=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,O=L,F=O?"pointer":"default",T=u!=null?u.isLeafCustomer:!1,Y=()=>{x?.(e)};return t.jsxs(tn,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:n,bgColor:p,windowSize:b,children:[t.jsxs(nn,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:O,containerHeight:n-1,children:[t.jsx(ln,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:i,windowSize:b,bgColor:p,containerHeight:n-1,children:t.jsx(en,{displayName:v,depth:S,isLastNode:r,hasChildren:L,hasSiblings:B,isLeaf:T,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:Y,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(on,{children:[s.map(H=>t.jsx(sn,{balance:H,isOpen:l},H?.period)),t.jsx(cn,{total:l?d:h})]})]}),t.jsx(dn,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:i,noMarginForEntity:!0}})]})}function dn({isScrolling:e,isLastNode:i=!1,subEntityProps:n}){return i?t.jsx(kt,{isScrolling:e,kind:"end_row_separator",subEntityProps:n}):t.jsx(kt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:n})}const na=a.div`
363
+ `,sn=({balance:e,isOpen:i})=>{const n=i?e?.balance:e?.totalBalance;return t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",n)})})},cn=({total:e})=>t.jsx(rn,{children:t.jsx(an,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function ta({isSticky:e,height:i,isScrolling:n,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=M(),g="default",p=s?.name??"";return t.jsxs(tn,{"data-testid":m("ap-aging-report-row-root-container",p),containerHeight:i,bgColor:d,windowSize:u,children:[t.jsxs(nn,{"data-testid":m("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:i-1,children:[t.jsxs(ln,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:i-1,children:[s?.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Pt,{name:p??"",size:c.sp4}),t.jsx(ea,{children:p})]}),t.jsxs(on,{"data-testid":m("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(sn,{balance:f,isOpen:!0},f?.period)),t.jsx(cn,{total:l})]})]}),t.jsx(dn,{isScrolling:n,isLastNode:o})]})}function ia({treeNodeId:e,isSticky:i,height:n,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:x}){const b=M(),y=g,$=u?.customer.name??"",S=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,O=L,F=O?"pointer":"default",T=u!=null?u.isLeafCustomer:!1,Y=()=>{x?.(e)};return t.jsxs(tn,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:n,bgColor:p,windowSize:b,children:[t.jsxs(nn,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:O,containerHeight:n-1,children:[t.jsx(ln,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:i,windowSize:b,bgColor:p,containerHeight:n-1,children:t.jsx(en,{displayName:$,depth:S,isLastNode:r,hasChildren:L,hasSiblings:B,isLeaf:T,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:Y,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(on,{children:[s.map(H=>t.jsx(sn,{balance:H,isOpen:l},H?.period)),t.jsx(cn,{total:l?d:h})]})]}),t.jsx(dn,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:i,noMarginForEntity:!0}})]})}function dn({isScrolling:e,isLastNode:i=!1,subEntityProps:n}){return i?t.jsx(kt,{isScrolling:e,kind:"end_row_separator",subEntityProps:n}):t.jsx(kt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:n})}const na=a.div`
364
364
  user-select: none;
365
365
  display: flex;
366
366
  flex: 1 1 auto;
@@ -553,7 +553,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
553
553
  top: ${c.sp0};
554
554
  left: ${c.sp0};
555
555
  `:null}
556
- `,va=a(ne)`
556
+ `,$a=a(ne)`
557
557
  user-select: none;
558
558
  clear: both;
559
559
  display: inline-block;
@@ -562,7 +562,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
562
562
  text-overflow: ellipsis;
563
563
  text-align: left;
564
564
  color: ${e=>e.theme.colors.primary};
565
- `,$a=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i?.balance)}):null}),_a=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i)}):null});function La({type:e,isSticky:i,isIndented:n,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=M(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??A.defaultVendorCurrency.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??A.defaultVendorCurrency.currencySymbol};return t.jsx(ka,{"data-testid":m("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(ja,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Ca,{bgColor:s,isSticky:i,windowSize:d,isIndented:n,children:t.jsx(va,{children:r})}),t.jsxs(Sa,{children:[l.map((u,g)=>t.jsx($a,{type:e,balance:u},g)),t.jsx(_a,{type:e,balance:h})]})]})})}const Aa=(e,i,n,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(da,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:n,isSticky:o,height:i,sortKey:r,sortOrder:l,onSortOrderChanged:s})},Ba=(e,i,n,o,r,l,s,d,h,u)=>{if(i.element.kind!=="aging_report_row")return null;if(i.config.reportId==="accounts_payable_aging"){const p=i.element.data;return t.jsx(ta,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:n,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=i.element.data;return t.jsx(ia,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:n,metadata:i.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},Wa=(e,i,n,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(ya,{backgroundColor:r,isScrolling:o,isSticky:n,height:i,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Oa=(e,i,n,o,r)=>{const l=i.element.data;return t.jsx(La,{type:e,backgroundColor:o,isSticky:r,height:n,totalBalances:l,isIndented:i.config.reportId==="accounts_receivable_aging",title:i.element.title})};function nt(e,i,n,o){switch(e){case"cogs":return Ma(n,o,i);case"expenses":return Na(n,o,i);case"income":return Ia(n,o,i);case"cash_position":return Pa(n,o,i);case"cash_in":return za(n,o,i);case"cash_out":return Fa(n,o,i);case"assets":return Ta(n,o,i);case"equity":return Va(n,o,i);case"liabilities":return Da(n,o,i);case"other_expense":return Ra(n,o,i);case"other_income":return Ga(n,o,i);case"operating_activities":return Ea(n,o,i);case"investing_activities":return Ha(n,o,i);case"financing_activities":return Ka(n,o,i);default:throw Error(`${e} is not yet supported!`)}}const Ma=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Na=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ia=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Pa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},za=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Fa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ta=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Va=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Da=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ra=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ga=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ea=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ha=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ka=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o};function G(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>jn(i(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Sn(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Cn(i(o)?.balances??[]))}}function re(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>jn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Sn(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Cn(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function jn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function Sn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function Cn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function te(e,i="ascending_date",n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=$n([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function vn(e,i="ascending_date",n=-1,o=!0){const r=n!==-1,l=te(e,i,n,o);if(e==null||e.balances.length===0)return l;const s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=$n([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function Pe(e,i){if(i==="ascending_date")return e;{const n=[],o=[];for(const r of e)r.type==="default"?n.push(r):o.push(r);return[...n.reverse(),...o]}}function $n(e,i){return e.length>0?e:Vi(Array(i),null)}const Ya=a.div`
565
+ `,va=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i?.balance)}):null}),_a=({type:e,balance:i})=>t.jsx(bn,{children:ae(e)===!0?t.jsx(kn,{children:q("0,0",i)}):null});function La({type:e,isSticky:i,isIndented:n,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=M(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??A.defaultVendorCurrency.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??A.defaultVendorCurrency.currencySymbol};return t.jsx(ka,{"data-testid":m("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(ja,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Ca,{bgColor:s,isSticky:i,windowSize:d,isIndented:n,children:t.jsx($a,{children:r})}),t.jsxs(Sa,{children:[l.map((u,g)=>t.jsx(va,{type:e,balance:u},g)),t.jsx(_a,{type:e,balance:h})]})]})})}const Aa=(e,i,n,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(da,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:n,isSticky:o,height:i,sortKey:r,sortOrder:l,onSortOrderChanged:s})},Ba=(e,i,n,o,r,l,s,d,h,u)=>{if(i.element.kind!=="aging_report_row")return null;if(i.config.reportId==="accounts_payable_aging"){const p=i.element.data;return t.jsx(ta,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:n,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=i.element.data;return t.jsx(ia,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:n,metadata:i.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},Wa=(e,i,n,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(ya,{backgroundColor:r,isScrolling:o,isSticky:n,height:i,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Oa=(e,i,n,o,r)=>{const l=i.element.data;return t.jsx(La,{type:e,backgroundColor:o,isSticky:r,height:n,totalBalances:l,isIndented:i.config.reportId==="accounts_receivable_aging",title:i.element.title})};function nt(e,i,n,o){switch(e){case"cogs":return Ma(n,o,i);case"expenses":return Na(n,o,i);case"income":return Ia(n,o,i);case"cash_position":return Pa(n,o,i);case"cash_in":return za(n,o,i);case"cash_out":return Fa(n,o,i);case"assets":return Ta(n,o,i);case"equity":return Va(n,o,i);case"liabilities":return Da(n,o,i);case"other_expense":return Ra(n,o,i);case"other_income":return Ga(n,o,i);case"operating_activities":return Ea(n,o,i);case"investing_activities":return Ha(n,o,i);case"financing_activities":return Ka(n,o,i);default:throw Error(`${e} is not yet supported!`)}}const Ma=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Na=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ia=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Pa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},za=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Fa=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ta=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Va=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Da=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ra=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ga=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ea=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ha=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o},Ka=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>re(r,o.acGroupBalanceSelector,n,i),o};function G(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>jn(i(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Sn(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Cn(i(o)?.balances??[]))}}function re(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>jn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Sn(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Cn(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function jn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function Sn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function Cn(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function te(e,i="ascending_date",n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=vn([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function $n(e,i="ascending_date",n=-1,o=!0){const r=n!==-1,l=te(e,i,n,o);if(e==null||e.balances.length===0)return l;const s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=vn([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function Pe(e,i){if(i==="ascending_date")return e;{const n=[],o=[];for(const r of e)r.type==="default"?n.push(r):o.push(r);return[...n.reverse(),...o]}}function vn(e,i){return e.length>0?e:Vi(Array(i),null)}const Ya=a.div`
566
566
  display: flex;
567
567
  flex: 1 1 auto;
568
568
  max-height: 1px;
@@ -729,13 +729,13 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
729
729
  width: ${e=>ji[e.classDepth].valuePx(e.windowSize)};
730
730
  max-width: ${e=>ji[e.classDepth].valuePx(e.windowSize)};
731
731
  height: 1px;
732
- `,vl=a.div`
732
+ `,$l=a.div`
733
733
  display: flex;
734
734
  flex: 1 1 auto;
735
735
  max-height: 1px;
736
736
  height: 1px;
737
737
  background-color: ${e=>e.isScrolling?"transparent":e.colour};
738
- `,$l=a.div`
738
+ `,vl=a.div`
739
739
  display: flex;
740
740
  flex: 1 1 auto;
741
741
  max-height: 1px;
@@ -746,7 +746,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
746
746
  flex: 1 1 auto;
747
747
  max-height: 1px;
748
748
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
749
- `,Ci=e=>{const i=M(),n=ce();return t.jsxs(kl,{children:[t.jsxs(jl,{windowSize:i,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Cl,{classDepth:e.classDepth,windowSize:i}):null,t.jsx(Sl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:i}),t.jsx(vl,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]}),t.jsx($l,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]})};function me({kind:e,isScrolling:i,subAccountProps:n}){switch(e){case"account_title_row_separator":return t.jsx(Si,{marginLeft:w[5],isScrolling:i});case"sub_account_balance_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!1,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Si,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(bl,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(_l,{isScrolling:i});case"total_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!0,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1})}}function Ln({height:e,backgroundColor:i,title:n,numOfBalances:o=6}){const r=M(),l=n!=null?n.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Ll,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(Al,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(Bl,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(Wl,{columns:o,isSticky:d}),t.jsx(me,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(Ml,{height:e,bgColor:i,children:s})}const Ll=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Al=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Bl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Se,{style:{marginLeft:"36px"},children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Wl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Se,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ol=({rectangleWidth:e})=>t.jsx(An,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ot=({columns:e,rectangleWidth:i})=>t.jsx(Nl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((n,o)=>t.jsx(Ol,{rectangleWidth:i},o))}),Ml=a.div`
749
+ `,Ci=e=>{const i=M(),n=ce();return t.jsxs(kl,{children:[t.jsxs(jl,{windowSize:i,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Cl,{classDepth:e.classDepth,windowSize:i}):null,t.jsx(Sl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:i}),t.jsx($l,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]}),t.jsx(vl,{isScrolling:e.isScrolling,colour:e.isTotal?n.colors.grey1:n.colors.grey3})]})};function me({kind:e,isScrolling:i,subAccountProps:n}){switch(e){case"account_title_row_separator":return t.jsx(Si,{marginLeft:w[5],isScrolling:i});case"sub_account_balance_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!1,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Si,{marginLeft:0,isScrolling:i});case"ac_group_row_separator":return t.jsx(bl,{isScrolling:i});case"section_row_separator":case"heading_row_separator":return t.jsx(_l,{isScrolling:i});case"total_row_separator":return t.jsx(Ci,{nestingLevel:n?.nestingLevel??1,isScrolling:i,isSticky:n?.isSticky??!1,isTotal:!0,classDepth:n?.classDepth,noMarginForAccount:n?.noMarginForAccount??!1})}}function Ln({height:e,backgroundColor:i,title:n,numOfBalances:o=6}){const r=M(),l=n!=null?n.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Ll,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(Al,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(Bl,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(Wl,{columns:o,isSticky:d}),t.jsx(me,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(Ml,{height:e,bgColor:i,children:s})}const Ll=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Al=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsxs(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Bl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Se,{style:{marginLeft:"36px"},children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Wl=({columns:e,isSticky:i})=>t.jsxs(Se,{children:[t.jsx(rt,{isSticky:i,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Se,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(ot,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ol=({rectangleWidth:e})=>t.jsx(An,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ot=({columns:e,rectangleWidth:i})=>t.jsx(Nl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((n,o)=>t.jsx(Ol,{rectangleWidth:i},o))}),Ml=a.div`
750
750
  display: flex;
751
751
  flex: 1 1 auto;
752
752
  width: fit-content;
@@ -892,7 +892,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
892
892
  text-overflow: ellipsis;
893
893
  text-align: left;
894
894
  margin-left: ${c.sp2};
895
- `,Zl=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?Yl:jt;return t.jsxs(Kl,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(i)}),t.jsx(jt,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Ql({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const x=M(),b=!g,y=b?"pointer":"default",v=l.length>0?l.substr(0,1).toUpperCase():"",S=Xl(s),B=ce().colors.primary,[L,O]=I.useState(!1);return t.jsxs(Gl,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:i,windowSize:x,children:[t.jsxs(El,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>O(!0),onMouseLeave:()=>O(!1),children:[t.jsxs(Ul,{"data-testid":m("account-group-row-name-container",e),bgColor:i,isSticky:n,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(be,{"data-testid":m("account-group-row-circle-with-letter",e),color:_(B),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:v}),t.jsx(ql,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(Hl,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:s.map((F,T)=>t.jsx(Zl,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},T))})]}),t.jsx(Jl,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Jl({isScrolling:e,isLeaf:i,isLastNode:n,isOpen:o}){return i||!o||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Xl=e=>{let i=!1;if(e!=null){for(const n of e)if(n!=null&&n.balance.amount!==0){i=!0;break}}return i},es=a.div`
895
+ `,Zl=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?Yl:jt;return t.jsxs(Kl,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(i)}),t.jsx(jt,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Ql({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const x=M(),b=!g,y=b?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",S=Xl(s),B=ce().colors.primary,[L,O]=I.useState(!1);return t.jsxs(Gl,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:i,windowSize:x,children:[t.jsxs(El,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>O(!0),onMouseLeave:()=>O(!1),children:[t.jsxs(Ul,{"data-testid":m("account-group-row-name-container",e),bgColor:i,isSticky:n,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(be,{"data-testid":m("account-group-row-circle-with-letter",e),color:_(B),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:$}),t.jsx(ql,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(Hl,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:s.map((F,T)=>t.jsx(Zl,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},T))})]}),t.jsx(Jl,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Jl({isScrolling:e,isLeaf:i,isLastNode:n,isOpen:o}){return i||!o||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Xl=e=>{let i=!1;if(e!=null){for(const n of e)if(n!=null&&n.balance.amount!==0){i=!0;break}}return i},es=a.div`
896
896
  display: flex;
897
897
  flex: 1 1 auto;
898
898
  width: fit-content;
@@ -955,7 +955,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
955
955
  text-align: left;
956
956
  margin-left: 35px;
957
957
  color: ${e=>e.theme.colors.hero};
958
- `,as=({type:e,balance:i,account:n,onAccountBalanceClick:o,compareMode:r})=>{const l=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",s=n!=null&&i!=null&&o!=null&&l!==!0;return t.jsxs(ns,{children:[t.jsx(xt,{isClickable:s,onClick:()=>{s===!0&&n!=null&&i!=null&&o?.(n,i)},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(xt,{isClickable:!1,children:J(i)}),t.jsx(xt,{isClickable:!1,children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function ls({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:x}){const b=M(),{common:{strings:{empty:y}}}=W.getLocalizedStrings(),v=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:v,B=Di(),L=B.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(B.loggedInUserRole),O=L===!0&&f!=null&&s!==!0&&x!=null&&d!==!0,F=O?"pointer":"default",T=(Y,H)=>{O===!0&&l[l.length-1]!=null&&x?.(Y,H,l[l.length-1])};return t.jsxs(es,{height:r,bgColor:i,windowSize:b,children:[t.jsxs(ts,{style:{cursor:F},isClickable:O,onClick:()=>f!=null?T(o,f):null,children:[t.jsx(os,{isSticky:n,windowSize:b,bgColor:i,children:t.jsx(rs,{title:S,children:S})}),t.jsx(is,{children:l.map((Y,H)=>t.jsx(as,{type:e,balance:Y,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(U,Q)=>{x(o,U,Q)},compareMode:p},H))})]}),t.jsx(ss,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function ss({isScrolling:e,isLeaf:i,isLastNode:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const cs=a.div`
958
+ `,as=({type:e,balance:i,account:n,onAccountBalanceClick:o,compareMode:r})=>{const l=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",s=n!=null&&i!=null&&o!=null&&l!==!0;return t.jsxs(ns,{children:[t.jsx(xt,{isClickable:s,onClick:()=>{s===!0&&n!=null&&i!=null&&o?.(n,i)},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(xt,{isClickable:!1,children:J(i)}),t.jsx(xt,{isClickable:!1,children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function ls({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:x}){const b=M(),{common:{strings:{empty:y}}}=W.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:$,B=Di(),L=B.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(B.loggedInUserRole),O=L===!0&&f!=null&&s!==!0&&x!=null&&d!==!0,F=O?"pointer":"default",T=(Y,H)=>{O===!0&&l[l.length-1]!=null&&x?.(Y,H,l[l.length-1])};return t.jsxs(es,{height:r,bgColor:i,windowSize:b,children:[t.jsxs(ts,{style:{cursor:F},isClickable:O,onClick:()=>f!=null?T(o,f):null,children:[t.jsx(os,{isSticky:n,windowSize:b,bgColor:i,children:t.jsx(rs,{title:S,children:S})}),t.jsx(is,{children:l.map((Y,H)=>t.jsx(as,{type:e,balance:Y,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(U,Q)=>{x(o,U,Q)},compareMode:p},H))})]}),t.jsx(ss,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function ss({isScrolling:e,isLeaf:i,isLastNode:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"ac_group_row_separator"}):null}const cs=a.div`
959
959
  display: flex;
960
960
  flex: 1 1 auto;
961
961
  width: fit-content;
@@ -975,17 +975,17 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
975
975
  flex: 1 0 auto;
976
976
  flex-direction: row;
977
977
  justify-content: flex-end;
978
- `,vi=a.div`
978
+ `,$i=a.div`
979
979
  display: flex;
980
980
  flex-direction: row;
981
981
  justify-content: flex-start;
982
- `,ve=a(C)`
982
+ `,$e=a(C)`
983
983
  user-select: none;
984
984
  max-width: ${R.balanceWidth};
985
985
  min-width: ${R.balanceWidth};
986
986
  text-align: right;
987
987
  margin-left: ${R.balanceLeftMargin};
988
- `,$i=a(C)`
988
+ `,vi=a(C)`
989
989
  user-select: none;
990
990
  max-width: ${R.balanceWidth};
991
991
  min-width: ${R.balanceWidth};
@@ -1021,7 +1021,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1021
1021
  text-overflow: ellipsis;
1022
1022
  text-align: left;
1023
1023
  margin-left: ${c.sp2};
1024
- `,fs=({type:e,balance:i,color:n,compareMode:o})=>{const r=i!=null&&i.type==="default_with_percent"&&i.percentValue!=null?i.percentValue:0,l=i!=null&&i.type==="default_with_percent"&&i.forecastPercentValue!=null?i.forecastPercentValue:0;return t.jsxs(us,{children:[t.jsxs(vi,{children:[t.jsx(ve,{style:{color:n.toString()},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(ve,{style:{color:n.toString()},children:J(i)}),t.jsx(ve,{style:{color:n.toString()},children:o==="compare_mode_percent"?de(i):he(i)})]}):null]}),t.jsxs(vi,{children:[r!==0?t.jsx($i,{style:{color:n.toString()},children:fe("0,0%",r)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx($i,{style:{color:n.toString()},children:fe("0,0%",l)}):t.jsx(ve,{}),t.jsx(ve,{})]}):null]})]})};function Yt({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const x=M(),[b,y]=I.useState(!1),v=!g,S=v?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(cs,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:i,windowSize:x,children:[t.jsxs(ds,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(ps,{"data-testid":m("section-row-name-container",o),isSticky:n,windowSize:x,bgColor:i,children:[t.jsx(be,{"data-testid":m("section-row-circle-with-letter",o),color:_(d),showCollapsedIcon:!u,showIcon:v&&b,firstLetter:B}),t.jsx(gs,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(hs,{"data-testid":m("section-row-balances-container",o),children:s.map((L,O)=>t.jsx(fs,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:p},O))})]}),t.jsx(xs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function xs({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"section_row_separator"}):null}const ms=a.div`
1024
+ `,fs=({type:e,balance:i,color:n,compareMode:o})=>{const r=i!=null&&i.type==="default_with_percent"&&i.percentValue!=null?i.percentValue:0,l=i!=null&&i.type==="default_with_percent"&&i.forecastPercentValue!=null?i.forecastPercentValue:0;return t.jsxs(us,{children:[t.jsxs($i,{children:[t.jsx($e,{style:{color:n.toString()},children:Z(i)}),Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx($e,{style:{color:n.toString()},children:J(i)}),t.jsx($e,{style:{color:n.toString()},children:o==="compare_mode_percent"?de(i):he(i)})]}):null]}),t.jsxs($i,{children:[r!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",r)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(vi,{style:{color:n.toString()},children:fe("0,0%",l)}):t.jsx($e,{}),t.jsx($e,{})]}):null]})]})};function Yt({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const x=M(),[b,y]=I.useState(!1),$=!g,S=$?"pointer":"default",B=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(cs,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:i,windowSize:x,children:[t.jsxs(ds,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(ps,{"data-testid":m("section-row-name-container",o),isSticky:n,windowSize:x,bgColor:i,children:[t.jsx(be,{"data-testid":m("section-row-circle-with-letter",o),color:_(d),showCollapsedIcon:!u,showIcon:$&&b,firstLetter:B}),t.jsx(gs,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(hs,{"data-testid":m("section-row-balances-container",o),children:s.map((L,O)=>t.jsx(fs,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:p},O))})]}),t.jsx(xs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function xs({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(Kt,{isScrolling:e,kind:"section_row_separator"}):null}const ms=a.div`
1025
1025
  display: flex;
1026
1026
  flex: 1 1 auto;
1027
1027
  width: fit-content;
@@ -1088,7 +1088,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1088
1088
  text-align: right;
1089
1089
  margin-left: ${R.balanceLeftMargin};
1090
1090
  color: ${e=>e.theme.colors.brandColorJadeDark};
1091
- `,Cs=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?ks:On;return t.jsxs(bs,{children:[ae(e)===!0?t.jsx(r,{children:Z(i)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(mt,{children:Z(i)}),t.jsx(mt,{children:J(i)}),t.jsx(mt,{children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function vs({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=M(),p=!d,f=p?"pointer":"default";return t.jsx(ms,{height:r,bgColor:i,windowSize:g,children:t.jsxs(ws,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(js,{bgColor:i,isSticky:n,windowSize:g,children:t.jsx(Ss,{children:l})}),t.jsx(ys,{children:s.map((x,b)=>t.jsx(Cs,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Ut=(e,i)=>e.startsWith("net_burn_or_income")===!0?i!=null?ke.net_burn_or_income[i]:ke.default:e.startsWith("revenue")===!0?i!=null?ke.revenue[i]:ke.default:e.startsWith("cash_in_cash_out")===!0&&i!=null?ke.cash_in_cash_out[i]:ke.default,$s=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(ls,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:n.config.mode==="this_period_vs_period_before",isForecastModeOn:n.config.mode==="actual_vs_forecast",isScrolling:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(b,y,v)=>{g?.(b,y,v)}})},_s=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Ql,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Mn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:n.element.title,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Ls=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Nn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},In=(e,i,n,o,r,l,s,d)=>{if((n.config.isZeniCOAInUse==null||n.config.isZeniCOAInUse===!0)&&n.config.mode!=="this_period_vs_period_before")return null;const h=n.element.data,u=te(h,n.config.displayOrder,n.element.numOfBalances);return t.jsx(vs,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,title:n.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},As=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Bs=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),qt=20,Ws=e=>{const i=[];return e&&Object.values(e).forEach(n=>{i.push(n)}),i.reverse()},Os=a.div`
1091
+ `,Cs=({type:e,balance:i,collapsed:n,compareMode:o})=>{const r=n===!0?ks:On;return t.jsxs(bs,{children:[ae(e)===!0?t.jsx(r,{children:Z(i)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(mt,{children:Z(i)}),t.jsx(mt,{children:J(i)}),t.jsx(mt,{children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function $s({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=M(),p=!d,f=p?"pointer":"default";return t.jsx(ms,{height:r,bgColor:i,windowSize:g,children:t.jsxs(ws,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(js,{bgColor:i,isSticky:n,windowSize:g,children:t.jsx(Ss,{children:l})}),t.jsx(ys,{children:s.map((x,b)=>t.jsx(Cs,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Ut=(e,i)=>e.startsWith("net_burn_or_income")===!0?i!=null?ke.net_burn_or_income[i]:ke.default:e.startsWith("revenue")===!0?i!=null?ke.revenue[i]:ke.default:e.startsWith("cash_in_cash_out")===!0&&i!=null?ke.cash_in_cash_out[i]:ke.default,vs=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(ls,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:n.config.mode==="this_period_vs_period_before",isForecastModeOn:n.config.mode==="actual_vs_forecast",isScrolling:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},_s=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Ql,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Mn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:n.element.title,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Ls=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.sectionType),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Nn=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ut(n.config.reportId,n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Yt,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},In=(e,i,n,o,r,l,s,d)=>{if((n.config.isZeniCOAInUse==null||n.config.isZeniCOAInUse===!0)&&n.config.mode!=="this_period_vs_period_before")return null;const h=n.element.data,u=te(h,n.config.displayOrder,n.element.numOfBalances);return t.jsx($s,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,title:n.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},As=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Bs=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),qt=20,Ws=e=>{const i=[];return e&&Object.values(e).forEach(n=>{i.push(n)}),i.reverse()},Os=a.div`
1092
1092
  display: flex;
1093
1093
  flex: 1 1 auto;
1094
1094
  height: 1px;
@@ -1264,7 +1264,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1264
1264
  display: flex;
1265
1265
  flex: 1;
1266
1266
  justify-content: flex-end;
1267
- `,ac=({isBalanceRowFirstNode:e=!1,balance:i})=>{const n=i!=null;return t.jsxs(Fn,{children:[e?t.jsx(Tn,{}):null,t.jsx(Us,{children:t.jsx(qs,{isClickable:n,children:Z(i)})})]})};function lc({varianceAmount:e,variancePercentage:i,currency:n,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=W.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Ks,{children:[t.jsxs(Ys,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(oc,{children:t.jsxs(Zs,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Qs,{children:[t.jsx(Pn,{height:j.lineComponentHeight}),t.jsx(Xs,{children:Li.common.texts.category}),t.jsx(ec,{children:Li.common.texts.class})]}),t.jsxs(Js,{children:[y===!0?t.jsx(Vs,{height:j.lineLComponentHeight}):t.jsx(Ds,{}),t.jsx(tc,{title:x,children:x}),t.jsx(ic,{title:b,children:b})]})]})}),t.jsx(rc,{children:t.jsxs(nc,{children:[r.map((v,S)=>t.jsx(ac,{balance:v,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Fn,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Tn,{}),t.jsx(at,{amount:e,percentage:i,currency:n})]})]})})]}),t.jsx(sc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function sc({isScrolling:e,isLastNode:i,isParentLastChild:n}){return i&&n?t.jsx(St,{isScrolling:e,kind:"vendor_separator"}):i?t.jsx(St,{isScrolling:e,kind:"account_class_row_separator"}):null}function cc(){return t.jsxs(dc,{children:[t.jsxs(uc,{children:[t.jsxs(je,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})]}),t.jsx(je,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(hc,{children:[t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(je,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:c.sp1}})]}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const dc=a.div`
1267
+ `,ac=({isBalanceRowFirstNode:e=!1,balance:i})=>{const n=i!=null;return t.jsxs(Fn,{children:[e?t.jsx(Tn,{}):null,t.jsx(Us,{children:t.jsx(qs,{isClickable:n,children:Z(i)})})]})};function lc({varianceAmount:e,variancePercentage:i,currency:n,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=W.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Ks,{children:[t.jsxs(Ys,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(oc,{children:t.jsxs(Zs,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Qs,{children:[t.jsx(Pn,{height:j.lineComponentHeight}),t.jsx(Xs,{children:Li.common.texts.category}),t.jsx(ec,{children:Li.common.texts.class})]}),t.jsxs(Js,{children:[y===!0?t.jsx(Vs,{height:j.lineLComponentHeight}):t.jsx(Ds,{}),t.jsx(tc,{title:x,children:x}),t.jsx(ic,{title:b,children:b})]})]})}),t.jsx(rc,{children:t.jsxs(nc,{children:[r.map(($,S)=>t.jsx(ac,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Fn,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Tn,{}),t.jsx(at,{amount:e,percentage:i,currency:n})]})]})})]}),t.jsx(sc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function sc({isScrolling:e,isLastNode:i,isParentLastChild:n}){return i&&n?t.jsx(St,{isScrolling:e,kind:"vendor_separator"}):i?t.jsx(St,{isScrolling:e,kind:"account_class_row_separator"}):null}function cc(){return t.jsxs(dc,{children:[t.jsxs(uc,{children:[t.jsxs(je,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Ne,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})]}),t.jsx(je,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(hc,{children:[t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(je,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:c.sp1}})]}),t.jsx(je,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const dc=a.div`
1268
1268
  display: flex;
1269
1269
  flex-direction: row;
1270
1270
  width: 100%;
@@ -1363,12 +1363,12 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1363
1363
  ${j.statusContainerWidth} +
1364
1364
  ${j.statusLeftMargin}
1365
1365
  );
1366
- `,Sc=({balance:e,color:i})=>t.jsx(fc,{children:t.jsx(xc,{color:i,children:Z(e)})}),Cc=Oo.memo(function({currency:e,sectionId:i,selectedSectionsIds:n,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:v,sectionToggled:S,onSectionCheckboxClick:B}){const L=M(),[O,F]=I.useState(v.length>0),[T,Y]=I.useState(!1),H=n.includes(i),U=!y,Q=v.length===qt&&!H,ue=d?.[0]?.toUpperCase()??"",X=I.useCallback(oe=>{B?.(i,oe.target.checked)},[i,B]);return t.jsxs(pc,{heightValue:s,bgColor:o,children:[t.jsxs(gc,{style:{cursor:U?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{Y(!0),F(!0)},onMouseLeave:()=>{Y(!1),v.length===0&&F(!1)},children:[t.jsxs(mc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&O&&b?t.jsx(bc,{children:t.jsx(Mt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(yc,{}),checked:H,id:l,disabled:Q,onChange:X,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(kc,{}),t.jsx(be,{color:_(f),showCollapsedIcon:!b,showIcon:T&&U,firstLetter:ue}),t.jsx(wc,{color:f.toString(),children:d})]}),t.jsxs(jc,{children:[u.map((oe,Ce)=>t.jsx(Sc,{sectionName:d,balance:oe,color:f.toString()},Ce)),t.jsx(at,{amount:g,percentage:p,currency:e})]})]}),t.jsx(vc,{isScrolling:x,isLeaf:y,isOpen:b})]})});function vc({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(St,{isScrolling:e,kind:"section_row_separator"}):null}function $c(){const e=M();return t.jsxs(_c,{windowSize:e,children:[t.jsx($e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx($e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx($e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx($e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx($e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const _c=a.div`
1366
+ `,Sc=({balance:e,color:i})=>t.jsx(fc,{children:t.jsx(xc,{color:i,children:Z(e)})}),Cc=Oo.memo(function({currency:e,sectionId:i,selectedSectionsIds:n,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:$,sectionToggled:S,onSectionCheckboxClick:B}){const L=M(),[O,F]=I.useState($.length>0),[T,Y]=I.useState(!1),H=n.includes(i),U=!y,Q=$.length===qt&&!H,ue=d?.[0]?.toUpperCase()??"",X=I.useCallback(oe=>{B?.(i,oe.target.checked)},[i,B]);return t.jsxs(pc,{heightValue:s,bgColor:o,children:[t.jsxs(gc,{style:{cursor:U?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{Y(!0),F(!0)},onMouseLeave:()=>{Y(!1),$.length===0&&F(!1)},children:[t.jsxs(mc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&O&&b?t.jsx(bc,{children:t.jsx(Mt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(yc,{}),checked:H,id:l,disabled:Q,onChange:X,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(kc,{}),t.jsx(be,{color:_(f),showCollapsedIcon:!b,showIcon:T&&U,firstLetter:ue}),t.jsx(wc,{color:f.toString(),children:d})]}),t.jsxs(jc,{children:[u.map((oe,Ce)=>t.jsx(Sc,{sectionName:d,balance:oe,color:f.toString()},Ce)),t.jsx(at,{amount:g,percentage:p,currency:e})]})]}),t.jsx($c,{isScrolling:x,isLeaf:y,isOpen:b})]})});function $c({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(St,{isScrolling:e,kind:"section_row_separator"}):null}function vc(){const e=M();return t.jsxs(_c,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const _c=a.div`
1367
1367
  display: flex;
1368
1368
  flex-direction: row;
1369
1369
  width: 100%;
1370
1370
  margin-left: ${c.sp8};
1371
- `,$e=a.div`
1371
+ `,ve=a.div`
1372
1372
  display: flex;
1373
1373
  flex-direction: row;
1374
1374
  align-items: center;
@@ -1446,10 +1446,10 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1446
1446
  gap: 6px;
1447
1447
  align-items: baseline;
1448
1448
  color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1449
- `,vt=a.div`
1449
+ `,$t=a.div`
1450
1450
  display: flex;
1451
1451
  cursor: pointer;
1452
- `,$t=a.div`
1452
+ `,vt=a.div`
1453
1453
  color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
1454
  `,_t=a(Tt)`
1455
1455
  width: ${j.sortIconDimension};
@@ -1466,7 +1466,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1466
1466
  margin-left: ${c.sp7};
1467
1467
  flex: 1 1 auto;
1468
1468
  justify-content: flex-end;
1469
- `,Tc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Ct,{isClickable:!1,children:t.jsx(Oc,{children:Ie(e,i,n)})}),Vc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Tc,{firstMonthOfFY:e,timeframeTick:i,timeframe:n}),Dc=({sortKey:e="vendor",sortOrder:i="ascending",isBulkSelected:n,onSortOrderChanged:o})=>{const r=()=>{o(i==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?i:"ascending";return t.jsx(zc,{isBulkSelected:n,isSortedByKey:e==="vendor",children:t.jsxs(vt,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Bc.vendor,t.jsx($t,{isBulkSelected:n,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})};function Rc({backgroundColor:e,height:i,isBulkSelected:n,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=M(),g=(p,f)=>{h?.(p,f)};return t.jsxs(Wc,{heightValue:i,bgColor:e,children:[t.jsx(Ic,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Pc,{windowSize:u,children:t.jsx(Dc,{sortKey:o,sortOrder:r,isBulkSelected:n,onSortOrderChanged:g})})}),t.jsxs(Fc,{children:[d.map((p,f)=>t.jsx(Vc,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(Ct,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(vt,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(Mc,{children:Ac.variance}),t.jsx($t,{isBulkSelected:n,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})}),t.jsx(Ct,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(vt,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Nc,{children:Lc.texts.reviewStatus}),t.jsx($t,{isBulkSelected:n,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})]})]})}const Gc=a.div`
1469
+ `,Tc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Ct,{isClickable:!1,children:t.jsx(Oc,{children:Ie(e,i,n)})}),Vc=({firstMonthOfFY:e,timeframeTick:i,timeframe:n})=>t.jsx(Tc,{firstMonthOfFY:e,timeframeTick:i,timeframe:n}),Dc=({sortKey:e="vendor",sortOrder:i="ascending",isBulkSelected:n,onSortOrderChanged:o})=>{const r=()=>{o(i==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?i:"ascending";return t.jsx(zc,{isBulkSelected:n,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Bc.vendor,t.jsx(vt,{isBulkSelected:n,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})};function Rc({backgroundColor:e,height:i,isBulkSelected:n,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=M(),g=(p,f)=>{h?.(p,f)};return t.jsxs(Wc,{heightValue:i,bgColor:e,children:[t.jsx(Ic,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Pc,{windowSize:u,children:t.jsx(Dc,{sortKey:o,sortOrder:r,isBulkSelected:n,onSortOrderChanged:g})})}),t.jsxs(Fc,{children:[d.map((p,f)=>t.jsx(Vc,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(Ct,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(Mc,{children:Ac.variance}),t.jsx(vt,{isBulkSelected:n,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})}),t.jsx(Ct,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Nc,{children:Lc.texts.reviewStatus}),t.jsx(vt,{isBulkSelected:n,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(_t,{}):t.jsx(Lt,{})})]})})]})]})}const Gc=a.div`
1470
1470
  display: flex;
1471
1471
  flex: 1 1 auto;
1472
1472
  width: fit-content;
@@ -1721,7 +1721,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1721
1721
  justify-content: center;
1722
1722
  align-items: center;
1723
1723
  margin-left: ${c.sp1};
1724
- `,{common:Bi,expenseAutomation:jd}=W.getLocalizedStrings(),Sd=({balance:e})=>{const i=nd;return t.jsx(id,{children:t.jsx(i,{children:Z(e)})})};function Cd({fluxAnalysisEntityId:e,idsForReview:i,backgroundColor:n,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:v,onClick:S,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[O,F]=I.useState(!1),[T,Y]=I.useState(i.length>0),H=i.includes(e),U=i.includes(e),Q=s==="collapsed",ue=i.length===qt&&H===!1,X=rd,oe=le=>{let pe=i;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Ve=>Ve!==e),L?.(pe)},Ce=()=>{B?.(x)};return t.jsx(ed,{heightValue:l,bgColor:n,children:t.jsxs(td,{shouldHighlight:U,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),Y(!0),v?.(x.id)},onMouseLeave:()=>{F(!1),i.length===0&&Y(!1),v?.(null)},children:[t.jsxs(od,{className:"flux-vendor-name-container",bgColor:n,isSticky:o,children:[t.jsx(fd,{className:"flux-vendor-checkbox-container",children:T?t.jsx(Mt,{className:"flux-vendor-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(xd,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:oe,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(dd,{isNodeOpen:b,children:[O?t.jsx(yd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Ai,{}):t.jsx(wd,{})}):x.logo!=null?t.jsx(It,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Pt,{name:x.name,size:c.sp4}),b?t.jsx(Pn,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(ad,{children:[t.jsxs(ld,{children:[t.jsx(X,{children:x.name}),b?null:t.jsx(kd,{className:"flux-vendor-children-count",children:t.jsx(Ae,{children:y})})]}),O?t.jsx(I.Fragment,{children:t.jsx(bd,{className:"flux-vendor-chevron-icon",onClick:Ce,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Ai,{})})}):null]})]}),t.jsxs(cd,{children:[g.map((le,pe)=>t.jsx(Sd,{balance:le,collapsed:Q},pe)),t.jsx(at,{amount:d,percentage:h,currency:u}),t.jsx(hd,{children:f==="Pending Review"?t.jsx(pd,{children:t.jsx(gd,{children:Bi.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(ud,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(md,{children:[t.jsx(sd,{}),jd.fluxAnalysis.reviewedBy]}),t.jsx(Ae,{children:wo(p)})]}):Bi.strings.hyphen})})})]})]})})}const Wi={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},vd=(e,i)=>e.startsWith("flux_analysis_operating_expense")===!0&&i!=null?Wi[i]:Wi.default,Zt=(e,i)=>{const{element:n}=e;return n.kind===i&&n.data!=null},Vn=e=>Ws(e.balancesByMonth),$d=(e,i,n,o,r,l,s,d,h)=>{if(!Zt(i,"flux_vendor_account_class_row"))return null;const u=i.element.data,g=Vn(u),p=i.element.metadata.vendorId;return t.jsx(lc,{backgroundColor:n,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:i.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},_d=(e,i,n,o,r,l,s,d,h,u,g)=>{if(!Zt(i,"flux_vendor_row"))return null;const p=i.element.data,f=Vn(p),x=zn("flux_vendor_row",h),b=y=>{g?.(y),i.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Cd,{backgroundColor:n,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:i.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:i.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ld=(e,i,n,o,r,l,s,d,h,u)=>{if(!Zt(i,"section"))return null;const g=vd(i.config.reportId,i.element.sectionType),p=i.element.data,f=x=>{i.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Cc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:n,selectedSectionsIds:i.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:i.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:i.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},Ad=(e,i,n)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Pe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>A.toTimeframeTick(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(Rc,{isSticky:n,height:i,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===qt,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Bd=(e,i)=>{if(e.element.kind!=="total")return null;const n=e.element.data;return t.jsx(Xc,{type:"name+balances_actual",title:e.element.title,totalBalances:n.balances,varianceAmount:n.varianceAmount,variancePercentage:n.variancePercentage,currency:n.currency,height:i})},Wd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(cc,{}),Od=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx($c,{}),Md=a.div`
1724
+ `,{common:Bi,expenseAutomation:jd}=W.getLocalizedStrings(),Sd=({balance:e})=>{const i=nd;return t.jsx(id,{children:t.jsx(i,{children:Z(e)})})};function Cd({fluxAnalysisEntityId:e,idsForReview:i,backgroundColor:n,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:$,onClick:S,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[O,F]=I.useState(!1),[T,Y]=I.useState(i.length>0),H=i.includes(e),U=i.includes(e),Q=s==="collapsed",ue=i.length===qt&&H===!1,X=rd,oe=le=>{let pe=i;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Ve=>Ve!==e),L?.(pe)},Ce=()=>{B?.(x)};return t.jsx(ed,{heightValue:l,bgColor:n,children:t.jsxs(td,{shouldHighlight:U,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),Y(!0),$?.(x.id)},onMouseLeave:()=>{F(!1),i.length===0&&Y(!1),$?.(null)},children:[t.jsxs(od,{className:"flux-vendor-name-container",bgColor:n,isSticky:o,children:[t.jsx(fd,{className:"flux-vendor-checkbox-container",children:T?t.jsx(Mt,{className:"flux-vendor-checkbox",icon:t.jsx(Nt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(xd,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:oe,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(dd,{isNodeOpen:b,children:[O?t.jsx(yd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Ai,{}):t.jsx(wd,{})}):x.logo!=null?t.jsx(It,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Pt,{name:x.name,size:c.sp4}),b?t.jsx(Pn,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(ad,{children:[t.jsxs(ld,{children:[t.jsx(X,{children:x.name}),b?null:t.jsx(kd,{className:"flux-vendor-children-count",children:t.jsx(Ae,{children:y})})]}),O?t.jsx(I.Fragment,{children:t.jsx(bd,{className:"flux-vendor-chevron-icon",onClick:Ce,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Ai,{})})}):null]})]}),t.jsxs(cd,{children:[g.map((le,pe)=>t.jsx(Sd,{balance:le,collapsed:Q},pe)),t.jsx(at,{amount:d,percentage:h,currency:u}),t.jsx(hd,{children:f==="Pending Review"?t.jsx(pd,{children:t.jsx(gd,{children:Bi.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(ud,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(md,{children:[t.jsx(sd,{}),jd.fluxAnalysis.reviewedBy]}),t.jsx(Ae,{children:wo(p)})]}):Bi.strings.hyphen})})})]})]})})}const Wi={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},$d=(e,i)=>e.startsWith("flux_analysis_operating_expense")===!0&&i!=null?Wi[i]:Wi.default,Zt=(e,i)=>{const{element:n}=e;return n.kind===i&&n.data!=null},Vn=e=>Ws(e.balancesByMonth),vd=(e,i,n,o,r,l,s,d,h)=>{if(!Zt(i,"flux_vendor_account_class_row"))return null;const u=i.element.data,g=Vn(u),p=i.element.metadata.vendorId;return t.jsx(lc,{backgroundColor:n,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:i.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},_d=(e,i,n,o,r,l,s,d,h,u,g)=>{if(!Zt(i,"flux_vendor_row"))return null;const p=i.element.data,f=Vn(p),x=zn("flux_vendor_row",h),b=y=>{g?.(y),i.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Cd,{backgroundColor:n,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:i.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:i.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ld=(e,i,n,o,r,l,s,d,h,u)=>{if(!Zt(i,"section"))return null;const g=$d(i.config.reportId,i.element.sectionType),p=i.element.data,f=x=>{i.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Cc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:n,selectedSectionsIds:i.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:i.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:i.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:i.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},Ad=(e,i,n)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Pe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>A.toTimeframeTick(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(Rc,{isSticky:n,height:i,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===qt,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Bd=(e,i)=>{if(e.element.kind!=="total")return null;const n=e.element.data;return t.jsx(Xc,{type:"name+balances_actual",title:e.element.title,totalBalances:n.balances,varianceAmount:n.varianceAmount,variancePercentage:n.variancePercentage,currency:n.currency,height:i})},Wd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(cc,{}),Od=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(vc,{}),Md=a.div`
1725
1725
  display: flex;
1726
1726
  flex: 1 1 auto;
1727
1727
  width: fit-content;
@@ -1913,7 +1913,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
1913
1913
  left: ${c.sp0};
1914
1914
  z-index: 20;
1915
1915
  `:null}
1916
- `;function Qt({title:e,selectedMode:i,onCompareModeChanged:n,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=x=>W.getLocalizedStrings().compareMode[x];return t.jsx(vo,{title:e,pickerValues:p,valueToLabel:f,selectedValue:i,onPickerSelectionChanged:x=>n(x),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const At={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},eh=a.div`
1916
+ `;function Qt({title:e,selectedMode:i,onCompareModeChanged:n,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=x=>W.getLocalizedStrings().compareMode[x];return t.jsx($o,{title:e,pickerValues:p,valueToLabel:f,selectedValue:i,onPickerSelectionChanged:x=>n(x),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const At={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},eh=a.div`
1917
1917
  margin-left: ${c.sp4};
1918
1918
  `,th=a.div`
1919
1919
  display: flex;
@@ -2071,7 +2071,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2071
2071
  height: 12px;
2072
2072
  cursor: pointer;
2073
2073
  color: ${e=>e.theme.colors.hero};
2074
- `,Yn=({sortOrder:e,sortKey:i,onSortOrderChanged:n})=>{const o=()=>{n(dt("totals",e,i),"totals")},r=i==="totals"?e:"ascending";return t.jsx(Kn,{"data-testid":m("period-total-tick"),children:t.jsx(Gn,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(En,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(lt,{selectedForSort:i==="totals",children:r==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]})})})},gh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("vendor",i,e),"vendor")},l=e==="vendor"?i:"ascending";return t.jsxs(dh,{selectedForSort:e==="vendor",children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(lt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(Xt,{onClick:o}):null]})},fh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("account",i,e),"account")},l=e==="account"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="account",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(lt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(Xt,{onClick:o}):null]})},xh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("class",i,e),"class")},l=e==="class"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="class",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(lt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(Xt,{onClick:o}):null]})},Un=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Kn,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(Gn,{isClickable:!1,children:t.jsx(En,{children:Ie(e,i,n)})})})},mh=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:s,onSortOrderChanged:d})=>i.balanceType==="period_total"?t.jsx(Yn,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(Un,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s}),wh=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(hh,{children:i.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ph,{children:t.jsx(Qt,{title:p,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Yn,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(uh,{children:t.jsx(Un,{firstMonthOfFY:e,timeframeTick:f,timeframe:n,dataAvailable:s,bookCloseDate:d},x)}):null]},x))})};function yh({backgroundColor:e,isSticky:i,height:n,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const v=M(),S=(L,O)=>{y?.(L,O)},B=()=>{y?.("descending","totals")};return t.jsxs(ah,{height:n,bgColor:e,children:[t.jsx(sh,{bgColor:e,windowSize:v,isSticky:i,children:t.jsx(ch,{plHeight:n,windowSize:v,bgColor:e,children:t.jsx(gh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B})})}),r?t.jsx(fh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,l?t.jsx(xh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,t.jsx(lh,{children:o===!0?t.jsx(wh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):g.map((L,O)=>t.jsx(mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:s,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},O))})]})}const dt=(e,i,n)=>e===n?i==="ascending"?"descending":"ascending":"descending",bh=a.div`
2074
+ `,Yn=({sortOrder:e,sortKey:i,onSortOrderChanged:n})=>{const o=()=>{n(dt("totals",e,i),"totals")},r=i==="totals"?e:"ascending";return t.jsx(Kn,{"data-testid":m("period-total-tick"),children:t.jsx(Gn,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(En,{children:[W.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(lt,{selectedForSort:i==="totals",children:r==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]})})})},gh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("vendor",i,e),"vendor")},l=e==="vendor"?i:"ascending";return t.jsxs(dh,{selectedForSort:e==="vendor",children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(lt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(Xt,{onClick:o}):null]})},fh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("account",i,e),"account")},l=e==="account"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="account",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(lt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(Xt,{onClick:o}):null]})},xh=({sortKey:e="totals",sortOrder:i="ascending",onSortOrderChanged:n,onSortCancel:o})=>{const r=()=>{n(dt("class",i,e),"class")},l=e==="class"?i:"ascending",s=M();return t.jsxs(Hn,{selectedForSort:e==="class",windowSize:s,children:[t.jsxs(Jt,{onClick:r,children:[W.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(lt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ct,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(Xt,{onClick:o}):null]})},Un=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Kn,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(Gn,{isClickable:!1,children:t.jsx(En,{children:Ie(e,i,n)})})})},mh=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:s,onSortOrderChanged:d})=>i.balanceType==="period_total"?t.jsx(Yn,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(Un,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s}),wh=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(hh,{children:i.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(ph,{children:t.jsx(Qt,{title:p,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Yn,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(uh,{children:t.jsx(Un,{firstMonthOfFY:e,timeframeTick:f,timeframe:n,dataAvailable:s,bookCloseDate:d},x)}):null]},x))})};function yh({backgroundColor:e,isSticky:i,height:n,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const $=M(),S=(L,O)=>{y?.(L,O)},B=()=>{y?.("descending","totals")};return t.jsxs(ah,{height:n,bgColor:e,children:[t.jsx(sh,{bgColor:e,windowSize:$,isSticky:i,children:t.jsx(ch,{plHeight:n,windowSize:$,bgColor:e,children:t.jsx(gh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B})})}),r?t.jsx(fh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,l?t.jsx(xh,{sortKey:s,sortOrder:d,onSortOrderChanged:S,onSortCancel:B}):null,t.jsx(lh,{children:o===!0?t.jsx(wh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):g.map((L,O)=>t.jsx(mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:s,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},O))})]})}const dt=(e,i,n)=>e===n?i==="ascending"?"descending":"ascending":"descending",bh=a.div`
2075
2075
  display: flex;
2076
2076
  flex: 1 1 auto;
2077
2077
  max-height: 1px;
@@ -2102,7 +2102,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2102
2102
  flex: 1 0 auto;
2103
2103
  flex-direction: row;
2104
2104
  justify-content: flex-end;
2105
- `,vh=a.div`
2105
+ `,$h=a.div`
2106
2106
  display: flex;
2107
2107
  flex-direction: row;
2108
2108
  justify-content: flex-start;
@@ -2114,7 +2114,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2114
2114
  margin-left: ${N.balanceLeftMargin};
2115
2115
  color: ${e=>e.theme.colors.primary};
2116
2116
  border: 1px solid transparent;
2117
- `,$h=a(qn)`
2117
+ `,vh=a(qn)`
2118
2118
  color: ${e=>e.theme.colors.hero};
2119
2119
  &:hover {
2120
2120
  color: inherit;
@@ -2151,7 +2151,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2151
2151
  text-overflow: ellipsis;
2152
2152
  text-align: left;
2153
2153
  color: ${e=>e.theme.colors.primary};
2154
- `,Bh=({type:e,balance:i,collapsed:n})=>{const o=n===!0?$h:qn;return t.jsx(vh,{children:ae(e)===!0?t.jsx(o,{children:Z(i)}):null})};function Wh({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=M();return t.jsxs(jh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:i,windowSize:p,children:[t.jsxs(Sh,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(_h,{bgColor:i,windowSize:p,isSticky:n,children:[t.jsx(Lh,{bgColor:i,windowSize:p,children:t.jsx(Ah,{children:l})}),d?t.jsx(Ii,{windowSize:p}):null,h?t.jsx(Ii,{windowSize:p}):null]}),t.jsx(Ch,{children:s.map((f,x)=>t.jsx(Bh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Bt,{isScrolling:g,kind:"vendor_row_separator"})]})}const Oh=a.div`
2154
+ `,Bh=({type:e,balance:i,collapsed:n})=>{const o=n===!0?vh:qn;return t.jsx($h,{children:ae(e)===!0?t.jsx(o,{children:Z(i)}):null})};function Wh({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=M();return t.jsxs(jh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:i,windowSize:p,children:[t.jsxs(Sh,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(_h,{bgColor:i,windowSize:p,isSticky:n,children:[t.jsx(Lh,{bgColor:i,windowSize:p,children:t.jsx(Ah,{children:l})}),d?t.jsx(Ii,{windowSize:p}):null,h?t.jsx(Ii,{windowSize:p}):null]}),t.jsx(Ch,{children:s.map((f,x)=>t.jsx(Bh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Bt,{isScrolling:g,kind:"vendor_row_separator"})]})}const Oh=a.div`
2155
2155
  display: flex;
2156
2156
  flex: 1 1 auto;
2157
2157
  width: fit-content;
@@ -2270,7 +2270,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2270
2270
  `,Hh=a(C)`
2271
2271
  color: ${e=>e.theme.colors.hero};
2272
2272
  display: none;
2273
- `,Kh=({balance:e,vendor:i,onVendorNameAndBalanceClick:n})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",s=o!==!0&&r===!1&&l===!1&&!A.isOpexByVendorIDNotSpecifiedVendor(i.id);return t.jsx(Ih,{children:t.jsx(Ph,{isClickable:s,onClick:()=>{s===!0&&n(i,e??void 0)},children:Z(e)})})};function Yh({type:e,backgroundColor:i,isSticky:n,height:o,isScrolling:r,isLastNode:l,vendor:s,balances:d,accountBase:h,classBase:u,isAccountColumnShown:g,isClassColumnShown:p,onVendorNameAndBalanceClick:f}){const x=M(),b=Di(),y=b.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(b.loggedInUserRole),v=A.isOpexByVendorIDNotSpecifiedVendor(s.id),S=y===!0&&s!=null&&!v,B=S?"pointer":"default",L=s.name;return t.jsxs(Oh,{"data-testid":m("vendor-row-root-container",s.id),height:o,bgColor:i,windowSize:x,children:[t.jsxs(Mh,{"data-testid":m("vendor-row-container",s.id),style:{cursor:B},isClickable:S,children:[t.jsx(zh,{"data-testid":m("vendor-row-sticky-container",s.id),isSticky:n,windowSize:x,bgColor:i,children:t.jsxs(Fh,{"data-testid":m("vendor-row-name-container",s.id),windowSize:x,bgColor:i,children:[t.jsxs(Je,{controller:!v,children:[s.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:N.nameLogoWidth.valuePx(x),height:N.nameLogoHeight.valuePx(x)}}):t.jsx(Pt,{name:L,size:c.sp4}),t.jsx(_e,{"data-testid":m("vendor-row-name",s.id),style:{cursor:B},isClickable:S,onClick:()=>{S===!0&&f(s)},children:L})]}),t.jsx(Je,{controller:v,children:t.jsxs(Gh,{children:[t.jsx(Dh,{children:t.jsx(Rh,{})}),t.jsx(Eh,{className:"hyphen-text",children:W.getLocalizedStrings().common.strings.hyphen}),t.jsx(Hh,{className:"not-specified-text",children:L})]})})]})}),g?t.jsx(Th,{windowSize:x,bgColor:i,children:h!=null?t.jsx(_e,{"data-testid":m("vendor-row-account-name",s.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(_e,{isClickable:!1,"data-testid":m("vendor-row-account-name",s.id),children:W.getLocalizedStrings().common.strings.hyphen})}):null,p?t.jsx(Vh,{windowSize:x,bgColor:i,children:u!=null?t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),isClickable:!1,children:W.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Nh,{children:d.map((O,F)=>t.jsx(Kh,{type:e,balance:O,vendor:s,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(Uh,{isScrolling:r,isLastNode:l})]})}function Uh({isScrolling:e,isLastNode:i}){return i?t.jsx(Bt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Bt,{isScrolling:e,kind:"vendor_row_separator"})}const qh=(e,i,n,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=Pe(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>A.toTimeframeTick(u));return t.jsx(yh,{backgroundColor:r,isSticky:n,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},Zh=(e,i,n,o,r,l,s)=>{const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=h?n.element.numOfBalances+2:n.element.numOfBalances+1,g=vn(d,n.config.displayOrder,u,h);return t.jsx(Wh,{type:i,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:n.element.title,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0})},Qh=(e,i,n,o,r,l,s)=>{if(i.element.kind!="vendor_row"||i.element.data==null)return null;const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=vn(d,i.config.displayOrder,i.element.numOfBalances,h);return t.jsx(Yh,{type:e,backgroundColor:o,isSticky:r,height:n,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{i.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},Jh=(e,i,n,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Yd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},Xh=(e,i,n,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Xd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function ei(e,i,n){return eu(i,n,e)}const eu=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Pi(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Pi(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>tu(r,o.acGroupBalanceSelector,n,i),o};function Pi(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>iu((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[]))||Zn((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]))}}function tu(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Zn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>nu(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>ou(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function Zn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function iu(e){let i=!1;if(e!=null){for(const n of e)if(n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function nu(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function ou(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function zi(e){let i=!1;if(e!=null){for(const n of e)if(n.totalForecast!=null&&n.totalForecast.amount!==0||n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function Qn(e,i,n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ru([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function ru(e,i){return e.length>0?e:Vi(Array(i),null)}const au=a.div`
2273
+ `,Kh=({balance:e,vendor:i,onVendorNameAndBalanceClick:n})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",s=o!==!0&&r===!1&&l===!1&&!A.isOpexByVendorIDNotSpecifiedVendor(i.id);return t.jsx(Ih,{children:t.jsx(Ph,{isClickable:s,onClick:()=>{s===!0&&n(i,e??void 0)},children:Z(e)})})};function Yh({type:e,backgroundColor:i,isSticky:n,height:o,isScrolling:r,isLastNode:l,vendor:s,balances:d,accountBase:h,classBase:u,isAccountColumnShown:g,isClassColumnShown:p,onVendorNameAndBalanceClick:f}){const x=M(),b=Di(),y=b.loggedInUserRole!=null&&!A.hasInvestorBankerLevelAccess(b.loggedInUserRole),$=A.isOpexByVendorIDNotSpecifiedVendor(s.id),S=y===!0&&s!=null&&!$,B=S?"pointer":"default",L=s.name;return t.jsxs(Oh,{"data-testid":m("vendor-row-root-container",s.id),height:o,bgColor:i,windowSize:x,children:[t.jsxs(Mh,{"data-testid":m("vendor-row-container",s.id),style:{cursor:B},isClickable:S,children:[t.jsx(zh,{"data-testid":m("vendor-row-sticky-container",s.id),isSticky:n,windowSize:x,bgColor:i,children:t.jsxs(Fh,{"data-testid":m("vendor-row-name-container",s.id),windowSize:x,bgColor:i,children:[t.jsxs(Je,{controller:!$,children:[s.logo!=null?t.jsx(It,{photoUrl:s.logo.toString(),styles:{width:N.nameLogoWidth.valuePx(x),height:N.nameLogoHeight.valuePx(x)}}):t.jsx(Pt,{name:L,size:c.sp4}),t.jsx(_e,{"data-testid":m("vendor-row-name",s.id),style:{cursor:B},isClickable:S,onClick:()=>{S===!0&&f(s)},children:L})]}),t.jsx(Je,{controller:$,children:t.jsxs(Gh,{children:[t.jsx(Dh,{children:t.jsx(Rh,{})}),t.jsx(Eh,{className:"hyphen-text",children:W.getLocalizedStrings().common.strings.hyphen}),t.jsx(Hh,{className:"not-specified-text",children:L})]})})]})}),g?t.jsx(Th,{windowSize:x,bgColor:i,children:h!=null?t.jsx(_e,{"data-testid":m("vendor-row-account-name",s.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(_e,{isClickable:!1,"data-testid":m("vendor-row-account-name",s.id),children:W.getLocalizedStrings().common.strings.hyphen})}):null,p?t.jsx(Vh,{windowSize:x,bgColor:i,children:u!=null?t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(_e,{"data-testid":m("vendor-row-class-name",s.id),isClickable:!1,children:W.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Nh,{children:d.map((O,F)=>t.jsx(Kh,{type:e,balance:O,vendor:s,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(Uh,{isScrolling:r,isLastNode:l})]})}function Uh({isScrolling:e,isLastNode:i}){return i?t.jsx(Bt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Bt,{isScrolling:e,kind:"vendor_row_separator"})}const qh=(e,i,n,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=Pe(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>A.toTimeframeTick(u));return t.jsx(yh,{backgroundColor:r,isSticky:n,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},Zh=(e,i,n,o,r,l,s)=>{const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=h?n.element.numOfBalances+2:n.element.numOfBalances+1,g=$n(d,n.config.displayOrder,u,h);return t.jsx(Wh,{type:i,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:n.element.title,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0})},Qh=(e,i,n,o,r,l,s)=>{if(i.element.kind!="vendor_row"||i.element.data==null)return null;const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=$n(d,i.config.displayOrder,i.element.numOfBalances,h);return t.jsx(Yh,{type:e,backgroundColor:o,isSticky:r,height:n,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{i.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},Jh=(e,i,n,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Yd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},Xh=(e,i,n,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>A.toTimeframeTick(l));return t.jsx(Xd,{backgroundColor:n,isSticky:o,height:i,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function ei(e,i,n){return eu(i,n,e)}const eu=(e,i,n)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Pi(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Pi(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>tu(r,o.acGroupBalanceSelector,n,i),o};function Pi(e,i,n){switch(n){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>iu((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[]))||Zn((i(o)?.balances??[]).concat(i(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>zi(i(o)?.balances??[]))}}function tu(e,i,n,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Zn(i(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>nu(i(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>ou(i(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(i(r)?.balances??[]).length>0)}}function Zn(e){let i=!1;if(e!=null){for(const n of e)if(n.balance.amount!==0){i=!0;break}}return i}function iu(e){let i=!1;if(e!=null){for(const n of e)if(n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function nu(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0){i=!0;break}}return i}function ou(e){let i=!1;if(e!=null){for(const n of e)if(n.forecast!=null&&n.forecast.amount!==0||n.balance!=null&&n.balance.amount!==0){i=!0;break}}return i}function zi(e){let i=!1;if(e!=null){for(const n of e)if(n.totalForecast!=null&&n.totalForecast.amount!==0||n.totalBalance!=null&&n.totalBalance.amount!==0){i=!0;break}}return i}function Qn(e,i,n=-1,o=!0){const r=n!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ru([],n)),{balances:l,thisPeriodIndex:s};let d=e.balances;return i==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function ru(e,i){return e.length>0?e:Vi(Array(i),null)}const au=a.div`
2274
2274
  display: flex;
2275
2275
  flex: 1 1 auto;
2276
2276
  width: fit-content;
@@ -2339,7 +2339,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2339
2339
  &:hover {
2340
2340
  color: inherit;
2341
2341
  }
2342
- `,pu=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?du:Jn;return t.jsxs(cu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function gu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),v=M(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=l==="hidden",F=O===!0?w[6]:w[4],T=L===!0?uu:Xn,Y=L===!0?Ri:Gi,H=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(au,{height:r,bgColor:i,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(lu,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(hu,{bgColor:i,isSticky:n,windowSize:v,children:[O===!1?t.jsx(Y,{color:H,style:{width:w[3],height:w[3]}}):null,t.jsx(T,{style:{marginLeft:F},children:s})]}):null,xe(e)===!0?t.jsx(su,{children:d.map((U,Q)=>t.jsx(pu,{type:e,accountGroupName:s,balance:U,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(fu,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function fu({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const xu=a.div`
2342
+ `,pu=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?du:Jn;return t.jsxs(cu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function gu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),$=M(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=l==="hidden",F=O===!0?w[6]:w[4],T=L===!0?uu:Xn,Y=L===!0?Ri:Gi,H=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(au,{height:r,bgColor:i,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(lu,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(hu,{bgColor:i,isSticky:n,windowSize:$,children:[O===!1?t.jsx(Y,{color:H,style:{width:w[3],height:w[3]}}):null,t.jsx(T,{style:{marginLeft:F},children:s})]}):null,xe(e)===!0?t.jsx(su,{children:d.map((U,Q)=>t.jsx(pu,{type:e,accountGroupName:s,balance:U,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(fu,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function fu({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const xu=a.div`
2343
2343
  display: flex;
2344
2344
  flex: 1 1 auto;
2345
2345
  width: fit-content;
@@ -2408,7 +2408,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2408
2408
  &:hover {
2409
2409
  color: inherit;
2410
2410
  }
2411
- `,Su=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?bu:eo;return t.jsxs(yu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Cu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=M(),v=ce(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=L===!0?ju:to,[F,T]=I.useState(!1),Y=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(xu,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(ku,{bgColor:i,isSticky:n,windowSize:y,children:[t.jsx(be,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:Y,color:_(v.colors.primary)}),t.jsx(O,{children:s})]}):null,xe(e)===!0?t.jsx(wu,{children:d.map((H,U)=>t.jsx(Su,{type:e,accountGroupName:s,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},U))}):null]}),t.jsx(vu,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function vu({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const $u=a.div`
2411
+ `,Su=({type:e,balance:i,collapsed:n,isActualVsForecastOn:o,compareMode:r})=>{const l=n===!0?bu:eo;return t.jsxs(yu,{children:[ae(e)===!0||o?t.jsx(l,{children:Z(i)}):t.jsx(l,{children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(i)}),t.jsx(l,{children:r==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Cu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=M(),$=ce(),S=!f,B=S?"pointer":"default",L=l==="collapsed",O=L===!0?ju:to,[F,T]=I.useState(!1),Y=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(xu,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(ku,{bgColor:i,isSticky:n,windowSize:y,children:[t.jsx(be,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:Y,color:_($.colors.primary)}),t.jsx(O,{children:s})]}):null,xe(e)===!0?t.jsx(wu,{children:d.map((H,U)=>t.jsx(Su,{type:e,accountGroupName:s,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},U))}):null]}),t.jsx($u,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function $u({isScrolling:e,type:i,isLastNode:n,isOpen:o}){let r="ac_group_row_separator";return n&&!o?r="section_row_separator":o&&(r=ge(i)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(me,{isScrolling:e,kind:r})}const vu=a.div`
2412
2412
  display: flex;
2413
2413
  flex: 1 1 auto;
2414
2414
  width: fit-content;
@@ -2472,7 +2472,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2472
2472
  &:hover {
2473
2473
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2474
2474
  }
2475
- `,Ou=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,onAccountBalanceClick:l})=>{const s=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",d=r!=null&&i!=null&&l!=null&&s!==!0;return t.jsxs(Au,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ye,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&i!=null&&l?.(r,i)},children:Z(i)}):t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(i)}),t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Mu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,onAccountBalanceClick:f}){const x=M(),{common:{strings:{hyphen:b}}}=W.getLocalizedStrings(),y=p?.accountDescription?p.accountDescription:b,v=p?.accountName?p.accountName:y;return t.jsxs($u,{height:r,bgColor:i,"data-testid":m("account-row-root-container",o),children:[t.jsxs(_u,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Bu,{isSticky:n,windowSize:x,bgColor:i,children:t.jsx(Wu,{isClickable:!1,title:v,children:v})}):null,xe(e)===!0?t.jsx(Lu,{children:l.map((S,B)=>t.jsx(Ou,{type:e,isActualVsForecastOn:s,compareMode:d,balance:S,account:p,onAccountBalanceClick:f==null?void 0:(L,O)=>{f(o,L,O)}},B))}):null]}),t.jsx(Nu,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function Nu({isScrolling:e,isLastNode:i,type:n}){const o=i?"ac_group_row_separator":ge(n)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(me,{isScrolling:e,kind:o})}const Iu=a.div`
2475
+ `,Ou=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,onAccountBalanceClick:l})=>{const s=i?.type==="this_period_vs_last_period"||i?.type==="this_period_vs_last_period_percent",d=r!=null&&i!=null&&l!=null&&s!==!0;return t.jsxs(Au,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ye,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&i!=null&&l?.(r,i)},children:Z(i)}):t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:J(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(i)}),t.jsx(Ye,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?de(i):he(i)})]}):null]})};function Mu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,onAccountBalanceClick:f}){const x=M(),{common:{strings:{hyphen:b}}}=W.getLocalizedStrings(),y=p?.accountDescription?p.accountDescription:b,$=p?.accountName?p.accountName:y;return t.jsxs(vu,{height:r,bgColor:i,"data-testid":m("account-row-root-container",o),children:[t.jsxs(_u,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Bu,{isSticky:n,windowSize:x,bgColor:i,children:t.jsx(Wu,{isClickable:!1,title:$,children:$})}):null,xe(e)===!0?t.jsx(Lu,{children:l.map((S,B)=>t.jsx(Ou,{type:e,isActualVsForecastOn:s,compareMode:d,balance:S,account:p,onAccountBalanceClick:f==null?void 0:(L,O)=>{f(o,L,O)}},B))}):null]}),t.jsx(Nu,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function Nu({isScrolling:e,isLastNode:i,type:n}){const o=i?"ac_group_row_separator":ge(n)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(me,{isScrolling:e,kind:o})}const Iu=a.div`
2476
2476
  display: flex;
2477
2477
  flex: 1 1 auto;
2478
2478
  width: fit-content;
@@ -2541,7 +2541,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2541
2541
  border: 1px solid ${e=>e.theme.colors.primary};
2542
2542
  border-radius: ${c.sp1};
2543
2543
  margin: 0 ${c.sp5} 0 ${c.sp3};
2544
- `,Gu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Eu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Fu,{children:[ae(e)===!0||o?t.jsx(Ue,{style:{color:n},children:Z(i)}):t.jsx(Ue,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{style:{color:n},children:J(i)}),t.jsx(Ue,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function Hu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:v,depth:S}){const B=M(),L=ce(),O=!x,F=O?"pointer":"default",T=L.colors.primary,Y=l.length>0?l.substr(0,1).toUpperCase():"",[H,U]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Iu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(Pu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>v?.(o),onMouseOver:()=>U(!0),onMouseLeave:()=>U(!1),children:[ge(e)===!0?t.jsxs(Tu,{isSticky:n,windowSize:B,bgColor:i,children:[t.jsx(Rr,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(Gu,{metadata:Q[S],depth:S}),t.jsx(be,{color:_(T),showCollapsedIcon:!f,showIcon:H&&O,firstLetter:Y,showTreeLine:g}),t.jsx(Vu,{children:t.jsx(Du,{style:{color:T},children:l})}),H===!0&&y===!0&&s!==void 0&&t.jsx(Ru,{children:s})]}):null,xe(e)===!0?t.jsx(zu,{children:d.map((ue,X)=>t.jsx(Eu,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},X))}):null]}),t.jsx(Ku,{isScrolling:p,isLeaf:x,isOpen:f})]})}function Ku({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
2544
+ `,Gu=({metadata:e,depth:i})=>i===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(ko,{}):t.jsx(jo,{}),Eu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Fu,{children:[ae(e)===!0||o?t.jsx(Ue,{style:{color:n},children:Z(i)}):t.jsx(Ue,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{style:{color:n},children:J(i)}),t.jsx(Ue,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function Hu({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:$,depth:S}){const B=M(),L=ce(),O=!x,F=O?"pointer":"default",T=L.colors.primary,Y=l.length>0?l.substr(0,1).toUpperCase():"",[H,U]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Iu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:i,children:[t.jsxs(Pu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>$?.(o),onMouseOver:()=>U(!0),onMouseLeave:()=>U(!1),children:[ge(e)===!0?t.jsxs(Tu,{isSticky:n,windowSize:B,bgColor:i,children:[t.jsx(Rr,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(Gu,{metadata:Q[S],depth:S}),t.jsx(be,{color:_(T),showCollapsedIcon:!f,showIcon:H&&O,firstLetter:Y,showTreeLine:g}),t.jsx(Vu,{children:t.jsx(Du,{style:{color:T},children:l})}),H===!0&&y===!0&&s!==void 0&&t.jsx(Ru,{children:s})]}):null,xe(e)===!0?t.jsx(zu,{children:d.map((ue,X)=>t.jsx(Eu,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},X))}):null]}),t.jsx(Ku,{isScrolling:p,isLeaf:x,isOpen:f})]})}function Ku({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
2545
2545
  display: flex;
2546
2546
  flex: 1 1 auto;
2547
2547
  width: fit-content;
@@ -2653,7 +2653,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2653
2653
  text-overflow: ellipsis;
2654
2654
  text-align: left;
2655
2655
  margin-left: ${c.sp2};
2656
- `,Xu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Zu,{children:[ae(e)===!0||o?t.jsx(qe,{style:{color:n},children:Z(i)}):t.jsx(qe,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:n},children:J(i)}),t.jsx(qe,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function ti({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:x}){const b=M(),y=!f,v=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[B,L]=I.useState(!1);return t.jsxs(Yu,{"data-testid":m("section-row",o),height:r,bgColor:i,children:[t.jsxs(Uu,{"data-testid":m("section-row-container",o),style:{cursor:v},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(Qu,{isSticky:n,windowSize:b,bgColor:i,children:[t.jsx(be,{color:_(u),showCollapsedIcon:!p,showIcon:B&&y,firstLetter:S}),t.jsx(Ju,{style:{color:u},children:l})," "]}):null,xe(e)===!0?t.jsx(qu,{children:s.map((O,F)=>t.jsx(Xu,{type:e,sectionName:l,balance:O,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(ep,{isScrolling:g,isLeaf:f,isOpen:p})]})}function ep({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}const tp=a.div`
2656
+ `,Xu=({type:e,balance:i,color:n,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Zu,{children:[ae(e)===!0||o?t.jsx(qe,{style:{color:n},children:Z(i)}):t.jsx(qe,{style:{color:n},children:J(i)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:n},children:J(i)}),t.jsx(qe,{style:{color:n},children:r==="compare_mode_percent"?de(i):he(i)})]}):null]});function ti({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:x}){const b=M(),y=!f,$=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[B,L]=I.useState(!1);return t.jsxs(Yu,{"data-testid":m("section-row",o),height:r,bgColor:i,children:[t.jsxs(Uu,{"data-testid":m("section-row-container",o),style:{cursor:$},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(Qu,{isSticky:n,windowSize:b,bgColor:i,children:[t.jsx(be,{color:_(u),showCollapsedIcon:!p,showIcon:B&&y,firstLetter:S}),t.jsx(Ju,{style:{color:u},children:l})," "]}):null,xe(e)===!0?t.jsx(qu,{children:s.map((O,F)=>t.jsx(Xu,{type:e,sectionName:l,balance:O,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(ep,{isScrolling:g,isLeaf:f,isOpen:p})]})}function ep({isScrolling:e,isLeaf:i,isOpen:n}){return i||!n?t.jsx(me,{isScrolling:e,kind:"section_row_separator"}):null}const tp=a.div`
2657
2657
  display: flex;
2658
2658
  flex: 1 1 auto;
2659
2659
  width: fit-content;
@@ -2716,7 +2716,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2716
2716
  clear: both;
2717
2717
  display: inline-block;
2718
2718
  text-align: left;
2719
- `,lp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=i!=null?A.isCalculatedBalanceType(i?.type):!1,h=r!=null&&i!=null&&s!=null&&d!==!0,u=l===!0?Yi(i):Z(i),g=l===!0?bt(i):J(i),p=l===!0?Ui(i):de(i),f=l===!0?qi(i):he(i);return t.jsxs(op,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&i!=null&&s?.(r,i)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?p:f})]}):null]})};function sp({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:v,onClick:S}){const B=M(),L=y!=null?y.id.length-1:0,O=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:Y}}}=W.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:Y,U=y?.account.accountName?y.account.accountName:H;return t.jsxs(tp,{"data-testid":m("sub-account-row",o),height:r,bgColor:i,children:[t.jsxs(ip,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(rp,{isClickable:F,isSticky:n,windowSize:B,bgColor:i,containerHeight:r,children:t.jsx(ap,{title:U,children:t.jsx(en,{displayName:U,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:O,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(np,{children:s.map((Q,ue)=>t.jsx(lp,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:v==null?void 0:(X,oe)=>{v(o,X,oe)}},ue))}):null]}),t.jsx(cp,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:n,classDepth:l,noMarginForAccount:p})]})}function cp({isScrolling:e,depth:i,isOpen:n,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!n||o===!0?t.jsx(me,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:i,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const dp=[10,14,20,20,20],hp=a.div`
2719
+ `,lp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:s})=>{const d=i!=null?A.isCalculatedBalanceType(i?.type):!1,h=r!=null&&i!=null&&s!=null&&d!==!0,u=l===!0?Yi(i):Z(i),g=l===!0?bt(i):J(i),p=l===!0?Ui(i):de(i),f=l===!0?qi(i):he(i);return t.jsxs(op,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&i!=null&&s?.(r,i)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?p:f})]}):null]})};function sp({type:e,backgroundColor:i,isSticky:n,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:$,onClick:S}){const B=M(),L=y!=null?y.id.length-1:0,O=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:Y}}}=W.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:Y,U=y?.account.accountName?y.account.accountName:H;return t.jsxs(tp,{"data-testid":m("sub-account-row",o),height:r,bgColor:i,children:[t.jsxs(ip,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(rp,{isClickable:F,isSticky:n,windowSize:B,bgColor:i,containerHeight:r,children:t.jsx(ap,{title:U,children:t.jsx(en,{displayName:U,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:O,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(np,{children:s.map((Q,ue)=>t.jsx(lp,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:$==null?void 0:(X,oe)=>{$(o,X,oe)}},ue))}):null]}),t.jsx(cp,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:n,classDepth:l,noMarginForAccount:p})]})}function cp({isScrolling:e,depth:i,isOpen:n,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!n||o===!0?t.jsx(me,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:i,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const dp=[10,14,20,20,20],hp=a.div`
2720
2720
  display: flex;
2721
2721
  flex: 1 1 auto;
2722
2722
  width: fit-content;
@@ -2778,7 +2778,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2778
2778
  margin-left: ${e=>dp[e.depth]}px;
2779
2779
  color: ${e=>e.theme.colors.primary};
2780
2780
  width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
2781
- `,wp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(fp,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Yi(i)}):t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?Ui(i):qi(i)})]}):null]});function yp({type:e,backgroundColor:i,isSticky:n,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=M(),b=W.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,v=f;return t.jsxs(hp,{height:o,bgColor:i,children:[t.jsxs(up,{children:[t.jsxs(xp,{isSticky:n,windowSize:x,bgColor:i,containerHeight:o,children:[r!=null?t.jsx(Ji,{ancestorMetadata:v.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(pp,{windowSize:x}):null,t.jsx(Xi,{ancestorMetadata:v.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(mp,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(gp,{children:s.map((S,B)=>t.jsx(wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:S},B))}):null]}),t.jsx(bp,{isScrolling:p,nestingLevel:y,isSticky:n,classDepth:r,noMarginForAccount:h})]})}function bp({isScrolling:e,nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}){return t.jsx(me,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}})}const kp=a.div`
2781
+ `,wp=({type:e,balance:i,isActualVsForecastOn:n,compareMode:o})=>t.jsxs(fp,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||n?t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Yi(i)}):t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:bt(i)}),t.jsx(Qe,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?Ui(i):qi(i)})]}):null]});function yp({type:e,backgroundColor:i,isSticky:n,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=M(),b=W.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,$=f;return t.jsxs(hp,{height:o,bgColor:i,children:[t.jsxs(up,{children:[t.jsxs(xp,{isSticky:n,windowSize:x,bgColor:i,containerHeight:o,children:[r!=null?t.jsx(Ji,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(pp,{windowSize:x}):null,t.jsx(Xi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(mp,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(gp,{children:s.map((S,B)=>t.jsx(wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:S},B))}):null]}),t.jsx(bp,{isScrolling:p,nestingLevel:y,isSticky:n,classDepth:r,noMarginForAccount:h})]})}function bp({isScrolling:e,nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}){return t.jsx(me,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:i,isSticky:n,classDepth:o,noMarginForAccount:r}})}const kp=a.div`
2782
2782
  user-select: none;
2783
2783
  display: flex;
2784
2784
  flex: 1 1 auto;
@@ -2847,14 +2847,14 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2847
2847
  min-width: ${k.balanceWidth};
2848
2848
  margin-left: ${k.balanceLeftMargin};
2849
2849
  margin-top: ${c.sp3};
2850
- `,vp=a.div`
2850
+ `,$p=a.div`
2851
2851
  display: flex;
2852
2852
  max-height: 54px;
2853
2853
  min-height: 54px;
2854
2854
  justify-content: center;
2855
2855
  align-items: center;
2856
2856
  color: ${e=>e.theme.colors.champion};
2857
- `,$p=a.div``,_p=a(C)`
2857
+ `,vp=a.div``,_p=a(C)`
2858
2858
  display: flex;
2859
2859
  justify-content: center;
2860
2860
  align-items: center;
@@ -2875,7 +2875,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2875
2875
  `,Ap=a.div`
2876
2876
  max-height: 54px;
2877
2877
  min-height: 54px;
2878
- `,oo=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Ap,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(io,{isActualVsForecastOn:!1,children:t.jsx(no,{children:Ie(e,i,n)})})})},Bp=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Lp,{isActualVsForecastOn:o,children:[t.jsx(io,{isActualVsForecastOn:o,children:t.jsx(no,{children:Ie(e,i,n)})}),t.jsxs(Cp,{isActualVsForecastOn:o,children:[t.jsx(yt,{children:h.actual}),t.jsx(yt,{children:h.forecast}),t.jsx(yt,{children:t.jsx(Qt,{title:u,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(oo,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s})},Wp=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx(vp,{children:i.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(_p,{children:t.jsx(Qt,{title:h,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx($p,{children:t.jsx(oo,{firstMonthOfFY:e,timeframeTick:u,timeframe:n,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Op({type:e,backgroundColor:i,isSticky:n,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=M();return t.jsxs(kp,{height:o,bgColor:i,children:[ge(e)===!0?t.jsx(Sp,{isSticky:n,windowSize:x,bgColor:i,children:" . "}):null,t.jsx(jp,{children:l===!0?t.jsx(Wp,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Bp,{firstMonthOfFY:s,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const ht=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0||A.isPAndLClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Mu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,v)=>{g?.(b,y,v)}})},ze=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=Qn(x.acBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,v=n.config.reportId==="operating_expenses";return t.jsx(sp,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:n.element.metadata,onClick:p,noMarginForAccount:v,onAccountBalanceClick:p==null?void 0:(S,B,L)=>{p?.(S,B,L)}})},ut=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(gu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ii=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Cu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ni=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},pt=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},oi=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,i,n,o,r,l,s,d,h)=>{if(i.element.kind!="ac_subentity_total")return null;const u=i.element.data,g=ei("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Qn(g.acBalanceSelector(u),i.config.displayOrder,i.element.numOfBalances),x=i.config.reportId==="operating_expenses"||i.config.reportId==="operating_expenses_by_classes";return t.jsx(yp,{type:e,backgroundColor:o,isSticky:r,height:n,accountName:u.account.accountName,account:u,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:s,isLastNode:d,metadata:i.element.metadata,classDepth:p})},Te=(e,i,n,o,r,l,s,d)=>{if(n.element.kind!=="timeframe_headers"&&n.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(n.element.data,n.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(Op,{treeNodeId:e,backgroundColor:r,isSticky:l,type:i,height:o,isActualVsForecastOn:n.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:n.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:n.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:n.config.dataAvailable,bookCloseDate:n.config.bookCloseDate,onCompareModeChanged:d})},ro=(e,i,n,o,r,l,s,d,h,u,g,p,f)=>{if(n.element.kind!="class"||n.element.data==null)return null;const x=n.element.data,b=te(x.childrenBalancesTotal,n.config.displayOrder,n.element.numOfBalances),y=g>1;return t.jsx(Hu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:n.element.title,classCode:n.element.data.class.accountingClassNumber,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:n.config.showClassAccountNumber,onClick:v=>{f?.(v)},metadata:n.element.metadata})},Mp=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Np=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),Fi=e=>{const{height:i,data:{reportElementData:n,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=(v,S,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.(v,!u)),e.onNodeClick?.(v,L,S,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(ao,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:n,height:i,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},ao=e=>e.treeKind==="name_only"?t.jsx(Vp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(Rp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(Dp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(Ip,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(Pp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(zp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(Fp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(Tp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):null,Ip=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return ni(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"headers_loading_in_progress":return Np(n,o,r);case"loading_in_progress":return Mp(n,o,r);default:return null}},Pp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},zp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"total":return In(e,i,n,o,r,l,p,d);case"headers_loading_in_progress":return Bs(n,o,r);case"loading_in_progress":return As(n,o,r);default:return null}},Fp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return $s(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return _s(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Ls(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"total":return In(e,i,n,o,r,l,g,d);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},Tp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return xl(e,n,o,r,l,s,h);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);default:return null}},Vp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(n.element.kind){case"checkbox_and_name_only":return Vd(e,i,n,o,r,l,s,u,d,h,g);default:return null}},Dp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(n.element.kind){case"loading_in_progress":case"spacer_row":return Jh(n,o,r,l);case"timeframe_headers":return qh(n,o,l,h,r,u);case"total":return Zh(e,i,n,o,l,s,r);case"vendor_row":return Qh(i,n,o,r,l,s,d);case"title_string_only":return Xh(n,o,r,l);default:return null}},Rp=({id:e,treeKind:i,reportElementData:n,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=n;switch(n.element.kind){case"spacer_row":return null;case"timeframe_headers":return Aa(n,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Oa(i,n,o,h,l);case"aging_report_row":return Ba(e,n,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Wa(n,o,l,s,h);default:return null}},Gp=({id:e,reportElementData:i,height:n,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(i.element.kind){case"flux_vendor_account_class_row":return $d(e,i,o,r,l,s,d,f,g);case"flux_vendor_row":return _d(e,i,o,r,l,u,s,d,h,f,p);case"section":return Ld(e,i,n,o,r,l,u,s,d,p);case"timeframe_headers":return Ad(i,n,r);case"total":return Bd(i,n);case"loading_in_progress":return Wd(i);case"headers_loading_in_progress":return Od(i);default:return null}},Ep=({reportElementData:e,height:i,isSticky:n,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Br(e,n);case"loading_in_progress":return Ar();case"total":return Wr(e,i,n);case"section":return Lr();case"title_string_only":return Or(e,i);case"ac_group_report":return Mr(e,i,o);default:return null}};function Ti(e,i,n,o){return{data:{defaultHeight:ri(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??Hp(e.reportElementData.config.reportId,e.reportElementData.element.kind,n,e.reportElementData.config.reportFormat),nestingLevel:n,treeKind:i,reportElementData:e.reportElementData},treeKind:i,nestingLevel:n,node:e}}function ri(e,i,n){return A.isPAndLReport(e)===!0?Nr(i):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?Dl(i):A.isAgingReport(e)?Kr(i):A.isAccountReconReport(e)?it(i):A.isOpExByVendorReport(e)?Dd(i):A.isFluxAnalysisOpExReport(e)?zn(i,n):Za(i)}function Hp(e,i,n,o){return A.isPAndLReport(e)?Ir(i,o,n):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?Rl(i,o):A.isAgingReport(e)?Yr():A.isOpExByVendorReport(e)?Rd():A.isFluxAnalysisOpExReport(e)?Rs(i):A.isAccountReconReport(e)?Mo():Qa(i,o)}const Kp=a.div`
2878
+ `,oo=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:o,bookCloseDate:r})=>{const l=W.getLocalizedStrings().reports,s=r!=null&&o!=null&&(i.balanceType==="default"||i.balanceType==="default_with_percent")?A.getTimeframeTickTag(n,e,i,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Rn(s,n);return t.jsx(Ap,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(Dn,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,tagName:d,infoContent:h,tagType:s}):t.jsx(io,{isActualVsForecastOn:!1,children:t.jsx(no,{children:Ie(e,i,n)})})})},Bp=({firstMonthOfFY:e,timeframeTick:i,timeframe:n,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=W.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i.currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Lp,{isActualVsForecastOn:o,children:[t.jsx(io,{isActualVsForecastOn:o,children:t.jsx(no,{children:Ie(e,i,n)})}),t.jsxs(Cp,{isActualVsForecastOn:o,children:[t.jsx(yt,{children:h.actual}),t.jsx(yt,{children:h.forecast}),t.jsx(yt,{children:t.jsx(Qt,{title:u,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(oo,{firstMonthOfFY:e,timeframeTick:i,timeframe:n,dataAvailable:l,bookCloseDate:s})},Wp=({firstMonthOfFY:e,timeframeTicks:i,timeframe:n,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${W.getLocalizedStrings().compareMode.changePrefix} ${i[0].currencySymbol}`:W.getLocalizedStrings().compareMode.changePercent;return t.jsx($p,{children:i.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(_p,{children:t.jsx(Qt,{title:h,titleTextStyle:Ft.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(vp,{children:t.jsx(oo,{firstMonthOfFY:e,timeframeTick:u,timeframe:n,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Op({type:e,backgroundColor:i,isSticky:n,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=M();return t.jsxs(kp,{height:o,bgColor:i,children:[ge(e)===!0?t.jsx(Sp,{isSticky:n,windowSize:x,bgColor:i,children:" . "}):null,t.jsx(jp,{children:l===!0?t.jsx(Wp,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Bp,{firstMonthOfFY:s,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const ht=(e,i,n,o,r,l,s,d,h,u,g)=>{if(n.element.kind!="ac_report"||n.element.data==null)return null;const p=n.element.data,f=A.isDashboardClassesViewReport(n.config.reportId)===!0||A.isPAndLClassesViewReport(n.config.reportId)===!0?_n("no_filter",n.config.filterAccountsWithNilBalances):nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Mu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,$)=>{g?.(b,y,$)}})},ze=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=Qn(x.acBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=n.config.reportId==="operating_expenses";return t.jsx(sp,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:n.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(S,B,L)=>{p?.(S,B,L)}})},ut=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_report"||n.element.data==null)return null;const f=n.element.data,x=nt(n.element.sectionType,"no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(gu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ii=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="ac_group_subaccount"||n.element.data==null)return null;const f=n.element.data,x=ei("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),n.config.displayOrder,n.element.numOfBalances);return t.jsx(Cu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},ni=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},pt=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="section_with_ac_only"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},oi=(e,i,n,o,r,l,s,d,h,u,g,p)=>{if(n.element.kind!="calculated_section"||n.element.data==null)return null;const f=Ot(n.element.title),x=n.element.data,b=te(x,n.config.displayOrder,n.element.numOfBalances);return t.jsx(ti,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:n.element.title,sectionColor:f,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,i,n,o,r,l,s,d,h)=>{if(i.element.kind!="ac_subentity_total")return null;const u=i.element.data,g=ei("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Qn(g.acBalanceSelector(u),i.config.displayOrder,i.element.numOfBalances),x=i.config.reportId==="operating_expenses"||i.config.reportId==="operating_expenses_by_classes";return t.jsx(yp,{type:e,backgroundColor:o,isSticky:r,height:n,accountName:u.account.accountName,account:u,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:s,isLastNode:d,metadata:i.element.metadata,classDepth:p})},Te=(e,i,n,o,r,l,s,d)=>{if(n.element.kind!=="timeframe_headers"&&n.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(n.element.data,n.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(Op,{treeNodeId:e,backgroundColor:r,isSticky:l,type:i,height:o,isActualVsForecastOn:n.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:n.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:n.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:n.config.dataAvailable,bookCloseDate:n.config.bookCloseDate,onCompareModeChanged:d})},ro=(e,i,n,o,r,l,s,d,h,u,g,p,f)=>{if(n.element.kind!="class"||n.element.data==null)return null;const x=n.element.data,b=te(x.childrenBalancesTotal,n.config.displayOrder,n.element.numOfBalances),y=g>1;return t.jsx(Hu,{type:i,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:n.element.title,classCode:n.element.data.class.accountingClassNumber,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:n.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:n.element.metadata})},Mp=(e,i,n)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ln,{height:i,backgroundColor:n,title:e.element.title,numOfBalances:e.element.numOfBalances}),Np=(e,i,n)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Bn,{height:i,backgroundColor:n,numOfBalances:e.element.numOfBalances}),Fi=e=>{const{height:i,data:{reportElementData:n,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=($,S,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,L,S,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(ao,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:n,height:i,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},ao=e=>e.treeKind==="name_only"?t.jsx(Vp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(Rp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(Dp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(Ip,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(Pp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(zp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(Fp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(Tp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(Gp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Ep,{...e}):null,Ip=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return ni(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"headers_loading_in_progress":return Np(n,o,r);case"loading_in_progress":return Mp(n,o,r);default:return null}},Pp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},zp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,p,f);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,p,f);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,p,f);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,p,x);case"class":return ro(e,i,n,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,p,f);case"total":return In(e,i,n,o,r,l,p,d);case"headers_loading_in_progress":return Bs(n,o,r);case"loading_in_progress":return As(n,o,r);default:return null}},Fp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return vs(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return _s(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return Mn(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return Ls(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return Nn(e,i,n,o,r,l,s,u,d,h,g,p);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"total":return In(e,i,n,o,r,l,g,d);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);default:return null}},Tp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(n.element.kind){case"ac_report":return ht(e,i,n,o,r,l,s,d,h,g,p);case"ac_group_report":return ut(e,i,n,o,r,l,s,u,d,h,g,p);case"section":return ni(e,i,n,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return pt(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section":return oi(e,i,n,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return xl(e,n,o,r,l,s,h);case"title_string_only":return Ht(e,i,n,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Fe(i,n,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Te(e,i,n,o,r,l,g,f);case"ac_subaccount":return ze(e,i,n,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return ii(e,i,n,o,r,l,s,u,d,h,g,p);default:return null}},Vp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(n.element.kind){case"checkbox_and_name_only":return Vd(e,i,n,o,r,l,s,u,d,h,g);default:return null}},Dp=({id:e,treeKind:i,reportElementData:n,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(n.element.kind){case"loading_in_progress":case"spacer_row":return Jh(n,o,r,l);case"timeframe_headers":return qh(n,o,l,h,r,u);case"total":return Zh(e,i,n,o,l,s,r);case"vendor_row":return Qh(i,n,o,r,l,s,d);case"title_string_only":return Xh(n,o,r,l);default:return null}},Rp=({id:e,treeKind:i,reportElementData:n,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=n;switch(n.element.kind){case"spacer_row":return null;case"timeframe_headers":return Aa(n,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return Oa(i,n,o,h,l);case"aging_report_row":return Ba(e,n,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Wa(n,o,l,s,h);default:return null}},Gp=({id:e,reportElementData:i,height:n,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(i.element.kind){case"flux_vendor_account_class_row":return vd(e,i,o,r,l,s,d,f,g);case"flux_vendor_row":return _d(e,i,o,r,l,u,s,d,h,f,p);case"section":return Ld(e,i,n,o,r,l,u,s,d,p);case"timeframe_headers":return Ad(i,n,r);case"total":return Bd(i,n);case"loading_in_progress":return Wd(i);case"headers_loading_in_progress":return Od(i);default:return null}},Ep=({reportElementData:e,height:i,isSticky:n,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Br(e,n);case"loading_in_progress":return Ar();case"total":return Wr(e,i,n);case"section":return Lr();case"title_string_only":return Or(e,i);case"ac_group_report":return Mr(e,i,o);default:return null}};function Ti(e,i,n,o){return{data:{defaultHeight:ri(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??Hp(e.reportElementData.config.reportId,e.reportElementData.element.kind,n,e.reportElementData.config.reportFormat),nestingLevel:n,treeKind:i,reportElementData:e.reportElementData},treeKind:i,nestingLevel:n,node:e}}function ri(e,i,n){return A.isPAndLReport(e)===!0?Nr(i):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?Dl(i):A.isAgingReport(e)?Kr(i):A.isAccountReconReport(e)?it(i):A.isOpExByVendorReport(e)?Dd(i):A.isFluxAnalysisOpExReport(e)?zn(i,n):Za(i)}function Hp(e,i,n,o){return A.isPAndLReport(e)?Ir(i,o,n):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?Rl(i,o):A.isAgingReport(e)?Yr():A.isOpExByVendorReport(e)?Rd():A.isFluxAnalysisOpExReport(e)?Rs(i):A.isAccountReconReport(e)?Mo():Qa(i,o)}const Kp=a.div`
2879
2879
  top: 0;
2880
2880
  left: 0;
2881
2881
  position: sticky !important;
@@ -2890,7 +2890,7 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2890
2890
  align-items: center;
2891
2891
  background-color: ${e=>e.bgColor?.hex()};
2892
2892
  box-sizing: border-box;
2893
- `;function Yp({height:e,backgroundColor:i,headers:n,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return n.length===0?null:(n.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Kp,{heightValue:e,bgColor:i,"data-testid":m("sticky-header-report-tree"),children:n.map((d,h)=>t.jsx(ao,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:ri(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:i,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:n.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Up=(e,i,n)=>function*(){for(let o=0;o<i.length;++o)yield Ti(i[o],e,0,n[i[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield Ti(o.node.children[r],e,o.nestingLevel+1,n[o.node.children[r].id]??void 0)}},lo=I.createContext(void 0);function qp({height:e,kind:i,rootNodes:n,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:v,nodeOpenStatus:S,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:O,hoveredParentIdProps:F}){const T=I.useRef(null),Y=I.useRef(null),H=hi(f?.prevFetchState),U=hi(f?.prevRefreshFetchState),[Q,ue]=I.useState(0),X=g??Y,oe=u??T,Ce=M(),[le,pe]=I.useState(void 0),[Ve,ai]=I.useState(!1),[De,li]=I.useState(S),si=(z,ie)=>{li(Object.assign({},De,{[z]:ie})),B?.(z,ie)},ci=z=>{if(n.contentNodes.length>0)if(Object.keys(z).length>0){const ie={};Object.keys(z).forEach(we=>{ie[we]={open:z[we]}}),oe?.current?.recomputeTree(ie)}else{const ie=n.contentNodes[0].id;oe?.current?.recomputeTree({[ie]:{open:!0}})}};I.useLayoutEffect(()=>{if((!ui(y,le)||le==null)&&X.current!=null){const z=y?.scrollLeft==null?Ce==="small"?0:X.current.scrollWidth:y?.scrollLeft;if(y!=null){const ie={scrollTop:y.scrollTop,scrollLeft:z};pe(ie),z!==y?.scrollLeft&&v?.(ie)}X.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{ui(S,De)||(li(S),ci(S))},[S]),I.useEffect(()=>{const z=X.current,ie=fo(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const we={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(we),v?.(we)}},50);return z?.addEventListener("scroll",ie),()=>{z?.removeEventListener("scroll",ie)}},[X,le,v]),I.useEffect(()=>{if(n.contentNodes.length>0){ci(De);const z=n.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Ve&&ai(z)}},[Ve,ai,n,oe,X]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&U==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(Q+1))},[Q,f?.fetchState,f?.isSortApplied,H,U,f]);const gt=I.useRef(),[so,co]=I.useState(void 0),ho=()=>{const z=gt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=so&&(co(z.clientHeight),L?.(z.clientHeight))},di=I.useCallback(Up(i,n.contentNodes,De),[i,n]),uo={rootNodes:n,treeNodePadding:s,backgroundColor:l,kind:i,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(lo.Provider,{value:uo,"data-testid":m("report-tree"),children:p==null?t.jsx(pi,{className:d,style:h,ref:oe,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:ho,height:e,width:"100%",children:z=>t.jsx(Fi,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O})}):t.jsx(xo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:ie})=>t.jsx(pi,{className:d,style:h,ref:ie,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:z,height:e,width:"100%",children:we=>t.jsx(Fi,{...we,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O,hoveredParentIdProps:F})},Q)})})}const Wt=I.forwardRef((e,i)=>{const{children:n,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(lo),f=l.headerNodes.reduce((v,S)=>v+ri(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=s?.left,b=s?.right,y=c.sp8;return t.jsxs("div",{ref:i,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(Yp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),n]})});Wt.displayName="stickyInnerElementType";const Zp=a.div`
2893
+ `;function Yp({height:e,backgroundColor:i,headers:n,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return n.length===0?null:(n.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Kp,{heightValue:e,bgColor:i,"data-testid":m("sticky-header-report-tree"),children:n.map((d,h)=>t.jsx(ao,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:ri(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:i,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:n.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:s},d.id))}))}const Up=(e,i,n)=>function*(){for(let o=0;o<i.length;++o)yield Ti(i[o],e,0,n[i[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield Ti(o.node.children[r],e,o.nestingLevel+1,n[o.node.children[r].id]??void 0)}},lo=I.createContext(void 0);function qp({height:e,kind:i,rootNodes:n,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:$,nodeOpenStatus:S,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:O,hoveredParentIdProps:F}){const T=I.useRef(null),Y=I.useRef(null),H=hi(f?.prevFetchState),U=hi(f?.prevRefreshFetchState),[Q,ue]=I.useState(0),X=g??Y,oe=u??T,Ce=M(),[le,pe]=I.useState(void 0),[Ve,ai]=I.useState(!1),[De,li]=I.useState(S),si=(z,ie)=>{li(Object.assign({},De,{[z]:ie})),B?.(z,ie)},ci=z=>{if(n.contentNodes.length>0)if(Object.keys(z).length>0){const ie={};Object.keys(z).forEach(we=>{ie[we]={open:z[we]}}),oe?.current?.recomputeTree(ie)}else{const ie=n.contentNodes[0].id;oe?.current?.recomputeTree({[ie]:{open:!0}})}};I.useLayoutEffect(()=>{if((!ui(y,le)||le==null)&&X.current!=null){const z=y?.scrollLeft==null?Ce==="small"?0:X.current.scrollWidth:y?.scrollLeft;if(y!=null){const ie={scrollTop:y.scrollTop,scrollLeft:z};pe(ie),z!==y?.scrollLeft&&$?.(ie)}X.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{ui(S,De)||(li(S),ci(S))},[S]),I.useEffect(()=>{const z=X.current,ie=fo(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const we={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(we),$?.(we)}},50);return z?.addEventListener("scroll",ie),()=>{z?.removeEventListener("scroll",ie)}},[X,le,$]),I.useEffect(()=>{if(n.contentNodes.length>0){ci(De);const z=n.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Ve&&ai(z)}},[Ve,ai,n,oe,X]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&U==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(Q+1))},[Q,f?.fetchState,f?.isSortApplied,H,U,f]);const gt=I.useRef(),[so,co]=I.useState(void 0),ho=()=>{const z=gt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=so&&(co(z.clientHeight),L?.(z.clientHeight))},di=I.useCallback(Up(i,n.contentNodes,De),[i,n]),uo={rootNodes:n,treeNodePadding:s,backgroundColor:l,kind:i,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(lo.Provider,{value:uo,"data-testid":m("report-tree"),children:p==null?t.jsx(pi,{className:d,style:h,ref:oe,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:ho,height:e,width:"100%",children:z=>t.jsx(Fi,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O})}):t.jsx(xo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:ie})=>t.jsx(pi,{className:d,style:h,ref:ie,innerRef:gt,outerRef:X,innerElementType:Wt,treeWalker:di,onItemsRendered:z,height:e,width:"100%",children:we=>t.jsx(Fi,{...we,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:si,compareMode:o,onCompareModeChanged:b,onToggleCheck:O,hoveredParentIdProps:F})},Q)})})}const Wt=I.forwardRef((e,i)=>{const{children:n,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(lo),f=l.headerNodes.reduce(($,S)=>$+ri(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=s?.left,b=s?.right,y=c.sp8;return t.jsxs("div",{ref:i,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(Yp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),n]})});Wt.displayName="stickyInnerElementType";const Zp=a.div`
2894
2894
  display: flex;
2895
2895
  flex: 1 0 auto;
2896
2896
  width: ${e=>e.width}px;
@@ -2929,4 +2929,4 @@ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,
2929
2929
  }
2930
2930
  }
2931
2931
  }
2932
- `;function tg({rootNodes:e,type:i,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:v}){return t.jsx(po,{children:({height:S,width:B})=>t.jsx(Zp,{"data-testid":m("report-tree-container"),height:S,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(qp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:i,rootNodes:e,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(L,O,F,T)=>{F!=null&&T!=null&&s(F,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:v})})})}export{te as D,Z as J,tg as R,Ie as V,eg as W,Oe as a,nt as l,Ws as n,qt as r,ei as x};
2932
+ `;function tg({rootNodes:e,type:i,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:$}){return t.jsx(po,{children:({height:S,width:B})=>t.jsx(Zp,{"data-testid":m("report-tree-container"),height:S,width:B,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(qp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:i,rootNodes:e,compareMode:n,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(L,O,F,T)=>{F!=null&&T!=null&&s(F,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:$})})})}export{te as D,Z as J,tg as R,Ie as V,eg as W,Oe as a,nt as l,Ws as n,qt as r,ei as x};